@ckeditor/ckeditor5-real-time-collaboration 43.1.0-alpha.3 → 43.1.0-alpha.5

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 _0x5873ec=_0x54fc;(function(_0x4b4c7a,_0x1a2472){const _0x22fca8=_0x54fc,_0x56d0f2=_0x4b4c7a();while(!![]){try{const _0x2ac0fe=parseInt(_0x22fca8(0x13e))/0x1*(parseInt(_0x22fca8(0x152))/0x2)+parseInt(_0x22fca8(0x123))/0x3+parseInt(_0x22fca8(0x154))/0x4+-parseInt(_0x22fca8(0x139))/0x5+parseInt(_0x22fca8(0x143))/0x6*(-parseInt(_0x22fca8(0x129))/0x7)+parseInt(_0x22fca8(0x158))/0x8*(-parseInt(_0x22fca8(0x146))/0x9)+parseInt(_0x22fca8(0x126))/0xa;if(_0x2ac0fe===_0x1a2472)break;else _0x56d0f2['push'](_0x56d0f2['shift']());}catch(_0x3f23e1){_0x56d0f2['push'](_0x56d0f2['shift']());}}}(_0x21ae,0xd2f80));import{Plugin as _0x28cf6f}from'ckeditor5/src/core.js';function _0x21ae(){const _0x10e53c=['requires','delete','_trackChangesService','reconnect','set','update','find','editor','state','type','TrackChangesService','getUser','adapter','connection','values','2509200iPzbbh','config','plugins','originalSuggestionId','off','1lnTGLD','size','suggestionUpdated','connected','_waitForServiceReady','421608WMSWXs','hasSuggestion','TrackChangesEditing','18YwFRZh','collaboration.channelId','cloud-services-internal-error:\x20Request\x20timeout.','from','add','_bufferedRequests','_fetchMissingUsersForThreads','catch','open','get','addSuggestionData','addUser','1356266fIcHyQ','getMany','4624984TSuDUX','then','getSuggestion','startsWith','4644152jVEnNw','listenTo','attributes','connect','init','data','isConnected','713532oBwGWJ','cloud-services-internal-error:\x20Not\x20connected.','_saved','9466590VtZzKP','addToReconnectionStack','message','49YYjEhV'];_0x21ae=function(){return _0x10e53c;};return _0x21ae();}import{User as _0x22de0f,TrackChangesService as _0x10e3ba}from'@ckeditor/ckeditor-cloud-services-collaboration/src/services.js';import _0x5d8be4 from'../realtimecollaborativeediting/websocketgateway.js';import _0x2b7a88 from'../realtimecollaborativecomments/cloudservicescommentsadapter.js';function _0x54fc(_0x1a06c7,_0x5cb940){const _0x21ae9b=_0x21ae();return _0x54fc=function(_0x54fcc4,_0x3e41ee){_0x54fcc4=_0x54fcc4-0x121;let _0x458ade=_0x21ae9b[_0x54fcc4];return _0x458ade;},_0x54fc(_0x1a06c7,_0x5cb940);}import{Users as _0x3ea41c}from'ckeditor5-collaboration/src/collaboration-core.js';class g extends _0x28cf6f{static get[_0x5873ec(0x12a)](){const _0x4c5dea=_0x5873ec;return[_0x2b7a88,_0x4c5dea(0x145),_0x5d8be4];}constructor(_0x22017c){const _0x52b663=_0x5873ec;super(_0x22017c);const _0x23e580=this[_0x52b663(0x131)][_0x52b663(0x13a)][_0x52b663(0x14f)](_0x52b663(0x147));this[_0x52b663(0x14b)]=new Map(),this[_0x52b663(0x12c)]=new g[(_0x52b663(0x134))](_0x23e580);}[_0x5873ec(0x15c)](){const _0x482ffe=_0x5873ec,_0x2b18f3=this[_0x482ffe(0x131)][_0x482ffe(0x13b)][_0x482ffe(0x14f)](_0x5d8be4),_0x2257fb=this[_0x482ffe(0x131)][_0x482ffe(0x13b)][_0x482ffe(0x14f)](_0x482ffe(0x145));return _0x2257fb[_0x482ffe(0x136)]={'getSuggestion':async _0x46b825=>{const _0x5dbb1b=_0x482ffe;await this[_0x5dbb1b(0x142)]();const _0x450730=await this[_0x5dbb1b(0x12c)][_0x5dbb1b(0x14f)](_0x46b825)[_0x5dbb1b(0x14d)](R);return await this[_0x5dbb1b(0x14c)]([_0x450730]),_0x450730;},'addSuggestion':async({id:_0x2ee923,type:_0x39f738,data:_0x3a46f1,originalSuggestionId:_0x228fc4,attributes:_0x3ffebe})=>{const _0x5aedb7=_0x482ffe;await this[_0x5aedb7(0x142)]();const _0x5e011d={'id':_0x2ee923,'type':_0x39f738,'data':_0x3a46f1,'originalSuggestionId':_0x228fc4,'attributes':_0x3ffebe},_0x58bbe2=await this[_0x5aedb7(0x12c)][_0x5aedb7(0x14a)](_0x2ee923,_0x39f738,_0x3a46f1,_0x228fc4,_0x3ffebe)[_0x5aedb7(0x14d)](_0x2c4cb7=>{if(st(_0x2c4cb7))return new Promise(_0x46f8eb=>{const _0x59aee4=_0x54fc;this[_0x59aee4(0x14b)][_0x59aee4(0x12e)](_0x2ee923,{'resolve':_0x46f8eb,'suggestionData':_0x5e011d});});throw _0x2c4cb7;});return this[_0x5aedb7(0x14b)][_0x5aedb7(0x12b)](_0x2ee923),_0x58bbe2;},'updateSuggestion':async(_0x45b918,_0x5bf9a1)=>{const _0x2f93b8=_0x482ffe;if(await this[_0x2f93b8(0x142)](),_0x2f93b8(0x14e)!==_0x5bf9a1[_0x2f93b8(0x132)])return this[_0x2f93b8(0x12c)][_0x2f93b8(0x12f)](_0x45b918,_0x5bf9a1)[_0x2f93b8(0x14d)](R);}},this[_0x482ffe(0x159)](this[_0x482ffe(0x12c)],_0x482ffe(0x140),(_0x23d3c5,_0x2f3a85)=>{const _0xbb1676=_0x482ffe;_0x2257fb[_0xbb1676(0x144)](_0x2f3a85['id'])&&(_0x2257fb[_0xbb1676(0x156)](_0x2f3a85['id'])[_0xbb1676(0x15a)]=_0x2f3a85[_0xbb1676(0x15a)]);}),this[_0x482ffe(0x12c)][_0x482ffe(0x15b)](_0x2b18f3[_0x482ffe(0x137)])[_0x482ffe(0x155)](_0x1b355b=>(_0x2b18f3[_0x482ffe(0x127)](this),this[_0x482ffe(0x14c)](_0x1b355b)[_0x482ffe(0x155)](()=>{const _0x22068a=_0x482ffe;for(const _0x480119 of _0x1b355b){_0x2257fb[_0x22068a(0x150)](_0x480119)[_0x22068a(0x125)]=!0x0;}})));}async[_0x5873ec(0x12d)](){const _0x215d5a=_0x5873ec,_0x3597b1=this[_0x215d5a(0x131)][_0x215d5a(0x13b)][_0x215d5a(0x14f)](_0x215d5a(0x145)),{connection:_0x21992b}=this[_0x215d5a(0x131)][_0x215d5a(0x13b)][_0x215d5a(0x14f)](_0x5d8be4),_0x40e414=await this[_0x215d5a(0x12c)][_0x215d5a(0x15b)](_0x21992b);await this[_0x215d5a(0x14c)](_0x40e414);for(const {suggestionData:_0x511d5e,resolve:_0x11841e}of this[_0x215d5a(0x14b)][_0x215d5a(0x138)]()){let _0x51561a=_0x40e414[_0x215d5a(0x130)](_0x2d00b2=>_0x2d00b2['id']===_0x511d5e['id']);_0x51561a||(_0x51561a=await this[_0x215d5a(0x12c)][_0x215d5a(0x14a)](_0x511d5e['id'],_0x511d5e[_0x215d5a(0x133)],_0x511d5e[_0x215d5a(0x121)],_0x511d5e[_0x215d5a(0x13c)])),_0x11841e(_0x51561a);}for(const _0x43c2a1 of _0x40e414)_0x3597b1[_0x215d5a(0x144)](_0x43c2a1['id'])||_0x3597b1[_0x215d5a(0x150)](_0x43c2a1);}async[_0x5873ec(0x142)](){const _0x39ccfc=_0x5873ec;this[_0x39ccfc(0x12c)][_0x39ccfc(0x122)]||await new Promise(_0x51d07d=>{const _0xd7383d=_0x39ccfc;this[_0xd7383d(0x159)](this[_0xd7383d(0x12c)],_0xd7383d(0x141),_0x105b5c=>{const _0x200ecf=_0xd7383d;_0x105b5c[_0x200ecf(0x13d)](),_0x51d07d();});});}async[_0x5873ec(0x14c)](_0x67206b){const _0x3e2aed=_0x5873ec,_0x5ef1fd=this[_0x3e2aed(0x131)][_0x3e2aed(0x13b)][_0x3e2aed(0x14f)](_0x3ea41c),{connection:_0xb049cf}=this[_0x3e2aed(0x131)][_0x3e2aed(0x13b)][_0x3e2aed(0x14f)](_0x5d8be4),_0x1512b4=new Set();for(const {authorId:_0x365993}of _0x67206b)_0x5ef1fd[_0x3e2aed(0x135)](_0x365993)||_0x1512b4[_0x3e2aed(0x14a)](_0x365993);if(0x0===_0x1512b4[_0x3e2aed(0x13f)])return;const _0x4a1c96=await _0x22de0f[_0x3e2aed(0x153)](_0xb049cf,Array[_0x3e2aed(0x149)](_0x1512b4));for(const _0x1670cb of _0x4a1c96)_0x5ef1fd[_0x3e2aed(0x135)](_0x1670cb['id'])||_0x5ef1fd[_0x3e2aed(0x151)](_0x1670cb);}}g[_0x5873ec(0x134)]=_0x10e3ba;export default g;function R(_0x3564e4){if(st(_0x3564e4))return new Promise(()=>{});throw _0x3564e4;}function st(_0x1c9a8c){const _0x317637=_0x5873ec;return _0x1c9a8c[_0x317637(0x128)][_0x317637(0x157)](_0x317637(0x124))||_0x1c9a8c[_0x317637(0x128)][_0x317637(0x157)](_0x317637(0x148));}
23
+ function _0x1287(){const _0x2fce4f=['suggestionUpdated','55992LrjGjx','TrackChangesEditing','getSuggestion','plugins','size','63stNeNt','getMany','3VQLYkY','adapter','open','update','244405VdCKmr','hasSuggestion','message','addSuggestionData','from','4894jAFunS','find','off','data','getUser','listenTo','_bufferedRequests','_trackChangesService','connected','TrackChangesService','requires','config','collaboration.channelId','51980MGgZLi','add','836408HXaLOb','set','cloud-services-internal-error:\x20Not\x20connected.','originalSuggestionId','isConnected','get','connection','reconnect','init','values','_waitForServiceReady','delete','catch','state','addToReconnectionStack','addUser','_saved','editor','225krmuTX','cloud-services-internal-error:\x20Request\x20timeout.','_fetchMissingUsersForThreads','startsWith','10734pBVDtJ','type','116456qfwtDi','connect','attributes','then'];_0x1287=function(){return _0x2fce4f;};return _0x1287();}function _0x4d13(_0x162af2,_0x5dd8e6){const _0x12876d=_0x1287();return _0x4d13=function(_0x4d1354,_0x4c0d7e){_0x4d1354=_0x4d1354-0xb2;let _0x15c52f=_0x12876d[_0x4d1354];return _0x15c52f;},_0x4d13(_0x162af2,_0x5dd8e6);}const _0x464ff0=_0x4d13;(function(_0x22dd60,_0x2ebd2a){const _0x5f2d2=_0x4d13,_0x11ef1f=_0x22dd60();while(!![]){try{const _0x1b511b=parseInt(_0x5f2d2(0xb5))/0x1+parseInt(_0x5f2d2(0xc5))/0x2+parseInt(_0x5f2d2(0xbc))/0x3*(-parseInt(_0x5f2d2(0xd4))/0x4)+-parseInt(_0x5f2d2(0xc0))/0x5+parseInt(_0x5f2d2(0xea))/0x6*(parseInt(_0x5f2d2(0xba))/0x7)+parseInt(_0x5f2d2(0xec))/0x8*(parseInt(_0x5f2d2(0xe6))/0x9)+parseInt(_0x5f2d2(0xd2))/0xa;if(_0x1b511b===_0x2ebd2a)break;else _0x11ef1f['push'](_0x11ef1f['shift']());}catch(_0xc1725c){_0x11ef1f['push'](_0x11ef1f['shift']());}}}(_0x1287,0x2d550));import{Plugin as _0x33820a}from'ckeditor5/src/core.js';import{User as _0x49caae,TrackChangesService as _0x1379b9}from'@ckeditor/ckeditor-cloud-services-collaboration/src/services.js';import _0x2eed89 from'../realtimecollaborativeediting/websocketgateway.js';import _0x1f6799 from'../realtimecollaborativecomments/cloudservicescommentsadapter.js';import{Users as _0x2e6517}from'ckeditor5-collaboration/src/collaboration-core.js';class g extends _0x33820a{static get[_0x464ff0(0xcf)](){const _0x274d19=_0x464ff0;return[_0x1f6799,_0x274d19(0xb6),_0x2eed89];}constructor(_0x5f33fe){const _0x1ae8cf=_0x464ff0;super(_0x5f33fe);const _0x2156c8=this[_0x1ae8cf(0xe5)][_0x1ae8cf(0xd0)][_0x1ae8cf(0xd9)](_0x1ae8cf(0xd1));this[_0x1ae8cf(0xcb)]=new Map(),this[_0x1ae8cf(0xcc)]=new g[(_0x1ae8cf(0xce))](_0x2156c8);}[_0x464ff0(0xdc)](){const _0x3fd15a=_0x464ff0,_0x13e2cb=this[_0x3fd15a(0xe5)][_0x3fd15a(0xb8)][_0x3fd15a(0xd9)](_0x2eed89),_0x4708cd=this[_0x3fd15a(0xe5)][_0x3fd15a(0xb8)][_0x3fd15a(0xd9)](_0x3fd15a(0xb6));return _0x4708cd[_0x3fd15a(0xbd)]={'getSuggestion':async _0x81d725=>{const _0x3630e1=_0x3fd15a;await this[_0x3630e1(0xde)]();const _0x510447=await this[_0x3630e1(0xcc)][_0x3630e1(0xd9)](_0x81d725)[_0x3630e1(0xe0)](R);return await this[_0x3630e1(0xe8)]([_0x510447]),_0x510447;},'addSuggestion':async({id:_0x28dd13,type:_0x3f2fa4,data:_0x57b1ff,originalSuggestionId:_0x532f9d,attributes:_0x1de40d})=>{const _0x4be25b=_0x3fd15a;await this[_0x4be25b(0xde)]();const _0x5fbc78={'id':_0x28dd13,'type':_0x3f2fa4,'data':_0x57b1ff,'originalSuggestionId':_0x532f9d,'attributes':_0x1de40d},_0x2ce4c4=await this[_0x4be25b(0xcc)][_0x4be25b(0xd3)](_0x28dd13,_0x3f2fa4,_0x57b1ff,_0x532f9d,_0x1de40d)[_0x4be25b(0xe0)](_0x5ad9bf=>{if(P(_0x5ad9bf))return new Promise(_0x304c99=>{const _0x864b8f=_0x4d13;this[_0x864b8f(0xcb)][_0x864b8f(0xd5)](_0x28dd13,{'resolve':_0x304c99,'suggestionData':_0x5fbc78});});throw _0x5ad9bf;});return this[_0x4be25b(0xcb)][_0x4be25b(0xdf)](_0x28dd13),_0x2ce4c4;},'updateSuggestion':async(_0x33b580,_0x4a1b79)=>{const _0x16fd2e=_0x3fd15a;if(await this[_0x16fd2e(0xde)](),_0x16fd2e(0xbe)!==_0x4a1b79[_0x16fd2e(0xe1)])return this[_0x16fd2e(0xcc)][_0x16fd2e(0xbf)](_0x33b580,_0x4a1b79)[_0x16fd2e(0xe0)](R);}},this[_0x3fd15a(0xca)](this[_0x3fd15a(0xcc)],_0x3fd15a(0xb4),(_0x59d190,_0x144395)=>{const _0x300802=_0x3fd15a;_0x4708cd[_0x300802(0xc1)](_0x144395['id'])&&(_0x4708cd[_0x300802(0xb7)](_0x144395['id'])[_0x300802(0xb2)]=_0x144395[_0x300802(0xb2)]);}),this[_0x3fd15a(0xcc)][_0x3fd15a(0xed)](_0x13e2cb[_0x3fd15a(0xda)])[_0x3fd15a(0xb3)](_0xe13693=>(_0x13e2cb[_0x3fd15a(0xe2)](this),this[_0x3fd15a(0xe8)](_0xe13693)[_0x3fd15a(0xb3)](()=>{const _0x2a6057=_0x3fd15a;for(const _0x287d0d of _0xe13693){_0x4708cd[_0x2a6057(0xc3)](_0x287d0d)[_0x2a6057(0xe4)]=!0x0;}})));}async[_0x464ff0(0xdb)](){const _0x2122ed=_0x464ff0,_0x54cbef=this[_0x2122ed(0xe5)][_0x2122ed(0xb8)][_0x2122ed(0xd9)](_0x2122ed(0xb6)),{connection:_0x5a19e1}=this[_0x2122ed(0xe5)][_0x2122ed(0xb8)][_0x2122ed(0xd9)](_0x2eed89),_0x33475f=await this[_0x2122ed(0xcc)][_0x2122ed(0xed)](_0x5a19e1);await this[_0x2122ed(0xe8)](_0x33475f);for(const {suggestionData:_0x48a00c,resolve:_0x406721}of this[_0x2122ed(0xcb)][_0x2122ed(0xdd)]()){let _0x1cea3a=_0x33475f[_0x2122ed(0xc6)](_0x48760b=>_0x48760b['id']===_0x48a00c['id']);_0x1cea3a||(_0x1cea3a=await this[_0x2122ed(0xcc)][_0x2122ed(0xd3)](_0x48a00c['id'],_0x48a00c[_0x2122ed(0xeb)],_0x48a00c[_0x2122ed(0xc8)],_0x48a00c[_0x2122ed(0xd7)])),_0x406721(_0x1cea3a);}for(const _0x2df1f4 of _0x33475f)_0x54cbef[_0x2122ed(0xc1)](_0x2df1f4['id'])||_0x54cbef[_0x2122ed(0xc3)](_0x2df1f4);}async[_0x464ff0(0xde)](){const _0x52d211=_0x464ff0;this[_0x52d211(0xcc)][_0x52d211(0xd8)]||await new Promise(_0x2c2b7b=>{const _0xc9b483=_0x52d211;this[_0xc9b483(0xca)](this[_0xc9b483(0xcc)],_0xc9b483(0xcd),_0x5f1659=>{const _0xe093ae=_0xc9b483;_0x5f1659[_0xe093ae(0xc7)](),_0x2c2b7b();});});}async[_0x464ff0(0xe8)](_0x3923a7){const _0x27cb53=_0x464ff0,_0x5dbe81=this[_0x27cb53(0xe5)][_0x27cb53(0xb8)][_0x27cb53(0xd9)](_0x2e6517),{connection:_0xe08773}=this[_0x27cb53(0xe5)][_0x27cb53(0xb8)][_0x27cb53(0xd9)](_0x2eed89),_0x4c1932=new Set();for(const {authorId:_0xb3ec9c}of _0x3923a7)_0x5dbe81[_0x27cb53(0xc9)](_0xb3ec9c)||_0x4c1932[_0x27cb53(0xd3)](_0xb3ec9c);if(0x0===_0x4c1932[_0x27cb53(0xb9)])return;const _0x3999a8=await _0x49caae[_0x27cb53(0xbb)](_0xe08773,Array[_0x27cb53(0xc4)](_0x4c1932));for(const _0x42ddaa of _0x3999a8)_0x5dbe81[_0x27cb53(0xc9)](_0x42ddaa['id'])||_0x5dbe81[_0x27cb53(0xe3)](_0x42ddaa);}}g[_0x464ff0(0xce)]=_0x1379b9;export default g;function R(_0x14a943){if(P(_0x14a943))return new Promise(()=>{});throw _0x14a943;}function P(_0x4163ca){const _0x3caa95=_0x464ff0;return _0x4163ca[_0x3caa95(0xc2)][_0x3caa95(0xe9)](_0x3caa95(0xd6))||_0x4163ca[_0x3caa95(0xc2)][_0x3caa95(0xe9)](_0x3caa95(0xe7));}