@ckeditor/ckeditor5-revision-history 40.0.0 → 40.1.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/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 _0x4d99=['span','fire','execute','Total','isReady','ck-revision-history-ui__changes-navigation__label','numberOfChanges','EDIT_X_OF_Y_REVISIONS','isEnabled','set','isBackwardNavigationEnabled','div','_isStatusLabelVisible','ck-revision-history-ui__changes-navigation__wrapper','No\x20changes','bind','Show\x20next\x20change','currentChangeNumber','_statusText','isForwardNavigationEnabled','ck-revision-history-ui','NUMBER_OF_CHANGES','forward','ck-revision-history-ui__changes-navigation','Show\x20previous\x20change','X_OF_Y_CHANGES','isNavigationMode','ck-hidden'];(function(_0x2d7d1a,_0x4d99ce){const _0x463716=function(_0x455f15){while(--_0x455f15){_0x2d7d1a['push'](_0x2d7d1a['shift']());}};_0x463716(++_0x4d99ce);}(_0x4d99,0x123));const _0x4637=function(_0x2d7d1a,_0x4d99ce){_0x2d7d1a=_0x2d7d1a-0x0;let _0x463716=_0x4d99[_0x2d7d1a];return _0x463716;};import{View as _0x3af1d1,ButtonView as _0xb5bb96,ToolbarSeparatorView as _0x1e5d1c}from'ckeditor5/src/ui';import{getTranslation as _0x363248}from'../../utils/common-translations';import _0x430a93 from'../../../theme/icons/arrow-up.svg';import _0x58c9da from'../../../theme/icons/arrow-down.svg';import'../../../theme/changesnavigation.css';export default class pi extends _0x3af1d1{constructor(_0x55dced){super(_0x55dced);const _0x126274=this['bindTemplate'],_0x4e58c1=new _0xb5bb96(_0x55dced),_0x1da78b=new _0xb5bb96(_0x55dced);this['set'](_0x4637('0xf'),!0x1),this['set'](_0x4637('0x15'),!0x1),this[_0x4637('0x1a')](_0x4637('0x6'),0x0),this[_0x4637('0x1a')]('numberOfChanges',0x0),this[_0x4637('0x1a')](_0x4637('0x8'),!0x1),this[_0x4637('0x1a')](_0x4637('0x1b'),!0x1),this[_0x4637('0x4')]('_isStatusLabelVisible')['to'](this,_0x4637('0x15'),this,_0x4637('0x17'),(_0x21d978,_0x3ef349)=>_0x21d978&&_0x3ef349>0x0),this[_0x4637('0x4')](_0x4637('0x7'))['to'](this,'isReady',this,_0x4637('0x6'),this,_0x4637('0x17'),this,_0x4637('0xf'),(_0x239741,_0x58e4c6,_0x484b6a,_0x824739)=>{if(!_0x239741)return _0x363248(_0x55dced,'Loading...');if(!_0x484b6a)return _0x363248(_0x55dced,_0x4637('0x3'));const _0x5ac7fb=_0x363248(_0x55dced,_0x4637('0xa'),_0x484b6a);return _0x824739?_0x363248(_0x55dced,_0x4637('0xe'),[_0x58e4c6+0x1,_0x484b6a]):_0x5ac7fb;}),_0x4e58c1[_0x4637('0x1a')]({'label':_0x363248(_0x55dced,_0x4637('0xd')),'tooltip':!0x0,'icon':_0x430a93}),_0x1da78b[_0x4637('0x1a')]({'label':_0x363248(_0x55dced,_0x4637('0x5')),'tooltip':!0x0,'icon':_0x58c9da}),_0x4e58c1[_0x4637('0x4')](_0x4637('0x19'))['to'](this,_0x4637('0x1b')),_0x1da78b[_0x4637('0x4')](_0x4637('0x19'))['to'](this,_0x4637('0x8')),_0x4e58c1['on'](_0x4637('0x13'),()=>this[_0x4637('0x12')](_0x4637('0x13'),'backward')),_0x1da78b['on'](_0x4637('0x13'),()=>this[_0x4637('0x12')](_0x4637('0x13'),_0x4637('0xb'))),this['setTemplate']({'tag':_0x4637('0x0'),'attributes':{'class':['ck',_0x4637('0x9'),_0x4637('0xc')]},'children':[{'tag':_0x4637('0x11'),'attributes':{'class':[_0x4637('0x2')]},'children':[{'tag':'span','attributes':{'class':[_0x4637('0x16'),_0x126274['if'](_0x4637('0x1'),_0x4637('0x10'),_0x4c249f=>!_0x4c249f)]},'children':[{'text':_0x126274['to'](_0x4637('0xf'),_0x33a284=>_0x33a284?_0x363248(_0x55dced,_0x4637('0x18'))+':\x20':_0x363248(_0x55dced,_0x4637('0x14'))+':\x20')}]},{'text':_0x126274['to'](_0x4637('0x7'))}]},new _0x1e5d1c(),{'tag':_0x4637('0x0'),'attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x4e58c1,_0x1da78b]}]});}}
|
|
@@ -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 _0x403b=['view','document','editor','RevisionViewerLoadingOverlay','editing','roots','pluginName','removeClass','change','addClass'];(function(_0x45368c,_0x403b84){const _0x2fb829=function(_0x3f1398){while(--_0x3f1398){_0x45368c['push'](_0x45368c['shift']());}};_0x2fb829(++_0x403b84);}(_0x403b,0x187));const _0x2fb8=function(_0x45368c,_0x403b84){_0x45368c=_0x45368c-0x0;let _0x2fb829=_0x403b[_0x45368c];return _0x2fb829;};import{Plugin as _0x35ff92}from'ckeditor5/src/core';const oe='ck-editor__editable__loading-overlay';import'../../../theme/revisionviewerloadingoverlay.css';export default class te extends _0x35ff92{static get[_0x2fb8('0x5')](){return _0x2fb8('0x2');}['show'](){const _0x289799=this[_0x2fb8('0x1')][_0x2fb8('0x3')]['view'];_0x289799[_0x2fb8('0x7')](_0x4c4031=>{for(const _0x1a1c0e of _0x289799[_0x2fb8('0x0')][_0x2fb8('0x4')])_0x4c4031[_0x2fb8('0x8')](oe,_0x1a1c0e);});}['hide'](){const _0x92c694=this[_0x2fb8('0x1')][_0x2fb8('0x3')][_0x2fb8('0x9')];_0x92c694[_0x2fb8('0x7')](_0x2aad21=>{for(const _0x1f101a of _0x92c694[_0x2fb8('0x0')][_0x2fb8('0x4')])_0x2aad21[_0x2fb8('0x6')](oe,_0x1f101a);});}}
|
|
@@ -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 _0x1734=['showNextChange','showPreviousChange','closeRevisionViewerCallback','currentChangeNumber','isEnabled','listenTo','numberOfChanges','add','requires','componentFactory','exitToEditing','commands','isForwardNavigationEnabled','isNavigationMode','plugins','restoreRevision','RevisionViewerUI','set','isBackwardNavigationEnabled','Restore\x20this\x20revision','change:isReady','Back\x20to\x20editing','execute','init','editor','config','show','get','bind'];(function(_0x23a9fa,_0x173431){const _0x4ba41c=function(_0x58ce15){while(--_0x58ce15){_0x23a9fa['push'](_0x23a9fa['shift']());}};_0x4ba41c(++_0x173431);}(_0x1734,0xf9));const _0x4ba4=function(_0x23a9fa,_0x173431){_0x23a9fa=_0x23a9fa-0x0;let _0x4ba41c=_0x1734[_0x23a9fa];return _0x4ba41c;};import{Plugin as _0x17d915}from'ckeditor5/src/core';import{ButtonView as _0x589c14}from'ckeditor5/src/ui';import _0x257626 from'./changesnavigationview';import _0xb7fade from'./../../revisionviewer';import _0x288f63 from'./revisionviewerloadingoverlay';import{getTranslation as _0x24ae33}from'../../utils/common-translations';import _0x176377 from'@ckeditor/ckeditor5-undo/theme/icons/undo.svg';import'../../../theme/revisionviewer.css';export default class R extends _0x17d915{static get['pluginName'](){return _0x4ba4('0x1c');}static get[_0x4ba4('0x14')](){return[_0xb7fade,_0x288f63];}[_0x4ba4('0x6')](){const _0x4ab33f=this[_0x4ba4('0x7')],_0x2b4df1=_0x4ab33f[_0x4ba4('0x1a')]['get'](_0xb7fade),_0x5c9512=_0x4ab33f[_0x4ba4('0x1a')][_0x4ba4('0xa')](_0x288f63);_0x4ab33f['ui'][_0x4ba4('0x15')]['add'](_0x4ba4('0x16'),_0x214b99=>{const _0x2b6b35=new _0x589c14(_0x214b99);return _0x2b6b35['set']({'label':_0x24ae33(_0x214b99,_0x4ba4('0x4')),'icon':_0x176377,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this[_0x4ba4('0x11')](_0x2b6b35,_0x4ba4('0x5'),()=>{_0x4ab33f[_0x4ba4('0x8')]['get']('revisionHistory')[_0x4ba4('0xe')]();}),_0x2b6b35;}),_0x4ab33f['ui'][_0x4ba4('0x15')][_0x4ba4('0x13')](_0x4ba4('0x1b'),_0x330292=>{const _0x561f21=new _0x589c14(_0x330292);return _0x561f21[_0x4ba4('0x0')]({'label':_0x24ae33(_0x330292,_0x4ba4('0x2')),'withText':!0x0,'tooltip':!0x0}),_0x561f21['bind'](_0x4ba4('0x10'))['to'](_0x4ab33f[_0x4ba4('0x17')][_0x4ba4('0xa')](_0x4ba4('0x1b'))),this[_0x4ba4('0x11')](_0x561f21,'execute',()=>_0x4ab33f['execute'](_0x4ba4('0x1b'))),_0x561f21;}),_0x4ab33f['ui'][_0x4ba4('0x15')]['add']('changesNavigation',_0x388375=>{const _0x7cb6b9=new _0x257626(_0x388375),_0xfece8=_0x4ab33f['commands']['get'](_0x4ba4('0xd')),_0x598a66=_0x4ab33f[_0x4ba4('0x17')][_0x4ba4('0xa')](_0x4ba4('0xc'));return _0x7cb6b9[_0x4ba4('0xb')](_0x4ba4('0x1'))['to'](_0xfece8,'isEnabled'),_0x7cb6b9[_0x4ba4('0xb')](_0x4ba4('0x18'))['to'](_0x598a66,_0x4ba4('0x10')),_0x7cb6b9[_0x4ba4('0xb')]('isReady',_0x4ba4('0xf'),_0x4ba4('0x12'),_0x4ba4('0x19'))['to'](_0x2b4df1),this[_0x4ba4('0x11')](_0x7cb6b9,'execute',(_0x2cfcbf,_0x81b53a)=>{_0x4ab33f['execute']('forward'===_0x81b53a?_0x4ba4('0xc'):_0x4ba4('0xd'));}),_0x7cb6b9;}),_0x5c9512[_0x4ba4('0x9')](),_0x2b4df1['on'](_0x4ba4('0x3'),(_0xe4cb40,_0x427b07,_0x4ef8d5)=>{_0x4ef8d5?_0x5c9512['hide']():_0x5c9512[_0x4ba4('0x9')]();});}}
|
|
@@ -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(_0x2dd64a,_0x5e7ccb,_0x55ea40){const t=_0x2dd64a['t'];switch(_0x5e7ccb){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'},_0x55ea40);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x55ea40);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 _0x5e7ccb;}}
|