@ckeditor/ckeditor5-real-time-collaboration 38.2.0-alpha.1 → 39.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +0 -1
- package/build/real-time-collaboration.js +1 -1
- package/package.json +7 -8
- package/src/augmentation.d.ts +7 -3
- package/src/augmentation.js +1 -1
- package/src/common-translations.d.ts +5 -1
- package/src/common-translations.js +2 -2
- package/src/config.d.ts +5 -1
- package/src/config.js +1 -1
- package/src/index.d.ts +14 -10
- package/src/index.js +2 -2
- package/src/presencelist/presencelistui.d.ts +11 -7
- package/src/presencelist/presencelistui.js +2 -2
- package/src/presencelist/view/presencecounterview.d.ts +6 -2
- package/src/presencelist/view/presencecounterview.js +2 -2
- package/src/presencelist/view/presencedropdownlistitemview.d.ts +7 -3
- package/src/presencelist/view/presencedropdownlistitemview.js +2 -2
- package/src/presencelist/view/presencedropdownlistview.d.ts +6 -2
- package/src/presencelist/view/presencedropdownlistview.js +2 -2
- package/src/presencelist/view/presenceinlinelistitemview.d.ts +7 -3
- package/src/presencelist/view/presenceinlinelistitemview.js +2 -2
- package/src/presencelist/view/presenceinlinelistview.d.ts +7 -3
- package/src/presencelist/view/presenceinlinelistview.js +2 -2
- package/src/presencelist/view/presencelistview.d.ts +8 -4
- package/src/presencelist/view/presencelistview.js +2 -2
- package/src/presencelist.d.ts +7 -3
- package/src/presencelist.js +2 -2
- package/src/realtimecollaborativecomments/cloudservicescommentsadapter.d.ts +9 -5
- package/src/realtimecollaborativecomments/cloudservicescommentsadapter.js +2 -2
- package/src/realtimecollaborativecomments.d.ts +8 -4
- package/src/realtimecollaborativecomments.js +2 -2
- package/src/realtimecollaborativeediting/realtimecollaborationclient.d.ts +21 -7
- package/src/realtimecollaborativeediting/realtimecollaborationclient.js +2 -2
- package/src/realtimecollaborativeediting/sessions.d.ts +9 -5
- package/src/realtimecollaborativeediting/sessions.js +2 -2
- package/src/realtimecollaborativeediting/usermarkers.d.ts +6 -2
- package/src/realtimecollaborativeediting/usermarkers.js +2 -2
- package/src/realtimecollaborativeediting/websocketgateway.d.ts +7 -3
- package/src/realtimecollaborativeediting/websocketgateway.js +2 -2
- package/src/realtimecollaborativeediting.d.ts +6 -2
- package/src/realtimecollaborativeediting.js +2 -2
- package/src/realtimecollaborativerevisionhistory/cloudservicesrevisionhistoryadapter.d.ts +10 -6
- package/src/realtimecollaborativerevisionhistory/cloudservicesrevisionhistoryadapter.js +2 -2
- package/src/realtimecollaborativerevisionhistory.d.ts +7 -3
- package/src/realtimecollaborativerevisionhistory.js +2 -2
- package/src/realtimecollaborativetrackchanges/cloudservicestrackchangesadapter.d.ts +8 -4
- package/src/realtimecollaborativetrackchanges/cloudservicestrackchangesadapter.js +2 -2
- package/src/realtimecollaborativetrackchanges.d.ts +7 -3
- package/src/realtimecollaborativetrackchanges.js +2 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ckeditor/ckeditor5-real-time-collaboration",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "39.0.0",
|
|
4
4
|
"description": "A set of CKEditor 5 features enabling real-time collaboration within the editor using CKEditor Cloud Services.",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
6
6
|
"author": "CKSource (http://cksource.com/)",
|
|
@@ -29,7 +29,6 @@
|
|
|
29
29
|
"framework"
|
|
30
30
|
],
|
|
31
31
|
"main": "src/index.js",
|
|
32
|
-
"type": "module",
|
|
33
32
|
"files": [
|
|
34
33
|
"build",
|
|
35
34
|
"lang",
|
|
@@ -40,12 +39,12 @@
|
|
|
40
39
|
"CHANGELOG.md"
|
|
41
40
|
],
|
|
42
41
|
"dependencies": {
|
|
43
|
-
"@ckeditor/ckeditor5-cloud-services": "
|
|
44
|
-
"@ckeditor/ckeditor-cloud-services-collaboration": "
|
|
45
|
-
"@ckeditor/ckeditor5-operations-compressor": "
|
|
46
|
-
"ckeditor5": "
|
|
47
|
-
"ckeditor5-collaboration": "
|
|
48
|
-
"lodash-es": "
|
|
42
|
+
"@ckeditor/ckeditor5-cloud-services": "39.0.0",
|
|
43
|
+
"@ckeditor/ckeditor-cloud-services-collaboration": "51.1.0",
|
|
44
|
+
"@ckeditor/ckeditor5-operations-compressor": "39.0.0",
|
|
45
|
+
"ckeditor5": "39.0.0",
|
|
46
|
+
"ckeditor5-collaboration": "39.0.0",
|
|
47
|
+
"lodash-es": "4.17.21"
|
|
49
48
|
},
|
|
50
49
|
"engines": {
|
|
51
50
|
"node": ">=16.0.0",
|
package/src/augmentation.d.ts
CHANGED
|
@@ -1,6 +1,10 @@
|
|
|
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 '@ckeditor/ckeditor5-cloud-services';
|
|
2
|
-
import type { PresenceListConfig } from './config
|
|
3
|
-
import type { RealTimeCollaborationClient } from './index
|
|
6
|
+
import type { PresenceListConfig } from './config';
|
|
7
|
+
import type { RealTimeCollaborationClient } from './index';
|
|
4
8
|
declare module '@ckeditor/ckeditor5-core' {
|
|
5
9
|
interface EditorConfig {
|
|
6
10
|
presenceList?: PresenceListConfig;
|
|
@@ -54,7 +58,7 @@ declare module '@ckeditor/ckeditor5-cloud-services' {
|
|
|
54
58
|
requestTimeout?: number;
|
|
55
59
|
}
|
|
56
60
|
}
|
|
57
|
-
declare module 'ckeditor5-collaboration' {
|
|
61
|
+
declare module 'ckeditor5-collaboration/src/collaboration-core' {
|
|
58
62
|
interface User {
|
|
59
63
|
orderNumber?: number;
|
|
60
64
|
}
|
package/src/augmentation.js
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
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
|
/**
|
|
2
6
|
* @module real-time-collaboration/common-translations
|
|
3
7
|
*/
|
|
4
|
-
import type { Locale } from 'ckeditor5/src/utils
|
|
8
|
+
import type { Locale } from 'ckeditor5/src/utils';
|
|
5
9
|
export declare function getTranslation(locale: Locale, id: string, values?: Array<string> | number): string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c)
|
|
2
|
+
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export function getTranslation(
|
|
23
|
+
export function getTranslation(_0x2e228d,_0x5e2d15,_0x1e5757){const t=_0x2e228d['t'];switch(_0x5e2d15){case'PENDING_ACTION_SENDING_DATA':return t({'string':'Sending\x20data\x20to\x20the\x20server.','id':'PENDING_ACTION_SENDING_DATA'});case'The\x20local\x20document\x20and\x20server\x20document\x20differ\x20and\x20merging\x20them\x20can\x20cause\x20unexpected\x20behavior.\x20To\x20not\x20lose\x20your\x20content\x20save\x20it\x20locally\x20and\x20refresh\x20the\x20editor.':return t('The\x20local\x20document\x20and\x20server\x20document\x20differ\x20and\x20merging\x20them\x20can\x20cause\x20unexpected\x20behavior.\x20To\x20not\x20lose\x20your\x20content\x20save\x20it\x20locally\x20and\x20refresh\x20the\x20editor.');case'The\x20document\x20cannot\x20be\x20connected\x20back\x20to\x20the\x20server.\x20To\x20not\x20lose\x20your\x20content\x20save\x20it\x20locally\x20and\x20refresh\x20the\x20editor.':return t('The\x20document\x20cannot\x20be\x20connected\x20back\x20to\x20the\x20server.\x20To\x20not\x20lose\x20your\x20content\x20save\x20it\x20locally\x20and\x20refresh\x20the\x20editor.');case'The\x20document\x20details\x20could\x20not\x20be\x20taken\x20during\x20the\x20reconnection.\x20To\x20not\x20lose\x20your\x20content\x20save\x20it\x20locally\x20and\x20refresh\x20the\x20editor.':return t('The\x20document\x20details\x20could\x20not\x20be\x20taken\x20during\x20the\x20reconnection.\x20To\x20not\x20lose\x20your\x20content\x20save\x20it\x20locally\x20and\x20refresh\x20the\x20editor.');case'The\x20last\x20saved\x20version\x20of\x20the\x20document\x20does\x20not\x20match\x20the\x20local\x20version.\x20To\x20not\x20lose\x20your\x20content\x20save\x20it\x20locally\x20and\x20refresh\x20the\x20editor.':return t('The\x20last\x20saved\x20version\x20of\x20the\x20document\x20does\x20not\x20match\x20the\x20local\x20version.\x20To\x20not\x20lose\x20your\x20content\x20save\x20it\x20locally\x20and\x20refresh\x20the\x20editor.');case'Synchronization\x20issue':return t('Synchronization\x20issue');case'PENDING_ACTION_REVISION_HISTORY':return t({'string':'Unsaved\x20change\x20in\x20revision\x20history.','id':'PENDING_ACTION_REVISION_HISTORY'});case'CONNECTED_USERS':return t({'string':'1\x20connected\x20user\x20(me)','plural':'%0\x20connected\x20users','id':'CONNECTED_USERS'},_0x1e5757);default:return'';}}
|
package/src/config.d.ts
CHANGED
|
@@ -1,4 +1,8 @@
|
|
|
1
|
-
|
|
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
|
+
import type { User } from 'ckeditor5-collaboration/src/collaboration-core';
|
|
2
6
|
/**
|
|
3
7
|
* @module real-time-collaboration/config
|
|
4
8
|
* @publicApi
|
package/src/config.js
CHANGED
package/src/index.d.ts
CHANGED
|
@@ -1,10 +1,14 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
export { default as
|
|
6
|
-
export { default as
|
|
7
|
-
export { default as
|
|
8
|
-
export { default as
|
|
9
|
-
export { default as
|
|
10
|
-
|
|
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
|
+
export { default as RealTimeCollaborativeEditing } from './realtimecollaborativeediting';
|
|
6
|
+
export { default as RealTimeCollaborativeTrackChanges } from './realtimecollaborativetrackchanges';
|
|
7
|
+
export { default as RealTimeCollaborativeComments } from './realtimecollaborativecomments';
|
|
8
|
+
export { default as RealTimeCollaborativeRevisionHistory } from './realtimecollaborativerevisionhistory';
|
|
9
|
+
export { default as CloudServicesCommentsAdapter } from './realtimecollaborativecomments/cloudservicescommentsadapter';
|
|
10
|
+
export { default as CloudServicesTrackChangesAdapter } from './realtimecollaborativetrackchanges/cloudservicestrackchangesadapter';
|
|
11
|
+
export { default as CloudServicesRevisionHistoryAdapter } from './realtimecollaborativerevisionhistory/cloudservicesrevisionhistoryadapter';
|
|
12
|
+
export { default as RealTimeCollaborationClient } from './realtimecollaborativeediting/realtimecollaborationclient';
|
|
13
|
+
export { default as PresenceList } from './presencelist';
|
|
14
|
+
import './augmentation';
|
package/src/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c)
|
|
2
|
+
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export{default as RealTimeCollaborativeEditing}from'./realtimecollaborativeediting
|
|
23
|
+
export{default as RealTimeCollaborativeEditing}from'./realtimecollaborativeediting';export{default as RealTimeCollaborativeTrackChanges}from'./realtimecollaborativetrackchanges';export{default as RealTimeCollaborativeComments}from'./realtimecollaborativecomments';export{default as RealTimeCollaborativeRevisionHistory}from'./realtimecollaborativerevisionhistory';export{default as CloudServicesCommentsAdapter}from'./realtimecollaborativecomments/cloudservicescommentsadapter';export{default as CloudServicesTrackChangesAdapter}from'./realtimecollaborativetrackchanges/cloudservicestrackchangesadapter';export{default as CloudServicesRevisionHistoryAdapter}from'./realtimecollaborativerevisionhistory/cloudservicesrevisionhistoryadapter';export{default as RealTimeCollaborationClient}from'./realtimecollaborativeediting/realtimecollaborationclient';export{default as PresenceList}from'./presencelist';import'./augmentation';
|
|
@@ -1,10 +1,14 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
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
|
+
import { ContextPlugin, type Context, type Editor } from 'ckeditor5/src/core';
|
|
6
|
+
import { Collection } from 'ckeditor5/src/utils';
|
|
7
|
+
import { BodyCollection, BalloonPanelView } from 'ckeditor5/src/ui';
|
|
8
|
+
import Sessions from '../realtimecollaborativeediting/sessions';
|
|
9
|
+
import PresenceListView from './view/presencelistview';
|
|
10
|
+
import PresenceDropdownListView from './view/presencedropdownlistview';
|
|
11
|
+
import type { User } from 'ckeditor5-collaboration/src/collaboration-core';
|
|
8
12
|
export default class PresenceListUI extends ContextPlugin {
|
|
9
13
|
usersCount: number;
|
|
10
14
|
lastConnectedUsers: Collection<User>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c)
|
|
2
|
+
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2887=['view','bindTo','length','using','requires','counterView','locale','attachToDom','bodyCollection','usersCount','onClick','_handleUserRemove','inlineListView','class','presencelist-collapseat-invalid-format','destroy','_allConnectedUsers','isVisible','appendChild','isCollapsed','_createView','listenTo','showDropdown','detachFromDom','reverse','hideDropdown','presenceDropdownView','presenceList.container','presencelist-missing-container','config','get','items','execute','isRendered','remove','balloonPanelView','from','render','presenceList','isHidden','define','init','bind','pin','context','presenceList.collapseAt','add','lastConnectedUsers','content','_handleUserAdd','element','ck\x20ck-presence-list__balloon'];(function(_0x1c0c9e,_0x2887d2){const _0x8d021b=function(_0x5e78d4){while(--_0x5e78d4){_0x1c0c9e['push'](_0x1c0c9e['shift']());}};_0x8d021b(++_0x2887d2);}(_0x2887,0xd9));const _0x8d02=function(_0x1c0c9e,_0x2887d2){_0x1c0c9e=_0x1c0c9e-0x0;let _0x8d021b=_0x2887[_0x1c0c9e];return _0x8d021b;};import{ContextPlugin as _0x20b26a}from'ckeditor5/src/core';import{CKEditorError as _0x1f7239,Collection as _0x1a2b21}from'ckeditor5/src/utils';import{clickOutsideHandler as _0xb070c8,BodyCollection as _0x247821,BalloonPanelView as _0x219c50}from'ckeditor5/src/ui';import{isElement as _0xa287bd}from'lodash-es';import _0x3feebe from'../realtimecollaborativeediting/sessions';import _0x9a983c from'./view/presencelistview';import _0x1688a1 from'./view/presencedropdownlistview';import _0x5c3869 from'./view/presencedropdownlistitemview';import _0x53952d from'./view/presenceinlinelistitemview';export default class i extends _0x20b26a{constructor(_0x3c06ee){super(_0x3c06ee),this[_0x8d02('0x23')][_0x8d02('0x14')][_0x8d02('0x1f')](_0x8d02('0x1d'),{'collapseAt':0x6});const _0x1bb4a6=_0x3c06ee[_0x8d02('0x14')][_0x8d02('0x15')](_0x8d02('0x24'));if('number'!=typeof _0x1bb4a6)throw new _0x1f7239(_0x8d02('0x5'),this);if(_0x1bb4a6<0x1)throw new _0x1f7239(_0x8d02('0x5'),this);this[_0x8d02('0x7')]=this['context']['plugins']['get'](_0x3feebe)['allConnectedUsers'],this['set']('usersCount',0x0),this[_0x8d02('0x26')]=new _0x1a2b21(),this[_0x8d02('0x1a')]=new _0x219c50(),this['balloonPanelView'][_0x8d02('0x4')]=_0x8d02('0x2a'),this['view']=this['_createView'](),this[_0x8d02('0x11')]=void 0x0;}static get[_0x8d02('0x2f')](){return[_0x3feebe];}[_0x8d02('0x20')](){for(const _0x4c0ba3 of this[_0x8d02('0x7')])this[_0x8d02('0x28')](_0x4c0ba3);this[_0x8d02('0xc')](this[_0x8d02('0x7')],_0x8d02('0x25'),(_0x5713b0,_0x3d81f9)=>{this['_handleUserAdd'](_0x3d81f9);}),this[_0x8d02('0xc')](this[_0x8d02('0x7')],_0x8d02('0x19'),(_0x2bc04d,_0xc48e9c)=>{this[_0x8d02('0x2')](_0xc48e9c);});}[_0x8d02('0xb')](){const _0x121f0e=this[_0x8d02('0x23')],_0x2c917b=new _0x9a983c(this[_0x8d02('0x23')]['locale']),_0x169178=this[_0x8d02('0x1a')];if(!_0xa287bd(_0x121f0e[_0x8d02('0x14')]['get'](_0x8d02('0x12'))))throw new _0x1f7239(_0x8d02('0x13'),this);return _0x2c917b['counterView'][_0x8d02('0x21')]('usersCount')['to'](this),_0x2c917b[_0x8d02('0x21')](_0x8d02('0xa'))['to'](this,_0x8d02('0x0'),_0x52698b=>{const _0x227fb6=_0x52698b>=_0x121f0e[_0x8d02('0x14')]['get'](_0x8d02('0x24'));return _0x2c917b[_0x8d02('0x30')][_0x8d02('0x1e')]=!(0x1==_0x52698b||_0x227fb6),_0x227fb6||this[_0x8d02('0x10')](),_0x227fb6;}),_0x2c917b[_0x8d02('0x3')][_0x8d02('0x16')][_0x8d02('0x2c')](this['lastConnectedUsers'])[_0x8d02('0x2e')](_0x1b0aad=>{const _0x528c15=_0x121f0e['config'][_0x8d02('0x15')](_0x8d02('0x1d')),_0x5736d3=new _0x53952d(_0x121f0e[_0x8d02('0x31')],_0x1b0aad,!!_0x528c15['onClick']);return _0x5736d3[_0x8d02('0x21')]('hasTooltip')['to'](_0x2c917b,'isCollapsed',_0x492d55=>!_0x492d55),_0x528c15[_0x8d02('0x1')]&&this[_0x8d02('0xc')](_0x5736d3,'execute',()=>{this[_0x8d02('0x2b')][_0x8d02('0xa')]||_0x528c15[_0x8d02('0x1')](_0x1b0aad,_0x5736d3['element']);}),_0x5736d3;}),this[_0x8d02('0xc')](_0x2c917b[_0x8d02('0x3')],_0x8d02('0x17'),()=>{this['presenceDropdownView']?this[_0x8d02('0x10')]():this[_0x8d02('0x2b')][_0x8d02('0xa')]&&this[_0x8d02('0xd')]();}),_0x2c917b[_0x8d02('0x1c')](),_0x169178[_0x8d02('0x1c')](),_0xb070c8({'emitter':_0x2c917b,'activator':()=>_0x169178[_0x8d02('0x8')],'contextElements':[_0x169178[_0x8d02('0x29')],_0x2c917b['inlineListView'][_0x8d02('0x29')]],'callback':()=>this[_0x8d02('0x10')]()}),_0x121f0e['config']['get']('presenceList.container')[_0x8d02('0x9')](_0x2c917b[_0x8d02('0x29')]),this[_0x8d02('0x33')]=new _0x247821(this[_0x8d02('0x23')][_0x8d02('0x31')]),this['bodyCollection'][_0x8d02('0x32')](),this[_0x8d02('0x33')]['add'](_0x169178),_0x2c917b;}[_0x8d02('0x28')](_0x22b025){this['usersCount']++,0x5==this['lastConnectedUsers'][_0x8d02('0x2d')]&&this[_0x8d02('0x26')][_0x8d02('0x19')](0x0),this[_0x8d02('0x26')][_0x8d02('0x25')](_0x22b025);}[_0x8d02('0x2')](_0x57cd8f){if(this[_0x8d02('0x0')]--,this[_0x8d02('0x26')][_0x8d02('0x15')](_0x57cd8f['id'])&&(this[_0x8d02('0x26')][_0x8d02('0x19')](_0x57cd8f['id']),this[_0x8d02('0x26')][_0x8d02('0x2d')]<this['usersCount']))for(const _0x2a553b of Array[_0x8d02('0x1b')](this[_0x8d02('0x7')])[_0x8d02('0xf')]())if(!this[_0x8d02('0x26')]['get'](_0x2a553b['id']))return void this['lastConnectedUsers'][_0x8d02('0x25')](_0x2a553b,0x0);}[_0x8d02('0xd')](){if(this['presenceDropdownView'])return;this['presenceDropdownView']=new _0x1688a1(this['context'][_0x8d02('0x31')]);const _0x545b09=this[_0x8d02('0x23')][_0x8d02('0x14')]['get'](_0x8d02('0x1d'));this[_0x8d02('0x11')][_0x8d02('0x16')][_0x8d02('0x2c')](this[_0x8d02('0x7')])[_0x8d02('0x2e')](_0xf443f8=>{const _0x4d1c95=new _0x5c3869(this[_0x8d02('0x23')][_0x8d02('0x31')],_0xf443f8,!!_0x545b09['onClick']);return _0x545b09['onClick']&&this[_0x8d02('0xc')](_0x4d1c95,'execute',()=>{_0x545b09[_0x8d02('0x1')](_0xf443f8,_0x4d1c95['element']);}),_0x4d1c95;}),this[_0x8d02('0x1a')][_0x8d02('0x27')][_0x8d02('0x25')](this[_0x8d02('0x11')]),this[_0x8d02('0x1a')][_0x8d02('0x22')]({'target':this[_0x8d02('0x2b')][_0x8d02('0x3')][_0x8d02('0x29')]});}[_0x8d02('0x10')](){this['presenceDropdownView']&&(this[_0x8d02('0x1a')]['unpin'](),this[_0x8d02('0x1a')][_0x8d02('0x27')][_0x8d02('0x19')](this[_0x8d02('0x11')]),this[_0x8d02('0x11')]['destroy'](),this[_0x8d02('0x11')]=void 0x0);}[_0x8d02('0x6')](){super[_0x8d02('0x6')](),this[_0x8d02('0x2b')]&&this[_0x8d02('0x2b')][_0x8d02('0x18')]&&this['view'][_0x8d02('0x6')](),this[_0x8d02('0x33')]&&this[_0x8d02('0x33')][_0x8d02('0xe')]();}}
|
|
@@ -1,5 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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
|
+
import { View } from 'ckeditor5/src/ui';
|
|
6
|
+
import type { Locale } from 'ckeditor5/src/utils';
|
|
3
7
|
export default class PresenceCounterView extends View {
|
|
4
8
|
usersCount: number;
|
|
5
9
|
isHidden: boolean;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c)
|
|
2
|
+
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4431=['ck-presence-list__counter','ck-presence-list__counter--hidden','isHidden','setTemplate','usersCount','CONNECTED_USERS','set'];(function(_0x429b20,_0x443189){const _0x4856b3=function(_0x256b13){while(--_0x256b13){_0x429b20['push'](_0x429b20['shift']());}};_0x4856b3(++_0x443189);}(_0x4431,0x17c));const _0x4856=function(_0x429b20,_0x443189){_0x429b20=_0x429b20-0x0;let _0x4856b3=_0x4431[_0x429b20];return _0x4856b3;};import{View as _0x3ad382}from'ckeditor5/src/ui';import{getTranslation as _0x4e689e}from'../../common-translations';export default class ct extends _0x3ad382{constructor(_0x4111a2){super(_0x4111a2);const _0x5df415=this['bindTemplate'];this['set'](_0x4856('0x2'),0x0),this[_0x4856('0x4')](_0x4856('0x0'),!0x0),this[_0x4856('0x1')]({'tag':'div','attributes':{'class':['ck',_0x4856('0x5'),_0x5df415['if'](_0x4856('0x0'),_0x4856('0x6'))]},'children':[{'text':_0x5df415['to'](_0x4856('0x2'),_0x2b2e07=>_0x4e689e(_0x4111a2,_0x4856('0x3'),_0x2b2e07))}]});}}
|
|
@@ -1,6 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
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
|
+
import { View } from 'ckeditor5/src/ui';
|
|
6
|
+
import type { Locale } from 'ckeditor5/src/utils';
|
|
7
|
+
import { UserView, type User } from 'ckeditor5-collaboration/src/collaboration-core';
|
|
4
8
|
export default class PresenceDropdownListItemView extends View {
|
|
5
9
|
userView: UserView;
|
|
6
10
|
constructor(locale: Locale, user: User, isButton: boolean);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c)
|
|
2
|
+
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2f94=['fire','div','true','setTemplate','name','userView','bindTemplate','span','tag','getBackgroundColorClass','color','button','ck-presence-list__dropdown-list-item'];(function(_0x23f6a5,_0x2f9431){const _0x59dd32=function(_0x97caca){while(--_0x97caca){_0x23f6a5['push'](_0x23f6a5['shift']());}};_0x59dd32(++_0x2f9431);}(_0x2f94,0xfb));const _0x59dd=function(_0x23f6a5,_0x2f9431){_0x23f6a5=_0x23f6a5-0x0;let _0x59dd32=_0x2f94[_0x23f6a5];return _0x59dd32;};import{View as _0x5e9909}from'ckeditor5/src/ui';import{UserView as _0x285333}from'ckeditor5-collaboration/src/collaboration-core';export default class C extends _0x5e9909{constructor(_0x4b0428,_0x5e05b1,_0x182b5d){super(_0x4b0428);const _0x4aea2b=this[_0x59dd('0x2')];this[_0x59dd('0x1')]=new _0x285333(_0x4b0428,_0x5e05b1);const _0x4ddf42={'tag':_0x59dd('0xa'),'attributes':{'class':['ck',_0x59dd('0x8')]},'children':[this['userView'],{'tag':_0x59dd('0x3'),'attributes':{'class':['ck','ck-user__full-name']},'children':[{'text':_0x5e05b1[_0x59dd('0x0')]}]},{'tag':_0x59dd('0x3'),'attributes':{'class':['ck','ck-presence-list__marker',_0x5e05b1[_0x59dd('0x6')][_0x59dd('0x5')]()],'aria-hidden':_0x59dd('0xb')}}]};_0x182b5d&&(_0x4ddf42[_0x59dd('0x4')]=_0x59dd('0x7'),_0x4ddf42['on']={'click':_0x4aea2b['to'](()=>this[_0x59dd('0x9')]('execute'))}),this[_0x59dd('0xc')](_0x4ddf42);}}
|
|
@@ -1,5 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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
|
+
import { View, type ViewCollection } from 'ckeditor5/src/ui';
|
|
6
|
+
import type { Locale } from 'ckeditor5/src/utils';
|
|
3
7
|
export default class PresenceDropdownListView extends View {
|
|
4
8
|
items: ViewCollection;
|
|
5
9
|
constructor(locale: Locale);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c)
|
|
2
|
+
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x34ca=['ck-presence-list__dropdown-list-wrapper','items','div','setTemplate','ck-presence-list__dropdown-list','createCollection'];(function(_0x392daf,_0x34ca2c){var _0x27a316=function(_0x3fb4c5){while(--_0x3fb4c5){_0x392daf['push'](_0x392daf['shift']());}};_0x27a316(++_0x34ca2c);}(_0x34ca,0x154));var _0x27a3=function(_0x392daf,_0x34ca2c){_0x392daf=_0x392daf-0x0;var _0x27a316=_0x34ca[_0x392daf];return _0x27a316;};import{View as _0x417b45}from'ckeditor5/src/ui';export default class A extends _0x417b45{constructor(_0x100720){super(_0x100720),this[_0x27a3('0x3')]=this[_0x27a3('0x1')](),this[_0x27a3('0x5')]({'tag':_0x27a3('0x4'),'attributes':{'class':['ck',_0x27a3('0x0')]},'children':[{'tag':_0x27a3('0x4'),'attributes':{'class':['ck',_0x27a3('0x2')]},'children':this[_0x27a3('0x3')]}]});}}
|
|
@@ -1,6 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
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
|
+
import { View } from 'ckeditor5/src/ui';
|
|
6
|
+
import type { Locale } from 'ckeditor5/src/utils';
|
|
7
|
+
import { UserView, type User } from 'ckeditor5-collaboration/src/collaboration-core';
|
|
4
8
|
export default class PresenceInlineListItemView extends View {
|
|
5
9
|
hasTooltip: boolean;
|
|
6
10
|
tooltipPosition: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c)
|
|
2
|
+
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1e85=['true','span','tooltipPosition','ck-presence-list__list-item','markerView','execute','bindTemplate','userView','ck-presence-list__marker','tag','setTemplate','getBackgroundColorClass','fire','color'];(function(_0x4d089e,_0x1e8528){const _0x16ba86=function(_0x1f557f){while(--_0x1f557f){_0x4d089e['push'](_0x4d089e['shift']());}};_0x16ba86(++_0x1e8528);}(_0x1e85,0x1a7));const _0x16ba=function(_0x4d089e,_0x1e8528){_0x4d089e=_0x4d089e-0x0;let _0x16ba86=_0x1e85[_0x4d089e];return _0x16ba86;};import{View as _0x442906}from'ckeditor5/src/ui';import{UserView as _0x13a65a}from'ckeditor5-collaboration/src/collaboration-core';export default class _ extends _0x442906{constructor(_0x3050f2,_0xe6467d,_0x3c3586){super(_0x3050f2);const _0x38f9bb=this[_0x16ba('0x3')];this['set']('hasTooltip',!0x0),this['set'](_0x16ba('0xd'),''),this[_0x16ba('0x4')]=new _0x13a65a(_0x3050f2,_0xe6467d),this[_0x16ba('0x1')]=new ot(_0x3050f2,_0xe6467d);const _0xb97302={'tag':'div','attributes':{'class':['ck',_0x16ba('0x0')],'data-cke-tooltip-text':this[_0x16ba('0x4')]['name'],'data-cke-tooltip-position':_0x38f9bb['to'](_0x16ba('0xd')),'data-cke-tooltip-disabled':_0x38f9bb['to']('hasTooltip',_0x5334a6=>!_0x5334a6),'data-cke-tooltip-class':'ck-presence-list__list-item__tooltip'},'children':[this[_0x16ba('0x4')],this[_0x16ba('0x1')]]};_0x3c3586&&(_0xb97302[_0x16ba('0x6')]='button',_0xb97302['on']={'click':_0x38f9bb['to'](()=>this[_0x16ba('0x9')](_0x16ba('0x2')))}),this[_0x16ba('0x7')](_0xb97302);}}class ot extends _0x442906{constructor(_0x4f29f8,_0x269e22){super(_0x4f29f8),this[_0x16ba('0x7')]({'tag':_0x16ba('0xc'),'attributes':{'class':['ck',_0x16ba('0x5'),_0x269e22[_0x16ba('0xa')][_0x16ba('0x8')]()],'aria-hidden':_0x16ba('0xb')}});}}
|
|
@@ -1,6 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
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
|
+
import { View, type ViewCollection } from 'ckeditor5/src/ui';
|
|
6
|
+
import type { Locale } from 'ckeditor5/src/utils';
|
|
7
|
+
import type PresenceInlineListItemView from './presenceinlinelistitemview';
|
|
4
8
|
export default class PresenceInlineListView extends View {
|
|
5
9
|
items: ViewCollection<PresenceInlineListItemView>;
|
|
6
10
|
constructor(locale: Locale);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c)
|
|
2
|
+
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2ec0=['setTemplate','createCollection','execute','fire','items'];(function(_0x57b955,_0x2ec05f){const _0x539b98=function(_0x30a668){while(--_0x30a668){_0x57b955['push'](_0x57b955['shift']());}};_0x539b98(++_0x2ec05f);}(_0x2ec0,0x1d4));const _0x539b=function(_0x57b955,_0x2ec05f){_0x57b955=_0x57b955-0x0;let _0x539b98=_0x2ec0[_0x57b955];return _0x539b98;};import{View as _0x11ad50}from'ckeditor5/src/ui';export default class ht extends _0x11ad50{constructor(_0x19f06e){super(_0x19f06e),this['items']=this[_0x539b('0x3')]();const _0x28a54f=this['bindTemplate'];this[_0x539b('0x2')]({'tag':'div','attributes':{'class':['ck','ck-presence-list__list']},'children':this[_0x539b('0x1')],'on':{'click':_0x28a54f['to'](()=>this[_0x539b('0x0')](_0x539b('0x4')))}});}}
|
|
@@ -1,7 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
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
|
+
import { View } from 'ckeditor5/src/ui';
|
|
6
|
+
import type { Locale } from 'ckeditor5/src/utils';
|
|
7
|
+
import PresenceCounterView from './presencecounterview';
|
|
8
|
+
import PresenceInlineListView from './presenceinlinelistview';
|
|
5
9
|
import '../../../theme/presencelist.css';
|
|
6
10
|
export default class PresenceListView extends View {
|
|
7
11
|
isCollapsed: boolean;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c)
|
|
2
|
+
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xafca=['change','inlineListView','ck-reset','div','ck-rounded-corners','counterView','items','listenTo','ck-presence-list','tooltipPosition','first','isCollapsed','bindTemplate','ck-presence-list--collapsed'];(function(_0x571c84,_0xafcaf3){const _0x10dfcd=function(_0x5bc3c0){while(--_0x5bc3c0){_0x571c84['push'](_0x571c84['shift']());}};_0x10dfcd(++_0xafcaf3);}(_0xafca,0x1d2));const _0x10df=function(_0x571c84,_0xafcaf3){_0x571c84=_0x571c84-0x0;let _0x10dfcd=_0xafca[_0x571c84];return _0x10dfcd;};import{View as _0x22757f}from'ckeditor5/src/ui';import _0x45dad0 from'./presencecounterview';import _0x492d9b from'./presenceinlinelistview';import'../../../theme/presencelist.css';export default class x extends _0x22757f{constructor(_0x3c47ed){super(_0x3c47ed);const _0x559500=this[_0x10df('0x8')];this['set'](_0x10df('0x7'),!0x0),this['counterView']=new _0x45dad0(this['locale']),this['inlineListView']=new _0x492d9b(_0x3c47ed),this[_0x10df('0x3')](this[_0x10df('0xb')][_0x10df('0x2')],_0x10df('0xa'),()=>{for(const _0x3e3547 of this[_0x10df('0xb')][_0x10df('0x2')])_0x3e3547[_0x10df('0x5')]='s';this['inlineListView']['items']['first']&&(this['inlineListView'][_0x10df('0x2')][_0x10df('0x6')]['tooltipPosition']='se');}),this['setTemplate']({'tag':_0x10df('0xd'),'attributes':{'class':['ck',_0x10df('0x4'),_0x10df('0xc'),_0x10df('0x0'),_0x559500['if'](_0x10df('0x7'),_0x10df('0x9'))]},'children':[this[_0x10df('0x1')],this[_0x10df('0xb')]]});}}
|
package/src/presencelist.d.ts
CHANGED
|
@@ -1,10 +1,14 @@
|
|
|
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
|
/**
|
|
2
6
|
* @module real-time-collaboration/presencelist
|
|
3
7
|
* @publicApi
|
|
4
8
|
*/
|
|
5
|
-
import { ContextPlugin } from 'ckeditor5/src/core
|
|
6
|
-
import Sessions from './realtimecollaborativeediting/sessions
|
|
7
|
-
import PresenceListUI from './presencelist/presencelistui
|
|
9
|
+
import { ContextPlugin } from 'ckeditor5/src/core';
|
|
10
|
+
import Sessions from './realtimecollaborativeediting/sessions';
|
|
11
|
+
import PresenceListUI from './presencelist/presencelistui';
|
|
8
12
|
/**
|
|
9
13
|
* The `PresenceList` plugin provides a UI which displays all {@link module:collaboration-core/users~Users users} that are
|
|
10
14
|
* currently connected to the edited document. The users are displayed as a row of avatars.
|
package/src/presencelist.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c)
|
|
2
|
+
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x2c87=['requires','pluginName','PresenceList'];(function(_0x31c2aa,_0x2c8727){var _0x3211ca=function(_0x5b6f3a){while(--_0x5b6f3a){_0x31c2aa['push'](_0x31c2aa['shift']());}};_0x3211ca(++_0x2c8727);}(_0x2c87,0x135));var _0x3211=function(_0x31c2aa,_0x2c8727){_0x31c2aa=_0x31c2aa-0x0;var _0x3211ca=_0x2c87[_0x31c2aa];return _0x3211ca;};import{ContextPlugin as _0x4bdd0b}from'ckeditor5/src/core';import _0x43142a from'./realtimecollaborativeediting/sessions';import _0x42038b from'./presencelist/presencelistui';export default class s extends _0x4bdd0b{static get[_0x3211('0x0')](){return[_0x43142a,_0x42038b];}static get[_0x3211('0x1')](){return _0x3211('0x2');}}
|
|
@@ -1,12 +1,16 @@
|
|
|
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
|
/**
|
|
2
6
|
* @module real-time-collaboration/realtimecollaborativecomments/cloudservicescommentsadapter
|
|
3
7
|
* @publicApi
|
|
4
8
|
*/
|
|
5
|
-
import { Context, ContextPlugin, type Editor } from 'ckeditor5/src/core
|
|
6
|
-
import { Users } from 'ckeditor5-collaboration';
|
|
7
|
-
import { CommentsService } from '@ckeditor/ckeditor-cloud-services-collaboration/src/services
|
|
8
|
-
import WebSocketGateway, { type ReconnectContextPlugin } from '../realtimecollaborativeediting/websocketgateway
|
|
9
|
-
import Sessions from '../realtimecollaborativeediting/sessions
|
|
9
|
+
import { Context, ContextPlugin, type Editor } from 'ckeditor5/src/core';
|
|
10
|
+
import { Users } from 'ckeditor5-collaboration/src/collaboration-core';
|
|
11
|
+
import { CommentsService } from '@ckeditor/ckeditor-cloud-services-collaboration/src/services';
|
|
12
|
+
import WebSocketGateway, { type ReconnectContextPlugin } from '../realtimecollaborativeediting/websocketgateway';
|
|
13
|
+
import Sessions from '../realtimecollaborativeediting/sessions';
|
|
10
14
|
/**
|
|
11
15
|
* The Cloud Services Comments Adapter plugin.
|
|
12
16
|
*
|