@ckeditor/ckeditor5-real-time-collaboration 47.1.0-alpha.0 → 47.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,5 +20,5 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x52af63=_0x3b81;(function(_0x1557ca,_0x4b6c45){const _0x56a754=_0x3b81,_0xcd440d=_0x1557ca();while(!![]){try{const _0x5147a9=-parseInt(_0x56a754(0xb4))/0x1+-parseInt(_0x56a754(0x9a))/0x2+parseInt(_0x56a754(0xb7))/0x3+parseInt(_0x56a754(0x92))/0x4*(parseInt(_0x56a754(0x93))/0x5)+-parseInt(_0x56a754(0xa9))/0x6+-parseInt(_0x56a754(0xa8))/0x7+parseInt(_0x56a754(0xa7))/0x8;if(_0x5147a9===_0x4b6c45)break;else _0xcd440d['push'](_0xcd440d['shift']());}catch(_0x31ae55){_0xcd440d['push'](_0xcd440d['shift']());}}}(_0x37b0,0x1be8d));import{Plugin as _0x1496cb}from'ckeditor5/src/core.js';import{User as _0x844ee1,TrackChangesService as _0x2a707a}from'@ckeditor/ckeditor-cloud-services-collaboration/src/services.js';function _0x3b81(_0x504358,_0x161c79){const _0x37b002=_0x37b0();return _0x3b81=function(_0x3b810f,_0x168a93){_0x3b810f=_0x3b810f-0x84;let _0x5bb339=_0x37b002[_0x3b810f];return _0x5bb339;},_0x3b81(_0x504358,_0x161c79);}import{WebSocketGateway as _0x42806e}from'../realtimecollaborativeediting/websocketgateway.js';import{CloudServicesCommentsAdapter as _0xd06315}from'../realtimecollaborativecomments/cloudservicescommentsadapter.js';import{Users as _0x1364f9}from'ckeditor5-collaboration/src/collaboration-core.js';function _0x37b0(){const _0x7da306=['then','adapter','isConnected','692JWivxE','2505nUrJPl','isPremiumPlugin','message','editor','catch','getMany','originalSuggestionId','135282lNQhNg','add','get','size','TrackChangesEditing','init','type','set','plugins','addUser','connected','update','values','2828640NBYVBU','1428350RDAPjI','844698EJpCrn','find','_bufferedRequests','reconnect','open','cloud-services-internal-error:\x20Not\x20connected.','data','hasSuggestion','config','connection','connect','105610hZDkXF','_trackChangesService','pluginName','576444pMkwET','attributes','from','CloudServicesTrackChangesAdapter','_saved','TrackChangesService','addSuggestionData','addToReconnectionStack','_waitForServiceReady','collaboration.channelId','_fetchMissingUsersForThreads','off','delete','startsWith','state','requires','isOfficialPlugin','listenTo','getSuggestion','getUser','suggestionUpdated','cloud-services-internal-error:\x20Request\x20timeout.'];_0x37b0=function(){return _0x7da306;};return _0x37b0();}export class CloudServicesTrackChangesAdapter extends _0x1496cb{static [_0x52af63(0xbc)]=/* #__PURE__ -- @preserve */
24
- ((()=>_0x2a707a)());[_0x52af63(0xab)];[_0x52af63(0xb5)];static get[_0x52af63(0x88)](){const _0x365c7a=_0x52af63;return[_0xd06315,_0x365c7a(0x9e),_0x42806e];}static get[_0x52af63(0xb6)](){const _0x2ee9cc=_0x52af63;return _0x2ee9cc(0xba);}static get[_0x52af63(0x89)](){return!0x0;}static get[_0x52af63(0x94)](){return!0x0;}constructor(_0x44a048){const _0x575ba7=_0x52af63;super(_0x44a048);const _0x5a4cbd=this[_0x575ba7(0x96)][_0x575ba7(0xb1)][_0x575ba7(0x9c)](_0x575ba7(0xc0));this[_0x575ba7(0xab)]=new Map(),this[_0x575ba7(0xb5)]=new CloudServicesTrackChangesAdapter[(_0x575ba7(0xbc))](_0x5a4cbd);}[_0x52af63(0x9f)](){const _0x3606db=_0x52af63,_0x57d1fe=this[_0x3606db(0x96)][_0x3606db(0xa2)][_0x3606db(0x9c)](_0x42806e),_0x50e124=this[_0x3606db(0x96)][_0x3606db(0xa2)][_0x3606db(0x9c)](_0x3606db(0x9e));return _0x50e124[_0x3606db(0x90)]={'getSuggestion':async _0x2afcd6=>{const _0x347cb1=_0x3606db;await this[_0x347cb1(0xbf)]();const _0x514e8f=await this[_0x347cb1(0xb5)][_0x347cb1(0x9c)](_0x2afcd6)[_0x347cb1(0x97)](A);return await this[_0x347cb1(0xc1)]([_0x514e8f]),_0x514e8f;},'addSuggestion':async({id:_0x56711b,type:_0x4db532,data:_0x1338ac,originalSuggestionId:_0x2bd1f9,attributes:_0xcac517})=>{const _0x1a89fb=_0x3606db;await this[_0x1a89fb(0xbf)]();const _0x5e4719={'id':_0x56711b,'type':_0x4db532,'data':_0x1338ac,'originalSuggestionId':_0x2bd1f9,'attributes':_0xcac517},_0x17cc58=await this[_0x1a89fb(0xb5)][_0x1a89fb(0x9b)](_0x56711b,_0x4db532,_0x1338ac,_0x2bd1f9,_0xcac517)[_0x1a89fb(0x97)](_0x48d243=>{if(b(_0x48d243))return new Promise(_0x3c4542=>{const _0x31fe0b=_0x3b81;this[_0x31fe0b(0xab)][_0x31fe0b(0xa1)](_0x56711b,{'resolve':_0x3c4542,'suggestionData':_0x5e4719});});throw _0x48d243;});return this[_0x1a89fb(0xab)][_0x1a89fb(0x85)](_0x56711b),_0x17cc58;},'updateSuggestion':async(_0x3cf6f4,_0x5b7e73)=>{const _0x402453=_0x3606db;if(await this[_0x402453(0xbf)](),_0x402453(0xad)!==_0x5b7e73[_0x402453(0x87)])return this[_0x402453(0xb5)][_0x402453(0xa5)](_0x3cf6f4,_0x5b7e73)[_0x402453(0x97)](A);}},this[_0x3606db(0x8a)](this[_0x3606db(0xb5)],_0x3606db(0x8d),(_0xc255bb,_0x56dfe3)=>{const _0x51ba3a=_0x3606db;_0x50e124[_0x51ba3a(0xb0)](_0x56dfe3['id'])&&(_0x50e124[_0x51ba3a(0x8b)](_0x56dfe3['id'])[_0x51ba3a(0xb8)]=_0x56dfe3[_0x51ba3a(0xb8)]);}),this[_0x3606db(0xb5)][_0x3606db(0xb3)](_0x57d1fe[_0x3606db(0xb2)])[_0x3606db(0x8f)](_0x30100b=>(_0x57d1fe[_0x3606db(0xbe)](this),this[_0x3606db(0xc1)](_0x30100b)[_0x3606db(0x8f)](()=>{const _0x2c4808=_0x3606db;for(const _0x55a7a2 of _0x30100b){_0x50e124[_0x2c4808(0xbd)](_0x55a7a2)[_0x2c4808(0xbb)]=!0x0;}})));}async[_0x52af63(0xac)](){const _0x403d51=_0x52af63,_0x426040=this[_0x403d51(0x96)][_0x403d51(0xa2)][_0x403d51(0x9c)](_0x403d51(0x9e)),{connection:_0x207cee}=this[_0x403d51(0x96)][_0x403d51(0xa2)][_0x403d51(0x9c)](_0x42806e),_0x521d02=await this[_0x403d51(0xb5)][_0x403d51(0xb3)](_0x207cee);await this[_0x403d51(0xc1)](_0x521d02);for(const {suggestionData:_0x28f103,resolve:_0x22520a}of this[_0x403d51(0xab)][_0x403d51(0xa6)]()){let _0x41d423=_0x521d02[_0x403d51(0xaa)](_0x434a80=>_0x434a80['id']===_0x28f103['id']);_0x41d423||(_0x41d423=await this[_0x403d51(0xb5)][_0x403d51(0x9b)](_0x28f103['id'],_0x28f103[_0x403d51(0xa0)],_0x28f103[_0x403d51(0xaf)],_0x28f103[_0x403d51(0x99)])),_0x22520a(_0x41d423);}for(const _0x2b4038 of _0x521d02)_0x426040[_0x403d51(0xb0)](_0x2b4038['id'])||_0x426040[_0x403d51(0xbd)](_0x2b4038);}async[_0x52af63(0xbf)](){const _0x3d75fe=_0x52af63;this[_0x3d75fe(0xb5)][_0x3d75fe(0x91)]||await new Promise(_0x41395e=>{const _0x272aa4=_0x3d75fe;this[_0x272aa4(0x8a)](this[_0x272aa4(0xb5)],_0x272aa4(0xa4),_0xd10d30=>{const _0x5222f5=_0x272aa4;_0xd10d30[_0x5222f5(0x84)](),_0x41395e();});});}async[_0x52af63(0xc1)](_0x530c11){const _0x42b607=_0x52af63,_0x112014=this[_0x42b607(0x96)][_0x42b607(0xa2)][_0x42b607(0x9c)](_0x1364f9),{connection:_0x47b06c}=this[_0x42b607(0x96)][_0x42b607(0xa2)][_0x42b607(0x9c)](_0x42806e),_0x614aa0=new Set();for(const {authorId:_0x4d8d49}of _0x530c11)_0x112014[_0x42b607(0x8c)](_0x4d8d49)||_0x614aa0[_0x42b607(0x9b)](_0x4d8d49);if(0x0===_0x614aa0[_0x42b607(0x9d)])return;const _0x336aa1=await _0x844ee1[_0x42b607(0x98)](_0x47b06c,Array[_0x42b607(0xb9)](_0x614aa0));for(const _0xc7c6d5 of _0x336aa1)_0x112014[_0x42b607(0x8c)](_0xc7c6d5['id'])||_0x112014[_0x42b607(0xa3)](_0xc7c6d5);}}function A(_0x5e3161){if(b(_0x5e3161))return new Promise(()=>{});throw _0x5e3161;}function b(_0x4288eb){const _0x1b0ce1=_0x52af63;return _0x4288eb[_0x1b0ce1(0x95)][_0x1b0ce1(0x86)](_0x1b0ce1(0xae))||_0x4288eb[_0x1b0ce1(0x95)][_0x1b0ce1(0x86)](_0x1b0ce1(0x8e));}
23
+ const _0x4b2352=_0x5617;(function(_0x330b29,_0x26d8e3){const _0x360c95=_0x5617,_0x11c1d8=_0x330b29();while(!![]){try{const _0x59a7f3=-parseInt(_0x360c95(0x173))/0x1+-parseInt(_0x360c95(0x1aa))/0x2+-parseInt(_0x360c95(0x17d))/0x3+parseInt(_0x360c95(0x19b))/0x4+-parseInt(_0x360c95(0x18b))/0x5*(-parseInt(_0x360c95(0x172))/0x6)+parseInt(_0x360c95(0x1a2))/0x7+parseInt(_0x360c95(0x198))/0x8;if(_0x59a7f3===_0x26d8e3)break;else _0x11c1d8['push'](_0x11c1d8['shift']());}catch(_0x461d2f){_0x11c1d8['push'](_0x11c1d8['shift']());}}}(_0x1498,0xac51f));import{Plugin as _0x2137e0}from'ckeditor5/src/core.js';function _0x5617(_0x3002c7,_0x14532f){const _0x1498f9=_0x1498();return _0x5617=function(_0x5617eb,_0x364e41){_0x5617eb=_0x5617eb-0x16f;let _0x2fa5af=_0x1498f9[_0x5617eb];return _0x2fa5af;},_0x5617(_0x3002c7,_0x14532f);}import{User as _0x5b6fe9,TrackChangesService as _0x4f0465}from'@ckeditor/ckeditor-cloud-services-collaboration/src/services.js';import{WebSocketGateway as _0x1497ba}from'../realtimecollaborativeediting/websocketgateway.js';import{CloudServicesCommentsAdapter as _0x2e8c96}from'../realtimecollaborativecomments/cloudservicescommentsadapter.js';import{Users as _0x5eb681}from'ckeditor5-collaboration/src/collaboration-core.js';export class CloudServicesTrackChangesAdapter extends _0x2137e0{static [_0x4b2352(0x1a6)]=/* #__PURE__ -- @preserve */
24
+ ((()=>_0x4f0465)());[_0x4b2352(0x180)];[_0x4b2352(0x193)];static get[_0x4b2352(0x17b)](){const _0x189aee=_0x4b2352;return[_0x2e8c96,_0x189aee(0x18d),_0x1497ba];}static get[_0x4b2352(0x189)](){const _0xeb764d=_0x4b2352;return _0xeb764d(0x174);}static get[_0x4b2352(0x18f)](){return!0x0;}static get[_0x4b2352(0x177)](){return!0x0;}constructor(_0x5bacf1){const _0x179fe1=_0x4b2352;super(_0x5bacf1);const _0x3f0f63=this[_0x179fe1(0x178)][_0x179fe1(0x184)][_0x179fe1(0x1a7)](_0x179fe1(0x1a5));this[_0x179fe1(0x180)]=new Map(),this[_0x179fe1(0x193)]=new CloudServicesTrackChangesAdapter[(_0x179fe1(0x1a6))](_0x3f0f63);}[_0x4b2352(0x183)](){const _0x17ff24=_0x4b2352,_0x1f49b9=this[_0x17ff24(0x178)][_0x17ff24(0x194)][_0x17ff24(0x1a7)](_0x1497ba),_0x208418=this[_0x17ff24(0x178)][_0x17ff24(0x194)][_0x17ff24(0x1a7)](_0x17ff24(0x18d));return _0x208418[_0x17ff24(0x17a)]={'getSuggestion':async _0x22ccff=>{const _0x293311=_0x17ff24;await this[_0x293311(0x1a3)]();const _0x28177d=await this[_0x293311(0x193)][_0x293311(0x1a7)](_0x22ccff)[_0x293311(0x185)](A);return await this[_0x293311(0x1a9)]([_0x28177d]),_0x28177d;},'addSuggestion':async({id:_0x204d1a,type:_0x2315d0,data:_0x1ac401,originalSuggestionId:_0x3ce9e4,attributes:_0x282b82})=>{const _0x3be4f5=_0x17ff24;await this[_0x3be4f5(0x1a3)]();const _0x521761={'id':_0x204d1a,'type':_0x2315d0,'data':_0x1ac401,'originalSuggestionId':_0x3ce9e4,'attributes':_0x282b82},_0x1786f2=await this[_0x3be4f5(0x193)][_0x3be4f5(0x170)](_0x204d1a,_0x2315d0,_0x1ac401,_0x3ce9e4,_0x282b82)[_0x3be4f5(0x185)](_0xf3b5a8=>{if(J(_0xf3b5a8))return new Promise(_0x242ecc=>{const _0x97d1f0=_0x5617;this[_0x97d1f0(0x180)][_0x97d1f0(0x176)](_0x204d1a,{'resolve':_0x242ecc,'suggestionData':_0x521761});});throw _0xf3b5a8;});return this[_0x3be4f5(0x180)][_0x3be4f5(0x18c)](_0x204d1a),_0x1786f2;},'updateSuggestion':async(_0x2df471,_0x22c8f8)=>{const _0x529af1=_0x17ff24;if(await this[_0x529af1(0x1a3)](),_0x529af1(0x18a)!==_0x22c8f8[_0x529af1(0x19f)])return this[_0x529af1(0x193)][_0x529af1(0x195)](_0x2df471,_0x22c8f8)[_0x529af1(0x185)](A);}},this[_0x17ff24(0x179)](this[_0x17ff24(0x193)],_0x17ff24(0x1a4),(_0x1bc1b0,_0x840bbe)=>{const _0x4596ec=_0x17ff24;_0x208418[_0x4596ec(0x182)](_0x840bbe['id'])&&(_0x208418[_0x4596ec(0x19e)](_0x840bbe['id'])[_0x4596ec(0x18e)]=_0x840bbe[_0x4596ec(0x18e)]);}),this[_0x17ff24(0x193)][_0x17ff24(0x1ab)](_0x1f49b9[_0x17ff24(0x1ac)])[_0x17ff24(0x190)](_0x56684e=>(_0x1f49b9[_0x17ff24(0x191)](this),this[_0x17ff24(0x1a9)](_0x56684e)[_0x17ff24(0x190)](()=>{const _0x30df0c=_0x17ff24;for(const _0x1ee2e6 of _0x56684e){_0x208418[_0x30df0c(0x19c)](_0x1ee2e6)[_0x30df0c(0x19d)]=!0x0;}})));}async[_0x4b2352(0x196)](){const _0x232bef=_0x4b2352,_0x92f426=this[_0x232bef(0x178)][_0x232bef(0x194)][_0x232bef(0x1a7)](_0x232bef(0x18d)),{connection:_0xe30ba2}=this[_0x232bef(0x178)][_0x232bef(0x194)][_0x232bef(0x1a7)](_0x1497ba),_0x4e9fa8=await this[_0x232bef(0x193)][_0x232bef(0x1ab)](_0xe30ba2);await this[_0x232bef(0x1a9)](_0x4e9fa8);for(const {suggestionData:_0x21b8b6,resolve:_0x25da04}of this[_0x232bef(0x180)][_0x232bef(0x16f)]()){let _0xde841a=_0x4e9fa8[_0x232bef(0x192)](_0x33f159=>_0x33f159['id']===_0x21b8b6['id']);_0xde841a||(_0xde841a=await this[_0x232bef(0x193)][_0x232bef(0x170)](_0x21b8b6['id'],_0x21b8b6[_0x232bef(0x197)],_0x21b8b6[_0x232bef(0x175)],_0x21b8b6[_0x232bef(0x186)])),_0x25da04(_0xde841a);}for(const _0x3e1123 of _0x4e9fa8)_0x92f426[_0x232bef(0x182)](_0x3e1123['id'])||_0x92f426[_0x232bef(0x19c)](_0x3e1123);}async[_0x4b2352(0x1a3)](){const _0x56db2c=_0x4b2352;this[_0x56db2c(0x193)][_0x56db2c(0x187)]||await new Promise(_0x2caf23=>{const _0x1ca361=_0x56db2c;this[_0x1ca361(0x179)](this[_0x1ca361(0x193)],_0x1ca361(0x199),_0x2c5cf5=>{const _0x2374d9=_0x1ca361;_0x2c5cf5[_0x2374d9(0x188)](),_0x2caf23();});});}async[_0x4b2352(0x1a9)](_0x395406){const _0x37d485=_0x4b2352,_0x36fd25=this[_0x37d485(0x178)][_0x37d485(0x194)][_0x37d485(0x1a7)](_0x5eb681),{connection:_0x403bc2}=this[_0x37d485(0x178)][_0x37d485(0x194)][_0x37d485(0x1a7)](_0x1497ba),_0x31da3e=new Set();for(const {authorId:_0x5a1f1f}of _0x395406)_0x36fd25[_0x37d485(0x17e)](_0x5a1f1f)||_0x31da3e[_0x37d485(0x170)](_0x5a1f1f);if(0x0===_0x31da3e[_0x37d485(0x1a8)])return;const _0x4872e3=await _0x5b6fe9[_0x37d485(0x19a)](_0x403bc2,Array[_0x37d485(0x17c)](_0x31da3e));for(const _0x2a0147 of _0x4872e3)_0x36fd25[_0x37d485(0x17e)](_0x2a0147['id'])||_0x36fd25[_0x37d485(0x171)](_0x2a0147);}}function _0x1498(){const _0x10b033=['then','addToReconnectionStack','find','_trackChangesService','plugins','update','reconnect','type','8138832jwJlWG','connected','getMany','2003036DELAMB','addSuggestionData','_saved','getSuggestion','state','message','cloud-services-internal-error:\x20Not\x20connected.','9602887PpuDtl','_waitForServiceReady','suggestionUpdated','collaboration.channelId','TrackChangesService','get','size','_fetchMissingUsersForThreads','84754ZTPryE','connect','connection','values','add','addUser','3198fHPMMm','1178415BJAeVy','CloudServicesTrackChangesAdapter','data','set','isPremiumPlugin','editor','listenTo','adapter','requires','from','3427281iHfbFh','getUser','cloud-services-internal-error:\x20Request\x20timeout.','_bufferedRequests','startsWith','hasSuggestion','init','config','catch','originalSuggestionId','isConnected','off','pluginName','open','1680UAAGUl','delete','TrackChangesEditing','attributes','isOfficialPlugin'];_0x1498=function(){return _0x10b033;};return _0x1498();}function A(_0x1dd968){if(J(_0x1dd968))return new Promise(()=>{});throw _0x1dd968;}function J(_0x2c809c){const _0x2546c4=_0x4b2352;return _0x2c809c[_0x2546c4(0x1a0)][_0x2546c4(0x181)](_0x2546c4(0x1a1))||_0x2c809c[_0x2546c4(0x1a0)][_0x2546c4(0x181)](_0x2546c4(0x17f));}