@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20231206.0 → 0.0.0-nightly-20231208.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 +10 -10
- 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 _0x1938=['length','isReady','remove','revisionName','set','RevisionTracker','plugins','children','editor','panelView','Revision\x20history','history','isEnabled','saveRevision','reset','get','revisionHistory','bind','RevisionHistoryUI','showRevisionViewerCallback','saveButtonView','submit','init','focus','render','config','add','execute','requires','isReadOnly','change:isOpen','pluginName','addMany','cancel','editing','componentFactory'];(function(_0x2669ce,_0x1938b4){const _0x5c0b15=function(_0x20c488){while(--_0x20c488){_0x2669ce['push'](_0x2669ce['shift']());}};_0x5c0b15(++_0x1938b4);}(_0x1938,0x105));const _0x5c0b=function(_0x2669ce,_0x1938b4){_0x2669ce=_0x2669ce-0x0;let _0x5c0b15=_0x1938[_0x2669ce];return _0x5c0b15;};import{Plugin as _0x593065,icons as _0x267413}from'ckeditor5/src/core';import{ListView as _0x1bb7e7,ListItemView as _0x3ae39b,ButtonView as _0x70cd,createDropdown as _0x2105b1}from'ckeditor5/src/ui';import _0x1d5f7a from'../../revisiontracker';import _0x18d27b from'./revisionhistorysaverevisionformview';import{getTranslation as _0x3a5e93}from'../../utils/common-translations';export default class u extends _0x593065{static get[_0x5c0b('0x16')](){return _0x5c0b('0x9');}static get[_0x5c0b('0x13')](){return[_0x1d5f7a];}[_0x5c0b('0xd')](){const _0xa4d852=this[_0x5c0b('0x23')],_0x4b9161=_0xa4d852['plugins']['get'](_0x5c0b('0x20'));_0xa4d852['ui'][_0x5c0b('0x1a')]['add'](_0x5c0b('0x7'),_0x22bf03=>{const _0x4ac4d8=_0x2105b1(_0x22bf03),_0x2816dc=_0x4ac4d8[_0x5c0b('0x0')][_0x5c0b('0x22')],_0x169df9=new _0x1bb7e7(_0x22bf03),_0x31708d=new _0x3ae39b(_0x22bf03),_0xe2cb5f=new _0x70cd(_0x22bf03),_0x161229=new _0x3ae39b(_0x22bf03),_0x388093=new _0x70cd(_0x22bf03),_0x213451=new _0x18d27b(_0x22bf03);function _0x9a45e(){_0x2816dc[_0x5c0b('0x1b')]&&_0x2816dc['remove'](0x0),_0x2816dc[_0x5c0b('0x11')](_0x169df9);}function _0x138d10(){_0x4ac4d8['isOpen']=!0x1,_0xa4d852[_0x5c0b('0x19')]['view'][_0x5c0b('0xe')]();}return _0x4ac4d8['bind'](_0x5c0b('0x3'))['to'](_0x4b9161,_0x5c0b('0x1c'),_0x4b9161,_0x5c0b('0x3'),_0xa4d852,_0x5c0b('0x14'),(_0x1a2307,_0x4532a8,_0xf5907a)=>_0x1a2307&&_0x4532a8&&!_0xf5907a),_0x4ac4d8['buttonView'][_0x5c0b('0x1f')]({'icon':_0x267413[_0x5c0b('0x2')],'label':_0x3a5e93(_0x22bf03,_0x5c0b('0x1')),'tooltip':!0x0}),_0xe2cb5f[_0x5c0b('0x1f')]({'label':_0x3a5e93(_0x22bf03,'Save\x20current\x20revision'),'withText':!0x0}),_0xe2cb5f[_0x5c0b('0x8')](_0x5c0b('0x3'))['to'](_0x4b9161,'isReady',_0x4b9161,_0x5c0b('0x3'),_0xa4d852,_0x5c0b('0x14'),(_0x377bc3,_0x50ee4d,_0x405f77)=>_0x377bc3&&_0x50ee4d&&!_0x405f77),_0xe2cb5f['on'](_0x5c0b('0x12'),()=>function(){_0x2816dc[_0x5c0b('0x1b')]&&_0x2816dc[_0x5c0b('0x1d')](0x0),(_0x213451[_0x5c0b('0x5')](),_0x2816dc[_0x5c0b('0x11')](_0x213451),_0x213451[_0x5c0b('0xe')]());}()),_0x388093['set']({'label':_0x3a5e93(_0x22bf03,'Open\x20revision\x20history'),'withText':!0x0}),_0x388093[_0x5c0b('0x8')](_0x5c0b('0x3'))['to'](_0x4b9161,_0x5c0b('0x1c'),_0xa4d852,_0x5c0b('0x14'),(_0x1f3678,_0x30e4ac)=>_0x1f3678&&!_0x30e4ac),_0x388093['on'](_0x5c0b('0x12'),()=>{_0xa4d852[_0x5c0b('0x10')][_0x5c0b('0x6')](_0x5c0b('0x7'))[_0x5c0b('0xa')](),_0x138d10();}),_0x31708d[_0x5c0b('0x22')]['add'](_0xe2cb5f),_0x161229[_0x5c0b('0x22')][_0x5c0b('0x11')](_0x388093),_0x169df9['items'][_0x5c0b('0x17')]([_0x31708d,_0x161229]),_0x4ac4d8['on'](_0x5c0b('0x15'),()=>_0x9a45e()),_0x213451[_0x5c0b('0xb')][_0x5c0b('0x8')](_0x5c0b('0x3'))['to'](_0x4b9161,_0x5c0b('0x1c'),_0x4b9161,_0x5c0b('0x3'),_0xa4d852,_0x5c0b('0x14'),(_0x492b41,_0x340f7a,_0x28f275)=>_0x492b41&&_0x340f7a&&!_0x28f275),_0x213451['on'](_0x5c0b('0xc'),()=>(_0xa4d852[_0x5c0b('0x21')][_0x5c0b('0x6')](_0x1d5f7a)[_0x5c0b('0x4')]({'name':_0x213451[_0x5c0b('0x1e')]}),void _0x138d10())),_0x213451['on'](_0x5c0b('0x18'),()=>_0x9a45e()),_0x213451[_0x5c0b('0xf')](),_0x9a45e(),_0x4ac4d8;});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1dcb=['_revisionViewer','add','ready','getIndex','isEnabled','availableRevisionActions','name','revisionHistory.revisionActions','revisionSelected','_sidebarView','getRevision','diff','destroy','Restore\x20this\x20revision','revisionViews','length','element','RevisionsSidebar','init','compare','_handleRevisionSelected','config','bind','requires','select','render','editor','_handleEditorDataReady','_handleRevisionSetName','isReady','repository','isVisible','_revisionsRepository','Compare\x20against\x20selected','highlightRevisions','compareAgainstSelected','locale','getLaterVisibleRevision','_revisions','fieldView','_handleDiffChange','isSelected','getEarlierVisibleRevision','listenTo','getRevisionsInDiff','remove','get','revisionSetName','_createRevisionActions','appendChild','revisionHistory','revisionHistory.viewerSidebarContainer','setName','selectRevision','action','restoreRevisionCallback','map','restoreRevision','focus'];(function(_0x5f2771,_0x1dcb21){const _0x44d152=function(_0x49f4ab){while(--_0x49f4ab){_0x5f2771['push'](_0x5f2771['shift']());}};_0x44d152(++_0x1dcb21);}(_0x1dcb,0x1f4));const _0x44d1=function(_0x5f2771,_0x1dcb21){_0x5f2771=_0x5f2771-0x0;let _0x44d152=_0x1dcb[_0x5f2771];return _0x44d152;};import{Plugin as _0x145d13}from'ckeditor5/src/core';import _0x2e0aa3 from'./revisionssidebarview';import _0x25b293 from'../../revisionviewer';export default class w extends _0x145d13{static get['pluginName'](){return _0x44d1('0x30');}static get[_0x44d1('0x36')](){return[_0x25b293];}constructor(_0x26c13e){super(_0x26c13e),this[_0x44d1('0x1f')]=_0x26c13e['plugins'][_0x44d1('0x12')](_0x25b293),this[_0x44d1('0x4')]=this[_0x44d1('0x1f')]['repository'],this['_sidebarView']=null;}[_0x44d1('0x31')](){const _0x427b53=this['_revisionsRepository'][_0x44d1('0xa')],_0x2d699f=this[_0x44d1('0x14')](),_0xe2b571=this[_0x44d1('0x39')][_0x44d1('0x34')][_0x44d1('0x12')](_0x44d1('0x17'));this[_0x44d1('0x28')]=new _0x2e0aa3(this['editor'][_0x44d1('0x8')],_0x427b53,_0x2d699f),this[_0x44d1('0x28')]['on'](_0x44d1('0x27'),this[_0x44d1('0x33')][_0x44d1('0x35')](this)),this[_0x44d1('0x28')]['on'](_0x44d1('0x13'),this['_handleRevisionSetName'][_0x44d1('0x35')](this)),this[_0x44d1('0x28')][_0x44d1('0x35')](_0x44d1('0x23'))['to'](this[_0x44d1('0x1f')]),this[_0x44d1('0x28')]['timePeriodViews']['on'](_0x44d1('0x20'),(_0x18033b,_0x11808f)=>{_0x11808f[_0x44d1('0x2d')]['on'](_0x44d1('0x20'),(_0x35f561,_0x1ee82e)=>{_0x1ee82e[_0x44d1('0x35')](_0x44d1('0x23'),_0x44d1('0x1'))['to'](this[_0x44d1('0x1f')]);});}),this['_sidebarView'][_0x44d1('0x38')](),this[_0x44d1('0xf')](this['editor']['data'],_0x44d1('0x21'),this['_handleEditorDataReady'][_0x44d1('0x35')](this)),this[_0x44d1('0xf')](this['_revisionViewer'],'change:diff',this[_0x44d1('0xc')]['bind'](this)),_0xe2b571[_0x44d1('0x15')](this[_0x44d1('0x28')]['element']);}[_0x44d1('0x2b')](){this[_0x44d1('0x28')][_0x44d1('0x2f')][_0x44d1('0x11')](),this['_sidebarView'][_0x44d1('0x2b')]();}[_0x44d1('0x3a')](){const _0x5dd689=this[_0x44d1('0x4')][_0x44d1('0x29')](0x0);if(_0x5dd689){const _0x471146=this['_revisionsRepository'][_0x44d1('0xe')](_0x5dd689['id']);this['_revisionViewer'][_0x44d1('0x32')](_0x5dd689,_0x471146);}}[_0x44d1('0x33')](_0x30d26b,_0x1004bb){const _0x21b322=this[_0x44d1('0x4')][_0x44d1('0x29')](_0x1004bb['id']),_0x4bd307=this[_0x44d1('0x4')][_0x44d1('0xe')](_0x21b322['id']);this[_0x44d1('0x1f')]['compare'](_0x21b322,_0x4bd307);}[_0x44d1('0x0')](_0x18cf9e,_0x5743cb){this[_0x44d1('0x4')][_0x44d1('0x29')](_0x5743cb['id'])[_0x44d1('0x18')](_0x5743cb[_0x44d1('0x25')]);}[_0x44d1('0xc')](_0x48d1d0,_0x27a830,_0x185f4d){const _0x197bf4=this[_0x44d1('0x4')][_0x44d1('0x10')](_0x185f4d);_0x197bf4[_0x44d1('0x2e')]>0x2?(this[_0x44d1('0x28')][_0x44d1('0x6')](_0x197bf4),this[_0x44d1('0x28')]['selectRevision'](null)):(this[_0x44d1('0x28')][_0x44d1('0x6')]([]),this[_0x44d1('0x28')][_0x44d1('0x19')](_0x197bf4[0x0]));}['_createRevisionActions'](){const _0x505a8b=this[_0x44d1('0x39')],_0x2a9325=w[_0x44d1('0x24')],_0x291b04=_0x505a8b[_0x44d1('0x34')][_0x44d1('0x12')](_0x44d1('0x26'))||w['defaultRevisionActions'];if(_0x291b04[_0x44d1('0x2e')])return _0x291b04[_0x44d1('0x1c')](_0x125ce8=>{const _0x4f704e='string'==typeof _0x125ce8?Object['assign']({},_0x2a9325[_0x125ce8]):_0x125ce8;return _0x4f704e['action']=_0x4f704e[_0x44d1('0x1a')]['bind'](this,_0x505a8b),_0x4f704e['isVisible']&&(_0x4f704e[_0x44d1('0x3')]=_0x4f704e[_0x44d1('0x3')][_0x44d1('0x35')](this,_0x505a8b)),_0x4f704e;});}}w[_0x44d1('0x24')]={'compareAgainstSelected':{'name':_0x44d1('0x5'),'action':({plugins:_0x18dfa8},_0x27a60f)=>{const _0x34ecb1=_0x18dfa8[_0x44d1('0x12')](_0x25b293),_0x1f8faa=_0x34ecb1[_0x44d1('0x2')];let _0x11b884=_0x34ecb1[_0x44d1('0x2a')]['newRevisionId'],_0xc3f86f=_0x27a60f['id'];_0x1f8faa[_0x44d1('0x22')](_0x11b884)>_0x1f8faa[_0x44d1('0x22')](_0xc3f86f)&&([_0x11b884,_0xc3f86f]=[_0xc3f86f,_0x11b884]),_0x34ecb1[_0x44d1('0x32')](_0x11b884,_0xc3f86f);},'isVisible':({plugins:_0x1ecfa3},_0x1e78c9)=>{const _0x2d2e65=_0x1ecfa3[_0x44d1('0x12')](_0x25b293);return!(_0x2d2e65[_0x44d1('0x2')][_0x44d1('0x10')](_0x2d2e65['diff'])[_0x44d1('0x2e')]>0x2)&&!_0x1e78c9[_0x44d1('0xd')];}},'restoreRevision':{'name':_0x44d1('0x2c'),'action':(_0x543a5b,{id:_0x40b15f})=>{_0x543a5b[_0x44d1('0x34')]['get'](_0x44d1('0x16'))[_0x44d1('0x1b')](_0x40b15f);},'isVisible':({plugins:_0x468eba},_0xafeda8)=>!!_0x468eba[_0x44d1('0x12')](_0x25b293)[_0x44d1('0x2')][_0x44d1('0x9')](_0xafeda8['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x2fb537},{id:_0x386efb,revisionNameView:_0x50448})=>{const _0x552506=_0x2fb537[_0x44d1('0x12')](_0x25b293),_0x35bde6=_0x552506['repository'][_0x44d1('0xe')](_0x386efb);_0x552506[_0x44d1('0x32')](_0x386efb,_0x35bde6),_0x50448[_0x44d1('0x1e')](),_0x50448[_0x44d1('0xb')][_0x44d1('0x37')]();}}},w['defaultRevisionActions']=[_0x44d1('0x7'),_0x44d1('0x1d'),'nameRevision'];
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5513=['history','span','div','setTemplate','content','ck-revision-history-sidebar__header','Revision\x20history','ck-revision-history-sidebar__header__label'];(function(_0x503b2a,_0x551311){const _0x1f5aee=function(_0x6b611e){while(--_0x6b611e){_0x503b2a['push'](_0x503b2a['shift']());}};_0x1f5aee(++_0x551311);}(_0x5513,0x1b5));const _0x1f5a=function(_0x503b2a,_0x551311){_0x503b2a=_0x503b2a-0x0;let _0x1f5aee=_0x5513[_0x503b2a];return _0x1f5aee;};import{View as _0x2f44d9,IconView as _0x238cf8}from'ckeditor5/src/ui';import{getTranslation as _0x3d7e10}from'../../utils/common-translations';import{icons as _0x264716}from'ckeditor5/src/core';import'../../../theme/revisionssidebar/revisionssidebarheader.css';export default class rr extends _0x2f44d9{constructor(_0x55c906){super(_0x55c906);const _0x2d499c=new _0x238cf8();_0x2d499c[_0x1f5a('0x7')]=_0x264716[_0x1f5a('0x3')],this[_0x1f5a('0x6')]({'tag':_0x1f5a('0x5'),'attributes':{'class':['ck','ck-reset_all',_0x1f5a('0x0')]},'children':[_0x2d499c,{'tag':_0x1f5a('0x4'),'attributes':{'class':['ck',_0x1f5a('0x2')]},'children':[_0x3d7e10(_0x55c906,_0x1f5a('0x1'))]}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1b89=['ck-revision-history-sidebar__time-period','delegate','setName','select','div','createCollection','setTemplate','locale','ck-revision-history-sidebar__time-period__label','add','_revisionActions','revisionViews','localizedPeriodName','removeRevision','startDate','span','find','remove','uiLanguage'];(function(_0x3563d0,_0x1b896d){const _0x1821b8=function(_0x28ca7c){while(--_0x28ca7c){_0x3563d0['push'](_0x3563d0['shift']());}};_0x1821b8(++_0x1b896d);}(_0x1b89,0x144));const _0x1821=function(_0x3563d0,_0x1b896d){_0x3563d0=_0x3563d0-0x0;let _0x1821b8=_0x1b89[_0x3563d0];return _0x1821b8;};import{View as _0x56fb10}from'ckeditor5/src/ui';import _0x4bf157 from'../revision/revisionview';import{getDateTimePeriodInfo as _0x27f69a}from'./utils';import'../../../theme/revisionssidebar/revisionssidebartimeperiod.css';export default class pi extends _0x56fb10{constructor(_0x49ffbe,_0x2c8ce0,_0x302df1){super(_0x49ffbe);const _0x55ae05=_0x27f69a(_0x2c8ce0,this[_0x1821('0x6')][_0x1821('0x11')])[_0x1821('0xb')];this[_0x1821('0xd')]=_0x2c8ce0,this['revisionViews']=this[_0x1821('0x4')](),this[_0x1821('0x9')]=_0x302df1,this['revisionViews'][_0x1821('0x0')](_0x1821('0x2'))['to'](this),this[_0x1821('0xa')][_0x1821('0x0')](_0x1821('0x1'))['to'](this),this[_0x1821('0x5')]({'tag':_0x1821('0x3'),'attributes':{'class':['ck',_0x1821('0x12')]},'children':[{'tag':_0x1821('0xe'),'attributes':{'class':['ck',_0x1821('0x7')]},'children':[{'text':_0x55ae05}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this[_0x1821('0xa')]}]});}['addRevision'](_0xf39067){const _0x170452=new _0x4bf157(this[_0x1821('0x6')],_0xf39067,this[_0x1821('0x9')]);this['revisionViews'][_0x1821('0x8')](_0x170452);}[_0x1821('0xc')](_0x253fee){const _0x4144c3=this[_0x1821('0xa')][_0x1821('0xf')](_0x3244d8=>_0x3244d8['id']===_0x253fee['id']);this[_0x1821('0xa')][_0x1821('0x10')](_0x4144c3);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4077=['startDate','ck-disabled','deselect','_addRevision','revisionSelected','set','locale','bindTemplate','select','delegate','render','_getTimePeriodViewByStartDate','_removeRevision','revisionViews','ck-revision-history-sidebar__timeline','selectRevision','_revisions','flat','timePeriodViews','uiLanguage','unhighlight','highlight','revisionSetName','get','isEnabled','setTemplate','createdAt','div','ck-rounded-corners','getTime','addRevision','map','add','setName','fire'];(function(_0x5aa378,_0x407794){const _0x378b63=function(_0x440ba2){while(--_0x440ba2){_0x5aa378['push'](_0x5aa378['shift']());}};_0x378b63(++_0x407794);}(_0x4077,0x1e1));const _0x378b=function(_0x5aa378,_0x407794){_0x5aa378=_0x5aa378-0x0;let _0x378b63=_0x4077[_0x5aa378];return _0x378b63;};import{View as _0xa75439}from'ckeditor5/src/ui';import _0x53a6d0 from'./revisionssidebartimeperiodview';import _0x8fb041 from'./revisionssidebarheaderview';import{getDateTimePeriodInfo as _0x21d001}from'./utils';import'../../../theme/revisionssidebar/revisionssidebar.css';export default class vi extends _0xa75439{constructor(_0x1f118d,_0x5c295b,_0x38f1c1){super(_0x1f118d);const _0x356304=this[_0x378b('0x10')];this[_0x378b('0x1b')]=this['createCollection'](),this[_0x378b('0x1b')][_0x378b('0x12')](_0x378b('0x11'))['to'](this),this[_0x378b('0x1b')][_0x378b('0x12')]('setName')['to'](this),this['_revisions']=_0x5c295b,this['_revisionActions']=_0x38f1c1,this['on'](_0x378b('0x11'),(_0x36703f,_0x5dde54)=>{this[_0x378b('0x8')](_0x378b('0xd'),_0x5dde54);}),this['on'](_0x378b('0x7'),(_0x4bf42c,_0x131511)=>{this[_0x378b('0x8')](_0x378b('0x1f'),_0x131511);}),this[_0x378b('0xe')]('isEnabled',!0x1),this[_0x378b('0x22')]({'tag':_0x378b('0x1'),'attributes':{'class':['ck','ck-reset',_0x378b('0x2'),'ck-revision-history-sidebar']},'children':[new _0x8fb041(_0x1f118d),{'tag':_0x378b('0x1'),'attributes':{'class':['ck',_0x378b('0x17'),_0x356304['if'](_0x378b('0x21'),_0x378b('0xa'),_0x5004e4=>!_0x5004e4)]},'children':this[_0x378b('0x1b')]}]});}[_0x378b('0x13')](){super[_0x378b('0x13')]();for(const _0xb0d43c of this['_revisions'])this[_0x378b('0xc')](_0xb0d43c);this['_revisions']['on'](_0x378b('0x6'),(_0x220f44,_0x1ee083)=>{this['_addRevision'](_0x1ee083);}),this[_0x378b('0x19')]['on']('remove',(_0x575110,_0x3c545e)=>{this[_0x378b('0x15')](_0x3c545e);});}get[_0x378b('0x16')](){return this['timePeriodViews'][_0x378b('0x5')](_0x127ef1=>_0x127ef1[_0x378b('0x16')][_0x378b('0x5')](_0x5cdc1c=>_0x5cdc1c))[_0x378b('0x1a')]();}[_0x378b('0x18')](_0x2bb420){for(const _0x361142 of this[_0x378b('0x16')])_0x2bb420&&_0x2bb420['id']===_0x361142['id']?_0x361142[_0x378b('0x11')]():_0x361142[_0x378b('0xb')]();}['highlightRevisions'](_0x237054){for(const _0x4fc089 of this[_0x378b('0x16')])_0x237054['some'](({id:_0x1e3dc5})=>_0x1e3dc5===_0x4fc089['id'])?_0x4fc089[_0x378b('0x1e')]():_0x4fc089[_0x378b('0x1d')]();}[_0x378b('0xc')](_0x571e71){const _0x4f6e3f=_0x21d001(_0x571e71[_0x378b('0x0')],this[_0x378b('0xf')][_0x378b('0x1c')])[_0x378b('0x9')];let _0x1d7f2=this[_0x378b('0x1b')][_0x378b('0x20')](0x0);_0x1d7f2&&_0x1d7f2[_0x378b('0x9')]['getTime']()===_0x4f6e3f[_0x378b('0x3')]()||(_0x1d7f2=new _0x53a6d0(this['locale'],_0x4f6e3f,this['_revisionActions']),this['timePeriodViews'][_0x378b('0x6')](_0x1d7f2)),_0x1d7f2[_0x378b('0x4')](_0x571e71);}[_0x378b('0x15')](_0x4889fc){const _0x15641b=_0x21d001(_0x4889fc['createdAt'],this[_0x378b('0xf')][_0x378b('0x1c')])[_0x378b('0x9')];this[_0x378b('0x14')](_0x15641b)['removeRevision'](_0x4889fc);}[_0x378b('0x14')](_0x570b15){return this['timePeriodViews']['find'](_0x4cb1cb=>_0x4cb1cb[_0x378b('0x9')]['getTime']()===_0x570b15[_0x378b('0x3')]());}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4a96=['hasSame','weekdayLong','startOf','setLocale','day','local','monthLong','year','fromJSDate','toRelativeCalendar','week','toJSDate'];(function(_0x6542b4,_0x4a967a){const _0x1cdbfa=function(_0x131754){while(--_0x131754){_0x6542b4['push'](_0x6542b4['shift']());}};_0x1cdbfa(++_0x4a967a);}(_0x4a96,0x7e));const _0x1cdb=function(_0x6542b4,_0x4a967a){_0x6542b4=_0x6542b4-0x0;let _0x1cdbfa=_0x4a96[_0x6542b4];return _0x1cdbfa;};import{DateTime as _0x584daf}from'luxon';export function getDateTimePeriodInfo(_0x129f31,_0x48e13d){const _0x4f264d=_0x584daf[_0x1cdb('0x2')](_0x129f31)[_0x1cdb('0x9')](_0x48e13d),_0x43e915=_0x584daf[_0x1cdb('0xb')](),_0x1a128b=_0x43e915['minus']({'days':0x1})[_0x1cdb('0x8')]('day');let _0xa9f16,_0x3f5689;return _0x4f264d['hasSame'](_0x43e915,_0x1cdb('0xa'))?(_0xa9f16=_0x4f264d[_0x1cdb('0x8')](_0x1cdb('0xa'))[_0x1cdb('0x5')](),_0x3f5689=_0x4f264d[_0x1cdb('0x3')]()):_0x4f264d['hasSame'](_0x1a128b,_0x1cdb('0xa'))?(_0xa9f16=_0x1a128b['toJSDate'](),_0x3f5689=_0x4f264d[_0x1cdb('0x3')]()):_0x4f264d['hasSame'](_0x43e915,'week')?(_0xa9f16=_0x4f264d[_0x1cdb('0x8')](_0x1cdb('0x4'))['toJSDate'](),_0x3f5689=_0x4f264d[_0x1cdb('0x7')]||''):_0x4f264d[_0x1cdb('0x6')](_0x43e915,_0x1cdb('0x1'))?(_0xa9f16=_0x4f264d[_0x1cdb('0x8')]('month')[_0x1cdb('0x5')](),_0x3f5689=_0x4f264d[_0x1cdb('0x0')]||''):(_0xa9f16=_0x4f264d['startOf'](_0x1cdb('0x1'))['toJSDate'](),_0x3f5689=String(_0x4f264d[_0x1cdb('0x1')])),{'startDate':_0xa9f16,'localizedPeriodName':_0x3f5689};}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x48a4=['isSuggestion','set','type','ck-revision-change__label','_model','bindTemplate','setTemplate','div','name','span','Added\x20by','data','element','Removed\x20by','ck-annotation'];(function(_0x1373c6,_0x48a486){const _0x1c87d3=function(_0x269544){while(--_0x269544){_0x1373c6['push'](_0x1373c6['shift']());}};_0x1c87d3(++_0x48a486);}(_0x48a4,0xb5));const _0x1c87=function(_0x1373c6,_0x48a486){_0x1373c6=_0x1373c6-0x0;let _0x1c87d3=_0x48a4[_0x1373c6];return _0x1c87d3;};import{View as _0x9c2a4a}from'ckeditor5/src/ui';import{getTranslation as _0x1723c4}from'../../utils/common-translations';export default class Z extends _0x9c2a4a{constructor(_0xc95779,_0x2e9fe0){super(_0xc95779),this[_0x1c87('0x3')]=_0x2e9fe0,this['changeId']=_0x2e9fe0['id'];const _0x402238=this[_0x1c87('0x4')],_0x20e3e7=_0x1723c4(_0xc95779,_0x2e9fe0[_0x1c87('0xa')][_0x1c87('0xe')]?'Suggested\x20by':'add'==_0x2e9fe0['type']?_0x1c87('0x9'):_0x1c87('0xc'));this[_0x1c87('0x0')]('type',_0x2e9fe0[_0x1c87('0x1')]),this[_0x1c87('0x5')]({'tag':_0x1c87('0x6'),'attributes':{'class':[_0x1c87('0xd'),'ck-revision-change',_0x402238['to'](_0x1c87('0x1'),_0x775f47=>'ck-revision-change__'+_0x775f47)],'tabindex':-0x1},'children':[{'tag':_0x1c87('0x8'),'children':[{'tag':'span','attributes':{'class':[_0x1c87('0x2')]},'children':[{'text':_0x20e3e7}]},{'text':'\x20'+_0x2e9fe0['author'][_0x1c87('0x7')]}]}]});}['focus'](){this[_0x1c87('0xb')]['focus']();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x10dd=['Show\x20next\x20change','setTemplate','bindTemplate','div','fire','ck-revision-history-ui__changes-navigation','isReady','span','currentChangeNumber','_isStatusLabelVisible','NUMBER_OF_CHANGES','numberOfChanges','isBackwardNavigationEnabled','backward','isNavigationMode','No\x20changes','Show\x20previous\x20change','forward','bind','set','execute','ck-revision-history-ui','isForwardNavigationEnabled','_statusText','Loading...','EDIT_X_OF_Y_REVISIONS','Total'];(function(_0x3b4a0b,_0x10dd22){const _0x23d279=function(_0x4665d1){while(--_0x4665d1){_0x3b4a0b['push'](_0x3b4a0b['shift']());}};_0x23d279(++_0x10dd22);}(_0x10dd,0x15d));const _0x23d2=function(_0x3b4a0b,_0x10dd22){_0x3b4a0b=_0x3b4a0b-0x0;let _0x23d279=_0x10dd[_0x3b4a0b];return _0x23d279;};import{View as _0x25fa93,ButtonView as _0x547048,ToolbarSeparatorView as _0xe0c0a6}from'ckeditor5/src/ui';import{getTranslation as _0xe60b04}from'../../utils/common-translations';import _0x170933 from'../../../theme/icons/arrow-up.svg';import _0x7ec52e from'../../../theme/icons/arrow-down.svg';import'../../../theme/changesnavigation.css';export default class bi extends _0x25fa93{constructor(_0x5e83de){super(_0x5e83de);const _0x152d2c=this[_0x23d2('0x4')],_0x3a8076=new _0x547048(_0x5e83de),_0x803ad2=new _0x547048(_0x5e83de);this[_0x23d2('0x15')](_0x23d2('0x10'),!0x1),this[_0x23d2('0x15')]('isReady',!0x1),this[_0x23d2('0x15')]('currentChangeNumber',0x0),this[_0x23d2('0x15')](_0x23d2('0xd'),0x0),this[_0x23d2('0x15')](_0x23d2('0x18'),!0x1),this[_0x23d2('0x15')](_0x23d2('0xe'),!0x1),this[_0x23d2('0x14')](_0x23d2('0xb'))['to'](this,'isReady',this,_0x23d2('0xd'),(_0x4456e8,_0x20b826)=>_0x4456e8&&_0x20b826>0x0),this[_0x23d2('0x14')](_0x23d2('0x19'))['to'](this,_0x23d2('0x8'),this,_0x23d2('0xa'),this,'numberOfChanges',this,_0x23d2('0x10'),(_0x40f38f,_0x143b62,_0x1aa5b9,_0x2e5985)=>{if(!_0x40f38f)return _0xe60b04(_0x5e83de,_0x23d2('0x1a'));if(!_0x1aa5b9)return _0xe60b04(_0x5e83de,_0x23d2('0x11'));const _0x29e8db=_0xe60b04(_0x5e83de,_0x23d2('0xc'),_0x1aa5b9);return _0x2e5985?_0xe60b04(_0x5e83de,'X_OF_Y_CHANGES',[_0x143b62+0x1,_0x1aa5b9]):_0x29e8db;}),_0x3a8076['set']({'label':_0xe60b04(_0x5e83de,_0x23d2('0x12')),'tooltip':!0x0,'icon':_0x170933}),_0x803ad2['set']({'label':_0xe60b04(_0x5e83de,_0x23d2('0x2')),'tooltip':!0x0,'icon':_0x7ec52e}),_0x3a8076[_0x23d2('0x14')]('isEnabled')['to'](this,_0x23d2('0xe')),_0x803ad2[_0x23d2('0x14')]('isEnabled')['to'](this,_0x23d2('0x18')),_0x3a8076['on'](_0x23d2('0x16'),()=>this['fire']('execute',_0x23d2('0xf'))),_0x803ad2['on'](_0x23d2('0x16'),()=>this[_0x23d2('0x6')](_0x23d2('0x16'),_0x23d2('0x13'))),this[_0x23d2('0x3')]({'tag':_0x23d2('0x5'),'attributes':{'class':['ck',_0x23d2('0x17'),_0x23d2('0x7')]},'children':[{'tag':_0x23d2('0x9'),'attributes':{'class':['ck-revision-history-ui__changes-navigation__wrapper']},'children':[{'tag':_0x23d2('0x9'),'attributes':{'class':['ck-revision-history-ui__changes-navigation__label',_0x152d2c['if'](_0x23d2('0xb'),'ck-hidden',_0x443943=>!_0x443943)]},'children':[{'text':_0x152d2c['to'](_0x23d2('0x10'),_0x4c0a6e=>_0x4c0a6e?_0xe60b04(_0x5e83de,_0x23d2('0x0'))+':\x20':_0xe60b04(_0x5e83de,_0x23d2('0x1'))+':\x20')}]},{'text':_0x152d2c['to']('_statusText')}]},new _0xe0c0a6(),{'tag':_0x23d2('0x5'),'attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x3a8076,_0x803ad2]}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1b5f=['removeClass','RevisionViewerLoadingOverlay','hide','view','roots','editor','document','change','editing','ck-editor__editable__loading-overlay'];(function(_0x33e13b,_0x1b5f61){const _0x3b71a0=function(_0x264f49){while(--_0x264f49){_0x33e13b['push'](_0x33e13b['shift']());}};_0x3b71a0(++_0x1b5f61);}(_0x1b5f,0x13e));const _0x3b71=function(_0x33e13b,_0x1b5f61){_0x33e13b=_0x33e13b-0x0;let _0x3b71a0=_0x1b5f[_0x33e13b];return _0x3b71a0;};import{Plugin as _0x145508}from'ckeditor5/src/core';const oe=_0x3b71('0x1');import'../../../theme/revisionviewerloadingoverlay.css';export default class te extends _0x145508{static get['pluginName'](){return _0x3b71('0x3');}['show'](){const _0xef1307=this[_0x3b71('0x7')][_0x3b71('0x0')][_0x3b71('0x5')];_0xef1307[_0x3b71('0x9')](_0xd10831=>{for(const _0x1b5b03 of _0xef1307['document'][_0x3b71('0x6')])_0xd10831['addClass'](oe,_0x1b5b03);});}[_0x3b71('0x4')](){const _0x3a1cf3=this[_0x3b71('0x7')][_0x3b71('0x0')][_0x3b71('0x5')];_0x3a1cf3[_0x3b71('0x9')](_0x308bc6=>{for(const _0x6aa5da of _0x3a1cf3[_0x3b71('0x8')][_0x3b71('0x6')])_0x308bc6[_0x3b71('0x2')](oe,_0x6aa5da);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x28b5=['showNextChange','init','requires','ck-revision-history-ui__back-to-editing','revisionHistory','restoreRevision','exitToEditing','Restore\x20this\x20revision','RevisionViewerUI','listenTo','commands','closeRevisionViewerCallback','show','changesNavigation','isNavigationMode','isBackwardNavigationEnabled','Back\x20to\x20editing','execute','isForwardNavigationEnabled','isEnabled','get','editor','hide','set','plugins','bind','add','showPreviousChange','componentFactory','numberOfChanges'];(function(_0x44eb21,_0x28b534){const _0x42fce6=function(_0x1e625){while(--_0x1e625){_0x44eb21['push'](_0x44eb21['shift']());}};_0x42fce6(++_0x28b534);}(_0x28b5,0x185));const _0x42fc=function(_0x44eb21,_0x28b534){_0x44eb21=_0x44eb21-0x0;let _0x42fce6=_0x28b5[_0x44eb21];return _0x42fce6;};import{Plugin as _0x2dbb83}from'ckeditor5/src/core';import{ButtonView as _0x45e63d}from'ckeditor5/src/ui';import _0x40ef86 from'./changesnavigationview';import _0x562658 from'./../../revisionviewer';import _0x275dc7 from'./revisionviewerloadingoverlay';import{getTranslation as _0x1a7761}from'../../utils/common-translations';import _0x160ed8 from'@ckeditor/ckeditor5-undo/theme/icons/undo.svg';import'../../../theme/revisionviewer.css';export default class R extends _0x2dbb83{static get['pluginName'](){return _0x42fc('0x9');}static get[_0x42fc('0x3')](){return[_0x562658,_0x275dc7];}[_0x42fc('0x2')](){const _0x3a072b=this[_0x42fc('0x16')],_0x5b1d1e=_0x3a072b[_0x42fc('0x19')][_0x42fc('0x15')](_0x562658),_0xf098ea=_0x3a072b[_0x42fc('0x19')]['get'](_0x275dc7);_0x3a072b['ui']['componentFactory'][_0x42fc('0x1b')](_0x42fc('0x7'),_0x2bdd15=>{const _0x5662d8=new _0x45e63d(_0x2bdd15);return _0x5662d8[_0x42fc('0x18')]({'label':_0x1a7761(_0x2bdd15,_0x42fc('0x11')),'icon':_0x160ed8,'withText':!0x0,'tooltip':!0x0,'class':_0x42fc('0x4')}),this[_0x42fc('0xa')](_0x5662d8,_0x42fc('0x12'),()=>{_0x3a072b['config'][_0x42fc('0x15')](_0x42fc('0x5'))[_0x42fc('0xc')]();}),_0x5662d8;}),_0x3a072b['ui'][_0x42fc('0x1d')][_0x42fc('0x1b')](_0x42fc('0x6'),_0x1ef4a8=>{const _0x42e52d=new _0x45e63d(_0x1ef4a8);return _0x42e52d[_0x42fc('0x18')]({'label':_0x1a7761(_0x1ef4a8,_0x42fc('0x8')),'withText':!0x0,'tooltip':!0x0}),_0x42e52d[_0x42fc('0x1a')](_0x42fc('0x14'))['to'](_0x3a072b[_0x42fc('0xb')]['get'](_0x42fc('0x6'))),this[_0x42fc('0xa')](_0x42e52d,'execute',()=>_0x3a072b[_0x42fc('0x12')](_0x42fc('0x6'))),_0x42e52d;}),_0x3a072b['ui'][_0x42fc('0x1d')][_0x42fc('0x1b')](_0x42fc('0xe'),_0x2bf3ee=>{const _0x30d317=new _0x40ef86(_0x2bf3ee),_0x2c63d1=_0x3a072b[_0x42fc('0xb')]['get'](_0x42fc('0x1c')),_0xbd1ea8=_0x3a072b[_0x42fc('0xb')]['get'](_0x42fc('0x1'));return _0x30d317[_0x42fc('0x1a')](_0x42fc('0x10'))['to'](_0x2c63d1,'isEnabled'),_0x30d317[_0x42fc('0x1a')](_0x42fc('0x13'))['to'](_0xbd1ea8,_0x42fc('0x14')),_0x30d317[_0x42fc('0x1a')]('isReady','currentChangeNumber',_0x42fc('0x0'),_0x42fc('0xf'))['to'](_0x5b1d1e),this[_0x42fc('0xa')](_0x30d317,'execute',(_0x7211df,_0x4eaa34)=>{_0x3a072b[_0x42fc('0x12')]('forward'===_0x4eaa34?'showNextChange':_0x42fc('0x1c'));}),_0x30d317;}),_0xf098ea[_0x42fc('0xd')](),_0x5b1d1e['on']('change:isReady',(_0x2f9763,_0x2236ba,_0x388777)=>{_0x388777?_0xf098ea[_0x42fc('0x17')]():_0xf098ea['show']();});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export function getTranslation(
|
|
23
|
+
export function getTranslation(_0x14c086,_0x3cf31e,_0x8344fd){const t=_0x14c086['t'];switch(_0x3cf31e){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'},_0x8344fd);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x8344fd);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 _0x3cf31e;}}
|