@ckeditor/ckeditor5-revision-history 40.2.0 → 41.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 (140) hide show
  1. package/LICENSE.md +1 -1
  2. package/README.md +1 -1
  3. package/build/revision-history.js +2 -2
  4. package/lang/translations/af.po +1 -1
  5. package/lang/translations/ar.po +1 -1
  6. package/lang/translations/az.po +1 -1
  7. package/lang/translations/bg.po +1 -1
  8. package/lang/translations/bn.po +1 -1
  9. package/lang/translations/bs.po +1 -1
  10. package/lang/translations/ca.po +1 -1
  11. package/lang/translations/cs.po +1 -1
  12. package/lang/translations/da.po +1 -1
  13. package/lang/translations/de-ch.po +1 -1
  14. package/lang/translations/de.po +1 -1
  15. package/lang/translations/el.po +1 -1
  16. package/lang/translations/en-au.po +1 -1
  17. package/lang/translations/en-gb.po +1 -1
  18. package/lang/translations/en.po +1 -1
  19. package/lang/translations/es-co.po +1 -1
  20. package/lang/translations/es.po +1 -1
  21. package/lang/translations/et.po +1 -1
  22. package/lang/translations/fa.po +1 -1
  23. package/lang/translations/fi.po +1 -1
  24. package/lang/translations/fr.po +1 -1
  25. package/lang/translations/gl.po +1 -1
  26. package/lang/translations/he.po +1 -1
  27. package/lang/translations/hi.po +1 -1
  28. package/lang/translations/hr.po +1 -1
  29. package/lang/translations/hu.po +1 -1
  30. package/lang/translations/id.po +1 -1
  31. package/lang/translations/it.po +1 -1
  32. package/lang/translations/ja.po +1 -1
  33. package/lang/translations/jv.po +1 -1
  34. package/lang/translations/ko.po +1 -1
  35. package/lang/translations/ku.po +1 -1
  36. package/lang/translations/lt.po +1 -1
  37. package/lang/translations/lv.po +1 -1
  38. package/lang/translations/ms.po +1 -1
  39. package/lang/translations/ne.po +1 -1
  40. package/lang/translations/nl.po +1 -1
  41. package/lang/translations/no.po +1 -1
  42. package/lang/translations/pl.po +1 -1
  43. package/lang/translations/pt-br.po +1 -1
  44. package/lang/translations/pt.po +1 -1
  45. package/lang/translations/ro.po +1 -1
  46. package/lang/translations/ru.po +1 -1
  47. package/lang/translations/sk.po +1 -1
  48. package/lang/translations/sr-latn.po +1 -1
  49. package/lang/translations/sr.po +1 -1
  50. package/lang/translations/sv.po +1 -1
  51. package/lang/translations/th.po +1 -1
  52. package/lang/translations/tk.po +1 -1
  53. package/lang/translations/tr.po +1 -1
  54. package/lang/translations/tt.po +1 -1
  55. package/lang/translations/ug.po +1 -1
  56. package/lang/translations/uk.po +1 -1
  57. package/lang/translations/ur.po +1 -1
  58. package/lang/translations/vi.po +1 -1
  59. package/lang/translations/zh-cn.po +1 -1
  60. package/lang/translations/zh.po +1 -1
  61. package/package.json +6 -6
  62. package/src/augmentation.d.ts +2 -2
  63. package/src/augmentation.js +1 -1
  64. package/src/changeitem.d.ts +4 -4
  65. package/src/changeitem.js +2 -2
  66. package/src/editor/revisionviewereditor.d.ts +4 -4
  67. package/src/editor/revisionviewereditor.js +2 -2
  68. package/src/editor/revisionviewereditorui.d.ts +4 -4
  69. package/src/editor/revisionviewereditorui.js +2 -2
  70. package/src/editor/revisionviewereditoruiview.d.ts +5 -5
  71. package/src/editor/revisionviewereditoruiview.js +2 -2
  72. package/src/index.d.ts +12 -12
  73. package/src/index.js +2 -2
  74. package/src/revision.d.ts +4 -4
  75. package/src/revision.js +2 -2
  76. package/src/revisiondiff.d.ts +4 -4
  77. package/src/revisiondiff.js +2 -2
  78. package/src/revisionhistory.d.ts +7 -7
  79. package/src/revisionhistory.js +2 -2
  80. package/src/revisionhistoryadapter.d.ts +2 -2
  81. package/src/revisionhistoryadapter.js +1 -1
  82. package/src/revisionhistoryconfig.d.ts +1 -1
  83. package/src/revisionhistoryconfig.js +1 -1
  84. package/src/revisionsrepository.d.ts +4 -4
  85. package/src/revisionsrepository.js +2 -2
  86. package/src/revisiontracker.d.ts +6 -6
  87. package/src/revisiontracker.js +2 -2
  88. package/src/revisionviewer.d.ts +1 -1
  89. package/src/revisionviewer.js +2 -2
  90. package/src/ui/revision/createrevisionactionsdropdown.d.ts +3 -3
  91. package/src/ui/revision/createrevisionactionsdropdown.js +2 -2
  92. package/src/ui/revision/revisionauthorview.d.ts +1 -1
  93. package/src/ui/revision/revisionauthorview.js +2 -2
  94. package/src/ui/revision/revisionnameview.d.ts +1 -1
  95. package/src/ui/revision/revisionnameview.js +2 -2
  96. package/src/ui/revision/revisionview.d.ts +7 -7
  97. package/src/ui/revision/revisionview.js +2 -2
  98. package/src/ui/revision/subrevisioncollapserview.d.ts +3 -3
  99. package/src/ui/revision/subrevisioncollapserview.js +2 -2
  100. package/src/ui/revision/subrevisionview.d.ts +4 -4
  101. package/src/ui/revision/subrevisionview.js +2 -2
  102. package/src/ui/revision/utils.d.ts +1 -1
  103. package/src/ui/revision/utils.js +2 -2
  104. package/src/ui/revisionhistory/revisionhistorysaverevisionformview.d.ts +3 -3
  105. package/src/ui/revisionhistory/revisionhistorysaverevisionformview.js +2 -2
  106. package/src/ui/revisionhistory/revisionhistoryui.d.ts +3 -3
  107. package/src/ui/revisionhistory/revisionhistoryui.js +2 -2
  108. package/src/ui/revisionssidebar/revisionssidebar.d.ts +4 -4
  109. package/src/ui/revisionssidebar/revisionssidebar.js +2 -2
  110. package/src/ui/revisionssidebar/revisionssidebarheaderview.d.ts +1 -1
  111. package/src/ui/revisionssidebar/revisionssidebarheaderview.js +2 -2
  112. package/src/ui/revisionssidebar/revisionssidebartimeperiodview.d.ts +6 -6
  113. package/src/ui/revisionssidebar/revisionssidebartimeperiodview.js +2 -2
  114. package/src/ui/revisionssidebar/revisionssidebarview.d.ts +7 -7
  115. package/src/ui/revisionssidebar/revisionssidebarview.js +2 -2
  116. package/src/ui/revisionssidebar/utils.d.ts +1 -1
  117. package/src/ui/revisionssidebar/utils.js +2 -2
  118. package/src/ui/revisionviewer/changedetailsview.d.ts +4 -4
  119. package/src/ui/revisionviewer/changedetailsview.js +2 -2
  120. package/src/ui/revisionviewer/changesnavigationview.d.ts +3 -3
  121. package/src/ui/revisionviewer/changesnavigationview.js +2 -2
  122. package/src/ui/revisionviewer/revisionviewerloadingoverlay.d.ts +2 -2
  123. package/src/ui/revisionviewer/revisionviewerloadingoverlay.js +2 -2
  124. package/src/ui/revisionviewer/revisionviewerui.d.ts +4 -4
  125. package/src/ui/revisionviewer/revisionviewerui.js +2 -2
  126. package/src/utils/common-translations.d.ts +2 -2
  127. package/src/utils/common-translations.js +2 -2
  128. package/theme/changesnavigation.css +1 -1
  129. package/theme/revision/revision.css +1 -1
  130. package/theme/revision/revisionactions.css +1 -1
  131. package/theme/revision/revisionauthor.css +1 -1
  132. package/theme/revision/revisionname.css +1 -1
  133. package/theme/revision/subrevision.css +1 -1
  134. package/theme/revision/subrevisioncollapser.css +1 -1
  135. package/theme/revisionhistorysaverevisionform.css +1 -1
  136. package/theme/revisionssidebar/revisionssidebar.css +1 -1
  137. package/theme/revisionssidebar/revisionssidebarheader.css +1 -1
  138. package/theme/revisionssidebar/revisionssidebartimeperiod.css +1 -1
  139. package/theme/revisionviewer.css +1 -1
  140. package/theme/revisionviewerloadingoverlay.css +1 -1
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x302d=['forward','set','ck-revision-history-ui__changes-navigation__label','X_OF_Y_CHANGES','isForwardNavigationEnabled','ck-revision-history-ui','EDIT_X_OF_Y_REVISIONS','execute','Show\x20next\x20change','_statusText','currentChangeNumber','NUMBER_OF_CHANGES','ck-revision-history-ui__changes-navigation__navigation','div','fire','backward','bindTemplate','_isStatusLabelVisible','isReady','isEnabled','span','Total','Show\x20previous\x20change','bind','isNavigationMode','numberOfChanges','ck-revision-history-ui__changes-navigation','ck-revision-history-ui__changes-navigation__wrapper','isBackwardNavigationEnabled'];(function(_0x1e59d2,_0x302d99){const _0x38c23d=function(_0x19291c){while(--_0x19291c){_0x1e59d2['push'](_0x1e59d2['shift']());}};_0x38c23d(++_0x302d99);}(_0x302d,0xe3));const _0x38c2=function(_0x1e59d2,_0x302d99){_0x1e59d2=_0x1e59d2-0x0;let _0x38c23d=_0x302d[_0x1e59d2];return _0x38c23d;};import{View as _0x36db7e,ButtonView as _0x1e0826,ToolbarSeparatorView as _0x924a88}from'ckeditor5/src/ui';import{getTranslation as _0x318711}from'../../utils/common-translations';import _0x51c8dc from'../../../theme/icons/arrow-up.svg';import _0x1a7366 from'../../../theme/icons/arrow-down.svg';import'../../../theme/changesnavigation.css';export default class bi extends _0x36db7e{constructor(_0x5b212c){super(_0x5b212c);const _0x4b09a9=this[_0x38c2('0x15')],_0xb80467=new _0x1e0826(_0x5b212c),_0x5c50b6=new _0x1e0826(_0x5b212c);this[_0x38c2('0x6')](_0x38c2('0x0'),!0x1),this[_0x38c2('0x6')]('isReady',!0x1),this[_0x38c2('0x6')](_0x38c2('0xf'),0x0),this[_0x38c2('0x6')](_0x38c2('0x1'),0x0),this[_0x38c2('0x6')](_0x38c2('0x9'),!0x1),this[_0x38c2('0x6')](_0x38c2('0x4'),!0x1),this['bind'](_0x38c2('0x16'))['to'](this,_0x38c2('0x17'),this,_0x38c2('0x1'),(_0xe0d158,_0x2604a0)=>_0xe0d158&&_0x2604a0>0x0),this[_0x38c2('0x1c')](_0x38c2('0xe'))['to'](this,_0x38c2('0x17'),this,_0x38c2('0xf'),this,'numberOfChanges',this,_0x38c2('0x0'),(_0x26cc85,_0x282b3c,_0x419db9,_0x59c6f4)=>{if(!_0x26cc85)return _0x318711(_0x5b212c,'Loading...');if(!_0x419db9)return _0x318711(_0x5b212c,'No\x20changes');const _0x336ca7=_0x318711(_0x5b212c,_0x38c2('0x10'),_0x419db9);return _0x59c6f4?_0x318711(_0x5b212c,_0x38c2('0x8'),[_0x282b3c+0x1,_0x419db9]):_0x336ca7;}),_0xb80467[_0x38c2('0x6')]({'label':_0x318711(_0x5b212c,_0x38c2('0x1b')),'tooltip':!0x0,'icon':_0x51c8dc}),_0x5c50b6['set']({'label':_0x318711(_0x5b212c,_0x38c2('0xd')),'tooltip':!0x0,'icon':_0x1a7366}),_0xb80467[_0x38c2('0x1c')](_0x38c2('0x18'))['to'](this,_0x38c2('0x4')),_0x5c50b6[_0x38c2('0x1c')](_0x38c2('0x18'))['to'](this,_0x38c2('0x9')),_0xb80467['on'](_0x38c2('0xc'),()=>this[_0x38c2('0x13')](_0x38c2('0xc'),_0x38c2('0x14'))),_0x5c50b6['on'](_0x38c2('0xc'),()=>this['fire'](_0x38c2('0xc'),_0x38c2('0x5'))),this['setTemplate']({'tag':_0x38c2('0x12'),'attributes':{'class':['ck',_0x38c2('0xa'),_0x38c2('0x2')]},'children':[{'tag':_0x38c2('0x19'),'attributes':{'class':[_0x38c2('0x3')]},'children':[{'tag':_0x38c2('0x19'),'attributes':{'class':[_0x38c2('0x7'),_0x4b09a9['if'](_0x38c2('0x16'),'ck-hidden',_0x558e0f=>!_0x558e0f)]},'children':[{'text':_0x4b09a9['to'](_0x38c2('0x0'),_0x475449=>_0x475449?_0x318711(_0x5b212c,_0x38c2('0xb'))+':\x20':_0x318711(_0x5b212c,_0x38c2('0x1a'))+':\x20')}]},{'text':_0x4b09a9['to'](_0x38c2('0xe'))}]},new _0x924a88(),{'tag':_0x38c2('0x12'),'attributes':{'class':[_0x38c2('0x11')]},'children':[_0xb80467,_0x5c50b6]}]});}}
23
+ const _0xeb7a=['isReady','ck-revision-history-ui__changes-navigation','forward','ck-hidden','bind','ck-revision-history-ui__changes-navigation__wrapper','bindTemplate','backward','ck-revision-history-ui__changes-navigation__label','No\x20changes','_statusText','set','isNavigationMode','isEnabled','isBackwardNavigationEnabled','execute','span','ck-revision-history-ui__changes-navigation__navigation','currentChangeNumber','Loading...','fire','numberOfChanges','isForwardNavigationEnabled','X_OF_Y_CHANGES','setTemplate','Show\x20previous\x20change','Show\x20next\x20change'];(function(_0x2342da,_0xeb7a5e){const _0x55d121=function(_0x3ff784){while(--_0x3ff784){_0x2342da['push'](_0x2342da['shift']());}};_0x55d121(++_0xeb7a5e);}(_0xeb7a,0xf8));const _0x55d1=function(_0x2342da,_0xeb7a5e){_0x2342da=_0x2342da-0x0;let _0x55d121=_0xeb7a[_0x2342da];return _0x55d121;};import{View as _0x398cf7,ButtonView as _0x10080e,ToolbarSeparatorView as _0x14f60a}from'ckeditor5/src/ui.js';import{getTranslation as _0x8fee76}from'../../utils/common-translations.js';import _0x5956cd from'../../../theme/icons/arrow-up.svg';import _0x3679ab from'../../../theme/icons/arrow-down.svg';import'../../../theme/changesnavigation.css';export default class bi extends _0x398cf7{constructor(_0x1b31a5){super(_0x1b31a5);const _0x35cd36=this[_0x55d1('0x1')],_0x4bd858=new _0x10080e(_0x1b31a5),_0x3af0cd=new _0x10080e(_0x1b31a5);this[_0x55d1('0x6')](_0x55d1('0x7'),!0x1),this['set'](_0x55d1('0x16'),!0x1),this[_0x55d1('0x6')](_0x55d1('0xd'),0x0),this[_0x55d1('0x6')](_0x55d1('0x10'),0x0),this['set']('isForwardNavigationEnabled',!0x1),this['set'](_0x55d1('0x9'),!0x1),this[_0x55d1('0x1a')]('_isStatusLabelVisible')['to'](this,_0x55d1('0x16'),this,'numberOfChanges',(_0x1fc047,_0x1f0b92)=>_0x1fc047&&_0x1f0b92>0x0),this[_0x55d1('0x1a')](_0x55d1('0x5'))['to'](this,_0x55d1('0x16'),this,_0x55d1('0xd'),this,_0x55d1('0x10'),this,_0x55d1('0x7'),(_0x24e8eb,_0x2cdf39,_0x42874f,_0x1a3b64)=>{if(!_0x24e8eb)return _0x8fee76(_0x1b31a5,_0x55d1('0xe'));if(!_0x42874f)return _0x8fee76(_0x1b31a5,_0x55d1('0x4'));const _0x408b23=_0x8fee76(_0x1b31a5,'NUMBER_OF_CHANGES',_0x42874f);return _0x1a3b64?_0x8fee76(_0x1b31a5,_0x55d1('0x12'),[_0x2cdf39+0x1,_0x42874f]):_0x408b23;}),_0x4bd858[_0x55d1('0x6')]({'label':_0x8fee76(_0x1b31a5,_0x55d1('0x14')),'tooltip':!0x0,'icon':_0x5956cd}),_0x3af0cd['set']({'label':_0x8fee76(_0x1b31a5,_0x55d1('0x15')),'tooltip':!0x0,'icon':_0x3679ab}),_0x4bd858['bind'](_0x55d1('0x8'))['to'](this,'isBackwardNavigationEnabled'),_0x3af0cd[_0x55d1('0x1a')](_0x55d1('0x8'))['to'](this,_0x55d1('0x11')),_0x4bd858['on'](_0x55d1('0xa'),()=>this[_0x55d1('0xf')](_0x55d1('0xa'),_0x55d1('0x2'))),_0x3af0cd['on'](_0x55d1('0xa'),()=>this['fire'](_0x55d1('0xa'),_0x55d1('0x18'))),this[_0x55d1('0x13')]({'tag':'div','attributes':{'class':['ck','ck-revision-history-ui',_0x55d1('0x17')]},'children':[{'tag':_0x55d1('0xb'),'attributes':{'class':[_0x55d1('0x0')]},'children':[{'tag':_0x55d1('0xb'),'attributes':{'class':[_0x55d1('0x3'),_0x35cd36['if']('_isStatusLabelVisible',_0x55d1('0x19'),_0x573a7b=>!_0x573a7b)]},'children':[{'text':_0x35cd36['to'](_0x55d1('0x7'),_0x25ac3b=>_0x25ac3b?_0x8fee76(_0x1b31a5,'EDIT_X_OF_Y_REVISIONS')+':\x20':_0x8fee76(_0x1b31a5,'Total')+':\x20')}]},{'text':_0x35cd36['to'](_0x55d1('0x5'))}]},new _0x14f60a(),{'tag':'div','attributes':{'class':[_0x55d1('0xc')]},'children':[_0x4bd858,_0x3af0cd]}]});}}
@@ -1,11 +1,11 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
4
  */
