@ckeditor/ckeditor5-real-time-collaboration 37.0.0-rc.0 → 37.0.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.
- package/build/real-time-collaboration.js +1 -1
- package/package.json +6 -6
- package/src/common-translations.js +1 -1
- package/src/presencelist/presencelistui.js +1 -1
- package/src/presencelist/view/presencecounterview.js +1 -1
- package/src/presencelist/view/presencedropdownlistitemview.js +1 -1
- package/src/presencelist/view/presencedropdownlistview.js +1 -1
- package/src/presencelist/view/presenceinlinelistitemview.js +1 -1
- package/src/presencelist/view/presenceinlinelistview.js +1 -1
- package/src/presencelist/view/presencelistview.js +1 -1
- package/src/presencelist.js +1 -1
- package/src/realtimecollaborativecomments/cloudservicescommentsadapter.js +1 -1
- package/src/realtimecollaborativecomments.js +1 -1
- package/src/realtimecollaborativeediting/realtimecollaborationclient.js +1 -1
- package/src/realtimecollaborativeediting/sessions.js +1 -1
- package/src/realtimecollaborativeediting/usermarkers.js +1 -1
- package/src/realtimecollaborativeediting/websocketgateway.js +1 -1
- package/src/realtimecollaborativeediting.js +1 -1
- package/src/realtimecollaborativerevisionhistory/cloudservicesrevisionhistoryadapter.js +1 -1
- package/src/realtimecollaborativerevisionhistory.js +1 -1
- package/src/realtimecollaborativetrackchanges/cloudservicestrackchangesadapter.js +1 -1
- package/src/realtimecollaborativetrackchanges.js +1 -1
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x30f0=['markerName','removeMarker','createUIElement','for','document','set','createUserMarkerOperations','requires','getPositions','clear','data-session-id','change:range','span','innerHTML','markerToHighlight','update:user:range','getContainedElement','toDomElement','schema','getSelectionClass','$graveyard','updateMarker','markers','marker','getRange','user:position','mySessionId','rootName','applyOperation','UserMarkers','markerToElement','start','color','user:position:','createRange','​<span\x20class=\x22ck-user__marker-line\x22><span\x20class=\x22ck-user__marker-dot\x22></span></span>','ck-user__marker\x20','plugins','getCustomProperty','isObject','pluginName','hasDomSelection','commands','userPositionMarker','_createdBatches','isCollapsed','markerRange','getUserBySessionId','getFirstRange','editing','$text','size','get','view','render','split','name','detach','getStart','getAttribute','type','reconvertMarker','delete','undo','model','isSimilar','end','user:range','user:','highest','editor','addMarker','newRange','nodeAfter','getMarkerClass','root','editingDowncast','user:range:','ck-user__selection','enqueueChange','afterInit','oldRange','has','hasContent','isLimit'];(function(_0xa69a88,_0x30f0ab){const _0x40c5ab=function(_0x2a64cc){while(--_0x2a64cc){_0xa69a88['push'](_0xa69a88['shift']());}};_0x40c5ab(++_0x30f0ab);}(_0x30f0,0x8f));const _0x40c5=function(_0xa69a88,_0x30f0ab){_0xa69a88=_0xa69a88-0x0;let _0x40c5ab=_0x30f0[_0xa69a88];return _0x40c5ab;};import{Plugin as _0x529cb5}from'ckeditor5/src/core';import _0x2b6faa from'./sessions';import{LiveRange as _0x488ad4}from'ckeditor5/src/engine';import'../../theme/usermarkers.css';export default class F extends _0x529cb5{static get[_0x40c5('0x22')](){return[_0x2b6faa];}static get[_0x40c5('0x43')](){return _0x40c5('0x38');}['init'](){const _0x59aebd=this['editor'],_0x46e3a1=_0x59aebd[_0x40c5('0x40')][_0x40c5('0x4f')](_0x2b6faa);_0x59aebd['conversion']['for']('editingDowncast')[_0x40c5('0x39')]({'model':_0x40c5('0x34'),'view':(_0x146f65,{writer:_0x4668a0})=>function(_0x3b1769,_0xfbbf81,_0x42a799,_0x56c085){const _0x1155b0=_0x3b1769[_0x40c5('0x1b')][_0x40c5('0x52')](':')[0x2],_0x54ca20=_0x42a799[_0x40c5('0x4a')](_0x1155b0);if(!_0x54ca20||_0x1155b0===_0x42a799[_0x40c5('0x35')])return;if(!_0x56c085[_0x40c5('0x6')][_0x40c5('0x2d')]['checkChild'](_0x3b1769[_0x40c5('0x49')][_0x40c5('0x3a')],_0x40c5('0x4d')))return;const _0x546d21={'class':_0x40c5('0x3f')+_0x54ca20[_0x40c5('0x3b')][_0x40c5('0x10')](),'data-name':_0x54ca20['name'],'data-session-id':_0x1155b0},_0xa2a9b4=_0x56c085['model']['markers'][_0x40c5('0x4f')](_0x3b1769[_0x40c5('0x1b')]),_0x4e1336=_0xa2a9b4[_0x40c5('0x0')](),_0xc1d368=_0x4e1336[_0x40c5('0xf')],_0x136c7c=_0x56c085[_0x40c5('0x6')][_0x40c5('0x2d')];if(_0xc1d368&&_0x136c7c[_0x40c5('0x42')](_0xc1d368)&&_0x136c7c['isInline'](_0xc1d368)&&!_0x56c085[_0x40c5('0x6')][_0x40c5('0x31')][_0x40c5('0x4f')](_0x40c5('0x13')+_0x1155b0)['getRange']()[_0x40c5('0x48')])return;const _0x1eefe1=_0x4e1336['parent'];return _0x56c085['model'][_0x40c5('0x2d')][_0x40c5('0x1a')](_0x1eefe1)&&!_0x56c085[_0x40c5('0x6')][_0x40c5('0x19')](_0x1eefe1)&&(_0x546d21['contenteditable']=!0x1),function(_0x1ec706,_0x44ddc2){const _0x459339=_0x1ec706[_0x40c5('0x1d')](_0x40c5('0x27'),_0x44ddc2);return _0x1ec706['setCustomProperty'](_0x40c5('0x46'),!0x0,_0x459339),_0x459339[_0x40c5('0x51')]=function(_0x525d13){const _0xa42524=this[_0x40c5('0x2c')](_0x525d13);return _0xa42524[_0x40c5('0x28')]=_0x40c5('0x3e'),_0xa42524;},_0x459339[_0x40c5('0x7')]=function(_0x9487d2){return!(!this['getCustomProperty'](_0x40c5('0x46'))||!_0x9487d2[_0x40c5('0x41')]('userPositionMarker')||this[_0x40c5('0x1')](_0x40c5('0x25'))!=_0x9487d2['getAttribute'](_0x40c5('0x25')));},_0x459339;}(_0xfbbf81,_0x546d21);}(_0x146f65,_0x4668a0,_0x46e3a1,_0x59aebd)}),_0x59aebd['conversion'][_0x40c5('0x1e')](_0x40c5('0x12'))[_0x40c5('0x29')]({'model':_0x40c5('0x9'),'view':_0x2e6744=>function(_0xcd30b0,_0x11fd1a){const _0x2f7810=_0xcd30b0[_0x40c5('0x1b')][_0x40c5('0x52')](':')[0x2];if(_0x2f7810===_0x11fd1a['mySessionId'])return null;const _0x1195a6=_0x11fd1a[_0x40c5('0x4a')](_0x2f7810);if(!_0x1195a6)return{'id':_0x2f7810,'classes':[]};return{'id':_0x2f7810,'classes':[_0x40c5('0x14'),_0x1195a6[_0x40c5('0x3b')][_0x40c5('0x2e')]()],'attributes':{'data-session-id':_0x2f7810},'priority':0x7d0+_0x1195a6['orderNumber']};}(_0x2e6744,_0x46e3a1)}),function(_0x466a6e){const _0x214132=_0x466a6e[_0x40c5('0x6')],_0x14dbcf=new Map(),_0x5a2416=_0x466a6e[_0x40c5('0x40')][_0x40c5('0x4f')](_0x2b6faa);_0x214132[_0x40c5('0x31')]['on'](_0x40c5('0x2a'),(_0xfe40d6,_0x46d849,_0x6ceeab,_0x444361)=>{if(!_0x444361&&_0x14dbcf[_0x40c5('0x4f')](_0x46d849[_0x40c5('0x53')]))return _0x14dbcf[_0x40c5('0x4f')](_0x46d849[_0x40c5('0x53')])['detach'](),void _0x14dbcf[_0x40c5('0x4')](_0x46d849['name']);const _0x22ea63=_0x46d849[_0x40c5('0x53')][_0x40c5('0x52')](':')[0x2];if(_0x22ea63===_0x5a2416['mySessionId'])return;const _0x3436a4=_0x40c5('0x3c')+_0x22ea63;_0x214132['markers'][_0x40c5('0x18')](_0x3436a4)&&_0x466a6e[_0x40c5('0x4c')][_0x40c5('0x3')](_0x3436a4),_0x46d849['on']('change:range',(_0x27ba2d,_0x227e98,_0x592b75)=>{if('$graveyard'!=_0x227e98['root']['rootName']&&_0x40c5('0x2f')==_0x46d849['getRange']()['root'][_0x40c5('0x36')]&&!_0x14dbcf['has'](_0x46d849[_0x40c5('0x53')])){const _0x153bfd=_0x214132[_0x40c5('0x2d')]['getNearestSelectionRange'](_0x592b75['deletionPosition']);if(_0x153bfd){const _0x54d7e8=_0x488ad4['fromRange'](_0x153bfd);_0x14dbcf[_0x40c5('0x20')](_0x46d849['name'],_0x54d7e8),_0x54d7e8['on'](_0x40c5('0x26'),(_0x2d1aeb,_0x5f3742,_0x2cf80a)=>{if('$graveyard'==_0x54d7e8[_0x40c5('0x11')][_0x40c5('0x36')]){const _0x5b4254=_0x214132[_0x40c5('0x2d')]['getNearestSelectionRange'](_0x2cf80a['deletionPosition']);_0x5b4254?(_0x54d7e8['start']=_0x5b4254[_0x40c5('0x3a')],_0x54d7e8[_0x40c5('0x8')]=_0x5b4254[_0x40c5('0x8')]):(_0x14dbcf['delete'](_0x46d849[_0x40c5('0x53')]),_0x54d7e8[_0x40c5('0x54')]());}});}}});}),_0x214132[_0x40c5('0x1f')]['on']('change',()=>{_0x14dbcf[_0x40c5('0x4e')]>0x0&&_0x214132[_0x40c5('0x15')]({'isUndoable':!0x1},_0x5f0c88=>{for(const [_0x3fa903,_0x171e85]of _0x14dbcf)'$graveyard'==_0x214132[_0x40c5('0x31')][_0x40c5('0x4f')](_0x3fa903)[_0x40c5('0x33')]()[_0x40c5('0x11')]['rootName']&&(Z(_0x3fa903[_0x40c5('0x52')](':')[0x2],_0x171e85['toRange'](),_0x214132,_0x5f0c88),_0x171e85[_0x40c5('0x54')]());_0x14dbcf[_0x40c5('0x24')]();});});}(_0x59aebd);}[_0x40c5('0x16')](){const _0x37edf3=this['editor'],_0x1b0bee=_0x37edf3[_0x40c5('0x45')][_0x40c5('0x4f')](_0x40c5('0x5'));_0x1b0bee&&_0x37edf3[_0x40c5('0x6')]['on'](_0x40c5('0x37'),(_0x2cb146,_0x199893)=>{const _0x26a7cb=_0x199893[0x0];if(_0x40c5('0x32')!=_0x26a7cb[_0x40c5('0x2')]||!_0x26a7cb['name']['startsWith'](_0x40c5('0xa')))return;const _0x58bbbb=_0x26a7cb['batch'];_0x1b0bee[_0x40c5('0x47')][_0x40c5('0x18')](_0x58bbbb)&&(_0x26a7cb[_0x40c5('0xe')]=_0x26a7cb[_0x40c5('0x17')]?_0x37edf3[_0x40c5('0x6')][_0x40c5('0x3d')](_0x26a7cb[_0x40c5('0x17')][_0x40c5('0x3a')],_0x26a7cb[_0x40c5('0x17')][_0x40c5('0x8')]):null);},{'priority':_0x40c5('0xb')});}[_0x40c5('0x21')](){const _0x5b23a8=this[_0x40c5('0xc')],_0x598a51=_0x5b23a8['model'][_0x40c5('0x1f')],_0x491cf7=_0x5b23a8[_0x40c5('0x40')][_0x40c5('0x4f')](_0x2b6faa);_0x5b23a8[_0x40c5('0x6')][_0x40c5('0x15')]({'isUndoable':!0x1},_0x4236e2=>{const _0x47623c=_0x40c5('0x13')+_0x491cf7[_0x40c5('0x35')],_0x2da534=_0x40c5('0x3c')+_0x491cf7[_0x40c5('0x35')],_0x3bf3f9=_0x5b23a8[_0x40c5('0x6')][_0x40c5('0x31')][_0x40c5('0x18')](_0x47623c);_0x5b23a8[_0x40c5('0x4c')][_0x40c5('0x50')][_0x40c5('0x44')]?Z(_0x491cf7[_0x40c5('0x35')],_0x598a51['selection'][_0x40c5('0x4b')](),_0x5b23a8[_0x40c5('0x6')],_0x4236e2):_0x3bf3f9&&(_0x4236e2['removeMarker'](_0x47623c),_0x4236e2[_0x40c5('0x1c')](_0x2da534));});}}function Z(_0x14fcbc,_0x34684c,_0x5e950a,_0xc34095){const _0x3fbfc1=_0x40c5('0x13')+_0x14fcbc,_0x4ee8dc=_0x40c5('0x3c')+_0x14fcbc,_0x1a645f=_0x34684c[_0x40c5('0x2b')]();let _0x598c8a=_0x34684c[_0x40c5('0x3a')];_0x1a645f&&_0x1a645f['is']('element','tableCell')&&(_0x598c8a=function(_0x561556,_0x581caf){for(const _0x2667d1 of _0x561556[_0x40c5('0x23')]())if(_0x581caf[_0x40c5('0x2d')]['checkChild'](_0x2667d1,_0x40c5('0x4d')))return _0x2667d1;}(_0x34684c,_0x5e950a),_0x34684c=_0xc34095[_0x40c5('0x3d')](_0x598c8a));const _0x1644ce=_0xc34095[_0x40c5('0x3d')](_0x598c8a);_0x5e950a[_0x40c5('0x31')][_0x40c5('0x18')](_0x3fbfc1)?(_0xc34095[_0x40c5('0x30')](_0x3fbfc1,{'range':_0x34684c}),_0xc34095[_0x40c5('0x30')](_0x4ee8dc,{'range':_0x1644ce})):(_0xc34095[_0x40c5('0xd')](_0x3fbfc1,{'range':_0x34684c,'usingOperation':!0x0}),_0xc34095[_0x40c5('0xd')](_0x4ee8dc,{'range':_0x1644ce,'usingOperation':!0x0}));}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x479b=['_shouldPluginsReconnect','DISCONNECTED','error','listenTo','then','_reconnectionStack','get','state','requires','function','real-time-collaboration','_domEmitter','connect','websocketgateway-missing-token','from','plugins','cloudServices.connectionTimeout','isInReconnectionStack','WebSocketGateway','The\x20limit\x20of\x20maximum\x20concurrent\x20connections\x20that\x20the\x20collaboration\x20server\x20can\x20handle\x20has\x20been\x20reached.\x20Try\x20opening\x20the\x20document\x20again\x20in\x20a\x20few\x20minutes.\x20Please\x20contact\x20your\x20system\x20administrator\x20if\x20the\x20problem\x20persists.','CloudServices','set','reconnect','define','context','connection','cloudServices.requestTimeout','_reconnect','delete','online','token','websocketgateway-invalid-plugin-interface','webSocketUrl','constructor','destroy','CONNECTING','showWarning','config','limitExceeded','init','cloudservices-init','_isBrowserOffline','CONNECTED','connected','websocketgateway-plugin-already-registered','catch','Connected\x20users\x20limit\x20exceeded','cloudservices-reconnection-error'];(function(_0x29a226,_0x479b7b){const _0x28eed1=function(_0x43530e){while(--_0x43530e){_0x29a226['push'](_0x29a226['shift']());}};_0x28eed1(++_0x479b7b);}(_0x479b,0x113));const _0x28ee=function(_0x29a226,_0x479b7b){_0x29a226=_0x29a226-0x0;let _0x28eed1=_0x479b[_0x29a226];return _0x28eed1;};import{ContextPlugin as _0x4799bf}from'ckeditor5/src/core';import{DomEmitterMixin as _0x2b2a83,CKEditorError as _0x2cc837}from'ckeditor5/src/utils';import _0x50fcf6,{WEB_SOCKET_GATEWAY_STATES as _0x2aff81}from'@ckeditor/ckeditor-cloud-services-collaboration/src/websocketgateway/websocketgateway';import{Notification as _0x8654f3}from'ckeditor5/src/ui';export default class c extends _0x4799bf{static get[_0x28ee('0x15')](){return[_0x28ee('0x21'),_0x8654f3];}static get['pluginName'](){return'WebSocketGateway';}constructor(_0x4b6094){super(_0x4b6094),this[_0x28ee('0x22')](_0x28ee('0x14'),_0x2aff81['CONNECTED']),this[_0x28ee('0x22')](_0x28ee('0x6'),!0x1),this[_0x28ee('0x12')]=new Set(),this['_shouldPluginsReconnect']=!0x1,this[_0x28ee('0x18')]=Object['create'](_0x2b2a83);}[_0x28ee('0x4')](){const _0x2b3de8=this[_0x28ee('0x25')],_0x5bf81b=_0x2b3de8[_0x28ee('0x1c')]['get'](_0x28ee('0x21')),_0x2fbf07=_0x2b3de8[_0x28ee('0x1c')][_0x28ee('0x13')](_0x8654f3);if(!_0x5bf81b['token'])throw new _0x2cc837(_0x28ee('0x1a'),this);if(!_0x5bf81b['webSocketUrl'])throw new _0x2cc837('websocketgateway-missing-websocket-url',this);return this[_0x28ee('0x18')][_0x28ee('0x10')](window,'offline',()=>this[_0x28ee('0x6')]=!0x0),this[_0x28ee('0x18')][_0x28ee('0x10')](window,_0x28ee('0x2a'),()=>this['_isBrowserOffline']=!0x1),this[_0x28ee('0x25')][_0x28ee('0x2')][_0x28ee('0x24')](_0x28ee('0x1d'),0xa),this[_0x28ee('0x25')][_0x28ee('0x2')]['define'](_0x28ee('0x27'),0x14),c[_0x28ee('0x1f')][_0x28ee('0x19')](_0x5bf81b[_0x28ee('0x2b')],_0x5bf81b[_0x28ee('0x2d')],{'timeout':0x3e8*this[_0x28ee('0x25')][_0x28ee('0x2')]['get']('cloudServices.connectionTimeout'),'requestTimeout':0x3e8*this[_0x28ee('0x25')][_0x28ee('0x2')][_0x28ee('0x13')]('cloudServices.requestTimeout')})[_0x28ee('0x11')](_0x3ce0ce=>{if(this['connection']=_0x3ce0ce,this['bind'](_0x28ee('0x14'))['to'](_0x3ce0ce,_0x28ee('0x14'),this,'_isBrowserOffline',(_0x3427fb,_0x3a7e3e)=>(_0x28ee('0x8')!==_0x3427fb&&(this['_shouldPluginsReconnect']=!0x0),_0x3a7e3e||_0x3427fb!==_0x2aff81['CONNECTED']?_0x2aff81[_0x28ee('0xe')]:this[_0x28ee('0x14')]==_0x2aff81[_0x28ee('0xe')]&&this[_0x28ee('0xd')]?(this[_0x28ee('0xd')]=!0x1,this[_0x28ee('0x28')](),_0x2aff81[_0x28ee('0x0')]):_0x2aff81[_0x28ee('0x7')])),this['connection']['on']('error',(_0x10e5ee,_0x5a0b79)=>{if(_0x28ee('0x3')!==_0x5a0b79['code'])throw console[_0x28ee('0xf')](_0x5a0b79),new _0x2cc837('cloudservices-init',null,{'originalError':_0x5a0b79});_0x2fbf07[_0x28ee('0x1')](_0x28ee('0x20'),{'title':_0x28ee('0xb'),'namespace':_0x28ee('0x17')});}),!_0x3ce0ce['me'])return new Promise(_0xd0a9c1=>_0x3ce0ce['on']('change:me',_0xd0a9c1));})[_0x28ee('0xa')](_0x41277a=>{throw console[_0x28ee('0xf')](_0x41277a),new _0x2cc837(_0x28ee('0x5'),null,{'originalError':_0x41277a});});}['addToReconnectionStack'](_0x539ac4){if(_0x28ee('0x16')!=typeof _0x539ac4[_0x28ee('0x23')])throw new _0x2cc837(_0x28ee('0x2c'),this);if(this['isInReconnectionStack'](_0x539ac4))throw new _0x2cc837(_0x28ee('0x9'),this,{'name':_0x539ac4[_0x28ee('0x2e')]['pluginName']});this[_0x28ee('0x12')]['add'](_0x539ac4);}['removeFromReconnectionStack'](_0x4ed142){this[_0x28ee('0x12')][_0x28ee('0x29')](_0x4ed142);}[_0x28ee('0x1e')](_0x533149){return this['_reconnectionStack']['has'](_0x533149);}[_0x28ee('0x28')](){return this[_0x28ee('0x26')][_0x28ee('0x23')]()['then'](()=>Promise['all'](Array[_0x28ee('0x1b')](this[_0x28ee('0x12')],_0x368ba1=>_0x368ba1[_0x28ee('0x23')]())))[_0x28ee('0x11')](()=>this[_0x28ee('0x14')]=_0x2aff81['CONNECTED'])[_0x28ee('0xa')](_0xf4f078=>{throw console[_0x28ee('0xf')](_0xf4f078),new _0x2cc837(_0x28ee('0xc'),this['context']);});}[_0x28ee('0x2f')](){this[_0x28ee('0x26')]&&this[_0x28ee('0x26')]['disconnect'](),this[_0x28ee('0x14')]=_0x2aff81['DISCONNECTED'],this['_domEmitter']['stopListening'](),super[_0x28ee('0x2f')]();}}c[_0x28ee('0x1f')]=_0x50fcf6,c['initialReconnectionInterval']=0x3e8;
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x11ec=['RealTimeCollaborativeEditing'];(function(_0x1f6bee,_0x11ece9){var _0x3f0894=function(_0x407b30){while(--_0x407b30){_0x1f6bee['push'](_0x1f6bee['shift']());}};_0x3f0894(++_0x11ece9);}(_0x11ec,0xe8));var _0x3f08=function(_0x1f6bee,_0x11ece9){_0x1f6bee=_0x1f6bee-0x0;var _0x3f0894=_0x11ec[_0x1f6bee];return _0x3f0894;};import{Plugin as _0x2340c8}from'ckeditor5/src/core';import _0x1f72b3 from'./realtimecollaborativeediting/realtimecollaborationclient';export default class n extends _0x2340c8{static get['requires'](){return[_0x1f72b3];}static get['pluginName'](){return _0x3f08('0x0');}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x3ad9=['_lastRequestId','editor','sessionId','getRevision','_revisionHistoryService','sendBufferedUpdates','isEmptyCurrent','isConnected','toVersion','revisionsUpdated','isBundleUploaded','cloudServices.bundleVersion','_fetchMissingUsers','keys','getRevisions','400','destroy','config','_handleRevisionsUpdate','cloud-services-internal-error:\x20Request\x20timeout.','plugins','map','setRevisionData','change:_isPendingUpdate','requires','buildRevisionData','adapter','_revisions','_preventResendingRevisionData','off','startsWith','change:_isConnected','baseVersion','_revisionTracker','_update','getUser','reconnect','fromVersion','catch','reverse','cloud-services-internal-error:\x20Revision\x20History\x20Service\x20is\x20not\x20connected.','diffData','_fixRevision','message','get','_startingVersion','_bufferUpdate','listenTo','state','authors','setSource','RevisionTracker','serverHistory','_offset','length','size','repository','creatorId','bind','marker','_getLatestVersionFromServerOperations','code','_oldOffset','connection','init','RevisionHistoryService','once','createdAt','cloud-services-internal-error:\x20Not\x20connected.','affectsData','_waitForServiceReady','remove','addUser','data','type','isEnabled','addRevisionData','collaboration.channelId','currentRevision','authorsIds','_handleReconnectionError','max','then'];(function(_0x5bd477,_0x3ad964){const _0x1e2bd8=function(_0x2e5ad5){while(--_0x2e5ad5){_0x5bd477['push'](_0x5bd477['shift']());}};_0x1e2bd8(++_0x3ad964);}(_0x3ad9,0x1e6));const _0x1e2b=function(_0x5bd477,_0x3ad964){_0x5bd477=_0x5bd477-0x0;let _0x1e2bd8=_0x3ad9[_0x5bd477];return _0x1e2bd8;};import{Plugin as _0x128552}from'ckeditor5/src/core';import{version as _0x134d20}from'ckeditor5/src/utils';import{Users as _0x292587}from'ckeditor5-collaboration/src/collaboration-core';import _0x36f851 from'../realtimecollaborativeediting/realtimecollaborationclient';import _0x3625f4 from'../realtimecollaborativeediting/websocketgateway';import _0x4599c5 from'../realtimecollaborativeediting/sessions';import _0x1aa608 from'@ckeditor/ckeditor-cloud-services-collaboration/src/users/user';import _0x3f9f90 from'@ckeditor/ckeditor-cloud-services-collaboration/src/revision-history/revisionhistoryservice';import _0x4617f5 from'@ckeditor/ckeditor-cloud-services-collaboration/src/editor/editorservice';import{WEB_SOCKET_GATEWAY_STATES as _0x1e020a}from'@ckeditor/ckeditor-cloud-services-collaboration/src/websocketgateway/websocketgateway';export default class v extends _0x128552{static get[_0x1e2b('0x24')](){return[_0x3625f4,_0x36f851,_0x1e2b('0x3f'),_0x4599c5,_0x292587];}constructor(_0x16bf30){super(_0x16bf30);const _0x569bb9=this[_0x1e2b('0xd')][_0x1e2b('0x1d')]['get'](_0x1e2b('0x6'));this[_0x1e2b('0xc')]=null,this['_revisionTracker']=this[_0x1e2b('0xd')][_0x1e2b('0x20')][_0x1e2b('0x38')](_0x1e2b('0x3f')),this[_0x1e2b('0x10')]=new v[(_0x1e2b('0x4d'))](_0x569bb9);}async[_0x1e2b('0x4c')](){const _0x1bacc4=this[_0x1e2b('0xd')]['plugins'][_0x1e2b('0x38')](_0x36f851),_0x129eee=_0x1bacc4['serverHistory'],_0x515994=this[_0x1e2b('0xd')][_0x1e2b('0x20')][_0x1e2b('0x38')](_0x3625f4);this[_0x1e2b('0x2d')][_0x1e2b('0x3e')]({'history':_0x129eee,'getLatestVersion':()=>this['_getLatestVersion'](),'getCurrentRevisionId':()=>_0x1bacc4['sessionId']});const _0x1143dd=this[_0x1e2b('0xd')]['config']['get'](_0x1e2b('0x17'))||_0x134d20,_0x31b947=await _0x4617f5[_0x1e2b('0x16')](_0x515994[_0x1e2b('0x4b')],_0x1143dd);this[_0x1e2b('0x2d')][_0x1e2b('0x26')]={'getRevision':async({revisionId:_0x100ace})=>(await this[_0x1e2b('0x52')](),await this[_0x1e2b('0x10')][_0x1e2b('0xf')](_0x100ace)),'updateRevisions':async _0x2abdc5=>{await this[_0x1e2b('0x52')]();const _0x53ad6d=this['_revisionTracker'][_0x1e2b('0x7')];if(_0x31b947&&0x1===_0x2abdc5[_0x1e2b('0x42')]&&_0x2abdc5[0x0]['id']===_0x53ad6d['id'])return _0x2abdc5;for(const _0x1c76a4 of _0x2abdc5)_0x1c76a4['id']===_0x53ad6d['id']&&(_0x1c76a4[_0x1e2b('0x12')]=_0x1c76a4[_0x1e2b('0x31')]===_0x1c76a4['toVersion']);return this[_0x1e2b('0x10')]['updateRevisions'](_0x2abdc5,this['_lastRequestId'])[_0x1e2b('0xb')](_0x202841=>(this[_0x1e2b('0xc')]=_0x202841,_0x2abdc5))['catch'](_0x45b8af=>{if(ot(_0x45b8af)||_0x1e2b('0x1b')===_0x45b8af[_0x1e2b('0x49')]&&void 0x0!==_0x45b8af[_0x1e2b('0x2')]['wrongRequestId']){for(const _0x578807 of _0x2abdc5){!this['_revisionTracker'][_0x1e2b('0x44')][_0x1e2b('0xf')](_0x578807['id'])||this[_0x1e2b('0x2d')][_0x1e2b('0x3a')](_0x578807['id'],_0x578807,!0x1);}if(ot(_0x45b8af))throw _0x45b8af;return _0x2abdc5;}throw _0x45b8af;});}},this[_0x1e2b('0x3b')](this[_0x1e2b('0x10')],_0x1e2b('0x15'),(_0xc40528,{revisionsData:_0x5dc31f,requestId:_0x1abef6})=>{Math[_0x1e2b('0xa')](..._0x5dc31f[_0x1e2b('0x21')](_0x397b94=>_0x397b94[_0x1e2b('0x14')]))>this['_getLatestVersionFromServerOperations']()-0x1?this['_getLatestVersion']()[_0x1e2b('0xb')](()=>{this['_handleRevisionsUpdate'](_0x5dc31f,_0x1abef6);}):this[_0x1e2b('0x1e')](_0x5dc31f,_0x1abef6);});const {revisions:_0x4c7fb0,requestId:_0x5f5947}=await this[_0x1e2b('0x10')]['connect'](_0x515994[_0x1e2b('0x4b')]);_0x515994['addToReconnectionStack'](this),this['_lastRequestId']=_0x5f5947,await this[_0x1e2b('0x18')](_0x4c7fb0);for(const _0x3863a8 of _0x4c7fb0)this[_0x1e2b('0x2d')]['addRevisionData'](_0x3863a8);this[_0x1e2b('0x3b')](_0x1bacc4,_0x1e2b('0x2b'),(_0x4e2c8f,_0xd3cf10,_0x4c7d1b)=>{_0x4c7d1b&&(this[_0x1e2b('0x4a')]=_0x1bacc4[_0x1e2b('0x41')],_0x4e2c8f['off']());}),this[_0x1e2b('0x2d')][_0x1e2b('0x46')](_0x1e2b('0x4'))['to'](_0x515994,_0x1e2b('0x3c'),_0x505b4d=>_0x505b4d===_0x1e020a['CONNECTED']);}async[_0x1e2b('0x30')](){const _0x4e87a0=this[_0x1e2b('0xd')]['plugins'][_0x1e2b('0x38')](_0x3625f4),_0x37f400=this[_0x1e2b('0xd')]['plugins']['get'](_0x36f851),_0x30ef70=async()=>{const _0x9f8caf=this[_0x1e2b('0x2d')][_0x1e2b('0x7')],_0x113aeb=_0x9f8caf['id'],_0x30f4b8=_0x113aeb!==_0x37f400[_0x1e2b('0xe')];if(_0x30f4b8){const _0x3742ea=_0x37f400['_offset']-this[_0x1e2b('0x4a')],_0x3e8ce9=this[_0x1e2b('0x48')]();this[_0x1e2b('0x2d')]['_revisionDataBuilder']['reInit']();if(_0x9f8caf[_0x1e2b('0x14')]+_0x3742ea!==_0x3e8ce9){const _0x2a1c4d=_0x9f8caf[_0x1e2b('0x31')]+_0x3742ea,_0x27a313=this[_0x1e2b('0xd')][_0x1e2b('0x20')]['get'](_0x292587),_0x27eadb=this[_0x1e2b('0x2d')][_0x1e2b('0x25')]({'revision':_0x9f8caf,'from':_0x2a1c4d,'to':_0x3e8ce9});_0x27eadb['id']=_0x9f8caf['id'];const _0x1f2edd=_0x27eadb[_0x1e2b('0x8')]['map'](_0x31be79=>_0x27a313[_0x1e2b('0x2f')](_0x31be79));_0x9f8caf[_0x1e2b('0x2e')]({..._0x27eadb,'authors':_0x1f2edd},!0x0),this[_0x1e2b('0x2d')]['_bufferUpdate'](_0x9f8caf['id'],_0x27eadb,!0x0);}this[_0x1e2b('0x2d')][_0x1e2b('0x39')]=_0x3e8ce9,(_0x9f8caf[_0x1e2b('0x14')]===_0x9f8caf[_0x1e2b('0x31')]&&!this['_revisionTracker']['_bufferedUpdates']['has'](_0x113aeb)&&this[_0x1e2b('0x2d')][_0x1e2b('0x44')][_0x1e2b('0x27')][_0x1e2b('0x0')](_0x113aeb),this[_0x1e2b('0x2d')]['_createCurrentRevision'](_0x3e8ce9));}const {revisions:_0x63cd2e,requestId:_0x50534b}=await this[_0x1e2b('0x10')][_0x1e2b('0x30')](_0x4e87a0[_0x1e2b('0x4b')],this[_0x1e2b('0xc')]);_0x30f4b8&&_0x63cd2e['length']>0x0?_0x37f400[_0x1e2b('0x9')]():(await this[_0x1e2b('0x18')](_0x63cd2e),this[_0x1e2b('0x1e')](_0x63cd2e,_0x50534b),this['_revisionTracker'][_0x1e2b('0x11')]());};return _0x37f400['_isConnected']?_0x30ef70():new Promise((_0x3de57c,_0x2ae7b1)=>{_0x37f400[_0x1e2b('0x4e')]('change:_isConnected',()=>{_0x30ef70()[_0x1e2b('0xb')](_0x3de57c)[_0x1e2b('0x32')](_0x2ae7b1);});});}[_0x1e2b('0x1c')](){super[_0x1e2b('0x1c')]();}async['_waitForServiceReady'](){this[_0x1e2b('0x10')][_0x1e2b('0x13')]||await new Promise(_0x37bf6f=>{this[_0x1e2b('0x3b')](this[_0x1e2b('0x10')],'connected',_0xd7e099=>{_0xd7e099[_0x1e2b('0x29')](),_0x37bf6f();});});}[_0x1e2b('0x48')](){const _0x4e8ffb=this[_0x1e2b('0xd')][_0x1e2b('0x20')][_0x1e2b('0x38')](_0x36f851)[_0x1e2b('0x40')]['getOperations']()[_0x1e2b('0x33')]();for(const _0x6e612b of _0x4e8ffb)if(_0x1e2b('0x47')!==_0x6e612b[_0x1e2b('0x3')]||_0x6e612b[_0x1e2b('0x51')])return _0x6e612b[_0x1e2b('0x2c')]+0x1;}['_getLatestVersion'](){const _0x21755f=this[_0x1e2b('0xd')][_0x1e2b('0x20')][_0x1e2b('0x38')](_0x36f851);return new Promise(_0x2a4969=>{_0x21755f['_isPendingUpdate']?_0x21755f[_0x1e2b('0x4e')](_0x1e2b('0x23'),()=>{_0x2a4969(this['_getLatestVersionFromServerOperations']());}):_0x2a4969(this[_0x1e2b('0x48')]());});}[_0x1e2b('0x1e')](_0x171615,_0x2297f8){const _0x101cb9=this['_revisionTracker'][_0x1e2b('0x44')];this[_0x1e2b('0xc')]=_0x2297f8;for(const _0x2b69a2 of _0x171615){const _0x4a9a84=_0x101cb9[_0x1e2b('0xf')](_0x2b69a2['id']);if(_0x4a9a84){if((_0x2b69a2['fromVersion']||_0x2b69a2[_0x1e2b('0x14')])&&(_0x2b69a2[_0x1e2b('0x35')]=null),_0x4a9a84===this[_0x1e2b('0x2d')]['currentRevision']){const _0xd061da=Math['max'](_0x4a9a84[_0x1e2b('0x14')],_0x2b69a2[_0x1e2b('0x14')]),_0x3b64a8=Math[_0x1e2b('0xa')](_0x4a9a84['fromVersion'],_0x2b69a2[_0x1e2b('0x31')]);let _0x18526a;_0x4a9a84['toVersion']===_0x2b69a2[_0x1e2b('0x14')]&&_0x4a9a84[_0x1e2b('0x31')]===_0x2b69a2[_0x1e2b('0x31')]?(_0x18526a=!0x0,this['_preventResendingRevisionData'](_0x2b69a2)):_0x2b69a2[_0x1e2b('0x14')]===_0xd061da&&_0x2b69a2[_0x1e2b('0x31')]===_0x3b64a8?_0x18526a=!0x1:(_0x4a9a84[_0x1e2b('0x14')]===_0xd061da&&_0x4a9a84['fromVersion']===_0x3b64a8||this[_0x1e2b('0x36')]({'revision':_0x4a9a84,'from':_0x3b64a8,'to':_0xd061da}),_0x18526a=!0x0),_0x18526a&&(delete _0x2b69a2['fromVersion'],delete _0x2b69a2[_0x1e2b('0x14')],delete _0x2b69a2[_0x1e2b('0x35')],delete _0x2b69a2[_0x1e2b('0x4f')],delete _0x2b69a2[_0x1e2b('0x8')]);}this[_0x1e2b('0x2d')][_0x1e2b('0x22')](_0x2b69a2),this[_0x1e2b('0x28')](_0x2b69a2);}else this[_0x1e2b('0x2d')][_0x1e2b('0x5')](_0x2b69a2);}const _0x1c7a46=_0x101cb9[_0x1e2b('0x1a')]();_0x1c7a46[_0x1e2b('0x33')]();for(let _0x5af896=0x0;_0x5af896<_0x1c7a46[_0x1e2b('0x42')]-0x1;_0x5af896++){const _0x35fc86=_0x1c7a46[_0x5af896],_0x312fb1=_0x1c7a46[_0x5af896+0x1];if(_0x35fc86[_0x1e2b('0x31')]<_0x312fb1[_0x1e2b('0x14')]){const _0x1704d0=_0x312fb1[_0x1e2b('0x14')],_0x3819f9=Math[_0x1e2b('0xa')](_0x1704d0,_0x35fc86[_0x1e2b('0x14')]);this['_fixRevision']({'revision':_0x35fc86,'from':_0x1704d0,'to':_0x3819f9});}}}[_0x1e2b('0x36')]({revision:_0x198ca3,from:_0x583d3a,to:_0x192fee}={}){const _0x2b14d4=this[_0x1e2b('0xd')][_0x1e2b('0x20')]['get'](_0x292587),_0x4175a8=this[_0x1e2b('0x2d')][_0x1e2b('0x25')]({'revision':_0x198ca3,'from':_0x583d3a,'to':_0x192fee});_0x4175a8[_0x1e2b('0x3d')]=_0x4175a8[_0x1e2b('0x8')][_0x1e2b('0x21')](_0x863eae=>_0x2b14d4[_0x1e2b('0x2f')](_0x863eae)),_0x198ca3[_0x1e2b('0x2e')](_0x4175a8);}[_0x1e2b('0x28')](_0x3e71b9){const _0x1a6ba8={};_0x1a6ba8['id']=_0x3e71b9['id'];for(const _0xc9ecbc of Object[_0x1e2b('0x19')](_0x3e71b9))'id'!==_0xc9ecbc&&(_0x1a6ba8[_0xc9ecbc]=void 0x0);this['_revisionTracker'][_0x1e2b('0x3a')](_0x1a6ba8['id'],_0x1a6ba8,!0x0);}async[_0x1e2b('0x18')](_0x4b55ee){const _0x3dc6a6=this['editor'][_0x1e2b('0x20')][_0x1e2b('0x38')](_0x292587),{connection:_0x1fa9f3}=this['editor']['plugins'][_0x1e2b('0x38')](_0x3625f4),_0x1a1ff1=new Set();for(const _0x3f344e of _0x4b55ee){for(const _0x211244 of _0x3f344e['authorsIds'])_0x405f24(_0x211244);_0x3f344e[_0x1e2b('0x45')]&&_0x405f24(_0x3f344e[_0x1e2b('0x45')]);}if(0x0===_0x1a1ff1[_0x1e2b('0x43')])return;const _0x4000b7=await _0x1aa608['getMany'](_0x1fa9f3,Array['from'](_0x1a1ff1));for(const _0x158d83 of _0x4000b7)_0x3dc6a6['getUser'](_0x158d83['id'])||_0x3dc6a6[_0x1e2b('0x1')](_0x158d83);function _0x405f24(_0x1efa70){_0x3dc6a6[_0x1e2b('0x2f')](_0x1efa70)||_0x1a1ff1['add'](_0x1efa70);}}}function ot(_0x2aa1e4){return _0x2aa1e4['message']['startsWith'](_0x1e2b('0x34'))||_0x2aa1e4[_0x1e2b('0x37')][_0x1e2b('0x2a')](_0x1e2b('0x50'))||_0x2aa1e4['message'][_0x1e2b('0x2a')](_0x1e2b('0x1f'));}v['RevisionHistoryService']=_0x3f9f90;
|
|
23
|
+
const _0xdd31=['wrongRequestId','updateRevisions','from','then','RevisionTracker','getUser','connect','getMany','_fixRevision','state','_isPendingUpdate','add','max','buildRevisionData','reverse','_handleRevisionsUpdate','once','400','_revisionDataBuilder','requires','bind','cloud-services-internal-error:\x20Not\x20connected.','_revisions','cloud-services-internal-error:\x20Revision\x20History\x20Service\x20is\x20not\x20connected.','destroy','_getLatestVersionFromServerOperations','remove','addRevisionData','sendBufferedUpdates','message','_lastRequestId','setSource','catch','length','baseVersion','createdAt','connected','serverHistory','_revisionHistoryService','_fetchMissingUsers','currentRevision','change:_isConnected','get','_createCurrentRevision','plugins','connection','reInit','_bufferedUpdates','affectsData','_isConnected','keys','off','authorsIds','config','_oldOffset','startsWith','init','_bufferUpdate','_offset','cloud-services-internal-error:\x20Request\x20timeout.','collaboration.channelId','repository','RevisionHistoryService','setRevisionData','_startingVersion','type','fromVersion','creatorId','_update','revisionsUpdated','isBundleUploaded','_getLatestVersion','code','getRevision','toVersion','getRevisions','sessionId','addUser','diffData','listenTo','_preventResendingRevisionData','CONNECTED','cloudServices.bundleVersion','reconnect','_revisionTracker','change:_isPendingUpdate','addToReconnectionStack','map','editor'];(function(_0xb31408,_0xdd31e7){const _0x1bff59=function(_0x38fb39){while(--_0x38fb39){_0xb31408['push'](_0xb31408['shift']());}};_0x1bff59(++_0xdd31e7);}(_0xdd31,0x93));const _0x1bff=function(_0xb31408,_0xdd31e7){_0xb31408=_0xb31408-0x0;let _0x1bff59=_0xdd31[_0xb31408];return _0x1bff59;};import{Plugin as _0x53bc83}from'ckeditor5/src/core';import{version as _0x1d6751}from'ckeditor5/src/utils';import{Users as _0x4af39f}from'ckeditor5-collaboration/src/collaboration-core';import _0x4e3f94 from'../realtimecollaborativeediting/realtimecollaborationclient';import _0x79c8de from'../realtimecollaborativeediting/websocketgateway';import _0x4d335a from'../realtimecollaborativeediting/sessions';import _0x30e97a from'@ckeditor/ckeditor-cloud-services-collaboration/src/users/user';import _0x4b16f8 from'@ckeditor/ckeditor-cloud-services-collaboration/src/revision-history/revisionhistoryservice';import _0x54ae53 from'@ckeditor/ckeditor-cloud-services-collaboration/src/editor/editorservice';import{WEB_SOCKET_GATEWAY_STATES as _0x49158f}from'@ckeditor/ckeditor-cloud-services-collaboration/src/websocketgateway/websocketgateway';export default class v extends _0x53bc83{static get[_0x1bff('0x32')](){return[_0x79c8de,_0x4e3f94,'RevisionTracker',_0x4d335a,_0x4af39f];}constructor(_0xdfcc95){super(_0xdfcc95);const _0x355f2a=this[_0x1bff('0x1e')][_0x1bff('0x54')][_0x1bff('0x49')](_0x1bff('0x2'));this['_lastRequestId']=null,this[_0x1bff('0x1a')]=this['editor'][_0x1bff('0x4b')][_0x1bff('0x49')](_0x1bff('0x23')),this['_revisionHistoryService']=new v[(_0x1bff('0x4'))](_0x355f2a);}async[_0x1bff('0x57')](){const _0x3d5ec1=this[_0x1bff('0x1e')][_0x1bff('0x4b')]['get'](_0x4e3f94),_0x123398=_0x3d5ec1[_0x1bff('0x44')],_0xcbe498=this[_0x1bff('0x1e')][_0x1bff('0x4b')]['get'](_0x79c8de);this[_0x1bff('0x1a')][_0x1bff('0x3e')]({'history':_0x123398,'getLatestVersion':()=>this[_0x1bff('0xd')](),'getCurrentRevisionId':()=>_0x3d5ec1[_0x1bff('0x12')]});const _0x463655=this[_0x1bff('0x1e')][_0x1bff('0x54')]['get'](_0x1bff('0x18'))||_0x1d6751,_0x45f24d=await _0x54ae53[_0x1bff('0xc')](_0xcbe498[_0x1bff('0x4c')],_0x463655);this[_0x1bff('0x1a')]['adapter']={'getRevision':async({revisionId:_0x724928})=>(await this['_waitForServiceReady'](),await this[_0x1bff('0x45')][_0x1bff('0xf')](_0x724928)),'updateRevisions':async _0x3b857d=>{await this['_waitForServiceReady']();const _0x49cafa=this[_0x1bff('0x1a')]['currentRevision'];if(_0x45f24d&&0x1===_0x3b857d[_0x1bff('0x40')]&&_0x3b857d[0x0]['id']===_0x49cafa['id'])return _0x3b857d;for(const _0x5b396b of _0x3b857d)_0x5b396b['id']===_0x49cafa['id']&&(_0x5b396b['isEmptyCurrent']=_0x5b396b[_0x1bff('0x8')]===_0x5b396b[_0x1bff('0x10')]);return this[_0x1bff('0x45')][_0x1bff('0x20')](_0x3b857d,this[_0x1bff('0x3d')])['then'](_0xdb037f=>(this['_lastRequestId']=_0xdb037f,_0x3b857d))[_0x1bff('0x3f')](_0x20db97=>{if(S(_0x20db97)||_0x1bff('0x30')===_0x20db97[_0x1bff('0xe')]&&void 0x0!==_0x20db97['data'][_0x1bff('0x1f')]){for(const _0x4aebed of _0x3b857d){!this[_0x1bff('0x1a')]['repository']['getRevision'](_0x4aebed['id'])||this[_0x1bff('0x1a')][_0x1bff('0x58')](_0x4aebed['id'],_0x4aebed,!0x1);}if(S(_0x20db97))throw _0x20db97;return _0x3b857d;}throw _0x20db97;});}},this[_0x1bff('0x15')](this[_0x1bff('0x45')],_0x1bff('0xb'),(_0x388d9b,{revisionsData:_0x33a90b,requestId:_0x5ed094})=>{Math['max'](..._0x33a90b[_0x1bff('0x1d')](_0x1f48cd=>_0x1f48cd[_0x1bff('0x10')]))>this[_0x1bff('0x38')]()-0x1?this[_0x1bff('0xd')]()[_0x1bff('0x22')](()=>{this[_0x1bff('0x2e')](_0x33a90b,_0x5ed094);}):this[_0x1bff('0x2e')](_0x33a90b,_0x5ed094);});const {revisions:_0x168350,requestId:_0x59576b}=await this[_0x1bff('0x45')][_0x1bff('0x25')](_0xcbe498['connection']);_0xcbe498[_0x1bff('0x1c')](this),this[_0x1bff('0x3d')]=_0x59576b,await this[_0x1bff('0x46')](_0x168350);for(const _0x585c38 of _0x168350)this['_revisionTracker'][_0x1bff('0x3a')](_0x585c38);this[_0x1bff('0x15')](_0x3d5ec1,_0x1bff('0x48'),(_0x49d2f3,_0xfad735,_0x46e1bd)=>{_0x46e1bd&&(this[_0x1bff('0x55')]=_0x3d5ec1['_offset'],_0x49d2f3[_0x1bff('0x52')]());}),this['_revisionTracker'][_0x1bff('0x33')]('isEnabled')['to'](_0xcbe498,_0x1bff('0x28'),_0x17eb1a=>_0x17eb1a===_0x49158f[_0x1bff('0x17')]);}async[_0x1bff('0x19')](){const _0x41817d=this[_0x1bff('0x1e')][_0x1bff('0x4b')]['get'](_0x79c8de),_0x2a8b95=this[_0x1bff('0x1e')][_0x1bff('0x4b')][_0x1bff('0x49')](_0x4e3f94),_0x418434=async()=>{const _0x590335=this[_0x1bff('0x1a')][_0x1bff('0x47')],_0x572287=_0x590335['id'],_0x1413b7=_0x572287!==_0x2a8b95[_0x1bff('0x12')];if(_0x1413b7){const _0x2130c8=_0x2a8b95[_0x1bff('0x0')]-this['_oldOffset'],_0x32e66a=this['_getLatestVersionFromServerOperations']();this[_0x1bff('0x1a')][_0x1bff('0x31')][_0x1bff('0x4d')]();if(_0x590335['toVersion']+_0x2130c8!==_0x32e66a){const _0x2a785a=_0x590335[_0x1bff('0x8')]+_0x2130c8,_0x21f8de=this[_0x1bff('0x1e')]['plugins']['get'](_0x4af39f),_0x450e5d=this[_0x1bff('0x1a')][_0x1bff('0x2c')]({'revision':_0x590335,'from':_0x2a785a,'to':_0x32e66a});_0x450e5d['id']=_0x590335['id'];const _0x44e6a1=_0x450e5d[_0x1bff('0x53')]['map'](_0x5142f2=>_0x21f8de[_0x1bff('0x24')](_0x5142f2));_0x590335[_0x1bff('0xa')]({..._0x450e5d,'authors':_0x44e6a1},!0x0),this[_0x1bff('0x1a')][_0x1bff('0x58')](_0x590335['id'],_0x450e5d,!0x0);}this['_revisionTracker'][_0x1bff('0x6')]=_0x32e66a,(_0x590335[_0x1bff('0x10')]===_0x590335['fromVersion']&&!this[_0x1bff('0x1a')][_0x1bff('0x4e')]['has'](_0x572287)&&this['_revisionTracker'][_0x1bff('0x3')][_0x1bff('0x35')][_0x1bff('0x39')](_0x572287),this[_0x1bff('0x1a')][_0x1bff('0x4a')](_0x32e66a));}const {revisions:_0x591f3a,requestId:_0x566286}=await this['_revisionHistoryService']['reconnect'](_0x41817d[_0x1bff('0x4c')],this[_0x1bff('0x3d')]);_0x1413b7&&_0x591f3a['length']>0x0?_0x2a8b95['_handleReconnectionError']():(await this['_fetchMissingUsers'](_0x591f3a),this[_0x1bff('0x2e')](_0x591f3a,_0x566286),this['_revisionTracker'][_0x1bff('0x3b')]());};return _0x2a8b95[_0x1bff('0x50')]?_0x418434():new Promise((_0x3c5122,_0x1f6b71)=>{_0x2a8b95[_0x1bff('0x2f')](_0x1bff('0x48'),()=>{_0x418434()['then'](_0x3c5122)[_0x1bff('0x3f')](_0x1f6b71);});});}[_0x1bff('0x37')](){super[_0x1bff('0x37')]();}async['_waitForServiceReady'](){this[_0x1bff('0x45')]['isConnected']||await new Promise(_0x1a5b03=>{this[_0x1bff('0x15')](this[_0x1bff('0x45')],_0x1bff('0x43'),_0x602991=>{_0x602991[_0x1bff('0x52')](),_0x1a5b03();});});}[_0x1bff('0x38')](){const _0x5800f3=this[_0x1bff('0x1e')][_0x1bff('0x4b')][_0x1bff('0x49')](_0x4e3f94)[_0x1bff('0x44')]['getOperations']()[_0x1bff('0x2d')]();for(const _0x562975 of _0x5800f3)if('marker'!==_0x562975[_0x1bff('0x7')]||_0x562975[_0x1bff('0x4f')])return _0x562975[_0x1bff('0x41')]+0x1;}['_getLatestVersion'](){const _0x4a9bb5=this[_0x1bff('0x1e')][_0x1bff('0x4b')]['get'](_0x4e3f94);return new Promise(_0x4b5e08=>{_0x4a9bb5[_0x1bff('0x29')]?_0x4a9bb5[_0x1bff('0x2f')](_0x1bff('0x1b'),()=>{_0x4b5e08(this[_0x1bff('0x38')]());}):_0x4b5e08(this['_getLatestVersionFromServerOperations']());});}['_handleRevisionsUpdate'](_0x235508,_0x2759b9){const _0x4345f2=this[_0x1bff('0x1a')][_0x1bff('0x3')];this[_0x1bff('0x3d')]=_0x2759b9;for(const _0x22d8ad of _0x235508){const _0x178815=_0x4345f2[_0x1bff('0xf')](_0x22d8ad['id']);if(_0x178815){if((_0x22d8ad['fromVersion']||_0x22d8ad[_0x1bff('0x10')])&&(_0x22d8ad[_0x1bff('0x14')]=null),_0x178815===this[_0x1bff('0x1a')][_0x1bff('0x47')]){const _0x4e432d=Math[_0x1bff('0x2b')](_0x178815[_0x1bff('0x10')],_0x22d8ad['toVersion']),_0x2c767a=Math[_0x1bff('0x2b')](_0x178815['fromVersion'],_0x22d8ad[_0x1bff('0x8')]);let _0x42558f;_0x178815['toVersion']===_0x22d8ad[_0x1bff('0x10')]&&_0x178815[_0x1bff('0x8')]===_0x22d8ad[_0x1bff('0x8')]?(_0x42558f=!0x0,this[_0x1bff('0x16')](_0x22d8ad)):_0x22d8ad[_0x1bff('0x10')]===_0x4e432d&&_0x22d8ad[_0x1bff('0x8')]===_0x2c767a?_0x42558f=!0x1:(_0x178815[_0x1bff('0x10')]===_0x4e432d&&_0x178815[_0x1bff('0x8')]===_0x2c767a||this[_0x1bff('0x27')]({'revision':_0x178815,'from':_0x2c767a,'to':_0x4e432d}),_0x42558f=!0x0),_0x42558f&&(delete _0x22d8ad['fromVersion'],delete _0x22d8ad[_0x1bff('0x10')],delete _0x22d8ad['diffData'],delete _0x22d8ad[_0x1bff('0x42')],delete _0x22d8ad[_0x1bff('0x53')]);}this['_revisionTracker'][_0x1bff('0x5')](_0x22d8ad),this[_0x1bff('0x16')](_0x22d8ad);}else this[_0x1bff('0x1a')][_0x1bff('0x3a')](_0x22d8ad);}const _0x169948=_0x4345f2[_0x1bff('0x11')]();_0x169948['reverse']();for(let _0x4a9dc8=0x0;_0x4a9dc8<_0x169948[_0x1bff('0x40')]-0x1;_0x4a9dc8++){const _0x100073=_0x169948[_0x4a9dc8],_0x8d60cd=_0x169948[_0x4a9dc8+0x1];if(_0x100073['fromVersion']<_0x8d60cd[_0x1bff('0x10')]){const _0x455734=_0x8d60cd['toVersion'],_0x2ae888=Math['max'](_0x455734,_0x100073[_0x1bff('0x10')]);this[_0x1bff('0x27')]({'revision':_0x100073,'from':_0x455734,'to':_0x2ae888});}}}[_0x1bff('0x27')]({revision:_0x42ef6e,from:_0x1b8a39,to:_0x6b7d03}={}){const _0x3ab251=this['editor'][_0x1bff('0x4b')]['get'](_0x4af39f),_0x4b4413=this[_0x1bff('0x1a')][_0x1bff('0x2c')]({'revision':_0x42ef6e,'from':_0x1b8a39,'to':_0x6b7d03});_0x4b4413['authors']=_0x4b4413[_0x1bff('0x53')]['map'](_0x50ca8f=>_0x3ab251[_0x1bff('0x24')](_0x50ca8f)),_0x42ef6e[_0x1bff('0xa')](_0x4b4413);}[_0x1bff('0x16')](_0x6f4cdf){const _0x51d3d0={};_0x51d3d0['id']=_0x6f4cdf['id'];for(const _0x2ec4b0 of Object[_0x1bff('0x51')](_0x6f4cdf))'id'!==_0x2ec4b0&&(_0x51d3d0[_0x2ec4b0]=void 0x0);this[_0x1bff('0x1a')][_0x1bff('0x58')](_0x51d3d0['id'],_0x51d3d0,!0x0);}async[_0x1bff('0x46')](_0x5b580b){const _0x1b0c02=this['editor'][_0x1bff('0x4b')][_0x1bff('0x49')](_0x4af39f),{connection:_0x56f61f}=this['editor']['plugins'][_0x1bff('0x49')](_0x79c8de),_0x59124d=new Set();for(const _0x27deb3 of _0x5b580b){for(const _0x5a1898 of _0x27deb3[_0x1bff('0x53')])_0x92347a(_0x5a1898);_0x27deb3[_0x1bff('0x9')]&&_0x92347a(_0x27deb3[_0x1bff('0x9')]);}if(0x0===_0x59124d['size'])return;const _0x5f4335=await _0x30e97a[_0x1bff('0x26')](_0x56f61f,Array[_0x1bff('0x21')](_0x59124d));for(const _0x5b5437 of _0x5f4335)_0x1b0c02[_0x1bff('0x24')](_0x5b5437['id'])||_0x1b0c02[_0x1bff('0x13')](_0x5b5437);function _0x92347a(_0x3ed094){_0x1b0c02[_0x1bff('0x24')](_0x3ed094)||_0x59124d[_0x1bff('0x2a')](_0x3ed094);}}}function S(_0x52a968){return _0x52a968[_0x1bff('0x3c')][_0x1bff('0x56')](_0x1bff('0x36'))||_0x52a968[_0x1bff('0x3c')][_0x1bff('0x56')](_0x1bff('0x34'))||_0x52a968['message'][_0x1bff('0x56')](_0x1bff('0x1'));}v[_0x1bff('0x4')]=_0x4b16f8;
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x7d77=['RealTimeCollaborativeRevisionHistory','pluginName','RevisionHistory'];(function(_0x21d744,_0x7d772e){var _0x3d1b7d=function(_0x45c191){while(--_0x45c191){_0x21d744['push'](_0x21d744['shift']());}};_0x3d1b7d(++_0x7d772e);}(_0x7d77,0xf2));var _0x3d1b=function(_0x21d744,_0x7d772e){_0x21d744=_0x21d744-0x0;var _0x3d1b7d=_0x7d77[_0x21d744];return _0x3d1b7d;};import{Plugin as _0x34ea83}from'ckeditor5/src/core';import _0x114871 from'./realtimecollaborativerevisionhistory/cloudservicesrevisionhistoryadapter';import _0x9a93b6 from'./realtimecollaborativeediting';export default class d extends _0x34ea83{static get['requires'](){return[_0x3d1b('0x0'),_0x114871,_0x9a93b6];}static get[_0x3d1b('0x2')](){return _0x3d1b('0x1');}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4bd6=['size','connect','listenTo','type','cloud-services-internal-error:\x20Not\x20connected.','addToReconnectionStack','addUser','_fetchMissingUsersForThreads','connected','message','editor','TrackChangesEditing','data','getMany','_bufferedRequests','from','values','_saved','hasSuggestion','update','_waitForServiceReady','get','attributes','delete','_trackChangesService','addSuggestionData','connection','TrackChangesService','find','then','suggestionUpdated','set','getUser','startsWith','reconnect','plugins','off','catch','state','init','add'];(function(_0x103817,_0x4bd6a7){const _0x4b76ad=function(_0x286a7a){while(--_0x286a7a){_0x103817['push'](_0x103817['shift']());}};_0x4b76ad(++_0x4bd6a7);}(_0x4bd6,0xa8));const _0x4b76=function(_0x103817,_0x4bd6a7){_0x103817=_0x103817-0x0;let _0x4b76ad=_0x4bd6[_0x103817];return _0x4b76ad;};import{Plugin as _0x2be988}from'ckeditor5/src/core';import _0x4c729d from'@ckeditor/ckeditor-cloud-services-collaboration/src/track-changes/trackchangesservice';import _0x3471d8 from'../realtimecollaborativeediting/websocketgateway';import _0x180794 from'../realtimecollaborativecomments/cloudservicescommentsadapter';import _0x27e0d9 from'@ckeditor/ckeditor-cloud-services-collaboration/src/users/user';import{Users as _0x3dbafc}from'ckeditor5-collaboration/src/collaboration-core';export default class g extends _0x2be988{static get['requires'](){return[_0x180794,_0x4b76('0x7'),_0x3471d8];}constructor(_0x59330f){super(_0x59330f);const _0x404d97=this[_0x4b76('0x6')]['config'][_0x4b76('0x11')]('collaboration.channelId');this[_0x4b76('0xa')]=new Map(),this['_trackChangesService']=new g['TrackChangesService'](_0x404d97);}[_0x4b76('0x23')](){const _0x26ed4f=this[_0x4b76('0x6')]['plugins'][_0x4b76('0x11')](_0x3471d8),_0x4c90cd=this['editor'][_0x4b76('0x1f')][_0x4b76('0x11')]('TrackChangesEditing');return _0x4c90cd['adapter']={'getSuggestion':async _0x25a907=>{await this[_0x4b76('0x10')]();const _0x4b2d37=await this['_trackChangesService'][_0x4b76('0x11')](_0x25a907)[_0x4b76('0x21')](E);return await this[_0x4b76('0x3')]([_0x4b2d37]),_0x4b2d37;},'addSuggestion':async({id:_0x4ec204,type:_0x22005c,data:_0x938449,originalSuggestionId:_0x360817,attributes:_0x42fe14})=>{await this[_0x4b76('0x10')]();const _0x29bee3={'id':_0x4ec204,'type':_0x22005c,'data':_0x938449,'originalSuggestionId':_0x360817,'attributes':_0x42fe14},_0x1615f4=await this[_0x4b76('0x14')][_0x4b76('0x24')](_0x4ec204,_0x22005c,_0x938449,_0x360817,_0x42fe14)['catch'](_0x2fcbab=>{if(S(_0x2fcbab))return new Promise(_0x21b2d9=>{this['_bufferedRequests'][_0x4b76('0x1b')](_0x4ec204,{'resolve':_0x21b2d9,'suggestionData':_0x29bee3});});throw _0x2fcbab;});return this[_0x4b76('0xa')][_0x4b76('0x13')](_0x4ec204),_0x1615f4;},'updateSuggestion':async(_0x3dfe96,_0x1d8eb1)=>{if(await this[_0x4b76('0x10')](),'open'!==_0x1d8eb1[_0x4b76('0x22')])return this['_trackChangesService'][_0x4b76('0xf')](_0x3dfe96,_0x1d8eb1)['catch'](E);}},this[_0x4b76('0x27')](this['_trackChangesService'],_0x4b76('0x1a'),(_0x599878,_0x249600)=>{_0x4c90cd[_0x4b76('0xe')](_0x249600['id'])&&(_0x4c90cd['getSuggestion'](_0x249600['id'])[_0x4b76('0x12')]=_0x249600[_0x4b76('0x12')]);}),this[_0x4b76('0x14')][_0x4b76('0x26')](_0x26ed4f[_0x4b76('0x16')])[_0x4b76('0x19')](_0x25f7a3=>(_0x26ed4f[_0x4b76('0x1')](this),this['_fetchMissingUsersForThreads'](_0x25f7a3)[_0x4b76('0x19')](()=>{for(const _0x4f6f1c of _0x25f7a3){_0x4c90cd[_0x4b76('0x15')](_0x4f6f1c)[_0x4b76('0xd')]=!0x0;}})));}async[_0x4b76('0x1e')](){const _0x2075ae=this['editor'][_0x4b76('0x1f')][_0x4b76('0x11')](_0x4b76('0x7')),{connection:_0x54d888}=this[_0x4b76('0x6')][_0x4b76('0x1f')]['get'](_0x3471d8),_0x2b31ee=await this[_0x4b76('0x14')][_0x4b76('0x26')](_0x54d888);await this[_0x4b76('0x3')](_0x2b31ee);for(const {suggestionData:_0x5b7ddd,resolve:_0x80d4a7}of this['_bufferedRequests'][_0x4b76('0xc')]()){let _0x54d698=_0x2b31ee[_0x4b76('0x18')](_0x5b7b8a=>_0x5b7b8a['id']===_0x5b7ddd['id']);_0x54d698||(_0x54d698=await this[_0x4b76('0x14')]['add'](_0x5b7ddd['id'],_0x5b7ddd[_0x4b76('0x28')],_0x5b7ddd[_0x4b76('0x8')],_0x5b7ddd['originalSuggestionId'])),_0x80d4a7(_0x54d698);}for(const _0x54c6db of _0x2b31ee)_0x2075ae[_0x4b76('0xe')](_0x54c6db['id'])||_0x2075ae['addSuggestionData'](_0x54c6db);}async[_0x4b76('0x10')](){this[_0x4b76('0x14')]['isConnected']||await new Promise(_0x51c5d7=>{this[_0x4b76('0x27')](this['_trackChangesService'],_0x4b76('0x4'),_0x590ed3=>{_0x590ed3[_0x4b76('0x20')](),_0x51c5d7();});});}async[_0x4b76('0x3')](_0x4b8f10){const _0x260b45=this[_0x4b76('0x6')]['plugins'][_0x4b76('0x11')](_0x3dbafc),{connection:_0x3c6af2}=this['editor'][_0x4b76('0x1f')][_0x4b76('0x11')](_0x3471d8),_0x50ff8f=new Set();for(const {authorId:_0x3a9295}of _0x4b8f10)_0x260b45[_0x4b76('0x1c')](_0x3a9295)||_0x50ff8f['add'](_0x3a9295);if(0x0===_0x50ff8f[_0x4b76('0x25')])return;const _0x242e4e=await _0x27e0d9[_0x4b76('0x9')](_0x3c6af2,Array[_0x4b76('0xb')](_0x50ff8f));for(const _0x167267 of _0x242e4e)_0x260b45[_0x4b76('0x1c')](_0x167267['id'])||_0x260b45[_0x4b76('0x2')](_0x167267);}}function E(_0x3a1fe4){if(S(_0x3a1fe4))return new Promise(()=>{});throw _0x3a1fe4;}function S(_0xe0cd38){return _0xe0cd38[_0x4b76('0x5')][_0x4b76('0x1d')](_0x4b76('0x0'))||_0xe0cd38[_0x4b76('0x5')][_0x4b76('0x1d')]('cloud-services-internal-error:\x20Request\x20timeout.');}g[_0x4b76('0x17')]=_0x4c729d;
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x107e=['pluginName','TrackChanges','requires'];(function(_0x327ecb,_0x107eac){var _0x2c8fa5=function(_0x4db1bc){while(--_0x4db1bc){_0x327ecb['push'](_0x327ecb['shift']());}};_0x2c8fa5(++_0x107eac);}(_0x107e,0x138));var _0x2c8f=function(_0x327ecb,_0x107eac){_0x327ecb=_0x327ecb-0x0;var _0x2c8fa5=_0x107e[_0x327ecb];return _0x2c8fa5;};import{Plugin as _0x1f80dd}from'ckeditor5/src/core';import _0x4c5697 from'./realtimecollaborativetrackchanges/cloudservicestrackchangesadapter';import _0x48f59e from'./realtimecollaborativecomments';export default class p extends _0x1f80dd{static get[_0x2c8f('0x2')](){return[_0x48f59e,_0x4c5697,_0x2c8f('0x1')];}static get[_0x2c8f('0x0')](){return'RealTimeCollaborativeTrackChanges';}}
|