@ckeditor/ckeditor5-indent 48.2.0 → 48.3.0-alpha.1

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.
@@ -1,60 +1,60 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
- */
2
+ * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
+ */
5
5
  /**
6
- * @module indent/integrations/indentblocklistcommand
7
- */
8
- import { Command, type Editor } from '@ckeditor/ckeditor5-core';
9
- import type { IndentBehavior } from '../indentcommandbehavior/indentbehavior.js';
6
+ * @module indent/integrations/indentblocklistcommand
7
+ */
8
+ import { Command, type Editor } from "@ckeditor/ckeditor5-core";
9
+ import type { IndentBehavior } from "../indentcommandbehavior/indentbehavior.js";
10
10
  /**
11
- * The indent block list command.
12
- *
13
- * The command is registered by the {@link module:indent/integrations/indentblocklistintegration~IndentBlockListIntegration} as
14
- * `'indentBlockList'` for indenting lists and `'outdentBlockList'` for outdenting lists.
15
- *
16
- * To increase/decrease block indentation of the list the selection must be at the start of the first top–level list item
17
- * in the list.
18
- *
19
- * To increase block indentation of the list, execute the command:
20
- *
21
- * ```ts
22
- * editor.execute( 'indentBlockList' );
23
- * ```
24
- *
25
- * To decrease block indentation of the list, execute the command:
26
- *
27
- * ```ts
28
- * editor.execute( 'outdentBlockList' );
29
- * ```
30
- */
11
+ * The indent block list command.
12
+ *
13
+ * The command is registered by the {@link module:indent/integrations/indentblocklistintegration~IndentBlockListIntegration} as
14
+ * `'indentBlockList'` for indenting lists and `'outdentBlockList'` for outdenting lists.
15
+ *
16
+ * To increase/decrease block indentation of the list the selection must be at the start of the first top–level list item
17
+ * in the list.
18
+ *
19
+ * To increase block indentation of the list, execute the command:
20
+ *
21
+ * ```ts
22
+ * editor.execute( 'indentBlockList' );
23
+ * ```
24
+ *
25
+ * To decrease block indentation of the list, execute the command:
26
+ *
27
+ * ```ts
28
+ * editor.execute( 'outdentBlockList' );
29
+ * ```
30
+ */
31
31
  export declare class IndentBlockListCommand extends Command {
32
- /**
33
- * The command's indentation behavior.
34
- */
35
- private readonly _indentBehavior;
36
- /**
37
- * Creates an instance of the command.
38
- */
39
- constructor(editor: Editor, indentBehavior: IndentBehavior);
40
- /**
41
- * @inheritDoc
42
- */
43
- refresh(): void;
44
- /**
45
- * Executes the command.
46
- *
47
- * @fires execute
48
- * @param options Command options.
49
- * @param options.firstListOnly When `true`, indentation is applied only to the first list at the beginning of the selection.
50
- * When `false` or omitted, indentation is applied to all lists of the selection.
51
- */
52
- execute(options?: {
53
- firstListOnly?: boolean;
54
- }): void;
55
- /**
56
- * Returns the list item at the beginning of the current selection if it is the first top–level list item in the list.
57
- * Otherwise, returns `null`.
58
- */
59
- private _getFirstListItemIfSelectionIsAtListStart;
32
+ /**
33
+ * The command's indentation behavior.
34
+ */
35
+ private readonly _indentBehavior;
36
+ /**
37
+ * Creates an instance of the command.
38
+ */
39
+ constructor(editor: Editor, indentBehavior: IndentBehavior);
40
+ /**
41
+ * @inheritDoc
42
+ */
43
+ override refresh(): void;
44
+ /**
45
+ * Executes the command.
46
+ *
47
+ * @fires execute
48
+ * @param options Command options.
49
+ * @param options.firstListOnly When `true`, indentation is applied only to the first list at the beginning of the selection.
50
+ * When `false` or omitted, indentation is applied to all lists of the selection.
51
+ */
52
+ override execute(options?: {
53
+ firstListOnly?: boolean;
54
+ }): void;
55
+ /**
56
+ * Returns the list item at the beginning of the current selection if it is the first top–level list item in the list.
57
+ * Otherwise, returns `null`.
58
+ */
59
+ private _getFirstListItemIfSelectionIsAtListStart;
60
60
  }
