UNPKG

2.86 kBTypeScriptView Raw
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 */
5import 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 '.';
6declare 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}