@ckeditor/ckeditor5-upload 41.4.2 → 42.0.0-alpha.1
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +6 -0
- package/dist/index.js +314 -235
- package/dist/index.js.map +1 -1
- package/dist/types/adapters/base64uploadadapter.d.ts +1 -1
- package/dist/types/filereader.d.ts +1 -1
- package/dist/types/filerepository.d.ts +1 -1
- package/package.json +3 -3
- package/src/adapters/base64uploadadapter.d.ts +1 -1
- package/src/adapters/base64uploadadapter.js +1 -1
- package/src/filereader.d.ts +1 -1
- package/src/filereader.js +1 -1
- package/src/filerepository.d.ts +1 -1
- package/src/filerepository.js +6 -3
@@ -120,7 +120,7 @@ declare const FileLoader_base: {
|
|
120
120
|
*
|
121
121
|
* It is used to control the process of reading the file and uploading it using the specified upload adapter.
|
122
122
|
*/
|
123
|
-
declare class FileLoader extends FileLoader_base {
|
123
|
+
declare class FileLoader extends /* #__PURE__ */ FileLoader_base {
|
124
124
|
/**
|
125
125
|
* Unique id of FileLoader instance.
|
126
126
|
*
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@ckeditor/ckeditor5-upload",
|
3
|
-
"version": "
|
3
|
+
"version": "42.0.0-alpha.1",
|
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": "
|
16
|
-
"@ckeditor/ckeditor5-utils": "
|
15
|
+
"@ckeditor/ckeditor5-core": "42.0.0-alpha.1",
|
16
|
+
"@ckeditor/ckeditor5-utils": "42.0.0-alpha.1"
|
17
17
|
},
|
18
18
|
"author": "CKSource (http://cksource.com/)",
|
19
19
|
"license": "GPL-2.0-or-later",
|
@@ -9,7 +9,7 @@ import { Plugin } from '@ckeditor/ckeditor5-core';
|
|
9
9
|
import FileRepository from '../filerepository.js';
|
10
10
|
/**
|
11
11
|
* A plugin that converts images inserted into the editor into [Base64 strings](https://en.wikipedia.org/wiki/Base64)
|
12
|
-
* in the {@glink
|
12
|
+
* in the {@glink getting-started/setup/getting-and-setting-data editor output}.
|
13
13
|
*
|
14
14
|
* This kind of image upload does not require server processing – images are stored with the rest of the text and
|
15
15
|
* displayed by the web browser without additional requests.
|
@@ -10,7 +10,7 @@ import { Plugin } from '@ckeditor/ckeditor5-core';
|
|
10
10
|
import FileRepository from '../filerepository.js';
|
11
11
|
/**
|
12
12
|
* A plugin that converts images inserted into the editor into [Base64 strings](https://en.wikipedia.org/wiki/Base64)
|
13
|
-
* in the {@glink
|
13
|
+
* in the {@glink getting-started/setup/getting-and-setting-data editor output}.
|
14
14
|
*
|
15
15
|
* This kind of image upload does not require server processing – images are stored with the rest of the text and
|
16
16
|
* displayed by the web browser without additional requests.
|
package/src/filereader.d.ts
CHANGED
@@ -9,7 +9,7 @@ declare const FileReader_base: {
|
|
9
9
|
/**
|
10
10
|
* Wrapper over the native `FileReader`.
|
11
11
|
*/
|
12
|
-
export default class FileReader extends FileReader_base {
|
12
|
+
export default class FileReader extends /* #__PURE__ */ FileReader_base {
|
13
13
|
total: number;
|
14
14
|
/**
|
15
15
|
* Instance of native FileReader.
|
package/src/filereader.js
CHANGED
@@ -10,7 +10,7 @@ import { ObservableMixin } from '@ckeditor/ckeditor5-utils';
|
|
10
10
|
/**
|
11
11
|
* Wrapper over the native `FileReader`.
|
12
12
|
*/
|
13
|
-
export default class FileReader extends ObservableMixin() {
|
13
|
+
export default class FileReader extends /* #__PURE__ */ ObservableMixin() {
|
14
14
|
/**
|
15
15
|
* Creates an instance of the FileReader.
|
16
16
|
*/
|
package/src/filerepository.d.ts
CHANGED
@@ -116,7 +116,7 @@ declare const FileLoader_base: {
|
|
116
116
|
*
|
117
117
|
* It is used to control the process of reading the file and uploading it using the specified upload adapter.
|
118
118
|
*/
|
119
|
-
declare class FileLoader extends FileLoader_base {
|
119
|
+
declare class FileLoader extends /* #__PURE__ */ FileLoader_base {
|
120
120
|
/**
|
121
121
|
* Unique id of FileLoader instance.
|
122
122
|
*
|
package/src/filerepository.js
CHANGED
@@ -86,14 +86,17 @@ export default class FileRepository extends Plugin {
|
|
86
86
|
* This warning shows up when {@link module:upload/filerepository~FileRepository} is being used
|
87
87
|
* without {@link module:upload/filerepository~FileRepository#createUploadAdapter defining an upload adapter}.
|
88
88
|
*
|
89
|
-
* **If you see this warning when using one of the {@glink
|
89
|
+
* **If you see this warning when using one of the {@glink getting-started/legacy/installation-methods/predefined-builds
|
90
90
|
* CKEditor 5 Builds}**
|
91
91
|
* it means that you did not configure any of the upload adapters available by default in those builds.
|
92
92
|
*
|
93
|
+
* Predefined builds are a deprecated solution and we strongly advise
|
94
|
+
* {@glink updating/new-installation-methods migrating to new installation methods}.
|
95
|
+
*
|
93
96
|
* See the {@glink features/images/image-upload/image-upload comprehensive "Image upload overview"} to learn which upload
|
94
97
|
* adapters are available in the builds and how to configure them.
|
95
98
|
*
|
96
|
-
*
|
99
|
+
* Otherwise, if you see this warning, there is a chance that you enabled
|
97
100
|
* a feature like {@link module:image/imageupload~ImageUpload},
|
98
101
|
* or {@link module:image/imageupload/imageuploadui~ImageUploadUI} but you did not enable any upload adapter.
|
99
102
|
* You can choose one of the existing upload adapters listed in the
|
@@ -177,7 +180,7 @@ export default class FileRepository extends Plugin {
|
|
177
180
|
*
|
178
181
|
* It is used to control the process of reading the file and uploading it using the specified upload adapter.
|
179
182
|
*/
|
180
|
-
class FileLoader extends ObservableMixin() {
|
183
|
+
class FileLoader extends /* #__PURE__ */ ObservableMixin() {
|
181
184
|
/**
|
182
185
|
* Creates a new instance of `FileLoader`.
|
183
186
|
*
|