@ckeditor/ckeditor5-revision-history 38.0.1 → 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 +13 -11
  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 -10
  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 -93
  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 -43
  22. package/src/revisionsrepository.js +1 -1
  23. package/src/revisiontracker.d.ts +77 -72
  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 -21
  44. package/src/ui/revisionhistory/revisionhistoryui.js +1 -1
  45. package/src/ui/revisionssidebar/revisionssidebar.d.ts +40 -39
  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 -22
  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 _0x9eca=['numberOfChanges','NUMBER_OF_CHANGES','ck-hidden','currentChangeNumber','execute','set','ck-revision-history-ui','span','bind','isEnabled','ck-revision-history-ui__changes-navigation__wrapper','ck-revision-history-ui__changes-navigation__label','isForwardNavigationEnabled','_isStatusLabelVisible','_statusText','bindTemplate','Total','ck-revision-history-ui__changes-navigation','isReady','No\x20changes','X_OF_Y_CHANGES','EDIT_X_OF_Y_REVISIONS','forward','isBackwardNavigationEnabled','Loading...','div','Show\x20previous\x20change','isNavigationMode','fire','ck-revision-history-ui__changes-navigation__navigation'];(function(_0x2898ee,_0x9eca4b){const _0x54e464=function(_0x4ff870){while(--_0x4ff870){_0x2898ee['push'](_0x2898ee['shift']());}};_0x54e464(++_0x9eca4b);}(_0x9eca,0x10e));const _0x54e4=function(_0x2898ee,_0x9eca4b){_0x2898ee=_0x2898ee-0x0;let _0x54e464=_0x9eca[_0x2898ee];return _0x54e464;};import{View as _0x3a1350,ButtonView as _0x273738,ToolbarSeparatorView as _0xc4960b}from'ckeditor5/src/ui';import{getTranslation as _0xaf29f6}from'../../utils/common-translations';import _0x1f08db from'../../../theme/icons/arrow-up.svg';import _0x2d6724 from'../../../theme/icons/arrow-down.svg';import'../../../theme/changesnavigation.css';export default class wi extends _0x3a1350{constructor(_0x34eacf){super(_0x34eacf);const _0x2a8ad1=this[_0x54e4('0xf')],_0x10bbcb=new _0x273738(_0x34eacf),_0x4eea43=new _0x273738(_0x34eacf);this[_0x54e4('0x5')](_0x54e4('0x1b'),!0x1),this[_0x54e4('0x5')](_0x54e4('0x12'),!0x1),this[_0x54e4('0x5')](_0x54e4('0x3'),0x0),this[_0x54e4('0x5')](_0x54e4('0x0'),0x0),this[_0x54e4('0x5')](_0x54e4('0xc'),!0x1),this['set'](_0x54e4('0x17'),!0x1),this[_0x54e4('0x8')](_0x54e4('0xd'))['to'](this,_0x54e4('0x12'),this,_0x54e4('0x0'),(_0x2c1208,_0x367ead)=>_0x2c1208&&_0x367ead>0x0),this[_0x54e4('0x8')](_0x54e4('0xe'))['to'](this,_0x54e4('0x12'),this,_0x54e4('0x3'),this,'numberOfChanges',this,_0x54e4('0x1b'),(_0x4388f1,_0x1daca2,_0x35101d,_0x2dabe0)=>{if(!_0x4388f1)return _0xaf29f6(_0x34eacf,_0x54e4('0x18'));if(!_0x35101d)return _0xaf29f6(_0x34eacf,_0x54e4('0x13'));const _0x586e8b=_0xaf29f6(_0x34eacf,_0x54e4('0x1'),_0x35101d);return _0x2dabe0?_0xaf29f6(_0x34eacf,_0x54e4('0x14'),[_0x1daca2+0x1,_0x35101d]):_0x586e8b;}),_0x10bbcb[_0x54e4('0x5')]({'label':_0xaf29f6(_0x34eacf,_0x54e4('0x1a')),'tooltip':!0x0,'icon':_0x1f08db}),_0x4eea43[_0x54e4('0x5')]({'label':_0xaf29f6(_0x34eacf,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x2d6724}),_0x10bbcb[_0x54e4('0x8')](_0x54e4('0x9'))['to'](this,_0x54e4('0x17')),_0x4eea43['bind']('isEnabled')['to'](this,_0x54e4('0xc')),_0x10bbcb['on'](_0x54e4('0x4'),()=>this[_0x54e4('0x1c')](_0x54e4('0x4'),'backward')),_0x4eea43['on'](_0x54e4('0x4'),()=>this[_0x54e4('0x1c')]('execute',_0x54e4('0x16'))),this['setTemplate']({'tag':_0x54e4('0x19'),'attributes':{'class':['ck',_0x54e4('0x6'),_0x54e4('0x11')]},'children':[{'tag':'span','attributes':{'class':[_0x54e4('0xa')]},'children':[{'tag':_0x54e4('0x7'),'attributes':{'class':[_0x54e4('0xb'),_0x2a8ad1['if'](_0x54e4('0xd'),_0x54e4('0x2'),_0x4c1c53=>!_0x4c1c53)]},'children':[{'text':_0x2a8ad1['to'](_0x54e4('0x1b'),_0x3a3dca=>_0x3a3dca?_0xaf29f6(_0x34eacf,_0x54e4('0x15'))+':\x20':_0xaf29f6(_0x34eacf,_0x54e4('0x10'))+':\x20')}]},{'text':_0x2a8ad1['to']('_statusText')}]},new _0xc4960b(),{'tag':_0x54e4('0x19'),'attributes':{'class':[_0x54e4('0x1d')]},'children':[_0x10bbcb,_0x4eea43]}]});}}
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 _0x4011=['document','editor','removeClass','view','editing','roots','change','show','addClass','RevisionViewerLoadingOverlay','ck-editor__editable__loading-overlay','pluginName'];(function(_0x112163,_0x40119b){const _0x45dddd=function(_0x560d71){while(--_0x560d71){_0x112163['push'](_0x112163['shift']());}};_0x45dddd(++_0x40119b);}(_0x4011,0xab));const _0x45dd=function(_0x112163,_0x40119b){_0x112163=_0x112163-0x0;let _0x45dddd=_0x4011[_0x112163];return _0x45dddd;};import{Plugin as _0x661059}from'ckeditor5/src/core';const oe=_0x45dd('0x7');import'../../../theme/revisionviewerloadingoverlay.css';export default class te extends _0x661059{static get[_0x45dd('0x8')](){return _0x45dd('0x6');}[_0x45dd('0x4')](){const _0x447da4=this['editor'][_0x45dd('0x1')][_0x45dd('0x0')];_0x447da4[_0x45dd('0x3')](_0x4d7f64=>{for(const _0x5a8198 of _0x447da4[_0x45dd('0x9')][_0x45dd('0x2')])_0x4d7f64[_0x45dd('0x5')](oe,_0x5a8198);});}['hide'](){const _0x1132b3=this[_0x45dd('0xa')][_0x45dd('0x1')]['view'];_0x1132b3[_0x45dd('0x3')](_0x53434c=>{for(const _0x19ebcf of _0x1132b3['document'][_0x45dd('0x2')])_0x53434c[_0x45dd('0xb')](oe,_0x19ebcf);});}}
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,22 +1,24 @@
1
- /**
2
- * @module revision-history/ui/revisionviewer/revisionviewerui
3
- */
4
- import { Plugin, type PluginDependencies } from 'ckeditor5/src/core';
5
- import '../../../theme/revisionviewer.css';
6
- /**
7
- * TODO
8
- */
9
- export default class RevisionViewerUI extends Plugin {
10
- /**
11
- * @inheritDoc
12
- */
13
- static get pluginName(): 'RevisionViewerUI';
14
- /**
15
- * @inheritDoc
16
- */
17
- static get requires(): PluginDependencies;
18
- /**
19
- * @inheritDoc
20
- */
21
- init(): void;
22
- }
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 _0x35e2=['currentChangeNumber','isReady','listenTo','commands','isForwardNavigationEnabled','closeRevisionViewerCallback','revisionHistory','set','restoreRevision','numberOfChanges','componentFactory','plugins','hide','showNextChange','Restore\x20this\x20revision','get','execute','changesNavigation','requires','show','forward','isNavigationMode','ck-revision-history-ui__back-to-editing','isEnabled','showPreviousChange','bind','add','exitToEditing'];(function(_0xaf2fae,_0x35e20e){const _0x3d828f=function(_0x2cf24b){while(--_0x2cf24b){_0xaf2fae['push'](_0xaf2fae['shift']());}};_0x3d828f(++_0x35e20e);}(_0x35e2,0x92));const _0x3d82=function(_0xaf2fae,_0x35e20e){_0xaf2fae=_0xaf2fae-0x0;let _0x3d828f=_0x35e2[_0xaf2fae];return _0x3d828f;};import{Plugin as _0xcc1cf8}from'ckeditor5/src/core';import{ButtonView as _0xe37a73}from'ckeditor5/src/ui';import _0x5148f3 from'./changesnavigationview';import _0xc04be5 from'./../../revisionviewer';import _0x472a8f from'./revisionviewerloadingoverlay';import{getTranslation as _0x28de80}from'../../utils/common-translations';import _0x4207bc from'@ckeditor/ckeditor5-undo/theme/icons/undo.svg';import'../../../theme/revisionviewer.css';export default class y extends _0xcc1cf8{static get['pluginName'](){return'RevisionViewerUI';}static get[_0x3d82('0xc')](){return[_0xc04be5,_0x472a8f];}['init'](){const _0x38aa8e=this['editor'],_0x2a0933=_0x38aa8e[_0x3d82('0x5')][_0x3d82('0x9')](_0xc04be5),_0x2927ba=_0x38aa8e[_0x3d82('0x5')][_0x3d82('0x9')](_0x472a8f);_0x38aa8e['ui'][_0x3d82('0x4')][_0x3d82('0x14')](_0x3d82('0x15'),_0x3ada84=>{const _0x147ddb=new _0xe37a73(_0x3ada84);return _0x147ddb[_0x3d82('0x1')]({'label':_0x28de80(_0x3ada84,'Back\x20to\x20editing'),'icon':_0x4207bc,'withText':!0x0,'tooltip':!0x0,'class':_0x3d82('0x10')}),this['listenTo'](_0x147ddb,_0x3d82('0xa'),()=>{_0x38aa8e['config']['get'](_0x3d82('0x0'))[_0x3d82('0x1b')]();}),_0x147ddb;}),_0x38aa8e['ui'][_0x3d82('0x4')][_0x3d82('0x14')](_0x3d82('0x2'),_0xe832a2=>{const _0x10ec56=new _0xe37a73(_0xe832a2);return _0x10ec56['set']({'label':_0x28de80(_0xe832a2,_0x3d82('0x8')),'withText':!0x0,'tooltip':!0x0}),_0x10ec56[_0x3d82('0x13')](_0x3d82('0x11'))['to'](_0x38aa8e[_0x3d82('0x19')][_0x3d82('0x9')](_0x3d82('0x2'))),this[_0x3d82('0x18')](_0x10ec56,_0x3d82('0xa'),()=>_0x38aa8e[_0x3d82('0xa')]('restoreRevision')),_0x10ec56;}),_0x38aa8e['ui'][_0x3d82('0x4')][_0x3d82('0x14')](_0x3d82('0xb'),_0x3c3581=>{const _0x2a2539=new _0x5148f3(_0x3c3581),_0x15e9ac=_0x38aa8e['commands'][_0x3d82('0x9')](_0x3d82('0x12')),_0x2cfbc1=_0x38aa8e['commands'][_0x3d82('0x9')](_0x3d82('0x7'));return _0x2a2539[_0x3d82('0x13')]('isBackwardNavigationEnabled')['to'](_0x15e9ac,_0x3d82('0x11')),_0x2a2539[_0x3d82('0x13')](_0x3d82('0x1a'))['to'](_0x2cfbc1,_0x3d82('0x11')),_0x2a2539[_0x3d82('0x13')](_0x3d82('0x17'),_0x3d82('0x16'),_0x3d82('0x3'),_0x3d82('0xf'))['to'](_0x2a0933),this[_0x3d82('0x18')](_0x2a2539,_0x3d82('0xa'),(_0x34970e,_0x400fa4)=>{_0x38aa8e[_0x3d82('0xa')](_0x3d82('0xe')===_0x400fa4?_0x3d82('0x7'):'showPreviousChange');}),_0x2a2539;}),_0x2927ba[_0x3d82('0xd')](),_0x2a0933['on']('change:isReady',(_0x805f83,_0x58349e,_0x363559)=>{_0x363559?_0x2927ba[_0x3d82('0x6')]():_0x2927ba['show']();});}}
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(_0x5ea8cd,_0x414ae9,_0x206bba){const t=_0x5ea8cd['t'];switch(_0x414ae9){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'},_0x206bba);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x206bba);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 _0x414ae9;}}
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;}}