@ckeditor/ckeditor5-list 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.
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,43 +1,43 @@
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/todocheckboxchangeobserver
7
- */
8
- import { DomEventObserver, type ViewDocumentDomEventData } from '@ckeditor/ckeditor5-engine';
6
+ * @module list/todolist/todocheckboxchangeobserver
7
+ */
8
+ import { DomEventObserver, type ViewDocumentDomEventData } from "@ckeditor/ckeditor5-engine";
9
9
  /**
10
- * Observes all to-do list checkboxes state changes.
11
- *
12
- * Note that this observer is not available by default. To make it available it needs to be added to
13
- * {@link module:engine/view/view~EditingView} by {@link module:engine/view/view~EditingView#addObserver} method.
14
- *
15
- * @internal
16
- */
17
- export declare class TodoCheckboxChangeObserver extends DomEventObserver<'change'> {
18
- /**
19
- * @inheritDoc
20
- */
21
- readonly domEventType: readonly ["change"];
22
- /**
23
- * @inheritDoc
24
- */
25
- onDomEvent(domEvent: Event): void;
10
+ * Observes all to-do list checkboxes state changes.
11
+ *
12
+ * Note that this observer is not available by default. To make it available it needs to be added to
13
+ * {@link module:engine/view/view~EditingView} by {@link module:engine/view/view~EditingView#addObserver} method.
14
+ *
15
+ * @internal
16
+ */
17
+ export declare class TodoCheckboxChangeObserver extends DomEventObserver<"change"> {
18
+ /**
19
+ * @inheritDoc
20
+ */
21
+ readonly domEventType: readonly ["change"];
22
+ /**
23
+ * @inheritDoc
24
+ */
25
+ onDomEvent(domEvent: Event): void;
26
26
  }
27
27
  /**
28
- * Fired when the to-do list checkbox is toggled.
29
- *
30
- * Introduced by {@link module:list/todolist/todocheckboxchangeobserver~TodoCheckboxChangeObserver}.
31
- *
32
- * Note that this event is not available by default. To make it available,
33
- * {@link module:list/todolist/todocheckboxchangeobserver~TodoCheckboxChangeObserver}
34
- * needs to be added to {@link module:engine/view/view~EditingView} by the {@link module:engine/view/view~EditingView#addObserver} method.
35
- *
36
- * @see module:list/todolist/todocheckboxchangeobserver~TodoCheckboxChangeObserver
37
- * @eventName module:engine/view/document~ViewDocument#todoCheckboxChange
38
- * @param data The event data.
39
- */
28
+ * Fired when the to-do list checkbox is toggled.
29
+ *
30
+ * Introduced by {@link module:list/todolist/todocheckboxchangeobserver~TodoCheckboxChangeObserver}.
31
+ *
32
+ * Note that this event is not available by default. To make it available,
33
+ * {@link module:list/todolist/todocheckboxchangeobserver~TodoCheckboxChangeObserver}
34
+ * needs to be added to {@link module:engine/view/view~EditingView} by the {@link module:engine/view/view~EditingView#addObserver} method.
35
+ *
36
+ * @see module:list/todolist/todocheckboxchangeobserver~TodoCheckboxChangeObserver
37
+ * @eventName module:engine/view/document~ViewDocument#todoCheckboxChange
38
+ * @param data The event data.
39
+ */
40
40
  export type ViewDocumentTodoCheckboxChangeEvent = {
41
- name: 'todoCheckboxChange';
42
- args: [data: ViewDocumentDomEventData<Event>];
41
+ name: "todoCheckboxChange";
42
+ args: [data: ViewDocumentDomEventData<Event>];
43
43
  };
@@ -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
- */
5
- import { Plugin } from '@ckeditor/ckeditor5-core';
6
- import { ListEditing } from '../list/listediting.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 { Plugin, type PluginDependenciesOf } from "@ckeditor/ckeditor5-core";
6
+ import { ListEditing } from "../list/listediting.js";
7
7
  /**
8
- * The engine of the to-do list feature. It handles creating, editing and removing to-do lists and their items.
9
- *
10
- * It registers the entire functionality of the {@link module:list/list/listediting~ListEditing list editing plugin}
11
- * and extends it with the commands:
12
- *
13
- * - `'todoList'`,
14
- * - `'checkTodoList'`,
15
- */
8
+ * The engine of the to-do list feature. It handles creating, editing and removing to-do lists and their items.
9
+ *
10
+ * It registers the entire functionality of the {@link module:list/list/listediting~ListEditing list editing plugin}
11
+ * and extends it with the commands:
12
+ *
13
+ * - `'todoList'`,
14
+ * - `'checkTodoList'`,
15
+ */
16
16
  export declare class TodoListEditing extends Plugin {
17
- /**
18
- * @inheritDoc
19
- */
20
- static get pluginName(): "TodoListEditing";
21
- /**
22
- * @inheritDoc
23
- */
24
- static get isOfficialPlugin(): true;
25
- /**
26
- * @inheritDoc
27
- */
28
- static get requires(): readonly [typeof ListEditing];
29
- /**
30
- * @inheritDoc
31
- */
32
- init(): void;
33
- /**
34
- * Handles the checkbox element change, moves the selection to the corresponding model item to make it possible
35
- * to toggle the `todoListChecked` attribute using the command, and restores the selection position.
36
- *
37
- * Some say it's a hack :) Moving the selection only for executing the command on a certain node and restoring it after,
38
- * is not a clear solution. We need to design an API for using commands beyond the selection range.
39
- * See https://github.com/ckeditor/ckeditor5/issues/1954.
40
- */
41
- private _handleCheckmarkChange;
42
- /**
43
- * Observe when user enters or leaves todo list and set proper aria value in global live announcer.
44
- * This allows screen readers to indicate when the user has entered and left the specified todo list.
45
- *
46
- * @internal
47
- */
48
- private _initAriaAnnouncements;
17
+ /**
18
+ * @inheritDoc
19
+ */
20
+ static get pluginName(): "TodoListEditing";
21
+ /**
22
+ * @inheritDoc
23
+ */
24
+ static override get isOfficialPlugin(): true;
25
+ /**
26
+ * @inheritDoc
27
+ */
28
+ static get requires(): PluginDependenciesOf<[ListEditing]>;
29
+ /**
30
+ * @inheritDoc
31
+ */
32
+ init(): void;
33
+ /**
34
+ * Handles the checkbox element change, moves the selection to the corresponding model item to make it possible
35
+ * to toggle the `todoListChecked` attribute using the command, and restores the selection position.
36
+ *
37
+ * Some say it's a hack :) Moving the selection only for executing the command on a certain node and restoring it after,
38
+ * is not a clear solution. We need to design an API for using commands beyond the selection range.
39
+ * See https://github.com/ckeditor/ckeditor5/issues/1954.
40
+ */
41
+ private _handleCheckmarkChange;
42
+ /**
43
+ * Observe when user enters or leaves todo list and set proper aria value in global live announcer.
44
+ * This allows screen readers to indicate when the user has entered and left the specified todo list.
45
+ *
46
+ * @internal
47
+ */
48
+ private _initAriaAnnouncements;
49
49
  }
@@ -1,23 +1,23 @@
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 { Plugin } from '@ckeditor/ckeditor5-core';
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 { Plugin } from "@ckeditor/ckeditor5-core";
6
6
  /**
7
- * The to-do list UI feature. It introduces the `'todoList'` button that
8
- * allows to convert elements to and from to-do list items and to indent or outdent them.
9
- */
7
+ * The to-do list UI feature. It introduces the `'todoList'` button that
8
+ * allows to convert elements to and from to-do list items and to indent or outdent them.
9
+ */
10
10
  export declare class TodoListUI extends Plugin {
11
- /**
12
- * @inheritDoc
13
- */
14
- static get pluginName(): "TodoListUI";
15
- /**
16
- * @inheritDoc
17
- */
18
- static get isOfficialPlugin(): true;
19
- /**
20
- * @inheritDoc
21
- */
22
- init(): void;
11
+ /**
12
+ * @inheritDoc
13
+ */
14
+ static get pluginName(): "TodoListUI";
15
+ /**
16
+ * @inheritDoc
17
+ */
18
+ static override get isOfficialPlugin(): true;
19
+ /**
20
+ * @inheritDoc
21
+ */
22
+ init(): void;
23
23
  }
@@ -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/todolist
7
- */
8
- import { TodoListEditing } from './todolist/todolistediting.js';
9
- import { TodoListUI } from './todolist/todolistui.js';
10
- import { Plugin } from '@ckeditor/ckeditor5-core';
11
- import '../theme/todolist.css';
6
+ * @module list/todolist
7
+ */
8
+ import { TodoListEditing } from "./todolist/todolistediting.js";
9
+ import { TodoListUI } from "./todolist/todolistui.js";
10
+ import { Plugin, type PluginDependenciesOf } from "@ckeditor/ckeditor5-core";
11
+ import "../theme/todolist.css";
12
12
  /**
13
- * The to-do list feature.
14
- *
15
- * This is a "glue" plugin that loads the {@link module:list/todolist/todolistediting~TodoListEditing to-do list
16
- * editing feature} and the {@link module:list/todolist/todolistui~TodoListUI to-do list UI feature}.
17
- */
13
+ * The to-do list feature.
14
+ *
15
+ * This is a "glue" plugin that loads the {@link module:list/todolist/todolistediting~TodoListEditing to-do list
16
+ * editing feature} and the {@link module:list/todolist/todolistui~TodoListUI to-do list UI feature}.
17
+ */
18
18
  export declare class TodoList extends Plugin {
19
- /**
20
- * @inheritDoc
21
- */
22
- static get requires(): readonly [typeof TodoListEditing, typeof TodoListUI];
23
- /**
24
- * @inheritDoc
25
- */
26
- static get pluginName(): "TodoList";
27
- /**
28
- * @inheritDoc
29
- */
30
- static get isOfficialPlugin(): true;
19
+ /**
20
+ * @inheritDoc
21
+ */
22
+ static get requires(): PluginDependenciesOf<[TodoListEditing, TodoListUI]>;
23
+ /**
24
+ * @inheritDoc
25
+ */
26
+ static get pluginName(): "TodoList";
27
+ /**
28
+ * @inheritDoc
29
+ */
30
+ static override get isOfficialPlugin(): true;
31
31
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-list",
3
- "version": "48.2.0",
3
+ "version": "48.3.0-alpha.0",
4
4
  "description": "Ordered and unordered lists feature to CKEditor 5.",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "author": "CKSource (http://cksource.com/)",
@@ -26,15 +26,15 @@
26
26
  "./package.json": "./package.json"
27
27
  },
28
28
  "dependencies": {
29
- "@ckeditor/ckeditor5-clipboard": "48.2.0",
30
- "@ckeditor/ckeditor5-core": "48.2.0",
31
- "@ckeditor/ckeditor5-engine": "48.2.0",
32
- "@ckeditor/ckeditor5-enter": "48.2.0",
33
- "@ckeditor/ckeditor5-font": "48.2.0",
34
- "@ckeditor/ckeditor5-icons": "48.2.0",
35
- "@ckeditor/ckeditor5-typing": "48.2.0",
36
- "@ckeditor/ckeditor5-ui": "48.2.0",
37
- "@ckeditor/ckeditor5-utils": "48.2.0",
29
+ "@ckeditor/ckeditor5-clipboard": "48.3.0-alpha.0",
30
+ "@ckeditor/ckeditor5-core": "48.3.0-alpha.0",
31
+ "@ckeditor/ckeditor5-engine": "48.3.0-alpha.0",
32
+ "@ckeditor/ckeditor5-enter": "48.3.0-alpha.0",
33
+ "@ckeditor/ckeditor5-font": "48.3.0-alpha.0",
34
+ "@ckeditor/ckeditor5-icons": "48.3.0-alpha.0",
35
+ "@ckeditor/ckeditor5-typing": "48.3.0-alpha.0",
36
+ "@ckeditor/ckeditor5-ui": "48.3.0-alpha.0",
37
+ "@ckeditor/ckeditor5-utils": "48.3.0-alpha.0",
38
38
  "es-toolkit": "1.45.1"
39
39
  },
40
40
  "files": [