@ckeditor/ckeditor5-revision-history 36.0.0 → 37.0.0-rc.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 (68) hide show
  1. package/build/revision-history.js +1 -1
  2. package/package.json +23 -8
  3. package/src/augmentation.d.ts +25 -0
  4. package/src/augmentation.js +23 -0
  5. package/src/changeitem.d.ts +52 -0
  6. package/src/changeitem.js +1 -1
  7. package/src/editor/revisionviewereditor.d.ts +27 -0
  8. package/src/editor/revisionviewereditor.js +1 -1
  9. package/src/editor/revisionviewereditorui.d.ts +28 -0
  10. package/src/editor/revisionviewereditorui.js +1 -1
  11. package/src/editor/revisionviewereditoruiview.d.ts +43 -0
  12. package/src/editor/revisionviewereditoruiview.js +1 -1
  13. package/src/index.d.ts +10 -0
  14. package/src/index.js +1 -1
  15. package/src/revision.d.ts +153 -0
  16. package/src/revision.js +1 -1
  17. package/src/revisiondiff.d.ts +19 -0
  18. package/src/revisiondiff.js +1 -1
  19. package/src/revisionhistory.d.ts +93 -0
  20. package/src/revisionhistory.js +1 -1
  21. package/src/revisionhistoryadapter.d.ts +60 -0
  22. package/src/revisionhistoryadapter.js +23 -0
  23. package/src/revisionhistoryconfig.d.ts +60 -0
  24. package/src/revisionhistoryconfig.js +23 -0
  25. package/src/revisionsrepository.d.ts +43 -0
  26. package/src/revisionsrepository.js +1 -1
  27. package/src/revisiontracker.d.ts +72 -0
  28. package/src/revisiontracker.js +1 -1
  29. package/src/revisionviewer.d.ts +21 -0
  30. package/src/revisionviewer.js +1 -1
  31. package/src/ui/revision/createrevisionactionsdropdown.d.ts +9 -0
  32. package/src/ui/revision/createrevisionactionsdropdown.js +1 -1
  33. package/src/ui/revision/revisionauthorview.d.ts +4 -0
  34. package/src/ui/revision/revisionauthorview.js +1 -1
  35. package/src/ui/revision/revisionnameview.d.ts +4 -0
  36. package/src/ui/revision/revisionnameview.js +1 -1
  37. package/src/ui/revision/revisionview.d.ts +91 -0
  38. package/src/ui/revision/revisionview.js +1 -1
  39. package/src/ui/revision/subrevisioncollapserview.d.ts +17 -0
  40. package/src/ui/revision/subrevisioncollapserview.js +1 -1
  41. package/src/ui/revision/subrevisionview.d.ts +30 -0
  42. package/src/ui/revision/subrevisionview.js +1 -1
  43. package/src/ui/revision/utils.d.ts +4 -0
  44. package/src/ui/revision/utils.js +1 -1
  45. package/src/ui/revisionhistory/revisionhistorysaverevisionformview.d.ts +80 -0
  46. package/src/ui/revisionhistory/revisionhistorysaverevisionformview.js +1 -1
  47. package/src/ui/revisionhistory/revisionhistoryui.d.ts +21 -0
  48. package/src/ui/revisionhistory/revisionhistoryui.js +1 -1
  49. package/src/ui/revisionssidebar/revisionssidebar.d.ts +39 -0
  50. package/src/ui/revisionssidebar/revisionssidebar.js +1 -1
  51. package/src/ui/revisionssidebar/revisionssidebarheaderview.d.ts +4 -0
  52. package/src/ui/revisionssidebar/revisionssidebarheaderview.js +1 -1
  53. package/src/ui/revisionssidebar/revisionssidebartimeperiodview.d.ts +25 -0
  54. package/src/ui/revisionssidebar/revisionssidebartimeperiodview.js +1 -1
  55. package/src/ui/revisionssidebar/revisionssidebarview.d.ts +40 -0
  56. package/src/ui/revisionssidebar/revisionssidebarview.js +1 -1
  57. package/src/ui/revisionssidebar/utils.d.ts +8 -0
  58. package/src/ui/revisionssidebar/utils.js +1 -1
  59. package/src/ui/revisionviewer/changedetailsview.d.ts +18 -0
  60. package/src/ui/revisionviewer/changedetailsview.js +1 -1
  61. package/src/ui/revisionviewer/changesnavigationview.d.ts +36 -0
  62. package/src/ui/revisionviewer/changesnavigationview.js +1 -1
  63. package/src/ui/revisionviewer/revisionviewerloadingoverlay.d.ts +22 -0
  64. package/src/ui/revisionviewer/revisionviewerloadingoverlay.js +1 -1
  65. package/src/ui/revisionviewer/revisionviewerui.d.ts +22 -0
  66. package/src/ui/revisionviewer/revisionviewerui.js +1 -1
  67. package/src/utils/common-translations.d.ts +7 -0
  68. package/src/utils/common-translations.js +1 -1
