@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20230807.0 → 0.0.0-nightly-20230809.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE.md +5 -5
- package/README.md +10 -10
- package/build/revision-history.js +1 -1
- package/package.json +6 -6
- package/src/changeitem.js +1 -1
- package/src/editor/revisionviewereditor.js +1 -1
- package/src/editor/revisionviewereditorui.js +1 -1
- package/src/editor/revisionviewereditoruiview.js +1 -1
- package/src/revision.js +1 -1
- package/src/revisiondiff.js +1 -1
- package/src/revisionhistory.js +1 -1
- package/src/revisionsrepository.js +1 -1
- package/src/revisiontracker.js +1 -1
- package/src/revisionviewer.js +1 -1
- package/src/ui/revision/createrevisionactionsdropdown.js +1 -1
- package/src/ui/revision/revisionauthorview.js +1 -1
- package/src/ui/revision/revisionnameview.js +1 -1
- package/src/ui/revision/revisionview.js +1 -1
- package/src/ui/revision/subrevisioncollapserview.js +1 -1
- package/src/ui/revision/subrevisionview.js +1 -1
- package/src/ui/revision/utils.js +1 -1
- package/src/ui/revisionhistory/revisionhistorysaverevisionformview.js +1 -1
- package/src/ui/revisionhistory/revisionhistoryui.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebar.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebarheaderview.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebartimeperiodview.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebarview.js +1 -1
- package/src/ui/revisionssidebar/utils.js +1 -1
- package/src/ui/revisionviewer/changedetailsview.js +1 -1
- package/src/ui/revisionviewer/changesnavigationview.js +1 -1
- package/src/ui/revisionviewer/revisionviewerloadingoverlay.js +1 -1
- package/src/ui/revisionviewer/revisionviewerui.js +1 -1
- package/src/utils/common-translations.js +1 -1
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x83e1=['requires','RevisionHistoryUI','init','bind','RevisionTracker','get','isEnabled','length','pluginName','saveRevision','revisionHistory','revisionName','isReady','editing','render','change:isOpen','execute','items','view','saveButtonView','add','remove','focus','componentFactory','submit','isReadOnly','Revision\x20history','children','plugins','addMany','set','editor','Save\x20current\x20revision'];(function(_0xb6dba3,_0x83e14f){const _0x20554d=function(_0x4e38cf){while(--_0x4e38cf){_0xb6dba3['push'](_0xb6dba3['shift']());}};_0x20554d(++_0x83e14f);}(_0x83e1,0x94));const _0x2055=function(_0xb6dba3,_0x83e14f){_0xb6dba3=_0xb6dba3-0x0;let _0x20554d=_0x83e1[_0xb6dba3];return _0x20554d;};import{Plugin as _0x456d15}from'ckeditor5/src/core';import{ListView as _0x27a4af,ListItemView as _0x71322e,ButtonView as _0x12b7e4,createDropdown as _0x5943a8}from'ckeditor5/src/ui';import _0x2a340d from'../../revisiontracker';import _0x458864 from'./revisionhistorysaverevisionformview';import _0x4e7ce4 from'../../../theme/icons/revision-history.svg';import{getTranslation as _0x4acb21}from'../../utils/common-translations';export default class u extends _0x456d15{static get[_0x2055('0x19')](){return _0x2055('0x12');}static get[_0x2055('0x11')](){return[_0x2a340d];}[_0x2055('0x13')](){const _0x1d795d=this[_0x2055('0xf')],_0x5d5ba7=_0x1d795d[_0x2055('0xc')][_0x2055('0x16')](_0x2055('0x15'));_0x1d795d['ui'][_0x2055('0x7')]['add'](_0x2055('0x1b'),_0x3d48eb=>{const _0x150030=_0x5943a8(_0x3d48eb),_0x1a3af2=_0x150030['panelView'][_0x2055('0xb')],_0x46718c=new _0x27a4af(_0x3d48eb),_0x1c853e=new _0x71322e(_0x3d48eb),_0x4a9b14=new _0x12b7e4(_0x3d48eb),_0x4e04aa=new _0x71322e(_0x3d48eb),_0xa85596=new _0x12b7e4(_0x3d48eb),_0x28ca15=new _0x458864(_0x3d48eb);function _0x5f212b(){_0x1a3af2[_0x2055('0x18')]&&_0x1a3af2[_0x2055('0x5')](0x0),_0x1a3af2[_0x2055('0x4')](_0x46718c);}function _0xc6f006(){_0x150030['isOpen']=!0x1,_0x1d795d[_0x2055('0x1e')][_0x2055('0x2')]['focus']();}return _0x150030['bind']('isEnabled')['to'](_0x5d5ba7,'isReady',_0x5d5ba7,'isEnabled',_0x1d795d,_0x2055('0x9'),(_0x5218bf,_0x233301,_0x2403b9)=>_0x5218bf&&_0x233301&&!_0x2403b9),_0x150030['buttonView']['set']({'icon':_0x4e7ce4,'label':_0x4acb21(_0x3d48eb,_0x2055('0xa')),'tooltip':!0x0}),_0x4a9b14[_0x2055('0xe')]({'label':_0x4acb21(_0x3d48eb,_0x2055('0x10')),'withText':!0x0}),_0x4a9b14[_0x2055('0x14')](_0x2055('0x17'))['to'](_0x5d5ba7,_0x2055('0x1d'),_0x5d5ba7,_0x2055('0x17'),_0x1d795d,'isReadOnly',(_0x47155b,_0x301881,_0x4c74fe)=>_0x47155b&&_0x301881&&!_0x4c74fe),_0x4a9b14['on']('execute',()=>function(){_0x1a3af2[_0x2055('0x18')]&&_0x1a3af2[_0x2055('0x5')](0x0),(_0x28ca15['reset'](),_0x1a3af2[_0x2055('0x4')](_0x28ca15),_0x28ca15[_0x2055('0x6')]());}()),_0xa85596[_0x2055('0xe')]({'label':_0x4acb21(_0x3d48eb,'Open\x20revision\x20history'),'withText':!0x0}),_0xa85596['bind'](_0x2055('0x17'))['to'](_0x5d5ba7,_0x2055('0x1d'),_0x1d795d,'isReadOnly',(_0x2ed7b8,_0x59d4b2)=>_0x2ed7b8&&!_0x59d4b2),_0xa85596['on'](_0x2055('0x0'),()=>{_0x1d795d['config']['get'](_0x2055('0x1b'))['showRevisionViewerCallback'](),_0xc6f006();}),_0x1c853e[_0x2055('0xb')][_0x2055('0x4')](_0x4a9b14),_0x4e04aa['children'][_0x2055('0x4')](_0xa85596),_0x46718c[_0x2055('0x1')][_0x2055('0xd')]([_0x1c853e,_0x4e04aa]),_0x150030['on'](_0x2055('0x20'),()=>_0x5f212b()),_0x28ca15[_0x2055('0x3')][_0x2055('0x14')](_0x2055('0x17'))['to'](_0x5d5ba7,_0x2055('0x1d'),_0x5d5ba7,_0x2055('0x17'),_0x1d795d,'isReadOnly',(_0x49dd7f,_0x3e457f,_0x1e13f7)=>_0x49dd7f&&_0x3e457f&&!_0x1e13f7),_0x28ca15['on'](_0x2055('0x8'),()=>(_0x1d795d['plugins'][_0x2055('0x16')](_0x2a340d)[_0x2055('0x1a')]({'name':_0x28ca15[_0x2055('0x1c')]}),void _0xc6f006())),_0x28ca15['on']('cancel',()=>_0x5f212b()),_0x28ca15[_0x2055('0x1f')](),_0x5f212b(),_0x150030;});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3187=['_revisionsRepository','defaultRevisionActions','add','revisionViews','compare','getRevision','availableRevisionActions','_revisionViewer','element','assign','_sidebarView','pluginName','plugins','revisionHistory.viewerSidebarContainer','isEnabled','_handleRevisionSelected','name','restoreRevision','getLaterVisibleRevision','repository','isReady','get','remove','ready','restoreRevisionCallback','Name\x20this\x20revision','destroy','getIndex','config','_revisions','revisionSelected','Restore\x20this\x20revision','newRevisionId','listenTo','focus','revisionSetName','revisionHistory.revisionActions','revisionHistory','isSelected','_handleDiffChange','bind','length','change:diff','setName','action','_handleRevisionSetName','render','_handleEditorDataReady','isVisible','init','editor','getEarlierVisibleRevision','locale','map','string','selectRevision','data','Compare\x20against\x20selected'];(function(_0x709c71,_0x31876d){const _0x5e0dfb=function(_0x43596c){while(--_0x43596c){_0x709c71['push'](_0x709c71['shift']());}};_0x5e0dfb(++_0x31876d);}(_0x3187,0x81));const _0x5e0d=function(_0x709c71,_0x31876d){_0x709c71=_0x709c71-0x0;let _0x5e0dfb=_0x3187[_0x709c71];return _0x5e0dfb;};import{Plugin as _0x5b188d}from'ckeditor5/src/core';import _0x2dc569 from'./revisionssidebarview';import _0x548618 from'../../revisionviewer';export default class w extends _0x5b188d{static get[_0x5e0d('0x38')](){return'RevisionsSidebar';}static get['requires'](){return[_0x548618];}constructor(_0x449b11){super(_0x449b11),this[_0x5e0d('0x34')]=_0x449b11[_0x5e0d('0x39')][_0x5e0d('0x8')](_0x548618),this[_0x5e0d('0x2d')]=this['_revisionViewer'][_0x5e0d('0x6')],this['_sidebarView']=null;}[_0x5e0d('0x24')](){const _0x51c5b8=this[_0x5e0d('0x2d')][_0x5e0d('0x10')],_0x2baf14=this['_createRevisionActions'](),_0x189801=this[_0x5e0d('0x25')][_0x5e0d('0xf')][_0x5e0d('0x8')](_0x5e0d('0x0'));this[_0x5e0d('0x37')]=new _0x2dc569(this[_0x5e0d('0x25')][_0x5e0d('0x27')],_0x51c5b8,_0x2baf14),this['_sidebarView']['on'](_0x5e0d('0x11'),this[_0x5e0d('0x2')][_0x5e0d('0x1b')](this)),this[_0x5e0d('0x37')]['on'](_0x5e0d('0x16'),this[_0x5e0d('0x20')][_0x5e0d('0x1b')](this)),this[_0x5e0d('0x37')]['bind'](_0x5e0d('0x1'))['to'](this['_revisionViewer']),this[_0x5e0d('0x37')]['timePeriodViews']['on'](_0x5e0d('0x2f'),(_0x1dbf15,_0x5640c6)=>{_0x5640c6[_0x5e0d('0x30')]['on']('add',(_0x25b2c8,_0x3c3027)=>{_0x3c3027[_0x5e0d('0x1b')](_0x5e0d('0x1'),_0x5e0d('0x7'))['to'](this['_revisionViewer']);});}),this[_0x5e0d('0x37')][_0x5e0d('0x21')](),this[_0x5e0d('0x14')](this[_0x5e0d('0x25')][_0x5e0d('0x2b')],_0x5e0d('0xa'),this[_0x5e0d('0x22')][_0x5e0d('0x1b')](this)),this['listenTo'](this['_revisionViewer'],_0x5e0d('0x1d'),this['_handleDiffChange'][_0x5e0d('0x1b')](this)),_0x189801['appendChild'](this[_0x5e0d('0x37')]['element']);}['destroy'](){this[_0x5e0d('0x37')][_0x5e0d('0x35')][_0x5e0d('0x9')](),this['_sidebarView'][_0x5e0d('0xd')]();}[_0x5e0d('0x22')](){const _0x4b2d87=this['_revisionsRepository'][_0x5e0d('0x32')](0x0);if(_0x4b2d87){const _0x3abaa2=this[_0x5e0d('0x2d')][_0x5e0d('0x26')](_0x4b2d87['id']);this['_revisionViewer']['compare'](_0x4b2d87,_0x3abaa2);}}['_handleRevisionSelected'](_0x418ef3,_0x27a01d){const _0x58dea2=this[_0x5e0d('0x2d')][_0x5e0d('0x32')](_0x27a01d['id']),_0x5d5ad6=this['_revisionsRepository'][_0x5e0d('0x26')](_0x58dea2['id']);this[_0x5e0d('0x34')][_0x5e0d('0x31')](_0x58dea2,_0x5d5ad6);}[_0x5e0d('0x20')](_0x411930,_0x55e3ac){this[_0x5e0d('0x2d')][_0x5e0d('0x32')](_0x55e3ac['id'])[_0x5e0d('0x1e')](_0x55e3ac[_0x5e0d('0x3')]);}[_0x5e0d('0x1a')](_0x4ef165,_0x817d4,_0x50cc94){const _0x26a471=this['_revisionsRepository']['getRevisionsInDiff'](_0x50cc94);_0x26a471[_0x5e0d('0x1c')]>0x2?(this['_sidebarView']['highlightRevisions'](_0x26a471),this[_0x5e0d('0x37')][_0x5e0d('0x2a')](null)):(this[_0x5e0d('0x37')]['highlightRevisions']([]),this[_0x5e0d('0x37')]['selectRevision'](_0x26a471[0x0]));}['_createRevisionActions'](){const _0x4ec5f2=this['editor'],_0x253843=w['availableRevisionActions'],_0x588881=_0x4ec5f2['config'][_0x5e0d('0x8')](_0x5e0d('0x17'))||w[_0x5e0d('0x2e')];if(_0x588881[_0x5e0d('0x1c')])return _0x588881[_0x5e0d('0x28')](_0x354f4d=>{const _0xe55082=_0x5e0d('0x29')==typeof _0x354f4d?Object[_0x5e0d('0x36')]({},_0x253843[_0x354f4d]):_0x354f4d;return _0xe55082[_0x5e0d('0x1f')]=_0xe55082[_0x5e0d('0x1f')][_0x5e0d('0x1b')](this,_0x4ec5f2),_0xe55082['isVisible']&&(_0xe55082[_0x5e0d('0x23')]=_0xe55082[_0x5e0d('0x23')][_0x5e0d('0x1b')](this,_0x4ec5f2)),_0xe55082;});}}w[_0x5e0d('0x33')]={'compareAgainstSelected':{'name':_0x5e0d('0x2c'),'action':({plugins:_0x22c567},_0x16c3e4)=>{const _0x4dfd93=_0x22c567[_0x5e0d('0x8')](_0x548618),_0x27cb8f=_0x4dfd93['repository'];let _0x2e34af=_0x4dfd93['diff'][_0x5e0d('0x13')],_0x1978b2=_0x16c3e4['id'];_0x27cb8f[_0x5e0d('0xe')](_0x2e34af)>_0x27cb8f[_0x5e0d('0xe')](_0x1978b2)&&([_0x2e34af,_0x1978b2]=[_0x1978b2,_0x2e34af]),_0x4dfd93[_0x5e0d('0x31')](_0x2e34af,_0x1978b2);},'isVisible':({plugins:_0x14f41a},_0x430244)=>{const _0x2fe0a9=_0x14f41a[_0x5e0d('0x8')](_0x548618);return!(_0x2fe0a9[_0x5e0d('0x6')]['getRevisionsInDiff'](_0x2fe0a9['diff'])['length']>0x2)&&!_0x430244[_0x5e0d('0x19')];}},'restoreRevision':{'name':_0x5e0d('0x12'),'action':(_0x24ef16,{id:_0x13c7e5})=>{_0x24ef16[_0x5e0d('0xf')][_0x5e0d('0x8')](_0x5e0d('0x18'))[_0x5e0d('0xb')](_0x13c7e5);},'isVisible':({plugins:_0x37397a},_0x29232a)=>!!_0x37397a[_0x5e0d('0x8')](_0x548618)[_0x5e0d('0x6')][_0x5e0d('0x5')](_0x29232a['id'])},'nameRevision':{'name':_0x5e0d('0xc'),'action':({plugins:_0x577fbd},{id:_0x45b267,revisionNameView:_0x22c628})=>{const _0x662e77=_0x577fbd[_0x5e0d('0x8')](_0x548618),_0x54c50e=_0x662e77[_0x5e0d('0x6')]['getEarlierVisibleRevision'](_0x45b267);_0x662e77['compare'](_0x45b267,_0x54c50e),_0x22c628[_0x5e0d('0x15')](),_0x22c628['fieldView']['select']();}}},w['defaultRevisionActions']=['compareAgainstSelected',_0x5e0d('0x4'),'nameRevision'];
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x523f=['ck-reset_all','ck-revision-history-sidebar__header','div','setTemplate','content','span','ck-revision-history-sidebar__header__label'];(function(_0xea18a7,_0x523f12){const _0x223b7c=function(_0x55db25){while(--_0x55db25){_0xea18a7['push'](_0xea18a7['shift']());}};_0x223b7c(++_0x523f12);}(_0x523f,0xa1));const _0x223b=function(_0xea18a7,_0x523f12){_0xea18a7=_0xea18a7-0x0;let _0x223b7c=_0x523f[_0xea18a7];return _0x223b7c;};import{View as _0x2597a4,IconView as _0x16a3c8}from'ckeditor5/src/ui';import{getTranslation as _0x139107}from'../../utils/common-translations';import _0x3d974f from'../../../theme/icons/revision-history.svg';import'../../../theme/revisionssidebar/revisionssidebarheader.css';export default class ts extends _0x2597a4{constructor(_0xfba7ea){super(_0xfba7ea);const _0x10c5b1=new _0x16a3c8();_0x10c5b1[_0x223b('0x4')]=_0x3d974f,this[_0x223b('0x3')]({'tag':_0x223b('0x2'),'attributes':{'class':['ck',_0x223b('0x0'),_0x223b('0x1')]},'children':[_0x10c5b1,{'tag':_0x223b('0x5'),'attributes':{'class':['ck',_0x223b('0x6')]},'children':[_0x139107(_0xfba7ea,'Revision\x20history')]}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3fc8=['locale','delegate','revisionViews','localizedPeriodName','div','setName','remove','setTemplate','ck-revision-history-sidebar__time-period','addRevision','ck-revision-history-sidebar__time-period__revisions','uiLanguage','_revisionActions','find','removeRevision','createCollection','add','ck-revision-history-sidebar__time-period__label'];(function(_0x2925f3,_0x3fc8a2){const _0x2ebf41=function(_0x32f772){while(--_0x32f772){_0x2925f3['push'](_0x2925f3['shift']());}};_0x2ebf41(++_0x3fc8a2);}(_0x3fc8,0x110));const _0x2ebf=function(_0x2925f3,_0x3fc8a2){_0x2925f3=_0x2925f3-0x0;let _0x2ebf41=_0x3fc8[_0x2925f3];return _0x2ebf41;};import{View as _0x34d609}from'ckeditor5/src/ui';import _0x22bc8e from'../revision/revisionview';import{getDateTimePeriodInfo as _0x3f2076}from'./utils';import'../../../theme/revisionssidebar/revisionssidebartimeperiod.css';export default class _i extends _0x34d609{constructor(_0x178c98,_0x339bea,_0xc6f113){super(_0x178c98);const _0x33404a=_0x3f2076(_0x339bea,this['locale'][_0x2ebf('0x9')])[_0x2ebf('0x1')];this['startDate']=_0x339bea,this[_0x2ebf('0x0')]=this[_0x2ebf('0xd')](),this[_0x2ebf('0xa')]=_0xc6f113,this['revisionViews']['delegate']('select')['to'](this),this['revisionViews'][_0x2ebf('0x11')](_0x2ebf('0x3'))['to'](this),this[_0x2ebf('0x5')]({'tag':_0x2ebf('0x2'),'attributes':{'class':['ck',_0x2ebf('0x6')]},'children':[{'tag':'span','attributes':{'class':['ck',_0x2ebf('0xf')]},'children':[{'text':_0x33404a}]},{'tag':_0x2ebf('0x2'),'attributes':{'class':['ck',_0x2ebf('0x8')]},'children':this[_0x2ebf('0x0')]}]});}[_0x2ebf('0x7')](_0x4d2525){const _0x326cb2=new _0x22bc8e(this[_0x2ebf('0x10')],_0x4d2525,this[_0x2ebf('0xa')]);this[_0x2ebf('0x0')][_0x2ebf('0xe')](_0x326cb2);}[_0x2ebf('0xc')](_0x240874){const _0x455952=this[_0x2ebf('0x0')][_0x2ebf('0xb')](_0x2150b1=>_0x2150b1['id']===_0x240874['id']);this[_0x2ebf('0x0')][_0x2ebf('0x4')](_0x455952);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x50dd=['revisionSetName','get','_getTimePeriodViewByStartDate','bindTemplate','_removeRevision','revisionSelected','add','setTemplate','map','remove','find','locale','uiLanguage','fire','highlight','timePeriodViews','deselect','render','getTime','setName','startDate','revisionViews','div','isEnabled','_revisionActions','createdAt','createCollection','unhighlight','ck-revision-history-sidebar','some','selectRevision','_addRevision','removeRevision','delegate','select','_revisions','ck-rounded-corners'];(function(_0x46cd84,_0x50dd6d){const _0x36635f=function(_0x2d6f71){while(--_0x2d6f71){_0x46cd84['push'](_0x46cd84['shift']());}};_0x36635f(++_0x50dd6d);}(_0x50dd,0x18d));const _0x3663=function(_0x46cd84,_0x50dd6d){_0x46cd84=_0x46cd84-0x0;let _0x36635f=_0x50dd[_0x46cd84];return _0x36635f;};import{View as _0x8108b9}from'ckeditor5/src/ui';import _0x10ed48 from'./revisionssidebartimeperiodview';import _0x46ad1b from'./revisionssidebarheaderview';import{getDateTimePeriodInfo as _0x67df5f}from'./utils';import'../../../theme/revisionssidebar/revisionssidebar.css';export default class vi extends _0x8108b9{constructor(_0x2fb2e7,_0x4ffef0,_0x261455){super(_0x2fb2e7);const _0x580db9=this[_0x3663('0xd')];this[_0x3663('0x19')]=this[_0x3663('0x24')](),this[_0x3663('0x19')][_0x3663('0x6')](_0x3663('0x7'))['to'](this),this[_0x3663('0x19')][_0x3663('0x6')]('setName')['to'](this),this[_0x3663('0x8')]=_0x4ffef0,this[_0x3663('0x22')]=_0x261455,this['on'](_0x3663('0x7'),(_0x267e3c,_0x3e3602)=>{this[_0x3663('0x17')](_0x3663('0xf'),_0x3e3602);}),this['on'](_0x3663('0x1d'),(_0x4fc4c1,_0x3bad3c)=>{this['fire'](_0x3663('0xa'),_0x3bad3c);}),this['set']('isEnabled',!0x1),this[_0x3663('0x11')]({'tag':'div','attributes':{'class':['ck','ck-reset',_0x3663('0x9'),_0x3663('0x1')]},'children':[new _0x46ad1b(_0x2fb2e7),{'tag':_0x3663('0x20'),'attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x580db9['if'](_0x3663('0x21'),'ck-disabled',_0x500a11=>!_0x500a11)]},'children':this[_0x3663('0x19')]}]});}[_0x3663('0x1b')](){super[_0x3663('0x1b')]();for(const _0x43f697 of this[_0x3663('0x8')])this[_0x3663('0x4')](_0x43f697);this[_0x3663('0x8')]['on'](_0x3663('0x10'),(_0x57c397,_0x39a47e)=>{this[_0x3663('0x4')](_0x39a47e);}),this['_revisions']['on'](_0x3663('0x13'),(_0x2c8e19,_0x153000)=>{this[_0x3663('0xe')](_0x153000);});}get[_0x3663('0x1f')](){return this[_0x3663('0x19')][_0x3663('0x12')](_0x532663=>_0x532663['revisionViews'][_0x3663('0x12')](_0x4f1840=>_0x4f1840))['flat']();}[_0x3663('0x3')](_0x1682b8){for(const _0x249e3c of this['revisionViews'])_0x1682b8&&_0x1682b8['id']===_0x249e3c['id']?_0x249e3c[_0x3663('0x7')]():_0x249e3c[_0x3663('0x1a')]();}['highlightRevisions'](_0x30477a){for(const _0x4eabe3 of this[_0x3663('0x1f')])_0x30477a[_0x3663('0x2')](({id:_0x4f8e4b})=>_0x4f8e4b===_0x4eabe3['id'])?_0x4eabe3[_0x3663('0x18')]():_0x4eabe3[_0x3663('0x0')]();}[_0x3663('0x4')](_0x2c8864){const _0x76fc49=_0x67df5f(_0x2c8864['createdAt'],this[_0x3663('0x15')][_0x3663('0x16')])[_0x3663('0x1e')];let _0x21d1bd=this['timePeriodViews'][_0x3663('0xb')](0x0);_0x21d1bd&&_0x21d1bd[_0x3663('0x1e')]['getTime']()===_0x76fc49[_0x3663('0x1c')]()||(_0x21d1bd=new _0x10ed48(this[_0x3663('0x15')],_0x76fc49,this[_0x3663('0x22')]),this[_0x3663('0x19')][_0x3663('0x10')](_0x21d1bd)),_0x21d1bd['addRevision'](_0x2c8864);}[_0x3663('0xe')](_0x23bf17){const _0x29aa6c=_0x67df5f(_0x23bf17[_0x3663('0x23')],this[_0x3663('0x15')][_0x3663('0x16')])['startDate'];this[_0x3663('0xc')](_0x29aa6c)[_0x3663('0x5')](_0x23bf17);}[_0x3663('0xc')](_0x35eff2){return this[_0x3663('0x19')][_0x3663('0x14')](_0x559e6c=>_0x559e6c[_0x3663('0x1e')]['getTime']()===_0x35eff2[_0x3663('0x1c')]());}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5e6e=['local','toRelativeCalendar','week','month','minus','weekdayLong','toJSDate','hasSame','monthLong','day','fromJSDate','startOf','year','setLocale'];(function(_0x5417b5,_0x5e6ea0){const _0x212caa=function(_0x1cae34){while(--_0x1cae34){_0x5417b5['push'](_0x5417b5['shift']());}};_0x212caa(++_0x5e6ea0);}(_0x5e6e,0x1c5));const _0x212c=function(_0x5417b5,_0x5e6ea0){_0x5417b5=_0x5417b5-0x0;let _0x212caa=_0x5e6e[_0x5417b5];return _0x212caa;};import{DateTime as _0x5ad687}from'luxon';export function getDateTimePeriodInfo(_0xc5158b,_0x40cc31){const _0x1bfc80=_0x5ad687[_0x212c('0x5')](_0xc5158b)[_0x212c('0x8')](_0x40cc31),_0xa8112d=_0x5ad687[_0x212c('0x9')](),_0x454441=_0xa8112d[_0x212c('0xd')]({'days':0x1})[_0x212c('0x6')]('day');let _0x58a63b,_0x153ebb;return _0x1bfc80[_0x212c('0x2')](_0xa8112d,_0x212c('0x4'))?(_0x58a63b=_0x1bfc80[_0x212c('0x6')](_0x212c('0x4'))[_0x212c('0x1')](),_0x153ebb=_0x1bfc80[_0x212c('0xa')]()):_0x1bfc80[_0x212c('0x2')](_0x454441,_0x212c('0x4'))?(_0x58a63b=_0x454441['toJSDate'](),_0x153ebb=_0x1bfc80[_0x212c('0xa')]()):_0x1bfc80[_0x212c('0x2')](_0xa8112d,_0x212c('0xb'))?(_0x58a63b=_0x1bfc80[_0x212c('0x6')](_0x212c('0xb'))['toJSDate'](),_0x153ebb=_0x1bfc80[_0x212c('0x0')]||''):_0x1bfc80['hasSame'](_0xa8112d,_0x212c('0x7'))?(_0x58a63b=_0x1bfc80[_0x212c('0x6')](_0x212c('0xc'))['toJSDate'](),_0x153ebb=_0x1bfc80[_0x212c('0x3')]||''):(_0x58a63b=_0x1bfc80[_0x212c('0x6')](_0x212c('0x7'))[_0x212c('0x1')](),_0x153ebb=String(_0x1bfc80[_0x212c('0x7')])),{'startDate':_0x58a63b,'localizedPeriodName':_0x153ebb};}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1084=['ck-revision-change__','set','add','element','Added\x20by','span','author','data','bindTemplate','_model','Suggested\x20by','ck-revision-change','focus','Removed\x20by','type','div','changeId','setTemplate','isSuggestion'];(function(_0x41aa5b,_0x1084cf){const _0x65c202=function(_0x3aed38){while(--_0x3aed38){_0x41aa5b['push'](_0x41aa5b['shift']());}};_0x65c202(++_0x1084cf);}(_0x1084,0x178));const _0x65c2=function(_0x41aa5b,_0x1084cf){_0x41aa5b=_0x41aa5b-0x0;let _0x65c202=_0x1084[_0x41aa5b];return _0x65c202;};import{View as _0x4c99a7}from'ckeditor5/src/ui';import{getTranslation as _0x326285}from'../../utils/common-translations';export default class Z extends _0x4c99a7{constructor(_0x12aed4,_0x1014f2){super(_0x12aed4),this[_0x65c2('0xd')]=_0x1014f2,this[_0x65c2('0x1')]=_0x1014f2['id'];const _0x37a9bc=this[_0x65c2('0xc')],_0x49b294=_0x326285(_0x12aed4,_0x1014f2[_0x65c2('0xb')][_0x65c2('0x3')]?_0x65c2('0xe'):_0x65c2('0x6')==_0x1014f2[_0x65c2('0x12')]?_0x65c2('0x8'):_0x65c2('0x11'));this[_0x65c2('0x5')](_0x65c2('0x12'),_0x1014f2['type']),this[_0x65c2('0x2')]({'tag':_0x65c2('0x0'),'attributes':{'class':['ck-annotation',_0x65c2('0xf'),_0x37a9bc['to']('type',_0xfa7473=>_0x65c2('0x4')+_0xfa7473)],'tabindex':-0x1},'children':[{'tag':_0x65c2('0x9'),'children':[{'tag':_0x65c2('0x9'),'attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x49b294}]},{'text':'\x20'+_0x1014f2[_0x65c2('0xa')]['name']}]}]});}[_0x65c2('0x10')](){this[_0x65c2('0x7')][_0x65c2('0x10')]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x38c6=['ck-revision-history-ui__changes-navigation','ck-hidden','No\x20changes','div','bindTemplate','currentChangeNumber','forward','X_OF_Y_CHANGES','ck-revision-history-ui__changes-navigation__navigation','Show\x20previous\x20change','isReady','isNavigationMode','NUMBER_OF_CHANGES','bind','ck-revision-history-ui__changes-navigation__wrapper','EDIT_X_OF_Y_REVISIONS','set','isEnabled','backward','execute','ck-revision-history-ui__changes-navigation__label','isForwardNavigationEnabled','fire','_statusText','Total','numberOfChanges','isBackwardNavigationEnabled','setTemplate'];(function(_0x5540c0,_0x38c61c){const _0x406022=function(_0x40a1ad){while(--_0x40a1ad){_0x5540c0['push'](_0x5540c0['shift']());}};_0x406022(++_0x38c61c);}(_0x38c6,0x1ca));const _0x4060=function(_0x5540c0,_0x38c61c){_0x5540c0=_0x5540c0-0x0;let _0x406022=_0x38c6[_0x5540c0];return _0x406022;};import{View as _0xdb1c82,ButtonView as _0x597267,ToolbarSeparatorView as _0x32242f}from'ckeditor5/src/ui';import{getTranslation as _0x91a4bb}from'../../utils/common-translations';import _0xe16ed5 from'../../../theme/icons/arrow-up.svg';import _0x8a551e from'../../../theme/icons/arrow-down.svg';import'../../../theme/changesnavigation.css';export default class wi extends _0xdb1c82{constructor(_0x21513a){super(_0x21513a);const _0x51465c=this[_0x4060('0x16')],_0x2d5bf7=new _0x597267(_0x21513a),_0xf9ded3=new _0x597267(_0x21513a);this[_0x4060('0x6')]('isNavigationMode',!0x1),this[_0x4060('0x6')](_0x4060('0x0'),!0x1),this['set'](_0x4060('0x17'),0x0),this[_0x4060('0x6')](_0x4060('0xf'),0x0),this[_0x4060('0x6')](_0x4060('0xb'),!0x1),this['set'](_0x4060('0x10'),!0x1),this[_0x4060('0x3')]('_isStatusLabelVisible')['to'](this,_0x4060('0x0'),this,_0x4060('0xf'),(_0x2891bc,_0x1cfecc)=>_0x2891bc&&_0x1cfecc>0x0),this[_0x4060('0x3')](_0x4060('0xd'))['to'](this,'isReady',this,_0x4060('0x17'),this,'numberOfChanges',this,_0x4060('0x1'),(_0x4d3165,_0x29c17f,_0xfd7290,_0xac32f3)=>{if(!_0x4d3165)return _0x91a4bb(_0x21513a,'Loading...');if(!_0xfd7290)return _0x91a4bb(_0x21513a,_0x4060('0x14'));const _0x27ebec=_0x91a4bb(_0x21513a,_0x4060('0x2'),_0xfd7290);return _0xac32f3?_0x91a4bb(_0x21513a,_0x4060('0x19'),[_0x29c17f+0x1,_0xfd7290]):_0x27ebec;}),_0x2d5bf7[_0x4060('0x6')]({'label':_0x91a4bb(_0x21513a,_0x4060('0x1b')),'tooltip':!0x0,'icon':_0xe16ed5}),_0xf9ded3[_0x4060('0x6')]({'label':_0x91a4bb(_0x21513a,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x8a551e}),_0x2d5bf7['bind']('isEnabled')['to'](this,_0x4060('0x10')),_0xf9ded3['bind'](_0x4060('0x7'))['to'](this,'isForwardNavigationEnabled'),_0x2d5bf7['on']('execute',()=>this[_0x4060('0xc')]('execute',_0x4060('0x8'))),_0xf9ded3['on'](_0x4060('0x9'),()=>this[_0x4060('0xc')](_0x4060('0x9'),_0x4060('0x18'))),this[_0x4060('0x11')]({'tag':_0x4060('0x15'),'attributes':{'class':['ck','ck-revision-history-ui',_0x4060('0x12')]},'children':[{'tag':'span','attributes':{'class':[_0x4060('0x4')]},'children':[{'tag':'span','attributes':{'class':[_0x4060('0xa'),_0x51465c['if']('_isStatusLabelVisible',_0x4060('0x13'),_0x28f52b=>!_0x28f52b)]},'children':[{'text':_0x51465c['to']('isNavigationMode',_0x1e3566=>_0x1e3566?_0x91a4bb(_0x21513a,_0x4060('0x5'))+':\x20':_0x91a4bb(_0x21513a,_0x4060('0xe'))+':\x20')}]},{'text':_0x51465c['to'](_0x4060('0xd'))}]},new _0x32242f(),{'tag':_0x4060('0x15'),'attributes':{'class':[_0x4060('0x1a')]},'children':[_0x2d5bf7,_0xf9ded3]}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5aea=['ck-editor__editable__loading-overlay','view','roots','document','editing','pluginName','change','hide','editor'];(function(_0x388f8f,_0x5aea1c){const _0x48ba5f=function(_0x206e03){while(--_0x206e03){_0x388f8f['push'](_0x388f8f['shift']());}};_0x48ba5f(++_0x5aea1c);}(_0x5aea,0x151));const _0x48ba=function(_0x388f8f,_0x5aea1c){_0x388f8f=_0x388f8f-0x0;let _0x48ba5f=_0x5aea[_0x388f8f];return _0x48ba5f;};import{Plugin as _0x5ad4a8}from'ckeditor5/src/core';const oe=_0x48ba('0x5');import'../../../theme/revisionviewerloadingoverlay.css';export default class te extends _0x5ad4a8{static get[_0x48ba('0x1')](){return'RevisionViewerLoadingOverlay';}['show'](){const _0x29e004=this[_0x48ba('0x4')][_0x48ba('0x0')][_0x48ba('0x6')];_0x29e004[_0x48ba('0x2')](_0x46fa35=>{for(const _0x4180e1 of _0x29e004[_0x48ba('0x8')][_0x48ba('0x7')])_0x46fa35['addClass'](oe,_0x4180e1);});}[_0x48ba('0x3')](){const _0x49a589=this[_0x48ba('0x4')][_0x48ba('0x0')][_0x48ba('0x6')];_0x49a589[_0x48ba('0x2')](_0x11bb1a=>{for(const _0x1cccce of _0x49a589[_0x48ba('0x8')]['roots'])_0x11bb1a['removeClass'](oe,_0x1cccce);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5469=['set','init','execute','closeRevisionViewerCallback','isForwardNavigationEnabled','ck-revision-history-ui__back-to-editing','show','listenTo','change:isReady','get','isNavigationMode','pluginName','revisionHistory','commands','hide','add','changesNavigation','editor','Restore\x20this\x20revision','RevisionViewerUI','componentFactory','requires','isEnabled','plugins','restoreRevision','isReady','forward','bind','isBackwardNavigationEnabled','currentChangeNumber'];(function(_0xdc7b9a,_0x54690b){const _0x220249=function(_0x4898c3){while(--_0x4898c3){_0xdc7b9a['push'](_0xdc7b9a['shift']());}};_0x220249(++_0x54690b);}(_0x5469,0x9d));const _0x2202=function(_0xdc7b9a,_0x54690b){_0xdc7b9a=_0xdc7b9a-0x0;let _0x220249=_0x5469[_0xdc7b9a];return _0x220249;};import{Plugin as _0x5af6db}from'ckeditor5/src/core';import{ButtonView as _0x24668a}from'ckeditor5/src/ui';import _0x2d6621 from'./changesnavigationview';import _0x55b7b6 from'./../../revisionviewer';import _0x2c4264 from'./revisionviewerloadingoverlay';import{getTranslation as _0x44a296}from'../../utils/common-translations';import _0x2d9dbc from'@ckeditor/ckeditor5-undo/theme/icons/undo.svg';import'../../../theme/revisionviewer.css';export default class R extends _0x5af6db{static get[_0x2202('0x4')](){return _0x2202('0xc');}static get[_0x2202('0xe')](){return[_0x55b7b6,_0x2c4264];}[_0x2202('0x18')](){const _0x2c9225=this[_0x2202('0xa')],_0x59638f=_0x2c9225[_0x2202('0x10')][_0x2202('0x2')](_0x55b7b6),_0x2ebd57=_0x2c9225[_0x2202('0x10')][_0x2202('0x2')](_0x2c4264);_0x2c9225['ui'][_0x2202('0xd')][_0x2202('0x8')]('exitToEditing',_0x23875f=>{const _0x26f80c=new _0x24668a(_0x23875f);return _0x26f80c[_0x2202('0x17')]({'label':_0x44a296(_0x23875f,'Back\x20to\x20editing'),'icon':_0x2d9dbc,'withText':!0x0,'tooltip':!0x0,'class':_0x2202('0x1c')}),this[_0x2202('0x0')](_0x26f80c,'execute',()=>{_0x2c9225['config']['get'](_0x2202('0x5'))[_0x2202('0x1a')]();}),_0x26f80c;}),_0x2c9225['ui']['componentFactory'][_0x2202('0x8')](_0x2202('0x11'),_0x2c1425=>{const _0x299be0=new _0x24668a(_0x2c1425);return _0x299be0[_0x2202('0x17')]({'label':_0x44a296(_0x2c1425,_0x2202('0xb')),'withText':!0x0,'tooltip':!0x0}),_0x299be0[_0x2202('0x14')](_0x2202('0xf'))['to'](_0x2c9225[_0x2202('0x6')][_0x2202('0x2')](_0x2202('0x11'))),this[_0x2202('0x0')](_0x299be0,_0x2202('0x19'),()=>_0x2c9225['execute']('restoreRevision')),_0x299be0;}),_0x2c9225['ui'][_0x2202('0xd')]['add'](_0x2202('0x9'),_0x3681ad=>{const _0x16d1ba=new _0x2d6621(_0x3681ad),_0x294bcf=_0x2c9225['commands'][_0x2202('0x2')]('showPreviousChange'),_0x134ddc=_0x2c9225[_0x2202('0x6')][_0x2202('0x2')]('showNextChange');return _0x16d1ba[_0x2202('0x14')](_0x2202('0x15'))['to'](_0x294bcf,'isEnabled'),_0x16d1ba[_0x2202('0x14')](_0x2202('0x1b'))['to'](_0x134ddc,_0x2202('0xf')),_0x16d1ba['bind'](_0x2202('0x12'),_0x2202('0x16'),'numberOfChanges',_0x2202('0x3'))['to'](_0x59638f),this[_0x2202('0x0')](_0x16d1ba,_0x2202('0x19'),(_0x109348,_0x302b46)=>{_0x2c9225[_0x2202('0x19')](_0x2202('0x13')===_0x302b46?'showNextChange':'showPreviousChange');}),_0x16d1ba;}),_0x2ebd57[_0x2202('0x1d')](),_0x59638f['on'](_0x2202('0x1'),(_0xcdda28,_0x2c979d,_0x1bda7e)=>{_0x1bda7e?_0x2ebd57[_0x2202('0x7')]():_0x2ebd57[_0x2202('0x1d')]();});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export function getTranslation(
|
|
23
|
+
export function getTranslation(_0x2ef246,_0x17a9ae,_0x19367a){const t=_0x2ef246['t'];switch(_0x17a9ae){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'},_0x19367a);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x19367a);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 _0x17a9ae;}}
|