@ckeditor/ckeditor5-revision-history 32.0.0 → 34.1.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 +2 -2
- package/README.md +5 -2
- package/build/revision-history.js +5 -0
- package/build/translations/af.js +1 -0
- package/build/translations/az.js +1 -0
- package/build/translations/bs.js +1 -0
- package/build/translations/cs.js +1 -0
- package/build/translations/da.js +1 -0
- package/build/translations/de-ch.js +1 -0
- package/build/translations/de.js +1 -0
- package/build/translations/el.js +1 -0
- package/build/translations/en-au.js +1 -0
- package/build/translations/en-gb.js +1 -0
- package/build/translations/es.js +1 -0
- package/build/translations/et.js +1 -0
- package/build/translations/fa.js +1 -0
- package/build/translations/fr.js +1 -0
- package/build/translations/gl.js +1 -0
- package/build/translations/he.js +1 -0
- package/build/translations/hi.js +1 -0
- package/build/translations/hr.js +1 -0
- package/build/translations/hu.js +1 -0
- package/build/translations/id.js +1 -0
- package/build/translations/it.js +1 -0
- package/build/translations/ja.js +1 -0
- package/build/translations/jv.js +1 -0
- package/build/translations/ko.js +1 -0
- package/build/translations/ku.js +1 -0
- package/build/translations/lv.js +1 -0
- package/build/translations/ne.js +1 -0
- package/build/translations/nl.js +1 -0
- package/build/translations/no.js +1 -0
- package/build/translations/pl.js +1 -0
- package/build/translations/pt-br.js +1 -0
- package/build/translations/ro.js +1 -0
- package/build/translations/ru.js +1 -0
- package/build/translations/sk.js +1 -0
- package/build/translations/sr-latn.js +1 -0
- package/build/translations/sr.js +1 -0
- package/build/translations/tk.js +1 -0
- package/build/translations/tr.js +1 -0
- package/build/translations/ug.js +1 -0
- package/build/translations/uk.js +1 -0
- package/build/translations/ur.js +1 -0
- package/build/translations/vi.js +1 -0
- package/build/translations/zh-cn.js +1 -0
- package/build/translations/zh.js +1 -0
- package/lang/translations/af.po +123 -0
- package/lang/translations/cs.po +27 -27
- package/lang/translations/de.po +21 -21
- package/lang/translations/el.po +123 -0
- package/lang/translations/en-au.po +25 -25
- package/lang/translations/es.po +24 -24
- package/lang/translations/fr.po +2 -2
- package/lang/translations/gl.po +24 -24
- package/lang/translations/hr.po +25 -25
- package/lang/translations/hu.po +6 -6
- package/lang/translations/id.po +10 -10
- package/lang/translations/it.po +24 -24
- package/lang/translations/jv.po +122 -0
- package/lang/translations/lv.po +27 -27
- package/lang/translations/nl.po +21 -21
- package/lang/translations/pl.po +21 -21
- package/lang/translations/pt-br.po +24 -24
- package/lang/translations/ro.po +19 -19
- package/lang/translations/sk.po +27 -27
- package/lang/translations/sr-latn.po +22 -22
- package/lang/translations/sr.po +22 -22
- package/lang/translations/tr.po +18 -18
- package/lang/translations/ur.po +123 -0
- package/lang/translations/zh-cn.po +24 -24
- package/lang/translations/zh.po +1 -1
- package/package.json +8 -11
- package/src/changeitem.js +1 -1
- package/src/editor/revisionviewereditor.js +23 -0
- package/src/editor/revisionviewereditorui.js +23 -0
- package/src/editor/revisionviewereditoruiview.js +23 -0
- package/src/index.js +23 -0
- 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 +23 -0
- package/theme/revisionviewer.css +0 -6
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{View as
|
|
23
|
+
const _0x131f=['ck-revision-history-sidebar__revision-author__name','setTemplate','0\x200\x2011\x2010','push','span','Revision\x20author','ck-revision-history-sidebar__revision-author','name'];(function(_0x16888b,_0x131fe9){const _0x59f1a8=function(_0x59147e){while(--_0x59147e){_0x16888b['push'](_0x16888b['shift']());}};_0x59f1a8(++_0x131fe9);}(_0x131f,0xc2));const _0x59f1=function(_0x16888b,_0x131fe9){_0x16888b=_0x16888b-0x0;let _0x59f1a8=_0x131f[_0x16888b];return _0x59f1a8;};import{View as _0x32c4d5,IconView as _0x20ac50}from'ckeditor5/src/ui';import{getTranslation as _0xa8cb9c}from'../../utils/common-translations';import _0xd1b324 from'../../../theme/icons/user.svg';import'../../../theme/revision/revisionauthor.css';export default class ti extends _0x32c4d5{constructor(_0x4bfc2f,_0x372a36,_0x5e9575){super(_0x4bfc2f);const _0x5d9974=new _0x20ac50(_0x4bfc2f);_0x5d9974['set']({'content':_0xd1b324,'viewBox':_0x59f1('0x0')});const _0x97212c=['ck',_0x59f1('0x4')];_0x5e9575&&_0x97212c[_0x59f1('0x1')]('ck-revision-history-sidebar__revision-author_creator');const _0x25b408=[{'tag':_0x59f1('0x2'),'attributes':{'class':['ck',_0x59f1('0x6')],'title':_0xa8cb9c(_0x4bfc2f,_0x5e9575?'Revision\x20creator':_0x59f1('0x3'))},'children':[_0x5d9974,_0x372a36[_0x59f1('0x5')]]}];this[_0x59f1('0x7')]({'tag':'li','attributes':{'class':_0x97212c},'children':_0x25b408});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{LabeledFieldView as
|
|
23
|
+
var _0x1b26=['span','set','ck-revision-history-sidebar__revision-name','extendTemplate','Revision\x20name'];(function(_0x2c119a,_0x1b2607){var _0x5b74c9=function(_0x21f624){while(--_0x21f624){_0x2c119a['push'](_0x2c119a['shift']());}};_0x5b74c9(++_0x1b2607);}(_0x1b26,0x11d));var _0x5b74=function(_0x2c119a,_0x1b2607){_0x2c119a=_0x2c119a-0x0;var _0x5b74c9=_0x1b26[_0x2c119a];return _0x5b74c9;};import{LabeledFieldView as _0x1dd370}from'ckeditor5/src/ui';import{getTranslation as _0x2f3cfd}from'../../utils/common-translations';import'../../../theme/revision/revisionname.css';export default class os extends _0x1dd370{constructor(_0xc92925,..._0x3bdefa){super(_0xc92925,..._0x3bdefa),this[_0x5b74('0x1')]({'label':_0x2f3cfd(_0xc92925,_0x5b74('0x4'))}),this[_0x5b74('0x3')]({'tag':_0x5b74('0x0'),'attributes':{'class':[_0x5b74('0x2')]}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5798=['creator','.ck-thread__remove-confirm','filter','ck-revision-history-sidebar__revision-wrapper','srcElement','uiLanguage','_revision','fieldView','createdAt','ck-revision-history-sidebar__revision-authors','isSelected','from','render','change','ck-revision-history-sidebar__revision__date','placeholder','isHighlighted','_createdAtFormatted','isEnabled','ck-revision-history-sidebar__revision__controls-wrapper','bindTemplate','isActionsDropdownOpen','ck-disabled','div','unshift','fire','setTemplate','set','span','select','revisionActionsView','ck-revision-history-sidebar__actions_dropdown_open','ck-revision-history-sidebar__revision','isReady','220','extendTemplate','length','value','element','ck-reset','highlight','bind','name','revisionNameView','map'];(function(_0x232a0c,_0x579820){const _0x630e0f=function(_0x446704){while(--_0x446704){_0x232a0c['push'](_0x232a0c['shift']());}};_0x630e0f(++_0x579820);}(_0x5798,0xf7));const _0x630e=function(_0x232a0c,_0x579820){_0x232a0c=_0x232a0c-0x0;let _0x630e0f=_0x5798[_0x232a0c];return _0x630e0f;};import{View as _0x11cca2,createLabeledInputText as _0xb48ca8}from'ckeditor5/src/ui';import{mix as _0x396efa}from'ckeditor5/src/utils';import{ConfirmMixin as _0x1f157b}from'ckeditor5-collaboration/src/collaboration-core';import _0x21b20d from'./revisionnameview';import _0x7089d9 from'./revisionauthorview';import{dateToPrettyFormat as _0x338c9e}from'./utils';import{createActionsDropdownView as _0x57c40b}from'./createrevisionactionsdropdown';import'../../../theme/revision/revision.css';export default class ci extends _0x11cca2{constructor(_0x457b0d,_0x1e355d,_0x500b2e){super(_0x457b0d);const _0x400fb3=this[_0x630e('0x2b')],_0x2ae210=function(_0x144712,_0x38fbd1){const _0x47fd7a=Array[_0x630e('0x22')](_0x38fbd1['authors'])[_0x630e('0x19')](_0x45a9a3=>_0x45a9a3!=_0x38fbd1[_0x630e('0x17')]);return _0x38fbd1[_0x630e('0x17')]&&_0x47fd7a[_0x630e('0x2')](_0x38fbd1[_0x630e('0x17')]),_0x47fd7a[_0x630e('0x16')](_0x38ea48=>new _0x7089d9(_0x144712,_0x38ea48,_0x38ea48==_0x38fbd1[_0x630e('0x17')]));}(_0x457b0d,_0x1e355d);this[_0x630e('0x1d')]=_0x1e355d,this['id']=_0x1e355d['id'],this['bind'](_0x630e('0x14'),_0x630e('0x1f'))['to'](_0x1e355d),this[_0x630e('0x5')](_0x630e('0x21'),!0x1),this[_0x630e('0x5')](_0x630e('0x27'),!0x1),this[_0x630e('0x5')](_0x630e('0x2c'),!0x1),this[_0x630e('0x5')](_0x630e('0xb'),!0x1),this['bind'](_0x630e('0x28'))['to'](this,'createdAt',_0x4e4001=>_0x4e4001?_0x338c9e(_0x457b0d[_0x630e('0x1c')],_0x4e4001):null),this['set']('isEnabled',!0x1),this[_0x630e('0x15')]=new _0x21b20d(_0x457b0d,_0xb48ca8),this['revisionNameView'][_0x630e('0x1e')][_0x630e('0xd')]({'attributes':{'maxlength':_0x630e('0xc')}}),this['revisionNameView']['fieldView'][_0x630e('0x13')]('value',_0x630e('0x26'))['to'](this,'name',_0x630e('0x28')),this[_0x630e('0x15')]['bind'](_0x630e('0x29'))['to'](this,_0x630e('0x21'),this,'isEnabled',(_0x2209a7,_0x559169)=>_0x2209a7&&_0x559169),this['revisionActionsView']=_0x500b2e&&_0x500b2e[_0x630e('0xe')]?_0x57c40b(this,_0x500b2e):'',this[_0x630e('0x8')]['bind'](_0x630e('0x29'))['to'](this),this[_0x630e('0x4')]({'tag':_0x630e('0x1'),'attributes':{'class':['ck',_0x630e('0x11'),_0x630e('0x1a'),_0x400fb3['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset',_0x630e('0xa'),_0x400fb3['if']('isEnabled',_0x630e('0x0'),_0x313d91=>!_0x313d91),_0x400fb3['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x400fb3['if'](_0x630e('0x27'),'ck-revision-history-sidebar__revision_highlighted'),_0x400fb3['if']('isActionsDropdownOpen',_0x630e('0x9'))]},'children':[this[_0x630e('0x15')],{'tag':_0x630e('0x6'),'attributes':{'class':['ck',_0x630e('0x25')]},'children':[{'text':_0x400fb3['to'](_0x630e('0x28'))}]},{'tag':'div','attributes':{'class':['ck',_0x630e('0x2a')]},'children':[{'tag':'ul','attributes':{'class':['ck',_0x630e('0x20')]},'children':_0x2ae210}]},this[_0x630e('0x8')]],'on':{'click':_0x400fb3['to'](_0x1c2a52=>{_0x1c2a52[_0x630e('0x1b')]['closest'](_0x630e('0x18'))||this[_0x630e('0xb')]&&this[_0x630e('0x29')]&&this['fire'](_0x630e('0x7'),{'id':this['id']});})}}]});}[_0x630e('0x23')](){super[_0x630e('0x23')]();const _0x524f90=this['revisionNameView'][_0x630e('0x1e')][_0x630e('0x10')];this['listenTo'](_0x524f90,_0x630e('0x24'),()=>{this[_0x630e('0x3')]('setName',{'id':this['id'],'name':_0x524f90[_0x630e('0xf')]});});}[_0x630e('0x7')](){this[_0x630e('0x21')]=!0x0;}['deselect'](){this[_0x630e('0x21')]=!0x1;}[_0x630e('0x12')](){this[_0x630e('0x27')]=!0x0;}['unhighlight'](){this[_0x630e('0x27')]=!0x1;}}_0x396efa(ci,_0x1f157b);
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x52e1=['toggle','set','bindTemplate','ck-revision-history-sidebar__subrevision-collapser','_isCollapsed','span','ck-hidden','button','click','isVisible'];(function(_0x2034f2,_0x52e1ff){const _0x4ffc5c=function(_0x46720a){while(--_0x46720a){_0x2034f2['push'](_0x2034f2['shift']());}};_0x4ffc5c(++_0x52e1ff);}(_0x52e1,0xeb));const _0x4ffc=function(_0x2034f2,_0x52e1ff){_0x2034f2=_0x2034f2-0x0;let _0x4ffc5c=_0x52e1[_0x2034f2];return _0x4ffc5c;};import{View as _0x1d493f}from'ckeditor5/src/ui';import'../../../theme/revision/subrevisioncollapser.css';export default class ls extends _0x1d493f{constructor(_0x103f6d){super(_0x103f6d);const _0x2e6bff=this[_0x4ffc('0x7')];this[_0x4ffc('0x6')]({'isVisible':!0x0,'_isCollapsed':!0x0}),this['setTemplate']({'tag':'span','attributes':{'class':['ck',_0x4ffc('0x8'),_0x2e6bff['if'](_0x4ffc('0x4'),_0x4ffc('0x1'),_0x1492cc=>!_0x1492cc),_0x2e6bff['if']('_isCollapsed','ck-revision-history-sidebar__subrevision-collapser_collapsed')],'role':_0x4ffc('0x2'),'aria-pressed':_0x2e6bff['to'](_0x4ffc('0x9'),_0x75453=>_0x75453?'false':'true')},'children':[{'tag':_0x4ffc('0x0'),'attributes':{'class':['ck','ck-revision-history-sidebar__subrevision-collapser__inner']}}],'on':{'click':_0x2e6bff['to'](_0x4ffc('0x3'))}});}[_0x4ffc('0x5')](){this[_0x4ffc('0x9')]=!this[_0x4ffc('0x9')];}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x440a=['isSelected','bindTemplate','_parentRevisionId','fire','author','ck-revision-history-sidebar__revision_selected','setTemplate','_createdAtFormatted','span','ck-revision-history-sidebar__revision-authors','bind','createdAt','select','deselect','ck-revision-history-sidebar__revision__date','ck-revision-history-sidebar__revision','div','uiLanguage'];(function(_0x105bb3,_0x440a79){const _0x4e82b5=function(_0x3cdf16){while(--_0x3cdf16){_0x105bb3['push'](_0x105bb3['shift']());}};_0x4e82b5(++_0x440a79);}(_0x440a,0xa8));const _0x4e82=function(_0x105bb3,_0x440a79){_0x105bb3=_0x105bb3-0x0;let _0x4e82b5=_0x440a[_0x105bb3];return _0x4e82b5;};import{View as _0xe57a43}from'ckeditor5/src/ui';import _0x1a4f48 from'./revisionauthorview';import{dateToPrettyFormat as _0x4dd172}from'./utils';import'../../../theme/revision/subrevision.css';export default class ct extends _0xe57a43{constructor(_0x4e75ea,_0x1e470e,_0x3755b4){super(_0x4e75ea);const _0xa86fc6=this[_0x4e82('0xd')];this['id']=_0x1e470e['id'],this[_0x4e82('0x4')](_0x4e82('0x5'))['to'](_0x1e470e),this['set'](_0x4e82('0xc'),!0x1),this[_0x4e82('0x4')](_0x4e82('0x1'))['to'](this,_0x4e82('0x5'),_0x527cea=>_0x527cea?_0x4dd172(_0x4e75ea[_0x4e82('0xb')],_0x527cea):null),this[_0x4e82('0xe')]=_0x3755b4,this[_0x4e82('0x0')]({'tag':_0x4e82('0xa'),'attributes':{'class':['ck','ck-reset',_0x4e82('0x9'),'ck-revision-history-sidebar__subrevision',_0xa86fc6['if']('isSelected',_0x4e82('0x11'))]},'children':[{'tag':_0x4e82('0x2'),'attributes':{'class':['ck',_0x4e82('0x8')]},'children':[{'text':_0xa86fc6['to']('_createdAtFormatted')}]},{'tag':'ul','attributes':{'class':['ck',_0x4e82('0x3')]},'children':[new _0x1a4f48(_0x4e75ea,_0x1e470e[_0x4e82('0x10')],!0x0)]}],'on':{'click':_0xa86fc6['to'](this[_0x4e82('0x6')]['bind'](this))}});}[_0x4e82('0x6')](){this[_0x4e82('0xc')]=!0x0,this[_0x4e82('0xf')](_0x4e82('0x6'),{'parentId':this[_0x4e82('0xe')]});}[_0x4e82('0x7')](){this['isSelected']=!0x1;}}
|
package/src/ui/revision/utils.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x1c0f=['long','numeric','toLocaleDateString'];(function(_0x483a0d,_0x1c0fe8){var _0x2302de=function(_0x5ec5a3){while(--_0x5ec5a3){_0x483a0d['push'](_0x483a0d['shift']());}};_0x2302de(++_0x1c0fe8);}(_0x1c0f,0x193));var _0x2302=function(_0x483a0d,_0x1c0fe8){_0x483a0d=_0x483a0d-0x0;var _0x2302de=_0x1c0f[_0x483a0d];return _0x2302de;};export function dateToPrettyFormat(_0x2de536,_0x3f4882){return _0x3f4882[_0x2302('0x1')](_0x2de536,{'month':_0x2302('0x2'),'day':'numeric'})+',\x20'+_0x3f4882['toLocaleTimeString'](_0x2de536,{'hour':_0x2302('0x0'),'minute':'numeric'});}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x2764=['type','setTemplate','cancel','revisionNameInputValue','element','ck-revision-history-save-revision-form','shift\x20+\x20tab','arrowdown','Save','stopPropagation','focus','listenTo','trim','_createRevisionNameInput','delegate','set','fieldView','submit','selectstart','ck-button-save','high','_focusables','forEach','keystrokes','label','form','cancelButtonView','locale','focusFirst','render','ck-button-cancel','add','220','tab','revisionNameInputView','arrowright','input','focusTracker','extendTemplate','_createButton','value','reset','saveButtonView','_focusCycler'];(function(_0x111793,_0x276434){const _0x2dcaec=function(_0x3dfc03){while(--_0x3dfc03){_0x111793['push'](_0x111793['shift']());}};_0x2dcaec(++_0x276434);}(_0x2764,0xab));const _0x2dca=function(_0x111793,_0x276434){_0x111793=_0x111793-0x0;let _0x2dcaec=_0x2764[_0x111793];return _0x2dcaec;};import{ButtonView as _0x24959b,FocusCycler as _0x20b32a,LabeledFieldView as _0xcfc52a,View as _0x315c2a,ViewCollection as _0x5cf537,createLabeledInputText as _0x25293e,injectCssTransitionDisabler as _0x5a9b50,submitHandler as _0x42b489}from'ckeditor5/src/ui';import{FocusTracker as _0x5b7ec8,KeystrokeHandler as _0x14a04b}from'ckeditor5/src/utils';import{getTranslation as _0x51a603}from'../../utils/common-translations';import _0x2c8cd0 from'@ckeditor/ckeditor5-core/theme/icons/check.svg';import _0x1bb5e2 from'@ckeditor/ckeditor5-core/theme/icons/cancel.svg';import'../../../theme/revisionhistorysaverevisionform.css';import'@ckeditor/ckeditor5-ui/theme/components/responsive-form/responsiveform.css';export default class dt extends _0x315c2a{constructor(_0x279f38){super(_0x279f38),this[_0x2dca('0x2a')]=new _0x5b7ec8(),this[_0x2dca('0x1c')]=new _0x14a04b(),this[_0x2dca('0x14')](_0x2dca('0x8'),''),this[_0x2dca('0x27')]=this[_0x2dca('0x12')](),this['saveButtonView']=this['_createButton'](_0x51a603(_0x279f38,_0x2dca('0xd')),_0x2c8cd0,_0x2dca('0x18')),this['saveButtonView'][_0x2dca('0x5')]=_0x2dca('0x16'),this[_0x2dca('0x1f')]=this[_0x2dca('0x0')](_0x51a603(_0x279f38,'Cancel'),_0x1bb5e2,_0x2dca('0x23'),_0x2dca('0x7')),this[_0x2dca('0x1a')]=new _0x5cf537(),this['_focusCycler']=new _0x20b32a({'focusables':this[_0x2dca('0x1a')],'focusTracker':this[_0x2dca('0x2a')],'keystrokeHandler':this[_0x2dca('0x1c')],'actions':{'focusPrevious':_0x2dca('0xb'),'focusNext':_0x2dca('0x26')}}),this[_0x2dca('0x6')]({'tag':_0x2dca('0x1e'),'attributes':{'class':['ck',_0x2dca('0xa'),'ck-responsive-form'],'tabindex':'-1'},'children':[this[_0x2dca('0x27')],this[_0x2dca('0x3')],this[_0x2dca('0x1f')]]}),_0x5a9b50(this);}[_0x2dca('0x22')](){super[_0x2dca('0x22')](),_0x42b489({'view':this}),([this['revisionNameInputView'],this[_0x2dca('0x3')],this[_0x2dca('0x1f')]][_0x2dca('0x1b')](_0x14a442=>{this[_0x2dca('0x1a')][_0x2dca('0x24')](_0x14a442),this[_0x2dca('0x2a')][_0x2dca('0x24')](_0x14a442[_0x2dca('0x9')]);}),this[_0x2dca('0x1c')][_0x2dca('0x10')](this[_0x2dca('0x9')]));const _0x1bf1c0=_0x154a3c=>_0x154a3c[_0x2dca('0xe')]();this[_0x2dca('0x1c')]['set'](_0x2dca('0x28'),_0x1bf1c0),this[_0x2dca('0x1c')][_0x2dca('0x14')]('arrowleft',_0x1bf1c0),this[_0x2dca('0x1c')][_0x2dca('0x14')]('arrowup',_0x1bf1c0),this['keystrokes']['set'](_0x2dca('0xc'),_0x1bf1c0),this[_0x2dca('0x10')](this[_0x2dca('0x27')][_0x2dca('0x9')],_0x2dca('0x17'),(_0x3a615e,_0x58badc)=>{_0x58badc[_0x2dca('0xe')]();},{'priority':_0x2dca('0x19')});}[_0x2dca('0xf')](){this[_0x2dca('0x4')][_0x2dca('0x21')]();}get['revisionName'](){return this['revisionNameInputView'][_0x2dca('0x15')]['element'][_0x2dca('0x1')][_0x2dca('0x11')]();}set['revisionName'](_0x2e129a){this['revisionNameInputView'][_0x2dca('0x15')][_0x2dca('0x9')]['value']=_0x2e129a[_0x2dca('0x11')]();}[_0x2dca('0x2')](){this[_0x2dca('0x27')][_0x2dca('0x15')][_0x2dca('0x9')]['value']='';}['_createRevisionNameInput'](){const _0x3f4cc8=new _0xcfc52a(this[_0x2dca('0x20')],_0x25293e),_0x4ef45a=_0x3f4cc8['fieldView'];return _0x4ef45a[_0x2dca('0x2b')]({'attributes':{'maxlength':_0x2dca('0x25')}}),_0x3f4cc8[_0x2dca('0x1d')]=_0x51a603(this[_0x2dca('0x20')],'Name\x20of\x20the\x20revision\x20(optional)'),_0x4ef45a['on'](_0x2dca('0x29'),()=>{this[_0x2dca('0x8')]=_0x4ef45a['element'][_0x2dca('0x1')]['trim']();}),_0x3f4cc8;}[_0x2dca('0x0')](_0x345d1d,_0x5c6fa8,_0xfa01d0,_0x458bde){const _0x3e0ce6=new _0x24959b(this['locale']);return _0x3e0ce6[_0x2dca('0x14')]({'label':_0x345d1d,'icon':_0x5c6fa8,'tooltip':!0x0}),_0x3e0ce6[_0x2dca('0x2b')]({'attributes':{'class':_0xfa01d0}}),_0x458bde&&_0x3e0ce6[_0x2dca('0x13')]('execute')['to'](this,_0x458bde),_0x3e0ce6;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
const _0x4b59=['RevisionTracker','pluginName','Open\x20revision\x20history','buttonView','plugins','init','panelView','submit','cancel','remove','length','config','Revision\x20history','render','execute','set','isReadOnly','isReady','Save\x20current\x20revision','add','addMany','saveButtonView','children','revisionHistory','editing','bind','RevisionHistoryUI','isOpen','focus','isEnabled','saveRevision','get','reset','requires'];(function(_0x2db5d6,_0x4b59e9){const _0x339a9f=function(_0x1feab9){while(--_0x1feab9){_0x2db5d6['push'](_0x2db5d6['shift']());}};_0x339a9f(++_0x4b59e9);}(_0x4b59,0x124));const _0x339a=function(_0x2db5d6,_0x4b59e9){_0x2db5d6=_0x2db5d6-0x0;let _0x339a9f=_0x4b59[_0x2db5d6];return _0x339a9f;};import{Plugin as _0x3ac4a7}from'ckeditor5/src/core';import{ListView as _0xdfd444,ListItemView as _0x39f459,ButtonView as _0x2622e2,createDropdown as _0x5a3378}from'ckeditor5/src/ui';import _0x125a6f from'../../revisiontracker';import _0x2a9ac2 from'./revisionhistorysaverevisionformview';import _0x129150 from'../../../theme/icons/revision-history.svg';import{getTranslation as _0x201c09}from'../../utils/common-translations';export default class y extends _0x3ac4a7{static get[_0x339a('0xf')](){return _0x339a('0x6');}static get[_0x339a('0xd')](){return[_0x125a6f];}[_0x339a('0x13')](){const _0xc9c24c=this['editor'],_0x576593=_0xc9c24c['plugins'][_0x339a('0xb')](_0x339a('0xe'));_0xc9c24c['ui']['componentFactory'][_0x339a('0x21')](_0x339a('0x3'),_0x3936dc=>{const _0x1b4532=_0x5a3378(_0x3936dc),_0x301a8b=_0x1b4532[_0x339a('0x14')][_0x339a('0x2')],_0x15c651=new _0xdfd444(_0x3936dc),_0x4789ac=new _0x39f459(_0x3936dc),_0x57f3c3=new _0x2622e2(_0x3936dc),_0x9b8383=new _0x39f459(_0x3936dc),_0x403a0c=new _0x2622e2(_0x3936dc),_0x4be664=new _0x2a9ac2(_0x3936dc);function _0x47e923(){_0x301a8b[_0x339a('0x18')]&&_0x301a8b[_0x339a('0x17')](0x0),_0x301a8b[_0x339a('0x21')](_0x15c651);}function _0x18ed23(){_0x1b4532[_0x339a('0x7')]=!0x1,_0xc9c24c[_0x339a('0x4')]['view'][_0x339a('0x8')]();}return _0x1b4532[_0x339a('0x5')](_0x339a('0x9'))['to'](_0x576593,_0x339a('0x1f'),_0x576593,'isEnabled',_0xc9c24c,_0x339a('0x1e'),(_0x5d043b,_0x1103d2,_0x4d62c2)=>_0x5d043b&&_0x1103d2&&!_0x4d62c2),_0x1b4532[_0x339a('0x11')][_0x339a('0x1d')]({'icon':_0x129150,'label':_0x201c09(_0x3936dc,_0x339a('0x1a')),'tooltip':!0x0}),_0x57f3c3[_0x339a('0x1d')]({'label':_0x201c09(_0x3936dc,_0x339a('0x20')),'withText':!0x0}),_0x57f3c3[_0x339a('0x5')](_0x339a('0x9'))['to'](_0x576593,_0x339a('0x1f'),_0x576593,_0x339a('0x9'),_0xc9c24c,_0x339a('0x1e'),(_0xf9856e,_0x425ebe,_0x4e27d7)=>_0xf9856e&&_0x425ebe&&!_0x4e27d7),_0x57f3c3['on'](_0x339a('0x1c'),()=>function(){_0x301a8b[_0x339a('0x18')]&&_0x301a8b['remove'](0x0),(_0x4be664[_0x339a('0xc')](),_0x301a8b[_0x339a('0x21')](_0x4be664),_0x4be664['focus']());}()),_0x403a0c[_0x339a('0x1d')]({'label':_0x201c09(_0x3936dc,_0x339a('0x10')),'withText':!0x0}),_0x403a0c['bind'](_0x339a('0x9'))['to'](_0x576593,_0x339a('0x1f'),_0xc9c24c,_0x339a('0x1e'),(_0x4636a4,_0x57229c)=>_0x4636a4&&!_0x57229c),_0x403a0c['on']('execute',()=>{_0xc9c24c[_0x339a('0x19')][_0x339a('0xb')](_0x339a('0x3'))['showRevisionViewerCallback'](),_0x18ed23();}),_0x4789ac[_0x339a('0x2')][_0x339a('0x21')](_0x57f3c3),_0x9b8383[_0x339a('0x2')][_0x339a('0x21')](_0x403a0c),_0x15c651['items'][_0x339a('0x0')]([_0x4789ac,_0x9b8383]),_0x1b4532['on']('change:isOpen',()=>_0x47e923()),_0x4be664[_0x339a('0x1')][_0x339a('0x5')](_0x339a('0x9'))['to'](_0x576593,_0x339a('0x1f'),_0x576593,_0x339a('0x9'),_0xc9c24c,_0x339a('0x1e'),(_0xd9beae,_0x341bea,_0x13b1f4)=>_0xd9beae&&_0x341bea&&!_0x13b1f4),_0x4be664['on'](_0x339a('0x15'),()=>(_0xc9c24c[_0x339a('0x12')][_0x339a('0xb')](_0x125a6f)[_0x339a('0xa')]({'name':_0x4be664['revisionName']}),void _0x18ed23())),_0x4be664['on'](_0x339a('0x16'),()=>_0x47e923()),_0x4be664[_0x339a('0x1b')](),_0x47e923(),_0x1b4532;});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xbf22=['action','Name\x20this\x20revision','Restore\x20this\x20revision','add','repository','map','_handleEditorDataReady','getEarlierVisibleRevision','Compare\x20against\x20selected','getRevision','listenTo','availableRevisionActions','_handleRevisionSelected','getLaterVisibleRevision','remove','compareAgainstSelected','isVisible','string','revisionHistory.revisionActions','setName','_revisionViewer','assign','plugins','RevisionsSidebar','revisionSetName','_handleRevisionSetName','_handleDiffChange','isEnabled','timePeriodViews','revisionViews','highlightRevisions','get','diff','destroy','revisionHistory.viewerSidebarContainer','requires','_revisionsRepository','getRevisionsInDiff','nameRevision','select','appendChild','element','isSelected','_createRevisionActions','length','pluginName','config','ready','editor','selectRevision','newRevisionId','change:diff','getIndex','_sidebarView','bind','init','_revisions','data','restoreRevisionCallback','fieldView','revisionHistory','defaultRevisionActions','focus','compare','render','isReady'];(function(_0x3bf460,_0xbf22d9){const _0xc42cc4=function(_0x3507b0){while(--_0x3507b0){_0x3bf460['push'](_0x3bf460['shift']());}};_0xc42cc4(++_0xbf22d9);}(_0xbf22,0x160));const _0xc42c=function(_0x3bf460,_0xbf22d9){_0x3bf460=_0x3bf460-0x0;let _0xc42cc4=_0xbf22[_0x3bf460];return _0xc42cc4;};import{Plugin as _0x132311}from'ckeditor5/src/core';import _0x5cbe97 from'./revisionssidebarview';import _0x339c50 from'../../revisionviewer';export default class w extends _0x132311{static get[_0xc42c('0x17')](){return _0xc42c('0x1');}static get[_0xc42c('0xd')](){return[_0x339c50];}constructor(_0x5bcc0e){super(_0x5bcc0e),this[_0xc42c('0x40')]=_0x5bcc0e[_0xc42c('0x0')]['get'](_0x339c50),this[_0xc42c('0xe')]=this['_revisionViewer'][_0xc42c('0x30')],this[_0xc42c('0x1f')]=null;}[_0xc42c('0x21')](){const _0x1185a2=this['_revisionsRepository'][_0xc42c('0x22')],_0x33e5af=this[_0xc42c('0x15')](),_0x4fd24f=this[_0xc42c('0x1a')]['config']['get'](_0xc42c('0xc'));this[_0xc42c('0x1f')]=new _0x5cbe97(this[_0xc42c('0x1a')]['locale'],_0x1185a2,_0x33e5af),this[_0xc42c('0x1f')]['on']('revisionSelected',this[_0xc42c('0x38')][_0xc42c('0x20')](this)),this[_0xc42c('0x1f')]['on'](_0xc42c('0x2'),this[_0xc42c('0x3')][_0xc42c('0x20')](this)),this[_0xc42c('0x1f')][_0xc42c('0x20')](_0xc42c('0x5'))['to'](this[_0xc42c('0x40')]),this[_0xc42c('0x1f')][_0xc42c('0x6')]['on'](_0xc42c('0x2f'),(_0x32bc66,_0x209992)=>{_0x209992[_0xc42c('0x7')]['on'](_0xc42c('0x2f'),(_0x2547a1,_0x22d44b)=>{_0x22d44b[_0xc42c('0x20')](_0xc42c('0x5'),_0xc42c('0x2b'))['to'](this[_0xc42c('0x40')]);});}),this['_sidebarView'][_0xc42c('0x2a')](),this['listenTo'](this[_0xc42c('0x1a')][_0xc42c('0x23')],_0xc42c('0x19'),this[_0xc42c('0x32')][_0xc42c('0x20')](this)),this[_0xc42c('0x36')](this[_0xc42c('0x40')],_0xc42c('0x1d'),this[_0xc42c('0x4')][_0xc42c('0x20')](this)),_0x4fd24f[_0xc42c('0x12')](this['_sidebarView'][_0xc42c('0x13')]);}[_0xc42c('0xb')](){this['_sidebarView']['element'][_0xc42c('0x3a')](),this['_sidebarView'][_0xc42c('0xb')]();}['_handleEditorDataReady'](){const _0x296cde=this[_0xc42c('0xe')][_0xc42c('0x35')](0x0);if(_0x296cde){const _0x3c79ec=this[_0xc42c('0xe')][_0xc42c('0x33')](_0x296cde['id']);this[_0xc42c('0x40')][_0xc42c('0x29')](_0x296cde,_0x3c79ec);}}[_0xc42c('0x38')](_0x4043c6,_0x52820e){const _0x3dd651=this[_0xc42c('0xe')][_0xc42c('0x35')](_0x52820e['id']),_0x4eddc4=this['_revisionsRepository'][_0xc42c('0x33')](_0x3dd651['id']);this[_0xc42c('0x40')]['compare'](_0x3dd651,_0x4eddc4);}[_0xc42c('0x3')](_0x50df6c,_0x305182){this[_0xc42c('0xe')][_0xc42c('0x35')](_0x305182['id'])[_0xc42c('0x3f')](_0x305182['name']);}[_0xc42c('0x4')](_0x106939,_0x628487,_0x4495a6){const _0x1a7e7f=this[_0xc42c('0xe')][_0xc42c('0xf')](_0x4495a6);_0x1a7e7f[_0xc42c('0x16')]>0x2?(this[_0xc42c('0x1f')][_0xc42c('0x8')](_0x1a7e7f),this[_0xc42c('0x1f')]['selectRevision'](null)):(this['_sidebarView'][_0xc42c('0x8')]([]),this[_0xc42c('0x1f')][_0xc42c('0x1b')](_0x1a7e7f[0x0]));}[_0xc42c('0x15')](){const _0x4a0726=this[_0xc42c('0x1a')],_0x32301a=w[_0xc42c('0x37')],_0x293169=_0x4a0726[_0xc42c('0x18')][_0xc42c('0x9')](_0xc42c('0x3e'))||w[_0xc42c('0x27')];if(_0x293169[_0xc42c('0x16')])return _0x293169[_0xc42c('0x31')](_0x2cbbd4=>{const _0x35060e=_0xc42c('0x3d')==typeof _0x2cbbd4?Object[_0xc42c('0x41')]({},_0x32301a[_0x2cbbd4]):_0x2cbbd4;return _0x35060e[_0xc42c('0x2c')]=_0x35060e[_0xc42c('0x2c')][_0xc42c('0x20')](this,_0x4a0726),_0x35060e['isVisible']&&(_0x35060e[_0xc42c('0x3c')]=_0x35060e['isVisible'][_0xc42c('0x20')](this,_0x4a0726)),_0x35060e;});}}w['availableRevisionActions']={'compareAgainstSelected':{'name':_0xc42c('0x34'),'action':({plugins:_0x360e06},_0x311d57)=>{const _0x2d98a=_0x360e06[_0xc42c('0x9')](_0x339c50),_0xcd1e87=_0x2d98a[_0xc42c('0x30')];let _0x2f2520=_0x2d98a[_0xc42c('0xa')][_0xc42c('0x1c')],_0x2d9c7e=_0x311d57['id'];_0xcd1e87[_0xc42c('0x1e')](_0x2f2520)>_0xcd1e87[_0xc42c('0x1e')](_0x2d9c7e)&&([_0x2f2520,_0x2d9c7e]=[_0x2d9c7e,_0x2f2520]),_0x2d98a['compare'](_0x2f2520,_0x2d9c7e);},'isVisible':({plugins:_0x232f07},_0x21a900)=>{const _0x5b2d21=_0x232f07[_0xc42c('0x9')](_0x339c50);return!(_0x5b2d21[_0xc42c('0x30')]['getRevisionsInDiff'](_0x5b2d21[_0xc42c('0xa')])[_0xc42c('0x16')]>0x2)&&!_0x21a900[_0xc42c('0x14')];}},'restoreRevision':{'name':_0xc42c('0x2e'),'action':(_0x4c78cf,{id:_0x2b19c7})=>{_0x4c78cf[_0xc42c('0x18')]['get'](_0xc42c('0x26'))[_0xc42c('0x24')](_0x2b19c7);},'isVisible':({plugins:_0x2275c5},_0x3613cb)=>!!_0x2275c5[_0xc42c('0x9')](_0x339c50)[_0xc42c('0x30')][_0xc42c('0x39')](_0x3613cb['id'])},'nameRevision':{'name':_0xc42c('0x2d'),'action':({plugins:_0x53da4d},{id:_0x58edb3,revisionNameView:_0x5f5cb2})=>{const _0x4fe35f=_0x53da4d[_0xc42c('0x9')](_0x339c50),_0x1764f6=_0x4fe35f[_0xc42c('0x30')][_0xc42c('0x33')](_0x58edb3);_0x4fe35f[_0xc42c('0x29')](_0x58edb3,_0x1764f6),_0x5f5cb2[_0xc42c('0x28')](),_0x5f5cb2[_0xc42c('0x25')][_0xc42c('0x11')]();}}},w[_0xc42c('0x27')]=[_0xc42c('0x3b'),'restoreRevision',_0xc42c('0x10')];
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{View as
|
|
23
|
+
const _0x18f6=['div','Revision\x20history','setTemplate','ck-revision-history-sidebar__header__label','ck-reset_all'];(function(_0xd5744,_0x18f66c){const _0x147a3a=function(_0x186518){while(--_0x186518){_0xd5744['push'](_0xd5744['shift']());}};_0x147a3a(++_0x18f66c);}(_0x18f6,0x67));const _0x147a=function(_0xd5744,_0x18f66c){_0xd5744=_0xd5744-0x0;let _0x147a3a=_0x18f6[_0xd5744];return _0x147a3a;};import{View as _0x495b6b,IconView as _0x4848d8}from'ckeditor5/src/ui';import{getTranslation as _0x4684c5}from'../../utils/common-translations';import _0xbf52c8 from'../../../theme/icons/revision-history.svg';import'../../../theme/revisionssidebar/revisionssidebarheader.css';export default class cs extends _0x495b6b{constructor(_0x1fe872){super(_0x1fe872);const _0x5d1363=new _0x4848d8(_0x1fe872);_0x5d1363['content']=_0xbf52c8,this[_0x147a('0x4')]({'tag':_0x147a('0x2'),'attributes':{'class':['ck',_0x147a('0x1'),'ck-revision-history-sidebar__header']},'children':[_0x5d1363,{'tag':'span','attributes':{'class':['ck',_0x147a('0x0')]},'children':[_0x4684c5(_0x1fe872,_0x147a('0x3'))]}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4e33=['addRevision','find','add','span','delegate','localizedPeriodName','removeRevision','ck-revision-history-sidebar__time-period__revisions','uiLanguage','startDate','remove','select','div','_revisionActions','setName','ck-revision-history-sidebar__time-period__label','revisionViews','createCollection'];(function(_0x555cf1,_0x4e3347){const _0x3b2678=function(_0x3684e9){while(--_0x3684e9){_0x555cf1['push'](_0x555cf1['shift']());}};_0x3b2678(++_0x4e3347);}(_0x4e33,0x1ca));const _0x3b26=function(_0x555cf1,_0x4e3347){_0x555cf1=_0x555cf1-0x0;let _0x3b2678=_0x4e33[_0x555cf1];return _0x3b2678;};import{View as _0x4134d8}from'ckeditor5/src/ui';import _0x3396a8 from'../revision/revisionview';import{getDateTimePeriodInfo as _0x8b0296}from'./utils';import'../../../theme/revisionssidebar/revisionssidebartimeperiod.css';export default class pi extends _0x4134d8{constructor(_0xa6cd5b,_0x2cb752,_0xb8d22f){super(_0xa6cd5b);const _0x4c420c=_0x8b0296(_0x2cb752,this['locale'][_0x3b26('0x0')])[_0x3b26('0xf')];this[_0x3b26('0x1')]=_0x2cb752,this[_0x3b26('0x5')]=_0xb8d22f,this[_0x3b26('0x8')]=this[_0x3b26('0x9')](),this[_0x3b26('0x8')][_0x3b26('0xe')](_0x3b26('0x3'))['to'](this),this['revisionViews'][_0x3b26('0xe')](_0x3b26('0x6'))['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period']},'children':[{'tag':_0x3b26('0xd'),'attributes':{'class':['ck',_0x3b26('0x7')]},'children':[{'text':_0x4c420c}]},{'tag':_0x3b26('0x4'),'attributes':{'class':['ck',_0x3b26('0x11')]},'children':this[_0x3b26('0x8')]}]});}[_0x3b26('0xa')](_0x577c84){const _0x490bab=new _0x3396a8(this['locale'],_0x577c84,this[_0x3b26('0x5')]);this['revisionViews'][_0x3b26('0xc')](_0x490bab);}[_0x3b26('0x10')](_0xd3e8f){const _0x6f2c97=this['revisionViews'][_0x3b26('0xb')](_0x239836=>_0x239836['id']===_0xd3e8f['id']);this[_0x3b26('0x8')][_0x3b26('0x2')](_0x6f2c97);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4c9d=['unhighlight','ck-revision-history-sidebar','some','revisionViews','getTime','_revisions','remove','bindTemplate','select','find','delegate','removeRevision','flat','ck-disabled','createCollection','add','locale','ck-revision-history-sidebar__timeline','highlight','_addRevision','timePeriodViews','render','_removeRevision','set','fire','setName','startDate','ck-rounded-corners','addRevision','revisionSetName','isEnabled','map','_revisionActions','selectRevision','_getTimePeriodViewByStartDate','get'];(function(_0x17abf8,_0x4c9dc6){const _0x2a4b98=function(_0xa9a417){while(--_0xa9a417){_0x17abf8['push'](_0x17abf8['shift']());}};_0x2a4b98(++_0x4c9dc6);}(_0x4c9d,0xc7));const _0x2a4b=function(_0x17abf8,_0x4c9dc6){_0x17abf8=_0x17abf8-0x0;let _0x2a4b98=_0x4c9d[_0x17abf8];return _0x2a4b98;};import{View as _0x337a7b}from'ckeditor5/src/ui';import _0x33da07 from'./revisionssidebartimeperiodview';import _0x5cc5f9 from'./revisionssidebarheaderview';import{getDateTimePeriodInfo as _0x2de010}from'./utils';import'../../../theme/revisionssidebar/revisionssidebar.css';export default class vi extends _0x337a7b{constructor(_0x22cc06,_0x77d616,_0x595056){super(_0x22cc06);const _0x17c265=this[_0x2a4b('0x18')];this['timePeriodViews']=this[_0x2a4b('0x1f')](),this[_0x2a4b('0x1')][_0x2a4b('0x1b')](_0x2a4b('0x19'))['to'](this),this['timePeriodViews'][_0x2a4b('0x1b')](_0x2a4b('0x6'))['to'](this),this[_0x2a4b('0x16')]=_0x77d616,this['_revisionActions']=_0x595056,this['on'](_0x2a4b('0x19'),(_0x57eacb,_0x1d0f56)=>{this[_0x2a4b('0x5')]('revisionSelected',_0x1d0f56);}),this['on'](_0x2a4b('0x6'),(_0x2d32f5,_0x385367)=>{this[_0x2a4b('0x5')](_0x2a4b('0xa'),_0x385367);}),this[_0x2a4b('0x4')]('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset',_0x2a4b('0x8'),_0x2a4b('0x12')]},'children':[new _0x5cc5f9(_0x22cc06),{'tag':'div','attributes':{'class':['ck',_0x2a4b('0x22'),_0x17c265['if'](_0x2a4b('0xb'),_0x2a4b('0x1e'),_0x465d7c=>!_0x465d7c)]},'children':this['timePeriodViews']}]});}['render'](){super[_0x2a4b('0x2')]();for(const _0x3d5fdd of this[_0x2a4b('0x16')])this[_0x2a4b('0x0')](_0x3d5fdd);this[_0x2a4b('0x16')]['on'](_0x2a4b('0x20'),(_0x14aae7,_0xa06356)=>{this[_0x2a4b('0x0')](_0xa06356);}),this['_revisions']['on'](_0x2a4b('0x17'),(_0x5af3c7,_0x19c757)=>{this[_0x2a4b('0x3')](_0x19c757);});}get[_0x2a4b('0x14')](){return this[_0x2a4b('0x1')][_0x2a4b('0xc')](_0x1f69d3=>_0x1f69d3[_0x2a4b('0x14')]['map'](_0x7e65a7=>_0x7e65a7))[_0x2a4b('0x1d')]();}[_0x2a4b('0xe')](_0x5398d1){for(const _0x5affc3 of this[_0x2a4b('0x14')])_0x5398d1&&_0x5398d1['id']===_0x5affc3['id']?_0x5affc3[_0x2a4b('0x19')]():_0x5affc3['deselect']();}['highlightRevisions'](_0x4c1763){for(const _0x384fe9 of this[_0x2a4b('0x14')])_0x4c1763[_0x2a4b('0x13')](({id:_0x2a89e7})=>_0x2a89e7===_0x384fe9['id'])?_0x384fe9[_0x2a4b('0x23')]():_0x384fe9[_0x2a4b('0x11')]();}[_0x2a4b('0x0')](_0x24a330){const _0x1816da=_0x2de010(_0x24a330['createdAt'])[_0x2a4b('0x7')];let _0x31bf23=this[_0x2a4b('0x1')][_0x2a4b('0x10')](0x0);_0x31bf23&&_0x31bf23[_0x2a4b('0x7')][_0x2a4b('0x15')]()===_0x1816da[_0x2a4b('0x15')]()||(_0x31bf23=new _0x33da07(this[_0x2a4b('0x21')],_0x1816da,this[_0x2a4b('0xd')]),this['timePeriodViews'][_0x2a4b('0x20')](_0x31bf23)),_0x31bf23[_0x2a4b('0x9')](_0x24a330);}[_0x2a4b('0x3')](_0x1c8c58){const _0x4db51f=_0x2de010(_0x1c8c58['createdAt'])[_0x2a4b('0x7')];this['_getTimePeriodViewByStartDate'](_0x4db51f)[_0x2a4b('0x1c')](_0x1c8c58);}[_0x2a4b('0xf')](_0x1cfae3){return this[_0x2a4b('0x1')][_0x2a4b('0x1a')](_0x251bab=>_0x251bab[_0x2a4b('0x7')]['getTime']()===_0x1cfae3[_0x2a4b('0x15')]());}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3987=['week','minus','setLocale','year','hasSame','day','startOf','toRelativeCalendar','monthLong','local','weekdayLong','toJSDate','month'];(function(_0x3357db,_0x3987cd){const _0x38b9f2=function(_0x166f20){while(--_0x166f20){_0x3357db['push'](_0x3357db['shift']());}};_0x38b9f2(++_0x3987cd);}(_0x3987,0x13b));const _0x38b9=function(_0x3357db,_0x3987cd){_0x3357db=_0x3357db-0x0;let _0x38b9f2=_0x3987[_0x3357db];return _0x38b9f2;};import{DateTime as _0x36afc5}from'luxon';export function getDateTimePeriodInfo(_0x33830e,_0xdb79c9){_0x33830e=_0x36afc5['fromJSDate'](_0x33830e)[_0x38b9('0xc')](_0xdb79c9);const _0x33aa52=_0x36afc5[_0x38b9('0x6')](),_0x8be959=_0x33aa52[_0x38b9('0xb')]({'days':0x1})[_0x38b9('0x3')]('day');let _0x1c7c29,_0x4bfecb;return _0x33830e['hasSame'](_0x33aa52,_0x38b9('0x2'))?(_0x1c7c29=_0x33830e[_0x38b9('0x3')](_0x38b9('0x2'))['toJSDate'](),_0x4bfecb=_0x33830e[_0x38b9('0x4')]()):_0x33830e['hasSame'](_0x8be959,_0x38b9('0x2'))?(_0x1c7c29=_0x8be959[_0x38b9('0x8')](),_0x4bfecb=_0x33830e['toRelativeCalendar']()):_0x33830e[_0x38b9('0x1')](_0x33aa52,_0x38b9('0xa'))?(_0x1c7c29=_0x33830e[_0x38b9('0x3')]('week')[_0x38b9('0x8')](),_0x4bfecb=_0x33830e[_0x38b9('0x7')]):_0x33830e['hasSame'](_0x33aa52,_0x38b9('0x0'))?(_0x1c7c29=_0x33830e[_0x38b9('0x3')](_0x38b9('0x9'))[_0x38b9('0x8')](),_0x4bfecb=_0x33830e[_0x38b9('0x5')]):(_0x1c7c29=_0x33830e[_0x38b9('0x3')]('year')[_0x38b9('0x8')](),_0x4bfecb=_0x33830e[_0x38b9('0x0')]),{'startDate':_0x1c7c29,'localizedPeriodName':_0x4bfecb};}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{View as
|
|
23
|
+
const _0x31b1=['setTemplate','isSuggestion','data','ck-revision-change__label','ck-annotation','ck-revision-change__','element','Removed\x20by','focus','_model','author','span','Suggested\x20by','type','bindTemplate','ck-revision-change','set','add'];(function(_0x1cec93,_0x31b1cc){const _0x138f57=function(_0x44d188){while(--_0x44d188){_0x1cec93['push'](_0x1cec93['shift']());}};_0x138f57(++_0x31b1cc);}(_0x31b1,0xdd));const _0x138f=function(_0x1cec93,_0x31b1cc){_0x1cec93=_0x1cec93-0x0;let _0x138f57=_0x31b1[_0x1cec93];return _0x138f57;};import{View as _0x3f8c60}from'ckeditor5/src/ui';import{getTranslation as _0x254182}from'../../utils/common-translations';export default class G extends _0x3f8c60{constructor(_0x465b3f,_0x4089f3){super(_0x465b3f),this[_0x138f('0x4')]=_0x4089f3;const _0x169f65=this[_0x138f('0x9')],_0x53889a=_0x254182(_0x465b3f,_0x4089f3[_0x138f('0xf')][_0x138f('0xe')]?_0x138f('0x7'):_0x138f('0xc')==_0x4089f3[_0x138f('0x8')]?'Added\x20by':_0x138f('0x2'));this[_0x138f('0xb')](_0x138f('0x8'),_0x4089f3[_0x138f('0x8')]),this[_0x138f('0xd')]({'tag':'div','attributes':{'class':[_0x138f('0x11'),_0x138f('0xa'),_0x169f65['to'](_0x138f('0x8'),_0x59959d=>_0x138f('0x0')+_0x59959d)],'tabindex':-0x1},'children':[{'tag':_0x138f('0x6'),'children':[{'tag':_0x138f('0x6'),'attributes':{'class':[_0x138f('0x10')]},'children':[{'text':_0x53889a}]},{'text':'\x20'+_0x4089f3[_0x138f('0x5')]['name']}]}]});}[_0x138f('0x3')](){this[_0x138f('0x1')][_0x138f('0x3')]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{View as
|
|
23
|
+
const _0x1f04=['currentChangeNumber','backward','forward','isBackwardNavigationEnabled','setTemplate','fire','span','ck-revision-history-ui','bind','ck-hidden','isReady','Total','numberOfChanges','_statusText','execute','div','X_OF_Y_CHANGES','ck-revision-history-ui__changes-navigation','bindTemplate','Show\x20previous\x20change','No\x20changes','set','isEnabled','Show\x20next\x20change','_isStatusLabelVisible','isNavigationMode','ck-revision-history-ui__changes-navigation__navigation'];(function(_0xa3c1eb,_0x1f0491){const _0x220469=function(_0x1831c9){while(--_0x1831c9){_0xa3c1eb['push'](_0xa3c1eb['shift']());}};_0x220469(++_0x1f0491);}(_0x1f04,0x8e));const _0x2204=function(_0xa3c1eb,_0x1f0491){_0xa3c1eb=_0xa3c1eb-0x0;let _0x220469=_0x1f04[_0xa3c1eb];return _0x220469;};import{View as _0x165b51,ButtonView as _0x5da276,ToolbarSeparatorView as _0x2b4d0a}from'ckeditor5/src/ui';import{getTranslation as _0xdbfe88}from'../../utils/common-translations';import _0x241840 from'../../../theme/icons/arrow-up.svg';import _0x2b81d7 from'../../../theme/icons/arrow-down.svg';import'../../../theme/changesnavigation.css';export default class bi extends _0x165b51{constructor(_0x4867e0){super(_0x4867e0);const _0x9d9239=this[_0x2204('0xb')],_0x419a55=new _0x5da276(_0x4867e0),_0x403317=new _0x5da276(_0x4867e0);this['set'](_0x2204('0x12'),!0x1),this[_0x2204('0xe')]('isReady',!0x1),this[_0x2204('0xe')]('currentChangeNumber',0x0),this['set'](_0x2204('0x5'),0x0),this['set']('isForwardNavigationEnabled',!0x1),this[_0x2204('0xe')](_0x2204('0x17'),!0x1),this[_0x2204('0x1')](_0x2204('0x11'))['to'](this,_0x2204('0x3'),this,_0x2204('0x5'),(_0x3ad1d9,_0xa1f81)=>_0x3ad1d9&&_0xa1f81>0x0),this[_0x2204('0x1')](_0x2204('0x6'))['to'](this,_0x2204('0x3'),this,_0x2204('0x14'),this,_0x2204('0x5'),this,'isNavigationMode',(_0x1b5798,_0x3f9b82,_0x144fd7,_0x5dc6cc)=>{if(!_0x1b5798)return _0xdbfe88(_0x4867e0,'Loading...');if(!_0x144fd7)return _0xdbfe88(_0x4867e0,_0x2204('0xd'));const _0x5b9071=_0xdbfe88(_0x4867e0,'NUMBER_OF_CHANGES',_0x144fd7);return _0x5dc6cc?_0xdbfe88(_0x4867e0,_0x2204('0x9'),[_0x3f9b82+0x1,_0x144fd7]):_0x5b9071;}),_0x419a55[_0x2204('0xe')]({'label':_0xdbfe88(_0x4867e0,_0x2204('0xc')),'tooltip':!0x0,'icon':_0x241840}),_0x403317[_0x2204('0xe')]({'label':_0xdbfe88(_0x4867e0,_0x2204('0x10')),'tooltip':!0x0,'icon':_0x2b81d7}),_0x419a55[_0x2204('0x1')](_0x2204('0xf'))['to'](this,_0x2204('0x17')),_0x403317[_0x2204('0x1')]('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x419a55['on'](_0x2204('0x7'),()=>this[_0x2204('0x19')](_0x2204('0x7'),_0x2204('0x15'))),_0x403317['on'](_0x2204('0x7'),()=>this[_0x2204('0x19')](_0x2204('0x7'),_0x2204('0x16'))),this[_0x2204('0x18')]({'tag':_0x2204('0x8'),'attributes':{'class':['ck',_0x2204('0x0'),_0x2204('0xa')]},'children':[{'tag':_0x2204('0x1a'),'attributes':{'class':['ck-revision-history-ui__changes-navigation__wrapper']},'children':[{'tag':_0x2204('0x1a'),'attributes':{'class':['ck-revision-history-ui__changes-navigation__label',_0x9d9239['if']('_isStatusLabelVisible',_0x2204('0x2'),_0x1d2d48=>!_0x1d2d48)]},'children':[{'text':_0x9d9239['to'](_0x2204('0x12'),_0x8eb892=>_0x8eb892?_0xdbfe88(_0x4867e0,'EDIT_X_OF_Y_REVISIONS')+':\x20':_0xdbfe88(_0x4867e0,_0x2204('0x4'))+':\x20')}]},{'text':_0x9d9239['to']('_statusText')}]},new _0x2b4d0a(),{'tag':_0x2204('0x8'),'attributes':{'class':[_0x2204('0x13')]},'children':[_0x419a55,_0x403317]}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5784=['document','roots','hide','change','removeClass','show','addClass','editor','ck-editor__editable__loading-overlay','RevisionViewerLoadingOverlay','editing','view'];(function(_0x4614d7,_0x578457){const _0x2f8e57=function(_0x3f0b8e){while(--_0x3f0b8e){_0x4614d7['push'](_0x4614d7['shift']());}};_0x2f8e57(++_0x578457);}(_0x5784,0x18a));const _0x2f8e=function(_0x4614d7,_0x578457){_0x4614d7=_0x4614d7-0x0;let _0x2f8e57=_0x5784[_0x4614d7];return _0x2f8e57;};import{Plugin as _0x20430e}from'ckeditor5/src/core';import'../../../theme/revisionviewerloadingoverlay.css';export default class ee extends _0x20430e{static get['pluginName'](){return _0x2f8e('0xb');}[_0x2f8e('0x7')](){const _0x39ece3=this['editor'][_0x2f8e('0x0')]['view'];_0x39ece3['change'](_0x4a5193=>{for(const _0x3133cd of _0x39ece3[_0x2f8e('0x2')][_0x2f8e('0x3')])_0x4a5193[_0x2f8e('0x8')](_0x2f8e('0xa'),_0x3133cd);});}[_0x2f8e('0x4')](){const _0x1b46b9=this[_0x2f8e('0x9')][_0x2f8e('0x0')][_0x2f8e('0x1')];_0x1b46b9[_0x2f8e('0x5')](_0x1adb26=>{for(const _0x179ce6 of _0x1b46b9[_0x2f8e('0x2')][_0x2f8e('0x3')])_0x1adb26[_0x2f8e('0x6')](_0x2f8e('0xa'),_0x179ce6);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
const _0xccf2=['isReady','add','requires','hide','restoreRevision','show','showPreviousChange','bind','execute','isEnabled','commands','closeRevisionViewerCallback','Restore\x20this\x20revision','currentChangeNumber','pluginName','set','showNextChange','revisionHistory','isBackwardNavigationEnabled','numberOfChanges','isNavigationMode','ck-revision-history-ui__back-to-editing','listenTo','forward','exitToEditing','plugins','init','componentFactory','config','get','changesNavigation','RevisionViewerUI','editor'];(function(_0x4d6742,_0xccf279){const _0x2d91f7=function(_0x441421){while(--_0x441421){_0x4d6742['push'](_0x4d6742['shift']());}};_0x2d91f7(++_0xccf279);}(_0xccf2,0x1a9));const _0x2d91=function(_0x4d6742,_0xccf279){_0x4d6742=_0x4d6742-0x0;let _0x2d91f7=_0xccf2[_0x4d6742];return _0x2d91f7;};import{Plugin as _0x11e488}from'ckeditor5/src/core';import{ButtonView as _0x18cca8}from'ckeditor5/src/ui';import _0x394cc7 from'./changesnavigationview';import _0x12f414 from'./../../revisionviewer';import _0x31786a from'./revisionviewerloadingoverlay';import{getTranslation as _0x38855e}from'../../utils/common-translations';import _0xedc1b6 from'@ckeditor/ckeditor5-undo/theme/icons/undo.svg';import'../../../theme/revisionviewer.css';export default class R extends _0x11e488{static get[_0x2d91('0x12')](){return _0x2d91('0x2');}static get[_0x2d91('0x6')](){return[_0x12f414,_0x31786a];}[_0x2d91('0x1e')](){const _0x458160=this[_0x2d91('0x3')],_0x4de31c=_0x458160[_0x2d91('0x1d')][_0x2d91('0x0')](_0x12f414),_0x1f60b8=_0x458160[_0x2d91('0x1d')][_0x2d91('0x0')](_0x31786a);_0x458160['ui']['componentFactory'][_0x2d91('0x5')](_0x2d91('0x1c'),_0x19375a=>{const _0x395f39=new _0x18cca8(_0x19375a);return _0x395f39[_0x2d91('0x13')]({'label':_0x38855e(_0x19375a,'Back\x20to\x20editing'),'icon':_0xedc1b6,'withText':!0x0,'tooltip':!0x0,'class':_0x2d91('0x19')}),this[_0x2d91('0x1a')](_0x395f39,_0x2d91('0xc'),()=>{_0x458160[_0x2d91('0x20')]['get'](_0x2d91('0x15'))[_0x2d91('0xf')]();}),_0x395f39;}),_0x458160['ui']['componentFactory'][_0x2d91('0x5')](_0x2d91('0x8'),_0x4c357a=>{const _0x48cbe0=new _0x18cca8(_0x4c357a);return _0x48cbe0['set']({'label':_0x38855e(_0x4c357a,_0x2d91('0x10')),'withText':!0x0,'tooltip':!0x0}),_0x48cbe0[_0x2d91('0xb')](_0x2d91('0xd'))['to'](_0x458160[_0x2d91('0xe')][_0x2d91('0x0')](_0x2d91('0x8'))),this[_0x2d91('0x1a')](_0x48cbe0,_0x2d91('0xc'),()=>_0x458160[_0x2d91('0xc')](_0x2d91('0x8'))),_0x48cbe0;}),_0x458160['ui'][_0x2d91('0x1f')][_0x2d91('0x5')](_0x2d91('0x1'),_0x37d112=>{const _0x838921=new _0x394cc7(_0x37d112),_0x2ec15e=_0x458160[_0x2d91('0xe')][_0x2d91('0x0')](_0x2d91('0xa')),_0x531302=_0x458160['commands'][_0x2d91('0x0')](_0x2d91('0x14'));return _0x838921['bind'](_0x2d91('0x16'))['to'](_0x2ec15e,_0x2d91('0xd')),_0x838921[_0x2d91('0xb')]('isForwardNavigationEnabled')['to'](_0x531302,_0x2d91('0xd')),_0x838921[_0x2d91('0xb')](_0x2d91('0x4'),_0x2d91('0x11'),_0x2d91('0x17'),_0x2d91('0x18'))['to'](_0x4de31c),this['listenTo'](_0x838921,_0x2d91('0xc'),(_0x430665,_0x519080)=>{_0x458160['execute'](_0x2d91('0x1b')===_0x519080?'showNextChange':_0x2d91('0xa'));}),_0x838921;}),_0x1f60b8['show'](),_0x4de31c['on']('change:isReady',(_0x3a6bde,_0x34afa1,_0x455dc9)=>{_0x455dc9?_0x1f60b8[_0x2d91('0x7')]():_0x1f60b8[_0x2d91('0x9')]();});}}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
*
|
|
5
|
+
*
|
|
6
|
+
*
|
|
7
|
+
* +---------------------------------------------------------------------------------+
|
|
8
|
+
* | |
|
|
9
|
+
* | Hello stranger! |
|
|
10
|
+
* | |
|
|
11
|
+
* | |
|
|
12
|
+
* | What you're currently looking at is the source code of a legally protected, |
|
|
13
|
+
* | proprietary software. Any attempts to deobfuscate / disassemble this code |
|
|
14
|
+
* | are forbidden and will result in legal consequences. |
|
|
15
|
+
* | |
|
|
16
|
+
* | |
|
|
17
|
+
* +---------------------------------------------------------------------------------+
|
|
18
|
+
*
|
|
19
|
+
*
|
|
20
|
+
*
|
|
21
|
+
*
|
|
22
|
+
*/
|
|
23
|
+
export function getTranslation(_0x376483,_0x37e706,_0x5a6500){const t=_0x376483['t'];switch(_0x37e706){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'},_0x5a6500);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x5a6500);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'});}}
|
package/theme/revisionviewer.css
CHANGED
|
@@ -1,9 +1,3 @@
|
|
|
1
|
-
:root {
|
|
2
|
-
--ck-color-suggestion-box-deletion-border: hsl(345, 62%, 60%);
|
|
3
|
-
--ck-color-suggestion-box-insertion-border: hsl(128, 62%, 60%);
|
|
4
|
-
--ck-inline-annotation-container-width: auto;
|
|
5
|
-
}
|
|
6
|
-
|
|
7
1
|
.ck .ck-revision-change {
|
|
8
2
|
padding: var(--ck-spacing-small) var(--ck-spacing-large);
|
|
9
3
|
border-top-left-radius: var(--ck-border-radius);
|