@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.
Files changed (65) hide show
  1. package/LICENSE.md +3 -3
  2. package/build/revision-history.js +1 -1
  3. package/package.json +6 -6
  4. package/src/augmentation.d.ts +29 -29
  5. package/src/changeitem.d.ts +58 -58
  6. package/src/changeitem.js +1 -1
  7. package/src/editor/revisionviewereditor.d.ts +27 -27
  8. package/src/editor/revisionviewereditor.js +1 -1
  9. package/src/editor/revisionviewereditorui.d.ts +28 -28
  10. package/src/editor/revisionviewereditorui.js +1 -1
  11. package/src/editor/revisionviewereditoruiview.d.ts +43 -43
  12. package/src/editor/revisionviewereditoruiview.js +1 -1
  13. package/src/index.d.ts +15 -15
  14. package/src/revision.d.ts +153 -153
  15. package/src/revision.js +1 -1
  16. package/src/revisiondiff.d.ts +24 -24
  17. package/src/revisiondiff.js +1 -1
  18. package/src/revisionhistory.d.ts +99 -99
  19. package/src/revisionhistory.js +1 -1
  20. package/src/revisionhistoryadapter.d.ts +64 -64
  21. package/src/revisionhistoryconfig.d.ts +60 -60
  22. package/src/revisionsrepository.d.ts +52 -52
  23. package/src/revisionsrepository.js +1 -1
  24. package/src/revisiontracker.d.ts +81 -81
  25. package/src/revisiontracker.js +1 -1
  26. package/src/revisionviewer.d.ts +25 -25
  27. package/src/revisionviewer.js +1 -1
  28. package/src/ui/revision/createrevisionactionsdropdown.d.ts +10 -10
  29. package/src/ui/revision/createrevisionactionsdropdown.js +1 -1
  30. package/src/ui/revision/revisionauthorview.d.ts +5 -5
  31. package/src/ui/revision/revisionauthorview.js +1 -1
  32. package/src/ui/revision/revisionnameview.d.ts +5 -5
  33. package/src/ui/revision/revisionnameview.js +1 -1
  34. package/src/ui/revision/revisionview.d.ts +95 -95
  35. package/src/ui/revision/revisionview.js +1 -1
  36. package/src/ui/revision/subrevisioncollapserview.d.ts +21 -21
  37. package/src/ui/revision/subrevisioncollapserview.js +1 -1
  38. package/src/ui/revision/subrevisionview.d.ts +34 -34
  39. package/src/ui/revision/subrevisionview.js +1 -1
  40. package/src/ui/revision/utils.d.ts +5 -5
  41. package/src/ui/revision/utils.js +1 -1
  42. package/src/ui/revisionhistory/revisionhistorysaverevisionformview.d.ts +81 -81
  43. package/src/ui/revisionhistory/revisionhistorysaverevisionformview.js +1 -1
  44. package/src/ui/revisionhistory/revisionhistoryui.d.ts +26 -26
  45. package/src/ui/revisionhistory/revisionhistoryui.js +1 -1
  46. package/src/ui/revisionssidebar/revisionssidebar.d.ts +44 -44
  47. package/src/ui/revisionssidebar/revisionssidebar.js +1 -1
  48. package/src/ui/revisionssidebar/revisionssidebarheaderview.d.ts +5 -5
  49. package/src/ui/revisionssidebar/revisionssidebarheaderview.js +1 -1
  50. package/src/ui/revisionssidebar/revisionssidebartimeperiodview.d.ts +29 -29
  51. package/src/ui/revisionssidebar/revisionssidebartimeperiodview.js +1 -1
  52. package/src/ui/revisionssidebar/revisionssidebarview.d.ts +44 -44
  53. package/src/ui/revisionssidebar/revisionssidebarview.js +1 -1
  54. package/src/ui/revisionssidebar/utils.d.ts +9 -9
  55. package/src/ui/revisionssidebar/utils.js +1 -1
  56. package/src/ui/revisionviewer/changedetailsview.d.ts +22 -22
  57. package/src/ui/revisionviewer/changedetailsview.js +1 -1
  58. package/src/ui/revisionviewer/changesnavigationview.d.ts +40 -40
  59. package/src/ui/revisionviewer/changesnavigationview.js +1 -1
  60. package/src/ui/revisionviewer/revisionviewerloadingoverlay.d.ts +26 -26
  61. package/src/ui/revisionviewer/revisionviewerloadingoverlay.js +1 -1
  62. package/src/ui/revisionviewer/revisionviewerui.d.ts +28 -28
  63. package/src/ui/revisionviewer/revisionviewerui.js +1 -1
  64. package/src/utils/common-translations.d.ts +11 -11
  65. 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 _0x4935=['ck-revision-history-ui__changes-navigation__wrapper','Total','currentChangeNumber','_isStatusLabelVisible','ck-hidden','ck-revision-history-ui__changes-navigation__label','bind','span','Show\x20next\x20change','isEnabled','ck-revision-history-ui','isNavigationMode','backward','isReady','Loading...','div','_statusText','numberOfChanges','NUMBER_OF_CHANGES','isForwardNavigationEnabled','forward','X_OF_Y_CHANGES','No\x20changes','EDIT_X_OF_Y_REVISIONS','set','isBackwardNavigationEnabled','execute','setTemplate'];(function(_0x39fbe8,_0x49359c){const _0x56f9e2=function(_0x259977){while(--_0x259977){_0x39fbe8['push'](_0x39fbe8['shift']());}};_0x56f9e2(++_0x49359c);}(_0x4935,0x157));const _0x56f9=function(_0x39fbe8,_0x49359c){_0x39fbe8=_0x39fbe8-0x0;let _0x56f9e2=_0x4935[_0x39fbe8];return _0x56f9e2;};import{View as _0x1ff8b3,ButtonView as _0x604076,ToolbarSeparatorView as _0x2f1b21}from'ckeditor5/src/ui';import{getTranslation as _0x35dad2}from'../../utils/common-translations';import _0x1f036c from'../../../theme/icons/arrow-up.svg';import _0xe992e8 from'../../../theme/icons/arrow-down.svg';import'../../../theme/changesnavigation.css';export default class ri extends _0x1ff8b3{constructor(_0x342b17){super(_0x342b17);const _0x1a5fa1=this['bindTemplate'],_0x12017e=new _0x604076(_0x342b17),_0x4f18b2=new _0x604076(_0x342b17);this[_0x56f9('0x11')]('isNavigationMode',!0x1),this['set'](_0x56f9('0x6'),!0x1),this[_0x56f9('0x11')](_0x56f9('0x17'),0x0),this[_0x56f9('0x11')](_0x56f9('0xa'),0x0),this['set'](_0x56f9('0xc'),!0x1),this['set'](_0x56f9('0x12'),!0x1),this['bind'](_0x56f9('0x18'))['to'](this,'isReady',this,'numberOfChanges',(_0x3fcfeb,_0x20cf16)=>_0x3fcfeb&&_0x20cf16>0x0),this['bind'](_0x56f9('0x9'))['to'](this,_0x56f9('0x6'),this,_0x56f9('0x17'),this,_0x56f9('0xa'),this,_0x56f9('0x4'),(_0x2f56f8,_0x15362c,_0x2de4e0,_0x2fcc2a)=>{if(!_0x2f56f8)return _0x35dad2(_0x342b17,_0x56f9('0x7'));if(!_0x2de4e0)return _0x35dad2(_0x342b17,_0x56f9('0xf'));const _0x37a444=_0x35dad2(_0x342b17,_0x56f9('0xb'),_0x2de4e0);return _0x2fcc2a?_0x35dad2(_0x342b17,_0x56f9('0xe'),[_0x15362c+0x1,_0x2de4e0]):_0x37a444;}),_0x12017e[_0x56f9('0x11')]({'label':_0x35dad2(_0x342b17,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0x1f036c}),_0x4f18b2[_0x56f9('0x11')]({'label':_0x35dad2(_0x342b17,_0x56f9('0x1')),'tooltip':!0x0,'icon':_0xe992e8}),_0x12017e[_0x56f9('0x1b')]('isEnabled')['to'](this,_0x56f9('0x12')),_0x4f18b2[_0x56f9('0x1b')](_0x56f9('0x2'))['to'](this,'isForwardNavigationEnabled'),_0x12017e['on'](_0x56f9('0x13'),()=>this['fire'](_0x56f9('0x13'),_0x56f9('0x5'))),_0x4f18b2['on'](_0x56f9('0x13'),()=>this['fire']('execute',_0x56f9('0xd'))),this[_0x56f9('0x14')]({'tag':_0x56f9('0x8'),'attributes':{'class':['ck',_0x56f9('0x3'),'ck-revision-history-ui__changes-navigation']},'children':[{'tag':_0x56f9('0x0'),'attributes':{'class':[_0x56f9('0x15')]},'children':[{'tag':_0x56f9('0x0'),'attributes':{'class':[_0x56f9('0x1a'),_0x1a5fa1['if']('_isStatusLabelVisible',_0x56f9('0x19'),_0x3973bd=>!_0x3973bd)]},'children':[{'text':_0x1a5fa1['to'](_0x56f9('0x4'),_0x39d699=>_0x39d699?_0x35dad2(_0x342b17,_0x56f9('0x10'))+':\x20':_0x35dad2(_0x342b17,_0x56f9('0x16'))+':\x20')}]},{'text':_0x1a5fa1['to']('_statusText')}]},new _0x2f1b21(),{'tag':_0x56f9('0x8'),'attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x12017e,_0x4f18b2]}]});}}
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 _0x515a=['show','ck-editor__editable__loading-overlay','editing','RevisionViewerLoadingOverlay','change','addClass','editor','roots','document'];(function(_0x6f1a82,_0x515a95){const _0x5a22a1=function(_0x5302fc){while(--_0x5302fc){_0x6f1a82['push'](_0x6f1a82['shift']());}};_0x5a22a1(++_0x515a95);}(_0x515a,0x81));const _0x5a22=function(_0x6f1a82,_0x515a95){_0x6f1a82=_0x6f1a82-0x0;let _0x5a22a1=_0x515a[_0x6f1a82];return _0x5a22a1;};import{Plugin as _0x57e542}from'ckeditor5/src/core';const ee=_0x5a22('0x7');import'../../../theme/revisionviewerloadingoverlay.css';export default class oe extends _0x57e542{static get['pluginName'](){return _0x5a22('0x0');}[_0x5a22('0x6')](){const _0x434c43=this[_0x5a22('0x3')][_0x5a22('0x8')]['view'];_0x434c43[_0x5a22('0x1')](_0x3adb82=>{for(const _0x22d089 of _0x434c43[_0x5a22('0x5')]['roots'])_0x3adb82[_0x5a22('0x2')](ee,_0x22d089);});}['hide'](){const _0xce19e0=this[_0x5a22('0x3')][_0x5a22('0x8')]['view'];_0xce19e0['change'](_0x4b6cd5=>{for(const _0x5b2641 of _0xce19e0[_0x5a22('0x5')][_0x5a22('0x4')])_0x4b6cd5['removeClass'](ee,_0x5b2641);});}}
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 _0x449d=['closeRevisionViewerCallback','componentFactory','init','pluginName','set','isForwardNavigationEnabled','isEnabled','hide','execute','get','commands','restoreRevision','editor','isBackwardNavigationEnabled','requires','add','showPreviousChange','showNextChange','currentChangeNumber','revisionHistory','listenTo','Back\x20to\x20editing','RevisionViewerUI','isNavigationMode','numberOfChanges','bind','changesNavigation','Restore\x20this\x20revision'];(function(_0xedcbe3,_0x449d9e){const _0x5e6429=function(_0x7aa564){while(--_0x7aa564){_0xedcbe3['push'](_0xedcbe3['shift']());}};_0x5e6429(++_0x449d9e);}(_0x449d,0xa2));const _0x5e64=function(_0xedcbe3,_0x449d9e){_0xedcbe3=_0xedcbe3-0x0;let _0x5e6429=_0x449d[_0xedcbe3];return _0x5e6429;};import{Plugin as _0x102761}from'ckeditor5/src/core';import{ButtonView as _0x1755df}from'ckeditor5/src/ui';import _0x292b8e from'./changesnavigationview';import _0x5c4d78 from'./../../revisionviewer';import _0x169df7 from'./revisionviewerloadingoverlay';import{getTranslation as _0x53d364}from'../../utils/common-translations';import _0x24995b from'@ckeditor/ckeditor5-undo/theme/icons/undo.svg';import'../../../theme/revisionviewer.css';export default class R extends _0x102761{static get[_0x5e64('0x9')](){return _0x5e64('0x0');}static get[_0x5e64('0x14')](){return[_0x5c4d78,_0x169df7];}[_0x5e64('0x8')](){const _0x4bced6=this[_0x5e64('0x12')],_0x946e5b=_0x4bced6['plugins']['get'](_0x5c4d78),_0x43f6da=_0x4bced6['plugins']['get'](_0x169df7);_0x4bced6['ui'][_0x5e64('0x7')][_0x5e64('0x15')]('exitToEditing',_0x1cb513=>{const _0x152fdb=new _0x1755df(_0x1cb513);return _0x152fdb['set']({'label':_0x53d364(_0x1cb513,_0x5e64('0x1b')),'icon':_0x24995b,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this[_0x5e64('0x1a')](_0x152fdb,_0x5e64('0xe'),()=>{_0x4bced6['config'][_0x5e64('0xf')](_0x5e64('0x19'))[_0x5e64('0x6')]();}),_0x152fdb;}),_0x4bced6['ui'][_0x5e64('0x7')][_0x5e64('0x15')]('restoreRevision',_0x8c8297=>{const _0x1ecb98=new _0x1755df(_0x8c8297);return _0x1ecb98[_0x5e64('0xa')]({'label':_0x53d364(_0x8c8297,_0x5e64('0x5')),'withText':!0x0,'tooltip':!0x0}),_0x1ecb98['bind'](_0x5e64('0xc'))['to'](_0x4bced6[_0x5e64('0x10')]['get'](_0x5e64('0x11'))),this[_0x5e64('0x1a')](_0x1ecb98,_0x5e64('0xe'),()=>_0x4bced6['execute'](_0x5e64('0x11'))),_0x1ecb98;}),_0x4bced6['ui']['componentFactory'][_0x5e64('0x15')](_0x5e64('0x4'),_0x2268fe=>{const _0x35202f=new _0x292b8e(_0x2268fe),_0x1ede3a=_0x4bced6[_0x5e64('0x10')][_0x5e64('0xf')](_0x5e64('0x16')),_0x295bd6=_0x4bced6[_0x5e64('0x10')][_0x5e64('0xf')](_0x5e64('0x17'));return _0x35202f[_0x5e64('0x3')](_0x5e64('0x13'))['to'](_0x1ede3a,_0x5e64('0xc')),_0x35202f['bind'](_0x5e64('0xb'))['to'](_0x295bd6,_0x5e64('0xc')),_0x35202f[_0x5e64('0x3')]('isReady',_0x5e64('0x18'),_0x5e64('0x2'),_0x5e64('0x1'))['to'](_0x946e5b),this[_0x5e64('0x1a')](_0x35202f,'execute',(_0x15e6a1,_0x329c45)=>{_0x4bced6[_0x5e64('0xe')]('forward'===_0x329c45?'showNextChange':_0x5e64('0x16'));}),_0x35202f;}),_0x43f6da['show'](),_0x946e5b['on']('change:isReady',(_0x5d0973,_0x19bd45,_0x125dcb)=>{_0x125dcb?_0x43f6da[_0x5e64('0xd')]():_0x43f6da['show']();});}}
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(_0x9d72bb,_0x5c7cc7,_0x49c6fb){const t=_0x9d72bb['t'];switch(_0x5c7cc7){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'},_0x49c6fb);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x49c6fb);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 _0x5c7cc7;}}
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;}}