@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.
@@ -1,24 +1,24 @@
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/indentcommandbehavior/resetindentusingoffset
7
- */
8
- import { IndentUsingOffset } from './indentusingoffset.js';
6
+ * @module indent/indentcommandbehavior/resetindentusingoffset
7
+ */
8
+ import { IndentUsingOffset } from "./indentusingoffset.js";
9
9
  /**
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
- */
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
- * @inheritDoc
22
- */
23
- checkEnabled(indentAttributeValue: string): boolean;
20
+ /**
21
+ * @inheritDoc
22
+ */
23
+ override checkEnabled(indentAttributeValue: string): boolean;
24
24
  }
@@ -1,72 +1,72 @@
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/indentconfig
7
- */
6
+ * @module indent/indentconfig
7
+ */
8
8
  /**
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
- */
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
- * 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>;
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
  }
@@ -1,30 +1,30 @@
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/indentediting
7
- */
8
- import { Plugin } from '@ckeditor/ckeditor5-core';
6
+ * @module indent/indentediting
7
+ */
8
+ import { Plugin } from "@ckeditor/ckeditor5-core";
9
9
  /**
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
- */
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
- * @inheritDoc
20
- */
21
- static get pluginName(): "IndentEditing";
22
- /**
23
- * @inheritDoc
24
- */
25
- static get isOfficialPlugin(): true;
26
- /**
27
- * @inheritDoc
28
- */
29
- init(): void;
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
  }
@@ -1,35 +1,35 @@
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
- * 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
- */
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
- * @inheritDoc
17
- */
18
- static get pluginName(): "IndentUI";
19
- /**
20
- * @inheritDoc
21
- */
22
- static 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;
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
  }
@@ -2,3 +2,4 @@
2
2
  * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
4
  */
5
+
@@ -2,3 +2,4 @@
2
2
  * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
4
  */
5
+
package/dist/index.css CHANGED
@@ -3,5 +3,3 @@
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
4
  */
5
5
 
6
-
7
- /*# sourceMappingURL=index.css.map */
package/dist/index.d.ts CHANGED
@@ -1,20 +1,20 @@
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
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';
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";