@ckeditor/ckeditor5-real-time-collaboration 44.1.0-alpha.0 → 44.1.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.
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x320df8=_0x5da8;function _0x31a7(){const _0x2b40c0=['get','TrackChangesEditing','reconnect','connect','TrackChangesService','isConnected','set','CloudServicesTrackChangesAdapter','then','isPremiumPlugin','find','207408SUenYG','10510RhuXiU','194677FahyDn','5117000QaUxBv','startsWith','editor','getMany','pluginName','from','_waitForServiceReady','addToReconnectionStack','_fetchMissingUsersForThreads','13095071kyRRXS','originalSuggestionId','402rCBABq','plugins','off','addUser','message','requires','update','_bufferedRequests','config','attributes','cloud-services-internal-error:\x20Request\x20timeout.','size','88DeNioF','8Qpdskq','17988myjFIz','connection','18bdQNLx','173646DSwoNp','open','_trackChangesService','getSuggestion','connected','collaboration.channelId','cloud-services-internal-error:\x20Not\x20connected.','delete','catch','state','addSuggestionData','getUser','hasSuggestion','type','data','isOfficialPlugin','listenTo','adapter','values','_saved','suggestionUpdated','init','add'];_0x31a7=function(){return _0x2b40c0;};return _0x31a7();}(function(_0x197aa8,_0x2f4bd8){const _0x3f28a0=_0x5da8,_0xdc1f7c=_0x197aa8();while(!![]){try{const _0x4bdddb=-parseInt(_0x3f28a0(0x130))/0x1*(-parseInt(_0x3f28a0(0x132))/0x2)+parseInt(_0x3f28a0(0x114))/0x3*(-parseInt(_0x3f28a0(0x12f))/0x4)+parseInt(_0x3f28a0(0x115))/0x5*(-parseInt(_0x3f28a0(0x122))/0x6)+-parseInt(_0x3f28a0(0x116))/0x7*(parseInt(_0x3f28a0(0x12e))/0x8)+parseInt(_0x3f28a0(0x133))/0x9+-parseInt(_0x3f28a0(0x117))/0xa+parseInt(_0x3f28a0(0x120))/0xb;if(_0x4bdddb===_0x2f4bd8)break;else _0xdc1f7c['push'](_0xdc1f7c['shift']());}catch(_0xf588e0){_0xdc1f7c['push'](_0xdc1f7c['shift']());}}}(_0x31a7,0x431e8));import{Plugin as _0x535ff3}from'ckeditor5/src/core.js';import{User as _0x3c9078,TrackChangesService as _0x4eba8d}from'@ckeditor/ckeditor-cloud-services-collaboration/src/services.js';import _0x19bfdd from'../realtimecollaborativeediting/websocketgateway.js';import _0xc1a96c from'../realtimecollaborativecomments/cloudservicescommentsadapter.js';import{Users as _0x3cbf64}from'ckeditor5-collaboration/src/collaboration-core.js';class f extends _0x535ff3{static get[_0x320df8(0x127)](){const _0xe25c7a=_0x320df8;return[_0xc1a96c,_0xe25c7a(0x10a),_0x19bfdd];}static get[_0x320df8(0x11b)](){const _0xed827e=_0x320df8;return _0xed827e(0x110);}static get[_0x320df8(0x101)](){return!0x0;}static get[_0x320df8(0x112)](){return!0x0;}constructor(_0x55ba5e){const _0x48ef12=_0x320df8;super(_0x55ba5e);const _0x25e88f=this[_0x48ef12(0x119)][_0x48ef12(0x12a)][_0x48ef12(0x109)](_0x48ef12(0x138));this[_0x48ef12(0x129)]=new Map(),this[_0x48ef12(0x135)]=new f[(_0x48ef12(0x10d))](_0x25e88f);}[_0x320df8(0x107)](){const _0x450832=_0x320df8,_0x47fa97=this[_0x450832(0x119)][_0x450832(0x123)][_0x450832(0x109)](_0x19bfdd),_0x47b553=this[_0x450832(0x119)][_0x450832(0x123)][_0x450832(0x109)](_0x450832(0x10a));return _0x47b553[_0x450832(0x103)]={'getSuggestion':async _0x4ebf09=>{const _0x2e660f=_0x450832;await this[_0x2e660f(0x11d)]();const _0x4091f1=await this[_0x2e660f(0x135)][_0x2e660f(0x109)](_0x4ebf09)[_0x2e660f(0x13b)](R);return await this[_0x2e660f(0x11f)]([_0x4091f1]),_0x4091f1;},'addSuggestion':async({id:_0x3f5be4,type:_0x1b9c14,data:_0x518450,originalSuggestionId:_0x15052c,attributes:_0x159d93})=>{const _0x2ec00a=_0x450832;await this[_0x2ec00a(0x11d)]();const _0x107c06={'id':_0x3f5be4,'type':_0x1b9c14,'data':_0x518450,'originalSuggestionId':_0x15052c,'attributes':_0x159d93},_0x54927c=await this[_0x2ec00a(0x135)][_0x2ec00a(0x108)](_0x3f5be4,_0x1b9c14,_0x518450,_0x15052c,_0x159d93)[_0x2ec00a(0x13b)](_0x283314=>{if(U(_0x283314))return new Promise(_0x148241=>{const _0x2fe949=_0x5da8;this[_0x2fe949(0x129)][_0x2fe949(0x10f)](_0x3f5be4,{'resolve':_0x148241,'suggestionData':_0x107c06});});throw _0x283314;});return this[_0x2ec00a(0x129)][_0x2ec00a(0x13a)](_0x3f5be4),_0x54927c;},'updateSuggestion':async(_0x1290ad,_0x4075ec)=>{const _0x364fdb=_0x450832;if(await this[_0x364fdb(0x11d)](),_0x364fdb(0x134)!==_0x4075ec[_0x364fdb(0xfb)])return this[_0x364fdb(0x135)][_0x364fdb(0x128)](_0x1290ad,_0x4075ec)[_0x364fdb(0x13b)](R);}},this[_0x450832(0x102)](this[_0x450832(0x135)],_0x450832(0x106),(_0x327ddc,_0x3238a7)=>{const _0x3ef8e1=_0x450832;_0x47b553[_0x3ef8e1(0xfe)](_0x3238a7['id'])&&(_0x47b553[_0x3ef8e1(0x136)](_0x3238a7['id'])[_0x3ef8e1(0x12b)]=_0x3238a7[_0x3ef8e1(0x12b)]);}),this[_0x450832(0x135)][_0x450832(0x10c)](_0x47fa97[_0x450832(0x131)])[_0x450832(0x111)](_0x2740a7=>(_0x47fa97[_0x450832(0x11e)](this),this[_0x450832(0x11f)](_0x2740a7)[_0x450832(0x111)](()=>{const _0x252c72=_0x450832;for(const _0x2ac2be of _0x2740a7){_0x47b553[_0x252c72(0xfc)](_0x2ac2be)[_0x252c72(0x105)]=!0x0;}})));}async[_0x320df8(0x10b)](){const _0x1d191c=_0x320df8,_0x21b1d2=this[_0x1d191c(0x119)][_0x1d191c(0x123)][_0x1d191c(0x109)](_0x1d191c(0x10a)),{connection:_0x11a438}=this[_0x1d191c(0x119)][_0x1d191c(0x123)][_0x1d191c(0x109)](_0x19bfdd),_0xc30da2=await this[_0x1d191c(0x135)][_0x1d191c(0x10c)](_0x11a438);await this[_0x1d191c(0x11f)](_0xc30da2);for(const {suggestionData:_0x3f359a,resolve:_0x37c5e3}of this[_0x1d191c(0x129)][_0x1d191c(0x104)]()){let _0x50a1c1=_0xc30da2[_0x1d191c(0x113)](_0x1c2329=>_0x1c2329['id']===_0x3f359a['id']);_0x50a1c1||(_0x50a1c1=await this[_0x1d191c(0x135)][_0x1d191c(0x108)](_0x3f359a['id'],_0x3f359a[_0x1d191c(0xff)],_0x3f359a[_0x1d191c(0x100)],_0x3f359a[_0x1d191c(0x121)])),_0x37c5e3(_0x50a1c1);}for(const _0x1a1313 of _0xc30da2)_0x21b1d2[_0x1d191c(0xfe)](_0x1a1313['id'])||_0x21b1d2[_0x1d191c(0xfc)](_0x1a1313);}async[_0x320df8(0x11d)](){const _0x9cbced=_0x320df8;this[_0x9cbced(0x135)][_0x9cbced(0x10e)]||await new Promise(_0x5906e7=>{const _0x39cb39=_0x9cbced;this[_0x39cb39(0x102)](this[_0x39cb39(0x135)],_0x39cb39(0x137),_0x505a11=>{const _0x28190d=_0x39cb39;_0x505a11[_0x28190d(0x124)](),_0x5906e7();});});}async[_0x320df8(0x11f)](_0x3696ea){const _0x37e8bb=_0x320df8,_0x4b8f6b=this[_0x37e8bb(0x119)][_0x37e8bb(0x123)][_0x37e8bb(0x109)](_0x3cbf64),{connection:_0x20fbc1}=this[_0x37e8bb(0x119)][_0x37e8bb(0x123)][_0x37e8bb(0x109)](_0x19bfdd),_0x83f55a=new Set();for(const {authorId:_0x150da6}of _0x3696ea)_0x4b8f6b[_0x37e8bb(0xfd)](_0x150da6)||_0x83f55a[_0x37e8bb(0x108)](_0x150da6);if(0x0===_0x83f55a[_0x37e8bb(0x12d)])return;const _0x42514e=await _0x3c9078[_0x37e8bb(0x11a)](_0x20fbc1,Array[_0x37e8bb(0x11c)](_0x83f55a));for(const _0x560570 of _0x42514e)_0x4b8f6b[_0x37e8bb(0xfd)](_0x560570['id'])||_0x4b8f6b[_0x37e8bb(0x125)](_0x560570);}}f[_0x320df8(0x10d)]=_0x4eba8d;export default f;function R(_0x300e8d){if(U(_0x300e8d))return new Promise(()=>{});throw _0x300e8d;}function _0x5da8(_0x407ac8,_0x1edacc){const _0x31a70b=_0x31a7();return _0x5da8=function(_0x5da8b3,_0xf55642){_0x5da8b3=_0x5da8b3-0xfb;let _0x1562ff=_0x31a70b[_0x5da8b3];return _0x1562ff;},_0x5da8(_0x407ac8,_0x1edacc);}function U(_0x29b38f){const _0x460f56=_0x320df8;return _0x29b38f[_0x460f56(0x126)][_0x460f56(0x118)](_0x460f56(0x139))||_0x29b38f[_0x460f56(0x126)][_0x460f56(0x118)](_0x460f56(0x12c));}
23
+ const _0x16479a=_0xe349;(function(_0x1ec3ef,_0x2ca486){const _0x329233=_0xe349,_0x3ddf4d=_0x1ec3ef();while(!![]){try{const _0x45fb76=-parseInt(_0x329233(0x1e7))/0x1*(parseInt(_0x329233(0x1d7))/0x2)+parseInt(_0x329233(0x211))/0x3*(parseInt(_0x329233(0x1f0))/0x4)+-parseInt(_0x329233(0x209))/0x5*(parseInt(_0x329233(0x1e6))/0x6)+parseInt(_0x329233(0x207))/0x7*(-parseInt(_0x329233(0x200))/0x8)+-parseInt(_0x329233(0x214))/0x9+parseInt(_0x329233(0x20d))/0xa+parseInt(_0x329233(0x1de))/0xb*(parseInt(_0x329233(0x1f2))/0xc);if(_0x45fb76===_0x2ca486)break;else _0x3ddf4d['push'](_0x3ddf4d['shift']());}catch(_0x1af4e9){_0x3ddf4d['push'](_0x3ddf4d['shift']());}}}(_0x5247,0x93be8));import{Plugin as _0x4e9c44}from'ckeditor5/src/core.js';import{User as _0x260803,TrackChangesService as _0x38f6e7}from'@ckeditor/ckeditor-cloud-services-collaboration/src/services.js';import _0x9438e1 from'../realtimecollaborativeediting/websocketgateway.js';import _0x27be20 from'../realtimecollaborativecomments/cloudservicescommentsadapter.js';import{Users as _0x26d80e}from'ckeditor5-collaboration/src/collaboration-core.js';function _0xe349(_0x843171,_0x4e5fd2){const _0x524745=_0x5247();return _0xe349=function(_0xe349ac,_0x117127){_0xe349ac=_0xe349ac-0x1d4;let _0x4d9fd5=_0x524745[_0xe349ac];return _0x4d9fd5;},_0xe349(_0x843171,_0x4e5fd2);}class f extends _0x4e9c44{static get[_0x16479a(0x1e2)](){const _0x2c1f34=_0x16479a;return[_0x27be20,_0x2c1f34(0x1d4),_0x9438e1];}static get[_0x16479a(0x204)](){const _0x4a95c0=_0x16479a;return _0x4a95c0(0x1eb);}static get[_0x16479a(0x1df)](){return!0x0;}static get[_0x16479a(0x20e)](){return!0x0;}constructor(_0x1e6cae){const _0x47c8b8=_0x16479a;super(_0x1e6cae);const _0x293ccf=this[_0x47c8b8(0x1ff)][_0x47c8b8(0x1e3)][_0x47c8b8(0x203)](_0x47c8b8(0x1ed));this[_0x47c8b8(0x1fa)]=new Map(),this[_0x47c8b8(0x1e9)]=new f[(_0x47c8b8(0x1ec))](_0x293ccf);}[_0x16479a(0x1dc)](){const _0x5f18b3=_0x16479a,_0x28756e=this[_0x5f18b3(0x1ff)][_0x5f18b3(0x208)][_0x5f18b3(0x203)](_0x9438e1),_0x133356=this[_0x5f18b3(0x1ff)][_0x5f18b3(0x208)][_0x5f18b3(0x203)](_0x5f18b3(0x1d4));return _0x133356[_0x5f18b3(0x1dd)]={'getSuggestion':async _0x19fce4=>{const _0x4c3bc4=_0x5f18b3;await this[_0x4c3bc4(0x1da)]();const _0x510fcd=await this[_0x4c3bc4(0x1e9)][_0x4c3bc4(0x203)](_0x19fce4)[_0x4c3bc4(0x1f3)](R);return await this[_0x4c3bc4(0x206)]([_0x510fcd]),_0x510fcd;},'addSuggestion':async({id:_0x411fd3,type:_0x130c96,data:_0x25c7e0,originalSuggestionId:_0x3cbe9a,attributes:_0x43050d})=>{const _0x1db12d=_0x5f18b3;await this[_0x1db12d(0x1da)]();const _0x474982={'id':_0x411fd3,'type':_0x130c96,'data':_0x25c7e0,'originalSuggestionId':_0x3cbe9a,'attributes':_0x43050d},_0x5c55f9=await this[_0x1db12d(0x1e9)][_0x1db12d(0x1f4)](_0x411fd3,_0x130c96,_0x25c7e0,_0x3cbe9a,_0x43050d)[_0x1db12d(0x1f3)](_0x29e363=>{if(st(_0x29e363))return new Promise(_0xb754d5=>{const _0xf0180b=_0xe349;this[_0xf0180b(0x1fa)][_0xf0180b(0x1f6)](_0x411fd3,{'resolve':_0xb754d5,'suggestionData':_0x474982});});throw _0x29e363;});return this[_0x1db12d(0x1fa)][_0x1db12d(0x201)](_0x411fd3),_0x5c55f9;},'updateSuggestion':async(_0x3db792,_0x880bb6)=>{const _0x1c25ce=_0x5f18b3;if(await this[_0x1c25ce(0x1da)](),_0x1c25ce(0x20f)!==_0x880bb6[_0x1c25ce(0x1d9)])return this[_0x1c25ce(0x1e9)][_0x1c25ce(0x1e0)](_0x3db792,_0x880bb6)[_0x1c25ce(0x1f3)](R);}},this[_0x5f18b3(0x20b)](this[_0x5f18b3(0x1e9)],_0x5f18b3(0x1e4),(_0xbd3765,_0x4e97ae)=>{const _0x26cd52=_0x5f18b3;_0x133356[_0x26cd52(0x1fb)](_0x4e97ae['id'])&&(_0x133356[_0x26cd52(0x1d6)](_0x4e97ae['id'])[_0x26cd52(0x1fe)]=_0x4e97ae[_0x26cd52(0x1fe)]);}),this[_0x5f18b3(0x1e9)][_0x5f18b3(0x215)](_0x28756e[_0x5f18b3(0x1e8)])[_0x5f18b3(0x20c)](_0x348eaf=>(_0x28756e[_0x5f18b3(0x212)](this),this[_0x5f18b3(0x206)](_0x348eaf)[_0x5f18b3(0x20c)](()=>{const _0x4cbcc5=_0x5f18b3;for(const _0x42ac8d of _0x348eaf){_0x133356[_0x4cbcc5(0x1f5)](_0x42ac8d)[_0x4cbcc5(0x20a)]=!0x0;}})));}async[_0x16479a(0x205)](){const _0x3db43e=_0x16479a,_0x2c517b=this[_0x3db43e(0x1ff)][_0x3db43e(0x208)][_0x3db43e(0x203)](_0x3db43e(0x1d4)),{connection:_0x30cb09}=this[_0x3db43e(0x1ff)][_0x3db43e(0x208)][_0x3db43e(0x203)](_0x9438e1),_0x100753=await this[_0x3db43e(0x1e9)][_0x3db43e(0x215)](_0x30cb09);await this[_0x3db43e(0x206)](_0x100753);for(const {suggestionData:_0x52a1f7,resolve:_0x22f603}of this[_0x3db43e(0x1fa)][_0x3db43e(0x202)]()){let _0x2a14cb=_0x100753[_0x3db43e(0x1fd)](_0xf7b511=>_0xf7b511['id']===_0x52a1f7['id']);_0x2a14cb||(_0x2a14cb=await this[_0x3db43e(0x1e9)][_0x3db43e(0x1f4)](_0x52a1f7['id'],_0x52a1f7[_0x3db43e(0x1db)],_0x52a1f7[_0x3db43e(0x1fc)],_0x52a1f7[_0x3db43e(0x210)])),_0x22f603(_0x2a14cb);}for(const _0x129293 of _0x100753)_0x2c517b[_0x3db43e(0x1fb)](_0x129293['id'])||_0x2c517b[_0x3db43e(0x1f5)](_0x129293);}async[_0x16479a(0x1da)](){const _0x5baea0=_0x16479a;this[_0x5baea0(0x1e9)][_0x5baea0(0x1e1)]||await new Promise(_0xac0b1=>{const _0x19305f=_0x5baea0;this[_0x19305f(0x20b)](this[_0x19305f(0x1e9)],_0x19305f(0x1e5),_0xa18708=>{const _0xfc9900=_0x19305f;_0xa18708[_0xfc9900(0x1ee)](),_0xac0b1();});});}async[_0x16479a(0x206)](_0x3b6400){const _0x23a320=_0x16479a,_0x3f4ddb=this[_0x23a320(0x1ff)][_0x23a320(0x208)][_0x23a320(0x203)](_0x26d80e),{connection:_0x2e0f31}=this[_0x23a320(0x1ff)][_0x23a320(0x208)][_0x23a320(0x203)](_0x9438e1),_0x4def40=new Set();for(const {authorId:_0xd5f9ee}of _0x3b6400)_0x3f4ddb[_0x23a320(0x1f8)](_0xd5f9ee)||_0x4def40[_0x23a320(0x1f4)](_0xd5f9ee);if(0x0===_0x4def40[_0x23a320(0x1f7)])return;const _0x535e30=await _0x260803[_0x23a320(0x1d5)](_0x2e0f31,Array[_0x23a320(0x1f9)](_0x4def40));for(const _0x20ae5f of _0x535e30)_0x3f4ddb[_0x23a320(0x1f8)](_0x20ae5f['id'])||_0x3f4ddb[_0x23a320(0x1f1)](_0x20ae5f);}}f[_0x16479a(0x1ec)]=_0x38f6e7;export default f;function _0x5247(){const _0x3ed3f8=['find','attributes','editor','608JqtqDq','delete','values','get','pluginName','reconnect','_fetchMissingUsersForThreads','102326wlNbzq','plugins','48490FgOFoL','_saved','listenTo','then','403190sowtOv','isPremiumPlugin','open','originalSuggestionId','19029HuERDR','addToReconnectionStack','cloud-services-internal-error:\x20Request\x20timeout.','3903669UxqtJd','connect','TrackChangesEditing','getMany','getSuggestion','724KgxOoy','cloud-services-internal-error:\x20Not\x20connected.','state','_waitForServiceReady','type','init','adapter','73469MMwxNH','isOfficialPlugin','update','isConnected','requires','config','suggestionUpdated','connected','606uiiTzF','2432lLwHfX','connection','_trackChangesService','message','CloudServicesTrackChangesAdapter','TrackChangesService','collaboration.channelId','off','startsWith','452LgPYZd','addUser','5844WutQPx','catch','add','addSuggestionData','set','size','getUser','from','_bufferedRequests','hasSuggestion','data'];_0x5247=function(){return _0x3ed3f8;};return _0x5247();}function R(_0x202920){if(st(_0x202920))return new Promise(()=>{});throw _0x202920;}function st(_0x41527f){const _0x17d2c3=_0x16479a;return _0x41527f[_0x17d2c3(0x1ea)][_0x17d2c3(0x1ef)](_0x17d2c3(0x1d8))||_0x41527f[_0x17d2c3(0x1ea)][_0x17d2c3(0x1ef)](_0x17d2c3(0x213));}