@ckeditor/ckeditor5-easy-image 45.2.1-alpha.3 → 45.2.1-alpha.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md.
4
- */(()=>{var e={237:e=>{"use strict";e.exports=CKEditor5.dll},260:(e,t,r)=>{e.exports=r(237)("./src/upload.js")},584:(e,t,r)=>{e.exports=r(237)("./src/utils.js")},782:(e,t,r)=>{e.exports=r(237)("./src/core.js")}},t={};function r(a){var i=t[a];if(void 0!==i)return i.exports;var o=t[a]={exports:{}};return e[a](o,o.exports,r),o.exports}r.d=(e,t)=>{for(var a in t)r.o(t,a)&&!r.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:t[a]})},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 a={};(()=>{"use strict";r.r(a),r.d(a,{CloudServicesUploadAdapter:()=>o,EasyImage:()=>l});var e=r(782),t=r(584),i=r(260);class o extends e.Plugin{_uploadGateway;static get pluginName(){return"CloudServicesUploadAdapter"}static get isOfficialPlugin(){return!0}static get requires(){return["CloudServices",i.FileRepository]}init(){const e=this.editor,t=e.plugins.get("CloudServices"),r=t.token,a=t.uploadUrl;if(!r)return;const o=e.plugins.get("CloudServicesCore");this._uploadGateway=o.createUploadGateway(r,a),e.plugins.get(i.FileRepository).createUploadAdapter=e=>new s(this._uploadGateway,e)}}class s{uploadGateway;loader;fileUploader;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 isOfficialPlugin(){return!0}static get requires(){return[o,"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=a})();
4
+ */(()=>{var e={237:e=>{"use strict";e.exports=CKEditor5.dll},260:(e,t,r)=>{e.exports=r(237)("./src/upload.js")},584:(e,t,r)=>{e.exports=r(237)("./src/utils.js")},782:(e,t,r)=>{e.exports=r(237)("./src/core.js")}},t={};function r(a){var i=t[a];if(void 0!==i)return i.exports;var o=t[a]={exports:{}};return e[a](o,o.exports,r),o.exports}r.d=(e,t)=>{for(var a in t)r.o(t,a)&&!r.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:t[a]})},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 a={};(()=>{"use strict";r.r(a),r.d(a,{CloudServicesUploadAdapter:()=>o,EasyImage:()=>l});var e=r(782),t=r(584),i=r(260);class o extends e.Plugin{_uploadGateway;static get pluginName(){return"CloudServicesUploadAdapter"}static get isOfficialPlugin(){return!0}static get requires(){return["CloudServices",i.FileRepository]}init(){const e=this.editor,t=e.plugins.get("CloudServices"),r=t.token,a=t.uploadUrl;if(!r)return;const o=e.plugins.get("CloudServicesCore");this._uploadGateway=o.createUploadGateway(r,a),e.plugins.get(i.FileRepository).createUploadAdapter=e=>new s(this._uploadGateway,e)}}class s{uploadGateway;loader;fileUploader;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 isOfficialPlugin(){return!0}static get requires(){return[o,"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=a})();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-easy-image",
3
- "version": "45.2.1-alpha.3",
3
+ "version": "45.2.1-alpha.5",
4
4
  "description": "Easy Image feature for CKEditor 5.",
5
5
  "keywords": [
6
6
  "ckeditor",
@@ -13,11 +13,11 @@
13
13
  "type": "module",
14
14
  "main": "src/index.js",
15
15
  "dependencies": {
16
- "@ckeditor/ckeditor5-cloud-services": "45.2.1-alpha.3",
17
- "@ckeditor/ckeditor5-core": "45.2.1-alpha.3",
18
- "@ckeditor/ckeditor5-upload": "45.2.1-alpha.3",
19
- "@ckeditor/ckeditor5-utils": "45.2.1-alpha.3",
20
- "ckeditor5": "45.2.1-alpha.3"
16
+ "@ckeditor/ckeditor5-cloud-services": "45.2.1-alpha.5",
17
+ "@ckeditor/ckeditor5-core": "45.2.1-alpha.5",
18
+ "@ckeditor/ckeditor5-upload": "45.2.1-alpha.5",
19
+ "@ckeditor/ckeditor5-utils": "45.2.1-alpha.5",
20
+ "ckeditor5": "45.2.1-alpha.5"
21
21
  },
22
22
  "author": "CKSource (http://cksource.com/)",
23
23
  "license": "SEE LICENSE IN LICENSE.md",