@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20231012.0 → 0.0.0-nightly-20231014.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 _0x1ac1=['render','editor','showRevisionViewerCallback','init','set','submit','Open\x20revision\x20history','isReadOnly','view','isReady','plugins','children','cancel','remove','isOpen','length','requires','revisionHistory','execute','buttonView','get','RevisionHistoryUI','isEnabled','bind','revisionName','panelView','RevisionTracker','reset','saveButtonView','change:isOpen','add','pluginName','addMany','Save\x20current\x20revision','focus'];(function(_0x833a6f,_0x1ac1bd){const _0x59b160=function(_0x154542){while(--_0x154542){_0x833a6f['push'](_0x833a6f['shift']());}};_0x59b160(++_0x1ac1bd);}(_0x1ac1,0x86));const _0x59b1=function(_0x833a6f,_0x1ac1bd){_0x833a6f=_0x833a6f-0x0;let _0x59b160=_0x1ac1[_0x833a6f];return _0x59b160;};import{Plugin as _0x2c8861,icons as _0x356c42}from'ckeditor5/src/core';import{ListView as _0xbe05ab,ListItemView as _0x122c0b,ButtonView as _0x21f93f,createDropdown as _0x99cbd9}from'ckeditor5/src/ui';import _0xe9870b from'../../revisiontracker';import _0xe933c5 from'./revisionhistorysaverevisionformview';import{getTranslation as _0x1e1b4a}from'../../utils/common-translations';export default class u extends _0x2c8861{static get[_0x59b1('0x2')](){return _0x59b1('0x1b');}static get[_0x59b1('0x16')](){return[_0xe9870b];}[_0x59b1('0x9')](){const _0x259850=this[_0x59b1('0x7')],_0x3dfcbb=_0x259850['plugins'][_0x59b1('0x1a')](_0x59b1('0x20'));_0x259850['ui']['componentFactory'][_0x59b1('0x1')]('revisionHistory',_0x430bae=>{const _0xae20dd=_0x99cbd9(_0x430bae),_0x3c69ee=_0xae20dd[_0x59b1('0x1f')][_0x59b1('0x11')],_0x14641c=new _0xbe05ab(_0x430bae),_0x387735=new _0x122c0b(_0x430bae),_0x9d6e8=new _0x21f93f(_0x430bae),_0x4a4620=new _0x122c0b(_0x430bae),_0x3e8f76=new _0x21f93f(_0x430bae),_0x48cdcb=new _0xe933c5(_0x430bae);function _0x238d33(){_0x3c69ee[_0x59b1('0x15')]&&_0x3c69ee[_0x59b1('0x13')](0x0),_0x3c69ee[_0x59b1('0x1')](_0x14641c);}function _0x49ac4e(){_0xae20dd[_0x59b1('0x14')]=!0x1,_0x259850['editing'][_0x59b1('0xe')][_0x59b1('0x5')]();}return _0xae20dd[_0x59b1('0x1d')]('isEnabled')['to'](_0x3dfcbb,_0x59b1('0xf'),_0x3dfcbb,_0x59b1('0x1c'),_0x259850,_0x59b1('0xd'),(_0x29d00d,_0x3495d5,_0x2c7fa9)=>_0x29d00d&&_0x3495d5&&!_0x2c7fa9),_0xae20dd[_0x59b1('0x19')][_0x59b1('0xa')]({'icon':_0x356c42['history'],'label':_0x1e1b4a(_0x430bae,'Revision\x20history'),'tooltip':!0x0}),_0x9d6e8[_0x59b1('0xa')]({'label':_0x1e1b4a(_0x430bae,_0x59b1('0x4')),'withText':!0x0}),_0x9d6e8['bind'](_0x59b1('0x1c'))['to'](_0x3dfcbb,_0x59b1('0xf'),_0x3dfcbb,_0x59b1('0x1c'),_0x259850,'isReadOnly',(_0x522531,_0x250388,_0x23e8e3)=>_0x522531&&_0x250388&&!_0x23e8e3),_0x9d6e8['on'](_0x59b1('0x18'),()=>function(){_0x3c69ee[_0x59b1('0x15')]&&_0x3c69ee[_0x59b1('0x13')](0x0),(_0x48cdcb[_0x59b1('0x21')](),_0x3c69ee[_0x59b1('0x1')](_0x48cdcb),_0x48cdcb[_0x59b1('0x5')]());}()),_0x3e8f76[_0x59b1('0xa')]({'label':_0x1e1b4a(_0x430bae,_0x59b1('0xc')),'withText':!0x0}),_0x3e8f76[_0x59b1('0x1d')](_0x59b1('0x1c'))['to'](_0x3dfcbb,_0x59b1('0xf'),_0x259850,_0x59b1('0xd'),(_0x1fa38a,_0x1c53dd)=>_0x1fa38a&&!_0x1c53dd),_0x3e8f76['on']('execute',()=>{_0x259850['config']['get'](_0x59b1('0x17'))[_0x59b1('0x8')](),_0x49ac4e();}),_0x387735[_0x59b1('0x11')][_0x59b1('0x1')](_0x9d6e8),_0x4a4620[_0x59b1('0x11')][_0x59b1('0x1')](_0x3e8f76),_0x14641c['items'][_0x59b1('0x3')]([_0x387735,_0x4a4620]),_0xae20dd['on'](_0x59b1('0x0'),()=>_0x238d33()),_0x48cdcb[_0x59b1('0x22')]['bind'](_0x59b1('0x1c'))['to'](_0x3dfcbb,_0x59b1('0xf'),_0x3dfcbb,_0x59b1('0x1c'),_0x259850,_0x59b1('0xd'),(_0x4b051a,_0x22d968,_0x38eb16)=>_0x4b051a&&_0x22d968&&!_0x38eb16),_0x48cdcb['on'](_0x59b1('0xb'),()=>(_0x259850[_0x59b1('0x10')][_0x59b1('0x1a')](_0xe9870b)['saveRevision']({'name':_0x48cdcb[_0x59b1('0x1e')]}),void _0x49ac4e())),_0x48cdcb['on'](_0x59b1('0x12'),()=>_0x238d33()),_0x48cdcb[_0x59b1('0x6')](),_0x238d33(),_0xae20dd;});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4ae7=['length','render','_handleRevisionSelected','editor','setName','requires','revisionHistory.revisionActions','fieldView','newRevisionId','plugins','selectRevision','availableRevisionActions','timePeriodViews','get','_revisionsRepository','repository','_handleRevisionSetName','map','action','defaultRevisionActions','getLaterVisibleRevision','element','_revisionViewer','destroy','revisionHistory','listenTo','revisionHistory.viewerSidebarContainer','isReady','pluginName','appendChild','nameRevision','data','ready','bind','revisionSetName','revisionViews','getIndex','string','_sidebarView','_handleDiffChange','add','RevisionsSidebar','_revisions','Compare\x20against\x20selected','Name\x20this\x20revision','isSelected','_createRevisionActions','_handleEditorDataReady','restoreRevisionCallback','assign','select','isEnabled','diff','compare','init','config','getRevision','focus','restoreRevision','highlightRevisions'];(function(_0x464c1e,_0x4ae751){const _0xe2dbff=function(_0x5aaf02){while(--_0x5aaf02){_0x464c1e['push'](_0x464c1e['shift']());}};_0xe2dbff(++_0x4ae751);}(_0x4ae7,0x18b));const _0xe2db=function(_0x464c1e,_0x4ae751){_0x464c1e=_0x464c1e-0x0;let _0xe2dbff=_0x4ae7[_0x464c1e];return _0xe2dbff;};import{Plugin as _0x164924}from'ckeditor5/src/core';import _0x5472b7 from'./revisionssidebarview';import _0x239602 from'../../revisionviewer';export default class w extends _0x164924{static get[_0xe2db('0x35')](){return _0xe2db('0x6');}static get[_0xe2db('0x1e')](){return[_0x239602];}constructor(_0x36465f){super(_0x36465f),this[_0xe2db('0x2f')]=_0x36465f[_0xe2db('0x22')][_0xe2db('0x26')](_0x239602),this[_0xe2db('0x27')]=this[_0xe2db('0x2f')][_0xe2db('0x28')],this[_0xe2db('0x3')]=null;}[_0xe2db('0x13')](){const _0x1b138e=this['_revisionsRepository'][_0xe2db('0x7')],_0x1f43d8=this[_0xe2db('0xb')](),_0x8bd453=this[_0xe2db('0x1c')]['config'][_0xe2db('0x26')](_0xe2db('0x33'));this[_0xe2db('0x3')]=new _0x5472b7(this[_0xe2db('0x1c')]['locale'],_0x1b138e,_0x1f43d8),this[_0xe2db('0x3')]['on']('revisionSelected',this[_0xe2db('0x1b')]['bind'](this)),this[_0xe2db('0x3')]['on'](_0xe2db('0x3b'),this[_0xe2db('0x29')]['bind'](this)),this[_0xe2db('0x3')]['bind'](_0xe2db('0x10'))['to'](this[_0xe2db('0x2f')]),this['_sidebarView'][_0xe2db('0x25')]['on'](_0xe2db('0x5'),(_0x1b7e58,_0x537174)=>{_0x537174[_0xe2db('0x0')]['on'](_0xe2db('0x5'),(_0x4cb70d,_0x1e0d66)=>{_0x1e0d66['bind'](_0xe2db('0x10'),_0xe2db('0x34'))['to'](this[_0xe2db('0x2f')]);});}),this[_0xe2db('0x3')][_0xe2db('0x1a')](),this[_0xe2db('0x32')](this[_0xe2db('0x1c')][_0xe2db('0x38')],_0xe2db('0x39'),this['_handleEditorDataReady']['bind'](this)),this[_0xe2db('0x32')](this['_revisionViewer'],'change:diff',this['_handleDiffChange'][_0xe2db('0x3a')](this)),_0x8bd453[_0xe2db('0x36')](this[_0xe2db('0x3')][_0xe2db('0x2e')]);}[_0xe2db('0x30')](){this[_0xe2db('0x3')]['element']['remove'](),this[_0xe2db('0x3')][_0xe2db('0x30')]();}[_0xe2db('0xc')](){const _0x5e95c4=this[_0xe2db('0x27')][_0xe2db('0x15')](0x0);if(_0x5e95c4){const _0x147825=this[_0xe2db('0x27')]['getEarlierVisibleRevision'](_0x5e95c4['id']);this[_0xe2db('0x2f')][_0xe2db('0x12')](_0x5e95c4,_0x147825);}}[_0xe2db('0x1b')](_0x24de21,_0x28a116){const _0x2cc0d1=this['_revisionsRepository'][_0xe2db('0x15')](_0x28a116['id']),_0x957fe9=this[_0xe2db('0x27')]['getEarlierVisibleRevision'](_0x2cc0d1['id']);this[_0xe2db('0x2f')][_0xe2db('0x12')](_0x2cc0d1,_0x957fe9);}[_0xe2db('0x29')](_0x78ae65,_0x4ed203){this[_0xe2db('0x27')][_0xe2db('0x15')](_0x4ed203['id'])[_0xe2db('0x1d')](_0x4ed203['name']);}[_0xe2db('0x4')](_0x50c90a,_0x5d40c9,_0x5490fc){const _0xdc983d=this[_0xe2db('0x27')]['getRevisionsInDiff'](_0x5490fc);_0xdc983d['length']>0x2?(this[_0xe2db('0x3')][_0xe2db('0x18')](_0xdc983d),this['_sidebarView']['selectRevision'](null)):(this[_0xe2db('0x3')][_0xe2db('0x18')]([]),this['_sidebarView'][_0xe2db('0x23')](_0xdc983d[0x0]));}[_0xe2db('0xb')](){const _0x3b4443=this[_0xe2db('0x1c')],_0x5c240f=w[_0xe2db('0x24')],_0x437200=_0x3b4443[_0xe2db('0x14')][_0xe2db('0x26')](_0xe2db('0x1f'))||w[_0xe2db('0x2c')];if(_0x437200['length'])return _0x437200[_0xe2db('0x2a')](_0x2e96dc=>{const _0x14a631=_0xe2db('0x2')==typeof _0x2e96dc?Object[_0xe2db('0xe')]({},_0x5c240f[_0x2e96dc]):_0x2e96dc;return _0x14a631[_0xe2db('0x2b')]=_0x14a631['action'][_0xe2db('0x3a')](this,_0x3b4443),_0x14a631['isVisible']&&(_0x14a631['isVisible']=_0x14a631['isVisible'][_0xe2db('0x3a')](this,_0x3b4443)),_0x14a631;});}}w[_0xe2db('0x24')]={'compareAgainstSelected':{'name':_0xe2db('0x8'),'action':({plugins:_0x19eb6c},_0x118a25)=>{const _0x2feaab=_0x19eb6c[_0xe2db('0x26')](_0x239602),_0x17466b=_0x2feaab['repository'];let _0x42d673=_0x2feaab['diff'][_0xe2db('0x21')],_0x34c71e=_0x118a25['id'];_0x17466b[_0xe2db('0x1')](_0x42d673)>_0x17466b['getIndex'](_0x34c71e)&&([_0x42d673,_0x34c71e]=[_0x34c71e,_0x42d673]),_0x2feaab[_0xe2db('0x12')](_0x42d673,_0x34c71e);},'isVisible':({plugins:_0x362e31},_0x14d243)=>{const _0x4e9fbf=_0x362e31['get'](_0x239602);return!(_0x4e9fbf[_0xe2db('0x28')]['getRevisionsInDiff'](_0x4e9fbf[_0xe2db('0x11')])[_0xe2db('0x19')]>0x2)&&!_0x14d243[_0xe2db('0xa')];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x2d70de,{id:_0x3cb606})=>{_0x2d70de[_0xe2db('0x14')]['get'](_0xe2db('0x31'))[_0xe2db('0xd')](_0x3cb606);},'isVisible':({plugins:_0x560cee},_0x2940fd)=>!!_0x560cee['get'](_0x239602)[_0xe2db('0x28')][_0xe2db('0x2d')](_0x2940fd['id'])},'nameRevision':{'name':_0xe2db('0x9'),'action':({plugins:_0xe46929},{id:_0x30fc1d,revisionNameView:_0x1987ef})=>{const _0x1651a2=_0xe46929[_0xe2db('0x26')](_0x239602),_0x26b20f=_0x1651a2[_0xe2db('0x28')]['getEarlierVisibleRevision'](_0x30fc1d);_0x1651a2['compare'](_0x30fc1d,_0x26b20f),_0x1987ef[_0xe2db('0x16')](),_0x1987ef[_0xe2db('0x20')][_0xe2db('0xf')]();}}},w[_0xe2db('0x2c')]=['compareAgainstSelected',_0xe2db('0x17'),_0xe2db('0x37')];
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3192=['setTemplate','ck-revision-history-sidebar__header','span','Revision\x20history'];(function(_0x393285,_0x319225){const _0x1dcf25=function(_0x90dffc){while(--_0x90dffc){_0x393285['push'](_0x393285['shift']());}};_0x1dcf25(++_0x319225);}(_0x3192,0x154));const _0x1dcf=function(_0x393285,_0x319225){_0x393285=_0x393285-0x0;let _0x1dcf25=_0x3192[_0x393285];return _0x1dcf25;};import{View as _0x1dc7b0,IconView as _0x25fedd}from'ckeditor5/src/ui';import{getTranslation as _0x38b462}from'../../utils/common-translations';import{icons as _0x570ce1}from'ckeditor5/src/core';import'../../../theme/revisionssidebar/revisionssidebarheader.css';export default class rr extends _0x1dc7b0{constructor(_0x22fc55){super(_0x22fc55);const _0x16148c=new _0x25fedd();_0x16148c['content']=_0x570ce1['history'],this[_0x1dcf('0x0')]({'tag':'div','attributes':{'class':['ck','ck-reset_all',_0x1dcf('0x1')]},'children':[_0x16148c,{'tag':_0x1dcf('0x2'),'attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[_0x38b462(_0x22fc55,_0x1dcf('0x3'))]}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x224f=['delegate','setTemplate','remove','addRevision','add','revisionViews','locale','ck-revision-history-sidebar__time-period__revisions','startDate','ck-revision-history-sidebar__time-period__label','div','setName','createCollection','ck-revision-history-sidebar__time-period','_revisionActions','uiLanguage'];(function(_0x3c6870,_0x224ff4){const _0x4e62db=function(_0x4bdc45){while(--_0x4bdc45){_0x3c6870['push'](_0x3c6870['shift']());}};_0x4e62db(++_0x224ff4);}(_0x224f,0x161));const _0x4e62=function(_0x3c6870,_0x224ff4){_0x3c6870=_0x3c6870-0x0;let _0x4e62db=_0x224f[_0x3c6870];return _0x4e62db;};import{View as _0x2ad49f}from'ckeditor5/src/ui';import _0x20c971 from'../revision/revisionview';import{getDateTimePeriodInfo as _0x3525ed}from'./utils';import'../../../theme/revisionssidebar/revisionssidebartimeperiod.css';export default class pi extends _0x2ad49f{constructor(_0x552076,_0x26639e,_0x21edaf){super(_0x552076);const _0x317eda=_0x3525ed(_0x26639e,this[_0x4e62('0x5')][_0x4e62('0xe')])['localizedPeriodName'];this[_0x4e62('0x7')]=_0x26639e,this['revisionViews']=this[_0x4e62('0xb')](),this[_0x4e62('0xd')]=_0x21edaf,this[_0x4e62('0x4')][_0x4e62('0xf')]('select')['to'](this),this[_0x4e62('0x4')][_0x4e62('0xf')](_0x4e62('0xa'))['to'](this),this[_0x4e62('0x0')]({'tag':_0x4e62('0x9'),'attributes':{'class':['ck',_0x4e62('0xc')]},'children':[{'tag':'span','attributes':{'class':['ck',_0x4e62('0x8')]},'children':[{'text':_0x317eda}]},{'tag':_0x4e62('0x9'),'attributes':{'class':['ck',_0x4e62('0x6')]},'children':this[_0x4e62('0x4')]}]});}[_0x4e62('0x2')](_0x9b07ff){const _0x3c5153=new _0x20c971(this[_0x4e62('0x5')],_0x9b07ff,this[_0x4e62('0xd')]);this[_0x4e62('0x4')][_0x4e62('0x3')](_0x3c5153);}['removeRevision'](_0x412c86){const _0x3ca67c=this[_0x4e62('0x4')]['find'](_0x52b3fc=>_0x52b3fc['id']===_0x412c86['id']);this[_0x4e62('0x4')][_0x4e62('0x1')](_0x3ca67c);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2f19=['add','some','fire','ck-reset','deselect','selectRevision','select','render','div','set','locale','isEnabled','ck-revision-history-sidebar','map','_getTimePeriodViewByStartDate','ck-disabled','revisionViews','highlightRevisions','get','removeRevision','getTime','createdAt','setTemplate','_addRevision','createCollection','revisionSetName','startDate','ck-rounded-corners','_revisionActions','uiLanguage','_revisions','highlight','delegate','timePeriodViews','unhighlight','bindTemplate','ck-revision-history-sidebar__timeline','_removeRevision','setName','revisionSelected'];(function(_0x3d4e10,_0x2f1972){const _0x57f7cc=function(_0x361956){while(--_0x361956){_0x3d4e10['push'](_0x3d4e10['shift']());}};_0x57f7cc(++_0x2f1972);}(_0x2f19,0x165));const _0x57f7=function(_0x3d4e10,_0x2f1972){_0x3d4e10=_0x3d4e10-0x0;let _0x57f7cc=_0x2f19[_0x3d4e10];return _0x57f7cc;};import{View as _0x3db2c5}from'ckeditor5/src/ui';import _0x51e47d from'./revisionssidebartimeperiodview';import _0x182e26 from'./revisionssidebarheaderview';import{getDateTimePeriodInfo as _0x410f58}from'./utils';import'../../../theme/revisionssidebar/revisionssidebar.css';export default class vi extends _0x3db2c5{constructor(_0x4aee1c,_0x41d227,_0x2c19f4){super(_0x4aee1c);const _0x4c72ae=this[_0x57f7('0x26')];this['timePeriodViews']=this[_0x57f7('0x1b')](),this[_0x57f7('0x24')][_0x57f7('0x23')](_0x57f7('0x9'))['to'](this),this[_0x57f7('0x24')][_0x57f7('0x23')](_0x57f7('0x1'))['to'](this),this['_revisions']=_0x41d227,this['_revisionActions']=_0x2c19f4,this['on']('select',(_0x513dca,_0x1f0c5d)=>{this[_0x57f7('0x5')](_0x57f7('0x2'),_0x1f0c5d);}),this['on'](_0x57f7('0x1'),(_0x5af040,_0x3df256)=>{this['fire'](_0x57f7('0x1c'),_0x3df256);}),this[_0x57f7('0xc')]('isEnabled',!0x1),this[_0x57f7('0x19')]({'tag':_0x57f7('0xb'),'attributes':{'class':['ck',_0x57f7('0x6'),_0x57f7('0x1e'),_0x57f7('0xf')]},'children':[new _0x182e26(_0x4aee1c),{'tag':_0x57f7('0xb'),'attributes':{'class':['ck',_0x57f7('0x27'),_0x4c72ae['if'](_0x57f7('0xe'),_0x57f7('0x12'),_0x56e371=>!_0x56e371)]},'children':this[_0x57f7('0x24')]}]});}['render'](){super[_0x57f7('0xa')]();for(const _0x36e7b4 of this[_0x57f7('0x21')])this[_0x57f7('0x1a')](_0x36e7b4);this[_0x57f7('0x21')]['on'](_0x57f7('0x3'),(_0x6907c8,_0x5b9515)=>{this[_0x57f7('0x1a')](_0x5b9515);}),this[_0x57f7('0x21')]['on']('remove',(_0x463c45,_0x3d3ea5)=>{this[_0x57f7('0x0')](_0x3d3ea5);});}get[_0x57f7('0x13')](){return this['timePeriodViews'][_0x57f7('0x10')](_0x2bced9=>_0x2bced9[_0x57f7('0x13')][_0x57f7('0x10')](_0x348937=>_0x348937))['flat']();}[_0x57f7('0x8')](_0x9c7198){for(const _0x9a3d11 of this[_0x57f7('0x13')])_0x9c7198&&_0x9c7198['id']===_0x9a3d11['id']?_0x9a3d11[_0x57f7('0x9')]():_0x9a3d11[_0x57f7('0x7')]();}[_0x57f7('0x14')](_0x5b4090){for(const _0x86aafa of this[_0x57f7('0x13')])_0x5b4090[_0x57f7('0x4')](({id:_0x524d8b})=>_0x524d8b===_0x86aafa['id'])?_0x86aafa[_0x57f7('0x22')]():_0x86aafa[_0x57f7('0x25')]();}[_0x57f7('0x1a')](_0x1ef754){const _0x29f4e3=_0x410f58(_0x1ef754[_0x57f7('0x18')],this[_0x57f7('0xd')][_0x57f7('0x20')])[_0x57f7('0x1d')];let _0x45b871=this[_0x57f7('0x24')][_0x57f7('0x15')](0x0);_0x45b871&&_0x45b871[_0x57f7('0x1d')]['getTime']()===_0x29f4e3[_0x57f7('0x17')]()||(_0x45b871=new _0x51e47d(this[_0x57f7('0xd')],_0x29f4e3,this[_0x57f7('0x1f')]),this['timePeriodViews'][_0x57f7('0x3')](_0x45b871)),_0x45b871['addRevision'](_0x1ef754);}[_0x57f7('0x0')](_0x3d37b8){const _0x5ad7d3=_0x410f58(_0x3d37b8[_0x57f7('0x18')],this[_0x57f7('0xd')][_0x57f7('0x20')])[_0x57f7('0x1d')];this[_0x57f7('0x11')](_0x5ad7d3)[_0x57f7('0x16')](_0x3d37b8);}['_getTimePeriodViewByStartDate'](_0x4aa53e){return this[_0x57f7('0x24')]['find'](_0x5b65b8=>_0x5b65b8['startDate'][_0x57f7('0x17')]()===_0x4aa53e[_0x57f7('0x17')]());}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x38c1=['minus','week','hasSame','month','weekdayLong','fromJSDate','toRelativeCalendar','year','toJSDate','startOf','day'];(function(_0x1e4367,_0x38c114){const _0x2409f9=function(_0x40a006){while(--_0x40a006){_0x1e4367['push'](_0x1e4367['shift']());}};_0x2409f9(++_0x38c114);}(_0x38c1,0xe3));const _0x2409=function(_0x1e4367,_0x38c114){_0x1e4367=_0x1e4367-0x0;let _0x2409f9=_0x38c1[_0x1e4367];return _0x2409f9;};import{DateTime as _0x210f58}from'luxon';export function getDateTimePeriodInfo(_0x2ad844,_0x40a96a){const _0x229a67=_0x210f58[_0x2409('0x9')](_0x2ad844)['setLocale'](_0x40a96a),_0x1d21c5=_0x210f58['local'](),_0x1d8f16=_0x1d21c5[_0x2409('0x4')]({'days':0x1})[_0x2409('0x2')]('day');let _0x2c48d8,_0x5d272a;return _0x229a67[_0x2409('0x6')](_0x1d21c5,_0x2409('0x3'))?(_0x2c48d8=_0x229a67['startOf'](_0x2409('0x3'))[_0x2409('0x1')](),_0x5d272a=_0x229a67[_0x2409('0xa')]()):_0x229a67['hasSame'](_0x1d8f16,_0x2409('0x3'))?(_0x2c48d8=_0x1d8f16[_0x2409('0x1')](),_0x5d272a=_0x229a67[_0x2409('0xa')]()):_0x229a67['hasSame'](_0x1d21c5,_0x2409('0x5'))?(_0x2c48d8=_0x229a67[_0x2409('0x2')]('week')[_0x2409('0x1')](),_0x5d272a=_0x229a67[_0x2409('0x8')]||''):_0x229a67[_0x2409('0x6')](_0x1d21c5,_0x2409('0x0'))?(_0x2c48d8=_0x229a67[_0x2409('0x2')](_0x2409('0x7'))[_0x2409('0x1')](),_0x5d272a=_0x229a67['monthLong']||''):(_0x2c48d8=_0x229a67[_0x2409('0x2')]('year')[_0x2409('0x1')](),_0x5d272a=String(_0x229a67[_0x2409('0x0')])),{'startDate':_0x2c48d8,'localizedPeriodName':_0x5d272a};}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3faf=['Removed\x20by','changeId','author','ck-revision-change__label','ck-revision-change','bindTemplate','name','setTemplate','add','ck-annotation','_model','type','isSuggestion','span','set','data'];(function(_0x295e78,_0x3faffa){const _0x4a0c0a=function(_0x47327a){while(--_0x47327a){_0x295e78['push'](_0x295e78['shift']());}};_0x4a0c0a(++_0x3faffa);}(_0x3faf,0x111));const _0x4a0c=function(_0x295e78,_0x3faffa){_0x295e78=_0x295e78-0x0;let _0x4a0c0a=_0x3faf[_0x295e78];return _0x4a0c0a;};import{View as _0x89de25}from'ckeditor5/src/ui';import{getTranslation as _0x1a5b82}from'../../utils/common-translations';export default class Z extends _0x89de25{constructor(_0x2f91ff,_0x45a15c){super(_0x2f91ff),this[_0x4a0c('0x9')]=_0x45a15c,this[_0x4a0c('0x0')]=_0x45a15c['id'];const _0x3500aa=this[_0x4a0c('0x4')],_0x2e6474=_0x1a5b82(_0x2f91ff,_0x45a15c[_0x4a0c('0xe')][_0x4a0c('0xb')]?'Suggested\x20by':_0x4a0c('0x7')==_0x45a15c[_0x4a0c('0xa')]?'Added\x20by':_0x4a0c('0xf'));this[_0x4a0c('0xd')](_0x4a0c('0xa'),_0x45a15c[_0x4a0c('0xa')]),this[_0x4a0c('0x6')]({'tag':'div','attributes':{'class':[_0x4a0c('0x8'),_0x4a0c('0x3'),_0x3500aa['to'](_0x4a0c('0xa'),_0x34ec6f=>'ck-revision-change__'+_0x34ec6f)],'tabindex':-0x1},'children':[{'tag':_0x4a0c('0xc'),'children':[{'tag':'span','attributes':{'class':[_0x4a0c('0x2')]},'children':[{'text':_0x2e6474}]},{'text':'\x20'+_0x45a15c[_0x4a0c('0x1')][_0x4a0c('0x5')]}]}]});}['focus'](){this['element']['focus']();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3aaf=['fire','_isStatusLabelVisible','Show\x20previous\x20change','Show\x20next\x20change','isForwardNavigationEnabled','currentChangeNumber','execute','ck-hidden','div','ck-revision-history-ui__changes-navigation','span','ck-revision-history-ui__changes-navigation__label','ck-revision-history-ui__changes-navigation__navigation','EDIT_X_OF_Y_REVISIONS','NUMBER_OF_CHANGES','bind','isBackwardNavigationEnabled','Loading...','Total','set','ck-revision-history-ui','numberOfChanges','isReady','_statusText','No\x20changes','setTemplate','isEnabled','forward','backward','isNavigationMode','bindTemplate','X_OF_Y_CHANGES'];(function(_0x1801bd,_0x3aaf3f){const _0x57a698=function(_0x14094c){while(--_0x14094c){_0x1801bd['push'](_0x1801bd['shift']());}};_0x57a698(++_0x3aaf3f);}(_0x3aaf,0xc8));const _0x57a6=function(_0x1801bd,_0x3aaf3f){_0x1801bd=_0x1801bd-0x0;let _0x57a698=_0x3aaf[_0x1801bd];return _0x57a698;};import{View as _0x20f703,ButtonView as _0x4bab8c,ToolbarSeparatorView as _0x1447d7}from'ckeditor5/src/ui';import{getTranslation as _0xb7f771}from'../../utils/common-translations';import _0x41198e from'../../../theme/icons/arrow-up.svg';import _0x5b50a3 from'../../../theme/icons/arrow-down.svg';import'../../../theme/changesnavigation.css';export default class bi extends _0x20f703{constructor(_0x52e900){super(_0x52e900);const _0x3e4452=this[_0x57a6('0x16')],_0x4f924c=new _0x4bab8c(_0x52e900),_0x4a56b3=new _0x4bab8c(_0x52e900);this[_0x57a6('0xb')]('isNavigationMode',!0x1),this[_0x57a6('0xb')](_0x57a6('0xe'),!0x1),this['set'](_0x57a6('0x1d'),0x0),this[_0x57a6('0xb')](_0x57a6('0xd'),0x0),this['set'](_0x57a6('0x1c'),!0x1),this[_0x57a6('0xb')](_0x57a6('0x8'),!0x1),this[_0x57a6('0x7')]('_isStatusLabelVisible')['to'](this,_0x57a6('0xe'),this,_0x57a6('0xd'),(_0x47be50,_0x51a882)=>_0x47be50&&_0x51a882>0x0),this['bind']('_statusText')['to'](this,_0x57a6('0xe'),this,_0x57a6('0x1d'),this,_0x57a6('0xd'),this,_0x57a6('0x15'),(_0x3e4cc,_0x5692d5,_0x4d5e80,_0x44da3c)=>{if(!_0x3e4cc)return _0xb7f771(_0x52e900,_0x57a6('0x9'));if(!_0x4d5e80)return _0xb7f771(_0x52e900,_0x57a6('0x10'));const _0x18012a=_0xb7f771(_0x52e900,_0x57a6('0x6'),_0x4d5e80);return _0x44da3c?_0xb7f771(_0x52e900,_0x57a6('0x17'),[_0x5692d5+0x1,_0x4d5e80]):_0x18012a;}),_0x4f924c[_0x57a6('0xb')]({'label':_0xb7f771(_0x52e900,_0x57a6('0x1a')),'tooltip':!0x0,'icon':_0x41198e}),_0x4a56b3[_0x57a6('0xb')]({'label':_0xb7f771(_0x52e900,_0x57a6('0x1b')),'tooltip':!0x0,'icon':_0x5b50a3}),_0x4f924c[_0x57a6('0x7')]('isEnabled')['to'](this,_0x57a6('0x8')),_0x4a56b3['bind'](_0x57a6('0x12'))['to'](this,_0x57a6('0x1c')),_0x4f924c['on'](_0x57a6('0x1e'),()=>this[_0x57a6('0x18')](_0x57a6('0x1e'),_0x57a6('0x14'))),_0x4a56b3['on'](_0x57a6('0x1e'),()=>this[_0x57a6('0x18')](_0x57a6('0x1e'),_0x57a6('0x13'))),this[_0x57a6('0x11')]({'tag':'div','attributes':{'class':['ck',_0x57a6('0xc'),_0x57a6('0x1')]},'children':[{'tag':_0x57a6('0x2'),'attributes':{'class':['ck-revision-history-ui__changes-navigation__wrapper']},'children':[{'tag':_0x57a6('0x2'),'attributes':{'class':[_0x57a6('0x3'),_0x3e4452['if'](_0x57a6('0x19'),_0x57a6('0x1f'),_0xe4ec9a=>!_0xe4ec9a)]},'children':[{'text':_0x3e4452['to']('isNavigationMode',_0x2d267f=>_0x2d267f?_0xb7f771(_0x52e900,_0x57a6('0x5'))+':\x20':_0xb7f771(_0x52e900,_0x57a6('0xa'))+':\x20')}]},{'text':_0x3e4452['to'](_0x57a6('0xf'))}]},new _0x1447d7(),{'tag':_0x57a6('0x0'),'attributes':{'class':[_0x57a6('0x4')]},'children':[_0x4f924c,_0x4a56b3]}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x29a7=['removeClass','hide','view','show','roots','editing','document','editor','change','addClass','ck-editor__editable__loading-overlay'];(function(_0x19b06e,_0x29a76e){const _0x3c97eb=function(_0x27d5db){while(--_0x27d5db){_0x19b06e['push'](_0x19b06e['shift']());}};_0x3c97eb(++_0x29a76e);}(_0x29a7,0xcf));const _0x3c97=function(_0x19b06e,_0x29a76e){_0x19b06e=_0x19b06e-0x0;let _0x3c97eb=_0x29a7[_0x19b06e];return _0x3c97eb;};import{Plugin as _0x2023c6}from'ckeditor5/src/core';const oe=_0x3c97('0x1');import'../../../theme/revisionviewerloadingoverlay.css';export default class te extends _0x2023c6{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}[_0x3c97('0x5')](){const _0x2209dc=this[_0x3c97('0x9')][_0x3c97('0x7')][_0x3c97('0x4')];_0x2209dc[_0x3c97('0xa')](_0x3c1cdb=>{for(const _0x66577b of _0x2209dc[_0x3c97('0x8')][_0x3c97('0x6')])_0x3c1cdb[_0x3c97('0x0')](oe,_0x66577b);});}[_0x3c97('0x3')](){const _0x2d7060=this['editor']['editing'][_0x3c97('0x4')];_0x2d7060[_0x3c97('0xa')](_0x518a7d=>{for(const _0x2ea7e4 of _0x2d7060['document'][_0x3c97('0x6')])_0x518a7d[_0x3c97('0x2')](oe,_0x2ea7e4);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4ceb=['commands','isEnabled','listenTo','showNextChange','isForwardNavigationEnabled','get','config','plugins','closeRevisionViewerCallback','editor','restoreRevision','forward','exitToEditing','showPreviousChange','pluginName','set','Restore\x20this\x20revision','hide','numberOfChanges','bind','changesNavigation','change:isReady','currentChangeNumber','isBackwardNavigationEnabled','add','isReady','execute','componentFactory','isNavigationMode','show','revisionHistory'];(function(_0x29dace,_0x4ceb92){const _0x263a7a=function(_0x4dc35b){while(--_0x4dc35b){_0x29dace['push'](_0x29dace['shift']());}};_0x263a7a(++_0x4ceb92);}(_0x4ceb,0x113));const _0x263a=function(_0x29dace,_0x4ceb92){_0x29dace=_0x29dace-0x0;let _0x263a7a=_0x4ceb[_0x29dace];return _0x263a7a;};import{Plugin as _0x37eba2}from'ckeditor5/src/core';import{ButtonView as _0x34548f}from'ckeditor5/src/ui';import _0x54dc25 from'./changesnavigationview';import _0x5e6dbb from'./../../revisionviewer';import _0x5d6939 from'./revisionviewerloadingoverlay';import{getTranslation as _0x40f5ea}from'../../utils/common-translations';import _0x26651d from'@ckeditor/ckeditor5-undo/theme/icons/undo.svg';import'../../../theme/revisionviewer.css';export default class R extends _0x37eba2{static get[_0x263a('0x12')](){return'RevisionViewerUI';}static get['requires'](){return[_0x5e6dbb,_0x5d6939];}['init'](){const _0x9cfca8=this[_0x263a('0xd')],_0x296245=_0x9cfca8[_0x263a('0xb')][_0x263a('0x9')](_0x5e6dbb),_0x27d599=_0x9cfca8['plugins'][_0x263a('0x9')](_0x5d6939);_0x9cfca8['ui'][_0x263a('0x0')]['add'](_0x263a('0x10'),_0x4c252d=>{const _0x197809=new _0x34548f(_0x4c252d);return _0x197809[_0x263a('0x13')]({'label':_0x40f5ea(_0x4c252d,'Back\x20to\x20editing'),'icon':_0x26651d,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this[_0x263a('0x6')](_0x197809,'execute',()=>{_0x9cfca8[_0x263a('0xa')][_0x263a('0x9')](_0x263a('0x3'))[_0x263a('0xc')]();}),_0x197809;}),_0x9cfca8['ui']['componentFactory'][_0x263a('0x1c')](_0x263a('0xe'),_0x506fa7=>{const _0x39b342=new _0x34548f(_0x506fa7);return _0x39b342[_0x263a('0x13')]({'label':_0x40f5ea(_0x506fa7,_0x263a('0x14')),'withText':!0x0,'tooltip':!0x0}),_0x39b342[_0x263a('0x17')](_0x263a('0x5'))['to'](_0x9cfca8[_0x263a('0x4')][_0x263a('0x9')](_0x263a('0xe'))),this['listenTo'](_0x39b342,_0x263a('0x1e'),()=>_0x9cfca8[_0x263a('0x1e')]('restoreRevision')),_0x39b342;}),_0x9cfca8['ui'][_0x263a('0x0')][_0x263a('0x1c')](_0x263a('0x18'),_0x505b11=>{const _0x3b7779=new _0x54dc25(_0x505b11),_0x516ef6=_0x9cfca8[_0x263a('0x4')]['get'](_0x263a('0x11')),_0x5db251=_0x9cfca8['commands'][_0x263a('0x9')](_0x263a('0x7'));return _0x3b7779[_0x263a('0x17')](_0x263a('0x1b'))['to'](_0x516ef6,_0x263a('0x5')),_0x3b7779[_0x263a('0x17')](_0x263a('0x8'))['to'](_0x5db251,_0x263a('0x5')),_0x3b7779[_0x263a('0x17')](_0x263a('0x1d'),_0x263a('0x1a'),_0x263a('0x16'),_0x263a('0x1'))['to'](_0x296245),this['listenTo'](_0x3b7779,_0x263a('0x1e'),(_0xecc81a,_0x1a6a85)=>{_0x9cfca8[_0x263a('0x1e')](_0x263a('0xf')===_0x1a6a85?'showNextChange':_0x263a('0x11'));}),_0x3b7779;}),_0x27d599[_0x263a('0x2')](),_0x296245['on'](_0x263a('0x19'),(_0x3f3ba6,_0x2fefac,_0x43d6b9)=>{_0x43d6b9?_0x27d599[_0x263a('0x15')]():_0x27d599['show']();});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export function getTranslation(
|
|
23
|
+
export function getTranslation(_0x17c7ef,_0x459f8e,_0x2b1901){const t=_0x17c7ef['t'];switch(_0x459f8e){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'},_0x2b1901);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x2b1901);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 _0x459f8e;}}
|