@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 +14 -14
- package/src/augmentation.d.ts +16 -0
- package/src/augmentation.js +5 -0
- package/src/basecommand.d.ts +3 -1
- package/src/basecommand.js +2 -0
- package/src/index.d.ts +3 -1
- package/src/index.js +2 -1
- package/src/redocommand.d.ts +0 -5
- package/src/undo.d.ts +0 -5
- package/src/undocommand.d.ts +1 -6
- package/src/undoediting.d.ts +0 -5
- package/src/undoui.d.ts +0 -5
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@ckeditor/ckeditor5-undo",
|
3
|
-
"version": "37.0.0-alpha.
|
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.
|
16
|
-
"@ckeditor/ckeditor5-engine": "^37.0.0-alpha.
|
17
|
-
"@ckeditor/ckeditor5-ui": "^37.0.0-alpha.
|
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.
|
21
|
-
"@ckeditor/ckeditor5-clipboard": "^37.0.0-alpha.
|
22
|
-
"@ckeditor/ckeditor5-editor-classic": "^37.0.0-alpha.
|
23
|
-
"@ckeditor/ckeditor5-enter": "^37.0.0-alpha.
|
24
|
-
"@ckeditor/ckeditor5-heading": "^37.0.0-alpha.
|
25
|
-
"@ckeditor/ckeditor5-paragraph": "^37.0.0-alpha.
|
26
|
-
"@ckeditor/ckeditor5-typing": "^37.0.0-alpha.
|
27
|
-
"@ckeditor/ckeditor5-table": "^37.0.0-alpha.
|
28
|
-
"@ckeditor/ckeditor5-utils": "^37.0.0-alpha.
|
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.
|
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
|
+
}
|
package/src/basecommand.d.ts
CHANGED
@@ -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
|
-
|
32
|
+
_createdBatches: WeakSet<Batch>;
|
31
33
|
/**
|
32
34
|
* @inheritDoc
|
33
35
|
*/
|
package/src/basecommand.js
CHANGED
@@ -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
|
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
package/src/redocommand.d.ts
CHANGED
package/src/undo.d.ts
CHANGED
package/src/undocommand.d.ts
CHANGED
@@ -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
|
-
}
|
package/src/undoediting.d.ts
CHANGED