@ckeditor/ckeditor5-list 48.2.0 → 48.3.0-alpha.1

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,82 +1,82 @@
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/list/utils/view
7
- */
8
- import type { ViewDowncastWriter, ViewAttributeElement, ViewDocumentFragment, ViewElement, ViewNode } from '@ckeditor/ckeditor5-engine';
9
- import { type ListType } from '../listediting.js';
6
+ * @module list/list/utils/view
7
+ */
8
+ import type { ViewDowncastWriter, ViewAttributeElement, ViewDocumentFragment, ViewElement, ViewNode } from "@ckeditor/ckeditor5-engine";
9
+ import { type ListType } from "../listediting.js";
10
10
  /**
11
- * Checks if view element is a list type (ul or ol).
12
- *
13
- * @internal
14
- */
11
+ * Checks if view element is a list type (ul or ol).
12
+ *
13
+ * @internal
14
+ */
15
15
  export declare function isListView(viewElement: ViewNode | ViewDocumentFragment): viewElement is ViewElement & {
16
- name: 'ul' | 'ol';
16
+ name: "ul" | "ol";
17
17
  };
18
18
  /**
19
- * Checks if view element is a list item (li).
20
- *
21
- * @internal
22
- */
19
+ * Checks if view element is a list item (li).
20
+ *
21
+ * @internal
22
+ */
23
23
  export declare function isListItemView(viewElement: ViewNode | ViewDocumentFragment): viewElement is ViewElement & {
24
- name: 'li';
24
+ name: "li";
25
25
  };
26
26
  /**
27
- * Calculates the indent value for a list item. Handles HTML compliant and non-compliant lists.
28
- *
29
- * Also, fixes non HTML compliant lists indents:
30
- *
31
- * ```
32
- * before: fixed list:
33
- * OL OL
34
- * |-> LI (parent LIs: 0) |-> LI (indent: 0)
35
- * |-> OL |-> OL
36
- * |-> OL |
37
- * | |-> OL |
38
- * | |-> OL |
39
- * | |-> LI (parent LIs: 1) |-> LI (indent: 1)
40
- * |-> LI (parent LIs: 1) |-> LI (indent: 1)
41
- *
42
- * before: fixed list:
43
- * OL OL
44
- * |-> OL |
45
- * |-> OL |
46
- * |-> OL |
47
- * |-> LI (parent LIs: 0) |-> LI (indent: 0)
48
- *
49
- * before: fixed list:
50
- * OL OL
51
- * |-> LI (parent LIs: 0) |-> LI (indent: 0)
52
- * |-> OL |-> OL
53
- * |-> LI (parent LIs: 0) |-> LI (indent: 1)
54
- * ```
55
- *
56
- * @internal
57
- */
27
+ * Calculates the indent value for a list item. Handles HTML compliant and non-compliant lists.
28
+ *
29
+ * Also, fixes non HTML compliant lists indents:
30
+ *
31
+ * ```
32
+ * before: fixed list:
33
+ * OL OL
34
+ * |-> LI (parent LIs: 0) |-> LI (indent: 0)
35
+ * |-> OL |-> OL
36
+ * |-> OL |
37
+ * | |-> OL |
38
+ * | |-> OL |
39
+ * | |-> LI (parent LIs: 1) |-> LI (indent: 1)
40
+ * |-> LI (parent LIs: 1) |-> LI (indent: 1)
41
+ *
42
+ * before: fixed list:
43
+ * OL OL
44
+ * |-> OL |
45
+ * |-> OL |
46
+ * |-> OL |
47
+ * |-> LI (parent LIs: 0) |-> LI (indent: 0)
48
+ *
49
+ * before: fixed list:
50
+ * OL OL
51
+ * |-> LI (parent LIs: 0) |-> LI (indent: 0)
52
+ * |-> OL |-> OL
53
+ * |-> LI (parent LIs: 0) |-> LI (indent: 1)
54
+ * ```
55
+ *
56
+ * @internal
57
+ */
58
58
  export declare function getIndent(listItem: ViewElement): number;
59
59
  /**
60
- * Creates a list attribute element (ol or ul).
61
- *
62
- * @internal
63
- */
60
+ * Creates a list attribute element (ol or ul).
61
+ *
62
+ * @internal
63
+ */
64
64
  export declare function createListElement(writer: ViewDowncastWriter, indent: number, type: ListType, id?: string): ViewAttributeElement;
