@ckeditor/ckeditor5-real-time-collaboration 45.2.1 → 46.0.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.
- package/build/real-time-collaboration.js +1 -1
- package/dist/index.js +6 -6
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +15 -15
- package/src/augmentation.d.ts +2 -2
- package/src/common-translations.js +1 -1
- package/src/config.d.ts +1 -1
- package/src/index.d.ts +15 -11
- package/src/index.js +1 -1
- package/src/presencelist/presencelistui.d.ts +2 -2
- package/src/presencelist/presencelistui.js +1 -1
- package/src/presencelist/view/presencecounterview.d.ts +1 -1
- package/src/presencelist/view/presencecounterview.js +1 -1
- package/src/presencelist/view/presencedropdownlistitemview.d.ts +1 -1
- package/src/presencelist/view/presencedropdownlistitemview.js +1 -1
- package/src/presencelist/view/presencedropdownlistview.d.ts +1 -28
- package/src/presencelist/view/presencedropdownlistview.js +1 -1
- package/src/presencelist/view/presenceinlinelistitemview.d.ts +1 -1
- package/src/presencelist/view/presenceinlinelistitemview.js +1 -1
- package/src/presencelist/view/presenceinlinelistview.d.ts +3 -3
- package/src/presencelist/view/presenceinlinelistview.js +1 -1
- package/src/presencelist/view/presencelistview.d.ts +0 -15
- package/src/presencelist/view/presencelistview.js +1 -1
- package/src/presencelist.d.ts +3 -3
- package/src/presencelist.js +1 -1
- package/src/realtimecollaborativecomments/cloudservicescommentsadapter.d.ts +3 -3
- package/src/realtimecollaborativecomments/cloudservicescommentsadapter.js +2 -2
- package/src/realtimecollaborativecomments.d.ts +4 -4
- package/src/realtimecollaborativecomments.js +1 -1
- package/src/realtimecollaborativeediting/realtimecollaborationclient.d.ts +4 -4
- package/src/realtimecollaborativeediting/realtimecollaborationclient.js +2 -2
- package/src/realtimecollaborativeediting/sessions.d.ts +7 -7
- package/src/realtimecollaborativeediting/sessions.js +1 -1
- package/src/realtimecollaborativeediting/usermarkers.d.ts +2 -2
- package/src/realtimecollaborativeediting/usermarkers.js +1 -1
- package/src/realtimecollaborativeediting/websocketgateway.d.ts +7 -8
- package/src/realtimecollaborativeediting/websocketgateway.js +2 -2
- package/src/realtimecollaborativeediting.d.ts +2 -2
- package/src/realtimecollaborativeediting.js +1 -1
- package/src/realtimecollaborativerevisionhistory/cloudservicesrevisionhistoryadapter.d.ts +4 -4
- package/src/realtimecollaborativerevisionhistory/cloudservicesrevisionhistoryadapter.js +2 -2
- package/src/realtimecollaborativerevisionhistory.d.ts +3 -3
- package/src/realtimecollaborativerevisionhistory.js +1 -1
- package/src/realtimecollaborativetrackchanges/cloudservicestrackchangesadapter.d.ts +3 -3
- package/src/realtimecollaborativetrackchanges/cloudservicestrackchangesadapter.js +2 -2
- package/src/realtimecollaborativetrackchanges.d.ts +3 -3
- package/src/realtimecollaborativetrackchanges.js +1 -1
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1f9664=_0x31b4;function _0x31b4(_0xa56d6f,_0x5304b3){const _0x33a2a3=_0x33a2();return _0x31b4=function(_0x31b453,_0x4a6b88){_0x31b453=_0x31b453-0x9e;let _0x349b49=_0x33a2a3[_0x31b453];return _0x349b49;},_0x31b4(_0xa56d6f,_0x5304b3);}(function(_0x40f325,_0x8b0a32){const _0x2410c2=_0x31b4,_0x92b5bb=_0x40f325();while(!![]){try{const _0x4d9814=-parseInt(_0x2410c2(0xad))/0x1+-parseInt(_0x2410c2(0xb4))/0x2+-parseInt(_0x2410c2(0xb7))/0x3*(parseInt(_0x2410c2(0xae))/0x4)+parseInt(_0x2410c2(0xa0))/0x5+-parseInt(_0x2410c2(0xb1))/0x6+parseInt(_0x2410c2(0xa7))/0x7*(-parseInt(_0x2410c2(0xaa))/0x8)+parseInt(_0x2410c2(0xaf))/0x9*(parseInt(_0x2410c2(0xb3))/0xa);if(_0x4d9814===_0x8b0a32)break;else _0x92b5bb['push'](_0x92b5bb['shift']());}catch(_0x33cf8f){_0x92b5bb['push'](_0x92b5bb['shift']());}}}(_0x33a2,0x410da));import{ListItemView as _0x13bf06}from'ckeditor5/src/ui.js';import{UserView as _0x8f531a}from'ckeditor5-collaboration/src/collaboration-core.js';function _0x33a2(){const _0x35f802=['527988LGJvbA','tag','focus','9609JVqmcj','getBackgroundColorClass','name','ck-presence-list__marker','execute','1722915PUKMXA','element','fire','ck-user__full-name','bindTemplate','userView','ck-presence-list__dropdown-list-item','54754YFpKgD','span','presentation','352iBDPcO','button','setTemplate','192757zuVciZ','572hcZSZI','45TBsHoB','true','3165672QrOHxg','color','3416870iPpzMB'];_0x33a2=function(){return _0x35f802;};return _0x33a2();}export class PresenceDropdownListItemView extends _0x13bf06{[_0x1f9664(0xa5)];constructor(_0x400716,_0x5d458c,_0x365e67){const _0x1560ae=_0x1f9664;super(_0x400716);const _0x141e5b=this[_0x1560ae(0xa4)];this[_0x1560ae(0xa5)]=new _0x8f531a(_0x400716,_0x5d458c);const _0x1cf032={'tag':'li','attributes':{'class':['ck',_0x1560ae(0xa6)],'tabindex':-0x1,'role':_0x1560ae(0xa9),'aria-label':_0x5d458c[_0x1560ae(0xb9)]},'children':[this[_0x1560ae(0xa5)],{'tag':_0x1560ae(0xa8),'attributes':{'class':['ck',_0x1560ae(0xa3)]},'children':[{'text':_0x5d458c[_0x1560ae(0xb9)]}]},{'tag':_0x1560ae(0xa8),'attributes':{'class':['ck',_0x1560ae(0x9e),_0x5d458c[_0x1560ae(0xb2)][_0x1560ae(0xb8)]()],'aria-hidden':_0x1560ae(0xb0)}}]};_0x365e67&&(_0x1cf032[_0x1560ae(0xb5)]=_0x1560ae(0xab),_0x1cf032['on']={'click':_0x141e5b['to'](()=>this[_0x1560ae(0xa2)](_0x1560ae(0x9f)))}),this[_0x1560ae(0xac)](_0x1cf032);}[_0x1f9664(0xb6)](){const _0x1d7e5b=_0x1f9664;this[_0x1d7e5b(0xa1)][_0x1d7e5b(0xb6)]();}}
|
|
@@ -2,31 +2,4 @@
|
|
|
2
2
|
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
4
|
*/
|
|
5
|
-
|
|
6
|
-
* @module real-time-collaboration/presencelist/view/presencedropdownlistview
|
|
7
|
-
* @publicApi
|
|
8
|
-
*/
|
|
9
|
-
import { ListView, View } from 'ckeditor5/src/ui.js';
|
|
10
|
-
import { type Locale } from 'ckeditor5/src/utils.js';
|
|
11
|
-
/**
|
|
12
|
-
* `PresenceDropdownListView` is a view that represents the dropdown variant of users list.
|
|
13
|
-
*
|
|
14
|
-
* It is displayed when the user count is equal to or greater than the value specified in
|
|
15
|
-
* {@link module:real-time-collaboration/config~PresenceListConfig#collapseAt `config.presenceList.collapseAt`}.
|
|
16
|
-
*/
|
|
17
|
-
export default class PresenceDropdownListView extends View {
|
|
18
|
-
/**
|
|
19
|
-
* @inheritDoc
|
|
20
|
-
*/
|
|
21
|
-
constructor(locale: Locale, isButtonsList?: boolean);
|
|
22
|
-
}
|
|
23
|
-
/**
|
|
24
|
-
* Wrapper view for the presence dropdown list.
|
|
25
|
-
*/
|
|
26
|
-
export declare class PresenceDropdownListWrapperView extends ListView {
|
|
27
|
-
constructor(locale: Locale, isButtonsList?: boolean);
|
|
28
|
-
/**
|
|
29
|
-
* @inheritDoc
|
|
30
|
-
*/
|
|
31
|
-
render(): void;
|
|
32
|
-
}
|
|
5
|
+
export {};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2d5690=_0x1c50;function _0x1c50(_0x38b8ff,_0x22444d){const _0x59a851=_0x59a8();return _0x1c50=function(_0x1c50ac,_0x17fdf9){_0x1c50ac=_0x1c50ac-0x193;let _0x54b97f=_0x59a851[_0x1c50ac];return _0x54b97f;},_0x1c50(_0x38b8ff,_0x22444d);}function _0x59a8(){const _0x3925b0=['resize','div','.ck-presence-list__list','items','setTemplate','118608gIVsTM','set','clientHeight','ck-presence-list__dropdown-list-wrapper','45HekTrQ','285138PeRXae','application','listenTo','ck-presence-list__dropdown-list-wrapper_scrollable','presencelist:hide','_isScrollable','role','window','change','.ck-balloon-panel_with-arrow','fire','ariaLabelledBy','listWrapperView','querySelector','38068uRLdBR','Connected\x20users\x20list\x20dropdown\x20menu','scrollHeight','532086ToFMTn','266IJNpqQ','relatedTarget','1238120mbGtHU','11pjFZDO','79401TwHVxM','ariaLabel','checkIfScrollable','element','render','max','ck-reset','ck-list','ck-presence-list__dropdown-list','bindTemplate','contains','innerHeight'];_0x59a8=function(){return _0x3925b0;};return _0x59a8();}(function(_0xc07546,_0x5513a0){const _0xca072c=_0x1c50,_0x3bd38e=_0xc07546();while(!![]){try{const _0x115c3c=parseInt(_0xca072c(0x198))/0x1*(parseInt(_0xca072c(0x195))/0x2)+-parseInt(_0xca072c(0x199))/0x3+parseInt(_0xca072c(0x1bd))/0x4*(parseInt(_0xca072c(0x1ae))/0x5)+-parseInt(_0xca072c(0x194))/0x6+parseInt(_0xca072c(0x1aa))/0x7+parseInt(_0xca072c(0x197))/0x8+-parseInt(_0xca072c(0x1af))/0x9;if(_0x115c3c===_0x5513a0)break;else _0x3bd38e['push'](_0x3bd38e['shift']());}catch(_0x378440){_0x3bd38e['push'](_0x3bd38e['shift']());}}}(_0x59a8,0x1b57b));import{ListView as _0x3318d5,View as _0xd7169d}from'ckeditor5/src/ui.js';import{global as _0x3b79dd}from'ckeditor5/src/utils.js';import{getTranslation as _0x28da8d}from'../../common-translations.js';export class PresenceDropdownListView extends _0xd7169d{[_0x2d5690(0x1bb)];constructor(_0x1d88b8,_0x322c0f){const _0x576f78=_0x2d5690;super(_0x1d88b8);const _0x178d29=this[_0x576f78(0x1a2)];this[_0x576f78(0x1bb)]=new PresenceDropdownListWrapperView(_0x1d88b8,_0x322c0f),this[_0x576f78(0x1a9)]({'tag':_0x576f78(0x1a6),'attributes':{'tabindex':-0x1,'role':_0x576f78(0x1b0),'class':['ck',_0x576f78(0x1a1)],'aria-label':_0x28da8d(_0x1d88b8,_0x576f78(0x1be))},'children':[this[_0x576f78(0x1bb)]],'on':{'mouseleave':_0x178d29['to'](_0x18da8c=>{const _0x71aad1=_0x576f78,_0x3a9a61=_0x18da8c,_0x2a13aa=document[_0x71aad1(0x1bc)](_0x71aad1(0x1a7)),_0x59bc1f=document[_0x71aad1(0x1bc)](_0x71aad1(0x1b8));_0x2a13aa?.[_0x71aad1(0x1a3)](_0x3a9a61[_0x71aad1(0x196)])||_0x59bc1f?.[_0x71aad1(0x1a3)](_0x3a9a61[_0x71aad1(0x196)])||this[_0x71aad1(0x1b9)](_0x71aad1(0x1b3));})}});}}export class PresenceDropdownListWrapperView extends _0x3318d5{constructor(_0x516ceb,_0x21c7c3){const _0x1d0510=_0x2d5690;super(_0x516ceb);const _0x368a97=this[_0x1d0510(0x1a2)];this[_0x1d0510(0x1ab)](_0x1d0510(0x1b4),!0x1),this[_0x1d0510(0x1a9)]({'tag':_0x21c7c3?_0x1d0510(0x1a6):'ul','attributes':{'class':['ck',_0x1d0510(0x19f),_0x1d0510(0x1a0),_0x1d0510(0x1ad),_0x368a97['if'](_0x1d0510(0x1b4),_0x1d0510(0x1b2))],'role':_0x368a97['to'](_0x1d0510(0x1b5)),'aria-label':_0x368a97['to'](_0x1d0510(0x19a)),'aria-labelledby':_0x368a97['to'](_0x1d0510(0x1ba))},'children':this[_0x1d0510(0x1a8)]}),this[_0x1d0510(0x1b1)](_0x3b79dd[_0x1d0510(0x1b6)],_0x1d0510(0x1a5),()=>this[_0x1d0510(0x19b)]()),this[_0x1d0510(0x1a8)]['on'](_0x1d0510(0x1b7),()=>this[_0x1d0510(0x19b)]());}[_0x2d5690(0x19d)](){const _0x1a31bb=_0x2d5690;super[_0x1a31bb(0x19d)](),this[_0x1a31bb(0x19b)]();}[_0x2d5690(0x19b)](){const _0x38b264=_0x2d5690,_0x51ab2f=this[_0x38b264(0x19c)];_0x51ab2f&&(this[_0x38b264(0x1b4)]=Math[_0x38b264(0x19e)](_0x51ab2f[_0x38b264(0x193)],_0x51ab2f[_0x38b264(0x1ac)])>0.8*window[_0x38b264(0x1a4)]);}}
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
import { View } from 'ckeditor5/src/ui.js';
|
|
6
6
|
import type { Locale } from 'ckeditor5/src/utils.js';
|
|
7
7
|
import { UserView, type User } from 'ckeditor5-collaboration/src/collaboration-core.js';
|
|
8
|
-
export
|
|
8
|
+
export declare class PresenceInlineListItemView extends View {
|
|
9
9
|
isFocusable: boolean;
|
|
10
10
|
hasTooltip: boolean;
|
|
11
11
|
tooltipPosition: string;
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
function _0x4efa(){const _0x2d6466=['10uzsDNt','tag','1261346Tqkzmq','4200231UwICfB','execute','fire','getBackgroundColorClass','12319200SJSMfa','color','userView','div','tooltipPosition','hasTooltip','ck-presence-list__list-item','3695592GcDwyn','span','setTemplate','text','1185488RiRKpc','markerView','ck-presence-list__list-item__tooltip','isFocusable','name','template','set','true','listitem','bindTemplate','ck-presence-list__marker','button','5855496ubQSuE','2159140RsCLSB'];_0x4efa=function(){return _0x2d6466;};return _0x4efa();}const _0x379a60=_0x5048;(function(_0x4c0d1f,_0x292231){const _0x19da97=_0x5048,_0x1f7365=_0x4c0d1f();while(!![]){try{const _0x54869e=-parseInt(_0x19da97(0x9d))/0x1+-parseInt(_0x19da97(0xba))/0x2+parseInt(_0x19da97(0xa9))/0x3+-parseInt(_0x19da97(0xad))/0x4*(-parseInt(_0x19da97(0xbb))/0x5)+-parseInt(_0x19da97(0xb9))/0x6+parseInt(_0x19da97(0x9e))/0x7+parseInt(_0x19da97(0xa2))/0x8;if(_0x54869e===_0x292231)break;else _0x1f7365['push'](_0x1f7365['shift']());}catch(_0x1b05d9){_0x1f7365['push'](_0x1f7365['shift']());}}}(_0x4efa,0x9e21d));import{LabelView as _0x46ab9a,View as _0x2ec67c}from'ckeditor5/src/ui.js';import{UserView as _0x65f404}from'ckeditor5-collaboration/src/collaboration-core.js';function _0x5048(_0x1e311c,_0x5f0724){const _0x4efa26=_0x4efa();return _0x5048=function(_0x50489e,_0x10ff2a){_0x50489e=_0x50489e-0x9c;let _0x33e6b1=_0x4efa26[_0x50489e];return _0x33e6b1;},_0x5048(_0x1e311c,_0x5f0724);}export class PresenceInlineListItemView extends _0x2ec67c{[_0x379a60(0xa4)];[_0x379a60(0xae)];constructor(_0x456d65,_0x964914,_0x42fbee){const _0x321b36=_0x379a60;super(_0x456d65);const _0x578fff=this[_0x321b36(0xb6)];this[_0x321b36(0xb3)](_0x321b36(0xb0),!0x1),this[_0x321b36(0xb3)](_0x321b36(0xa7),!0x0),this[_0x321b36(0xb3)](_0x321b36(0xa6),''),this[_0x321b36(0xa4)]=new _0x65f404(_0x456d65,_0x964914),this[_0x321b36(0xae)]=new at(_0x456d65,_0x964914);const _0x3534e9=new _0x46ab9a(_0x456d65);_0x3534e9[_0x321b36(0xb2)][_0x321b36(0x9c)]=_0x321b36(0xaa),_0x3534e9[_0x321b36(0xac)]=_0x964914[_0x321b36(0xb1)];const _0x1c60cd={'tag':_0x321b36(0xa5),'attributes':{'class':['ck',_0x321b36(0xa8)],'role':_0x321b36(0xb5),'tabindex':_0x578fff['to'](_0x321b36(0xb0),_0x55f66c=>!!_0x55f66c&&0x0),'aria-labelledby':_0x3534e9['id'],'data-cke-tooltip-text':this[_0x321b36(0xa4)][_0x321b36(0xb1)],'data-cke-tooltip-position':_0x578fff['to'](_0x321b36(0xa6)),'data-cke-tooltip-disabled':_0x578fff['to'](_0x321b36(0xa7),_0x487122=>!_0x487122),'data-cke-tooltip-class':_0x321b36(0xaf)},'children':[this[_0x321b36(0xa4)],this[_0x321b36(0xae)],_0x3534e9]};_0x42fbee&&(_0x1c60cd[_0x321b36(0x9c)]=_0x321b36(0xb8),_0x1c60cd['on']={'click':_0x578fff['to'](()=>this[_0x321b36(0xa0)](_0x321b36(0x9f)))}),this[_0x321b36(0xab)](_0x1c60cd);}}class at extends _0x2ec67c{constructor(_0x262687,_0x29c659){const _0x3c4dee=_0x379a60;super(_0x262687),this[_0x3c4dee(0xab)]({'tag':_0x3c4dee(0xaa),'attributes':{'class':['ck',_0x3c4dee(0xb7),_0x29c659[_0x3c4dee(0xa3)][_0x3c4dee(0xa1)]()],'aria-hidden':_0x3c4dee(0xb4)}});}}
|
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
4
|
*/
|
|
5
5
|
import { View, type FocusableView, type ViewCollection } from 'ckeditor5/src/ui.js';
|
|
6
|
-
import type PresenceInlineListItemView from './presenceinlinelistitemview.js';
|
|
7
|
-
import type PresenceCounterView from './presencecounterview.js';
|
|
6
|
+
import { type PresenceInlineListItemView } from './presenceinlinelistitemview.js';
|
|
7
|
+
import { type PresenceCounterView } from './presencecounterview.js';
|
|
8
8
|
import { KeystrokeHandler, type Locale } from 'ckeditor5/src/utils.js';
|
|
9
|
-
export
|
|
9
|
+
export declare class PresenceInlineListView extends View implements FocusableView {
|
|
10
10
|
/**
|
|
11
11
|
* The collection of `PresenceInlineListItemView` instances.
|
|
12
12
|
*/
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4ed799=_0xa9ed;(function(_0x229748,_0xae6ef0){const _0x380c55=_0xa9ed,_0x346350=_0x229748();while(!![]){try{const _0x4dd14d=-parseInt(_0x380c55(0x1b0))/0x1+-parseInt(_0x380c55(0x1ca))/0x2+parseInt(_0x380c55(0x1b1))/0x3+-parseInt(_0x380c55(0x1c9))/0x4+parseInt(_0x380c55(0x1c4))/0x5*(parseInt(_0x380c55(0x1bf))/0x6)+parseInt(_0x380c55(0x1a6))/0x7+parseInt(_0x380c55(0x1ae))/0x8*(parseInt(_0x380c55(0x1ba))/0x9);if(_0x4dd14d===_0xae6ef0)break;else _0x346350['push'](_0x346350['shift']());}catch(_0x39d73b){_0x346350['push'](_0x346350['shift']());}}}(_0x15ce,0x25ded));import{View as _0x3f5ee3}from'ckeditor5/src/ui.js';function _0xa9ed(_0x1c484c,_0x4979b9){const _0x15ce19=_0x15ce();return _0xa9ed=function(_0xa9edb1,_0xb36139){_0xa9edb1=_0xa9edb1-0x1a5;let _0x3c86e1=_0x15ce19[_0xa9edb1];return _0x3c86e1;},_0xa9ed(_0x1c484c,_0x4979b9);}function _0x15ce(){const _0x54d619=['items','ck-presence-list__list','297764ZRGosZ','53956TZOovn','contains','441413bcFOsC','isExpanded','element','keystrokes','aria-expanded','presencelist:show','presencelist:hide','relatedTarget','16bAffaq','div','177221JUVZtv','304104TKXMtc','Collapsed\x20connected\x20users\x20list\x20(press\x20ENTER\x20to\x20open\x20it)','hasPopup','setTemplate','fire','.ck-presence-list__dropdown-list','bindTemplate','createCollection','querySelector','30249nSApEA','setAttribute','set','Connected\x20users\x20list','focus','393912XtMWxO','.ck-balloon-panel_with-arrow','render','removeAttribute','change:hasPopup','20xIirXQ','listenTo','list'];_0x15ce=function(){return _0x54d619;};return _0x15ce();}import{KeystrokeHandler as _0x2eb67b}from'ckeditor5/src/utils.js';import{getTranslation as _0x17f35b}from'../../common-translations.js';export class PresenceInlineListView extends _0x3f5ee3{[_0x4ed799(0x1c7)];[_0x4ed799(0x1a9)];constructor(_0x1b641f){const _0x2dd51a=_0x4ed799;super(_0x1b641f);const _0x118d1e=this[_0x2dd51a(0x1b7)];this[_0x2dd51a(0x1c7)]=this[_0x2dd51a(0x1b8)](),this[_0x2dd51a(0x1a9)]=new _0x2eb67b(),this[_0x2dd51a(0x1bc)]({'hasPopup':!0x1,'isExpanded':!0x1}),this[_0x2dd51a(0x1b4)]({'tag':_0x2dd51a(0x1af),'attributes':{'aria-haspopup':_0x118d1e['if'](_0x2dd51a(0x1b3)),'aria-expanded':_0x118d1e['to'](_0x2dd51a(0x1a7),_0xec6b6f=>this[_0x2dd51a(0x1b3)]&&String(_0xec6b6f)),'aria-label':_0x118d1e['to'](_0x2dd51a(0x1b3),_0x5ec4bc=>_0x17f35b(_0x1b641f,_0x5ec4bc?_0x2dd51a(0x1b2):_0x2dd51a(0x1bd))),'role':_0x2dd51a(0x1c6),'tabindex':_0x118d1e['to'](_0x2dd51a(0x1b3),_0x43cb9e=>!!_0x43cb9e&&0x0),'class':['ck',_0x2dd51a(0x1c8)]},'children':this[_0x2dd51a(0x1c7)],'on':{'mouseenter':_0x118d1e['to'](()=>this[_0x2dd51a(0x1b5)](_0x2dd51a(0x1ab))),'mouseleave':_0x118d1e['to'](_0x556a64=>{const _0x3aab6e=_0x2dd51a,_0x466d72=_0x556a64,_0x273572=document[_0x3aab6e(0x1b9)](_0x3aab6e(0x1b6)),_0x2f2673=document[_0x3aab6e(0x1b9)](_0x3aab6e(0x1c0));_0x273572?.[_0x3aab6e(0x1a5)](_0x466d72[_0x3aab6e(0x1ad)])||_0x2f2673?.[_0x3aab6e(0x1a5)](_0x466d72[_0x3aab6e(0x1ad)])||this[_0x3aab6e(0x1b5)](_0x3aab6e(0x1ac));})}}),this['on'](_0x2dd51a(0x1c3),(_0x1dee2b,_0x1dd5f9,_0x5412a2)=>{const _0x36e12a=_0x2dd51a;this[_0x36e12a(0x1a8)]&&(_0x5412a2?this[_0x36e12a(0x1a8)][_0x36e12a(0x1bb)](_0x36e12a(0x1aa),String(this[_0x36e12a(0x1a7)])):this[_0x36e12a(0x1a8)][_0x36e12a(0x1c2)](_0x36e12a(0x1aa)));});}[_0x4ed799(0x1be)](){const _0x428add=_0x4ed799;this[_0x428add(0x1a8)][_0x428add(0x1be)]();}[_0x4ed799(0x1c1)](){const _0x253e98=_0x4ed799;super[_0x253e98(0x1c1)](),this[_0x253e98(0x1a9)][_0x253e98(0x1c5)](this[_0x253e98(0x1a8)]);}}
|
|
@@ -2,19 +2,4 @@
|
|
|
2
2
|
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
4
|
*/
|
|
5
|
-
/**
|
|
6
|
-
* @module real-time-collaboration/presencelist/view/presencelistview
|
|
7
|
-
* @publicApi
|
|
8
|
-
*/
|
|
9
|
-
import { View } from 'ckeditor5/src/ui.js';
|
|
10
|
-
import type { Locale } from 'ckeditor5/src/utils.js';
|
|
11
5
|
import '../../../theme/presencelist.css';
|
|
12
|
-
/**
|
|
13
|
-
* `PresenceListView` is the default view for the presence list. It shows the inline list of users, and an optional user counter.
|
|
14
|
-
*/
|
|
15
|
-
export default class PresenceListView extends View {
|
|
16
|
-
/**
|
|
17
|
-
* @inheritDoc
|
|
18
|
-
*/
|
|
19
|
-
constructor(locale: Locale, collapseAt?: number);
|
|
20
|
-
}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2a9e46=_0x4c63;(function(_0x199d34,_0x21e938){const _0x425e64=_0x4c63,_0x13542b=_0x199d34();while(!![]){try{const _0x1369db=-parseInt(_0x425e64(0x1b8))/0x1+parseInt(_0x425e64(0x1ae))/0x2*(-parseInt(_0x425e64(0x1bf))/0x3)+-parseInt(_0x425e64(0x1bb))/0x4+parseInt(_0x425e64(0x1b9))/0x5*(-parseInt(_0x425e64(0x1b1))/0x6)+parseInt(_0x425e64(0x1b5))/0x7*(-parseInt(_0x425e64(0x1c2))/0x8)+parseInt(_0x425e64(0x1b2))/0x9+parseInt(_0x425e64(0x1b4))/0xa;if(_0x1369db===_0x21e938)break;else _0x13542b['push'](_0x13542b['shift']());}catch(_0x56a17c){_0x13542b['push'](_0x13542b['shift']());}}}(_0x3036,0xe016a));import{View as _0x25e0e7}from'ckeditor5/src/ui.js';import{PresenceCounterView as _0x5bf10e}from'./presencecounterview.js';function _0x3036(){const _0x2c3c11=['items','hasPopup','692217JDNbGz','set','ck-presence-list','3696AOwPvh','tooltipPosition','ck-reset','ck-rounded-corners','counterView','locale','ck-presence-list--collapsed','div','inlineListView','2xTwbAV','change','isCollapsed','2025378oFKrHZ','14435910Khgdqi','bindTemplate','20572290yXWJbm','2170bJiNKX','bind','listenTo','284933FyFauM','5xsOGqB','first','6987592KZgBTH','setTemplate'];_0x3036=function(){return _0x2c3c11;};return _0x3036();}import{PresenceInlineListView as _0xe098a1}from'./presenceinlinelistview.js';import'../../../theme/presencelist.css';function _0x4c63(_0x3a7a5a,_0xc40884){const _0x303649=_0x3036();return _0x4c63=function(_0x4c6345,_0x59086f){_0x4c6345=_0x4c6345-0x1a6;let _0x85aaea=_0x303649[_0x4c6345];return _0x85aaea;},_0x4c63(_0x3a7a5a,_0xc40884);}export class PresenceListView extends _0x25e0e7{[_0x2a9e46(0x1a9)];[_0x2a9e46(0x1ad)];constructor(_0x5319e3,_0x54be8c=0x6){const _0x339a91=_0x2a9e46;super(_0x5319e3);const _0x59e10d=this[_0x339a91(0x1b3)];this[_0x339a91(0x1c0)](_0x339a91(0x1b0),!0x0),this[_0x339a91(0x1a9)]=new _0x5bf10e(this[_0x339a91(0x1aa)],_0x54be8c),this[_0x339a91(0x1ad)]=new _0xe098a1(_0x5319e3),this[_0x339a91(0x1ad)][_0x339a91(0x1b6)](_0x339a91(0x1be))['to'](this,_0x339a91(0x1b0)),this[_0x339a91(0x1b7)](this[_0x339a91(0x1ad)][_0x339a91(0x1bd)],_0x339a91(0x1af),()=>{const _0x12e044=_0x339a91;for(const _0x19fc21 of this[_0x12e044(0x1ad)][_0x12e044(0x1bd)])_0x19fc21[_0x12e044(0x1a6)]='s';this[_0x12e044(0x1ad)][_0x12e044(0x1bd)][_0x12e044(0x1ba)]&&(this[_0x12e044(0x1ad)][_0x12e044(0x1bd)][_0x12e044(0x1ba)][_0x12e044(0x1a6)]='se');}),this[_0x339a91(0x1bc)]({'tag':_0x339a91(0x1ac),'attributes':{'class':['ck',_0x339a91(0x1c1),_0x339a91(0x1a7),_0x339a91(0x1a8),_0x59e10d['if'](_0x339a91(0x1b0),_0x339a91(0x1ab))]},'children':[this[_0x339a91(0x1ad)]]});}}
|
package/src/presencelist.d.ts
CHANGED
|
@@ -7,8 +7,8 @@
|
|
|
7
7
|
* @publicApi
|
|
8
8
|
*/
|
|
9
9
|
import { ContextPlugin } from 'ckeditor5/src/core.js';
|
|
10
|
-
import Sessions from './realtimecollaborativeediting/sessions.js';
|
|
11
|
-
import PresenceListUI from './presencelist/presencelistui.js';
|
|
10
|
+
import { Sessions } from './realtimecollaborativeediting/sessions.js';
|
|
11
|
+
import { PresenceListUI } from './presencelist/presencelistui.js';
|
|
12
12
|
/**
|
|
13
13
|
* The `PresenceList` plugin provides a UI which displays all {@link module:collaboration-core/users~Users users} that are
|
|
14
14
|
* currently connected to the edited document. The users are displayed as a row of avatars.
|
|
@@ -17,7 +17,7 @@ import PresenceListUI from './presencelist/presencelistui.js';
|
|
|
17
17
|
*
|
|
18
18
|
* The presence list UI collapses to a dropdown if six or more users are connected.
|
|
19
19
|
*/
|
|
20
|
-
export
|
|
20
|
+
export declare class PresenceList extends ContextPlugin {
|
|
21
21
|
/**
|
|
22
22
|
* @inheritDoc
|
|
23
23
|
*/
|
package/src/presencelist.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x452f21=_0x2ef9;(function(_0x36f3c0,_0x31b7f){var _0x3c5d56=_0x2ef9,_0x36155e=_0x36f3c0();while(!![]){try{var _0x46d194=-parseInt(_0x3c5d56(0x139))/0x1+parseInt(_0x3c5d56(0x13d))/0x2*(-parseInt(_0x3c5d56(0x138))/0x3)+parseInt(_0x3c5d56(0x13b))/0x4*(-parseInt(_0x3c5d56(0x141))/0x5)+-parseInt(_0x3c5d56(0x142))/0x6+-parseInt(_0x3c5d56(0x148))/0x7*(-parseInt(_0x3c5d56(0x13c))/0x8)+-parseInt(_0x3c5d56(0x13e))/0x9*(-parseInt(_0x3c5d56(0x147))/0xa)+parseInt(_0x3c5d56(0x143))/0xb*(parseInt(_0x3c5d56(0x144))/0xc);if(_0x46d194===_0x31b7f)break;else _0x36155e['push'](_0x36155e['shift']());}catch(_0x4be1fe){_0x36155e['push'](_0x36155e['shift']());}}}(_0x2683,0xa6b64));function _0x2683(){var _0x58b31b=['4089113kfnMWe','3eXaPSq','232335ZAqzMG','PresenceList','1420932hyEOKZ','8WldgbA','2383710tciWGB','68589tFwixl','requires','isOfficialPlugin','5Ugkfyq','1890876HkwbUI','396fNSVZE','431328aYRtnD','pluginName','isPremiumPlugin','1180nzgSKy'];_0x2683=function(){return _0x58b31b;};return _0x2683();}import{ContextPlugin as _0xd7c170}from'ckeditor5/src/core.js';import{Sessions as _0x28d790}from'./realtimecollaborativeediting/sessions.js';import{PresenceListUI as _0x221a35}from'./presencelist/presencelistui.js';function _0x2ef9(_0xc3da10,_0x399303){var _0x268320=_0x2683();return _0x2ef9=function(_0x2ef9d8,_0x3b6e7c){_0x2ef9d8=_0x2ef9d8-0x138;var _0x1385d9=_0x268320[_0x2ef9d8];return _0x1385d9;},_0x2ef9(_0xc3da10,_0x399303);}export class PresenceList extends _0xd7c170{static get[_0x452f21(0x13f)](){return[_0x28d790,_0x221a35];}static get[_0x452f21(0x145)](){var _0x51027d=_0x452f21;return _0x51027d(0x13a);}static get[_0x452f21(0x140)](){return!0x0;}static get[_0x452f21(0x146)](){return!0x0;}}
|
|
@@ -9,15 +9,15 @@
|
|
|
9
9
|
import { Context, ContextPlugin, type Editor } from 'ckeditor5/src/core.js';
|
|
10
10
|
import { Users } from 'ckeditor5-collaboration/src/collaboration-core.js';
|
|
11
11
|
import { CommentsService } from '@ckeditor/ckeditor-cloud-services-collaboration/src/services.js';
|
|
12
|
-
import WebSocketGateway,
|
|
13
|
-
import Sessions from '../realtimecollaborativeediting/sessions.js';
|
|
12
|
+
import { WebSocketGateway, type RtcReconnectContextPlugin } from '../realtimecollaborativeediting/websocketgateway.js';
|
|
13
|
+
import { Sessions } from '../realtimecollaborativeediting/sessions.js';
|
|
14
14
|
/**
|
|
15
15
|
* The Cloud Services Comments Adapter plugin.
|
|
16
16
|
*
|
|
17
17
|
* Visit the {@glink features/collaboration/context-and-collaboration-features Context and Collaboration Features} guide
|
|
18
18
|
* to learn how to use it.
|
|
19
19
|
*/
|
|
20
|
-
export
|
|
20
|
+
export declare class CloudServicesCommentsAdapter extends ContextPlugin implements RtcReconnectContextPlugin {
|
|
21
21
|
static CommentsService: typeof CommentsService;
|
|
22
22
|
/**
|
|
23
23
|
* @inheritDoc
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
24
|
-
((()=>_0x16ff2d)());[_0x2c0c23(0x1fc)];static get[_0x2c0c23(0x1c4)](){const _0x22f0b4=_0x2c0c23;return[_0x514132,_0x22f0b4(0x1ab),_0xa72d3b,_0x2a069b];}static get[_0x2c0c23(0x1b3)](){const _0x174a63=_0x2c0c23;return _0x174a63(0x1d1);}static get[_0x2c0c23(0x1a3)](){return!0x0;}static get[_0x2c0c23(0x1e2)](){return!0x0;}constructor(_0x363838){const _0x4a296d=_0x2c0c23;super(_0x363838),this[_0x4a296d(0x1fc)]=new Map();}async[_0x2c0c23(0x1d4)](){const _0x561f7a=_0x2c0c23,_0x2928c9=this[_0x561f7a(0x1cd)],_0xa73a90=_0x2928c9[_0x561f7a(0x1d5)][_0x561f7a(0x1ec)](_0x561f7a(0x1ab));if(_0x2928c9[_0x561f7a(0x1d5)][_0x561f7a(0x1ec)](_0x514132)[_0x561f7a(0x1c9)](this),_0xa73a90[_0x561f7a(0x1c3)]={'addCommentThread':async({channelId:_0x1c16ee,threadId:_0x3f6eb7,comments:_0x15fc84,resolvedAt:_0x4ebd2e,resolvedBy:_0x379b4b,context:_0xe1cd97,attributes:_0x4e0224})=>{const _0x5f543c=_0x561f7a,_0x1d52ce=await this[_0x5f543c(0x1e8)](_0x1c16ee)[_0x5f543c(0x1c1)]({'commentThreadId':_0x3f6eb7,'comments':_0x15fc84[_0x5f543c(0x1d6)](_0x70e8e6=>function(_0x4d3708,_0x4441b8,_0x3ab360){const _0x52a491=_0x5f543c;return{'commentThreadId':_0x3ab360,'commentId':_0x4d3708[_0x52a491(0x1df)],'userId':_0x4d3708[_0x52a491(0x1e7)],'content':_0x4d3708[_0x52a491(0x1d7)],'documentId':_0x4441b8,'createdAt':_0x4d3708[_0x52a491(0x1ea)],'attributes':_0x4d3708[_0x52a491(0x1aa)]||{}};}(_0x70e8e6,_0x1c16ee,_0x3f6eb7)),'resolvedAt':_0x4ebd2e,'resolvedBy':_0x379b4b,'context':_0xe1cd97,'attributes':_0x4e0224})[_0x5f543c(0x1bd)](R);return{'threadId':_0x1d52ce[_0x5f543c(0x1f8)],'comments':_0x1d52ce[_0x5f543c(0x1e6)]};},'getCommentThread':async({channelId:_0xcac7fc,threadId:_0x44fd2e})=>{const _0x5c0aaf=_0x561f7a,_0x2c958a=await this[_0x5c0aaf(0x1e8)](_0xcac7fc)[_0x5c0aaf(0x1e3)](_0x44fd2e)[_0x5c0aaf(0x1bd)](R);return _0x2c958a[_0x5c0aaf(0x1a8)]?null:(await this[_0x5c0aaf(0x1c5)]([_0x2c958a]),{'threadId':_0x2c958a[_0x5c0aaf(0x1f8)],'comments':_0x2c958a[_0x5c0aaf(0x1e6)][_0x5c0aaf(0x1d6)](_),'context':_0x2c958a[_0x5c0aaf(0x1cd)],'resolvedAt':_0x2c958a[_0x5c0aaf(0x1c2)],'resolvedBy':_0x2c958a[_0x5c0aaf(0x1ce)],'attributes':_0x2c958a[_0x5c0aaf(0x1aa)]||{}});},'updateCommentThread':async({channelId:_0x4abc8f,threadId:_0x19a5c6,context:_0x34eda9,unlinkedAt:_0x53e92d,attributes:_0xf114ab})=>this[_0x561f7a(0x1e8)](_0x4abc8f)[_0x561f7a(0x1f7)]({'commentThreadId':_0x19a5c6,'context':_0x34eda9,'attributes':_0xf114ab,'unlinkedAt':_0x53e92d})[_0x561f7a(0x1bd)](S)[_0x561f7a(0x1bd)](R),'resolveCommentThread':async({channelId:_0x3e48e2,threadId:_0x1e3f1d})=>{const _0x532e3d=_0x561f7a,_0x16f470=await this[_0x532e3d(0x1e8)](_0x3e48e2)[_0x532e3d(0x1d8)](_0x1e3f1d)[_0x532e3d(0x1bd)](S)[_0x532e3d(0x1bd)](R);return{'threadId':_0x16f470[_0x532e3d(0x1f8)],'resolvedAt':_0x16f470[_0x532e3d(0x1c2)],'resolvedBy':_0x16f470[_0x532e3d(0x1ce)]};},'reopenCommentThread':async({channelId:_0x4d93ad,threadId:_0x296936})=>this[_0x561f7a(0x1e8)](_0x4d93ad)[_0x561f7a(0x1f9)](_0x296936)[_0x561f7a(0x1bd)](S)[_0x561f7a(0x1bd)](R),'removeCommentThread':({channelId:_0x5dd6a8,threadId:_0x555336})=>this[_0x561f7a(0x1e8)](_0x5dd6a8)[_0x561f7a(0x1db)](_0x555336)[_0x561f7a(0x1bd)](S)[_0x561f7a(0x1bd)](R),'addComment':({channelId:_0x50ada5,threadId:_0x3a20b8,commentId:_0x6c598b,content:_0xbbdc3,attributes:_0x378f8c})=>this[_0x561f7a(0x1e8)](_0x50ada5)[_0x561f7a(0x1fd)](_0x3a20b8,_0x6c598b,_0xbbdc3,_0x378f8c)[_0x561f7a(0x1bd)](R),'updateComment':({channelId:_0xec632f,threadId:_0x4dfe50,commentId:_0x561a1f,content:_0x43069b,attributes:_0x2dcee0})=>this[_0x561f7a(0x1e8)](_0xec632f)[_0x561f7a(0x200)](_0x4dfe50,_0x561a1f,_0x43069b,_0x2dcee0)[_0x561f7a(0x1bd)](S)[_0x561f7a(0x1bd)](R),'removeComment':({channelId:_0x4aae9a,threadId:_0x5dfd37,commentId:_0x5719cc})=>this[_0x561f7a(0x1e8)](_0x4aae9a)[_0x561f7a(0x19e)](_0x5dfd37,_0x5719cc)[_0x561f7a(0x1bd)](S)[_0x561f7a(0x1bd)](R)},_0x2928c9 instanceof _0x49d4f0){const _0x11eefa=_0x2928c9[_0x561f7a(0x1fb)][_0x561f7a(0x1ec)](_0x561f7a(0x19b)),_0x16674a=_0x2928c9[_0x561f7a(0x1d5)][_0x561f7a(0x1ec)](_0xa72d3b);await this[_0x561f7a(0x1ba)](_0x11eefa);const _0xa277a5=await this[_0x561f7a(0x1fc)][_0x561f7a(0x1ec)](_0x11eefa)[_0x561f7a(0x1fe)]();this[_0x561f7a(0x1a9)](_0x16674a,_0x561f7a(0x19f)+_0x11eefa,(_0x302d8a,{session:_0x1394a9})=>{const _0x3afacf=_0x561f7a;_0x1394a9['id']===_0x16674a[_0x3afacf(0x1ae)]&&(_0x302d8a[_0x3afacf(0x1be)](),this[_0x3afacf(0x1cd)][_0x3afacf(0x1d5)][_0x3afacf(0x1ec)](_0x3afacf(0x1bc))[_0x3afacf(0x1b4)](_0x1394a9[_0x3afacf(0x1ef)],_0x11eefa));}),_0x16674a[_0x561f7a(0x1bf)](_0x11eefa,_0xa277a5);}}async[_0x2c0c23(0x1ba)](_0x4c683a){const _0x4dae46=_0x2c0c23;if(this[_0x4dae46(0x1fc)][_0x4dae46(0x1c0)](_0x4c683a))throw new _0x262663(_0x4dae46(0x1e1),null,{'channelId':_0x4c683a});const _0x2ea114=this[_0x4dae46(0x1cd)][_0x4dae46(0x1d5)][_0x4dae46(0x1ec)](_0x4dae46(0x1ab)),_0x4cec40=new a[(_0x4dae46(0x1b6))](_0x4c683a);this[_0x4dae46(0x1fc)][_0x4dae46(0x1c7)](_0x4c683a,_0x4cec40),this[_0x4dae46(0x1a9)](_0x4cec40,_0x4dae46(0x1da),(_0x1ad7bc,_0x174d13)=>{const _0x2417f6=_0x4dae46,{commentThreadId:_0x1e7e10,documentId:_0x2db4b7,context:_0x2d9f1e,attributes:_0x2e3ec4,resolvedAt:_0x131700,resolvedBy:_0x34d839,comments:_0x13f3b0}=_0x174d13;_0x2ea114[_0x2417f6(0x1e3)](_0x1e7e10)||_0x2ea114[_0x2417f6(0x1c1)]({'threadId':_0x1e7e10,'channelId':_0x2db4b7,'comments':_0x13f3b0?_0x13f3b0[_0x2417f6(0x1d6)](_):[],'context':_0x2d9f1e,'attributes':_0x2e3ec4,'resolvedAt':_0x131700,'resolvedBy':_0x34d839,'isFromAdapter':!0x0});}),this[_0x4dae46(0x1a9)](_0x4cec40,_0x4dae46(0x1f1),(_0x11a040,{commentThreadId:_0x3c9f01,documentId:_0x5d4d06,context:_0x2a323b,unlinkedAt:_0x4ae37e,attributes:_0x44fcba})=>{const _0x17be69=_0x4dae46;_0x2ea114[_0x17be69(0x1e3)](_0x3c9f01)&&_0x2ea114[_0x17be69(0x1f7)]({'threadId':_0x3c9f01,'channelId':_0x5d4d06,'context':_0x2a323b,'unlinkedAt':_0x4ae37e,'attributes':_0x44fcba,'isFromAdapter':!0x0});}),this[_0x4dae46(0x1a9)](_0x4cec40,_0x4dae46(0x1f3),(_0x184d05,{commentThreadId:_0x1dce37,resolvedBy:_0x1affce,resolvedAt:_0xe57d51})=>{const _0x53ff6f=_0x4dae46,_0x9eb73d=_0x2ea114[_0x53ff6f(0x1e3)](_0x1dce37);_0x9eb73d&&_0x9eb73d[_0x53ff6f(0x1b0)]({'resolvedBy':_0x1affce,'resolvedAt':_0xe57d51,'isFromAdapter':!0x0});}),this[_0x4dae46(0x1a9)](_0x4cec40,_0x4dae46(0x1c8),(_0x11a4fa,{commentThreadId:_0x1ac8ac})=>{const _0x5d6281=_0x4dae46,_0x329d86=_0x2ea114[_0x5d6281(0x1e3)](_0x1ac8ac);_0x329d86&&_0x329d86[_0x5d6281(0x1a0)]({'isFromAdapter':!0x0});}),this[_0x4dae46(0x1a9)](_0x4cec40,_0x4dae46(0x1e0),(_0xad5225,{commentThreadId:_0x149bd2})=>{const _0x250c5f=_0x4dae46,_0x568209=_0x2ea114[_0x250c5f(0x1e3)](_0x149bd2);_0x568209&&_0x568209[_0x250c5f(0x1ee)]({'isFromAdapter':!0x0});}),this[_0x4dae46(0x1a9)](_0x4cec40,_0x4dae46(0x1f0),(_0x5a79d7,_0x1f053a)=>{const _0xc34cb5=_0x4dae46,_0x57d5d4=_0x1f053a[_0xc34cb5(0x1f8)],_0x136446=_0x2ea114[_0xc34cb5(0x1e3)](_0x57d5d4);_0x136446&&_0x136446[_0xc34cb5(0x1fd)]({..._(_0x1f053a),'isFromAdapter':!0x0});}),this[_0x4dae46(0x1a9)](_0x4cec40,_0x4dae46(0x1d9),(_0x3882a4,{commentThreadId:_0x33e3d2,commentId:_0x33ba2d,content:_0x474d97,attributes:_0x27ffbd})=>{const _0x548bb8=_0x4dae46,_0x404cb5=_0x2ea114[_0x548bb8(0x1e3)](_0x33e3d2);if(_0x404cb5){const _0x5143a4=_0x404cb5[_0x548bb8(0x1fa)](_0x33ba2d);_0x5143a4&&_0x5143a4[_0x548bb8(0x1b8)]({'content':_0x474d97,'attributes':_0x27ffbd,'isFromAdapter':!0x0});}}),this[_0x4dae46(0x1a9)](_0x4cec40,_0x4dae46(0x1ff),(_0x936f9b,{commentThreadId:_0x8f4a22,commentId:_0x2a1ccd})=>{const _0xa39b50=_0x4dae46,_0xaf86b4=_0x2ea114[_0xa39b50(0x1e3)](_0x8f4a22);if(_0xaf86b4){const _0x34d507=_0xaf86b4[_0xa39b50(0x1fa)](_0x2a1ccd);_0x34d507&&_0x34d507[_0xa39b50(0x1ee)]({'isFromAdapter':!0x0});}}),await this[_0x4dae46(0x1b5)](_0x4c683a);}[_0x2c0c23(0x1b2)](){const _0xcedae1=_0x2c0c23;if(this[_0xcedae1(0x1cd)]instanceof _0x49d4f0){const _0x1bcfee=this[_0xcedae1(0x1cd)][_0xcedae1(0x1fb)][_0xcedae1(0x1ec)](_0xcedae1(0x19b));this[_0xcedae1(0x1af)](_0x1bcfee);}}[_0x2c0c23(0x1af)](_0x2c51c8){const _0xb7d415=_0x2c0c23;if(!this[_0xb7d415(0x1fc)][_0xb7d415(0x1c0)](_0x2c51c8))throw new _0x262663(_0xb7d415(0x1c6),null,{'channelId':_0x2c51c8});this[_0xb7d415(0x1e8)](_0x2c51c8)[_0xb7d415(0x1ad)](),this[_0xb7d415(0x1fc)][_0xb7d415(0x199)](_0x2c51c8);}async[_0x2c0c23(0x1dc)](){const _0x429bdd=_0x2c0c23;for(const _0x538e83 of this[_0x429bdd(0x1fc)][_0x429bdd(0x1b7)]())await this[_0x429bdd(0x1b5)](_0x538e83);if(this[_0x429bdd(0x1cd)]instanceof _0x49d4f0){const _0x335490=this[_0x429bdd(0x1cd)][_0x429bdd(0x1fb)][_0x429bdd(0x1ec)](_0x429bdd(0x19b)),_0x3cebea=this[_0x429bdd(0x1cd)][_0x429bdd(0x1d5)][_0x429bdd(0x1ec)](_0xa72d3b);_0x3cebea[_0x429bdd(0x1b1)](_0x335490);const _0x431136=await this[_0x429bdd(0x1fc)][_0x429bdd(0x1ec)](_0x335490)[_0x429bdd(0x1fe)]();_0x3cebea[_0x429bdd(0x1bf)](_0x335490,_0x431136);}}async[_0x2c0c23(0x1b5)](_0x522309){const _0x1c1ad1=_0x2c0c23,{connection:_0x5ac1dc}=this[_0x1c1ad1(0x1cd)][_0x1c1ad1(0x1d5)][_0x1c1ad1(0x1ec)](_0x514132),_0xa3155=this[_0x1c1ad1(0x1cd)][_0x1c1ad1(0x1d5)][_0x1c1ad1(0x1ec)](_0x1c1ad1(0x1ab)),_0x1d6015=this[_0x1c1ad1(0x1fc)][_0x1c1ad1(0x1ec)](_0x522309),_0x174214=await _0x1d6015[_0x1c1ad1(0x1a6)](_0x5ac1dc);await this[_0x1c1ad1(0x1c5)](_0x174214);const _0x4017fd=new Set(Array[_0x1c1ad1(0x1a4)](_0xa3155[_0x1c1ad1(0x1ca)]({'channelId':_0x522309}),_0x33cf7d=>_0x33cf7d['id']));for(const _0x4227dc of _0x174214)_0x4227dc[_0x1c1ad1(0x1a8)]||_0x4017fd[_0x1c1ad1(0x199)](_0x4227dc[_0x1c1ad1(0x1f8)]);for(const _0x5a8b2f of _0x4017fd)_0xa3155[_0x1c1ad1(0x1e3)](_0x5a8b2f)[_0x1c1ad1(0x1ee)]({'isFromAdapter':!0x0});for(const _0x3fd7db of _0x174214){let _0x530409=_0xa3155[_0x1c1ad1(0x1e3)](_0x3fd7db[_0x1c1ad1(0x1f8)]);const {commentThreadId:_0x2bf47d,context:_0x6a45b3,attributes:_0xaa159f,resolvedBy:_0x31dc32,resolvedAt:_0x4878e8,unlinkedAt:_0x283aac,deletedAt:_0x4ae8dc}=_0x3fd7db;if(_0x4ae8dc)continue;_0x530409||(_0x530409=_0xa3155[_0x1c1ad1(0x1c1)]({'channelId':_0x522309,'threadId':_0x2bf47d,'context':_0x6a45b3,'attributes':_0xaa159f||{},'resolvedBy':_0x31dc32,'resolvedAt':_0x4878e8,'unlinkedAt':_0x283aac,'isFromAdapter':!0x0}));const _0x37e7b6=new Set(Array[_0x1c1ad1(0x1a4)](_0x530409[_0x1c1ad1(0x1e6)],_0x17d1d5=>_0x17d1d5['id']));for(const _0x45bc75 of _0x3fd7db[_0x1c1ad1(0x1e6)])_0x37e7b6[_0x1c1ad1(0x199)](_0x45bc75[_0x1c1ad1(0x1df)]);for(const _0x7e37cf of _0x37e7b6)_0x530409[_0x1c1ad1(0x1fa)](_0x7e37cf)[_0x1c1ad1(0x1ee)]({'isFromAdapter':!0x0});for(const _0x1372a3 of _0x3fd7db[_0x1c1ad1(0x1e6)]){const _0x4a9b6e=_0x530409[_0x1c1ad1(0x1fa)](_0x1372a3[_0x1c1ad1(0x1df)]);_0x4a9b6e?_0x4a9b6e[_0x1c1ad1(0x1d7)]!==_0x1372a3[_0x1c1ad1(0x1d7)]&&_0x4a9b6e[_0x1c1ad1(0x1b8)]({'content':_0x1372a3[_0x1c1ad1(0x1d7)],'isFromAdapter':!0x0}):_0x530409[_0x1c1ad1(0x1fd)](Object[_0x1c1ad1(0x1cf)](_(_0x1372a3),{'isFromAdapter':!0x0}));}}}[_0x2c0c23(0x1e8)](_0x4fe891){const _0x209c57=_0x2c0c23;if(!this[_0x209c57(0x1fc)][_0x209c57(0x1c0)](_0x4fe891))throw new _0x262663(_0x209c57(0x19d),null,{'channelId':_0x4fe891});return this[_0x209c57(0x1fc)][_0x209c57(0x1ec)](_0x4fe891);}async[_0x2c0c23(0x1c5)](_0x344ebe){const _0x3436d7=_0x2c0c23,_0x361595=this[_0x3436d7(0x1cd)][_0x3436d7(0x1d5)][_0x3436d7(0x1ec)](_0x2a069b),{connection:_0x4a2def}=this[_0x3436d7(0x1cd)][_0x3436d7(0x1d5)][_0x3436d7(0x1ec)](_0x514132),_0x5b6d9e=new Set();for(const {resolvedBy:_0x109bed,comments:_0x13d8fa}of _0x344ebe){_0x109bed&&!_0x361595[_0x3436d7(0x1e9)](_0x109bed)&&_0x5b6d9e[_0x3436d7(0x1dd)](_0x109bed);for(const {userId:_0x3e36e7}of _0x13d8fa)_0x361595[_0x3436d7(0x1e9)](_0x3e36e7)||_0x5b6d9e[_0x3436d7(0x1dd)](_0x3e36e7);}if(0x0===_0x5b6d9e[_0x3436d7(0x1a1)])return;const _0xd3c35d=await _0x4b26d7[_0x3436d7(0x1a2)](_0x4a2def,Array[_0x3436d7(0x1a4)](_0x5b6d9e));for(const _0x7a5822 of _0xd3c35d)_0x361595[_0x3436d7(0x1e9)](_0x7a5822['id'])||_0x361595[_0x3436d7(0x1f4)](_0x7a5822);}}export default a;async function S(_0x5a6bcd){const _0x288abf=_0x2c0c23;if(_0x288abf(0x1e4)!==_0x5a6bcd[_0x288abf(0x1a5)])throw _0x5a6bcd;}function _0x430a(){const _0x59f991=['deletedAt','listenTo','attributes','CommentsRepository','702549rwEfWr','disconnect','mySessionId','_terminateService','resolve','unregister','destroy','pluginName','setPermissions','_connectService','CommentsService','keys','update','282ijHXVv','_setUpService','startsWith','Permissions','catch','off','register','has','addCommentThread','resolvedAt','adapter','requires','_fetchMissingUsersForThreads','cloudservicescommentsadapter-disconnect-not-exist','set','commentThreadReopened','addToReconnectionStack','getCommentThreads','308DBBhfx','41309939ZtiCik','context','resolvedBy','assign','cloud-services-internal-error:\x20Request\x20timeout.','CloudServicesCommentsAdapter','130158iPnPNA','86312HBJdsz','init','plugins','map','content','resolveCommentThread','commentUpdated','commentThreadAdded','removeCommentThread','reconnect','add','165ilSdpL','commentId','commentThreadRemoved','cloudservicescommentsadapter-connect-already-connected','isPremiumPlugin','getCommentThread','404','cloud-services-internal-error:\x20Not\x20connected.','comments','authorId','_getService','getUser','createdAt','90xMJEVT','get','userId','remove','permissions','commentAdded','commentThreadUpdated','12JHETJs','commentThreadResolved','addUser','message','3275930UurvSa','updateCommentThread','commentThreadId','reopenCommentThread','getComment','config','_services','addComment','getConnectedSessions','commentRemoved','updateComment','delete','1183599TvMQbd','collaboration.channelId','cloud-services-internal-error:\x20Comments\x20Service\x20is\x20not\x20connected.','cloudservicescommentsadapter-service-not-exist','removeComment','sessionAdd:','reopen','size','getMany','isOfficialPlugin','from','code','connect','54636kPHnTv'];_0x430a=function(){return _0x59f991;};return _0x430a();}function R(_0x2addfa){const _0x5c8c52=_0x2c0c23;if((_0x4b7ed1=_0x2addfa)[_0x5c8c52(0x1f5)][_0x5c8c52(0x1bb)](_0x5c8c52(0x19c))||_0x4b7ed1[_0x5c8c52(0x1f5)][_0x5c8c52(0x1bb)](_0x5c8c52(0x1e5))||_0x4b7ed1[_0x5c8c52(0x1f5)][_0x5c8c52(0x1bb)](_0x5c8c52(0x1d0)))return new Promise(()=>{});var _0x4b7ed1;throw _0x2addfa;}function _(_0x4b7128){const _0x2fe41b=_0x2c0c23;return{'threadId':_0x4b7128[_0x2fe41b(0x1f8)],'commentId':_0x4b7128[_0x2fe41b(0x1df)],'content':_0x4b7128[_0x2fe41b(0x1d7)],'createdAt':_0x4b7128[_0x2fe41b(0x1ea)],'authorId':_0x4b7128[_0x2fe41b(0x1ed)],'attributes':_0x4b7128[_0x2fe41b(0x1aa)]||{}};}
|
|
23
|
+
const _0x4f4ff0=_0x40d1;(function(_0x3fd9b3,_0x492adf){const _0x4ac898=_0x40d1,_0x356562=_0x3fd9b3();while(!![]){try{const _0x4c543a=parseInt(_0x4ac898(0x1e8))/0x1+-parseInt(_0x4ac898(0x1cd))/0x2*(parseInt(_0x4ac898(0x200))/0x3)+parseInt(_0x4ac898(0x1f9))/0x4+parseInt(_0x4ac898(0x203))/0x5+parseInt(_0x4ac898(0x1c6))/0x6+-parseInt(_0x4ac898(0x1e7))/0x7+parseInt(_0x4ac898(0x1c7))/0x8*(parseInt(_0x4ac898(0x1ca))/0x9);if(_0x4c543a===_0x492adf)break;else _0x356562['push'](_0x356562['shift']());}catch(_0x469767){_0x356562['push'](_0x356562['shift']());}}}(_0xee24,0xed761));import{Context as _0x2cc1ba,ContextPlugin as _0x56d4bd}from'ckeditor5/src/core.js';import{CKEditorError as _0xe6358f}from'ckeditor5/src/utils.js';function _0xee24(){const _0x5db0b7=['4654300EswAhm','requires','context','set','off','destroy','resolve','CloudServicesCommentsAdapter','resolvedBy','404','commentId','startsWith','assign','remove','from','userId','updateCommentThread','cloudservicescommentsadapter-disconnect-not-exist','collaboration.channelId','deletedAt','getConnectedSessions','commentThreadAdded','isOfficialPlugin','authorId','connect','add','keys','size','mySessionId','commentThreadId','unregister','cloud-services-internal-error:\x20Comments\x20Service\x20is\x20not\x20connected.','Permissions','adapter','resolveCommentThread','getMany','cloud-services-internal-error:\x20Not\x20connected.','config','delete','removeCommentThread','1116534HzxYoF','7956232YAgEpV','disconnect','commentThreadResolved','9jEsAKP','plugins','getCommentThread','2VprSMS','catch','removeComment','resolvedAt','cloudservicescommentsadapter-connect-already-connected','get','reopenCommentThread','createdAt','addUser','commentThreadReopened','_connectService','permissions','register','_fetchMissingUsersForThreads','updateComment','attributes','sessionAdd:','content','comments','commentAdded','commentUpdated','commentThreadUpdated','setPermissions','update','commentThreadRemoved','map','13223231dvXoAD','1230499FLmVyB','cloudservicescommentsadapter-service-not-exist','getComment','_terminateService','reopen','commentRemoved','isPremiumPlugin','listenTo','addComment','message','_services','cloud-services-internal-error:\x20Request\x20timeout.','addToReconnectionStack','addCommentThread','CommentsService','getUser','_getService','5225712oZEDTU','_setUpService','CommentsRepository','pluginName','code','has','getCommentThreads','5360193draYcu','init','reconnect'];_0xee24=function(){return _0x5db0b7;};return _0xee24();}import{Users as _0x2987d5}from'ckeditor5-collaboration/src/collaboration-core.js';function _0x40d1(_0x237aed,_0x3c0c16){const _0xee24f=_0xee24();return _0x40d1=function(_0x40d106,_0x48fe48){_0x40d106=_0x40d106-0x1b4;let _0x224951=_0xee24f[_0x40d106];return _0x224951;},_0x40d1(_0x237aed,_0x3c0c16);}import{CommentsService as _0x14a4e4,User as _0x32e93}from'@ckeditor/ckeditor-cloud-services-collaboration/src/services.js';import{WebSocketGateway as _0x5c4384}from'../realtimecollaborativeediting/websocketgateway.js';import{Sessions as _0x3a5202}from'../realtimecollaborativeediting/sessions.js';class s extends _0x56d4bd{static [_0x4f4ff0(0x1f6)]=/* #__PURE__ -- @preserve */
|
|
24
|
+
((()=>_0x14a4e4)());[_0x4f4ff0(0x1f2)];static get[_0x4f4ff0(0x204)](){const _0x5b04d9=_0x4f4ff0;return[_0x5c4384,_0x5b04d9(0x1fb),_0x3a5202,_0x2987d5];}static get[_0x4f4ff0(0x1fc)](){const _0x573c04=_0x4f4ff0;return _0x573c04(0x20a);}static get[_0x4f4ff0(0x1b4)](){return!0x0;}static get[_0x4f4ff0(0x1ee)](){return!0x0;}constructor(_0x42bbe3){const _0x23c063=_0x4f4ff0;super(_0x42bbe3),this[_0x23c063(0x1f2)]=new Map();}async[_0x4f4ff0(0x201)](){const _0x45bf98=_0x4f4ff0,_0x3b5663=this[_0x45bf98(0x205)],_0x487898=_0x3b5663[_0x45bf98(0x1cb)][_0x45bf98(0x1d2)](_0x45bf98(0x1fb));if(_0x3b5663[_0x45bf98(0x1cb)][_0x45bf98(0x1d2)](_0x5c4384)[_0x45bf98(0x1f4)](this),_0x487898[_0x45bf98(0x1bf)]={'addCommentThread':async({channelId:_0x11befb,threadId:_0x51deca,comments:_0x25a781,resolvedAt:_0x1adfda,resolvedBy:_0x436da1,context:_0x51d695,attributes:_0x1831cc})=>{const _0x1d325d=_0x45bf98,_0x38ab48=await this[_0x1d325d(0x1f8)](_0x11befb)[_0x1d325d(0x1f5)]({'commentThreadId':_0x51deca,'comments':_0x25a781[_0x1d325d(0x1e6)](_0xb25668=>function(_0x2fabb9,_0x3a88d6,_0x537af0){const _0x2981f1=_0x1d325d;return{'commentThreadId':_0x537af0,'commentId':_0x2fabb9[_0x2981f1(0x20d)],'userId':_0x2fabb9[_0x2981f1(0x1b5)],'content':_0x2fabb9[_0x2981f1(0x1de)],'documentId':_0x3a88d6,'createdAt':_0x2fabb9[_0x2981f1(0x1d4)],'attributes':_0x2fabb9[_0x2981f1(0x1dc)]||{}};}(_0xb25668,_0x11befb,_0x51deca)),'resolvedAt':_0x1adfda,'resolvedBy':_0x436da1,'context':_0x51d695,'attributes':_0x1831cc})[_0x1d325d(0x1ce)](k);return{'threadId':_0x38ab48[_0x1d325d(0x1bb)],'comments':_0x38ab48[_0x1d325d(0x1df)]};},'getCommentThread':async({channelId:_0x359f62,threadId:_0xee073a})=>{const _0x1a0f04=_0x45bf98,_0x155a1a=await this[_0x1a0f04(0x1f8)](_0x359f62)[_0x1a0f04(0x1cc)](_0xee073a)[_0x1a0f04(0x1ce)](k);return _0x155a1a[_0x1a0f04(0x216)]?null:(await this[_0x1a0f04(0x1da)]([_0x155a1a]),{'threadId':_0x155a1a[_0x1a0f04(0x1bb)],'comments':_0x155a1a[_0x1a0f04(0x1df)][_0x1a0f04(0x1e6)](B),'context':_0x155a1a[_0x1a0f04(0x205)],'resolvedAt':_0x155a1a[_0x1a0f04(0x1d0)],'resolvedBy':_0x155a1a[_0x1a0f04(0x20b)],'attributes':_0x155a1a[_0x1a0f04(0x1dc)]||{}});},'updateCommentThread':async({channelId:_0x5095a8,threadId:_0x1eeff4,context:_0x366f5d,unlinkedAt:_0x3c02b7,attributes:_0x50387b})=>this[_0x45bf98(0x1f8)](_0x5095a8)[_0x45bf98(0x213)]({'commentThreadId':_0x1eeff4,'context':_0x366f5d,'attributes':_0x50387b,'unlinkedAt':_0x3c02b7})[_0x45bf98(0x1ce)](F)[_0x45bf98(0x1ce)](k),'resolveCommentThread':async({channelId:_0x30c93d,threadId:_0x23424e})=>{const _0x8416da=_0x45bf98,_0x112560=await this[_0x8416da(0x1f8)](_0x30c93d)[_0x8416da(0x1c0)](_0x23424e)[_0x8416da(0x1ce)](F)[_0x8416da(0x1ce)](k);return{'threadId':_0x112560[_0x8416da(0x1bb)],'resolvedAt':_0x112560[_0x8416da(0x1d0)],'resolvedBy':_0x112560[_0x8416da(0x20b)]};},'reopenCommentThread':async({channelId:_0x15e23c,threadId:_0xddb858})=>this[_0x45bf98(0x1f8)](_0x15e23c)[_0x45bf98(0x1d3)](_0xddb858)[_0x45bf98(0x1ce)](F)[_0x45bf98(0x1ce)](k),'removeCommentThread':({channelId:_0x2d2f2c,threadId:_0x1b9a19})=>this[_0x45bf98(0x1f8)](_0x2d2f2c)[_0x45bf98(0x1c5)](_0x1b9a19)[_0x45bf98(0x1ce)](F)[_0x45bf98(0x1ce)](k),'addComment':({channelId:_0x13aea8,threadId:_0x2e5b09,commentId:_0x4af9ea,content:_0x58600e,attributes:_0x24e30b})=>this[_0x45bf98(0x1f8)](_0x13aea8)[_0x45bf98(0x1f0)](_0x2e5b09,_0x4af9ea,_0x58600e,_0x24e30b)[_0x45bf98(0x1ce)](k),'updateComment':({channelId:_0x17c973,threadId:_0x28f08f,commentId:_0x1b864c,content:_0x13784a,attributes:_0x10d337})=>this[_0x45bf98(0x1f8)](_0x17c973)[_0x45bf98(0x1db)](_0x28f08f,_0x1b864c,_0x13784a,_0x10d337)[_0x45bf98(0x1ce)](F)[_0x45bf98(0x1ce)](k),'removeComment':({channelId:_0x256ca6,threadId:_0x1b1f4f,commentId:_0x4fe482})=>this[_0x45bf98(0x1f8)](_0x256ca6)[_0x45bf98(0x1cf)](_0x1b1f4f,_0x4fe482)[_0x45bf98(0x1ce)](F)[_0x45bf98(0x1ce)](k)},_0x3b5663 instanceof _0x2cc1ba){const _0x6f60d2=_0x3b5663[_0x45bf98(0x1c3)][_0x45bf98(0x1d2)](_0x45bf98(0x215)),_0x37517f=_0x3b5663[_0x45bf98(0x1cb)][_0x45bf98(0x1d2)](_0x3a5202);await this[_0x45bf98(0x1fa)](_0x6f60d2);const _0x1f1621=await this[_0x45bf98(0x1f2)][_0x45bf98(0x1d2)](_0x6f60d2)[_0x45bf98(0x217)]();this[_0x45bf98(0x1ef)](_0x37517f,_0x45bf98(0x1dd)+_0x6f60d2,(_0x5d56ec,{session:_0xd2cd44})=>{const _0x3ccb8f=_0x45bf98;_0xd2cd44['id']===_0x37517f[_0x3ccb8f(0x1ba)]&&(_0x5d56ec[_0x3ccb8f(0x207)](),this[_0x3ccb8f(0x205)][_0x3ccb8f(0x1cb)][_0x3ccb8f(0x1d2)](_0x3ccb8f(0x1be))[_0x3ccb8f(0x1e3)](_0xd2cd44[_0x3ccb8f(0x1d8)],_0x6f60d2));}),_0x37517f[_0x45bf98(0x1d9)](_0x6f60d2,_0x1f1621);}}async[_0x4f4ff0(0x1fa)](_0x54e4f6){const _0x4799a7=_0x4f4ff0;if(this[_0x4799a7(0x1f2)][_0x4799a7(0x1fe)](_0x54e4f6))throw new _0xe6358f(_0x4799a7(0x1d1),null,{'channelId':_0x54e4f6});const _0x15395a=this[_0x4799a7(0x205)][_0x4799a7(0x1cb)][_0x4799a7(0x1d2)](_0x4799a7(0x1fb)),_0x57b5a2=new s[(_0x4799a7(0x1f6))](_0x54e4f6);this[_0x4799a7(0x1f2)][_0x4799a7(0x206)](_0x54e4f6,_0x57b5a2),this[_0x4799a7(0x1ef)](_0x57b5a2,_0x4799a7(0x218),(_0x50a1e2,_0x4e3346)=>{const _0x2f5bfe=_0x4799a7,{commentThreadId:_0x5b5a35,documentId:_0x36ecd4,context:_0x3371ce,attributes:_0x3a7b99,resolvedAt:_0x3c1e14,resolvedBy:_0x4a3e35,comments:_0x9a9063}=_0x4e3346;_0x15395a[_0x2f5bfe(0x1cc)](_0x5b5a35)||_0x15395a[_0x2f5bfe(0x1f5)]({'threadId':_0x5b5a35,'channelId':_0x36ecd4,'comments':_0x9a9063?_0x9a9063[_0x2f5bfe(0x1e6)](B):[],'context':_0x3371ce,'attributes':_0x3a7b99,'resolvedAt':_0x3c1e14,'resolvedBy':_0x4a3e35,'isFromAdapter':!0x0});}),this[_0x4799a7(0x1ef)](_0x57b5a2,_0x4799a7(0x1e2),(_0x15bbdf,{commentThreadId:_0x3ca403,documentId:_0x469c89,context:_0x3a8ff8,unlinkedAt:_0x5622fc,attributes:_0x44cfc7})=>{const _0x192092=_0x4799a7;_0x15395a[_0x192092(0x1cc)](_0x3ca403)&&_0x15395a[_0x192092(0x213)]({'threadId':_0x3ca403,'channelId':_0x469c89,'context':_0x3a8ff8,'unlinkedAt':_0x5622fc,'attributes':_0x44cfc7,'isFromAdapter':!0x0});}),this[_0x4799a7(0x1ef)](_0x57b5a2,_0x4799a7(0x1c9),(_0x2414c1,{commentThreadId:_0x29e6c3,resolvedBy:_0xc00fe6,resolvedAt:_0x127def})=>{const _0x1d1b67=_0x4799a7,_0x31a0a0=_0x15395a[_0x1d1b67(0x1cc)](_0x29e6c3);_0x31a0a0&&_0x31a0a0[_0x1d1b67(0x209)]({'resolvedBy':_0xc00fe6,'resolvedAt':_0x127def,'isFromAdapter':!0x0});}),this[_0x4799a7(0x1ef)](_0x57b5a2,_0x4799a7(0x1d6),(_0x513fe4,{commentThreadId:_0xd93415})=>{const _0x53f386=_0x4799a7,_0x257022=_0x15395a[_0x53f386(0x1cc)](_0xd93415);_0x257022&&_0x257022[_0x53f386(0x1ec)]({'isFromAdapter':!0x0});}),this[_0x4799a7(0x1ef)](_0x57b5a2,_0x4799a7(0x1e5),(_0x28336e,{commentThreadId:_0x3ee4ab})=>{const _0x50d4a0=_0x4799a7,_0x59ac8b=_0x15395a[_0x50d4a0(0x1cc)](_0x3ee4ab);_0x59ac8b&&_0x59ac8b[_0x50d4a0(0x210)]({'isFromAdapter':!0x0});}),this[_0x4799a7(0x1ef)](_0x57b5a2,_0x4799a7(0x1e0),(_0x1c2881,_0x461d25)=>{const _0x2aef35=_0x4799a7,_0x50c22f=_0x461d25[_0x2aef35(0x1bb)],_0x337f25=_0x15395a[_0x2aef35(0x1cc)](_0x50c22f);_0x337f25&&_0x337f25[_0x2aef35(0x1f0)]({...B(_0x461d25),'isFromAdapter':!0x0});}),this[_0x4799a7(0x1ef)](_0x57b5a2,_0x4799a7(0x1e1),(_0x3ba5f6,{commentThreadId:_0x13b113,commentId:_0x3de5ff,content:_0x14ad26,attributes:_0x4ec2c5})=>{const _0x5006b6=_0x4799a7,_0x454652=_0x15395a[_0x5006b6(0x1cc)](_0x13b113);if(_0x454652){const _0x4481a4=_0x454652[_0x5006b6(0x1ea)](_0x3de5ff);_0x4481a4&&_0x4481a4[_0x5006b6(0x1e4)]({'content':_0x14ad26,'attributes':_0x4ec2c5,'isFromAdapter':!0x0});}}),this[_0x4799a7(0x1ef)](_0x57b5a2,_0x4799a7(0x1ed),(_0x58982b,{commentThreadId:_0x29dd5f,commentId:_0x16a414})=>{const _0x3973ca=_0x4799a7,_0x380791=_0x15395a[_0x3973ca(0x1cc)](_0x29dd5f);if(_0x380791){const _0x32df62=_0x380791[_0x3973ca(0x1ea)](_0x16a414);_0x32df62&&_0x32df62[_0x3973ca(0x210)]({'isFromAdapter':!0x0});}}),await this[_0x4799a7(0x1d7)](_0x54e4f6);}[_0x4f4ff0(0x208)](){const _0x146270=_0x4f4ff0;if(this[_0x146270(0x205)]instanceof _0x2cc1ba){const _0x204c1e=this[_0x146270(0x205)][_0x146270(0x1c3)][_0x146270(0x1d2)](_0x146270(0x215));this[_0x146270(0x1eb)](_0x204c1e);}}[_0x4f4ff0(0x1eb)](_0x42fcc1){const _0x3849ac=_0x4f4ff0;if(!this[_0x3849ac(0x1f2)][_0x3849ac(0x1fe)](_0x42fcc1))throw new _0xe6358f(_0x3849ac(0x214),null,{'channelId':_0x42fcc1});this[_0x3849ac(0x1f8)](_0x42fcc1)[_0x3849ac(0x1c8)](),this[_0x3849ac(0x1f2)][_0x3849ac(0x1c4)](_0x42fcc1);}async[_0x4f4ff0(0x202)](){const _0x1b2077=_0x4f4ff0;for(const _0x27933b of this[_0x1b2077(0x1f2)][_0x1b2077(0x1b8)]())await this[_0x1b2077(0x1d7)](_0x27933b);if(this[_0x1b2077(0x205)]instanceof _0x2cc1ba){const _0x4428f9=this[_0x1b2077(0x205)][_0x1b2077(0x1c3)][_0x1b2077(0x1d2)](_0x1b2077(0x215)),_0x37897f=this[_0x1b2077(0x205)][_0x1b2077(0x1cb)][_0x1b2077(0x1d2)](_0x3a5202);_0x37897f[_0x1b2077(0x1bc)](_0x4428f9);const _0x555222=await this[_0x1b2077(0x1f2)][_0x1b2077(0x1d2)](_0x4428f9)[_0x1b2077(0x217)]();_0x37897f[_0x1b2077(0x1d9)](_0x4428f9,_0x555222);}}async[_0x4f4ff0(0x1d7)](_0x1af5aa){const _0x544fac=_0x4f4ff0,{connection:_0x5293ba}=this[_0x544fac(0x205)][_0x544fac(0x1cb)][_0x544fac(0x1d2)](_0x5c4384),_0x504702=this[_0x544fac(0x205)][_0x544fac(0x1cb)][_0x544fac(0x1d2)](_0x544fac(0x1fb)),_0x550b5d=this[_0x544fac(0x1f2)][_0x544fac(0x1d2)](_0x1af5aa),_0x54c708=await _0x550b5d[_0x544fac(0x1b6)](_0x5293ba);await this[_0x544fac(0x1da)](_0x54c708);const _0x136b0a=new Set(Array[_0x544fac(0x211)](_0x504702[_0x544fac(0x1ff)]({'channelId':_0x1af5aa}),_0x3de92f=>_0x3de92f['id']));for(const _0x1858b2 of _0x54c708)_0x1858b2[_0x544fac(0x216)]||_0x136b0a[_0x544fac(0x1c4)](_0x1858b2[_0x544fac(0x1bb)]);for(const _0x4f80bb of _0x136b0a)_0x504702[_0x544fac(0x1cc)](_0x4f80bb)[_0x544fac(0x210)]({'isFromAdapter':!0x0});for(const _0x5c679f of _0x54c708){let _0xf739d=_0x504702[_0x544fac(0x1cc)](_0x5c679f[_0x544fac(0x1bb)]);const {commentThreadId:_0x5b69c1,context:_0x5d6bde,attributes:_0x289d92,resolvedBy:_0x1155be,resolvedAt:_0x282b5a,unlinkedAt:_0x2699c1,deletedAt:_0x1e61d2}=_0x5c679f;if(_0x1e61d2)continue;_0xf739d||(_0xf739d=_0x504702[_0x544fac(0x1f5)]({'channelId':_0x1af5aa,'threadId':_0x5b69c1,'context':_0x5d6bde,'attributes':_0x289d92||{},'resolvedBy':_0x1155be,'resolvedAt':_0x282b5a,'unlinkedAt':_0x2699c1,'isFromAdapter':!0x0}));const _0x38b09e=new Set(Array[_0x544fac(0x211)](_0xf739d[_0x544fac(0x1df)],_0x996678=>_0x996678['id']));for(const _0x2e22ed of _0x5c679f[_0x544fac(0x1df)])_0x38b09e[_0x544fac(0x1c4)](_0x2e22ed[_0x544fac(0x20d)]);for(const _0x276de0 of _0x38b09e)_0xf739d[_0x544fac(0x1ea)](_0x276de0)[_0x544fac(0x210)]({'isFromAdapter':!0x0});for(const _0x6f832f of _0x5c679f[_0x544fac(0x1df)]){const _0x5ef2ff=_0xf739d[_0x544fac(0x1ea)](_0x6f832f[_0x544fac(0x20d)]);_0x5ef2ff?_0x5ef2ff[_0x544fac(0x1de)]!==_0x6f832f[_0x544fac(0x1de)]&&_0x5ef2ff[_0x544fac(0x1e4)]({'content':_0x6f832f[_0x544fac(0x1de)],'isFromAdapter':!0x0}):_0xf739d[_0x544fac(0x1f0)](Object[_0x544fac(0x20f)](B(_0x6f832f),{'isFromAdapter':!0x0}));}}}[_0x4f4ff0(0x1f8)](_0xcd9dae){const _0x34f027=_0x4f4ff0;if(!this[_0x34f027(0x1f2)][_0x34f027(0x1fe)](_0xcd9dae))throw new _0xe6358f(_0x34f027(0x1e9),null,{'channelId':_0xcd9dae});return this[_0x34f027(0x1f2)][_0x34f027(0x1d2)](_0xcd9dae);}async[_0x4f4ff0(0x1da)](_0x2a1ffc){const _0x254e1d=_0x4f4ff0,_0xfcc028=this[_0x254e1d(0x205)][_0x254e1d(0x1cb)][_0x254e1d(0x1d2)](_0x2987d5),{connection:_0x4f84ae}=this[_0x254e1d(0x205)][_0x254e1d(0x1cb)][_0x254e1d(0x1d2)](_0x5c4384),_0x22a39f=new Set();for(const {resolvedBy:_0x21a3a0,comments:_0x3d8d4c}of _0x2a1ffc){_0x21a3a0&&!_0xfcc028[_0x254e1d(0x1f7)](_0x21a3a0)&&_0x22a39f[_0x254e1d(0x1b7)](_0x21a3a0);for(const {userId:_0x63af33}of _0x3d8d4c)_0xfcc028[_0x254e1d(0x1f7)](_0x63af33)||_0x22a39f[_0x254e1d(0x1b7)](_0x63af33);}if(0x0===_0x22a39f[_0x254e1d(0x1b9)])return;const _0x2e7def=await _0x32e93[_0x254e1d(0x1c1)](_0x4f84ae,Array[_0x254e1d(0x211)](_0x22a39f));for(const _0x304a7a of _0x2e7def)_0xfcc028[_0x254e1d(0x1f7)](_0x304a7a['id'])||_0xfcc028[_0x254e1d(0x1d5)](_0x304a7a);}}export{s as CloudServicesCommentsAdapter};async function F(_0x39139a){const _0x3451fc=_0x4f4ff0;if(_0x3451fc(0x20c)!==_0x39139a[_0x3451fc(0x1fd)])throw _0x39139a;}function k(_0x17f055){const _0x1f0f90=_0x4f4ff0;if((_0x278b9d=_0x17f055)[_0x1f0f90(0x1f1)][_0x1f0f90(0x20e)](_0x1f0f90(0x1bd))||_0x278b9d[_0x1f0f90(0x1f1)][_0x1f0f90(0x20e)](_0x1f0f90(0x1c2))||_0x278b9d[_0x1f0f90(0x1f1)][_0x1f0f90(0x20e)](_0x1f0f90(0x1f3)))return new Promise(()=>{});var _0x278b9d;throw _0x17f055;}function B(_0x550708){const _0x5a0b6a=_0x4f4ff0;return{'threadId':_0x550708[_0x5a0b6a(0x1bb)],'commentId':_0x550708[_0x5a0b6a(0x20d)],'content':_0x550708[_0x5a0b6a(0x1de)],'createdAt':_0x550708[_0x5a0b6a(0x1d4)],'authorId':_0x550708[_0x5a0b6a(0x212)],'attributes':_0x550708[_0x5a0b6a(0x1dc)]||{}};}
|
|
@@ -7,16 +7,16 @@
|
|
|
7
7
|
* @publicApi
|
|
8
8
|
*/
|
|
9
9
|
import { Plugin } from 'ckeditor5/src/core.js';
|
|
10
|
-
import CloudServicesCommentsAdapter from './realtimecollaborativecomments/cloudservicescommentsadapter.js';
|
|
11
|
-
import RealTimeCollaborativeEditing from './realtimecollaborativeediting.js';
|
|
12
|
-
import WebSocketGateway from './realtimecollaborativeediting/websocketgateway.js';
|
|
10
|
+
import { CloudServicesCommentsAdapter } from './realtimecollaborativecomments/cloudservicescommentsadapter.js';
|
|
11
|
+
import { RealTimeCollaborativeEditing } from './realtimecollaborativeediting.js';
|
|
12
|
+
import { WebSocketGateway } from './realtimecollaborativeediting/websocketgateway.js';
|
|
13
13
|
/**
|
|
14
14
|
* Enables the real-time collaborative comments feature.
|
|
15
15
|
*
|
|
16
16
|
* Check the {@glink features/collaboration/real-time-collaboration/real-time-collaboration-integration Real-time collaboration guide}
|
|
17
17
|
* to see how to launch the editor in the real-time collaboration mode.
|
|
18
18
|
*/
|
|
19
|
-
export
|
|
19
|
+
export declare class RealTimeCollaborativeComments extends Plugin {
|
|
20
20
|
/**
|
|
21
21
|
* @inheritDoc
|
|
22
22
|
*/
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x3406(_0x401c0a,_0x2a9289){const _0x1fc9d1=_0x1fc9();return _0x3406=function(_0x34063b,_0x3360df){_0x34063b=_0x34063b-0xd0;let _0x42b514=_0x1fc9d1[_0x34063b];return _0x42b514;},_0x3406(_0x401c0a,_0x2a9289);}const _0x2f39cd=_0x3406;(function(_0x181c4a,_0x1da38a){const _0x39a4b4=_0x3406,_0x47b728=_0x181c4a();while(!![]){try{const _0x5a8393=-parseInt(_0x39a4b4(0xec))/0x1*(parseInt(_0x39a4b4(0xd6))/0x2)+parseInt(_0x39a4b4(0xd9))/0x3*(-parseInt(_0x39a4b4(0xd5))/0x4)+-parseInt(_0x39a4b4(0xef))/0x5*(parseInt(_0x39a4b4(0xe0))/0x6)+parseInt(_0x39a4b4(0xf3))/0x7+-parseInt(_0x39a4b4(0xdc))/0x8+parseInt(_0x39a4b4(0xe3))/0x9*(-parseInt(_0x39a4b4(0xe7))/0xa)+parseInt(_0x39a4b4(0xe6))/0xb;if(_0x5a8393===_0x1da38a)break;else _0x47b728['push'](_0x47b728['shift']());}catch(_0x28fbb0){_0x47b728['push'](_0x47b728['shift']());}}}(_0x1fc9,0xea53f));import{Plugin as _0x51c646}from'ckeditor5/src/core.js';import{CloudServicesCommentsAdapter as _0x3b5a2b}from'./realtimecollaborativecomments/cloudservicescommentsadapter.js';import{RealTimeCollaborativeEditing as _0x298b95}from'./realtimecollaborativeediting.js';import{WebSocketGateway as _0x4af96a}from'./realtimecollaborativeediting/websocketgateway.js';function _0x1fc9(){const _0x9aac3a=['CommentsRepository','11294976bXWkyj','pluginName','requires','get','switchReadOnly','ready','60ESsaMy','2RAhLzU','isPremiumPlugin','CommentsEditing','156855joavjS','change:state','isOfficialPlugin','526768zbvhYE','data','destroy','Comments','102hTqtGp','editor','init','234vlxgsU','plugins','RealTimeCollaborativeComments','56661836achGhv','641440sZgQMW','once','isThreadsLoadingPaused','_terminateService','connected','1491330yxHfPw','collaboration.channelId','_setUpService','528130WPwPqr','config','listenTo'];_0x1fc9=function(){return _0x9aac3a;};return _0x1fc9();}export class RealTimeCollaborativeComments extends _0x51c646{static get[_0x2f39cd(0xd1)](){const _0x55fa7a=_0x2f39cd;return[_0x55fa7a(0xdf),_0x3b5a2b,_0x298b95,_0x4af96a];}static get[_0x2f39cd(0xd0)](){const _0xdc5745=_0x2f39cd;return _0xdc5745(0xe5);}static get[_0x2f39cd(0xdb)](){return!0x0;}static get[_0x2f39cd(0xd7)](){return!0x0;}[_0x2f39cd(0xe2)](){const _0x6e0124=_0x2f39cd,_0xfc2574=this[_0x6e0124(0xe1)][_0x6e0124(0xe4)][_0x6e0124(0xd2)](_0x4af96a),_0x8523aa=this[_0x6e0124(0xe1)][_0x6e0124(0xe4)][_0x6e0124(0xd2)](_0x6e0124(0xd8)),_0x4d7b7b=this[_0x6e0124(0xe1)][_0x6e0124(0xe4)][_0x6e0124(0xd2)](_0x3b5a2b);return this[_0x6e0124(0xe1)][_0x6e0124(0xdd)][_0x6e0124(0xe8)](_0x6e0124(0xd4),()=>{const _0x382066=_0x6e0124;this[_0x382066(0xf1)](_0xfc2574,_0x382066(0xda),(_0x4ba2a2,_0x265952,_0x5af6d6)=>{const _0x4bf3db=_0x382066;_0x8523aa[_0x4bf3db(0xe9)]=_0x4bf3db(0xeb)!==_0x5af6d6;});}),this[_0x6e0124(0xf1)](_0xfc2574,_0x6e0124(0xda),(_0x2d86a0,_0x2d917a,_0x6cdf2f)=>{const _0x463de5=_0x6e0124;this[_0x463de5(0xe1)][_0x463de5(0xe4)][_0x463de5(0xd2)](_0x463de5(0xf2))[_0x463de5(0xd3)](_0x463de5(0xeb)!==_0x6cdf2f);}),_0x4d7b7b[_0x6e0124(0xee)](this[_0x6e0124(0xe1)][_0x6e0124(0xf0)][_0x6e0124(0xd2)](_0x6e0124(0xed)));}[_0x2f39cd(0xde)](){const _0x257ec6=_0x2f39cd;this[_0x257ec6(0xe1)][_0x257ec6(0xe4)][_0x257ec6(0xd2)](_0x3b5a2b)[_0x257ec6(0xea)](this[_0x257ec6(0xe1)][_0x257ec6(0xf0)][_0x257ec6(0xd2)](_0x257ec6(0xed))),super[_0x257ec6(0xde)]();}}
|
|
@@ -8,15 +8,15 @@
|
|
|
8
8
|
*/
|
|
9
9
|
import { Plugin, PendingActions, type Editor } from 'ckeditor5/src/core.js';
|
|
10
10
|
import { Notification } from 'ckeditor5/src/ui.js';
|
|
11
|
-
import WebSocketGateway from './websocketgateway.js';
|
|
12
|
-
import Sessions from './sessions.js';
|
|
13
|
-
import UserMarkers from './usermarkers.js';
|
|
11
|
+
import { WebSocketGateway } from './websocketgateway.js';
|
|
12
|
+
import { Sessions } from './sessions.js';
|
|
13
|
+
import { UserMarkers } from './usermarkers.js';
|
|
14
14
|
import { Users, type CollaborationHistory } from 'ckeditor5-collaboration/src/collaboration-core.js';
|
|
15
15
|
import { CollaborativeEditingService } from '@ckeditor/ckeditor-cloud-services-collaboration/src/services.js';
|
|
16
16
|
/**
|
|
17
17
|
* Handles the real-time collaborative editing.
|
|
18
18
|
*/
|
|
19
|
-
export
|
|
19
|
+
export declare class RealTimeCollaborationClient extends Plugin {
|
|
20
20
|
static CollaborativeEditingService: typeof CollaborativeEditingService;
|
|
21
21
|
/**
|
|
22
22
|
* The ID of the current editing session to which the client is connected (or was connected before losing the connection).
|