@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20231129.0 → 0.0.0-nightly-20231201.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 _0x22e3=['reset','init','editor','history','execute','set','plugins','add','submit','bind','view','RevisionTracker','editing','length','children','isReadOnly','addMany','isReady','focus','items','requires','isOpen','buttonView','showRevisionViewerCallback','isEnabled','remove','pluginName','revisionName','RevisionHistoryUI','change:isOpen','Open\x20revision\x20history','panelView','Revision\x20history','get','config'];(function(_0x5299fd,_0x22e384){const _0xd3d251=function(_0x80b42c){while(--_0x80b42c){_0x5299fd['push'](_0x5299fd['shift']());}};_0xd3d251(++_0x22e384);}(_0x22e3,0x1bf));const _0xd3d2=function(_0x5299fd,_0x22e384){_0x5299fd=_0x5299fd-0x0;let _0xd3d251=_0x22e3[_0x5299fd];return _0xd3d251;};import{Plugin as _0x425b64,icons as _0x16b6f8}from'ckeditor5/src/core';import{ListView as _0xfb84f2,ListItemView as _0x35c0bd,ButtonView as _0x3034ed,createDropdown as _0x5466a1}from'ckeditor5/src/ui';import _0x2b27a5 from'../../revisiontracker';import _0x4c44d1 from'./revisionhistorysaverevisionformview';import{getTranslation as _0x40bfff}from'../../utils/common-translations';export default class u extends _0x425b64{static get[_0xd3d2('0x22')](){return _0xd3d2('0x1');}static get[_0xd3d2('0x1c')](){return[_0x2b27a5];}[_0xd3d2('0x9')](){const _0xb15245=this[_0xd3d2('0xa')],_0x3f200a=_0xb15245[_0xd3d2('0xe')][_0xd3d2('0x6')](_0xd3d2('0x13'));_0xb15245['ui']['componentFactory'][_0xd3d2('0xf')]('revisionHistory',_0x373a8f=>{const _0x23b5cd=_0x5466a1(_0x373a8f),_0x37127d=_0x23b5cd[_0xd3d2('0x4')][_0xd3d2('0x16')],_0x5a7c3a=new _0xfb84f2(_0x373a8f),_0x3bb0b8=new _0x35c0bd(_0x373a8f),_0x5b7b4e=new _0x3034ed(_0x373a8f),_0x19896c=new _0x35c0bd(_0x373a8f),_0x186f75=new _0x3034ed(_0x373a8f),_0x2cd1d5=new _0x4c44d1(_0x373a8f);function _0xe853aa(){_0x37127d[_0xd3d2('0x15')]&&_0x37127d[_0xd3d2('0x21')](0x0),_0x37127d[_0xd3d2('0xf')](_0x5a7c3a);}function _0x37172f(){_0x23b5cd[_0xd3d2('0x1d')]=!0x1,_0xb15245[_0xd3d2('0x14')][_0xd3d2('0x12')][_0xd3d2('0x1a')]();}return _0x23b5cd[_0xd3d2('0x11')]('isEnabled')['to'](_0x3f200a,_0xd3d2('0x19'),_0x3f200a,'isEnabled',_0xb15245,_0xd3d2('0x17'),(_0x4266d1,_0x20b821,_0x401f5b)=>_0x4266d1&&_0x20b821&&!_0x401f5b),_0x23b5cd[_0xd3d2('0x1e')][_0xd3d2('0xd')]({'icon':_0x16b6f8[_0xd3d2('0xb')],'label':_0x40bfff(_0x373a8f,_0xd3d2('0x5')),'tooltip':!0x0}),_0x5b7b4e['set']({'label':_0x40bfff(_0x373a8f,'Save\x20current\x20revision'),'withText':!0x0}),_0x5b7b4e[_0xd3d2('0x11')](_0xd3d2('0x20'))['to'](_0x3f200a,_0xd3d2('0x19'),_0x3f200a,_0xd3d2('0x20'),_0xb15245,_0xd3d2('0x17'),(_0x2254df,_0x4de47f,_0x1da88f)=>_0x2254df&&_0x4de47f&&!_0x1da88f),_0x5b7b4e['on'](_0xd3d2('0xc'),()=>function(){_0x37127d['length']&&_0x37127d[_0xd3d2('0x21')](0x0),(_0x2cd1d5[_0xd3d2('0x8')](),_0x37127d[_0xd3d2('0xf')](_0x2cd1d5),_0x2cd1d5[_0xd3d2('0x1a')]());}()),_0x186f75['set']({'label':_0x40bfff(_0x373a8f,_0xd3d2('0x3')),'withText':!0x0}),_0x186f75[_0xd3d2('0x11')](_0xd3d2('0x20'))['to'](_0x3f200a,_0xd3d2('0x19'),_0xb15245,_0xd3d2('0x17'),(_0x49468e,_0x5b994b)=>_0x49468e&&!_0x5b994b),_0x186f75['on']('execute',()=>{_0xb15245[_0xd3d2('0x7')][_0xd3d2('0x6')]('revisionHistory')[_0xd3d2('0x1f')](),_0x37172f();}),_0x3bb0b8[_0xd3d2('0x16')]['add'](_0x5b7b4e),_0x19896c[_0xd3d2('0x16')][_0xd3d2('0xf')](_0x186f75),_0x5a7c3a[_0xd3d2('0x1b')][_0xd3d2('0x18')]([_0x3bb0b8,_0x19896c]),_0x23b5cd['on'](_0xd3d2('0x2'),()=>_0xe853aa()),_0x2cd1d5['saveButtonView']['bind'](_0xd3d2('0x20'))['to'](_0x3f200a,_0xd3d2('0x19'),_0x3f200a,_0xd3d2('0x20'),_0xb15245,_0xd3d2('0x17'),(_0x486f07,_0x391422,_0x394275)=>_0x486f07&&_0x391422&&!_0x394275),_0x2cd1d5['on'](_0xd3d2('0x10'),()=>(_0xb15245['plugins'][_0xd3d2('0x6')](_0x2b27a5)['saveRevision']({'name':_0x2cd1d5[_0xd3d2('0x0')]}),void _0x37172f())),_0x2cd1d5['on']('cancel',()=>_0xe853aa()),_0x2cd1d5['render'](),_0xe853aa(),_0x23b5cd;});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4abf=['getEarlierVisibleRevision','Restore\x20this\x20revision','bind','setName','_handleRevisionSelected','length','_handleEditorDataReady','data','isReady','highlightRevisions','fieldView','remove','diff','add','_handleRevisionSetName','pluginName','getRevisionsInDiff','focus','requires','element','config','_revisionsRepository','_revisionViewer','revisionHistory','_revisions','selectRevision','compare','action','revisionSelected','change:diff','assign','revisionViews','defaultRevisionActions','init','isVisible','editor','select','map','isEnabled','revisionSetName','restoreRevisionCallback','getLaterVisibleRevision','_createRevisionActions','nameRevision','appendChild','listenTo','render','RevisionsSidebar','destroy','name','availableRevisionActions','compareAgainstSelected','_sidebarView','timePeriodViews','get','_handleDiffChange','plugins','repository','revisionHistory.viewerSidebarContainer','Name\x20this\x20revision'];(function(_0x40a436,_0x4abf50){const _0x42ccd5=function(_0x434b60){while(--_0x434b60){_0x40a436['push'](_0x40a436['shift']());}};_0x42ccd5(++_0x4abf50);}(_0x4abf,0x173));const _0x42cc=function(_0x40a436,_0x4abf50){_0x40a436=_0x40a436-0x0;let _0x42ccd5=_0x4abf[_0x40a436];return _0x42ccd5;};import{Plugin as _0x2a389c}from'ckeditor5/src/core';import _0x3ea2a1 from'./revisionssidebarview';import _0x350e9d from'../../revisionviewer';export default class w extends _0x2a389c{static get[_0x42cc('0x4')](){return _0x42cc('0x24');}static get[_0x42cc('0x7')](){return[_0x350e9d];}constructor(_0x66367){super(_0x66367),this['_revisionViewer']=_0x66367[_0x42cc('0x2d')][_0x42cc('0x2b')](_0x350e9d),this['_revisionsRepository']=this['_revisionViewer']['repository'],this[_0x42cc('0x29')]=null;}[_0x42cc('0x16')](){const _0x21d865=this[_0x42cc('0xa')][_0x42cc('0xd')],_0x34834d=this['_createRevisionActions'](),_0xf92357=this[_0x42cc('0x18')][_0x42cc('0x9')][_0x42cc('0x2b')](_0x42cc('0x2f'));this[_0x42cc('0x29')]=new _0x3ea2a1(this['editor']['locale'],_0x21d865,_0x34834d),this[_0x42cc('0x29')]['on'](_0x42cc('0x11'),this[_0x42cc('0x35')]['bind'](this)),this['_sidebarView']['on'](_0x42cc('0x1c'),this[_0x42cc('0x3')][_0x42cc('0x33')](this)),this[_0x42cc('0x29')][_0x42cc('0x33')](_0x42cc('0x1b'))['to'](this['_revisionViewer']),this['_sidebarView'][_0x42cc('0x2a')]['on'](_0x42cc('0x2'),(_0x898e1f,_0x3b788a)=>{_0x3b788a[_0x42cc('0x14')]['on']('add',(_0x1822dd,_0x167ba8)=>{_0x167ba8['bind'](_0x42cc('0x1b'),_0x42cc('0x39'))['to'](this[_0x42cc('0xb')]);});}),this[_0x42cc('0x29')][_0x42cc('0x23')](),this[_0x42cc('0x22')](this[_0x42cc('0x18')][_0x42cc('0x38')],'ready',this[_0x42cc('0x37')][_0x42cc('0x33')](this)),this[_0x42cc('0x22')](this[_0x42cc('0xb')],_0x42cc('0x12'),this['_handleDiffChange'][_0x42cc('0x33')](this)),_0xf92357[_0x42cc('0x21')](this['_sidebarView']['element']);}[_0x42cc('0x25')](){this[_0x42cc('0x29')][_0x42cc('0x8')][_0x42cc('0x0')](),this[_0x42cc('0x29')]['destroy']();}[_0x42cc('0x37')](){const _0x660e1d=this[_0x42cc('0xa')]['getRevision'](0x0);if(_0x660e1d){const _0x337c50=this[_0x42cc('0xa')][_0x42cc('0x31')](_0x660e1d['id']);this[_0x42cc('0xb')][_0x42cc('0xf')](_0x660e1d,_0x337c50);}}['_handleRevisionSelected'](_0x3c5905,_0x30716f){const _0x1402d3=this['_revisionsRepository']['getRevision'](_0x30716f['id']),_0xfe3deb=this[_0x42cc('0xa')][_0x42cc('0x31')](_0x1402d3['id']);this[_0x42cc('0xb')]['compare'](_0x1402d3,_0xfe3deb);}['_handleRevisionSetName'](_0x398251,_0x175856){this[_0x42cc('0xa')]['getRevision'](_0x175856['id'])[_0x42cc('0x34')](_0x175856[_0x42cc('0x26')]);}[_0x42cc('0x2c')](_0x29d62f,_0x372ae9,_0x1fef44){const _0x44a9c9=this['_revisionsRepository'][_0x42cc('0x5')](_0x1fef44);_0x44a9c9['length']>0x2?(this['_sidebarView'][_0x42cc('0x3a')](_0x44a9c9),this['_sidebarView'][_0x42cc('0xe')](null)):(this['_sidebarView'][_0x42cc('0x3a')]([]),this[_0x42cc('0x29')][_0x42cc('0xe')](_0x44a9c9[0x0]));}[_0x42cc('0x1f')](){const _0x59aca9=this['editor'],_0x3ceb87=w[_0x42cc('0x27')],_0x1d8aae=_0x59aca9['config'][_0x42cc('0x2b')]('revisionHistory.revisionActions')||w[_0x42cc('0x15')];if(_0x1d8aae['length'])return _0x1d8aae[_0x42cc('0x1a')](_0x2a53c5=>{const _0x9c9cb6='string'==typeof _0x2a53c5?Object[_0x42cc('0x13')]({},_0x3ceb87[_0x2a53c5]):_0x2a53c5;return _0x9c9cb6[_0x42cc('0x10')]=_0x9c9cb6['action'][_0x42cc('0x33')](this,_0x59aca9),_0x9c9cb6[_0x42cc('0x17')]&&(_0x9c9cb6[_0x42cc('0x17')]=_0x9c9cb6[_0x42cc('0x17')][_0x42cc('0x33')](this,_0x59aca9)),_0x9c9cb6;});}}w[_0x42cc('0x27')]={'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x5ae12c},_0x22e203)=>{const _0x89d646=_0x5ae12c[_0x42cc('0x2b')](_0x350e9d),_0x85c8e0=_0x89d646[_0x42cc('0x2e')];let _0x352d14=_0x89d646[_0x42cc('0x1')]['newRevisionId'],_0x22ecc4=_0x22e203['id'];_0x85c8e0['getIndex'](_0x352d14)>_0x85c8e0['getIndex'](_0x22ecc4)&&([_0x352d14,_0x22ecc4]=[_0x22ecc4,_0x352d14]),_0x89d646[_0x42cc('0xf')](_0x352d14,_0x22ecc4);},'isVisible':({plugins:_0x24e81f},_0x38957f)=>{const _0x228dd7=_0x24e81f[_0x42cc('0x2b')](_0x350e9d);return!(_0x228dd7[_0x42cc('0x2e')]['getRevisionsInDiff'](_0x228dd7[_0x42cc('0x1')])[_0x42cc('0x36')]>0x2)&&!_0x38957f['isSelected'];}},'restoreRevision':{'name':_0x42cc('0x32'),'action':(_0x10623c,{id:_0x4341f3})=>{_0x10623c[_0x42cc('0x9')][_0x42cc('0x2b')](_0x42cc('0xc'))[_0x42cc('0x1d')](_0x4341f3);},'isVisible':({plugins:_0x5418c0},_0x311f12)=>!!_0x5418c0['get'](_0x350e9d)[_0x42cc('0x2e')][_0x42cc('0x1e')](_0x311f12['id'])},'nameRevision':{'name':_0x42cc('0x30'),'action':({plugins:_0x45d5a6},{id:_0x39583f,revisionNameView:_0x5beef9})=>{const _0x3e44ee=_0x45d5a6['get'](_0x350e9d),_0x3be20b=_0x3e44ee[_0x42cc('0x2e')][_0x42cc('0x31')](_0x39583f);_0x3e44ee['compare'](_0x39583f,_0x3be20b),_0x5beef9[_0x42cc('0x6')](),_0x5beef9[_0x42cc('0x3b')][_0x42cc('0x19')]();}}},w[_0x42cc('0x15')]=[_0x42cc('0x28'),'restoreRevision',_0x42cc('0x20')];
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5862=['div','Revision\x20history','history','setTemplate','ck-revision-history-sidebar__header','content','ck-reset_all','span','ck-revision-history-sidebar__header__label'];(function(_0x339bf7,_0x586211){const _0x38e5b3=function(_0x53def3){while(--_0x53def3){_0x339bf7['push'](_0x339bf7['shift']());}};_0x38e5b3(++_0x586211);}(_0x5862,0x13c));const _0x38e5=function(_0x339bf7,_0x586211){_0x339bf7=_0x339bf7-0x0;let _0x38e5b3=_0x5862[_0x339bf7];return _0x38e5b3;};import{View as _0x523245,IconView as _0x367a30}from'ckeditor5/src/ui';import{getTranslation as _0x5adc51}from'../../utils/common-translations';import{icons as _0x3e3a34}from'ckeditor5/src/core';import'../../../theme/revisionssidebar/revisionssidebarheader.css';export default class rr extends _0x523245{constructor(_0x4e1329){super(_0x4e1329);const _0x4a6d6e=new _0x367a30();_0x4a6d6e[_0x38e5('0x4')]=_0x3e3a34[_0x38e5('0x1')],this[_0x38e5('0x2')]({'tag':_0x38e5('0x8'),'attributes':{'class':['ck',_0x38e5('0x5'),_0x38e5('0x3')]},'children':[_0x4a6d6e,{'tag':_0x38e5('0x6'),'attributes':{'class':['ck',_0x38e5('0x7')]},'children':[_0x5adc51(_0x4e1329,_0x38e5('0x0'))]}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x444d=['setTemplate','delegate','revisionViews','localizedPeriodName','ck-revision-history-sidebar__time-period__revisions','select','startDate','removeRevision','createCollection','ck-revision-history-sidebar__time-period__label','_revisionActions','setName','span','uiLanguage','div'];(function(_0x33a163,_0x444d9c){const _0x589c33=function(_0x3c2a75){while(--_0x3c2a75){_0x33a163['push'](_0x33a163['shift']());}};_0x589c33(++_0x444d9c);}(_0x444d,0x13d));const _0x589c=function(_0x33a163,_0x444d9c){_0x33a163=_0x33a163-0x0;let _0x589c33=_0x444d[_0x33a163];return _0x589c33;};import{View as _0x562e3c}from'ckeditor5/src/ui';import _0x30b18c from'../revision/revisionview';import{getDateTimePeriodInfo as _0x45b462}from'./utils';import'../../../theme/revisionssidebar/revisionssidebartimeperiod.css';export default class pi extends _0x562e3c{constructor(_0x354660,_0x205720,_0x21aa9d){super(_0x354660);const _0x1db43c=_0x45b462(_0x205720,this['locale'][_0x589c('0xb')])[_0x589c('0x1')];this[_0x589c('0x4')]=_0x205720,this[_0x589c('0x0')]=this[_0x589c('0x6')](),this['_revisionActions']=_0x21aa9d,this['revisionViews']['delegate'](_0x589c('0x3'))['to'](this),this[_0x589c('0x0')][_0x589c('0xe')](_0x589c('0x9'))['to'](this),this[_0x589c('0xd')]({'tag':_0x589c('0xc'),'attributes':{'class':['ck','ck-revision-history-sidebar__time-period']},'children':[{'tag':_0x589c('0xa'),'attributes':{'class':['ck',_0x589c('0x7')]},'children':[{'text':_0x1db43c}]},{'tag':_0x589c('0xc'),'attributes':{'class':['ck',_0x589c('0x2')]},'children':this[_0x589c('0x0')]}]});}['addRevision'](_0x1b9b35){const _0x46cc35=new _0x30b18c(this['locale'],_0x1b9b35,this[_0x589c('0x8')]);this[_0x589c('0x0')]['add'](_0x46cc35);}[_0x589c('0x5')](_0x24f515){const _0x5eb99f=this[_0x589c('0x0')]['find'](_0x4d0705=>_0x4d0705['id']===_0x24f515['id']);this[_0x589c('0x0')]['remove'](_0x5eb99f);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5ab2=['flat','selectRevision','startDate','some','find','ck-revision-history-sidebar__timeline','_addRevision','ck-revision-history-sidebar','set','removeRevision','addRevision','add','getTime','_getTimePeriodViewByStartDate','delegate','ck-reset','_removeRevision','ck-disabled','uiLanguage','ck-rounded-corners','fire','div','select','createdAt','setTemplate','_revisionActions','render','timePeriodViews','unhighlight','deselect','highlight','_revisions','locale','isEnabled','revisionSelected','revisionViews'];(function(_0x42d0c3,_0x5ab2b8){const _0x56c118=function(_0x40e133){while(--_0x40e133){_0x42d0c3['push'](_0x42d0c3['shift']());}};_0x56c118(++_0x5ab2b8);}(_0x5ab2,0x75));const _0x56c1=function(_0x42d0c3,_0x5ab2b8){_0x42d0c3=_0x42d0c3-0x0;let _0x56c118=_0x5ab2[_0x42d0c3];return _0x56c118;};import{View as _0x252ceb}from'ckeditor5/src/ui';import _0x11ec49 from'./revisionssidebartimeperiodview';import _0x1d9eb3 from'./revisionssidebarheaderview';import{getDateTimePeriodInfo as _0x6ceaec}from'./utils';import'../../../theme/revisionssidebar/revisionssidebar.css';export default class vi extends _0x252ceb{constructor(_0x11ffee,_0x431e2b,_0x36d6da){super(_0x11ffee);const _0x5570b0=this['bindTemplate'];this[_0x56c1('0x12')]=this['createCollection'](),this[_0x56c1('0x12')]['delegate'](_0x56c1('0xd'))['to'](this),this[_0x56c1('0x12')][_0x56c1('0x5')]('setName')['to'](this),this[_0x56c1('0x16')]=_0x431e2b,this[_0x56c1('0x10')]=_0x36d6da,this['on'](_0x56c1('0xd'),(_0x1ef924,_0xcf7c0a)=>{this['fire'](_0x56c1('0x19'),_0xcf7c0a);}),this['on']('setName',(_0x4101f3,_0x19eff3)=>{this[_0x56c1('0xb')]('revisionSetName',_0x19eff3);}),this[_0x56c1('0x23')]('isEnabled',!0x1),this[_0x56c1('0xf')]({'tag':_0x56c1('0xc'),'attributes':{'class':['ck',_0x56c1('0x6'),_0x56c1('0xa'),_0x56c1('0x22')]},'children':[new _0x1d9eb3(_0x11ffee),{'tag':'div','attributes':{'class':['ck',_0x56c1('0x20'),_0x5570b0['if'](_0x56c1('0x18'),_0x56c1('0x8'),_0x236578=>!_0x236578)]},'children':this['timePeriodViews']}]});}[_0x56c1('0x11')](){super[_0x56c1('0x11')]();for(const _0x1f6b21 of this[_0x56c1('0x16')])this[_0x56c1('0x21')](_0x1f6b21);this['_revisions']['on'](_0x56c1('0x2'),(_0xc3dac,_0x45c9a1)=>{this[_0x56c1('0x21')](_0x45c9a1);}),this['_revisions']['on']('remove',(_0x2e80b4,_0x120925)=>{this[_0x56c1('0x7')](_0x120925);});}get['revisionViews'](){return this[_0x56c1('0x12')]['map'](_0x1e5cf6=>_0x1e5cf6[_0x56c1('0x1a')]['map'](_0x18e54d=>_0x18e54d))[_0x56c1('0x1b')]();}[_0x56c1('0x1c')](_0x4f7314){for(const _0x1f9de7 of this['revisionViews'])_0x4f7314&&_0x4f7314['id']===_0x1f9de7['id']?_0x1f9de7[_0x56c1('0xd')]():_0x1f9de7[_0x56c1('0x14')]();}['highlightRevisions'](_0x4ffc33){for(const _0x2da6a9 of this[_0x56c1('0x1a')])_0x4ffc33[_0x56c1('0x1e')](({id:_0x638258})=>_0x638258===_0x2da6a9['id'])?_0x2da6a9[_0x56c1('0x15')]():_0x2da6a9[_0x56c1('0x13')]();}[_0x56c1('0x21')](_0x4155d8){const _0x54fdc=_0x6ceaec(_0x4155d8[_0x56c1('0xe')],this['locale'][_0x56c1('0x9')])[_0x56c1('0x1d')];let _0x14bc61=this['timePeriodViews']['get'](0x0);_0x14bc61&&_0x14bc61[_0x56c1('0x1d')][_0x56c1('0x3')]()===_0x54fdc['getTime']()||(_0x14bc61=new _0x11ec49(this[_0x56c1('0x17')],_0x54fdc,this['_revisionActions']),this[_0x56c1('0x12')][_0x56c1('0x2')](_0x14bc61)),_0x14bc61[_0x56c1('0x1')](_0x4155d8);}[_0x56c1('0x7')](_0x2b4d53){const _0x503672=_0x6ceaec(_0x2b4d53[_0x56c1('0xe')],this[_0x56c1('0x17')][_0x56c1('0x9')])[_0x56c1('0x1d')];this['_getTimePeriodViewByStartDate'](_0x503672)[_0x56c1('0x0')](_0x2b4d53);}[_0x56c1('0x4')](_0x3747ac){return this[_0x56c1('0x12')][_0x56c1('0x1f')](_0x1377db=>_0x1377db[_0x56c1('0x1d')]['getTime']()===_0x3747ac['getTime']());}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x8f6b=['minus','startOf','year','fromJSDate','day','week','local','hasSame','weekdayLong','toJSDate','monthLong','toRelativeCalendar'];(function(_0x303190,_0x8f6b2){const _0x2c511d=function(_0xa69440){while(--_0xa69440){_0x303190['push'](_0x303190['shift']());}};_0x2c511d(++_0x8f6b2);}(_0x8f6b,0x12e));const _0x2c51=function(_0x303190,_0x8f6b2){_0x303190=_0x303190-0x0;let _0x2c511d=_0x8f6b[_0x303190];return _0x2c511d;};import{DateTime as _0xf6b1bf}from'luxon';export function getDateTimePeriodInfo(_0x1ddc81,_0x119a37){const _0x28bd73=_0xf6b1bf[_0x2c51('0x1')](_0x1ddc81)['setLocale'](_0x119a37),_0x193b35=_0xf6b1bf[_0x2c51('0x4')](),_0x406743=_0x193b35[_0x2c51('0xa')]({'days':0x1})['startOf']('day');let _0x238510,_0x17e550;return _0x28bd73['hasSame'](_0x193b35,_0x2c51('0x2'))?(_0x238510=_0x28bd73[_0x2c51('0xb')](_0x2c51('0x2'))[_0x2c51('0x7')](),_0x17e550=_0x28bd73['toRelativeCalendar']()):_0x28bd73[_0x2c51('0x5')](_0x406743,_0x2c51('0x2'))?(_0x238510=_0x406743['toJSDate'](),_0x17e550=_0x28bd73[_0x2c51('0x9')]()):_0x28bd73[_0x2c51('0x5')](_0x193b35,_0x2c51('0x3'))?(_0x238510=_0x28bd73['startOf'](_0x2c51('0x3'))[_0x2c51('0x7')](),_0x17e550=_0x28bd73[_0x2c51('0x6')]||''):_0x28bd73[_0x2c51('0x5')](_0x193b35,_0x2c51('0x0'))?(_0x238510=_0x28bd73[_0x2c51('0xb')]('month')[_0x2c51('0x7')](),_0x17e550=_0x28bd73[_0x2c51('0x8')]||''):(_0x238510=_0x28bd73[_0x2c51('0xb')]('year')[_0x2c51('0x7')](),_0x17e550=String(_0x28bd73[_0x2c51('0x0')])),{'startDate':_0x238510,'localizedPeriodName':_0x17e550};}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x117b=['isSuggestion','Added\x20by','ck-revision-change__label','set','changeId','span','Suggested\x20by','type','setTemplate','focus','ck-annotation','element','add','bindTemplate'];(function(_0x2d2536,_0x117bd9){const _0x4ab9e7=function(_0x537cd4){while(--_0x537cd4){_0x2d2536['push'](_0x2d2536['shift']());}};_0x4ab9e7(++_0x117bd9);}(_0x117b,0x121));const _0x4ab9=function(_0x2d2536,_0x117bd9){_0x2d2536=_0x2d2536-0x0;let _0x4ab9e7=_0x117b[_0x2d2536];return _0x4ab9e7;};import{View as _0x54728a}from'ckeditor5/src/ui';import{getTranslation as _0x5aa366}from'../../utils/common-translations';export default class Z extends _0x54728a{constructor(_0x348367,_0x25d620){super(_0x348367),this['_model']=_0x25d620,this[_0x4ab9('0x9')]=_0x25d620['id'];const _0x12e631=this[_0x4ab9('0x4')],_0x5448a0=_0x5aa366(_0x348367,_0x25d620['data'][_0x4ab9('0x5')]?_0x4ab9('0xb'):_0x4ab9('0x3')==_0x25d620[_0x4ab9('0xc')]?_0x4ab9('0x6'):'Removed\x20by');this[_0x4ab9('0x8')](_0x4ab9('0xc'),_0x25d620[_0x4ab9('0xc')]),this[_0x4ab9('0xd')]({'tag':'div','attributes':{'class':[_0x4ab9('0x1'),'ck-revision-change',_0x12e631['to']('type',_0x56229a=>'ck-revision-change__'+_0x56229a)],'tabindex':-0x1},'children':[{'tag':_0x4ab9('0xa'),'children':[{'tag':_0x4ab9('0xa'),'attributes':{'class':[_0x4ab9('0x7')]},'children':[{'text':_0x5448a0}]},{'text':'\x20'+_0x25d620['author']['name']}]}]});}[_0x4ab9('0x0')](){this[_0x4ab9('0x2')][_0x4ab9('0x0')]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x242e=['setTemplate','bindTemplate','isEnabled','isBackwardNavigationEnabled','isReady','fire','set','ck-hidden','Total','_statusText','currentChangeNumber','execute','bind','backward','ck-revision-history-ui__changes-navigation__navigation','span','X_OF_Y_CHANGES','forward','ck-revision-history-ui','ck-revision-history-ui__changes-navigation','_isStatusLabelVisible','ck-revision-history-ui__changes-navigation__label','isNavigationMode','Show\x20previous\x20change','div','No\x20changes','NUMBER_OF_CHANGES','ck-revision-history-ui__changes-navigation__wrapper','numberOfChanges'];(function(_0x3ec102,_0x242ec1){const _0x637e44=function(_0x4dfd3d){while(--_0x4dfd3d){_0x3ec102['push'](_0x3ec102['shift']());}};_0x637e44(++_0x242ec1);}(_0x242e,0x16b));const _0x637e=function(_0x3ec102,_0x242ec1){_0x3ec102=_0x3ec102-0x0;let _0x637e44=_0x242e[_0x3ec102];return _0x637e44;};import{View as _0x5008a4,ButtonView as _0xdee823,ToolbarSeparatorView as _0x4ee094}from'ckeditor5/src/ui';import{getTranslation as _0x2420b7}from'../../utils/common-translations';import _0x287376 from'../../../theme/icons/arrow-up.svg';import _0x1c6c69 from'../../../theme/icons/arrow-down.svg';import'../../../theme/changesnavigation.css';export default class bi extends _0x5008a4{constructor(_0xaf065e){super(_0xaf065e);const _0x21bc71=this[_0x637e('0xf')],_0x3d80e1=new _0xdee823(_0xaf065e),_0x5d39e5=new _0xdee823(_0xaf065e);this[_0x637e('0x14')](_0x637e('0x7'),!0x1),this[_0x637e('0x14')](_0x637e('0x12'),!0x1),this[_0x637e('0x14')]('currentChangeNumber',0x0),this['set'](_0x637e('0xd'),0x0),this[_0x637e('0x14')]('isForwardNavigationEnabled',!0x1),this[_0x637e('0x14')](_0x637e('0x11'),!0x1),this['bind'](_0x637e('0x5'))['to'](this,_0x637e('0x12'),this,_0x637e('0xd'),(_0x5bf37a,_0x593982)=>_0x5bf37a&&_0x593982>0x0),this[_0x637e('0x1a')](_0x637e('0x17'))['to'](this,_0x637e('0x12'),this,_0x637e('0x18'),this,_0x637e('0xd'),this,_0x637e('0x7'),(_0x1593ed,_0xd10b8e,_0x17a6b9,_0x1e3d4b)=>{if(!_0x1593ed)return _0x2420b7(_0xaf065e,'Loading...');if(!_0x17a6b9)return _0x2420b7(_0xaf065e,_0x637e('0xa'));const _0x3aa644=_0x2420b7(_0xaf065e,_0x637e('0xb'),_0x17a6b9);return _0x1e3d4b?_0x2420b7(_0xaf065e,_0x637e('0x1'),[_0xd10b8e+0x1,_0x17a6b9]):_0x3aa644;}),_0x3d80e1['set']({'label':_0x2420b7(_0xaf065e,_0x637e('0x8')),'tooltip':!0x0,'icon':_0x287376}),_0x5d39e5[_0x637e('0x14')]({'label':_0x2420b7(_0xaf065e,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x1c6c69}),_0x3d80e1[_0x637e('0x1a')](_0x637e('0x10'))['to'](this,_0x637e('0x11')),_0x5d39e5[_0x637e('0x1a')]('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x3d80e1['on'](_0x637e('0x19'),()=>this[_0x637e('0x13')](_0x637e('0x19'),_0x637e('0x1b'))),_0x5d39e5['on']('execute',()=>this[_0x637e('0x13')]('execute',_0x637e('0x2'))),this[_0x637e('0xe')]({'tag':'div','attributes':{'class':['ck',_0x637e('0x3'),_0x637e('0x4')]},'children':[{'tag':'span','attributes':{'class':[_0x637e('0xc')]},'children':[{'tag':_0x637e('0x0'),'attributes':{'class':[_0x637e('0x6'),_0x21bc71['if'](_0x637e('0x5'),_0x637e('0x15'),_0x1ca3d6=>!_0x1ca3d6)]},'children':[{'text':_0x21bc71['to'](_0x637e('0x7'),_0x35e29a=>_0x35e29a?_0x2420b7(_0xaf065e,'EDIT_X_OF_Y_REVISIONS')+':\x20':_0x2420b7(_0xaf065e,_0x637e('0x16'))+':\x20')}]},{'text':_0x21bc71['to'](_0x637e('0x17'))}]},new _0x4ee094(),{'tag':_0x637e('0x9'),'attributes':{'class':[_0x637e('0x1c')]},'children':[_0x3d80e1,_0x5d39e5]}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x14b8=['removeClass','hide','roots','RevisionViewerLoadingOverlay','editor','addClass','change','editing','document','view','pluginName','ck-editor__editable__loading-overlay'];(function(_0x19bc67,_0x14b8fb){const _0x113eb3=function(_0x1004d9){while(--_0x1004d9){_0x19bc67['push'](_0x19bc67['shift']());}};_0x113eb3(++_0x14b8fb);}(_0x14b8,0xd0));const _0x113e=function(_0x19bc67,_0x14b8fb){_0x19bc67=_0x19bc67-0x0;let _0x113eb3=_0x14b8[_0x19bc67];return _0x113eb3;};import{Plugin as _0x2c62d3}from'ckeditor5/src/core';const oe=_0x113e('0x7');import'../../../theme/revisionviewerloadingoverlay.css';export default class te extends _0x2c62d3{static get[_0x113e('0x6')](){return _0x113e('0xb');}['show'](){const _0x2c9a81=this['editor'][_0x113e('0x3')]['view'];_0x2c9a81[_0x113e('0x2')](_0x4035e0=>{for(const _0x39838c of _0x2c9a81[_0x113e('0x4')][_0x113e('0xa')])_0x4035e0[_0x113e('0x1')](oe,_0x39838c);});}[_0x113e('0x9')](){const _0x44c994=this[_0x113e('0x0')][_0x113e('0x3')][_0x113e('0x5')];_0x44c994[_0x113e('0x2')](_0x59267e=>{for(const _0xa4bd18 of _0x44c994[_0x113e('0x4')][_0x113e('0xa')])_0x59267e[_0x113e('0x8')](oe,_0xa4bd18);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x6d82=['change:isReady','execute','forward','Restore\x20this\x20revision','revisionHistory','showPreviousChange','commands','show','showNextChange','RevisionViewerUI','plugins','isNavigationMode','set','hide','restoreRevision','closeRevisionViewerCallback','Back\x20to\x20editing','get','isReady','changesNavigation','isBackwardNavigationEnabled','isEnabled','add','config','listenTo','requires','bind','pluginName','componentFactory','ck-revision-history-ui__back-to-editing'];(function(_0x2cab51,_0x6d82ce){const _0x55a7ef=function(_0xa586e5){while(--_0xa586e5){_0x2cab51['push'](_0x2cab51['shift']());}};_0x55a7ef(++_0x6d82ce);}(_0x6d82,0x11f));const _0x55a7=function(_0x2cab51,_0x6d82ce){_0x2cab51=_0x2cab51-0x0;let _0x55a7ef=_0x6d82[_0x2cab51];return _0x55a7ef;};import{Plugin as _0x168ded}from'ckeditor5/src/core';import{ButtonView as _0x2b8e3a}from'ckeditor5/src/ui';import _0x234c1c from'./changesnavigationview';import _0x402e1f from'./../../revisionviewer';import _0x354ec6 from'./revisionviewerloadingoverlay';import{getTranslation as _0x32f3aa}from'../../utils/common-translations';import _0x11f633 from'@ckeditor/ckeditor5-undo/theme/icons/undo.svg';import'../../../theme/revisionviewer.css';export default class R extends _0x168ded{static get[_0x55a7('0xa')](){return _0x55a7('0x16');}static get[_0x55a7('0x8')](){return[_0x402e1f,_0x354ec6];}['init'](){const _0xe0f222=this['editor'],_0x5bb121=_0xe0f222[_0x55a7('0x17')]['get'](_0x402e1f),_0x25fa96=_0xe0f222[_0x55a7('0x17')]['get'](_0x354ec6);_0xe0f222['ui'][_0x55a7('0xb')][_0x55a7('0x5')]('exitToEditing',_0x491faf=>{const _0x2c8f21=new _0x2b8e3a(_0x491faf);return _0x2c8f21[_0x55a7('0x19')]({'label':_0x32f3aa(_0x491faf,_0x55a7('0x1d')),'icon':_0x11f633,'withText':!0x0,'tooltip':!0x0,'class':_0x55a7('0xc')}),this[_0x55a7('0x7')](_0x2c8f21,_0x55a7('0xe'),()=>{_0xe0f222[_0x55a7('0x6')][_0x55a7('0x0')](_0x55a7('0x11'))[_0x55a7('0x1c')]();}),_0x2c8f21;}),_0xe0f222['ui'][_0x55a7('0xb')][_0x55a7('0x5')](_0x55a7('0x1b'),_0xbeb2c2=>{const _0x531238=new _0x2b8e3a(_0xbeb2c2);return _0x531238[_0x55a7('0x19')]({'label':_0x32f3aa(_0xbeb2c2,_0x55a7('0x10')),'withText':!0x0,'tooltip':!0x0}),_0x531238[_0x55a7('0x9')](_0x55a7('0x4'))['to'](_0xe0f222['commands'][_0x55a7('0x0')](_0x55a7('0x1b'))),this[_0x55a7('0x7')](_0x531238,'execute',()=>_0xe0f222[_0x55a7('0xe')](_0x55a7('0x1b'))),_0x531238;}),_0xe0f222['ui'][_0x55a7('0xb')][_0x55a7('0x5')](_0x55a7('0x2'),_0x5d41c9=>{const _0x1e8164=new _0x234c1c(_0x5d41c9),_0x8b4ba6=_0xe0f222[_0x55a7('0x13')][_0x55a7('0x0')](_0x55a7('0x12')),_0x284180=_0xe0f222[_0x55a7('0x13')]['get']('showNextChange');return _0x1e8164['bind'](_0x55a7('0x3'))['to'](_0x8b4ba6,_0x55a7('0x4')),_0x1e8164[_0x55a7('0x9')]('isForwardNavigationEnabled')['to'](_0x284180,_0x55a7('0x4')),_0x1e8164[_0x55a7('0x9')](_0x55a7('0x1'),'currentChangeNumber','numberOfChanges',_0x55a7('0x18'))['to'](_0x5bb121),this[_0x55a7('0x7')](_0x1e8164,'execute',(_0x289ecc,_0x283773)=>{_0xe0f222[_0x55a7('0xe')](_0x55a7('0xf')===_0x283773?_0x55a7('0x15'):_0x55a7('0x12'));}),_0x1e8164;}),_0x25fa96[_0x55a7('0x14')](),_0x5bb121['on'](_0x55a7('0xd'),(_0x45e882,_0x589355,_0x208d11)=>{_0x208d11?_0x25fa96[_0x55a7('0x1a')]():_0x25fa96[_0x55a7('0x14')]();});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export function getTranslation(
|
|
23
|
+
export function getTranslation(_0x58cd93,_0x11a7af,_0x54b8c7){const t=_0x58cd93['t'];switch(_0x11a7af){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'},_0x54b8c7);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x54b8c7);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 _0x11a7af;}}
|