@ckeditor/ckeditor5-real-time-collaboration 46.0.1-alpha.0 → 46.0.1-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,5 +20,5 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x311690=_0xc5c9;function _0x38bb(){const _0x1d374a=['collaboration.channelId','565641RNEMRR','editor','adapter','find','delete','plugins','_saved','from','originalSuggestionId','1256nsPhte','pluginName','_fetchMissingUsersForThreads','connection','suggestionUpdated','163842cyzKjI','init','TrackChangesService','_trackChangesService','state','53991ZCBLta','isOfficialPlugin','catch','3617725ceGjDV','connected','get','add','size','getSuggestion','attributes','reconnect','open','requires','CloudServicesTrackChangesAdapter','259aiuBWY','_bufferedRequests','data','2193198SmkuYA','update','getUser','off','config','addUser','type','listenTo','connect','_waitForServiceReady','13614040CpodjE','cloud-services-internal-error:\x20Not\x20connected.','set','values','isPremiumPlugin','38108DhASol','hasSuggestion','getMany','isConnected','addSuggestionData','startsWith','message','addToReconnectionStack','then','303WyGgsh','cloud-services-internal-error:\x20Request\x20timeout.','TrackChangesEditing'];_0x38bb=function(){return _0x1d374a;};return _0x38bb();}(function(_0x49f5f6,_0x2474cb){const _0x25b170=_0xc5c9,_0xe0dbd0=_0x49f5f6();while(!![]){try{const _0x21cff4=parseInt(_0x25b170(0x9e))/0x1+parseInt(_0x25b170(0xc2))/0x2+-parseInt(_0x25b170(0xda))/0x3*(parseInt(_0x25b170(0xd1))/0x4)+-parseInt(_0x25b170(0xb4))/0x5+parseInt(_0x25b170(0xac))/0x6*(parseInt(_0x25b170(0xbf))/0x7)+parseInt(_0x25b170(0xa7))/0x8*(parseInt(_0x25b170(0xb1))/0x9)+-parseInt(_0x25b170(0xcc))/0xa;if(_0x21cff4===_0x2474cb)break;else _0xe0dbd0['push'](_0xe0dbd0['shift']());}catch(_0x1bc92e){_0xe0dbd0['push'](_0xe0dbd0['shift']());}}}(_0x38bb,0x8a7e2));import{Plugin as _0x186f64}from'ckeditor5/src/core.js';import{User as _0x56d2b3,TrackChangesService as _0x546bf1}from'@ckeditor/ckeditor-cloud-services-collaboration/src/services.js';import{WebSocketGateway as _0x338054}from'../realtimecollaborativeediting/websocketgateway.js';import{CloudServicesCommentsAdapter as _0xa9411a}from'../realtimecollaborativecomments/cloudservicescommentsadapter.js';import{Users as _0x2a71c5}from'ckeditor5-collaboration/src/collaboration-core.js';class m extends _0x186f64{static [_0x311690(0xae)]=/* #__PURE__ -- @preserve */
24
- ((()=>_0x546bf1)());[_0x311690(0xc0)];[_0x311690(0xaf)];static get[_0x311690(0xbd)](){const _0x5833a6=_0x311690;return[_0xa9411a,_0x5833a6(0xdc),_0x338054];}static get[_0x311690(0xa8)](){const _0x75cb47=_0x311690;return _0x75cb47(0xbe);}static get[_0x311690(0xb2)](){return!0x0;}static get[_0x311690(0xd0)](){return!0x0;}constructor(_0x4ed935){const _0x384831=_0x311690;super(_0x4ed935);const _0x3a9e31=this[_0x384831(0x9f)][_0x384831(0xc6)][_0x384831(0xb6)](_0x384831(0xdd));this[_0x384831(0xc0)]=new Map(),this[_0x384831(0xaf)]=new m[(_0x384831(0xae))](_0x3a9e31);}[_0x311690(0xad)](){const _0x257188=_0x311690,_0x12983a=this[_0x257188(0x9f)][_0x257188(0xa3)][_0x257188(0xb6)](_0x338054),_0x432e66=this[_0x257188(0x9f)][_0x257188(0xa3)][_0x257188(0xb6)](_0x257188(0xdc));return _0x432e66[_0x257188(0xa0)]={'getSuggestion':async _0x50446e=>{const _0x494051=_0x257188;await this[_0x494051(0xcb)]();const _0x5d6279=await this[_0x494051(0xaf)][_0x494051(0xb6)](_0x50446e)[_0x494051(0xb3)](A);return await this[_0x494051(0xa9)]([_0x5d6279]),_0x5d6279;},'addSuggestion':async({id:_0x30ef44,type:_0xda0523,data:_0x354158,originalSuggestionId:_0x3e8d74,attributes:_0x222b42})=>{const _0x16bff2=_0x257188;await this[_0x16bff2(0xcb)]();const _0xccf986={'id':_0x30ef44,'type':_0xda0523,'data':_0x354158,'originalSuggestionId':_0x3e8d74,'attributes':_0x222b42},_0x5d97fe=await this[_0x16bff2(0xaf)][_0x16bff2(0xb7)](_0x30ef44,_0xda0523,_0x354158,_0x3e8d74,_0x222b42)[_0x16bff2(0xb3)](_0x4ff874=>{if(st(_0x4ff874))return new Promise(_0x55008c=>{const _0x3b7d5a=_0xc5c9;this[_0x3b7d5a(0xc0)][_0x3b7d5a(0xce)](_0x30ef44,{'resolve':_0x55008c,'suggestionData':_0xccf986});});throw _0x4ff874;});return this[_0x16bff2(0xc0)][_0x16bff2(0xa2)](_0x30ef44),_0x5d97fe;},'updateSuggestion':async(_0x4189e7,_0x3ed62e)=>{const _0x1de933=_0x257188;if(await this[_0x1de933(0xcb)](),_0x1de933(0xbc)!==_0x3ed62e[_0x1de933(0xb0)])return this[_0x1de933(0xaf)][_0x1de933(0xc3)](_0x4189e7,_0x3ed62e)[_0x1de933(0xb3)](A);}},this[_0x257188(0xc9)](this[_0x257188(0xaf)],_0x257188(0xab),(_0x33e6f9,_0xa7800b)=>{const _0x16ede2=_0x257188;_0x432e66[_0x16ede2(0xd2)](_0xa7800b['id'])&&(_0x432e66[_0x16ede2(0xb9)](_0xa7800b['id'])[_0x16ede2(0xba)]=_0xa7800b[_0x16ede2(0xba)]);}),this[_0x257188(0xaf)][_0x257188(0xca)](_0x12983a[_0x257188(0xaa)])[_0x257188(0xd9)](_0x46dee9=>(_0x12983a[_0x257188(0xd8)](this),this[_0x257188(0xa9)](_0x46dee9)[_0x257188(0xd9)](()=>{const _0x39cce8=_0x257188;for(const _0x299d0c of _0x46dee9){_0x432e66[_0x39cce8(0xd5)](_0x299d0c)[_0x39cce8(0xa4)]=!0x0;}})));}async[_0x311690(0xbb)](){const _0x1131ee=_0x311690,_0x3d73a2=this[_0x1131ee(0x9f)][_0x1131ee(0xa3)][_0x1131ee(0xb6)](_0x1131ee(0xdc)),{connection:_0x5294c8}=this[_0x1131ee(0x9f)][_0x1131ee(0xa3)][_0x1131ee(0xb6)](_0x338054),_0x1baace=await this[_0x1131ee(0xaf)][_0x1131ee(0xca)](_0x5294c8);await this[_0x1131ee(0xa9)](_0x1baace);for(const {suggestionData:_0x1b3d43,resolve:_0xaa104d}of this[_0x1131ee(0xc0)][_0x1131ee(0xcf)]()){let _0x222dcb=_0x1baace[_0x1131ee(0xa1)](_0x482b78=>_0x482b78['id']===_0x1b3d43['id']);_0x222dcb||(_0x222dcb=await this[_0x1131ee(0xaf)][_0x1131ee(0xb7)](_0x1b3d43['id'],_0x1b3d43[_0x1131ee(0xc8)],_0x1b3d43[_0x1131ee(0xc1)],_0x1b3d43[_0x1131ee(0xa6)])),_0xaa104d(_0x222dcb);}for(const _0x4d942c of _0x1baace)_0x3d73a2[_0x1131ee(0xd2)](_0x4d942c['id'])||_0x3d73a2[_0x1131ee(0xd5)](_0x4d942c);}async[_0x311690(0xcb)](){const _0x3b27d9=_0x311690;this[_0x3b27d9(0xaf)][_0x3b27d9(0xd4)]||await new Promise(_0x2d5268=>{const _0x2968b6=_0x3b27d9;this[_0x2968b6(0xc9)](this[_0x2968b6(0xaf)],_0x2968b6(0xb5),_0x38f881=>{const _0xd28a39=_0x2968b6;_0x38f881[_0xd28a39(0xc5)](),_0x2d5268();});});}async[_0x311690(0xa9)](_0x3e0550){const _0x306c6f=_0x311690,_0x1032c3=this[_0x306c6f(0x9f)][_0x306c6f(0xa3)][_0x306c6f(0xb6)](_0x2a71c5),{connection:_0x852848}=this[_0x306c6f(0x9f)][_0x306c6f(0xa3)][_0x306c6f(0xb6)](_0x338054),_0x5e7177=new Set();for(const {authorId:_0x40a2a1}of _0x3e0550)_0x1032c3[_0x306c6f(0xc4)](_0x40a2a1)||_0x5e7177[_0x306c6f(0xb7)](_0x40a2a1);if(0x0===_0x5e7177[_0x306c6f(0xb8)])return;const _0x415461=await _0x56d2b3[_0x306c6f(0xd3)](_0x852848,Array[_0x306c6f(0xa5)](_0x5e7177));for(const _0x1f216e of _0x415461)_0x1032c3[_0x306c6f(0xc4)](_0x1f216e['id'])||_0x1032c3[_0x306c6f(0xc7)](_0x1f216e);}}export{m as CloudServicesTrackChangesAdapter};function A(_0x4ea093){if(st(_0x4ea093))return new Promise(()=>{});throw _0x4ea093;}function _0xc5c9(_0xdb80ae,_0x5cfc06){const _0x38bb5f=_0x38bb();return _0xc5c9=function(_0xc5c9ab,_0x21e169){_0xc5c9ab=_0xc5c9ab-0x9e;let _0x32c319=_0x38bb5f[_0xc5c9ab];return _0x32c319;},_0xc5c9(_0xdb80ae,_0x5cfc06);}function st(_0x28c19d){const _0x4cc190=_0x311690;return _0x28c19d[_0x4cc190(0xd7)][_0x4cc190(0xd6)](_0x4cc190(0xcd))||_0x28c19d[_0x4cc190(0xd7)][_0x4cc190(0xd6)](_0x4cc190(0xdb));}
23
+ const _0x49bb0b=_0xb673;(function(_0x225f9f,_0x88b1da){const _0xc6b6c5=_0xb673,_0x130ee0=_0x225f9f();while(!![]){try{const _0x4dbede=-parseInt(_0xc6b6c5(0x156))/0x1*(parseInt(_0xc6b6c5(0x162))/0x2)+parseInt(_0xc6b6c5(0x151))/0x3+parseInt(_0xc6b6c5(0x160))/0x4*(parseInt(_0xc6b6c5(0x13c))/0x5)+parseInt(_0xc6b6c5(0x152))/0x6+-parseInt(_0xc6b6c5(0x153))/0x7*(parseInt(_0xc6b6c5(0x126))/0x8)+parseInt(_0xc6b6c5(0x147))/0x9*(-parseInt(_0xc6b6c5(0x12d))/0xa)+parseInt(_0xc6b6c5(0x13b))/0xb;if(_0x4dbede===_0x88b1da)break;else _0x130ee0['push'](_0x130ee0['shift']());}catch(_0x3753e3){_0x130ee0['push'](_0x130ee0['shift']());}}}(_0x48f3,0x6d9e2));import{Plugin as _0x139a24}from'ckeditor5/src/core.js';import{User as _0x5160d2,TrackChangesService as _0x3cd4b8}from'@ckeditor/ckeditor-cloud-services-collaboration/src/services.js';function _0x48f3(){const _0x170c22=['message','_saved','state','add','4488QbEgkF','cloud-services-internal-error:\x20Request\x20timeout.','hasSuggestion','values','CloudServicesTrackChangesAdapter','reconnect','adapter','175090oOrKPy','originalSuggestionId','_bufferedRequests','find','open','config','isConnected','connection','attributes','size','off','init','getUser','connected','3858888uooEvZ','15ZztPlT','suggestionUpdated','delete','_fetchMissingUsersForThreads','pluginName','connect','editor','then','cloud-services-internal-error:\x20Not\x20connected.','from','addSuggestionData','225FfGfJQ','isPremiumPlugin','set','catch','TrackChangesEditing','collaboration.channelId','getMany','listenTo','isOfficialPlugin','update','1179651vtBPHJ','3509880DPtbUz','9989Fxfzen','getSuggestion','data','39478hyWaDD','requires','plugins','_waitForServiceReady','_trackChangesService','startsWith','addUser','addToReconnectionStack','TrackChangesService','get','740868WWleQV','type','10uJgumE'];_0x48f3=function(){return _0x170c22;};return _0x48f3();}import{WebSocketGateway as _0x5061b}from'../realtimecollaborativeediting/websocketgateway.js';import{CloudServicesCommentsAdapter as _0x1a59e6}from'../realtimecollaborativecomments/cloudservicescommentsadapter.js';import{Users as _0x1c4e5d}from'ckeditor5-collaboration/src/collaboration-core.js';class m extends _0x139a24{static [_0x49bb0b(0x15e)]=/* #__PURE__ -- @preserve */
24
+ ((()=>_0x3cd4b8)());[_0x49bb0b(0x12f)];[_0x49bb0b(0x15a)];static get[_0x49bb0b(0x157)](){const _0x17d725=_0x49bb0b;return[_0x1a59e6,_0x17d725(0x14b),_0x5061b];}static get[_0x49bb0b(0x140)](){const _0x591a8f=_0x49bb0b;return _0x591a8f(0x12a);}static get[_0x49bb0b(0x14f)](){return!0x0;}static get[_0x49bb0b(0x148)](){return!0x0;}constructor(_0x24da27){const _0x561b90=_0x49bb0b;super(_0x24da27);const _0x185bb4=this[_0x561b90(0x142)][_0x561b90(0x132)][_0x561b90(0x15f)](_0x561b90(0x14c));this[_0x561b90(0x12f)]=new Map(),this[_0x561b90(0x15a)]=new m[(_0x561b90(0x15e))](_0x185bb4);}[_0x49bb0b(0x138)](){const _0x3d0cd0=_0x49bb0b,_0x4e542e=this[_0x3d0cd0(0x142)][_0x3d0cd0(0x158)][_0x3d0cd0(0x15f)](_0x5061b),_0x2f636c=this[_0x3d0cd0(0x142)][_0x3d0cd0(0x158)][_0x3d0cd0(0x15f)](_0x3d0cd0(0x14b));return _0x2f636c[_0x3d0cd0(0x12c)]={'getSuggestion':async _0x1fafdf=>{const _0x13eec3=_0x3d0cd0;await this[_0x13eec3(0x159)]();const _0x150bad=await this[_0x13eec3(0x15a)][_0x13eec3(0x15f)](_0x1fafdf)[_0x13eec3(0x14a)](A);return await this[_0x13eec3(0x13f)]([_0x150bad]),_0x150bad;},'addSuggestion':async({id:_0x27116d,type:_0x54965f,data:_0x3471ff,originalSuggestionId:_0x2a604f,attributes:_0x2da45b})=>{const _0x3afc6d=_0x3d0cd0;await this[_0x3afc6d(0x159)]();const _0x363d93={'id':_0x27116d,'type':_0x54965f,'data':_0x3471ff,'originalSuggestionId':_0x2a604f,'attributes':_0x2da45b},_0x580c43=await this[_0x3afc6d(0x15a)][_0x3afc6d(0x125)](_0x27116d,_0x54965f,_0x3471ff,_0x2a604f,_0x2da45b)[_0x3afc6d(0x14a)](_0x45ac82=>{if(M(_0x45ac82))return new Promise(_0x1b5e13=>{const _0x3d1694=_0xb673;this[_0x3d1694(0x12f)][_0x3d1694(0x149)](_0x27116d,{'resolve':_0x1b5e13,'suggestionData':_0x363d93});});throw _0x45ac82;});return this[_0x3afc6d(0x12f)][_0x3afc6d(0x13e)](_0x27116d),_0x580c43;},'updateSuggestion':async(_0x53efcc,_0x417f49)=>{const _0x1c7b27=_0x3d0cd0;if(await this[_0x1c7b27(0x159)](),_0x1c7b27(0x131)!==_0x417f49[_0x1c7b27(0x124)])return this[_0x1c7b27(0x15a)][_0x1c7b27(0x150)](_0x53efcc,_0x417f49)[_0x1c7b27(0x14a)](A);}},this[_0x3d0cd0(0x14e)](this[_0x3d0cd0(0x15a)],_0x3d0cd0(0x13d),(_0xde1373,_0x1b18f9)=>{const _0x5a777c=_0x3d0cd0;_0x2f636c[_0x5a777c(0x128)](_0x1b18f9['id'])&&(_0x2f636c[_0x5a777c(0x154)](_0x1b18f9['id'])[_0x5a777c(0x135)]=_0x1b18f9[_0x5a777c(0x135)]);}),this[_0x3d0cd0(0x15a)][_0x3d0cd0(0x141)](_0x4e542e[_0x3d0cd0(0x134)])[_0x3d0cd0(0x143)](_0x2d9a31=>(_0x4e542e[_0x3d0cd0(0x15d)](this),this[_0x3d0cd0(0x13f)](_0x2d9a31)[_0x3d0cd0(0x143)](()=>{const _0x5e817a=_0x3d0cd0;for(const _0x5e207d of _0x2d9a31){_0x2f636c[_0x5e817a(0x146)](_0x5e207d)[_0x5e817a(0x123)]=!0x0;}})));}async[_0x49bb0b(0x12b)](){const _0x654392=_0x49bb0b,_0x2fe284=this[_0x654392(0x142)][_0x654392(0x158)][_0x654392(0x15f)](_0x654392(0x14b)),{connection:_0x460fb4}=this[_0x654392(0x142)][_0x654392(0x158)][_0x654392(0x15f)](_0x5061b),_0x4c5e6a=await this[_0x654392(0x15a)][_0x654392(0x141)](_0x460fb4);await this[_0x654392(0x13f)](_0x4c5e6a);for(const {suggestionData:_0x5ace07,resolve:_0x48bf48}of this[_0x654392(0x12f)][_0x654392(0x129)]()){let _0x1d5887=_0x4c5e6a[_0x654392(0x130)](_0x343ed4=>_0x343ed4['id']===_0x5ace07['id']);_0x1d5887||(_0x1d5887=await this[_0x654392(0x15a)][_0x654392(0x125)](_0x5ace07['id'],_0x5ace07[_0x654392(0x161)],_0x5ace07[_0x654392(0x155)],_0x5ace07[_0x654392(0x12e)])),_0x48bf48(_0x1d5887);}for(const _0x5248ac of _0x4c5e6a)_0x2fe284[_0x654392(0x128)](_0x5248ac['id'])||_0x2fe284[_0x654392(0x146)](_0x5248ac);}async[_0x49bb0b(0x159)](){const _0x55c711=_0x49bb0b;this[_0x55c711(0x15a)][_0x55c711(0x133)]||await new Promise(_0x227e68=>{const _0x32f014=_0x55c711;this[_0x32f014(0x14e)](this[_0x32f014(0x15a)],_0x32f014(0x13a),_0x138d04=>{const _0x16fda4=_0x32f014;_0x138d04[_0x16fda4(0x137)](),_0x227e68();});});}async[_0x49bb0b(0x13f)](_0x420a91){const _0x5c1395=_0x49bb0b,_0x1eb18c=this[_0x5c1395(0x142)][_0x5c1395(0x158)][_0x5c1395(0x15f)](_0x1c4e5d),{connection:_0x43bd88}=this[_0x5c1395(0x142)][_0x5c1395(0x158)][_0x5c1395(0x15f)](_0x5061b),_0x14d870=new Set();for(const {authorId:_0x3da091}of _0x420a91)_0x1eb18c[_0x5c1395(0x139)](_0x3da091)||_0x14d870[_0x5c1395(0x125)](_0x3da091);if(0x0===_0x14d870[_0x5c1395(0x136)])return;const _0xdbe59e=await _0x5160d2[_0x5c1395(0x14d)](_0x43bd88,Array[_0x5c1395(0x145)](_0x14d870));for(const _0x1b61f0 of _0xdbe59e)_0x1eb18c[_0x5c1395(0x139)](_0x1b61f0['id'])||_0x1eb18c[_0x5c1395(0x15c)](_0x1b61f0);}}function _0xb673(_0x125839,_0xb2ed92){const _0x48f3ea=_0x48f3();return _0xb673=function(_0xb67385,_0x52e1e6){_0xb67385=_0xb67385-0x123;let _0x39031a=_0x48f3ea[_0xb67385];return _0x39031a;},_0xb673(_0x125839,_0xb2ed92);}export{m as CloudServicesTrackChangesAdapter};function A(_0x2e5ac1){if(M(_0x2e5ac1))return new Promise(()=>{});throw _0x2e5ac1;}function M(_0x5cdec0){const _0x5ca0e8=_0x49bb0b;return _0x5cdec0[_0x5ca0e8(0x163)][_0x5ca0e8(0x15b)](_0x5ca0e8(0x144))||_0x5cdec0[_0x5ca0e8(0x163)][_0x5ca0e8(0x15b)](_0x5ca0e8(0x127));}