@ckeditor/ckeditor5-revision-history 35.3.0 → 35.3.1
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 +7 -7
- 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 _0x2ab2=['cancel','add','RevisionTracker','Save\x20current\x20revision','componentFactory','plugins','get','RevisionHistoryUI','init','isEnabled','length','bind','isReadOnly','buttonView','isReady','view','pluginName','remove','editor','focus','render','panelView','editing','submit','Open\x20revision\x20history','revisionHistory','config','showRevisionViewerCallback','children','requires','execute','set'];(function(_0x3cedd6,_0x2ab2f6){const _0x2f022e=function(_0x3d9597){while(--_0x3d9597){_0x3cedd6['push'](_0x3cedd6['shift']());}};_0x2f022e(++_0x2ab2f6);}(_0x2ab2,0x164));const _0x2f02=function(_0x3cedd6,_0x2ab2f6){_0x3cedd6=_0x3cedd6-0x0;let _0x2f022e=_0x2ab2[_0x3cedd6];return _0x2f022e;};import{Plugin as _0x4d1335}from'ckeditor5/src/core';import{ListView as _0x7ef3a2,ListItemView as _0x5e537c,ButtonView as _0x19648e,createDropdown as _0x255fb0}from'ckeditor5/src/ui';import _0x1df127 from'../../revisiontracker';import _0x5538cb from'./revisionhistorysaverevisionformview';import _0x167d35 from'../../../theme/icons/revision-history.svg';import{getTranslation as _0x2f20cb}from'../../utils/common-translations';export default class R extends _0x4d1335{static get[_0x2f02('0xc')](){return _0x2f02('0x3');}static get[_0x2f02('0x19')](){return[_0x1df127];}[_0x2f02('0x4')](){const _0x51f416=this[_0x2f02('0xe')],_0x4d0d19=_0x51f416[_0x2f02('0x1')][_0x2f02('0x2')](_0x2f02('0x1e'));_0x51f416['ui'][_0x2f02('0x0')]['add']('revisionHistory',_0x105554=>{const _0x7a05eb=_0x255fb0(_0x105554),_0x1ee792=_0x7a05eb[_0x2f02('0x11')][_0x2f02('0x18')],_0x201d4e=new _0x7ef3a2(_0x105554),_0xa73f54=new _0x5e537c(_0x105554),_0x5e8b58=new _0x19648e(_0x105554),_0x27d070=new _0x5e537c(_0x105554),_0x1e567a=new _0x19648e(_0x105554),_0x1444c=new _0x5538cb(_0x105554);function _0x2950ad(){_0x1ee792[_0x2f02('0x6')]&&_0x1ee792[_0x2f02('0xd')](0x0),_0x1ee792[_0x2f02('0x1d')](_0x201d4e);}function _0xe3afbc(){_0x7a05eb['isOpen']=!0x1,_0x51f416[_0x2f02('0x12')][_0x2f02('0xb')][_0x2f02('0xf')]();}return _0x7a05eb[_0x2f02('0x7')](_0x2f02('0x5'))['to'](_0x4d0d19,_0x2f02('0xa'),_0x4d0d19,_0x2f02('0x5'),_0x51f416,_0x2f02('0x8'),(_0x323c94,_0x5af138,_0x5c22b0)=>_0x323c94&&_0x5af138&&!_0x5c22b0),_0x7a05eb[_0x2f02('0x9')][_0x2f02('0x1b')]({'icon':_0x167d35,'label':_0x2f20cb(_0x105554,'Revision\x20history'),'tooltip':!0x0}),_0x5e8b58[_0x2f02('0x1b')]({'label':_0x2f20cb(_0x105554,_0x2f02('0x1f')),'withText':!0x0}),_0x5e8b58[_0x2f02('0x7')](_0x2f02('0x5'))['to'](_0x4d0d19,_0x2f02('0xa'),_0x4d0d19,_0x2f02('0x5'),_0x51f416,_0x2f02('0x8'),(_0x7fff9,_0x1b4756,_0x5668f4)=>_0x7fff9&&_0x1b4756&&!_0x5668f4),_0x5e8b58['on'](_0x2f02('0x1a'),()=>function(){_0x1ee792[_0x2f02('0x6')]&&_0x1ee792['remove'](0x0),(_0x1444c['reset'](),_0x1ee792['add'](_0x1444c),_0x1444c['focus']());}()),_0x1e567a[_0x2f02('0x1b')]({'label':_0x2f20cb(_0x105554,_0x2f02('0x14')),'withText':!0x0}),_0x1e567a['bind'](_0x2f02('0x5'))['to'](_0x4d0d19,'isReady',_0x51f416,_0x2f02('0x8'),(_0xb82a28,_0x9b9213)=>_0xb82a28&&!_0x9b9213),_0x1e567a['on'](_0x2f02('0x1a'),()=>{_0x51f416[_0x2f02('0x16')]['get'](_0x2f02('0x15'))[_0x2f02('0x17')](),_0xe3afbc();}),_0xa73f54['children'][_0x2f02('0x1d')](_0x5e8b58),_0x27d070[_0x2f02('0x18')]['add'](_0x1e567a),_0x201d4e['items']['addMany']([_0xa73f54,_0x27d070]),_0x7a05eb['on']('change:isOpen',()=>_0x2950ad()),_0x1444c['saveButtonView'][_0x2f02('0x7')](_0x2f02('0x5'))['to'](_0x4d0d19,'isReady',_0x4d0d19,'isEnabled',_0x51f416,'isReadOnly',(_0x568e63,_0xc04abb,_0x14dfa5)=>_0x568e63&&_0xc04abb&&!_0x14dfa5),_0x1444c['on'](_0x2f02('0x13'),()=>(_0x51f416[_0x2f02('0x1')]['get'](_0x1df127)['saveRevision']({'name':_0x1444c['revisionName']}),void _0xe3afbc())),_0x1444c['on'](_0x2f02('0x1c'),()=>_0x2950ad()),_0x1444c[_0x2f02('0x10')](),_0x2950ad(),_0x7a05eb;});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1a70=['change:diff','_handleEditorDataReady','defaultRevisionActions','selectRevision','diff','restoreRevision','config','getRevisionsInDiff','revisionHistory.viewerSidebarContainer','pluginName','repository','highlightRevisions','revisionSetName','nameRevision','editor','revisionHistory.revisionActions','isReady','focus','ready','_revisionsRepository','bind','Name\x20this\x20revision','revisionViews','_handleDiffChange','_handleRevisionSetName','isVisible','_revisionViewer','length','data','map','requires','element','locale','getLaterVisibleRevision','assign','restoreRevisionCallback','setName','plugins','action','newRevisionId','getEarlierVisibleRevision','compareAgainstSelected','get','add','string','init','destroy','_sidebarView','isEnabled','_handleRevisionSelected','compare','_revisions','getRevision','listenTo','appendChild','render','RevisionsSidebar','Restore\x20this\x20revision','_createRevisionActions','timePeriodViews','getIndex','revisionSelected','select'];(function(_0x4e4873,_0x1a707f){const _0x4c0626=function(_0x2cd08a){while(--_0x2cd08a){_0x4e4873['push'](_0x4e4873['shift']());}};_0x4c0626(++_0x1a707f);}(_0x1a70,0x1ad));const _0x4c06=function(_0x4e4873,_0x1a707f){_0x4e4873=_0x4e4873-0x0;let _0x4c0626=_0x1a70[_0x4e4873];return _0x4c0626;};import{Plugin as _0x406b1f}from'ckeditor5/src/core';import _0x38c602 from'./revisionssidebarview';import _0x335493 from'../../revisionviewer';export default class y extends _0x406b1f{static get[_0x4c06('0x15')](){return _0x4c06('0x5');}static get[_0x4c06('0x2a')](){return[_0x335493];}constructor(_0x4312e2){super(_0x4312e2),this[_0x4c06('0x26')]=_0x4312e2[_0x4c06('0x31')]['get'](_0x335493),this[_0x4c06('0x1f')]=this[_0x4c06('0x26')][_0x4c06('0x16')],this[_0x4c06('0x3b')]=null;}[_0x4c06('0x39')](){const _0x85d7a4=this[_0x4c06('0x1f')][_0x4c06('0x0')],_0x3df907=this[_0x4c06('0x7')](),_0x26f843=this[_0x4c06('0x1a')][_0x4c06('0x12')]['get'](_0x4c06('0x14'));this[_0x4c06('0x3b')]=new _0x38c602(this[_0x4c06('0x1a')][_0x4c06('0x2c')],_0x85d7a4,_0x3df907),this['_sidebarView']['on'](_0x4c06('0xa'),this[_0x4c06('0x3d')][_0x4c06('0x20')](this)),this[_0x4c06('0x3b')]['on'](_0x4c06('0x18'),this[_0x4c06('0x24')]['bind'](this)),this[_0x4c06('0x3b')][_0x4c06('0x20')](_0x4c06('0x3c'))['to'](this[_0x4c06('0x26')]),this[_0x4c06('0x3b')][_0x4c06('0x8')]['on'](_0x4c06('0x37'),(_0x2b44b9,_0xd07be3)=>{_0xd07be3[_0x4c06('0x22')]['on'](_0x4c06('0x37'),(_0x33e38c,_0x237704)=>{_0x237704['bind'](_0x4c06('0x3c'),_0x4c06('0x1c'))['to'](this['_revisionViewer']);});}),this[_0x4c06('0x3b')][_0x4c06('0x4')](),this[_0x4c06('0x2')](this[_0x4c06('0x1a')][_0x4c06('0x28')],_0x4c06('0x1e'),this[_0x4c06('0xd')][_0x4c06('0x20')](this)),this['listenTo'](this[_0x4c06('0x26')],_0x4c06('0xc'),this[_0x4c06('0x23')][_0x4c06('0x20')](this)),_0x26f843[_0x4c06('0x3')](this['_sidebarView'][_0x4c06('0x2b')]);}['destroy'](){this[_0x4c06('0x3b')][_0x4c06('0x2b')]['remove'](),this[_0x4c06('0x3b')][_0x4c06('0x3a')]();}[_0x4c06('0xd')](){const _0x5a9b38=this[_0x4c06('0x1f')][_0x4c06('0x1')](0x0);if(_0x5a9b38){const _0x153731=this[_0x4c06('0x1f')][_0x4c06('0x34')](_0x5a9b38['id']);this[_0x4c06('0x26')][_0x4c06('0x3e')](_0x5a9b38,_0x153731);}}[_0x4c06('0x3d')](_0x21183e,_0x3d7478){const _0x5155c9=this[_0x4c06('0x1f')][_0x4c06('0x1')](_0x3d7478['id']),_0x5ac79c=this[_0x4c06('0x1f')][_0x4c06('0x34')](_0x5155c9['id']);this[_0x4c06('0x26')][_0x4c06('0x3e')](_0x5155c9,_0x5ac79c);}[_0x4c06('0x24')](_0x111923,_0x1d3f97){this[_0x4c06('0x1f')][_0x4c06('0x1')](_0x1d3f97['id'])[_0x4c06('0x30')](_0x1d3f97['name']);}['_handleDiffChange'](_0x391b66,_0x36413c,_0x917956){const _0x19b059=this['_revisionsRepository'][_0x4c06('0x13')](_0x917956);_0x19b059['length']>0x2?(this[_0x4c06('0x3b')][_0x4c06('0x17')](_0x19b059),this[_0x4c06('0x3b')][_0x4c06('0xf')](null)):(this[_0x4c06('0x3b')][_0x4c06('0x17')]([]),this['_sidebarView']['selectRevision'](_0x19b059[0x0]));}[_0x4c06('0x7')](){const _0xe63238=this[_0x4c06('0x1a')],_0x4149cf=y['availableRevisionActions'],_0x34ad76=_0xe63238[_0x4c06('0x12')][_0x4c06('0x36')](_0x4c06('0x1b'))||y[_0x4c06('0xe')];if(_0x34ad76[_0x4c06('0x27')])return _0x34ad76[_0x4c06('0x29')](_0x1fe8ca=>{const _0x213ffb=_0x4c06('0x38')==typeof _0x1fe8ca?Object[_0x4c06('0x2e')]({},_0x4149cf[_0x1fe8ca]):_0x1fe8ca;return _0x213ffb[_0x4c06('0x32')]=_0x213ffb[_0x4c06('0x32')][_0x4c06('0x20')](this,_0xe63238),_0x213ffb[_0x4c06('0x25')]&&(_0x213ffb['isVisible']=_0x213ffb[_0x4c06('0x25')][_0x4c06('0x20')](this,_0xe63238)),_0x213ffb;});}}y['availableRevisionActions']={'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x563705},_0x36de1b)=>{const _0x58121a=_0x563705[_0x4c06('0x36')](_0x335493),_0x50b82d=_0x58121a[_0x4c06('0x16')];let _0x1409c7=_0x58121a['diff'][_0x4c06('0x33')],_0x4e3d8e=_0x36de1b['id'];_0x50b82d[_0x4c06('0x9')](_0x1409c7)>_0x50b82d[_0x4c06('0x9')](_0x4e3d8e)&&([_0x1409c7,_0x4e3d8e]=[_0x4e3d8e,_0x1409c7]),_0x58121a[_0x4c06('0x3e')](_0x1409c7,_0x4e3d8e);},'isVisible':({plugins:_0x4152a7},_0x1f9379)=>{const _0x167522=_0x4152a7[_0x4c06('0x36')](_0x335493);return!(_0x167522[_0x4c06('0x16')][_0x4c06('0x13')](_0x167522[_0x4c06('0x10')])['length']>0x2)&&!_0x1f9379['isSelected'];}},'restoreRevision':{'name':_0x4c06('0x6'),'action':(_0x3ac28c,{id:_0x5a24b2})=>{_0x3ac28c[_0x4c06('0x12')]['get']('revisionHistory')[_0x4c06('0x2f')](_0x5a24b2);},'isVisible':({plugins:_0x3c61d3},_0x5a002e)=>!!_0x3c61d3[_0x4c06('0x36')](_0x335493)[_0x4c06('0x16')][_0x4c06('0x2d')](_0x5a002e['id'])},'nameRevision':{'name':_0x4c06('0x21'),'action':({plugins:_0x77c1a1},{id:_0x568599,revisionNameView:_0x460b2f})=>{const _0xf133e1=_0x77c1a1['get'](_0x335493),_0xc5ef6a=_0xf133e1[_0x4c06('0x16')]['getEarlierVisibleRevision'](_0x568599);_0xf133e1['compare'](_0x568599,_0xc5ef6a),_0x460b2f[_0x4c06('0x1d')](),_0x460b2f['fieldView'][_0x4c06('0xb')]();}}},y[_0x4c06('0xe')]=[_0x4c06('0x35'),_0x4c06('0x11'),_0x4c06('0x19')];
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x9eea=['span','ck-reset_all','ck-revision-history-sidebar__header__label','div','content','Revision\x20history','setTemplate'];(function(_0x4a47b4,_0x9eea25){const _0x40e4fd=function(_0x358a9a){while(--_0x358a9a){_0x4a47b4['push'](_0x4a47b4['shift']());}};_0x40e4fd(++_0x9eea25);}(_0x9eea,0x19c));const _0x40e4=function(_0x4a47b4,_0x9eea25){_0x4a47b4=_0x4a47b4-0x0;let _0x40e4fd=_0x9eea[_0x4a47b4];return _0x40e4fd;};import{View as _0x1d7513,IconView as _0x3fb1a9}from'ckeditor5/src/ui';import{getTranslation as _0x47a635}from'../../utils/common-translations';import _0x208a29 from'../../../theme/icons/revision-history.svg';import'../../../theme/revisionssidebar/revisionssidebarheader.css';export default class cs extends _0x1d7513{constructor(_0x48924c){super(_0x48924c);const _0x4b7424=new _0x3fb1a9(_0x48924c);_0x4b7424[_0x40e4('0x5')]=_0x208a29,this[_0x40e4('0x0')]({'tag':_0x40e4('0x4'),'attributes':{'class':['ck',_0x40e4('0x2'),'ck-revision-history-sidebar__header']},'children':[_0x4b7424,{'tag':_0x40e4('0x1'),'attributes':{'class':['ck',_0x40e4('0x3')]},'children':[_0x47a635(_0x48924c,_0x40e4('0x6'))]}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1cee=['ck-revision-history-sidebar__time-period','_revisionActions','find','createCollection','remove','startDate','setName','delegate','ck-revision-history-sidebar__time-period__label','locale','div','setTemplate','localizedPeriodName','add','addRevision','revisionViews','uiLanguage','span'];(function(_0x131d1c,_0x1cee04){const _0x489474=function(_0x35a99b){while(--_0x35a99b){_0x131d1c['push'](_0x131d1c['shift']());}};_0x489474(++_0x1cee04);}(_0x1cee,0xb4));const _0x4894=function(_0x131d1c,_0x1cee04){_0x131d1c=_0x131d1c-0x0;let _0x489474=_0x1cee[_0x131d1c];return _0x489474;};import{View as _0x3b036f}from'ckeditor5/src/ui';import _0x41d1cb from'../revision/revisionview';import{getDateTimePeriodInfo as _0x572c52}from'./utils';import'../../../theme/revisionssidebar/revisionssidebartimeperiod.css';export default class pi extends _0x3b036f{constructor(_0x274154,_0x270a4a,_0x59237a){super(_0x274154);const _0x2821bd=_0x572c52(_0x270a4a,this[_0x4894('0x9')][_0x4894('0x10')])[_0x4894('0xc')];this[_0x4894('0x5')]=_0x270a4a,this[_0x4894('0x1')]=_0x59237a,this['revisionViews']=this[_0x4894('0x3')](),this['revisionViews'][_0x4894('0x7')]('select')['to'](this),this['revisionViews'][_0x4894('0x7')](_0x4894('0x6'))['to'](this),this[_0x4894('0xb')]({'tag':_0x4894('0xa'),'attributes':{'class':['ck',_0x4894('0x0')]},'children':[{'tag':_0x4894('0x11'),'attributes':{'class':['ck',_0x4894('0x8')]},'children':[{'text':_0x2821bd}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this[_0x4894('0xf')]}]});}[_0x4894('0xe')](_0xd577e3){const _0x119463=new _0x41d1cb(this[_0x4894('0x9')],_0xd577e3,this[_0x4894('0x1')]);this[_0x4894('0xf')][_0x4894('0xd')](_0x119463);}['removeRevision'](_0x526123){const _0x47041c=this[_0x4894('0xf')][_0x4894('0x2')](_0xb71ae9=>_0xb71ae9['id']===_0x526123['id']);this[_0x4894('0xf')][_0x4894('0x4')](_0x47041c);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4061=['isEnabled','removeRevision','revisionViews','render','div','deselect','fire','startDate','add','_revisions','timePeriodViews','find','map','addRevision','setTemplate','ck-revision-history-sidebar','setName','createdAt','createCollection','highlight','getTime','some','highlightRevisions','ck-revision-history-sidebar__timeline','ck-disabled','set','flat','locale','_addRevision','_getTimePeriodViewByStartDate','revisionSelected','bindTemplate','ck-reset','select','revisionSetName','delegate'];(function(_0x1feb29,_0x406153){const _0x16ec94=function(_0x2dfd88){while(--_0x2dfd88){_0x1feb29['push'](_0x1feb29['shift']());}};_0x16ec94(++_0x406153);}(_0x4061,0xea));const _0x16ec=function(_0x1feb29,_0x406153){_0x1feb29=_0x1feb29-0x0;let _0x16ec94=_0x4061[_0x1feb29];return _0x16ec94;};import{View as _0x24de18}from'ckeditor5/src/ui';import _0x43be3c from'./revisionssidebartimeperiodview';import _0x3ff523 from'./revisionssidebarheaderview';import{getDateTimePeriodInfo as _0x3ca774}from'./utils';import'../../../theme/revisionssidebar/revisionssidebar.css';export default class vi extends _0x24de18{constructor(_0x1b29ff,_0x4b0af7,_0x303279){super(_0x1b29ff);const _0x5c9528=this[_0x16ec('0xd')];this[_0x16ec('0x1c')]=this[_0x16ec('0x0')](),this[_0x16ec('0x1c')][_0x16ec('0x11')]('select')['to'](this),this[_0x16ec('0x1c')]['delegate'](_0x16ec('0x22'))['to'](this),this['_revisions']=_0x4b0af7,this['_revisionActions']=_0x303279,this['on']('select',(_0x4ee50d,_0x307de6)=>{this['fire'](_0x16ec('0xc'),_0x307de6);}),this['on'](_0x16ec('0x22'),(_0x47a8a1,_0x32313f)=>{this[_0x16ec('0x18')](_0x16ec('0x10'),_0x32313f);}),this[_0x16ec('0x7')]('isEnabled',!0x1),this[_0x16ec('0x20')]({'tag':_0x16ec('0x16'),'attributes':{'class':['ck',_0x16ec('0xe'),'ck-rounded-corners',_0x16ec('0x21')]},'children':[new _0x3ff523(_0x1b29ff),{'tag':_0x16ec('0x16'),'attributes':{'class':['ck',_0x16ec('0x5'),_0x5c9528['if'](_0x16ec('0x12'),_0x16ec('0x6'),_0x4b6cca=>!_0x4b6cca)]},'children':this[_0x16ec('0x1c')]}]});}[_0x16ec('0x15')](){super[_0x16ec('0x15')]();for(const _0x40f40f of this[_0x16ec('0x1b')])this['_addRevision'](_0x40f40f);this[_0x16ec('0x1b')]['on'](_0x16ec('0x1a'),(_0x45c2cc,_0x4341fe)=>{this[_0x16ec('0xa')](_0x4341fe);}),this['_revisions']['on']('remove',(_0x37f61f,_0x3b5066)=>{this['_removeRevision'](_0x3b5066);});}get[_0x16ec('0x14')](){return this[_0x16ec('0x1c')][_0x16ec('0x1e')](_0x3e9a9d=>_0x3e9a9d['revisionViews'][_0x16ec('0x1e')](_0x178b5d=>_0x178b5d))[_0x16ec('0x8')]();}['selectRevision'](_0x593a84){for(const _0x4b27ff of this['revisionViews'])_0x593a84&&_0x593a84['id']===_0x4b27ff['id']?_0x4b27ff[_0x16ec('0xf')]():_0x4b27ff[_0x16ec('0x17')]();}[_0x16ec('0x4')](_0x1eeaba){for(const _0x382057 of this[_0x16ec('0x14')])_0x1eeaba[_0x16ec('0x3')](({id:_0x2fbc4f})=>_0x2fbc4f===_0x382057['id'])?_0x382057[_0x16ec('0x1')]():_0x382057['unhighlight']();}[_0x16ec('0xa')](_0x3f9faa){const _0x28cbfc=_0x3ca774(_0x3f9faa[_0x16ec('0x23')])[_0x16ec('0x19')];let _0x451124=this[_0x16ec('0x1c')]['get'](0x0);_0x451124&&_0x451124['startDate']['getTime']()===_0x28cbfc[_0x16ec('0x2')]()||(_0x451124=new _0x43be3c(this[_0x16ec('0x9')],_0x28cbfc,this['_revisionActions']),this[_0x16ec('0x1c')][_0x16ec('0x1a')](_0x451124)),_0x451124[_0x16ec('0x1f')](_0x3f9faa);}['_removeRevision'](_0x4964c7){const _0x172681=_0x3ca774(_0x4964c7['createdAt'])[_0x16ec('0x19')];this[_0x16ec('0xb')](_0x172681)[_0x16ec('0x13')](_0x4964c7);}[_0x16ec('0xb')](_0x29ae25){return this[_0x16ec('0x1c')][_0x16ec('0x1d')](_0x3666e6=>_0x3666e6['startDate'][_0x16ec('0x2')]()===_0x29ae25[_0x16ec('0x2')]());}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2bc3=['local','minus','month','toJSDate','weekdayLong','hasSame','day','year','startOf','toRelativeCalendar','week'];(function(_0x2433d5,_0x2bc35f){const _0x596e40=function(_0x3b2d8c){while(--_0x3b2d8c){_0x2433d5['push'](_0x2433d5['shift']());}};_0x596e40(++_0x2bc35f);}(_0x2bc3,0xfc));const _0x596e=function(_0x2433d5,_0x2bc35f){_0x2433d5=_0x2433d5-0x0;let _0x596e40=_0x2bc3[_0x2433d5];return _0x596e40;};import{DateTime as _0x366f2d}from'luxon';export function getDateTimePeriodInfo(_0x339ab1,_0x26bdc9){_0x339ab1=_0x366f2d['fromJSDate'](_0x339ab1)['setLocale'](_0x26bdc9);const _0x2f0ad9=_0x366f2d[_0x596e('0x1')](),_0x2d20f7=_0x2f0ad9[_0x596e('0x2')]({'days':0x1})[_0x596e('0x9')](_0x596e('0x7'));let _0x5661e7,_0x195c16;return _0x339ab1[_0x596e('0x6')](_0x2f0ad9,_0x596e('0x7'))?(_0x5661e7=_0x339ab1[_0x596e('0x9')](_0x596e('0x7'))[_0x596e('0x4')](),_0x195c16=_0x339ab1['toRelativeCalendar']()):_0x339ab1[_0x596e('0x6')](_0x2d20f7,_0x596e('0x7'))?(_0x5661e7=_0x2d20f7[_0x596e('0x4')](),_0x195c16=_0x339ab1[_0x596e('0xa')]()):_0x339ab1[_0x596e('0x6')](_0x2f0ad9,_0x596e('0x0'))?(_0x5661e7=_0x339ab1[_0x596e('0x9')](_0x596e('0x0'))['toJSDate'](),_0x195c16=_0x339ab1[_0x596e('0x5')]):_0x339ab1[_0x596e('0x6')](_0x2f0ad9,_0x596e('0x8'))?(_0x5661e7=_0x339ab1['startOf'](_0x596e('0x3'))[_0x596e('0x4')](),_0x195c16=_0x339ab1['monthLong']):(_0x5661e7=_0x339ab1[_0x596e('0x9')](_0x596e('0x8'))['toJSDate'](),_0x195c16=_0x339ab1['year']),{'startDate':_0x5661e7,'localizedPeriodName':_0x195c16};}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1276=['ck-revision-change','Suggested\x20by','ck-annotation','author','set','add','isSuggestion','Added\x20by','bindTemplate','name','_model','Removed\x20by','span','type','element','focus','div','setTemplate','ck-revision-change__label'];(function(_0xe77bad,_0x127614){const _0x447c89=function(_0x20d4a0){while(--_0x20d4a0){_0xe77bad['push'](_0xe77bad['shift']());}};_0x447c89(++_0x127614);}(_0x1276,0xa0));const _0x447c=function(_0xe77bad,_0x127614){_0xe77bad=_0xe77bad-0x0;let _0x447c89=_0x1276[_0xe77bad];return _0x447c89;};import{View as _0x5878ca}from'ckeditor5/src/ui';import{getTranslation as _0x517611}from'../../utils/common-translations';export default class X extends _0x5878ca{constructor(_0x213186,_0x5816e9){super(_0x213186),this[_0x447c('0x2')]=_0x5816e9;const _0x49553e=this[_0x447c('0x0')],_0x53544a=_0x517611(_0x213186,_0x5816e9['data'][_0x447c('0x11')]?_0x447c('0xc'):_0x447c('0x10')==_0x5816e9['type']?_0x447c('0x12'):_0x447c('0x3'));this[_0x447c('0xf')]('type',_0x5816e9[_0x447c('0x5')]),this[_0x447c('0x9')]({'tag':_0x447c('0x8'),'attributes':{'class':[_0x447c('0xd'),_0x447c('0xb'),_0x49553e['to'](_0x447c('0x5'),_0x59e473=>'ck-revision-change__'+_0x59e473)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':_0x447c('0x4'),'attributes':{'class':[_0x447c('0xa')]},'children':[{'text':_0x53544a}]},{'text':'\x20'+_0x5816e9[_0x447c('0xe')][_0x447c('0x1')]}]}]});}[_0x447c('0x7')](){this[_0x447c('0x6')][_0x447c('0x7')]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5939=['_isStatusLabelVisible','No\x20changes','isForwardNavigationEnabled','set','ck-revision-history-ui','Total','fire','ck-revision-history-ui__changes-navigation','isEnabled','Loading...','execute','isBackwardNavigationEnabled','Show\x20next\x20change','numberOfChanges','NUMBER_OF_CHANGES','ck-hidden','X_OF_Y_CHANGES','setTemplate','ck-revision-history-ui__changes-navigation__navigation','ck-revision-history-ui__changes-navigation__label','isNavigationMode','_statusText','span','isReady','bindTemplate','bind','div'];(function(_0x1a7ca9,_0x5939f9){const _0x4737d6=function(_0x5312cc){while(--_0x5312cc){_0x1a7ca9['push'](_0x1a7ca9['shift']());}};_0x4737d6(++_0x5939f9);}(_0x5939,0xd3));const _0x4737=function(_0x1a7ca9,_0x5939f9){_0x1a7ca9=_0x1a7ca9-0x0;let _0x4737d6=_0x5939[_0x1a7ca9];return _0x4737d6;};import{View as _0x2f5f17,ButtonView as _0x2fdef8,ToolbarSeparatorView as _0x111d8f}from'ckeditor5/src/ui';import{getTranslation as _0x14ca2f}from'../../utils/common-translations';import _0xafbe5d from'../../../theme/icons/arrow-up.svg';import _0x5130ec from'../../../theme/icons/arrow-down.svg';import'../../../theme/changesnavigation.css';export default class bi extends _0x2f5f17{constructor(_0xe30649){super(_0xe30649);const _0x222bb9=this[_0x4737('0x2')],_0x5a0d13=new _0x2fdef8(_0xe30649),_0x29e13b=new _0x2fdef8(_0xe30649);this[_0x4737('0x8')]('isNavigationMode',!0x1),this[_0x4737('0x8')](_0x4737('0x1'),!0x1),this['set']('currentChangeNumber',0x0),this[_0x4737('0x8')](_0x4737('0x12'),0x0),this[_0x4737('0x8')]('isForwardNavigationEnabled',!0x1),this[_0x4737('0x8')](_0x4737('0x10'),!0x1),this[_0x4737('0x3')](_0x4737('0x5'))['to'](this,_0x4737('0x1'),this,_0x4737('0x12'),(_0x77f258,_0x26513d)=>_0x77f258&&_0x26513d>0x0),this[_0x4737('0x3')](_0x4737('0x1a'))['to'](this,_0x4737('0x1'),this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x48ad42,_0x221fde,_0x4b2b65,_0x51021f)=>{if(!_0x48ad42)return _0x14ca2f(_0xe30649,_0x4737('0xe'));if(!_0x4b2b65)return _0x14ca2f(_0xe30649,_0x4737('0x6'));const _0x9c1bb3=_0x14ca2f(_0xe30649,_0x4737('0x13'),_0x4b2b65);return _0x51021f?_0x14ca2f(_0xe30649,_0x4737('0x15'),[_0x221fde+0x1,_0x4b2b65]):_0x9c1bb3;}),_0x5a0d13[_0x4737('0x8')]({'label':_0x14ca2f(_0xe30649,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0xafbe5d}),_0x29e13b[_0x4737('0x8')]({'label':_0x14ca2f(_0xe30649,_0x4737('0x11')),'tooltip':!0x0,'icon':_0x5130ec}),_0x5a0d13['bind'](_0x4737('0xd'))['to'](this,_0x4737('0x10')),_0x29e13b[_0x4737('0x3')](_0x4737('0xd'))['to'](this,_0x4737('0x7')),_0x5a0d13['on'](_0x4737('0xf'),()=>this[_0x4737('0xb')]('execute','backward')),_0x29e13b['on'](_0x4737('0xf'),()=>this[_0x4737('0xb')](_0x4737('0xf'),'forward')),this[_0x4737('0x16')]({'tag':_0x4737('0x4'),'attributes':{'class':['ck',_0x4737('0x9'),_0x4737('0xc')]},'children':[{'tag':_0x4737('0x0'),'attributes':{'class':['ck-revision-history-ui__changes-navigation__wrapper']},'children':[{'tag':_0x4737('0x0'),'attributes':{'class':[_0x4737('0x18'),_0x222bb9['if'](_0x4737('0x5'),_0x4737('0x14'),_0x5cbfad=>!_0x5cbfad)]},'children':[{'text':_0x222bb9['to'](_0x4737('0x19'),_0x52a8dd=>_0x52a8dd?_0x14ca2f(_0xe30649,'EDIT_X_OF_Y_REVISIONS')+':\x20':_0x14ca2f(_0xe30649,_0x4737('0xa'))+':\x20')}]},{'text':_0x222bb9['to'](_0x4737('0x1a'))}]},new _0x111d8f(),{'tag':_0x4737('0x4'),'attributes':{'class':[_0x4737('0x17')]},'children':[_0x5a0d13,_0x29e13b]}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x376e=['removeClass','editor','hide','view','show','ck-editor__editable__loading-overlay','change','roots','document'];(function(_0x47d6bf,_0x376e6f){const _0x2fcedf=function(_0x467531){while(--_0x467531){_0x47d6bf['push'](_0x47d6bf['shift']());}};_0x2fcedf(++_0x376e6f);}(_0x376e,0x192));const _0x2fce=function(_0x47d6bf,_0x376e6f){_0x47d6bf=_0x47d6bf-0x0;let _0x2fcedf=_0x376e[_0x47d6bf];return _0x2fcedf;};import{Plugin as _0xf486f7}from'ckeditor5/src/core';import'../../../theme/revisionviewerloadingoverlay.css';export default class oe extends _0xf486f7{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}[_0x2fce('0x7')](){const _0x4de4c5=this[_0x2fce('0x4')]['editing'][_0x2fce('0x6')];_0x4de4c5['change'](_0x337c41=>{for(const _0x39952d of _0x4de4c5[_0x2fce('0x2')][_0x2fce('0x1')])_0x337c41['addClass'](_0x2fce('0x8'),_0x39952d);});}[_0x2fce('0x5')](){const _0x4d9e9c=this['editor']['editing']['view'];_0x4d9e9c[_0x2fce('0x0')](_0x3a618e=>{for(const _0x563974 of _0x4d9e9c[_0x2fce('0x2')][_0x2fce('0x1')])_0x3a618e[_0x2fce('0x3')](_0x2fce('0x8'),_0x563974);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x319e=['componentFactory','changesNavigation','hide','commands','get','add','currentChangeNumber','Back\x20to\x20editing','restoreRevision','showPreviousChange','Restore\x20this\x20revision','ck-revision-history-ui__back-to-editing','bind','RevisionViewerUI','plugins','init','listenTo','execute','isEnabled','editor','forward','set','show','closeRevisionViewerCallback','config','showNextChange'];(function(_0x29aee8,_0x319eaf){const _0x12281d=function(_0x4350e4){while(--_0x4350e4){_0x29aee8['push'](_0x29aee8['shift']());}};_0x12281d(++_0x319eaf);}(_0x319e,0x113));const _0x1228=function(_0x29aee8,_0x319eaf){_0x29aee8=_0x29aee8-0x0;let _0x12281d=_0x319e[_0x29aee8];return _0x12281d;};import{Plugin as _0x34ce03}from'ckeditor5/src/core';import{ButtonView as _0x487b76}from'ckeditor5/src/ui';import _0x2c2ccf from'./changesnavigationview';import _0x5c1ec1 from'./../../revisionviewer';import _0x5004c8 from'./revisionviewerloadingoverlay';import{getTranslation as _0x1df90c}from'../../utils/common-translations';import _0xd110a9 from'@ckeditor/ckeditor5-undo/theme/icons/undo.svg';import'../../../theme/revisionviewer.css';export default class m extends _0x34ce03{static get['pluginName'](){return _0x1228('0x18');}static get['requires'](){return[_0x5c1ec1,_0x5004c8];}[_0x1228('0x0')](){const _0x4ade09=this[_0x1228('0x4')],_0x2b3385=_0x4ade09[_0x1228('0x19')]['get'](_0x5c1ec1),_0xc23e31=_0x4ade09[_0x1228('0x19')][_0x1228('0xf')](_0x5004c8);_0x4ade09['ui'][_0x1228('0xb')][_0x1228('0x10')]('exitToEditing',_0x17db3f=>{const _0x134209=new _0x487b76(_0x17db3f);return _0x134209[_0x1228('0x6')]({'label':_0x1df90c(_0x17db3f,_0x1228('0x12')),'icon':_0xd110a9,'withText':!0x0,'tooltip':!0x0,'class':_0x1228('0x16')}),this['listenTo'](_0x134209,_0x1228('0x2'),()=>{_0x4ade09[_0x1228('0x9')][_0x1228('0xf')]('revisionHistory')[_0x1228('0x8')]();}),_0x134209;}),_0x4ade09['ui']['componentFactory']['add'](_0x1228('0x13'),_0x4de25e=>{const _0x3e9713=new _0x487b76(_0x4de25e);return _0x3e9713[_0x1228('0x6')]({'label':_0x1df90c(_0x4de25e,_0x1228('0x15')),'withText':!0x0,'tooltip':!0x0}),_0x3e9713[_0x1228('0x17')](_0x1228('0x3'))['to'](_0x4ade09['commands'][_0x1228('0xf')](_0x1228('0x13'))),this[_0x1228('0x1')](_0x3e9713,_0x1228('0x2'),()=>_0x4ade09[_0x1228('0x2')]('restoreRevision')),_0x3e9713;}),_0x4ade09['ui'][_0x1228('0xb')][_0x1228('0x10')](_0x1228('0xc'),_0x52a819=>{const _0x2b002a=new _0x2c2ccf(_0x52a819),_0x385037=_0x4ade09[_0x1228('0xe')][_0x1228('0xf')](_0x1228('0x14')),_0x4bf256=_0x4ade09['commands'][_0x1228('0xf')]('showNextChange');return _0x2b002a[_0x1228('0x17')]('isBackwardNavigationEnabled')['to'](_0x385037,_0x1228('0x3')),_0x2b002a[_0x1228('0x17')]('isForwardNavigationEnabled')['to'](_0x4bf256,_0x1228('0x3')),_0x2b002a[_0x1228('0x17')]('isReady',_0x1228('0x11'),'numberOfChanges','isNavigationMode')['to'](_0x2b3385),this[_0x1228('0x1')](_0x2b002a,_0x1228('0x2'),(_0x47fa1b,_0x18e3be)=>{_0x4ade09['execute'](_0x1228('0x5')===_0x18e3be?_0x1228('0xa'):_0x1228('0x14'));}),_0x2b002a;}),_0xc23e31[_0x1228('0x7')](),_0x2b3385['on']('change:isReady',(_0x202d77,_0x16ae86,_0x358804)=>{_0x358804?_0xc23e31[_0x1228('0xd')]():_0xc23e31[_0x1228('0x7')]();});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export function getTranslation(
|
|
23
|
+
export function getTranslation(_0x4b5d81,_0x507a0f,_0x599c2c){const t=_0x4b5d81['t'];switch(_0x507a0f){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'},_0x599c2c);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x599c2c);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'});}}
|