@ckeditor/ckeditor5-list 48.2.0-alpha.7 → 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.
Files changed (61) hide show
  1. package/dist/augmentation.d.ts +54 -54
  2. package/dist/index.css.map +1 -1
  3. package/dist/index.d.ts +67 -67
  4. package/dist/index.js +7187 -8921
  5. package/dist/index.js.map +1 -1
  6. package/dist/legacyerrors.d.ts +0 -4
  7. package/dist/legacylist/legacyconverters.d.ts +184 -184
  8. package/dist/legacylist/legacyindentcommand.d.ts +33 -33
  9. package/dist/legacylist/legacylistcommand.d.ts +52 -52
  10. package/dist/legacylist/legacylistediting.d.ts +32 -32
  11. package/dist/legacylist/legacylistutils.d.ts +40 -40
  12. package/dist/legacylist/legacyutils.d.ts +91 -91
  13. package/dist/legacylist.d.ts +25 -25
  14. package/dist/legacylistproperties/legacylistpropertiesediting.d.ts +71 -71
  15. package/dist/legacylistproperties/legacylistreversedcommand.d.ts +33 -33
  16. package/dist/legacylistproperties/legacyliststartcommand.d.ts +33 -33
  17. package/dist/legacylistproperties/legacyliststylecommand.d.ts +63 -63
  18. package/dist/legacylistproperties.d.ts +26 -26
  19. package/dist/legacytodolist/legacychecktodolistcommand.d.ts +47 -47
  20. package/dist/legacytodolist/legacytodolistconverters.d.ts +76 -76
  21. package/dist/legacytodolist/legacytodolistediting.d.ts +46 -46
  22. package/dist/legacytodolist.d.ts +26 -26
  23. package/dist/list/adjacentlistssupport.d.ts +16 -16
  24. package/dist/list/converters.d.ts +68 -68
  25. package/dist/list/listcommand.d.ts +84 -84
  26. package/dist/list/listediting.d.ts +213 -219
  27. package/dist/list/listindentcommand.d.ts +54 -54
  28. package/dist/list/listmergecommand.d.ts +68 -68
  29. package/dist/list/listsplitcommand.d.ts +59 -59
  30. package/dist/list/listui.d.ts +19 -19
  31. package/dist/list/listutils.d.ts +55 -55
  32. package/dist/list/utils/listwalker.d.ts +139 -139
  33. package/dist/list/utils/model.d.ts +202 -202
  34. package/dist/list/utils/postfixers.d.ts +30 -30
  35. package/dist/list/utils/view.d.ts +65 -65
  36. package/dist/list/utils.d.ts +15 -15
  37. package/dist/list.d.ts +25 -25
  38. package/dist/listconfig.d.ts +234 -234
  39. package/dist/listformatting/listitemboldintegration.d.ts +29 -29
  40. package/dist/listformatting/listitemfontcolorintegration.d.ts +29 -29
  41. package/dist/listformatting/listitemfontfamilyintegration.d.ts +29 -29
  42. package/dist/listformatting/listitemfontsizeintegration.d.ts +29 -29
  43. package/dist/listformatting/listitemitalicintegration.d.ts +29 -29
  44. package/dist/listformatting.d.ts +66 -66
  45. package/dist/listproperties/converters.d.ts +15 -15
  46. package/dist/listproperties/listpropertiesediting.d.ts +91 -91
  47. package/dist/listproperties/listpropertiesui.d.ts +22 -22
  48. package/dist/listproperties/listpropertiesutils.d.ts +32 -32
  49. package/dist/listproperties/listreversedcommand.d.ts +31 -31
  50. package/dist/listproperties/liststartcommand.d.ts +34 -34
  51. package/dist/listproperties/liststylecommand.d.ts +67 -67
  52. package/dist/listproperties/ui/listpropertiesview.d.ts +147 -147
  53. package/dist/listproperties/utils/config.d.ts +32 -32
  54. package/dist/listproperties/utils/style.d.ts +31 -31
  55. package/dist/listproperties.d.ts +26 -26
  56. package/dist/todolist/checktodolistcommand.d.ts +44 -44
  57. package/dist/todolist/todocheckboxchangeobserver.d.ts +36 -36
  58. package/dist/todolist/todolistediting.d.ts +45 -45
  59. package/dist/todolist/todolistui.d.ts +19 -19
  60. package/dist/todolist.d.ts +26 -26
  61. package/package.json +10 -10
