@ckeditor/ckeditor5-revision-history 31.1.0 → 34.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 (121) hide show
  1. package/LICENSE.md +2 -2
  2. package/README.md +5 -2
  3. package/build/revision-history.js +5 -0
  4. package/build/translations/az.js +1 -0
  5. package/build/translations/bs.js +1 -0
  6. package/build/translations/cs.js +1 -0
  7. package/build/translations/da.js +1 -0
  8. package/build/translations/de-ch.js +1 -0
  9. package/build/translations/de.js +1 -0
  10. package/build/translations/el.js +1 -0
  11. package/build/translations/en-au.js +1 -0
  12. package/build/translations/en-gb.js +1 -0
  13. package/build/translations/es.js +1 -0
  14. package/build/translations/et.js +1 -0
  15. package/build/translations/fa.js +1 -0
  16. package/build/translations/fr.js +1 -0
  17. package/build/translations/gl.js +1 -0
  18. package/build/translations/he.js +1 -0
  19. package/build/translations/hi.js +1 -0
  20. package/build/translations/hr.js +1 -0
  21. package/build/translations/hu.js +1 -0
  22. package/build/translations/id.js +1 -0
  23. package/build/translations/it.js +1 -0
  24. package/build/translations/ja.js +1 -0
  25. package/build/translations/jv.js +1 -0
  26. package/build/translations/ko.js +1 -0
  27. package/build/translations/ku.js +1 -0
  28. package/build/translations/lv.js +1 -0
  29. package/build/translations/ne.js +1 -0
  30. package/build/translations/nl.js +1 -0
  31. package/build/translations/no.js +1 -0
  32. package/build/translations/pl.js +1 -0
  33. package/build/translations/pt-br.js +1 -0
  34. package/build/translations/ro.js +1 -0
  35. package/build/translations/ru.js +1 -0
  36. package/build/translations/sk.js +1 -0
  37. package/build/translations/sr-latn.js +1 -0
  38. package/build/translations/sr.js +1 -0
  39. package/build/translations/tk.js +1 -0
  40. package/build/translations/tr.js +1 -0
  41. package/build/translations/ug.js +1 -0
  42. package/build/translations/uk.js +1 -0
  43. package/build/translations/vi.js +1 -0
  44. package/build/translations/zh-cn.js +1 -0
  45. package/build/translations/zh.js +1 -0
  46. package/lang/contexts.json +23 -22
  47. package/lang/translations/az.po +27 -23
  48. package/lang/translations/bs.po +124 -0
  49. package/lang/translations/cs.po +53 -49
  50. package/lang/translations/da.po +27 -23
  51. package/lang/translations/de-ch.po +27 -23
  52. package/lang/translations/de.po +29 -25
  53. package/lang/translations/el.po +123 -0
  54. package/lang/translations/en-au.po +51 -47
  55. package/lang/translations/en-gb.po +27 -23
  56. package/lang/translations/en.po +27 -23
  57. package/lang/translations/es.po +41 -37
  58. package/lang/translations/et.po +27 -23
  59. package/lang/translations/fa.po +27 -23
  60. package/lang/translations/fr.po +29 -25
  61. package/lang/translations/gl.po +29 -25
  62. package/lang/translations/he.po +27 -23
  63. package/lang/translations/hi.po +27 -23
  64. package/lang/translations/hr.po +30 -26
  65. package/lang/translations/hu.po +27 -23
  66. package/lang/translations/id.po +28 -24
  67. package/lang/translations/it.po +27 -23
  68. package/lang/translations/ja.po +27 -23
  69. package/lang/translations/jv.po +122 -0
  70. package/lang/translations/ko.po +27 -23
  71. package/lang/translations/ku.po +27 -23
  72. package/lang/translations/lv.po +27 -23
  73. package/lang/translations/ne.po +27 -23
  74. package/lang/translations/nl.po +27 -23
  75. package/lang/translations/no.po +27 -23
  76. package/lang/translations/pl.po +31 -27
  77. package/lang/translations/pt-br.po +27 -23
  78. package/lang/translations/ro.po +30 -26
  79. package/lang/translations/ru.po +27 -23
  80. package/lang/translations/sk.po +53 -49
  81. package/lang/translations/sr-latn.po +27 -23
  82. package/lang/translations/sr.po +27 -23
  83. package/lang/translations/tk.po +27 -23
  84. package/lang/translations/tr.po +27 -23
  85. package/lang/translations/ug.po +27 -23
  86. package/lang/translations/uk.po +27 -23
  87. package/lang/translations/vi.po +27 -23
  88. package/lang/translations/zh-cn.po +27 -23
  89. package/lang/translations/zh.po +27 -23
  90. package/package.json +8 -11
  91. package/src/changeitem.js +2 -2
  92. package/src/editor/revisionviewereditor.js +23 -0
  93. package/src/editor/revisionviewereditorui.js +23 -0
  94. package/src/editor/revisionviewereditoruiview.js +23 -0
  95. package/src/index.js +23 -0
  96. package/src/revision.js +2 -2
  97. package/src/revisiondiff.js +2 -2
  98. package/src/revisionhistory.js +2 -2
  99. package/src/revisionsrepository.js +2 -2
  100. package/src/revisiontracker.js +2 -2
  101. package/src/revisionviewer.js +2 -2
  102. package/src/ui/revision/createrevisionactionsdropdown.js +2 -2
  103. package/src/ui/revision/revisionauthorview.js +2 -2
  104. package/src/ui/revision/revisionnameview.js +2 -2
  105. package/src/ui/revision/revisionview.js +2 -2
  106. package/src/ui/revision/subrevisioncollapserview.js +2 -2
  107. package/src/ui/revision/subrevisionview.js +2 -2
  108. package/src/ui/revision/utils.js +2 -2
  109. package/src/ui/revisionhistory/revisionhistorysaverevisionformview.js +2 -2
  110. package/src/ui/revisionhistory/revisionhistoryui.js +2 -2
  111. package/src/ui/revisionssidebar/revisionssidebar.js +2 -2
  112. package/src/ui/revisionssidebar/revisionssidebarheaderview.js +2 -2
  113. package/src/ui/revisionssidebar/revisionssidebartimeperiodview.js +2 -2
  114. package/src/ui/revisionssidebar/revisionssidebarview.js +2 -2
  115. package/src/ui/revisionssidebar/utils.js +2 -2
  116. package/src/ui/revisionviewer/changedetailsview.js +2 -2
  117. package/src/ui/revisionviewer/changesnavigationview.js +2 -2
  118. package/src/ui/revisionviewer/revisionviewerloadingoverlay.js +2 -2
  119. package/src/ui/revisionviewer/revisionviewerui.js +2 -2
  120. package/theme/revisionhistorysaverevisionform.css +1 -1
  121. package/theme/revisionviewer.css +0 -6
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2021, CKSource - Frederico Knabben. All rights reserved.
2
+ * Copyright (c) 2016 - 2022, 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 _0x4e17=['config','isVisible','_handleDiffChange','init','diff','focus','isReady','getEarlierVisibleRevision','_sidebarView','locale','change:diff','requires','_revisionsRepository','getLaterVisibleRevision','_handleEditorDataReady','render','destroy','get','map','listenTo','selectRevision','length','nameRevision','Name\x20this\x20revision','defaultRevisionActions','_createRevisionActions','highlightRevisions','availableRevisionActions','ready','revisionViews','revisionSelected','restoreRevisionCallback','restoreRevision','_handleRevisionSelected','select','timePeriodViews','bind','editor','revisionHistory.revisionActions','isSelected','fieldView','getRevisionsInDiff','Compare\x20against\x20selected','appendChild','plugins','newRevisionId','isEnabled','getRevision','getIndex','compare','repository','_revisionViewer','revisionHistory','pluginName','RevisionsSidebar','element','action'];(function(_0x37ed71,_0x4e17f7){const _0x28e0f1=function(_0x3ad8bd){while(--_0x3ad8bd){_0x37ed71['push'](_0x37ed71['shift']());}};_0x28e0f1(++_0x4e17f7);}(_0x4e17,0x14f));const _0x28e0=function(_0x37ed71,_0x4e17f7){_0x37ed71=_0x37ed71-0x0;let _0x28e0f1=_0x4e17[_0x37ed71];return _0x28e0f1;};import{Plugin as _0x1a1920}from'ckeditor5/src/core';import _0x4d71c3 from'./revisionssidebarview';import _0x478359 from'../../revisionviewer';export default class k extends _0x1a1920{static get[_0x28e0('0x3')](){return _0x28e0('0x4');}static get[_0x28e0('0x12')](){return[_0x478359];}constructor(_0x22ab4e){super(_0x22ab4e),this[_0x28e0('0x1')]=_0x22ab4e[_0x28e0('0x33')]['get'](_0x478359),this[_0x28e0('0x13')]=this[_0x28e0('0x1')]['repository'],this[_0x28e0('0xf')]=null;}[_0x28e0('0xa')](){const _0x94830b=this['_revisionsRepository']['_revisions'],_0x27ca2d=this[_0x28e0('0x20')](),_0x1aebac=this[_0x28e0('0x2c')][_0x28e0('0x7')][_0x28e0('0x18')]('revisionHistory.viewerSidebarContainer');this[_0x28e0('0xf')]=new _0x4d71c3(this['editor'][_0x28e0('0x10')],_0x94830b,_0x27ca2d),this[_0x28e0('0xf')]['on'](_0x28e0('0x25'),this[_0x28e0('0x28')][_0x28e0('0x2b')](this)),this[_0x28e0('0xf')][_0x28e0('0x2b')](_0x28e0('0x35'))['to'](this[_0x28e0('0x1')]),this[_0x28e0('0xf')][_0x28e0('0x2a')]['on']('add',(_0x53d75f,_0x27c5a0)=>{_0x27c5a0[_0x28e0('0x24')]['on']('add',(_0x570a48,_0x26e51b)=>{_0x26e51b[_0x28e0('0x2b')]('isEnabled',_0x28e0('0xd'))['to'](this[_0x28e0('0x1')]);});}),this[_0x28e0('0xf')][_0x28e0('0x16')](),this['listenTo'](this[_0x28e0('0x2c')]['data'],_0x28e0('0x23'),this['_handleEditorDataReady'][_0x28e0('0x2b')](this)),this[_0x28e0('0x1a')](this['_revisionViewer'],_0x28e0('0x11'),this[_0x28e0('0x9')][_0x28e0('0x2b')](this)),_0x1aebac[_0x28e0('0x32')](this[_0x28e0('0xf')]['element']);}[_0x28e0('0x17')](){this['_sidebarView'][_0x28e0('0x5')]['remove'](),this[_0x28e0('0xf')]['destroy']();}[_0x28e0('0x15')](){const _0x2cf79f=this[_0x28e0('0x13')][_0x28e0('0x36')](0x0);if(_0x2cf79f){const _0x531768=this[_0x28e0('0x13')]['getEarlierVisibleRevision'](_0x2cf79f['id']);this['_revisionViewer'][_0x28e0('0x38')](_0x2cf79f,_0x531768);}}[_0x28e0('0x28')](_0x3d4c00,_0x3a91a5){const _0x45fb=this[_0x28e0('0x13')][_0x28e0('0x36')](_0x3a91a5['id']),_0x406113=this[_0x28e0('0x13')][_0x28e0('0xe')](_0x45fb['id']);this[_0x28e0('0x1')]['compare'](_0x45fb,_0x406113);}[_0x28e0('0x9')](_0x46315a,_0x5e824e,_0x4112f8){const _0x461baa=this['_revisionsRepository'][_0x28e0('0x30')](_0x4112f8);_0x461baa[_0x28e0('0x1c')]>0x2?(this[_0x28e0('0xf')][_0x28e0('0x21')](_0x461baa),this[_0x28e0('0xf')][_0x28e0('0x1b')](null)):(this[_0x28e0('0xf')]['highlightRevisions']([]),this['_sidebarView'][_0x28e0('0x1b')](_0x461baa[0x0]));}[_0x28e0('0x20')](){const _0x2b0778=this[_0x28e0('0x2c')],_0x51d076=k['availableRevisionActions'],_0x5bdd71=_0x2b0778[_0x28e0('0x7')][_0x28e0('0x18')](_0x28e0('0x2d'))||k[_0x28e0('0x1f')];if(_0x5bdd71['length'])return _0x5bdd71[_0x28e0('0x19')](_0x2e34b9=>{const _0x51b0da='string'==typeof _0x2e34b9?Object['assign']({},_0x51d076[_0x2e34b9]):_0x2e34b9;return _0x51b0da[_0x28e0('0x6')]=_0x51b0da[_0x28e0('0x6')]['bind'](this,_0x2b0778),_0x51b0da[_0x28e0('0x8')]&&(_0x51b0da[_0x28e0('0x8')]=_0x51b0da[_0x28e0('0x8')][_0x28e0('0x2b')](this,_0x2b0778)),_0x51b0da;});}}k[_0x28e0('0x22')]={'compareAgainstSelected':{'name':_0x28e0('0x31'),'action':({plugins:_0x55725f},_0x7285fb)=>{const _0xacd8a4=_0x55725f[_0x28e0('0x18')](_0x478359),_0x286936=_0xacd8a4[_0x28e0('0x0')];let _0x2a50f3=_0xacd8a4[_0x28e0('0xb')][_0x28e0('0x34')],_0x4be770=_0x7285fb['id'];_0x286936['getIndex'](_0x2a50f3)>_0x286936[_0x28e0('0x37')](_0x4be770)&&([_0x2a50f3,_0x4be770]=[_0x4be770,_0x2a50f3]),_0xacd8a4[_0x28e0('0x38')](_0x2a50f3,_0x4be770);},'isVisible':({plugins:_0x27bf9d},_0x59f156)=>{const _0x4d2279=_0x27bf9d[_0x28e0('0x18')](_0x478359);return!(_0x4d2279[_0x28e0('0x0')][_0x28e0('0x30')](_0x4d2279['diff'])[_0x28e0('0x1c')]>0x2)&&!_0x59f156[_0x28e0('0x2e')];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x39d6b2,{id:_0x4d3dd8})=>{_0x39d6b2['config'][_0x28e0('0x18')](_0x28e0('0x2'))[_0x28e0('0x26')](_0x4d3dd8);},'isVisible':({plugins:_0x29f24e},_0x21ead0)=>!!_0x29f24e[_0x28e0('0x18')](_0x478359)['repository'][_0x28e0('0x14')](_0x21ead0['id'])},'nameRevision':{'name':_0x28e0('0x1e'),'action':({plugins:_0xa99ead},{id:_0x28eead,revisionNameView:_0x267b30})=>{const _0x5151a6=_0xa99ead[_0x28e0('0x18')](_0x478359),_0x393887=_0x5151a6[_0x28e0('0x0')][_0x28e0('0xe')](_0x28eead);_0x5151a6[_0x28e0('0x38')](_0x28eead,_0x393887),_0x267b30[_0x28e0('0xc')](),_0x267b30[_0x28e0('0x2f')][_0x28e0('0x29')]();}}},k[_0x28e0('0x1f')]=['compareAgainstSelected',_0x28e0('0x27'),_0x28e0('0x1d')];
23
+ const _0x199b=['_sidebarView','config','Compare\x20against\x20selected','init','appendChild','isEnabled','_handleDiffChange','setName','isReady','getEarlierVisibleRevision','name','getRevision','diff','requires','nameRevision','RevisionsSidebar','repository','restoreRevision','change:diff','_handleRevisionSelected','restoreRevisionCallback','selectRevision','_createRevisionActions','action','plugins','bind','focus','highlightRevisions','availableRevisionActions','revisionHistory.revisionActions','get','ready','element','isSelected','isVisible','revisionHistory','_revisionsRepository','select','revisionSetName','_handleRevisionSetName','_revisionViewer','compare','remove','fieldView','locale','timePeriodViews','getIndex','Restore\x20this\x20revision','map','listenTo','add','revisionViews','newRevisionId','getRevisionsInDiff','editor','_handleEditorDataReady','render','Name\x20this\x20revision','compareAgainstSelected','defaultRevisionActions'];(function(_0x28de27,_0x199bf3){const _0x50e9d1=function(_0x3bd936){while(--_0x3bd936){_0x28de27['push'](_0x28de27['shift']());}};_0x50e9d1(++_0x199bf3);}(_0x199b,0x10f));const _0x50e9=function(_0x28de27,_0x199bf3){_0x28de27=_0x28de27-0x0;let _0x50e9d1=_0x199b[_0x28de27];return _0x50e9d1;};import{Plugin as _0x502586}from'ckeditor5/src/core';import _0x3dd665 from'./revisionssidebarview';import _0x2c53c8 from'../../revisionviewer';export default class w extends _0x502586{static get['pluginName'](){return _0x50e9('0x2c');}static get[_0x50e9('0x2a')](){return[_0x2c53c8];}constructor(_0x31c079){super(_0x31c079),this['_revisionViewer']=_0x31c079[_0x50e9('0x35')]['get'](_0x2c53c8),this[_0x50e9('0x5')]=this['_revisionViewer'][_0x50e9('0x2d')],this['_sidebarView']=null;}[_0x50e9('0x20')](){const _0x88bc60=this[_0x50e9('0x5')]['_revisions'],_0x328610=this['_createRevisionActions'](),_0x2cec41=this[_0x50e9('0x17')][_0x50e9('0x1e')][_0x50e9('0x3b')]('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new _0x3dd665(this[_0x50e9('0x17')][_0x50e9('0xd')],_0x88bc60,_0x328610),this[_0x50e9('0x1d')]['on']('revisionSelected',this[_0x50e9('0x30')]['bind'](this)),this[_0x50e9('0x1d')]['on'](_0x50e9('0x7'),this[_0x50e9('0x8')][_0x50e9('0x36')](this)),this[_0x50e9('0x1d')][_0x50e9('0x36')](_0x50e9('0x22'))['to'](this[_0x50e9('0x9')]),this['_sidebarView'][_0x50e9('0xe')]['on']('add',(_0x5730b6,_0xd4fb56)=>{_0xd4fb56[_0x50e9('0x14')]['on'](_0x50e9('0x13'),(_0x5848ed,_0x375ecc)=>{_0x375ecc['bind'](_0x50e9('0x22'),_0x50e9('0x25'))['to'](this[_0x50e9('0x9')]);});}),this['_sidebarView'][_0x50e9('0x19')](),this[_0x50e9('0x12')](this[_0x50e9('0x17')]['data'],_0x50e9('0x0'),this['_handleEditorDataReady'][_0x50e9('0x36')](this)),this['listenTo'](this[_0x50e9('0x9')],_0x50e9('0x2f'),this[_0x50e9('0x23')]['bind'](this)),_0x2cec41[_0x50e9('0x21')](this[_0x50e9('0x1d')][_0x50e9('0x1')]);}['destroy'](){this[_0x50e9('0x1d')]['element'][_0x50e9('0xb')](),this[_0x50e9('0x1d')]['destroy']();}[_0x50e9('0x18')](){const _0xc34bfb=this[_0x50e9('0x5')][_0x50e9('0x28')](0x0);if(_0xc34bfb){const _0x2e4f55=this[_0x50e9('0x5')][_0x50e9('0x26')](_0xc34bfb['id']);this['_revisionViewer']['compare'](_0xc34bfb,_0x2e4f55);}}['_handleRevisionSelected'](_0x403612,_0x56cb4b){const _0x317513=this[_0x50e9('0x5')][_0x50e9('0x28')](_0x56cb4b['id']),_0x2c3ea5=this[_0x50e9('0x5')][_0x50e9('0x26')](_0x317513['id']);this[_0x50e9('0x9')][_0x50e9('0xa')](_0x317513,_0x2c3ea5);}[_0x50e9('0x8')](_0xde1f90,_0x2fddef){this['_revisionsRepository'][_0x50e9('0x28')](_0x2fddef['id'])[_0x50e9('0x24')](_0x2fddef[_0x50e9('0x27')]);}[_0x50e9('0x23')](_0x24c2e4,_0x293408,_0x466d5d){const _0x259d98=this['_revisionsRepository'][_0x50e9('0x16')](_0x466d5d);_0x259d98['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0x259d98),this['_sidebarView'][_0x50e9('0x32')](null)):(this['_sidebarView'][_0x50e9('0x38')]([]),this[_0x50e9('0x1d')][_0x50e9('0x32')](_0x259d98[0x0]));}[_0x50e9('0x33')](){const _0x2e4dd6=this['editor'],_0x48e8a0=w['availableRevisionActions'],_0x2bf80a=_0x2e4dd6[_0x50e9('0x1e')][_0x50e9('0x3b')](_0x50e9('0x3a'))||w[_0x50e9('0x1c')];if(_0x2bf80a['length'])return _0x2bf80a[_0x50e9('0x11')](_0x514656=>{const _0x162d9a='string'==typeof _0x514656?Object['assign']({},_0x48e8a0[_0x514656]):_0x514656;return _0x162d9a[_0x50e9('0x34')]=_0x162d9a[_0x50e9('0x34')][_0x50e9('0x36')](this,_0x2e4dd6),_0x162d9a[_0x50e9('0x3')]&&(_0x162d9a[_0x50e9('0x3')]=_0x162d9a['isVisible']['bind'](this,_0x2e4dd6)),_0x162d9a;});}}w[_0x50e9('0x39')]={'compareAgainstSelected':{'name':_0x50e9('0x1f'),'action':({plugins:_0x6ae438},_0x2c03bd)=>{const _0x4ecdcb=_0x6ae438['get'](_0x2c53c8),_0x855120=_0x4ecdcb[_0x50e9('0x2d')];let _0x4199a5=_0x4ecdcb[_0x50e9('0x29')][_0x50e9('0x15')],_0x1c1525=_0x2c03bd['id'];_0x855120[_0x50e9('0xf')](_0x4199a5)>_0x855120['getIndex'](_0x1c1525)&&([_0x4199a5,_0x1c1525]=[_0x1c1525,_0x4199a5]),_0x4ecdcb[_0x50e9('0xa')](_0x4199a5,_0x1c1525);},'isVisible':({plugins:_0x216d5a},_0x22e5b9)=>{const _0x2f38b4=_0x216d5a['get'](_0x2c53c8);return!(_0x2f38b4['repository'][_0x50e9('0x16')](_0x2f38b4[_0x50e9('0x29')])['length']>0x2)&&!_0x22e5b9[_0x50e9('0x2')];}},'restoreRevision':{'name':_0x50e9('0x10'),'action':(_0x3319db,{id:_0x584d9d})=>{_0x3319db[_0x50e9('0x1e')][_0x50e9('0x3b')](_0x50e9('0x4'))[_0x50e9('0x31')](_0x584d9d);},'isVisible':({plugins:_0x14b649},_0x4b3f32)=>!!_0x14b649[_0x50e9('0x3b')](_0x2c53c8)[_0x50e9('0x2d')]['getLaterVisibleRevision'](_0x4b3f32['id'])},'nameRevision':{'name':_0x50e9('0x1a'),'action':({plugins:_0x1f5747},{id:_0x1ec86d,revisionNameView:_0x59847d})=>{const _0x1453fa=_0x1f5747[_0x50e9('0x3b')](_0x2c53c8),_0x1f7429=_0x1453fa['repository'][_0x50e9('0x26')](_0x1ec86d);_0x1453fa[_0x50e9('0xa')](_0x1ec86d,_0x1f7429),_0x59847d[_0x50e9('0x37')](),_0x59847d[_0x50e9('0xc')][_0x50e9('0x6')]();}}},w[_0x50e9('0x1c')]=[_0x50e9('0x1b'),_0x50e9('0x2e'),_0x50e9('0x2b')];
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2021, CKSource - Frederico Knabben. All rights reserved.
2
+ * Copyright (c) 2016 - 2022, 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
- import{View as _0x32486d,IconView as _0x3e0668}from'ckeditor5/src/ui';import _0x5df3c3 from'../../../theme/icons/revision-history.svg';import'../../../theme/revisionssidebar/revisionssidebarheader.css';export default class rs extends _0x32486d{constructor(_0x105dcf){super(_0x105dcf);const t=_0x105dcf['t'],_0x550ae9=new _0x3e0668(_0x105dcf);_0x550ae9['content']=_0x5df3c3,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x550ae9,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[t('Revision\x20history')]}]});}}
23
+ import{View as _0x54b6a9,IconView as _0x1dcbf6}from'ckeditor5/src/ui';import _0x2eea5b from'../../../theme/icons/revision-history.svg';import'../../../theme/revisionssidebar/revisionssidebarheader.css';export default class cs extends _0x54b6a9{constructor(_0x4dc9c6){super(_0x4dc9c6);const t=_0x4dc9c6['t'],_0x1e8db8=new _0x1dcbf6(_0x4dc9c6);_0x1e8db8['content']=_0x2eea5b,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x1e8db8,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[t('Revision\x20history')]}]});}}
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2021, CKSource - Frederico Knabben. All rights reserved.
2
+ * Copyright (c) 2016 - 2022, 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 _0x9909=['delegate','removeRevision','_revisionActions','span','getIndex','addRevision','createCollection','createdAt','setTemplate','revisionViews','ck-revision-history-sidebar__time-period__label','localizedPeriodName','ck-revision-history-sidebar__time-period','select','add','startDate','getTime','remove','ck-revision-history-sidebar__time-period__revisions','find'];(function(_0x46ef81,_0x9909f8){const _0x2e5705=function(_0x334cc6){while(--_0x334cc6){_0x46ef81['push'](_0x46ef81['shift']());}};_0x2e5705(++_0x9909f8);}(_0x9909,0x18e));const _0x2e57=function(_0x46ef81,_0x9909f8){_0x46ef81=_0x46ef81-0x0;let _0x2e5705=_0x9909[_0x46ef81];return _0x2e5705;};import{View as _0xf15bef}from'ckeditor5/src/ui';import _0xbc5182 from'../revision/revisionview';import{getDateTimePeriodInfo as _0x5cd57a}from'./utils';import'../../../theme/revisionssidebar/revisionssidebartimeperiod.css';export default class hi extends _0xf15bef{constructor(_0x20655b,_0x21f41a,_0x552550){super(_0x20655b);const _0x280887=_0x5cd57a(_0x21f41a,this['locale']['uiLanguage'])[_0x2e57('0xd')];this[_0x2e57('0x11')]=_0x21f41a,this[_0x2e57('0x4')]=_0x552550,this[_0x2e57('0xb')]=this[_0x2e57('0x8')](),this['revisionViews'][_0x2e57('0x2')](_0x2e57('0xf'))['to'](this),this[_0x2e57('0xa')]({'tag':'div','attributes':{'class':['ck',_0x2e57('0xe')]},'children':[{'tag':_0x2e57('0x5'),'attributes':{'class':['ck',_0x2e57('0xc')]},'children':[{'text':_0x280887}]},{'tag':'div','attributes':{'class':['ck',_0x2e57('0x0')]},'children':this[_0x2e57('0xb')]}]});}[_0x2e57('0x7')](_0x4da822){const _0x3ccf25=new _0xbc5182(this['locale'],_0x4da822,this[_0x2e57('0x4')]),_0x581d1e=this[_0x2e57('0xb')][_0x2e57('0x1')](_0x3e0a79=>_0x3e0a79[_0x2e57('0x9')][_0x2e57('0x12')]()<_0x3ccf25[_0x2e57('0x9')][_0x2e57('0x12')]());_0x581d1e?this[_0x2e57('0xb')][_0x2e57('0x10')](_0x3ccf25,this['revisionViews'][_0x2e57('0x6')](_0x581d1e)):this[_0x2e57('0xb')][_0x2e57('0x10')](_0x3ccf25);}[_0x2e57('0x3')](_0x1b4e04){const _0x450283=this[_0x2e57('0xb')][_0x2e57('0x1')](_0x52cf18=>_0x52cf18['id']===_0x1b4e04['id']);this[_0x2e57('0xb')][_0x2e57('0x13')](_0x450283);}}
23
+ const _0x26c7=['uiLanguage','div','ck-revision-history-sidebar__time-period','localizedPeriodName','find','locale','ck-revision-history-sidebar__time-period__label','addRevision','delegate','add','_revisionActions','setName','revisionViews','span'];(function(_0x5701b9,_0x26c740){const _0xae660b=function(_0x2e5d6b){while(--_0x2e5d6b){_0x5701b9['push'](_0x5701b9['shift']());}};_0xae660b(++_0x26c740);}(_0x26c7,0x1d1));const _0xae66=function(_0x5701b9,_0x26c740){_0x5701b9=_0x5701b9-0x0;let _0xae660b=_0x26c7[_0x5701b9];return _0xae660b;};import{View as _0x80e87f}from'ckeditor5/src/ui';import _0x3c7992 from'../revision/revisionview';import{getDateTimePeriodInfo as _0x1816e7}from'./utils';import'../../../theme/revisionssidebar/revisionssidebartimeperiod.css';export default class mi extends _0x80e87f{constructor(_0x23a009,_0x21eb50,_0x3963d7){super(_0x23a009);const _0x20118c=_0x1816e7(_0x21eb50,this[_0xae66('0x2')][_0xae66('0xb')])[_0xae66('0x0')];this['startDate']=_0x21eb50,this[_0xae66('0x7')]=_0x3963d7,this[_0xae66('0x9')]=this['createCollection'](),this[_0xae66('0x9')][_0xae66('0x5')]('select')['to'](this),this[_0xae66('0x9')]['delegate'](_0xae66('0x8'))['to'](this),this['setTemplate']({'tag':_0xae66('0xc'),'attributes':{'class':['ck',_0xae66('0xd')]},'children':[{'tag':_0xae66('0xa'),'attributes':{'class':['ck',_0xae66('0x3')]},'children':[{'text':_0x20118c}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this[_0xae66('0x9')]}]});}[_0xae66('0x4')](_0x3bc82d){const _0x329e9b=new _0x3c7992(this[_0xae66('0x2')],_0x3bc82d,this[_0xae66('0x7')]);this['revisionViews'][_0xae66('0x6')](_0x329e9b);}['removeRevision'](_0x31fb16){const _0x3efff2=this['revisionViews'][_0xae66('0x1')](_0x15b88f=>_0x15b88f['id']===_0x31fb16['id']);this[_0xae66('0x9')]['remove'](_0x3efff2);}}
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2021, CKSource - Frederico Knabben. All rights reserved.
2
+ * Copyright (c) 2016 - 2022, 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 _0x554e=['removeRevision','find','revisionViews','getIndex','add','isEnabled','_removeRevision','_revisionActions','div','render','setTemplate','remove','set','source','createdAt','timePeriodViews','selectRevision','revisionSelected','map','fire','getTime','addRevision','highlightRevisions','bindTemplate','ck-revision-history-sidebar','select','flat','createCollection','ck-rounded-corners','_getTimePeriodViewByStartDate','ck-reset','startDate','ck-disabled','_revisions','some','_addRevision','unhighlight','locale','deselect'];(function(_0x3bdc82,_0x554e59){const _0x5cdd2d=function(_0x5c584a){while(--_0x5c584a){_0x3bdc82['push'](_0x3bdc82['shift']());}};_0x5cdd2d(++_0x554e59);}(_0x554e,0x15f));const _0x5cdd=function(_0x3bdc82,_0x554e59){_0x3bdc82=_0x3bdc82-0x0;let _0x5cdd2d=_0x554e[_0x3bdc82];return _0x5cdd2d;};import{View as _0x56eb49}from'ckeditor5/src/ui';import _0x1d5aa5 from'./revisionssidebartimeperiodview';import _0x396f64 from'./revisionssidebarheaderview';import{getDateTimePeriodInfo as _0x433a69}from'./utils';import'../../../theme/revisionssidebar/revisionssidebar.css';export default class ni extends _0x56eb49{constructor(_0x29487f,_0x618412,_0x1b1342){super(_0x29487f);const _0x1638cd=this[_0x5cdd('0x17')];this[_0x5cdd('0xf')]=this[_0x5cdd('0x1b')](),this[_0x5cdd('0xf')]['delegate'](_0x5cdd('0x19'))['to'](this),this['_revisions']=_0x618412,this[_0x5cdd('0x7')]=_0x1b1342,this['on']('select',_0x1716b3=>{this[_0x5cdd('0x13')](_0x5cdd('0x11'),{'id':_0x1716b3[_0x5cdd('0xd')]['id']});}),this[_0x5cdd('0xc')](_0x5cdd('0x5'),!0x1),this[_0x5cdd('0xa')]({'tag':_0x5cdd('0x8'),'attributes':{'class':['ck',_0x5cdd('0x1e'),_0x5cdd('0x1c'),_0x5cdd('0x18')]},'children':[new _0x396f64(_0x29487f),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x1638cd['if']('isEnabled',_0x5cdd('0x20'),_0x4a888e=>!_0x4a888e)]},'children':this[_0x5cdd('0xf')]}]});}[_0x5cdd('0x9')](){super[_0x5cdd('0x9')]();for(const _0x19c773 of this['_revisions'])this[_0x5cdd('0x23')](_0x19c773);this[_0x5cdd('0x21')]['on']('add',(_0xe4e512,_0x1b9590)=>{this[_0x5cdd('0x23')](_0x1b9590);}),this[_0x5cdd('0x21')]['on'](_0x5cdd('0xb'),(_0xfb9f56,_0x4437cb)=>{this[_0x5cdd('0x6')](_0x4437cb);});}get[_0x5cdd('0x2')](){return this[_0x5cdd('0xf')][_0x5cdd('0x12')](_0x5ad624=>_0x5ad624['revisionViews'][_0x5cdd('0x12')](_0x54e106=>_0x54e106))[_0x5cdd('0x1a')]();}[_0x5cdd('0x10')](_0x568ff4){for(const _0xbfb448 of this[_0x5cdd('0x2')])_0x568ff4&&_0x568ff4['id']===_0xbfb448['id']?_0xbfb448[_0x5cdd('0x19')]():_0xbfb448[_0x5cdd('0x26')]();}[_0x5cdd('0x16')](_0x29679f){for(const _0x9ef780 of this['revisionViews'])_0x29679f[_0x5cdd('0x22')](({id:_0x4eb65f})=>_0x4eb65f===_0x9ef780['id'])?_0x9ef780['highlight']():_0x9ef780[_0x5cdd('0x24')]();}[_0x5cdd('0x23')](_0x34e3e3){const _0x4f1ff5=_0x433a69(_0x34e3e3[_0x5cdd('0xe')])['startDate'];let _0x20957c=this[_0x5cdd('0x1d')](_0x4f1ff5);if(!_0x20957c){_0x20957c=new _0x1d5aa5(this[_0x5cdd('0x25')],_0x4f1ff5,this[_0x5cdd('0x7')]);const _0x4a23a5=this[_0x5cdd('0xf')][_0x5cdd('0x1')](_0x348406=>_0x348406[_0x5cdd('0x1f')]['getTime']()<_0x4f1ff5[_0x5cdd('0x14')]());_0x4a23a5?this['timePeriodViews'][_0x5cdd('0x4')](_0x20957c,this[_0x5cdd('0xf')][_0x5cdd('0x3')](_0x4a23a5)):this[_0x5cdd('0xf')]['add'](_0x20957c);}_0x20957c[_0x5cdd('0x15')](_0x34e3e3);}['_removeRevision'](_0x217e98){const _0x4fe80b=_0x433a69(_0x217e98[_0x5cdd('0xe')])[_0x5cdd('0x1f')];this[_0x5cdd('0x1d')](_0x4fe80b)[_0x5cdd('0x0')](_0x217e98);}[_0x5cdd('0x1d')](_0x371b13){return this['timePeriodViews'][_0x5cdd('0x1')](_0x11dca0=>_0x11dca0[_0x5cdd('0x1f')][_0x5cdd('0x14')]()===_0x371b13[_0x5cdd('0x14')]());}}
23
+ const _0x5e97=['setName','removeRevision','isEnabled','createdAt','ck-disabled','get','div','getTime','bindTemplate','startDate','locale','addRevision','createCollection','revisionSelected','map','selectRevision','fire','_getTimePeriodViewByStartDate','setTemplate','some','timePeriodViews','_addRevision','ck-reset','ck-revision-history-sidebar__timeline','_removeRevision','_revisions','deselect','select','_revisionActions','add','highlight','ck-revision-history-sidebar','unhighlight','revisionViews'];(function(_0x2eb00d,_0x5e97f9){const _0x3c1998=function(_0xcf6a0b){while(--_0xcf6a0b){_0x2eb00d['push'](_0x2eb00d['shift']());}};_0x3c1998(++_0x5e97f9);}(_0x5e97,0x128));const _0x3c19=function(_0x2eb00d,_0x5e97f9){_0x2eb00d=_0x2eb00d-0x0;let _0x3c1998=_0x5e97[_0x2eb00d];return _0x3c1998;};import{View as _0x5e5f0e}from'ckeditor5/src/ui';import _0x5d1e3e from'./revisionssidebartimeperiodview';import _0x28fe90 from'./revisionssidebarheaderview';import{getDateTimePeriodInfo as _0x592b80}from'./utils';import'../../../theme/revisionssidebar/revisionssidebar.css';export default class ai extends _0x5e5f0e{constructor(_0x10a637,_0x572ece,_0x3fd707){super(_0x10a637);const _0x1d3896=this[_0x3c19('0x12')];this[_0x3c19('0x1e')]=this[_0x3c19('0x16')](),this[_0x3c19('0x1e')]['delegate'](_0x3c19('0x3'))['to'](this),this[_0x3c19('0x1e')]['delegate'](_0x3c19('0xa'))['to'](this),this[_0x3c19('0x1')]=_0x572ece,this[_0x3c19('0x4')]=_0x3fd707,this['on']('select',(_0x478d98,_0x281ba8)=>{this[_0x3c19('0x1a')](_0x3c19('0x17'),_0x281ba8);}),this['on'](_0x3c19('0xa'),(_0x47f874,_0x2f6c0f)=>{this[_0x3c19('0x1a')]('revisionSetName',_0x2f6c0f);}),this['set'](_0x3c19('0xc'),!0x1),this[_0x3c19('0x1c')]({'tag':_0x3c19('0x10'),'attributes':{'class':['ck',_0x3c19('0x20'),'ck-rounded-corners',_0x3c19('0x7')]},'children':[new _0x28fe90(_0x10a637),{'tag':_0x3c19('0x10'),'attributes':{'class':['ck',_0x3c19('0x21'),_0x1d3896['if'](_0x3c19('0xc'),_0x3c19('0xe'),_0x3c7497=>!_0x3c7497)]},'children':this[_0x3c19('0x1e')]}]});}['render'](){super['render']();for(const _0x341d2e of this[_0x3c19('0x1')])this[_0x3c19('0x1f')](_0x341d2e);this[_0x3c19('0x1')]['on'](_0x3c19('0x5'),(_0x2f0d10,_0x2437cf)=>{this[_0x3c19('0x1f')](_0x2437cf);}),this['_revisions']['on']('remove',(_0x36cbf8,_0x3c1241)=>{this[_0x3c19('0x0')](_0x3c1241);});}get['revisionViews'](){return this[_0x3c19('0x1e')][_0x3c19('0x18')](_0x525225=>_0x525225['revisionViews'][_0x3c19('0x18')](_0x4e0242=>_0x4e0242))['flat']();}[_0x3c19('0x19')](_0x5a800e){for(const _0x5814ac of this['revisionViews'])_0x5a800e&&_0x5a800e['id']===_0x5814ac['id']?_0x5814ac[_0x3c19('0x3')]():_0x5814ac[_0x3c19('0x2')]();}['highlightRevisions'](_0x66747){for(const _0x150297 of this[_0x3c19('0x9')])_0x66747[_0x3c19('0x1d')](({id:_0xae807e})=>_0xae807e===_0x150297['id'])?_0x150297[_0x3c19('0x6')]():_0x150297[_0x3c19('0x8')]();}['_addRevision'](_0x1cf457){const _0x574cd2=_0x592b80(_0x1cf457[_0x3c19('0xd')])['startDate'];let _0x9853b3=this[_0x3c19('0x1e')][_0x3c19('0xf')](0x0);_0x9853b3&&_0x9853b3['startDate'][_0x3c19('0x11')]()===_0x574cd2[_0x3c19('0x11')]()||(_0x9853b3=new _0x5d1e3e(this[_0x3c19('0x14')],_0x574cd2,this[_0x3c19('0x4')]),this[_0x3c19('0x1e')]['add'](_0x9853b3)),_0x9853b3[_0x3c19('0x15')](_0x1cf457);}['_removeRevision'](_0x46a1e3){const _0x470f67=_0x592b80(_0x46a1e3[_0x3c19('0xd')])[_0x3c19('0x13')];this[_0x3c19('0x1b')](_0x470f67)[_0x3c19('0xb')](_0x46a1e3);}[_0x3c19('0x1b')](_0x5abf27){return this['timePeriodViews']['find'](_0x38c9dd=>_0x38c9dd['startDate']['getTime']()===_0x5abf27['getTime']());}}
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2021, CKSource - Frederico Knabben. All rights reserved.
2
+ * Copyright (c) 2016 - 2022, 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 _0x362d=['monthLong','day','toJSDate','local','toRelativeCalendar','fromJSDate','minus','year','hasSame','weekdayLong','week','startOf'];(function(_0x4d5a80,_0x362d06){const _0x41321a=function(_0x3395d0){while(--_0x3395d0){_0x4d5a80['push'](_0x4d5a80['shift']());}};_0x41321a(++_0x362d06);}(_0x362d,0x1a9));const _0x4132=function(_0x4d5a80,_0x362d06){_0x4d5a80=_0x4d5a80-0x0;let _0x41321a=_0x362d[_0x4d5a80];return _0x41321a;};import{DateTime as _0x1fcbaf}from'luxon';export function getDateTimePeriodInfo(_0x160333,_0x4f5cc0){_0x160333=_0x1fcbaf[_0x4132('0x0')](_0x160333)['setLocale'](_0x4f5cc0);const _0x33426d=_0x1fcbaf[_0x4132('0xa')](),_0x5744b7=_0x33426d[_0x4132('0x1')]({'days':0x1})['startOf']('day');let _0x2fcef4,_0x396240;return _0x160333[_0x4132('0x3')](_0x33426d,_0x4132('0x8'))?(_0x2fcef4=_0x160333['startOf'](_0x4132('0x8'))[_0x4132('0x9')](),_0x396240=_0x160333[_0x4132('0xb')]()):_0x160333[_0x4132('0x3')](_0x5744b7,_0x4132('0x8'))?(_0x2fcef4=_0x5744b7[_0x4132('0x9')](),_0x396240=_0x160333[_0x4132('0xb')]()):_0x160333[_0x4132('0x3')](_0x33426d,_0x4132('0x5'))?(_0x2fcef4=_0x160333[_0x4132('0x6')](_0x4132('0x5'))[_0x4132('0x9')](),_0x396240=_0x160333[_0x4132('0x4')]):_0x160333[_0x4132('0x3')](_0x33426d,'year')?(_0x2fcef4=_0x160333['startOf']('month')[_0x4132('0x9')](),_0x396240=_0x160333[_0x4132('0x7')]):(_0x2fcef4=_0x160333[_0x4132('0x6')](_0x4132('0x2'))[_0x4132('0x9')](),_0x396240=_0x160333[_0x4132('0x2')]),{'startDate':_0x2fcef4,'localizedPeriodName':_0x396240};}
23
+ const _0x5c94=['toRelativeCalendar','local','hasSame','year','startOf','month','day','fromJSDate','week','toJSDate','minus'];(function(_0x26662e,_0x5c942b){const _0x516820=function(_0x24d39e){while(--_0x24d39e){_0x26662e['push'](_0x26662e['shift']());}};_0x516820(++_0x5c942b);}(_0x5c94,0x105));const _0x5168=function(_0x26662e,_0x5c942b){_0x26662e=_0x26662e-0x0;let _0x516820=_0x5c94[_0x26662e];return _0x516820;};import{DateTime as _0x5640b9}from'luxon';export function getDateTimePeriodInfo(_0x13930f,_0x310019){_0x13930f=_0x5640b9[_0x5168('0xa')](_0x13930f)['setLocale'](_0x310019);const _0x5af82d=_0x5640b9[_0x5168('0x4')](),_0x8f9985=_0x5af82d[_0x5168('0x2')]({'days':0x1})[_0x5168('0x7')](_0x5168('0x9'));let _0x3e2704,_0x424cb0;return _0x13930f['hasSame'](_0x5af82d,_0x5168('0x9'))?(_0x3e2704=_0x13930f[_0x5168('0x7')]('day')['toJSDate'](),_0x424cb0=_0x13930f[_0x5168('0x3')]()):_0x13930f['hasSame'](_0x8f9985,_0x5168('0x9'))?(_0x3e2704=_0x8f9985[_0x5168('0x1')](),_0x424cb0=_0x13930f[_0x5168('0x3')]()):_0x13930f['hasSame'](_0x5af82d,_0x5168('0x0'))?(_0x3e2704=_0x13930f['startOf'](_0x5168('0x0'))['toJSDate'](),_0x424cb0=_0x13930f['weekdayLong']):_0x13930f[_0x5168('0x5')](_0x5af82d,_0x5168('0x6'))?(_0x3e2704=_0x13930f[_0x5168('0x7')](_0x5168('0x8'))[_0x5168('0x1')](),_0x424cb0=_0x13930f['monthLong']):(_0x3e2704=_0x13930f[_0x5168('0x7')](_0x5168('0x6'))['toJSDate'](),_0x424cb0=_0x13930f[_0x5168('0x6')]),{'startDate':_0x3e2704,'localizedPeriodName':_0x424cb0};}
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2021, CKSource - Frederico Knabben. All rights reserved.
2
+ * Copyright (c) 2016 - 2022, 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
- import{View as _0x39b3ba}from'ckeditor5/src/ui';export default class P extends _0x39b3ba{constructor(_0x1db946,_0x358f56){super(_0x1db946);const t=_0x1db946['t'];this['_model']=_0x358f56;const _0x1cda3c=this['bindTemplate'],_0x1adc9e=_0x358f56['data']['isSuggestion']?t('Suggested\x20by'):'add'==_0x358f56['type']?t('Added\x20by'):t('Removed\x20by');this['set']('type',_0x358f56['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x1cda3c['to']('type',_0x4a35ce=>'ck-revision-change__'+_0x4a35ce)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x1adc9e}]},{'text':'\x20'+_0x358f56['author']['name']}]}]});}['focus'](){this['element']['focus']();}}
23
+ import{View as _0x2f5856}from'ckeditor5/src/ui';export default class H extends _0x2f5856{constructor(_0x1c87d3,_0x7877f8){super(_0x1c87d3);const t=_0x1c87d3['t'];this['_model']=_0x7877f8;const _0x4078fd=this['bindTemplate'],_0x2ccb78=_0x7877f8['data']['isSuggestion']?t('Suggested\x20by'):'add'==_0x7877f8['type']?t('Added\x20by'):t('Removed\x20by');this['set']('type',_0x7877f8['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x4078fd['to']('type',_0x15215c=>'ck-revision-change__'+_0x15215c)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x2ccb78}]},{'text':'\x20'+_0x7877f8['author']['name']}]}]});}['focus'](){this['element']['focus']();}}
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2021, CKSource - Frederico Knabben. All rights reserved.
2
+ * Copyright (c) 2016 - 2022, 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
- import{View as _0x1161e7,ButtonView as it,ToolbarSeparatorView as _0x5a7d92}from'ckeditor5/src/ui';import _0x16c996 from'../../../theme/icons/arrow-up.svg';import _0x123c0d from'../../../theme/icons/arrow-down.svg';import'../../../theme/changesnavigation.css';export default class ui extends _0x1161e7{constructor(_0x172095){super(_0x172095);const t=_0x172095['t'],_0x3de6d5=this['bindTemplate'],_0x2ff31f=new it(_0x172095),_0x4c6e88=new it(_0x172095);this['set']('isNavigationMode',!0x1),this['set']('isReady',!0x1),this['set']('currentChangeNumber',0x0),this['set']('numberOfChanges',0x0),this['set']('isForwardNavigationEnabled',!0x1),this['set']('isBackwardNavigationEnabled',!0x1),this['bind']('_isStatusLabelVisible')['to'](this,'isReady',this,'numberOfChanges',(_0x44af63,_0x46e3a3)=>_0x44af63&&_0x46e3a3>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x4b6ef5,_0x5b42bc,_0x3da316,_0x32852e)=>{if(!_0x4b6ef5)return t('Loading...');if(!_0x3da316)return t('No\x20changes');const _0x4a05a0=t({'string':'%0\x20change','plural':'%0\x20changes','id':'NUMBER_OF_CHANGES'},_0x3da316);return _0x32852e?t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},[_0x5b42bc+0x1,_0x3da316]):_0x4a05a0;}),_0x2ff31f['set']({'label':t('Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0x16c996}),_0x4c6e88['set']({'label':t('Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x123c0d}),_0x2ff31f['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x4c6e88['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x2ff31f['on']('execute',()=>this['fire']('execute','backward')),_0x4c6e88['on']('execute',()=>this['fire']('execute','forward')),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-revision-history-ui','ck-revision-history-ui__changes-navigation']},'children':[{'tag':'span','attributes':{'class':['ck-revision-history-ui__changes-navigation__wrapper']},'children':[{'tag':'span','attributes':{'class':['ck-revision-history-ui__changes-navigation__label',_0x3de6d5['if']('_isStatusLabelVisible','ck-hidden',_0x47ce65=>!_0x47ce65)]},'children':[{'text':_0x3de6d5['to']('isNavigationMode',_0x1adce4=>_0x1adce4?t({'string':'Edit','id':'EDIT_X_OF_Y_REVISIONS'})+':\x20':t('Total')+':\x20')}]},{'text':_0x3de6d5['to']('_statusText')}]},new _0x5a7d92(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x2ff31f,_0x4c6e88]}]});}}
23
+ import{View as _0x22e984,ButtonView as st,ToolbarSeparatorView as _0x15dc71}from'ckeditor5/src/ui';import _0x2a8be9 from'../../../theme/icons/arrow-up.svg';import _0x568776 from'../../../theme/icons/arrow-down.svg';import'../../../theme/changesnavigation.css';export default class _i extends _0x22e984{constructor(_0x25a159){super(_0x25a159);const t=_0x25a159['t'],_0x4caad8=this['bindTemplate'],_0xd05600=new st(_0x25a159),_0x4dfc08=new st(_0x25a159);this['set']('isNavigationMode',!0x1),this['set']('isReady',!0x1),this['set']('currentChangeNumber',0x0),this['set']('numberOfChanges',0x0),this['set']('isForwardNavigationEnabled',!0x1),this['set']('isBackwardNavigationEnabled',!0x1),this['bind']('_isStatusLabelVisible')['to'](this,'isReady',this,'numberOfChanges',(_0x1c8a66,_0x2349d0)=>_0x1c8a66&&_0x2349d0>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x2b3600,_0x12c8ec,_0x332a81,_0x420466)=>{if(!_0x2b3600)return t('Loading...');if(!_0x332a81)return t('No\x20changes');const _0x2bdad8=t({'string':'%0\x20change','plural':'%0\x20changes','id':'NUMBER_OF_CHANGES'},_0x332a81);return _0x420466?t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},[_0x12c8ec+0x1,_0x332a81]):_0x2bdad8;}),_0xd05600['set']({'label':t('Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0x2a8be9}),_0x4dfc08['set']({'label':t('Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x568776}),_0xd05600['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x4dfc08['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0xd05600['on']('execute',()=>this['fire']('execute','backward')),_0x4dfc08['on']('execute',()=>this['fire']('execute','forward')),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-revision-history-ui','ck-revision-history-ui__changes-navigation']},'children':[{'tag':'span','attributes':{'class':['ck-revision-history-ui__changes-navigation__wrapper']},'children':[{'tag':'span','attributes':{'class':['ck-revision-history-ui__changes-navigation__label',_0x4caad8['if']('_isStatusLabelVisible','ck-hidden',_0x29629b=>!_0x29629b)]},'children':[{'text':_0x4caad8['to']('isNavigationMode',_0x2bb03a=>_0x2bb03a?t({'string':'Edit','id':'EDIT_X_OF_Y_REVISIONS'})+':\x20':t('Total')+':\x20')}]},{'text':_0x4caad8['to']('_statusText')}]},new _0x15dc71(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0xd05600,_0x4dfc08]}]});}}
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2021, CKSource - Frederico Knabben. All rights reserved.
2
+ * Copyright (c) 2016 - 2022, 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 _0x3b2e=['pluginName','roots','removeClass','document','ck-editor__editable__loading-overlay','hide','view','editing','show','addClass','change'];(function(_0x351bfd,_0x3b2e15){const _0x446882=function(_0xb07f9){while(--_0xb07f9){_0x351bfd['push'](_0x351bfd['shift']());}};_0x446882(++_0x3b2e15);}(_0x3b2e,0x71));const _0x4468=function(_0x351bfd,_0x3b2e15){_0x351bfd=_0x351bfd-0x0;let _0x446882=_0x3b2e[_0x351bfd];return _0x446882;};import{Plugin as _0x4a9449}from'ckeditor5/src/core';import'../../../theme/revisionviewerloadingoverlay.css';export default class oe extends _0x4a9449{static get[_0x4468('0x8')](){return'RevisionViewerLoadingOverlay';}[_0x4468('0x5')](){const _0x417ec1=this['editor'][_0x4468('0x4')][_0x4468('0x3')];_0x417ec1[_0x4468('0x7')](_0x407fd6=>{for(const _0x40f421 of _0x417ec1[_0x4468('0x0')]['roots'])_0x407fd6[_0x4468('0x6')](_0x4468('0x1'),_0x40f421);});}[_0x4468('0x2')](){const _0x58349a=this['editor'][_0x4468('0x4')][_0x4468('0x3')];_0x58349a[_0x4468('0x7')](_0x48278e=>{for(const _0x34d527 of _0x58349a[_0x4468('0x0')][_0x4468('0x9')])_0x48278e[_0x4468('0xa')](_0x4468('0x1'),_0x34d527);});}}
23
+ const _0x1175=['editor','view','pluginName','roots','removeClass','show','document','ck-editor__editable__loading-overlay','hide','editing','change'];(function(_0x1ae19f,_0x1175e5){const _0x26773e=function(_0x4d388c){while(--_0x4d388c){_0x1ae19f['push'](_0x1ae19f['shift']());}};_0x26773e(++_0x1175e5);}(_0x1175,0xd5));const _0x2677=function(_0x1ae19f,_0x1175e5){_0x1ae19f=_0x1ae19f-0x0;let _0x26773e=_0x1175[_0x1ae19f];return _0x26773e;};import{Plugin as _0x565b47}from'ckeditor5/src/core';import'../../../theme/revisionviewerloadingoverlay.css';export default class oe extends _0x565b47{static get[_0x2677('0x9')](){return'RevisionViewerLoadingOverlay';}[_0x2677('0x1')](){const _0x4b55ff=this[_0x2677('0x7')][_0x2677('0x5')][_0x2677('0x8')];_0x4b55ff['change'](_0x1d95d5=>{for(const _0x4b2dbc of _0x4b55ff['document'][_0x2677('0xa')])_0x1d95d5['addClass']('ck-editor__editable__loading-overlay',_0x4b2dbc);});}[_0x2677('0x4')](){const _0x579272=this[_0x2677('0x7')]['editing'][_0x2677('0x8')];_0x579272[_0x2677('0x6')](_0x55bd43=>{for(const _0x58647 of _0x579272[_0x2677('0x2')][_0x2677('0xa')])_0x55bd43[_0x2677('0x0')](_0x2677('0x3'),_0x58647);});}}
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2021, CKSource - Frederico Knabben. All rights reserved.
2
+ * Copyright (c) 2016 - 2022, 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
- import{Plugin as _0x2b9590}from'ckeditor5/src/core';import{ButtonView as it}from'ckeditor5/src/ui';import _0x5482dd from'./changesnavigationview';import _0x4684ee from'./../../revisionviewer';import _0x10982b from'./revisionviewerloadingoverlay';import te from'@ckeditor/ckeditor5-undo/theme/icons/undo.svg';import'../../../theme/revisionviewer.css';export default class y extends _0x2b9590{static get['pluginName'](){return'RevisionViewerUI';}static get['requires'](){return[_0x4684ee,_0x10982b];}['init'](){const _0x15aa26=this['editor'],_0x5941f8=_0x15aa26['plugins']['get'](_0x4684ee),_0x444bee=_0x15aa26['plugins']['get'](_0x10982b),t=_0x15aa26['t'];_0x15aa26['ui']['componentFactory']['add']('exitToEditing',_0x4bb3ad=>{const _0x15a332=new it(_0x4bb3ad);return _0x15a332['set']({'label':t('Back\x20to\x20editing'),'icon':te,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x15a332,'execute',()=>{_0x15aa26['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x15a332;}),_0x15aa26['ui']['componentFactory']['add']('restoreRevision',_0xf95a55=>{const _0x42aa9e=new it(_0xf95a55);return _0x42aa9e['set']({'label':t('Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x42aa9e['bind']('isEnabled')['to'](_0x15aa26['commands']['get']('restoreRevision')),this['listenTo'](_0x42aa9e,'execute',()=>_0x15aa26['execute']('restoreRevision')),_0x42aa9e;}),_0x15aa26['ui']['componentFactory']['add']('changesNavigation',_0x2df75f=>{const _0x460fe1=new _0x5482dd(_0x2df75f),_0x3b2cd4=_0x15aa26['commands']['get']('showPreviousChange'),_0x111913=_0x15aa26['commands']['get']('showNextChange');return _0x460fe1['bind']('isBackwardNavigationEnabled')['to'](_0x3b2cd4,'isEnabled'),_0x460fe1['bind']('isForwardNavigationEnabled')['to'](_0x111913,'isEnabled'),_0x460fe1['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x5941f8),this['listenTo'](_0x460fe1,'execute',(_0x5d2265,_0x55880f)=>{_0x15aa26['execute']('forward'===_0x55880f?'showNextChange':'showPreviousChange');}),_0x460fe1;}),_0x444bee['show'](),_0x5941f8['on']('change:isReady',(_0x2d0efe,_0x5dfa16,_0x199e11)=>{_0x199e11?_0x444bee['hide']():_0x444bee['show']();});}}
23
+ import{Plugin as _0x3eae4f}from'ckeditor5/src/core';import{ButtonView as st}from'ckeditor5/src/ui';import _0x3590d2 from'./changesnavigationview';import _0x5f3569 from'./../../revisionviewer';import _0x43212c from'./revisionviewerloadingoverlay';import te from'@ckeditor/ckeditor5-undo/theme/icons/undo.svg';import'../../../theme/revisionviewer.css';export default class d extends _0x3eae4f{static get['pluginName'](){return'RevisionViewerUI';}static get['requires'](){return[_0x5f3569,_0x43212c];}['init'](){const _0x1852bb=this['editor'],_0x5bc84f=_0x1852bb['plugins']['get'](_0x5f3569),_0x229182=_0x1852bb['plugins']['get'](_0x43212c),t=_0x1852bb['t'];_0x1852bb['ui']['componentFactory']['add']('exitToEditing',_0x4aae97=>{const _0x13aa36=new st(_0x4aae97);return _0x13aa36['set']({'label':t('Back\x20to\x20editing'),'icon':te,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x13aa36,'execute',()=>{_0x1852bb['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x13aa36;}),_0x1852bb['ui']['componentFactory']['add']('restoreRevision',_0x56c50c=>{const _0x29339f=new st(_0x56c50c);return _0x29339f['set']({'label':t('Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x29339f['bind']('isEnabled')['to'](_0x1852bb['commands']['get']('restoreRevision')),this['listenTo'](_0x29339f,'execute',()=>_0x1852bb['execute']('restoreRevision')),_0x29339f;}),_0x1852bb['ui']['componentFactory']['add']('changesNavigation',_0x312d50=>{const _0x2cc884=new _0x3590d2(_0x312d50),_0x15e41f=_0x1852bb['commands']['get']('showPreviousChange'),_0x3bb691=_0x1852bb['commands']['get']('showNextChange');return _0x2cc884['bind']('isBackwardNavigationEnabled')['to'](_0x15e41f,'isEnabled'),_0x2cc884['bind']('isForwardNavigationEnabled')['to'](_0x3bb691,'isEnabled'),_0x2cc884['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x5bc84f),this['listenTo'](_0x2cc884,'execute',(_0x4d1f9c,_0x3f053a)=>{_0x1852bb['execute']('forward'===_0x3f053a?'showNextChange':'showPreviousChange');}),_0x2cc884;}),_0x229182['show'](),_0x5bc84f['on']('change:isReady',(_0x540dde,_0x4c5533,_0x509e5c)=>{_0x509e5c?_0x229182['hide']():_0x229182['show']();});}}
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.
2
+ * Copyright (c) 2003-2020, 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
 
@@ -1,9 +1,3 @@
1
- :root {
2
- --ck-color-suggestion-box-deletion-border: hsl(345, 62%, 60%);
3
- --ck-color-suggestion-box-insertion-border: hsl(128, 62%, 60%);
4
- --ck-inline-annotation-container-width: auto;
5
- }
6
-
7
1
  .ck .ck-revision-change {
8
2
  padding: var(--ck-spacing-small) var(--ck-spacing-large);
9
3
  border-top-left-radius: var(--ck-border-radius);