@ckeditor/ckeditor5-style 48.2.0 → 48.3.0-alpha.0

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.
@@ -1,74 +1,74 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
- */
2
+ * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
+ */
5
5
  /**
6
- * @module style/ui/stylegridview
7
- */
8
- import { View, type ViewCollection, type FocusableView } from '@ckeditor/ckeditor5-ui';
9
- import { FocusTracker, KeystrokeHandler, type Locale } from '@ckeditor/ckeditor5-utils';
10
- import { StyleGridButtonView } from './stylegridbuttonview.js';
11
- import type { NormalizedStyleDefinition } from '../styleutils.js';
12
- import '../../theme/stylegrid.css';
6
+ * @module style/ui/stylegridview
7
+ */
8
+ import { View, type ViewCollection, type FocusableView } from "@ckeditor/ckeditor5-ui";
9
+ import { FocusTracker, KeystrokeHandler, type Locale } from "@ckeditor/ckeditor5-utils";
10
+ import { StyleGridButtonView } from "./stylegridbuttonview.js";
11
+ import type { NormalizedStyleDefinition } from "../styleutils.js";
12
+ import "../../theme/stylegrid.css";
13
13
  /**
14
- * A class representing a grid of styles ({@link module:style/ui/stylegridbuttonview~StyleGridButtonView buttons}).
15
- * Allows users to select a style.
16
- *
17
- * @internal
18
- */
14
+ * A class representing a grid of styles ({@link module:style/ui/stylegridbuttonview~StyleGridButtonView buttons}).
15
+ * Allows users to select a style.
16
+ *
17
+ * @internal
18
+ */
19
19
  export declare class StyleGridView extends View<HTMLDivElement> implements FocusableView {
20
- /**
21
- * Tracks information about the DOM focus in the view.
22
- */
23
- readonly focusTracker: FocusTracker;
24
- /**
25
- * An instance of the {@link module:utils/keystrokehandler~KeystrokeHandler}.
26
- */
27
- readonly keystrokes: KeystrokeHandler;
28
- /**
29
- * A collection of style {@link module:style/ui/stylegridbuttonview~StyleGridButtonView buttons}.
30
- */
31
- readonly children: ViewCollection<StyleGridButtonView>;
32
- /**
33
- * Array of active style names. They must correspond to the names of styles from
34
- * definitions passed to the {@link #constructor}.
35
- *
36
- * @observable
37
- */
38
- readonly activeStyles: Array<string>;
39
- /**
40
- * Array of enabled style names. They must correspond to the names of styles from
41
- * definitions passed to the {@link #constructor}.
42
- *
43
- * @observable
44
- */
45
- readonly enabledStyles: Array<string>;
46
- /**
47
- * Creates an instance of the {@link module:style/ui/stylegridview~StyleGridView} class.
48
- *
49
- * @param locale The localization services instance.
50
- * @param styleDefinitions Definitions of the styles.
51
- */
52
- constructor(locale: Locale, styleDefinitions: Array<NormalizedStyleDefinition>);
53
- /**
54
- * @inheritDoc
55
- */
56
- render(): void;
57
- /**
58
- * Focuses the first style button in the grid.
59
- */
60
- focus(): void;
61
- /**
62
- * @inheritDoc
63
- */
64
- destroy(): void;
20
+ /**
21
+ * Tracks information about the DOM focus in the view.
22
+ */
23
+ readonly focusTracker: FocusTracker;
24
+ /**
25
+ * An instance of the {@link module:utils/keystrokehandler~KeystrokeHandler}.
26
+ */
27
+ readonly keystrokes: KeystrokeHandler;
28
+ /**
29
+ * A collection of style {@link module:style/ui/stylegridbuttonview~StyleGridButtonView buttons}.
30
+ */
31
+ readonly children: ViewCollection<StyleGridButtonView>;
32
+ /**
33
+ * Array of active style names. They must correspond to the names of styles from
34
+ * definitions passed to the {@link #constructor}.
35
+ *
36
+ * @observable
37
+ */
38
+ readonly activeStyles: Array<string>;
39
+ /**
40
+ * Array of enabled style names. They must correspond to the names of styles from
41
+ * definitions passed to the {@link #constructor}.
42
+ *
43
+ * @observable
44
+ */
45
+ readonly enabledStyles: Array<string>;
46
+ /**
47
+ * Creates an instance of the {@link module:style/ui/stylegridview~StyleGridView} class.
48
+ *
49
+ * @param locale The localization services instance.
50
+ * @param styleDefinitions Definitions of the styles.
51
+ */
52
+ constructor(locale: Locale, styleDefinitions: Array<NormalizedStyleDefinition>);
53
+ /**
54
+ * @inheritDoc
55
+ */
56
+ override render(): void;
57
+ /**
58
+ * Focuses the first style button in the grid.
59
+ */
60
+ focus(): void;
61
+ /**
62
+ * @inheritDoc
63
+ */
64
+ override destroy(): void;
65
65
  }