@@ -0,0 +1,36 @@
1
+ /**
2
+ * @module revision-history/ui/revisionviewer/changenaviagationview
3
+ */
4
+ import { View } from 'ckeditor5/src/ui';
5
+ import type { Locale } from 'ckeditor5/src/utils';
6
+ import '../../../theme/changesnavigation.css';
7
+ /**
8
+ * TODO
9
+ */
10
+ export default class ChangesNavigationView extends View {
11
+ /**
12
+ * @observable
13
+ */
14
+ isNavigationMode: boolean;
15
+ /**
16
+ * @observable
17
+ */
18
+ isReady: boolean;
19
+ /**
20
+ * @observable
21
+ */
22
+ currentChangeNumber: number;
23
+ /**
24
+ * @observable
25
+ */
26
+ numberOfChanges: number;
27
+ /**
28
+ * @observable
29
+ */
30
+ isForwardNavigationEnabled: boolean;
31
+ /**
32
+ * @observable
33
+ */
34
+ isBackwardNavigationEnabled: boolean;
35
+ constructor(locale: Locale);
36
+ }
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xfd52=['div','bindTemplate','ck-revision-history-ui__changes-navigation__navigation','fire','numberOfChanges','bind','isNavigationMode','isBackwardNavigationEnabled','_statusText','Show\x20next\x20change','X_OF_Y_CHANGES','ck-revision-history-ui__changes-navigation__label','Show\x20previous\x20change','EDIT_X_OF_Y_REVISIONS','isReady','setTemplate','set','ck-hidden','ck-revision-history-ui__changes-navigation','span','execute','backward','forward','NUMBER_OF_CHANGES','isEnabled','No\x20changes','isForwardNavigationEnabled','ck-revision-history-ui','currentChangeNumber'];(function(_0x15ba49,_0xfd52f9){const _0x3c4855=function(_0x3679cf){while(--_0x3679cf){_0x15ba49['push'](_0x15ba49['shift']());}};_0x3c4855(++_0xfd52f9);}(_0xfd52,0x69));const _0x3c48=function(_0x15ba49,_0xfd52f9){_0x15ba49=_0x15ba49-0x0;let _0x3c4855=_0xfd52[_0x15ba49];return _0x3c4855;};import{View as _0x370867,ButtonView as _0x45b0af,ToolbarSeparatorView as _0x49de37}from'ckeditor5/src/ui';import{getTranslation as _0x28729e}from'../../utils/common-translations';import _0x40b71a from'../../../theme/icons/arrow-up.svg';import _0x311a80 from'../../../theme/icons/arrow-down.svg';import'../../../theme/changesnavigation.css';export default class bi extends _0x370867{constructor(_0x3bb577){super(_0x3bb577);const _0x2d642c=this[_0x3c48('0xc')],_0x36c131=new _0x45b0af(_0x3bb577),_0x5b1483=new _0x45b0af(_0x3bb577);this[_0x3c48('0x1b')]('isNavigationMode',!0x1),this[_0x3c48('0x1b')]('isReady',!0x1),this[_0x3c48('0x1b')](_0x3c48('0xa'),0x0),this['set'](_0x3c48('0xf'),0x0),this[_0x3c48('0x1b')](_0x3c48('0x8'),!0x1),this[_0x3c48('0x1b')](_0x3c48('0x12'),!0x1),this[_0x3c48('0x10')]('_isStatusLabelVisible')['to'](this,_0x3c48('0x19'),this,_0x3c48('0xf'),(_0x2a9b46,_0x542a59)=>_0x2a9b46&&_0x542a59>0x0),this[_0x3c48('0x10')](_0x3c48('0x13'))['to'](this,_0x3c48('0x19'),this,_0x3c48('0xa'),this,'numberOfChanges',this,'isNavigationMode',(_0x177fc0,_0x4b5d52,_0x1520bc,_0x4c742f)=>{if(!_0x177fc0)return _0x28729e(_0x3bb577,'Loading...');if(!_0x1520bc)return _0x28729e(_0x3bb577,_0x3c48('0x7'));const _0x550476=_0x28729e(_0x3bb577,_0x3c48('0x5'),_0x1520bc);return _0x4c742f?_0x28729e(_0x3bb577,_0x3c48('0x15'),[_0x4b5d52+0x1,_0x1520bc]):_0x550476;}),_0x36c131['set']({'label':_0x28729e(_0x3bb577,_0x3c48('0x17')),'tooltip':!0x0,'icon':_0x40b71a}),_0x5b1483[_0x3c48('0x1b')]({'label':_0x28729e(_0x3bb577,_0x3c48('0x14')),'tooltip':!0x0,'icon':_0x311a80}),_0x36c131[_0x3c48('0x10')](_0x3c48('0x6'))['to'](this,'isBackwardNavigationEnabled'),_0x5b1483['bind'](_0x3c48('0x6'))['to'](this,_0x3c48('0x8')),_0x36c131['on'](_0x3c48('0x2'),()=>this[_0x3c48('0xe')](_0x3c48('0x2'),_0x3c48('0x3'))),_0x5b1483['on'](_0x3c48('0x2'),()=>this[_0x3c48('0xe')](_0x3c48('0x2'),_0x3c48('0x4'))),this[_0x3c48('0x1a')]({'tag':_0x3c48('0xb'),'attributes':{'class':['ck',_0x3c48('0x9'),_0x3c48('0x0')]},'children':[{'tag':_0x3c48('0x1'),'attributes':{'class':['ck-revision-history-ui__changes-navigation__wrapper']},'children':[{'tag':'span','attributes':{'class':[_0x3c48('0x16'),_0x2d642c['if']('_isStatusLabelVisible',_0x3c48('0x1c'),_0x315359=>!_0x315359)]},'children':[{'text':_0x2d642c['to'](_0x3c48('0x11'),_0x236743=>_0x236743?_0x28729e(_0x3bb577,_0x3c48('0x18'))+':\x20':_0x28729e(_0x3bb577,'Total')+':\x20')}]},{'text':_0x2d642c['to'](_0x3c48('0x13'))}]},new _0x49de37(),{'tag':_0x3c48('0xb'),'attributes':{'class':[_0x3c48('0xd')]},'children':[_0x36c131,_0x5b1483]}]});}}
23
+ const _0x2c60=['ck-revision-history-ui__changes-navigation','ck-revision-history-ui','isReady','bindTemplate','execute','bind','backward','Show\x20next\x20change','_statusText','isNavigationMode','Loading...','_isStatusLabelVisible','No\x20changes','set','div','ck-revision-history-ui__changes-navigation__wrapper','NUMBER_OF_CHANGES','numberOfChanges','ck-hidden','isForwardNavigationEnabled','span','isEnabled','fire','isBackwardNavigationEnabled','EDIT_X_OF_Y_REVISIONS','Total','X_OF_Y_CHANGES','currentChangeNumber','setTemplate','forward'];(function(_0x51d7ac,_0x2c600d){const _0x67d1ff=function(_0x20015d){while(--_0x20015d){_0x51d7ac['push'](_0x51d7ac['shift']());}};_0x67d1ff(++_0x2c600d);}(_0x2c60,0x1bc));const _0x67d1=function(_0x51d7ac,_0x2c600d){_0x51d7ac=_0x51d7ac-0x0;let _0x67d1ff=_0x2c60[_0x51d7ac];return _0x67d1ff;};import{View as _0x1f298f,ButtonView as _0x273a0e,ToolbarSeparatorView as _0x5e74c1}from'ckeditor5/src/ui';import{getTranslation as _0x49333e}from'../../utils/common-translations';import _0x56809b from'../../../theme/icons/arrow-up.svg';import _0x8da89 from'../../../theme/icons/arrow-down.svg';import'../../../theme/changesnavigation.css';export default class bi extends _0x1f298f{constructor(_0x2576b7){super(_0x2576b7);const _0x1bc712=this[_0x67d1('0x9')],_0xeb8d64=new _0x273a0e(_0x2576b7),_0xa73fa5=new _0x273a0e(_0x2576b7);this[_0x67d1('0x13')](_0x67d1('0xf'),!0x1),this['set'](_0x67d1('0x8'),!0x1),this[_0x67d1('0x13')](_0x67d1('0x3'),0x0),this[_0x67d1('0x13')]('numberOfChanges',0x0),this[_0x67d1('0x13')]('isForwardNavigationEnabled',!0x1),this['set'](_0x67d1('0x1d'),!0x1),this[_0x67d1('0xb')](_0x67d1('0x11'))['to'](this,_0x67d1('0x8'),this,_0x67d1('0x17'),(_0xf724ac,_0x370a93)=>_0xf724ac&&_0x370a93>0x0),this[_0x67d1('0xb')](_0x67d1('0xe'))['to'](this,_0x67d1('0x8'),this,_0x67d1('0x3'),this,_0x67d1('0x17'),this,_0x67d1('0xf'),(_0x407aca,_0x552e5f,_0x9b3580,_0x4b6c84)=>{if(!_0x407aca)return _0x49333e(_0x2576b7,_0x67d1('0x10'));if(!_0x9b3580)return _0x49333e(_0x2576b7,_0x67d1('0x12'));const _0x5de320=_0x49333e(_0x2576b7,_0x67d1('0x16'),_0x9b3580);return _0x4b6c84?_0x49333e(_0x2576b7,_0x67d1('0x2'),[_0x552e5f+0x1,_0x9b3580]):_0x5de320;}),_0xeb8d64['set']({'label':_0x49333e(_0x2576b7,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0x56809b}),_0xa73fa5[_0x67d1('0x13')]({'label':_0x49333e(_0x2576b7,_0x67d1('0xd')),'tooltip':!0x0,'icon':_0x8da89}),_0xeb8d64[_0x67d1('0xb')](_0x67d1('0x1b'))['to'](this,'isBackwardNavigationEnabled'),_0xa73fa5[_0x67d1('0xb')]('isEnabled')['to'](this,_0x67d1('0x19')),_0xeb8d64['on']('execute',()=>this['fire'](_0x67d1('0xa'),_0x67d1('0xc'))),_0xa73fa5['on'](_0x67d1('0xa'),()=>this[_0x67d1('0x1c')](_0x67d1('0xa'),_0x67d1('0x5'))),this[_0x67d1('0x4')]({'tag':_0x67d1('0x14'),'attributes':{'class':['ck',_0x67d1('0x7'),_0x67d1('0x6')]},'children':[{'tag':_0x67d1('0x1a'),'attributes':{'class':[_0x67d1('0x15')]},'children':[{'tag':_0x67d1('0x1a'),'attributes':{'class':['ck-revision-history-ui__changes-navigation__label',_0x1bc712['if'](_0x67d1('0x11'),_0x67d1('0x18'),_0x47e8ea=>!_0x47e8ea)]},'children':[{'text':_0x1bc712['to']('isNavigationMode',_0x22590c=>_0x22590c?_0x49333e(_0x2576b7,_0x67d1('0x0'))+':\x20':_0x49333e(_0x2576b7,_0x67d1('0x1'))+':\x20')}]},{'text':_0x1bc712['to']('_statusText')}]},new _0x5e74c1(),{'tag':_0x67d1('0x14'),'attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0xeb8d64,_0xa73fa5]}]});}}
@@ -0,0 +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
+ }
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1756=['pluginName','show','hide','editing','roots','document','addClass','ck-editor__editable__loading-overlay','change','editor','removeClass'];(function(_0x2aa487,_0x175697){const _0x1aabb7=function(_0x33020b){while(--_0x33020b){_0x2aa487['push'](_0x2aa487['shift']());}};_0x1aabb7(++_0x175697);}(_0x1756,0x117));const _0x1aab=function(_0x2aa487,_0x175697){_0x2aa487=_0x2aa487-0x0;let _0x1aabb7=_0x1756[_0x2aa487];return _0x1aabb7;};import{Plugin as _0x585314}from'ckeditor5/src/core';const ee=_0x1aab('0x3');import'../../../theme/revisionviewerloadingoverlay.css';export default class oe extends _0x585314{static get[_0x1aab('0x7')](){return'RevisionViewerLoadingOverlay';}[_0x1aab('0x8')](){const _0x23c976=this['editor'][_0x1aab('0xa')]['view'];_0x23c976['change'](_0x36c98d=>{for(const _0x27d479 of _0x23c976[_0x1aab('0x1')][_0x1aab('0x0')])_0x36c98d[_0x1aab('0x2')](ee,_0x27d479);});}[_0x1aab('0x9')](){const _0xab50af=this[_0x1aab('0x5')]['editing']['view'];_0xab50af[_0x1aab('0x4')](_0x184511=>{for(const _0x519c05 of _0xab50af[_0x1aab('0x1')][_0x1aab('0x0')])_0x184511[_0x1aab('0x6')](ee,_0x519c05);});}}
23
+ const _0x2c7c=['RevisionViewerLoadingOverlay','editor','document','editing','view','roots','change','show','addClass','removeClass','hide','ck-editor__editable__loading-overlay'];(function(_0x5033b4,_0x2c7c82){const _0x388102=function(_0x2abbfb){while(--_0x2abbfb){_0x5033b4['push'](_0x5033b4['shift']());}};_0x388102(++_0x2c7c82);}(_0x2c7c,0x1b5));const _0x3881=function(_0x5033b4,_0x2c7c82){_0x5033b4=_0x5033b4-0x0;let _0x388102=_0x2c7c[_0x5033b4];return _0x388102;};import{Plugin as _0x4ca4df}from'ckeditor5/src/core';const ee=_0x3881('0x6');import'../../../theme/revisionviewerloadingoverlay.css';export default class oe extends _0x4ca4df{static get['pluginName'](){return _0x3881('0x7');}[_0x3881('0x2')](){const _0x54c61b=this[_0x3881('0x8')][_0x3881('0xa')]['view'];_0x54c61b[_0x3881('0x1')](_0x35e4c7=>{for(const _0x11bb1d of _0x54c61b[_0x3881('0x9')][_0x3881('0x0')])_0x35e4c7[_0x3881('0x3')](ee,_0x11bb1d);});}[_0x3881('0x5')](){const _0x5579bb=this[_0x3881('0x8')][_0x3881('0xa')][_0x3881('0xb')];_0x5579bb['change'](_0x243d0d=>{for(const _0x3fd264 of _0x5579bb[_0x3881('0x9')]['roots'])_0x243d0d[_0x3881('0x4')](ee,_0x3fd264);});}}
@@ -0,0 +1,22 @@
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
+ }
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3090=['pluginName','show','restoreRevision','execute','showPreviousChange','bind','numberOfChanges','Restore\x20this\x20revision','componentFactory','init','isEnabled','hide','plugins','isBackwardNavigationEnabled','change:isReady','Back\x20to\x20editing','RevisionViewerUI','editor','showNextChange','ck-revision-history-ui__back-to-editing','changesNavigation','requires','commands','listenTo','exitToEditing','closeRevisionViewerCallback','isReady','add','currentChangeNumber','get'];(function(_0x3daeb6,_0x30908e){const _0x1aaa90=function(_0x3fb784){while(--_0x3fb784){_0x3daeb6['push'](_0x3daeb6['shift']());}};_0x1aaa90(++_0x30908e);}(_0x3090,0x167));const _0x1aaa=function(_0x3daeb6,_0x30908e){_0x3daeb6=_0x3daeb6-0x0;let _0x1aaa90=_0x3090[_0x3daeb6];return _0x1aaa90;};import{Plugin as _0x5b66d6}from'ckeditor5/src/core';import{ButtonView as _0xf5b440}from'ckeditor5/src/ui';import _0x2610c6 from'./changesnavigationview';import _0x16d724 from'./../../revisionviewer';import _0xbf248e from'./revisionviewerloadingoverlay';import{getTranslation as _0x5e43cd}from'../../utils/common-translations';import _0x549d74 from'@ckeditor/ckeditor5-undo/theme/icons/undo.svg';import'../../../theme/revisionviewer.css';export default class R extends _0x5b66d6{static get[_0x1aaa('0x1')](){return _0x1aaa('0x11');}static get[_0x1aaa('0x16')](){return[_0x16d724,_0xbf248e];}[_0x1aaa('0xa')](){const _0x264ad2=this[_0x1aaa('0x12')],_0x3abb19=_0x264ad2['plugins'][_0x1aaa('0x0')](_0x16d724),_0x378a9d=_0x264ad2[_0x1aaa('0xd')][_0x1aaa('0x0')](_0xbf248e);_0x264ad2['ui'][_0x1aaa('0x9')][_0x1aaa('0x1c')](_0x1aaa('0x19'),_0x537ad5=>{const _0x508119=new _0xf5b440(_0x537ad5);return _0x508119['set']({'label':_0x5e43cd(_0x537ad5,_0x1aaa('0x10')),'icon':_0x549d74,'withText':!0x0,'tooltip':!0x0,'class':_0x1aaa('0x14')}),this[_0x1aaa('0x18')](_0x508119,_0x1aaa('0x4'),()=>{_0x264ad2['config'][_0x1aaa('0x0')]('revisionHistory')[_0x1aaa('0x1a')]();}),_0x508119;}),_0x264ad2['ui']['componentFactory'][_0x1aaa('0x1c')](_0x1aaa('0x3'),_0x23d1ba=>{const _0x5b09b5=new _0xf5b440(_0x23d1ba);return _0x5b09b5['set']({'label':_0x5e43cd(_0x23d1ba,_0x1aaa('0x8')),'withText':!0x0,'tooltip':!0x0}),_0x5b09b5[_0x1aaa('0x6')](_0x1aaa('0xb'))['to'](_0x264ad2[_0x1aaa('0x17')][_0x1aaa('0x0')](_0x1aaa('0x3'))),this[_0x1aaa('0x18')](_0x5b09b5,_0x1aaa('0x4'),()=>_0x264ad2[_0x1aaa('0x4')](_0x1aaa('0x3'))),_0x5b09b5;}),_0x264ad2['ui']['componentFactory'][_0x1aaa('0x1c')](_0x1aaa('0x15'),_0x589113=>{const _0x5a4e5e=new _0x2610c6(_0x589113),_0x1d8674=_0x264ad2['commands'][_0x1aaa('0x0')](_0x1aaa('0x5')),_0xd4776a=_0x264ad2[_0x1aaa('0x17')][_0x1aaa('0x0')](_0x1aaa('0x13'));return _0x5a4e5e[_0x1aaa('0x6')](_0x1aaa('0xe'))['to'](_0x1d8674,_0x1aaa('0xb')),_0x5a4e5e[_0x1aaa('0x6')]('isForwardNavigationEnabled')['to'](_0xd4776a,_0x1aaa('0xb')),_0x5a4e5e[_0x1aaa('0x6')](_0x1aaa('0x1b'),_0x1aaa('0x1d'),_0x1aaa('0x7'),'isNavigationMode')['to'](_0x3abb19),this[_0x1aaa('0x18')](_0x5a4e5e,_0x1aaa('0x4'),(_0x28f098,_0x2a16c5)=>{_0x264ad2[_0x1aaa('0x4')]('forward'===_0x2a16c5?_0x1aaa('0x13'):_0x1aaa('0x5'));}),_0x5a4e5e;}),_0x378a9d[_0x1aaa('0x2')](),_0x3abb19['on'](_0x1aaa('0xf'),(_0x3e0f2f,_0xd4a612,_0x6018ea)=>{_0x6018ea?_0x378a9d[_0x1aaa('0xc')]():_0x378a9d[_0x1aaa('0x2')]();});}}
23
+ const _0x163a=['plugins','get','init','hide','show','set','isBackwardNavigationEnabled','ck-revision-history-ui__back-to-editing','config','isNavigationMode','isEnabled','Back\x20to\x20editing','restoreRevision','currentChangeNumber','showNextChange','componentFactory','add','execute','isReady','revisionHistory','listenTo','closeRevisionViewerCallback','isForwardNavigationEnabled','RevisionViewerUI','bind','numberOfChanges','commands','pluginName','Restore\x20this\x20revision','showPreviousChange','editor','changesNavigation'];(function(_0x3184fe,_0x163a49){const _0x3e8cc4=function(_0x23a9ae){while(--_0x23a9ae){_0x3184fe['push'](_0x3184fe['shift']());}};_0x3e8cc4(++_0x163a49);}(_0x163a,0x134));const _0x3e8c=function(_0x3184fe,_0x163a49){_0x3184fe=_0x3184fe-0x0;let _0x3e8cc4=_0x163a[_0x3184fe];return _0x3e8cc4;};import{Plugin as _0x579c6d}from'ckeditor5/src/core';import{ButtonView as _0x20aca1}from'ckeditor5/src/ui';import _0x3215c7 from'./changesnavigationview';import _0x5c431f from'./../../revisionviewer';import _0x31dd3e from'./revisionviewerloadingoverlay';import{getTranslation as _0x2ea9d3}from'../../utils/common-translations';import _0x4ef6a9 from'@ckeditor/ckeditor5-undo/theme/icons/undo.svg';import'../../../theme/revisionviewer.css';export default class w extends _0x579c6d{static get[_0x3e8c('0x7')](){return _0x3e8c('0x3');}static get['requires'](){return[_0x5c431f,_0x31dd3e];}[_0x3e8c('0xe')](){const _0x4d7ebb=this[_0x3e8c('0xa')],_0x3266d3=_0x4d7ebb[_0x3e8c('0xc')][_0x3e8c('0xd')](_0x5c431f),_0x7d447d=_0x4d7ebb[_0x3e8c('0xc')][_0x3e8c('0xd')](_0x31dd3e);_0x4d7ebb['ui']['componentFactory'][_0x3e8c('0x1c')]('exitToEditing',_0x4da0d1=>{const _0x1dcdf6=new _0x20aca1(_0x4da0d1);return _0x1dcdf6['set']({'label':_0x2ea9d3(_0x4da0d1,_0x3e8c('0x17')),'icon':_0x4ef6a9,'withText':!0x0,'tooltip':!0x0,'class':_0x3e8c('0x13')}),this[_0x3e8c('0x0')](_0x1dcdf6,_0x3e8c('0x1d'),()=>{_0x4d7ebb[_0x3e8c('0x14')][_0x3e8c('0xd')](_0x3e8c('0x1f'))[_0x3e8c('0x1')]();}),_0x1dcdf6;}),_0x4d7ebb['ui'][_0x3e8c('0x1b')][_0x3e8c('0x1c')](_0x3e8c('0x18'),_0x273e74=>{const _0x1cd892=new _0x20aca1(_0x273e74);return _0x1cd892[_0x3e8c('0x11')]({'label':_0x2ea9d3(_0x273e74,_0x3e8c('0x8')),'withText':!0x0,'tooltip':!0x0}),_0x1cd892['bind']('isEnabled')['to'](_0x4d7ebb[_0x3e8c('0x6')][_0x3e8c('0xd')](_0x3e8c('0x18'))),this[_0x3e8c('0x0')](_0x1cd892,_0x3e8c('0x1d'),()=>_0x4d7ebb[_0x3e8c('0x1d')](_0x3e8c('0x18'))),_0x1cd892;}),_0x4d7ebb['ui'][_0x3e8c('0x1b')][_0x3e8c('0x1c')](_0x3e8c('0xb'),_0x393ba2=>{const _0x266eae=new _0x3215c7(_0x393ba2),_0x2cf9c1=_0x4d7ebb['commands'][_0x3e8c('0xd')]('showPreviousChange'),_0x4620ec=_0x4d7ebb[_0x3e8c('0x6')]['get'](_0x3e8c('0x1a'));return _0x266eae[_0x3e8c('0x4')](_0x3e8c('0x12'))['to'](_0x2cf9c1,_0x3e8c('0x16')),_0x266eae['bind'](_0x3e8c('0x2'))['to'](_0x4620ec,_0x3e8c('0x16')),_0x266eae[_0x3e8c('0x4')](_0x3e8c('0x1e'),_0x3e8c('0x19'),_0x3e8c('0x5'),_0x3e8c('0x15'))['to'](_0x3266d3),this[_0x3e8c('0x0')](_0x266eae,'execute',(_0x213709,_0x3dc7ce)=>{_0x4d7ebb[_0x3e8c('0x1d')]('forward'===_0x3dc7ce?'showNextChange':_0x3e8c('0x9'));}),_0x266eae;}),_0x7d447d['show'](),_0x3266d3['on']('change:isReady',(_0x59ccb8,_0x35d29a,_0x549d35)=>{_0x549d35?_0x7d447d[_0x3e8c('0xf')]():_0x7d447d[_0x3e8c('0x10')]();});}}
@@ -0,0 +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 {};
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- export function getTranslation(_0x100f0c,_0x7e2396,_0x1d7ec7){const t=_0x100f0c['t'];switch(_0x7e2396){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'},_0x1d7ec7);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x1d7ec7);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'});}}
23
+ export function getTranslation(_0x4d6c00,_0x117e1e,_0x13ec3f){const t=_0x4d6c00['t'];switch(_0x117e1e){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'},_0x13ec3f);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x13ec3f);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 _0x117e1e;}}