@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20230725.0 → 0.0.0-nightly-20230726.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 _0x2f07=['requires','panelView','get','RevisionHistoryUI','isReadOnly','revisionHistory','cancel','saveRevision','bind','remove','Open\x20revision\x20history','editor','saveButtonView','addMany','plugins','isEnabled','config','children','componentFactory','isReady','items','change:isOpen','revisionName','focus','Revision\x20history','pluginName','render','execute','add','showRevisionViewerCallback','Save\x20current\x20revision','init','length','submit','set'];(function(_0x5ca1be,_0x2f074c){const _0x1deb61=function(_0x2222ea){while(--_0x2222ea){_0x5ca1be['push'](_0x5ca1be['shift']());}};_0x1deb61(++_0x2f074c);}(_0x2f07,0x1e9));const _0x1deb=function(_0x5ca1be,_0x2f074c){_0x5ca1be=_0x5ca1be-0x0;let _0x1deb61=_0x2f07[_0x5ca1be];return _0x1deb61;};import{Plugin as _0x28dafe}from'ckeditor5/src/core';import{ListView as _0x1dae5a,ListItemView as _0x17758b,ButtonView as _0x4c9a7f,createDropdown as _0x2f5e26}from'ckeditor5/src/ui';import _0x452f2d from'../../revisiontracker';import _0x507521 from'./revisionhistorysaverevisionformview';import _0x7be430 from'../../../theme/icons/revision-history.svg';import{getTranslation as _0x357b8e}from'../../utils/common-translations';export default class u extends _0x28dafe{static get[_0x1deb('0x1a')](){return _0x1deb('0x4');}static get[_0x1deb('0x1')](){return[_0x452f2d];}[_0x1deb('0x20')](){const _0x91130c=this[_0x1deb('0xc')],_0x588409=_0x91130c[_0x1deb('0xf')][_0x1deb('0x3')]('RevisionTracker');_0x91130c['ui'][_0x1deb('0x13')][_0x1deb('0x1d')](_0x1deb('0x6'),_0x30925a=>{const _0xe9abec=_0x2f5e26(_0x30925a),_0x288e36=_0xe9abec[_0x1deb('0x2')]['children'],_0x5e932b=new _0x1dae5a(_0x30925a),_0x231697=new _0x17758b(_0x30925a),_0x346b1a=new _0x4c9a7f(_0x30925a),_0x33d980=new _0x17758b(_0x30925a),_0x5edbca=new _0x4c9a7f(_0x30925a),_0x45fd7c=new _0x507521(_0x30925a);function _0x35afa0(){_0x288e36[_0x1deb('0x21')]&&_0x288e36['remove'](0x0),_0x288e36[_0x1deb('0x1d')](_0x5e932b);}function _0x4685ec(){_0xe9abec['isOpen']=!0x1,_0x91130c['editing']['view'][_0x1deb('0x18')]();}return _0xe9abec['bind'](_0x1deb('0x10'))['to'](_0x588409,'isReady',_0x588409,_0x1deb('0x10'),_0x91130c,_0x1deb('0x5'),(_0x42fcc9,_0x1cddda,_0x1a99a8)=>_0x42fcc9&&_0x1cddda&&!_0x1a99a8),_0xe9abec['buttonView'][_0x1deb('0x0')]({'icon':_0x7be430,'label':_0x357b8e(_0x30925a,_0x1deb('0x19')),'tooltip':!0x0}),_0x346b1a[_0x1deb('0x0')]({'label':_0x357b8e(_0x30925a,_0x1deb('0x1f')),'withText':!0x0}),_0x346b1a[_0x1deb('0x9')](_0x1deb('0x10'))['to'](_0x588409,_0x1deb('0x14'),_0x588409,_0x1deb('0x10'),_0x91130c,_0x1deb('0x5'),(_0x25d9cf,_0xfe158b,_0x2a44e6)=>_0x25d9cf&&_0xfe158b&&!_0x2a44e6),_0x346b1a['on'](_0x1deb('0x1c'),()=>function(){_0x288e36[_0x1deb('0x21')]&&_0x288e36[_0x1deb('0xa')](0x0),(_0x45fd7c['reset'](),_0x288e36['add'](_0x45fd7c),_0x45fd7c['focus']());}()),_0x5edbca[_0x1deb('0x0')]({'label':_0x357b8e(_0x30925a,_0x1deb('0xb')),'withText':!0x0}),_0x5edbca[_0x1deb('0x9')]('isEnabled')['to'](_0x588409,_0x1deb('0x14'),_0x91130c,'isReadOnly',(_0x21b074,_0x4c1fe6)=>_0x21b074&&!_0x4c1fe6),_0x5edbca['on'](_0x1deb('0x1c'),()=>{_0x91130c[_0x1deb('0x11')][_0x1deb('0x3')](_0x1deb('0x6'))[_0x1deb('0x1e')](),_0x4685ec();}),_0x231697['children'][_0x1deb('0x1d')](_0x346b1a),_0x33d980[_0x1deb('0x12')]['add'](_0x5edbca),_0x5e932b[_0x1deb('0x15')][_0x1deb('0xe')]([_0x231697,_0x33d980]),_0xe9abec['on'](_0x1deb('0x16'),()=>_0x35afa0()),_0x45fd7c[_0x1deb('0xd')][_0x1deb('0x9')]('isEnabled')['to'](_0x588409,_0x1deb('0x14'),_0x588409,_0x1deb('0x10'),_0x91130c,_0x1deb('0x5'),(_0x1907d7,_0x41a7b6,_0x4a9e3b)=>_0x1907d7&&_0x41a7b6&&!_0x4a9e3b),_0x45fd7c['on'](_0x1deb('0x22'),()=>(_0x91130c[_0x1deb('0xf')]['get'](_0x452f2d)[_0x1deb('0x8')]({'name':_0x45fd7c[_0x1deb('0x17')]}),void _0x4685ec())),_0x45fd7c['on'](_0x1deb('0x7'),()=>_0x35afa0()),_0x45fd7c[_0x1deb('0x1b')](),_0x35afa0(),_0xe9abec;});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x529c=['defaultRevisionActions','_revisionViewer','config','isSelected','compare','pluginName','_handleDiffChange','restoreRevision','revisionSetName','string','editor','name','init','highlightRevisions','getIndex','setName','nameRevision','Restore\x20this\x20revision','fieldView','selectRevision','render','getEarlierVisibleRevision','revisionHistory.viewerSidebarContainer','revisionSelected','bind','getLaterVisibleRevision','isVisible','availableRevisionActions','remove','locale','element','add','get','_handleRevisionSelected','focus','_createRevisionActions','repository','_sidebarView','revisionHistory','_handleRevisionSetName','requires','length','Name\x20this\x20revision','revisionViews','Compare\x20against\x20selected','revisionHistory.revisionActions','_revisionsRepository','isEnabled','appendChild','data','destroy','timePeriodViews','restoreRevisionCallback','_handleEditorDataReady','getRevision','newRevisionId'];(function(_0x36e3be,_0x529c9f){const _0x183f8c=function(_0x3b4a68){while(--_0x3b4a68){_0x36e3be['push'](_0x36e3be['shift']());}};_0x183f8c(++_0x529c9f);}(_0x529c,0x14a));const _0x183f=function(_0x36e3be,_0x529c9f){_0x36e3be=_0x36e3be-0x0;let _0x183f8c=_0x529c[_0x36e3be];return _0x183f8c;};import{Plugin as _0x4e346f}from'ckeditor5/src/core';import _0x195417 from'./revisionssidebarview';import _0x49ca4a from'../../revisionviewer';export default class w extends _0x4e346f{static get[_0x183f('0xb')](){return'RevisionsSidebar';}static get[_0x183f('0x2e')](){return[_0x49ca4a];}constructor(_0x420359){super(_0x420359),this[_0x183f('0x7')]=_0x420359['plugins'][_0x183f('0x26')](_0x49ca4a),this[_0x183f('0x34')]=this[_0x183f('0x7')][_0x183f('0x2a')],this[_0x183f('0x2b')]=null;}[_0x183f('0x12')](){const _0x2ffded=this[_0x183f('0x34')]['_revisions'],_0x394f64=this[_0x183f('0x29')](),_0x5e6dfe=this[_0x183f('0x10')]['config'][_0x183f('0x26')](_0x183f('0x1c'));this['_sidebarView']=new _0x195417(this[_0x183f('0x10')][_0x183f('0x23')],_0x2ffded,_0x394f64),this[_0x183f('0x2b')]['on'](_0x183f('0x1d'),this[_0x183f('0x27')][_0x183f('0x1e')](this)),this['_sidebarView']['on'](_0x183f('0xe'),this['_handleRevisionSetName'][_0x183f('0x1e')](this)),this[_0x183f('0x2b')][_0x183f('0x1e')](_0x183f('0x35'))['to'](this['_revisionViewer']),this[_0x183f('0x2b')][_0x183f('0x1')]['on']('add',(_0x2cbc1e,_0x277d47)=>{_0x277d47[_0x183f('0x31')]['on'](_0x183f('0x25'),(_0xddc5ba,_0x255d8d)=>{_0x255d8d[_0x183f('0x1e')](_0x183f('0x35'),'isReady')['to'](this[_0x183f('0x7')]);});}),this['_sidebarView'][_0x183f('0x1a')](),this['listenTo'](this[_0x183f('0x10')][_0x183f('0x37')],'ready',this[_0x183f('0x3')][_0x183f('0x1e')](this)),this['listenTo'](this[_0x183f('0x7')],'change:diff',this[_0x183f('0xc')]['bind'](this)),_0x5e6dfe[_0x183f('0x36')](this[_0x183f('0x2b')][_0x183f('0x24')]);}[_0x183f('0x0')](){this['_sidebarView'][_0x183f('0x24')][_0x183f('0x22')](),this[_0x183f('0x2b')]['destroy']();}['_handleEditorDataReady'](){const _0x3de925=this[_0x183f('0x34')][_0x183f('0x4')](0x0);if(_0x3de925){const _0x541048=this[_0x183f('0x34')]['getEarlierVisibleRevision'](_0x3de925['id']);this[_0x183f('0x7')]['compare'](_0x3de925,_0x541048);}}['_handleRevisionSelected'](_0x1c00f8,_0x76786){const _0xc99b41=this[_0x183f('0x34')][_0x183f('0x4')](_0x76786['id']),_0x57f33d=this[_0x183f('0x34')]['getEarlierVisibleRevision'](_0xc99b41['id']);this['_revisionViewer'][_0x183f('0xa')](_0xc99b41,_0x57f33d);}[_0x183f('0x2d')](_0x12adce,_0x3a17b9){this[_0x183f('0x34')][_0x183f('0x4')](_0x3a17b9['id'])[_0x183f('0x15')](_0x3a17b9[_0x183f('0x11')]);}[_0x183f('0xc')](_0x2811d8,_0x3891ea,_0x60a27c){const _0x1f334e=this['_revisionsRepository']['getRevisionsInDiff'](_0x60a27c);_0x1f334e[_0x183f('0x2f')]>0x2?(this[_0x183f('0x2b')][_0x183f('0x13')](_0x1f334e),this[_0x183f('0x2b')][_0x183f('0x19')](null)):(this[_0x183f('0x2b')][_0x183f('0x13')]([]),this[_0x183f('0x2b')]['selectRevision'](_0x1f334e[0x0]));}[_0x183f('0x29')](){const _0x25cab1=this[_0x183f('0x10')],_0x2b69a6=w[_0x183f('0x21')],_0x541fa4=_0x25cab1[_0x183f('0x8')][_0x183f('0x26')](_0x183f('0x33'))||w[_0x183f('0x6')];if(_0x541fa4[_0x183f('0x2f')])return _0x541fa4['map'](_0x24f9c5=>{const _0x220f83=_0x183f('0xf')==typeof _0x24f9c5?Object['assign']({},_0x2b69a6[_0x24f9c5]):_0x24f9c5;return _0x220f83['action']=_0x220f83['action']['bind'](this,_0x25cab1),_0x220f83['isVisible']&&(_0x220f83[_0x183f('0x20')]=_0x220f83['isVisible'][_0x183f('0x1e')](this,_0x25cab1)),_0x220f83;});}}w[_0x183f('0x21')]={'compareAgainstSelected':{'name':_0x183f('0x32'),'action':({plugins:_0x3d3aca},_0x589ac4)=>{const _0xaa0352=_0x3d3aca[_0x183f('0x26')](_0x49ca4a),_0x4ac039=_0xaa0352[_0x183f('0x2a')];let _0x51488b=_0xaa0352['diff'][_0x183f('0x5')],_0x5e9da2=_0x589ac4['id'];_0x4ac039['getIndex'](_0x51488b)>_0x4ac039[_0x183f('0x14')](_0x5e9da2)&&([_0x51488b,_0x5e9da2]=[_0x5e9da2,_0x51488b]),_0xaa0352[_0x183f('0xa')](_0x51488b,_0x5e9da2);},'isVisible':({plugins:_0x15cfb3},_0xe03fd3)=>{const _0x37e1d2=_0x15cfb3[_0x183f('0x26')](_0x49ca4a);return!(_0x37e1d2[_0x183f('0x2a')]['getRevisionsInDiff'](_0x37e1d2['diff'])['length']>0x2)&&!_0xe03fd3[_0x183f('0x9')];}},'restoreRevision':{'name':_0x183f('0x17'),'action':(_0x56ef1c,{id:_0x308799})=>{_0x56ef1c['config'][_0x183f('0x26')](_0x183f('0x2c'))[_0x183f('0x2')](_0x308799);},'isVisible':({plugins:_0x1a95d1},_0x4172d7)=>!!_0x1a95d1[_0x183f('0x26')](_0x49ca4a)['repository'][_0x183f('0x1f')](_0x4172d7['id'])},'nameRevision':{'name':_0x183f('0x30'),'action':({plugins:_0xe722fb},{id:_0x443652,revisionNameView:_0x2660d4})=>{const _0x4c4201=_0xe722fb[_0x183f('0x26')](_0x49ca4a),_0x2dfe05=_0x4c4201['repository'][_0x183f('0x1b')](_0x443652);_0x4c4201[_0x183f('0xa')](_0x443652,_0x2dfe05),_0x2660d4[_0x183f('0x28')](),_0x2660d4[_0x183f('0x18')]['select']();}}},w[_0x183f('0x6')]=['compareAgainstSelected',_0x183f('0xd'),_0x183f('0x16')];
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1f09=['div','ck-revision-history-sidebar__header__label','content','ck-reset_all','Revision\x20history'];(function(_0x231604,_0x1f09d9){const _0x553be7=function(_0x236ad4){while(--_0x236ad4){_0x231604['push'](_0x231604['shift']());}};_0x553be7(++_0x1f09d9);}(_0x1f09,0x6d));const _0x553b=function(_0x231604,_0x1f09d9){_0x231604=_0x231604-0x0;let _0x553be7=_0x1f09[_0x231604];return _0x553be7;};import{View as _0xa24441,IconView as _0x102db0}from'ckeditor5/src/ui';import{getTranslation as _0x283fc0}from'../../utils/common-translations';import _0x53ec90 from'../../../theme/icons/revision-history.svg';import'../../../theme/revisionssidebar/revisionssidebarheader.css';export default class ts extends _0xa24441{constructor(_0xaea5ab){super(_0xaea5ab);const _0x17ab39=new _0x102db0();_0x17ab39[_0x553b('0x3')]=_0x53ec90,this['setTemplate']({'tag':_0x553b('0x1'),'attributes':{'class':['ck',_0x553b('0x4'),'ck-revision-history-sidebar__header']},'children':[_0x17ab39,{'tag':'span','attributes':{'class':['ck',_0x553b('0x2')]},'children':[_0x283fc0(_0xaea5ab,_0x553b('0x0'))]}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3983=['removeRevision','locale','div','_revisionActions','uiLanguage','span','ck-revision-history-sidebar__time-period','add','setName','remove','startDate','delegate','revisionViews','ck-revision-history-sidebar__time-period__label','addRevision','setTemplate','ck-revision-history-sidebar__time-period__revisions'];(function(_0x3ba0e1,_0x39838d){const _0x39ccc2=function(_0x14b9c0){while(--_0x14b9c0){_0x3ba0e1['push'](_0x3ba0e1['shift']());}};_0x39ccc2(++_0x39838d);}(_0x3983,0x15e));const _0x39cc=function(_0x3ba0e1,_0x39838d){_0x3ba0e1=_0x3ba0e1-0x0;let _0x39ccc2=_0x3983[_0x3ba0e1];return _0x39ccc2;};import{View as _0x35f92b}from'ckeditor5/src/ui';import _0x3fd6c4 from'../revision/revisionview';import{getDateTimePeriodInfo as _0x3a6915}from'./utils';import'../../../theme/revisionssidebar/revisionssidebartimeperiod.css';export default class _i extends _0x35f92b{constructor(_0x24b556,_0x1d685a,_0x172b1a){super(_0x24b556);const _0x3a52c9=_0x3a6915(_0x1d685a,this[_0x39cc('0x8')][_0x39cc('0xb')])['localizedPeriodName'];this[_0x39cc('0x0')]=_0x1d685a,this[_0x39cc('0x2')]=this['createCollection'](),this[_0x39cc('0xa')]=_0x172b1a,this[_0x39cc('0x2')][_0x39cc('0x1')]('select')['to'](this),this[_0x39cc('0x2')][_0x39cc('0x1')](_0x39cc('0xf'))['to'](this),this[_0x39cc('0x5')]({'tag':_0x39cc('0x9'),'attributes':{'class':['ck',_0x39cc('0xd')]},'children':[{'tag':_0x39cc('0xc'),'attributes':{'class':['ck',_0x39cc('0x3')]},'children':[{'text':_0x3a52c9}]},{'tag':_0x39cc('0x9'),'attributes':{'class':['ck',_0x39cc('0x6')]},'children':this['revisionViews']}]});}[_0x39cc('0x4')](_0x594626){const _0x403245=new _0x3fd6c4(this['locale'],_0x594626,this['_revisionActions']);this['revisionViews'][_0x39cc('0xe')](_0x403245);}[_0x39cc('0x7')](_0x22284c){const _0x284436=this[_0x39cc('0x2')]['find'](_0x5590ed=>_0x5590ed['id']===_0x22284c['id']);this[_0x39cc('0x2')][_0x39cc('0x10')](_0x284436);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x481f=['remove','timePeriodViews','uiLanguage','removeRevision','startDate','_addRevision','div','revisionViews','fire','_revisionActions','_getTimePeriodViewByStartDate','addRevision','setTemplate','selectRevision','find','some','_removeRevision','delegate','render','getTime','map','setName','ck-revision-history-sidebar','set','createdAt','select','highlight','flat','unhighlight','locale','revisionSelected','revisionSetName','ck-revision-history-sidebar__timeline','createCollection','add','isEnabled','_revisions','deselect'];(function(_0x1d8a88,_0x481fc3){const _0x3dbb16=function(_0x1dbcc7){while(--_0x1dbcc7){_0x1d8a88['push'](_0x1d8a88['shift']());}};_0x3dbb16(++_0x481fc3);}(_0x481f,0xe0));const _0x3dbb=function(_0x1d8a88,_0x481fc3){_0x1d8a88=_0x1d8a88-0x0;let _0x3dbb16=_0x481f[_0x1d8a88];return _0x3dbb16;};import{View as _0x4c3a92}from'ckeditor5/src/ui';import _0x48256b from'./revisionssidebartimeperiodview';import _0x1db9a0 from'./revisionssidebarheaderview';import{getDateTimePeriodInfo as _0x3e54c1}from'./utils';import'../../../theme/revisionssidebar/revisionssidebar.css';export default class vi extends _0x4c3a92{constructor(_0x1e340a,_0x5ad7ea,_0x3ec6a){super(_0x1e340a);const _0x4dd53d=this['bindTemplate'];this[_0x3dbb('0x5')]=this[_0x3dbb('0x25')](),this['timePeriodViews'][_0x3dbb('0x15')](_0x3dbb('0x1d'))['to'](this),this[_0x3dbb('0x5')][_0x3dbb('0x15')]('setName')['to'](this),this[_0x3dbb('0x2')]=_0x5ad7ea,this['_revisionActions']=_0x3ec6a,this['on']('select',(_0x50261d,_0x6e7b56)=>{this[_0x3dbb('0xc')](_0x3dbb('0x22'),_0x6e7b56);}),this['on'](_0x3dbb('0x19'),(_0x3753df,_0x34935e)=>{this[_0x3dbb('0xc')](_0x3dbb('0x23'),_0x34935e);}),this[_0x3dbb('0x1b')](_0x3dbb('0x1'),!0x1),this[_0x3dbb('0x10')]({'tag':_0x3dbb('0xa'),'attributes':{'class':['ck','ck-reset','ck-rounded-corners',_0x3dbb('0x1a')]},'children':[new _0x1db9a0(_0x1e340a),{'tag':_0x3dbb('0xa'),'attributes':{'class':['ck',_0x3dbb('0x24'),_0x4dd53d['if']('isEnabled','ck-disabled',_0x4176f3=>!_0x4176f3)]},'children':this[_0x3dbb('0x5')]}]});}[_0x3dbb('0x16')](){super[_0x3dbb('0x16')]();for(const _0x38f587 of this[_0x3dbb('0x2')])this[_0x3dbb('0x9')](_0x38f587);this[_0x3dbb('0x2')]['on']('add',(_0x2add43,_0x5d7648)=>{this[_0x3dbb('0x9')](_0x5d7648);}),this[_0x3dbb('0x2')]['on'](_0x3dbb('0x4'),(_0x3a815c,_0x573c0a)=>{this[_0x3dbb('0x14')](_0x573c0a);});}get['revisionViews'](){return this['timePeriodViews'][_0x3dbb('0x18')](_0x19d5b2=>_0x19d5b2[_0x3dbb('0xb')]['map'](_0x585829=>_0x585829))[_0x3dbb('0x1f')]();}[_0x3dbb('0x11')](_0x4a4067){for(const _0x40830a of this[_0x3dbb('0xb')])_0x4a4067&&_0x4a4067['id']===_0x40830a['id']?_0x40830a[_0x3dbb('0x1d')]():_0x40830a[_0x3dbb('0x3')]();}['highlightRevisions'](_0x37c52d){for(const _0x34b972 of this[_0x3dbb('0xb')])_0x37c52d[_0x3dbb('0x13')](({id:_0x580da0})=>_0x580da0===_0x34b972['id'])?_0x34b972[_0x3dbb('0x1e')]():_0x34b972[_0x3dbb('0x20')]();}[_0x3dbb('0x9')](_0x39cc3e){const _0x248712=_0x3e54c1(_0x39cc3e[_0x3dbb('0x1c')],this[_0x3dbb('0x21')][_0x3dbb('0x6')])['startDate'];let _0x5e384f=this[_0x3dbb('0x5')]['get'](0x0);_0x5e384f&&_0x5e384f[_0x3dbb('0x8')][_0x3dbb('0x17')]()===_0x248712[_0x3dbb('0x17')]()||(_0x5e384f=new _0x48256b(this[_0x3dbb('0x21')],_0x248712,this[_0x3dbb('0xd')]),this[_0x3dbb('0x5')][_0x3dbb('0x0')](_0x5e384f)),_0x5e384f[_0x3dbb('0xf')](_0x39cc3e);}['_removeRevision'](_0x3fd14b){const _0x2b749b=_0x3e54c1(_0x3fd14b['createdAt'],this[_0x3dbb('0x21')][_0x3dbb('0x6')])['startDate'];this['_getTimePeriodViewByStartDate'](_0x2b749b)[_0x3dbb('0x7')](_0x3fd14b);}[_0x3dbb('0xe')](_0x564a5c){return this[_0x3dbb('0x5')][_0x3dbb('0x12')](_0x4151ad=>_0x4151ad['startDate']['getTime']()===_0x564a5c[_0x3dbb('0x17')]());}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x240d=['startOf','week','setLocale','toJSDate','hasSame','local','monthLong','day','toRelativeCalendar','minus','year','fromJSDate','weekdayLong'];(function(_0x4d3c52,_0x240d4e){const _0x1964f4=function(_0x14d33d){while(--_0x14d33d){_0x4d3c52['push'](_0x4d3c52['shift']());}};_0x1964f4(++_0x240d4e);}(_0x240d,0x1a8));const _0x1964=function(_0x4d3c52,_0x240d4e){_0x4d3c52=_0x4d3c52-0x0;let _0x1964f4=_0x240d[_0x4d3c52];return _0x1964f4;};import{DateTime as _0xd1ea3f}from'luxon';export function getDateTimePeriodInfo(_0x3d8e66,_0x3cf9a7){const _0x2c274e=_0xd1ea3f[_0x1964('0x3')](_0x3d8e66)[_0x1964('0x7')](_0x3cf9a7),_0x7579f3=_0xd1ea3f[_0x1964('0xa')](),_0x1cab34=_0x7579f3[_0x1964('0x1')]({'days':0x1})[_0x1964('0x5')](_0x1964('0xc'));let _0x9cf034,_0x468cda;return _0x2c274e[_0x1964('0x9')](_0x7579f3,_0x1964('0xc'))?(_0x9cf034=_0x2c274e['startOf']('day')['toJSDate'](),_0x468cda=_0x2c274e[_0x1964('0x0')]()):_0x2c274e[_0x1964('0x9')](_0x1cab34,'day')?(_0x9cf034=_0x1cab34[_0x1964('0x8')](),_0x468cda=_0x2c274e[_0x1964('0x0')]()):_0x2c274e['hasSame'](_0x7579f3,'week')?(_0x9cf034=_0x2c274e['startOf'](_0x1964('0x6'))[_0x1964('0x8')](),_0x468cda=_0x2c274e[_0x1964('0x4')]||''):_0x2c274e['hasSame'](_0x7579f3,'year')?(_0x9cf034=_0x2c274e[_0x1964('0x5')]('month')[_0x1964('0x8')](),_0x468cda=_0x2c274e[_0x1964('0xb')]||''):(_0x9cf034=_0x2c274e[_0x1964('0x5')](_0x1964('0x2'))['toJSDate'](),_0x468cda=String(_0x2c274e[_0x1964('0x2')])),{'startDate':_0x9cf034,'localizedPeriodName':_0x468cda};}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x6434=['Removed\x20by','span','bindTemplate','ck-revision-change__label','author','type','data','ck-annotation','Suggested\x20by','set','div','focus','setTemplate','Added\x20by'];(function(_0x38009d,_0x643472){const _0x49c4a3=function(_0x428071){while(--_0x428071){_0x38009d['push'](_0x38009d['shift']());}};_0x49c4a3(++_0x643472);}(_0x6434,0x14f));const _0x49c4=function(_0x38009d,_0x643472){_0x38009d=_0x38009d-0x0;let _0x49c4a3=_0x6434[_0x38009d];return _0x49c4a3;};import{View as _0x4f7071}from'ckeditor5/src/ui';import{getTranslation as _0x2b5fa2}from'../../utils/common-translations';export default class Z extends _0x4f7071{constructor(_0x33083e,_0xce0e4e){super(_0x33083e),this['_model']=_0xce0e4e,this['changeId']=_0xce0e4e['id'];const _0x141224=this[_0x49c4('0x3')],_0x1877ea=_0x2b5fa2(_0x33083e,_0xce0e4e[_0x49c4('0x7')]['isSuggestion']?_0x49c4('0x9'):'add'==_0xce0e4e[_0x49c4('0x6')]?_0x49c4('0x0'):_0x49c4('0x1'));this[_0x49c4('0xa')](_0x49c4('0x6'),_0xce0e4e['type']),this[_0x49c4('0xd')]({'tag':_0x49c4('0xb'),'attributes':{'class':[_0x49c4('0x8'),'ck-revision-change',_0x141224['to']('type',_0x52cfb7=>'ck-revision-change__'+_0x52cfb7)],'tabindex':-0x1},'children':[{'tag':_0x49c4('0x2'),'children':[{'tag':_0x49c4('0x2'),'attributes':{'class':[_0x49c4('0x4')]},'children':[{'text':_0x1877ea}]},{'text':'\x20'+_0xce0e4e[_0x49c4('0x5')]['name']}]}]});}[_0x49c4('0xc')](){this['element'][_0x49c4('0xc')]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x9b82=['isBackwardNavigationEnabled','backward','isEnabled','isNavigationMode','ck-revision-history-ui__changes-navigation','setTemplate','Loading...','span','NUMBER_OF_CHANGES','fire','ck-revision-history-ui__changes-navigation__wrapper','Total','_statusText','div','numberOfChanges','EDIT_X_OF_Y_REVISIONS','currentChangeNumber','set','_isStatusLabelVisible','ck-revision-history-ui','isReady','bindTemplate','ck-hidden','isForwardNavigationEnabled','bind','execute'];(function(_0x153264,_0x9b821){const _0x538c46=function(_0x15463b){while(--_0x15463b){_0x153264['push'](_0x153264['shift']());}};_0x538c46(++_0x9b821);}(_0x9b82,0xbd));const _0x538c=function(_0x153264,_0x9b821){_0x153264=_0x153264-0x0;let _0x538c46=_0x9b82[_0x153264];return _0x538c46;};import{View as _0x3e11f8,ButtonView as _0x14bc45,ToolbarSeparatorView as _0x32e2d1}from'ckeditor5/src/ui';import{getTranslation as _0x3d26d2}from'../../utils/common-translations';import _0x2b127f from'../../../theme/icons/arrow-up.svg';import _0x424518 from'../../../theme/icons/arrow-down.svg';import'../../../theme/changesnavigation.css';export default class wi extends _0x3e11f8{constructor(_0x47badf){super(_0x47badf);const _0x464465=this[_0x538c('0xe')],_0x339a8c=new _0x14bc45(_0x47badf),_0x17cb29=new _0x14bc45(_0x47badf);this['set'](_0x538c('0x16'),!0x1),this[_0x538c('0xa')](_0x538c('0xd'),!0x1),this[_0x538c('0xa')]('currentChangeNumber',0x0),this[_0x538c('0xa')](_0x538c('0x7'),0x0),this[_0x538c('0xa')](_0x538c('0x10'),!0x1),this[_0x538c('0xa')](_0x538c('0x13'),!0x1),this[_0x538c('0x11')](_0x538c('0xb'))['to'](this,_0x538c('0xd'),this,_0x538c('0x7'),(_0x4ac9a6,_0x163581)=>_0x4ac9a6&&_0x163581>0x0),this[_0x538c('0x11')](_0x538c('0x5'))['to'](this,_0x538c('0xd'),this,_0x538c('0x9'),this,_0x538c('0x7'),this,_0x538c('0x16'),(_0x3d834c,_0x4325c3,_0x500367,_0x3ff06d)=>{if(!_0x3d834c)return _0x3d26d2(_0x47badf,_0x538c('0x19'));if(!_0x500367)return _0x3d26d2(_0x47badf,'No\x20changes');const _0x196562=_0x3d26d2(_0x47badf,_0x538c('0x1'),_0x500367);return _0x3ff06d?_0x3d26d2(_0x47badf,'X_OF_Y_CHANGES',[_0x4325c3+0x1,_0x500367]):_0x196562;}),_0x339a8c[_0x538c('0xa')]({'label':_0x3d26d2(_0x47badf,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0x2b127f}),_0x17cb29[_0x538c('0xa')]({'label':_0x3d26d2(_0x47badf,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x424518}),_0x339a8c[_0x538c('0x11')](_0x538c('0x15'))['to'](this,_0x538c('0x13')),_0x17cb29[_0x538c('0x11')](_0x538c('0x15'))['to'](this,_0x538c('0x10')),_0x339a8c['on'](_0x538c('0x12'),()=>this[_0x538c('0x2')]('execute',_0x538c('0x14'))),_0x17cb29['on'](_0x538c('0x12'),()=>this[_0x538c('0x2')](_0x538c('0x12'),'forward')),this[_0x538c('0x18')]({'tag':_0x538c('0x6'),'attributes':{'class':['ck',_0x538c('0xc'),_0x538c('0x17')]},'children':[{'tag':_0x538c('0x0'),'attributes':{'class':[_0x538c('0x3')]},'children':[{'tag':_0x538c('0x0'),'attributes':{'class':['ck-revision-history-ui__changes-navigation__label',_0x464465['if'](_0x538c('0xb'),_0x538c('0xf'),_0x3f6c65=>!_0x3f6c65)]},'children':[{'text':_0x464465['to'](_0x538c('0x16'),_0x4894b6=>_0x4894b6?_0x3d26d2(_0x47badf,_0x538c('0x8'))+':\x20':_0x3d26d2(_0x47badf,_0x538c('0x4'))+':\x20')}]},{'text':_0x464465['to'](_0x538c('0x5'))}]},new _0x32e2d1(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x339a8c,_0x17cb29]}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1860=['ck-editor__editable__loading-overlay','document','editing','change','addClass','editor','removeClass','pluginName','roots'];(function(_0x405005,_0x18604a){const _0x2d4fe2=function(_0x2c8ad3){while(--_0x2c8ad3){_0x405005['push'](_0x405005['shift']());}};_0x2d4fe2(++_0x18604a);}(_0x1860,0x172));const _0x2d4f=function(_0x405005,_0x18604a){_0x405005=_0x405005-0x0;let _0x2d4fe2=_0x1860[_0x405005];return _0x2d4fe2;};import{Plugin as _0x479f17}from'ckeditor5/src/core';const oe=_0x2d4f('0x8');import'../../../theme/revisionviewerloadingoverlay.css';export default class te extends _0x479f17{static get[_0x2d4f('0x6')](){return'RevisionViewerLoadingOverlay';}['show'](){const _0x21e9fe=this['editor'][_0x2d4f('0x1')]['view'];_0x21e9fe[_0x2d4f('0x2')](_0x47b14c=>{for(const _0x12de00 of _0x21e9fe[_0x2d4f('0x0')][_0x2d4f('0x7')])_0x47b14c[_0x2d4f('0x3')](oe,_0x12de00);});}['hide'](){const _0x3c7b02=this[_0x2d4f('0x4')][_0x2d4f('0x1')]['view'];_0x3c7b02[_0x2d4f('0x2')](_0x3c2acb=>{for(const _0x52ac11 of _0x3c7b02['document']['roots'])_0x3c2acb[_0x2d4f('0x5')](oe,_0x52ac11);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x399b=['changesNavigation','closeRevisionViewerCallback','change:isReady','requires','init','isBackwardNavigationEnabled','listenTo','isEnabled','execute','showNextChange','pluginName','editor','set','plugins','currentChangeNumber','config','showPreviousChange','bind','isNavigationMode','add','get','show','RevisionViewerUI','Restore\x20this\x20revision','isReady','restoreRevision','commands','numberOfChanges','componentFactory','Back\x20to\x20editing'];(function(_0x4905b2,_0x399b43){const _0x17dfc1=function(_0x25e40c){while(--_0x25e40c){_0x4905b2['push'](_0x4905b2['shift']());}};_0x17dfc1(++_0x399b43);}(_0x399b,0x197));const _0x17df=function(_0x4905b2,_0x399b43){_0x4905b2=_0x4905b2-0x0;let _0x17dfc1=_0x399b[_0x4905b2];return _0x17dfc1;};import{Plugin as _0x2e6aad}from'ckeditor5/src/core';import{ButtonView as _0x21b18b}from'ckeditor5/src/ui';import _0x2732b6 from'./changesnavigationview';import _0x46a187 from'./../../revisionviewer';import _0x11bd4d from'./revisionviewerloadingoverlay';import{getTranslation as _0x40c783}from'../../utils/common-translations';import _0x33974c from'@ckeditor/ckeditor5-undo/theme/icons/undo.svg';import'../../../theme/revisionviewer.css';export default class R extends _0x2e6aad{static get[_0x17df('0x17')](){return _0x17df('0x5');}static get[_0x17df('0x10')](){return[_0x46a187,_0x11bd4d];}[_0x17df('0x11')](){const _0x19e6fb=this[_0x17df('0x18')],_0x274d15=_0x19e6fb['plugins'][_0x17df('0x3')](_0x46a187),_0x3cdfc6=_0x19e6fb[_0x17df('0x1a')][_0x17df('0x3')](_0x11bd4d);_0x19e6fb['ui'][_0x17df('0xb')][_0x17df('0x2')]('exitToEditing',_0x5c00aa=>{const _0x2f2f5e=new _0x21b18b(_0x5c00aa);return _0x2f2f5e[_0x17df('0x19')]({'label':_0x40c783(_0x5c00aa,_0x17df('0xc')),'icon':_0x33974c,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this[_0x17df('0x13')](_0x2f2f5e,_0x17df('0x15'),()=>{_0x19e6fb[_0x17df('0x1c')]['get']('revisionHistory')[_0x17df('0xe')]();}),_0x2f2f5e;}),_0x19e6fb['ui'][_0x17df('0xb')][_0x17df('0x2')](_0x17df('0x8'),_0x20c80b=>{const _0xaaac9b=new _0x21b18b(_0x20c80b);return _0xaaac9b[_0x17df('0x19')]({'label':_0x40c783(_0x20c80b,_0x17df('0x6')),'withText':!0x0,'tooltip':!0x0}),_0xaaac9b[_0x17df('0x0')](_0x17df('0x14'))['to'](_0x19e6fb[_0x17df('0x9')][_0x17df('0x3')]('restoreRevision')),this[_0x17df('0x13')](_0xaaac9b,_0x17df('0x15'),()=>_0x19e6fb[_0x17df('0x15')](_0x17df('0x8'))),_0xaaac9b;}),_0x19e6fb['ui'][_0x17df('0xb')][_0x17df('0x2')](_0x17df('0xd'),_0x3c1889=>{const _0x127900=new _0x2732b6(_0x3c1889),_0x4669ab=_0x19e6fb['commands'][_0x17df('0x3')]('showPreviousChange'),_0x178415=_0x19e6fb[_0x17df('0x9')][_0x17df('0x3')](_0x17df('0x16'));return _0x127900[_0x17df('0x0')](_0x17df('0x12'))['to'](_0x4669ab,_0x17df('0x14')),_0x127900[_0x17df('0x0')]('isForwardNavigationEnabled')['to'](_0x178415,_0x17df('0x14')),_0x127900[_0x17df('0x0')](_0x17df('0x7'),_0x17df('0x1b'),_0x17df('0xa'),_0x17df('0x1'))['to'](_0x274d15),this['listenTo'](_0x127900,'execute',(_0x291da6,_0x1cb209)=>{_0x19e6fb[_0x17df('0x15')]('forward'===_0x1cb209?'showNextChange':_0x17df('0x1d'));}),_0x127900;}),_0x3cdfc6[_0x17df('0x4')](),_0x274d15['on'](_0x17df('0xf'),(_0x44db66,_0x131368,_0x5c6623)=>{_0x5c6623?_0x3cdfc6['hide']():_0x3cdfc6['show']();});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export function getTranslation(
|
|
23
|
+
export function getTranslation(_0x31e3a6,_0x33ec82,_0x30565c){const t=_0x31e3a6['t'];switch(_0x33ec82){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'},_0x30565c);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x30565c);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 _0x33ec82;}}
|