@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20230806.0 → 0.0.0-nightly-20230808.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/LICENSE.md +5 -5
- package/README.md +10 -10
- 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 _0x25b5=['revisionName','revisionHistory','Revision\x20history','view','execute','cancel','isReady','Open\x20revision\x20history','plugins','bind','isReadOnly','length','render','saveRevision','add','config','requires','children','pluginName','editing','isEnabled','remove','saveButtonView','addMany','reset','buttonView','get','editor','submit','items','set','focus','showRevisionViewerCallback'];(function(_0x2eca35,_0x25b5bc){const _0x16f9f7=function(_0x293aee){while(--_0x293aee){_0x2eca35['push'](_0x2eca35['shift']());}};_0x16f9f7(++_0x25b5bc);}(_0x25b5,0x128));const _0x16f9=function(_0x2eca35,_0x25b5bc){_0x2eca35=_0x2eca35-0x0;let _0x16f9f7=_0x25b5[_0x2eca35];return _0x16f9f7;};import{Plugin as _0x14f657}from'ckeditor5/src/core';import{ListView as _0x1b45bb,ListItemView as _0x1601b2,ButtonView as _0xbdba12,createDropdown as _0x58edcf}from'ckeditor5/src/ui';import _0xa50388 from'../../revisiontracker';import _0x156d62 from'./revisionhistorysaverevisionformview';import _0x22f003 from'../../../theme/icons/revision-history.svg';import{getTranslation as _0x425b31}from'../../utils/common-translations';export default class u extends _0x14f657{static get[_0x16f9('0x13')](){return'RevisionHistoryUI';}static get[_0x16f9('0x11')](){return[_0xa50388];}['init'](){const _0x1bfdcc=this[_0x16f9('0x1c')],_0x449c30=_0x1bfdcc[_0x16f9('0x9')]['get']('RevisionTracker');_0x1bfdcc['ui']['componentFactory'][_0x16f9('0xf')]('revisionHistory',_0x207cf8=>{const _0x3e5286=_0x58edcf(_0x207cf8),_0x5cb4f5=_0x3e5286['panelView']['children'],_0x44c597=new _0x1b45bb(_0x207cf8),_0x493fda=new _0x1601b2(_0x207cf8),_0x163a8f=new _0xbdba12(_0x207cf8),_0x39a843=new _0x1601b2(_0x207cf8),_0x3e713f=new _0xbdba12(_0x207cf8),_0x38aab3=new _0x156d62(_0x207cf8);function _0x33c881(){_0x5cb4f5[_0x16f9('0xc')]&&_0x5cb4f5[_0x16f9('0x16')](0x0),_0x5cb4f5[_0x16f9('0xf')](_0x44c597);}function _0xda07c9(){_0x3e5286['isOpen']=!0x1,_0x1bfdcc[_0x16f9('0x14')][_0x16f9('0x4')][_0x16f9('0x20')]();}return _0x3e5286[_0x16f9('0xa')]('isEnabled')['to'](_0x449c30,'isReady',_0x449c30,_0x16f9('0x15'),_0x1bfdcc,_0x16f9('0xb'),(_0xc04982,_0x12c4dc,_0x2b0c52)=>_0xc04982&&_0x12c4dc&&!_0x2b0c52),_0x3e5286[_0x16f9('0x1a')][_0x16f9('0x1f')]({'icon':_0x22f003,'label':_0x425b31(_0x207cf8,_0x16f9('0x3')),'tooltip':!0x0}),_0x163a8f['set']({'label':_0x425b31(_0x207cf8,'Save\x20current\x20revision'),'withText':!0x0}),_0x163a8f[_0x16f9('0xa')]('isEnabled')['to'](_0x449c30,_0x16f9('0x7'),_0x449c30,'isEnabled',_0x1bfdcc,_0x16f9('0xb'),(_0x5b3251,_0x205434,_0x307404)=>_0x5b3251&&_0x205434&&!_0x307404),_0x163a8f['on'](_0x16f9('0x5'),()=>function(){_0x5cb4f5[_0x16f9('0xc')]&&_0x5cb4f5[_0x16f9('0x16')](0x0),(_0x38aab3[_0x16f9('0x19')](),_0x5cb4f5['add'](_0x38aab3),_0x38aab3[_0x16f9('0x20')]());}()),_0x3e713f[_0x16f9('0x1f')]({'label':_0x425b31(_0x207cf8,_0x16f9('0x8')),'withText':!0x0}),_0x3e713f[_0x16f9('0xa')]('isEnabled')['to'](_0x449c30,_0x16f9('0x7'),_0x1bfdcc,_0x16f9('0xb'),(_0x3df691,_0x212a41)=>_0x3df691&&!_0x212a41),_0x3e713f['on'](_0x16f9('0x5'),()=>{_0x1bfdcc[_0x16f9('0x10')][_0x16f9('0x1b')](_0x16f9('0x2'))[_0x16f9('0x0')](),_0xda07c9();}),_0x493fda[_0x16f9('0x12')][_0x16f9('0xf')](_0x163a8f),_0x39a843[_0x16f9('0x12')][_0x16f9('0xf')](_0x3e713f),_0x44c597[_0x16f9('0x1e')][_0x16f9('0x18')]([_0x493fda,_0x39a843]),_0x3e5286['on']('change:isOpen',()=>_0x33c881()),_0x38aab3[_0x16f9('0x17')][_0x16f9('0xa')](_0x16f9('0x15'))['to'](_0x449c30,'isReady',_0x449c30,'isEnabled',_0x1bfdcc,_0x16f9('0xb'),(_0x25ef88,_0x1fa01d,_0x285a06)=>_0x25ef88&&_0x1fa01d&&!_0x285a06),_0x38aab3['on'](_0x16f9('0x1d'),()=>(_0x1bfdcc['plugins'][_0x16f9('0x1b')](_0xa50388)[_0x16f9('0xe')]({'name':_0x38aab3[_0x16f9('0x1')]}),void _0xda07c9())),_0x38aab3['on'](_0x16f9('0x6'),()=>_0x33c881()),_0x38aab3[_0x16f9('0xd')](),_0x33c881(),_0x3e5286;});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x55e1=['isReady','revisionViews','setName','action','bind','listenTo','ready','_handleRevisionSetName','isSelected','init','fieldView','_handleDiffChange','Restore\x20this\x20revision','diff','add','RevisionsSidebar','focus','requires','render','editor','string','plugins','highlightRevisions','repository','appendChild','restoreRevisionCallback','get','_sidebarView','_createRevisionActions','config','destroy','_revisions','change:diff','selectRevision','newRevisionId','remove','map','Compare\x20against\x20selected','_handleEditorDataReady','revisionHistory','getRevisionsInDiff','revisionHistory.viewerSidebarContainer','getEarlierVisibleRevision','isEnabled','revisionHistory.revisionActions','restoreRevision','getIndex','pluginName','element','_revisionViewer','locale','getLaterVisibleRevision','getRevision','availableRevisionActions','_revisionsRepository','defaultRevisionActions','assign','compare','_handleRevisionSelected'];(function(_0x1b5665,_0x55e14c){const _0x5a1598=function(_0x3ba99b){while(--_0x3ba99b){_0x1b5665['push'](_0x1b5665['shift']());}};_0x5a1598(++_0x55e14c);}(_0x55e1,0xd6));const _0x5a15=function(_0x1b5665,_0x55e14c){_0x1b5665=_0x1b5665-0x0;let _0x5a1598=_0x55e1[_0x1b5665];return _0x5a1598;};import{Plugin as _0x19242c}from'ckeditor5/src/core';import _0x333495 from'./revisionssidebarview';import _0x277990 from'../../revisionviewer';export default class w extends _0x19242c{static get[_0x5a15('0xa')](){return _0x5a15('0x25');}static get[_0x5a15('0x27')](){return[_0x277990];}constructor(_0x1f2881){super(_0x1f2881),this[_0x5a15('0xc')]=_0x1f2881[_0x5a15('0x2b')][_0x5a15('0x30')](_0x277990),this[_0x5a15('0x11')]=this[_0x5a15('0xc')][_0x5a15('0x2d')],this[_0x5a15('0x31')]=null;}[_0x5a15('0x1f')](){const _0x5ab1fc=this[_0x5a15('0x11')][_0x5a15('0x35')],_0x44a014=this[_0x5a15('0x32')](),_0x885bfa=this[_0x5a15('0x29')][_0x5a15('0x33')][_0x5a15('0x30')](_0x5a15('0x4'));this['_sidebarView']=new _0x333495(this[_0x5a15('0x29')][_0x5a15('0xd')],_0x5ab1fc,_0x44a014),this[_0x5a15('0x31')]['on']('revisionSelected',this[_0x5a15('0x15')][_0x5a15('0x1a')](this)),this[_0x5a15('0x31')]['on']('revisionSetName',this[_0x5a15('0x1d')][_0x5a15('0x1a')](this)),this['_sidebarView']['bind'](_0x5a15('0x6'))['to'](this[_0x5a15('0xc')]),this['_sidebarView']['timePeriodViews']['on'](_0x5a15('0x24'),(_0x296527,_0x14157f)=>{_0x14157f[_0x5a15('0x17')]['on'](_0x5a15('0x24'),(_0x5385b3,_0x2ddb83)=>{_0x2ddb83[_0x5a15('0x1a')](_0x5a15('0x6'),_0x5a15('0x16'))['to'](this[_0x5a15('0xc')]);});}),this[_0x5a15('0x31')][_0x5a15('0x28')](),this['listenTo'](this[_0x5a15('0x29')]['data'],_0x5a15('0x1c'),this[_0x5a15('0x1')][_0x5a15('0x1a')](this)),this[_0x5a15('0x1b')](this[_0x5a15('0xc')],_0x5a15('0x36'),this[_0x5a15('0x21')][_0x5a15('0x1a')](this)),_0x885bfa[_0x5a15('0x2e')](this[_0x5a15('0x31')][_0x5a15('0xb')]);}['destroy'](){this[_0x5a15('0x31')][_0x5a15('0xb')][_0x5a15('0x39')](),this[_0x5a15('0x31')][_0x5a15('0x34')]();}[_0x5a15('0x1')](){const _0x2fc359=this[_0x5a15('0x11')]['getRevision'](0x0);if(_0x2fc359){const _0x49238d=this[_0x5a15('0x11')][_0x5a15('0x5')](_0x2fc359['id']);this[_0x5a15('0xc')][_0x5a15('0x14')](_0x2fc359,_0x49238d);}}[_0x5a15('0x15')](_0x1eed7f,_0x25cca4){const _0x4cc2cd=this['_revisionsRepository'][_0x5a15('0xf')](_0x25cca4['id']),_0x244799=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x4cc2cd['id']);this[_0x5a15('0xc')]['compare'](_0x4cc2cd,_0x244799);}[_0x5a15('0x1d')](_0x58a277,_0x5a8776){this[_0x5a15('0x11')][_0x5a15('0xf')](_0x5a8776['id'])[_0x5a15('0x18')](_0x5a8776['name']);}[_0x5a15('0x21')](_0x2b1250,_0x34c597,_0x41bf35){const _0x741b0b=this[_0x5a15('0x11')][_0x5a15('0x3')](_0x41bf35);_0x741b0b['length']>0x2?(this[_0x5a15('0x31')][_0x5a15('0x2c')](_0x741b0b),this[_0x5a15('0x31')][_0x5a15('0x37')](null)):(this[_0x5a15('0x31')]['highlightRevisions']([]),this[_0x5a15('0x31')][_0x5a15('0x37')](_0x741b0b[0x0]));}[_0x5a15('0x32')](){const _0x3d9a65=this[_0x5a15('0x29')],_0x5b9f93=w[_0x5a15('0x10')],_0x2a398e=_0x3d9a65[_0x5a15('0x33')]['get'](_0x5a15('0x7'))||w[_0x5a15('0x12')];if(_0x2a398e['length'])return _0x2a398e[_0x5a15('0x3a')](_0x5ef131=>{const _0x4e18f8=_0x5a15('0x2a')==typeof _0x5ef131?Object[_0x5a15('0x13')]({},_0x5b9f93[_0x5ef131]):_0x5ef131;return _0x4e18f8['action']=_0x4e18f8[_0x5a15('0x19')][_0x5a15('0x1a')](this,_0x3d9a65),_0x4e18f8['isVisible']&&(_0x4e18f8['isVisible']=_0x4e18f8['isVisible'][_0x5a15('0x1a')](this,_0x3d9a65)),_0x4e18f8;});}}w[_0x5a15('0x10')]={'compareAgainstSelected':{'name':_0x5a15('0x0'),'action':({plugins:_0x1b26f4},_0xf18ab3)=>{const _0x5b465c=_0x1b26f4[_0x5a15('0x30')](_0x277990),_0x1d567a=_0x5b465c[_0x5a15('0x2d')];let _0x59f91e=_0x5b465c[_0x5a15('0x23')][_0x5a15('0x38')],_0x2d492b=_0xf18ab3['id'];_0x1d567a[_0x5a15('0x9')](_0x59f91e)>_0x1d567a['getIndex'](_0x2d492b)&&([_0x59f91e,_0x2d492b]=[_0x2d492b,_0x59f91e]),_0x5b465c[_0x5a15('0x14')](_0x59f91e,_0x2d492b);},'isVisible':({plugins:_0x31061d},_0x2491e8)=>{const _0x12ef7e=_0x31061d[_0x5a15('0x30')](_0x277990);return!(_0x12ef7e['repository'][_0x5a15('0x3')](_0x12ef7e['diff'])['length']>0x2)&&!_0x2491e8[_0x5a15('0x1e')];}},'restoreRevision':{'name':_0x5a15('0x22'),'action':(_0x132b7b,{id:_0x44b83a})=>{_0x132b7b['config'][_0x5a15('0x30')](_0x5a15('0x2'))[_0x5a15('0x2f')](_0x44b83a);},'isVisible':({plugins:_0x7e4520},_0x3f2655)=>!!_0x7e4520[_0x5a15('0x30')](_0x277990)[_0x5a15('0x2d')][_0x5a15('0xe')](_0x3f2655['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x1e75ae},{id:_0x482898,revisionNameView:_0x23d581})=>{const _0x4d7175=_0x1e75ae[_0x5a15('0x30')](_0x277990),_0x4cf698=_0x4d7175[_0x5a15('0x2d')][_0x5a15('0x5')](_0x482898);_0x4d7175[_0x5a15('0x14')](_0x482898,_0x4cf698),_0x23d581[_0x5a15('0x26')](),_0x23d581[_0x5a15('0x20')]['select']();}}},w['defaultRevisionActions']=['compareAgainstSelected',_0x5a15('0x8'),'nameRevision'];
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1b2b=['ck-revision-history-sidebar__header__label','setTemplate','content','ck-revision-history-sidebar__header','span','ck-reset_all'];(function(_0x21d905,_0x1b2b69){const _0x42d5fd=function(_0x46122a){while(--_0x46122a){_0x21d905['push'](_0x21d905['shift']());}};_0x42d5fd(++_0x1b2b69);}(_0x1b2b,0xf2));const _0x42d5=function(_0x21d905,_0x1b2b69){_0x21d905=_0x21d905-0x0;let _0x42d5fd=_0x1b2b[_0x21d905];return _0x42d5fd;};import{View as _0x13cb5e,IconView as _0x187da6}from'ckeditor5/src/ui';import{getTranslation as _0x1bd455}from'../../utils/common-translations';import _0x1918f0 from'../../../theme/icons/revision-history.svg';import'../../../theme/revisionssidebar/revisionssidebarheader.css';export default class ts extends _0x13cb5e{constructor(_0x590464){super(_0x590464);const _0x4a7194=new _0x187da6();_0x4a7194[_0x42d5('0x0')]=_0x1918f0,this[_0x42d5('0x5')]({'tag':'div','attributes':{'class':['ck',_0x42d5('0x3'),_0x42d5('0x1')]},'children':[_0x4a7194,{'tag':_0x42d5('0x2'),'attributes':{'class':['ck',_0x42d5('0x4')]},'children':[_0x1bd455(_0x590464,'Revision\x20history')]}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x17e2=['localizedPeriodName','select','delegate','setTemplate','div','_revisionActions','removeRevision','locale','revisionViews','ck-revision-history-sidebar__time-period','add','uiLanguage','ck-revision-history-sidebar__time-period__revisions','startDate','find'];(function(_0x4984a3,_0x17e2b6){const _0x45ddae=function(_0x17f9dd){while(--_0x17f9dd){_0x4984a3['push'](_0x4984a3['shift']());}};_0x45ddae(++_0x17e2b6);}(_0x17e2,0x199));const _0x45dd=function(_0x4984a3,_0x17e2b6){_0x4984a3=_0x4984a3-0x0;let _0x45ddae=_0x17e2[_0x4984a3];return _0x45ddae;};import{View as _0x35768d}from'ckeditor5/src/ui';import _0x1586e9 from'../revision/revisionview';import{getDateTimePeriodInfo as _0x199043}from'./utils';import'../../../theme/revisionssidebar/revisionssidebartimeperiod.css';export default class _i extends _0x35768d{constructor(_0x1d847b,_0x562e51,_0x1fef45){super(_0x1d847b);const _0x5b2a6e=_0x199043(_0x562e51,this[_0x45dd('0x3')][_0x45dd('0x7')])[_0x45dd('0xb')];this[_0x45dd('0x9')]=_0x562e51,this[_0x45dd('0x4')]=this['createCollection'](),this[_0x45dd('0x1')]=_0x1fef45,this[_0x45dd('0x4')]['delegate'](_0x45dd('0xc'))['to'](this),this[_0x45dd('0x4')][_0x45dd('0xd')]('setName')['to'](this),this[_0x45dd('0xe')]({'tag':'div','attributes':{'class':['ck',_0x45dd('0x5')]},'children':[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__label']},'children':[{'text':_0x5b2a6e}]},{'tag':_0x45dd('0x0'),'attributes':{'class':['ck',_0x45dd('0x8')]},'children':this[_0x45dd('0x4')]}]});}['addRevision'](_0x294532){const _0x22119e=new _0x1586e9(this[_0x45dd('0x3')],_0x294532,this[_0x45dd('0x1')]);this[_0x45dd('0x4')][_0x45dd('0x6')](_0x22119e);}[_0x45dd('0x2')](_0x25b3a7){const _0x465bc3=this[_0x45dd('0x4')][_0x45dd('0xa')](_0x182fcf=>_0x182fcf['id']===_0x25b3a7['id']);this[_0x45dd('0x4')]['remove'](_0x465bc3);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x108d=['revisionSetName','setName','createdAt','bindTemplate','getTime','render','locale','fire','highlight','_addRevision','createCollection','select','remove','some','map','div','setTemplate','timePeriodViews','flat','uiLanguage','delegate','get','deselect','add','isEnabled','_getTimePeriodViewByStartDate','_revisionActions','revisionViews','addRevision','highlightRevisions','find','set','_revisions','startDate'];(function(_0x3a8811,_0x108dd5){const _0x251c04=function(_0x5b6ed9){while(--_0x5b6ed9){_0x3a8811['push'](_0x3a8811['shift']());}};_0x251c04(++_0x108dd5);}(_0x108d,0x15a));const _0x251c=function(_0x3a8811,_0x108dd5){_0x3a8811=_0x3a8811-0x0;let _0x251c04=_0x108d[_0x3a8811];return _0x251c04;};import{View as _0x5d3d8a}from'ckeditor5/src/ui';import _0x22ff3f from'./revisionssidebartimeperiodview';import _0x977082 from'./revisionssidebarheaderview';import{getDateTimePeriodInfo as _0x2d4922}from'./utils';import'../../../theme/revisionssidebar/revisionssidebar.css';export default class vi extends _0x5d3d8a{constructor(_0x48f5c3,_0x53f2cc,_0x257d7d){super(_0x48f5c3);const _0x3a8d97=this[_0x251c('0x1f')];this[_0x251c('0xb')]=this[_0x251c('0x4')](),this[_0x251c('0xb')][_0x251c('0xe')](_0x251c('0x5'))['to'](this),this[_0x251c('0xb')]['delegate'](_0x251c('0x1d'))['to'](this),this[_0x251c('0x1a')]=_0x53f2cc,this['_revisionActions']=_0x257d7d,this['on'](_0x251c('0x5'),(_0x2e9991,_0x2cca64)=>{this[_0x251c('0x1')]('revisionSelected',_0x2cca64);}),this['on']('setName',(_0x1956be,_0x539390)=>{this['fire'](_0x251c('0x1c'),_0x539390);}),this[_0x251c('0x19')](_0x251c('0x12'),!0x1),this[_0x251c('0xa')]({'tag':_0x251c('0x9'),'attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new _0x977082(_0x48f5c3),{'tag':_0x251c('0x9'),'attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x3a8d97['if']('isEnabled','ck-disabled',_0xef3b57=>!_0xef3b57)]},'children':this[_0x251c('0xb')]}]});}[_0x251c('0x21')](){super['render']();for(const _0x5770ea of this['_revisions'])this[_0x251c('0x3')](_0x5770ea);this['_revisions']['on'](_0x251c('0x11'),(_0x326f27,_0xd3f198)=>{this[_0x251c('0x3')](_0xd3f198);}),this[_0x251c('0x1a')]['on'](_0x251c('0x6'),(_0x119fd7,_0x4a50bb)=>{this['_removeRevision'](_0x4a50bb);});}get[_0x251c('0x15')](){return this[_0x251c('0xb')][_0x251c('0x8')](_0x3765bf=>_0x3765bf['revisionViews'][_0x251c('0x8')](_0x301c29=>_0x301c29))[_0x251c('0xc')]();}['selectRevision'](_0x51f223){for(const _0x49591f of this[_0x251c('0x15')])_0x51f223&&_0x51f223['id']===_0x49591f['id']?_0x49591f[_0x251c('0x5')]():_0x49591f[_0x251c('0x10')]();}[_0x251c('0x17')](_0x2ce9c9){for(const _0x92dfbe of this[_0x251c('0x15')])_0x2ce9c9[_0x251c('0x7')](({id:_0x5c1f66})=>_0x5c1f66===_0x92dfbe['id'])?_0x92dfbe[_0x251c('0x2')]():_0x92dfbe['unhighlight']();}['_addRevision'](_0x3a8533){const _0x2ddfce=_0x2d4922(_0x3a8533[_0x251c('0x1e')],this['locale'][_0x251c('0xd')])[_0x251c('0x1b')];let _0x5220b6=this['timePeriodViews'][_0x251c('0xf')](0x0);_0x5220b6&&_0x5220b6[_0x251c('0x1b')][_0x251c('0x20')]()===_0x2ddfce['getTime']()||(_0x5220b6=new _0x22ff3f(this['locale'],_0x2ddfce,this[_0x251c('0x14')]),this[_0x251c('0xb')]['add'](_0x5220b6)),_0x5220b6[_0x251c('0x16')](_0x3a8533);}['_removeRevision'](_0xc50e78){const _0x5ccb05=_0x2d4922(_0xc50e78[_0x251c('0x1e')],this[_0x251c('0x0')]['uiLanguage'])[_0x251c('0x1b')];this[_0x251c('0x13')](_0x5ccb05)['removeRevision'](_0xc50e78);}[_0x251c('0x13')](_0x3b6a5a){return this['timePeriodViews'][_0x251c('0x18')](_0x36c847=>_0x36c847['startDate'][_0x251c('0x20')]()===_0x3b6a5a[_0x251c('0x20')]());}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5275=['toRelativeCalendar','hasSame','monthLong','toJSDate','startOf','weekdayLong','year','fromJSDate','day','local','week','month'];(function(_0x8c6111,_0x527512){const _0x1a7e6c=function(_0x36c37c){while(--_0x36c37c){_0x8c6111['push'](_0x8c6111['shift']());}};_0x1a7e6c(++_0x527512);}(_0x5275,0x88));const _0x1a7e=function(_0x8c6111,_0x527512){_0x8c6111=_0x8c6111-0x0;let _0x1a7e6c=_0x5275[_0x8c6111];return _0x1a7e6c;};import{DateTime as _0x28f165}from'luxon';export function getDateTimePeriodInfo(_0x5a0be5,_0x3a99e0){const _0x295a5a=_0x28f165[_0x1a7e('0x3')](_0x5a0be5)['setLocale'](_0x3a99e0),_0x3aecc3=_0x28f165[_0x1a7e('0x5')](),_0x50e4d1=_0x3aecc3['minus']({'days':0x1})[_0x1a7e('0x0')](_0x1a7e('0x4'));let _0x2b5930,_0x108491;return _0x295a5a[_0x1a7e('0x9')](_0x3aecc3,_0x1a7e('0x4'))?(_0x2b5930=_0x295a5a[_0x1a7e('0x0')](_0x1a7e('0x4'))[_0x1a7e('0xb')](),_0x108491=_0x295a5a[_0x1a7e('0x8')]()):_0x295a5a[_0x1a7e('0x9')](_0x50e4d1,_0x1a7e('0x4'))?(_0x2b5930=_0x50e4d1[_0x1a7e('0xb')](),_0x108491=_0x295a5a[_0x1a7e('0x8')]()):_0x295a5a[_0x1a7e('0x9')](_0x3aecc3,_0x1a7e('0x6'))?(_0x2b5930=_0x295a5a[_0x1a7e('0x0')](_0x1a7e('0x6'))[_0x1a7e('0xb')](),_0x108491=_0x295a5a[_0x1a7e('0x1')]||''):_0x295a5a[_0x1a7e('0x9')](_0x3aecc3,'year')?(_0x2b5930=_0x295a5a[_0x1a7e('0x0')](_0x1a7e('0x7'))[_0x1a7e('0xb')](),_0x108491=_0x295a5a[_0x1a7e('0xa')]||''):(_0x2b5930=_0x295a5a['startOf'](_0x1a7e('0x2'))[_0x1a7e('0xb')](),_0x108491=String(_0x295a5a[_0x1a7e('0x2')])),{'startDate':_0x2b5930,'localizedPeriodName':_0x108491};}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1d39=['Suggested\x20by','div','name','setTemplate','add','ck-revision-change__label','author','ck-revision-change__','bindTemplate','span','element','type','Removed\x20by','focus','ck-annotation','set','_model'];(function(_0x442f7a,_0x1d3997){const _0x1cc687=function(_0x2108ad){while(--_0x2108ad){_0x442f7a['push'](_0x442f7a['shift']());}};_0x1cc687(++_0x1d3997);}(_0x1d39,0x182));const _0x1cc6=function(_0x442f7a,_0x1d3997){_0x442f7a=_0x442f7a-0x0;let _0x1cc687=_0x1d39[_0x442f7a];return _0x1cc687;};import{View as _0x508bc6}from'ckeditor5/src/ui';import{getTranslation as _0x47adcc}from'../../utils/common-translations';export default class Z extends _0x508bc6{constructor(_0x5cac6b,_0x3a0d85){super(_0x5cac6b),this[_0x1cc6('0x4')]=_0x3a0d85,this['changeId']=_0x3a0d85['id'];const _0x1304c8=this[_0x1cc6('0xd')],_0x591e84=_0x47adcc(_0x5cac6b,_0x3a0d85['data']['isSuggestion']?_0x1cc6('0x5'):_0x1cc6('0x9')==_0x3a0d85['type']?'Added\x20by':_0x1cc6('0x0'));this[_0x1cc6('0x3')](_0x1cc6('0x10'),_0x3a0d85[_0x1cc6('0x10')]),this[_0x1cc6('0x8')]({'tag':_0x1cc6('0x6'),'attributes':{'class':[_0x1cc6('0x2'),'ck-revision-change',_0x1304c8['to'](_0x1cc6('0x10'),_0x393547=>_0x1cc6('0xc')+_0x393547)],'tabindex':-0x1},'children':[{'tag':_0x1cc6('0xe'),'children':[{'tag':'span','attributes':{'class':[_0x1cc6('0xa')]},'children':[{'text':_0x591e84}]},{'text':'\x20'+_0x3a0d85[_0x1cc6('0xb')][_0x1cc6('0x7')]}]}]});}[_0x1cc6('0x1')](){this[_0x1cc6('0xf')][_0x1cc6('0x1')]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4499=['ck-revision-history-ui','ck-revision-history-ui__changes-navigation__navigation','isReady','NUMBER_OF_CHANGES','isBackwardNavigationEnabled','setTemplate','_statusText','div','bind','isNavigationMode','bindTemplate','isEnabled','Total','Show\x20previous\x20change','isForwardNavigationEnabled','forward','ck-revision-history-ui__changes-navigation__label','X_OF_Y_CHANGES','currentChangeNumber','set','numberOfChanges','span','execute','fire','ck-revision-history-ui__changes-navigation','_isStatusLabelVisible','Loading...','EDIT_X_OF_Y_REVISIONS','backward','No\x20changes','ck-revision-history-ui__changes-navigation__wrapper'];(function(_0x1c70a6,_0x449920){const _0x501b3c=function(_0x2cd742){while(--_0x2cd742){_0x1c70a6['push'](_0x1c70a6['shift']());}};_0x501b3c(++_0x449920);}(_0x4499,0xdb));const _0x501b=function(_0x1c70a6,_0x449920){_0x1c70a6=_0x1c70a6-0x0;let _0x501b3c=_0x4499[_0x1c70a6];return _0x501b3c;};import{View as _0x42f496,ButtonView as _0xbb645f,ToolbarSeparatorView as _0x35d84e}from'ckeditor5/src/ui';import{getTranslation as _0x2edfb8}from'../../utils/common-translations';import _0x2a967b from'../../../theme/icons/arrow-up.svg';import _0x36ba16 from'../../../theme/icons/arrow-down.svg';import'../../../theme/changesnavigation.css';export default class wi extends _0x42f496{constructor(_0x1bc044){super(_0x1bc044);const _0x346328=this[_0x501b('0x8')],_0x5448ce=new _0xbb645f(_0x1bc044),_0x2727df=new _0xbb645f(_0x1bc044);this[_0x501b('0x11')](_0x501b('0x7'),!0x1),this[_0x501b('0x11')](_0x501b('0x0'),!0x1),this[_0x501b('0x11')](_0x501b('0x10'),0x0),this['set'](_0x501b('0x12'),0x0),this['set'](_0x501b('0xc'),!0x1),this[_0x501b('0x11')](_0x501b('0x2'),!0x1),this['bind'](_0x501b('0x17'))['to'](this,_0x501b('0x0'),this,_0x501b('0x12'),(_0x523be9,_0x4574d5)=>_0x523be9&&_0x4574d5>0x0),this[_0x501b('0x6')](_0x501b('0x4'))['to'](this,_0x501b('0x0'),this,_0x501b('0x10'),this,_0x501b('0x12'),this,'isNavigationMode',(_0x2500e1,_0x4dfe98,_0x41dc24,_0x338103)=>{if(!_0x2500e1)return _0x2edfb8(_0x1bc044,_0x501b('0x18'));if(!_0x41dc24)return _0x2edfb8(_0x1bc044,_0x501b('0x1b'));const _0x43878f=_0x2edfb8(_0x1bc044,_0x501b('0x1'),_0x41dc24);return _0x338103?_0x2edfb8(_0x1bc044,_0x501b('0xf'),[_0x4dfe98+0x1,_0x41dc24]):_0x43878f;}),_0x5448ce[_0x501b('0x11')]({'label':_0x2edfb8(_0x1bc044,_0x501b('0xb')),'tooltip':!0x0,'icon':_0x2a967b}),_0x2727df[_0x501b('0x11')]({'label':_0x2edfb8(_0x1bc044,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x36ba16}),_0x5448ce[_0x501b('0x6')](_0x501b('0x9'))['to'](this,_0x501b('0x2')),_0x2727df[_0x501b('0x6')](_0x501b('0x9'))['to'](this,_0x501b('0xc')),_0x5448ce['on'](_0x501b('0x14'),()=>this[_0x501b('0x15')](_0x501b('0x14'),_0x501b('0x1a'))),_0x2727df['on'](_0x501b('0x14'),()=>this[_0x501b('0x15')]('execute',_0x501b('0xd'))),this[_0x501b('0x3')]({'tag':_0x501b('0x5'),'attributes':{'class':['ck',_0x501b('0x1d'),_0x501b('0x16')]},'children':[{'tag':_0x501b('0x13'),'attributes':{'class':[_0x501b('0x1c')]},'children':[{'tag':_0x501b('0x13'),'attributes':{'class':[_0x501b('0xe'),_0x346328['if'](_0x501b('0x17'),'ck-hidden',_0x343306=>!_0x343306)]},'children':[{'text':_0x346328['to'](_0x501b('0x7'),_0x9d6007=>_0x9d6007?_0x2edfb8(_0x1bc044,_0x501b('0x19'))+':\x20':_0x2edfb8(_0x1bc044,_0x501b('0xa'))+':\x20')}]},{'text':_0x346328['to'](_0x501b('0x4'))}]},new _0x35d84e(),{'tag':_0x501b('0x5'),'attributes':{'class':[_0x501b('0x1e')]},'children':[_0x5448ce,_0x2727df]}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3026=['RevisionViewerLoadingOverlay','roots','removeClass','pluginName','editor','show','addClass','change','document','view','editing'];(function(_0xfd8021,_0x302654){const _0x366f53=function(_0x4c8c42){while(--_0x4c8c42){_0xfd8021['push'](_0xfd8021['shift']());}};_0x366f53(++_0x302654);}(_0x3026,0xa6));const _0x366f=function(_0xfd8021,_0x302654){_0xfd8021=_0xfd8021-0x0;let _0x366f53=_0x3026[_0xfd8021];return _0x366f53;};import{Plugin as _0x86433b}from'ckeditor5/src/core';const oe='ck-editor__editable__loading-overlay';import'../../../theme/revisionviewerloadingoverlay.css';export default class te extends _0x86433b{static get[_0x366f('0x2')](){return _0x366f('0xa');}[_0x366f('0x4')](){const _0x5b097a=this[_0x366f('0x3')][_0x366f('0x9')][_0x366f('0x8')];_0x5b097a['change'](_0x45e774=>{for(const _0x35e291 of _0x5b097a[_0x366f('0x7')][_0x366f('0x0')])_0x45e774[_0x366f('0x5')](oe,_0x35e291);});}['hide'](){const _0x323cbb=this[_0x366f('0x3')][_0x366f('0x9')]['view'];_0x323cbb[_0x366f('0x6')](_0x205bf6=>{for(const _0x483759 of _0x323cbb[_0x366f('0x7')][_0x366f('0x0')])_0x205bf6[_0x366f('0x1')](oe,_0x483759);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2907=['set','show','add','showNextChange','init','restoreRevision','revisionHistory','execute','commands','exitToEditing','plugins','isEnabled','config','isForwardNavigationEnabled','listenTo','forward','hide','Restore\x20this\x20revision','isReady','bind','numberOfChanges','componentFactory','changesNavigation','pluginName','get','Back\x20to\x20editing'];(function(_0x3b1652,_0x29075a){const _0x5e08c5=function(_0x35a70d){while(--_0x35a70d){_0x3b1652['push'](_0x3b1652['shift']());}};_0x5e08c5(++_0x29075a);}(_0x2907,0x15c));const _0x5e08=function(_0x3b1652,_0x29075a){_0x3b1652=_0x3b1652-0x0;let _0x5e08c5=_0x2907[_0x3b1652];return _0x5e08c5;};import{Plugin as _0x3cf914}from'ckeditor5/src/core';import{ButtonView as _0x20d993}from'ckeditor5/src/ui';import _0x538901 from'./changesnavigationview';import _0x513e7e from'./../../revisionviewer';import _0x2f8e77 from'./revisionviewerloadingoverlay';import{getTranslation as _0xbd42b4}from'../../utils/common-translations';import _0x2ab00a from'@ckeditor/ckeditor5-undo/theme/icons/undo.svg';import'../../../theme/revisionviewer.css';export default class R extends _0x3cf914{static get[_0x5e08('0xd')](){return'RevisionViewerUI';}static get['requires'](){return[_0x513e7e,_0x2f8e77];}[_0x5e08('0x14')](){const _0x1b224a=this['editor'],_0x549f5a=_0x1b224a[_0x5e08('0x0')]['get'](_0x513e7e),_0x5d60e2=_0x1b224a['plugins']['get'](_0x2f8e77);_0x1b224a['ui'][_0x5e08('0xb')][_0x5e08('0x12')](_0x5e08('0x19'),_0x9a5e42=>{const _0x1a2575=new _0x20d993(_0x9a5e42);return _0x1a2575[_0x5e08('0x10')]({'label':_0xbd42b4(_0x9a5e42,_0x5e08('0xf')),'icon':_0x2ab00a,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this[_0x5e08('0x4')](_0x1a2575,_0x5e08('0x17'),()=>{_0x1b224a[_0x5e08('0x2')][_0x5e08('0xe')](_0x5e08('0x16'))['closeRevisionViewerCallback']();}),_0x1a2575;}),_0x1b224a['ui'][_0x5e08('0xb')][_0x5e08('0x12')]('restoreRevision',_0x339b57=>{const _0x47b05c=new _0x20d993(_0x339b57);return _0x47b05c[_0x5e08('0x10')]({'label':_0xbd42b4(_0x339b57,_0x5e08('0x7')),'withText':!0x0,'tooltip':!0x0}),_0x47b05c['bind'](_0x5e08('0x1'))['to'](_0x1b224a[_0x5e08('0x18')][_0x5e08('0xe')](_0x5e08('0x15'))),this[_0x5e08('0x4')](_0x47b05c,_0x5e08('0x17'),()=>_0x1b224a['execute'](_0x5e08('0x15'))),_0x47b05c;}),_0x1b224a['ui'][_0x5e08('0xb')]['add'](_0x5e08('0xc'),_0x19df19=>{const _0x37c084=new _0x538901(_0x19df19),_0x1f0342=_0x1b224a['commands'][_0x5e08('0xe')]('showPreviousChange'),_0x50271b=_0x1b224a[_0x5e08('0x18')]['get'](_0x5e08('0x13'));return _0x37c084[_0x5e08('0x9')]('isBackwardNavigationEnabled')['to'](_0x1f0342,_0x5e08('0x1')),_0x37c084[_0x5e08('0x9')](_0x5e08('0x3'))['to'](_0x50271b,'isEnabled'),_0x37c084[_0x5e08('0x9')](_0x5e08('0x8'),'currentChangeNumber',_0x5e08('0xa'),'isNavigationMode')['to'](_0x549f5a),this['listenTo'](_0x37c084,_0x5e08('0x17'),(_0x1204ca,_0x462aac)=>{_0x1b224a[_0x5e08('0x17')](_0x5e08('0x5')===_0x462aac?_0x5e08('0x13'):'showPreviousChange');}),_0x37c084;}),_0x5d60e2[_0x5e08('0x11')](),_0x549f5a['on']('change:isReady',(_0x2e6a4f,_0x5e7fea,_0x577bdf)=>{_0x577bdf?_0x5d60e2[_0x5e08('0x6')]():_0x5d60e2[_0x5e08('0x11')]();});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export function getTranslation(
|
|
23
|
+
export function getTranslation(_0x53d573,_0x449ee3,_0x3890e2){const t=_0x53d573['t'];switch(_0x449ee3){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'},_0x3890e2);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x3890e2);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 _0x449ee3;}}
|