@@ -1,161 +1,161 @@
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 list/listproperties/ui/listpropertiesview
7
- */
8
- import { ButtonView, View, ViewCollection, FocusCycler, SwitchButtonView, LabeledFieldView, CollapsibleView, type InputNumberView, type FocusableView } from '@ckeditor/ckeditor5-ui';
9
- import { FocusTracker, KeystrokeHandler, type Locale } from '@ckeditor/ckeditor5-utils';
10
- import type { NormalizedListPropertiesConfig } from '../utils/config.js';
11
- import '../../../theme/listproperties.css';
6
+ * @module list/listproperties/ui/listpropertiesview
7
+ */
8
+ import { ButtonView, View, ViewCollection, FocusCycler, SwitchButtonView, LabeledFieldView, CollapsibleView, type InputNumberView, type FocusableView } from "@ckeditor/ckeditor5-ui";
9
+ import { FocusTracker, KeystrokeHandler, type Locale } from "@ckeditor/ckeditor5-utils";
10
+ import type { NormalizedListPropertiesConfig } from "../utils/config.js";
11
+ import "../../../theme/listproperties.css";
12
12
  /**
13
- * The list properties view to be displayed in the list dropdown.
14
- *
15
- * Contains a grid of available list styles and, for numbered list, also the list start index and reversed fields.
16
- *
17
- * @internal
18
- */
13
+ * The list properties view to be displayed in the list dropdown.
14
+ *
15
+ * Contains a grid of available list styles and, for numbered list, also the list start index and reversed fields.
16
+ *
17
+ * @internal
18
+ */
19
19
  export declare class ListPropertiesView extends View {
20
- /**
21
- * @inheritDoc
22
- */
23
- locale: Locale;
24
- /**
25
- * A collection of the child views.
26
- */
27
- readonly children: ViewCollection;
28
- /**
29
- * A view that renders the grid of list styles.
30
- */
31
- readonly stylesView: StylesView | null;
32
- /**
33
- * A collapsible view that hosts additional list property fields ({@link #startIndexFieldView} and
34
- * {@link #reversedSwitchButtonView}) to visually separate them from the {@link #stylesView grid of styles}.
35
- *
36
- * **Note**: Only present when:
37
- * * the view represents **numbered** list properties,
38
- * * and the {@link #stylesView} is rendered,
39
- * * and either {@link #startIndexFieldView} or {@link #reversedSwitchButtonView} is rendered.
40
- *
41
- * @readonly
42
- */
43
- additionalPropertiesCollapsibleView: CollapsibleView | null;
44
- /**
45
- * A labeled number field allowing the user to set the start index of the list.
46
- *
47
- * **Note**: Only present when the view represents **numbered** list properties.
48
- *
49
- * @readonly
50
- */
51
- startIndexFieldView: LabeledFieldView<InputNumberView> | null;
52
- /**
53
- * A switch button allowing the user to make the edited list reversed.
54
- *
55
- * **Note**: Only present when the view represents **numbered** list properties.
56
- *
57
- * @readonly
58
- */
59
- reversedSwitchButtonView: SwitchButtonView | null;
60
- /**
61
- * Tracks information about the DOM focus in the view.
62
- */
63
- readonly focusTracker: FocusTracker;
64
- /**
65
- * An instance of the {@link module:utils/keystrokehandler~KeystrokeHandler}.
66
- */
67
- readonly keystrokes: KeystrokeHandler;
68
- /**
69
- * A collection of views that can be focused in the properties view.
70
- */
71
- readonly focusables: ViewCollection<FocusableView>;
72
- /**
73
- * Helps cycling over {@link #focusables} in the view.
74
- */
75
- readonly focusCycler: FocusCycler;
76
- /**
77
- * Creates an instance of the list properties view.
78
- *
79
- * @param locale The {@link module:core/editor/editor~Editor#locale} instance.
80
- * @param options Options of the view.
81
- * @param options.enabledProperties An object containing the configuration of enabled list property names.
82
- * Allows conditional rendering the sub-components of the properties view.
83
- * @param options.styleButtonViews A list of style buttons to be rendered
84
- * inside the styles grid. The grid will not be rendered when `enabledProperties` does not include the `'styles'` key.
85
- * @param options.styleGridAriaLabel An assistive technologies label set on the grid of styles (if the grid is rendered).
86
- */
87
- constructor(locale: Locale, { enabledProperties, styleButtonViews, styleGridAriaLabel }: {
88
- enabledProperties: NormalizedListPropertiesConfig;
89
- styleButtonViews: Array<ButtonView> | null;
90
- styleGridAriaLabel: string;
91
- });
92
- /**
93
- * @inheritDoc
94
- */
95
- render(): void;
96
- /**
97
- * @inheritDoc
98
- */
99
- focus(): void;
100
- /**
101
- * @inheritDoc
102
- */
103
- focusLast(): void;
104
- /**
105
- * @inheritDoc
106
- */
107
- destroy(): void;
108
- /**
109
- * Creates the list styles grid.
110
- *
111
- * @param styleButtons Buttons to be placed in the grid.
112
- * @param styleGridAriaLabel The assistive technology label of the grid.
113
- */
114
- private _createStylesView;
115
- /**
116
- * Renders {@link #startIndexFieldView} and/or {@link #reversedSwitchButtonView} depending on the configuration of the properties view.
117
- *
118
- * @param enabledProperties An object containing the configuration of enabled list property names
119
- * (see {@link #constructor}).
120
- */
121
- private _addNumberedListPropertyViews;
122
- /**
123
- * Creates the list start index labeled field.
124
- */
125
- private _createStartIndexField;
126
- /**
127
- * Creates the reversed list switch button.
128
- */
129
- private _createReversedSwitchButton;
20
+ /**
21
+ * @inheritDoc
22
+ */
23
+ locale: Locale;
24
+ /**
25
+ * A collection of the child views.
26
+ */
27
+ readonly children: ViewCollection;
28
+ /**
29
+ * A view that renders the grid of list styles.
30
+ */
31
+ readonly stylesView: StylesView | null;
32
+ /**
33
+ * A collapsible view that hosts additional list property fields ({@link #startIndexFieldView} and
34
+ * {@link #reversedSwitchButtonView}) to visually separate them from the {@link #stylesView grid of styles}.
35
+ *
36
+ * **Note**: Only present when:
37
+ * * the view represents **numbered** list properties,
38
+ * * and the {@link #stylesView} is rendered,
39
+ * * and either {@link #startIndexFieldView} or {@link #reversedSwitchButtonView} is rendered.
40
+ *
41
+ * @readonly
42
+ */
43
+ additionalPropertiesCollapsibleView: CollapsibleView | null;
44
+ /**
45
+ * A labeled number field allowing the user to set the start index of the list.
46
+ *
47
+ * **Note**: Only present when the view represents **numbered** list properties.
48
+ *
49
+ * @readonly
50
+ */
51
+ startIndexFieldView: LabeledFieldView<InputNumberView> | null;
52
+ /**
53
+ * A switch button allowing the user to make the edited list reversed.
54
+ *
55
+ * **Note**: Only present when the view represents **numbered** list properties.
56
+ *
57
+ * @readonly
58
+ */
59
+ reversedSwitchButtonView: SwitchButtonView | null;
60
+ /**
61
+ * Tracks information about the DOM focus in the view.
62
+ */
63
+ readonly focusTracker: FocusTracker;
64
+ /**
65
+ * An instance of the {@link module:utils/keystrokehandler~KeystrokeHandler}.
66
+ */
67
+ readonly keystrokes: KeystrokeHandler;
68
+ /**
69
+ * A collection of views that can be focused in the properties view.
70
+ */
71
+ readonly focusables: ViewCollection<FocusableView>;
72
+ /**
73
+ * Helps cycling over {@link #focusables} in the view.
74
+ */
75
+ readonly focusCycler: FocusCycler;
76
+ /**
77
+ * Creates an instance of the list properties view.
78
+ *
79
+ * @param locale The {@link module:core/editor/editor~Editor#locale} instance.
80
+ * @param options Options of the view.
81
+ * @param options.enabledProperties An object containing the configuration of enabled list property names.
82
+ * Allows conditional rendering the sub-components of the properties view.
83
+ * @param options.styleButtonViews A list of style buttons to be rendered
84
+ * inside the styles grid. The grid will not be rendered when `enabledProperties` does not include the `'styles'` key.
85
+ * @param options.styleGridAriaLabel An assistive technologies label set on the grid of styles (if the grid is rendered).
86
+ */
87
+ constructor(locale: Locale, { enabledProperties, styleButtonViews, styleGridAriaLabel }: {
88
+ enabledProperties: NormalizedListPropertiesConfig;
89
+ styleButtonViews: Array<ButtonView> | null;
90
+ styleGridAriaLabel: string;
91
+ });
92
+ /**
93
+ * @inheritDoc
94
+ */
95
+ override render(): void;
96
+ /**
97
+ * @inheritDoc
98
+ */
99
+ focus(): void;
100
+ /**
101
+ * @inheritDoc
102
+ */
103
+ focusLast(): void;
104
+ /**
105
+ * @inheritDoc
106
+ */
107
+ override destroy(): void;
108
+ /**
109
+ * Creates the list styles grid.
110
+ *
111
+ * @param styleButtons Buttons to be placed in the grid.
112
+ * @param styleGridAriaLabel The assistive technology label of the grid.
113
+ */
114
+ private _createStylesView;
115
+ /**
116
+ * Renders {@link #startIndexFieldView} and/or {@link #reversedSwitchButtonView} depending on the configuration of the properties view.
117
+ *
118
+ * @param enabledProperties An object containing the configuration of enabled list property names
119
+ * (see {@link #constructor}).
120
+ */
121
+ private _addNumberedListPropertyViews;
122
+ /**
123
+ * Creates the list start index labeled field.
124
+ */
125
+ private _createStartIndexField;
126
+ /**
127
+ * Creates the reversed list switch button.
128
+ */
129
+ private _createReversedSwitchButton;
130
130
  }
