@ckeditor/ckeditor5-real-time-collaboration 44.3.0-alpha.6 → 44.3.0-alpha.7

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.
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x32eab7=_0x55f6;(function(_0x2dec43,_0x589be5){const _0x265546=_0x55f6,_0x320535=_0x2dec43();while(!![]){try{const _0x3df8ae=-parseInt(_0x265546(0x1ce))/0x1*(-parseInt(_0x265546(0x1a7))/0x2)+parseInt(_0x265546(0x1c6))/0x3+parseInt(_0x265546(0x198))/0x4*(-parseInt(_0x265546(0x1b8))/0x5)+-parseInt(_0x265546(0x1cd))/0x6*(-parseInt(_0x265546(0x1ab))/0x7)+parseInt(_0x265546(0x1aa))/0x8*(-parseInt(_0x265546(0x1a0))/0x9)+-parseInt(_0x265546(0x1a6))/0xa+parseInt(_0x265546(0x1c8))/0xb*(parseInt(_0x265546(0x1c4))/0xc);if(_0x3df8ae===_0x589be5)break;else _0x320535['push'](_0x320535['shift']());}catch(_0x3f8f3d){_0x320535['push'](_0x320535['shift']());}}}(_0x2797,0xd240f));import{Plugin as _0x63894}from'ckeditor5/src/core.js';import{User as _0x16b72c,TrackChangesService as _0x3a2713}from'@ckeditor/ckeditor-cloud-services-collaboration/src/services.js';import _0xc7d0ac from'../realtimecollaborativeediting/websocketgateway.js';import _0x1c235e from'../realtimecollaborativecomments/cloudservicescommentsadapter.js';import{Users as _0x1e9e64}from'ckeditor5-collaboration/src/collaboration-core.js';class f extends _0x63894{static get[_0x32eab7(0x19d)](){const _0xe129ed=_0x32eab7;return[_0x1c235e,_0xe129ed(0x1c0),_0xc7d0ac];}static get[_0x32eab7(0x1c9)](){const _0x5015f1=_0x32eab7;return _0x5015f1(0x1a5);}static get[_0x32eab7(0x1d1)](){return!0x0;}static get[_0x32eab7(0x1a8)](){return!0x0;}constructor(_0x2a71c0){const _0x31ebbb=_0x32eab7;super(_0x2a71c0);const _0x154447=this[_0x31ebbb(0x19f)][_0x31ebbb(0x1d4)][_0x31ebbb(0x1c2)](_0x31ebbb(0x1d3));this[_0x31ebbb(0x1c5)]=new Map(),this[_0x31ebbb(0x1b2)]=new f[(_0x31ebbb(0x1bd))](_0x154447);}[_0x32eab7(0x1b7)](){const _0x53d7a2=_0x32eab7,_0x577e96=this[_0x53d7a2(0x19f)][_0x53d7a2(0x1ad)][_0x53d7a2(0x1c2)](_0xc7d0ac),_0x539cd2=this[_0x53d7a2(0x19f)][_0x53d7a2(0x1ad)][_0x53d7a2(0x1c2)](_0x53d7a2(0x1c0));return _0x539cd2[_0x53d7a2(0x19c)]={'getSuggestion':async _0x15b718=>{const _0x553d23=_0x53d7a2;await this[_0x553d23(0x1ca)]();const _0x2115d0=await this[_0x553d23(0x1b2)][_0x553d23(0x1c2)](_0x15b718)[_0x553d23(0x1b1)](R);return await this[_0x553d23(0x1af)]([_0x2115d0]),_0x2115d0;},'addSuggestion':async({id:_0x1c18db,type:_0x1e1fc9,data:_0x5c125b,originalSuggestionId:_0x2f9be5,attributes:_0x2aeb3a})=>{const _0x1fc3ec=_0x53d7a2;await this[_0x1fc3ec(0x1ca)]();const _0x3f284b={'id':_0x1c18db,'type':_0x1e1fc9,'data':_0x5c125b,'originalSuggestionId':_0x2f9be5,'attributes':_0x2aeb3a},_0x12c0d5=await this[_0x1fc3ec(0x1b2)][_0x1fc3ec(0x199)](_0x1c18db,_0x1e1fc9,_0x5c125b,_0x2f9be5,_0x2aeb3a)[_0x1fc3ec(0x1b1)](_0x171c91=>{if(st(_0x171c91))return new Promise(_0x25f060=>{const _0x6ec4b5=_0x55f6;this[_0x6ec4b5(0x1c5)][_0x6ec4b5(0x196)](_0x1c18db,{'resolve':_0x25f060,'suggestionData':_0x3f284b});});throw _0x171c91;});return this[_0x1fc3ec(0x1c5)][_0x1fc3ec(0x1a4)](_0x1c18db),_0x12c0d5;},'updateSuggestion':async(_0x85dc7c,_0x4fa272)=>{const _0x211fde=_0x53d7a2;if(await this[_0x211fde(0x1ca)](),_0x211fde(0x1ba)!==_0x4fa272[_0x211fde(0x1c1)])return this[_0x211fde(0x1b2)][_0x211fde(0x1c7)](_0x85dc7c,_0x4fa272)[_0x211fde(0x1b1)](R);}},this[_0x53d7a2(0x1ac)](this[_0x53d7a2(0x1b2)],_0x53d7a2(0x1d2),(_0x427748,_0x237d7a)=>{const _0x5ce5fc=_0x53d7a2;_0x539cd2[_0x5ce5fc(0x1a3)](_0x237d7a['id'])&&(_0x539cd2[_0x5ce5fc(0x1d5)](_0x237d7a['id'])[_0x5ce5fc(0x197)]=_0x237d7a[_0x5ce5fc(0x197)]);}),this[_0x53d7a2(0x1b2)][_0x53d7a2(0x1a9)](_0x577e96[_0x53d7a2(0x194)])[_0x53d7a2(0x1bf)](_0x28f7a5=>(_0x577e96[_0x53d7a2(0x1be)](this),this[_0x53d7a2(0x1af)](_0x28f7a5)[_0x53d7a2(0x1bf)](()=>{const _0x48004e=_0x53d7a2;for(const _0x123485 of _0x28f7a5){_0x539cd2[_0x48004e(0x1bb)](_0x123485)[_0x48004e(0x1cf)]=!0x0;}})));}async[_0x32eab7(0x1b4)](){const _0x36d9e0=_0x32eab7,_0x25400a=this[_0x36d9e0(0x19f)][_0x36d9e0(0x1ad)][_0x36d9e0(0x1c2)](_0x36d9e0(0x1c0)),{connection:_0x445f90}=this[_0x36d9e0(0x19f)][_0x36d9e0(0x1ad)][_0x36d9e0(0x1c2)](_0xc7d0ac),_0x349fa6=await this[_0x36d9e0(0x1b2)][_0x36d9e0(0x1a9)](_0x445f90);await this[_0x36d9e0(0x1af)](_0x349fa6);for(const {suggestionData:_0x2bea4c,resolve:_0x114e63}of this[_0x36d9e0(0x1c5)][_0x36d9e0(0x1b9)]()){let _0x68b5a5=_0x349fa6[_0x36d9e0(0x195)](_0x55e7a2=>_0x55e7a2['id']===_0x2bea4c['id']);_0x68b5a5||(_0x68b5a5=await this[_0x36d9e0(0x1b2)][_0x36d9e0(0x199)](_0x2bea4c['id'],_0x2bea4c[_0x36d9e0(0x1cb)],_0x2bea4c[_0x36d9e0(0x1b0)],_0x2bea4c[_0x36d9e0(0x1a2)])),_0x114e63(_0x68b5a5);}for(const _0x16cca8 of _0x349fa6)_0x25400a[_0x36d9e0(0x1a3)](_0x16cca8['id'])||_0x25400a[_0x36d9e0(0x1bb)](_0x16cca8);}async[_0x32eab7(0x1ca)](){const _0x1ae9bb=_0x32eab7;this[_0x1ae9bb(0x1b2)][_0x1ae9bb(0x1d0)]||await new Promise(_0x7b9190=>{const _0x2fadbd=_0x1ae9bb;this[_0x2fadbd(0x1ac)](this[_0x2fadbd(0x1b2)],_0x2fadbd(0x1b6),_0x392140=>{const _0x847136=_0x2fadbd;_0x392140[_0x847136(0x1cc)](),_0x7b9190();});});}async[_0x32eab7(0x1af)](_0x155022){const _0x4e80d0=_0x32eab7,_0x7a0107=this[_0x4e80d0(0x19f)][_0x4e80d0(0x1ad)][_0x4e80d0(0x1c2)](_0x1e9e64),{connection:_0x34d570}=this[_0x4e80d0(0x19f)][_0x4e80d0(0x1ad)][_0x4e80d0(0x1c2)](_0xc7d0ac),_0x337777=new Set();for(const {authorId:_0x11b34f}of _0x155022)_0x7a0107[_0x4e80d0(0x1b3)](_0x11b34f)||_0x337777[_0x4e80d0(0x199)](_0x11b34f);if(0x0===_0x337777[_0x4e80d0(0x1a1)])return;const _0x22d815=await _0x16b72c[_0x4e80d0(0x19e)](_0x34d570,Array[_0x4e80d0(0x19a)](_0x337777));for(const _0x10324a of _0x22d815)_0x7a0107[_0x4e80d0(0x1b3)](_0x10324a['id'])||_0x7a0107[_0x4e80d0(0x19b)](_0x10324a);}}function _0x55f6(_0x14c628,_0x5c1284){const _0x2797a6=_0x2797();return _0x55f6=function(_0x55f642,_0x5da59b){_0x55f642=_0x55f642-0x194;let _0x126047=_0x2797a6[_0x55f642];return _0x126047;},_0x55f6(_0x14c628,_0x5c1284);}f[_0x32eab7(0x1bd)]=_0x3a2713;function _0x2797(){const _0xf46f60=['10944997uqiBhI','listenTo','plugins','startsWith','_fetchMissingUsersForThreads','data','catch','_trackChangesService','getUser','reconnect','cloud-services-internal-error:\x20Request\x20timeout.','connected','init','5245235mRqlOy','values','open','addSuggestionData','cloud-services-internal-error:\x20Not\x20connected.','TrackChangesService','addToReconnectionStack','then','TrackChangesEditing','state','get','message','24YiFBUV','_bufferedRequests','2941854DMWEcV','update','3137629Nbqllx','pluginName','_waitForServiceReady','type','off','6EzRTRb','54944VtTYdJ','_saved','isConnected','isOfficialPlugin','suggestionUpdated','collaboration.channelId','config','getSuggestion','connection','find','set','attributes','4GBFNzT','add','from','addUser','adapter','requires','getMany','editor','9YEMojj','size','originalSuggestionId','hasSuggestion','delete','CloudServicesTrackChangesAdapter','6332860SGsjNw','22FkHCtE','isPremiumPlugin','connect','9404152eNWlLd'];_0x2797=function(){return _0xf46f60;};return _0x2797();}export default f;function R(_0x4425b4){if(st(_0x4425b4))return new Promise(()=>{});throw _0x4425b4;}function st(_0x355aa4){const _0x329dd7=_0x32eab7;return _0x355aa4[_0x329dd7(0x1c3)][_0x329dd7(0x1ae)](_0x329dd7(0x1bc))||_0x355aa4[_0x329dd7(0x1c3)][_0x329dd7(0x1ae)](_0x329dd7(0x1b5));}
23
+ const _0x5de2d8=_0x243b;(function(_0x425e69,_0x343701){const _0x1af2f7=_0x243b,_0x23f0ea=_0x425e69();while(!![]){try{const _0x3d15cb=parseInt(_0x1af2f7(0x161))/0x1+parseInt(_0x1af2f7(0x148))/0x2*(-parseInt(_0x1af2f7(0x142))/0x3)+-parseInt(_0x1af2f7(0x14a))/0x4*(parseInt(_0x1af2f7(0x174))/0x5)+-parseInt(_0x1af2f7(0x146))/0x6*(-parseInt(_0x1af2f7(0x17a))/0x7)+parseInt(_0x1af2f7(0x169))/0x8*(-parseInt(_0x1af2f7(0x16f))/0x9)+parseInt(_0x1af2f7(0x168))/0xa*(-parseInt(_0x1af2f7(0x159))/0xb)+parseInt(_0x1af2f7(0x145))/0xc;if(_0x3d15cb===_0x343701)break;else _0x23f0ea['push'](_0x23f0ea['shift']());}catch(_0x365dd3){_0x23f0ea['push'](_0x23f0ea['shift']());}}}(_0x2586,0xa962d));import{Plugin as _0x485b6b}from'ckeditor5/src/core.js';import{User as _0x255dd0,TrackChangesService as _0x3e8e76}from'@ckeditor/ckeditor-cloud-services-collaboration/src/services.js';import _0x2d4c4f from'../realtimecollaborativeediting/websocketgateway.js';import _0x37f785 from'../realtimecollaborativecomments/cloudservicescommentsadapter.js';import{Users as _0x1cdc43}from'ckeditor5-collaboration/src/collaboration-core.js';class f extends _0x485b6b{static get[_0x5de2d8(0x158)](){const _0x5de3a0=_0x5de2d8;return[_0x37f785,_0x5de3a0(0x16b),_0x2d4c4f];}static get[_0x5de2d8(0x17c)](){const _0x151f2f=_0x5de2d8;return _0x151f2f(0x163);}static get[_0x5de2d8(0x152)](){return!0x0;}static get[_0x5de2d8(0x14b)](){return!0x0;}constructor(_0x4d9757){const _0x138512=_0x5de2d8;super(_0x4d9757);const _0x43c4da=this[_0x138512(0x167)][_0x138512(0x144)][_0x138512(0x17f)](_0x138512(0x141));this[_0x138512(0x149)]=new Map(),this[_0x138512(0x16e)]=new f[(_0x138512(0x17d))](_0x43c4da);}[_0x5de2d8(0x153)](){const _0x1ba211=_0x5de2d8,_0x48241c=this[_0x1ba211(0x167)][_0x1ba211(0x164)][_0x1ba211(0x17f)](_0x2d4c4f),_0x3024d9=this[_0x1ba211(0x167)][_0x1ba211(0x164)][_0x1ba211(0x17f)](_0x1ba211(0x16b));return _0x3024d9[_0x1ba211(0x170)]={'getSuggestion':async _0x54c17b=>{const _0x2365e8=_0x1ba211;await this[_0x2365e8(0x14c)]();const _0x4fdcf6=await this[_0x2365e8(0x16e)][_0x2365e8(0x17f)](_0x54c17b)[_0x2365e8(0x15e)](R);return await this[_0x2365e8(0x156)]([_0x4fdcf6]),_0x4fdcf6;},'addSuggestion':async({id:_0x1737e7,type:_0x4bb135,data:_0x46cad6,originalSuggestionId:_0x306d17,attributes:_0x21a27e})=>{const _0x5cb66f=_0x1ba211;await this[_0x5cb66f(0x14c)]();const _0x4b2031={'id':_0x1737e7,'type':_0x4bb135,'data':_0x46cad6,'originalSuggestionId':_0x306d17,'attributes':_0x21a27e},_0x108447=await this[_0x5cb66f(0x16e)][_0x5cb66f(0x13f)](_0x1737e7,_0x4bb135,_0x46cad6,_0x306d17,_0x21a27e)[_0x5cb66f(0x15e)](_0xec187c=>{if(U(_0xec187c))return new Promise(_0x4ae097=>{const _0x582115=_0x243b;this[_0x582115(0x149)][_0x582115(0x147)](_0x1737e7,{'resolve':_0x4ae097,'suggestionData':_0x4b2031});});throw _0xec187c;});return this[_0x5cb66f(0x149)][_0x5cb66f(0x15c)](_0x1737e7),_0x108447;},'updateSuggestion':async(_0x28c986,_0x4b6b50)=>{const _0xb70697=_0x1ba211;if(await this[_0xb70697(0x14c)](),_0xb70697(0x17e)!==_0x4b6b50[_0xb70697(0x14f)])return this[_0xb70697(0x16e)][_0xb70697(0x17b)](_0x28c986,_0x4b6b50)[_0xb70697(0x15e)](R);}},this[_0x1ba211(0x172)](this[_0x1ba211(0x16e)],_0x1ba211(0x180),(_0x147fad,_0x18f7ae)=>{const _0x36f507=_0x1ba211;_0x3024d9[_0x36f507(0x179)](_0x18f7ae['id'])&&(_0x3024d9[_0x36f507(0x14d)](_0x18f7ae['id'])[_0x36f507(0x15a)]=_0x18f7ae[_0x36f507(0x15a)]);}),this[_0x1ba211(0x16e)][_0x1ba211(0x154)](_0x48241c[_0x1ba211(0x143)])[_0x1ba211(0x140)](_0x4ccb19=>(_0x48241c[_0x1ba211(0x16d)](this),this[_0x1ba211(0x156)](_0x4ccb19)[_0x1ba211(0x140)](()=>{const _0x5e05aa=_0x1ba211;for(const _0x5b1ed3 of _0x4ccb19){_0x3024d9[_0x5e05aa(0x150)](_0x5b1ed3)[_0x5e05aa(0x176)]=!0x0;}})));}async[_0x5de2d8(0x178)](){const _0x4b6241=_0x5de2d8,_0x50044c=this[_0x4b6241(0x167)][_0x4b6241(0x164)][_0x4b6241(0x17f)](_0x4b6241(0x16b)),{connection:_0x3183df}=this[_0x4b6241(0x167)][_0x4b6241(0x164)][_0x4b6241(0x17f)](_0x2d4c4f),_0x3954bd=await this[_0x4b6241(0x16e)][_0x4b6241(0x154)](_0x3183df);await this[_0x4b6241(0x156)](_0x3954bd);for(const {suggestionData:_0x49241a,resolve:_0x16319d}of this[_0x4b6241(0x149)][_0x4b6241(0x15d)]()){let _0x536313=_0x3954bd[_0x4b6241(0x162)](_0x27d800=>_0x27d800['id']===_0x49241a['id']);_0x536313||(_0x536313=await this[_0x4b6241(0x16e)][_0x4b6241(0x13f)](_0x49241a['id'],_0x49241a[_0x4b6241(0x177)],_0x49241a[_0x4b6241(0x175)],_0x49241a[_0x4b6241(0x14e)])),_0x16319d(_0x536313);}for(const _0x3a510f of _0x3954bd)_0x50044c[_0x4b6241(0x179)](_0x3a510f['id'])||_0x50044c[_0x4b6241(0x150)](_0x3a510f);}async[_0x5de2d8(0x14c)](){const _0x7f5f02=_0x5de2d8;this[_0x7f5f02(0x16e)][_0x7f5f02(0x171)]||await new Promise(_0x34d6eb=>{const _0x49aea5=_0x7f5f02;this[_0x49aea5(0x172)](this[_0x49aea5(0x16e)],_0x49aea5(0x173),_0x5eba19=>{const _0x224285=_0x49aea5;_0x5eba19[_0x224285(0x16c)](),_0x34d6eb();});});}async[_0x5de2d8(0x156)](_0x169c2f){const _0x2681bd=_0x5de2d8,_0x5296bb=this[_0x2681bd(0x167)][_0x2681bd(0x164)][_0x2681bd(0x17f)](_0x1cdc43),{connection:_0x51e690}=this[_0x2681bd(0x167)][_0x2681bd(0x164)][_0x2681bd(0x17f)](_0x2d4c4f),_0x1d0dfa=new Set();for(const {authorId:_0x200e5e}of _0x169c2f)_0x5296bb[_0x2681bd(0x166)](_0x200e5e)||_0x1d0dfa[_0x2681bd(0x13f)](_0x200e5e);if(0x0===_0x1d0dfa[_0x2681bd(0x15f)])return;const _0x23021f=await _0x255dd0[_0x2681bd(0x151)](_0x51e690,Array[_0x2681bd(0x157)](_0x1d0dfa));for(const _0x97a491 of _0x23021f)_0x5296bb[_0x2681bd(0x166)](_0x97a491['id'])||_0x5296bb[_0x2681bd(0x15b)](_0x97a491);}}f[_0x5de2d8(0x17d)]=_0x3e8e76;function _0x2586(){const _0x1b40c3=['TrackChangesEditing','off','addToReconnectionStack','_trackChangesService','7726788uySAux','adapter','isConnected','listenTo','connected','85950CzIJdg','data','_saved','type','reconnect','hasSuggestion','28hHmglc','update','pluginName','TrackChangesService','open','get','suggestionUpdated','add','then','collaboration.channelId','749967lUeAss','connection','config','27045048gfEwkd','1253814JmNgzG','set','2vtEWRY','_bufferedRequests','316npaqSJ','isPremiumPlugin','_waitForServiceReady','getSuggestion','originalSuggestionId','state','addSuggestionData','getMany','isOfficialPlugin','init','connect','startsWith','_fetchMissingUsersForThreads','from','requires','11wZgLLH','attributes','addUser','delete','values','catch','size','message','224863hKEvJX','find','CloudServicesTrackChangesAdapter','plugins','cloud-services-internal-error:\x20Not\x20connected.','getUser','editor','1541570rEMtFb','8PalhDf','cloud-services-internal-error:\x20Request\x20timeout.'];_0x2586=function(){return _0x1b40c3;};return _0x2586();}export default f;function _0x243b(_0x53d7d5,_0x186af6){const _0x258638=_0x2586();return _0x243b=function(_0x243bee,_0x288fd5){_0x243bee=_0x243bee-0x13f;let _0x55977a=_0x258638[_0x243bee];return _0x55977a;},_0x243b(_0x53d7d5,_0x186af6);}function R(_0x3778f3){if(U(_0x3778f3))return new Promise(()=>{});throw _0x3778f3;}function U(_0x1abbf2){const _0x584cd0=_0x5de2d8;return _0x1abbf2[_0x584cd0(0x160)][_0x584cd0(0x155)](_0x584cd0(0x165))||_0x1abbf2[_0x584cd0(0x160)][_0x584cd0(0x155)](_0x584cd0(0x16a));}