@ckeditor/ckeditor5-indent 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.
Files changed (80) hide show
  1. package/LICENSE.md +1 -1
  2. package/README.md +3 -3
  3. package/build/indent.js +1 -1
  4. package/build/indent.js.map +1 -0
  5. package/lang/translations/ar.po +1 -0
  6. package/lang/translations/az.po +1 -0
  7. package/lang/translations/bg.po +1 -0
  8. package/lang/translations/bn.po +1 -0
  9. package/lang/translations/ca.po +1 -0
  10. package/lang/translations/cs.po +1 -0
  11. package/lang/translations/da.po +1 -0
  12. package/lang/translations/de-ch.po +1 -0
  13. package/lang/translations/de.po +1 -0
  14. package/lang/translations/el.po +1 -0
  15. package/lang/translations/en-au.po +1 -0
  16. package/lang/translations/en-gb.po +1 -0
  17. package/lang/translations/en.po +1 -0
  18. package/lang/translations/es.po +1 -0
  19. package/lang/translations/et.po +1 -0
  20. package/lang/translations/fa.po +1 -0
  21. package/lang/translations/fi.po +1 -0
  22. package/lang/translations/fr.po +1 -0
  23. package/lang/translations/gl.po +1 -0
  24. package/lang/translations/he.po +1 -0
  25. package/lang/translations/hi.po +1 -0
  26. package/lang/translations/hr.po +1 -0
  27. package/lang/translations/hu.po +1 -0
  28. package/lang/translations/id.po +1 -0
  29. package/lang/translations/it.po +1 -0
  30. package/lang/translations/ja.po +1 -0
  31. package/lang/translations/ko.po +1 -0
  32. package/lang/translations/ku.po +1 -0
  33. package/lang/translations/lt.po +1 -0
  34. package/lang/translations/lv.po +1 -0
  35. package/lang/translations/ms.po +1 -0
  36. package/lang/translations/ne.po +1 -0
  37. package/lang/translations/nl.po +1 -0
  38. package/lang/translations/no.po +1 -0
  39. package/lang/translations/pl.po +1 -0
  40. package/lang/translations/pt-br.po +1 -0
  41. package/lang/translations/pt.po +1 -0
  42. package/lang/translations/ro.po +1 -0
  43. package/lang/translations/ru.po +1 -0
  44. package/lang/translations/sk.po +1 -0
  45. package/lang/translations/sr-latn.po +1 -0
  46. package/lang/translations/sr.po +1 -0
  47. package/lang/translations/sv.po +1 -0
  48. package/lang/translations/th.po +1 -0
  49. package/lang/translations/tk.po +1 -0
  50. package/lang/translations/tr.po +1 -0
  51. package/lang/translations/ug.po +1 -0
  52. package/lang/translations/uk.po +1 -0
  53. package/lang/translations/ur.po +1 -0
  54. package/lang/translations/uz.po +1 -0
  55. package/lang/translations/vi.po +1 -0
  56. package/lang/translations/zh-cn.po +1 -0
  57. package/lang/translations/zh.po +1 -0
  58. package/package.json +2 -6
  59. package/src/augmentation.d.ts +24 -24
  60. package/src/augmentation.js +5 -5
  61. package/src/indent.d.ts +40 -40
  62. package/src/indent.js +44 -44
  63. package/src/indentblock.d.ts +42 -42
  64. package/src/indentblock.js +147 -142
  65. package/src/indentblockcommand.d.ts +56 -45
  66. package/src/indentblockcommand.js +98 -78
  67. package/src/indentcommandbehavior/indentbehavior.d.ts +25 -21
  68. package/src/indentcommandbehavior/indentbehavior.js +5 -5
  69. package/src/indentcommandbehavior/indentusingclasses.d.ts +39 -39
  70. package/src/indentcommandbehavior/indentusingclasses.js +39 -39
  71. package/src/indentcommandbehavior/indentusingoffset.d.ts +45 -45
  72. package/src/indentcommandbehavior/indentusingoffset.js +42 -42
  73. package/src/indentconfig.d.ts +72 -72
  74. package/src/indentconfig.js +5 -5
  75. package/src/indentediting.d.ts +26 -26
  76. package/src/indentediting.js +32 -32
  77. package/src/indentui.d.ts +27 -27
  78. package/src/indentui.js +60 -60
  79. package/src/index.d.ts +14 -14
  80. package/src/index.js +12 -12
