@ckeditor/ckeditor5-revision-history 35.1.0 → 35.2.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/build/translations/es-co.js +1 -0
- package/build/translations/fa.js +1 -1
- package/build/translations/tt.js +1 -0
- package/lang/translations/es-co.po +124 -0
- package/lang/translations/fa.po +1 -1
- package/lang/translations/tt.po +122 -0
- package/package.json +7 -7
- 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 _0x5e98=['plugins','execute','Save\x20current\x20revision','config','editor','componentFactory','length','panelView','init','Revision\x20history','add','saveButtonView','isEnabled','Open\x20revision\x20history','set','revisionHistory','items','pluginName','RevisionTracker','submit','requires','editing','showRevisionViewerCallback','bind','isReadOnly','cancel','isReady','children','RevisionHistoryUI','get','view','remove','focus','change:isOpen','render','revisionName'];(function(_0x1f77d1,_0x5e9843){const _0x231e51=function(_0x126364){while(--_0x126364){_0x1f77d1['push'](_0x1f77d1['shift']());}};_0x231e51(++_0x5e9843);}(_0x5e98,0xe8));const _0x231e=function(_0x1f77d1,_0x5e9843){_0x1f77d1=_0x1f77d1-0x0;let _0x231e51=_0x5e98[_0x1f77d1];return _0x231e51;};import{Plugin as _0x206d4c}from'ckeditor5/src/core';import{ListView as _0x4c5721,ListItemView as _0x49c926,ButtonView as _0x36e303,createDropdown as _0x44e2ce}from'ckeditor5/src/ui';import _0x245fa5 from'../../revisiontracker';import _0x20b8a2 from'./revisionhistorysaverevisionformview';import _0x1ddc94 from'../../../theme/icons/revision-history.svg';import{getTranslation as _0x215936}from'../../utils/common-translations';export default class R extends _0x206d4c{static get[_0x231e('0x1')](){return _0x231e('0xc');}static get[_0x231e('0x4')](){return[_0x245fa5];}[_0x231e('0x1c')](){const _0xbda431=this[_0x231e('0x18')],_0x21a9a9=_0xbda431[_0x231e('0x14')][_0x231e('0xd')](_0x231e('0x2'));_0xbda431['ui'][_0x231e('0x19')]['add'](_0x231e('0x23'),_0x233f8b=>{const _0x456f34=_0x44e2ce(_0x233f8b),_0x16086c=_0x456f34[_0x231e('0x1b')][_0x231e('0xb')],_0x286715=new _0x4c5721(_0x233f8b),_0x29e1ba=new _0x49c926(_0x233f8b),_0x3a83ac=new _0x36e303(_0x233f8b),_0x334674=new _0x49c926(_0x233f8b),_0x42cfb1=new _0x36e303(_0x233f8b),_0x10641d=new _0x20b8a2(_0x233f8b);function _0x609eac(){_0x16086c[_0x231e('0x1a')]&&_0x16086c[_0x231e('0xf')](0x0),_0x16086c[_0x231e('0x1e')](_0x286715);}function _0x5cb6e1(){_0x456f34['isOpen']=!0x1,_0xbda431[_0x231e('0x5')][_0x231e('0xe')][_0x231e('0x10')]();}return _0x456f34[_0x231e('0x7')]('isEnabled')['to'](_0x21a9a9,'isReady',_0x21a9a9,_0x231e('0x20'),_0xbda431,_0x231e('0x8'),(_0x4426b8,_0x49d79e,_0x55f5c6)=>_0x4426b8&&_0x49d79e&&!_0x55f5c6),_0x456f34['buttonView'][_0x231e('0x22')]({'icon':_0x1ddc94,'label':_0x215936(_0x233f8b,_0x231e('0x1d')),'tooltip':!0x0}),_0x3a83ac[_0x231e('0x22')]({'label':_0x215936(_0x233f8b,_0x231e('0x16')),'withText':!0x0}),_0x3a83ac[_0x231e('0x7')](_0x231e('0x20'))['to'](_0x21a9a9,_0x231e('0xa'),_0x21a9a9,_0x231e('0x20'),_0xbda431,_0x231e('0x8'),(_0x3dec98,_0x174736,_0x5e1af4)=>_0x3dec98&&_0x174736&&!_0x5e1af4),_0x3a83ac['on'](_0x231e('0x15'),()=>function(){_0x16086c['length']&&_0x16086c[_0x231e('0xf')](0x0),(_0x10641d['reset'](),_0x16086c[_0x231e('0x1e')](_0x10641d),_0x10641d[_0x231e('0x10')]());}()),_0x42cfb1['set']({'label':_0x215936(_0x233f8b,_0x231e('0x21')),'withText':!0x0}),_0x42cfb1[_0x231e('0x7')](_0x231e('0x20'))['to'](_0x21a9a9,_0x231e('0xa'),_0xbda431,_0x231e('0x8'),(_0x427ee6,_0x317caa)=>_0x427ee6&&!_0x317caa),_0x42cfb1['on'](_0x231e('0x15'),()=>{_0xbda431[_0x231e('0x17')]['get'](_0x231e('0x23'))[_0x231e('0x6')](),_0x5cb6e1();}),_0x29e1ba[_0x231e('0xb')][_0x231e('0x1e')](_0x3a83ac),_0x334674['children'][_0x231e('0x1e')](_0x42cfb1),_0x286715[_0x231e('0x0')]['addMany']([_0x29e1ba,_0x334674]),_0x456f34['on'](_0x231e('0x11'),()=>_0x609eac()),_0x10641d[_0x231e('0x1f')][_0x231e('0x7')]('isEnabled')['to'](_0x21a9a9,_0x231e('0xa'),_0x21a9a9,_0x231e('0x20'),_0xbda431,_0x231e('0x8'),(_0x44c11f,_0x518231,_0x3e6e73)=>_0x44c11f&&_0x518231&&!_0x3e6e73),_0x10641d['on'](_0x231e('0x3'),()=>(_0xbda431['plugins'][_0x231e('0xd')](_0x245fa5)['saveRevision']({'name':_0x10641d[_0x231e('0x13')]}),void _0x5cb6e1())),_0x10641d['on'](_0x231e('0x9'),()=>_0x609eac()),_0x10641d[_0x231e('0x12')](),_0x609eac(),_0x456f34;});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x56c9=['string','compareAgainstSelected','config','getRevision','plugins','bind','map','_handleDiffChange','diff','RevisionsSidebar','restoreRevisionCallback','availableRevisionActions','ready','timePeriodViews','pluginName','length','element','_handleRevisionSetName','_createRevisionActions','getIndex','listenTo','_handleEditorDataReady','select','_revisions','isVisible','_revisionsRepository','getEarlierVisibleRevision','fieldView','isEnabled','locale','isSelected','destroy','change:diff','repository','get','_revisionViewer','revisionHistory.viewerSidebarContainer','getRevisionsInDiff','focus','Restore\x20this\x20revision','highlightRevisions','isReady','selectRevision','requires','compare','appendChild','newRevisionId','_sidebarView','getLaterVisibleRevision','assign','revisionSelected','revisionHistory.revisionActions','data','_handleRevisionSelected','action','revisionViews','nameRevision','add','defaultRevisionActions','setName'];(function(_0x146774,_0x56c9c8){const _0x4a2b8e=function(_0x1d3a17){while(--_0x1d3a17){_0x146774['push'](_0x146774['shift']());}};_0x4a2b8e(++_0x56c9c8);}(_0x56c9,0xb9));const _0x4a2b=function(_0x146774,_0x56c9c8){_0x146774=_0x146774-0x0;let _0x4a2b8e=_0x56c9[_0x146774];return _0x4a2b8e;};import{Plugin as _0x2aa7af}from'ckeditor5/src/core';import _0x104a67 from'./revisionssidebarview';import _0x13dc1e from'../../revisionviewer';export default class y extends _0x2aa7af{static get[_0x4a2b('0x9')](){return _0x4a2b('0x4');}static get[_0x4a2b('0x26')](){return[_0x13dc1e];}constructor(_0xf3e5dd){super(_0xf3e5dd),this[_0x4a2b('0x1e')]=_0xf3e5dd[_0x4a2b('0x3b')][_0x4a2b('0x1d')](_0x13dc1e),this['_revisionsRepository']=this[_0x4a2b('0x1e')][_0x4a2b('0x1c')],this[_0x4a2b('0x2a')]=null;}['init'](){const _0x36ebbb=this[_0x4a2b('0x14')][_0x4a2b('0x12')],_0x305739=this[_0x4a2b('0xd')](),_0x126c6f=this['editor'][_0x4a2b('0x39')]['get'](_0x4a2b('0x1f'));this[_0x4a2b('0x2a')]=new _0x104a67(this['editor'][_0x4a2b('0x18')],_0x36ebbb,_0x305739),this[_0x4a2b('0x2a')]['on'](_0x4a2b('0x2d'),this[_0x4a2b('0x30')][_0x4a2b('0x0')](this)),this[_0x4a2b('0x2a')]['on']('revisionSetName',this[_0x4a2b('0xc')][_0x4a2b('0x0')](this)),this['_sidebarView'][_0x4a2b('0x0')](_0x4a2b('0x17'))['to'](this['_revisionViewer']),this[_0x4a2b('0x2a')][_0x4a2b('0x8')]['on'](_0x4a2b('0x34'),(_0x1adbb2,_0xd7312a)=>{_0xd7312a[_0x4a2b('0x32')]['on'](_0x4a2b('0x34'),(_0x11246c,_0x980313)=>{_0x980313[_0x4a2b('0x0')](_0x4a2b('0x17'),_0x4a2b('0x24'))['to'](this[_0x4a2b('0x1e')]);});}),this[_0x4a2b('0x2a')]['render'](),this['listenTo'](this['editor'][_0x4a2b('0x2f')],_0x4a2b('0x7'),this[_0x4a2b('0x10')][_0x4a2b('0x0')](this)),this[_0x4a2b('0xf')](this[_0x4a2b('0x1e')],_0x4a2b('0x1b'),this[_0x4a2b('0x2')][_0x4a2b('0x0')](this)),_0x126c6f[_0x4a2b('0x28')](this[_0x4a2b('0x2a')][_0x4a2b('0xb')]);}[_0x4a2b('0x1a')](){this['_sidebarView']['element']['remove'](),this['_sidebarView'][_0x4a2b('0x1a')]();}[_0x4a2b('0x10')](){const _0x4150d7=this[_0x4a2b('0x14')][_0x4a2b('0x3a')](0x0);if(_0x4150d7){const _0x9e567=this[_0x4a2b('0x14')][_0x4a2b('0x15')](_0x4150d7['id']);this[_0x4a2b('0x1e')][_0x4a2b('0x27')](_0x4150d7,_0x9e567);}}[_0x4a2b('0x30')](_0x5016d3,_0x1373cb){const _0xa91978=this[_0x4a2b('0x14')][_0x4a2b('0x3a')](_0x1373cb['id']),_0x181de7=this[_0x4a2b('0x14')][_0x4a2b('0x15')](_0xa91978['id']);this[_0x4a2b('0x1e')][_0x4a2b('0x27')](_0xa91978,_0x181de7);}[_0x4a2b('0xc')](_0xe29e7d,_0x3c21b7){this[_0x4a2b('0x14')][_0x4a2b('0x3a')](_0x3c21b7['id'])[_0x4a2b('0x36')](_0x3c21b7['name']);}['_handleDiffChange'](_0x141df1,_0x5726b6,_0x92e32d){const _0x40e7ea=this[_0x4a2b('0x14')][_0x4a2b('0x20')](_0x92e32d);_0x40e7ea[_0x4a2b('0xa')]>0x2?(this[_0x4a2b('0x2a')][_0x4a2b('0x23')](_0x40e7ea),this[_0x4a2b('0x2a')]['selectRevision'](null)):(this['_sidebarView'][_0x4a2b('0x23')]([]),this[_0x4a2b('0x2a')][_0x4a2b('0x25')](_0x40e7ea[0x0]));}['_createRevisionActions'](){const _0xa39b6e=this['editor'],_0x461d5f=y[_0x4a2b('0x6')],_0x3d5a73=_0xa39b6e['config'][_0x4a2b('0x1d')](_0x4a2b('0x2e'))||y[_0x4a2b('0x35')];if(_0x3d5a73[_0x4a2b('0xa')])return _0x3d5a73[_0x4a2b('0x1')](_0x33128b=>{const _0x1ffc70=_0x4a2b('0x37')==typeof _0x33128b?Object[_0x4a2b('0x2c')]({},_0x461d5f[_0x33128b]):_0x33128b;return _0x1ffc70[_0x4a2b('0x31')]=_0x1ffc70['action'][_0x4a2b('0x0')](this,_0xa39b6e),_0x1ffc70[_0x4a2b('0x13')]&&(_0x1ffc70[_0x4a2b('0x13')]=_0x1ffc70['isVisible'][_0x4a2b('0x0')](this,_0xa39b6e)),_0x1ffc70;});}}y[_0x4a2b('0x6')]={'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0xbc9a78},_0x29fdf2)=>{const _0x25ffac=_0xbc9a78[_0x4a2b('0x1d')](_0x13dc1e),_0x8b6371=_0x25ffac[_0x4a2b('0x1c')];let _0xe74b95=_0x25ffac[_0x4a2b('0x3')][_0x4a2b('0x29')],_0x24e9da=_0x29fdf2['id'];_0x8b6371['getIndex'](_0xe74b95)>_0x8b6371[_0x4a2b('0xe')](_0x24e9da)&&([_0xe74b95,_0x24e9da]=[_0x24e9da,_0xe74b95]),_0x25ffac[_0x4a2b('0x27')](_0xe74b95,_0x24e9da);},'isVisible':({plugins:_0x59f23e},_0x2adcee)=>{const _0x1c9b93=_0x59f23e[_0x4a2b('0x1d')](_0x13dc1e);return!(_0x1c9b93[_0x4a2b('0x1c')][_0x4a2b('0x20')](_0x1c9b93['diff'])[_0x4a2b('0xa')]>0x2)&&!_0x2adcee[_0x4a2b('0x19')];}},'restoreRevision':{'name':_0x4a2b('0x22'),'action':(_0x47ef11,{id:_0x49af90})=>{_0x47ef11[_0x4a2b('0x39')]['get']('revisionHistory')[_0x4a2b('0x5')](_0x49af90);},'isVisible':({plugins:_0x40a039},_0x386bf4)=>!!_0x40a039[_0x4a2b('0x1d')](_0x13dc1e)[_0x4a2b('0x1c')][_0x4a2b('0x2b')](_0x386bf4['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x5bc48a},{id:_0xce1f8c,revisionNameView:_0x5ddba4})=>{const _0x59b124=_0x5bc48a[_0x4a2b('0x1d')](_0x13dc1e),_0x4dbd84=_0x59b124[_0x4a2b('0x1c')][_0x4a2b('0x15')](_0xce1f8c);_0x59b124[_0x4a2b('0x27')](_0xce1f8c,_0x4dbd84),_0x5ddba4[_0x4a2b('0x21')](),_0x5ddba4[_0x4a2b('0x16')][_0x4a2b('0x11')]();}}},y[_0x4a2b('0x35')]=[_0x4a2b('0x38'),'restoreRevision',_0x4a2b('0x33')];
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3931=['ck-reset_all','ck-revision-history-sidebar__header','span','content','ck-revision-history-sidebar__header__label','Revision\x20history','setTemplate','div'];(function(_0x48005b,_0x393199){const _0xab307=function(_0x31df41){while(--_0x31df41){_0x48005b['push'](_0x48005b['shift']());}};_0xab307(++_0x393199);}(_0x3931,0x192));const _0xab30=function(_0x48005b,_0x393199){_0x48005b=_0x48005b-0x0;let _0xab307=_0x3931[_0x48005b];return _0xab307;};import{View as _0x29d512,IconView as _0x4bc6ac}from'ckeditor5/src/ui';import{getTranslation as _0x1a6909}from'../../utils/common-translations';import _0x4339af from'../../../theme/icons/revision-history.svg';import'../../../theme/revisionssidebar/revisionssidebarheader.css';export default class cs extends _0x29d512{constructor(_0x5ab3f8){super(_0x5ab3f8);const _0x3f0102=new _0x4bc6ac(_0x5ab3f8);_0x3f0102[_0xab30('0x1')]=_0x4339af,this[_0xab30('0x4')]({'tag':_0xab30('0x5'),'attributes':{'class':['ck',_0xab30('0x6'),_0xab30('0x7')]},'children':[_0x3f0102,{'tag':_0xab30('0x0'),'attributes':{'class':['ck',_0xab30('0x2')]},'children':[_0x1a6909(_0x5ab3f8,_0xab30('0x3'))]}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2725=['select','removeRevision','span','createCollection','uiLanguage','div','ck-revision-history-sidebar__time-period__revisions','_revisionActions','locale','revisionViews','ck-revision-history-sidebar__time-period','startDate','delegate','remove'];(function(_0x353c08,_0x2725fa){const _0x270977=function(_0x2e773e){while(--_0x2e773e){_0x353c08['push'](_0x353c08['shift']());}};_0x270977(++_0x2725fa);}(_0x2725,0x143));const _0x2709=function(_0x353c08,_0x2725fa){_0x353c08=_0x353c08-0x0;let _0x270977=_0x2725[_0x353c08];return _0x270977;};import{View as _0x3fb196}from'ckeditor5/src/ui';import _0x253b09 from'../revision/revisionview';import{getDateTimePeriodInfo as _0x3cbaf4}from'./utils';import'../../../theme/revisionssidebar/revisionssidebartimeperiod.css';export default class pi extends _0x3fb196{constructor(_0x421fe1,_0x58a0f4,_0x301b25){super(_0x421fe1);const _0x2ddb90=_0x3cbaf4(_0x58a0f4,this['locale'][_0x2709('0x3')])['localizedPeriodName'];this[_0x2709('0xa')]=_0x58a0f4,this['_revisionActions']=_0x301b25,this[_0x2709('0x8')]=this[_0x2709('0x2')](),this[_0x2709('0x8')]['delegate'](_0x2709('0xd'))['to'](this),this[_0x2709('0x8')][_0x2709('0xb')]('setName')['to'](this),this['setTemplate']({'tag':_0x2709('0x4'),'attributes':{'class':['ck',_0x2709('0x9')]},'children':[{'tag':_0x2709('0x1'),'attributes':{'class':['ck','ck-revision-history-sidebar__time-period__label']},'children':[{'text':_0x2ddb90}]},{'tag':'div','attributes':{'class':['ck',_0x2709('0x5')]},'children':this[_0x2709('0x8')]}]});}['addRevision'](_0x20d8dd){const _0x41bf30=new _0x253b09(this[_0x2709('0x7')],_0x20d8dd,this[_0x2709('0x6')]);this['revisionViews']['add'](_0x41bf30);}[_0x2709('0x0')](_0x143d4a){const _0x43a5fb=this[_0x2709('0x8')]['find'](_0x2f7eb0=>_0x2f7eb0['id']===_0x143d4a['id']);this['revisionViews'][_0x2709('0xc')](_0x43a5fb);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4a04=['timePeriodViews','map','ck-rounded-corners','_addRevision','setName','ck-reset','highlight','addRevision','some','ck-revision-history-sidebar','revisionViews','removeRevision','unhighlight','createCollection','find','startDate','revisionSelected','remove','createdAt','get','render','isEnabled','div','select','_revisions','revisionSetName','_revisionActions','set','locale','deselect','fire','_getTimePeriodViewByStartDate','selectRevision','getTime','setTemplate','_removeRevision','highlightRevisions'];(function(_0x15621a,_0x4a043f){const _0x1a3a29=function(_0x1a7f2c){while(--_0x1a7f2c){_0x15621a['push'](_0x15621a['shift']());}};_0x1a3a29(++_0x4a043f);}(_0x4a04,0xbd));const _0x1a3a=function(_0x15621a,_0x4a043f){_0x15621a=_0x15621a-0x0;let _0x1a3a29=_0x4a04[_0x15621a];return _0x1a3a29;};import{View as _0x333b65}from'ckeditor5/src/ui';import _0x130ac6 from'./revisionssidebartimeperiodview';import _0x44fec1 from'./revisionssidebarheaderview';import{getDateTimePeriodInfo as _0x5cb022}from'./utils';import'../../../theme/revisionssidebar/revisionssidebar.css';export default class vi extends _0x333b65{constructor(_0x376eb1,_0x332bd3,_0x3daad7){super(_0x376eb1);const _0x3fb57d=this['bindTemplate'];this[_0x1a3a('0x21')]=this[_0x1a3a('0x9')](),this[_0x1a3a('0x21')]['delegate'](_0x1a3a('0x13'))['to'](this),this['timePeriodViews']['delegate'](_0x1a3a('0x0'))['to'](this),this['_revisions']=_0x332bd3,this['_revisionActions']=_0x3daad7,this['on'](_0x1a3a('0x13'),(_0x2cddf8,_0x24f8e6)=>{this[_0x1a3a('0x1a')](_0x1a3a('0xc'),_0x24f8e6);}),this['on'](_0x1a3a('0x0'),(_0x23237,_0x16e059)=>{this[_0x1a3a('0x1a')](_0x1a3a('0x15'),_0x16e059);}),this[_0x1a3a('0x17')](_0x1a3a('0x11'),!0x1),this[_0x1a3a('0x1e')]({'tag':_0x1a3a('0x12'),'attributes':{'class':['ck',_0x1a3a('0x1'),_0x1a3a('0x23'),_0x1a3a('0x5')]},'children':[new _0x44fec1(_0x376eb1),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x3fb57d['if'](_0x1a3a('0x11'),'ck-disabled',_0x52eb27=>!_0x52eb27)]},'children':this[_0x1a3a('0x21')]}]});}[_0x1a3a('0x10')](){super[_0x1a3a('0x10')]();for(const _0x505803 of this[_0x1a3a('0x14')])this[_0x1a3a('0x24')](_0x505803);this['_revisions']['on']('add',(_0x327b1f,_0x4bf462)=>{this['_addRevision'](_0x4bf462);}),this[_0x1a3a('0x14')]['on'](_0x1a3a('0xd'),(_0x405b26,_0x5ccbe1)=>{this['_removeRevision'](_0x5ccbe1);});}get['revisionViews'](){return this['timePeriodViews'][_0x1a3a('0x22')](_0x1a6930=>_0x1a6930[_0x1a3a('0x6')]['map'](_0x3fd4e9=>_0x3fd4e9))['flat']();}[_0x1a3a('0x1c')](_0x389d15){for(const _0x20fadd of this[_0x1a3a('0x6')])_0x389d15&&_0x389d15['id']===_0x20fadd['id']?_0x20fadd[_0x1a3a('0x13')]():_0x20fadd[_0x1a3a('0x19')]();}[_0x1a3a('0x20')](_0x59ad88){for(const _0x168963 of this[_0x1a3a('0x6')])_0x59ad88[_0x1a3a('0x4')](({id:_0x5155b5})=>_0x5155b5===_0x168963['id'])?_0x168963[_0x1a3a('0x2')]():_0x168963[_0x1a3a('0x8')]();}[_0x1a3a('0x24')](_0x325902){const _0x421976=_0x5cb022(_0x325902['createdAt'])[_0x1a3a('0xb')];let _0x3cb65d=this[_0x1a3a('0x21')][_0x1a3a('0xf')](0x0);_0x3cb65d&&_0x3cb65d['startDate'][_0x1a3a('0x1d')]()===_0x421976[_0x1a3a('0x1d')]()||(_0x3cb65d=new _0x130ac6(this[_0x1a3a('0x18')],_0x421976,this[_0x1a3a('0x16')]),this['timePeriodViews']['add'](_0x3cb65d)),_0x3cb65d[_0x1a3a('0x3')](_0x325902);}[_0x1a3a('0x1f')](_0x53393b){const _0x1da25b=_0x5cb022(_0x53393b[_0x1a3a('0xe')])['startDate'];this[_0x1a3a('0x1b')](_0x1da25b)[_0x1a3a('0x7')](_0x53393b);}[_0x1a3a('0x1b')](_0xc8c52d){return this[_0x1a3a('0x21')][_0x1a3a('0xa')](_0x2effda=>_0x2effda[_0x1a3a('0xb')]['getTime']()===_0xc8c52d['getTime']());}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2144=['hasSame','minus','year','toRelativeCalendar','monthLong','startOf','week','day','toJSDate','setLocale'];(function(_0x498d70,_0x214404){const _0x2c4ab1=function(_0x6735b4){while(--_0x6735b4){_0x498d70['push'](_0x498d70['shift']());}};_0x2c4ab1(++_0x214404);}(_0x2144,0x199));const _0x2c4a=function(_0x498d70,_0x214404){_0x498d70=_0x498d70-0x0;let _0x2c4ab1=_0x2144[_0x498d70];return _0x2c4ab1;};import{DateTime as _0x3e9d87}from'luxon';export function getDateTimePeriodInfo(_0x47e8fc,_0x57953c){_0x47e8fc=_0x3e9d87['fromJSDate'](_0x47e8fc)[_0x2c4a('0x0')](_0x57953c);const _0x297155=_0x3e9d87['local'](),_0x5c0e41=_0x297155[_0x2c4a('0x2')]({'days':0x1})[_0x2c4a('0x6')](_0x2c4a('0x8'));let _0x1bd293,_0x16633c;return _0x47e8fc[_0x2c4a('0x1')](_0x297155,_0x2c4a('0x8'))?(_0x1bd293=_0x47e8fc['startOf'](_0x2c4a('0x8'))[_0x2c4a('0x9')](),_0x16633c=_0x47e8fc['toRelativeCalendar']()):_0x47e8fc[_0x2c4a('0x1')](_0x5c0e41,'day')?(_0x1bd293=_0x5c0e41[_0x2c4a('0x9')](),_0x16633c=_0x47e8fc[_0x2c4a('0x4')]()):_0x47e8fc[_0x2c4a('0x1')](_0x297155,_0x2c4a('0x7'))?(_0x1bd293=_0x47e8fc[_0x2c4a('0x6')](_0x2c4a('0x7'))[_0x2c4a('0x9')](),_0x16633c=_0x47e8fc['weekdayLong']):_0x47e8fc['hasSame'](_0x297155,_0x2c4a('0x3'))?(_0x1bd293=_0x47e8fc[_0x2c4a('0x6')]('month')[_0x2c4a('0x9')](),_0x16633c=_0x47e8fc[_0x2c4a('0x5')]):(_0x1bd293=_0x47e8fc[_0x2c4a('0x6')]('year')[_0x2c4a('0x9')](),_0x16633c=_0x47e8fc[_0x2c4a('0x3')]),{'startDate':_0x1bd293,'localizedPeriodName':_0x16633c};}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2975=['author','ck-revision-change__','set','isSuggestion','name','_model','type','data','add','Removed\x20by','setTemplate','element','bindTemplate','ck-revision-change__label','focus'];(function(_0x179dac,_0x2975ee){const _0x5baeed=function(_0x5dcc2a){while(--_0x5dcc2a){_0x179dac['push'](_0x179dac['shift']());}};_0x5baeed(++_0x2975ee);}(_0x2975,0xc7));const _0x5bae=function(_0x179dac,_0x2975ee){_0x179dac=_0x179dac-0x0;let _0x5baeed=_0x2975[_0x179dac];return _0x5baeed;};import{View as _0x3d007c}from'ckeditor5/src/ui';import{getTranslation as _0x37ac91}from'../../utils/common-translations';export default class X extends _0x3d007c{constructor(_0x1e378c,_0x2e9dd1){super(_0x1e378c),this[_0x5bae('0x1')]=_0x2e9dd1;const _0x481891=this[_0x5bae('0x8')],_0xa558f0=_0x37ac91(_0x1e378c,_0x2e9dd1[_0x5bae('0x3')][_0x5bae('0xe')]?'Suggested\x20by':_0x5bae('0x4')==_0x2e9dd1[_0x5bae('0x2')]?'Added\x20by':_0x5bae('0x5'));this[_0x5bae('0xd')]('type',_0x2e9dd1[_0x5bae('0x2')]),this[_0x5bae('0x6')]({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x481891['to'](_0x5bae('0x2'),_0x5a5b5c=>_0x5bae('0xc')+_0x5a5b5c)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':[_0x5bae('0x9')]},'children':[{'text':_0xa558f0}]},{'text':'\x20'+_0x2e9dd1[_0x5bae('0xb')][_0x5bae('0x0')]}]}]});}['focus'](){this[_0x5bae('0x7')][_0x5bae('0xa')]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x28d0=['isEnabled','Total','Show\x20previous\x20change','ck-revision-history-ui__changes-navigation__navigation','backward','ck-revision-history-ui__changes-navigation__label','ck-revision-history-ui__changes-navigation','execute','NUMBER_OF_CHANGES','X_OF_Y_CHANGES','_statusText','Loading...','Show\x20next\x20change','bind','set','div','isReady','isForwardNavigationEnabled','isBackwardNavigationEnabled','setTemplate','No\x20changes','forward','ck-hidden','fire','ck-revision-history-ui','numberOfChanges','EDIT_X_OF_Y_REVISIONS','_isStatusLabelVisible','span','currentChangeNumber','isNavigationMode'];(function(_0x19ff17,_0x28d006){const _0x4b9b73=function(_0x2fc09e){while(--_0x2fc09e){_0x19ff17['push'](_0x19ff17['shift']());}};_0x4b9b73(++_0x28d006);}(_0x28d0,0xd1));const _0x4b9b=function(_0x19ff17,_0x28d006){_0x19ff17=_0x19ff17-0x0;let _0x4b9b73=_0x28d0[_0x19ff17];return _0x4b9b73;};import{View as _0x4c3e5f,ButtonView as _0x11bc73,ToolbarSeparatorView as _0x5d3ca3}from'ckeditor5/src/ui';import{getTranslation as _0x40a4c7}from'../../utils/common-translations';import _0x2f8ced from'../../../theme/icons/arrow-up.svg';import _0x399ce2 from'../../../theme/icons/arrow-down.svg';import'../../../theme/changesnavigation.css';export default class _i extends _0x4c3e5f{constructor(_0x3cbde5){super(_0x3cbde5);const _0x47e92c=this['bindTemplate'],_0x1be754=new _0x11bc73(_0x3cbde5),_0x2faef2=new _0x11bc73(_0x3cbde5);this[_0x4b9b('0x16')]('isNavigationMode',!0x1),this[_0x4b9b('0x16')](_0x4b9b('0x18'),!0x1),this[_0x4b9b('0x16')](_0x4b9b('0x6'),0x0),this[_0x4b9b('0x16')]('numberOfChanges',0x0),this[_0x4b9b('0x16')](_0x4b9b('0x19'),!0x1),this[_0x4b9b('0x16')](_0x4b9b('0x1a'),!0x1),this[_0x4b9b('0x15')](_0x4b9b('0x4'))['to'](this,_0x4b9b('0x18'),this,_0x4b9b('0x2'),(_0x40c01c,_0xc1072d)=>_0x40c01c&&_0xc1072d>0x0),this[_0x4b9b('0x15')](_0x4b9b('0x12'))['to'](this,_0x4b9b('0x18'),this,'currentChangeNumber',this,_0x4b9b('0x2'),this,_0x4b9b('0x7'),(_0x13344a,_0x14f463,_0x2983a0,_0xa10b89)=>{if(!_0x13344a)return _0x40a4c7(_0x3cbde5,_0x4b9b('0x13'));if(!_0x2983a0)return _0x40a4c7(_0x3cbde5,_0x4b9b('0x1c'));const _0x5b787f=_0x40a4c7(_0x3cbde5,_0x4b9b('0x10'),_0x2983a0);return _0xa10b89?_0x40a4c7(_0x3cbde5,_0x4b9b('0x11'),[_0x14f463+0x1,_0x2983a0]):_0x5b787f;}),_0x1be754[_0x4b9b('0x16')]({'label':_0x40a4c7(_0x3cbde5,_0x4b9b('0xa')),'tooltip':!0x0,'icon':_0x2f8ced}),_0x2faef2[_0x4b9b('0x16')]({'label':_0x40a4c7(_0x3cbde5,_0x4b9b('0x14')),'tooltip':!0x0,'icon':_0x399ce2}),_0x1be754[_0x4b9b('0x15')](_0x4b9b('0x8'))['to'](this,_0x4b9b('0x1a')),_0x2faef2[_0x4b9b('0x15')](_0x4b9b('0x8'))['to'](this,_0x4b9b('0x19')),_0x1be754['on']('execute',()=>this[_0x4b9b('0x0')]('execute',_0x4b9b('0xc'))),_0x2faef2['on'](_0x4b9b('0xf'),()=>this['fire'](_0x4b9b('0xf'),_0x4b9b('0x1d'))),this[_0x4b9b('0x1b')]({'tag':_0x4b9b('0x17'),'attributes':{'class':['ck',_0x4b9b('0x1'),_0x4b9b('0xe')]},'children':[{'tag':_0x4b9b('0x5'),'attributes':{'class':['ck-revision-history-ui__changes-navigation__wrapper']},'children':[{'tag':'span','attributes':{'class':[_0x4b9b('0xd'),_0x47e92c['if'](_0x4b9b('0x4'),_0x4b9b('0x1e'),_0x2fb1ad=>!_0x2fb1ad)]},'children':[{'text':_0x47e92c['to'](_0x4b9b('0x7'),_0x212a0c=>_0x212a0c?_0x40a4c7(_0x3cbde5,_0x4b9b('0x3'))+':\x20':_0x40a4c7(_0x3cbde5,_0x4b9b('0x9'))+':\x20')}]},{'text':_0x47e92c['to'](_0x4b9b('0x12'))}]},new _0x5d3ca3(),{'tag':_0x4b9b('0x17'),'attributes':{'class':[_0x4b9b('0xb')]},'children':[_0x1be754,_0x2faef2]}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xbef3=['change','addClass','hide','roots','editor','show','editing','document','ck-editor__editable__loading-overlay','pluginName','removeClass','view'];(function(_0x2de765,_0xbef328){const _0x1d607a=function(_0x257eb6){while(--_0x257eb6){_0x2de765['push'](_0x2de765['shift']());}};_0x1d607a(++_0xbef328);}(_0xbef3,0x124));const _0x1d60=function(_0x2de765,_0xbef328){_0x2de765=_0x2de765-0x0;let _0x1d607a=_0xbef3[_0x2de765];return _0x1d607a;};import{Plugin as _0x4bfd08}from'ckeditor5/src/core';import'../../../theme/revisionviewerloadingoverlay.css';export default class ee extends _0x4bfd08{static get[_0x1d60('0x5')](){return'RevisionViewerLoadingOverlay';}[_0x1d60('0x1')](){const _0x41bf4d=this[_0x1d60('0x0')][_0x1d60('0x2')][_0x1d60('0x7')];_0x41bf4d[_0x1d60('0x8')](_0x5c12f0=>{for(const _0x3b64bd of _0x41bf4d[_0x1d60('0x3')]['roots'])_0x5c12f0[_0x1d60('0x9')](_0x1d60('0x4'),_0x3b64bd);});}[_0x1d60('0xa')](){const _0x38fef1=this[_0x1d60('0x0')][_0x1d60('0x2')][_0x1d60('0x7')];_0x38fef1[_0x1d60('0x8')](_0x26860a=>{for(const _0xd11fa4 of _0x38fef1['document'][_0x1d60('0xb')])_0x26860a[_0x1d60('0x6')](_0x1d60('0x4'),_0xd11fa4);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x171d=['commands','init','hide','bind','add','exitToEditing','isBackwardNavigationEnabled','listenTo','currentChangeNumber','showNextChange','changesNavigation','isEnabled','show','restoreRevision','numberOfChanges','showPreviousChange','set','forward','requires','pluginName','componentFactory','isNavigationMode','isReady','plugins','Back\x20to\x20editing','RevisionViewerUI','get','execute','closeRevisionViewerCallback'];(function(_0x3c4791,_0x171dad){const _0x511321=function(_0x37aa55){while(--_0x37aa55){_0x3c4791['push'](_0x3c4791['shift']());}};_0x511321(++_0x171dad);}(_0x171d,0x161));const _0x5113=function(_0x3c4791,_0x171dad){_0x3c4791=_0x3c4791-0x0;let _0x511321=_0x171d[_0x3c4791];return _0x511321;};import{Plugin as _0x377cb2}from'ckeditor5/src/core';import{ButtonView as _0x5a77cc}from'ckeditor5/src/ui';import _0x3446d0 from'./changesnavigationview';import _0xe55b0e from'./../../revisionviewer';import _0x2c9443 from'./revisionviewerloadingoverlay';import{getTranslation as _0x28503f}from'../../utils/common-translations';import _0x5a1473 from'@ckeditor/ckeditor5-undo/theme/icons/undo.svg';import'../../../theme/revisionviewer.css';export default class m extends _0x377cb2{static get[_0x5113('0xe')](){return _0x5113('0x14');}static get[_0x5113('0xd')](){return[_0xe55b0e,_0x2c9443];}[_0x5113('0x19')](){const _0x326377=this['editor'],_0x4c5b2e=_0x326377['plugins'][_0x5113('0x15')](_0xe55b0e),_0x1e6173=_0x326377[_0x5113('0x12')][_0x5113('0x15')](_0x2c9443);_0x326377['ui'][_0x5113('0xf')][_0x5113('0x1c')](_0x5113('0x0'),_0x2da0dc=>{const _0xd5d78a=new _0x5a77cc(_0x2da0dc);return _0xd5d78a[_0x5113('0xb')]({'label':_0x28503f(_0x2da0dc,_0x5113('0x13')),'icon':_0x5a1473,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this[_0x5113('0x2')](_0xd5d78a,_0x5113('0x16'),()=>{_0x326377['config'][_0x5113('0x15')]('revisionHistory')[_0x5113('0x17')]();}),_0xd5d78a;}),_0x326377['ui']['componentFactory']['add'](_0x5113('0x8'),_0x2f272c=>{const _0x17ccc8=new _0x5a77cc(_0x2f272c);return _0x17ccc8[_0x5113('0xb')]({'label':_0x28503f(_0x2f272c,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x17ccc8[_0x5113('0x1b')]('isEnabled')['to'](_0x326377[_0x5113('0x18')][_0x5113('0x15')](_0x5113('0x8'))),this[_0x5113('0x2')](_0x17ccc8,_0x5113('0x16'),()=>_0x326377['execute'](_0x5113('0x8'))),_0x17ccc8;}),_0x326377['ui'][_0x5113('0xf')][_0x5113('0x1c')](_0x5113('0x5'),_0x1adb79=>{const _0x417d66=new _0x3446d0(_0x1adb79),_0x96a3ae=_0x326377['commands'][_0x5113('0x15')](_0x5113('0xa')),_0x4b4272=_0x326377[_0x5113('0x18')][_0x5113('0x15')]('showNextChange');return _0x417d66[_0x5113('0x1b')](_0x5113('0x1'))['to'](_0x96a3ae,_0x5113('0x6')),_0x417d66[_0x5113('0x1b')]('isForwardNavigationEnabled')['to'](_0x4b4272,'isEnabled'),_0x417d66[_0x5113('0x1b')](_0x5113('0x11'),_0x5113('0x3'),_0x5113('0x9'),_0x5113('0x10'))['to'](_0x4c5b2e),this['listenTo'](_0x417d66,'execute',(_0x19a3d7,_0x414473)=>{_0x326377[_0x5113('0x16')](_0x5113('0xc')===_0x414473?_0x5113('0x4'):_0x5113('0xa'));}),_0x417d66;}),_0x1e6173[_0x5113('0x7')](),_0x4c5b2e['on']('change:isReady',(_0x34f043,_0x1a7629,_0xf24f9a)=>{_0xf24f9a?_0x1e6173[_0x5113('0x1a')]():_0x1e6173[_0x5113('0x7')]();});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export function getTranslation(
|
|
23
|
+
export function getTranslation(_0x4297a4,_0x56ac07,_0x5de4a8){const t=_0x4297a4['t'];switch(_0x56ac07){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'},_0x5de4a8);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x5de4a8);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'});}}
|