5
5
  /**
6
6
  * @module revision-history/ui/revisionviewer/revisionviewerloadingoverlay
7
7
  */
8
- import { Plugin } from 'ckeditor5/src/core';
8
+ import { Plugin } from 'ckeditor5/src/core.js';
9
9
  import '../../../theme/revisionviewerloadingoverlay.css';
10
10
  /**
11
11
  * TODO
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x59d5=['roots','editor','hide','ck-editor__editable__loading-overlay','removeClass','view','addClass','change','pluginName','editing','document','RevisionViewerLoadingOverlay','show'];(function(_0x4abaee,_0x59d522){const _0x18f150=function(_0x486ef6){while(--_0x486ef6){_0x4abaee['push'](_0x4abaee['shift']());}};_0x18f150(++_0x59d522);}(_0x59d5,0x19e));const _0x18f1=function(_0x4abaee,_0x59d522){_0x4abaee=_0x4abaee-0x0;let _0x18f150=_0x59d5[_0x4abaee];return _0x18f150;};import{Plugin as _0x22b556}from'ckeditor5/src/core';const oe=_0x18f1('0x5');import'../../../theme/revisionviewerloadingoverlay.css';export default class te extends _0x22b556{static get[_0x18f1('0xa')](){return _0x18f1('0x0');}[_0x18f1('0x1')](){const _0x44425d=this[_0x18f1('0x3')][_0x18f1('0xb')][_0x18f1('0x7')];_0x44425d[_0x18f1('0x9')](_0xa88f18=>{for(const _0x5e96e2 of _0x44425d['document'][_0x18f1('0x2')])_0xa88f18[_0x18f1('0x8')](oe,_0x5e96e2);});}[_0x18f1('0x4')](){const _0x1a838f=this[_0x18f1('0x3')][_0x18f1('0xb')]['view'];_0x1a838f[_0x18f1('0x9')](_0x536d4b=>{for(const _0x401cc8 of _0x1a838f[_0x18f1('0xc')][_0x18f1('0x2')])_0x536d4b[_0x18f1('0x6')](oe,_0x401cc8);});}}
23
+ const _0x14e0=['removeClass','document','editing','editor','roots','view','show','change','addClass'];(function(_0x2df6c3,_0x14e05a){const _0x3e24a1=function(_0x1f72ce){while(--_0x1f72ce){_0x2df6c3['push'](_0x2df6c3['shift']());}};_0x3e24a1(++_0x14e05a);}(_0x14e0,0x125));const _0x3e24=function(_0x2df6c3,_0x14e05a){_0x2df6c3=_0x2df6c3-0x0;let _0x3e24a1=_0x14e0[_0x2df6c3];return _0x3e24a1;};import{Plugin as _0x39f08e}from'ckeditor5/src/core.js';const oe='ck-editor__editable__loading-overlay';import'../../../theme/revisionviewerloadingoverlay.css';export default class te extends _0x39f08e{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}[_0x3e24('0x1')](){const _0x4589f0=this[_0x3e24('0x7')]['editing'][_0x3e24('0x0')];_0x4589f0['change'](_0x1821e7=>{for(const _0x3cd1aa of _0x4589f0[_0x3e24('0x5')]['roots'])_0x1821e7[_0x3e24('0x3')](oe,_0x3cd1aa);});}['hide'](){const _0x305dd3=this[_0x3e24('0x7')][_0x3e24('0x6')][_0x3e24('0x0')];_0x305dd3[_0x3e24('0x2')](_0x5e15e2=>{for(const _0x190bd3 of _0x305dd3[_0x3e24('0x5')][_0x3e24('0x8')])_0x5e15e2[_0x3e24('0x4')](oe,_0x190bd3);});}}
@@ -1,13 +1,13 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
4
  */
