@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20231218.0 → 0.0.0-nightly-20231220.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/revision-history.js +1 -1
- package/package.json +6 -6
- package/src/changeitem.js +1 -1
- package/src/editor/revisionviewereditor.js +1 -1
- package/src/editor/revisionviewereditorui.js +1 -1
- package/src/editor/revisionviewereditoruiview.js +1 -1
- package/src/revision.js +1 -1
- package/src/revisiondiff.js +1 -1
- package/src/revisionhistory.js +1 -1
- package/src/revisionsrepository.js +1 -1
- package/src/revisiontracker.js +1 -1
- package/src/revisionviewer.js +1 -1
- package/src/ui/revision/createrevisionactionsdropdown.js +1 -1
- package/src/ui/revision/revisionauthorview.js +1 -1
- package/src/ui/revision/revisionnameview.js +1 -1
- package/src/ui/revision/revisionview.js +1 -1
- package/src/ui/revision/subrevisioncollapserview.js +1 -1
- package/src/ui/revision/subrevisionview.js +1 -1
- package/src/ui/revision/utils.js +1 -1
- package/src/ui/revisionhistory/revisionhistorysaverevisionformview.js +1 -1
- package/src/ui/revisionhistory/revisionhistoryui.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebar.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebarheaderview.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebartimeperiodview.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebarview.js +1 -1
- package/src/ui/revisionssidebar/utils.js +1 -1
- package/src/ui/revisionviewer/changedetailsview.js +1 -1
- package/src/ui/revisionviewer/changesnavigationview.js +1 -1
- package/src/ui/revisionviewer/revisionviewerloadingoverlay.js +1 -1
- package/src/ui/revisionviewer/revisionviewerui.js +1 -1
- package/src/utils/common-translations.js +1 -1
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1135=['remove','get','add','requires','bind','render','execute','isReadOnly','saveRevision','addMany','Save\x20current\x20revision','RevisionHistoryUI','showRevisionViewerCallback','set','componentFactory','Open\x20revision\x20history','cancel','change:isOpen','revisionHistory','config','focus','editing','plugins','isReady','isEnabled','items','children','submit','history','RevisionTracker','view'];(function(_0x1fe2bb,_0x113571){const _0x8ffcef=function(_0x46994b){while(--_0x46994b){_0x1fe2bb['push'](_0x1fe2bb['shift']());}};_0x8ffcef(++_0x113571);}(_0x1135,0xea));const _0x8ffc=function(_0x1fe2bb,_0x113571){_0x1fe2bb=_0x1fe2bb-0x0;let _0x8ffcef=_0x1135[_0x1fe2bb];return _0x8ffcef;};import{Plugin as _0x3bef68,icons as _0x4cc769}from'ckeditor5/src/core.js';import{ListView as _0x16f602,ListItemView as _0xfc2b84,ButtonView as _0x5d327e,createDropdown as _0x27f74a}from'ckeditor5/src/ui.js';import _0x50ec43 from'../../revisiontracker.js';import _0x427046 from'./revisionhistorysaverevisionformview.js';import{getTranslation as _0x4ff7b6}from'../../utils/common-translations.js';export default class u extends _0x3bef68{static get['pluginName'](){return _0x8ffc('0x19');}static get[_0x8ffc('0x11')](){return[_0x50ec43];}['init'](){const _0x5511e4=this['editor'],_0x2d6a3d=_0x5511e4[_0x8ffc('0x5')][_0x8ffc('0xf')](_0x8ffc('0xc'));_0x5511e4['ui'][_0x8ffc('0x1c')][_0x8ffc('0x10')]('revisionHistory',_0x34edb9=>{const _0x13cef1=_0x27f74a(_0x34edb9),_0x1851b3=_0x13cef1['panelView'][_0x8ffc('0x9')],_0x20457d=new _0x16f602(_0x34edb9),_0x4258e6=new _0xfc2b84(_0x34edb9),_0xde59c8=new _0x5d327e(_0x34edb9),_0x234e0b=new _0xfc2b84(_0x34edb9),_0x3a018b=new _0x5d327e(_0x34edb9),_0x30a1b1=new _0x427046(_0x34edb9);function _0x19c5e9(){_0x1851b3['length']&&_0x1851b3[_0x8ffc('0xe')](0x0),_0x1851b3[_0x8ffc('0x10')](_0x20457d);}function _0x4bdf58(){_0x13cef1['isOpen']=!0x1,_0x5511e4[_0x8ffc('0x4')][_0x8ffc('0xd')][_0x8ffc('0x3')]();}return _0x13cef1[_0x8ffc('0x12')](_0x8ffc('0x7'))['to'](_0x2d6a3d,_0x8ffc('0x6'),_0x2d6a3d,_0x8ffc('0x7'),_0x5511e4,_0x8ffc('0x15'),(_0x39f5d4,_0x647c8b,_0x1d1ae6)=>_0x39f5d4&&_0x647c8b&&!_0x1d1ae6),_0x13cef1['buttonView'][_0x8ffc('0x1b')]({'icon':_0x4cc769[_0x8ffc('0xb')],'label':_0x4ff7b6(_0x34edb9,'Revision\x20history'),'tooltip':!0x0}),_0xde59c8['set']({'label':_0x4ff7b6(_0x34edb9,_0x8ffc('0x18')),'withText':!0x0}),_0xde59c8[_0x8ffc('0x12')]('isEnabled')['to'](_0x2d6a3d,_0x8ffc('0x6'),_0x2d6a3d,_0x8ffc('0x7'),_0x5511e4,_0x8ffc('0x15'),(_0x2a5666,_0x52369a,_0x2e30f4)=>_0x2a5666&&_0x52369a&&!_0x2e30f4),_0xde59c8['on'](_0x8ffc('0x14'),()=>function(){_0x1851b3['length']&&_0x1851b3[_0x8ffc('0xe')](0x0),(_0x30a1b1['reset'](),_0x1851b3[_0x8ffc('0x10')](_0x30a1b1),_0x30a1b1[_0x8ffc('0x3')]());}()),_0x3a018b[_0x8ffc('0x1b')]({'label':_0x4ff7b6(_0x34edb9,_0x8ffc('0x1d')),'withText':!0x0}),_0x3a018b[_0x8ffc('0x12')](_0x8ffc('0x7'))['to'](_0x2d6a3d,_0x8ffc('0x6'),_0x5511e4,_0x8ffc('0x15'),(_0x2d921f,_0x4e85bf)=>_0x2d921f&&!_0x4e85bf),_0x3a018b['on'](_0x8ffc('0x14'),()=>{_0x5511e4[_0x8ffc('0x2')][_0x8ffc('0xf')](_0x8ffc('0x1'))[_0x8ffc('0x1a')](),_0x4bdf58();}),_0x4258e6[_0x8ffc('0x9')][_0x8ffc('0x10')](_0xde59c8),_0x234e0b[_0x8ffc('0x9')]['add'](_0x3a018b),_0x20457d[_0x8ffc('0x8')][_0x8ffc('0x17')]([_0x4258e6,_0x234e0b]),_0x13cef1['on'](_0x8ffc('0x0'),()=>_0x19c5e9()),_0x30a1b1['saveButtonView'][_0x8ffc('0x12')](_0x8ffc('0x7'))['to'](_0x2d6a3d,_0x8ffc('0x6'),_0x2d6a3d,_0x8ffc('0x7'),_0x5511e4,_0x8ffc('0x15'),(_0x33f0cc,_0x4b00b6,_0x348255)=>_0x33f0cc&&_0x4b00b6&&!_0x348255),_0x30a1b1['on'](_0x8ffc('0xa'),()=>(_0x5511e4[_0x8ffc('0x5')][_0x8ffc('0xf')](_0x50ec43)[_0x8ffc('0x16')]({'name':_0x30a1b1['revisionName']}),void _0x4bdf58())),_0x30a1b1['on'](_0x8ffc('0x1e'),()=>_0x19c5e9()),_0x30a1b1[_0x8ffc('0x13')](),_0x19c5e9(),_0x13cef1;});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x239b=['revisionSelected','_revisionViewer','requires','bind','_handleEditorDataReady','_sidebarView','isVisible','revisionHistory.viewerSidebarContainer','add','restoreRevision','locale','getEarlierVisibleRevision','listenTo','remove','_handleDiffChange','defaultRevisionActions','isSelected','Name\x20this\x20revision','newRevisionId','_handleRevisionSelected','getIndex','select','assign','plugins','map','highlightRevisions','getLaterVisibleRevision','editor','change:diff','Restore\x20this\x20revision','_createRevisionActions','availableRevisionActions','element','isReady','revisionViews','diff','revisionSetName','name','pluginName','getRevisionsInDiff','action','restoreRevisionCallback','get','destroy','init','render','string','getRevision','focus','length','compare','config','_handleRevisionSetName','repository','revisionHistory.revisionActions','_revisionsRepository','setName','selectRevision'];(function(_0x379d15,_0x239ba2){const _0x266af3=function(_0x23a135){while(--_0x23a135){_0x379d15['push'](_0x379d15['shift']());}};_0x266af3(++_0x239ba2);}(_0x239b,0x14d));const _0x266a=function(_0x379d15,_0x239ba2){_0x379d15=_0x379d15-0x0;let _0x266af3=_0x239b[_0x379d15];return _0x266af3;};import{Plugin as _0x5e113c}from'ckeditor5/src/core.js';import _0x17c50a from'./revisionssidebarview.js';import _0xffb168 from'../../revisionviewer.js';export default class w extends _0x5e113c{static get[_0x266a('0x35')](){return'RevisionsSidebar';}static get[_0x266a('0x11')](){return[_0xffb168];}constructor(_0x209ea8){super(_0x209ea8),this[_0x266a('0x10')]=_0x209ea8[_0x266a('0x26')][_0x266a('0x39')](_0xffb168),this[_0x266a('0xc')]=this[_0x266a('0x10')][_0x266a('0xa')],this[_0x266a('0x14')]=null;}[_0x266a('0x1')](){const _0x190707=this[_0x266a('0xc')]['_revisions'],_0x1043fb=this[_0x266a('0x2d')](),_0xbc104f=this[_0x266a('0x2a')][_0x266a('0x8')][_0x266a('0x39')](_0x266a('0x16'));this['_sidebarView']=new _0x17c50a(this[_0x266a('0x2a')][_0x266a('0x19')],_0x190707,_0x1043fb),this['_sidebarView']['on'](_0x266a('0xf'),this['_handleRevisionSelected'][_0x266a('0x12')](this)),this[_0x266a('0x14')]['on'](_0x266a('0x33'),this['_handleRevisionSetName'][_0x266a('0x12')](this)),this[_0x266a('0x14')][_0x266a('0x12')]('isEnabled')['to'](this['_revisionViewer']),this['_sidebarView']['timePeriodViews']['on'](_0x266a('0x17'),(_0x3aedcf,_0x1fba48)=>{_0x1fba48[_0x266a('0x31')]['on'](_0x266a('0x17'),(_0x3da7e4,_0x7ab14c)=>{_0x7ab14c[_0x266a('0x12')]('isEnabled',_0x266a('0x30'))['to'](this[_0x266a('0x10')]);});}),this[_0x266a('0x14')][_0x266a('0x2')](),this[_0x266a('0x1b')](this[_0x266a('0x2a')]['data'],'ready',this[_0x266a('0x13')][_0x266a('0x12')](this)),this[_0x266a('0x1b')](this['_revisionViewer'],_0x266a('0x2b'),this[_0x266a('0x1d')][_0x266a('0x12')](this)),_0xbc104f['appendChild'](this[_0x266a('0x14')][_0x266a('0x2f')]);}[_0x266a('0x0')](){this[_0x266a('0x14')][_0x266a('0x2f')][_0x266a('0x1c')](),this[_0x266a('0x14')]['destroy']();}[_0x266a('0x13')](){const _0x586cbf=this['_revisionsRepository'][_0x266a('0x4')](0x0);if(_0x586cbf){const _0x3be182=this[_0x266a('0xc')][_0x266a('0x1a')](_0x586cbf['id']);this[_0x266a('0x10')][_0x266a('0x7')](_0x586cbf,_0x3be182);}}[_0x266a('0x22')](_0x19876d,_0x514e61){const _0x29dc90=this[_0x266a('0xc')][_0x266a('0x4')](_0x514e61['id']),_0x11ecbc=this[_0x266a('0xc')][_0x266a('0x1a')](_0x29dc90['id']);this[_0x266a('0x10')][_0x266a('0x7')](_0x29dc90,_0x11ecbc);}[_0x266a('0x9')](_0x21b313,_0x400363){this[_0x266a('0xc')]['getRevision'](_0x400363['id'])[_0x266a('0xd')](_0x400363[_0x266a('0x34')]);}[_0x266a('0x1d')](_0x5121ab,_0x119b39,_0x548f22){const _0x59fcd7=this['_revisionsRepository'][_0x266a('0x36')](_0x548f22);_0x59fcd7[_0x266a('0x6')]>0x2?(this[_0x266a('0x14')][_0x266a('0x28')](_0x59fcd7),this[_0x266a('0x14')][_0x266a('0xe')](null)):(this[_0x266a('0x14')]['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0x59fcd7[0x0]));}[_0x266a('0x2d')](){const _0x4d3eee=this[_0x266a('0x2a')],_0x47d745=w[_0x266a('0x2e')],_0x46c348=_0x4d3eee[_0x266a('0x8')][_0x266a('0x39')](_0x266a('0xb'))||w[_0x266a('0x1e')];if(_0x46c348['length'])return _0x46c348[_0x266a('0x27')](_0x418e87=>{const _0xaa1518=_0x266a('0x3')==typeof _0x418e87?Object[_0x266a('0x25')]({},_0x47d745[_0x418e87]):_0x418e87;return _0xaa1518[_0x266a('0x37')]=_0xaa1518[_0x266a('0x37')][_0x266a('0x12')](this,_0x4d3eee),_0xaa1518[_0x266a('0x15')]&&(_0xaa1518['isVisible']=_0xaa1518[_0x266a('0x15')]['bind'](this,_0x4d3eee)),_0xaa1518;});}}w[_0x266a('0x2e')]={'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x3620a0},_0x1080e7)=>{const _0x23981d=_0x3620a0[_0x266a('0x39')](_0xffb168),_0x52d356=_0x23981d['repository'];let _0x1e1df9=_0x23981d[_0x266a('0x32')][_0x266a('0x21')],_0x96e679=_0x1080e7['id'];_0x52d356[_0x266a('0x23')](_0x1e1df9)>_0x52d356[_0x266a('0x23')](_0x96e679)&&([_0x1e1df9,_0x96e679]=[_0x96e679,_0x1e1df9]),_0x23981d[_0x266a('0x7')](_0x1e1df9,_0x96e679);},'isVisible':({plugins:_0x22f14d},_0xc553e8)=>{const _0x30dcd1=_0x22f14d[_0x266a('0x39')](_0xffb168);return!(_0x30dcd1[_0x266a('0xa')]['getRevisionsInDiff'](_0x30dcd1['diff'])[_0x266a('0x6')]>0x2)&&!_0xc553e8[_0x266a('0x1f')];}},'restoreRevision':{'name':_0x266a('0x2c'),'action':(_0x3fe996,{id:_0x4b6433})=>{_0x3fe996[_0x266a('0x8')][_0x266a('0x39')]('revisionHistory')[_0x266a('0x38')](_0x4b6433);},'isVisible':({plugins:_0x50eea4},_0xf4dd7a)=>!!_0x50eea4['get'](_0xffb168)[_0x266a('0xa')][_0x266a('0x29')](_0xf4dd7a['id'])},'nameRevision':{'name':_0x266a('0x20'),'action':({plugins:_0x248d01},{id:_0x2c28d6,revisionNameView:_0x3bedcb})=>{const _0x48fb7f=_0x248d01[_0x266a('0x39')](_0xffb168),_0x56ce73=_0x48fb7f[_0x266a('0xa')][_0x266a('0x1a')](_0x2c28d6);_0x48fb7f[_0x266a('0x7')](_0x2c28d6,_0x56ce73),_0x3bedcb[_0x266a('0x5')](),_0x3bedcb['fieldView'][_0x266a('0x24')]();}}},w[_0x266a('0x1e')]=['compareAgainstSelected',_0x266a('0x18'),'nameRevision'];
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5053=['div','ck-revision-history-sidebar__header__label','history','ck-reset_all','setTemplate','content'];(function(_0x489524,_0x5053a2){const _0x2d03d7=function(_0x330fe9){while(--_0x330fe9){_0x489524['push'](_0x489524['shift']());}};_0x2d03d7(++_0x5053a2);}(_0x5053,0x195));const _0x2d03=function(_0x489524,_0x5053a2){_0x489524=_0x489524-0x0;let _0x2d03d7=_0x5053[_0x489524];return _0x2d03d7;};import{View as _0x355925,IconView as _0x22bc44}from'ckeditor5/src/ui.js';import{getTranslation as _0x2d5c7a}from'../../utils/common-translations.js';import{icons as _0x4466e3}from'ckeditor5/src/core.js';import'../../../theme/revisionssidebar/revisionssidebarheader.css';export default class rs extends _0x355925{constructor(_0x2c6905){super(_0x2c6905);const _0x209266=new _0x22bc44();_0x209266[_0x2d03('0x2')]=_0x4466e3[_0x2d03('0x5')],this[_0x2d03('0x1')]({'tag':_0x2d03('0x3'),'attributes':{'class':['ck',_0x2d03('0x0'),'ck-revision-history-sidebar__header']},'children':[_0x209266,{'tag':'span','attributes':{'class':['ck',_0x2d03('0x4')]},'children':[_0x2d5c7a(_0x2c6905,'Revision\x20history')]}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x8136=['setName','revisionViews','find','ck-revision-history-sidebar__time-period__revisions','div','select','_revisionActions','ck-revision-history-sidebar__time-period__label','add','remove','localizedPeriodName','locale','ck-revision-history-sidebar__time-period','removeRevision','uiLanguage','delegate'];(function(_0x8d881,_0x8136f3){const _0x3ff8bc=function(_0xbcfa89){while(--_0xbcfa89){_0x8d881['push'](_0x8d881['shift']());}};_0x3ff8bc(++_0x8136f3);}(_0x8136,0x66));const _0x3ff8=function(_0x8d881,_0x8136f3){_0x8d881=_0x8d881-0x0;let _0x3ff8bc=_0x8136[_0x8d881];return _0x3ff8bc;};import{View as _0x58dc0a}from'ckeditor5/src/ui.js';import _0x216a21 from'../revision/revisionview.js';import{getDateTimePeriodInfo as _0x4edfb1}from'./utils.js';import'../../../theme/revisionssidebar/revisionssidebartimeperiod.css';export default class vi extends _0x58dc0a{constructor(_0x3d9787,_0x556042,_0x236ab9){super(_0x3d9787);const _0x2a83ac=_0x4edfb1(_0x556042,this[_0x3ff8('0x5')][_0x3ff8('0x8')])[_0x3ff8('0x4')];this['startDate']=_0x556042,this[_0x3ff8('0xb')]=this['createCollection'](),this[_0x3ff8('0x0')]=_0x236ab9,this[_0x3ff8('0xb')][_0x3ff8('0x9')](_0x3ff8('0xf'))['to'](this),this[_0x3ff8('0xb')][_0x3ff8('0x9')](_0x3ff8('0xa'))['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck',_0x3ff8('0x6')]},'children':[{'tag':'span','attributes':{'class':['ck',_0x3ff8('0x1')]},'children':[{'text':_0x2a83ac}]},{'tag':_0x3ff8('0xe'),'attributes':{'class':['ck',_0x3ff8('0xd')]},'children':this[_0x3ff8('0xb')]}]});}['addRevision'](_0x2b5698){const _0x344050=new _0x216a21(this[_0x3ff8('0x5')],_0x2b5698,this[_0x3ff8('0x0')]);this[_0x3ff8('0xb')][_0x3ff8('0x2')](_0x344050);}[_0x3ff8('0x7')](_0x5bb6ce){const _0x34193d=this[_0x3ff8('0xb')][_0x3ff8('0xc')](_0x133bdd=>_0x133bdd['id']===_0x5bb6ce['id']);this['revisionViews'][_0x3ff8('0x3')](_0x34193d);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x58f0=['createCollection','locale','createdAt','_removeRevision','selectRevision','_addRevision','bindTemplate','render','revisionViews','highlightRevisions','fire','getTime','ck-rounded-corners','_revisionActions','map','timePeriodViews','set','select','ck-revision-history-sidebar','removeRevision','setTemplate','setName','div','_getTimePeriodViewByStartDate','unhighlight','highlight','startDate','some','addRevision','remove','uiLanguage','ck-revision-history-sidebar__timeline','flat','ck-reset','delegate','revisionSetName','add'];(function(_0x4460b7,_0x58f0ba){const _0x41dd27=function(_0x36f406){while(--_0x36f406){_0x4460b7['push'](_0x4460b7['shift']());}};_0x41dd27(++_0x58f0ba);}(_0x58f0,0x183));const _0x41dd=function(_0x4460b7,_0x58f0ba){_0x4460b7=_0x4460b7-0x0;let _0x41dd27=_0x58f0[_0x4460b7];return _0x41dd27;};import{View as _0x46a808}from'ckeditor5/src/ui.js';import _0x22f999 from'./revisionssidebartimeperiodview.js';import _0x11acef from'./revisionssidebarheaderview.js';import{getDateTimePeriodInfo as _0x3b6616}from'./utils.js';import'../../../theme/revisionssidebar/revisionssidebar.css';export default class di extends _0x46a808{constructor(_0x3c4e69,_0x16bd7b,_0x34b9a2){super(_0x3c4e69);const _0x50e3c1=this[_0x41dd('0x1a')];this[_0x41dd('0x23')]=this[_0x41dd('0x14')](),this[_0x41dd('0x23')][_0x41dd('0x11')](_0x41dd('0x0'))['to'](this),this[_0x41dd('0x23')]['delegate'](_0x41dd('0x4'))['to'](this),this['_revisions']=_0x16bd7b,this[_0x41dd('0x21')]=_0x34b9a2,this['on'](_0x41dd('0x0'),(_0x16dd9b,_0x42c2df)=>{this[_0x41dd('0x1e')]('revisionSelected',_0x42c2df);}),this['on'](_0x41dd('0x4'),(_0x594e4d,_0x18ca28)=>{this[_0x41dd('0x1e')](_0x41dd('0x12'),_0x18ca28);}),this[_0x41dd('0x24')]('isEnabled',!0x1),this[_0x41dd('0x3')]({'tag':'div','attributes':{'class':['ck',_0x41dd('0x10'),_0x41dd('0x20'),_0x41dd('0x1')]},'children':[new _0x11acef(_0x3c4e69),{'tag':_0x41dd('0x5'),'attributes':{'class':['ck',_0x41dd('0xe'),_0x50e3c1['if']('isEnabled','ck-disabled',_0x3898bc=>!_0x3898bc)]},'children':this[_0x41dd('0x23')]}]});}[_0x41dd('0x1b')](){super[_0x41dd('0x1b')]();for(const _0x5344fc of this['_revisions'])this['_addRevision'](_0x5344fc);this['_revisions']['on'](_0x41dd('0x13'),(_0x2c8b6e,_0x4146d7)=>{this[_0x41dd('0x19')](_0x4146d7);}),this['_revisions']['on'](_0x41dd('0xc'),(_0x433373,_0xdd7c4b)=>{this[_0x41dd('0x17')](_0xdd7c4b);});}get[_0x41dd('0x1c')](){return this[_0x41dd('0x23')][_0x41dd('0x22')](_0x14123e=>_0x14123e[_0x41dd('0x1c')][_0x41dd('0x22')](_0x589a29=>_0x589a29))[_0x41dd('0xf')]();}[_0x41dd('0x18')](_0x21dc55){for(const _0x33c6ae of this['revisionViews'])_0x21dc55&&_0x21dc55['id']===_0x33c6ae['id']?_0x33c6ae[_0x41dd('0x0')]():_0x33c6ae['deselect']();}[_0x41dd('0x1d')](_0x29fb70){for(const _0x1c9aa3 of this[_0x41dd('0x1c')])_0x29fb70[_0x41dd('0xa')](({id:_0x449a2b})=>_0x449a2b===_0x1c9aa3['id'])?_0x1c9aa3[_0x41dd('0x8')]():_0x1c9aa3[_0x41dd('0x7')]();}['_addRevision'](_0x41afbf){const _0x180570=_0x3b6616(_0x41afbf['createdAt'],this[_0x41dd('0x15')]['uiLanguage'])[_0x41dd('0x9')];let _0x2aae2f=this['timePeriodViews']['get'](0x0);_0x2aae2f&&_0x2aae2f['startDate'][_0x41dd('0x1f')]()===_0x180570['getTime']()||(_0x2aae2f=new _0x22f999(this[_0x41dd('0x15')],_0x180570,this[_0x41dd('0x21')]),this[_0x41dd('0x23')]['add'](_0x2aae2f)),_0x2aae2f[_0x41dd('0xb')](_0x41afbf);}['_removeRevision'](_0x31ac0c){const _0x60d8a4=_0x3b6616(_0x31ac0c[_0x41dd('0x16')],this[_0x41dd('0x15')][_0x41dd('0xd')])[_0x41dd('0x9')];this[_0x41dd('0x6')](_0x60d8a4)[_0x41dd('0x2')](_0x31ac0c);}[_0x41dd('0x6')](_0x1bb361){return this[_0x41dd('0x23')]['find'](_0x2b7226=>_0x2b7226[_0x41dd('0x9')][_0x41dd('0x1f')]()===_0x1bb361[_0x41dd('0x1f')]());}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1ae8=['minus','startOf','year','weekdayLong','local','setLocale','week','fromJSDate','hasSame','day','toJSDate','toRelativeCalendar'];(function(_0x283f9f,_0x1ae84b){const _0x224b4a=function(_0x4b0f2d){while(--_0x4b0f2d){_0x283f9f['push'](_0x283f9f['shift']());}};_0x224b4a(++_0x1ae84b);}(_0x1ae8,0x10d));const _0x224b=function(_0x283f9f,_0x1ae84b){_0x283f9f=_0x283f9f-0x0;let _0x224b4a=_0x1ae8[_0x283f9f];return _0x224b4a;};import{DateTime as _0x542f9a}from'luxon';export function getDateTimePeriodInfo(_0x3a6a68,_0x295a2f){const _0x137e0b=_0x542f9a[_0x224b('0x2')](_0x3a6a68)[_0x224b('0x0')](_0x295a2f),_0x4c7a08=_0x542f9a[_0x224b('0xb')](),_0x17c515=_0x4c7a08[_0x224b('0x7')]({'days':0x1})['startOf'](_0x224b('0x4'));let _0x5904c8,_0x552e88;return _0x137e0b[_0x224b('0x3')](_0x4c7a08,'day')?(_0x5904c8=_0x137e0b[_0x224b('0x8')](_0x224b('0x4'))[_0x224b('0x5')](),_0x552e88=_0x137e0b[_0x224b('0x6')]()):_0x137e0b[_0x224b('0x3')](_0x17c515,_0x224b('0x4'))?(_0x5904c8=_0x17c515[_0x224b('0x5')](),_0x552e88=_0x137e0b['toRelativeCalendar']()):_0x137e0b['hasSame'](_0x4c7a08,_0x224b('0x1'))?(_0x5904c8=_0x137e0b['startOf'](_0x224b('0x1'))[_0x224b('0x5')](),_0x552e88=_0x137e0b[_0x224b('0xa')]||''):_0x137e0b[_0x224b('0x3')](_0x4c7a08,_0x224b('0x9'))?(_0x5904c8=_0x137e0b['startOf']('month')[_0x224b('0x5')](),_0x552e88=_0x137e0b['monthLong']||''):(_0x5904c8=_0x137e0b[_0x224b('0x8')](_0x224b('0x9'))[_0x224b('0x5')](),_0x552e88=String(_0x137e0b[_0x224b('0x9')])),{'startDate':_0x5904c8,'localizedPeriodName':_0x552e88};}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3c95=['isSuggestion','changeId','ck-revision-change','ck-annotation','set','span','focus','type','add','Suggested\x20by','_model','div','Removed\x20by','data'];(function(_0xcf5e5d,_0x3c951c){const _0x1d33fd=function(_0x322d79){while(--_0x322d79){_0xcf5e5d['push'](_0xcf5e5d['shift']());}};_0x1d33fd(++_0x3c951c);}(_0x3c95,0x9a));const _0x1d33=function(_0xcf5e5d,_0x3c951c){_0xcf5e5d=_0xcf5e5d-0x0;let _0x1d33fd=_0x3c95[_0xcf5e5d];return _0x1d33fd;};import{View as _0x50d194}from'ckeditor5/src/ui.js';import{getTranslation as _0x5b017c}from'../../utils/common-translations.js';export default class Z extends _0x50d194{constructor(_0x5e3ca8,_0x53414d){super(_0x5e3ca8),this[_0x1d33('0xa')]=_0x53414d,this[_0x1d33('0x1')]=_0x53414d['id'];const _0x4e551e=this['bindTemplate'],_0x1986d6=_0x5b017c(_0x5e3ca8,_0x53414d[_0x1d33('0xd')][_0x1d33('0x0')]?_0x1d33('0x9'):_0x1d33('0x8')==_0x53414d[_0x1d33('0x7')]?'Added\x20by':_0x1d33('0xc'));this[_0x1d33('0x4')](_0x1d33('0x7'),_0x53414d[_0x1d33('0x7')]),this['setTemplate']({'tag':_0x1d33('0xb'),'attributes':{'class':[_0x1d33('0x3'),_0x1d33('0x2'),_0x4e551e['to'](_0x1d33('0x7'),_0x3b6faa=>'ck-revision-change__'+_0x3b6faa)],'tabindex':-0x1},'children':[{'tag':_0x1d33('0x5'),'children':[{'tag':_0x1d33('0x5'),'attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x1986d6}]},{'text':'\x20'+_0x53414d['author']['name']}]}]});}[_0x1d33('0x6')](){this['element'][_0x1d33('0x6')]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4f36=['isForwardNavigationEnabled','No\x20changes','isEnabled','_isStatusLabelVisible','isReady','ck-revision-history-ui','EDIT_X_OF_Y_REVISIONS','_statusText','execute','bind','Total','ck-hidden','Loading...','ck-revision-history-ui__changes-navigation__wrapper','forward','numberOfChanges','fire','div','backward','Show\x20previous\x20change','span','isBackwardNavigationEnabled','X_OF_Y_CHANGES','ck-revision-history-ui__changes-navigation','NUMBER_OF_CHANGES','Show\x20next\x20change','isNavigationMode','set','currentChangeNumber'];(function(_0x404c15,_0x4f3607){const _0x3dd5e6=function(_0x4f12e8){while(--_0x4f12e8){_0x404c15['push'](_0x404c15['shift']());}};_0x3dd5e6(++_0x4f3607);}(_0x4f36,0x172));const _0x3dd5=function(_0x404c15,_0x4f3607){_0x404c15=_0x404c15-0x0;let _0x3dd5e6=_0x4f36[_0x404c15];return _0x3dd5e6;};import{View as _0x1fa02b,ButtonView as _0x528893,ToolbarSeparatorView as _0x2de202}from'ckeditor5/src/ui.js';import{getTranslation as _0x3b5d1a}from'../../utils/common-translations.js';import _0x535efa from'../../../theme/icons/arrow-up.svg';import _0x2203cc from'../../../theme/icons/arrow-down.svg';import'../../../theme/changesnavigation.css';export default class bi extends _0x1fa02b{constructor(_0x5eb2fc){super(_0x5eb2fc);const _0x1d5c78=this['bindTemplate'],_0x1b7772=new _0x528893(_0x5eb2fc),_0x4b2e3f=new _0x528893(_0x5eb2fc);this[_0x3dd5('0x5')](_0x3dd5('0x4'),!0x1),this['set'](_0x3dd5('0xb'),!0x1),this[_0x3dd5('0x5')](_0x3dd5('0x6'),0x0),this['set']('numberOfChanges',0x0),this[_0x3dd5('0x5')](_0x3dd5('0x7'),!0x1),this['set'](_0x3dd5('0x1c'),!0x1),this['bind'](_0x3dd5('0xa'))['to'](this,_0x3dd5('0xb'),this,_0x3dd5('0x16'),(_0x4b48e9,_0x571c93)=>_0x4b48e9&&_0x571c93>0x0),this[_0x3dd5('0x10')]('_statusText')['to'](this,_0x3dd5('0xb'),this,_0x3dd5('0x6'),this,_0x3dd5('0x16'),this,'isNavigationMode',(_0x1f18e4,_0x5cd37f,_0x4fc49f,_0x18025d)=>{if(!_0x1f18e4)return _0x3b5d1a(_0x5eb2fc,_0x3dd5('0x13'));if(!_0x4fc49f)return _0x3b5d1a(_0x5eb2fc,_0x3dd5('0x8'));const _0x5f3620=_0x3b5d1a(_0x5eb2fc,_0x3dd5('0x2'),_0x4fc49f);return _0x18025d?_0x3b5d1a(_0x5eb2fc,_0x3dd5('0x0'),[_0x5cd37f+0x1,_0x4fc49f]):_0x5f3620;}),_0x1b7772[_0x3dd5('0x5')]({'label':_0x3b5d1a(_0x5eb2fc,_0x3dd5('0x1a')),'tooltip':!0x0,'icon':_0x535efa}),_0x4b2e3f['set']({'label':_0x3b5d1a(_0x5eb2fc,_0x3dd5('0x3')),'tooltip':!0x0,'icon':_0x2203cc}),_0x1b7772[_0x3dd5('0x10')](_0x3dd5('0x9'))['to'](this,_0x3dd5('0x1c')),_0x4b2e3f[_0x3dd5('0x10')](_0x3dd5('0x9'))['to'](this,_0x3dd5('0x7')),_0x1b7772['on'](_0x3dd5('0xf'),()=>this[_0x3dd5('0x17')](_0x3dd5('0xf'),_0x3dd5('0x19'))),_0x4b2e3f['on']('execute',()=>this['fire']('execute',_0x3dd5('0x15'))),this['setTemplate']({'tag':_0x3dd5('0x18'),'attributes':{'class':['ck',_0x3dd5('0xc'),_0x3dd5('0x1')]},'children':[{'tag':_0x3dd5('0x1b'),'attributes':{'class':[_0x3dd5('0x14')]},'children':[{'tag':_0x3dd5('0x1b'),'attributes':{'class':['ck-revision-history-ui__changes-navigation__label',_0x1d5c78['if']('_isStatusLabelVisible',_0x3dd5('0x12'),_0x256e8f=>!_0x256e8f)]},'children':[{'text':_0x1d5c78['to'](_0x3dd5('0x4'),_0x22eeea=>_0x22eeea?_0x3b5d1a(_0x5eb2fc,_0x3dd5('0xd'))+':\x20':_0x3b5d1a(_0x5eb2fc,_0x3dd5('0x11'))+':\x20')}]},{'text':_0x1d5c78['to'](_0x3dd5('0xe'))}]},new _0x2de202(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x1b7772,_0x4b2e3f]}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1e9c=['ck-editor__editable__loading-overlay','pluginName','removeClass','document','addClass','editor','hide','editing','change','roots'];(function(_0x6951f7,_0x1e9c41){const _0x5382b5=function(_0x194fea){while(--_0x194fea){_0x6951f7['push'](_0x6951f7['shift']());}};_0x5382b5(++_0x1e9c41);}(_0x1e9c,0x7f));const _0x5382=function(_0x6951f7,_0x1e9c41){_0x6951f7=_0x6951f7-0x0;let _0x5382b5=_0x1e9c[_0x6951f7];return _0x5382b5;};import{Plugin as _0x28d8f3}from'ckeditor5/src/core.js';const oe=_0x5382('0x3');import'../../../theme/revisionviewerloadingoverlay.css';export default class te extends _0x28d8f3{static get[_0x5382('0x4')](){return'RevisionViewerLoadingOverlay';}['show'](){const _0x3b456a=this[_0x5382('0x8')][_0x5382('0x0')]['view'];_0x3b456a[_0x5382('0x1')](_0x234a9b=>{for(const _0x432a73 of _0x3b456a[_0x5382('0x6')][_0x5382('0x2')])_0x234a9b[_0x5382('0x7')](oe,_0x432a73);});}[_0x5382('0x9')](){const _0x7c59ef=this['editor'][_0x5382('0x0')]['view'];_0x7c59ef[_0x5382('0x1')](_0x2014f8=>{for(const _0x33cbe6 of _0x7c59ef['document'][_0x5382('0x2')])_0x2014f8[_0x5382('0x5')](oe,_0x33cbe6);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4bfd=['commands','get','add','closeRevisionViewerCallback','change:isReady','pluginName','show','revisionHistory','forward','componentFactory','exitToEditing','listenTo','plugins','config','showNextChange','bind','restoreRevision','numberOfChanges','requires','ck-revision-history-ui__back-to-editing','set','currentChangeNumber','showPreviousChange','isForwardNavigationEnabled','RevisionViewerUI','execute','init','isEnabled','Back\x20to\x20editing'];(function(_0xd24644,_0x4bfd12){const _0x152e49=function(_0x1999fa){while(--_0x1999fa){_0xd24644['push'](_0xd24644['shift']());}};_0x152e49(++_0x4bfd12);}(_0x4bfd,0x9b));const _0x152e=function(_0xd24644,_0x4bfd12){_0xd24644=_0xd24644-0x0;let _0x152e49=_0x4bfd[_0xd24644];return _0x152e49;};import{Plugin as _0x4ec282}from'ckeditor5/src/core.js';import{ButtonView as _0x4bd236}from'ckeditor5/src/ui.js';import _0x503d26 from'./changesnavigationview.js';import _0x5a361e from'./../../revisionviewer.js';import _0x38a690 from'./revisionviewerloadingoverlay.js';import{getTranslation as _0x590e34}from'../../utils/common-translations.js';import _0x7998ce from'@ckeditor/ckeditor5-undo/theme/icons/undo.svg';import'../../../theme/revisionviewer.css';export default class R extends _0x4ec282{static get[_0x152e('0x18')](){return _0x152e('0xe');}static get[_0x152e('0x8')](){return[_0x5a361e,_0x38a690];}[_0x152e('0x10')](){const _0x4913fa=this['editor'],_0x499896=_0x4913fa[_0x152e('0x2')][_0x152e('0x14')](_0x5a361e),_0x4aa906=_0x4913fa[_0x152e('0x2')][_0x152e('0x14')](_0x38a690);_0x4913fa['ui']['componentFactory']['add'](_0x152e('0x0'),_0x91996d=>{const _0x305f82=new _0x4bd236(_0x91996d);return _0x305f82[_0x152e('0xa')]({'label':_0x590e34(_0x91996d,_0x152e('0x12')),'icon':_0x7998ce,'withText':!0x0,'tooltip':!0x0,'class':_0x152e('0x9')}),this['listenTo'](_0x305f82,_0x152e('0xf'),()=>{_0x4913fa[_0x152e('0x3')][_0x152e('0x14')](_0x152e('0x1a'))[_0x152e('0x16')]();}),_0x305f82;}),_0x4913fa['ui'][_0x152e('0x1c')][_0x152e('0x15')](_0x152e('0x6'),_0x452ab0=>{const _0x2d41a5=new _0x4bd236(_0x452ab0);return _0x2d41a5[_0x152e('0xa')]({'label':_0x590e34(_0x452ab0,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x2d41a5[_0x152e('0x5')](_0x152e('0x11'))['to'](_0x4913fa[_0x152e('0x13')][_0x152e('0x14')](_0x152e('0x6'))),this[_0x152e('0x1')](_0x2d41a5,_0x152e('0xf'),()=>_0x4913fa[_0x152e('0xf')](_0x152e('0x6'))),_0x2d41a5;}),_0x4913fa['ui'][_0x152e('0x1c')][_0x152e('0x15')]('changesNavigation',_0x2f570c=>{const _0x1ef995=new _0x503d26(_0x2f570c),_0xebe8a7=_0x4913fa[_0x152e('0x13')][_0x152e('0x14')](_0x152e('0xc')),_0x5aed24=_0x4913fa['commands']['get'](_0x152e('0x4'));return _0x1ef995[_0x152e('0x5')]('isBackwardNavigationEnabled')['to'](_0xebe8a7,_0x152e('0x11')),_0x1ef995[_0x152e('0x5')](_0x152e('0xd'))['to'](_0x5aed24,_0x152e('0x11')),_0x1ef995['bind']('isReady',_0x152e('0xb'),_0x152e('0x7'),'isNavigationMode')['to'](_0x499896),this[_0x152e('0x1')](_0x1ef995,_0x152e('0xf'),(_0x326e32,_0x3fba80)=>{_0x4913fa[_0x152e('0xf')](_0x152e('0x1b')===_0x3fba80?_0x152e('0x4'):'showPreviousChange');}),_0x1ef995;}),_0x4aa906[_0x152e('0x19')](),_0x499896['on'](_0x152e('0x17'),(_0x76490f,_0x1125f8,_0x2203e5)=>{_0x2203e5?_0x4aa906['hide']():_0x4aa906[_0x152e('0x19')]();});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export function getTranslation(
|
|
23
|
+
export function getTranslation(_0x549bd1,_0x27556b,_0x274707){const t=_0x549bd1['t'];switch(_0x27556b){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'},_0x274707);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x274707);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 _0x27556b;}}
|