@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20231019.0 → 0.0.0-nightly-20231020.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 _0x3eb6=['items','componentFactory','reset','get','revisionName','submit','editor','children','isEnabled','isReadOnly','addMany','focus','editing','config','Save\x20current\x20revision','saveButtonView','panelView','view','cancel','pluginName','add','bind','execute','remove','saveRevision','set','RevisionHistoryUI','length','showRevisionViewerCallback','render','history','requires','revisionHistory','isReady'];(function(_0x503ac8,_0x3eb6f5){const _0x3cfd01=function(_0x5eca8c){while(--_0x5eca8c){_0x503ac8['push'](_0x503ac8['shift']());}};_0x3cfd01(++_0x3eb6f5);}(_0x3eb6,0x1b5));const _0x3cfd=function(_0x503ac8,_0x3eb6f5){_0x503ac8=_0x503ac8-0x0;let _0x3cfd01=_0x3eb6[_0x503ac8];return _0x3cfd01;};import{Plugin as _0x40a7e1,icons as _0x210fb6}from'ckeditor5/src/core';import{ListView as _0x4f373e,ListItemView as _0x4576b3,ButtonView as _0x2e95f2,createDropdown as _0x25f4c6}from'ckeditor5/src/ui';import _0x23af30 from'../../revisiontracker';import _0x1e6750 from'./revisionhistorysaverevisionformview';import{getTranslation as _0x41eaf8}from'../../utils/common-translations';export default class u extends _0x40a7e1{static get[_0x3cfd('0x18')](){return _0x3cfd('0x1f');}static get[_0x3cfd('0x2')](){return[_0x23af30];}['init'](){const _0x5f1331=this[_0x3cfd('0xb')],_0x4361fa=_0x5f1331['plugins'][_0x3cfd('0x8')]('RevisionTracker');_0x5f1331['ui'][_0x3cfd('0x6')]['add'](_0x3cfd('0x3'),_0x3e8e19=>{const _0x1d195a=_0x25f4c6(_0x3e8e19),_0x3ae48a=_0x1d195a[_0x3cfd('0x15')][_0x3cfd('0xc')],_0x21f54d=new _0x4f373e(_0x3e8e19),_0x3a73fd=new _0x4576b3(_0x3e8e19),_0x41b06f=new _0x2e95f2(_0x3e8e19),_0x3a8729=new _0x4576b3(_0x3e8e19),_0x75415d=new _0x2e95f2(_0x3e8e19),_0x396ee2=new _0x1e6750(_0x3e8e19);function _0xc9a13b(){_0x3ae48a[_0x3cfd('0x20')]&&_0x3ae48a[_0x3cfd('0x1c')](0x0),_0x3ae48a[_0x3cfd('0x19')](_0x21f54d);}function _0x15434d(){_0x1d195a['isOpen']=!0x1,_0x5f1331[_0x3cfd('0x11')][_0x3cfd('0x16')][_0x3cfd('0x10')]();}return _0x1d195a[_0x3cfd('0x1a')](_0x3cfd('0xd'))['to'](_0x4361fa,_0x3cfd('0x4'),_0x4361fa,_0x3cfd('0xd'),_0x5f1331,_0x3cfd('0xe'),(_0x2cf2fd,_0x343d52,_0x2dda9f)=>_0x2cf2fd&&_0x343d52&&!_0x2dda9f),_0x1d195a['buttonView'][_0x3cfd('0x1e')]({'icon':_0x210fb6[_0x3cfd('0x1')],'label':_0x41eaf8(_0x3e8e19,'Revision\x20history'),'tooltip':!0x0}),_0x41b06f[_0x3cfd('0x1e')]({'label':_0x41eaf8(_0x3e8e19,_0x3cfd('0x13')),'withText':!0x0}),_0x41b06f[_0x3cfd('0x1a')](_0x3cfd('0xd'))['to'](_0x4361fa,_0x3cfd('0x4'),_0x4361fa,_0x3cfd('0xd'),_0x5f1331,_0x3cfd('0xe'),(_0x1fe126,_0x22d65f,_0x3a6d30)=>_0x1fe126&&_0x22d65f&&!_0x3a6d30),_0x41b06f['on'](_0x3cfd('0x1b'),()=>function(){_0x3ae48a[_0x3cfd('0x20')]&&_0x3ae48a['remove'](0x0),(_0x396ee2[_0x3cfd('0x7')](),_0x3ae48a[_0x3cfd('0x19')](_0x396ee2),_0x396ee2['focus']());}()),_0x75415d[_0x3cfd('0x1e')]({'label':_0x41eaf8(_0x3e8e19,'Open\x20revision\x20history'),'withText':!0x0}),_0x75415d[_0x3cfd('0x1a')](_0x3cfd('0xd'))['to'](_0x4361fa,'isReady',_0x5f1331,'isReadOnly',(_0x1f789b,_0x4c6fd9)=>_0x1f789b&&!_0x4c6fd9),_0x75415d['on'](_0x3cfd('0x1b'),()=>{_0x5f1331[_0x3cfd('0x12')][_0x3cfd('0x8')](_0x3cfd('0x3'))[_0x3cfd('0x21')](),_0x15434d();}),_0x3a73fd['children'][_0x3cfd('0x19')](_0x41b06f),_0x3a8729[_0x3cfd('0xc')][_0x3cfd('0x19')](_0x75415d),_0x21f54d[_0x3cfd('0x5')][_0x3cfd('0xf')]([_0x3a73fd,_0x3a8729]),_0x1d195a['on']('change:isOpen',()=>_0xc9a13b()),_0x396ee2[_0x3cfd('0x14')][_0x3cfd('0x1a')]('isEnabled')['to'](_0x4361fa,_0x3cfd('0x4'),_0x4361fa,_0x3cfd('0xd'),_0x5f1331,_0x3cfd('0xe'),(_0x1ec06f,_0x4b7078,_0x3645fe)=>_0x1ec06f&&_0x4b7078&&!_0x3645fe),_0x396ee2['on'](_0x3cfd('0xa'),()=>(_0x5f1331['plugins'][_0x3cfd('0x8')](_0x23af30)[_0x3cfd('0x1d')]({'name':_0x396ee2[_0x3cfd('0x9')]}),void _0x15434d())),_0x396ee2['on'](_0x3cfd('0x17'),()=>_0xc9a13b()),_0x396ee2[_0x3cfd('0x0')](),_0xc9a13b(),_0x1d195a;});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4f90=['appendChild','_revisionViewer','diff','highlightRevisions','_handleRevisionSetName','getIndex','assign','restoreRevisionCallback','getEarlierVisibleRevision','element','Name\x20this\x20revision','action','isReady','revisionViews','fieldView','_sidebarView','pluginName','config','isSelected','revisionHistory.viewerSidebarContainer','newRevisionId','getRevision','listenTo','revisionHistory.revisionActions','init','get','select','change:diff','requires','nameRevision','render','_handleEditorDataReady','revisionSetName','length','name','_revisions','RevisionsSidebar','_handleRevisionSelected','selectRevision','editor','focus','add','setName','bind','defaultRevisionActions','locale','data','isVisible','destroy','repository','availableRevisionActions','ready','_handleDiffChange','compare','plugins','getRevisionsInDiff','_revisionsRepository','remove','restoreRevision','_createRevisionActions','isEnabled'];(function(_0x6faf52,_0x4f9008){const _0x502723=function(_0x23511e){while(--_0x23511e){_0x6faf52['push'](_0x6faf52['shift']());}};_0x502723(++_0x4f9008);}(_0x4f90,0x81));const _0x5027=function(_0x6faf52,_0x4f9008){_0x6faf52=_0x6faf52-0x0;let _0x502723=_0x4f90[_0x6faf52];return _0x502723;};import{Plugin as _0x585028}from'ckeditor5/src/core';import _0x404b17 from'./revisionssidebarview';import _0x42cfa7 from'../../revisionviewer';export default class w extends _0x585028{static get[_0x5027('0x9')](){return _0x5027('0x1d');}static get[_0x5027('0x15')](){return[_0x42cfa7];}constructor(_0x369c5e){super(_0x369c5e),this[_0x5027('0x37')]=_0x369c5e[_0x5027('0x2f')][_0x5027('0x12')](_0x42cfa7),this[_0x5027('0x31')]=this[_0x5027('0x37')][_0x5027('0x2a')],this[_0x5027('0x8')]=null;}[_0x5027('0x11')](){const _0x308442=this['_revisionsRepository'][_0x5027('0x1c')],_0x18f496=this[_0x5027('0x34')](),_0x1418ab=this[_0x5027('0x20')]['config'][_0x5027('0x12')](_0x5027('0xc'));this[_0x5027('0x8')]=new _0x404b17(this['editor'][_0x5027('0x26')],_0x308442,_0x18f496),this[_0x5027('0x8')]['on']('revisionSelected',this['_handleRevisionSelected'][_0x5027('0x24')](this)),this[_0x5027('0x8')]['on'](_0x5027('0x19'),this[_0x5027('0x3a')]['bind'](this)),this['_sidebarView'][_0x5027('0x24')](_0x5027('0x35'))['to'](this[_0x5027('0x37')]),this['_sidebarView']['timePeriodViews']['on']('add',(_0x4f6af6,_0x418245)=>{_0x418245[_0x5027('0x6')]['on'](_0x5027('0x22'),(_0x4f1275,_0x111f62)=>{_0x111f62[_0x5027('0x24')](_0x5027('0x35'),_0x5027('0x5'))['to'](this[_0x5027('0x37')]);});}),this[_0x5027('0x8')][_0x5027('0x17')](),this[_0x5027('0xf')](this[_0x5027('0x20')][_0x5027('0x27')],_0x5027('0x2c'),this[_0x5027('0x18')][_0x5027('0x24')](this)),this['listenTo'](this['_revisionViewer'],_0x5027('0x14'),this[_0x5027('0x2d')][_0x5027('0x24')](this)),_0x1418ab[_0x5027('0x36')](this['_sidebarView'][_0x5027('0x2')]);}[_0x5027('0x29')](){this[_0x5027('0x8')][_0x5027('0x2')][_0x5027('0x32')](),this['_sidebarView'][_0x5027('0x29')]();}['_handleEditorDataReady'](){const _0x516011=this['_revisionsRepository'][_0x5027('0xe')](0x0);if(_0x516011){const _0x498ad9=this[_0x5027('0x31')][_0x5027('0x1')](_0x516011['id']);this[_0x5027('0x37')][_0x5027('0x2e')](_0x516011,_0x498ad9);}}[_0x5027('0x1e')](_0x4301a8,_0x41e2fd){const _0x110857=this[_0x5027('0x31')][_0x5027('0xe')](_0x41e2fd['id']),_0x4e4749=this[_0x5027('0x31')][_0x5027('0x1')](_0x110857['id']);this[_0x5027('0x37')][_0x5027('0x2e')](_0x110857,_0x4e4749);}[_0x5027('0x3a')](_0x16f555,_0x23f026){this[_0x5027('0x31')][_0x5027('0xe')](_0x23f026['id'])[_0x5027('0x23')](_0x23f026[_0x5027('0x1b')]);}[_0x5027('0x2d')](_0x317f00,_0x474b8c,_0x4b29f4){const _0x13d4a8=this[_0x5027('0x31')][_0x5027('0x30')](_0x4b29f4);_0x13d4a8[_0x5027('0x1a')]>0x2?(this[_0x5027('0x8')][_0x5027('0x39')](_0x13d4a8),this[_0x5027('0x8')]['selectRevision'](null)):(this[_0x5027('0x8')][_0x5027('0x39')]([]),this[_0x5027('0x8')][_0x5027('0x1f')](_0x13d4a8[0x0]));}['_createRevisionActions'](){const _0x2736ec=this['editor'],_0x5aa7b5=w[_0x5027('0x2b')],_0x452d7e=_0x2736ec[_0x5027('0xa')][_0x5027('0x12')](_0x5027('0x10'))||w[_0x5027('0x25')];if(_0x452d7e[_0x5027('0x1a')])return _0x452d7e['map'](_0x4ceb11=>{const _0x4af848='string'==typeof _0x4ceb11?Object[_0x5027('0x3c')]({},_0x5aa7b5[_0x4ceb11]):_0x4ceb11;return _0x4af848[_0x5027('0x4')]=_0x4af848[_0x5027('0x4')][_0x5027('0x24')](this,_0x2736ec),_0x4af848[_0x5027('0x28')]&&(_0x4af848[_0x5027('0x28')]=_0x4af848['isVisible'][_0x5027('0x24')](this,_0x2736ec)),_0x4af848;});}}w[_0x5027('0x2b')]={'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x3234a6},_0x4614eb)=>{const _0x578085=_0x3234a6[_0x5027('0x12')](_0x42cfa7),_0x202f0e=_0x578085['repository'];let _0x290899=_0x578085['diff'][_0x5027('0xd')],_0x473f21=_0x4614eb['id'];_0x202f0e[_0x5027('0x3b')](_0x290899)>_0x202f0e[_0x5027('0x3b')](_0x473f21)&&([_0x290899,_0x473f21]=[_0x473f21,_0x290899]),_0x578085[_0x5027('0x2e')](_0x290899,_0x473f21);},'isVisible':({plugins:_0x372824},_0x4e330e)=>{const _0x286652=_0x372824[_0x5027('0x12')](_0x42cfa7);return!(_0x286652[_0x5027('0x2a')][_0x5027('0x30')](_0x286652[_0x5027('0x38')])[_0x5027('0x1a')]>0x2)&&!_0x4e330e[_0x5027('0xb')];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x259acd,{id:_0x1eda43})=>{_0x259acd[_0x5027('0xa')]['get']('revisionHistory')[_0x5027('0x0')](_0x1eda43);},'isVisible':({plugins:_0x41b5cf},_0x4433f3)=>!!_0x41b5cf[_0x5027('0x12')](_0x42cfa7)['repository']['getLaterVisibleRevision'](_0x4433f3['id'])},'nameRevision':{'name':_0x5027('0x3'),'action':({plugins:_0x4e418c},{id:_0x59a255,revisionNameView:_0x89e174})=>{const _0x3204c2=_0x4e418c[_0x5027('0x12')](_0x42cfa7),_0x19c27f=_0x3204c2[_0x5027('0x2a')][_0x5027('0x1')](_0x59a255);_0x3204c2[_0x5027('0x2e')](_0x59a255,_0x19c27f),_0x89e174[_0x5027('0x21')](),_0x89e174[_0x5027('0x7')][_0x5027('0x13')]();}}},w[_0x5027('0x25')]=['compareAgainstSelected',_0x5027('0x33'),_0x5027('0x16')];
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5d97=['setTemplate','Revision\x20history','content','history','span'];(function(_0x776276,_0x5d9712){const _0x751b5f=function(_0x5bebcf){while(--_0x5bebcf){_0x776276['push'](_0x776276['shift']());}};_0x751b5f(++_0x5d9712);}(_0x5d97,0x83));const _0x751b=function(_0x776276,_0x5d9712){_0x776276=_0x776276-0x0;let _0x751b5f=_0x5d97[_0x776276];return _0x751b5f;};import{View as _0x3bbfef,IconView as _0x42a728}from'ckeditor5/src/ui';import{getTranslation as _0x1a06e2}from'../../utils/common-translations';import{icons as _0x2c2356}from'ckeditor5/src/core';import'../../../theme/revisionssidebar/revisionssidebarheader.css';export default class rr extends _0x3bbfef{constructor(_0x524aa2){super(_0x524aa2);const _0x5e5a9c=new _0x42a728();_0x5e5a9c[_0x751b('0x1')]=_0x2c2356[_0x751b('0x2')],this[_0x751b('0x4')]({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x5e5a9c,{'tag':_0x751b('0x3'),'attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[_0x1a06e2(_0x524aa2,_0x751b('0x0'))]}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2a91=['div','setName','startDate','revisionViews','localizedPeriodName','ck-revision-history-sidebar__time-period__revisions','removeRevision','delegate','locale','uiLanguage','remove','addRevision','_revisionActions','select'];(function(_0x3f3b70,_0x2a9137){const _0x47f9cc=function(_0x45f8b8){while(--_0x45f8b8){_0x3f3b70['push'](_0x3f3b70['shift']());}};_0x47f9cc(++_0x2a9137);}(_0x2a91,0x16d));const _0x47f9=function(_0x3f3b70,_0x2a9137){_0x3f3b70=_0x3f3b70-0x0;let _0x47f9cc=_0x2a91[_0x3f3b70];return _0x47f9cc;};import{View as _0x124350}from'ckeditor5/src/ui';import _0x37f24a from'../revision/revisionview';import{getDateTimePeriodInfo as _0x16217a}from'./utils';import'../../../theme/revisionssidebar/revisionssidebartimeperiod.css';export default class pi extends _0x124350{constructor(_0x9ad248,_0x540214,_0x4eff9b){super(_0x9ad248);const _0x3bf261=_0x16217a(_0x540214,this[_0x47f9('0x7')][_0x47f9('0x8')])[_0x47f9('0x3')];this[_0x47f9('0x1')]=_0x540214,this[_0x47f9('0x2')]=this['createCollection'](),this[_0x47f9('0xb')]=_0x4eff9b,this[_0x47f9('0x2')]['delegate'](_0x47f9('0xc'))['to'](this),this['revisionViews'][_0x47f9('0x6')](_0x47f9('0x0'))['to'](this),this['setTemplate']({'tag':_0x47f9('0xd'),'attributes':{'class':['ck','ck-revision-history-sidebar__time-period']},'children':[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__label']},'children':[{'text':_0x3bf261}]},{'tag':_0x47f9('0xd'),'attributes':{'class':['ck',_0x47f9('0x4')]},'children':this[_0x47f9('0x2')]}]});}[_0x47f9('0xa')](_0x4b4f78){const _0x35bc4c=new _0x37f24a(this[_0x47f9('0x7')],_0x4b4f78,this['_revisionActions']);this['revisionViews']['add'](_0x35bc4c);}[_0x47f9('0x5')](_0x3284bb){const _0x3959fb=this[_0x47f9('0x2')]['find'](_0x899233=>_0x899233['id']===_0x3284bb['id']);this[_0x47f9('0x2')][_0x47f9('0x9')](_0x3959fb);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4e5a=['highlight','some','ck-revision-history-sidebar__timeline','_revisionActions','setTemplate','delegate','revisionViews','_getTimePeriodViewByStartDate','_removeRevision','isEnabled','fire','render','remove','get','_revisions','deselect','timePeriodViews','setName','ck-revision-history-sidebar','startDate','_addRevision','uiLanguage','highlightRevisions','createdAt','ck-rounded-corners','locale','createCollection','div','unhighlight','map','set','add','revisionSelected','select','ck-disabled','getTime','addRevision'];(function(_0x1efefe,_0x4e5a97){const _0x40b546=function(_0x1292c3){while(--_0x1292c3){_0x1efefe['push'](_0x1efefe['shift']());}};_0x40b546(++_0x4e5a97);}(_0x4e5a,0xe6));const _0x40b5=function(_0x1efefe,_0x4e5a97){_0x1efefe=_0x1efefe-0x0;let _0x40b546=_0x4e5a[_0x1efefe];return _0x40b546;};import{View as _0x35d18d}from'ckeditor5/src/ui';import _0x3eb539 from'./revisionssidebartimeperiodview';import _0x5debb3 from'./revisionssidebarheaderview';import{getDateTimePeriodInfo as _0x144a9a}from'./utils';import'../../../theme/revisionssidebar/revisionssidebar.css';export default class vi extends _0x35d18d{constructor(_0x204c2a,_0x1ed982,_0x1f6611){super(_0x204c2a);const _0xf86a1=this['bindTemplate'];this[_0x40b5('0x8')]=this[_0x40b5('0x12')](),this[_0x40b5('0x8')][_0x40b5('0x22')](_0x40b5('0x19'))['to'](this),this[_0x40b5('0x8')][_0x40b5('0x22')]('setName')['to'](this),this[_0x40b5('0x6')]=_0x1ed982,this[_0x40b5('0x20')]=_0x1f6611,this['on'](_0x40b5('0x19'),(_0xe782f,_0x36dfd5)=>{this[_0x40b5('0x2')](_0x40b5('0x18'),_0x36dfd5);}),this['on'](_0x40b5('0x9'),(_0x5a00c4,_0x1fe237)=>{this[_0x40b5('0x2')]('revisionSetName',_0x1fe237);}),this[_0x40b5('0x16')](_0x40b5('0x1'),!0x1),this[_0x40b5('0x21')]({'tag':_0x40b5('0x13'),'attributes':{'class':['ck','ck-reset',_0x40b5('0x10'),_0x40b5('0xa')]},'children':[new _0x5debb3(_0x204c2a),{'tag':_0x40b5('0x13'),'attributes':{'class':['ck',_0x40b5('0x1f'),_0xf86a1['if'](_0x40b5('0x1'),_0x40b5('0x1a'),_0xe5936c=>!_0xe5936c)]},'children':this[_0x40b5('0x8')]}]});}[_0x40b5('0x3')](){super[_0x40b5('0x3')]();for(const _0x33581d of this[_0x40b5('0x6')])this[_0x40b5('0xc')](_0x33581d);this[_0x40b5('0x6')]['on'](_0x40b5('0x17'),(_0x4a5c0d,_0x35f76f)=>{this[_0x40b5('0xc')](_0x35f76f);}),this['_revisions']['on'](_0x40b5('0x4'),(_0x1bd502,_0x1e2697)=>{this[_0x40b5('0x0')](_0x1e2697);});}get['revisionViews'](){return this['timePeriodViews'][_0x40b5('0x15')](_0x3801f9=>_0x3801f9['revisionViews'][_0x40b5('0x15')](_0x1c390b=>_0x1c390b))['flat']();}['selectRevision'](_0x5592f5){for(const _0x221bb2 of this[_0x40b5('0x23')])_0x5592f5&&_0x5592f5['id']===_0x221bb2['id']?_0x221bb2[_0x40b5('0x19')]():_0x221bb2[_0x40b5('0x7')]();}[_0x40b5('0xe')](_0x1b39fd){for(const _0x263f3f of this[_0x40b5('0x23')])_0x1b39fd[_0x40b5('0x1e')](({id:_0x33c0a0})=>_0x33c0a0===_0x263f3f['id'])?_0x263f3f[_0x40b5('0x1d')]():_0x263f3f[_0x40b5('0x14')]();}['_addRevision'](_0x700235){const _0x35a117=_0x144a9a(_0x700235[_0x40b5('0xf')],this[_0x40b5('0x11')][_0x40b5('0xd')])[_0x40b5('0xb')];let _0xa1ee0f=this[_0x40b5('0x8')][_0x40b5('0x5')](0x0);_0xa1ee0f&&_0xa1ee0f[_0x40b5('0xb')][_0x40b5('0x1b')]()===_0x35a117[_0x40b5('0x1b')]()||(_0xa1ee0f=new _0x3eb539(this[_0x40b5('0x11')],_0x35a117,this[_0x40b5('0x20')]),this[_0x40b5('0x8')][_0x40b5('0x17')](_0xa1ee0f)),_0xa1ee0f[_0x40b5('0x1c')](_0x700235);}[_0x40b5('0x0')](_0x84c891){const _0x2c85c8=_0x144a9a(_0x84c891[_0x40b5('0xf')],this['locale']['uiLanguage'])[_0x40b5('0xb')];this['_getTimePeriodViewByStartDate'](_0x2c85c8)['removeRevision'](_0x84c891);}[_0x40b5('0x24')](_0x32104e){return this[_0x40b5('0x8')]['find'](_0x458f9a=>_0x458f9a['startDate']['getTime']()===_0x32104e[_0x40b5('0x1b')]());}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x46a8=['startOf','week','day','local','month','weekdayLong','monthLong','year','hasSame','toRelativeCalendar','minus'];(function(_0x52bc7e,_0x46a841){const _0x429d88=function(_0x49717a){while(--_0x49717a){_0x52bc7e['push'](_0x52bc7e['shift']());}};_0x429d88(++_0x46a841);}(_0x46a8,0x1bf));const _0x429d=function(_0x52bc7e,_0x46a841){_0x52bc7e=_0x52bc7e-0x0;let _0x429d88=_0x46a8[_0x52bc7e];return _0x429d88;};import{DateTime as _0x130c7e}from'luxon';export function getDateTimePeriodInfo(_0x2bea12,_0x1b8617){const _0x2c18dd=_0x130c7e['fromJSDate'](_0x2bea12)['setLocale'](_0x1b8617),_0x231c0d=_0x130c7e[_0x429d('0x7')](),_0x251abe=_0x231c0d[_0x429d('0x3')]({'days':0x1})[_0x429d('0x4')](_0x429d('0x6'));let _0x848534,_0x3fe72e;return _0x2c18dd[_0x429d('0x1')](_0x231c0d,'day')?(_0x848534=_0x2c18dd[_0x429d('0x4')](_0x429d('0x6'))['toJSDate'](),_0x3fe72e=_0x2c18dd[_0x429d('0x2')]()):_0x2c18dd[_0x429d('0x1')](_0x251abe,_0x429d('0x6'))?(_0x848534=_0x251abe['toJSDate'](),_0x3fe72e=_0x2c18dd[_0x429d('0x2')]()):_0x2c18dd['hasSame'](_0x231c0d,'week')?(_0x848534=_0x2c18dd['startOf'](_0x429d('0x5'))['toJSDate'](),_0x3fe72e=_0x2c18dd[_0x429d('0x9')]||''):_0x2c18dd[_0x429d('0x1')](_0x231c0d,_0x429d('0x0'))?(_0x848534=_0x2c18dd[_0x429d('0x4')](_0x429d('0x8'))['toJSDate'](),_0x3fe72e=_0x2c18dd[_0x429d('0xa')]||''):(_0x848534=_0x2c18dd[_0x429d('0x4')](_0x429d('0x0'))['toJSDate'](),_0x3fe72e=String(_0x2c18dd[_0x429d('0x0')])),{'startDate':_0x848534,'localizedPeriodName':_0x3fe72e};}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xb7ee=['data','ck-revision-change__label','name','element','_model','isSuggestion','focus','ck-revision-change__','type','ck-annotation','bindTemplate','add','div','Added\x20by','Suggested\x20by','span'];(function(_0x524b7b,_0xb7eea){const _0x33e994=function(_0x516eab){while(--_0x516eab){_0x524b7b['push'](_0x524b7b['shift']());}};_0x33e994(++_0xb7eea);}(_0xb7ee,0x1be));const _0x33e9=function(_0x524b7b,_0xb7eea){_0x524b7b=_0x524b7b-0x0;let _0x33e994=_0xb7ee[_0x524b7b];return _0x33e994;};import{View as _0x326ead}from'ckeditor5/src/ui';import{getTranslation as _0x3f6e7a}from'../../utils/common-translations';export default class Z extends _0x326ead{constructor(_0x2c6725,_0x420ff4){super(_0x2c6725),this[_0x33e9('0x6')]=_0x420ff4,this['changeId']=_0x420ff4['id'];const _0x2bb443=this[_0x33e9('0xc')],_0x2ba786=_0x3f6e7a(_0x2c6725,_0x420ff4[_0x33e9('0x2')][_0x33e9('0x7')]?_0x33e9('0x0'):_0x33e9('0xd')==_0x420ff4[_0x33e9('0xa')]?_0x33e9('0xf'):'Removed\x20by');this['set'](_0x33e9('0xa'),_0x420ff4['type']),this['setTemplate']({'tag':_0x33e9('0xe'),'attributes':{'class':[_0x33e9('0xb'),'ck-revision-change',_0x2bb443['to'](_0x33e9('0xa'),_0x25552c=>_0x33e9('0x9')+_0x25552c)],'tabindex':-0x1},'children':[{'tag':_0x33e9('0x1'),'children':[{'tag':_0x33e9('0x1'),'attributes':{'class':[_0x33e9('0x3')]},'children':[{'text':_0x2ba786}]},{'text':'\x20'+_0x420ff4['author'][_0x33e9('0x4')]}]}]});}[_0x33e9('0x8')](){this[_0x33e9('0x5')][_0x33e9('0x8')]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x475f=['ck-revision-history-ui__changes-navigation__label','set','_isStatusLabelVisible','Total','forward','bindTemplate','X_OF_Y_CHANGES','div','isReady','span','Show\x20previous\x20change','ck-revision-history-ui__changes-navigation__wrapper','Show\x20next\x20change','_statusText','execute','isEnabled','NUMBER_OF_CHANGES','isBackwardNavigationEnabled','backward','isForwardNavigationEnabled','bind','setTemplate','isNavigationMode','EDIT_X_OF_Y_REVISIONS','currentChangeNumber','numberOfChanges','ck-hidden','ck-revision-history-ui__changes-navigation__navigation'];(function(_0x3c7180,_0x475fb9){const _0x34159c=function(_0x1c2ca2){while(--_0x1c2ca2){_0x3c7180['push'](_0x3c7180['shift']());}};_0x34159c(++_0x475fb9);}(_0x475f,0x162));const _0x3415=function(_0x3c7180,_0x475fb9){_0x3c7180=_0x3c7180-0x0;let _0x34159c=_0x475f[_0x3c7180];return _0x34159c;};import{View as _0x4b38e6,ButtonView as _0x2d64f8,ToolbarSeparatorView as _0x4e03ad}from'ckeditor5/src/ui';import{getTranslation as _0xb9b820}from'../../utils/common-translations';import _0x73d10f from'../../../theme/icons/arrow-up.svg';import _0x518e36 from'../../../theme/icons/arrow-down.svg';import'../../../theme/changesnavigation.css';export default class bi extends _0x4b38e6{constructor(_0xf5d75a){super(_0xf5d75a);const _0x2c2426=this[_0x3415('0xf')],_0xeee199=new _0x2d64f8(_0xf5d75a),_0x2dbe22=new _0x2d64f8(_0xf5d75a);this[_0x3415('0xb')](_0x3415('0x4'),!0x1),this[_0x3415('0xb')]('isReady',!0x1),this[_0x3415('0xb')](_0x3415('0x6'),0x0),this[_0x3415('0xb')](_0x3415('0x7'),0x0),this['set']('isForwardNavigationEnabled',!0x1),this[_0x3415('0xb')](_0x3415('0x1b'),!0x1),this['bind'](_0x3415('0xc'))['to'](this,_0x3415('0x12'),this,'numberOfChanges',(_0x3ba3a5,_0xc32c13)=>_0x3ba3a5&&_0xc32c13>0x0),this[_0x3415('0x2')](_0x3415('0x17'))['to'](this,_0x3415('0x12'),this,'currentChangeNumber',this,_0x3415('0x7'),this,_0x3415('0x4'),(_0x2dde5e,_0x5e1cbd,_0x5fddb1,_0x2b1978)=>{if(!_0x2dde5e)return _0xb9b820(_0xf5d75a,'Loading...');if(!_0x5fddb1)return _0xb9b820(_0xf5d75a,'No\x20changes');const _0x528ce0=_0xb9b820(_0xf5d75a,_0x3415('0x1a'),_0x5fddb1);return _0x2b1978?_0xb9b820(_0xf5d75a,_0x3415('0x10'),[_0x5e1cbd+0x1,_0x5fddb1]):_0x528ce0;}),_0xeee199[_0x3415('0xb')]({'label':_0xb9b820(_0xf5d75a,_0x3415('0x14')),'tooltip':!0x0,'icon':_0x73d10f}),_0x2dbe22['set']({'label':_0xb9b820(_0xf5d75a,_0x3415('0x16')),'tooltip':!0x0,'icon':_0x518e36}),_0xeee199['bind'](_0x3415('0x19'))['to'](this,_0x3415('0x1b')),_0x2dbe22[_0x3415('0x2')](_0x3415('0x19'))['to'](this,_0x3415('0x1')),_0xeee199['on'](_0x3415('0x18'),()=>this['fire'](_0x3415('0x18'),_0x3415('0x0'))),_0x2dbe22['on']('execute',()=>this['fire']('execute',_0x3415('0xe'))),this[_0x3415('0x3')]({'tag':_0x3415('0x11'),'attributes':{'class':['ck','ck-revision-history-ui','ck-revision-history-ui__changes-navigation']},'children':[{'tag':_0x3415('0x13'),'attributes':{'class':[_0x3415('0x15')]},'children':[{'tag':_0x3415('0x13'),'attributes':{'class':[_0x3415('0xa'),_0x2c2426['if'](_0x3415('0xc'),_0x3415('0x8'),_0xadc1d2=>!_0xadc1d2)]},'children':[{'text':_0x2c2426['to']('isNavigationMode',_0x24f7d9=>_0x24f7d9?_0xb9b820(_0xf5d75a,_0x3415('0x5'))+':\x20':_0xb9b820(_0xf5d75a,_0x3415('0xd'))+':\x20')}]},{'text':_0x2c2426['to'](_0x3415('0x17'))}]},new _0x4e03ad(),{'tag':_0x3415('0x11'),'attributes':{'class':[_0x3415('0x9')]},'children':[_0xeee199,_0x2dbe22]}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x406d=['change','pluginName','hide','editor','editing','view','removeClass','roots','document','addClass','RevisionViewerLoadingOverlay','show'];(function(_0x4cab5b,_0x406d0d){const _0x1c8d80=function(_0x5489c8){while(--_0x5489c8){_0x4cab5b['push'](_0x4cab5b['shift']());}};_0x1c8d80(++_0x406d0d);}(_0x406d,0x1a6));const _0x1c8d=function(_0x4cab5b,_0x406d0d){_0x4cab5b=_0x4cab5b-0x0;let _0x1c8d80=_0x406d[_0x4cab5b];return _0x1c8d80;};import{Plugin as _0xc3d5c3}from'ckeditor5/src/core';const oe='ck-editor__editable__loading-overlay';import'../../../theme/revisionviewerloadingoverlay.css';export default class te extends _0xc3d5c3{static get[_0x1c8d('0xb')](){return _0x1c8d('0x8');}[_0x1c8d('0x9')](){const _0x15379c=this[_0x1c8d('0x1')][_0x1c8d('0x2')][_0x1c8d('0x3')];_0x15379c[_0x1c8d('0xa')](_0x2a3c3e=>{for(const _0x2a37c7 of _0x15379c[_0x1c8d('0x6')][_0x1c8d('0x5')])_0x2a3c3e[_0x1c8d('0x7')](oe,_0x2a37c7);});}[_0x1c8d('0x0')](){const _0x41e23c=this[_0x1c8d('0x1')][_0x1c8d('0x2')][_0x1c8d('0x3')];_0x41e23c[_0x1c8d('0xa')](_0x569fc6=>{for(const _0x30189f of _0x41e23c[_0x1c8d('0x6')]['roots'])_0x569fc6[_0x1c8d('0x4')](oe,_0x30189f);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xd21d=['pluginName','numberOfChanges','init','isNavigationMode','isReady','listenTo','change:isReady','plugins','config','editor','forward','Restore\x20this\x20revision','hide','execute','showPreviousChange','bind','showNextChange','changesNavigation','get','commands','show','exitToEditing','closeRevisionViewerCallback','set','revisionHistory','isEnabled','componentFactory','restoreRevision','isForwardNavigationEnabled','add','Back\x20to\x20editing'];(function(_0x4db50b,_0xd21d07){const _0x41d44a=function(_0x8c4bb5){while(--_0x8c4bb5){_0x4db50b['push'](_0x4db50b['shift']());}};_0x41d44a(++_0xd21d07);}(_0xd21d,0x1aa));const _0x41d4=function(_0x4db50b,_0xd21d07){_0x4db50b=_0x4db50b-0x0;let _0x41d44a=_0xd21d[_0x4db50b];return _0x41d44a;};import{Plugin as _0x480536}from'ckeditor5/src/core';import{ButtonView as _0x1838b5}from'ckeditor5/src/ui';import _0x1c50dd from'./changesnavigationview';import _0x5b6b13 from'./../../revisionviewer';import _0x30f9e5 from'./revisionviewerloadingoverlay';import{getTranslation as _0x587ac9}from'../../utils/common-translations';import _0x3cf849 from'@ckeditor/ckeditor5-undo/theme/icons/undo.svg';import'../../../theme/revisionviewer.css';export default class R extends _0x480536{static get[_0x41d4('0x8')](){return'RevisionViewerUI';}static get['requires'](){return[_0x5b6b13,_0x30f9e5];}[_0x41d4('0xa')](){const _0x18e32e=this[_0x41d4('0x11')],_0x5701de=_0x18e32e['plugins'][_0x41d4('0x1a')](_0x5b6b13),_0x4da04d=_0x18e32e[_0x41d4('0xf')]['get'](_0x30f9e5);_0x18e32e['ui'][_0x41d4('0x3')]['add'](_0x41d4('0x1d'),_0x217bcd=>{const _0x327338=new _0x1838b5(_0x217bcd);return _0x327338[_0x41d4('0x0')]({'label':_0x587ac9(_0x217bcd,_0x41d4('0x7')),'icon':_0x3cf849,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this[_0x41d4('0xd')](_0x327338,_0x41d4('0x15'),()=>{_0x18e32e[_0x41d4('0x10')][_0x41d4('0x1a')](_0x41d4('0x1'))[_0x41d4('0x1e')]();}),_0x327338;}),_0x18e32e['ui'][_0x41d4('0x3')][_0x41d4('0x6')](_0x41d4('0x4'),_0x4bc866=>{const _0x5eff29=new _0x1838b5(_0x4bc866);return _0x5eff29[_0x41d4('0x0')]({'label':_0x587ac9(_0x4bc866,_0x41d4('0x13')),'withText':!0x0,'tooltip':!0x0}),_0x5eff29[_0x41d4('0x17')](_0x41d4('0x2'))['to'](_0x18e32e[_0x41d4('0x1b')][_0x41d4('0x1a')]('restoreRevision')),this[_0x41d4('0xd')](_0x5eff29,'execute',()=>_0x18e32e['execute'](_0x41d4('0x4'))),_0x5eff29;}),_0x18e32e['ui']['componentFactory'][_0x41d4('0x6')](_0x41d4('0x19'),_0x161b4b=>{const _0x5f5752=new _0x1c50dd(_0x161b4b),_0x13dc82=_0x18e32e[_0x41d4('0x1b')][_0x41d4('0x1a')](_0x41d4('0x16')),_0x31d882=_0x18e32e['commands'][_0x41d4('0x1a')](_0x41d4('0x18'));return _0x5f5752[_0x41d4('0x17')]('isBackwardNavigationEnabled')['to'](_0x13dc82,_0x41d4('0x2')),_0x5f5752['bind'](_0x41d4('0x5'))['to'](_0x31d882,_0x41d4('0x2')),_0x5f5752[_0x41d4('0x17')](_0x41d4('0xc'),'currentChangeNumber',_0x41d4('0x9'),_0x41d4('0xb'))['to'](_0x5701de),this['listenTo'](_0x5f5752,_0x41d4('0x15'),(_0x2be6ce,_0x2098f6)=>{_0x18e32e['execute'](_0x41d4('0x12')===_0x2098f6?_0x41d4('0x18'):_0x41d4('0x16'));}),_0x5f5752;}),_0x4da04d[_0x41d4('0x1c')](),_0x5701de['on'](_0x41d4('0xe'),(_0x50ca0c,_0x21785c,_0x1baf17)=>{_0x1baf17?_0x4da04d[_0x41d4('0x14')]():_0x4da04d[_0x41d4('0x1c')]();});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export function getTranslation(
|
|
23
|
+
export function getTranslation(_0x56ca72,_0x58ee27,_0x2d12a6){const t=_0x56ca72['t'];switch(_0x58ee27){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'},_0x2d12a6);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x2d12a6);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 _0x58ee27;}}
|