131
131
  /**
132
- * The view that renders the grid of styles.
133
- *
134
- * @internal
135
- */
132
+ * The view that renders the grid of styles.
133
+ *
134
+ * @internal
135
+ */
136
136
  export type StylesView = View & {
137
- children: ViewCollection;
138
- focusTracker: FocusTracker;
139
- keystrokes: KeystrokeHandler;
140
- focus(): void;
137
+ children: ViewCollection;
138
+ focusTracker: FocusTracker;
139
+ keystrokes: KeystrokeHandler;
140
+ focus(): void;
141
141
  };
142
142
  /**
143
- * Fired when the list start index value has changed via {@link ~ListPropertiesView#startIndexFieldView}.
144
- *
145
- * @eventName ~ListPropertiesView#listStart
146
- */
143
+ * Fired when the list start index value has changed via {@link ~ListPropertiesView#startIndexFieldView}.
144
+ *
145
+ * @eventName ~ListPropertiesView#listStart
146
+ */
147
147
  export type ListPropertiesViewListStartEvent = {
148
- name: 'listStart';
149
- args: [data: {
150
- startIndex: number;
151
- }];
148
+ name: "listStart";
149
+ args: [data: {
150
+ startIndex: number;
151
+ }];
152
152
  };
153
153
  /**
154
- * Fired when the list order has changed (reversed) via {@link ~ListPropertiesView#reversedSwitchButtonView}.
155
- *
156
- * @eventName ~ListPropertiesView#listReversed
157
- */
154
+ * Fired when the list order has changed (reversed) via {@link ~ListPropertiesView#reversedSwitchButtonView}.
155
+ *
156
+ * @eventName ~ListPropertiesView#listReversed
157
+ */
158
158
  export type ListPropertiesViewListReversedEvent = {
159
- name: 'listReversed';
160
- args: [];
159
+ name: "listReversed";
160
+ args: [];
161
161
  };
@@ -1,27 +1,27 @@
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
- */
5
- import type { ListPropertiesConfig, ListPropertiesStyleListType } from '../../listconfig.js';
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
+ import type { ListPropertiesConfig, ListPropertiesStyleListType } from "../../listconfig.js";
6
6
  /**
7
- * Normalizes {@link module:list/listconfig~ListPropertiesConfig} in the configuration of the list properties feature.
8
- * The structure of normalized list properties options looks as follows:
9
- *
10
- * ```ts
11
- * {
12
- * styles: {
13
- * listTypes: [ 'bulleted', 'numbered' ],
14
- * useAttribute: false
15
- * },
16
- * startIndex: true,
17
- * reversed: true
18
- * }
19
- * ```
20
- *
21
- * @internal
22
- * @param config The list properties {@link module:list/listconfig~ListPropertiesConfig config}.
23
- * @returns An object with normalized list properties options.
24
- */
7
+ * Normalizes {@link module:list/listconfig~ListPropertiesConfig} in the configuration of the list properties feature.
8
+ * The structure of normalized list properties options looks as follows:
9
+ *
10
+ * ```ts
11
+ * {
12
+ * styles: {
13
+ * listTypes: [ 'bulleted', 'numbered' ],
14
+ * useAttribute: false
15
+ * },
16
+ * startIndex: true,
17
+ * reversed: true
18
+ * }
19
+ * ```
20
+ *
21
+ * @internal
22
+ * @param config The list properties {@link module:list/listconfig~ListPropertiesConfig config}.
23
+ * @returns An object with normalized list properties options.
24
+ */
25
25
  export declare function getNormalizedConfig(config: ListPropertiesConfig): NormalizedListPropertiesConfig;
26
26
  /**
27
27
  * Normalized list properties config.
@@ -29,14 +29,14 @@ export declare function getNormalizedConfig(config: ListPropertiesConfig): Norma
29
29
  * @internal
30
30
  */
31
31
  export type NormalizedListPropertiesConfig = {
32
- styles: {
33
- listTypes: Array<ListPropertiesStyleListType>;
34
- listStyleTypes?: {
35
- numbered?: Array<string>;
36
- bulleted?: Array<string>;
37
- };
38
- useAttribute: boolean;
39
- };
40
- startIndex: boolean;
41
- reversed: boolean;
32
+ styles: {
33
+ listTypes: Array<ListPropertiesStyleListType>;
34
+ listStyleTypes?: {
35
+ numbered?: Array<string>;
36
+ bulleted?: Array<string>;
37
+ };
38
+ useAttribute: boolean;
39
+ };
40
+ startIndex: boolean;
41
+ reversed: boolean;
42
42
  };
@@ -1,41 +1,41 @@
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
- * Gets all the style types supported by given list type.
7
- *
8
- * @internal
9
- */
6
+ * Gets all the style types supported by given list type.
7
+ *
8
+ * @internal
9
+ */
10
10
  export declare function getAllSupportedStyleTypes(): Array<string>;
11
11
  /**
12
- * Checks whether the given list-style-type is supported by numbered or bulleted list.
13
- *
14
- * @internal
15
- */
16
- export declare function getListTypeFromListStyleType(listStyleType: string): 'bulleted' | 'numbered' | null;
12
+ * Checks whether the given list-style-type is supported by numbered or bulleted list.
13
+ *
14
+ * @internal
15
+ */
16
+ export declare function getListTypeFromListStyleType(listStyleType: string): "bulleted" | "numbered" | null;
17
17
  /**
18
- * Converts `type` attribute of `<ul>` or `<ol>` elements to `list-style-type` equivalent.
19
- *
20
- * @internal
21
- */
18
+ * Converts `type` attribute of `<ul>` or `<ol>` elements to `list-style-type` equivalent.
19
+ *
20
+ * @internal
21
+ */
22
22
  export declare function getListStyleTypeFromTypeAttribute(value: string): string | null;
23
23
  /**
24
- * Converts `list-style-type` style to `type` attribute of `<ul>` or `<ol>` elements.
25
- *
26
- * @internal
27
- */
24
+ * Converts `list-style-type` style to `type` attribute of `<ul>` or `<ol>` elements.
25
+ *
26
+ * @internal
27
+ */
28
28
  export declare function getTypeAttributeFromListStyleType(value: string): string | null;
29
29
  /**
30
- * Normalizes list style by converting aliases to their canonical form.
31
- *
32
- * @internal
33
- * @param listStyle The list style value to normalize.
34
- * @returns The canonical form of the list style.
35
- *
36
- * @example
37
- * normalizeListStyle( 'lower-alpha' ); // Returns 'lower-latin'
38
- * normalizeListStyle( 'upper-alpha' ); // Returns 'upper-latin'
39
- * normalizeListStyle( 'disc' ); // Returns 'disc'
40
- */
30
+ * Normalizes list style by converting aliases to their canonical form.
31
+ *
32
+ * @internal
33
+ * @param listStyle The list style value to normalize.
34
+ * @returns The canonical form of the list style.
35
+ *
36
+ * @example
37
+ * normalizeListStyle( 'lower-alpha' ); // Returns 'lower-latin'
38
+ * normalizeListStyle( 'upper-alpha' ); // Returns 'upper-latin'
39
+ * normalizeListStyle( 'disc' ); // Returns 'disc'
40
+ */
41
41
  export declare function normalizeListStyle(listStyle: string): string;
@@ -1,31 +1,31 @@
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 list/listproperties
7
- */
8
- import { Plugin } from '@ckeditor/ckeditor5-core';
9
- import { ListPropertiesEditing } from './listproperties/listpropertiesediting.js';
10
- import { ListPropertiesUI } from './listproperties/listpropertiesui.js';
6
+ * @module list/listproperties
7
+ */
8
+ import { Plugin, type PluginDependenciesOf } from "@ckeditor/ckeditor5-core";
9
+ import { ListPropertiesEditing } from "./listproperties/listpropertiesediting.js";
10
+ import { ListPropertiesUI } from "./listproperties/listpropertiesui.js";
11
11
  /**
12
- * The list properties feature.
13
- *
14
- * This is a "glue" plugin that loads the
15
- * {@link module:list/listproperties/listpropertiesediting~ListPropertiesEditing list properties
16
- * editing feature} and the {@link module:list/listproperties/listpropertiesui~ListPropertiesUI list properties UI feature}.
17
- */
12
+ * The list properties feature.
13
+ *
14
+ * This is a "glue" plugin that loads the
15
+ * {@link module:list/listproperties/listpropertiesediting~ListPropertiesEditing list properties
16
+ * editing feature} and the {@link module:list/listproperties/listpropertiesui~ListPropertiesUI list properties UI feature}.
17
+ */
18
18
  export declare class ListProperties extends Plugin {
19
- /**
20
- * @inheritDoc
21
- */
22
- static get requires(): readonly [typeof ListPropertiesEditing, typeof ListPropertiesUI];
23
- /**
24
- * @inheritDoc
25
- */
26
- static get pluginName(): "ListProperties";
27
- /**
28
- * @inheritDoc
29
- */
30
- static get isOfficialPlugin(): true;
19
+ /**
20
+ * @inheritDoc
21
+ */
22
+ static get requires(): PluginDependenciesOf<[ListPropertiesEditing, ListPropertiesUI]>;
23
+ /**
24
+ * @inheritDoc
25
+ */
26
+ static get pluginName(): "ListProperties";
27
+ /**
28
+ * @inheritDoc
29
+ */
30
+ static override get isOfficialPlugin(): true;
31
31
  }
@@ -1,49 +1,49 @@
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 list/todolist/checktodolistcommand
7
- */
8
- import { Command, type Editor } from '@ckeditor/ckeditor5-core';
6
+ * @module list/todolist/checktodolistcommand
7
+ */
8
+ import { Command, type Editor } from "@ckeditor/ckeditor5-core";
9
9
  /**
10
- * The check to-do command.
11
- *
12
- * The command is registered by the {@link module:list/todolist/todolistediting~TodoListEditing} as
13
- * the `checkTodoList` editor command.
14
- */
10
+ * The check to-do command.
11
+ *
12
+ * The command is registered by the {@link module:list/todolist/todolistediting~TodoListEditing} as
13
+ * the `checkTodoList` editor command.
14
+ */
15
15
  export declare class CheckTodoListCommand extends Command {
16
- /**
17
- * A list of to-do list items selected by the {@link module:engine/model/selection~ModelSelection}.
18
- *
19
- * @observable
20
- * @readonly
21
- */
22
- value: boolean;
23
- /**
24
- * @inheritDoc
25
- */
26
- constructor(editor: Editor);
27
- /**
28
- * Updates the command's {@link #value} and {@link #isEnabled} properties based on the current selection.
29
- */
30
- refresh(): void;
31
- /**
32
- * Executes the command.
33
- *
34
- * @param options.forceValue If set, it will force the command behavior. If `true`, the command will apply
35
- * the attribute. Otherwise, the command will remove the attribute. If not set, the command will look for its current
36
- * value to decide what it should do.
37
- */
38
- execute(options?: {
39
- forceValue?: boolean;
40
- }): void;
41
- /**
42
- * Returns a value for the command.
43
- */
44
- private _getValue;
45
- /**
46
- * Gets all to-do list items selected by the {@link module:engine/model/selection~ModelSelection}.
47
- */
48
- private _getSelectedItems;
16
+ /**
17
+ * A list of to-do list items selected by the {@link module:engine/model/selection~ModelSelection}.
18
+ *
19
+ * @observable
20
+ * @readonly
21
+ */
22
+ value: boolean;
23
+ /**
24
+ * @inheritDoc
25
+ */
26
+ constructor(editor: Editor);
27
+ /**
28
+ * Updates the command's {@link #value} and {@link #isEnabled} properties based on the current selection.
29
+ */
30
+ override refresh(): void;
31
+ /**
32
+ * Executes the command.
33
+ *
34
+ * @param options.forceValue If set, it will force the command behavior. If `true`, the command will apply
35
+ * the attribute. Otherwise, the command will remove the attribute. If not set, the command will look for its current
36
+ * value to decide what it should do.
37
+ */
38
+ override execute(options?: {
39
+ forceValue?: boolean;
40
+ }): void;
41
+ /**
42
+ * Returns a value for the command.
43
+ */
44
+ private _getValue;
45
+ /**
46
+ * Gets all to-do list items selected by the {@link module:engine/model/selection~ModelSelection}.
47
+ */
48
+ private _getSelectedItems;
49
49
  }