@ckeditor/ckeditor5-code-block 37.0.0-alpha.0 → 37.0.0-alpha.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-code-block",
3
- "version": "37.0.0-alpha.0",
3
+ "version": "37.0.0-alpha.2",
4
4
  "description": "Code block feature for CKEditor 5.",
5
5
  "keywords": [
6
6
  "ckeditor",
@@ -12,27 +12,27 @@
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-alignment": "^37.0.0-alpha.0",
19
- "@ckeditor/ckeditor5-autoformat": "^37.0.0-alpha.0",
20
- "@ckeditor/ckeditor5-basic-styles": "^37.0.0-alpha.0",
21
- "@ckeditor/ckeditor5-block-quote": "^37.0.0-alpha.0",
22
- "@ckeditor/ckeditor5-clipboard": "^37.0.0-alpha.0",
23
- "@ckeditor/ckeditor5-core": "^37.0.0-alpha.0",
24
- "@ckeditor/ckeditor5-dev-utils": "^34.0.0",
25
- "@ckeditor/ckeditor5-engine": "^37.0.0-alpha.0",
26
- "@ckeditor/ckeditor5-enter": "^37.0.0-alpha.0",
27
- "@ckeditor/ckeditor5-editor-classic": "^37.0.0-alpha.0",
28
- "@ckeditor/ckeditor5-image": "^37.0.0-alpha.0",
29
- "@ckeditor/ckeditor5-indent": "^37.0.0-alpha.0",
30
- "@ckeditor/ckeditor5-list": "^37.0.0-alpha.0",
31
- "@ckeditor/ckeditor5-markdown-gfm": "^37.0.0-alpha.0",
32
- "@ckeditor/ckeditor5-paragraph": "^37.0.0-alpha.0",
33
- "@ckeditor/ckeditor5-theme-lark": "^37.0.0-alpha.0",
34
- "@ckeditor/ckeditor5-undo": "^37.0.0-alpha.0",
35
- "@ckeditor/ckeditor5-utils": "^37.0.0-alpha.0",
18
+ "@ckeditor/ckeditor5-alignment": "^37.0.0-alpha.2",
19
+ "@ckeditor/ckeditor5-autoformat": "^37.0.0-alpha.2",
20
+ "@ckeditor/ckeditor5-basic-styles": "^37.0.0-alpha.2",
21
+ "@ckeditor/ckeditor5-block-quote": "^37.0.0-alpha.2",
22
+ "@ckeditor/ckeditor5-clipboard": "^37.0.0-alpha.2",
23
+ "@ckeditor/ckeditor5-core": "^37.0.0-alpha.2",
24
+ "@ckeditor/ckeditor5-dev-utils": "^35.0.0",
25
+ "@ckeditor/ckeditor5-engine": "^37.0.0-alpha.2",
26
+ "@ckeditor/ckeditor5-enter": "^37.0.0-alpha.2",
27
+ "@ckeditor/ckeditor5-editor-classic": "^37.0.0-alpha.2",
28
+ "@ckeditor/ckeditor5-image": "^37.0.0-alpha.2",
29
+ "@ckeditor/ckeditor5-indent": "^37.0.0-alpha.2",
30
+ "@ckeditor/ckeditor5-list": "^37.0.0-alpha.2",
31
+ "@ckeditor/ckeditor5-markdown-gfm": "^37.0.0-alpha.2",
32
+ "@ckeditor/ckeditor5-paragraph": "^37.0.0-alpha.2",
33
+ "@ckeditor/ckeditor5-theme-lark": "^37.0.0-alpha.2",
34
+ "@ckeditor/ckeditor5-undo": "^37.0.0-alpha.2",
35
+ "@ckeditor/ckeditor5-utils": "^37.0.0-alpha.2",
36
36
  "typescript": "^4.8.4",
37
37
  "webpack": "^5.58.1",
38
38
  "webpack-cli": "^4.9.0"
@@ -61,7 +61,7 @@
61
61
  ],
62
62
  "scripts": {
63
63
  "dll:build": "webpack",
64
- "build": "tsc -p ./tsconfig.release.json",
64
+ "build": "tsc -p ./tsconfig.json",
65
65
  "postversion": "npm run build"
66
66
  },
67
67
  "types": "src/index.d.ts"
@@ -0,0 +1,25 @@
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 { CodeBlock, CodeBlockCommand, CodeBlockConfig, CodeBlockEditing, CodeBlockUI, IndentCodeBlockCommand, OutdentCodeBlockCommand } from './index';
6
+ declare module '@ckeditor/ckeditor5-core' {
7
+ interface EditorConfig {
8
+ /**
9
+ * The configuration of the {@link module:code-block/codeblock~CodeBlock} feature.
10
+ *
11
+ * Read more in {@link module:code-block/codeblockconfig~CodeBlockConfig}.
12
+ */
13
+ codeBlock?: CodeBlockConfig;
14
+ }
15
+ interface PluginsMap {
16
+ [CodeBlock.pluginName]: CodeBlock;
17
+ [CodeBlockEditing.pluginName]: CodeBlockEditing;
18
+ [CodeBlockUI.pluginName]: CodeBlockUI;
19
+ }
20
+ interface CommandsMap {
21
+ codeBlock: CodeBlockCommand;
22
+ indentCodeBlock: IndentCodeBlockCommand;
23
+ outdentCodeBlock: OutdentCodeBlockCommand;
24
+ }
25
+ }
@@ -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 {};
@@ -25,8 +25,3 @@ export default class CodeBlock extends Plugin {
25
25
  */
26
26
  static get pluginName(): 'CodeBlock';
27
27
  }
