@ckeditor/ckeditor5-real-time-collaboration 38.2.0-alpha.1 → 39.0.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/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.1",
|
|
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.1",
|
|
43
|
+
"@ckeditor/ckeditor-cloud-services-collaboration": "51.1.0",
|
|
44
|
+
"@ckeditor/ckeditor5-operations-compressor": "39.0.1",
|
|
45
|
+
"ckeditor5": "39.0.1",
|
|
46
|
+
"ckeditor5-collaboration": "39.0.1",
|
|
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(_0x4892f5,_0x593885,_0x50b6b7){const t=_0x4892f5['t'];switch(_0x593885){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'},_0x50b6b7);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 _0x6d3e=['requires','showDropdown','number','isCollapsed','using','add','destroy','unpin','reverse','_allConnectedUsers','isRendered','_handleUserRemove','usersCount','items','attachToDom','_handleUserAdd','isHidden','hasTooltip','remove','element','ck\x20ck-presence-list__balloon','bind','onClick','hideDropdown','get','presenceList.collapseAt','execute','init','bindTo','set','plugins','bodyCollection','from','_createView','presencelist-collapseat-invalid-format','inlineListView','context','appendChild','view','presenceList','length','config','presenceDropdownView','lastConnectedUsers','class','listenTo','balloonPanelView','detachFromDom','counterView','render','locale','presencelist-missing-container'];(function(_0x56635a,_0x6d3e01){const _0x4b41a2=function(_0x12dbd5){while(--_0x12dbd5){_0x56635a['push'](_0x56635a['shift']());}};_0x4b41a2(++_0x6d3e01);}(_0x6d3e,0x7a));const _0x4b41=function(_0x56635a,_0x6d3e01){_0x56635a=_0x56635a-0x0;let _0x4b41a2=_0x6d3e[_0x56635a];return _0x4b41a2;};import{ContextPlugin as _0x502358}from'ckeditor5/src/core';import{CKEditorError as _0x3a3749,Collection as _0x21862f}from'ckeditor5/src/utils';import{clickOutsideHandler as _0x12d22b,BodyCollection as _0x214e88,BalloonPanelView as _0x3f62de}from'ckeditor5/src/ui';import{isElement as _0x16061a}from'lodash-es';import _0x192bac from'../realtimecollaborativeediting/sessions';import _0x2b0d36 from'./view/presencelistview';import _0x4fbb1e from'./view/presencedropdownlistview';import _0x54ce0a from'./view/presencedropdownlistitemview';import _0x4f0a80 from'./view/presenceinlinelistitemview';export default class i extends _0x502358{constructor(_0xaee54b){super(_0xaee54b),this[_0x4b41('0x12')][_0x4b41('0x17')]['define'](_0x4b41('0x15'),{'collapseAt':0x6});const _0x59df6e=_0xaee54b[_0x4b41('0x17')]['get'](_0x4b41('0x7'));if(_0x4b41('0x24')!=typeof _0x59df6e)throw new _0x3a3749(_0x4b41('0x10'),this);if(_0x59df6e<0x1)throw new _0x3a3749(_0x4b41('0x10'),this);this[_0x4b41('0x2b')]=this[_0x4b41('0x12')][_0x4b41('0xc')]['get'](_0x192bac)['allConnectedUsers'],this[_0x4b41('0xb')](_0x4b41('0x2e'),0x0),this['lastConnectedUsers']=new _0x21862f(),this[_0x4b41('0x1c')]=new _0x3f62de(),this[_0x4b41('0x1c')][_0x4b41('0x1a')]=_0x4b41('0x2'),this[_0x4b41('0x14')]=this['_createView'](),this[_0x4b41('0x18')]=void 0x0;}static get[_0x4b41('0x22')](){return[_0x192bac];}[_0x4b41('0x9')](){for(const _0x320272 of this['_allConnectedUsers'])this[_0x4b41('0x31')](_0x320272);this[_0x4b41('0x1b')](this[_0x4b41('0x2b')],_0x4b41('0x27'),(_0x33182a,_0x593086)=>{this[_0x4b41('0x31')](_0x593086);}),this['listenTo'](this[_0x4b41('0x2b')],'remove',(_0x40ed6f,_0x16156a)=>{this[_0x4b41('0x2d')](_0x16156a);});}[_0x4b41('0xf')](){const _0x58e42a=this['context'],_0x271e59=new _0x2b0d36(this[_0x4b41('0x12')][_0x4b41('0x20')]),_0x2122b2=this[_0x4b41('0x1c')];if(!_0x16061a(_0x58e42a[_0x4b41('0x17')][_0x4b41('0x6')]('presenceList.container')))throw new _0x3a3749(_0x4b41('0x21'),this);return _0x271e59[_0x4b41('0x1e')][_0x4b41('0x3')](_0x4b41('0x2e'))['to'](this),_0x271e59['bind'](_0x4b41('0x25'))['to'](this,_0x4b41('0x2e'),_0x304842=>{const _0x26d4ae=_0x304842>=_0x58e42a[_0x4b41('0x17')][_0x4b41('0x6')](_0x4b41('0x7'));return _0x271e59[_0x4b41('0x1e')][_0x4b41('0x32')]=!(0x1==_0x304842||_0x26d4ae),_0x26d4ae||this['hideDropdown'](),_0x26d4ae;}),_0x271e59[_0x4b41('0x11')][_0x4b41('0x2f')][_0x4b41('0xa')](this[_0x4b41('0x19')])[_0x4b41('0x26')](_0x3e5e9f=>{const _0x28dab0=_0x58e42a[_0x4b41('0x17')]['get']('presenceList'),_0x2cc0c7=new _0x4f0a80(_0x58e42a[_0x4b41('0x20')],_0x3e5e9f,!!_0x28dab0[_0x4b41('0x4')]);return _0x2cc0c7[_0x4b41('0x3')](_0x4b41('0x33'))['to'](_0x271e59,_0x4b41('0x25'),_0x14e3b0=>!_0x14e3b0),_0x28dab0['onClick']&&this[_0x4b41('0x1b')](_0x2cc0c7,_0x4b41('0x8'),()=>{this[_0x4b41('0x14')][_0x4b41('0x25')]||_0x28dab0[_0x4b41('0x4')](_0x3e5e9f,_0x2cc0c7['element']);}),_0x2cc0c7;}),this[_0x4b41('0x1b')](_0x271e59[_0x4b41('0x11')],'execute',()=>{this[_0x4b41('0x18')]?this[_0x4b41('0x5')]():this[_0x4b41('0x14')][_0x4b41('0x25')]&&this[_0x4b41('0x23')]();}),_0x271e59[_0x4b41('0x1f')](),_0x2122b2[_0x4b41('0x1f')](),_0x12d22b({'emitter':_0x271e59,'activator':()=>_0x2122b2['isVisible'],'contextElements':[_0x2122b2[_0x4b41('0x1')],_0x271e59['inlineListView'][_0x4b41('0x1')]],'callback':()=>this[_0x4b41('0x5')]()}),_0x58e42a[_0x4b41('0x17')][_0x4b41('0x6')]('presenceList.container')[_0x4b41('0x13')](_0x271e59[_0x4b41('0x1')]),this[_0x4b41('0xd')]=new _0x214e88(this[_0x4b41('0x12')]['locale']),this[_0x4b41('0xd')][_0x4b41('0x30')](),this['bodyCollection'][_0x4b41('0x27')](_0x2122b2),_0x271e59;}[_0x4b41('0x31')](_0x241fd3){this[_0x4b41('0x2e')]++,0x5==this[_0x4b41('0x19')]['length']&&this[_0x4b41('0x19')]['remove'](0x0),this[_0x4b41('0x19')][_0x4b41('0x27')](_0x241fd3);}['_handleUserRemove'](_0x431438){if(this[_0x4b41('0x2e')]--,this[_0x4b41('0x19')][_0x4b41('0x6')](_0x431438['id'])&&(this[_0x4b41('0x19')][_0x4b41('0x0')](_0x431438['id']),this['lastConnectedUsers'][_0x4b41('0x16')]<this[_0x4b41('0x2e')]))for(const _0x5e69ea of Array[_0x4b41('0xe')](this[_0x4b41('0x2b')])[_0x4b41('0x2a')]())if(!this[_0x4b41('0x19')][_0x4b41('0x6')](_0x5e69ea['id']))return void this[_0x4b41('0x19')][_0x4b41('0x27')](_0x5e69ea,0x0);}['showDropdown'](){if(this[_0x4b41('0x18')])return;this[_0x4b41('0x18')]=new _0x4fbb1e(this['context'][_0x4b41('0x20')]);const _0x56d009=this[_0x4b41('0x12')][_0x4b41('0x17')]['get'](_0x4b41('0x15'));this[_0x4b41('0x18')]['items'][_0x4b41('0xa')](this['_allConnectedUsers'])[_0x4b41('0x26')](_0xaa8b6b=>{const _0x4c33af=new _0x54ce0a(this['context'][_0x4b41('0x20')],_0xaa8b6b,!!_0x56d009[_0x4b41('0x4')]);return _0x56d009[_0x4b41('0x4')]&&this['listenTo'](_0x4c33af,_0x4b41('0x8'),()=>{_0x56d009[_0x4b41('0x4')](_0xaa8b6b,_0x4c33af[_0x4b41('0x1')]);}),_0x4c33af;}),this[_0x4b41('0x1c')]['content']['add'](this[_0x4b41('0x18')]),this[_0x4b41('0x1c')]['pin']({'target':this[_0x4b41('0x14')][_0x4b41('0x11')][_0x4b41('0x1')]});}[_0x4b41('0x5')](){this[_0x4b41('0x18')]&&(this[_0x4b41('0x1c')][_0x4b41('0x29')](),this[_0x4b41('0x1c')]['content'][_0x4b41('0x0')](this[_0x4b41('0x18')]),this[_0x4b41('0x18')][_0x4b41('0x28')](),this[_0x4b41('0x18')]=void 0x0);}[_0x4b41('0x28')](){super[_0x4b41('0x28')](),this[_0x4b41('0x14')]&&this['view'][_0x4b41('0x2c')]&&this[_0x4b41('0x14')]['destroy'](),this[_0x4b41('0xd')]&&this[_0x4b41('0xd')][_0x4b41('0x1d')]();}}
|
|
@@ -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 _0x4f59=['isHidden','ck-presence-list__counter','set','setTemplate','bindTemplate','div','usersCount'];(function(_0x1e8b12,_0x4f595d){const _0x203f81=function(_0x5bb053){while(--_0x5bb053){_0x1e8b12['push'](_0x1e8b12['shift']());}};_0x203f81(++_0x4f595d);}(_0x4f59,0xe4));const _0x203f=function(_0x1e8b12,_0x4f595d){_0x1e8b12=_0x1e8b12-0x0;let _0x203f81=_0x4f59[_0x1e8b12];return _0x203f81;};import{View as _0x26d65d}from'ckeditor5/src/ui';import{getTranslation as _0x5b86c7}from'../../common-translations';export default class ct extends _0x26d65d{constructor(_0x591476){super(_0x591476);const _0x50c6cc=this[_0x203f('0x0')];this[_0x203f('0x5')](_0x203f('0x2'),0x0),this['set'](_0x203f('0x3'),!0x0),this[_0x203f('0x6')]({'tag':_0x203f('0x1'),'attributes':{'class':['ck',_0x203f('0x4'),_0x50c6cc['if'](_0x203f('0x3'),'ck-presence-list__counter--hidden')]},'children':[{'text':_0x50c6cc['to']('usersCount',_0x1b300e=>_0x5b86c7(_0x591476,'CONNECTED_USERS',_0x1b300e))}]});}}
|
|
@@ -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 _0x4055=['ck-presence-list__marker','getBackgroundColorClass','span','fire','tag','name','div','execute','button','setTemplate','userView','bindTemplate','ck-user__full-name','ck-presence-list__dropdown-list-item'];(function(_0x1219c2,_0x405500){const _0x1af893=function(_0x568caa){while(--_0x568caa){_0x1219c2['push'](_0x1219c2['shift']());}};_0x1af893(++_0x405500);}(_0x4055,0xb0));const _0x1af8=function(_0x1219c2,_0x405500){_0x1219c2=_0x1219c2-0x0;let _0x1af893=_0x4055[_0x1219c2];return _0x1af893;};import{View as _0x5d6cc6}from'ckeditor5/src/ui';import{UserView as _0x49bbbf}from'ckeditor5-collaboration/src/collaboration-core';export default class C extends _0x5d6cc6{constructor(_0x316769,_0x2b2102,_0x2f2c8c){super(_0x316769);const _0x24864d=this[_0x1af8('0x3')];this['userView']=new _0x49bbbf(_0x316769,_0x2b2102);const _0x1a4f8b={'tag':_0x1af8('0xc'),'attributes':{'class':['ck',_0x1af8('0x5')]},'children':[this[_0x1af8('0x2')],{'tag':_0x1af8('0x8'),'attributes':{'class':['ck',_0x1af8('0x4')]},'children':[{'text':_0x2b2102[_0x1af8('0xb')]}]},{'tag':_0x1af8('0x8'),'attributes':{'class':['ck',_0x1af8('0x6'),_0x2b2102['color'][_0x1af8('0x7')]()],'aria-hidden':'true'}}]};_0x2f2c8c&&(_0x1a4f8b[_0x1af8('0xa')]=_0x1af8('0x0'),_0x1a4f8b['on']={'click':_0x24864d['to'](()=>this[_0x1af8('0x9')](_0x1af8('0xd')))}),this[_0x1af8('0x1')](_0x1a4f8b);}}
|
|
@@ -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 _0x37cd=['items','ck-presence-list__dropdown-list-wrapper','setTemplate'];(function(_0x4402d8,_0x37cd70){var _0x5c989a=function(_0x424bc0){while(--_0x424bc0){_0x4402d8['push'](_0x4402d8['shift']());}};_0x5c989a(++_0x37cd70);}(_0x37cd,0x181));var _0x5c98=function(_0x4402d8,_0x37cd70){_0x4402d8=_0x4402d8-0x0;var _0x5c989a=_0x37cd[_0x4402d8];return _0x5c989a;};import{View as _0x2f8d28}from'ckeditor5/src/ui';export default class A extends _0x2f8d28{constructor(_0x584cbe){super(_0x584cbe),this['items']=this['createCollection'](),this[_0x5c98('0x1')]({'tag':'div','attributes':{'class':['ck','ck-presence-list__dropdown-list']},'children':[{'tag':'div','attributes':{'class':['ck',_0x5c98('0x0')]},'children':this[_0x5c98('0x2')]}]});}}
|
|
@@ -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 _0x5c2c=['ck-presence-list__list-item','markerView','userView','fire','ck-presence-list__marker','bindTemplate','execute','true','tag','set','button','setTemplate','hasTooltip','span','tooltipPosition','getBackgroundColorClass','name'];(function(_0x422107,_0x5c2c53){const _0xeab556=function(_0x24f93c){while(--_0x24f93c){_0x422107['push'](_0x422107['shift']());}};_0xeab556(++_0x5c2c53);}(_0x5c2c,0x17a));const _0xeab5=function(_0x422107,_0x5c2c53){_0x422107=_0x422107-0x0;let _0xeab556=_0x5c2c[_0x422107];return _0xeab556;};import{View as _0x505481}from'ckeditor5/src/ui';import{UserView as _0x3ccb52}from'ckeditor5-collaboration/src/collaboration-core';export default class _ extends _0x505481{constructor(_0x4dbb17,_0x3b404a,_0x5a0f0c){super(_0x4dbb17);const _0x1c5fef=this[_0xeab5('0x1')];this[_0xeab5('0x5')](_0xeab5('0x8'),!0x0),this[_0xeab5('0x5')](_0xeab5('0xa'),''),this[_0xeab5('0xf')]=new _0x3ccb52(_0x4dbb17,_0x3b404a),this[_0xeab5('0xe')]=new ot(_0x4dbb17,_0x3b404a);const _0x21be56={'tag':'div','attributes':{'class':['ck',_0xeab5('0xd')],'data-cke-tooltip-text':this['userView'][_0xeab5('0xc')],'data-cke-tooltip-position':_0x1c5fef['to'](_0xeab5('0xa')),'data-cke-tooltip-disabled':_0x1c5fef['to'](_0xeab5('0x8'),_0x2cf13f=>!_0x2cf13f),'data-cke-tooltip-class':'ck-presence-list__list-item__tooltip'},'children':[this[_0xeab5('0xf')],this[_0xeab5('0xe')]]};_0x5a0f0c&&(_0x21be56[_0xeab5('0x4')]=_0xeab5('0x6'),_0x21be56['on']={'click':_0x1c5fef['to'](()=>this[_0xeab5('0x10')](_0xeab5('0x2')))}),this[_0xeab5('0x7')](_0x21be56);}}class ot extends _0x505481{constructor(_0x3540cb,_0x4c7390){super(_0x3540cb),this[_0xeab5('0x7')]({'tag':_0xeab5('0x9'),'attributes':{'class':['ck',_0xeab5('0x0'),_0x4c7390['color'][_0xeab5('0xb')]()],'aria-hidden':_0xeab5('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, 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 _0x4557=['items','setTemplate','bindTemplate','createCollection','div','ck-presence-list__list'];(function(_0x427f8f,_0x455783){const _0x13e544=function(_0xb2e32){while(--_0xb2e32){_0x427f8f['push'](_0x427f8f['shift']());}};_0x13e544(++_0x455783);}(_0x4557,0x17b));const _0x13e5=function(_0x427f8f,_0x455783){_0x427f8f=_0x427f8f-0x0;let _0x13e544=_0x4557[_0x427f8f];return _0x13e544;};import{View as _0x504459}from'ckeditor5/src/ui';export default class ht extends _0x504459{constructor(_0xffda01){super(_0xffda01),this[_0x13e5('0x5')]=this[_0x13e5('0x2')]();const _0x1fb033=this[_0x13e5('0x1')];this[_0x13e5('0x0')]({'tag':_0x13e5('0x3'),'attributes':{'class':['ck',_0x13e5('0x4')]},'children':this[_0x13e5('0x5')],'on':{'click':_0x1fb033['to'](()=>this['fire']('execute'))}});}}
|
|
@@ -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 _0xcdd2=['listenTo','isCollapsed','locale','tooltipPosition','setTemplate','items','inlineListView','ck-presence-list','div','first','counterView','change','bindTemplate','ck-presence-list--collapsed','ck-rounded-corners'];(function(_0x5eb781,_0xcdd2a7){const _0x4dad3d=function(_0x4ba892){while(--_0x4ba892){_0x5eb781['push'](_0x5eb781['shift']());}};_0x4dad3d(++_0xcdd2a7);}(_0xcdd2,0x1f2));const _0x4dad=function(_0x5eb781,_0xcdd2a7){_0x5eb781=_0x5eb781-0x0;let _0x4dad3d=_0xcdd2[_0x5eb781];return _0x4dad3d;};import{View as _0x38c813}from'ckeditor5/src/ui';import _0x425a9c from'./presencecounterview';import _0x428155 from'./presenceinlinelistview';import'../../../theme/presencelist.css';export default class x extends _0x38c813{constructor(_0x3efe9d){super(_0x3efe9d);const _0x5c93e9=this[_0x4dad('0x9')];this['set'](_0x4dad('0xd'),!0x0),this[_0x4dad('0x7')]=new _0x425a9c(this[_0x4dad('0xe')]),this[_0x4dad('0x3')]=new _0x428155(_0x3efe9d),this[_0x4dad('0xc')](this[_0x4dad('0x3')]['items'],_0x4dad('0x8'),()=>{for(const _0x372d51 of this[_0x4dad('0x3')][_0x4dad('0x2')])_0x372d51['tooltipPosition']='s';this['inlineListView']['items'][_0x4dad('0x6')]&&(this[_0x4dad('0x3')]['items']['first'][_0x4dad('0x0')]='se');}),this[_0x4dad('0x1')]({'tag':_0x4dad('0x5'),'attributes':{'class':['ck',_0x4dad('0x4'),'ck-reset',_0x4dad('0xb'),_0x5c93e9['if'](_0x4dad('0xd'),_0x4dad('0xa'))]},'children':[this[_0x4dad('0x7')],this[_0x4dad('0x3')]]});}}
|
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 _0x1994=['pluginName','PresenceList','requires'];(function(_0x2e112b,_0x1994fa){var _0xf9ecd9=function(_0x5449ed){while(--_0x5449ed){_0x2e112b['push'](_0x2e112b['shift']());}};_0xf9ecd9(++_0x1994fa);}(_0x1994,0x125));var _0xf9ec=function(_0x2e112b,_0x1994fa){_0x2e112b=_0x2e112b-0x0;var _0xf9ecd9=_0x1994[_0x2e112b];return _0xf9ecd9;};import{ContextPlugin as _0x44c7df}from'ckeditor5/src/core';import _0x12eaf6 from'./realtimecollaborativeediting/sessions';import _0x58f964 from'./presencelist/presencelistui';export default class s extends _0x44c7df{static get[_0xf9ec('0x0')](){return[_0x12eaf6,_0x58f964];}static get[_0xf9ec('0x1')](){return _0xf9ec('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
|
*
|