@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20230818.1 → 0.0.0-nightly-20230819.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 _0x3a4c=['execute','remove','get','revisionName','children','isReadOnly','addMany','items','length','change:isOpen','init','panelView','add','Save\x20current\x20revision','editor','plugins','RevisionTracker','set','render','buttonView','Open\x20revision\x20history','config','submit','cancel','isOpen','saveRevision','pluginName','focus','isEnabled','editing','isReady','RevisionHistoryUI','saveButtonView','revisionHistory','bind','showRevisionViewerCallback'];(function(_0x1cd276,_0x3a4c9e){const _0x4fdae9=function(_0x4f5288){while(--_0x4f5288){_0x1cd276['push'](_0x1cd276['shift']());}};_0x4fdae9(++_0x3a4c9e);}(_0x3a4c,0xdd));const _0x4fda=function(_0x1cd276,_0x3a4c9e){_0x1cd276=_0x1cd276-0x0;let _0x4fdae9=_0x3a4c[_0x1cd276];return _0x4fdae9;};import{Plugin as _0x8999d1}from'ckeditor5/src/core';import{ListView as _0x36b5a8,ListItemView as _0x67ab42,ButtonView as _0x1dbcfb,createDropdown as _0xdc8ee8}from'ckeditor5/src/ui';import _0x599b7b from'../../revisiontracker';import _0x24a5ef from'./revisionhistorysaverevisionformview';import _0x392453 from'../../../theme/icons/revision-history.svg';import{getTranslation as _0x37d194}from'../../utils/common-translations';export default class u extends _0x8999d1{static get[_0x4fda('0x15')](){return _0x4fda('0x1a');}static get['requires'](){return[_0x599b7b];}[_0x4fda('0x5')](){const _0x2701e6=this[_0x4fda('0x9')],_0x1ad1c0=_0x2701e6[_0x4fda('0xa')][_0x4fda('0x21')](_0x4fda('0xb'));_0x2701e6['ui']['componentFactory'][_0x4fda('0x7')]('revisionHistory',_0x4a5939=>{const _0x151b66=_0xdc8ee8(_0x4a5939),_0x4886af=_0x151b66[_0x4fda('0x6')][_0x4fda('0x23')],_0x2f8408=new _0x36b5a8(_0x4a5939),_0x4e807b=new _0x67ab42(_0x4a5939),_0x186b81=new _0x1dbcfb(_0x4a5939),_0x12ef6d=new _0x67ab42(_0x4a5939),_0x2f73a3=new _0x1dbcfb(_0x4a5939),_0x413a6f=new _0x24a5ef(_0x4a5939);function _0x411f85(){_0x4886af[_0x4fda('0x3')]&&_0x4886af[_0x4fda('0x20')](0x0),_0x4886af['add'](_0x2f8408);}function _0x104e78(){_0x151b66[_0x4fda('0x13')]=!0x1,_0x2701e6[_0x4fda('0x18')]['view'][_0x4fda('0x16')]();}return _0x151b66[_0x4fda('0x1d')]('isEnabled')['to'](_0x1ad1c0,_0x4fda('0x19'),_0x1ad1c0,_0x4fda('0x17'),_0x2701e6,_0x4fda('0x0'),(_0x1036eb,_0x4fa8b7,_0x172415)=>_0x1036eb&&_0x4fa8b7&&!_0x172415),_0x151b66[_0x4fda('0xe')][_0x4fda('0xc')]({'icon':_0x392453,'label':_0x37d194(_0x4a5939,'Revision\x20history'),'tooltip':!0x0}),_0x186b81[_0x4fda('0xc')]({'label':_0x37d194(_0x4a5939,_0x4fda('0x8')),'withText':!0x0}),_0x186b81[_0x4fda('0x1d')](_0x4fda('0x17'))['to'](_0x1ad1c0,_0x4fda('0x19'),_0x1ad1c0,'isEnabled',_0x2701e6,'isReadOnly',(_0x35fe0f,_0xc946d5,_0x236c07)=>_0x35fe0f&&_0xc946d5&&!_0x236c07),_0x186b81['on'](_0x4fda('0x1f'),()=>function(){_0x4886af[_0x4fda('0x3')]&&_0x4886af[_0x4fda('0x20')](0x0),(_0x413a6f['reset'](),_0x4886af[_0x4fda('0x7')](_0x413a6f),_0x413a6f[_0x4fda('0x16')]());}()),_0x2f73a3['set']({'label':_0x37d194(_0x4a5939,_0x4fda('0xf')),'withText':!0x0}),_0x2f73a3[_0x4fda('0x1d')](_0x4fda('0x17'))['to'](_0x1ad1c0,_0x4fda('0x19'),_0x2701e6,_0x4fda('0x0'),(_0x44cc7,_0x3c8f79)=>_0x44cc7&&!_0x3c8f79),_0x2f73a3['on'](_0x4fda('0x1f'),()=>{_0x2701e6[_0x4fda('0x10')]['get'](_0x4fda('0x1c'))[_0x4fda('0x1e')](),_0x104e78();}),_0x4e807b[_0x4fda('0x23')]['add'](_0x186b81),_0x12ef6d[_0x4fda('0x23')][_0x4fda('0x7')](_0x2f73a3),_0x2f8408[_0x4fda('0x2')][_0x4fda('0x1')]([_0x4e807b,_0x12ef6d]),_0x151b66['on'](_0x4fda('0x4'),()=>_0x411f85()),_0x413a6f[_0x4fda('0x1b')][_0x4fda('0x1d')](_0x4fda('0x17'))['to'](_0x1ad1c0,_0x4fda('0x19'),_0x1ad1c0,_0x4fda('0x17'),_0x2701e6,_0x4fda('0x0'),(_0x439072,_0x2a5717,_0x48b815)=>_0x439072&&_0x2a5717&&!_0x48b815),_0x413a6f['on'](_0x4fda('0x11'),()=>(_0x2701e6[_0x4fda('0xa')][_0x4fda('0x21')](_0x599b7b)[_0x4fda('0x14')]({'name':_0x413a6f[_0x4fda('0x22')]}),void _0x104e78())),_0x413a6f['on'](_0x4fda('0x12'),()=>_0x411f85()),_0x413a6f[_0x4fda('0xd')](),_0x411f85(),_0x151b66;});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x22c3=['revisionHistory','render','compareAgainstSelected','config','_revisionViewer','revisionSetName','selectRevision','isVisible','appendChild','data','name','RevisionsSidebar','nameRevision','restoreRevision','change:diff','isSelected','compare','get','map','add','revisionSelected','bind','revisionHistory.revisionActions','timePeriodViews','getRevisionsInDiff','defaultRevisionActions','restoreRevisionCallback','setName','action','_handleRevisionSetName','_handleRevisionSelected','element','pluginName','editor','revisionHistory.viewerSidebarContainer','select','_handleDiffChange','locale','Name\x20this\x20revision','_handleEditorDataReady','newRevisionId','destroy','highlightRevisions','_createRevisionActions','fieldView','getIndex','_sidebarView','requires','plugins','init','getRevision','isEnabled','repository','Compare\x20against\x20selected','assign','_revisionsRepository','getEarlierVisibleRevision','Restore\x20this\x20revision','getLaterVisibleRevision','string','focus','isReady'];(function(_0x1204e,_0x22c313){const _0x399d5d=function(_0x4388f6){while(--_0x4388f6){_0x1204e['push'](_0x1204e['shift']());}};_0x399d5d(++_0x22c313);}(_0x22c3,0x64));const _0x399d=function(_0x1204e,_0x22c313){_0x1204e=_0x1204e-0x0;let _0x399d5d=_0x22c3[_0x1204e];return _0x399d5d;};import{Plugin as _0x4fadf2}from'ckeditor5/src/core';import _0x6cdcbf from'./revisionssidebarview';import _0x50d9ba from'../../revisionviewer';export default class w extends _0x4fadf2{static get[_0x399d('0x38')](){return _0x399d('0x23');}static get[_0x399d('0x9')](){return[_0x50d9ba];}constructor(_0x22d3ef){super(_0x22d3ef),this[_0x399d('0x1c')]=_0x22d3ef[_0x399d('0xa')]['get'](_0x50d9ba),this[_0x399d('0x11')]=this[_0x399d('0x1c')][_0x399d('0xe')],this[_0x399d('0x8')]=null;}[_0x399d('0xb')](){const _0xb2a388=this[_0x399d('0x11')]['_revisions'],_0x1641e2=this['_createRevisionActions'](),_0x3a30b8=this[_0x399d('0x39')][_0x399d('0x1b')][_0x399d('0x29')](_0x399d('0x3a'));this[_0x399d('0x8')]=new _0x6cdcbf(this[_0x399d('0x39')][_0x399d('0x3d')],_0xb2a388,_0x1641e2),this[_0x399d('0x8')]['on'](_0x399d('0x2c'),this[_0x399d('0x36')]['bind'](this)),this[_0x399d('0x8')]['on'](_0x399d('0x1d'),this[_0x399d('0x35')][_0x399d('0x2d')](this)),this[_0x399d('0x8')][_0x399d('0x2d')](_0x399d('0xd'))['to'](this['_revisionViewer']),this[_0x399d('0x8')][_0x399d('0x2f')]['on'](_0x399d('0x2b'),(_0xbdc1d0,_0x8e9688)=>{_0x8e9688['revisionViews']['on'](_0x399d('0x2b'),(_0x4bb77f,_0x1c7229)=>{_0x1c7229[_0x399d('0x2d')](_0x399d('0xd'),_0x399d('0x17'))['to'](this[_0x399d('0x1c')]);});}),this[_0x399d('0x8')][_0x399d('0x19')](),this['listenTo'](this[_0x399d('0x39')][_0x399d('0x21')],'ready',this[_0x399d('0x1')][_0x399d('0x2d')](this)),this['listenTo'](this[_0x399d('0x1c')],_0x399d('0x26'),this[_0x399d('0x3c')][_0x399d('0x2d')](this)),_0x3a30b8[_0x399d('0x20')](this[_0x399d('0x8')]['element']);}['destroy'](){this['_sidebarView'][_0x399d('0x37')]['remove'](),this['_sidebarView'][_0x399d('0x3')]();}[_0x399d('0x1')](){const _0x1af64d=this['_revisionsRepository']['getRevision'](0x0);if(_0x1af64d){const _0x3d3233=this[_0x399d('0x11')][_0x399d('0x12')](_0x1af64d['id']);this[_0x399d('0x1c')]['compare'](_0x1af64d,_0x3d3233);}}['_handleRevisionSelected'](_0x336d8f,_0x14ead6){const _0x237749=this[_0x399d('0x11')]['getRevision'](_0x14ead6['id']),_0x3de735=this[_0x399d('0x11')][_0x399d('0x12')](_0x237749['id']);this[_0x399d('0x1c')][_0x399d('0x28')](_0x237749,_0x3de735);}[_0x399d('0x35')](_0x5e324c,_0x2b0841){this[_0x399d('0x11')][_0x399d('0xc')](_0x2b0841['id'])[_0x399d('0x33')](_0x2b0841[_0x399d('0x22')]);}[_0x399d('0x3c')](_0x3b9734,_0x3248a0,_0x59658f){const _0x54e65c=this[_0x399d('0x11')]['getRevisionsInDiff'](_0x59658f);_0x54e65c['length']>0x2?(this[_0x399d('0x8')]['highlightRevisions'](_0x54e65c),this[_0x399d('0x8')][_0x399d('0x1e')](null)):(this[_0x399d('0x8')][_0x399d('0x4')]([]),this[_0x399d('0x8')][_0x399d('0x1e')](_0x54e65c[0x0]));}[_0x399d('0x5')](){const _0x50b53a=this['editor'],_0x1411db=w['availableRevisionActions'],_0x2b56f5=_0x50b53a[_0x399d('0x1b')][_0x399d('0x29')](_0x399d('0x2e'))||w[_0x399d('0x31')];if(_0x2b56f5['length'])return _0x2b56f5[_0x399d('0x2a')](_0x598ae7=>{const _0x1f36da=_0x399d('0x15')==typeof _0x598ae7?Object[_0x399d('0x10')]({},_0x1411db[_0x598ae7]):_0x598ae7;return _0x1f36da[_0x399d('0x34')]=_0x1f36da['action']['bind'](this,_0x50b53a),_0x1f36da[_0x399d('0x1f')]&&(_0x1f36da[_0x399d('0x1f')]=_0x1f36da[_0x399d('0x1f')][_0x399d('0x2d')](this,_0x50b53a)),_0x1f36da;});}}w['availableRevisionActions']={'compareAgainstSelected':{'name':_0x399d('0xf'),'action':({plugins:_0x4e3eab},_0x24d2c5)=>{const _0x384507=_0x4e3eab[_0x399d('0x29')](_0x50d9ba),_0x4631dd=_0x384507['repository'];let _0x1b3b76=_0x384507['diff'][_0x399d('0x2')],_0xe08de7=_0x24d2c5['id'];_0x4631dd[_0x399d('0x7')](_0x1b3b76)>_0x4631dd[_0x399d('0x7')](_0xe08de7)&&([_0x1b3b76,_0xe08de7]=[_0xe08de7,_0x1b3b76]),_0x384507[_0x399d('0x28')](_0x1b3b76,_0xe08de7);},'isVisible':({plugins:_0x453719},_0x3ef52a)=>{const _0x569241=_0x453719[_0x399d('0x29')](_0x50d9ba);return!(_0x569241[_0x399d('0xe')][_0x399d('0x30')](_0x569241['diff'])['length']>0x2)&&!_0x3ef52a[_0x399d('0x27')];}},'restoreRevision':{'name':_0x399d('0x13'),'action':(_0x4bd23e,{id:_0x1b4503})=>{_0x4bd23e[_0x399d('0x1b')][_0x399d('0x29')](_0x399d('0x18'))[_0x399d('0x32')](_0x1b4503);},'isVisible':({plugins:_0x4b0783},_0x528acb)=>!!_0x4b0783[_0x399d('0x29')](_0x50d9ba)['repository'][_0x399d('0x14')](_0x528acb['id'])},'nameRevision':{'name':_0x399d('0x0'),'action':({plugins:_0x5a39b3},{id:_0x320d4a,revisionNameView:_0x4fb182})=>{const _0x5c5b07=_0x5a39b3[_0x399d('0x29')](_0x50d9ba),_0x5d258d=_0x5c5b07[_0x399d('0xe')][_0x399d('0x12')](_0x320d4a);_0x5c5b07['compare'](_0x320d4a,_0x5d258d),_0x4fb182[_0x399d('0x16')](),_0x4fb182[_0x399d('0x6')][_0x399d('0x3b')]();}}},w['defaultRevisionActions']=[_0x399d('0x1a'),_0x399d('0x25'),_0x399d('0x24')];
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3606=['Revision\x20history','ck-revision-history-sidebar__header__label','span','setTemplate','ck-reset_all','ck-revision-history-sidebar__header','content'];(function(_0x2d6604,_0x360681){const _0xf9fb73=function(_0x1a3185){while(--_0x1a3185){_0x2d6604['push'](_0x2d6604['shift']());}};_0xf9fb73(++_0x360681);}(_0x3606,0x122));const _0xf9fb=function(_0x2d6604,_0x360681){_0x2d6604=_0x2d6604-0x0;let _0xf9fb73=_0x3606[_0x2d6604];return _0xf9fb73;};import{View as _0x50819b,IconView as _0x326684}from'ckeditor5/src/ui';import{getTranslation as _0x4e0c8e}from'../../utils/common-translations';import _0x5e5f28 from'../../../theme/icons/revision-history.svg';import'../../../theme/revisionssidebar/revisionssidebarheader.css';export default class ts extends _0x50819b{constructor(_0x468183){super(_0x468183);const _0x1c7596=new _0x326684();_0x1c7596[_0xf9fb('0x3')]=_0x5e5f28,this[_0xf9fb('0x0')]({'tag':'div','attributes':{'class':['ck',_0xf9fb('0x1'),_0xf9fb('0x2')]},'children':[_0x1c7596,{'tag':_0xf9fb('0x6'),'attributes':{'class':['ck',_0xf9fb('0x5')]},'children':[_0x4e0c8e(_0x468183,_0xf9fb('0x4'))]}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x38e6=['setTemplate','localizedPeriodName','find','delegate','locale','select','ck-revision-history-sidebar__time-period__label','_revisionActions','startDate','span','uiLanguage','addRevision','setName','revisionViews','removeRevision'];(function(_0x500595,_0x38e620){const _0x3989e1=function(_0x4351cd){while(--_0x4351cd){_0x500595['push'](_0x500595['shift']());}};_0x3989e1(++_0x38e620);}(_0x38e6,0x78));const _0x3989=function(_0x500595,_0x38e620){_0x500595=_0x500595-0x0;let _0x3989e1=_0x38e6[_0x500595];return _0x3989e1;};import{View as _0x1e000f}from'ckeditor5/src/ui';import _0x1bc14e from'../revision/revisionview';import{getDateTimePeriodInfo as _0xd291d7}from'./utils';import'../../../theme/revisionssidebar/revisionssidebartimeperiod.css';export default class _i extends _0x1e000f{constructor(_0x3127a1,_0x261f0b,_0x1e9b7a){super(_0x3127a1);const _0x3555f6=_0xd291d7(_0x261f0b,this['locale'][_0x3989('0xa')])[_0x3989('0x1')];this[_0x3989('0x8')]=_0x261f0b,this[_0x3989('0xd')]=this['createCollection'](),this['_revisionActions']=_0x1e9b7a,this[_0x3989('0xd')][_0x3989('0x3')](_0x3989('0x5'))['to'](this),this[_0x3989('0xd')]['delegate'](_0x3989('0xc'))['to'](this),this[_0x3989('0x0')]({'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period']},'children':[{'tag':_0x3989('0x9'),'attributes':{'class':['ck',_0x3989('0x6')]},'children':[{'text':_0x3555f6}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}[_0x3989('0xb')](_0x2b738a){const _0x595cf9=new _0x1bc14e(this[_0x3989('0x4')],_0x2b738a,this[_0x3989('0x7')]);this['revisionViews']['add'](_0x595cf9);}[_0x3989('0xe')](_0x148d0c){const _0x4524a5=this['revisionViews'][_0x3989('0x2')](_0x1f1eac=>_0x1f1eac['id']===_0x148d0c['id']);this[_0x3989('0xd')]['remove'](_0x4524a5);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x11a1=['revisionSetName','selectRevision','setName','timePeriodViews','addRevision','flat','removeRevision','ck-revision-history-sidebar__timeline','deselect','ck-revision-history-sidebar','bindTemplate','map','find','startDate','locale','delegate','render','ck-disabled','ck-rounded-corners','createdAt','getTime','select','div','revisionViews','add','_removeRevision','some','fire','isEnabled','setTemplate','_revisionActions','_revisions','uiLanguage','_addRevision'];(function(_0x1f8d9b,_0x11a1dc){const _0x2925dc=function(_0x3d7125){while(--_0x3d7125){_0x1f8d9b['push'](_0x1f8d9b['shift']());}};_0x2925dc(++_0x11a1dc);}(_0x11a1,0xe8));const _0x2925=function(_0x1f8d9b,_0x11a1dc){_0x1f8d9b=_0x1f8d9b-0x0;let _0x2925dc=_0x11a1[_0x1f8d9b];return _0x2925dc;};import{View as _0x2d40de}from'ckeditor5/src/ui';import _0x120dca from'./revisionssidebartimeperiodview';import _0x1afafc from'./revisionssidebarheaderview';import{getDateTimePeriodInfo as _0xa7c9e1}from'./utils';import'../../../theme/revisionssidebar/revisionssidebar.css';export default class vi extends _0x2d40de{constructor(_0x44750a,_0x286adc,_0x2720ef){super(_0x44750a);const _0x4ee69c=this[_0x2925('0x10')];this[_0x2925('0x9')]=this['createCollection'](),this['timePeriodViews'][_0x2925('0x15')]('select')['to'](this),this[_0x2925('0x9')][_0x2925('0x15')](_0x2925('0x8'))['to'](this),this[_0x2925('0x3')]=_0x286adc,this[_0x2925('0x2')]=_0x2720ef,this['on'](_0x2925('0x1b'),(_0x1d6422,_0x2ecdae)=>{this[_0x2925('0x21')]('revisionSelected',_0x2ecdae);}),this['on'](_0x2925('0x8'),(_0x44ac5e,_0x2f5582)=>{this['fire'](_0x2925('0x6'),_0x2f5582);}),this['set'](_0x2925('0x0'),!0x1),this[_0x2925('0x1')]({'tag':_0x2925('0x1c'),'attributes':{'class':['ck','ck-reset',_0x2925('0x18'),_0x2925('0xf')]},'children':[new _0x1afafc(_0x44750a),{'tag':_0x2925('0x1c'),'attributes':{'class':['ck',_0x2925('0xd'),_0x4ee69c['if'](_0x2925('0x0'),_0x2925('0x17'),_0x3c46c3=>!_0x3c46c3)]},'children':this[_0x2925('0x9')]}]});}[_0x2925('0x16')](){super[_0x2925('0x16')]();for(const _0x133acb of this['_revisions'])this['_addRevision'](_0x133acb);this[_0x2925('0x3')]['on']('add',(_0x4cd705,_0x384710)=>{this['_addRevision'](_0x384710);}),this[_0x2925('0x3')]['on']('remove',(_0x174f6d,_0x161187)=>{this[_0x2925('0x1f')](_0x161187);});}get[_0x2925('0x1d')](){return this['timePeriodViews'][_0x2925('0x11')](_0x28a1c2=>_0x28a1c2[_0x2925('0x1d')][_0x2925('0x11')](_0x5767f8=>_0x5767f8))[_0x2925('0xb')]();}[_0x2925('0x7')](_0x623342){for(const _0x4205ad of this[_0x2925('0x1d')])_0x623342&&_0x623342['id']===_0x4205ad['id']?_0x4205ad[_0x2925('0x1b')]():_0x4205ad[_0x2925('0xe')]();}['highlightRevisions'](_0x1c302a){for(const _0x1c6bf5 of this[_0x2925('0x1d')])_0x1c302a[_0x2925('0x20')](({id:_0x8c6b60})=>_0x8c6b60===_0x1c6bf5['id'])?_0x1c6bf5['highlight']():_0x1c6bf5['unhighlight']();}[_0x2925('0x5')](_0x589136){const _0x4bc2a9=_0xa7c9e1(_0x589136[_0x2925('0x19')],this[_0x2925('0x14')][_0x2925('0x4')])[_0x2925('0x13')];let _0x2106a0=this['timePeriodViews']['get'](0x0);_0x2106a0&&_0x2106a0[_0x2925('0x13')][_0x2925('0x1a')]()===_0x4bc2a9[_0x2925('0x1a')]()||(_0x2106a0=new _0x120dca(this['locale'],_0x4bc2a9,this[_0x2925('0x2')]),this[_0x2925('0x9')][_0x2925('0x1e')](_0x2106a0)),_0x2106a0[_0x2925('0xa')](_0x589136);}['_removeRevision'](_0x158b2e){const _0x543af8=_0xa7c9e1(_0x158b2e[_0x2925('0x19')],this[_0x2925('0x14')][_0x2925('0x4')])[_0x2925('0x13')];this['_getTimePeriodViewByStartDate'](_0x543af8)[_0x2925('0xc')](_0x158b2e);}['_getTimePeriodViewByStartDate'](_0x382bf3){return this[_0x2925('0x9')][_0x2925('0x12')](_0x407887=>_0x407887[_0x2925('0x13')][_0x2925('0x1a')]()===_0x382bf3[_0x2925('0x1a')]());}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x324a=['toJSDate','local','minus','day','startOf','setLocale','year','toRelativeCalendar','fromJSDate','hasSame','week'];(function(_0xe0643e,_0x324aea){const _0x173cd0=function(_0x12dd59){while(--_0x12dd59){_0xe0643e['push'](_0xe0643e['shift']());}};_0x173cd0(++_0x324aea);}(_0x324a,0x9e));const _0x173c=function(_0xe0643e,_0x324aea){_0xe0643e=_0xe0643e-0x0;let _0x173cd0=_0x324a[_0xe0643e];return _0x173cd0;};import{DateTime as _0x704b8b}from'luxon';export function getDateTimePeriodInfo(_0x33e87a,_0xb5ed24){const _0xaec6c8=_0x704b8b[_0x173c('0x4')](_0x33e87a)[_0x173c('0x1')](_0xb5ed24),_0x48f2e7=_0x704b8b[_0x173c('0x8')](),_0x5ba9c1=_0x48f2e7[_0x173c('0x9')]({'days':0x1})['startOf']('day');let _0x167c2c,_0x1cc2f3;return _0xaec6c8['hasSame'](_0x48f2e7,_0x173c('0xa'))?(_0x167c2c=_0xaec6c8['startOf'](_0x173c('0xa'))[_0x173c('0x7')](),_0x1cc2f3=_0xaec6c8[_0x173c('0x3')]()):_0xaec6c8[_0x173c('0x5')](_0x5ba9c1,_0x173c('0xa'))?(_0x167c2c=_0x5ba9c1[_0x173c('0x7')](),_0x1cc2f3=_0xaec6c8[_0x173c('0x3')]()):_0xaec6c8['hasSame'](_0x48f2e7,'week')?(_0x167c2c=_0xaec6c8[_0x173c('0x0')](_0x173c('0x6'))[_0x173c('0x7')](),_0x1cc2f3=_0xaec6c8['weekdayLong']||''):_0xaec6c8[_0x173c('0x5')](_0x48f2e7,'year')?(_0x167c2c=_0xaec6c8[_0x173c('0x0')]('month')[_0x173c('0x7')](),_0x1cc2f3=_0xaec6c8['monthLong']||''):(_0x167c2c=_0xaec6c8['startOf'](_0x173c('0x2'))[_0x173c('0x7')](),_0x1cc2f3=String(_0xaec6c8[_0x173c('0x2')])),{'startDate':_0x167c2c,'localizedPeriodName':_0x1cc2f3};}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4a80=['Suggested\x20by','setTemplate','ck-annotation','changeId','Added\x20by','Removed\x20by','author','data','span','type','element','isSuggestion','set','div','bindTemplate','focus','add','ck-revision-change'];(function(_0x1cb0a0,_0x4a803c){const _0xfcdc83=function(_0x16a7a7){while(--_0x16a7a7){_0x1cb0a0['push'](_0x1cb0a0['shift']());}};_0xfcdc83(++_0x4a803c);}(_0x4a80,0xdc));const _0xfcdc=function(_0x1cb0a0,_0x4a803c){_0x1cb0a0=_0x1cb0a0-0x0;let _0xfcdc83=_0x4a80[_0x1cb0a0];return _0xfcdc83;};import{View as _0x582656}from'ckeditor5/src/ui';import{getTranslation as _0x1c5739}from'../../utils/common-translations';export default class Z extends _0x582656{constructor(_0x5b40dd,_0x59e1e7){super(_0x5b40dd),this['_model']=_0x59e1e7,this[_0xfcdc('0x11')]=_0x59e1e7['id'];const _0x1ffe53=this[_0xfcdc('0xa')],_0x4273fb=_0x1c5739(_0x5b40dd,_0x59e1e7[_0xfcdc('0x3')][_0xfcdc('0x7')]?_0xfcdc('0xe'):_0xfcdc('0xc')==_0x59e1e7[_0xfcdc('0x5')]?_0xfcdc('0x0'):_0xfcdc('0x1'));this[_0xfcdc('0x8')](_0xfcdc('0x5'),_0x59e1e7['type']),this[_0xfcdc('0xf')]({'tag':_0xfcdc('0x9'),'attributes':{'class':[_0xfcdc('0x10'),_0xfcdc('0xd'),_0x1ffe53['to'](_0xfcdc('0x5'),_0x2e1a74=>'ck-revision-change__'+_0x2e1a74)],'tabindex':-0x1},'children':[{'tag':_0xfcdc('0x4'),'children':[{'tag':_0xfcdc('0x4'),'attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x4273fb}]},{'text':'\x20'+_0x59e1e7[_0xfcdc('0x2')]['name']}]}]});}[_0xfcdc('0xb')](){this[_0xfcdc('0x6')][_0xfcdc('0xb')]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2991=['Total','bindTemplate','isEnabled','NUMBER_OF_CHANGES','isReady','isNavigationMode','ck-revision-history-ui__changes-navigation__wrapper','execute','ck-revision-history-ui__changes-navigation','forward','span','isForwardNavigationEnabled','bind','set','Show\x20previous\x20change','ck-revision-history-ui','div','No\x20changes','ck-revision-history-ui__changes-navigation__navigation','_isStatusLabelVisible','fire','isBackwardNavigationEnabled','backward','Loading...','numberOfChanges','X_OF_Y_CHANGES','currentChangeNumber','EDIT_X_OF_Y_REVISIONS','setTemplate','Show\x20next\x20change'];(function(_0x5860ec,_0x29917e){const _0x356b64=function(_0x3272e7){while(--_0x3272e7){_0x5860ec['push'](_0x5860ec['shift']());}};_0x356b64(++_0x29917e);}(_0x2991,0x1d7));const _0x356b=function(_0x5860ec,_0x29917e){_0x5860ec=_0x5860ec-0x0;let _0x356b64=_0x2991[_0x5860ec];return _0x356b64;};import{View as _0x53eb64,ButtonView as _0x4f6f26,ToolbarSeparatorView as _0x28165d}from'ckeditor5/src/ui';import{getTranslation as _0x236f1d}from'../../utils/common-translations';import _0x23e0da from'../../../theme/icons/arrow-up.svg';import _0x419662 from'../../../theme/icons/arrow-down.svg';import'../../../theme/changesnavigation.css';export default class wi extends _0x53eb64{constructor(_0x78cdab){super(_0x78cdab);const _0x233174=this[_0x356b('0xa')],_0xa336c4=new _0x4f6f26(_0x78cdab),_0x5ac100=new _0x4f6f26(_0x78cdab);this[_0x356b('0x16')](_0x356b('0xe'),!0x1),this[_0x356b('0x16')]('isReady',!0x1),this[_0x356b('0x16')](_0x356b('0x5'),0x0),this[_0x356b('0x16')](_0x356b('0x3'),0x0),this[_0x356b('0x16')]('isForwardNavigationEnabled',!0x1),this[_0x356b('0x16')](_0x356b('0x0'),!0x1),this[_0x356b('0x15')](_0x356b('0x1c'))['to'](this,_0x356b('0xd'),this,_0x356b('0x3'),(_0x129d9a,_0x27ecab)=>_0x129d9a&&_0x27ecab>0x0),this['bind']('_statusText')['to'](this,_0x356b('0xd'),this,_0x356b('0x5'),this,'numberOfChanges',this,_0x356b('0xe'),(_0x1432be,_0x398b1d,_0x38436e,_0x1c28d3)=>{if(!_0x1432be)return _0x236f1d(_0x78cdab,_0x356b('0x2'));if(!_0x38436e)return _0x236f1d(_0x78cdab,_0x356b('0x1a'));const _0x436996=_0x236f1d(_0x78cdab,_0x356b('0xc'),_0x38436e);return _0x1c28d3?_0x236f1d(_0x78cdab,_0x356b('0x4'),[_0x398b1d+0x1,_0x38436e]):_0x436996;}),_0xa336c4['set']({'label':_0x236f1d(_0x78cdab,_0x356b('0x17')),'tooltip':!0x0,'icon':_0x23e0da}),_0x5ac100[_0x356b('0x16')]({'label':_0x236f1d(_0x78cdab,_0x356b('0x8')),'tooltip':!0x0,'icon':_0x419662}),_0xa336c4['bind'](_0x356b('0xb'))['to'](this,'isBackwardNavigationEnabled'),_0x5ac100[_0x356b('0x15')](_0x356b('0xb'))['to'](this,_0x356b('0x14')),_0xa336c4['on'](_0x356b('0x10'),()=>this[_0x356b('0x1d')]('execute',_0x356b('0x1'))),_0x5ac100['on'](_0x356b('0x10'),()=>this[_0x356b('0x1d')](_0x356b('0x10'),_0x356b('0x12'))),this[_0x356b('0x7')]({'tag':'div','attributes':{'class':['ck',_0x356b('0x18'),_0x356b('0x11')]},'children':[{'tag':'span','attributes':{'class':[_0x356b('0xf')]},'children':[{'tag':_0x356b('0x13'),'attributes':{'class':['ck-revision-history-ui__changes-navigation__label',_0x233174['if']('_isStatusLabelVisible','ck-hidden',_0x150fc1=>!_0x150fc1)]},'children':[{'text':_0x233174['to'](_0x356b('0xe'),_0x5cc3d6=>_0x5cc3d6?_0x236f1d(_0x78cdab,_0x356b('0x6'))+':\x20':_0x236f1d(_0x78cdab,_0x356b('0x9'))+':\x20')}]},{'text':_0x233174['to']('_statusText')}]},new _0x28165d(),{'tag':_0x356b('0x19'),'attributes':{'class':[_0x356b('0x1b')]},'children':[_0xa336c4,_0x5ac100]}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x24be=['editor','RevisionViewerLoadingOverlay','hide','editing','view','roots','addClass','document','pluginName','show'];(function(_0x458179,_0x24be55){const _0x2e107e=function(_0x11531b){while(--_0x11531b){_0x458179['push'](_0x458179['shift']());}};_0x2e107e(++_0x24be55);}(_0x24be,0x188));const _0x2e10=function(_0x458179,_0x24be55){_0x458179=_0x458179-0x0;let _0x2e107e=_0x24be[_0x458179];return _0x2e107e;};import{Plugin as _0x376157}from'ckeditor5/src/core';const oe='ck-editor__editable__loading-overlay';import'../../../theme/revisionviewerloadingoverlay.css';export default class te extends _0x376157{static get[_0x2e10('0x6')](){return _0x2e10('0x9');}[_0x2e10('0x7')](){const _0x1ba635=this[_0x2e10('0x8')][_0x2e10('0x1')][_0x2e10('0x2')];_0x1ba635['change'](_0x269c00=>{for(const _0x1f1aac of _0x1ba635[_0x2e10('0x5')][_0x2e10('0x3')])_0x269c00[_0x2e10('0x4')](oe,_0x1f1aac);});}[_0x2e10('0x0')](){const _0x5a88e8=this['editor'][_0x2e10('0x1')][_0x2e10('0x2')];_0x5a88e8['change'](_0x3c140d=>{for(const _0xfb50f8 of _0x5a88e8[_0x2e10('0x5')][_0x2e10('0x3')])_0x3c140d['removeClass'](oe,_0xfb50f8);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x262b=['componentFactory','commands','isBackwardNavigationEnabled','listenTo','pluginName','isForwardNavigationEnabled','ck-revision-history-ui__back-to-editing','currentChangeNumber','editor','RevisionViewerUI','showNextChange','Restore\x20this\x20revision','Back\x20to\x20editing','config','closeRevisionViewerCallback','add','revisionHistory','change:isReady','bind','showPreviousChange','numberOfChanges','show','plugins','hide','set','get','isEnabled','execute','restoreRevision','changesNavigation','requires'];(function(_0x14f3e6,_0x262bef){const _0x5bdc97=function(_0x484319){while(--_0x484319){_0x14f3e6['push'](_0x14f3e6['shift']());}};_0x5bdc97(++_0x262bef);}(_0x262b,0xbc));const _0x5bdc=function(_0x14f3e6,_0x262bef){_0x14f3e6=_0x14f3e6-0x0;let _0x5bdc97=_0x262b[_0x14f3e6];return _0x5bdc97;};import{Plugin as _0x57f1cf}from'ckeditor5/src/core';import{ButtonView as _0x1241cc}from'ckeditor5/src/ui';import _0x4dbc1e from'./changesnavigationview';import _0x524558 from'./../../revisionviewer';import _0x508dbb from'./revisionviewerloadingoverlay';import{getTranslation as _0x2df2a2}from'../../utils/common-translations';import _0xac8b71 from'@ckeditor/ckeditor5-undo/theme/icons/undo.svg';import'../../../theme/revisionviewer.css';export default class R extends _0x57f1cf{static get[_0x5bdc('0x2')](){return _0x5bdc('0x7');}static get[_0x5bdc('0x1c')](){return[_0x524558,_0x508dbb];}['init'](){const _0x3df6c4=this[_0x5bdc('0x6')],_0x3f77e3=_0x3df6c4[_0x5bdc('0x14')][_0x5bdc('0x17')](_0x524558),_0x7f6a74=_0x3df6c4['plugins'][_0x5bdc('0x17')](_0x508dbb);_0x3df6c4['ui'][_0x5bdc('0x1d')][_0x5bdc('0xd')]('exitToEditing',_0x170d10=>{const _0x44d5a5=new _0x1241cc(_0x170d10);return _0x44d5a5[_0x5bdc('0x16')]({'label':_0x2df2a2(_0x170d10,_0x5bdc('0xa')),'icon':_0xac8b71,'withText':!0x0,'tooltip':!0x0,'class':_0x5bdc('0x4')}),this[_0x5bdc('0x1')](_0x44d5a5,_0x5bdc('0x19'),()=>{_0x3df6c4[_0x5bdc('0xb')][_0x5bdc('0x17')](_0x5bdc('0xe'))[_0x5bdc('0xc')]();}),_0x44d5a5;}),_0x3df6c4['ui'][_0x5bdc('0x1d')]['add']('restoreRevision',_0x18e57f=>{const _0x44b795=new _0x1241cc(_0x18e57f);return _0x44b795[_0x5bdc('0x16')]({'label':_0x2df2a2(_0x18e57f,_0x5bdc('0x9')),'withText':!0x0,'tooltip':!0x0}),_0x44b795['bind'](_0x5bdc('0x18'))['to'](_0x3df6c4[_0x5bdc('0x1e')][_0x5bdc('0x17')](_0x5bdc('0x1a'))),this['listenTo'](_0x44b795,'execute',()=>_0x3df6c4[_0x5bdc('0x19')](_0x5bdc('0x1a'))),_0x44b795;}),_0x3df6c4['ui']['componentFactory'][_0x5bdc('0xd')](_0x5bdc('0x1b'),_0x1492ee=>{const _0x1b892c=new _0x4dbc1e(_0x1492ee),_0x17b42f=_0x3df6c4[_0x5bdc('0x1e')][_0x5bdc('0x17')](_0x5bdc('0x11')),_0x67fa03=_0x3df6c4[_0x5bdc('0x1e')]['get'](_0x5bdc('0x8'));return _0x1b892c[_0x5bdc('0x10')](_0x5bdc('0x0'))['to'](_0x17b42f,_0x5bdc('0x18')),_0x1b892c[_0x5bdc('0x10')](_0x5bdc('0x3'))['to'](_0x67fa03,_0x5bdc('0x18')),_0x1b892c[_0x5bdc('0x10')]('isReady',_0x5bdc('0x5'),_0x5bdc('0x12'),'isNavigationMode')['to'](_0x3f77e3),this[_0x5bdc('0x1')](_0x1b892c,_0x5bdc('0x19'),(_0xe67f80,_0x343715)=>{_0x3df6c4[_0x5bdc('0x19')]('forward'===_0x343715?'showNextChange':'showPreviousChange');}),_0x1b892c;}),_0x7f6a74[_0x5bdc('0x13')](),_0x3f77e3['on'](_0x5bdc('0xf'),(_0x521799,_0x20f90a,_0x5cbc8b)=>{_0x5cbc8b?_0x7f6a74[_0x5bdc('0x15')]():_0x7f6a74[_0x5bdc('0x13')]();});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export function getTranslation(
|
|
23
|
+
export function getTranslation(_0x226085,_0x65a31c,_0x2b03ef){const t=_0x226085['t'];switch(_0x65a31c){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'},_0x2b03ef);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x2b03ef);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 _0x65a31c;}}
|