@ckeditor/ckeditor5-undo 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-undo",
3
- "version": "37.0.0-alpha.0",
3
+ "version": "37.0.0-alpha.2",
4
4
  "description": "Undo feature for CKEditor 5.",
5
5
  "keywords": [
6
6
  "ckeditor",
@@ -12,20 +12,20 @@
12
12
  ],
13
13
  "main": "src/index.js",
14
14
  "dependencies": {
15
- "@ckeditor/ckeditor5-core": "^37.0.0-alpha.0",
16
- "@ckeditor/ckeditor5-engine": "^37.0.0-alpha.0",
17
- "@ckeditor/ckeditor5-ui": "^37.0.0-alpha.0"
15
+ "@ckeditor/ckeditor5-core": "^37.0.0-alpha.2",
16
+ "@ckeditor/ckeditor5-engine": "^37.0.0-alpha.2",
17
+ "@ckeditor/ckeditor5-ui": "^37.0.0-alpha.2"
18
18
  },
19
19
  "devDependencies": {
20
- "@ckeditor/ckeditor5-basic-styles": "^37.0.0-alpha.0",
21
- "@ckeditor/ckeditor5-clipboard": "^37.0.0-alpha.0",
22
- "@ckeditor/ckeditor5-editor-classic": "^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-paragraph": "^37.0.0-alpha.0",
26
- "@ckeditor/ckeditor5-typing": "^37.0.0-alpha.0",
27
- "@ckeditor/ckeditor5-table": "^37.0.0-alpha.0",
28
- "@ckeditor/ckeditor5-utils": "^37.0.0-alpha.0",
20
+ "@ckeditor/ckeditor5-basic-styles": "^37.0.0-alpha.2",
21
+ "@ckeditor/ckeditor5-clipboard": "^37.0.0-alpha.2",
22
+ "@ckeditor/ckeditor5-editor-classic": "^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-paragraph": "^37.0.0-alpha.2",
26
+ "@ckeditor/ckeditor5-typing": "^37.0.0-alpha.2",
27
+ "@ckeditor/ckeditor5-table": "^37.0.0-alpha.2",
28
+ "@ckeditor/ckeditor5-utils": "^37.0.0-alpha.2",
29
29
  "typescript": "^4.8.4",
30
30
  "webpack": "^5.58.1",
31
31
  "webpack-cli": "^4.9.0"
@@ -52,7 +52,7 @@
52
52
  "CHANGELOG.md"
53
53
  ],
54
54
  "scripts": {
55
- "build": "tsc -p ./tsconfig.release.json",
55
+ "build": "tsc -p ./tsconfig.json",
56
56
  "postversion": "npm run build"
57
57
  },
58
58
  "types": "src/index.d.ts"
@@ -0,0 +1,16 @@
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 { Undo, UndoEditing, UndoUI, UndoCommand, RedoCommand } from './index';
6
+ declare module '@ckeditor/ckeditor5-core' {
7
+ interface CommandsMap {
8
+ undo: UndoCommand;
9
+ redo: RedoCommand;
10
+ }
11
+ interface PluginsMap {
12
+ [Undo.pluginName]: Undo;
13
+ [UndoEditing.pluginName]: UndoEditing;
14
+ [UndoUI.pluginName]: UndoUI;
15
+ }
16
+ }
@@ -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 {};
@@ -26,8 +26,10 @@ export default abstract class BaseCommand extends Command {
26
26
  }>;
27
27
  /**
28
28
  * Stores all batches that were created by this command.
29
+ *
30
+ * @internal
29
31
  */
30
- protected _createdBatches: WeakSet<Batch>;
32
+ _createdBatches: WeakSet<Batch>;
31
33
  /**
32
34
  * @inheritDoc
33
35
  */
@@ -25,6 +25,8 @@ export default class BaseCommand extends Command {
25
25
  this._stack = [];
26
26
  /**
27
27
  * Stores all batches that were created by this command.
28
+ *
29
+ * @internal
28
30
  */
29
31
  this._createdBatches = new WeakSet();
30
32
  // Refresh state, so the command is inactive right after initialization.
package/src/index.d.ts CHANGED
@@ -7,5 +7,7 @@
7
7
  */
8
8
  export { default as Undo } from './undo';
9
9
  export { default as UndoEditing } from './undoediting';
10
- export { default as UndoUi } from './undoui';
10
+ export { default as UndoUI } from './undoui';
11
11
  export type { default as UndoCommand } from './undocommand';
12
+ export type { default as RedoCommand } from './redocommand';
13
+ import './augmentation';
package/src/index.js CHANGED
@@ -7,4 +7,5 @@
7
7
  */
8
8
  export { default as Undo } from './undo';
9
9
  export { default as UndoEditing } from './undoediting';
10
- export { default as UndoUi } from './undoui';
10
+ export { default as UndoUI } from './undoui';
11
+ import './augmentation';
@@ -25,8 +25,3 @@ export default class RedoCommand extends BaseCommand {
25
25
  */
26
26
  execute(): void;
27
27
  }
28
- declare module '@ckeditor/ckeditor5-core' {
29
- interface CommandsMap {
30
- redo: RedoCommand;
31
- }
32
- }
package/src/undo.d.ts CHANGED
@@ -113,8 +113,3 @@ export default class Undo extends Plugin {
113
113
  */
114
114
  static get pluginName(): 'Undo';
115
115
  }
116
- declare module '@ckeditor/ckeditor5-core' {
117
- interface PluginsMap {
118
- [Undo.pluginName]: Undo;
119
- }
120
- }
@@ -29,14 +29,9 @@ export default class UndoCommand extends BaseCommand {
29
29
  /**
30
30
  * Fired when execution of the command reverts some batch.
31
31
  *
32
- * @eventName revert
32
+ * @eventName ~UndoCommand#revert
33
33
  */
34
34
  export type UndoCommandRevertEvent = {
35
35
  name: 'revert';
36
36
  args: [batch: Batch, undoingBatch: Batch];
37
37
  };
38
- declare module '@ckeditor/ckeditor5-core' {
39
- interface CommandsMap {
40
- undo: UndoCommand;
41
- }
42
- }
@@ -35,8 +35,3 @@ export default class UndoEditing extends Plugin {
35
35
  */
36
36
  init(): void;
37
37
  }
38
- declare module '@ckeditor/ckeditor5-core' {
39
- interface PluginsMap {
40
- [UndoEditing.pluginName]: UndoEditing;
41
- }
42
- }
package/src/undoui.d.ts CHANGED
@@ -28,8 +28,3 @@ export default class UndoUI extends Plugin {
28
28
  */
29
29
  private _addButton;
30
30
  }
31
- declare module '@ckeditor/ckeditor5-core' {
32
- interface PluginsMap {
33
- [UndoUI.pluginName]: UndoUI;
34
- }
35
- }