@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20230710.1 → 0.0.0-nightly-20230712.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 _0x254f=['change:isOpen','get','add','addMany','cancel','execute','editing','showRevisionViewerCallback','remove','init','saveRevision','set','isReady','RevisionTracker','panelView','isEnabled','focus','submit','items','revisionName','componentFactory','bind','revisionHistory','view','RevisionHistoryUI','isOpen','plugins','render','requires','isReadOnly','pluginName','saveButtonView','children','editor'];(function(_0x31e4ad,_0x254f14){const _0x328fcb=function(_0x4f1341){while(--_0x4f1341){_0x31e4ad['push'](_0x31e4ad['shift']());}};_0x328fcb(++_0x254f14);}(_0x254f,0x135));const _0x328f=function(_0x31e4ad,_0x254f14){_0x31e4ad=_0x31e4ad-0x0;let _0x328fcb=_0x254f[_0x31e4ad];return _0x328fcb;};import{Plugin as _0x51c25c}from'ckeditor5/src/core';import{ListView as _0x5a7040,ListItemView as _0x1428ad,ButtonView as _0x2816b4,createDropdown as _0x1ccff4}from'ckeditor5/src/ui';import _0x3a7244 from'../../revisiontracker';import _0x3567a4 from'./revisionhistorysaverevisionformview';import _0x114552 from'../../../theme/icons/revision-history.svg';import{getTranslation as _0x5c4311}from'../../utils/common-translations';export default class u extends _0x51c25c{static get[_0x328f('0x1b')](){return _0x328f('0x15');}static get[_0x328f('0x19')](){return[_0x3a7244];}[_0x328f('0x6')](){const _0x325f11=this[_0x328f('0x1e')],_0x7b5de9=_0x325f11[_0x328f('0x17')][_0x328f('0x20')](_0x328f('0xa'));_0x325f11['ui'][_0x328f('0x11')]['add'](_0x328f('0x13'),_0x13e82c=>{const _0x45f33a=_0x1ccff4(_0x13e82c),_0x49042c=_0x45f33a[_0x328f('0xb')][_0x328f('0x1d')],_0x4eef50=new _0x5a7040(_0x13e82c),_0x1d5af1=new _0x1428ad(_0x13e82c),_0x20dcff=new _0x2816b4(_0x13e82c),_0x1cdf49=new _0x1428ad(_0x13e82c),_0x11732d=new _0x2816b4(_0x13e82c),_0x76a0df=new _0x3567a4(_0x13e82c);function _0x33a201(){_0x49042c['length']&&_0x49042c[_0x328f('0x5')](0x0),_0x49042c[_0x328f('0x21')](_0x4eef50);}function _0x188f02(){_0x45f33a[_0x328f('0x16')]=!0x1,_0x325f11[_0x328f('0x3')][_0x328f('0x14')][_0x328f('0xd')]();}return _0x45f33a['bind']('isEnabled')['to'](_0x7b5de9,_0x328f('0x9'),_0x7b5de9,'isEnabled',_0x325f11,_0x328f('0x1a'),(_0x1b802b,_0x4e4e57,_0x28f134)=>_0x1b802b&&_0x4e4e57&&!_0x28f134),_0x45f33a['buttonView'][_0x328f('0x8')]({'icon':_0x114552,'label':_0x5c4311(_0x13e82c,'Revision\x20history'),'tooltip':!0x0}),_0x20dcff[_0x328f('0x8')]({'label':_0x5c4311(_0x13e82c,'Save\x20current\x20revision'),'withText':!0x0}),_0x20dcff[_0x328f('0x12')](_0x328f('0xc'))['to'](_0x7b5de9,_0x328f('0x9'),_0x7b5de9,_0x328f('0xc'),_0x325f11,'isReadOnly',(_0x2f9101,_0x17f6dc,_0x3c9f99)=>_0x2f9101&&_0x17f6dc&&!_0x3c9f99),_0x20dcff['on'](_0x328f('0x2'),()=>function(){_0x49042c['length']&&_0x49042c['remove'](0x0),(_0x76a0df['reset'](),_0x49042c['add'](_0x76a0df),_0x76a0df['focus']());}()),_0x11732d[_0x328f('0x8')]({'label':_0x5c4311(_0x13e82c,'Open\x20revision\x20history'),'withText':!0x0}),_0x11732d[_0x328f('0x12')](_0x328f('0xc'))['to'](_0x7b5de9,_0x328f('0x9'),_0x325f11,_0x328f('0x1a'),(_0x266bff,_0x2dd51e)=>_0x266bff&&!_0x2dd51e),_0x11732d['on']('execute',()=>{_0x325f11['config'][_0x328f('0x20')](_0x328f('0x13'))[_0x328f('0x4')](),_0x188f02();}),_0x1d5af1[_0x328f('0x1d')]['add'](_0x20dcff),_0x1cdf49['children']['add'](_0x11732d),_0x4eef50[_0x328f('0xf')][_0x328f('0x0')]([_0x1d5af1,_0x1cdf49]),_0x45f33a['on'](_0x328f('0x1f'),()=>_0x33a201()),_0x76a0df[_0x328f('0x1c')][_0x328f('0x12')](_0x328f('0xc'))['to'](_0x7b5de9,_0x328f('0x9'),_0x7b5de9,_0x328f('0xc'),_0x325f11,_0x328f('0x1a'),(_0x2eb5d7,_0x5b2955,_0x2da3f6)=>_0x2eb5d7&&_0x5b2955&&!_0x2da3f6),_0x76a0df['on'](_0x328f('0xe'),()=>(_0x325f11[_0x328f('0x17')][_0x328f('0x20')](_0x3a7244)[_0x328f('0x7')]({'name':_0x76a0df[_0x328f('0x10')]}),void _0x188f02())),_0x76a0df['on'](_0x328f('0x1'),()=>_0x33a201()),_0x76a0df[_0x328f('0x18')](),_0x33a201(),_0x45f33a;});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x539f=['defaultRevisionActions','string','getRevisionsInDiff','destroy','_revisionsRepository','map','revisionHistory.viewerSidebarContainer','isEnabled','getEarlierVisibleRevision','Restore\x20this\x20revision','isReady','newRevisionId','assign','bind','change:diff','revisionSelected','availableRevisionActions','revisionHistory.revisionActions','element','_handleRevisionSetName','select','_handleRevisionSelected','config','revisionHistory','_sidebarView','ready','action','RevisionsSidebar','name','restoreRevision','repository','isVisible','compareAgainstSelected','init','listenTo','remove','compare','_handleDiffChange','data','isSelected','_revisionViewer','focus','_revisions','requires','restoreRevisionCallback','pluginName','Name\x20this\x20revision','getRevision','_createRevisionActions','diff','timePeriodViews','getIndex','get','length','selectRevision','revisionSetName','editor','fieldView'];(function(_0xeb9624,_0x539f4f){const _0x4b632b=function(_0x56e68f){while(--_0x56e68f){_0xeb9624['push'](_0xeb9624['shift']());}};_0x4b632b(++_0x539f4f);}(_0x539f,0xa1));const _0x4b63=function(_0xeb9624,_0x539f4f){_0xeb9624=_0xeb9624-0x0;let _0x4b632b=_0x539f[_0xeb9624];return _0x4b632b;};import{Plugin as _0x13929e}from'ckeditor5/src/core';import _0xded3c6 from'./revisionssidebarview';import _0xbf6ab8 from'../../revisionviewer';export default class w extends _0x13929e{static get[_0x4b63('0x0')](){return _0x4b63('0x28');}static get[_0x4b63('0x38')](){return[_0xbf6ab8];}constructor(_0x5031f9){super(_0x5031f9),this['_revisionViewer']=_0x5031f9['plugins']['get'](_0xbf6ab8),this[_0x4b63('0x11')]=this[_0x4b63('0x35')][_0x4b63('0x2b')],this[_0x4b63('0x25')]=null;}[_0x4b63('0x2e')](){const _0x56fee5=this['_revisionsRepository'][_0x4b63('0x37')],_0x1b150a=this['_createRevisionActions'](),_0x43568b=this['editor'][_0x4b63('0x23')][_0x4b63('0x7')](_0x4b63('0x13'));this[_0x4b63('0x25')]=new _0xded3c6(this[_0x4b63('0xb')]['locale'],_0x56fee5,_0x1b150a),this[_0x4b63('0x25')]['on'](_0x4b63('0x1c'),this[_0x4b63('0x22')][_0x4b63('0x1a')](this)),this[_0x4b63('0x25')]['on'](_0x4b63('0xa'),this[_0x4b63('0x20')][_0x4b63('0x1a')](this)),this[_0x4b63('0x25')][_0x4b63('0x1a')]('isEnabled')['to'](this['_revisionViewer']),this[_0x4b63('0x25')][_0x4b63('0x5')]['on']('add',(_0x4be3e0,_0x4aa4dc)=>{_0x4aa4dc['revisionViews']['on']('add',(_0x59cdf2,_0x4f2b2d)=>{_0x4f2b2d[_0x4b63('0x1a')](_0x4b63('0x14'),_0x4b63('0x17'))['to'](this[_0x4b63('0x35')]);});}),this[_0x4b63('0x25')]['render'](),this[_0x4b63('0x2f')](this[_0x4b63('0xb')][_0x4b63('0x33')],_0x4b63('0x26'),this['_handleEditorDataReady'][_0x4b63('0x1a')](this)),this[_0x4b63('0x2f')](this['_revisionViewer'],_0x4b63('0x1b'),this[_0x4b63('0x32')]['bind'](this)),_0x43568b['appendChild'](this[_0x4b63('0x25')]['element']);}[_0x4b63('0x10')](){this[_0x4b63('0x25')][_0x4b63('0x1f')][_0x4b63('0x30')](),this[_0x4b63('0x25')][_0x4b63('0x10')]();}['_handleEditorDataReady'](){const _0x925c9a=this[_0x4b63('0x11')]['getRevision'](0x0);if(_0x925c9a){const _0x5e5601=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x925c9a['id']);this[_0x4b63('0x35')]['compare'](_0x925c9a,_0x5e5601);}}['_handleRevisionSelected'](_0x2f10ba,_0x29ae42){const _0x3f1768=this[_0x4b63('0x11')][_0x4b63('0x2')](_0x29ae42['id']),_0x15e4a5=this['_revisionsRepository'][_0x4b63('0x15')](_0x3f1768['id']);this['_revisionViewer'][_0x4b63('0x31')](_0x3f1768,_0x15e4a5);}[_0x4b63('0x20')](_0x1bb820,_0x49d164){this['_revisionsRepository'][_0x4b63('0x2')](_0x49d164['id'])['setName'](_0x49d164[_0x4b63('0x29')]);}[_0x4b63('0x32')](_0x4aae1a,_0x90f2af,_0x229ea9){const _0x5d4938=this[_0x4b63('0x11')][_0x4b63('0xf')](_0x229ea9);_0x5d4938[_0x4b63('0x8')]>0x2?(this[_0x4b63('0x25')]['highlightRevisions'](_0x5d4938),this[_0x4b63('0x25')][_0x4b63('0x9')](null)):(this['_sidebarView']['highlightRevisions']([]),this[_0x4b63('0x25')][_0x4b63('0x9')](_0x5d4938[0x0]));}[_0x4b63('0x3')](){const _0x364847=this['editor'],_0x462670=w[_0x4b63('0x1d')],_0x32de35=_0x364847[_0x4b63('0x23')][_0x4b63('0x7')](_0x4b63('0x1e'))||w[_0x4b63('0xd')];if(_0x32de35[_0x4b63('0x8')])return _0x32de35[_0x4b63('0x12')](_0x40b478=>{const _0x130abb=_0x4b63('0xe')==typeof _0x40b478?Object[_0x4b63('0x19')]({},_0x462670[_0x40b478]):_0x40b478;return _0x130abb['action']=_0x130abb[_0x4b63('0x27')][_0x4b63('0x1a')](this,_0x364847),_0x130abb[_0x4b63('0x2c')]&&(_0x130abb[_0x4b63('0x2c')]=_0x130abb[_0x4b63('0x2c')][_0x4b63('0x1a')](this,_0x364847)),_0x130abb;});}}w[_0x4b63('0x1d')]={'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0xc4aa45},_0x2b114d)=>{const _0x4df847=_0xc4aa45[_0x4b63('0x7')](_0xbf6ab8),_0x1c13d8=_0x4df847[_0x4b63('0x2b')];let _0x14774d=_0x4df847[_0x4b63('0x4')][_0x4b63('0x18')],_0x20bd8d=_0x2b114d['id'];_0x1c13d8[_0x4b63('0x6')](_0x14774d)>_0x1c13d8[_0x4b63('0x6')](_0x20bd8d)&&([_0x14774d,_0x20bd8d]=[_0x20bd8d,_0x14774d]),_0x4df847[_0x4b63('0x31')](_0x14774d,_0x20bd8d);},'isVisible':({plugins:_0x309bb7},_0x21e3d0)=>{const _0x5215bf=_0x309bb7[_0x4b63('0x7')](_0xbf6ab8);return!(_0x5215bf[_0x4b63('0x2b')][_0x4b63('0xf')](_0x5215bf['diff'])[_0x4b63('0x8')]>0x2)&&!_0x21e3d0[_0x4b63('0x34')];}},'restoreRevision':{'name':_0x4b63('0x16'),'action':(_0x4498c0,{id:_0x2273ef})=>{_0x4498c0[_0x4b63('0x23')][_0x4b63('0x7')](_0x4b63('0x24'))[_0x4b63('0x39')](_0x2273ef);},'isVisible':({plugins:_0x14cf01},_0x11356b)=>!!_0x14cf01[_0x4b63('0x7')](_0xbf6ab8)[_0x4b63('0x2b')]['getLaterVisibleRevision'](_0x11356b['id'])},'nameRevision':{'name':_0x4b63('0x1'),'action':({plugins:_0x3ac1ec},{id:_0x391cc5,revisionNameView:_0x393814})=>{const _0x5413ff=_0x3ac1ec['get'](_0xbf6ab8),_0x387a78=_0x5413ff['repository'][_0x4b63('0x15')](_0x391cc5);_0x5413ff[_0x4b63('0x31')](_0x391cc5,_0x387a78),_0x393814[_0x4b63('0x36')](),_0x393814[_0x4b63('0xc')][_0x4b63('0x21')]();}}},w[_0x4b63('0xd')]=[_0x4b63('0x2d'),_0x4b63('0x2a'),'nameRevision'];
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4914=['ck-reset_all','div','ck-revision-history-sidebar__header__label','Revision\x20history','content','setTemplate','span'];(function(_0x4c8f17,_0x49140c){const _0x5bbdce=function(_0x331096){while(--_0x331096){_0x4c8f17['push'](_0x4c8f17['shift']());}};_0x5bbdce(++_0x49140c);}(_0x4914,0x1a5));const _0x5bbd=function(_0x4c8f17,_0x49140c){_0x4c8f17=_0x4c8f17-0x0;let _0x5bbdce=_0x4914[_0x4c8f17];return _0x5bbdce;};import{View as _0x2629bc,IconView as _0x4fc536}from'ckeditor5/src/ui';import{getTranslation as _0x547dc0}from'../../utils/common-translations';import _0x2e0f46 from'../../../theme/icons/revision-history.svg';import'../../../theme/revisionssidebar/revisionssidebarheader.css';export default class ts extends _0x2629bc{constructor(_0x1cfa74){super(_0x1cfa74);const _0x28cc05=new _0x4fc536();_0x28cc05[_0x5bbd('0x3')]=_0x2e0f46,this[_0x5bbd('0x4')]({'tag':_0x5bbd('0x0'),'attributes':{'class':['ck',_0x5bbd('0x6'),'ck-revision-history-sidebar__header']},'children':[_0x28cc05,{'tag':_0x5bbd('0x5'),'attributes':{'class':['ck',_0x5bbd('0x1')]},'children':[_0x547dc0(_0x1cfa74,_0x5bbd('0x2'))]}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x8433=['uiLanguage','localizedPeriodName','locale','ck-revision-history-sidebar__time-period__revisions','select','setTemplate','div','span','_revisionActions','createCollection','ck-revision-history-sidebar__time-period','addRevision','ck-revision-history-sidebar__time-period__label','revisionViews','delegate','setName','add'];(function(_0x3d2d96,_0x84332e){const _0x1cec35=function(_0x4d5291){while(--_0x4d5291){_0x3d2d96['push'](_0x3d2d96['shift']());}};_0x1cec35(++_0x84332e);}(_0x8433,0x165));const _0x1cec=function(_0x3d2d96,_0x84332e){_0x3d2d96=_0x3d2d96-0x0;let _0x1cec35=_0x8433[_0x3d2d96];return _0x1cec35;};import{View as _0x437cc4}from'ckeditor5/src/ui';import _0x4105e0 from'../revision/revisionview';import{getDateTimePeriodInfo as _0x1b90e1}from'./utils';import'../../../theme/revisionssidebar/revisionssidebartimeperiod.css';export default class _i extends _0x437cc4{constructor(_0x58130f,_0x42d078,_0x23847d){super(_0x58130f);const _0x25db66=_0x1b90e1(_0x42d078,this[_0x1cec('0x2')][_0x1cec('0x0')])[_0x1cec('0x1')];this['startDate']=_0x42d078,this['revisionViews']=this[_0x1cec('0x9')](),this[_0x1cec('0x8')]=_0x23847d,this['revisionViews']['delegate'](_0x1cec('0x4'))['to'](this),this[_0x1cec('0xd')][_0x1cec('0xe')](_0x1cec('0xf'))['to'](this),this[_0x1cec('0x5')]({'tag':_0x1cec('0x6'),'attributes':{'class':['ck',_0x1cec('0xa')]},'children':[{'tag':_0x1cec('0x7'),'attributes':{'class':['ck',_0x1cec('0xc')]},'children':[{'text':_0x25db66}]},{'tag':_0x1cec('0x6'),'attributes':{'class':['ck',_0x1cec('0x3')]},'children':this[_0x1cec('0xd')]}]});}[_0x1cec('0xb')](_0x150082){const _0xe2f758=new _0x4105e0(this[_0x1cec('0x2')],_0x150082,this[_0x1cec('0x8')]);this[_0x1cec('0xd')][_0x1cec('0x10')](_0xe2f758);}['removeRevision'](_0x440179){const _0x22d224=this[_0x1cec('0xd')]['find'](_0xd038e7=>_0xd038e7['id']===_0x440179['id']);this[_0x1cec('0xd')]['remove'](_0x22d224);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5735=['add','isEnabled','fire','createCollection','div','bindTemplate','selectRevision','addRevision','delegate','_revisionActions','select','_removeRevision','revisionSetName','ck-revision-history-sidebar__timeline','timePeriodViews','getTime','highlightRevisions','setName','setTemplate','deselect','uiLanguage','startDate','set','ck-revision-history-sidebar','find','createdAt','locale','_getTimePeriodViewByStartDate','ck-reset','ck-disabled','map','_revisions','highlight','render','_addRevision','revisionViews'];(function(_0x18e1f8,_0x5735bb){const _0x54b859=function(_0x299a13){while(--_0x299a13){_0x18e1f8['push'](_0x18e1f8['shift']());}};_0x54b859(++_0x5735bb);}(_0x5735,0xcc));const _0x54b8=function(_0x18e1f8,_0x5735bb){_0x18e1f8=_0x18e1f8-0x0;let _0x54b859=_0x5735[_0x18e1f8];return _0x54b859;};import{View as _0x1a7d32}from'ckeditor5/src/ui';import _0x3988f0 from'./revisionssidebartimeperiodview';import _0x5e6b4f from'./revisionssidebarheaderview';import{getDateTimePeriodInfo as _0x668812}from'./utils';import'../../../theme/revisionssidebar/revisionssidebar.css';export default class vi extends _0x1a7d32{constructor(_0x2715dd,_0x4567c0,_0x13683d){super(_0x2715dd);const _0xd5cee7=this[_0x54b8('0x11')];this[_0x54b8('0x1a')]=this[_0x54b8('0xf')](),this[_0x54b8('0x1a')][_0x54b8('0x14')](_0x54b8('0x16'))['to'](this),this[_0x54b8('0x1a')][_0x54b8('0x14')](_0x54b8('0x1d'))['to'](this),this[_0x54b8('0x7')]=_0x4567c0,this[_0x54b8('0x15')]=_0x13683d,this['on'](_0x54b8('0x16'),(_0x25e7c9,_0x188f0a)=>{this[_0x54b8('0xe')]('revisionSelected',_0x188f0a);}),this['on'](_0x54b8('0x1d'),(_0x50a7ad,_0x241cc9)=>{this[_0x54b8('0xe')](_0x54b8('0x18'),_0x241cc9);}),this[_0x54b8('0x22')](_0x54b8('0xd'),!0x1),this[_0x54b8('0x1e')]({'tag':_0x54b8('0x10'),'attributes':{'class':['ck',_0x54b8('0x4'),'ck-rounded-corners',_0x54b8('0x23')]},'children':[new _0x5e6b4f(_0x2715dd),{'tag':'div','attributes':{'class':['ck',_0x54b8('0x19'),_0xd5cee7['if']('isEnabled',_0x54b8('0x5'),_0x4c585b=>!_0x4c585b)]},'children':this['timePeriodViews']}]});}['render'](){super[_0x54b8('0x9')]();for(const _0x35cabd of this[_0x54b8('0x7')])this[_0x54b8('0xa')](_0x35cabd);this[_0x54b8('0x7')]['on'](_0x54b8('0xc'),(_0x5052ff,_0x2c2a03)=>{this[_0x54b8('0xa')](_0x2c2a03);}),this['_revisions']['on']('remove',(_0x5de0b2,_0x327334)=>{this[_0x54b8('0x17')](_0x327334);});}get[_0x54b8('0xb')](){return this[_0x54b8('0x1a')]['map'](_0x2a7f9c=>_0x2a7f9c[_0x54b8('0xb')][_0x54b8('0x6')](_0x23b8a9=>_0x23b8a9))['flat']();}[_0x54b8('0x12')](_0x27a1bd){for(const _0x3be8a6 of this[_0x54b8('0xb')])_0x27a1bd&&_0x27a1bd['id']===_0x3be8a6['id']?_0x3be8a6['select']():_0x3be8a6[_0x54b8('0x1f')]();}[_0x54b8('0x1c')](_0x5009ad){for(const _0x370504 of this[_0x54b8('0xb')])_0x5009ad['some'](({id:_0x36ca71})=>_0x36ca71===_0x370504['id'])?_0x370504[_0x54b8('0x8')]():_0x370504['unhighlight']();}[_0x54b8('0xa')](_0x1903ad){const _0x159cb3=_0x668812(_0x1903ad[_0x54b8('0x1')],this[_0x54b8('0x2')]['uiLanguage'])[_0x54b8('0x21')];let _0x182dca=this[_0x54b8('0x1a')]['get'](0x0);_0x182dca&&_0x182dca[_0x54b8('0x21')][_0x54b8('0x1b')]()===_0x159cb3['getTime']()||(_0x182dca=new _0x3988f0(this[_0x54b8('0x2')],_0x159cb3,this[_0x54b8('0x15')]),this[_0x54b8('0x1a')][_0x54b8('0xc')](_0x182dca)),_0x182dca[_0x54b8('0x13')](_0x1903ad);}['_removeRevision'](_0xc5bb1c){const _0x6ef384=_0x668812(_0xc5bb1c['createdAt'],this[_0x54b8('0x2')][_0x54b8('0x20')])[_0x54b8('0x21')];this['_getTimePeriodViewByStartDate'](_0x6ef384)['removeRevision'](_0xc5bb1c);}[_0x54b8('0x3')](_0xdea948){return this[_0x54b8('0x1a')][_0x54b8('0x0')](_0x5a7092=>_0x5a7092[_0x54b8('0x21')][_0x54b8('0x1b')]()===_0xdea948[_0x54b8('0x1b')]());}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4d66=['week','local','fromJSDate','month','minus','year','toJSDate','toRelativeCalendar','monthLong','day','startOf','hasSame'];(function(_0x1d629a,_0x4d6646){const _0x347d4d=function(_0x4c950c){while(--_0x4c950c){_0x1d629a['push'](_0x1d629a['shift']());}};_0x347d4d(++_0x4d6646);}(_0x4d66,0xdf));const _0x347d=function(_0x1d629a,_0x4d6646){_0x1d629a=_0x1d629a-0x0;let _0x347d4d=_0x4d66[_0x1d629a];return _0x347d4d;};import{DateTime as _0x4ba746}from'luxon';export function getDateTimePeriodInfo(_0x1b4764,_0x5b5b80){const _0xe8adcf=_0x4ba746[_0x347d('0x7')](_0x1b4764)['setLocale'](_0x5b5b80),_0x7188e8=_0x4ba746[_0x347d('0x6')](),_0x15fe3e=_0x7188e8[_0x347d('0x9')]({'days':0x1})[_0x347d('0x3')](_0x347d('0x2'));let _0x3afa9f,_0x5ef6d9;return _0xe8adcf[_0x347d('0x4')](_0x7188e8,'day')?(_0x3afa9f=_0xe8adcf['startOf'](_0x347d('0x2'))['toJSDate'](),_0x5ef6d9=_0xe8adcf[_0x347d('0x0')]()):_0xe8adcf[_0x347d('0x4')](_0x15fe3e,_0x347d('0x2'))?(_0x3afa9f=_0x15fe3e[_0x347d('0xb')](),_0x5ef6d9=_0xe8adcf[_0x347d('0x0')]()):_0xe8adcf[_0x347d('0x4')](_0x7188e8,_0x347d('0x5'))?(_0x3afa9f=_0xe8adcf[_0x347d('0x3')](_0x347d('0x5'))[_0x347d('0xb')](),_0x5ef6d9=_0xe8adcf['weekdayLong']||''):_0xe8adcf[_0x347d('0x4')](_0x7188e8,_0x347d('0xa'))?(_0x3afa9f=_0xe8adcf[_0x347d('0x3')](_0x347d('0x8'))['toJSDate'](),_0x5ef6d9=_0xe8adcf[_0x347d('0x1')]||''):(_0x3afa9f=_0xe8adcf[_0x347d('0x3')](_0x347d('0xa'))[_0x347d('0xb')](),_0x5ef6d9=String(_0xe8adcf[_0x347d('0xa')])),{'startDate':_0x3afa9f,'localizedPeriodName':_0x5ef6d9};}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x516c=['data','setTemplate','_model','ck-revision-change__','type','Suggested\x20by','bindTemplate','isSuggestion','name','ck-revision-change','Removed\x20by','ck-annotation','span'];(function(_0x2ae09a,_0x516c1d){const _0x4d5f1b=function(_0x5833f9){while(--_0x5833f9){_0x2ae09a['push'](_0x2ae09a['shift']());}};_0x4d5f1b(++_0x516c1d);}(_0x516c,0x118));const _0x4d5f=function(_0x2ae09a,_0x516c1d){_0x2ae09a=_0x2ae09a-0x0;let _0x4d5f1b=_0x516c[_0x2ae09a];return _0x4d5f1b;};import{View as _0x2521ad}from'ckeditor5/src/ui';import{getTranslation as _0x522c78}from'../../utils/common-translations';export default class Z extends _0x2521ad{constructor(_0x511b0d,_0x5a6b07){super(_0x511b0d),this[_0x4d5f('0x8')]=_0x5a6b07,this['changeId']=_0x5a6b07['id'];const _0x3cea03=this[_0x4d5f('0xc')],_0x4d2308=_0x522c78(_0x511b0d,_0x5a6b07[_0x4d5f('0x6')][_0x4d5f('0x0')]?_0x4d5f('0xb'):'add'==_0x5a6b07['type']?'Added\x20by':_0x4d5f('0x3'));this['set'](_0x4d5f('0xa'),_0x5a6b07[_0x4d5f('0xa')]),this[_0x4d5f('0x7')]({'tag':'div','attributes':{'class':[_0x4d5f('0x4'),_0x4d5f('0x2'),_0x3cea03['to']('type',_0x14af49=>_0x4d5f('0x9')+_0x14af49)],'tabindex':-0x1},'children':[{'tag':_0x4d5f('0x5'),'children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x4d2308}]},{'text':'\x20'+_0x5a6b07['author'][_0x4d5f('0x1')]}]}]});}['focus'](){this['element']['focus']();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1c04=['isForwardNavigationEnabled','Loading...','bindTemplate','span','_statusText','currentChangeNumber','Show\x20previous\x20change','ck-revision-history-ui__changes-navigation','ck-revision-history-ui__changes-navigation__navigation','isEnabled','ck-revision-history-ui__changes-navigation__wrapper','execute','_isStatusLabelVisible','div','isBackwardNavigationEnabled','bind','forward','isReady','set','fire','isNavigationMode','numberOfChanges','Show\x20next\x20change','EDIT_X_OF_Y_REVISIONS','backward','ck-revision-history-ui'];(function(_0x2dace7,_0x1c04f7){const _0x5dbce7=function(_0xbd118e){while(--_0xbd118e){_0x2dace7['push'](_0x2dace7['shift']());}};_0x5dbce7(++_0x1c04f7);}(_0x1c04,0x124));const _0x5dbc=function(_0x2dace7,_0x1c04f7){_0x2dace7=_0x2dace7-0x0;let _0x5dbce7=_0x1c04[_0x2dace7];return _0x5dbce7;};import{View as _0x6b6760,ButtonView as _0x3cbeff,ToolbarSeparatorView as _0x3b949d}from'ckeditor5/src/ui';import{getTranslation as _0x1b056f}from'../../utils/common-translations';import _0x2d898a from'../../../theme/icons/arrow-up.svg';import _0x461c0b from'../../../theme/icons/arrow-down.svg';import'../../../theme/changesnavigation.css';export default class wi extends _0x6b6760{constructor(_0x2644dc){super(_0x2644dc);const _0x417ac3=this[_0x5dbc('0x16')],_0x423301=new _0x3cbeff(_0x2644dc),_0x1a5923=new _0x3cbeff(_0x2644dc);this[_0x5dbc('0xc')](_0x5dbc('0xe'),!0x1),this[_0x5dbc('0xc')](_0x5dbc('0xb'),!0x1),this[_0x5dbc('0xc')](_0x5dbc('0x19'),0x0),this['set'](_0x5dbc('0xf'),0x0),this['set'](_0x5dbc('0x14'),!0x1),this[_0x5dbc('0xc')](_0x5dbc('0x8'),!0x1),this[_0x5dbc('0x9')](_0x5dbc('0x6'))['to'](this,_0x5dbc('0xb'),this,_0x5dbc('0xf'),(_0x3809d3,_0x5b33b3)=>_0x3809d3&&_0x5b33b3>0x0),this[_0x5dbc('0x9')]('_statusText')['to'](this,_0x5dbc('0xb'),this,_0x5dbc('0x19'),this,'numberOfChanges',this,_0x5dbc('0xe'),(_0x5ad69b,_0x4a095b,_0x5ba526,_0x350d51)=>{if(!_0x5ad69b)return _0x1b056f(_0x2644dc,_0x5dbc('0x15'));if(!_0x5ba526)return _0x1b056f(_0x2644dc,'No\x20changes');const _0x595ab7=_0x1b056f(_0x2644dc,'NUMBER_OF_CHANGES',_0x5ba526);return _0x350d51?_0x1b056f(_0x2644dc,'X_OF_Y_CHANGES',[_0x4a095b+0x1,_0x5ba526]):_0x595ab7;}),_0x423301[_0x5dbc('0xc')]({'label':_0x1b056f(_0x2644dc,_0x5dbc('0x0')),'tooltip':!0x0,'icon':_0x2d898a}),_0x1a5923[_0x5dbc('0xc')]({'label':_0x1b056f(_0x2644dc,_0x5dbc('0x10')),'tooltip':!0x0,'icon':_0x461c0b}),_0x423301[_0x5dbc('0x9')](_0x5dbc('0x3'))['to'](this,'isBackwardNavigationEnabled'),_0x1a5923[_0x5dbc('0x9')]('isEnabled')['to'](this,_0x5dbc('0x14')),_0x423301['on'](_0x5dbc('0x5'),()=>this[_0x5dbc('0xd')](_0x5dbc('0x5'),_0x5dbc('0x12'))),_0x1a5923['on'](_0x5dbc('0x5'),()=>this[_0x5dbc('0xd')](_0x5dbc('0x5'),_0x5dbc('0xa'))),this['setTemplate']({'tag':_0x5dbc('0x7'),'attributes':{'class':['ck',_0x5dbc('0x13'),_0x5dbc('0x1')]},'children':[{'tag':_0x5dbc('0x17'),'attributes':{'class':[_0x5dbc('0x4')]},'children':[{'tag':_0x5dbc('0x17'),'attributes':{'class':['ck-revision-history-ui__changes-navigation__label',_0x417ac3['if'](_0x5dbc('0x6'),'ck-hidden',_0x1e3e73=>!_0x1e3e73)]},'children':[{'text':_0x417ac3['to'](_0x5dbc('0xe'),_0x40f6c4=>_0x40f6c4?_0x1b056f(_0x2644dc,_0x5dbc('0x11'))+':\x20':_0x1b056f(_0x2644dc,'Total')+':\x20')}]},{'text':_0x417ac3['to'](_0x5dbc('0x18'))}]},new _0x3b949d(),{'tag':_0x5dbc('0x7'),'attributes':{'class':[_0x5dbc('0x2')]},'children':[_0x423301,_0x1a5923]}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4ef3=['roots','change','removeClass','ck-editor__editable__loading-overlay','pluginName','editing','editor','document','view','hide','addClass'];(function(_0x5d99b4,_0x4ef3fe){const _0x3c2cb4=function(_0x2aa9d3){while(--_0x2aa9d3){_0x5d99b4['push'](_0x5d99b4['shift']());}};_0x3c2cb4(++_0x4ef3fe);}(_0x4ef3,0x7c));const _0x3c2c=function(_0x5d99b4,_0x4ef3fe){_0x5d99b4=_0x5d99b4-0x0;let _0x3c2cb4=_0x4ef3[_0x5d99b4];return _0x3c2cb4;};import{Plugin as _0x53f743}from'ckeditor5/src/core';const oe=_0x3c2c('0x0');import'../../../theme/revisionviewerloadingoverlay.css';export default class te extends _0x53f743{static get[_0x3c2c('0x1')](){return'RevisionViewerLoadingOverlay';}['show'](){const _0x152574=this[_0x3c2c('0x3')]['editing'][_0x3c2c('0x5')];_0x152574[_0x3c2c('0x9')](_0x222187=>{for(const _0x1218a4 of _0x152574[_0x3c2c('0x4')][_0x3c2c('0x8')])_0x222187[_0x3c2c('0x7')](oe,_0x1218a4);});}[_0x3c2c('0x6')](){const _0x5a00de=this[_0x3c2c('0x3')][_0x3c2c('0x2')][_0x3c2c('0x5')];_0x5a00de['change'](_0x1a2687=>{for(const _0x52fe93 of _0x5a00de[_0x3c2c('0x4')][_0x3c2c('0x8')])_0x1a2687[_0x3c2c('0xa')](oe,_0x52fe93);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x46a5=['ck-revision-history-ui__back-to-editing','exitToEditing','Back\x20to\x20editing','get','isForwardNavigationEnabled','add','config','isReady','isBackwardNavigationEnabled','editor','execute','change:isReady','pluginName','showPreviousChange','closeRevisionViewerCallback','show','isEnabled','numberOfChanges','hide','componentFactory','restoreRevision','currentChangeNumber','commands','isNavigationMode','RevisionViewerUI','listenTo','bind','showNextChange','plugins','changesNavigation'];(function(_0x21497e,_0x46a5d5){const _0x27ceae=function(_0x1a3649){while(--_0x1a3649){_0x21497e['push'](_0x21497e['shift']());}};_0x27ceae(++_0x46a5d5);}(_0x46a5,0xef));const _0x27ce=function(_0x21497e,_0x46a5d5){_0x21497e=_0x21497e-0x0;let _0x27ceae=_0x46a5[_0x21497e];return _0x27ceae;};import{Plugin as _0x3efe49}from'ckeditor5/src/core';import{ButtonView as _0x1d4691}from'ckeditor5/src/ui';import _0x643aa3 from'./changesnavigationview';import _0x297bd2 from'./../../revisionviewer';import _0x3b5f71 from'./revisionviewerloadingoverlay';import{getTranslation as _0x3f6f89}from'../../utils/common-translations';import _0x447a8e from'@ckeditor/ckeditor5-undo/theme/icons/undo.svg';import'../../../theme/revisionviewer.css';export default class R extends _0x3efe49{static get[_0x27ce('0xd')](){return _0x27ce('0x19');}static get['requires'](){return[_0x297bd2,_0x3b5f71];}['init'](){const _0x23dfd9=this[_0x27ce('0xa')],_0x538e82=_0x23dfd9[_0x27ce('0x1d')]['get'](_0x297bd2),_0x44be83=_0x23dfd9[_0x27ce('0x1d')][_0x27ce('0x4')](_0x3b5f71);_0x23dfd9['ui']['componentFactory']['add'](_0x27ce('0x2'),_0x5f0b91=>{const _0x56aeca=new _0x1d4691(_0x5f0b91);return _0x56aeca['set']({'label':_0x3f6f89(_0x5f0b91,_0x27ce('0x3')),'icon':_0x447a8e,'withText':!0x0,'tooltip':!0x0,'class':_0x27ce('0x1')}),this[_0x27ce('0x1a')](_0x56aeca,_0x27ce('0xb'),()=>{_0x23dfd9[_0x27ce('0x7')][_0x27ce('0x4')]('revisionHistory')[_0x27ce('0xf')]();}),_0x56aeca;}),_0x23dfd9['ui'][_0x27ce('0x14')]['add'](_0x27ce('0x15'),_0x20d2a0=>{const _0x4c745e=new _0x1d4691(_0x20d2a0);return _0x4c745e['set']({'label':_0x3f6f89(_0x20d2a0,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x4c745e[_0x27ce('0x1b')]('isEnabled')['to'](_0x23dfd9[_0x27ce('0x17')][_0x27ce('0x4')](_0x27ce('0x15'))),this['listenTo'](_0x4c745e,_0x27ce('0xb'),()=>_0x23dfd9[_0x27ce('0xb')](_0x27ce('0x15'))),_0x4c745e;}),_0x23dfd9['ui'][_0x27ce('0x14')][_0x27ce('0x6')](_0x27ce('0x0'),_0x2d65c5=>{const _0x1dac3b=new _0x643aa3(_0x2d65c5),_0x40d95d=_0x23dfd9[_0x27ce('0x17')][_0x27ce('0x4')](_0x27ce('0xe')),_0x443266=_0x23dfd9[_0x27ce('0x17')][_0x27ce('0x4')](_0x27ce('0x1c'));return _0x1dac3b[_0x27ce('0x1b')](_0x27ce('0x9'))['to'](_0x40d95d,_0x27ce('0x11')),_0x1dac3b[_0x27ce('0x1b')](_0x27ce('0x5'))['to'](_0x443266,'isEnabled'),_0x1dac3b[_0x27ce('0x1b')](_0x27ce('0x8'),_0x27ce('0x16'),_0x27ce('0x12'),_0x27ce('0x18'))['to'](_0x538e82),this['listenTo'](_0x1dac3b,'execute',(_0xe2030c,_0x48bf7f)=>{_0x23dfd9[_0x27ce('0xb')]('forward'===_0x48bf7f?_0x27ce('0x1c'):_0x27ce('0xe'));}),_0x1dac3b;}),_0x44be83[_0x27ce('0x10')](),_0x538e82['on'](_0x27ce('0xc'),(_0x436b83,_0xb9bcfc,_0x221497)=>{_0x221497?_0x44be83[_0x27ce('0x13')]():_0x44be83[_0x27ce('0x10')]();});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export function getTranslation(
|
|
23
|
+
export function getTranslation(_0xa54c0f,_0x151825,_0x51784d){const t=_0xa54c0f['t'];switch(_0x151825){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'},_0x51784d);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x51784d);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 _0x151825;}}
|