65
65
  /**
66
- * Creates a list item attribute element (li).
67
- *
68
- * @internal
69
- */
66
+ * Creates a list item attribute element (li).
67
+ *
68
+ * @internal
69
+ */
70
70
  export declare function createListItemElement(writer: ViewDowncastWriter, indent: number, id: string): ViewAttributeElement;
71
71
  /**
72
- * Returns a view element name for the given list type.
73
- *
74
- * @internal
75
- */
76
- export declare function getViewElementNameForListType(type?: ListType): 'ol' | 'ul';
72
+ * Returns a view element name for the given list type.
73
+ *
74
+ * @internal
75
+ */
76
+ export declare function getViewElementNameForListType(type?: ListType): "ol" | "ul";
77
77
  /**
78
- * Returns a view element ID for the given list type and indent.
79
- *
80
- * @internal
81
- */
78
+ * Returns a view element ID for the given list type and indent.
79
+ *
80
+ * @internal
81
+ */
82
82
  export declare function getViewElementIdForListType(type?: ListType, indent?: number): string;
@@ -1,18 +1,18 @@
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/list/utils
7
- */
8
- import type { Editor } from '@ckeditor/ckeditor5-core';
6
+ * @module list/list/utils
7
+ */
8
+ import type { Editor } from "@ckeditor/ckeditor5-core";
9
9
  /**
10
- * Helper method for creating toolbar and menu buttons and linking them with an appropriate command.
11
- *
12
- * @internal
13
- * @param editor The editor instance to which the UI component will be added.
14
- * @param commandName The name of the command.
15
- * @param label The button label.
16
- * @param icon The source of the icon.
17
- */
18
- export declare function createUIComponents(editor: Editor, commandName: 'bulletedList' | 'numberedList' | 'todoList', label: string, icon: string): void;
10
+ * Helper method for creating toolbar and menu buttons and linking them with an appropriate command.
11
+ *
12
+ * @internal
13
+ * @param editor The editor instance to which the UI component will be added.
14
+ * @param commandName The name of the command.
15
+ * @param label The button label.
16
+ * @param icon The source of the icon.
17
+ */
18
+ export declare function createUIComponents(editor: Editor, commandName: "bulletedList" | "numberedList" | "todoList", label: string, icon: string): void;
package/dist/list.d.ts CHANGED
@@ -1,30 +1,30 @@
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/list
7
- */
8
- import { Plugin } from '@ckeditor/ckeditor5-core';
9
- import { ListEditing } from './list/listediting.js';
10
- import { ListUI } from './list/listui.js';
6
+ * @module list/list
7
+ */
8
+ import { Plugin, type PluginDependenciesOf } from "@ckeditor/ckeditor5-core";
9
+ import { ListEditing } from "./list/listediting.js";
10
+ import { ListUI } from "./list/listui.js";
11
11
  /**
12
- * The list feature.
13
- *
14
- * This is a "glue" plugin that loads the {@link module:list/list/listediting~ListEditing list
15
- * editing feature} and {@link module:list/list/listui~ListUI list UI feature}.
16
- */
12
+ * The list feature.
13
+ *
14
+ * This is a "glue" plugin that loads the {@link module:list/list/listediting~ListEditing list
15
+ * editing feature} and {@link module:list/list/listui~ListUI list UI feature}.
16
+ */
17
17
  export declare class List extends Plugin {
18
- /**
19
- * @inheritDoc
20
- */
21
- static get requires(): readonly [typeof ListEditing, typeof ListUI];
22
- /**
23
- * @inheritDoc
24
- */
25
- static get pluginName(): "List";
26
- /**
27
- * @inheritDoc
28
- */
29
- static get isOfficialPlugin(): true;
18
+ /**
19
+ * @inheritDoc
20
+ */
21
+ static get requires(): PluginDependenciesOf<[ListEditing, ListUI]>;
22
+ /**
23
+ * @inheritDoc
24
+ */
25
+ static get pluginName(): "List";
26
+ /**
27
+ * @inheritDoc
28
+ */
29
+ static override get isOfficialPlugin(): true;
30
30
  }