66
66
  /**
67
- * Fired when a {@link module:style/ui/stylegridbuttonview~StyleGridButtonView style} was selected (clicked) by the user.
68
- *
69
- * @eventName ~StyleGridView#execute
70
- */
67
+ * Fired when a {@link module:style/ui/stylegridbuttonview~StyleGridButtonView style} was selected (clicked) by the user.
68
+ *
69
+ * @eventName ~StyleGridView#execute
70
+ */
71
71
  export type StyleGridViewExecuteEvent = {
72
- name: 'execute';
73
- args: [];
72
+ name: "execute";
73
+ args: [];
74
74
  };
@@ -1,37 +1,37 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
- */
2
+ * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
+ */
5
5
  /**
6
- * @module style/ui/stylegroupview
7
- */
8
- import { LabelView, View } from '@ckeditor/ckeditor5-ui';
9
- import type { Locale } from '@ckeditor/ckeditor5-utils';
10
- import { StyleGridView } from './stylegridview.js';
11
- import type { NormalizedStyleDefinition } from '../styleutils.js';
12
- import '../../theme/stylegroup.css';
6
+ * @module style/ui/stylegroupview
7
+ */
8
+ import { LabelView, View } from "@ckeditor/ckeditor5-ui";
9
+ import type { Locale } from "@ckeditor/ckeditor5-utils";
10
+ import { StyleGridView } from "./stylegridview.js";
11
+ import type { NormalizedStyleDefinition } from "../styleutils.js";
12
+ import "../../theme/stylegroup.css";
13
13
  /**
14
- * A class representing a group of styles (e.g. "block" or "inline").
15
- *
16
- * Renders a {@link module:style/ui/stylegridview~StyleGridView style grid} and a label.
17
- *
18
- * @internal
19
- */
14
+ * A class representing a group of styles (e.g. "block" or "inline").
15
+ *
16
+ * Renders a {@link module:style/ui/stylegridview~StyleGridView style grid} and a label.
17
+ *
18
+ * @internal
19
+ */
20
20
  export declare class StyleGroupView extends View<HTMLDivElement> {
21
- /**
22
- * The styles grid of the group.
23
- */
24
- readonly gridView: StyleGridView;
25
- /**
26
- * The label of the group.
27
- */
28
- readonly labelView: LabelView;
29
- /**
30
- * Creates an instance of the {@link module:style/ui/stylegroupview~StyleGroupView} class.
31
- *
32
- * @param locale The localization services instance.
33
- * @param label The localized label of the group.
34
- * @param styleDefinitions Definitions of the styles in the group.
35
- */
36
- constructor(locale: Locale, label: string, styleDefinitions: Array<NormalizedStyleDefinition>);
21
+ /**
22
+ * The styles grid of the group.
23
+ */
24
+ readonly gridView: StyleGridView;
25
+ /**
26
+ * The label of the group.
27
+ */
28
+ readonly labelView: LabelView;
29
+ /**
30
+ * Creates an instance of the {@link module:style/ui/stylegroupview~StyleGroupView} class.
31
+ *
32
+ * @param locale The localization services instance.
33
+ * @param label The localized label of the group.
34
+ * @param styleDefinitions Definitions of the styles in the group.
35
+ */
36
+ constructor(locale: Locale, label: string, styleDefinitions: Array<NormalizedStyleDefinition>);
37
37
  }