@@ -1,34 +1,34 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
- */
5
- import { Plugin } from '@ckeditor/ckeditor5-core';
2
+ * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
+ */
5
+ import { Plugin } from "@ckeditor/ckeditor5-core";
6
6
  /**
7
- * This integration enables using block indentation feature with lists.
8
- */
7
+ * This integration enables using block indentation feature with lists.
8
+ */
9
9
  export declare class IndentBlockListIntegration extends Plugin {
10
- /**
11
- * @inheritDoc
12
- */
13
- static get pluginName(): "IndentBlockListIntegration";
14
- /**
15
- * @inheritDoc
16
- */
17
- static get isOfficialPlugin(): true;
18
- /**
19
- * @inheritDoc
20
- */
21
- init(): void;
22
- /**
23
- * @inheritDoc
24
- */
25
- afterInit(): void;
26
- /**
27
- * Setups conversion for list block indent using offset.
28
- */
29
- private _setupConversionUsingOffset;
30
- /**
31
- * Setups conversion for list block indent using classes.
32
- */
33
- private _setupConversionUsingClasses;
10
+ /**
11
+ * @inheritDoc
12
+ */
13
+ static get pluginName(): "IndentBlockListIntegration";
14
+ /**
15
+ * @inheritDoc
16
+ */
17
+ static override get isOfficialPlugin(): true;
18
+ /**
19
+ * @inheritDoc
20
+ */
21
+ init(): void;
22
+ /**
23
+ * @inheritDoc
24
+ */
25
+ afterInit(): void;
26
+ /**
27
+ * Setups conversion for list block indent using offset.
28
+ */
29
+ private _setupConversionUsingOffset;
30
+ /**
31
+ * Setups conversion for list block indent using classes.
32
+ */
33
+ private _setupConversionUsingClasses;
34
34
  }
