@ckeditor/ckeditor5-indent 37.0.0-alpha.0 → 37.0.0-alpha.2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-indent",
3
- "version": "37.0.0-alpha.0",
3
+ "version": "37.0.0-alpha.2",
4
4
  "description": "Block indentation feature for CKEditor 5.",
5
5
  "keywords": [
6
6
  "ckeditor",
@@ -12,17 +12,17 @@
12
12
  ],
13
13
  "main": "src/index.js",
14
14
  "dependencies": {
15
- "ckeditor5": "^37.0.0-alpha.0"
15
+ "ckeditor5": "^37.0.0-alpha.2"
16
16
  },
17
17
  "devDependencies": {
18
- "@ckeditor/ckeditor5-core": "^37.0.0-alpha.0",
19
- "@ckeditor/ckeditor5-dev-utils": "^34.0.0",
20
- "@ckeditor/ckeditor5-editor-classic": "^37.0.0-alpha.0",
21
- "@ckeditor/ckeditor5-engine": "^37.0.0-alpha.0",
22
- "@ckeditor/ckeditor5-heading": "^37.0.0-alpha.0",
23
- "@ckeditor/ckeditor5-paragraph": "^37.0.0-alpha.0",
24
- "@ckeditor/ckeditor5-theme-lark": "^37.0.0-alpha.0",
25
- "@ckeditor/ckeditor5-ui": "^37.0.0-alpha.0",
18
+ "@ckeditor/ckeditor5-core": "^37.0.0-alpha.2",
19
+ "@ckeditor/ckeditor5-dev-utils": "^35.0.0",
20
+ "@ckeditor/ckeditor5-editor-classic": "^37.0.0-alpha.2",
21
+ "@ckeditor/ckeditor5-engine": "^37.0.0-alpha.2",
22
+ "@ckeditor/ckeditor5-heading": "^37.0.0-alpha.2",
23
+ "@ckeditor/ckeditor5-paragraph": "^37.0.0-alpha.2",
24
+ "@ckeditor/ckeditor5-theme-lark": "^37.0.0-alpha.2",
25
+ "@ckeditor/ckeditor5-ui": "^37.0.0-alpha.2",
26
26
  "typescript": "^4.8.4",
27
27
  "webpack": "^5.58.1",
28
28
  "webpack-cli": "^4.9.0"
@@ -51,7 +51,7 @@
51
51
  ],
52
52
  "scripts": {
53
53
  "dll:build": "webpack",
54
- "build": "tsc -p ./tsconfig.release.json",
54
+ "build": "tsc -p ./tsconfig.json",
55
55
  "postversion": "npm run build"
56
56
  },
57
57
  "types": "src/index.d.ts"
@@ -0,0 +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
+ }
@@ -0,0 +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 {};
package/src/indent.d.ts CHANGED
@@ -36,8 +36,3 @@ export default class Indent extends Plugin {
36
36
  */
37
37
  static get requires(): PluginDependencies;
38
38
  }
39
- declare module '@ckeditor/ckeditor5-core' {
40
- interface PluginsMap {
41
- [Indent.pluginName]: Indent;
42
- }
43
- }
@@ -6,7 +6,6 @@
6
6
  * @module indent/indentblock
7
7
  */
8
8
  import { Plugin, type Editor } from 'ckeditor5/src/core';
9
- import './indentconfig';
10
9
  /**
11
10
  * The block indentation feature.
12
11
  *
@@ -41,8 +40,3 @@ export default class IndentBlock extends Plugin {
41
40
  */
42
41
  private _setupConversionUsingClasses;
43
42
  }
44
- declare module '@ckeditor/ckeditor5-core' {
45
- interface PluginsMap {
46
- [IndentBlock.pluginName]: IndentBlock;
47
- }
48
- }
@@ -10,7 +10,6 @@ import { addMarginRules } from 'ckeditor5/src/engine';
10
10
  import IndentBlockCommand from './indentblockcommand';
11
11
  import IndentUsingOffset from './indentcommandbehavior/indentusingoffset';
12
12
  import IndentUsingClasses from './indentcommandbehavior/indentusingclasses';
13
- import './indentconfig';
14
13
  const DEFAULT_ELEMENTS = ['paragraph', 'heading1', 'heading2', 'heading3', 'heading4', 'heading5', 'heading6'];
15
14
  /**
16
15
  * The block indentation feature.
@@ -43,9 +43,3 @@ export default class IndentBlockCommand extends Command {
43
43
  */
44
44
  execute(): void;
45
45
  }
46
- declare module '@ckeditor/ckeditor5-core' {
47
- interface CommandsMap {
48
- indentBlock: IndentBlockCommand;
49
- outdentBlock: IndentBlockCommand;
50
- }
51
- }
@@ -70,13 +70,3 @@ export interface IndentBlockConfig {
70
70
  */
71
71
  classes?: Array<string>;
72
72
  }
73
- declare module '@ckeditor/ckeditor5-core' {
74
- interface EditorConfig {
75
- /**
76
- * The configuration of the {@link module:indent/indentblock~IndentBlock block indentation feature}.
77
- *
78
- * Read more in {@link module:indent/indentconfig~IndentBlockConfig}.
79
- */
80
- indentBlock?: IndentBlockConfig;
81
- }
82
- }
package/src/indentui.d.ts CHANGED
@@ -25,8 +25,3 @@ export default class IndentUI extends Plugin {
25
25
  */
26
26
  private _defineButton;
27
27
  }
28
- declare module '@ckeditor/ckeditor5-core' {
29
- interface PluginsMap {
30
- [IndentUI.pluginName]: IndentUI;
31
- }
32
- }
package/src/index.d.ts CHANGED
@@ -9,3 +9,6 @@ export { default as Indent } from './indent';
9
9
  export { default as IndentEditing } from './indentediting';
10
10
  export { default as IndentUI } from './indentui';
11
11
  export { default as IndentBlock } from './indentblock';
12
+ export type { IndentBlockConfig } from './indentconfig';
13
+ export type { default as IndentBlockCommand } from './indentblockcommand';
14
+ import './augmentation';
package/src/index.js CHANGED
@@ -9,3 +9,4 @@ export { default as Indent } from './indent';
9
9
  export { default as IndentEditing } from './indentediting';
10
10
  export { default as IndentUI } from './indentui';
11
11
  export { default as IndentBlock } from './indentblock';
12
+ import './augmentation';