@ckeditor/ckeditor5-indent 48.2.0-alpha.7 → 48.3.0-alpha.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/dist/augmentation.d.ts +27 -27
- package/dist/indent.d.ts +39 -39
- package/dist/indentblock.d.ts +46 -46
- package/dist/indentblockcommand.d.ts +51 -51
- package/dist/indentcommandbehavior/indentbehavior.d.ts +20 -20
- package/dist/indentcommandbehavior/indentusingclasses.d.ts +36 -36
- package/dist/indentcommandbehavior/indentusingoffset.d.ts +42 -42
- package/dist/indentcommandbehavior/resetindentusingclasses.d.ts +19 -19
- package/dist/indentcommandbehavior/resetindentusingoffset.d.ts +19 -19
- package/dist/indentconfig.d.ts +67 -67
- package/dist/indentediting.d.ts +25 -25
- package/dist/indentui.d.ts +31 -31
- package/dist/index-content.css +1 -0
- package/dist/index-editor.css +1 -0
- package/dist/index.css +0 -2
- package/dist/index.d.ts +18 -18
- package/dist/index.js +901 -923
- package/dist/index.js.map +1 -1
- package/dist/integrations/indentblocklistcommand.d.ts +55 -55
- package/dist/integrations/indentblocklistintegration.d.ts +30 -30
- package/dist/integrations/indentblocklistitemcommand.d.ts +53 -53
- package/package.json +8 -8
- package/dist/index.css.map +0 -1
|
@@ -1,60 +1,60 @@
|
|
|
1
1
|
/**
|
|
2
|
-
|
|
3
|
-
|
|
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
|
-
|
|
7
|
-
|
|
8
|
-
import { Command, type Editor } from
|
|
9
|
-
import type { IndentBehavior } from
|
|
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
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
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
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
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
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
import { Plugin } from
|
|
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
|
-
|
|
8
|
-
|
|
7
|
+
* This integration enables using block indentation feature with lists.
|
|
8
|
+
*/
|
|
9
9
|
export declare class IndentBlockListIntegration extends Plugin {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
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
|
-
|
|
3
|
-
|
|
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
|
-
|
|
7
|
-
|
|
8
|
-
import { Command, type Editor } from
|
|
9
|
-
import type { IndentBehavior } from
|
|
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
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
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
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
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.
|
|
3
|
+
"version": "48.3.0-alpha.0",
|
|
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.
|
|
30
|
-
"@ckeditor/ckeditor5-engine": "48.
|
|
31
|
-
"@ckeditor/ckeditor5-icons": "48.
|
|
32
|
-
"@ckeditor/ckeditor5-heading": "48.
|
|
33
|
-
"@ckeditor/ckeditor5-list": "48.
|
|
34
|
-
"@ckeditor/ckeditor5-ui": "48.
|
|
35
|
-
"@ckeditor/ckeditor5-utils": "48.
|
|
29
|
+
"@ckeditor/ckeditor5-core": "48.3.0-alpha.0",
|
|
30
|
+
"@ckeditor/ckeditor5-engine": "48.3.0-alpha.0",
|
|
31
|
+
"@ckeditor/ckeditor5-icons": "48.3.0-alpha.0",
|
|
32
|
+
"@ckeditor/ckeditor5-heading": "48.3.0-alpha.0",
|
|
33
|
+
"@ckeditor/ckeditor5-list": "48.3.0-alpha.0",
|
|
34
|
+
"@ckeditor/ckeditor5-ui": "48.3.0-alpha.0",
|
|
35
|
+
"@ckeditor/ckeditor5-utils": "48.3.0-alpha.0"
|
|
36
36
|
},
|
|
37
37
|
"files": [
|
|
38
38
|
"dist",
|
package/dist/index.css.map
DELETED
|
@@ -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 */"]}
|