@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20231226.0 → 0.0.0-nightly-20231228.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/revision-history.js +1 -1
- package/package.json +5 -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.d.ts +2 -2
- 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 _0x5369=['submit','items','saveButtonView','view','plugins','isReady','get','showRevisionViewerCallback','revisionHistory','execute','length','config','reset','remove','addMany','children','revisionName','isEnabled','isReadOnly','panelView','isOpen','cancel','add','Open\x20revision\x20history','pluginName','bind','focus','Save\x20current\x20revision','Revision\x20history','editor','requires','set','init'];(function(_0x2f45b8,_0x5369a4){const _0x1f18fa=function(_0x1a2a0e){while(--_0x1a2a0e){_0x2f45b8['push'](_0x2f45b8['shift']());}};_0x1f18fa(++_0x5369a4);}(_0x5369,0x12a));const _0x1f18=function(_0x2f45b8,_0x5369a4){_0x2f45b8=_0x2f45b8-0x0;let _0x1f18fa=_0x5369[_0x2f45b8];return _0x1f18fa;};import{Plugin as _0x17babe,icons as _0x393b14}from'ckeditor5/src/core.js';import{ListView as _0x10b965,ListItemView as _0x38d958,ButtonView as _0x4b17bb,createDropdown as _0x5a6669}from'ckeditor5/src/ui.js';import _0x16e71a from'../../revisiontracker.js';import _0x4ccf55 from'./revisionhistorysaverevisionformview.js';import{getTranslation as _0x285f2d}from'../../utils/common-translations.js';export default class u extends _0x17babe{static get[_0x1f18('0x17')](){return'RevisionHistoryUI';}static get[_0x1f18('0x1d')](){return[_0x16e71a];}[_0x1f18('0x1f')](){const _0x4f008b=this[_0x1f18('0x1c')],_0x15bfbe=_0x4f008b['plugins'][_0x1f18('0x5')]('RevisionTracker');_0x4f008b['ui']['componentFactory'][_0x1f18('0x15')](_0x1f18('0x7'),_0x23f5df=>{const _0x181ab1=_0x5a6669(_0x23f5df),_0x195b15=_0x181ab1[_0x1f18('0x12')]['children'],_0x50b599=new _0x10b965(_0x23f5df),_0x2a3eec=new _0x38d958(_0x23f5df),_0x4357f6=new _0x4b17bb(_0x23f5df),_0x412150=new _0x38d958(_0x23f5df),_0x200145=new _0x4b17bb(_0x23f5df),_0x397797=new _0x4ccf55(_0x23f5df);function _0x433792(){_0x195b15[_0x1f18('0x9')]&&_0x195b15[_0x1f18('0xc')](0x0),_0x195b15[_0x1f18('0x15')](_0x50b599);}function _0x567ca7(){_0x181ab1[_0x1f18('0x13')]=!0x1,_0x4f008b['editing'][_0x1f18('0x2')][_0x1f18('0x19')]();}return _0x181ab1['bind'](_0x1f18('0x10'))['to'](_0x15bfbe,'isReady',_0x15bfbe,_0x1f18('0x10'),_0x4f008b,'isReadOnly',(_0xd1f5b3,_0x34a5c0,_0x26040f)=>_0xd1f5b3&&_0x34a5c0&&!_0x26040f),_0x181ab1['buttonView'][_0x1f18('0x1e')]({'icon':_0x393b14['history'],'label':_0x285f2d(_0x23f5df,_0x1f18('0x1b')),'tooltip':!0x0}),_0x4357f6[_0x1f18('0x1e')]({'label':_0x285f2d(_0x23f5df,_0x1f18('0x1a')),'withText':!0x0}),_0x4357f6[_0x1f18('0x18')]('isEnabled')['to'](_0x15bfbe,'isReady',_0x15bfbe,_0x1f18('0x10'),_0x4f008b,_0x1f18('0x11'),(_0x14fdc8,_0x39213e,_0xa7a4a)=>_0x14fdc8&&_0x39213e&&!_0xa7a4a),_0x4357f6['on'](_0x1f18('0x8'),()=>function(){_0x195b15[_0x1f18('0x9')]&&_0x195b15[_0x1f18('0xc')](0x0),(_0x397797[_0x1f18('0xb')](),_0x195b15[_0x1f18('0x15')](_0x397797),_0x397797[_0x1f18('0x19')]());}()),_0x200145['set']({'label':_0x285f2d(_0x23f5df,_0x1f18('0x16')),'withText':!0x0}),_0x200145[_0x1f18('0x18')](_0x1f18('0x10'))['to'](_0x15bfbe,_0x1f18('0x4'),_0x4f008b,_0x1f18('0x11'),(_0x1ee897,_0x238220)=>_0x1ee897&&!_0x238220),_0x200145['on'](_0x1f18('0x8'),()=>{_0x4f008b[_0x1f18('0xa')][_0x1f18('0x5')](_0x1f18('0x7'))[_0x1f18('0x6')](),_0x567ca7();}),_0x2a3eec[_0x1f18('0xe')][_0x1f18('0x15')](_0x4357f6),_0x412150[_0x1f18('0xe')]['add'](_0x200145),_0x50b599[_0x1f18('0x0')][_0x1f18('0xd')]([_0x2a3eec,_0x412150]),_0x181ab1['on']('change:isOpen',()=>_0x433792()),_0x397797[_0x1f18('0x1')][_0x1f18('0x18')](_0x1f18('0x10'))['to'](_0x15bfbe,_0x1f18('0x4'),_0x15bfbe,_0x1f18('0x10'),_0x4f008b,_0x1f18('0x11'),(_0x1a89d3,_0x5823c1,_0x48f7a4)=>_0x1a89d3&&_0x5823c1&&!_0x48f7a4),_0x397797['on'](_0x1f18('0x20'),()=>(_0x4f008b[_0x1f18('0x3')][_0x1f18('0x5')](_0x16e71a)['saveRevision']({'name':_0x397797[_0x1f18('0xf')]}),void _0x567ca7())),_0x397797['on'](_0x1f18('0x14'),()=>_0x433792()),_0x397797['render'](),_0x433792(),_0x181ab1;});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1939=['_sidebarView','isReady','string','isEnabled','compare','action','pluginName','isVisible','get','restoreRevision','fieldView','defaultRevisionActions','editor','highlightRevisions','_handleDiffChange','appendChild','_handleRevisionSetName','getIndex','nameRevision','length','remove','restoreRevisionCallback','data','revisionHistory','Name\x20this\x20revision','ready','RevisionsSidebar','revisionViews','isSelected','Compare\x20against\x20selected','_createRevisionActions','_handleEditorDataReady','bind','plugins','_handleRevisionSelected','element','selectRevision','listenTo','change:diff','Restore\x20this\x20revision','revisionSelected','setName','diff','add','getRevision','config','_revisionsRepository','getRevisionsInDiff','repository','destroy','map','availableRevisionActions','getLaterVisibleRevision','render','timePeriodViews','assign','_revisionViewer','init','getEarlierVisibleRevision','revisionHistory.revisionActions'];(function(_0x25414b,_0x193906){const _0x2c69ae=function(_0x1540d1){while(--_0x1540d1){_0x25414b['push'](_0x25414b['shift']());}};_0x2c69ae(++_0x193906);}(_0x1939,0x100));const _0x2c69=function(_0x25414b,_0x193906){_0x25414b=_0x25414b-0x0;let _0x2c69ae=_0x1939[_0x25414b];return _0x2c69ae;};import{Plugin as _0xd129f4}from'ckeditor5/src/core.js';import _0x184647 from'./revisionssidebarview.js';import _0x377d06 from'../../revisionviewer.js';export default class w extends _0xd129f4{static get[_0x2c69('0x32')](){return _0x2c69('0xa');}static get['requires'](){return[_0x377d06];}constructor(_0x4ee8a8){super(_0x4ee8a8),this[_0x2c69('0x28')]=_0x4ee8a8[_0x2c69('0x11')][_0x2c69('0x34')](_0x377d06),this[_0x2c69('0x1e')]=this[_0x2c69('0x28')][_0x2c69('0x20')],this['_sidebarView']=null;}[_0x2c69('0x29')](){const _0x25ff78=this[_0x2c69('0x1e')]['_revisions'],_0x24db0d=this['_createRevisionActions'](),_0x2119b6=this[_0x2c69('0x38')]['config'][_0x2c69('0x34')]('revisionHistory.viewerSidebarContainer');this[_0x2c69('0x2c')]=new _0x184647(this[_0x2c69('0x38')]['locale'],_0x25ff78,_0x24db0d),this[_0x2c69('0x2c')]['on'](_0x2c69('0x18'),this[_0x2c69('0x12')][_0x2c69('0x10')](this)),this[_0x2c69('0x2c')]['on']('revisionSetName',this[_0x2c69('0x0')][_0x2c69('0x10')](this)),this[_0x2c69('0x2c')][_0x2c69('0x10')](_0x2c69('0x2f'))['to'](this['_revisionViewer']),this[_0x2c69('0x2c')][_0x2c69('0x26')]['on'](_0x2c69('0x1b'),(_0x1cb079,_0xcac08e)=>{_0xcac08e[_0x2c69('0xb')]['on'](_0x2c69('0x1b'),(_0x1d2613,_0x265f55)=>{_0x265f55[_0x2c69('0x10')]('isEnabled',_0x2c69('0x2d'))['to'](this[_0x2c69('0x28')]);});}),this['_sidebarView'][_0x2c69('0x25')](),this[_0x2c69('0x15')](this['editor'][_0x2c69('0x6')],_0x2c69('0x9'),this['_handleEditorDataReady'][_0x2c69('0x10')](this)),this[_0x2c69('0x15')](this[_0x2c69('0x28')],_0x2c69('0x16'),this[_0x2c69('0x3a')][_0x2c69('0x10')](this)),_0x2119b6[_0x2c69('0x3b')](this[_0x2c69('0x2c')][_0x2c69('0x13')]);}[_0x2c69('0x21')](){this['_sidebarView']['element'][_0x2c69('0x4')](),this[_0x2c69('0x2c')][_0x2c69('0x21')]();}[_0x2c69('0xf')](){const _0x368934=this[_0x2c69('0x1e')][_0x2c69('0x1c')](0x0);if(_0x368934){const _0x302499=this[_0x2c69('0x1e')][_0x2c69('0x2a')](_0x368934['id']);this['_revisionViewer']['compare'](_0x368934,_0x302499);}}[_0x2c69('0x12')](_0x287692,_0x288804){const _0x1dc228=this['_revisionsRepository'][_0x2c69('0x1c')](_0x288804['id']),_0x1716bb=this[_0x2c69('0x1e')][_0x2c69('0x2a')](_0x1dc228['id']);this[_0x2c69('0x28')]['compare'](_0x1dc228,_0x1716bb);}[_0x2c69('0x0')](_0x134015,_0x312ef9){this[_0x2c69('0x1e')][_0x2c69('0x1c')](_0x312ef9['id'])[_0x2c69('0x19')](_0x312ef9['name']);}[_0x2c69('0x3a')](_0x163303,_0x4d74cb,_0x55abf5){const _0x329e61=this['_revisionsRepository'][_0x2c69('0x1f')](_0x55abf5);_0x329e61[_0x2c69('0x3')]>0x2?(this[_0x2c69('0x2c')][_0x2c69('0x39')](_0x329e61),this[_0x2c69('0x2c')][_0x2c69('0x14')](null)):(this[_0x2c69('0x2c')][_0x2c69('0x39')]([]),this[_0x2c69('0x2c')][_0x2c69('0x14')](_0x329e61[0x0]));}[_0x2c69('0xe')](){const _0x35eefc=this[_0x2c69('0x38')],_0x5edb1c=w[_0x2c69('0x23')],_0x19d5d5=_0x35eefc[_0x2c69('0x1d')][_0x2c69('0x34')](_0x2c69('0x2b'))||w[_0x2c69('0x37')];if(_0x19d5d5[_0x2c69('0x3')])return _0x19d5d5[_0x2c69('0x22')](_0x265777=>{const _0x33a8a4=_0x2c69('0x2e')==typeof _0x265777?Object[_0x2c69('0x27')]({},_0x5edb1c[_0x265777]):_0x265777;return _0x33a8a4[_0x2c69('0x31')]=_0x33a8a4[_0x2c69('0x31')][_0x2c69('0x10')](this,_0x35eefc),_0x33a8a4[_0x2c69('0x33')]&&(_0x33a8a4['isVisible']=_0x33a8a4[_0x2c69('0x33')][_0x2c69('0x10')](this,_0x35eefc)),_0x33a8a4;});}}w[_0x2c69('0x23')]={'compareAgainstSelected':{'name':_0x2c69('0xd'),'action':({plugins:_0x445a68},_0x351964)=>{const _0x479348=_0x445a68[_0x2c69('0x34')](_0x377d06),_0x1b2483=_0x479348[_0x2c69('0x20')];let _0x2b5ba8=_0x479348[_0x2c69('0x1a')]['newRevisionId'],_0x30e5b3=_0x351964['id'];_0x1b2483[_0x2c69('0x1')](_0x2b5ba8)>_0x1b2483['getIndex'](_0x30e5b3)&&([_0x2b5ba8,_0x30e5b3]=[_0x30e5b3,_0x2b5ba8]),_0x479348[_0x2c69('0x30')](_0x2b5ba8,_0x30e5b3);},'isVisible':({plugins:_0x4f7775},_0x4eb48a)=>{const _0x4932cf=_0x4f7775['get'](_0x377d06);return!(_0x4932cf[_0x2c69('0x20')][_0x2c69('0x1f')](_0x4932cf[_0x2c69('0x1a')])['length']>0x2)&&!_0x4eb48a[_0x2c69('0xc')];}},'restoreRevision':{'name':_0x2c69('0x17'),'action':(_0x3ca5d9,{id:_0x4d42f8})=>{_0x3ca5d9['config']['get'](_0x2c69('0x7'))[_0x2c69('0x5')](_0x4d42f8);},'isVisible':({plugins:_0x429ab2},_0x3d8b1f)=>!!_0x429ab2[_0x2c69('0x34')](_0x377d06)['repository'][_0x2c69('0x24')](_0x3d8b1f['id'])},'nameRevision':{'name':_0x2c69('0x8'),'action':({plugins:_0x1b9226},{id:_0x2c802c,revisionNameView:_0x39a709})=>{const _0xf5637e=_0x1b9226[_0x2c69('0x34')](_0x377d06),_0x5c6093=_0xf5637e[_0x2c69('0x20')][_0x2c69('0x2a')](_0x2c802c);_0xf5637e[_0x2c69('0x30')](_0x2c802c,_0x5c6093),_0x39a709['focus'](),_0x39a709[_0x2c69('0x36')]['select']();}}},w['defaultRevisionActions']=['compareAgainstSelected',_0x2c69('0x35'),_0x2c69('0x2')];
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1a6b=['ck-revision-history-sidebar__header','ck-revision-history-sidebar__header__label','span','history','setTemplate'];(function(_0xe93d0a,_0x1a6bfe){const _0x559588=function(_0x28ea09){while(--_0x28ea09){_0xe93d0a['push'](_0xe93d0a['shift']());}};_0x559588(++_0x1a6bfe);}(_0x1a6b,0xa1));const _0x5595=function(_0xe93d0a,_0x1a6bfe){_0xe93d0a=_0xe93d0a-0x0;let _0x559588=_0x1a6b[_0xe93d0a];return _0x559588;};import{View as _0x3541ad,IconView as _0x4d3a8a}from'ckeditor5/src/ui.js';import{getTranslation as _0x845213}from'../../utils/common-translations.js';import{icons as _0x24ff3d}from'ckeditor5/src/core.js';import'../../../theme/revisionssidebar/revisionssidebarheader.css';export default class rs extends _0x3541ad{constructor(_0x442bf2){super(_0x442bf2);const _0xfb1adf=new _0x4d3a8a();_0xfb1adf['content']=_0x24ff3d[_0x5595('0x2')],this[_0x5595('0x3')]({'tag':'div','attributes':{'class':['ck','ck-reset_all',_0x5595('0x4')]},'children':[_0xfb1adf,{'tag':_0x5595('0x1'),'attributes':{'class':['ck',_0x5595('0x0')]},'children':[_0x845213(_0x442bf2,'Revision\x20history')]}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x57f5=['find','setName','revisionViews','setTemplate','_revisionActions','removeRevision','localizedPeriodName','div','ck-revision-history-sidebar__time-period','locale','add','delegate','remove','startDate','uiLanguage','ck-revision-history-sidebar__time-period__revisions','createCollection'];(function(_0x1ff982,_0x57f522){const _0x4a5414=function(_0x449f10){while(--_0x449f10){_0x1ff982['push'](_0x1ff982['shift']());}};_0x4a5414(++_0x57f522);}(_0x57f5,0xea));const _0x4a54=function(_0x1ff982,_0x57f522){_0x1ff982=_0x1ff982-0x0;let _0x4a5414=_0x57f5[_0x1ff982];return _0x4a5414;};import{View as _0x3cec11}from'ckeditor5/src/ui.js';import _0xb8b7ff from'../revision/revisionview.js';import{getDateTimePeriodInfo as _0x1ef025}from'./utils.js';import'../../../theme/revisionssidebar/revisionssidebartimeperiod.css';export default class vi extends _0x3cec11{constructor(_0x352393,_0x4e19e7,_0x59a141){super(_0x352393);const _0x72be87=_0x1ef025(_0x4e19e7,this[_0x4a54('0xd')][_0x4a54('0x1')])[_0x4a54('0xa')];this[_0x4a54('0x0')]=_0x4e19e7,this[_0x4a54('0x6')]=this[_0x4a54('0x3')](),this[_0x4a54('0x8')]=_0x59a141,this[_0x4a54('0x6')]['delegate']('select')['to'](this),this['revisionViews'][_0x4a54('0xf')](_0x4a54('0x5'))['to'](this),this[_0x4a54('0x7')]({'tag':_0x4a54('0xb'),'attributes':{'class':['ck',_0x4a54('0xc')]},'children':[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__label']},'children':[{'text':_0x72be87}]},{'tag':_0x4a54('0xb'),'attributes':{'class':['ck',_0x4a54('0x2')]},'children':this['revisionViews']}]});}['addRevision'](_0x573c54){const _0x5a15f0=new _0xb8b7ff(this[_0x4a54('0xd')],_0x573c54,this['_revisionActions']);this[_0x4a54('0x6')][_0x4a54('0xe')](_0x5a15f0);}[_0x4a54('0x9')](_0x1cf719){const _0x48d840=this[_0x4a54('0x6')][_0x4a54('0x4')](_0x3d2dc1=>_0x3d2dc1['id']===_0x1cf719['id']);this[_0x4a54('0x6')][_0x4a54('0x10')](_0x48d840);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x8819=['_addRevision','getTime','isEnabled','find','map','uiLanguage','revisionSetName','get','removeRevision','setTemplate','unhighlight','flat','revisionSelected','_removeRevision','fire','delegate','locale','highlightRevisions','select','timePeriodViews','_getTimePeriodViewByStartDate','ck-reset','some','setName','set','bindTemplate','remove','render','createCollection','_revisionActions','deselect','selectRevision','ck-disabled','div','startDate','_revisions','ck-revision-history-sidebar','revisionViews'];(function(_0x274db1,_0x881947){const _0x494ab0=function(_0x3de1ea){while(--_0x3de1ea){_0x274db1['push'](_0x274db1['shift']());}};_0x494ab0(++_0x881947);}(_0x8819,0x109));const _0x494a=function(_0x274db1,_0x881947){_0x274db1=_0x274db1-0x0;let _0x494ab0=_0x8819[_0x274db1];return _0x494ab0;};import{View as _0x3dd2e2}from'ckeditor5/src/ui.js';import _0x56ddc9 from'./revisionssidebartimeperiodview.js';import _0x2ca6f from'./revisionssidebarheaderview.js';import{getDateTimePeriodInfo as _0x1ebd0d}from'./utils.js';import'../../../theme/revisionssidebar/revisionssidebar.css';export default class di extends _0x3dd2e2{constructor(_0x38110f,_0x6f3c5e,_0x123eb7){super(_0x38110f);const _0x4fc84b=this[_0x494a('0x1a')];this[_0x494a('0x14')]=this[_0x494a('0x1d')](),this['timePeriodViews'][_0x494a('0x10')](_0x494a('0x13'))['to'](this),this[_0x494a('0x14')]['delegate'](_0x494a('0x18'))['to'](this),this[_0x494a('0x24')]=_0x6f3c5e,this[_0x494a('0x1e')]=_0x123eb7,this['on']('select',(_0x34932a,_0x2f295f)=>{this[_0x494a('0xf')](_0x494a('0xd'),_0x2f295f);}),this['on'](_0x494a('0x18'),(_0x15f25c,_0x475c99)=>{this[_0x494a('0xf')](_0x494a('0x7'),_0x475c99);}),this[_0x494a('0x19')]('isEnabled',!0x1),this[_0x494a('0xa')]({'tag':'div','attributes':{'class':['ck',_0x494a('0x16'),'ck-rounded-corners',_0x494a('0x25')]},'children':[new _0x2ca6f(_0x38110f),{'tag':_0x494a('0x22'),'attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x4fc84b['if'](_0x494a('0x3'),_0x494a('0x21'),_0x370cea=>!_0x370cea)]},'children':this[_0x494a('0x14')]}]});}['render'](){super[_0x494a('0x1c')]();for(const _0x39b56f of this[_0x494a('0x24')])this[_0x494a('0x1')](_0x39b56f);this['_revisions']['on']('add',(_0x560098,_0x1e2995)=>{this[_0x494a('0x1')](_0x1e2995);}),this['_revisions']['on'](_0x494a('0x1b'),(_0x22bcfe,_0x4a4eb0)=>{this[_0x494a('0xe')](_0x4a4eb0);});}get['revisionViews'](){return this[_0x494a('0x14')][_0x494a('0x5')](_0x860634=>_0x860634['revisionViews']['map'](_0x21d682=>_0x21d682))[_0x494a('0xc')]();}[_0x494a('0x20')](_0x50ded0){for(const _0x203ba1 of this[_0x494a('0x0')])_0x50ded0&&_0x50ded0['id']===_0x203ba1['id']?_0x203ba1[_0x494a('0x13')]():_0x203ba1[_0x494a('0x1f')]();}[_0x494a('0x12')](_0x148330){for(const _0x573e2c of this[_0x494a('0x0')])_0x148330[_0x494a('0x17')](({id:_0x3de8a0})=>_0x3de8a0===_0x573e2c['id'])?_0x573e2c['highlight']():_0x573e2c[_0x494a('0xb')]();}[_0x494a('0x1')](_0x4ae8e6){const _0x289fc9=_0x1ebd0d(_0x4ae8e6['createdAt'],this[_0x494a('0x11')]['uiLanguage'])['startDate'];let _0x22a2da=this['timePeriodViews'][_0x494a('0x8')](0x0);_0x22a2da&&_0x22a2da[_0x494a('0x23')][_0x494a('0x2')]()===_0x289fc9['getTime']()||(_0x22a2da=new _0x56ddc9(this['locale'],_0x289fc9,this['_revisionActions']),this[_0x494a('0x14')]['add'](_0x22a2da)),_0x22a2da['addRevision'](_0x4ae8e6);}['_removeRevision'](_0x579654){const _0x3e2f7b=_0x1ebd0d(_0x579654['createdAt'],this[_0x494a('0x11')][_0x494a('0x6')])[_0x494a('0x23')];this[_0x494a('0x15')](_0x3e2f7b)[_0x494a('0x9')](_0x579654);}[_0x494a('0x15')](_0x7d268b){return this['timePeriodViews'][_0x494a('0x4')](_0x4c1599=>_0x4c1599['startDate'][_0x494a('0x2')]()===_0x7d268b[_0x494a('0x2')]());}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x24eb=['year','weekdayLong','minus','day','month','hasSame','startOf','toJSDate','week','monthLong','toRelativeCalendar','setLocale','fromJSDate'];(function(_0x212b9e,_0x24ebd9){const _0x4f317f=function(_0x5b9484){while(--_0x5b9484){_0x212b9e['push'](_0x212b9e['shift']());}};_0x4f317f(++_0x24ebd9);}(_0x24eb,0xef));const _0x4f31=function(_0x212b9e,_0x24ebd9){_0x212b9e=_0x212b9e-0x0;let _0x4f317f=_0x24eb[_0x212b9e];return _0x4f317f;};import{DateTime as _0xc7e6a8}from'luxon';export function getDateTimePeriodInfo(_0x3418d5,_0x31ab02){const _0x5a14ca=_0xc7e6a8[_0x4f31('0x7')](_0x3418d5)[_0x4f31('0x6')](_0x31ab02),_0x495589=_0xc7e6a8['local'](),_0x2425d7=_0x495589[_0x4f31('0xa')]({'days':0x1})[_0x4f31('0x1')](_0x4f31('0xb'));let _0x1fb2fe,_0x374936;return _0x5a14ca[_0x4f31('0x0')](_0x495589,_0x4f31('0xb'))?(_0x1fb2fe=_0x5a14ca['startOf'](_0x4f31('0xb'))['toJSDate'](),_0x374936=_0x5a14ca[_0x4f31('0x5')]()):_0x5a14ca[_0x4f31('0x0')](_0x2425d7,_0x4f31('0xb'))?(_0x1fb2fe=_0x2425d7['toJSDate'](),_0x374936=_0x5a14ca[_0x4f31('0x5')]()):_0x5a14ca[_0x4f31('0x0')](_0x495589,_0x4f31('0x3'))?(_0x1fb2fe=_0x5a14ca[_0x4f31('0x1')](_0x4f31('0x3'))[_0x4f31('0x2')](),_0x374936=_0x5a14ca[_0x4f31('0x9')]||''):_0x5a14ca['hasSame'](_0x495589,_0x4f31('0x8'))?(_0x1fb2fe=_0x5a14ca[_0x4f31('0x1')](_0x4f31('0xc'))[_0x4f31('0x2')](),_0x374936=_0x5a14ca[_0x4f31('0x4')]||''):(_0x1fb2fe=_0x5a14ca[_0x4f31('0x1')](_0x4f31('0x8'))[_0x4f31('0x2')](),_0x374936=String(_0x5a14ca['year'])),{'startDate':_0x1fb2fe,'localizedPeriodName':_0x374936};}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4d9b=['ck-revision-change','isSuggestion','_model','type','ck-revision-change__','element','div','set','span','ck-revision-change__label','ck-annotation','Removed\x20by','changeId','focus','Suggested\x20by','name','author','Added\x20by'];(function(_0x20b63c,_0x4d9b8a){const _0x42efa6=function(_0x40e6e8){while(--_0x40e6e8){_0x20b63c['push'](_0x20b63c['shift']());}};_0x42efa6(++_0x4d9b8a);}(_0x4d9b,0xed));const _0x42ef=function(_0x20b63c,_0x4d9b8a){_0x20b63c=_0x20b63c-0x0;let _0x42efa6=_0x4d9b[_0x20b63c];return _0x42efa6;};import{View as _0xe40cc6}from'ckeditor5/src/ui.js';import{getTranslation as _0x5959b4}from'../../utils/common-translations.js';export default class Z extends _0xe40cc6{constructor(_0x1410b1,_0x47a8b2){super(_0x1410b1),this[_0x42ef('0x11')]=_0x47a8b2,this[_0x42ef('0x9')]=_0x47a8b2['id'];const _0x2c35a2=this['bindTemplate'],_0x1c065a=_0x5959b4(_0x1410b1,_0x47a8b2['data'][_0x42ef('0x10')]?_0x42ef('0xb'):'add'==_0x47a8b2[_0x42ef('0x0')]?_0x42ef('0xe'):_0x42ef('0x8'));this[_0x42ef('0x4')](_0x42ef('0x0'),_0x47a8b2[_0x42ef('0x0')]),this['setTemplate']({'tag':_0x42ef('0x3'),'attributes':{'class':[_0x42ef('0x7'),_0x42ef('0xf'),_0x2c35a2['to'](_0x42ef('0x0'),_0x1971ff=>_0x42ef('0x1')+_0x1971ff)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':_0x42ef('0x5'),'attributes':{'class':[_0x42ef('0x6')]},'children':[{'text':_0x1c065a}]},{'text':'\x20'+_0x47a8b2[_0x42ef('0xd')][_0x42ef('0xc')]}]}]});}[_0x42ef('0xa')](){this[_0x42ef('0x2')][_0x42ef('0xa')]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xadcb=['forward','_isStatusLabelVisible','isEnabled','currentChangeNumber','ck-hidden','backward','span','bind','ck-revision-history-ui__changes-navigation__wrapper','isBackwardNavigationEnabled','set','div','setTemplate','isReady','execute','isNavigationMode','ck-revision-history-ui','ck-revision-history-ui__changes-navigation__navigation','ck-revision-history-ui__changes-navigation__label','isForwardNavigationEnabled','fire','Show\x20previous\x20change','EDIT_X_OF_Y_REVISIONS'];(function(_0x1b94dd,_0xadcb39){const _0x2a1f77=function(_0x1803ea){while(--_0x1803ea){_0x1b94dd['push'](_0x1b94dd['shift']());}};_0x2a1f77(++_0xadcb39);}(_0xadcb,0xd7));const _0x2a1f=function(_0x1b94dd,_0xadcb39){_0x1b94dd=_0x1b94dd-0x0;let _0x2a1f77=_0xadcb[_0x1b94dd];return _0x2a1f77;};import{View as _0x71319f,ButtonView as _0x3e9663,ToolbarSeparatorView as _0x3a1097}from'ckeditor5/src/ui.js';import{getTranslation as _0x55c23b}from'../../utils/common-translations.js';import _0x1600ad from'../../../theme/icons/arrow-up.svg';import _0x13f4df from'../../../theme/icons/arrow-down.svg';import'../../../theme/changesnavigation.css';export default class bi extends _0x71319f{constructor(_0x5b6480){super(_0x5b6480);const _0x24e026=this['bindTemplate'],_0x3e21ca=new _0x3e9663(_0x5b6480),_0xa91792=new _0x3e9663(_0x5b6480);this[_0x2a1f('0x2')]('isNavigationMode',!0x1),this[_0x2a1f('0x2')](_0x2a1f('0x5'),!0x1),this[_0x2a1f('0x2')](_0x2a1f('0x12'),0x0),this[_0x2a1f('0x2')]('numberOfChanges',0x0),this['set'](_0x2a1f('0xb'),!0x1),this[_0x2a1f('0x2')](_0x2a1f('0x1'),!0x1),this[_0x2a1f('0x16')](_0x2a1f('0x10'))['to'](this,'isReady',this,'numberOfChanges',(_0x2db326,_0x1e4296)=>_0x2db326&&_0x1e4296>0x0),this[_0x2a1f('0x16')]('_statusText')['to'](this,_0x2a1f('0x5'),this,_0x2a1f('0x12'),this,'numberOfChanges',this,_0x2a1f('0x7'),(_0x1bb6e0,_0x5a7cc3,_0x2489bb,_0x1c142c)=>{if(!_0x1bb6e0)return _0x55c23b(_0x5b6480,'Loading...');if(!_0x2489bb)return _0x55c23b(_0x5b6480,'No\x20changes');const _0xfc4916=_0x55c23b(_0x5b6480,'NUMBER_OF_CHANGES',_0x2489bb);return _0x1c142c?_0x55c23b(_0x5b6480,'X_OF_Y_CHANGES',[_0x5a7cc3+0x1,_0x2489bb]):_0xfc4916;}),_0x3e21ca[_0x2a1f('0x2')]({'label':_0x55c23b(_0x5b6480,_0x2a1f('0xd')),'tooltip':!0x0,'icon':_0x1600ad}),_0xa91792['set']({'label':_0x55c23b(_0x5b6480,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x13f4df}),_0x3e21ca[_0x2a1f('0x16')](_0x2a1f('0x11'))['to'](this,_0x2a1f('0x1')),_0xa91792['bind'](_0x2a1f('0x11'))['to'](this,_0x2a1f('0xb')),_0x3e21ca['on'](_0x2a1f('0x6'),()=>this[_0x2a1f('0xc')]('execute',_0x2a1f('0x14'))),_0xa91792['on'](_0x2a1f('0x6'),()=>this[_0x2a1f('0xc')](_0x2a1f('0x6'),_0x2a1f('0xf'))),this[_0x2a1f('0x4')]({'tag':_0x2a1f('0x3'),'attributes':{'class':['ck',_0x2a1f('0x8'),'ck-revision-history-ui__changes-navigation']},'children':[{'tag':_0x2a1f('0x15'),'attributes':{'class':[_0x2a1f('0x0')]},'children':[{'tag':_0x2a1f('0x15'),'attributes':{'class':[_0x2a1f('0xa'),_0x24e026['if']('_isStatusLabelVisible',_0x2a1f('0x13'),_0x5ee9a5=>!_0x5ee9a5)]},'children':[{'text':_0x24e026['to']('isNavigationMode',_0x362ac4=>_0x362ac4?_0x55c23b(_0x5b6480,_0x2a1f('0xe'))+':\x20':_0x55c23b(_0x5b6480,'Total')+':\x20')}]},{'text':_0x24e026['to']('_statusText')}]},new _0x3a1097(),{'tag':_0x2a1f('0x3'),'attributes':{'class':[_0x2a1f('0x9')]},'children':[_0x3e21ca,_0xa91792]}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x15cb=['show','view','addClass','roots','hide','pluginName','editing','editor','RevisionViewerLoadingOverlay','ck-editor__editable__loading-overlay','document'];(function(_0x285456,_0x15cb88){const _0x46548b=function(_0x4ecbad){while(--_0x4ecbad){_0x285456['push'](_0x285456['shift']());}};_0x46548b(++_0x15cb88);}(_0x15cb,0x10d));const _0x4654=function(_0x285456,_0x15cb88){_0x285456=_0x285456-0x0;let _0x46548b=_0x15cb[_0x285456];return _0x46548b;};import{Plugin as _0x4aaf27}from'ckeditor5/src/core.js';const oe=_0x4654('0x4');import'../../../theme/revisionviewerloadingoverlay.css';export default class te extends _0x4aaf27{static get[_0x4654('0x0')](){return _0x4654('0x3');}[_0x4654('0x6')](){const _0x2b0d31=this['editor'][_0x4654('0x1')][_0x4654('0x7')];_0x2b0d31['change'](_0x209eb1=>{for(const _0x180845 of _0x2b0d31['document'][_0x4654('0x9')])_0x209eb1[_0x4654('0x8')](oe,_0x180845);});}[_0x4654('0xa')](){const _0xc000b4=this[_0x4654('0x2')][_0x4654('0x1')][_0x4654('0x7')];_0xc000b4['change'](_0x34318e=>{for(const _0xe57eb2 of _0xc000b4[_0x4654('0x5')]['roots'])_0x34318e['removeClass'](oe,_0xe57eb2);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4079=['changesNavigation','plugins','restoreRevision','hide','undo','isEnabled','componentFactory','listenTo','showNextChange','Back\x20to\x20editing','add','forward','isBackwardNavigationEnabled','commands','RevisionViewerUI','init','set','currentChangeNumber','execute','showPreviousChange','bind','config','closeRevisionViewerCallback','numberOfChanges','isForwardNavigationEnabled','get','Restore\x20this\x20revision'];(function(_0x3b17a3,_0x40793c){const _0x367fef=function(_0x30bbf3){while(--_0x30bbf3){_0x3b17a3['push'](_0x3b17a3['shift']());}};_0x367fef(++_0x40793c);}(_0x4079,0x15c));const _0x367f=function(_0x3b17a3,_0x40793c){_0x3b17a3=_0x3b17a3-0x0;let _0x367fef=_0x4079[_0x3b17a3];return _0x367fef;};import{icons as _0x39ad5d,Plugin as _0x4ad97e}from'ckeditor5/src/core.js';import{ButtonView as _0x3d7899}from'ckeditor5/src/ui.js';import _0x58ece3 from'./changesnavigationview.js';import _0x31f2e6 from'./../../revisionviewer.js';import _0x3caf16 from'./revisionviewerloadingoverlay.js';import{getTranslation as _0x38f02f}from'../../utils/common-translations.js';import'../../../theme/revisionviewer.css';export default class R extends _0x4ad97e{static get['pluginName'](){return _0x367f('0x11');}static get['requires'](){return[_0x31f2e6,_0x3caf16];}[_0x367f('0x12')](){const _0x5d46d6=this['editor'],_0x3c2972=_0x5d46d6[_0x367f('0x4')][_0x367f('0x1')](_0x31f2e6),_0x293ecf=_0x5d46d6['plugins'][_0x367f('0x1')](_0x3caf16);_0x5d46d6['ui'][_0x367f('0x9')][_0x367f('0xd')]('exitToEditing',_0x357486=>{const _0x168719=new _0x3d7899(_0x357486);return _0x168719[_0x367f('0x13')]({'label':_0x38f02f(_0x357486,_0x367f('0xc')),'icon':_0x39ad5d[_0x367f('0x7')],'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this[_0x367f('0xa')](_0x168719,_0x367f('0x15'),()=>{_0x5d46d6[_0x367f('0x18')][_0x367f('0x1')]('revisionHistory')[_0x367f('0x19')]();}),_0x168719;}),_0x5d46d6['ui'][_0x367f('0x9')]['add']('restoreRevision',_0x457aed=>{const _0x286267=new _0x3d7899(_0x457aed);return _0x286267['set']({'label':_0x38f02f(_0x457aed,_0x367f('0x2')),'withText':!0x0,'tooltip':!0x0}),_0x286267['bind'](_0x367f('0x8'))['to'](_0x5d46d6[_0x367f('0x10')]['get']('restoreRevision')),this['listenTo'](_0x286267,_0x367f('0x15'),()=>_0x5d46d6[_0x367f('0x15')](_0x367f('0x5'))),_0x286267;}),_0x5d46d6['ui'][_0x367f('0x9')][_0x367f('0xd')](_0x367f('0x3'),_0x12ae00=>{const _0x31729b=new _0x58ece3(_0x12ae00),_0x33f165=_0x5d46d6[_0x367f('0x10')][_0x367f('0x1')](_0x367f('0x16')),_0x2836e6=_0x5d46d6[_0x367f('0x10')][_0x367f('0x1')](_0x367f('0xb'));return _0x31729b[_0x367f('0x17')](_0x367f('0xf'))['to'](_0x33f165,_0x367f('0x8')),_0x31729b[_0x367f('0x17')](_0x367f('0x0'))['to'](_0x2836e6,_0x367f('0x8')),_0x31729b['bind']('isReady',_0x367f('0x14'),_0x367f('0x1a'),'isNavigationMode')['to'](_0x3c2972),this['listenTo'](_0x31729b,_0x367f('0x15'),(_0x5bec5b,_0x20c389)=>{_0x5d46d6[_0x367f('0x15')](_0x367f('0xe')===_0x20c389?_0x367f('0xb'):'showPreviousChange');}),_0x31729b;}),_0x293ecf['show'](),_0x3c2972['on']('change:isReady',(_0x1461a5,_0x14fb7b,_0x46f4ce)=>{_0x46f4ce?_0x293ecf[_0x367f('0x6')]():_0x293ecf['show']();});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export function getTranslation(
|
|
23
|
+
export function getTranslation(_0x7499d2,_0x48e136,_0x1ed50b){const t=_0x7499d2['t'];switch(_0x48e136){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'},_0x1ed50b);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x1ed50b);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 _0x48e136;}}
|