@ckeditor/ckeditor5-indent 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 +11 -11
- package/src/augmentation.d.ts +24 -0
- package/src/augmentation.js +5 -0
- package/src/indent.d.ts +0 -5
- package/src/indentblock.d.ts +0 -6
- package/src/indentblock.js +0 -1
- package/src/indentblockcommand.d.ts +0 -6
- package/src/indentconfig.d.ts +0 -10
- package/src/indentui.d.ts +0 -5
- 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-indent",
|
|
3
|
-
"version": "37.0.0-alpha.
|
|
3
|
+
"version": "37.0.0-alpha.2",
|
|
4
4
|
"description": "Block indentation feature for CKEditor 5.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ckeditor",
|
|
@@ -12,17 +12,17 @@
|
|
|
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-core": "^37.0.0-alpha.
|
|
19
|
-
"@ckeditor/ckeditor5-dev-utils": "^
|
|
20
|
-
"@ckeditor/ckeditor5-editor-classic": "^37.0.0-alpha.
|
|
21
|
-
"@ckeditor/ckeditor5-engine": "^37.0.0-alpha.
|
|
22
|
-
"@ckeditor/ckeditor5-heading": "^37.0.0-alpha.
|
|
23
|
-
"@ckeditor/ckeditor5-paragraph": "^37.0.0-alpha.
|
|
24
|
-
"@ckeditor/ckeditor5-theme-lark": "^37.0.0-alpha.
|
|
25
|
-
"@ckeditor/ckeditor5-ui": "^37.0.0-alpha.
|
|
18
|
+
"@ckeditor/ckeditor5-core": "^37.0.0-alpha.2",
|
|
19
|
+
"@ckeditor/ckeditor5-dev-utils": "^35.0.0",
|
|
20
|
+
"@ckeditor/ckeditor5-editor-classic": "^37.0.0-alpha.2",
|
|
21
|
+
"@ckeditor/ckeditor5-engine": "^37.0.0-alpha.2",
|
|
22
|
+
"@ckeditor/ckeditor5-heading": "^37.0.0-alpha.2",
|
|
23
|
+
"@ckeditor/ckeditor5-paragraph": "^37.0.0-alpha.2",
|
|
24
|
+
"@ckeditor/ckeditor5-theme-lark": "^37.0.0-alpha.2",
|
|
25
|
+
"@ckeditor/ckeditor5-ui": "^37.0.0-alpha.2",
|
|
26
26
|
"typescript": "^4.8.4",
|
|
27
27
|
"webpack": "^5.58.1",
|
|
28
28
|
"webpack-cli": "^4.9.0"
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
],
|
|
52
52
|
"scripts": {
|
|
53
53
|
"dll:build": "webpack",
|
|
54
|
-
"build": "tsc -p ./tsconfig.
|
|
54
|
+
"build": "tsc -p ./tsconfig.json",
|
|
55
55
|
"postversion": "npm run build"
|
|
56
56
|
},
|
|
57
57
|
"types": "src/index.d.ts"
|
|
@@ -0,0 +1,24 @@
|
|
|
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 { IndentBlockConfig, Indent, IndentBlock, IndentUI, IndentBlockCommand } from './index';
|
|
6
|
+
declare module '@ckeditor/ckeditor5-core' {
|
|
7
|
+
interface EditorConfig {
|
|
8
|
+
/**
|
|
9
|
+
* The configuration of the {@link module:indent/indentblock~IndentBlock block indentation feature}.
|
|
10
|
+
*
|
|
11
|
+
* Read more in {@link module:indent/indentconfig~IndentBlockConfig}.
|
|
12
|
+
*/
|
|
13
|
+
indentBlock?: IndentBlockConfig;
|
|
14
|
+
}
|
|
15
|
+
interface PluginsMap {
|
|
16
|
+
[Indent.pluginName]: Indent;
|
|
17
|
+
[IndentBlock.pluginName]: IndentBlock;
|
|
18
|
+
[IndentUI.pluginName]: IndentUI;
|
|
19
|
+
}
|
|
20
|
+
interface CommandsMap {
|
|
21
|
+
indentBlock: IndentBlockCommand;
|
|
22
|
+
outdentBlock: IndentBlockCommand;
|
|
23
|
+
}
|
|
24
|
+
}
|
package/src/indent.d.ts
CHANGED
package/src/indentblock.d.ts
CHANGED
|
@@ -6,7 +6,6 @@
|
|
|
6
6
|
* @module indent/indentblock
|
|
7
7
|
*/
|
|
8
8
|
import { Plugin, type Editor } from 'ckeditor5/src/core';
|
|
9
|
-
import './indentconfig';
|
|
10
9
|
/**
|
|
11
10
|
* The block indentation feature.
|
|
12
11
|
*
|
|
@@ -41,8 +40,3 @@ export default class IndentBlock extends Plugin {
|
|
|
41
40
|
*/
|
|
42
41
|
private _setupConversionUsingClasses;
|
|
43
42
|
}
|
|
44
|
-
declare module '@ckeditor/ckeditor5-core' {
|
|
45
|
-
interface PluginsMap {
|
|
46
|
-
[IndentBlock.pluginName]: IndentBlock;
|
|
47
|
-
}
|
|
48
|
-
}
|
package/src/indentblock.js
CHANGED
|
@@ -10,7 +10,6 @@ import { addMarginRules } from 'ckeditor5/src/engine';
|
|
|
10
10
|
import IndentBlockCommand from './indentblockcommand';
|
|
11
11
|
import IndentUsingOffset from './indentcommandbehavior/indentusingoffset';
|
|
12
12
|
import IndentUsingClasses from './indentcommandbehavior/indentusingclasses';
|
|
13
|
-
import './indentconfig';
|
|
14
13
|
const DEFAULT_ELEMENTS = ['paragraph', 'heading1', 'heading2', 'heading3', 'heading4', 'heading5', 'heading6'];
|
|
15
14
|
/**
|
|
16
15
|
* The block indentation feature.
|
package/src/indentconfig.d.ts
CHANGED
|
@@ -70,13 +70,3 @@ export interface IndentBlockConfig {
|
|
|
70
70
|
*/
|
|
71
71
|
classes?: Array<string>;
|
|
72
72
|
}
|
|
73
|
-
declare module '@ckeditor/ckeditor5-core' {
|
|
74
|
-
interface EditorConfig {
|
|
75
|
-
/**
|
|
76
|
-
* The configuration of the {@link module:indent/indentblock~IndentBlock block indentation feature}.
|
|
77
|
-
*
|
|
78
|
-
* Read more in {@link module:indent/indentconfig~IndentBlockConfig}.
|
|
79
|
-
*/
|
|
80
|
-
indentBlock?: IndentBlockConfig;
|
|
81
|
-
}
|
|
82
|
-
}
|
package/src/indentui.d.ts
CHANGED
package/src/index.d.ts
CHANGED
|
@@ -9,3 +9,6 @@ export { default as Indent } from './indent';
|
|
|
9
9
|
export { default as IndentEditing } from './indentediting';
|
|
10
10
|
export { default as IndentUI } from './indentui';
|
|
11
11
|
export { default as IndentBlock } from './indentblock';
|
|
12
|
+
export type { IndentBlockConfig } from './indentconfig';
|
|
13
|
+
export type { default as IndentBlockCommand } from './indentblockcommand';
|
|
14
|
+
import './augmentation';
|
package/src/index.js
CHANGED