@ckeditor/ckeditor5-real-time-collaboration 38.1.1 → 38.2.0-alpha.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.
Files changed (46) hide show
  1. package/build/real-time-collaboration.js +1 -1
  2. package/package.json +7 -6
  3. package/src/augmentation.d.ts +61 -61
  4. package/src/common-translations.d.ts +5 -5
  5. package/src/common-translations.js +1 -1
  6. package/src/config.d.ts +33 -33
  7. package/src/index.d.ts +10 -10
  8. package/src/index.js +1 -1
  9. package/src/presencelist/presencelistui.d.ts +39 -39
  10. package/src/presencelist/presencelistui.js +1 -1
  11. package/src/presencelist/view/presencecounterview.d.ts +7 -7
  12. package/src/presencelist/view/presencecounterview.js +1 -1
  13. package/src/presencelist/view/presencedropdownlistitemview.d.ts +7 -7
  14. package/src/presencelist/view/presencedropdownlistitemview.js +1 -1
  15. package/src/presencelist/view/presencedropdownlistview.d.ts +6 -6
  16. package/src/presencelist/view/presencedropdownlistview.js +1 -1
  17. package/src/presencelist/view/presenceinlinelistitemview.d.ts +14 -14
  18. package/src/presencelist/view/presenceinlinelistitemview.js +1 -1
  19. package/src/presencelist/view/presenceinlinelistview.d.ts +7 -7
  20. package/src/presencelist/view/presenceinlinelistview.js +1 -1
  21. package/src/presencelist/view/presencelistview.d.ts +11 -11
  22. package/src/presencelist/view/presencelistview.js +1 -1
  23. package/src/presencelist.d.ts +24 -24
  24. package/src/presencelist.js +1 -1
  25. package/src/realtimecollaborativecomments/cloudservicescommentsadapter.d.ts +44 -44
  26. package/src/realtimecollaborativecomments/cloudservicescommentsadapter.js +1 -1
  27. package/src/realtimecollaborativecomments.d.ts +32 -32
  28. package/src/realtimecollaborativecomments.js +1 -1
  29. package/src/realtimecollaborativeediting/realtimecollaborationclient.d.ts +123 -123
  30. package/src/realtimecollaborativeediting/realtimecollaborationclient.js +1 -1
  31. package/src/realtimecollaborativeediting/sessions.d.ts +114 -114
  32. package/src/realtimecollaborativeediting/sessions.js +1 -1
  33. package/src/realtimecollaborativeediting/usermarkers.d.ts +32 -32
  34. package/src/realtimecollaborativeediting/usermarkers.js +1 -1
  35. package/src/realtimecollaborativeediting/websocketgateway.d.ts +51 -51
  36. package/src/realtimecollaborativeediting/websocketgateway.js +1 -1
  37. package/src/realtimecollaborativeediting.d.ts +22 -22
  38. package/src/realtimecollaborativeediting.js +1 -1
  39. package/src/realtimecollaborativerevisionhistory/cloudservicesrevisionhistoryadapter.d.ts +41 -41
  40. package/src/realtimecollaborativerevisionhistory/cloudservicesrevisionhistoryadapter.js +1 -1
  41. package/src/realtimecollaborativerevisionhistory.d.ts +25 -25
  42. package/src/realtimecollaborativerevisionhistory.js +1 -1
  43. package/src/realtimecollaborativetrackchanges/cloudservicestrackchangesadapter.d.ts +35 -35
  44. package/src/realtimecollaborativetrackchanges/cloudservicestrackchangesadapter.js +1 -1
  45. package/src/realtimecollaborativetrackchanges.d.ts +23 -23
  46. package/src/realtimecollaborativetrackchanges.js +1 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-real-time-collaboration",
3
- "version": "38.1.1",
3
+ "version": "38.2.0-alpha.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,6 +29,7 @@
29
29
  "framework"
30
30
  ],
31
31
  "main": "src/index.js",
32
+ "type": "module",
32
33
  "files": [
33
34
  "build",
34
35
  "lang",
@@ -39,11 +40,11 @@
39
40
  "CHANGELOG.md"
40
41
  ],
41
42
  "dependencies": {
42
- "@ckeditor/ckeditor5-cloud-services": "38.1.1",
43
- "@ckeditor/ckeditor-cloud-services-collaboration": "50.0.0",
44
- "@ckeditor/ckeditor5-operations-compressor": "38.1.1",
45
- "ckeditor5": "38.1.1",
46
- "ckeditor5-collaboration": "38.1.1",
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",
47
48
  "lodash-es": "^4.17.11"
48
49
  },
