@ckeditor/ckeditor5-real-time-collaboration 47.7.2-alpha.0 → 47.7.2
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/package.json +14 -14
- package/src/presencelist/view/presencedropdownlistitemview.js +1 -1
- package/src/presencelist/view/presencedropdownlistview.js +1 -1
- package/src/presencelist/view/presenceinlinelistitemview.js +1 -1
- package/src/presencelist/view/presenceinlinelistview.js +1 -1
- package/src/realtimecollaborativecomments/cloudservicescommentsadapter.js +2 -2
- package/src/realtimecollaborativeediting/realtimecollaborationclient.js +2 -2
- package/src/realtimecollaborativeediting/usermarkers.js +1 -1
- package/src/realtimecollaborativeediting/websocketgateway.js +2 -2
- package/src/realtimecollaborativetrackchanges/cloudservicestrackchangesadapter.js +2 -2
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
24
|
-
((()=>
|
|
23
|
+
const _0x42af2f=_0x3969;(function(_0x3a92bd,_0xb581d8){const _0x5d09ab=_0x3969,_0x4da469=_0x3a92bd();while(!![]){try{const _0x52275c=parseInt(_0x5d09ab(0xcf))/0x1*(parseInt(_0x5d09ab(0xdb))/0x2)+-parseInt(_0x5d09ab(0xaf))/0x3+-parseInt(_0x5d09ab(0xca))/0x4+parseInt(_0x5d09ab(0xc6))/0x5+-parseInt(_0x5d09ab(0xb1))/0x6*(-parseInt(_0x5d09ab(0xad))/0x7)+-parseInt(_0x5d09ab(0xdc))/0x8+parseInt(_0x5d09ab(0x96))/0x9*(parseInt(_0x5d09ab(0xd0))/0xa);if(_0x52275c===_0xb581d8)break;else _0x4da469['push'](_0x4da469['shift']());}catch(_0xd667a8){_0x4da469['push'](_0x4da469['shift']());}}}(_0x5a85,0xe6c96));function _0x5a85(){const _0x40e23e=['_reconnect','5691385avGkOk','bind','isOfficialPlugin','isInReconnectionStack','3421680TVjaOl','code','catch','_shouldPluginsReconnect','reconnect','1aqfwqY','5113430bRnpaD','websocketgateway-plugin-already-registered','webSocketUrl','destroy','connect','error','WebSocketGateway','websocketgateway-invalid-plugin-interface','define','DISCONNECTED','Connected\x20users\x20limit\x20exceeded','3450832mrYuNe','12561600hNQMaF','connected','real-time-collaboration','limitExceeded','9UkRlnG','config','init','_domEmitter','has','from','state','pluginName','requires','then','get','function','add','disconnect','constructor','offline','stopListening','isPremiumPlugin','context','websocketgateway-missing-token','removeFromReconnectionStack','all','addToReconnectionStack','8477qFBaHE','change:me','4996818XvWRMG','delete','8232CggoFp','cloudservices-init','online','cloudServices.connectionTimeout','set','initialReconnectionInterval','showWarning','The\x20limit\x20of\x20maximum\x20concurrent\x20connections\x20that\x20the\x20collaboration\x20server\x20can\x20handle\x20has\x20been\x20reached.\x20Try\x20opening\x20the\x20document\x20again\x20in\x20a\x20few\x20minutes.\x20Please\x20contact\x20your\x20system\x20administrator\x20if\x20the\x20problem\x20persists.','_reconnectionStack','connection','CONNECTED','_isBrowserOffline','listenTo','cloudservices-reconnection-error','CONNECTING','token','cloudServices.requestTimeout','websocketgateway-missing-websocket-url','plugins','CloudServices'];_0x5a85=function(){return _0x40e23e;};return _0x5a85();}import{ContextPlugin as _0x256bfb}from'ckeditor5/src/core.js';import{DomEmitterMixin as _0x20f159,CKEditorError as _0x1eb1a8}from'ckeditor5/src/utils.js';import{WebSocketGateway as _0x26ebae,WEB_SOCKET_GATEWAY_STATES as _0x4d68cc}from'@ckeditor/ckeditor-cloud-services-collaboration/src/services.js';import{Notification as _0x404828}from'ckeditor5/src/ui.js';function _0x3969(_0x1858b1,_0x475a5){const _0x5a85b5=_0x5a85();return _0x3969=function(_0x3969d7,_0x4d03c1){_0x3969d7=_0x3969d7-0x93;let _0x1f72ce=_0x5a85b5[_0x3969d7];return _0x1f72ce;},_0x3969(_0x1858b1,_0x475a5);}export class WebSocketGateway extends _0x256bfb{static [_0x42af2f(0xd6)]=/* #__PURE__ -- @preserve */
|
|
24
|
+
((()=>_0x26ebae)());static [_0x42af2f(0xb6)]=0x3e8;[_0x42af2f(0xba)];[_0x42af2f(0xb9)];[_0x42af2f(0xcd)];[_0x42af2f(0x99)];static get[_0x42af2f(0x9e)](){const _0x50ccf7=_0x42af2f;return[_0x50ccf7(0xc4),_0x404828];}static get[_0x42af2f(0x9d)](){const _0x3a7b28=_0x42af2f;return _0x3a7b28(0xd6);}static get[_0x42af2f(0xc8)](){return!0x0;}static get[_0x42af2f(0xa7)](){return!0x0;}constructor(_0x34f224){const _0x4be4ab=_0x42af2f;super(_0x34f224),this[_0x4be4ab(0xb5)](_0x4be4ab(0x9c),_0x4d68cc[_0x4be4ab(0xbb)]),this[_0x4be4ab(0xb5)](_0x4be4ab(0xbc),!0x1),this[_0x4be4ab(0xb9)]=new Set(),this[_0x4be4ab(0xcd)]=!0x1,this[_0x4be4ab(0x99)]=new(_0x20f159())();}[_0x42af2f(0x98)](){const _0x4e603c=_0x42af2f,_0xbab656=this[_0x4e603c(0xa8)],_0x347d3d=_0xbab656[_0x4e603c(0xc3)][_0x4e603c(0xa0)](_0x4e603c(0xc4)),_0x4ca4bc=_0xbab656[_0x4e603c(0xc3)][_0x4e603c(0xa0)](_0x404828);if(!_0x347d3d[_0x4e603c(0xc0)])throw new _0x1eb1a8(_0x4e603c(0xa9),this);if(!_0x347d3d[_0x4e603c(0xd2)])throw new _0x1eb1a8(_0x4e603c(0xc2),this);return this[_0x4e603c(0x99)][_0x4e603c(0xbd)](window,_0x4e603c(0xa5),()=>this[_0x4e603c(0xbc)]=!0x0),this[_0x4e603c(0x99)][_0x4e603c(0xbd)](window,_0x4e603c(0xb3),()=>this[_0x4e603c(0xbc)]=!0x1),this[_0x4e603c(0xa8)][_0x4e603c(0x97)][_0x4e603c(0xd8)](_0x4e603c(0xb4),0xa),this[_0x4e603c(0xa8)][_0x4e603c(0x97)][_0x4e603c(0xd8)](_0x4e603c(0xc1),0x14),WebSocketGateway[_0x4e603c(0xd6)][_0x4e603c(0xd4)](_0x347d3d[_0x4e603c(0xc0)],_0x347d3d[_0x4e603c(0xd2)],{'timeout':0x3e8*this[_0x4e603c(0xa8)][_0x4e603c(0x97)][_0x4e603c(0xa0)](_0x4e603c(0xb4)),'requestTimeout':0x3e8*this[_0x4e603c(0xa8)][_0x4e603c(0x97)][_0x4e603c(0xa0)](_0x4e603c(0xc1))})[_0x4e603c(0x9f)](_0xf51fca=>{const _0x2cb49c=_0x4e603c;if(this[_0x2cb49c(0xba)]=_0xf51fca,this[_0x2cb49c(0xc7)](_0x2cb49c(0x9c))['to'](_0xf51fca,_0x2cb49c(0x9c),this,_0x2cb49c(0xbc),(_0x4cbef2,_0x458181)=>(_0x2cb49c(0x93)!==_0x4cbef2&&(this[_0x2cb49c(0xcd)]=!0x0),_0x458181||_0x4cbef2!==_0x4d68cc[_0x2cb49c(0xbb)]?_0x4d68cc[_0x2cb49c(0xd9)]:this[_0x2cb49c(0x9c)]==_0x4d68cc[_0x2cb49c(0xd9)]&&this[_0x2cb49c(0xcd)]?(this[_0x2cb49c(0xcd)]=!0x1,this[_0x2cb49c(0xc5)](),_0x4d68cc[_0x2cb49c(0xbf)]):_0x4d68cc[_0x2cb49c(0xbb)])),this[_0x2cb49c(0xba)]['on'](_0x2cb49c(0xd5),(_0xe1662c,_0x3344fa)=>{const _0xedd401=_0x2cb49c;if(_0xedd401(0x95)!==_0x3344fa[_0xedd401(0xcb)])throw console[_0xedd401(0xd5)](_0x3344fa),new _0x1eb1a8(_0xedd401(0xb2),null,{'originalError':_0x3344fa});_0x4ca4bc[_0xedd401(0xb7)](_0xedd401(0xb8),{'title':_0xedd401(0xda),'namespace':_0xedd401(0x94)});}),!_0xf51fca['me'])return new Promise(_0x36181d=>_0xf51fca['on'](_0x2cb49c(0xae),_0x36181d));})[_0x4e603c(0xcc)](_0x302824=>{const _0x42c6cd=_0x4e603c;throw console[_0x42c6cd(0xd5)](_0x302824),new _0x1eb1a8(_0x42c6cd(0xb2),null,{'originalError':_0x302824});});}[_0x42af2f(0xac)](_0x1a93fc){const _0x3ba8bf=_0x42af2f;if(_0x3ba8bf(0xa1)!=typeof _0x1a93fc[_0x3ba8bf(0xce)])throw new _0x1eb1a8(_0x3ba8bf(0xd7),this);if(this[_0x3ba8bf(0xc9)](_0x1a93fc))throw new _0x1eb1a8(_0x3ba8bf(0xd1),this,{'name':_0x1a93fc[_0x3ba8bf(0xa4)][_0x3ba8bf(0x9d)]});this[_0x3ba8bf(0xb9)][_0x3ba8bf(0xa2)](_0x1a93fc);}[_0x42af2f(0xaa)](_0x14b3eb){const _0x2ac127=_0x42af2f;this[_0x2ac127(0xb9)][_0x2ac127(0xb0)](_0x14b3eb);}[_0x42af2f(0xc9)](_0x4dc93d){const _0x1ed3dd=_0x42af2f;return this[_0x1ed3dd(0xb9)][_0x1ed3dd(0x9a)](_0x4dc93d);}[_0x42af2f(0xc5)](){const _0x10eabc=_0x42af2f;return this[_0x10eabc(0xba)][_0x10eabc(0xce)]()[_0x10eabc(0x9f)](()=>Promise[_0x10eabc(0xab)](Array[_0x10eabc(0x9b)](this[_0x10eabc(0xb9)],_0x48ff30=>_0x48ff30[_0x10eabc(0xce)]())))[_0x10eabc(0x9f)](()=>this[_0x10eabc(0x9c)]=_0x4d68cc[_0x10eabc(0xbb)])[_0x10eabc(0xcc)](_0x5cd5fc=>{const _0x1a4038=_0x10eabc;throw console[_0x1a4038(0xd5)](_0x5cd5fc),new _0x1eb1a8(_0x1a4038(0xbe),this[_0x1a4038(0xa8)]);});}[_0x42af2f(0xa3)](){const _0x52b56c=_0x42af2f;this[_0x52b56c(0xba)]&&this[_0x52b56c(0xba)][_0x52b56c(0xa3)](),this[_0x52b56c(0x9c)]=_0x4d68cc[_0x52b56c(0xd9)],this[_0x52b56c(0x99)][_0x52b56c(0xa6)]();}[_0x42af2f(0xd3)](){const _0x289590=_0x42af2f;this[_0x289590(0xa3)](),super[_0x289590(0xd3)]();}}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
24
|
-
((()=>
|
|
23
|
+
function _0x1a8c(){const _0x796ee3=['startsWith','2892780eSvGxz','498764uBXZhA','collaboration.channelId','originalSuggestionId','reconnect','catch','message','type','1606905RQdexA','adapter','off','get','listenTo','_trackChangesService','editor','size','connection','isConnected','7023604KtCURa','isOfficialPlugin','getUser','9UcYhKp','addUser','open','addSuggestionData','TrackChangesService','requires','init','pluginName','getMany','cloud-services-internal-error:\x20Request\x20timeout.','getSuggestion','plugins','state','20sxODcJ','from','5641947afzgZx','connect','find','isPremiumPlugin','addToReconnectionStack','connected','_fetchMissingUsersForThreads','26071460MUOKth','update','then','cloud-services-internal-error:\x20Not\x20connected.','hasSuggestion','config','set','attributes','suggestionUpdated','_saved','_waitForServiceReady','88607yUTxac','TrackChangesEditing','_bufferedRequests','add','CloudServicesTrackChangesAdapter','values','data','delete','8kYtNcE','11jqewhv'];_0x1a8c=function(){return _0x796ee3;};return _0x1a8c();}const _0x500933=_0x165b;(function(_0x429fe1,_0x44c93b){const _0x3914ca=_0x165b,_0x1dc286=_0x429fe1();while(!![]){try{const _0x1c2b41=-parseInt(_0x3914ca(0xf6))/0x1*(parseInt(_0x3914ca(0xe2))/0x2)+parseInt(_0x3914ca(0x116))/0x3*(parseInt(_0x3914ca(0x102))/0x4)+-parseInt(_0x3914ca(0x109))/0x5+parseInt(_0x3914ca(0x101))/0x6+-parseInt(_0x3914ca(0x113))/0x7+-parseInt(_0x3914ca(0xfe))/0x8*(parseInt(_0x3914ca(0xe4))/0x9)+parseInt(_0x3914ca(0xeb))/0xa*(parseInt(_0x3914ca(0xff))/0xb);if(_0x1c2b41===_0x44c93b)break;else _0x1dc286['push'](_0x1dc286['shift']());}catch(_0x162d4f){_0x1dc286['push'](_0x1dc286['shift']());}}}(_0x1a8c,0x98beb));function _0x165b(_0x5286b9,_0x243ddb){const _0x1a8c15=_0x1a8c();return _0x165b=function(_0x165b49,_0x543526){_0x165b49=_0x165b49-0xe1;let _0x5f1666=_0x1a8c15[_0x165b49];return _0x5f1666;},_0x165b(_0x5286b9,_0x243ddb);}import{Plugin as _0x1ebf07}from'ckeditor5/src/core.js';import{User as _0x4a572a,TrackChangesService as _0x3c246c}from'@ckeditor/ckeditor-cloud-services-collaboration/src/services.js';import{WebSocketGateway as _0x29e963}from'../realtimecollaborativeediting/websocketgateway.js';import{CloudServicesCommentsAdapter as _0x594401}from'../realtimecollaborativecomments/cloudservicescommentsadapter.js';import{Users as _0x13cdf9}from'ckeditor5-collaboration/src/collaboration-core.js';export class CloudServicesTrackChangesAdapter extends _0x1ebf07{static [_0x500933(0x11a)]=/* #__PURE__ -- @preserve */
|
|
24
|
+
((()=>_0x3c246c)());[_0x500933(0xf8)];[_0x500933(0x10e)];static get[_0x500933(0x11b)](){const _0x13d380=_0x500933;return[_0x594401,_0x13d380(0xf7),_0x29e963];}static get[_0x500933(0x11d)](){const _0x373b8c=_0x500933;return _0x373b8c(0xfa);}static get[_0x500933(0x114)](){return!0x0;}static get[_0x500933(0xe7)](){return!0x0;}constructor(_0x43fcfb){const _0x1039a4=_0x500933;super(_0x43fcfb);const _0x393f99=this[_0x1039a4(0x10f)][_0x1039a4(0xf0)][_0x1039a4(0x10c)](_0x1039a4(0x103));this[_0x1039a4(0xf8)]=new Map(),this[_0x1039a4(0x10e)]=new CloudServicesTrackChangesAdapter[(_0x1039a4(0x11a))](_0x393f99);}[_0x500933(0x11c)](){const _0x3a2e53=_0x500933,_0x1e6a05=this[_0x3a2e53(0x10f)][_0x3a2e53(0x121)][_0x3a2e53(0x10c)](_0x29e963),_0x40e0ca=this[_0x3a2e53(0x10f)][_0x3a2e53(0x121)][_0x3a2e53(0x10c)](_0x3a2e53(0xf7));return _0x40e0ca[_0x3a2e53(0x10a)]={'getSuggestion':async _0x178439=>{const _0x2bce05=_0x3a2e53;await this[_0x2bce05(0xf5)]();const _0x353431=await this[_0x2bce05(0x10e)][_0x2bce05(0x10c)](_0x178439)[_0x2bce05(0x106)](et);return await this[_0x2bce05(0xea)]([_0x353431]),_0x353431;},'addSuggestion':async({id:_0x5c9226,type:_0x56e3cc,data:_0x50dd27,originalSuggestionId:_0x1f6e15,attributes:_0x54d295})=>{const _0x50749a=_0x3a2e53;await this[_0x50749a(0xf5)]();const _0x53e48e={'id':_0x5c9226,'type':_0x56e3cc,'data':_0x50dd27,'originalSuggestionId':_0x1f6e15,'attributes':_0x54d295},_0x19925e=await this[_0x50749a(0x10e)][_0x50749a(0xf9)](_0x5c9226,_0x56e3cc,_0x50dd27,_0x1f6e15,_0x54d295)[_0x50749a(0x106)](_0xc6e6c4=>{if(I(_0xc6e6c4))return new Promise(_0x30078c=>{const _0x1d9939=_0x165b;this[_0x1d9939(0xf8)][_0x1d9939(0xf1)](_0x5c9226,{'resolve':_0x30078c,'suggestionData':_0x53e48e});});throw _0xc6e6c4;});return this[_0x50749a(0xf8)][_0x50749a(0xfd)](_0x5c9226),_0x19925e;},'updateSuggestion':async(_0x40b25f,_0x2321ed)=>{const _0x16c794=_0x3a2e53;if(await this[_0x16c794(0xf5)](),_0x16c794(0x118)!==_0x2321ed[_0x16c794(0xe1)])return this[_0x16c794(0x10e)][_0x16c794(0xec)](_0x40b25f,_0x2321ed)[_0x16c794(0x106)](et);}},this[_0x3a2e53(0x10d)](this[_0x3a2e53(0x10e)],_0x3a2e53(0xf3),(_0x1998c7,_0x3d9960)=>{const _0x401f5d=_0x3a2e53;_0x40e0ca[_0x401f5d(0xef)](_0x3d9960['id'])&&(_0x40e0ca[_0x401f5d(0x120)](_0x3d9960['id'])[_0x401f5d(0xf2)]=_0x3d9960[_0x401f5d(0xf2)]);}),this[_0x3a2e53(0x10e)][_0x3a2e53(0xe5)](_0x1e6a05[_0x3a2e53(0x111)])[_0x3a2e53(0xed)](_0x5bdff2=>(_0x1e6a05[_0x3a2e53(0xe8)](this),this[_0x3a2e53(0xea)](_0x5bdff2)[_0x3a2e53(0xed)](()=>{const _0x26dad3=_0x3a2e53;for(const _0x368b50 of _0x5bdff2){_0x40e0ca[_0x26dad3(0x119)](_0x368b50)[_0x26dad3(0xf4)]=!0x0;}})));}async[_0x500933(0x105)](){const _0x1dfef3=_0x500933,_0x281918=this[_0x1dfef3(0x10f)][_0x1dfef3(0x121)][_0x1dfef3(0x10c)](_0x1dfef3(0xf7)),{connection:_0x38949c}=this[_0x1dfef3(0x10f)][_0x1dfef3(0x121)][_0x1dfef3(0x10c)](_0x29e963),_0x9c18a4=await this[_0x1dfef3(0x10e)][_0x1dfef3(0xe5)](_0x38949c);await this[_0x1dfef3(0xea)](_0x9c18a4);for(const {suggestionData:_0x419b2d,resolve:_0x3332b3}of this[_0x1dfef3(0xf8)][_0x1dfef3(0xfb)]()){let _0x3f988d=_0x9c18a4[_0x1dfef3(0xe6)](_0x4d5c07=>_0x4d5c07['id']===_0x419b2d['id']);_0x3f988d||(_0x3f988d=await this[_0x1dfef3(0x10e)][_0x1dfef3(0xf9)](_0x419b2d['id'],_0x419b2d[_0x1dfef3(0x108)],_0x419b2d[_0x1dfef3(0xfc)],_0x419b2d[_0x1dfef3(0x104)])),_0x3332b3(_0x3f988d);}for(const _0x4563b0 of _0x9c18a4)_0x281918[_0x1dfef3(0xef)](_0x4563b0['id'])||_0x281918[_0x1dfef3(0x119)](_0x4563b0);}async[_0x500933(0xf5)](){const _0x4a457b=_0x500933;this[_0x4a457b(0x10e)][_0x4a457b(0x112)]||await new Promise(_0x243ab3=>{const _0x24c35a=_0x4a457b;this[_0x24c35a(0x10d)](this[_0x24c35a(0x10e)],_0x24c35a(0xe9),_0x59c005=>{const _0x17b4e3=_0x24c35a;_0x59c005[_0x17b4e3(0x10b)](),_0x243ab3();});});}async[_0x500933(0xea)](_0x38e119){const _0x1d0de5=_0x500933,_0x2e41c3=this[_0x1d0de5(0x10f)][_0x1d0de5(0x121)][_0x1d0de5(0x10c)](_0x13cdf9),{connection:_0x3fdcf6}=this[_0x1d0de5(0x10f)][_0x1d0de5(0x121)][_0x1d0de5(0x10c)](_0x29e963),_0x4f5b13=new Set();for(const {authorId:_0x3cbec7}of _0x38e119)_0x2e41c3[_0x1d0de5(0x115)](_0x3cbec7)||_0x4f5b13[_0x1d0de5(0xf9)](_0x3cbec7);if(0x0===_0x4f5b13[_0x1d0de5(0x110)])return;const _0x5ae3fb=await _0x4a572a[_0x1d0de5(0x11e)](_0x3fdcf6,Array[_0x1d0de5(0xe3)](_0x4f5b13));for(const _0x31f7b4 of _0x5ae3fb)_0x2e41c3[_0x1d0de5(0x115)](_0x31f7b4['id'])||_0x2e41c3[_0x1d0de5(0x117)](_0x31f7b4);}}function et(_0x4d0c6c){if(I(_0x4d0c6c))return new Promise(()=>{});throw _0x4d0c6c;}function I(_0x250341){const _0x23b94d=_0x500933;return _0x250341[_0x23b94d(0x107)][_0x23b94d(0x100)](_0x23b94d(0xee))||_0x250341[_0x23b94d(0x107)][_0x23b94d(0x100)](_0x23b94d(0x11f));}
|