@ckeditor/ckeditor5-revision-history 38.1.0 → 38.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (64) hide show
  1. package/build/revision-history.js +1 -1
  2. package/package.json +6 -6
  3. package/src/augmentation.d.ts +25 -25
  4. package/src/changeitem.d.ts +57 -57
  5. package/src/changeitem.js +1 -1
  6. package/src/editor/revisionviewereditor.d.ts +27 -27
  7. package/src/editor/revisionviewereditor.js +1 -1
  8. package/src/editor/revisionviewereditorui.d.ts +28 -28
  9. package/src/editor/revisionviewereditorui.js +1 -1
  10. package/src/editor/revisionviewereditoruiview.d.ts +43 -43
  11. package/src/editor/revisionviewereditoruiview.js +1 -1
  12. package/src/index.d.ts +11 -11
  13. package/src/revision.d.ts +153 -153
  14. package/src/revision.js +1 -1
  15. package/src/revisiondiff.d.ts +20 -20
  16. package/src/revisiondiff.js +1 -1
  17. package/src/revisionhistory.d.ts +95 -95
  18. package/src/revisionhistory.js +1 -1
  19. package/src/revisionhistoryadapter.d.ts +60 -60
  20. package/src/revisionhistoryconfig.d.ts +60 -60
  21. package/src/revisionsrepository.d.ts +48 -48
  22. package/src/revisionsrepository.js +1 -1
  23. package/src/revisiontracker.d.ts +77 -77
  24. package/src/revisiontracker.js +1 -1
  25. package/src/revisionviewer.d.ts +21 -21
  26. package/src/revisionviewer.js +1 -1
  27. package/src/ui/revision/createrevisionactionsdropdown.d.ts +9 -9
  28. package/src/ui/revision/createrevisionactionsdropdown.js +1 -1
  29. package/src/ui/revision/revisionauthorview.d.ts +4 -4
  30. package/src/ui/revision/revisionauthorview.js +1 -1
  31. package/src/ui/revision/revisionnameview.d.ts +4 -4
  32. package/src/ui/revision/revisionnameview.js +1 -1
  33. package/src/ui/revision/revisionview.d.ts +91 -91
  34. package/src/ui/revision/revisionview.js +1 -1
  35. package/src/ui/revision/subrevisioncollapserview.d.ts +17 -17
  36. package/src/ui/revision/subrevisioncollapserview.js +1 -1
  37. package/src/ui/revision/subrevisionview.d.ts +30 -30
  38. package/src/ui/revision/subrevisionview.js +1 -1
  39. package/src/ui/revision/utils.d.ts +4 -4
  40. package/src/ui/revision/utils.js +1 -1
  41. package/src/ui/revisionhistory/revisionhistorysaverevisionformview.d.ts +80 -80
  42. package/src/ui/revisionhistory/revisionhistorysaverevisionformview.js +1 -1
  43. package/src/ui/revisionhistory/revisionhistoryui.d.ts +22 -22
  44. package/src/ui/revisionhistory/revisionhistoryui.js +1 -1
  45. package/src/ui/revisionssidebar/revisionssidebar.d.ts +40 -40
  46. package/src/ui/revisionssidebar/revisionssidebar.js +1 -1
  47. package/src/ui/revisionssidebar/revisionssidebarheaderview.d.ts +4 -4
  48. package/src/ui/revisionssidebar/revisionssidebarheaderview.js +1 -1
  49. package/src/ui/revisionssidebar/revisionssidebartimeperiodview.d.ts +25 -25
  50. package/src/ui/revisionssidebar/revisionssidebartimeperiodview.js +1 -1
  51. package/src/ui/revisionssidebar/revisionssidebarview.d.ts +40 -40
  52. package/src/ui/revisionssidebar/revisionssidebarview.js +1 -1
  53. package/src/ui/revisionssidebar/utils.d.ts +8 -8
  54. package/src/ui/revisionssidebar/utils.js +1 -1
  55. package/src/ui/revisionviewer/changedetailsview.d.ts +18 -18
  56. package/src/ui/revisionviewer/changedetailsview.js +1 -1
  57. package/src/ui/revisionviewer/changesnavigationview.d.ts +36 -36
  58. package/src/ui/revisionviewer/changesnavigationview.js +1 -1
  59. package/src/ui/revisionviewer/revisionviewerloadingoverlay.d.ts +22 -22
  60. package/src/ui/revisionviewer/revisionviewerloadingoverlay.js +1 -1
  61. package/src/ui/revisionviewer/revisionviewerui.d.ts +24 -24
  62. package/src/ui/revisionviewer/revisionviewerui.js +1 -1
  63. package/src/utils/common-translations.d.ts +7 -7
  64. package/src/utils/common-translations.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xd57a=['backward','No\x20changes','execute','fire','Show\x20next\x20change','set','EDIT_X_OF_Y_REVISIONS','numberOfChanges','_statusText','forward','isEnabled','ck-revision-history-ui__changes-navigation__label','ck-revision-history-ui__changes-navigation__navigation','ck-hidden','isBackwardNavigationEnabled','isNavigationMode','bind','isReady','X_OF_Y_CHANGES','div','Loading...','bindTemplate','currentChangeNumber','Show\x20previous\x20change','ck-revision-history-ui__changes-navigation','ck-revision-history-ui__changes-navigation__wrapper','setTemplate','ck-revision-history-ui','_isStatusLabelVisible','Total','isForwardNavigationEnabled'];(function(_0x1302b3,_0xd57a96){const _0x54c43b=function(_0x45d2ee){while(--_0x45d2ee){_0x1302b3['push'](_0x1302b3['shift']());}};_0x54c43b(++_0xd57a96);}(_0xd57a,0xb3));const _0x54c4=function(_0x1302b3,_0xd57a96){_0x1302b3=_0x1302b3-0x0;let _0x54c43b=_0xd57a[_0x1302b3];return _0x54c43b;};import{View as _0x27a5eb,ButtonView as _0x593187,ToolbarSeparatorView as _0x4d8492}from'ckeditor5/src/ui';import{getTranslation as _0xff10e}from'../../utils/common-translations';import _0x1585d from'../../../theme/icons/arrow-up.svg';import _0x1030b9 from'../../../theme/icons/arrow-down.svg';import'../../../theme/changesnavigation.css';export default class wi extends _0x27a5eb{constructor(_0x5e9d8b){super(_0x5e9d8b);const _0xc13f05=this[_0x54c4('0x1c')],_0x3bb4af=new _0x593187(_0x5e9d8b),_0xac8ea1=new _0x593187(_0x5e9d8b);this[_0x54c4('0xc')](_0x54c4('0x16'),!0x1),this['set'](_0x54c4('0x18'),!0x1),this[_0x54c4('0xc')]('currentChangeNumber',0x0),this[_0x54c4('0xc')](_0x54c4('0xe'),0x0),this['set'](_0x54c4('0x6'),!0x1),this[_0x54c4('0xc')](_0x54c4('0x15'),!0x1),this['bind'](_0x54c4('0x4'))['to'](this,_0x54c4('0x18'),this,_0x54c4('0xe'),(_0x4f35c9,_0x5498f2)=>_0x4f35c9&&_0x5498f2>0x0),this['bind'](_0x54c4('0xf'))['to'](this,_0x54c4('0x18'),this,_0x54c4('0x1d'),this,'numberOfChanges',this,_0x54c4('0x16'),(_0x3f76fc,_0x318d42,_0x392da9,_0x12f7d0)=>{if(!_0x3f76fc)return _0xff10e(_0x5e9d8b,_0x54c4('0x1b'));if(!_0x392da9)return _0xff10e(_0x5e9d8b,_0x54c4('0x8'));const _0x57a244=_0xff10e(_0x5e9d8b,'NUMBER_OF_CHANGES',_0x392da9);return _0x12f7d0?_0xff10e(_0x5e9d8b,_0x54c4('0x19'),[_0x318d42+0x1,_0x392da9]):_0x57a244;}),_0x3bb4af[_0x54c4('0xc')]({'label':_0xff10e(_0x5e9d8b,_0x54c4('0x1e')),'tooltip':!0x0,'icon':_0x1585d}),_0xac8ea1[_0x54c4('0xc')]({'label':_0xff10e(_0x5e9d8b,_0x54c4('0xb')),'tooltip':!0x0,'icon':_0x1030b9}),_0x3bb4af[_0x54c4('0x17')](_0x54c4('0x11'))['to'](this,_0x54c4('0x15')),_0xac8ea1[_0x54c4('0x17')](_0x54c4('0x11'))['to'](this,_0x54c4('0x6')),_0x3bb4af['on'](_0x54c4('0x9'),()=>this[_0x54c4('0xa')](_0x54c4('0x9'),_0x54c4('0x7'))),_0xac8ea1['on'](_0x54c4('0x9'),()=>this['fire'](_0x54c4('0x9'),_0x54c4('0x10'))),this[_0x54c4('0x2')]({'tag':_0x54c4('0x1a'),'attributes':{'class':['ck',_0x54c4('0x3'),_0x54c4('0x0')]},'children':[{'tag':'span','attributes':{'class':[_0x54c4('0x1')]},'children':[{'tag':'span','attributes':{'class':[_0x54c4('0x12'),_0xc13f05['if'](_0x54c4('0x4'),_0x54c4('0x14'),_0x5b297b=>!_0x5b297b)]},'children':[{'text':_0xc13f05['to'](_0x54c4('0x16'),_0x5b3aa5=>_0x5b3aa5?_0xff10e(_0x5e9d8b,_0x54c4('0xd'))+':\x20':_0xff10e(_0x5e9d8b,_0x54c4('0x5'))+':\x20')}]},{'text':_0xc13f05['to']('_statusText')}]},new _0x4d8492(),{'tag':'div','attributes':{'class':[_0x54c4('0x13')]},'children':[_0x3bb4af,_0xac8ea1]}]});}}
