@ckeditor/ckeditor5-real-time-collaboration 45.2.1-alpha.7 → 45.2.1-alpha.8

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,5 +20,5 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x54d71a=_0x11a3;(function(_0x2b2644,_0x5a9dd3){const _0x9020=_0x11a3,_0x5f20eb=_0x2b2644();while(!![]){try{const _0x25f9dd=parseInt(_0x9020(0x1c3))/0x1*(parseInt(_0x9020(0x1c5))/0x2)+parseInt(_0x9020(0x1c2))/0x3*(-parseInt(_0x9020(0x1da))/0x4)+parseInt(_0x9020(0x19e))/0x5*(-parseInt(_0x9020(0x1a8))/0x6)+parseInt(_0x9020(0x1b2))/0x7+-parseInt(_0x9020(0x1b9))/0x8+-parseInt(_0x9020(0x1a0))/0x9+parseInt(_0x9020(0x1a7))/0xa;if(_0x25f9dd===_0x5a9dd3)break;else _0x5f20eb['push'](_0x5f20eb['shift']());}catch(_0x15086e){_0x5f20eb['push'](_0x5f20eb['shift']());}}}(_0x4673,0x4a135));import{Plugin as _0x3d5cb2}from'ckeditor5/src/core.js';import{User as _0x209b35,TrackChangesService as _0x3bd64d}from'@ckeditor/ckeditor-cloud-services-collaboration/src/services.js';import _0x53136f from'../realtimecollaborativeediting/websocketgateway.js';import _0x536dca from'../realtimecollaborativecomments/cloudservicescommentsadapter.js';import{Users as _0x404287}from'ckeditor5-collaboration/src/collaboration-core.js';function _0x4673(){const _0x36ce9a=['update','state','connected','_waitForServiceReady','getSuggestion','off','2165170UWtmkp','CloudServicesTrackChangesAdapter','config','collaboration.channelId','isPremiumPlugin','TrackChangesService','listenTo','2572792rlMRTJ','isOfficialPlugin','_fetchMissingUsersForThreads','pluginName','isConnected','addToReconnectionStack','init','attributes','cloud-services-internal-error:\x20Request\x20timeout.','3267MlNrcm','3311LgDmrh','get','4codhYj','then','originalSuggestionId','reconnect','add','message','_trackChangesService','suggestionUpdated','getMany','connect','startsWith','find','catch','editor','delete','connection','requires','data','size','adapter','TrackChangesEditing','1316BsDyBH','open','plugins','_saved','5RXkioV','_bufferedRequests','4519278BuEHBm','from','addUser','type','hasSuggestion','set','cloud-services-internal-error:\x20Not\x20connected.','11778170UBrOqd','49884ZWAIxN','addSuggestionData','values','getUser'];_0x4673=function(){return _0x36ce9a;};return _0x4673();}class f extends _0x3d5cb2{static [_0x54d71a(0x1b7)]=/* #__PURE__ -- @preserve */
24
- ((()=>_0x3bd64d)());[_0x54d71a(0x19f)];[_0x54d71a(0x1cb)];static get[_0x54d71a(0x1d5)](){const _0x41adf5=_0x54d71a;return[_0x536dca,_0x41adf5(0x1d9),_0x53136f];}static get[_0x54d71a(0x1bc)](){const _0x2df5c2=_0x54d71a;return _0x2df5c2(0x1b3);}static get[_0x54d71a(0x1ba)](){return!0x0;}static get[_0x54d71a(0x1b6)](){return!0x0;}constructor(_0x313bef){const _0x40ce08=_0x54d71a;super(_0x313bef);const _0x270486=this[_0x40ce08(0x1d2)][_0x40ce08(0x1b4)][_0x40ce08(0x1c4)](_0x40ce08(0x1b5));this[_0x40ce08(0x19f)]=new Map(),this[_0x40ce08(0x1cb)]=new f[(_0x40ce08(0x1b7))](_0x270486);}[_0x54d71a(0x1bf)](){const _0x3d29d9=_0x54d71a,_0x1a353e=this[_0x3d29d9(0x1d2)][_0x3d29d9(0x1dc)][_0x3d29d9(0x1c4)](_0x53136f),_0x2271f1=this[_0x3d29d9(0x1d2)][_0x3d29d9(0x1dc)][_0x3d29d9(0x1c4)](_0x3d29d9(0x1d9));return _0x2271f1[_0x3d29d9(0x1d8)]={'getSuggestion':async _0x98e545=>{const _0x35bed1=_0x3d29d9;await this[_0x35bed1(0x1af)]();const _0x30a28d=await this[_0x35bed1(0x1cb)][_0x35bed1(0x1c4)](_0x98e545)[_0x35bed1(0x1d1)](R);return await this[_0x35bed1(0x1bb)]([_0x30a28d]),_0x30a28d;},'addSuggestion':async({id:_0x339f1e,type:_0x5ea994,data:_0x3784ff,originalSuggestionId:_0xc15eb8,attributes:_0x4c205c})=>{const _0x2c4f2c=_0x3d29d9;await this[_0x2c4f2c(0x1af)]();const _0x543e53={'id':_0x339f1e,'type':_0x5ea994,'data':_0x3784ff,'originalSuggestionId':_0xc15eb8,'attributes':_0x4c205c},_0x527c20=await this[_0x2c4f2c(0x1cb)][_0x2c4f2c(0x1c9)](_0x339f1e,_0x5ea994,_0x3784ff,_0xc15eb8,_0x4c205c)[_0x2c4f2c(0x1d1)](_0x4e7a18=>{if(st(_0x4e7a18))return new Promise(_0x108c64=>{const _0x2fe03b=_0x11a3;this[_0x2fe03b(0x19f)][_0x2fe03b(0x1a5)](_0x339f1e,{'resolve':_0x108c64,'suggestionData':_0x543e53});});throw _0x4e7a18;});return this[_0x2c4f2c(0x19f)][_0x2c4f2c(0x1d3)](_0x339f1e),_0x527c20;},'updateSuggestion':async(_0x1ca9af,_0x4b2b3f)=>{const _0x583f6d=_0x3d29d9;if(await this[_0x583f6d(0x1af)](),_0x583f6d(0x1db)!==_0x4b2b3f[_0x583f6d(0x1ad)])return this[_0x583f6d(0x1cb)][_0x583f6d(0x1ac)](_0x1ca9af,_0x4b2b3f)[_0x583f6d(0x1d1)](R);}},this[_0x3d29d9(0x1b8)](this[_0x3d29d9(0x1cb)],_0x3d29d9(0x1cc),(_0x196a34,_0x4c8b24)=>{const _0x32a465=_0x3d29d9;_0x2271f1[_0x32a465(0x1a4)](_0x4c8b24['id'])&&(_0x2271f1[_0x32a465(0x1b0)](_0x4c8b24['id'])[_0x32a465(0x1c0)]=_0x4c8b24[_0x32a465(0x1c0)]);}),this[_0x3d29d9(0x1cb)][_0x3d29d9(0x1ce)](_0x1a353e[_0x3d29d9(0x1d4)])[_0x3d29d9(0x1c6)](_0x4e1aac=>(_0x1a353e[_0x3d29d9(0x1be)](this),this[_0x3d29d9(0x1bb)](_0x4e1aac)[_0x3d29d9(0x1c6)](()=>{const _0x53b9f8=_0x3d29d9;for(const _0x19ac21 of _0x4e1aac){_0x2271f1[_0x53b9f8(0x1a9)](_0x19ac21)[_0x53b9f8(0x19d)]=!0x0;}})));}async[_0x54d71a(0x1c8)](){const _0x23b4e6=_0x54d71a,_0x10af92=this[_0x23b4e6(0x1d2)][_0x23b4e6(0x1dc)][_0x23b4e6(0x1c4)](_0x23b4e6(0x1d9)),{connection:_0x1e358a}=this[_0x23b4e6(0x1d2)][_0x23b4e6(0x1dc)][_0x23b4e6(0x1c4)](_0x53136f),_0xf908f0=await this[_0x23b4e6(0x1cb)][_0x23b4e6(0x1ce)](_0x1e358a);await this[_0x23b4e6(0x1bb)](_0xf908f0);for(const {suggestionData:_0x2b8fae,resolve:_0xb9f885}of this[_0x23b4e6(0x19f)][_0x23b4e6(0x1aa)]()){let _0x3087da=_0xf908f0[_0x23b4e6(0x1d0)](_0x535458=>_0x535458['id']===_0x2b8fae['id']);_0x3087da||(_0x3087da=await this[_0x23b4e6(0x1cb)][_0x23b4e6(0x1c9)](_0x2b8fae['id'],_0x2b8fae[_0x23b4e6(0x1a3)],_0x2b8fae[_0x23b4e6(0x1d6)],_0x2b8fae[_0x23b4e6(0x1c7)])),_0xb9f885(_0x3087da);}for(const _0x2cef70 of _0xf908f0)_0x10af92[_0x23b4e6(0x1a4)](_0x2cef70['id'])||_0x10af92[_0x23b4e6(0x1a9)](_0x2cef70);}async[_0x54d71a(0x1af)](){const _0x36d2c7=_0x54d71a;this[_0x36d2c7(0x1cb)][_0x36d2c7(0x1bd)]||await new Promise(_0x5d1f5c=>{const _0x46e86b=_0x36d2c7;this[_0x46e86b(0x1b8)](this[_0x46e86b(0x1cb)],_0x46e86b(0x1ae),_0x359378=>{const _0xc6eddb=_0x46e86b;_0x359378[_0xc6eddb(0x1b1)](),_0x5d1f5c();});});}async[_0x54d71a(0x1bb)](_0x4afcd0){const _0x43009a=_0x54d71a,_0x13cef8=this[_0x43009a(0x1d2)][_0x43009a(0x1dc)][_0x43009a(0x1c4)](_0x404287),{connection:_0x39672d}=this[_0x43009a(0x1d2)][_0x43009a(0x1dc)][_0x43009a(0x1c4)](_0x53136f),_0x5d6528=new Set();for(const {authorId:_0x2e3714}of _0x4afcd0)_0x13cef8[_0x43009a(0x1ab)](_0x2e3714)||_0x5d6528[_0x43009a(0x1c9)](_0x2e3714);if(0x0===_0x5d6528[_0x43009a(0x1d7)])return;const _0x5720de=await _0x209b35[_0x43009a(0x1cd)](_0x39672d,Array[_0x43009a(0x1a1)](_0x5d6528));for(const _0x862b88 of _0x5720de)_0x13cef8[_0x43009a(0x1ab)](_0x862b88['id'])||_0x13cef8[_0x43009a(0x1a2)](_0x862b88);}}export default f;function _0x11a3(_0x3c6f61,_0x45a1e8){const _0x467355=_0x4673();return _0x11a3=function(_0x11a38a,_0x50f302){_0x11a38a=_0x11a38a-0x19d;let _0x41c9a3=_0x467355[_0x11a38a];return _0x41c9a3;},_0x11a3(_0x3c6f61,_0x45a1e8);}function R(_0x65ae02){if(st(_0x65ae02))return new Promise(()=>{});throw _0x65ae02;}function st(_0x15e23f){const _0x1fcf5c=_0x54d71a;return _0x15e23f[_0x1fcf5c(0x1ca)][_0x1fcf5c(0x1cf)](_0x1fcf5c(0x1a6))||_0x15e23f[_0x1fcf5c(0x1ca)][_0x1fcf5c(0x1cf)](_0x1fcf5c(0x1c1));}
23
+ const _0x5ddcd3=_0x2b1b;(function(_0x5ed5ab,_0x1574d7){const _0x29db9f=_0x2b1b,_0x26a34f=_0x5ed5ab();while(!![]){try{const _0xdd0f22=parseInt(_0x29db9f(0x17b))/0x1*(parseInt(_0x29db9f(0x15a))/0x2)+-parseInt(_0x29db9f(0x176))/0x3+-parseInt(_0x29db9f(0x165))/0x4+parseInt(_0x29db9f(0x16a))/0x5*(parseInt(_0x29db9f(0x150))/0x6)+-parseInt(_0x29db9f(0x16f))/0x7+-parseInt(_0x29db9f(0x15c))/0x8+parseInt(_0x29db9f(0x172))/0x9;if(_0xdd0f22===_0x1574d7)break;else _0x26a34f['push'](_0x26a34f['shift']());}catch(_0x365a83){_0x26a34f['push'](_0x26a34f['shift']());}}}(_0x3fbe,0x738b5));function _0x3fbe(){const _0x5bfdf6=['getUser','config','4921560qLgGcs','TrackChangesEditing','size','14408064VlIOXm','cloud-services-internal-error:\x20Request\x20timeout.','connection','set','1689060BvOSSA','getSuggestion','_saved','isOfficialPlugin','isPremiumPlugin','229pINiZh','from','isConnected','_fetchMissingUsersForThreads','init','data','message','editor','connect','add','get','reconnect','suggestionUpdated','addSuggestionData','state','_waitForServiceReady','TrackChangesService','getMany','listenTo','off','633090vjDCHW','startsWith','catch','addUser','type','originalSuggestionId','attributes','requires','collaboration.channelId','_trackChangesService','3490gtdRwm','delete','978768oRAJlh','plugins','cloud-services-internal-error:\x20Not\x20connected.','adapter','update','pluginName','hasSuggestion','CloudServicesTrackChangesAdapter','values','977204TioPJY','find','open','addToReconnectionStack','_bufferedRequests','5RhTdXs','then','connected'];_0x3fbe=function(){return _0x5bfdf6;};return _0x3fbe();}import{Plugin as _0x4cac20}from'ckeditor5/src/core.js';import{User as _0x2d5a55,TrackChangesService as _0x2e525c}from'@ckeditor/ckeditor-cloud-services-collaboration/src/services.js';import _0x293f7a from'../realtimecollaborativeediting/websocketgateway.js';import _0x4f3c60 from'../realtimecollaborativecomments/cloudservicescommentsadapter.js';import{Users as _0x1a108c}from'ckeditor5-collaboration/src/collaboration-core.js';class f extends _0x4cac20{static [_0x5ddcd3(0x18b)]=/* #__PURE__ -- @preserve */
24
+ ((()=>_0x2e525c)());[_0x5ddcd3(0x169)];[_0x5ddcd3(0x159)];static get[_0x5ddcd3(0x157)](){const _0x3d7423=_0x5ddcd3;return[_0x4f3c60,_0x3d7423(0x170),_0x293f7a];}static get[_0x5ddcd3(0x161)](){const _0x58851e=_0x5ddcd3;return _0x58851e(0x163);}static get[_0x5ddcd3(0x179)](){return!0x0;}static get[_0x5ddcd3(0x17a)](){return!0x0;}constructor(_0x3eaf5f){const _0x5e18fb=_0x5ddcd3;super(_0x3eaf5f);const _0x30288d=this[_0x5e18fb(0x182)][_0x5e18fb(0x16e)][_0x5e18fb(0x185)](_0x5e18fb(0x158));this[_0x5e18fb(0x169)]=new Map(),this[_0x5e18fb(0x159)]=new f[(_0x5e18fb(0x18b))](_0x30288d);}[_0x5ddcd3(0x17f)](){const _0x2ac917=_0x5ddcd3,_0x1dfb88=this[_0x2ac917(0x182)][_0x2ac917(0x15d)][_0x2ac917(0x185)](_0x293f7a),_0x2027d4=this[_0x2ac917(0x182)][_0x2ac917(0x15d)][_0x2ac917(0x185)](_0x2ac917(0x170));return _0x2027d4[_0x2ac917(0x15f)]={'getSuggestion':async _0x287c02=>{const _0x22d039=_0x2ac917;await this[_0x22d039(0x18a)]();const _0x4162f5=await this[_0x22d039(0x159)][_0x22d039(0x185)](_0x287c02)[_0x22d039(0x152)](R);return await this[_0x22d039(0x17e)]([_0x4162f5]),_0x4162f5;},'addSuggestion':async({id:_0x2731cf,type:_0x163f3d,data:_0x4e7530,originalSuggestionId:_0x411881,attributes:_0x31ac47})=>{const _0x47d8a7=_0x2ac917;await this[_0x47d8a7(0x18a)]();const _0x1f7cc5={'id':_0x2731cf,'type':_0x163f3d,'data':_0x4e7530,'originalSuggestionId':_0x411881,'attributes':_0x31ac47},_0x22f6ca=await this[_0x47d8a7(0x159)][_0x47d8a7(0x184)](_0x2731cf,_0x163f3d,_0x4e7530,_0x411881,_0x31ac47)[_0x47d8a7(0x152)](_0x5d8369=>{if(U(_0x5d8369))return new Promise(_0x29d4f9=>{const _0x516a0a=_0x2b1b;this[_0x516a0a(0x169)][_0x516a0a(0x175)](_0x2731cf,{'resolve':_0x29d4f9,'suggestionData':_0x1f7cc5});});throw _0x5d8369;});return this[_0x47d8a7(0x169)][_0x47d8a7(0x15b)](_0x2731cf),_0x22f6ca;},'updateSuggestion':async(_0x13e07f,_0x43e9af)=>{const _0x30114d=_0x2ac917;if(await this[_0x30114d(0x18a)](),_0x30114d(0x167)!==_0x43e9af[_0x30114d(0x189)])return this[_0x30114d(0x159)][_0x30114d(0x160)](_0x13e07f,_0x43e9af)[_0x30114d(0x152)](R);}},this[_0x2ac917(0x14e)](this[_0x2ac917(0x159)],_0x2ac917(0x187),(_0x21f372,_0x392e52)=>{const _0xb01ae6=_0x2ac917;_0x2027d4[_0xb01ae6(0x162)](_0x392e52['id'])&&(_0x2027d4[_0xb01ae6(0x177)](_0x392e52['id'])[_0xb01ae6(0x156)]=_0x392e52[_0xb01ae6(0x156)]);}),this[_0x2ac917(0x159)][_0x2ac917(0x183)](_0x1dfb88[_0x2ac917(0x174)])[_0x2ac917(0x16b)](_0x47780e=>(_0x1dfb88[_0x2ac917(0x168)](this),this[_0x2ac917(0x17e)](_0x47780e)[_0x2ac917(0x16b)](()=>{const _0x53af77=_0x2ac917;for(const _0x3cbfe9 of _0x47780e){_0x2027d4[_0x53af77(0x188)](_0x3cbfe9)[_0x53af77(0x178)]=!0x0;}})));}async[_0x5ddcd3(0x186)](){const _0x341772=_0x5ddcd3,_0x12465a=this[_0x341772(0x182)][_0x341772(0x15d)][_0x341772(0x185)](_0x341772(0x170)),{connection:_0x33aea5}=this[_0x341772(0x182)][_0x341772(0x15d)][_0x341772(0x185)](_0x293f7a),_0x19432a=await this[_0x341772(0x159)][_0x341772(0x183)](_0x33aea5);await this[_0x341772(0x17e)](_0x19432a);for(const {suggestionData:_0x199193,resolve:_0x375140}of this[_0x341772(0x169)][_0x341772(0x164)]()){let _0x1c044f=_0x19432a[_0x341772(0x166)](_0x1e041b=>_0x1e041b['id']===_0x199193['id']);_0x1c044f||(_0x1c044f=await this[_0x341772(0x159)][_0x341772(0x184)](_0x199193['id'],_0x199193[_0x341772(0x154)],_0x199193[_0x341772(0x180)],_0x199193[_0x341772(0x155)])),_0x375140(_0x1c044f);}for(const _0x1b73d1 of _0x19432a)_0x12465a[_0x341772(0x162)](_0x1b73d1['id'])||_0x12465a[_0x341772(0x188)](_0x1b73d1);}async[_0x5ddcd3(0x18a)](){const _0x28624c=_0x5ddcd3;this[_0x28624c(0x159)][_0x28624c(0x17d)]||await new Promise(_0x55cdb3=>{const _0xb9d1c7=_0x28624c;this[_0xb9d1c7(0x14e)](this[_0xb9d1c7(0x159)],_0xb9d1c7(0x16c),_0x150d0f=>{const _0x554f46=_0xb9d1c7;_0x150d0f[_0x554f46(0x14f)](),_0x55cdb3();});});}async[_0x5ddcd3(0x17e)](_0x271522){const _0x30556f=_0x5ddcd3,_0x6dbbb6=this[_0x30556f(0x182)][_0x30556f(0x15d)][_0x30556f(0x185)](_0x1a108c),{connection:_0x4511c8}=this[_0x30556f(0x182)][_0x30556f(0x15d)][_0x30556f(0x185)](_0x293f7a),_0x3e89c3=new Set();for(const {authorId:_0x203e2e}of _0x271522)_0x6dbbb6[_0x30556f(0x16d)](_0x203e2e)||_0x3e89c3[_0x30556f(0x184)](_0x203e2e);if(0x0===_0x3e89c3[_0x30556f(0x171)])return;const _0x40107e=await _0x2d5a55[_0x30556f(0x18c)](_0x4511c8,Array[_0x30556f(0x17c)](_0x3e89c3));for(const _0x231d70 of _0x40107e)_0x6dbbb6[_0x30556f(0x16d)](_0x231d70['id'])||_0x6dbbb6[_0x30556f(0x153)](_0x231d70);}}export default f;function R(_0x57bff1){if(U(_0x57bff1))return new Promise(()=>{});throw _0x57bff1;}function _0x2b1b(_0x54d163,_0x4e5e1d){const _0x3fbe0c=_0x3fbe();return _0x2b1b=function(_0x2b1bc8,_0x247524){_0x2b1bc8=_0x2b1bc8-0x14e;let _0x3c1d7c=_0x3fbe0c[_0x2b1bc8];return _0x3c1d7c;},_0x2b1b(_0x54d163,_0x4e5e1d);}function U(_0x576239){const _0xbbeef=_0x5ddcd3;return _0x576239[_0xbbeef(0x181)][_0xbbeef(0x151)](_0xbbeef(0x15e))||_0x576239[_0xbbeef(0x181)][_0xbbeef(0x151)](_0xbbeef(0x173));}