@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20231018.0 → 0.0.0-nightly-20231019.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 _0x3a17=['get','buttonView','history','execute','isReady','showRevisionViewerCallback','children','add','panelView','change:isOpen','RevisionTracker','saveButtonView','saveRevision','isReadOnly','cancel','componentFactory','Revision\x20history','init','plugins','requires','revisionName','remove','RevisionHistoryUI','config','length','editing','render','set','pluginName','isEnabled','submit','bind','revisionHistory','addMany','items'];(function(_0x1ab99c,_0x3a17f5){const _0x59d0d1=function(_0x167529){while(--_0x167529){_0x1ab99c['push'](_0x1ab99c['shift']());}};_0x59d0d1(++_0x3a17f5);}(_0x3a17,0xd4));const _0x59d0=function(_0x1ab99c,_0x3a17f5){_0x1ab99c=_0x1ab99c-0x0;let _0x59d0d1=_0x3a17[_0x1ab99c];return _0x59d0d1;};import{Plugin as _0x5ce431,icons as _0x22e84f}from'ckeditor5/src/core';import{ListView as _0x2bd13f,ListItemView as _0x5ce42e,ButtonView as _0x19df6c,createDropdown as _0x34a965}from'ckeditor5/src/ui';import _0xbb1472 from'../../revisiontracker';import _0x121f66 from'./revisionhistorysaverevisionformview';import{getTranslation as _0x198ca5}from'../../utils/common-translations';export default class u extends _0x5ce431{static get[_0x59d0('0x1a')](){return _0x59d0('0x14');}static get[_0x59d0('0x11')](){return[_0xbb1472];}[_0x59d0('0xf')](){const _0x5f2a7f=this['editor'],_0x5e52e8=_0x5f2a7f[_0x59d0('0x10')][_0x59d0('0x21')](_0x59d0('0x8'));_0x5f2a7f['ui'][_0x59d0('0xd')][_0x59d0('0x5')](_0x59d0('0x1e'),_0x841b26=>{const _0x33d648=_0x34a965(_0x841b26),_0x3c423c=_0x33d648[_0x59d0('0x6')]['children'],_0x5dea64=new _0x2bd13f(_0x841b26),_0x1cb3b4=new _0x5ce42e(_0x841b26),_0x471ba6=new _0x19df6c(_0x841b26),_0x327d8c=new _0x5ce42e(_0x841b26),_0x7ec690=new _0x19df6c(_0x841b26),_0x54b8d6=new _0x121f66(_0x841b26);function _0x404214(){_0x3c423c['length']&&_0x3c423c[_0x59d0('0x13')](0x0),_0x3c423c[_0x59d0('0x5')](_0x5dea64);}function _0x2716ff(){_0x33d648['isOpen']=!0x1,_0x5f2a7f[_0x59d0('0x17')]['view']['focus']();}return _0x33d648['bind'](_0x59d0('0x1b'))['to'](_0x5e52e8,_0x59d0('0x2'),_0x5e52e8,_0x59d0('0x1b'),_0x5f2a7f,'isReadOnly',(_0x4d4baf,_0x270af8,_0x2c7986)=>_0x4d4baf&&_0x270af8&&!_0x2c7986),_0x33d648[_0x59d0('0x22')]['set']({'icon':_0x22e84f[_0x59d0('0x0')],'label':_0x198ca5(_0x841b26,_0x59d0('0xe')),'tooltip':!0x0}),_0x471ba6[_0x59d0('0x19')]({'label':_0x198ca5(_0x841b26,'Save\x20current\x20revision'),'withText':!0x0}),_0x471ba6['bind'](_0x59d0('0x1b'))['to'](_0x5e52e8,'isReady',_0x5e52e8,_0x59d0('0x1b'),_0x5f2a7f,_0x59d0('0xb'),(_0x336381,_0x80faa7,_0x45f9df)=>_0x336381&&_0x80faa7&&!_0x45f9df),_0x471ba6['on'](_0x59d0('0x1'),()=>function(){_0x3c423c[_0x59d0('0x16')]&&_0x3c423c['remove'](0x0),(_0x54b8d6['reset'](),_0x3c423c[_0x59d0('0x5')](_0x54b8d6),_0x54b8d6['focus']());}()),_0x7ec690['set']({'label':_0x198ca5(_0x841b26,'Open\x20revision\x20history'),'withText':!0x0}),_0x7ec690[_0x59d0('0x1d')](_0x59d0('0x1b'))['to'](_0x5e52e8,_0x59d0('0x2'),_0x5f2a7f,_0x59d0('0xb'),(_0x31d9ad,_0x466600)=>_0x31d9ad&&!_0x466600),_0x7ec690['on']('execute',()=>{_0x5f2a7f[_0x59d0('0x15')][_0x59d0('0x21')](_0x59d0('0x1e'))[_0x59d0('0x3')](),_0x2716ff();}),_0x1cb3b4[_0x59d0('0x4')][_0x59d0('0x5')](_0x471ba6),_0x327d8c[_0x59d0('0x4')][_0x59d0('0x5')](_0x7ec690),_0x5dea64[_0x59d0('0x20')][_0x59d0('0x1f')]([_0x1cb3b4,_0x327d8c]),_0x33d648['on'](_0x59d0('0x7'),()=>_0x404214()),_0x54b8d6[_0x59d0('0x9')][_0x59d0('0x1d')]('isEnabled')['to'](_0x5e52e8,_0x59d0('0x2'),_0x5e52e8,_0x59d0('0x1b'),_0x5f2a7f,_0x59d0('0xb'),(_0x863504,_0x2492a4,_0x2eb635)=>_0x863504&&_0x2492a4&&!_0x2eb635),_0x54b8d6['on'](_0x59d0('0x1c'),()=>(_0x5f2a7f[_0x59d0('0x10')][_0x59d0('0x21')](_0xbb1472)[_0x59d0('0xa')]({'name':_0x54b8d6[_0x59d0('0x12')]}),void _0x2716ff())),_0x54b8d6['on'](_0x59d0('0xc'),()=>_0x404214()),_0x54b8d6[_0x59d0('0x18')](),_0x404214(),_0x33d648;});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5ba1=['highlightRevisions','_revisions','remove','config','revisionSetName','action','Compare\x20against\x20selected','data','compare','editor','select','add','_handleRevisionSetName','element','defaultRevisionActions','bind','_revisionsRepository','_handleDiffChange','isReady','length','setName','ready','destroy','isEnabled','_handleEditorDataReady','listenTo','getRevision','revisionHistory.revisionActions','assign','revisionHistory','isVisible','revisionHistory.viewerSidebarContainer','getLaterVisibleRevision','name','availableRevisionActions','RevisionsSidebar','getIndex','compareAgainstSelected','plugins','fieldView','nameRevision','pluginName','timePeriodViews','map','Name\x20this\x20revision','string','_sidebarView','appendChild','selectRevision','restoreRevisionCallback','locale','_revisionViewer','_createRevisionActions','getEarlierVisibleRevision','repository','getRevisionsInDiff','get','newRevisionId','_handleRevisionSelected','diff','render'];(function(_0x4ad088,_0x5ba17f){const _0x49b796=function(_0x359f2a){while(--_0x359f2a){_0x4ad088['push'](_0x4ad088['shift']());}};_0x49b796(++_0x5ba17f);}(_0x5ba1,0x19e));const _0x49b7=function(_0x4ad088,_0x5ba17f){_0x4ad088=_0x4ad088-0x0;let _0x49b796=_0x5ba1[_0x4ad088];return _0x49b796;};import{Plugin as _0x263de8}from'ckeditor5/src/core';import _0x233c72 from'./revisionssidebarview';import _0x25fadb from'../../revisionviewer';export default class w extends _0x263de8{static get[_0x49b7('0x36')](){return _0x49b7('0x30');}static get['requires'](){return[_0x25fadb];}constructor(_0x138a3c){super(_0x138a3c),this[_0x49b7('0x3')]=_0x138a3c[_0x49b7('0x33')][_0x49b7('0x8')](_0x25fadb),this[_0x49b7('0x1d')]=this[_0x49b7('0x3')][_0x49b7('0x6')],this[_0x49b7('0x3b')]=null;}['init'](){const _0x596b7e=this[_0x49b7('0x1d')][_0x49b7('0xe')],_0x2cc24c=this[_0x49b7('0x4')](),_0x585c53=this[_0x49b7('0x16')][_0x49b7('0x10')][_0x49b7('0x8')](_0x49b7('0x2c'));this[_0x49b7('0x3b')]=new _0x233c72(this['editor'][_0x49b7('0x2')],_0x596b7e,_0x2cc24c),this[_0x49b7('0x3b')]['on']('revisionSelected',this[_0x49b7('0xa')][_0x49b7('0x1c')](this)),this['_sidebarView']['on'](_0x49b7('0x11'),this[_0x49b7('0x19')][_0x49b7('0x1c')](this)),this[_0x49b7('0x3b')][_0x49b7('0x1c')]('isEnabled')['to'](this['_revisionViewer']),this[_0x49b7('0x3b')][_0x49b7('0x37')]['on'](_0x49b7('0x18'),(_0xaf14cd,_0x1e5b0f)=>{_0x1e5b0f['revisionViews']['on'](_0x49b7('0x18'),(_0x4e512e,_0x184b80)=>{_0x184b80[_0x49b7('0x1c')](_0x49b7('0x24'),_0x49b7('0x1f'))['to'](this['_revisionViewer']);});}),this[_0x49b7('0x3b')][_0x49b7('0xc')](),this[_0x49b7('0x26')](this[_0x49b7('0x16')][_0x49b7('0x14')],_0x49b7('0x22'),this[_0x49b7('0x25')]['bind'](this)),this[_0x49b7('0x26')](this[_0x49b7('0x3')],'change:diff',this[_0x49b7('0x1e')][_0x49b7('0x1c')](this)),_0x585c53[_0x49b7('0x3c')](this['_sidebarView']['element']);}[_0x49b7('0x23')](){this['_sidebarView'][_0x49b7('0x1a')][_0x49b7('0xf')](),this[_0x49b7('0x3b')][_0x49b7('0x23')]();}[_0x49b7('0x25')](){const _0x124e14=this[_0x49b7('0x1d')][_0x49b7('0x27')](0x0);if(_0x124e14){const _0x4fd8d8=this[_0x49b7('0x1d')][_0x49b7('0x5')](_0x124e14['id']);this[_0x49b7('0x3')][_0x49b7('0x15')](_0x124e14,_0x4fd8d8);}}[_0x49b7('0xa')](_0x15dac6,_0x22737b){const _0x547684=this[_0x49b7('0x1d')][_0x49b7('0x27')](_0x22737b['id']),_0x47d1d7=this['_revisionsRepository'][_0x49b7('0x5')](_0x547684['id']);this[_0x49b7('0x3')][_0x49b7('0x15')](_0x547684,_0x47d1d7);}['_handleRevisionSetName'](_0x554874,_0xb195bc){this[_0x49b7('0x1d')][_0x49b7('0x27')](_0xb195bc['id'])[_0x49b7('0x21')](_0xb195bc[_0x49b7('0x2e')]);}['_handleDiffChange'](_0x49fa88,_0x4ab52e,_0x41c84e){const _0x59df82=this['_revisionsRepository']['getRevisionsInDiff'](_0x41c84e);_0x59df82[_0x49b7('0x20')]>0x2?(this[_0x49b7('0x3b')][_0x49b7('0xd')](_0x59df82),this[_0x49b7('0x3b')][_0x49b7('0x0')](null)):(this[_0x49b7('0x3b')][_0x49b7('0xd')]([]),this[_0x49b7('0x3b')]['selectRevision'](_0x59df82[0x0]));}[_0x49b7('0x4')](){const _0x4dba9d=this['editor'],_0x33f424=w['availableRevisionActions'],_0x512cde=_0x4dba9d[_0x49b7('0x10')][_0x49b7('0x8')](_0x49b7('0x28'))||w[_0x49b7('0x1b')];if(_0x512cde[_0x49b7('0x20')])return _0x512cde[_0x49b7('0x38')](_0x385a30=>{const _0x1d9043=_0x49b7('0x3a')==typeof _0x385a30?Object[_0x49b7('0x29')]({},_0x33f424[_0x385a30]):_0x385a30;return _0x1d9043[_0x49b7('0x12')]=_0x1d9043['action'][_0x49b7('0x1c')](this,_0x4dba9d),_0x1d9043['isVisible']&&(_0x1d9043[_0x49b7('0x2b')]=_0x1d9043[_0x49b7('0x2b')]['bind'](this,_0x4dba9d)),_0x1d9043;});}}w[_0x49b7('0x2f')]={'compareAgainstSelected':{'name':_0x49b7('0x13'),'action':({plugins:_0x1ed0a4},_0x5ebf4b)=>{const _0x139345=_0x1ed0a4[_0x49b7('0x8')](_0x25fadb),_0x2f1e28=_0x139345['repository'];let _0x32661c=_0x139345['diff'][_0x49b7('0x9')],_0x1ce039=_0x5ebf4b['id'];_0x2f1e28[_0x49b7('0x31')](_0x32661c)>_0x2f1e28['getIndex'](_0x1ce039)&&([_0x32661c,_0x1ce039]=[_0x1ce039,_0x32661c]),_0x139345[_0x49b7('0x15')](_0x32661c,_0x1ce039);},'isVisible':({plugins:_0x540154},_0x1f78d1)=>{const _0x5f1f58=_0x540154[_0x49b7('0x8')](_0x25fadb);return!(_0x5f1f58[_0x49b7('0x6')][_0x49b7('0x7')](_0x5f1f58[_0x49b7('0xb')])['length']>0x2)&&!_0x1f78d1['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x6eca64,{id:_0x34fbac})=>{_0x6eca64['config'][_0x49b7('0x8')](_0x49b7('0x2a'))[_0x49b7('0x1')](_0x34fbac);},'isVisible':({plugins:_0x2d8583},_0x132b4f)=>!!_0x2d8583[_0x49b7('0x8')](_0x25fadb)[_0x49b7('0x6')][_0x49b7('0x2d')](_0x132b4f['id'])},'nameRevision':{'name':_0x49b7('0x39'),'action':({plugins:_0x597fcc},{id:_0x5f13f3,revisionNameView:_0x16d342})=>{const _0x5a8588=_0x597fcc[_0x49b7('0x8')](_0x25fadb),_0x380d18=_0x5a8588[_0x49b7('0x6')]['getEarlierVisibleRevision'](_0x5f13f3);_0x5a8588[_0x49b7('0x15')](_0x5f13f3,_0x380d18),_0x16d342['focus'](),_0x16d342[_0x49b7('0x34')][_0x49b7('0x17')]();}}},w[_0x49b7('0x1b')]=[_0x49b7('0x32'),'restoreRevision',_0x49b7('0x35')];
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xfda4=['span','ck-revision-history-sidebar__header__label','div','ck-reset_all','Revision\x20history','history'];(function(_0x51d066,_0xfda47){const _0x43a106=function(_0x59ace8){while(--_0x59ace8){_0x51d066['push'](_0x51d066['shift']());}};_0x43a106(++_0xfda47);}(_0xfda4,0x1bc));const _0x43a1=function(_0x51d066,_0xfda47){_0x51d066=_0x51d066-0x0;let _0x43a106=_0xfda4[_0x51d066];return _0x43a106;};import{View as _0x14b91f,IconView as _0x12b885}from'ckeditor5/src/ui';import{getTranslation as _0x18fe0e}from'../../utils/common-translations';import{icons as _0x1321eb}from'ckeditor5/src/core';import'../../../theme/revisionssidebar/revisionssidebarheader.css';export default class rr extends _0x14b91f{constructor(_0x1f11bc){super(_0x1f11bc);const _0x7600d2=new _0x12b885();_0x7600d2['content']=_0x1321eb[_0x43a1('0x5')],this['setTemplate']({'tag':_0x43a1('0x2'),'attributes':{'class':['ck',_0x43a1('0x3'),'ck-revision-history-sidebar__header']},'children':[_0x7600d2,{'tag':_0x43a1('0x0'),'attributes':{'class':['ck',_0x43a1('0x1')]},'children':[_0x18fe0e(_0x1f11bc,_0x43a1('0x4'))]}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4b3d=['uiLanguage','add','locale','select','localizedPeriodName','div','revisionViews','delegate','span','removeRevision','startDate','_revisionActions','ck-revision-history-sidebar__time-period__label','remove','ck-revision-history-sidebar__time-period__revisions','setTemplate','find','createCollection','setName'];(function(_0x2902c9,_0x4b3d4b){const _0x30452a=function(_0x226e32){while(--_0x226e32){_0x2902c9['push'](_0x2902c9['shift']());}};_0x30452a(++_0x4b3d4b);}(_0x4b3d,0x110));const _0x3045=function(_0x2902c9,_0x4b3d4b){_0x2902c9=_0x2902c9-0x0;let _0x30452a=_0x4b3d[_0x2902c9];return _0x30452a;};import{View as _0x3fb1aa}from'ckeditor5/src/ui';import _0x5dd0c8 from'../revision/revisionview';import{getDateTimePeriodInfo as _0x1503cf}from'./utils';import'../../../theme/revisionssidebar/revisionssidebartimeperiod.css';export default class pi extends _0x3fb1aa{constructor(_0xf59d33,_0x239a25,_0x4d611e){super(_0xf59d33);const _0x573bff=_0x1503cf(_0x239a25,this[_0x3045('0xf')][_0x3045('0xd')])[_0x3045('0x11')];this[_0x3045('0x4')]=_0x239a25,this[_0x3045('0x0')]=this[_0x3045('0xb')](),this[_0x3045('0x5')]=_0x4d611e,this[_0x3045('0x0')][_0x3045('0x1')](_0x3045('0x10'))['to'](this),this[_0x3045('0x0')][_0x3045('0x1')](_0x3045('0xc'))['to'](this),this[_0x3045('0x9')]({'tag':_0x3045('0x12'),'attributes':{'class':['ck','ck-revision-history-sidebar__time-period']},'children':[{'tag':_0x3045('0x2'),'attributes':{'class':['ck',_0x3045('0x6')]},'children':[{'text':_0x573bff}]},{'tag':'div','attributes':{'class':['ck',_0x3045('0x8')]},'children':this[_0x3045('0x0')]}]});}['addRevision'](_0x2a09bc){const _0x7989c0=new _0x5dd0c8(this[_0x3045('0xf')],_0x2a09bc,this[_0x3045('0x5')]);this['revisionViews'][_0x3045('0xe')](_0x7989c0);}[_0x3045('0x3')](_0x49e600){const _0x14fd5a=this[_0x3045('0x0')][_0x3045('0xa')](_0x30991f=>_0x30991f['id']===_0x49e600['id']);this[_0x3045('0x0')][_0x3045('0x7')](_0x14fd5a);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xfa8f=['_revisions','revisionSelected','createdAt','_revisionActions','locale','uiLanguage','render','timePeriodViews','fire','ck-revision-history-sidebar__timeline','bindTemplate','div','_removeRevision','some','addRevision','unhighlight','delegate','deselect','revisionViews','add','ck-rounded-corners','getTime','highlightRevisions','select','ck-disabled','setName','_addRevision','removeRevision','createCollection','isEnabled','map','flat','revisionSetName','startDate','highlight','remove','ck-revision-history-sidebar','ck-reset','get'];(function(_0x687920,_0xfa8fbc){const _0x23ca9d=function(_0x28552c){while(--_0x28552c){_0x687920['push'](_0x687920['shift']());}};_0x23ca9d(++_0xfa8fbc);}(_0xfa8f,0x7f));const _0x23ca=function(_0x687920,_0xfa8fbc){_0x687920=_0x687920-0x0;let _0x23ca9d=_0xfa8f[_0x687920];return _0x23ca9d;};import{View as _0x3ffda9}from'ckeditor5/src/ui';import _0x57eb8d from'./revisionssidebartimeperiodview';import _0x550c7d from'./revisionssidebarheaderview';import{getDateTimePeriodInfo as _0x50dcef}from'./utils';import'../../../theme/revisionssidebar/revisionssidebar.css';export default class vi extends _0x3ffda9{constructor(_0x7e2779,_0x11ec99,_0x87a0ec){super(_0x7e2779);const _0x190eb5=this[_0x23ca('0x0')];this[_0x23ca('0x24')]=this[_0x23ca('0x12')](),this['timePeriodViews'][_0x23ca('0x6')]('select')['to'](this),this[_0x23ca('0x24')][_0x23ca('0x6')](_0x23ca('0xf'))['to'](this),this[_0x23ca('0x1d')]=_0x11ec99,this['_revisionActions']=_0x87a0ec,this['on'](_0x23ca('0xd'),(_0xeec83e,_0x411910)=>{this[_0x23ca('0x25')](_0x23ca('0x1e'),_0x411910);}),this['on']('setName',(_0x31f605,_0x133c04)=>{this[_0x23ca('0x25')](_0x23ca('0x16'),_0x133c04);}),this['set'](_0x23ca('0x13'),!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck',_0x23ca('0x1b'),_0x23ca('0xa'),_0x23ca('0x1a')]},'children':[new _0x550c7d(_0x7e2779),{'tag':_0x23ca('0x1'),'attributes':{'class':['ck',_0x23ca('0x26'),_0x190eb5['if'](_0x23ca('0x13'),_0x23ca('0xe'),_0x2f8626=>!_0x2f8626)]},'children':this[_0x23ca('0x24')]}]});}['render'](){super[_0x23ca('0x23')]();for(const _0x5f4af8 of this[_0x23ca('0x1d')])this[_0x23ca('0x10')](_0x5f4af8);this[_0x23ca('0x1d')]['on'](_0x23ca('0x9'),(_0x572503,_0x442de0)=>{this[_0x23ca('0x10')](_0x442de0);}),this[_0x23ca('0x1d')]['on'](_0x23ca('0x19'),(_0x272bdc,_0x3ffdd0)=>{this[_0x23ca('0x2')](_0x3ffdd0);});}get[_0x23ca('0x8')](){return this[_0x23ca('0x24')]['map'](_0x13597f=>_0x13597f[_0x23ca('0x8')][_0x23ca('0x14')](_0x2684a4=>_0x2684a4))[_0x23ca('0x15')]();}['selectRevision'](_0x2cf575){for(const _0x334fbf of this[_0x23ca('0x8')])_0x2cf575&&_0x2cf575['id']===_0x334fbf['id']?_0x334fbf['select']():_0x334fbf[_0x23ca('0x7')]();}[_0x23ca('0xc')](_0xeff9e7){for(const _0x35d122 of this[_0x23ca('0x8')])_0xeff9e7[_0x23ca('0x3')](({id:_0x7afa0f})=>_0x7afa0f===_0x35d122['id'])?_0x35d122[_0x23ca('0x18')]():_0x35d122[_0x23ca('0x5')]();}[_0x23ca('0x10')](_0x1a0ecd){const _0x303a1b=_0x50dcef(_0x1a0ecd[_0x23ca('0x1f')],this['locale'][_0x23ca('0x22')])[_0x23ca('0x17')];let _0x1c9f1b=this[_0x23ca('0x24')][_0x23ca('0x1c')](0x0);_0x1c9f1b&&_0x1c9f1b['startDate'][_0x23ca('0xb')]()===_0x303a1b[_0x23ca('0xb')]()||(_0x1c9f1b=new _0x57eb8d(this[_0x23ca('0x21')],_0x303a1b,this[_0x23ca('0x20')]),this[_0x23ca('0x24')][_0x23ca('0x9')](_0x1c9f1b)),_0x1c9f1b[_0x23ca('0x4')](_0x1a0ecd);}[_0x23ca('0x2')](_0x319c8b){const _0x560705=_0x50dcef(_0x319c8b[_0x23ca('0x1f')],this[_0x23ca('0x21')][_0x23ca('0x22')])[_0x23ca('0x17')];this['_getTimePeriodViewByStartDate'](_0x560705)[_0x23ca('0x11')](_0x319c8b);}['_getTimePeriodViewByStartDate'](_0x47ae75){return this[_0x23ca('0x24')]['find'](_0x42e0e7=>_0x42e0e7[_0x23ca('0x17')][_0x23ca('0xb')]()===_0x47ae75[_0x23ca('0xb')]());}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1391=['fromJSDate','weekdayLong','setLocale','toJSDate','hasSame','day','startOf','year','toRelativeCalendar','week','local','month'];(function(_0x20cf89,_0x1391c6){const _0x596b05=function(_0xefca35){while(--_0xefca35){_0x20cf89['push'](_0x20cf89['shift']());}};_0x596b05(++_0x1391c6);}(_0x1391,0xed));const _0x596b=function(_0x20cf89,_0x1391c6){_0x20cf89=_0x20cf89-0x0;let _0x596b05=_0x1391[_0x20cf89];return _0x596b05;};import{DateTime as _0x36ed79}from'luxon';export function getDateTimePeriodInfo(_0x4500d8,_0x545167){const _0x17bc1b=_0x36ed79[_0x596b('0x3')](_0x4500d8)[_0x596b('0x5')](_0x545167),_0x68a6ed=_0x36ed79[_0x596b('0x1')](),_0x4f1203=_0x68a6ed['minus']({'days':0x1})[_0x596b('0x9')](_0x596b('0x8'));let _0xc6e373,_0x126b4f;return _0x17bc1b[_0x596b('0x7')](_0x68a6ed,_0x596b('0x8'))?(_0xc6e373=_0x17bc1b['startOf'](_0x596b('0x8'))['toJSDate'](),_0x126b4f=_0x17bc1b[_0x596b('0xb')]()):_0x17bc1b['hasSame'](_0x4f1203,_0x596b('0x8'))?(_0xc6e373=_0x4f1203[_0x596b('0x6')](),_0x126b4f=_0x17bc1b['toRelativeCalendar']()):_0x17bc1b[_0x596b('0x7')](_0x68a6ed,_0x596b('0x0'))?(_0xc6e373=_0x17bc1b[_0x596b('0x9')](_0x596b('0x0'))[_0x596b('0x6')](),_0x126b4f=_0x17bc1b[_0x596b('0x4')]||''):_0x17bc1b[_0x596b('0x7')](_0x68a6ed,_0x596b('0xa'))?(_0xc6e373=_0x17bc1b['startOf'](_0x596b('0x2'))[_0x596b('0x6')](),_0x126b4f=_0x17bc1b['monthLong']||''):(_0xc6e373=_0x17bc1b[_0x596b('0x9')](_0x596b('0xa'))[_0x596b('0x6')](),_0x126b4f=String(_0x17bc1b['year'])),{'startDate':_0xc6e373,'localizedPeriodName':_0x126b4f};}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4e6a=['ck-revision-change__','name','bindTemplate','focus','Suggested\x20by','ck-revision-change__label','Removed\x20by','changeId','data','add','setTemplate','element','span','type','author','isSuggestion','ck-revision-change','_model'];(function(_0x5290b6,_0x4e6ae6){const _0xa54d9=function(_0x17432f){while(--_0x17432f){_0x5290b6['push'](_0x5290b6['shift']());}};_0xa54d9(++_0x4e6ae6);}(_0x4e6a,0x79));const _0xa54d=function(_0x5290b6,_0x4e6ae6){_0x5290b6=_0x5290b6-0x0;let _0xa54d9=_0x4e6a[_0x5290b6];return _0xa54d9;};import{View as _0x5d4bc3}from'ckeditor5/src/ui';import{getTranslation as _0x1bbda6}from'../../utils/common-translations';export default class Z extends _0x5d4bc3{constructor(_0x2d7922,_0x21eab2){super(_0x2d7922),this[_0xa54d('0x4')]=_0x21eab2,this[_0xa54d('0xc')]=_0x21eab2['id'];const _0x481310=this[_0xa54d('0x7')],_0x57036b=_0x1bbda6(_0x2d7922,_0x21eab2[_0xa54d('0xd')][_0xa54d('0x2')]?_0xa54d('0x9'):_0xa54d('0xe')==_0x21eab2['type']?'Added\x20by':_0xa54d('0xb'));this['set'](_0xa54d('0x0'),_0x21eab2[_0xa54d('0x0')]),this[_0xa54d('0xf')]({'tag':'div','attributes':{'class':['ck-annotation',_0xa54d('0x3'),_0x481310['to'](_0xa54d('0x0'),_0xca7b0d=>_0xa54d('0x5')+_0xca7b0d)],'tabindex':-0x1},'children':[{'tag':_0xa54d('0x11'),'children':[{'tag':_0xa54d('0x11'),'attributes':{'class':[_0xa54d('0xa')]},'children':[{'text':_0x57036b}]},{'text':'\x20'+_0x21eab2[_0xa54d('0x1')][_0xa54d('0x6')]}]}]});}[_0xa54d('0x8')](){this[_0xa54d('0x10')]['focus']();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1d42=['bind','EDIT_X_OF_Y_REVISIONS','Show\x20previous\x20change','currentChangeNumber','isForwardNavigationEnabled','set','isNavigationMode','Show\x20next\x20change','_statusText','span','fire','ck-revision-history-ui__changes-navigation','_isStatusLabelVisible','isEnabled','ck-revision-history-ui__changes-navigation__wrapper','ck-revision-history-ui__changes-navigation__navigation','isReady','div','ck-hidden','ck-revision-history-ui','backward','execute','NUMBER_OF_CHANGES','X_OF_Y_CHANGES','Total','numberOfChanges'];(function(_0x2aace3,_0x1d4223){const _0x2071a1=function(_0x1bd7e9){while(--_0x1bd7e9){_0x2aace3['push'](_0x2aace3['shift']());}};_0x2071a1(++_0x1d4223);}(_0x1d42,0x117));const _0x2071=function(_0x2aace3,_0x1d4223){_0x2aace3=_0x2aace3-0x0;let _0x2071a1=_0x1d42[_0x2aace3];return _0x2071a1;};import{View as _0x4d51f5,ButtonView as _0x432c87,ToolbarSeparatorView as _0x278283}from'ckeditor5/src/ui';import{getTranslation as _0x32bbc6}from'../../utils/common-translations';import _0x215ae7 from'../../../theme/icons/arrow-up.svg';import _0x54ce1b from'../../../theme/icons/arrow-down.svg';import'../../../theme/changesnavigation.css';export default class bi extends _0x4d51f5{constructor(_0xbb4c27){super(_0xbb4c27);const _0x5c018d=this['bindTemplate'],_0x48e6d1=new _0x432c87(_0xbb4c27),_0x1ae739=new _0x432c87(_0xbb4c27);this[_0x2071('0xc')](_0x2071('0xd'),!0x1),this['set'](_0x2071('0x17'),!0x1),this[_0x2071('0xc')](_0x2071('0xa'),0x0),this[_0x2071('0xc')](_0x2071('0x6'),0x0),this[_0x2071('0xc')](_0x2071('0xb'),!0x1),this['set']('isBackwardNavigationEnabled',!0x1),this['bind']('_isStatusLabelVisible')['to'](this,_0x2071('0x17'),this,_0x2071('0x6'),(_0x31b4a2,_0x58ca20)=>_0x31b4a2&&_0x58ca20>0x0),this[_0x2071('0x7')](_0x2071('0xf'))['to'](this,_0x2071('0x17'),this,'currentChangeNumber',this,_0x2071('0x6'),this,'isNavigationMode',(_0x56f254,_0x2e9af7,_0x44b7cb,_0x5837b5)=>{if(!_0x56f254)return _0x32bbc6(_0xbb4c27,'Loading...');if(!_0x44b7cb)return _0x32bbc6(_0xbb4c27,'No\x20changes');const _0x4e0d28=_0x32bbc6(_0xbb4c27,_0x2071('0x3'),_0x44b7cb);return _0x5837b5?_0x32bbc6(_0xbb4c27,_0x2071('0x4'),[_0x2e9af7+0x1,_0x44b7cb]):_0x4e0d28;}),_0x48e6d1[_0x2071('0xc')]({'label':_0x32bbc6(_0xbb4c27,_0x2071('0x9')),'tooltip':!0x0,'icon':_0x215ae7}),_0x1ae739[_0x2071('0xc')]({'label':_0x32bbc6(_0xbb4c27,_0x2071('0xe')),'tooltip':!0x0,'icon':_0x54ce1b}),_0x48e6d1[_0x2071('0x7')](_0x2071('0x14'))['to'](this,'isBackwardNavigationEnabled'),_0x1ae739['bind'](_0x2071('0x14'))['to'](this,'isForwardNavigationEnabled'),_0x48e6d1['on']('execute',()=>this[_0x2071('0x11')](_0x2071('0x2'),_0x2071('0x1'))),_0x1ae739['on'](_0x2071('0x2'),()=>this['fire']('execute','forward')),this['setTemplate']({'tag':_0x2071('0x18'),'attributes':{'class':['ck',_0x2071('0x0'),_0x2071('0x12')]},'children':[{'tag':_0x2071('0x10'),'attributes':{'class':[_0x2071('0x15')]},'children':[{'tag':'span','attributes':{'class':['ck-revision-history-ui__changes-navigation__label',_0x5c018d['if'](_0x2071('0x13'),_0x2071('0x19'),_0x349f2d=>!_0x349f2d)]},'children':[{'text':_0x5c018d['to'](_0x2071('0xd'),_0x78b862=>_0x78b862?_0x32bbc6(_0xbb4c27,_0x2071('0x8'))+':\x20':_0x32bbc6(_0xbb4c27,_0x2071('0x5'))+':\x20')}]},{'text':_0x5c018d['to'](_0x2071('0xf'))}]},new _0x278283(),{'tag':_0x2071('0x18'),'attributes':{'class':[_0x2071('0x16')]},'children':[_0x48e6d1,_0x1ae739]}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x433a=['view','ck-editor__editable__loading-overlay','pluginName','roots','document','editor','hide','removeClass','editing','addClass','show','change','RevisionViewerLoadingOverlay'];(function(_0x39236c,_0x433a8c){const _0x440694=function(_0x52b26f){while(--_0x52b26f){_0x39236c['push'](_0x39236c['shift']());}};_0x440694(++_0x433a8c);}(_0x433a,0x154));const _0x4406=function(_0x39236c,_0x433a8c){_0x39236c=_0x39236c-0x0;let _0x440694=_0x433a[_0x39236c];return _0x440694;};import{Plugin as _0x191c26}from'ckeditor5/src/core';const oe=_0x4406('0xc');import'../../../theme/revisionviewerloadingoverlay.css';export default class te extends _0x191c26{static get[_0x4406('0x0')](){return _0x4406('0xa');}[_0x4406('0x8')](){const _0x77dda1=this[_0x4406('0x3')]['editing'][_0x4406('0xb')];_0x77dda1['change'](_0x17d914=>{for(const _0x129631 of _0x77dda1[_0x4406('0x2')]['roots'])_0x17d914[_0x4406('0x7')](oe,_0x129631);});}[_0x4406('0x4')](){const _0x301971=this[_0x4406('0x3')][_0x4406('0x6')][_0x4406('0xb')];_0x301971[_0x4406('0x9')](_0x46c54a=>{for(const _0x297647 of _0x301971[_0x4406('0x2')][_0x4406('0x1')])_0x46c54a[_0x4406('0x5')](oe,_0x297647);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x16ba=['RevisionViewerUI','bind','init','showPreviousChange','restoreRevision','isBackwardNavigationEnabled','componentFactory','closeRevisionViewerCallback','requires','isNavigationMode','currentChangeNumber','execute','revisionHistory','listenTo','change:isReady','show','get','ck-revision-history-ui__back-to-editing','set','config','Restore\x20this\x20revision','editor','showNextChange','pluginName','isReady','commands','isEnabled','changesNavigation','plugins','add','exitToEditing'];(function(_0x59719d,_0x16ba93){const _0x77136b=function(_0x4d0458){while(--_0x4d0458){_0x59719d['push'](_0x59719d['shift']());}};_0x77136b(++_0x16ba93);}(_0x16ba,0x1dc));const _0x7713=function(_0x59719d,_0x16ba93){_0x59719d=_0x59719d-0x0;let _0x77136b=_0x16ba[_0x59719d];return _0x77136b;};import{Plugin as _0x56acd8}from'ckeditor5/src/core';import{ButtonView as _0x5456f5}from'ckeditor5/src/ui';import _0x22c159 from'./changesnavigationview';import _0x304a15 from'./../../revisionviewer';import _0x8d30c3 from'./revisionviewerloadingoverlay';import{getTranslation as _0x258103}from'../../utils/common-translations';import _0x2b7c91 from'@ckeditor/ckeditor5-undo/theme/icons/undo.svg';import'../../../theme/revisionviewer.css';export default class R extends _0x56acd8{static get[_0x7713('0xc')](){return _0x7713('0x14');}static get[_0x7713('0x1c')](){return[_0x304a15,_0x8d30c3];}[_0x7713('0x16')](){const _0x57b3f5=this[_0x7713('0xa')],_0x4e45c9=_0x57b3f5['plugins'][_0x7713('0x5')](_0x304a15),_0x3c1a51=_0x57b3f5[_0x7713('0x11')][_0x7713('0x5')](_0x8d30c3);_0x57b3f5['ui']['componentFactory'][_0x7713('0x12')](_0x7713('0x13'),_0x4b0372=>{const _0x392f9a=new _0x5456f5(_0x4b0372);return _0x392f9a['set']({'label':_0x258103(_0x4b0372,'Back\x20to\x20editing'),'icon':_0x2b7c91,'withText':!0x0,'tooltip':!0x0,'class':_0x7713('0x6')}),this[_0x7713('0x2')](_0x392f9a,_0x7713('0x0'),()=>{_0x57b3f5[_0x7713('0x8')][_0x7713('0x5')](_0x7713('0x1'))[_0x7713('0x1b')]();}),_0x392f9a;}),_0x57b3f5['ui']['componentFactory'][_0x7713('0x12')](_0x7713('0x18'),_0x358d0e=>{const _0x184244=new _0x5456f5(_0x358d0e);return _0x184244[_0x7713('0x7')]({'label':_0x258103(_0x358d0e,_0x7713('0x9')),'withText':!0x0,'tooltip':!0x0}),_0x184244[_0x7713('0x15')](_0x7713('0xf'))['to'](_0x57b3f5[_0x7713('0xe')][_0x7713('0x5')](_0x7713('0x18'))),this['listenTo'](_0x184244,'execute',()=>_0x57b3f5[_0x7713('0x0')](_0x7713('0x18'))),_0x184244;}),_0x57b3f5['ui'][_0x7713('0x1a')][_0x7713('0x12')](_0x7713('0x10'),_0x482032=>{const _0x4c9259=new _0x22c159(_0x482032),_0x357b87=_0x57b3f5['commands']['get'](_0x7713('0x17')),_0x4c4873=_0x57b3f5[_0x7713('0xe')][_0x7713('0x5')](_0x7713('0xb'));return _0x4c9259['bind'](_0x7713('0x19'))['to'](_0x357b87,'isEnabled'),_0x4c9259[_0x7713('0x15')]('isForwardNavigationEnabled')['to'](_0x4c4873,_0x7713('0xf')),_0x4c9259['bind'](_0x7713('0xd'),_0x7713('0x1e'),'numberOfChanges',_0x7713('0x1d'))['to'](_0x4e45c9),this[_0x7713('0x2')](_0x4c9259,_0x7713('0x0'),(_0x837f36,_0xd02d52)=>{_0x57b3f5[_0x7713('0x0')]('forward'===_0xd02d52?_0x7713('0xb'):_0x7713('0x17'));}),_0x4c9259;}),_0x3c1a51[_0x7713('0x4')](),_0x4e45c9['on'](_0x7713('0x3'),(_0x3f1830,_0x4ecaf0,_0x320666)=>{_0x320666?_0x3c1a51['hide']():_0x3c1a51[_0x7713('0x4')]();});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export function getTranslation(
|
|
23
|
+
export function getTranslation(_0x3c600b,_0x5e32af,_0x3b3c0c){const t=_0x3c600b['t'];switch(_0x5e32af){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'},_0x3b3c0c);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x3b3c0c);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 _0x5e32af;}}
|