@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20230811.0 → 0.0.0-nightly-20230813.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 _0x290d=['isOpen','view','isReady','add','set','get','addMany','pluginName','remove','cancel','saveRevision','panelView','length','buttonView','revisionHistory','bind','saveButtonView','isReadOnly','execute','RevisionTracker','config','componentFactory','change:isOpen','children','plugins','focus','isEnabled','showRevisionViewerCallback'];(function(_0x65f520,_0x290d98){const _0x2ea347=function(_0x58aaff){while(--_0x58aaff){_0x65f520['push'](_0x65f520['shift']());}};_0x2ea347(++_0x290d98);}(_0x290d,0x7e));const _0x2ea3=function(_0x65f520,_0x290d98){_0x65f520=_0x65f520-0x0;let _0x2ea347=_0x290d[_0x65f520];return _0x2ea347;};import{Plugin as _0x26274c}from'ckeditor5/src/core';import{ListView as _0x2f0927,ListItemView as _0x517b17,ButtonView as _0x2cefef,createDropdown as _0x2a6ecc}from'ckeditor5/src/ui';import _0x565edc from'../../revisiontracker';import _0x37dc1f from'./revisionhistorysaverevisionformview';import _0x424f12 from'../../../theme/icons/revision-history.svg';import{getTranslation as _0x55b92e}from'../../utils/common-translations';export default class u extends _0x26274c{static get[_0x2ea3('0x15')](){return'RevisionHistoryUI';}static get['requires'](){return[_0x565edc];}['init'](){const _0x24bce9=this['editor'],_0x38db1c=_0x24bce9[_0x2ea3('0xa')][_0x2ea3('0x13')](_0x2ea3('0x5'));_0x24bce9['ui'][_0x2ea3('0x7')][_0x2ea3('0x11')](_0x2ea3('0x0'),_0x34c20a=>{const _0xb26c56=_0x2a6ecc(_0x34c20a),_0x248af2=_0xb26c56[_0x2ea3('0x19')][_0x2ea3('0x9')],_0x1261e9=new _0x2f0927(_0x34c20a),_0x1cb0f9=new _0x517b17(_0x34c20a),_0x4fc8a6=new _0x2cefef(_0x34c20a),_0x52bd8f=new _0x517b17(_0x34c20a),_0x3820d6=new _0x2cefef(_0x34c20a),_0x2e92be=new _0x37dc1f(_0x34c20a);function _0x24a443(){_0x248af2[_0x2ea3('0x1a')]&&_0x248af2[_0x2ea3('0x16')](0x0),_0x248af2[_0x2ea3('0x11')](_0x1261e9);}function _0xa5b8ea(){_0xb26c56[_0x2ea3('0xe')]=!0x1,_0x24bce9['editing'][_0x2ea3('0xf')][_0x2ea3('0xb')]();}return _0xb26c56['bind']('isEnabled')['to'](_0x38db1c,_0x2ea3('0x10'),_0x38db1c,_0x2ea3('0xc'),_0x24bce9,_0x2ea3('0x3'),(_0x3e24d2,_0x47d3db,_0x105634)=>_0x3e24d2&&_0x47d3db&&!_0x105634),_0xb26c56[_0x2ea3('0x1b')][_0x2ea3('0x12')]({'icon':_0x424f12,'label':_0x55b92e(_0x34c20a,'Revision\x20history'),'tooltip':!0x0}),_0x4fc8a6['set']({'label':_0x55b92e(_0x34c20a,'Save\x20current\x20revision'),'withText':!0x0}),_0x4fc8a6[_0x2ea3('0x1')]('isEnabled')['to'](_0x38db1c,'isReady',_0x38db1c,'isEnabled',_0x24bce9,'isReadOnly',(_0x229788,_0x51d533,_0x179ee7)=>_0x229788&&_0x51d533&&!_0x179ee7),_0x4fc8a6['on'](_0x2ea3('0x4'),()=>function(){_0x248af2[_0x2ea3('0x1a')]&&_0x248af2[_0x2ea3('0x16')](0x0),(_0x2e92be['reset'](),_0x248af2[_0x2ea3('0x11')](_0x2e92be),_0x2e92be[_0x2ea3('0xb')]());}()),_0x3820d6['set']({'label':_0x55b92e(_0x34c20a,'Open\x20revision\x20history'),'withText':!0x0}),_0x3820d6['bind'](_0x2ea3('0xc'))['to'](_0x38db1c,_0x2ea3('0x10'),_0x24bce9,_0x2ea3('0x3'),(_0x23be89,_0x2bdc4d)=>_0x23be89&&!_0x2bdc4d),_0x3820d6['on'](_0x2ea3('0x4'),()=>{_0x24bce9[_0x2ea3('0x6')][_0x2ea3('0x13')](_0x2ea3('0x0'))[_0x2ea3('0xd')](),_0xa5b8ea();}),_0x1cb0f9[_0x2ea3('0x9')]['add'](_0x4fc8a6),_0x52bd8f[_0x2ea3('0x9')][_0x2ea3('0x11')](_0x3820d6),_0x1261e9['items'][_0x2ea3('0x14')]([_0x1cb0f9,_0x52bd8f]),_0xb26c56['on'](_0x2ea3('0x8'),()=>_0x24a443()),_0x2e92be[_0x2ea3('0x2')][_0x2ea3('0x1')](_0x2ea3('0xc'))['to'](_0x38db1c,_0x2ea3('0x10'),_0x38db1c,_0x2ea3('0xc'),_0x24bce9,'isReadOnly',(_0x282da7,_0x2ffce3,_0x25b275)=>_0x282da7&&_0x2ffce3&&!_0x25b275),_0x2e92be['on']('submit',()=>(_0x24bce9['plugins'][_0x2ea3('0x13')](_0x565edc)[_0x2ea3('0x18')]({'name':_0x2e92be['revisionName']}),void _0xa5b8ea())),_0x2e92be['on'](_0x2ea3('0x17'),()=>_0x24a443()),_0x2e92be['render'](),_0x24a443(),_0xb26c56;});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xfb15=['pluginName','revisionViews','data','map','fieldView','restoreRevisionCallback','getEarlierVisibleRevision','isEnabled','_revisions','repository','editor','_sidebarView','revisionHistory.revisionActions','element','_revisionsRepository','_handleDiffChange','render','locale','add','isReady','diff','compareAgainstSelected','availableRevisionActions','highlightRevisions','defaultRevisionActions','getRevision','ready','config','newRevisionId','action','requires','nameRevision','revisionHistory.viewerSidebarContainer','setName','_revisionViewer','compare','_handleEditorDataReady','name','destroy','getLaterVisibleRevision','getIndex','_createRevisionActions','assign','get','_handleRevisionSetName','change:diff','selectRevision','bind','isVisible','_handleRevisionSelected','plugins','Compare\x20against\x20selected','timePeriodViews','appendChild','remove','Name\x20this\x20revision','getRevisionsInDiff','RevisionsSidebar','init','length','revisionSelected','restoreRevision','string','select'];(function(_0x59356c,_0xfb156b){const _0x1a95b9=function(_0x43e5a6){while(--_0x43e5a6){_0x59356c['push'](_0x59356c['shift']());}};_0x1a95b9(++_0xfb156b);}(_0xfb15,0x1db));const _0x1a95=function(_0x59356c,_0xfb156b){_0x59356c=_0x59356c-0x0;let _0x1a95b9=_0xfb15[_0x59356c];return _0x1a95b9;};import{Plugin as _0x597f75}from'ckeditor5/src/core';import _0x23ef1e from'./revisionssidebarview';import _0x94bac7 from'../../revisionviewer';export default class w extends _0x597f75{static get[_0x1a95('0x25')](){return _0x1a95('0x1e');}static get[_0x1a95('0x3')](){return[_0x94bac7];}constructor(_0x1ace8c){super(_0x1ace8c),this[_0x1a95('0x7')]=_0x1ace8c[_0x1a95('0x17')][_0x1a95('0x10')](_0x94bac7),this['_revisionsRepository']=this[_0x1a95('0x7')]['repository'],this[_0x1a95('0x30')]=null;}[_0x1a95('0x1f')](){const _0x3cc675=this[_0x1a95('0x33')][_0x1a95('0x2d')],_0x3cdcda=this[_0x1a95('0xe')](),_0x706434=this[_0x1a95('0x2f')][_0x1a95('0x0')][_0x1a95('0x10')](_0x1a95('0x5'));this[_0x1a95('0x30')]=new _0x23ef1e(this[_0x1a95('0x2f')][_0x1a95('0x36')],_0x3cc675,_0x3cdcda),this[_0x1a95('0x30')]['on'](_0x1a95('0x21'),this[_0x1a95('0x16')][_0x1a95('0x14')](this)),this[_0x1a95('0x30')]['on']('revisionSetName',this[_0x1a95('0x11')][_0x1a95('0x14')](this)),this[_0x1a95('0x30')][_0x1a95('0x14')](_0x1a95('0x2c'))['to'](this['_revisionViewer']),this[_0x1a95('0x30')][_0x1a95('0x19')]['on'](_0x1a95('0x37'),(_0x8e7792,_0x32cfc1)=>{_0x32cfc1[_0x1a95('0x26')]['on'](_0x1a95('0x37'),(_0x2b70f6,_0x54517f)=>{_0x54517f[_0x1a95('0x14')]('isEnabled',_0x1a95('0x38'))['to'](this[_0x1a95('0x7')]);});}),this[_0x1a95('0x30')][_0x1a95('0x35')](),this['listenTo'](this[_0x1a95('0x2f')][_0x1a95('0x27')],_0x1a95('0x3f'),this[_0x1a95('0x9')][_0x1a95('0x14')](this)),this['listenTo'](this[_0x1a95('0x7')],_0x1a95('0x12'),this[_0x1a95('0x34')]['bind'](this)),_0x706434[_0x1a95('0x1a')](this['_sidebarView'][_0x1a95('0x32')]);}[_0x1a95('0xb')](){this[_0x1a95('0x30')][_0x1a95('0x32')][_0x1a95('0x1b')](),this[_0x1a95('0x30')][_0x1a95('0xb')]();}[_0x1a95('0x9')](){const _0x10c2ad=this[_0x1a95('0x33')][_0x1a95('0x3e')](0x0);if(_0x10c2ad){const _0x12fb59=this['_revisionsRepository'][_0x1a95('0x2b')](_0x10c2ad['id']);this[_0x1a95('0x7')]['compare'](_0x10c2ad,_0x12fb59);}}[_0x1a95('0x16')](_0x3861e4,_0x249d2a){const _0x1be70b=this[_0x1a95('0x33')][_0x1a95('0x3e')](_0x249d2a['id']),_0x363da9=this[_0x1a95('0x33')][_0x1a95('0x2b')](_0x1be70b['id']);this[_0x1a95('0x7')][_0x1a95('0x8')](_0x1be70b,_0x363da9);}['_handleRevisionSetName'](_0x1f5a6c,_0x1c31cf){this[_0x1a95('0x33')]['getRevision'](_0x1c31cf['id'])[_0x1a95('0x6')](_0x1c31cf[_0x1a95('0xa')]);}[_0x1a95('0x34')](_0x59f2b4,_0x3d825a,_0x3c91c6){const _0x857cdf=this['_revisionsRepository'][_0x1a95('0x1d')](_0x3c91c6);_0x857cdf[_0x1a95('0x20')]>0x2?(this['_sidebarView'][_0x1a95('0x3c')](_0x857cdf),this[_0x1a95('0x30')][_0x1a95('0x13')](null)):(this[_0x1a95('0x30')][_0x1a95('0x3c')]([]),this[_0x1a95('0x30')][_0x1a95('0x13')](_0x857cdf[0x0]));}[_0x1a95('0xe')](){const _0x33205b=this[_0x1a95('0x2f')],_0x18a598=w['availableRevisionActions'],_0x69f338=_0x33205b[_0x1a95('0x0')][_0x1a95('0x10')](_0x1a95('0x31'))||w[_0x1a95('0x3d')];if(_0x69f338[_0x1a95('0x20')])return _0x69f338[_0x1a95('0x28')](_0x2bf57d=>{const _0x105d5b=_0x1a95('0x23')==typeof _0x2bf57d?Object[_0x1a95('0xf')]({},_0x18a598[_0x2bf57d]):_0x2bf57d;return _0x105d5b[_0x1a95('0x2')]=_0x105d5b['action'][_0x1a95('0x14')](this,_0x33205b),_0x105d5b[_0x1a95('0x15')]&&(_0x105d5b[_0x1a95('0x15')]=_0x105d5b[_0x1a95('0x15')]['bind'](this,_0x33205b)),_0x105d5b;});}}w[_0x1a95('0x3b')]={'compareAgainstSelected':{'name':_0x1a95('0x18'),'action':({plugins:_0x57dac1},_0xa80085)=>{const _0x1c4dc9=_0x57dac1[_0x1a95('0x10')](_0x94bac7),_0x59713c=_0x1c4dc9['repository'];let _0x8b4ad0=_0x1c4dc9[_0x1a95('0x39')][_0x1a95('0x1')],_0x1ed35a=_0xa80085['id'];_0x59713c[_0x1a95('0xd')](_0x8b4ad0)>_0x59713c[_0x1a95('0xd')](_0x1ed35a)&&([_0x8b4ad0,_0x1ed35a]=[_0x1ed35a,_0x8b4ad0]),_0x1c4dc9[_0x1a95('0x8')](_0x8b4ad0,_0x1ed35a);},'isVisible':({plugins:_0x596e67},_0x2a3ec3)=>{const _0x54f619=_0x596e67['get'](_0x94bac7);return!(_0x54f619[_0x1a95('0x2e')][_0x1a95('0x1d')](_0x54f619[_0x1a95('0x39')])[_0x1a95('0x20')]>0x2)&&!_0x2a3ec3['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x46a555,{id:_0x3bcf44})=>{_0x46a555[_0x1a95('0x0')][_0x1a95('0x10')]('revisionHistory')[_0x1a95('0x2a')](_0x3bcf44);},'isVisible':({plugins:_0x1860d0},_0x1c47bf)=>!!_0x1860d0[_0x1a95('0x10')](_0x94bac7)['repository'][_0x1a95('0xc')](_0x1c47bf['id'])},'nameRevision':{'name':_0x1a95('0x1c'),'action':({plugins:_0x353c50},{id:_0x3d3348,revisionNameView:_0xd2424b})=>{const _0x2a6bd6=_0x353c50['get'](_0x94bac7),_0x1ca726=_0x2a6bd6[_0x1a95('0x2e')]['getEarlierVisibleRevision'](_0x3d3348);_0x2a6bd6[_0x1a95('0x8')](_0x3d3348,_0x1ca726),_0xd2424b['focus'](),_0xd2424b[_0x1a95('0x29')][_0x1a95('0x24')]();}}},w['defaultRevisionActions']=[_0x1a95('0x3a'),_0x1a95('0x22'),_0x1a95('0x4')];
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x392e=['setTemplate','ck-reset_all','ck-revision-history-sidebar__header__label','span','div','Revision\x20history'];(function(_0xebb37d,_0x392e47){const _0x57beae=function(_0x46fd21){while(--_0x46fd21){_0xebb37d['push'](_0xebb37d['shift']());}};_0x57beae(++_0x392e47);}(_0x392e,0xa1));const _0x57be=function(_0xebb37d,_0x392e47){_0xebb37d=_0xebb37d-0x0;let _0x57beae=_0x392e[_0xebb37d];return _0x57beae;};import{View as _0x2e6d83,IconView as _0x6492ef}from'ckeditor5/src/ui';import{getTranslation as _0x5e6bd6}from'../../utils/common-translations';import _0x362e1c from'../../../theme/icons/revision-history.svg';import'../../../theme/revisionssidebar/revisionssidebarheader.css';export default class ts extends _0x2e6d83{constructor(_0xa4d342){super(_0xa4d342);const _0x487735=new _0x6492ef();_0x487735['content']=_0x362e1c,this[_0x57be('0x1')]({'tag':_0x57be('0x5'),'attributes':{'class':['ck',_0x57be('0x2'),'ck-revision-history-sidebar__header']},'children':[_0x487735,{'tag':_0x57be('0x4'),'attributes':{'class':['ck',_0x57be('0x3')]},'children':[_0x5e6bd6(_0xa4d342,_0x57be('0x0'))]}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x244f=['span','_revisionActions','uiLanguage','ck-revision-history-sidebar__time-period__revisions','removeRevision','localizedPeriodName','setTemplate','revisionViews','addRevision','startDate','setName','ck-revision-history-sidebar__time-period__label','delegate','div','ck-revision-history-sidebar__time-period'];(function(_0x2183e4,_0x244fa8){const _0x36168a=function(_0x13c1c5){while(--_0x13c1c5){_0x2183e4['push'](_0x2183e4['shift']());}};_0x36168a(++_0x244fa8);}(_0x244f,0xf0));const _0x3616=function(_0x2183e4,_0x244fa8){_0x2183e4=_0x2183e4-0x0;let _0x36168a=_0x244f[_0x2183e4];return _0x36168a;};import{View as _0x4e862f}from'ckeditor5/src/ui';import _0x344c19 from'../revision/revisionview';import{getDateTimePeriodInfo as _0x3312e3}from'./utils';import'../../../theme/revisionssidebar/revisionssidebartimeperiod.css';export default class _i extends _0x4e862f{constructor(_0xa57e6,_0x54a3da,_0xe5fa25){super(_0xa57e6);const _0x299354=_0x3312e3(_0x54a3da,this['locale'][_0x3616('0x2')])[_0x3616('0x5')];this[_0x3616('0x9')]=_0x54a3da,this[_0x3616('0x7')]=this['createCollection'](),this[_0x3616('0x1')]=_0xe5fa25,this[_0x3616('0x7')]['delegate']('select')['to'](this),this[_0x3616('0x7')][_0x3616('0xc')](_0x3616('0xa'))['to'](this),this[_0x3616('0x6')]({'tag':'div','attributes':{'class':['ck',_0x3616('0xe')]},'children':[{'tag':_0x3616('0x0'),'attributes':{'class':['ck',_0x3616('0xb')]},'children':[{'text':_0x299354}]},{'tag':_0x3616('0xd'),'attributes':{'class':['ck',_0x3616('0x3')]},'children':this[_0x3616('0x7')]}]});}[_0x3616('0x8')](_0x9a001){const _0x2f81a3=new _0x344c19(this['locale'],_0x9a001,this[_0x3616('0x1')]);this[_0x3616('0x7')]['add'](_0x2f81a3);}[_0x3616('0x4')](_0x51663c){const _0x5b65a9=this[_0x3616('0x7')]['find'](_0x2286a6=>_0x2286a6['id']===_0x51663c['id']);this[_0x3616('0x7')]['remove'](_0x5b65a9);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x586b=['map','revisionViews','_getTimePeriodViewByStartDate','render','selectRevision','uiLanguage','timePeriodViews','set','delegate','_addRevision','ck-revision-history-sidebar','highlight','ck-disabled','createdAt','select','getTime','addRevision','ck-reset','_revisions','some','flat','locale','find','bindTemplate','unhighlight','isEnabled','startDate','ck-rounded-corners','_removeRevision','removeRevision','ck-revision-history-sidebar__timeline','_revisionActions','setName','add','div','revisionSetName','remove'];(function(_0x35bb13,_0x586b48){const _0x51bc2a=function(_0x2881b3){while(--_0x2881b3){_0x35bb13['push'](_0x35bb13['shift']());}};_0x51bc2a(++_0x586b48);}(_0x586b,0x145));const _0x51bc=function(_0x35bb13,_0x586b48){_0x35bb13=_0x35bb13-0x0;let _0x51bc2a=_0x586b[_0x35bb13];return _0x51bc2a;};import{View as _0x1c5a70}from'ckeditor5/src/ui';import _0xc9761f from'./revisionssidebartimeperiodview';import _0xd7d189 from'./revisionssidebarheaderview';import{getDateTimePeriodInfo as _0x579bb9}from'./utils';import'../../../theme/revisionssidebar/revisionssidebar.css';export default class vi extends _0x1c5a70{constructor(_0x3176eb,_0x553d0e,_0x153e3c){super(_0x3176eb);const _0x122e3e=this[_0x51bc('0x1f')];this[_0x51bc('0xe')]=this['createCollection'](),this[_0x51bc('0xe')][_0x51bc('0x10')](_0x51bc('0x16'))['to'](this),this[_0x51bc('0xe')][_0x51bc('0x10')](_0x51bc('0x3'))['to'](this),this[_0x51bc('0x1a')]=_0x553d0e,this[_0x51bc('0x2')]=_0x153e3c,this['on']('select',(_0x2584ae,_0x3b012d)=>{this['fire']('revisionSelected',_0x3b012d);}),this['on'](_0x51bc('0x3'),(_0x5e9b28,_0x459849)=>{this['fire'](_0x51bc('0x6'),_0x459849);}),this[_0x51bc('0xf')](_0x51bc('0x21'),!0x1),this['setTemplate']({'tag':_0x51bc('0x5'),'attributes':{'class':['ck',_0x51bc('0x19'),_0x51bc('0x23'),_0x51bc('0x12')]},'children':[new _0xd7d189(_0x3176eb),{'tag':_0x51bc('0x5'),'attributes':{'class':['ck',_0x51bc('0x1'),_0x122e3e['if'](_0x51bc('0x21'),_0x51bc('0x14'),_0x2ba244=>!_0x2ba244)]},'children':this[_0x51bc('0xe')]}]});}[_0x51bc('0xb')](){super[_0x51bc('0xb')]();for(const _0x16d99d of this['_revisions'])this['_addRevision'](_0x16d99d);this[_0x51bc('0x1a')]['on'](_0x51bc('0x4'),(_0x33de03,_0x3d0f32)=>{this['_addRevision'](_0x3d0f32);}),this[_0x51bc('0x1a')]['on'](_0x51bc('0x7'),(_0x2323b3,_0x417e3c)=>{this[_0x51bc('0x24')](_0x417e3c);});}get[_0x51bc('0x9')](){return this['timePeriodViews']['map'](_0x308c97=>_0x308c97['revisionViews'][_0x51bc('0x8')](_0xce2094=>_0xce2094))[_0x51bc('0x1c')]();}[_0x51bc('0xc')](_0xe3053e){for(const _0x173cf1 of this[_0x51bc('0x9')])_0xe3053e&&_0xe3053e['id']===_0x173cf1['id']?_0x173cf1['select']():_0x173cf1['deselect']();}['highlightRevisions'](_0x5d951){for(const _0x5ddb8c of this[_0x51bc('0x9')])_0x5d951[_0x51bc('0x1b')](({id:_0x3496f9})=>_0x3496f9===_0x5ddb8c['id'])?_0x5ddb8c[_0x51bc('0x13')]():_0x5ddb8c[_0x51bc('0x20')]();}[_0x51bc('0x11')](_0x4dc656){const _0x47de9f=_0x579bb9(_0x4dc656[_0x51bc('0x15')],this[_0x51bc('0x1d')]['uiLanguage'])[_0x51bc('0x22')];let _0x559caf=this[_0x51bc('0xe')]['get'](0x0);_0x559caf&&_0x559caf[_0x51bc('0x22')][_0x51bc('0x17')]()===_0x47de9f['getTime']()||(_0x559caf=new _0xc9761f(this['locale'],_0x47de9f,this[_0x51bc('0x2')]),this[_0x51bc('0xe')][_0x51bc('0x4')](_0x559caf)),_0x559caf[_0x51bc('0x18')](_0x4dc656);}['_removeRevision'](_0x290d2e){const _0x54aee6=_0x579bb9(_0x290d2e[_0x51bc('0x15')],this[_0x51bc('0x1d')][_0x51bc('0xd')])['startDate'];this[_0x51bc('0xa')](_0x54aee6)[_0x51bc('0x0')](_0x290d2e);}[_0x51bc('0xa')](_0x1a614e){return this[_0x51bc('0xe')][_0x51bc('0x1e')](_0x2b2ed3=>_0x2b2ed3[_0x51bc('0x22')][_0x51bc('0x17')]()===_0x1a614e[_0x51bc('0x17')]());}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1a1e=['fromJSDate','year','weekdayLong','toRelativeCalendar','minus','hasSame','month','week','toJSDate','startOf','monthLong','day'];(function(_0x145ae3,_0x1a1e17){const _0x998166=function(_0x32bb02){while(--_0x32bb02){_0x145ae3['push'](_0x145ae3['shift']());}};_0x998166(++_0x1a1e17);}(_0x1a1e,0xb9));const _0x9981=function(_0x145ae3,_0x1a1e17){_0x145ae3=_0x145ae3-0x0;let _0x998166=_0x1a1e[_0x145ae3];return _0x998166;};import{DateTime as _0x319669}from'luxon';export function getDateTimePeriodInfo(_0x358852,_0x1ab93c){const _0x5a8ff4=_0x319669[_0x9981('0x7')](_0x358852)['setLocale'](_0x1ab93c),_0x4e7cf1=_0x319669['local'](),_0x47d6c7=_0x4e7cf1[_0x9981('0xb')]({'days':0x1})[_0x9981('0x4')]('day');let _0x3b2c44,_0x453a50;return _0x5a8ff4[_0x9981('0x0')](_0x4e7cf1,'day')?(_0x3b2c44=_0x5a8ff4[_0x9981('0x4')](_0x9981('0x6'))[_0x9981('0x3')](),_0x453a50=_0x5a8ff4[_0x9981('0xa')]()):_0x5a8ff4[_0x9981('0x0')](_0x47d6c7,_0x9981('0x6'))?(_0x3b2c44=_0x47d6c7[_0x9981('0x3')](),_0x453a50=_0x5a8ff4[_0x9981('0xa')]()):_0x5a8ff4[_0x9981('0x0')](_0x4e7cf1,'week')?(_0x3b2c44=_0x5a8ff4[_0x9981('0x4')](_0x9981('0x2'))['toJSDate'](),_0x453a50=_0x5a8ff4[_0x9981('0x9')]||''):_0x5a8ff4[_0x9981('0x0')](_0x4e7cf1,'year')?(_0x3b2c44=_0x5a8ff4[_0x9981('0x4')](_0x9981('0x1'))[_0x9981('0x3')](),_0x453a50=_0x5a8ff4[_0x9981('0x5')]||''):(_0x3b2c44=_0x5a8ff4[_0x9981('0x4')](_0x9981('0x8'))['toJSDate'](),_0x453a50=String(_0x5a8ff4[_0x9981('0x8')])),{'startDate':_0x3b2c44,'localizedPeriodName':_0x453a50};}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x99d6=['ck-revision-change__','focus','ck-revision-change','changeId','set','span','div','ck-revision-change__label','element','Removed\x20by','Added\x20by','Suggested\x20by','type'];(function(_0x46176e,_0x99d610){const _0x3c7a58=function(_0x5aab32){while(--_0x5aab32){_0x46176e['push'](_0x46176e['shift']());}};_0x3c7a58(++_0x99d610);}(_0x99d6,0x18a));const _0x3c7a=function(_0x46176e,_0x99d610){_0x46176e=_0x46176e-0x0;let _0x3c7a58=_0x99d6[_0x46176e];return _0x3c7a58;};import{View as _0x584a26}from'ckeditor5/src/ui';import{getTranslation as _0x1ab7e7}from'../../utils/common-translations';export default class Z extends _0x584a26{constructor(_0x4ce32f,_0x5196b9){super(_0x4ce32f),this['_model']=_0x5196b9,this[_0x3c7a('0xc')]=_0x5196b9['id'];const _0x1c68c8=this['bindTemplate'],_0x2daf5b=_0x1ab7e7(_0x4ce32f,_0x5196b9['data']['isSuggestion']?_0x3c7a('0x7'):'add'==_0x5196b9['type']?_0x3c7a('0x6'):_0x3c7a('0x5'));this[_0x3c7a('0x0')](_0x3c7a('0x8'),_0x5196b9[_0x3c7a('0x8')]),this['setTemplate']({'tag':_0x3c7a('0x2'),'attributes':{'class':['ck-annotation',_0x3c7a('0xb'),_0x1c68c8['to']('type',_0x7410b5=>_0x3c7a('0x9')+_0x7410b5)],'tabindex':-0x1},'children':[{'tag':_0x3c7a('0x1'),'children':[{'tag':_0x3c7a('0x1'),'attributes':{'class':[_0x3c7a('0x3')]},'children':[{'text':_0x2daf5b}]},{'text':'\x20'+_0x5196b9['author']['name']}]}]});}[_0x3c7a('0xa')](){this[_0x3c7a('0x4')][_0x3c7a('0xa')]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3922=['bind','isNavigationMode','Loading...','ck-revision-history-ui__changes-navigation__navigation','isBackwardNavigationEnabled','currentChangeNumber','bindTemplate','_statusText','forward','set','isForwardNavigationEnabled','ck-revision-history-ui__changes-navigation','setTemplate','isReady','div','isEnabled','execute','ck-hidden','ck-revision-history-ui__changes-navigation__wrapper','_isStatusLabelVisible','ck-revision-history-ui','fire','X_OF_Y_CHANGES','Total','No\x20changes','backward','numberOfChanges','span','EDIT_X_OF_Y_REVISIONS','Show\x20previous\x20change'];(function(_0xd4b1b2,_0x392284){const _0x1350e0=function(_0x4f2a85){while(--_0x4f2a85){_0xd4b1b2['push'](_0xd4b1b2['shift']());}};_0x1350e0(++_0x392284);}(_0x3922,0x9b));const _0x1350=function(_0xd4b1b2,_0x392284){_0xd4b1b2=_0xd4b1b2-0x0;let _0x1350e0=_0x3922[_0xd4b1b2];return _0x1350e0;};import{View as _0x204192,ButtonView as _0x5e44a0,ToolbarSeparatorView as _0x5bbcfa}from'ckeditor5/src/ui';import{getTranslation as _0x5732dc}from'../../utils/common-translations';import _0x2e144d from'../../../theme/icons/arrow-up.svg';import _0x2819ce from'../../../theme/icons/arrow-down.svg';import'../../../theme/changesnavigation.css';export default class wi extends _0x204192{constructor(_0x2c6ccc){super(_0x2c6ccc);const _0x2cd4a1=this[_0x1350('0x1')],_0x3fb85a=new _0x5e44a0(_0x2c6ccc),_0x99e081=new _0x5e44a0(_0x2c6ccc);this[_0x1350('0x4')](_0x1350('0x1a'),!0x1),this[_0x1350('0x4')](_0x1350('0x8'),!0x1),this[_0x1350('0x4')]('currentChangeNumber',0x0),this['set'](_0x1350('0x15'),0x0),this['set'](_0x1350('0x5'),!0x1),this[_0x1350('0x4')](_0x1350('0x1d'),!0x1),this[_0x1350('0x19')]('_isStatusLabelVisible')['to'](this,_0x1350('0x8'),this,'numberOfChanges',(_0x41cdd0,_0x2f94db)=>_0x41cdd0&&_0x2f94db>0x0),this['bind'](_0x1350('0x2'))['to'](this,_0x1350('0x8'),this,_0x1350('0x0'),this,_0x1350('0x15'),this,_0x1350('0x1a'),(_0x4de2d1,_0x57696a,_0x1b2c51,_0x547e19)=>{if(!_0x4de2d1)return _0x5732dc(_0x2c6ccc,_0x1350('0x1b'));if(!_0x1b2c51)return _0x5732dc(_0x2c6ccc,_0x1350('0x13'));const _0x4b409a=_0x5732dc(_0x2c6ccc,'NUMBER_OF_CHANGES',_0x1b2c51);return _0x547e19?_0x5732dc(_0x2c6ccc,_0x1350('0x11'),[_0x57696a+0x1,_0x1b2c51]):_0x4b409a;}),_0x3fb85a[_0x1350('0x4')]({'label':_0x5732dc(_0x2c6ccc,_0x1350('0x18')),'tooltip':!0x0,'icon':_0x2e144d}),_0x99e081[_0x1350('0x4')]({'label':_0x5732dc(_0x2c6ccc,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x2819ce}),_0x3fb85a['bind'](_0x1350('0xa'))['to'](this,_0x1350('0x1d')),_0x99e081['bind']('isEnabled')['to'](this,_0x1350('0x5')),_0x3fb85a['on'](_0x1350('0xb'),()=>this[_0x1350('0x10')]('execute',_0x1350('0x14'))),_0x99e081['on'](_0x1350('0xb'),()=>this[_0x1350('0x10')]('execute',_0x1350('0x3'))),this[_0x1350('0x7')]({'tag':_0x1350('0x9'),'attributes':{'class':['ck',_0x1350('0xf'),_0x1350('0x6')]},'children':[{'tag':_0x1350('0x16'),'attributes':{'class':[_0x1350('0xd')]},'children':[{'tag':_0x1350('0x16'),'attributes':{'class':['ck-revision-history-ui__changes-navigation__label',_0x2cd4a1['if'](_0x1350('0xe'),_0x1350('0xc'),_0x19b39a=>!_0x19b39a)]},'children':[{'text':_0x2cd4a1['to']('isNavigationMode',_0x2daf14=>_0x2daf14?_0x5732dc(_0x2c6ccc,_0x1350('0x17'))+':\x20':_0x5732dc(_0x2c6ccc,_0x1350('0x12'))+':\x20')}]},{'text':_0x2cd4a1['to']('_statusText')}]},new _0x5bbcfa(),{'tag':_0x1350('0x9'),'attributes':{'class':[_0x1350('0x1c')]},'children':[_0x3fb85a,_0x99e081]}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x58fa=['view','pluginName','RevisionViewerLoadingOverlay','editing','change','roots','editor'];(function(_0x1a3a9a,_0x58fac1){const _0x29496d=function(_0x47dc2b){while(--_0x47dc2b){_0x1a3a9a['push'](_0x1a3a9a['shift']());}};_0x29496d(++_0x58fac1);}(_0x58fa,0xd2));const _0x2949=function(_0x1a3a9a,_0x58fac1){_0x1a3a9a=_0x1a3a9a-0x0;let _0x29496d=_0x58fa[_0x1a3a9a];return _0x29496d;};import{Plugin as _0x433970}from'ckeditor5/src/core';const oe='ck-editor__editable__loading-overlay';import'../../../theme/revisionviewerloadingoverlay.css';export default class te extends _0x433970{static get[_0x2949('0x1')](){return _0x2949('0x2');}['show'](){const _0x2f49e4=this[_0x2949('0x6')][_0x2949('0x3')][_0x2949('0x0')];_0x2f49e4['change'](_0x38f44e=>{for(const _0x4e2e0b of _0x2f49e4['document'][_0x2949('0x5')])_0x38f44e['addClass'](oe,_0x4e2e0b);});}['hide'](){const _0x2561b0=this[_0x2949('0x6')][_0x2949('0x3')][_0x2949('0x0')];_0x2561b0[_0x2949('0x4')](_0x3be5ac=>{for(const _0x511a3d of _0x2561b0['document']['roots'])_0x3be5ac['removeClass'](oe,_0x511a3d);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xd300=['showPreviousChange','currentChangeNumber','plugins','bind','componentFactory','showNextChange','Restore\x20this\x20revision','get','numberOfChanges','config','changesNavigation','closeRevisionViewerCallback','commands','show','execute','pluginName','forward','listenTo','requires','isEnabled','set','isReady','restoreRevision','Back\x20to\x20editing','isNavigationMode','editor','exitToEditing','hide','ck-revision-history-ui__back-to-editing'];(function(_0x4be421,_0xd300c0){const _0x195b52=function(_0x1953d5){while(--_0x1953d5){_0x4be421['push'](_0x4be421['shift']());}};_0x195b52(++_0xd300c0);}(_0xd300,0x1a3));const _0x195b=function(_0x4be421,_0xd300c0){_0x4be421=_0x4be421-0x0;let _0x195b52=_0xd300[_0x4be421];return _0x195b52;};import{Plugin as _0x44425d}from'ckeditor5/src/core';import{ButtonView as _0x3f2c44}from'ckeditor5/src/ui';import _0x3be9b0 from'./changesnavigationview';import _0x7879cf from'./../../revisionviewer';import _0x3240e8 from'./revisionviewerloadingoverlay';import{getTranslation as _0x325923}from'../../utils/common-translations';import _0x4d2615 from'@ckeditor/ckeditor5-undo/theme/icons/undo.svg';import'../../../theme/revisionviewer.css';export default class R extends _0x44425d{static get[_0x195b('0x2')](){return'RevisionViewerUI';}static get[_0x195b('0x5')](){return[_0x7879cf,_0x3240e8];}['init'](){const _0x323273=this[_0x195b('0xc')],_0x5c3ab8=_0x323273[_0x195b('0x12')]['get'](_0x7879cf),_0x41f58d=_0x323273['plugins'][_0x195b('0x17')](_0x3240e8);_0x323273['ui'][_0x195b('0x14')]['add'](_0x195b('0xd'),_0x222d44=>{const _0x2e73ad=new _0x3f2c44(_0x222d44);return _0x2e73ad[_0x195b('0x7')]({'label':_0x325923(_0x222d44,_0x195b('0xa')),'icon':_0x4d2615,'withText':!0x0,'tooltip':!0x0,'class':_0x195b('0xf')}),this[_0x195b('0x4')](_0x2e73ad,_0x195b('0x1'),()=>{_0x323273[_0x195b('0x19')][_0x195b('0x17')]('revisionHistory')[_0x195b('0x1b')]();}),_0x2e73ad;}),_0x323273['ui'][_0x195b('0x14')]['add'](_0x195b('0x9'),_0x4c3eb5=>{const _0x13d723=new _0x3f2c44(_0x4c3eb5);return _0x13d723[_0x195b('0x7')]({'label':_0x325923(_0x4c3eb5,_0x195b('0x16')),'withText':!0x0,'tooltip':!0x0}),_0x13d723[_0x195b('0x13')]('isEnabled')['to'](_0x323273['commands'][_0x195b('0x17')](_0x195b('0x9'))),this[_0x195b('0x4')](_0x13d723,'execute',()=>_0x323273['execute'](_0x195b('0x9'))),_0x13d723;}),_0x323273['ui'][_0x195b('0x14')]['add'](_0x195b('0x1a'),_0x54ff81=>{const _0x3e7800=new _0x3be9b0(_0x54ff81),_0x1799db=_0x323273[_0x195b('0x1c')][_0x195b('0x17')](_0x195b('0x10')),_0x45f630=_0x323273[_0x195b('0x1c')][_0x195b('0x17')](_0x195b('0x15'));return _0x3e7800['bind']('isBackwardNavigationEnabled')['to'](_0x1799db,_0x195b('0x6')),_0x3e7800[_0x195b('0x13')]('isForwardNavigationEnabled')['to'](_0x45f630,_0x195b('0x6')),_0x3e7800['bind'](_0x195b('0x8'),_0x195b('0x11'),_0x195b('0x18'),_0x195b('0xb'))['to'](_0x5c3ab8),this[_0x195b('0x4')](_0x3e7800,_0x195b('0x1'),(_0x47af4e,_0x1567a3)=>{_0x323273[_0x195b('0x1')](_0x195b('0x3')===_0x1567a3?_0x195b('0x15'):'showPreviousChange');}),_0x3e7800;}),_0x41f58d[_0x195b('0x0')](),_0x5c3ab8['on']('change:isReady',(_0x1f959b,_0x393f91,_0x442a03)=>{_0x442a03?_0x41f58d[_0x195b('0xe')]():_0x41f58d[_0x195b('0x0')]();});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export function getTranslation(
|
|
23
|
+
export function getTranslation(_0x675498,_0x20fdb6,_0x9d9d75){const t=_0x675498['t'];switch(_0x20fdb6){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'},_0x9d9d75);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x9d9d75);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 _0x20fdb6;}}
|