@ckeditor/ckeditor5-revision-history 38.0.1 → 38.1.1
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/build/revision-history.js +1 -1
- package/package.json +13 -11
- package/src/augmentation.d.ts +25 -25
- package/src/changeitem.d.ts +57 -57
- package/src/changeitem.js +1 -1
- package/src/editor/revisionviewereditor.d.ts +27 -27
- package/src/editor/revisionviewereditor.js +1 -1
- package/src/editor/revisionviewereditorui.d.ts +28 -28
- package/src/editor/revisionviewereditorui.js +1 -1
- package/src/editor/revisionviewereditoruiview.d.ts +43 -43
- package/src/editor/revisionviewereditoruiview.js +1 -1
- package/src/index.d.ts +11 -10
- package/src/revision.d.ts +153 -153
- package/src/revision.js +1 -1
- package/src/revisiondiff.d.ts +20 -20
- package/src/revisiondiff.js +1 -1
- package/src/revisionhistory.d.ts +95 -93
- package/src/revisionhistory.js +1 -1
- package/src/revisionhistoryadapter.d.ts +60 -60
- package/src/revisionhistoryconfig.d.ts +60 -60
- package/src/revisionsrepository.d.ts +48 -43
- package/src/revisionsrepository.js +1 -1
- package/src/revisiontracker.d.ts +77 -72
- package/src/revisiontracker.js +1 -1
- package/src/revisionviewer.d.ts +21 -21
- package/src/revisionviewer.js +1 -1
- package/src/ui/revision/createrevisionactionsdropdown.d.ts +9 -9
- package/src/ui/revision/createrevisionactionsdropdown.js +1 -1
- package/src/ui/revision/revisionauthorview.d.ts +4 -4
- package/src/ui/revision/revisionauthorview.js +1 -1
- package/src/ui/revision/revisionnameview.d.ts +4 -4
- package/src/ui/revision/revisionnameview.js +1 -1
- package/src/ui/revision/revisionview.d.ts +91 -91
- package/src/ui/revision/revisionview.js +1 -1
- package/src/ui/revision/subrevisioncollapserview.d.ts +17 -17
- package/src/ui/revision/subrevisioncollapserview.js +1 -1
- package/src/ui/revision/subrevisionview.d.ts +30 -30
- package/src/ui/revision/subrevisionview.js +1 -1
- package/src/ui/revision/utils.d.ts +4 -4
- package/src/ui/revision/utils.js +1 -1
- package/src/ui/revisionhistory/revisionhistorysaverevisionformview.d.ts +80 -80
- package/src/ui/revisionhistory/revisionhistorysaverevisionformview.js +1 -1
- package/src/ui/revisionhistory/revisionhistoryui.d.ts +22 -21
- package/src/ui/revisionhistory/revisionhistoryui.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebar.d.ts +40 -39
- package/src/ui/revisionssidebar/revisionssidebar.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebarheaderview.d.ts +4 -4
- package/src/ui/revisionssidebar/revisionssidebarheaderview.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebartimeperiodview.d.ts +25 -25
- package/src/ui/revisionssidebar/revisionssidebartimeperiodview.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebarview.d.ts +40 -40
- package/src/ui/revisionssidebar/revisionssidebarview.js +1 -1
- package/src/ui/revisionssidebar/utils.d.ts +8 -8
- package/src/ui/revisionssidebar/utils.js +1 -1
- package/src/ui/revisionviewer/changedetailsview.d.ts +18 -18
- package/src/ui/revisionviewer/changedetailsview.js +1 -1
- package/src/ui/revisionviewer/changesnavigationview.d.ts +36 -36
- package/src/ui/revisionviewer/changesnavigationview.js +1 -1
- package/src/ui/revisionviewer/revisionviewerloadingoverlay.d.ts +22 -22
- package/src/ui/revisionviewer/revisionviewerloadingoverlay.js +1 -1
- package/src/ui/revisionviewer/revisionviewerui.d.ts +24 -22
- package/src/ui/revisionviewer/revisionviewerui.js +1 -1
- package/src/utils/common-translations.d.ts +7 -7
- package/src/utils/common-translations.js +1 -1
package/package.json
CHANGED
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ckeditor/ckeditor5-revision-history",
|
|
3
|
-
"version": "38.
|
|
3
|
+
"version": "38.1.1",
|
|
4
4
|
"description": "Document revision history feature for CKEditor 5.",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
6
6
|
"author": "CKSource (http://cksource.com/)",
|
|
7
|
+
"bugs": {
|
|
8
|
+
"url": "https://support.ckeditor.com/hc/en-us/requests/new"
|
|
9
|
+
},
|
|
7
10
|
"homepage": "https://ckeditor.com/collaboration/",
|
|
8
11
|
"keywords": [
|
|
9
12
|
"CKEditor",
|
|
@@ -24,11 +27,6 @@
|
|
|
24
27
|
"versioning"
|
|
25
28
|
],
|
|
26
29
|
"main": "src/index.js",
|
|
27
|
-
"scripts": {
|
|
28
|
-
"dll:build": "webpack",
|
|
29
|
-
"build": "tsc -p ./tsconfig.json",
|
|
30
|
-
"postversion": "npm run build"
|
|
31
|
-
},
|
|
32
30
|
"files": [
|
|
33
31
|
"build",
|
|
34
32
|
"lang",
|
|
@@ -39,14 +37,18 @@
|
|
|
39
37
|
"CHANGELOG.md"
|
|
40
38
|
],
|
|
41
39
|
"dependencies": {
|
|
42
|
-
"@ckeditor/ckeditor5-editor-classic": "
|
|
43
|
-
"@ckeditor/ckeditor5-ui": "
|
|
44
|
-
"@ckeditor/ckeditor5-undo": "
|
|
45
|
-
"ckeditor5": "
|
|
46
|
-
"ckeditor5-collaboration": "
|
|
40
|
+
"@ckeditor/ckeditor5-editor-classic": "38.1.1",
|
|
41
|
+
"@ckeditor/ckeditor5-ui": "38.1.1",
|
|
42
|
+
"@ckeditor/ckeditor5-undo": "38.1.1",
|
|
43
|
+
"ckeditor5": "38.1.1",
|
|
44
|
+
"ckeditor5-collaboration": "38.1.1",
|
|
47
45
|
"lodash-es": "^4.17.15",
|
|
48
46
|
"luxon": "^1.25.0"
|
|
49
47
|
},
|
|
48
|
+
"engines": {
|
|
49
|
+
"node": ">=16.0.0",
|
|
50
|
+
"npm": ">=5.7.1"
|
|
51
|
+
},
|
|
50
52
|
"types": "src/index.d.ts",
|
|
51
53
|
"obfuscated": true
|
|
52
54
|
}
|
package/src/augmentation.d.ts
CHANGED
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
import type { RevisionHistoryConfig, RevisionsRepository, RevisionViewerLoadingOverlay, RevisionHistoryUI, RevisionTracker, RevisionViewer, RestoreRevisionCommand, ShowChangeCommand, RevisionsSidebar, RevisionViewerUI } from './index';
|
|
2
|
-
declare module '@ckeditor/ckeditor5-core' {
|
|
3
|
-
interface EditorConfig {
|
|
4
|
-
/**
|
|
5
|
-
* The configuration of the revision history feature.
|
|
6
|
-
* Introduced by the {@link module:revision-history/revisionhistory~RevisionHistory} feature.
|
|
7
|
-
*/
|
|
8
|
-
revisionHistory?: RevisionHistoryConfig;
|
|
9
|
-
}
|
|
10
|
-
interface PluginsMap {
|
|
11
|
-
[RevisionsRepository.pluginName]: RevisionsRepository;
|
|
12
|
-
[RevisionViewerLoadingOverlay.pluginName]: RevisionViewerLoadingOverlay;
|
|
13
|
-
[RevisionHistoryUI.pluginName]: RevisionHistoryUI;
|
|
14
|
-
[RevisionTracker.pluginName]: RevisionTracker;
|
|
15
|
-
[RevisionViewer.pluginName]: RevisionViewer;
|
|
16
|
-
[RevisionViewer.pluginName]: RevisionViewer;
|
|
17
|
-
[RevisionsSidebar.pluginName]: RevisionsSidebar;
|
|
18
|
-
[RevisionViewerUI.pluginName]: RevisionViewerUI;
|
|
19
|
-
}
|
|
20
|
-
interface CommandsMap {
|
|
21
|
-
restoreRevision: RestoreRevisionCommand;
|
|
22
|
-
showPreviousChange: ShowChangeCommand<'backward'>;
|
|
23
|
-
showNextChange: ShowChangeCommand<'forward'>;
|
|
24
|
-
}
|
|
25
|
-
}
|
|
1
|
+
import type { RevisionHistoryConfig, RevisionsRepository, RevisionViewerLoadingOverlay, RevisionHistoryUI, RevisionTracker, RevisionViewer, RestoreRevisionCommand, ShowChangeCommand, RevisionsSidebar, RevisionViewerUI } from './index';
|
|
2
|
+
declare module '@ckeditor/ckeditor5-core' {
|
|
3
|
+
interface EditorConfig {
|
|
4
|
+
/**
|
|
5
|
+
* The configuration of the revision history feature.
|
|
6
|
+
* Introduced by the {@link module:revision-history/revisionhistory~RevisionHistory} feature.
|
|
7
|
+
*/
|
|
8
|
+
revisionHistory?: RevisionHistoryConfig;
|
|
9
|
+
}
|
|
10
|
+
interface PluginsMap {
|
|
11
|
+
[RevisionsRepository.pluginName]: RevisionsRepository;
|
|
12
|
+
[RevisionViewerLoadingOverlay.pluginName]: RevisionViewerLoadingOverlay;
|
|
13
|
+
[RevisionHistoryUI.pluginName]: RevisionHistoryUI;
|
|
14
|
+
[RevisionTracker.pluginName]: RevisionTracker;
|
|
15
|
+
[RevisionViewer.pluginName]: RevisionViewer;
|
|
16
|
+
[RevisionViewer.pluginName]: RevisionViewer;
|
|
17
|
+
[RevisionsSidebar.pluginName]: RevisionsSidebar;
|
|
18
|
+
[RevisionViewerUI.pluginName]: RevisionViewerUI;
|
|
19
|
+
}
|
|
20
|
+
interface CommandsMap {
|
|
21
|
+
restoreRevision: RestoreRevisionCommand;
|
|
22
|
+
showPreviousChange: ShowChangeCommand<'backward'>;
|
|
23
|
+
showNextChange: ShowChangeCommand<'forward'>;
|
|
24
|
+
}
|
|
25
|
+
}
|
package/src/changeitem.d.ts
CHANGED
|
@@ -1,57 +1,57 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @module revision-history/changeitem
|
|
3
|
-
*/
|
|
4
|
-
import type { User } from 'ckeditor5-collaboration/src/collaboration-core';
|
|
5
|
-
declare const ChangeItem_base: {
|
|
6
|
-
new (): import("ckeditor5/src/utils").Observable;
|
|
7
|
-
prototype: import("ckeditor5/src/utils").Observable;
|
|
8
|
-
};
|
|
9
|
-
/**
|
|
10
|
-
* Represents a singular change entry in the revision or in the revisions comparison.
|
|
11
|
-
*/
|
|
12
|
-
export default class ChangeItem extends ChangeItem_base {
|
|
13
|
-
/**
|
|
14
|
-
* Unique change item id.
|
|
15
|
-
*/
|
|
16
|
-
readonly id: string;
|
|
17
|
-
/**
|
|
18
|
-
* User who created the change.
|
|
19
|
-
*/
|
|
20
|
-
readonly author: User;
|
|
21
|
-
/**
|
|
22
|
-
* Change type.
|
|
23
|
-
*/
|
|
24
|
-
readonly type: string;
|
|
25
|
-
/**
|
|
26
|
-
* Additional details about the change.
|
|
27
|
-
*/
|
|
28
|
-
readonly data: Record<string, unknown>;
|
|
29
|
-
/**
|
|
30
|
-
* Name of the root which contains the change.
|
|
31
|
-
*/
|
|
32
|
-
readonly rootName: string;
|
|
33
|
-
/**
|
|
34
|
-
* The date when the change was created.
|
|
35
|
-
*
|
|
36
|
-
* @observable
|
|
37
|
-
*/
|
|
38
|
-
readonly createdAt: Date;
|
|
39
|
-
constructor(data: ChangeItemInput);
|
|
40
|
-
toJSON(): ChangeItemJSON;
|
|
41
|
-
}
|
|
42
|
-
export interface ChangeItemInput {
|
|
43
|
-
id?: string;
|
|
44
|
-
author: User;
|
|
45
|
-
type: string;
|
|
46
|
-
data: Record<string, unknown>;
|
|
47
|
-
createdAt: Date;
|
|
48
|
-
rootName: string;
|
|
49
|
-
}
|
|
50
|
-
export interface ChangeItemJSON {
|
|
51
|
-
id: string;
|
|
52
|
-
authorId: string;
|
|
53
|
-
type: string;
|
|
54
|
-
data: Record<string, unknown>;
|
|
55
|
-
createdAt: Date;
|
|
56
|
-
}
|
|
57
|
-
export {};
|
|
1
|
+
/**
|
|
2
|
+
* @module revision-history/changeitem
|
|
3
|
+
*/
|
|
4
|
+
import type { User } from 'ckeditor5-collaboration/src/collaboration-core';
|
|
5
|
+
declare const ChangeItem_base: {
|
|
6
|
+
new (): import("ckeditor5/src/utils").Observable;
|
|
7
|
+
prototype: import("ckeditor5/src/utils").Observable;
|
|
8
|
+
};
|
|
9
|
+
/**
|
|
10
|
+
* Represents a singular change entry in the revision or in the revisions comparison.
|
|
11
|
+
*/
|
|
12
|
+
export default class ChangeItem extends ChangeItem_base {
|
|
13
|
+
/**
|
|
14
|
+
* Unique change item id.
|
|
15
|
+
*/
|
|
16
|
+
readonly id: string;
|
|
17
|
+
/**
|
|
18
|
+
* User who created the change.
|
|
19
|
+
*/
|
|
20
|
+
readonly author: User;
|
|
21
|
+
/**
|
|
22
|
+
* Change type.
|
|
23
|
+
*/
|
|
24
|
+
readonly type: string;
|
|
25
|
+
/**
|
|
26
|
+
* Additional details about the change.
|
|
27
|
+
*/
|
|
28
|
+
readonly data: Record<string, unknown>;
|
|
29
|
+
/**
|
|
30
|
+
* Name of the root which contains the change.
|
|
31
|
+
*/
|
|
32
|
+
readonly rootName: string;
|
|
33
|
+
/**
|
|
34
|
+
* The date when the change was created.
|
|
35
|
+
*
|
|
36
|
+
* @observable
|
|
37
|
+
*/
|
|
38
|
+
readonly createdAt: Date;
|
|
39
|
+
constructor(data: ChangeItemInput);
|
|
40
|
+
toJSON(): ChangeItemJSON;
|
|
41
|
+
}
|
|
42
|
+
export interface ChangeItemInput {
|
|
43
|
+
id?: string;
|
|
44
|
+
author: User;
|
|
45
|
+
type: string;
|
|
46
|
+
data: Record<string, unknown>;
|
|
47
|
+
createdAt: Date;
|
|
48
|
+
rootName: string;
|
|
49
|
+
}
|
|
50
|
+
export interface ChangeItemJSON {
|
|
51
|
+
id: string;
|
|
52
|
+
authorId: string;
|
|
53
|
+
type: string;
|
|
54
|
+
data: Record<string, unknown>;
|
|
55
|
+
createdAt: Date;
|
|
56
|
+
}
|
|
57
|
+
export {};
|
package/src/changeitem.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0xe66b=['type','author','createdAt','rootName','data','toJSON'];(function(_0x289bca,_0xe66ba6){var _0x23ae1e=function(_0x1084af){while(--_0x1084af){_0x289bca['push'](_0x289bca['shift']());}};_0x23ae1e(++_0xe66ba6);}(_0xe66b,0x10e));var _0x23ae=function(_0x289bca,_0xe66ba6){_0x289bca=_0x289bca-0x0;var _0x23ae1e=_0xe66b[_0x289bca];return _0x23ae1e;};import{ObservableMixin as _0x579e32,uid as _0x364d63}from'ckeditor5/src/utils';export default class r extends _0x579e32(){constructor(_0x340872){super(),this['id']=_0x340872['id']||_0x364d63(),this[_0x23ae('0x1')]=_0x340872[_0x23ae('0x1')],this['type']=_0x340872['type'],this['data']=_0x340872[_0x23ae('0x4')]||{},this[_0x23ae('0x3')]=_0x340872[_0x23ae('0x3')],this['set'](_0x23ae('0x2'),_0x340872[_0x23ae('0x2')]);}[_0x23ae('0x5')](){return{'id':this['id'],'authorId':this['author']['id'],'type':this[_0x23ae('0x0')],'data':this[_0x23ae('0x4')],'createdAt':this[_0x23ae('0x2')]};}}
|
|
@@ -1,27 +1,27 @@
|
|
|
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
|
-
/**
|
|
6
|
-
* @module revision-history/editor/revisionviewereditor
|
|
7
|
-
*/
|
|
8
|
-
import { Editor, type EditorConfig } from 'ckeditor5/src/core';
|
|
9
|
-
import RevisionViewerEditorUI from './revisionviewereditorui';
|
|
10
|
-
declare const RevisionViewerEditor_base: import("@ckeditor/ckeditor5-utils").Mixed<import("@ckeditor/ckeditor5-utils").Mixed<typeof Editor, import("ckeditor5/src/core").ElementApi>, import("ckeditor5/src/core").DataApi>;
|
|
11
|
-
/**
|
|
12
|
-
* Editor class used to show revision comparisons.
|
|
13
|
-
*/
|
|
14
|
-
export default class RevisionViewerEditor extends RevisionViewerEditor_base {
|
|
15
|
-
get ui(): RevisionViewerEditorUI;
|
|
16
|
-
/**
|
|
17
|
-
* @param sourceElement Editor source element.
|
|
18
|
-
* @param config Editor configuration.
|
|
19
|
-
*/
|
|
20
|
-
constructor(sourceElement: HTMLElement, config?: EditorConfig);
|
|
21
|
-
/**
|
|
22
|
-
* @inheritDoc
|
|
23
|
-
*/
|
|
24
|
-
destroy(): Promise<unknown>;
|
|
25
|
-
static create(sourceElement: HTMLElement, config?: EditorConfig): Promise<RevisionViewerEditor>;
|
|
26
|
-
}
|
|
27
|
-
export {};
|
|
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
|
+
/**
|
|
6
|
+
* @module revision-history/editor/revisionviewereditor
|
|
7
|
+
*/
|
|
8
|
+
import { Editor, type EditorConfig } from 'ckeditor5/src/core';
|
|
9
|
+
import RevisionViewerEditorUI from './revisionviewereditorui';
|
|
10
|
+
declare const RevisionViewerEditor_base: import("@ckeditor/ckeditor5-utils").Mixed<import("@ckeditor/ckeditor5-utils").Mixed<typeof Editor, import("ckeditor5/src/core").ElementApi>, import("ckeditor5/src/core").DataApi>;
|
|
11
|
+
/**
|
|
12
|
+
* Editor class used to show revision comparisons.
|
|
13
|
+
*/
|
|
14
|
+
export default class RevisionViewerEditor extends RevisionViewerEditor_base {
|
|
15
|
+
get ui(): RevisionViewerEditorUI;
|
|
16
|
+
/**
|
|
17
|
+
* @param sourceElement Editor source element.
|
|
18
|
+
* @param config Editor configuration.
|
|
19
|
+
*/
|
|
20
|
+
constructor(sourceElement: HTMLElement, config?: EditorConfig);
|
|
21
|
+
/**
|
|
22
|
+
* @inheritDoc
|
|
23
|
+
*/
|
|
24
|
+
destroy(): Promise<unknown>;
|
|
25
|
+
static create(sourceElement: HTMLElement, config?: EditorConfig): Promise<RevisionViewerEditor>;
|
|
26
|
+
}
|
|
27
|
+
export {};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1d14=['_ui','updateSourceElement','createRoot','create','data','document','initPlugins','get','ready','model','destroy','init','locale','config','initialData'];(function(_0x1794f1,_0x1d1481){const _0x139291=function(_0x15f186){while(--_0x15f186){_0x1794f1['push'](_0x1794f1['shift']());}};_0x139291(++_0x1d1481);}(_0x1d14,0xc7));const _0x1392=function(_0x1794f1,_0x1d1481){_0x1794f1=_0x1794f1-0x0;let _0x139291=_0x1d14[_0x1794f1];return _0x139291;};import{Editor as _0x4b996d,DataApiMixin as _0x1a2703,ElementApiMixin as _0xa25420}from'ckeditor5/src/core';import _0x59c63f from'./revisionviewereditorui';import _0x631d54 from'./revisionviewereditoruiview';export default class y extends _0x1a2703(_0xa25420(_0x4b996d)){get['ui'](){return this['_ui'];}constructor(_0x3b587b,_0x338ab5){super(_0x338ab5),this['sourceElement']=_0x3b587b,this[_0x1392('0x5')][_0x1392('0x1')][_0x1392('0xd')]();const _0x41d1ba=new _0x631d54(this[_0x1392('0x8')],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this[_0x1392('0xb')]=new _0x59c63f(this,_0x41d1ba);}['destroy'](){return this[_0x1392('0xc')](),this['ui'][_0x1392('0x6')](),super[_0x1392('0x6')]();}static async[_0x1392('0xe')](_0xc9ce73,_0x1a69fd){const _0x23b01f=new this(_0xc9ce73,_0x1a69fd);return await _0x23b01f[_0x1392('0x2')](),await _0x23b01f['ui'][_0x1392('0x7')](_0xc9ce73),await _0x23b01f[_0x1392('0x0')]['init'](_0x23b01f[_0x1392('0x9')][_0x1392('0x3')](_0x1392('0xa'))||''),_0x23b01f['fire'](_0x1392('0x4')),_0x23b01f;}}
|
|
@@ -1,28 +1,28 @@
|
|
|
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
|
-
/**
|
|
6
|
-
* @module revision-history/editor/revisionviewereditorui
|
|
7
|
-
*/
|
|
8
|
-
import type { Editor } from 'ckeditor5/src/core';
|
|
9
|
-
import { EditorUI } from 'ckeditor5/src/ui';
|
|
10
|
-
import type RevisionViewerEditorUIView from './revisionviewereditoruiview';
|
|
11
|
-
export default class RevisionViewerEditorUI extends EditorUI {
|
|
12
|
-
get view(): RevisionViewerEditorUIView;
|
|
13
|
-
constructor(editor: Editor, view: RevisionViewerEditorUIView);
|
|
14
|
-
/**
|
|
15
|
-
* @inheritDoc
|
|
16
|
-
*/
|
|
17
|
-
get element(): HTMLElement | null;
|
|
18
|
-
/**
|
|
19
|
-
* Initializes the UI.
|
|
20
|
-
*
|
|
21
|
-
* @param replacementElement The DOM element that will be the source for the created editor.
|
|
22
|
-
*/
|
|
23
|
-
init(replacementElement: HTMLElement): void;
|
|
24
|
-
/**
|
|
25
|
-
* @inheritDoc
|
|
26
|
-
*/
|
|
27
|
-
destroy(): void;
|
|
28
|
-
}
|
|
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
|
+
/**
|
|
6
|
+
* @module revision-history/editor/revisionviewereditorui
|
|
7
|
+
*/
|
|
8
|
+
import type { Editor } from 'ckeditor5/src/core';
|
|
9
|
+
import { EditorUI } from 'ckeditor5/src/ui';
|
|
10
|
+
import type RevisionViewerEditorUIView from './revisionviewereditoruiview';
|
|
11
|
+
export default class RevisionViewerEditorUI extends EditorUI {
|
|
12
|
+
get view(): RevisionViewerEditorUIView;
|
|
13
|
+
constructor(editor: Editor, view: RevisionViewerEditorUIView);
|
|
14
|
+
/**
|
|
15
|
+
* @inheritDoc
|
|
16
|
+
*/
|
|
17
|
+
get element(): HTMLElement | null;
|
|
18
|
+
/**
|
|
19
|
+
* Initializes the UI.
|
|
20
|
+
*
|
|
21
|
+
* @param replacementElement The DOM element that will be the source for the created editor.
|
|
22
|
+
*/
|
|
23
|
+
init(replacementElement: HTMLElement): void;
|
|
24
|
+
/**
|
|
25
|
+
* @inheritDoc
|
|
26
|
+
*/
|
|
27
|
+
destroy(): void;
|
|
28
|
+
}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3a36=['get','name','fillFromConfig','restore','rootName','editable','_initToolbar','detachDomRoot','viewportTopOffset','editing','attachDomRoot','render','stickyPanel','limiterElement','addToolbar','bind','view','element','getRoot','isActive','destroy','replace','focusTracker','_toolbarConfig','editor','config','fire','componentFactory','init','ready','toolbar','isFocused','_view','_elementReplacer'];(function(_0x45a06e,_0x3a36ce){const _0x252513=function(_0xd8e65){while(--_0xd8e65){_0x45a06e['push'](_0x45a06e['shift']());}};_0x252513(++_0x3a36ce);}(_0x3a36,0x188));const _0x2525=function(_0x45a06e,_0x3a36ce){_0x45a06e=_0x45a06e-0x0;let _0x252513=_0x3a36[_0x45a06e];return _0x252513;};import{EditorUI as _0x5aaeb8,normalizeToolbarConfig as _0x32b184}from'ckeditor5/src/ui';import{ElementReplacer as _0x3887fe}from'ckeditor5/src/utils';export default class et extends _0x5aaeb8{get[_0x2525('0x20')](){return this[_0x2525('0xe')];}constructor(_0xef123e,_0xa214a2){super(_0xef123e),this['_view']=_0xa214a2,this[_0x2525('0x5')]=_0x32b184(_0xef123e[_0x2525('0x7')][_0x2525('0x10')](_0x2525('0xc'))),this[_0x2525('0xf')]=new _0x3887fe();}get[_0x2525('0x21')](){return this[_0x2525('0x20')][_0x2525('0x21')];}[_0x2525('0xa')](_0x316b12){const _0x5accba=this[_0x2525('0x6')],_0x2d005f=this[_0x2525('0x20')],_0xd65f22=_0x5accba['editing'][_0x2525('0x20')],_0x3c08b3=_0x2d005f['editable'],_0x4adca1=_0xd65f22['document'][_0x2525('0x0')]();_0x3c08b3[_0x2525('0x11')]=_0x4adca1[_0x2525('0x14')],_0x2d005f[_0x2525('0x1b')]();const _0x3325e6=_0x3c08b3[_0x2525('0x21')];this['setEditableElement'](_0x3c08b3[_0x2525('0x11')],_0x3325e6),_0x2d005f[_0x2525('0x15')][_0x2525('0x1f')](_0x2525('0xd'))['to'](this[_0x2525('0x4')]),_0xd65f22[_0x2525('0x1a')](_0x3325e6),this[_0x2525('0xf')][_0x2525('0x3')](_0x316b12,this[_0x2525('0x21')]),this[_0x2525('0x16')](),this[_0x2525('0x8')](_0x2525('0xb'));}[_0x2525('0x2')](){super['destroy']();const _0x510dba=this[_0x2525('0x20')],_0x4c0c17=this[_0x2525('0x6')][_0x2525('0x19')][_0x2525('0x20')];this[_0x2525('0xf')][_0x2525('0x13')](),_0x4c0c17[_0x2525('0x17')](_0x510dba[_0x2525('0x15')]['name']),_0x510dba[_0x2525('0x2')]();}[_0x2525('0x16')](){const _0x473122=this[_0x2525('0x20')];_0x473122[_0x2525('0x1c')][_0x2525('0x1f')](_0x2525('0x1'))['to'](this[_0x2525('0x4')],_0x2525('0xd')),_0x473122[_0x2525('0x1c')][_0x2525('0x1d')]=_0x473122[_0x2525('0x21')],_0x473122[_0x2525('0x1c')]['bind'](_0x2525('0x18'))['to'](this,'viewportOffset',({top:_0x260fb0})=>_0x260fb0),_0x473122['toolbar'][_0x2525('0x12')](this[_0x2525('0x5')],this[_0x2525('0x9')]),this[_0x2525('0x1e')](_0x473122[_0x2525('0xc')]);}}
|
|
@@ -1,43 +1,43 @@
|
|
|
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
|
-
/**
|
|
6
|
-
* @module revision-history/editor/revisionviewereditoruiview
|
|
7
|
-
*/
|
|
8
|
-
import { BoxedEditorUIView, InlineEditableUIView, StickyPanelView, ToolbarView } from 'ckeditor5/src/ui';
|
|
9
|
-
import type { View } from 'ckeditor5/src/engine';
|
|
10
|
-
import type { Locale } from 'ckeditor5/src/utils';
|
|
11
|
-
import '@ckeditor/ckeditor5-editor-classic/theme/classiceditor.css';
|
|
12
|
-
export default class RevisionViewerEditorUIView extends BoxedEditorUIView {
|
|
13
|
-
/**
|
|
14
|
-
* Sticky panel view instance. This is a parent view of a {@link #toolbar}
|
|
15
|
-
* that makes toolbar sticky.
|
|
16
|
-
*/
|
|
17
|
-
readonly stickyPanel: StickyPanelView;
|
|
18
|
-
/**
|
|
19
|
-
* Toolbar view instance.
|
|
20
|
-
*/
|
|
21
|
-
readonly toolbar: ToolbarView;
|
|
22
|
-
get editable(): InlineEditableUIView;
|
|
23
|
-
/**
|
|
24
|
-
* Creates an instance of the classic editor UI view.
|
|
25
|
-
*
|
|
26
|
-
* @param locale The {@link module:core/editor/editor~Editor#locale} instance.
|
|
27
|
-
* @param editingView The editing view instance this view is related to.
|
|
28
|
-
* @param options Configuration options for the view instance.
|
|
29
|
-
*/
|
|
30
|
-
constructor(locale: Locale, editingView: View, options?: RevisionViewerEditorUIViewOptions);
|
|
31
|
-
/**
|
|
32
|
-
* @inheritDoc
|
|
33
|
-
*/
|
|
34
|
-
render(): void;
|
|
35
|
-
}
|
|
36
|
-
export interface RevisionViewerEditorUIViewOptions {
|
|
37
|
-
/**
|
|
38
|
-
* When set `true` enables automatic items grouping
|
|
39
|
-
* in the main {@link module:editor-classic/classiceditoruiview~ClassicEditorUIView#toolbar toolbar}.
|
|
40
|
-
* See {@link module:ui/toolbar/toolbarview~ToolbarOptions#shouldGroupWhenFull} to learn more.
|
|
41
|
-
*/
|
|
42
|
-
shouldToolbarGroupWhenFull?: boolean;
|
|
43
|
-
}
|
|
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
|
+
/**
|
|
6
|
+
* @module revision-history/editor/revisionviewereditoruiview
|
|
7
|
+
*/
|
|
8
|
+
import { BoxedEditorUIView, InlineEditableUIView, StickyPanelView, ToolbarView } from 'ckeditor5/src/ui';
|
|
9
|
+
import type { View } from 'ckeditor5/src/engine';
|
|
10
|
+
import type { Locale } from 'ckeditor5/src/utils';
|
|
11
|
+
import '@ckeditor/ckeditor5-editor-classic/theme/classiceditor.css';
|
|
12
|
+
export default class RevisionViewerEditorUIView extends BoxedEditorUIView {
|
|
13
|
+
/**
|
|
14
|
+
* Sticky panel view instance. This is a parent view of a {@link #toolbar}
|
|
15
|
+
* that makes toolbar sticky.
|
|
16
|
+
*/
|
|
17
|
+
readonly stickyPanel: StickyPanelView;
|
|
18
|
+
/**
|
|
19
|
+
* Toolbar view instance.
|
|
20
|
+
*/
|
|
21
|
+
readonly toolbar: ToolbarView;
|
|
22
|
+
get editable(): InlineEditableUIView;
|
|
23
|
+
/**
|
|
24
|
+
* Creates an instance of the classic editor UI view.
|
|
25
|
+
*
|
|
26
|
+
* @param locale The {@link module:core/editor/editor~Editor#locale} instance.
|
|
27
|
+
* @param editingView The editing view instance this view is related to.
|
|
28
|
+
* @param options Configuration options for the view instance.
|
|
29
|
+
*/
|
|
30
|
+
constructor(locale: Locale, editingView: View, options?: RevisionViewerEditorUIViewOptions);
|
|
31
|
+
/**
|
|
32
|
+
* @inheritDoc
|
|
33
|
+
*/
|
|
34
|
+
render(): void;
|
|
35
|
+
}
|
|
36
|
+
export interface RevisionViewerEditorUIViewOptions {
|
|
37
|
+
/**
|
|
38
|
+
* When set `true` enables automatic items grouping
|
|
39
|
+
* in the main {@link module:editor-classic/classiceditoruiview~ClassicEditorUIView#toolbar toolbar}.
|
|
40
|
+
* See {@link module:ui/toolbar/toolbarview~ToolbarOptions#shouldGroupWhenFull} to learn more.
|
|
41
|
+
*/
|
|
42
|
+
shouldToolbarGroupWhenFull?: boolean;
|
|
43
|
+
}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x3079=['render','main','stickyPanel','editable','toolbar','shouldToolbarGroupWhenFull','_editable','top','add'];(function(_0x4d5f35,_0x30790c){var _0xc79d54=function(_0x2f863d){while(--_0x2f863d){_0x4d5f35['push'](_0x4d5f35['shift']());}};_0xc79d54(++_0x30790c);}(_0x3079,0x1a9));var _0xc79d=function(_0x4d5f35,_0x30790c){_0x4d5f35=_0x4d5f35-0x0;var _0xc79d54=_0x3079[_0x4d5f35];return _0xc79d54;};import{BoxedEditorUIView as _0x5e99ff,InlineEditableUIView as _0x5c42bb,StickyPanelView as _0x1879e7,ToolbarView as _0x3cd662}from'ckeditor5/src/ui';import'@ckeditor/ckeditor5-editor-classic/theme/classiceditor.css';export default class st extends _0x5e99ff{get['editable'](){return this[_0xc79d('0x4')];}constructor(_0x38db6a,_0x56cf6a,_0x465233={}){super(_0x38db6a),this[_0xc79d('0x0')]=new _0x1879e7(_0x38db6a),this[_0xc79d('0x2')]=new _0x3cd662(_0x38db6a,{'shouldGroupWhenFull':_0x465233[_0xc79d('0x3')]}),this['_editable']=new _0x5c42bb(_0x38db6a,_0x56cf6a);}[_0xc79d('0x7')](){super['render'](),this[_0xc79d('0x0')]['content'][_0xc79d('0x6')](this['toolbar']),this[_0xc79d('0x5')][_0xc79d('0x6')](this[_0xc79d('0x0')]),this[_0xc79d('0x8')]['add'](this[_0xc79d('0x1')]);}}
|
package/src/index.d.ts
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
export { default as RevisionHistory } from './revisionhistory';
|
|
2
|
-
export { default as RevisionsRepository } from './revisionsrepository';
|
|
3
|
-
export { default as RevisionViewerLoadingOverlay } from './ui/revisionviewer/revisionviewerloadingoverlay';
|
|
4
|
-
export { default as RevisionHistoryUI } from './ui/revisionhistory/revisionhistoryui';
|
|
5
|
-
export { default as RevisionTracker } from './revisiontracker';
|
|
6
|
-
export { default as RevisionViewer, type RestoreRevisionCommand, type ShowChangeCommand } from './revisionviewer';
|
|
7
|
-
export { default as RevisionsSidebar } from './ui/revisionssidebar/revisionssidebar';
|
|
8
|
-
export { default as RevisionViewerUI } from './ui/revisionviewer/revisionviewerui';
|
|
9
|
-
export type {
|
|
10
|
-
|
|
1
|
+
export { default as RevisionHistory } from './revisionhistory';
|
|
2
|
+
export { default as RevisionsRepository } from './revisionsrepository';
|
|
3
|
+
export { default as RevisionViewerLoadingOverlay } from './ui/revisionviewer/revisionviewerloadingoverlay';
|
|
4
|
+
export { default as RevisionHistoryUI } from './ui/revisionhistory/revisionhistoryui';
|
|
5
|
+
export { default as RevisionTracker } from './revisiontracker';
|
|
6
|
+
export { default as RevisionViewer, type RestoreRevisionCommand, type ShowChangeCommand } from './revisionviewer';
|
|
7
|
+
export { default as RevisionsSidebar } from './ui/revisionssidebar/revisionssidebar';
|
|
8
|
+
export { default as RevisionViewerUI } from './ui/revisionviewer/revisionviewerui';
|
|
9
|
+
export type { RevisionData } from './revision';
|
|
10
|
+
export type { RevisionHistoryConfig } from './revisionhistoryconfig';
|
|
11
|
+
import './augmentation';
|