@ckeditor/ckeditor5-upload 37.0.0-alpha.0 → 37.0.0-alpha.1
Sign up to get free protection for your applications and to get access to all the features.
- package/package.json +5 -5
- package/src/adapters/base64uploadadapter.d.ts +0 -5
- package/src/adapters/simpleuploadadapter.d.ts +0 -5
- package/src/augmentation.d.ts +20 -0
- package/src/augmentation.js +5 -0
- package/src/filerepository.d.ts +0 -5
- package/src/filerepository.js +1 -1
- package/src/index.d.ts +2 -0
- package/src/index.js +1 -0
- package/src/ui/filedialogbuttonview.d.ts +0 -2
- package/src/uploadconfig.d.ts +0 -10
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@ckeditor/ckeditor5-upload",
|
3
|
-
"version": "37.0.0-alpha.
|
3
|
+
"version": "37.0.0-alpha.1",
|
4
4
|
"description": "Upload feature for CKEditor 5.",
|
5
5
|
"keywords": [
|
6
6
|
"ckeditor",
|
@@ -11,9 +11,9 @@
|
|
11
11
|
],
|
12
12
|
"main": "src/index.js",
|
13
13
|
"dependencies": {
|
14
|
-
"@ckeditor/ckeditor5-core": "^37.0.0-alpha.
|
15
|
-
"@ckeditor/ckeditor5-utils": "^37.0.0-alpha.
|
16
|
-
"@ckeditor/ckeditor5-ui": "^37.0.0-alpha.
|
14
|
+
"@ckeditor/ckeditor5-core": "^37.0.0-alpha.1",
|
15
|
+
"@ckeditor/ckeditor5-utils": "^37.0.0-alpha.1",
|
16
|
+
"@ckeditor/ckeditor5-ui": "^37.0.0-alpha.1"
|
17
17
|
},
|
18
18
|
"devDependencies": {
|
19
19
|
"typescript": "^4.8.4",
|
@@ -42,7 +42,7 @@
|
|
42
42
|
"CHANGELOG.md"
|
43
43
|
],
|
44
44
|
"scripts": {
|
45
|
-
"build": "tsc -p ./tsconfig.
|
45
|
+
"build": "tsc -p ./tsconfig.json",
|
46
46
|
"postversion": "npm run build"
|
47
47
|
},
|
48
48
|
"types": "src/index.d.ts"
|
@@ -0,0 +1,20 @@
|
|
1
|
+
/**
|
2
|
+
* @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
4
|
+
*/
|
5
|
+
import type { SimpleUploadConfig, FileRepository, SimpleUploadAdapter, Base64UploadAdapter } from './index';
|
6
|
+
declare module '@ckeditor/ckeditor5-core' {
|
7
|
+
interface EditorConfig {
|
8
|
+
/**
|
9
|
+
* The configuration of the {@link module:upload/adapters/simpleuploadadapter~SimpleUploadAdapter simple upload adapter}.
|
10
|
+
*
|
11
|
+
* Read more in {@link module:upload/uploadconfig~SimpleUploadConfig}.
|
12
|
+
*/
|
13
|
+
simpleUpload?: SimpleUploadConfig;
|
14
|
+
}
|
15
|
+
interface PluginsMap {
|
16
|
+
[FileRepository.pluginName]: FileRepository;
|
17
|
+
[SimpleUploadAdapter.pluginName]: SimpleUploadAdapter;
|
18
|
+
[Base64UploadAdapter.pluginName]: Base64UploadAdapter;
|
19
|
+
}
|
20
|
+
}
|
package/src/filerepository.d.ts
CHANGED
package/src/filerepository.js
CHANGED
@@ -84,7 +84,7 @@ export default class FileRepository extends Plugin {
|
|
84
84
|
* You need to enable an upload adapter in order to be able to upload files.
|
85
85
|
*
|
86
86
|
* This warning shows up when {@link module:upload/filerepository~FileRepository} is being used
|
87
|
-
* without {@link #createUploadAdapter defining an upload adapter}.
|
87
|
+
* without {@link module:upload/filerepository~FileRepository#createUploadAdapter defining an upload adapter}.
|
88
88
|
*
|
89
89
|
* **If you see this warning when using one of the {@glink installation/getting-started/predefined-builds
|
90
90
|
* CKEditor 5 Builds}**
|
package/src/index.d.ts
CHANGED
@@ -9,3 +9,5 @@ export { default as FileRepository, type UploadAdapter, type UploadResponse, typ
|
|
9
9
|
export { default as FileDialogButtonView } from './ui/filedialogbuttonview';
|
10
10
|
export { default as Base64UploadAdapter } from './adapters/base64uploadadapter';
|
11
11
|
export { default as SimpleUploadAdapter } from './adapters/simpleuploadadapter';
|
12
|
+
export type { SimpleUploadConfig } from './uploadconfig';
|
13
|
+
import './augmentation';
|
package/src/index.js
CHANGED
@@ -9,3 +9,4 @@ export { default as FileRepository } from './filerepository';
|
|
9
9
|
export { default as FileDialogButtonView } from './ui/filedialogbuttonview';
|
10
10
|
export { default as Base64UploadAdapter } from './adapters/base64uploadadapter';
|
11
11
|
export { default as SimpleUploadAdapter } from './adapters/simpleuploadadapter';
|
12
|
+
import './augmentation';
|
package/src/uploadconfig.d.ts
CHANGED
@@ -88,13 +88,3 @@ export interface SimpleUploadConfig {
|
|
88
88
|
*/
|
89
89
|
withCredentials?: boolean;
|
90
90
|
}
|
91
|
-
declare module '@ckeditor/ckeditor5-core' {
|
92
|
-
interface EditorConfig {
|
93
|
-
/**
|
94
|
-
* The configuration of the {@link module:upload/adapters/simpleuploadadapter~SimpleUploadAdapter simple upload adapter}.
|
95
|
-
*
|
96
|
-
* Read more in {@link module:upload/uploadconfig~SimpleUploadConfig}.
|
97
|
-
*/
|
98
|
-
simpleUpload?: SimpleUploadConfig;
|
99
|
-
}
|
100
|
-
}
|