@ckeditor/ckeditor5-revision-history 35.2.0 → 35.3.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/README.md +1 -1
- 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 _0xcfe0=['length','remove','revisionHistory','plugins','reset','Open\x20revision\x20history','focus','children','init','add','editing','componentFactory','bind','buttonView','Revision\x20history','Save\x20current\x20revision','cancel','saveButtonView','RevisionHistoryUI','requires','revisionName','set','render','execute','get','isReadOnly','showRevisionViewerCallback','isEnabled','view','change:isOpen','submit','items','RevisionTracker','editor','isReady'];(function(_0x1cb252,_0xcfe096){const _0x1ee089=function(_0x37d257){while(--_0x37d257){_0x1cb252['push'](_0x1cb252['shift']());}};_0x1ee089(++_0xcfe096);}(_0xcfe0,0xdc));const _0x1ee0=function(_0x1cb252,_0xcfe096){_0x1cb252=_0x1cb252-0x0;let _0x1ee089=_0xcfe0[_0x1cb252];return _0x1ee089;};import{Plugin as _0x22ab48}from'ckeditor5/src/core';import{ListView as _0x3b7327,ListItemView as _0x4ba65c,ButtonView as _0x25ccf0,createDropdown as _0x235bfe}from'ckeditor5/src/ui';import _0x5d5cbe from'../../revisiontracker';import _0x4b9c86 from'./revisionhistorysaverevisionformview';import _0x32fa24 from'../../../theme/icons/revision-history.svg';import{getTranslation as _0x576e48}from'../../utils/common-translations';export default class R extends _0x22ab48{static get['pluginName'](){return _0x1ee0('0x8');}static get[_0x1ee0('0x9')](){return[_0x5d5cbe];}[_0x1ee0('0x21')](){const _0xbf6523=this[_0x1ee0('0x17')],_0x583f8f=_0xbf6523[_0x1ee0('0x1c')][_0x1ee0('0xe')](_0x1ee0('0x16'));_0xbf6523['ui'][_0x1ee0('0x1')][_0x1ee0('0x22')](_0x1ee0('0x1b'),_0x5198d8=>{const _0xd7f452=_0x235bfe(_0x5198d8),_0x2fead5=_0xd7f452['panelView'][_0x1ee0('0x20')],_0x599b8a=new _0x3b7327(_0x5198d8),_0x41dc25=new _0x4ba65c(_0x5198d8),_0x3bf071=new _0x25ccf0(_0x5198d8),_0x5213ce=new _0x4ba65c(_0x5198d8),_0x5469a3=new _0x25ccf0(_0x5198d8),_0x6abe91=new _0x4b9c86(_0x5198d8);function _0x4b3d20(){_0x2fead5[_0x1ee0('0x19')]&&_0x2fead5[_0x1ee0('0x1a')](0x0),_0x2fead5[_0x1ee0('0x22')](_0x599b8a);}function _0x52de75(){_0xd7f452['isOpen']=!0x1,_0xbf6523[_0x1ee0('0x0')][_0x1ee0('0x12')][_0x1ee0('0x1f')]();}return _0xd7f452[_0x1ee0('0x2')](_0x1ee0('0x11'))['to'](_0x583f8f,_0x1ee0('0x18'),_0x583f8f,_0x1ee0('0x11'),_0xbf6523,_0x1ee0('0xf'),(_0x351318,_0x11bb10,_0x51780a)=>_0x351318&&_0x11bb10&&!_0x51780a),_0xd7f452[_0x1ee0('0x3')][_0x1ee0('0xb')]({'icon':_0x32fa24,'label':_0x576e48(_0x5198d8,_0x1ee0('0x4')),'tooltip':!0x0}),_0x3bf071[_0x1ee0('0xb')]({'label':_0x576e48(_0x5198d8,_0x1ee0('0x5')),'withText':!0x0}),_0x3bf071['bind'](_0x1ee0('0x11'))['to'](_0x583f8f,_0x1ee0('0x18'),_0x583f8f,_0x1ee0('0x11'),_0xbf6523,'isReadOnly',(_0x4cc689,_0x560d0b,_0xf1da6f)=>_0x4cc689&&_0x560d0b&&!_0xf1da6f),_0x3bf071['on'](_0x1ee0('0xd'),()=>function(){_0x2fead5['length']&&_0x2fead5[_0x1ee0('0x1a')](0x0),(_0x6abe91[_0x1ee0('0x1d')](),_0x2fead5['add'](_0x6abe91),_0x6abe91[_0x1ee0('0x1f')]());}()),_0x5469a3['set']({'label':_0x576e48(_0x5198d8,_0x1ee0('0x1e')),'withText':!0x0}),_0x5469a3[_0x1ee0('0x2')](_0x1ee0('0x11'))['to'](_0x583f8f,'isReady',_0xbf6523,_0x1ee0('0xf'),(_0xba11e3,_0x554378)=>_0xba11e3&&!_0x554378),_0x5469a3['on'](_0x1ee0('0xd'),()=>{_0xbf6523['config'][_0x1ee0('0xe')]('revisionHistory')[_0x1ee0('0x10')](),_0x52de75();}),_0x41dc25[_0x1ee0('0x20')][_0x1ee0('0x22')](_0x3bf071),_0x5213ce[_0x1ee0('0x20')][_0x1ee0('0x22')](_0x5469a3),_0x599b8a[_0x1ee0('0x15')]['addMany']([_0x41dc25,_0x5213ce]),_0xd7f452['on'](_0x1ee0('0x13'),()=>_0x4b3d20()),_0x6abe91[_0x1ee0('0x7')]['bind']('isEnabled')['to'](_0x583f8f,_0x1ee0('0x18'),_0x583f8f,_0x1ee0('0x11'),_0xbf6523,_0x1ee0('0xf'),(_0x38e1d1,_0x4befad,_0x46f27f)=>_0x38e1d1&&_0x4befad&&!_0x46f27f),_0x6abe91['on'](_0x1ee0('0x14'),()=>(_0xbf6523['plugins']['get'](_0x5d5cbe)['saveRevision']({'name':_0x6abe91[_0x1ee0('0xa')]}),void _0x52de75())),_0x6abe91['on'](_0x1ee0('0x6'),()=>_0x4b3d20()),_0x6abe91[_0x1ee0('0xc')](),_0x4b3d20(),_0xd7f452;});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2c98=['setName','requires','action','isReady','revisionSetName','Compare\x20against\x20selected','add','fieldView','isEnabled','highlightRevisions','_revisionViewer','_revisions','plugins','_handleRevisionSelected','listenTo','compare','_handleEditorDataReady','isVisible','getRevision','ready','diff','nameRevision','editor','selectRevision','focus','RevisionsSidebar','init','remove','revisionHistory.revisionActions','pluginName','destroy','map','repository','_createRevisionActions','get','Restore\x20this\x20revision','render','_sidebarView','getEarlierVisibleRevision','isSelected','availableRevisionActions','config','newRevisionId','restoreRevision','getLaterVisibleRevision','Name\x20this\x20revision','getRevisionsInDiff','name','revisionSelected','_handleRevisionSetName','getIndex','_revisionsRepository','revisionHistory.viewerSidebarContainer','change:diff','defaultRevisionActions','revisionViews','compareAgainstSelected','element','data','bind','length'];(function(_0x2b3dbe,_0x2c9800){const _0x4c0a55=function(_0x3aae97){while(--_0x3aae97){_0x2b3dbe['push'](_0x2b3dbe['shift']());}};_0x4c0a55(++_0x2c9800);}(_0x2c98,0x119));const _0x4c0a=function(_0x2b3dbe,_0x2c9800){_0x2b3dbe=_0x2b3dbe-0x0;let _0x4c0a55=_0x2c98[_0x2b3dbe];return _0x4c0a55;};import{Plugin as _0x43dc0b}from'ckeditor5/src/core';import _0x49fc1c from'./revisionssidebarview';import _0x100bdb from'../../revisionviewer';export default class y extends _0x43dc0b{static get[_0x4c0a('0x35')](){return _0x4c0a('0x31');}static get[_0x4c0a('0x19')](){return[_0x100bdb];}constructor(_0x3202e2){super(_0x3202e2),this[_0x4c0a('0x22')]=_0x3202e2[_0x4c0a('0x24')][_0x4c0a('0x3a')](_0x100bdb),this[_0x4c0a('0xe')]=this['_revisionViewer'][_0x4c0a('0x38')],this[_0x4c0a('0x0')]=null;}[_0x4c0a('0x32')](){const _0x27ee75=this[_0x4c0a('0xe')][_0x4c0a('0x23')],_0x55aac9=this[_0x4c0a('0x39')](),_0x5ca830=this[_0x4c0a('0x2e')][_0x4c0a('0x4')][_0x4c0a('0x3a')](_0x4c0a('0xf'));this[_0x4c0a('0x0')]=new _0x49fc1c(this['editor']['locale'],_0x27ee75,_0x55aac9),this[_0x4c0a('0x0')]['on'](_0x4c0a('0xb'),this[_0x4c0a('0x25')][_0x4c0a('0x16')](this)),this['_sidebarView']['on'](_0x4c0a('0x1c'),this['_handleRevisionSetName'][_0x4c0a('0x16')](this)),this[_0x4c0a('0x0')][_0x4c0a('0x16')](_0x4c0a('0x20'))['to'](this[_0x4c0a('0x22')]),this[_0x4c0a('0x0')]['timePeriodViews']['on'](_0x4c0a('0x1e'),(_0x2239bc,_0x598bcd)=>{_0x598bcd[_0x4c0a('0x12')]['on']('add',(_0x4e993c,_0x4c91c6)=>{_0x4c91c6['bind']('isEnabled',_0x4c0a('0x1b'))['to'](this[_0x4c0a('0x22')]);});}),this[_0x4c0a('0x0')][_0x4c0a('0x3c')](),this[_0x4c0a('0x26')](this[_0x4c0a('0x2e')][_0x4c0a('0x15')],_0x4c0a('0x2b'),this[_0x4c0a('0x28')]['bind'](this)),this[_0x4c0a('0x26')](this[_0x4c0a('0x22')],_0x4c0a('0x10'),this['_handleDiffChange'][_0x4c0a('0x16')](this)),_0x5ca830['appendChild'](this[_0x4c0a('0x0')][_0x4c0a('0x14')]);}[_0x4c0a('0x36')](){this[_0x4c0a('0x0')][_0x4c0a('0x14')][_0x4c0a('0x33')](),this[_0x4c0a('0x0')][_0x4c0a('0x36')]();}[_0x4c0a('0x28')](){const _0x4103b3=this[_0x4c0a('0xe')]['getRevision'](0x0);if(_0x4103b3){const _0x568567=this[_0x4c0a('0xe')]['getEarlierVisibleRevision'](_0x4103b3['id']);this['_revisionViewer'][_0x4c0a('0x27')](_0x4103b3,_0x568567);}}[_0x4c0a('0x25')](_0x3395b5,_0x33d4be){const _0x59fd48=this[_0x4c0a('0xe')][_0x4c0a('0x2a')](_0x33d4be['id']),_0x5b3d99=this[_0x4c0a('0xe')][_0x4c0a('0x1')](_0x59fd48['id']);this[_0x4c0a('0x22')][_0x4c0a('0x27')](_0x59fd48,_0x5b3d99);}[_0x4c0a('0xc')](_0x1f1bc6,_0x5956ad){this[_0x4c0a('0xe')][_0x4c0a('0x2a')](_0x5956ad['id'])[_0x4c0a('0x18')](_0x5956ad[_0x4c0a('0xa')]);}['_handleDiffChange'](_0xfc6b2c,_0x4a7275,_0x4d4006){const _0x4db791=this['_revisionsRepository'][_0x4c0a('0x9')](_0x4d4006);_0x4db791['length']>0x2?(this[_0x4c0a('0x0')]['highlightRevisions'](_0x4db791),this[_0x4c0a('0x0')][_0x4c0a('0x2f')](null)):(this['_sidebarView'][_0x4c0a('0x21')]([]),this[_0x4c0a('0x0')]['selectRevision'](_0x4db791[0x0]));}[_0x4c0a('0x39')](){const _0x10c430=this['editor'],_0x431477=y[_0x4c0a('0x3')],_0x9f4b35=_0x10c430['config']['get'](_0x4c0a('0x34'))||y[_0x4c0a('0x11')];if(_0x9f4b35[_0x4c0a('0x17')])return _0x9f4b35[_0x4c0a('0x37')](_0x30e3c0=>{const _0x1af7b8='string'==typeof _0x30e3c0?Object['assign']({},_0x431477[_0x30e3c0]):_0x30e3c0;return _0x1af7b8[_0x4c0a('0x1a')]=_0x1af7b8[_0x4c0a('0x1a')][_0x4c0a('0x16')](this,_0x10c430),_0x1af7b8[_0x4c0a('0x29')]&&(_0x1af7b8[_0x4c0a('0x29')]=_0x1af7b8[_0x4c0a('0x29')][_0x4c0a('0x16')](this,_0x10c430)),_0x1af7b8;});}}y['availableRevisionActions']={'compareAgainstSelected':{'name':_0x4c0a('0x1d'),'action':({plugins:_0x265eb5},_0x5a2790)=>{const _0x17c40b=_0x265eb5[_0x4c0a('0x3a')](_0x100bdb),_0x445418=_0x17c40b['repository'];let _0x4785d4=_0x17c40b[_0x4c0a('0x2c')][_0x4c0a('0x5')],_0x39125a=_0x5a2790['id'];_0x445418[_0x4c0a('0xd')](_0x4785d4)>_0x445418[_0x4c0a('0xd')](_0x39125a)&&([_0x4785d4,_0x39125a]=[_0x39125a,_0x4785d4]),_0x17c40b[_0x4c0a('0x27')](_0x4785d4,_0x39125a);},'isVisible':({plugins:_0x4a0319},_0x4ab9f7)=>{const _0x481302=_0x4a0319['get'](_0x100bdb);return!(_0x481302['repository'][_0x4c0a('0x9')](_0x481302[_0x4c0a('0x2c')])[_0x4c0a('0x17')]>0x2)&&!_0x4ab9f7[_0x4c0a('0x2')];}},'restoreRevision':{'name':_0x4c0a('0x3b'),'action':(_0x2e550e,{id:_0x2f6064})=>{_0x2e550e[_0x4c0a('0x4')][_0x4c0a('0x3a')]('revisionHistory')['restoreRevisionCallback'](_0x2f6064);},'isVisible':({plugins:_0x5b770a},_0x402b9a)=>!!_0x5b770a[_0x4c0a('0x3a')](_0x100bdb)[_0x4c0a('0x38')][_0x4c0a('0x7')](_0x402b9a['id'])},'nameRevision':{'name':_0x4c0a('0x8'),'action':({plugins:_0x3812be},{id:_0x18b6ae,revisionNameView:_0x2191cf})=>{const _0x5a0200=_0x3812be[_0x4c0a('0x3a')](_0x100bdb),_0x4e0acd=_0x5a0200[_0x4c0a('0x38')][_0x4c0a('0x1')](_0x18b6ae);_0x5a0200[_0x4c0a('0x27')](_0x18b6ae,_0x4e0acd),_0x2191cf[_0x4c0a('0x30')](),_0x2191cf[_0x4c0a('0x1f')]['select']();}}},y[_0x4c0a('0x11')]=[_0x4c0a('0x13'),_0x4c0a('0x6'),_0x4c0a('0x2d')];
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x218f=['ck-revision-history-sidebar__header','content','setTemplate','ck-revision-history-sidebar__header__label'];(function(_0x1b6456,_0x218f5a){const _0x4d5cc5=function(_0x50abdc){while(--_0x50abdc){_0x1b6456['push'](_0x1b6456['shift']());}};_0x4d5cc5(++_0x218f5a);}(_0x218f,0xd7));const _0x4d5c=function(_0x1b6456,_0x218f5a){_0x1b6456=_0x1b6456-0x0;let _0x4d5cc5=_0x218f[_0x1b6456];return _0x4d5cc5;};import{View as _0x3942d9,IconView as _0x34c657}from'ckeditor5/src/ui';import{getTranslation as _0x1556f1}from'../../utils/common-translations';import _0x29c39c from'../../../theme/icons/revision-history.svg';import'../../../theme/revisionssidebar/revisionssidebarheader.css';export default class cs extends _0x3942d9{constructor(_0x361e82){super(_0x361e82);const _0x4e6978=new _0x34c657(_0x361e82);_0x4e6978[_0x4d5c('0x2')]=_0x29c39c,this[_0x4d5c('0x3')]({'tag':'div','attributes':{'class':['ck','ck-reset_all',_0x4d5c('0x1')]},'children':[_0x4e6978,{'tag':'span','attributes':{'class':['ck',_0x4d5c('0x0')]},'children':[_0x1556f1(_0x361e82,'Revision\x20history')]}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x27d1=['revisionViews','remove','ck-revision-history-sidebar__time-period','add','setTemplate','createCollection','addRevision','ck-revision-history-sidebar__time-period__label','locale','startDate','setName','ck-revision-history-sidebar__time-period__revisions','delegate','_revisionActions','find','select','span'];(function(_0x36b50c,_0x27d156){const _0x2f813f=function(_0x5b461e){while(--_0x5b461e){_0x36b50c['push'](_0x36b50c['shift']());}};_0x2f813f(++_0x27d156);}(_0x27d1,0x14a));const _0x2f81=function(_0x36b50c,_0x27d156){_0x36b50c=_0x36b50c-0x0;let _0x2f813f=_0x27d1[_0x36b50c];return _0x2f813f;};import{View as _0x547658}from'ckeditor5/src/ui';import _0x52c934 from'../revision/revisionview';import{getDateTimePeriodInfo as _0xae882}from'./utils';import'../../../theme/revisionssidebar/revisionssidebartimeperiod.css';export default class pi extends _0x547658{constructor(_0x4b1322,_0x471d88,_0x444fb4){super(_0x4b1322);const _0xfc9530=_0xae882(_0x471d88,this[_0x2f81('0x1')]['uiLanguage'])['localizedPeriodName'];this[_0x2f81('0x2')]=_0x471d88,this[_0x2f81('0x6')]=_0x444fb4,this[_0x2f81('0xa')]=this[_0x2f81('0xf')](),this[_0x2f81('0xa')][_0x2f81('0x5')](_0x2f81('0x8'))['to'](this),this['revisionViews'][_0x2f81('0x5')](_0x2f81('0x3'))['to'](this),this[_0x2f81('0xe')]({'tag':'div','attributes':{'class':['ck',_0x2f81('0xc')]},'children':[{'tag':_0x2f81('0x9'),'attributes':{'class':['ck',_0x2f81('0x0')]},'children':[{'text':_0xfc9530}]},{'tag':'div','attributes':{'class':['ck',_0x2f81('0x4')]},'children':this[_0x2f81('0xa')]}]});}[_0x2f81('0x10')](_0x44a67c){const _0x149c76=new _0x52c934(this[_0x2f81('0x1')],_0x44a67c,this['_revisionActions']);this[_0x2f81('0xa')][_0x2f81('0xd')](_0x149c76);}['removeRevision'](_0x3efdf1){const _0x9f851=this[_0x2f81('0xa')][_0x2f81('0x7')](_0x51f941=>_0x51f941['id']===_0x3efdf1['id']);this[_0x2f81('0xa')][_0x2f81('0xb')](_0x9f851);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1475=['set','getTime','div','selectRevision','timePeriodViews','ck-revision-history-sidebar','revisionViews','createCollection','unhighlight','_revisionActions','highlightRevisions','_removeRevision','ck-reset','ck-rounded-corners','removeRevision','ck-revision-history-sidebar__timeline','deselect','revisionSetName','bindTemplate','remove','revisionSelected','map','flat','_addRevision','add','startDate','addRevision','isEnabled','ck-disabled','select','_revisions','get','setName','render','fire','locale','_getTimePeriodViewByStartDate','delegate','setTemplate'];(function(_0x21da36,_0x1475ff){const _0x2d5734=function(_0x10bc83){while(--_0x10bc83){_0x21da36['push'](_0x21da36['shift']());}};_0x2d5734(++_0x1475ff);}(_0x1475,0x6c));const _0x2d57=function(_0x21da36,_0x1475ff){_0x21da36=_0x21da36-0x0;let _0x2d5734=_0x1475[_0x21da36];return _0x2d5734;};import{View as _0x4da7d7}from'ckeditor5/src/ui';import _0x3b199b from'./revisionssidebartimeperiodview';import _0x1fbaf9 from'./revisionssidebarheaderview';import{getDateTimePeriodInfo as _0x366df5}from'./utils';import'../../../theme/revisionssidebar/revisionssidebar.css';export default class vi extends _0x4da7d7{constructor(_0x2dde29,_0x56c2e5,_0x3de1d7){super(_0x2dde29);const _0x45e640=this[_0x2d57('0x1b')];this[_0x2d57('0xd')]=this[_0x2d57('0x10')](),this['timePeriodViews'][_0x2d57('0x7')](_0x2d57('0x26'))['to'](this),this[_0x2d57('0xd')][_0x2d57('0x7')](_0x2d57('0x2'))['to'](this),this['_revisions']=_0x56c2e5,this[_0x2d57('0x12')]=_0x3de1d7,this['on'](_0x2d57('0x26'),(_0x34f302,_0x596445)=>{this[_0x2d57('0x4')](_0x2d57('0x1d'),_0x596445);}),this['on'](_0x2d57('0x2'),(_0x3f1807,_0x3d775a)=>{this[_0x2d57('0x4')](_0x2d57('0x1a'),_0x3d775a);}),this[_0x2d57('0x9')]('isEnabled',!0x1),this[_0x2d57('0x8')]({'tag':_0x2d57('0xb'),'attributes':{'class':['ck',_0x2d57('0x15'),_0x2d57('0x16'),_0x2d57('0xe')]},'children':[new _0x1fbaf9(_0x2dde29),{'tag':_0x2d57('0xb'),'attributes':{'class':['ck',_0x2d57('0x18'),_0x45e640['if'](_0x2d57('0x24'),_0x2d57('0x25'),_0x5a8e5c=>!_0x5a8e5c)]},'children':this[_0x2d57('0xd')]}]});}[_0x2d57('0x3')](){super[_0x2d57('0x3')]();for(const _0x5b7127 of this[_0x2d57('0x0')])this['_addRevision'](_0x5b7127);this[_0x2d57('0x0')]['on']('add',(_0x4ad68f,_0x3074f2)=>{this[_0x2d57('0x20')](_0x3074f2);}),this[_0x2d57('0x0')]['on'](_0x2d57('0x1c'),(_0x2e91f5,_0x2d9709)=>{this[_0x2d57('0x14')](_0x2d9709);});}get[_0x2d57('0xf')](){return this[_0x2d57('0xd')][_0x2d57('0x1e')](_0x4fbf67=>_0x4fbf67[_0x2d57('0xf')][_0x2d57('0x1e')](_0x20643d=>_0x20643d))[_0x2d57('0x1f')]();}[_0x2d57('0xc')](_0x50debc){for(const _0xb6c86d of this[_0x2d57('0xf')])_0x50debc&&_0x50debc['id']===_0xb6c86d['id']?_0xb6c86d['select']():_0xb6c86d[_0x2d57('0x19')]();}[_0x2d57('0x13')](_0x5d6d11){for(const _0x414dfa of this[_0x2d57('0xf')])_0x5d6d11['some'](({id:_0x437f0d})=>_0x437f0d===_0x414dfa['id'])?_0x414dfa['highlight']():_0x414dfa[_0x2d57('0x11')]();}[_0x2d57('0x20')](_0x26b0dd){const _0x45bf9b=_0x366df5(_0x26b0dd['createdAt'])[_0x2d57('0x22')];let _0x5828b8=this[_0x2d57('0xd')][_0x2d57('0x1')](0x0);_0x5828b8&&_0x5828b8[_0x2d57('0x22')][_0x2d57('0xa')]()===_0x45bf9b[_0x2d57('0xa')]()||(_0x5828b8=new _0x3b199b(this[_0x2d57('0x5')],_0x45bf9b,this['_revisionActions']),this[_0x2d57('0xd')][_0x2d57('0x21')](_0x5828b8)),_0x5828b8[_0x2d57('0x23')](_0x26b0dd);}[_0x2d57('0x14')](_0x1c50f2){const _0x4b2c55=_0x366df5(_0x1c50f2['createdAt'])[_0x2d57('0x22')];this[_0x2d57('0x6')](_0x4b2c55)[_0x2d57('0x17')](_0x1c50f2);}[_0x2d57('0x6')](_0x336833){return this[_0x2d57('0xd')]['find'](_0x4f0203=>_0x4f0203[_0x2d57('0x22')][_0x2d57('0xa')]()===_0x336833['getTime']());}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x397c=['minus','local','fromJSDate','day','startOf','month','hasSame','week','toJSDate','toRelativeCalendar','year','weekdayLong','setLocale'];(function(_0xb6552c,_0x397cac){const _0x3e006c=function(_0x2afd66){while(--_0x2afd66){_0xb6552c['push'](_0xb6552c['shift']());}};_0x3e006c(++_0x397cac);}(_0x397c,0x93));const _0x3e00=function(_0xb6552c,_0x397cac){_0xb6552c=_0xb6552c-0x0;let _0x3e006c=_0x397c[_0xb6552c];return _0x3e006c;};import{DateTime as _0x222eff}from'luxon';export function getDateTimePeriodInfo(_0x5dc6fd,_0x46b0ba){_0x5dc6fd=_0x222eff[_0x3e00('0xb')](_0x5dc6fd)[_0x3e00('0x8')](_0x46b0ba);const _0x429543=_0x222eff[_0x3e00('0xa')](),_0x1c778d=_0x429543[_0x3e00('0x9')]({'days':0x1})[_0x3e00('0x0')](_0x3e00('0xc'));let _0x5ebfd9,_0x39404c;return _0x5dc6fd[_0x3e00('0x2')](_0x429543,'day')?(_0x5ebfd9=_0x5dc6fd[_0x3e00('0x0')](_0x3e00('0xc'))[_0x3e00('0x4')](),_0x39404c=_0x5dc6fd[_0x3e00('0x5')]()):_0x5dc6fd['hasSame'](_0x1c778d,_0x3e00('0xc'))?(_0x5ebfd9=_0x1c778d[_0x3e00('0x4')](),_0x39404c=_0x5dc6fd[_0x3e00('0x5')]()):_0x5dc6fd['hasSame'](_0x429543,_0x3e00('0x3'))?(_0x5ebfd9=_0x5dc6fd[_0x3e00('0x0')]('week')['toJSDate'](),_0x39404c=_0x5dc6fd[_0x3e00('0x7')]):_0x5dc6fd[_0x3e00('0x2')](_0x429543,_0x3e00('0x6'))?(_0x5ebfd9=_0x5dc6fd[_0x3e00('0x0')](_0x3e00('0x1'))['toJSDate'](),_0x39404c=_0x5dc6fd['monthLong']):(_0x5ebfd9=_0x5dc6fd[_0x3e00('0x0')]('year')[_0x3e00('0x4')](),_0x39404c=_0x5dc6fd[_0x3e00('0x6')]),{'startDate':_0x5ebfd9,'localizedPeriodName':_0x39404c};}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xe46b=['ck-revision-change__label','setTemplate','name','add','data','author','set','div','ck-revision-change__','span','ck-revision-change','Removed\x20by','type','Suggested\x20by','focus','element','ck-annotation','_model','isSuggestion'];(function(_0x2e4694,_0xe46b60){const _0x361f2e=function(_0x25beea){while(--_0x25beea){_0x2e4694['push'](_0x2e4694['shift']());}};_0x361f2e(++_0xe46b60);}(_0xe46b,0x126));const _0x361f=function(_0x2e4694,_0xe46b60){_0x2e4694=_0x2e4694-0x0;let _0x361f2e=_0xe46b[_0x2e4694];return _0x361f2e;};import{View as _0x30a747}from'ckeditor5/src/ui';import{getTranslation as _0x2ef7d0}from'../../utils/common-translations';export default class X extends _0x30a747{constructor(_0x4c4a3d,_0x529ceb){super(_0x4c4a3d),this[_0x361f('0x8')]=_0x529ceb;const _0x1cc16c=this['bindTemplate'],_0x4b279d=_0x2ef7d0(_0x4c4a3d,_0x529ceb[_0x361f('0xe')][_0x361f('0x9')]?_0x361f('0x4'):_0x361f('0xd')==_0x529ceb['type']?'Added\x20by':_0x361f('0x2'));this[_0x361f('0x10')](_0x361f('0x3'),_0x529ceb[_0x361f('0x3')]),this[_0x361f('0xb')]({'tag':_0x361f('0x11'),'attributes':{'class':[_0x361f('0x7'),_0x361f('0x1'),_0x1cc16c['to'](_0x361f('0x3'),_0x4a24a2=>_0x361f('0x12')+_0x4a24a2)],'tabindex':-0x1},'children':[{'tag':_0x361f('0x0'),'children':[{'tag':_0x361f('0x0'),'attributes':{'class':[_0x361f('0xa')]},'children':[{'text':_0x4b279d}]},{'text':'\x20'+_0x529ceb[_0x361f('0xf')][_0x361f('0xc')]}]}]});}[_0x361f('0x5')](){this[_0x361f('0x6')][_0x361f('0x5')]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x36ef=['isForwardNavigationEnabled','isNavigationMode','NUMBER_OF_CHANGES','set','ck-revision-history-ui__changes-navigation__navigation','execute','setTemplate','ck-revision-history-ui','fire','Show\x20previous\x20change','numberOfChanges','isReady','backward','div','span','Loading...','bind','bindTemplate','isBackwardNavigationEnabled','_isStatusLabelVisible','currentChangeNumber','ck-hidden','_statusText','forward','ck-revision-history-ui__changes-navigation'];(function(_0x57e396,_0x36ef1f){const _0x1501df=function(_0x228be3){while(--_0x228be3){_0x57e396['push'](_0x57e396['shift']());}};_0x1501df(++_0x36ef1f);}(_0x36ef,0x7b));const _0x1501=function(_0x57e396,_0x36ef1f){_0x57e396=_0x57e396-0x0;let _0x1501df=_0x36ef[_0x57e396];return _0x1501df;};import{View as _0x15cd6b,ButtonView as _0x255baa,ToolbarSeparatorView as _0x3e610e}from'ckeditor5/src/ui';import{getTranslation as _0x363859}from'../../utils/common-translations';import _0x5dd33c from'../../../theme/icons/arrow-up.svg';import _0x596973 from'../../../theme/icons/arrow-down.svg';import'../../../theme/changesnavigation.css';export default class bi extends _0x15cd6b{constructor(_0x25ff58){super(_0x25ff58);const _0x485a88=this[_0x1501('0x13')],_0x7e589d=new _0x255baa(_0x25ff58),_0x45ce42=new _0x255baa(_0x25ff58);this[_0x1501('0x5')](_0x1501('0x3'),!0x1),this[_0x1501('0x5')](_0x1501('0xd'),!0x1),this[_0x1501('0x5')](_0x1501('0x16'),0x0),this[_0x1501('0x5')](_0x1501('0xc'),0x0),this[_0x1501('0x5')](_0x1501('0x2'),!0x1),this[_0x1501('0x5')]('isBackwardNavigationEnabled',!0x1),this[_0x1501('0x12')](_0x1501('0x15'))['to'](this,_0x1501('0xd'),this,_0x1501('0xc'),(_0xe11e29,_0x52c982)=>_0xe11e29&&_0x52c982>0x0),this[_0x1501('0x12')]('_statusText')['to'](this,_0x1501('0xd'),this,_0x1501('0x16'),this,_0x1501('0xc'),this,_0x1501('0x3'),(_0x29b7ab,_0x3cdca7,_0x3e6f48,_0x1c2d1c)=>{if(!_0x29b7ab)return _0x363859(_0x25ff58,_0x1501('0x11'));if(!_0x3e6f48)return _0x363859(_0x25ff58,'No\x20changes');const _0x135d39=_0x363859(_0x25ff58,_0x1501('0x4'),_0x3e6f48);return _0x1c2d1c?_0x363859(_0x25ff58,'X_OF_Y_CHANGES',[_0x3cdca7+0x1,_0x3e6f48]):_0x135d39;}),_0x7e589d[_0x1501('0x5')]({'label':_0x363859(_0x25ff58,_0x1501('0xb')),'tooltip':!0x0,'icon':_0x5dd33c}),_0x45ce42[_0x1501('0x5')]({'label':_0x363859(_0x25ff58,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x596973}),_0x7e589d[_0x1501('0x12')]('isEnabled')['to'](this,_0x1501('0x14')),_0x45ce42[_0x1501('0x12')]('isEnabled')['to'](this,_0x1501('0x2')),_0x7e589d['on'](_0x1501('0x7'),()=>this[_0x1501('0xa')](_0x1501('0x7'),_0x1501('0xe'))),_0x45ce42['on']('execute',()=>this[_0x1501('0xa')]('execute',_0x1501('0x0'))),this[_0x1501('0x8')]({'tag':'div','attributes':{'class':['ck',_0x1501('0x9'),_0x1501('0x1')]},'children':[{'tag':_0x1501('0x10'),'attributes':{'class':['ck-revision-history-ui__changes-navigation__wrapper']},'children':[{'tag':_0x1501('0x10'),'attributes':{'class':['ck-revision-history-ui__changes-navigation__label',_0x485a88['if']('_isStatusLabelVisible',_0x1501('0x17'),_0x1286cd=>!_0x1286cd)]},'children':[{'text':_0x485a88['to'](_0x1501('0x3'),_0x113eea=>_0x113eea?_0x363859(_0x25ff58,'EDIT_X_OF_Y_REVISIONS')+':\x20':_0x363859(_0x25ff58,'Total')+':\x20')}]},{'text':_0x485a88['to'](_0x1501('0x18'))}]},new _0x3e610e(),{'tag':_0x1501('0xf'),'attributes':{'class':[_0x1501('0x6')]},'children':[_0x7e589d,_0x45ce42]}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2e6c=['ck-editor__editable__loading-overlay','change','editor','RevisionViewerLoadingOverlay','roots','addClass','view','show','document','editing'];(function(_0x428799,_0x2e6cbb){const _0xf77788=function(_0x55be87){while(--_0x55be87){_0x428799['push'](_0x428799['shift']());}};_0xf77788(++_0x2e6cbb);}(_0x2e6c,0x17b));const _0xf777=function(_0x428799,_0x2e6cbb){_0x428799=_0x428799-0x0;let _0xf77788=_0x2e6c[_0x428799];return _0xf77788;};import{Plugin as _0x7f0b51}from'ckeditor5/src/core';import'../../../theme/revisionviewerloadingoverlay.css';export default class oe extends _0x7f0b51{static get['pluginName'](){return _0xf777('0x4');}[_0xf777('0x8')](){const _0x2c8815=this[_0xf777('0x3')]['editing']['view'];_0x2c8815[_0xf777('0x2')](_0x398d2d=>{for(const _0x3eb36f of _0x2c8815[_0xf777('0x9')][_0xf777('0x5')])_0x398d2d[_0xf777('0x6')](_0xf777('0x1'),_0x3eb36f);});}['hide'](){const _0x18b86b=this['editor'][_0xf777('0x0')][_0xf777('0x7')];_0x18b86b[_0xf777('0x2')](_0x5410f6=>{for(const _0x5ef949 of _0x18b86b[_0xf777('0x9')]['roots'])_0x5410f6['removeClass'](_0xf777('0x1'),_0x5ef949);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1d1f=['isEnabled','pluginName','bind','config','componentFactory','commands','show','isForwardNavigationEnabled','set','exitToEditing','currentChangeNumber','change:isReady','forward','numberOfChanges','showPreviousChange','isNavigationMode','ck-revision-history-ui__back-to-editing','add','restoreRevision','revisionHistory','init','Restore\x20this\x20revision','Back\x20to\x20editing','changesNavigation','execute','listenTo','get','requires','plugins'];(function(_0x251ac3,_0x1d1f80){const _0x590bcc=function(_0x541f0d){while(--_0x541f0d){_0x251ac3['push'](_0x251ac3['shift']());}};_0x590bcc(++_0x1d1f80);}(_0x1d1f,0xff));const _0x590b=function(_0x251ac3,_0x1d1f80){_0x251ac3=_0x251ac3-0x0;let _0x590bcc=_0x1d1f[_0x251ac3];return _0x590bcc;};import{Plugin as _0x4a7c16}from'ckeditor5/src/core';import{ButtonView as _0x23c4ff}from'ckeditor5/src/ui';import _0x2080e6 from'./changesnavigationview';import _0x44c632 from'./../../revisionviewer';import _0x547bc0 from'./revisionviewerloadingoverlay';import{getTranslation as _0x2fd6fa}from'../../utils/common-translations';import _0x1c06bc from'@ckeditor/ckeditor5-undo/theme/icons/undo.svg';import'../../../theme/revisionviewer.css';export default class m extends _0x4a7c16{static get[_0x590b('0x7')](){return'RevisionViewerUI';}static get[_0x590b('0x4')](){return[_0x44c632,_0x547bc0];}[_0x590b('0x1a')](){const _0x499ce2=this['editor'],_0x106f7a=_0x499ce2[_0x590b('0x5')][_0x590b('0x3')](_0x44c632),_0x40ab5d=_0x499ce2['plugins'][_0x590b('0x3')](_0x547bc0);_0x499ce2['ui'][_0x590b('0xa')][_0x590b('0x17')](_0x590b('0xf'),_0x3c5886=>{const _0x229b9c=new _0x23c4ff(_0x3c5886);return _0x229b9c['set']({'label':_0x2fd6fa(_0x3c5886,_0x590b('0x1c')),'icon':_0x1c06bc,'withText':!0x0,'tooltip':!0x0,'class':_0x590b('0x16')}),this[_0x590b('0x2')](_0x229b9c,_0x590b('0x1'),()=>{_0x499ce2[_0x590b('0x9')][_0x590b('0x3')](_0x590b('0x19'))['closeRevisionViewerCallback']();}),_0x229b9c;}),_0x499ce2['ui'][_0x590b('0xa')][_0x590b('0x17')](_0x590b('0x18'),_0x1be56e=>{const _0x50aa9c=new _0x23c4ff(_0x1be56e);return _0x50aa9c[_0x590b('0xe')]({'label':_0x2fd6fa(_0x1be56e,_0x590b('0x1b')),'withText':!0x0,'tooltip':!0x0}),_0x50aa9c[_0x590b('0x8')](_0x590b('0x6'))['to'](_0x499ce2[_0x590b('0xb')][_0x590b('0x3')](_0x590b('0x18'))),this[_0x590b('0x2')](_0x50aa9c,'execute',()=>_0x499ce2[_0x590b('0x1')](_0x590b('0x18'))),_0x50aa9c;}),_0x499ce2['ui'][_0x590b('0xa')][_0x590b('0x17')](_0x590b('0x0'),_0x55c7c5=>{const _0x20f97a=new _0x2080e6(_0x55c7c5),_0x5b1cc8=_0x499ce2[_0x590b('0xb')][_0x590b('0x3')](_0x590b('0x14')),_0x2a41fd=_0x499ce2[_0x590b('0xb')][_0x590b('0x3')]('showNextChange');return _0x20f97a[_0x590b('0x8')]('isBackwardNavigationEnabled')['to'](_0x5b1cc8,_0x590b('0x6')),_0x20f97a[_0x590b('0x8')](_0x590b('0xd'))['to'](_0x2a41fd,_0x590b('0x6')),_0x20f97a[_0x590b('0x8')]('isReady',_0x590b('0x10'),_0x590b('0x13'),_0x590b('0x15'))['to'](_0x106f7a),this[_0x590b('0x2')](_0x20f97a,_0x590b('0x1'),(_0x18d4ce,_0x49accc)=>{_0x499ce2['execute'](_0x590b('0x12')===_0x49accc?'showNextChange':_0x590b('0x14'));}),_0x20f97a;}),_0x40ab5d['show'](),_0x106f7a['on'](_0x590b('0x11'),(_0x439961,_0x158d36,_0x5055c2)=>{_0x5055c2?_0x40ab5d['hide']():_0x40ab5d[_0x590b('0xc')]();});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export function getTranslation(
|
|
23
|
+
export function getTranslation(_0x1b264f,_0x57fd9b,_0x5da8c5){const t=_0x1b264f['t'];switch(_0x57fd9b){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'},_0x5da8c5);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x5da8c5);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'});}}
|