23
+ const _0x116b=['isForwardNavigationEnabled','ck-revision-history-ui__changes-navigation__wrapper','isReady','bind','fire','Loading...','execute','Show\x20next\x20change','NUMBER_OF_CHANGES','No\x20changes','set','forward','_statusText','numberOfChanges','div','_isStatusLabelVisible','currentChangeNumber','ck-revision-history-ui__changes-navigation','ck-revision-history-ui','span','Show\x20previous\x20change','isBackwardNavigationEnabled','isEnabled','ck-revision-history-ui__changes-navigation__navigation','setTemplate','ck-hidden','ck-revision-history-ui__changes-navigation__label','EDIT_X_OF_Y_REVISIONS','Total','isNavigationMode'];(function(_0x37fc7b,_0x116bb1){const _0x453e35=function(_0x375ae3){while(--_0x375ae3){_0x37fc7b['push'](_0x37fc7b['shift']());}};_0x453e35(++_0x116bb1);}(_0x116b,0x14f));const _0x453e=function(_0x37fc7b,_0x116bb1){_0x37fc7b=_0x37fc7b-0x0;let _0x453e35=_0x116b[_0x37fc7b];return _0x453e35;};import{View as _0x22a17a,ButtonView as _0x1e173b,ToolbarSeparatorView as _0x41712f}from'ckeditor5/src/ui';import{getTranslation as _0x3096b5}from'../../utils/common-translations';import _0xd0836a from'../../../theme/icons/arrow-up.svg';import _0x418f38 from'../../../theme/icons/arrow-down.svg';import'../../../theme/changesnavigation.css';export default class wi extends _0x22a17a{constructor(_0x5634a9){super(_0x5634a9);const _0x31b470=this['bindTemplate'],_0x217f46=new _0x1e173b(_0x5634a9),_0x4264b6=new _0x1e173b(_0x5634a9);this['set'](_0x453e('0x18'),!0x1),this['set'](_0x453e('0x1b'),!0x1),this[_0x453e('0x5')](_0x453e('0xb'),0x0),this['set'](_0x453e('0x8'),0x0),this[_0x453e('0x5')](_0x453e('0x19'),!0x1),this[_0x453e('0x5')](_0x453e('0x10'),!0x1),this['bind'](_0x453e('0xa'))['to'](this,'isReady',this,_0x453e('0x8'),(_0x382447,_0x2480fe)=>_0x382447&&_0x2480fe>0x0),this[_0x453e('0x1c')](_0x453e('0x7'))['to'](this,_0x453e('0x1b'),this,'currentChangeNumber',this,_0x453e('0x8'),this,_0x453e('0x18'),(_0x566445,_0x12a61c,_0x34c4b4,_0x43e732)=>{if(!_0x566445)return _0x3096b5(_0x5634a9,_0x453e('0x0'));if(!_0x34c4b4)return _0x3096b5(_0x5634a9,_0x453e('0x4'));const _0x2e5298=_0x3096b5(_0x5634a9,_0x453e('0x3'),_0x34c4b4);return _0x43e732?_0x3096b5(_0x5634a9,'X_OF_Y_CHANGES',[_0x12a61c+0x1,_0x34c4b4]):_0x2e5298;}),_0x217f46['set']({'label':_0x3096b5(_0x5634a9,_0x453e('0xf')),'tooltip':!0x0,'icon':_0xd0836a}),_0x4264b6['set']({'label':_0x3096b5(_0x5634a9,_0x453e('0x2')),'tooltip':!0x0,'icon':_0x418f38}),_0x217f46[_0x453e('0x1c')](_0x453e('0x11'))['to'](this,_0x453e('0x10')),_0x4264b6[_0x453e('0x1c')](_0x453e('0x11'))['to'](this,_0x453e('0x19')),_0x217f46['on'](_0x453e('0x1'),()=>this[_0x453e('0x1d')](_0x453e('0x1'),'backward')),_0x4264b6['on']('execute',()=>this[_0x453e('0x1d')](_0x453e('0x1'),_0x453e('0x6'))),this[_0x453e('0x13')]({'tag':_0x453e('0x9'),'attributes':{'class':['ck',_0x453e('0xd'),_0x453e('0xc')]},'children':[{'tag':_0x453e('0xe'),'attributes':{'class':[_0x453e('0x1a')]},'children':[{'tag':_0x453e('0xe'),'attributes':{'class':[_0x453e('0x15'),_0x31b470['if'](_0x453e('0xa'),_0x453e('0x14'),_0x1f34d4=>!_0x1f34d4)]},'children':[{'text':_0x31b470['to'](_0x453e('0x18'),_0x35570a=>_0x35570a?_0x3096b5(_0x5634a9,_0x453e('0x16'))+':\x20':_0x3096b5(_0x5634a9,_0x453e('0x17'))+':\x20')}]},{'text':_0x31b470['to'](_0x453e('0x7'))}]},new _0x41712f(),{'tag':'div','attributes':{'class':[_0x453e('0x12')]},'children':[_0x217f46,_0x4264b6]}]});}}
@@ -1,22 +1,22 @@
1
- /**
2
- * @module revision-history/ui/revisionviewer/revisionviewerloadingoverlay
3
- */
4
- import { Plugin } from 'ckeditor5/src/core';
5
- import '../../../theme/revisionviewerloadingoverlay.css';
6
- /**
7
- * TODO
8
- */
9
- export default class RevisionViewerLoadingOverlay extends Plugin {
10
- /**
11
- * @inheritDoc
12
- */
13
- static get pluginName(): "RevisionViewerLoadingOverlay";
14
- /**
15
- * TODO
16
- */
17
- show(): void;
18
- /**
19
- * TODO
20
- */
21
- hide(): void;
22
- }
1
+ /**
2
+ * @module revision-history/ui/revisionviewer/revisionviewerloadingoverlay
3
+ */
4
+ import { Plugin } from 'ckeditor5/src/core';
5
+ import '../../../theme/revisionviewerloadingoverlay.css';
6
+ /**
7
+ * TODO
8
+ */
9
+ export default class RevisionViewerLoadingOverlay extends Plugin {
10
+ /**
11
+ * @inheritDoc
12
+ */
13
+ static get pluginName(): "RevisionViewerLoadingOverlay";
14
+ /**
15
+ * TODO
16
+ */
17
+ show(): void;
18
+ /**
19
+ * TODO
20
+ */
21
+ hide(): void;
22
+ }
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2c2d=['show','document','roots','change','editor','pluginName','removeClass','editing','ck-editor__editable__loading-overlay'];(function(_0x11c074,_0x2c2d61){const _0x2f76e0=function(_0x34c8e7){while(--_0x34c8e7){_0x11c074['push'](_0x11c074['shift']());}};_0x2f76e0(++_0x2c2d61);}(_0x2c2d,0xae));const _0x2f76=function(_0x11c074,_0x2c2d61){_0x11c074=_0x11c074-0x0;let _0x2f76e0=_0x2c2d[_0x11c074];return _0x2f76e0;};import{Plugin as _0xc666d8}from'ckeditor5/src/core';const oe=_0x2f76('0x5');import'../../../theme/revisionviewerloadingoverlay.css';export default class te extends _0xc666d8{static get[_0x2f76('0x2')](){return'RevisionViewerLoadingOverlay';}[_0x2f76('0x6')](){const _0x5b2b7c=this[_0x2f76('0x1')][_0x2f76('0x4')]['view'];_0x5b2b7c['change'](_0x4def67=>{for(const _0x486b50 of _0x5b2b7c[_0x2f76('0x7')][_0x2f76('0x8')])_0x4def67['addClass'](oe,_0x486b50);});}['hide'](){const _0xd69a26=this[_0x2f76('0x1')][_0x2f76('0x4')]['view'];_0xd69a26[_0x2f76('0x0')](_0x290767=>{for(const _0x12ad42 of _0xd69a26[_0x2f76('0x7')]['roots'])_0x290767[_0x2f76('0x3')](oe,_0x12ad42);});}}
23
+ const _0x3c82=['ck-editor__editable__loading-overlay','removeClass','change','document','roots','editor','pluginName','hide','RevisionViewerLoadingOverlay','editing'];(function(_0x143b09,_0x3c8248){const _0x247330=function(_0x1ca374){while(--_0x1ca374){_0x143b09['push'](_0x143b09['shift']());}};_0x247330(++_0x3c8248);}(_0x3c82,0xb9));const _0x2473=function(_0x143b09,_0x3c8248){_0x143b09=_0x143b09-0x0;let _0x247330=_0x3c82[_0x143b09];return _0x247330;};import{Plugin as _0x1215ed}from'ckeditor5/src/core';const oe=_0x2473('0x5');import'../../../theme/revisionviewerloadingoverlay.css';export default class te extends _0x1215ed{static get[_0x2473('0x1')](){return _0x2473('0x3');}['show'](){const _0x382f87=this['editor'][_0x2473('0x4')]['view'];_0x382f87[_0x2473('0x7')](_0x2f285d=>{for(const _0x366383 of _0x382f87[_0x2473('0x8')][_0x2473('0x9')])_0x2f285d['addClass'](oe,_0x366383);});}[_0x2473('0x2')](){const _0x490d2e=this[_0x2473('0x0')][_0x2473('0x4')]['view'];_0x490d2e['change'](_0x3e3991=>{for(const _0x1efdde of _0x490d2e[_0x2473('0x8')][_0x2473('0x9')])_0x3e3991[_0x2473('0x6')](oe,_0x1efdde);});}}
@@ -1,24 +1,24 @@
1
- /**
2
- * @module revision-history/ui/revisionviewer/revisionviewerui
3
- */
4
- import { Plugin } from 'ckeditor5/src/core';
5
- import RevisionViewer from './../../revisionviewer';
6
- import RevisionViewerLoadingOverlay from './revisionviewerloadingoverlay';
7
- import '../../../theme/revisionviewer.css';
8
- /**
9
- * TODO
10
- */
11
- export default class RevisionViewerUI extends Plugin {
12
- /**
13
- * @inheritDoc
14
- */
15
- static get pluginName(): "RevisionViewerUI";
16
- /**
17
- * @inheritDoc
18
- */
19
- static get requires(): readonly [typeof RevisionViewer, typeof RevisionViewerLoadingOverlay];
20
- /**
21
- * @inheritDoc
22
- */
23
- init(): void;
24
- }
1
+ /**
2
+ * @module revision-history/ui/revisionviewer/revisionviewerui
3
+ */
4
+ import { Plugin } from 'ckeditor5/src/core';
5
+ import RevisionViewer from './../../revisionviewer';
6
+ import RevisionViewerLoadingOverlay from './revisionviewerloadingoverlay';
7
+ import '../../../theme/revisionviewer.css';
8
+ /**
9
+ * TODO
10
+ */
11
+ export default class RevisionViewerUI extends Plugin {
12
+ /**
13
+ * @inheritDoc
14
+ */
15
+ static get pluginName(): "RevisionViewerUI";
16
+ /**
17
+ * @inheritDoc
18
+ */
19
+ static get requires(): readonly [typeof RevisionViewer, typeof RevisionViewerLoadingOverlay];
20
+ /**
21
+ * @inheritDoc
22
+ */
23
+ init(): void;
24
+ }
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x338c=['isEnabled','closeRevisionViewerCallback','numberOfChanges','currentChangeNumber','execute','forward','listenTo','pluginName','config','restoreRevision','change:isReady','showPreviousChange','revisionHistory','plugins','isNavigationMode','show','add','ck-revision-history-ui__back-to-editing','bind','init','get','hide','componentFactory','requires','RevisionViewerUI','showNextChange','changesNavigation','Restore\x20this\x20revision','set','isForwardNavigationEnabled','isReady','exitToEditing','commands'];(function(_0x50f936,_0x338ce6){const _0x3938c3=function(_0x4b6aaa){while(--_0x4b6aaa){_0x50f936['push'](_0x50f936['shift']());}};_0x3938c3(++_0x338ce6);}(_0x338c,0x1b8));const _0x3938=function(_0x50f936,_0x338ce6){_0x50f936=_0x50f936-0x0;let _0x3938c3=_0x338c[_0x50f936];return _0x3938c3;};import{Plugin as _0x34aaef}from'ckeditor5/src/core';import{ButtonView as _0xcf447}from'ckeditor5/src/ui';import _0x4b7e73 from'./changesnavigationview';import _0x719f19 from'./../../revisionviewer';import _0x3560ed from'./revisionviewerloadingoverlay';import{getTranslation as _0x19c7a1}from'../../utils/common-translations';import _0x4ee20d from'@ckeditor/ckeditor5-undo/theme/icons/undo.svg';import'../../../theme/revisionviewer.css';export default class w extends _0x34aaef{static get[_0x3938('0x1d')](){return _0x3938('0xd');}static get[_0x3938('0xc')](){return[_0x719f19,_0x3560ed];}[_0x3938('0x8')](){const _0x2ce9a8=this['editor'],_0x3e8a45=_0x2ce9a8[_0x3938('0x2')][_0x3938('0x9')](_0x719f19),_0x1b0a1d=_0x2ce9a8['plugins']['get'](_0x3560ed);_0x2ce9a8['ui']['componentFactory'][_0x3938('0x5')](_0x3938('0x14'),_0x5e2e91=>{const _0x3ac564=new _0xcf447(_0x5e2e91);return _0x3ac564[_0x3938('0x11')]({'label':_0x19c7a1(_0x5e2e91,'Back\x20to\x20editing'),'icon':_0x4ee20d,'withText':!0x0,'tooltip':!0x0,'class':_0x3938('0x6')}),this[_0x3938('0x1c')](_0x3ac564,_0x3938('0x1a'),()=>{_0x2ce9a8[_0x3938('0x1e')][_0x3938('0x9')](_0x3938('0x1'))[_0x3938('0x17')]();}),_0x3ac564;}),_0x2ce9a8['ui'][_0x3938('0xb')][_0x3938('0x5')](_0x3938('0x1f'),_0x253804=>{const _0x18bbac=new _0xcf447(_0x253804);return _0x18bbac[_0x3938('0x11')]({'label':_0x19c7a1(_0x253804,_0x3938('0x10')),'withText':!0x0,'tooltip':!0x0}),_0x18bbac['bind']('isEnabled')['to'](_0x2ce9a8['commands'][_0x3938('0x9')]('restoreRevision')),this[_0x3938('0x1c')](_0x18bbac,_0x3938('0x1a'),()=>_0x2ce9a8[_0x3938('0x1a')]('restoreRevision')),_0x18bbac;}),_0x2ce9a8['ui'][_0x3938('0xb')][_0x3938('0x5')](_0x3938('0xf'),_0x593b30=>{const _0x467018=new _0x4b7e73(_0x593b30),_0x36f96e=_0x2ce9a8[_0x3938('0x15')][_0x3938('0x9')](_0x3938('0x0')),_0x376689=_0x2ce9a8['commands'][_0x3938('0x9')](_0x3938('0xe'));return _0x467018[_0x3938('0x7')]('isBackwardNavigationEnabled')['to'](_0x36f96e,_0x3938('0x16')),_0x467018[_0x3938('0x7')](_0x3938('0x12'))['to'](_0x376689,'isEnabled'),_0x467018[_0x3938('0x7')](_0x3938('0x13'),_0x3938('0x19'),_0x3938('0x18'),_0x3938('0x3'))['to'](_0x3e8a45),this[_0x3938('0x1c')](_0x467018,'execute',(_0x3adafc,_0x5d703b)=>{_0x2ce9a8['execute'](_0x3938('0x1b')===_0x5d703b?_0x3938('0xe'):_0x3938('0x0'));}),_0x467018;}),_0x1b0a1d[_0x3938('0x4')](),_0x3e8a45['on'](_0x3938('0x20'),(_0x3a7f3a,_0x154898,_0x1f8c6d)=>{_0x1f8c6d?_0x1b0a1d[_0x3938('0xa')]():_0x1b0a1d[_0x3938('0x4')]();});}}
23
+ const _0xbe48=['restoreRevision','editor','showPreviousChange','forward','init','exitToEditing','Back\x20to\x20editing','add','requires','listenTo','change:isReady','changesNavigation','revisionHistory','currentChangeNumber','ck-revision-history-ui__back-to-editing','execute','commands','isEnabled','hide','set','componentFactory','RevisionViewerUI','get','closeRevisionViewerCallback','isBackwardNavigationEnabled','bind','plugins','pluginName'];(function(_0x291b5c,_0xbe48b5){const _0x36c1ee=function(_0x43da8b){while(--_0x43da8b){_0x291b5c['push'](_0x291b5c['shift']());}};_0x36c1ee(++_0xbe48b5);}(_0xbe48,0x110));const _0x36c1=function(_0x291b5c,_0xbe48b5){_0x291b5c=_0x291b5c-0x0;let _0x36c1ee=_0xbe48[_0x291b5c];return _0x36c1ee;};import{Plugin as _0x2d94a6}from'ckeditor5/src/core';import{ButtonView as _0x493aa9}from'ckeditor5/src/ui';import _0x2fb57c from'./changesnavigationview';import _0x3bd12c from'./../../revisionviewer';import _0x45a775 from'./revisionviewerloadingoverlay';import{getTranslation as _0x4a8151}from'../../utils/common-translations';import _0x253a10 from'@ckeditor/ckeditor5-undo/theme/icons/undo.svg';import'../../../theme/revisionviewer.css';export default class w extends _0x2d94a6{static get[_0x36c1('0x7')](){return _0x36c1('0x1');}static get[_0x36c1('0x10')](){return[_0x3bd12c,_0x45a775];}[_0x36c1('0xc')](){const _0x40f698=this[_0x36c1('0x9')],_0x252ceb=_0x40f698['plugins'][_0x36c1('0x2')](_0x3bd12c),_0x326b49=_0x40f698[_0x36c1('0x6')][_0x36c1('0x2')](_0x45a775);_0x40f698['ui'][_0x36c1('0x0')][_0x36c1('0xf')](_0x36c1('0xd'),_0x391441=>{const _0x483553=new _0x493aa9(_0x391441);return _0x483553[_0x36c1('0x1b')]({'label':_0x4a8151(_0x391441,_0x36c1('0xe')),'icon':_0x253a10,'withText':!0x0,'tooltip':!0x0,'class':_0x36c1('0x16')}),this['listenTo'](_0x483553,_0x36c1('0x17'),()=>{_0x40f698['config'][_0x36c1('0x2')](_0x36c1('0x14'))[_0x36c1('0x3')]();}),_0x483553;}),_0x40f698['ui'][_0x36c1('0x0')]['add']('restoreRevision',_0x15a169=>{const _0x52ec69=new _0x493aa9(_0x15a169);return _0x52ec69[_0x36c1('0x1b')]({'label':_0x4a8151(_0x15a169,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x52ec69[_0x36c1('0x5')](_0x36c1('0x19'))['to'](_0x40f698['commands']['get'](_0x36c1('0x8'))),this[_0x36c1('0x11')](_0x52ec69,'execute',()=>_0x40f698[_0x36c1('0x17')](_0x36c1('0x8'))),_0x52ec69;}),_0x40f698['ui'][_0x36c1('0x0')][_0x36c1('0xf')](_0x36c1('0x13'),_0x2802cd=>{const _0x1db5ce=new _0x2fb57c(_0x2802cd),_0x1aade4=_0x40f698[_0x36c1('0x18')][_0x36c1('0x2')](_0x36c1('0xa')),_0x56e0d9=_0x40f698[_0x36c1('0x18')]['get']('showNextChange');return _0x1db5ce[_0x36c1('0x5')](_0x36c1('0x4'))['to'](_0x1aade4,_0x36c1('0x19')),_0x1db5ce[_0x36c1('0x5')]('isForwardNavigationEnabled')['to'](_0x56e0d9,'isEnabled'),_0x1db5ce[_0x36c1('0x5')]('isReady',_0x36c1('0x15'),'numberOfChanges','isNavigationMode')['to'](_0x252ceb),this[_0x36c1('0x11')](_0x1db5ce,'execute',(_0x31e832,_0x430b48)=>{_0x40f698[_0x36c1('0x17')](_0x36c1('0xb')===_0x430b48?'showNextChange':'showPreviousChange');}),_0x1db5ce;}),_0x326b49['show'](),_0x252ceb['on'](_0x36c1('0x12'),(_0xeab23e,_0x50d469,_0x1763d0)=>{_0x1763d0?_0x326b49[_0x36c1('0x1a')]():_0x326b49['show']();});}}
@@ -1,7 +1,7 @@
1
- /**
2
- * @module revision-history/utils/common-translations
3
- */
4
- import { type Locale } from 'ckeditor5/src/utils';
5
- export declare function getTranslation(locale: Locale, id: string, values?: TranslationValues): string;
6
- type TranslationValues = number | string | ReadonlyArray<number | string>;
7
- export {};
1
+ /**
2
+ * @module revision-history/utils/common-translations
3
+ */
4
+ import { type Locale } from 'ckeditor5/src/utils';
5
+ export declare function getTranslation(locale: Locale, id: string, values?: TranslationValues): string;
6
+ type TranslationValues = number | string | ReadonlyArray<number | string>;
7
+ export {};
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- export function getTranslation(_0x34c210,_0x4e6cb4,_0x14e6a6){const t=_0x34c210['t'];switch(_0x4e6cb4){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'},_0x14e6a6);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x14e6a6);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 _0x4e6cb4;}}
23
+ export function getTranslation(_0x627299,_0x2de42e,_0x338a6a){const t=_0x627299['t'];switch(_0x2de42e){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'},_0x338a6a);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x338a6a);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 _0x2de42e;}}