@ckeditor/ckeditor5-real-time-collaboration 40.0.0 → 40.2.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/CHANGELOG.md +22 -22
- package/LICENSE.md +6 -10
- package/README.md +1 -1
- package/build/real-time-collaboration.js +1 -1
- package/package.json +6 -6
- package/src/augmentation.d.ts +65 -65
- package/src/common-translations.d.ts +9 -9
- package/src/common-translations.js +1 -1
- package/src/config.d.ts +37 -37
- package/src/index.d.ts +14 -14
- package/src/presencelist/presencelistui.d.ts +43 -43
- package/src/presencelist/presencelistui.js +1 -1
- package/src/presencelist/view/presencecounterview.d.ts +11 -11
- package/src/presencelist/view/presencecounterview.js +1 -1
- package/src/presencelist/view/presencedropdownlistitemview.d.ts +11 -11
- package/src/presencelist/view/presencedropdownlistitemview.js +1 -1
- package/src/presencelist/view/presencedropdownlistview.d.ts +10 -10
- package/src/presencelist/view/presencedropdownlistview.js +1 -1
- package/src/presencelist/view/presenceinlinelistitemview.d.ts +18 -18
- package/src/presencelist/view/presenceinlinelistitemview.js +1 -1
- package/src/presencelist/view/presenceinlinelistview.d.ts +11 -11
- package/src/presencelist/view/presenceinlinelistview.js +1 -1
- package/src/presencelist/view/presencelistview.d.ts +15 -15
- package/src/presencelist/view/presencelistview.js +1 -1
- package/src/presencelist.d.ts +28 -28
- package/src/presencelist.js +1 -1
- package/src/realtimecollaborativecomments/cloudservicescommentsadapter.d.ts +52 -52
- package/src/realtimecollaborativecomments/cloudservicescommentsadapter.js +1 -1
- package/src/realtimecollaborativecomments.d.ts +36 -36
- package/src/realtimecollaborativecomments.js +1 -1
- package/src/realtimecollaborativeediting/realtimecollaborationclient.d.ts +137 -137
- package/src/realtimecollaborativeediting/realtimecollaborationclient.js +1 -1
- package/src/realtimecollaborativeediting/sessions.d.ts +118 -118
- package/src/realtimecollaborativeediting/sessions.js +1 -1
- package/src/realtimecollaborativeediting/usermarkers.d.ts +36 -36
- package/src/realtimecollaborativeediting/usermarkers.js +1 -1
- package/src/realtimecollaborativeediting/websocketgateway.d.ts +55 -55
- package/src/realtimecollaborativeediting/websocketgateway.js +1 -1
- package/src/realtimecollaborativeediting.d.ts +26 -26
- package/src/realtimecollaborativeediting.js +1 -1
- package/src/realtimecollaborativerevisionhistory/cloudservicesrevisionhistoryadapter.d.ts +45 -45
- package/src/realtimecollaborativerevisionhistory/cloudservicesrevisionhistoryadapter.js +1 -1
- package/src/realtimecollaborativerevisionhistory.d.ts +29 -29
- package/src/realtimecollaborativerevisionhistory.js +1 -1
- package/src/realtimecollaborativetrackchanges/cloudservicestrackchangesadapter.d.ts +39 -39
- package/src/realtimecollaborativetrackchanges/cloudservicestrackchangesadapter.js +1 -1
- package/src/realtimecollaborativetrackchanges.d.ts +27 -27
- package/src/realtimecollaborativetrackchanges.js +1 -1
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xf91b=['connect','init','CONNECTING','cloudservices-reconnection-error','connection','catch','_shouldPluginsReconnect','pluginName','define','websocketgateway-plugin-already-registered','has','initialReconnectionInterval','online','addToReconnectionStack','isInReconnectionStack','listenTo','WebSocketGateway','plugins','cloudServices.connectionTimeout','code','_domEmitter','DISCONNECTED','connected','config','error','function','Connected\x20users\x20limit\x20exceeded','token','webSocketUrl','create','context','bind','add','get','constructor','_reconnect','_reconnectionStack','cloudservices-init','all','The\x20limit\x20of\x20maximum\x20concurrent\x20connections\x20that\x20the\x20collaboration\x20server\x20can\x20handle\x20has\x20been\x20reached.\x20Try\x20opening\x20the\x20document\x20again\x20in\x20a\x20few\x20minutes.\x20Please\x20contact\x20your\x20system\x20administrator\x20if\x20the\x20problem\x20persists.','change:me','delete','then','CONNECTED','_isBrowserOffline','real-time-collaboration','state','destroy','limitExceeded','websocketgateway-missing-token','requires','CloudServices','set','disconnect','stopListening','cloudServices.requestTimeout','websocketgateway-missing-websocket-url'];(function(_0x201709,_0xf91b56){const _0x6f3060=function(_0x37975f){while(--_0x37975f){_0x201709['push'](_0x201709['shift']());}};_0x6f3060(++_0xf91b56);}(_0xf91b,0xea));const _0x6f30=function(_0x201709,_0xf91b56){_0x201709=_0x201709-0x0;let _0x6f3060=_0xf91b[_0x201709];return _0x6f3060;};import{ContextPlugin as _0x5d428c}from'ckeditor5/src/core';import{DomEmitterMixin as _0x4238d6,CKEditorError as _0x22999d}from'ckeditor5/src/utils';import{WebSocketGateway as _0x2ff7e4,WEB_SOCKET_GATEWAY_STATES as _0x3ccac7}from'@ckeditor/ckeditor-cloud-services-collaboration/src/services';import{Notification as _0x5d3241}from'ckeditor5/src/ui';export default class c extends _0x5d428c{static get[_0x6f30('0x2c')](){return[_0x6f30('0x2d'),_0x5d3241];}static get[_0x6f30('0x1')](){return'WebSocketGateway';}constructor(_0x4c01ab){super(_0x4c01ab),this['set'](_0x6f30('0x28'),_0x3ccac7[_0x6f30('0x25')]),this[_0x6f30('0x2e')](_0x6f30('0x26'),!0x1),this[_0x6f30('0x1e')]=new Set(),this[_0x6f30('0x0')]=!0x1,this[_0x6f30('0xe')]=Object[_0x6f30('0x17')](_0x4238d6);}[_0x6f30('0x34')](){const _0x4a00b2=this[_0x6f30('0x18')],_0x19b5c5=_0x4a00b2[_0x6f30('0xb')]['get']('CloudServices'),_0x558a89=_0x4a00b2['plugins'][_0x6f30('0x1b')](_0x5d3241);if(!_0x19b5c5[_0x6f30('0x15')])throw new _0x22999d(_0x6f30('0x2b'),this);if(!_0x19b5c5[_0x6f30('0x16')])throw new _0x22999d(_0x6f30('0x32'),this);return this['_domEmitter'][_0x6f30('0x9')](window,'offline',()=>this[_0x6f30('0x26')]=!0x0),this[_0x6f30('0xe')][_0x6f30('0x9')](window,_0x6f30('0x6'),()=>this[_0x6f30('0x26')]=!0x1),this[_0x6f30('0x18')][_0x6f30('0x11')][_0x6f30('0x2')](_0x6f30('0xc'),0xa),this['context'][_0x6f30('0x11')][_0x6f30('0x2')](_0x6f30('0x31'),0x14),c[_0x6f30('0xa')][_0x6f30('0x33')](_0x19b5c5['token'],_0x19b5c5[_0x6f30('0x16')],{'timeout':0x3e8*this[_0x6f30('0x18')][_0x6f30('0x11')][_0x6f30('0x1b')](_0x6f30('0xc')),'requestTimeout':0x3e8*this['context'][_0x6f30('0x11')][_0x6f30('0x1b')](_0x6f30('0x31'))})[_0x6f30('0x24')](_0x3d582a=>{if(this[_0x6f30('0x37')]=_0x3d582a,this[_0x6f30('0x19')](_0x6f30('0x28'))['to'](_0x3d582a,_0x6f30('0x28'),this,_0x6f30('0x26'),(_0x4e52c5,_0x2bacf4)=>(_0x6f30('0x10')!==_0x4e52c5&&(this[_0x6f30('0x0')]=!0x0),_0x2bacf4||_0x4e52c5!==_0x3ccac7['CONNECTED']?_0x3ccac7[_0x6f30('0xf')]:this[_0x6f30('0x28')]==_0x3ccac7['DISCONNECTED']&&this[_0x6f30('0x0')]?(this[_0x6f30('0x0')]=!0x1,this[_0x6f30('0x1d')](),_0x3ccac7[_0x6f30('0x35')]):_0x3ccac7[_0x6f30('0x25')])),this[_0x6f30('0x37')]['on'](_0x6f30('0x12'),(_0x147224,_0x9c3732)=>{if(_0x6f30('0x2a')!==_0x9c3732[_0x6f30('0xd')])throw console['error'](_0x9c3732),new _0x22999d('cloudservices-init',null,{'originalError':_0x9c3732});_0x558a89['showWarning'](_0x6f30('0x21'),{'title':_0x6f30('0x14'),'namespace':_0x6f30('0x27')});}),!_0x3d582a['me'])return new Promise(_0x59a10d=>_0x3d582a['on'](_0x6f30('0x22'),_0x59a10d));})[_0x6f30('0x38')](_0x16de04=>{throw console[_0x6f30('0x12')](_0x16de04),new _0x22999d(_0x6f30('0x1f'),null,{'originalError':_0x16de04});});}[_0x6f30('0x7')](_0x4c25a6){if(_0x6f30('0x13')!=typeof _0x4c25a6['reconnect'])throw new _0x22999d('websocketgateway-invalid-plugin-interface',this);if(this[_0x6f30('0x8')](_0x4c25a6))throw new _0x22999d(_0x6f30('0x3'),this,{'name':_0x4c25a6[_0x6f30('0x1c')][_0x6f30('0x1')]});this[_0x6f30('0x1e')][_0x6f30('0x1a')](_0x4c25a6);}['removeFromReconnectionStack'](_0x4cd29a){this['_reconnectionStack'][_0x6f30('0x23')](_0x4cd29a);}['isInReconnectionStack'](_0x1681f3){return this[_0x6f30('0x1e')][_0x6f30('0x4')](_0x1681f3);}[_0x6f30('0x1d')](){return this[_0x6f30('0x37')]['reconnect']()[_0x6f30('0x24')](()=>Promise[_0x6f30('0x20')](Array['from'](this[_0x6f30('0x1e')],_0x4d91fc=>_0x4d91fc['reconnect']())))[_0x6f30('0x24')](()=>this['state']=_0x3ccac7[_0x6f30('0x25')])[_0x6f30('0x38')](_0x7bc32d=>{throw console[_0x6f30('0x12')](_0x7bc32d),new _0x22999d(_0x6f30('0x36'),this[_0x6f30('0x18')]);});}['destroy'](){this[_0x6f30('0x37')]&&this['connection'][_0x6f30('0x2f')](),this[_0x6f30('0x28')]=_0x3ccac7['DISCONNECTED'],this[_0x6f30('0xe')][_0x6f30('0x30')](),super[_0x6f30('0x29')]();}}c['WebSocketGateway']=_0x2ff7e4,c[_0x6f30('0x5')]=0x3e8;
|
|
@@ -1,26 +1,26 @@
|
|
|
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
|
-
*/
|
|
5
|
-
/**
|
|
6
|
-
* @module real-time-collaboration/realtimecollaborativeediting
|
|
7
|
-
* @publicApi
|
|
8
|
-
*/
|
|
9
|
-
import { Plugin } from 'ckeditor5/src/core';
|
|
10
|
-
import RealTimeCollaborationClient from './realtimecollaborativeediting/realtimecollaborationclient';
|
|
11
|
-
/**
|
|
12
|
-
* Enables the real-time collaborative editing feature.
|
|
13
|
-
*
|
|
14
|
-
* Check the {@glink features/collaboration/real-time-collaboration/real-time-collaboration-integration Real-time collaboration} guide
|
|
15
|
-
* to see how to launch the editor in the real-time collaboration mode.
|
|
16
|
-
*/
|
|
17
|
-
export default class RealTimeCollaborativeEditing extends Plugin {
|
|
18
|
-
/**
|
|
19
|
-
* @inheritDoc
|
|
20
|
-
*/
|
|
21
|
-
static get requires(): readonly [typeof RealTimeCollaborationClient];
|
|
22
|
-
/**
|
|
23
|
-
* @inheritDoc
|
|
24
|
-
*/
|
|
25
|
-
static get pluginName(): "RealTimeCollaborativeEditing";
|
|
26
|
-
}
|
|
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
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* @module real-time-collaboration/realtimecollaborativeediting
|
|
7
|
+
* @publicApi
|
|
8
|
+
*/
|
|
9
|
+
import { Plugin } from 'ckeditor5/src/core';
|
|
10
|
+
import RealTimeCollaborationClient from './realtimecollaborativeediting/realtimecollaborationclient';
|
|
11
|
+
/**
|
|
12
|
+
* Enables the real-time collaborative editing feature.
|
|
13
|
+
*
|
|
14
|
+
* Check the {@glink features/collaboration/real-time-collaboration/real-time-collaboration-integration Real-time collaboration} guide
|
|
15
|
+
* to see how to launch the editor in the real-time collaboration mode.
|
|
16
|
+
*/
|
|
17
|
+
export default class RealTimeCollaborativeEditing extends Plugin {
|
|
18
|
+
/**
|
|
19
|
+
* @inheritDoc
|
|
20
|
+
*/
|
|
21
|
+
static get requires(): readonly [typeof RealTimeCollaborationClient];
|
|
22
|
+
/**
|
|
23
|
+
* @inheritDoc
|
|
24
|
+
*/
|
|
25
|
+
static get pluginName(): "RealTimeCollaborativeEditing";
|
|
26
|
+
}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x15c4=['pluginName','RealTimeCollaborativeEditing','requires'];(function(_0x3828e7,_0x15c4e2){var _0x21a2bb=function(_0x1d1b9c){while(--_0x1d1b9c){_0x3828e7['push'](_0x3828e7['shift']());}};_0x21a2bb(++_0x15c4e2);}(_0x15c4,0x150));var _0x21a2=function(_0x3828e7,_0x15c4e2){_0x3828e7=_0x3828e7-0x0;var _0x21a2bb=_0x15c4[_0x3828e7];return _0x21a2bb;};import{Plugin as _0x552bd2}from'ckeditor5/src/core';import _0x4d7d29 from'./realtimecollaborativeediting/realtimecollaborationclient';export default class n extends _0x552bd2{static get[_0x21a2('0x2')](){return[_0x4d7d29];}static get[_0x21a2('0x0')](){return _0x21a2('0x1');}}
|
|
@@ -1,45 +1,45 @@
|
|
|
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
|
-
*/
|
|
5
|
-
/**
|
|
6
|
-
* @module real-time-collaboration/realtimecollaborativerevisionhistory/cloudservicesrevisionhistoryadapter
|
|
7
|
-
* @publicApi
|
|
8
|
-
*/
|
|
9
|
-
import { Plugin, type Editor } from 'ckeditor5/src/core';
|
|
10
|
-
import { Users } from 'ckeditor5-collaboration/src/collaboration-core';
|
|
11
|
-
import RealTimeCollaborationClient from '../realtimecollaborativeediting/realtimecollaborationclient';
|
|
12
|
-
import WebSocketGateway, { type ReconnectPlugin } from '../realtimecollaborativeediting/websocketgateway';
|
|
13
|
-
import Sessions from '../realtimecollaborativeediting/sessions';
|
|
14
|
-
import { RevisionHistoryService } from '@ckeditor/ckeditor-cloud-services-collaboration/src/services';
|
|
15
|
-
/**
|
|
16
|
-
* The Cloud Services revision history adapter plugin.
|
|
17
|
-
*/
|
|
18
|
-
export default class CloudServicesRevisionHistoryAdapter extends Plugin implements ReconnectPlugin {
|
|
19
|
-
static RevisionHistoryService: typeof RevisionHistoryService;
|
|
20
|
-
/**
|
|
21
|
-
* @inheritDoc
|
|
22
|
-
*/
|
|
23
|
-
static get requires(): readonly [typeof WebSocketGateway, typeof RealTimeCollaborationClient, "RevisionTracker", typeof Sessions, typeof Users];
|
|
24
|
-
/**
|
|
25
|
-
* @inheritDoc
|
|
26
|
-
*/
|
|
27
|
-
constructor(editor: Editor);
|
|
28
|
-
/**
|
|
29
|
-
* @inheritDoc
|
|
30
|
-
*/
|
|
31
|
-
init(): Promise<void>;
|
|
32
|
-
/**
|
|
33
|
-
* A method that will be executed when the `WebSocketGateway` will reconnect.
|
|
34
|
-
*/
|
|
35
|
-
reconnect(): Promise<void>;
|
|
36
|
-
/**
|
|
37
|
-
* @inheritDoc
|
|
38
|
-
*/
|
|
39
|
-
destroy(): void;
|
|
40
|
-
/**
|
|
41
|
-
* Waits for the service to be ready before calling the service API.
|
|
42
|
-
*/
|
|
43
|
-
private _waitForServiceReady;
|
|
44
|
-
private _fetchMissingUsers;
|
|
45
|
-
}
|
|
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
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* @module real-time-collaboration/realtimecollaborativerevisionhistory/cloudservicesrevisionhistoryadapter
|
|
7
|
+
* @publicApi
|
|
8
|
+
*/
|
|
9
|
+
import { Plugin, type Editor } from 'ckeditor5/src/core';
|
|
10
|
+
import { Users } from 'ckeditor5-collaboration/src/collaboration-core';
|
|
11
|
+
import RealTimeCollaborationClient from '../realtimecollaborativeediting/realtimecollaborationclient';
|
|
12
|
+
import WebSocketGateway, { type ReconnectPlugin } from '../realtimecollaborativeediting/websocketgateway';
|
|
13
|
+
import Sessions from '../realtimecollaborativeediting/sessions';
|
|
14
|
+
import { RevisionHistoryService } from '@ckeditor/ckeditor-cloud-services-collaboration/src/services';
|
|
15
|
+
/**
|
|
16
|
+
* The Cloud Services revision history adapter plugin.
|
|
17
|
+
*/
|
|
18
|
+
export default class CloudServicesRevisionHistoryAdapter extends Plugin implements ReconnectPlugin {
|
|
19
|
+
static RevisionHistoryService: typeof RevisionHistoryService;
|
|
20
|
+
/**
|
|
21
|
+
* @inheritDoc
|
|
22
|
+
*/
|
|
23
|
+
static get requires(): readonly [typeof WebSocketGateway, typeof RealTimeCollaborationClient, "RevisionTracker", typeof Sessions, typeof Users];
|
|
24
|
+
/**
|
|
25
|
+
* @inheritDoc
|
|
26
|
+
*/
|
|
27
|
+
constructor(editor: Editor);
|
|
28
|
+
/**
|
|
29
|
+
* @inheritDoc
|
|
30
|
+
*/
|
|
31
|
+
init(): Promise<void>;
|
|
32
|
+
/**
|
|
33
|
+
* A method that will be executed when the `WebSocketGateway` will reconnect.
|
|
34
|
+
*/
|
|
35
|
+
reconnect(): Promise<void>;
|
|
36
|
+
/**
|
|
37
|
+
* @inheritDoc
|
|
38
|
+
*/
|
|
39
|
+
destroy(): void;
|
|
40
|
+
/**
|
|
41
|
+
* Waits for the service to be ready before calling the service API.
|
|
42
|
+
*/
|
|
43
|
+
private _waitForServiceReady;
|
|
44
|
+
private _fetchMissingUsers;
|
|
45
|
+
}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x5d95=['cloud-services-internal-error:\x20Revision\x20History\x20Service\x20is\x20not\x20connected.','change:_isPendingUpdate','_update','_offset','_lastRequestId','reverse','init','code','addRevisionData','state','listenTo','cloudServices.bundleVersion','collaboration.channelId','authorsIds','connection','_getLatestVersionFromServerOperations','_waitForServiceReady','RevisionTracker','getUser','data','change:_isConnected','isEmptyCurrent','affectsData','map','_getLatestVersion','max','_fixRevision','startsWith','add','type','bind','destroy','creatorId','catch','isConnected','_handleReconnectionError','setSource','_fetchMissingUsers','getRevision','plugins','toVersion','repository','updateRevisions','marker','sendBufferedUpdates','requires','authors','_revisions','sessionId','message','editor','_handleRevisionsUpdate','diffData','cloud-services-internal-error:\x20Not\x20connected.','_startingVersion','_revisionHistoryService','createdAt','_isPendingUpdate','adapter','_bufferedUpdates','remove','from','serverHistory','get','currentRevision','_oldOffset','getMany','then','_revisionTracker','off','isEnabled','config','reconnect','_preventResendingRevisionData','addToReconnectionStack','cloud-services-internal-error:\x20Request\x20timeout.','fromVersion','_bufferUpdate','setRevisionData','400','length'];(function(_0x41b130,_0x5d9509){const _0x22b7ef=function(_0x4d25b5){while(--_0x4d25b5){_0x41b130['push'](_0x41b130['shift']());}};_0x22b7ef(++_0x5d9509);}(_0x5d95,0x178));const _0x22b7=function(_0x41b130,_0x5d9509){_0x41b130=_0x41b130-0x0;let _0x22b7ef=_0x5d95[_0x41b130];return _0x22b7ef;};import{Plugin as _0x888501}from'ckeditor5/src/core';import{version as _0x239793}from'ckeditor5/src/utils';import{Users as _0x1a09cf}from'ckeditor5-collaboration/src/collaboration-core';import _0x3091dc from'../realtimecollaborativeediting/realtimecollaborationclient';import _0x191fda from'../realtimecollaborativeediting/websocketgateway';import _0x358d4c from'../realtimecollaborativeediting/sessions';import{User as _0xd00ee6}from'@ckeditor/ckeditor-cloud-services-collaboration';import{RevisionHistoryService as _0x127c1e,EditorService as _0x18f503,WEB_SOCKET_GATEWAY_STATES as _0x462393}from'@ckeditor/ckeditor-cloud-services-collaboration/src/services';export default class v extends _0x888501{static get[_0x22b7('0x4a')](){return[_0x191fda,_0x3091dc,_0x22b7('0x2e'),_0x358d4c,_0x1a09cf];}constructor(_0x1f8aa7){super(_0x1f8aa7);const _0xd2d582=this['editor']['config']['get'](_0x22b7('0x29'));this[_0x22b7('0x21')]=null,this[_0x22b7('0x10')]=this['editor'][_0x22b7('0x44')]['get']('RevisionTracker'),this['_revisionHistoryService']=new v['RevisionHistoryService'](_0xd2d582);}async[_0x22b7('0x23')](){const _0x3f5523=this[_0x22b7('0x4f')][_0x22b7('0x44')][_0x22b7('0xb')](_0x3091dc),_0x275aab=_0x3f5523[_0x22b7('0xa')],_0x1356f4=this[_0x22b7('0x4f')][_0x22b7('0x44')][_0x22b7('0xb')](_0x191fda);this['_revisionTracker'][_0x22b7('0x41')]({'history':_0x275aab,'getLatestVersion':()=>this[_0x22b7('0x35')](),'getCurrentRevisionId':()=>_0x3f5523[_0x22b7('0x4d')]});const _0xd701e3=this['editor'][_0x22b7('0x13')]['get'](_0x22b7('0x28'))||_0x239793,_0x5e74bc=await _0x18f503['isBundleUploaded'](_0x1356f4['connection'],_0xd701e3);this[_0x22b7('0x10')][_0x22b7('0x6')]={'getRevision':async({revisionId:_0x3081c5})=>(await this['_waitForServiceReady'](),await this['_revisionHistoryService'][_0x22b7('0x43')](_0x3081c5)),'updateRevisions':async _0x5de7c3=>{await this[_0x22b7('0x2d')]();const _0x5bc9cd=this[_0x22b7('0x10')][_0x22b7('0xc')];if(_0x5e74bc&&0x1===_0x5de7c3[_0x22b7('0x1c')]&&_0x5de7c3[0x0]['id']===_0x5bc9cd['id'])return _0x5de7c3;for(const _0x4fbf3b of _0x5de7c3)_0x4fbf3b['id']===_0x5bc9cd['id']&&(_0x4fbf3b[_0x22b7('0x32')]=_0x4fbf3b[_0x22b7('0x18')]===_0x4fbf3b[_0x22b7('0x45')]);return this[_0x22b7('0x3')][_0x22b7('0x47')](_0x5de7c3,this[_0x22b7('0x21')])[_0x22b7('0xf')](_0x124e5b=>(this['_lastRequestId']=_0x124e5b,_0x5de7c3))[_0x22b7('0x3e')](_0x3a8670=>{if(S(_0x3a8670)||_0x22b7('0x1b')===_0x3a8670[_0x22b7('0x24')]&&void 0x0!==_0x3a8670[_0x22b7('0x30')]['wrongRequestId']){for(const _0x6acb15 of _0x5de7c3){!this[_0x22b7('0x10')][_0x22b7('0x46')][_0x22b7('0x43')](_0x6acb15['id'])||this['_revisionTracker'][_0x22b7('0x19')](_0x6acb15['id'],_0x6acb15,!0x1);}if(S(_0x3a8670))throw _0x3a8670;return _0x5de7c3;}throw _0x3a8670;});}},this[_0x22b7('0x27')](this[_0x22b7('0x3')],'revisionsUpdated',(_0x2a9f8f,{revisionsData:_0x10158a,requestId:_0x5ced47})=>{Math[_0x22b7('0x36')](..._0x10158a[_0x22b7('0x34')](_0x49e6f3=>_0x49e6f3[_0x22b7('0x45')]))>this[_0x22b7('0x2c')]()-0x1?this[_0x22b7('0x35')]()[_0x22b7('0xf')](()=>{this['_handleRevisionsUpdate'](_0x10158a,_0x5ced47);}):this['_handleRevisionsUpdate'](_0x10158a,_0x5ced47);});const {revisions:_0x5a2277,requestId:_0x504442}=await this[_0x22b7('0x3')]['connect'](_0x1356f4[_0x22b7('0x2b')]);_0x1356f4[_0x22b7('0x16')](this),this[_0x22b7('0x21')]=_0x504442,await this[_0x22b7('0x42')](_0x5a2277);for(const _0xf78906 of _0x5a2277)this[_0x22b7('0x10')][_0x22b7('0x25')](_0xf78906);this[_0x22b7('0x27')](_0x3f5523,_0x22b7('0x31'),(_0x453ddb,_0x377ce6,_0x3f519e)=>{_0x3f519e&&(this[_0x22b7('0xd')]=_0x3f5523[_0x22b7('0x20')],_0x453ddb['off']());}),this[_0x22b7('0x10')][_0x22b7('0x3b')](_0x22b7('0x12'))['to'](_0x1356f4,_0x22b7('0x26'),_0x33edfb=>_0x33edfb===_0x462393['CONNECTED']);}async[_0x22b7('0x14')](){const _0x3e9226=this[_0x22b7('0x4f')][_0x22b7('0x44')][_0x22b7('0xb')](_0x191fda),_0x35e25d=this[_0x22b7('0x4f')]['plugins'][_0x22b7('0xb')](_0x3091dc),_0xd5c3a7=async()=>{const _0x59d4c7=this[_0x22b7('0x10')][_0x22b7('0xc')],_0x1db9ea=_0x59d4c7['id'],_0x10fba5=_0x1db9ea!==_0x35e25d['sessionId'];if(_0x10fba5){const _0x149c7a=_0x35e25d[_0x22b7('0x20')]-this[_0x22b7('0xd')],_0x1a0506=this[_0x22b7('0x2c')]();this[_0x22b7('0x10')]['_revisionDataBuilder']['reInit']();if(_0x59d4c7[_0x22b7('0x45')]+_0x149c7a!==_0x1a0506){const _0x4d6e36=_0x59d4c7['fromVersion']+_0x149c7a,_0x127080=this[_0x22b7('0x4f')][_0x22b7('0x44')]['get'](_0x1a09cf),_0x10a147=this[_0x22b7('0x10')]['buildRevisionData']({'revision':_0x59d4c7,'from':_0x4d6e36,'to':_0x1a0506});_0x10a147['id']=_0x59d4c7['id'];const _0x1f1599=_0x10a147['authorsIds'][_0x22b7('0x34')](_0xc9527d=>_0x127080[_0x22b7('0x2f')](_0xc9527d));_0x59d4c7[_0x22b7('0x1f')]({..._0x10a147,'authors':_0x1f1599},!0x0),this['_revisionTracker'][_0x22b7('0x19')](_0x59d4c7['id'],_0x10a147,!0x0);}this[_0x22b7('0x10')][_0x22b7('0x2')]=_0x1a0506,(_0x59d4c7[_0x22b7('0x45')]===_0x59d4c7['fromVersion']&&!this['_revisionTracker'][_0x22b7('0x7')]['has'](_0x1db9ea)&&this[_0x22b7('0x10')][_0x22b7('0x46')][_0x22b7('0x4c')][_0x22b7('0x8')](_0x1db9ea),this[_0x22b7('0x10')]['_createCurrentRevision'](_0x1a0506));}const {revisions:_0x1dcc98,requestId:_0x795337}=await this[_0x22b7('0x3')][_0x22b7('0x14')](_0x3e9226[_0x22b7('0x2b')],this[_0x22b7('0x21')]);_0x10fba5&&_0x1dcc98[_0x22b7('0x1c')]>0x0?_0x35e25d[_0x22b7('0x40')]():(await this[_0x22b7('0x42')](_0x1dcc98),this[_0x22b7('0x50')](_0x1dcc98,_0x795337),this['_revisionTracker'][_0x22b7('0x49')]());};return _0x35e25d['_isConnected']?_0xd5c3a7():new Promise((_0x3d5ba5,_0x2ca210)=>{_0x35e25d['once'](_0x22b7('0x31'),()=>{_0xd5c3a7()['then'](_0x3d5ba5)[_0x22b7('0x3e')](_0x2ca210);});});}[_0x22b7('0x3c')](){super[_0x22b7('0x3c')]();}async[_0x22b7('0x2d')](){this['_revisionHistoryService'][_0x22b7('0x3f')]||await new Promise(_0x1fa848=>{this[_0x22b7('0x27')](this[_0x22b7('0x3')],'connected',_0x13286f=>{_0x13286f[_0x22b7('0x11')](),_0x1fa848();});});}[_0x22b7('0x2c')](){const _0x471ecf=this[_0x22b7('0x4f')][_0x22b7('0x44')]['get'](_0x3091dc)['serverHistory']['getOperations']()[_0x22b7('0x22')]();for(const _0x55e8da of _0x471ecf)if(_0x22b7('0x48')!==_0x55e8da[_0x22b7('0x3a')]||_0x55e8da[_0x22b7('0x33')])return _0x55e8da['baseVersion']+0x1;}[_0x22b7('0x35')](){const _0x1cff86=this[_0x22b7('0x4f')]['plugins'][_0x22b7('0xb')](_0x3091dc);return new Promise(_0x49cab0=>{_0x1cff86[_0x22b7('0x5')]?_0x1cff86['once'](_0x22b7('0x1e'),()=>{_0x49cab0(this[_0x22b7('0x2c')]());}):_0x49cab0(this[_0x22b7('0x2c')]());});}[_0x22b7('0x50')](_0x5de54c,_0x57acd9){const _0x5abef5=this[_0x22b7('0x10')][_0x22b7('0x46')];this[_0x22b7('0x21')]=_0x57acd9;for(const _0x561040 of _0x5de54c){const _0xba93e9=_0x5abef5['getRevision'](_0x561040['id']);if(_0xba93e9){if((_0x561040['fromVersion']||_0x561040[_0x22b7('0x45')])&&(_0x561040[_0x22b7('0x0')]=null),_0xba93e9===this[_0x22b7('0x10')][_0x22b7('0xc')]){const _0x1d5835=Math[_0x22b7('0x36')](_0xba93e9['toVersion'],_0x561040[_0x22b7('0x45')]),_0x13e929=Math[_0x22b7('0x36')](_0xba93e9[_0x22b7('0x18')],_0x561040[_0x22b7('0x18')]);let _0x3adc1f;_0xba93e9[_0x22b7('0x45')]===_0x561040['toVersion']&&_0xba93e9[_0x22b7('0x18')]===_0x561040[_0x22b7('0x18')]?(_0x3adc1f=!0x0,this[_0x22b7('0x15')](_0x561040)):_0x561040[_0x22b7('0x45')]===_0x1d5835&&_0x561040[_0x22b7('0x18')]===_0x13e929?_0x3adc1f=!0x1:(_0xba93e9[_0x22b7('0x45')]===_0x1d5835&&_0xba93e9['fromVersion']===_0x13e929||this['_fixRevision']({'revision':_0xba93e9,'from':_0x13e929,'to':_0x1d5835}),_0x3adc1f=!0x0),_0x3adc1f&&(delete _0x561040['fromVersion'],delete _0x561040['toVersion'],delete _0x561040['diffData'],delete _0x561040[_0x22b7('0x4')],delete _0x561040[_0x22b7('0x2a')]);}this['_revisionTracker'][_0x22b7('0x1a')](_0x561040),this[_0x22b7('0x15')](_0x561040);}else this[_0x22b7('0x10')]['addRevisionData'](_0x561040);}const _0x5dd8d9=_0x5abef5['getRevisions']();_0x5dd8d9[_0x22b7('0x22')]();for(let _0x19c2d8=0x0;_0x19c2d8<_0x5dd8d9['length']-0x1;_0x19c2d8++){const _0x4e780d=_0x5dd8d9[_0x19c2d8],_0x2cb864=_0x5dd8d9[_0x19c2d8+0x1];if(_0x4e780d[_0x22b7('0x18')]<_0x2cb864[_0x22b7('0x45')]){const _0x53baeb=_0x2cb864['toVersion'],_0x43f968=Math[_0x22b7('0x36')](_0x53baeb,_0x4e780d[_0x22b7('0x45')]);this[_0x22b7('0x37')]({'revision':_0x4e780d,'from':_0x53baeb,'to':_0x43f968});}}}[_0x22b7('0x37')]({revision:_0x2cbd61,from:_0x1085ca,to:_0x439086}={}){const _0x1f0243=this['editor'][_0x22b7('0x44')][_0x22b7('0xb')](_0x1a09cf),_0x2a90f9=this['_revisionTracker']['buildRevisionData']({'revision':_0x2cbd61,'from':_0x1085ca,'to':_0x439086});_0x2a90f9[_0x22b7('0x4b')]=_0x2a90f9[_0x22b7('0x2a')]['map'](_0x557893=>_0x1f0243[_0x22b7('0x2f')](_0x557893)),_0x2cbd61[_0x22b7('0x1f')](_0x2a90f9);}[_0x22b7('0x15')](_0x355dbc){const _0x50f49d={};_0x50f49d['id']=_0x355dbc['id'];for(const _0x155ae of Object['keys'](_0x355dbc))'id'!==_0x155ae&&(_0x50f49d[_0x155ae]=void 0x0);this[_0x22b7('0x10')][_0x22b7('0x19')](_0x50f49d['id'],_0x50f49d,!0x0);}async[_0x22b7('0x42')](_0x22bebd){const _0xf45f2e=this[_0x22b7('0x4f')][_0x22b7('0x44')][_0x22b7('0xb')](_0x1a09cf),{connection:_0x3c24b9}=this[_0x22b7('0x4f')][_0x22b7('0x44')][_0x22b7('0xb')](_0x191fda),_0x4f1718=new Set();for(const _0x5627e0 of _0x22bebd){for(const _0x33ee88 of _0x5627e0['authorsIds'])_0x26b49d(_0x33ee88);_0x5627e0[_0x22b7('0x3d')]&&_0x26b49d(_0x5627e0[_0x22b7('0x3d')]);}if(0x0===_0x4f1718['size'])return;const _0x16fcf0=await _0xd00ee6[_0x22b7('0xe')](_0x3c24b9,Array[_0x22b7('0x9')](_0x4f1718));for(const _0x25c733 of _0x16fcf0)_0xf45f2e['getUser'](_0x25c733['id'])||_0xf45f2e['addUser'](_0x25c733);function _0x26b49d(_0x4b17d1){_0xf45f2e[_0x22b7('0x2f')](_0x4b17d1)||_0x4f1718[_0x22b7('0x39')](_0x4b17d1);}}}function S(_0x1b29a4){return _0x1b29a4[_0x22b7('0x4e')][_0x22b7('0x38')](_0x22b7('0x1d'))||_0x1b29a4['message'][_0x22b7('0x38')](_0x22b7('0x1'))||_0x1b29a4[_0x22b7('0x4e')][_0x22b7('0x38')](_0x22b7('0x17'));}v['RevisionHistoryService']=_0x127c1e;
|
|
23
|
+
const _0x1699=['catch','serverHistory','sessionId','getMany','isBundleUploaded','once','repository','_revisions','sendBufferedUpdates','currentRevision','reverse','message','baseVersion','adapter','destroy','CONNECTED','remove','authors','get','addToReconnectionStack','off','_update','code','bind','then','map','_createCurrentRevision','_revisionHistoryService','getOperations','startsWith','connection','setSource','_revisionTracker','from','diffData','has','change:_isPendingUpdate','isEnabled','connected','type','affectsData','addRevisionData','_offset','getRevisions','_bufferedUpdates','change:_isConnected','_isConnected','marker','_isPendingUpdate','requires','creatorId','_revisionDataBuilder','_fetchMissingUsers','RevisionTracker','max','buildRevisionData','state','config','cloud-services-internal-error:\x20Request\x20timeout.','length','isConnected','_getLatestVersion','400','authorsIds','connect','data','_startingVersion','wrongRequestId','keys','editor','_lastRequestId','cloudServices.bundleVersion','RevisionHistoryService','getRevision','isEmptyCurrent','_waitForServiceReady','_bufferUpdate','cloud-services-internal-error:\x20Not\x20connected.','getUser','size','createdAt','fromVersion','_handleReconnectionError','toVersion','_fixRevision','_oldOffset','init','_getLatestVersionFromServerOperations','plugins','_handleRevisionsUpdate','_preventResendingRevisionData'];(function(_0x35a97c,_0x16994b){const _0x103a48=function(_0x295cfa){while(--_0x295cfa){_0x35a97c['push'](_0x35a97c['shift']());}};_0x103a48(++_0x16994b);}(_0x1699,0x145));const _0x103a=function(_0x35a97c,_0x16994b){_0x35a97c=_0x35a97c-0x0;let _0x103a48=_0x1699[_0x35a97c];return _0x103a48;};import{Plugin as _0x3d7823}from'ckeditor5/src/core';import{version as _0x1f2fa9}from'ckeditor5/src/utils';import{Users as _0x82903d}from'ckeditor5-collaboration/src/collaboration-core';import _0x26d226 from'../realtimecollaborativeediting/realtimecollaborationclient';import _0x539376 from'../realtimecollaborativeediting/websocketgateway';import _0x101fd2 from'../realtimecollaborativeediting/sessions';import{User as _0x4bea76}from'@ckeditor/ckeditor-cloud-services-collaboration';import{RevisionHistoryService as _0x24fcef,EditorService as _0x29ebb8,WEB_SOCKET_GATEWAY_STATES as _0x12134c}from'@ckeditor/ckeditor-cloud-services-collaboration/src/services';export default class v extends _0x3d7823{static get[_0x103a('0x58')](){return[_0x539376,_0x26d226,_0x103a('0x1'),_0x101fd2,_0x82903d];}constructor(_0x342da0){super(_0x342da0);const _0x7512ef=this['editor']['config'][_0x103a('0x39')]('collaboration.channelId');this[_0x103a('0x12')]=null,this[_0x103a('0x47')]=this['editor'][_0x103a('0x24')][_0x103a('0x39')](_0x103a('0x1')),this['_revisionHistoryService']=new v['RevisionHistoryService'](_0x7512ef);}async[_0x103a('0x22')](){const _0x2217f1=this[_0x103a('0x11')][_0x103a('0x24')]['get'](_0x26d226),_0x349818=_0x2217f1[_0x103a('0x28')],_0x194fdf=this[_0x103a('0x11')][_0x103a('0x24')][_0x103a('0x39')](_0x539376);this[_0x103a('0x47')][_0x103a('0x46')]({'history':_0x349818,'getLatestVersion':()=>this[_0x103a('0x9')](),'getCurrentRevisionId':()=>_0x2217f1[_0x103a('0x29')]});const _0x49dc80=this[_0x103a('0x11')][_0x103a('0x5')][_0x103a('0x39')](_0x103a('0x13'))||_0x1f2fa9,_0x1bc10b=await _0x29ebb8[_0x103a('0x2b')](_0x194fdf['connection'],_0x49dc80);this[_0x103a('0x47')][_0x103a('0x34')]={'getRevision':async({revisionId:_0x4de496})=>(await this[_0x103a('0x17')](),await this[_0x103a('0x42')]['getRevision'](_0x4de496)),'updateRevisions':async _0x452512=>{await this[_0x103a('0x17')]();const _0x1663a1=this['_revisionTracker'][_0x103a('0x30')];if(_0x1bc10b&&0x1===_0x452512[_0x103a('0x7')]&&_0x452512[0x0]['id']===_0x1663a1['id'])return _0x452512;for(const _0x217a92 of _0x452512)_0x217a92['id']===_0x1663a1['id']&&(_0x217a92[_0x103a('0x16')]=_0x217a92[_0x103a('0x1d')]===_0x217a92['toVersion']);return this[_0x103a('0x42')]['updateRevisions'](_0x452512,this[_0x103a('0x12')])[_0x103a('0x3f')](_0x403748=>(this[_0x103a('0x12')]=_0x403748,_0x452512))[_0x103a('0x27')](_0x176dba=>{if(st(_0x176dba)||_0x103a('0xa')===_0x176dba[_0x103a('0x3d')]&&void 0x0!==_0x176dba[_0x103a('0xd')][_0x103a('0xf')]){for(const _0x481f30 of _0x452512){!this['_revisionTracker'][_0x103a('0x2d')][_0x103a('0x15')](_0x481f30['id'])||this[_0x103a('0x47')][_0x103a('0x18')](_0x481f30['id'],_0x481f30,!0x1);}if(st(_0x176dba))throw _0x176dba;return _0x452512;}throw _0x176dba;});}},this['listenTo'](this[_0x103a('0x42')],'revisionsUpdated',(_0x1e09e3,{revisionsData:_0x5a4829,requestId:_0x4547fb})=>{Math[_0x103a('0x2')](..._0x5a4829[_0x103a('0x40')](_0x1af298=>_0x1af298[_0x103a('0x1f')]))>this[_0x103a('0x23')]()-0x1?this[_0x103a('0x9')]()[_0x103a('0x3f')](()=>{this[_0x103a('0x25')](_0x5a4829,_0x4547fb);}):this[_0x103a('0x25')](_0x5a4829,_0x4547fb);});const {revisions:_0x4923f0,requestId:_0x5c9f81}=await this[_0x103a('0x42')][_0x103a('0xc')](_0x194fdf[_0x103a('0x45')]);_0x194fdf[_0x103a('0x3a')](this),this[_0x103a('0x12')]=_0x5c9f81,await this['_fetchMissingUsers'](_0x4923f0);for(const _0x2b9939 of _0x4923f0)this[_0x103a('0x47')]['addRevisionData'](_0x2b9939);this['listenTo'](_0x2217f1,_0x103a('0x54'),(_0x23e02f,_0x187b80,_0x165c38)=>{_0x165c38&&(this[_0x103a('0x21')]=_0x2217f1[_0x103a('0x51')],_0x23e02f[_0x103a('0x3b')]());}),this['_revisionTracker'][_0x103a('0x3e')](_0x103a('0x4c'))['to'](_0x194fdf,_0x103a('0x4'),_0xcca7f6=>_0xcca7f6===_0x12134c[_0x103a('0x36')]);}async['reconnect'](){const _0xc8c55d=this[_0x103a('0x11')]['plugins']['get'](_0x539376),_0x3a70c6=this[_0x103a('0x11')][_0x103a('0x24')][_0x103a('0x39')](_0x26d226),_0x333989=async()=>{const _0x4bcf2f=this[_0x103a('0x47')][_0x103a('0x30')],_0x446a1e=_0x4bcf2f['id'],_0x20eede=_0x446a1e!==_0x3a70c6[_0x103a('0x29')];if(_0x20eede){const _0x469811=_0x3a70c6[_0x103a('0x51')]-this[_0x103a('0x21')],_0x53cf85=this[_0x103a('0x23')]();this[_0x103a('0x47')][_0x103a('0x5a')]['reInit']();if(_0x4bcf2f['toVersion']+_0x469811!==_0x53cf85){const _0x284611=_0x4bcf2f[_0x103a('0x1d')]+_0x469811,_0x5b2365=this['editor'][_0x103a('0x24')][_0x103a('0x39')](_0x82903d),_0x526d9c=this[_0x103a('0x47')]['buildRevisionData']({'revision':_0x4bcf2f,'from':_0x284611,'to':_0x53cf85});_0x526d9c['id']=_0x4bcf2f['id'];const _0x457fa8=_0x526d9c[_0x103a('0xb')][_0x103a('0x40')](_0x5b9796=>_0x5b2365[_0x103a('0x1a')](_0x5b9796));_0x4bcf2f[_0x103a('0x3c')]({..._0x526d9c,'authors':_0x457fa8},!0x0),this[_0x103a('0x47')][_0x103a('0x18')](_0x4bcf2f['id'],_0x526d9c,!0x0);}this[_0x103a('0x47')][_0x103a('0xe')]=_0x53cf85,(_0x4bcf2f[_0x103a('0x1f')]===_0x4bcf2f[_0x103a('0x1d')]&&!this['_revisionTracker'][_0x103a('0x53')][_0x103a('0x4a')](_0x446a1e)&&this[_0x103a('0x47')]['repository'][_0x103a('0x2e')][_0x103a('0x37')](_0x446a1e),this[_0x103a('0x47')][_0x103a('0x41')](_0x53cf85));}const {revisions:_0x49d1b7,requestId:_0x554af2}=await this['_revisionHistoryService']['reconnect'](_0xc8c55d[_0x103a('0x45')],this[_0x103a('0x12')]);_0x20eede&&_0x49d1b7[_0x103a('0x7')]>0x0?_0x3a70c6[_0x103a('0x1e')]():(await this[_0x103a('0x0')](_0x49d1b7),this[_0x103a('0x25')](_0x49d1b7,_0x554af2),this['_revisionTracker'][_0x103a('0x2f')]());};return _0x3a70c6[_0x103a('0x55')]?_0x333989():new Promise((_0x127148,_0x14c030)=>{_0x3a70c6[_0x103a('0x2c')](_0x103a('0x54'),()=>{_0x333989()[_0x103a('0x3f')](_0x127148)['catch'](_0x14c030);});});}[_0x103a('0x35')](){super[_0x103a('0x35')]();}async[_0x103a('0x17')](){this[_0x103a('0x42')][_0x103a('0x8')]||await new Promise(_0x99faaf=>{this['listenTo'](this['_revisionHistoryService'],_0x103a('0x4d'),_0x3bf488=>{_0x3bf488[_0x103a('0x3b')](),_0x99faaf();});});}[_0x103a('0x23')](){const _0x3a51cf=this[_0x103a('0x11')][_0x103a('0x24')][_0x103a('0x39')](_0x26d226)[_0x103a('0x28')][_0x103a('0x43')]()[_0x103a('0x31')]();for(const _0x279201 of _0x3a51cf)if(_0x103a('0x56')!==_0x279201[_0x103a('0x4e')]||_0x279201[_0x103a('0x4f')])return _0x279201[_0x103a('0x33')]+0x1;}[_0x103a('0x9')](){const _0x2c4892=this[_0x103a('0x11')]['plugins'][_0x103a('0x39')](_0x26d226);return new Promise(_0x33ea1e=>{_0x2c4892[_0x103a('0x57')]?_0x2c4892['once'](_0x103a('0x4b'),()=>{_0x33ea1e(this['_getLatestVersionFromServerOperations']());}):_0x33ea1e(this[_0x103a('0x23')]());});}[_0x103a('0x25')](_0x1efbd0,_0x22d7d0){const _0x107c83=this[_0x103a('0x47')]['repository'];this[_0x103a('0x12')]=_0x22d7d0;for(const _0x47b554 of _0x1efbd0){const _0x30c4a1=_0x107c83[_0x103a('0x15')](_0x47b554['id']);if(_0x30c4a1){if((_0x47b554[_0x103a('0x1d')]||_0x47b554[_0x103a('0x1f')])&&(_0x47b554[_0x103a('0x49')]=null),_0x30c4a1===this[_0x103a('0x47')]['currentRevision']){const _0x138ad5=Math[_0x103a('0x2')](_0x30c4a1[_0x103a('0x1f')],_0x47b554[_0x103a('0x1f')]),_0x31878d=Math[_0x103a('0x2')](_0x30c4a1[_0x103a('0x1d')],_0x47b554[_0x103a('0x1d')]);let _0x37b4e2;_0x30c4a1[_0x103a('0x1f')]===_0x47b554[_0x103a('0x1f')]&&_0x30c4a1['fromVersion']===_0x47b554['fromVersion']?(_0x37b4e2=!0x0,this[_0x103a('0x26')](_0x47b554)):_0x47b554[_0x103a('0x1f')]===_0x138ad5&&_0x47b554[_0x103a('0x1d')]===_0x31878d?_0x37b4e2=!0x1:(_0x30c4a1[_0x103a('0x1f')]===_0x138ad5&&_0x30c4a1[_0x103a('0x1d')]===_0x31878d||this[_0x103a('0x20')]({'revision':_0x30c4a1,'from':_0x31878d,'to':_0x138ad5}),_0x37b4e2=!0x0),_0x37b4e2&&(delete _0x47b554[_0x103a('0x1d')],delete _0x47b554[_0x103a('0x1f')],delete _0x47b554[_0x103a('0x49')],delete _0x47b554[_0x103a('0x1c')],delete _0x47b554[_0x103a('0xb')]);}this['_revisionTracker']['setRevisionData'](_0x47b554),this['_preventResendingRevisionData'](_0x47b554);}else this[_0x103a('0x47')][_0x103a('0x50')](_0x47b554);}const _0x4bc996=_0x107c83[_0x103a('0x52')]();_0x4bc996[_0x103a('0x31')]();for(let _0x5f4186=0x0;_0x5f4186<_0x4bc996[_0x103a('0x7')]-0x1;_0x5f4186++){const _0x2d6222=_0x4bc996[_0x5f4186],_0x27ba4d=_0x4bc996[_0x5f4186+0x1];if(_0x2d6222['fromVersion']<_0x27ba4d[_0x103a('0x1f')]){const _0x54e4b8=_0x27ba4d[_0x103a('0x1f')],_0xb969b7=Math[_0x103a('0x2')](_0x54e4b8,_0x2d6222[_0x103a('0x1f')]);this['_fixRevision']({'revision':_0x2d6222,'from':_0x54e4b8,'to':_0xb969b7});}}}[_0x103a('0x20')]({revision:_0x177367,from:_0x340179,to:_0x572246}={}){const _0x32073b=this['editor'][_0x103a('0x24')][_0x103a('0x39')](_0x82903d),_0xd44098=this['_revisionTracker'][_0x103a('0x3')]({'revision':_0x177367,'from':_0x340179,'to':_0x572246});_0xd44098[_0x103a('0x38')]=_0xd44098[_0x103a('0xb')][_0x103a('0x40')](_0x5e08c8=>_0x32073b[_0x103a('0x1a')](_0x5e08c8)),_0x177367['_update'](_0xd44098);}[_0x103a('0x26')](_0x51e109){const _0x16dbf8={};_0x16dbf8['id']=_0x51e109['id'];for(const _0x470bc0 of Object[_0x103a('0x10')](_0x51e109))'id'!==_0x470bc0&&(_0x16dbf8[_0x470bc0]=void 0x0);this[_0x103a('0x47')][_0x103a('0x18')](_0x16dbf8['id'],_0x16dbf8,!0x0);}async['_fetchMissingUsers'](_0x152ba7){const _0x2e6312=this[_0x103a('0x11')][_0x103a('0x24')][_0x103a('0x39')](_0x82903d),{connection:_0x3b0d50}=this[_0x103a('0x11')][_0x103a('0x24')][_0x103a('0x39')](_0x539376),_0x185c8e=new Set();for(const _0x4a4dd0 of _0x152ba7){for(const _0x4fc630 of _0x4a4dd0['authorsIds'])_0xe03fa3(_0x4fc630);_0x4a4dd0['creatorId']&&_0xe03fa3(_0x4a4dd0[_0x103a('0x59')]);}if(0x0===_0x185c8e[_0x103a('0x1b')])return;const _0x1deca0=await _0x4bea76[_0x103a('0x2a')](_0x3b0d50,Array[_0x103a('0x48')](_0x185c8e));for(const _0x7beeb5 of _0x1deca0)_0x2e6312[_0x103a('0x1a')](_0x7beeb5['id'])||_0x2e6312['addUser'](_0x7beeb5);function _0xe03fa3(_0x2bec48){_0x2e6312[_0x103a('0x1a')](_0x2bec48)||_0x185c8e['add'](_0x2bec48);}}}function st(_0x3d09b2){return _0x3d09b2[_0x103a('0x32')][_0x103a('0x44')]('cloud-services-internal-error:\x20Revision\x20History\x20Service\x20is\x20not\x20connected.')||_0x3d09b2['message'][_0x103a('0x44')](_0x103a('0x19'))||_0x3d09b2[_0x103a('0x32')][_0x103a('0x44')](_0x103a('0x6'));}v[_0x103a('0x14')]=_0x24fcef;
|
|
@@ -1,29 +1,29 @@
|
|
|
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
|
-
*/
|
|
5
|
-
/**
|
|
6
|
-
* @module real-time-collaboration/realtimecollaborativerevisionhistory
|
|
7
|
-
* @publicApi
|
|
8
|
-
*/
|
|
9
|
-
import { Plugin } from 'ckeditor5/src/core';
|
|
10
|
-
import CloudServicesRevisionHistoryAdapter from './realtimecollaborativerevisionhistory/cloudservicesrevisionhistoryadapter';
|
|
11
|
-
import RealTimeCollaborativeEditing from './realtimecollaborativeediting';
|
|
12
|
-
/**
|
|
13
|
-
* Enables the real-time collaborative revision history feature.
|
|
14
|
-
*
|
|
15
|
-
* Requires adding `RevisionHistory` to the list of editor plugins.
|
|
16
|
-
*
|
|
17
|
-
* Check the {@glink features/collaboration/real-time-collaboration/real-time-collaboration-integration Real-time collaboration guide}
|
|
18
|
-
* to see how to launch the editor in the real-time collaboration mode.
|
|
19
|
-
*/
|
|
20
|
-
export default class RealTimeCollaborativeRevisionHistory extends Plugin {
|
|
21
|
-
/**
|
|
22
|
-
* @inheritDoc
|
|
23
|
-
*/
|
|
24
|
-
static get requires(): readonly ["RevisionHistory", typeof CloudServicesRevisionHistoryAdapter, typeof RealTimeCollaborativeEditing];
|
|
25
|
-
/**
|
|
26
|
-
* @inheritDoc
|
|
27
|
-
*/
|
|
28
|
-
static get pluginName(): "RealTimeCollaborativeRevisionHistory";
|
|
29
|
-
}
|
|
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
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* @module real-time-collaboration/realtimecollaborativerevisionhistory
|
|
7
|
+
* @publicApi
|
|
8
|
+
*/
|
|
9
|
+
import { Plugin } from 'ckeditor5/src/core';
|
|
10
|
+
import CloudServicesRevisionHistoryAdapter from './realtimecollaborativerevisionhistory/cloudservicesrevisionhistoryadapter';
|
|
11
|
+
import RealTimeCollaborativeEditing from './realtimecollaborativeediting';
|
|
12
|
+
/**
|
|
13
|
+
* Enables the real-time collaborative revision history feature.
|
|
14
|
+
*
|
|
15
|
+
* Requires adding `RevisionHistory` to the list of editor plugins.
|
|
16
|
+
*
|
|
17
|
+
* Check the {@glink features/collaboration/real-time-collaboration/real-time-collaboration-integration Real-time collaboration guide}
|
|
18
|
+
* to see how to launch the editor in the real-time collaboration mode.
|
|
19
|
+
*/
|
|
20
|
+
export default class RealTimeCollaborativeRevisionHistory extends Plugin {
|
|
21
|
+
/**
|
|
22
|
+
* @inheritDoc
|
|
23
|
+
*/
|
|
24
|
+
static get requires(): readonly ["RevisionHistory", typeof CloudServicesRevisionHistoryAdapter, typeof RealTimeCollaborativeEditing];
|
|
25
|
+
/**
|
|
26
|
+
* @inheritDoc
|
|
27
|
+
*/
|
|
28
|
+
static get pluginName(): "RealTimeCollaborativeRevisionHistory";
|
|
29
|
+
}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x420b=['RealTimeCollaborativeRevisionHistory','pluginName','RevisionHistory'];(function(_0x101881,_0x420be3){var _0x37c479=function(_0x1b9445){while(--_0x1b9445){_0x101881['push'](_0x101881['shift']());}};_0x37c479(++_0x420be3);}(_0x420b,0xa7));var _0x37c4=function(_0x101881,_0x420be3){_0x101881=_0x101881-0x0;var _0x37c479=_0x420b[_0x101881];return _0x37c479;};import{Plugin as _0x844924}from'ckeditor5/src/core';import _0x523858 from'./realtimecollaborativerevisionhistory/cloudservicesrevisionhistoryadapter';import _0x219142 from'./realtimecollaborativeediting';export default class d extends _0x844924{static get['requires'](){return[_0x37c4('0x0'),_0x523858,_0x219142];}static get[_0x37c4('0x2')](){return _0x37c4('0x1');}}
|
|
@@ -1,39 +1,39 @@
|
|
|
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
|
-
*/
|
|
5
|
-
/**
|
|
6
|
-
* @module real-time-collaboration/realtimecollaborativetrackchanges/cloudservicestrackchangesadapter
|
|
7
|
-
* @publicApi
|
|
8
|
-
*/
|
|
9
|
-
import { Plugin, type Editor } from 'ckeditor5/src/core';
|
|
10
|
-
import { TrackChangesService } from '@ckeditor/ckeditor-cloud-services-collaboration/src/services';
|
|
11
|
-
import WebSocketGateway, { type ReconnectPlugin } from '../realtimecollaborativeediting/websocketgateway';
|
|
12
|
-
import CloudServicesCommentsAdapter from '../realtimecollaborativecomments/cloudservicescommentsadapter';
|
|
13
|
-
/**
|
|
14
|
-
* The Cloud Services Track Changes Adapter plugin.
|
|
15
|
-
*/
|
|
16
|
-
export default class CloudServicesTrackChangesAdapter extends Plugin implements ReconnectPlugin {
|
|
17
|
-
static TrackChangesService: typeof TrackChangesService;
|
|
18
|
-
/**
|
|
19
|
-
* @inheritDoc
|
|
20
|
-
*/
|
|
21
|
-
static get requires(): readonly [typeof CloudServicesCommentsAdapter, "TrackChangesEditing", typeof WebSocketGateway];
|
|
22
|
-
/**
|
|
23
|
-
* @inheritDoc
|
|
24
|
-
*/
|
|
25
|
-
constructor(editor: Editor);
|
|
26
|
-
/**
|
|
27
|
-
* @inheritDoc
|
|
28
|
-
*/
|
|
29
|
-
init(): Promise<void>;
|
|
30
|
-
/**
|
|
31
|
-
* A method that will be executed when the `WebSocketGateway` will reconnect.
|
|
32
|
-
*/
|
|
33
|
-
reconnect(): Promise<void>;
|
|
34
|
-
/**
|
|
35
|
-
* Waits for the service to be ready before calling the service API.
|
|
36
|
-
*/
|
|
37
|
-
private _waitForServiceReady;
|
|
38
|
-
private _fetchMissingUsersForThreads;
|
|
39
|
-
}
|
|
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
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* @module real-time-collaboration/realtimecollaborativetrackchanges/cloudservicestrackchangesadapter
|
|
7
|
+
* @publicApi
|
|
8
|
+
*/
|
|
9
|
+
import { Plugin, type Editor } from 'ckeditor5/src/core';
|
|
10
|
+
import { TrackChangesService } from '@ckeditor/ckeditor-cloud-services-collaboration/src/services';
|
|
11
|
+
import WebSocketGateway, { type ReconnectPlugin } from '../realtimecollaborativeediting/websocketgateway';
|
|
12
|
+
import CloudServicesCommentsAdapter from '../realtimecollaborativecomments/cloudservicescommentsadapter';
|
|
13
|
+
/**
|
|
14
|
+
* The Cloud Services Track Changes Adapter plugin.
|
|
15
|
+
*/
|
|
16
|
+
export default class CloudServicesTrackChangesAdapter extends Plugin implements ReconnectPlugin {
|
|
17
|
+
static TrackChangesService: typeof TrackChangesService;
|
|
18
|
+
/**
|
|
19
|
+
* @inheritDoc
|
|
20
|
+
*/
|
|
21
|
+
static get requires(): readonly [typeof CloudServicesCommentsAdapter, "TrackChangesEditing", typeof WebSocketGateway];
|
|
22
|
+
/**
|
|
23
|
+
* @inheritDoc
|
|
24
|
+
*/
|
|
25
|
+
constructor(editor: Editor);
|
|
26
|
+
/**
|
|
27
|
+
* @inheritDoc
|
|
28
|
+
*/
|
|
29
|
+
init(): Promise<void>;
|
|
30
|
+
/**
|
|
31
|
+
* A method that will be executed when the `WebSocketGateway` will reconnect.
|
|
32
|
+
*/
|
|
33
|
+
reconnect(): Promise<void>;
|
|
34
|
+
/**
|
|
35
|
+
* Waits for the service to be ready before calling the service API.
|
|
36
|
+
*/
|
|
37
|
+
private _waitForServiceReady;
|
|
38
|
+
private _fetchMissingUsersForThreads;
|
|
39
|
+
}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5640=['open','get','find','adapter','cloud-services-internal-error:\x20Request\x20timeout.','TrackChangesEditing','_fetchMissingUsersForThreads','editor','suggestionUpdated','startsWith','listenTo','plugins','_saved','delete','attributes','_trackChangesService','connect','originalSuggestionId','connection','requires','init','_waitForServiceReady','hasSuggestion','cloud-services-internal-error:\x20Not\x20connected.','set','TrackChangesService','addUser','addSuggestionData','catch','from','addToReconnectionStack','update','getSuggestion','_bufferedRequests','collaboration.channelId','connected','off','getUser','add','data','message'];(function(_0x353a3c,_0x5640e1){const _0x154079=function(_0x266939){while(--_0x266939){_0x353a3c['push'](_0x353a3c['shift']());}};_0x154079(++_0x5640e1);}(_0x5640,0x143));const _0x1540=function(_0x353a3c,_0x5640e1){_0x353a3c=_0x353a3c-0x0;let _0x154079=_0x5640[_0x353a3c];return _0x154079;};import{Plugin as _0xfeb476}from'ckeditor5/src/core';import{TrackChangesService as _0xd19c32}from'@ckeditor/ckeditor-cloud-services-collaboration/src/services';import{User as _0x1ae858}from'@ckeditor/ckeditor-cloud-services-collaboration';import _0xddfa19 from'../realtimecollaborativeediting/websocketgateway';import _0x3708be from'../realtimecollaborativecomments/cloudservicescommentsadapter';import{Users as _0x4d5f8a}from'ckeditor5-collaboration/src/collaboration-core';export default class g extends _0xfeb476{static get[_0x1540('0x18')](){return[_0x3708be,_0x1540('0xa'),_0xddfa19];}constructor(_0x38a781){super(_0x38a781);const _0x5bd5f4=this[_0x1540('0xc')]['config'][_0x1540('0x6')](_0x1540('0x27'));this[_0x1540('0x26')]=new Map(),this[_0x1540('0x14')]=new g[(_0x1540('0x1e'))](_0x5bd5f4);}[_0x1540('0x19')](){const _0x3c577b=this[_0x1540('0xc')][_0x1540('0x10')][_0x1540('0x6')](_0xddfa19),_0x50e5a0=this[_0x1540('0xc')]['plugins'][_0x1540('0x6')]('TrackChangesEditing');return _0x50e5a0[_0x1540('0x8')]={'getSuggestion':async _0x6aa978=>{await this[_0x1540('0x1a')]();const _0xf83476=await this[_0x1540('0x14')][_0x1540('0x6')](_0x6aa978)[_0x1540('0x21')](B);return await this['_fetchMissingUsersForThreads']([_0xf83476]),_0xf83476;},'addSuggestion':async({id:_0x4b30cd,type:_0x3340e4,data:_0x347eca,originalSuggestionId:_0x1c5fbe,attributes:_0x5c5169})=>{await this[_0x1540('0x1a')]();const _0x231083={'id':_0x4b30cd,'type':_0x3340e4,'data':_0x347eca,'originalSuggestionId':_0x1c5fbe,'attributes':_0x5c5169},_0x5729ad=await this[_0x1540('0x14')][_0x1540('0x2')](_0x4b30cd,_0x3340e4,_0x347eca,_0x1c5fbe,_0x5c5169)['catch'](_0x3668a2=>{if(st(_0x3668a2))return new Promise(_0xf4d29e=>{this[_0x1540('0x26')][_0x1540('0x1d')](_0x4b30cd,{'resolve':_0xf4d29e,'suggestionData':_0x231083});});throw _0x3668a2;});return this[_0x1540('0x26')][_0x1540('0x12')](_0x4b30cd),_0x5729ad;},'updateSuggestion':async(_0x415087,_0x41058d)=>{if(await this['_waitForServiceReady'](),_0x1540('0x5')!==_0x41058d['state'])return this[_0x1540('0x14')][_0x1540('0x24')](_0x415087,_0x41058d)[_0x1540('0x21')](B);}},this[_0x1540('0xf')](this[_0x1540('0x14')],_0x1540('0xd'),(_0x209948,_0x38737b)=>{_0x50e5a0[_0x1540('0x1b')](_0x38737b['id'])&&(_0x50e5a0[_0x1540('0x25')](_0x38737b['id'])[_0x1540('0x13')]=_0x38737b[_0x1540('0x13')]);}),this[_0x1540('0x14')]['connect'](_0x3c577b[_0x1540('0x17')])['then'](_0x3b931a=>(_0x3c577b[_0x1540('0x23')](this),this[_0x1540('0xb')](_0x3b931a)['then'](()=>{for(const _0x49c953 of _0x3b931a){_0x50e5a0[_0x1540('0x20')](_0x49c953)[_0x1540('0x11')]=!0x0;}})));}async['reconnect'](){const _0x237fe6=this['editor'][_0x1540('0x10')][_0x1540('0x6')]('TrackChangesEditing'),{connection:_0x7e42ea}=this[_0x1540('0xc')][_0x1540('0x10')][_0x1540('0x6')](_0xddfa19),_0x54e7bf=await this[_0x1540('0x14')][_0x1540('0x15')](_0x7e42ea);await this[_0x1540('0xb')](_0x54e7bf);for(const {suggestionData:_0x22bf98,resolve:_0x989815}of this['_bufferedRequests']['values']()){let _0x229297=_0x54e7bf[_0x1540('0x7')](_0xf1a61b=>_0xf1a61b['id']===_0x22bf98['id']);_0x229297||(_0x229297=await this[_0x1540('0x14')][_0x1540('0x2')](_0x22bf98['id'],_0x22bf98['type'],_0x22bf98[_0x1540('0x3')],_0x22bf98[_0x1540('0x16')])),_0x989815(_0x229297);}for(const _0x41a84d of _0x54e7bf)_0x237fe6['hasSuggestion'](_0x41a84d['id'])||_0x237fe6[_0x1540('0x20')](_0x41a84d);}async[_0x1540('0x1a')](){this['_trackChangesService']['isConnected']||await new Promise(_0x3dbc2c=>{this[_0x1540('0xf')](this[_0x1540('0x14')],_0x1540('0x28'),_0x39f310=>{_0x39f310[_0x1540('0x0')](),_0x3dbc2c();});});}async[_0x1540('0xb')](_0x595cb8){const _0x252491=this['editor']['plugins'][_0x1540('0x6')](_0x4d5f8a),{connection:_0x3eea41}=this['editor'][_0x1540('0x10')]['get'](_0xddfa19),_0x17e599=new Set();for(const {authorId:_0x32e6d7}of _0x595cb8)_0x252491['getUser'](_0x32e6d7)||_0x17e599[_0x1540('0x2')](_0x32e6d7);if(0x0===_0x17e599['size'])return;const _0x555113=await _0x1ae858['getMany'](_0x3eea41,Array[_0x1540('0x22')](_0x17e599));for(const _0xfd680b of _0x555113)_0x252491[_0x1540('0x1')](_0xfd680b['id'])||_0x252491[_0x1540('0x1f')](_0xfd680b);}}function B(_0x1d3e47){if(st(_0x1d3e47))return new Promise(()=>{});throw _0x1d3e47;}function st(_0x1f82e6){return _0x1f82e6[_0x1540('0x4')][_0x1540('0xe')](_0x1540('0x1c'))||_0x1f82e6[_0x1540('0x4')]['startsWith'](_0x1540('0x9'));}g[_0x1540('0x1e')]=_0xd19c32;
|
|
@@ -1,27 +1,27 @@
|
|
|
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
|
-
*/
|
|
5
|
-
/**
|
|
6
|
-
* @module real-time-collaboration/realtimecollaborativetrackchanges
|
|
7
|
-
* @publicApi
|
|
8
|
-
*/
|
|
9
|
-
import { Plugin } from 'ckeditor5/src/core';
|
|
10
|
-
import CloudServicesTrackChangesAdapter from './realtimecollaborativetrackchanges/cloudservicestrackchangesadapter';
|
|
11
|
-
import RealTimeCollaborativeComments from './realtimecollaborativecomments';
|
|
12
|
-
/**
|
|
13
|
-
* Enables the real-time collaborative track changes feature.
|
|
14
|
-
*
|
|
15
|
-
* Check the {@glink features/collaboration/real-time-collaboration/real-time-collaboration-integration Real-time collaboration}
|
|
16
|
-
* guide to see how to launch the editor in the real-time collaboration mode.
|
|
17
|
-
*/
|
|
18
|
-
export default class RealTimeCollaborativeTrackChanges extends Plugin {
|
|
19
|
-
/**
|
|
20
|
-
* @inheritDoc
|
|
21
|
-
*/
|
|
22
|
-
static get requires(): readonly [typeof RealTimeCollaborativeComments, typeof CloudServicesTrackChangesAdapter, "TrackChanges"];
|
|
23
|
-
/**
|
|
24
|
-
* @inheritDoc
|
|
25
|
-
*/
|
|
26
|
-
static get pluginName(): "RealTimeCollaborativeTrackChanges";
|
|
27
|
-
}
|
|
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
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* @module real-time-collaboration/realtimecollaborativetrackchanges
|
|
7
|
+
* @publicApi
|
|
8
|
+
*/
|
|
9
|
+
import { Plugin } from 'ckeditor5/src/core';
|
|
10
|
+
import CloudServicesTrackChangesAdapter from './realtimecollaborativetrackchanges/cloudservicestrackchangesadapter';
|
|
11
|
+
import RealTimeCollaborativeComments from './realtimecollaborativecomments';
|
|
12
|
+
/**
|
|
13
|
+
* Enables the real-time collaborative track changes feature.
|
|
14
|
+
*
|
|
15
|
+
* Check the {@glink features/collaboration/real-time-collaboration/real-time-collaboration-integration Real-time collaboration}
|
|
16
|
+
* guide to see how to launch the editor in the real-time collaboration mode.
|
|
17
|
+
*/
|
|
18
|
+
export default class RealTimeCollaborativeTrackChanges extends Plugin {
|
|
19
|
+
/**
|
|
20
|
+
* @inheritDoc
|
|
21
|
+
*/
|
|
22
|
+
static get requires(): readonly [typeof RealTimeCollaborativeComments, typeof CloudServicesTrackChangesAdapter, "TrackChanges"];
|
|
23
|
+
/**
|
|
24
|
+
* @inheritDoc
|
|
25
|
+
*/
|
|
26
|
+
static get pluginName(): "RealTimeCollaborativeTrackChanges";
|
|
27
|
+
}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x53f8=['TrackChanges','requires','RealTimeCollaborativeTrackChanges','pluginName'];(function(_0x2c5c2e,_0x53f890){var _0xd3c3d8=function(_0xe66f49){while(--_0xe66f49){_0x2c5c2e['push'](_0x2c5c2e['shift']());}};_0xd3c3d8(++_0x53f890);}(_0x53f8,0x11e));var _0xd3c3=function(_0x2c5c2e,_0x53f890){_0x2c5c2e=_0x2c5c2e-0x0;var _0xd3c3d8=_0x53f8[_0x2c5c2e];return _0xd3c3d8;};import{Plugin as _0x290cc1}from'ckeditor5/src/core';import _0x537601 from'./realtimecollaborativetrackchanges/cloudservicestrackchangesadapter';import _0x4cbbb8 from'./realtimecollaborativecomments';export default class p extends _0x290cc1{static get[_0xd3c3('0x3')](){return[_0x4cbbb8,_0x537601,_0xd3c3('0x2')];}static get[_0xd3c3('0x1')](){return _0xd3c3('0x0');}}
|