@ckeditor/ckeditor5-code-block 37.0.0-alpha.0 → 37.0.0-alpha.1
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 +21 -21
- package/src/augmentation.d.ts +25 -0
- package/src/augmentation.js +5 -0
- package/src/codeblock.d.ts +0 -5
- package/src/codeblockcommand.d.ts +0 -5
- package/src/codeblockconfig.d.ts +0 -10
- package/src/codeblockediting.d.ts +0 -5
- package/src/codeblockui.d.ts +0 -5
- package/src/indentcodeblockcommand.d.ts +0 -6
- package/src/indentcodeblockcommand.js +0 -1
- package/src/index.d.ts +5 -0
- package/src/index.js +1 -0
- package/src/outdentcodeblockcommand.d.ts +0 -6
- package/src/outdentcodeblockcommand.js +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ckeditor/ckeditor5-code-block",
|
|
3
|
-
"version": "37.0.0-alpha.
|
|
3
|
+
"version": "37.0.0-alpha.1",
|
|
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.
|
|
15
|
+
"ckeditor5": "^37.0.0-alpha.1"
|
|
16
16
|
},
|
|
17
17
|
"devDependencies": {
|
|
18
|
-
"@ckeditor/ckeditor5-alignment": "^37.0.0-alpha.
|
|
19
|
-
"@ckeditor/ckeditor5-autoformat": "^37.0.0-alpha.
|
|
20
|
-
"@ckeditor/ckeditor5-basic-styles": "^37.0.0-alpha.
|
|
21
|
-
"@ckeditor/ckeditor5-block-quote": "^37.0.0-alpha.
|
|
22
|
-
"@ckeditor/ckeditor5-clipboard": "^37.0.0-alpha.
|
|
23
|
-
"@ckeditor/ckeditor5-core": "^37.0.0-alpha.
|
|
24
|
-
"@ckeditor/ckeditor5-dev-utils": "^
|
|
25
|
-
"@ckeditor/ckeditor5-engine": "^37.0.0-alpha.
|
|
26
|
-
"@ckeditor/ckeditor5-enter": "^37.0.0-alpha.
|
|
27
|
-
"@ckeditor/ckeditor5-editor-classic": "^37.0.0-alpha.
|
|
28
|
-
"@ckeditor/ckeditor5-image": "^37.0.0-alpha.
|
|
29
|
-
"@ckeditor/ckeditor5-indent": "^37.0.0-alpha.
|
|
30
|
-
"@ckeditor/ckeditor5-list": "^37.0.0-alpha.
|
|
31
|
-
"@ckeditor/ckeditor5-markdown-gfm": "^37.0.0-alpha.
|
|
32
|
-
"@ckeditor/ckeditor5-paragraph": "^37.0.0-alpha.
|
|
33
|
-
"@ckeditor/ckeditor5-theme-lark": "^37.0.0-alpha.
|
|
34
|
-
"@ckeditor/ckeditor5-undo": "^37.0.0-alpha.
|
|
35
|
-
"@ckeditor/ckeditor5-utils": "^37.0.0-alpha.
|
|
18
|
+
"@ckeditor/ckeditor5-alignment": "^37.0.0-alpha.1",
|
|
19
|
+
"@ckeditor/ckeditor5-autoformat": "^37.0.0-alpha.1",
|
|
20
|
+
"@ckeditor/ckeditor5-basic-styles": "^37.0.0-alpha.1",
|
|
21
|
+
"@ckeditor/ckeditor5-block-quote": "^37.0.0-alpha.1",
|
|
22
|
+
"@ckeditor/ckeditor5-clipboard": "^37.0.0-alpha.1",
|
|
23
|
+
"@ckeditor/ckeditor5-core": "^37.0.0-alpha.1",
|
|
24
|
+
"@ckeditor/ckeditor5-dev-utils": "^35.0.0",
|
|
25
|
+
"@ckeditor/ckeditor5-engine": "^37.0.0-alpha.1",
|
|
26
|
+
"@ckeditor/ckeditor5-enter": "^37.0.0-alpha.1",
|
|
27
|
+
"@ckeditor/ckeditor5-editor-classic": "^37.0.0-alpha.1",
|
|
28
|
+
"@ckeditor/ckeditor5-image": "^37.0.0-alpha.1",
|
|
29
|
+
"@ckeditor/ckeditor5-indent": "^37.0.0-alpha.1",
|
|
30
|
+
"@ckeditor/ckeditor5-list": "^37.0.0-alpha.1",
|
|
31
|
+
"@ckeditor/ckeditor5-markdown-gfm": "^37.0.0-alpha.1",
|
|
32
|
+
"@ckeditor/ckeditor5-paragraph": "^37.0.0-alpha.1",
|
|
33
|
+
"@ckeditor/ckeditor5-theme-lark": "^37.0.0-alpha.1",
|
|
34
|
+
"@ckeditor/ckeditor5-undo": "^37.0.0-alpha.1",
|
|
35
|
+
"@ckeditor/ckeditor5-utils": "^37.0.0-alpha.1",
|
|
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.
|
|
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
|
+
}
|
package/src/codeblock.d.ts
CHANGED
package/src/codeblockconfig.d.ts
CHANGED
|
@@ -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
|
*
|
package/src/codeblockui.d.ts
CHANGED
|
@@ -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
|
-
}
|
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
|
@@ -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
|
-
}
|