@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20230724.0 → 0.0.0-nightly-20230725.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +0 -1
- package/build/revision-history.js +1 -1
- package/package.json +6 -6
- package/src/augmentation.d.ts +4 -0
- package/src/changeitem.d.ts +2 -1
- package/src/changeitem.js +1 -1
- package/src/editor/revisionviewereditor.js +1 -1
- package/src/editor/revisionviewereditorui.js +1 -1
- package/src/editor/revisionviewereditoruiview.js +1 -1
- package/src/index.d.ts +4 -0
- package/src/revision.d.ts +2 -2
- package/src/revision.js +1 -1
- package/src/revisiondiff.d.ts +4 -0
- package/src/revisiondiff.js +1 -1
- package/src/revisionhistory.d.ts +4 -0
- package/src/revisionhistory.js +1 -1
- package/src/revisionhistoryadapter.d.ts +4 -0
- package/src/revisionhistoryconfig.d.ts +2 -2
- package/src/revisionsrepository.d.ts +4 -0
- package/src/revisionsrepository.js +1 -1
- package/src/revisiontracker.d.ts +4 -0
- package/src/revisiontracker.js +1 -1
- package/src/revisionviewer.d.ts +4 -0
- package/src/revisionviewer.js +1 -1
- package/src/ui/revision/createrevisionactionsdropdown.d.ts +2 -1
- package/src/ui/revision/createrevisionactionsdropdown.js +1 -1
- package/src/ui/revision/revisionauthorview.d.ts +2 -1
- package/src/ui/revision/revisionauthorview.js +1 -1
- package/src/ui/revision/revisionnameview.d.ts +2 -1
- package/src/ui/revision/revisionnameview.js +1 -1
- package/src/ui/revision/revisionview.d.ts +4 -0
- package/src/ui/revision/revisionview.js +1 -1
- package/src/ui/revision/subrevisioncollapserview.d.ts +4 -0
- package/src/ui/revision/subrevisioncollapserview.js +1 -1
- package/src/ui/revision/subrevisionview.d.ts +4 -0
- package/src/ui/revision/subrevisionview.js +1 -1
- package/src/ui/revision/utils.d.ts +2 -1
- package/src/ui/revision/utils.js +1 -1
- package/src/ui/revisionhistory/revisionhistorysaverevisionformview.d.ts +2 -1
- package/src/ui/revisionhistory/revisionhistorysaverevisionformview.js +1 -1
- package/src/ui/revisionhistory/revisionhistoryui.d.ts +4 -0
- package/src/ui/revisionhistory/revisionhistoryui.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebar.d.ts +4 -0
- package/src/ui/revisionssidebar/revisionssidebar.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebarheaderview.d.ts +2 -1
- package/src/ui/revisionssidebar/revisionssidebarheaderview.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebartimeperiodview.d.ts +4 -0
- package/src/ui/revisionssidebar/revisionssidebartimeperiodview.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebarview.d.ts +4 -0
- package/src/ui/revisionssidebar/revisionssidebarview.js +1 -1
- package/src/ui/revisionssidebar/utils.d.ts +2 -1
- package/src/ui/revisionssidebar/utils.js +1 -1
- package/src/ui/revisionviewer/changedetailsview.d.ts +4 -0
- package/src/ui/revisionviewer/changedetailsview.js +1 -1
- package/src/ui/revisionviewer/changesnavigationview.d.ts +4 -0
- package/src/ui/revisionviewer/changesnavigationview.js +1 -1
- package/src/ui/revisionviewer/revisionviewerloadingoverlay.d.ts +4 -0
- package/src/ui/revisionviewer/revisionviewerloadingoverlay.js +1 -1
- package/src/ui/revisionviewer/revisionviewerui.d.ts +4 -0
- package/src/ui/revisionviewer/revisionviewerui.js +1 -1
- package/src/utils/common-translations.d.ts +4 -0
- package/src/utils/common-translations.js +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ckeditor/ckeditor5-revision-history",
|
|
3
|
-
"version": "0.0.0-nightly-
|
|
3
|
+
"version": "0.0.0-nightly-20230725.1",
|
|
4
4
|
"description": "Document revision history feature for CKEditor 5.",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
6
6
|
"author": "CKSource (http://cksource.com/)",
|
|
@@ -37,11 +37,11 @@
|
|
|
37
37
|
"CHANGELOG.md"
|
|
38
38
|
],
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"@ckeditor/ckeditor5-editor-classic": "0.0.0-nightly-
|
|
41
|
-
"@ckeditor/ckeditor5-ui": "0.0.0-nightly-
|
|
42
|
-
"@ckeditor/ckeditor5-undo": "0.0.0-nightly-
|
|
43
|
-
"ckeditor5": "0.0.0-nightly-
|
|
44
|
-
"ckeditor5-collaboration": "0.0.0-nightly-
|
|
40
|
+
"@ckeditor/ckeditor5-editor-classic": "0.0.0-nightly-20230725.1",
|
|
41
|
+
"@ckeditor/ckeditor5-ui": "0.0.0-nightly-20230725.1",
|
|
42
|
+
"@ckeditor/ckeditor5-undo": "0.0.0-nightly-20230725.1",
|
|
43
|
+
"ckeditor5": "0.0.0-nightly-20230725.1",
|
|
44
|
+
"ckeditor5-collaboration": "0.0.0-nightly-20230725.1",
|
|
45
45
|
"lodash-es": "4.17.21",
|
|
46
46
|
"luxon": "1.28.1"
|
|
47
47
|
},
|
package/src/augmentation.d.ts
CHANGED
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
+
*/
|
|
1
5
|
import type { RevisionHistoryConfig, RevisionsRepository, RevisionViewerLoadingOverlay, RevisionHistoryUI, RevisionTracker, RevisionViewer, RestoreRevisionCommand, ShowChangeCommand, RevisionsSidebar, RevisionViewerUI } from './index';
|
|
2
6
|
declare module '@ckeditor/ckeditor5-core' {
|
|
3
7
|
interface EditorConfig {
|
package/src/changeitem.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @
|
|
2
|
+
* @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
3
4
|
*/
|
|
4
5
|
import type { User } from 'ckeditor5-collaboration/src/collaboration-core';
|
|
5
6
|
declare const ChangeItem_base: {
|
package/src/changeitem.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0xdbba=['type','author','toJSON','data','createdAt','rootName'];(function(_0x10a4b4,_0xdbba4){var _0x2a97ce=function(_0x3d8d78){while(--_0x3d8d78){_0x10a4b4['push'](_0x10a4b4['shift']());}};_0x2a97ce(++_0xdbba4);}(_0xdbba,0xa9));var _0x2a97=function(_0x10a4b4,_0xdbba4){_0x10a4b4=_0x10a4b4-0x0;var _0x2a97ce=_0xdbba[_0x10a4b4];return _0x2a97ce;};import{ObservableMixin as _0x4ac24d,uid as _0x4bb37d}from'ckeditor5/src/utils';export default class r extends _0x4ac24d(){constructor(_0x3028eb){super(),this['id']=_0x3028eb['id']||_0x4bb37d(),this['author']=_0x3028eb['author'],this[_0x2a97('0x5')]=_0x3028eb[_0x2a97('0x5')],this[_0x2a97('0x2')]=_0x3028eb['data']||{},this[_0x2a97('0x4')]=_0x3028eb[_0x2a97('0x4')],this['set'](_0x2a97('0x3'),_0x3028eb[_0x2a97('0x3')]);}[_0x2a97('0x1')](){return{'id':this['id'],'authorId':this[_0x2a97('0x0')]['id'],'type':this[_0x2a97('0x5')],'data':this['data'],'createdAt':this['createdAt']};}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3e94=['get','_ui','locale','destroy','init','editing','create','initPlugins','view','updateSourceElement','initialData','ready'];(function(_0x433919,_0x3e9449){const _0x66d0f9=function(_0xe5deac){while(--_0xe5deac){_0x433919['push'](_0x433919['shift']());}};_0x66d0f9(++_0x3e9449);}(_0x3e94,0x17e));const _0x66d0=function(_0x433919,_0x3e9449){_0x433919=_0x433919-0x0;let _0x66d0f9=_0x3e94[_0x433919];return _0x66d0f9;};import{Editor as _0x3c64e8,DataApiMixin as _0x7b0aa1,ElementApiMixin as _0x5e1095}from'ckeditor5/src/core';import _0x456a84 from'./revisionviewereditorui';import _0x2a5607 from'./revisionviewereditoruiview';export default class m extends _0x7b0aa1(_0x5e1095(_0x3c64e8)){get['ui'](){return this[_0x66d0('0x3')];}constructor(_0x28f041,_0xc63a17){super(_0xc63a17),this['sourceElement']=_0x28f041,this['model']['document']['createRoot']();const _0x32ac72=new _0x2a5607(this[_0x66d0('0x4')],this[_0x66d0('0x7')][_0x66d0('0xa')],{'shouldToolbarGroupWhenFull':!0x0});this[_0x66d0('0x3')]=new _0x456a84(this,_0x32ac72);}[_0x66d0('0x5')](){return this[_0x66d0('0xb')](),this['ui']['destroy'](),super[_0x66d0('0x5')]();}static async[_0x66d0('0x8')](_0x58b73b,_0x27e6e8){const _0xfda887=new this(_0x58b73b,_0x27e6e8);return await _0xfda887[_0x66d0('0x9')](),await _0xfda887['ui'][_0x66d0('0x6')](_0x58b73b),await _0xfda887['data'][_0x66d0('0x6')](_0xfda887['config'][_0x66d0('0x2')](_0x66d0('0x0'))||''),_0xfda887['fire'](_0x66d0('0x1')),_0xfda887;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3817=['_elementReplacer','element','attachDomRoot','name','get','limiterElement','editing','stickyPanel','getRoot','_initToolbar','restore','detachDomRoot','isActive','_toolbarConfig','setEditableElement','rootName','_view','fire','editable','view','editor','fillFromConfig','replace','init','destroy','viewportOffset','isFocused','bind','toolbar','render','focusTracker','config'];(function(_0x1d4bf2,_0x3817a9){const _0x2fa3e5=function(_0x39b91a){while(--_0x39b91a){_0x1d4bf2['push'](_0x1d4bf2['shift']());}};_0x2fa3e5(++_0x3817a9);}(_0x3817,0x6b));const _0x2fa3=function(_0x1d4bf2,_0x3817a9){_0x1d4bf2=_0x1d4bf2-0x0;let _0x2fa3e5=_0x3817[_0x1d4bf2];return _0x2fa3e5;};import{EditorUI as _0xce8b7,normalizeToolbarConfig as _0x3aae34}from'ckeditor5/src/ui';import{ElementReplacer as _0xb8be71}from'ckeditor5/src/utils';export default class ot extends _0xce8b7{get[_0x2fa3('0x8')](){return this[_0x2fa3('0x5')];}constructor(_0x1e9e51,_0x5b3c99){super(_0x1e9e51),this[_0x2fa3('0x5')]=_0x5b3c99,this[_0x2fa3('0x2')]=_0x3aae34(_0x1e9e51[_0x2fa3('0x14')][_0x2fa3('0x19')]('toolbar')),this['_elementReplacer']=new _0xb8be71();}get[_0x2fa3('0x16')](){return this[_0x2fa3('0x8')][_0x2fa3('0x16')];}[_0x2fa3('0xc')](_0x1261db){const _0x1a5fec=this[_0x2fa3('0x9')],_0x5dd727=this[_0x2fa3('0x8')],_0x52705a=_0x1a5fec[_0x2fa3('0x1b')][_0x2fa3('0x8')],_0x3120f2=_0x5dd727[_0x2fa3('0x7')],_0x2da122=_0x52705a['document'][_0x2fa3('0x1d')]();_0x3120f2['name']=_0x2da122[_0x2fa3('0x4')],_0x5dd727[_0x2fa3('0x12')]();const _0x10fa65=_0x3120f2['element'];this[_0x2fa3('0x3')](_0x3120f2[_0x2fa3('0x18')],_0x10fa65),_0x5dd727['editable'][_0x2fa3('0x10')](_0x2fa3('0xf'))['to'](this[_0x2fa3('0x13')]),_0x52705a[_0x2fa3('0x17')](_0x10fa65),this[_0x2fa3('0x15')][_0x2fa3('0xb')](_0x1261db,this[_0x2fa3('0x16')]),this['_initToolbar'](),this[_0x2fa3('0x6')]('ready');}[_0x2fa3('0xd')](){super[_0x2fa3('0xd')]();const _0x4a7e11=this[_0x2fa3('0x8')],_0x3a0478=this['editor'][_0x2fa3('0x1b')][_0x2fa3('0x8')];this['_elementReplacer'][_0x2fa3('0x1f')](),_0x3a0478[_0x2fa3('0x0')](_0x4a7e11[_0x2fa3('0x7')]['name']),_0x4a7e11[_0x2fa3('0xd')]();}[_0x2fa3('0x1e')](){const _0x3e0004=this['view'];_0x3e0004['stickyPanel'][_0x2fa3('0x10')](_0x2fa3('0x1'))['to'](this[_0x2fa3('0x13')],_0x2fa3('0xf')),_0x3e0004[_0x2fa3('0x1c')][_0x2fa3('0x1a')]=_0x3e0004[_0x2fa3('0x16')],_0x3e0004[_0x2fa3('0x1c')][_0x2fa3('0x10')]('viewportTopOffset')['to'](this,_0x2fa3('0xe'),({top:_0x111040})=>_0x111040),_0x3e0004[_0x2fa3('0x11')][_0x2fa3('0xa')](this[_0x2fa3('0x2')],this['componentFactory']),this['addToolbar'](_0x3e0004[_0x2fa3('0x11')]);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x1441=['stickyPanel','add','content','editable','render','top','shouldToolbarGroupWhenFull','main'];(function(_0x1aa0a1,_0x1441c1){var _0x577cf5=function(_0xa8e7dc){while(--_0xa8e7dc){_0x1aa0a1['push'](_0x1aa0a1['shift']());}};_0x577cf5(++_0x1441c1);}(_0x1441,0xd3));var _0x577c=function(_0x1aa0a1,_0x1441c1){_0x1aa0a1=_0x1aa0a1-0x0;var _0x577cf5=_0x1441[_0x1aa0a1];return _0x577cf5;};import{BoxedEditorUIView as _0xaaf1e6,InlineEditableUIView as _0x3a7dd9,StickyPanelView as _0x4bf188,ToolbarView as _0x4421ec}from'ckeditor5/src/ui';import'@ckeditor/ckeditor5-editor-classic/theme/classiceditor.css';export default class at extends _0xaaf1e6{get[_0x577c('0x0')](){return this['_editable'];}constructor(_0x4e1ac2,_0x477532,_0x23c2bc={}){super(_0x4e1ac2),this[_0x577c('0x5')]=new _0x4bf188(_0x4e1ac2),this['toolbar']=new _0x4421ec(_0x4e1ac2,{'shouldGroupWhenFull':_0x23c2bc[_0x577c('0x3')]}),this['_editable']=new _0x3a7dd9(_0x4e1ac2,_0x477532);}['render'](){super[_0x577c('0x1')](),this['stickyPanel'][_0x577c('0x7')][_0x577c('0x6')](this['toolbar']),this[_0x577c('0x2')][_0x577c('0x6')](this['stickyPanel']),this[_0x577c('0x4')]['add'](this['editable']);}}
|
package/src/index.d.ts
CHANGED
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
+
*/
|
|
1
5
|
export { default as RevisionHistory } from './revisionhistory';
|
|
2
6
|
export { default as RevisionsRepository } from './revisionsrepository';
|
|
3
7
|
export { default as RevisionViewerLoadingOverlay } from './ui/revisionviewer/revisionviewerloadingoverlay';
|
package/src/revision.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @
|
|
3
|
-
*
|
|
2
|
+
* @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
4
|
*/
|
|
5
5
|
import type { User } from 'ckeditor5-collaboration/src/collaboration-core';
|
|
6
6
|
declare const Revision_base: {
|
package/src/revision.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1167=['createdAt','authorsIds','diffData','name','fromVersion','map','creatorId','set','_update','attributes','toJSON','toVersion','setName','fire','creator','authors','removeAttribute'];(function(_0x44b075,_0x1167bb){const _0x33bc91=function(_0x1295db){while(--_0x1295db){_0x44b075['push'](_0x44b075['shift']());}};_0x33bc91(++_0x1167bb);}(_0x1167,0x184));const _0x33bc=function(_0x44b075,_0x1167bb){_0x44b075=_0x44b075-0x0;let _0x33bc91=_0x1167[_0x44b075];return _0x33bc91;};import{ObservableMixin as _0x3b0e8b,uid as _0xbb1e32}from'ckeditor5/src/utils';import{cloneDeep as _0x4e0fea,set as _0x35b3f8,unset as _0x573d37}from'lodash-es';export default class a extends _0x3b0e8b(){constructor(_0x8e56b1){super(),this['id']=_0x8e56b1['id']||_0xbb1e32(),this['creator']=_0x8e56b1[_0x33bc('0x0')]||null,this[_0x33bc('0x1')]=_0x8e56b1[_0x33bc('0x1')]||[],this[_0x33bc('0x5')]=_0x8e56b1[_0x33bc('0x5')]||null,this[_0x33bc('0xe')]=_0x8e56b1['toVersion']||0x0,this[_0x33bc('0x7')]=_0x8e56b1[_0x33bc('0x7')]||0x0,this['set'](_0x33bc('0x6'),_0x8e56b1[_0x33bc('0x6')]||''),this[_0x33bc('0xa')](_0x33bc('0x3'),_0x8e56b1[_0x33bc('0x3')]||new Date()),this['set'](_0x33bc('0xc'),_0x8e56b1[_0x33bc('0xc')]||{});}[_0x33bc('0xf')](_0x3e4ac3){this[_0x33bc('0xb')]({'name':_0x3e4ac3});}['setAttribute'](_0xf3c2c4,_0x22c2e1){const _0x4f512c=_0x4e0fea(this[_0x33bc('0xc')]);_0x35b3f8(_0x4f512c,_0xf3c2c4,_0x22c2e1),this['_update']({'attributes':_0x4f512c});}[_0x33bc('0x2')](_0x8b546b){const _0xb9eca9=_0x4e0fea(this[_0x33bc('0xc')]);_0x573d37(_0xb9eca9,_0x8b546b),this[_0x33bc('0xb')]({'attributes':_0xb9eca9});}[_0x33bc('0xb')](_0x18efdf,_0xec7dce=!0x1){let _0x3bb601=!0x1;const _0x2825af={'id':this['id']},_0x24fac9=[_0x33bc('0x6'),'createdAt',_0x33bc('0x5'),_0x33bc('0x1'),_0x33bc('0xc'),'toVersion','fromVersion',_0x33bc('0x9')];for(const _0x35c588 of _0x24fac9){const _0x30e5a3=_0x18efdf[_0x35c588];void 0x0!==_0x30e5a3&&_0x30e5a3!==this[_0x35c588]&&(this[_0x35c588]=_0x30e5a3,_0x2825af[_0x35c588]=_0x30e5a3,_0x3bb601=!0x0);}_0x3bb601&&(_0x2825af[_0x33bc('0x1')]&&(_0x2825af[_0x33bc('0x4')]=_0x2825af[_0x33bc('0x1')][_0x33bc('0x8')](_0x1ca9ef=>_0x1ca9ef['id']),delete _0x2825af[_0x33bc('0x1')]),this[_0x33bc('0x10')]('_update',_0x2825af,_0xec7dce));}[_0x33bc('0xd')](){return{'id':this['id'],'name':this[_0x33bc('0x6')],'creatorId':this['creator']?this[_0x33bc('0x0')]['id']:null,'authorsIds':this[_0x33bc('0x1')][_0x33bc('0x8')](_0x44c852=>_0x44c852['id']),'diffData':this[_0x33bc('0x5')],'createdAt':this[_0x33bc('0x3')],'attributes':this[_0x33bc('0xc')],'fromVersion':this['fromVersion'],'toVersion':this[_0x33bc('0xe')]};}}
|
package/src/revisiondiff.d.ts
CHANGED
package/src/revisiondiff.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xc18d=['changes','newRevisionId','add','oldRevisionId','_setChanges'];(function(_0x1bdc27,_0xc18d1e){const _0x32d819=function(_0x540487){while(--_0x540487){_0x1bdc27['push'](_0x1bdc27['shift']());}};_0x32d819(++_0xc18d1e);}(_0xc18d,0xd9));const _0x32d8=function(_0x1bdc27,_0xc18d1e){_0x1bdc27=_0x1bdc27-0x0;let _0x32d819=_0xc18d[_0x1bdc27];return _0x32d819;};import{Collection as _0x2f78b2}from'ckeditor5/src/utils';export default class f{constructor(_0x280ce7,_0x1b71b7){this[_0x32d8('0x4')]=_0x280ce7,this[_0x32d8('0x1')]=_0x1b71b7,this['changes']=new _0x2f78b2();}[_0x32d8('0x2')](_0x4a1ca1){for(const _0x3c4977 of _0x4a1ca1)this[_0x32d8('0x3')][_0x32d8('0x0')](_0x3c4977);}}
|
package/src/revisionhistory.d.ts
CHANGED
package/src/revisionhistory.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x3dbf=['create','isReadOnly','revision-history-viewer-opened','editor','then','revision-history-missing-configuration','pluginName','locale','_showRevisionViewer','_enhanceCloseRevisionViewerCallback','Annotations','display','RevisionsRepository','repository','revisionHistory.editorContainer','set','_recalculatePageBreaks','revisionHistory','revisionHistory.viewerContainer','save','closeRevisionViewerCallback','result','toLocaleDateString','RestrictedEditingMode','none','_update','creator','RevisionHistory','isReady','numeric','push','get','model','end','getMarkersGroup','block','getAttributeKeys','markers','getUser','fromVersion','addRevisionData','getRootNames','_cleanUp','_enhanceShowRevisionViewerCallback','document','catch','changesNavigation','change','toJSON','restrictedEditingException','PaginationLookup','disableReadOnlyMode','enableReadOnlyMode','createdAt','saveRevision','Users','destroy','config','getRevisionData','_getRevisionViewerEditorConfig','keys','revisionHistory.showRevisionViewerCallback','revisionHistory.restoreRevisionCallback','toVersion','setSelection','revisionHistory.closeRevisionViewerCallback','define','refreshPositioning','commands','isEnabled','adapter','RevisionTracker','parse','requires','data','addRoot','init','Autosave','getRevisionRootsAttributes','showRevisionViewerCallback','_viewerEditor','RevisionViewer','plugins','style','users','name','RevisionHistoryUI','removeSelectionAttribute','bind','refreshVisibility','detachRoot','getRevisions','addUser','enqueueChange','uiLanguage','_restoreRevision','exitToEditing','Restored','restoreRevision','has','getRevision','isAnonymous'];(function(_0x272e69,_0x3dbf1b){const _0x616fed=function(_0x5ae33b){while(--_0x5ae33b){_0x272e69['push'](_0x272e69['shift']());}};_0x616fed(++_0x3dbf1b);}(_0x3dbf,0x108));const _0x616f=function(_0x272e69,_0x3dbf1b){_0x272e69=_0x272e69-0x0;let _0x616fed=_0x3dbf[_0x272e69];return _0x616fed;};import{Plugin as _0x343ea8}from'ckeditor5/src/core';import{CKEditorError as _0x3e3c92,uid as _0x3a1606}from'ckeditor5/src/utils';import _0x43870d from'./revisiontracker';import _0x27e8ad from'./ui/revisionhistory/revisionhistoryui';import _0x5c6743 from'./revisionviewer';import _0x4a584c from'./ui/revisionviewer/revisionviewerui';import _0x2be08e from'./ui/revisionssidebar/revisionssidebar';import _0x403a54 from'./editor/revisionviewereditor';import{getTranslation as _0x400376}from'./utils/common-translations';import{sanitizeEditorConfig as _0xf1b8f8}from'ckeditor5-collaboration/src/collaboration-core';const g=[_0x616f('0x1a'),_0x616f('0x41')];class k extends _0x343ea8{static get[_0x616f('0x30')](){return'RevisionViewerIntegration';}constructor(_0x4f8b05){super(_0x4f8b05),this[_0x616f('0x3f')]=_0x616f('0x4b');}}export default class b extends _0x343ea8{static get['pluginName'](){return _0x616f('0x45');}static get[_0x616f('0xd')](){return[_0x43870d,_0x27e8ad];}constructor(_0x14161a){if(super(_0x14161a),!this[_0x616f('0x2d')][_0x616f('0x63')][_0x616f('0x49')](_0x616f('0x3b')))throw new _0x3e3c92(_0x616f('0x2f'),this);this['_viewerEditor']=null,this['editor'][_0x616f('0x63')][_0x616f('0x6')](_0x616f('0x1'),_0x5028bc=>this[_0x616f('0x32')](_0x5028bc)),this[_0x616f('0x2d')][_0x616f('0x63')][_0x616f('0x6')](_0x616f('0x5'),_0x43b9b8=>this['_closeRevisionViewer'](_0x43b9b8)),this['editor'][_0x616f('0x63')][_0x616f('0x6')](_0x616f('0x2'),_0x3fafdc=>this['_restoreRevision'](_0x3fafdc)),this[_0x616f('0x55')](),this[_0x616f('0x33')]();}set[_0x616f('0xa')](_0x131294){this[_0x616f('0x2d')][_0x616f('0x16')][_0x616f('0x49')]('RevisionTracker')[_0x616f('0xa')]=_0x131294;}get[_0x616f('0xa')](){return this[_0x616f('0x2d')][_0x616f('0x16')][_0x616f('0x49')](_0x616f('0xb'))['adapter'];}['addRevisionData'](_0xcdbd7f){return this[_0x616f('0x2d')][_0x616f('0x16')][_0x616f('0x49')]('RevisionTracker')[_0x616f('0x52')](_0xcdbd7f);}['getRevision'](_0x4af86c){return this['editor'][_0x616f('0x16')][_0x616f('0x49')](_0x616f('0x36'))[_0x616f('0x28')](_0x4af86c);}[_0x616f('0x1f')](_0x2e0e68={'toJSON':!0x1}){return this[_0x616f('0x2d')][_0x616f('0x16')][_0x616f('0x49')](_0x616f('0x36'))[_0x616f('0x1f')](_0x2e0e68);}['_getRevisionViewerEditorConfig'](){const _0x58e613=this[_0x616f('0x2d')],_0x51d67d=_0xf1b8f8(_0x58e613,g),_0x2c8d7d=_0x58e613[_0x616f('0x16')][_0x616f('0x49')](_0x616f('0xb')),_0x301aa0=_0x58e613[_0x616f('0x16')][_0x616f('0x49')](_0x616f('0x61'))[_0x616f('0x18')];return _0x51d67d['toolbar']=[_0x616f('0x24'),'restoreRevision',_0x616f('0x58')],(_0x51d67d[_0x616f('0x16')][_0x616f('0x48')](k,_0x5c6743,_0x4a584c,class extends _0x343ea8{static get['requires'](){return[_0x5c6743,_0x616f('0x61')];}[_0x616f('0x10')](){const _0x512ec3=this[_0x616f('0x2d')][_0x616f('0x16')]['get']('Users');for(const _0x41cd84 of _0x301aa0)_0x41cd84[_0x616f('0x29')]||_0x512ec3[_0x616f('0x50')](_0x41cd84['id'])||_0x512ec3[_0x616f('0x20')](_0x41cd84);const _0x54989b=_0x2c8d7d[_0x616f('0x37')][_0x616f('0x1f')]();let _0x2660af=null;const _0x18dcf7=this['editor'][_0x616f('0x16')]['get'](_0x616f('0x15'));_0x18dcf7[_0x616f('0xa')]=_0x2c8d7d[_0x616f('0xa')],_0x18dcf7[_0x616f('0x1c')](_0x616f('0x9'))['to'](_0x2c8d7d),this['editor'][_0x616f('0x8')]['get'](_0x616f('0x26'))[_0x616f('0x1c')](_0x616f('0x9'))['to'](_0x58e613,_0x616f('0x2b'),_0x593839=>!_0x593839);for(const _0x1baddb of _0x54989b){const _0x3a2b37=null===_0x1baddb[_0x616f('0x44')];if(_0x3a2b37&&_0x1baddb['toVersion']===_0x1baddb[_0x616f('0x51')])continue;const _0x51aba2=_0x1baddb[_0x616f('0x5a')]();_0x18dcf7[_0x616f('0x52')](_0x51aba2,(_0xfb794d,_0x2375d0,_0x4cacfe)=>{if(_0x3a2b37){if(_0x2660af)_0x2660af[_0x616f('0x43')](_0xfb794d,_0x2375d0);else{if(!_0x2375d0){const _0x52ed69=_0x4cacfe[_0x616f('0x5a')]();_0x52ed69['id']=_0x3a1606(),_0x2c8d7d['saveRevision'](_0x52ed69,_0x4cacfe[_0x616f('0x3')])[_0x616f('0x2e')](_0x4c8c56=>{_0x2660af=_0x4c8c56;});}}}else _0x1baddb[_0x616f('0x43')](_0xfb794d,_0x2375d0);});}}},_0x2be08e),_0x51d67d);}['_enhanceShowRevisionViewerCallback'](){const _0x27696d=this[_0x616f('0x2d')][_0x616f('0x63')][_0x616f('0x49')]('revisionHistory')[_0x616f('0x13')];this['editor']['config'][_0x616f('0x39')](_0x616f('0x1'),async()=>{this[_0x616f('0x2d')][_0x616f('0x5e')](_0x616f('0x2c'));const _0x684e38=this[_0x616f('0x2d')][_0x616f('0x16')][_0x616f('0x49')](_0x616f('0xb'));if(this[_0x616f('0x2d')][_0x616f('0x16')][_0x616f('0x27')](_0x616f('0x11'))){const _0x3b7297=this['editor'][_0x616f('0x16')]['get'](_0x616f('0x11'));await _0x3b7297[_0x616f('0x3d')]();}else await _0x684e38['update']();this[_0x616f('0x2d')][_0x616f('0x16')][_0x616f('0x27')](_0x616f('0x5c'))&&this[_0x616f('0x2d')][_0x616f('0x16')]['get'](_0x616f('0x5c'))[_0x616f('0x3a')]();const _0xb3e105=this[_0x616f('0x65')]();return _0x27696d(_0xb3e105)[_0x616f('0x2e')](_0x581fc1=>{return(this[_0x616f('0x14')]=_0x581fc1,this[_0x616f('0x2d')]['plugins'][_0x616f('0x27')](_0x616f('0x34')))&&this[_0x616f('0x2d')][_0x616f('0x16')][_0x616f('0x49')](_0x616f('0x34'))[_0x616f('0x1d')](),_0x581fc1;})[_0x616f('0x57')](_0xb2a622=>(console['error'](_0xb2a622),this[_0x616f('0x2d')][_0x616f('0x5d')]('revision-history-viewer-opened'),null));});}[_0x616f('0x33')](){const _0x2ca94e=this[_0x616f('0x2d')][_0x616f('0x63')]['get'](_0x616f('0x3b'))[_0x616f('0x3e')];this['editor']['config'][_0x616f('0x39')]('revisionHistory.closeRevisionViewerCallback',()=>(this[_0x616f('0x2d')][_0x616f('0x16')][_0x616f('0x27')](_0x616f('0x5c'))&&this[_0x616f('0x2d')][_0x616f('0x16')][_0x616f('0x49')](_0x616f('0x5c'))[_0x616f('0x3a')](),this[_0x616f('0x14')]['plugins'][_0x616f('0x49')](_0x616f('0x15'))[_0x616f('0x54')](),_0x2ca94e(this[_0x616f('0x14')])[_0x616f('0x2e')](()=>{if(this[_0x616f('0x2d')][_0x616f('0x5d')](_0x616f('0x2c')),this[_0x616f('0x14')]=null,this[_0x616f('0x2d')][_0x616f('0x16')][_0x616f('0x27')](_0x616f('0x34'))){const _0x53b033=this['editor'][_0x616f('0x16')][_0x616f('0x49')]('Annotations');_0x53b033[_0x616f('0x1d')](),_0x53b033[_0x616f('0x7')]();}})));}[_0x616f('0x32')](_0x104867){const _0x416477=this[_0x616f('0x2d')][_0x616f('0x63')][_0x616f('0x49')](_0x616f('0x38')),_0x51c8b6=this[_0x616f('0x2d')][_0x616f('0x63')][_0x616f('0x49')]('revisionHistory.viewerContainer'),_0x10b3bd=this['editor'][_0x616f('0x63')]['get']('revisionHistory.viewerEditorElement');return _0x403a54[_0x616f('0x2a')](_0x10b3bd,_0x104867)[_0x616f('0x2e')](_0x3c1c76=>(_0x51c8b6['style'][_0x616f('0x35')]=_0x616f('0x4d'),_0x416477['style'][_0x616f('0x35')]=_0x616f('0x42'),_0x3c1c76));}['_closeRevisionViewer'](_0x2b7993){const _0x41b992=this[_0x616f('0x2d')]['config']['get'](_0x616f('0x38'));return this[_0x616f('0x2d')][_0x616f('0x63')]['get'](_0x616f('0x3c'))[_0x616f('0x17')][_0x616f('0x35')]='none',_0x41b992[_0x616f('0x17')][_0x616f('0x35')]='',_0x2b7993[_0x616f('0x62')]();}async[_0x616f('0x23')](_0x3d083c){const _0x13d508=this[_0x616f('0x2d')],_0x1df4ec=this[_0x616f('0x14')][_0x616f('0x16')][_0x616f('0x49')](_0x616f('0x15')),_0x1ece73=_0x13d508[_0x616f('0x16')]['get'](_0x616f('0xb')),_0x7e9989=_0x1df4ec[_0x616f('0x37')][_0x616f('0x28')](_0x3d083c);let _0x57a68a,_0x1a642e,_0x5ac60c;try{_0x57a68a=await _0x1df4ec[_0x616f('0x64')](_0x7e9989),_0x1a642e=await _0x1df4ec[_0x616f('0x12')](_0x7e9989);}catch(_0x3ad79b){return void console['error'](_0x3ad79b);}_0x13d508[_0x616f('0x4a')][_0x616f('0x59')](_0x3f2c9d=>{for(const _0x5a001b of Array['from'](_0x13d508[_0x616f('0x4a')][_0x616f('0x4f')][_0x616f('0x4c')](_0x616f('0x5b'))))_0x3f2c9d['removeMarker'](_0x5a001b);}),_0x1df4ec[_0x616f('0x46')]=!0x1,_0x13d508[_0x616f('0x4a')][_0x616f('0x21')](_0x19ddd9=>{_0x19ddd9[_0x616f('0x4')](null),_0x19ddd9[_0x616f('0x1b')](_0x13d508['model'][_0x616f('0x56')]['selection'][_0x616f('0x4e')]());for(const _0x25e014 of _0x13d508[_0x616f('0x4a')][_0x616f('0x56')][_0x616f('0x53')]())_0x19ddd9[_0x616f('0x1e')](_0x25e014);for(const _0x4fcae5 of Object[_0x616f('0x0')](_0x57a68a)){const _0x38b4d0=_0x19ddd9[_0x616f('0xf')](_0x4fcae5);for(const _0x5c9ab8 of Object[_0x616f('0x0')](_0x1a642e[_0x4fcae5]))_0x19ddd9['setAttribute'](_0x5c9ab8,_0x1a642e[_0x4fcae5][_0x5c9ab8],_0x38b4d0);_0x19ddd9['insert'](_0x13d508[_0x616f('0xe')][_0x616f('0xc')](_0x57a68a[_0x4fcae5],_0x38b4d0),_0x38b4d0,0x0);}});const _0x381960=_0x400376(_0x13d508['locale'],_0x616f('0x25'));if(_0x7e9989[_0x616f('0x19')])_0x5ac60c=-0x1==_0x7e9989['name']['indexOf'](_0x381960)?_0x381960+':\x20'+_0x7e9989[_0x616f('0x19')]:_0x7e9989[_0x616f('0x19')];else _0x5ac60c=_0x381960+':\x20'+(_0x7e9989[_0x616f('0x5f')][_0x616f('0x40')](_0x13d508[_0x616f('0x31')][_0x616f('0x22')],{'month':'long','day':_0x616f('0x47')})+',\x20'+_0x7e9989[_0x616f('0x5f')]['toLocaleTimeString'](_0x13d508[_0x616f('0x31')][_0x616f('0x22')],{'hour':_0x616f('0x47'),'minute':_0x616f('0x47')}));return await _0x1ece73[_0x616f('0x60')]({'name':_0x5ac60c}),_0x1df4ec[_0x616f('0x46')]=!0x0,_0x13d508[_0x616f('0x63')][_0x616f('0x49')](_0x616f('0x3b'))[_0x616f('0x3e')]();}}
|
|
23
|
+
const _0x59e4=['getRevision','RevisionsRepository','_enhanceCloseRevisionViewerCallback','setAttribute','Users','_closeRevisionViewer','RevisionViewer','getRootNames','removeMarker','RevisionHistory','RestrictedEditingMode','disableReadOnlyMode','commands','getUser','revisionHistory.showRevisionViewerCallback','getRevisionRootsAttributes','block','create','locale','catch','getMarkersGroup','getRevisionData','change','revisionHistory.editorContainer','get','name','createdAt','_restoreRevision','creator','uiLanguage','toLocaleDateString','detachRoot','_enhanceShowRevisionViewerCallback','toolbar','_getRevisionViewerEditorConfig','revisionHistory.viewerEditorElement','closeRevisionViewerCallback','adapter','insert','editor','enqueueChange','set','showRevisionViewerCallback','bind','Annotations','has','style','define','getAttributeKeys','Autosave','requires','destroy','exitToEditing','push','toJSON','changesNavigation','model','selection','saveRevision','markers','_showRevisionViewer','numeric','revision-history-missing-configuration','restoreRevision','init','_update','repository','then','toVersion','config','setSelection','save','_viewerEditor','result','keys','removeSelectionAttribute','Restored','display','revisionHistory.closeRevisionViewerCallback','revisionHistory','isAnonymous','isReady','isEnabled','revisionHistory.viewerContainer','RevisionTracker','getRevisions','revisionHistory.restoreRevisionCallback','addRevisionData','RevisionViewerIntegration','_recalculatePageBreaks','PaginationLookup','revision-history-viewer-opened','update','document','from','isReadOnly','data','_cleanUp','addUser','plugins','end','none'];(function(_0x21062a,_0x59e4af){const _0x9f442a=function(_0x2b07f9){while(--_0x2b07f9){_0x21062a['push'](_0x21062a['shift']());}};_0x9f442a(++_0x59e4af);}(_0x59e4,0xee));const _0x9f44=function(_0x21062a,_0x59e4af){_0x21062a=_0x21062a-0x0;let _0x9f442a=_0x59e4[_0x21062a];return _0x9f442a;};import{Plugin as _0xbd485c}from'ckeditor5/src/core';import{CKEditorError as _0xeb237,uid as _0x23d92e}from'ckeditor5/src/utils';import _0x2563b6 from'./revisiontracker';import _0x460a4b from'./ui/revisionhistory/revisionhistoryui';import _0x11f81f from'./revisionviewer';import _0x528e36 from'./ui/revisionviewer/revisionviewerui';import _0x3d5039 from'./ui/revisionssidebar/revisionssidebar';import _0x2eef45 from'./editor/revisionviewereditor';import{getTranslation as _0x3a6e54}from'./utils/common-translations';import{sanitizeEditorConfig as _0x103518}from'ckeditor5-collaboration/src/collaboration-core';const g=['RevisionHistoryUI',_0x9f44('0x4e')];class k extends _0xbd485c{static get['pluginName'](){return _0x9f44('0x36');}constructor(_0x1fcdc3){super(_0x1fcdc3),this[_0x9f44('0x27')]=_0x9f44('0x42');}}export default class b extends _0xbd485c{static get['pluginName'](){return _0x9f44('0x4d');}static get[_0x9f44('0x10')](){return[_0x2563b6,_0x460a4b];}constructor(_0x58f1f7){if(super(_0x58f1f7),!this[_0x9f44('0x5')][_0x9f44('0x23')][_0x9f44('0x5c')](_0x9f44('0x2d')))throw new _0xeb237(_0x9f44('0x1c'),this);this['_viewerEditor']=null,this[_0x9f44('0x5')]['config'][_0x9f44('0xd')]('revisionHistory.showRevisionViewerCallback',_0x5e9c32=>this[_0x9f44('0x1a')](_0x5e9c32)),this[_0x9f44('0x5')][_0x9f44('0x23')]['define'](_0x9f44('0x2c'),_0x497156=>this[_0x9f44('0x49')](_0x497156)),this[_0x9f44('0x5')]['config'][_0x9f44('0xd')](_0x9f44('0x34'),_0x139cfc=>this[_0x9f44('0x5f')](_0x139cfc)),this[_0x9f44('0x64')](),this['_enhanceCloseRevisionViewerCallback']();}set[_0x9f44('0x3')](_0xc651ee){this[_0x9f44('0x5')][_0x9f44('0x41')]['get'](_0x9f44('0x32'))[_0x9f44('0x3')]=_0xc651ee;}get[_0x9f44('0x3')](){return this[_0x9f44('0x5')]['plugins'][_0x9f44('0x5c')](_0x9f44('0x32'))[_0x9f44('0x3')];}['addRevisionData'](_0x5b70d0){return this[_0x9f44('0x5')][_0x9f44('0x41')][_0x9f44('0x5c')](_0x9f44('0x32'))[_0x9f44('0x35')](_0x5b70d0);}[_0x9f44('0x44')](_0xaf5e41){return this[_0x9f44('0x5')][_0x9f44('0x41')][_0x9f44('0x5c')](_0x9f44('0x45'))[_0x9f44('0x44')](_0xaf5e41);}[_0x9f44('0x33')](_0x4e8cf6={'toJSON':!0x1}){return this[_0x9f44('0x5')][_0x9f44('0x41')]['get']('RevisionsRepository')[_0x9f44('0x33')](_0x4e8cf6);}[_0x9f44('0x0')](){const _0xa6a1b2=this[_0x9f44('0x5')],_0x58c5a2=_0x103518(_0xa6a1b2,g),_0x3482ce=_0xa6a1b2[_0x9f44('0x41')][_0x9f44('0x5c')](_0x9f44('0x32')),_0x3ffad4=_0xa6a1b2[_0x9f44('0x41')][_0x9f44('0x5c')]('Users')['users'];return _0x58c5a2[_0x9f44('0x65')]=[_0x9f44('0x12'),_0x9f44('0x1d'),_0x9f44('0x15')],(_0x58c5a2[_0x9f44('0x41')][_0x9f44('0x13')](k,_0x11f81f,_0x528e36,class extends _0xbd485c{static get[_0x9f44('0x10')](){return[_0x11f81f,_0x9f44('0x48')];}[_0x9f44('0x1e')](){const _0x8c37e4=this['editor'][_0x9f44('0x41')][_0x9f44('0x5c')]('Users');for(const _0x1feca1 of _0x3ffad4)_0x1feca1[_0x9f44('0x2e')]||_0x8c37e4[_0x9f44('0x51')](_0x1feca1['id'])||_0x8c37e4[_0x9f44('0x40')](_0x1feca1);const _0x5b6377=_0x3482ce[_0x9f44('0x20')]['getRevisions']();let _0x1b8051=null;const _0x192843=this[_0x9f44('0x5')][_0x9f44('0x41')][_0x9f44('0x5c')]('RevisionViewer');_0x192843['adapter']=_0x3482ce['adapter'],_0x192843['bind'](_0x9f44('0x30'))['to'](_0x3482ce),this[_0x9f44('0x5')][_0x9f44('0x50')][_0x9f44('0x5c')](_0x9f44('0x1d'))[_0x9f44('0x9')](_0x9f44('0x30'))['to'](_0xa6a1b2,_0x9f44('0x3d'),_0x4901c4=>!_0x4901c4);for(const _0x1d00ad of _0x5b6377){const _0x18e3c2=null===_0x1d00ad[_0x9f44('0x60')];if(_0x18e3c2&&_0x1d00ad['toVersion']===_0x1d00ad['fromVersion'])continue;const _0x3ca690=_0x1d00ad['toJSON']();_0x192843['addRevisionData'](_0x3ca690,(_0x1c596e,_0x4678db,_0x5b50f9)=>{if(_0x18e3c2){if(_0x1b8051)_0x1b8051[_0x9f44('0x1f')](_0x1c596e,_0x4678db);else{if(!_0x4678db){const _0x1f2c73=_0x5b50f9[_0x9f44('0x14')]();_0x1f2c73['id']=_0x23d92e(),_0x3482ce[_0x9f44('0x18')](_0x1f2c73,_0x5b50f9[_0x9f44('0x22')])[_0x9f44('0x21')](_0x257ec8=>{_0x1b8051=_0x257ec8;});}}}else _0x1d00ad['_update'](_0x1c596e,_0x4678db);});}}},_0x3d5039),_0x58c5a2);}[_0x9f44('0x64')](){const _0x42d60f=this[_0x9f44('0x5')][_0x9f44('0x23')][_0x9f44('0x5c')](_0x9f44('0x2d'))[_0x9f44('0x8')];this['editor']['config']['set'](_0x9f44('0x52'),async()=>{this['editor']['enableReadOnlyMode'](_0x9f44('0x39'));const _0x55e120=this['editor'][_0x9f44('0x41')][_0x9f44('0x5c')](_0x9f44('0x32'));if(this['editor'][_0x9f44('0x41')][_0x9f44('0xb')](_0x9f44('0xf'))){const _0xa50260=this['editor'][_0x9f44('0x41')][_0x9f44('0x5c')]('Autosave');await _0xa50260[_0x9f44('0x25')]();}else await _0x55e120[_0x9f44('0x3a')]();this[_0x9f44('0x5')][_0x9f44('0x41')]['has'](_0x9f44('0x38'))&&this[_0x9f44('0x5')][_0x9f44('0x41')][_0x9f44('0x5c')](_0x9f44('0x38'))[_0x9f44('0x37')]();const _0x4f9485=this[_0x9f44('0x0')]();return _0x42d60f(_0x4f9485)[_0x9f44('0x21')](_0x3f7a65=>{return(this['_viewerEditor']=_0x3f7a65,this[_0x9f44('0x5')][_0x9f44('0x41')][_0x9f44('0xb')](_0x9f44('0xa')))&&this[_0x9f44('0x5')]['plugins']['get']('Annotations')['refreshVisibility'](),_0x3f7a65;})[_0x9f44('0x57')](_0x1d511c=>(console['error'](_0x1d511c),this['editor']['disableReadOnlyMode'](_0x9f44('0x39')),null));});}[_0x9f44('0x46')](){const _0x25ee36=this[_0x9f44('0x5')][_0x9f44('0x23')][_0x9f44('0x5c')]('revisionHistory')[_0x9f44('0x2')];this['editor'][_0x9f44('0x23')][_0x9f44('0x7')](_0x9f44('0x2c'),()=>(this[_0x9f44('0x5')][_0x9f44('0x41')][_0x9f44('0xb')]('PaginationLookup')&&this[_0x9f44('0x5')][_0x9f44('0x41')][_0x9f44('0x5c')](_0x9f44('0x38'))[_0x9f44('0x37')](),this['_viewerEditor'][_0x9f44('0x41')][_0x9f44('0x5c')](_0x9f44('0x4a'))[_0x9f44('0x3f')](),_0x25ee36(this[_0x9f44('0x26')])[_0x9f44('0x21')](()=>{if(this[_0x9f44('0x5')][_0x9f44('0x4f')](_0x9f44('0x39')),this[_0x9f44('0x26')]=null,this['editor'][_0x9f44('0x41')][_0x9f44('0xb')](_0x9f44('0xa'))){const _0x55deaa=this[_0x9f44('0x5')][_0x9f44('0x41')]['get'](_0x9f44('0xa'));_0x55deaa['refreshVisibility'](),_0x55deaa['refreshPositioning']();}})));}['_showRevisionViewer'](_0xb8098c){const _0x500d60=this[_0x9f44('0x5')][_0x9f44('0x23')][_0x9f44('0x5c')](_0x9f44('0x5b')),_0x40385f=this[_0x9f44('0x5')][_0x9f44('0x23')]['get'](_0x9f44('0x31')),_0x1c268c=this[_0x9f44('0x5')]['config'][_0x9f44('0x5c')](_0x9f44('0x1'));return _0x2eef45[_0x9f44('0x55')](_0x1c268c,_0xb8098c)['then'](_0x5a7247=>(_0x40385f['style'][_0x9f44('0x2b')]=_0x9f44('0x54'),_0x500d60[_0x9f44('0xc')][_0x9f44('0x2b')]=_0x9f44('0x43'),_0x5a7247));}['_closeRevisionViewer'](_0x2be6a1){const _0x63620e=this['editor'][_0x9f44('0x23')]['get'](_0x9f44('0x5b'));return this[_0x9f44('0x5')][_0x9f44('0x23')]['get'](_0x9f44('0x31'))['style'][_0x9f44('0x2b')]='none',_0x63620e[_0x9f44('0xc')][_0x9f44('0x2b')]='',_0x2be6a1[_0x9f44('0x11')]();}async[_0x9f44('0x5f')](_0x812504){const _0xf593a3=this[_0x9f44('0x5')],_0x5b7e49=this[_0x9f44('0x26')][_0x9f44('0x41')][_0x9f44('0x5c')]('RevisionViewer'),_0xf23e69=_0xf593a3['plugins']['get'](_0x9f44('0x32')),_0x15a7bb=_0x5b7e49[_0x9f44('0x20')][_0x9f44('0x44')](_0x812504);let _0x31f381,_0x14bbcb,_0x30f3bf;try{_0x31f381=await _0x5b7e49[_0x9f44('0x59')](_0x15a7bb),_0x14bbcb=await _0x5b7e49[_0x9f44('0x53')](_0x15a7bb);}catch(_0x32c915){return void console['error'](_0x32c915);}_0xf593a3[_0x9f44('0x16')][_0x9f44('0x5a')](_0x578c5f=>{for(const _0x4168ec of Array[_0x9f44('0x3c')](_0xf593a3['model'][_0x9f44('0x19')][_0x9f44('0x58')]('restrictedEditingException')))_0x578c5f[_0x9f44('0x4c')](_0x4168ec);}),_0x5b7e49[_0x9f44('0x2f')]=!0x1,_0xf593a3['model'][_0x9f44('0x6')](_0x106a0f=>{_0x106a0f[_0x9f44('0x24')](null),_0x106a0f[_0x9f44('0x29')](_0xf593a3[_0x9f44('0x16')][_0x9f44('0x3b')][_0x9f44('0x17')][_0x9f44('0xe')]());for(const _0x567c9a of _0xf593a3[_0x9f44('0x16')][_0x9f44('0x3b')][_0x9f44('0x4b')]())_0x106a0f[_0x9f44('0x63')](_0x567c9a);for(const _0x3623a3 of Object[_0x9f44('0x28')](_0x31f381)){const _0x320564=_0x106a0f['addRoot'](_0x3623a3);for(const _0x2aed5a of Object[_0x9f44('0x28')](_0x14bbcb[_0x3623a3]))_0x106a0f[_0x9f44('0x47')](_0x2aed5a,_0x14bbcb[_0x3623a3][_0x2aed5a],_0x320564);_0x106a0f[_0x9f44('0x4')](_0xf593a3[_0x9f44('0x3e')]['parse'](_0x31f381[_0x3623a3],_0x320564),_0x320564,0x0);}});const _0x4a3e5d=_0x3a6e54(_0xf593a3[_0x9f44('0x56')],_0x9f44('0x2a'));if(_0x15a7bb[_0x9f44('0x5d')])_0x30f3bf=-0x1==_0x15a7bb[_0x9f44('0x5d')]['indexOf'](_0x4a3e5d)?_0x4a3e5d+':\x20'+_0x15a7bb[_0x9f44('0x5d')]:_0x15a7bb[_0x9f44('0x5d')];else _0x30f3bf=_0x4a3e5d+':\x20'+(_0x15a7bb[_0x9f44('0x5e')][_0x9f44('0x62')](_0xf593a3[_0x9f44('0x56')][_0x9f44('0x61')],{'month':'long','day':_0x9f44('0x1b')})+',\x20'+_0x15a7bb[_0x9f44('0x5e')]['toLocaleTimeString'](_0xf593a3[_0x9f44('0x56')][_0x9f44('0x61')],{'hour':_0x9f44('0x1b'),'minute':'numeric'}));return await _0xf23e69['saveRevision']({'name':_0x30f3bf}),_0x5b7e49[_0x9f44('0x2f')]=!0x0,_0xf593a3[_0x9f44('0x23')][_0x9f44('0x5c')](_0x9f44('0x2d'))['closeRevisionViewerCallback']();}}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @
|
|
3
|
-
*
|
|
2
|
+
* @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
4
|
*/
|
|
5
5
|
/**
|
|
6
6
|
* The configuration of the revision history feature.
|