@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.
Files changed (49) hide show
  1. package/README.md +0 -1
  2. package/build/real-time-collaboration.js +1 -1
  3. package/package.json +7 -8
  4. package/src/augmentation.d.ts +7 -3
  5. package/src/augmentation.js +1 -1
  6. package/src/common-translations.d.ts +5 -1
  7. package/src/common-translations.js +2 -2
  8. package/src/config.d.ts +5 -1
  9. package/src/config.js +1 -1
  10. package/src/index.d.ts +14 -10
  11. package/src/index.js +2 -2
  12. package/src/presencelist/presencelistui.d.ts +11 -7
  13. package/src/presencelist/presencelistui.js +2 -2
  14. package/src/presencelist/view/presencecounterview.d.ts +6 -2
  15. package/src/presencelist/view/presencecounterview.js +2 -2
  16. package/src/presencelist/view/presencedropdownlistitemview.d.ts +7 -3
  17. package/src/presencelist/view/presencedropdownlistitemview.js +2 -2
  18. package/src/presencelist/view/presencedropdownlistview.d.ts +6 -2
  19. package/src/presencelist/view/presencedropdownlistview.js +2 -2
  20. package/src/presencelist/view/presenceinlinelistitemview.d.ts +7 -3
  21. package/src/presencelist/view/presenceinlinelistitemview.js +2 -2
  22. package/src/presencelist/view/presenceinlinelistview.d.ts +7 -3
  23. package/src/presencelist/view/presenceinlinelistview.js +2 -2
  24. package/src/presencelist/view/presencelistview.d.ts +8 -4
  25. package/src/presencelist/view/presencelistview.js +2 -2
  26. package/src/presencelist.d.ts +7 -3
  27. package/src/presencelist.js +2 -2
  28. package/src/realtimecollaborativecomments/cloudservicescommentsadapter.d.ts +9 -5
  29. package/src/realtimecollaborativecomments/cloudservicescommentsadapter.js +2 -2
  30. package/src/realtimecollaborativecomments.d.ts +8 -4
  31. package/src/realtimecollaborativecomments.js +2 -2
  32. package/src/realtimecollaborativeediting/realtimecollaborationclient.d.ts +21 -7
  33. package/src/realtimecollaborativeediting/realtimecollaborationclient.js +2 -2
  34. package/src/realtimecollaborativeediting/sessions.d.ts +9 -5
  35. package/src/realtimecollaborativeediting/sessions.js +2 -2
  36. package/src/realtimecollaborativeediting/usermarkers.d.ts +6 -2
  37. package/src/realtimecollaborativeediting/usermarkers.js +2 -2
  38. package/src/realtimecollaborativeediting/websocketgateway.d.ts +7 -3
  39. package/src/realtimecollaborativeediting/websocketgateway.js +2 -2
  40. package/src/realtimecollaborativeediting.d.ts +6 -2
  41. package/src/realtimecollaborativeediting.js +2 -2
  42. package/src/realtimecollaborativerevisionhistory/cloudservicesrevisionhistoryadapter.d.ts +10 -6
  43. package/src/realtimecollaborativerevisionhistory/cloudservicesrevisionhistoryadapter.js +2 -2
  44. package/src/realtimecollaborativerevisionhistory.d.ts +7 -3
  45. package/src/realtimecollaborativerevisionhistory.js +2 -2
  46. package/src/realtimecollaborativetrackchanges/cloudservicestrackchangesadapter.d.ts +8 -4
  47. package/src/realtimecollaborativetrackchanges/cloudservicestrackchangesadapter.js +2 -2
  48. package/src/realtimecollaborativetrackchanges.d.ts +7 -3
  49. 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": "38.2.0-alpha.1",
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": "38.2.0-alpha.1",
44
- "@ckeditor/ckeditor-cloud-services-collaboration": "50.1.0-alpha.0",
45
- "@ckeditor/ckeditor5-operations-compressor": "38.2.0-alpha.1",
46
- "ckeditor5": "38.2.0-alpha.1",
47
- "ckeditor5-collaboration": "38.2.0-alpha.1",
48
- "lodash-es": "^4.17.11"
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",
@@ -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.js';
3
- import type { RealTimeCollaborationClient } from './index.js';
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
  }
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -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.js';
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) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
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(_0x44ebb7,_0x235b90,_0x58fd4a){const t=_0x44ebb7['t'];switch(_0x235b90){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'},_0x58fd4a);default:return'';}}
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
- import type { User } from 'ckeditor5-collaboration';
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
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
package/src/index.d.ts CHANGED
@@ -1,10 +1,14 @@
1
- export { default as RealTimeCollaborativeEditing } from './realtimecollaborativeediting.js';
2
- export { default as RealTimeCollaborativeTrackChanges } from './realtimecollaborativetrackchanges.js';
3
- export { default as RealTimeCollaborativeComments } from './realtimecollaborativecomments.js';
4
- export { default as RealTimeCollaborativeRevisionHistory } from './realtimecollaborativerevisionhistory.js';
5
- export { default as CloudServicesCommentsAdapter } from './realtimecollaborativecomments/cloudservicescommentsadapter.js';
6
- export { default as CloudServicesTrackChangesAdapter } from './realtimecollaborativetrackchanges/cloudservicestrackchangesadapter.js';
7
- export { default as CloudServicesRevisionHistoryAdapter } from './realtimecollaborativerevisionhistory/cloudservicesrevisionhistoryadapter.js';
8
- export { default as RealTimeCollaborationClient } from './realtimecollaborativeediting/realtimecollaborationclient.js';
9
- export { default as PresenceList } from './presencelist.js';
10
- import './augmentation.js';
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) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
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.js';export{default as RealTimeCollaborativeTrackChanges}from'./realtimecollaborativetrackchanges.js';export{default as RealTimeCollaborativeComments}from'./realtimecollaborativecomments.js';export{default as RealTimeCollaborativeRevisionHistory}from'./realtimecollaborativerevisionhistory.js';export{default as CloudServicesCommentsAdapter}from'./realtimecollaborativecomments/cloudservicescommentsadapter.js';export{default as CloudServicesTrackChangesAdapter}from'./realtimecollaborativetrackchanges/cloudservicestrackchangesadapter.js';export{default as CloudServicesRevisionHistoryAdapter}from'./realtimecollaborativerevisionhistory/cloudservicesrevisionhistoryadapter.js';export{default as RealTimeCollaborationClient}from'./realtimecollaborativeediting/realtimecollaborationclient.js';export{default as PresenceList}from'./presencelist.js';import'./augmentation.js';
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
- import { ContextPlugin, type Context, type Editor } from 'ckeditor5/src/core.js';
2
- import { Collection } from 'ckeditor5/src/utils.js';
3
- import { BodyCollection, BalloonPanelView } from 'ckeditor5/src/ui.js';
4
- import Sessions from '../realtimecollaborativeediting/sessions.js';
5
- import PresenceListView from './view/presencelistview.js';
6
- import PresenceDropdownListView from './view/presencedropdownlistview.js';
7
- import type { User } from 'ckeditor5-collaboration';
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) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
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 _0x17d0=['onClick','isRendered','remove','reverse','showDropdown','bind','inlineListView','usersCount','bodyCollection','detachFromDom','isCollapsed','bindTo','presencelist-collapseat-invalid-format','context','locale','plugins','allConnectedUsers','presencelist-missing-container','_allConnectedUsers','appendChild','items','get','pin','_createView','_handleUserRemove','presenceDropdownView','element','presenceList.collapseAt','listenTo','hideDropdown','execute','attachToDom','add','balloonPanelView','render','requires','content','using','config','view','number','presenceList.container','length','_handleUserAdd','isVisible','set','lastConnectedUsers','define','destroy'];(function(_0x25c763,_0x17d030){const _0x11d65e=function(_0x2c0c62){while(--_0x2c0c62){_0x25c763['push'](_0x25c763['shift']());}};_0x11d65e(++_0x17d030);}(_0x17d0,0x102));const _0x11d6=function(_0x25c763,_0x17d030){_0x25c763=_0x25c763-0x0;let _0x11d65e=_0x17d0[_0x25c763];return _0x11d65e;};import{ContextPlugin as _0x2f8e2b}from'ckeditor5/src/core.js';import{CKEditorError as _0x3f8533,Collection as _0x5991f2}from'ckeditor5/src/utils.js';import{clickOutsideHandler as _0x460a41,BodyCollection as _0x247b54,BalloonPanelView as _0x245594}from'ckeditor5/src/ui.js';import{isElement as _0x3d8b4d}from'lodash-es';import _0xabf03 from'../realtimecollaborativeediting/sessions.js';import _0x53749d from'./view/presencelistview.js';import _0x477481 from'./view/presencedropdownlistview.js';import _0x23225f from'./view/presencedropdownlistitemview.js';import _0x58e09e from'./view/presenceinlinelistitemview.js';export default class s extends _0x2f8e2b{constructor(_0x5f5100){super(_0x5f5100),this[_0x11d6('0x0')][_0x11d6('0x19')][_0x11d6('0x22')]('presenceList',{'collapseAt':0x6});const _0x2458d2=_0x5f5100['config'][_0x11d6('0x8')](_0x11d6('0xe'));if(_0x11d6('0x1b')!=typeof _0x2458d2)throw new _0x3f8533('presencelist-collapseat-invalid-format',this);if(_0x2458d2<0x1)throw new _0x3f8533(_0x11d6('0x30'),this);this['_allConnectedUsers']=this[_0x11d6('0x0')][_0x11d6('0x2')]['get'](_0xabf03)[_0x11d6('0x3')],this[_0x11d6('0x20')](_0x11d6('0x2b'),0x0),this[_0x11d6('0x21')]=new _0x5991f2(),this[_0x11d6('0x14')]=new _0x245594(),this[_0x11d6('0x14')]['class']='ck\x20ck-presence-list__balloon',this[_0x11d6('0x1a')]=this['_createView'](),this[_0x11d6('0xc')]=void 0x0;}static get[_0x11d6('0x16')](){return[_0xabf03];}['init'](){for(const _0x3b1851 of this[_0x11d6('0x5')])this[_0x11d6('0x1e')](_0x3b1851);this[_0x11d6('0xf')](this[_0x11d6('0x5')],_0x11d6('0x13'),(_0x30c997,_0x267d14)=>{this[_0x11d6('0x1e')](_0x267d14);}),this[_0x11d6('0xf')](this['_allConnectedUsers'],_0x11d6('0x26'),(_0x48c1fc,_0x212b01)=>{this[_0x11d6('0xb')](_0x212b01);});}[_0x11d6('0xa')](){const _0x31789f=this['context'],_0x635995=new _0x53749d(this[_0x11d6('0x0')]['locale']),_0x207322=this[_0x11d6('0x14')];if(!_0x3d8b4d(_0x31789f[_0x11d6('0x19')][_0x11d6('0x8')](_0x11d6('0x1c'))))throw new _0x3f8533(_0x11d6('0x4'),this);return _0x635995['counterView']['bind'](_0x11d6('0x2b'))['to'](this),_0x635995['bind'](_0x11d6('0x2e'))['to'](this,_0x11d6('0x2b'),_0x3ca09e=>{const _0x20cd1a=_0x3ca09e>=_0x31789f[_0x11d6('0x19')][_0x11d6('0x8')](_0x11d6('0xe'));return _0x635995['counterView']['isHidden']=!(0x1==_0x3ca09e||_0x20cd1a),_0x20cd1a||this[_0x11d6('0x10')](),_0x20cd1a;}),_0x635995['inlineListView'][_0x11d6('0x7')]['bindTo'](this['lastConnectedUsers'])[_0x11d6('0x18')](_0x5a03ca=>{const _0x37a2f2=_0x31789f['config'][_0x11d6('0x8')]('presenceList'),_0x12cca8=new _0x58e09e(_0x31789f['locale'],_0x5a03ca,!!_0x37a2f2[_0x11d6('0x24')]);return _0x12cca8[_0x11d6('0x29')]('hasTooltip')['to'](_0x635995,_0x11d6('0x2e'),_0x4aa2a1=>!_0x4aa2a1),_0x37a2f2[_0x11d6('0x24')]&&this[_0x11d6('0xf')](_0x12cca8,'execute',()=>{this[_0x11d6('0x1a')][_0x11d6('0x2e')]||_0x37a2f2[_0x11d6('0x24')](_0x5a03ca,_0x12cca8['element']);}),_0x12cca8;}),this[_0x11d6('0xf')](_0x635995['inlineListView'],_0x11d6('0x11'),()=>{this['presenceDropdownView']?this['hideDropdown']():this[_0x11d6('0x1a')][_0x11d6('0x2e')]&&this[_0x11d6('0x28')]();}),_0x635995[_0x11d6('0x15')](),_0x207322[_0x11d6('0x15')](),_0x460a41({'emitter':_0x635995,'activator':()=>_0x207322[_0x11d6('0x1f')],'contextElements':[_0x207322[_0x11d6('0xd')],_0x635995['inlineListView'][_0x11d6('0xd')]],'callback':()=>this[_0x11d6('0x10')]()}),_0x31789f['config'][_0x11d6('0x8')]('presenceList.container')[_0x11d6('0x6')](_0x635995[_0x11d6('0xd')]),this['bodyCollection']=new _0x247b54(this[_0x11d6('0x0')]['locale']),this['bodyCollection'][_0x11d6('0x12')](),this['bodyCollection'][_0x11d6('0x13')](_0x207322),_0x635995;}[_0x11d6('0x1e')](_0x15a530){this[_0x11d6('0x2b')]++,0x5==this['lastConnectedUsers']['length']&&this['lastConnectedUsers']['remove'](0x0),this['lastConnectedUsers'][_0x11d6('0x13')](_0x15a530);}[_0x11d6('0xb')](_0x4b5c17){if(this[_0x11d6('0x2b')]--,this[_0x11d6('0x21')][_0x11d6('0x8')](_0x4b5c17['id'])&&(this[_0x11d6('0x21')][_0x11d6('0x26')](_0x4b5c17['id']),this['lastConnectedUsers'][_0x11d6('0x1d')]<this[_0x11d6('0x2b')]))for(const _0x380e8e of Array['from'](this['_allConnectedUsers'])[_0x11d6('0x27')]())if(!this['lastConnectedUsers'][_0x11d6('0x8')](_0x380e8e['id']))return void this[_0x11d6('0x21')][_0x11d6('0x13')](_0x380e8e,0x0);}['showDropdown'](){if(this[_0x11d6('0xc')])return;this[_0x11d6('0xc')]=new _0x477481(this[_0x11d6('0x0')]['locale']);const _0x2bc970=this[_0x11d6('0x0')][_0x11d6('0x19')][_0x11d6('0x8')]('presenceList');this['presenceDropdownView'][_0x11d6('0x7')][_0x11d6('0x2f')](this[_0x11d6('0x5')])[_0x11d6('0x18')](_0x3f44fb=>{const _0x446c77=new _0x23225f(this[_0x11d6('0x0')][_0x11d6('0x1')],_0x3f44fb,!!_0x2bc970[_0x11d6('0x24')]);return _0x2bc970[_0x11d6('0x24')]&&this[_0x11d6('0xf')](_0x446c77,_0x11d6('0x11'),()=>{_0x2bc970[_0x11d6('0x24')](_0x3f44fb,_0x446c77[_0x11d6('0xd')]);}),_0x446c77;}),this[_0x11d6('0x14')]['content'][_0x11d6('0x13')](this['presenceDropdownView']),this[_0x11d6('0x14')][_0x11d6('0x9')]({'target':this[_0x11d6('0x1a')][_0x11d6('0x2a')][_0x11d6('0xd')]});}[_0x11d6('0x10')](){this[_0x11d6('0xc')]&&(this[_0x11d6('0x14')]['unpin'](),this[_0x11d6('0x14')][_0x11d6('0x17')][_0x11d6('0x26')](this[_0x11d6('0xc')]),this[_0x11d6('0xc')][_0x11d6('0x23')](),this['presenceDropdownView']=void 0x0);}[_0x11d6('0x23')](){super['destroy'](),this[_0x11d6('0x1a')]&&this['view'][_0x11d6('0x25')]&&this[_0x11d6('0x1a')][_0x11d6('0x23')](),this['bodyCollection']&&this[_0x11d6('0x2c')][_0x11d6('0x2d')]();}}
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
- import { View } from 'ckeditor5/src/ui.js';
2
- import type { Locale } from 'ckeditor5/src/utils.js';
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) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
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 _0x5449=['ck-presence-list__counter--hidden','isHidden','setTemplate','set','usersCount','div','ck-presence-list__counter'];(function(_0xec88b2,_0x544930){const _0x1a28c6=function(_0x108441){while(--_0x108441){_0xec88b2['push'](_0xec88b2['shift']());}};_0x1a28c6(++_0x544930);}(_0x5449,0xa2));const _0x1a28=function(_0xec88b2,_0x544930){_0xec88b2=_0xec88b2-0x0;let _0x1a28c6=_0x5449[_0xec88b2];return _0x1a28c6;};import{View as _0x4570cd}from'ckeditor5/src/ui.js';import{getTranslation as _0xd18fa7}from'../../common-translations.js';export default class ts extends _0x4570cd{constructor(_0x38b08){super(_0x38b08);const _0x4bd2d6=this['bindTemplate'];this[_0x1a28('0x2')](_0x1a28('0x3'),0x0),this['set']('isHidden',!0x0),this[_0x1a28('0x1')]({'tag':_0x1a28('0x4'),'attributes':{'class':['ck',_0x1a28('0x5'),_0x4bd2d6['if'](_0x1a28('0x0'),_0x1a28('0x6'))]},'children':[{'text':_0x4bd2d6['to'](_0x1a28('0x3'),_0x5f0a5d=>_0xd18fa7(_0x38b08,'CONNECTED_USERS',_0x5f0a5d))}]});}}
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
- import { View } from 'ckeditor5/src/ui.js';
2
- import type { Locale } from 'ckeditor5/src/utils.js';
3
- import { UserView, type User } from 'ckeditor5-collaboration';
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) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
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 _0x5189=['ck-user__full-name','bindTemplate','getBackgroundColorClass','setTemplate','execute','name','div','span','fire','button','true','tag','color','userView','ck-presence-list__marker'];(function(_0x43b514,_0x51894f){const _0x1606f0=function(_0x40be0b){while(--_0x40be0b){_0x43b514['push'](_0x43b514['shift']());}};_0x1606f0(++_0x51894f);}(_0x5189,0x180));const _0x1606=function(_0x43b514,_0x51894f){_0x43b514=_0x43b514-0x0;let _0x1606f0=_0x5189[_0x43b514];return _0x1606f0;};import{View as _0x499339}from'ckeditor5/src/ui.js';import{UserView as _0x4a6e27}from'ckeditor5-collaboration';export default class A extends _0x499339{constructor(_0x5f36d2,_0x343523,_0x558fdb){super(_0x5f36d2);const _0x389ec5=this[_0x1606('0x7')];this[_0x1606('0x4')]=new _0x4a6e27(_0x5f36d2,_0x343523);const _0x3cff21={'tag':_0x1606('0xc'),'attributes':{'class':['ck','ck-presence-list__dropdown-list-item']},'children':[this[_0x1606('0x4')],{'tag':_0x1606('0xd'),'attributes':{'class':['ck',_0x1606('0x6')]},'children':[{'text':_0x343523[_0x1606('0xb')]}]},{'tag':_0x1606('0xd'),'attributes':{'class':['ck',_0x1606('0x5'),_0x343523[_0x1606('0x3')][_0x1606('0x8')]()],'aria-hidden':_0x1606('0x1')}}]};_0x558fdb&&(_0x3cff21[_0x1606('0x2')]=_0x1606('0x0'),_0x3cff21['on']={'click':_0x389ec5['to'](()=>this[_0x1606('0xe')](_0x1606('0xa')))}),this[_0x1606('0x9')](_0x3cff21);}}
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
- import { View, type ViewCollection } from 'ckeditor5/src/ui.js';
2
- import type { Locale } from 'ckeditor5/src/utils.js';
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) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
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 _0x3521=['setTemplate','ck-presence-list__dropdown-list-wrapper','items','createCollection','div'];(function(_0xd20a97,_0x35217e){var _0x39d3cd=function(_0x365d84){while(--_0x365d84){_0xd20a97['push'](_0xd20a97['shift']());}};_0x39d3cd(++_0x35217e);}(_0x3521,0x9b));var _0x39d3=function(_0xd20a97,_0x35217e){_0xd20a97=_0xd20a97-0x0;var _0x39d3cd=_0x3521[_0xd20a97];return _0x39d3cd;};import{View as _0x10ccf0}from'ckeditor5/src/ui.js';export default class x extends _0x10ccf0{constructor(_0x5a7e0a){super(_0x5a7e0a),this['items']=this[_0x39d3('0x3')](),this[_0x39d3('0x0')]({'tag':_0x39d3('0x4'),'attributes':{'class':['ck','ck-presence-list__dropdown-list']},'children':[{'tag':_0x39d3('0x4'),'attributes':{'class':['ck',_0x39d3('0x1')]},'children':this[_0x39d3('0x2')]}]});}}
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
- import { View } from 'ckeditor5/src/ui.js';
2
- import type { Locale } from 'ckeditor5/src/utils.js';
3
- import { UserView, type User } from 'ckeditor5-collaboration';
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) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
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 _0xeda1=['ck-presence-list__list-item__tooltip','execute','div','ck-presence-list__list-item','userView','button','tag','color','hasTooltip','setTemplate','name','fire','getBackgroundColorClass','true','tooltipPosition','span','bindTemplate'];(function(_0x4da66e,_0xeda112){const _0x54c32a=function(_0x3b63e1){while(--_0x3b63e1){_0x4da66e['push'](_0x4da66e['shift']());}};_0x54c32a(++_0xeda112);}(_0xeda1,0x1aa));const _0x54c3=function(_0x4da66e,_0xeda112){_0x4da66e=_0x4da66e-0x0;let _0x54c32a=_0xeda1[_0x4da66e];return _0x54c32a;};import{View as _0x5971eb}from'ckeditor5/src/ui.js';import{UserView as _0x54d591}from'ckeditor5-collaboration';export default class C extends _0x5971eb{constructor(_0x27bdc4,_0x4957d2,_0x2d4d8a){super(_0x27bdc4);const _0x5df8b5=this[_0x54c3('0xf')];this['set'](_0x54c3('0x7'),!0x0),this['set'](_0x54c3('0xd'),''),this[_0x54c3('0x3')]=new _0x54d591(_0x27bdc4,_0x4957d2),this['markerView']=new ot(_0x27bdc4,_0x4957d2);const _0x538554={'tag':_0x54c3('0x1'),'attributes':{'class':['ck',_0x54c3('0x2')],'data-cke-tooltip-text':this['userView'][_0x54c3('0x9')],'data-cke-tooltip-position':_0x5df8b5['to'](_0x54c3('0xd')),'data-cke-tooltip-disabled':_0x5df8b5['to'](_0x54c3('0x7'),_0x10a945=>!_0x10a945),'data-cke-tooltip-class':_0x54c3('0x10')},'children':[this['userView'],this['markerView']]};_0x2d4d8a&&(_0x538554[_0x54c3('0x5')]=_0x54c3('0x4'),_0x538554['on']={'click':_0x5df8b5['to'](()=>this[_0x54c3('0xa')](_0x54c3('0x0')))}),this[_0x54c3('0x8')](_0x538554);}}class ot extends _0x5971eb{constructor(_0x3559a8,_0x301173){super(_0x3559a8),this[_0x54c3('0x8')]({'tag':_0x54c3('0xe'),'attributes':{'class':['ck','ck-presence-list__marker',_0x301173[_0x54c3('0x6')][_0x54c3('0xb')]()],'aria-hidden':_0x54c3('0xc')}});}}
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
- import { View, type ViewCollection } from 'ckeditor5/src/ui.js';
2
- import type { Locale } from 'ckeditor5/src/utils.js';
3
- import type PresenceInlineListItemView from './presenceinlinelistitemview.js';
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) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
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 _0x270f=['fire','setTemplate','items','execute','bindTemplate','ck-presence-list__list','div'];(function(_0x2e9303,_0x270fb6){const _0x128e7a=function(_0x339184){while(--_0x339184){_0x2e9303['push'](_0x2e9303['shift']());}};_0x128e7a(++_0x270fb6);}(_0x270f,0x127));const _0x128e=function(_0x2e9303,_0x270fb6){_0x2e9303=_0x2e9303-0x0;let _0x128e7a=_0x270f[_0x2e9303];return _0x128e7a;};import{View as _0x6c4bd0}from'ckeditor5/src/ui.js';export default class rt extends _0x6c4bd0{constructor(_0x45636e){super(_0x45636e),this[_0x128e('0x1')]=this['createCollection']();const _0x36a4b9=this[_0x128e('0x3')];this[_0x128e('0x0')]({'tag':_0x128e('0x5'),'attributes':{'class':['ck',_0x128e('0x4')]},'children':this['items'],'on':{'click':_0x36a4b9['to'](()=>this[_0x128e('0x6')](_0x128e('0x2')))}});}}
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
- import { View } from 'ckeditor5/src/ui.js';
2
- import type { Locale } from 'ckeditor5/src/utils.js';
3
- import PresenceCounterView from './presencecounterview.js';
4
- import PresenceInlineListView from './presenceinlinelistview.js';
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) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
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 _0x2c06=['first','bindTemplate','ck-reset','items','counterView','isCollapsed','tooltipPosition','setTemplate','change','ck-presence-list','ck-presence-list--collapsed','inlineListView'];(function(_0x25750a,_0x2c06f7){const _0x534c82=function(_0x5a3bb1){while(--_0x5a3bb1){_0x25750a['push'](_0x25750a['shift']());}};_0x534c82(++_0x2c06f7);}(_0x2c06,0x101));const _0x534c=function(_0x25750a,_0x2c06f7){_0x25750a=_0x25750a-0x0;let _0x534c82=_0x2c06[_0x25750a];return _0x534c82;};import{View as _0x546083}from'ckeditor5/src/ui.js';import _0x5abc9e from'./presencecounterview.js';import _0x16aeef from'./presenceinlinelistview.js';import'../../../theme/presencelist.css';export default class k extends _0x546083{constructor(_0x4dd3b1){super(_0x4dd3b1);const _0x3bcdc7=this[_0x534c('0x8')];this['set'](_0x534c('0x0'),!0x0),this['counterView']=new _0x5abc9e(this['locale']),this['inlineListView']=new _0x16aeef(_0x4dd3b1),this['listenTo'](this[_0x534c('0x6')][_0x534c('0xa')],_0x534c('0x3'),()=>{for(const _0x11c2eb of this[_0x534c('0x6')][_0x534c('0xa')])_0x11c2eb[_0x534c('0x1')]='s';this[_0x534c('0x6')][_0x534c('0xa')][_0x534c('0x7')]&&(this[_0x534c('0x6')][_0x534c('0xa')][_0x534c('0x7')][_0x534c('0x1')]='se');}),this[_0x534c('0x2')]({'tag':'div','attributes':{'class':['ck',_0x534c('0x4'),_0x534c('0x9'),'ck-rounded-corners',_0x3bcdc7['if'](_0x534c('0x0'),_0x534c('0x5'))]},'children':[this[_0x534c('0xb')],this['inlineListView']]});}}
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')]]});}}
@@ -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.js';
6
- import Sessions from './realtimecollaborativeediting/sessions.js';
7
- import PresenceListUI from './presencelist/presencelistui.js';
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.
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
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 _0x5db1=['requires','pluginName'];(function(_0x4a916f,_0x5db147){var _0x4f02c8=function(_0x1a61e4){while(--_0x1a61e4){_0x4a916f['push'](_0x4a916f['shift']());}};_0x4f02c8(++_0x5db147);}(_0x5db1,0x19d));var _0x4f02=function(_0x4a916f,_0x5db147){_0x4a916f=_0x4a916f-0x0;var _0x4f02c8=_0x5db1[_0x4a916f];return _0x4f02c8;};import{ContextPlugin as _0x5164a8}from'ckeditor5/src/core.js';import _0x9c1602 from'./realtimecollaborativeediting/sessions.js';import _0x52d675 from'./presencelist/presencelistui.js';export default class i extends _0x5164a8{static get[_0x4f02('0x1')](){return[_0x9c1602,_0x52d675];}static get[_0x4f02('0x0')](){return'PresenceList';}}
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.js';
6
- import { Users } from 'ckeditor5-collaboration';
7
- import { CommentsService } from '@ckeditor/ckeditor-cloud-services-collaboration/src/services.js';
8
- import WebSocketGateway, { type ReconnectContextPlugin } from '../realtimecollaborativeediting/websocketgateway.js';
9
- import Sessions from '../realtimecollaborativeediting/sessions.js';
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
  *