@ckeditor/ckeditor5-easy-image 48.2.0 → 48.3.0-alpha.0

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,11 +1,11 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
- */
5
- import type { EasyImage, CloudServicesUploadAdapter } from './index.js';
6
- declare module '@ckeditor/ckeditor5-core' {
7
- interface PluginsMap {
8
- [EasyImage.pluginName]: EasyImage;
9
- [CloudServicesUploadAdapter.pluginName]: CloudServicesUploadAdapter;
10
- }
2
+ * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
+ */
5
+ import type { EasyImage, CloudServicesUploadAdapter } from "./index.js";
6
+ declare module "@ckeditor/ckeditor5-core" {
7
+ interface PluginsMap {
8
+ [EasyImage.pluginName]: EasyImage;
9
+ [CloudServicesUploadAdapter.pluginName]: CloudServicesUploadAdapter;
10
+ }
11
11
  }
@@ -1,37 +1,37 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
- */
2
+ * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
+ */
5
5
  /**
6
6
  * @module easy-image/cloudservicesuploadadapter
7
7
  */
8
- import { Plugin } from '@ckeditor/ckeditor5-core';
9
- import { FileRepository } from '@ckeditor/ckeditor5-upload';
10
- import { CloudServices } from '@ckeditor/ckeditor5-cloud-services';
8
+ import { Plugin, type PluginDependenciesOf } from "@ckeditor/ckeditor5-core";
9
+ import { FileRepository } from "@ckeditor/ckeditor5-upload";
10
+ import { CloudServices } from "@ckeditor/ckeditor5-cloud-services";
11
11
  /**
12
- * A plugin that enables upload to [CKEditor Cloud Services](https://ckeditor.com/ckeditor-cloud-services/).
13
- *
14
- * It is mainly used by the {@link module:easy-image/easyimage~EasyImage} feature.
15
- *
16
- * After enabling this adapter you need to configure the CKEditor Cloud Services integration through
17
- * {@link module:cloud-services/cloudservicesconfig~CloudServicesConfig `config.cloudServices`}.
18
- */
12
+ * A plugin that enables upload to [CKEditor Cloud Services](https://ckeditor.com/ckeditor-cloud-services/).
13
+ *
14
+ * It is mainly used by the {@link module:easy-image/easyimage~EasyImage} feature.
15
+ *
16
+ * After enabling this adapter you need to configure the CKEditor Cloud Services integration through
17
+ * {@link module:cloud-services/cloudservicesconfig~CloudServicesConfig `config.cloudServices`}.
18
+ */
19
19
  export declare class CloudServicesUploadAdapter extends Plugin {
20
- private _uploadGateway?;
21
- /**
22
- * @inheritDoc
23
- */
24
- static get pluginName(): "CloudServicesUploadAdapter";
25
- /**
26
- * @inheritDoc
27
- */
28
- static get isOfficialPlugin(): true;
29
- /**
30
- * @inheritDoc
31
- */
32
- static get requires(): readonly [typeof CloudServices, typeof FileRepository];
33
- /**
34
- * @inheritDoc
35
- */
36
- init(): void;
20
+ private _uploadGateway?;
21
+ /**
22
+ * @inheritDoc
23
+ */
24
+ static get pluginName(): "CloudServicesUploadAdapter";
25
+ /**
26
+ * @inheritDoc
27
+ */
28
+ static override get isOfficialPlugin(): true;
29
+ /**
30
+ * @inheritDoc
31
+ */
32
+ static get requires(): PluginDependenciesOf<[CloudServices, FileRepository]>;
33
+ /**
34
+ * @inheritDoc
35
+ */
36
+ init(): void;
37
37
  }
@@ -1,52 +1,52 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
- */
2
+ * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
+ */
5
5
  /**
6
- * @module easy-image/easyimage
7
- */
8
- import { Plugin } from '@ckeditor/ckeditor5-core';
9
- import { ImageUpload } from '@ckeditor/ckeditor5-image';
10
- import { CloudServicesUploadAdapter } from './cloudservicesuploadadapter.js';
6
+ * @module easy-image/easyimage
7
+ */
8
+ import { Plugin, type PluginDependenciesOf } from "@ckeditor/ckeditor5-core";
9
+ import { ImageUpload } from "@ckeditor/ckeditor5-image";
10
+ import { CloudServicesUploadAdapter } from "./cloudservicesuploadadapter.js";
11
11
  /**
12
- * The Easy Image feature, which makes the image upload in CKEditor 5 possible with virtually zero
13
- * server setup. A part of the [CKEditor Cloud Services](https://ckeditor.com/ckeditor-cloud-services/)
14
- * family.
15
- *
16
- * This is a "glue" plugin which enables:
17
- *
18
- * * {@link module:easy-image/cloudservicesuploadadapter~CloudServicesUploadAdapter}.
19
- *
20
- * This plugin requires plugin to be present in the editor configuration:
21
- *
22
- * * {@link module:image/image~Image},
23
- * * {@link module:image/imageupload~ImageUpload},
24
- *
25
- * See the [Easy Image Quick Start guide](https://ckeditor.com/docs/cs/latest/guides/easy-image/quick-start.html) to learn how to configure
26
- * and use this feature.
27
- *
28
- * Check out the {@glink features/images/image-upload/image-upload comprehensive "Image upload" guide} to learn about
29
- * other ways to upload images into CKEditor 5.
30
- *
31
- * **Note**: After enabling the Easy Image plugin you need to configure the
32
- * [CKEditor Cloud Services](https://ckeditor.com/ckeditor-cloud-services/)
33
- * integration through {@link module:cloud-services/cloudservicesconfig~CloudServicesConfig `config.cloudServices`}.
34
- */
12
+ * The Easy Image feature, which makes the image upload in CKEditor 5 possible with virtually zero
13
+ * server setup. A part of the [CKEditor Cloud Services](https://ckeditor.com/ckeditor-cloud-services/)
14
+ * family.
15
+ *
16
+ * This is a "glue" plugin which enables:
17
+ *
18
+ * * {@link module:easy-image/cloudservicesuploadadapter~CloudServicesUploadAdapter}.
19
+ *
20
+ * This plugin requires plugin to be present in the editor configuration:
21
+ *
22
+ * * {@link module:image/image~Image},
23
+ * * {@link module:image/imageupload~ImageUpload},
24
+ *
25
+ * See the [Easy Image Quick Start guide](https://ckeditor.com/docs/cs/latest/guides/easy-image/quick-start.html) to learn how to configure
26
+ * and use this feature.
27
+ *
28
+ * Check out the {@glink features/images/image-upload/image-upload comprehensive "Image upload" guide} to learn about
29
+ * other ways to upload images into CKEditor 5.
30
+ *
31
+ * **Note**: After enabling the Easy Image plugin you need to configure the
32
+ * [CKEditor Cloud Services](https://ckeditor.com/ckeditor-cloud-services/)
33
+ * integration through {@link module:cloud-services/cloudservicesconfig~CloudServicesConfig `config.cloudServices`}.
34
+ */
35
35
  export declare class EasyImage extends Plugin {
36
- /**
37
- * @inheritDoc
38
- */
39
- static get pluginName(): "EasyImage";
40
- /**
41
- * @inheritDoc
42
- */
43
- static get isOfficialPlugin(): true;
44
- /**
45
- * @inheritDoc
46
- */
47
- static get requires(): readonly [typeof CloudServicesUploadAdapter, typeof ImageUpload];
48
- /**
49
- * @inheritDoc
50
- */
51
- init(): void;
36
+ /**
37
+ * @inheritDoc
38
+ */
39
+ static get pluginName(): "EasyImage";
40
+ /**
41
+ * @inheritDoc
42
+ */
43
+ static override get isOfficialPlugin(): true;
44
+ /**
45
+ * @inheritDoc
46
+ */
47
+ static get requires(): PluginDependenciesOf<[CloudServicesUploadAdapter, ImageUpload]>;
48
+ /**
49
+ * @inheritDoc
50
+ */
51
+ init(): void;
52
52
  }
@@ -2,3 +2,4 @@
2
2
  * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
4
  */
5
+
@@ -2,3 +2,4 @@
2
2
  * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
4
  */
5
+
package/dist/index.css CHANGED
@@ -3,5 +3,3 @@
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
4
  */
5
5
 
6
-
7
- /*# sourceMappingURL=index.css.map */
package/dist/index.d.ts CHANGED
@@ -1,10 +1,10 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
- */
2
+ * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
+ */
5
5
  /**
6
- * @module easy-image
7
- */
8
- export { EasyImage } from './easyimage.js';
9
- export { CloudServicesUploadAdapter } from './cloudservicesuploadadapter.js';
10
- import './augmentation.js';
6
+ * @module easy-image
7
+ */
8
+ export { EasyImage } from "./easyimage.js";
9
+ export { CloudServicesUploadAdapter } from "./cloudservicesuploadadapter.js";
10
+ import "./augmentation.js";
package/dist/index.js CHANGED
@@ -2,141 +2,162 @@
2
2
  * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
4
  */
5
- import { Plugin } from '@ckeditor/ckeditor5-core/dist/index.js';
6
- import { ImageUpload } from '@ckeditor/ckeditor5-image/dist/index.js';
7
- import { logWarning } from '@ckeditor/ckeditor5-utils/dist/index.js';
8
- import { FileRepository } from '@ckeditor/ckeditor5-upload/dist/index.js';
9
- import { CloudServices } from '@ckeditor/ckeditor5-cloud-services/dist/index.js';
5
+ import { Plugin } from "@ckeditor/ckeditor5-core";
6
+ import { ImageUpload } from "@ckeditor/ckeditor5-image";
7
+ import { logWarning } from "@ckeditor/ckeditor5-utils";
8
+ import { FileRepository } from "@ckeditor/ckeditor5-upload";
9
+ import { CloudServices } from "@ckeditor/ckeditor5-cloud-services";
10
10
 
11
11
  /**
12
- * A plugin that enables upload to [CKEditor Cloud Services](https://ckeditor.com/ckeditor-cloud-services/).
13
- *
14
- * It is mainly used by the {@link module:easy-image/easyimage~EasyImage} feature.
15
- *
16
- * After enabling this adapter you need to configure the CKEditor Cloud Services integration through
17
- * {@link module:cloud-services/cloudservicesconfig~CloudServicesConfig `config.cloudServices`}.
18
- */ class CloudServicesUploadAdapter extends Plugin {
19
- _uploadGateway;
20
- /**
21
- * @inheritDoc
22
- */ static get pluginName() {
23
- return 'CloudServicesUploadAdapter';
24
- }
25
- /**
26
- * @inheritDoc
27
- */ static get isOfficialPlugin() {
28
- return true;
29
- }
30
- /**
31
- * @inheritDoc
32
- */ static get requires() {
33
- return [
34
- CloudServices,
35
- FileRepository
36
- ];
37
- }
38
- /**
39
- * @inheritDoc
40
- */ init() {
41
- const editor = this.editor;
42
- const cloudServices = editor.plugins.get(CloudServices);
43
- const token = cloudServices.token;
44
- const uploadUrl = cloudServices.uploadUrl;
45
- if (!token) {
46
- return;
47
- }
48
- const cloudServicesCore = editor.plugins.get('CloudServicesCore');
49
- this._uploadGateway = cloudServicesCore.createUploadGateway(token, uploadUrl);
50
- editor.plugins.get(FileRepository).createUploadAdapter = (loader)=>{
51
- return new Adapter(this._uploadGateway, loader);
52
- };
53
- }
54
- }
55
- class Adapter {
56
- uploadGateway;
57
- loader;
58
- fileUploader;
59
- constructor(uploadGateway, loader){
60
- this.uploadGateway = uploadGateway;
61
- this.loader = loader;
62
- }
63
- upload() {
64
- return this.loader.file.then((file)=>{
65
- this.fileUploader = this.uploadGateway.upload(file);
66
- this.fileUploader.on('progress', (evt, data)=>{
67
- this.loader.uploadTotal = data.total;
68
- this.loader.uploaded = data.uploaded;
69
- });
70
- return this.fileUploader.send();
71
- });
72
- }
73
- abort() {
74
- this.fileUploader.abort();
75
- }
76
- }
12
+ * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
13
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
14
+ */
15
+ /**
16
+ * @module easy-image/cloudservicesuploadadapter
17
+ */
18
+ /**
19
+ * A plugin that enables upload to [CKEditor Cloud Services](https://ckeditor.com/ckeditor-cloud-services/).
20
+ *
21
+ * It is mainly used by the {@link module:easy-image/easyimage~EasyImage} feature.
22
+ *
23
+ * After enabling this adapter you need to configure the CKEditor Cloud Services integration through
24
+ * {@link module:cloud-services/cloudservicesconfig~CloudServicesConfig `config.cloudServices`}.
25
+ */
26
+ var CloudServicesUploadAdapter = class extends Plugin {
27
+ _uploadGateway;
28
+ /**
29
+ * @inheritDoc
30
+ */
31
+ static get pluginName() {
32
+ return "CloudServicesUploadAdapter";
33
+ }
34
+ /**
35
+ * @inheritDoc
36
+ */
37
+ static get isOfficialPlugin() {
38
+ return true;
39
+ }
40
+ /**
41
+ * @inheritDoc
42
+ */
43
+ static get requires() {
44
+ return [CloudServices, FileRepository];
45
+ }
46
+ /**
47
+ * @inheritDoc
48
+ */
49
+ init() {
50
+ const editor = this.editor;
51
+ const cloudServices = editor.plugins.get(CloudServices);
52
+ const token = cloudServices.token;
53
+ const uploadUrl = cloudServices.uploadUrl;
54
+ if (!token) return;
55
+ const cloudServicesCore = editor.plugins.get("CloudServicesCore");
56
+ this._uploadGateway = cloudServicesCore.createUploadGateway(token, uploadUrl);
57
+ editor.plugins.get(FileRepository).createUploadAdapter = (loader) => {
58
+ return new Adapter(this._uploadGateway, loader);
59
+ };
60
+ }
61
+ };
62
+ var Adapter = class {
63
+ uploadGateway;
64
+ loader;
65
+ fileUploader;
66
+ constructor(uploadGateway, loader) {
67
+ this.uploadGateway = uploadGateway;
68
+ this.loader = loader;
69
+ }
70
+ upload() {
71
+ return this.loader.file.then((file) => {
72
+ this.fileUploader = this.uploadGateway.upload(file);
73
+ this.fileUploader.on("progress", (evt, data) => {
74
+ this.loader.uploadTotal = data.total;
75
+ this.loader.uploaded = data.uploaded;
76
+ });
77
+ return this.fileUploader.send();
78
+ });
79
+ }
80
+ abort() {
81
+ this.fileUploader.abort();
82
+ }
83
+ };
84
+
85
+ /**
86
+ * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
87
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
88
+ */
89
+ /**
90
+ * @module easy-image/easyimage
91
+ */
92
+ /**
93
+ * The Easy Image feature, which makes the image upload in CKEditor 5 possible with virtually zero
94
+ * server setup. A part of the [CKEditor Cloud Services](https://ckeditor.com/ckeditor-cloud-services/)
95
+ * family.
96
+ *
97
+ * This is a "glue" plugin which enables:
98
+ *
99
+ * * {@link module:easy-image/cloudservicesuploadadapter~CloudServicesUploadAdapter}.
100
+ *
101
+ * This plugin requires plugin to be present in the editor configuration:
102
+ *
103
+ * * {@link module:image/image~Image},
104
+ * * {@link module:image/imageupload~ImageUpload},
105
+ *
106
+ * See the [Easy Image Quick Start guide](https://ckeditor.com/docs/cs/latest/guides/easy-image/quick-start.html) to learn how to configure
107
+ * and use this feature.
108
+ *
109
+ * Check out the {@glink features/images/image-upload/image-upload comprehensive "Image upload" guide} to learn about
110
+ * other ways to upload images into CKEditor 5.
111
+ *
112
+ * **Note**: After enabling the Easy Image plugin you need to configure the
113
+ * [CKEditor Cloud Services](https://ckeditor.com/ckeditor-cloud-services/)
114
+ * integration through {@link module:cloud-services/cloudservicesconfig~CloudServicesConfig `config.cloudServices`}.
115
+ */
116
+ var EasyImage = class extends Plugin {
117
+ /**
118
+ * @inheritDoc
119
+ */
120
+ static get pluginName() {
121
+ return "EasyImage";
122
+ }
123
+ /**
124
+ * @inheritDoc
125
+ */
126
+ static get isOfficialPlugin() {
127
+ return true;
128
+ }
129
+ /**
130
+ * @inheritDoc
131
+ */
132
+ static get requires() {
133
+ return [CloudServicesUploadAdapter, ImageUpload];
134
+ }
135
+ /**
136
+ * @inheritDoc
137
+ */
138
+ init() {
139
+ const editor = this.editor;
140
+ if (!editor.plugins.has("ImageBlockEditing") && !editor.plugins.has("ImageInlineEditing"))
141
+ /**
142
+ * The Easy Image feature requires one of the following plugins to be loaded to work correctly:
143
+ *
144
+ * * {@link module:image/imageblock~ImageBlock},
145
+ * * {@link module:image/imageinline~ImageInline},
146
+ * * {@link module:image/image~Image} (loads both `ImageBlock` and `ImageInline`)
147
+ *
148
+ * Please make sure your editor configuration is correct.
149
+ *
150
+ * @error easy-image-image-feature-missing
151
+ * @param {module:core/editor/editor~Editor} editor The editor instance.
152
+ */
153
+ logWarning("easy-image-image-feature-missing", editor);
154
+ }
155
+ };
77
156
 
78
157
  /**
79
- * The Easy Image feature, which makes the image upload in CKEditor 5 possible with virtually zero
80
- * server setup. A part of the [CKEditor Cloud Services](https://ckeditor.com/ckeditor-cloud-services/)
81
- * family.
82
- *
83
- * This is a "glue" plugin which enables:
84
- *
85
- * * {@link module:easy-image/cloudservicesuploadadapter~CloudServicesUploadAdapter}.
86
- *
87
- * This plugin requires plugin to be present in the editor configuration:
88
- *
89
- * * {@link module:image/image~Image},
90
- * * {@link module:image/imageupload~ImageUpload},
91
- *
92
- * See the [Easy Image Quick Start guide](https://ckeditor.com/docs/cs/latest/guides/easy-image/quick-start.html) to learn how to configure
93
- * and use this feature.
94
- *
95
- * Check out the {@glink features/images/image-upload/image-upload comprehensive "Image upload" guide} to learn about
96
- * other ways to upload images into CKEditor 5.
97
- *
98
- * **Note**: After enabling the Easy Image plugin you need to configure the
99
- * [CKEditor Cloud Services](https://ckeditor.com/ckeditor-cloud-services/)
100
- * integration through {@link module:cloud-services/cloudservicesconfig~CloudServicesConfig `config.cloudServices`}.
101
- */ class EasyImage extends Plugin {
102
- /**
103
- * @inheritDoc
104
- */ static get pluginName() {
105
- return 'EasyImage';
106
- }
107
- /**
108
- * @inheritDoc
109
- */ static get isOfficialPlugin() {
110
- return true;
111
- }
112
- /**
113
- * @inheritDoc
114
- */ static get requires() {
115
- return [
116
- CloudServicesUploadAdapter,
117
- ImageUpload
118
- ];
119
- }
120
- /**
121
- * @inheritDoc
122
- */ init() {
123
- const editor = this.editor;
124
- if (!editor.plugins.has('ImageBlockEditing') && !editor.plugins.has('ImageInlineEditing')) {
125
- /**
126
- * The Easy Image feature requires one of the following plugins to be loaded to work correctly:
127
- *
128
- * * {@link module:image/imageblock~ImageBlock},
129
- * * {@link module:image/imageinline~ImageInline},
130
- * * {@link module:image/image~Image} (loads both `ImageBlock` and `ImageInline`)
131
- *
132
- * Please make sure your editor configuration is correct.
133
- *
134
- * @error easy-image-image-feature-missing
135
- * @param {module:core/editor/editor~Editor} editor The editor instance.
136
- */ logWarning('easy-image-image-feature-missing', editor);
137
- }
138
- }
139
- }
158
+ * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
159
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
160
+ */
140
161
 
141
162
  export { CloudServicesUploadAdapter, EasyImage };
142
- //# sourceMappingURL=index.js.map
163
+ //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["index.js","../src/cloudservicesuploadadapter.ts","../src/easyimage.ts"],"names":["CloudServicesUploadAdapter","Plugin","_uploadGateway","pluginName","isOfficialPlugin","requires","CloudServices","FileRepository","init","editor","cloudServices","plugins","get","token","uploadUrl","cloudServicesCore","createUploadGateway","createUploadAdapter","loader","Adapter","uploadGateway","fileUploader","upload","file","then","on","evt","data","uploadTotal","total","uploaded","send","abort","EasyImage","ImageUpload","has","logWarning"],"mappings":";;;;AAAA,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,QAAQ,CAAC,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC;AAC/D,MAAM,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,QAAQ,CAAC,SAAS,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC;AACrE,MAAM,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,IAAI,CAAC,CA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CAAC,IAAI,CAAC,MAAM,CAAC,aAAa,CAAC,EAAE,CAAC,OAAO;AAC3D,CAAC,CAAC,CAAC,CAAC;AACJ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,OAAO,CAAC;AACtC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC,MAAM,CAAC,QAAQ;AEnDtE,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CACDC,UAAAA,CAAY,CAAA,IAAA,CAAA,KAAA,CAAA,KAAA,CAAA,OAAA,CAAA,OAAA,CAAA,CAAA,CAAoC3B,MAAAA,CAAAA;AACjD,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AACD,CAAA,CAAA,CAAA,CAAA;AACD;;AFqDA,MAAM,CAAC,CAAC,CAAC,0BAA0B,CAAC,CAAC,SAAS,CAAC,CAAC;AAChD,CAAC,CAAC,CAAC,CAAC,gBAAgB,CAAC,KAAK,CAAC,EAAE,CAAC","file":"index.js.map","sourcesContent":["import { Plugin } from '@ckeditor/ckeditor5-core/dist/index.js';\nimport { ImageUpload } from '@ckeditor/ckeditor5-image/dist/index.js';\nimport { logWarning } from '@ckeditor/ckeditor5-utils/dist/index.js';\nimport { FileRepository } from '@ckeditor/ckeditor5-upload/dist/index.js';\nimport { CloudServices } from '@ckeditor/ckeditor5-cloud-services/dist/index.js';\n\n/**\n * A plugin that enables upload to [CKEditor Cloud Services](https://ckeditor.com/ckeditor-cloud-services/).\n *\n * It is mainly used by the {@link module:easy-image/easyimage~EasyImage} feature.\n *\n * After enabling this adapter you need to configure the CKEditor Cloud Services integration through\n * {@link module:cloud-services/cloudservicesconfig~CloudServicesConfig `config.cloudServices`}.\n */ class CloudServicesUploadAdapter extends Plugin {\n _uploadGateway;\n /**\n\t * @inheritDoc\n\t */ static get pluginName() {\n return 'CloudServicesUploadAdapter';\n }\n /**\n\t * @inheritDoc\n\t */ static get isOfficialPlugin() {\n return true;\n }\n /**\n\t * @inheritDoc\n\t */ static get requires() {\n return [\n CloudServices,\n FileRepository\n ];\n }\n /**\n\t * @inheritDoc\n\t */ init() {\n const editor = this.editor;\n const cloudServices = editor.plugins.get(CloudServices);\n const token = cloudServices.token;\n const uploadUrl = cloudServices.uploadUrl;\n if (!token) {\n return;\n }\n const cloudServicesCore = editor.plugins.get('CloudServicesCore');\n this._uploadGateway = cloudServicesCore.createUploadGateway(token, uploadUrl);\n editor.plugins.get(FileRepository).createUploadAdapter = (loader)=>{\n return new Adapter(this._uploadGateway, loader);\n };\n }\n}\nclass Adapter {\n uploadGateway;\n loader;\n fileUploader;\n constructor(uploadGateway, loader){\n this.uploadGateway = uploadGateway;\n this.loader = loader;\n }\n upload() {\n return this.loader.file.then((file)=>{\n this.fileUploader = this.uploadGateway.upload(file);\n this.fileUploader.on('progress', (evt, data)=>{\n this.loader.uploadTotal = data.total;\n this.loader.uploaded = data.uploaded;\n });\n return this.fileUploader.send();\n });\n }\n abort() {\n this.fileUploader.abort();\n }\n}\n\n/**\n * The Easy Image feature, which makes the image upload in CKEditor 5 possible with virtually zero\n * server setup. A part of the [CKEditor Cloud Services](https://ckeditor.com/ckeditor-cloud-services/)\n * family.\n *\n * This is a \"glue\" plugin which enables:\n *\n * * {@link module:easy-image/cloudservicesuploadadapter~CloudServicesUploadAdapter}.\n *\n * This plugin requires plugin to be present in the editor configuration:\n *\n * * {@link module:image/image~Image},\n * * {@link module:image/imageupload~ImageUpload},\n *\n * See the [Easy Image Quick Start guide](https://ckeditor.com/docs/cs/latest/guides/easy-image/quick-start.html) to learn how to configure\n * and use this feature.\n *\n * Check out the {@glink features/images/image-upload/image-upload comprehensive \"Image upload\" guide} to learn about\n * other ways to upload images into CKEditor 5.\n *\n * **Note**: After enabling the Easy Image plugin you need to configure the\n * [CKEditor Cloud Services](https://ckeditor.com/ckeditor-cloud-services/)\n * integration through {@link module:cloud-services/cloudservicesconfig~CloudServicesConfig `config.cloudServices`}.\n */ class EasyImage extends Plugin {\n /**\n\t * @inheritDoc\n\t */ static get pluginName() {\n return 'EasyImage';\n }\n /**\n\t * @inheritDoc\n\t */ static get isOfficialPlugin() {\n return true;\n }\n /**\n\t * @inheritDoc\n\t */ static get requires() {\n return [\n CloudServicesUploadAdapter,\n ImageUpload\n ];\n }\n /**\n\t * @inheritDoc\n\t */ init() {\n const editor = this.editor;\n if (!editor.plugins.has('ImageBlockEditing') && !editor.plugins.has('ImageInlineEditing')) {\n /**\n\t\t\t * The Easy Image feature requires one of the following plugins to be loaded to work correctly:\n\t\t\t *\n\t\t\t * * {@link module:image/imageblock~ImageBlock},\n\t\t\t * * {@link module:image/imageinline~ImageInline},\n\t\t\t * * {@link module:image/image~Image} (loads both `ImageBlock` and `ImageInline`)\n\t\t\t *\n\t\t\t * Please make sure your editor configuration is correct.\n\t\t\t *\n\t\t\t * @error easy-image-image-feature-missing\n\t\t\t * @param {module:core/editor/editor~Editor} editor The editor instance.\n\t\t\t */ logWarning('easy-image-image-feature-missing', editor);\n }\n }\n}\n\nexport { CloudServicesUploadAdapter, EasyImage };\n//# sourceMappingURL=index.js.map\n","/**\n * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options\n */\n\n/**\n* @module easy-image/cloudservicesuploadadapter\n*/\n\nimport { Plugin } from '@ckeditor/ckeditor5-core';\nimport { FileRepository, type FileLoader, type UploadAdapter } from '@ckeditor/ckeditor5-upload';\nimport { CloudServices, type CloudServicesCore, type UploadGateway, type FileUploader } from '@ckeditor/ckeditor5-cloud-services';\n\n/**\n * A plugin that enables upload to [CKEditor Cloud Services](https://ckeditor.com/ckeditor-cloud-services/).\n *\n * It is mainly used by the {@link module:easy-image/easyimage~EasyImage} feature.\n *\n * After enabling this adapter you need to configure the CKEditor Cloud Services integration through\n * {@link module:cloud-services/cloudservicesconfig~CloudServicesConfig `config.cloudServices`}.\n */\nexport class CloudServicesUploadAdapter extends Plugin {\n\tprivate _uploadGateway?: UploadGateway;\n\n\t/**\n\t * @inheritDoc\n\t */\n\tpublic static get pluginName() {\n\t\treturn 'CloudServicesUploadAdapter' as const;\n\t}\n\n\t/**\n\t * @inheritDoc\n\t */\n\tpublic static override get isOfficialPlugin(): true {\n\t\treturn true;\n\t}\n\n\t/**\n\t * @inheritDoc\n\t */\n\tpublic static get requires() {\n\t\treturn [ CloudServices, FileRepository ] as const;\n\t}\n\n\t/**\n\t * @inheritDoc\n\t */\n\tpublic init(): void {\n\t\tconst editor = this.editor;\n\n\t\tconst cloudServices = editor.plugins.get( CloudServices );\n\n\t\tconst token = cloudServices.token;\n\t\tconst uploadUrl = cloudServices.uploadUrl;\n\n\t\tif ( !token ) {\n\t\t\treturn;\n\t\t}\n\n\t\tconst cloudServicesCore: CloudServicesCore = editor.plugins.get( 'CloudServicesCore' );\n\t\tthis._uploadGateway = cloudServicesCore.createUploadGateway( token, uploadUrl! );\n\n\t\teditor.plugins.get( FileRepository ).createUploadAdapter = loader => {\n\t\t\treturn new Adapter( this._uploadGateway!, loader );\n\t\t};\n\t}\n}\n\nclass Adapter implements UploadAdapter {\n\tprivate uploadGateway: UploadGateway;\n\tprivate loader: FileLoader;\n\tprivate fileUploader?: FileUploader;\n\n\tconstructor( uploadGateway: UploadGateway, loader: FileLoader ) {\n\t\tthis.uploadGateway = uploadGateway;\n\n\t\tthis.loader = loader;\n\t}\n\n\tpublic upload() {\n\t\treturn this.loader.file.then( file => {\n\t\t\tthis.fileUploader = this.uploadGateway.upload( file! );\n\n\t\t\tthis.fileUploader.on( 'progress', ( evt, data ) => {\n\t\t\t\tthis.loader.uploadTotal = data.total;\n\t\t\t\tthis.loader.uploaded = data.uploaded;\n\t\t\t} );\n\n\t\t\treturn this.fileUploader.send();\n\t\t} );\n\t}\n\n\tpublic abort() {\n\t\tthis.fileUploader!.abort();\n\t}\n}\n","/**\n * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options\n */\n\n/**\n * @module easy-image/easyimage\n */\n\nimport { Plugin } from '@ckeditor/ckeditor5-core';\nimport { ImageUpload } from '@ckeditor/ckeditor5-image';\nimport { logWarning } from '@ckeditor/ckeditor5-utils';\n\nimport { CloudServicesUploadAdapter } from './cloudservicesuploadadapter.js';\n\n/**\n * The Easy Image feature, which makes the image upload in CKEditor 5 possible with virtually zero\n * server setup. A part of the [CKEditor Cloud Services](https://ckeditor.com/ckeditor-cloud-services/)\n * family.\n *\n * This is a \"glue\" plugin which enables:\n *\n * * {@link module:easy-image/cloudservicesuploadadapter~CloudServicesUploadAdapter}.\n *\n * This plugin requires plugin to be present in the editor configuration:\n *\n * * {@link module:image/image~Image},\n * * {@link module:image/imageupload~ImageUpload},\n *\n * See the [Easy Image Quick Start guide](https://ckeditor.com/docs/cs/latest/guides/easy-image/quick-start.html) to learn how to configure\n * and use this feature.\n *\n * Check out the {@glink features/images/image-upload/image-upload comprehensive \"Image upload\" guide} to learn about\n * other ways to upload images into CKEditor 5.\n *\n * **Note**: After enabling the Easy Image plugin you need to configure the\n * [CKEditor Cloud Services](https://ckeditor.com/ckeditor-cloud-services/)\n * integration through {@link module:cloud-services/cloudservicesconfig~CloudServicesConfig `config.cloudServices`}.\n */\nexport class EasyImage extends Plugin {\n\t/**\n\t * @inheritDoc\n\t */\n\tpublic static get pluginName() {\n\t\treturn 'EasyImage' as const;\n\t}\n\n\t/**\n\t * @inheritDoc\n\t */\n\tpublic static override get isOfficialPlugin(): true {\n\t\treturn true;\n\t}\n\n\t/**\n\t * @inheritDoc\n\t */\n\tpublic static get requires() {\n\t\treturn [ CloudServicesUploadAdapter, ImageUpload ] as const;\n\t}\n\n\t/**\n\t * @inheritDoc\n\t */\n\tpublic init(): void {\n\t\tconst editor = this.editor;\n\n\t\tif ( !editor.plugins.has( 'ImageBlockEditing' ) && !editor.plugins.has( 'ImageInlineEditing' ) ) {\n\t\t\t/**\n\t\t\t * The Easy Image feature requires one of the following plugins to be loaded to work correctly:\n\t\t\t *\n\t\t\t * * {@link module:image/imageblock~ImageBlock},\n\t\t\t * * {@link module:image/imageinline~ImageInline},\n\t\t\t * * {@link module:image/image~Image} (loads both `ImageBlock` and `ImageInline`)\n\t\t\t *\n\t\t\t * Please make sure your editor configuration is correct.\n\t\t\t *\n\t\t\t * @error easy-image-image-feature-missing\n\t\t\t * @param {module:core/editor/editor~Editor} editor The editor instance.\n\t\t\t */\n\t\t\tlogWarning( 'easy-image-image-feature-missing', editor );\n\t\t}\n\t}\n}\n"]}
1
+ {"version":3,"sources":["index.js","../src/cloudservicesuploadadapter.ts","../src/easyimage.ts"],"names":[],"mappings":";;;;AAAA,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,QAAQ,CAAC,SAAS,CAAC,IAAI,CAAC;AACjD,MAAM,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,QAAQ,CAAC,SAAS,CAAC,KAAK,CAAC;AACvD,MAAM,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,QAAQ,CAAC,SAAS,CAAC,KAAK,CAAC;AACtD,MAAM,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,QAAQ,CAAC,SAAS,CAAC,MAAM,CAAC;AAC3D,MAAM,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,QAAQ,CAAC,SAAS,CAAC,KAAK,CAAC,QAAQ,CAAC;;AAElE,CAAC,CAAC;AACF,CAAC,CAAC,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC,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C,CAAC,0BAA0B,CAAC,CAAC,SAAS,CAAC,CAAC;AAChD,CAAC,CAAC,CAAC,CAAC,gBAAgB,CAAC,KAAK,CAAC,EAAE,CAAC","file":"index.js.map","sourcesContent":["import { Plugin } from \"@ckeditor/ckeditor5-core\";\nimport { ImageUpload } from \"@ckeditor/ckeditor5-image\";\nimport { logWarning } from \"@ckeditor/ckeditor5-utils\";\nimport { FileRepository } from \"@ckeditor/ckeditor5-upload\";\nimport { CloudServices } from \"@ckeditor/ckeditor5-cloud-services\";\n\n/**\n* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.\n* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options\n*/\n/**\n* @module easy-image/cloudservicesuploadadapter\n*/\n/**\n* A plugin that enables upload to [CKEditor Cloud Services](https://ckeditor.com/ckeditor-cloud-services/).\n*\n* It is mainly used by the {@link module:easy-image/easyimage~EasyImage} feature.\n*\n* After enabling this adapter you need to configure the CKEditor Cloud Services integration through\n* {@link module:cloud-services/cloudservicesconfig~CloudServicesConfig `config.cloudServices`}.\n*/\nvar CloudServicesUploadAdapter = class extends Plugin {\n\t_uploadGateway;\n\t/**\n\t* @inheritDoc\n\t*/\n\tstatic get pluginName() {\n\t\treturn \"CloudServicesUploadAdapter\";\n\t}\n\t/**\n\t* @inheritDoc\n\t*/\n\tstatic get isOfficialPlugin() {\n\t\treturn true;\n\t}\n\t/**\n\t* @inheritDoc\n\t*/\n\tstatic get requires() {\n\t\treturn [CloudServices, FileRepository];\n\t}\n\t/**\n\t* @inheritDoc\n\t*/\n\tinit() {\n\t\tconst editor = this.editor;\n\t\tconst cloudServices = editor.plugins.get(CloudServices);\n\t\tconst token = cloudServices.token;\n\t\tconst uploadUrl = cloudServices.uploadUrl;\n\t\tif (!token) return;\n\t\tconst cloudServicesCore = editor.plugins.get(\"CloudServicesCore\");\n\t\tthis._uploadGateway = cloudServicesCore.createUploadGateway(token, uploadUrl);\n\t\teditor.plugins.get(FileRepository).createUploadAdapter = (loader) => {\n\t\t\treturn new Adapter(this._uploadGateway, loader);\n\t\t};\n\t}\n};\nvar Adapter = class {\n\tuploadGateway;\n\tloader;\n\tfileUploader;\n\tconstructor(uploadGateway, loader) {\n\t\tthis.uploadGateway = uploadGateway;\n\t\tthis.loader = loader;\n\t}\n\tupload() {\n\t\treturn this.loader.file.then((file) => {\n\t\t\tthis.fileUploader = this.uploadGateway.upload(file);\n\t\t\tthis.fileUploader.on(\"progress\", (evt, data) => {\n\t\t\t\tthis.loader.uploadTotal = data.total;\n\t\t\t\tthis.loader.uploaded = data.uploaded;\n\t\t\t});\n\t\t\treturn this.fileUploader.send();\n\t\t});\n\t}\n\tabort() {\n\t\tthis.fileUploader.abort();\n\t}\n};\n\n/**\n* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.\n* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options\n*/\n/**\n* @module easy-image/easyimage\n*/\n/**\n* The Easy Image feature, which makes the image upload in CKEditor 5 possible with virtually zero\n* server setup. A part of the [CKEditor Cloud Services](https://ckeditor.com/ckeditor-cloud-services/)\n* family.\n*\n* This is a \"glue\" plugin which enables:\n*\n* * {@link module:easy-image/cloudservicesuploadadapter~CloudServicesUploadAdapter}.\n*\n* This plugin requires plugin to be present in the editor configuration:\n*\n* * {@link module:image/image~Image},\n* * {@link module:image/imageupload~ImageUpload},\n*\n* See the [Easy Image Quick Start guide](https://ckeditor.com/docs/cs/latest/guides/easy-image/quick-start.html) to learn how to configure\n* and use this feature.\n*\n* Check out the {@glink features/images/image-upload/image-upload comprehensive \"Image upload\" guide} to learn about\n* other ways to upload images into CKEditor 5.\n*\n* **Note**: After enabling the Easy Image plugin you need to configure the\n* [CKEditor Cloud Services](https://ckeditor.com/ckeditor-cloud-services/)\n* integration through {@link module:cloud-services/cloudservicesconfig~CloudServicesConfig `config.cloudServices`}.\n*/\nvar EasyImage = class extends Plugin {\n\t/**\n\t* @inheritDoc\n\t*/\n\tstatic get pluginName() {\n\t\treturn \"EasyImage\";\n\t}\n\t/**\n\t* @inheritDoc\n\t*/\n\tstatic get isOfficialPlugin() {\n\t\treturn true;\n\t}\n\t/**\n\t* @inheritDoc\n\t*/\n\tstatic get requires() {\n\t\treturn [CloudServicesUploadAdapter, ImageUpload];\n\t}\n\t/**\n\t* @inheritDoc\n\t*/\n\tinit() {\n\t\tconst editor = this.editor;\n\t\tif (!editor.plugins.has(\"ImageBlockEditing\") && !editor.plugins.has(\"ImageInlineEditing\"))\n /**\n\t\t* The Easy Image feature requires one of the following plugins to be loaded to work correctly:\n\t\t*\n\t\t* * {@link module:image/imageblock~ImageBlock},\n\t\t* * {@link module:image/imageinline~ImageInline},\n\t\t* * {@link module:image/image~Image} (loads both `ImageBlock` and `ImageInline`)\n\t\t*\n\t\t* Please make sure your editor configuration is correct.\n\t\t*\n\t\t* @error easy-image-image-feature-missing\n\t\t* @param {module:core/editor/editor~Editor} editor The editor instance.\n\t\t*/\n\t\tlogWarning(\"easy-image-image-feature-missing\", editor);\n\t}\n};\n\n/**\n* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.\n* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options\n*/\n\nexport { CloudServicesUploadAdapter, EasyImage };\n//# sourceMappingURL=index.js.map","/**\n * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options\n */\n\n/**\n* @module easy-image/cloudservicesuploadadapter\n*/\n\nimport { Plugin, type PluginDependenciesOf } from '@ckeditor/ckeditor5-core';\nimport { FileRepository, type FileLoader, type UploadAdapter } from '@ckeditor/ckeditor5-upload';\nimport { CloudServices, type CloudServicesCore, type UploadGateway, type FileUploader } from '@ckeditor/ckeditor5-cloud-services';\n\n/**\n * A plugin that enables upload to [CKEditor Cloud Services](https://ckeditor.com/ckeditor-cloud-services/).\n *\n * It is mainly used by the {@link module:easy-image/easyimage~EasyImage} feature.\n *\n * After enabling this adapter you need to configure the CKEditor Cloud Services integration through\n * {@link module:cloud-services/cloudservicesconfig~CloudServicesConfig `config.cloudServices`}.\n */\nexport class CloudServicesUploadAdapter extends Plugin {\n\tprivate _uploadGateway?: UploadGateway;\n\n\t/**\n\t * @inheritDoc\n\t */\n\tpublic static get pluginName() {\n\t\treturn 'CloudServicesUploadAdapter' as const;\n\t}\n\n\t/**\n\t * @inheritDoc\n\t */\n\tpublic static override get isOfficialPlugin(): true {\n\t\treturn true;\n\t}\n\n\t/**\n\t * @inheritDoc\n\t */\n\tpublic static get requires(): PluginDependenciesOf<[ CloudServices, FileRepository ]> {\n\t\treturn [ CloudServices, FileRepository ];\n\t}\n\n\t/**\n\t * @inheritDoc\n\t */\n\tpublic init(): void {\n\t\tconst editor = this.editor;\n\n\t\tconst cloudServices = editor.plugins.get( CloudServices );\n\n\t\tconst token = cloudServices.token;\n\t\tconst uploadUrl = cloudServices.uploadUrl;\n\n\t\tif ( !token ) {\n\t\t\treturn;\n\t\t}\n\n\t\tconst cloudServicesCore: CloudServicesCore = editor.plugins.get( 'CloudServicesCore' );\n\t\tthis._uploadGateway = cloudServicesCore.createUploadGateway( token, uploadUrl! );\n\n\t\teditor.plugins.get( FileRepository ).createUploadAdapter = loader => {\n\t\t\treturn new Adapter( this._uploadGateway!, loader );\n\t\t};\n\t}\n}\n\nclass Adapter implements UploadAdapter {\n\tprivate uploadGateway: UploadGateway;\n\tprivate loader: FileLoader;\n\tprivate fileUploader?: FileUploader;\n\n\tconstructor( uploadGateway: UploadGateway, loader: FileLoader ) {\n\t\tthis.uploadGateway = uploadGateway;\n\n\t\tthis.loader = loader;\n\t}\n\n\tpublic upload() {\n\t\treturn this.loader.file.then( file => {\n\t\t\tthis.fileUploader = this.uploadGateway.upload( file! );\n\n\t\t\tthis.fileUploader.on( 'progress', ( evt, data ) => {\n\t\t\t\tthis.loader.uploadTotal = data.total;\n\t\t\t\tthis.loader.uploaded = data.uploaded;\n\t\t\t} );\n\n\t\t\treturn this.fileUploader.send();\n\t\t} );\n\t}\n\n\tpublic abort() {\n\t\tthis.fileUploader!.abort();\n\t}\n}\n","/**\n * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options\n */\n\n/**\n * @module easy-image/easyimage\n */\n\nimport { Plugin, type PluginDependenciesOf } from '@ckeditor/ckeditor5-core';\nimport { ImageUpload } from '@ckeditor/ckeditor5-image';\nimport { logWarning } from '@ckeditor/ckeditor5-utils';\n\nimport { CloudServicesUploadAdapter } from './cloudservicesuploadadapter.js';\n\n/**\n * The Easy Image feature, which makes the image upload in CKEditor 5 possible with virtually zero\n * server setup. A part of the [CKEditor Cloud Services](https://ckeditor.com/ckeditor-cloud-services/)\n * family.\n *\n * This is a \"glue\" plugin which enables:\n *\n * * {@link module:easy-image/cloudservicesuploadadapter~CloudServicesUploadAdapter}.\n *\n * This plugin requires plugin to be present in the editor configuration:\n *\n * * {@link module:image/image~Image},\n * * {@link module:image/imageupload~ImageUpload},\n *\n * See the [Easy Image Quick Start guide](https://ckeditor.com/docs/cs/latest/guides/easy-image/quick-start.html) to learn how to configure\n * and use this feature.\n *\n * Check out the {@glink features/images/image-upload/image-upload comprehensive \"Image upload\" guide} to learn about\n * other ways to upload images into CKEditor 5.\n *\n * **Note**: After enabling the Easy Image plugin you need to configure the\n * [CKEditor Cloud Services](https://ckeditor.com/ckeditor-cloud-services/)\n * integration through {@link module:cloud-services/cloudservicesconfig~CloudServicesConfig `config.cloudServices`}.\n */\nexport class EasyImage extends Plugin {\n\t/**\n\t * @inheritDoc\n\t */\n\tpublic static get pluginName() {\n\t\treturn 'EasyImage' as const;\n\t}\n\n\t/**\n\t * @inheritDoc\n\t */\n\tpublic static override get isOfficialPlugin(): true {\n\t\treturn true;\n\t}\n\n\t/**\n\t * @inheritDoc\n\t */\n\tpublic static get requires(): PluginDependenciesOf<[ CloudServicesUploadAdapter, ImageUpload ]> {\n\t\treturn [ CloudServicesUploadAdapter, ImageUpload ];\n\t}\n\n\t/**\n\t * @inheritDoc\n\t */\n\tpublic init(): void {\n\t\tconst editor = this.editor;\n\n\t\tif ( !editor.plugins.has( 'ImageBlockEditing' ) && !editor.plugins.has( 'ImageInlineEditing' ) ) {\n\t\t\t/**\n\t\t\t * The Easy Image feature requires one of the following plugins to be loaded to work correctly:\n\t\t\t *\n\t\t\t * * {@link module:image/imageblock~ImageBlock},\n\t\t\t * * {@link module:image/imageinline~ImageInline},\n\t\t\t * * {@link module:image/image~Image} (loads both `ImageBlock` and `ImageInline`)\n\t\t\t *\n\t\t\t * Please make sure your editor configuration is correct.\n\t\t\t *\n\t\t\t * @error easy-image-image-feature-missing\n\t\t\t * @param {module:core/editor/editor~Editor} editor The editor instance.\n\t\t\t */\n\t\t\tlogWarning( 'easy-image-image-feature-missing', editor );\n\t\t}\n\t}\n}\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-easy-image",
3
- "version": "48.2.0",
3
+ "version": "48.3.0-alpha.0",
4
4
  "description": "Easy Image feature for CKEditor 5.",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "author": "CKSource (http://cksource.com/)",
@@ -26,11 +26,11 @@
26
26
  "./package.json": "./package.json"
27
27
  },
28
28
  "dependencies": {
29
- "@ckeditor/ckeditor5-cloud-services": "48.2.0",
30
- "@ckeditor/ckeditor5-core": "48.2.0",
31
- "@ckeditor/ckeditor5-image": "48.2.0",
32
- "@ckeditor/ckeditor5-upload": "48.2.0",
33
- "@ckeditor/ckeditor5-utils": "48.2.0"
29
+ "@ckeditor/ckeditor5-cloud-services": "48.3.0-alpha.0",
30
+ "@ckeditor/ckeditor5-core": "48.3.0-alpha.0",
31
+ "@ckeditor/ckeditor5-image": "48.3.0-alpha.0",
32
+ "@ckeditor/ckeditor5-upload": "48.3.0-alpha.0",
33
+ "@ckeditor/ckeditor5-utils": "48.3.0-alpha.0"
34
34
  },
35
35
  "files": [
36
36
  "dist",
@@ -1 +0,0 @@
1
- {"version":3,"sources":["index.css"],"names":[],"mappings":";;;;;;AAEA,CAAC,CAAC,CAAC,CAAC,gBAAgB,CAAC,KAAK,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC","file":"index.css.map","sourcesContent":["\n\n/*# sourceMappingURL=index.css.map */"]}