@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20230724.0 → 0.0.0-nightly-20230725.1
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/README.md +0 -1
- package/build/revision-history.js +1 -1
- package/package.json +6 -6
- package/src/augmentation.d.ts +4 -0
- package/src/changeitem.d.ts +2 -1
- 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/index.d.ts +4 -0
- package/src/revision.d.ts +2 -2
- package/src/revision.js +1 -1
- package/src/revisiondiff.d.ts +4 -0
- package/src/revisiondiff.js +1 -1
- package/src/revisionhistory.d.ts +4 -0
- package/src/revisionhistory.js +1 -1
- package/src/revisionhistoryadapter.d.ts +4 -0
- package/src/revisionhistoryconfig.d.ts +2 -2
- package/src/revisionsrepository.d.ts +4 -0
- package/src/revisionsrepository.js +1 -1
- package/src/revisiontracker.d.ts +4 -0
- package/src/revisiontracker.js +1 -1
- package/src/revisionviewer.d.ts +4 -0
- package/src/revisionviewer.js +1 -1
- package/src/ui/revision/createrevisionactionsdropdown.d.ts +2 -1
- package/src/ui/revision/createrevisionactionsdropdown.js +1 -1
- package/src/ui/revision/revisionauthorview.d.ts +2 -1
- package/src/ui/revision/revisionauthorview.js +1 -1
- package/src/ui/revision/revisionnameview.d.ts +2 -1
- package/src/ui/revision/revisionnameview.js +1 -1
- package/src/ui/revision/revisionview.d.ts +4 -0
- package/src/ui/revision/revisionview.js +1 -1
- package/src/ui/revision/subrevisioncollapserview.d.ts +4 -0
- package/src/ui/revision/subrevisioncollapserview.js +1 -1
- package/src/ui/revision/subrevisionview.d.ts +4 -0
- package/src/ui/revision/subrevisionview.js +1 -1
- package/src/ui/revision/utils.d.ts +2 -1
- package/src/ui/revision/utils.js +1 -1
- package/src/ui/revisionhistory/revisionhistorysaverevisionformview.d.ts +2 -1
- package/src/ui/revisionhistory/revisionhistorysaverevisionformview.js +1 -1
- package/src/ui/revisionhistory/revisionhistoryui.d.ts +4 -0
- package/src/ui/revisionhistory/revisionhistoryui.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebar.d.ts +4 -0
- package/src/ui/revisionssidebar/revisionssidebar.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebarheaderview.d.ts +2 -1
- package/src/ui/revisionssidebar/revisionssidebarheaderview.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebartimeperiodview.d.ts +4 -0
- package/src/ui/revisionssidebar/revisionssidebartimeperiodview.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebarview.d.ts +4 -0
- package/src/ui/revisionssidebar/revisionssidebarview.js +1 -1
- package/src/ui/revisionssidebar/utils.d.ts +2 -1
- package/src/ui/revisionssidebar/utils.js +1 -1
- package/src/ui/revisionviewer/changedetailsview.d.ts +4 -0
- package/src/ui/revisionviewer/changedetailsview.js +1 -1
- package/src/ui/revisionviewer/changesnavigationview.d.ts +4 -0
- package/src/ui/revisionviewer/changesnavigationview.js +1 -1
- package/src/ui/revisionviewer/revisionviewerloadingoverlay.d.ts +4 -0
- package/src/ui/revisionviewer/revisionviewerloadingoverlay.js +1 -1
- package/src/ui/revisionviewer/revisionviewerui.d.ts +4 -0
- package/src/ui/revisionviewer/revisionviewerui.js +1 -1
- package/src/utils/common-translations.d.ts +4 -0
- package/src/utils/common-translations.js +1 -1
package/src/ui/revision/utils.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x1251=['toLocaleTimeString','numeric','toLocaleDateString'];(function(_0x173fd1,_0x1251ab){var _0x4d10cc=function(_0x11c609){while(--_0x11c609){_0x173fd1['push'](_0x173fd1['shift']());}};_0x4d10cc(++_0x1251ab);}(_0x1251,0xc5));var _0x4d10=function(_0x173fd1,_0x1251ab){_0x173fd1=_0x173fd1-0x0;var _0x4d10cc=_0x1251[_0x173fd1];return _0x4d10cc;};export function dateToPrettyFormat(_0x3e6359,_0x32530b){return _0x32530b[_0x4d10('0x0')](_0x3e6359,{'month':'long','day':_0x4d10('0x2')})+',\x20'+_0x32530b[_0x4d10('0x1')](_0x3e6359,{'hour':_0x4d10('0x2'),'minute':_0x4d10('0x2')});}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @
|
|
2
|
+
* @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
3
4
|
*/
|
|
4
5
|
import { ButtonView, LabeledFieldView, View, type InputTextView } from 'ckeditor5/src/ui';
|
|
5
6
|
import { type BaseEvent, FocusTracker, KeystrokeHandler, type Locale } from 'ckeditor5/src/utils';
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x14b9=['revisionNameInputView','render','cancel','reset','delegate','add','keystrokes','listenTo','forEach','check','set','label','element','setTemplate','value','locale','ck-revision-history-save-revision-form','_focusCycler','focus','input','_createButton','220','_createRevisionNameInput','cancelButtonView','revisionName','arrowdown','extendTemplate','submit','saveButtonView','ck-responsive-form','fieldView','_focusables','form','Name\x20of\x20the\x20revision\x20(optional)','execute','Cancel','trim','tab','type','focusTracker','ck-button-cancel','revisionNameInputValue'];(function(_0x219eac,_0x14b9ca){const _0x58ec8f=function(_0x2ea82f){while(--_0x2ea82f){_0x219eac['push'](_0x219eac['shift']());}};_0x58ec8f(++_0x14b9ca);}(_0x14b9,0xf1));const _0x58ec=function(_0x219eac,_0x14b9ca){_0x219eac=_0x219eac-0x0;let _0x58ec8f=_0x14b9[_0x219eac];return _0x58ec8f;};import{icons as _0x293b42}from'ckeditor5/src/core';import{ButtonView as _0xa0ff91,FocusCycler as _0x1b0b3b,LabeledFieldView as _0x51315c,View as _0x3839bd,ViewCollection as _0x5172e8,createLabeledInputText as _0x460ab8,injectCssTransitionDisabler as _0x244c82,submitHandler as _0x1afdf9}from'ckeditor5/src/ui';import{FocusTracker as _0x1242cc,KeystrokeHandler as _0x522861}from'ckeditor5/src/utils';import{getTranslation as _0x5bfd77}from'../../utils/common-translations';import'../../../theme/revisionhistorysaverevisionform.css';import'@ckeditor/ckeditor5-ui/theme/components/responsive-form/responsiveform.css';export default class Nt extends _0x3839bd{constructor(_0x24920a){super(_0x24920a),this[_0x58ec('0x8')]=new _0x1242cc(),this['keystrokes']=new _0x522861(),this[_0x58ec('0x15')](_0x58ec('0xa'),''),this[_0x58ec('0xb')]=this[_0x58ec('0x21')](),this[_0x58ec('0x27')]=this[_0x58ec('0x1f')](_0x5bfd77(_0x24920a,'Save'),_0x293b42[_0x58ec('0x14')],'ck-button-save'),this[_0x58ec('0x27')][_0x58ec('0x7')]=_0x58ec('0x26'),this[_0x58ec('0x22')]=this[_0x58ec('0x1f')](_0x5bfd77(_0x24920a,_0x58ec('0x4')),_0x293b42[_0x58ec('0xd')],_0x58ec('0x9'),_0x58ec('0xd')),this[_0x58ec('0x0')]=new _0x5172e8(),this['_focusCycler']=new _0x1b0b3b({'focusables':this[_0x58ec('0x0')],'focusTracker':this[_0x58ec('0x8')],'keystrokeHandler':this[_0x58ec('0x11')],'actions':{'focusPrevious':'shift\x20+\x20tab','focusNext':_0x58ec('0x6')}}),this[_0x58ec('0x18')]({'tag':_0x58ec('0x1'),'attributes':{'class':['ck',_0x58ec('0x1b'),_0x58ec('0x28')],'tabindex':'-1'},'children':[this[_0x58ec('0xb')],this[_0x58ec('0x27')],this[_0x58ec('0x22')]]}),_0x244c82(this);}[_0x58ec('0xc')](){super[_0x58ec('0xc')](),_0x1afdf9({'view':this}),([this['revisionNameInputView'],this['saveButtonView'],this['cancelButtonView']][_0x58ec('0x13')](_0x47a4a5=>{this[_0x58ec('0x0')][_0x58ec('0x10')](_0x47a4a5),this[_0x58ec('0x8')][_0x58ec('0x10')](_0x47a4a5['element']);}),this[_0x58ec('0x11')][_0x58ec('0x12')](this[_0x58ec('0x17')]));const _0x489d7d=_0x50182a=>_0x50182a['stopPropagation']();this['keystrokes'][_0x58ec('0x15')]('arrowright',_0x489d7d),this[_0x58ec('0x11')][_0x58ec('0x15')]('arrowleft',_0x489d7d),this[_0x58ec('0x11')][_0x58ec('0x15')]('arrowup',_0x489d7d),this[_0x58ec('0x11')][_0x58ec('0x15')](_0x58ec('0x24'),_0x489d7d);}[_0x58ec('0x1d')](){this[_0x58ec('0x1c')]['focusFirst']();}get[_0x58ec('0x23')](){return this[_0x58ec('0xb')]['fieldView'][_0x58ec('0x17')]['value'][_0x58ec('0x5')]();}set[_0x58ec('0x23')](_0x19dbf4){this[_0x58ec('0xb')][_0x58ec('0x29')][_0x58ec('0x17')][_0x58ec('0x19')]=_0x19dbf4['trim']();}[_0x58ec('0xe')](){this[_0x58ec('0xb')][_0x58ec('0x29')][_0x58ec('0x17')][_0x58ec('0x19')]='';}[_0x58ec('0x21')](){const _0x353bcf=new _0x51315c(this['locale'],_0x460ab8),_0x3df9b5=_0x353bcf['fieldView'];return _0x3df9b5[_0x58ec('0x25')]({'attributes':{'maxlength':_0x58ec('0x20')}}),_0x353bcf[_0x58ec('0x16')]=_0x5bfd77(this['locale'],_0x58ec('0x2')),_0x3df9b5['on'](_0x58ec('0x1e'),()=>{this['revisionNameInputValue']=_0x3df9b5[_0x58ec('0x17')]['value'][_0x58ec('0x5')]();}),_0x353bcf;}[_0x58ec('0x1f')](_0x7ba658,_0x4c9819,_0x598698,_0x42c4fe){const _0x7fe31=new _0xa0ff91(this[_0x58ec('0x1a')]);return _0x7fe31[_0x58ec('0x15')]({'label':_0x7ba658,'icon':_0x4c9819,'tooltip':!0x0}),_0x7fe31[_0x58ec('0x25')]({'attributes':{'class':_0x598698}}),_0x42c4fe&&_0x7fe31[_0x58ec('0xf')](_0x58ec('0x3'))['to'](this,_0x42c4fe),_0x7fe31;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3375=['execute','requires','showRevisionViewerCallback','plugins','Revision\x20history','isReadOnly','length','add','pluginName','RevisionHistoryUI','bind','config','reset','isEnabled','focus','set','remove','revisionName','saveButtonView','submit','editor','children','saveRevision','RevisionTracker','componentFactory','init','get','view','revisionHistory','panelView','change:isOpen','isOpen','items','Save\x20current\x20revision','isReady'];(function(_0x9d40bb,_0x33755d){const _0x4b6a05=function(_0xef2498){while(--_0xef2498){_0x9d40bb['push'](_0x9d40bb['shift']());}};_0x4b6a05(++_0x33755d);}(_0x3375,0x8d));const _0x4b6a=function(_0x9d40bb,_0x33755d){_0x9d40bb=_0x9d40bb-0x0;let _0x4b6a05=_0x3375[_0x9d40bb];return _0x4b6a05;};import{Plugin as _0x5c1df4}from'ckeditor5/src/core';import{ListView as _0x555ae5,ListItemView as _0x47c087,ButtonView as _0x313af7,createDropdown as _0x2ce350}from'ckeditor5/src/ui';import _0x24f474 from'../../revisiontracker';import _0x10ccf7 from'./revisionhistorysaverevisionformview';import _0x2e3e1f from'../../../theme/icons/revision-history.svg';import{getTranslation as _0x59eb8b}from'../../utils/common-translations';export default class u extends _0x5c1df4{static get[_0x4b6a('0x7')](){return _0x4b6a('0x8');}static get[_0x4b6a('0x0')](){return[_0x24f474];}[_0x4b6a('0x18')](){const _0x1f99c3=this[_0x4b6a('0x13')],_0x5f2b37=_0x1f99c3[_0x4b6a('0x2')][_0x4b6a('0x19')](_0x4b6a('0x16'));_0x1f99c3['ui'][_0x4b6a('0x17')][_0x4b6a('0x6')]('revisionHistory',_0x17bedd=>{const _0xb9e882=_0x2ce350(_0x17bedd),_0x4334b2=_0xb9e882[_0x4b6a('0x1c')][_0x4b6a('0x14')],_0x11e7cc=new _0x555ae5(_0x17bedd),_0x30e32a=new _0x47c087(_0x17bedd),_0x467ee7=new _0x313af7(_0x17bedd),_0x9b9a50=new _0x47c087(_0x17bedd),_0x568d09=new _0x313af7(_0x17bedd),_0x5cbed8=new _0x10ccf7(_0x17bedd);function _0xdab216(){_0x4334b2['length']&&_0x4334b2[_0x4b6a('0xf')](0x0),_0x4334b2[_0x4b6a('0x6')](_0x11e7cc);}function _0x5510bb(){_0xb9e882[_0x4b6a('0x1e')]=!0x1,_0x1f99c3['editing'][_0x4b6a('0x1a')][_0x4b6a('0xd')]();}return _0xb9e882[_0x4b6a('0x9')](_0x4b6a('0xc'))['to'](_0x5f2b37,'isReady',_0x5f2b37,_0x4b6a('0xc'),_0x1f99c3,_0x4b6a('0x4'),(_0xba3329,_0x4f6020,_0x50198f)=>_0xba3329&&_0x4f6020&&!_0x50198f),_0xb9e882['buttonView'][_0x4b6a('0xe')]({'icon':_0x2e3e1f,'label':_0x59eb8b(_0x17bedd,_0x4b6a('0x3')),'tooltip':!0x0}),_0x467ee7[_0x4b6a('0xe')]({'label':_0x59eb8b(_0x17bedd,_0x4b6a('0x20')),'withText':!0x0}),_0x467ee7['bind'](_0x4b6a('0xc'))['to'](_0x5f2b37,_0x4b6a('0x21'),_0x5f2b37,_0x4b6a('0xc'),_0x1f99c3,_0x4b6a('0x4'),(_0x506f98,_0x2b4437,_0x398ff2)=>_0x506f98&&_0x2b4437&&!_0x398ff2),_0x467ee7['on']('execute',()=>function(){_0x4334b2[_0x4b6a('0x5')]&&_0x4334b2['remove'](0x0),(_0x5cbed8[_0x4b6a('0xb')](),_0x4334b2[_0x4b6a('0x6')](_0x5cbed8),_0x5cbed8[_0x4b6a('0xd')]());}()),_0x568d09[_0x4b6a('0xe')]({'label':_0x59eb8b(_0x17bedd,'Open\x20revision\x20history'),'withText':!0x0}),_0x568d09[_0x4b6a('0x9')](_0x4b6a('0xc'))['to'](_0x5f2b37,_0x4b6a('0x21'),_0x1f99c3,_0x4b6a('0x4'),(_0x1b325e,_0xf2fcad)=>_0x1b325e&&!_0xf2fcad),_0x568d09['on'](_0x4b6a('0x22'),()=>{_0x1f99c3[_0x4b6a('0xa')]['get'](_0x4b6a('0x1b'))[_0x4b6a('0x1')](),_0x5510bb();}),_0x30e32a[_0x4b6a('0x14')]['add'](_0x467ee7),_0x9b9a50[_0x4b6a('0x14')][_0x4b6a('0x6')](_0x568d09),_0x11e7cc[_0x4b6a('0x1f')]['addMany']([_0x30e32a,_0x9b9a50]),_0xb9e882['on'](_0x4b6a('0x1d'),()=>_0xdab216()),_0x5cbed8[_0x4b6a('0x11')]['bind'](_0x4b6a('0xc'))['to'](_0x5f2b37,_0x4b6a('0x21'),_0x5f2b37,_0x4b6a('0xc'),_0x1f99c3,_0x4b6a('0x4'),(_0x2e77cb,_0x160588,_0x39210b)=>_0x2e77cb&&_0x160588&&!_0x39210b),_0x5cbed8['on'](_0x4b6a('0x12'),()=>(_0x1f99c3['plugins']['get'](_0x24f474)[_0x4b6a('0x15')]({'name':_0x5cbed8[_0x4b6a('0x10')]}),void _0x5510bb())),_0x5cbed8['on']('cancel',()=>_0xdab216()),_0x5cbed8['render'](),_0xdab216(),_0xb9e882;});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x522b=['revisionSetName','getRevision','revisionSelected','compareAgainstSelected','isEnabled','compare','Compare\x20against\x20selected','action','repository','revisionHistory.viewerSidebarContainer','isVisible','pluginName','element','config','isSelected','revisionViews','setName','bind','render','defaultRevisionActions','ready','map','getRevisionsInDiff','restoreRevision','plugins','Name\x20this\x20revision','_sidebarView','revisionHistory','isReady','_handleRevisionSetName','length','string','getEarlierVisibleRevision','_revisions','destroy','get','_revisionsRepository','RevisionsSidebar','_revisionViewer','_createRevisionActions','getIndex','remove','timePeriodViews','nameRevision','focus','revisionHistory.revisionActions','listenTo','availableRevisionActions','editor','selectRevision','_handleRevisionSelected','_handleDiffChange','diff','init','getLaterVisibleRevision','add','requires','highlightRevisions','change:diff','fieldView'];(function(_0x2f54f1,_0x522b2b){const _0x3511f5=function(_0x370110){while(--_0x370110){_0x2f54f1['push'](_0x2f54f1['shift']());}};_0x3511f5(++_0x522b2b);}(_0x522b,0x12b));const _0x3511=function(_0x2f54f1,_0x522b2b){_0x2f54f1=_0x2f54f1-0x0;let _0x3511f5=_0x522b[_0x2f54f1];return _0x3511f5;};import{Plugin as _0xbb8b03}from'ckeditor5/src/core';import _0x139ce9 from'./revisionssidebarview';import _0x5968c4 from'../../revisionviewer';export default class w extends _0xbb8b03{static get[_0x3511('0xc')](){return _0x3511('0x26');}static get[_0x3511('0x39')](){return[_0x5968c4];}constructor(_0x58aadf){super(_0x58aadf),this['_revisionViewer']=_0x58aadf[_0x3511('0x19')][_0x3511('0x24')](_0x5968c4),this['_revisionsRepository']=this[_0x3511('0x27')][_0x3511('0x9')],this[_0x3511('0x1b')]=null;}[_0x3511('0x36')](){const _0x48ff8f=this[_0x3511('0x25')][_0x3511('0x22')],_0x336732=this[_0x3511('0x28')](),_0x11caf1=this[_0x3511('0x31')][_0x3511('0xe')][_0x3511('0x24')](_0x3511('0xa'));this[_0x3511('0x1b')]=new _0x139ce9(this[_0x3511('0x31')]['locale'],_0x48ff8f,_0x336732),this[_0x3511('0x1b')]['on'](_0x3511('0x3'),this[_0x3511('0x33')]['bind'](this)),this['_sidebarView']['on'](_0x3511('0x1'),this['_handleRevisionSetName']['bind'](this)),this[_0x3511('0x1b')]['bind'](_0x3511('0x5'))['to'](this[_0x3511('0x27')]),this['_sidebarView'][_0x3511('0x2b')]['on'](_0x3511('0x38'),(_0x33f168,_0x1cfdb1)=>{_0x1cfdb1[_0x3511('0x10')]['on'](_0x3511('0x38'),(_0x256c29,_0x1de0ab)=>{_0x1de0ab[_0x3511('0x12')](_0x3511('0x5'),_0x3511('0x1d'))['to'](this[_0x3511('0x27')]);});}),this[_0x3511('0x1b')][_0x3511('0x13')](),this[_0x3511('0x2f')](this[_0x3511('0x31')]['data'],_0x3511('0x15'),this['_handleEditorDataReady'][_0x3511('0x12')](this)),this[_0x3511('0x2f')](this['_revisionViewer'],_0x3511('0x3b'),this[_0x3511('0x34')][_0x3511('0x12')](this)),_0x11caf1['appendChild'](this[_0x3511('0x1b')]['element']);}[_0x3511('0x23')](){this[_0x3511('0x1b')][_0x3511('0xd')][_0x3511('0x2a')](),this[_0x3511('0x1b')][_0x3511('0x23')]();}['_handleEditorDataReady'](){const _0x39739c=this[_0x3511('0x25')]['getRevision'](0x0);if(_0x39739c){const _0x3439f6=this[_0x3511('0x25')]['getEarlierVisibleRevision'](_0x39739c['id']);this[_0x3511('0x27')]['compare'](_0x39739c,_0x3439f6);}}['_handleRevisionSelected'](_0x4ef8c5,_0x408fdb){const _0x2722af=this[_0x3511('0x25')]['getRevision'](_0x408fdb['id']),_0x245e64=this['_revisionsRepository'][_0x3511('0x21')](_0x2722af['id']);this[_0x3511('0x27')][_0x3511('0x6')](_0x2722af,_0x245e64);}[_0x3511('0x1e')](_0x5d42a2,_0x4710bb){this[_0x3511('0x25')][_0x3511('0x2')](_0x4710bb['id'])[_0x3511('0x11')](_0x4710bb['name']);}['_handleDiffChange'](_0x1da9d7,_0xf5ea14,_0x454c8b){const _0x5a9a8a=this['_revisionsRepository'][_0x3511('0x17')](_0x454c8b);_0x5a9a8a[_0x3511('0x1f')]>0x2?(this[_0x3511('0x1b')][_0x3511('0x3a')](_0x5a9a8a),this[_0x3511('0x1b')][_0x3511('0x32')](null)):(this['_sidebarView'][_0x3511('0x3a')]([]),this[_0x3511('0x1b')][_0x3511('0x32')](_0x5a9a8a[0x0]));}[_0x3511('0x28')](){const _0x33d123=this[_0x3511('0x31')],_0x1bc140=w[_0x3511('0x30')],_0x4fc155=_0x33d123['config'][_0x3511('0x24')](_0x3511('0x2e'))||w[_0x3511('0x14')];if(_0x4fc155[_0x3511('0x1f')])return _0x4fc155[_0x3511('0x16')](_0x59513f=>{const _0x203088=_0x3511('0x20')==typeof _0x59513f?Object['assign']({},_0x1bc140[_0x59513f]):_0x59513f;return _0x203088[_0x3511('0x8')]=_0x203088['action'][_0x3511('0x12')](this,_0x33d123),_0x203088[_0x3511('0xb')]&&(_0x203088[_0x3511('0xb')]=_0x203088[_0x3511('0xb')][_0x3511('0x12')](this,_0x33d123)),_0x203088;});}}w['availableRevisionActions']={'compareAgainstSelected':{'name':_0x3511('0x7'),'action':({plugins:_0x10d373},_0x2d29d1)=>{const _0x31735a=_0x10d373[_0x3511('0x24')](_0x5968c4),_0x41c2dc=_0x31735a[_0x3511('0x9')];let _0x3c8641=_0x31735a['diff']['newRevisionId'],_0x1bd0b2=_0x2d29d1['id'];_0x41c2dc['getIndex'](_0x3c8641)>_0x41c2dc[_0x3511('0x29')](_0x1bd0b2)&&([_0x3c8641,_0x1bd0b2]=[_0x1bd0b2,_0x3c8641]),_0x31735a[_0x3511('0x6')](_0x3c8641,_0x1bd0b2);},'isVisible':({plugins:_0x89a0fb},_0x439705)=>{const _0x57a27e=_0x89a0fb[_0x3511('0x24')](_0x5968c4);return!(_0x57a27e['repository'][_0x3511('0x17')](_0x57a27e[_0x3511('0x35')])['length']>0x2)&&!_0x439705[_0x3511('0xf')];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x5320d5,{id:_0xd093fc})=>{_0x5320d5[_0x3511('0xe')]['get'](_0x3511('0x1c'))['restoreRevisionCallback'](_0xd093fc);},'isVisible':({plugins:_0x42ccbb},_0x4faed8)=>!!_0x42ccbb[_0x3511('0x24')](_0x5968c4)['repository'][_0x3511('0x37')](_0x4faed8['id'])},'nameRevision':{'name':_0x3511('0x1a'),'action':({plugins:_0x172c4f},{id:_0x45b99d,revisionNameView:_0x2efc9})=>{const _0x20605d=_0x172c4f[_0x3511('0x24')](_0x5968c4),_0x4cfd94=_0x20605d[_0x3511('0x9')][_0x3511('0x21')](_0x45b99d);_0x20605d['compare'](_0x45b99d,_0x4cfd94),_0x2efc9[_0x3511('0x2d')](),_0x2efc9[_0x3511('0x0')]['select']();}}},w[_0x3511('0x14')]=[_0x3511('0x4'),_0x3511('0x18'),_0x3511('0x2c')];
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @
|
|
2
|
+
* @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
3
4
|
*/
|
|
4
5
|
import '../../../theme/revisionssidebar/revisionssidebarheader.css';
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2f63=['div','Revision\x20history','ck-reset_all','ck-revision-history-sidebar__header__label','ck-revision-history-sidebar__header'];(function(_0x51d1ba,_0x2f6310){const _0x31ebfb=function(_0x5615e2){while(--_0x5615e2){_0x51d1ba['push'](_0x51d1ba['shift']());}};_0x31ebfb(++_0x2f6310);}(_0x2f63,0x1bc));const _0x31eb=function(_0x51d1ba,_0x2f6310){_0x51d1ba=_0x51d1ba-0x0;let _0x31ebfb=_0x2f63[_0x51d1ba];return _0x31ebfb;};import{View as _0x524a11,IconView as _0x545da8}from'ckeditor5/src/ui';import{getTranslation as _0x2f35e3}from'../../utils/common-translations';import _0x3f6c48 from'../../../theme/icons/revision-history.svg';import'../../../theme/revisionssidebar/revisionssidebarheader.css';export default class ts extends _0x524a11{constructor(_0x536af0){super(_0x536af0);const _0x33a7ac=new _0x545da8();_0x33a7ac['content']=_0x3f6c48,this['setTemplate']({'tag':_0x31eb('0x1'),'attributes':{'class':['ck',_0x31eb('0x3'),_0x31eb('0x0')]},'children':[_0x33a7ac,{'tag':'span','attributes':{'class':['ck',_0x31eb('0x4')]},'children':[_0x2f35e3(_0x536af0,_0x31eb('0x2'))]}]});}}
|
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
+
*/
|
|
1
5
|
/**
|
|
2
6
|
* @module revision-history/ui/revisionsidebar/revisionsidebartimeperiodview
|
|
3
7
|
*/
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x39f4=['addRevision','ck-revision-history-sidebar__time-period__revisions','add','setTemplate','delegate','uiLanguage','select','createCollection','locale','revisionViews','span','localizedPeriodName','find','div','ck-revision-history-sidebar__time-period'];(function(_0xa2ce84,_0x39f4f4){const _0x543a15=function(_0x46261b){while(--_0x46261b){_0xa2ce84['push'](_0xa2ce84['shift']());}};_0x543a15(++_0x39f4f4);}(_0x39f4,0x8e));const _0x543a=function(_0xa2ce84,_0x39f4f4){_0xa2ce84=_0xa2ce84-0x0;let _0x543a15=_0x39f4[_0xa2ce84];return _0x543a15;};import{View as _0x50beea}from'ckeditor5/src/ui';import _0x24b6a2 from'../revision/revisionview';import{getDateTimePeriodInfo as _0x2e68a1}from'./utils';import'../../../theme/revisionssidebar/revisionssidebartimeperiod.css';export default class _i extends _0x50beea{constructor(_0x457ecf,_0x5c77f2,_0x1cff06){super(_0x457ecf);const _0x5be445=_0x2e68a1(_0x5c77f2,this[_0x543a('0x1')][_0x543a('0xd')])[_0x543a('0x4')];this['startDate']=_0x5c77f2,this['revisionViews']=this[_0x543a('0x0')](),this['_revisionActions']=_0x1cff06,this['revisionViews']['delegate'](_0x543a('0xe'))['to'](this),this['revisionViews'][_0x543a('0xc')]('setName')['to'](this),this[_0x543a('0xb')]({'tag':_0x543a('0x6'),'attributes':{'class':['ck',_0x543a('0x7')]},'children':[{'tag':_0x543a('0x3'),'attributes':{'class':['ck','ck-revision-history-sidebar__time-period__label']},'children':[{'text':_0x5be445}]},{'tag':_0x543a('0x6'),'attributes':{'class':['ck',_0x543a('0x9')]},'children':this[_0x543a('0x2')]}]});}[_0x543a('0x8')](_0xdee31f){const _0x3bf189=new _0x24b6a2(this[_0x543a('0x1')],_0xdee31f,this['_revisionActions']);this[_0x543a('0x2')][_0x543a('0xa')](_0x3bf189);}['removeRevision'](_0x49fc5d){const _0xd948ba=this[_0x543a('0x2')][_0x543a('0x5')](_0x2c31e0=>_0x2c31e0['id']===_0x49fc5d['id']);this['revisionViews']['remove'](_0xd948ba);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x485b=['highlight','revisionViews','createCollection','add','delegate','unhighlight','_addRevision','_revisionActions','div','_getTimePeriodViewByStartDate','map','selectRevision','setName','ck-revision-history-sidebar','some','get','_revisions','fire','startDate','addRevision','isEnabled','uiLanguage','getTime','createdAt','ck-reset','timePeriodViews','set','_removeRevision','render','select','locale','highlightRevisions','bindTemplate','flat','revisionSetName','removeRevision'];(function(_0x37036f,_0x485bcd){const _0xbbce7e=function(_0x345ef9){while(--_0x345ef9){_0x37036f['push'](_0x37036f['shift']());}};_0xbbce7e(++_0x485bcd);}(_0x485b,0x14b));const _0xbbce=function(_0x37036f,_0x485bcd){_0x37036f=_0x37036f-0x0;let _0xbbce7e=_0x485b[_0x37036f];return _0xbbce7e;};import{View as _0x492757}from'ckeditor5/src/ui';import _0x20a2cf from'./revisionssidebartimeperiodview';import _0xf4b2ae from'./revisionssidebarheaderview';import{getDateTimePeriodInfo as _0x30b8c4}from'./utils';import'../../../theme/revisionssidebar/revisionssidebar.css';export default class vi extends _0x492757{constructor(_0x237df7,_0x4e5e08,_0x5a4a0d){super(_0x237df7);const _0x45f5b6=this[_0xbbce('0x19')];this[_0xbbce('0x12')]=this[_0xbbce('0x1f')](),this[_0xbbce('0x12')][_0xbbce('0x21')](_0xbbce('0x16'))['to'](this),this['timePeriodViews'][_0xbbce('0x21')](_0xbbce('0x5'))['to'](this),this[_0xbbce('0x9')]=_0x4e5e08,this[_0xbbce('0x0')]=_0x5a4a0d,this['on'](_0xbbce('0x16'),(_0x471299,_0x144a86)=>{this[_0xbbce('0xa')]('revisionSelected',_0x144a86);}),this['on'](_0xbbce('0x5'),(_0x15a867,_0x119aec)=>{this[_0xbbce('0xa')](_0xbbce('0x1b'),_0x119aec);}),this[_0xbbce('0x13')](_0xbbce('0xd'),!0x1),this['setTemplate']({'tag':_0xbbce('0x1'),'attributes':{'class':['ck',_0xbbce('0x11'),'ck-rounded-corners',_0xbbce('0x6')]},'children':[new _0xf4b2ae(_0x237df7),{'tag':_0xbbce('0x1'),'attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x45f5b6['if'](_0xbbce('0xd'),'ck-disabled',_0x260b87=>!_0x260b87)]},'children':this[_0xbbce('0x12')]}]});}[_0xbbce('0x15')](){super['render']();for(const _0xe34458 of this[_0xbbce('0x9')])this[_0xbbce('0x23')](_0xe34458);this['_revisions']['on'](_0xbbce('0x20'),(_0x4863a1,_0x4d6ed0)=>{this[_0xbbce('0x23')](_0x4d6ed0);}),this['_revisions']['on']('remove',(_0x1d5c4f,_0x476a08)=>{this['_removeRevision'](_0x476a08);});}get[_0xbbce('0x1e')](){return this[_0xbbce('0x12')][_0xbbce('0x3')](_0x3e42a0=>_0x3e42a0[_0xbbce('0x1e')]['map'](_0x11e9a3=>_0x11e9a3))[_0xbbce('0x1a')]();}[_0xbbce('0x4')](_0x1a6148){for(const _0x10adae of this['revisionViews'])_0x1a6148&&_0x1a6148['id']===_0x10adae['id']?_0x10adae[_0xbbce('0x16')]():_0x10adae['deselect']();}[_0xbbce('0x18')](_0x8db349){for(const _0x1ddfc0 of this[_0xbbce('0x1e')])_0x8db349[_0xbbce('0x7')](({id:_0x15f1be})=>_0x15f1be===_0x1ddfc0['id'])?_0x1ddfc0[_0xbbce('0x1d')]():_0x1ddfc0[_0xbbce('0x22')]();}[_0xbbce('0x23')](_0x5864f4){const _0x8395ef=_0x30b8c4(_0x5864f4[_0xbbce('0x10')],this[_0xbbce('0x17')]['uiLanguage'])[_0xbbce('0xb')];let _0x35842c=this[_0xbbce('0x12')][_0xbbce('0x8')](0x0);_0x35842c&&_0x35842c[_0xbbce('0xb')][_0xbbce('0xf')]()===_0x8395ef[_0xbbce('0xf')]()||(_0x35842c=new _0x20a2cf(this[_0xbbce('0x17')],_0x8395ef,this[_0xbbce('0x0')]),this[_0xbbce('0x12')]['add'](_0x35842c)),_0x35842c[_0xbbce('0xc')](_0x5864f4);}[_0xbbce('0x14')](_0x49710f){const _0x31effc=_0x30b8c4(_0x49710f[_0xbbce('0x10')],this[_0xbbce('0x17')][_0xbbce('0xe')])['startDate'];this[_0xbbce('0x2')](_0x31effc)[_0xbbce('0x1c')](_0x49710f);}[_0xbbce('0x2')](_0x4bac61){return this[_0xbbce('0x12')]['find'](_0x29fdbc=>_0x29fdbc[_0xbbce('0xb')][_0xbbce('0xf')]()===_0x4bac61['getTime']());}}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @
|
|
2
|
+
* @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
3
4
|
*/
|
|
4
5
|
export declare function getDateTimePeriodInfo(jsDate: Date, locale: string): DateTimePeriod;
|
|
5
6
|
export interface DateTimePeriod {
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2dc0=['minus','local','hasSame','monthLong','toJSDate','week','startOf','year','day','toRelativeCalendar'];(function(_0x2ac12c,_0x2dc04c){const _0xd8e32e=function(_0x40e39d){while(--_0x40e39d){_0x2ac12c['push'](_0x2ac12c['shift']());}};_0xd8e32e(++_0x2dc04c);}(_0x2dc0,0x117));const _0xd8e3=function(_0x2ac12c,_0x2dc04c){_0x2ac12c=_0x2ac12c-0x0;let _0xd8e32e=_0x2dc0[_0x2ac12c];return _0xd8e32e;};import{DateTime as _0x470c2c}from'luxon';export function getDateTimePeriodInfo(_0x468632,_0x191b19){const _0x3c64f5=_0x470c2c['fromJSDate'](_0x468632)['setLocale'](_0x191b19),_0x1238f7=_0x470c2c[_0xd8e3('0x2')](),_0x456d61=_0x1238f7[_0xd8e3('0x1')]({'days':0x1})[_0xd8e3('0x7')](_0xd8e3('0x9'));let _0x55b2a6,_0xbfa8ec;return _0x3c64f5[_0xd8e3('0x3')](_0x1238f7,'day')?(_0x55b2a6=_0x3c64f5['startOf']('day')[_0xd8e3('0x5')](),_0xbfa8ec=_0x3c64f5[_0xd8e3('0x0')]()):_0x3c64f5[_0xd8e3('0x3')](_0x456d61,_0xd8e3('0x9'))?(_0x55b2a6=_0x456d61[_0xd8e3('0x5')](),_0xbfa8ec=_0x3c64f5['toRelativeCalendar']()):_0x3c64f5[_0xd8e3('0x3')](_0x1238f7,_0xd8e3('0x6'))?(_0x55b2a6=_0x3c64f5[_0xd8e3('0x7')]('week')[_0xd8e3('0x5')](),_0xbfa8ec=_0x3c64f5['weekdayLong']||''):_0x3c64f5[_0xd8e3('0x3')](_0x1238f7,_0xd8e3('0x8'))?(_0x55b2a6=_0x3c64f5['startOf']('month')[_0xd8e3('0x5')](),_0xbfa8ec=_0x3c64f5[_0xd8e3('0x4')]||''):(_0x55b2a6=_0x3c64f5['startOf']('year')['toJSDate'](),_0xbfa8ec=String(_0x3c64f5[_0xd8e3('0x8')])),{'startDate':_0x55b2a6,'localizedPeriodName':_0xbfa8ec};}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4e2c=['Removed\x20by','span','div','setTemplate','ck-revision-change__label','changeId','name','element','isSuggestion','ck-annotation','type','data','ck-revision-change__','focus','Added\x20by','bindTemplate','add','set'];(function(_0x505e88,_0x4e2c47){const _0x10e3ec=function(_0x3dcaa4){while(--_0x3dcaa4){_0x505e88['push'](_0x505e88['shift']());}};_0x10e3ec(++_0x4e2c47);}(_0x4e2c,0x1b5));const _0x10e3=function(_0x505e88,_0x4e2c47){_0x505e88=_0x505e88-0x0;let _0x10e3ec=_0x4e2c[_0x505e88];return _0x10e3ec;};import{View as _0x3ff8d5}from'ckeditor5/src/ui';import{getTranslation as _0x161093}from'../../utils/common-translations';export default class Z extends _0x3ff8d5{constructor(_0x494db4,_0x5c0eed){super(_0x494db4),this['_model']=_0x5c0eed,this[_0x10e3('0x0')]=_0x5c0eed['id'];const _0x4b7eb4=this[_0x10e3('0xa')],_0x19ca7d=_0x161093(_0x494db4,_0x5c0eed[_0x10e3('0x6')][_0x10e3('0x3')]?'Suggested\x20by':_0x10e3('0xb')==_0x5c0eed[_0x10e3('0x5')]?_0x10e3('0x9'):_0x10e3('0xd'));this[_0x10e3('0xc')](_0x10e3('0x5'),_0x5c0eed['type']),this[_0x10e3('0x10')]({'tag':_0x10e3('0xf'),'attributes':{'class':[_0x10e3('0x4'),'ck-revision-change',_0x4b7eb4['to'](_0x10e3('0x5'),_0x2a7d3e=>_0x10e3('0x7')+_0x2a7d3e)],'tabindex':-0x1},'children':[{'tag':_0x10e3('0xe'),'children':[{'tag':_0x10e3('0xe'),'attributes':{'class':[_0x10e3('0x11')]},'children':[{'text':_0x19ca7d}]},{'text':'\x20'+_0x5c0eed['author'][_0x10e3('0x1')]}]}]});}[_0x10e3('0x8')](){this[_0x10e3('0x2')][_0x10e3('0x8')]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3b75=['fire','div','isBackwardNavigationEnabled','bind','NUMBER_OF_CHANGES','span','isForwardNavigationEnabled','isNavigationMode','ck-revision-history-ui__changes-navigation__wrapper','EDIT_X_OF_Y_REVISIONS','set','_isStatusLabelVisible','_statusText','forward','isEnabled','ck-revision-history-ui__changes-navigation__label','bindTemplate','isReady','execute','Show\x20next\x20change','Show\x20previous\x20change','ck-hidden','currentChangeNumber','ck-revision-history-ui__changes-navigation__navigation','Total'];(function(_0x2518f2,_0x3b75d4){const _0x2681e6=function(_0x1b0ed1){while(--_0x1b0ed1){_0x2518f2['push'](_0x2518f2['shift']());}};_0x2681e6(++_0x3b75d4);}(_0x3b75,0xff));const _0x2681=function(_0x2518f2,_0x3b75d4){_0x2518f2=_0x2518f2-0x0;let _0x2681e6=_0x3b75[_0x2518f2];return _0x2681e6;};import{View as _0x13836b,ButtonView as _0x2d9101,ToolbarSeparatorView as _0xff5d66}from'ckeditor5/src/ui';import{getTranslation as _0x11df0f}from'../../utils/common-translations';import _0x367f61 from'../../../theme/icons/arrow-up.svg';import _0x255f42 from'../../../theme/icons/arrow-down.svg';import'../../../theme/changesnavigation.css';export default class wi extends _0x13836b{constructor(_0x3d0ca2){super(_0x3d0ca2);const _0x1ff648=this[_0x2681('0xb')],_0x164a35=new _0x2d9101(_0x3d0ca2),_0x505fc1=new _0x2d9101(_0x3d0ca2);this['set'](_0x2681('0x2'),!0x1),this[_0x2681('0x5')]('isReady',!0x1),this[_0x2681('0x5')](_0x2681('0x11'),0x0),this[_0x2681('0x5')]('numberOfChanges',0x0),this[_0x2681('0x5')]('isForwardNavigationEnabled',!0x1),this[_0x2681('0x5')](_0x2681('0x16'),!0x1),this[_0x2681('0x17')](_0x2681('0x6'))['to'](this,'isReady',this,'numberOfChanges',(_0x390b5f,_0x3376ae)=>_0x390b5f&&_0x3376ae>0x0),this[_0x2681('0x17')](_0x2681('0x7'))['to'](this,_0x2681('0xc'),this,_0x2681('0x11'),this,'numberOfChanges',this,_0x2681('0x2'),(_0x133c99,_0x2c3160,_0x307635,_0x45a697)=>{if(!_0x133c99)return _0x11df0f(_0x3d0ca2,'Loading...');if(!_0x307635)return _0x11df0f(_0x3d0ca2,'No\x20changes');const _0x5d0e55=_0x11df0f(_0x3d0ca2,_0x2681('0x18'),_0x307635);return _0x45a697?_0x11df0f(_0x3d0ca2,'X_OF_Y_CHANGES',[_0x2c3160+0x1,_0x307635]):_0x5d0e55;}),_0x164a35['set']({'label':_0x11df0f(_0x3d0ca2,_0x2681('0xf')),'tooltip':!0x0,'icon':_0x367f61}),_0x505fc1['set']({'label':_0x11df0f(_0x3d0ca2,_0x2681('0xe')),'tooltip':!0x0,'icon':_0x255f42}),_0x164a35[_0x2681('0x17')](_0x2681('0x9'))['to'](this,_0x2681('0x16')),_0x505fc1[_0x2681('0x17')](_0x2681('0x9'))['to'](this,_0x2681('0x1')),_0x164a35['on']('execute',()=>this[_0x2681('0x14')](_0x2681('0xd'),'backward')),_0x505fc1['on'](_0x2681('0xd'),()=>this[_0x2681('0x14')](_0x2681('0xd'),_0x2681('0x8'))),this['setTemplate']({'tag':_0x2681('0x15'),'attributes':{'class':['ck','ck-revision-history-ui','ck-revision-history-ui__changes-navigation']},'children':[{'tag':_0x2681('0x0'),'attributes':{'class':[_0x2681('0x3')]},'children':[{'tag':'span','attributes':{'class':[_0x2681('0xa'),_0x1ff648['if'](_0x2681('0x6'),_0x2681('0x10'),_0x5cee37=>!_0x5cee37)]},'children':[{'text':_0x1ff648['to']('isNavigationMode',_0x21f30e=>_0x21f30e?_0x11df0f(_0x3d0ca2,_0x2681('0x4'))+':\x20':_0x11df0f(_0x3d0ca2,_0x2681('0x13'))+':\x20')}]},{'text':_0x1ff648['to'](_0x2681('0x7'))}]},new _0xff5d66(),{'tag':_0x2681('0x15'),'attributes':{'class':[_0x2681('0x12')]},'children':[_0x164a35,_0x505fc1]}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xef53=['show','editing','addClass','hide','roots','RevisionViewerLoadingOverlay','view','ck-editor__editable__loading-overlay','pluginName','document','change'];(function(_0x258394,_0xef53e9){const _0x224c03=function(_0x421ff4){while(--_0x421ff4){_0x258394['push'](_0x258394['shift']());}};_0x224c03(++_0xef53e9);}(_0xef53,0x101));const _0x224c=function(_0x258394,_0xef53e9){_0x258394=_0x258394-0x0;let _0x224c03=_0xef53[_0x258394];return _0x224c03;};import{Plugin as _0x3dbe8b}from'ckeditor5/src/core';const oe=_0x224c('0x3');import'../../../theme/revisionviewerloadingoverlay.css';export default class te extends _0x3dbe8b{static get[_0x224c('0x4')](){return _0x224c('0x1');}[_0x224c('0x7')](){const _0x4d8daa=this['editor'][_0x224c('0x8')][_0x224c('0x2')];_0x4d8daa[_0x224c('0x6')](_0x303a12=>{for(const _0x33fab6 of _0x4d8daa[_0x224c('0x5')]['roots'])_0x303a12[_0x224c('0x9')](oe,_0x33fab6);});}[_0x224c('0xa')](){const _0x520016=this['editor'][_0x224c('0x8')][_0x224c('0x2')];_0x520016['change'](_0x4dd4f3=>{for(const _0x273171 of _0x520016[_0x224c('0x5')][_0x224c('0x0')])_0x4dd4f3['removeClass'](oe,_0x273171);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x6cd0=['change:isReady','restoreRevision','show','add','bind','componentFactory','numberOfChanges','requires','config','isForwardNavigationEnabled','get','plugins','pluginName','listenTo','isEnabled','RevisionViewerUI','Restore\x20this\x20revision','showNextChange','isBackwardNavigationEnabled','execute','Back\x20to\x20editing','changesNavigation','set','hide','showPreviousChange','commands','exitToEditing','forward'];(function(_0x72c47d,_0x6cd01e){const _0x3f3e54=function(_0x2e82cf){while(--_0x2e82cf){_0x72c47d['push'](_0x72c47d['shift']());}};_0x3f3e54(++_0x6cd01e);}(_0x6cd0,0x82));const _0x3f3e=function(_0x72c47d,_0x6cd01e){_0x72c47d=_0x72c47d-0x0;let _0x3f3e54=_0x6cd0[_0x72c47d];return _0x3f3e54;};import{Plugin as _0x55cd6c}from'ckeditor5/src/core';import{ButtonView as _0x4917f0}from'ckeditor5/src/ui';import _0x22e1cf from'./changesnavigationview';import _0x317fde from'./../../revisionviewer';import _0x7f0f23 from'./revisionviewerloadingoverlay';import{getTranslation as _0x272b64}from'../../utils/common-translations';import _0x26b28a from'@ckeditor/ckeditor5-undo/theme/icons/undo.svg';import'../../../theme/revisionviewer.css';export default class R extends _0x55cd6c{static get[_0x3f3e('0x16')](){return _0x3f3e('0x19');}static get[_0x3f3e('0x11')](){return[_0x317fde,_0x7f0f23];}['init'](){const _0x38cd45=this['editor'],_0xb11e56=_0x38cd45['plugins'][_0x3f3e('0x14')](_0x317fde),_0x4049ac=_0x38cd45[_0x3f3e('0x15')]['get'](_0x7f0f23);_0x38cd45['ui'][_0x3f3e('0xf')][_0x3f3e('0xd')](_0x3f3e('0x8'),_0x25cb42=>{const _0x5061c4=new _0x4917f0(_0x25cb42);return _0x5061c4[_0x3f3e('0x4')]({'label':_0x272b64(_0x25cb42,_0x3f3e('0x2')),'icon':_0x26b28a,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this[_0x3f3e('0x17')](_0x5061c4,_0x3f3e('0x1'),()=>{_0x38cd45[_0x3f3e('0x12')][_0x3f3e('0x14')]('revisionHistory')['closeRevisionViewerCallback']();}),_0x5061c4;}),_0x38cd45['ui'][_0x3f3e('0xf')]['add']('restoreRevision',_0x5df3e0=>{const _0x306db3=new _0x4917f0(_0x5df3e0);return _0x306db3['set']({'label':_0x272b64(_0x5df3e0,_0x3f3e('0x1a')),'withText':!0x0,'tooltip':!0x0}),_0x306db3[_0x3f3e('0xe')](_0x3f3e('0x18'))['to'](_0x38cd45[_0x3f3e('0x7')][_0x3f3e('0x14')](_0x3f3e('0xb'))),this['listenTo'](_0x306db3,'execute',()=>_0x38cd45[_0x3f3e('0x1')](_0x3f3e('0xb'))),_0x306db3;}),_0x38cd45['ui'][_0x3f3e('0xf')][_0x3f3e('0xd')](_0x3f3e('0x3'),_0x54e180=>{const _0x10c831=new _0x22e1cf(_0x54e180),_0x503a27=_0x38cd45[_0x3f3e('0x7')][_0x3f3e('0x14')](_0x3f3e('0x6')),_0x2f4c36=_0x38cd45[_0x3f3e('0x7')][_0x3f3e('0x14')](_0x3f3e('0x1b'));return _0x10c831[_0x3f3e('0xe')](_0x3f3e('0x0'))['to'](_0x503a27,_0x3f3e('0x18')),_0x10c831[_0x3f3e('0xe')](_0x3f3e('0x13'))['to'](_0x2f4c36,'isEnabled'),_0x10c831[_0x3f3e('0xe')]('isReady','currentChangeNumber',_0x3f3e('0x10'),'isNavigationMode')['to'](_0xb11e56),this[_0x3f3e('0x17')](_0x10c831,_0x3f3e('0x1'),(_0x4779e5,_0x50302e)=>{_0x38cd45[_0x3f3e('0x1')](_0x3f3e('0x9')===_0x50302e?_0x3f3e('0x1b'):_0x3f3e('0x6'));}),_0x10c831;}),_0x4049ac['show'](),_0xb11e56['on'](_0x3f3e('0xa'),(_0x14a7ee,_0x411d2b,_0xfc1357)=>{_0xfc1357?_0x4049ac[_0x3f3e('0x5')]():_0x4049ac[_0x3f3e('0xc')]();});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export function getTranslation(
|
|
23
|
+
export function getTranslation(_0x2af1c7,_0xcb78c1,_0x48c517){const t=_0x2af1c7['t'];switch(_0xcb78c1){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'},_0x48c517);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x48c517);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 _0xcb78c1;}}
|