@ckeditor/ckeditor5-list 45.2.1 → 46.0.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 (122) hide show
  1. package/build/list.js +1 -1
  2. package/dist/index-content.css +50 -8
  3. package/dist/index-editor.css +14 -8
  4. package/dist/index.css +62 -15
  5. package/dist/index.css.map +1 -1
  6. package/dist/index.js +736 -135
  7. package/dist/index.js.map +1 -1
  8. package/package.json +11 -10
  9. package/src/augmentation.d.ts +8 -5
  10. package/src/index.d.ts +61 -37
  11. package/src/index.js +53 -25
  12. package/src/legacyerrors.d.ts +5 -0
  13. package/src/legacyerrors.js +28 -0
  14. package/src/legacylist/legacyconverters.d.ts +23 -7
  15. package/src/legacylist/legacyconverters.js +18 -2
  16. package/src/legacylist/legacyindentcommand.d.ts +1 -1
  17. package/src/legacylist/legacyindentcommand.js +1 -1
  18. package/src/legacylist/legacylistcommand.d.ts +1 -1
  19. package/src/legacylist/legacylistcommand.js +1 -1
  20. package/src/legacylist/legacylistediting.d.ts +2 -2
  21. package/src/legacylist/legacylistediting.js +4 -4
  22. package/src/legacylist/legacylistutils.d.ts +4 -4
  23. package/src/legacylist/legacylistutils.js +1 -1
  24. package/src/legacylist/legacyutils.d.ts +21 -10
  25. package/src/legacylist/legacyutils.js +14 -4
  26. package/src/legacylist.d.ts +3 -3
  27. package/src/legacylist.js +3 -3
  28. package/src/legacylistproperties/legacylistpropertiesediting.d.ts +2 -2
  29. package/src/legacylistproperties/legacylistpropertiesediting.js +5 -5
  30. package/src/legacylistproperties/legacylistreversedcommand.d.ts +1 -1
  31. package/src/legacylistproperties/legacylistreversedcommand.js +1 -1
  32. package/src/legacylistproperties/legacyliststartcommand.d.ts +1 -1
  33. package/src/legacylistproperties/legacyliststartcommand.js +1 -1
  34. package/src/legacylistproperties/legacyliststylecommand.d.ts +1 -1
  35. package/src/legacylistproperties/legacyliststylecommand.js +1 -1
  36. package/src/legacylistproperties.d.ts +3 -3
  37. package/src/legacylistproperties.js +3 -3
  38. package/src/legacytodolist/legacychecktodolistcommand.d.ts +6 -6
  39. package/src/legacytodolist/legacychecktodolistcommand.js +3 -3
  40. package/src/legacytodolist/legacytodolistconverters.d.ts +15 -8
  41. package/src/legacytodolist/legacytodolistconverters.js +10 -3
  42. package/src/legacytodolist/legacytodolistediting.d.ts +2 -2
  43. package/src/legacytodolist/legacytodolistediting.js +4 -4
  44. package/src/legacytodolist.d.ts +3 -3
  45. package/src/legacytodolist.js +3 -3
  46. package/src/list/adjacentlistssupport.d.ts +1 -1
  47. package/src/list/adjacentlistssupport.js +1 -1
  48. package/src/list/converters.d.ts +9 -5
  49. package/src/list/converters.js +12 -7
  50. package/src/list/listcommand.d.ts +3 -3
  51. package/src/list/listcommand.js +1 -1
  52. package/src/list/listediting.d.ts +21 -17
  53. package/src/list/listediting.js +28 -11
  54. package/src/list/listindentcommand.d.ts +3 -3
  55. package/src/list/listindentcommand.js +2 -2
  56. package/src/list/listmergecommand.d.ts +3 -3
  57. package/src/list/listmergecommand.js +2 -2
  58. package/src/list/listsplitcommand.d.ts +3 -3
  59. package/src/list/listsplitcommand.js +1 -1
  60. package/src/list/listui.d.ts +1 -1
  61. package/src/list/listui.js +1 -1
  62. package/src/list/listutils.d.ts +7 -7
  63. package/src/list/listutils.js +1 -1
  64. package/src/list/utils/listwalker.d.ts +12 -6
  65. package/src/list/utils/listwalker.js +5 -1
  66. package/src/list/utils/model.d.ts +25 -22
  67. package/src/list/utils/model.js +7 -2
  68. package/src/list/utils/postfixers.d.ts +4 -4
  69. package/src/list/utils/view.d.ts +3 -3
  70. package/src/list.d.ts +3 -3
  71. package/src/list.js +3 -3
  72. package/src/listconfig.d.ts +13 -0
  73. package/src/listformatting/listitemboldintegration.d.ts +34 -0
  74. package/src/listformatting/listitemboldintegration.js +83 -0
  75. package/src/listformatting/listitemfontcolorintegration.d.ts +34 -0
  76. package/src/listformatting/listitemfontcolorintegration.js +92 -0
  77. package/src/listformatting/listitemfontfamilyintegration.d.ts +34 -0
  78. package/src/listformatting/listitemfontfamilyintegration.js +93 -0
  79. package/src/listformatting/listitemfontsizeintegration.d.ts +34 -0
  80. package/src/listformatting/listitemfontsizeintegration.js +119 -0
  81. package/src/listformatting/listitemitalicintegration.d.ts +34 -0
  82. package/src/listformatting/listitemitalicintegration.js +83 -0
  83. package/src/listformatting.d.ts +71 -0
  84. package/src/listformatting.js +243 -0
  85. package/src/listproperties/listpropertiesediting.d.ts +7 -7
  86. package/src/listproperties/listpropertiesediting.js +6 -6
  87. package/src/listproperties/listpropertiesui.d.ts +1 -1
  88. package/src/listproperties/listpropertiesui.js +2 -2
  89. package/src/listproperties/listpropertiesutils.d.ts +1 -1
  90. package/src/listproperties/listpropertiesutils.js +1 -1
  91. package/src/listproperties/listreversedcommand.d.ts +1 -1
  92. package/src/listproperties/listreversedcommand.js +1 -1
  93. package/src/listproperties/liststartcommand.d.ts +1 -1
  94. package/src/listproperties/liststartcommand.js +1 -1
  95. package/src/listproperties/liststylecommand.d.ts +1 -1
  96. package/src/listproperties/liststylecommand.js +1 -1
  97. package/src/listproperties/ui/listpropertiesview.d.ts +6 -1
  98. package/src/listproperties/ui/listpropertiesview.js +1 -1
  99. package/src/listproperties/utils/config.d.ts +3 -0
  100. package/src/listproperties/utils/config.js +1 -0
  101. package/src/listproperties/utils/style.d.ts +9 -0
  102. package/src/listproperties/utils/style.js +9 -0
  103. package/src/listproperties.d.ts +3 -3
  104. package/src/listproperties.js +3 -3
  105. package/src/todolist/checktodolistcommand.d.ts +3 -3
  106. package/src/todolist/checktodolistcommand.js +2 -2
  107. package/src/todolist/todocheckboxchangeobserver.d.ts +8 -6
  108. package/src/todolist/todocheckboxchangeobserver.js +4 -2
  109. package/src/todolist/todolistediting.d.ts +2 -2
  110. package/src/todolist/todolistediting.js +5 -5
  111. package/src/todolist/todolistui.d.ts +1 -1
  112. package/src/todolist/todolistui.js +1 -1
  113. package/src/todolist.d.ts +3 -3
  114. package/src/todolist.js +3 -3
  115. package/theme/listformatting.css +48 -0
  116. package/theme/todolist.css +8 -8
  117. package/src/documentlist.d.ts +0 -32
  118. package/src/documentlist.js +0 -47
  119. package/src/documentlistproperties.d.ts +0 -32
  120. package/src/documentlistproperties.js +0 -47
  121. package/src/tododocumentlist.d.ts +0 -32
  122. package/src/tododocumentlist.js +0 -47
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-list",
3
- "version": "45.2.1",
3
+ "version": "46.0.0-alpha.0",
4
4
  "description": "Ordered and unordered lists feature to CKEditor 5.",
