@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 _0x3745=['reset','panelView','length','remove','isReadOnly','children','execute','plugins','pluginName','isOpen','get','saveRevision','config','render','items','editor','bind','focus','RevisionHistoryUI','add','change:isOpen','buttonView','Save\x20current\x20revision','isEnabled','cancel','componentFactory','isReady','set'];(function(_0x4eac47,_0x37452d){const _0x339d8d=function(_0x374931){while(--_0x374931){_0x4eac47['push'](_0x4eac47['shift']());}};_0x339d8d(++_0x37452d);}(_0x3745,0x1ae));const _0x339d=function(_0x4eac47,_0x37452d){_0x4eac47=_0x4eac47-0x0;let _0x339d8d=_0x3745[_0x4eac47];return _0x339d8d;};import{Plugin as _0xdd5764}from'ckeditor5/src/core';import{ListView as _0x2766e7,ListItemView as _0x424890,ButtonView as _0x2bd73d,createDropdown as _0x1494e3}from'ckeditor5/src/ui';import _0x190153 from'../../revisiontracker';import _0xdf11b4 from'./revisionhistorysaverevisionformview';import _0x21fc36 from'../../../theme/icons/revision-history.svg';import{getTranslation as _0x4fe23a}from'../../utils/common-translations';export default class u extends _0xdd5764{static get[_0x339d('0x1a')](){return _0x339d('0x8');}static get['requires'](){return[_0x190153];}['init'](){const _0x19c47b=this[_0x339d('0x5')],_0x3583f0=_0x19c47b[_0x339d('0x19')][_0x339d('0x0')]('RevisionTracker');_0x19c47b['ui'][_0x339d('0xf')]['add']('revisionHistory',_0x20e06e=>{const _0x5f1f86=_0x1494e3(_0x20e06e),_0x3142ac=_0x5f1f86[_0x339d('0x13')][_0x339d('0x17')],_0x21abee=new _0x2766e7(_0x20e06e),_0x5e7e86=new _0x424890(_0x20e06e),_0x1eac8f=new _0x2bd73d(_0x20e06e),_0x4cbf58=new _0x424890(_0x20e06e),_0x2eab58=new _0x2bd73d(_0x20e06e),_0x154faf=new _0xdf11b4(_0x20e06e);function _0x5026b3(){_0x3142ac[_0x339d('0x14')]&&_0x3142ac[_0x339d('0x15')](0x0),_0x3142ac[_0x339d('0x9')](_0x21abee);}function _0x4d1023(){_0x5f1f86[_0x339d('0x1b')]=!0x1,_0x19c47b['editing']['view'][_0x339d('0x7')]();}return _0x5f1f86[_0x339d('0x6')](_0x339d('0xd'))['to'](_0x3583f0,_0x339d('0x10'),_0x3583f0,_0x339d('0xd'),_0x19c47b,_0x339d('0x16'),(_0x5b97e4,_0x3aea53,_0x6fd477)=>_0x5b97e4&&_0x3aea53&&!_0x6fd477),_0x5f1f86[_0x339d('0xb')][_0x339d('0x11')]({'icon':_0x21fc36,'label':_0x4fe23a(_0x20e06e,'Revision\x20history'),'tooltip':!0x0}),_0x1eac8f[_0x339d('0x11')]({'label':_0x4fe23a(_0x20e06e,_0x339d('0xc')),'withText':!0x0}),_0x1eac8f[_0x339d('0x6')](_0x339d('0xd'))['to'](_0x3583f0,_0x339d('0x10'),_0x3583f0,_0x339d('0xd'),_0x19c47b,'isReadOnly',(_0x4831a8,_0x5d2e0f,_0x290f3f)=>_0x4831a8&&_0x5d2e0f&&!_0x290f3f),_0x1eac8f['on']('execute',()=>function(){_0x3142ac[_0x339d('0x14')]&&_0x3142ac['remove'](0x0),(_0x154faf[_0x339d('0x12')](),_0x3142ac['add'](_0x154faf),_0x154faf[_0x339d('0x7')]());}()),_0x2eab58[_0x339d('0x11')]({'label':_0x4fe23a(_0x20e06e,'Open\x20revision\x20history'),'withText':!0x0}),_0x2eab58['bind']('isEnabled')['to'](_0x3583f0,_0x339d('0x10'),_0x19c47b,'isReadOnly',(_0x2a17a0,_0x313689)=>_0x2a17a0&&!_0x313689),_0x2eab58['on'](_0x339d('0x18'),()=>{_0x19c47b[_0x339d('0x2')][_0x339d('0x0')]('revisionHistory')['showRevisionViewerCallback'](),_0x4d1023();}),_0x5e7e86[_0x339d('0x17')][_0x339d('0x9')](_0x1eac8f),_0x4cbf58[_0x339d('0x17')][_0x339d('0x9')](_0x2eab58),_0x21abee[_0x339d('0x4')]['addMany']([_0x5e7e86,_0x4cbf58]),_0x5f1f86['on'](_0x339d('0xa'),()=>_0x5026b3()),_0x154faf['saveButtonView'][_0x339d('0x6')](_0x339d('0xd'))['to'](_0x3583f0,'isReady',_0x3583f0,_0x339d('0xd'),_0x19c47b,_0x339d('0x16'),(_0x28ce0e,_0x332b7c,_0x59fc99)=>_0x28ce0e&&_0x332b7c&&!_0x59fc99),_0x154faf['on']('submit',()=>(_0x19c47b['plugins'][_0x339d('0x0')](_0x190153)[_0x339d('0x1')]({'name':_0x154faf['revisionName']}),void _0x4d1023())),_0x154faf['on'](_0x339d('0xe'),()=>_0x5026b3()),_0x154faf[_0x339d('0x3')](),_0x5026b3(),_0x5f1f86;});}}
23
+ const _0x3a84=['isReady','bind','set','editing','items','submit','reset','isEnabled','cancel','editor','RevisionTracker','revisionHistory','saveRevision','init','componentFactory','pluginName','Save\x20current\x20revision','revisionName','focus','panelView','requires','RevisionHistoryUI','execute','view','addMany','config','Open\x20revision\x20history','children','length','isReadOnly','plugins','get','showRevisionViewerCallback','add'];(function(_0x5d25cf,_0x3a841f){const _0x479b30=function(_0x1cd195){while(--_0x1cd195){_0x5d25cf['push'](_0x5d25cf['shift']());}};_0x479b30(++_0x3a841f);}(_0x3a84,0x1eb));const _0x479b=function(_0x5d25cf,_0x3a841f){_0x5d25cf=_0x5d25cf-0x0;let _0x479b30=_0x3a84[_0x5d25cf];return _0x479b30;};import{Plugin as _0x48f918}from'ckeditor5/src/core';import{ListView as _0x3b50d3,ListItemView as _0x2867f0,ButtonView as _0x11080f,createDropdown as _0x8e1899}from'ckeditor5/src/ui';import _0x55dbbb from'../../revisiontracker';import _0x11de97 from'./revisionhistorysaverevisionformview';import _0x2409fa from'../../../theme/icons/revision-history.svg';import{getTranslation as _0x677feb}from'../../utils/common-translations';export default class l extends _0x48f918{static get[_0x479b('0x0')](){return _0x479b('0x6');}static get[_0x479b('0x5')](){return[_0x55dbbb];}[_0x479b('0x20')](){const _0xc63ed=this[_0x479b('0x1c')],_0x59a22b=_0xc63ed['plugins'][_0x479b('0x10')](_0x479b('0x1d'));_0xc63ed['ui'][_0x479b('0x21')][_0x479b('0x12')](_0x479b('0x1e'),_0x130000=>{const _0x32fed4=_0x8e1899(_0x130000),_0x4fcc99=_0x32fed4[_0x479b('0x4')]['children'],_0x472b62=new _0x3b50d3(_0x130000),_0x13055f=new _0x2867f0(_0x130000),_0x310cbd=new _0x11080f(_0x130000),_0x1bbc7e=new _0x2867f0(_0x130000),_0x1ce3be=new _0x11080f(_0x130000),_0x5085ab=new _0x11de97(_0x130000);function _0x4a62fe(){_0x4fcc99[_0x479b('0xd')]&&_0x4fcc99['remove'](0x0),_0x4fcc99[_0x479b('0x12')](_0x472b62);}function _0x18b818(){_0x32fed4['isOpen']=!0x1,_0xc63ed[_0x479b('0x16')][_0x479b('0x8')]['focus']();}return _0x32fed4['bind'](_0x479b('0x1a'))['to'](_0x59a22b,_0x479b('0x13'),_0x59a22b,'isEnabled',_0xc63ed,_0x479b('0xe'),(_0x53607d,_0x20047e,_0x1060fc)=>_0x53607d&&_0x20047e&&!_0x1060fc),_0x32fed4['buttonView'][_0x479b('0x15')]({'icon':_0x2409fa,'label':_0x677feb(_0x130000,'Revision\x20history'),'tooltip':!0x0}),_0x310cbd['set']({'label':_0x677feb(_0x130000,_0x479b('0x1')),'withText':!0x0}),_0x310cbd[_0x479b('0x14')](_0x479b('0x1a'))['to'](_0x59a22b,'isReady',_0x59a22b,_0x479b('0x1a'),_0xc63ed,_0x479b('0xe'),(_0xc436b0,_0x437ba3,_0x4cb229)=>_0xc436b0&&_0x437ba3&&!_0x4cb229),_0x310cbd['on']('execute',()=>function(){_0x4fcc99['length']&&_0x4fcc99['remove'](0x0),(_0x5085ab[_0x479b('0x19')](),_0x4fcc99[_0x479b('0x12')](_0x5085ab),_0x5085ab[_0x479b('0x3')]());}()),_0x1ce3be[_0x479b('0x15')]({'label':_0x677feb(_0x130000,_0x479b('0xb')),'withText':!0x0}),_0x1ce3be[_0x479b('0x14')](_0x479b('0x1a'))['to'](_0x59a22b,_0x479b('0x13'),_0xc63ed,_0x479b('0xe'),(_0x22aa43,_0x5e6e2e)=>_0x22aa43&&!_0x5e6e2e),_0x1ce3be['on'](_0x479b('0x7'),()=>{_0xc63ed[_0x479b('0xa')][_0x479b('0x10')]('revisionHistory')[_0x479b('0x11')](),_0x18b818();}),_0x13055f[_0x479b('0xc')][_0x479b('0x12')](_0x310cbd),_0x1bbc7e['children'][_0x479b('0x12')](_0x1ce3be),_0x472b62[_0x479b('0x17')][_0x479b('0x9')]([_0x13055f,_0x1bbc7e]),_0x32fed4['on']('change:isOpen',()=>_0x4a62fe()),_0x5085ab['saveButtonView'][_0x479b('0x14')](_0x479b('0x1a'))['to'](_0x59a22b,_0x479b('0x13'),_0x59a22b,_0x479b('0x1a'),_0xc63ed,'isReadOnly',(_0xc158f5,_0x3c1f77,_0x95635c)=>_0xc158f5&&_0x3c1f77&&!_0x95635c),_0x5085ab['on'](_0x479b('0x18'),()=>(_0xc63ed[_0x479b('0xf')][_0x479b('0x10')](_0x55dbbb)[_0x479b('0x1f')]({'name':_0x5085ab[_0x479b('0x2')]}),void _0x18b818())),_0x5085ab['on'](_0x479b('0x1b'),()=>_0x4a62fe()),_0x5085ab['render'](),_0x4a62fe(),_0x32fed4;});}}
@@ -1,39 +1,40 @@
1
- /**
2
- * @module revision-history/ui/revisionsidebar/revisionsidebar
3
- */
4
- import { Plugin, type PluginDependencies, type Editor } from 'ckeditor5/src/core';
5
- import type { default as RevisionView } from '../revision/revisionview';
6
- /**
7
- * TODO
8
- */
9
- export default class RevisionsSidebar extends Plugin {
10
- static defaultRevisionActions: Array<string>;
11
- static availableRevisionActions: Record<string, RevisionAction>;
12
- /**
13
- * @inheritDoc
14
- */
15
- static get pluginName(): 'RevisionsSidebar';
16
- /**
17
- * @inheritDoc
18
- */
19
- static get requires(): PluginDependencies;
20
- /**
21
- * @inheritDoc
22
- */
23
- constructor(editor: Editor);
24
- /**
25
- * @inheritDoc
26
- */
27
- init(): void;
28
- /**
29
- * @inheritDoc
30
- */
31
- destroy(): void;
32
- }
33
- export interface RevisionAction {
34
- name: string;
35
- class?: string;
36
- action: (editor: Editor, revisionView: RevisionView) => void;
37
- isVisible?: (editor: Editor, revisionView: RevisionView) => boolean;
38
- isEnabled?: (editor: Editor, revisionView: RevisionView) => boolean;
39
- }
1
+ /**
2
+ * @module revision-history/ui/revisionsidebar/revisionsidebar
3
+ */
4
+ import { Plugin, type Editor } from 'ckeditor5/src/core';
5
+ import RevisionViewer from '../../revisionviewer';
6
+ import type { default as RevisionView } from '../revision/revisionview';
7
+ /**
8
+ * TODO
9
+ */
10
+ export default class RevisionsSidebar extends Plugin {
11
+ static defaultRevisionActions: Array<string>;
12
+ static availableRevisionActions: Record<string, RevisionAction>;
13
+ /**
14
+ * @inheritDoc
15
+ */
16
+ static get pluginName(): "RevisionsSidebar";
17
+ /**
18
+ * @inheritDoc
19
+ */
20
+ static get requires(): readonly [typeof RevisionViewer];
21
+ /**
22
+ * @inheritDoc
23
+ */
24
+ constructor(editor: Editor);
25
+ /**
26
+ * @inheritDoc
27
+ */
28
+ init(): void;
29
+ /**
30
+ * @inheritDoc
31
+ */
32
+ destroy(): void;
33
+ }
34
+ export interface RevisionAction {
35
+ name: string;
36
+ class?: string;
37
+ action: (editor: Editor, revisionView: RevisionView) => void;
38
+ isVisible?: (editor: Editor, revisionView: RevisionView) => boolean;
39
+ isEnabled?: (editor: Editor, revisionView: RevisionView) => boolean;
40
+ }
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x23e9=['nameRevision','getRevision','restoreRevisionCallback','revisionSelected','editor','add','render','isEnabled','change:diff','fieldView','isSelected','get','selectRevision','length','listenTo','_handleDiffChange','diff','revisionSetName','isVisible','compare','bind','assign','data','element','_handleEditorDataReady','init','requires','config','repository','revisionHistory','plugins','revisionViews','revisionHistory.viewerSidebarContainer','getEarlierVisibleRevision','revisionHistory.revisionActions','setName','_revisions','_revisionsRepository','getIndex','destroy','availableRevisionActions','appendChild','string','select','getRevisionsInDiff','Name\x20this\x20revision','remove','_handleRevisionSelected','newRevisionId','RevisionsSidebar','Compare\x20against\x20selected','highlightRevisions','getLaterVisibleRevision','compareAgainstSelected','name','defaultRevisionActions','pluginName','_createRevisionActions','_sidebarView','Restore\x20this\x20revision','_revisionViewer'];(function(_0x4b86b8,_0x23e9f3){const _0x51a54b=function(_0x56dd39){while(--_0x56dd39){_0x4b86b8['push'](_0x4b86b8['shift']());}};_0x51a54b(++_0x23e9f3);}(_0x23e9,0x1a1));const _0x51a5=function(_0x4b86b8,_0x23e9f3){_0x4b86b8=_0x4b86b8-0x0;let _0x51a54b=_0x23e9[_0x4b86b8];return _0x51a54b;};import{Plugin as _0x4a61ad}from'ckeditor5/src/core';import _0x581670 from'./revisionssidebarview';import _0x40cb07 from'../../revisionviewer';export default class d extends _0x4a61ad{static get[_0x51a5('0x5')](){return _0x51a5('0x3b');}static get[_0x51a5('0x24')](){return[_0x40cb07];}constructor(_0x53e9e0){super(_0x53e9e0),this['_revisionViewer']=_0x53e9e0[_0x51a5('0x28')][_0x51a5('0x15')](_0x40cb07),this['_revisionsRepository']=this['_revisionViewer'][_0x51a5('0x26')],this[_0x51a5('0x7')]=null;}[_0x51a5('0x23')](){const _0x3fef6f=this['_revisionsRepository'][_0x51a5('0x2e')],_0x1ec246=this[_0x51a5('0x6')](),_0x55e982=this[_0x51a5('0xe')][_0x51a5('0x25')]['get'](_0x51a5('0x2a'));this[_0x51a5('0x7')]=new _0x581670(this[_0x51a5('0xe')]['locale'],_0x3fef6f,_0x1ec246),this[_0x51a5('0x7')]['on'](_0x51a5('0xd'),this['_handleRevisionSelected'][_0x51a5('0x1e')](this)),this['_sidebarView']['on'](_0x51a5('0x1b'),this['_handleRevisionSetName']['bind'](this)),this[_0x51a5('0x7')][_0x51a5('0x1e')](_0x51a5('0x11'))['to'](this[_0x51a5('0x9')]),this['_sidebarView']['timePeriodViews']['on'](_0x51a5('0xf'),(_0x276fbb,_0x263d00)=>{_0x263d00[_0x51a5('0x29')]['on'](_0x51a5('0xf'),(_0x37be06,_0x39989b)=>{_0x39989b[_0x51a5('0x1e')]('isEnabled','isReady')['to'](this['_revisionViewer']);});}),this['_sidebarView'][_0x51a5('0x10')](),this['listenTo'](this[_0x51a5('0xe')][_0x51a5('0x20')],'ready',this['_handleEditorDataReady'][_0x51a5('0x1e')](this)),this[_0x51a5('0x18')](this['_revisionViewer'],_0x51a5('0x12'),this[_0x51a5('0x19')][_0x51a5('0x1e')](this)),_0x55e982[_0x51a5('0x33')](this['_sidebarView'][_0x51a5('0x21')]);}[_0x51a5('0x31')](){this[_0x51a5('0x7')]['element'][_0x51a5('0x38')](),this[_0x51a5('0x7')][_0x51a5('0x31')]();}[_0x51a5('0x22')](){const _0x323649=this[_0x51a5('0x2f')][_0x51a5('0xb')](0x0);if(_0x323649){const _0x2db0af=this['_revisionsRepository'][_0x51a5('0x2b')](_0x323649['id']);this['_revisionViewer'][_0x51a5('0x1d')](_0x323649,_0x2db0af);}}[_0x51a5('0x39')](_0x2dfe02,_0x19224d){const _0xe72e5=this[_0x51a5('0x2f')][_0x51a5('0xb')](_0x19224d['id']),_0xfa11da=this[_0x51a5('0x2f')][_0x51a5('0x2b')](_0xe72e5['id']);this['_revisionViewer']['compare'](_0xe72e5,_0xfa11da);}['_handleRevisionSetName'](_0x239c1b,_0xaac9d5){this[_0x51a5('0x2f')][_0x51a5('0xb')](_0xaac9d5['id'])[_0x51a5('0x2d')](_0xaac9d5[_0x51a5('0x3')]);}[_0x51a5('0x19')](_0xea7004,_0x1de4ca,_0x6433ca){const _0x2f4f8d=this[_0x51a5('0x2f')]['getRevisionsInDiff'](_0x6433ca);_0x2f4f8d[_0x51a5('0x17')]>0x2?(this[_0x51a5('0x7')][_0x51a5('0x0')](_0x2f4f8d),this[_0x51a5('0x7')][_0x51a5('0x16')](null)):(this[_0x51a5('0x7')][_0x51a5('0x0')]([]),this['_sidebarView'][_0x51a5('0x16')](_0x2f4f8d[0x0]));}['_createRevisionActions'](){const _0x4705f0=this['editor'],_0x82ff3b=d[_0x51a5('0x32')],_0x4afdea=_0x4705f0[_0x51a5('0x25')][_0x51a5('0x15')](_0x51a5('0x2c'))||d[_0x51a5('0x4')];if(_0x4afdea[_0x51a5('0x17')])return _0x4afdea['map'](_0x47d7db=>{const _0x5d7368=_0x51a5('0x34')==typeof _0x47d7db?Object[_0x51a5('0x1f')]({},_0x82ff3b[_0x47d7db]):_0x47d7db;return _0x5d7368['action']=_0x5d7368['action'][_0x51a5('0x1e')](this,_0x4705f0),_0x5d7368[_0x51a5('0x1c')]&&(_0x5d7368[_0x51a5('0x1c')]=_0x5d7368['isVisible'][_0x51a5('0x1e')](this,_0x4705f0)),_0x5d7368;});}}d[_0x51a5('0x32')]={'compareAgainstSelected':{'name':_0x51a5('0x3c'),'action':({plugins:_0x5e8dae},_0x238f4c)=>{const _0x3dd67a=_0x5e8dae['get'](_0x40cb07),_0x1cae2c=_0x3dd67a[_0x51a5('0x26')];let _0x1465f6=_0x3dd67a['diff'][_0x51a5('0x3a')],_0x451953=_0x238f4c['id'];_0x1cae2c[_0x51a5('0x30')](_0x1465f6)>_0x1cae2c['getIndex'](_0x451953)&&([_0x1465f6,_0x451953]=[_0x451953,_0x1465f6]),_0x3dd67a['compare'](_0x1465f6,_0x451953);},'isVisible':({plugins:_0x5c3d6b},_0x18ff59)=>{const _0x2c05f4=_0x5c3d6b[_0x51a5('0x15')](_0x40cb07);return!(_0x2c05f4[_0x51a5('0x26')][_0x51a5('0x36')](_0x2c05f4[_0x51a5('0x1a')])['length']>0x2)&&!_0x18ff59[_0x51a5('0x14')];}},'restoreRevision':{'name':_0x51a5('0x8'),'action':(_0x32c5ad,{id:_0x86e086})=>{_0x32c5ad[_0x51a5('0x25')][_0x51a5('0x15')](_0x51a5('0x27'))[_0x51a5('0xc')](_0x86e086);},'isVisible':({plugins:_0x21fc36},_0x356178)=>!!_0x21fc36[_0x51a5('0x15')](_0x40cb07)['repository'][_0x51a5('0x1')](_0x356178['id'])},'nameRevision':{'name':_0x51a5('0x37'),'action':({plugins:_0x309e62},{id:_0x5da514,revisionNameView:_0x1b4a3d})=>{const _0x5855d1=_0x309e62[_0x51a5('0x15')](_0x40cb07),_0x4d1292=_0x5855d1[_0x51a5('0x26')][_0x51a5('0x2b')](_0x5da514);_0x5855d1[_0x51a5('0x1d')](_0x5da514,_0x4d1292),_0x1b4a3d['focus'](),_0x1b4a3d[_0x51a5('0x13')][_0x51a5('0x35')]();}}},d[_0x51a5('0x4')]=[_0x51a5('0x2'),'restoreRevision',_0x51a5('0xa')];
23
+ const _0x4bbc=['_createRevisionActions','isSelected','revisionViews','highlightRevisions','getRevisionsInDiff','length','select','config','get','RevisionsSidebar','ready','diff','revisionSelected','fieldView','defaultRevisionActions','data','assign','compare','add','listenTo','appendChild','revisionHistory.revisionActions','isReady','_handleRevisionSelected','_revisions','Name\x20this\x20revision','_sidebarView','setName','name','Restore\x20this\x20revision','focus','newRevisionId','_handleRevisionSetName','bind','map','restoreRevision','locale','availableRevisionActions','Compare\x20against\x20selected','_handleEditorDataReady','compareAgainstSelected','restoreRevisionCallback','revisionHistory.viewerSidebarContainer','init','pluginName','isVisible','getLaterVisibleRevision','element','revisionSetName','revisionHistory','render','editor','action','_revisionViewer','selectRevision','timePeriodViews','_revisionsRepository','string','destroy','getEarlierVisibleRevision','getIndex','repository','isEnabled','nameRevision','remove','getRevision','_handleDiffChange'];(function(_0x2a1916,_0x4bbc53){const _0x26633a=function(_0x4fd735){while(--_0x4fd735){_0x2a1916['push'](_0x2a1916['shift']());}};_0x26633a(++_0x4bbc53);}(_0x4bbc,0x114));const _0x2663=function(_0x2a1916,_0x4bbc53){_0x2a1916=_0x2a1916-0x0;let _0x26633a=_0x4bbc[_0x2a1916];return _0x26633a;};import{Plugin as _0x14e7f1}from'ckeditor5/src/core';import _0x2aef6b from'./revisionssidebarview';import _0x3778a1 from'../../revisionviewer';export default class R extends _0x14e7f1{static get[_0x2663('0x24')](){return _0x2663('0x1');}static get['requires'](){return[_0x3778a1];}constructor(_0x163f44){super(_0x163f44),this['_revisionViewer']=_0x163f44['plugins'][_0x2663('0x0')](_0x3778a1),this['_revisionsRepository']=this[_0x2663('0x2d')][_0x2663('0x35')],this[_0x2663('0x12')]=null;}[_0x2663('0x23')](){const _0x47cc9d=this['_revisionsRepository'][_0x2663('0x10')],_0x459cbf=this[_0x2663('0x3b')](),_0xb9f751=this[_0x2663('0x2b')][_0x2663('0x42')]['get'](_0x2663('0x22'));this[_0x2663('0x12')]=new _0x2aef6b(this[_0x2663('0x2b')][_0x2663('0x1c')],_0x47cc9d,_0x459cbf),this[_0x2663('0x12')]['on'](_0x2663('0x4'),this[_0x2663('0xf')]['bind'](this)),this[_0x2663('0x12')]['on'](_0x2663('0x28'),this[_0x2663('0x18')][_0x2663('0x19')](this)),this[_0x2663('0x12')][_0x2663('0x19')](_0x2663('0x36'))['to'](this['_revisionViewer']),this[_0x2663('0x12')][_0x2663('0x2f')]['on'](_0x2663('0xa'),(_0x15e8c4,_0x222b6b)=>{_0x222b6b[_0x2663('0x3d')]['on'](_0x2663('0xa'),(_0x43b17b,_0x27595a)=>{_0x27595a['bind']('isEnabled',_0x2663('0xe'))['to'](this[_0x2663('0x2d')]);});}),this[_0x2663('0x12')][_0x2663('0x2a')](),this[_0x2663('0xb')](this[_0x2663('0x2b')][_0x2663('0x7')],_0x2663('0x2'),this[_0x2663('0x1f')]['bind'](this)),this[_0x2663('0xb')](this[_0x2663('0x2d')],'change:diff',this[_0x2663('0x3a')][_0x2663('0x19')](this)),_0xb9f751[_0x2663('0xc')](this[_0x2663('0x12')][_0x2663('0x27')]);}[_0x2663('0x32')](){this[_0x2663('0x12')]['element'][_0x2663('0x38')](),this[_0x2663('0x12')][_0x2663('0x32')]();}[_0x2663('0x1f')](){const _0x22ba27=this[_0x2663('0x30')][_0x2663('0x39')](0x0);if(_0x22ba27){const _0x52ccb9=this[_0x2663('0x30')][_0x2663('0x33')](_0x22ba27['id']);this[_0x2663('0x2d')]['compare'](_0x22ba27,_0x52ccb9);}}['_handleRevisionSelected'](_0x4b3fbb,_0xcfb929){const _0x1b98d8=this[_0x2663('0x30')][_0x2663('0x39')](_0xcfb929['id']),_0x50e1fb=this['_revisionsRepository'][_0x2663('0x33')](_0x1b98d8['id']);this[_0x2663('0x2d')][_0x2663('0x9')](_0x1b98d8,_0x50e1fb);}['_handleRevisionSetName'](_0x579c52,_0x168eaf){this[_0x2663('0x30')][_0x2663('0x39')](_0x168eaf['id'])[_0x2663('0x13')](_0x168eaf[_0x2663('0x14')]);}[_0x2663('0x3a')](_0xc2cb11,_0x13f3b3,_0x343242){const _0x2d9b77=this['_revisionsRepository'][_0x2663('0x3f')](_0x343242);_0x2d9b77[_0x2663('0x40')]>0x2?(this[_0x2663('0x12')]['highlightRevisions'](_0x2d9b77),this[_0x2663('0x12')][_0x2663('0x2e')](null)):(this[_0x2663('0x12')][_0x2663('0x3e')]([]),this[_0x2663('0x12')][_0x2663('0x2e')](_0x2d9b77[0x0]));}[_0x2663('0x3b')](){const _0x21d2e8=this[_0x2663('0x2b')],_0x1b87b0=R[_0x2663('0x1d')],_0x10647f=_0x21d2e8[_0x2663('0x42')]['get'](_0x2663('0xd'))||R[_0x2663('0x6')];if(_0x10647f[_0x2663('0x40')])return _0x10647f[_0x2663('0x1a')](_0x157368=>{const _0x1f559a=_0x2663('0x31')==typeof _0x157368?Object[_0x2663('0x8')]({},_0x1b87b0[_0x157368]):_0x157368;return _0x1f559a[_0x2663('0x2c')]=_0x1f559a[_0x2663('0x2c')][_0x2663('0x19')](this,_0x21d2e8),_0x1f559a[_0x2663('0x25')]&&(_0x1f559a[_0x2663('0x25')]=_0x1f559a[_0x2663('0x25')][_0x2663('0x19')](this,_0x21d2e8)),_0x1f559a;});}}R['availableRevisionActions']={'compareAgainstSelected':{'name':_0x2663('0x1e'),'action':({plugins:_0x5ce1a1},_0x180557)=>{const _0x17915e=_0x5ce1a1[_0x2663('0x0')](_0x3778a1),_0x4953cc=_0x17915e['repository'];let _0x3b6f27=_0x17915e['diff'][_0x2663('0x17')],_0x56c826=_0x180557['id'];_0x4953cc[_0x2663('0x34')](_0x3b6f27)>_0x4953cc[_0x2663('0x34')](_0x56c826)&&([_0x3b6f27,_0x56c826]=[_0x56c826,_0x3b6f27]),_0x17915e[_0x2663('0x9')](_0x3b6f27,_0x56c826);},'isVisible':({plugins:_0x14a780},_0x18abcf)=>{const _0x119cc9=_0x14a780['get'](_0x3778a1);return!(_0x119cc9[_0x2663('0x35')]['getRevisionsInDiff'](_0x119cc9[_0x2663('0x3')])[_0x2663('0x40')]>0x2)&&!_0x18abcf[_0x2663('0x3c')];}},'restoreRevision':{'name':_0x2663('0x15'),'action':(_0x3d8473,{id:_0x5312d8})=>{_0x3d8473[_0x2663('0x42')][_0x2663('0x0')](_0x2663('0x29'))[_0x2663('0x21')](_0x5312d8);},'isVisible':({plugins:_0x10262c},_0x4badeb)=>!!_0x10262c[_0x2663('0x0')](_0x3778a1)['repository'][_0x2663('0x26')](_0x4badeb['id'])},'nameRevision':{'name':_0x2663('0x11'),'action':({plugins:_0x5872a6},{id:_0xdf6b81,revisionNameView:_0x12edd4})=>{const _0x50c07a=_0x5872a6[_0x2663('0x0')](_0x3778a1),_0x33103a=_0x50c07a[_0x2663('0x35')]['getEarlierVisibleRevision'](_0xdf6b81);_0x50c07a[_0x2663('0x9')](_0xdf6b81,_0x33103a),_0x12edd4[_0x2663('0x16')](),_0x12edd4[_0x2663('0x5')][_0x2663('0x41')]();}}},R[_0x2663('0x6')]=[_0x2663('0x20'),_0x2663('0x1b'),_0x2663('0x37')];
@@ -1,4 +1,4 @@
1
- /**
2
- * @module revision-history/ui/revisionsidebar/revisionsidebarheaderview
3
- */
4
- import '../../../theme/revisionssidebar/revisionssidebarheader.css';
1
+ /**
2
+ * @module revision-history/ui/revisionsidebar/revisionsidebarheaderview
3
+ */
4
+ import '../../../theme/revisionssidebar/revisionssidebarheader.css';
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5e78=['content','ck-revision-history-sidebar__header','ck-reset_all','ck-revision-history-sidebar__header__label','div'];(function(_0x35ec76,_0x5e78cb){const _0x514f9b=function(_0x536104){while(--_0x536104){_0x35ec76['push'](_0x35ec76['shift']());}};_0x514f9b(++_0x5e78cb);}(_0x5e78,0x146));const _0x514f=function(_0x35ec76,_0x5e78cb){_0x35ec76=_0x35ec76-0x0;let _0x514f9b=_0x5e78[_0x35ec76];return _0x514f9b;};import{View as _0x47e5df,IconView as _0x2a2a52}from'ckeditor5/src/ui';import{getTranslation as _0x550466}from'../../utils/common-translations';import _0x2f20d1 from'../../../theme/icons/revision-history.svg';import'../../../theme/revisionssidebar/revisionssidebarheader.css';export default class ts extends _0x47e5df{constructor(_0x594e8b){super(_0x594e8b);const _0x218852=new _0x2a2a52();_0x218852[_0x514f('0x4')]=_0x2f20d1,this['setTemplate']({'tag':_0x514f('0x3'),'attributes':{'class':['ck',_0x514f('0x1'),_0x514f('0x0')]},'children':[_0x218852,{'tag':'span','attributes':{'class':['ck',_0x514f('0x2')]},'children':[_0x550466(_0x594e8b,'Revision\x20history')]}]});}}
23
+ const _0x26d0=['ck-revision-history-sidebar__header__label','ck-revision-history-sidebar__header','content','span','ck-reset_all','div','Revision\x20history','setTemplate'];(function(_0x3091bb,_0x26d028){const _0x49bcff=function(_0xbb8815){while(--_0xbb8815){_0x3091bb['push'](_0x3091bb['shift']());}};_0x49bcff(++_0x26d028);}(_0x26d0,0x130));const _0x49bc=function(_0x3091bb,_0x26d028){_0x3091bb=_0x3091bb-0x0;let _0x49bcff=_0x26d0[_0x3091bb];return _0x49bcff;};import{View as _0x17070d,IconView as _0xf83a9b}from'ckeditor5/src/ui';import{getTranslation as _0x11a859}from'../../utils/common-translations';import _0x2e63cc from'../../../theme/icons/revision-history.svg';import'../../../theme/revisionssidebar/revisionssidebarheader.css';export default class ts extends _0x17070d{constructor(_0x4b0ce1){super(_0x4b0ce1);const _0x73529d=new _0xf83a9b();_0x73529d[_0x49bc('0x2')]=_0x2e63cc,this[_0x49bc('0x7')]({'tag':_0x49bc('0x5'),'attributes':{'class':['ck',_0x49bc('0x4'),_0x49bc('0x1')]},'children':[_0x73529d,{'tag':_0x49bc('0x3'),'attributes':{'class':['ck',_0x49bc('0x0')]},'children':[_0x11a859(_0x4b0ce1,_0x49bc('0x6'))]}]});}}
@@ -1,25 +1,25 @@
1
- /**
2
- * @module revision-history/ui/revisionsidebar/revisionsidebartimeperiodview
3
- */
4
- import { View, type ViewCollection } from 'ckeditor5/src/ui';
5
- import type { Locale } from 'ckeditor5/src/utils';
6
- import RevisionView from '../revision/revisionview';
7
- import '../../../theme/revisionssidebar/revisionssidebartimeperiod.css';
8
- import type { RevisionAction } from './revisionssidebar';
9
- import type Revision from '../../revision';
10
- /**
11
- * TODO
12
- */
13
- export default class RevisionsSidebarTimePeriodView extends View {
14
- startDate: Date;
15
- revisionViews: ViewCollection<RevisionView>;
16
- constructor(locale: Locale, startDate: Date, revisionActions: Array<RevisionAction>);
17
- /**
18
- * TODO
19
- */
20
- addRevision(newRevision: Revision): void;
21
- /**
22
- * TODO
23
- */
24
- removeRevision(revision: Revision): void;
25
- }
1
+ /**
2
+ * @module revision-history/ui/revisionsidebar/revisionsidebartimeperiodview
3
+ */
4
+ import { View, type ViewCollection } from 'ckeditor5/src/ui';
5
+ import type { Locale } from 'ckeditor5/src/utils';
6
+ import RevisionView from '../revision/revisionview';
7
+ import '../../../theme/revisionssidebar/revisionssidebartimeperiod.css';
8
+ import type { RevisionAction } from './revisionssidebar';
9
+ import type Revision from '../../revision';
10
+ /**
11
+ * TODO
12
+ */
13
+ export default class RevisionsSidebarTimePeriodView extends View {
14
+ startDate: Date;
15
+ revisionViews: ViewCollection<RevisionView>;
16
+ constructor(locale: Locale, startDate: Date, revisionActions: Array<RevisionAction>);
17
+ /**
18
+ * TODO
19
+ */
20
+ addRevision(newRevision: Revision): void;
21
+ /**
22
+ * TODO
23
+ */
24
+ removeRevision(revision: Revision): void;
25
+ }
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1a48=['_revisionActions','div','remove','revisionViews','find','uiLanguage','ck-revision-history-sidebar__time-period__revisions','ck-revision-history-sidebar__time-period__label','startDate','createCollection','localizedPeriodName','setName','delegate','locale','span','removeRevision','addRevision'];(function(_0x42f893,_0x1a48ce){const _0x85ccdf=function(_0x126746){while(--_0x126746){_0x42f893['push'](_0x42f893['shift']());}};_0x85ccdf(++_0x1a48ce);}(_0x1a48,0x17d));const _0x85cc=function(_0x42f893,_0x1a48ce){_0x42f893=_0x42f893-0x0;let _0x85ccdf=_0x1a48[_0x42f893];return _0x85ccdf;};import{View as _0x1f3dac}from'ckeditor5/src/ui';import _0x568dee from'../revision/revisionview';import{getDateTimePeriodInfo as _0x2b0ec8}from'./utils';import'../../../theme/revisionssidebar/revisionssidebartimeperiod.css';export default class _i extends _0x1f3dac{constructor(_0x44c645,_0xbe39fa,_0x4b6311){super(_0x44c645);const _0xb1d0af=_0x2b0ec8(_0xbe39fa,this[_0x85cc('0x6')][_0x85cc('0xf')])[_0x85cc('0x3')];this[_0x85cc('0x1')]=_0xbe39fa,this[_0x85cc('0xd')]=this[_0x85cc('0x2')](),this[_0x85cc('0xa')]=_0x4b6311,this[_0x85cc('0xd')][_0x85cc('0x5')]('select')['to'](this),this[_0x85cc('0xd')][_0x85cc('0x5')](_0x85cc('0x4'))['to'](this),this['setTemplate']({'tag':_0x85cc('0xb'),'attributes':{'class':['ck','ck-revision-history-sidebar__time-period']},'children':[{'tag':_0x85cc('0x7'),'attributes':{'class':['ck',_0x85cc('0x0')]},'children':[{'text':_0xb1d0af}]},{'tag':_0x85cc('0xb'),'attributes':{'class':['ck',_0x85cc('0x10')]},'children':this[_0x85cc('0xd')]}]});}[_0x85cc('0x9')](_0x36ae7c){const _0x32075d=new _0x568dee(this[_0x85cc('0x6')],_0x36ae7c,this['_revisionActions']);this[_0x85cc('0xd')]['add'](_0x32075d);}[_0x85cc('0x8')](_0x2c4150){const _0x27fc90=this['revisionViews'][_0x85cc('0xe')](_0x4a9063=>_0x4a9063['id']===_0x2c4150['id']);this[_0x85cc('0xd')][_0x85cc('0xc')](_0x27fc90);}}
23
+ const _0xfb85=['ck-revision-history-sidebar__time-period__revisions','setTemplate','addRevision','locale','startDate','uiLanguage','delegate','ck-revision-history-sidebar__time-period__label','removeRevision','revisionViews','add','div','remove','ck-revision-history-sidebar__time-period','setName','localizedPeriodName','_revisionActions'];(function(_0x596162,_0xfb8520){const _0x5c82e2=function(_0x3a2c42){while(--_0x3a2c42){_0x596162['push'](_0x596162['shift']());}};_0x5c82e2(++_0xfb8520);}(_0xfb85,0x1db));const _0x5c82=function(_0x596162,_0xfb8520){_0x596162=_0x596162-0x0;let _0x5c82e2=_0xfb85[_0x596162];return _0x5c82e2;};import{View as _0x5d4b85}from'ckeditor5/src/ui';import _0x3241f7 from'../revision/revisionview';import{getDateTimePeriodInfo as _0x1e577e}from'./utils';import'../../../theme/revisionssidebar/revisionssidebartimeperiod.css';export default class _i extends _0x5d4b85{constructor(_0x383345,_0x2d5f92,_0x14313e){super(_0x383345);const _0x5f533f=_0x1e577e(_0x2d5f92,this['locale'][_0x5c82('0x6')])[_0x5c82('0x10')];this[_0x5c82('0x5')]=_0x2d5f92,this[_0x5c82('0xa')]=this['createCollection'](),this[_0x5c82('0x0')]=_0x14313e,this['revisionViews'][_0x5c82('0x7')]('select')['to'](this),this[_0x5c82('0xa')][_0x5c82('0x7')](_0x5c82('0xf'))['to'](this),this[_0x5c82('0x2')]({'tag':_0x5c82('0xc'),'attributes':{'class':['ck',_0x5c82('0xe')]},'children':[{'tag':'span','attributes':{'class':['ck',_0x5c82('0x8')]},'children':[{'text':_0x5f533f}]},{'tag':_0x5c82('0xc'),'attributes':{'class':['ck',_0x5c82('0x1')]},'children':this[_0x5c82('0xa')]}]});}[_0x5c82('0x3')](_0xf763c6){const _0x132365=new _0x3241f7(this[_0x5c82('0x4')],_0xf763c6,this[_0x5c82('0x0')]);this[_0x5c82('0xa')][_0x5c82('0xb')](_0x132365);}[_0x5c82('0x9')](_0x3979a8){const _0x39da0c=this[_0x5c82('0xa')]['find'](_0x40ae2f=>_0x40ae2f['id']===_0x3979a8['id']);this['revisionViews'][_0x5c82('0xd')](_0x39da0c);}}
@@ -1,40 +1,40 @@
1
- /**
2
- * @module revision-history/ui/revisionsidebar/revisionsidebarview
3
- */
4
- import { View, type ViewCollection } from 'ckeditor5/src/ui';
5
- import type { Locale, Collection } from 'ckeditor5/src/utils';
6
- import RevisionsSidebarTimePeriodView from './revisionssidebartimeperiodview';
7
- import '../../../theme/revisionssidebar/revisionssidebar.css';
8
- import type { default as RevisionView } from '../revision/revisionview';
9
- import type { RevisionAction } from './revisionssidebar';
10
- import type Revision from '../../revision';
11
- /**
12
- * TODO
13
- */
14
- export default class RevisionsSidebarView extends View {
15
- timePeriodViews: ViewCollection<RevisionsSidebarTimePeriodView>;
16
- /**
17
- * @observable
18
- */
19
- isEnabled: boolean;
20
- /**
21
- * @inheritDoc
22
- */
23
- constructor(locale: Locale, revisions: Collection<Revision>, revisionActions: Array<RevisionAction>);
24
- /**
25
- * @inheritDoc
26
- */
27
- render(): void;
28
- /**
29
- * TODO
30
- */
31
- get revisionViews(): Array<RevisionView>;
32
- /**
33
- * TODO
34
- */
35
- selectRevision(revisionToSelect: Revision | null): void;
36
- /**
37
- * TODO
38
- */
39
- highlightRevisions(revisionsToHighlight: Array<Revision>): void;
40
- }
1
+ /**
2
+ * @module revision-history/ui/revisionsidebar/revisionsidebarview
3
+ */
4
+ import { View, type ViewCollection } from 'ckeditor5/src/ui';
5
+ import type { Locale, Collection } from 'ckeditor5/src/utils';
6
+ import RevisionsSidebarTimePeriodView from './revisionssidebartimeperiodview';
7
+ import '../../../theme/revisionssidebar/revisionssidebar.css';
8
+ import type { default as RevisionView } from '../revision/revisionview';
9
+ import type { RevisionAction } from './revisionssidebar';
10
+ import type Revision from '../../revision';
11
+ /**
12
+ * TODO
13
+ */
14
+ export default class RevisionsSidebarView extends View {
15
+ timePeriodViews: ViewCollection<RevisionsSidebarTimePeriodView>;
16
+ /**
17
+ * @observable
18
+ */
19
+ isEnabled: boolean;
20
+ /**
21
+ * @inheritDoc
22
+ */
23
+ constructor(locale: Locale, revisions: Collection<Revision>, revisionActions: Array<RevisionAction>);
24
+ /**
25
+ * @inheritDoc
26
+ */
27
+ render(): void;
28
+ /**
29
+ * TODO
30
+ */
31
+ get revisionViews(): Array<RevisionView>;
32
+ /**
33
+ * TODO
34
+ */
35
+ selectRevision(revisionToSelect: Revision | null): void;
36
+ /**
37
+ * TODO
38
+ */
39
+ highlightRevisions(revisionsToHighlight: Array<Revision>): void;
40
+ }
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4555=['ck-disabled','map','_revisions','locale','ck-revision-history-sidebar','_addRevision','highlightRevisions','some','unhighlight','addRevision','_revisionActions','uiLanguage','getTime','flat','ck-reset','revisionSelected','selectRevision','startDate','remove','render','ck-rounded-corners','add','select','revisionSetName','div','setName','createdAt','_removeRevision','fire','ck-revision-history-sidebar__timeline','set','revisionViews','get','timePeriodViews','isEnabled','delegate','deselect','setTemplate'];(function(_0x59dbbf,_0x45558f){const _0x52445f=function(_0x3182e4){while(--_0x3182e4){_0x59dbbf['push'](_0x59dbbf['shift']());}};_0x52445f(++_0x45558f);}(_0x4555,0x1dd));const _0x5244=function(_0x59dbbf,_0x45558f){_0x59dbbf=_0x59dbbf-0x0;let _0x52445f=_0x4555[_0x59dbbf];return _0x52445f;};import{View as _0x301575}from'ckeditor5/src/ui';import _0x5c6497 from'./revisionssidebartimeperiodview';import _0x99ed1 from'./revisionssidebarheaderview';import{getDateTimePeriodInfo as _0x116c96}from'./utils';import'../../../theme/revisionssidebar/revisionssidebar.css';export default class vi extends _0x301575{constructor(_0x3018b4,_0x4aae0f,_0x1c994f){super(_0x3018b4);const _0x4a88a5=this['bindTemplate'];this[_0x5244('0xc')]=this['createCollection'](),this[_0x5244('0xc')][_0x5244('0xe')]('select')['to'](this),this[_0x5244('0xc')][_0x5244('0xe')](_0x5244('0x4'))['to'](this),this[_0x5244('0x13')]=_0x4aae0f,this[_0x5244('0x1b')]=_0x1c994f,this['on'](_0x5244('0x1'),(_0x1d10fa,_0xbdf4a5)=>{this[_0x5244('0x7')](_0x5244('0x20'),_0xbdf4a5);}),this['on'](_0x5244('0x4'),(_0x152aaf,_0x47f958)=>{this['fire'](_0x5244('0x2'),_0x47f958);}),this[_0x5244('0x9')](_0x5244('0xd'),!0x1),this[_0x5244('0x10')]({'tag':'div','attributes':{'class':['ck',_0x5244('0x1f'),_0x5244('0x25'),_0x5244('0x15')]},'children':[new _0x99ed1(_0x3018b4),{'tag':_0x5244('0x3'),'attributes':{'class':['ck',_0x5244('0x8'),_0x4a88a5['if'](_0x5244('0xd'),_0x5244('0x11'),_0x264ece=>!_0x264ece)]},'children':this[_0x5244('0xc')]}]});}[_0x5244('0x24')](){super[_0x5244('0x24')]();for(const _0x2ed5bf of this[_0x5244('0x13')])this[_0x5244('0x16')](_0x2ed5bf);this[_0x5244('0x13')]['on'](_0x5244('0x0'),(_0x1f8228,_0x57f30a)=>{this['_addRevision'](_0x57f30a);}),this[_0x5244('0x13')]['on'](_0x5244('0x23'),(_0x279951,_0x3c5090)=>{this[_0x5244('0x6')](_0x3c5090);});}get[_0x5244('0xa')](){return this[_0x5244('0xc')][_0x5244('0x12')](_0x749df9=>_0x749df9[_0x5244('0xa')][_0x5244('0x12')](_0x5bea4d=>_0x5bea4d))[_0x5244('0x1e')]();}[_0x5244('0x21')](_0x44ed43){for(const _0x1f94f0 of this[_0x5244('0xa')])_0x44ed43&&_0x44ed43['id']===_0x1f94f0['id']?_0x1f94f0[_0x5244('0x1')]():_0x1f94f0[_0x5244('0xf')]();}[_0x5244('0x17')](_0x7997de){for(const _0x4600ca of this[_0x5244('0xa')])_0x7997de[_0x5244('0x18')](({id:_0x38031d})=>_0x38031d===_0x4600ca['id'])?_0x4600ca['highlight']():_0x4600ca[_0x5244('0x19')]();}[_0x5244('0x16')](_0x2716a6){const _0x4d8be3=_0x116c96(_0x2716a6[_0x5244('0x5')],this[_0x5244('0x14')][_0x5244('0x1c')])[_0x5244('0x22')];let _0x53cd5e=this['timePeriodViews'][_0x5244('0xb')](0x0);_0x53cd5e&&_0x53cd5e[_0x5244('0x22')][_0x5244('0x1d')]()===_0x4d8be3['getTime']()||(_0x53cd5e=new _0x5c6497(this[_0x5244('0x14')],_0x4d8be3,this['_revisionActions']),this[_0x5244('0xc')][_0x5244('0x0')](_0x53cd5e)),_0x53cd5e[_0x5244('0x1a')](_0x2716a6);}['_removeRevision'](_0x322853){const _0x22ae18=_0x116c96(_0x322853['createdAt'],this[_0x5244('0x14')][_0x5244('0x1c')])[_0x5244('0x22')];this['_getTimePeriodViewByStartDate'](_0x22ae18)['removeRevision'](_0x322853);}['_getTimePeriodViewByStartDate'](_0x2189ad){return this['timePeriodViews']['find'](_0x131407=>_0x131407[_0x5244('0x22')][_0x5244('0x1d')]()===_0x2189ad[_0x5244('0x1d')]());}}
23
+ const _0x4c62=['addRevision','_revisionActions','uiLanguage','fire','some','unhighlight','createdAt','ck-revision-history-sidebar__timeline','_removeRevision','highlight','ck-disabled','setTemplate','timePeriodViews','delegate','getTime','removeRevision','set','highlightRevisions','find','bindTemplate','div','ck-reset','add','selectRevision','isEnabled','render','ck-revision-history-sidebar','flat','remove','_revisions','revisionViews','select','locale','startDate','_addRevision','revisionSelected','_getTimePeriodViewByStartDate'];(function(_0x4ba4cf,_0x4c6263){const _0x2a6e11=function(_0x19a514){while(--_0x19a514){_0x4ba4cf['push'](_0x4ba4cf['shift']());}};_0x2a6e11(++_0x4c6263);}(_0x4c62,0x1a2));const _0x2a6e=function(_0x4ba4cf,_0x4c6263){_0x4ba4cf=_0x4ba4cf-0x0;let _0x2a6e11=_0x4c62[_0x4ba4cf];return _0x2a6e11;};import{View as _0xa17d96}from'ckeditor5/src/ui';import _0x24d82a from'./revisionssidebartimeperiodview';import _0x208b6d from'./revisionssidebarheaderview';import{getDateTimePeriodInfo as _0x3e919e}from'./utils';import'../../../theme/revisionssidebar/revisionssidebar.css';export default class vi extends _0xa17d96{constructor(_0x292d2f,_0x22c619,_0x5ebb2a){super(_0x292d2f);const _0x1b3bbe=this[_0x2a6e('0x8')];this[_0x2a6e('0x1')]=this['createCollection'](),this[_0x2a6e('0x1')][_0x2a6e('0x2')](_0x2a6e('0x14'))['to'](this),this[_0x2a6e('0x1')][_0x2a6e('0x2')]('setName')['to'](this),this[_0x2a6e('0x12')]=_0x22c619,this[_0x2a6e('0x1b')]=_0x5ebb2a,this['on'](_0x2a6e('0x14'),(_0x31bad4,_0x593441)=>{this[_0x2a6e('0x1d')](_0x2a6e('0x18'),_0x593441);}),this['on']('setName',(_0x5d0fc0,_0x1a2be8)=>{this[_0x2a6e('0x1d')]('revisionSetName',_0x1a2be8);}),this[_0x2a6e('0x5')](_0x2a6e('0xd'),!0x1),this[_0x2a6e('0x0')]({'tag':_0x2a6e('0x9'),'attributes':{'class':['ck',_0x2a6e('0xa'),'ck-rounded-corners',_0x2a6e('0xf')]},'children':[new _0x208b6d(_0x292d2f),{'tag':'div','attributes':{'class':['ck',_0x2a6e('0x21'),_0x1b3bbe['if'](_0x2a6e('0xd'),_0x2a6e('0x24'),_0x34d034=>!_0x34d034)]},'children':this[_0x2a6e('0x1')]}]});}[_0x2a6e('0xe')](){super['render']();for(const _0x28fff9 of this[_0x2a6e('0x12')])this[_0x2a6e('0x17')](_0x28fff9);this[_0x2a6e('0x12')]['on'](_0x2a6e('0xb'),(_0x17b9b1,_0x4e0473)=>{this[_0x2a6e('0x17')](_0x4e0473);}),this[_0x2a6e('0x12')]['on'](_0x2a6e('0x11'),(_0x26203d,_0x1184bb)=>{this[_0x2a6e('0x22')](_0x1184bb);});}get[_0x2a6e('0x13')](){return this[_0x2a6e('0x1')]['map'](_0x310ea1=>_0x310ea1['revisionViews']['map'](_0x5d93e6=>_0x5d93e6))[_0x2a6e('0x10')]();}[_0x2a6e('0xc')](_0x927f90){for(const _0x4ea873 of this[_0x2a6e('0x13')])_0x927f90&&_0x927f90['id']===_0x4ea873['id']?_0x4ea873['select']():_0x4ea873['deselect']();}[_0x2a6e('0x6')](_0x308453){for(const _0x4459f9 of this['revisionViews'])_0x308453[_0x2a6e('0x1e')](({id:_0x260285})=>_0x260285===_0x4459f9['id'])?_0x4459f9[_0x2a6e('0x23')]():_0x4459f9[_0x2a6e('0x1f')]();}['_addRevision'](_0x4392b1){const _0x5d504e=_0x3e919e(_0x4392b1[_0x2a6e('0x20')],this[_0x2a6e('0x15')][_0x2a6e('0x1c')])['startDate'];let _0x426e60=this[_0x2a6e('0x1')]['get'](0x0);_0x426e60&&_0x426e60[_0x2a6e('0x16')][_0x2a6e('0x3')]()===_0x5d504e[_0x2a6e('0x3')]()||(_0x426e60=new _0x24d82a(this[_0x2a6e('0x15')],_0x5d504e,this['_revisionActions']),this[_0x2a6e('0x1')][_0x2a6e('0xb')](_0x426e60)),_0x426e60[_0x2a6e('0x1a')](_0x4392b1);}[_0x2a6e('0x22')](_0x321b71){const _0x512a49=_0x3e919e(_0x321b71['createdAt'],this[_0x2a6e('0x15')][_0x2a6e('0x1c')])[_0x2a6e('0x16')];this[_0x2a6e('0x19')](_0x512a49)[_0x2a6e('0x4')](_0x321b71);}[_0x2a6e('0x19')](_0x19ee03){return this['timePeriodViews'][_0x2a6e('0x7')](_0x4321bd=>_0x4321bd['startDate']['getTime']()===_0x19ee03[_0x2a6e('0x3')]());}}
@@ -1,8 +1,8 @@
1
- /**
2
- * @module revision-history/ui/revisionsidebar/utils
3
- */
4
- export declare function getDateTimePeriodInfo(jsDate: Date, locale: string): DateTimePeriod;
5
- export interface DateTimePeriod {
6
- startDate: Date;
7
- localizedPeriodName: string;
8
- }
1
+ /**
2
+ * @module revision-history/ui/revisionsidebar/utils
3
+ */
4
+ export declare function getDateTimePeriodInfo(jsDate: Date, locale: string): DateTimePeriod;
5
+ export interface DateTimePeriod {
6
+ startDate: Date;
7
+ localizedPeriodName: string;
8
+ }
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1b22=['local','minus','weekdayLong','setLocale','startOf','fromJSDate','toRelativeCalendar','day','toJSDate','week','hasSame','year'];(function(_0x5f05c1,_0x1b2223){const _0x3ecb12=function(_0x456853){while(--_0x456853){_0x5f05c1['push'](_0x5f05c1['shift']());}};_0x3ecb12(++_0x1b2223);}(_0x1b22,0x1f3));const _0x3ecb=function(_0x5f05c1,_0x1b2223){_0x5f05c1=_0x5f05c1-0x0;let _0x3ecb12=_0x1b22[_0x5f05c1];return _0x3ecb12;};import{DateTime as _0x531bf9}from'luxon';export function getDateTimePeriodInfo(_0x3af288,_0x175b25){const _0x2d11b3=_0x531bf9[_0x3ecb('0xa')](_0x3af288)[_0x3ecb('0x8')](_0x175b25),_0x54e297=_0x531bf9[_0x3ecb('0x5')](),_0x3d657f=_0x54e297[_0x3ecb('0x6')]({'days':0x1})[_0x3ecb('0x9')](_0x3ecb('0x0'));let _0x1a42ec,_0x363a6a;return _0x2d11b3[_0x3ecb('0x3')](_0x54e297,_0x3ecb('0x0'))?(_0x1a42ec=_0x2d11b3[_0x3ecb('0x9')]('day')[_0x3ecb('0x1')](),_0x363a6a=_0x2d11b3[_0x3ecb('0xb')]()):_0x2d11b3[_0x3ecb('0x3')](_0x3d657f,_0x3ecb('0x0'))?(_0x1a42ec=_0x3d657f[_0x3ecb('0x1')](),_0x363a6a=_0x2d11b3[_0x3ecb('0xb')]()):_0x2d11b3['hasSame'](_0x54e297,'week')?(_0x1a42ec=_0x2d11b3[_0x3ecb('0x9')](_0x3ecb('0x2'))[_0x3ecb('0x1')](),_0x363a6a=_0x2d11b3[_0x3ecb('0x7')]||''):_0x2d11b3['hasSame'](_0x54e297,_0x3ecb('0x4'))?(_0x1a42ec=_0x2d11b3[_0x3ecb('0x9')]('month')[_0x3ecb('0x1')](),_0x363a6a=_0x2d11b3['monthLong']||''):(_0x1a42ec=_0x2d11b3['startOf'](_0x3ecb('0x4'))[_0x3ecb('0x1')](),_0x363a6a=String(_0x2d11b3['year'])),{'startDate':_0x1a42ec,'localizedPeriodName':_0x363a6a};}
23
+ const _0x5ef1=['month','year','day','weekdayLong','setLocale','startOf','monthLong','week','fromJSDate','minus','toJSDate','hasSame','toRelativeCalendar'];(function(_0x59e402,_0x5ef1f3){const _0x40399c=function(_0x3ba4bf){while(--_0x3ba4bf){_0x59e402['push'](_0x59e402['shift']());}};_0x40399c(++_0x5ef1f3);}(_0x5ef1,0x1dd));const _0x4039=function(_0x59e402,_0x5ef1f3){_0x59e402=_0x59e402-0x0;let _0x40399c=_0x5ef1[_0x59e402];return _0x40399c;};import{DateTime as _0x4e39e4}from'luxon';export function getDateTimePeriodInfo(_0x1e1f87,_0x1b70b8){const _0x4f6254=_0x4e39e4[_0x4039('0xc')](_0x1e1f87)[_0x4039('0x8')](_0x1b70b8),_0x22106a=_0x4e39e4['local'](),_0x449025=_0x22106a[_0x4039('0x0')]({'days':0x1})[_0x4039('0x9')](_0x4039('0x6'));let _0xdf63f7,_0x3fea67;return _0x4f6254[_0x4039('0x2')](_0x22106a,_0x4039('0x6'))?(_0xdf63f7=_0x4f6254[_0x4039('0x9')](_0x4039('0x6'))[_0x4039('0x1')](),_0x3fea67=_0x4f6254[_0x4039('0x3')]()):_0x4f6254[_0x4039('0x2')](_0x449025,_0x4039('0x6'))?(_0xdf63f7=_0x449025[_0x4039('0x1')](),_0x3fea67=_0x4f6254[_0x4039('0x3')]()):_0x4f6254['hasSame'](_0x22106a,_0x4039('0xb'))?(_0xdf63f7=_0x4f6254['startOf']('week')[_0x4039('0x1')](),_0x3fea67=_0x4f6254[_0x4039('0x7')]||''):_0x4f6254['hasSame'](_0x22106a,_0x4039('0x5'))?(_0xdf63f7=_0x4f6254['startOf'](_0x4039('0x4'))[_0x4039('0x1')](),_0x3fea67=_0x4f6254[_0x4039('0xa')]||''):(_0xdf63f7=_0x4f6254[_0x4039('0x9')](_0x4039('0x5'))[_0x4039('0x1')](),_0x3fea67=String(_0x4f6254[_0x4039('0x5')])),{'startDate':_0xdf63f7,'localizedPeriodName':_0x3fea67};}
@@ -1,18 +1,18 @@
1
- /**
2
- * @module revision-history/ui/revisionviewer/changedetailsview
3
- */
4
- import { View } from 'ckeditor5/src/ui';
5
- import type { Locale } from 'ckeditor5/src/utils';
6
- import type ChangeItem from '../../changeitem';
7
- export default class ChangeDetailsView extends View {
8
- changeId: string;
9
- /**
10
- * @observable
11
- */
12
- type: string;
13
- constructor(locale: Locale, model: ChangeItem);
14
- /**
15
- * Focuses the view.
16
- */
17
- focus(): void;
18
- }
1
+ /**
2
+ * @module revision-history/ui/revisionviewer/changedetailsview
3
+ */
4
+ import { View } from 'ckeditor5/src/ui';
5
+ import type { Locale } from 'ckeditor5/src/utils';
6
+ import type ChangeItem from '../../changeitem';
7
+ export default class ChangeDetailsView extends View {
8
+ changeId: string;
9
+ /**
10
+ * @observable
11
+ */
12
+ type: string;
13
+ constructor(locale: Locale, model: ChangeItem);
14
+ /**
15
+ * Focuses the view.
16
+ */
17
+ focus(): void;
18
+ }
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2909=['Removed\x20by','isSuggestion','span','ck-revision-change','type','Suggested\x20by','Added\x20by','add','focus','setTemplate','_model','ck-revision-change__','author','ck-annotation','data','div'];(function(_0x2a728e,_0x290951){const _0x5bd050=function(_0xfbae04){while(--_0xfbae04){_0x2a728e['push'](_0x2a728e['shift']());}};_0x5bd050(++_0x290951);}(_0x2909,0x116));const _0x5bd0=function(_0x2a728e,_0x290951){_0x2a728e=_0x2a728e-0x0;let _0x5bd050=_0x2909[_0x2a728e];return _0x5bd050;};import{View as _0x3d46e3}from'ckeditor5/src/ui';import{getTranslation as _0xf4e68c}from'../../utils/common-translations';export default class Q extends _0x3d46e3{constructor(_0x5bd31b,_0x31a3e4){super(_0x5bd31b),this[_0x5bd0('0x4')]=_0x31a3e4,this['changeId']=_0x31a3e4['id'];const _0x3784fd=this['bindTemplate'],_0x139600=_0xf4e68c(_0x5bd31b,_0x31a3e4[_0x5bd0('0x8')][_0x5bd0('0xb')]?_0x5bd0('0xf'):_0x5bd0('0x1')==_0x31a3e4['type']?_0x5bd0('0x0'):_0x5bd0('0xa'));this['set'](_0x5bd0('0xe'),_0x31a3e4[_0x5bd0('0xe')]),this[_0x5bd0('0x3')]({'tag':_0x5bd0('0x9'),'attributes':{'class':[_0x5bd0('0x7'),_0x5bd0('0xd'),_0x3784fd['to']('type',_0x2eb091=>_0x5bd0('0x5')+_0x2eb091)],'tabindex':-0x1},'children':[{'tag':_0x5bd0('0xc'),'children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x139600}]},{'text':'\x20'+_0x31a3e4[_0x5bd0('0x6')]['name']}]}]});}[_0x5bd0('0x2')](){this['element'][_0x5bd0('0x2')]();}}
23
+ const _0x265e=['div','name','data','ck-revision-change__','setTemplate','bindTemplate','changeId','type','ck-revision-change','element','set','Removed\x20by','isSuggestion','span','focus'];(function(_0x38d38b,_0x265e4c){const _0x215741=function(_0x422368){while(--_0x422368){_0x38d38b['push'](_0x38d38b['shift']());}};_0x215741(++_0x265e4c);}(_0x265e,0x152));const _0x2157=function(_0x38d38b,_0x265e4c){_0x38d38b=_0x38d38b-0x0;let _0x215741=_0x265e[_0x38d38b];return _0x215741;};import{View as _0x25b243}from'ckeditor5/src/ui';import{getTranslation as _0x309309}from'../../utils/common-translations';export default class X extends _0x25b243{constructor(_0x47fb42,_0x569442){super(_0x47fb42),this['_model']=_0x569442,this[_0x2157('0xd')]=_0x569442['id'];const _0x5ba197=this[_0x2157('0xc')],_0x33191c=_0x309309(_0x47fb42,_0x569442[_0x2157('0x9')][_0x2157('0x4')]?'Suggested\x20by':'add'==_0x569442[_0x2157('0xe')]?'Added\x20by':_0x2157('0x3'));this[_0x2157('0x2')](_0x2157('0xe'),_0x569442[_0x2157('0xe')]),this[_0x2157('0xb')]({'tag':_0x2157('0x7'),'attributes':{'class':['ck-annotation',_0x2157('0x0'),_0x5ba197['to'](_0x2157('0xe'),_0x1de8a1=>_0x2157('0xa')+_0x1de8a1)],'tabindex':-0x1},'children':[{'tag':_0x2157('0x5'),'children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x33191c}]},{'text':'\x20'+_0x569442['author'][_0x2157('0x8')]}]}]});}[_0x2157('0x6')](){this[_0x2157('0x1')][_0x2157('0x6')]();}}
@@ -1,36 +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
- }
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
+ }