5
5
  /**
6
6
  * @module revision-history/ui/revisionviewer/revisionviewerui
7
7
  */
8
- import { Plugin } from 'ckeditor5/src/core';
9
- import RevisionViewer from './../../revisionviewer';
10
- import RevisionViewerLoadingOverlay from './revisionviewerloadingoverlay';
8
+ import { Plugin } from 'ckeditor5/src/core.js';
9
+ import RevisionViewer from './../../revisionviewer.js';
10
+ import RevisionViewerLoadingOverlay from './revisionviewerloadingoverlay.js';
11
11
  import '../../../theme/revisionviewer.css';
12
12
  /**
13
13
  * TODO
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1f07=['plugins','componentFactory','editor','showNextChange','ck-revision-history-ui__back-to-editing','pluginName','bind','get','RevisionViewerUI','isBackwardNavigationEnabled','hide','forward','closeRevisionViewerCallback','Restore\x20this\x20revision','commands','exitToEditing','restoreRevision','listenTo','set','requires','show','isEnabled','changesNavigation','change:isReady','config','currentChangeNumber','revisionHistory','numberOfChanges','isNavigationMode','add','init','showPreviousChange','Back\x20to\x20editing','execute','isReady'];(function(_0x36cf6d,_0x1f07ce){const _0xd76e41=function(_0x12379d){while(--_0x12379d){_0x36cf6d['push'](_0x36cf6d['shift']());}};_0xd76e41(++_0x1f07ce);}(_0x1f07,0x14a));const _0xd76e=function(_0x36cf6d,_0x1f07ce){_0x36cf6d=_0x36cf6d-0x0;let _0xd76e41=_0x1f07[_0x36cf6d];return _0xd76e41;};import{Plugin as _0x23e4b3}from'ckeditor5/src/core';import{ButtonView as _0x2136d2}from'ckeditor5/src/ui';import _0x3e80f9 from'./changesnavigationview';import _0x167f27 from'./../../revisionviewer';import _0x5ae123 from'./revisionviewerloadingoverlay';import{getTranslation as _0x5a5f6a}from'../../utils/common-translations';import _0x1fed17 from'@ckeditor/ckeditor5-undo/theme/icons/undo.svg';import'../../../theme/revisionviewer.css';export default class R extends _0x23e4b3{static get[_0xd76e('0x19')](){return _0xd76e('0x1c');}static get[_0xd76e('0x4')](){return[_0x167f27,_0x5ae123];}[_0xd76e('0xf')](){const _0xae3b52=this[_0xd76e('0x16')],_0x362b98=_0xae3b52['plugins'][_0xd76e('0x1b')](_0x167f27),_0xbbaf11=_0xae3b52[_0xd76e('0x14')]['get'](_0x5ae123);_0xae3b52['ui'][_0xd76e('0x15')]['add'](_0xd76e('0x0'),_0x31fcb9=>{const _0x537ad8=new _0x2136d2(_0x31fcb9);return _0x537ad8[_0xd76e('0x3')]({'label':_0x5a5f6a(_0x31fcb9,_0xd76e('0x11')),'icon':_0x1fed17,'withText':!0x0,'tooltip':!0x0,'class':_0xd76e('0x18')}),this[_0xd76e('0x2')](_0x537ad8,_0xd76e('0x12'),()=>{_0xae3b52[_0xd76e('0x9')]['get'](_0xd76e('0xb'))[_0xd76e('0x20')]();}),_0x537ad8;}),_0xae3b52['ui'][_0xd76e('0x15')]['add']('restoreRevision',_0x574429=>{const _0x2a33db=new _0x2136d2(_0x574429);return _0x2a33db[_0xd76e('0x3')]({'label':_0x5a5f6a(_0x574429,_0xd76e('0x21')),'withText':!0x0,'tooltip':!0x0}),_0x2a33db[_0xd76e('0x1a')](_0xd76e('0x6'))['to'](_0xae3b52[_0xd76e('0x22')][_0xd76e('0x1b')](_0xd76e('0x1'))),this[_0xd76e('0x2')](_0x2a33db,'execute',()=>_0xae3b52[_0xd76e('0x12')]('restoreRevision')),_0x2a33db;}),_0xae3b52['ui'][_0xd76e('0x15')][_0xd76e('0xe')](_0xd76e('0x7'),_0x7b3eef=>{const _0x32172b=new _0x3e80f9(_0x7b3eef),_0x112738=_0xae3b52[_0xd76e('0x22')]['get'](_0xd76e('0x10')),_0x555dc1=_0xae3b52['commands'][_0xd76e('0x1b')](_0xd76e('0x17'));return _0x32172b['bind'](_0xd76e('0x1d'))['to'](_0x112738,'isEnabled'),_0x32172b[_0xd76e('0x1a')]('isForwardNavigationEnabled')['to'](_0x555dc1,_0xd76e('0x6')),_0x32172b[_0xd76e('0x1a')](_0xd76e('0x13'),_0xd76e('0xa'),_0xd76e('0xc'),_0xd76e('0xd'))['to'](_0x362b98),this[_0xd76e('0x2')](_0x32172b,_0xd76e('0x12'),(_0x2cda65,_0x12e02e)=>{_0xae3b52[_0xd76e('0x12')](_0xd76e('0x1f')===_0x12e02e?_0xd76e('0x17'):_0xd76e('0x10'));}),_0x32172b;}),_0xbbaf11[_0xd76e('0x5')](),_0x362b98['on'](_0xd76e('0x8'),(_0x3447f7,_0x588049,_0x5d1fd6)=>{_0x5d1fd6?_0xbbaf11[_0xd76e('0x1e')]():_0xbbaf11[_0xd76e('0x5')]();});}}
23
+ const _0x231d=['Back\x20to\x20editing','add','Restore\x20this\x20revision','isEnabled','restoreRevision','editor','revisionHistory','hide','change:isReady','pluginName','RevisionViewerUI','listenTo','requires','config','execute','showPreviousChange','showNextChange','isForwardNavigationEnabled','ck-revision-history-ui__back-to-editing','plugins','set','componentFactory','commands','isBackwardNavigationEnabled','isNavigationMode','exitToEditing','get','bind'];(function(_0x1476fb,_0x231d9d){const _0x384512=function(_0x39d5af){while(--_0x39d5af){_0x1476fb['push'](_0x1476fb['shift']());}};_0x384512(++_0x231d9d);}(_0x231d,0xba));const _0x3845=function(_0x1476fb,_0x231d9d){_0x1476fb=_0x1476fb-0x0;let _0x384512=_0x231d[_0x1476fb];return _0x384512;};import{icons as _0x2c7a32,Plugin as _0x959049}from'ckeditor5/src/core.js';import{ButtonView as _0x57e571}from'ckeditor5/src/ui.js';import _0x2a429e from'./changesnavigationview.js';import _0x4ef965 from'./../../revisionviewer.js';import _0x1238b3 from'./revisionviewerloadingoverlay.js';import{getTranslation as _0x3aa7aa}from'../../utils/common-translations.js';import'../../../theme/revisionviewer.css';export default class R extends _0x959049{static get[_0x3845('0x13')](){return _0x3845('0x14');}static get[_0x3845('0x16')](){return[_0x4ef965,_0x1238b3];}['init'](){const _0x46abf7=this[_0x3845('0xf')],_0x473012=_0x46abf7[_0x3845('0x1')][_0x3845('0x8')](_0x4ef965),_0xf99858=_0x46abf7[_0x3845('0x1')][_0x3845('0x8')](_0x1238b3);_0x46abf7['ui'][_0x3845('0x3')][_0x3845('0xb')](_0x3845('0x7'),_0x127459=>{const _0x3b92a4=new _0x57e571(_0x127459);return _0x3b92a4[_0x3845('0x2')]({'label':_0x3aa7aa(_0x127459,_0x3845('0xa')),'icon':_0x2c7a32['undo'],'withText':!0x0,'tooltip':!0x0,'class':_0x3845('0x0')}),this[_0x3845('0x15')](_0x3b92a4,'execute',()=>{_0x46abf7[_0x3845('0x17')][_0x3845('0x8')](_0x3845('0x10'))['closeRevisionViewerCallback']();}),_0x3b92a4;}),_0x46abf7['ui'][_0x3845('0x3')][_0x3845('0xb')](_0x3845('0xe'),_0x264520=>{const _0x141e31=new _0x57e571(_0x264520);return _0x141e31[_0x3845('0x2')]({'label':_0x3aa7aa(_0x264520,_0x3845('0xc')),'withText':!0x0,'tooltip':!0x0}),_0x141e31[_0x3845('0x9')]('isEnabled')['to'](_0x46abf7[_0x3845('0x4')][_0x3845('0x8')](_0x3845('0xe'))),this[_0x3845('0x15')](_0x141e31,'execute',()=>_0x46abf7[_0x3845('0x18')](_0x3845('0xe'))),_0x141e31;}),_0x46abf7['ui'][_0x3845('0x3')][_0x3845('0xb')]('changesNavigation',_0x33589e=>{const _0x410c58=new _0x2a429e(_0x33589e),_0x5eb301=_0x46abf7[_0x3845('0x4')][_0x3845('0x8')](_0x3845('0x19')),_0xbc7807=_0x46abf7[_0x3845('0x4')][_0x3845('0x8')](_0x3845('0x1a'));return _0x410c58[_0x3845('0x9')](_0x3845('0x5'))['to'](_0x5eb301,'isEnabled'),_0x410c58[_0x3845('0x9')](_0x3845('0x1b'))['to'](_0xbc7807,_0x3845('0xd')),_0x410c58[_0x3845('0x9')]('isReady','currentChangeNumber','numberOfChanges',_0x3845('0x6'))['to'](_0x473012),this['listenTo'](_0x410c58,_0x3845('0x18'),(_0x5a2357,_0x59d6f6)=>{_0x46abf7[_0x3845('0x18')]('forward'===_0x59d6f6?_0x3845('0x1a'):_0x3845('0x19'));}),_0x410c58;}),_0xf99858['show'](),_0x473012['on'](_0x3845('0x12'),(_0x348396,_0xb6fae1,_0x1c700a)=>{_0x1c700a?_0xf99858[_0x3845('0x11')]():_0xf99858['show']();});}}
@@ -1,11 +1,11 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
4
  */
