@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.
Files changed (66) hide show
  1. package/LICENSE.md +3 -3
  2. package/README.md +11 -11
  3. package/build/revision-history.js +1 -1
  4. package/package.json +6 -6
  5. package/src/augmentation.d.ts +29 -29
  6. package/src/changeitem.d.ts +58 -58
  7. package/src/changeitem.js +1 -1
  8. package/src/editor/revisionviewereditor.d.ts +27 -27
  9. package/src/editor/revisionviewereditor.js +1 -1
  10. package/src/editor/revisionviewereditorui.d.ts +28 -28
  11. package/src/editor/revisionviewereditorui.js +1 -1
  12. package/src/editor/revisionviewereditoruiview.d.ts +43 -43
  13. package/src/editor/revisionviewereditoruiview.js +1 -1
  14. package/src/index.d.ts +15 -15
  15. package/src/revision.d.ts +153 -153
  16. package/src/revision.js +1 -1
  17. package/src/revisiondiff.d.ts +24 -24
  18. package/src/revisiondiff.js +1 -1
  19. package/src/revisionhistory.d.ts +99 -99
  20. package/src/revisionhistory.js +1 -1
  21. package/src/revisionhistoryadapter.d.ts +64 -64
  22. package/src/revisionhistoryconfig.d.ts +60 -60
  23. package/src/revisionsrepository.d.ts +52 -52
  24. package/src/revisionsrepository.js +1 -1
  25. package/src/revisiontracker.d.ts +81 -81
  26. package/src/revisiontracker.js +1 -1
  27. package/src/revisionviewer.d.ts +25 -25
  28. package/src/revisionviewer.js +1 -1
  29. package/src/ui/revision/createrevisionactionsdropdown.d.ts +10 -10
  30. package/src/ui/revision/createrevisionactionsdropdown.js +1 -1
  31. package/src/ui/revision/revisionauthorview.d.ts +5 -5
  32. package/src/ui/revision/revisionauthorview.js +1 -1
  33. package/src/ui/revision/revisionnameview.d.ts +5 -5
  34. package/src/ui/revision/revisionnameview.js +1 -1
  35. package/src/ui/revision/revisionview.d.ts +95 -95
  36. package/src/ui/revision/revisionview.js +1 -1
  37. package/src/ui/revision/subrevisioncollapserview.d.ts +21 -21
  38. package/src/ui/revision/subrevisioncollapserview.js +1 -1
  39. package/src/ui/revision/subrevisionview.d.ts +34 -34
  40. package/src/ui/revision/subrevisionview.js +1 -1
  41. package/src/ui/revision/utils.d.ts +5 -5
  42. package/src/ui/revision/utils.js +1 -1
  43. package/src/ui/revisionhistory/revisionhistorysaverevisionformview.d.ts +81 -81
  44. package/src/ui/revisionhistory/revisionhistorysaverevisionformview.js +1 -1
  45. package/src/ui/revisionhistory/revisionhistoryui.d.ts +26 -26
  46. package/src/ui/revisionhistory/revisionhistoryui.js +1 -1
  47. package/src/ui/revisionssidebar/revisionssidebar.d.ts +44 -44
  48. package/src/ui/revisionssidebar/revisionssidebar.js +1 -1
  49. package/src/ui/revisionssidebar/revisionssidebarheaderview.d.ts +5 -5
  50. package/src/ui/revisionssidebar/revisionssidebarheaderview.js +1 -1
  51. package/src/ui/revisionssidebar/revisionssidebartimeperiodview.d.ts +29 -29
  52. package/src/ui/revisionssidebar/revisionssidebartimeperiodview.js +1 -1
  53. package/src/ui/revisionssidebar/revisionssidebarview.d.ts +44 -44
  54. package/src/ui/revisionssidebar/revisionssidebarview.js +1 -1
  55. package/src/ui/revisionssidebar/utils.d.ts +9 -9
  56. package/src/ui/revisionssidebar/utils.js +1 -1
  57. package/src/ui/revisionviewer/changedetailsview.d.ts +22 -22
  58. package/src/ui/revisionviewer/changedetailsview.js +1 -1
  59. package/src/ui/revisionviewer/changesnavigationview.d.ts +40 -40
  60. package/src/ui/revisionviewer/changesnavigationview.js +1 -1
  61. package/src/ui/revisionviewer/revisionviewerloadingoverlay.d.ts +26 -26
  62. package/src/ui/revisionviewer/revisionviewerloadingoverlay.js +1 -1
  63. package/src/ui/revisionviewer/revisionviewerui.d.ts +28 -28
  64. package/src/ui/revisionviewer/revisionviewerui.js +1 -1
  65. package/src/utils/common-translations.d.ts +11 -11
  66. 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 _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 _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 _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 _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 _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(_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(_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;}}