@ckeditor/ckeditor5-revision-history 37.0.0-rc.0 → 37.0.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.
- package/build/revision-history.js +1 -1
- package/package.json +6 -6
- package/src/changeitem.js +1 -1
- package/src/editor/revisionviewereditor.js +1 -1
- package/src/editor/revisionviewereditorui.js +1 -1
- package/src/editor/revisionviewereditoruiview.js +1 -1
- package/src/revision.js +1 -1
- package/src/revisiondiff.js +1 -1
- package/src/revisionhistory.js +1 -1
- package/src/revisionsrepository.js +1 -1
- package/src/revisiontracker.js +1 -1
- package/src/revisionviewer.js +1 -1
- package/src/ui/revision/createrevisionactionsdropdown.js +1 -1
- package/src/ui/revision/revisionauthorview.js +1 -1
- package/src/ui/revision/revisionnameview.js +1 -1
- package/src/ui/revision/revisionview.js +1 -1
- package/src/ui/revision/subrevisioncollapserview.js +1 -1
- package/src/ui/revision/subrevisionview.js +1 -1
- package/src/ui/revision/utils.js +1 -1
- package/src/ui/revisionhistory/revisionhistorysaverevisionformview.js +1 -1
- package/src/ui/revisionhistory/revisionhistoryui.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebar.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebarheaderview.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebartimeperiodview.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebarview.js +1 -1
- package/src/ui/revisionssidebar/utils.js +1 -1
- package/src/ui/revisionviewer/changedetailsview.js +1 -1
- package/src/ui/revisionviewer/changesnavigationview.js +1 -1
- package/src/ui/revisionviewer/revisionviewerloadingoverlay.js +1 -1
- package/src/ui/revisionviewer/revisionviewerui.js +1 -1
- package/src/utils/common-translations.js +1 -1
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xe680=['saveButtonView','panelView','isEnabled','children','bind','pluginName','addMany','add','RevisionTracker','remove','Open\x20revision\x20history','render','execute','editing','revisionHistory','isOpen','requires','get','items','submit','length','saveRevision','revisionName','reset','set','isReadOnly','plugins','buttonView','isReady','view','change:isOpen','config','init','focus'];(function(_0xd0bac,_0xe6809d){const _0x2ad366=function(_0x3b1b23){while(--_0x3b1b23){_0xd0bac['push'](_0xd0bac['shift']());}};_0x2ad366(++_0xe6809d);}(_0xe680,0x67));const _0x2ad3=function(_0xd0bac,_0xe6809d){_0xd0bac=_0xd0bac-0x0;let _0x2ad366=_0xe680[_0xd0bac];return _0x2ad366;};import{Plugin as _0x1f09f9}from'ckeditor5/src/core';import{ListView as _0x416ef1,ListItemView as _0x320c71,ButtonView as _0x131229,createDropdown as _0x1d454b}from'ckeditor5/src/ui';import _0x502aec from'../../revisiontracker';import _0x299599 from'./revisionhistorysaverevisionformview';import _0x4eebc8 from'../../../theme/icons/revision-history.svg';import{getTranslation as _0x1531f2}from'../../utils/common-translations';export default class u extends _0x1f09f9{static get[_0x2ad3('0x4')](){return'RevisionHistoryUI';}static get[_0x2ad3('0xf')](){return[_0x502aec];}[_0x2ad3('0x1f')](){const _0x54aa17=this['editor'],_0x2b1443=_0x54aa17[_0x2ad3('0x19')][_0x2ad3('0x10')](_0x2ad3('0x7'));_0x54aa17['ui']['componentFactory'][_0x2ad3('0x6')]('revisionHistory',_0x8e5dca=>{const _0x4cdf47=_0x1d454b(_0x8e5dca),_0x4e8335=_0x4cdf47[_0x2ad3('0x0')][_0x2ad3('0x2')],_0x5a887f=new _0x416ef1(_0x8e5dca),_0x232d8e=new _0x320c71(_0x8e5dca),_0x1016c5=new _0x131229(_0x8e5dca),_0x1897fe=new _0x320c71(_0x8e5dca),_0xaa0217=new _0x131229(_0x8e5dca),_0x786419=new _0x299599(_0x8e5dca);function _0x328db9(){_0x4e8335[_0x2ad3('0x13')]&&_0x4e8335[_0x2ad3('0x8')](0x0),_0x4e8335[_0x2ad3('0x6')](_0x5a887f);}function _0x2c8629(){_0x4cdf47[_0x2ad3('0xe')]=!0x1,_0x54aa17[_0x2ad3('0xc')][_0x2ad3('0x1c')][_0x2ad3('0x20')]();}return _0x4cdf47[_0x2ad3('0x3')](_0x2ad3('0x1'))['to'](_0x2b1443,_0x2ad3('0x1b'),_0x2b1443,_0x2ad3('0x1'),_0x54aa17,_0x2ad3('0x18'),(_0x152bee,_0x2affd1,_0x444283)=>_0x152bee&&_0x2affd1&&!_0x444283),_0x4cdf47[_0x2ad3('0x1a')][_0x2ad3('0x17')]({'icon':_0x4eebc8,'label':_0x1531f2(_0x8e5dca,'Revision\x20history'),'tooltip':!0x0}),_0x1016c5[_0x2ad3('0x17')]({'label':_0x1531f2(_0x8e5dca,'Save\x20current\x20revision'),'withText':!0x0}),_0x1016c5[_0x2ad3('0x3')](_0x2ad3('0x1'))['to'](_0x2b1443,_0x2ad3('0x1b'),_0x2b1443,_0x2ad3('0x1'),_0x54aa17,_0x2ad3('0x18'),(_0x3e857e,_0x4a7add,_0x1da4c1)=>_0x3e857e&&_0x4a7add&&!_0x1da4c1),_0x1016c5['on'](_0x2ad3('0xb'),()=>function(){_0x4e8335[_0x2ad3('0x13')]&&_0x4e8335['remove'](0x0),(_0x786419[_0x2ad3('0x16')](),_0x4e8335[_0x2ad3('0x6')](_0x786419),_0x786419[_0x2ad3('0x20')]());}()),_0xaa0217[_0x2ad3('0x17')]({'label':_0x1531f2(_0x8e5dca,_0x2ad3('0x9')),'withText':!0x0}),_0xaa0217['bind'](_0x2ad3('0x1'))['to'](_0x2b1443,_0x2ad3('0x1b'),_0x54aa17,'isReadOnly',(_0x44bfcc,_0x2399f4)=>_0x44bfcc&&!_0x2399f4),_0xaa0217['on']('execute',()=>{_0x54aa17[_0x2ad3('0x1e')][_0x2ad3('0x10')](_0x2ad3('0xd'))['showRevisionViewerCallback'](),_0x2c8629();}),_0x232d8e[_0x2ad3('0x2')][_0x2ad3('0x6')](_0x1016c5),_0x1897fe[_0x2ad3('0x2')][_0x2ad3('0x6')](_0xaa0217),_0x5a887f[_0x2ad3('0x11')][_0x2ad3('0x5')]([_0x232d8e,_0x1897fe]),_0x4cdf47['on'](_0x2ad3('0x1d'),()=>_0x328db9()),_0x786419[_0x2ad3('0x21')][_0x2ad3('0x3')](_0x2ad3('0x1'))['to'](_0x2b1443,_0x2ad3('0x1b'),_0x2b1443,'isEnabled',_0x54aa17,_0x2ad3('0x18'),(_0x7bc38e,_0x28f01f,_0x48e914)=>_0x7bc38e&&_0x28f01f&&!_0x48e914),_0x786419['on'](_0x2ad3('0x12'),()=>(_0x54aa17['plugins']['get'](_0x502aec)[_0x2ad3('0x14')]({'name':_0x786419[_0x2ad3('0x15')]}),void _0x2c8629())),_0x786419['on']('cancel',()=>_0x328db9()),_0x786419[_0x2ad3('0xa')](),_0x328db9(),_0x4cdf47;});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4931=['appendChild','diff','isEnabled','getIndex','length','add','plugins','_revisions','setName','revisionViews','listenTo','_revisionsRepository','nameRevision','revisionSelected','isReady','string','locale','ready','change:diff','revisionHistory.revisionActions','fieldView','isVisible','repository','isSelected','restoreRevisionCallback','focus','editor','config','getRevisionsInDiff','availableRevisionActions','compare','_handleEditorDataReady','timePeriodViews','_revisionViewer','getLaterVisibleRevision','getEarlierVisibleRevision','_createRevisionActions','_handleDiffChange','selectRevision','Compare\x20against\x20selected','remove','_handleRevisionSetName','element','RevisionsSidebar','action','get','requires','defaultRevisionActions','highlightRevisions','restoreRevision','destroy','getRevision','bind','revisionHistory','_sidebarView','pluginName','newRevisionId','init','revisionSetName','_handleRevisionSelected','select'];(function(_0x294051,_0x4931a3){const _0x37312e=function(_0x467f33){while(--_0x467f33){_0x294051['push'](_0x294051['shift']());}};_0x37312e(++_0x4931a3);}(_0x4931,0x111));const _0x3731=function(_0x294051,_0x4931a3){_0x294051=_0x294051-0x0;let _0x37312e=_0x4931[_0x294051];return _0x37312e;};import{Plugin as _0x2fb44e}from'ckeditor5/src/core';import _0x1bb5c5 from'./revisionssidebarview';import _0x36dc72 from'../../revisionviewer';export default class R extends _0x2fb44e{static get[_0x3731('0x1a')](){return _0x3731('0xe');}static get[_0x3731('0x11')](){return[_0x36dc72];}constructor(_0x476d75){super(_0x476d75),this[_0x3731('0x4')]=_0x476d75[_0x3731('0x26')]['get'](_0x36dc72),this[_0x3731('0x2b')]=this[_0x3731('0x4')]['repository'],this[_0x3731('0x19')]=null;}[_0x3731('0x1c')](){const _0x19088b=this['_revisionsRepository'][_0x3731('0x27')],_0x13a52e=this[_0x3731('0x7')](),_0x2a0b65=this[_0x3731('0x3a')][_0x3731('0x3b')]['get']('revisionHistory.viewerSidebarContainer');this[_0x3731('0x19')]=new _0x1bb5c5(this[_0x3731('0x3a')][_0x3731('0x30')],_0x19088b,_0x13a52e),this['_sidebarView']['on'](_0x3731('0x2d'),this[_0x3731('0x1e')]['bind'](this)),this[_0x3731('0x19')]['on'](_0x3731('0x1d'),this[_0x3731('0xc')]['bind'](this)),this['_sidebarView']['bind'](_0x3731('0x22'))['to'](this['_revisionViewer']),this[_0x3731('0x19')][_0x3731('0x3')]['on'](_0x3731('0x25'),(_0x150f5f,_0x52e0ac)=>{_0x52e0ac[_0x3731('0x29')]['on']('add',(_0x37454b,_0x311ad8)=>{_0x311ad8[_0x3731('0x17')]('isEnabled',_0x3731('0x2e'))['to'](this[_0x3731('0x4')]);});}),this[_0x3731('0x19')]['render'](),this[_0x3731('0x2a')](this['editor']['data'],_0x3731('0x31'),this[_0x3731('0x2')][_0x3731('0x17')](this)),this['listenTo'](this[_0x3731('0x4')],_0x3731('0x32'),this[_0x3731('0x8')]['bind'](this)),_0x2a0b65[_0x3731('0x20')](this[_0x3731('0x19')][_0x3731('0xd')]);}[_0x3731('0x15')](){this['_sidebarView']['element'][_0x3731('0xb')](),this[_0x3731('0x19')]['destroy']();}[_0x3731('0x2')](){const _0x4a434a=this[_0x3731('0x2b')][_0x3731('0x16')](0x0);if(_0x4a434a){const _0x39f31b=this[_0x3731('0x2b')][_0x3731('0x6')](_0x4a434a['id']);this[_0x3731('0x4')][_0x3731('0x1')](_0x4a434a,_0x39f31b);}}[_0x3731('0x1e')](_0x3259ba,_0x367d53){const _0x16fd08=this[_0x3731('0x2b')][_0x3731('0x16')](_0x367d53['id']),_0x473079=this['_revisionsRepository'][_0x3731('0x6')](_0x16fd08['id']);this[_0x3731('0x4')][_0x3731('0x1')](_0x16fd08,_0x473079);}[_0x3731('0xc')](_0x3462f3,_0x4de41b){this[_0x3731('0x2b')][_0x3731('0x16')](_0x4de41b['id'])[_0x3731('0x28')](_0x4de41b['name']);}[_0x3731('0x8')](_0x323747,_0x5338b1,_0x1f2362){const _0x1ff697=this[_0x3731('0x2b')][_0x3731('0x3c')](_0x1f2362);_0x1ff697[_0x3731('0x24')]>0x2?(this[_0x3731('0x19')][_0x3731('0x13')](_0x1ff697),this['_sidebarView']['selectRevision'](null)):(this[_0x3731('0x19')][_0x3731('0x13')]([]),this[_0x3731('0x19')][_0x3731('0x9')](_0x1ff697[0x0]));}[_0x3731('0x7')](){const _0x463c96=this[_0x3731('0x3a')],_0x3650f6=R[_0x3731('0x0')],_0x5f2169=_0x463c96[_0x3731('0x3b')][_0x3731('0x10')](_0x3731('0x33'))||R['defaultRevisionActions'];if(_0x5f2169[_0x3731('0x24')])return _0x5f2169['map'](_0x331789=>{const _0x5275ab=_0x3731('0x2f')==typeof _0x331789?Object['assign']({},_0x3650f6[_0x331789]):_0x331789;return _0x5275ab[_0x3731('0xf')]=_0x5275ab[_0x3731('0xf')][_0x3731('0x17')](this,_0x463c96),_0x5275ab[_0x3731('0x35')]&&(_0x5275ab['isVisible']=_0x5275ab[_0x3731('0x35')][_0x3731('0x17')](this,_0x463c96)),_0x5275ab;});}}R[_0x3731('0x0')]={'compareAgainstSelected':{'name':_0x3731('0xa'),'action':({plugins:_0x57f986},_0x47b72b)=>{const _0x39c60f=_0x57f986[_0x3731('0x10')](_0x36dc72),_0x2224c8=_0x39c60f['repository'];let _0x487e6d=_0x39c60f['diff'][_0x3731('0x1b')],_0x38b86c=_0x47b72b['id'];_0x2224c8[_0x3731('0x23')](_0x487e6d)>_0x2224c8[_0x3731('0x23')](_0x38b86c)&&([_0x487e6d,_0x38b86c]=[_0x38b86c,_0x487e6d]),_0x39c60f[_0x3731('0x1')](_0x487e6d,_0x38b86c);},'isVisible':({plugins:_0x4f7903},_0x3f2b6a)=>{const _0x10b2fa=_0x4f7903[_0x3731('0x10')](_0x36dc72);return!(_0x10b2fa[_0x3731('0x36')][_0x3731('0x3c')](_0x10b2fa[_0x3731('0x21')])['length']>0x2)&&!_0x3f2b6a[_0x3731('0x37')];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x153d6f,{id:_0x1d7f4d})=>{_0x153d6f[_0x3731('0x3b')]['get'](_0x3731('0x18'))[_0x3731('0x38')](_0x1d7f4d);},'isVisible':({plugins:_0x32a04d},_0x2f2dab)=>!!_0x32a04d['get'](_0x36dc72)['repository'][_0x3731('0x5')](_0x2f2dab['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x1faffa},{id:_0x207cc1,revisionNameView:_0x2e448e})=>{const _0x2ffdf7=_0x1faffa[_0x3731('0x10')](_0x36dc72),_0x15a3b4=_0x2ffdf7['repository'][_0x3731('0x6')](_0x207cc1);_0x2ffdf7['compare'](_0x207cc1,_0x15a3b4),_0x2e448e[_0x3731('0x39')](),_0x2e448e[_0x3731('0x34')][_0x3731('0x1f')]();}}},R[_0x3731('0x12')]=['compareAgainstSelected',_0x3731('0x14'),_0x3731('0x2c')];
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1ea9=['ck-revision-history-sidebar__header__label','span','ck-revision-history-sidebar__header','ck-reset_all','Revision\x20history','setTemplate','content'];(function(_0x4dc427,_0x1ea969){const _0x302c6d=function(_0x54510f){while(--_0x54510f){_0x4dc427['push'](_0x4dc427['shift']());}};_0x302c6d(++_0x1ea969);}(_0x1ea9,0x1aa));const _0x302c=function(_0x4dc427,_0x1ea969){_0x4dc427=_0x4dc427-0x0;let _0x302c6d=_0x1ea9[_0x4dc427];return _0x302c6d;};import{View as _0x1977bc,IconView as _0x47fcbe}from'ckeditor5/src/ui';import{getTranslation as _0x84da1f}from'../../utils/common-translations';import _0x341007 from'../../../theme/icons/revision-history.svg';import'../../../theme/revisionssidebar/revisionssidebarheader.css';export default class ts extends _0x1977bc{constructor(_0x27eee2){super(_0x27eee2);const _0x403f8a=new _0x47fcbe();_0x403f8a[_0x302c('0x0')]=_0x341007,this[_0x302c('0x6')]({'tag':'div','attributes':{'class':['ck',_0x302c('0x4'),_0x302c('0x3')]},'children':[_0x403f8a,{'tag':_0x302c('0x2'),'attributes':{'class':['ck',_0x302c('0x1')]},'children':[_0x84da1f(_0x27eee2,_0x302c('0x5'))]}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5232=['uiLanguage','createCollection','revisionViews','removeRevision','delegate','localizedPeriodName','select','setName','_revisionActions','addRevision','span','find','locale','div','ck-revision-history-sidebar__time-period__revisions','ck-revision-history-sidebar__time-period__label','setTemplate'];(function(_0x94ac25,_0x5232fc){const _0x1696be=function(_0x14a144){while(--_0x14a144){_0x94ac25['push'](_0x94ac25['shift']());}};_0x1696be(++_0x5232fc);}(_0x5232,0x8b));const _0x1696=function(_0x94ac25,_0x5232fc){_0x94ac25=_0x94ac25-0x0;let _0x1696be=_0x5232[_0x94ac25];return _0x1696be;};import{View as _0x1a3d10}from'ckeditor5/src/ui';import _0x36b773 from'../revision/revisionview';import{getDateTimePeriodInfo as _0x170031}from'./utils';import'../../../theme/revisionssidebar/revisionssidebartimeperiod.css';export default class _i extends _0x1a3d10{constructor(_0x28b99c,_0x544e19,_0x5d8083){super(_0x28b99c);const _0x4ea3ca=_0x170031(_0x544e19,this[_0x1696('0x9')][_0x1696('0xe')])[_0x1696('0x2')];this['startDate']=_0x544e19,this[_0x1696('0x10')]=this[_0x1696('0xf')](),this[_0x1696('0x5')]=_0x5d8083,this[_0x1696('0x10')][_0x1696('0x1')](_0x1696('0x3'))['to'](this),this[_0x1696('0x10')]['delegate'](_0x1696('0x4'))['to'](this),this[_0x1696('0xd')]({'tag':_0x1696('0xa'),'attributes':{'class':['ck','ck-revision-history-sidebar__time-period']},'children':[{'tag':_0x1696('0x7'),'attributes':{'class':['ck',_0x1696('0xc')]},'children':[{'text':_0x4ea3ca}]},{'tag':_0x1696('0xa'),'attributes':{'class':['ck',_0x1696('0xb')]},'children':this[_0x1696('0x10')]}]});}[_0x1696('0x6')](_0x488113){const _0xf3a196=new _0x36b773(this[_0x1696('0x9')],_0x488113,this['_revisionActions']);this['revisionViews']['add'](_0xf3a196);}[_0x1696('0x0')](_0x274d42){const _0xace63b=this[_0x1696('0x10')][_0x1696('0x8')](_0x52a164=>_0x52a164['id']===_0x274d42['id']);this['revisionViews']['remove'](_0xace63b);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x176b=['removeRevision','fire','find','timePeriodViews','add','render','set','ck-rounded-corners','createdAt','div','uiLanguage','getTime','startDate','delegate','_removeRevision','isEnabled','ck-disabled','ck-revision-history-sidebar','_getTimePeriodViewByStartDate','select','some','setTemplate','revisionSelected','highlight','bindTemplate','get','createCollection','_revisionActions','locale','_revisions','remove','map','_addRevision','revisionViews'];(function(_0x18c44c,_0x176bf2){const _0x77c2c9=function(_0xb20315){while(--_0xb20315){_0x18c44c['push'](_0x18c44c['shift']());}};_0x77c2c9(++_0x176bf2);}(_0x176b,0xcc));const _0x77c2=function(_0x18c44c,_0x176bf2){_0x18c44c=_0x18c44c-0x0;let _0x77c2c9=_0x176b[_0x18c44c];return _0x77c2c9;};import{View as _0x369c7d}from'ckeditor5/src/ui';import _0x5b5789 from'./revisionssidebartimeperiodview';import _0x16bb4a from'./revisionssidebarheaderview';import{getDateTimePeriodInfo as _0x19fb08}from'./utils';import'../../../theme/revisionssidebar/revisionssidebar.css';export default class vi extends _0x369c7d{constructor(_0x3bcd5b,_0x1c0ff6,_0x55cbc5){super(_0x3bcd5b);const _0x58d576=this[_0x77c2('0x18')];this[_0x77c2('0x3')]=this[_0x77c2('0x1a')](),this[_0x77c2('0x3')][_0x77c2('0xd')]('select')['to'](this),this[_0x77c2('0x3')]['delegate']('setName')['to'](this),this[_0x77c2('0x1d')]=_0x1c0ff6,this['_revisionActions']=_0x55cbc5,this['on'](_0x77c2('0x13'),(_0x393a59,_0x14010f)=>{this[_0x77c2('0x1')](_0x77c2('0x16'),_0x14010f);}),this['on']('setName',(_0x32dcd3,_0x3005b4)=>{this[_0x77c2('0x1')]('revisionSetName',_0x3005b4);}),this[_0x77c2('0x6')](_0x77c2('0xf'),!0x1),this[_0x77c2('0x15')]({'tag':_0x77c2('0x9'),'attributes':{'class':['ck','ck-reset',_0x77c2('0x7'),_0x77c2('0x11')]},'children':[new _0x16bb4a(_0x3bcd5b),{'tag':_0x77c2('0x9'),'attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x58d576['if']('isEnabled',_0x77c2('0x10'),_0x4a8546=>!_0x4a8546)]},'children':this[_0x77c2('0x3')]}]});}[_0x77c2('0x5')](){super[_0x77c2('0x5')]();for(const _0x238ec2 of this[_0x77c2('0x1d')])this[_0x77c2('0x20')](_0x238ec2);this[_0x77c2('0x1d')]['on'](_0x77c2('0x4'),(_0x5dfebd,_0x53ab89)=>{this[_0x77c2('0x20')](_0x53ab89);}),this[_0x77c2('0x1d')]['on'](_0x77c2('0x1e'),(_0x210a7e,_0x366e81)=>{this[_0x77c2('0xe')](_0x366e81);});}get['revisionViews'](){return this[_0x77c2('0x3')][_0x77c2('0x1f')](_0x5e868c=>_0x5e868c['revisionViews'][_0x77c2('0x1f')](_0x54d708=>_0x54d708))['flat']();}['selectRevision'](_0x29604a){for(const _0x159eda of this[_0x77c2('0x21')])_0x29604a&&_0x29604a['id']===_0x159eda['id']?_0x159eda['select']():_0x159eda['deselect']();}['highlightRevisions'](_0x231bfd){for(const _0x50ce3d of this[_0x77c2('0x21')])_0x231bfd[_0x77c2('0x14')](({id:_0x4b19b4})=>_0x4b19b4===_0x50ce3d['id'])?_0x50ce3d[_0x77c2('0x17')]():_0x50ce3d['unhighlight']();}[_0x77c2('0x20')](_0x17318e){const _0x1831ef=_0x19fb08(_0x17318e[_0x77c2('0x8')],this['locale'][_0x77c2('0xa')])[_0x77c2('0xc')];let _0xbe110c=this[_0x77c2('0x3')][_0x77c2('0x19')](0x0);_0xbe110c&&_0xbe110c[_0x77c2('0xc')][_0x77c2('0xb')]()===_0x1831ef[_0x77c2('0xb')]()||(_0xbe110c=new _0x5b5789(this[_0x77c2('0x1c')],_0x1831ef,this[_0x77c2('0x1b')]),this[_0x77c2('0x3')][_0x77c2('0x4')](_0xbe110c)),_0xbe110c['addRevision'](_0x17318e);}[_0x77c2('0xe')](_0x42120f){const _0x8a4216=_0x19fb08(_0x42120f[_0x77c2('0x8')],this[_0x77c2('0x1c')][_0x77c2('0xa')])[_0x77c2('0xc')];this[_0x77c2('0x12')](_0x8a4216)[_0x77c2('0x0')](_0x42120f);}[_0x77c2('0x12')](_0x5eaa5b){return this[_0x77c2('0x3')][_0x77c2('0x2')](_0x1d0d8a=>_0x1d0d8a[_0x77c2('0xc')][_0x77c2('0xb')]()===_0x5eaa5b[_0x77c2('0xb')]());}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x760f=['monthLong','day','minus','week','setLocale','local','year','toJSDate','toRelativeCalendar','hasSame','weekdayLong','startOf','month'];(function(_0x3d061f,_0x760f22){const _0x1b02b3=function(_0x28d53c){while(--_0x28d53c){_0x3d061f['push'](_0x3d061f['shift']());}};_0x1b02b3(++_0x760f22);}(_0x760f,0x164));const _0x1b02=function(_0x3d061f,_0x760f22){_0x3d061f=_0x3d061f-0x0;let _0x1b02b3=_0x760f[_0x3d061f];return _0x1b02b3;};import{DateTime as _0x3447ca}from'luxon';export function getDateTimePeriodInfo(_0x3e5779,_0x357a9d){const _0x367a11=_0x3447ca['fromJSDate'](_0x3e5779)[_0x1b02('0xc')](_0x357a9d),_0x3efe3e=_0x3447ca[_0x1b02('0x0')](),_0x54c1e6=_0x3efe3e[_0x1b02('0xa')]({'days':0x1})[_0x1b02('0x6')]('day');let _0xa2deb6,_0x3f5773;return _0x367a11[_0x1b02('0x4')](_0x3efe3e,_0x1b02('0x9'))?(_0xa2deb6=_0x367a11['startOf'](_0x1b02('0x9'))[_0x1b02('0x2')](),_0x3f5773=_0x367a11[_0x1b02('0x3')]()):_0x367a11[_0x1b02('0x4')](_0x54c1e6,'day')?(_0xa2deb6=_0x54c1e6['toJSDate'](),_0x3f5773=_0x367a11[_0x1b02('0x3')]()):_0x367a11[_0x1b02('0x4')](_0x3efe3e,_0x1b02('0xb'))?(_0xa2deb6=_0x367a11[_0x1b02('0x6')](_0x1b02('0xb'))[_0x1b02('0x2')](),_0x3f5773=_0x367a11[_0x1b02('0x5')]||''):_0x367a11['hasSame'](_0x3efe3e,_0x1b02('0x1'))?(_0xa2deb6=_0x367a11[_0x1b02('0x6')](_0x1b02('0x7'))['toJSDate'](),_0x3f5773=_0x367a11[_0x1b02('0x8')]||''):(_0xa2deb6=_0x367a11[_0x1b02('0x6')](_0x1b02('0x1'))[_0x1b02('0x2')](),_0x3f5773=String(_0x367a11[_0x1b02('0x1')])),{'startDate':_0xa2deb6,'localizedPeriodName':_0x3f5773};}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3bd6=['focus','span','element','data','add','bindTemplate','type','Removed\x20by','ck-revision-change__','name','set','ck-revision-change__label','ck-revision-change','isSuggestion','changeId'];(function(_0x1c5209,_0x3bd6e0){const _0x2fe48e=function(_0x22688b){while(--_0x22688b){_0x1c5209['push'](_0x1c5209['shift']());}};_0x2fe48e(++_0x3bd6e0);}(_0x3bd6,0xdb));const _0x2fe4=function(_0x1c5209,_0x3bd6e0){_0x1c5209=_0x1c5209-0x0;let _0x2fe48e=_0x3bd6[_0x1c5209];return _0x2fe48e;};import{View as _0x240e8a}from'ckeditor5/src/ui';import{getTranslation as _0x385902}from'../../utils/common-translations';export default class G extends _0x240e8a{constructor(_0x4bad85,_0x1cac09){super(_0x4bad85),this['_model']=_0x1cac09,this[_0x2fe4('0x5')]=_0x1cac09['id'];const _0x5200fb=this[_0x2fe4('0xb')],_0x50fa43=_0x385902(_0x4bad85,_0x1cac09[_0x2fe4('0x9')][_0x2fe4('0x4')]?'Suggested\x20by':_0x2fe4('0xa')==_0x1cac09[_0x2fe4('0xc')]?'Added\x20by':_0x2fe4('0xd'));this[_0x2fe4('0x1')](_0x2fe4('0xc'),_0x1cac09[_0x2fe4('0xc')]),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation',_0x2fe4('0x3'),_0x5200fb['to']('type',_0x512f23=>_0x2fe4('0xe')+_0x512f23)],'tabindex':-0x1},'children':[{'tag':_0x2fe4('0x7'),'children':[{'tag':'span','attributes':{'class':[_0x2fe4('0x2')]},'children':[{'text':_0x50fa43}]},{'text':'\x20'+_0x1cac09['author'][_0x2fe4('0x0')]}]}]});}[_0x2fe4('0x6')](){this[_0x2fe4('0x8')][_0x2fe4('0x6')]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x208f=['currentChangeNumber','execute','Loading...','bindTemplate','ck-revision-history-ui','Show\x20next\x20change','numberOfChanges','div','_isStatusLabelVisible','ck-revision-history-ui__changes-navigation__navigation','ck-revision-history-ui__changes-navigation__label','isReady','NUMBER_OF_CHANGES','Show\x20previous\x20change','Total','isForwardNavigationEnabled','isBackwardNavigationEnabled','backward','_statusText','fire','bind','set','forward','span','isNavigationMode','setTemplate','ck-revision-history-ui__changes-navigation__wrapper'];(function(_0x428281,_0x208f2f){const _0x4a9b26=function(_0x1f3301){while(--_0x1f3301){_0x428281['push'](_0x428281['shift']());}};_0x4a9b26(++_0x208f2f);}(_0x208f,0x17b));const _0x4a9b=function(_0x428281,_0x208f2f){_0x428281=_0x428281-0x0;let _0x4a9b26=_0x208f[_0x428281];return _0x4a9b26;};import{View as _0x5befde,ButtonView as _0x1e5561,ToolbarSeparatorView as _0x15e7ed}from'ckeditor5/src/ui';import{getTranslation as _0x2fcdc5}from'../../utils/common-translations';import _0x4e29aa from'../../../theme/icons/arrow-up.svg';import _0x27b2da from'../../../theme/icons/arrow-down.svg';import'../../../theme/changesnavigation.css';export default class wi extends _0x5befde{constructor(_0x58be4a){super(_0x58be4a);const _0xa87b71=this[_0x4a9b('0x2')],_0x50469d=new _0x1e5561(_0x58be4a),_0x1198fc=new _0x1e5561(_0x58be4a);this['set'](_0x4a9b('0x17'),!0x1),this['set'](_0x4a9b('0xa'),!0x1),this[_0x4a9b('0x14')](_0x4a9b('0x1a'),0x0),this['set'](_0x4a9b('0x5'),0x0),this[_0x4a9b('0x14')](_0x4a9b('0xe'),!0x1),this['set'](_0x4a9b('0xf'),!0x1),this[_0x4a9b('0x13')](_0x4a9b('0x7'))['to'](this,_0x4a9b('0xa'),this,_0x4a9b('0x5'),(_0x236c77,_0x477cd2)=>_0x236c77&&_0x477cd2>0x0),this[_0x4a9b('0x13')]('_statusText')['to'](this,_0x4a9b('0xa'),this,_0x4a9b('0x1a'),this,_0x4a9b('0x5'),this,'isNavigationMode',(_0x3fa218,_0x30c3ea,_0x2d5ddd,_0x1b7a60)=>{if(!_0x3fa218)return _0x2fcdc5(_0x58be4a,_0x4a9b('0x1'));if(!_0x2d5ddd)return _0x2fcdc5(_0x58be4a,'No\x20changes');const _0x4bec35=_0x2fcdc5(_0x58be4a,_0x4a9b('0xb'),_0x2d5ddd);return _0x1b7a60?_0x2fcdc5(_0x58be4a,'X_OF_Y_CHANGES',[_0x30c3ea+0x1,_0x2d5ddd]):_0x4bec35;}),_0x50469d['set']({'label':_0x2fcdc5(_0x58be4a,_0x4a9b('0xc')),'tooltip':!0x0,'icon':_0x4e29aa}),_0x1198fc[_0x4a9b('0x14')]({'label':_0x2fcdc5(_0x58be4a,_0x4a9b('0x4')),'tooltip':!0x0,'icon':_0x27b2da}),_0x50469d[_0x4a9b('0x13')]('isEnabled')['to'](this,_0x4a9b('0xf')),_0x1198fc[_0x4a9b('0x13')]('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x50469d['on'](_0x4a9b('0x0'),()=>this[_0x4a9b('0x12')](_0x4a9b('0x0'),_0x4a9b('0x10'))),_0x1198fc['on'](_0x4a9b('0x0'),()=>this[_0x4a9b('0x12')](_0x4a9b('0x0'),_0x4a9b('0x15'))),this[_0x4a9b('0x18')]({'tag':_0x4a9b('0x6'),'attributes':{'class':['ck',_0x4a9b('0x3'),'ck-revision-history-ui__changes-navigation']},'children':[{'tag':_0x4a9b('0x16'),'attributes':{'class':[_0x4a9b('0x19')]},'children':[{'tag':_0x4a9b('0x16'),'attributes':{'class':[_0x4a9b('0x9'),_0xa87b71['if'](_0x4a9b('0x7'),'ck-hidden',_0x597ace=>!_0x597ace)]},'children':[{'text':_0xa87b71['to'](_0x4a9b('0x17'),_0x3de1e7=>_0x3de1e7?_0x2fcdc5(_0x58be4a,'EDIT_X_OF_Y_REVISIONS')+':\x20':_0x2fcdc5(_0x58be4a,_0x4a9b('0xd'))+':\x20')}]},{'text':_0xa87b71['to'](_0x4a9b('0x11'))}]},new _0x15e7ed(),{'tag':'div','attributes':{'class':[_0x4a9b('0x8')]},'children':[_0x50469d,_0x1198fc]}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2079=['editor','view','roots','document','pluginName','addClass','ck-editor__editable__loading-overlay','RevisionViewerLoadingOverlay','change'];(function(_0x3a6f40,_0x20791c){const _0x13c056=function(_0x32b456){while(--_0x32b456){_0x3a6f40['push'](_0x3a6f40['shift']());}};_0x13c056(++_0x20791c);}(_0x2079,0x159));const _0x13c0=function(_0x3a6f40,_0x20791c){_0x3a6f40=_0x3a6f40-0x0;let _0x13c056=_0x2079[_0x3a6f40];return _0x13c056;};import{Plugin as _0x21677a}from'ckeditor5/src/core';const oe=_0x13c0('0x3');import'../../../theme/revisionviewerloadingoverlay.css';export default class te extends _0x21677a{static get[_0x13c0('0x1')](){return _0x13c0('0x4');}['show'](){const _0x12f3c7=this[_0x13c0('0x6')]['editing'][_0x13c0('0x7')];_0x12f3c7[_0x13c0('0x5')](_0x1a6f06=>{for(const _0x5dc34b of _0x12f3c7[_0x13c0('0x0')][_0x13c0('0x8')])_0x1a6f06[_0x13c0('0x2')](oe,_0x5dc34b);});}['hide'](){const _0x2e3770=this[_0x13c0('0x6')]['editing'][_0x13c0('0x7')];_0x2e3770[_0x13c0('0x5')](_0x57e180=>{for(const _0x255d33 of _0x2e3770[_0x13c0('0x0')]['roots'])_0x57e180['removeClass'](oe,_0x255d33);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x325e=['isReady','changesNavigation','requires','showNextChange','show','pluginName','set','hide','editor','config','exitToEditing','change:isReady','componentFactory','listenTo','restoreRevision','add','forward','bind','commands','showPreviousChange','isForwardNavigationEnabled','Back\x20to\x20editing','isEnabled','RevisionViewerUI','numberOfChanges','ck-revision-history-ui__back-to-editing','isBackwardNavigationEnabled','init','plugins','currentChangeNumber','Restore\x20this\x20revision','execute','get'];(function(_0x3e3e57,_0x325e95){const _0x2f194a=function(_0x15bdea){while(--_0x15bdea){_0x3e3e57['push'](_0x3e3e57['shift']());}};_0x2f194a(++_0x325e95);}(_0x325e,0x169));const _0x2f19=function(_0x3e3e57,_0x325e95){_0x3e3e57=_0x3e3e57-0x0;let _0x2f194a=_0x325e[_0x3e3e57];return _0x2f194a;};import{Plugin as _0x1f3935}from'ckeditor5/src/core';import{ButtonView as _0x2be07c}from'ckeditor5/src/ui';import _0xe08e37 from'./changesnavigationview';import _0xe86a11 from'./../../revisionviewer';import _0x19af58 from'./revisionviewerloadingoverlay';import{getTranslation as _0x3b80b5}from'../../utils/common-translations';import _0xd5d423 from'@ckeditor/ckeditor5-undo/theme/icons/undo.svg';import'../../../theme/revisionviewer.css';export default class w extends _0x1f3935{static get[_0x2f19('0x7')](){return _0x2f19('0x19');}static get[_0x2f19('0x4')](){return[_0xe86a11,_0x19af58];}[_0x2f19('0x1d')](){const _0x501a67=this[_0x2f19('0xa')],_0x4a33a7=_0x501a67[_0x2f19('0x1e')][_0x2f19('0x1')](_0xe86a11),_0x1da4a5=_0x501a67['plugins']['get'](_0x19af58);_0x501a67['ui'][_0x2f19('0xe')][_0x2f19('0x11')](_0x2f19('0xc'),_0x3d4bf7=>{const _0x548719=new _0x2be07c(_0x3d4bf7);return _0x548719[_0x2f19('0x8')]({'label':_0x3b80b5(_0x3d4bf7,_0x2f19('0x17')),'icon':_0xd5d423,'withText':!0x0,'tooltip':!0x0,'class':_0x2f19('0x1b')}),this[_0x2f19('0xf')](_0x548719,'execute',()=>{_0x501a67[_0x2f19('0xb')]['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x548719;}),_0x501a67['ui']['componentFactory'][_0x2f19('0x11')]('restoreRevision',_0x28ea74=>{const _0x108f70=new _0x2be07c(_0x28ea74);return _0x108f70[_0x2f19('0x8')]({'label':_0x3b80b5(_0x28ea74,_0x2f19('0x20')),'withText':!0x0,'tooltip':!0x0}),_0x108f70['bind'](_0x2f19('0x18'))['to'](_0x501a67[_0x2f19('0x14')]['get'](_0x2f19('0x10'))),this[_0x2f19('0xf')](_0x108f70,_0x2f19('0x0'),()=>_0x501a67['execute'](_0x2f19('0x10'))),_0x108f70;}),_0x501a67['ui'][_0x2f19('0xe')][_0x2f19('0x11')](_0x2f19('0x3'),_0x5dccab=>{const _0x2835c1=new _0xe08e37(_0x5dccab),_0x190d99=_0x501a67[_0x2f19('0x14')][_0x2f19('0x1')](_0x2f19('0x15')),_0x31d3be=_0x501a67[_0x2f19('0x14')]['get'](_0x2f19('0x5'));return _0x2835c1[_0x2f19('0x13')](_0x2f19('0x1c'))['to'](_0x190d99,_0x2f19('0x18')),_0x2835c1[_0x2f19('0x13')](_0x2f19('0x16'))['to'](_0x31d3be,_0x2f19('0x18')),_0x2835c1['bind'](_0x2f19('0x2'),_0x2f19('0x1f'),_0x2f19('0x1a'),'isNavigationMode')['to'](_0x4a33a7),this[_0x2f19('0xf')](_0x2835c1,_0x2f19('0x0'),(_0x5bd7e3,_0x46dff8)=>{_0x501a67[_0x2f19('0x0')](_0x2f19('0x12')===_0x46dff8?_0x2f19('0x5'):_0x2f19('0x15'));}),_0x2835c1;}),_0x1da4a5['show'](),_0x4a33a7['on'](_0x2f19('0xd'),(_0x10afc9,_0x3322ff,_0x66adbc)=>{_0x66adbc?_0x1da4a5[_0x2f19('0x9')]():_0x1da4a5[_0x2f19('0x6')]();});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export function getTranslation(
|
|
23
|
+
export function getTranslation(_0x178336,_0x2f69d7,_0x2c5014){const t=_0x178336['t'];switch(_0x2f69d7){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'},_0x2c5014);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x2c5014);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 _0x2f69d7;}}
|