@ckeditor/ckeditor5-ckbox 37.0.0-alpha.0 → 37.0.0-alpha.2
Sign up to get free protection for your applications and to get access to all the features.
- package/package.json +17 -17
- package/src/augmentation.d.ts +22 -0
- package/src/augmentation.js +5 -0
- package/src/ckbox.d.ts +0 -5
- package/src/ckboxcommand.d.ts +3 -6
- package/src/ckboxcommand.js +3 -1
- package/src/ckboxconfig.d.ts +0 -10
- package/src/ckboxediting.d.ts +0 -5
- package/src/ckboxuploadadapter.d.ts +0 -1
- package/src/ckboxuploadadapter.js +0 -1
- package/src/index.d.ts +3 -0
- package/src/index.js +1 -0
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@ckeditor/ckeditor5-ckbox",
|
3
|
-
"version": "37.0.0-alpha.
|
3
|
+
"version": "37.0.0-alpha.2",
|
4
4
|
"description": "CKBox integration for CKEditor 5.",
|
5
5
|
"keywords": [
|
6
6
|
"ckeditor",
|
@@ -12,23 +12,23 @@
|
|
12
12
|
],
|
13
13
|
"main": "src/index.js",
|
14
14
|
"dependencies": {
|
15
|
-
"ckeditor5": "^37.0.0-alpha.
|
15
|
+
"ckeditor5": "^37.0.0-alpha.2"
|
16
16
|
},
|
17
17
|
"devDependencies": {
|
18
|
-
"@ckeditor/ckeditor5-basic-styles": "^37.0.0-alpha.
|
19
|
-
"@ckeditor/ckeditor5-core": "^37.0.0-alpha.
|
20
|
-
"@ckeditor/ckeditor5-clipboard": "^37.0.0-alpha.
|
21
|
-
"@ckeditor/ckeditor5-cloud-services": "^37.0.0-alpha.
|
22
|
-
"@ckeditor/ckeditor5-dev-utils": "^
|
23
|
-
"@ckeditor/ckeditor5-editor-classic": "^37.0.0-alpha.
|
24
|
-
"@ckeditor/ckeditor5-engine": "^37.0.0-alpha.
|
25
|
-
"@ckeditor/ckeditor5-image": "^37.0.0-alpha.
|
26
|
-
"@ckeditor/ckeditor5-link": "^37.0.0-alpha.
|
27
|
-
"@ckeditor/ckeditor5-paragraph": "^37.0.0-alpha.
|
28
|
-
"@ckeditor/ckeditor5-theme-lark": "^37.0.0-alpha.
|
29
|
-
"@ckeditor/ckeditor5-ui": "^37.0.0-alpha.
|
30
|
-
"@ckeditor/ckeditor5-upload": "^37.0.0-alpha.
|
31
|
-
"@ckeditor/ckeditor5-utils": "^37.0.0-alpha.
|
18
|
+
"@ckeditor/ckeditor5-basic-styles": "^37.0.0-alpha.2",
|
19
|
+
"@ckeditor/ckeditor5-core": "^37.0.0-alpha.2",
|
20
|
+
"@ckeditor/ckeditor5-clipboard": "^37.0.0-alpha.2",
|
21
|
+
"@ckeditor/ckeditor5-cloud-services": "^37.0.0-alpha.2",
|
22
|
+
"@ckeditor/ckeditor5-dev-utils": "^35.0.0",
|
23
|
+
"@ckeditor/ckeditor5-editor-classic": "^37.0.0-alpha.2",
|
24
|
+
"@ckeditor/ckeditor5-engine": "^37.0.0-alpha.2",
|
25
|
+
"@ckeditor/ckeditor5-image": "^37.0.0-alpha.2",
|
26
|
+
"@ckeditor/ckeditor5-link": "^37.0.0-alpha.2",
|
27
|
+
"@ckeditor/ckeditor5-paragraph": "^37.0.0-alpha.2",
|
28
|
+
"@ckeditor/ckeditor5-theme-lark": "^37.0.0-alpha.2",
|
29
|
+
"@ckeditor/ckeditor5-ui": "^37.0.0-alpha.2",
|
30
|
+
"@ckeditor/ckeditor5-upload": "^37.0.0-alpha.2",
|
31
|
+
"@ckeditor/ckeditor5-utils": "^37.0.0-alpha.2",
|
32
32
|
"typescript": "^4.8.4",
|
33
33
|
"webpack": "^5.58.1",
|
34
34
|
"webpack-cli": "^4.9.0"
|
@@ -57,7 +57,7 @@
|
|
57
57
|
],
|
58
58
|
"scripts": {
|
59
59
|
"dll:build": "webpack",
|
60
|
-
"build": "tsc -p ./tsconfig.
|
60
|
+
"build": "tsc -p ./tsconfig.json",
|
61
61
|
"postversion": "npm run build"
|
62
62
|
},
|
63
63
|
"types": "src/index.d.ts"
|
@@ -0,0 +1,22 @@
|
|
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 { CKBox, CKBoxCommand, CKBoxConfig, CKBoxEditing } from './index';
|
6
|
+
declare module '@ckeditor/ckeditor5-core' {
|
7
|
+
interface EditorConfig {
|
8
|
+
/**
|
9
|
+
* The configuration of the {@link module:ckbox/ckbox~CKBox CKBox feature}.
|
10
|
+
*
|
11
|
+
* Read more in {@link module:ckbox/ckboxconfig~CKBoxConfig}.
|
12
|
+
*/
|
13
|
+
ckbox?: CKBoxConfig;
|
14
|
+
}
|
15
|
+
interface PluginsMap {
|
16
|
+
[CKBox.pluginName]: CKBox;
|
17
|
+
[CKBoxEditing.pluginName]: CKBoxEditing;
|
18
|
+
}
|
19
|
+
interface CommandsMap {
|
20
|
+
ckbox: CKBoxCommand;
|
21
|
+
}
|
22
|
+
}
|
package/src/ckbox.d.ts
CHANGED
package/src/ckboxcommand.d.ts
CHANGED
@@ -13,7 +13,9 @@ declare global {
|
|
13
13
|
* The CKBox command. It is used by the {@link module:ckbox/ckboxediting~CKBoxEditing CKBox editing feature} to open the CKBox file manager.
|
14
14
|
* The file manager allows inserting an image or a link to a file into the editor content.
|
15
15
|
*
|
16
|
-
*
|
16
|
+
* ```ts
|
17
|
+
* editor.execute( 'ckbox' );
|
18
|
+
* ```
|
17
19
|
*
|
18
20
|
* **Note:** This command uses other features to perform the following tasks:
|
19
21
|
* - To insert images it uses the {@link module:image/image/insertimagecommand~InsertImageCommand 'insertImage'} command from the
|
@@ -107,8 +109,3 @@ export default class CKBoxCommand extends Command {
|
|
107
109
|
*/
|
108
110
|
private _insertLink;
|
109
111
|
}
|
110
|
-
declare module '@ckeditor/ckeditor5-core' {
|
111
|
-
interface CommandsMap {
|
112
|
-
ckbox: CKBoxCommand;
|
113
|
-
}
|
114
|
-
}
|
package/src/ckboxcommand.js
CHANGED
@@ -13,7 +13,9 @@ const ASSET_INSERTION_WAIT_TIMEOUT = 1000;
|
|
13
13
|
* The CKBox command. It is used by the {@link module:ckbox/ckboxediting~CKBoxEditing CKBox editing feature} to open the CKBox file manager.
|
14
14
|
* The file manager allows inserting an image or a link to a file into the editor content.
|
15
15
|
*
|
16
|
-
*
|
16
|
+
* ```ts
|
17
|
+
* editor.execute( 'ckbox' );
|
18
|
+
* ```
|
17
19
|
*
|
18
20
|
* **Note:** This command uses other features to perform the following tasks:
|
19
21
|
* - To insert images it uses the {@link module:image/image/insertimagecommand~InsertImageCommand 'insertImage'} command from the
|
package/src/ckboxconfig.d.ts
CHANGED
@@ -105,16 +105,6 @@ export interface CKBoxConfig {
|
|
105
105
|
*/
|
106
106
|
language?: string;
|
107
107
|
}
|
108
|
-
declare module '@ckeditor/ckeditor5-core' {
|
109
|
-
interface EditorConfig {
|
110
|
-
/**
|
111
|
-
* The configuration of the {@link module:ckbox/ckbox~CKBox CKBox feature}.
|
112
|
-
*
|
113
|
-
* Read more in {@link module:ckbox/ckboxconfig~CKBoxConfig}.
|
114
|
-
*/
|
115
|
-
ckbox?: CKBoxConfig;
|
116
|
-
}
|
117
|
-
}
|
118
108
|
/**
|
119
109
|
* Asset definition.
|
120
110
|
*
|
package/src/ckboxediting.d.ts
CHANGED
@@ -6,7 +6,6 @@
|
|
6
6
|
* @module ckbox/ckboxuploadadapter
|
7
7
|
*/
|
8
8
|
import { Plugin, type PluginDependencies } from 'ckeditor5/src/core';
|
9
|
-
import './ckboxconfig';
|
10
9
|
/**
|
11
10
|
* A plugin that enables file uploads in CKEditor 5 using the CKBox server–side connector.
|
12
11
|
* See the {@glink features/images/image-upload/ckbox CKBox file manager integration} guide to learn how to configure
|
@@ -11,7 +11,6 @@ import { FileRepository } from 'ckeditor5/src/upload';
|
|
11
11
|
import { logError } from 'ckeditor5/src/utils';
|
12
12
|
import CKBoxEditing from './ckboxediting';
|
13
13
|
import { getImageUrls } from './utils';
|
14
|
-
import './ckboxconfig';
|
15
14
|
/**
|
16
15
|
* A plugin that enables file uploads in CKEditor 5 using the CKBox server–side connector.
|
17
16
|
* See the {@glink features/images/image-upload/ckbox CKBox file manager integration} guide to learn how to configure
|
package/src/index.d.ts
CHANGED
@@ -8,3 +8,6 @@
|
|
8
8
|
export { default as CKBox } from './ckbox';
|
9
9
|
export { default as CKBoxEditing } from './ckboxediting';
|
10
10
|
export { default as CKBoxUI } from './ckboxui';
|
11
|
+
export type { default as CKBoxCommand } from './ckboxcommand';
|
12
|
+
export type { CKBoxConfig } from './ckboxconfig';
|
13
|
+
import './augmentation';
|
package/src/index.js
CHANGED