@ckeditor/ckeditor5-revision-history 31.0.0 → 33.0.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 +2 -2
- package/lang/contexts.json +23 -22
- package/lang/translations/az.po +27 -23
- package/lang/translations/bs.po +124 -0
- package/lang/translations/cs.po +53 -49
- package/lang/translations/da.po +28 -24
- package/lang/translations/de-ch.po +27 -23
- package/lang/translations/de.po +29 -25
- package/lang/translations/el.po +123 -0
- package/lang/translations/en-au.po +27 -23
- package/lang/translations/en-gb.po +27 -23
- package/lang/translations/en.po +27 -23
- package/lang/translations/es.po +48 -44
- package/lang/translations/et.po +27 -23
- package/lang/translations/fa.po +27 -23
- package/lang/translations/fr.po +29 -25
- package/lang/translations/gl.po +29 -25
- package/lang/translations/he.po +27 -23
- package/lang/translations/hi.po +27 -23
- package/lang/translations/hr.po +30 -26
- package/lang/translations/hu.po +27 -23
- package/lang/translations/id.po +39 -35
- package/lang/translations/it.po +27 -23
- package/lang/translations/ja.po +27 -23
- package/lang/translations/ko.po +27 -23
- package/lang/translations/ku.po +27 -23
- package/lang/translations/lv.po +27 -23
- package/lang/translations/ne.po +27 -23
- package/lang/translations/nl.po +27 -23
- package/lang/translations/no.po +27 -23
- package/lang/translations/pl.po +31 -27
- package/lang/translations/pt-br.po +48 -44
- package/lang/translations/ro.po +30 -26
- package/lang/translations/ru.po +27 -23
- package/lang/translations/sk.po +27 -23
- package/lang/translations/sr-latn.po +27 -23
- package/lang/translations/sr.po +27 -23
- package/lang/translations/tk.po +27 -23
- package/lang/translations/tr.po +27 -23
- package/lang/translations/ug.po +27 -23
- package/lang/translations/uk.po +27 -23
- package/lang/translations/vi.po +27 -23
- package/lang/translations/zh-cn.po +27 -23
- package/lang/translations/zh.po +27 -23
- package/package.json +11 -11
- package/src/changeitem.js +2 -2
- package/src/revision.js +2 -2
- package/src/revisiondiff.js +2 -2
- package/src/revisionhistory.js +2 -2
- package/src/revisionsrepository.js +2 -2
- package/src/revisiontracker.js +2 -2
- package/src/revisionviewer.js +2 -2
- package/src/ui/revision/createrevisionactionsdropdown.js +2 -2
- package/src/ui/revision/revisionauthorview.js +2 -2
- package/src/ui/revision/revisionnameview.js +2 -2
- package/src/ui/revision/revisionview.js +2 -2
- package/src/ui/revision/subrevisioncollapserview.js +2 -2
- package/src/ui/revision/subrevisionview.js +2 -2
- package/src/ui/revision/utils.js +2 -2
- package/src/ui/revisionhistory/revisionhistorysaverevisionformview.js +2 -2
- package/src/ui/revisionhistory/revisionhistoryui.js +2 -2
- package/src/ui/revisionssidebar/revisionssidebar.js +2 -2
- package/src/ui/revisionssidebar/revisionssidebarheaderview.js +2 -2
- package/src/ui/revisionssidebar/revisionssidebartimeperiodview.js +2 -2
- package/src/ui/revisionssidebar/revisionssidebarview.js +2 -2
- package/src/ui/revisionssidebar/utils.js +2 -2
- package/src/ui/revisionviewer/changedetailsview.js +2 -2
- package/src/ui/revisionviewer/changesnavigationview.js +2 -2
- package/src/ui/revisionviewer/revisionviewerloadingoverlay.js +2 -2
- package/src/ui/revisionviewer/revisionviewerui.js +2 -2
- package/theme/revisionhistorysaverevisionform.css +1 -1
- package/theme/revisionviewer.css +0 -6
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2016 -
|
|
2
|
+
* Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2d78=['get','Compare\x20against\x20selected','defaultRevisionActions','highlightRevisions','bind','appendChild','getRevision','restoreRevision','remove','revisionHistory.viewerSidebarContainer','add','getRevisionsInDiff','Name\x20this\x20revision','action','compare','isVisible','setName','select','isEnabled','name','diff','newRevisionId','ready','revisionHistory.revisionActions','_sidebarView','revisionViews','revisionSelected','map','_revisions','_handleRevisionSelected','assign','selectRevision','_handleRevisionSetName','_handleDiffChange','_handleEditorDataReady','change:diff','string','getEarlierVisibleRevision','_revisionsRepository','destroy','editor','listenTo','element','timePeriodViews','_revisionViewer','nameRevision','pluginName','availableRevisionActions','Restore\x20this\x20revision','config','fieldView','length','focus','restoreRevisionCallback','revisionSetName','compareAgainstSelected'];(function(_0x3e223a,_0x2d78b4){const _0x260dab=function(_0x1de565){while(--_0x1de565){_0x3e223a['push'](_0x3e223a['shift']());}};_0x260dab(++_0x2d78b4);}(_0x2d78,0x169));const _0x260d=function(_0x3e223a,_0x2d78b4){_0x3e223a=_0x3e223a-0x0;let _0x260dab=_0x2d78[_0x3e223a];return _0x260dab;};import{Plugin as _0x29c01f}from'ckeditor5/src/core';import _0x7d9131 from'./revisionssidebarview';import _0x40374a from'../../revisionviewer';export default class y extends _0x29c01f{static get[_0x260d('0x15')](){return'RevisionsSidebar';}static get['requires'](){return[_0x40374a];}constructor(_0x22906f){super(_0x22906f),this[_0x260d('0x13')]=_0x22906f['plugins']['get'](_0x40374a),this[_0x260d('0xd')]=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x1cd03d=this[_0x260d('0xd')][_0x260d('0x3')],_0x1ea421=this['_createRevisionActions'](),_0x20da88=this[_0x260d('0xf')]['config'][_0x260d('0x1f')](_0x260d('0x28'));this[_0x260d('0x37')]=new _0x7d9131(this[_0x260d('0xf')]['locale'],_0x1cd03d,_0x1ea421),this[_0x260d('0x37')]['on'](_0x260d('0x1'),this[_0x260d('0x4')][_0x260d('0x23')](this)),this[_0x260d('0x37')]['on'](_0x260d('0x1d'),this[_0x260d('0x7')][_0x260d('0x23')](this)),this[_0x260d('0x37')][_0x260d('0x23')](_0x260d('0x31'))['to'](this[_0x260d('0x13')]),this[_0x260d('0x37')][_0x260d('0x12')]['on']('add',(_0x1c8716,_0x3468bc)=>{_0x3468bc[_0x260d('0x0')]['on'](_0x260d('0x29'),(_0x50c85e,_0x44d2a5)=>{_0x44d2a5[_0x260d('0x23')](_0x260d('0x31'),'isReady')['to'](this[_0x260d('0x13')]);});}),this[_0x260d('0x37')]['render'](),this[_0x260d('0x10')](this['editor']['data'],_0x260d('0x35'),this['_handleEditorDataReady'][_0x260d('0x23')](this)),this[_0x260d('0x10')](this[_0x260d('0x13')],_0x260d('0xa'),this[_0x260d('0x8')]['bind'](this)),_0x20da88[_0x260d('0x24')](this[_0x260d('0x37')]['element']);}[_0x260d('0xe')](){this[_0x260d('0x37')][_0x260d('0x11')][_0x260d('0x27')](),this['_sidebarView'][_0x260d('0xe')]();}[_0x260d('0x9')](){const _0xf8a6d2=this[_0x260d('0xd')][_0x260d('0x25')](0x0);if(_0xf8a6d2){const _0x5a2112=this[_0x260d('0xd')]['getEarlierVisibleRevision'](_0xf8a6d2['id']);this[_0x260d('0x13')]['compare'](_0xf8a6d2,_0x5a2112);}}[_0x260d('0x4')](_0x38e626,_0x4fa5e9){const _0x33f54a=this[_0x260d('0xd')][_0x260d('0x25')](_0x4fa5e9['id']),_0x1c5a73=this['_revisionsRepository'][_0x260d('0xc')](_0x33f54a['id']);this[_0x260d('0x13')][_0x260d('0x2d')](_0x33f54a,_0x1c5a73);}[_0x260d('0x7')](_0x1a4dd2,_0x1642bf){this[_0x260d('0xd')][_0x260d('0x25')](_0x1642bf['id'])[_0x260d('0x2f')](_0x1642bf[_0x260d('0x32')]);}[_0x260d('0x8')](_0x2bb368,_0x5135f1,_0x8063a9){const _0x262c32=this[_0x260d('0xd')][_0x260d('0x2a')](_0x8063a9);_0x262c32[_0x260d('0x1a')]>0x2?(this[_0x260d('0x37')][_0x260d('0x22')](_0x262c32),this['_sidebarView'][_0x260d('0x6')](null)):(this[_0x260d('0x37')][_0x260d('0x22')]([]),this['_sidebarView'][_0x260d('0x6')](_0x262c32[0x0]));}['_createRevisionActions'](){const _0x479217=this[_0x260d('0xf')],_0x22b693=y[_0x260d('0x16')],_0x4b42dd=_0x479217['config'][_0x260d('0x1f')](_0x260d('0x36'))||y[_0x260d('0x21')];if(_0x4b42dd[_0x260d('0x1a')])return _0x4b42dd[_0x260d('0x2')](_0x3e57f9=>{const _0xd15ed6=_0x260d('0xb')==typeof _0x3e57f9?Object[_0x260d('0x5')]({},_0x22b693[_0x3e57f9]):_0x3e57f9;return _0xd15ed6['action']=_0xd15ed6[_0x260d('0x2c')][_0x260d('0x23')](this,_0x479217),_0xd15ed6['isVisible']&&(_0xd15ed6[_0x260d('0x2e')]=_0xd15ed6[_0x260d('0x2e')]['bind'](this,_0x479217)),_0xd15ed6;});}}y[_0x260d('0x16')]={'compareAgainstSelected':{'name':_0x260d('0x20'),'action':({plugins:_0x47ddd3},_0x5726e7)=>{const _0x3c16db=_0x47ddd3['get'](_0x40374a),_0x2af0ef=_0x3c16db['repository'];let _0x134bc9=_0x3c16db[_0x260d('0x33')][_0x260d('0x34')],_0x109962=_0x5726e7['id'];_0x2af0ef['getIndex'](_0x134bc9)>_0x2af0ef['getIndex'](_0x109962)&&([_0x134bc9,_0x109962]=[_0x109962,_0x134bc9]),_0x3c16db[_0x260d('0x2d')](_0x134bc9,_0x109962);},'isVisible':({plugins:_0x38e539},_0x579156)=>{const _0x41c18f=_0x38e539['get'](_0x40374a);return!(_0x41c18f['repository'][_0x260d('0x2a')](_0x41c18f[_0x260d('0x33')])[_0x260d('0x1a')]>0x2)&&!_0x579156['isSelected'];}},'restoreRevision':{'name':_0x260d('0x17'),'action':(_0x4ab98d,{id:_0x67b5ac})=>{_0x4ab98d[_0x260d('0x18')][_0x260d('0x1f')]('revisionHistory')[_0x260d('0x1c')](_0x67b5ac);},'isVisible':({plugins:_0x4a32b7},_0x591cec)=>!!_0x4a32b7[_0x260d('0x1f')](_0x40374a)['repository']['getLaterVisibleRevision'](_0x591cec['id'])},'nameRevision':{'name':_0x260d('0x2b'),'action':({plugins:_0x4d21ea},{id:_0x307412,revisionNameView:_0x410c06})=>{const _0x1fea56=_0x4d21ea[_0x260d('0x1f')](_0x40374a),_0x2fec73=_0x1fea56['repository'][_0x260d('0xc')](_0x307412);_0x1fea56['compare'](_0x307412,_0x2fec73),_0x410c06[_0x260d('0x1b')](),_0x410c06[_0x260d('0x19')][_0x260d('0x30')]();}}},y[_0x260d('0x21')]=[_0x260d('0x1e'),_0x260d('0x26'),_0x260d('0x14')];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2016 -
|
|
2
|
+
* Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{View as
|
|
23
|
+
import{View as _0x1412ae,IconView as _0x91560b}from'ckeditor5/src/ui';import _0x21f55d from'../../../theme/icons/revision-history.svg';import'../../../theme/revisionssidebar/revisionssidebarheader.css';export default class ts extends _0x1412ae{constructor(_0x48001b){super(_0x48001b);const t=_0x48001b['t'],_0x5eb818=new _0x91560b(_0x48001b);_0x5eb818['content']=_0x21f55d,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x5eb818,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[t('Revision\x20history')]}]});}}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2016 -
|
|
2
|
+
* Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x34b3=['setName','revisionViews','ck-revision-history-sidebar__time-period__revisions','startDate','_revisionActions','remove','removeRevision','select','span','add','div','createCollection','delegate','ck-revision-history-sidebar__time-period__label','setTemplate','locale','find'];(function(_0x2ae9dd,_0x34b30e){const _0x3d3880=function(_0x291620){while(--_0x291620){_0x2ae9dd['push'](_0x2ae9dd['shift']());}};_0x3d3880(++_0x34b30e);}(_0x34b3,0x118));const _0x3d38=function(_0x2ae9dd,_0x34b30e){_0x2ae9dd=_0x2ae9dd-0x0;let _0x3d3880=_0x34b3[_0x2ae9dd];return _0x3d3880;};import{View as _0x16df2c}from'ckeditor5/src/ui';import _0xd58139 from'../revision/revisionview';import{getDateTimePeriodInfo as _0x5b9bd9}from'./utils';import'../../../theme/revisionssidebar/revisionssidebartimeperiod.css';export default class vi extends _0x16df2c{constructor(_0x22eae9,_0x4851fe,_0x2fdb16){super(_0x22eae9);const _0x5954c0=_0x5b9bd9(_0x4851fe,this['locale']['uiLanguage'])['localizedPeriodName'];this[_0x3d38('0xc')]=_0x4851fe,this[_0x3d38('0xd')]=_0x2fdb16,this[_0x3d38('0xa')]=this[_0x3d38('0x3')](),this[_0x3d38('0xa')]['delegate'](_0x3d38('0x10'))['to'](this),this[_0x3d38('0xa')][_0x3d38('0x4')](_0x3d38('0x9'))['to'](this),this[_0x3d38('0x6')]({'tag':_0x3d38('0x2'),'attributes':{'class':['ck','ck-revision-history-sidebar__time-period']},'children':[{'tag':_0x3d38('0x0'),'attributes':{'class':['ck',_0x3d38('0x5')]},'children':[{'text':_0x5954c0}]},{'tag':_0x3d38('0x2'),'attributes':{'class':['ck',_0x3d38('0xb')]},'children':this['revisionViews']}]});}['addRevision'](_0x52592d){const _0x12f347=new _0xd58139(this[_0x3d38('0x7')],_0x52592d,this[_0x3d38('0xd')]);this['revisionViews'][_0x3d38('0x1')](_0x12f347);}[_0x3d38('0xf')](_0x204e33){const _0x3a1387=this[_0x3d38('0xa')][_0x3d38('0x8')](_0x184199=>_0x184199['id']===_0x204e33['id']);this['revisionViews'][_0x3d38('0xe')](_0x3a1387);}}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2016 -
|
|
2
|
+
* Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4181=['unhighlight','ck-revision-history-sidebar','revisionSelected','timePeriodViews','highlight','ck-reset','flat','_revisionActions','_getTimePeriodViewByStartDate','_addRevision','getTime','_removeRevision','div','bindTemplate','delegate','createCollection','render','selectRevision','add','_revisions','setName','highlightRevisions','find','fire','select','setTemplate','ck-rounded-corners','startDate','get','addRevision','revisionSetName','map','set','locale','revisionViews','remove'];(function(_0x57922d,_0x41812a){const _0x4e45ca=function(_0x48d105){while(--_0x48d105){_0x57922d['push'](_0x57922d['shift']());}};_0x4e45ca(++_0x41812a);}(_0x4181,0x1d4));const _0x4e45=function(_0x57922d,_0x41812a){_0x57922d=_0x57922d-0x0;let _0x4e45ca=_0x4181[_0x57922d];return _0x4e45ca;};import{View as _0x11a652}from'ckeditor5/src/ui';import _0x5f28e8 from'./revisionssidebartimeperiodview';import _0x31c611 from'./revisionssidebarheaderview';import{getDateTimePeriodInfo as _0x127f87}from'./utils';import'../../../theme/revisionssidebar/revisionssidebar.css';export default class di extends _0x11a652{constructor(_0x53c05f,_0x27333f,_0x5825ca){super(_0x53c05f);const _0x58737e=this[_0x4e45('0xd')];this['timePeriodViews']=this[_0x4e45('0xf')](),this['timePeriodViews'][_0x4e45('0xe')](_0x4e45('0x18'))['to'](this),this[_0x4e45('0x3')][_0x4e45('0xe')](_0x4e45('0x14'))['to'](this),this['_revisions']=_0x27333f,this[_0x4e45('0x7')]=_0x5825ca,this['on'](_0x4e45('0x18'),(_0x2cbb6b,_0x23a7a9)=>{this[_0x4e45('0x17')](_0x4e45('0x2'),_0x23a7a9);}),this['on'](_0x4e45('0x14'),(_0x4148af,_0x23d115)=>{this['fire'](_0x4e45('0x1e'),_0x23d115);}),this[_0x4e45('0x20')]('isEnabled',!0x1),this[_0x4e45('0x19')]({'tag':_0x4e45('0xc'),'attributes':{'class':['ck',_0x4e45('0x5'),_0x4e45('0x1a'),_0x4e45('0x1')]},'children':[new _0x31c611(_0x53c05f),{'tag':_0x4e45('0xc'),'attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x58737e['if']('isEnabled','ck-disabled',_0x37ee41=>!_0x37ee41)]},'children':this[_0x4e45('0x3')]}]});}[_0x4e45('0x10')](){super[_0x4e45('0x10')]();for(const _0x4e2e29 of this[_0x4e45('0x13')])this[_0x4e45('0x9')](_0x4e2e29);this[_0x4e45('0x13')]['on']('add',(_0x3fbf21,_0x17aebb)=>{this[_0x4e45('0x9')](_0x17aebb);}),this[_0x4e45('0x13')]['on'](_0x4e45('0x23'),(_0x3cdaca,_0x4fa26a)=>{this[_0x4e45('0xb')](_0x4fa26a);});}get[_0x4e45('0x22')](){return this[_0x4e45('0x3')][_0x4e45('0x1f')](_0x1f1273=>_0x1f1273[_0x4e45('0x22')]['map'](_0x1d4b01=>_0x1d4b01))[_0x4e45('0x6')]();}[_0x4e45('0x11')](_0xc46526){for(const _0x50921c of this['revisionViews'])_0xc46526&&_0xc46526['id']===_0x50921c['id']?_0x50921c[_0x4e45('0x18')]():_0x50921c['deselect']();}[_0x4e45('0x15')](_0x574a5c){for(const _0x1e733f of this[_0x4e45('0x22')])_0x574a5c['some'](({id:_0x4a6cd8})=>_0x4a6cd8===_0x1e733f['id'])?_0x1e733f[_0x4e45('0x4')]():_0x1e733f[_0x4e45('0x0')]();}[_0x4e45('0x9')](_0x2b15cf){const _0x477d3b=_0x127f87(_0x2b15cf['createdAt'])['startDate'];let _0x4b2753=this['timePeriodViews'][_0x4e45('0x1c')](0x0);_0x4b2753&&_0x4b2753[_0x4e45('0x1b')][_0x4e45('0xa')]()===_0x477d3b[_0x4e45('0xa')]()||(_0x4b2753=new _0x5f28e8(this[_0x4e45('0x21')],_0x477d3b,this['_revisionActions']),this[_0x4e45('0x3')][_0x4e45('0x12')](_0x4b2753)),_0x4b2753[_0x4e45('0x1d')](_0x2b15cf);}[_0x4e45('0xb')](_0x4ade1f){const _0x21e586=_0x127f87(_0x4ade1f['createdAt'])[_0x4e45('0x1b')];this[_0x4e45('0x8')](_0x21e586)['removeRevision'](_0x4ade1f);}[_0x4e45('0x8')](_0x4eb1c0){return this[_0x4e45('0x3')][_0x4e45('0x16')](_0x1841eb=>_0x1841eb[_0x4e45('0x1b')][_0x4e45('0xa')]()===_0x4eb1c0['getTime']());}}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2016 -
|
|
2
|
+
* Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4733=['week','month','fromJSDate','hasSame','setLocale','startOf','weekdayLong','toJSDate','year','day','local','minus','toRelativeCalendar'];(function(_0x2a7b5c,_0x473322){const _0x19c26d=function(_0x209ab7){while(--_0x209ab7){_0x2a7b5c['push'](_0x2a7b5c['shift']());}};_0x19c26d(++_0x473322);}(_0x4733,0x116));const _0x19c2=function(_0x2a7b5c,_0x473322){_0x2a7b5c=_0x2a7b5c-0x0;let _0x19c26d=_0x4733[_0x2a7b5c];return _0x19c26d;};import{DateTime as _0x26cad4}from'luxon';export function getDateTimePeriodInfo(_0x1837c4,_0x363a8b){_0x1837c4=_0x26cad4[_0x19c2('0xa')](_0x1837c4)[_0x19c2('0xc')](_0x363a8b);const _0x2c5a4d=_0x26cad4[_0x19c2('0x5')](),_0x50eda2=_0x2c5a4d[_0x19c2('0x6')]({'days':0x1})['startOf']('day');let _0x5e60ad,_0x5841e6;return _0x1837c4[_0x19c2('0xb')](_0x2c5a4d,_0x19c2('0x4'))?(_0x5e60ad=_0x1837c4['startOf'](_0x19c2('0x4'))[_0x19c2('0x2')](),_0x5841e6=_0x1837c4['toRelativeCalendar']()):_0x1837c4[_0x19c2('0xb')](_0x50eda2,_0x19c2('0x4'))?(_0x5e60ad=_0x50eda2['toJSDate'](),_0x5841e6=_0x1837c4[_0x19c2('0x7')]()):_0x1837c4[_0x19c2('0xb')](_0x2c5a4d,_0x19c2('0x8'))?(_0x5e60ad=_0x1837c4[_0x19c2('0x0')](_0x19c2('0x8'))[_0x19c2('0x2')](),_0x5841e6=_0x1837c4[_0x19c2('0x1')]):_0x1837c4[_0x19c2('0xb')](_0x2c5a4d,'year')?(_0x5e60ad=_0x1837c4[_0x19c2('0x0')](_0x19c2('0x9'))['toJSDate'](),_0x5841e6=_0x1837c4['monthLong']):(_0x5e60ad=_0x1837c4[_0x19c2('0x0')](_0x19c2('0x3'))[_0x19c2('0x2')](),_0x5841e6=_0x1837c4[_0x19c2('0x3')]),{'startDate':_0x5e60ad,'localizedPeriodName':_0x5841e6};}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2016 -
|
|
2
|
+
* Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{View as
|
|
23
|
+
import{View as _0x41b149}from'ckeditor5/src/ui';export default class H extends _0x41b149{constructor(_0x2f656c,_0x3c7c98){super(_0x2f656c);const t=_0x2f656c['t'];this['_model']=_0x3c7c98;const _0x150c50=this['bindTemplate'],_0xcb33c6=_0x3c7c98['data']['isSuggestion']?t('Suggested\x20by'):'add'==_0x3c7c98['type']?t('Added\x20by'):t('Removed\x20by');this['set']('type',_0x3c7c98['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x150c50['to']('type',_0x17332a=>'ck-revision-change__'+_0x17332a)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0xcb33c6}]},{'text':'\x20'+_0x3c7c98['author']['name']}]}]});}['focus'](){this['element']['focus']();}}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2016 -
|
|
2
|
+
* Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{View as
|
|
23
|
+
import{View as _0xe9a54f,ButtonView as _0xe82b53,ToolbarSeparatorView as _0x438fec}from'ckeditor5/src/ui';import _0x4a3465 from'../../../theme/icons/arrow-up.svg';import _0x4826df from'../../../theme/icons/arrow-down.svg';import'../../../theme/changesnavigation.css';export default class gi extends _0xe9a54f{constructor(_0x47d265){super(_0x47d265);const t=_0x47d265['t'],_0x49e86e=this['bindTemplate'],_0x3ebe60=new _0xe82b53(_0x47d265),_0x4b48c3=new _0xe82b53(_0x47d265);this['set']('isNavigationMode',!0x1),this['set']('isReady',!0x1),this['set']('currentChangeNumber',0x0),this['set']('numberOfChanges',0x0),this['set']('isForwardNavigationEnabled',!0x1),this['set']('isBackwardNavigationEnabled',!0x1),this['bind']('_isStatusLabelVisible')['to'](this,'isReady',this,'numberOfChanges',(_0x20fb1a,_0x3dbe95)=>_0x20fb1a&&_0x3dbe95>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0xa98d03,_0x58f388,_0x1f8abb,_0x4b17e7)=>{if(!_0xa98d03)return t('Loading...');if(!_0x1f8abb)return t('No\x20changes');const _0x1e8e2b=t({'string':'%0\x20change','plural':'%0\x20changes','id':'NUMBER_OF_CHANGES'},_0x1f8abb);return _0x4b17e7?t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},[_0x58f388+0x1,_0x1f8abb]):_0x1e8e2b;}),_0x3ebe60['set']({'label':t('Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0x4a3465}),_0x4b48c3['set']({'label':t('Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x4826df}),_0x3ebe60['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x4b48c3['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x3ebe60['on']('execute',()=>this['fire']('execute','backward')),_0x4b48c3['on']('execute',()=>this['fire']('execute','forward')),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-revision-history-ui','ck-revision-history-ui__changes-navigation']},'children':[{'tag':'span','attributes':{'class':['ck-revision-history-ui__changes-navigation__wrapper']},'children':[{'tag':'span','attributes':{'class':['ck-revision-history-ui__changes-navigation__label',_0x49e86e['if']('_isStatusLabelVisible','ck-hidden',_0x50f426=>!_0x50f426)]},'children':[{'text':_0x49e86e['to']('isNavigationMode',_0x44c5e0=>_0x44c5e0?t({'string':'Edit','id':'EDIT_X_OF_Y_REVISIONS'})+':\x20':t('Total')+':\x20')}]},{'text':_0x49e86e['to']('_statusText')}]},new _0x438fec(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x3ebe60,_0x4b48c3]}]});}}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2016 -
|
|
2
|
+
* Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1f21=['document','editor','hide','RevisionViewerLoadingOverlay','roots','pluginName','addClass','change','removeClass','editing','view','show','ck-editor__editable__loading-overlay'];(function(_0x1d8efe,_0x1f217c){const _0x2672ea=function(_0x190438){while(--_0x190438){_0x1d8efe['push'](_0x1d8efe['shift']());}};_0x2672ea(++_0x1f217c);}(_0x1f21,0xe0));const _0x2672=function(_0x1d8efe,_0x1f217c){_0x1d8efe=_0x1d8efe-0x0;let _0x2672ea=_0x1f21[_0x1d8efe];return _0x2672ea;};import{Plugin as _0x7cc8af}from'ckeditor5/src/core';import'../../../theme/revisionviewerloadingoverlay.css';export default class ee extends _0x7cc8af{static get[_0x2672('0x2')](){return _0x2672('0x0');}[_0x2672('0x8')](){const _0x565cf1=this[_0x2672('0xb')][_0x2672('0x6')][_0x2672('0x7')];_0x565cf1[_0x2672('0x4')](_0x3ce487=>{for(const _0x219d79 of _0x565cf1[_0x2672('0xa')][_0x2672('0x1')])_0x3ce487[_0x2672('0x3')](_0x2672('0x9'),_0x219d79);});}[_0x2672('0xc')](){const _0xc15eab=this['editor']['editing'][_0x2672('0x7')];_0xc15eab[_0x2672('0x4')](_0x355182=>{for(const _0x2bb4fb of _0xc15eab[_0x2672('0xa')][_0x2672('0x1')])_0x355182[_0x2672('0x5')](_0x2672('0x9'),_0x2bb4fb);});}}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2016 -
|
|
2
|
+
* Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x8b02ba}from'ckeditor5/src/core';import{ButtonView as _0x36bcd5}from'ckeditor5/src/ui';import _0x5804b3 from'./changesnavigationview';import _0x3c7a4f from'./../../revisionviewer';import _0x3a6f12 from'./revisionviewerloadingoverlay';import _0x384ee3 from'@ckeditor/ckeditor5-undo/theme/icons/undo.svg';import'../../../theme/revisionviewer.css';export default class d extends _0x8b02ba{static get['pluginName'](){return'RevisionViewerUI';}static get['requires'](){return[_0x3c7a4f,_0x3a6f12];}['init'](){const _0x244f60=this['editor'],_0x3df7a4=_0x244f60['plugins']['get'](_0x3c7a4f),_0x3fd86e=_0x244f60['plugins']['get'](_0x3a6f12),t=_0x244f60['t'];_0x244f60['ui']['componentFactory']['add']('exitToEditing',_0xf6356=>{const _0x21355b=new _0x36bcd5(_0xf6356);return _0x21355b['set']({'label':t('Back\x20to\x20editing'),'icon':_0x384ee3,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x21355b,'execute',()=>{_0x244f60['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x21355b;}),_0x244f60['ui']['componentFactory']['add']('restoreRevision',_0x2ff740=>{const _0x5d44a8=new _0x36bcd5(_0x2ff740);return _0x5d44a8['set']({'label':t('Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x5d44a8['bind']('isEnabled')['to'](_0x244f60['commands']['get']('restoreRevision')),this['listenTo'](_0x5d44a8,'execute',()=>_0x244f60['execute']('restoreRevision')),_0x5d44a8;}),_0x244f60['ui']['componentFactory']['add']('changesNavigation',_0x3032f3=>{const _0x504d5e=new _0x5804b3(_0x3032f3),_0x2f5726=_0x244f60['commands']['get']('showPreviousChange'),_0x143430=_0x244f60['commands']['get']('showNextChange');return _0x504d5e['bind']('isBackwardNavigationEnabled')['to'](_0x2f5726,'isEnabled'),_0x504d5e['bind']('isForwardNavigationEnabled')['to'](_0x143430,'isEnabled'),_0x504d5e['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x3df7a4),this['listenTo'](_0x504d5e,'execute',(_0x175d19,_0x4d0642)=>{_0x244f60['execute']('forward'===_0x4d0642?'showNextChange':'showPreviousChange');}),_0x504d5e;}),_0x3fd86e['show'](),_0x3df7a4['on']('change:isReady',(_0x575958,_0xfa4742,_0x14dccb)=>{_0x14dccb?_0x3fd86e['hide']():_0x3fd86e['show']();});}}
|
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);
|