@@ -1,91 +1,91 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
- */
2
+ * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
+ */
5
5
  /**
6
- * @module style/ui/stylepanelview
7
- */
8
- import { FocusCycler, View, ViewCollection } from '@ckeditor/ckeditor5-ui';
9
- import { FocusTracker, KeystrokeHandler, type Locale } from '@ckeditor/ckeditor5-utils';
10
- import { StyleGroupView } from './stylegroupview.js';
11
- import { type StyleGridView } from './stylegridview.js';
12
- import type { NormalizedStyleDefinitions } from '../styleutils.js';
13
- import '../../theme/stylepanel.css';
6
+ * @module style/ui/stylepanelview
7
+ */
8
+ import { FocusCycler, View, ViewCollection } from "@ckeditor/ckeditor5-ui";
9
+ import { FocusTracker, KeystrokeHandler, type Locale } from "@ckeditor/ckeditor5-utils";
10
+ import { StyleGroupView } from "./stylegroupview.js";
11
+ import { type StyleGridView } from "./stylegridview.js";
12
+ import type { NormalizedStyleDefinitions } from "../styleutils.js";
13
+ import "../../theme/stylepanel.css";
14
14
  /**
15
- * A class representing a panel with available content styles. It renders styles in button grids, grouped
16
- * in categories.
17
- *
18
- * @internal
19
- */
15
+ * A class representing a panel with available content styles. It renders styles in button grids, grouped
16
+ * in categories.
17
+ *
18
+ * @internal
19
+ */
20
20
  export declare class StylePanelView extends View<HTMLDivElement> {
21
- /**
22
- * Tracks information about DOM focus in the panel.
23
- */
24
- readonly focusTracker: FocusTracker;
25
- /**
26
- * An instance of the {@link module:utils/keystrokehandler~KeystrokeHandler}.
27
- */
28
- readonly keystrokes: KeystrokeHandler;
29
- /**
30
- * A collection of panel children.
31
- */
32
- readonly children: ViewCollection<StyleGroupView>;
33
- /**
34
- * A view representing block styles group.
35
- */
36
- readonly blockStylesGroupView: StyleGroupView;
37
- /**
38
- * A view representing inline styles group
39
- */
40
- readonly inlineStylesGroupView: StyleGroupView;
41
- /**
42
- * Array of active style names. They must correspond to the names of styles from
43
- * definitions passed to the {@link #constructor}.
44
- *
45
- * @observable
46
- */
47
- readonly activeStyles: Array<string>;
48
- /**
49
- * Array of enabled style names. They must correspond to the names of styles from
50
- * definitions passed to the {@link #constructor}.
51
- *
52
- * @observable
53
- */
54
- readonly enabledStyles: Array<string>;
55
- /**
56
- * A collection of views that can be focused in the panel.
57
- */
58
- protected readonly _focusables: ViewCollection<StyleGridView>;
59
- /**
60
- * Helps cycling over {@link #_focusables} in the panel.
61
- */
62
- protected readonly _focusCycler: FocusCycler;
63
- /**
64
- * Creates an instance of the {@link module:style/ui/stylegroupview~StyleGroupView} class.
65
- *
66
- * @param locale The localization services instance.
67
- * @param styleDefinitions Normalized definitions of the styles.
68
- */
69
- constructor(locale: Locale, styleDefinitions: NormalizedStyleDefinitions);
70
- /**
71
- * @inheritDoc
72
- */
73
- render(): void;
74
- /**
75
- * Focuses the first focusable element in the panel.
76
- */
77
- focus(): void;
78
- /**
79
- * Focuses the last focusable element in the panel.
80
- */
81
- focusLast(): void;
21
+ /**
22
+ * Tracks information about DOM focus in the panel.
23
+ */
24
+ readonly focusTracker: FocusTracker;
25
+ /**
26
+ * An instance of the {@link module:utils/keystrokehandler~KeystrokeHandler}.
27
+ */
28
+ readonly keystrokes: KeystrokeHandler;
29
+ /**
30
+ * A collection of panel children.
31
+ */
32
+ readonly children: ViewCollection<StyleGroupView>;
33
+ /**
34
+ * A view representing block styles group.
35
+ */
36
+ readonly blockStylesGroupView: StyleGroupView;
37
+ /**
38
+ * A view representing inline styles group
39
+ */
40
+ readonly inlineStylesGroupView: StyleGroupView;
41
+ /**
42
+ * Array of active style names. They must correspond to the names of styles from
43
+ * definitions passed to the {@link #constructor}.
44
+ *
45
+ * @observable
46
+ */
47
+ readonly activeStyles: Array<string>;
48
+ /**
49
+ * Array of enabled style names. They must correspond to the names of styles from
50
+ * definitions passed to the {@link #constructor}.
51
+ *
52
+ * @observable
53
+ */
54
+ readonly enabledStyles: Array<string>;
55
+ /**
56
+ * A collection of views that can be focused in the panel.
57
+ */
58
+ protected readonly _focusables: ViewCollection<StyleGridView>;
59
+ /**
60
+ * Helps cycling over {@link #_focusables} in the panel.
61
+ */
62
+ protected readonly _focusCycler: FocusCycler;
63
+ /**
64
+ * Creates an instance of the {@link module:style/ui/stylegroupview~StyleGroupView} class.
65
+ *
66
+ * @param locale The localization services instance.
67
+ * @param styleDefinitions Normalized definitions of the styles.
68
+ */
69
+ constructor(locale: Locale, styleDefinitions: NormalizedStyleDefinitions);
70
+ /**
71
+ * @inheritDoc
72
+ */
73
+ override render(): void;
74
+ /**
75
+ * Focuses the first focusable element in the panel.
76
+ */
77
+ focus(): void;
78
+ /**
79
+ * Focuses the last focusable element in the panel.
80
+ */
81
+ focusLast(): void;
82
82
  }
