@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20231025.0 → 0.0.0-nightly-20231026.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 _0x5ee7=['set','isEnabled','children','isReadOnly','pluginName','render','saveRevision','view','Save\x20current\x20revision','history','bind','add','editing','componentFactory','execute','buttonView','length','showRevisionViewerCallback','change:isOpen','cancel','config','Open\x20revision\x20history','init','remove','submit','plugins','requires','Revision\x20history','get','items','focus','isReady','panelView','revisionName','revisionHistory','isOpen'];(function(_0x2380d3,_0x5ee75f){const _0x176131=function(_0xa92929){while(--_0xa92929){_0x2380d3['push'](_0x2380d3['shift']());}};_0x176131(++_0x5ee75f);}(_0x5ee7,0xf9));const _0x1761=function(_0x2380d3,_0x5ee75f){_0x2380d3=_0x2380d3-0x0;let _0x176131=_0x5ee7[_0x2380d3];return _0x176131;};import{Plugin as _0x10e063,icons as _0x4de9ab}from'ckeditor5/src/core';import{ListView as _0x181069,ListItemView as _0x5226e4,ButtonView as _0x1b9131,createDropdown as _0xe18610}from'ckeditor5/src/ui';import _0xfe24ee from'../../revisiontracker';import _0x10687c from'./revisionhistorysaverevisionformview';import{getTranslation as _0x370fab}from'../../utils/common-translations';export default class u extends _0x10e063{static get[_0x1761('0x7')](){return'RevisionHistoryUI';}static get[_0x1761('0x1d')](){return[_0xfe24ee];}[_0x1761('0x19')](){const _0x2b1903=this['editor'],_0x117e92=_0x2b1903[_0x1761('0x1c')][_0x1761('0x1f')]('RevisionTracker');_0x2b1903['ui'][_0x1761('0x10')][_0x1761('0xe')](_0x1761('0x1'),_0x1b0fb8=>{const _0x1b0799=_0xe18610(_0x1b0fb8),_0x25e55d=_0x1b0799[_0x1761('0x23')][_0x1761('0x5')],_0x39c9e3=new _0x181069(_0x1b0fb8),_0x2b5726=new _0x5226e4(_0x1b0fb8),_0x4f7a94=new _0x1b9131(_0x1b0fb8),_0x252a90=new _0x5226e4(_0x1b0fb8),_0x1756b9=new _0x1b9131(_0x1b0fb8),_0x30c873=new _0x10687c(_0x1b0fb8);function _0x6f3f1b(){_0x25e55d[_0x1761('0x13')]&&_0x25e55d[_0x1761('0x1a')](0x0),_0x25e55d[_0x1761('0xe')](_0x39c9e3);}function _0x841222(){_0x1b0799[_0x1761('0x2')]=!0x1,_0x2b1903[_0x1761('0xf')][_0x1761('0xa')]['focus']();}return _0x1b0799['bind'](_0x1761('0x4'))['to'](_0x117e92,_0x1761('0x22'),_0x117e92,_0x1761('0x4'),_0x2b1903,'isReadOnly',(_0x3ded57,_0xf6269c,_0x3c9dfb)=>_0x3ded57&&_0xf6269c&&!_0x3c9dfb),_0x1b0799[_0x1761('0x12')][_0x1761('0x3')]({'icon':_0x4de9ab[_0x1761('0xc')],'label':_0x370fab(_0x1b0fb8,_0x1761('0x1e')),'tooltip':!0x0}),_0x4f7a94[_0x1761('0x3')]({'label':_0x370fab(_0x1b0fb8,_0x1761('0xb')),'withText':!0x0}),_0x4f7a94[_0x1761('0xd')](_0x1761('0x4'))['to'](_0x117e92,_0x1761('0x22'),_0x117e92,_0x1761('0x4'),_0x2b1903,_0x1761('0x6'),(_0x5f3250,_0x411230,_0x39cc49)=>_0x5f3250&&_0x411230&&!_0x39cc49),_0x4f7a94['on'](_0x1761('0x11'),()=>function(){_0x25e55d[_0x1761('0x13')]&&_0x25e55d[_0x1761('0x1a')](0x0),(_0x30c873['reset'](),_0x25e55d['add'](_0x30c873),_0x30c873[_0x1761('0x21')]());}()),_0x1756b9[_0x1761('0x3')]({'label':_0x370fab(_0x1b0fb8,_0x1761('0x18')),'withText':!0x0}),_0x1756b9[_0x1761('0xd')](_0x1761('0x4'))['to'](_0x117e92,'isReady',_0x2b1903,_0x1761('0x6'),(_0x36cc63,_0x3073e4)=>_0x36cc63&&!_0x3073e4),_0x1756b9['on'](_0x1761('0x11'),()=>{_0x2b1903[_0x1761('0x17')][_0x1761('0x1f')](_0x1761('0x1'))[_0x1761('0x14')](),_0x841222();}),_0x2b5726[_0x1761('0x5')][_0x1761('0xe')](_0x4f7a94),_0x252a90[_0x1761('0x5')]['add'](_0x1756b9),_0x39c9e3[_0x1761('0x20')]['addMany']([_0x2b5726,_0x252a90]),_0x1b0799['on'](_0x1761('0x15'),()=>_0x6f3f1b()),_0x30c873['saveButtonView']['bind'](_0x1761('0x4'))['to'](_0x117e92,_0x1761('0x22'),_0x117e92,_0x1761('0x4'),_0x2b1903,_0x1761('0x6'),(_0x4bb428,_0x44cd96,_0x385142)=>_0x4bb428&&_0x44cd96&&!_0x385142),_0x30c873['on'](_0x1761('0x1b'),()=>(_0x2b1903[_0x1761('0x1c')][_0x1761('0x1f')](_0xfe24ee)[_0x1761('0x9')]({'name':_0x30c873[_0x1761('0x0')]}),void _0x841222())),_0x30c873['on'](_0x1761('0x16'),()=>_0x6f3f1b()),_0x30c873[_0x1761('0x8')](),_0x6f3f1b(),_0x1b0799;});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4724=['requires','_handleRevisionSetName','element','getLaterVisibleRevision','name','diff','get','change:diff','_revisionsRepository','_sidebarView','availableRevisionActions','focus','action','compare','render','getRevisionsInDiff','selectRevision','_revisions','string','getRevision','_handleEditorDataReady','add','_revisionViewer','_handleDiffChange','Name\x20this\x20revision','getEarlierVisibleRevision','_createRevisionActions','locale','listenTo','destroy','fieldView','highlightRevisions','pluginName','config','bind','ready','plugins','restoreRevisionCallback','length','init','isEnabled','map','isReady','isVisible','Compare\x20against\x20selected','defaultRevisionActions','data','_handleRevisionSelected','setName','getIndex','revisionHistory.revisionActions','repository','assign','isSelected','revisionHistory','editor','revisionHistory.viewerSidebarContainer','restoreRevision'];(function(_0x32e9d2,_0x4724e4){const _0x411d27=function(_0x1ca0b4){while(--_0x1ca0b4){_0x32e9d2['push'](_0x32e9d2['shift']());}};_0x411d27(++_0x4724e4);}(_0x4724,0x13a));const _0x411d=function(_0x32e9d2,_0x4724e4){_0x32e9d2=_0x32e9d2-0x0;let _0x411d27=_0x4724[_0x32e9d2];return _0x411d27;};import{Plugin as _0x3e27af}from'ckeditor5/src/core';import _0x2850e9 from'./revisionssidebarview';import _0x3f191d from'../../revisionviewer';export default class w extends _0x3e27af{static get[_0x411d('0x8')](){return'RevisionsSidebar';}static get[_0x411d('0x22')](){return[_0x3f191d];}constructor(_0x298c06){super(_0x298c06),this[_0x411d('0x38')]=_0x298c06[_0x411d('0xc')][_0x411d('0x28')](_0x3f191d),this[_0x411d('0x2a')]=this[_0x411d('0x38')][_0x411d('0x1b')],this[_0x411d('0x2b')]=null;}[_0x411d('0xf')](){const _0x7ff359=this['_revisionsRepository'][_0x411d('0x33')],_0x7c9de9=this[_0x411d('0x2')](),_0x2ff7b7=this[_0x411d('0x1f')][_0x411d('0x9')]['get'](_0x411d('0x20'));this['_sidebarView']=new _0x2850e9(this[_0x411d('0x1f')][_0x411d('0x3')],_0x7ff359,_0x7c9de9),this['_sidebarView']['on']('revisionSelected',this['_handleRevisionSelected'][_0x411d('0xa')](this)),this[_0x411d('0x2b')]['on']('revisionSetName',this['_handleRevisionSetName'][_0x411d('0xa')](this)),this['_sidebarView'][_0x411d('0xa')](_0x411d('0x10'))['to'](this[_0x411d('0x38')]),this['_sidebarView']['timePeriodViews']['on'](_0x411d('0x37'),(_0x23011,_0x23dae8)=>{_0x23dae8['revisionViews']['on'](_0x411d('0x37'),(_0x14ef56,_0x2c9d14)=>{_0x2c9d14[_0x411d('0xa')](_0x411d('0x10'),_0x411d('0x12'))['to'](this[_0x411d('0x38')]);});}),this[_0x411d('0x2b')][_0x411d('0x30')](),this['listenTo'](this[_0x411d('0x1f')][_0x411d('0x16')],_0x411d('0xb'),this[_0x411d('0x36')]['bind'](this)),this[_0x411d('0x4')](this[_0x411d('0x38')],_0x411d('0x29'),this[_0x411d('0x39')][_0x411d('0xa')](this)),_0x2ff7b7['appendChild'](this[_0x411d('0x2b')][_0x411d('0x24')]);}[_0x411d('0x5')](){this[_0x411d('0x2b')][_0x411d('0x24')]['remove'](),this[_0x411d('0x2b')][_0x411d('0x5')]();}[_0x411d('0x36')](){const _0x102790=this[_0x411d('0x2a')][_0x411d('0x35')](0x0);if(_0x102790){const _0x11b612=this[_0x411d('0x2a')][_0x411d('0x1')](_0x102790['id']);this[_0x411d('0x38')]['compare'](_0x102790,_0x11b612);}}[_0x411d('0x17')](_0x398502,_0xc42d5a){const _0x46d8a0=this[_0x411d('0x2a')]['getRevision'](_0xc42d5a['id']),_0x44826f=this[_0x411d('0x2a')]['getEarlierVisibleRevision'](_0x46d8a0['id']);this[_0x411d('0x38')][_0x411d('0x2f')](_0x46d8a0,_0x44826f);}[_0x411d('0x23')](_0x5383a6,_0x4d4f08){this[_0x411d('0x2a')]['getRevision'](_0x4d4f08['id'])[_0x411d('0x18')](_0x4d4f08[_0x411d('0x26')]);}[_0x411d('0x39')](_0xd635a1,_0x3517d6,_0x933d6c){const _0x264596=this['_revisionsRepository'][_0x411d('0x31')](_0x933d6c);_0x264596[_0x411d('0xe')]>0x2?(this[_0x411d('0x2b')][_0x411d('0x7')](_0x264596),this[_0x411d('0x2b')][_0x411d('0x32')](null)):(this[_0x411d('0x2b')][_0x411d('0x7')]([]),this[_0x411d('0x2b')][_0x411d('0x32')](_0x264596[0x0]));}[_0x411d('0x2')](){const _0x85d376=this[_0x411d('0x1f')],_0x31df69=w[_0x411d('0x2c')],_0x5af04f=_0x85d376[_0x411d('0x9')][_0x411d('0x28')](_0x411d('0x1a'))||w[_0x411d('0x15')];if(_0x5af04f['length'])return _0x5af04f[_0x411d('0x11')](_0x59627d=>{const _0x520ddc=_0x411d('0x34')==typeof _0x59627d?Object[_0x411d('0x1c')]({},_0x31df69[_0x59627d]):_0x59627d;return _0x520ddc['action']=_0x520ddc[_0x411d('0x2e')][_0x411d('0xa')](this,_0x85d376),_0x520ddc[_0x411d('0x13')]&&(_0x520ddc[_0x411d('0x13')]=_0x520ddc[_0x411d('0x13')]['bind'](this,_0x85d376)),_0x520ddc;});}}w[_0x411d('0x2c')]={'compareAgainstSelected':{'name':_0x411d('0x14'),'action':({plugins:_0x5abbfc},_0x3343ad)=>{const _0x4e033e=_0x5abbfc[_0x411d('0x28')](_0x3f191d),_0x4aba29=_0x4e033e[_0x411d('0x1b')];let _0x4be98e=_0x4e033e[_0x411d('0x27')]['newRevisionId'],_0x13d911=_0x3343ad['id'];_0x4aba29[_0x411d('0x19')](_0x4be98e)>_0x4aba29[_0x411d('0x19')](_0x13d911)&&([_0x4be98e,_0x13d911]=[_0x13d911,_0x4be98e]),_0x4e033e['compare'](_0x4be98e,_0x13d911);},'isVisible':({plugins:_0x12ea22},_0x297394)=>{const _0x4319c0=_0x12ea22[_0x411d('0x28')](_0x3f191d);return!(_0x4319c0[_0x411d('0x1b')][_0x411d('0x31')](_0x4319c0[_0x411d('0x27')])[_0x411d('0xe')]>0x2)&&!_0x297394[_0x411d('0x1d')];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0xc5721c,{id:_0xbba75e})=>{_0xc5721c[_0x411d('0x9')][_0x411d('0x28')](_0x411d('0x1e'))[_0x411d('0xd')](_0xbba75e);},'isVisible':({plugins:_0x1432e5},_0x9d8f8f)=>!!_0x1432e5[_0x411d('0x28')](_0x3f191d)[_0x411d('0x1b')][_0x411d('0x25')](_0x9d8f8f['id'])},'nameRevision':{'name':_0x411d('0x0'),'action':({plugins:_0x4ca68e},{id:_0x28fd60,revisionNameView:_0xc9e000})=>{const _0x4004a1=_0x4ca68e[_0x411d('0x28')](_0x3f191d),_0x299700=_0x4004a1[_0x411d('0x1b')][_0x411d('0x1')](_0x28fd60);_0x4004a1[_0x411d('0x2f')](_0x28fd60,_0x299700),_0xc9e000[_0x411d('0x2d')](),_0xc9e000[_0x411d('0x6')]['select']();}}},w['defaultRevisionActions']=['compareAgainstSelected',_0x411d('0x21'),'nameRevision'];
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x592b=['ck-revision-history-sidebar__header','content','ck-reset_all','div','ck-revision-history-sidebar__header__label'];(function(_0x425641,_0x592bab){const _0x381dc0=function(_0x1cb019){while(--_0x1cb019){_0x425641['push'](_0x425641['shift']());}};_0x381dc0(++_0x592bab);}(_0x592b,0x17a));const _0x381d=function(_0x425641,_0x592bab){_0x425641=_0x425641-0x0;let _0x381dc0=_0x592b[_0x425641];return _0x381dc0;};import{View as _0x30dbd5,IconView as _0x3f56dd}from'ckeditor5/src/ui';import{getTranslation as _0x31fe47}from'../../utils/common-translations';import{icons as _0x16e9d3}from'ckeditor5/src/core';import'../../../theme/revisionssidebar/revisionssidebarheader.css';export default class rr extends _0x30dbd5{constructor(_0x208c59){super(_0x208c59);const _0x1469ef=new _0x3f56dd();_0x1469ef[_0x381d('0x3')]=_0x16e9d3['history'],this['setTemplate']({'tag':_0x381d('0x0'),'attributes':{'class':['ck',_0x381d('0x4'),_0x381d('0x2')]},'children':[_0x1469ef,{'tag':'span','attributes':{'class':['ck',_0x381d('0x1')]},'children':[_0x31fe47(_0x208c59,'Revision\x20history')]}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4280=['setName','add','delegate','addRevision','_revisionActions','ck-revision-history-sidebar__time-period__revisions','remove','localizedPeriodName','span','ck-revision-history-sidebar__time-period','select','div','uiLanguage','createCollection','locale','removeRevision','revisionViews'];(function(_0x106baf,_0x4280e2){const _0x30701=function(_0x3aa596){while(--_0x3aa596){_0x106baf['push'](_0x106baf['shift']());}};_0x30701(++_0x4280e2);}(_0x4280,0xa9));const _0x3070=function(_0x106baf,_0x4280e2){_0x106baf=_0x106baf-0x0;let _0x30701=_0x4280[_0x106baf];return _0x30701;};import{View as _0x5c6091}from'ckeditor5/src/ui';import _0xb06dc7 from'../revision/revisionview';import{getDateTimePeriodInfo as _0x3ea455}from'./utils';import'../../../theme/revisionssidebar/revisionssidebartimeperiod.css';export default class pi extends _0x5c6091{constructor(_0xf73f4,_0x1f336a,_0x2acb23){super(_0xf73f4);const _0x485c2e=_0x3ea455(_0x1f336a,this[_0x3070('0xf')][_0x3070('0xd')])[_0x3070('0x8')];this['startDate']=_0x1f336a,this[_0x3070('0x0')]=this[_0x3070('0xe')](),this[_0x3070('0x5')]=_0x2acb23,this['revisionViews'][_0x3070('0x3')](_0x3070('0xb'))['to'](this),this[_0x3070('0x0')][_0x3070('0x3')](_0x3070('0x1'))['to'](this),this['setTemplate']({'tag':_0x3070('0xc'),'attributes':{'class':['ck',_0x3070('0xa')]},'children':[{'tag':_0x3070('0x9'),'attributes':{'class':['ck','ck-revision-history-sidebar__time-period__label']},'children':[{'text':_0x485c2e}]},{'tag':'div','attributes':{'class':['ck',_0x3070('0x6')]},'children':this[_0x3070('0x0')]}]});}[_0x3070('0x4')](_0x250a9e){const _0x127d1c=new _0xb06dc7(this[_0x3070('0xf')],_0x250a9e,this[_0x3070('0x5')]);this[_0x3070('0x0')][_0x3070('0x2')](_0x127d1c);}[_0x3070('0x10')](_0x108d35){const _0x5e7d92=this[_0x3070('0x0')]['find'](_0x469e75=>_0x469e75['id']===_0x108d35['id']);this[_0x3070('0x0')][_0x3070('0x7')](_0x5e7d92);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x28e2=['render','set','_revisions','startDate','some','ck-disabled','div','isEnabled','deselect','_revisionActions','ck-reset','locale','map','setName','uiLanguage','createdAt','select','add','find','highlightRevisions','revisionViews','get','ck-rounded-corners','fire','remove','_addRevision','unhighlight','setTemplate','ck-revision-history-sidebar__timeline','selectRevision','_getTimePeriodViewByStartDate','removeRevision','timePeriodViews','_removeRevision','getTime'];(function(_0x54a822,_0x28e2f3){const _0x35ecc6=function(_0x152d9d){while(--_0x152d9d){_0x54a822['push'](_0x54a822['shift']());}};_0x35ecc6(++_0x28e2f3);}(_0x28e2,0x1c7));const _0x35ec=function(_0x54a822,_0x28e2f3){_0x54a822=_0x54a822-0x0;let _0x35ecc6=_0x28e2[_0x54a822];return _0x35ecc6;};import{View as _0x31c274}from'ckeditor5/src/ui';import _0x7ce215 from'./revisionssidebartimeperiodview';import _0x2a1f62 from'./revisionssidebarheaderview';import{getDateTimePeriodInfo as _0x5670ca}from'./utils';import'../../../theme/revisionssidebar/revisionssidebar.css';export default class vi extends _0x31c274{constructor(_0x304d1a,_0x42b3b9,_0x4ab897){super(_0x304d1a);const _0x5aaafb=this['bindTemplate'];this[_0x35ec('0x20')]=this['createCollection'](),this[_0x35ec('0x20')]['delegate'](_0x35ec('0x10'))['to'](this),this[_0x35ec('0x20')]['delegate'](_0x35ec('0xd'))['to'](this),this[_0x35ec('0x2')]=_0x42b3b9,this[_0x35ec('0x9')]=_0x4ab897,this['on'](_0x35ec('0x10'),(_0x3fc380,_0x1c2f6c)=>{this[_0x35ec('0x17')]('revisionSelected',_0x1c2f6c);}),this['on'](_0x35ec('0xd'),(_0x477c07,_0x53946a)=>{this[_0x35ec('0x17')]('revisionSetName',_0x53946a);}),this[_0x35ec('0x1')](_0x35ec('0x7'),!0x1),this[_0x35ec('0x1b')]({'tag':_0x35ec('0x6'),'attributes':{'class':['ck',_0x35ec('0xa'),_0x35ec('0x16'),'ck-revision-history-sidebar']},'children':[new _0x2a1f62(_0x304d1a),{'tag':_0x35ec('0x6'),'attributes':{'class':['ck',_0x35ec('0x1c'),_0x5aaafb['if'](_0x35ec('0x7'),_0x35ec('0x5'),_0x1b44fe=>!_0x1b44fe)]},'children':this[_0x35ec('0x20')]}]});}[_0x35ec('0x0')](){super[_0x35ec('0x0')]();for(const _0x1de071 of this['_revisions'])this['_addRevision'](_0x1de071);this[_0x35ec('0x2')]['on'](_0x35ec('0x11'),(_0x43da2a,_0x21be09)=>{this[_0x35ec('0x19')](_0x21be09);}),this[_0x35ec('0x2')]['on'](_0x35ec('0x18'),(_0x4d90a7,_0x1af7e3)=>{this[_0x35ec('0x21')](_0x1af7e3);});}get[_0x35ec('0x14')](){return this[_0x35ec('0x20')][_0x35ec('0xc')](_0x2abaa4=>_0x2abaa4[_0x35ec('0x14')][_0x35ec('0xc')](_0x112d4c=>_0x112d4c))['flat']();}[_0x35ec('0x1d')](_0x38c2bb){for(const _0x49f16f of this[_0x35ec('0x14')])_0x38c2bb&&_0x38c2bb['id']===_0x49f16f['id']?_0x49f16f[_0x35ec('0x10')]():_0x49f16f[_0x35ec('0x8')]();}[_0x35ec('0x13')](_0x3da2e8){for(const _0x54d140 of this[_0x35ec('0x14')])_0x3da2e8[_0x35ec('0x4')](({id:_0x36e2ed})=>_0x36e2ed===_0x54d140['id'])?_0x54d140['highlight']():_0x54d140[_0x35ec('0x1a')]();}['_addRevision'](_0x57e05c){const _0x9fd03f=_0x5670ca(_0x57e05c['createdAt'],this['locale'][_0x35ec('0xe')])[_0x35ec('0x3')];let _0x3872bd=this[_0x35ec('0x20')][_0x35ec('0x15')](0x0);_0x3872bd&&_0x3872bd['startDate']['getTime']()===_0x9fd03f[_0x35ec('0x22')]()||(_0x3872bd=new _0x7ce215(this[_0x35ec('0xb')],_0x9fd03f,this[_0x35ec('0x9')]),this[_0x35ec('0x20')]['add'](_0x3872bd)),_0x3872bd['addRevision'](_0x57e05c);}[_0x35ec('0x21')](_0x2bd7db){const _0x576a33=_0x5670ca(_0x2bd7db[_0x35ec('0xf')],this[_0x35ec('0xb')]['uiLanguage'])[_0x35ec('0x3')];this[_0x35ec('0x1e')](_0x576a33)[_0x35ec('0x1f')](_0x2bd7db);}['_getTimePeriodViewByStartDate'](_0x3efc13){return this[_0x35ec('0x20')][_0x35ec('0x12')](_0xcd7edb=>_0xcd7edb[_0x35ec('0x3')][_0x35ec('0x22')]()===_0x3efc13[_0x35ec('0x22')]());}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1e45=['monthLong','month','toRelativeCalendar','day','hasSame','year','weekdayLong','startOf','week','minus','setLocale','fromJSDate','toJSDate'];(function(_0x56776d,_0x1e45dc){const _0x23441c=function(_0x4f5f6d){while(--_0x4f5f6d){_0x56776d['push'](_0x56776d['shift']());}};_0x23441c(++_0x1e45dc);}(_0x1e45,0x1cf));const _0x2344=function(_0x56776d,_0x1e45dc){_0x56776d=_0x56776d-0x0;let _0x23441c=_0x1e45[_0x56776d];return _0x23441c;};import{DateTime as _0x20e0c2}from'luxon';export function getDateTimePeriodInfo(_0x2f011d,_0x20c918){const _0x4c181f=_0x20e0c2[_0x2344('0x3')](_0x2f011d)[_0x2344('0x2')](_0x20c918),_0x1a2592=_0x20e0c2['local'](),_0x2e29a2=_0x1a2592[_0x2344('0x1')]({'days':0x1})[_0x2344('0xc')]('day');let _0x4a84f6,_0x21568d;return _0x4c181f[_0x2344('0x9')](_0x1a2592,_0x2344('0x8'))?(_0x4a84f6=_0x4c181f[_0x2344('0xc')]('day')['toJSDate'](),_0x21568d=_0x4c181f['toRelativeCalendar']()):_0x4c181f[_0x2344('0x9')](_0x2e29a2,_0x2344('0x8'))?(_0x4a84f6=_0x2e29a2['toJSDate'](),_0x21568d=_0x4c181f[_0x2344('0x7')]()):_0x4c181f[_0x2344('0x9')](_0x1a2592,_0x2344('0x0'))?(_0x4a84f6=_0x4c181f[_0x2344('0xc')](_0x2344('0x0'))[_0x2344('0x4')](),_0x21568d=_0x4c181f[_0x2344('0xb')]||''):_0x4c181f[_0x2344('0x9')](_0x1a2592,_0x2344('0xa'))?(_0x4a84f6=_0x4c181f['startOf'](_0x2344('0x6'))[_0x2344('0x4')](),_0x21568d=_0x4c181f[_0x2344('0x5')]||''):(_0x4a84f6=_0x4c181f['startOf'](_0x2344('0xa'))[_0x2344('0x4')](),_0x21568d=String(_0x4c181f[_0x2344('0xa')])),{'startDate':_0x4a84f6,'localizedPeriodName':_0x21568d};}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3db4=['ck-annotation','author','ck-revision-change__','div','span','focus','name','element','_model','ck-revision-change__label','ck-revision-change','Removed\x20by','type','Suggested\x20by','data','Added\x20by'];(function(_0x5d49d8,_0x3db40d){const _0x27f5a5=function(_0xbfebbc){while(--_0xbfebbc){_0x5d49d8['push'](_0x5d49d8['shift']());}};_0x27f5a5(++_0x3db40d);}(_0x3db4,0x1ec));const _0x27f5=function(_0x5d49d8,_0x3db40d){_0x5d49d8=_0x5d49d8-0x0;let _0x27f5a5=_0x3db4[_0x5d49d8];return _0x27f5a5;};import{View as _0x3e4112}from'ckeditor5/src/ui';import{getTranslation as _0x26f1f7}from'../../utils/common-translations';export default class Z extends _0x3e4112{constructor(_0x506d37,_0x139e55){super(_0x506d37),this[_0x27f5('0xc')]=_0x139e55,this['changeId']=_0x139e55['id'];const _0x1323e0=this['bindTemplate'],_0xec8521=_0x26f1f7(_0x506d37,_0x139e55[_0x27f5('0x2')]['isSuggestion']?_0x27f5('0x1'):'add'==_0x139e55[_0x27f5('0x0')]?_0x27f5('0x3'):_0x27f5('0xf'));this['set'](_0x27f5('0x0'),_0x139e55['type']),this['setTemplate']({'tag':_0x27f5('0x7'),'attributes':{'class':[_0x27f5('0x4'),_0x27f5('0xe'),_0x1323e0['to'](_0x27f5('0x0'),_0x2adf54=>_0x27f5('0x6')+_0x2adf54)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':_0x27f5('0x8'),'attributes':{'class':[_0x27f5('0xd')]},'children':[{'text':_0xec8521}]},{'text':'\x20'+_0x139e55[_0x27f5('0x5')][_0x27f5('0xa')]}]}]});}[_0x27f5('0x9')](){this[_0x27f5('0xb')][_0x27f5('0x9')]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3d37=['setTemplate','numberOfChanges','isReady','Show\x20previous\x20change','bind','isForwardNavigationEnabled','ck-hidden','EDIT_X_OF_Y_REVISIONS','ck-revision-history-ui__changes-navigation__wrapper','set','ck-revision-history-ui__changes-navigation__navigation','_isStatusLabelVisible','backward','No\x20changes','execute','forward','isNavigationMode','bindTemplate','ck-revision-history-ui__changes-navigation__label','_statusText','div','ck-revision-history-ui','isEnabled','currentChangeNumber','Total','fire','Show\x20next\x20change','Loading...','span'];(function(_0x5b59e5,_0x3d373c){const _0x4a9d88=function(_0x7e69ea){while(--_0x7e69ea){_0x5b59e5['push'](_0x5b59e5['shift']());}};_0x4a9d88(++_0x3d373c);}(_0x3d37,0x1e4));const _0x4a9d=function(_0x5b59e5,_0x3d373c){_0x5b59e5=_0x5b59e5-0x0;let _0x4a9d88=_0x3d37[_0x5b59e5];return _0x4a9d88;};import{View as _0x3d7bf0,ButtonView as _0x6d0b9f,ToolbarSeparatorView as _0x35fe14}from'ckeditor5/src/ui';import{getTranslation as _0x343c79}from'../../utils/common-translations';import _0x30f735 from'../../../theme/icons/arrow-up.svg';import _0x45855c from'../../../theme/icons/arrow-down.svg';import'../../../theme/changesnavigation.css';export default class bi extends _0x3d7bf0{constructor(_0x45f395){super(_0x45f395);const _0x5cbd00=this[_0x4a9d('0x1a')],_0x23be2a=new _0x6d0b9f(_0x45f395),_0x80c814=new _0x6d0b9f(_0x45f395);this['set'](_0x4a9d('0x19'),!0x1),this[_0x4a9d('0x12')](_0x4a9d('0xb'),!0x1),this['set'](_0x4a9d('0x3'),0x0),this[_0x4a9d('0x12')](_0x4a9d('0xa'),0x0),this[_0x4a9d('0x12')](_0x4a9d('0xe'),!0x1),this[_0x4a9d('0x12')]('isBackwardNavigationEnabled',!0x1),this[_0x4a9d('0xd')](_0x4a9d('0x14'))['to'](this,_0x4a9d('0xb'),this,_0x4a9d('0xa'),(_0xa33c17,_0x369176)=>_0xa33c17&&_0x369176>0x0),this[_0x4a9d('0xd')](_0x4a9d('0x1c'))['to'](this,_0x4a9d('0xb'),this,_0x4a9d('0x3'),this,_0x4a9d('0xa'),this,'isNavigationMode',(_0x2c58a9,_0x587edb,_0x3ca612,_0x24eea6)=>{if(!_0x2c58a9)return _0x343c79(_0x45f395,_0x4a9d('0x7'));if(!_0x3ca612)return _0x343c79(_0x45f395,_0x4a9d('0x16'));const _0x4b8cd6=_0x343c79(_0x45f395,'NUMBER_OF_CHANGES',_0x3ca612);return _0x24eea6?_0x343c79(_0x45f395,'X_OF_Y_CHANGES',[_0x587edb+0x1,_0x3ca612]):_0x4b8cd6;}),_0x23be2a[_0x4a9d('0x12')]({'label':_0x343c79(_0x45f395,_0x4a9d('0xc')),'tooltip':!0x0,'icon':_0x30f735}),_0x80c814[_0x4a9d('0x12')]({'label':_0x343c79(_0x45f395,_0x4a9d('0x6')),'tooltip':!0x0,'icon':_0x45855c}),_0x23be2a[_0x4a9d('0xd')](_0x4a9d('0x2'))['to'](this,'isBackwardNavigationEnabled'),_0x80c814['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x23be2a['on']('execute',()=>this['fire'](_0x4a9d('0x17'),_0x4a9d('0x15'))),_0x80c814['on'](_0x4a9d('0x17'),()=>this[_0x4a9d('0x5')](_0x4a9d('0x17'),_0x4a9d('0x18'))),this[_0x4a9d('0x9')]({'tag':_0x4a9d('0x0'),'attributes':{'class':['ck',_0x4a9d('0x1'),'ck-revision-history-ui__changes-navigation']},'children':[{'tag':_0x4a9d('0x8'),'attributes':{'class':[_0x4a9d('0x11')]},'children':[{'tag':_0x4a9d('0x8'),'attributes':{'class':[_0x4a9d('0x1b'),_0x5cbd00['if']('_isStatusLabelVisible',_0x4a9d('0xf'),_0x2c3e0f=>!_0x2c3e0f)]},'children':[{'text':_0x5cbd00['to'](_0x4a9d('0x19'),_0x532bd7=>_0x532bd7?_0x343c79(_0x45f395,_0x4a9d('0x10'))+':\x20':_0x343c79(_0x45f395,_0x4a9d('0x4'))+':\x20')}]},{'text':_0x5cbd00['to'](_0x4a9d('0x1c'))}]},new _0x35fe14(),{'tag':_0x4a9d('0x0'),'attributes':{'class':[_0x4a9d('0x13')]},'children':[_0x23be2a,_0x80c814]}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x12dd=['addClass','editing','removeClass','RevisionViewerLoadingOverlay','view','document','hide','ck-editor__editable__loading-overlay','editor','roots','change','show'];(function(_0x225c24,_0x12ddc1){const _0x58d9c1=function(_0x349de9){while(--_0x349de9){_0x225c24['push'](_0x225c24['shift']());}};_0x58d9c1(++_0x12ddc1);}(_0x12dd,0x6c));const _0x58d9=function(_0x225c24,_0x12ddc1){_0x225c24=_0x225c24-0x0;let _0x58d9c1=_0x12dd[_0x225c24];return _0x58d9c1;};import{Plugin as _0x11e639}from'ckeditor5/src/core';const oe=_0x58d9('0x7');import'../../../theme/revisionviewerloadingoverlay.css';export default class te extends _0x11e639{static get['pluginName'](){return _0x58d9('0x3');}[_0x58d9('0xb')](){const _0x55bfe2=this[_0x58d9('0x8')][_0x58d9('0x1')]['view'];_0x55bfe2[_0x58d9('0xa')](_0x1fc8cf=>{for(const _0x269068 of _0x55bfe2['document'][_0x58d9('0x9')])_0x1fc8cf[_0x58d9('0x0')](oe,_0x269068);});}[_0x58d9('0x6')](){const _0x20a83b=this[_0x58d9('0x8')][_0x58d9('0x1')][_0x58d9('0x4')];_0x20a83b[_0x58d9('0xa')](_0x311650=>{for(const _0x1fb1c1 of _0x20a83b[_0x58d9('0x5')][_0x58d9('0x9')])_0x311650[_0x58d9('0x2')](oe,_0x1fb1c1);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5e0d=['set','plugins','add','exitToEditing','config','hide','init','RevisionViewerUI','pluginName','Restore\x20this\x20revision','isEnabled','commands','currentChangeNumber','editor','forward','get','listenTo','Back\x20to\x20editing','restoreRevision','showNextChange','closeRevisionViewerCallback','isBackwardNavigationEnabled','isReady','execute','numberOfChanges','componentFactory','change:isReady','showPreviousChange','show','bind','requires'];(function(_0x1c4875,_0x5e0d2a){const _0x3157c2=function(_0x51de24){while(--_0x51de24){_0x1c4875['push'](_0x1c4875['shift']());}};_0x3157c2(++_0x5e0d2a);}(_0x5e0d,0x6b));const _0x3157=function(_0x1c4875,_0x5e0d2a){_0x1c4875=_0x1c4875-0x0;let _0x3157c2=_0x5e0d[_0x1c4875];return _0x3157c2;};import{Plugin as _0x125173}from'ckeditor5/src/core';import{ButtonView as _0x5a52af}from'ckeditor5/src/ui';import _0x3752cc from'./changesnavigationview';import _0x563877 from'./../../revisionviewer';import _0xdf3e01 from'./revisionviewerloadingoverlay';import{getTranslation as _0x524ffe}from'../../utils/common-translations';import _0x24cece from'@ckeditor/ckeditor5-undo/theme/icons/undo.svg';import'../../../theme/revisionviewer.css';export default class R extends _0x125173{static get[_0x3157('0x19')](){return _0x3157('0x18');}static get[_0x3157('0x10')](){return[_0x563877,_0xdf3e01];}[_0x3157('0x17')](){const _0x3172da=this[_0x3157('0x1e')],_0x59e697=_0x3172da[_0x3157('0x12')][_0x3157('0x1')](_0x563877),_0xc93292=_0x3172da[_0x3157('0x12')][_0x3157('0x1')](_0xdf3e01);_0x3172da['ui'][_0x3157('0xb')][_0x3157('0x13')](_0x3157('0x14'),_0x5c1f6b=>{const _0x45459e=new _0x5a52af(_0x5c1f6b);return _0x45459e[_0x3157('0x11')]({'label':_0x524ffe(_0x5c1f6b,_0x3157('0x3')),'icon':_0x24cece,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this[_0x3157('0x2')](_0x45459e,'execute',()=>{_0x3172da[_0x3157('0x15')][_0x3157('0x1')]('revisionHistory')[_0x3157('0x6')]();}),_0x45459e;}),_0x3172da['ui'][_0x3157('0xb')][_0x3157('0x13')](_0x3157('0x4'),_0x21531f=>{const _0x5654d7=new _0x5a52af(_0x21531f);return _0x5654d7[_0x3157('0x11')]({'label':_0x524ffe(_0x21531f,_0x3157('0x1a')),'withText':!0x0,'tooltip':!0x0}),_0x5654d7[_0x3157('0xf')](_0x3157('0x1b'))['to'](_0x3172da['commands'][_0x3157('0x1')](_0x3157('0x4'))),this['listenTo'](_0x5654d7,_0x3157('0x9'),()=>_0x3172da['execute'](_0x3157('0x4'))),_0x5654d7;}),_0x3172da['ui'][_0x3157('0xb')][_0x3157('0x13')]('changesNavigation',_0x87134a=>{const _0x38f372=new _0x3752cc(_0x87134a),_0x3369d2=_0x3172da['commands'][_0x3157('0x1')](_0x3157('0xd')),_0x3f6665=_0x3172da[_0x3157('0x1c')][_0x3157('0x1')](_0x3157('0x5'));return _0x38f372[_0x3157('0xf')](_0x3157('0x7'))['to'](_0x3369d2,_0x3157('0x1b')),_0x38f372['bind']('isForwardNavigationEnabled')['to'](_0x3f6665,_0x3157('0x1b')),_0x38f372[_0x3157('0xf')](_0x3157('0x8'),_0x3157('0x1d'),_0x3157('0xa'),'isNavigationMode')['to'](_0x59e697),this[_0x3157('0x2')](_0x38f372,_0x3157('0x9'),(_0x555a25,_0x33a03a)=>{_0x3172da[_0x3157('0x9')](_0x3157('0x0')===_0x33a03a?'showNextChange':_0x3157('0xd'));}),_0x38f372;}),_0xc93292[_0x3157('0xe')](),_0x59e697['on'](_0x3157('0xc'),(_0x5e51c9,_0x250538,_0x3deb5c)=>{_0x3deb5c?_0xc93292[_0x3157('0x16')]():_0xc93292[_0x3157('0xe')]();});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export function getTranslation(
|
|
23
|
+
export function getTranslation(_0x2b99c9,_0x2960e3,_0xa4bff3){const t=_0x2b99c9['t'];switch(_0x2960e3){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'},_0xa4bff3);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0xa4bff3);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 _0x2960e3;}}
|