{"_id":"@afaya-it/quill-upload","_rev":"2-7d85d556bca539c3258f4a562518ae4e","name":"@afaya-it/quill-upload","dist-tags":{"latest":"0.0.11"},"versions":{"0.0.9":{"name":"@afaya-it/quill-upload","version":"0.0.9","description":"Handler Upload for Quill","main":"src/index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/afaya-it/quill-upload.git"},"keywords":["quill-upload","quill","image","upload","uploader"],"author":{"name":"Mahmoud NJOYA"},"license":"ISC","bugs":{"url":"https://github.com/afaya-it/quill-upload/issues"},"publishConfig":{"registry":"https://registry.npmjs.org/"},"homepage":"https://github.com/afaya-it/quill-upload#readme","_id":"@afaya-it/quill-upload@0.0.9","gitHead":"bb6b339cbc4bcb6f516d6916590b0f6acd84a9c3","_nodeVersion":"21.4.0","_npmVersion":"10.2.4","dist":{"integrity":"sha512-M/72Y1wN9bIfMYwQDoBjlZmW7mahtqwAa5qJMaoHU4WO4zITtL1OWtOfMHNIj8/9PfaKVBGojxpCtV2ncwumlg==","shasum":"443a448e57bba01a9f2ec6c31b4338fa3b537ab5","tarball":"https://registry.npmjs.org/@afaya-it/quill-upload/-/quill-upload-0.0.9.tgz","fileCount":16,"unpackedSize":17878,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDfB+3sz3HE2RP7Qm8iWf4QdHvooEyXYG3e5fJ9nZLX4QIhAPL3I83+8IZcGO2/gktQoyuHdgJ5+kyKHY40HoyRIk+w"}]},"_npmUser":{"name":"phenix99","email":"mahmoudnjoya99@gmail.com"},"directories":{},"maintainers":[{"name":"phenix99","email":"mahmoudnjoya99@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/quill-upload_0.0.9_1707223155214_0.1295327327068323"},"_hasShrinkwrap":false},"0.0.10":{"name":"@afaya-it/quill-upload","version":"0.0.10","description":"Handler Upload for Quill","main":"src/index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/afaya-it/quill-upload.git"},"keywords":["quill-upload","quill","image","upload","uploader"],"author":{"name":"Mahmoud NJOYA"},"license":"ISC","bugs":{"url":"https://github.com/afaya-it/quill-upload/issues"},"publishConfig":{"registry":"https://registry.npmjs.org/"},"homepage":"https://github.com/afaya-it/quill-upload#readme","_id":"@afaya-it/quill-upload@0.0.10","gitHead":"bb6b339cbc4bcb6f516d6916590b0f6acd84a9c3","_nodeVersion":"21.4.0","_npmVersion":"10.2.4","dist":{"integrity":"sha512-/Fb2jCGduQR5pNQGTxDxjamttkJzn+FFcv/qcFXr8xQFMW+B5Ja7n88d2UIhrlpybqpZ0lTlWCPRvp6dH5zcWQ==","shasum":"43473378ac23baf4169c4128742ca780f4730ae6","tarball":"https://registry.npmjs.org/@afaya-it/quill-upload/-/quill-upload-0.0.10.tgz","fileCount":16,"unpackedSize":18006,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIG45gUdWl8IizIuRSD1cHfkoTQTl7DxWpEE28DHhk0sSAiBIY7vcUnkjMX6p0WMPoTXEs/dSeDTD5sn+xdhpZTm0Jg=="}]},"_npmUser":{"name":"phenix99","email":"mahmoudnjoya99@gmail.com"},"directories":{},"maintainers":[{"name":"phenix99","email":"mahmoudnjoya99@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/quill-upload_0.0.10_1707225268878_0.46125381239465457"},"_hasShrinkwrap":false},"0.0.11":{"name":"@afaya-it/quill-upload","version":"0.0.11","description":"Handler Upload for Quill","main":"src/index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/afaya-it/quill-upload.git"},"keywords":["quill-upload","quill","image","upload","uploader"],"author":{"name":"Mahmoud NJOYA"},"license":"ISC","bugs":{"url":"https://github.com/afaya-it/quill-upload/issues"},"publishConfig":{"registry":"https://registry.npmjs.org/"},"homepage":"https://github.com/afaya-it/quill-upload#readme","_id":"@afaya-it/quill-upload@0.0.11","gitHead":"bb6b339cbc4bcb6f516d6916590b0f6acd84a9c3","_nodeVersion":"21.4.0","_npmVersion":"10.2.4","dist":{"integrity":"sha512-/mkRUgDVNVDX4xg+4bY1zSgV+2mj2gMLLq+vG/hu3qo9VDqLRuZYxNPcysW5YQAODObR+apD54ngrhjsb+fx7w==","shasum":"f32892a74cfbab4d38a344be4b249f8650795aaf","tarball":"https://registry.npmjs.org/@afaya-it/quill-upload/-/quill-upload-0.0.11.tgz","fileCount":16,"unpackedSize":18034,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC5TxblJ1QFFhcKsH8x294yZrL8WJjkrdF/n3P8ptY8/wIhAIJP/4dOCf0+HpwredmygEWRhd4DVedZl8N4BEeawtBF"}]},"_npmUser":{"name":"phenix99","email":"mahmoudnjoya99@gmail.com"},"directories":{},"maintainers":[{"name":"phenix99","email":"mahmoudnjoya99@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/quill-upload_0.0.11_1707225547709_0.20397563232576643"},"_hasShrinkwrap":false}},"time":{"created":"2024-02-06T12:39:15.148Z","0.0.9":"2024-02-06T12:39:15.358Z","modified":"2024-02-06T13:19:08.093Z","0.0.10":"2024-02-06T13:14:29.045Z","0.0.11":"2024-02-06T13:19:07.886Z"},"maintainers":[{"name":"phenix99","email":"mahmoudnjoya99@gmail.com"}],"description":"Handler Upload for Quill","homepage":"https://github.com/afaya-it/quill-upload#readme","keywords":["quill-upload","quill","image","upload","uploader"],"repository":{"type":"git","url":"git+https://github.com/afaya-it/quill-upload.git"},"author":{"name":"Mahmoud NJOYA"},"bugs":{"url":"https://github.com/afaya-it/quill-upload/issues"},"license":"ISC","readme":"# quill-upload\n\nA plugin for uploading image, video, attachment in Quill 🌇\n\n- 🌟 upload a image, video, attachment when it is inserted, and then replace the base64-url with a http-url\n- 🌟 preview the image, video, attachment which is uploading with a loading animation\n- 🌟 when the image, video, attachment is uploading, we can keep editing the content including changing the image's, video's or attachment's position or even delete the image, video or attachment.\n\n## Install\n\n```bash\nnpm install @afaya-it/quill-upload --save\n```\n\n## Start\n\n```js\nimport Quill from \"quill\";\nimport \"quill/dist/quill.snow.css\";\nimport { ImageHandler, VideoHandler, AttachmentHandler } from \"quill-upload\";\n\n// register quill-upload\nQuill.register(\"modules/imageHandler\", ImageHandler);\nQuill.register(\"modules/videoHandler\", VideoHandler);\nQuill.register(\"modules/attachmentHandler\", AttachmentHandler);\n\nnew Quill(\"#editor\", {\n  theme: \"snow\",\n  modules: {\n    toolbar: [\"image\", \"video\"],\n    imageHandler: {\n      upload: (file) => {\n        // return a Promise that resolves in a link to the uploaded image\n        return new Promise((resolve, reject) => {\n          ajax().then((data) => resolve(data.imageUrl));\n        });\n      },\n    },\n    videoHandler: {\n      upload: (file) => {\n        // return a Promise that resolves in a link to the uploaded image\n        return new Promise((resolve, reject) => {\n          ajax().then((data) => resolve(data.videoUrl));\n        });\n      },\n    },\n    attachmentHandler: {\n      upload: (file) => {\n        // return a Promise that resolves in a link to the uploaded image\n        return new Promise((resolve, reject) => {\n          ajax().then((data) => resolve(data.attachmentUrl));\n        });\n      },\n    },\n  },\n});\n```\n\n## Example\n\n```bash\ncd example\nnpm install\nnpm start\n```\n","readmeFilename":"README.md"}