@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20231129.0 → 0.0.0-nightly-20231130.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.
- package/README.md +1 -1
- 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 _0x2b53=['Revision\x20history','change:isOpen','isEnabled','add','RevisionTracker','componentFactory','length','get','view','Open\x20revision\x20history','editor','history','revisionName','remove','bind','cancel','addMany','config','init','requires','saveRevision','isOpen','isReadOnly','reset','set','showRevisionViewerCallback','buttonView','pluginName','editing','execute','isReady','submit','Save\x20current\x20revision','plugins','children','focus'];(function(_0x47ce4c,_0x2b532d){const _0x5cdb58=function(_0x559b03){while(--_0x559b03){_0x47ce4c['push'](_0x47ce4c['shift']());}};_0x5cdb58(++_0x2b532d);}(_0x2b53,0x191));const _0x5cdb=function(_0x47ce4c,_0x2b532d){_0x47ce4c=_0x47ce4c-0x0;let _0x5cdb58=_0x2b53[_0x47ce4c];return _0x5cdb58;};import{Plugin as _0x282854,icons as _0x375cb6}from'ckeditor5/src/core';import{ListView as _0x147bac,ListItemView as _0x27025f,ButtonView as _0x3c4ac3,createDropdown as _0x49a8cc}from'ckeditor5/src/ui';import _0x4d3f07 from'../../revisiontracker';import _0x2c2a73 from'./revisionhistorysaverevisionformview';import{getTranslation as _0x5f2351}from'../../utils/common-translations';export default class u extends _0x282854{static get[_0x5cdb('0x16')](){return'RevisionHistoryUI';}static get[_0x5cdb('0xe')](){return[_0x4d3f07];}[_0x5cdb('0xd')](){const _0x545bb8=this[_0x5cdb('0x5')],_0x16ae1a=_0x545bb8[_0x5cdb('0x1c')][_0x5cdb('0x2')](_0x5cdb('0x23'));_0x545bb8['ui'][_0x5cdb('0x0')][_0x5cdb('0x22')]('revisionHistory',_0x422258=>{const _0x2a4467=_0x49a8cc(_0x422258),_0x4149c4=_0x2a4467['panelView']['children'],_0x3f460d=new _0x147bac(_0x422258),_0x1ba01d=new _0x27025f(_0x422258),_0x45cee6=new _0x3c4ac3(_0x422258),_0x391cfe=new _0x27025f(_0x422258),_0x1b8fb3=new _0x3c4ac3(_0x422258),_0x1f6cbf=new _0x2c2a73(_0x422258);function _0x22cb90(){_0x4149c4[_0x5cdb('0x1')]&&_0x4149c4['remove'](0x0),_0x4149c4[_0x5cdb('0x22')](_0x3f460d);}function _0x4cc053(){_0x2a4467[_0x5cdb('0x10')]=!0x1,_0x545bb8[_0x5cdb('0x17')][_0x5cdb('0x3')][_0x5cdb('0x1e')]();}return _0x2a4467[_0x5cdb('0x9')](_0x5cdb('0x21'))['to'](_0x16ae1a,_0x5cdb('0x19'),_0x16ae1a,_0x5cdb('0x21'),_0x545bb8,_0x5cdb('0x11'),(_0x58822c,_0x192791,_0x4b7924)=>_0x58822c&&_0x192791&&!_0x4b7924),_0x2a4467[_0x5cdb('0x15')]['set']({'icon':_0x375cb6[_0x5cdb('0x6')],'label':_0x5f2351(_0x422258,_0x5cdb('0x1f')),'tooltip':!0x0}),_0x45cee6[_0x5cdb('0x13')]({'label':_0x5f2351(_0x422258,_0x5cdb('0x1b')),'withText':!0x0}),_0x45cee6[_0x5cdb('0x9')]('isEnabled')['to'](_0x16ae1a,_0x5cdb('0x19'),_0x16ae1a,_0x5cdb('0x21'),_0x545bb8,'isReadOnly',(_0x44c87b,_0x39ee6e,_0x1248f2)=>_0x44c87b&&_0x39ee6e&&!_0x1248f2),_0x45cee6['on'](_0x5cdb('0x18'),()=>function(){_0x4149c4[_0x5cdb('0x1')]&&_0x4149c4[_0x5cdb('0x8')](0x0),(_0x1f6cbf[_0x5cdb('0x12')](),_0x4149c4[_0x5cdb('0x22')](_0x1f6cbf),_0x1f6cbf[_0x5cdb('0x1e')]());}()),_0x1b8fb3[_0x5cdb('0x13')]({'label':_0x5f2351(_0x422258,_0x5cdb('0x4')),'withText':!0x0}),_0x1b8fb3[_0x5cdb('0x9')](_0x5cdb('0x21'))['to'](_0x16ae1a,_0x5cdb('0x19'),_0x545bb8,'isReadOnly',(_0x569995,_0x3a14a6)=>_0x569995&&!_0x3a14a6),_0x1b8fb3['on']('execute',()=>{_0x545bb8[_0x5cdb('0xc')][_0x5cdb('0x2')]('revisionHistory')[_0x5cdb('0x14')](),_0x4cc053();}),_0x1ba01d[_0x5cdb('0x1d')][_0x5cdb('0x22')](_0x45cee6),_0x391cfe[_0x5cdb('0x1d')][_0x5cdb('0x22')](_0x1b8fb3),_0x3f460d['items'][_0x5cdb('0xb')]([_0x1ba01d,_0x391cfe]),_0x2a4467['on'](_0x5cdb('0x20'),()=>_0x22cb90()),_0x1f6cbf['saveButtonView'][_0x5cdb('0x9')](_0x5cdb('0x21'))['to'](_0x16ae1a,_0x5cdb('0x19'),_0x16ae1a,_0x5cdb('0x21'),_0x545bb8,_0x5cdb('0x11'),(_0x4d72b3,_0x4d979e,_0x5b01ba)=>_0x4d72b3&&_0x4d979e&&!_0x5b01ba),_0x1f6cbf['on'](_0x5cdb('0x1a'),()=>(_0x545bb8['plugins'][_0x5cdb('0x2')](_0x4d3f07)[_0x5cdb('0xf')]({'name':_0x1f6cbf[_0x5cdb('0x7')]}),void _0x4cc053())),_0x1f6cbf['on'](_0x5cdb('0xa'),()=>_0x22cb90()),_0x1f6cbf['render'](),_0x22cb90(),_0x2a4467;});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1a82=['_revisionViewer','plugins','compare','_revisionsRepository','locale','getIndex','bind','defaultRevisionActions','revisionSetName','highlightRevisions','isSelected','pluginName','element','_sidebarView','change:diff','editor','render','map','availableRevisionActions','get','focus','revisionSelected','_revisions','restoreRevisionCallback','getRevision','length','revisionHistory','_createRevisionActions','diff','getEarlierVisibleRevision','newRevisionId','isEnabled','timePeriodViews','action','selectRevision','add','isVisible','_handleDiffChange','compareAgainstSelected','listenTo','_handleEditorDataReady','_handleRevisionSetName','data','name','isReady','config','requires','appendChild','Compare\x20against\x20selected','destroy','repository','_handleRevisionSelected','getRevisionsInDiff'];(function(_0x553075,_0x1a822d){const _0x290447=function(_0x5cba4a){while(--_0x5cba4a){_0x553075['push'](_0x553075['shift']());}};_0x290447(++_0x1a822d);}(_0x1a82,0x7a));const _0x2904=function(_0x553075,_0x1a822d){_0x553075=_0x553075-0x0;let _0x290447=_0x1a82[_0x553075];return _0x290447;};import{Plugin as _0x36ca2d}from'ckeditor5/src/core';import _0x30dada from'./revisionssidebarview';import _0xdc14f5 from'../../revisionviewer';export default class w extends _0x36ca2d{static get[_0x2904('0x30')](){return'RevisionsSidebar';}static get[_0x2904('0x1e')](){return[_0xdc14f5];}constructor(_0x260e1c){super(_0x260e1c),this[_0x2904('0x25')]=_0x260e1c[_0x2904('0x26')][_0x2904('0x3')](_0xdc14f5),this['_revisionsRepository']=this[_0x2904('0x25')][_0x2904('0x22')],this[_0x2904('0x32')]=null;}['init'](){const _0x518a7f=this[_0x2904('0x28')][_0x2904('0x6')],_0xdd2c18=this[_0x2904('0xb')](),_0x57b32a=this[_0x2904('0x34')]['config']['get']('revisionHistory.viewerSidebarContainer');this[_0x2904('0x32')]=new _0x30dada(this[_0x2904('0x34')][_0x2904('0x29')],_0x518a7f,_0xdd2c18),this[_0x2904('0x32')]['on'](_0x2904('0x5'),this[_0x2904('0x23')][_0x2904('0x2b')](this)),this[_0x2904('0x32')]['on'](_0x2904('0x2d'),this[_0x2904('0x19')][_0x2904('0x2b')](this)),this[_0x2904('0x32')][_0x2904('0x2b')]('isEnabled')['to'](this[_0x2904('0x25')]),this[_0x2904('0x32')][_0x2904('0x10')]['on'](_0x2904('0x13'),(_0x332c8a,_0x8c18f7)=>{_0x8c18f7['revisionViews']['on'](_0x2904('0x13'),(_0x595505,_0x594dc2)=>{_0x594dc2[_0x2904('0x2b')](_0x2904('0xf'),_0x2904('0x1c'))['to'](this[_0x2904('0x25')]);});}),this[_0x2904('0x32')][_0x2904('0x0')](),this[_0x2904('0x17')](this[_0x2904('0x34')][_0x2904('0x1a')],'ready',this[_0x2904('0x18')][_0x2904('0x2b')](this)),this[_0x2904('0x17')](this[_0x2904('0x25')],_0x2904('0x33'),this[_0x2904('0x15')][_0x2904('0x2b')](this)),_0x57b32a[_0x2904('0x1f')](this[_0x2904('0x32')][_0x2904('0x31')]);}[_0x2904('0x21')](){this[_0x2904('0x32')][_0x2904('0x31')]['remove'](),this[_0x2904('0x32')][_0x2904('0x21')]();}[_0x2904('0x18')](){const _0x41039d=this[_0x2904('0x28')][_0x2904('0x8')](0x0);if(_0x41039d){const _0x31078e=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x41039d['id']);this[_0x2904('0x25')][_0x2904('0x27')](_0x41039d,_0x31078e);}}[_0x2904('0x23')](_0x59729c,_0x2b690b){const _0x3a5854=this[_0x2904('0x28')][_0x2904('0x8')](_0x2b690b['id']),_0xcd5b5b=this['_revisionsRepository'][_0x2904('0xd')](_0x3a5854['id']);this[_0x2904('0x25')]['compare'](_0x3a5854,_0xcd5b5b);}[_0x2904('0x19')](_0x4bf46e,_0xac8f81){this[_0x2904('0x28')]['getRevision'](_0xac8f81['id'])['setName'](_0xac8f81[_0x2904('0x1b')]);}['_handleDiffChange'](_0x3b56b1,_0x12ded0,_0x447de3){const _0x12f29d=this[_0x2904('0x28')][_0x2904('0x24')](_0x447de3);_0x12f29d[_0x2904('0x9')]>0x2?(this[_0x2904('0x32')][_0x2904('0x2e')](_0x12f29d),this[_0x2904('0x32')]['selectRevision'](null)):(this[_0x2904('0x32')][_0x2904('0x2e')]([]),this[_0x2904('0x32')][_0x2904('0x12')](_0x12f29d[0x0]));}[_0x2904('0xb')](){const _0x3ac9b9=this[_0x2904('0x34')],_0x175862=w[_0x2904('0x2')],_0x261218=_0x3ac9b9[_0x2904('0x1d')]['get']('revisionHistory.revisionActions')||w['defaultRevisionActions'];if(_0x261218[_0x2904('0x9')])return _0x261218[_0x2904('0x1')](_0x2d266c=>{const _0x2a34f5='string'==typeof _0x2d266c?Object['assign']({},_0x175862[_0x2d266c]):_0x2d266c;return _0x2a34f5[_0x2904('0x11')]=_0x2a34f5['action'][_0x2904('0x2b')](this,_0x3ac9b9),_0x2a34f5[_0x2904('0x14')]&&(_0x2a34f5[_0x2904('0x14')]=_0x2a34f5['isVisible'][_0x2904('0x2b')](this,_0x3ac9b9)),_0x2a34f5;});}}w[_0x2904('0x2')]={'compareAgainstSelected':{'name':_0x2904('0x20'),'action':({plugins:_0x171ad4},_0xf0b96)=>{const _0x354e9c=_0x171ad4['get'](_0xdc14f5),_0x12b977=_0x354e9c[_0x2904('0x22')];let _0xf320f4=_0x354e9c[_0x2904('0xc')][_0x2904('0xe')],_0x4c21ae=_0xf0b96['id'];_0x12b977[_0x2904('0x2a')](_0xf320f4)>_0x12b977[_0x2904('0x2a')](_0x4c21ae)&&([_0xf320f4,_0x4c21ae]=[_0x4c21ae,_0xf320f4]),_0x354e9c[_0x2904('0x27')](_0xf320f4,_0x4c21ae);},'isVisible':({plugins:_0x42d88f},_0x5c17f3)=>{const _0x239ba3=_0x42d88f[_0x2904('0x3')](_0xdc14f5);return!(_0x239ba3[_0x2904('0x22')][_0x2904('0x24')](_0x239ba3[_0x2904('0xc')])[_0x2904('0x9')]>0x2)&&!_0x5c17f3[_0x2904('0x2f')];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x1de99a,{id:_0xf684c5})=>{_0x1de99a['config'][_0x2904('0x3')](_0x2904('0xa'))[_0x2904('0x7')](_0xf684c5);},'isVisible':({plugins:_0x3ff328},_0x1c6e09)=>!!_0x3ff328[_0x2904('0x3')](_0xdc14f5)[_0x2904('0x22')]['getLaterVisibleRevision'](_0x1c6e09['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x5a1da6},{id:_0xe4b72d,revisionNameView:_0x10ab6e})=>{const _0x17caeb=_0x5a1da6[_0x2904('0x3')](_0xdc14f5),_0x50f7a9=_0x17caeb[_0x2904('0x22')][_0x2904('0xd')](_0xe4b72d);_0x17caeb['compare'](_0xe4b72d,_0x50f7a9),_0x10ab6e[_0x2904('0x4')](),_0x10ab6e['fieldView']['select']();}}},w[_0x2904('0x2c')]=[_0x2904('0x16'),'restoreRevision','nameRevision'];
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x55c6=['content','span','ck-reset_all','Revision\x20history','ck-revision-history-sidebar__header__label'];(function(_0x32507c,_0x55c652){const _0x26f764=function(_0x96696a){while(--_0x96696a){_0x32507c['push'](_0x32507c['shift']());}};_0x26f764(++_0x55c652);}(_0x55c6,0x71));const _0x26f7=function(_0x32507c,_0x55c652){_0x32507c=_0x32507c-0x0;let _0x26f764=_0x55c6[_0x32507c];return _0x26f764;};import{View as _0x40fd26,IconView as _0x276dc9}from'ckeditor5/src/ui';import{getTranslation as _0x57fcc1}from'../../utils/common-translations';import{icons as _0x2d3f45}from'ckeditor5/src/core';import'../../../theme/revisionssidebar/revisionssidebarheader.css';export default class rr extends _0x40fd26{constructor(_0x58b018){super(_0x58b018);const _0x34b981=new _0x276dc9();_0x34b981[_0x26f7('0x2')]=_0x2d3f45['history'],this['setTemplate']({'tag':'div','attributes':{'class':['ck',_0x26f7('0x4'),'ck-revision-history-sidebar__header']},'children':[_0x34b981,{'tag':_0x26f7('0x3'),'attributes':{'class':['ck',_0x26f7('0x1')]},'children':[_0x57fcc1(_0x58b018,_0x26f7('0x0'))]}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3587=['remove','setName','locale','delegate','div','removeRevision','add','find','revisionViews','addRevision','startDate','_revisionActions','setTemplate','uiLanguage','span','ck-revision-history-sidebar__time-period__label','ck-revision-history-sidebar__time-period','localizedPeriodName'];(function(_0x2ffa6a,_0x35872d){const _0x3ebaf7=function(_0x54b881){while(--_0x54b881){_0x2ffa6a['push'](_0x2ffa6a['shift']());}};_0x3ebaf7(++_0x35872d);}(_0x3587,0x12d));const _0x3eba=function(_0x2ffa6a,_0x35872d){_0x2ffa6a=_0x2ffa6a-0x0;let _0x3ebaf7=_0x3587[_0x2ffa6a];return _0x3ebaf7;};import{View as _0x10bdce}from'ckeditor5/src/ui';import _0x4dae27 from'../revision/revisionview';import{getDateTimePeriodInfo as _0x522689}from'./utils';import'../../../theme/revisionssidebar/revisionssidebartimeperiod.css';export default class pi extends _0x10bdce{constructor(_0x224def,_0x3ba46f,_0x5d658a){super(_0x224def);const _0x14120a=_0x522689(_0x3ba46f,this[_0x3eba('0x7')][_0x3eba('0x0')])[_0x3eba('0x4')];this[_0x3eba('0xf')]=_0x3ba46f,this['revisionViews']=this['createCollection'](),this[_0x3eba('0x10')]=_0x5d658a,this['revisionViews'][_0x3eba('0x8')]('select')['to'](this),this[_0x3eba('0xd')][_0x3eba('0x8')](_0x3eba('0x6'))['to'](this),this[_0x3eba('0x11')]({'tag':_0x3eba('0x9'),'attributes':{'class':['ck',_0x3eba('0x3')]},'children':[{'tag':_0x3eba('0x1'),'attributes':{'class':['ck',_0x3eba('0x2')]},'children':[{'text':_0x14120a}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this[_0x3eba('0xd')]}]});}[_0x3eba('0xe')](_0x5db99f){const _0x5cf49d=new _0x4dae27(this[_0x3eba('0x7')],_0x5db99f,this[_0x3eba('0x10')]);this['revisionViews'][_0x3eba('0xb')](_0x5cf49d);}[_0x3eba('0xa')](_0x3d5f71){const _0xf83bf7=this[_0x3eba('0xd')][_0x3eba('0xc')](_0x2b5e16=>_0x2b5e16['id']===_0x3d5f71['id']);this['revisionViews'][_0x3eba('0x5')](_0xf83bf7);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3a0e=['timePeriodViews','render','delegate','fire','_revisionActions','uiLanguage','removeRevision','createCollection','selectRevision','createdAt','isEnabled','map','setName','bindTemplate','revisionViews','select','ck-revision-history-sidebar__timeline','highlightRevisions','ck-rounded-corners','flat','_getTimePeriodViewByStartDate','unhighlight','setTemplate','get','ck-reset','addRevision','div','remove','locale','some','startDate','revisionSetName','ck-revision-history-sidebar','_addRevision','set','_removeRevision','deselect','ck-disabled','add','revisionSelected','highlight','_revisions','getTime'];(function(_0x3153d5,_0x3a0e87){const _0x50ef22=function(_0x2f3bba){while(--_0x2f3bba){_0x3153d5['push'](_0x3153d5['shift']());}};_0x50ef22(++_0x3a0e87);}(_0x3a0e,0x133));const _0x50ef=function(_0x3153d5,_0x3a0e87){_0x3153d5=_0x3153d5-0x0;let _0x50ef22=_0x3a0e[_0x3153d5];return _0x50ef22;};import{View as _0x2fc7f9}from'ckeditor5/src/ui';import _0x33b921 from'./revisionssidebartimeperiodview';import _0x50c7a6 from'./revisionssidebarheaderview';import{getDateTimePeriodInfo as _0x3977e3}from'./utils';import'../../../theme/revisionssidebar/revisionssidebar.css';export default class vi extends _0x2fc7f9{constructor(_0x52cf9c,_0x2fb883,_0x9dd30a){super(_0x52cf9c);const _0x4bada0=this[_0x50ef('0x7')];this[_0x50ef('0x25')]=this[_0x50ef('0x1')](),this['timePeriodViews']['delegate']('select')['to'](this),this[_0x50ef('0x25')][_0x50ef('0x27')]('setName')['to'](this),this[_0x50ef('0x23')]=_0x2fb883,this[_0x50ef('0x29')]=_0x9dd30a,this['on']('select',(_0x36db16,_0x20d02f)=>{this[_0x50ef('0x28')](_0x50ef('0x21'),_0x20d02f);}),this['on'](_0x50ef('0x6'),(_0x42f9d4,_0x1a3900)=>{this[_0x50ef('0x28')](_0x50ef('0x19'),_0x1a3900);}),this[_0x50ef('0x1c')](_0x50ef('0x4'),!0x1),this[_0x50ef('0x10')]({'tag':'div','attributes':{'class':['ck',_0x50ef('0x12'),_0x50ef('0xc'),_0x50ef('0x1a')]},'children':[new _0x50c7a6(_0x52cf9c),{'tag':_0x50ef('0x14'),'attributes':{'class':['ck',_0x50ef('0xa'),_0x4bada0['if'](_0x50ef('0x4'),_0x50ef('0x1f'),_0x32bf78=>!_0x32bf78)]},'children':this[_0x50ef('0x25')]}]});}[_0x50ef('0x26')](){super[_0x50ef('0x26')]();for(const _0x3b6d8d of this[_0x50ef('0x23')])this['_addRevision'](_0x3b6d8d);this[_0x50ef('0x23')]['on'](_0x50ef('0x20'),(_0x2e6d58,_0x304243)=>{this[_0x50ef('0x1b')](_0x304243);}),this[_0x50ef('0x23')]['on'](_0x50ef('0x15'),(_0x94014,_0x1c5ce4)=>{this['_removeRevision'](_0x1c5ce4);});}get['revisionViews'](){return this[_0x50ef('0x25')][_0x50ef('0x5')](_0x594d9f=>_0x594d9f[_0x50ef('0x8')]['map'](_0x3aa28e=>_0x3aa28e))[_0x50ef('0xd')]();}[_0x50ef('0x2')](_0x50f6e5){for(const _0x34ca74 of this[_0x50ef('0x8')])_0x50f6e5&&_0x50f6e5['id']===_0x34ca74['id']?_0x34ca74[_0x50ef('0x9')]():_0x34ca74[_0x50ef('0x1e')]();}[_0x50ef('0xb')](_0xc2db16){for(const _0x1212ba of this[_0x50ef('0x8')])_0xc2db16[_0x50ef('0x17')](({id:_0x4625b6})=>_0x4625b6===_0x1212ba['id'])?_0x1212ba[_0x50ef('0x22')]():_0x1212ba[_0x50ef('0xf')]();}[_0x50ef('0x1b')](_0x43858d){const _0x59c3c5=_0x3977e3(_0x43858d[_0x50ef('0x3')],this[_0x50ef('0x16')][_0x50ef('0x2a')])[_0x50ef('0x18')];let _0x482b47=this[_0x50ef('0x25')][_0x50ef('0x11')](0x0);_0x482b47&&_0x482b47['startDate'][_0x50ef('0x24')]()===_0x59c3c5[_0x50ef('0x24')]()||(_0x482b47=new _0x33b921(this['locale'],_0x59c3c5,this[_0x50ef('0x29')]),this[_0x50ef('0x25')]['add'](_0x482b47)),_0x482b47[_0x50ef('0x13')](_0x43858d);}[_0x50ef('0x1d')](_0x398164){const _0x37b2ff=_0x3977e3(_0x398164['createdAt'],this[_0x50ef('0x16')][_0x50ef('0x2a')])[_0x50ef('0x18')];this[_0x50ef('0xe')](_0x37b2ff)[_0x50ef('0x0')](_0x398164);}[_0x50ef('0xe')](_0x408585){return this['timePeriodViews']['find'](_0x1b11de=>_0x1b11de[_0x50ef('0x18')][_0x50ef('0x24')]()===_0x408585[_0x50ef('0x24')]());}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x21a6=['year','hasSame','toRelativeCalendar','week','startOf','setLocale','toJSDate','monthLong','day','weekdayLong','fromJSDate','month'];(function(_0x17710e,_0x21a64e){const _0x2253d2=function(_0x423a13){while(--_0x423a13){_0x17710e['push'](_0x17710e['shift']());}};_0x2253d2(++_0x21a64e);}(_0x21a6,0x6a));const _0x2253=function(_0x17710e,_0x21a64e){_0x17710e=_0x17710e-0x0;let _0x2253d2=_0x21a6[_0x17710e];return _0x2253d2;};import{DateTime as _0x1cfdb0}from'luxon';export function getDateTimePeriodInfo(_0x4fccb7,_0xfc4d73){const _0xef4101=_0x1cfdb0[_0x2253('0x0')](_0x4fccb7)[_0x2253('0x7')](_0xfc4d73),_0x3a5926=_0x1cfdb0['local'](),_0x1c4097=_0x3a5926['minus']({'days':0x1})[_0x2253('0x6')](_0x2253('0xa'));let _0x453e38,_0x52c226;return _0xef4101[_0x2253('0x3')](_0x3a5926,_0x2253('0xa'))?(_0x453e38=_0xef4101[_0x2253('0x6')](_0x2253('0xa'))[_0x2253('0x8')](),_0x52c226=_0xef4101[_0x2253('0x4')]()):_0xef4101[_0x2253('0x3')](_0x1c4097,_0x2253('0xa'))?(_0x453e38=_0x1c4097['toJSDate'](),_0x52c226=_0xef4101['toRelativeCalendar']()):_0xef4101[_0x2253('0x3')](_0x3a5926,_0x2253('0x5'))?(_0x453e38=_0xef4101[_0x2253('0x6')](_0x2253('0x5'))[_0x2253('0x8')](),_0x52c226=_0xef4101[_0x2253('0xb')]||''):_0xef4101[_0x2253('0x3')](_0x3a5926,'year')?(_0x453e38=_0xef4101['startOf'](_0x2253('0x1'))[_0x2253('0x8')](),_0x52c226=_0xef4101[_0x2253('0x9')]||''):(_0x453e38=_0xef4101[_0x2253('0x6')](_0x2253('0x2'))['toJSDate'](),_0x52c226=String(_0xef4101[_0x2253('0x2')])),{'startDate':_0x453e38,'localizedPeriodName':_0x52c226};}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3df8=['ck-revision-change','ck-annotation','bindTemplate','Removed\x20by','setTemplate','author','changeId','element','ck-revision-change__','span','Added\x20by','ck-revision-change__label','focus','data','_model','div','type','isSuggestion','Suggested\x20by','name'];(function(_0x13ecfa,_0x3df8a5){const _0x3b2bfe=function(_0x23943c){while(--_0x23943c){_0x13ecfa['push'](_0x13ecfa['shift']());}};_0x3b2bfe(++_0x3df8a5);}(_0x3df8,0xb7));const _0x3b2b=function(_0x13ecfa,_0x3df8a5){_0x13ecfa=_0x13ecfa-0x0;let _0x3b2bfe=_0x3df8[_0x13ecfa];return _0x3b2bfe;};import{View as _0x2ae32b}from'ckeditor5/src/ui';import{getTranslation as _0x5ddb5e}from'../../utils/common-translations';export default class Z extends _0x2ae32b{constructor(_0x3526d1,_0x4d3f73){super(_0x3526d1),this[_0x3b2b('0xb')]=_0x4d3f73,this[_0x3b2b('0x3')]=_0x4d3f73['id'];const _0x24c043=this[_0x3b2b('0x13')],_0x46ba84=_0x5ddb5e(_0x3526d1,_0x4d3f73[_0x3b2b('0xa')][_0x3b2b('0xe')]?_0x3b2b('0xf'):'add'==_0x4d3f73['type']?_0x3b2b('0x7'):_0x3b2b('0x0'));this['set'](_0x3b2b('0xd'),_0x4d3f73[_0x3b2b('0xd')]),this[_0x3b2b('0x1')]({'tag':_0x3b2b('0xc'),'attributes':{'class':[_0x3b2b('0x12'),_0x3b2b('0x11'),_0x24c043['to'](_0x3b2b('0xd'),_0x500a3c=>_0x3b2b('0x5')+_0x500a3c)],'tabindex':-0x1},'children':[{'tag':_0x3b2b('0x6'),'children':[{'tag':_0x3b2b('0x6'),'attributes':{'class':[_0x3b2b('0x8')]},'children':[{'text':_0x46ba84}]},{'text':'\x20'+_0x4d3f73[_0x3b2b('0x2')][_0x3b2b('0x10')]}]}]});}['focus'](){this[_0x3b2b('0x4')][_0x3b2b('0x9')]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5d37=['forward','isReady','isNavigationMode','div','fire','backward','_statusText','isBackwardNavigationEnabled','ck-revision-history-ui__changes-navigation','Loading...','span','ck-revision-history-ui','ck-revision-history-ui__changes-navigation__label','isForwardNavigationEnabled','ck-revision-history-ui__changes-navigation__navigation','Show\x20next\x20change','Total','setTemplate','_isStatusLabelVisible','ck-hidden','NUMBER_OF_CHANGES','set','No\x20changes','numberOfChanges','currentChangeNumber','bindTemplate','Show\x20previous\x20change','isEnabled','execute','bind','EDIT_X_OF_Y_REVISIONS','X_OF_Y_CHANGES'];(function(_0x5251f2,_0x5d37df){const _0xf98325=function(_0x39488e){while(--_0x39488e){_0x5251f2['push'](_0x5251f2['shift']());}};_0xf98325(++_0x5d37df);}(_0x5d37,0x1be));const _0xf983=function(_0x5251f2,_0x5d37df){_0x5251f2=_0x5251f2-0x0;let _0xf98325=_0x5d37[_0x5251f2];return _0xf98325;};import{View as _0x5037b3,ButtonView as _0x3d876d,ToolbarSeparatorView as _0x5d9b97}from'ckeditor5/src/ui';import{getTranslation as _0x5d55c8}from'../../utils/common-translations';import _0x3fbe51 from'../../../theme/icons/arrow-up.svg';import _0x1942eb from'../../../theme/icons/arrow-down.svg';import'../../../theme/changesnavigation.css';export default class bi extends _0x5037b3{constructor(_0x3f43d7){super(_0x3f43d7);const _0x3a4767=this[_0xf983('0x1b')],_0x29ce39=new _0x3d876d(_0x3f43d7),_0x4365e9=new _0x3d876d(_0x3f43d7);this[_0xf983('0x17')](_0xf983('0x4'),!0x1),this[_0xf983('0x17')](_0xf983('0x3'),!0x1),this[_0xf983('0x17')]('currentChangeNumber',0x0),this[_0xf983('0x17')]('numberOfChanges',0x0),this[_0xf983('0x17')]('isForwardNavigationEnabled',!0x1),this[_0xf983('0x17')](_0xf983('0x9'),!0x1),this['bind'](_0xf983('0x14'))['to'](this,'isReady',this,_0xf983('0x19'),(_0x3c29ef,_0x5e5551)=>_0x3c29ef&&_0x5e5551>0x0),this[_0xf983('0x1f')](_0xf983('0x8'))['to'](this,_0xf983('0x3'),this,_0xf983('0x1a'),this,_0xf983('0x19'),this,_0xf983('0x4'),(_0x154121,_0x36bee0,_0x392300,_0x434673)=>{if(!_0x154121)return _0x5d55c8(_0x3f43d7,_0xf983('0xb'));if(!_0x392300)return _0x5d55c8(_0x3f43d7,_0xf983('0x18'));const _0xcf74db=_0x5d55c8(_0x3f43d7,_0xf983('0x16'),_0x392300);return _0x434673?_0x5d55c8(_0x3f43d7,_0xf983('0x1'),[_0x36bee0+0x1,_0x392300]):_0xcf74db;}),_0x29ce39[_0xf983('0x17')]({'label':_0x5d55c8(_0x3f43d7,_0xf983('0x1c')),'tooltip':!0x0,'icon':_0x3fbe51}),_0x4365e9[_0xf983('0x17')]({'label':_0x5d55c8(_0x3f43d7,_0xf983('0x11')),'tooltip':!0x0,'icon':_0x1942eb}),_0x29ce39[_0xf983('0x1f')](_0xf983('0x1d'))['to'](this,'isBackwardNavigationEnabled'),_0x4365e9['bind']('isEnabled')['to'](this,_0xf983('0xf')),_0x29ce39['on']('execute',()=>this[_0xf983('0x6')](_0xf983('0x1e'),_0xf983('0x7'))),_0x4365e9['on']('execute',()=>this[_0xf983('0x6')](_0xf983('0x1e'),_0xf983('0x2'))),this[_0xf983('0x13')]({'tag':_0xf983('0x5'),'attributes':{'class':['ck',_0xf983('0xd'),_0xf983('0xa')]},'children':[{'tag':'span','attributes':{'class':['ck-revision-history-ui__changes-navigation__wrapper']},'children':[{'tag':_0xf983('0xc'),'attributes':{'class':[_0xf983('0xe'),_0x3a4767['if'](_0xf983('0x14'),_0xf983('0x15'),_0x57f0ee=>!_0x57f0ee)]},'children':[{'text':_0x3a4767['to']('isNavigationMode',_0x18c8f3=>_0x18c8f3?_0x5d55c8(_0x3f43d7,_0xf983('0x0'))+':\x20':_0x5d55c8(_0x3f43d7,_0xf983('0x12'))+':\x20')}]},{'text':_0x3a4767['to'](_0xf983('0x8'))}]},new _0x5d9b97(),{'tag':_0xf983('0x5'),'attributes':{'class':[_0xf983('0x10')]},'children':[_0x29ce39,_0x4365e9]}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xfc1b=['document','addClass','show','RevisionViewerLoadingOverlay','roots','change','pluginName','editor','ck-editor__editable__loading-overlay','removeClass','editing'];(function(_0x35360c,_0xfc1b63){const _0x568565=function(_0x1a17f9){while(--_0x1a17f9){_0x35360c['push'](_0x35360c['shift']());}};_0x568565(++_0xfc1b63);}(_0xfc1b,0x143));const _0x5685=function(_0x35360c,_0xfc1b63){_0x35360c=_0x35360c-0x0;let _0x568565=_0xfc1b[_0x35360c];return _0x568565;};import{Plugin as _0x47cf0a}from'ckeditor5/src/core';const oe=_0x5685('0x4');import'../../../theme/revisionviewerloadingoverlay.css';export default class te extends _0x47cf0a{static get[_0x5685('0x2')](){return _0x5685('0xa');}[_0x5685('0x9')](){const _0x3aa433=this['editor'][_0x5685('0x6')]['view'];_0x3aa433['change'](_0x2b4386=>{for(const _0x5a7e2a of _0x3aa433[_0x5685('0x7')][_0x5685('0x0')])_0x2b4386[_0x5685('0x8')](oe,_0x5a7e2a);});}['hide'](){const _0x1b5239=this[_0x5685('0x3')][_0x5685('0x6')]['view'];_0x1b5239[_0x5685('0x1')](_0x269625=>{for(const _0x3b9598 of _0x1b5239[_0x5685('0x7')][_0x5685('0x0')])_0x269625[_0x5685('0x5')](oe,_0x3b9598);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x440a=['change:isReady','add','Back\x20to\x20editing','listenTo','revisionHistory','restoreRevision','get','forward','exitToEditing','set','pluginName','isForwardNavigationEnabled','changesNavigation','Restore\x20this\x20revision','plugins','isBackwardNavigationEnabled','isEnabled','showNextChange','execute','numberOfChanges','ck-revision-history-ui__back-to-editing','componentFactory','requires','show','bind','showPreviousChange','init','isNavigationMode','commands'];(function(_0x15e53e,_0x440ad5){const _0x3d2873=function(_0x20d835){while(--_0x20d835){_0x15e53e['push'](_0x15e53e['shift']());}};_0x3d2873(++_0x440ad5);}(_0x440a,0xc0));const _0x3d28=function(_0x15e53e,_0x440ad5){_0x15e53e=_0x15e53e-0x0;let _0x3d2873=_0x440a[_0x15e53e];return _0x3d2873;};import{Plugin as _0x1372bc}from'ckeditor5/src/core';import{ButtonView as _0x195d2c}from'ckeditor5/src/ui';import _0x221aff from'./changesnavigationview';import _0x432d0a from'./../../revisionviewer';import _0x4aad53 from'./revisionviewerloadingoverlay';import{getTranslation as _0x2c84f6}from'../../utils/common-translations';import _0x22524d from'@ckeditor/ckeditor5-undo/theme/icons/undo.svg';import'../../../theme/revisionviewer.css';export default class R extends _0x1372bc{static get[_0x3d28('0x15')](){return'RevisionViewerUI';}static get[_0x3d28('0x4')](){return[_0x432d0a,_0x4aad53];}[_0x3d28('0x8')](){const _0x6860bf=this['editor'],_0x420561=_0x6860bf[_0x3d28('0x19')][_0x3d28('0x11')](_0x432d0a),_0x35cd7e=_0x6860bf['plugins']['get'](_0x4aad53);_0x6860bf['ui'][_0x3d28('0x3')][_0x3d28('0xc')](_0x3d28('0x13'),_0x3b5af4=>{const _0x4382e6=new _0x195d2c(_0x3b5af4);return _0x4382e6[_0x3d28('0x14')]({'label':_0x2c84f6(_0x3b5af4,_0x3d28('0xd')),'icon':_0x22524d,'withText':!0x0,'tooltip':!0x0,'class':_0x3d28('0x2')}),this[_0x3d28('0xe')](_0x4382e6,_0x3d28('0x0'),()=>{_0x6860bf['config'][_0x3d28('0x11')](_0x3d28('0xf'))['closeRevisionViewerCallback']();}),_0x4382e6;}),_0x6860bf['ui'][_0x3d28('0x3')][_0x3d28('0xc')](_0x3d28('0x10'),_0x494396=>{const _0x41fe00=new _0x195d2c(_0x494396);return _0x41fe00[_0x3d28('0x14')]({'label':_0x2c84f6(_0x494396,_0x3d28('0x18')),'withText':!0x0,'tooltip':!0x0}),_0x41fe00[_0x3d28('0x6')](_0x3d28('0x1b'))['to'](_0x6860bf[_0x3d28('0xa')][_0x3d28('0x11')](_0x3d28('0x10'))),this[_0x3d28('0xe')](_0x41fe00,_0x3d28('0x0'),()=>_0x6860bf[_0x3d28('0x0')](_0x3d28('0x10'))),_0x41fe00;}),_0x6860bf['ui']['componentFactory'][_0x3d28('0xc')](_0x3d28('0x17'),_0x419578=>{const _0x27556c=new _0x221aff(_0x419578),_0x26a7eb=_0x6860bf[_0x3d28('0xa')][_0x3d28('0x11')](_0x3d28('0x7')),_0x3df922=_0x6860bf['commands'][_0x3d28('0x11')](_0x3d28('0x1c'));return _0x27556c['bind'](_0x3d28('0x1a'))['to'](_0x26a7eb,_0x3d28('0x1b')),_0x27556c[_0x3d28('0x6')](_0x3d28('0x16'))['to'](_0x3df922,'isEnabled'),_0x27556c['bind']('isReady','currentChangeNumber',_0x3d28('0x1'),_0x3d28('0x9'))['to'](_0x420561),this[_0x3d28('0xe')](_0x27556c,'execute',(_0x239fcb,_0x218f0a)=>{_0x6860bf[_0x3d28('0x0')](_0x3d28('0x12')===_0x218f0a?'showNextChange':'showPreviousChange');}),_0x27556c;}),_0x35cd7e[_0x3d28('0x5')](),_0x420561['on'](_0x3d28('0xb'),(_0x218a1d,_0x4b56da,_0x482936)=>{_0x482936?_0x35cd7e['hide']():_0x35cd7e[_0x3d28('0x5')]();});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export function getTranslation(
|
|
23
|
+
export function getTranslation(_0x167ec1,_0x1e65cc,_0x16f5ee){const t=_0x167ec1['t'];switch(_0x1e65cc){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'},_0x16f5ee);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x16f5ee);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 _0x1e65cc;}}
|