@ckeditor/ckeditor5-list 39.0.1 → 40.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.
- package/CHANGELOG.md +1 -1
- package/LICENSE.md +1 -1
- package/README.md +4 -4
- package/build/list.js +1 -1
- package/build/list.js.map +1 -0
- package/build/translations/fi.js +1 -1
- package/build/translations/pt-br.js +1 -1
- package/ckeditor5-metadata.json +44 -0
- package/lang/translations/ar.po +1 -0
- package/lang/translations/ast.po +1 -0
- package/lang/translations/az.po +1 -0
- package/lang/translations/bg.po +1 -0
- package/lang/translations/bn.po +1 -0
- package/lang/translations/ca.po +1 -0
- package/lang/translations/cs.po +1 -0
- package/lang/translations/da.po +1 -0
- package/lang/translations/de-ch.po +1 -0
- package/lang/translations/de.po +1 -0
- package/lang/translations/el.po +1 -0
- package/lang/translations/en-au.po +1 -0
- package/lang/translations/en-gb.po +1 -0
- package/lang/translations/en.po +1 -0
- package/lang/translations/eo.po +1 -0
- package/lang/translations/es.po +1 -0
- package/lang/translations/et.po +1 -0
- package/lang/translations/eu.po +1 -0
- package/lang/translations/fa.po +1 -0
- package/lang/translations/fi.po +2 -1
- package/lang/translations/fr.po +1 -0
- package/lang/translations/gl.po +1 -0
- package/lang/translations/he.po +1 -0
- package/lang/translations/hi.po +1 -0
- package/lang/translations/hr.po +1 -0
- package/lang/translations/hu.po +1 -0
- package/lang/translations/id.po +1 -0
- package/lang/translations/it.po +1 -0
- package/lang/translations/ja.po +1 -0
- package/lang/translations/jv.po +1 -0
- package/lang/translations/km.po +1 -0
- package/lang/translations/kn.po +1 -0
- package/lang/translations/ko.po +1 -0
- package/lang/translations/ku.po +1 -0
- package/lang/translations/lt.po +1 -0
- package/lang/translations/lv.po +1 -0
- package/lang/translations/ms.po +1 -0
- package/lang/translations/nb.po +1 -0
- package/lang/translations/ne.po +1 -0
- package/lang/translations/nl.po +1 -0
- package/lang/translations/no.po +1 -0
- package/lang/translations/pl.po +1 -0
- package/lang/translations/pt-br.po +11 -10
- package/lang/translations/pt.po +1 -0
- package/lang/translations/ro.po +1 -0
- package/lang/translations/ru.po +1 -0
- package/lang/translations/si.po +1 -0
- package/lang/translations/sk.po +1 -0
- package/lang/translations/sq.po +1 -0
- package/lang/translations/sr-latn.po +1 -0
- package/lang/translations/sr.po +1 -0
- package/lang/translations/sv.po +1 -0
- package/lang/translations/th.po +1 -0
- package/lang/translations/tk.po +1 -0
- package/lang/translations/tr.po +1 -0
- package/lang/translations/tt.po +1 -0
- package/lang/translations/ug.po +1 -0
- package/lang/translations/uk.po +1 -0
- package/lang/translations/ur.po +1 -0
- package/lang/translations/uz.po +1 -0
- package/lang/translations/vi.po +1 -0
- package/lang/translations/zh-cn.po +1 -0
- package/lang/translations/zh.po +1 -0
- package/package.json +3 -7
- package/src/augmentation.d.ts +52 -50
- package/src/augmentation.js +5 -5
- package/src/documentlist/adjacentlistssupport.d.ts +15 -15
- package/src/documentlist/adjacentlistssupport.js +81 -81
- package/src/documentlist/converters.d.ts +65 -63
- package/src/documentlist/converters.js +441 -354
- package/src/documentlist/documentlistcommand.d.ts +80 -80
- package/src/documentlist/documentlistcommand.js +150 -145
- package/src/documentlist/documentlistediting.d.ts +212 -154
- package/src/documentlist/documentlistediting.js +645 -565
- package/src/documentlist/documentlistindentcommand.d.ts +62 -62
- package/src/documentlist/documentlistindentcommand.js +129 -129
- package/src/documentlist/documentlistmergecommand.d.ts +76 -76
- package/src/documentlist/documentlistmergecommand.js +174 -174
- package/src/documentlist/documentlistsplitcommand.d.ts +67 -67
- package/src/documentlist/documentlistsplitcommand.js +70 -70
- package/src/documentlist/documentlistutils.d.ts +46 -46
- package/src/documentlist/documentlistutils.js +50 -50
- package/src/documentlist/utils/listwalker.d.ts +145 -141
- package/src/documentlist/utils/listwalker.js +182 -162
- package/src/documentlist/utils/model.d.ts +202 -193
- package/src/documentlist/utils/model.js +455 -435
- package/src/documentlist/utils/postfixers.d.ts +37 -37
- package/src/documentlist/utils/postfixers.js +126 -118
- package/src/documentlist/utils/view.d.ts +81 -81
- package/src/documentlist/utils/view.js +117 -117
- package/src/documentlist.d.ts +26 -26
- package/src/documentlist.js +30 -30
- package/src/documentlistproperties/converters.d.ts +19 -19
- package/src/documentlistproperties/converters.js +43 -43
- package/src/documentlistproperties/documentlistpropertiesediting.d.ts +88 -88
- package/src/documentlistproperties/documentlistpropertiesediting.js +266 -289
- package/src/documentlistproperties/documentlistpropertiesutils.d.ts +33 -33
- package/src/documentlistproperties/documentlistpropertiesutils.js +44 -44
- package/src/documentlistproperties/documentlistreversedcommand.d.ts +36 -36
- package/src/documentlistproperties/documentlistreversedcommand.js +55 -55
- package/src/documentlistproperties/documentliststartcommand.d.ts +38 -38
- package/src/documentlistproperties/documentliststartcommand.js +57 -57
- package/src/documentlistproperties/documentliststylecommand.d.ts +72 -72
- package/src/documentlistproperties/documentliststylecommand.js +113 -113
- package/src/documentlistproperties/utils/style.d.ts +20 -20
- package/src/documentlistproperties/utils/style.js +54 -54
- package/src/documentlistproperties.d.ts +27 -27
- package/src/documentlistproperties.js +31 -31
- package/src/index.d.ts +43 -40
- package/src/index.js +29 -27
- package/src/list/converters.d.ts +196 -196
- package/src/list/converters.js +905 -905
- package/src/list/indentcommand.d.ts +37 -37
- package/src/list/indentcommand.js +107 -107
- package/src/list/listcommand.d.ts +55 -55
- package/src/list/listcommand.js +274 -274
- package/src/list/listediting.d.ts +32 -32
- package/src/list/listediting.js +161 -161
- package/src/list/listui.d.ts +19 -19
- package/src/list/listui.js +32 -32
- package/src/list/listutils.d.ts +41 -41
- package/src/list/listutils.js +46 -46
- package/src/list/utils.d.ts +112 -112
- package/src/list/utils.js +374 -374
- package/src/list.d.ts +26 -26
- package/src/list.js +30 -30
- package/src/listconfig.d.ts +132 -122
- package/src/listconfig.js +5 -5
- package/src/listproperties/listpropertiesediting.d.ts +72 -72
- package/src/listproperties/listpropertiesediting.js +696 -696
- package/src/listproperties/listpropertiesui.d.ts +23 -23
- package/src/listproperties/listpropertiesui.js +277 -277
- package/src/listproperties/listreversedcommand.d.ts +38 -38
- package/src/listproperties/listreversedcommand.js +52 -52
- package/src/listproperties/liststartcommand.d.ts +37 -37
- package/src/listproperties/liststartcommand.js +51 -51
- package/src/listproperties/liststylecommand.d.ts +67 -67
- package/src/listproperties/liststylecommand.js +99 -99
- package/src/listproperties/ui/collapsibleview.d.ts +63 -63
- package/src/listproperties/ui/collapsibleview.js +89 -89
- package/src/listproperties/ui/listpropertiesview.d.ts +157 -157
- package/src/listproperties/ui/listpropertiesview.js +299 -299
- package/src/listproperties.d.ts +26 -26
- package/src/listproperties.js +30 -30
- package/src/liststyle.d.ts +28 -28
- package/src/liststyle.js +36 -36
- package/src/tododocumentlist/checktododocumentlistcommand.d.ts +49 -0
- package/src/tododocumentlist/checktododocumentlistcommand.js +82 -0
- package/src/tododocumentlist/todocheckboxchangeobserver.d.ts +41 -0
- package/src/tododocumentlist/todocheckboxchangeobserver.js +37 -0
- package/src/tododocumentlist/tododocumentlistediting.d.ts +38 -0
- package/src/tododocumentlist/tododocumentlistediting.js +399 -0
- package/src/tododocumentlist.d.ts +27 -0
- package/src/tododocumentlist.js +31 -0
- package/src/todolist/checktodolistcommand.d.ts +52 -52
- package/src/todolist/checktodolistcommand.js +76 -76
- package/src/todolist/todolistconverters.d.ts +82 -82
- package/src/todolist/todolistconverters.js +260 -260
- package/src/todolist/todolistediting.d.ts +39 -39
- package/src/todolist/todolistediting.js +161 -161
- package/src/todolist/todolistui.d.ts +19 -19
- package/src/todolist/todolistui.js +29 -29
- package/src/todolist.d.ts +27 -27
- package/src/todolist.js +31 -31
- package/theme/todolist.css +101 -70
package/lang/translations/sr.po
CHANGED
|
@@ -15,6 +15,7 @@ msgstr ""
|
|
|
15
15
|
"Language-Team: Serbian (https://app.transifex.com/ckeditor/teams/11143/sr/)\n"
|
|
16
16
|
"Language: sr\n"
|
|
17
17
|
"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n"
|
|
18
|
+
"Content-Type: text/plain; charset=UTF-8\n"
|
|
18
19
|
|
|
19
20
|
msgctxt "Toolbar button tooltip for the Numbered List feature."
|
|
20
21
|
msgid "Numbered List"
|
package/lang/translations/sv.po
CHANGED
|
@@ -15,6 +15,7 @@ msgstr ""
|
|
|
15
15
|
"Language-Team: Swedish (https://app.transifex.com/ckeditor/teams/11143/sv/)\n"
|
|
16
16
|
"Language: sv\n"
|
|
17
17
|
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
|
18
|
+
"Content-Type: text/plain; charset=UTF-8\n"
|
|
18
19
|
|
|
19
20
|
msgctxt "Toolbar button tooltip for the Numbered List feature."
|
|
20
21
|
msgid "Numbered List"
|
package/lang/translations/th.po
CHANGED
|
@@ -15,6 +15,7 @@ msgstr ""
|
|
|
15
15
|
"Language-Team: Thai (https://app.transifex.com/ckeditor/teams/11143/th/)\n"
|
|
16
16
|
"Language: th\n"
|
|
17
17
|
"Plural-Forms: nplurals=1; plural=0;\n"
|
|
18
|
+
"Content-Type: text/plain; charset=UTF-8\n"
|
|
18
19
|
|
|
19
20
|
msgctxt "Toolbar button tooltip for the Numbered List feature."
|
|
20
21
|
msgid "Numbered List"
|
package/lang/translations/tk.po
CHANGED
|
@@ -15,6 +15,7 @@ msgstr ""
|
|
|
15
15
|
"Language-Team: Turkmen (https://app.transifex.com/ckeditor/teams/11143/tk/)\n"
|
|
16
16
|
"Language: tk\n"
|
|
17
17
|
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
|
18
|
+
"Content-Type: text/plain; charset=UTF-8\n"
|
|
18
19
|
|
|
19
20
|
msgctxt "Toolbar button tooltip for the Numbered List feature."
|
|
20
21
|
msgid "Numbered List"
|
package/lang/translations/tr.po
CHANGED
|
@@ -15,6 +15,7 @@ msgstr ""
|
|
|
15
15
|
"Language-Team: Turkish (https://app.transifex.com/ckeditor/teams/11143/tr/)\n"
|
|
16
16
|
"Language: tr\n"
|
|
17
17
|
"Plural-Forms: nplurals=2; plural=(n > 1);\n"
|
|
18
|
+
"Content-Type: text/plain; charset=UTF-8\n"
|
|
18
19
|
|
|
19
20
|
msgctxt "Toolbar button tooltip for the Numbered List feature."
|
|
20
21
|
msgid "Numbered List"
|
package/lang/translations/tt.po
CHANGED
|
@@ -15,6 +15,7 @@ msgstr ""
|
|
|
15
15
|
"Language-Team: Tatar (https://app.transifex.com/ckeditor/teams/11143/tt/)\n"
|
|
16
16
|
"Language: tt\n"
|
|
17
17
|
"Plural-Forms: nplurals=1; plural=0;\n"
|
|
18
|
+
"Content-Type: text/plain; charset=UTF-8\n"
|
|
18
19
|
|
|
19
20
|
msgctxt "Toolbar button tooltip for the Numbered List feature."
|
|
20
21
|
msgid "Numbered List"
|
package/lang/translations/ug.po
CHANGED
|
@@ -15,6 +15,7 @@ msgstr ""
|
|
|
15
15
|
"Language-Team: Uyghur (https://app.transifex.com/ckeditor/teams/11143/ug/)\n"
|
|
16
16
|
"Language: ug\n"
|
|
17
17
|
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
|
18
|
+
"Content-Type: text/plain; charset=UTF-8\n"
|
|
18
19
|
|
|
19
20
|
msgctxt "Toolbar button tooltip for the Numbered List feature."
|
|
20
21
|
msgid "Numbered List"
|
package/lang/translations/uk.po
CHANGED
|
@@ -15,6 +15,7 @@ msgstr ""
|
|
|
15
15
|
"Language-Team: Ukrainian (https://app.transifex.com/ckeditor/teams/11143/uk/)\n"
|
|
16
16
|
"Language: uk\n"
|
|
17
17
|
"Plural-Forms: nplurals=4; plural=(n % 1 == 0 && n % 10 == 1 && n % 100 != 11 ? 0 : n % 1 == 0 && n % 10 >= 2 && n % 10 <= 4 && (n % 100 < 12 || n % 100 > 14) ? 1 : n % 1 == 0 && (n % 10 ==0 || (n % 10 >=5 && n % 10 <=9) || (n % 100 >=11 && n % 100 <=14 )) ? 2: 3);\n"
|
|
18
|
+
"Content-Type: text/plain; charset=UTF-8\n"
|
|
18
19
|
|
|
19
20
|
msgctxt "Toolbar button tooltip for the Numbered List feature."
|
|
20
21
|
msgid "Numbered List"
|
package/lang/translations/ur.po
CHANGED
|
@@ -15,6 +15,7 @@ msgstr ""
|
|
|
15
15
|
"Language-Team: Urdu (https://app.transifex.com/ckeditor/teams/11143/ur/)\n"
|
|
16
16
|
"Language: ur\n"
|
|
17
17
|
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
|
18
|
+
"Content-Type: text/plain; charset=UTF-8\n"
|
|
18
19
|
|
|
19
20
|
msgctxt "Toolbar button tooltip for the Numbered List feature."
|
|
20
21
|
msgid "Numbered List"
|
package/lang/translations/uz.po
CHANGED
|
@@ -15,6 +15,7 @@ msgstr ""
|
|
|
15
15
|
"Language-Team: Uzbek (https://app.transifex.com/ckeditor/teams/11143/uz/)\n"
|
|
16
16
|
"Language: uz\n"
|
|
17
17
|
"Plural-Forms: nplurals=1; plural=0;\n"
|
|
18
|
+
"Content-Type: text/plain; charset=UTF-8\n"
|
|
18
19
|
|
|
19
20
|
msgctxt "Toolbar button tooltip for the Numbered List feature."
|
|
20
21
|
msgid "Numbered List"
|
package/lang/translations/vi.po
CHANGED
|
@@ -15,6 +15,7 @@ msgstr ""
|
|
|
15
15
|
"Language-Team: Vietnamese (https://app.transifex.com/ckeditor/teams/11143/vi/)\n"
|
|
16
16
|
"Language: vi\n"
|
|
17
17
|
"Plural-Forms: nplurals=1; plural=0;\n"
|
|
18
|
+
"Content-Type: text/plain; charset=UTF-8\n"
|
|
18
19
|
|
|
19
20
|
msgctxt "Toolbar button tooltip for the Numbered List feature."
|
|
20
21
|
msgid "Numbered List"
|
|
@@ -15,6 +15,7 @@ msgstr ""
|
|
|
15
15
|
"Language-Team: Chinese (China) (https://app.transifex.com/ckeditor/teams/11143/zh_CN/)\n"
|
|
16
16
|
"Language: zh_CN\n"
|
|
17
17
|
"Plural-Forms: nplurals=1; plural=0;\n"
|
|
18
|
+
"Content-Type: text/plain; charset=UTF-8\n"
|
|
18
19
|
|
|
19
20
|
msgctxt "Toolbar button tooltip for the Numbered List feature."
|
|
20
21
|
msgid "Numbered List"
|
package/lang/translations/zh.po
CHANGED
|
@@ -15,6 +15,7 @@ msgstr ""
|
|
|
15
15
|
"Language-Team: Chinese (Taiwan) (https://app.transifex.com/ckeditor/teams/11143/zh_TW/)\n"
|
|
16
16
|
"Language: zh_TW\n"
|
|
17
17
|
"Plural-Forms: nplurals=1; plural=0;\n"
|
|
18
|
+
"Content-Type: text/plain; charset=UTF-8\n"
|
|
18
19
|
|
|
19
20
|
msgctxt "Toolbar button tooltip for the Numbered List feature."
|
|
20
21
|
msgid "Numbered List"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ckeditor/ckeditor5-list",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "40.0.0",
|
|
4
4
|
"description": "Ordered and unordered lists feature to CKEditor 5.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ckeditor",
|
|
@@ -12,12 +12,8 @@
|
|
|
12
12
|
],
|
|
13
13
|
"main": "src/index.js",
|
|
14
14
|
"dependencies": {
|
|
15
|
-
"ckeditor5": "
|
|
16
|
-
"@ckeditor/ckeditor5-ui": "
|
|
17
|
-
},
|
|
18
|
-
"engines": {
|
|
19
|
-
"node": ">=16.0.0",
|
|
20
|
-
"npm": ">=5.7.1"
|
|
15
|
+
"ckeditor5": "40.0.0",
|
|
16
|
+
"@ckeditor/ckeditor5-ui": "40.0.0"
|
|
21
17
|
},
|
|
22
18
|
"author": "CKSource (http://cksource.com/)",
|
|
23
19
|
"license": "GPL-2.0-or-later",
|
package/src/augmentation.d.ts
CHANGED
|
@@ -1,50 +1,52 @@
|
|
|
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, 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
|
-
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
|
-
[AdjacentListsSupport.pluginName]: AdjacentListsSupport;
|
|
23
|
-
[List.pluginName]: List;
|
|
24
|
-
[ListEditing.pluginName]: ListEditing;
|
|
25
|
-
[ListProperties.pluginName]: ListProperties;
|
|
26
|
-
[ListPropertiesEditing.pluginName]: ListPropertiesEditing;
|
|
27
|
-
[ListPropertiesUI.pluginName]: ListPropertiesUI;
|
|
28
|
-
[ListStyle.pluginName]: ListStyle;
|
|
29
|
-
[ListUI.pluginName]: ListUI;
|
|
30
|
-
[ListUtils.pluginName]: ListUtils;
|
|
31
|
-
[TodoList.pluginName]: TodoList;
|
|
32
|
-
[TodoListEditing.pluginName]: TodoListEditing;
|
|
33
|
-
[TodoListUI.pluginName]: TodoListUI;
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
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, AdjacentListsSupport, DocumentListUtils, ListConfig, List, ListEditing, ListProperties, ListPropertiesEditing, ListPropertiesUI, ListStyle, ListUI, ListUtils, TodoList, TodoListEditing, TodoListUI, TodoDocumentList, TodoDocumentListEditing, ListCommand, DocumentListCommand, IndentCommand, DocumentListIndentCommand, DocumentListMergeCommand, DocumentListSplitCommand, ListStyleCommand, DocumentListStyleCommand, ListStartCommand, DocumentListStartCommand, ListReversedCommand, DocumentListReversedCommand, CheckTodoListCommand, CheckTodoDocumentListCommand } 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
|
+
[AdjacentListsSupport.pluginName]: AdjacentListsSupport;
|
|
23
|
+
[List.pluginName]: List;
|
|
24
|
+
[ListEditing.pluginName]: ListEditing;
|
|
25
|
+
[ListProperties.pluginName]: ListProperties;
|
|
26
|
+
[ListPropertiesEditing.pluginName]: ListPropertiesEditing;
|
|
27
|
+
[ListPropertiesUI.pluginName]: ListPropertiesUI;
|
|
28
|
+
[ListStyle.pluginName]: ListStyle;
|
|
29
|
+
[ListUI.pluginName]: ListUI;
|
|
30
|
+
[ListUtils.pluginName]: ListUtils;
|
|
31
|
+
[TodoList.pluginName]: TodoList;
|
|
32
|
+
[TodoListEditing.pluginName]: TodoListEditing;
|
|
33
|
+
[TodoListUI.pluginName]: TodoListUI;
|
|
34
|
+
[TodoDocumentList.pluginName]: TodoDocumentList;
|
|
35
|
+
[TodoDocumentListEditing.pluginName]: TodoDocumentListEditing;
|
|
36
|
+
}
|
|
37
|
+
interface CommandsMap {
|
|
38
|
+
numberedList: ListCommand | DocumentListCommand;
|
|
39
|
+
bulletedList: ListCommand | DocumentListCommand;
|
|
40
|
+
indentList: IndentCommand | DocumentListIndentCommand;
|
|
41
|
+
outdentList: IndentCommand | DocumentListIndentCommand;
|
|
42
|
+
mergeListItemBackward: DocumentListMergeCommand;
|
|
43
|
+
mergeListItemForward: DocumentListMergeCommand;
|
|
44
|
+
splitListItemBefore: DocumentListSplitCommand;
|
|
45
|
+
splitListItemAfter: DocumentListSplitCommand;
|
|
46
|
+
listStyle: ListStyleCommand | DocumentListStyleCommand;
|
|
47
|
+
listStart: ListStartCommand | DocumentListStartCommand;
|
|
48
|
+
listReversed: ListReversedCommand | DocumentListReversedCommand;
|
|
49
|
+
todoList: ListCommand | DocumentListCommand;
|
|
50
|
+
checkTodoList: CheckTodoListCommand | CheckTodoDocumentListCommand;
|
|
51
|
+
}
|
|
52
|
+
}
|
package/src/augmentation.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
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
|
-
export {};
|
|
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
|
+
export {};
|
|
@@ -1,15 +1,15 @@
|
|
|
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 { Plugin } from 'ckeditor5/src/core';
|
|
6
|
-
export default class AdjacentListsSupport extends Plugin {
|
|
7
|
-
/**
|
|
8
|
-
* @inheritDoc
|
|
9
|
-
*/
|
|
10
|
-
static get pluginName(): "AdjacentListsSupport";
|
|
11
|
-
/**
|
|
12
|
-
* @inheritDoc
|
|
13
|
-
*/
|
|
14
|
-
init(): void;
|
|
15
|
-
}
|
|
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 { Plugin } from 'ckeditor5/src/core';
|
|
6
|
+
export default class AdjacentListsSupport extends Plugin {
|
|
7
|
+
/**
|
|
8
|
+
* @inheritDoc
|
|
9
|
+
*/
|
|
10
|
+
static get pluginName(): "AdjacentListsSupport";
|
|
11
|
+
/**
|
|
12
|
+
* @inheritDoc
|
|
13
|
+
*/
|
|
14
|
+
init(): void;
|
|
15
|
+
}
|
|
@@ -1,81 +1,81 @@
|
|
|
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 { Plugin } from 'ckeditor5/src/core';
|
|
6
|
-
export default class AdjacentListsSupport extends Plugin {
|
|
7
|
-
/**
|
|
8
|
-
* @inheritDoc
|
|
9
|
-
*/
|
|
10
|
-
static get pluginName() {
|
|
11
|
-
return 'AdjacentListsSupport';
|
|
12
|
-
}
|
|
13
|
-
/**
|
|
14
|
-
* @inheritDoc
|
|
15
|
-
*/
|
|
16
|
-
init() {
|
|
17
|
-
const editor = this.editor;
|
|
18
|
-
const model = editor.model;
|
|
19
|
-
model.schema.register('listSeparator', {
|
|
20
|
-
allowWhere: '$block',
|
|
21
|
-
isBlock: true
|
|
22
|
-
});
|
|
23
|
-
editor.conversion.for('upcast')
|
|
24
|
-
// Add `listSeparator` element between similar list elements on upcast.
|
|
25
|
-
.add(dispatcher => {
|
|
26
|
-
dispatcher.on('element:ol', listSeparatorUpcastConverter());
|
|
27
|
-
dispatcher.on('element:ul', listSeparatorUpcastConverter());
|
|
28
|
-
})
|
|
29
|
-
// View to model transformation.
|
|
30
|
-
.elementToElement({
|
|
31
|
-
model: 'listSeparator',
|
|
32
|
-
view: 'ck-list-separator'
|
|
33
|
-
});
|
|
34
|
-
// The `listSeparator` element should exist in the view, but should be invisible (hidden).
|
|
35
|
-
editor.conversion.for('editingDowncast').elementToElement({
|
|
36
|
-
model: 'listSeparator',
|
|
37
|
-
view: {
|
|
38
|
-
name: 'div',
|
|
39
|
-
classes: ['ck-list-separator', 'ck-hidden']
|
|
40
|
-
}
|
|
41
|
-
});
|
|
42
|
-
// The `listSeparator` element should not exist in output data.
|
|
43
|
-
editor.conversion.for('dataDowncast').elementToElement({
|
|
44
|
-
model: 'listSeparator',
|
|
45
|
-
view: (modelElement, conversionApi) => {
|
|
46
|
-
const viewElement = conversionApi.writer.createContainerElement('ck-list-separator');
|
|
47
|
-
conversionApi.writer.setCustomProperty('dataPipeline:transparentRendering', true, viewElement);
|
|
48
|
-
viewElement.getFillerOffset = () => null;
|
|
49
|
-
return viewElement;
|
|
50
|
-
}
|
|
51
|
-
});
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
/**
|
|
55
|
-
* Inserts a `listSeparator` element between two lists of the same type (`ol` + `ol` or `ul` + `ul`).
|
|
56
|
-
*/
|
|
57
|
-
function listSeparatorUpcastConverter() {
|
|
58
|
-
return (evt, data, conversionApi) => {
|
|
59
|
-
const element = data.viewItem;
|
|
60
|
-
const nextSibling = element.nextSibling;
|
|
61
|
-
if (!nextSibling) {
|
|
62
|
-
return;
|
|
63
|
-
}
|
|
64
|
-
if (element.name !== nextSibling.name) {
|
|
65
|
-
return;
|
|
66
|
-
}
|
|
67
|
-
if (!data.modelRange) {
|
|
68
|
-
Object.assign(data, conversionApi.convertChildren(data.viewItem, data.modelCursor));
|
|
69
|
-
}
|
|
70
|
-
const writer = conversionApi.writer;
|
|
71
|
-
const modelElement = writer.createElement('listSeparator');
|
|
72
|
-
// Try to insert `listSeparator` element on the current model cursor position.
|
|
73
|
-
if (!conversionApi.safeInsert(modelElement, data.modelCursor)) {
|
|
74
|
-
return;
|
|
75
|
-
}
|
|
76
|
-
const parts = conversionApi.getSplitParts(modelElement);
|
|
77
|
-
// Extend model range with the range of the created listSeparator element.
|
|
78
|
-
data.modelRange = writer.createRange(data.modelRange.start, writer.createPositionAfter(parts[parts.length - 1]));
|
|
79
|
-
conversionApi.updateConversionResult(modelElement, data);
|
|
80
|
-
};
|
|
81
|
-
}
|
|
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 { Plugin } from 'ckeditor5/src/core';
|
|
6
|
+
export default class AdjacentListsSupport extends Plugin {
|
|
7
|
+
/**
|
|
8
|
+
* @inheritDoc
|
|
9
|
+
*/
|
|
10
|
+
static get pluginName() {
|
|
11
|
+
return 'AdjacentListsSupport';
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* @inheritDoc
|
|
15
|
+
*/
|
|
16
|
+
init() {
|
|
17
|
+
const editor = this.editor;
|
|
18
|
+
const model = editor.model;
|
|
19
|
+
model.schema.register('listSeparator', {
|
|
20
|
+
allowWhere: '$block',
|
|
21
|
+
isBlock: true
|
|
22
|
+
});
|
|
23
|
+
editor.conversion.for('upcast')
|
|
24
|
+
// Add `listSeparator` element between similar list elements on upcast.
|
|
25
|
+
.add(dispatcher => {
|
|
26
|
+
dispatcher.on('element:ol', listSeparatorUpcastConverter());
|
|
27
|
+
dispatcher.on('element:ul', listSeparatorUpcastConverter());
|
|
28
|
+
})
|
|
29
|
+
// View to model transformation.
|
|
30
|
+
.elementToElement({
|
|
31
|
+
model: 'listSeparator',
|
|
32
|
+
view: 'ck-list-separator'
|
|
33
|
+
});
|
|
34
|
+
// The `listSeparator` element should exist in the view, but should be invisible (hidden).
|
|
35
|
+
editor.conversion.for('editingDowncast').elementToElement({
|
|
36
|
+
model: 'listSeparator',
|
|
37
|
+
view: {
|
|
38
|
+
name: 'div',
|
|
39
|
+
classes: ['ck-list-separator', 'ck-hidden']
|
|
40
|
+
}
|
|
41
|
+
});
|
|
42
|
+
// The `listSeparator` element should not exist in output data.
|
|
43
|
+
editor.conversion.for('dataDowncast').elementToElement({
|
|
44
|
+
model: 'listSeparator',
|
|
45
|
+
view: (modelElement, conversionApi) => {
|
|
46
|
+
const viewElement = conversionApi.writer.createContainerElement('ck-list-separator');
|
|
47
|
+
conversionApi.writer.setCustomProperty('dataPipeline:transparentRendering', true, viewElement);
|
|
48
|
+
viewElement.getFillerOffset = () => null;
|
|
49
|
+
return viewElement;
|
|
50
|
+
}
|
|
51
|
+
});
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* Inserts a `listSeparator` element between two lists of the same type (`ol` + `ol` or `ul` + `ul`).
|
|
56
|
+
*/
|
|
57
|
+
function listSeparatorUpcastConverter() {
|
|
58
|
+
return (evt, data, conversionApi) => {
|
|
59
|
+
const element = data.viewItem;
|
|
60
|
+
const nextSibling = element.nextSibling;
|
|
61
|
+
if (!nextSibling) {
|
|
62
|
+
return;
|
|
63
|
+
}
|
|
64
|
+
if (element.name !== nextSibling.name) {
|
|
65
|
+
return;
|
|
66
|
+
}
|
|
67
|
+
if (!data.modelRange) {
|
|
68
|
+
Object.assign(data, conversionApi.convertChildren(data.viewItem, data.modelCursor));
|
|
69
|
+
}
|
|
70
|
+
const writer = conversionApi.writer;
|
|
71
|
+
const modelElement = writer.createElement('listSeparator');
|
|
72
|
+
// Try to insert `listSeparator` element on the current model cursor position.
|
|
73
|
+
if (!conversionApi.safeInsert(modelElement, data.modelCursor)) {
|
|
74
|
+
return;
|
|
75
|
+
}
|
|
76
|
+
const parts = conversionApi.getSplitParts(modelElement);
|
|
77
|
+
// Extend model range with the range of the created listSeparator element.
|
|
78
|
+
data.modelRange = writer.createRange(data.modelRange.start, writer.createPositionAfter(parts[parts.length - 1]));
|
|
79
|
+
conversionApi.updateConversionResult(modelElement, data);
|
|
80
|
+
};
|
|
81
|
+
}
|
|
@@ -1,63 +1,65 @@
|
|
|
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/documentlist/converters
|
|
7
|
-
*/
|
|
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
|
-
/**
|
|
13
|
-
* Returns the upcast converter for list items. It's supposed to work after the block converters (content inside list items) are converted.
|
|
14
|
-
*
|
|
15
|
-
* @internal
|
|
16
|
-
*/
|
|
17
|
-
export declare function listItemUpcastConverter(): GetCallback<UpcastElementEvent>;
|
|
18
|
-
/**
|
|
19
|
-
* Returns the upcast converter for the `<ul>` and `<ol>` view elements that cleans the input view of garbage.
|
|
20
|
-
* This is mostly to clean whitespaces from between the `<li>` view elements inside the view list element. However,
|
|
21
|
-
* incorrect data can also be cleared if the view was incorrect.
|
|
22
|
-
*
|
|
23
|
-
* @internal
|
|
24
|
-
*/
|
|
25
|
-
export declare function listUpcastCleanList(): GetCallback<UpcastElementEvent>;
|
|
26
|
-
/**
|
|
27
|
-
* Returns a model document change:data event listener that triggers conversion of related items if needed.
|
|
28
|
-
*
|
|
29
|
-
* @internal
|
|
30
|
-
* @param model The editor model.
|
|
31
|
-
* @param editing The editing controller.
|
|
32
|
-
* @param attributeNames The list of all model list attributes (including registered strategies).
|
|
33
|
-
* @param documentListEditing The document list editing plugin.
|
|
34
|
-
*/
|
|
35
|
-
export declare function reconvertItemsOnDataChange(model: Model, editing: EditingController, attributeNames: Array<string>, documentListEditing: DocumentListEditing): () => void;
|
|
36
|
-
/**
|
|
37
|
-
* Returns the list item downcast converter.
|
|
38
|
-
*
|
|
39
|
-
* @internal
|
|
40
|
-
* @param attributeNames A list of attribute names that should be converted if they are set.
|
|
41
|
-
* @param strategies The strategies.
|
|
42
|
-
* @param model The model.
|
|
43
|
-
*/
|
|
44
|
-
export declare function listItemDowncastConverter(attributeNames: Array<string>, strategies: Array<DowncastStrategy>, model: Model
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
*
|
|
49
|
-
*
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
*
|
|
58
|
-
*
|
|
59
|
-
*
|
|
60
|
-
* @
|
|
61
|
-
* @param
|
|
62
|
-
|
|
63
|
-
|
|
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/documentlist/converters
|
|
7
|
+
*/
|
|
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
|
+
/**
|
|
13
|
+
* Returns the upcast converter for list items. It's supposed to work after the block converters (content inside list items) are converted.
|
|
14
|
+
*
|
|
15
|
+
* @internal
|
|
16
|
+
*/
|
|
17
|
+
export declare function listItemUpcastConverter(): GetCallback<UpcastElementEvent>;
|
|
18
|
+
/**
|
|
19
|
+
* Returns the upcast converter for the `<ul>` and `<ol>` view elements that cleans the input view of garbage.
|
|
20
|
+
* This is mostly to clean whitespaces from between the `<li>` view elements inside the view list element. However,
|
|
21
|
+
* incorrect data can also be cleared if the view was incorrect.
|
|
22
|
+
*
|
|
23
|
+
* @internal
|
|
24
|
+
*/
|
|
25
|
+
export declare function listUpcastCleanList(): GetCallback<UpcastElementEvent>;
|
|
26
|
+
/**
|
|
27
|
+
* Returns a model document change:data event listener that triggers conversion of related items if needed.
|
|
28
|
+
*
|
|
29
|
+
* @internal
|
|
30
|
+
* @param model The editor model.
|
|
31
|
+
* @param editing The editing controller.
|
|
32
|
+
* @param attributeNames The list of all model list attributes (including registered strategies).
|
|
33
|
+
* @param documentListEditing The document list editing plugin.
|
|
34
|
+
*/
|
|
35
|
+
export declare function reconvertItemsOnDataChange(model: Model, editing: EditingController, attributeNames: Array<string>, documentListEditing: DocumentListEditing): () => void;
|
|
36
|
+
/**
|
|
37
|
+
* Returns the list item downcast converter.
|
|
38
|
+
*
|
|
39
|
+
* @internal
|
|
40
|
+
* @param attributeNames A list of attribute names that should be converted if they are set.
|
|
41
|
+
* @param strategies The strategies.
|
|
42
|
+
* @param model The model.
|
|
43
|
+
*/
|
|
44
|
+
export declare function listItemDowncastConverter(attributeNames: Array<string>, strategies: Array<DowncastStrategy>, model: Model, { dataPipeline }?: {
|
|
45
|
+
dataPipeline?: boolean;
|
|
46
|
+
}): GetCallback<DowncastAttributeEvent<ListElement>>;
|
|
47
|
+
/**
|
|
48
|
+
* Returns the bogus paragraph view element creator. A bogus paragraph is used if a list item contains only a single block or nested list.
|
|
49
|
+
*
|
|
50
|
+
* @internal
|
|
51
|
+
* @param attributeNames The list of all model list attributes (including registered strategies).
|
|
52
|
+
*/
|
|
53
|
+
export declare function bogusParagraphCreator(attributeNames: Array<string>, { dataPipeline }?: {
|
|
54
|
+
dataPipeline?: boolean;
|
|
55
|
+
}): ElementCreatorFunction;
|
|
56
|
+
/**
|
|
57
|
+
* Helper for mapping mode to view elements. It's using positions mapping instead of mapper.toViewElement( element )
|
|
58
|
+
* to find outermost view element. This is for cases when mapping is using inner view element like in the code blocks (pre > code).
|
|
59
|
+
*
|
|
60
|
+
* @internal
|
|
61
|
+
* @param element The model element.
|
|
62
|
+
* @param mapper The mapper instance.
|
|
63
|
+
* @param model The model.
|
|
64
|
+
*/
|
|
65
|
+
export declare function findMappedViewElement(element: Element, mapper: Mapper, model: Model): ViewElement | null;
|