@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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-ckbox",
3
- "version": "37.0.0-alpha.0",
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.0"
15
+ "ckeditor5": "^37.0.0-alpha.2"
16
16
  },
17
17
  "devDependencies": {
18
- "@ckeditor/ckeditor5-basic-styles": "^37.0.0-alpha.0",
19
- "@ckeditor/ckeditor5-core": "^37.0.0-alpha.0",
20
- "@ckeditor/ckeditor5-clipboard": "^37.0.0-alpha.0",
21
- "@ckeditor/ckeditor5-cloud-services": "^37.0.0-alpha.0",
22
- "@ckeditor/ckeditor5-dev-utils": "^34.0.0",
23
- "@ckeditor/ckeditor5-editor-classic": "^37.0.0-alpha.0",
24
- "@ckeditor/ckeditor5-engine": "^37.0.0-alpha.0",
25
- "@ckeditor/ckeditor5-image": "^37.0.0-alpha.0",
26
- "@ckeditor/ckeditor5-link": "^37.0.0-alpha.0",
27
- "@ckeditor/ckeditor5-paragraph": "^37.0.0-alpha.0",
28
- "@ckeditor/ckeditor5-theme-lark": "^37.0.0-alpha.0",
29
- "@ckeditor/ckeditor5-ui": "^37.0.0-alpha.0",
30
- "@ckeditor/ckeditor5-upload": "^37.0.0-alpha.0",
31
- "@ckeditor/ckeditor5-utils": "^37.0.0-alpha.0",
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.release.json",
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
+ }
@@ -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 {};
package/src/ckbox.d.ts CHANGED
@@ -29,8 +29,3 @@ export default class CKBox extends Plugin {
29
29
  */
30
30
  static get requires(): PluginDependencies;
31
31
  }
32
- declare module '@ckeditor/ckeditor5-core' {
33
- interface PluginsMap {
34
- [CKBox.pluginName]: CKBox;
35
- }
36
- }
@@ -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
- * editor.execute( 'ckbox' );
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
- }
@@ -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
- * editor.execute( 'ckbox' );
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
@@ -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
  *
@@ -49,8 +49,3 @@ export default class CKBoxEditing extends Plugin {
49
49
  */
50
50
  private _initFixers;
51
51
  }
52
- declare module '@ckeditor/ckeditor5-core' {
53
- interface PluginsMap {
54
- [CKBoxEditing.pluginName]: CKBoxEditing;
55
- }
56
- }
@@ -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
@@ -8,3 +8,4 @@
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
+ import './augmentation';