@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20231005.0 → 0.0.0-nightly-20231006.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 _0x4c64=['RevisionHistoryUI','Save\x20current\x20revision','isOpen','revisionHistory','isReadOnly','set','editing','Open\x20revision\x20history','submit','items','config','RevisionTracker','bind','showRevisionViewerCallback','remove','revisionName','get','children','reset','addMany','isEnabled','saveButtonView','add','editor','focus','plugins','componentFactory','pluginName','Revision\x20history','saveRevision','isReady','view','execute'];(function(_0x40b548,_0x4c64a0){const _0x394116=function(_0x26ba99){while(--_0x26ba99){_0x40b548['push'](_0x40b548['shift']());}};_0x394116(++_0x4c64a0);}(_0x4c64,0x174));const _0x3941=function(_0x40b548,_0x4c64a0){_0x40b548=_0x40b548-0x0;let _0x394116=_0x4c64[_0x40b548];return _0x394116;};import{Plugin as _0x314374,icons as _0x3e9c24}from'ckeditor5/src/core';import{ListView as _0x34c13a,ListItemView as _0x4b4771,ButtonView as _0x19d4e9,createDropdown as _0x442693}from'ckeditor5/src/ui';import _0x5500fc from'../../revisiontracker';import _0x2dc11c from'./revisionhistorysaverevisionformview';import{getTranslation as _0x5000c0}from'../../utils/common-translations';export default class u extends _0x314374{static get[_0x3941('0x12')](){return _0x3941('0x18');}static get['requires'](){return[_0x5500fc];}['init'](){const _0x2a4b69=this[_0x3941('0xe')],_0x2eb59b=_0x2a4b69['plugins'][_0x3941('0x7')](_0x3941('0x2'));_0x2a4b69['ui'][_0x3941('0x11')]['add'](_0x3941('0x1b'),_0x3a944c=>{const _0x44e1a2=_0x442693(_0x3a944c),_0x5615e8=_0x44e1a2['panelView']['children'],_0x384956=new _0x34c13a(_0x3a944c),_0x51ee2b=new _0x4b4771(_0x3a944c),_0x3d482a=new _0x19d4e9(_0x3a944c),_0x4c8d45=new _0x4b4771(_0x3a944c),_0x321751=new _0x19d4e9(_0x3a944c),_0x1fd0e6=new _0x2dc11c(_0x3a944c);function _0x2444ff(){_0x5615e8['length']&&_0x5615e8[_0x3941('0x5')](0x0),_0x5615e8['add'](_0x384956);}function _0x3d6538(){_0x44e1a2[_0x3941('0x1a')]=!0x1,_0x2a4b69[_0x3941('0x1e')][_0x3941('0x16')][_0x3941('0xf')]();}return _0x44e1a2[_0x3941('0x3')]('isEnabled')['to'](_0x2eb59b,'isReady',_0x2eb59b,_0x3941('0xb'),_0x2a4b69,_0x3941('0x1c'),(_0x3aaab0,_0x125fdb,_0x5bb5cc)=>_0x3aaab0&&_0x125fdb&&!_0x5bb5cc),_0x44e1a2['buttonView'][_0x3941('0x1d')]({'icon':_0x3e9c24['history'],'label':_0x5000c0(_0x3a944c,_0x3941('0x13')),'tooltip':!0x0}),_0x3d482a[_0x3941('0x1d')]({'label':_0x5000c0(_0x3a944c,_0x3941('0x19')),'withText':!0x0}),_0x3d482a[_0x3941('0x3')]('isEnabled')['to'](_0x2eb59b,'isReady',_0x2eb59b,_0x3941('0xb'),_0x2a4b69,_0x3941('0x1c'),(_0x6243f6,_0x595025,_0x25ebad)=>_0x6243f6&&_0x595025&&!_0x25ebad),_0x3d482a['on'](_0x3941('0x17'),()=>function(){_0x5615e8['length']&&_0x5615e8[_0x3941('0x5')](0x0),(_0x1fd0e6[_0x3941('0x9')](),_0x5615e8[_0x3941('0xd')](_0x1fd0e6),_0x1fd0e6[_0x3941('0xf')]());}()),_0x321751['set']({'label':_0x5000c0(_0x3a944c,_0x3941('0x1f')),'withText':!0x0}),_0x321751[_0x3941('0x3')](_0x3941('0xb'))['to'](_0x2eb59b,_0x3941('0x15'),_0x2a4b69,_0x3941('0x1c'),(_0x304ff9,_0x358f05)=>_0x304ff9&&!_0x358f05),_0x321751['on'](_0x3941('0x17'),()=>{_0x2a4b69[_0x3941('0x1')][_0x3941('0x7')](_0x3941('0x1b'))[_0x3941('0x4')](),_0x3d6538();}),_0x51ee2b[_0x3941('0x8')][_0x3941('0xd')](_0x3d482a),_0x4c8d45[_0x3941('0x8')][_0x3941('0xd')](_0x321751),_0x384956[_0x3941('0x0')][_0x3941('0xa')]([_0x51ee2b,_0x4c8d45]),_0x44e1a2['on']('change:isOpen',()=>_0x2444ff()),_0x1fd0e6[_0x3941('0xc')][_0x3941('0x3')](_0x3941('0xb'))['to'](_0x2eb59b,_0x3941('0x15'),_0x2eb59b,_0x3941('0xb'),_0x2a4b69,_0x3941('0x1c'),(_0x1a8f03,_0x5cd385,_0x2ad70a)=>_0x1a8f03&&_0x5cd385&&!_0x2ad70a),_0x1fd0e6['on'](_0x3941('0x20'),()=>(_0x2a4b69[_0x3941('0x10')]['get'](_0x5500fc)[_0x3941('0x14')]({'name':_0x1fd0e6[_0x3941('0x6')]}),void _0x3d6538())),_0x1fd0e6['on']('cancel',()=>_0x2444ff()),_0x1fd0e6['render'](),_0x2444ff(),_0x44e1a2;});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3833=['bind','config','isVisible','highlightRevisions','restoreRevision','plugins','data','getEarlierVisibleRevision','Restore\x20this\x20revision','requires','editor','_revisionsRepository','length','newRevisionId','pluginName','destroy','getLaterVisibleRevision','_revisionViewer','nameRevision','listenTo','render','getRevisionsInDiff','timePeriodViews','remove','repository','_handleEditorDataReady','compareAgainstSelected','getIndex','init','change:diff','_handleDiffChange','diff','add','fieldView','ready','Name\x20this\x20revision','getRevision','assign','revisionHistory.viewerSidebarContainer','_sidebarView','revisionHistory.revisionActions','isEnabled','revisionHistory','get','Compare\x20against\x20selected','isReady','_handleRevisionSelected','appendChild','selectRevision','RevisionsSidebar','availableRevisionActions','compare','defaultRevisionActions','action','element','_handleRevisionSetName','setName'];(function(_0xcbfee2,_0x3833b0){const _0x9ab052=function(_0x355ee6){while(--_0x355ee6){_0xcbfee2['push'](_0xcbfee2['shift']());}};_0x9ab052(++_0x3833b0);}(_0x3833,0x99));const _0x9ab0=function(_0xcbfee2,_0x3833b0){_0xcbfee2=_0xcbfee2-0x0;let _0x9ab052=_0x3833[_0xcbfee2];return _0x9ab052;};import{Plugin as _0x23ee5d}from'ckeditor5/src/core';import _0x4e9a1e from'./revisionssidebarview';import _0x4e9931 from'../../revisionviewer';export default class w extends _0x23ee5d{static get[_0x9ab0('0x20')](){return _0x9ab0('0xa');}static get[_0x9ab0('0x1b')](){return[_0x4e9931];}constructor(_0x3fa378){super(_0x3fa378),this[_0x9ab0('0x23')]=_0x3fa378[_0x9ab0('0x17')][_0x9ab0('0x4')](_0x4e9931),this[_0x9ab0('0x1d')]=this['_revisionViewer']['repository'],this[_0x9ab0('0x0')]=null;}[_0x9ab0('0x2e')](){const _0x292f9d=this[_0x9ab0('0x1d')]['_revisions'],_0x1159cb=this['_createRevisionActions'](),_0x514e12=this[_0x9ab0('0x1c')][_0x9ab0('0x13')][_0x9ab0('0x4')](_0x9ab0('0x38'));this[_0x9ab0('0x0')]=new _0x4e9a1e(this['editor']['locale'],_0x292f9d,_0x1159cb),this['_sidebarView']['on']('revisionSelected',this[_0x9ab0('0x7')][_0x9ab0('0x12')](this)),this[_0x9ab0('0x0')]['on']('revisionSetName',this[_0x9ab0('0x10')]['bind'](this)),this['_sidebarView'][_0x9ab0('0x12')](_0x9ab0('0x2'))['to'](this[_0x9ab0('0x23')]),this['_sidebarView'][_0x9ab0('0x28')]['on'](_0x9ab0('0x32'),(_0x10baf5,_0x50fa58)=>{_0x50fa58['revisionViews']['on'](_0x9ab0('0x32'),(_0xfc1df4,_0x53214a)=>{_0x53214a[_0x9ab0('0x12')](_0x9ab0('0x2'),_0x9ab0('0x6'))['to'](this[_0x9ab0('0x23')]);});}),this[_0x9ab0('0x0')][_0x9ab0('0x26')](),this['listenTo'](this[_0x9ab0('0x1c')][_0x9ab0('0x18')],_0x9ab0('0x34'),this[_0x9ab0('0x2b')][_0x9ab0('0x12')](this)),this[_0x9ab0('0x25')](this[_0x9ab0('0x23')],_0x9ab0('0x2f'),this[_0x9ab0('0x30')][_0x9ab0('0x12')](this)),_0x514e12[_0x9ab0('0x8')](this['_sidebarView'][_0x9ab0('0xf')]);}[_0x9ab0('0x21')](){this[_0x9ab0('0x0')]['element'][_0x9ab0('0x29')](),this['_sidebarView'][_0x9ab0('0x21')]();}[_0x9ab0('0x2b')](){const _0x52a6ea=this[_0x9ab0('0x1d')]['getRevision'](0x0);if(_0x52a6ea){const _0x5c6c90=this[_0x9ab0('0x1d')][_0x9ab0('0x19')](_0x52a6ea['id']);this[_0x9ab0('0x23')][_0x9ab0('0xc')](_0x52a6ea,_0x5c6c90);}}[_0x9ab0('0x7')](_0x287103,_0x5d0706){const _0x4de6fa=this[_0x9ab0('0x1d')]['getRevision'](_0x5d0706['id']),_0x2ef64d=this[_0x9ab0('0x1d')][_0x9ab0('0x19')](_0x4de6fa['id']);this['_revisionViewer'][_0x9ab0('0xc')](_0x4de6fa,_0x2ef64d);}[_0x9ab0('0x10')](_0x509a3a,_0x5809c9){this['_revisionsRepository'][_0x9ab0('0x36')](_0x5809c9['id'])[_0x9ab0('0x11')](_0x5809c9['name']);}[_0x9ab0('0x30')](_0x10dfee,_0x5ca3d8,_0x201356){const _0x48ecd2=this[_0x9ab0('0x1d')]['getRevisionsInDiff'](_0x201356);_0x48ecd2[_0x9ab0('0x1e')]>0x2?(this['_sidebarView'][_0x9ab0('0x15')](_0x48ecd2),this[_0x9ab0('0x0')][_0x9ab0('0x9')](null)):(this[_0x9ab0('0x0')][_0x9ab0('0x15')]([]),this[_0x9ab0('0x0')]['selectRevision'](_0x48ecd2[0x0]));}['_createRevisionActions'](){const _0x5db121=this[_0x9ab0('0x1c')],_0x283bb9=w[_0x9ab0('0xb')],_0x169fd8=_0x5db121['config'][_0x9ab0('0x4')](_0x9ab0('0x1'))||w[_0x9ab0('0xd')];if(_0x169fd8[_0x9ab0('0x1e')])return _0x169fd8['map'](_0x18c7d3=>{const _0x5c1cd4='string'==typeof _0x18c7d3?Object[_0x9ab0('0x37')]({},_0x283bb9[_0x18c7d3]):_0x18c7d3;return _0x5c1cd4[_0x9ab0('0xe')]=_0x5c1cd4[_0x9ab0('0xe')][_0x9ab0('0x12')](this,_0x5db121),_0x5c1cd4[_0x9ab0('0x14')]&&(_0x5c1cd4[_0x9ab0('0x14')]=_0x5c1cd4['isVisible'][_0x9ab0('0x12')](this,_0x5db121)),_0x5c1cd4;});}}w[_0x9ab0('0xb')]={'compareAgainstSelected':{'name':_0x9ab0('0x5'),'action':({plugins:_0x5e93d0},_0x4001bd)=>{const _0x2ccafb=_0x5e93d0[_0x9ab0('0x4')](_0x4e9931),_0x1b67b3=_0x2ccafb[_0x9ab0('0x2a')];let _0x3650bf=_0x2ccafb[_0x9ab0('0x31')][_0x9ab0('0x1f')],_0x1481aa=_0x4001bd['id'];_0x1b67b3[_0x9ab0('0x2d')](_0x3650bf)>_0x1b67b3[_0x9ab0('0x2d')](_0x1481aa)&&([_0x3650bf,_0x1481aa]=[_0x1481aa,_0x3650bf]),_0x2ccafb[_0x9ab0('0xc')](_0x3650bf,_0x1481aa);},'isVisible':({plugins:_0x30cd98},_0x31641c)=>{const _0x2405b8=_0x30cd98[_0x9ab0('0x4')](_0x4e9931);return!(_0x2405b8[_0x9ab0('0x2a')][_0x9ab0('0x27')](_0x2405b8[_0x9ab0('0x31')])[_0x9ab0('0x1e')]>0x2)&&!_0x31641c['isSelected'];}},'restoreRevision':{'name':_0x9ab0('0x1a'),'action':(_0x2d7d91,{id:_0xa4fc7b})=>{_0x2d7d91[_0x9ab0('0x13')][_0x9ab0('0x4')](_0x9ab0('0x3'))['restoreRevisionCallback'](_0xa4fc7b);},'isVisible':({plugins:_0x4d893c},_0x15d322)=>!!_0x4d893c['get'](_0x4e9931)[_0x9ab0('0x2a')][_0x9ab0('0x22')](_0x15d322['id'])},'nameRevision':{'name':_0x9ab0('0x35'),'action':({plugins:_0x29247d},{id:_0x4d392a,revisionNameView:_0x11702f})=>{const _0x1b4cc9=_0x29247d[_0x9ab0('0x4')](_0x4e9931),_0x1e4631=_0x1b4cc9[_0x9ab0('0x2a')][_0x9ab0('0x19')](_0x4d392a);_0x1b4cc9['compare'](_0x4d392a,_0x1e4631),_0x11702f['focus'](),_0x11702f[_0x9ab0('0x33')]['select']();}}},w[_0x9ab0('0xd')]=[_0x9ab0('0x2c'),_0x9ab0('0x16'),_0x9ab0('0x24')];
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1783=['span','content','div','history','ck-revision-history-sidebar__header__label','Revision\x20history','ck-reset_all'];(function(_0x2b3e58,_0x17839e){const _0x436333=function(_0x4e96f4){while(--_0x4e96f4){_0x2b3e58['push'](_0x2b3e58['shift']());}};_0x436333(++_0x17839e);}(_0x1783,0x119));const _0x4363=function(_0x2b3e58,_0x17839e){_0x2b3e58=_0x2b3e58-0x0;let _0x436333=_0x1783[_0x2b3e58];return _0x436333;};import{View as _0x36f8d0,IconView as _0x528122}from'ckeditor5/src/ui';import{getTranslation as _0x5ab817}from'../../utils/common-translations';import{icons as _0x11694e}from'ckeditor5/src/core';import'../../../theme/revisionssidebar/revisionssidebarheader.css';export default class rr extends _0x36f8d0{constructor(_0x147d66){super(_0x147d66);const _0x2eda3f=new _0x528122();_0x2eda3f[_0x4363('0x0')]=_0x11694e[_0x4363('0x2')],this['setTemplate']({'tag':_0x4363('0x1'),'attributes':{'class':['ck',_0x4363('0x5'),'ck-revision-history-sidebar__header']},'children':[_0x2eda3f,{'tag':_0x4363('0x6'),'attributes':{'class':['ck',_0x4363('0x3')]},'children':[_0x5ab817(_0x147d66,_0x4363('0x4'))]}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x765d=['locale','span','select','setTemplate','createCollection','ck-revision-history-sidebar__time-period__revisions','ck-revision-history-sidebar__time-period__label','add','remove','removeRevision','_revisionActions','div','addRevision','uiLanguage','setName','revisionViews','startDate','ck-revision-history-sidebar__time-period'];(function(_0x2bcc6e,_0x765dc1){const _0x197142=function(_0x52dd51){while(--_0x52dd51){_0x2bcc6e['push'](_0x2bcc6e['shift']());}};_0x197142(++_0x765dc1);}(_0x765d,0x11c));const _0x1971=function(_0x2bcc6e,_0x765dc1){_0x2bcc6e=_0x2bcc6e-0x0;let _0x197142=_0x765d[_0x2bcc6e];return _0x197142;};import{View as _0x5a899d}from'ckeditor5/src/ui';import _0x3c3e14 from'../revision/revisionview';import{getDateTimePeriodInfo as _0x4915ba}from'./utils';import'../../../theme/revisionssidebar/revisionssidebartimeperiod.css';export default class pi extends _0x5a899d{constructor(_0x3f44e3,_0x4277d0,_0x1d40ff){super(_0x3f44e3);const _0x1acaba=_0x4915ba(_0x4277d0,this[_0x1971('0x4')][_0x1971('0x11')])['localizedPeriodName'];this[_0x1971('0x2')]=_0x4277d0,this[_0x1971('0x1')]=this[_0x1971('0x8')](),this['_revisionActions']=_0x1d40ff,this[_0x1971('0x1')]['delegate'](_0x1971('0x6'))['to'](this),this[_0x1971('0x1')]['delegate'](_0x1971('0x0'))['to'](this),this[_0x1971('0x7')]({'tag':_0x1971('0xf'),'attributes':{'class':['ck',_0x1971('0x3')]},'children':[{'tag':_0x1971('0x5'),'attributes':{'class':['ck',_0x1971('0xa')]},'children':[{'text':_0x1acaba}]},{'tag':_0x1971('0xf'),'attributes':{'class':['ck',_0x1971('0x9')]},'children':this[_0x1971('0x1')]}]});}[_0x1971('0x10')](_0x36245b){const _0x4ad388=new _0x3c3e14(this['locale'],_0x36245b,this[_0x1971('0xe')]);this[_0x1971('0x1')][_0x1971('0xb')](_0x4ad388);}[_0x1971('0xd')](_0xdd29fd){const _0x13a84d=this[_0x1971('0x1')]['find'](_0x2bae93=>_0x2bae93['id']===_0xdd29fd['id']);this['revisionViews'][_0x1971('0xc')](_0x13a84d);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5b7b=['deselect','_revisionActions','some','flat','_removeRevision','addRevision','_revisions','highlight','map','getTime','isEnabled','locale','setName','createdAt','div','ck-rounded-corners','startDate','selectRevision','_getTimePeriodViewByStartDate','revisionViews','select','add','fire','_addRevision','revisionSelected','delegate','find','revisionSetName','remove','ck-revision-history-sidebar','ck-revision-history-sidebar__timeline','ck-reset','set','timePeriodViews','bindTemplate','uiLanguage'];(function(_0x10b987,_0x5b7b81){const _0x285e22=function(_0x1d29bb){while(--_0x1d29bb){_0x10b987['push'](_0x10b987['shift']());}};_0x285e22(++_0x5b7b81);}(_0x5b7b,0xaa));const _0x285e=function(_0x10b987,_0x5b7b81){_0x10b987=_0x10b987-0x0;let _0x285e22=_0x5b7b[_0x10b987];return _0x285e22;};import{View as _0x56624d}from'ckeditor5/src/ui';import _0xc8d73f from'./revisionssidebartimeperiodview';import _0x475c82 from'./revisionssidebarheaderview';import{getDateTimePeriodInfo as _0x4b6036}from'./utils';import'../../../theme/revisionssidebar/revisionssidebar.css';export default class vi extends _0x56624d{constructor(_0x11b8e5,_0x528ac8,_0x2e0e70){super(_0x11b8e5);const _0x2c7599=this[_0x285e('0x8')];this[_0x285e('0x7')]=this['createCollection'](),this[_0x285e('0x7')][_0x285e('0x23')](_0x285e('0x1e'))['to'](this),this[_0x285e('0x7')][_0x285e('0x23')]('setName')['to'](this),this[_0x285e('0x10')]=_0x528ac8,this[_0x285e('0xb')]=_0x2e0e70,this['on']('select',(_0x2176f3,_0x2baf21)=>{this['fire'](_0x285e('0x22'),_0x2baf21);}),this['on'](_0x285e('0x16'),(_0x19bc07,_0x39882a)=>{this[_0x285e('0x20')](_0x285e('0x1'),_0x39882a);}),this[_0x285e('0x6')]('isEnabled',!0x1),this['setTemplate']({'tag':_0x285e('0x18'),'attributes':{'class':['ck',_0x285e('0x5'),_0x285e('0x19'),_0x285e('0x3')]},'children':[new _0x475c82(_0x11b8e5),{'tag':_0x285e('0x18'),'attributes':{'class':['ck',_0x285e('0x4'),_0x2c7599['if'](_0x285e('0x14'),'ck-disabled',_0x144a1b=>!_0x144a1b)]},'children':this[_0x285e('0x7')]}]});}['render'](){super['render']();for(const _0x492351 of this[_0x285e('0x10')])this[_0x285e('0x21')](_0x492351);this[_0x285e('0x10')]['on'](_0x285e('0x1f'),(_0x26e4fb,_0x453ec5)=>{this['_addRevision'](_0x453ec5);}),this['_revisions']['on'](_0x285e('0x2'),(_0x2c90a7,_0xc2f784)=>{this[_0x285e('0xe')](_0xc2f784);});}get[_0x285e('0x1d')](){return this['timePeriodViews'][_0x285e('0x12')](_0x5ed8a4=>_0x5ed8a4[_0x285e('0x1d')][_0x285e('0x12')](_0x25727a=>_0x25727a))[_0x285e('0xd')]();}[_0x285e('0x1b')](_0x34ed81){for(const _0x4bd202 of this[_0x285e('0x1d')])_0x34ed81&&_0x34ed81['id']===_0x4bd202['id']?_0x4bd202['select']():_0x4bd202[_0x285e('0xa')]();}['highlightRevisions'](_0x44f893){for(const _0x25a638 of this[_0x285e('0x1d')])_0x44f893[_0x285e('0xc')](({id:_0x5ebd77})=>_0x5ebd77===_0x25a638['id'])?_0x25a638[_0x285e('0x11')]():_0x25a638['unhighlight']();}[_0x285e('0x21')](_0x4f99f7){const _0x413e98=_0x4b6036(_0x4f99f7[_0x285e('0x17')],this[_0x285e('0x15')]['uiLanguage'])[_0x285e('0x1a')];let _0x35cf96=this[_0x285e('0x7')]['get'](0x0);_0x35cf96&&_0x35cf96[_0x285e('0x1a')][_0x285e('0x13')]()===_0x413e98['getTime']()||(_0x35cf96=new _0xc8d73f(this[_0x285e('0x15')],_0x413e98,this[_0x285e('0xb')]),this[_0x285e('0x7')][_0x285e('0x1f')](_0x35cf96)),_0x35cf96[_0x285e('0xf')](_0x4f99f7);}[_0x285e('0xe')](_0x4f224f){const _0x6ff10b=_0x4b6036(_0x4f224f['createdAt'],this[_0x285e('0x15')][_0x285e('0x9')])[_0x285e('0x1a')];this[_0x285e('0x1c')](_0x6ff10b)['removeRevision'](_0x4f224f);}[_0x285e('0x1c')](_0x52d8c1){return this[_0x285e('0x7')][_0x285e('0x0')](_0x58a104=>_0x58a104[_0x285e('0x1a')][_0x285e('0x13')]()===_0x52d8c1[_0x285e('0x13')]());}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4e7c=['toRelativeCalendar','minus','startOf','toJSDate','local','weekdayLong','day','fromJSDate','hasSame','year','week'];(function(_0x2daa33,_0x4e7c61){const _0x276fb9=function(_0x1743f5){while(--_0x1743f5){_0x2daa33['push'](_0x2daa33['shift']());}};_0x276fb9(++_0x4e7c61);}(_0x4e7c,0x123));const _0x276f=function(_0x2daa33,_0x4e7c61){_0x2daa33=_0x2daa33-0x0;let _0x276fb9=_0x4e7c[_0x2daa33];return _0x276fb9;};import{DateTime as _0x108f25}from'luxon';export function getDateTimePeriodInfo(_0x58f50d,_0x22487e){const _0x2f8401=_0x108f25[_0x276f('0x2')](_0x58f50d)['setLocale'](_0x22487e),_0x5af1aa=_0x108f25[_0x276f('0xa')](),_0x340bf6=_0x5af1aa[_0x276f('0x7')]({'days':0x1})['startOf'](_0x276f('0x1'));let _0x33e7ec,_0x48d5dc;return _0x2f8401[_0x276f('0x3')](_0x5af1aa,_0x276f('0x1'))?(_0x33e7ec=_0x2f8401[_0x276f('0x8')](_0x276f('0x1'))['toJSDate'](),_0x48d5dc=_0x2f8401[_0x276f('0x6')]()):_0x2f8401['hasSame'](_0x340bf6,_0x276f('0x1'))?(_0x33e7ec=_0x340bf6[_0x276f('0x9')](),_0x48d5dc=_0x2f8401['toRelativeCalendar']()):_0x2f8401[_0x276f('0x3')](_0x5af1aa,_0x276f('0x5'))?(_0x33e7ec=_0x2f8401[_0x276f('0x8')](_0x276f('0x5'))[_0x276f('0x9')](),_0x48d5dc=_0x2f8401[_0x276f('0x0')]||''):_0x2f8401[_0x276f('0x3')](_0x5af1aa,_0x276f('0x4'))?(_0x33e7ec=_0x2f8401[_0x276f('0x8')]('month')[_0x276f('0x9')](),_0x48d5dc=_0x2f8401['monthLong']||''):(_0x33e7ec=_0x2f8401[_0x276f('0x8')](_0x276f('0x4'))[_0x276f('0x9')](),_0x48d5dc=String(_0x2f8401[_0x276f('0x4')])),{'startDate':_0x33e7ec,'localizedPeriodName':_0x48d5dc};}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x39b0=['div','type','name','Added\x20by','bindTemplate','focus','changeId','Removed\x20by','setTemplate','set','element','_model','isSuggestion','data','author','ck-revision-change__','span'];(function(_0x435064,_0x39b09d){const _0x2c309a=function(_0x21586c){while(--_0x21586c){_0x435064['push'](_0x435064['shift']());}};_0x2c309a(++_0x39b09d);}(_0x39b0,0x17f));const _0x2c30=function(_0x435064,_0x39b09d){_0x435064=_0x435064-0x0;let _0x2c309a=_0x39b0[_0x435064];return _0x2c309a;};import{View as _0xdbb63d}from'ckeditor5/src/ui';import{getTranslation as _0x2a14bf}from'../../utils/common-translations';export default class Z extends _0xdbb63d{constructor(_0x17f421,_0x3c7182){super(_0x17f421),this[_0x2c30('0x2')]=_0x3c7182,this[_0x2c30('0xe')]=_0x3c7182['id'];const _0x18a61c=this[_0x2c30('0xc')],_0x2a51a3=_0x2a14bf(_0x17f421,_0x3c7182[_0x2c30('0x4')][_0x2c30('0x3')]?'Suggested\x20by':'add'==_0x3c7182[_0x2c30('0x9')]?_0x2c30('0xb'):_0x2c30('0xf'));this[_0x2c30('0x0')](_0x2c30('0x9'),_0x3c7182[_0x2c30('0x9')]),this[_0x2c30('0x10')]({'tag':_0x2c30('0x8'),'attributes':{'class':['ck-annotation','ck-revision-change',_0x18a61c['to'](_0x2c30('0x9'),_0x262e39=>_0x2c30('0x6')+_0x262e39)],'tabindex':-0x1},'children':[{'tag':_0x2c30('0x7'),'children':[{'tag':_0x2c30('0x7'),'attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x2a51a3}]},{'text':'\x20'+_0x3c7182[_0x2c30('0x5')][_0x2c30('0xa')]}]}]});}[_0x2c30('0xd')](){this[_0x2c30('0x1')][_0x2c30('0xd')]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x41ce=['ck-revision-history-ui','isForwardNavigationEnabled','setTemplate','set','div','numberOfChanges','NUMBER_OF_CHANGES','execute','span','isEnabled','bind','fire','bindTemplate','ck-hidden','currentChangeNumber','isReady','isNavigationMode','ck-revision-history-ui__changes-navigation__navigation','_statusText','No\x20changes','Show\x20next\x20change','ck-revision-history-ui__changes-navigation__label','ck-revision-history-ui__changes-navigation__wrapper','EDIT_X_OF_Y_REVISIONS','isBackwardNavigationEnabled','ck-revision-history-ui__changes-navigation'];(function(_0x35a4e9,_0x41ce5f){const _0xdca90c=function(_0xcfa57c){while(--_0xcfa57c){_0x35a4e9['push'](_0x35a4e9['shift']());}};_0xdca90c(++_0x41ce5f);}(_0x41ce,0x145));const _0xdca9=function(_0x35a4e9,_0x41ce5f){_0x35a4e9=_0x35a4e9-0x0;let _0xdca90c=_0x41ce[_0x35a4e9];return _0xdca90c;};import{View as _0x160933,ButtonView as _0x5c9bfd,ToolbarSeparatorView as _0x3ecd12}from'ckeditor5/src/ui';import{getTranslation as _0x3ec409}from'../../utils/common-translations';import _0x372369 from'../../../theme/icons/arrow-up.svg';import _0x26c397 from'../../../theme/icons/arrow-down.svg';import'../../../theme/changesnavigation.css';export default class bi extends _0x160933{constructor(_0x33737e){super(_0x33737e);const _0x4c42bf=this[_0xdca9('0x19')],_0x287587=new _0x5c9bfd(_0x33737e),_0x36d933=new _0x5c9bfd(_0x33737e);this[_0xdca9('0x10')](_0xdca9('0x3'),!0x1),this['set'](_0xdca9('0x2'),!0x1),this[_0xdca9('0x10')]('currentChangeNumber',0x0),this[_0xdca9('0x10')](_0xdca9('0x12'),0x0),this[_0xdca9('0x10')](_0xdca9('0xe'),!0x1),this['set']('isBackwardNavigationEnabled',!0x1),this[_0xdca9('0x17')]('_isStatusLabelVisible')['to'](this,_0xdca9('0x2'),this,'numberOfChanges',(_0x473ca2,_0x39b54e)=>_0x473ca2&&_0x39b54e>0x0),this[_0xdca9('0x17')](_0xdca9('0x5'))['to'](this,_0xdca9('0x2'),this,_0xdca9('0x1'),this,_0xdca9('0x12'),this,_0xdca9('0x3'),(_0x1ad562,_0x511ac6,_0x3ba01e,_0xc4f440)=>{if(!_0x1ad562)return _0x3ec409(_0x33737e,'Loading...');if(!_0x3ba01e)return _0x3ec409(_0x33737e,_0xdca9('0x6'));const _0x52e8cc=_0x3ec409(_0x33737e,_0xdca9('0x13'),_0x3ba01e);return _0xc4f440?_0x3ec409(_0x33737e,'X_OF_Y_CHANGES',[_0x511ac6+0x1,_0x3ba01e]):_0x52e8cc;}),_0x287587[_0xdca9('0x10')]({'label':_0x3ec409(_0x33737e,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0x372369}),_0x36d933[_0xdca9('0x10')]({'label':_0x3ec409(_0x33737e,_0xdca9('0x7')),'tooltip':!0x0,'icon':_0x26c397}),_0x287587[_0xdca9('0x17')]('isEnabled')['to'](this,_0xdca9('0xb')),_0x36d933[_0xdca9('0x17')](_0xdca9('0x16'))['to'](this,_0xdca9('0xe')),_0x287587['on'](_0xdca9('0x14'),()=>this[_0xdca9('0x18')](_0xdca9('0x14'),'backward')),_0x36d933['on'](_0xdca9('0x14'),()=>this[_0xdca9('0x18')]('execute','forward')),this[_0xdca9('0xf')]({'tag':_0xdca9('0x11'),'attributes':{'class':['ck',_0xdca9('0xd'),_0xdca9('0xc')]},'children':[{'tag':_0xdca9('0x15'),'attributes':{'class':[_0xdca9('0x9')]},'children':[{'tag':'span','attributes':{'class':[_0xdca9('0x8'),_0x4c42bf['if']('_isStatusLabelVisible',_0xdca9('0x0'),_0x3288c2=>!_0x3288c2)]},'children':[{'text':_0x4c42bf['to'](_0xdca9('0x3'),_0x8f0730=>_0x8f0730?_0x3ec409(_0x33737e,_0xdca9('0xa'))+':\x20':_0x3ec409(_0x33737e,'Total')+':\x20')}]},{'text':_0x4c42bf['to']('_statusText')}]},new _0x3ecd12(),{'tag':_0xdca9('0x11'),'attributes':{'class':[_0xdca9('0x4')]},'children':[_0x287587,_0x36d933]}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5ef3=['show','view','removeClass','editor','change','document','roots','addClass','RevisionViewerLoadingOverlay','editing','ck-editor__editable__loading-overlay'];(function(_0x6043a0,_0x5ef3f5){const _0x27f949=function(_0x3673e5){while(--_0x3673e5){_0x6043a0['push'](_0x6043a0['shift']());}};_0x27f949(++_0x5ef3f5);}(_0x5ef3,0x7d));const _0x27f9=function(_0x6043a0,_0x5ef3f5){_0x6043a0=_0x6043a0-0x0;let _0x27f949=_0x5ef3[_0x6043a0];return _0x27f949;};import{Plugin as _0x24b932}from'ckeditor5/src/core';const oe=_0x27f9('0x6');import'../../../theme/revisionviewerloadingoverlay.css';export default class te extends _0x24b932{static get['pluginName'](){return _0x27f9('0x4');}[_0x27f9('0x7')](){const _0x3edd6a=this[_0x27f9('0xa')]['editing'][_0x27f9('0x8')];_0x3edd6a[_0x27f9('0x0')](_0x2b2edc=>{for(const _0x29a567 of _0x3edd6a[_0x27f9('0x1')][_0x27f9('0x2')])_0x2b2edc[_0x27f9('0x3')](oe,_0x29a567);});}['hide'](){const _0x3b199b=this[_0x27f9('0xa')][_0x27f9('0x5')]['view'];_0x3b199b[_0x27f9('0x0')](_0x10eec5=>{for(const _0x323b43 of _0x3b199b['document'][_0x27f9('0x2')])_0x10eec5[_0x27f9('0x9')](oe,_0x323b43);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3542=['plugins','config','showNextChange','add','numberOfChanges','commands','changesNavigation','currentChangeNumber','Restore\x20this\x20revision','isForwardNavigationEnabled','closeRevisionViewerCallback','get','exitToEditing','restoreRevision','execute','listenTo','forward','set','bind','Back\x20to\x20editing','showPreviousChange','revisionHistory','RevisionViewerUI','ck-revision-history-ui__back-to-editing','hide','isEnabled','show','pluginName','componentFactory'];(function(_0x802af1,_0x3542dd){const _0x133781=function(_0xd4d750){while(--_0xd4d750){_0x802af1['push'](_0x802af1['shift']());}};_0x133781(++_0x3542dd);}(_0x3542,0x85));const _0x1337=function(_0x802af1,_0x3542dd){_0x802af1=_0x802af1-0x0;let _0x133781=_0x3542[_0x802af1];return _0x133781;};import{Plugin as _0x5c1c43}from'ckeditor5/src/core';import{ButtonView as _0x26f381}from'ckeditor5/src/ui';import _0x3a863a from'./changesnavigationview';import _0x1c3029 from'./../../revisionviewer';import _0x366272 from'./revisionviewerloadingoverlay';import{getTranslation as _0x1dd8ff}from'../../utils/common-translations';import _0x305469 from'@ckeditor/ckeditor5-undo/theme/icons/undo.svg';import'../../../theme/revisionviewer.css';export default class R extends _0x5c1c43{static get[_0x1337('0xa')](){return _0x1337('0x5');}static get['requires'](){return[_0x1c3029,_0x366272];}['init'](){const _0x4f1734=this['editor'],_0x3933fe=_0x4f1734[_0x1337('0xc')][_0x1337('0x17')](_0x1c3029),_0xbc0006=_0x4f1734[_0x1337('0xc')][_0x1337('0x17')](_0x366272);_0x4f1734['ui'][_0x1337('0xb')][_0x1337('0xf')](_0x1337('0x18'),_0x154071=>{const _0x58f5c5=new _0x26f381(_0x154071);return _0x58f5c5['set']({'label':_0x1dd8ff(_0x154071,_0x1337('0x2')),'icon':_0x305469,'withText':!0x0,'tooltip':!0x0,'class':_0x1337('0x6')}),this[_0x1337('0x1b')](_0x58f5c5,_0x1337('0x1a'),()=>{_0x4f1734[_0x1337('0xd')]['get'](_0x1337('0x4'))[_0x1337('0x16')]();}),_0x58f5c5;}),_0x4f1734['ui'][_0x1337('0xb')][_0x1337('0xf')]('restoreRevision',_0x39778a=>{const _0x28e614=new _0x26f381(_0x39778a);return _0x28e614[_0x1337('0x0')]({'label':_0x1dd8ff(_0x39778a,_0x1337('0x14')),'withText':!0x0,'tooltip':!0x0}),_0x28e614[_0x1337('0x1')](_0x1337('0x8'))['to'](_0x4f1734['commands'][_0x1337('0x17')](_0x1337('0x19'))),this['listenTo'](_0x28e614,_0x1337('0x1a'),()=>_0x4f1734['execute'](_0x1337('0x19'))),_0x28e614;}),_0x4f1734['ui'][_0x1337('0xb')][_0x1337('0xf')](_0x1337('0x12'),_0xd5e4a6=>{const _0x441235=new _0x3a863a(_0xd5e4a6),_0x365e5e=_0x4f1734['commands'][_0x1337('0x17')](_0x1337('0x3')),_0x1fc06b=_0x4f1734[_0x1337('0x11')][_0x1337('0x17')](_0x1337('0xe'));return _0x441235[_0x1337('0x1')]('isBackwardNavigationEnabled')['to'](_0x365e5e,_0x1337('0x8')),_0x441235['bind'](_0x1337('0x15'))['to'](_0x1fc06b,'isEnabled'),_0x441235[_0x1337('0x1')]('isReady',_0x1337('0x13'),_0x1337('0x10'),'isNavigationMode')['to'](_0x3933fe),this[_0x1337('0x1b')](_0x441235,'execute',(_0x305457,_0x4272c5)=>{_0x4f1734[_0x1337('0x1a')](_0x1337('0x1c')===_0x4272c5?'showNextChange':_0x1337('0x3'));}),_0x441235;}),_0xbc0006[_0x1337('0x9')](),_0x3933fe['on']('change:isReady',(_0xe7ce0e,_0x5ed748,_0xb89d73)=>{_0xb89d73?_0xbc0006[_0x1337('0x7')]():_0xbc0006[_0x1337('0x9')]();});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export function getTranslation(
|
|
23
|
+
export function getTranslation(_0x45a6cd,_0x4467b7,_0xe479d7){const t=_0x45a6cd['t'];switch(_0x4467b7){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'},_0xe479d7);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0xe479d7);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 _0x4467b7;}}
|