@ckeditor/ckeditor5-revision-history 40.0.0 → 40.2.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/LICENSE.md +3 -3
- package/README.md +11 -11
- package/build/revision-history.js +1 -1
- package/package.json +6 -6
- package/src/augmentation.d.ts +29 -29
- package/src/changeitem.d.ts +58 -58
- 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 +15 -15
- package/src/revision.d.ts +153 -153
- package/src/revision.js +1 -1
- package/src/revisiondiff.d.ts +24 -24
- package/src/revisiondiff.js +1 -1
- package/src/revisionhistory.d.ts +99 -99
- package/src/revisionhistory.js +1 -1
- package/src/revisionhistoryadapter.d.ts +64 -64
- package/src/revisionhistoryconfig.d.ts +60 -60
- package/src/revisionsrepository.d.ts +52 -52
- package/src/revisionsrepository.js +1 -1
- package/src/revisiontracker.d.ts +81 -81
- package/src/revisiontracker.js +1 -1
- package/src/revisionviewer.d.ts +25 -25
- package/src/revisionviewer.js +1 -1
- package/src/ui/revision/createrevisionactionsdropdown.d.ts +10 -10
- package/src/ui/revision/createrevisionactionsdropdown.js +1 -1
- package/src/ui/revision/revisionauthorview.d.ts +5 -5
- package/src/ui/revision/revisionauthorview.js +1 -1
- package/src/ui/revision/revisionnameview.d.ts +5 -5
- package/src/ui/revision/revisionnameview.js +1 -1
- package/src/ui/revision/revisionview.d.ts +95 -95
- package/src/ui/revision/revisionview.js +1 -1
- package/src/ui/revision/subrevisioncollapserview.d.ts +21 -21
- package/src/ui/revision/subrevisioncollapserview.js +1 -1
- package/src/ui/revision/subrevisionview.d.ts +34 -34
- package/src/ui/revision/subrevisionview.js +1 -1
- package/src/ui/revision/utils.d.ts +5 -5
- package/src/ui/revision/utils.js +1 -1
- package/src/ui/revisionhistory/revisionhistorysaverevisionformview.d.ts +81 -81
- package/src/ui/revisionhistory/revisionhistorysaverevisionformview.js +1 -1
- package/src/ui/revisionhistory/revisionhistoryui.d.ts +26 -26
- package/src/ui/revisionhistory/revisionhistoryui.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebar.d.ts +44 -44
- package/src/ui/revisionssidebar/revisionssidebar.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebarheaderview.d.ts +5 -5
- package/src/ui/revisionssidebar/revisionssidebarheaderview.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebartimeperiodview.d.ts +29 -29
- package/src/ui/revisionssidebar/revisionssidebartimeperiodview.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebarview.d.ts +44 -44
- package/src/ui/revisionssidebar/revisionssidebarview.js +1 -1
- package/src/ui/revisionssidebar/utils.d.ts +9 -9
- package/src/ui/revisionssidebar/utils.js +1 -1
- package/src/ui/revisionviewer/changedetailsview.d.ts +22 -22
- package/src/ui/revisionviewer/changedetailsview.js +1 -1
- package/src/ui/revisionviewer/changesnavigationview.d.ts +40 -40
- package/src/ui/revisionviewer/changesnavigationview.js +1 -1
- package/src/ui/revisionviewer/revisionviewerloadingoverlay.d.ts +26 -26
- package/src/ui/revisionviewer/revisionviewerloadingoverlay.js +1 -1
- package/src/ui/revisionviewer/revisionviewerui.d.ts +28 -28
- package/src/ui/revisionviewer/revisionviewerui.js +1 -1
- package/src/utils/common-translations.d.ts +11 -11
- package/src/utils/common-translations.js +1 -1
|
@@ -1,40 +1,40 @@
|
|
|
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/ui/revisionviewer/changenaviagationview
|
|
7
|
-
*/
|
|
8
|
-
import { View } from 'ckeditor5/src/ui';
|
|
9
|
-
import type { Locale } from 'ckeditor5/src/utils';
|
|
10
|
-
import '../../../theme/changesnavigation.css';
|
|
11
|
-
/**
|
|
12
|
-
* TODO
|
|
13
|
-
*/
|
|
14
|
-
export default class ChangesNavigationView extends View {
|
|
15
|
-
/**
|
|
16
|
-
* @observable
|
|
17
|
-
*/
|
|
18
|
-
isNavigationMode: boolean;
|
|
19
|
-
/**
|
|
20
|
-
* @observable
|
|
21
|
-
*/
|
|
22
|
-
isReady: boolean;
|
|
23
|
-
/**
|
|
24
|
-
* @observable
|
|
25
|
-
*/
|
|
26
|
-
currentChangeNumber: number;
|
|
27
|
-
/**
|
|
28
|
-
* @observable
|
|
29
|
-
*/
|
|
30
|
-
numberOfChanges: number;
|
|
31
|
-
/**
|
|
32
|
-
* @observable
|
|
33
|
-
*/
|
|
34
|
-
isForwardNavigationEnabled: boolean;
|
|
35
|
-
/**
|
|
36
|
-
* @observable
|
|
37
|
-
*/
|
|
38
|
-
isBackwardNavigationEnabled: boolean;
|
|
39
|
-
constructor(locale: Locale);
|
|
40
|
-
}
|
|
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/ui/revisionviewer/changenaviagationview
|
|
7
|
+
*/
|
|
8
|
+
import { View } from 'ckeditor5/src/ui';
|
|
9
|
+
import type { Locale } from 'ckeditor5/src/utils';
|
|
10
|
+
import '../../../theme/changesnavigation.css';
|
|
11
|
+
/**
|
|
12
|
+
* TODO
|
|
13
|
+
*/
|
|
14
|
+
export default class ChangesNavigationView extends View {
|
|
15
|
+
/**
|
|
16
|
+
* @observable
|
|
17
|
+
*/
|
|
18
|
+
isNavigationMode: boolean;
|
|
19
|
+
/**
|
|
20
|
+
* @observable
|
|
21
|
+
*/
|
|
22
|
+
isReady: boolean;
|
|
23
|
+
/**
|
|
24
|
+
* @observable
|
|
25
|
+
*/
|
|
26
|
+
currentChangeNumber: number;
|
|
27
|
+
/**
|
|
28
|
+
* @observable
|
|
29
|
+
*/
|
|
30
|
+
numberOfChanges: number;
|
|
31
|
+
/**
|
|
32
|
+
* @observable
|
|
33
|
+
*/
|
|
34
|
+
isForwardNavigationEnabled: boolean;
|
|
35
|
+
/**
|
|
36
|
+
* @observable
|
|
37
|
+
*/
|
|
38
|
+
isBackwardNavigationEnabled: boolean;
|
|
39
|
+
constructor(locale: Locale);
|
|
40
|
+
}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x302d=['forward','set','ck-revision-history-ui__changes-navigation__label','X_OF_Y_CHANGES','isForwardNavigationEnabled','ck-revision-history-ui','EDIT_X_OF_Y_REVISIONS','execute','Show\x20next\x20change','_statusText','currentChangeNumber','NUMBER_OF_CHANGES','ck-revision-history-ui__changes-navigation__navigation','div','fire','backward','bindTemplate','_isStatusLabelVisible','isReady','isEnabled','span','Total','Show\x20previous\x20change','bind','isNavigationMode','numberOfChanges','ck-revision-history-ui__changes-navigation','ck-revision-history-ui__changes-navigation__wrapper','isBackwardNavigationEnabled'];(function(_0x1e59d2,_0x302d99){const _0x38c23d=function(_0x19291c){while(--_0x19291c){_0x1e59d2['push'](_0x1e59d2['shift']());}};_0x38c23d(++_0x302d99);}(_0x302d,0xe3));const _0x38c2=function(_0x1e59d2,_0x302d99){_0x1e59d2=_0x1e59d2-0x0;let _0x38c23d=_0x302d[_0x1e59d2];return _0x38c23d;};import{View as _0x36db7e,ButtonView as _0x1e0826,ToolbarSeparatorView as _0x924a88}from'ckeditor5/src/ui';import{getTranslation as _0x318711}from'../../utils/common-translations';import _0x51c8dc from'../../../theme/icons/arrow-up.svg';import _0x1a7366 from'../../../theme/icons/arrow-down.svg';import'../../../theme/changesnavigation.css';export default class bi extends _0x36db7e{constructor(_0x5b212c){super(_0x5b212c);const _0x4b09a9=this[_0x38c2('0x15')],_0xb80467=new _0x1e0826(_0x5b212c),_0x5c50b6=new _0x1e0826(_0x5b212c);this[_0x38c2('0x6')](_0x38c2('0x0'),!0x1),this[_0x38c2('0x6')]('isReady',!0x1),this[_0x38c2('0x6')](_0x38c2('0xf'),0x0),this[_0x38c2('0x6')](_0x38c2('0x1'),0x0),this[_0x38c2('0x6')](_0x38c2('0x9'),!0x1),this[_0x38c2('0x6')](_0x38c2('0x4'),!0x1),this['bind'](_0x38c2('0x16'))['to'](this,_0x38c2('0x17'),this,_0x38c2('0x1'),(_0xe0d158,_0x2604a0)=>_0xe0d158&&_0x2604a0>0x0),this[_0x38c2('0x1c')](_0x38c2('0xe'))['to'](this,_0x38c2('0x17'),this,_0x38c2('0xf'),this,'numberOfChanges',this,_0x38c2('0x0'),(_0x26cc85,_0x282b3c,_0x419db9,_0x59c6f4)=>{if(!_0x26cc85)return _0x318711(_0x5b212c,'Loading...');if(!_0x419db9)return _0x318711(_0x5b212c,'No\x20changes');const _0x336ca7=_0x318711(_0x5b212c,_0x38c2('0x10'),_0x419db9);return _0x59c6f4?_0x318711(_0x5b212c,_0x38c2('0x8'),[_0x282b3c+0x1,_0x419db9]):_0x336ca7;}),_0xb80467[_0x38c2('0x6')]({'label':_0x318711(_0x5b212c,_0x38c2('0x1b')),'tooltip':!0x0,'icon':_0x51c8dc}),_0x5c50b6['set']({'label':_0x318711(_0x5b212c,_0x38c2('0xd')),'tooltip':!0x0,'icon':_0x1a7366}),_0xb80467[_0x38c2('0x1c')](_0x38c2('0x18'))['to'](this,_0x38c2('0x4')),_0x5c50b6[_0x38c2('0x1c')](_0x38c2('0x18'))['to'](this,_0x38c2('0x9')),_0xb80467['on'](_0x38c2('0xc'),()=>this[_0x38c2('0x13')](_0x38c2('0xc'),_0x38c2('0x14'))),_0x5c50b6['on'](_0x38c2('0xc'),()=>this['fire'](_0x38c2('0xc'),_0x38c2('0x5'))),this['setTemplate']({'tag':_0x38c2('0x12'),'attributes':{'class':['ck',_0x38c2('0xa'),_0x38c2('0x2')]},'children':[{'tag':_0x38c2('0x19'),'attributes':{'class':[_0x38c2('0x3')]},'children':[{'tag':_0x38c2('0x19'),'attributes':{'class':[_0x38c2('0x7'),_0x4b09a9['if'](_0x38c2('0x16'),'ck-hidden',_0x558e0f=>!_0x558e0f)]},'children':[{'text':_0x4b09a9['to'](_0x38c2('0x0'),_0x475449=>_0x475449?_0x318711(_0x5b212c,_0x38c2('0xb'))+':\x20':_0x318711(_0x5b212c,_0x38c2('0x1a'))+':\x20')}]},{'text':_0x4b09a9['to'](_0x38c2('0xe'))}]},new _0x924a88(),{'tag':_0x38c2('0x12'),'attributes':{'class':[_0x38c2('0x11')]},'children':[_0xb80467,_0x5c50b6]}]});}}
|
|
@@ -1,26 +1,26 @@
|
|
|
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/ui/revisionviewer/revisionviewerloadingoverlay
|
|
7
|
-
*/
|
|
8
|
-
import { Plugin } from 'ckeditor5/src/core';
|
|
9
|
-
import '../../../theme/revisionviewerloadingoverlay.css';
|
|
10
|
-
/**
|
|
11
|
-
* TODO
|
|
12
|
-
*/
|
|
13
|
-
export default class RevisionViewerLoadingOverlay extends Plugin {
|
|
14
|
-
/**
|
|
15
|
-
* @inheritDoc
|
|
16
|
-
*/
|
|
17
|
-
static get pluginName(): "RevisionViewerLoadingOverlay";
|
|
18
|
-
/**
|
|
19
|
-
* TODO
|
|
20
|
-
*/
|
|
21
|
-
show(): void;
|
|
22
|
-
/**
|
|
23
|
-
* TODO
|
|
24
|
-
*/
|
|
25
|
-
hide(): void;
|
|
26
|
-
}
|
|
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/ui/revisionviewer/revisionviewerloadingoverlay
|
|
7
|
+
*/
|
|
8
|
+
import { Plugin } from 'ckeditor5/src/core';
|
|
9
|
+
import '../../../theme/revisionviewerloadingoverlay.css';
|
|
10
|
+
/**
|
|
11
|
+
* TODO
|
|
12
|
+
*/
|
|
13
|
+
export default class RevisionViewerLoadingOverlay extends Plugin {
|
|
14
|
+
/**
|
|
15
|
+
* @inheritDoc
|
|
16
|
+
*/
|
|
17
|
+
static get pluginName(): "RevisionViewerLoadingOverlay";
|
|
18
|
+
/**
|
|
19
|
+
* TODO
|
|
20
|
+
*/
|
|
21
|
+
show(): void;
|
|
22
|
+
/**
|
|
23
|
+
* TODO
|
|
24
|
+
*/
|
|
25
|
+
hide(): void;
|
|
26
|
+
}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x59d5=['roots','editor','hide','ck-editor__editable__loading-overlay','removeClass','view','addClass','change','pluginName','editing','document','RevisionViewerLoadingOverlay','show'];(function(_0x4abaee,_0x59d522){const _0x18f150=function(_0x486ef6){while(--_0x486ef6){_0x4abaee['push'](_0x4abaee['shift']());}};_0x18f150(++_0x59d522);}(_0x59d5,0x19e));const _0x18f1=function(_0x4abaee,_0x59d522){_0x4abaee=_0x4abaee-0x0;let _0x18f150=_0x59d5[_0x4abaee];return _0x18f150;};import{Plugin as _0x22b556}from'ckeditor5/src/core';const oe=_0x18f1('0x5');import'../../../theme/revisionviewerloadingoverlay.css';export default class te extends _0x22b556{static get[_0x18f1('0xa')](){return _0x18f1('0x0');}[_0x18f1('0x1')](){const _0x44425d=this[_0x18f1('0x3')][_0x18f1('0xb')][_0x18f1('0x7')];_0x44425d[_0x18f1('0x9')](_0xa88f18=>{for(const _0x5e96e2 of _0x44425d['document'][_0x18f1('0x2')])_0xa88f18[_0x18f1('0x8')](oe,_0x5e96e2);});}[_0x18f1('0x4')](){const _0x1a838f=this[_0x18f1('0x3')][_0x18f1('0xb')]['view'];_0x1a838f[_0x18f1('0x9')](_0x536d4b=>{for(const _0x401cc8 of _0x1a838f[_0x18f1('0xc')][_0x18f1('0x2')])_0x536d4b[_0x18f1('0x6')](oe,_0x401cc8);});}}
|
|
@@ -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/ui/revisionviewer/revisionviewerui
|
|
7
|
-
*/
|
|
8
|
-
import { Plugin } from 'ckeditor5/src/core';
|
|
9
|
-
import RevisionViewer from './../../revisionviewer';
|
|
10
|
-
import RevisionViewerLoadingOverlay from './revisionviewerloadingoverlay';
|
|
11
|
-
import '../../../theme/revisionviewer.css';
|
|
12
|
-
/**
|
|
13
|
-
* TODO
|
|
14
|
-
*/
|
|
15
|
-
export default class RevisionViewerUI extends Plugin {
|
|
16
|
-
/**
|
|
17
|
-
* @inheritDoc
|
|
18
|
-
*/
|
|
19
|
-
static get pluginName(): "RevisionViewerUI";
|
|
20
|
-
/**
|
|
21
|
-
* @inheritDoc
|
|
22
|
-
*/
|
|
23
|
-
static get requires(): readonly [typeof RevisionViewer, typeof RevisionViewerLoadingOverlay];
|
|
24
|
-
/**
|
|
25
|
-
* @inheritDoc
|
|
26
|
-
*/
|
|
27
|
-
init(): 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/ui/revisionviewer/revisionviewerui
|
|
7
|
+
*/
|
|
8
|
+
import { Plugin } from 'ckeditor5/src/core';
|
|
9
|
+
import RevisionViewer from './../../revisionviewer';
|
|
10
|
+
import RevisionViewerLoadingOverlay from './revisionviewerloadingoverlay';
|
|
11
|
+
import '../../../theme/revisionviewer.css';
|
|
12
|
+
/**
|
|
13
|
+
* TODO
|
|
14
|
+
*/
|
|
15
|
+
export default class RevisionViewerUI extends Plugin {
|
|
16
|
+
/**
|
|
17
|
+
* @inheritDoc
|
|
18
|
+
*/
|
|
19
|
+
static get pluginName(): "RevisionViewerUI";
|
|
20
|
+
/**
|
|
21
|
+
* @inheritDoc
|
|
22
|
+
*/
|
|
23
|
+
static get requires(): readonly [typeof RevisionViewer, typeof RevisionViewerLoadingOverlay];
|
|
24
|
+
/**
|
|
25
|
+
* @inheritDoc
|
|
26
|
+
*/
|
|
27
|
+
init(): void;
|
|
28
|
+
}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1f07=['plugins','componentFactory','editor','showNextChange','ck-revision-history-ui__back-to-editing','pluginName','bind','get','RevisionViewerUI','isBackwardNavigationEnabled','hide','forward','closeRevisionViewerCallback','Restore\x20this\x20revision','commands','exitToEditing','restoreRevision','listenTo','set','requires','show','isEnabled','changesNavigation','change:isReady','config','currentChangeNumber','revisionHistory','numberOfChanges','isNavigationMode','add','init','showPreviousChange','Back\x20to\x20editing','execute','isReady'];(function(_0x36cf6d,_0x1f07ce){const _0xd76e41=function(_0x12379d){while(--_0x12379d){_0x36cf6d['push'](_0x36cf6d['shift']());}};_0xd76e41(++_0x1f07ce);}(_0x1f07,0x14a));const _0xd76e=function(_0x36cf6d,_0x1f07ce){_0x36cf6d=_0x36cf6d-0x0;let _0xd76e41=_0x1f07[_0x36cf6d];return _0xd76e41;};import{Plugin as _0x23e4b3}from'ckeditor5/src/core';import{ButtonView as _0x2136d2}from'ckeditor5/src/ui';import _0x3e80f9 from'./changesnavigationview';import _0x167f27 from'./../../revisionviewer';import _0x5ae123 from'./revisionviewerloadingoverlay';import{getTranslation as _0x5a5f6a}from'../../utils/common-translations';import _0x1fed17 from'@ckeditor/ckeditor5-undo/theme/icons/undo.svg';import'../../../theme/revisionviewer.css';export default class R extends _0x23e4b3{static get[_0xd76e('0x19')](){return _0xd76e('0x1c');}static get[_0xd76e('0x4')](){return[_0x167f27,_0x5ae123];}[_0xd76e('0xf')](){const _0xae3b52=this[_0xd76e('0x16')],_0x362b98=_0xae3b52['plugins'][_0xd76e('0x1b')](_0x167f27),_0xbbaf11=_0xae3b52[_0xd76e('0x14')]['get'](_0x5ae123);_0xae3b52['ui'][_0xd76e('0x15')]['add'](_0xd76e('0x0'),_0x31fcb9=>{const _0x537ad8=new _0x2136d2(_0x31fcb9);return _0x537ad8[_0xd76e('0x3')]({'label':_0x5a5f6a(_0x31fcb9,_0xd76e('0x11')),'icon':_0x1fed17,'withText':!0x0,'tooltip':!0x0,'class':_0xd76e('0x18')}),this[_0xd76e('0x2')](_0x537ad8,_0xd76e('0x12'),()=>{_0xae3b52[_0xd76e('0x9')]['get'](_0xd76e('0xb'))[_0xd76e('0x20')]();}),_0x537ad8;}),_0xae3b52['ui'][_0xd76e('0x15')]['add']('restoreRevision',_0x574429=>{const _0x2a33db=new _0x2136d2(_0x574429);return _0x2a33db[_0xd76e('0x3')]({'label':_0x5a5f6a(_0x574429,_0xd76e('0x21')),'withText':!0x0,'tooltip':!0x0}),_0x2a33db[_0xd76e('0x1a')](_0xd76e('0x6'))['to'](_0xae3b52[_0xd76e('0x22')][_0xd76e('0x1b')](_0xd76e('0x1'))),this[_0xd76e('0x2')](_0x2a33db,'execute',()=>_0xae3b52[_0xd76e('0x12')]('restoreRevision')),_0x2a33db;}),_0xae3b52['ui'][_0xd76e('0x15')][_0xd76e('0xe')](_0xd76e('0x7'),_0x7b3eef=>{const _0x32172b=new _0x3e80f9(_0x7b3eef),_0x112738=_0xae3b52[_0xd76e('0x22')]['get'](_0xd76e('0x10')),_0x555dc1=_0xae3b52['commands'][_0xd76e('0x1b')](_0xd76e('0x17'));return _0x32172b['bind'](_0xd76e('0x1d'))['to'](_0x112738,'isEnabled'),_0x32172b[_0xd76e('0x1a')]('isForwardNavigationEnabled')['to'](_0x555dc1,_0xd76e('0x6')),_0x32172b[_0xd76e('0x1a')](_0xd76e('0x13'),_0xd76e('0xa'),_0xd76e('0xc'),_0xd76e('0xd'))['to'](_0x362b98),this[_0xd76e('0x2')](_0x32172b,_0xd76e('0x12'),(_0x2cda65,_0x12e02e)=>{_0xae3b52[_0xd76e('0x12')](_0xd76e('0x1f')===_0x12e02e?_0xd76e('0x17'):_0xd76e('0x10'));}),_0x32172b;}),_0xbbaf11[_0xd76e('0x5')](),_0x362b98['on'](_0xd76e('0x8'),(_0x3447f7,_0x588049,_0x5d1fd6)=>{_0x5d1fd6?_0xbbaf11[_0xd76e('0x1e')]():_0xbbaf11[_0xd76e('0x5')]();});}}
|
|
@@ -1,11 +1,11 @@
|
|
|
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/utils/common-translations
|
|
7
|
-
*/
|
|
8
|
-
import { type Locale } from 'ckeditor5/src/utils';
|
|
9
|
-
export declare function getTranslation(locale: Locale, id: string, values?: TranslationValues): string;
|
|
10
|
-
type TranslationValues = number | string | ReadonlyArray<number | string>;
|
|
11
|
-
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/utils/common-translations
|
|
7
|
+
*/
|
|
8
|
+
import { type Locale } from 'ckeditor5/src/utils';
|
|
9
|
+
export declare function getTranslation(locale: Locale, id: string, values?: TranslationValues): string;
|
|
10
|
+
type TranslationValues = number | string | ReadonlyArray<number | string>;
|
|
11
|
+
export {};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export function getTranslation(
|
|
23
|
+
export function getTranslation(_0x3281f8,_0x39f0ad,_0x46398d){const t=_0x3281f8['t'];switch(_0x39f0ad){case'Revision\x20history':return t('Revision\x20history');case'Open\x20revision\x20history':return t('Open\x20revision\x20history');case'Restored':return t('Restored');case'Empty\x20document':return t('Empty\x20document');case'Initial\x20revision':return t('Initial\x20revision');case'Suggested\x20by':return t('Suggested\x20by');case'Added\x20by':return t('Added\x20by');case'Removed\x20by':return t('Removed\x20by');case'Show\x20more\x20items':return t('Show\x20more\x20items');case'Compare\x20against\x20selected':return t('Compare\x20against\x20selected');case'Name\x20this\x20revision':return t('Name\x20this\x20revision');case'Restore\x20this\x20revision':return t('Restore\x20this\x20revision');case'Back\x20to\x20editing':return t('Back\x20to\x20editing');case'Loading...':return t('Loading...');case'No\x20changes':return t('No\x20changes');case'NUMBER_OF_CHANGES':return t({'string':'%0\x20change','plural':'%0\x20changes','id':'NUMBER_OF_CHANGES'},_0x46398d);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x46398d);case'Show\x20previous\x20change':return t('Show\x20previous\x20change');case'Show\x20next\x20change':return t('Show\x20next\x20change');case'EDIT_X_OF_Y_REVISIONS':return t({'string':'Edit','id':'EDIT_X_OF_Y_REVISIONS'});case'Total':return t('Total');case'Revision\x20creator':return t('Revision\x20creator');case'Revision\x20author':return t('Revision\x20author');case'Revision\x20name':return t('Revision\x20name');case'Save\x20current\x20revision':return t('Save\x20current\x20revision');case'Save':return t('Save');case'Cancel':return t('Cancel');case'Name\x20of\x20the\x20revision\x20(optional)':return t('Name\x20of\x20the\x20revision\x20(optional)');case'PENDING_ACTION_REVISION_HISTORY':return t({'string':'Unsaved\x20change\x20in\x20revision\x20history.','id':'PENDING_ACTION_REVISION_HISTORY'});default:return _0x39f0ad;}}
|