@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20231107.0 → 0.0.0-nightly-20231108.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/revision-history.js +1 -1
- package/package.json +6 -6
- package/src/changeitem.js +1 -1
- package/src/editor/revisionviewereditor.js +1 -1
- package/src/editor/revisionviewereditorui.js +1 -1
- package/src/editor/revisionviewereditoruiview.js +1 -1
- package/src/revision.js +1 -1
- package/src/revisiondiff.js +1 -1
- package/src/revisionhistory.js +1 -1
- package/src/revisionsrepository.js +1 -1
- package/src/revisiontracker.js +1 -1
- package/src/revisionviewer.js +1 -1
- package/src/ui/revision/createrevisionactionsdropdown.js +1 -1
- package/src/ui/revision/revisionauthorview.js +1 -1
- package/src/ui/revision/revisionnameview.js +1 -1
- package/src/ui/revision/revisionview.js +1 -1
- package/src/ui/revision/subrevisioncollapserview.js +1 -1
- package/src/ui/revision/subrevisionview.js +1 -1
- package/src/ui/revision/utils.js +1 -1
- package/src/ui/revisionhistory/revisionhistorysaverevisionformview.js +1 -1
- package/src/ui/revisionhistory/revisionhistoryui.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebar.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebarheaderview.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebartimeperiodview.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebarview.js +1 -1
- package/src/ui/revisionssidebar/utils.js +1 -1
- package/src/ui/revisionviewer/changedetailsview.js +1 -1
- package/src/ui/revisionviewer/changesnavigationview.js +1 -1
- package/src/ui/revisionviewer/revisionviewerloadingoverlay.js +1 -1
- package/src/ui/revisionviewer/revisionviewerui.js +1 -1
- package/src/utils/common-translations.js +1 -1
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1062=['RevisionHistoryUI','requires','view','isReady','Open\x20revision\x20history','add','revisionName','addMany','children','change:isOpen','init','saveRevision','isEnabled','bind','plugins','focus','editing','get','isReadOnly','set','execute','cancel','showRevisionViewerCallback','RevisionTracker','editor','Save\x20current\x20revision','config','buttonView','items','length','isOpen'];(function(_0x3f7a36,_0x1062b0){const _0x39d7a3=function(_0x1d6ab5){while(--_0x1d6ab5){_0x3f7a36['push'](_0x3f7a36['shift']());}};_0x39d7a3(++_0x1062b0);}(_0x1062,0x16e));const _0x39d7=function(_0x3f7a36,_0x1062b0){_0x3f7a36=_0x3f7a36-0x0;let _0x39d7a3=_0x1062[_0x3f7a36];return _0x39d7a3;};import{Plugin as _0x550c27,icons as _0x9450d}from'ckeditor5/src/core';import{ListView as _0x693987,ListItemView as _0x3230f9,ButtonView as _0x4f6345,createDropdown as _0x28d960}from'ckeditor5/src/ui';import _0x27ccc7 from'../../revisiontracker';import _0x1bd170 from'./revisionhistorysaverevisionformview';import{getTranslation as _0x4ab50d}from'../../utils/common-translations';export default class u extends _0x550c27{static get['pluginName'](){return _0x39d7('0x6');}static get[_0x39d7('0x7')](){return[_0x27ccc7];}[_0x39d7('0x10')](){const _0x1565f3=this[_0x39d7('0x1e')],_0x590e5d=_0x1565f3[_0x39d7('0x14')]['get'](_0x39d7('0x1d'));_0x1565f3['ui']['componentFactory'][_0x39d7('0xb')]('revisionHistory',_0x20d57c=>{const _0x578ab4=_0x28d960(_0x20d57c),_0x5ef548=_0x578ab4['panelView']['children'],_0x5dcf51=new _0x693987(_0x20d57c),_0x466198=new _0x3230f9(_0x20d57c),_0x360dca=new _0x4f6345(_0x20d57c),_0x578b71=new _0x3230f9(_0x20d57c),_0x19fbad=new _0x4f6345(_0x20d57c),_0x3b549a=new _0x1bd170(_0x20d57c);function _0x227f32(){_0x5ef548[_0x39d7('0x4')]&&_0x5ef548['remove'](0x0),_0x5ef548[_0x39d7('0xb')](_0x5dcf51);}function _0x347f02(){_0x578ab4[_0x39d7('0x5')]=!0x1,_0x1565f3[_0x39d7('0x16')][_0x39d7('0x8')][_0x39d7('0x15')]();}return _0x578ab4[_0x39d7('0x13')](_0x39d7('0x12'))['to'](_0x590e5d,_0x39d7('0x9'),_0x590e5d,_0x39d7('0x12'),_0x1565f3,'isReadOnly',(_0x344b79,_0x4cfd2f,_0x18130b)=>_0x344b79&&_0x4cfd2f&&!_0x18130b),_0x578ab4[_0x39d7('0x2')]['set']({'icon':_0x9450d['history'],'label':_0x4ab50d(_0x20d57c,'Revision\x20history'),'tooltip':!0x0}),_0x360dca[_0x39d7('0x19')]({'label':_0x4ab50d(_0x20d57c,_0x39d7('0x0')),'withText':!0x0}),_0x360dca[_0x39d7('0x13')]('isEnabled')['to'](_0x590e5d,'isReady',_0x590e5d,_0x39d7('0x12'),_0x1565f3,_0x39d7('0x18'),(_0x49c8cf,_0x5035cd,_0x1e258c)=>_0x49c8cf&&_0x5035cd&&!_0x1e258c),_0x360dca['on'](_0x39d7('0x1a'),()=>function(){_0x5ef548[_0x39d7('0x4')]&&_0x5ef548['remove'](0x0),(_0x3b549a['reset'](),_0x5ef548['add'](_0x3b549a),_0x3b549a['focus']());}()),_0x19fbad[_0x39d7('0x19')]({'label':_0x4ab50d(_0x20d57c,_0x39d7('0xa')),'withText':!0x0}),_0x19fbad[_0x39d7('0x13')](_0x39d7('0x12'))['to'](_0x590e5d,_0x39d7('0x9'),_0x1565f3,_0x39d7('0x18'),(_0x1997d3,_0x4ea368)=>_0x1997d3&&!_0x4ea368),_0x19fbad['on']('execute',()=>{_0x1565f3[_0x39d7('0x1')][_0x39d7('0x17')]('revisionHistory')[_0x39d7('0x1c')](),_0x347f02();}),_0x466198[_0x39d7('0xe')][_0x39d7('0xb')](_0x360dca),_0x578b71['children'][_0x39d7('0xb')](_0x19fbad),_0x5dcf51[_0x39d7('0x3')][_0x39d7('0xd')]([_0x466198,_0x578b71]),_0x578ab4['on'](_0x39d7('0xf'),()=>_0x227f32()),_0x3b549a['saveButtonView']['bind']('isEnabled')['to'](_0x590e5d,_0x39d7('0x9'),_0x590e5d,_0x39d7('0x12'),_0x1565f3,_0x39d7('0x18'),(_0x3f131e,_0x2b0a51,_0x495dcd)=>_0x3f131e&&_0x2b0a51&&!_0x495dcd),_0x3b549a['on']('submit',()=>(_0x1565f3['plugins'][_0x39d7('0x17')](_0x27ccc7)[_0x39d7('0x11')]({'name':_0x3b549a[_0x39d7('0xc')]}),void _0x347f02())),_0x3b549a['on'](_0x39d7('0x1b'),()=>_0x227f32()),_0x3b549a['render'](),_0x227f32(),_0x578ab4;});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5423=['locale','length','appendChild','isReady','_handleRevisionSetName','selectRevision','diff','getEarlierVisibleRevision','_handleRevisionSelected','get','plugins','destroy','revisionSelected','timePeriodViews','isSelected','restoreRevision','_handleEditorDataReady','_createRevisionActions','bind','revisionViews','_sidebarView','isEnabled','getIndex','compare','remove','listenTo','compareAgainstSelected','repository','render','string','revisionHistory.revisionActions','Name\x20this\x20revision','editor','getRevision','Compare\x20against\x20selected','name','availableRevisionActions','config','isVisible','assign','focus','nameRevision','requires','Restore\x20this\x20revision','setName','element','revisionHistory','_revisionViewer','_revisionsRepository','fieldView','action','defaultRevisionActions','map','add','ready','newRevisionId','highlightRevisions'];(function(_0x4b6e01,_0x5423bc){const _0x1eaa0d=function(_0x1bdfa6){while(--_0x1bdfa6){_0x4b6e01['push'](_0x4b6e01['shift']());}};_0x1eaa0d(++_0x5423bc);}(_0x5423,0x1a1));const _0x1eaa=function(_0x4b6e01,_0x5423bc){_0x4b6e01=_0x4b6e01-0x0;let _0x1eaa0d=_0x5423[_0x4b6e01];return _0x1eaa0d;};import{Plugin as _0x325ef6}from'ckeditor5/src/core';import _0x3dc17d from'./revisionssidebarview';import _0xfb5a80 from'../../revisionviewer';export default class w extends _0x325ef6{static get['pluginName'](){return'RevisionsSidebar';}static get[_0x1eaa('0x18')](){return[_0xfb5a80];}constructor(_0x46195d){super(_0x46195d),this[_0x1eaa('0x1d')]=_0x46195d[_0x1eaa('0x31')][_0x1eaa('0x30')](_0xfb5a80),this[_0x1eaa('0x1e')]=this[_0x1eaa('0x1d')]['repository'],this[_0x1eaa('0x2')]=null;}['init'](){const _0xbea20f=this[_0x1eaa('0x1e')]['_revisions'],_0x26c70b=this['_createRevisionActions'](),_0x4bfc48=this[_0x1eaa('0xe')][_0x1eaa('0x13')]['get']('revisionHistory.viewerSidebarContainer');this[_0x1eaa('0x2')]=new _0x3dc17d(this[_0x1eaa('0xe')][_0x1eaa('0x27')],_0xbea20f,_0x26c70b),this[_0x1eaa('0x2')]['on'](_0x1eaa('0x33'),this['_handleRevisionSelected'][_0x1eaa('0x0')](this)),this['_sidebarView']['on']('revisionSetName',this['_handleRevisionSetName']['bind'](this)),this['_sidebarView'][_0x1eaa('0x0')](_0x1eaa('0x3'))['to'](this[_0x1eaa('0x1d')]),this[_0x1eaa('0x2')][_0x1eaa('0x34')]['on']('add',(_0x343b6e,_0x41e777)=>{_0x41e777[_0x1eaa('0x1')]['on'](_0x1eaa('0x23'),(_0x1371d7,_0x5850e0)=>{_0x5850e0[_0x1eaa('0x0')](_0x1eaa('0x3'),_0x1eaa('0x2a'))['to'](this[_0x1eaa('0x1d')]);});}),this[_0x1eaa('0x2')][_0x1eaa('0xa')](),this[_0x1eaa('0x7')](this[_0x1eaa('0xe')]['data'],_0x1eaa('0x24'),this[_0x1eaa('0x37')][_0x1eaa('0x0')](this)),this[_0x1eaa('0x7')](this['_revisionViewer'],'change:diff',this['_handleDiffChange'][_0x1eaa('0x0')](this)),_0x4bfc48[_0x1eaa('0x29')](this[_0x1eaa('0x2')][_0x1eaa('0x1b')]);}['destroy'](){this['_sidebarView'][_0x1eaa('0x1b')][_0x1eaa('0x6')](),this[_0x1eaa('0x2')][_0x1eaa('0x32')]();}[_0x1eaa('0x37')](){const _0x52e755=this[_0x1eaa('0x1e')][_0x1eaa('0xf')](0x0);if(_0x52e755){const _0x17919a=this[_0x1eaa('0x1e')]['getEarlierVisibleRevision'](_0x52e755['id']);this[_0x1eaa('0x1d')]['compare'](_0x52e755,_0x17919a);}}[_0x1eaa('0x2f')](_0x18cefa,_0x7d3b92){const _0x40fd02=this[_0x1eaa('0x1e')]['getRevision'](_0x7d3b92['id']),_0x4f95ad=this[_0x1eaa('0x1e')][_0x1eaa('0x2e')](_0x40fd02['id']);this[_0x1eaa('0x1d')][_0x1eaa('0x5')](_0x40fd02,_0x4f95ad);}[_0x1eaa('0x2b')](_0x5c941b,_0x3db36b){this['_revisionsRepository']['getRevision'](_0x3db36b['id'])[_0x1eaa('0x1a')](_0x3db36b[_0x1eaa('0x11')]);}['_handleDiffChange'](_0x28bc28,_0x5abbb4,_0x5ec5e3){const _0x2d1d10=this[_0x1eaa('0x1e')]['getRevisionsInDiff'](_0x5ec5e3);_0x2d1d10[_0x1eaa('0x28')]>0x2?(this['_sidebarView'][_0x1eaa('0x26')](_0x2d1d10),this[_0x1eaa('0x2')][_0x1eaa('0x2c')](null)):(this[_0x1eaa('0x2')][_0x1eaa('0x26')]([]),this[_0x1eaa('0x2')]['selectRevision'](_0x2d1d10[0x0]));}[_0x1eaa('0x38')](){const _0x258821=this[_0x1eaa('0xe')],_0x1b257f=w[_0x1eaa('0x12')],_0xbe44ed=_0x258821[_0x1eaa('0x13')][_0x1eaa('0x30')](_0x1eaa('0xc'))||w['defaultRevisionActions'];if(_0xbe44ed['length'])return _0xbe44ed[_0x1eaa('0x22')](_0x1d65aa=>{const _0x24bb23=_0x1eaa('0xb')==typeof _0x1d65aa?Object[_0x1eaa('0x15')]({},_0x1b257f[_0x1d65aa]):_0x1d65aa;return _0x24bb23[_0x1eaa('0x20')]=_0x24bb23[_0x1eaa('0x20')][_0x1eaa('0x0')](this,_0x258821),_0x24bb23[_0x1eaa('0x14')]&&(_0x24bb23['isVisible']=_0x24bb23['isVisible'][_0x1eaa('0x0')](this,_0x258821)),_0x24bb23;});}}w['availableRevisionActions']={'compareAgainstSelected':{'name':_0x1eaa('0x10'),'action':({plugins:_0xcaa9f1},_0x421e0a)=>{const _0x12ee72=_0xcaa9f1[_0x1eaa('0x30')](_0xfb5a80),_0x538dca=_0x12ee72['repository'];let _0x303206=_0x12ee72[_0x1eaa('0x2d')][_0x1eaa('0x25')],_0x2fcb2f=_0x421e0a['id'];_0x538dca[_0x1eaa('0x4')](_0x303206)>_0x538dca[_0x1eaa('0x4')](_0x2fcb2f)&&([_0x303206,_0x2fcb2f]=[_0x2fcb2f,_0x303206]),_0x12ee72[_0x1eaa('0x5')](_0x303206,_0x2fcb2f);},'isVisible':({plugins:_0x6f94e3},_0x402d0d)=>{const _0x40db68=_0x6f94e3['get'](_0xfb5a80);return!(_0x40db68[_0x1eaa('0x9')]['getRevisionsInDiff'](_0x40db68[_0x1eaa('0x2d')])[_0x1eaa('0x28')]>0x2)&&!_0x402d0d[_0x1eaa('0x35')];}},'restoreRevision':{'name':_0x1eaa('0x19'),'action':(_0x2fbd6e,{id:_0x502fe3})=>{_0x2fbd6e['config']['get'](_0x1eaa('0x1c'))['restoreRevisionCallback'](_0x502fe3);},'isVisible':({plugins:_0x373d93},_0x8e1ff6)=>!!_0x373d93['get'](_0xfb5a80)[_0x1eaa('0x9')]['getLaterVisibleRevision'](_0x8e1ff6['id'])},'nameRevision':{'name':_0x1eaa('0xd'),'action':({plugins:_0x166abf},{id:_0x5ca645,revisionNameView:_0x2e30f1})=>{const _0x493f1e=_0x166abf['get'](_0xfb5a80),_0x4fa337=_0x493f1e[_0x1eaa('0x9')][_0x1eaa('0x2e')](_0x5ca645);_0x493f1e[_0x1eaa('0x5')](_0x5ca645,_0x4fa337),_0x2e30f1[_0x1eaa('0x16')](),_0x2e30f1[_0x1eaa('0x1f')]['select']();}}},w[_0x1eaa('0x21')]=[_0x1eaa('0x8'),_0x1eaa('0x36'),_0x1eaa('0x17')];
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4a89=['div','content','setTemplate','ck-revision-history-sidebar__header__label','history'];(function(_0x4d8280,_0x4a89c5){const _0x4682e4=function(_0x3504f5){while(--_0x3504f5){_0x4d8280['push'](_0x4d8280['shift']());}};_0x4682e4(++_0x4a89c5);}(_0x4a89,0x1a9));const _0x4682=function(_0x4d8280,_0x4a89c5){_0x4d8280=_0x4d8280-0x0;let _0x4682e4=_0x4a89[_0x4d8280];return _0x4682e4;};import{View as _0x23cca7,IconView as _0x113bd1}from'ckeditor5/src/ui';import{getTranslation as _0x3cbb4d}from'../../utils/common-translations';import{icons as _0x3aa2ba}from'ckeditor5/src/core';import'../../../theme/revisionssidebar/revisionssidebarheader.css';export default class rr extends _0x23cca7{constructor(_0x49a9fc){super(_0x49a9fc);const _0x34dde3=new _0x113bd1();_0x34dde3[_0x4682('0x1')]=_0x3aa2ba[_0x4682('0x4')],this[_0x4682('0x2')]({'tag':_0x4682('0x0'),'attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x34dde3,{'tag':'span','attributes':{'class':['ck',_0x4682('0x3')]},'children':[_0x3cbb4d(_0x49a9fc,'Revision\x20history')]}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x13fa=['span','localizedPeriodName','find','add','delegate','locale','_revisionActions','setTemplate','uiLanguage','ck-revision-history-sidebar__time-period','revisionViews','startDate','addRevision','ck-revision-history-sidebar__time-period__label','div'];(function(_0x246275,_0x13fa9e){const _0x4e8103=function(_0x760550){while(--_0x760550){_0x246275['push'](_0x246275['shift']());}};_0x4e8103(++_0x13fa9e);}(_0x13fa,0xfc));const _0x4e81=function(_0x246275,_0x13fa9e){_0x246275=_0x246275-0x0;let _0x4e8103=_0x13fa[_0x246275];return _0x4e8103;};import{View as _0x258bb6}from'ckeditor5/src/ui';import _0x61d91d from'../revision/revisionview';import{getDateTimePeriodInfo as _0x667b31}from'./utils';import'../../../theme/revisionssidebar/revisionssidebartimeperiod.css';export default class pi extends _0x258bb6{constructor(_0x1ddb98,_0x1e5e48,_0x137b9a){super(_0x1ddb98);const _0x595ba4=_0x667b31(_0x1e5e48,this[_0x4e81('0x8')][_0x4e81('0xb')])[_0x4e81('0x4')];this[_0x4e81('0xe')]=_0x1e5e48,this[_0x4e81('0xd')]=this['createCollection'](),this[_0x4e81('0x9')]=_0x137b9a,this[_0x4e81('0xd')][_0x4e81('0x7')]('select')['to'](this),this['revisionViews'][_0x4e81('0x7')]('setName')['to'](this),this[_0x4e81('0xa')]({'tag':_0x4e81('0x2'),'attributes':{'class':['ck',_0x4e81('0xc')]},'children':[{'tag':_0x4e81('0x3'),'attributes':{'class':['ck',_0x4e81('0x1')]},'children':[{'text':_0x595ba4}]},{'tag':_0x4e81('0x2'),'attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this[_0x4e81('0xd')]}]});}[_0x4e81('0x0')](_0x260a67){const _0x156868=new _0x61d91d(this[_0x4e81('0x8')],_0x260a67,this['_revisionActions']);this[_0x4e81('0xd')][_0x4e81('0x6')](_0x156868);}['removeRevision'](_0x9de4e6){const _0x32dd27=this[_0x4e81('0xd')][_0x4e81('0x5')](_0x5d274f=>_0x5d274f['id']===_0x9de4e6['id']);this[_0x4e81('0xd')]['remove'](_0x32dd27);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x277d=['revisionViews','_revisions','highlightRevisions','revisionSetName','ck-revision-history-sidebar','_removeRevision','select','get','set','bindTemplate','removeRevision','delegate','uiLanguage','ck-reset','fire','ck-disabled','add','_getTimePeriodViewByStartDate','_addRevision','map','locale','ck-revision-history-sidebar__timeline','unhighlight','isEnabled','_revisionActions','selectRevision','div','timePeriodViews','deselect','render','createdAt','getTime','setName','startDate','ck-rounded-corners','addRevision','find'];(function(_0x1e5735,_0x277d57){const _0x3acb85=function(_0x5789d0){while(--_0x5789d0){_0x1e5735['push'](_0x1e5735['shift']());}};_0x3acb85(++_0x277d57);}(_0x277d,0xe3));const _0x3acb=function(_0x1e5735,_0x277d57){_0x1e5735=_0x1e5735-0x0;let _0x3acb85=_0x277d[_0x1e5735];return _0x3acb85;};import{View as _0x174462}from'ckeditor5/src/ui';import _0x515bc2 from'./revisionssidebartimeperiodview';import _0x1149c2 from'./revisionssidebarheaderview';import{getDateTimePeriodInfo as _0x45a56c}from'./utils';import'../../../theme/revisionssidebar/revisionssidebar.css';export default class vi extends _0x174462{constructor(_0x1566c6,_0x5cf90d,_0x2791f6){super(_0x1566c6);const _0x4f84bc=this[_0x3acb('0x4')];this['timePeriodViews']=this['createCollection'](),this[_0x3acb('0x16')][_0x3acb('0x6')](_0x3acb('0x1'))['to'](this),this['timePeriodViews'][_0x3acb('0x6')](_0x3acb('0x1b'))['to'](this),this[_0x3acb('0x21')]=_0x5cf90d,this[_0x3acb('0x13')]=_0x2791f6,this['on'](_0x3acb('0x1'),(_0x25e5a4,_0x1868d4)=>{this['fire']('revisionSelected',_0x1868d4);}),this['on']('setName',(_0x42b34c,_0x914b64)=>{this[_0x3acb('0x9')](_0x3acb('0x23'),_0x914b64);}),this[_0x3acb('0x3')](_0x3acb('0x12'),!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck',_0x3acb('0x8'),_0x3acb('0x1d'),_0x3acb('0x24')]},'children':[new _0x1149c2(_0x1566c6),{'tag':_0x3acb('0x15'),'attributes':{'class':['ck',_0x3acb('0x10'),_0x4f84bc['if'](_0x3acb('0x12'),_0x3acb('0xa'),_0x1ea5a2=>!_0x1ea5a2)]},'children':this['timePeriodViews']}]});}[_0x3acb('0x18')](){super[_0x3acb('0x18')]();for(const _0x293b88 of this[_0x3acb('0x21')])this[_0x3acb('0xd')](_0x293b88);this[_0x3acb('0x21')]['on'](_0x3acb('0xb'),(_0x4d3b06,_0x37bea6)=>{this['_addRevision'](_0x37bea6);}),this[_0x3acb('0x21')]['on']('remove',(_0xba226,_0x3ca978)=>{this['_removeRevision'](_0x3ca978);});}get[_0x3acb('0x20')](){return this[_0x3acb('0x16')][_0x3acb('0xe')](_0x500566=>_0x500566['revisionViews'][_0x3acb('0xe')](_0x82dd5f=>_0x82dd5f))['flat']();}[_0x3acb('0x14')](_0x1c3581){for(const _0x5b22b8 of this[_0x3acb('0x20')])_0x1c3581&&_0x1c3581['id']===_0x5b22b8['id']?_0x5b22b8[_0x3acb('0x1')]():_0x5b22b8[_0x3acb('0x17')]();}[_0x3acb('0x22')](_0x57465e){for(const _0x5eef96 of this[_0x3acb('0x20')])_0x57465e['some'](({id:_0x64d10f})=>_0x64d10f===_0x5eef96['id'])?_0x5eef96['highlight']():_0x5eef96[_0x3acb('0x11')]();}[_0x3acb('0xd')](_0x3741db){const _0x2d7086=_0x45a56c(_0x3741db[_0x3acb('0x19')],this[_0x3acb('0xf')][_0x3acb('0x7')])[_0x3acb('0x1c')];let _0x2d0c1f=this[_0x3acb('0x16')][_0x3acb('0x2')](0x0);_0x2d0c1f&&_0x2d0c1f['startDate'][_0x3acb('0x1a')]()===_0x2d7086[_0x3acb('0x1a')]()||(_0x2d0c1f=new _0x515bc2(this[_0x3acb('0xf')],_0x2d7086,this[_0x3acb('0x13')]),this[_0x3acb('0x16')][_0x3acb('0xb')](_0x2d0c1f)),_0x2d0c1f[_0x3acb('0x1e')](_0x3741db);}[_0x3acb('0x0')](_0x1e8e5a){const _0x80b8c4=_0x45a56c(_0x1e8e5a[_0x3acb('0x19')],this[_0x3acb('0xf')][_0x3acb('0x7')])['startDate'];this[_0x3acb('0xc')](_0x80b8c4)[_0x3acb('0x5')](_0x1e8e5a);}[_0x3acb('0xc')](_0x16daa4){return this['timePeriodViews'][_0x3acb('0x1f')](_0x1b457b=>_0x1b457b[_0x3acb('0x1c')][_0x3acb('0x1a')]()===_0x16daa4[_0x3acb('0x1a')]());}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1cf1=['month','week','setLocale','startOf','hasSame','toJSDate','year','day','weekdayLong','toRelativeCalendar','monthLong'];(function(_0x527d82,_0x1cf195){const _0xb18f03=function(_0x2a0d13){while(--_0x2a0d13){_0x527d82['push'](_0x527d82['shift']());}};_0xb18f03(++_0x1cf195);}(_0x1cf1,0x1be));const _0xb18f=function(_0x527d82,_0x1cf195){_0x527d82=_0x527d82-0x0;let _0xb18f03=_0x1cf1[_0x527d82];return _0xb18f03;};import{DateTime as _0x2d5904}from'luxon';export function getDateTimePeriodInfo(_0x4bce49,_0x2dfb8d){const _0x2d6a6c=_0x2d5904['fromJSDate'](_0x4bce49)[_0xb18f('0x7')](_0x2dfb8d),_0x391c5b=_0x2d5904['local'](),_0x55e343=_0x391c5b['minus']({'days':0x1})[_0xb18f('0x8')](_0xb18f('0x1'));let _0x20d7dc,_0x29977e;return _0x2d6a6c['hasSame'](_0x391c5b,'day')?(_0x20d7dc=_0x2d6a6c[_0xb18f('0x8')](_0xb18f('0x1'))[_0xb18f('0xa')](),_0x29977e=_0x2d6a6c[_0xb18f('0x3')]()):_0x2d6a6c[_0xb18f('0x9')](_0x55e343,_0xb18f('0x1'))?(_0x20d7dc=_0x55e343[_0xb18f('0xa')](),_0x29977e=_0x2d6a6c[_0xb18f('0x3')]()):_0x2d6a6c['hasSame'](_0x391c5b,_0xb18f('0x6'))?(_0x20d7dc=_0x2d6a6c[_0xb18f('0x8')]('week')[_0xb18f('0xa')](),_0x29977e=_0x2d6a6c[_0xb18f('0x2')]||''):_0x2d6a6c['hasSame'](_0x391c5b,'year')?(_0x20d7dc=_0x2d6a6c[_0xb18f('0x8')](_0xb18f('0x5'))[_0xb18f('0xa')](),_0x29977e=_0x2d6a6c[_0xb18f('0x4')]||''):(_0x20d7dc=_0x2d6a6c[_0xb18f('0x8')](_0xb18f('0x0'))['toJSDate'](),_0x29977e=String(_0x2d6a6c[_0xb18f('0x0')])),{'startDate':_0x20d7dc,'localizedPeriodName':_0x29977e};}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x9715=['author','setTemplate','element','type','Removed\x20by','focus','Added\x20by','add','ck-revision-change__label','name','bindTemplate','set','data','div','ck-revision-change'];(function(_0x4873b4,_0x9715c7){const _0x1dfcb2=function(_0x5c0e4d){while(--_0x5c0e4d){_0x4873b4['push'](_0x4873b4['shift']());}};_0x1dfcb2(++_0x9715c7);}(_0x9715,0x194));const _0x1dfc=function(_0x4873b4,_0x9715c7){_0x4873b4=_0x4873b4-0x0;let _0x1dfcb2=_0x9715[_0x4873b4];return _0x1dfcb2;};import{View as _0x192888}from'ckeditor5/src/ui';import{getTranslation as _0x48a98f}from'../../utils/common-translations';export default class Z extends _0x192888{constructor(_0xa2b4e6,_0x5e6ad5){super(_0xa2b4e6),this['_model']=_0x5e6ad5,this['changeId']=_0x5e6ad5['id'];const _0x1521f7=this[_0x1dfc('0xb')],_0x2e5e44=_0x48a98f(_0xa2b4e6,_0x5e6ad5[_0x1dfc('0xd')]['isSuggestion']?'Suggested\x20by':_0x1dfc('0x8')==_0x5e6ad5['type']?_0x1dfc('0x7'):_0x1dfc('0x5'));this[_0x1dfc('0xc')](_0x1dfc('0x4'),_0x5e6ad5[_0x1dfc('0x4')]),this[_0x1dfc('0x2')]({'tag':_0x1dfc('0xe'),'attributes':{'class':['ck-annotation',_0x1dfc('0x0'),_0x1521f7['to'](_0x1dfc('0x4'),_0x477b6d=>'ck-revision-change__'+_0x477b6d)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':[_0x1dfc('0x9')]},'children':[{'text':_0x2e5e44}]},{'text':'\x20'+_0x5e6ad5[_0x1dfc('0x1')][_0x1dfc('0xa')]}]}]});}[_0x1dfc('0x6')](){this[_0x1dfc('0x3')][_0x1dfc('0x6')]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1adb=['forward','isEnabled','NUMBER_OF_CHANGES','isBackwardNavigationEnabled','backward','div','isReady','_statusText','No\x20changes','isForwardNavigationEnabled','X_OF_Y_CHANGES','currentChangeNumber','fire','execute','_isStatusLabelVisible','ck-revision-history-ui__changes-navigation__label','ck-hidden','ck-revision-history-ui__changes-navigation__navigation','Total','Loading...','ck-revision-history-ui','Show\x20next\x20change','numberOfChanges','isNavigationMode','EDIT_X_OF_Y_REVISIONS','bind','set','ck-revision-history-ui__changes-navigation__wrapper','bindTemplate','setTemplate'];(function(_0x49826e,_0x1adb9e){const _0x17f670=function(_0x4295d4){while(--_0x4295d4){_0x49826e['push'](_0x49826e['shift']());}};_0x17f670(++_0x1adb9e);}(_0x1adb,0x199));const _0x17f6=function(_0x49826e,_0x1adb9e){_0x49826e=_0x49826e-0x0;let _0x17f670=_0x1adb[_0x49826e];return _0x17f670;};import{View as _0x30f84f,ButtonView as _0x167603,ToolbarSeparatorView as _0x5e8c6a}from'ckeditor5/src/ui';import{getTranslation as _0x36f694}from'../../utils/common-translations';import _0x181500 from'../../../theme/icons/arrow-up.svg';import _0x28a546 from'../../../theme/icons/arrow-down.svg';import'../../../theme/changesnavigation.css';export default class bi extends _0x30f84f{constructor(_0x559463){super(_0x559463);const _0x59b6e9=this[_0x17f6('0x9')],_0x2c681e=new _0x167603(_0x559463),_0x56567b=new _0x167603(_0x559463);this['set']('isNavigationMode',!0x1),this['set'](_0x17f6('0x11'),!0x1),this['set'](_0x17f6('0x16'),0x0),this[_0x17f6('0x7')](_0x17f6('0x3'),0x0),this[_0x17f6('0x7')](_0x17f6('0x14'),!0x1),this[_0x17f6('0x7')](_0x17f6('0xe'),!0x1),this['bind'](_0x17f6('0x19'))['to'](this,_0x17f6('0x11'),this,_0x17f6('0x3'),(_0x59967a,_0x1581da)=>_0x59967a&&_0x1581da>0x0),this[_0x17f6('0x6')](_0x17f6('0x12'))['to'](this,_0x17f6('0x11'),this,_0x17f6('0x16'),this,_0x17f6('0x3'),this,_0x17f6('0x4'),(_0x28660a,_0x3e39a6,_0x48c737,_0x3dfe0c)=>{if(!_0x28660a)return _0x36f694(_0x559463,_0x17f6('0x0'));if(!_0x48c737)return _0x36f694(_0x559463,_0x17f6('0x13'));const _0x5452ac=_0x36f694(_0x559463,_0x17f6('0xd'),_0x48c737);return _0x3dfe0c?_0x36f694(_0x559463,_0x17f6('0x15'),[_0x3e39a6+0x1,_0x48c737]):_0x5452ac;}),_0x2c681e[_0x17f6('0x7')]({'label':_0x36f694(_0x559463,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0x181500}),_0x56567b[_0x17f6('0x7')]({'label':_0x36f694(_0x559463,_0x17f6('0x2')),'tooltip':!0x0,'icon':_0x28a546}),_0x2c681e[_0x17f6('0x6')](_0x17f6('0xc'))['to'](this,_0x17f6('0xe')),_0x56567b[_0x17f6('0x6')](_0x17f6('0xc'))['to'](this,'isForwardNavigationEnabled'),_0x2c681e['on']('execute',()=>this[_0x17f6('0x17')]('execute',_0x17f6('0xf'))),_0x56567b['on'](_0x17f6('0x18'),()=>this[_0x17f6('0x17')]('execute',_0x17f6('0xb'))),this[_0x17f6('0xa')]({'tag':_0x17f6('0x10'),'attributes':{'class':['ck',_0x17f6('0x1'),'ck-revision-history-ui__changes-navigation']},'children':[{'tag':'span','attributes':{'class':[_0x17f6('0x8')]},'children':[{'tag':'span','attributes':{'class':[_0x17f6('0x1a'),_0x59b6e9['if']('_isStatusLabelVisible',_0x17f6('0x1b'),_0x397c90=>!_0x397c90)]},'children':[{'text':_0x59b6e9['to']('isNavigationMode',_0x3af11d=>_0x3af11d?_0x36f694(_0x559463,_0x17f6('0x5'))+':\x20':_0x36f694(_0x559463,_0x17f6('0x1d'))+':\x20')}]},{'text':_0x59b6e9['to'](_0x17f6('0x12'))}]},new _0x5e8c6a(),{'tag':_0x17f6('0x10'),'attributes':{'class':[_0x17f6('0x1c')]},'children':[_0x2c681e,_0x56567b]}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3bc5=['addClass','change','document','RevisionViewerLoadingOverlay','editor','hide','removeClass','show','roots','editing'];(function(_0x5f5046,_0x3bc51b){const _0x183e58=function(_0x58e077){while(--_0x58e077){_0x5f5046['push'](_0x5f5046['shift']());}};_0x183e58(++_0x3bc51b);}(_0x3bc5,0x1f4));const _0x183e=function(_0x5f5046,_0x3bc51b){_0x5f5046=_0x5f5046-0x0;let _0x183e58=_0x3bc5[_0x5f5046];return _0x183e58;};import{Plugin as _0x715b57}from'ckeditor5/src/core';const oe='ck-editor__editable__loading-overlay';import'../../../theme/revisionviewerloadingoverlay.css';export default class te extends _0x715b57{static get['pluginName'](){return _0x183e('0x3');}[_0x183e('0x7')](){const _0x4c03ea=this[_0x183e('0x4')][_0x183e('0x9')]['view'];_0x4c03ea[_0x183e('0x1')](_0xd00846=>{for(const _0xdc2c19 of _0x4c03ea[_0x183e('0x2')][_0x183e('0x8')])_0xd00846[_0x183e('0x0')](oe,_0xdc2c19);});}[_0x183e('0x5')](){const _0x51259b=this[_0x183e('0x4')][_0x183e('0x9')]['view'];_0x51259b[_0x183e('0x1')](_0x1a80d3=>{for(const _0x20ad52 of _0x51259b['document'][_0x183e('0x8')])_0x1a80d3[_0x183e('0x6')](oe,_0x20ad52);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x7913=['requires','listenTo','get','commands','set','init','Back\x20to\x20editing','isForwardNavigationEnabled','isBackwardNavigationEnabled','isEnabled','editor','restoreRevision','execute','numberOfChanges','add','changesNavigation','isNavigationMode','closeRevisionViewerCallback','bind','ck-revision-history-ui__back-to-editing','change:isReady','forward','showNextChange','showPreviousChange','plugins','show','componentFactory','RevisionViewerUI'];(function(_0x574046,_0x79131b){const _0x4596fd=function(_0xd6a9f2){while(--_0xd6a9f2){_0x574046['push'](_0x574046['shift']());}};_0x4596fd(++_0x79131b);}(_0x7913,0x1d2));const _0x4596=function(_0x574046,_0x79131b){_0x574046=_0x574046-0x0;let _0x4596fd=_0x7913[_0x574046];return _0x4596fd;};import{Plugin as _0x227973}from'ckeditor5/src/core';import{ButtonView as _0x57169a}from'ckeditor5/src/ui';import _0x490d7b from'./changesnavigationview';import _0x45db05 from'./../../revisionviewer';import _0x5cb6a9 from'./revisionviewerloadingoverlay';import{getTranslation as _0x113502}from'../../utils/common-translations';import _0x41d5b3 from'@ckeditor/ckeditor5-undo/theme/icons/undo.svg';import'../../../theme/revisionviewer.css';export default class R extends _0x227973{static get['pluginName'](){return _0x4596('0x9');}static get[_0x4596('0xa')](){return[_0x45db05,_0x5cb6a9];}[_0x4596('0xf')](){const _0x23c57e=this[_0x4596('0x14')],_0x4abc1=_0x23c57e[_0x4596('0x6')][_0x4596('0xc')](_0x45db05),_0x5f3f3d=_0x23c57e[_0x4596('0x6')][_0x4596('0xc')](_0x5cb6a9);_0x23c57e['ui'][_0x4596('0x8')][_0x4596('0x18')]('exitToEditing',_0x18064d=>{const _0x271f24=new _0x57169a(_0x18064d);return _0x271f24[_0x4596('0xe')]({'label':_0x113502(_0x18064d,_0x4596('0x10')),'icon':_0x41d5b3,'withText':!0x0,'tooltip':!0x0,'class':_0x4596('0x1')}),this[_0x4596('0xb')](_0x271f24,'execute',()=>{_0x23c57e['config'][_0x4596('0xc')]('revisionHistory')[_0x4596('0x1b')]();}),_0x271f24;}),_0x23c57e['ui'][_0x4596('0x8')]['add'](_0x4596('0x15'),_0x12f5b1=>{const _0x5dc036=new _0x57169a(_0x12f5b1);return _0x5dc036['set']({'label':_0x113502(_0x12f5b1,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x5dc036[_0x4596('0x0')]('isEnabled')['to'](_0x23c57e[_0x4596('0xd')][_0x4596('0xc')]('restoreRevision')),this[_0x4596('0xb')](_0x5dc036,'execute',()=>_0x23c57e[_0x4596('0x16')](_0x4596('0x15'))),_0x5dc036;}),_0x23c57e['ui']['componentFactory']['add'](_0x4596('0x19'),_0x298c10=>{const _0x30cedd=new _0x490d7b(_0x298c10),_0x1f12cc=_0x23c57e[_0x4596('0xd')]['get'](_0x4596('0x5')),_0x1f3b2b=_0x23c57e[_0x4596('0xd')]['get'](_0x4596('0x4'));return _0x30cedd[_0x4596('0x0')](_0x4596('0x12'))['to'](_0x1f12cc,_0x4596('0x13')),_0x30cedd[_0x4596('0x0')](_0x4596('0x11'))['to'](_0x1f3b2b,_0x4596('0x13')),_0x30cedd[_0x4596('0x0')]('isReady','currentChangeNumber',_0x4596('0x17'),_0x4596('0x1a'))['to'](_0x4abc1),this[_0x4596('0xb')](_0x30cedd,_0x4596('0x16'),(_0x4d31bf,_0x3aafa7)=>{_0x23c57e['execute'](_0x4596('0x3')===_0x3aafa7?_0x4596('0x4'):_0x4596('0x5'));}),_0x30cedd;}),_0x5f3f3d['show'](),_0x4abc1['on'](_0x4596('0x2'),(_0x16b522,_0x165a02,_0x4ef700)=>{_0x4ef700?_0x5f3f3d['hide']():_0x5f3f3d[_0x4596('0x7')]();});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export function getTranslation(
|
|
23
|
+
export function getTranslation(_0x153dd7,_0x50d4ff,_0x267b84){const t=_0x153dd7['t'];switch(_0x50d4ff){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'},_0x267b84);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x267b84);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 _0x50d4ff;}}
|