@@ -1,58 +1,58 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
- */
2
+ * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
+ */
5
5
  /**
6
- * @module indent/integrations/indentblocklistitemcommand
7
- */
8
- import { Command, type Editor } from '@ckeditor/ckeditor5-core';
9
- import type { IndentBehavior } from '../indentcommandbehavior/indentbehavior.js';
6
+ * @module indent/integrations/indentblocklistitemcommand
7
+ */
8
+ import { Command, type Editor } from "@ckeditor/ckeditor5-core";
9
+ import type { IndentBehavior } from "../indentcommandbehavior/indentbehavior.js";
10
10
  /**
11
- * The indent block list item command.
12
- *
13
- * The command is registered by the {@link module:indent/integrations/indentblocklistintegration~IndentBlockListIntegration} as
14
- * `'indentBlockListItem'` for indenting list items and `'outdentBlockListItem'` for outdenting list items.
15
- *
16
- * It's only possible to reset the block indentation of a list item to `0`.
17
- * This means that if a list item has negative block indentation, the command will only allow forward indentation
18
- * to make it possible to reset it to `0` and if a list item has positive block indentation, the command
19
- * will only allow backward indentation to make it possible to reset it to `0`.
20
- *
21
- * To increase block indentation of the list item, execute the command:
22
- *
23
- * ```ts
24
- * editor.execute( 'indentBlockListItem' );
25
- * ```
26
- *
27
- * To decrease block indentation of the list item, execute the command:
28
- *
29
- * ```ts
30
- * editor.execute( 'outdentBlockListItem' );
31
- * ```
32
- */
11
+ * The indent block list item command.
12
+ *
13
+ * The command is registered by the {@link module:indent/integrations/indentblocklistintegration~IndentBlockListIntegration} as
14
+ * `'indentBlockListItem'` for indenting list items and `'outdentBlockListItem'` for outdenting list items.
15
+ *
16
+ * It's only possible to reset the block indentation of a list item to `0`.
17
+ * This means that if a list item has negative block indentation, the command will only allow forward indentation
18
+ * to make it possible to reset it to `0` and if a list item has positive block indentation, the command
19
+ * will only allow backward indentation to make it possible to reset it to `0`.
20
+ *
21
+ * To increase block indentation of the list item, execute the command:
22
+ *
23
+ * ```ts
24
+ * editor.execute( 'indentBlockListItem' );
25
+ * ```
26
+ *
27
+ * To decrease block indentation of the list item, execute the command:
28
+ *
29
+ * ```ts
30
+ * editor.execute( 'outdentBlockListItem' );
31
+ * ```
32
+ */
33
33
  export declare class IndentBlockListItemCommand extends Command {
34
- /**
35
- * The command's indentation behavior.
36
- */
37
- private readonly _indentBehavior;
38
- /**
39
- * Creates an instance of the command.
40
- */
41
- constructor(editor: Editor, indentBehavior: IndentBehavior);
42
- /**
43
- * @inheritDoc
44
- */
45
- refresh(): void;
46
- /**
47
- * @inheritDoc
48
- */
49
- execute(): void;
50
- /**
51
- * Returns an array of list items which block indentation should be changed.
52
- */
53
- private _getAffectedListItems;
54
- /**
55
- * Returns `true` if changing the block indentation is allowed for the given list item.
56
- */
57
- private _isIndentationChangeAllowed;
34
+ /**
35
+ * The command's indentation behavior.
36
+ */
37
+ private readonly _indentBehavior;
38
+ /**
39
+ * Creates an instance of the command.
40
+ */
41
+ constructor(editor: Editor, indentBehavior: IndentBehavior);
42
+ /**
43
+ * @inheritDoc
44
+ */
45
+ override refresh(): void;
46
+ /**
47
+ * @inheritDoc
48
+ */
49
+ override execute(): void;
50
+ /**
51
+ * Returns an array of list items which block indentation should be changed.
52
+ */
53
+ private _getAffectedListItems;
54
+ /**
55
+ * Returns `true` if changing the block indentation is allowed for the given list item.
56
+ */
57
+ private _isIndentationChangeAllowed;
58
58
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-indent",
3
- "version": "48.2.0",
3
+ "version": "48.3.0-alpha.1",
4
4
  "description": "Block indentation feature for CKEditor 5.",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "author": "CKSource (http://cksource.com/)",
@@ -26,13 +26,13 @@
26
26
  "./package.json": "./package.json"
27
27
  },
28
28
  "dependencies": {
29
- "@ckeditor/ckeditor5-core": "48.2.0",
30
- "@ckeditor/ckeditor5-engine": "48.2.0",
31
- "@ckeditor/ckeditor5-icons": "48.2.0",
32
- "@ckeditor/ckeditor5-heading": "48.2.0",
33
- "@ckeditor/ckeditor5-list": "48.2.0",
34
- "@ckeditor/ckeditor5-ui": "48.2.0",
35
- "@ckeditor/ckeditor5-utils": "48.2.0"
29
+ "@ckeditor/ckeditor5-core": "48.3.0-alpha.1",
30
+ "@ckeditor/ckeditor5-engine": "48.3.0-alpha.1",
31
+ "@ckeditor/ckeditor5-icons": "48.3.0-alpha.1",
32
+ "@ckeditor/ckeditor5-heading": "48.3.0-alpha.1",
33
+ "@ckeditor/ckeditor5-list": "48.3.0-alpha.1",
34
+ "@ckeditor/ckeditor5-ui": "48.3.0-alpha.1",
35
+ "@ckeditor/ckeditor5-utils": "48.3.0-alpha.1"
36
36
  },
37
37
  "files": [
38
38
  "dist",
@@ -1 +0,0 @@
1
- {"version":3,"sources":["index.css"],"names":[],"mappings":";;;;;;AAEA,CAAC,CAAC,CAAC,CAAC,gBAAgB,CAAC,KAAK,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC","file":"index.css.map","sourcesContent":["\n\n/*# sourceMappingURL=index.css.map */"]}