{"_id":"@calumk/editorjs-media-asset","_rev":"9-4acba1d40a7916a0a454c32dee85d510","name":"@calumk/editorjs-media-asset","dist-tags":{"latest":"1.0.10"},"versions":{"1.0.1":{"name":"@calumk/editorjs-media-asset","version":"1.0.1","keywords":["codex editor","media","editor.js","editorjs"],"author":{"name":"CalumK","email":"calum@calumk.com"},"license":"MIT","_id":"@calumk/editorjs-media-asset@1.0.1","maintainers":[{"name":"calumk","email":"calum@calumk.com"}],"homepage":"https://github.com/calumk/editorjs-media-asset/#readme","bugs":{"url":"https://github.com/calumk/editorjs-media-asset/issues"},"dist":{"shasum":"8691b59434205634036f96be4d5bb7ec38d6b25b","tarball":"https://registry.npmjs.org/@calumk/editorjs-media-asset/-/editorjs-media-asset-1.0.1.tgz","fileCount":5,"integrity":"sha512-/uERK18dGfLM7JZd0sfuLyoGEtI250aMvpRZ5sKKwKyVVhpr+noA3D6cUNZyaay6oDiC+IsK0t3qCb42NTug6w==","signatures":[{"sig":"MEUCIDW1UCD9Kz/ieogfcvkYASPREODtuFq5U+kWclANHzulAiEApERtpAh5cWNr0Pznyi14fTtna2P1Gw6SlUM8kveN7+Q=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":89299},"main":"./dist/media-asset.umd.js","module":"./dist/media-asset.mjs","exports":{".":{"import":"./dist/media-asset.mjs","require":"./dist/media-asset.umd.js"}},"gitHead":"dad68fb33d96be388b4b8583dfcafe067f26cba3","scripts":{"dev":"vite","lint":"eslint src/ --ext .js","build":"vite build","watch":"vite build --watch","lint:fix":"eslint src/ --ext .js --fix","lint:errors":"eslint src/ --ext .js --quiet"},"_npmUser":{"name":"calumk","email":"calum@calumk.com"},"repository":{"url":"git+https://github.com/calumk/editorjs-media-asset.git","type":"git"},"_npmVersion":"10.8.2","description":"Media (Image, Audio, Video, and Document/PDF/Zip) Tool for Editor.js","directories":{},"_nodeVersion":"20.18.1","dependencies":{"@codexteam/icons":"^0.0.6"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"devDependencies":{"vite":"^4.5.0","eslint":"^6.8.0","request":"^2.88.0","formidable":"^1.2.1","eslint-loader":"^4.0.0","postcss-nested":"^4.1.0","@codexteam/ajax":"^4.2.0","eslint-config-codex":"^1.3.3","postcss-nested-ancestors":"^2.0.0","vite-plugin-css-injected-by-js":"^3.3.0"},"_npmOperationalInternal":{"tmp":"tmp/editorjs-media-asset_1.0.1_1737822207236_0.28045023147625514","host":"s3://npm-registry-packages-npm-production"}},"1.0.2":{"name":"@calumk/editorjs-media-asset","version":"1.0.2","keywords":["codex editor","media","editor.js","editorjs"],"author":{"name":"CalumK","email":"calum@calumk.com"},"license":"MIT","_id":"@calumk/editorjs-media-asset@1.0.2","maintainers":[{"name":"calumk","email":"calum@calumk.com"}],"homepage":"https://github.com/calumk/editorjs-media-asset/#readme","bugs":{"url":"https://github.com/calumk/editorjs-media-asset/issues"},"dist":{"shasum":"3d682cd3fcd07180471650edb6f48bdc02d36ea5","tarball":"https://registry.npmjs.org/@calumk/editorjs-media-asset/-/editorjs-media-asset-1.0.2.tgz","fileCount":5,"integrity":"sha512-mX58xA+x79y8xJWTpqlsAZfP+4G0GUHUa6OXgRRgNbP+WjQukqGGWQl5DPQsBF+sMa66OJuBQ+e9oIVLziHNRQ==","signatures":[{"sig":"MEQCIAINx+Fnjt3zyGgBtYXbBP7zwOHFj71mwNRQ0CmjUNYpAiAtY4rxakvGCYdxFXgvbfUiGlzWnRdcGBe+bQiop8F3xQ==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":91105},"main":"./dist/media-asset.umd.js","module":"./dist/media-asset.mjs","exports":{".":{"import":"./dist/media-asset.mjs","require":"./dist/media-asset.umd.js"}},"gitHead":"d4dc17efd7fdd640a5869904454057268439d837","scripts":{"dev":"vite","lint":"eslint src/ --ext .js","build":"vite build","watch":"vite build --watch","lint:fix":"eslint src/ --ext .js --fix","lint:errors":"eslint src/ --ext .js --quiet"},"_npmUser":{"name":"calumk","email":"calum@calumk.com"},"repository":{"url":"git+https://github.com/calumk/editorjs-media-asset.git","type":"git"},"_npmVersion":"10.8.2","description":"Media (Image, Audio, Video, and Document/PDF/Zip) Tool for Editor.js","directories":{},"_nodeVersion":"20.18.1","dependencies":{"@codexteam/icons":"^0.0.6"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"devDependencies":{"vite":"^4.5.0","eslint":"^6.8.0","request":"^2.88.0","formidable":"^1.2.1","eslint-loader":"^4.0.0","postcss-nested":"^4.1.0","@codexteam/ajax":"^4.2.0","eslint-config-codex":"^1.3.3","postcss-nested-ancestors":"^2.0.0","vite-plugin-css-injected-by-js":"^3.3.0"},"_npmOperationalInternal":{"tmp":"tmp/editorjs-media-asset_1.0.2_1737823013662_0.44651599804134157","host":"s3://npm-registry-packages-npm-production"}},"1.0.3":{"name":"@calumk/editorjs-media-asset","version":"1.0.3","keywords":["codex editor","media","editor.js","editorjs"],"author":{"name":"CalumK","email":"calum@calumk.com"},"license":"MIT","_id":"@calumk/editorjs-media-asset@1.0.3","maintainers":[{"name":"calumk","email":"calum@calumk.com"}],"homepage":"https://github.com/calumk/editorjs-media-asset/#readme","bugs":{"url":"https://github.com/calumk/editorjs-media-asset/issues"},"dist":{"shasum":"af7db88ed7de59193db4fc0265126798e6aae6da","tarball":"https://registry.npmjs.org/@calumk/editorjs-media-asset/-/editorjs-media-asset-1.0.3.tgz","fileCount":5,"integrity":"sha512-xmqq2JWsMKNpB6ChhQK5R8rcLMhpRJ6F0fAhYfbwAg2g11ijTSavRyybsJv8iiwWTy1BN0IDibKDLqCnxepVjg==","signatures":[{"sig":"MEYCIQDuMKbylyO2Ay4S+RFrDu893c8lNDClxv+j1E7rD2EQrwIhAOV0BsTyH9RR67HvdoKGIlJzJcN+j5HhB1h9LmYJl836","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":91136},"main":"./dist/media-asset.umd.js","module":"./dist/media-asset.mjs","exports":{".":{"import":"./dist/media-asset.mjs","require":"./dist/media-asset.umd.js"}},"gitHead":"37b40e943657bbbf90bb019e23c5c7b4ea212f10","scripts":{"dev":"vite","lint":"eslint src/ --ext .js","build":"vite build","watch":"vite build --watch","lint:fix":"eslint src/ --ext .js --fix","lint:errors":"eslint src/ --ext .js --quiet"},"_npmUser":{"name":"calumk","email":"calum@calumk.com"},"repository":{"url":"git+https://github.com/calumk/editorjs-media-asset.git","type":"git"},"_npmVersion":"10.8.2","description":"Media (Image, Audio, Video, and Document/PDF/Zip) Tool for Editor.js","directories":{},"_nodeVersion":"20.18.1","dependencies":{"@codexteam/icons":"^0.0.6"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"devDependencies":{"vite":"^4.5.0","eslint":"^6.8.0","request":"^2.88.0","formidable":"^1.2.1","eslint-loader":"^4.0.0","postcss-nested":"^4.1.0","@codexteam/ajax":"^4.2.0","eslint-config-codex":"^1.3.3","postcss-nested-ancestors":"^2.0.0","vite-plugin-css-injected-by-js":"^3.3.0"},"_npmOperationalInternal":{"tmp":"tmp/editorjs-media-asset_1.0.3_1737829268422_0.24196732835357748","host":"s3://npm-registry-packages-npm-production"}},"1.0.4":{"name":"@calumk/editorjs-media-asset","version":"1.0.4","keywords":["codex editor","media","editor.js","editorjs"],"author":{"name":"CalumK","email":"calum@calumk.com"},"license":"MIT","_id":"@calumk/editorjs-media-asset@1.0.4","maintainers":[{"name":"calumk","email":"calum@calumk.com"}],"homepage":"https://github.com/calumk/editorjs-media-asset/#readme","bugs":{"url":"https://github.com/calumk/editorjs-media-asset/issues"},"dist":{"shasum":"114080e7e0141e10989143359631e8b437484a23","tarball":"https://registry.npmjs.org/@calumk/editorjs-media-asset/-/editorjs-media-asset-1.0.4.tgz","fileCount":5,"integrity":"sha512-9OUuk1w4OBfLq1VyDr+JnrnmDY88Urw0Vg2ZaLVBUMYnXqkHvItMODjpnLQ0fS7SUizVUN5g8XSlI4arMvY12Q==","signatures":[{"sig":"MEQCIEepP3rK/F+bjcIymTtlbCX4Hp8WVXYWT8hrk53tRmC+AiAaQHPgzM2eVmZMKgDRuJ+rmPCSybm9zjBhpCxnq/MSbQ==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":91220},"main":"./dist/calumk-editorjs-media-asset-tool.umd.js","module":"./dist/calumk-editorjs-media-asset-tool.mjs","exports":{".":{"import":"./dist/calumk-editorjs-media-asset-tool.mjs","require":"./dist/calumk-editorjs-media-asset-tool.umd.js"}},"gitHead":"16fca70ca5279ea00d3b1354fe7b935df45de82a","scripts":{"dev":"vite","lint":"eslint src/ --ext .js","build":"vite build","watch":"vite build --watch","lint:fix":"eslint src/ --ext .js --fix","lint:errors":"eslint src/ --ext .js --quiet"},"_npmUser":{"name":"calumk","email":"calum@calumk.com"},"repository":{"url":"git+https://github.com/calumk/editorjs-media-asset.git","type":"git"},"_npmVersion":"10.8.2","description":"Media (Image, Audio, Video, and Document/PDF/Zip) Tool for Editor.js","directories":{},"_nodeVersion":"20.18.1","dependencies":{"@codexteam/icons":"^0.0.6"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"devDependencies":{"vite":"^4.5.0","eslint":"^6.8.0","request":"^2.88.0","formidable":"^1.2.1","eslint-loader":"^4.0.0","postcss-nested":"^4.1.0","@codexteam/ajax":"^4.2.0","eslint-config-codex":"^1.3.3","postcss-nested-ancestors":"^2.0.0","vite-plugin-css-injected-by-js":"^3.3.0"},"_npmOperationalInternal":{"tmp":"tmp/editorjs-media-asset_1.0.4_1737829640887_0.49886072761123335","host":"s3://npm-registry-packages-npm-production"}},"1.0.5":{"name":"@calumk/editorjs-media-asset","version":"1.0.5","keywords":["codex editor","media","editor.js","editorjs"],"author":{"name":"CalumK","email":"calum@calumk.com"},"license":"MIT","_id":"@calumk/editorjs-media-asset@1.0.5","maintainers":[{"name":"calumk","email":"calum@calumk.com"}],"homepage":"https://github.com/calumk/editorjs-media-asset/#readme","bugs":{"url":"https://github.com/calumk/editorjs-media-asset/issues"},"dist":{"shasum":"bc17ad75eb71cc29a2a406ce32ca7cbfeb78a7bd","tarball":"https://registry.npmjs.org/@calumk/editorjs-media-asset/-/editorjs-media-asset-1.0.5.tgz","fileCount":5,"integrity":"sha512-f1AbsSUZXhjg3W/gj9ivoAvpOPc1Y69Hdu7n5GIPmeHOmCt+6qjHwI397R2KDp8BobdQyoaioTW24w7zuT2f3Q==","signatures":[{"sig":"MEYCIQDYcVR8G0Gx+xuTO6jkglO5CTekx7bVUvRYG+87AWVffQIhALTdx/7XKW2KuTUbdGMg/kwxcR4EVzZa27qDVIztgYJq","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":91220},"main":"./dist/calumk-editorjs-media-asset-tool.umd.js","module":"./dist/calumk-editorjs-media-asset-tool.mjs","exports":{".":{"import":"./dist/calumk-editorjs-media-asset-tool.mjs","require":"./dist/calumk-editorjs-media-asset-tool.umd.js"}},"gitHead":"ea470705e5b191d9304dff8e79fe984210e82ead","scripts":{"dev":"vite","lint":"eslint src/ --ext .js","build":"vite build","watch":"vite build --watch","lint:fix":"eslint src/ --ext .js --fix","lint:errors":"eslint src/ --ext .js --quiet"},"_npmUser":{"name":"calumk","email":"calum@calumk.com"},"repository":{"url":"git+https://github.com/calumk/editorjs-media-asset.git","type":"git"},"_npmVersion":"10.8.2","description":"Media (Image, Audio, Video, and Document/PDF/Zip) Tool for Editor.js","directories":{},"_nodeVersion":"20.18.1","dependencies":{"@codexteam/icons":"^0.0.6"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"devDependencies":{"vite":"^4.5.0","eslint":"^6.8.0","request":"^2.88.0","formidable":"^1.2.1","eslint-loader":"^4.0.0","postcss-nested":"^4.1.0","@codexteam/ajax":"^4.2.0","eslint-config-codex":"^1.3.3","postcss-nested-ancestors":"^2.0.0","vite-plugin-css-injected-by-js":"^3.3.0"},"_npmOperationalInternal":{"tmp":"tmp/editorjs-media-asset_1.0.5_1737831712211_0.989803326196441","host":"s3://npm-registry-packages-npm-production"}},"1.0.6":{"name":"@calumk/editorjs-media-asset","version":"1.0.6","keywords":["codex editor","media","editor.js","editorjs"],"author":{"name":"CalumK","email":"calum@calumk.com"},"license":"MIT","_id":"@calumk/editorjs-media-asset@1.0.6","maintainers":[{"name":"calumk","email":"calum@calumk.com"}],"homepage":"https://github.com/calumk/editorjs-media-asset/#readme","bugs":{"url":"https://github.com/calumk/editorjs-media-asset/issues"},"dist":{"shasum":"87056f119c22f4911adda19e6fa5ff10ce910ce3","tarball":"https://registry.npmjs.org/@calumk/editorjs-media-asset/-/editorjs-media-asset-1.0.6.tgz","fileCount":5,"integrity":"sha512-Hz7Z9ifwLyugkirFKlJwFrB1/bvZO3gAi4pC+OO/RmgVCDOwaPE7ZvUCkq0X7hPYLWJlVrqTHGAsmV3NuLW0XQ==","signatures":[{"sig":"MEQCIEzWCtUEE3fqY5qbl8Cos1nlfEqfD84lQDLF2K1s8ai6AiA0gjuzT3XZdEBNBWe45V8sK0KU0rGs8kYoTj40ZY0LGQ==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":90884},"main":"./dist/calumk-editorjs-media-asset-tool.umd.js","module":"./dist/calumk-editorjs-media-asset-tool.mjs","exports":{".":{"import":"./dist/calumk-editorjs-media-asset-tool.mjs","require":"./dist/calumk-editorjs-media-asset-tool.umd.js"}},"gitHead":"3b28244b8409a0d8d41c7725dfba1f03251262ec","scripts":{"dev":"vite","lint":"eslint src/ --ext .js","build":"vite build","watch":"vite build --watch","lint:fix":"eslint src/ --ext .js --fix","lint:errors":"eslint src/ --ext .js --quiet"},"_npmUser":{"name":"calumk","email":"calum@calumk.com"},"repository":{"url":"git+https://github.com/calumk/editorjs-media-asset.git","type":"git"},"_npmVersion":"10.8.2","description":"Media (Image, Audio, Video, and Document/PDF/Zip) Tool for Editor.js","directories":{},"_nodeVersion":"20.18.1","dependencies":{"@codexteam/icons":"^0.0.6"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"devDependencies":{"vite":"^4.5.0","eslint":"^6.8.0","request":"^2.88.0","formidable":"^1.2.1","eslint-loader":"^4.0.0","postcss-nested":"^4.1.0","@codexteam/ajax":"^4.2.0","eslint-config-codex":"^1.3.3","postcss-nested-ancestors":"^2.0.0","vite-plugin-css-injected-by-js":"^3.3.0"},"_npmOperationalInternal":{"tmp":"tmp/editorjs-media-asset_1.0.6_1737839859916_0.47231327391138866","host":"s3://npm-registry-packages-npm-production"}},"1.0.7":{"name":"@calumk/editorjs-media-asset","version":"1.0.7","keywords":["codex editor","media","editor.js","editorjs"],"author":{"name":"CalumK","email":"calum@calumk.com"},"license":"MIT","_id":"@calumk/editorjs-media-asset@1.0.7","maintainers":[{"name":"calumk","email":"calum@calumk.com"}],"homepage":"https://github.com/calumk/editorjs-media-asset/#readme","bugs":{"url":"https://github.com/calumk/editorjs-media-asset/issues"},"dist":{"shasum":"f59d8a456eb1cc89b80883a2a8c88bb42bfd7efb","tarball":"https://registry.npmjs.org/@calumk/editorjs-media-asset/-/editorjs-media-asset-1.0.7.tgz","fileCount":5,"integrity":"sha512-lo7NiAu2VGY8PbhXXX+mYPui6CrdgSrzDq+jHcq9cUTrH1Q8YSo/btGrcOTPnxn9vC1LGeB+KkiIohwduGeOwQ==","signatures":[{"sig":"MEUCIQCvxc3NMv5HPKFFuh+GkZ32JWky5A9U9/grBzYGSalkmwIgEGM6rlgPggg9jCkKR3ETlwz7XzYC2Jqu1z5CbnlNkEQ=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":92046},"main":"./dist/calumk-editorjs-media-asset-tool.umd.js","module":"./dist/calumk-editorjs-media-asset-tool.mjs","exports":{".":{"import":"./dist/calumk-editorjs-media-asset-tool.mjs","require":"./dist/calumk-editorjs-media-asset-tool.umd.js"}},"gitHead":"e874558cb211358a5b1010255dcccdd90f714bd7","scripts":{"dev":"vite","lint":"eslint src/ --ext .js","build":"vite build","watch":"vite build --watch","lint:fix":"eslint src/ --ext .js --fix","lint:errors":"eslint src/ --ext .js --quiet"},"_npmUser":{"name":"calumk","email":"calum@calumk.com"},"repository":{"url":"git+https://github.com/calumk/editorjs-media-asset.git","type":"git"},"_npmVersion":"10.8.2","description":"Media (Image, Audio, Video, and Document/PDF/Zip) Tool for Editor.js","directories":{},"_nodeVersion":"20.18.1","dependencies":{"@codexteam/icons":"^0.0.6"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"devDependencies":{"vite":"^4.5.0","eslint":"^6.8.0","request":"^2.88.0","formidable":"^1.2.1","eslint-loader":"^4.0.0","postcss-nested":"^4.1.0","@codexteam/ajax":"^4.2.0","eslint-config-codex":"^1.3.3","postcss-nested-ancestors":"^2.0.0","vite-plugin-css-injected-by-js":"^3.3.0"},"_npmOperationalInternal":{"tmp":"tmp/editorjs-media-asset_1.0.7_1737883602704_0.7267022759022737","host":"s3://npm-registry-packages-npm-production"}},"1.0.8":{"name":"@calumk/editorjs-media-asset","version":"1.0.8","keywords":["codex editor","media","editor.js","editorjs"],"author":{"name":"CalumK","email":"calum@calumk.com"},"license":"MIT","_id":"@calumk/editorjs-media-asset@1.0.8","maintainers":[{"name":"calumk","email":"calum@calumk.com"}],"homepage":"https://github.com/calumk/editorjs-media-asset/#readme","bugs":{"url":"https://github.com/calumk/editorjs-media-asset/issues"},"dist":{"shasum":"9df8f7f6950e4d1e53e2b35b5b99630da81cb057","tarball":"https://registry.npmjs.org/@calumk/editorjs-media-asset/-/editorjs-media-asset-1.0.8.tgz","fileCount":5,"integrity":"sha512-hfcTUt6Ixe/AwXlAuOKdoklztqUs1bqGrh5qyrPGRMnHM51R8F0oXgz3XPWw6bNcC+fhDOE0OUSQlM/ppWx2eA==","signatures":[{"sig":"MEYCIQDYB51CpF1ihzdnJTxuUx8YXUEZrylYYYR0OebklcIlaQIhAM9OTZNLTKw3vzmKtB7lKC5AAkNPkfR6WyIDFKd1iW1M","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":92009},"main":"./dist/calumk-editorjs-media-asset-tool.umd.js","module":"./dist/calumk-editorjs-media-asset-tool.mjs","exports":{".":{"import":"./dist/calumk-editorjs-media-asset-tool.mjs","require":"./dist/calumk-editorjs-media-asset-tool.umd.js"}},"gitHead":"cee7f16da2e98962ec2dc3e7a0aa7c9be24b9eeb","scripts":{"dev":"vite","lint":"eslint src/ --ext .js","build":"vite build","watch":"vite build --watch","lint:fix":"eslint src/ --ext .js --fix","lint:errors":"eslint src/ --ext .js --quiet"},"_npmUser":{"name":"calumk","email":"calum@calumk.com"},"repository":{"url":"git+https://github.com/calumk/editorjs-media-asset.git","type":"git"},"_npmVersion":"10.8.2","description":"Media (Image, Audio, Video, and Document/PDF/Zip) Tool for Editor.js","directories":{},"_nodeVersion":"20.18.1","dependencies":{"@codexteam/icons":"^0.0.6"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"devDependencies":{"vite":"^4.5.0","eslint":"^6.8.0","request":"^2.88.0","formidable":"^1.2.1","eslint-loader":"^4.0.0","postcss-nested":"^4.1.0","@codexteam/ajax":"^4.2.0","eslint-config-codex":"^1.3.3","postcss-nested-ancestors":"^2.0.0","vite-plugin-css-injected-by-js":"^3.3.0"},"_npmOperationalInternal":{"tmp":"tmp/editorjs-media-asset_1.0.8_1737904680083_0.281010402329251","host":"s3://npm-registry-packages-npm-production"}},"1.0.9":{"name":"@calumk/editorjs-media-asset","version":"1.0.9","keywords":["codex editor","media","editor.js","editorjs"],"author":{"name":"CalumK","email":"calum@calumk.com"},"license":"MIT","_id":"@calumk/editorjs-media-asset@1.0.9","maintainers":[{"name":"calumk","email":"calum@calumk.com"}],"homepage":"https://github.com/calumk/editorjs-media-asset/#readme","bugs":{"url":"https://github.com/calumk/editorjs-media-asset/issues"},"dist":{"shasum":"e7a95d8c24765af59ad6289917594029655232f0","tarball":"https://registry.npmjs.org/@calumk/editorjs-media-asset/-/editorjs-media-asset-1.0.9.tgz","fileCount":5,"integrity":"sha512-28kKSFP3rzYOhehY4YbvXCAU7i6UJXpap9VDyX8wbX9xYuqyuKPx0kit+e0rSRdJBFLpen6wjhfuSurwqa5Ixg==","signatures":[{"sig":"MEQCICfhfGPzf/CzEfsN+zQaRm6J4elDyKZNTPRxiRgOKOmPAiBc6Mah9dHACVXTbHcZ0CLLXwUIf2iPrRTq++CB8bqVbg==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":92683},"main":"./dist/calumk-editorjs-media-asset-tool.umd.js","module":"./dist/calumk-editorjs-media-asset-tool.mjs","exports":{".":{"import":"./dist/calumk-editorjs-media-asset-tool.mjs","require":"./dist/calumk-editorjs-media-asset-tool.umd.js"}},"gitHead":"bc6f1eac3ce8a787097fdcb04c9c715751f79c96","scripts":{"dev":"vite","lint":"eslint src/ --ext .js","build":"vite build","watch":"vite build --watch","lint:fix":"eslint src/ --ext .js --fix","lint:errors":"eslint src/ --ext .js --quiet"},"_npmUser":{"name":"calumk","email":"calum@calumk.com"},"repository":{"url":"git+https://github.com/calumk/editorjs-media-asset.git","type":"git"},"_npmVersion":"10.8.2","description":"Media (Image, Audio, Video, and Document/PDF/Zip) Tool for Editor.js","directories":{},"_nodeVersion":"20.18.2","dependencies":{"@codexteam/icons":"^0.0.6"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"devDependencies":{"vite":"^4.5.0","eslint":"^6.8.0","request":"^2.88.0","formidable":"^1.2.1","eslint-loader":"^4.0.0","postcss-nested":"^4.1.0","@codexteam/ajax":"^4.2.0","eslint-config-codex":"^1.3.3","postcss-nested-ancestors":"^2.0.0","vite-plugin-css-injected-by-js":"^3.3.0"},"_npmOperationalInternal":{"tmp":"tmp/editorjs-media-asset_1.0.9_1738313648999_0.4254935901864443","host":"s3://npm-registry-packages-npm-production"}},"1.0.10":{"name":"@calumk/editorjs-media-asset","version":"1.0.10","keywords":["codex editor","media","editor.js","editorjs"],"description":"Media (Image, Audio, Video, and Document/PDF/Zip) Tool for Editor.js","license":"MIT","repository":{"type":"git","url":"git+https://github.com/calumk/editorjs-media-asset.git"},"main":"./dist/calumk-editorjs-media-asset-tool.umd.js","module":"./dist/calumk-editorjs-media-asset-tool.mjs","exports":{".":{"import":"./dist/calumk-editorjs-media-asset-tool.mjs","require":"./dist/calumk-editorjs-media-asset-tool.umd.js"}},"scripts":{"dev":"vite","build":"vite build","watch":"vite build --watch","lint":"eslint src/ --ext .js","lint:errors":"eslint src/ --ext .js --quiet","lint:fix":"eslint src/ --ext .js --fix"},"author":{"name":"CalumK","email":"calum@calumk.com"},"devDependencies":{"@codexteam/ajax":"^4.2.0","eslint":"^6.8.0","eslint-config-codex":"^1.3.3","eslint-loader":"^4.0.0","formidable":"^1.2.1","postcss-nested":"^4.1.0","postcss-nested-ancestors":"^2.0.0","request":"^2.88.0","vite":"^4.5.0","vite-plugin-css-injected-by-js":"^3.3.0"},"dependencies":{"@codexteam/icons":"^0.0.6"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"bugs":{"url":"https://github.com/calumk/editorjs-media-asset/issues"},"homepage":"https://github.com/calumk/editorjs-media-asset/#readme","_id":"@calumk/editorjs-media-asset@1.0.10","gitHead":"23421469464def71550b7d668f8d97c135747a15","_nodeVersion":"20.18.2","_npmVersion":"10.8.2","dist":{"integrity":"sha512-DEdpaFKs5XoabwolIZxfMyuxvMWeMNlh+wXkSF2J8BSWDoEMJ6EOfU0fEgf90gilhQDG9jfKzab2rRibwmoGZA==","shasum":"fa1939fe8c28784abafe642c341233837f3e3477","tarball":"https://registry.npmjs.org/@calumk/editorjs-media-asset/-/editorjs-media-asset-1.0.10.tgz","fileCount":5,"unpackedSize":92469,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIE4+RFn5lB5iQAfKcgibjWHWPTDBUjLg7I+sZDtXmiGkAiBkKBMwb7jNlU8f4zTuuF4jQ1cHUnKPgVqRzQ7hFavhDA=="}]},"_npmUser":{"name":"calumk","email":"calum@calumk.com"},"directories":{},"maintainers":[{"name":"calumk","email":"calum@calumk.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/editorjs-media-asset_1.0.10_1738314343970_0.9446430025002728"},"_hasShrinkwrap":false}},"time":{"created":"2025-01-25T16:23:27.116Z","modified":"2025-01-31T09:05:44.407Z","1.0.1":"2025-01-25T16:23:27.431Z","1.0.2":"2025-01-25T16:36:53.854Z","1.0.3":"2025-01-25T18:21:08.614Z","1.0.4":"2025-01-25T18:27:21.058Z","1.0.5":"2025-01-25T19:01:52.395Z","1.0.6":"2025-01-25T21:17:40.122Z","1.0.7":"2025-01-26T09:26:42.905Z","1.0.8":"2025-01-26T15:18:00.293Z","1.0.9":"2025-01-31T08:54:09.227Z","1.0.10":"2025-01-31T09:05:44.193Z"},"bugs":{"url":"https://github.com/calumk/editorjs-media-asset/issues"},"author":{"name":"CalumK","email":"calum@calumk.com"},"license":"MIT","homepage":"https://github.com/calumk/editorjs-media-asset/#readme","keywords":["codex editor","media","editor.js","editorjs"],"repository":{"type":"git","url":"git+https://github.com/calumk/editorjs-media-asset.git"},"description":"Media (Image, Audio, Video, and Document/PDF/Zip) Tool for Editor.js","maintainers":[{"name":"calumk","email":"calum@calumk.com"}],"readme":"\n# Media Asset Tool\n\nMedia Assset Block for the [Editor.js](https://editorjs.io).\n\nThis is a fork of the medial block : https://github.com/envidual/editorjs-media, which in turn is a fork of the original image block : https://github.com/editor-js/image\n\n\n![Example Image](example.jpg)\n\n> [!Warning]\n> This is in alpha stage and not yet ready for production use.\n\n---\n\n\nIt adds the ability to upload Documents, Zip files, PDF's etc.\n\nEssentially, it embeds image/video/audio functionality and file attachment functionality into one tool.\n\n\n## Features\n\n- Uploading file from the device\n- Pasting copied content from the web\n- Pasting media by drag-n-drop\n- Pasting files and screenshots from Clipboard\n- ~~Allows adding a border, and a background~~\n~~Allows stretching media to the container's full-width~~\n\n**Notes**\n\nThis Tool requires server-side implementation for the file uploading. See [backend response format](#server-format) for more details.\n\n## Installation\n\nGet the package\n\n```shell\nbun i @calumk/editorjs-media-asset\n```\n\nInclude module at your application\n\n```javascript\nimport MediaAssetTool from '@calumk/editorjs-media-asset';\n```\n\nOptionally, you can load this tool from [JsDelivr CDN](https://cdn.jsdelivr.net/npm/@calumk/editorjs-media-asset@latest)\n\n## Usage\n\nAdd a new Tool to the `tools` property of the Editor.js initial config.\n\n```javascript\nimport MediaAssetTool from '@calumk/editorjs-media-asset';\n\n// or if you inject MediaTool via standalone script\nconst MediaAssetTool = window.MediaAssetTool;\n\nvar editor = EditorJS({\n  ...\n\n  tools: {\n    ...\n    media: {\n      class: MediaAssetTool,\n      config: {\n        endpoints: {\n          byFile: 'http://localhost:8008/uploadFile', // Your backend file uploader endpoint\n          byUrl: 'http://localhost:8008/fetchUrl', // Your endpoint that provides uploading by Url\n        }\n      }\n    }\n  }\n\n  ...\n});\n```\n\n## Config Params\n\nImage Tool supports these configuration parameters:\n\n| Field | Type     | Description                                                                                                                                                                             |\n| ----- | -------- |-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| endpoints | `{byFile: string, byUrl: string}` | Endpoints for file uploading. <br> Contains 2 fields: <br> __byFile__ - for file uploading <br> __byUrl__ - for uploading by URL                                                        |\n| field | `string` | (default: `media`) Name of uploaded media field in POST request                                                                                                                         |\n| types | `string` | (default: `image/*,audio/*,video/*`) Mime-types of files that can be [accepted with file selection](https://github.com/codex-team/ajax#accept-string).                                  |\n| additionalRequestData | `object` | Object with any data you want to send with uploading requests                                                                                                                           |\n| additionalRequestHeaders | `object` | Object with any custom headers which will be added to request. [See example](https://github.com/codex-team/ajax/blob/e5bc2a2391a18574c88b7ecd6508c29974c3e27f/README.md#headers-object) |\n| captionPlaceholder | `string` | (default: `Caption`) Placeholder for Caption input                                                                                                                                      |\n| buttonContent | `string` | Allows to override HTML content of «Select file» button                                                                                                                                 |\n| uploader | `{{uploadByFile: function, uploadByUrl: function}}` | Optional custom uploading methods. See details below.                                                                                                                                   |\n| actions | `array` | Array with custom actions to show in the tool's settings menu. See details below.                                                                                                       |\n\nNote that if you don't implement your custom uploader methods, the `endpoints` param is required.\n\n\n\n\n## Tool's settings\n\n> [!Important]\n> These are deprecated/removed in this fork.\n\n~~1. Add border~~  \n~~2. Stretch to full-width~~  \n~~3. Add background~~\n\n\n\nAdd extra setting-buttons by adding them to the `actions`-array in the configuration:\n```js\nactions: [\n    {\n        name: 'new_button',\n        icon: '<svg>...</svg>',\n        title: 'New Button',\n        toggle: true,\n        action: (name) => {\n            alert(`${name} button clicked`);\n        }\n    }\n]\n```\n\n**_NOTE:_**  return value of `action` callback for settings whether action button should be toggled or not is *deprecated*. Consider using `toggle` option instead.\n\n## Output data\n\nThis Tool returns `data` with following format\n\n| Field          | Type      | Description                                                                               |\n| -------------- | --------- |-------------------------------------------------------------------------------------------|\n| file           | `object`  | Uploaded file data. Any data got from backend uploader. Always contain the `url` property |\n| caption        | `string`  | media caption                                                                             |\n| withBorder     | `boolean` | add border to media                                                                       |\n| withBackground | `boolean` | need to add background                                                                    |\n| stretched      | `boolean` | stretch media to screen's width                                                           |\n\n\n```json\n{\n    \"type\" : \"media\",\n    \"data\" : {\n        \"file\": {\n            \"url\" : \"https://www.tesla.com/tesla_theme/assets/img/_vehicle_redesign/roadster_and_semi/roadster/hero.jpg\"\n        },\n        \"caption\" : \"Roadster // tesla.com\",\n        \"withBorder\" : false,\n        \"withBackground\" : false,\n        \"stretched\" : true\n    }\n}\n```\n\n## Backend response format <a name=\"server-format\"></a>\n\nThis Tool works by one of the following schemes:\n\n1. Uploading files from the device\n2. Uploading by URL (handle media-like URL's pasting)\n3. Uploading by drag-n-drop file\n4. Uploading by pasting from Clipboard\n\n### Uploading files from device <a name=\"from-device\"></a>\n\nScenario:\n\n1. User select file from the device\n2. Tool sends it to **your** backend (on `config.endpoints.byFile` route)\n3. Your backend should save file and return file data with JSON at specified format.\n4. Medial tool shows saved media and stores server answer\n\nSo, you can implement backend for file saving by your own way. It is a specific and trivial task depending on your\nenvironment and stack.\n\nThe tool executes the request as [`multipart/form-data`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Methods/POST), with the key as the value of `field`  in configuration.\n\nThe response of your uploader **should**  cover the following format:\n\n```json5\n{\n    \"success\" : 1,\n    \"file\": {\n        \"url\" : \"https://www.tesla.com/tesla_theme/assets/img/_vehicle_redesign/roadster_and_semi/roadster/hero.jpg\",\n        // ... and any additional fields you want to store, such as width, height, color, extension, etc\n    }\n}\n```\n\n**success** - uploading status. 1 for successful, 0 for failed\n\n**file** - uploaded file data. **Must** contain an `url` field with full public path to the uploaded medium.\nAlso, can contain any additional fields you want to store. For example, width, height, id etc.\nAll additional fields will be saved at the `file` object of output data.\n\n### Uploading by pasted URL\n\nScenario:\n\n1. User pastes an URL of the media file to the Editor\n2. Editor pass pasted string to the Image Tool\n3. Tool sends it to **your** backend (on `config.endpoints.byUrl` route) via 'url' in request body\n4. Your backend should accept URL, **download and save the original file by passed URL** and return file data with JSON at specified format.\n5. Image tool shows saved medium and stores server answer\n\nThe tool executes the request as `application/json` with the following request body:\n\n```json5\n{\n  \"url\": \"<pasted URL from the user>\"\n  \"additionalRequestData\": \"<additional request data from configuration>\"\n}\n```\n\nResponse of your uploader should be at the same format as described at «[Uploading files from device](#from-device)» section\n\n\n### Uploading by drag-n-drop or from Clipboard\n\nYour backend will accept file as FormData object in field name, specified by `config.field` (by default, «`media`»).\nYou should save it and return the same response format as described above.\n\n## Providing custom uploading methods\n\nAs mentioned at the Config Params section, you have an ability to provide own custom uploading methods.\nIt is a quite simple: implement `uploadByFile` and `uploadByUrl` methods and pass them via `uploader` config param.\nBoth methods must return a Promise that resolves with response in a format that described at the [backend response format](#server-format) section.\n\n\n| Method         | Arguments | Return value | Description                                                                                         |\n| -------------- | --------- | -------------|-----------------------------------------------------------------------------------------------------|\n| uploadByFile   | `File`    | `{Promise.<{success, file: {url}}>}` | Upload file to the server and return an uploaded media data                                         |\n| uploadByUrl    | `string`  | `{Promise.<{success, file: {url}}>}` | Send URL-string to the server, that should load media by this URL and return an uploaded media data |\n\nExample:\n\n```js\nimport MediaTool from '@envidual/editorjs-media';\n\nvar editor = EditorJS({\n  ...\n\n  tools: {\n    ...\n    media: {\n      class: MediaTool,\n      config: {\n        /**\n         * Custom uploader\n         */\n        uploader: {\n          /**\n           * Upload file to the server and return an uploaded media data\n           * @param {File} file - file selected from the device or pasted by drag-n-drop\n           * @return {Promise.<{success, file: {url}}>}\n           */\n          uploadByFile(file){\n            // your own uploading logic here\n            return MyAjax.upload(file).then(() => {\n              return {\n                success: 1,\n                file: {\n                  url: 'https://codex.so/upload/redactor_images/o_80beea670e49f04931ce9e3b2122ac70.jpg',\n                  // any other media data you want to store, such as width, height, color, extension, etc\n                }\n              };\n            });\n          },\n\n          /**\n           * Send URL-string to the server. Backend should load media by this URL and return an uploaded media data\n           * @param {string} url - pasted media URL\n           * @return {Promise.<{success, file: {url}}>}\n           */\n          uploadByUrl(url){\n            // your ajax request for uploading\n            return MyAjax.upload(file).then(() => {\n              return {\n                success: 1,\n                file: {\n                  url: 'https://codex.so/upload/redactor_images/o_e48549d1855c7fc1807308dd14990126.jpg',,\n                  // any other media data you want to store, such as width, height, color, extension, etc\n                }\n              }\n            })\n          }\n        }\n      }\n    }\n  }\n\n  ...\n});\n```\n","readmeFilename":"README.md"}