@ckeditor/ckeditor5-indent 48.2.0 → 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,24 +1,24 @@
|
|
|
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 { IndentUsingOffset } from
|
|
6
|
+
* @module indent/indentcommandbehavior/resetindentusingoffset
|
|
7
|
+
*/
|
|
8
|
+
import { IndentUsingOffset } from "./indentusingoffset.js";
|
|
9
9
|
/**
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
10
|
+
* The list item block indentation behavior that resets offset-based indentation toward zero.
|
|
11
|
+
*
|
|
12
|
+
* Unlike {@link module:indent/indentcommandbehavior/indentusingoffset~IndentUsingOffset}, this behavior
|
|
13
|
+
* is enabled only when the current indentation value can be moved toward zero:
|
|
14
|
+
* - for forward direction only when the current offset is negative,
|
|
15
|
+
* - for backward direction only when the current offset is positive.
|
|
16
|
+
*
|
|
17
|
+
* @internal
|
|
18
|
+
*/
|
|
19
19
|
export declare class ResetIndentUsingOffset extends IndentUsingOffset {
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
20
|
+
/**
|
|
21
|
+
* @inheritDoc
|
|
22
|
+
*/
|
|
23
|
+
override checkEnabled(indentAttributeValue: string): boolean;
|
|
24
24
|
}
|
package/dist/indentconfig.d.ts
CHANGED
|
@@ -1,72 +1,72 @@
|
|
|
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
|
-
|
|
6
|
+
* @module indent/indentconfig
|
|
7
|
+
*/
|
|
8
8
|
/**
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
9
|
+
* The configuration of the block indentation feature.
|
|
10
|
+
*
|
|
11
|
+
* If no {@link module:indent/indentconfig~IndentBlockConfig#classes} are set, the block indentation feature will use
|
|
12
|
+
* {@link module:indent/indentconfig~IndentBlockConfig#offset} and {@link module:indent/indentconfig~IndentBlockConfig#unit} to
|
|
13
|
+
* create indentation steps.
|
|
14
|
+
*
|
|
15
|
+
* ```ts
|
|
16
|
+
* ClassicEditor
|
|
17
|
+
* .create( {
|
|
18
|
+
* indentBlock: {
|
|
19
|
+
* offset: 2,
|
|
20
|
+
* unit: 'em'
|
|
21
|
+
* }
|
|
22
|
+
* } )
|
|
23
|
+
* .then( ... )
|
|
24
|
+
* .catch( ... );
|
|
25
|
+
* ```
|
|
26
|
+
*
|
|
27
|
+
* Alternatively, the block indentation feature may set one of defined {@link module:indent/indentconfig~IndentBlockConfig#classes} as
|
|
28
|
+
* indentation steps:
|
|
29
|
+
*
|
|
30
|
+
* ```ts
|
|
31
|
+
* ClassicEditor
|
|
32
|
+
* .create( {
|
|
33
|
+
* indentBlock: {
|
|
34
|
+
* classes: [
|
|
35
|
+
* 'indent-a', // The first step - smallest indentation.
|
|
36
|
+
* 'indent-b',
|
|
37
|
+
* 'indent-c',
|
|
38
|
+
* 'indent-d',
|
|
39
|
+
* 'indent-e' // The last step - biggest indentation.
|
|
40
|
+
* ]
|
|
41
|
+
* }
|
|
42
|
+
* } )
|
|
43
|
+
* .then( ... )
|
|
44
|
+
* .catch( ... );
|
|
45
|
+
* ```
|
|
46
|
+
*
|
|
47
|
+
* In the example above only 5 indentation steps will be available.
|
|
48
|
+
*
|
|
49
|
+
* See {@link module:core/editor/editorconfig~EditorConfig all editor options}.
|
|
50
|
+
*/
|
|
51
51
|
export interface IndentBlockConfig {
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
52
|
+
/**
|
|
53
|
+
* The size of indentation {@link module:indent/indentconfig~IndentBlockConfig#unit units} for each indentation step.
|
|
54
|
+
*
|
|
55
|
+
* @default 40
|
|
56
|
+
*/
|
|
57
|
+
offset?: number;
|
|
58
|
+
/**
|
|
59
|
+
* The unit used for indentation {@link module:indent/indentconfig~IndentBlockConfig#offset}.
|
|
60
|
+
*
|
|
61
|
+
* @default 'px'
|
|
62
|
+
*/
|
|
63
|
+
unit?: string;
|
|
64
|
+
/**
|
|
65
|
+
* An optional list of classes to use for indenting the editor content. If not set or set to an empty array, no classes will be used.
|
|
66
|
+
* The {@link module:indent/indentconfig~IndentBlockConfig#unit `indentBlock.unit`} and
|
|
67
|
+
* {@link module:indent/indentconfig~IndentBlockConfig#offset `indentBlock.offset`} properties will be used instead.
|
|
68
|
+
*
|
|
69
|
+
* @default undefined
|
|
70
|
+
*/
|
|
71
|
+
classes?: Array<string>;
|
|
72
72
|
}
|
package/dist/indentediting.d.ts
CHANGED
|
@@ -1,30 +1,30 @@
|
|
|
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 { Plugin } from
|
|
6
|
+
* @module indent/indentediting
|
|
7
|
+
*/
|
|
8
|
+
import { Plugin } from "@ckeditor/ckeditor5-core";
|
|
9
9
|
/**
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
10
|
+
* The indent editing feature.
|
|
11
|
+
*
|
|
12
|
+
* This plugin registers the `'indent'` and `'outdent'` commands.
|
|
13
|
+
*
|
|
14
|
+
* **Note**: In order for the commands to work, at least one of the compatible features is required. Read more in the
|
|
15
|
+
* {@link module:indent/indent~Indent indent feature} API documentation.
|
|
16
|
+
*/
|
|
17
17
|
export declare class IndentEditing extends Plugin {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
18
|
+
/**
|
|
19
|
+
* @inheritDoc
|
|
20
|
+
*/
|
|
21
|
+
static get pluginName(): "IndentEditing";
|
|
22
|
+
/**
|
|
23
|
+
* @inheritDoc
|
|
24
|
+
*/
|
|
25
|
+
static override get isOfficialPlugin(): true;
|
|
26
|
+
/**
|
|
27
|
+
* @inheritDoc
|
|
28
|
+
*/
|
|
29
|
+
init(): void;
|
|
30
30
|
}
|
package/dist/indentui.d.ts
CHANGED
|
@@ -1,35 +1,35 @@
|
|
|
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
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
7
|
+
* The indent UI feature.
|
|
8
|
+
*
|
|
9
|
+
* This plugin registers the `'indent'` and `'outdent'` buttons.
|
|
10
|
+
*
|
|
11
|
+
* **Note**: In order for the commands to work, at least one of the compatible features is required. Read more in
|
|
12
|
+
* the {@link module:indent/indent~Indent indent feature} API documentation.
|
|
13
|
+
*/
|
|
14
14
|
export declare class IndentUI extends Plugin {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
15
|
+
/**
|
|
16
|
+
* @inheritDoc
|
|
17
|
+
*/
|
|
18
|
+
static get pluginName(): "IndentUI";
|
|
19
|
+
/**
|
|
20
|
+
* @inheritDoc
|
|
21
|
+
*/
|
|
22
|
+
static override get isOfficialPlugin(): true;
|
|
23
|
+
/**
|
|
24
|
+
* @inheritDoc
|
|
25
|
+
*/
|
|
26
|
+
init(): void;
|
|
27
|
+
/**
|
|
28
|
+
* Defines UI buttons for both toolbar and menu bar.
|
|
29
|
+
*/
|
|
30
|
+
private _defineButton;
|
|
31
|
+
/**
|
|
32
|
+
* Creates a button to use either in toolbar or in menu bar.
|
|
33
|
+
*/
|
|
34
|
+
private _createButton;
|
|
35
35
|
}
|
package/dist/index-content.css
CHANGED
package/dist/index-editor.css
CHANGED
package/dist/index.css
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
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
|
-
export { Indent } from
|
|
9
|
-
export { IndentEditing } from
|
|
10
|
-
export { IndentUI } from
|
|
11
|
-
export { IndentBlock } from
|
|
12
|
-
export { IndentBlockCommand } from
|
|
13
|
-
export { IndentBlockListIntegration } from
|
|
14
|
-
export { IndentBlockListCommand } from
|
|
15
|
-
export { IndentBlockListItemCommand } from
|
|
16
|
-
export type { IndentBlockConfig } from
|
|
17
|
-
export type { IndentBehavior } from
|
|
18
|
-
export { IndentUsingClasses as _IndentUsingClasses } from
|
|
19
|
-
export { IndentUsingOffset as _IndentUsingOffset } from
|
|
20
|
-
import
|
|
6
|
+
* @module indent
|
|
7
|
+
*/
|
|
8
|
+
export { Indent } from "./indent.js";
|
|
9
|
+
export { IndentEditing } from "./indentediting.js";
|
|
10
|
+
export { IndentUI } from "./indentui.js";
|
|
11
|
+
export { IndentBlock } from "./indentblock.js";
|
|
12
|
+
export { IndentBlockCommand } from "./indentblockcommand.js";
|
|
13
|
+
export { IndentBlockListIntegration } from "./integrations/indentblocklistintegration.js";
|
|
14
|
+
export { IndentBlockListCommand } from "./integrations/indentblocklistcommand.js";
|
|
15
|
+
export { IndentBlockListItemCommand } from "./integrations/indentblocklistitemcommand.js";
|
|
16
|
+
export type { IndentBlockConfig } from "./indentconfig.js";
|
|
17
|
+
export type { IndentBehavior } from "./indentcommandbehavior/indentbehavior.js";
|
|
18
|
+
export { IndentUsingClasses as _IndentUsingClasses } from "./indentcommandbehavior/indentusingclasses.js";
|
|
19
|
+
export { IndentUsingOffset as _IndentUsingOffset } from "./indentcommandbehavior/indentusingoffset.js";
|
|
20
|
+
import "./augmentation.js";
|