@ckeditor/ckeditor5-undo 40.2.0 → 41.0.0
Sign up to get free protection for your applications and to get access to all the features.
- package/LICENSE.md +1 -1
- package/ckeditor5-metadata.json +2 -2
- package/lang/translations/ar.po +1 -1
- package/lang/translations/ast.po +1 -1
- package/lang/translations/az.po +1 -1
- package/lang/translations/bg.po +1 -1
- package/lang/translations/bn.po +1 -1
- package/lang/translations/ca.po +1 -1
- package/lang/translations/cs.po +1 -1
- package/lang/translations/da.po +1 -1
- package/lang/translations/de-ch.po +1 -1
- package/lang/translations/de.po +1 -1
- package/lang/translations/el.po +1 -1
- package/lang/translations/en-au.po +1 -1
- package/lang/translations/en-gb.po +1 -1
- package/lang/translations/en.po +1 -1
- package/lang/translations/eo.po +1 -1
- package/lang/translations/es.po +1 -1
- package/lang/translations/et.po +1 -1
- package/lang/translations/eu.po +1 -1
- package/lang/translations/fa.po +1 -1
- package/lang/translations/fi.po +1 -1
- package/lang/translations/fr.po +1 -1
- package/lang/translations/gl.po +1 -1
- package/lang/translations/he.po +1 -1
- package/lang/translations/hi.po +1 -1
- package/lang/translations/hr.po +1 -1
- package/lang/translations/hu.po +1 -1
- package/lang/translations/id.po +1 -1
- package/lang/translations/it.po +1 -1
- package/lang/translations/ja.po +1 -1
- package/lang/translations/km.po +1 -1
- package/lang/translations/kn.po +1 -1
- package/lang/translations/ko.po +1 -1
- package/lang/translations/ku.po +1 -1
- package/lang/translations/lt.po +1 -1
- package/lang/translations/lv.po +1 -1
- package/lang/translations/ms.po +1 -1
- package/lang/translations/nb.po +1 -1
- package/lang/translations/ne.po +1 -1
- package/lang/translations/nl.po +1 -1
- package/lang/translations/no.po +1 -1
- package/lang/translations/pl.po +1 -1
- package/lang/translations/pt-br.po +1 -1
- package/lang/translations/pt.po +1 -1
- package/lang/translations/ro.po +1 -1
- package/lang/translations/ru.po +1 -1
- package/lang/translations/si.po +1 -1
- package/lang/translations/sk.po +1 -1
- package/lang/translations/sq.po +1 -1
- package/lang/translations/sr-latn.po +1 -1
- package/lang/translations/sr.po +1 -1
- package/lang/translations/sv.po +1 -1
- package/lang/translations/th.po +1 -1
- package/lang/translations/tk.po +1 -1
- package/lang/translations/tr.po +1 -1
- package/lang/translations/tt.po +1 -1
- package/lang/translations/ug.po +1 -1
- package/lang/translations/uk.po +1 -1
- package/lang/translations/ur.po +1 -1
- package/lang/translations/uz.po +1 -1
- package/lang/translations/vi.po +1 -1
- package/lang/translations/zh-cn.po +1 -1
- package/lang/translations/zh.po +1 -1
- package/package.json +5 -4
- package/src/augmentation.d.ts +2 -2
- package/src/augmentation.js +1 -1
- package/src/basecommand.d.ts +1 -1
- package/src/basecommand.js +1 -1
- package/src/index.d.ts +7 -7
- package/src/index.js +5 -5
- package/src/redocommand.d.ts +2 -2
- package/src/redocommand.js +2 -2
- package/src/undo.d.ts +3 -3
- package/src/undo.js +3 -3
- package/src/undocommand.d.ts +2 -2
- package/src/undocommand.js +2 -2
- package/src/undoediting.d.ts +1 -1
- package/src/undoediting.js +3 -3
- package/src/undoui.d.ts +1 -1
- package/src/undoui.js +4 -6
- package/theme/icons/redo.svg +0 -1
- package/theme/icons/undo.svg +0 -1
package/LICENSE.md
CHANGED
@@ -2,7 +2,7 @@ Software License Agreement
|
|
2
2
|
==========================
|
3
3
|
|
4
4
|
**CKEditor 5 undo feature** – https://github.com/ckeditor/ckeditor5-undo <br>
|
5
|
-
Copyright (c) 2003–
|
5
|
+
Copyright (c) 2003–2024, [CKSource Holding sp. z o.o.](https://cksource.com) All rights reserved.
|
6
6
|
|
7
7
|
Licensed under the terms of [GNU General Public License Version 2 or later](http://www.gnu.org/licenses/gpl.html).
|
8
8
|
|
package/ckeditor5-metadata.json
CHANGED
@@ -10,12 +10,12 @@
|
|
10
10
|
{
|
11
11
|
"type": "Button",
|
12
12
|
"name": "undo",
|
13
|
-
"iconPath": "@ckeditor/ckeditor5-
|
13
|
+
"iconPath": "@ckeditor/ckeditor5-core/theme/icons/undo.svg"
|
14
14
|
},
|
15
15
|
{
|
16
16
|
"type": "Button",
|
17
17
|
"name": "redo",
|
18
|
-
"iconPath": "@ckeditor/ckeditor5-
|
18
|
+
"iconPath": "@ckeditor/ckeditor5-core/theme/icons/redo.svg"
|
19
19
|
}
|
20
20
|
]
|
21
21
|
}
|
package/lang/translations/ar.po
CHANGED
package/lang/translations/ast.po
CHANGED
package/lang/translations/az.po
CHANGED
package/lang/translations/bg.po
CHANGED
package/lang/translations/bn.po
CHANGED
package/lang/translations/ca.po
CHANGED
package/lang/translations/cs.po
CHANGED
package/lang/translations/da.po
CHANGED
package/lang/translations/de.po
CHANGED
package/lang/translations/el.po
CHANGED
package/lang/translations/en.po
CHANGED
package/lang/translations/eo.po
CHANGED
package/lang/translations/es.po
CHANGED
package/lang/translations/et.po
CHANGED
package/lang/translations/eu.po
CHANGED
package/lang/translations/fa.po
CHANGED
package/lang/translations/fi.po
CHANGED
package/lang/translations/fr.po
CHANGED
package/lang/translations/gl.po
CHANGED
package/lang/translations/he.po
CHANGED
package/lang/translations/hi.po
CHANGED
package/lang/translations/hr.po
CHANGED
package/lang/translations/hu.po
CHANGED
package/lang/translations/id.po
CHANGED
package/lang/translations/it.po
CHANGED
package/lang/translations/ja.po
CHANGED
package/lang/translations/km.po
CHANGED
package/lang/translations/kn.po
CHANGED
package/lang/translations/ko.po
CHANGED
package/lang/translations/ku.po
CHANGED
package/lang/translations/lt.po
CHANGED
package/lang/translations/lv.po
CHANGED
package/lang/translations/ms.po
CHANGED
package/lang/translations/nb.po
CHANGED
package/lang/translations/ne.po
CHANGED
package/lang/translations/nl.po
CHANGED
package/lang/translations/no.po
CHANGED
package/lang/translations/pl.po
CHANGED
package/lang/translations/pt.po
CHANGED
package/lang/translations/ro.po
CHANGED
package/lang/translations/ru.po
CHANGED
package/lang/translations/si.po
CHANGED
package/lang/translations/sk.po
CHANGED
package/lang/translations/sq.po
CHANGED
package/lang/translations/sr.po
CHANGED
package/lang/translations/sv.po
CHANGED
package/lang/translations/th.po
CHANGED
package/lang/translations/tk.po
CHANGED
package/lang/translations/tr.po
CHANGED
package/lang/translations/tt.po
CHANGED
package/lang/translations/ug.po
CHANGED
package/lang/translations/uk.po
CHANGED
package/lang/translations/ur.po
CHANGED
package/lang/translations/uz.po
CHANGED
package/lang/translations/vi.po
CHANGED
package/lang/translations/zh.po
CHANGED
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@ckeditor/ckeditor5-undo",
|
3
|
-
"version": "
|
3
|
+
"version": "41.0.0",
|
4
4
|
"description": "Undo feature for CKEditor 5.",
|
5
5
|
"keywords": [
|
6
6
|
"ckeditor",
|
@@ -10,11 +10,12 @@
|
|
10
10
|
"ckeditor5-plugin",
|
11
11
|
"ckeditor5-dll"
|
12
12
|
],
|
13
|
+
"type": "module",
|
13
14
|
"main": "src/index.js",
|
14
15
|
"dependencies": {
|
15
|
-
"@ckeditor/ckeditor5-core": "
|
16
|
-
"@ckeditor/ckeditor5-engine": "
|
17
|
-
"@ckeditor/ckeditor5-ui": "
|
16
|
+
"@ckeditor/ckeditor5-core": "41.0.0",
|
17
|
+
"@ckeditor/ckeditor5-engine": "41.0.0",
|
18
|
+
"@ckeditor/ckeditor5-ui": "41.0.0"
|
18
19
|
},
|
19
20
|
"author": "CKSource (http://cksource.com/)",
|
20
21
|
"license": "GPL-2.0-or-later",
|
package/src/augmentation.d.ts
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
/**
|
2
|
-
* @license Copyright (c) 2003-
|
2
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
4
4
|
*/
|
5
|
-
import type { Undo, UndoEditing, UndoUI, UndoCommand, RedoCommand } from './index';
|
5
|
+
import type { Undo, UndoEditing, UndoUI, UndoCommand, RedoCommand } from './index.js';
|
6
6
|
declare module '@ckeditor/ckeditor5-core' {
|
7
7
|
interface CommandsMap {
|
8
8
|
undo: UndoCommand;
|
package/src/augmentation.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
/**
|
2
|
-
* @license Copyright (c) 2003-
|
2
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
4
4
|
*/
|
5
5
|
export {};
|
package/src/basecommand.d.ts
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
/**
|
2
|
-
* @license Copyright (c) 2003-
|
2
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
4
4
|
*/
|
5
5
|
/**
|
package/src/basecommand.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
/**
|
2
|
-
* @license Copyright (c) 2003-
|
2
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
4
4
|
*/
|
5
5
|
/**
|
package/src/index.d.ts
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
/**
|
2
|
-
* @license Copyright (c) 2003-
|
2
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
4
4
|
*/
|
5
5
|
/**
|
6
6
|
* @module undo
|
7
7
|
*/
|
8
|
-
export { default as Undo } from './undo';
|
9
|
-
export { default as UndoEditing } from './undoediting';
|
10
|
-
export { default as UndoUI } from './undoui';
|
11
|
-
export type { default as UndoCommand } from './undocommand';
|
12
|
-
export type { default as RedoCommand } from './redocommand';
|
13
|
-
import './augmentation';
|
8
|
+
export { default as Undo } from './undo.js';
|
9
|
+
export { default as UndoEditing } from './undoediting.js';
|
10
|
+
export { default as UndoUI } from './undoui.js';
|
11
|
+
export type { default as UndoCommand } from './undocommand.js';
|
12
|
+
export type { default as RedoCommand } from './redocommand.js';
|
13
|
+
import './augmentation.js';
|
package/src/index.js
CHANGED
@@ -1,11 +1,11 @@
|
|
1
1
|
/**
|
2
|
-
* @license Copyright (c) 2003-
|
2
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
4
4
|
*/
|
5
5
|
/**
|
6
6
|
* @module undo
|
7
7
|
*/
|
8
|
-
export { default as Undo } from './undo';
|
9
|
-
export { default as UndoEditing } from './undoediting';
|
10
|
-
export { default as UndoUI } from './undoui';
|
11
|
-
import './augmentation';
|
8
|
+
export { default as Undo } from './undo.js';
|
9
|
+
export { default as UndoEditing } from './undoediting.js';
|
10
|
+
export { default as UndoUI } from './undoui.js';
|
11
|
+
import './augmentation.js';
|
package/src/redocommand.d.ts
CHANGED
@@ -1,11 +1,11 @@
|
|
1
1
|
/**
|
2
|
-
* @license Copyright (c) 2003-
|
2
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
4
4
|
*/
|
5
5
|
/**
|
6
6
|
* @module undo/redocommand
|
7
7
|
*/
|
8
|
-
import BaseCommand from './basecommand';
|
8
|
+
import BaseCommand from './basecommand.js';
|
9
9
|
/**
|
10
10
|
* The redo command stores {@link module:engine/model/batch~Batch batches} that were used to undo a batch by
|
11
11
|
* {@link module:undo/undocommand~UndoCommand}. It is able to redo a previously undone batch by reversing the undoing
|
package/src/redocommand.js
CHANGED
@@ -1,11 +1,11 @@
|
|
1
1
|
/**
|
2
|
-
* @license Copyright (c) 2003-
|
2
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
4
4
|
*/
|
5
5
|
/**
|
6
6
|
* @module undo/redocommand
|
7
7
|
*/
|
8
|
-
import BaseCommand from './basecommand';
|
8
|
+
import BaseCommand from './basecommand.js';
|
9
9
|
/**
|
10
10
|
* The redo command stores {@link module:engine/model/batch~Batch batches} that were used to undo a batch by
|
11
11
|
* {@link module:undo/undocommand~UndoCommand}. It is able to redo a previously undone batch by reversing the undoing
|
package/src/undo.d.ts
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
/**
|
2
|
-
* @license Copyright (c) 2003-
|
2
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
4
4
|
*/
|
5
5
|
/**
|
6
6
|
* @module undo/undo
|
7
7
|
*/
|
8
8
|
import { Plugin } from '@ckeditor/ckeditor5-core';
|
9
|
-
import UndoEditing from './undoediting';
|
10
|
-
import UndoUI from './undoui';
|
9
|
+
import UndoEditing from './undoediting.js';
|
10
|
+
import UndoUI from './undoui.js';
|
11
11
|
/**
|
12
12
|
* The undo feature.
|
13
13
|
*
|
package/src/undo.js
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
/**
|
2
|
-
* @license Copyright (c) 2003-
|
2
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
4
4
|
*/
|
5
5
|
/**
|
6
6
|
* @module undo/undo
|
7
7
|
*/
|
8
8
|
import { Plugin } from '@ckeditor/ckeditor5-core';
|
9
|
-
import UndoEditing from './undoediting';
|
10
|
-
import UndoUI from './undoui';
|
9
|
+
import UndoEditing from './undoediting.js';
|
10
|
+
import UndoUI from './undoui.js';
|
11
11
|
/**
|
12
12
|
* The undo feature.
|
13
13
|
*
|
package/src/undocommand.d.ts
CHANGED
@@ -1,11 +1,11 @@
|
|
1
1
|
/**
|
2
|
-
* @license Copyright (c) 2003-
|
2
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
4
4
|
*/
|
5
5
|
/**
|
6
6
|
* @module undo/undocommand
|
7
7
|
*/
|
8
|
-
import BaseCommand from './basecommand';
|
8
|
+
import BaseCommand from './basecommand.js';
|
9
9
|
import type { Batch } from '@ckeditor/ckeditor5-engine';
|
10
10
|
/**
|
11
11
|
* The undo command stores {@link module:engine/model/batch~Batch batches} applied to the
|
package/src/undocommand.js
CHANGED
@@ -1,11 +1,11 @@
|
|
1
1
|
/**
|
2
|
-
* @license Copyright (c) 2003-
|
2
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
4
4
|
*/
|
5
5
|
/**
|
6
6
|
* @module undo/undocommand
|
7
7
|
*/
|
8
|
-
import BaseCommand from './basecommand';
|
8
|
+
import BaseCommand from './basecommand.js';
|
9
9
|
/**
|
10
10
|
* The undo command stores {@link module:engine/model/batch~Batch batches} applied to the
|
11
11
|
* {@link module:engine/model/document~Document document} and is able to undo a batch by reversing it and transforming by
|
package/src/undoediting.d.ts
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
/**
|
2
|
-
* @license Copyright (c) 2003-
|
2
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
4
4
|
*/
|
5
5
|
/**
|
package/src/undoediting.js
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
/**
|
2
|
-
* @license Copyright (c) 2003-
|
2
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
4
4
|
*/
|
5
5
|
/**
|
6
6
|
* @module undo/undoediting
|
7
7
|
*/
|
8
8
|
import { Plugin } from '@ckeditor/ckeditor5-core';
|
9
|
-
import UndoCommand from './undocommand';
|
10
|
-
import RedoCommand from './redocommand';
|
9
|
+
import UndoCommand from './undocommand.js';
|
10
|
+
import RedoCommand from './redocommand.js';
|
11
11
|
/**
|
12
12
|
* The undo engine feature.
|
13
13
|
*
|
package/src/undoui.d.ts
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
/**
|
2
|
-
* @license Copyright (c) 2003-
|
2
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
4
4
|
*/
|
5
5
|
/**
|
package/src/undoui.js
CHANGED
@@ -1,14 +1,12 @@
|
|
1
1
|
/**
|
2
|
-
* @license Copyright (c) 2003-
|
2
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
4
4
|
*/
|
5
5
|
/**
|
6
6
|
* @module undo/undoui
|
7
7
|
*/
|
8
|
-
import { Plugin } from '@ckeditor/ckeditor5-core';
|
8
|
+
import { icons, Plugin } from '@ckeditor/ckeditor5-core';
|
9
9
|
import { ButtonView } from '@ckeditor/ckeditor5-ui';
|
10
|
-
import undoIcon from '../theme/icons/undo.svg';
|
11
|
-
import redoIcon from '../theme/icons/redo.svg';
|
12
10
|
/**
|
13
11
|
* The undo UI feature. It introduces the `'undo'` and `'redo'` buttons to the editor.
|
14
12
|
*/
|
@@ -26,8 +24,8 @@ export default class UndoUI extends Plugin {
|
|
26
24
|
const editor = this.editor;
|
27
25
|
const locale = editor.locale;
|
28
26
|
const t = editor.t;
|
29
|
-
const localizedUndoIcon = locale.uiLanguageDirection == 'ltr' ?
|
30
|
-
const localizedRedoIcon = locale.uiLanguageDirection == 'ltr' ?
|
27
|
+
const localizedUndoIcon = locale.uiLanguageDirection == 'ltr' ? icons.undo : icons.redo;
|
28
|
+
const localizedRedoIcon = locale.uiLanguageDirection == 'ltr' ? icons.redo : icons.undo;
|
31
29
|
this._addButton('undo', t('Undo'), 'CTRL+Z', localizedUndoIcon);
|
32
30
|
this._addButton('redo', t('Redo'), 'CTRL+Y', localizedRedoIcon);
|
33
31
|
}
|
package/theme/icons/redo.svg
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="m14.958 9.367-2.189 1.837a.75.75 0 0 0 .965 1.149l3.788-3.18a.747.747 0 0 0 .21-.284.75.75 0 0 0-.17-.945L13.77 4.762a.75.75 0 1 0-.964 1.15l2.331 1.955H6.22A.75.75 0 0 0 6 7.9a4 4 0 1 0 1.477 7.718l-.344-1.489A2.5 2.5 0 1 1 6.039 9.4l-.008-.032h8.927z"/></svg>
|
package/theme/icons/undo.svg
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="m5.042 9.367 2.189 1.837a.75.75 0 0 1-.965 1.149l-3.788-3.18a.747.747 0 0 1-.21-.284.75.75 0 0 1 .17-.945L6.23 4.762a.75.75 0 1 1 .964 1.15L4.863 7.866h8.917A.75.75 0 0 1 14 7.9a4 4 0 1 1-1.477 7.718l.344-1.489a2.5 2.5 0 1 0 1.094-4.73l.008-.032H5.042z"/></svg>
|