{"_id":"@biggiepete/svelte-editorjs","_rev":"1-ab22c752963040bc645bba9589cdd943","name":"@biggiepete/svelte-editorjs","dist-tags":{"latest":"0.2.2"},"versions":{"0.2.1":{"name":"@biggiepete/svelte-editorjs","version":"0.2.1","description":"An EditorJS wrapper for Svelte, built for svelte V4","main":"dist/cjs/index.js","module":"dist/esm/index.js","types":"dist/index.d.ts","author":{"name":"Peter Cross","email":"peter.cross222@gmail.com"},"license":"MIT","homepage":"https://github.com/BiggiePete/svelte-editorjs","repository":{"type":"git","url":"git+https://github.com/BiggiePete/svelte-editorjs.git"},"funding":"https://www.buymeacoffee.com/pablo.abc","keywords":["svelte","WYSWYG","editor","editorjs"],"scripts":{"prebuild":"rimraf ./dist","build":"cross-env NODE_ENV=production rollup -c","dev":"rollup -cw","prepublishOnly":"yarn build","test":"jest","test:ci":"jest --ci --coverage"},"peerDependencies":{"@editorjs/editorjs":"^2.19.3","svelte":"^4.0.5"},"dependencies":{},"publishConfig":{"access":"public"},"devDependencies":{"@editorjs/editorjs":"^2.19.3","@rollup/plugin-commonjs":"^17.1.0","@rollup/plugin-node-resolve":"^11.2.0","@rollup/plugin-replace":"^2.4.1","@wessberg/rollup-plugin-ts":"^1.3.11","cross-env":"^7.0.3","prettier":"^2.2.1","rimraf":"^3.0.2","rollup":"^2.42.4","rollup-plugin-terser":"^7.0.2","svelte":"^4.0.5","typescript":"^4.2.3"},"exports":{".":{"import":"./dist/esm/index.js","require":"./dist/cjs/index.js"},"./package.json":"./package.json"},"_id":"@biggiepete/svelte-editorjs@0.2.1","bugs":{"url":"https://github.com/BiggiePete/svelte-editorjs/issues"},"_nodeVersion":"20.10.0","_npmVersion":"10.2.5","dist":{"integrity":"sha512-sw5yCEFcAwKSemtfdZKXz2FMGW3G6YiI4HWNm0R7DpPkF/5uYTjUkk1nHdtJ3kl4lXF7t4Rusqe8NNHDJlo+mQ==","shasum":"9ae79d2a75157c458cc4ac1e96b7f67d37b8e094","tarball":"https://registry.npmjs.org/@biggiepete/svelte-editorjs/-/svelte-editorjs-0.2.1.tgz","fileCount":13,"unpackedSize":2278264,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDRCQfxnXvBK8PGMWRCHh1Id5TnykCnxHwIIVBVqEm+2QIhAOAVsjUYLAcB9m6Suu+38hVpyWZsxl2VGJTeLeaszvZj"}]},"_npmUser":{"name":"0xhelp","email":"mcswagington33@gmail.com"},"directories":{},"maintainers":[{"name":"0xhelp","email":"mcswagington33@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/svelte-editorjs_0.2.1_1708221371096_0.3384162454387192"},"_hasShrinkwrap":false},"0.2.2":{"name":"@biggiepete/svelte-editorjs","version":"0.2.2","description":"An EditorJS wrapper for Svelte, built for svelte V4","main":"dist/cjs/index.js","module":"dist/esm/index.js","types":"dist/index.d.ts","author":{"name":"Peter Cross","email":"peter.cross222@gmail.com"},"license":"MIT","homepage":"https://github.com/BiggiePete/svelte-editorjs","repository":{"type":"git","url":"git+https://github.com/BiggiePete/svelte-editorjs.git"},"funding":"https://www.buymeacoffee.com/pablo.abc","keywords":["svelte","WYSWYG","editor","editorjs"],"scripts":{"prebuild":"rimraf ./dist","build":"cross-env NODE_ENV=production rollup -c","dev":"rollup -cw","prepublishOnly":"yarn build","test":"jest","test:ci":"jest --ci --coverage"},"peerDependencies":{"@editorjs/editorjs":"^2.19.3","svelte":"^4.0.5"},"dependencies":{},"publishConfig":{"access":"public"},"devDependencies":{"@editorjs/editorjs":"^2.19.3","@rollup/plugin-commonjs":"^17.1.0","@rollup/plugin-node-resolve":"^11.2.0","@rollup/plugin-replace":"^2.4.1","@wessberg/rollup-plugin-ts":"^1.3.11","cross-env":"^7.0.3","prettier":"^2.2.1","rimraf":"^3.0.2","rollup":"^2.42.4","rollup-plugin-terser":"^7.0.2","svelte":"^4.0.5","typescript":"^4.2.3"},"exports":{".":{"import":"./dist/esm/index.js","require":"./dist/cjs/index.js"},"./package.json":"./package.json"},"_id":"@biggiepete/svelte-editorjs@0.2.2","gitHead":"5e0200c2120b1e409f1d67c6ef4b75dc30b710a5","bugs":{"url":"https://github.com/BiggiePete/svelte-editorjs/issues"},"_nodeVersion":"20.10.0","_npmVersion":"10.2.5","dist":{"integrity":"sha512-Ey1i3Yx7B3RbAXi1KCenqZXEIYNPPW7k4a9Vm9SikQNQ4oZy72EWINTHoDHpJLmRw1pcYNxzF9+N4ydfEQpr6A==","shasum":"d004727d2d5528f5991dc21c72747444b85e110f","tarball":"https://registry.npmjs.org/@biggiepete/svelte-editorjs/-/svelte-editorjs-0.2.2.tgz","fileCount":13,"unpackedSize":2278266,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCZfLuamKIWsaQyl+nD5ujNi4HctIQTSXqXxWhzow40ogIhAJGMLfviePqOTKLaYN7dW6EI/mfP7K1UXoPbuVIcjRcZ"}]},"_npmUser":{"name":"0xhelp","email":"mcswagington33@gmail.com"},"directories":{},"maintainers":[{"name":"0xhelp","email":"mcswagington33@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/svelte-editorjs_0.2.2_1708221736635_0.5321512854474555"},"_hasShrinkwrap":false}},"time":{"created":"2024-02-18T01:56:11.017Z","0.2.1":"2024-02-18T01:56:11.354Z","modified":"2024-02-18T02:02:17.254Z","0.2.2":"2024-02-18T02:02:16.832Z"},"maintainers":[{"name":"0xhelp","email":"mcswagington33@gmail.com"}],"description":"An EditorJS wrapper for Svelte, built for svelte V4","homepage":"https://github.com/BiggiePete/svelte-editorjs","keywords":["svelte","WYSWYG","editor","editorjs"],"repository":{"type":"git","url":"git+https://github.com/BiggiePete/svelte-editorjs.git"},"author":{"name":"Peter Cross","email":"peter.cross222@gmail.com"},"bugs":{"url":"https://github.com/BiggiePete/svelte-editorjs/issues"},"license":"MIT","readme":"# svelte-editorjs\r\n\r\nA wrapper for EditorJS in Svelte\r\n\r\n## Installation\r\n\r\n```sh\r\n# yarn\r\nyarn add @editorjs/editorjs svelte-editorjs\r\n\r\n# npm\r\nnpm i -S @editorjs/editorjs svelte-editorjs\r\n```\r\n\r\n## Usage\r\n\r\nTo use it import the `createEditor` function from `svelte-editorjs`.\r\n\r\n```html\r\n<script>\r\n  import { createEditor } from 'svelte-editorjs';\r\n\r\n  const { editor, data, isReady } = createEditor();\r\n</script>\r\n\r\n<div use:editor />\r\n```\r\n\r\n- `editor` is an action to use in your element that will contain the editor. It can also be used as a readable store that contains the following props:\r\n  - `instance`: the editor's instance as shown in [their docs](https://editorjs.io/api).\r\n  - `save`: a shortcut to `instance.save` that also updates the `data` store.\r\n  - `clear`: a shortcut to `instance.clear` that also updates the `data` store.\r\n  - `render`: a shortcut to `instance.render`.\r\n- `data` is a writable store containing the data from the editor. It'll only be updated on save. Mutating this store will also mutate the editors content.\r\n- `isReady` is a readable store containing a single boolean indicating if the editor is ready to be used.\r\n\r\n## Configuration\r\n\r\nThe `createEditor` accepts the same properties that [EditorjS accepts as options](https://github.com/codex-team/editor.js/blob/master/types/configs/editor-config.d.ts) except for holderId and holder, since that's determined by the action.\r\n\r\n## License\r\n\r\nMIT\r\n","readmeFilename":"README.md"}