{"_id":"@aegenet/au2-prism","_rev":"6-29dadbee548579362fdf8989dd653496","name":"@aegenet/au2-prism","dist-tags":{"latest":"2.1.0"},"versions":{"1.6.1":{"name":"@aegenet/au2-prism","version":"1.6.1","author":{"name":"Alexandre Genet"},"license":"MIT","_id":"@aegenet/au2-prism@1.6.1","maintainers":[{"name":"agenet","email":"npm@creadigme.net"}],"homepage":"https://github.com/aegenet/au2/tree/master#readme","bugs":{"url":"https://github.com/aegenet/au2/issues"},"dist":{"shasum":"6adc69e3b02c3f8986d40d8cc54035cdd11e5f32","tarball":"https://registry.npmjs.org/@aegenet/au2-prism/-/au2-prism-1.6.1.tgz","fileCount":6,"integrity":"sha512-neaU5jXILV4au0fjkCYeVGDux6IjHMPTwb0b8rngK21qEP2HSIKRhH2jM5t4bWLLX6GFHsjgr72omFmrVWdolg==","signatures":[{"sig":"MEUCIQC97gu35ZjWszjS4Cb7EjPJVaFlXVt5WrlR/C+qWt6QvQIgdI7VBBdLYGB7PV1t6GnnwgDpC/YL91hA8ouR4zMsm9U=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":40894},"main":"dist/index.cjs","module":"dist/index.mjs","exports":{"import":"./dist/index.mjs","require":"./dist/index.cjs"},"gitHead":"2a77ed54b71fb591eba915c238f9789837ee2056","scripts":{},"typings":"dist/bundle.d.ts","_npmUser":{"name":"agenet","email":"npm@creadigme.net"},"repository":{"url":"git+https://github.com/aegenet/au2.git#master","type":"git"},"_npmVersion":"10.2.4","description":"DRAFT - Aurelia 2 - Prism View/Editor plugin","directories":{},"_nodeVersion":"20.11.1","dependencies":{"prismjs":"^1.29.0"},"publishConfig":{"registry":"https://npm.pkg.github.com","@aegenet:registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"devDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/au2-prism_1.6.1_1711795555139_0.16734922303350985","host":"s3://npm-registry-packages"}},"1.6.2":{"name":"@aegenet/au2-prism","version":"1.6.2","keywords":["aurelia","aurelia2","prism","codeeditor","codemirror","highlight"],"author":{"name":"Alexandre Genet"},"license":"MIT","_id":"@aegenet/au2-prism@1.6.2","maintainers":[{"name":"agenet","email":"npm@creadigme.net"}],"homepage":"https://github.com/aegenet/au2/tree/master#readme","bugs":{"url":"https://github.com/aegenet/au2/issues"},"dist":{"shasum":"1c7b52d5143206b7d1e7e1eeb19eff12f17145c7","tarball":"https://registry.npmjs.org/@aegenet/au2-prism/-/au2-prism-1.6.2.tgz","fileCount":6,"integrity":"sha512-eRiOq5obQcL4aRmFK0X2lqm6fDxIPpEocLa3J9ceLWpnPsob8UW034nzfvbfLRItKYVCbSgOvzyrAF6z9FZKXg==","signatures":[{"sig":"MEUCIQCEjCbJw3+kbqfWaHeR2iZQWtP8jZ3/oPthHFukqSzN/wIgHscrq+A1hSZqqNNidBEE5bUtBpi+rwaLEXG0pyIJhKA=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":41011},"main":"dist/index.cjs","module":"dist/index.mjs","exports":{"import":"./dist/index.mjs","require":"./dist/index.cjs"},"gitHead":"68dc1909a207486fdcaf9929499f3a979ece1bc4","scripts":{},"typings":"dist/bundle.d.ts","_npmUser":{"name":"agenet","email":"npm@creadigme.net"},"repository":{"url":"git+https://github.com/aegenet/au2.git#master","type":"git"},"_npmVersion":"10.2.4","description":"DRAFT - Aurelia 2 - Prism View/Editor plugin","directories":{},"_nodeVersion":"20.11.1","dependencies":{"prismjs":"^1.29.0"},"publishConfig":{"registry":"https://npm.pkg.github.com","@aegenet:registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"devDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/au2-prism_1.6.2_1712230195618_0.6793063743815462","host":"s3://npm-registry-packages"}},"2.0.0-alpha":{"name":"@aegenet/au2-prism","version":"2.0.0-alpha","keywords":["aurelia","aurelia2","prism","codeeditor","codemirror","highlight"],"author":{"name":"Alexandre Genet"},"license":"MIT","_id":"@aegenet/au2-prism@2.0.0-alpha","maintainers":[{"name":"agenet","email":"npm@creadigme.net"}],"homepage":"https://github.com/aegenet/au2/tree/master#readme","bugs":{"url":"https://github.com/aegenet/au2/issues"},"dist":{"shasum":"1503e80a456c1d9ee5bd800bddbe4ed651bc64c4","tarball":"https://registry.npmjs.org/@aegenet/au2-prism/-/au2-prism-2.0.0-alpha.tgz","fileCount":7,"integrity":"sha512-RVnBZENO4sN7eY24VG1H3rjuqtrB1a1XYkfMTt3jpc3FsXANVPZM0LrKZwBOYzYKhl10h1PFOBx3Y09WFLF9jg==","signatures":[{"sig":"MEQCIB1Ey3m4IRxW4qasNOOAZME7NTiqKEN4vrtt6+ZKnWwkAiB9Mhu87FFHvCmrjX48rfD+M3uT9IBpoOZ3ljyNbPQD+Q==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":79696},"main":"dist/index.cjs","types":"./dist/bundle.d.ts","module":"dist/index.mjs","browser":"dist/index.mjs","exports":{"node":{"types":"./dist/bundle.d.ts","import":"./dist/index.mjs","require":"./dist/index.cjs"},"default":{"types":"./dist/bundle.d.ts","import":"./dist/index.mjs","require":"./dist/index.cjs"}},"gitHead":"0c79184e44ee04c3fca16bdbfa1c610432ff68ca","scripts":{},"typings":"./dist/bundle.d.ts","_npmUser":{"name":"agenet","email":"npm@creadigme.net"},"repository":{"url":"git+https://github.com/aegenet/au2.git#master","type":"git"},"_npmVersion":"10.8.1","description":"DRAFT - Aurelia 2 - Prism View/Editor plugin","directories":{},"_nodeVersion":"20.16.0","dependencies":{"prismjs":"^1.29.0"},"publishConfig":{"registry":"https://npm.pkg.github.com","@aegenet:registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"devDependencies":{},"peerDependencies":{"aurelia":"^2.0.0-beta.20"},"_npmOperationalInternal":{"tmp":"tmp/au2-prism_2.0.0-alpha_1723070215130_0.8130075734034956","host":"s3://npm-registry-packages"}},"2.0.0-alpha2":{"name":"@aegenet/au2-prism","version":"2.0.0-alpha2","keywords":["aurelia","aurelia2","prism","codeeditor","codemirror","highlight"],"author":{"name":"Alexandre Genet"},"license":"MIT","_id":"@aegenet/au2-prism@2.0.0-alpha2","maintainers":[{"name":"agenet","email":"npm@creadigme.net"}],"homepage":"https://github.com/aegenet/au2/tree/master#readme","bugs":{"url":"https://github.com/aegenet/au2/issues"},"dist":{"shasum":"409f4902182e47380b61856c1603a527fbbfa295","tarball":"https://registry.npmjs.org/@aegenet/au2-prism/-/au2-prism-2.0.0-alpha2.tgz","fileCount":7,"integrity":"sha512-WGMcz2dx5CdcY4UuKGwXGYOv2oz9teoLkXzWyE2mQn9hwK/Lk5QFBsFkKPpe8ZC8LHft+mC0U/HfZz+fRwp+Sg==","signatures":[{"sig":"MEUCIG5aUUwnhDpfqjGgoZq1iOIC7QzBDqI3WiEZzHRDIvalAiEA7wkdQZJNVHfRkgDh8Vex76KwzZGzVFko6+MaTk5xjBw=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":79697},"main":"dist/index.cjs","types":"./dist/bundle.d.ts","module":"dist/index.mjs","browser":"dist/index.mjs","exports":{"node":{"types":"./dist/bundle.d.ts","import":"./dist/index.mjs","require":"./dist/index.cjs"},"default":{"types":"./dist/bundle.d.ts","import":"./dist/index.mjs","require":"./dist/index.cjs"}},"gitHead":"c65bc27d601b352d8b6196aa1bb9c236ae6d4af4","scripts":{},"typings":"./dist/bundle.d.ts","_npmUser":{"name":"agenet","email":"npm@creadigme.net"},"repository":{"url":"git+https://github.com/aegenet/au2.git#master","type":"git"},"_npmVersion":"10.8.1","description":"DRAFT - Aurelia 2 - Prism View/Editor plugin","directories":{},"_nodeVersion":"20.16.0","dependencies":{"prismjs":"^1.29.0"},"publishConfig":{"registry":"https://npm.pkg.github.com","@aegenet:registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"devDependencies":{},"peerDependencies":{"aurelia":"^2.0.0-beta.21"},"_npmOperationalInternal":{"tmp":"tmp/au2-prism_2.0.0-alpha2_1723141790477_0.0948878450416002","host":"s3://npm-registry-packages"}},"2.0.0-alpha3":{"name":"@aegenet/au2-prism","version":"2.0.0-alpha3","keywords":["aurelia","aurelia2","prism","codeeditor","codemirror","highlight"],"author":{"name":"Alexandre Genet"},"license":"MIT","_id":"@aegenet/au2-prism@2.0.0-alpha3","maintainers":[{"name":"agenet","email":"npm@creadigme.net"}],"homepage":"https://github.com/aegenet/au2/tree/master#readme","bugs":{"url":"https://github.com/aegenet/au2/issues"},"dist":{"shasum":"13f849d78c4021d68af5e26b288d020fcf486bcf","tarball":"https://registry.npmjs.org/@aegenet/au2-prism/-/au2-prism-2.0.0-alpha3.tgz","fileCount":7,"integrity":"sha512-ZSTUA23m5H9QYu3Tc1RK6AGJoD0yt62akJm3zaoTDEVw7pSETXHC4cihhfxe8ZetMWCrNGs56S6RlDpw2r4SyQ==","signatures":[{"sig":"MEUCIQDmL7uUaM5EXIEIlVS2HUCwJbhiwMZVw4bb9COcuFWHxwIgKf2hSQYibgs9ykIQfsDp6iAOQljV0rjQSc1TDz8zh5c=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":72808},"main":"dist/index.cjs","types":"./dist/bundle.d.ts","module":"dist/index.mjs","browser":"dist/index.mjs","exports":{"node":{"types":"./dist/bundle.d.ts","import":"./dist/index.mjs","require":"./dist/index.cjs"},"default":{"types":"./dist/bundle.d.ts","import":"./dist/index.mjs","require":"./dist/index.cjs"}},"gitHead":"6d76b1ee29e67da9cf5dc82aeacd93a00e4d728b","scripts":{},"typings":"./dist/bundle.d.ts","_npmUser":{"name":"agenet","email":"npm@creadigme.net"},"repository":{"url":"git+https://github.com/aegenet/au2.git#master","type":"git"},"_npmVersion":"10.8.1","description":"DRAFT - Aurelia 2 - Prism View/Editor plugin","directories":{},"_nodeVersion":"20.16.0","dependencies":{"prismjs":"^1.29.0"},"publishConfig":{"registry":"https://npm.pkg.github.com","@aegenet:registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"devDependencies":{},"peerDependencies":{"aurelia":"^2.0.0-beta.21"},"_npmOperationalInternal":{"tmp":"tmp/au2-prism_2.0.0-alpha3_1723739350167_0.8105983665303773","host":"s3://npm-registry-packages"}},"2.0.0":{"name":"@aegenet/au2-prism","version":"2.0.0","keywords":["aurelia","aurelia2","prism","codeeditor","codemirror","highlight"],"author":{"name":"Alexandre Genet"},"license":"MIT","_id":"@aegenet/au2-prism@2.0.0","maintainers":[{"name":"agenet","email":"npm@creadigme.net"}],"homepage":"https://github.com/aegenet/au2/tree/master#readme","bugs":{"url":"https://github.com/aegenet/au2/issues"},"dist":{"shasum":"b588ece4eec8816ee912ac63149096e69540bd6b","tarball":"https://registry.npmjs.org/@aegenet/au2-prism/-/au2-prism-2.0.0.tgz","fileCount":7,"integrity":"sha512-3IsF39Y6jHfE3BRGg/e6ipQFQgfWF52MQbG/fXqa4hwqhvsO9wlpQIje9TaTxdrG5tCupuTLgFB3qScqhk6uUA==","signatures":[{"sig":"MEUCIQDALbCeM9AQSZevrMtBpXUO27+FlflY+AXtQVydg2sbzAIgbb3NYHFvcL0BFQiP1tYd3nuzdJng0nvzORN/ymSXoTg=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":72789},"main":"dist/index.cjs","types":"./dist/bundle.d.ts","module":"dist/index.mjs","browser":"dist/index.mjs","exports":{"node":{"types":"./dist/bundle.d.ts","import":"./dist/index.mjs","require":"./dist/index.cjs"},"default":{"types":"./dist/bundle.d.ts","import":"./dist/index.mjs","require":"./dist/index.cjs"}},"gitHead":"0d20334fed48d1534909bce098f36de8ecb26085","scripts":{},"typings":"./dist/bundle.d.ts","_npmUser":{"name":"agenet","email":"npm@creadigme.net"},"repository":{"url":"git+https://github.com/aegenet/au2.git#master","type":"git"},"_npmVersion":"10.8.1","description":"DRAFT - Aurelia 2 - Prism View/Editor plugin","directories":{},"_nodeVersion":"20.16.0","dependencies":{"prismjs":"^1.29.0"},"publishConfig":{"registry":"https://npm.pkg.github.com","@aegenet:registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"devDependencies":{},"peerDependencies":{"aurelia":"^2.0.0-beta.21"},"_npmOperationalInternal":{"tmp":"tmp/au2-prism_2.0.0_1723741485821_0.3879444258495326","host":"s3://npm-registry-packages"}},"2.1.0":{"name":"@aegenet/au2-prism","description":"DRAFT - Aurelia 2 - Prism View/Editor plugin","main":"dist/index.cjs","module":"dist/index.mjs","browser":"dist/index.mjs","exports":{"node":{"require":"./dist/index.cjs","import":"./dist/index.mjs","types":"./dist/bundle.d.ts"},"default":{"require":"./dist/index.cjs","import":"./dist/index.mjs","types":"./dist/bundle.d.ts"}},"typings":"./dist/bundle.d.ts","types":"./dist/bundle.d.ts","author":{"name":"Alexandre Genet"},"keywords":["aurelia","aurelia2","prism","codeeditor","codemirror","highlight"],"version":"2.1.0","repository":{"type":"git","url":"git+https://github.com/aegenet/au2.git#master"},"license":"MIT","dependencies":{"prismjs":"^1.29.0"},"publishConfig":{"registry":"https://npm.pkg.github.com","@aegenet:registry":"https://registry.npmjs.org/"},"devDependencies":{},"peerDependencies":{"aurelia":"^2.0.0-beta.22"},"scripts":{},"_id":"@aegenet/au2-prism@2.1.0","gitHead":"72387f7bae1d6219b57ad84651a0a594631ba633","bugs":{"url":"https://github.com/aegenet/au2/issues"},"homepage":"https://github.com/aegenet/au2/tree/master#readme","_nodeVersion":"20.18.1","_npmVersion":"10.8.2","dist":{"integrity":"sha512-18e8CFssrfDzY06+EBW2n3bneM+A78pFVjwCDfH6Lb+1m04WM94yStja092y0arv5c8iSb2oZ5mst0boREElDQ==","shasum":"44acfc39f57e4d8941846612f3370407776db4fa","tarball":"https://registry.npmjs.org/@aegenet/au2-prism/-/au2-prism-2.1.0.tgz","fileCount":7,"unpackedSize":72789,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHRInKA/voBu2RUPEhrakbgVOy6jInrc94UjqQ4fhl9YAiBPK0xKXrw/rQbzQ0GcrEUh6Xpz6O0L34IoKz52yEWYXA=="}]},"_npmUser":{"name":"agenet","email":"npm@creadigme.net"},"directories":{},"maintainers":[{"name":"agenet","email":"npm@creadigme.net"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/au2-prism_2.1.0_1735807443719_0.3669821948868137"},"_hasShrinkwrap":false}},"time":{"created":"2024-03-30T10:45:54.992Z","modified":"2025-01-02T08:44:04.093Z","1.6.1":"2024-03-30T10:45:55.296Z","1.6.2":"2024-04-04T11:29:55.761Z","2.0.0-alpha":"2024-08-07T22:36:55.310Z","2.0.0-alpha2":"2024-08-08T18:29:50.621Z","2.0.0-alpha3":"2024-08-15T16:29:10.375Z","2.0.0":"2024-08-15T17:04:46.068Z","2.1.0":"2025-01-02T08:44:03.904Z"},"bugs":{"url":"https://github.com/aegenet/au2/issues"},"author":{"name":"Alexandre Genet"},"license":"MIT","homepage":"https://github.com/aegenet/au2/tree/master#readme","keywords":["aurelia","aurelia2","prism","codeeditor","codemirror","highlight"],"repository":{"type":"git","url":"git+https://github.com/aegenet/au2.git#master"},"description":"DRAFT - Aurelia 2 - Prism View/Editor plugin","maintainers":[{"name":"agenet","email":"npm@creadigme.net"}],"readme":"[![npm version](https://img.shields.io/npm/v/@aegenet/au2-prism.svg)](https://www.npmjs.com/package/@aegenet/au2-prism)\n<br>\n\n# @aegenet/au2-prism\n\n> Aurelia 2 component: Prism & Prism Editor.\n\n> *Fork of Prism Editor: https://github.com/koca/vue-prism-editor*\n\n> Missing a lot of tests in our implementation! (see: https://github.com/koca/vue-prism-editor/blob/master/packages/vue-prism-editor/tests/Editor.spec.ts for base of tests)\n\n> Tested with [`Aurelia v2.0.0-beta.21`](https://github.com/aurelia/aurelia/releases/tag/v2.0.0-beta.21).\n\n# Installation\n\n```shell\nnpm install @aegenet/au2-prism@^2.0.0\n# or\nyarn add @aegenet/au2-prism@^2.0.0\n```\n\n# Usage\n\n## Register the plugin\n\n```js\nimport * as myPlugin from '@aegenet/au2-prism';\nAurelia\n  // Load all exports from the plugin\n  .register(myPlugin)\n  .app(MyApp)\n  .start();\n```\n\n## Components usage\n\n### Prism View\n\n```html\n<prism-view code=\"const myVar = { code: 'quantum', title: 'Unknown', where: 'Who know' };\" language=\"javascript\"></prism-view>\n```\n\n### Prism Editor\n\n```html\n<prism-editor code=\"const myVar = { code: 'quantum', title: 'Unknown', where: 'Who know' };\" language=\"javascript\"></prism-editor>\n```\n\n### Example\n\n```html\n<h2>Prism Editor</h2>\n<prism-editor component.ref=\"prismRef\" code=\"const myVar = { code: 'quantum', title: 'Unknown', where: 'Who know' };\" language=\"javascript\"></prism-editor>\n\n<button click.trigger=\"prismRef.code = 'Ok ok'\">Change!</button>\n\n<h2>Value</h2>\n<pre><code innerhtml.bind=\"prismRef.code\"></code></pre>\n\n<h2>Prism View</h2>\n<prism-view code.bind=\"prismRef.code\" language=\"javascript\"></prism-view>\n```\n\n# Development\n\n## Start dev web server\n\n    npm start\n\nNote this plugin project comes with a dev-app. The above command starts the dev app in `dev-app/` folder. The plugin source code is in `src/` folder.\n\n## Build the plugin in production modern\n\n    npm run build\n\nIt builds plugin into `dist/index.mjs` file.\n\nNote when you do `npm publish` or `npm pack` to prepare the plugin package, it automatically run the above build command by the `prepare` script defined in your package.json `\"scripts\"` section.\n\n## Unit Tests\n\n    npm run test\n\nRun unit tests in watch mode.\n\n    npm run test:watch\n\n\n## Analyze webpack bundle\n\n    npm run analyze\n\n# License\n\n[The MIT License](LICENSE) - Copyright © 2022-2024 [Alexandre Genet](https://github.com/aegenet).\n","readmeFilename":"README.md"}