@ckeditor/ckeditor5-upload 0.0.0-nightly-next-20250228.0 → 0.0.0-nightly-20250301.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-upload",
3
- "version": "0.0.0-nightly-next-20250228.0",
3
+ "version": "0.0.0-nightly-20250301.0",
4
4
  "description": "Upload feature for CKEditor 5.",
5
5
  "keywords": [
6
6
  "ckeditor",
@@ -12,8 +12,8 @@
12
12
  "type": "module",
13
13
  "main": "src/index.js",
14
14
  "dependencies": {
15
- "@ckeditor/ckeditor5-core": "0.0.0-nightly-next-20250228.0",
16
- "@ckeditor/ckeditor5-utils": "0.0.0-nightly-next-20250228.0"
15
+ "@ckeditor/ckeditor5-core": "0.0.0-nightly-20250301.0",
16
+ "@ckeditor/ckeditor5-utils": "0.0.0-nightly-20250301.0"
17
17
  },
18
18
  "author": "CKSource (http://cksource.com/)",
19
19
  "license": "SEE LICENSE IN LICENSE.md",
@@ -48,11 +48,6 @@ export default class Base64UploadAdapter extends Plugin {
48
48
  * The upload adapter that converts images inserted into the editor into Base64 strings.
49
49
  */
50
50
  class Adapter {
51
- /**
52
- * `FileLoader` instance to use during the upload.
53
- */
54
- loader;
55
- reader;
56
51
  /**
57
52
  * Creates a new adapter instance.
58
53
  */
@@ -81,15 +81,6 @@ export default class SimpleUploadAdapter extends Plugin {
81
81
  * Upload adapter.
82
82
  */
83
83
  class Adapter {
84
- /**
85
- * FileLoader instance to use during the upload.
86
- */
87
- loader;
88
- /**
89
- * The configuration of the adapter.
90
- */
91
- options;
92
- xhr;
93
84
  /**
94
85
  * Creates a new adapter instance.
95
86
  */
package/src/filereader.js CHANGED
@@ -11,16 +11,6 @@ import { ObservableMixin } from '@ckeditor/ckeditor5-utils';
11
11
  * Wrapper over the native `FileReader`.
12
12
  */
13
13
  export default class FileReader extends /* #__PURE__ */ ObservableMixin() {
14
- total;
15
- /**
16
- * Instance of native FileReader.
17
- */
18
- _reader;
19
- /**
20
- * Holds the data of an already loaded file. The file must be first loaded
21
- * by using {@link module:upload/filereader~FileReader#read `read()`}.
22
- */
23
- _data;
24
14
  /**
25
15
  * Creates an instance of the FileReader.
26
16
  */
@@ -21,19 +21,22 @@ import FileReader from './filereader.js';
21
21
  * {@link module:upload/filerepository~FileLoader} instance to load and upload files.
22
22
  */
23
23
  export default class FileRepository extends Plugin {
24
- /**
25
- * Collection of loaders associated with this repository.
26
- */
27
- loaders = new Collection();
28
- /**
29
- * Loaders mappings used to retrieve loaders references.
30
- */
31
- _loadersMap = new Map();
32
- /**
33
- * Reference to a pending action registered in a {@link module:core/pendingactions~PendingActions} plugin
34
- * while upload is in progress. When there is no upload then value is `null`.
35
- */
36
- _pendingAction = null;
24
+ constructor() {
25
+ super(...arguments);
26
+ /**
27
+ * Collection of loaders associated with this repository.
28
+ */
29
+ this.loaders = new Collection();
30
+ /**
31
+ * Loaders mappings used to retrieve loaders references.
32
+ */
33
+ this._loadersMap = new Map();
34
+ /**
35
+ * Reference to a pending action registered in a {@link module:core/pendingactions~PendingActions} plugin
36
+ * while upload is in progress. When there is no upload then value is `null`.
37
+ */
38
+ this._pendingAction = null;
39
+ }
37
40
  /**
38
41
  * @inheritDoc
39
42
  */
@@ -184,24 +187,6 @@ export default class FileRepository extends Plugin {
184
187
  * It is used to control the process of reading the file and uploading it using the specified upload adapter.
185
188
  */
186
189
  class FileLoader extends /* #__PURE__ */ ObservableMixin() {
187
- /**
188
- * Unique id of FileLoader instance.
189
- *
190
- * @readonly
191
- */
192
- id;
193
- /**
194
- * Additional wrapper over the initial file promise passed to this loader.
195
- */
196
- _filePromiseWrapper;
197
- /**
198
- * Adapter instance associated with this file loader.
199
- */
200
- _adapter;
201
- /**
202
- * FileReader used by FileLoader.
203
- */
204
- _reader;
205
190
  /**
206
191
  * Creates a new instance of `FileLoader`.
207
192
  *