@ckeditor/ckeditor5-easy-image
Advanced tools
Comparing version 37.0.0-alpha.0 to 37.0.0-alpha.1
/*! | ||
* @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved. | ||
* For licensing, see LICENSE.md. | ||
*/(()=>{var e={704:(e,t,r)=>{e.exports=r(79)("./src/core.js")},448:(e,t,r)=>{e.exports=r(79)("./src/upload.js")},209:(e,t,r)=>{e.exports=r(79)("./src/utils.js")},79:e=>{"use strict";e.exports=CKEditor5.dll}},t={};function r(o){var a=t[o];if(void 0!==a)return a.exports;var i=t[o]={exports:{}};return e[o](i,i.exports,r),i.exports}r.d=(e,t)=>{for(var o in t)r.o(t,o)&&!r.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var o={};(()=>{"use strict";r.r(o),r.d(o,{CloudServicesUploadAdapter:()=>i,EasyImage:()=>l});var e=r(704),t=r(209),a=r(448);class i extends e.Plugin{static get pluginName(){return"CloudServicesUploadAdapter"}static get requires(){return["CloudServices",a.FileRepository]}init(){const e=this.editor,t=e.plugins.get("CloudServices"),r=t.token,o=t.uploadUrl;if(!r)return;const i=e.plugins.get("CloudServicesCore");this._uploadGateway=i.createUploadGateway(r,o),e.plugins.get(a.FileRepository).createUploadAdapter=e=>new s(this._uploadGateway,e)}}class s{constructor(e,t){this.uploadGateway=e,this.loader=t}upload(){return this.loader.file.then((e=>(this.fileUploader=this.uploadGateway.upload(e),this.fileUploader.on("progress",((e,t)=>{this.loader.uploadTotal=t.total,this.loader.uploaded=t.uploaded})),this.fileUploader.send())))}abort(){this.fileUploader?.abort()}}class l extends e.Plugin{static get pluginName(){return"EasyImage"}static get requires(){return[i,"ImageUpload"]}init(){const e=this.editor;e.plugins.has("ImageBlockEditing")||e.plugins.has("ImageInlineEditing")||(0,t.logWarning)("easy-image-image-feature-missing",e)}}})(),(window.CKEditor5=window.CKEditor5||{}).easyImage=o})(); | ||
*/(()=>{var e={704:(e,t,r)=>{e.exports=r(79)("./src/core.js")},448:(e,t,r)=>{e.exports=r(79)("./src/upload.js")},209:(e,t,r)=>{e.exports=r(79)("./src/utils.js")},79:e=>{"use strict";e.exports=CKEditor5.dll}},t={};function r(o){var a=t[o];if(void 0!==a)return a.exports;var i=t[o]={exports:{}};return e[o](i,i.exports,r),i.exports}r.d=(e,t)=>{for(var o in t)r.o(t,o)&&!r.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var o={};(()=>{"use strict";r.r(o),r.d(o,{CloudServicesUploadAdapter:()=>i,EasyImage:()=>l});var e=r(704),t=r(209),a=r(448);class i extends e.Plugin{static get pluginName(){return"CloudServicesUploadAdapter"}static get requires(){return["CloudServices",a.FileRepository]}init(){const e=this.editor,t=e.plugins.get("CloudServices"),r=t.token,o=t.uploadUrl;if(!r)return;const i=e.plugins.get("CloudServicesCore");this._uploadGateway=i.createUploadGateway(r,o),e.plugins.get(a.FileRepository).createUploadAdapter=e=>new s(this._uploadGateway,e)}}class s{constructor(e,t){this.uploadGateway=e,this.loader=t}upload(){return this.loader.file.then((e=>(this.fileUploader=this.uploadGateway.upload(e),this.fileUploader.on("progress",((e,t)=>{this.loader.uploadTotal=t.total,this.loader.uploaded=t.uploaded})),this.fileUploader.send())))}abort(){var e;null===(e=this.fileUploader)||void 0===e||e.abort()}}class l extends e.Plugin{static get pluginName(){return"EasyImage"}static get requires(){return[i,"ImageUpload"]}init(){const e=this.editor;e.plugins.has("ImageBlockEditing")||e.plugins.has("ImageInlineEditing")||(0,t.logWarning)("easy-image-image-feature-missing",e)}}})(),(window.CKEditor5=window.CKEditor5||{}).easyImage=o})(); |
{ | ||
"name": "@ckeditor/ckeditor5-easy-image", | ||
"version": "37.0.0-alpha.0", | ||
"version": "37.0.0-alpha.1", | ||
"description": "Easy Image feature for CKEditor 5.", | ||
@@ -15,15 +15,15 @@ "keywords": [ | ||
"dependencies": { | ||
"ckeditor5": "^37.0.0-alpha.0" | ||
"ckeditor5": "^37.0.0-alpha.1" | ||
}, | ||
"devDependencies": { | ||
"@ckeditor/ckeditor5-clipboard": "^37.0.0-alpha.0", | ||
"@ckeditor/ckeditor5-cloud-services": "^37.0.0-alpha.0", | ||
"@ckeditor/ckeditor5-core": "^37.0.0-alpha.0", | ||
"@ckeditor/ckeditor5-dev-utils": "^34.0.0", | ||
"@ckeditor/ckeditor5-editor-classic": "^37.0.0-alpha.0", | ||
"@ckeditor/ckeditor5-image": "^37.0.0-alpha.0", | ||
"@ckeditor/ckeditor5-paragraph": "^37.0.0-alpha.0", | ||
"@ckeditor/ckeditor5-theme-lark": "^37.0.0-alpha.0", | ||
"@ckeditor/ckeditor5-upload": "^37.0.0-alpha.0", | ||
"@ckeditor/ckeditor5-utils": "^37.0.0-alpha.0", | ||
"@ckeditor/ckeditor5-clipboard": "^37.0.0-alpha.1", | ||
"@ckeditor/ckeditor5-cloud-services": "^37.0.0-alpha.1", | ||
"@ckeditor/ckeditor5-core": "^37.0.0-alpha.1", | ||
"@ckeditor/ckeditor5-dev-utils": "^35.0.0", | ||
"@ckeditor/ckeditor5-editor-classic": "^37.0.0-alpha.1", | ||
"@ckeditor/ckeditor5-image": "^37.0.0-alpha.1", | ||
"@ckeditor/ckeditor5-paragraph": "^37.0.0-alpha.1", | ||
"@ckeditor/ckeditor5-theme-lark": "^37.0.0-alpha.1", | ||
"@ckeditor/ckeditor5-upload": "^37.0.0-alpha.1", | ||
"@ckeditor/ckeditor5-utils": "^37.0.0-alpha.1", | ||
"typescript": "^4.8.4", | ||
@@ -56,3 +56,3 @@ "webpack": "^5.58.1", | ||
"scripts": { | ||
"build": "tsc -p ./tsconfig.release.json", | ||
"build": "tsc -p ./tsconfig.json", | ||
"postversion": "npm run build", | ||
@@ -59,0 +59,0 @@ "dll:build": "webpack" |
@@ -15,3 +15,3 @@ /** | ||
* After enabling this adapter you need to configure the CKEditor Cloud Services integration through | ||
* {@link module:cloud-services/cloudservices~CloudServicesConfig `config.cloudServices`}. | ||
* {@link module:cloud-services/cloudservicesconfig~CloudServicesConfig `config.cloudServices`}. | ||
*/ | ||
@@ -33,6 +33,1 @@ export default class CloudServicesUploadAdapter extends Plugin { | ||
} | ||
declare module '@ckeditor/ckeditor5-core' { | ||
interface PluginsMap { | ||
[CloudServicesUploadAdapter.pluginName]: CloudServicesUploadAdapter; | ||
} | ||
} |
@@ -16,3 +16,3 @@ /** | ||
* After enabling this adapter you need to configure the CKEditor Cloud Services integration through | ||
* {@link module:cloud-services/cloudservices~CloudServicesConfig `config.cloudServices`}. | ||
* {@link module:cloud-services/cloudservicesconfig~CloudServicesConfig `config.cloudServices`}. | ||
*/ | ||
@@ -66,4 +66,5 @@ export default class CloudServicesUploadAdapter extends Plugin { | ||
abort() { | ||
this.fileUploader?.abort(); | ||
var _a; | ||
(_a = this.fileUploader) === null || _a === void 0 ? void 0 : _a.abort(); | ||
} | ||
} |
@@ -31,3 +31,3 @@ /** | ||
* [CKEditor Cloud Services](https://ckeditor.com/ckeditor-cloud-services/) | ||
* integration through {@link module:cloud-services/cloudservices~CloudServicesConfig `config.cloudServices`}. | ||
* integration through {@link module:cloud-services/cloudservicesconfig~CloudServicesConfig `config.cloudServices`}. | ||
*/ | ||
@@ -48,6 +48,1 @@ export default class EasyImage extends Plugin { | ||
} | ||
declare module '@ckeditor/ckeditor5-core' { | ||
interface PluginsMap { | ||
[EasyImage.pluginName]: EasyImage; | ||
} | ||
} |
@@ -33,3 +33,3 @@ /** | ||
* [CKEditor Cloud Services](https://ckeditor.com/ckeditor-cloud-services/) | ||
* integration through {@link module:cloud-services/cloudservices~CloudServicesConfig `config.cloudServices`}. | ||
* integration through {@link module:cloud-services/cloudservicesconfig~CloudServicesConfig `config.cloudServices`}. | ||
*/ | ||
@@ -36,0 +36,0 @@ export default class EasyImage extends Plugin { |
@@ -10,1 +10,2 @@ /** | ||
export { default as CloudServicesUploadAdapter } from './cloudservicesuploadadapter'; | ||
import './augmentation'; |
@@ -10,1 +10,2 @@ /** | ||
export { default as CloudServicesUploadAdapter } from './cloudservicesuploadadapter'; | ||
import './augmentation'; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
21593
14
269
Updatedckeditor5@^37.0.0-alpha.1