5
5
  /**
6
6
  * @module revision-history/utils/common-translations
7
7
  */
8
- import { type Locale } from 'ckeditor5/src/utils';
8
+ import { type Locale } from 'ckeditor5/src/utils.js';
9
9
  export declare function getTranslation(locale: Locale, id: string, values?: TranslationValues): string;
10
10
  type TranslationValues = number | string | ReadonlyArray<number | string>;
11
11
  export {};
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- export function getTranslation(_0x3281f8,_0x39f0ad,_0x46398d){const t=_0x3281f8['t'];switch(_0x39f0ad){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'},_0x46398d);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x46398d);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 _0x39f0ad;}}
23
+ export function getTranslation(_0x2265dd,_0x5ca838,_0x3de604){const t=_0x2265dd['t'];switch(_0x5ca838){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'},_0x3de604);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x3de604);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 _0x5ca838;}}
@@ -3,7 +3,7 @@
3
3
  * CKEditor 5 Collaboration is licensed under a commercial license and protected by copyright law. Where not otherwise indicated,
4
4
  * all CKEditor 5 Collaboration content is authored by CKSource engineers and consists of CKSource-owned intellectual property.
5
5
  *
6
- * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
6
+ * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
7
7
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
8
8
  */
9
9
 
@@ -3,7 +3,7 @@
3
3
  * CKEditor 5 Collaboration is licensed under a commercial license and protected by copyright law. Where not otherwise indicated,
4
4
  * all CKEditor 5 Collaboration content is authored by CKSource engineers and consists of CKSource-owned intellectual property.
5
5
  *
6
- * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
6
+ * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
7
7
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
8
8
  */
9
9
 
@@ -3,7 +3,7 @@
3
3
  * CKEditor 5 Collaboration is licensed under a commercial license and protected by copyright law. Where not otherwise indicated,
4
4
  * all CKEditor 5 Collaboration content is authored by CKSource engineers and consists of CKSource-owned intellectual property.
5
5
  *
6
- * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
6
+ * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
7
7
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
8
8
  */
9
9
 
@@ -3,7 +3,7 @@
3
3
  * CKEditor 5 Collaboration is licensed under a commercial license and protected by copyright law. Where not otherwise indicated,
4
4
  * all CKEditor 5 Collaboration content is authored by CKSource engineers and consists of CKSource-owned intellectual property.
5
5
  *
6
- * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
6
+ * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
7
7
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
8
8
  */
9
9
 
@@ -3,7 +3,7 @@
3
3
  * CKEditor 5 Collaboration is licensed under a commercial license and protected by copyright law. Where not otherwise indicated,
4
4
  * all CKEditor 5 Collaboration content is authored by CKSource engineers and consists of CKSource-owned intellectual property.
5
5
  *
6
- * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
6
+ * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
7
7
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
8
8
  */
9
9
 
@@ -3,7 +3,7 @@
3
3
  * CKEditor 5 Collaboration is licensed under a commercial license and protected by copyright law. Where not otherwise indicated,
4
4
  * all CKEditor 5 Collaboration content is authored by CKSource engineers and consists of CKSource-owned intellectual property.
5
5
  *
6
- * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
6
+ * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
7
7
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
8
8
  */
9
9
 
@@ -3,7 +3,7 @@
3
3
  * CKEditor 5 Collaboration is licensed under a commercial license and protected by copyright law. Where not otherwise indicated,
4
4
  * all CKEditor 5 Collaboration content is authored by CKSource engineers and consists of CKSource-owned intellectual property.
5
5
  *
6
- * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
6
+ * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
7
7
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
8
8
  */
9
9
 
@@ -3,7 +3,7 @@
3
3
  * CKEditor 5 Collaboration is licensed under a commercial license and protected by copyright law. Where not otherwise indicated,
4
4
  * all CKEditor 5 Collaboration content is authored by CKSource engineers and consists of CKSource-owned intellectual property.
5
5
  *
6
- * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
6
+ * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
7
7
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
8
8
  */
9
9
 
@@ -3,7 +3,7 @@
3
3
  * CKEditor 5 Collaboration is licensed under a commercial license and protected by copyright law. Where not otherwise indicated,
4
4
  * all CKEditor 5 Collaboration content is authored by CKSource engineers and consists of CKSource-owned intellectual property.
5
5
  *
6
- * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
6
+ * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
7
7
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
8
8
  */
9
9
 
@@ -3,7 +3,7 @@
3
3
  * CKEditor 5 Collaboration is licensed under a commercial license and protected by copyright law. Where not otherwise indicated,
4
4
  * all CKEditor 5 Collaboration content is authored by CKSource engineers and consists of CKSource-owned intellectual property.
5
5
  *
6
- * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
6
+ * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
7
7
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
8
8
  */
9
9
 
@@ -3,7 +3,7 @@
3
3
  * CKEditor 5 Collaboration is licensed under a commercial license and protected by copyright law. Where not otherwise indicated,
4
4
  * all CKEditor 5 Collaboration content is authored by CKSource engineers and consists of CKSource-owned intellectual property.
5
5
  *
6
- * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
6
+ * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
7
7
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
8
8
  */
9
9
 
@@ -3,7 +3,7 @@
3
3
  * CKEditor 5 Collaboration is licensed under a commercial license and protected by copyright law. Where not otherwise indicated,
4
4
  * all CKEditor 5 Collaboration content is authored by CKSource engineers and consists of CKSource-owned intellectual property.
5
5
  *
6
- * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
6
+ * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
7
7
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
8
8
  */
9
9
 
@@ -3,7 +3,7 @@
3
3
  * CKEditor 5 Collaboration is licensed under a commercial license and protected by copyright law. Where not otherwise indicated,
4
4
  * all CKEditor 5 Collaboration content is authored by CKSource engineers and consists of CKSource-owned intellectual property.
5
5
  *
6
- * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
6
+ * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
7
7
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
8
8
  */
9
9