28
- declare module '@ckeditor/ckeditor5-core' {
29
- interface PluginsMap {
30
- [CodeBlock.pluginName]: CodeBlock;
31
- }
32
- }
@@ -58,8 +58,3 @@ export default class CodeBlockCommand extends Command {
58
58
  private _applyCodeBlock;
59
59
  private _removeCodeBlock;
60
60
  }
61
- declare module '@ckeditor/ckeditor5-core' {
62
- interface CommandsMap {
63
- codeBlock: CodeBlockCommand;
64
- }
65
- }
@@ -5,16 +5,6 @@
5
5
  /**
6
6
  * @module code-block/codeblockconfig
7
7
  */
8
- declare module '@ckeditor/ckeditor5-core' {
9
- interface EditorConfig {
10
- /**
11
- * The configuration of the {@link module:code-block/codeblock~CodeBlock} feature.
12
- *
13
- * Read more in {@link module:code-block/codeblockconfig~CodeBlockConfig}.
14
- */
15
- codeBlock?: CodeBlockConfig;
16
- }
17
- }
18
8
  /**
19
9
  * The configuration of the {@link module:code-block/codeblock~CodeBlock code block feature}.
20
10
  *
@@ -33,8 +33,3 @@ export default class CodeBlockEditing extends Plugin {
33
33
  */
34
34
  afterInit(): void;
35
35
  }
36
- declare module '@ckeditor/ckeditor5-core' {
37
- interface PluginsMap {
38
- [CodeBlockEditing.pluginName]: CodeBlockEditing;
39
- }
40
- }
@@ -27,8 +27,3 @@ export default class CodeBlockUI extends Plugin {
27
27
  */
28
28
  private _getLanguageListItemDefinitions;
29
29
  }
30
- declare module '@ckeditor/ckeditor5-core' {
31
- interface PluginsMap {
32
- [CodeBlockUI.pluginName]: CodeBlockUI;
33
- }
34
- }
@@ -6,7 +6,6 @@
6
6
  * @module code-block/indentcodeblockcommand
7
7
  */
8
8
  import { Command, type Editor } from 'ckeditor5/src/core';
9
- import './codeblockconfig';
10
9
  /**
11
10
  * The code block indentation increase command plugin.
12
11
  */
@@ -32,8 +31,3 @@ export default class IndentCodeBlockCommand extends Command {
32
31
  */
33
32
  private _checkEnabled;
34
33
  }
35
- declare module '@ckeditor/ckeditor5-core' {
36
- interface CommandsMap {
37
- indentCodeBlock: IndentCodeBlockCommand;
38
- }
39
- }
@@ -7,7 +7,6 @@
7
7
  */
8
8
  import { Command } from 'ckeditor5/src/core';
9
9
  import { getIndentOutdentPositions, isModelSelectionInCodeBlock } from './utils';
10
- import './codeblockconfig';
11
10
  /**
12
11
  * The code block indentation increase command plugin.
13
12
  */
package/src/index.d.ts CHANGED
@@ -8,3 +8,8 @@
8
8
  export { default as CodeBlock } from './codeblock';
9
9
  export { default as CodeBlockEditing } from './codeblockediting';
10
10
  export { default as CodeBlockUI } from './codeblockui';
11
+ export type { default as CodeBlockCommand } from './codeblockcommand';
12
+ export type { default as IndentCodeBlockCommand } from './indentcodeblockcommand';
13
+ export type { default as OutdentCodeBlockCommand } from './outdentcodeblockcommand';
14
+ export type { CodeBlockConfig } from './codeblockconfig';
15
+ import './augmentation';
package/src/index.js CHANGED
@@ -8,3 +8,4 @@
8
8
  export { default as CodeBlock } from './codeblock';
9
9
  export { default as CodeBlockEditing } from './codeblockediting';
10
10
  export { default as CodeBlockUI } from './codeblockui';
11
+ import './augmentation';
@@ -3,7 +3,6 @@
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
4
  */
5
5
  import { Command, type Editor } from 'ckeditor5/src/core';
6
- import './codeblockconfig';
7
6
  /**
8
7
  * The code block indentation decrease command plugin.
9
8
  */
@@ -32,8 +31,3 @@ export default class OutdentCodeBlockCommand extends Command {
32
31
  */
33
32
  private _checkEnabled;
34
33
  }
35
- declare module '@ckeditor/ckeditor5-core' {
36
- interface CommandsMap {
37
- outdentCodeBlock: OutdentCodeBlockCommand;
38
- }
39
- }
@@ -4,7 +4,6 @@
4
4
  */
5
5
  import { Command } from 'ckeditor5/src/core';
6
6
  import { getLeadingWhiteSpaces, getIndentOutdentPositions, isModelSelectionInCodeBlock } from './utils';
7
- import './codeblockconfig';
8
7
  /**
9
8
  * The code block indentation decrease command plugin.
10
9
  */