@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20231229.0 → 0.0.0-nightly-20231230.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 +5 -5
- 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 _0x44d2=['isEnabled','pluginName','Save\x20current\x20revision','isReadOnly','revisionHistory','plugins','isReady','editor','execute','saveButtonView','get','panelView','config','init','items','submit','set','isOpen','view','saveRevision','Revision\x20history','Open\x20revision\x20history','showRevisionViewerCallback','children','focus','add','addMany','remove','bind','history','requires','length','RevisionTracker','componentFactory','render'];(function(_0x1152f5,_0x44d228){const _0x305410=function(_0x3ff017){while(--_0x3ff017){_0x1152f5['push'](_0x1152f5['shift']());}};_0x305410(++_0x44d228);}(_0x44d2,0xac));const _0x3054=function(_0x1152f5,_0x44d228){_0x1152f5=_0x1152f5-0x0;let _0x305410=_0x44d2[_0x1152f5];return _0x305410;};import{Plugin as _0xced498,icons as _0x20f140}from'ckeditor5/src/core.js';import{ListView as _0x2e7e2d,ListItemView as _0x2e1f0a,ButtonView as _0x4c812f,createDropdown as _0x3da664}from'ckeditor5/src/ui.js';import _0x112364 from'../../revisiontracker.js';import _0x3b81b2 from'./revisionhistorysaverevisionformview.js';import{getTranslation as _0x565f1e}from'../../utils/common-translations.js';export default class u extends _0xced498{static get[_0x3054('0x4')](){return'RevisionHistoryUI';}static get[_0x3054('0x21')](){return[_0x112364];}[_0x3054('0x10')](){const _0x2e63fa=this[_0x3054('0xa')],_0x550618=_0x2e63fa[_0x3054('0x8')][_0x3054('0xd')](_0x3054('0x0'));_0x2e63fa['ui'][_0x3054('0x1')][_0x3054('0x1c')](_0x3054('0x7'),_0x3b8fee=>{const _0x4dda9d=_0x3da664(_0x3b8fee),_0x266554=_0x4dda9d[_0x3054('0xe')][_0x3054('0x1a')],_0x42314d=new _0x2e7e2d(_0x3b8fee),_0x344183=new _0x2e1f0a(_0x3b8fee),_0x340896=new _0x4c812f(_0x3b8fee),_0x1ab6e9=new _0x2e1f0a(_0x3b8fee),_0x1111a0=new _0x4c812f(_0x3b8fee),_0x32e765=new _0x3b81b2(_0x3b8fee);function _0x1739a8(){_0x266554[_0x3054('0x22')]&&_0x266554[_0x3054('0x1e')](0x0),_0x266554[_0x3054('0x1c')](_0x42314d);}function _0x147862(){_0x4dda9d[_0x3054('0x14')]=!0x1,_0x2e63fa['editing'][_0x3054('0x15')]['focus']();}return _0x4dda9d[_0x3054('0x1f')]('isEnabled')['to'](_0x550618,_0x3054('0x9'),_0x550618,_0x3054('0x3'),_0x2e63fa,_0x3054('0x6'),(_0x588df2,_0x136c8d,_0xba2fba)=>_0x588df2&&_0x136c8d&&!_0xba2fba),_0x4dda9d['buttonView'][_0x3054('0x13')]({'icon':_0x20f140[_0x3054('0x20')],'label':_0x565f1e(_0x3b8fee,_0x3054('0x17')),'tooltip':!0x0}),_0x340896[_0x3054('0x13')]({'label':_0x565f1e(_0x3b8fee,_0x3054('0x5')),'withText':!0x0}),_0x340896[_0x3054('0x1f')](_0x3054('0x3'))['to'](_0x550618,_0x3054('0x9'),_0x550618,_0x3054('0x3'),_0x2e63fa,_0x3054('0x6'),(_0x307be1,_0x1800c2,_0xbe50d9)=>_0x307be1&&_0x1800c2&&!_0xbe50d9),_0x340896['on'](_0x3054('0xb'),()=>function(){_0x266554[_0x3054('0x22')]&&_0x266554[_0x3054('0x1e')](0x0),(_0x32e765['reset'](),_0x266554[_0x3054('0x1c')](_0x32e765),_0x32e765[_0x3054('0x1b')]());}()),_0x1111a0[_0x3054('0x13')]({'label':_0x565f1e(_0x3b8fee,_0x3054('0x18')),'withText':!0x0}),_0x1111a0[_0x3054('0x1f')]('isEnabled')['to'](_0x550618,_0x3054('0x9'),_0x2e63fa,'isReadOnly',(_0x58d1b2,_0x29c6da)=>_0x58d1b2&&!_0x29c6da),_0x1111a0['on'](_0x3054('0xb'),()=>{_0x2e63fa[_0x3054('0xf')]['get'](_0x3054('0x7'))[_0x3054('0x19')](),_0x147862();}),_0x344183[_0x3054('0x1a')][_0x3054('0x1c')](_0x340896),_0x1ab6e9[_0x3054('0x1a')][_0x3054('0x1c')](_0x1111a0),_0x42314d[_0x3054('0x11')][_0x3054('0x1d')]([_0x344183,_0x1ab6e9]),_0x4dda9d['on']('change:isOpen',()=>_0x1739a8()),_0x32e765[_0x3054('0xc')][_0x3054('0x1f')]('isEnabled')['to'](_0x550618,_0x3054('0x9'),_0x550618,_0x3054('0x3'),_0x2e63fa,_0x3054('0x6'),(_0x407cb4,_0x5da72a,_0x401f5f)=>_0x407cb4&&_0x5da72a&&!_0x401f5f),_0x32e765['on'](_0x3054('0x12'),()=>(_0x2e63fa[_0x3054('0x8')][_0x3054('0xd')](_0x112364)[_0x3054('0x16')]({'name':_0x32e765['revisionName']}),void _0x147862())),_0x32e765['on']('cancel',()=>_0x1739a8()),_0x32e765[_0x3054('0x2')](),_0x1739a8(),_0x4dda9d;});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x575c=['name','compare','init','getRevisionsInDiff','length','getRevision','action','appendChild','getIndex','Compare\x20against\x20selected','focus','restoreRevisionCallback','requires','nameRevision','defaultRevisionActions','_revisions','plugins','destroy','render','editor','isSelected','Restore\x20this\x20revision','add','Name\x20this\x20revision','isReady','_createRevisionActions','pluginName','_revisionViewer','element','_revisionsRepository','listenTo','string','getEarlierVisibleRevision','newRevisionId','isEnabled','_handleRevisionSetName','getLaterVisibleRevision','_handleRevisionSelected','repository','revisionSelected','bind','assign','timePeriodViews','_sidebarView','revisionSetName','ready','revisionHistory.viewerSidebarContainer','compareAgainstSelected','highlightRevisions','selectRevision','_handleEditorDataReady','diff','isVisible','_handleDiffChange','RevisionsSidebar','get','config','restoreRevision'];(function(_0x50a69c,_0x575cab){const _0x393e07=function(_0x686315){while(--_0x686315){_0x50a69c['push'](_0x50a69c['shift']());}};_0x393e07(++_0x575cab);}(_0x575c,0x1b7));const _0x393e=function(_0x50a69c,_0x575cab){_0x50a69c=_0x50a69c-0x0;let _0x393e07=_0x575c[_0x50a69c];return _0x393e07;};import{Plugin as _0x305a21}from'ckeditor5/src/core.js';import _0x175f57 from'./revisionssidebarview.js';import _0x542b1c from'../../revisionviewer.js';export default class w extends _0x305a21{static get[_0x393e('0x33')](){return _0x393e('0x15');}static get[_0x393e('0x25')](){return[_0x542b1c];}constructor(_0x5385dc){super(_0x5385dc),this[_0x393e('0x34')]=_0x5385dc[_0x393e('0x29')][_0x393e('0x16')](_0x542b1c),this[_0x393e('0x36')]=this['_revisionViewer'][_0x393e('0x5')],this[_0x393e('0xa')]=null;}[_0x393e('0x1b')](){const _0x3dc575=this[_0x393e('0x36')][_0x393e('0x28')],_0x2d7eaf=this[_0x393e('0x32')](),_0x5a2729=this['editor']['config'][_0x393e('0x16')](_0x393e('0xd'));this['_sidebarView']=new _0x175f57(this[_0x393e('0x2c')]['locale'],_0x3dc575,_0x2d7eaf),this[_0x393e('0xa')]['on'](_0x393e('0x6'),this['_handleRevisionSelected']['bind'](this)),this[_0x393e('0xa')]['on'](_0x393e('0xb'),this[_0x393e('0x2')]['bind'](this)),this[_0x393e('0xa')][_0x393e('0x7')](_0x393e('0x1'))['to'](this[_0x393e('0x34')]),this[_0x393e('0xa')][_0x393e('0x9')]['on'](_0x393e('0x2f'),(_0x6f8b21,_0x49d810)=>{_0x49d810['revisionViews']['on'](_0x393e('0x2f'),(_0x3fe3ce,_0x44c60b)=>{_0x44c60b[_0x393e('0x7')](_0x393e('0x1'),_0x393e('0x31'))['to'](this[_0x393e('0x34')]);});}),this[_0x393e('0xa')][_0x393e('0x2b')](),this[_0x393e('0x37')](this['editor']['data'],_0x393e('0xc'),this['_handleEditorDataReady'][_0x393e('0x7')](this)),this[_0x393e('0x37')](this['_revisionViewer'],'change:diff',this[_0x393e('0x14')][_0x393e('0x7')](this)),_0x5a2729[_0x393e('0x20')](this[_0x393e('0xa')][_0x393e('0x35')]);}[_0x393e('0x2a')](){this['_sidebarView'][_0x393e('0x35')]['remove'](),this['_sidebarView'][_0x393e('0x2a')]();}[_0x393e('0x11')](){const _0x2e5c42=this['_revisionsRepository'][_0x393e('0x1e')](0x0);if(_0x2e5c42){const _0x27174e=this['_revisionsRepository'][_0x393e('0x39')](_0x2e5c42['id']);this[_0x393e('0x34')][_0x393e('0x1a')](_0x2e5c42,_0x27174e);}}[_0x393e('0x4')](_0xd09dd6,_0x26ea22){const _0x2e1e98=this[_0x393e('0x36')]['getRevision'](_0x26ea22['id']),_0x37c1cd=this[_0x393e('0x36')][_0x393e('0x39')](_0x2e1e98['id']);this['_revisionViewer'][_0x393e('0x1a')](_0x2e1e98,_0x37c1cd);}[_0x393e('0x2')](_0x564a42,_0x378ba1){this['_revisionsRepository']['getRevision'](_0x378ba1['id'])['setName'](_0x378ba1[_0x393e('0x19')]);}['_handleDiffChange'](_0x324964,_0x5629d4,_0x4eb710){const _0x52ec26=this[_0x393e('0x36')][_0x393e('0x1c')](_0x4eb710);_0x52ec26['length']>0x2?(this[_0x393e('0xa')][_0x393e('0xf')](_0x52ec26),this[_0x393e('0xa')][_0x393e('0x10')](null)):(this[_0x393e('0xa')][_0x393e('0xf')]([]),this[_0x393e('0xa')][_0x393e('0x10')](_0x52ec26[0x0]));}['_createRevisionActions'](){const _0xfedbdd=this[_0x393e('0x2c')],_0x463241=w['availableRevisionActions'],_0x54028c=_0xfedbdd['config'][_0x393e('0x16')]('revisionHistory.revisionActions')||w[_0x393e('0x27')];if(_0x54028c[_0x393e('0x1d')])return _0x54028c['map'](_0x29e034=>{const _0xf65c3e=_0x393e('0x38')==typeof _0x29e034?Object[_0x393e('0x8')]({},_0x463241[_0x29e034]):_0x29e034;return _0xf65c3e['action']=_0xf65c3e[_0x393e('0x1f')][_0x393e('0x7')](this,_0xfedbdd),_0xf65c3e['isVisible']&&(_0xf65c3e[_0x393e('0x13')]=_0xf65c3e[_0x393e('0x13')][_0x393e('0x7')](this,_0xfedbdd)),_0xf65c3e;});}}w['availableRevisionActions']={'compareAgainstSelected':{'name':_0x393e('0x22'),'action':({plugins:_0x2495d9},_0x40d452)=>{const _0x63335e=_0x2495d9[_0x393e('0x16')](_0x542b1c),_0x160aa5=_0x63335e[_0x393e('0x5')];let _0x48ea5b=_0x63335e[_0x393e('0x12')][_0x393e('0x0')],_0x22b390=_0x40d452['id'];_0x160aa5[_0x393e('0x21')](_0x48ea5b)>_0x160aa5[_0x393e('0x21')](_0x22b390)&&([_0x48ea5b,_0x22b390]=[_0x22b390,_0x48ea5b]),_0x63335e['compare'](_0x48ea5b,_0x22b390);},'isVisible':({plugins:_0xcfd500},_0x368b93)=>{const _0x375ff7=_0xcfd500[_0x393e('0x16')](_0x542b1c);return!(_0x375ff7[_0x393e('0x5')]['getRevisionsInDiff'](_0x375ff7[_0x393e('0x12')])[_0x393e('0x1d')]>0x2)&&!_0x368b93[_0x393e('0x2d')];}},'restoreRevision':{'name':_0x393e('0x2e'),'action':(_0x411d92,{id:_0x4d8c9f})=>{_0x411d92[_0x393e('0x17')][_0x393e('0x16')]('revisionHistory')[_0x393e('0x24')](_0x4d8c9f);},'isVisible':({plugins:_0x19600e},_0x1f214d)=>!!_0x19600e['get'](_0x542b1c)['repository'][_0x393e('0x3')](_0x1f214d['id'])},'nameRevision':{'name':_0x393e('0x30'),'action':({plugins:_0x43568a},{id:_0x3f4e7f,revisionNameView:_0x4547c3})=>{const _0x5829c0=_0x43568a[_0x393e('0x16')](_0x542b1c),_0xb3db0e=_0x5829c0['repository'][_0x393e('0x39')](_0x3f4e7f);_0x5829c0[_0x393e('0x1a')](_0x3f4e7f,_0xb3db0e),_0x4547c3[_0x393e('0x23')](),_0x4547c3['fieldView']['select']();}}},w[_0x393e('0x27')]=[_0x393e('0xe'),_0x393e('0x18'),_0x393e('0x26')];
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x226d=['div','history','span','Revision\x20history','setTemplate','ck-revision-history-sidebar__header__label'];(function(_0x23631d,_0x226d49){const _0x480f29=function(_0xf0714){while(--_0xf0714){_0x23631d['push'](_0x23631d['shift']());}};_0x480f29(++_0x226d49);}(_0x226d,0xf8));const _0x480f=function(_0x23631d,_0x226d49){_0x23631d=_0x23631d-0x0;let _0x480f29=_0x226d[_0x23631d];return _0x480f29;};import{View as _0x34696c,IconView as _0x2db3eb}from'ckeditor5/src/ui.js';import{getTranslation as _0x3aa39c}from'../../utils/common-translations.js';import{icons as _0x29007f}from'ckeditor5/src/core.js';import'../../../theme/revisionssidebar/revisionssidebarheader.css';export default class rs extends _0x34696c{constructor(_0x232092){super(_0x232092);const _0x250a04=new _0x2db3eb();_0x250a04['content']=_0x29007f[_0x480f('0x5')],this[_0x480f('0x2')]({'tag':_0x480f('0x4'),'attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x250a04,{'tag':_0x480f('0x0'),'attributes':{'class':['ck',_0x480f('0x3')]},'children':[_0x3aa39c(_0x232092,_0x480f('0x1'))]}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x335e=['removeRevision','setTemplate','_revisionActions','ck-revision-history-sidebar__time-period__label','delegate','add','uiLanguage','locale','select','revisionViews','createCollection','setName','find','localizedPeriodName','startDate','div','ck-revision-history-sidebar__time-period__revisions','addRevision'];(function(_0x99a09d,_0x335e54){const _0x17c326=function(_0x1718c9){while(--_0x1718c9){_0x99a09d['push'](_0x99a09d['shift']());}};_0x17c326(++_0x335e54);}(_0x335e,0x8c));const _0x17c3=function(_0x99a09d,_0x335e54){_0x99a09d=_0x99a09d-0x0;let _0x17c326=_0x335e[_0x99a09d];return _0x17c326;};import{View as _0x3f7320}from'ckeditor5/src/ui.js';import _0x3aa2c7 from'../revision/revisionview.js';import{getDateTimePeriodInfo as _0x3f4c47}from'./utils.js';import'../../../theme/revisionssidebar/revisionssidebartimeperiod.css';export default class vi extends _0x3f7320{constructor(_0x54009d,_0x53fc7e,_0x12bf17){super(_0x54009d);const _0x27a77c=_0x3f4c47(_0x53fc7e,this[_0x17c3('0xb')][_0x17c3('0xa')])[_0x17c3('0x11')];this[_0x17c3('0x0')]=_0x53fc7e,this[_0x17c3('0xd')]=this[_0x17c3('0xe')](),this[_0x17c3('0x6')]=_0x12bf17,this['revisionViews'][_0x17c3('0x8')](_0x17c3('0xc'))['to'](this),this[_0x17c3('0xd')][_0x17c3('0x8')](_0x17c3('0xf'))['to'](this),this[_0x17c3('0x5')]({'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period']},'children':[{'tag':'span','attributes':{'class':['ck',_0x17c3('0x7')]},'children':[{'text':_0x27a77c}]},{'tag':_0x17c3('0x1'),'attributes':{'class':['ck',_0x17c3('0x2')]},'children':this[_0x17c3('0xd')]}]});}[_0x17c3('0x3')](_0x2a8b42){const _0x37947a=new _0x3aa2c7(this[_0x17c3('0xb')],_0x2a8b42,this['_revisionActions']);this['revisionViews'][_0x17c3('0x9')](_0x37947a);}[_0x17c3('0x4')](_0x4471c4){const _0x534956=this[_0x17c3('0xd')][_0x17c3('0x10')](_0x1fe6b5=>_0x1fe6b5['id']===_0x4471c4['id']);this[_0x17c3('0xd')]['remove'](_0x534956);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5da0=['delegate','selectRevision','unhighlight','createCollection','revisionViews','fire','createdAt','uiLanguage','map','setName','startDate','select','some','removeRevision','_addRevision','setTemplate','_revisionActions','remove','highlightRevisions','_revisions','isEnabled','get','timePeriodViews','revisionSetName','locale','find','getTime','revisionSelected','deselect','ck-disabled','bindTemplate','ck-revision-history-sidebar__timeline','add','set','ck-reset','div','highlight','render','_getTimePeriodViewByStartDate','ck-revision-history-sidebar','flat'];(function(_0x23c630,_0x5da0a6){const _0x2f9dac=function(_0x41a656){while(--_0x41a656){_0x23c630['push'](_0x23c630['shift']());}};_0x2f9dac(++_0x5da0a6);}(_0x5da0,0xfa));const _0x2f9d=function(_0x23c630,_0x5da0a6){_0x23c630=_0x23c630-0x0;let _0x2f9dac=_0x5da0[_0x23c630];return _0x2f9dac;};import{View as _0x1c1798}from'ckeditor5/src/ui.js';import _0x17b8ac from'./revisionssidebartimeperiodview.js';import _0x3084a3 from'./revisionssidebarheaderview.js';import{getDateTimePeriodInfo as _0x356060}from'./utils.js';import'../../../theme/revisionssidebar/revisionssidebar.css';export default class di extends _0x1c1798{constructor(_0x15b2c1,_0x498e7a,_0x589d3c){super(_0x15b2c1);const _0x590c1d=this[_0x2f9d('0x1a')];this['timePeriodViews']=this[_0x2f9d('0x28')](),this[_0x2f9d('0x12')]['delegate'](_0x2f9d('0x7'))['to'](this),this[_0x2f9d('0x12')][_0x2f9d('0x25')](_0x2f9d('0x5'))['to'](this),this[_0x2f9d('0xf')]=_0x498e7a,this[_0x2f9d('0xc')]=_0x589d3c,this['on'](_0x2f9d('0x7'),(_0x3937a3,_0x5b0d8e)=>{this[_0x2f9d('0x1')](_0x2f9d('0x17'),_0x5b0d8e);}),this['on'](_0x2f9d('0x5'),(_0x59eda9,_0x11898b)=>{this[_0x2f9d('0x1')](_0x2f9d('0x13'),_0x11898b);}),this[_0x2f9d('0x1d')](_0x2f9d('0x10'),!0x1),this[_0x2f9d('0xb')]({'tag':'div','attributes':{'class':['ck',_0x2f9d('0x1e'),'ck-rounded-corners',_0x2f9d('0x23')]},'children':[new _0x3084a3(_0x15b2c1),{'tag':_0x2f9d('0x1f'),'attributes':{'class':['ck',_0x2f9d('0x1b'),_0x590c1d['if'](_0x2f9d('0x10'),_0x2f9d('0x19'),_0x31bf85=>!_0x31bf85)]},'children':this[_0x2f9d('0x12')]}]});}[_0x2f9d('0x21')](){super[_0x2f9d('0x21')]();for(const _0x57843c of this[_0x2f9d('0xf')])this[_0x2f9d('0xa')](_0x57843c);this['_revisions']['on'](_0x2f9d('0x1c'),(_0x4de33a,_0x156ca4)=>{this[_0x2f9d('0xa')](_0x156ca4);}),this[_0x2f9d('0xf')]['on'](_0x2f9d('0xd'),(_0x4c0e1f,_0x84e2f1)=>{this['_removeRevision'](_0x84e2f1);});}get[_0x2f9d('0x0')](){return this[_0x2f9d('0x12')][_0x2f9d('0x4')](_0x553741=>_0x553741['revisionViews']['map'](_0x2d42b5=>_0x2d42b5))[_0x2f9d('0x24')]();}[_0x2f9d('0x26')](_0x3854ff){for(const _0xb471ef of this[_0x2f9d('0x0')])_0x3854ff&&_0x3854ff['id']===_0xb471ef['id']?_0xb471ef['select']():_0xb471ef[_0x2f9d('0x18')]();}[_0x2f9d('0xe')](_0x1f7e98){for(const _0x171c6e of this[_0x2f9d('0x0')])_0x1f7e98[_0x2f9d('0x8')](({id:_0x280a52})=>_0x280a52===_0x171c6e['id'])?_0x171c6e[_0x2f9d('0x20')]():_0x171c6e[_0x2f9d('0x27')]();}[_0x2f9d('0xa')](_0x41a27f){const _0x1eb5dc=_0x356060(_0x41a27f[_0x2f9d('0x2')],this[_0x2f9d('0x14')][_0x2f9d('0x3')])[_0x2f9d('0x6')];let _0x87db0d=this['timePeriodViews'][_0x2f9d('0x11')](0x0);_0x87db0d&&_0x87db0d[_0x2f9d('0x6')][_0x2f9d('0x16')]()===_0x1eb5dc[_0x2f9d('0x16')]()||(_0x87db0d=new _0x17b8ac(this['locale'],_0x1eb5dc,this[_0x2f9d('0xc')]),this[_0x2f9d('0x12')]['add'](_0x87db0d)),_0x87db0d['addRevision'](_0x41a27f);}['_removeRevision'](_0x2b21c0){const _0x14d976=_0x356060(_0x2b21c0[_0x2f9d('0x2')],this[_0x2f9d('0x14')][_0x2f9d('0x3')])[_0x2f9d('0x6')];this[_0x2f9d('0x22')](_0x14d976)[_0x2f9d('0x9')](_0x2b21c0);}[_0x2f9d('0x22')](_0x45da06){return this[_0x2f9d('0x12')][_0x2f9d('0x15')](_0x3b0022=>_0x3b0022['startDate'][_0x2f9d('0x16')]()===_0x45da06[_0x2f9d('0x16')]());}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x972d=['hasSame','fromJSDate','year','setLocale','day','local','startOf','weekdayLong','toJSDate','week','toRelativeCalendar','month','minus'];(function(_0x613bf7,_0x972d86){const _0xae03e5=function(_0x4250be){while(--_0x4250be){_0x613bf7['push'](_0x613bf7['shift']());}};_0xae03e5(++_0x972d86);}(_0x972d,0x7d));const _0xae03=function(_0x613bf7,_0x972d86){_0x613bf7=_0x613bf7-0x0;let _0xae03e5=_0x972d[_0x613bf7];return _0xae03e5;};import{DateTime as _0x137449}from'luxon';export function getDateTimePeriodInfo(_0x220ff1,_0x5be8b6){const _0xc76b1e=_0x137449[_0xae03('0x6')](_0x220ff1)[_0xae03('0x8')](_0x5be8b6),_0x105c23=_0x137449[_0xae03('0xa')](),_0x52cc4c=_0x105c23[_0xae03('0x4')]({'days':0x1})[_0xae03('0xb')]('day');let _0x58d237,_0xded60d;return _0xc76b1e['hasSame'](_0x105c23,_0xae03('0x9'))?(_0x58d237=_0xc76b1e[_0xae03('0xb')](_0xae03('0x9'))['toJSDate'](),_0xded60d=_0xc76b1e[_0xae03('0x2')]()):_0xc76b1e[_0xae03('0x5')](_0x52cc4c,_0xae03('0x9'))?(_0x58d237=_0x52cc4c[_0xae03('0x0')](),_0xded60d=_0xc76b1e['toRelativeCalendar']()):_0xc76b1e[_0xae03('0x5')](_0x105c23,_0xae03('0x1'))?(_0x58d237=_0xc76b1e['startOf'](_0xae03('0x1'))[_0xae03('0x0')](),_0xded60d=_0xc76b1e[_0xae03('0xc')]||''):_0xc76b1e[_0xae03('0x5')](_0x105c23,_0xae03('0x7'))?(_0x58d237=_0xc76b1e[_0xae03('0xb')](_0xae03('0x3'))[_0xae03('0x0')](),_0xded60d=_0xc76b1e['monthLong']||''):(_0x58d237=_0xc76b1e['startOf'](_0xae03('0x7'))[_0xae03('0x0')](),_0xded60d=String(_0xc76b1e[_0xae03('0x7')])),{'startDate':_0x58d237,'localizedPeriodName':_0xded60d};}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x314b=['setTemplate','ck-annotation','name','_model','bindTemplate','span','data','set','focus','ck-revision-change','add','div','Removed\x20by','type','isSuggestion','element','ck-revision-change__','Suggested\x20by','changeId'];(function(_0x367ca5,_0x314b91){const _0x51ff13=function(_0x253281){while(--_0x253281){_0x367ca5['push'](_0x367ca5['shift']());}};_0x51ff13(++_0x314b91);}(_0x314b,0x149));const _0x51ff=function(_0x367ca5,_0x314b91){_0x367ca5=_0x367ca5-0x0;let _0x51ff13=_0x314b[_0x367ca5];return _0x51ff13;};import{View as _0x31a8da}from'ckeditor5/src/ui.js';import{getTranslation as _0x3336a8}from'../../utils/common-translations.js';export default class Z extends _0x31a8da{constructor(_0x19f548,_0x4e9c18){super(_0x19f548),this[_0x51ff('0x10')]=_0x4e9c18,this[_0x51ff('0xc')]=_0x4e9c18['id'];const _0x41c646=this[_0x51ff('0x11')],_0x579059=_0x3336a8(_0x19f548,_0x4e9c18[_0x51ff('0x0')][_0x51ff('0x8')]?_0x51ff('0xb'):_0x51ff('0x4')==_0x4e9c18[_0x51ff('0x7')]?'Added\x20by':_0x51ff('0x6'));this[_0x51ff('0x1')](_0x51ff('0x7'),_0x4e9c18[_0x51ff('0x7')]),this[_0x51ff('0xd')]({'tag':_0x51ff('0x5'),'attributes':{'class':[_0x51ff('0xe'),_0x51ff('0x3'),_0x41c646['to'](_0x51ff('0x7'),_0x368675=>_0x51ff('0xa')+_0x368675)],'tabindex':-0x1},'children':[{'tag':_0x51ff('0x12'),'children':[{'tag':_0x51ff('0x12'),'attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x579059}]},{'text':'\x20'+_0x4e9c18['author'][_0x51ff('0xf')]}]}]});}[_0x51ff('0x2')](){this[_0x51ff('0x9')][_0x51ff('0x2')]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2017=['No\x20changes','_isStatusLabelVisible','ck-revision-history-ui__changes-navigation','ck-hidden','isEnabled','div','Loading...','X_OF_Y_CHANGES','ck-revision-history-ui__changes-navigation__label','set','isBackwardNavigationEnabled','numberOfChanges','span','Total','execute','backward','_statusText','bind','ck-revision-history-ui__changes-navigation__navigation','setTemplate','isReady','fire','EDIT_X_OF_Y_REVISIONS','currentChangeNumber','isNavigationMode'];(function(_0x4165de,_0x201774){const _0x180a79=function(_0x23597f){while(--_0x23597f){_0x4165de['push'](_0x4165de['shift']());}};_0x180a79(++_0x201774);}(_0x2017,0x176));const _0x180a=function(_0x4165de,_0x201774){_0x4165de=_0x4165de-0x0;let _0x180a79=_0x2017[_0x4165de];return _0x180a79;};import{View as _0x447a88,ButtonView as _0x4a1f5b,ToolbarSeparatorView as _0x4c6464}from'ckeditor5/src/ui.js';import{getTranslation as _0x2c7b8f}from'../../utils/common-translations.js';import _0x23a0f6 from'../../../theme/icons/arrow-up.svg';import _0x467b49 from'../../../theme/icons/arrow-down.svg';import'../../../theme/changesnavigation.css';export default class bi extends _0x447a88{constructor(_0x2d0253){super(_0x2d0253);const _0x17b0a9=this['bindTemplate'],_0x8aecb4=new _0x4a1f5b(_0x2d0253),_0x232245=new _0x4a1f5b(_0x2d0253);this[_0x180a('0xa')](_0x180a('0x0'),!0x1),this[_0x180a('0xa')](_0x180a('0x15'),!0x1),this[_0x180a('0xa')](_0x180a('0x18'),0x0),this[_0x180a('0xa')](_0x180a('0xc'),0x0),this[_0x180a('0xa')]('isForwardNavigationEnabled',!0x1),this['set'](_0x180a('0xb'),!0x1),this[_0x180a('0x12')](_0x180a('0x2'))['to'](this,'isReady',this,_0x180a('0xc'),(_0x5bcabd,_0x507f36)=>_0x5bcabd&&_0x507f36>0x0),this[_0x180a('0x12')](_0x180a('0x11'))['to'](this,'isReady',this,'currentChangeNumber',this,_0x180a('0xc'),this,_0x180a('0x0'),(_0x15653a,_0x1b3c46,_0x1aa0df,_0x2d41f1)=>{if(!_0x15653a)return _0x2c7b8f(_0x2d0253,_0x180a('0x7'));if(!_0x1aa0df)return _0x2c7b8f(_0x2d0253,_0x180a('0x1'));const _0x22dc74=_0x2c7b8f(_0x2d0253,'NUMBER_OF_CHANGES',_0x1aa0df);return _0x2d41f1?_0x2c7b8f(_0x2d0253,_0x180a('0x8'),[_0x1b3c46+0x1,_0x1aa0df]):_0x22dc74;}),_0x8aecb4['set']({'label':_0x2c7b8f(_0x2d0253,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0x23a0f6}),_0x232245['set']({'label':_0x2c7b8f(_0x2d0253,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x467b49}),_0x8aecb4[_0x180a('0x12')](_0x180a('0x5'))['to'](this,_0x180a('0xb')),_0x232245['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x8aecb4['on'](_0x180a('0xf'),()=>this[_0x180a('0x16')](_0x180a('0xf'),_0x180a('0x10'))),_0x232245['on'](_0x180a('0xf'),()=>this[_0x180a('0x16')](_0x180a('0xf'),'forward')),this[_0x180a('0x14')]({'tag':_0x180a('0x6'),'attributes':{'class':['ck','ck-revision-history-ui',_0x180a('0x3')]},'children':[{'tag':'span','attributes':{'class':['ck-revision-history-ui__changes-navigation__wrapper']},'children':[{'tag':_0x180a('0xd'),'attributes':{'class':[_0x180a('0x9'),_0x17b0a9['if'](_0x180a('0x2'),_0x180a('0x4'),_0x1bc24c=>!_0x1bc24c)]},'children':[{'text':_0x17b0a9['to'](_0x180a('0x0'),_0x4a3bf0=>_0x4a3bf0?_0x2c7b8f(_0x2d0253,_0x180a('0x17'))+':\x20':_0x2c7b8f(_0x2d0253,_0x180a('0xe'))+':\x20')}]},{'text':_0x17b0a9['to'](_0x180a('0x11'))}]},new _0x4c6464(),{'tag':_0x180a('0x6'),'attributes':{'class':[_0x180a('0x13')]},'children':[_0x8aecb4,_0x232245]}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4325=['document','editor','removeClass','show','roots','RevisionViewerLoadingOverlay','ck-editor__editable__loading-overlay','addClass','pluginName','editing','view','change','hide'];(function(_0x5f2ec5,_0x43252a){const _0x5b7ca6=function(_0x2a04ba){while(--_0x2a04ba){_0x5f2ec5['push'](_0x5f2ec5['shift']());}};_0x5b7ca6(++_0x43252a);}(_0x4325,0x1f4));const _0x5b7c=function(_0x5f2ec5,_0x43252a){_0x5f2ec5=_0x5f2ec5-0x0;let _0x5b7ca6=_0x4325[_0x5f2ec5];return _0x5b7ca6;};import{Plugin as _0x48b296}from'ckeditor5/src/core.js';const oe=_0x5b7c('0x0');import'../../../theme/revisionviewerloadingoverlay.css';export default class te extends _0x48b296{static get[_0x5b7c('0x2')](){return _0x5b7c('0xc');}[_0x5b7c('0xa')](){const _0x164ce6=this[_0x5b7c('0x8')][_0x5b7c('0x3')][_0x5b7c('0x4')];_0x164ce6[_0x5b7c('0x5')](_0x17ca08=>{for(const _0x4f4f38 of _0x164ce6[_0x5b7c('0x7')][_0x5b7c('0xb')])_0x17ca08[_0x5b7c('0x1')](oe,_0x4f4f38);});}[_0x5b7c('0x6')](){const _0x474913=this[_0x5b7c('0x8')][_0x5b7c('0x3')][_0x5b7c('0x4')];_0x474913['change'](_0xd657f2=>{for(const _0x2b9175 of _0x474913[_0x5b7c('0x7')][_0x5b7c('0xb')])_0xd657f2[_0x5b7c('0x9')](oe,_0x2b9175);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3e0b=['exitToEditing','plugins','componentFactory','requires','show','init','bind','add','currentChangeNumber','showNextChange','commands','execute','undo','forward','isReady','restoreRevision','revisionHistory','closeRevisionViewerCallback','pluginName','isForwardNavigationEnabled','hide','change:isReady','Restore\x20this\x20revision','showPreviousChange','isEnabled','get','ck-revision-history-ui__back-to-editing','editor','Back\x20to\x20editing','listenTo','config'];(function(_0x405311,_0x3e0b1b){const _0x121267=function(_0x3cdc17){while(--_0x3cdc17){_0x405311['push'](_0x405311['shift']());}};_0x121267(++_0x3e0b1b);}(_0x3e0b,0x172));const _0x1212=function(_0x405311,_0x3e0b1b){_0x405311=_0x405311-0x0;let _0x121267=_0x3e0b[_0x405311];return _0x121267;};import{icons as _0x4b84b1,Plugin as _0x494349}from'ckeditor5/src/core.js';import{ButtonView as _0x333fdc}from'ckeditor5/src/ui.js';import _0xcb5a3b from'./changesnavigationview.js';import _0x180d63 from'./../../revisionviewer.js';import _0x447be3 from'./revisionviewerloadingoverlay.js';import{getTranslation as _0x131a8a}from'../../utils/common-translations.js';import'../../../theme/revisionviewer.css';export default class R extends _0x494349{static get[_0x1212('0x14')](){return'RevisionViewerUI';}static get[_0x1212('0x5')](){return[_0x180d63,_0x447be3];}[_0x1212('0x7')](){const _0x6ac8ee=this[_0x1212('0x1d')],_0x3b91fa=_0x6ac8ee[_0x1212('0x3')]['get'](_0x180d63),_0x3afad5=_0x6ac8ee[_0x1212('0x3')][_0x1212('0x1b')](_0x447be3);_0x6ac8ee['ui']['componentFactory'][_0x1212('0x9')](_0x1212('0x2'),_0x36deec=>{const _0x1b3810=new _0x333fdc(_0x36deec);return _0x1b3810['set']({'label':_0x131a8a(_0x36deec,_0x1212('0x1e')),'icon':_0x4b84b1[_0x1212('0xe')],'withText':!0x0,'tooltip':!0x0,'class':_0x1212('0x1c')}),this['listenTo'](_0x1b3810,_0x1212('0xd'),()=>{_0x6ac8ee[_0x1212('0x1')][_0x1212('0x1b')](_0x1212('0x12'))[_0x1212('0x13')]();}),_0x1b3810;}),_0x6ac8ee['ui'][_0x1212('0x4')]['add']('restoreRevision',_0x59b5d0=>{const _0x38cf7b=new _0x333fdc(_0x59b5d0);return _0x38cf7b['set']({'label':_0x131a8a(_0x59b5d0,_0x1212('0x18')),'withText':!0x0,'tooltip':!0x0}),_0x38cf7b['bind']('isEnabled')['to'](_0x6ac8ee[_0x1212('0xc')][_0x1212('0x1b')](_0x1212('0x11'))),this[_0x1212('0x0')](_0x38cf7b,_0x1212('0xd'),()=>_0x6ac8ee[_0x1212('0xd')](_0x1212('0x11'))),_0x38cf7b;}),_0x6ac8ee['ui'][_0x1212('0x4')][_0x1212('0x9')]('changesNavigation',_0x2a989b=>{const _0x3c0bf5=new _0xcb5a3b(_0x2a989b),_0x99b767=_0x6ac8ee['commands'][_0x1212('0x1b')](_0x1212('0x19')),_0x24e154=_0x6ac8ee['commands'][_0x1212('0x1b')](_0x1212('0xb'));return _0x3c0bf5[_0x1212('0x8')]('isBackwardNavigationEnabled')['to'](_0x99b767,'isEnabled'),_0x3c0bf5[_0x1212('0x8')](_0x1212('0x15'))['to'](_0x24e154,_0x1212('0x1a')),_0x3c0bf5[_0x1212('0x8')](_0x1212('0x10'),_0x1212('0xa'),'numberOfChanges','isNavigationMode')['to'](_0x3b91fa),this['listenTo'](_0x3c0bf5,_0x1212('0xd'),(_0x27c76d,_0x1245db)=>{_0x6ac8ee[_0x1212('0xd')](_0x1212('0xf')===_0x1245db?_0x1212('0xb'):'showPreviousChange');}),_0x3c0bf5;}),_0x3afad5['show'](),_0x3b91fa['on'](_0x1212('0x17'),(_0x59f210,_0x58202a,_0x42658a)=>{_0x42658a?_0x3afad5[_0x1212('0x16')]():_0x3afad5[_0x1212('0x6')]();});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export function getTranslation(
|
|
23
|
+
export function getTranslation(_0x4372b9,_0x19072f,_0x4906da){const t=_0x4372b9['t'];switch(_0x19072f){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'},_0x4906da);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x4906da);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 _0x19072f;}}
|