@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20231012.0 → 0.0.0-nightly-20231013.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 _0x3289=['children','saveButtonView','isEnabled','revisionHistory','editor','init','addMany','isReady','add','get','Revision\x20history','RevisionHistoryUI','reset','requires','saveRevision','Open\x20revision\x20history','componentFactory','change:isOpen','panelView','isOpen','showRevisionViewerCallback','bind','length','set','view','plugins','focus','cancel','isReadOnly','config','history','render'];(function(_0x5bb0da,_0x3289fb){const _0x1fa666=function(_0x14fc39){while(--_0x14fc39){_0x5bb0da['push'](_0x5bb0da['shift']());}};_0x1fa666(++_0x3289fb);}(_0x3289,0x1e5));const _0x1fa6=function(_0x5bb0da,_0x3289fb){_0x5bb0da=_0x5bb0da-0x0;let _0x1fa666=_0x3289[_0x5bb0da];return _0x1fa666;};import{Plugin as _0x45ca96,icons as _0x4fac78}from'ckeditor5/src/core';import{ListView as _0xa92a9b,ListItemView as _0x522040,ButtonView as _0x5b1628,createDropdown as _0x12fe86}from'ckeditor5/src/ui';import _0x533857 from'../../revisiontracker';import _0x4aeede from'./revisionhistorysaverevisionformview';import{getTranslation as _0x144303}from'../../utils/common-translations';export default class u extends _0x45ca96{static get['pluginName'](){return _0x1fa6('0x6');}static get[_0x1fa6('0x8')](){return[_0x533857];}[_0x1fa6('0x0')](){const _0x56a43b=this[_0x1fa6('0x1f')],_0x523c04=_0x56a43b[_0x1fa6('0x14')][_0x1fa6('0x4')]('RevisionTracker');_0x56a43b['ui'][_0x1fa6('0xb')][_0x1fa6('0x3')](_0x1fa6('0x1e'),_0x3824a7=>{const _0x560f19=_0x12fe86(_0x3824a7),_0x7ca83b=_0x560f19[_0x1fa6('0xd')][_0x1fa6('0x1b')],_0x198f99=new _0xa92a9b(_0x3824a7),_0x52a656=new _0x522040(_0x3824a7),_0x2da02b=new _0x5b1628(_0x3824a7),_0x17fa2f=new _0x522040(_0x3824a7),_0x3977c5=new _0x5b1628(_0x3824a7),_0x236863=new _0x4aeede(_0x3824a7);function _0x1b9d27(){_0x7ca83b[_0x1fa6('0x11')]&&_0x7ca83b['remove'](0x0),_0x7ca83b['add'](_0x198f99);}function _0x2ff11c(){_0x560f19[_0x1fa6('0xe')]=!0x1,_0x56a43b['editing'][_0x1fa6('0x13')][_0x1fa6('0x15')]();}return _0x560f19[_0x1fa6('0x10')]('isEnabled')['to'](_0x523c04,_0x1fa6('0x2'),_0x523c04,_0x1fa6('0x1d'),_0x56a43b,_0x1fa6('0x17'),(_0x25c507,_0x5e8eeb,_0x28c48b)=>_0x25c507&&_0x5e8eeb&&!_0x28c48b),_0x560f19['buttonView'][_0x1fa6('0x12')]({'icon':_0x4fac78[_0x1fa6('0x19')],'label':_0x144303(_0x3824a7,_0x1fa6('0x5')),'tooltip':!0x0}),_0x2da02b[_0x1fa6('0x12')]({'label':_0x144303(_0x3824a7,'Save\x20current\x20revision'),'withText':!0x0}),_0x2da02b['bind'](_0x1fa6('0x1d'))['to'](_0x523c04,_0x1fa6('0x2'),_0x523c04,'isEnabled',_0x56a43b,_0x1fa6('0x17'),(_0x44f897,_0x142d9c,_0x57cb57)=>_0x44f897&&_0x142d9c&&!_0x57cb57),_0x2da02b['on']('execute',()=>function(){_0x7ca83b[_0x1fa6('0x11')]&&_0x7ca83b['remove'](0x0),(_0x236863[_0x1fa6('0x7')](),_0x7ca83b[_0x1fa6('0x3')](_0x236863),_0x236863['focus']());}()),_0x3977c5[_0x1fa6('0x12')]({'label':_0x144303(_0x3824a7,_0x1fa6('0xa')),'withText':!0x0}),_0x3977c5[_0x1fa6('0x10')](_0x1fa6('0x1d'))['to'](_0x523c04,'isReady',_0x56a43b,_0x1fa6('0x17'),(_0x44cc0e,_0x31f4ab)=>_0x44cc0e&&!_0x31f4ab),_0x3977c5['on']('execute',()=>{_0x56a43b[_0x1fa6('0x18')][_0x1fa6('0x4')](_0x1fa6('0x1e'))[_0x1fa6('0xf')](),_0x2ff11c();}),_0x52a656[_0x1fa6('0x1b')][_0x1fa6('0x3')](_0x2da02b),_0x17fa2f[_0x1fa6('0x1b')][_0x1fa6('0x3')](_0x3977c5),_0x198f99['items'][_0x1fa6('0x1')]([_0x52a656,_0x17fa2f]),_0x560f19['on'](_0x1fa6('0xc'),()=>_0x1b9d27()),_0x236863[_0x1fa6('0x1c')][_0x1fa6('0x10')](_0x1fa6('0x1d'))['to'](_0x523c04,'isReady',_0x523c04,_0x1fa6('0x1d'),_0x56a43b,_0x1fa6('0x17'),(_0x439961,_0x541c5c,_0x5cf158)=>_0x439961&&_0x541c5c&&!_0x5cf158),_0x236863['on']('submit',()=>(_0x56a43b['plugins'][_0x1fa6('0x4')](_0x533857)[_0x1fa6('0x9')]({'name':_0x236863['revisionName']}),void _0x2ff11c())),_0x236863['on'](_0x1fa6('0x16'),()=>_0x1b9d27()),_0x236863[_0x1fa6('0x1a')](),_0x1b9d27(),_0x560f19;});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5e51=['_handleEditorDataReady','config','_handleRevisionSetName','restoreRevisionCallback','getRevisionsInDiff','revisionHistory.viewerSidebarContainer','isEnabled','_revisionsRepository','restoreRevision','requires','get','setName','pluginName','isVisible','_handleDiffChange','action','repository','remove','plugins','destroy','_handleRevisionSelected','availableRevisionActions','getIndex','string','_revisionViewer','getEarlierVisibleRevision','name','compareAgainstSelected','revisionHistory','diff','compare','change:diff','fieldView','map','selectRevision','Name\x20this\x20revision','init','bind','highlightRevisions','revisionHistory.revisionActions','Restore\x20this\x20revision','isSelected','timePeriodViews','listenTo','ready','RevisionsSidebar','length','locale','defaultRevisionActions','_sidebarView','getRevision','isReady','newRevisionId','Compare\x20against\x20selected','revisionSetName','editor','select'];(function(_0x265bdc,_0x5e512a){const _0x75d674=function(_0x369fb3){while(--_0x369fb3){_0x265bdc['push'](_0x265bdc['shift']());}};_0x75d674(++_0x5e512a);}(_0x5e51,0x105));const _0x75d6=function(_0x265bdc,_0x5e512a){_0x265bdc=_0x265bdc-0x0;let _0x75d674=_0x5e51[_0x265bdc];return _0x75d674;};import{Plugin as _0x894175}from'ckeditor5/src/core';import _0x5458df from'./revisionssidebarview';import _0x10a867 from'../../revisionviewer';export default class w extends _0x894175{static get[_0x75d6('0x24')](){return _0x75d6('0xc');}static get[_0x75d6('0x21')](){return[_0x10a867];}constructor(_0x3854ba){super(_0x3854ba),this['_revisionViewer']=_0x3854ba[_0x75d6('0x2a')][_0x75d6('0x22')](_0x10a867),this[_0x75d6('0x1f')]=this['_revisionViewer']['repository'],this[_0x75d6('0x10')]=null;}[_0x75d6('0x3')](){const _0x4fedcd=this[_0x75d6('0x1f')]['_revisions'],_0x4c8292=this['_createRevisionActions'](),_0x553f4b=this[_0x75d6('0x16')][_0x75d6('0x19')]['get'](_0x75d6('0x1d'));this[_0x75d6('0x10')]=new _0x5458df(this['editor'][_0x75d6('0xe')],_0x4fedcd,_0x4c8292),this[_0x75d6('0x10')]['on']('revisionSelected',this['_handleRevisionSelected'][_0x75d6('0x4')](this)),this['_sidebarView']['on'](_0x75d6('0x15'),this[_0x75d6('0x1a')][_0x75d6('0x4')](this)),this[_0x75d6('0x10')][_0x75d6('0x4')](_0x75d6('0x1e'))['to'](this['_revisionViewer']),this['_sidebarView'][_0x75d6('0x9')]['on']('add',(_0x478aa2,_0x519cca)=>{_0x519cca['revisionViews']['on']('add',(_0x39398f,_0x18ed35)=>{_0x18ed35[_0x75d6('0x4')](_0x75d6('0x1e'),_0x75d6('0x12'))['to'](this[_0x75d6('0x30')]);});}),this[_0x75d6('0x10')]['render'](),this['listenTo'](this[_0x75d6('0x16')]['data'],_0x75d6('0xb'),this[_0x75d6('0x18')][_0x75d6('0x4')](this)),this[_0x75d6('0xa')](this[_0x75d6('0x30')],_0x75d6('0x37'),this[_0x75d6('0x26')][_0x75d6('0x4')](this)),_0x553f4b['appendChild'](this[_0x75d6('0x10')]['element']);}[_0x75d6('0x2b')](){this['_sidebarView']['element'][_0x75d6('0x29')](),this[_0x75d6('0x10')]['destroy']();}['_handleEditorDataReady'](){const _0x5c38f7=this[_0x75d6('0x1f')]['getRevision'](0x0);if(_0x5c38f7){const _0x5163e2=this['_revisionsRepository'][_0x75d6('0x31')](_0x5c38f7['id']);this[_0x75d6('0x30')]['compare'](_0x5c38f7,_0x5163e2);}}[_0x75d6('0x2c')](_0x1dcb0c,_0x1f6e8f){const _0x1c3804=this[_0x75d6('0x1f')][_0x75d6('0x11')](_0x1f6e8f['id']),_0x304ed2=this[_0x75d6('0x1f')][_0x75d6('0x31')](_0x1c3804['id']);this[_0x75d6('0x30')][_0x75d6('0x36')](_0x1c3804,_0x304ed2);}[_0x75d6('0x1a')](_0x3642d2,_0xabb969){this[_0x75d6('0x1f')][_0x75d6('0x11')](_0xabb969['id'])[_0x75d6('0x23')](_0xabb969[_0x75d6('0x32')]);}[_0x75d6('0x26')](_0x1fd01a,_0x568c2e,_0x27c409){const _0x5ed2ad=this['_revisionsRepository'][_0x75d6('0x1c')](_0x27c409);_0x5ed2ad[_0x75d6('0xd')]>0x2?(this[_0x75d6('0x10')][_0x75d6('0x5')](_0x5ed2ad),this[_0x75d6('0x10')][_0x75d6('0x1')](null)):(this['_sidebarView'][_0x75d6('0x5')]([]),this[_0x75d6('0x10')][_0x75d6('0x1')](_0x5ed2ad[0x0]));}['_createRevisionActions'](){const _0x3e0e3f=this['editor'],_0x4ca8b3=w[_0x75d6('0x2d')],_0x543429=_0x3e0e3f[_0x75d6('0x19')][_0x75d6('0x22')](_0x75d6('0x6'))||w[_0x75d6('0xf')];if(_0x543429[_0x75d6('0xd')])return _0x543429[_0x75d6('0x0')](_0x5773a5=>{const _0xfec79d=_0x75d6('0x2f')==typeof _0x5773a5?Object['assign']({},_0x4ca8b3[_0x5773a5]):_0x5773a5;return _0xfec79d[_0x75d6('0x27')]=_0xfec79d[_0x75d6('0x27')][_0x75d6('0x4')](this,_0x3e0e3f),_0xfec79d[_0x75d6('0x25')]&&(_0xfec79d[_0x75d6('0x25')]=_0xfec79d['isVisible'][_0x75d6('0x4')](this,_0x3e0e3f)),_0xfec79d;});}}w['availableRevisionActions']={'compareAgainstSelected':{'name':_0x75d6('0x14'),'action':({plugins:_0x93510c},_0x41319c)=>{const _0x42f38d=_0x93510c[_0x75d6('0x22')](_0x10a867),_0x39eeed=_0x42f38d[_0x75d6('0x28')];let _0x210215=_0x42f38d[_0x75d6('0x35')][_0x75d6('0x13')],_0x5ad77d=_0x41319c['id'];_0x39eeed[_0x75d6('0x2e')](_0x210215)>_0x39eeed[_0x75d6('0x2e')](_0x5ad77d)&&([_0x210215,_0x5ad77d]=[_0x5ad77d,_0x210215]),_0x42f38d[_0x75d6('0x36')](_0x210215,_0x5ad77d);},'isVisible':({plugins:_0x504720},_0x358a1)=>{const _0xffa715=_0x504720[_0x75d6('0x22')](_0x10a867);return!(_0xffa715[_0x75d6('0x28')][_0x75d6('0x1c')](_0xffa715[_0x75d6('0x35')])['length']>0x2)&&!_0x358a1[_0x75d6('0x8')];}},'restoreRevision':{'name':_0x75d6('0x7'),'action':(_0x26c614,{id:_0x130813})=>{_0x26c614[_0x75d6('0x19')][_0x75d6('0x22')](_0x75d6('0x34'))[_0x75d6('0x1b')](_0x130813);},'isVisible':({plugins:_0x1b67d5},_0x4ec6f8)=>!!_0x1b67d5[_0x75d6('0x22')](_0x10a867)[_0x75d6('0x28')]['getLaterVisibleRevision'](_0x4ec6f8['id'])},'nameRevision':{'name':_0x75d6('0x2'),'action':({plugins:_0x339056},{id:_0x19d430,revisionNameView:_0x28b4bc})=>{const _0x39cbb3=_0x339056[_0x75d6('0x22')](_0x10a867),_0x264217=_0x39cbb3['repository'][_0x75d6('0x31')](_0x19d430);_0x39cbb3[_0x75d6('0x36')](_0x19d430,_0x264217),_0x28b4bc['focus'](),_0x28b4bc[_0x75d6('0x38')][_0x75d6('0x17')]();}}},w[_0x75d6('0xf')]=[_0x75d6('0x33'),_0x75d6('0x20'),'nameRevision'];
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xe6dc=['ck-reset_all','ck-revision-history-sidebar__header','ck-revision-history-sidebar__header__label','content','div','Revision\x20history','span'];(function(_0x40b213,_0xe6dc54){const _0x593b44=function(_0x1a1ffa){while(--_0x1a1ffa){_0x40b213['push'](_0x40b213['shift']());}};_0x593b44(++_0xe6dc54);}(_0xe6dc,0x174));const _0x593b=function(_0x40b213,_0xe6dc54){_0x40b213=_0x40b213-0x0;let _0x593b44=_0xe6dc[_0x40b213];return _0x593b44;};import{View as _0x6a169f,IconView as _0x2dd0c0}from'ckeditor5/src/ui';import{getTranslation as _0x14e741}from'../../utils/common-translations';import{icons as _0x5689f4}from'ckeditor5/src/core';import'../../../theme/revisionssidebar/revisionssidebarheader.css';export default class rr extends _0x6a169f{constructor(_0x8fb6df){super(_0x8fb6df);const _0x44b6be=new _0x2dd0c0();_0x44b6be[_0x593b('0x2')]=_0x5689f4['history'],this['setTemplate']({'tag':_0x593b('0x3'),'attributes':{'class':['ck',_0x593b('0x6'),_0x593b('0x0')]},'children':[_0x44b6be,{'tag':_0x593b('0x5'),'attributes':{'class':['ck',_0x593b('0x1')]},'children':[_0x14e741(_0x8fb6df,_0x593b('0x4'))]}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5908=['uiLanguage','setName','select','ck-revision-history-sidebar__time-period__revisions','revisionViews','setTemplate','locale','div','delegate','ck-revision-history-sidebar__time-period','ck-revision-history-sidebar__time-period__label','addRevision','startDate','createCollection','remove','add','_revisionActions','span'];(function(_0xb3c29,_0x590807){const _0x16bcf0=function(_0x3231d6){while(--_0x3231d6){_0xb3c29['push'](_0xb3c29['shift']());}};_0x16bcf0(++_0x590807);}(_0x5908,0x66));const _0x16bc=function(_0xb3c29,_0x590807){_0xb3c29=_0xb3c29-0x0;let _0x16bcf0=_0x5908[_0xb3c29];return _0x16bcf0;};import{View as _0x228867}from'ckeditor5/src/ui';import _0x1898eb from'../revision/revisionview';import{getDateTimePeriodInfo as _0x347933}from'./utils';import'../../../theme/revisionssidebar/revisionssidebartimeperiod.css';export default class pi extends _0x228867{constructor(_0x53d1bd,_0x5a0d6c,_0x1d7f52){super(_0x53d1bd);const _0x3bcd1f=_0x347933(_0x5a0d6c,this[_0x16bc('0xc')][_0x16bc('0x6')])['localizedPeriodName'];this[_0x16bc('0x0')]=_0x5a0d6c,this[_0x16bc('0xa')]=this[_0x16bc('0x1')](),this[_0x16bc('0x4')]=_0x1d7f52,this[_0x16bc('0xa')][_0x16bc('0xe')](_0x16bc('0x8'))['to'](this),this['revisionViews'][_0x16bc('0xe')](_0x16bc('0x7'))['to'](this),this[_0x16bc('0xb')]({'tag':_0x16bc('0xd'),'attributes':{'class':['ck',_0x16bc('0xf')]},'children':[{'tag':_0x16bc('0x5'),'attributes':{'class':['ck',_0x16bc('0x10')]},'children':[{'text':_0x3bcd1f}]},{'tag':_0x16bc('0xd'),'attributes':{'class':['ck',_0x16bc('0x9')]},'children':this[_0x16bc('0xa')]}]});}[_0x16bc('0x11')](_0x4a5165){const _0x32358b=new _0x1898eb(this[_0x16bc('0xc')],_0x4a5165,this[_0x16bc('0x4')]);this['revisionViews'][_0x16bc('0x3')](_0x32358b);}['removeRevision'](_0x1ff5aa){const _0x11166c=this[_0x16bc('0xa')]['find'](_0x5b3213=>_0x5b3213['id']===_0x1ff5aa['id']);this[_0x16bc('0xa')][_0x16bc('0x2')](_0x11166c);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5be5=['setName','_getTimePeriodViewByStartDate','revisionSetName','createdAt','startDate','unhighlight','setTemplate','timePeriodViews','bindTemplate','deselect','div','map','add','find','render','fire','addRevision','revisionSelected','select','get','_revisions','createCollection','ck-disabled','ck-revision-history-sidebar__timeline','ck-rounded-corners','uiLanguage','getTime','isEnabled','locale','removeRevision','_revisionActions','highlightRevisions','some','remove','delegate','revisionViews','highlight','_addRevision','selectRevision'];(function(_0x483f08,_0x5be565){const _0x2a681e=function(_0x5760d2){while(--_0x5760d2){_0x483f08['push'](_0x483f08['shift']());}};_0x2a681e(++_0x5be565);}(_0x5be5,0x193));const _0x2a68=function(_0x483f08,_0x5be565){_0x483f08=_0x483f08-0x0;let _0x2a681e=_0x5be5[_0x483f08];return _0x2a681e;};import{View as _0x18337b}from'ckeditor5/src/ui';import _0x16b9c0 from'./revisionssidebartimeperiodview';import _0x293896 from'./revisionssidebarheaderview';import{getDateTimePeriodInfo as _0x4df2ea}from'./utils';import'../../../theme/revisionssidebar/revisionssidebar.css';export default class vi extends _0x18337b{constructor(_0x497065,_0x4c2746,_0x29e6ca){super(_0x497065);const _0x364cfa=this[_0x2a68('0x22')];this[_0x2a68('0x21')]=this[_0x2a68('0x8')](),this[_0x2a68('0x21')][_0x2a68('0x15')](_0x2a68('0x5'))['to'](this),this[_0x2a68('0x21')][_0x2a68('0x15')](_0x2a68('0x1a'))['to'](this),this['_revisions']=_0x4c2746,this[_0x2a68('0x11')]=_0x29e6ca,this['on'](_0x2a68('0x5'),(_0x1f869b,_0x36bc6c)=>{this[_0x2a68('0x2')](_0x2a68('0x4'),_0x36bc6c);}),this['on']('setName',(_0x1554a5,_0x24796c)=>{this[_0x2a68('0x2')](_0x2a68('0x1c'),_0x24796c);}),this['set'](_0x2a68('0xe'),!0x1),this[_0x2a68('0x20')]({'tag':_0x2a68('0x24'),'attributes':{'class':['ck','ck-reset',_0x2a68('0xb'),'ck-revision-history-sidebar']},'children':[new _0x293896(_0x497065),{'tag':'div','attributes':{'class':['ck',_0x2a68('0xa'),_0x364cfa['if'](_0x2a68('0xe'),_0x2a68('0x9'),_0x2d89a5=>!_0x2d89a5)]},'children':this[_0x2a68('0x21')]}]});}['render'](){super[_0x2a68('0x1')]();for(const _0x716878 of this[_0x2a68('0x7')])this[_0x2a68('0x18')](_0x716878);this['_revisions']['on'](_0x2a68('0x26'),(_0x7f03fe,_0x4e0334)=>{this[_0x2a68('0x18')](_0x4e0334);}),this[_0x2a68('0x7')]['on'](_0x2a68('0x14'),(_0x2e88ff,_0x79401f)=>{this['_removeRevision'](_0x79401f);});}get[_0x2a68('0x16')](){return this[_0x2a68('0x21')][_0x2a68('0x25')](_0x341496=>_0x341496['revisionViews']['map'](_0x3c6d14=>_0x3c6d14))['flat']();}[_0x2a68('0x19')](_0x4f7296){for(const _0x1f4f61 of this[_0x2a68('0x16')])_0x4f7296&&_0x4f7296['id']===_0x1f4f61['id']?_0x1f4f61[_0x2a68('0x5')]():_0x1f4f61[_0x2a68('0x23')]();}[_0x2a68('0x12')](_0x527687){for(const _0x429335 of this[_0x2a68('0x16')])_0x527687[_0x2a68('0x13')](({id:_0xcbd2f2})=>_0xcbd2f2===_0x429335['id'])?_0x429335[_0x2a68('0x17')]():_0x429335[_0x2a68('0x1f')]();}[_0x2a68('0x18')](_0x59373a){const _0x2925c1=_0x4df2ea(_0x59373a['createdAt'],this[_0x2a68('0xf')][_0x2a68('0xc')])[_0x2a68('0x1e')];let _0x24fa6e=this[_0x2a68('0x21')][_0x2a68('0x6')](0x0);_0x24fa6e&&_0x24fa6e[_0x2a68('0x1e')][_0x2a68('0xd')]()===_0x2925c1[_0x2a68('0xd')]()||(_0x24fa6e=new _0x16b9c0(this['locale'],_0x2925c1,this[_0x2a68('0x11')]),this['timePeriodViews'][_0x2a68('0x26')](_0x24fa6e)),_0x24fa6e[_0x2a68('0x3')](_0x59373a);}['_removeRevision'](_0x581974){const _0x5ed875=_0x4df2ea(_0x581974[_0x2a68('0x1d')],this[_0x2a68('0xf')][_0x2a68('0xc')])[_0x2a68('0x1e')];this['_getTimePeriodViewByStartDate'](_0x5ed875)[_0x2a68('0x10')](_0x581974);}[_0x2a68('0x1b')](_0x11b370){return this[_0x2a68('0x21')][_0x2a68('0x0')](_0x3eea3f=>_0x3eea3f[_0x2a68('0x1e')][_0x2a68('0xd')]()===_0x11b370[_0x2a68('0xd')]());}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4d0d=['setLocale','month','startOf','fromJSDate','toJSDate','hasSame','day','local','weekdayLong','year','week','monthLong','toRelativeCalendar'];(function(_0x13ce43,_0x4d0d53){const _0x25b415=function(_0xc0bd61){while(--_0xc0bd61){_0x13ce43['push'](_0x13ce43['shift']());}};_0x25b415(++_0x4d0d53);}(_0x4d0d,0xb7));const _0x25b4=function(_0x13ce43,_0x4d0d53){_0x13ce43=_0x13ce43-0x0;let _0x25b415=_0x4d0d[_0x13ce43];return _0x25b415;};import{DateTime as _0x4d14d4}from'luxon';export function getDateTimePeriodInfo(_0x41b391,_0x1dd43d){const _0x298b4e=_0x4d14d4[_0x25b4('0x2')](_0x41b391)[_0x25b4('0xc')](_0x1dd43d),_0x8ea10a=_0x4d14d4[_0x25b4('0x6')](),_0x43750a=_0x8ea10a['minus']({'days':0x1})[_0x25b4('0x1')](_0x25b4('0x5'));let _0x1edc1c,_0x3f952b;return _0x298b4e[_0x25b4('0x4')](_0x8ea10a,'day')?(_0x1edc1c=_0x298b4e['startOf']('day')[_0x25b4('0x3')](),_0x3f952b=_0x298b4e[_0x25b4('0xb')]()):_0x298b4e[_0x25b4('0x4')](_0x43750a,'day')?(_0x1edc1c=_0x43750a[_0x25b4('0x3')](),_0x3f952b=_0x298b4e[_0x25b4('0xb')]()):_0x298b4e[_0x25b4('0x4')](_0x8ea10a,_0x25b4('0x9'))?(_0x1edc1c=_0x298b4e[_0x25b4('0x1')]('week')[_0x25b4('0x3')](),_0x3f952b=_0x298b4e[_0x25b4('0x7')]||''):_0x298b4e[_0x25b4('0x4')](_0x8ea10a,_0x25b4('0x8'))?(_0x1edc1c=_0x298b4e['startOf'](_0x25b4('0x0'))[_0x25b4('0x3')](),_0x3f952b=_0x298b4e[_0x25b4('0xa')]||''):(_0x1edc1c=_0x298b4e[_0x25b4('0x1')](_0x25b4('0x8'))[_0x25b4('0x3')](),_0x3f952b=String(_0x298b4e['year'])),{'startDate':_0x1edc1c,'localizedPeriodName':_0x3f952b};}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x872e=['isSuggestion','Suggested\x20by','ck-revision-change__label','name','author','type','ck-revision-change__','ck-annotation','element','bindTemplate','ck-revision-change','setTemplate','add','span','div','focus','data','_model','Added\x20by'];(function(_0x4cfb92,_0x872ec3){const _0x5db7f9=function(_0x6aeb0d){while(--_0x6aeb0d){_0x4cfb92['push'](_0x4cfb92['shift']());}};_0x5db7f9(++_0x872ec3);}(_0x872e,0x1a7));const _0x5db7=function(_0x4cfb92,_0x872ec3){_0x4cfb92=_0x4cfb92-0x0;let _0x5db7f9=_0x872e[_0x4cfb92];return _0x5db7f9;};import{View as _0x113168}from'ckeditor5/src/ui';import{getTranslation as _0x505a0b}from'../../utils/common-translations';export default class Z extends _0x113168{constructor(_0x544106,_0x38c3aa){super(_0x544106),this[_0x5db7('0xc')]=_0x38c3aa,this['changeId']=_0x38c3aa['id'];const _0x4e1095=this[_0x5db7('0x4')],_0x2e068c=_0x505a0b(_0x544106,_0x38c3aa[_0x5db7('0xb')][_0x5db7('0xe')]?_0x5db7('0xf'):_0x5db7('0x7')==_0x38c3aa[_0x5db7('0x0')]?_0x5db7('0xd'):'Removed\x20by');this['set']('type',_0x38c3aa[_0x5db7('0x0')]),this[_0x5db7('0x6')]({'tag':_0x5db7('0x9'),'attributes':{'class':[_0x5db7('0x2'),_0x5db7('0x5'),_0x4e1095['to']('type',_0xdbe0d5=>_0x5db7('0x1')+_0xdbe0d5)],'tabindex':-0x1},'children':[{'tag':_0x5db7('0x8'),'children':[{'tag':_0x5db7('0x8'),'attributes':{'class':[_0x5db7('0x10')]},'children':[{'text':_0x2e068c}]},{'text':'\x20'+_0x38c3aa[_0x5db7('0x12')][_0x5db7('0x11')]}]}]});}[_0x5db7('0xa')](){this[_0x5db7('0x3')][_0x5db7('0xa')]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5bed=['numberOfChanges','backward','fire','isReady','isNavigationMode','ck-revision-history-ui__changes-navigation__navigation','set','isBackwardNavigationEnabled','ck-revision-history-ui__changes-navigation__label','EDIT_X_OF_Y_REVISIONS','_isStatusLabelVisible','Show\x20previous\x20change','bindTemplate','currentChangeNumber','NUMBER_OF_CHANGES','isForwardNavigationEnabled','span','ck-hidden','_statusText','No\x20changes','bind','ck-revision-history-ui','div','isEnabled','X_OF_Y_CHANGES','execute'];(function(_0xac0f97,_0x5beda3){const _0x4427da=function(_0x4d32fb){while(--_0x4d32fb){_0xac0f97['push'](_0xac0f97['shift']());}};_0x4427da(++_0x5beda3);}(_0x5bed,0x91));const _0x4427=function(_0xac0f97,_0x5beda3){_0xac0f97=_0xac0f97-0x0;let _0x4427da=_0x5bed[_0xac0f97];return _0x4427da;};import{View as _0x9b3082,ButtonView as _0x4e2e3e,ToolbarSeparatorView as _0x5e2784}from'ckeditor5/src/ui';import{getTranslation as _0x36542b}from'../../utils/common-translations';import _0x6fab3f from'../../../theme/icons/arrow-up.svg';import _0x143018 from'../../../theme/icons/arrow-down.svg';import'../../../theme/changesnavigation.css';export default class bi extends _0x9b3082{constructor(_0xd3645f){super(_0xd3645f);const _0x29c95d=this[_0x4427('0x17')],_0x3e4a92=new _0x4e2e3e(_0xd3645f),_0x13e5b2=new _0x4e2e3e(_0xd3645f);this[_0x4427('0x11')](_0x4427('0xf'),!0x1),this[_0x4427('0x11')](_0x4427('0xe'),!0x1),this[_0x4427('0x11')](_0x4427('0x18'),0x0),this[_0x4427('0x11')](_0x4427('0xb'),0x0),this[_0x4427('0x11')](_0x4427('0x0'),!0x1),this['set'](_0x4427('0x12'),!0x1),this[_0x4427('0x5')](_0x4427('0x15'))['to'](this,'isReady',this,_0x4427('0xb'),(_0x1d9484,_0x1f0e35)=>_0x1d9484&&_0x1f0e35>0x0),this[_0x4427('0x5')](_0x4427('0x3'))['to'](this,_0x4427('0xe'),this,_0x4427('0x18'),this,_0x4427('0xb'),this,_0x4427('0xf'),(_0x5ad1dd,_0x1e2d9c,_0x20f6aa,_0x2ff16b)=>{if(!_0x5ad1dd)return _0x36542b(_0xd3645f,'Loading...');if(!_0x20f6aa)return _0x36542b(_0xd3645f,_0x4427('0x4'));const _0x3047cd=_0x36542b(_0xd3645f,_0x4427('0x19'),_0x20f6aa);return _0x2ff16b?_0x36542b(_0xd3645f,_0x4427('0x9'),[_0x1e2d9c+0x1,_0x20f6aa]):_0x3047cd;}),_0x3e4a92[_0x4427('0x11')]({'label':_0x36542b(_0xd3645f,_0x4427('0x16')),'tooltip':!0x0,'icon':_0x6fab3f}),_0x13e5b2[_0x4427('0x11')]({'label':_0x36542b(_0xd3645f,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x143018}),_0x3e4a92[_0x4427('0x5')](_0x4427('0x8'))['to'](this,_0x4427('0x12')),_0x13e5b2['bind'](_0x4427('0x8'))['to'](this,'isForwardNavigationEnabled'),_0x3e4a92['on'](_0x4427('0xa'),()=>this[_0x4427('0xd')]('execute',_0x4427('0xc'))),_0x13e5b2['on']('execute',()=>this[_0x4427('0xd')](_0x4427('0xa'),'forward')),this['setTemplate']({'tag':'div','attributes':{'class':['ck',_0x4427('0x6'),'ck-revision-history-ui__changes-navigation']},'children':[{'tag':_0x4427('0x1'),'attributes':{'class':['ck-revision-history-ui__changes-navigation__wrapper']},'children':[{'tag':'span','attributes':{'class':[_0x4427('0x13'),_0x29c95d['if'](_0x4427('0x15'),_0x4427('0x2'),_0x3b695e=>!_0x3b695e)]},'children':[{'text':_0x29c95d['to'](_0x4427('0xf'),_0x57c32e=>_0x57c32e?_0x36542b(_0xd3645f,_0x4427('0x14'))+':\x20':_0x36542b(_0xd3645f,'Total')+':\x20')}]},{'text':_0x29c95d['to'](_0x4427('0x3'))}]},new _0x5e2784(),{'tag':_0x4427('0x7'),'attributes':{'class':[_0x4427('0x10')]},'children':[_0x3e4a92,_0x13e5b2]}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5b77=['view','show','hide','RevisionViewerLoadingOverlay','change','pluginName','document','removeClass','editing','editor','addClass','roots'];(function(_0x4bf43f,_0x5b7714){const _0x329735=function(_0x470efb){while(--_0x470efb){_0x4bf43f['push'](_0x4bf43f['shift']());}};_0x329735(++_0x5b7714);}(_0x5b77,0x77));const _0x3297=function(_0x4bf43f,_0x5b7714){_0x4bf43f=_0x4bf43f-0x0;let _0x329735=_0x5b77[_0x4bf43f];return _0x329735;};import{Plugin as _0x345a52}from'ckeditor5/src/core';const oe='ck-editor__editable__loading-overlay';import'../../../theme/revisionviewerloadingoverlay.css';export default class te extends _0x345a52{static get[_0x3297('0x6')](){return _0x3297('0x4');}[_0x3297('0x2')](){const _0x2a08e6=this[_0x3297('0xa')][_0x3297('0x9')][_0x3297('0x1')];_0x2a08e6[_0x3297('0x5')](_0x450393=>{for(const _0x1abf21 of _0x2a08e6[_0x3297('0x7')][_0x3297('0x0')])_0x450393[_0x3297('0xb')](oe,_0x1abf21);});}[_0x3297('0x3')](){const _0x3b353b=this[_0x3297('0xa')]['editing'][_0x3297('0x1')];_0x3b353b[_0x3297('0x5')](_0xb5e629=>{for(const _0x46cabd of _0x3b353b[_0x3297('0x7')][_0x3297('0x0')])_0xb5e629[_0x3297('0x8')](oe,_0x46cabd);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5465=['hide','restoreRevision','isNavigationMode','change:isReady','revisionHistory','showPreviousChange','Restore\x20this\x20revision','init','plugins','bind','show','currentChangeNumber','changesNavigation','componentFactory','listenTo','config','isEnabled','requires','isBackwardNavigationEnabled','isReady','commands','execute','pluginName','add','editor','set','forward','closeRevisionViewerCallback','get','ck-revision-history-ui__back-to-editing','showNextChange'];(function(_0x4a7c0e,_0x546529){const _0x58bf44=function(_0x553dc0){while(--_0x553dc0){_0x4a7c0e['push'](_0x4a7c0e['shift']());}};_0x58bf44(++_0x546529);}(_0x5465,0x19d));const _0x58bf=function(_0x4a7c0e,_0x546529){_0x4a7c0e=_0x4a7c0e-0x0;let _0x58bf44=_0x5465[_0x4a7c0e];return _0x58bf44;};import{Plugin as _0x434f9c}from'ckeditor5/src/core';import{ButtonView as _0x251231}from'ckeditor5/src/ui';import _0x1a51de from'./changesnavigationview';import _0x155747 from'./../../revisionviewer';import _0x54a85d from'./revisionviewerloadingoverlay';import{getTranslation as _0x58b8f2}from'../../utils/common-translations';import _0x1ff532 from'@ckeditor/ckeditor5-undo/theme/icons/undo.svg';import'../../../theme/revisionviewer.css';export default class R extends _0x434f9c{static get[_0x58bf('0xc')](){return'RevisionViewerUI';}static get[_0x58bf('0x7')](){return[_0x155747,_0x54a85d];}[_0x58bf('0x1c')](){const _0x11b2eb=this[_0x58bf('0xe')],_0x28aecc=_0x11b2eb[_0x58bf('0x1d')]['get'](_0x155747),_0x55561e=_0x11b2eb[_0x58bf('0x1d')]['get'](_0x54a85d);_0x11b2eb['ui'][_0x58bf('0x3')]['add']('exitToEditing',_0xdbd038=>{const _0x2120c3=new _0x251231(_0xdbd038);return _0x2120c3[_0x58bf('0xf')]({'label':_0x58b8f2(_0xdbd038,'Back\x20to\x20editing'),'icon':_0x1ff532,'withText':!0x0,'tooltip':!0x0,'class':_0x58bf('0x13')}),this[_0x58bf('0x4')](_0x2120c3,_0x58bf('0xb'),()=>{_0x11b2eb[_0x58bf('0x5')]['get'](_0x58bf('0x19'))[_0x58bf('0x11')]();}),_0x2120c3;}),_0x11b2eb['ui'][_0x58bf('0x3')][_0x58bf('0xd')]('restoreRevision',_0x345121=>{const _0x16e02e=new _0x251231(_0x345121);return _0x16e02e[_0x58bf('0xf')]({'label':_0x58b8f2(_0x345121,_0x58bf('0x1b')),'withText':!0x0,'tooltip':!0x0}),_0x16e02e[_0x58bf('0x1e')](_0x58bf('0x6'))['to'](_0x11b2eb[_0x58bf('0xa')][_0x58bf('0x12')](_0x58bf('0x16'))),this['listenTo'](_0x16e02e,'execute',()=>_0x11b2eb[_0x58bf('0xb')](_0x58bf('0x16'))),_0x16e02e;}),_0x11b2eb['ui'][_0x58bf('0x3')][_0x58bf('0xd')](_0x58bf('0x2'),_0x38c317=>{const _0x228558=new _0x1a51de(_0x38c317),_0xc4e6c4=_0x11b2eb[_0x58bf('0xa')][_0x58bf('0x12')](_0x58bf('0x1a')),_0x59d291=_0x11b2eb[_0x58bf('0xa')]['get']('showNextChange');return _0x228558['bind'](_0x58bf('0x8'))['to'](_0xc4e6c4,_0x58bf('0x6')),_0x228558['bind']('isForwardNavigationEnabled')['to'](_0x59d291,_0x58bf('0x6')),_0x228558[_0x58bf('0x1e')](_0x58bf('0x9'),_0x58bf('0x1'),'numberOfChanges',_0x58bf('0x17'))['to'](_0x28aecc),this[_0x58bf('0x4')](_0x228558,'execute',(_0x5ce787,_0x8608bf)=>{_0x11b2eb[_0x58bf('0xb')](_0x58bf('0x10')===_0x8608bf?_0x58bf('0x14'):'showPreviousChange');}),_0x228558;}),_0x55561e[_0x58bf('0x0')](),_0x28aecc['on'](_0x58bf('0x18'),(_0x995abc,_0x47d425,_0x39f3e5)=>{_0x39f3e5?_0x55561e[_0x58bf('0x15')]():_0x55561e[_0x58bf('0x0')]();});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export function getTranslation(
|
|
23
|
+
export function getTranslation(_0x27e89a,_0x328475,_0x21bbc0){const t=_0x27e89a['t'];switch(_0x328475){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'},_0x21bbc0);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x21bbc0);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 _0x328475;}}
|