83
83
  /**
84
- * Fired when a style was selected (clicked) by the user.
85
- *
86
- * @eventName ~StylePanelView#execute
87
- */
84
+ * Fired when a style was selected (clicked) by the user.
85
+ *
86
+ * @eventName ~StylePanelView#execute
87
+ */
88
88
  export type StylePanelViewExecuteEvent = {
89
- name: 'execute';
90
- args: [];
89
+ name: "execute";
90
+ args: [];
91
91
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-style",
3
- "version": "48.2.0",
3
+ "version": "48.3.0-alpha.0",
4
4
  "description": "Style feature for CKEditor 5.",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "author": "CKSource (http://cksource.com/)",
@@ -26,14 +26,14 @@
26
26
  "./package.json": "./package.json"
27
27
  },
28
28
  "dependencies": {
29
- "@ckeditor/ckeditor5-core": "48.2.0",
30
- "@ckeditor/ckeditor5-engine": "48.2.0",
31
- "@ckeditor/ckeditor5-html-support": "48.2.0",
32
- "@ckeditor/ckeditor5-list": "48.2.0",
33
- "@ckeditor/ckeditor5-table": "48.2.0",
34
- "@ckeditor/ckeditor5-typing": "48.2.0",
35
- "@ckeditor/ckeditor5-ui": "48.2.0",
36
- "@ckeditor/ckeditor5-utils": "48.2.0",
29
+ "@ckeditor/ckeditor5-core": "48.3.0-alpha.0",
30
+ "@ckeditor/ckeditor5-engine": "48.3.0-alpha.0",
31
+ "@ckeditor/ckeditor5-html-support": "48.3.0-alpha.0",
32
+ "@ckeditor/ckeditor5-list": "48.3.0-alpha.0",
33
+ "@ckeditor/ckeditor5-table": "48.3.0-alpha.0",
34
+ "@ckeditor/ckeditor5-typing": "48.3.0-alpha.0",
35
+ "@ckeditor/ckeditor5-ui": "48.3.0-alpha.0",
36
+ "@ckeditor/ckeditor5-utils": "48.3.0-alpha.0",
37
37
  "es-toolkit": "1.45.1"
38
38
  },
39
39
  "files": [