@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20240422.0 → 0.0.0-nightly-20240424.0
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/dist/index-content.css +46 -0
- package/dist/index-editor.css +434 -0
- package/dist/index.css +754 -0
- package/dist/index.js +23 -0
- package/dist/translations/af.d.ts +8 -0
- package/dist/translations/af.js +23 -0
- package/dist/translations/ar.d.ts +8 -0
- package/dist/translations/ar.js +23 -0
- package/dist/translations/az.d.ts +8 -0
- package/dist/translations/az.js +23 -0
- package/dist/translations/bg.d.ts +8 -0
- package/dist/translations/bg.js +23 -0
- package/dist/translations/bn.d.ts +8 -0
- package/dist/translations/bn.js +23 -0
- package/dist/translations/bs.d.ts +8 -0
- package/dist/translations/bs.js +23 -0
- package/dist/translations/ca.d.ts +8 -0
- package/dist/translations/ca.js +23 -0
- package/dist/translations/cs.d.ts +8 -0
- package/dist/translations/cs.js +23 -0
- package/dist/translations/da.d.ts +8 -0
- package/dist/translations/da.js +23 -0
- package/dist/translations/de-ch.d.ts +8 -0
- package/dist/translations/de-ch.js +23 -0
- package/dist/translations/de.d.ts +8 -0
- package/dist/translations/de.js +23 -0
- package/dist/translations/el.d.ts +8 -0
- package/dist/translations/el.js +23 -0
- package/dist/translations/en-au.d.ts +8 -0
- package/dist/translations/en-au.js +23 -0
- package/dist/translations/en-gb.d.ts +8 -0
- package/dist/translations/en-gb.js +23 -0
- package/dist/translations/en.d.ts +8 -0
- package/dist/translations/en.js +23 -0
- package/dist/translations/es-co.d.ts +8 -0
- package/dist/translations/es-co.js +23 -0
- package/dist/translations/es.d.ts +8 -0
- package/dist/translations/es.js +23 -0
- package/dist/translations/et.d.ts +8 -0
- package/dist/translations/et.js +23 -0
- package/dist/translations/fa.d.ts +8 -0
- package/dist/translations/fa.js +23 -0
- package/dist/translations/fi.d.ts +8 -0
- package/dist/translations/fi.js +23 -0
- package/dist/translations/fr.d.ts +8 -0
- package/dist/translations/fr.js +23 -0
- package/dist/translations/gl.d.ts +8 -0
- package/dist/translations/gl.js +23 -0
- package/dist/translations/he.d.ts +8 -0
- package/dist/translations/he.js +23 -0
- package/dist/translations/hi.d.ts +8 -0
- package/dist/translations/hi.js +23 -0
- package/dist/translations/hr.d.ts +8 -0
- package/dist/translations/hr.js +23 -0
- package/dist/translations/hu.d.ts +8 -0
- package/dist/translations/hu.js +23 -0
- package/dist/translations/id.d.ts +8 -0
- package/dist/translations/id.js +23 -0
- package/dist/translations/it.d.ts +8 -0
- package/dist/translations/it.js +23 -0
- package/dist/translations/ja.d.ts +8 -0
- package/dist/translations/ja.js +23 -0
- package/dist/translations/jv.d.ts +8 -0
- package/dist/translations/jv.js +23 -0
- package/dist/translations/ko.d.ts +8 -0
- package/dist/translations/ko.js +23 -0
- package/dist/translations/ku.d.ts +8 -0
- package/dist/translations/ku.js +23 -0
- package/dist/translations/lt.d.ts +8 -0
- package/dist/translations/lt.js +23 -0
- package/dist/translations/lv.d.ts +8 -0
- package/dist/translations/lv.js +23 -0
- package/dist/translations/ms.d.ts +8 -0
- package/dist/translations/ms.js +23 -0
- package/dist/translations/ne.d.ts +8 -0
- package/dist/translations/ne.js +23 -0
- package/dist/translations/nl.d.ts +8 -0
- package/dist/translations/nl.js +23 -0
- package/dist/translations/no.d.ts +8 -0
- package/dist/translations/no.js +23 -0
- package/dist/translations/pl.d.ts +8 -0
- package/dist/translations/pl.js +23 -0
- package/dist/translations/pt-br.d.ts +8 -0
- package/dist/translations/pt-br.js +23 -0
- package/dist/translations/pt.d.ts +8 -0
- package/dist/translations/pt.js +23 -0
- package/dist/translations/ro.d.ts +8 -0
- package/dist/translations/ro.js +23 -0
- package/dist/translations/ru.d.ts +8 -0
- package/dist/translations/ru.js +23 -0
- package/dist/translations/sk.d.ts +8 -0
- package/dist/translations/sk.js +23 -0
- package/dist/translations/sr-latn.d.ts +8 -0
- package/dist/translations/sr-latn.js +23 -0
- package/dist/translations/sr.d.ts +8 -0
- package/dist/translations/sr.js +23 -0
- package/dist/translations/sv.d.ts +8 -0
- package/dist/translations/sv.js +23 -0
- package/dist/translations/th.d.ts +8 -0
- package/dist/translations/th.js +23 -0
- package/dist/translations/tk.d.ts +8 -0
- package/dist/translations/tk.js +23 -0
- package/dist/translations/tr.d.ts +8 -0
- package/dist/translations/tr.js +23 -0
- package/dist/translations/tt.d.ts +8 -0
- package/dist/translations/tt.js +23 -0
- package/dist/translations/ug.d.ts +8 -0
- package/dist/translations/ug.js +23 -0
- package/dist/translations/uk.d.ts +8 -0
- package/dist/translations/uk.js +23 -0
- package/dist/translations/ur.d.ts +8 -0
- package/dist/translations/ur.js +23 -0
- package/dist/translations/vi.d.ts +8 -0
- package/dist/translations/vi.js +23 -0
- package/dist/translations/zh-cn.d.ts +8 -0
- package/dist/translations/zh-cn.js +23 -0
- package/dist/translations/zh.d.ts +8 -0
- package/dist/translations/zh.js +23 -0
- package/dist/types/augmentation.d.ts +33 -0
- package/dist/types/changeitem.d.ts +62 -0
- package/dist/types/editor/revisionviewereditor.d.ts +31 -0
- package/dist/types/editor/revisionviewereditorui.d.ts +32 -0
- package/dist/types/editor/revisionviewereditoruiview.d.ts +47 -0
- package/dist/types/index.d.ts +19 -0
- package/dist/types/revision.d.ts +157 -0
- package/dist/types/revisiondiff.d.ts +28 -0
- package/dist/types/revisionhistory.d.ts +103 -0
- package/dist/types/revisionhistoryadapter.d.ts +68 -0
- package/dist/types/revisionhistoryconfig.d.ts +75 -0
- package/dist/types/revisionsrepository.d.ts +56 -0
- package/dist/types/revisiontracker.d.ts +89 -0
- package/dist/types/revisionviewer.d.ts +29 -0
- package/dist/types/ui/revision/createrevisionactionsdropdown.d.ts +14 -0
- package/dist/types/ui/revision/revisionauthorview.d.ts +9 -0
- package/dist/types/ui/revision/revisionnameview.d.ts +9 -0
- package/dist/types/ui/revision/revisionview.d.ts +99 -0
- package/dist/types/ui/revision/subrevisioncollapserview.d.ts +25 -0
- package/dist/types/ui/revision/subrevisionview.d.ts +38 -0
- package/dist/types/ui/revision/utils.d.ts +9 -0
- package/dist/types/ui/revisionhistory/revisionhistorysaverevisionformview.d.ts +61 -0
- package/dist/types/ui/revisionhistory/revisionhistoryui.d.ts +30 -0
- package/dist/types/ui/revisionssidebar/revisionssidebar.d.ts +48 -0
- package/dist/types/ui/revisionssidebar/revisionssidebarheaderview.d.ts +9 -0
- package/dist/types/ui/revisionssidebar/revisionssidebartimeperiodview.d.ts +33 -0
- package/dist/types/ui/revisionssidebar/revisionssidebarview.d.ts +48 -0
- package/dist/types/ui/revisionssidebar/utils.d.ts +13 -0
- package/dist/types/ui/revisionviewer/changedetailsview.d.ts +26 -0
- package/dist/types/ui/revisionviewer/changesnavigationview.d.ts +44 -0
- package/dist/types/ui/revisionviewer/revisionviewerloadingoverlay.d.ts +30 -0
- package/dist/types/ui/revisionviewer/revisionviewerui.d.ts +32 -0
- package/dist/types/utils/common-translations.d.ts +15 -0
- package/package.json +6 -5
- package/src/changeitem.js +1 -1
- package/src/editor/revisionviewereditor.js +1 -1
- package/src/editor/revisionviewereditorui.js +1 -1
- package/src/editor/revisionviewereditoruiview.js +1 -1
- package/src/index.js +1 -1
- package/src/revision.js +1 -1
- package/src/revisiondiff.js +1 -1
- package/src/revisionhistory.js +1 -1
- package/src/revisionsrepository.js +1 -1
- package/src/revisiontracker.js +1 -1
- package/src/revisionviewer.js +1 -1
- package/src/ui/revision/createrevisionactionsdropdown.js +1 -1
- package/src/ui/revision/revisionauthorview.js +1 -1
- package/src/ui/revision/revisionnameview.js +1 -1
- package/src/ui/revision/revisionview.js +1 -1
- package/src/ui/revision/subrevisioncollapserview.js +1 -1
- package/src/ui/revision/subrevisionview.js +1 -1
- package/src/ui/revision/utils.js +1 -1
- package/src/ui/revisionhistory/revisionhistorysaverevisionformview.js +1 -1
- package/src/ui/revisionhistory/revisionhistoryui.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebar.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebarheaderview.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebartimeperiodview.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebarview.js +1 -1
- package/src/ui/revisionssidebar/utils.js +1 -1
- package/src/ui/revisionviewer/changedetailsview.js +1 -1
- package/src/ui/revisionviewer/changesnavigationview.js +1 -1
- package/src/ui/revisionviewer/revisionviewerloadingoverlay.js +1 -1
- package/src/ui/revisionviewer/revisionviewerui.js +1 -1
- package/src/utils/common-translations.d.ts +1 -1
- package/src/utils/common-translations.js +1 -1
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2024, 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
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
7
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
8
|
+
*/
|
|
9
|
+
/**
|
|
10
|
+
* @module revision-history/ui/revision/revisionview
|
|
11
|
+
*/
|
|
12
|
+
import type { BaseEvent, Locale } from 'ckeditor5/src/utils.js';
|
|
13
|
+
import { View, type DropdownView } from 'ckeditor5/src/ui.js';
|
|
14
|
+
import RevisionNameView from './revisionnameview.js';
|
|
15
|
+
import '../../../theme/revision/revision.css';
|
|
16
|
+
import type Revision from '../../revision.js';
|
|
17
|
+
import type { RevisionAction } from '../revisionssidebar/revisionssidebar.js';
|
|
18
|
+
declare const RevisionView_base: import("ckeditor5/src/utils.js").Mixed<typeof View, import("@ckeditor/ckeditor5-collaboration-core/src/utils/confirmmixin.js").ConfirmApi>;
|
|
19
|
+
/**
|
|
20
|
+
* TODO
|
|
21
|
+
*/
|
|
22
|
+
export default class RevisionView extends RevisionView_base {
|
|
23
|
+
id: string;
|
|
24
|
+
revisionNameView: RevisionNameView;
|
|
25
|
+
/**
|
|
26
|
+
* It holds the revision actions drop-down view if actions are provided,
|
|
27
|
+
* or just empty text otherwise.
|
|
28
|
+
*/
|
|
29
|
+
revisionActionsView: DropdownView | '';
|
|
30
|
+
/**
|
|
31
|
+
* @observable
|
|
32
|
+
*/
|
|
33
|
+
name: string;
|
|
34
|
+
/**
|
|
35
|
+
* @observable
|
|
36
|
+
*/
|
|
37
|
+
createdAt: Date;
|
|
38
|
+
/**
|
|
39
|
+
* @observable
|
|
40
|
+
*/
|
|
41
|
+
isSelected: boolean;
|
|
42
|
+
/**
|
|
43
|
+
* @observable
|
|
44
|
+
*/
|
|
45
|
+
isHighlighted: boolean;
|
|
46
|
+
/**
|
|
47
|
+
* @observable
|
|
48
|
+
*/
|
|
49
|
+
isActionsDropdownOpen: boolean;
|
|
50
|
+
/**
|
|
51
|
+
* @observable
|
|
52
|
+
*/
|
|
53
|
+
isReady: boolean;
|
|
54
|
+
/**
|
|
55
|
+
* @observable
|
|
56
|
+
*/
|
|
57
|
+
isEnabled: boolean;
|
|
58
|
+
constructor(locale: Locale, revision: Revision, revisionActions: Array<RevisionAction>, requireRevisionName: boolean);
|
|
59
|
+
/**
|
|
60
|
+
* @inheritDoc
|
|
61
|
+
*/
|
|
62
|
+
render(): void;
|
|
63
|
+
/**
|
|
64
|
+
* TODO
|
|
65
|
+
*/
|
|
66
|
+
select(): void;
|
|
67
|
+
/**
|
|
68
|
+
* TODO
|
|
69
|
+
*/
|
|
70
|
+
deselect(): void;
|
|
71
|
+
/**
|
|
72
|
+
* TODO
|
|
73
|
+
*/
|
|
74
|
+
highlight(): void;
|
|
75
|
+
/**
|
|
76
|
+
* TODO
|
|
77
|
+
*/
|
|
78
|
+
unhighlight(): void;
|
|
79
|
+
}
|
|
80
|
+
/**
|
|
81
|
+
* @eventName setName | revisionSetName
|
|
82
|
+
*/
|
|
83
|
+
export interface RevisionSetNameEvent extends BaseEvent {
|
|
84
|
+
name: 'setName' | 'revisionSetName';
|
|
85
|
+
args: [{
|
|
86
|
+
id: string;
|
|
87
|
+
name: string;
|
|
88
|
+
}];
|
|
89
|
+
}
|
|
90
|
+
/**
|
|
91
|
+
* @eventName select | revisionSelected
|
|
92
|
+
*/
|
|
93
|
+
export interface RevisionSelectedEvent extends BaseEvent {
|
|
94
|
+
name: 'select' | 'revisionSelected';
|
|
95
|
+
args: [{
|
|
96
|
+
id: string;
|
|
97
|
+
}];
|
|
98
|
+
}
|
|
99
|
+
export {};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2024, 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
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
7
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
8
|
+
*/
|
|
9
|
+
/**
|
|
10
|
+
* @module revision-history/ui/revision/subrevisioncollapserview
|
|
11
|
+
*/
|
|
12
|
+
import { View } from 'ckeditor5/src/ui.js';
|
|
13
|
+
import type { Locale } from 'ckeditor5/src/utils.js';
|
|
14
|
+
import '../../../theme/revision/subrevisioncollapser.css';
|
|
15
|
+
export default class SubrevisionCollapserView extends View {
|
|
16
|
+
/**
|
|
17
|
+
* @observable
|
|
18
|
+
*/
|
|
19
|
+
isVisible: boolean;
|
|
20
|
+
constructor(locale: Locale);
|
|
21
|
+
/**
|
|
22
|
+
* TODO
|
|
23
|
+
*/
|
|
24
|
+
toggle(): void;
|
|
25
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2024, 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
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
7
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
8
|
+
*/
|
|
9
|
+
/**
|
|
10
|
+
* @module revision-history/ui/revision/subrevisionview
|
|
11
|
+
*/
|
|
12
|
+
import { View } from 'ckeditor5/src/ui.js';
|
|
13
|
+
import type { Locale } from 'ckeditor5/src/utils.js';
|
|
14
|
+
import '../../../theme/revision/subrevision.css';
|
|
15
|
+
import type Revision from '../../revision.js';
|
|
16
|
+
/**
|
|
17
|
+
* TODO
|
|
18
|
+
*/
|
|
19
|
+
export default class SubrevisionView extends View {
|
|
20
|
+
id: string;
|
|
21
|
+
/**
|
|
22
|
+
* @observable
|
|
23
|
+
*/
|
|
24
|
+
createdAt: Date;
|
|
25
|
+
/**
|
|
26
|
+
* @observable
|
|
27
|
+
*/
|
|
28
|
+
isSelected: boolean;
|
|
29
|
+
constructor(locale: Locale, subRevision: Revision, parentRevisionId: string);
|
|
30
|
+
/**
|
|
31
|
+
* TODO
|
|
32
|
+
*/
|
|
33
|
+
select(): void;
|
|
34
|
+
/**
|
|
35
|
+
* TODO
|
|
36
|
+
*/
|
|
37
|
+
deselect(): void;
|
|
38
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2024, 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
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
7
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
8
|
+
*/
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2024, 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
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
7
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
8
|
+
*/
|
|
9
|
+
/**
|
|
10
|
+
* @module revision-history/ui/revisionhistory/revisionhistorysaverevisionformview
|
|
11
|
+
*/
|
|
12
|
+
import { LabeledFieldView, View, type InputTextView } from 'ckeditor5/src/ui.js';
|
|
13
|
+
import { FocusTracker, KeystrokeHandler, type Locale } from 'ckeditor5/src/utils.js';
|
|
14
|
+
import '../../../theme/revisionhistorysaverevisionform.css';
|
|
15
|
+
import '@ckeditor/ckeditor5-ui/theme/components/responsive-form/responsiveform.css';
|
|
16
|
+
/**
|
|
17
|
+
* The media form view controller class.
|
|
18
|
+
*
|
|
19
|
+
* See {@link module:media-embed/ui/mediaformview~MediaFormView}.
|
|
20
|
+
*/
|
|
21
|
+
export default class RevisionHistorySaveRevisionFormView extends View {
|
|
22
|
+
/**
|
|
23
|
+
* Tracks information about the DOM focus in the form.
|
|
24
|
+
*/
|
|
25
|
+
readonly focusTracker: FocusTracker;
|
|
26
|
+
/**
|
|
27
|
+
* An instance of the {@link module:utils/keystrokehandler~KeystrokeHandler}.
|
|
28
|
+
*/
|
|
29
|
+
readonly keystrokes: KeystrokeHandler;
|
|
30
|
+
/**
|
|
31
|
+
* The revision name input view.
|
|
32
|
+
*/
|
|
33
|
+
revisionNameInputView: LabeledFieldView<InputTextView>;
|
|
34
|
+
/**
|
|
35
|
+
* The value of the revision name input.
|
|
36
|
+
*
|
|
37
|
+
* @observable
|
|
38
|
+
*/
|
|
39
|
+
revisionNameInputValue: string;
|
|
40
|
+
constructor(locale: Locale, requireRevisionName: boolean);
|
|
41
|
+
/**
|
|
42
|
+
* @inheritDoc
|
|
43
|
+
*/
|
|
44
|
+
render(): void;
|
|
45
|
+
/**
|
|
46
|
+
* Focuses the {@link #revisionNameInputView}.
|
|
47
|
+
*/
|
|
48
|
+
focus(): void;
|
|
49
|
+
/**
|
|
50
|
+
* The native DOM `value` of the {@link #revisionNameInputView} element.
|
|
51
|
+
*
|
|
52
|
+
* **Note**: Do not confuse it with the {@link module:ui/inputtext/inputtextview~InputTextView#value}
|
|
53
|
+
* which works one way only and may not represent the actual state of the component in the DOM.
|
|
54
|
+
*/
|
|
55
|
+
get revisionName(): string;
|
|
56
|
+
set revisionName(name: string);
|
|
57
|
+
/**
|
|
58
|
+
* TODO
|
|
59
|
+
*/
|
|
60
|
+
reset(): void;
|
|
61
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2024, 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
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
7
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
8
|
+
*/
|
|
9
|
+
/**
|
|
10
|
+
* @module revision-history/ui/revisionhistory/revisionhistoryui
|
|
11
|
+
*/
|
|
12
|
+
import { Plugin } from 'ckeditor5/src/core.js';
|
|
13
|
+
import RevisionTracker from '../../revisiontracker.js';
|
|
14
|
+
/**
|
|
15
|
+
* TODO
|
|
16
|
+
*/
|
|
17
|
+
export default class RevisionHistoryUI extends Plugin {
|
|
18
|
+
/**
|
|
19
|
+
* @inheritDoc
|
|
20
|
+
*/
|
|
21
|
+
static get pluginName(): "RevisionHistoryUI";
|
|
22
|
+
/**
|
|
23
|
+
* @inheritDoc
|
|
24
|
+
*/
|
|
25
|
+
static get requires(): readonly [typeof RevisionTracker];
|
|
26
|
+
/**
|
|
27
|
+
* @inheritDoc
|
|
28
|
+
*/
|
|
29
|
+
init(): void;
|
|
30
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2024, 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
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
7
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
8
|
+
*/
|
|
9
|
+
/**
|
|
10
|
+
* @module revision-history/ui/revisionsidebar/revisionsidebar
|
|
11
|
+
*/
|
|
12
|
+
import { Plugin, type Editor } from 'ckeditor5/src/core.js';
|
|
13
|
+
import RevisionViewer from '../../revisionviewer.js';
|
|
14
|
+
import type { default as RevisionView } from '../revision/revisionview.js';
|
|
15
|
+
/**
|
|
16
|
+
* TODO
|
|
17
|
+
*/
|
|
18
|
+
export default class RevisionsSidebar extends Plugin {
|
|
19
|
+
static defaultRevisionActions: Array<string>;
|
|
20
|
+
static availableRevisionActions: Record<string, RevisionAction>;
|
|
21
|
+
/**
|
|
22
|
+
* @inheritDoc
|
|
23
|
+
*/
|
|
24
|
+
static get pluginName(): "RevisionsSidebar";
|
|
25
|
+
/**
|
|
26
|
+
* @inheritDoc
|
|
27
|
+
*/
|
|
28
|
+
static get requires(): readonly [typeof RevisionViewer];
|
|
29
|
+
/**
|
|
30
|
+
* @inheritDoc
|
|
31
|
+
*/
|
|
32
|
+
constructor(editor: Editor);
|
|
33
|
+
/**
|
|
34
|
+
* @inheritDoc
|
|
35
|
+
*/
|
|
36
|
+
init(): void;
|
|
37
|
+
/**
|
|
38
|
+
* @inheritDoc
|
|
39
|
+
*/
|
|
40
|
+
destroy(): void;
|
|
41
|
+
}
|
|
42
|
+
export interface RevisionAction {
|
|
43
|
+
name: string;
|
|
44
|
+
class?: string;
|
|
45
|
+
action: (editor: Editor, revisionView: RevisionView) => void;
|
|
46
|
+
isVisible?: (editor: Editor, revisionView: RevisionView) => boolean;
|
|
47
|
+
isEnabled?: (editor: Editor, revisionView: RevisionView) => boolean;
|
|
48
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2024, 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
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
7
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
8
|
+
*/
|
|
9
|
+
import '../../../theme/revisionssidebar/revisionssidebarheader.css';
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2024, 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
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
7
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
8
|
+
*/
|
|
9
|
+
/**
|
|
10
|
+
* @module revision-history/ui/revisionsidebar/revisionsidebartimeperiodview
|
|
11
|
+
*/
|
|
12
|
+
import { View, type ViewCollection } from 'ckeditor5/src/ui.js';
|
|
13
|
+
import type { Locale } from 'ckeditor5/src/utils.js';
|
|
14
|
+
import RevisionView from '../revision/revisionview.js';
|
|
15
|
+
import '../../../theme/revisionssidebar/revisionssidebartimeperiod.css';
|
|
16
|
+
import type { RevisionAction } from './revisionssidebar.js';
|
|
17
|
+
import type Revision from '../../revision.js';
|
|
18
|
+
/**
|
|
19
|
+
* TODO
|
|
20
|
+
*/
|
|
21
|
+
export default class RevisionsSidebarTimePeriodView extends View {
|
|
22
|
+
startDate: Date;
|
|
23
|
+
revisionViews: ViewCollection<RevisionView>;
|
|
24
|
+
constructor(locale: Locale, startDate: Date, revisionActions: Array<RevisionAction>, requireRevisionName: boolean);
|
|
25
|
+
/**
|
|
26
|
+
* TODO
|
|
27
|
+
*/
|
|
28
|
+
addRevision(newRevision: Revision): void;
|
|
29
|
+
/**
|
|
30
|
+
* TODO
|
|
31
|
+
*/
|
|
32
|
+
removeRevision(revision: Revision): void;
|
|
33
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2024, 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
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
7
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
8
|
+
*/
|
|
9
|
+
/**
|
|
10
|
+
* @module revision-history/ui/revisionsidebar/revisionsidebarview
|
|
11
|
+
*/
|
|
12
|
+
import { View, type ViewCollection } from 'ckeditor5/src/ui.js';
|
|
13
|
+
import type { Locale, Collection } from 'ckeditor5/src/utils.js';
|
|
14
|
+
import RevisionsSidebarTimePeriodView from './revisionssidebartimeperiodview.js';
|
|
15
|
+
import '../../../theme/revisionssidebar/revisionssidebar.css';
|
|
16
|
+
import type { default as RevisionView } from '../revision/revisionview.js';
|
|
17
|
+
import type { RevisionAction } from './revisionssidebar.js';
|
|
18
|
+
import type Revision from '../../revision.js';
|
|
19
|
+
/**
|
|
20
|
+
* TODO
|
|
21
|
+
*/
|
|
22
|
+
export default class RevisionsSidebarView extends View {
|
|
23
|
+
timePeriodViews: ViewCollection<RevisionsSidebarTimePeriodView>;
|
|
24
|
+
/**
|
|
25
|
+
* @observable
|
|
26
|
+
*/
|
|
27
|
+
isEnabled: boolean;
|
|
28
|
+
/**
|
|
29
|
+
* @inheritDoc
|
|
30
|
+
*/
|
|
31
|
+
constructor(locale: Locale, revisions: Collection<Revision>, revisionActions: Array<RevisionAction>, _requireRevisionName: boolean);
|
|
32
|
+
/**
|
|
33
|
+
* @inheritDoc
|
|
34
|
+
*/
|
|
35
|
+
render(): void;
|
|
36
|
+
/**
|
|
37
|
+
* TODO
|
|
38
|
+
*/
|
|
39
|
+
get revisionViews(): Array<RevisionView>;
|
|
40
|
+
/**
|
|
41
|
+
* TODO
|
|
42
|
+
*/
|
|
43
|
+
selectRevision(revisionToSelect: Revision | null): void;
|
|
44
|
+
/**
|
|
45
|
+
* TODO
|
|
46
|
+
*/
|
|
47
|
+
highlightRevisions(revisionsToHighlight: Array<Revision>): void;
|
|
48
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2024, 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
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
7
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
8
|
+
*/
|
|
9
|
+
export declare function getDateTimePeriodInfo(jsDate: Date, locale: string): DateTimePeriod;
|
|
10
|
+
export interface DateTimePeriod {
|
|
11
|
+
startDate: Date;
|
|
12
|
+
localizedPeriodName: string;
|
|
13
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2024, 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
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
7
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
8
|
+
*/
|
|
9
|
+
/**
|
|
10
|
+
* @module revision-history/ui/revisionviewer/changedetailsview
|
|
11
|
+
*/
|
|
12
|
+
import { View } from 'ckeditor5/src/ui.js';
|
|
13
|
+
import type { Locale } from 'ckeditor5/src/utils.js';
|
|
14
|
+
import type ChangeItem from '../../changeitem.js';
|
|
15
|
+
export default class ChangeDetailsView extends View {
|
|
16
|
+
changeId: string;
|
|
17
|
+
/**
|
|
18
|
+
* @observable
|
|
19
|
+
*/
|
|
20
|
+
type: string;
|
|
21
|
+
constructor(locale: Locale, model: ChangeItem);
|
|
22
|
+
/**
|
|
23
|
+
* Focuses the view.
|
|
24
|
+
*/
|
|
25
|
+
focus(): void;
|
|
26
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2024, 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
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
7
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
8
|
+
*/
|
|
9
|
+
/**
|
|
10
|
+
* @module revision-history/ui/revisionviewer/changenaviagationview
|
|
11
|
+
*/
|
|
12
|
+
import { View } from 'ckeditor5/src/ui.js';
|
|
13
|
+
import type { Locale } from 'ckeditor5/src/utils.js';
|
|
14
|
+
import '../../../theme/changesnavigation.css';
|
|
15
|
+
/**
|
|
16
|
+
* TODO
|
|
17
|
+
*/
|
|
18
|
+
export default class ChangesNavigationView extends View {
|
|
19
|
+
/**
|
|
20
|
+
* @observable
|
|
21
|
+
*/
|
|
22
|
+
isNavigationMode: boolean;
|
|
23
|
+
/**
|
|
24
|
+
* @observable
|
|
25
|
+
*/
|
|
26
|
+
isReady: boolean;
|
|
27
|
+
/**
|
|
28
|
+
* @observable
|
|
29
|
+
*/
|
|
30
|
+
currentChangeNumber: number;
|
|
31
|
+
/**
|
|
32
|
+
* @observable
|
|
33
|
+
*/
|
|
34
|
+
numberOfChanges: number;
|
|
35
|
+
/**
|
|
36
|
+
* @observable
|
|
37
|
+
*/
|
|
38
|
+
isForwardNavigationEnabled: boolean;
|
|
39
|
+
/**
|
|
40
|
+
* @observable
|
|
41
|
+
*/
|
|
42
|
+
isBackwardNavigationEnabled: boolean;
|
|
43
|
+
constructor(locale: Locale);
|
|
44
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2024, 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
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
7
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
8
|
+
*/
|
|
9
|
+
/**
|
|
10
|
+
* @module revision-history/ui/revisionviewer/revisionviewerloadingoverlay
|
|
11
|
+
*/
|
|
12
|
+
import { Plugin } from 'ckeditor5/src/core.js';
|
|
13
|
+
import '../../../theme/revisionviewerloadingoverlay.css';
|
|
14
|
+
/**
|
|
15
|
+
* TODO
|
|
16
|
+
*/
|
|
17
|
+
export default class RevisionViewerLoadingOverlay extends Plugin {
|
|
18
|
+
/**
|
|
19
|
+
* @inheritDoc
|
|
20
|
+
*/
|
|
21
|
+
static get pluginName(): "RevisionViewerLoadingOverlay";
|
|
22
|
+
/**
|
|
23
|
+
* TODO
|
|
24
|
+
*/
|
|
25
|
+
show(): void;
|
|
26
|
+
/**
|
|
27
|
+
* TODO
|
|
28
|
+
*/
|
|
29
|
+
hide(): void;
|
|
30
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2024, 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
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
7
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
8
|
+
*/
|
|
9
|
+
/**
|
|
10
|
+
* @module revision-history/ui/revisionviewer/revisionviewerui
|
|
11
|
+
*/
|
|
12
|
+
import { Plugin } from 'ckeditor5/src/core.js';
|
|
13
|
+
import RevisionViewer from './../../revisionviewer.js';
|
|
14
|
+
import RevisionViewerLoadingOverlay from './revisionviewerloadingoverlay.js';
|
|
15
|
+
import '../../../theme/revisionviewer.css';
|
|
16
|
+
/**
|
|
17
|
+
* TODO
|
|
18
|
+
*/
|
|
19
|
+
export default class RevisionViewerUI extends Plugin {
|
|
20
|
+
/**
|
|
21
|
+
* @inheritDoc
|
|
22
|
+
*/
|
|
23
|
+
static get pluginName(): "RevisionViewerUI";
|
|
24
|
+
/**
|
|
25
|
+
* @inheritDoc
|
|
26
|
+
*/
|
|
27
|
+
static get requires(): readonly [typeof RevisionViewer, typeof RevisionViewerLoadingOverlay];
|
|
28
|
+
/**
|
|
29
|
+
* @inheritDoc
|
|
30
|
+
*/
|
|
31
|
+
init(): void;
|
|
32
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2024, 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
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
7
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
8
|
+
*/
|
|
9
|
+
/**
|
|
10
|
+
* @module revision-history/utils/common-translations
|
|
11
|
+
*/
|
|
12
|
+
import type { Locale } from 'ckeditor5/src/utils.js';
|
|
13
|
+
export declare function getTranslation(locale: Locale, id: string, values?: TranslationValues): string;
|
|
14
|
+
type TranslationValues = number | string | ReadonlyArray<number | string>;
|
|
15
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ckeditor/ckeditor5-revision-history",
|
|
3
|
-
"version": "0.0.0-nightly-
|
|
3
|
+
"version": "0.0.0-nightly-20240424.0",
|
|
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/)",
|
|
@@ -30,6 +30,7 @@
|
|
|
30
30
|
"main": "src/index.js",
|
|
31
31
|
"files": [
|
|
32
32
|
"build",
|
|
33
|
+
"dist",
|
|
33
34
|
"lang",
|
|
34
35
|
"src/**/*.js",
|
|
35
36
|
"src/**/*.d.ts",
|
|
@@ -38,10 +39,10 @@
|
|
|
38
39
|
"CHANGELOG.md"
|
|
39
40
|
],
|
|
40
41
|
"dependencies": {
|
|
41
|
-
"@ckeditor/ckeditor5-editor-classic": "0.0.0-nightly-
|
|
42
|
-
"@ckeditor/ckeditor5-ui": "0.0.0-nightly-
|
|
43
|
-
"ckeditor5": "0.0.0-nightly-
|
|
44
|
-
"ckeditor5-collaboration": "0.0.0-nightly-
|
|
42
|
+
"@ckeditor/ckeditor5-editor-classic": "0.0.0-nightly-20240424.0",
|
|
43
|
+
"@ckeditor/ckeditor5-ui": "0.0.0-nightly-20240424.0",
|
|
44
|
+
"ckeditor5": "0.0.0-nightly-20240424.0",
|
|
45
|
+
"ckeditor5-collaboration": "0.0.0-nightly-20240424.0",
|
|
45
46
|
"lodash-es": "4.17.21",
|
|
46
47
|
"luxon": "1.28.1"
|
|
47
48
|
},
|
package/src/changeitem.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
var _0x268488=_0x28bb;function _0x28bb(_0xba9835,_0xc7ee35){var _0x5d2806=_0x5d28();return _0x28bb=function(_0x28bb55,_0xa264e7){_0x28bb55=_0x28bb55-0x65;var _0x115be5=_0x5d2806[_0x28bb55];return _0x115be5;},_0x28bb(_0xba9835,_0xc7ee35);}(function(_0x219745,_0x383719){var _0x1391cf=_0x28bb,_0x10d452=_0x219745();while(!![]){try{var _0x696f09=parseInt(_0x1391cf(0x6a))/0x1*(parseInt(_0x1391cf(0x69))/0x2)+parseInt(_0x1391cf(0x68))/0x3+parseInt(_0x1391cf(0x67))/0x4*(parseInt(_0x1391cf(0x75))/0x5)+parseInt(_0x1391cf(0x74))/0x6*(-parseInt(_0x1391cf(0x66))/0x7)+-parseInt(_0x1391cf(0x72))/0x8*(parseInt(_0x1391cf(0x73))/0x9)+parseInt(_0x1391cf(0x76))/0xa+-parseInt(_0x1391cf(0x65))/0xb;if(_0x696f09===_0x383719)break;else _0x10d452['push'](_0x10d452['shift']());}catch(_0xe89615){_0x10d452['push'](_0x10d452['shift']());}}}(_0x5d28,0xe8a05));import{ObservableMixin as _0x386469,uid as _0x44da6a}from'ckeditor5/src/utils.js';export default class r extends _0x386469(){constructor(_0x1abd4e){var _0x5c9d4e=_0x28bb;super(),this['id']=_0x1abd4e['id']||_0x44da6a(),this[_0x5c9d4e(0x6d)]=_0x1abd4e[_0x5c9d4e(0x6d)],this[_0x5c9d4e(0x6f)]=_0x1abd4e[_0x5c9d4e(0x6f)],this[_0x5c9d4e(0x70)]=_0x1abd4e[_0x5c9d4e(0x70)]||{},this[_0x5c9d4e(0x71)]=_0x1abd4e[_0x5c9d4e(0x71)],this[_0x5c9d4e(0x6e)](_0x5c9d4e(0x6b),_0x1abd4e[_0x5c9d4e(0x6b)]);}[_0x268488(0x6c)](){var _0x14a4eb=_0x268488;return{'id':this['id'],'authorId':this[_0x14a4eb(0x6d)]['id'],'type':this[_0x14a4eb(0x6f)],'data':this[_0x14a4eb(0x70)],'createdAt':this[_0x14a4eb(0x6b)]};}}function _0x5d28(){var _0x3e2bab=['26CuGiDa','createdAt','toJSON','author','set','type','data','rootName','12652448JDfooy','9lDuXzW','6kXikUg','5EJbqiM','9611020GLeINF','5839141DZnzAP','9934267FADBwN','4837148qIjcak','5448660dfZMig','38292FOrYlM'];_0x5d28=function(){return _0x3e2bab;};return _0x5d28();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5e7645=_0x3e0b;function _0x57a2(){const _0x753fca=['fire','135EXNnBS','locale','40996zmhOUW','editing','updateSourceElement','initialData','sourceElement','config','data','document','createRoot','model','_ui','get','191244EbCqht','679341fknvJs','ready','23iPmhEf','6341720HNMoZz','6724718nJnAMF','view','9OVBImA','3582352PCTIst','initPlugins','23221260aLutjr','create','init','destroy'];_0x57a2=function(){return _0x753fca;};return _0x57a2();}function _0x3e0b(_0x5e4d18,_0x18ba3e){const _0x57a2e2=_0x57a2();return _0x3e0b=function(_0x3e0bfd,_0x2fa50a){_0x3e0bfd=_0x3e0bfd-0x143;let _0x485b2d=_0x57a2e2[_0x3e0bfd];return _0x485b2d;},_0x3e0b(_0x5e4d18,_0x18ba3e);}(function(_0x2c0c5f,_0x523458){const _0x44c90a=_0x3e0b,_0x5429b3=_0x2c0c5f();while(!![]){try{const _0x5c83aa=parseInt(_0x44c90a(0x14c))/0x1*(-parseInt(_0x44c90a(0x15a))/0x2)+-parseInt(_0x44c90a(0x14a))/0x3+parseInt(_0x44c90a(0x151))/0x4+parseInt(_0x44c90a(0x158))/0x5*(parseInt(_0x44c90a(0x149))/0x6)+parseInt(_0x44c90a(0x14e))/0x7+parseInt(_0x44c90a(0x14d))/0x8*(parseInt(_0x44c90a(0x150))/0x9)+-parseInt(_0x44c90a(0x153))/0xa;if(_0x5c83aa===_0x523458)break;else _0x5429b3['push'](_0x5429b3['shift']());}catch(_0x324b62){_0x5429b3['push'](_0x5429b3['shift']());}}}(_0x57a2,0x7784c));import{Editor as _0x50e587,DataApiMixin as _0xeaa550,ElementApiMixin as _0x2e365e}from'ckeditor5/src/core.js';import _0x1aa9a7 from'./revisionviewereditorui.js';import _0x1d597e from'./revisionviewereditoruiview.js';export default class m extends _0xeaa550(_0x2e365e(_0x50e587)){get['ui'](){const _0x117dff=_0x3e0b;return this[_0x117dff(0x147)];}constructor(_0x3deb39,_0x125a25){const _0x35444f=_0x3e0b;super(_0x125a25),this[_0x35444f(0x15e)]=_0x3deb39,this[_0x35444f(0x146)][_0x35444f(0x144)][_0x35444f(0x145)]();const _0x4256eb=new _0x1d597e(this[_0x35444f(0x159)],this[_0x35444f(0x15b)][_0x35444f(0x14f)],{'shouldToolbarGroupWhenFull':!0x0});this[_0x35444f(0x147)]=new _0x1aa9a7(this,_0x4256eb);}[_0x5e7645(0x156)](){const _0x6c2898=_0x5e7645;return this[_0x6c2898(0x15c)](),this['ui'][_0x6c2898(0x156)](),super[_0x6c2898(0x156)]();}static async[_0x5e7645(0x154)](_0x5c4fa2,_0x555607){const _0x52d185=_0x5e7645,_0x5dc2d7=new this(_0x5c4fa2,_0x555607);return await _0x5dc2d7[_0x52d185(0x152)](),await _0x5dc2d7['ui'][_0x52d185(0x155)](_0x5c4fa2),await _0x5dc2d7[_0x52d185(0x143)][_0x52d185(0x155)](_0x5dc2d7[_0x52d185(0x15f)][_0x52d185(0x148)](_0x52d185(0x15d))||''),_0x5dc2d7[_0x52d185(0x157)](_0x52d185(0x14b)),_0x5dc2d7;}}
|