@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20231026.0 → 0.0.0-nightly-20231027.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/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 _0x3706=['editor','render','isEnabled','isReady','view','focus','RevisionTracker','buttonView','RevisionHistoryUI','submit','add','componentFactory','execute','length','revisionName','bind','get','Revision\x20history','pluginName','Open\x20revision\x20history','plugins','remove','saveRevision','revisionHistory','editing','showRevisionViewerCallback','isReadOnly','items','history','panelView','children','reset','set','cancel','requires','change:isOpen','saveButtonView'];(function(_0x11d967,_0x3706dd){const _0x27da8d=function(_0x523ebe){while(--_0x523ebe){_0x11d967['push'](_0x11d967['shift']());}};_0x27da8d(++_0x3706dd);}(_0x3706,0xaf));const _0x27da=function(_0x11d967,_0x3706dd){_0x11d967=_0x11d967-0x0;let _0x27da8d=_0x3706[_0x11d967];return _0x27da8d;};import{Plugin as _0xd49e6d,icons as _0x2d6242}from'ckeditor5/src/core';import{ListView as _0xb9556c,ListItemView as _0x13bfb4,ButtonView as _0x467b7e,createDropdown as _0x4ceef8}from'ckeditor5/src/ui';import _0x385458 from'../../revisiontracker';import _0x2eaad6 from'./revisionhistorysaverevisionformview';import{getTranslation as _0x4cf15e}from'../../utils/common-translations';export default class u extends _0xd49e6d{static get[_0x27da('0x1c')](){return _0x27da('0x12');}static get[_0x27da('0x7')](){return[_0x385458];}['init'](){const _0x4dab1f=this[_0x27da('0xa')],_0x5405ab=_0x4dab1f[_0x27da('0x1e')][_0x27da('0x1a')](_0x27da('0x10'));_0x4dab1f['ui'][_0x27da('0x15')]['add'](_0x27da('0x21'),_0x8c6ef1=>{const _0x39b1c9=_0x4ceef8(_0x8c6ef1),_0x116071=_0x39b1c9[_0x27da('0x2')][_0x27da('0x3')],_0x58da26=new _0xb9556c(_0x8c6ef1),_0x510708=new _0x13bfb4(_0x8c6ef1),_0x497cbc=new _0x467b7e(_0x8c6ef1),_0x3afe2a=new _0x13bfb4(_0x8c6ef1),_0x275f04=new _0x467b7e(_0x8c6ef1),_0x403a92=new _0x2eaad6(_0x8c6ef1);function _0x1f95ae(){_0x116071['length']&&_0x116071['remove'](0x0),_0x116071[_0x27da('0x14')](_0x58da26);}function _0x9af68b(){_0x39b1c9['isOpen']=!0x1,_0x4dab1f[_0x27da('0x22')][_0x27da('0xe')]['focus']();}return _0x39b1c9[_0x27da('0x19')](_0x27da('0xc'))['to'](_0x5405ab,'isReady',_0x5405ab,_0x27da('0xc'),_0x4dab1f,_0x27da('0x24'),(_0x4ff2da,_0x5dd974,_0x3d2f91)=>_0x4ff2da&&_0x5dd974&&!_0x3d2f91),_0x39b1c9[_0x27da('0x11')][_0x27da('0x5')]({'icon':_0x2d6242[_0x27da('0x1')],'label':_0x4cf15e(_0x8c6ef1,_0x27da('0x1b')),'tooltip':!0x0}),_0x497cbc[_0x27da('0x5')]({'label':_0x4cf15e(_0x8c6ef1,'Save\x20current\x20revision'),'withText':!0x0}),_0x497cbc[_0x27da('0x19')](_0x27da('0xc'))['to'](_0x5405ab,_0x27da('0xd'),_0x5405ab,_0x27da('0xc'),_0x4dab1f,_0x27da('0x24'),(_0x2111c6,_0x3bb366,_0x33f27b)=>_0x2111c6&&_0x3bb366&&!_0x33f27b),_0x497cbc['on'](_0x27da('0x16'),()=>function(){_0x116071[_0x27da('0x17')]&&_0x116071[_0x27da('0x1f')](0x0),(_0x403a92[_0x27da('0x4')](),_0x116071[_0x27da('0x14')](_0x403a92),_0x403a92[_0x27da('0xf')]());}()),_0x275f04[_0x27da('0x5')]({'label':_0x4cf15e(_0x8c6ef1,_0x27da('0x1d')),'withText':!0x0}),_0x275f04[_0x27da('0x19')](_0x27da('0xc'))['to'](_0x5405ab,_0x27da('0xd'),_0x4dab1f,_0x27da('0x24'),(_0x58bfc2,_0x19455d)=>_0x58bfc2&&!_0x19455d),_0x275f04['on'](_0x27da('0x16'),()=>{_0x4dab1f['config'][_0x27da('0x1a')](_0x27da('0x21'))[_0x27da('0x23')](),_0x9af68b();}),_0x510708[_0x27da('0x3')]['add'](_0x497cbc),_0x3afe2a[_0x27da('0x3')][_0x27da('0x14')](_0x275f04),_0x58da26[_0x27da('0x0')]['addMany']([_0x510708,_0x3afe2a]),_0x39b1c9['on'](_0x27da('0x8'),()=>_0x1f95ae()),_0x403a92[_0x27da('0x9')]['bind'](_0x27da('0xc'))['to'](_0x5405ab,_0x27da('0xd'),_0x5405ab,'isEnabled',_0x4dab1f,_0x27da('0x24'),(_0x39819d,_0xb32288,_0x1a72c6)=>_0x39819d&&_0xb32288&&!_0x1a72c6),_0x403a92['on'](_0x27da('0x13'),()=>(_0x4dab1f['plugins'][_0x27da('0x1a')](_0x385458)[_0x27da('0x20')]({'name':_0x403a92[_0x27da('0x18')]}),void _0x9af68b())),_0x403a92['on'](_0x27da('0x6'),()=>_0x1f95ae()),_0x403a92[_0x27da('0xb')](),_0x1f95ae(),_0x39b1c9;});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3f31=['_handleRevisionSelected','availableRevisionActions','isSelected','bind','action','config','isReady','_handleDiffChange','element','_handleEditorDataReady','init','pluginName','diff','revisionViews','Restore\x20this\x20revision','listenTo','_createRevisionActions','revisionHistory.revisionActions','length','_handleRevisionSetName','Name\x20this\x20revision','_sidebarView','setName','focus','repository','timePeriodViews','getEarlierVisibleRevision','data','restoreRevision','render','appendChild','plugins','restoreRevisionCallback','highlightRevisions','map','defaultRevisionActions','_revisionsRepository','revisionSelected','string','assign','isVisible','editor','compare','selectRevision','name','destroy','getIndex','isEnabled','getLaterVisibleRevision','get','getRevisionsInDiff','requires','locale','compareAgainstSelected','_revisionViewer','revisionHistory','getRevision','add'];(function(_0x3bced2,_0x3f31d4){const _0xe13d72=function(_0x52b124){while(--_0x52b124){_0x3bced2['push'](_0x3bced2['shift']());}};_0xe13d72(++_0x3f31d4);}(_0x3f31,0x15f));const _0xe13d=function(_0x3bced2,_0x3f31d4){_0x3bced2=_0x3bced2-0x0;let _0xe13d72=_0x3f31[_0x3bced2];return _0xe13d72;};import{Plugin as _0x32f5cc}from'ckeditor5/src/core';import _0xc482ad from'./revisionssidebarview';import _0x5a7343 from'../../revisionviewer';export default class w extends _0x32f5cc{static get[_0xe13d('0x8')](){return'RevisionsSidebar';}static get[_0xe13d('0x30')](){return[_0x5a7343];}constructor(_0x25dcf3){super(_0x25dcf3),this['_revisionViewer']=_0x25dcf3[_0xe13d('0x1c')][_0xe13d('0x2e')](_0x5a7343),this[_0xe13d('0x21')]=this['_revisionViewer'][_0xe13d('0x15')],this[_0xe13d('0x12')]=null;}[_0xe13d('0x7')](){const _0x3420c1=this[_0xe13d('0x21')]['_revisions'],_0x2b31eb=this[_0xe13d('0xd')](),_0x26dfc8=this[_0xe13d('0x26')][_0xe13d('0x2')][_0xe13d('0x2e')]('revisionHistory.viewerSidebarContainer');this[_0xe13d('0x12')]=new _0xc482ad(this['editor'][_0xe13d('0x31')],_0x3420c1,_0x2b31eb),this['_sidebarView']['on'](_0xe13d('0x22'),this[_0xe13d('0x37')][_0xe13d('0x0')](this)),this[_0xe13d('0x12')]['on']('revisionSetName',this['_handleRevisionSetName'][_0xe13d('0x0')](this)),this[_0xe13d('0x12')][_0xe13d('0x0')]('isEnabled')['to'](this['_revisionViewer']),this[_0xe13d('0x12')][_0xe13d('0x16')]['on'](_0xe13d('0x36'),(_0x507c86,_0x55b5fc)=>{_0x55b5fc[_0xe13d('0xa')]['on'](_0xe13d('0x36'),(_0x384237,_0x30ca75)=>{_0x30ca75[_0xe13d('0x0')](_0xe13d('0x2c'),_0xe13d('0x3'))['to'](this['_revisionViewer']);});}),this[_0xe13d('0x12')][_0xe13d('0x1a')](),this['listenTo'](this[_0xe13d('0x26')][_0xe13d('0x18')],'ready',this[_0xe13d('0x6')]['bind'](this)),this[_0xe13d('0xc')](this[_0xe13d('0x33')],'change:diff',this[_0xe13d('0x4')][_0xe13d('0x0')](this)),_0x26dfc8[_0xe13d('0x1b')](this[_0xe13d('0x12')][_0xe13d('0x5')]);}['destroy'](){this[_0xe13d('0x12')][_0xe13d('0x5')]['remove'](),this[_0xe13d('0x12')][_0xe13d('0x2a')]();}['_handleEditorDataReady'](){const _0x468f13=this[_0xe13d('0x21')][_0xe13d('0x35')](0x0);if(_0x468f13){const _0x61588d=this[_0xe13d('0x21')][_0xe13d('0x17')](_0x468f13['id']);this[_0xe13d('0x33')][_0xe13d('0x27')](_0x468f13,_0x61588d);}}[_0xe13d('0x37')](_0x2e5737,_0x49cbca){const _0x1364e4=this[_0xe13d('0x21')][_0xe13d('0x35')](_0x49cbca['id']),_0x7de7b5=this['_revisionsRepository'][_0xe13d('0x17')](_0x1364e4['id']);this['_revisionViewer'][_0xe13d('0x27')](_0x1364e4,_0x7de7b5);}[_0xe13d('0x10')](_0x16ccf1,_0x474f86){this[_0xe13d('0x21')]['getRevision'](_0x474f86['id'])[_0xe13d('0x13')](_0x474f86[_0xe13d('0x29')]);}['_handleDiffChange'](_0x17fb6e,_0x4d9dce,_0x3950a1){const _0x7acfcf=this['_revisionsRepository'][_0xe13d('0x2f')](_0x3950a1);_0x7acfcf[_0xe13d('0xf')]>0x2?(this['_sidebarView'][_0xe13d('0x1e')](_0x7acfcf),this[_0xe13d('0x12')][_0xe13d('0x28')](null)):(this['_sidebarView'][_0xe13d('0x1e')]([]),this['_sidebarView'][_0xe13d('0x28')](_0x7acfcf[0x0]));}[_0xe13d('0xd')](){const _0x30e7e6=this[_0xe13d('0x26')],_0x345ca9=w[_0xe13d('0x38')],_0x4a696b=_0x30e7e6[_0xe13d('0x2')][_0xe13d('0x2e')](_0xe13d('0xe'))||w[_0xe13d('0x20')];if(_0x4a696b[_0xe13d('0xf')])return _0x4a696b[_0xe13d('0x1f')](_0x43fb96=>{const _0xa31fce=_0xe13d('0x23')==typeof _0x43fb96?Object[_0xe13d('0x24')]({},_0x345ca9[_0x43fb96]):_0x43fb96;return _0xa31fce['action']=_0xa31fce[_0xe13d('0x1')]['bind'](this,_0x30e7e6),_0xa31fce[_0xe13d('0x25')]&&(_0xa31fce['isVisible']=_0xa31fce[_0xe13d('0x25')]['bind'](this,_0x30e7e6)),_0xa31fce;});}}w['availableRevisionActions']={'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x2045b6},_0x8edafd)=>{const _0x28c249=_0x2045b6[_0xe13d('0x2e')](_0x5a7343),_0x590762=_0x28c249[_0xe13d('0x15')];let _0x4839bc=_0x28c249[_0xe13d('0x9')]['newRevisionId'],_0xd8647d=_0x8edafd['id'];_0x590762[_0xe13d('0x2b')](_0x4839bc)>_0x590762[_0xe13d('0x2b')](_0xd8647d)&&([_0x4839bc,_0xd8647d]=[_0xd8647d,_0x4839bc]),_0x28c249[_0xe13d('0x27')](_0x4839bc,_0xd8647d);},'isVisible':({plugins:_0x52efe4},_0x36a4dd)=>{const _0x684c00=_0x52efe4[_0xe13d('0x2e')](_0x5a7343);return!(_0x684c00[_0xe13d('0x15')][_0xe13d('0x2f')](_0x684c00['diff'])[_0xe13d('0xf')]>0x2)&&!_0x36a4dd[_0xe13d('0x39')];}},'restoreRevision':{'name':_0xe13d('0xb'),'action':(_0xb3240e,{id:_0x1627f4})=>{_0xb3240e[_0xe13d('0x2')]['get'](_0xe13d('0x34'))[_0xe13d('0x1d')](_0x1627f4);},'isVisible':({plugins:_0x51dc9c},_0x4389f3)=>!!_0x51dc9c[_0xe13d('0x2e')](_0x5a7343)[_0xe13d('0x15')][_0xe13d('0x2d')](_0x4389f3['id'])},'nameRevision':{'name':_0xe13d('0x11'),'action':({plugins:_0x51a204},{id:_0xa0e31a,revisionNameView:_0x2f2843})=>{const _0x518c09=_0x51a204[_0xe13d('0x2e')](_0x5a7343),_0x145b2c=_0x518c09[_0xe13d('0x15')][_0xe13d('0x17')](_0xa0e31a);_0x518c09[_0xe13d('0x27')](_0xa0e31a,_0x145b2c),_0x2f2843[_0xe13d('0x14')](),_0x2f2843['fieldView']['select']();}}},w['defaultRevisionActions']=[_0xe13d('0x32'),_0xe13d('0x19'),'nameRevision'];
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2955=['div','span','Revision\x20history','ck-revision-history-sidebar__header__label','content','history'];(function(_0x4ea175,_0x2955df){const _0xe56805=function(_0x481409){while(--_0x481409){_0x4ea175['push'](_0x4ea175['shift']());}};_0xe56805(++_0x2955df);}(_0x2955,0x78));const _0xe568=function(_0x4ea175,_0x2955df){_0x4ea175=_0x4ea175-0x0;let _0xe56805=_0x2955[_0x4ea175];return _0xe56805;};import{View as _0x5447e0,IconView as _0x45f4a7}from'ckeditor5/src/ui';import{getTranslation as _0xefaf2a}from'../../utils/common-translations';import{icons as _0x4d622c}from'ckeditor5/src/core';import'../../../theme/revisionssidebar/revisionssidebarheader.css';export default class rr extends _0x5447e0{constructor(_0x55b2f1){super(_0x55b2f1);const _0x1adbac=new _0x45f4a7();_0x1adbac[_0xe568('0x4')]=_0x4d622c[_0xe568('0x5')],this['setTemplate']({'tag':_0xe568('0x0'),'attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x1adbac,{'tag':_0xe568('0x1'),'attributes':{'class':['ck',_0xe568('0x3')]},'children':[_0xefaf2a(_0x55b2f1,_0xe568('0x2'))]}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x17aa=['span','_revisionActions','createCollection','addRevision','ck-revision-history-sidebar__time-period__label','localizedPeriodName','revisionViews','div','add','delegate','startDate','remove','find','removeRevision','setName','ck-revision-history-sidebar__time-period__revisions','ck-revision-history-sidebar__time-period','locale'];(function(_0x4871c3,_0x17aa52){const _0x405180=function(_0x94f883){while(--_0x94f883){_0x4871c3['push'](_0x4871c3['shift']());}};_0x405180(++_0x17aa52);}(_0x17aa,0x194));const _0x4051=function(_0x4871c3,_0x17aa52){_0x4871c3=_0x4871c3-0x0;let _0x405180=_0x17aa[_0x4871c3];return _0x405180;};import{View as _0x1e30f4}from'ckeditor5/src/ui';import _0x554e10 from'../revision/revisionview';import{getDateTimePeriodInfo as _0x370281}from'./utils';import'../../../theme/revisionssidebar/revisionssidebartimeperiod.css';export default class pi extends _0x1e30f4{constructor(_0x5ceae1,_0x54f66a,_0x168019){super(_0x5ceae1);const _0x345217=_0x370281(_0x54f66a,this[_0x4051('0x9')]['uiLanguage'])[_0x4051('0xf')];this[_0x4051('0x2')]=_0x54f66a,this[_0x4051('0x10')]=this[_0x4051('0xc')](),this[_0x4051('0xb')]=_0x168019,this['revisionViews'][_0x4051('0x1')]('select')['to'](this),this[_0x4051('0x10')][_0x4051('0x1')](_0x4051('0x6'))['to'](this),this['setTemplate']({'tag':_0x4051('0x11'),'attributes':{'class':['ck',_0x4051('0x8')]},'children':[{'tag':_0x4051('0xa'),'attributes':{'class':['ck',_0x4051('0xe')]},'children':[{'text':_0x345217}]},{'tag':'div','attributes':{'class':['ck',_0x4051('0x7')]},'children':this[_0x4051('0x10')]}]});}[_0x4051('0xd')](_0x23672b){const _0x774fe7=new _0x554e10(this[_0x4051('0x9')],_0x23672b,this[_0x4051('0xb')]);this[_0x4051('0x10')][_0x4051('0x0')](_0x774fe7);}[_0x4051('0x5')](_0x410289){const _0x2fb652=this[_0x4051('0x10')][_0x4051('0x4')](_0x2b8fa1=>_0x2b8fa1['id']===_0x410289['id']);this[_0x4051('0x10')][_0x4051('0x3')](_0x2fb652);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2f61=['_getTimePeriodViewByStartDate','select','removeRevision','_revisions','remove','add','timePeriodViews','ck-rounded-corners','set','getTime','ck-disabled','map','_removeRevision','unhighlight','ck-revision-history-sidebar__timeline','bindTemplate','highlightRevisions','fire','selectRevision','revisionViews','setName','startDate','flat','div','uiLanguage','some','locale','ck-reset','render','isEnabled','_revisionActions','_addRevision','createCollection','setTemplate','createdAt','delegate','addRevision','get'];(function(_0x4b2d6e,_0x2f6175){const _0x443ec7=function(_0x2131de){while(--_0x2131de){_0x4b2d6e['push'](_0x4b2d6e['shift']());}};_0x443ec7(++_0x2f6175);}(_0x2f61,0x1a0));const _0x443e=function(_0x4b2d6e,_0x2f6175){_0x4b2d6e=_0x4b2d6e-0x0;let _0x443ec7=_0x2f61[_0x4b2d6e];return _0x443ec7;};import{View as _0x4b015a}from'ckeditor5/src/ui';import _0x5c1a8c from'./revisionssidebartimeperiodview';import _0x4885d5 from'./revisionssidebarheaderview';import{getDateTimePeriodInfo as _0x2ff084}from'./utils';import'../../../theme/revisionssidebar/revisionssidebar.css';export default class vi extends _0x4b015a{constructor(_0x1d7218,_0x2c33c1,_0x1eebd2){super(_0x1d7218);const _0x52ec12=this[_0x443e('0x11')];this[_0x443e('0x8')]=this[_0x443e('0x22')](),this[_0x443e('0x8')][_0x443e('0x25')](_0x443e('0x3'))['to'](this),this[_0x443e('0x8')][_0x443e('0x25')](_0x443e('0x16'))['to'](this),this[_0x443e('0x5')]=_0x2c33c1,this[_0x443e('0x20')]=_0x1eebd2,this['on'](_0x443e('0x3'),(_0x275aa2,_0x218500)=>{this[_0x443e('0x13')]('revisionSelected',_0x218500);}),this['on'](_0x443e('0x16'),(_0x4cc6c1,_0x30248d)=>{this[_0x443e('0x13')]('revisionSetName',_0x30248d);}),this[_0x443e('0xa')](_0x443e('0x1f'),!0x1),this[_0x443e('0x23')]({'tag':_0x443e('0x19'),'attributes':{'class':['ck',_0x443e('0x1d'),_0x443e('0x9'),'ck-revision-history-sidebar']},'children':[new _0x4885d5(_0x1d7218),{'tag':'div','attributes':{'class':['ck',_0x443e('0x10'),_0x52ec12['if'](_0x443e('0x1f'),_0x443e('0xc'),_0x59fa74=>!_0x59fa74)]},'children':this[_0x443e('0x8')]}]});}[_0x443e('0x1e')](){super[_0x443e('0x1e')]();for(const _0x4e26d8 of this['_revisions'])this['_addRevision'](_0x4e26d8);this['_revisions']['on']('add',(_0x54b8d2,_0x5904a7)=>{this[_0x443e('0x21')](_0x5904a7);}),this['_revisions']['on'](_0x443e('0x6'),(_0x11ec13,_0x345528)=>{this[_0x443e('0xe')](_0x345528);});}get[_0x443e('0x15')](){return this[_0x443e('0x8')]['map'](_0x97447e=>_0x97447e['revisionViews'][_0x443e('0xd')](_0x2037d1=>_0x2037d1))[_0x443e('0x18')]();}[_0x443e('0x14')](_0x3645eb){for(const _0x198bd6 of this[_0x443e('0x15')])_0x3645eb&&_0x3645eb['id']===_0x198bd6['id']?_0x198bd6[_0x443e('0x3')]():_0x198bd6['deselect']();}[_0x443e('0x12')](_0x2e5e5a){for(const _0x2804c0 of this[_0x443e('0x15')])_0x2e5e5a[_0x443e('0x1b')](({id:_0x2e36cc})=>_0x2e36cc===_0x2804c0['id'])?_0x2804c0['highlight']():_0x2804c0[_0x443e('0xf')]();}[_0x443e('0x21')](_0x4efa0a){const _0x1816df=_0x2ff084(_0x4efa0a[_0x443e('0x24')],this[_0x443e('0x1c')][_0x443e('0x1a')])[_0x443e('0x17')];let _0x266ac2=this['timePeriodViews'][_0x443e('0x1')](0x0);_0x266ac2&&_0x266ac2['startDate']['getTime']()===_0x1816df[_0x443e('0xb')]()||(_0x266ac2=new _0x5c1a8c(this['locale'],_0x1816df,this[_0x443e('0x20')]),this['timePeriodViews'][_0x443e('0x7')](_0x266ac2)),_0x266ac2[_0x443e('0x0')](_0x4efa0a);}[_0x443e('0xe')](_0x11d5c8){const _0x1d650f=_0x2ff084(_0x11d5c8[_0x443e('0x24')],this[_0x443e('0x1c')][_0x443e('0x1a')])[_0x443e('0x17')];this[_0x443e('0x2')](_0x1d650f)[_0x443e('0x4')](_0x11d5c8);}[_0x443e('0x2')](_0xb3114a){return this[_0x443e('0x8')]['find'](_0x3895c0=>_0x3895c0[_0x443e('0x17')]['getTime']()===_0xb3114a[_0x443e('0xb')]());}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2c07=['monthLong','year','toJSDate','local','hasSame','startOf','week','toRelativeCalendar','day'];(function(_0x5adfcd,_0x2c0770){const _0x15ac2b=function(_0x381712){while(--_0x381712){_0x5adfcd['push'](_0x5adfcd['shift']());}};_0x15ac2b(++_0x2c0770);}(_0x2c07,0x1e2));const _0x15ac=function(_0x5adfcd,_0x2c0770){_0x5adfcd=_0x5adfcd-0x0;let _0x15ac2b=_0x2c07[_0x5adfcd];return _0x15ac2b;};import{DateTime as _0x232761}from'luxon';export function getDateTimePeriodInfo(_0x3e9bd5,_0x1963d0){const _0x15d30b=_0x232761['fromJSDate'](_0x3e9bd5)['setLocale'](_0x1963d0),_0x305111=_0x232761[_0x15ac('0x7')](),_0x20d877=_0x305111['minus']({'days':0x1})[_0x15ac('0x0')](_0x15ac('0x3'));let _0x292577,_0x4de2cc;return _0x15d30b[_0x15ac('0x8')](_0x305111,_0x15ac('0x3'))?(_0x292577=_0x15d30b[_0x15ac('0x0')]('day')[_0x15ac('0x6')](),_0x4de2cc=_0x15d30b[_0x15ac('0x2')]()):_0x15d30b[_0x15ac('0x8')](_0x20d877,_0x15ac('0x3'))?(_0x292577=_0x20d877[_0x15ac('0x6')](),_0x4de2cc=_0x15d30b[_0x15ac('0x2')]()):_0x15d30b[_0x15ac('0x8')](_0x305111,'week')?(_0x292577=_0x15d30b[_0x15ac('0x0')](_0x15ac('0x1'))[_0x15ac('0x6')](),_0x4de2cc=_0x15d30b['weekdayLong']||''):_0x15d30b['hasSame'](_0x305111,_0x15ac('0x5'))?(_0x292577=_0x15d30b[_0x15ac('0x0')]('month')[_0x15ac('0x6')](),_0x4de2cc=_0x15d30b[_0x15ac('0x4')]||''):(_0x292577=_0x15d30b[_0x15ac('0x0')](_0x15ac('0x5'))[_0x15ac('0x6')](),_0x4de2cc=String(_0x15d30b[_0x15ac('0x5')])),{'startDate':_0x292577,'localizedPeriodName':_0x4de2cc};}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2c58=['changeId','set','Added\x20by','isSuggestion','ck-revision-change__label','add','element','data','type','author','ck-revision-change__','span','ck-annotation','Suggested\x20by','focus','_model'];(function(_0x44c1cc,_0x2c58c5){const _0x958ef4=function(_0x581e77){while(--_0x581e77){_0x44c1cc['push'](_0x44c1cc['shift']());}};_0x958ef4(++_0x2c58c5);}(_0x2c58,0x76));const _0x958e=function(_0x44c1cc,_0x2c58c5){_0x44c1cc=_0x44c1cc-0x0;let _0x958ef4=_0x2c58[_0x44c1cc];return _0x958ef4;};import{View as _0x5d0c6a}from'ckeditor5/src/ui';import{getTranslation as _0x34bd88}from'../../utils/common-translations';export default class Z extends _0x5d0c6a{constructor(_0x1b6b05,_0x368b8e){super(_0x1b6b05),this[_0x958e('0x9')]=_0x368b8e,this[_0x958e('0xa')]=_0x368b8e['id'];const _0x223a38=this['bindTemplate'],_0x1503e7=_0x34bd88(_0x1b6b05,_0x368b8e[_0x958e('0x1')][_0x958e('0xd')]?_0x958e('0x7'):_0x958e('0xf')==_0x368b8e[_0x958e('0x2')]?_0x958e('0xc'):'Removed\x20by');this[_0x958e('0xb')]('type',_0x368b8e[_0x958e('0x2')]),this['setTemplate']({'tag':'div','attributes':{'class':[_0x958e('0x6'),'ck-revision-change',_0x223a38['to'](_0x958e('0x2'),_0x25f500=>_0x958e('0x4')+_0x25f500)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':_0x958e('0x5'),'attributes':{'class':[_0x958e('0xe')]},'children':[{'text':_0x1503e7}]},{'text':'\x20'+_0x368b8e[_0x958e('0x3')]['name']}]}]});}[_0x958e('0x8')](){this[_0x958e('0x0')][_0x958e('0x8')]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1cee=['isEnabled','EDIT_X_OF_Y_REVISIONS','No\x20changes','forward','ck-revision-history-ui__changes-navigation__label','Show\x20next\x20change','isBackwardNavigationEnabled','isReady','isNavigationMode','ck-revision-history-ui__changes-navigation','span','bind','execute','Loading...','isForwardNavigationEnabled','_isStatusLabelVisible','currentChangeNumber','fire','ck-hidden','div','set','ck-revision-history-ui__changes-navigation__wrapper','X_OF_Y_CHANGES','setTemplate','numberOfChanges','ck-revision-history-ui__changes-navigation__navigation','_statusText','bindTemplate','Show\x20previous\x20change','NUMBER_OF_CHANGES'];(function(_0x476ee1,_0x1cee5c){const _0x56d042=function(_0x985475){while(--_0x985475){_0x476ee1['push'](_0x476ee1['shift']());}};_0x56d042(++_0x1cee5c);}(_0x1cee,0x190));const _0x56d0=function(_0x476ee1,_0x1cee5c){_0x476ee1=_0x476ee1-0x0;let _0x56d042=_0x1cee[_0x476ee1];return _0x56d042;};import{View as _0x13bd12,ButtonView as _0xa9e7b1,ToolbarSeparatorView as _0x5a2494}from'ckeditor5/src/ui';import{getTranslation as _0x2cc413}from'../../utils/common-translations';import _0x3960a5 from'../../../theme/icons/arrow-up.svg';import _0x1984b2 from'../../../theme/icons/arrow-down.svg';import'../../../theme/changesnavigation.css';export default class bi extends _0x13bd12{constructor(_0x1c7d71){super(_0x1c7d71);const _0x2fbe36=this[_0x56d0('0x11')],_0x2312fd=new _0xa9e7b1(_0x1c7d71),_0x184563=new _0xa9e7b1(_0x1c7d71);this[_0x56d0('0xa')](_0x56d0('0x1c'),!0x1),this[_0x56d0('0xa')](_0x56d0('0x1b'),!0x1),this['set'](_0x56d0('0x6'),0x0),this[_0x56d0('0xa')](_0x56d0('0xe'),0x0),this[_0x56d0('0xa')](_0x56d0('0x4'),!0x1),this[_0x56d0('0xa')]('isBackwardNavigationEnabled',!0x1),this[_0x56d0('0x1')](_0x56d0('0x5'))['to'](this,'isReady',this,_0x56d0('0xe'),(_0x12cfc6,_0x75f83f)=>_0x12cfc6&&_0x75f83f>0x0),this[_0x56d0('0x1')](_0x56d0('0x10'))['to'](this,_0x56d0('0x1b'),this,_0x56d0('0x6'),this,_0x56d0('0xe'),this,_0x56d0('0x1c'),(_0x42bb35,_0x1923e5,_0x7118e,_0x13e06f)=>{if(!_0x42bb35)return _0x2cc413(_0x1c7d71,_0x56d0('0x3'));if(!_0x7118e)return _0x2cc413(_0x1c7d71,_0x56d0('0x16'));const _0x1bd6c=_0x2cc413(_0x1c7d71,_0x56d0('0x13'),_0x7118e);return _0x13e06f?_0x2cc413(_0x1c7d71,_0x56d0('0xc'),[_0x1923e5+0x1,_0x7118e]):_0x1bd6c;}),_0x2312fd['set']({'label':_0x2cc413(_0x1c7d71,_0x56d0('0x12')),'tooltip':!0x0,'icon':_0x3960a5}),_0x184563[_0x56d0('0xa')]({'label':_0x2cc413(_0x1c7d71,_0x56d0('0x19')),'tooltip':!0x0,'icon':_0x1984b2}),_0x2312fd[_0x56d0('0x1')]('isEnabled')['to'](this,_0x56d0('0x1a')),_0x184563[_0x56d0('0x1')](_0x56d0('0x14'))['to'](this,_0x56d0('0x4')),_0x2312fd['on'](_0x56d0('0x2'),()=>this[_0x56d0('0x7')](_0x56d0('0x2'),'backward')),_0x184563['on'](_0x56d0('0x2'),()=>this[_0x56d0('0x7')]('execute',_0x56d0('0x17'))),this[_0x56d0('0xd')]({'tag':'div','attributes':{'class':['ck','ck-revision-history-ui',_0x56d0('0x1d')]},'children':[{'tag':'span','attributes':{'class':[_0x56d0('0xb')]},'children':[{'tag':_0x56d0('0x0'),'attributes':{'class':[_0x56d0('0x18'),_0x2fbe36['if'](_0x56d0('0x5'),_0x56d0('0x8'),_0x2763f5=>!_0x2763f5)]},'children':[{'text':_0x2fbe36['to']('isNavigationMode',_0xd1f553=>_0xd1f553?_0x2cc413(_0x1c7d71,_0x56d0('0x15'))+':\x20':_0x2cc413(_0x1c7d71,'Total')+':\x20')}]},{'text':_0x2fbe36['to'](_0x56d0('0x10'))}]},new _0x5a2494(),{'tag':_0x56d0('0x9'),'attributes':{'class':[_0x56d0('0xf')]},'children':[_0x2312fd,_0x184563]}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4901=['view','change','document','pluginName','removeClass','roots','editing','editor','RevisionViewerLoadingOverlay','hide'];(function(_0x529d48,_0x490109){const _0x2118bf=function(_0x266ae5){while(--_0x266ae5){_0x529d48['push'](_0x529d48['shift']());}};_0x2118bf(++_0x490109);}(_0x4901,0x1bf));const _0x2118=function(_0x529d48,_0x490109){_0x529d48=_0x529d48-0x0;let _0x2118bf=_0x4901[_0x529d48];return _0x2118bf;};import{Plugin as _0x37eb5e}from'ckeditor5/src/core';const oe='ck-editor__editable__loading-overlay';import'../../../theme/revisionviewerloadingoverlay.css';export default class te extends _0x37eb5e{static get[_0x2118('0x6')](){return _0x2118('0x1');}['show'](){const _0x526d43=this[_0x2118('0x0')][_0x2118('0x9')][_0x2118('0x3')];_0x526d43[_0x2118('0x4')](_0x2ec307=>{for(const _0x164508 of _0x526d43['document'][_0x2118('0x8')])_0x2ec307['addClass'](oe,_0x164508);});}[_0x2118('0x2')](){const _0x12be9f=this[_0x2118('0x0')]['editing'][_0x2118('0x3')];_0x12be9f['change'](_0x8e678b=>{for(const _0x35655d of _0x12be9f[_0x2118('0x5')][_0x2118('0x8')])_0x8e678b[_0x2118('0x7')](oe,_0x35655d);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1da0=['isEnabled','componentFactory','Back\x20to\x20editing','add','bind','ck-revision-history-ui__back-to-editing','numberOfChanges','init','isNavigationMode','requires','hide','change:isReady','execute','showNextChange','get','changesNavigation','restoreRevision','showPreviousChange','currentChangeNumber','RevisionViewerUI','plugins','config','set','isReady','exitToEditing','show','commands','listenTo','revisionHistory','isForwardNavigationEnabled','isBackwardNavigationEnabled'];(function(_0x223600,_0x1da050){const _0x42bfbb=function(_0x16ccd1){while(--_0x16ccd1){_0x223600['push'](_0x223600['shift']());}};_0x42bfbb(++_0x1da050);}(_0x1da0,0xf3));const _0x42bf=function(_0x223600,_0x1da050){_0x223600=_0x223600-0x0;let _0x42bfbb=_0x1da0[_0x223600];return _0x42bfbb;};import{Plugin as _0x59408c}from'ckeditor5/src/core';import{ButtonView as _0xcdcfd8}from'ckeditor5/src/ui';import _0x3c1580 from'./changesnavigationview';import _0x8d3c88 from'./../../revisionviewer';import _0x4de1ac from'./revisionviewerloadingoverlay';import{getTranslation as _0x3fc33b}from'../../utils/common-translations';import _0x454c35 from'@ckeditor/ckeditor5-undo/theme/icons/undo.svg';import'../../../theme/revisionviewer.css';export default class R extends _0x59408c{static get['pluginName'](){return _0x42bf('0x18');}static get[_0x42bf('0xe')](){return[_0x8d3c88,_0x4de1ac];}[_0x42bf('0xc')](){const _0x42f9d0=this['editor'],_0x5529c7=_0x42f9d0[_0x42bf('0x19')][_0x42bf('0x13')](_0x8d3c88),_0x5bd1bd=_0x42f9d0[_0x42bf('0x19')][_0x42bf('0x13')](_0x4de1ac);_0x42f9d0['ui'][_0x42bf('0x6')][_0x42bf('0x8')](_0x42bf('0x1d'),_0x6f3ae4=>{const _0x1f0b12=new _0xcdcfd8(_0x6f3ae4);return _0x1f0b12[_0x42bf('0x1b')]({'label':_0x3fc33b(_0x6f3ae4,_0x42bf('0x7')),'icon':_0x454c35,'withText':!0x0,'tooltip':!0x0,'class':_0x42bf('0xa')}),this[_0x42bf('0x1')](_0x1f0b12,_0x42bf('0x11'),()=>{_0x42f9d0[_0x42bf('0x1a')][_0x42bf('0x13')](_0x42bf('0x2'))['closeRevisionViewerCallback']();}),_0x1f0b12;}),_0x42f9d0['ui'][_0x42bf('0x6')][_0x42bf('0x8')](_0x42bf('0x15'),_0x5517e5=>{const _0x3708b9=new _0xcdcfd8(_0x5517e5);return _0x3708b9['set']({'label':_0x3fc33b(_0x5517e5,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x3708b9['bind']('isEnabled')['to'](_0x42f9d0['commands'][_0x42bf('0x13')]('restoreRevision')),this[_0x42bf('0x1')](_0x3708b9,_0x42bf('0x11'),()=>_0x42f9d0[_0x42bf('0x11')](_0x42bf('0x15'))),_0x3708b9;}),_0x42f9d0['ui'][_0x42bf('0x6')][_0x42bf('0x8')](_0x42bf('0x14'),_0x1758ca=>{const _0x5b66f1=new _0x3c1580(_0x1758ca),_0x3c4152=_0x42f9d0['commands'][_0x42bf('0x13')]('showPreviousChange'),_0xe914aa=_0x42f9d0[_0x42bf('0x0')][_0x42bf('0x13')](_0x42bf('0x12'));return _0x5b66f1[_0x42bf('0x9')](_0x42bf('0x4'))['to'](_0x3c4152,_0x42bf('0x5')),_0x5b66f1[_0x42bf('0x9')](_0x42bf('0x3'))['to'](_0xe914aa,_0x42bf('0x5')),_0x5b66f1[_0x42bf('0x9')](_0x42bf('0x1c'),_0x42bf('0x17'),_0x42bf('0xb'),_0x42bf('0xd'))['to'](_0x5529c7),this[_0x42bf('0x1')](_0x5b66f1,_0x42bf('0x11'),(_0x15d5f9,_0x268adc)=>{_0x42f9d0[_0x42bf('0x11')]('forward'===_0x268adc?_0x42bf('0x12'):_0x42bf('0x16'));}),_0x5b66f1;}),_0x5bd1bd[_0x42bf('0x1e')](),_0x5529c7['on'](_0x42bf('0x10'),(_0x26f75a,_0x663f5e,_0x42fe95)=>{_0x42fe95?_0x5bd1bd[_0x42bf('0xf')]():_0x5bd1bd[_0x42bf('0x1e')]();});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export function getTranslation(
|
|
23
|
+
export function getTranslation(_0x3b90a9,_0x52c0d9,_0x5dea83){const t=_0x3b90a9['t'];switch(_0x52c0d9){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'},_0x5dea83);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x5dea83);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 _0x52c0d9;}}
|