@ckeditor/ckeditor5-revision-history 38.1.1 → 38.2.0-alpha.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 +7 -6
- 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 -11
- package/src/index.js +1 -1
- 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 -95
- 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 -48
- package/src/revisionsrepository.js +1 -1
- package/src/revisiontracker.d.ts +77 -77
- 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 -22
- package/src/ui/revisionhistory/revisionhistoryui.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebar.d.ts +40 -40
- 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 -24
- 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
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @module revision-history/ui/revisionhistory/revisionhistoryui
|
|
3
|
-
*/
|
|
4
|
-
import { Plugin } from 'ckeditor5/src/core';
|
|
5
|
-
import RevisionTracker from '../../revisiontracker';
|
|
6
|
-
/**
|
|
7
|
-
* TODO
|
|
8
|
-
*/
|
|
9
|
-
export default class RevisionHistoryUI extends Plugin {
|
|
10
|
-
/**
|
|
11
|
-
* @inheritDoc
|
|
12
|
-
*/
|
|
13
|
-
static get pluginName(): "RevisionHistoryUI";
|
|
14
|
-
/**
|
|
15
|
-
* @inheritDoc
|
|
16
|
-
*/
|
|
17
|
-
static get requires(): readonly [typeof RevisionTracker];
|
|
18
|
-
/**
|
|
19
|
-
* @inheritDoc
|
|
20
|
-
*/
|
|
21
|
-
init(): void;
|
|
22
|
-
}
|
|
1
|
+
/**
|
|
2
|
+
* @module revision-history/ui/revisionhistory/revisionhistoryui
|
|
3
|
+
*/
|
|
4
|
+
import { Plugin } from 'ckeditor5/src/core.js';
|
|
5
|
+
import RevisionTracker from '../../revisiontracker.js';
|
|
6
|
+
/**
|
|
7
|
+
* TODO
|
|
8
|
+
*/
|
|
9
|
+
export default class RevisionHistoryUI extends Plugin {
|
|
10
|
+
/**
|
|
11
|
+
* @inheritDoc
|
|
12
|
+
*/
|
|
13
|
+
static get pluginName(): "RevisionHistoryUI";
|
|
14
|
+
/**
|
|
15
|
+
* @inheritDoc
|
|
16
|
+
*/
|
|
17
|
+
static get requires(): readonly [typeof RevisionTracker];
|
|
18
|
+
/**
|
|
19
|
+
* @inheritDoc
|
|
20
|
+
*/
|
|
21
|
+
init(): void;
|
|
22
|
+
}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4e42=['buttonView','isEnabled','componentFactory','get','children','length','editing','init','remove','saveButtonView','submit','revisionHistory','Revision\x20history','bind','change:isOpen','addMany','execute','saveRevision','items','plugins','focus','reset','set','isReady','cancel','Save\x20current\x20revision','add','Open\x20revision\x20history','isOpen','isReadOnly','pluginName','panelView','revisionName','view','requires'];(function(_0x4d4adf,_0x4e429e){const _0x4c2e7b=function(_0x2d9923){while(--_0x2d9923){_0x4d4adf['push'](_0x4d4adf['shift']());}};_0x4c2e7b(++_0x4e429e);}(_0x4e42,0x1a8));const _0x4c2e=function(_0x4d4adf,_0x4e429e){_0x4d4adf=_0x4d4adf-0x0;let _0x4c2e7b=_0x4e42[_0x4d4adf];return _0x4c2e7b;};import{Plugin as _0x336cba}from'ckeditor5/src/core.js';import{ListView as _0x3316da,ListItemView as _0x3a2e39,ButtonView as _0x2b23f0,createDropdown as _0x450a4b}from'ckeditor5/src/ui.js';import _0x560e52 from'../../revisiontracker.js';import _0x36c550 from'./revisionhistorysaverevisionformview.js';import _0x48a1e6 from'../../../theme/icons/revision-history.svg';import{getTranslation as _0x4e8124}from'../../utils/common-translations.js';export default class u extends _0x336cba{static get[_0x4c2e('0x1a')](){return'RevisionHistoryUI';}static get[_0x4c2e('0x1e')](){return[_0x560e52];}[_0x4c2e('0x3')](){const _0x172742=this['editor'],_0x4231df=_0x172742[_0x4c2e('0xf')][_0x4c2e('0x22')]('RevisionTracker');_0x172742['ui'][_0x4c2e('0x21')][_0x4c2e('0x16')](_0x4c2e('0x7'),_0x11e6da=>{const _0x4c2e38=_0x450a4b(_0x11e6da),_0x4007ce=_0x4c2e38[_0x4c2e('0x1b')][_0x4c2e('0x0')],_0x21a4cf=new _0x3316da(_0x11e6da),_0x41044e=new _0x3a2e39(_0x11e6da),_0x49efc8=new _0x2b23f0(_0x11e6da),_0x227d6a=new _0x3a2e39(_0x11e6da),_0x47414f=new _0x2b23f0(_0x11e6da),_0x5eca80=new _0x36c550(_0x11e6da);function _0x1a124b(){_0x4007ce['length']&&_0x4007ce[_0x4c2e('0x4')](0x0),_0x4007ce[_0x4c2e('0x16')](_0x21a4cf);}function _0x121269(){_0x4c2e38[_0x4c2e('0x18')]=!0x1,_0x172742[_0x4c2e('0x2')][_0x4c2e('0x1d')][_0x4c2e('0x10')]();}return _0x4c2e38[_0x4c2e('0x9')](_0x4c2e('0x20'))['to'](_0x4231df,'isReady',_0x4231df,_0x4c2e('0x20'),_0x172742,_0x4c2e('0x19'),(_0x708796,_0x36cd65,_0x6dbccf)=>_0x708796&&_0x36cd65&&!_0x6dbccf),_0x4c2e38[_0x4c2e('0x1f')]['set']({'icon':_0x48a1e6,'label':_0x4e8124(_0x11e6da,_0x4c2e('0x8')),'tooltip':!0x0}),_0x49efc8[_0x4c2e('0x12')]({'label':_0x4e8124(_0x11e6da,_0x4c2e('0x15')),'withText':!0x0}),_0x49efc8[_0x4c2e('0x9')](_0x4c2e('0x20'))['to'](_0x4231df,_0x4c2e('0x13'),_0x4231df,'isEnabled',_0x172742,_0x4c2e('0x19'),(_0x12b6d4,_0x18831c,_0x47875d)=>_0x12b6d4&&_0x18831c&&!_0x47875d),_0x49efc8['on'](_0x4c2e('0xc'),()=>function(){_0x4007ce[_0x4c2e('0x1')]&&_0x4007ce['remove'](0x0),(_0x5eca80[_0x4c2e('0x11')](),_0x4007ce[_0x4c2e('0x16')](_0x5eca80),_0x5eca80[_0x4c2e('0x10')]());}()),_0x47414f[_0x4c2e('0x12')]({'label':_0x4e8124(_0x11e6da,_0x4c2e('0x17')),'withText':!0x0}),_0x47414f[_0x4c2e('0x9')](_0x4c2e('0x20'))['to'](_0x4231df,_0x4c2e('0x13'),_0x172742,_0x4c2e('0x19'),(_0xab8f53,_0x3276a4)=>_0xab8f53&&!_0x3276a4),_0x47414f['on'](_0x4c2e('0xc'),()=>{_0x172742['config']['get'](_0x4c2e('0x7'))['showRevisionViewerCallback'](),_0x121269();}),_0x41044e[_0x4c2e('0x0')][_0x4c2e('0x16')](_0x49efc8),_0x227d6a[_0x4c2e('0x0')][_0x4c2e('0x16')](_0x47414f),_0x21a4cf[_0x4c2e('0xe')][_0x4c2e('0xb')]([_0x41044e,_0x227d6a]),_0x4c2e38['on'](_0x4c2e('0xa'),()=>_0x1a124b()),_0x5eca80[_0x4c2e('0x5')][_0x4c2e('0x9')](_0x4c2e('0x20'))['to'](_0x4231df,_0x4c2e('0x13'),_0x4231df,_0x4c2e('0x20'),_0x172742,'isReadOnly',(_0x24e4a1,_0xfa0e1d,_0x1fbfba)=>_0x24e4a1&&_0xfa0e1d&&!_0x1fbfba),_0x5eca80['on'](_0x4c2e('0x6'),()=>(_0x172742[_0x4c2e('0xf')][_0x4c2e('0x22')](_0x560e52)[_0x4c2e('0xd')]({'name':_0x5eca80[_0x4c2e('0x1c')]}),void _0x121269())),_0x5eca80['on'](_0x4c2e('0x14'),()=>_0x1a124b()),_0x5eca80['render'](),_0x1a124b(),_0x4c2e38;});}}
|
|
@@ -1,40 +1,40 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @module revision-history/ui/revisionsidebar/revisionsidebar
|
|
3
|
-
*/
|
|
4
|
-
import { Plugin, type Editor } from 'ckeditor5/src/core';
|
|
5
|
-
import RevisionViewer from '../../revisionviewer';
|
|
6
|
-
import type { default as RevisionView } from '../revision/revisionview';
|
|
7
|
-
/**
|
|
8
|
-
* TODO
|
|
9
|
-
*/
|
|
10
|
-
export default class RevisionsSidebar extends Plugin {
|
|
11
|
-
static defaultRevisionActions: Array<string>;
|
|
12
|
-
static availableRevisionActions: Record<string, RevisionAction>;
|
|
13
|
-
/**
|
|
14
|
-
* @inheritDoc
|
|
15
|
-
*/
|
|
16
|
-
static get pluginName(): "RevisionsSidebar";
|
|
17
|
-
/**
|
|
18
|
-
* @inheritDoc
|
|
19
|
-
*/
|
|
20
|
-
static get requires(): readonly [typeof RevisionViewer];
|
|
21
|
-
/**
|
|
22
|
-
* @inheritDoc
|
|
23
|
-
*/
|
|
24
|
-
constructor(editor: Editor);
|
|
25
|
-
/**
|
|
26
|
-
* @inheritDoc
|
|
27
|
-
*/
|
|
28
|
-
init(): void;
|
|
29
|
-
/**
|
|
30
|
-
* @inheritDoc
|
|
31
|
-
*/
|
|
32
|
-
destroy(): void;
|
|
33
|
-
}
|
|
34
|
-
export interface RevisionAction {
|
|
35
|
-
name: string;
|
|
36
|
-
class?: string;
|
|
37
|
-
action: (editor: Editor, revisionView: RevisionView) => void;
|
|
38
|
-
isVisible?: (editor: Editor, revisionView: RevisionView) => boolean;
|
|
39
|
-
isEnabled?: (editor: Editor, revisionView: RevisionView) => boolean;
|
|
40
|
-
}
|
|
1
|
+
/**
|
|
2
|
+
* @module revision-history/ui/revisionsidebar/revisionsidebar
|
|
3
|
+
*/
|
|
4
|
+
import { Plugin, type Editor } from 'ckeditor5/src/core.js';
|
|
5
|
+
import RevisionViewer from '../../revisionviewer.js';
|
|
6
|
+
import type { default as RevisionView } from '../revision/revisionview.js';
|
|
7
|
+
/**
|
|
8
|
+
* TODO
|
|
9
|
+
*/
|
|
10
|
+
export default class RevisionsSidebar extends Plugin {
|
|
11
|
+
static defaultRevisionActions: Array<string>;
|
|
12
|
+
static availableRevisionActions: Record<string, RevisionAction>;
|
|
13
|
+
/**
|
|
14
|
+
* @inheritDoc
|
|
15
|
+
*/
|
|
16
|
+
static get pluginName(): "RevisionsSidebar";
|
|
17
|
+
/**
|
|
18
|
+
* @inheritDoc
|
|
19
|
+
*/
|
|
20
|
+
static get requires(): readonly [typeof RevisionViewer];
|
|
21
|
+
/**
|
|
22
|
+
* @inheritDoc
|
|
23
|
+
*/
|
|
24
|
+
constructor(editor: Editor);
|
|
25
|
+
/**
|
|
26
|
+
* @inheritDoc
|
|
27
|
+
*/
|
|
28
|
+
init(): void;
|
|
29
|
+
/**
|
|
30
|
+
* @inheritDoc
|
|
31
|
+
*/
|
|
32
|
+
destroy(): void;
|
|
33
|
+
}
|
|
34
|
+
export interface RevisionAction {
|
|
35
|
+
name: string;
|
|
36
|
+
class?: string;
|
|
37
|
+
action: (editor: Editor, revisionView: RevisionView) => void;
|
|
38
|
+
isVisible?: (editor: Editor, revisionView: RevisionView) => boolean;
|
|
39
|
+
isEnabled?: (editor: Editor, revisionView: RevisionView) => boolean;
|
|
40
|
+
}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4e3d=['timePeriodViews','appendChild','destroy','_revisionsRepository','repository','action','getRevisionsInDiff','init','add','assign','revisionHistory.viewerSidebarContainer','pluginName','render','locale','restoreRevisionCallback','_handleRevisionSelected','compare','revisionHistory.revisionActions','editor','defaultRevisionActions','remove','requires','Restore\x20this\x20revision','highlightRevisions','listenTo','map','bind','_revisionViewer','_handleDiffChange','selectRevision','_handleEditorDataReady','getEarlierVisibleRevision','Compare\x20against\x20selected','diff','_createRevisionActions','config','getRevision','isVisible','restoreRevision','getIndex','isEnabled','_sidebarView','isReady','nameRevision','setName','data','isSelected','_handleRevisionSetName','availableRevisionActions','change:diff','_revisions','get','Name\x20this\x20revision','revisionViews','fieldView','newRevisionId','plugins','length','select','revisionHistory','ready','element','revisionSetName'];(function(_0x65f061,_0x4e3d8e){const _0x2dfdee=function(_0x5c572b){while(--_0x5c572b){_0x65f061['push'](_0x65f061['shift']());}};_0x2dfdee(++_0x4e3d8e);}(_0x4e3d,0x7e));const _0x2dfd=function(_0x65f061,_0x4e3d8e){_0x65f061=_0x65f061-0x0;let _0x2dfdee=_0x4e3d[_0x65f061];return _0x2dfdee;};import{Plugin as _0x43dfa2}from'ckeditor5/src/core.js';import _0x3edb00 from'./revisionssidebarview.js';import _0x1d6f35 from'../../revisionviewer.js';export default class w extends _0x43dfa2{static get[_0x2dfd('0xb')](){return'RevisionsSidebar';}static get[_0x2dfd('0x15')](){return[_0x1d6f35];}constructor(_0x8ae7c0){super(_0x8ae7c0),this[_0x2dfd('0x1b')]=_0x8ae7c0[_0x2dfd('0x38')]['get'](_0x1d6f35),this[_0x2dfd('0x3')]=this[_0x2dfd('0x1b')]['repository'],this[_0x2dfd('0x29')]=null;}[_0x2dfd('0x7')](){const _0x1174a2=this[_0x2dfd('0x3')][_0x2dfd('0x32')],_0x3e6dc7=this[_0x2dfd('0x22')](),_0x53cba4=this[_0x2dfd('0x12')][_0x2dfd('0x23')][_0x2dfd('0x33')](_0x2dfd('0xa'));this[_0x2dfd('0x29')]=new _0x3edb00(this['editor'][_0x2dfd('0xd')],_0x1174a2,_0x3e6dc7),this['_sidebarView']['on']('revisionSelected',this[_0x2dfd('0xf')][_0x2dfd('0x1a')](this)),this[_0x2dfd('0x29')]['on'](_0x2dfd('0x3e'),this[_0x2dfd('0x2f')]['bind'](this)),this['_sidebarView'][_0x2dfd('0x1a')](_0x2dfd('0x28'))['to'](this['_revisionViewer']),this[_0x2dfd('0x29')][_0x2dfd('0x0')]['on'](_0x2dfd('0x8'),(_0x46a04d,_0x1f12d7)=>{_0x1f12d7[_0x2dfd('0x35')]['on'](_0x2dfd('0x8'),(_0x3ce3a1,_0x2653ab)=>{_0x2653ab[_0x2dfd('0x1a')](_0x2dfd('0x28'),_0x2dfd('0x2a'))['to'](this[_0x2dfd('0x1b')]);});}),this[_0x2dfd('0x29')][_0x2dfd('0xc')](),this[_0x2dfd('0x18')](this['editor'][_0x2dfd('0x2d')],_0x2dfd('0x3c'),this[_0x2dfd('0x1e')][_0x2dfd('0x1a')](this)),this[_0x2dfd('0x18')](this[_0x2dfd('0x1b')],_0x2dfd('0x31'),this['_handleDiffChange'][_0x2dfd('0x1a')](this)),_0x53cba4[_0x2dfd('0x1')](this[_0x2dfd('0x29')][_0x2dfd('0x3d')]);}['destroy'](){this[_0x2dfd('0x29')][_0x2dfd('0x3d')][_0x2dfd('0x14')](),this['_sidebarView'][_0x2dfd('0x2')]();}[_0x2dfd('0x1e')](){const _0x3baa0f=this[_0x2dfd('0x3')][_0x2dfd('0x24')](0x0);if(_0x3baa0f){const _0x258c15=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x3baa0f['id']);this['_revisionViewer']['compare'](_0x3baa0f,_0x258c15);}}['_handleRevisionSelected'](_0x5523e4,_0x2e2967){const _0x3aeabb=this['_revisionsRepository'][_0x2dfd('0x24')](_0x2e2967['id']),_0x1e471d=this['_revisionsRepository'][_0x2dfd('0x1f')](_0x3aeabb['id']);this[_0x2dfd('0x1b')]['compare'](_0x3aeabb,_0x1e471d);}[_0x2dfd('0x2f')](_0xe215b5,_0x6900cd){this[_0x2dfd('0x3')][_0x2dfd('0x24')](_0x6900cd['id'])[_0x2dfd('0x2c')](_0x6900cd['name']);}[_0x2dfd('0x1c')](_0x1e84a,_0x16c212,_0xe2b82d){const _0x57ab17=this[_0x2dfd('0x3')][_0x2dfd('0x6')](_0xe2b82d);_0x57ab17[_0x2dfd('0x39')]>0x2?(this[_0x2dfd('0x29')][_0x2dfd('0x17')](_0x57ab17),this['_sidebarView']['selectRevision'](null)):(this[_0x2dfd('0x29')][_0x2dfd('0x17')]([]),this[_0x2dfd('0x29')][_0x2dfd('0x1d')](_0x57ab17[0x0]));}['_createRevisionActions'](){const _0x35164b=this['editor'],_0x55aef1=w[_0x2dfd('0x30')],_0x47939f=_0x35164b['config'][_0x2dfd('0x33')](_0x2dfd('0x11'))||w[_0x2dfd('0x13')];if(_0x47939f['length'])return _0x47939f[_0x2dfd('0x19')](_0x5e5871=>{const _0xa555bf='string'==typeof _0x5e5871?Object[_0x2dfd('0x9')]({},_0x55aef1[_0x5e5871]):_0x5e5871;return _0xa555bf[_0x2dfd('0x5')]=_0xa555bf[_0x2dfd('0x5')]['bind'](this,_0x35164b),_0xa555bf[_0x2dfd('0x25')]&&(_0xa555bf['isVisible']=_0xa555bf[_0x2dfd('0x25')]['bind'](this,_0x35164b)),_0xa555bf;});}}w[_0x2dfd('0x30')]={'compareAgainstSelected':{'name':_0x2dfd('0x20'),'action':({plugins:_0x31511f},_0x433d69)=>{const _0x280e62=_0x31511f['get'](_0x1d6f35),_0x4857dd=_0x280e62[_0x2dfd('0x4')];let _0x5e04b2=_0x280e62['diff'][_0x2dfd('0x37')],_0xdef89a=_0x433d69['id'];_0x4857dd[_0x2dfd('0x27')](_0x5e04b2)>_0x4857dd[_0x2dfd('0x27')](_0xdef89a)&&([_0x5e04b2,_0xdef89a]=[_0xdef89a,_0x5e04b2]),_0x280e62[_0x2dfd('0x10')](_0x5e04b2,_0xdef89a);},'isVisible':({plugins:_0x150b62},_0x311131)=>{const _0x938bb=_0x150b62['get'](_0x1d6f35);return!(_0x938bb['repository'][_0x2dfd('0x6')](_0x938bb[_0x2dfd('0x21')])[_0x2dfd('0x39')]>0x2)&&!_0x311131[_0x2dfd('0x2e')];}},'restoreRevision':{'name':_0x2dfd('0x16'),'action':(_0x6bc028,{id:_0x51015a})=>{_0x6bc028[_0x2dfd('0x23')][_0x2dfd('0x33')](_0x2dfd('0x3b'))[_0x2dfd('0xe')](_0x51015a);},'isVisible':({plugins:_0x5310e9},_0xfdb58)=>!!_0x5310e9[_0x2dfd('0x33')](_0x1d6f35)[_0x2dfd('0x4')]['getLaterVisibleRevision'](_0xfdb58['id'])},'nameRevision':{'name':_0x2dfd('0x34'),'action':({plugins:_0x8ea362},{id:_0x1240b5,revisionNameView:_0x5709c0})=>{const _0x107ee3=_0x8ea362[_0x2dfd('0x33')](_0x1d6f35),_0xcc605f=_0x107ee3[_0x2dfd('0x4')]['getEarlierVisibleRevision'](_0x1240b5);_0x107ee3['compare'](_0x1240b5,_0xcc605f),_0x5709c0['focus'](),_0x5709c0[_0x2dfd('0x36')][_0x2dfd('0x3a')]();}}},w[_0x2dfd('0x13')]=['compareAgainstSelected',_0x2dfd('0x26'),_0x2dfd('0x2b')];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @module revision-history/ui/revisionsidebar/revisionsidebarheaderview
|
|
3
|
-
*/
|
|
4
|
-
import '../../../theme/revisionssidebar/revisionssidebarheader.css';
|
|
1
|
+
/**
|
|
2
|
+
* @module revision-history/ui/revisionsidebar/revisionsidebarheaderview
|
|
3
|
+
*/
|
|
4
|
+
import '../../../theme/revisionssidebar/revisionssidebarheader.css';
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3ad2=['setTemplate','ck-reset_all','content','Revision\x20history','div','span','ck-revision-history-sidebar__header__label'];(function(_0xd918f2,_0x3ad259){const _0x320585=function(_0x28f0ad){while(--_0x28f0ad){_0xd918f2['push'](_0xd918f2['shift']());}};_0x320585(++_0x3ad259);}(_0x3ad2,0x9d));const _0x3205=function(_0xd918f2,_0x3ad259){_0xd918f2=_0xd918f2-0x0;let _0x320585=_0x3ad2[_0xd918f2];return _0x320585;};import{View as _0x431675,IconView as _0x35ac42}from'ckeditor5/src/ui.js';import{getTranslation as _0x850aca}from'../../utils/common-translations.js';import _0x46eeae from'../../../theme/icons/revision-history.svg';import'../../../theme/revisionssidebar/revisionssidebarheader.css';export default class os extends _0x431675{constructor(_0x8d98f5){super(_0x8d98f5);const _0x3039db=new _0x35ac42();_0x3039db[_0x3205('0x6')]=_0x46eeae,this[_0x3205('0x4')]({'tag':_0x3205('0x1'),'attributes':{'class':['ck',_0x3205('0x5'),'ck-revision-history-sidebar__header']},'children':[_0x3039db,{'tag':_0x3205('0x2'),'attributes':{'class':['ck',_0x3205('0x3')]},'children':[_0x850aca(_0x8d98f5,_0x3205('0x0'))]}]});}}
|
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @module revision-history/ui/revisionsidebar/revisionsidebartimeperiodview
|
|
3
|
-
*/
|
|
4
|
-
import { View, type ViewCollection } from 'ckeditor5/src/ui';
|
|
5
|
-
import type { Locale } from 'ckeditor5/src/utils';
|
|
6
|
-
import RevisionView from '../revision/revisionview';
|
|
7
|
-
import '../../../theme/revisionssidebar/revisionssidebartimeperiod.css';
|
|
8
|
-
import type { RevisionAction } from './revisionssidebar';
|
|
9
|
-
import type Revision from '../../revision';
|
|
10
|
-
/**
|
|
11
|
-
* TODO
|
|
12
|
-
*/
|
|
13
|
-
export default class RevisionsSidebarTimePeriodView extends View {
|
|
14
|
-
startDate: Date;
|
|
15
|
-
revisionViews: ViewCollection<RevisionView>;
|
|
16
|
-
constructor(locale: Locale, startDate: Date, revisionActions: Array<RevisionAction>);
|
|
17
|
-
/**
|
|
18
|
-
* TODO
|
|
19
|
-
*/
|
|
20
|
-
addRevision(newRevision: Revision): void;
|
|
21
|
-
/**
|
|
22
|
-
* TODO
|
|
23
|
-
*/
|
|
24
|
-
removeRevision(revision: Revision): void;
|
|
25
|
-
}
|
|
1
|
+
/**
|
|
2
|
+
* @module revision-history/ui/revisionsidebar/revisionsidebartimeperiodview
|
|
3
|
+
*/
|
|
4
|
+
import { View, type ViewCollection } from 'ckeditor5/src/ui.js';
|
|
5
|
+
import type { Locale } from 'ckeditor5/src/utils.js';
|
|
6
|
+
import RevisionView from '../revision/revisionview.js';
|
|
7
|
+
import '../../../theme/revisionssidebar/revisionssidebartimeperiod.css';
|
|
8
|
+
import type { RevisionAction } from './revisionssidebar.js';
|
|
9
|
+
import type Revision from '../../revision.js';
|
|
10
|
+
/**
|
|
11
|
+
* TODO
|
|
12
|
+
*/
|
|
13
|
+
export default class RevisionsSidebarTimePeriodView extends View {
|
|
14
|
+
startDate: Date;
|
|
15
|
+
revisionViews: ViewCollection<RevisionView>;
|
|
16
|
+
constructor(locale: Locale, startDate: Date, revisionActions: Array<RevisionAction>);
|
|
17
|
+
/**
|
|
18
|
+
* TODO
|
|
19
|
+
*/
|
|
20
|
+
addRevision(newRevision: Revision): void;
|
|
21
|
+
/**
|
|
22
|
+
* TODO
|
|
23
|
+
*/
|
|
24
|
+
removeRevision(revision: Revision): void;
|
|
25
|
+
}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3723=['setTemplate','div','span','revisionViews','addRevision','select','delegate','locale','_revisionActions','remove','setName','uiLanguage','localizedPeriodName','startDate','find'];(function(_0x1e5a56,_0x3723be){const _0x1341b1=function(_0x494122){while(--_0x494122){_0x1e5a56['push'](_0x1e5a56['shift']());}};_0x1341b1(++_0x3723be);}(_0x3723,0x6b));const _0x1341=function(_0x1e5a56,_0x3723be){_0x1e5a56=_0x1e5a56-0x0;let _0x1341b1=_0x3723[_0x1e5a56];return _0x1341b1;};import{View as _0x9253f4}from'ckeditor5/src/ui.js';import _0x362281 from'../revision/revisionview.js';import{getDateTimePeriodInfo as _0xd0c09f}from'./utils.js';import'../../../theme/revisionssidebar/revisionssidebartimeperiod.css';export default class pi extends _0x9253f4{constructor(_0x34073c,_0x27133e,_0x2b7d7b){super(_0x34073c);const _0xf6974a=_0xd0c09f(_0x27133e,this[_0x1341('0x5')][_0x1341('0x9')])[_0x1341('0xa')];this[_0x1341('0xb')]=_0x27133e,this[_0x1341('0x1')]=this['createCollection'](),this[_0x1341('0x6')]=_0x2b7d7b,this['revisionViews'][_0x1341('0x4')](_0x1341('0x3'))['to'](this),this[_0x1341('0x1')][_0x1341('0x4')](_0x1341('0x8'))['to'](this),this[_0x1341('0xd')]({'tag':_0x1341('0xe'),'attributes':{'class':['ck','ck-revision-history-sidebar__time-period']},'children':[{'tag':_0x1341('0x0'),'attributes':{'class':['ck','ck-revision-history-sidebar__time-period__label']},'children':[{'text':_0xf6974a}]},{'tag':_0x1341('0xe'),'attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}[_0x1341('0x2')](_0x3023ec){const _0x43f8e1=new _0x362281(this[_0x1341('0x5')],_0x3023ec,this[_0x1341('0x6')]);this[_0x1341('0x1')]['add'](_0x43f8e1);}['removeRevision'](_0x12eee5){const _0x4c02dc=this[_0x1341('0x1')][_0x1341('0xc')](_0x489dbd=>_0x489dbd['id']===_0x12eee5['id']);this[_0x1341('0x1')][_0x1341('0x7')](_0x4c02dc);}}
|
|
@@ -1,40 +1,40 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @module revision-history/ui/revisionsidebar/revisionsidebarview
|
|
3
|
-
*/
|
|
4
|
-
import { View, type ViewCollection } from 'ckeditor5/src/ui';
|
|
5
|
-
import type { Locale, Collection } from 'ckeditor5/src/utils';
|
|
6
|
-
import RevisionsSidebarTimePeriodView from './revisionssidebartimeperiodview';
|
|
7
|
-
import '../../../theme/revisionssidebar/revisionssidebar.css';
|
|
8
|
-
import type { default as RevisionView } from '../revision/revisionview';
|
|
9
|
-
import type { RevisionAction } from './revisionssidebar';
|
|
10
|
-
import type Revision from '../../revision';
|
|
11
|
-
/**
|
|
12
|
-
* TODO
|
|
13
|
-
*/
|
|
14
|
-
export default class RevisionsSidebarView extends View {
|
|
15
|
-
timePeriodViews: ViewCollection<RevisionsSidebarTimePeriodView>;
|
|
16
|
-
/**
|
|
17
|
-
* @observable
|
|
18
|
-
*/
|
|
19
|
-
isEnabled: boolean;
|
|
20
|
-
/**
|
|
21
|
-
* @inheritDoc
|
|
22
|
-
*/
|
|
23
|
-
constructor(locale: Locale, revisions: Collection<Revision>, revisionActions: Array<RevisionAction>);
|
|
24
|
-
/**
|
|
25
|
-
* @inheritDoc
|
|
26
|
-
*/
|
|
27
|
-
render(): void;
|
|
28
|
-
/**
|
|
29
|
-
* TODO
|
|
30
|
-
*/
|
|
31
|
-
get revisionViews(): Array<RevisionView>;
|
|
32
|
-
/**
|
|
33
|
-
* TODO
|
|
34
|
-
*/
|
|
35
|
-
selectRevision(revisionToSelect: Revision | null): void;
|
|
36
|
-
/**
|
|
37
|
-
* TODO
|
|
38
|
-
*/
|
|
39
|
-
highlightRevisions(revisionsToHighlight: Array<Revision>): void;
|
|
40
|
-
}
|
|
1
|
+
/**
|
|
2
|
+
* @module revision-history/ui/revisionsidebar/revisionsidebarview
|
|
3
|
+
*/
|
|
4
|
+
import { View, type ViewCollection } from 'ckeditor5/src/ui.js';
|
|
5
|
+
import type { Locale, Collection } from 'ckeditor5/src/utils.js';
|
|
6
|
+
import RevisionsSidebarTimePeriodView from './revisionssidebartimeperiodview.js';
|
|
7
|
+
import '../../../theme/revisionssidebar/revisionssidebar.css';
|
|
8
|
+
import type { default as RevisionView } from '../revision/revisionview.js';
|
|
9
|
+
import type { RevisionAction } from './revisionssidebar.js';
|
|
10
|
+
import type Revision from '../../revision.js';
|
|
11
|
+
/**
|
|
12
|
+
* TODO
|
|
13
|
+
*/
|
|
14
|
+
export default class RevisionsSidebarView extends View {
|
|
15
|
+
timePeriodViews: ViewCollection<RevisionsSidebarTimePeriodView>;
|
|
16
|
+
/**
|
|
17
|
+
* @observable
|
|
18
|
+
*/
|
|
19
|
+
isEnabled: boolean;
|
|
20
|
+
/**
|
|
21
|
+
* @inheritDoc
|
|
22
|
+
*/
|
|
23
|
+
constructor(locale: Locale, revisions: Collection<Revision>, revisionActions: Array<RevisionAction>);
|
|
24
|
+
/**
|
|
25
|
+
* @inheritDoc
|
|
26
|
+
*/
|
|
27
|
+
render(): void;
|
|
28
|
+
/**
|
|
29
|
+
* TODO
|
|
30
|
+
*/
|
|
31
|
+
get revisionViews(): Array<RevisionView>;
|
|
32
|
+
/**
|
|
33
|
+
* TODO
|
|
34
|
+
*/
|
|
35
|
+
selectRevision(revisionToSelect: Revision | null): void;
|
|
36
|
+
/**
|
|
37
|
+
* TODO
|
|
38
|
+
*/
|
|
39
|
+
highlightRevisions(revisionsToHighlight: Array<Revision>): void;
|
|
40
|
+
}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4fe3=['ck-revision-history-sidebar','div','locale','remove','set','bindTemplate','timePeriodViews','delegate','map','_removeRevision','_revisionActions','unhighlight','ck-rounded-corners','addRevision','flat','isEnabled','highlightRevisions','ck-reset','revisionSetName','deselect','ck-revision-history-sidebar__timeline','setTemplate','add','_revisions','select','uiLanguage','_getTimePeriodViewByStartDate','revisionViews','render','revisionSelected','_addRevision','some','find','removeRevision','getTime','ck-disabled','setName','startDate'];(function(_0x39981d,_0x4fe31e){const _0x489919=function(_0x49f924){while(--_0x49f924){_0x39981d['push'](_0x39981d['shift']());}};_0x489919(++_0x4fe31e);}(_0x4fe3,0x156));const _0x4899=function(_0x39981d,_0x4fe31e){_0x39981d=_0x39981d-0x0;let _0x489919=_0x4fe3[_0x39981d];return _0x489919;};import{View as _0xff35a1}from'ckeditor5/src/ui.js';import _0x5b40b9 from'./revisionssidebartimeperiodview.js';import _0x200132 from'./revisionssidebarheaderview.js';import{getDateTimePeriodInfo as _0x5d3d8b}from'./utils.js';import'../../../theme/revisionssidebar/revisionssidebar.css';export default class vi extends _0xff35a1{constructor(_0x335193,_0x352a0e,_0x1cc694){super(_0x335193);const _0x4b88a4=this[_0x4899('0x5')];this[_0x4899('0x6')]=this['createCollection'](),this[_0x4899('0x6')][_0x4899('0x7')]('select')['to'](this),this[_0x4899('0x6')][_0x4899('0x7')]('setName')['to'](this),this[_0x4899('0x17')]=_0x352a0e,this[_0x4899('0xa')]=_0x1cc694,this['on'](_0x4899('0x18'),(_0x4780a2,_0xdcd6f0)=>{this['fire'](_0x4899('0x1d'),_0xdcd6f0);}),this['on'](_0x4899('0x24'),(_0xa23368,_0x269ae2)=>{this['fire'](_0x4899('0x12'),_0x269ae2);}),this[_0x4899('0x4')]('isEnabled',!0x1),this[_0x4899('0x15')]({'tag':_0x4899('0x1'),'attributes':{'class':['ck',_0x4899('0x11'),_0x4899('0xc'),_0x4899('0x0')]},'children':[new _0x200132(_0x335193),{'tag':_0x4899('0x1'),'attributes':{'class':['ck',_0x4899('0x14'),_0x4b88a4['if'](_0x4899('0xf'),_0x4899('0x23'),_0x76ad25=>!_0x76ad25)]},'children':this[_0x4899('0x6')]}]});}[_0x4899('0x1c')](){super[_0x4899('0x1c')]();for(const _0x2498ad of this[_0x4899('0x17')])this[_0x4899('0x1e')](_0x2498ad);this[_0x4899('0x17')]['on'](_0x4899('0x16'),(_0xea510e,_0x3e127a)=>{this['_addRevision'](_0x3e127a);}),this[_0x4899('0x17')]['on'](_0x4899('0x3'),(_0x21d843,_0x4f0c55)=>{this[_0x4899('0x9')](_0x4f0c55);});}get[_0x4899('0x1b')](){return this[_0x4899('0x6')][_0x4899('0x8')](_0x36a812=>_0x36a812[_0x4899('0x1b')][_0x4899('0x8')](_0x66af43=>_0x66af43))[_0x4899('0xe')]();}['selectRevision'](_0x158bfe){for(const _0x1802d9 of this[_0x4899('0x1b')])_0x158bfe&&_0x158bfe['id']===_0x1802d9['id']?_0x1802d9['select']():_0x1802d9[_0x4899('0x13')]();}[_0x4899('0x10')](_0x2ffa1b){for(const _0x1282c5 of this[_0x4899('0x1b')])_0x2ffa1b[_0x4899('0x1f')](({id:_0x1f3030})=>_0x1f3030===_0x1282c5['id'])?_0x1282c5['highlight']():_0x1282c5[_0x4899('0xb')]();}[_0x4899('0x1e')](_0xc69c08){const _0x3ed9ae=_0x5d3d8b(_0xc69c08['createdAt'],this['locale'][_0x4899('0x19')])[_0x4899('0x25')];let _0x3b838e=this[_0x4899('0x6')]['get'](0x0);_0x3b838e&&_0x3b838e[_0x4899('0x25')]['getTime']()===_0x3ed9ae[_0x4899('0x22')]()||(_0x3b838e=new _0x5b40b9(this[_0x4899('0x2')],_0x3ed9ae,this[_0x4899('0xa')]),this['timePeriodViews'][_0x4899('0x16')](_0x3b838e)),_0x3b838e[_0x4899('0xd')](_0xc69c08);}[_0x4899('0x9')](_0x387e23){const _0x14eb83=_0x5d3d8b(_0x387e23['createdAt'],this[_0x4899('0x2')][_0x4899('0x19')])['startDate'];this[_0x4899('0x1a')](_0x14eb83)[_0x4899('0x21')](_0x387e23);}['_getTimePeriodViewByStartDate'](_0x2abb25){return this[_0x4899('0x6')][_0x4899('0x20')](_0x57a94c=>_0x57a94c[_0x4899('0x25')][_0x4899('0x22')]()===_0x2abb25[_0x4899('0x22')]());}}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @module revision-history/ui/revisionsidebar/utils
|
|
3
|
-
*/
|
|
4
|
-
export declare function getDateTimePeriodInfo(jsDate: Date, locale: string): DateTimePeriod;
|
|
5
|
-
export interface DateTimePeriod {
|
|
6
|
-
startDate: Date;
|
|
7
|
-
localizedPeriodName: string;
|
|
8
|
-
}
|
|
1
|
+
/**
|
|
2
|
+
* @module revision-history/ui/revisionsidebar/utils
|
|
3
|
+
*/
|
|
4
|
+
export declare function getDateTimePeriodInfo(jsDate: Date, locale: string): DateTimePeriod;
|
|
5
|
+
export interface DateTimePeriod {
|
|
6
|
+
startDate: Date;
|
|
7
|
+
localizedPeriodName: string;
|
|
8
|
+
}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3ab7=['local','monthLong','toRelativeCalendar','weekdayLong','toJSDate','day','month','hasSame','week','minus','startOf','fromJSDate','year','setLocale'];(function(_0x857f0e,_0x3ab743){const _0x43c8d0=function(_0x52c026){while(--_0x52c026){_0x857f0e['push'](_0x857f0e['shift']());}};_0x43c8d0(++_0x3ab743);}(_0x3ab7,0x87));const _0x43c8=function(_0x857f0e,_0x3ab743){_0x857f0e=_0x857f0e-0x0;let _0x43c8d0=_0x3ab7[_0x857f0e];return _0x43c8d0;};import{DateTime as _0x15620d}from'luxon';export function getDateTimePeriodInfo(_0xb076df,_0x1acf86){const _0x42958e=_0x15620d[_0x43c8('0x2')](_0xb076df)[_0x43c8('0x4')](_0x1acf86),_0x1e7aa6=_0x15620d[_0x43c8('0x5')](),_0x1ed170=_0x1e7aa6[_0x43c8('0x0')]({'days':0x1})[_0x43c8('0x1')](_0x43c8('0xa'));let _0x2fe0bf,_0x64b56;return _0x42958e[_0x43c8('0xc')](_0x1e7aa6,_0x43c8('0xa'))?(_0x2fe0bf=_0x42958e[_0x43c8('0x1')](_0x43c8('0xa'))[_0x43c8('0x9')](),_0x64b56=_0x42958e[_0x43c8('0x7')]()):_0x42958e['hasSame'](_0x1ed170,_0x43c8('0xa'))?(_0x2fe0bf=_0x1ed170[_0x43c8('0x9')](),_0x64b56=_0x42958e[_0x43c8('0x7')]()):_0x42958e[_0x43c8('0xc')](_0x1e7aa6,_0x43c8('0xd'))?(_0x2fe0bf=_0x42958e['startOf'](_0x43c8('0xd'))['toJSDate'](),_0x64b56=_0x42958e[_0x43c8('0x8')]||''):_0x42958e[_0x43c8('0xc')](_0x1e7aa6,_0x43c8('0x3'))?(_0x2fe0bf=_0x42958e['startOf'](_0x43c8('0xb'))[_0x43c8('0x9')](),_0x64b56=_0x42958e[_0x43c8('0x6')]||''):(_0x2fe0bf=_0x42958e[_0x43c8('0x1')]('year')[_0x43c8('0x9')](),_0x64b56=String(_0x42958e[_0x43c8('0x3')])),{'startDate':_0x2fe0bf,'localizedPeriodName':_0x64b56};}
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @module revision-history/ui/revisionviewer/changedetailsview
|
|
3
|
-
*/
|
|
4
|
-
import { View } from 'ckeditor5/src/ui';
|
|
5
|
-
import type { Locale } from 'ckeditor5/src/utils';
|
|
6
|
-
import type ChangeItem from '../../changeitem';
|
|
7
|
-
export default class ChangeDetailsView extends View {
|
|
8
|
-
changeId: string;
|
|
9
|
-
/**
|
|
10
|
-
* @observable
|
|
11
|
-
*/
|
|
12
|
-
type: string;
|
|
13
|
-
constructor(locale: Locale, model: ChangeItem);
|
|
14
|
-
/**
|
|
15
|
-
* Focuses the view.
|
|
16
|
-
*/
|
|
17
|
-
focus(): void;
|
|
18
|
-
}
|
|
1
|
+
/**
|
|
2
|
+
* @module revision-history/ui/revisionviewer/changedetailsview
|
|
3
|
+
*/
|
|
4
|
+
import { View } from 'ckeditor5/src/ui.js';
|
|
5
|
+
import type { Locale } from 'ckeditor5/src/utils.js';
|
|
6
|
+
import type ChangeItem from '../../changeitem.js';
|
|
7
|
+
export default class ChangeDetailsView extends View {
|
|
8
|
+
changeId: string;
|
|
9
|
+
/**
|
|
10
|
+
* @observable
|
|
11
|
+
*/
|
|
12
|
+
type: string;
|
|
13
|
+
constructor(locale: Locale, model: ChangeItem);
|
|
14
|
+
/**
|
|
15
|
+
* Focuses the view.
|
|
16
|
+
*/
|
|
17
|
+
focus(): void;
|
|
18
|
+
}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4d8a=['div','span','focus','changeId','isSuggestion','setTemplate','ck-revision-change__','ck-revision-change__label','set','_model','ck-revision-change','data','ck-annotation','type','name','Suggested\x20by','bindTemplate'];(function(_0x3c4f17,_0x4d8a6b){const _0x201fb5=function(_0x5db1bd){while(--_0x5db1bd){_0x3c4f17['push'](_0x3c4f17['shift']());}};_0x201fb5(++_0x4d8a6b);}(_0x4d8a,0x161));const _0x201f=function(_0x3c4f17,_0x4d8a6b){_0x3c4f17=_0x3c4f17-0x0;let _0x201fb5=_0x4d8a[_0x3c4f17];return _0x201fb5;};import{View as _0x10c320}from'ckeditor5/src/ui.js';import{getTranslation as _0x511c44}from'../../utils/common-translations.js';export default class Z extends _0x10c320{constructor(_0x4397df,_0x50ca04){super(_0x4397df),this[_0x201f('0xd')]=_0x50ca04,this[_0x201f('0x7')]=_0x50ca04['id'];const _0x4d1318=this[_0x201f('0x3')],_0x1bdd98=_0x511c44(_0x4397df,_0x50ca04[_0x201f('0xf')][_0x201f('0x8')]?_0x201f('0x2'):'add'==_0x50ca04[_0x201f('0x0')]?'Added\x20by':'Removed\x20by');this[_0x201f('0xc')](_0x201f('0x0'),_0x50ca04['type']),this[_0x201f('0x9')]({'tag':_0x201f('0x4'),'attributes':{'class':[_0x201f('0x10'),_0x201f('0xe'),_0x4d1318['to'](_0x201f('0x0'),_0x3ae839=>_0x201f('0xa')+_0x3ae839)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':_0x201f('0x5'),'attributes':{'class':[_0x201f('0xb')]},'children':[{'text':_0x1bdd98}]},{'text':'\x20'+_0x50ca04['author'][_0x201f('0x1')]}]}]});}[_0x201f('0x6')](){this['element'][_0x201f('0x6')]();}}
|