@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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-style",
3
- "version": "37.0.0-alpha.0",
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.0",
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.0",
20
- "@ckeditor/ckeditor5-basic-styles": "^37.0.0-alpha.0",
21
- "@ckeditor/ckeditor5-block-quote": "^37.0.0-alpha.0",
22
- "@ckeditor/ckeditor5-cloud-services": "^37.0.0-alpha.0",
23
- "@ckeditor/ckeditor5-code-block": "^37.0.0-alpha.0",
24
- "@ckeditor/ckeditor5-core": "^37.0.0-alpha.0",
25
- "@ckeditor/ckeditor5-dev-utils": "^34.0.0",
26
- "@ckeditor/ckeditor5-easy-image": "^37.0.0-alpha.0",
27
- "@ckeditor/ckeditor5-editor-classic": "^37.0.0-alpha.0",
28
- "@ckeditor/ckeditor5-engine": "^37.0.0-alpha.0",
29
- "@ckeditor/ckeditor5-font": "^37.0.0-alpha.0",
30
- "@ckeditor/ckeditor5-heading": "^37.0.0-alpha.0",
31
- "@ckeditor/ckeditor5-highlight": "^37.0.0-alpha.0",
32
- "@ckeditor/ckeditor5-horizontal-line": "^37.0.0-alpha.0",
33
- "@ckeditor/ckeditor5-html-embed": "^37.0.0-alpha.0",
34
- "@ckeditor/ckeditor5-html-support": "^37.0.0-alpha.0",
35
- "@ckeditor/ckeditor5-image": "^37.0.0-alpha.0",
36
- "@ckeditor/ckeditor5-indent": "^37.0.0-alpha.0",
37
- "@ckeditor/ckeditor5-language": "^37.0.0-alpha.0",
38
- "@ckeditor/ckeditor5-link": "^37.0.0-alpha.0",
39
- "@ckeditor/ckeditor5-list": "^37.0.0-alpha.0",
40
- "@ckeditor/ckeditor5-mention": "^37.0.0-alpha.0",
41
- "@ckeditor/ckeditor5-page-break": "^37.0.0-alpha.0",
42
- "@ckeditor/ckeditor5-paragraph": "^37.0.0-alpha.0",
43
- "@ckeditor/ckeditor5-paste-from-office": "^37.0.0-alpha.0",
44
- "@ckeditor/ckeditor5-remove-format": "^37.0.0-alpha.0",
45
- "@ckeditor/ckeditor5-source-editing": "^37.0.0-alpha.0",
46
- "@ckeditor/ckeditor5-table": "^37.0.0-alpha.0",
47
- "@ckeditor/ckeditor5-theme-lark": "^37.0.0-alpha.0",
48
- "@ckeditor/ckeditor5-typing": "^37.0.0-alpha.0",
49
- "@ckeditor/ckeditor5-ui": "^37.0.0-alpha.0",
50
- "@ckeditor/ckeditor5-utils": "^37.0.0-alpha.0",
51
- "@ckeditor/ckeditor5-word-count": "^37.0.0-alpha.0",
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.release.json",
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
+ }
@@ -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/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
@@ -9,3 +9,4 @@ 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
+ import './augmentation';
package/src/style.d.ts CHANGED
@@ -22,8 +22,3 @@ export default class Style extends Plugin {
22
22
  */
23
23
  static get requires(): PluginDependencies;
24
24
  }
25
- declare module '@ckeditor/ckeditor5-core' {
26
- interface PluginsMap {
27
- [Style.pluginName]: Style;
28
- }
29
- }
@@ -80,8 +80,3 @@ export default class StyleCommand extends Command {
80
80
  */
81
81
  private _getValueFromFirstAllowedNode;
82
82
  }
83
- declare module '@ckeditor/ckeditor5-core' {
84
- interface CommandsMap {
85
- style: StyleCommand;
86
- }
87
- }
@@ -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
- }
@@ -34,8 +34,3 @@ export default class StyleEditing extends Plugin {
34
34
  */
35
35
  private _configureGHSDataFilter;
36
36
  }
37
- declare module '@ckeditor/ckeditor5-core' {
38
- interface PluginsMap {
39
- [StyleEditing.pluginName]: StyleEditing;
40
- }
41
- }
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
@@ -10,7 +10,6 @@ import { createDropdown } from 'ckeditor5/src/ui';
10
10
  import StylePanelView from './ui/stylepanelview';
11
11
  import StyleUtils from './styleutils';
12
12
  import '../theme/style.css';
13
- import './styleconfig';
14
13
  /**
15
14
  * The UI plugin of the style feature .
16
15
  *
@@ -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/style~StyleConfig#definitions} in the configuration of the styles feature.
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/style~StyleConfig#definitions} in the configuration of the styles feature.
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
+ };
@@ -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
+ };
@@ -66,11 +66,6 @@ export default class StylePanelView extends View {
66
66
  },
67
67
  children: this.children
68
68
  });
69
- /**
70
- * Fired when a style was selected (clicked) by the user.
71
- *
72
- * @event execute
73
- */
74
69
  }
75
70
  /**
76
71
  * @inheritDoc