@ckeditor/ckeditor5-real-time-collaboration 46.0.1-alpha.2 → 46.0.1-alpha.4

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 _0x5195db=_0x3067;function _0x1da4(){const _0x3b91ca=['config','suggestionUpdated','getUser','connected','connect','init','2956430BTfPuh','data','CloudServicesTrackChangesAdapter','504320uwEnzg','editor','isPremiumPlugin','plugins','3112cxBlRx','_waitForServiceReady','set','listenTo','363070ErNyYJ','getMany','startsWith','type','359611ZItkhI','then','reconnect','_saved','size','add','update','get','cloud-services-internal-error:\x20Request\x20timeout.','message','find','originalSuggestionId','TrackChangesService','_bufferedRequests','addToReconnectionStack','delete','24DWWfWa','from','isConnected','catch','3156NwHYBe','addSuggestionData','values','9807UVInlR','connection','addUser','state','_fetchMissingUsersForThreads','TrackChangesEditing','adapter','306063iIZtfg','_trackChangesService','off','pluginName','requires','hasSuggestion','collaboration.channelId','attributes','getSuggestion','1648lSgCrY','isOfficialPlugin','open','cloud-services-internal-error:\x20Not\x20connected.'];_0x1da4=function(){return _0x3b91ca;};return _0x1da4();}function _0x3067(_0x245851,_0x520938){const _0x1da4dd=_0x1da4();return _0x3067=function(_0x30673c,_0x33babb){_0x30673c=_0x30673c-0x11c;let _0x4df3e2=_0x1da4dd[_0x30673c];return _0x4df3e2;},_0x3067(_0x245851,_0x520938);}(function(_0x4da522,_0x46be8e){const _0x5bd94a=_0x3067,_0x5e81b6=_0x4da522();while(!![]){try{const _0x2bafa5=-parseInt(_0x5bd94a(0x128))/0x1+-parseInt(_0x5bd94a(0x11c))/0x2+-parseInt(_0x5bd94a(0x13c))/0x3*(-parseInt(_0x5bd94a(0x14f))/0x4)+parseInt(_0x5bd94a(0x124))/0x5*(parseInt(_0x5bd94a(0x138))/0x6)+-parseInt(_0x5bd94a(0x13f))/0x7*(-parseInt(_0x5bd94a(0x120))/0x8)+-parseInt(_0x5bd94a(0x146))/0x9+-parseInt(_0x5bd94a(0x159))/0xa;if(_0x2bafa5===_0x46be8e)break;else _0x5e81b6['push'](_0x5e81b6['shift']());}catch(_0xc1abef){_0x5e81b6['push'](_0x5e81b6['shift']());}}}(_0x1da4,0x4ff18));import{Plugin as _0x3d5769}from'ckeditor5/src/core.js';import{User as _0x23efd1,TrackChangesService as _0x166011}from'@ckeditor/ckeditor-cloud-services-collaboration/src/services.js';import{WebSocketGateway as _0x4c3027}from'../realtimecollaborativeediting/websocketgateway.js';import{CloudServicesCommentsAdapter as _0x2abcdd}from'../realtimecollaborativecomments/cloudservicescommentsadapter.js';import{Users as _0x4b6697}from'ckeditor5-collaboration/src/collaboration-core.js';class m extends _0x3d5769{static [_0x5195db(0x134)]=/* #__PURE__ -- @preserve */
24
- ((()=>_0x166011)());[_0x5195db(0x135)];[_0x5195db(0x147)];static get[_0x5195db(0x14a)](){const _0x56e821=_0x5195db;return[_0x2abcdd,_0x56e821(0x144),_0x4c3027];}static get[_0x5195db(0x149)](){const _0x4b53f6=_0x5195db;return _0x4b53f6(0x15b);}static get[_0x5195db(0x150)](){return!0x0;}static get[_0x5195db(0x11e)](){return!0x0;}constructor(_0x51819b){const _0x116963=_0x5195db;super(_0x51819b);const _0xc47f56=this[_0x116963(0x11d)][_0x116963(0x153)][_0x116963(0x12f)](_0x116963(0x14c));this[_0x116963(0x135)]=new Map(),this[_0x116963(0x147)]=new m[(_0x116963(0x134))](_0xc47f56);}[_0x5195db(0x158)](){const _0x3e5a95=_0x5195db,_0x35efb9=this[_0x3e5a95(0x11d)][_0x3e5a95(0x11f)][_0x3e5a95(0x12f)](_0x4c3027),_0x1c519d=this[_0x3e5a95(0x11d)][_0x3e5a95(0x11f)][_0x3e5a95(0x12f)](_0x3e5a95(0x144));return _0x1c519d[_0x3e5a95(0x145)]={'getSuggestion':async _0x4a500d=>{const _0x12d8d9=_0x3e5a95;await this[_0x12d8d9(0x121)]();const _0x348c8c=await this[_0x12d8d9(0x147)][_0x12d8d9(0x12f)](_0x4a500d)[_0x12d8d9(0x13b)](C);return await this[_0x12d8d9(0x143)]([_0x348c8c]),_0x348c8c;},'addSuggestion':async({id:_0x496370,type:_0x58e560,data:_0x4686e0,originalSuggestionId:_0xaa6ed2,attributes:_0xca889b})=>{const _0x2d382a=_0x3e5a95;await this[_0x2d382a(0x121)]();const _0x2e387e={'id':_0x496370,'type':_0x58e560,'data':_0x4686e0,'originalSuggestionId':_0xaa6ed2,'attributes':_0xca889b},_0x25d614=await this[_0x2d382a(0x147)][_0x2d382a(0x12d)](_0x496370,_0x58e560,_0x4686e0,_0xaa6ed2,_0xca889b)[_0x2d382a(0x13b)](_0x590746=>{if(P(_0x590746))return new Promise(_0x1eb388=>{const _0x57340e=_0x3067;this[_0x57340e(0x135)][_0x57340e(0x122)](_0x496370,{'resolve':_0x1eb388,'suggestionData':_0x2e387e});});throw _0x590746;});return this[_0x2d382a(0x135)][_0x2d382a(0x137)](_0x496370),_0x25d614;},'updateSuggestion':async(_0x45d45e,_0x365f56)=>{const _0x2fa10e=_0x3e5a95;if(await this[_0x2fa10e(0x121)](),_0x2fa10e(0x151)!==_0x365f56[_0x2fa10e(0x142)])return this[_0x2fa10e(0x147)][_0x2fa10e(0x12e)](_0x45d45e,_0x365f56)[_0x2fa10e(0x13b)](C);}},this[_0x3e5a95(0x123)](this[_0x3e5a95(0x147)],_0x3e5a95(0x154),(_0x599c41,_0x506507)=>{const _0xc4b1ea=_0x3e5a95;_0x1c519d[_0xc4b1ea(0x14b)](_0x506507['id'])&&(_0x1c519d[_0xc4b1ea(0x14e)](_0x506507['id'])[_0xc4b1ea(0x14d)]=_0x506507[_0xc4b1ea(0x14d)]);}),this[_0x3e5a95(0x147)][_0x3e5a95(0x157)](_0x35efb9[_0x3e5a95(0x140)])[_0x3e5a95(0x129)](_0xfc124d=>(_0x35efb9[_0x3e5a95(0x136)](this),this[_0x3e5a95(0x143)](_0xfc124d)[_0x3e5a95(0x129)](()=>{const _0x5279df=_0x3e5a95;for(const _0x1be9e2 of _0xfc124d){_0x1c519d[_0x5279df(0x13d)](_0x1be9e2)[_0x5279df(0x12b)]=!0x0;}})));}async[_0x5195db(0x12a)](){const _0x180b46=_0x5195db,_0x144781=this[_0x180b46(0x11d)][_0x180b46(0x11f)][_0x180b46(0x12f)](_0x180b46(0x144)),{connection:_0x39e597}=this[_0x180b46(0x11d)][_0x180b46(0x11f)][_0x180b46(0x12f)](_0x4c3027),_0x523420=await this[_0x180b46(0x147)][_0x180b46(0x157)](_0x39e597);await this[_0x180b46(0x143)](_0x523420);for(const {suggestionData:_0x4b31a7,resolve:_0x349d97}of this[_0x180b46(0x135)][_0x180b46(0x13e)]()){let _0x30ef03=_0x523420[_0x180b46(0x132)](_0x19b185=>_0x19b185['id']===_0x4b31a7['id']);_0x30ef03||(_0x30ef03=await this[_0x180b46(0x147)][_0x180b46(0x12d)](_0x4b31a7['id'],_0x4b31a7[_0x180b46(0x127)],_0x4b31a7[_0x180b46(0x15a)],_0x4b31a7[_0x180b46(0x133)])),_0x349d97(_0x30ef03);}for(const _0x20b0c5 of _0x523420)_0x144781[_0x180b46(0x14b)](_0x20b0c5['id'])||_0x144781[_0x180b46(0x13d)](_0x20b0c5);}async[_0x5195db(0x121)](){const _0x6363ef=_0x5195db;this[_0x6363ef(0x147)][_0x6363ef(0x13a)]||await new Promise(_0x385fea=>{const _0xd922d3=_0x6363ef;this[_0xd922d3(0x123)](this[_0xd922d3(0x147)],_0xd922d3(0x156),_0x1b7422=>{const _0x23f671=_0xd922d3;_0x1b7422[_0x23f671(0x148)](),_0x385fea();});});}async[_0x5195db(0x143)](_0x53de64){const _0x4a15ff=_0x5195db,_0x2506de=this[_0x4a15ff(0x11d)][_0x4a15ff(0x11f)][_0x4a15ff(0x12f)](_0x4b6697),{connection:_0x106833}=this[_0x4a15ff(0x11d)][_0x4a15ff(0x11f)][_0x4a15ff(0x12f)](_0x4c3027),_0x1c991f=new Set();for(const {authorId:_0x5ef71c}of _0x53de64)_0x2506de[_0x4a15ff(0x155)](_0x5ef71c)||_0x1c991f[_0x4a15ff(0x12d)](_0x5ef71c);if(0x0===_0x1c991f[_0x4a15ff(0x12c)])return;const _0x45949b=await _0x23efd1[_0x4a15ff(0x125)](_0x106833,Array[_0x4a15ff(0x139)](_0x1c991f));for(const _0x461e70 of _0x45949b)_0x2506de[_0x4a15ff(0x155)](_0x461e70['id'])||_0x2506de[_0x4a15ff(0x141)](_0x461e70);}}export{m as CloudServicesTrackChangesAdapter};function C(_0x56fe4e){if(P(_0x56fe4e))return new Promise(()=>{});throw _0x56fe4e;}function P(_0xf9efb4){const _0x5be83a=_0x5195db;return _0xf9efb4[_0x5be83a(0x131)][_0x5be83a(0x126)](_0x5be83a(0x152))||_0xf9efb4[_0x5be83a(0x131)][_0x5be83a(0x126)](_0x5be83a(0x130));}
23
+ const _0x514acd=_0x3d6a;(function(_0x3144e3,_0x3ec5c2){const _0x35041b=_0x3d6a,_0x2ba013=_0x3144e3();while(!![]){try{const _0x3e90ce=-parseInt(_0x35041b(0x165))/0x1*(-parseInt(_0x35041b(0x186))/0x2)+parseInt(_0x35041b(0x169))/0x3*(parseInt(_0x35041b(0x185))/0x4)+-parseInt(_0x35041b(0x160))/0x5*(-parseInt(_0x35041b(0x194))/0x6)+parseInt(_0x35041b(0x16f))/0x7+-parseInt(_0x35041b(0x174))/0x8*(-parseInt(_0x35041b(0x18f))/0x9)+-parseInt(_0x35041b(0x189))/0xa*(parseInt(_0x35041b(0x179))/0xb)+-parseInt(_0x35041b(0x193))/0xc;if(_0x3e90ce===_0x3ec5c2)break;else _0x2ba013['push'](_0x2ba013['shift']());}catch(_0xd9cc6b){_0x2ba013['push'](_0x2ba013['shift']());}}}(_0x12b3,0x465d3));import{Plugin as _0x236088}from'ckeditor5/src/core.js';function _0x12b3(){const _0x51d372=['addSuggestionData','data','70820ZIlwqC','update','cloud-services-internal-error:\x20Not\x20connected.','requires','TrackChangesEditing','set','841401lSvNoE','then','size','plugins','9374820zuTSJK','1476ZZjdJY','state','getMany','hasSuggestion','connected','adapter','addToReconnectionStack','getUser','message','originalSuggestionId','CloudServicesTrackChangesAdapter','isPremiumPlugin','_trackChangesService','cloud-services-internal-error:\x20Request\x20timeout.','9615CdGXia','get','TrackChangesService','collaboration.channelId','_saved','28KGboeB','startsWith','pluginName','_waitForServiceReady','3PwDEvX','isConnected','listenTo','type','from','catch','1426327JTnnka','off','add','getSuggestion','attributes','8gKQiug','_bufferedRequests','open','connect','editor','418aAxmJn','isOfficialPlugin','addUser','connection','init','config','reconnect','find','suggestionUpdated','_fetchMissingUsersForThreads','delete','values','1580968FbBOha','12358nfIukR'];_0x12b3=function(){return _0x51d372;};return _0x12b3();}function _0x3d6a(_0x1f75b7,_0x345c93){const _0x12b348=_0x12b3();return _0x3d6a=function(_0x3d6ad5,_0x367328){_0x3d6ad5=_0x3d6ad5-0x155;let _0x3ee292=_0x12b348[_0x3d6ad5];return _0x3ee292;},_0x3d6a(_0x1f75b7,_0x345c93);}import{User as _0x3350b4,TrackChangesService as _0x1636b8}from'@ckeditor/ckeditor-cloud-services-collaboration/src/services.js';import{WebSocketGateway as _0x5d73d0}from'../realtimecollaborativeediting/websocketgateway.js';import{CloudServicesCommentsAdapter as _0x511642}from'../realtimecollaborativecomments/cloudservicescommentsadapter.js';import{Users as _0x14cb53}from'ckeditor5-collaboration/src/collaboration-core.js';class m extends _0x236088{static [_0x514acd(0x162)]=/* #__PURE__ -- @preserve */
24
+ ((()=>_0x1636b8)());[_0x514acd(0x175)];[_0x514acd(0x15e)];static get[_0x514acd(0x18c)](){const _0x457550=_0x514acd;return[_0x511642,_0x457550(0x18d),_0x5d73d0];}static get[_0x514acd(0x167)](){const _0x4990fb=_0x514acd;return _0x4990fb(0x15c);}static get[_0x514acd(0x17a)](){return!0x0;}static get[_0x514acd(0x15d)](){return!0x0;}constructor(_0x1d5fd1){const _0x4507b9=_0x514acd;super(_0x1d5fd1);const _0x5378f6=this[_0x4507b9(0x178)][_0x4507b9(0x17e)][_0x4507b9(0x161)](_0x4507b9(0x163));this[_0x4507b9(0x175)]=new Map(),this[_0x4507b9(0x15e)]=new m[(_0x4507b9(0x162))](_0x5378f6);}[_0x514acd(0x17d)](){const _0xdccaae=_0x514acd,_0x294c6b=this[_0xdccaae(0x178)][_0xdccaae(0x192)][_0xdccaae(0x161)](_0x5d73d0),_0xa6c6ad=this[_0xdccaae(0x178)][_0xdccaae(0x192)][_0xdccaae(0x161)](_0xdccaae(0x18d));return _0xa6c6ad[_0xdccaae(0x157)]={'getSuggestion':async _0x57a446=>{const _0x31ef01=_0xdccaae;await this[_0x31ef01(0x168)]();const _0x54d367=await this[_0x31ef01(0x15e)][_0x31ef01(0x161)](_0x57a446)[_0x31ef01(0x16e)](B);return await this[_0x31ef01(0x182)]([_0x54d367]),_0x54d367;},'addSuggestion':async({id:_0x596acf,type:_0x49f77e,data:_0x4eede0,originalSuggestionId:_0x3ca69e,attributes:_0x1de694})=>{const _0x371650=_0xdccaae;await this[_0x371650(0x168)]();const _0x3654b5={'id':_0x596acf,'type':_0x49f77e,'data':_0x4eede0,'originalSuggestionId':_0x3ca69e,'attributes':_0x1de694},_0x4b3c6f=await this[_0x371650(0x15e)][_0x371650(0x171)](_0x596acf,_0x49f77e,_0x4eede0,_0x3ca69e,_0x1de694)[_0x371650(0x16e)](_0x5a419a=>{if(P(_0x5a419a))return new Promise(_0x32e692=>{const _0x5944d9=_0x3d6a;this[_0x5944d9(0x175)][_0x5944d9(0x18e)](_0x596acf,{'resolve':_0x32e692,'suggestionData':_0x3654b5});});throw _0x5a419a;});return this[_0x371650(0x175)][_0x371650(0x183)](_0x596acf),_0x4b3c6f;},'updateSuggestion':async(_0x32acac,_0x57a3b8)=>{const _0x43b4a3=_0xdccaae;if(await this[_0x43b4a3(0x168)](),_0x43b4a3(0x176)!==_0x57a3b8[_0x43b4a3(0x195)])return this[_0x43b4a3(0x15e)][_0x43b4a3(0x18a)](_0x32acac,_0x57a3b8)[_0x43b4a3(0x16e)](B);}},this[_0xdccaae(0x16b)](this[_0xdccaae(0x15e)],_0xdccaae(0x181),(_0xdb5d24,_0x1d7906)=>{const _0x5007fd=_0xdccaae;_0xa6c6ad[_0x5007fd(0x155)](_0x1d7906['id'])&&(_0xa6c6ad[_0x5007fd(0x172)](_0x1d7906['id'])[_0x5007fd(0x173)]=_0x1d7906[_0x5007fd(0x173)]);}),this[_0xdccaae(0x15e)][_0xdccaae(0x177)](_0x294c6b[_0xdccaae(0x17c)])[_0xdccaae(0x190)](_0x348e42=>(_0x294c6b[_0xdccaae(0x158)](this),this[_0xdccaae(0x182)](_0x348e42)[_0xdccaae(0x190)](()=>{const _0x31cc62=_0xdccaae;for(const _0x462d05 of _0x348e42){_0xa6c6ad[_0x31cc62(0x187)](_0x462d05)[_0x31cc62(0x164)]=!0x0;}})));}async[_0x514acd(0x17f)](){const _0x322c98=_0x514acd,_0x451ce8=this[_0x322c98(0x178)][_0x322c98(0x192)][_0x322c98(0x161)](_0x322c98(0x18d)),{connection:_0x5b933c}=this[_0x322c98(0x178)][_0x322c98(0x192)][_0x322c98(0x161)](_0x5d73d0),_0x5a038d=await this[_0x322c98(0x15e)][_0x322c98(0x177)](_0x5b933c);await this[_0x322c98(0x182)](_0x5a038d);for(const {suggestionData:_0xc652ff,resolve:_0x5ea92a}of this[_0x322c98(0x175)][_0x322c98(0x184)]()){let _0x2291e2=_0x5a038d[_0x322c98(0x180)](_0x136f55=>_0x136f55['id']===_0xc652ff['id']);_0x2291e2||(_0x2291e2=await this[_0x322c98(0x15e)][_0x322c98(0x171)](_0xc652ff['id'],_0xc652ff[_0x322c98(0x16c)],_0xc652ff[_0x322c98(0x188)],_0xc652ff[_0x322c98(0x15b)])),_0x5ea92a(_0x2291e2);}for(const _0x6e5c12 of _0x5a038d)_0x451ce8[_0x322c98(0x155)](_0x6e5c12['id'])||_0x451ce8[_0x322c98(0x187)](_0x6e5c12);}async[_0x514acd(0x168)](){const _0x5fd040=_0x514acd;this[_0x5fd040(0x15e)][_0x5fd040(0x16a)]||await new Promise(_0x506d2d=>{const _0x3ff857=_0x5fd040;this[_0x3ff857(0x16b)](this[_0x3ff857(0x15e)],_0x3ff857(0x156),_0x34ecc8=>{const _0x53c31d=_0x3ff857;_0x34ecc8[_0x53c31d(0x170)](),_0x506d2d();});});}async[_0x514acd(0x182)](_0x44ab97){const _0xb8f153=_0x514acd,_0x2b0b2b=this[_0xb8f153(0x178)][_0xb8f153(0x192)][_0xb8f153(0x161)](_0x14cb53),{connection:_0x394dfb}=this[_0xb8f153(0x178)][_0xb8f153(0x192)][_0xb8f153(0x161)](_0x5d73d0),_0x4bfcb9=new Set();for(const {authorId:_0x7830df}of _0x44ab97)_0x2b0b2b[_0xb8f153(0x159)](_0x7830df)||_0x4bfcb9[_0xb8f153(0x171)](_0x7830df);if(0x0===_0x4bfcb9[_0xb8f153(0x191)])return;const _0x8921f=await _0x3350b4[_0xb8f153(0x196)](_0x394dfb,Array[_0xb8f153(0x16d)](_0x4bfcb9));for(const _0x52b55d of _0x8921f)_0x2b0b2b[_0xb8f153(0x159)](_0x52b55d['id'])||_0x2b0b2b[_0xb8f153(0x17b)](_0x52b55d);}}export{m as CloudServicesTrackChangesAdapter};function B(_0x2346dc){if(P(_0x2346dc))return new Promise(()=>{});throw _0x2346dc;}function P(_0x312b6a){const _0x4c2d07=_0x514acd;return _0x312b6a[_0x4c2d07(0x15a)][_0x4c2d07(0x166)](_0x4c2d07(0x18b))||_0x312b6a[_0x4c2d07(0x15a)][_0x4c2d07(0x166)](_0x4c2d07(0x15f));}