@ckeditor/ckeditor5-alignment 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-alignment",
3
- "version": "37.0.0-alpha.0",
3
+ "version": "37.0.0-alpha.2",
4
4
  "description": "Text alignment feature for CKEditor 5.",
5
5
  "keywords": [
6
6
  "ckeditor",
@@ -12,21 +12,21 @@
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-block-quote": "^37.0.0-alpha.0",
19
- "@ckeditor/ckeditor5-core": "^37.0.0-alpha.0",
20
- "@ckeditor/ckeditor5-dev-utils": "^34.0.0",
21
- "@ckeditor/ckeditor5-editor-classic": "^37.0.0-alpha.0",
22
- "@ckeditor/ckeditor5-engine": "^37.0.0-alpha.0",
23
- "@ckeditor/ckeditor5-enter": "^37.0.0-alpha.0",
24
- "@ckeditor/ckeditor5-heading": "^37.0.0-alpha.0",
25
- "@ckeditor/ckeditor5-image": "^37.0.0-alpha.0",
26
- "@ckeditor/ckeditor5-list": "^37.0.0-alpha.0",
27
- "@ckeditor/ckeditor5-paragraph": "^37.0.0-alpha.0",
28
- "@ckeditor/ckeditor5-theme-lark": "^37.0.0-alpha.0",
29
- "@ckeditor/ckeditor5-typing": "^37.0.0-alpha.0",
18
+ "@ckeditor/ckeditor5-block-quote": "^37.0.0-alpha.2",
19
+ "@ckeditor/ckeditor5-core": "^37.0.0-alpha.2",
20
+ "@ckeditor/ckeditor5-dev-utils": "^35.0.0",
21
+ "@ckeditor/ckeditor5-editor-classic": "^37.0.0-alpha.2",
22
+ "@ckeditor/ckeditor5-engine": "^37.0.0-alpha.2",
23
+ "@ckeditor/ckeditor5-enter": "^37.0.0-alpha.2",
24
+ "@ckeditor/ckeditor5-heading": "^37.0.0-alpha.2",
25
+ "@ckeditor/ckeditor5-image": "^37.0.0-alpha.2",
26
+ "@ckeditor/ckeditor5-list": "^37.0.0-alpha.2",
27
+ "@ckeditor/ckeditor5-paragraph": "^37.0.0-alpha.2",
28
+ "@ckeditor/ckeditor5-theme-lark": "^37.0.0-alpha.2",
29
+ "@ckeditor/ckeditor5-typing": "^37.0.0-alpha.2",
30
30
  "typescript": "^4.8.4",
31
31
  "webpack": "^5.58.1",
32
32
  "webpack-cli": "^4.9.0"
@@ -55,7 +55,7 @@
55
55
  ],
56
56
  "scripts": {
57
57
  "dll:build": "webpack",
58
- "build": "tsc -p ./tsconfig.release.json",
58
+ "build": "tsc -p ./tsconfig.json",
59
59
  "postversion": "npm run build"
60
60
  },
61
61
  "types": "src/index.d.ts"
@@ -25,8 +25,3 @@ export default class Alignment extends Plugin {
25
25
  */
26
26
  static get pluginName(): 'Alignment';
27
27
  }
28
- declare module '@ckeditor/ckeditor5-core' {
29
- interface PluginsMap {
30
- [Alignment.pluginName]: Alignment;
31
- }
32
- }
@@ -41,8 +41,3 @@ export default class AlignmentCommand extends Command {
41
41
  */
42
42
  private _canBeAligned;
43
43
  }
44
- declare module '@ckeditor/ckeditor5-core' {
45
- interface CommandsMap {
46
- alignment: AlignmentCommand;
47
- }
48
- }
@@ -21,9 +21,9 @@
21
21
  *
22
22
  * See {@link module:core/editor/editorconfig~EditorConfig all editor configuration options}.
23
23
  */
24
- export type AlignmentConfig = {
24
+ export interface AlignmentConfig {
25
25
  options?: Array<SupportedOption | AlignmentFormat>;
26
- };
26
+ }
27
27
  /**
28
28
  * Available alignment options.
29
29
  *
@@ -70,13 +70,3 @@ export type AlignmentFormat = {
70
70
  className?: string;
71
71
  };
72
72
  export type SupportedOption = 'left' | 'right' | 'center' | 'justify';
73
- declare module '@ckeditor/ckeditor5-core' {
74
- interface EditorConfig {
75
- /**
76
- * The configuration of the {@link module:alignment/alignment~Alignment alignment feature}.
77
- *
78
- * Read more in {@link module:alignment/alignmentconfig~AlignmentConfig}.
79
- */
80
- alignment?: AlignmentConfig;
81
- }
82
- }
@@ -24,8 +24,3 @@ export default class AlignmentEditing extends Plugin {
24
24
  */
25
25
  init(): void;
26
26
  }
27
- declare module '@ckeditor/ckeditor5-core' {
28
- interface PluginsMap {
29
- [AlignmentEditing.pluginName]: AlignmentEditing;
30
- }
31
- }
@@ -43,8 +43,3 @@ export default class AlignmentUI extends Plugin {
43
43
  */
44
44
  private _addButton;
45
45
  }
46
- declare module '@ckeditor/ckeditor5-core' {
47
- interface PluginsMap {
48
- [AlignmentUI.pluginName]: AlignmentUI;
49
- }
50
- }
@@ -0,0 +1,23 @@
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 { Alignment, AlignmentEditing, AlignmentUI, AlignmentCommand, AlignmentConfig } from './index';
6
+ declare module '@ckeditor/ckeditor5-core' {
7
+ interface EditorConfig {
8
+ /**
9
+ * The configuration of the {@link module:alignment/alignment~Alignment alignment feature}.
10
+ *
11
+ * Read more in {@link module:alignment/alignmentconfig~AlignmentConfig}.
12
+ */
13
+ alignment?: AlignmentConfig;
14
+ }
15
+ interface PluginsMap {
16
+ [Alignment.pluginName]: Alignment;
17
+ [AlignmentUI.pluginName]: AlignmentUI;
18
+ [AlignmentEditing.pluginName]: AlignmentEditing;
19
+ }
20
+ interface CommandsMap {
21
+ alignment: AlignmentCommand;
22
+ }
23
+ }
@@ -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/index.d.ts CHANGED
@@ -8,3 +8,6 @@
8
8
  export { default as Alignment } from './alignment';
9
9
  export { default as AlignmentEditing } from './alignmentediting';
10
10
  export { default as AlignmentUI } from './alignmentui';
11
+ export type { default as AlignmentCommand } from './alignmentcommand';
12
+ export type { AlignmentConfig } from './alignmentconfig';
13
+ import './augmentation';
package/src/index.js CHANGED
@@ -8,3 +8,4 @@
8
8
  export { default as Alignment } from './alignment';
9
9
  export { default as AlignmentEditing } from './alignmentediting';
10
10
  export { default as AlignmentUI } from './alignmentui';
11
+ import './augmentation';