@ckeditor/ckeditor5-revision-history 36.0.1 → 37.0.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 +22 -7
  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 _0x5117=['ck-revision-history-ui__changes-navigation__label','div','EDIT_X_OF_Y_REVISIONS','_statusText','ck-revision-history-ui__changes-navigation__wrapper','ck-revision-history-ui__changes-navigation','setTemplate','Loading...','Show\x20previous\x20change','isReady','set','bind','Total','ck-revision-history-ui__changes-navigation__navigation','fire','isNavigationMode','isForwardNavigationEnabled','numberOfChanges','bindTemplate','backward','execute','forward','_isStatusLabelVisible','ck-hidden','No\x20changes','currentChangeNumber','isBackwardNavigationEnabled'];(function(_0x21c611,_0x5117ee){const _0xea834f=function(_0x37def7){while(--_0x37def7){_0x21c611['push'](_0x21c611['shift']());}};_0xea834f(++_0x5117ee);}(_0x5117,0xf1));const _0xea83=function(_0x21c611,_0x5117ee){_0x21c611=_0x21c611-0x0;let _0xea834f=_0x5117[_0x21c611];return _0xea834f;};import{View as _0x26223a,ButtonView as _0x44456d,ToolbarSeparatorView as _0x2bc40f}from'ckeditor5/src/ui';import{getTranslation as _0x25a41c}from'../../utils/common-translations';import _0x1a860d from'../../../theme/icons/arrow-up.svg';import _0x859697 from'../../../theme/icons/arrow-down.svg';import'../../../theme/changesnavigation.css';export default class bi extends _0x26223a{constructor(_0x4b0354){super(_0x4b0354);const _0x2d5337=this[_0xea83('0x14')],_0x309f5b=new _0x44456d(_0x4b0354),_0x2edd3b=new _0x44456d(_0x4b0354);this[_0xea83('0xc')]('isNavigationMode',!0x1),this[_0xea83('0xc')](_0xea83('0xb'),!0x1),this[_0xea83('0xc')](_0xea83('0x0'),0x0),this[_0xea83('0xc')](_0xea83('0x13'),0x0),this[_0xea83('0xc')]('isForwardNavigationEnabled',!0x1),this[_0xea83('0xc')]('isBackwardNavigationEnabled',!0x1),this[_0xea83('0xd')](_0xea83('0x18'))['to'](this,_0xea83('0xb'),this,_0xea83('0x13'),(_0x2950e0,_0x494a8b)=>_0x2950e0&&_0x494a8b>0x0),this[_0xea83('0xd')]('_statusText')['to'](this,_0xea83('0xb'),this,_0xea83('0x0'),this,_0xea83('0x13'),this,_0xea83('0x11'),(_0x3e32fc,_0x48edd7,_0xf3ebe,_0x42ae2d)=>{if(!_0x3e32fc)return _0x25a41c(_0x4b0354,_0xea83('0x9'));if(!_0xf3ebe)return _0x25a41c(_0x4b0354,_0xea83('0x1a'));const _0x521de6=_0x25a41c(_0x4b0354,'NUMBER_OF_CHANGES',_0xf3ebe);return _0x42ae2d?_0x25a41c(_0x4b0354,'X_OF_Y_CHANGES',[_0x48edd7+0x1,_0xf3ebe]):_0x521de6;}),_0x309f5b['set']({'label':_0x25a41c(_0x4b0354,_0xea83('0xa')),'tooltip':!0x0,'icon':_0x1a860d}),_0x2edd3b['set']({'label':_0x25a41c(_0x4b0354,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x859697}),_0x309f5b[_0xea83('0xd')]('isEnabled')['to'](this,_0xea83('0x1')),_0x2edd3b['bind']('isEnabled')['to'](this,_0xea83('0x12')),_0x309f5b['on']('execute',()=>this[_0xea83('0x10')](_0xea83('0x16'),_0xea83('0x15'))),_0x2edd3b['on'](_0xea83('0x16'),()=>this[_0xea83('0x10')]('execute',_0xea83('0x17'))),this[_0xea83('0x8')]({'tag':_0xea83('0x3'),'attributes':{'class':['ck','ck-revision-history-ui',_0xea83('0x7')]},'children':[{'tag':'span','attributes':{'class':[_0xea83('0x6')]},'children':[{'tag':'span','attributes':{'class':[_0xea83('0x2'),_0x2d5337['if']('_isStatusLabelVisible',_0xea83('0x19'),_0x1e0adb=>!_0x1e0adb)]},'children':[{'text':_0x2d5337['to']('isNavigationMode',_0x50be41=>_0x50be41?_0x25a41c(_0x4b0354,_0xea83('0x4'))+':\x20':_0x25a41c(_0x4b0354,_0xea83('0xe'))+':\x20')}]},{'text':_0x2d5337['to'](_0xea83('0x5'))}]},new _0x2bc40f(),{'tag':'div','attributes':{'class':[_0xea83('0xf')]},'children':[_0x309f5b,_0x2edd3b]}]});}}
23
+ const _0x228a=['isBackwardNavigationEnabled','currentChangeNumber','div','span','ck-revision-history-ui__changes-navigation__navigation','ck-revision-history-ui__changes-navigation__wrapper','isNavigationMode','ck-revision-history-ui','fire','ck-revision-history-ui__changes-navigation','Show\x20next\x20change','X_OF_Y_CHANGES','Loading...','ck-hidden','ck-revision-history-ui__changes-navigation__label','execute','bind','_statusText','numberOfChanges','_isStatusLabelVisible','set','backward','isEnabled','Show\x20previous\x20change','isReady','isForwardNavigationEnabled','setTemplate','Total'];(function(_0x122b22,_0x228a36){const _0x1714b7=function(_0x50356b){while(--_0x50356b){_0x122b22['push'](_0x122b22['shift']());}};_0x1714b7(++_0x228a36);}(_0x228a,0xb0));const _0x1714=function(_0x122b22,_0x228a36){_0x122b22=_0x122b22-0x0;let _0x1714b7=_0x228a[_0x122b22];return _0x1714b7;};import{View as _0x27bce9,ButtonView as _0x6f6fa8,ToolbarSeparatorView as _0x24c9f7}from'ckeditor5/src/ui';import{getTranslation as _0x5c9e3a}from'../../utils/common-translations';import _0x2e49f2 from'../../../theme/icons/arrow-up.svg';import _0x50dc73 from'../../../theme/icons/arrow-down.svg';import'../../../theme/changesnavigation.css';export default class bi extends _0x27bce9{constructor(_0x2f4e4d){super(_0x2f4e4d);const _0x482741=this['bindTemplate'],_0x3af5b4=new _0x6f6fa8(_0x2f4e4d),_0x49c8cb=new _0x6f6fa8(_0x2f4e4d);this[_0x1714('0xc')](_0x1714('0x1a'),!0x1),this[_0x1714('0xc')](_0x1714('0x10'),!0x1),this[_0x1714('0xc')](_0x1714('0x15'),0x0),this[_0x1714('0xc')](_0x1714('0xa'),0x0),this[_0x1714('0xc')](_0x1714('0x11'),!0x1),this[_0x1714('0xc')]('isBackwardNavigationEnabled',!0x1),this['bind']('_isStatusLabelVisible')['to'](this,_0x1714('0x10'),this,_0x1714('0xa'),(_0x1b1ca3,_0x5e02da)=>_0x1b1ca3&&_0x5e02da>0x0),this[_0x1714('0x8')](_0x1714('0x9'))['to'](this,_0x1714('0x10'),this,_0x1714('0x15'),this,_0x1714('0xa'),this,_0x1714('0x1a'),(_0x40d58b,_0x442d49,_0x13d65d,_0x441aef)=>{if(!_0x40d58b)return _0x5c9e3a(_0x2f4e4d,_0x1714('0x4'));if(!_0x13d65d)return _0x5c9e3a(_0x2f4e4d,'No\x20changes');const _0x21c0d4=_0x5c9e3a(_0x2f4e4d,'NUMBER_OF_CHANGES',_0x13d65d);return _0x441aef?_0x5c9e3a(_0x2f4e4d,_0x1714('0x3'),[_0x442d49+0x1,_0x13d65d]):_0x21c0d4;}),_0x3af5b4[_0x1714('0xc')]({'label':_0x5c9e3a(_0x2f4e4d,_0x1714('0xf')),'tooltip':!0x0,'icon':_0x2e49f2}),_0x49c8cb[_0x1714('0xc')]({'label':_0x5c9e3a(_0x2f4e4d,_0x1714('0x2')),'tooltip':!0x0,'icon':_0x50dc73}),_0x3af5b4[_0x1714('0x8')]('isEnabled')['to'](this,_0x1714('0x14')),_0x49c8cb[_0x1714('0x8')](_0x1714('0xe'))['to'](this,_0x1714('0x11')),_0x3af5b4['on']('execute',()=>this[_0x1714('0x0')]('execute',_0x1714('0xd'))),_0x49c8cb['on'](_0x1714('0x7'),()=>this[_0x1714('0x0')](_0x1714('0x7'),'forward')),this[_0x1714('0x12')]({'tag':_0x1714('0x16'),'attributes':{'class':['ck',_0x1714('0x1b'),_0x1714('0x1')]},'children':[{'tag':_0x1714('0x17'),'attributes':{'class':[_0x1714('0x19')]},'children':[{'tag':_0x1714('0x17'),'attributes':{'class':[_0x1714('0x6'),_0x482741['if'](_0x1714('0xb'),_0x1714('0x5'),_0x5e4020=>!_0x5e4020)]},'children':[{'text':_0x482741['to'](_0x1714('0x1a'),_0x2a615e=>_0x2a615e?_0x5c9e3a(_0x2f4e4d,'EDIT_X_OF_Y_REVISIONS')+':\x20':_0x5c9e3a(_0x2f4e4d,_0x1714('0x13'))+':\x20')}]},{'text':_0x482741['to']('_statusText')}]},new _0x24c9f7(),{'tag':_0x1714('0x16'),'attributes':{'class':[_0x1714('0x18')]},'children':[_0x3af5b4,_0x49c8cb]}]});}}
@@ -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 _0xaa59=['removeClass','change','view','ck-editor__editable__loading-overlay','pluginName','document','roots','editing','show','editor'];(function(_0x96fca2,_0xaa59c2){const _0x5850ab=function(_0x2e5e0c){while(--_0x2e5e0c){_0x96fca2['push'](_0x96fca2['shift']());}};_0x5850ab(++_0xaa59c2);}(_0xaa59,0x8b));const _0x5850=function(_0x96fca2,_0xaa59c2){_0x96fca2=_0x96fca2-0x0;let _0x5850ab=_0xaa59[_0x96fca2];return _0x5850ab;};import{Plugin as _0x5d99c7}from'ckeditor5/src/core';const oe=_0x5850('0x4');import'../../../theme/revisionviewerloadingoverlay.css';export default class te extends _0x5d99c7{static get[_0x5850('0x5')](){return'RevisionViewerLoadingOverlay';}[_0x5850('0x9')](){const _0x2fd7d2=this['editor'][_0x5850('0x8')]['view'];_0x2fd7d2[_0x5850('0x2')](_0x5e9a8b=>{for(const _0x3e353f of _0x2fd7d2[_0x5850('0x6')]['roots'])_0x5e9a8b['addClass'](oe,_0x3e353f);});}['hide'](){const _0x4066fe=this[_0x5850('0x0')][_0x5850('0x8')][_0x5850('0x3')];_0x4066fe[_0x5850('0x2')](_0x452874=>{for(const _0x20a3de of _0x4066fe[_0x5850('0x6')][_0x5850('0x7')])_0x452874[_0x5850('0x1')](oe,_0x20a3de);});}}
23
+ const _0xa712=['hide','editor','ck-editor__editable__loading-overlay','removeClass','RevisionViewerLoadingOverlay','addClass','show','editing','roots','document','view'];(function(_0x51bb67,_0xa7124){const _0x3d4c90=function(_0x45ccdc){while(--_0x45ccdc){_0x51bb67['push'](_0x51bb67['shift']());}};_0x3d4c90(++_0xa7124);}(_0xa712,0x1bb));const _0x3d4c=function(_0x51bb67,_0xa7124){_0x51bb67=_0x51bb67-0x0;let _0x3d4c90=_0xa712[_0x51bb67];return _0x3d4c90;};import{Plugin as _0x365698}from'ckeditor5/src/core';const ee=_0x3d4c('0xa');import'../../../theme/revisionviewerloadingoverlay.css';export default class oe extends _0x365698{static get['pluginName'](){return _0x3d4c('0x1');}[_0x3d4c('0x3')](){const _0x597858=this[_0x3d4c('0x9')][_0x3d4c('0x4')][_0x3d4c('0x7')];_0x597858['change'](_0x584379=>{for(const _0xb8dfb2 of _0x597858[_0x3d4c('0x6')][_0x3d4c('0x5')])_0x584379[_0x3d4c('0x2')](ee,_0xb8dfb2);});}[_0x3d4c('0x8')](){const _0x4c25bd=this[_0x3d4c('0x9')][_0x3d4c('0x4')]['view'];_0x4c25bd['change'](_0x3671b9=>{for(const _0x19993d of _0x4c25bd['document'][_0x3d4c('0x5')])_0x3671b9[_0x3d4c('0x0')](ee,_0x19993d);});}}
@@ -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 _0x411b=['isEnabled','bind','isForwardNavigationEnabled','revisionHistory','Restore\x20this\x20revision','restoreRevision','isBackwardNavigationEnabled','Back\x20to\x20editing','hide','currentChangeNumber','commands','forward','listenTo','isReady','execute','showPreviousChange','showNextChange','changesNavigation','numberOfChanges','componentFactory','editor','isNavigationMode','requires','ck-revision-history-ui__back-to-editing','get','config','exitToEditing','show','set','change:isReady','plugins','add'];(function(_0x510d63,_0x411bc1){const _0x278192=function(_0x446e76){while(--_0x446e76){_0x510d63['push'](_0x510d63['shift']());}};_0x278192(++_0x411bc1);}(_0x411b,0x1b8));const _0x2781=function(_0x510d63,_0x411bc1){_0x510d63=_0x510d63-0x0;let _0x278192=_0x411b[_0x510d63];return _0x278192;};import{Plugin as _0x5344e4}from'ckeditor5/src/core';import{ButtonView as _0x89a2c5}from'ckeditor5/src/ui';import _0x32fb38 from'./changesnavigationview';import _0x412715 from'./../../revisionviewer';import _0x142443 from'./revisionviewerloadingoverlay';import{getTranslation as _0x299ec0}from'../../utils/common-translations';import _0x32cf0e from'@ckeditor/ckeditor5-undo/theme/icons/undo.svg';import'../../../theme/revisionviewer.css';export default class R extends _0x5344e4{static get['pluginName'](){return'RevisionViewerUI';}static get[_0x2781('0x1e')](){return[_0x412715,_0x142443];}['init'](){const _0x5eb9dd=this[_0x2781('0x1c')],_0x386798=_0x5eb9dd[_0x2781('0x6')][_0x2781('0x0')](_0x412715),_0x257173=_0x5eb9dd[_0x2781('0x6')][_0x2781('0x0')](_0x142443);_0x5eb9dd['ui']['componentFactory'][_0x2781('0x7')](_0x2781('0x2'),_0x40e7f3=>{const _0x4a6298=new _0x89a2c5(_0x40e7f3);return _0x4a6298[_0x2781('0x4')]({'label':_0x299ec0(_0x40e7f3,_0x2781('0xf')),'icon':_0x32cf0e,'withText':!0x0,'tooltip':!0x0,'class':_0x2781('0x1f')}),this[_0x2781('0x14')](_0x4a6298,_0x2781('0x16'),()=>{_0x5eb9dd[_0x2781('0x1')][_0x2781('0x0')](_0x2781('0xb'))['closeRevisionViewerCallback']();}),_0x4a6298;}),_0x5eb9dd['ui'][_0x2781('0x1b')][_0x2781('0x7')](_0x2781('0xd'),_0x3599ac=>{const _0xa2b8f5=new _0x89a2c5(_0x3599ac);return _0xa2b8f5[_0x2781('0x4')]({'label':_0x299ec0(_0x3599ac,_0x2781('0xc')),'withText':!0x0,'tooltip':!0x0}),_0xa2b8f5[_0x2781('0x9')](_0x2781('0x8'))['to'](_0x5eb9dd[_0x2781('0x12')]['get'](_0x2781('0xd'))),this[_0x2781('0x14')](_0xa2b8f5,_0x2781('0x16'),()=>_0x5eb9dd[_0x2781('0x16')](_0x2781('0xd'))),_0xa2b8f5;}),_0x5eb9dd['ui'][_0x2781('0x1b')][_0x2781('0x7')](_0x2781('0x19'),_0xdb738e=>{const _0xfcc12b=new _0x32fb38(_0xdb738e),_0xbc3f0=_0x5eb9dd[_0x2781('0x12')]['get']('showPreviousChange'),_0x9add4f=_0x5eb9dd[_0x2781('0x12')]['get'](_0x2781('0x18'));return _0xfcc12b['bind'](_0x2781('0xe'))['to'](_0xbc3f0,_0x2781('0x8')),_0xfcc12b[_0x2781('0x9')](_0x2781('0xa'))['to'](_0x9add4f,'isEnabled'),_0xfcc12b[_0x2781('0x9')](_0x2781('0x15'),_0x2781('0x11'),_0x2781('0x1a'),_0x2781('0x1d'))['to'](_0x386798),this[_0x2781('0x14')](_0xfcc12b,_0x2781('0x16'),(_0x4b931e,_0x3245bc)=>{_0x5eb9dd[_0x2781('0x16')](_0x2781('0x13')===_0x3245bc?_0x2781('0x18'):_0x2781('0x17'));}),_0xfcc12b;}),_0x257173[_0x2781('0x3')](),_0x386798['on'](_0x2781('0x5'),(_0x225d37,_0x2167bb,_0x219668)=>{_0x219668?_0x257173[_0x2781('0x10')]():_0x257173[_0x2781('0x3')]();});}}
23
+ const _0x3ea0=['show','isNavigationMode','Restore\x20this\x20revision','listenTo','change:isReady','hide','get','editor','isEnabled','pluginName','revisionHistory','changesNavigation','componentFactory','closeRevisionViewerCallback','plugins','isForwardNavigationEnabled','showPreviousChange','numberOfChanges','Back\x20to\x20editing','showNextChange','exitToEditing','execute','bind','ck-revision-history-ui__back-to-editing','forward','isBackwardNavigationEnabled','restoreRevision','add','RevisionViewerUI','set'];(function(_0x4ffad1,_0x3ea05e){const _0xf6caa0=function(_0x270f2d){while(--_0x270f2d){_0x4ffad1['push'](_0x4ffad1['shift']());}};_0xf6caa0(++_0x3ea05e);}(_0x3ea0,0x1b4));const _0xf6ca=function(_0x4ffad1,_0x3ea05e){_0x4ffad1=_0x4ffad1-0x0;let _0xf6caa0=_0x3ea0[_0x4ffad1];return _0xf6caa0;};import{Plugin as _0x2b4d7}from'ckeditor5/src/core';import{ButtonView as _0x29c6a2}from'ckeditor5/src/ui';import _0x498f2f from'./changesnavigationview';import _0x58af95 from'./../../revisionviewer';import _0x27c6ef from'./revisionviewerloadingoverlay';import{getTranslation as _0x3095fc}from'../../utils/common-translations';import _0x5475bc from'@ckeditor/ckeditor5-undo/theme/icons/undo.svg';import'../../../theme/revisionviewer.css';export default class w extends _0x2b4d7{static get[_0xf6ca('0x17')](){return _0xf6ca('0xc');}static get['requires'](){return[_0x58af95,_0x27c6ef];}['init'](){const _0x30a478=this[_0xf6ca('0x15')],_0x4a12c4=_0x30a478[_0xf6ca('0x1c')]['get'](_0x58af95),_0x21808e=_0x30a478[_0xf6ca('0x1c')][_0xf6ca('0x14')](_0x27c6ef);_0x30a478['ui'][_0xf6ca('0x1a')]['add'](_0xf6ca('0x4'),_0x5326e9=>{const _0xf5aab2=new _0x29c6a2(_0x5326e9);return _0xf5aab2[_0xf6ca('0xd')]({'label':_0x3095fc(_0x5326e9,_0xf6ca('0x2')),'icon':_0x5475bc,'withText':!0x0,'tooltip':!0x0,'class':_0xf6ca('0x7')}),this[_0xf6ca('0x11')](_0xf5aab2,_0xf6ca('0x5'),()=>{_0x30a478['config']['get'](_0xf6ca('0x18'))[_0xf6ca('0x1b')]();}),_0xf5aab2;}),_0x30a478['ui'][_0xf6ca('0x1a')][_0xf6ca('0xb')](_0xf6ca('0xa'),_0x3937b9=>{const _0x257fe6=new _0x29c6a2(_0x3937b9);return _0x257fe6['set']({'label':_0x3095fc(_0x3937b9,_0xf6ca('0x10')),'withText':!0x0,'tooltip':!0x0}),_0x257fe6[_0xf6ca('0x6')](_0xf6ca('0x16'))['to'](_0x30a478['commands']['get'](_0xf6ca('0xa'))),this[_0xf6ca('0x11')](_0x257fe6,_0xf6ca('0x5'),()=>_0x30a478[_0xf6ca('0x5')](_0xf6ca('0xa'))),_0x257fe6;}),_0x30a478['ui'][_0xf6ca('0x1a')][_0xf6ca('0xb')](_0xf6ca('0x19'),_0x4d8d26=>{const _0x751a5d=new _0x498f2f(_0x4d8d26),_0x3c90da=_0x30a478['commands'][_0xf6ca('0x14')]('showPreviousChange'),_0x51fcf6=_0x30a478['commands']['get']('showNextChange');return _0x751a5d['bind'](_0xf6ca('0x9'))['to'](_0x3c90da,_0xf6ca('0x16')),_0x751a5d[_0xf6ca('0x6')](_0xf6ca('0x1d'))['to'](_0x51fcf6,'isEnabled'),_0x751a5d['bind']('isReady','currentChangeNumber',_0xf6ca('0x1'),_0xf6ca('0xf'))['to'](_0x4a12c4),this['listenTo'](_0x751a5d,_0xf6ca('0x5'),(_0x4e8e18,_0x586cd7)=>{_0x30a478[_0xf6ca('0x5')](_0xf6ca('0x8')===_0x586cd7?_0xf6ca('0x3'):_0xf6ca('0x0'));}),_0x751a5d;}),_0x21808e['show'](),_0x4a12c4['on'](_0xf6ca('0x12'),(_0x5615fe,_0x45c47e,_0x22075e)=>{_0x22075e?_0x21808e[_0xf6ca('0x13')]():_0x21808e[_0xf6ca('0xe')]();});}}
@@ -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(_0x467d97,_0x1dd209,_0x348290){const t=_0x467d97['t'];switch(_0x1dd209){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'},_0x348290);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x348290);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(_0x1e65ad,_0x67d919,_0x21b20a){const t=_0x1e65ad['t'];switch(_0x67d919){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'},_0x21b20a);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x21b20a);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 _0x67d919;}}