@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20231009.0 → 0.0.0-nightly-20231010.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 _0x45ea=['Revision\x20history','submit','isReadOnly','buttonView','set','execute','pluginName','items','get','length','bind','Save\x20current\x20revision','change:isOpen','saveRevision','panelView','isEnabled','componentFactory','add','isReady','reset','saveButtonView','revisionName','focus','view','revisionHistory','children','addMany','plugins','init','remove','requires'];(function(_0x56a9df,_0x45ea67){const _0x490524=function(_0x5f05b2){while(--_0x5f05b2){_0x56a9df['push'](_0x56a9df['shift']());}};_0x490524(++_0x45ea67);}(_0x45ea,0x1d0));const _0x4905=function(_0x56a9df,_0x45ea67){_0x56a9df=_0x56a9df-0x0;let _0x490524=_0x45ea[_0x56a9df];return _0x490524;};import{Plugin as _0x1b5e80,icons as _0x3f8286}from'ckeditor5/src/core';import{ListView as _0x3522f7,ListItemView as _0x339fa9,ButtonView as _0x2e0324,createDropdown as _0x3926ec}from'ckeditor5/src/ui';import _0x1df703 from'../../revisiontracker';import _0x5748bc from'./revisionhistorysaverevisionformview';import{getTranslation as _0x4622cd}from'../../utils/common-translations';export default class u extends _0x1b5e80{static get[_0x4905('0x7')](){return'RevisionHistoryUI';}static get[_0x4905('0x0')](){return[_0x1df703];}[_0x4905('0x1d')](){const _0x147441=this['editor'],_0x1e9ccf=_0x147441['plugins'][_0x4905('0x9')]('RevisionTracker');_0x147441['ui'][_0x4905('0x11')][_0x4905('0x12')](_0x4905('0x19'),_0x364c01=>{const _0x1accf8=_0x3926ec(_0x364c01),_0x41d841=_0x1accf8[_0x4905('0xf')][_0x4905('0x1a')],_0x37bd92=new _0x3522f7(_0x364c01),_0xd7391f=new _0x339fa9(_0x364c01),_0x5b09c6=new _0x2e0324(_0x364c01),_0x5737ae=new _0x339fa9(_0x364c01),_0x22b555=new _0x2e0324(_0x364c01),_0x4e1274=new _0x5748bc(_0x364c01);function _0x3413d2(){_0x41d841[_0x4905('0xa')]&&_0x41d841[_0x4905('0x1e')](0x0),_0x41d841['add'](_0x37bd92);}function _0x10077b(){_0x1accf8['isOpen']=!0x1,_0x147441['editing'][_0x4905('0x18')][_0x4905('0x17')]();}return _0x1accf8['bind'](_0x4905('0x10'))['to'](_0x1e9ccf,_0x4905('0x13'),_0x1e9ccf,'isEnabled',_0x147441,'isReadOnly',(_0x48b312,_0x28efdb,_0x52502f)=>_0x48b312&&_0x28efdb&&!_0x52502f),_0x1accf8[_0x4905('0x4')][_0x4905('0x5')]({'icon':_0x3f8286['history'],'label':_0x4622cd(_0x364c01,_0x4905('0x1')),'tooltip':!0x0}),_0x5b09c6[_0x4905('0x5')]({'label':_0x4622cd(_0x364c01,_0x4905('0xc')),'withText':!0x0}),_0x5b09c6[_0x4905('0xb')]('isEnabled')['to'](_0x1e9ccf,_0x4905('0x13'),_0x1e9ccf,_0x4905('0x10'),_0x147441,'isReadOnly',(_0x2fa533,_0x15ba83,_0x2a42a6)=>_0x2fa533&&_0x15ba83&&!_0x2a42a6),_0x5b09c6['on'](_0x4905('0x6'),()=>function(){_0x41d841[_0x4905('0xa')]&&_0x41d841['remove'](0x0),(_0x4e1274[_0x4905('0x14')](),_0x41d841['add'](_0x4e1274),_0x4e1274['focus']());}()),_0x22b555[_0x4905('0x5')]({'label':_0x4622cd(_0x364c01,'Open\x20revision\x20history'),'withText':!0x0}),_0x22b555['bind'](_0x4905('0x10'))['to'](_0x1e9ccf,_0x4905('0x13'),_0x147441,_0x4905('0x3'),(_0x767f27,_0x400621)=>_0x767f27&&!_0x400621),_0x22b555['on'](_0x4905('0x6'),()=>{_0x147441['config']['get'](_0x4905('0x19'))['showRevisionViewerCallback'](),_0x10077b();}),_0xd7391f[_0x4905('0x1a')][_0x4905('0x12')](_0x5b09c6),_0x5737ae['children'][_0x4905('0x12')](_0x22b555),_0x37bd92[_0x4905('0x8')][_0x4905('0x1b')]([_0xd7391f,_0x5737ae]),_0x1accf8['on'](_0x4905('0xd'),()=>_0x3413d2()),_0x4e1274[_0x4905('0x15')][_0x4905('0xb')](_0x4905('0x10'))['to'](_0x1e9ccf,'isReady',_0x1e9ccf,_0x4905('0x10'),_0x147441,_0x4905('0x3'),(_0x441ce2,_0x167e0d,_0x41df2e)=>_0x441ce2&&_0x167e0d&&!_0x41df2e),_0x4e1274['on'](_0x4905('0x2'),()=>(_0x147441[_0x4905('0x1c')][_0x4905('0x9')](_0x1df703)[_0x4905('0xe')]({'name':_0x4e1274[_0x4905('0x16')]}),void _0x10077b())),_0x4e1274['on']('cancel',()=>_0x3413d2()),_0x4e1274['render'](),_0x3413d2(),_0x1accf8;});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x16a2=['isVisible','getRevisionsInDiff','fieldView','_revisionViewer','isSelected','_handleRevisionSetName','Restore\x20this\x20revision','name','revisionViews','action','_revisionsRepository','isEnabled','string','appendChild','_sidebarView','init','repository','get','_handleRevisionSelected','bind','map','restoreRevisionCallback','nameRevision','getIndex','getEarlierVisibleRevision','isReady','restoreRevision','remove','revisionSelected','ready','getLaterVisibleRevision','timePeriodViews','defaultRevisionActions','pluginName','data','focus','highlightRevisions','Compare\x20against\x20selected','length','compareAgainstSelected','destroy','compare','revisionHistory.revisionActions','editor','element','_handleEditorDataReady','_createRevisionActions','config','plugins','setName','RevisionsSidebar','getRevision','select','_handleDiffChange','revisionHistory.viewerSidebarContainer','listenTo','availableRevisionActions'];(function(_0x4da081,_0x16a292){const _0x1abaa6=function(_0x1a73eb){while(--_0x1a73eb){_0x4da081['push'](_0x4da081['shift']());}};_0x1abaa6(++_0x16a292);}(_0x16a2,0x1aa));const _0x1aba=function(_0x4da081,_0x16a292){_0x4da081=_0x4da081-0x0;let _0x1abaa6=_0x16a2[_0x4da081];return _0x1abaa6;};import{Plugin as _0x59dea9}from'ckeditor5/src/core';import _0x5b2ea5 from'./revisionssidebarview';import _0x4274b5 from'../../revisionviewer';export default class w extends _0x59dea9{static get[_0x1aba('0x6')](){return _0x1aba('0x17');}static get['requires'](){return[_0x4274b5];}constructor(_0x2fb3b0){super(_0x2fb3b0),this[_0x1aba('0x21')]=_0x2fb3b0[_0x1aba('0x15')][_0x1aba('0x2f')](_0x4274b5),this[_0x1aba('0x28')]=this[_0x1aba('0x21')][_0x1aba('0x2e')],this['_sidebarView']=null;}[_0x1aba('0x2d')](){const _0x5cb85d=this['_revisionsRepository']['_revisions'],_0x3c3f91=this[_0x1aba('0x13')](),_0x524f85=this[_0x1aba('0x10')][_0x1aba('0x14')][_0x1aba('0x2f')](_0x1aba('0x1b'));this[_0x1aba('0x2c')]=new _0x5b2ea5(this['editor']['locale'],_0x5cb85d,_0x3c3f91),this[_0x1aba('0x2c')]['on'](_0x1aba('0x1'),this[_0x1aba('0x30')][_0x1aba('0x31')](this)),this[_0x1aba('0x2c')]['on']('revisionSetName',this[_0x1aba('0x23')][_0x1aba('0x31')](this)),this[_0x1aba('0x2c')][_0x1aba('0x31')](_0x1aba('0x29'))['to'](this[_0x1aba('0x21')]),this[_0x1aba('0x2c')][_0x1aba('0x4')]['on']('add',(_0x906994,_0xf1a03e)=>{_0xf1a03e[_0x1aba('0x26')]['on']('add',(_0xbc81ed,_0x4b48e2)=>{_0x4b48e2['bind']('isEnabled',_0x1aba('0x37'))['to'](this['_revisionViewer']);});}),this['_sidebarView']['render'](),this[_0x1aba('0x1c')](this[_0x1aba('0x10')][_0x1aba('0x7')],_0x1aba('0x2'),this[_0x1aba('0x12')][_0x1aba('0x31')](this)),this[_0x1aba('0x1c')](this[_0x1aba('0x21')],'change:diff',this['_handleDiffChange'][_0x1aba('0x31')](this)),_0x524f85[_0x1aba('0x2b')](this[_0x1aba('0x2c')][_0x1aba('0x11')]);}[_0x1aba('0xd')](){this[_0x1aba('0x2c')][_0x1aba('0x11')][_0x1aba('0x0')](),this['_sidebarView']['destroy']();}[_0x1aba('0x12')](){const _0x49f981=this[_0x1aba('0x28')][_0x1aba('0x18')](0x0);if(_0x49f981){const _0x246c76=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x49f981['id']);this[_0x1aba('0x21')][_0x1aba('0xe')](_0x49f981,_0x246c76);}}[_0x1aba('0x30')](_0x19e2eb,_0x557c3c){const _0x127b57=this[_0x1aba('0x28')]['getRevision'](_0x557c3c['id']),_0x202cf7=this[_0x1aba('0x28')]['getEarlierVisibleRevision'](_0x127b57['id']);this[_0x1aba('0x21')][_0x1aba('0xe')](_0x127b57,_0x202cf7);}[_0x1aba('0x23')](_0x4eba6a,_0x3bba07){this[_0x1aba('0x28')][_0x1aba('0x18')](_0x3bba07['id'])[_0x1aba('0x16')](_0x3bba07[_0x1aba('0x25')]);}[_0x1aba('0x1a')](_0x247c66,_0x30c887,_0x394e4b){const _0x3e8812=this[_0x1aba('0x28')]['getRevisionsInDiff'](_0x394e4b);_0x3e8812[_0x1aba('0xb')]>0x2?(this[_0x1aba('0x2c')][_0x1aba('0x9')](_0x3e8812),this['_sidebarView']['selectRevision'](null)):(this[_0x1aba('0x2c')][_0x1aba('0x9')]([]),this[_0x1aba('0x2c')]['selectRevision'](_0x3e8812[0x0]));}['_createRevisionActions'](){const _0x3e57b2=this[_0x1aba('0x10')],_0xdade4=w[_0x1aba('0x1d')],_0x451747=_0x3e57b2[_0x1aba('0x14')][_0x1aba('0x2f')](_0x1aba('0xf'))||w[_0x1aba('0x5')];if(_0x451747[_0x1aba('0xb')])return _0x451747[_0x1aba('0x32')](_0x50554f=>{const _0x40b855=_0x1aba('0x2a')==typeof _0x50554f?Object['assign']({},_0xdade4[_0x50554f]):_0x50554f;return _0x40b855['action']=_0x40b855[_0x1aba('0x27')][_0x1aba('0x31')](this,_0x3e57b2),_0x40b855[_0x1aba('0x1e')]&&(_0x40b855[_0x1aba('0x1e')]=_0x40b855[_0x1aba('0x1e')][_0x1aba('0x31')](this,_0x3e57b2)),_0x40b855;});}}w[_0x1aba('0x1d')]={'compareAgainstSelected':{'name':_0x1aba('0xa'),'action':({plugins:_0x2c68fd},_0x205cd1)=>{const _0x5cc2dd=_0x2c68fd[_0x1aba('0x2f')](_0x4274b5),_0x326574=_0x5cc2dd[_0x1aba('0x2e')];let _0x2b94e2=_0x5cc2dd['diff']['newRevisionId'],_0x15ef41=_0x205cd1['id'];_0x326574[_0x1aba('0x35')](_0x2b94e2)>_0x326574['getIndex'](_0x15ef41)&&([_0x2b94e2,_0x15ef41]=[_0x15ef41,_0x2b94e2]),_0x5cc2dd['compare'](_0x2b94e2,_0x15ef41);},'isVisible':({plugins:_0x47e523},_0x27a7ab)=>{const _0x5f4c4d=_0x47e523['get'](_0x4274b5);return!(_0x5f4c4d[_0x1aba('0x2e')][_0x1aba('0x1f')](_0x5f4c4d['diff'])[_0x1aba('0xb')]>0x2)&&!_0x27a7ab[_0x1aba('0x22')];}},'restoreRevision':{'name':_0x1aba('0x24'),'action':(_0x1e6b2e,{id:_0x4364df})=>{_0x1e6b2e[_0x1aba('0x14')]['get']('revisionHistory')[_0x1aba('0x33')](_0x4364df);},'isVisible':({plugins:_0x26d1d0},_0x31f44b)=>!!_0x26d1d0[_0x1aba('0x2f')](_0x4274b5)[_0x1aba('0x2e')][_0x1aba('0x3')](_0x31f44b['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x4a9569},{id:_0xfd4596,revisionNameView:_0x1ae284})=>{const _0x46c072=_0x4a9569['get'](_0x4274b5),_0x834df9=_0x46c072[_0x1aba('0x2e')][_0x1aba('0x36')](_0xfd4596);_0x46c072[_0x1aba('0xe')](_0xfd4596,_0x834df9),_0x1ae284[_0x1aba('0x8')](),_0x1ae284[_0x1aba('0x20')][_0x1aba('0x19')]();}}},w[_0x1aba('0x5')]=[_0x1aba('0xc'),_0x1aba('0x38'),_0x1aba('0x34')];
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x6f8f=['ck-reset_all','ck-revision-history-sidebar__header','setTemplate','ck-revision-history-sidebar__header__label','span','Revision\x20history'];(function(_0x15b263,_0x6f8f0d){const _0x279877=function(_0x116ab8){while(--_0x116ab8){_0x15b263['push'](_0x15b263['shift']());}};_0x279877(++_0x6f8f0d);}(_0x6f8f,0xbf));const _0x2798=function(_0x15b263,_0x6f8f0d){_0x15b263=_0x15b263-0x0;let _0x279877=_0x6f8f[_0x15b263];return _0x279877;};import{View as _0x4dc4b6,IconView as _0x579f7c}from'ckeditor5/src/ui';import{getTranslation as _0x5ecf34}from'../../utils/common-translations';import{icons as _0x37fd5c}from'ckeditor5/src/core';import'../../../theme/revisionssidebar/revisionssidebarheader.css';export default class rr extends _0x4dc4b6{constructor(_0x49a6c){super(_0x49a6c);const _0x763d16=new _0x579f7c();_0x763d16['content']=_0x37fd5c['history'],this[_0x2798('0x3')]({'tag':'div','attributes':{'class':['ck',_0x2798('0x1'),_0x2798('0x2')]},'children':[_0x763d16,{'tag':_0x2798('0x5'),'attributes':{'class':['ck',_0x2798('0x4')]},'children':[_0x5ecf34(_0x49a6c,_0x2798('0x0'))]}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x261f=['removeRevision','div','createCollection','span','addRevision','setName','ck-revision-history-sidebar__time-period__label','add','delegate','ck-revision-history-sidebar__time-period__revisions','revisionViews','_revisionActions','locale','remove','startDate'];(function(_0x554af2,_0x261f45){const _0x5d3e79=function(_0x419e0d){while(--_0x419e0d){_0x554af2['push'](_0x554af2['shift']());}};_0x5d3e79(++_0x261f45);}(_0x261f,0x1ca));const _0x5d3e=function(_0x554af2,_0x261f45){_0x554af2=_0x554af2-0x0;let _0x5d3e79=_0x261f[_0x554af2];return _0x5d3e79;};import{View as _0x215a90}from'ckeditor5/src/ui';import _0x47293d from'../revision/revisionview';import{getDateTimePeriodInfo as _0x14edc6}from'./utils';import'../../../theme/revisionssidebar/revisionssidebartimeperiod.css';export default class pi extends _0x215a90{constructor(_0x37f048,_0x4c1424,_0x279375){super(_0x37f048);const _0x1c31d4=_0x14edc6(_0x4c1424,this[_0x5d3e('0x4')]['uiLanguage'])['localizedPeriodName'];this[_0x5d3e('0x6')]=_0x4c1424,this[_0x5d3e('0x2')]=this[_0x5d3e('0x9')](),this[_0x5d3e('0x3')]=_0x279375,this[_0x5d3e('0x2')][_0x5d3e('0x0')]('select')['to'](this),this[_0x5d3e('0x2')][_0x5d3e('0x0')](_0x5d3e('0xc'))['to'](this),this['setTemplate']({'tag':_0x5d3e('0x8'),'attributes':{'class':['ck','ck-revision-history-sidebar__time-period']},'children':[{'tag':_0x5d3e('0xa'),'attributes':{'class':['ck',_0x5d3e('0xd')]},'children':[{'text':_0x1c31d4}]},{'tag':_0x5d3e('0x8'),'attributes':{'class':['ck',_0x5d3e('0x1')]},'children':this[_0x5d3e('0x2')]}]});}[_0x5d3e('0xb')](_0x2d2c50){const _0x4be6f9=new _0x47293d(this[_0x5d3e('0x4')],_0x2d2c50,this['_revisionActions']);this[_0x5d3e('0x2')][_0x5d3e('0xe')](_0x4be6f9);}[_0x5d3e('0x7')](_0x4c5082){const _0x3d1c36=this[_0x5d3e('0x2')]['find'](_0x44419b=>_0x44419b['id']===_0x4c5082['id']);this[_0x5d3e('0x2')][_0x5d3e('0x5')](_0x3d1c36);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1ba1=['_getTimePeriodViewByStartDate','render','locale','startDate','uiLanguage','ck-revision-history-sidebar__timeline','unhighlight','getTime','removeRevision','some','_removeRevision','revisionViews','_addRevision','ck-reset','setName','revisionSetName','highlightRevisions','div','isEnabled','addRevision','select','flat','bindTemplate','createdAt','_revisionActions','ck-disabled','get','deselect','_revisions','timePeriodViews','map','highlight','fire','delegate','revisionSelected','add','createCollection'];(function(_0x1f142e,_0x1ba172){const _0x5e6508=function(_0x3082ac){while(--_0x3082ac){_0x1f142e['push'](_0x1f142e['shift']());}};_0x5e6508(++_0x1ba172);}(_0x1ba1,0xe6));const _0x5e65=function(_0x1f142e,_0x1ba172){_0x1f142e=_0x1f142e-0x0;let _0x5e6508=_0x1ba1[_0x1f142e];return _0x5e6508;};import{View as _0x348bdb}from'ckeditor5/src/ui';import _0x16c385 from'./revisionssidebartimeperiodview';import _0x2895d5 from'./revisionssidebarheaderview';import{getDateTimePeriodInfo as _0x2b8576}from'./utils';import'../../../theme/revisionssidebar/revisionssidebar.css';export default class vi extends _0x348bdb{constructor(_0x263723,_0x2eac11,_0x33008f){super(_0x263723);const _0xf3ca7=this[_0x5e65('0xe')];this[_0x5e65('0x15')]=this[_0x5e65('0x1c')](),this['timePeriodViews'][_0x5e65('0x19')]('select')['to'](this),this[_0x5e65('0x15')][_0x5e65('0x19')](_0x5e65('0x6'))['to'](this),this['_revisions']=_0x2eac11,this[_0x5e65('0x10')]=_0x33008f,this['on']('select',(_0x279118,_0x1bdf26)=>{this[_0x5e65('0x18')](_0x5e65('0x1a'),_0x1bdf26);}),this['on']('setName',(_0x16aa74,_0x4f68bc)=>{this[_0x5e65('0x18')](_0x5e65('0x7'),_0x4f68bc);}),this['set'](_0x5e65('0xa'),!0x1),this['setTemplate']({'tag':_0x5e65('0x9'),'attributes':{'class':['ck',_0x5e65('0x5'),'ck-rounded-corners','ck-revision-history-sidebar']},'children':[new _0x2895d5(_0x263723),{'tag':'div','attributes':{'class':['ck',_0x5e65('0x22'),_0xf3ca7['if'](_0x5e65('0xa'),_0x5e65('0x11'),_0x27065e=>!_0x27065e)]},'children':this[_0x5e65('0x15')]}]});}[_0x5e65('0x1e')](){super[_0x5e65('0x1e')]();for(const _0x41a844 of this[_0x5e65('0x14')])this[_0x5e65('0x4')](_0x41a844);this[_0x5e65('0x14')]['on'](_0x5e65('0x1b'),(_0x58d07f,_0x6e24bf)=>{this['_addRevision'](_0x6e24bf);}),this[_0x5e65('0x14')]['on']('remove',(_0x500ade,_0x160eae)=>{this[_0x5e65('0x2')](_0x160eae);});}get[_0x5e65('0x3')](){return this[_0x5e65('0x15')][_0x5e65('0x16')](_0x5f3bfc=>_0x5f3bfc[_0x5e65('0x3')]['map'](_0x54903b=>_0x54903b))[_0x5e65('0xd')]();}['selectRevision'](_0x293691){for(const _0x5543c3 of this[_0x5e65('0x3')])_0x293691&&_0x293691['id']===_0x5543c3['id']?_0x5543c3[_0x5e65('0xc')]():_0x5543c3[_0x5e65('0x13')]();}[_0x5e65('0x8')](_0x5f4a5f){for(const _0x41463e of this['revisionViews'])_0x5f4a5f[_0x5e65('0x1')](({id:_0x1e5c78})=>_0x1e5c78===_0x41463e['id'])?_0x41463e[_0x5e65('0x17')]():_0x41463e[_0x5e65('0x23')]();}[_0x5e65('0x4')](_0x4d79d4){const _0x5f0f88=_0x2b8576(_0x4d79d4[_0x5e65('0xf')],this[_0x5e65('0x1f')][_0x5e65('0x21')])[_0x5e65('0x20')];let _0x21cce3=this[_0x5e65('0x15')][_0x5e65('0x12')](0x0);_0x21cce3&&_0x21cce3[_0x5e65('0x20')][_0x5e65('0x24')]()===_0x5f0f88[_0x5e65('0x24')]()||(_0x21cce3=new _0x16c385(this['locale'],_0x5f0f88,this[_0x5e65('0x10')]),this['timePeriodViews'][_0x5e65('0x1b')](_0x21cce3)),_0x21cce3[_0x5e65('0xb')](_0x4d79d4);}[_0x5e65('0x2')](_0x2283e6){const _0x4ba8d3=_0x2b8576(_0x2283e6[_0x5e65('0xf')],this[_0x5e65('0x1f')]['uiLanguage'])[_0x5e65('0x20')];this[_0x5e65('0x1d')](_0x4ba8d3)[_0x5e65('0x0')](_0x2283e6);}[_0x5e65('0x1d')](_0x36c913){return this[_0x5e65('0x15')]['find'](_0x6dd016=>_0x6dd016['startDate'][_0x5e65('0x24')]()===_0x36c913[_0x5e65('0x24')]());}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4948=['fromJSDate','weekdayLong','local','month','hasSame','setLocale','day','week','monthLong','toRelativeCalendar','startOf','year','toJSDate'];(function(_0x5f040c,_0x4948a9){const _0x4d0a21=function(_0x2f05fd){while(--_0x2f05fd){_0x5f040c['push'](_0x5f040c['shift']());}};_0x4d0a21(++_0x4948a9);}(_0x4948,0x1f3));const _0x4d0a=function(_0x5f040c,_0x4948a9){_0x5f040c=_0x5f040c-0x0;let _0x4d0a21=_0x4948[_0x5f040c];return _0x4d0a21;};import{DateTime as _0x2c2bd6}from'luxon';export function getDateTimePeriodInfo(_0x1012cf,_0x4a594d){const _0x5a84a1=_0x2c2bd6[_0x4d0a('0x8')](_0x1012cf)[_0x4d0a('0x0')](_0x4a594d),_0x13d6de=_0x2c2bd6[_0x4d0a('0xa')](),_0x2aa91c=_0x13d6de['minus']({'days':0x1})['startOf'](_0x4d0a('0x1'));let _0x56f43e,_0x37d6ec;return _0x5a84a1['hasSame'](_0x13d6de,_0x4d0a('0x1'))?(_0x56f43e=_0x5a84a1[_0x4d0a('0x5')](_0x4d0a('0x1'))[_0x4d0a('0x7')](),_0x37d6ec=_0x5a84a1['toRelativeCalendar']()):_0x5a84a1['hasSame'](_0x2aa91c,'day')?(_0x56f43e=_0x2aa91c[_0x4d0a('0x7')](),_0x37d6ec=_0x5a84a1[_0x4d0a('0x4')]()):_0x5a84a1[_0x4d0a('0xc')](_0x13d6de,_0x4d0a('0x2'))?(_0x56f43e=_0x5a84a1['startOf'](_0x4d0a('0x2'))[_0x4d0a('0x7')](),_0x37d6ec=_0x5a84a1[_0x4d0a('0x9')]||''):_0x5a84a1[_0x4d0a('0xc')](_0x13d6de,_0x4d0a('0x6'))?(_0x56f43e=_0x5a84a1[_0x4d0a('0x5')](_0x4d0a('0xb'))[_0x4d0a('0x7')](),_0x37d6ec=_0x5a84a1[_0x4d0a('0x3')]||''):(_0x56f43e=_0x5a84a1['startOf'](_0x4d0a('0x6'))[_0x4d0a('0x7')](),_0x37d6ec=String(_0x5a84a1['year'])),{'startDate':_0x56f43e,'localizedPeriodName':_0x37d6ec};}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x29da=['data','Removed\x20by','Suggested\x20by','name','Added\x20by','set','isSuggestion','ck-revision-change','add','bindTemplate','_model','span','focus','type','setTemplate','changeId','ck-revision-change__label'];(function(_0x5d65f4,_0x29da43){const _0xef7b77=function(_0x225980){while(--_0x225980){_0x5d65f4['push'](_0x5d65f4['shift']());}};_0xef7b77(++_0x29da43);}(_0x29da,0x1ec));const _0xef7b=function(_0x5d65f4,_0x29da43){_0x5d65f4=_0x5d65f4-0x0;let _0xef7b77=_0x29da[_0x5d65f4];return _0xef7b77;};import{View as _0xd36418}from'ckeditor5/src/ui';import{getTranslation as _0xdfc03}from'../../utils/common-translations';export default class Z extends _0xd36418{constructor(_0x439104,_0xd9034d){super(_0x439104),this[_0xef7b('0xb')]=_0xd9034d,this[_0xef7b('0x10')]=_0xd9034d['id'];const _0x4011eb=this[_0xef7b('0xa')],_0x1a4127=_0xdfc03(_0x439104,_0xd9034d[_0xef7b('0x1')][_0xef7b('0x7')]?_0xef7b('0x3'):_0xef7b('0x9')==_0xd9034d[_0xef7b('0xe')]?_0xef7b('0x5'):_0xef7b('0x2'));this[_0xef7b('0x6')](_0xef7b('0xe'),_0xd9034d[_0xef7b('0xe')]),this[_0xef7b('0xf')]({'tag':'div','attributes':{'class':['ck-annotation',_0xef7b('0x8'),_0x4011eb['to'](_0xef7b('0xe'),_0x1e5fbd=>'ck-revision-change__'+_0x1e5fbd)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':_0xef7b('0xc'),'attributes':{'class':[_0xef7b('0x0')]},'children':[{'text':_0x1a4127}]},{'text':'\x20'+_0xd9034d['author'][_0xef7b('0x4')]}]}]});}[_0xef7b('0xd')](){this['element']['focus']();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4bd1=['Show\x20next\x20change','isNavigationMode','currentChangeNumber','span','fire','_statusText','_isStatusLabelVisible','isReady','set','bindTemplate','div','isForwardNavigationEnabled','NUMBER_OF_CHANGES','execute','numberOfChanges','No\x20changes','X_OF_Y_CHANGES','isBackwardNavigationEnabled','backward','ck-hidden','EDIT_X_OF_Y_REVISIONS','ck-revision-history-ui__changes-navigation__label','ck-revision-history-ui','bind','isEnabled','ck-revision-history-ui__changes-navigation__wrapper','ck-revision-history-ui__changes-navigation__navigation'];(function(_0x4e5f71,_0x4bd1bd){const _0x5e9d27=function(_0x1b7c0c){while(--_0x1b7c0c){_0x4e5f71['push'](_0x4e5f71['shift']());}};_0x5e9d27(++_0x4bd1bd);}(_0x4bd1,0x1ad));const _0x5e9d=function(_0x4e5f71,_0x4bd1bd){_0x4e5f71=_0x4e5f71-0x0;let _0x5e9d27=_0x4bd1[_0x4e5f71];return _0x5e9d27;};import{View as _0x4df04f,ButtonView as _0x36615e,ToolbarSeparatorView as _0x3a82c7}from'ckeditor5/src/ui';import{getTranslation as _0x5dedc4}from'../../utils/common-translations';import _0x157860 from'../../../theme/icons/arrow-up.svg';import _0x26c59a from'../../../theme/icons/arrow-down.svg';import'../../../theme/changesnavigation.css';export default class bi extends _0x4df04f{constructor(_0x2c9b8a){super(_0x2c9b8a);const _0x3dab0e=this[_0x5e9d('0xc')],_0x63054b=new _0x36615e(_0x2c9b8a),_0x48252c=new _0x36615e(_0x2c9b8a);this[_0x5e9d('0xb')](_0x5e9d('0x4'),!0x1),this[_0x5e9d('0xb')]('isReady',!0x1),this[_0x5e9d('0xb')](_0x5e9d('0x5'),0x0),this['set'](_0x5e9d('0x11'),0x0),this[_0x5e9d('0xb')](_0x5e9d('0xe'),!0x1),this[_0x5e9d('0xb')](_0x5e9d('0x14'),!0x1),this[_0x5e9d('0x1a')](_0x5e9d('0x9'))['to'](this,_0x5e9d('0xa'),this,_0x5e9d('0x11'),(_0x45b59f,_0x93bb8)=>_0x45b59f&&_0x93bb8>0x0),this[_0x5e9d('0x1a')](_0x5e9d('0x8'))['to'](this,_0x5e9d('0xa'),this,_0x5e9d('0x5'),this,'numberOfChanges',this,_0x5e9d('0x4'),(_0x21ce4a,_0x521101,_0x7123b5,_0x4aee65)=>{if(!_0x21ce4a)return _0x5dedc4(_0x2c9b8a,'Loading...');if(!_0x7123b5)return _0x5dedc4(_0x2c9b8a,_0x5e9d('0x12'));const _0x28075c=_0x5dedc4(_0x2c9b8a,_0x5e9d('0xf'),_0x7123b5);return _0x4aee65?_0x5dedc4(_0x2c9b8a,_0x5e9d('0x13'),[_0x521101+0x1,_0x7123b5]):_0x28075c;}),_0x63054b['set']({'label':_0x5dedc4(_0x2c9b8a,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0x157860}),_0x48252c[_0x5e9d('0xb')]({'label':_0x5dedc4(_0x2c9b8a,_0x5e9d('0x3')),'tooltip':!0x0,'icon':_0x26c59a}),_0x63054b['bind'](_0x5e9d('0x0'))['to'](this,_0x5e9d('0x14')),_0x48252c[_0x5e9d('0x1a')](_0x5e9d('0x0'))['to'](this,_0x5e9d('0xe')),_0x63054b['on']('execute',()=>this[_0x5e9d('0x7')](_0x5e9d('0x10'),_0x5e9d('0x15'))),_0x48252c['on']('execute',()=>this[_0x5e9d('0x7')](_0x5e9d('0x10'),'forward')),this['setTemplate']({'tag':'div','attributes':{'class':['ck',_0x5e9d('0x19'),'ck-revision-history-ui__changes-navigation']},'children':[{'tag':_0x5e9d('0x6'),'attributes':{'class':[_0x5e9d('0x1')]},'children':[{'tag':_0x5e9d('0x6'),'attributes':{'class':[_0x5e9d('0x18'),_0x3dab0e['if']('_isStatusLabelVisible',_0x5e9d('0x16'),_0x23044a=>!_0x23044a)]},'children':[{'text':_0x3dab0e['to'](_0x5e9d('0x4'),_0x13fceb=>_0x13fceb?_0x5dedc4(_0x2c9b8a,_0x5e9d('0x17'))+':\x20':_0x5dedc4(_0x2c9b8a,'Total')+':\x20')}]},{'text':_0x3dab0e['to'](_0x5e9d('0x8'))}]},new _0x3a82c7(),{'tag':_0x5e9d('0xd'),'attributes':{'class':[_0x5e9d('0x2')]},'children':[_0x63054b,_0x48252c]}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x21a1=['view','document','ck-editor__editable__loading-overlay','addClass','roots','removeClass','RevisionViewerLoadingOverlay','change','show','hide','editing','editor'];(function(_0x380ccf,_0x21a142){const _0x223630=function(_0x128855){while(--_0x128855){_0x380ccf['push'](_0x380ccf['shift']());}};_0x223630(++_0x21a142);}(_0x21a1,0x14f));const _0x2236=function(_0x380ccf,_0x21a142){_0x380ccf=_0x380ccf-0x0;let _0x223630=_0x21a1[_0x380ccf];return _0x223630;};import{Plugin as _0x2432ea}from'ckeditor5/src/core';const oe=_0x2236('0x3');import'../../../theme/revisionviewerloadingoverlay.css';export default class te extends _0x2432ea{static get['pluginName'](){return _0x2236('0x7');}[_0x2236('0x9')](){const _0x4121cd=this[_0x2236('0x0')][_0x2236('0xb')][_0x2236('0x1')];_0x4121cd[_0x2236('0x8')](_0x18961a=>{for(const _0x3d0c69 of _0x4121cd[_0x2236('0x2')]['roots'])_0x18961a[_0x2236('0x4')](oe,_0x3d0c69);});}[_0x2236('0xa')](){const _0x5ae603=this[_0x2236('0x0')][_0x2236('0xb')][_0x2236('0x1')];_0x5ae603[_0x2236('0x8')](_0x8cc353=>{for(const _0xd58057 of _0x5ae603[_0x2236('0x2')][_0x2236('0x5')])_0x8cc353[_0x2236('0x6')](oe,_0xd58057);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x6eb6=['requires','isEnabled','RevisionViewerUI','hide','isForwardNavigationEnabled','show','currentChangeNumber','exitToEditing','bind','commands','execute','componentFactory','isReady','revisionHistory','ck-revision-history-ui__back-to-editing','Back\x20to\x20editing','add','plugins','listenTo','restoreRevision','isBackwardNavigationEnabled','closeRevisionViewerCallback','numberOfChanges','editor','init','showNextChange','set','change:isReady','get'];(function(_0x523690,_0x6eb610){const _0x740955=function(_0x2af553){while(--_0x2af553){_0x523690['push'](_0x523690['shift']());}};_0x740955(++_0x6eb610);}(_0x6eb6,0x1bd));const _0x7409=function(_0x523690,_0x6eb610){_0x523690=_0x523690-0x0;let _0x740955=_0x6eb6[_0x523690];return _0x740955;};import{Plugin as _0x199062}from'ckeditor5/src/core';import{ButtonView as _0x22e526}from'ckeditor5/src/ui';import _0x234c1d from'./changesnavigationview';import _0x43b210 from'./../../revisionviewer';import _0x393629 from'./revisionviewerloadingoverlay';import{getTranslation as _0x16da4b}from'../../utils/common-translations';import _0x249d35 from'@ckeditor/ckeditor5-undo/theme/icons/undo.svg';import'../../../theme/revisionviewer.css';export default class R extends _0x199062{static get['pluginName'](){return _0x7409('0x15');}static get[_0x7409('0x13')](){return[_0x43b210,_0x393629];}[_0x7409('0xe')](){const _0xbb19a3=this[_0x7409('0xd')],_0x2fec70=_0xbb19a3[_0x7409('0x7')][_0x7409('0x12')](_0x43b210),_0x3f72be=_0xbb19a3[_0x7409('0x7')][_0x7409('0x12')](_0x393629);_0xbb19a3['ui']['componentFactory'][_0x7409('0x6')](_0x7409('0x1a'),_0x33b64d=>{const _0x5aa12e=new _0x22e526(_0x33b64d);return _0x5aa12e['set']({'label':_0x16da4b(_0x33b64d,_0x7409('0x5')),'icon':_0x249d35,'withText':!0x0,'tooltip':!0x0,'class':_0x7409('0x4')}),this[_0x7409('0x8')](_0x5aa12e,_0x7409('0x0'),()=>{_0xbb19a3['config']['get'](_0x7409('0x3'))[_0x7409('0xb')]();}),_0x5aa12e;}),_0xbb19a3['ui']['componentFactory'][_0x7409('0x6')](_0x7409('0x9'),_0x11c5ce=>{const _0x4ec53b=new _0x22e526(_0x11c5ce);return _0x4ec53b[_0x7409('0x10')]({'label':_0x16da4b(_0x11c5ce,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x4ec53b[_0x7409('0x1b')](_0x7409('0x14'))['to'](_0xbb19a3[_0x7409('0x1c')][_0x7409('0x12')](_0x7409('0x9'))),this[_0x7409('0x8')](_0x4ec53b,_0x7409('0x0'),()=>_0xbb19a3['execute'](_0x7409('0x9'))),_0x4ec53b;}),_0xbb19a3['ui'][_0x7409('0x1')][_0x7409('0x6')]('changesNavigation',_0x4db7b6=>{const _0x5dc746=new _0x234c1d(_0x4db7b6),_0x3e5306=_0xbb19a3[_0x7409('0x1c')]['get']('showPreviousChange'),_0x326bfe=_0xbb19a3[_0x7409('0x1c')][_0x7409('0x12')]('showNextChange');return _0x5dc746[_0x7409('0x1b')](_0x7409('0xa'))['to'](_0x3e5306,_0x7409('0x14')),_0x5dc746[_0x7409('0x1b')](_0x7409('0x17'))['to'](_0x326bfe,'isEnabled'),_0x5dc746[_0x7409('0x1b')](_0x7409('0x2'),_0x7409('0x19'),_0x7409('0xc'),'isNavigationMode')['to'](_0x2fec70),this[_0x7409('0x8')](_0x5dc746,'execute',(_0x122962,_0x2f7b12)=>{_0xbb19a3[_0x7409('0x0')]('forward'===_0x2f7b12?_0x7409('0xf'):'showPreviousChange');}),_0x5dc746;}),_0x3f72be[_0x7409('0x18')](),_0x2fec70['on'](_0x7409('0x11'),(_0x10400c,_0x319719,_0x5e9bd4)=>{_0x5e9bd4?_0x3f72be[_0x7409('0x16')]():_0x3f72be['show']();});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export function getTranslation(
|
|
23
|
+
export function getTranslation(_0x262d6a,_0x9e3eda,_0x3cee2f){const t=_0x262d6a['t'];switch(_0x9e3eda){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'},_0x3cee2f);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x3cee2f);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 _0x9e3eda;}}
|