@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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-upload",
3
- "version": "37.0.0-alpha.0",
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.0",
15
- "@ckeditor/ckeditor5-utils": "^37.0.0-alpha.0",
16
- "@ckeditor/ckeditor5-ui": "^37.0.0-alpha.0"
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.release.json",
45
+ "build": "tsc -p ./tsconfig.json",
46
46
  "postversion": "npm run build"
47
47
  },
48
48
  "types": "src/index.d.ts"
@@ -30,8 +30,3 @@ export default class Base64UploadAdapter extends Plugin {
30
30
  */
31
31
  init(): void;
32
32
  }
33
- declare module '@ckeditor/ckeditor5-core' {
34
- interface PluginsMap {
35
- [Base64UploadAdapter.pluginName]: Base64UploadAdapter;
36
- }
37
- }
@@ -45,8 +45,3 @@ export default class SimpleUploadAdapter extends Plugin {
45
45
  */
46
46
  init(): void;
47
47
  }
48
- declare module '@ckeditor/ckeditor5-core' {
49
- interface PluginsMap {
50
- [SimpleUploadAdapter.pluginName]: SimpleUploadAdapter;
51
- }
52
- }
@@ -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
+ }
@@ -0,0 +1,5 @@
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
+ export {};
@@ -340,8 +340,3 @@ export interface UploadAdapter {
340
340
  abort?(): void;
341
341
  }
342
342
  export type UploadResponse = Record<string, unknown>;
343
- declare module '@ckeditor/ckeditor5-core' {
344
- interface PluginsMap {
345
- [FileRepository.pluginName]: FileRepository;
346
- }
347
- }
@@ -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';
@@ -77,8 +77,6 @@ export default class FileDialogButtonView extends View {
77
77
  * }
78
78
  * }
79
79
  * ```
80
- *
81
- * @eventName done
82
80
  */
83
81
  export type FileInputViewDoneEvent = {
84
82
  name: 'done';
@@ -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
- }