49
50
  "engines": {
@@ -1,61 +1,61 @@
1
- import '@ckeditor/ckeditor5-cloud-services';
2
- import type { PresenceListConfig } from './config';
3
- import type { RealTimeCollaborationClient } from './index';
4
- declare module '@ckeditor/ckeditor5-core' {
5
- interface EditorConfig {
6
- presenceList?: PresenceListConfig;
7
- }
8
- interface PluginsMap {
9
- [RealTimeCollaborationClient.pluginName]: RealTimeCollaborationClient;
10
- }
11
- }
12
- declare module '@ckeditor/ckeditor5-cloud-services' {
13
- interface CloudServicesConfig {
14
- /**
15
- * The timeout (in seconds) for the connection. Defaults to 10.
16
- *
17
- * If the connection will not be established after the specified number of second passes, the editor will throw an error.
18
- *
19
- * Raise this value if you are experiencing connection timeout problems.
20
- *
21
- * ```ts
22
- * ClassicEditor
23
- * .create( {
24
- * cloudServices: {
25
- * connectionTimeout: 20,
26
- * // ...
27
- * }
28
- * } )
29
- * .then( ... )
30
- * .catch( ... );
31
- * ```
32
- */
33
- connectionTimeout?: number;
34
- /**
35
- * The timeout (in seconds) for each request send to the Cloud Services. Defaults to 20.
36
- *
37
- * If the request is not finished after the specified number of second passes, the editor will throw an error.
38
- *
39
- * Raise this value if you expect that your requests will be big
40
- * (e.g. mostly concerns the document data and the initial request).
41
- *
42
- * ```ts
43
- * ClassicEditor
44
- * .create( {
45
- * cloudServices: {
46
- * requestTimeout: 40,
47
- * // ...
48
- * }
49
- * } )
50
- * .then( ... )
51
- * .catch( ... );
52
- * ```
53
- */
54
- requestTimeout?: number;
55
- }
56
- }
57
- declare module 'ckeditor5-collaboration/src/collaboration-core' {
58
- interface User {
59
- orderNumber?: number;
60
- }
61
- }
1
+ import '@ckeditor/ckeditor5-cloud-services';
2
+ import type { PresenceListConfig } from './config.js';
3
+ import type { RealTimeCollaborationClient } from './index.js';
4
+ declare module '@ckeditor/ckeditor5-core' {
5
+ interface EditorConfig {
6
+ presenceList?: PresenceListConfig;
7
+ }
8
+ interface PluginsMap {
9
+ [RealTimeCollaborationClient.pluginName]: RealTimeCollaborationClient;
10
+ }
11
+ }
12
+ declare module '@ckeditor/ckeditor5-cloud-services' {
13
+ interface CloudServicesConfig {
14
+ /**
15
+ * The timeout (in seconds) for the connection. Defaults to 10.
16
+ *
17
+ * If the connection will not be established after the specified number of second passes, the editor will throw an error.
18
+ *
19
+ * Raise this value if you are experiencing connection timeout problems.
20
+ *
21
+ * ```ts
22
+ * ClassicEditor
23
+ * .create( {
24
+ * cloudServices: {
25
+ * connectionTimeout: 20,
26
+ * // ...
27
+ * }
28
+ * } )
29
+ * .then( ... )
30
+ * .catch( ... );
31
+ * ```
32
+ */
33
+ connectionTimeout?: number;
34
+ /**
35
+ * The timeout (in seconds) for each request send to the Cloud Services. Defaults to 20.
36
+ *
37
+ * If the request is not finished after the specified number of second passes, the editor will throw an error.
38
+ *
39
+ * Raise this value if you expect that your requests will be big
40
+ * (e.g. mostly concerns the document data and the initial request).
41
+ *
42
+ * ```ts
43
+ * ClassicEditor
44
+ * .create( {
45
+ * cloudServices: {
46
+ * requestTimeout: 40,
47
+ * // ...
48
+ * }
49
+ * } )
50
+ * .then( ... )
51
+ * .catch( ... );
52
+ * ```
53
+ */
54
+ requestTimeout?: number;
55
+ }
56
+ }
57
+ declare module 'ckeditor5-collaboration' {
58
+ interface User {
59
+ orderNumber?: number;
60
+ }
61
+ }
@@ -1,5 +1,5 @@
1
- /**
2
- * @module real-time-collaboration/common-translations
3
- */
4
- import type { Locale } from 'ckeditor5/src/utils';
5
- export declare function getTranslation(locale: Locale, id: string, values?: Array<string> | number): string;
1
+ /**
2
+ * @module real-time-collaboration/common-translations
3
+ */
4
+ import type { Locale } from 'ckeditor5/src/utils.js';
5
+ export declare function getTranslation(locale: Locale, id: string, values?: Array<string> | number): string;
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- export function getTranslation(_0x174221,_0x3904cf,_0x14e586){const t=_0x174221['t'];switch(_0x3904cf){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'},_0x14e586);default:return'';}}
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'';}}
package/src/config.d.ts CHANGED
@@ -1,33 +1,33 @@
1
- import type { User } from 'ckeditor5-collaboration/src/collaboration-core';
2
- /**
3
- * @module real-time-collaboration/config
4
- * @publicApi
5
- */
6
- /**
7
- * The configuration of the real-time collaboration features.
8
- *
9
- * ```ts
10
- * ClassicEditor
11
- * .create( {
12
- * presenceList: ... // Collaboration presence list configuration.
13
- * } )
14
- * .then( ... )
15
- * .catch( ... );
16
- * ```
17
- *
18
- * See {@link module:core/editor/editorconfig~EditorConfig all editor options}.
19
- */
20
- export interface PresenceListConfig {
21
- /**
22
- * The number of users that need to be connected in order to switch the presence list to the dropdown view.
23
- */
24
- collapseAt?: number;
25
- /**
26
- * DOM element that will hold the feature’s UI.
27
- */
28
- container?: HTMLElement;
29
- /**
30
- * Callback function that will be invoked after a click on a presence list member.
31
- */
32
- onClick?: (user: User, element: HTMLElement) => void;
33
- }
1
+ import type { User } from 'ckeditor5-collaboration';
2
+ /**
3
+ * @module real-time-collaboration/config
4
+ * @publicApi
5
+ */
6
+ /**
7
+ * The configuration of the real-time collaboration features.
8
+ *
9
+ * ```ts
10
+ * ClassicEditor
11
+ * .create( {
12
+ * presenceList: ... // Collaboration presence list configuration.
13
+ * } )
14
+ * .then( ... )
15
+ * .catch( ... );
16
+ * ```
17
+ *
18
+ * See {@link module:core/editor/editorconfig~EditorConfig all editor options}.
19
+ */
20
+ export interface PresenceListConfig {
21
+ /**
22
+ * The number of users that need to be connected in order to switch the presence list to the dropdown view.
23
+ */
24
+ collapseAt?: number;
25
+ /**
26
+ * DOM element that will hold the feature’s UI.
27
+ */
28
+ container?: HTMLElement;
29
+ /**
30
+ * Callback function that will be invoked after a click on a presence list member.
31
+ */
32
+ onClick?: (user: User, element: HTMLElement) => void;
33
+ }
package/src/index.d.ts CHANGED
@@ -1,10 +1,10 @@
1
- export { default as RealTimeCollaborativeEditing } from './realtimecollaborativeediting';
2
- export { default as RealTimeCollaborativeTrackChanges } from './realtimecollaborativetrackchanges';
3
- export { default as RealTimeCollaborativeComments } from './realtimecollaborativecomments';
4
- export { default as RealTimeCollaborativeRevisionHistory } from './realtimecollaborativerevisionhistory';
5
- export { default as CloudServicesCommentsAdapter } from './realtimecollaborativecomments/cloudservicescommentsadapter';
6
- export { default as CloudServicesTrackChangesAdapter } from './realtimecollaborativetrackchanges/cloudservicestrackchangesadapter';
7
- export { default as CloudServicesRevisionHistoryAdapter } from './realtimecollaborativerevisionhistory/cloudservicesrevisionhistoryadapter';
8
- export { default as RealTimeCollaborationClient } from './realtimecollaborativeediting/realtimecollaborationclient';
9
- export { default as PresenceList } from './presencelist';
10
- import './augmentation';
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';
package/src/index.js CHANGED
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
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';
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';
@@ -1,39 +1,39 @@
1
- import { ContextPlugin, type Context, type Editor } from 'ckeditor5/src/core';
2
- import { Collection } from 'ckeditor5/src/utils';
3
- import { BodyCollection, BalloonPanelView } from 'ckeditor5/src/ui';
4
- import Sessions from '../realtimecollaborativeediting/sessions';
5
- import PresenceListView from './view/presencelistview';
6
- import PresenceDropdownListView from './view/presencedropdownlistview';
7
- import type { User } from 'ckeditor5-collaboration/src/collaboration-core';
8
- export default class PresenceListUI extends ContextPlugin {
9
- usersCount: number;
10
- lastConnectedUsers: Collection<User>;
11
- balloonPanelView: BalloonPanelView;
12
- view: PresenceListView;
13
- presenceDropdownView: PresenceDropdownListView | undefined;
14
- bodyCollection: BodyCollection;
15
- /**
16
- * @inheritDoc
17
- */
18
- constructor(context: Context | Editor);
19
- /**
20
- * @inheritDoc
21
- */
22
- static get requires(): readonly [typeof Sessions];
23
- /**
24
- * @inheritDoc
25
- */
26
- init(): void;
27
- /**
28
- * Creates and shows dropdown list with all connected users.
29
- */
30
- showDropdown(): void;
31
- /**
32
- * Hides and destroys dropdown list with all connected users.
33
- */
34
- hideDropdown(): void;
35
- /**
36
- * @inheritDoc
37
- */
38
- destroy(): void;
39
- }
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';
8
+ export default class PresenceListUI extends ContextPlugin {
9
+ usersCount: number;
10
+ lastConnectedUsers: Collection<User>;
11
+ balloonPanelView: BalloonPanelView;
12
+ view: PresenceListView;
13
+ presenceDropdownView: PresenceDropdownListView | undefined;
14
+ bodyCollection: BodyCollection;
15
+ /**
16
+ * @inheritDoc
17
+ */
18
+ constructor(context: Context | Editor);
19
+ /**
20
+ * @inheritDoc
21
+ */
22
+ static get requires(): readonly [typeof Sessions];
23
+ /**
24
+ * @inheritDoc
25
+ */
26
+ init(): void;
27
+ /**
28
+ * Creates and shows dropdown list with all connected users.
29
+ */
30
+ showDropdown(): void;
31
+ /**
32
+ * Hides and destroys dropdown list with all connected users.
33
+ */
34
+ hideDropdown(): void;
35
+ /**
36
+ * @inheritDoc
37
+ */
38
+ destroy(): void;
39
+ }
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4eaa=['presenceDropdownView','lastConnectedUsers','define','presenceList','plugins','content','allConnectedUsers','presencelist-collapseat-invalid-format','_allConnectedUsers','bodyCollection','_handleUserRemove','listenTo','bind','set','add','class','_handleUserAdd','get','bindTo','remove','isVisible','balloonPanelView','context','counterView','view','hasTooltip','usersCount','presenceList.container','appendChild','presenceList.collapseAt','items','length','using','isCollapsed','_createView','destroy','from','render','element','showDropdown','onClick','inlineListView','unpin','config','detachFromDom','locale','hideDropdown','isRendered','ck\x20ck-presence-list__balloon','execute'];(function(_0x2d4ca6,_0x4eaa31){const _0x53c209=function(_0x2e951d){while(--_0x2e951d){_0x2d4ca6['push'](_0x2d4ca6['shift']());}};_0x53c209(++_0x4eaa31);}(_0x4eaa,0x122));const _0x53c2=function(_0x2d4ca6,_0x4eaa31){_0x2d4ca6=_0x2d4ca6-0x0;let _0x53c209=_0x4eaa[_0x2d4ca6];return _0x53c209;};import{ContextPlugin as _0x2a6d0b}from'ckeditor5/src/core';import{CKEditorError as _0x4c0032,Collection as _0x9663a9}from'ckeditor5/src/utils';import{clickOutsideHandler as _0x3b2b06,BodyCollection as _0xc6bdf6,BalloonPanelView as _0x24b3b5}from'ckeditor5/src/ui';import{isElement as _0x3e8f85}from'lodash-es';import _0x2cdcdd from'../realtimecollaborativeediting/sessions';import _0x460ccf from'./view/presencelistview';import _0x59acd4 from'./view/presencedropdownlistview';import _0x4a93bf from'./view/presencedropdownlistitemview';import _0x1fb061 from'./view/presenceinlinelistitemview';export default class i extends _0x2a6d0b{constructor(_0x11e92f){super(_0x11e92f),this[_0x53c2('0x20')]['config'][_0x53c2('0xc')](_0x53c2('0xd'),{'collapseAt':0x6});const _0xcca766=_0x11e92f[_0x53c2('0x3')][_0x53c2('0x1b')](_0x53c2('0x27'));if('number'!=typeof _0xcca766)throw new _0x4c0032(_0x53c2('0x11'),this);if(_0xcca766<0x1)throw new _0x4c0032(_0x53c2('0x11'),this);this[_0x53c2('0x12')]=this[_0x53c2('0x20')][_0x53c2('0xe')][_0x53c2('0x1b')](_0x2cdcdd)[_0x53c2('0x10')],this[_0x53c2('0x17')](_0x53c2('0x24'),0x0),this[_0x53c2('0xb')]=new _0x9663a9(),this['balloonPanelView']=new _0x24b3b5(),this[_0x53c2('0x1f')][_0x53c2('0x19')]=_0x53c2('0x8'),this['view']=this[_0x53c2('0x2c')](),this[_0x53c2('0xa')]=void 0x0;}static get['requires'](){return[_0x2cdcdd];}['init'](){for(const _0x54ab9d of this[_0x53c2('0x12')])this[_0x53c2('0x1a')](_0x54ab9d);this[_0x53c2('0x15')](this['_allConnectedUsers'],_0x53c2('0x18'),(_0x43dfa2,_0x246e9a)=>{this[_0x53c2('0x1a')](_0x246e9a);}),this[_0x53c2('0x15')](this[_0x53c2('0x12')],'remove',(_0x2eee04,_0x497670)=>{this[_0x53c2('0x14')](_0x497670);});}[_0x53c2('0x2c')](){const _0x52e5c4=this['context'],_0x865b21=new _0x460ccf(this[_0x53c2('0x20')][_0x53c2('0x5')]),_0x4c371e=this[_0x53c2('0x1f')];if(!_0x3e8f85(_0x52e5c4[_0x53c2('0x3')][_0x53c2('0x1b')](_0x53c2('0x25'))))throw new _0x4c0032('presencelist-missing-container',this);return _0x865b21[_0x53c2('0x21')][_0x53c2('0x16')](_0x53c2('0x24'))['to'](this),_0x865b21[_0x53c2('0x16')](_0x53c2('0x2b'))['to'](this,_0x53c2('0x24'),_0xb12662=>{const _0x52bcd6=_0xb12662>=_0x52e5c4[_0x53c2('0x3')]['get'](_0x53c2('0x27'));return _0x865b21[_0x53c2('0x21')]['isHidden']=!(0x1==_0xb12662||_0x52bcd6),_0x52bcd6||this[_0x53c2('0x6')](),_0x52bcd6;}),_0x865b21[_0x53c2('0x1')]['items'][_0x53c2('0x1c')](this[_0x53c2('0xb')])['using'](_0x3f5ce7=>{const _0x2a7c03=_0x52e5c4[_0x53c2('0x3')][_0x53c2('0x1b')](_0x53c2('0xd')),_0x7276eb=new _0x1fb061(_0x52e5c4[_0x53c2('0x5')],_0x3f5ce7,!!_0x2a7c03[_0x53c2('0x0')]);return _0x7276eb['bind'](_0x53c2('0x23'))['to'](_0x865b21,_0x53c2('0x2b'),_0x33ea07=>!_0x33ea07),_0x2a7c03[_0x53c2('0x0')]&&this[_0x53c2('0x15')](_0x7276eb,_0x53c2('0x9'),()=>{this[_0x53c2('0x22')][_0x53c2('0x2b')]||_0x2a7c03[_0x53c2('0x0')](_0x3f5ce7,_0x7276eb[_0x53c2('0x30')]);}),_0x7276eb;}),this['listenTo'](_0x865b21[_0x53c2('0x1')],_0x53c2('0x9'),()=>{this[_0x53c2('0xa')]?this[_0x53c2('0x6')]():this[_0x53c2('0x22')][_0x53c2('0x2b')]&&this[_0x53c2('0x31')]();}),_0x865b21[_0x53c2('0x2f')](),_0x4c371e[_0x53c2('0x2f')](),_0x3b2b06({'emitter':_0x865b21,'activator':()=>_0x4c371e[_0x53c2('0x1e')],'contextElements':[_0x4c371e[_0x53c2('0x30')],_0x865b21[_0x53c2('0x1')]['element']],'callback':()=>this['hideDropdown']()}),_0x52e5c4[_0x53c2('0x3')][_0x53c2('0x1b')]('presenceList.container')[_0x53c2('0x26')](_0x865b21[_0x53c2('0x30')]),this['bodyCollection']=new _0xc6bdf6(this['context'][_0x53c2('0x5')]),this[_0x53c2('0x13')]['attachToDom'](),this[_0x53c2('0x13')]['add'](_0x4c371e),_0x865b21;}[_0x53c2('0x1a')](_0x376787){this['usersCount']++,0x5==this[_0x53c2('0xb')]['length']&&this[_0x53c2('0xb')][_0x53c2('0x1d')](0x0),this[_0x53c2('0xb')][_0x53c2('0x18')](_0x376787);}[_0x53c2('0x14')](_0x583545){if(this['usersCount']--,this['lastConnectedUsers'][_0x53c2('0x1b')](_0x583545['id'])&&(this[_0x53c2('0xb')][_0x53c2('0x1d')](_0x583545['id']),this[_0x53c2('0xb')][_0x53c2('0x29')]<this[_0x53c2('0x24')]))for(const _0x5e8534 of Array[_0x53c2('0x2e')](this[_0x53c2('0x12')])['reverse']())if(!this[_0x53c2('0xb')][_0x53c2('0x1b')](_0x5e8534['id']))return void this[_0x53c2('0xb')][_0x53c2('0x18')](_0x5e8534,0x0);}[_0x53c2('0x31')](){if(this[_0x53c2('0xa')])return;this[_0x53c2('0xa')]=new _0x59acd4(this[_0x53c2('0x20')]['locale']);const _0x59180a=this['context'][_0x53c2('0x3')]['get'](_0x53c2('0xd'));this[_0x53c2('0xa')][_0x53c2('0x28')]['bindTo'](this['_allConnectedUsers'])[_0x53c2('0x2a')](_0x274e76=>{const _0x87d53=new _0x4a93bf(this[_0x53c2('0x20')][_0x53c2('0x5')],_0x274e76,!!_0x59180a[_0x53c2('0x0')]);return _0x59180a[_0x53c2('0x0')]&&this[_0x53c2('0x15')](_0x87d53,_0x53c2('0x9'),()=>{_0x59180a[_0x53c2('0x0')](_0x274e76,_0x87d53[_0x53c2('0x30')]);}),_0x87d53;}),this[_0x53c2('0x1f')]['content'][_0x53c2('0x18')](this['presenceDropdownView']),this[_0x53c2('0x1f')]['pin']({'target':this[_0x53c2('0x22')]['inlineListView']['element']});}[_0x53c2('0x6')](){this['presenceDropdownView']&&(this[_0x53c2('0x1f')][_0x53c2('0x2')](),this[_0x53c2('0x1f')][_0x53c2('0xf')][_0x53c2('0x1d')](this['presenceDropdownView']),this['presenceDropdownView']['destroy'](),this[_0x53c2('0xa')]=void 0x0);}['destroy'](){super[_0x53c2('0x2d')](),this[_0x53c2('0x22')]&&this[_0x53c2('0x22')][_0x53c2('0x7')]&&this[_0x53c2('0x22')]['destroy'](),this[_0x53c2('0x13')]&&this['bodyCollection'][_0x53c2('0x4')]();}}
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')]();}}
@@ -1,7 +1,7 @@
1
- import { View } from 'ckeditor5/src/ui';
2
- import type { Locale } from 'ckeditor5/src/utils';
3
- export default class PresenceCounterView extends View {
4
- usersCount: number;
5
- isHidden: boolean;
6
- constructor(locale: Locale);
7
- }
1
+ import { View } from 'ckeditor5/src/ui.js';
2
+ import type { Locale } from 'ckeditor5/src/utils.js';
3
+ export default class PresenceCounterView extends View {
4
+ usersCount: number;
5
+ isHidden: boolean;
6
+ constructor(locale: Locale);
7
+ }
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4ee5=['setTemplate','bindTemplate','ck-presence-list__counter','ck-presence-list__counter--hidden','CONNECTED_USERS','div','isHidden','usersCount','set'];(function(_0x1160c9,_0x4ee584){const _0x1ce257=function(_0x1d9be4){while(--_0x1d9be4){_0x1160c9['push'](_0x1160c9['shift']());}};_0x1ce257(++_0x4ee584);}(_0x4ee5,0xad));const _0x1ce2=function(_0x1160c9,_0x4ee584){_0x1160c9=_0x1160c9-0x0;let _0x1ce257=_0x4ee5[_0x1160c9];return _0x1ce257;};import{View as _0x438d61}from'ckeditor5/src/ui';import{getTranslation as _0x12438b}from'../../common-translations';export default class et extends _0x438d61{constructor(_0x240650){super(_0x240650);const _0xb9dbba=this[_0x1ce2('0x8')];this[_0x1ce2('0x6')]('usersCount',0x0),this['set'](_0x1ce2('0x4'),!0x0),this[_0x1ce2('0x7')]({'tag':_0x1ce2('0x3'),'attributes':{'class':['ck',_0x1ce2('0x0'),_0xb9dbba['if'](_0x1ce2('0x4'),_0x1ce2('0x1'))]},'children':[{'text':_0xb9dbba['to'](_0x1ce2('0x5'),_0x444f79=>_0x12438b(_0x240650,_0x1ce2('0x2'),_0x444f79))}]});}}
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))}]});}}
@@ -1,7 +1,7 @@
1
- import { View } from 'ckeditor5/src/ui';
2
- import type { Locale } from 'ckeditor5/src/utils';
3
- import { UserView, type User } from 'ckeditor5-collaboration/src/collaboration-core';
4
- export default class PresenceDropdownListItemView extends View {
5
- userView: UserView;
6
- constructor(locale: Locale, user: User, isButton: boolean);
7
- }
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';
4
+ export default class PresenceDropdownListItemView extends View {
5
+ userView: UserView;
6
+ constructor(locale: Locale, user: User, isButton: boolean);
7
+ }
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4f49=['name','true','tag','bindTemplate','execute','ck-presence-list__marker','getBackgroundColorClass','div','userView','button','span'];(function(_0x462f57,_0x4f4916){const _0x15ac70=function(_0xf2d1cc){while(--_0xf2d1cc){_0x462f57['push'](_0x462f57['shift']());}};_0x15ac70(++_0x4f4916);}(_0x4f49,0x18b));const _0x15ac=function(_0x462f57,_0x4f4916){_0x462f57=_0x462f57-0x0;let _0x15ac70=_0x4f49[_0x462f57];return _0x15ac70;};import{View as _0x3da133}from'ckeditor5/src/ui';import{UserView as _0x390ac7}from'ckeditor5-collaboration/src/collaboration-core';export default class C extends _0x3da133{constructor(_0x1752d7,_0xa8495e,_0xe8ff33){super(_0x1752d7);const _0x40618f=this[_0x15ac('0x4')];this[_0x15ac('0x9')]=new _0x390ac7(_0x1752d7,_0xa8495e);const _0x1730b2={'tag':_0x15ac('0x8'),'attributes':{'class':['ck','ck-presence-list__dropdown-list-item']},'children':[this[_0x15ac('0x9')],{'tag':_0x15ac('0x0'),'attributes':{'class':['ck','ck-user__full-name']},'children':[{'text':_0xa8495e[_0x15ac('0x1')]}]},{'tag':_0x15ac('0x0'),'attributes':{'class':['ck',_0x15ac('0x6'),_0xa8495e['color'][_0x15ac('0x7')]()],'aria-hidden':_0x15ac('0x2')}}]};_0xe8ff33&&(_0x1730b2[_0x15ac('0x3')]=_0x15ac('0xa'),_0x1730b2['on']={'click':_0x40618f['to'](()=>this['fire'](_0x15ac('0x5')))}),this['setTemplate'](_0x1730b2);}}
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);}}
@@ -1,6 +1,6 @@
1
- import { View, type ViewCollection } from 'ckeditor5/src/ui';
2
- import type { Locale } from 'ckeditor5/src/utils';
3
- export default class PresenceDropdownListView extends View {
4
- items: ViewCollection;
5
- constructor(locale: Locale);
6
- }
1
+ import { View, type ViewCollection } from 'ckeditor5/src/ui.js';
2
+ import type { Locale } from 'ckeditor5/src/utils.js';
3
+ export default class PresenceDropdownListView extends View {
4
+ items: ViewCollection;
5
+ constructor(locale: Locale);
6
+ }
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x46df=['setTemplate','ck-presence-list__dropdown-list','items','createCollection','div'];(function(_0x4f2390,_0x46dfb0){var _0x432e28=function(_0x5187c6){while(--_0x5187c6){_0x4f2390['push'](_0x4f2390['shift']());}};_0x432e28(++_0x46dfb0);}(_0x46df,0x1b0));var _0x432e=function(_0x4f2390,_0x46dfb0){_0x4f2390=_0x4f2390-0x0;var _0x432e28=_0x46df[_0x4f2390];return _0x432e28;};import{View as _0x3e03d7}from'ckeditor5/src/ui';export default class A extends _0x3e03d7{constructor(_0x4c9ab9){super(_0x4c9ab9),this[_0x432e('0x0')]=this[_0x432e('0x1')](),this[_0x432e('0x3')]({'tag':_0x432e('0x2'),'attributes':{'class':['ck',_0x432e('0x4')]},'children':[{'tag':_0x432e('0x2'),'attributes':{'class':['ck','ck-presence-list__dropdown-list-wrapper']},'children':this[_0x432e('0x0')]}]});}}
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')]}]});}}
@@ -1,14 +1,14 @@
1
- import { View } from 'ckeditor5/src/ui';
2
- import type { Locale } from 'ckeditor5/src/utils';
3
- import { UserView, type User } from 'ckeditor5-collaboration/src/collaboration-core';
4
- export default class PresenceInlineListItemView extends View {
5
- hasTooltip: boolean;
6
- tooltipPosition: string;
7
- userView: UserView;
8
- markerView: MarkerView;
9
- constructor(locale: Locale, user: User, isButton: boolean);
10
- }
11
- declare class MarkerView extends View {
12
- constructor(locale: Locale, user: User);
13
- }
14
- export {};
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';
4
+ export default class PresenceInlineListItemView extends View {
5
+ hasTooltip: boolean;
6
+ tooltipPosition: string;
7
+ userView: UserView;
8
+ markerView: MarkerView;
9
+ constructor(locale: Locale, user: User, isButton: boolean);
10
+ }
11
+ declare class MarkerView extends View {
12
+ constructor(locale: Locale, user: User);
13
+ }
14
+ export {};
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2c37=['userView','hasTooltip','bindTemplate','set','tooltipPosition','setTemplate','ck-presence-list__list-item__tooltip','ck-presence-list__list-item','ck-presence-list__marker','div','tag','color','getBackgroundColorClass','fire','name','span','markerView'];(function(_0x2b57d1,_0x2c3790){const _0x46d5f9=function(_0x1ce833){while(--_0x1ce833){_0x2b57d1['push'](_0x2b57d1['shift']());}};_0x46d5f9(++_0x2c3790);}(_0x2c37,0x6f));const _0x46d5=function(_0x2b57d1,_0x2c3790){_0x2b57d1=_0x2b57d1-0x0;let _0x46d5f9=_0x2c37[_0x2b57d1];return _0x46d5f9;};import{View as _0x28427c}from'ckeditor5/src/ui';import{UserView as _0x164562}from'ckeditor5-collaboration/src/collaboration-core';export default class _ extends _0x28427c{constructor(_0x3ad1ce,_0x3494ca,_0x25ce46){super(_0x3ad1ce);const _0x1eb70e=this[_0x46d5('0xa')];this[_0x46d5('0xb')](_0x46d5('0x9'),!0x0),this['set'](_0x46d5('0xc'),''),this[_0x46d5('0x8')]=new _0x164562(_0x3ad1ce,_0x3494ca),this[_0x46d5('0x7')]=new ot(_0x3ad1ce,_0x3494ca);const _0x3c8308={'tag':_0x46d5('0x0'),'attributes':{'class':['ck',_0x46d5('0xf')],'data-cke-tooltip-text':this[_0x46d5('0x8')][_0x46d5('0x5')],'data-cke-tooltip-position':_0x1eb70e['to'](_0x46d5('0xc')),'data-cke-tooltip-disabled':_0x1eb70e['to'](_0x46d5('0x9'),_0x54e69d=>!_0x54e69d),'data-cke-tooltip-class':_0x46d5('0xe')},'children':[this['userView'],this[_0x46d5('0x7')]]};_0x25ce46&&(_0x3c8308[_0x46d5('0x1')]='button',_0x3c8308['on']={'click':_0x1eb70e['to'](()=>this[_0x46d5('0x4')]('execute'))}),this['setTemplate'](_0x3c8308);}}class ot extends _0x28427c{constructor(_0x53c67f,_0x3f1814){super(_0x53c67f),this[_0x46d5('0xd')]({'tag':_0x46d5('0x6'),'attributes':{'class':['ck',_0x46d5('0x10'),_0x3f1814[_0x46d5('0x2')][_0x46d5('0x3')]()],'aria-hidden':'true'}});}}
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')}});}}
@@ -1,7 +1,7 @@
1
- import { View, type ViewCollection } from 'ckeditor5/src/ui';
2
- import type { Locale } from 'ckeditor5/src/utils';
3
- import type PresenceInlineListItemView from './presenceinlinelistitemview';
4
- export default class PresenceInlineListView extends View {
5
- items: ViewCollection<PresenceInlineListItemView>;
6
- constructor(locale: Locale);
7
- }
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';
4
+ export default class PresenceInlineListView extends View {
5
+ items: ViewCollection<PresenceInlineListItemView>;
6
+ constructor(locale: Locale);
7
+ }
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1d22=['ck-presence-list__list','fire','div','createCollection','bindTemplate','setTemplate','items'];(function(_0xb286f8,_0x1d2205){const _0x355528=function(_0x36fd93){while(--_0x36fd93){_0xb286f8['push'](_0xb286f8['shift']());}};_0x355528(++_0x1d2205);}(_0x1d22,0x92));const _0x3555=function(_0xb286f8,_0x1d2205){_0xb286f8=_0xb286f8-0x0;let _0x355528=_0x1d22[_0xb286f8];return _0x355528;};import{View as _0x461721}from'ckeditor5/src/ui';export default class rt extends _0x461721{constructor(_0x19b74c){super(_0x19b74c),this[_0x3555('0x0')]=this[_0x3555('0x4')]();const _0x5979a0=this[_0x3555('0x5')];this[_0x3555('0x6')]({'tag':_0x3555('0x3'),'attributes':{'class':['ck',_0x3555('0x1')]},'children':this['items'],'on':{'click':_0x5979a0['to'](()=>this[_0x3555('0x2')]('execute'))}});}}
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')))}});}}