@ckeditor/ckeditor5-list 37.0.0-alpha.0 → 37.0.0-alpha.2
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.
- package/package.json +38 -38
- package/src/augmentation.d.ts +49 -0
- package/src/documentlist/documentlistcommand.d.ts +2 -3
- package/src/documentlist/documentlistcommand.js +0 -1
- package/src/documentlist/documentlistediting.d.ts +2 -7
- package/src/documentlist/documentlistindentcommand.d.ts +4 -5
- package/src/documentlist/documentlistindentcommand.js +0 -1
- package/src/documentlist/documentlistmergecommand.d.ts +4 -5
- package/src/documentlist/documentlistmergecommand.js +0 -1
- package/src/documentlist/documentlistsplitcommand.d.ts +4 -5
- package/src/documentlist/documentlistsplitcommand.js +0 -1
- package/src/documentlist/documentlistutils.d.ts +0 -5
- package/src/documentlist.d.ts +0 -6
- package/src/documentlist.js +0 -1
- package/src/documentlistproperties/documentlistpropertiesediting.d.ts +1 -6
- package/src/documentlistproperties/documentlistpropertiesutils.d.ts +1 -6
- package/src/documentlistproperties/documentlistpropertiesutils.js +1 -1
- package/src/documentlistproperties/documentlistreversedcommand.d.ts +0 -1
- package/src/documentlistproperties/documentlistreversedcommand.js +0 -1
- package/src/documentlistproperties/documentliststartcommand.d.ts +0 -1
- package/src/documentlistproperties/documentliststartcommand.js +0 -1
- package/src/documentlistproperties/documentliststylecommand.d.ts +0 -1
- package/src/documentlistproperties/documentliststylecommand.js +0 -1
- package/src/documentlistproperties.d.ts +0 -6
- package/src/documentlistproperties.js +0 -1
- package/src/index.d.ts +14 -0
- package/src/index.js +1 -0
- package/src/list/indentcommand.d.ts +0 -2
- package/src/list/indentcommand.js +2 -11
- package/src/list/listcommand.d.ts +0 -1
- package/src/list/listcommand.js +0 -1
- package/src/list/listediting.d.ts +0 -5
- package/src/list/listui.d.ts +0 -5
- package/src/list/listutils.d.ts +0 -5
- package/src/list/utils.d.ts +0 -1
- package/src/list/utils.js +0 -1
- package/src/list.d.ts +0 -5
- package/src/listconfig.d.ts +0 -10
- package/src/listproperties/listpropertiesediting.d.ts +0 -5
- package/src/listproperties/listpropertiesui.d.ts +0 -6
- package/src/listproperties/listpropertiesui.js +0 -1
- package/src/listproperties/listreversedcommand.d.ts +0 -1
- package/src/listproperties/listreversedcommand.js +0 -1
- package/src/listproperties/liststartcommand.d.ts +0 -1
- package/src/listproperties/liststartcommand.js +0 -1
- package/src/listproperties/liststylecommand.d.ts +0 -1
- package/src/listproperties/liststylecommand.js +0 -1
- package/src/listproperties/ui/collapsibleview.d.ts +1 -1
- package/src/listproperties/ui/listpropertiesview.d.ts +5 -5
- package/src/listproperties/ui/listpropertiesview.js +1 -1
- package/src/listproperties.d.ts +0 -6
- package/src/listproperties.js +0 -1
- package/src/liststyle.d.ts +0 -5
- package/src/todolist/checktodolistcommand.d.ts +0 -1
- package/src/todolist/checktodolistcommand.js +0 -1
- package/src/todolist/todolistediting.d.ts +0 -5
- package/src/todolist/todolistui.d.ts +0 -5
- package/src/todolist.d.ts +0 -5
- package/src/listcommands.d.ts +0 -37
- /package/src/{listcommands.js → augmentation.js} +0 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ckeditor/ckeditor5-list",
|
|
3
|
-
"version": "37.0.0-alpha.
|
|
3
|
+
"version": "37.0.0-alpha.2",
|
|
4
4
|
"description": "Ordered and unordered lists feature to CKEditor 5.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ckeditor",
|
|
@@ -12,44 +12,44 @@
|
|
|
12
12
|
],
|
|
13
13
|
"main": "src/index.js",
|
|
14
14
|
"dependencies": {
|
|
15
|
-
"ckeditor5": "^37.0.0-alpha.
|
|
16
|
-
"@ckeditor/ckeditor5-ui": "^37.0.0-alpha.
|
|
15
|
+
"ckeditor5": "^37.0.0-alpha.2",
|
|
16
|
+
"@ckeditor/ckeditor5-ui": "^37.0.0-alpha.2"
|
|
17
17
|
},
|
|
18
18
|
"devDependencies": {
|
|
19
|
-
"@ckeditor/ckeditor5-alignment": "^37.0.0-alpha.
|
|
20
|
-
"@ckeditor/ckeditor5-autoformat": "^37.0.0-alpha.
|
|
21
|
-
"@ckeditor/ckeditor5-basic-styles": "^37.0.0-alpha.
|
|
22
|
-
"@ckeditor/ckeditor5-block-quote": "^37.0.0-alpha.
|
|
23
|
-
"@ckeditor/ckeditor5-clipboard": "^37.0.0-alpha.
|
|
24
|
-
"@ckeditor/ckeditor5-cloud-services": "^37.0.0-alpha.
|
|
25
|
-
"@ckeditor/ckeditor5-code-block": "^37.0.0-alpha.
|
|
26
|
-
"@ckeditor/ckeditor5-core": "^37.0.0-alpha.
|
|
27
|
-
"@ckeditor/ckeditor5-dev-utils": "^
|
|
28
|
-
"@ckeditor/ckeditor5-easy-image": "^37.0.0-alpha.
|
|
29
|
-
"@ckeditor/ckeditor5-editor-classic": "^37.0.0-alpha.
|
|
30
|
-
"@ckeditor/ckeditor5-engine": "^37.0.0-alpha.
|
|
31
|
-
"@ckeditor/ckeditor5-enter": "^37.0.0-alpha.
|
|
32
|
-
"@ckeditor/ckeditor5-essentials": "^37.0.0-alpha.
|
|
33
|
-
"@ckeditor/ckeditor5-font": "^37.0.0-alpha.
|
|
34
|
-
"@ckeditor/ckeditor5-heading": "^37.0.0-alpha.
|
|
35
|
-
"@ckeditor/ckeditor5-highlight": "^37.0.0-alpha.
|
|
36
|
-
"@ckeditor/ckeditor5-horizontal-line": "^37.0.0-alpha.
|
|
37
|
-
"@ckeditor/ckeditor5-html-embed": "^37.0.0-alpha.
|
|
38
|
-
"@ckeditor/ckeditor5-html-support": "^37.0.0-alpha.
|
|
39
|
-
"@ckeditor/ckeditor5-image": "^37.0.0-alpha.
|
|
40
|
-
"@ckeditor/ckeditor5-indent": "^37.0.0-alpha.
|
|
41
|
-
"@ckeditor/ckeditor5-link": "^37.0.0-alpha.
|
|
42
|
-
"@ckeditor/ckeditor5-media-embed": "^37.0.0-alpha.
|
|
43
|
-
"@ckeditor/ckeditor5-page-break": "^37.0.0-alpha.
|
|
44
|
-
"@ckeditor/ckeditor5-paragraph": "^37.0.0-alpha.
|
|
45
|
-
"@ckeditor/ckeditor5-remove-format": "^37.0.0-alpha.
|
|
46
|
-
"@ckeditor/ckeditor5-source-editing": "^37.0.0-alpha.
|
|
47
|
-
"@ckeditor/ckeditor5-table": "^37.0.0-alpha.
|
|
48
|
-
"@ckeditor/ckeditor5-theme-lark": "^37.0.0-alpha.
|
|
49
|
-
"@ckeditor/ckeditor5-typing": "^37.0.0-alpha.
|
|
50
|
-
"@ckeditor/ckeditor5-undo": "^37.0.0-alpha.
|
|
51
|
-
"@ckeditor/ckeditor5-utils": "^37.0.0-alpha.
|
|
52
|
-
"@ckeditor/ckeditor5-widget": "^37.0.0-alpha.
|
|
19
|
+
"@ckeditor/ckeditor5-alignment": "^37.0.0-alpha.2",
|
|
20
|
+
"@ckeditor/ckeditor5-autoformat": "^37.0.0-alpha.2",
|
|
21
|
+
"@ckeditor/ckeditor5-basic-styles": "^37.0.0-alpha.2",
|
|
22
|
+
"@ckeditor/ckeditor5-block-quote": "^37.0.0-alpha.2",
|
|
23
|
+
"@ckeditor/ckeditor5-clipboard": "^37.0.0-alpha.2",
|
|
24
|
+
"@ckeditor/ckeditor5-cloud-services": "^37.0.0-alpha.2",
|
|
25
|
+
"@ckeditor/ckeditor5-code-block": "^37.0.0-alpha.2",
|
|
26
|
+
"@ckeditor/ckeditor5-core": "^37.0.0-alpha.2",
|
|
27
|
+
"@ckeditor/ckeditor5-dev-utils": "^35.0.0",
|
|
28
|
+
"@ckeditor/ckeditor5-easy-image": "^37.0.0-alpha.2",
|
|
29
|
+
"@ckeditor/ckeditor5-editor-classic": "^37.0.0-alpha.2",
|
|
30
|
+
"@ckeditor/ckeditor5-engine": "^37.0.0-alpha.2",
|
|
31
|
+
"@ckeditor/ckeditor5-enter": "^37.0.0-alpha.2",
|
|
32
|
+
"@ckeditor/ckeditor5-essentials": "^37.0.0-alpha.2",
|
|
33
|
+
"@ckeditor/ckeditor5-font": "^37.0.0-alpha.2",
|
|
34
|
+
"@ckeditor/ckeditor5-heading": "^37.0.0-alpha.2",
|
|
35
|
+
"@ckeditor/ckeditor5-highlight": "^37.0.0-alpha.2",
|
|
36
|
+
"@ckeditor/ckeditor5-horizontal-line": "^37.0.0-alpha.2",
|
|
37
|
+
"@ckeditor/ckeditor5-html-embed": "^37.0.0-alpha.2",
|
|
38
|
+
"@ckeditor/ckeditor5-html-support": "^37.0.0-alpha.2",
|
|
39
|
+
"@ckeditor/ckeditor5-image": "^37.0.0-alpha.2",
|
|
40
|
+
"@ckeditor/ckeditor5-indent": "^37.0.0-alpha.2",
|
|
41
|
+
"@ckeditor/ckeditor5-link": "^37.0.0-alpha.2",
|
|
42
|
+
"@ckeditor/ckeditor5-media-embed": "^37.0.0-alpha.2",
|
|
43
|
+
"@ckeditor/ckeditor5-page-break": "^37.0.0-alpha.2",
|
|
44
|
+
"@ckeditor/ckeditor5-paragraph": "^37.0.0-alpha.2",
|
|
45
|
+
"@ckeditor/ckeditor5-remove-format": "^37.0.0-alpha.2",
|
|
46
|
+
"@ckeditor/ckeditor5-source-editing": "^37.0.0-alpha.2",
|
|
47
|
+
"@ckeditor/ckeditor5-table": "^37.0.0-alpha.2",
|
|
48
|
+
"@ckeditor/ckeditor5-theme-lark": "^37.0.0-alpha.2",
|
|
49
|
+
"@ckeditor/ckeditor5-typing": "^37.0.0-alpha.2",
|
|
50
|
+
"@ckeditor/ckeditor5-undo": "^37.0.0-alpha.2",
|
|
51
|
+
"@ckeditor/ckeditor5-utils": "^37.0.0-alpha.2",
|
|
52
|
+
"@ckeditor/ckeditor5-widget": "^37.0.0-alpha.2",
|
|
53
53
|
"typescript": "^4.8.4",
|
|
54
54
|
"webpack": "^5.58.1",
|
|
55
55
|
"webpack-cli": "^4.9.0"
|
|
@@ -78,7 +78,7 @@
|
|
|
78
78
|
],
|
|
79
79
|
"scripts": {
|
|
80
80
|
"dll:build": "webpack",
|
|
81
|
-
"build": "tsc -p ./tsconfig.
|
|
81
|
+
"build": "tsc -p ./tsconfig.json",
|
|
82
82
|
"postversion": "npm run build"
|
|
83
83
|
},
|
|
84
84
|
"types": "src/index.d.ts"
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
+
*/
|
|
5
|
+
import type { DocumentList, DocumentListEditing, DocumentListProperties, DocumentListPropertiesEditing, DocumentListPropertiesUtils, 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
|
+
declare module '@ckeditor/ckeditor5-core' {
|
|
7
|
+
interface EditorConfig {
|
|
8
|
+
/**
|
|
9
|
+
* The configuration of the {@link module:list/list~List} feature and the {@link module:list/documentlist~DocumentList} feature.
|
|
10
|
+
*
|
|
11
|
+
* Read more in {@link module:list/listconfig~ListConfig}.
|
|
12
|
+
*/
|
|
13
|
+
list?: ListConfig;
|
|
14
|
+
}
|
|
15
|
+
interface PluginsMap {
|
|
16
|
+
[DocumentList.pluginName]: DocumentList;
|
|
17
|
+
[DocumentListEditing.pluginName]: DocumentListEditing;
|
|
18
|
+
[DocumentListProperties.pluginName]: DocumentListProperties;
|
|
19
|
+
[DocumentListPropertiesEditing.pluginName]: DocumentListPropertiesEditing;
|
|
20
|
+
[DocumentListPropertiesUtils.pluginName]: DocumentListPropertiesUtils;
|
|
21
|
+
[DocumentListUtils.pluginName]: DocumentListUtils;
|
|
22
|
+
[List.pluginName]: List;
|
|
23
|
+
[ListEditing.pluginName]: ListEditing;
|
|
24
|
+
[ListProperties.pluginName]: ListProperties;
|
|
25
|
+
[ListPropertiesEditing.pluginName]: ListPropertiesEditing;
|
|
26
|
+
[ListPropertiesUI.pluginName]: ListPropertiesUI;
|
|
27
|
+
[ListStyle.pluginName]: ListStyle;
|
|
28
|
+
[ListUI.pluginName]: ListUI;
|
|
29
|
+
[ListUtils.pluginName]: ListUtils;
|
|
30
|
+
[TodoList.pluginName]: TodoList;
|
|
31
|
+
[TodoListEditing.pluginName]: TodoListEditing;
|
|
32
|
+
[TodoListUI.pluginName]: TodoListUI;
|
|
33
|
+
}
|
|
34
|
+
interface CommandsMap {
|
|
35
|
+
numberedList: ListCommand | DocumentListCommand;
|
|
36
|
+
bulletedList: ListCommand | DocumentListCommand;
|
|
37
|
+
indentList: IndentCommand | DocumentListIndentCommand;
|
|
38
|
+
outdentList: IndentCommand | DocumentListIndentCommand;
|
|
39
|
+
mergeListItemBackward: DocumentListMergeCommand;
|
|
40
|
+
mergeListItemForward: DocumentListMergeCommand;
|
|
41
|
+
splitListItemBefore: DocumentListSplitCommand;
|
|
42
|
+
splitListItemAfter: DocumentListSplitCommand;
|
|
43
|
+
listStyle: ListStyleCommand | DocumentListStyleCommand;
|
|
44
|
+
listStart: ListStartCommand | DocumentListStartCommand;
|
|
45
|
+
listReversed: ListReversedCommand | DocumentListReversedCommand;
|
|
46
|
+
todoList: ListCommand;
|
|
47
|
+
checkTodoList: CheckTodoListCommand;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
@@ -7,7 +7,6 @@
|
|
|
7
7
|
*/
|
|
8
8
|
import type { Element } from 'ckeditor5/src/engine';
|
|
9
9
|
import { Command, type Editor } from 'ckeditor5/src/core';
|
|
10
|
-
import '../listcommands';
|
|
11
10
|
/**
|
|
12
11
|
* The list command. It is used by the {@link module:list/documentlist~DocumentList document list feature}.
|
|
13
12
|
*/
|
|
@@ -67,13 +66,13 @@ export default class DocumentListCommand extends Command {
|
|
|
67
66
|
private _checkEnabled;
|
|
68
67
|
}
|
|
69
68
|
/**
|
|
70
|
-
* Event fired by the {@link #execute} method.
|
|
69
|
+
* Event fired by the {@link ~DocumentListCommand#execute} method.
|
|
71
70
|
*
|
|
72
71
|
* It allows to execute an action after executing the {@link ~DocumentListCommand#execute} method,
|
|
73
72
|
* for example adjusting attributes of changed list items.
|
|
74
73
|
*
|
|
75
74
|
* @internal
|
|
76
|
-
* @eventName afterExecute
|
|
75
|
+
* @eventName ~DocumentListCommand#afterExecute
|
|
77
76
|
*/
|
|
78
77
|
export type DocumentListCommandAfterExecuteEvent = {
|
|
79
78
|
name: 'afterExecute';
|
|
@@ -4,7 +4,6 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import { Command } from 'ckeditor5/src/core';
|
|
6
6
|
import { splitListItemBefore, expandListBlocksToCompleteItems, getListItemBlocks, getListItems, removeListAttributes, outdentFollowingItems, ListItemUid, sortBlocks, getSelectedBlockObject, isListItemBlock } from './utils/model';
|
|
7
|
-
import '../listcommands';
|
|
8
7
|
/**
|
|
9
8
|
* The list command. It is used by the {@link module:list/documentlist~DocumentList document list feature}.
|
|
10
9
|
*/
|
|
@@ -108,7 +108,7 @@ export interface DowncastStrategy {
|
|
|
108
108
|
* It allows triggering a re-wrapping of a list item.
|
|
109
109
|
*
|
|
110
110
|
* @internal
|
|
111
|
-
* @eventName postFixer
|
|
111
|
+
* @eventName ~DocumentListEditing#postFixer
|
|
112
112
|
* @param listHead The head element of a list.
|
|
113
113
|
* @param writer The writer to do changes with.
|
|
114
114
|
* @param seenIds The set of already known IDs.
|
|
@@ -135,7 +135,7 @@ export type DocumentListEditingPostFixerEvent = {
|
|
|
135
135
|
* **Note**: For convenience this event is namespaced and could be captured as `checkAttributes:list` or `checkAttributes:item`.
|
|
136
136
|
*
|
|
137
137
|
* @internal
|
|
138
|
-
* @eventName checkAttributes
|
|
138
|
+
* @eventName ~DocumentListEditing#checkAttributes
|
|
139
139
|
*/
|
|
140
140
|
export type DocumentListEditingCheckAttributesEvent = {
|
|
141
141
|
name: 'checkAttributes' | 'checkAttributes:list' | 'checkAttributes:item';
|
|
@@ -149,8 +149,3 @@ export type DocumentListEditingCheckAttributesEvent = {
|
|
|
149
149
|
];
|
|
150
150
|
return: boolean;
|
|
151
151
|
};
|
|
152
|
-
declare module '@ckeditor/ckeditor5-core' {
|
|
153
|
-
interface PluginsMap {
|
|
154
|
-
[DocumentListEditing.pluginName]: DocumentListEditing;
|
|
155
|
-
}
|
|
156
|
-
}
|
|
@@ -7,7 +7,6 @@
|
|
|
7
7
|
*/
|
|
8
8
|
import { Command, type Editor } from 'ckeditor5/src/core';
|
|
9
9
|
import type { Element } from 'ckeditor5/src/engine';
|
|
10
|
-
import '../listcommands';
|
|
11
10
|
/**
|
|
12
11
|
* The document list indent command. It is used by the {@link module:list/documentlist~DocumentList list feature}.
|
|
13
12
|
*/
|
|
@@ -49,13 +48,13 @@ export default class DocumentListIndentCommand extends Command {
|
|
|
49
48
|
private _checkEnabled;
|
|
50
49
|
}
|
|
51
50
|
/**
|
|
52
|
-
* Event fired by the {@link #execute} method.
|
|
51
|
+
* Event fired by the {@link ~DocumentListIndentCommand#execute} method.
|
|
53
52
|
*
|
|
54
|
-
* It allows to execute an action after executing the {@link ~DocumentListCommand#execute}
|
|
55
|
-
* for example adjusting attributes of changed list items.
|
|
53
|
+
* It allows to execute an action after executing the {@link module:list/documentlist/documentlistcommand~DocumentListCommand#execute}
|
|
54
|
+
* method, for example adjusting attributes of changed list items.
|
|
56
55
|
*
|
|
57
56
|
* @internal
|
|
58
|
-
* @eventName afterExecute
|
|
57
|
+
* @eventName ~DocumentListIndentCommand#afterExecute
|
|
59
58
|
*/
|
|
60
59
|
export type DocumentListIndentCommandAfterExecuteEvent = {
|
|
61
60
|
name: 'afterExecute';
|
|
@@ -8,7 +8,6 @@
|
|
|
8
8
|
import { Command } from 'ckeditor5/src/core';
|
|
9
9
|
import { expandListBlocksToCompleteItems, indentBlocks, isFirstBlockOfListItem, isListItemBlock, isSingleListItem, outdentBlocksWithMerge, sortBlocks, splitListItemBefore } from './utils/model';
|
|
10
10
|
import ListWalker from './utils/listwalker';
|
|
11
|
-
import '../listcommands';
|
|
12
11
|
/**
|
|
13
12
|
* The document list indent command. It is used by the {@link module:list/documentlist~DocumentList list feature}.
|
|
14
13
|
*/
|
|
@@ -7,7 +7,6 @@
|
|
|
7
7
|
*/
|
|
8
8
|
import { Command, type Editor } from 'ckeditor5/src/core';
|
|
9
9
|
import type { Element } from 'ckeditor5/src/engine';
|
|
10
|
-
import '../listcommands';
|
|
11
10
|
/**
|
|
12
11
|
* The document list merge command. It is used by the {@link module:list/documentlist~DocumentList list feature}.
|
|
13
12
|
*/
|
|
@@ -63,13 +62,13 @@ export default class DocumentListMergeCommand extends Command {
|
|
|
63
62
|
private _getMergeSubjectElements;
|
|
64
63
|
}
|
|
65
64
|
/**
|
|
66
|
-
* Event fired by the {@link #execute} method.
|
|
65
|
+
* Event fired by the {@link ~DocumentListMergeCommand#execute} method.
|
|
67
66
|
*
|
|
68
|
-
* It allows to execute an action after executing the {@link ~DocumentListCommand#execute}
|
|
69
|
-
* for example adjusting attributes of changed list items.
|
|
67
|
+
* It allows to execute an action after executing the {@link module:list/documentlist/documentlistcommand~DocumentListCommand#execute}
|
|
68
|
+
* method, for example adjusting attributes of changed list items.
|
|
70
69
|
*
|
|
71
70
|
* @internal
|
|
72
|
-
* @eventName afterExecute
|
|
71
|
+
* @eventName ~DocumentListMergeCommand#afterExecute
|
|
73
72
|
*/
|
|
74
73
|
export type DocumentListMergeCommandAfterExecuteEvent = {
|
|
75
74
|
name: 'afterExecute';
|
|
@@ -8,7 +8,6 @@
|
|
|
8
8
|
import { Command } from 'ckeditor5/src/core';
|
|
9
9
|
import { getNestedListBlocks, indentBlocks, sortBlocks, isFirstBlockOfListItem, mergeListItemBefore, isSingleListItem, getSelectedBlockObject, isListItemBlock } from './utils/model';
|
|
10
10
|
import ListWalker from './utils/listwalker';
|
|
11
|
-
import '../listcommands';
|
|
12
11
|
/**
|
|
13
12
|
* The document list merge command. It is used by the {@link module:list/documentlist~DocumentList list feature}.
|
|
14
13
|
*/
|
|
@@ -7,7 +7,6 @@
|
|
|
7
7
|
*/
|
|
8
8
|
import type { Element } from 'ckeditor5/src/engine';
|
|
9
9
|
import { Command, type Editor } from 'ckeditor5/src/core';
|
|
10
|
-
import '../listcommands';
|
|
11
10
|
/**
|
|
12
11
|
* The document list split command that splits the list item at the selection.
|
|
13
12
|
*
|
|
@@ -54,13 +53,13 @@ export default class DocumentListSplitCommand extends Command {
|
|
|
54
53
|
private _getStartBlock;
|
|
55
54
|
}
|
|
56
55
|
/**
|
|
57
|
-
* Event fired by the {@link #execute} method.
|
|
56
|
+
* Event fired by the {@link ~DocumentListSplitCommand#execute} method.
|
|
58
57
|
*
|
|
59
|
-
* It allows to execute an action after executing the {@link ~DocumentListCommand#execute}
|
|
60
|
-
* for example adjusting attributes of changed list items.
|
|
58
|
+
* It allows to execute an action after executing the {@link module:list/documentlist/documentlistcommand~DocumentListCommand#execute}
|
|
59
|
+
* method, for example adjusting attributes of changed list items.
|
|
61
60
|
*
|
|
62
61
|
* @internal
|
|
63
|
-
* @eventName afterExecute
|
|
62
|
+
* @eventName ~DocumentListSplitCommand#afterExecute
|
|
64
63
|
*/
|
|
65
64
|
export type DocumentListSplitCommandAfterExecuteEvent = {
|
|
66
65
|
name: 'afterExecute';
|
|
@@ -4,7 +4,6 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import { Command } from 'ckeditor5/src/core';
|
|
6
6
|
import { isFirstBlockOfListItem, isListItemBlock, sortBlocks, splitListItemBefore } from './utils/model';
|
|
7
|
-
import '../listcommands';
|
|
8
7
|
/**
|
|
9
8
|
* The document list split command that splits the list item at the selection.
|
|
10
9
|
*
|
package/src/documentlist.d.ts
CHANGED
|
@@ -6,7 +6,6 @@
|
|
|
6
6
|
* @module list/documentlist
|
|
7
7
|
*/
|
|
8
8
|
import { Plugin, type PluginDependencies } from 'ckeditor5/src/core';
|
|
9
|
-
import './listconfig';
|
|
10
9
|
/**
|
|
11
10
|
* The document list feature.
|
|
12
11
|
*
|
|
@@ -23,8 +22,3 @@ export default class DocumentList extends Plugin {
|
|
|
23
22
|
*/
|
|
24
23
|
static get pluginName(): 'DocumentList';
|
|
25
24
|
}
|
|
26
|
-
declare module '@ckeditor/ckeditor5-core' {
|
|
27
|
-
interface PluginsMap {
|
|
28
|
-
[DocumentList.pluginName]: DocumentList;
|
|
29
|
-
}
|
|
30
|
-
}
|
package/src/documentlist.js
CHANGED
|
@@ -71,11 +71,6 @@ export interface AttributeStrategy {
|
|
|
71
71
|
*/
|
|
72
72
|
getAttributeOnUpcast(element: ViewElement): unknown;
|
|
73
73
|
}
|
|
74
|
-
declare module '@ckeditor/ckeditor5-core' {
|
|
75
|
-
interface PluginsMap {
|
|
76
|
-
[DocumentListPropertiesEditing.pluginName]: DocumentListPropertiesEditing;
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
74
|
declare module '../documentlist/documentlistediting' {
|
|
80
75
|
interface ListItemAttributesMap {
|
|
81
76
|
listStyle?: string;
|
|
@@ -84,7 +79,7 @@ declare module '../documentlist/documentlistediting' {
|
|
|
84
79
|
}
|
|
85
80
|
}
|
|
86
81
|
declare module '../documentlist/utils/model' {
|
|
87
|
-
interface ListElement
|
|
82
|
+
interface ListElement {
|
|
88
83
|
getAttribute(key: 'listStyle'): string;
|
|
89
84
|
getAttribute(key: 'listStart'): number;
|
|
90
85
|
getAttribute(key: 'listReversed'): boolean;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
4
|
*/
|
|
5
5
|
/**
|
|
6
|
-
* @module list/
|
|
6
|
+
* @module list/documentlistproperties/documentlistpropertiesutils
|
|
7
7
|
*/
|
|
8
8
|
import { Plugin } from 'ckeditor5/src/core';
|
|
9
9
|
/**
|
|
@@ -31,8 +31,3 @@ export default class DocumentListPropertiesUtils extends Plugin {
|
|
|
31
31
|
*/
|
|
32
32
|
getTypeAttributeFromListStyleType(value: string): string | null;
|
|
33
33
|
}
|
|
34
|
-
declare module '@ckeditor/ckeditor5-core' {
|
|
35
|
-
interface PluginsMap {
|
|
36
|
-
[DocumentListPropertiesUtils.pluginName]: DocumentListPropertiesUtils;
|
|
37
|
-
}
|
|
38
|
-
}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
4
|
*/
|
|
5
5
|
/**
|
|
6
|
-
* @module list/
|
|
6
|
+
* @module list/documentlistproperties/documentlistpropertiesutils
|
|
7
7
|
*/
|
|
8
8
|
import { Plugin } from 'ckeditor5/src/core';
|
|
9
9
|
import { getAllSupportedStyleTypes, getListStyleTypeFromTypeAttribute, getListTypeFromListStyleType, getTypeAttributeFromListStyleType } from './utils/style';
|
|
@@ -6,7 +6,6 @@
|
|
|
6
6
|
* @module list/documentlistproperties/documentlistreversedcommand
|
|
7
7
|
*/
|
|
8
8
|
import { Command } from 'ckeditor5/src/core';
|
|
9
|
-
import '../listcommands';
|
|
10
9
|
/**
|
|
11
10
|
* The list reversed command. It changes the `listReversed` attribute of the selected list items,
|
|
12
11
|
* letting the user to choose the order of an ordered list.
|
|
@@ -8,7 +8,6 @@
|
|
|
8
8
|
import { Command } from 'ckeditor5/src/core';
|
|
9
9
|
import { first } from 'ckeditor5/src/utils';
|
|
10
10
|
import { expandListBlocksToCompleteList, isListItemBlock } from '../documentlist/utils/model';
|
|
11
|
-
import '../listcommands';
|
|
12
11
|
/**
|
|
13
12
|
* The list reversed command. It changes the `listReversed` attribute of the selected list items,
|
|
14
13
|
* letting the user to choose the order of an ordered list.
|
|
@@ -6,7 +6,6 @@
|
|
|
6
6
|
* @module list/documentlistproperties/documentliststartcommand
|
|
7
7
|
*/
|
|
8
8
|
import { Command } from 'ckeditor5/src/core';
|
|
9
|
-
import '../listcommands';
|
|
10
9
|
/**
|
|
11
10
|
* The list start index command. It changes the `listStart` attribute of the selected list items,
|
|
12
11
|
* letting the user to choose the starting point of an ordered list.
|
|
@@ -8,7 +8,6 @@
|
|
|
8
8
|
import { Command } from 'ckeditor5/src/core';
|
|
9
9
|
import { first } from 'ckeditor5/src/utils';
|
|
10
10
|
import { expandListBlocksToCompleteList, isListItemBlock } from '../documentlist/utils/model';
|
|
11
|
-
import '../listcommands';
|
|
12
11
|
/**
|
|
13
12
|
* The list start index command. It changes the `listStart` attribute of the selected list items,
|
|
14
13
|
* letting the user to choose the starting point of an ordered list.
|
|
@@ -6,7 +6,6 @@
|
|
|
6
6
|
* @module list/documentlistproperties/documentliststylecommand
|
|
7
7
|
*/
|
|
8
8
|
import { Command, type Editor } from 'ckeditor5/src/core';
|
|
9
|
-
import '../listcommands';
|
|
10
9
|
/**
|
|
11
10
|
* The list style command. It changes `listStyle` attribute of the selected list items,
|
|
12
11
|
* letting the user choose styles for the list item markers.
|
|
@@ -9,7 +9,6 @@ import { Command } from 'ckeditor5/src/core';
|
|
|
9
9
|
import { first } from 'ckeditor5/src/utils';
|
|
10
10
|
import { expandListBlocksToCompleteList, isListItemBlock } from '../documentlist/utils/model';
|
|
11
11
|
import { getListTypeFromListStyleType } from './utils/style';
|
|
12
|
-
import '../listcommands';
|
|
13
12
|
/**
|
|
14
13
|
* The list style command. It changes `listStyle` attribute of the selected list items,
|
|
15
14
|
* letting the user choose styles for the list item markers.
|
|
@@ -6,7 +6,6 @@
|
|
|
6
6
|
* @module list/documentlistproperties
|
|
7
7
|
*/
|
|
8
8
|
import { Plugin, type PluginDependencies } from 'ckeditor5/src/core';
|
|
9
|
-
import './listconfig';
|
|
10
9
|
/**
|
|
11
10
|
* The document list properties feature.
|
|
12
11
|
*
|
|
@@ -24,8 +23,3 @@ export default class DocumentListProperties extends Plugin {
|
|
|
24
23
|
*/
|
|
25
24
|
static get pluginName(): 'DocumentListProperties';
|
|
26
25
|
}
|
|
27
|
-
declare module '@ckeditor/ckeditor5-core' {
|
|
28
|
-
interface PluginsMap {
|
|
29
|
-
[DocumentListProperties.pluginName]: DocumentListProperties;
|
|
30
|
-
}
|
|
31
|
-
}
|
|
@@ -8,7 +8,6 @@
|
|
|
8
8
|
import { Plugin } from 'ckeditor5/src/core';
|
|
9
9
|
import DocumentListPropertiesEditing from './documentlistproperties/documentlistpropertiesediting';
|
|
10
10
|
import ListPropertiesUI from './listproperties/listpropertiesui';
|
|
11
|
-
import './listconfig';
|
|
12
11
|
/**
|
|
13
12
|
* The document list properties feature.
|
|
14
13
|
*
|
package/src/index.d.ts
CHANGED
|
@@ -23,3 +23,17 @@ export { default as ListPropertiesUI } from './listproperties/listpropertiesui';
|
|
|
23
23
|
export { default as TodoList } from './todolist';
|
|
24
24
|
export { default as TodoListEditing } from './todolist/todolistediting';
|
|
25
25
|
export { default as TodoListUI } from './todolist/todolistui';
|
|
26
|
+
export type { ListConfig } from './listconfig';
|
|
27
|
+
export type { default as ListStyle } from './liststyle';
|
|
28
|
+
export type { default as DocumentListCommand } from './documentlist/documentlistcommand';
|
|
29
|
+
export type { default as DocumentListMergeCommand } from './documentlist/documentlistmergecommand';
|
|
30
|
+
export type { default as DocumentListSplitCommand } from './documentlist/documentlistsplitcommand';
|
|
31
|
+
export type { default as DocumentListReversedCommand } from './documentlistproperties/documentlistreversedcommand';
|
|
32
|
+
export type { default as DocumentListStartCommand } from './documentlistproperties/documentliststartcommand';
|
|
33
|
+
export type { default as DocumentListStyleCommand } from './documentlistproperties/documentliststylecommand';
|
|
34
|
+
export type { default as ListCommand } from './list/listcommand';
|
|
35
|
+
export type { default as ListReversedCommand } from './listproperties/listreversedcommand';
|
|
36
|
+
export type { default as ListStartCommand } from './listproperties/liststartcommand';
|
|
37
|
+
export type { default as ListStyleCommand } from './listproperties/liststylecommand';
|
|
38
|
+
export type { default as CheckTodoListCommand } from './todolist/checktodolistcommand';
|
|
39
|
+
import './augmentation';
|
package/src/index.js
CHANGED
|
@@ -23,3 +23,4 @@ export { default as ListPropertiesUI } from './listproperties/listpropertiesui';
|
|
|
23
23
|
export { default as TodoList } from './todolist';
|
|
24
24
|
export { default as TodoListEditing } from './todolist/todolistediting';
|
|
25
25
|
export { default as TodoListUI } from './todolist/todolistui';
|
|
26
|
+
import './augmentation';
|
|
@@ -3,7 +3,6 @@
|
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
4
|
*/
|
|
5
5
|
import { Command, type Editor } from 'ckeditor5/src/core';
|
|
6
|
-
import '../listcommands';
|
|
7
6
|
/**
|
|
8
7
|
* The list indent command. It is used by the {@link module:list/list~List list feature}.
|
|
9
8
|
*/
|
|
@@ -27,7 +26,6 @@ export default class IndentCommand extends Command {
|
|
|
27
26
|
* Indents or outdents (depending on the {@link #constructor}'s `indentDirection` parameter) selected list items.
|
|
28
27
|
*
|
|
29
28
|
* @fires execute
|
|
30
|
-
* @fires _executeCleanup
|
|
31
29
|
*/
|
|
32
30
|
execute(): void;
|
|
33
31
|
/**
|
|
@@ -4,7 +4,6 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import { Command } from 'ckeditor5/src/core';
|
|
6
6
|
import { first } from 'ckeditor5/src/utils';
|
|
7
|
-
import '../listcommands';
|
|
8
7
|
/**
|
|
9
8
|
* The list indent command. It is used by the {@link module:list/list~List list feature}.
|
|
10
9
|
*/
|
|
@@ -29,7 +28,6 @@ export default class IndentCommand extends Command {
|
|
|
29
28
|
* Indents or outdents (depending on the {@link #constructor}'s `indentDirection` parameter) selected list items.
|
|
30
29
|
*
|
|
31
30
|
* @fires execute
|
|
32
|
-
* @fires _executeCleanup
|
|
33
31
|
*/
|
|
34
32
|
execute() {
|
|
35
33
|
const model = this.editor.model;
|
|
@@ -67,15 +65,8 @@ export default class IndentCommand extends Command {
|
|
|
67
65
|
writer.setAttribute('listIndent', indent, item);
|
|
68
66
|
}
|
|
69
67
|
}
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
*
|
|
73
|
-
* It allows to execute an action after executing the {@link ~IndentCommand#execute} method, for example adjusting
|
|
74
|
-
* attributes of changed list items.
|
|
75
|
-
*
|
|
76
|
-
* @protected
|
|
77
|
-
* @event _executeCleanup
|
|
78
|
-
*/
|
|
68
|
+
// It allows to execute an action after executing the `~IndentCommand#execute` method, for example adjusting
|
|
69
|
+
// attributes of changed list items.
|
|
79
70
|
this.fire('_executeCleanup', itemsToChange);
|
|
80
71
|
});
|
|
81
72
|
}
|
|
@@ -3,7 +3,6 @@
|
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
4
|
*/
|
|
5
5
|
import { Command, type Editor } from 'ckeditor5/src/core';
|
|
6
|
-
import '../listcommands';
|
|
7
6
|
/**
|
|
8
7
|
* The list command. It is used by the {@link module:list/list~List list feature}.
|
|
9
8
|
*/
|
package/src/list/listcommand.js
CHANGED
package/src/list/listui.d.ts
CHANGED
package/src/list/listutils.d.ts
CHANGED
|
@@ -39,8 +39,3 @@ export default class ListUtils extends Plugin {
|
|
|
39
39
|
*/
|
|
40
40
|
getSiblingNodes(position: Position, direction: 'forward' | 'backward'): Array<Element>;
|
|
41
41
|
}
|
|
42
|
-
declare module '@ckeditor/ckeditor5-core' {
|
|
43
|
-
interface PluginsMap {
|
|
44
|
-
[ListUtils.pluginName]: ListUtils;
|
|
45
|
-
}
|
|
46
|
-
}
|
package/src/list/utils.d.ts
CHANGED
|
@@ -7,7 +7,6 @@
|
|
|
7
7
|
*/
|
|
8
8
|
import type { Editor } from 'ckeditor5/src/core';
|
|
9
9
|
import { type DowncastConversionApi, type DowncastWriter, type Element, type Item, type Model, type Position, type ViewContainerElement, type ViewElement, type ViewItem, type ViewPosition } from 'ckeditor5/src/engine';
|
|
10
|
-
import '../listcommands';
|
|
11
10
|
/**
|
|
12
11
|
* Creates a list item {@link module:engine/view/containerelement~ContainerElement}.
|
|
13
12
|
*
|
package/src/list/utils.js
CHANGED
package/src/list.d.ts
CHANGED
package/src/listconfig.d.ts
CHANGED
|
@@ -120,13 +120,3 @@ export interface ListPropertiesStyleConfig {
|
|
|
120
120
|
*/
|
|
121
121
|
useAttribute?: boolean;
|
|
122
122
|
}
|
|
123
|
-
declare module '@ckeditor/ckeditor5-core' {
|
|
124
|
-
interface EditorConfig {
|
|
125
|
-
/**
|
|
126
|
-
* The configuration of the {@link module:list/list~List} feature and the {@link module:list/documentlist~DocumentList} feature.
|
|
127
|
-
*
|
|
128
|
-
* Read more in {@link module:list/listconfig~ListConfig}.
|
|
129
|
-
*/
|
|
130
|
-
list?: ListConfig;
|
|
131
|
-
}
|
|
132
|
-
}
|
|
@@ -69,8 +69,3 @@ export default class ListPropertiesEditing extends Plugin {
|
|
|
69
69
|
*/
|
|
70
70
|
private _mergeListAttributesWhileMergingLists;
|
|
71
71
|
}
|
|
72
|
-
declare module '@ckeditor/ckeditor5-core' {
|
|
73
|
-
interface PluginsMap {
|
|
74
|
-
[ListPropertiesEditing.pluginName]: ListPropertiesEditing;
|
|
75
|
-
}
|
|
76
|
-
}
|
|
@@ -6,7 +6,6 @@
|
|
|
6
6
|
* @module list/listproperties/listpropertiesui
|
|
7
7
|
*/
|
|
8
8
|
import { Plugin } from 'ckeditor5/src/core';
|
|
9
|
-
import '../listconfig';
|
|
10
9
|
import '../../theme/liststyles.css';
|
|
11
10
|
/**
|
|
12
11
|
* The list properties UI plugin. It introduces the extended `'bulletedList'` and `'numberedList'` toolbar
|
|
@@ -22,8 +21,3 @@ export default class ListPropertiesUI extends Plugin {
|
|
|
22
21
|
static get pluginName(): 'ListPropertiesUI';
|
|
23
22
|
init(): void;
|
|
24
23
|
}
|
|
25
|
-
declare module '@ckeditor/ckeditor5-core' {
|
|
26
|
-
interface PluginsMap {
|
|
27
|
-
[ListPropertiesUI.pluginName]: ListPropertiesUI;
|
|
28
|
-
}
|
|
29
|
-
}
|
|
@@ -19,7 +19,6 @@ import listStyleLowerRomanIcon from '../../theme/icons/liststylelowerroman.svg';
|
|
|
19
19
|
import listStyleUpperRomanIcon from '../../theme/icons/liststyleupperroman.svg';
|
|
20
20
|
import listStyleLowerLatinIcon from '../../theme/icons/liststylelowerlatin.svg';
|
|
21
21
|
import listStyleUpperLatinIcon from '../../theme/icons/liststyleupperlatin.svg';
|
|
22
|
-
import '../listconfig';
|
|
23
22
|
import '../../theme/liststyles.css';
|
|
24
23
|
/**
|
|
25
24
|
* The list properties UI plugin. It introduces the extended `'bulletedList'` and `'numberedList'` toolbar
|
|
@@ -6,7 +6,6 @@
|
|
|
6
6
|
* @module list/listproperties/listreversedcommand
|
|
7
7
|
*/
|
|
8
8
|
import { Command } from 'ckeditor5/src/core';
|
|
9
|
-
import '../listcommands';
|
|
10
9
|
/**
|
|
11
10
|
* The reversed list command. It changes the `listReversed` attribute of the selected list items. As a result, the list order will be
|
|
12
11
|
* reversed.
|
|
@@ -7,7 +7,6 @@
|
|
|
7
7
|
*/
|
|
8
8
|
import { Command } from 'ckeditor5/src/core';
|
|
9
9
|
import { getSelectedListItems } from '../list/utils';
|
|
10
|
-
import '../listcommands';
|
|
11
10
|
/**
|
|
12
11
|
* The reversed list command. It changes the `listReversed` attribute of the selected list items. As a result, the list order will be
|
|
13
12
|
* reversed.
|
|
@@ -6,7 +6,6 @@
|
|
|
6
6
|
* @module list/listproperties/liststartcommand
|
|
7
7
|
*/
|
|
8
8
|
import { Command } from 'ckeditor5/src/core';
|
|
9
|
-
import '../listcommands';
|
|
10
9
|
/**
|
|
11
10
|
* The list start index command. It changes the `listStart` attribute of the selected list items.
|
|
12
11
|
* It is used by the {@link module:list/listproperties~ListProperties list properties feature}.
|
|
@@ -7,7 +7,6 @@
|
|
|
7
7
|
*/
|
|
8
8
|
import { Command } from 'ckeditor5/src/core';
|
|
9
9
|
import { getSelectedListItems } from '../list/utils';
|
|
10
|
-
import '../listcommands';
|
|
11
10
|
/**
|
|
12
11
|
* The list start index command. It changes the `listStart` attribute of the selected list items.
|
|
13
12
|
* It is used by the {@link module:list/listproperties~ListProperties list properties feature}.
|
|
@@ -7,7 +7,6 @@
|
|
|
7
7
|
*/
|
|
8
8
|
import { Command } from 'ckeditor5/src/core';
|
|
9
9
|
import { getListTypeFromListStyleType, getSelectedListItems } from '../list/utils';
|
|
10
|
-
import '../listcommands';
|
|
11
10
|
/**
|
|
12
11
|
* The list style command. It changes the `listStyle` attribute of the selected list items.
|
|
13
12
|
*
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
4
|
*/
|
|
5
5
|
/**
|
|
6
|
-
* @module list/ui/collapsibleview
|
|
6
|
+
* @module list/listproperties/ui/collapsibleview
|
|
7
7
|
*/
|
|
8
8
|
import type { Locale } from 'ckeditor5/src/utils';
|
|
9
9
|
import { View, ButtonView, type ViewCollection } from 'ckeditor5/src/ui';
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
4
|
*/
|
|
5
5
|
/**
|
|
6
|
-
* @module list/ui/listpropertiesview
|
|
6
|
+
* @module list/listproperties/ui/listpropertiesview
|
|
7
7
|
*/
|
|
8
8
|
import { View, ViewCollection, FocusCycler, SwitchButtonView, LabeledFieldView, type ButtonView, type InputNumberView } from 'ckeditor5/src/ui';
|
|
9
9
|
import { FocusTracker, KeystrokeHandler, type Locale } from 'ckeditor5/src/utils';
|
|
@@ -136,9 +136,9 @@ export type StylesView = View & {
|
|
|
136
136
|
focus(): void;
|
|
137
137
|
};
|
|
138
138
|
/**
|
|
139
|
-
* Fired when the list start index value has changed via {@link #startIndexFieldView}.
|
|
139
|
+
* Fired when the list start index value has changed via {@link ~ListPropertiesView#startIndexFieldView}.
|
|
140
140
|
*
|
|
141
|
-
* @eventName listStart
|
|
141
|
+
* @eventName ~ListPropertiesView#listStart
|
|
142
142
|
*/
|
|
143
143
|
export type ListPropertiesViewListStartEvent = {
|
|
144
144
|
name: 'listStart';
|
|
@@ -147,9 +147,9 @@ export type ListPropertiesViewListStartEvent = {
|
|
|
147
147
|
}];
|
|
148
148
|
};
|
|
149
149
|
/**
|
|
150
|
-
* Fired when the list order has changed (reversed) via {@link #reversedSwitchButtonView}.
|
|
150
|
+
* Fired when the list order has changed (reversed) via {@link ~ListPropertiesView#reversedSwitchButtonView}.
|
|
151
151
|
*
|
|
152
|
-
* @eventName listReversed
|
|
152
|
+
* @eventName ~ListPropertiesView#listReversed
|
|
153
153
|
*/
|
|
154
154
|
export type ListPropertiesViewListReversedEvent = {
|
|
155
155
|
name: 'listReversed';
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
4
|
*/
|
|
5
5
|
/**
|
|
6
|
-
* @module list/ui/listpropertiesview
|
|
6
|
+
* @module list/listproperties/ui/listpropertiesview
|
|
7
7
|
*/
|
|
8
8
|
import { View, ViewCollection, FocusCycler, SwitchButtonView, LabeledFieldView, createLabeledInputNumber, addKeyboardHandlingForGrid } from 'ckeditor5/src/ui';
|
|
9
9
|
import { FocusTracker, KeystrokeHandler, global } from 'ckeditor5/src/utils';
|
package/src/listproperties.d.ts
CHANGED
|
@@ -6,7 +6,6 @@
|
|
|
6
6
|
* @module list/listproperties
|
|
7
7
|
*/
|
|
8
8
|
import { Plugin, type PluginDependencies } from 'ckeditor5/src/core';
|
|
9
|
-
import './listconfig';
|
|
10
9
|
/**
|
|
11
10
|
* The list properties feature.
|
|
12
11
|
*
|
|
@@ -23,8 +22,3 @@ export default class ListProperties extends Plugin {
|
|
|
23
22
|
*/
|
|
24
23
|
static get pluginName(): 'ListProperties';
|
|
25
24
|
}
|
|
26
|
-
declare module '@ckeditor/ckeditor5-core' {
|
|
27
|
-
interface PluginsMap {
|
|
28
|
-
[ListProperties.pluginName]: ListProperties;
|
|
29
|
-
}
|
|
30
|
-
}
|
package/src/listproperties.js
CHANGED
package/src/liststyle.d.ts
CHANGED
package/src/todolist.d.ts
CHANGED
package/src/listcommands.d.ts
DELETED
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
-
*/
|
|
5
|
-
/**
|
|
6
|
-
* @module list/listcommands
|
|
7
|
-
*/
|
|
8
|
-
import type DocumentListCommand from './documentlist/documentlistcommand';
|
|
9
|
-
import type DocumentListIndentCommand from './documentlist/documentlistindentcommand';
|
|
10
|
-
import type DocumentListMergeCommand from './documentlist/documentlistmergecommand';
|
|
11
|
-
import type DocumentListSplitCommand from './documentlist/documentlistsplitcommand';
|
|
12
|
-
import type DocumentListReversedCommand from './documentlistproperties/documentlistreversedcommand';
|
|
13
|
-
import type DocumentListStartCommand from './documentlistproperties/documentliststartcommand';
|
|
14
|
-
import type DocumentListStyleCommand from './documentlistproperties/documentliststylecommand';
|
|
15
|
-
import type IndentCommand from './list/indentcommand';
|
|
16
|
-
import type ListCommand from './list/listcommand';
|
|
17
|
-
import type ListReversedCommand from './listproperties/listreversedcommand';
|
|
18
|
-
import type ListStartCommand from './listproperties/liststartcommand';
|
|
19
|
-
import type ListStyleCommand from './listproperties/liststylecommand';
|
|
20
|
-
import type CheckTodoListCommand from './todolist/checktodolistcommand';
|
|
21
|
-
declare module '@ckeditor/ckeditor5-core' {
|
|
22
|
-
interface CommandsMap {
|
|
23
|
-
numberedList: ListCommand | DocumentListCommand;
|
|
24
|
-
bulletedList: ListCommand | DocumentListCommand;
|
|
25
|
-
indentList: IndentCommand | DocumentListIndentCommand;
|
|
26
|
-
outdentList: IndentCommand | DocumentListIndentCommand;
|
|
27
|
-
mergeListItemBackward: DocumentListMergeCommand;
|
|
28
|
-
mergeListItemForward: DocumentListMergeCommand;
|
|
29
|
-
splitListItemBefore: DocumentListSplitCommand;
|
|
30
|
-
splitListItemAfter: DocumentListSplitCommand;
|
|
31
|
-
listStyle: ListStyleCommand | DocumentListStyleCommand;
|
|
32
|
-
listStart: ListStartCommand | DocumentListStartCommand;
|
|
33
|
-
listReversed: ListReversedCommand | DocumentListReversedCommand;
|
|
34
|
-
todoList: ListCommand;
|
|
35
|
-
checkTodoList: CheckTodoListCommand;
|
|
36
|
-
}
|
|
37
|
-
}
|
|
File without changes
|