@ckeditor/ckeditor5-list 38.2.0-alpha.1 → 39.0.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 (87) hide show
  1. package/README.md +0 -1
  2. package/package.json +3 -4
  3. package/src/augmentation.d.ts +1 -1
  4. package/src/documentlist/adjacentlistssupport.d.ts +1 -1
  5. package/src/documentlist/adjacentlistssupport.js +1 -1
  6. package/src/documentlist/converters.d.ts +4 -4
  7. package/src/documentlist/converters.js +5 -5
  8. package/src/documentlist/documentlistcommand.d.ts +2 -2
  9. package/src/documentlist/documentlistcommand.js +2 -2
  10. package/src/documentlist/documentlistediting.d.ts +6 -6
  11. package/src/documentlist/documentlistediting.js +14 -14
  12. package/src/documentlist/documentlistindentcommand.d.ts +2 -2
  13. package/src/documentlist/documentlistindentcommand.js +3 -3
  14. package/src/documentlist/documentlistmergecommand.d.ts +2 -2
  15. package/src/documentlist/documentlistmergecommand.js +3 -3
  16. package/src/documentlist/documentlistsplitcommand.d.ts +2 -2
  17. package/src/documentlist/documentlistsplitcommand.js +2 -2
  18. package/src/documentlist/documentlistutils.d.ts +3 -3
  19. package/src/documentlist/documentlistutils.js +2 -2
  20. package/src/documentlist/utils/listwalker.d.ts +3 -3
  21. package/src/documentlist/utils/listwalker.js +2 -2
  22. package/src/documentlist/utils/model.d.ts +2 -2
  23. package/src/documentlist/utils/model.js +2 -2
  24. package/src/documentlist/utils/postfixers.d.ts +3 -3
  25. package/src/documentlist/utils/postfixers.js +2 -2
  26. package/src/documentlist/utils/view.d.ts +1 -1
  27. package/src/documentlist.d.ts +3 -3
  28. package/src/documentlist.js +3 -3
  29. package/src/documentlistproperties/converters.d.ts +3 -3
  30. package/src/documentlistproperties/documentlistpropertiesediting.d.ts +4 -4
  31. package/src/documentlistproperties/documentlistpropertiesediting.js +8 -8
  32. package/src/documentlistproperties/documentlistpropertiesutils.d.ts +1 -1
  33. package/src/documentlistproperties/documentlistpropertiesutils.js +2 -2
  34. package/src/documentlistproperties/documentlistreversedcommand.d.ts +1 -1
  35. package/src/documentlistproperties/documentlistreversedcommand.js +3 -3
  36. package/src/documentlistproperties/documentliststartcommand.d.ts +1 -1
  37. package/src/documentlistproperties/documentliststartcommand.js +3 -3
  38. package/src/documentlistproperties/documentliststylecommand.d.ts +1 -1
  39. package/src/documentlistproperties/documentliststylecommand.js +4 -4
  40. package/src/documentlistproperties.d.ts +3 -3
  41. package/src/documentlistproperties.js +3 -3
  42. package/src/index.d.ts +33 -33
  43. package/src/index.js +20 -20
  44. package/src/list/converters.d.ts +2 -2
  45. package/src/list/converters.js +2 -2
  46. package/src/list/indentcommand.d.ts +1 -1
  47. package/src/list/indentcommand.js +2 -2
  48. package/src/list/listcommand.d.ts +1 -1
  49. package/src/list/listcommand.js +2 -2
  50. package/src/list/listediting.d.ts +4 -4
  51. package/src/list/listediting.js +7 -7
  52. package/src/list/listui.d.ts +1 -1
  53. package/src/list/listui.js +2 -2
  54. package/src/list/listutils.d.ts +2 -2
  55. package/src/list/listutils.js +2 -2
  56. package/src/list/utils.d.ts +2 -2
  57. package/src/list/utils.js +2 -2
  58. package/src/list.d.ts +3 -3
  59. package/src/list.js +3 -3
  60. package/src/listproperties/listpropertiesediting.d.ts +2 -2
  61. package/src/listproperties/listpropertiesediting.js +6 -6
  62. package/src/listproperties/listpropertiesui.d.ts +1 -1
  63. package/src/listproperties/listpropertiesui.js +3 -3
  64. package/src/listproperties/listreversedcommand.d.ts +1 -1
  65. package/src/listproperties/listreversedcommand.js +2 -2
  66. package/src/listproperties/liststartcommand.d.ts +1 -1
  67. package/src/listproperties/liststartcommand.js +2 -2
  68. package/src/listproperties/liststylecommand.d.ts +1 -1
  69. package/src/listproperties/liststylecommand.js +2 -2
  70. package/src/listproperties/ui/collapsibleview.d.ts +2 -2
  71. package/src/listproperties/ui/collapsibleview.js +1 -1
  72. package/src/listproperties/ui/listpropertiesview.d.ts +4 -4
  73. package/src/listproperties/ui/listpropertiesview.js +3 -3
  74. package/src/listproperties.d.ts +3 -3
  75. package/src/listproperties.js +3 -3
  76. package/src/liststyle.d.ts +2 -2
  77. package/src/liststyle.js +3 -3
  78. package/src/todolist/checktodolistcommand.d.ts +2 -2
  79. package/src/todolist/checktodolistcommand.js +1 -1
  80. package/src/todolist/todolistconverters.d.ts +2 -2
  81. package/src/todolist/todolistconverters.js +2 -2
  82. package/src/todolist/todolistediting.d.ts +2 -2
  83. package/src/todolist/todolistediting.js +6 -6
  84. package/src/todolist/todolistui.d.ts +1 -1
  85. package/src/todolist/todolistui.js +2 -2
  86. package/src/todolist.d.ts +3 -3
  87. package/src/todolist.js +3 -3