5
5
  "keywords": [
6
6
  "ckeditor",
@@ -13,15 +13,16 @@
13
13
  "type": "module",
14
14
  "main": "src/index.js",
15
15
  "dependencies": {
16
- "@ckeditor/ckeditor5-clipboard": "45.2.1",
17
- "@ckeditor/ckeditor5-core": "45.2.1",
18
- "@ckeditor/ckeditor5-engine": "45.2.1",
19
- "@ckeditor/ckeditor5-enter": "45.2.1",
20
- "@ckeditor/ckeditor5-icons": "45.2.1",
21
- "@ckeditor/ckeditor5-typing": "45.2.1",
22
- "@ckeditor/ckeditor5-ui": "45.2.1",
23
- "@ckeditor/ckeditor5-utils": "45.2.1",
24
- "ckeditor5": "45.2.1"
16
+ "@ckeditor/ckeditor5-clipboard": "46.0.0-alpha.0",
17
+ "@ckeditor/ckeditor5-core": "46.0.0-alpha.0",
18
+ "@ckeditor/ckeditor5-engine": "46.0.0-alpha.0",
19
+ "@ckeditor/ckeditor5-enter": "46.0.0-alpha.0",
20
+ "@ckeditor/ckeditor5-font": "46.0.0-alpha.0",
21
+ "@ckeditor/ckeditor5-icons": "46.0.0-alpha.0",
22
+ "@ckeditor/ckeditor5-typing": "46.0.0-alpha.0",
23
+ "@ckeditor/ckeditor5-ui": "46.0.0-alpha.0",
24
+ "@ckeditor/ckeditor5-utils": "46.0.0-alpha.0",
25
+ "ckeditor5": "46.0.0-alpha.0"
25
26
  },
26
27
  "author": "CKSource (http://cksource.com/)",
27
28
  "license": "SEE LICENSE IN LICENSE.md",
@@ -2,7 +2,7 @@
2
2
  * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
4
  */
5
- import type { List, ListEditing, ListUtils, ListUI, ListCommand, ListIndentCommand, ListMergeCommand, ListSplitCommand, ListProperties, ListPropertiesUtils, ListPropertiesEditing, ListPropertiesUI, ListStyleCommand, ListStartCommand, ListReversedCommand, TodoList, TodoListEditing, TodoListUI, CheckTodoListCommand, LegacyList, LegacyListEditing, LegacyListUtils, LegacyListCommand, LegacyIndentCommand, LegacyListProperties, LegacyListPropertiesEditing, LegacyListStyleCommand, LegacyListStartCommand, LegacyListReversedCommand, LegacyTodoList, LegacyTodoListEditing, LegacyCheckTodoListCommand, ListConfig, DocumentList, DocumentListProperties, TodoDocumentList } from './index.js';
5
+ import type { List, ListEditing, ListUtils, ListUI, ListCommand, ListIndentCommand, ListMergeCommand, ListSplitCommand, ListProperties, ListPropertiesUtils, ListPropertiesEditing, ListPropertiesUI, ListStyleCommand, ListStartCommand, ListReversedCommand, TodoList, TodoListEditing, TodoListUI, CheckTodoListCommand, ListFormatting, ListItemBoldIntegration, ListItemItalicIntegration, ListItemFontSizeIntegration, ListItemFontColorIntegration, ListItemFontFamilyIntegration, LegacyList, LegacyListEditing, LegacyListUtils, LegacyListCommand, LegacyIndentCommand, LegacyListProperties, LegacyListPropertiesEditing, LegacyListStyleCommand, LegacyListStartCommand, LegacyListReversedCommand, LegacyTodoList, LegacyTodoListEditing, LegacyCheckTodoListCommand, ListConfig } from './index.js';
6
6
  declare module '@ckeditor/ckeditor5-core' {
7
7
  interface EditorConfig {
8
8
  /**
@@ -21,9 +21,15 @@ declare module '@ckeditor/ckeditor5-core' {
21
21
  [ListPropertiesEditing.pluginName]: ListPropertiesEditing;
22
22
  [ListPropertiesUtils.pluginName]: ListPropertiesUtils;
23
23
  [ListPropertiesUI.pluginName]: ListPropertiesUI;
24
- [TodoList.pluginName]: TodoDocumentList;
24
+ [TodoList.pluginName]: TodoList;
25
25
  [TodoListEditing.pluginName]: TodoListEditing;
26
26
  [TodoListUI.pluginName]: TodoListUI;
27
+ [ListFormatting.pluginName]: ListFormatting;
28
+ [ListItemBoldIntegration.pluginName]: ListItemBoldIntegration;
29
+ [ListItemItalicIntegration.pluginName]: ListItemItalicIntegration;
30
+ [ListItemFontSizeIntegration.pluginName]: ListItemFontSizeIntegration;
31
+ [ListItemFontColorIntegration.pluginName]: ListItemFontColorIntegration;
32
+ [ListItemFontFamilyIntegration.pluginName]: ListItemFontFamilyIntegration;
27
33
  [LegacyList.pluginName]: LegacyList;
28
34
  [LegacyListEditing.pluginName]: LegacyListEditing;
29
35
  [LegacyListUtils.pluginName]: LegacyListUtils;
@@ -31,9 +37,6 @@ declare module '@ckeditor/ckeditor5-core' {
31
37
  [LegacyListPropertiesEditing.pluginName]: LegacyListPropertiesEditing;
32
38
  [LegacyTodoList.pluginName]: LegacyTodoList;
33
39
  [LegacyTodoListEditing.pluginName]: LegacyTodoListEditing;
34
- [DocumentList.pluginName]: DocumentList;
35
- [DocumentListProperties.pluginName]: DocumentListProperties;
36
- [TodoDocumentList.pluginName]: TodoDocumentList;
37
40
  }
38
41
  interface CommandsMap {
39
42
  numberedList: LegacyListCommand | ListCommand;
package/src/index.d.ts CHANGED
@@ -5,41 +5,65 @@
5
5
  /**
6
6
  * @module list
7
7
  */
8
- export { default as List } from './list.js';
9
- export { default as ListEditing, type ListEditingPostFixerEvent, type ListType } from './list/listediting.js';
10
- export { default as ListUtils } from './list/listutils.js';
11
- export { default as ListUI } from './list/listui.js';
12
- export { default as ListIndentCommand } from './list/listindentcommand.js';
13
- export { default as ListCommand } from './list/listcommand.js';
14
- export type { default as ListMergeCommand } from './list/listmergecommand.js';
15
- export type { default as ListSplitCommand } from './list/listsplitcommand.js';
16
- export { default as ListProperties } from './listproperties.js';
17
- export { default as ListPropertiesEditing } from './listproperties/listpropertiesediting.js';
18
- export { default as ListPropertiesUtils } from './listproperties/listpropertiesutils.js';
19
- export { default as ListPropertiesUI } from './listproperties/listpropertiesui.js';
20
- export type { default as ListReversedCommand } from './listproperties/listreversedcommand.js';
21
- export type { default as ListStartCommand } from './listproperties/liststartcommand.js';
22
- export type { default as ListStyleCommand } from './listproperties/liststylecommand.js';
23
- export { default as TodoList } from './todolist.js';
24
- export { default as TodoListUI } from './todolist/todolistui.js';
25
- export { default as TodoListEditing } from './todolist/todolistediting.js';
26
- export type { default as CheckTodoListCommand } from './todolist/checktodolistcommand.js';
27
- export { default as LegacyList } from './legacylist.js';
28
- export { default as LegacyListEditing } from './legacylist/legacylistediting.js';
29
- export { default as LegacyListUtils } from './legacylist/legacylistutils.js';
30
- export { default as LegacyIndentCommand } from './legacylist/legacyindentcommand.js';
31
- export type { default as LegacyListCommand } from './legacylist/legacylistcommand.js';
32
- export { default as LegacyListProperties } from './legacylistproperties.js';
33
- export { default as LegacyListPropertiesEditing } from './legacylistproperties/legacylistpropertiesediting.js';
34
- export type { default as LegacyListReversedCommand } from './legacylistproperties/legacylistreversedcommand.js';
35
- export type { default as LegacyListStartCommand } from './legacylistproperties/legacyliststartcommand.js';
36
- export type { default as LegacyListStyleCommand } from './legacylistproperties/legacyliststylecommand.js';
37
- export { default as LegacyTodoList } from './legacytodolist.js';
38
- export { default as LegacyTodoListEditing } from './legacytodolist/legacytodolistediting.js';
39
- export type { default as LegacyCheckTodoListCommand } from './legacytodolist/legacychecktodolistcommand.js';
40
- export type { ListConfig, ListPropertiesConfig } from './listconfig.js';
41
- export { default as AdjacentListsSupport } from './list/adjacentlistssupport.js';
42
- export { default as DocumentList } from './documentlist.js';
43
- export { default as DocumentListProperties } from './documentlistproperties.js';
44
- export { default as TodoDocumentList } from './tododocumentlist.js';
8
+ export { List } from './list.js';
9
+ export { ListEditing, type ListEditingPostFixerEvent, type ListType, type AttributeDowncastStrategy, type ItemMarkerDowncastStrategy, type DowncastStrategy } from './list/listediting.js';
10
+ export { ListUtils } from './list/listutils.js';
11
+ export { ListUI } from './list/listui.js';
12
+ export { ListIndentCommand } from './list/listindentcommand.js';
13
+ export { ListCommand } from './list/listcommand.js';
14
+ export { ListMergeCommand } from './list/listmergecommand.js';
15
+ export { ListSplitCommand } from './list/listsplitcommand.js';
16
+ export type { ListCommandAfterExecuteEvent as _ListCommandAfterExecuteEvent } from './list/listcommand.js';
17
+ export type { ListItemAttributesMap as _ListItemAttributesMap, ListEditingCheckAttributesEvent as _ListEditingCheckAttributesEvent, ListEditingCheckElementEvent as _ListEditingCheckElementEvent } from './list/listediting.js';
18
+ export type { ListIndentCommandAfterExecuteEvent as _ListIndentCommandAfterExecuteEvent } from './list/listindentcommand.js';
19
+ export type { ListMergeCommandAfterExecuteEvent as _ListMergeCommandAfterExecuteEvent } from './list/listmergecommand.js';
20
+ export type { ListSplitCommandAfterExecuteEvent as _ListSplitCommandAfterExecuteEvent } from './list/listsplitcommand.js';
21
+ export { listItemUpcastConverter as _listItemUpcastConverter, reconvertItemsOnDataChange as _reconvertListItemsOnDataChange, listItemDowncastConverter as _listItemDowncastConverter, listItemDowncastRemoveConverter as _listItemDowncastRemoveConverter, bogusParagraphCreator as _listItemBogusParagraphCreator, findMappedViewElement as _findMappedListItemViewElement, createModelToViewPositionMapper as _createModelToViewListPositionMapper } from './list/converters.js';
22
+ export { createUIComponents as _createListUIComponents } from './list/utils.js';
23
+ export { ListWalker as _ListWalker, SiblingListBlocksIterator as _SiblingListBlocksIterator, ListBlocksIterable as _ListBlocksIterable } from './list/utils/listwalker.js';
24
+ export type { ListIteratorValue as _ListIteratorValue, ListWalkerOptions as _ListWalkerOptions } from './list/utils/listwalker.js';
25
+ export { isListItemBlock as _isListItemBlock, getAllListItemBlocks as _getAllListItemBlocks, getListItemBlocks as _getListItemBlocks, getNestedListBlocks as _getNestedListBlocks, getListItems as _getListItems, isFirstBlockOfListItem as _isFirstBlockOfListItem, isLastBlockOfListItem as _isLastBlockOfListItem, expandListBlocksToCompleteItems as _expandListBlocksToCompleteItems, expandListBlocksToCompleteList as _expandListBlocksToCompleteList, splitListItemBefore as _splitListItemBefore, mergeListItemBefore as _mergeListItemBefore, indentBlocks as _indentListBlocks, outdentBlocksWithMerge as _outdentListBlocksWithMerge, removeListAttributes as _removeListAttributes, isSingleListItem as _isSingleListItem, outdentFollowingItems as _outdentFollowingListItems, sortBlocks as _sortListBlocks, getSelectedBlockObject as _getSelectedBlockObject, canBecomeSimpleListItem as _canBecomeSimpleListItem, isNumberedListType as _isNumberedListType } from './list/utils/model.js';
26
+ export type { ListItemUid as _ListItemUid, ListElement as _ListElement } from './list/utils/model.js';
27
+ export { findAndAddListHeadToMap as _findAndAddListHeadToMap, fixListIndents as _fixListIndents, fixListItemIds as _fixListItemIds } from './list/utils/postfixers.js';
28
+ export { isListView as _isListView, isListItemView as _isListItemView, getIndent as _getListIndent, createListElement as _createListElement, createListItemElement as _createListItemElement, getViewElementNameForListType as _getViewElementNameForListType, getViewElementIdForListType as _getViewElementIdForListType } from './list/utils/view.js';
29
+ export { ListProperties } from './listproperties.js';
30
+ export { ListPropertiesEditing } from './listproperties/listpropertiesediting.js';
31
+ export { ListPropertiesUtils } from './listproperties/listpropertiesutils.js';
32
+ export { ListPropertiesUI } from './listproperties/listpropertiesui.js';
33
+ export { ListReversedCommand } from './listproperties/listreversedcommand.js';
34
+ export { ListStartCommand } from './listproperties/liststartcommand.js';
35
+ export { ListStyleCommand } from './listproperties/liststylecommand.js';
36
+ export { listPropertiesUpcastConverter as _listPropertiesUpcastConverter } from './listproperties/converters.js';
37
+ export type { AttributeStrategy as _ListAttributeConversionStrategy } from './listproperties/listpropertiesediting.js';
38
+ export { ListPropertiesView as _ListPropertiesView, type ListPropertiesViewListStartEvent, type ListPropertiesViewListReversedEvent, type StylesView as _ListPropertiesStylesView } from './listproperties/ui/listpropertiesview.js';
39
+ export { getNormalizedConfig as _getNormalizedListConfig } from './listproperties/utils/config.js';
40
+ export type { NormalizedListPropertiesConfig as _NormalizedListPropertiesConfig } from './listproperties/utils/config.js';
41
+ export { getAllSupportedStyleTypes as _getAllSupportedListStyleTypes, getListTypeFromListStyleType as _getListTypeFromListStyleType, getListStyleTypeFromTypeAttribute as _getListStyleTypeFromTypeAttribute, getTypeAttributeFromListStyleType as _getTypeAttributeFromListStyleType, normalizeListStyle as _normalizeListStyle } from './listproperties/utils/style.js';
42
+ export { ListFormatting } from './listformatting.js';
43
+ export { ListItemBoldIntegration } from './listformatting/listitemboldintegration.js';
44
+ export { ListItemItalicIntegration } from './listformatting/listitemitalicintegration.js';
45
+ export { ListItemFontSizeIntegration } from './listformatting/listitemfontsizeintegration.js';
46
+ export { ListItemFontColorIntegration } from './listformatting/listitemfontcolorintegration.js';
47
+ export { ListItemFontFamilyIntegration } from './listformatting/listitemfontfamilyintegration.js';
48
+ export { TodoList } from './todolist.js';
49
+ export { TodoListUI } from './todolist/todolistui.js';
50
+ export { TodoListEditing } from './todolist/todolistediting.js';
51
+ export { CheckTodoListCommand } from './todolist/checktodolistcommand.js';
52
+ export type { ViewDocumentTodoCheckboxChangeEvent } from './todolist/todocheckboxchangeobserver.js';
53
+ export { TodoCheckboxChangeObserver as _TodoCheckboxChangeObserver } from './todolist/todocheckboxchangeobserver.js';
54
+ export { LegacyList } from './legacylist.js';
55
+ export { LegacyListEditing } from './legacylist/legacylistediting.js';
56
+ export { LegacyListUtils } from './legacylist/legacylistutils.js';
57
+ export { LegacyIndentCommand } from './legacylist/legacyindentcommand.js';
58
+ export { LegacyListCommand } from './legacylist/legacylistcommand.js';
59
+ export { LegacyListProperties } from './legacylistproperties.js';
60
+ export { LegacyListPropertiesEditing } from './legacylistproperties/legacylistpropertiesediting.js';
61
+ export { LegacyListReversedCommand } from './legacylistproperties/legacylistreversedcommand.js';
62
+ export { LegacyListStartCommand } from './legacylistproperties/legacyliststartcommand.js';
63
+ export { LegacyListStyleCommand } from './legacylistproperties/legacyliststylecommand.js';
64
+ export { LegacyTodoList } from './legacytodolist.js';
65
+ export { LegacyTodoListEditing } from './legacytodolist/legacytodolistediting.js';
66
+ export { LegacyCheckTodoListCommand } from './legacytodolist/legacychecktodolistcommand.js';
67
+ export type { ListConfig, ListPropertiesConfig, ListPropertiesStyleConfig, ListPropertiesStyleListType, ListStyleTypesConfig, NumberedListStyleType, BulletedListStyleType } from './listconfig.js';
68
+ export { AdjacentListsSupport } from './list/adjacentlistssupport.js';
45
69
  import './augmentation.js';
package/src/index.js CHANGED
@@ -6,34 +6,62 @@
6
6
  * @module list
7
7
  */
8
8
  // List.
9
- export { default as List } from './list.js';
10
- export { default as ListEditing } from './list/listediting.js';
11
- export { default as ListUtils } from './list/listutils.js';
12
- export { default as ListUI } from './list/listui.js';
13
- export { default as ListIndentCommand } from './list/listindentcommand.js';
14
- export { default as ListCommand } from './list/listcommand.js';
9
+ export { List } from './list.js';
10
+ export { ListEditing } from './list/listediting.js';
11
+ export { ListUtils } from './list/listutils.js';
12
+ export { ListUI } from './list/listui.js';
13
+ export { ListIndentCommand } from './list/listindentcommand.js';
14
+ export { ListCommand } from './list/listcommand.js';
15
+ export { ListMergeCommand } from './list/listmergecommand.js';
16
+ export { ListSplitCommand } from './list/listsplitcommand.js';
17
+ export { listItemUpcastConverter as _listItemUpcastConverter, reconvertItemsOnDataChange as _reconvertListItemsOnDataChange, listItemDowncastConverter as _listItemDowncastConverter, listItemDowncastRemoveConverter as _listItemDowncastRemoveConverter, bogusParagraphCreator as _listItemBogusParagraphCreator, findMappedViewElement as _findMappedListItemViewElement, createModelToViewPositionMapper as _createModelToViewListPositionMapper } from './list/converters.js';
18
+ export { createUIComponents as _createListUIComponents } from './list/utils.js';
19
+ export { ListWalker as _ListWalker, SiblingListBlocksIterator as _SiblingListBlocksIterator, ListBlocksIterable as _ListBlocksIterable } from './list/utils/listwalker.js';
20
+ export { isListItemBlock as _isListItemBlock, getAllListItemBlocks as _getAllListItemBlocks, getListItemBlocks as _getListItemBlocks, getNestedListBlocks as _getNestedListBlocks, getListItems as _getListItems, isFirstBlockOfListItem as _isFirstBlockOfListItem, isLastBlockOfListItem as _isLastBlockOfListItem, expandListBlocksToCompleteItems as _expandListBlocksToCompleteItems, expandListBlocksToCompleteList as _expandListBlocksToCompleteList, splitListItemBefore as _splitListItemBefore, mergeListItemBefore as _mergeListItemBefore, indentBlocks as _indentListBlocks, outdentBlocksWithMerge as _outdentListBlocksWithMerge, removeListAttributes as _removeListAttributes, isSingleListItem as _isSingleListItem, outdentFollowingItems as _outdentFollowingListItems, sortBlocks as _sortListBlocks, getSelectedBlockObject as _getSelectedBlockObject, canBecomeSimpleListItem as _canBecomeSimpleListItem, isNumberedListType as _isNumberedListType } from './list/utils/model.js';
21
+ export { findAndAddListHeadToMap as _findAndAddListHeadToMap, fixListIndents as _fixListIndents, fixListItemIds as _fixListItemIds } from './list/utils/postfixers.js';
22
+ export { isListView as _isListView, isListItemView as _isListItemView, getIndent as _getListIndent, createListElement as _createListElement, createListItemElement as _createListItemElement, getViewElementNameForListType as _getViewElementNameForListType, getViewElementIdForListType as _getViewElementIdForListType } from './list/utils/view.js';
15
23
  // ListProperties.
16
- export { default as ListProperties } from './listproperties.js';
17
- export { default as ListPropertiesEditing } from './listproperties/listpropertiesediting.js';
18
- export { default as ListPropertiesUtils } from './listproperties/listpropertiesutils.js';
19
- export { default as ListPropertiesUI } from './listproperties/listpropertiesui.js';
24
+ export { ListProperties } from './listproperties.js';
25
+ export { ListPropertiesEditing } from './listproperties/listpropertiesediting.js';
26
+ export { ListPropertiesUtils } from './listproperties/listpropertiesutils.js';
27
+ export { ListPropertiesUI } from './listproperties/listpropertiesui.js';
28
+ export { ListReversedCommand } from './listproperties/listreversedcommand.js';
29
+ export { ListStartCommand } from './listproperties/liststartcommand.js';
30
+ export { ListStyleCommand } from './listproperties/liststylecommand.js';
31
+ // Internal exports for 'listproperties' submodule
32
+ export { listPropertiesUpcastConverter as _listPropertiesUpcastConverter } from './listproperties/converters.js';
33
+ export { ListPropertiesView as _ListPropertiesView } from './listproperties/ui/listpropertiesview.js';
34
+ export { getNormalizedConfig as _getNormalizedListConfig } from './listproperties/utils/config.js';
35
+ export { getAllSupportedStyleTypes as _getAllSupportedListStyleTypes, getListTypeFromListStyleType as _getListTypeFromListStyleType, getListStyleTypeFromTypeAttribute as _getListStyleTypeFromTypeAttribute, getTypeAttributeFromListStyleType as _getTypeAttributeFromListStyleType, normalizeListStyle as _normalizeListStyle } from './listproperties/utils/style.js';
36
+ // ListFormatting.
37
+ export { ListFormatting } from './listformatting.js';
38
+ export { ListItemBoldIntegration } from './listformatting/listitemboldintegration.js';
39
+ export { ListItemItalicIntegration } from './listformatting/listitemitalicintegration.js';
40
+ export { ListItemFontSizeIntegration } from './listformatting/listitemfontsizeintegration.js';
41
+ export { ListItemFontColorIntegration } from './listformatting/listitemfontcolorintegration.js';
42
+ export { ListItemFontFamilyIntegration } from './listformatting/listitemfontfamilyintegration.js';
20
43
  // TodoList/
21
- export { default as TodoList } from './todolist.js';
22
- export { default as TodoListUI } from './todolist/todolistui.js';
23
- export { default as TodoListEditing } from './todolist/todolistediting.js';
44
+ export { TodoList } from './todolist.js';
45
+ export { TodoListUI } from './todolist/todolistui.js';
46
+ export { TodoListEditing } from './todolist/todolistediting.js';
47
+ export { CheckTodoListCommand } from './todolist/checktodolistcommand.js';
48
+ // Internal exports for 'todolist' submodule
49
+ export { TodoCheckboxChangeObserver as _TodoCheckboxChangeObserver } from './todolist/todocheckboxchangeobserver.js';
24
50
  // LegacyList.
25
- export { default as LegacyList } from './legacylist.js';
26
- export { default as LegacyListEditing } from './legacylist/legacylistediting.js';
27
- export { default as LegacyListUtils } from './legacylist/legacylistutils.js';
28
- export { default as LegacyIndentCommand } from './legacylist/legacyindentcommand.js';
51
+ export { LegacyList } from './legacylist.js';
52
+ export { LegacyListEditing } from './legacylist/legacylistediting.js';
53
+ export { LegacyListUtils } from './legacylist/legacylistutils.js';
54
+ export { LegacyIndentCommand } from './legacylist/legacyindentcommand.js';
55
+ export { LegacyListCommand } from './legacylist/legacylistcommand.js';
29
56
  // LegacyListProperties.
30
- export { default as LegacyListProperties } from './legacylistproperties.js';
31
- export { default as LegacyListPropertiesEditing } from './legacylistproperties/legacylistpropertiesediting.js';
57
+ export { LegacyListProperties } from './legacylistproperties.js';
58
+ export { LegacyListPropertiesEditing } from './legacylistproperties/legacylistpropertiesediting.js';
59
+ export { LegacyListReversedCommand } from './legacylistproperties/legacylistreversedcommand.js';
60
+ export { LegacyListStartCommand } from './legacylistproperties/legacyliststartcommand.js';
61
+ export { LegacyListStyleCommand } from './legacylistproperties/legacyliststylecommand.js';
32
62
  // LegacyTodoList.
33
- export { default as LegacyTodoList } from './legacytodolist.js';
34
- export { default as LegacyTodoListEditing } from './legacytodolist/legacytodolistediting.js';
35
- export { default as AdjacentListsSupport } from './list/adjacentlistssupport.js';
36
- export { default as DocumentList } from './documentlist.js';
37
- export { default as DocumentListProperties } from './documentlistproperties.js';
38
- export { default as TodoDocumentList } from './tododocumentlist.js';
63
+ export { LegacyTodoList } from './legacytodolist.js';
64
+ export { LegacyTodoListEditing } from './legacytodolist/legacytodolistediting.js';
65
+ export { LegacyCheckTodoListCommand } from './legacytodolist/legacychecktodolistcommand.js';
66
+ export { AdjacentListsSupport } from './list/adjacentlistssupport.js';
39
67
  import './augmentation.js';
@@ -0,0 +1,5 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2025, 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
+ export {};
@@ -0,0 +1,28 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2025, 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
+ /**
6
+ * @module list/legacyerrors
7
+ */
8
+ import { CKEditorError } from 'ckeditor5/src/utils.js';
9
+ if (false) {
10
+ /**
11
+ * The `DocumentList` plugin is obsolete. Use `List` instead.
12
+ *
13
+ * @error plugin-obsolete-documentlist
14
+ */
15
+ throw new CKEditorError('plugin-obsolete-documentlist', null);
16
+ /**
17
+ * The `DocumentListProperties` plugin is obsolete. Use `ListProperties` instead.
18
+ *
19
+ * @error plugin-obsolete-documentlistproperties
20
+ */
21
+ throw new CKEditorError('plugin-obsolete-documentlistproperties', null);
22
+ /**
23
+ * The `TodoDocumentList` plugin is obsolete. Use `TodoList` instead.
24
+ *
25
+ * @error plugin-obsolete-tododocumentlist
26
+ */
27
+ throw new CKEditorError('plugin-obsolete-tododocumentlist', null);
28
+ }
@@ -5,7 +5,7 @@
5
5
  /**
6
6
  * @module list/legacylist/legacyconverters
7
7
  */
8
- import { type DowncastAttributeEvent, type DowncastInsertEvent, type DowncastRemoveEvent, type Element, type MapperModelToViewPositionEvent, type MapperViewToModelPositionEvent, type Model, type ModelInsertContentEvent, type UpcastElementEvent, type EditingView, type Writer } from 'ckeditor5/src/engine.js';
8
+ import { type DowncastAttributeEvent, type DowncastInsertEvent, type DowncastRemoveEvent, type ModelElement, type MapperModelToViewPositionEvent, type MapperViewToModelPositionEvent, type Model, type ModelInsertContentEvent, type UpcastElementEvent, type EditingView, type ModelWriter } from 'ckeditor5/src/engine.js';
9
9
  import type { GetCallback } from 'ckeditor5/src/utils.js';
10
10
  /**
11
11
  * A model-to-view converter for the `listItem` model element insertion.
@@ -13,13 +13,15 @@ import type { GetCallback } from 'ckeditor5/src/utils.js';
13
13
  * It creates a `<ul><li></li><ul>` (or `<ol>`) view structure out of a `listItem` model element, inserts it at the correct
14
14
  * position, and merges the list with surrounding lists (if available).
15
15
  *
16
+ * @internal
16
17
  * @see module:engine/conversion/downcastdispatcher~DowncastDispatcher#event:insert
17
18
  * @param model Model instance.
18
19
  */
19
- export declare function modelViewInsertion(model: Model): GetCallback<DowncastInsertEvent<Element>>;
20
+ export declare function modelViewInsertion(model: Model): GetCallback<DowncastInsertEvent<ModelElement>>;
20
21
  /**
21
22
  * A model-to-view converter for the `listItem` model element removal.
22
23
  *
24
+ * @internal
23
25
  * @see module:engine/conversion/downcastdispatcher~DowncastDispatcher#event:remove
24
26
  * @param model Model instance.
25
27
  * @returns Returns a conversion callback.
@@ -35,23 +37,26 @@ export declare function modelViewRemove(model: Model): GetCallback<DowncastRemov
35
37
  * Splitting this conversion into 2 steps makes it possible to add an additional conversion in the middle.
36
38
  * Check {@link module:list/legacytodolist/legacytodolistconverters~modelViewChangeType} to see an example of it.
37
39
  *
40
+ * @internal
38
41
  * @see module:engine/conversion/downcastdispatcher~DowncastDispatcher#event:attribute
39
42
  */
40
- export declare const modelViewChangeType: GetCallback<DowncastAttributeEvent<Element>>;
43
+ export declare const modelViewChangeType: GetCallback<DowncastAttributeEvent<ModelElement>>;
41
44
  /**
42
45
  * A model-to-view converter that attempts to merge nodes split by {@link module:list/legacylist/legacyconverters~modelViewChangeType}.
43
46
  *
47
+ * @internal
44
48
  * @see module:engine/conversion/downcastdispatcher~DowncastDispatcher#event:attribute
45
49
  */
46
- export declare const modelViewMergeAfterChangeType: GetCallback<DowncastAttributeEvent<Element>>;
50
+ export declare const modelViewMergeAfterChangeType: GetCallback<DowncastAttributeEvent<ModelElement>>;
47
51
  /**
48
52
  * A model-to-view converter for the `listIndent` attribute change on the `listItem` model element.
49
53
  *
54
+ * @internal
50
55
  * @see module:engine/conversion/downcastdispatcher~DowncastDispatcher#event:attribute
51
56
  * @param model Model instance.
52
57
  * @returns Returns a conversion callback.
53
58
  */
54
- export declare function modelViewChangeIndent(model: Model): GetCallback<DowncastAttributeEvent<Element>>;
59
+ export declare function modelViewChangeIndent(model: Model): GetCallback<DowncastAttributeEvent<ModelElement>>;
55
60
  /**
56
61
  * A special model-to-view converter introduced by the {@link module:list/legacylist~LegacyList list feature}. This converter is fired for
57
62
  * insert change of every model item, and should be fired before the actual converter. The converter checks whether the inserted
@@ -73,9 +78,10 @@ export declare function modelViewChangeIndent(model: Model): GetCallback<Downcas
73
78
  * <listItem>bar</listItem> <ul><li>foo</li><p>xxx</p><li>bar</li></ul>
74
79
  * ```
75
80
  *
81
+ * @internal
76
82
  * @see module:engine/conversion/downcastdispatcher~DowncastDispatcher#event:insert
77
83
  */
78
- export declare const modelViewSplitOnInsert: GetCallback<DowncastInsertEvent<Element>>;
84
+ export declare const modelViewSplitOnInsert: GetCallback<DowncastInsertEvent<ModelElement>>;
79
85
  /**
80
86
  * A special model-to-view converter introduced by the {@link module:list/legacylist~LegacyList list feature}. This converter takes care of
81
87
  * merging view lists after something is removed or moved from near them.
@@ -95,6 +101,7 @@ export declare const modelViewSplitOnInsert: GetCallback<DowncastInsertEvent<Ele
95
101
  * </ul>
96
102
  * ```
97
103
  *
104
+ * @internal
98
105
  * @see module:engine/conversion/downcastdispatcher~DowncastDispatcher#event:remove
99
106
  */
100
107
  export declare const modelViewMergeAfter: GetCallback<DowncastRemoveEvent>;
@@ -105,6 +112,7 @@ export declare const modelViewMergeAfter: GetCallback<DowncastRemoveEvent>;
105
112
  * * checks `<li>`'s parent,
106
113
  * * stores and increases the `conversionApi.store.indent` value when `<li>`'s sub-items are converted.
107
114
  *
115
+ * @internal
108
116
  * @see module:engine/conversion/upcastdispatcher~UpcastDispatcher#event:element
109
117
  */
110
118
  export declare const viewModelConverter: GetCallback<UpcastElementEvent>;
@@ -113,12 +121,14 @@ export declare const viewModelConverter: GetCallback<UpcastElementEvent>;
113
121
  * This is mostly to clean whitespaces from between the `<li>` view elements inside the view list element, however, also
114
122
  * incorrect data can be cleared if the view was incorrect.
115
123
  *
124
+ * @internal
116
125
  * @see module:engine/conversion/upcastdispatcher~UpcastDispatcher#event:element
117
126
  */
118
127
  export declare const cleanList: GetCallback<UpcastElementEvent>;
119
128
  /**
120
129
  * A view-to-model converter for the `<li>` elements that cleans whitespace formatting from the input view.
121
130
  *
131
+ * @internal
122
132
  * @see module:engine/conversion/upcastdispatcher~UpcastDispatcher#event:element
123
133
  */
124
134
  export declare const cleanListItem: GetCallback<UpcastElementEvent>;
@@ -126,6 +136,8 @@ export declare const cleanListItem: GetCallback<UpcastElementEvent>;
126
136
  * Returns a callback for model position to view position mapping for {@link module:engine/conversion/mapper~Mapper}. The callback fixes
127
137
  * positions between the `listItem` elements that would be incorrectly mapped because of how list items are represented in the model
128
138
  * and in the view.
139
+ *
140
+ * @internal
129
141
  */
130
142
  export declare function modelToViewPosition(view: EditingView): GetCallback<MapperModelToViewPositionEvent>;
131
143
  /**
@@ -133,6 +145,7 @@ export declare function modelToViewPosition(view: EditingView): GetCallback<Mapp
133
145
  * positions between the `<li>` elements that would be incorrectly mapped because of how list items are represented in the model
134
146
  * and in the view.
135
147
  *
148
+ * @internal
136
149
  * @see module:engine/conversion/mapper~Mapper#event:viewToModelPosition
137
150
  * @param model Model instance.
138
151
  * @returns Returns a conversion callback.
@@ -164,11 +177,12 @@ export declare function viewToModelPosition(model: Model): GetCallback<MapperVie
164
177
  * <listItem listType="bulleted" listIndent=1>Item 3</listItem> <--- note that indent got post-fixed.
165
178
  * ```
166
179
  *
180
+ * @internal
167
181
  * @param model The data model.
168
182
  * @param writer The writer to do changes with.
169
183
  * @returns `true` if any change has been applied, `false` otherwise.
170
184
  */
171
- export declare function modelChangePostFixer(model: Model, writer: Writer): boolean;
185
+ export declare function modelChangePostFixer(model: Model, writer: ModelWriter): boolean;
172
186
  /**
173
187
  * A fixer for pasted content that includes list items.
174
188
  *
@@ -192,5 +206,7 @@ export declare function modelChangePostFixer(model: Model, writer: Writer): bool
192
206
  * <listItem listType="bulleted" listIndent=2>Y/listItem>
193
207
  * <listItem listType="bulleted" listIndent=2>C</listItem>
194
208
  * ```
209
+ *
210
+ * @internal
195
211
  */
196
212
  export declare const modelIndentPasteFixer: GetCallback<ModelInsertContentEvent>;
@@ -5,7 +5,7 @@
5
5
  /**
6
6
  * @module list/legacylist/legacyconverters
7
7
  */
8
- import { TreeWalker } from 'ckeditor5/src/engine.js';
8
+ import { ModelTreeWalker } from 'ckeditor5/src/engine.js';
9
9
  import { generateLiInUl, injectViewList, mergeViewLists, getSiblingListItem, positionAfterUiElements } from './legacyutils.js';
10
10
  /**
11
11
  * A model-to-view converter for the `listItem` model element insertion.
@@ -13,6 +13,7 @@ import { generateLiInUl, injectViewList, mergeViewLists, getSiblingListItem, pos
13
13
  * It creates a `<ul><li></li><ul>` (or `<ol>`) view structure out of a `listItem` model element, inserts it at the correct
14
14
  * position, and merges the list with surrounding lists (if available).
15
15
  *
16
+ * @internal
16
17
  * @see module:engine/conversion/downcastdispatcher~DowncastDispatcher#event:insert
17
18
  * @param model Model instance.
18
19
  */
@@ -35,6 +36,7 @@ export function modelViewInsertion(model) {
35
36
  /**
36
37
  * A model-to-view converter for the `listItem` model element removal.
37
38
  *
39
+ * @internal
38
40
  * @see module:engine/conversion/downcastdispatcher~DowncastDispatcher#event:remove
39
41
  * @param model Model instance.
40
42
  * @returns Returns a conversion callback.
@@ -78,6 +80,7 @@ export function modelViewRemove(model) {
78
80
  * Splitting this conversion into 2 steps makes it possible to add an additional conversion in the middle.
79
81
  * Check {@link module:list/legacytodolist/legacytodolistconverters~modelViewChangeType} to see an example of it.
80
82
  *
83
+ * @internal
81
84
  * @see module:engine/conversion/downcastdispatcher~DowncastDispatcher#event:attribute
82
85
  */
83
86
  export const modelViewChangeType = (evt, data, conversionApi) => {
@@ -99,6 +102,7 @@ export const modelViewChangeType = (evt, data, conversionApi) => {
99
102
  /**
100
103
  * A model-to-view converter that attempts to merge nodes split by {@link module:list/legacylist/legacyconverters~modelViewChangeType}.
101
104
  *
105
+ * @internal
102
106
  * @see module:engine/conversion/downcastdispatcher~DowncastDispatcher#event:attribute
103
107
  */
104
108
  export const modelViewMergeAfterChangeType = (evt, data, conversionApi) => {
@@ -113,6 +117,7 @@ export const modelViewMergeAfterChangeType = (evt, data, conversionApi) => {
113
117
  /**
114
118
  * A model-to-view converter for the `listIndent` attribute change on the `listItem` model element.
115
119
  *
120
+ * @internal
116
121
  * @see module:engine/conversion/downcastdispatcher~DowncastDispatcher#event:attribute
117
122
  * @param model Model instance.
118
123
  * @returns Returns a conversion callback.
@@ -167,6 +172,7 @@ export function modelViewChangeIndent(model) {
167
172
  * <listItem>bar</listItem> <ul><li>foo</li><p>xxx</p><li>bar</li></ul>
168
173
  * ```
169
174
  *
175
+ * @internal
170
176
  * @see module:engine/conversion/downcastdispatcher~DowncastDispatcher#event:insert
171
177
  */
172
178
  export const modelViewSplitOnInsert = (evt, data, conversionApi) => {
@@ -279,6 +285,7 @@ export const modelViewSplitOnInsert = (evt, data, conversionApi) => {
279
285
  * </ul>
280
286
  * ```
281
287
  *
288
+ * @internal
282
289
  * @see module:engine/conversion/downcastdispatcher~DowncastDispatcher#event:remove
283
290
  */
284
291
  export const modelViewMergeAfter = (evt, data, conversionApi) => {
@@ -297,6 +304,7 @@ export const modelViewMergeAfter = (evt, data, conversionApi) => {
297
304
  * * checks `<li>`'s parent,
298
305
  * * stores and increases the `conversionApi.store.indent` value when `<li>`'s sub-items are converted.
299
306
  *
307
+ * @internal
300
308
  * @see module:engine/conversion/upcastdispatcher~UpcastDispatcher#event:element
301
309
  */
302
310
  export const viewModelConverter = (evt, data, conversionApi) => {
@@ -324,6 +332,7 @@ export const viewModelConverter = (evt, data, conversionApi) => {
324
332
  * This is mostly to clean whitespaces from between the `<li>` view elements inside the view list element, however, also
325
333
  * incorrect data can be cleared if the view was incorrect.
326
334
  *
335
+ * @internal
327
336
  * @see module:engine/conversion/upcastdispatcher~UpcastDispatcher#event:element
328
337
  */
329
338
  export const cleanList = (evt, data, conversionApi) => {
@@ -341,6 +350,7 @@ export const cleanList = (evt, data, conversionApi) => {
341
350
  /**
342
351
  * A view-to-model converter for the `<li>` elements that cleans whitespace formatting from the input view.
343
352
  *
353
+ * @internal
344
354
  * @see module:engine/conversion/upcastdispatcher~UpcastDispatcher#event:element
345
355
  */
346
356
  export const cleanListItem = (evt, data, conversionApi) => {
@@ -365,6 +375,8 @@ export const cleanListItem = (evt, data, conversionApi) => {
365
375
  * Returns a callback for model position to view position mapping for {@link module:engine/conversion/mapper~Mapper}. The callback fixes
366
376
  * positions between the `listItem` elements that would be incorrectly mapped because of how list items are represented in the model
367
377
  * and in the view.
378
+ *
379
+ * @internal
368
380
  */
369
381
  export function modelToViewPosition(view) {
370
382
  return (evt, data) => {
@@ -394,6 +406,7 @@ export function modelToViewPosition(view) {
394
406
  * positions between the `<li>` elements that would be incorrectly mapped because of how list items are represented in the model
395
407
  * and in the view.
396
408
  *
409
+ * @internal
397
410
  * @see module:engine/conversion/mapper~Mapper#event:viewToModelPosition
398
411
  * @param model Model instance.
399
412
  * @returns Returns a conversion callback.
@@ -468,6 +481,7 @@ export function viewToModelPosition(model) {
468
481
  * <listItem listType="bulleted" listIndent=1>Item 3</listItem> <--- note that indent got post-fixed.
469
482
  * ```
470
483
  *
484
+ * @internal
471
485
  * @param model The data model.
472
486
  * @param writer The writer to do changes with.
473
487
  * @returns `true` if any change has been applied, `false` otherwise.
@@ -625,6 +639,8 @@ export function modelChangePostFixer(model, writer) {
625
639
  * <listItem listType="bulleted" listIndent=2>Y/listItem>
626
640
  * <listItem listType="bulleted" listIndent=2>C</listItem>
627
641
  * ```
642
+ *
643
+ * @internal
628
644
  */
629
645
  export const modelIndentPasteFixer = function (evt, [content, selectable]) {
630
646
  const model = this;
@@ -743,7 +759,7 @@ function viewToModelListItemChildrenConverter(listItemModel, viewChildren, conve
743
759
  * Helper function that seeks for a next list item starting from given `startPosition`.
744
760
  */
745
761
  function findNextListItem(startPosition) {
746
- const treeWalker = new TreeWalker({ startPosition });
762
+ const treeWalker = new ModelTreeWalker({ startPosition });
747
763
  let value;
748
764
  do {
749
765
  value = treeWalker.next();
@@ -6,7 +6,7 @@ import { Command, type Editor } from 'ckeditor5/src/core.js';
6
6
  /**
7
7
  * The list indent command. It is used by the {@link module:list/legacylist~LegacyList legacy list feature}.
8
8
  */
9
- export default class LegacyIndentCommand extends Command {
9
+ export declare class LegacyIndentCommand extends Command {
10
10
  /**
11
11
  * Determines by how much the command will change the list item's indent attribute.
12
12
  */
@@ -7,7 +7,7 @@ import { first } from 'ckeditor5/src/utils.js';
7
7
  /**
8
8
  * The list indent command. It is used by the {@link module:list/legacylist~LegacyList legacy list feature}.
9
9
  */
10
- export default class LegacyIndentCommand extends Command {
10
+ export class LegacyIndentCommand extends Command {
11
11
  /**
12
12
  * Determines by how much the command will change the list item's indent attribute.
13
13
  */
@@ -7,7 +7,7 @@ import { type ListType } from '../list/listediting.js';
7
7
  /**
8
8
  * The list command. It is used by the {@link module:list/legacylist~LegacyList legacy list feature}.
9
9
  */
10
- export default class LegacyListCommand extends Command {
10
+ export declare class LegacyListCommand extends Command {
11
11
  /**
12
12
  * The type of the list created by the command.
13
13
  */
@@ -7,7 +7,7 @@ import { first } from 'ckeditor5/src/utils.js';
7
7
  /**
8
8
  * The list command. It is used by the {@link module:list/legacylist~LegacyList legacy list feature}.
9
9
  */
10
- export default class LegacyListCommand extends Command {
10
+ export class LegacyListCommand extends Command {
11
11
  /**
12
12
  * The type of the list created by the command.
13
13
  */