@ckeditor/ckeditor5-style 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 +36 -36
- package/src/augmentation.d.ts +24 -0
- package/src/augmentation.js +5 -0
- package/src/index.d.ts +3 -0
- package/src/index.js +1 -0
- package/src/style.d.ts +0 -5
- package/src/stylecommand.d.ts +0 -5
- package/src/styleconfig.d.ts +0 -10
- package/src/styleediting.d.ts +0 -5
- package/src/styleui.d.ts +0 -6
- package/src/styleui.js +0 -1
- package/src/styleutils.d.ts +1 -6
- package/src/styleutils.js +1 -1
- package/src/ui/stylegridview.d.ts +9 -0
- package/src/ui/stylegridview.js +0 -5
- package/src/ui/stylepanelview.d.ts +9 -0
- package/src/ui/stylepanelview.js +0 -5
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ckeditor/ckeditor5-style",
|
|
3
|
-
"version": "37.0.0-alpha.
|
|
3
|
+
"version": "37.0.0-alpha.2",
|
|
4
4
|
"description": "Style feature for CKEditor 5.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ckeditor",
|
|
@@ -12,43 +12,43 @@
|
|
|
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
|
"lodash-es": "^4.17.15"
|
|
17
17
|
},
|
|
18
18
|
"devDependencies": {
|
|
19
|
-
"@ckeditor/ckeditor5-alignment": "^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-cloud-services": "^37.0.0-alpha.
|
|
23
|
-
"@ckeditor/ckeditor5-code-block": "^37.0.0-alpha.
|
|
24
|
-
"@ckeditor/ckeditor5-core": "^37.0.0-alpha.
|
|
25
|
-
"@ckeditor/ckeditor5-dev-utils": "^
|
|
26
|
-
"@ckeditor/ckeditor5-easy-image": "^37.0.0-alpha.
|
|
27
|
-
"@ckeditor/ckeditor5-editor-classic": "^37.0.0-alpha.
|
|
28
|
-
"@ckeditor/ckeditor5-engine": "^37.0.0-alpha.
|
|
29
|
-
"@ckeditor/ckeditor5-font": "^37.0.0-alpha.
|
|
30
|
-
"@ckeditor/ckeditor5-heading": "^37.0.0-alpha.
|
|
31
|
-
"@ckeditor/ckeditor5-highlight": "^37.0.0-alpha.
|
|
32
|
-
"@ckeditor/ckeditor5-horizontal-line": "^37.0.0-alpha.
|
|
33
|
-
"@ckeditor/ckeditor5-html-embed": "^37.0.0-alpha.
|
|
34
|
-
"@ckeditor/ckeditor5-html-support": "^37.0.0-alpha.
|
|
35
|
-
"@ckeditor/ckeditor5-image": "^37.0.0-alpha.
|
|
36
|
-
"@ckeditor/ckeditor5-indent": "^37.0.0-alpha.
|
|
37
|
-
"@ckeditor/ckeditor5-language": "^37.0.0-alpha.
|
|
38
|
-
"@ckeditor/ckeditor5-link": "^37.0.0-alpha.
|
|
39
|
-
"@ckeditor/ckeditor5-list": "^37.0.0-alpha.
|
|
40
|
-
"@ckeditor/ckeditor5-mention": "^37.0.0-alpha.
|
|
41
|
-
"@ckeditor/ckeditor5-page-break": "^37.0.0-alpha.
|
|
42
|
-
"@ckeditor/ckeditor5-paragraph": "^37.0.0-alpha.
|
|
43
|
-
"@ckeditor/ckeditor5-paste-from-office": "^37.0.0-alpha.
|
|
44
|
-
"@ckeditor/ckeditor5-remove-format": "^37.0.0-alpha.
|
|
45
|
-
"@ckeditor/ckeditor5-source-editing": "^37.0.0-alpha.
|
|
46
|
-
"@ckeditor/ckeditor5-table": "^37.0.0-alpha.
|
|
47
|
-
"@ckeditor/ckeditor5-theme-lark": "^37.0.0-alpha.
|
|
48
|
-
"@ckeditor/ckeditor5-typing": "^37.0.0-alpha.
|
|
49
|
-
"@ckeditor/ckeditor5-ui": "^37.0.0-alpha.
|
|
50
|
-
"@ckeditor/ckeditor5-utils": "^37.0.0-alpha.
|
|
51
|
-
"@ckeditor/ckeditor5-word-count": "^37.0.0-alpha.
|
|
19
|
+
"@ckeditor/ckeditor5-alignment": "^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-cloud-services": "^37.0.0-alpha.2",
|
|
23
|
+
"@ckeditor/ckeditor5-code-block": "^37.0.0-alpha.2",
|
|
24
|
+
"@ckeditor/ckeditor5-core": "^37.0.0-alpha.2",
|
|
25
|
+
"@ckeditor/ckeditor5-dev-utils": "^35.0.0",
|
|
26
|
+
"@ckeditor/ckeditor5-easy-image": "^37.0.0-alpha.2",
|
|
27
|
+
"@ckeditor/ckeditor5-editor-classic": "^37.0.0-alpha.2",
|
|
28
|
+
"@ckeditor/ckeditor5-engine": "^37.0.0-alpha.2",
|
|
29
|
+
"@ckeditor/ckeditor5-font": "^37.0.0-alpha.2",
|
|
30
|
+
"@ckeditor/ckeditor5-heading": "^37.0.0-alpha.2",
|
|
31
|
+
"@ckeditor/ckeditor5-highlight": "^37.0.0-alpha.2",
|
|
32
|
+
"@ckeditor/ckeditor5-horizontal-line": "^37.0.0-alpha.2",
|
|
33
|
+
"@ckeditor/ckeditor5-html-embed": "^37.0.0-alpha.2",
|
|
34
|
+
"@ckeditor/ckeditor5-html-support": "^37.0.0-alpha.2",
|
|
35
|
+
"@ckeditor/ckeditor5-image": "^37.0.0-alpha.2",
|
|
36
|
+
"@ckeditor/ckeditor5-indent": "^37.0.0-alpha.2",
|
|
37
|
+
"@ckeditor/ckeditor5-language": "^37.0.0-alpha.2",
|
|
38
|
+
"@ckeditor/ckeditor5-link": "^37.0.0-alpha.2",
|
|
39
|
+
"@ckeditor/ckeditor5-list": "^37.0.0-alpha.2",
|
|
40
|
+
"@ckeditor/ckeditor5-mention": "^37.0.0-alpha.2",
|
|
41
|
+
"@ckeditor/ckeditor5-page-break": "^37.0.0-alpha.2",
|
|
42
|
+
"@ckeditor/ckeditor5-paragraph": "^37.0.0-alpha.2",
|
|
43
|
+
"@ckeditor/ckeditor5-paste-from-office": "^37.0.0-alpha.2",
|
|
44
|
+
"@ckeditor/ckeditor5-remove-format": "^37.0.0-alpha.2",
|
|
45
|
+
"@ckeditor/ckeditor5-source-editing": "^37.0.0-alpha.2",
|
|
46
|
+
"@ckeditor/ckeditor5-table": "^37.0.0-alpha.2",
|
|
47
|
+
"@ckeditor/ckeditor5-theme-lark": "^37.0.0-alpha.2",
|
|
48
|
+
"@ckeditor/ckeditor5-typing": "^37.0.0-alpha.2",
|
|
49
|
+
"@ckeditor/ckeditor5-ui": "^37.0.0-alpha.2",
|
|
50
|
+
"@ckeditor/ckeditor5-utils": "^37.0.0-alpha.2",
|
|
51
|
+
"@ckeditor/ckeditor5-word-count": "^37.0.0-alpha.2",
|
|
52
52
|
"typescript": "^4.8.4",
|
|
53
53
|
"webpack": "^5.58.1",
|
|
54
54
|
"webpack-cli": "^4.9.0"
|
|
@@ -77,7 +77,7 @@
|
|
|
77
77
|
],
|
|
78
78
|
"scripts": {
|
|
79
79
|
"dll:build": "webpack",
|
|
80
|
-
"build": "tsc -p ./tsconfig.
|
|
80
|
+
"build": "tsc -p ./tsconfig.json",
|
|
81
81
|
"postversion": "npm run build"
|
|
82
82
|
},
|
|
83
83
|
"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 { StyleConfig, StyleCommand, Style, StyleEditing, StyleUI, StyleUtils } from './index';
|
|
6
|
+
declare module '@ckeditor/ckeditor5-core' {
|
|
7
|
+
interface PluginsMap {
|
|
8
|
+
[Style.pluginName]: Style;
|
|
9
|
+
[StyleEditing.pluginName]: StyleEditing;
|
|
10
|
+
[StyleUI.pluginName]: StyleUI;
|
|
11
|
+
[StyleUtils.pluginName]: StyleUtils;
|
|
12
|
+
}
|
|
13
|
+
interface CommandsMap {
|
|
14
|
+
style: StyleCommand;
|
|
15
|
+
}
|
|
16
|
+
interface EditorConfig {
|
|
17
|
+
/**
|
|
18
|
+
* The configuration of the {@link module:style/style~Style} feature.
|
|
19
|
+
*
|
|
20
|
+
* Read more in {@link module:style/styleconfig~StyleConfig}.
|
|
21
|
+
*/
|
|
22
|
+
style?: StyleConfig;
|
|
23
|
+
}
|
|
24
|
+
}
|
package/src/index.d.ts
CHANGED
|
@@ -9,3 +9,6 @@ export { default as Style } from './style';
|
|
|
9
9
|
export { default as StyleEditing } from './styleediting';
|
|
10
10
|
export { default as StyleUI } from './styleui';
|
|
11
11
|
export { default as StyleUtils } from './styleutils';
|
|
12
|
+
export type { StyleConfig } from './styleconfig';
|
|
13
|
+
export type { default as StyleCommand } from './stylecommand';
|
|
14
|
+
import './augmentation';
|
package/src/index.js
CHANGED
package/src/style.d.ts
CHANGED
package/src/stylecommand.d.ts
CHANGED
package/src/styleconfig.d.ts
CHANGED
|
@@ -85,13 +85,3 @@ export interface StyleDefinition {
|
|
|
85
85
|
element: string;
|
|
86
86
|
classes: Array<string>;
|
|
87
87
|
}
|
|
88
|
-
declare module '@ckeditor/ckeditor5-core' {
|
|
89
|
-
interface EditorConfig {
|
|
90
|
-
/**
|
|
91
|
-
* The configuration of the {@link module:style/style~Style} feature.
|
|
92
|
-
*
|
|
93
|
-
* Read more in {@link module:style/styleconfig~StyleConfig}.
|
|
94
|
-
*/
|
|
95
|
-
style?: StyleConfig;
|
|
96
|
-
}
|
|
97
|
-
}
|
package/src/styleediting.d.ts
CHANGED
package/src/styleui.d.ts
CHANGED
|
@@ -7,7 +7,6 @@
|
|
|
7
7
|
*/
|
|
8
8
|
import { Plugin, type PluginDependencies } from 'ckeditor5/src/core';
|
|
9
9
|
import '../theme/style.css';
|
|
10
|
-
import './styleconfig';
|
|
11
10
|
/**
|
|
12
11
|
* The UI plugin of the style feature .
|
|
13
12
|
*
|
|
@@ -28,8 +27,3 @@ export default class StyleUI extends Plugin {
|
|
|
28
27
|
*/
|
|
29
28
|
init(): void;
|
|
30
29
|
}
|
|
31
|
-
declare module '@ckeditor/ckeditor5-core' {
|
|
32
|
-
interface PluginsMap {
|
|
33
|
-
[StyleUI.pluginName]: StyleUI;
|
|
34
|
-
}
|
|
35
|
-
}
|
package/src/styleui.js
CHANGED
package/src/styleutils.d.ts
CHANGED
|
@@ -14,7 +14,7 @@ export default class StyleUtils extends Plugin {
|
|
|
14
14
|
*/
|
|
15
15
|
static get pluginName(): 'StyleUtils';
|
|
16
16
|
/**
|
|
17
|
-
* Normalizes {@link module:style/
|
|
17
|
+
* Normalizes {@link module:style/styleconfig~StyleConfig#definitions} in the configuration of the styles feature.
|
|
18
18
|
* The structure of normalized styles looks as follows:
|
|
19
19
|
*
|
|
20
20
|
* ```ts
|
|
@@ -47,8 +47,3 @@ export interface BlockStyleDefinition extends StyleDefinition {
|
|
|
47
47
|
export interface InlineStyleDefinition extends StyleDefinition {
|
|
48
48
|
ghsAttributes: Array<string>;
|
|
49
49
|
}
|
|
50
|
-
declare module '@ckeditor/ckeditor5-core' {
|
|
51
|
-
interface PluginsMap {
|
|
52
|
-
[StyleUtils.pluginName]: StyleUtils;
|
|
53
|
-
}
|
|
54
|
-
}
|
package/src/styleutils.js
CHANGED
|
@@ -14,7 +14,7 @@ export default class StyleUtils extends Plugin {
|
|
|
14
14
|
return 'StyleUtils';
|
|
15
15
|
}
|
|
16
16
|
/**
|
|
17
|
-
* Normalizes {@link module:style/
|
|
17
|
+
* Normalizes {@link module:style/styleconfig~StyleConfig#definitions} in the configuration of the styles feature.
|
|
18
18
|
* The structure of normalized styles looks as follows:
|
|
19
19
|
*
|
|
20
20
|
* ```ts
|
|
@@ -61,3 +61,12 @@ export default class StyleGridView extends View<HTMLDivElement> {
|
|
|
61
61
|
*/
|
|
62
62
|
destroy(): void;
|
|
63
63
|
}
|
|
64
|
+
/**
|
|
65
|
+
* Fired when a {@link module:style/ui/stylegridbuttonview~StyleGridButtonView style} was selected (clicked) by the user.
|
|
66
|
+
*
|
|
67
|
+
* @eventName ~StyleGridView#execute
|
|
68
|
+
*/
|
|
69
|
+
export type StyleGridViewExecuteEvent = {
|
|
70
|
+
name: 'execute';
|
|
71
|
+
args: [];
|
|
72
|
+
};
|
package/src/ui/stylegridview.js
CHANGED
|
@@ -53,11 +53,6 @@ export default class StyleGridView extends View {
|
|
|
53
53
|
},
|
|
54
54
|
children: this.children
|
|
55
55
|
});
|
|
56
|
-
/**
|
|
57
|
-
* Fired when a {@link module:style/ui/stylegridbuttonview~StyleGridButtonView style} was selected (clicked) by the user.
|
|
58
|
-
*
|
|
59
|
-
* @event execute
|
|
60
|
-
*/
|
|
61
56
|
}
|
|
62
57
|
/**
|
|
63
58
|
* @inheritDoc
|
|
@@ -78,3 +78,12 @@ export default class StylePanelView extends View<HTMLDivElement> {
|
|
|
78
78
|
*/
|
|
79
79
|
focusLast(): void;
|
|
80
80
|
}
|
|
81
|
+
/**
|
|
82
|
+
* Fired when a style was selected (clicked) by the user.
|
|
83
|
+
*
|
|
84
|
+
* @eventName ~StylePanelView#execute
|
|
85
|
+
*/
|
|
86
|
+
export type StylePanelViewExecuteEvent = {
|
|
87
|
+
name: 'execute';
|
|
88
|
+
args: [];
|
|
89
|
+
};
|
package/src/ui/stylepanelview.js
CHANGED