package/README.md CHANGED
@@ -4,7 +4,6 @@ CKEditor 5 list feature
4
4
  [![npm version](https://badge.fury.io/js/%40ckeditor%2Fckeditor5-list.svg)](https://www.npmjs.com/package/@ckeditor/ckeditor5-list)
5
5
  [![Coverage Status](https://coveralls.io/repos/github/ckeditor/ckeditor5/badge.svg?branch=master)](https://coveralls.io/github/ckeditor/ckeditor5?branch=master)
6
6
  [![Build Status](https://travis-ci.com/ckeditor/ckeditor5.svg?branch=master)](https://app.travis-ci.com/github/ckeditor/ckeditor5)
7
- ![Dependency Status](https://img.shields.io/librariesio/release/npm/@ckeditor/ckeditor5-list)
8
7
 
9
8
  This package implements bulleted, numbered and to-do list feature for CKEditor 5.
10
9
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-list",
3
- "version": "38.2.0-alpha.1",
3
+ "version": "39.0.0",
4
4
  "description": "Ordered and unordered lists feature to CKEditor 5.",
5
5
  "keywords": [
6
6
  "ckeditor",
@@ -11,10 +11,9 @@
11
11
  "ckeditor5-dll"
12
12
  ],
13
13
  "main": "src/index.js",
14
- "type": "module",
15
14
  "dependencies": {
16
- "ckeditor5": "38.2.0-alpha.1",
17
- "@ckeditor/ckeditor5-ui": "38.2.0-alpha.1"
15
+ "ckeditor5": "39.0.0",
16
+ "@ckeditor/ckeditor5-ui": "39.0.0"
18
17
  },
19
18
  "engines": {
20
19
  "node": ">=16.0.0",
@@ -2,7 +2,7 @@
2
2
  * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
4
  */
5
- import type { DocumentList, DocumentListEditing, DocumentListProperties, DocumentListPropertiesEditing, DocumentListPropertiesUtils, AdjacentListsSupport, DocumentListUtils, ListConfig, List, ListEditing, ListProperties, ListPropertiesEditing, ListPropertiesUI, ListStyle, ListUI, ListUtils, TodoList, TodoListEditing, TodoListUI, ListCommand, DocumentListCommand, IndentCommand, DocumentListIndentCommand, DocumentListMergeCommand, DocumentListSplitCommand, ListStyleCommand, DocumentListStyleCommand, ListStartCommand, DocumentListStartCommand, ListReversedCommand, DocumentListReversedCommand, CheckTodoListCommand } from './index.js';
5
+ import type { DocumentList, DocumentListEditing, DocumentListProperties, DocumentListPropertiesEditing, DocumentListPropertiesUtils, AdjacentListsSupport, DocumentListUtils, ListConfig, List, ListEditing, ListProperties, ListPropertiesEditing, ListPropertiesUI, ListStyle, ListUI, ListUtils, TodoList, TodoListEditing, TodoListUI, ListCommand, DocumentListCommand, IndentCommand, DocumentListIndentCommand, DocumentListMergeCommand, DocumentListSplitCommand, ListStyleCommand, DocumentListStyleCommand, ListStartCommand, DocumentListStartCommand, ListReversedCommand, DocumentListReversedCommand, CheckTodoListCommand } from '.';
6
6
  declare module '@ckeditor/ckeditor5-core' {
7
7
  interface EditorConfig {
8
8
  /**
@@ -2,7 +2,7 @@
2
2
  * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
4
  */
5
- import { Plugin } from 'ckeditor5/src/core.js';
5
+ import { Plugin } from 'ckeditor5/src/core';
6
6
  export default class AdjacentListsSupport extends Plugin {
7
7
  /**
8
8
  * @inheritDoc
@@ -2,7 +2,7 @@
2
2
  * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
4
  */
5
- import { Plugin } from 'ckeditor5/src/core.js';
5
+ import { Plugin } from 'ckeditor5/src/core';
6
6
  export default class AdjacentListsSupport extends Plugin {
7
7
  /**
8
8
  * @inheritDoc
@@ -5,10 +5,10 @@
5
5
  /**
6
6
  * @module list/documentlist/converters
7
7
  */
8
- import { type DowncastAttributeEvent, type EditingController, type Element, type ElementCreatorFunction, type Mapper, type Model, type UpcastElementEvent, type ViewElement } from 'ckeditor5/src/engine.js';
9
- import type { GetCallback } from 'ckeditor5/src/utils.js';
10
- import { type ListElement } from './utils/model.js';
11
- import type { default as DocumentListEditing, DowncastStrategy } from './documentlistediting.js';
8
+ import { type DowncastAttributeEvent, type EditingController, type Element, type ElementCreatorFunction, type Mapper, type Model, type UpcastElementEvent, type ViewElement } from 'ckeditor5/src/engine';
9
+ import type { GetCallback } from 'ckeditor5/src/utils';
10
+ import { type ListElement } from './utils/model';
11
+ import type { default as DocumentListEditing, DowncastStrategy } from './documentlistediting';
12
12
  /**
13
13
  * Returns the upcast converter for list items. It's supposed to work after the block converters (content inside list items) are converted.
14
14
  *
@@ -5,11 +5,11 @@
5
5
  /**
6
6
  * @module list/documentlist/converters
7
7
  */
8
- import { UpcastWriter } from 'ckeditor5/src/engine.js';
9
- import { getAllListItemBlocks, getListItemBlocks, isListItemBlock, ListItemUid } from './utils/model.js';
10
- import { createListElement, createListItemElement, getIndent, isListView, isListItemView } from './utils/view.js';
11
- import ListWalker, { iterateSiblingListBlocks } from './utils/listwalker.js';
12
- import { findAndAddListHeadToMap } from './utils/postfixers.js';
8
+ import { UpcastWriter } from 'ckeditor5/src/engine';
9
+ import { getAllListItemBlocks, getListItemBlocks, isListItemBlock, ListItemUid } from './utils/model';
10
+ import { createListElement, createListItemElement, getIndent, isListView, isListItemView } from './utils/view';
11
+ import ListWalker, { iterateSiblingListBlocks } from './utils/listwalker';
12
+ import { findAndAddListHeadToMap } from './utils/postfixers';
13
13
  /**
14
14
  * Returns the upcast converter for list items. It's supposed to work after the block converters (content inside list items) are converted.
15
15
  *
@@ -5,8 +5,8 @@
5
5
  /**
6
6
  * @module list/documentlist/documentlistcommand
7
7
  */
8
- import type { Element } from 'ckeditor5/src/engine.js';
9
- import { Command, type Editor } from 'ckeditor5/src/core.js';
8
+ import type { Element } from 'ckeditor5/src/engine';
9
+ import { Command, type Editor } from 'ckeditor5/src/core';
10
10
  /**
11
11
  * The list command. It is used by the {@link module:list/documentlist~DocumentList document list feature}.
12
12
  */
@@ -2,8 +2,8 @@
2
2
  * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
4
  */
5
- import { Command } from 'ckeditor5/src/core.js';
6
- import { splitListItemBefore, expandListBlocksToCompleteItems, getListItemBlocks, getListItems, removeListAttributes, outdentFollowingItems, ListItemUid, sortBlocks, getSelectedBlockObject, isListItemBlock } from './utils/model.js';
5
+ import { Command } from 'ckeditor5/src/core';
6
+ import { splitListItemBefore, expandListBlocksToCompleteItems, getListItemBlocks, getListItems, removeListAttributes, outdentFollowingItems, ListItemUid, sortBlocks, getSelectedBlockObject, isListItemBlock } from './utils/model';
7
7
  /**
8
8
  * The list command. It is used by the {@link module:list/documentlist~DocumentList document list feature}.
9
9
  */
@@ -5,12 +5,12 @@
5
5
  /**
6
6
  * @module list/documentlist/documentlistediting
7
7
  */
8
- import { Plugin } from 'ckeditor5/src/core.js';
9
- import type { DowncastWriter, Element, ViewElement, Writer } from 'ckeditor5/src/engine.js';
10
- import { Delete } from 'ckeditor5/src/typing.js';
11
- import { Enter } from 'ckeditor5/src/enter.js';
12
- import DocumentListUtils from './documentlistutils.js';
13
- import { ListBlocksIterable } from './utils/listwalker.js';
8
+ import { Plugin } from 'ckeditor5/src/core';
9
+ import type { DowncastWriter, Element, ViewElement, Writer } from 'ckeditor5/src/engine';
10
+ import { Delete } from 'ckeditor5/src/typing';
11
+ import { Enter } from 'ckeditor5/src/enter';
12
+ import DocumentListUtils from './documentlistutils';
13
+ import { ListBlocksIterable } from './utils/listwalker';
14
14
  import '../../theme/documentlist.css';
15
15
  import '../../theme/list.css';
16
16
  /**
@@ -5,20 +5,20 @@
5
5
  /**
6
6
  * @module list/documentlist/documentlistediting
7
7
  */
8
- import { Plugin } from 'ckeditor5/src/core.js';
9
- import { Delete } from 'ckeditor5/src/typing.js';
10
- import { Enter } from 'ckeditor5/src/enter.js';
11
- import { CKEditorError } from 'ckeditor5/src/utils.js';
12
- import DocumentListIndentCommand from './documentlistindentcommand.js';
13
- import DocumentListCommand from './documentlistcommand.js';
14
- import DocumentListMergeCommand from './documentlistmergecommand.js';
15
- import DocumentListSplitCommand from './documentlistsplitcommand.js';
16
- import DocumentListUtils from './documentlistutils.js';
17
- import { bogusParagraphCreator, listItemDowncastConverter, listItemUpcastConverter, listUpcastCleanList, reconvertItemsOnDataChange } from './converters.js';
18
- import { findAndAddListHeadToMap, fixListIndents, fixListItemIds } from './utils/postfixers.js';
19
- import { getAllListItemBlocks, isFirstBlockOfListItem, isLastBlockOfListItem, isSingleListItem, getSelectedBlockObject, isListItemBlock, removeListAttributes } from './utils/model.js';
20
- import { getViewElementIdForListType, getViewElementNameForListType } from './utils/view.js';
21
- import ListWalker, { iterateSiblingListBlocks, ListBlocksIterable } from './utils/listwalker.js';
8
+ import { Plugin } from 'ckeditor5/src/core';
9
+ import { Delete } from 'ckeditor5/src/typing';
10
+ import { Enter } from 'ckeditor5/src/enter';
11
+ import { CKEditorError } from 'ckeditor5/src/utils';
12
+ import DocumentListIndentCommand from './documentlistindentcommand';
13
+ import DocumentListCommand from './documentlistcommand';
14
+ import DocumentListMergeCommand from './documentlistmergecommand';
15
+ import DocumentListSplitCommand from './documentlistsplitcommand';
16
+ import DocumentListUtils from './documentlistutils';
17
+ import { bogusParagraphCreator, listItemDowncastConverter, listItemUpcastConverter, listUpcastCleanList, reconvertItemsOnDataChange } from './converters';
18
+ import { findAndAddListHeadToMap, fixListIndents, fixListItemIds } from './utils/postfixers';
19
+ import { getAllListItemBlocks, isFirstBlockOfListItem, isLastBlockOfListItem, isSingleListItem, getSelectedBlockObject, isListItemBlock, removeListAttributes } from './utils/model';
20
+ import { getViewElementIdForListType, getViewElementNameForListType } from './utils/view';
21
+ import ListWalker, { iterateSiblingListBlocks, ListBlocksIterable } from './utils/listwalker';
22
22
  import '../../theme/documentlist.css';
23
23
  import '../../theme/list.css';
24
24
  /**
@@ -5,8 +5,8 @@
5
5
  /**
6
6
  * @module list/documentlist/documentlistindentcommand
7
7
  */
8
- import { Command, type Editor } from 'ckeditor5/src/core.js';
9
- import type { Element } from 'ckeditor5/src/engine.js';
8
+ import { Command, type Editor } from 'ckeditor5/src/core';
9
+ import type { Element } from 'ckeditor5/src/engine';
10
10
  /**
11
11
  * The document list indent command. It is used by the {@link module:list/documentlist~DocumentList list feature}.
12
12
  */
@@ -5,9 +5,9 @@
5
5
  /**
6
6
  * @module list/documentlist/documentlistindentcommand
7
7
  */
8
- import { Command } from 'ckeditor5/src/core.js';
9
- import { expandListBlocksToCompleteItems, indentBlocks, isFirstBlockOfListItem, isListItemBlock, isSingleListItem, outdentBlocksWithMerge, sortBlocks, splitListItemBefore } from './utils/model.js';
10
- import ListWalker from './utils/listwalker.js';
8
+ import { Command } from 'ckeditor5/src/core';
9
+ import { expandListBlocksToCompleteItems, indentBlocks, isFirstBlockOfListItem, isListItemBlock, isSingleListItem, outdentBlocksWithMerge, sortBlocks, splitListItemBefore } from './utils/model';
10
+ import ListWalker from './utils/listwalker';
11
11
  /**
12
12
  * The document list indent command. It is used by the {@link module:list/documentlist~DocumentList list feature}.
13
13
  */
@@ -5,8 +5,8 @@
5
5
  /**
6
6
  * @module list/documentlist/documentlistmergecommand
7
7
  */
8
- import { Command, type Editor } from 'ckeditor5/src/core.js';
9
- import type { Element } from 'ckeditor5/src/engine.js';
8
+ import { Command, type Editor } from 'ckeditor5/src/core';
9
+ import type { Element } from 'ckeditor5/src/engine';
10
10
  /**
11
11
  * The document list merge command. It is used by the {@link module:list/documentlist~DocumentList list feature}.
12
12
  */
@@ -5,9 +5,9 @@
5
5
  /**
6
6
  * @module list/documentlist/documentlistmergecommand
7
7
  */
8
- import { Command } from 'ckeditor5/src/core.js';
9
- import { getNestedListBlocks, indentBlocks, sortBlocks, isFirstBlockOfListItem, mergeListItemBefore, isSingleListItem, getSelectedBlockObject, isListItemBlock } from './utils/model.js';
10
- import ListWalker from './utils/listwalker.js';
8
+ import { Command } from 'ckeditor5/src/core';
9
+ import { getNestedListBlocks, indentBlocks, sortBlocks, isFirstBlockOfListItem, mergeListItemBefore, isSingleListItem, getSelectedBlockObject, isListItemBlock } from './utils/model';
10
+ import ListWalker from './utils/listwalker';
11
11
  /**
12
12
  * The document list merge command. It is used by the {@link module:list/documentlist~DocumentList list feature}.
13
13
  */
@@ -5,8 +5,8 @@
5
5
  /**
6
6
  * @module list/documentlist/documentlistsplitcommand
7
7
  */
8
- import type { Element } from 'ckeditor5/src/engine.js';
9
- import { Command, type Editor } from 'ckeditor5/src/core.js';
8
+ import type { Element } from 'ckeditor5/src/engine';
9
+ import { Command, type Editor } from 'ckeditor5/src/core';
10
10
  /**
11
11
  * The document list split command that splits the list item at the selection.
12
12
  *
@@ -2,8 +2,8 @@
2
2
  * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
4
  */
5
- import { Command } from 'ckeditor5/src/core.js';
6
- import { isFirstBlockOfListItem, isListItemBlock, sortBlocks, splitListItemBefore } from './utils/model.js';
5
+ import { Command } from 'ckeditor5/src/core';
6
+ import { isFirstBlockOfListItem, isListItemBlock, sortBlocks, splitListItemBefore } from './utils/model';
7
7
  /**
8
8
  * The document list split command that splits the list item at the selection.
9
9
  *
@@ -5,9 +5,9 @@
5
5
  /**
6
6
  * @module list/documentlist/documentlistutils
7
7
  */
8
- import type { Element, Node } from 'ckeditor5/src/engine.js';
9
- import type { ArrayOrItem } from 'ckeditor5/src/utils.js';
10
- import { Plugin } from 'ckeditor5/src/core.js';
8
+ import type { Element, Node } from 'ckeditor5/src/engine';
9
+ import type { ArrayOrItem } from 'ckeditor5/src/utils';
10
+ import { Plugin } from 'ckeditor5/src/core';
11
11
  /**
12
12
  * A set of helpers related to document lists.
13
13
  */
@@ -2,8 +2,8 @@
2
2
  * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
4
  */
5
- import { Plugin } from 'ckeditor5/src/core.js';
6
- import { expandListBlocksToCompleteItems, expandListBlocksToCompleteList, isFirstBlockOfListItem, isListItemBlock } from './utils/model.js';
5
+ import { Plugin } from 'ckeditor5/src/core';
6
+ import { expandListBlocksToCompleteItems, expandListBlocksToCompleteList, isFirstBlockOfListItem, isListItemBlock } from './utils/model';
7
7
  /**
8
8
  * A set of helpers related to document lists.
9
9
  */
@@ -5,9 +5,9 @@
5
5
  /**
6
6
  * @module list/documentlist/utils/listwalker
7
7
  */
8
- import { type ArrayOrItem } from 'ckeditor5/src/utils.js';
9
- import { type ListElement } from './model.js';
10
- import type { Element, Node } from 'ckeditor5/src/engine.js';
8
+ import { type ArrayOrItem } from 'ckeditor5/src/utils';
9
+ import { type ListElement } from './model';
10
+ import type { Element, Node } from 'ckeditor5/src/engine';
11
11
  /**
12
12
  * Document list blocks iterator.
13
13
  */
@@ -5,8 +5,8 @@
5
5
  /**
6
6
  * @module list/documentlist/utils/listwalker
7
7
  */
8
- import { first, toArray } from 'ckeditor5/src/utils.js';
9
- import { isListItemBlock } from './model.js';
8
+ import { first, toArray } from 'ckeditor5/src/utils';
9
+ import { isListItemBlock } from './model';
10
10
  /**
11
11
  * Document list blocks iterator.
12
12
  */
@@ -5,8 +5,8 @@
5
5
  /**
6
6
  * @module list/documentlist/utils/model
7
7
  */
8
- import type { DocumentFragment, Element, Model, Node, Writer, Item } from 'ckeditor5/src/engine.js';
9
- import { type ArrayOrItem } from 'ckeditor5/src/utils.js';
8
+ import type { DocumentFragment, Element, Model, Node, Writer, Item } from 'ckeditor5/src/engine';
9
+ import { type ArrayOrItem } from 'ckeditor5/src/utils';
10
10
  /**
11
11
  * The list item ID generator.
12
12
  *
@@ -2,8 +2,8 @@
2
2
  * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
4
  */
5
- import { uid, toArray } from 'ckeditor5/src/utils.js';
6
- import ListWalker, { iterateSiblingListBlocks } from './listwalker.js';
5
+ import { uid, toArray } from 'ckeditor5/src/utils';
6
+ import ListWalker, { iterateSiblingListBlocks } from './listwalker';
7
7
  /**
8
8
  * The list item ID generator.
9
9
  *
@@ -5,9 +5,9 @@
5
5
  /**
6
6
  * @module list/documentlist/utils/postfixers
7
7
  */
8
- import type { Position, Writer } from 'ckeditor5/src/engine.js';
9
- import { type ListIteratorValue } from './listwalker.js';
10
- import { type ListElement } from './model.js';
8
+ import type { Position, Writer } from 'ckeditor5/src/engine';
9
+ import { type ListIteratorValue } from './listwalker';
10
+ import { type ListElement } from './model';
11
11
  /**
12
12
  * Based on the provided positions looks for the list head and stores it in the provided map.
13
13
  *
@@ -2,8 +2,8 @@
2
2
  * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
4
  */
5
- import { iterateSiblingListBlocks } from './listwalker.js';
6
- import { getListItemBlocks, isListItemBlock, ListItemUid } from './model.js';
5
+ import { iterateSiblingListBlocks } from './listwalker';
6
+ import { getListItemBlocks, isListItemBlock, ListItemUid } from './model';
7
7
  /**
8
8
  * Based on the provided positions looks for the list head and stores it in the provided map.
9
9
  *
@@ -5,7 +5,7 @@
5
5
  /**
6
6
  * @module list/documentlist/utils/view
7
7
  */
8
- import type { DowncastWriter, ViewAttributeElement, ViewDocumentFragment, ViewElement, ViewNode } from 'ckeditor5/src/engine.js';
8
+ import type { DowncastWriter, ViewAttributeElement, ViewDocumentFragment, ViewElement, ViewNode } from 'ckeditor5/src/engine';
9
9
  /**
10
10
  * Checks if view element is a list type (ul or ol).
11
11
  *
@@ -5,9 +5,9 @@
5
5
  /**
6
6
  * @module list/documentlist
7
7
  */
8
- import { Plugin } from 'ckeditor5/src/core.js';
9
- import DocumentListEditing from './documentlist/documentlistediting.js';
10
- import ListUI from './list/listui.js';
8
+ import { Plugin } from 'ckeditor5/src/core';
9
+ import DocumentListEditing from './documentlist/documentlistediting';
10
+ import ListUI from './list/listui';
11
11
  /**
12
12
  * The document list feature.
13
13
  *
@@ -5,9 +5,9 @@
5
5
  /**
6
6
  * @module list/documentlist
7
7
  */
8
- import { Plugin } from 'ckeditor5/src/core.js';
9
- import DocumentListEditing from './documentlist/documentlistediting.js';
10
- import ListUI from './list/listui.js';
8
+ import { Plugin } from 'ckeditor5/src/core';
9
+ import DocumentListEditing from './documentlist/documentlistediting';
10
+ import ListUI from './list/listui';
11
11
  /**
12
12
  * The document list feature.
13
13
  *
@@ -5,9 +5,9 @@
5
5
  /**
6
6
  * @module list/documentlistproperties/converters
7
7
  */
8
- import type { UpcastElementEvent } from 'ckeditor5/src/engine.js';
9
- import type { GetCallback } from 'ckeditor5/src/utils.js';
10
- import type { AttributeStrategy } from './documentlistpropertiesediting.js';
8
+ import type { UpcastElementEvent } from 'ckeditor5/src/engine';
9
+ import type { GetCallback } from 'ckeditor5/src/utils';
10
+ import type { AttributeStrategy } from './documentlistpropertiesediting';
11
11
  /**
12
12
  * Returns a converter that consumes the `style`, `reversed`, and `start` attributes.
13
13
  * In `style`, it searches for the `list-style-type` definition.
@@ -5,10 +5,10 @@
5
5
  /**
6
6
  * @module list/documentlistproperties/documentlistpropertiesediting
7
7
  */
8
- import { Plugin, type Editor } from 'ckeditor5/src/core.js';
9
- import type { Consumables, DowncastWriter, Element, Item, ViewElement } from 'ckeditor5/src/engine.js';
10
- import DocumentListEditing, { type ListItemAttributesMap } from '../documentlist/documentlistediting.js';
11
- import DocumentListPropertiesUtils from './documentlistpropertiesutils.js';
8
+ import { Plugin, type Editor } from 'ckeditor5/src/core';
9
+ import type { Consumables, DowncastWriter, Element, Item, ViewElement } from 'ckeditor5/src/engine';
10
+ import DocumentListEditing, { type ListItemAttributesMap } from '../documentlist/documentlistediting';
11
+ import DocumentListPropertiesUtils from './documentlistpropertiesutils';
12
12
  /**
13
13
  * The document list properties engine feature.
14
14
  *
@@ -5,14 +5,14 @@
5
5
  /**
6
6
  * @module list/documentlistproperties/documentlistpropertiesediting
7
7
  */
8
- import { Plugin } from 'ckeditor5/src/core.js';
9
- import DocumentListEditing from '../documentlist/documentlistediting.js';
10
- import DocumentListStartCommand from './documentliststartcommand.js';
11
- import DocumentListStyleCommand from './documentliststylecommand.js';
12
- import DocumentListReversedCommand from './documentlistreversedcommand.js';
13
- import { listPropertiesUpcastConverter } from './converters.js';
14
- import { getAllSupportedStyleTypes, getListTypeFromListStyleType, getListStyleTypeFromTypeAttribute, getTypeAttributeFromListStyleType } from './utils/style.js';
15
- import DocumentListPropertiesUtils from './documentlistpropertiesutils.js';
8
+ import { Plugin } from 'ckeditor5/src/core';
9
+ import DocumentListEditing from '../documentlist/documentlistediting';
10
+ import DocumentListStartCommand from './documentliststartcommand';
11
+ import DocumentListStyleCommand from './documentliststylecommand';
12
+ import DocumentListReversedCommand from './documentlistreversedcommand';
13
+ import { listPropertiesUpcastConverter } from './converters';
14
+ import { getAllSupportedStyleTypes, getListTypeFromListStyleType, getListStyleTypeFromTypeAttribute, getTypeAttributeFromListStyleType } from './utils/style';
15
+ import DocumentListPropertiesUtils from './documentlistpropertiesutils';
16
16
  const DEFAULT_LIST_TYPE = 'default';
17
17
  /**
18
18
  * The document list properties engine feature.
@@ -5,7 +5,7 @@
5
5
  /**
6
6
  * @module list/documentlistproperties/documentlistpropertiesutils
7
7
  */
8
- import { Plugin } from 'ckeditor5/src/core.js';
8
+ import { Plugin } from 'ckeditor5/src/core';
9
9
  /**
10
10
  * A set of helpers related to document lists.
11
11
  */
@@ -5,8 +5,8 @@
5
5
  /**
6
6
  * @module list/documentlistproperties/documentlistpropertiesutils
7
7
  */
8
- import { Plugin } from 'ckeditor5/src/core.js';
9
- import { getAllSupportedStyleTypes, getListStyleTypeFromTypeAttribute, getListTypeFromListStyleType, getTypeAttributeFromListStyleType } from './utils/style.js';
8
+ import { Plugin } from 'ckeditor5/src/core';
9
+ import { getAllSupportedStyleTypes, getListStyleTypeFromTypeAttribute, getListTypeFromListStyleType, getTypeAttributeFromListStyleType } from './utils/style';
10
10
  /**
11
11
  * A set of helpers related to document lists.
12
12
  */
@@ -5,7 +5,7 @@
5
5
  /**
6
6
  * @module list/documentlistproperties/documentlistreversedcommand
7
7
  */
8
- import { Command } from 'ckeditor5/src/core.js';
8
+ import { Command } from 'ckeditor5/src/core';
9
9
  /**
10
10
  * The list reversed command. It changes the `listReversed` attribute of the selected list items,
11
11
  * letting the user to choose the order of an ordered list.
@@ -5,9 +5,9 @@
5
5
  /**
6
6
  * @module list/documentlistproperties/documentlistreversedcommand
7
7
  */
8
- import { Command } from 'ckeditor5/src/core.js';
9
- import { first } from 'ckeditor5/src/utils.js';
10
- import { expandListBlocksToCompleteList, isListItemBlock } from '../documentlist/utils/model.js';
8
+ import { Command } from 'ckeditor5/src/core';
9
+ import { first } from 'ckeditor5/src/utils';
10
+ import { expandListBlocksToCompleteList, isListItemBlock } from '../documentlist/utils/model';
11
11
  /**
12
12
  * The list reversed command. It changes the `listReversed` attribute of the selected list items,
13
13
  * letting the user to choose the order of an ordered list.
@@ -5,7 +5,7 @@
5
5
  /**
6
6
  * @module list/documentlistproperties/documentliststartcommand
7
7
  */
8
- import { Command } from 'ckeditor5/src/core.js';
8
+ import { Command } from 'ckeditor5/src/core';
9
9
  /**
10
10
  * The list start index command. It changes the `listStart` attribute of the selected list items,
11
11
  * letting the user to choose the starting point of an ordered list.
@@ -5,9 +5,9 @@
5
5
  /**
6
6
  * @module list/documentlistproperties/documentliststartcommand
7
7
  */
8
- import { Command } from 'ckeditor5/src/core.js';
9
- import { first } from 'ckeditor5/src/utils.js';
10
- import { expandListBlocksToCompleteList, isListItemBlock } from '../documentlist/utils/model.js';
8
+ import { Command } from 'ckeditor5/src/core';
9
+ import { first } from 'ckeditor5/src/utils';
10
+ import { expandListBlocksToCompleteList, isListItemBlock } from '../documentlist/utils/model';
11
11
  /**
12
12
  * The list start index command. It changes the `listStart` attribute of the selected list items,
13
13
  * letting the user to choose the starting point of an ordered list.
@@ -5,7 +5,7 @@
5
5
  /**
6
6
  * @module list/documentlistproperties/documentliststylecommand
7
7
  */
8
- import { Command, type Editor } from 'ckeditor5/src/core.js';
8
+ import { Command, type Editor } from 'ckeditor5/src/core';
9
9
  /**
10
10
  * The list style command. It changes `listStyle` attribute of the selected list items,
11
11
  * letting the user choose styles for the list item markers.
@@ -5,10 +5,10 @@
5
5
  /**
6
6
  * @module list/documentlistproperties/documentliststylecommand
7
7
  */
8
- import { Command } from 'ckeditor5/src/core.js';
9
- import { first } from 'ckeditor5/src/utils.js';
10
- import { expandListBlocksToCompleteList, isListItemBlock } from '../documentlist/utils/model.js';
11
- import { getListTypeFromListStyleType } from './utils/style.js';
8
+ import { Command } from 'ckeditor5/src/core';
9
+ import { first } from 'ckeditor5/src/utils';
10
+ import { expandListBlocksToCompleteList, isListItemBlock } from '../documentlist/utils/model';
11
+ import { getListTypeFromListStyleType } from './utils/style';
12
12
  /**
13
13
  * The list style command. It changes `listStyle` attribute of the selected list items,
14
14
  * letting the user choose styles for the list item markers.
@@ -5,9 +5,9 @@
5
5
  /**
6
6
  * @module list/documentlistproperties
7
7
  */
8
- import { Plugin } from 'ckeditor5/src/core.js';
9
- import DocumentListPropertiesEditing from './documentlistproperties/documentlistpropertiesediting.js';
10
- import ListPropertiesUI from './listproperties/listpropertiesui.js';
8
+ import { Plugin } from 'ckeditor5/src/core';
9
+ import DocumentListPropertiesEditing from './documentlistproperties/documentlistpropertiesediting';
10
+ import ListPropertiesUI from './listproperties/listpropertiesui';
11
11
  /**
12
12
  * The document list properties feature.
13
13
  *
@@ -5,9 +5,9 @@
5
5
  /**
6
6
  * @module list/documentlistproperties
7
7
  */
8
- import { Plugin } from 'ckeditor5/src/core.js';
9
- import DocumentListPropertiesEditing from './documentlistproperties/documentlistpropertiesediting.js';
10
- import ListPropertiesUI from './listproperties/listpropertiesui.js';
8
+ import { Plugin } from 'ckeditor5/src/core';
9
+ import DocumentListPropertiesEditing from './documentlistproperties/documentlistpropertiesediting';
10
+ import ListPropertiesUI from './listproperties/listpropertiesui';
11
11
  /**
12
12
  * The document list properties feature.
13
13
  *