@@ -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 increase indentation feature."
20
21
  msgid "Increase indent"
@@ -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 increase indentation feature."
20
21
  msgid "Increase indent"
@@ -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 increase indentation feature."
20
21
  msgid "Increase indent"
@@ -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 increase indentation feature."
20
21
  msgid "Increase indent"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-indent",
3
- "version": "39.0.1",
3
+ "version": "40.0.0",
4
4
  "description": "Block indentation feature for CKEditor 5.",
5
5
  "keywords": [
6
6
  "ckeditor",
@@ -12,11 +12,7 @@
12
12
  ],
13
13
  "main": "src/index.js",
14
14
  "dependencies": {
15
- "ckeditor5": "39.0.1"
16
- },
17
- "engines": {
18
- "node": ">=16.0.0",
19
- "npm": ">=5.7.1"
15
+ "ckeditor5": "40.0.0"
20
16
  },
21
17
  "author": "CKSource (http://cksource.com/)",
22
18
  "license": "GPL-2.0-or-later",
@@ -1,24 +1,24 @@
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 { IndentBlockConfig, Indent, IndentBlock, IndentUI, IndentBlockCommand } from './index';
6
- declare module '@ckeditor/ckeditor5-core' {
7
- interface EditorConfig {
8
- /**
9
- * The configuration of the {@link module:indent/indentblock~IndentBlock block indentation feature}.
10
- *
11
- * Read more in {@link module:indent/indentconfig~IndentBlockConfig}.
12
- */
13
- indentBlock?: IndentBlockConfig;
14
- }
15
- interface PluginsMap {
16
- [Indent.pluginName]: Indent;
17
- [IndentBlock.pluginName]: IndentBlock;
18
- [IndentUI.pluginName]: IndentUI;
19
- }
20
- interface CommandsMap {
21
- indentBlock: IndentBlockCommand;
22
- outdentBlock: IndentBlockCommand;
23
- }
24
- }
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 { IndentBlockConfig, Indent, IndentBlock, IndentUI, IndentBlockCommand } from './index';
6
+ declare module '@ckeditor/ckeditor5-core' {
7
+ interface EditorConfig {
8
+ /**
9
+ * The configuration of the {@link module:indent/indentblock~IndentBlock block indentation feature}.
10
+ *
11
+ * Read more in {@link module:indent/indentconfig~IndentBlockConfig}.
12
+ */
13
+ indentBlock?: IndentBlockConfig;
14
+ }
15
+ interface PluginsMap {
16
+ [Indent.pluginName]: Indent;
17
+ [IndentBlock.pluginName]: IndentBlock;
18
+ [IndentUI.pluginName]: IndentUI;
19
+ }
20
+ interface CommandsMap {
21
+ indentBlock: IndentBlockCommand;
22
+ outdentBlock: IndentBlockCommand;
23
+ }
24
+ }
@@ -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 {};
package/src/indent.d.ts CHANGED
@@ -1,40 +1,40 @@
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 indent/indent
7
- */
8
- import { Plugin } from 'ckeditor5/src/core';
9
- import IndentEditing from './indentediting';
10
- import IndentUI from './indentui';
11
- /**
12
- * The indent feature.
13
- *
14
- * This plugin acts as a single entry point plugin for other features that implement indentation of elements like lists or paragraphs.
15
- *
16
- * The compatible features are:
17
- *
18
- * * The {@link module:list/list~List} or {@link module:list/list/listediting~ListEditing} feature for list indentation.
19
- * * The {@link module:indent/indentblock~IndentBlock} feature for block indentation.
20
- *
21
- * This is a "glue" plugin that loads the following plugins:
22
- *
23
- * * The {@link module:indent/indentediting~IndentEditing indent editing feature}.
24
- * * The {@link module:indent/indentui~IndentUI indent UI feature}.
25
- *
26
- * The dependent plugins register the `'indent'` and `'outdent'` commands and introduce the `'indent'` and `'outdent'` buttons
27
- * that allow to increase or decrease text indentation of supported elements.
28
- *
29
- * **Note**: In order for the commands and buttons to work, at least one of compatible features is required.
30
- */
31
- export default class Indent extends Plugin {
32
- /**
33
- * @inheritDoc
34
- */
35
- static get pluginName(): "Indent";
36
- /**
37
- * @inheritDoc
38
- */
39
- static get requires(): readonly [typeof IndentEditing, typeof IndentUI];
40
- }
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 indent/indent
7
+ */
8
+ import { Plugin } from 'ckeditor5/src/core';
9
+ import IndentEditing from './indentediting';
10
+ import IndentUI from './indentui';
11
+ /**
12
+ * The indent feature.
13
+ *
14
+ * This plugin acts as a single entry point plugin for other features that implement indentation of elements like lists or paragraphs.
15
+ *
16
+ * The compatible features are:
17
+ *
18
+ * * The {@link module:list/list~List} or {@link module:list/list/listediting~ListEditing} feature for list indentation.
19
+ * * The {@link module:indent/indentblock~IndentBlock} feature for block indentation.
20
+ *
21
+ * This is a "glue" plugin that loads the following plugins:
22
+ *
23
+ * * The {@link module:indent/indentediting~IndentEditing indent editing feature}.
24
+ * * The {@link module:indent/indentui~IndentUI indent UI feature}.
25
+ *
26
+ * The dependent plugins register the `'indent'` and `'outdent'` commands and introduce the `'indent'` and `'outdent'` buttons
27
+ * that allow to increase or decrease text indentation of supported elements.
28
+ *
29
+ * **Note**: In order for the commands and buttons to work, at least one of compatible features is required.
30
+ */
31
+ export default class Indent extends Plugin {
32
+ /**
33
+ * @inheritDoc
34
+ */
35
+ static get pluginName(): "Indent";
36
+ /**
37
+ * @inheritDoc
38
+ */
39
+ static get requires(): readonly [typeof IndentEditing, typeof IndentUI];
40
+ }
package/src/indent.js CHANGED
@@ -1,44 +1,44 @@
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 indent/indent
7
- */
8
- import { Plugin } from 'ckeditor5/src/core';
9
- import IndentEditing from './indentediting';
10
- import IndentUI from './indentui';
11
- /**
12
- * The indent feature.
13
- *
14
- * This plugin acts as a single entry point plugin for other features that implement indentation of elements like lists or paragraphs.
15
- *
16
- * The compatible features are:
17
- *
18
- * * The {@link module:list/list~List} or {@link module:list/list/listediting~ListEditing} feature for list indentation.
19
- * * The {@link module:indent/indentblock~IndentBlock} feature for block indentation.
20
- *
21
- * This is a "glue" plugin that loads the following plugins:
22
- *
23
- * * The {@link module:indent/indentediting~IndentEditing indent editing feature}.
24
- * * The {@link module:indent/indentui~IndentUI indent UI feature}.
25
- *
26
- * The dependent plugins register the `'indent'` and `'outdent'` commands and introduce the `'indent'` and `'outdent'` buttons
27
- * that allow to increase or decrease text indentation of supported elements.
28
- *
29
- * **Note**: In order for the commands and buttons to work, at least one of compatible features is required.
30
- */
31
- export default class Indent extends Plugin {
32
- /**
33
- * @inheritDoc
34
- */
35
- static get pluginName() {
36
- return 'Indent';
37
- }
38
- /**
39
- * @inheritDoc
40
- */
41
- static get requires() {
42
- return [IndentEditing, IndentUI];
43
- }
44
- }
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 indent/indent
7
+ */
8
+ import { Plugin } from 'ckeditor5/src/core';
9
+ import IndentEditing from './indentediting';
10
+ import IndentUI from './indentui';
11
+ /**
12
+ * The indent feature.
13
+ *
14
+ * This plugin acts as a single entry point plugin for other features that implement indentation of elements like lists or paragraphs.
15
+ *
16
+ * The compatible features are:
17
+ *
18
+ * * The {@link module:list/list~List} or {@link module:list/list/listediting~ListEditing} feature for list indentation.
19
+ * * The {@link module:indent/indentblock~IndentBlock} feature for block indentation.
20
+ *
21
+ * This is a "glue" plugin that loads the following plugins:
22
+ *
23
+ * * The {@link module:indent/indentediting~IndentEditing indent editing feature}.
24
+ * * The {@link module:indent/indentui~IndentUI indent UI feature}.
25
+ *
26
+ * The dependent plugins register the `'indent'` and `'outdent'` commands and introduce the `'indent'` and `'outdent'` buttons
27
+ * that allow to increase or decrease text indentation of supported elements.
28
+ *
29
+ * **Note**: In order for the commands and buttons to work, at least one of compatible features is required.
30
+ */
31
+ export default class Indent extends Plugin {
32
+ /**
33
+ * @inheritDoc
34
+ */
35
+ static get pluginName() {
36
+ return 'Indent';
37
+ }
38
+ /**
39
+ * @inheritDoc
40
+ */
41
+ static get requires() {
42
+ return [IndentEditing, IndentUI];
43
+ }
44
+ }
@@ -1,42 +1,42 @@
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 indent/indentblock
7
- */
8
- import { Plugin, type Editor } from 'ckeditor5/src/core';
9
- /**
10
- * The block indentation feature.
11
- *
12
- * It registers the `'indentBlock'` and `'outdentBlock'` commands.
13
- *
14
- * If the plugin {@link module:indent/indent~Indent} is defined, it also attaches the `'indentBlock'` and `'outdentBlock'` commands to
15
- * the `'indent'` and `'outdent'` commands.
16
- */
17
- export default class IndentBlock extends Plugin {
18
- /**
19
- * @inheritDoc
20
- */
21
- constructor(editor: Editor);
22
- /**
23
- * @inheritDoc
24
- */
25
- static get pluginName(): "IndentBlock";
26
- /**
27
- * @inheritDoc
28
- */
29
- init(): void;
30
- /**
31
- * @inheritDoc
32
- */
33
- afterInit(): void;
34
- /**
35
- * Setups conversion for using offset indents.
36
- */
37
- private _setupConversionUsingOffset;
38
- /**
39
- * Setups conversion for using classes.
40
- */
41
- private _setupConversionUsingClasses;
42
- }
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 indent/indentblock
7
+ */
8
+ import { Plugin, type Editor } from 'ckeditor5/src/core';
9
+ /**
10
+ * The block indentation feature.
11
+ *
12
+ * It registers the `'indentBlock'` and `'outdentBlock'` commands.
13
+ *
14
+ * If the plugin {@link module:indent/indent~Indent} is defined, it also attaches the `'indentBlock'` and `'outdentBlock'` commands to
15
+ * the `'indent'` and `'outdent'` commands.
16
+ */
17
+ export default class IndentBlock extends Plugin {
18
+ /**
19
+ * @inheritDoc
20
+ */
21
+ constructor(editor: Editor);
22
+ /**
23
+ * @inheritDoc
24
+ */
25
+ static get pluginName(): "IndentBlock";
26
+ /**
27
+ * @inheritDoc
28
+ */
29
+ init(): void;
30
+ /**
31
+ * @inheritDoc
32
+ */
33
+ afterInit(): void;
34
+ /**
35
+ * Setups conversion for using offset indents.
36
+ */
37
+ private _setupConversionUsingOffset;
38
+ /**
39
+ * Setups conversion for using classes.
40
+ */
41
+ private _setupConversionUsingClasses;
42
+ }