@ckeditor/ckeditor5-real-time-collaboration 40.1.0 → 40.2.0
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/CHANGELOG.md +22 -22
- package/README.md +1 -1
- package/build/real-time-collaboration.js +1 -1
- package/package.json +5 -5
- 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 _0x3da0=['getUser','stopListening','remove','unregister','connection','role','listenTo','_uniqueUsersCount','getUserSessions','Sessions','set','clear','init','plugins','_handleSessionAdd','user','has','values','getUserRole','change:state','connected','get','allConnectedUsers','delete','_registeredSessions','channelSessions','_createUser','mySessionId','register','_users','sessionId','channelConnectedUsers','add','context','sessions-register-already-registered','_handleSessionRemove','pluginName','sessions-unregister-not-exist','orderNumber','assign','state','size'];(function(_0x2ae70b,_0x3da0be){const _0x10d151=function(_0x360a5e){while(--_0x360a5e){_0x2ae70b['push'](_0x2ae70b['shift']());}};_0x10d151(++_0x3da0be);}(_0x3da0,0x118));const _0x10d1=function(_0x2ae70b,_0x3da0be){_0x2ae70b=_0x2ae70b-0x0;let _0x10d151=_0x3da0[_0x2ae70b];return _0x10d151;};import{ContextPlugin as _0x587a51}from'ckeditor5/src/core';import{Collection as _0x16234b,CKEditorError as _0x573a4c}from'ckeditor5/src/utils';import _0x37e9db from'./websocketgateway';import{Users as _0x3d53ec}from'ckeditor5-collaboration/src/collaboration-core';export default class r extends _0x587a51{static get[_0x10d1('0x8')](){return _0x10d1('0x17');}static get['requires'](){return[_0x37e9db,_0x3d53ec];}constructor(_0x2a0262){super(_0x2a0262),this[_0x10d1('0x27')]=new Map(),this[_0x10d1('0x3')]=new Map(),this['allConnectedUsers']=new _0x16234b(),this['_registeredSessions']=new Map(),this['_uniqueUsersCount']=0x0,this['_users']=this[_0x10d1('0x5')][_0x10d1('0x1b')]['get'](_0x3d53ec);}[_0x10d1('0x1a')](){const _0x501295=this[_0x10d1('0x5')][_0x10d1('0x1b')][_0x10d1('0x23')](_0x37e9db);this[_0x10d1('0x14')](_0x501295,_0x10d1('0x21'),(_0x5216d0,_0x229834,_0x4b338a)=>{if(_0x10d1('0x22')!==_0x4b338a)this['channelSessions']['forEach'](_0x33b593=>_0x33b593[_0x10d1('0x19')]()),this[_0x10d1('0x3')]['forEach'](_0xf6bdbd=>_0xf6bdbd[_0x10d1('0x19')]()),this[_0x10d1('0x24')][_0x10d1('0x19')]();else for(const [_0x1a3039,_0x4b6974]of this[_0x10d1('0x26')])for(const _0x20d7b7 of _0x4b6974)this[_0x10d1('0x1c')](_0x1a3039,_0x20d7b7);}),this[_0x10d1('0x28')](_0x501295['connection']['me'],!0x0);}[_0x10d1('0x0')](_0x1357dc,_0x4c5002){if(this[_0x10d1('0x26')]['has'](_0x1357dc))throw new _0x573a4c(_0x10d1('0x6'),null,{'channelId':_0x1357dc});this[_0x10d1('0x26')][_0x10d1('0x18')](_0x1357dc,_0x4c5002),this[_0x10d1('0x27')]['set'](_0x1357dc,new _0x16234b()),this[_0x10d1('0x3')][_0x10d1('0x18')](_0x1357dc,new _0x16234b()),this[_0x10d1('0x14')](_0x4c5002,'add',(_0x2580bb,_0x2415bc)=>this[_0x10d1('0x1c')](_0x1357dc,_0x2415bc)),this[_0x10d1('0x14')](_0x4c5002,_0x10d1('0x10'),(_0x117940,_0x2e2d80)=>this[_0x10d1('0x7')](_0x1357dc,_0x2e2d80));for(const _0x472d24 of _0x4c5002)this['_handleSessionAdd'](_0x1357dc,_0x472d24);}[_0x10d1('0x11')](_0xb39f77){if(!this[_0x10d1('0x26')][_0x10d1('0x1e')](_0xb39f77))throw new _0x573a4c(_0x10d1('0x9'),null,{'channelId':_0xb39f77});const _0x1fbc35=this['_registeredSessions'][_0x10d1('0x23')](_0xb39f77);this[_0x10d1('0xf')](_0x1fbc35);for(const _0x4b108a of _0x1fbc35)_0x10d1('0x22')===this[_0x10d1('0x5')]['plugins'][_0x10d1('0x23')](_0x37e9db)[_0x10d1('0xc')]&&this[_0x10d1('0x7')](_0xb39f77,_0x4b108a);this['_registeredSessions'][_0x10d1('0x25')](_0xb39f77),this[_0x10d1('0x27')][_0x10d1('0x25')](_0xb39f77),this[_0x10d1('0x3')][_0x10d1('0x25')](_0xb39f77);}get[_0x10d1('0x29')](){return this[_0x10d1('0x5')]['plugins'][_0x10d1('0x23')](_0x37e9db)[_0x10d1('0x12')][_0x10d1('0x2')];}['getUserBySessionId'](_0x63849a){for(const _0x562971 of this[_0x10d1('0x27')]['values']())for(const _0x2a8521 of _0x562971)if(_0x2a8521['id']===_0x63849a)return _0x2a8521[_0x10d1('0x1d')];}[_0x10d1('0x16')](_0x224c13,_0x18d31b){const _0x19ddfe=_0x18d31b?[this[_0x10d1('0x27')][_0x10d1('0x23')](_0x18d31b)]:this[_0x10d1('0x27')][_0x10d1('0x1f')](),_0x63ee4d=new Set();for(const _0x9e43cc of _0x19ddfe)for(const _0xe554c1 of _0x9e43cc)_0xe554c1[_0x10d1('0x1d')]['id']===_0x224c13['id']&&_0x63ee4d[_0x10d1('0x4')](_0xe554c1['id']);return _0x63ee4d;}[_0x10d1('0x20')](_0x95731f){for(const _0x182f6c of this[_0x10d1('0x27')][_0x10d1('0x1f')]())for(const _0x341c0a of _0x182f6c)if(_0x341c0a[_0x10d1('0x1d')]===_0x95731f)return _0x341c0a[_0x10d1('0x13')];}[_0x10d1('0x1c')](_0x8aeff0,_0x5a8d63){if(_0x10d1('0x22')!==this['context'][_0x10d1('0x1b')][_0x10d1('0x23')](_0x37e9db)[_0x10d1('0xc')])return;const _0x26725f=_0x5a8d63['user'],_0x168ace=this[_0x10d1('0x1')][_0x10d1('0xe')](_0x26725f['id'])||this['_createUser'](_0x26725f),_0x192c7a=Object[_0x10d1('0xb')]({},_0x5a8d63,{'user':_0x168ace});this['channelSessions'][_0x10d1('0x23')](_0x8aeff0)['add'](_0x192c7a);const _0x267bb1=this[_0x10d1('0x3')][_0x10d1('0x23')](_0x8aeff0);_0x267bb1[_0x10d1('0x1e')](_0x168ace['id'])||_0x267bb1[_0x10d1('0x4')](_0x168ace),this['allConnectedUsers']['has'](_0x168ace['id'])||this[_0x10d1('0x24')][_0x10d1('0x4')](_0x168ace),this['fire']('sessionAdd:'+_0x8aeff0,{'channelId':_0x8aeff0,'session':_0x192c7a});}[_0x10d1('0x7')](_0xbc086c,_0x5217e5){if(_0x10d1('0x22')!==this[_0x10d1('0x5')][_0x10d1('0x1b')]['get'](_0x37e9db)[_0x10d1('0xc')])return;const _0x2461e2=this[_0x10d1('0x3')][_0x10d1('0x23')](_0xbc086c),_0x153a66=_0x5217e5[_0x10d1('0x1d')];_0x153a66['id']&&(this[_0x10d1('0x27')][_0x10d1('0x23')](_0xbc086c)[_0x10d1('0x10')](_0x5217e5['id']),_0x2461e2[_0x10d1('0x1e')](_0x153a66['id'])&&!this[_0x10d1('0x16')](_0x153a66,_0xbc086c)[_0x10d1('0xd')]&&_0x2461e2['remove'](_0x153a66['id']),this['allConnectedUsers'][_0x10d1('0x23')](_0x153a66['id'])&&!this[_0x10d1('0x16')](_0x153a66)['size']&&this[_0x10d1('0x24')][_0x10d1('0x10')](_0x153a66['id']));}[_0x10d1('0x28')](_0x5eab35,_0x244b9f){const _0x5c41c0=this[_0x10d1('0x1')]['addUser'](_0x5eab35);return _0x244b9f&&this['_users']['defineMe'](_0x5eab35['id']),_0x5c41c0[_0x10d1('0xa')]=this[_0x10d1('0x15')]++,_0x5c41c0;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x33fe=['hasContent','getRange','plugins','createUIElement','user:range:','startsWith','$graveyard','for','deletionPosition','createUserMarkerOperations','render','isCollapsed','requires','commands','ck-user__selection','editing','innerHTML','selection','view','markerToElement','removeMarker','root','pluginName','delete','type','element','data-session-id','color','getSelectionClass','nodeAfter','get','editingDowncast','document','ck-user__marker\x20','getMarkerClass','getNearestSelectionRange','user:','getCustomProperty','has','markerRange','user:range','split','markerName','UserMarkers','createRange','isObject','getFirstRange','editor','isInline','setCustomProperty','batch','start','$text','addMarker','user:position:','newRange','markers','applyOperation','end','model','change:range','afterInit','enqueueChange','updateMarker','highest','conversion','getUserBySessionId','user:position','name','checkChild','_createdBatches','schema','tableCell','oldRange','marker','getAttribute','markerToHighlight','rootName','detach','mySessionId','span'];(function(_0x2c8377,_0x33fefb){const _0x940466=function(_0x36c1cb){while(--_0x36c1cb){_0x2c8377['push'](_0x2c8377['shift']());}};_0x940466(++_0x33fefb);}(_0x33fe,0x11f));const _0x9404=function(_0x2c8377,_0x33fefb){_0x2c8377=_0x2c8377-0x0;let _0x940466=_0x33fe[_0x2c8377];return _0x940466;};import{Plugin as _0x310eac}from'ckeditor5/src/core';import _0x460917 from'./sessions';import{LiveRange as _0x5d8b6a}from'ckeditor5/src/engine';import'../../theme/usermarkers.css';export default class j extends _0x310eac{static get[_0x9404('0x31')](){return[_0x460917];}static get[_0x9404('0x3b')](){return _0x9404('0x50');}['init'](){const _0x320326=this['editor'],_0xd92ec7=_0x320326[_0x9404('0x27')][_0x9404('0x43')](_0x460917);_0x320326['conversion'][_0x9404('0x2c')](_0x9404('0x44'))[_0x9404('0x38')]({'model':_0x9404('0x17'),'view':(_0x5cdc80,{writer:_0x365df8})=>function(_0x428652,_0xf34b84,_0x1a6b54,_0x321cd8){const _0x1d63ae=_0x428652[_0x9404('0x4f')]['split'](':')[0x2],_0x29971f=_0x1a6b54[_0x9404('0x16')](_0x1d63ae);if(!_0x29971f||_0x1d63ae===_0x1a6b54[_0x9404('0x23')])return;if(!_0x321cd8[_0x9404('0xf')][_0x9404('0x1b')][_0x9404('0x19')](_0x428652[_0x9404('0x4c')][_0x9404('0x7')],_0x9404('0x8')))return;const _0x331ac1={'class':_0x9404('0x46')+_0x29971f[_0x9404('0x40')][_0x9404('0x47')](),'data-name':_0x29971f[_0x9404('0x18')],'data-session-id':_0x1d63ae},_0x28b065=_0x321cd8['model'][_0x9404('0xc')]['get'](_0x428652[_0x9404('0x4f')]),_0x23684f=_0x28b065['getStart'](),_0x1609fb=_0x23684f[_0x9404('0x42')],_0x379590=_0x321cd8[_0x9404('0xf')][_0x9404('0x1b')];if(_0x1609fb&&_0x379590[_0x9404('0x1')](_0x1609fb)&&_0x379590[_0x9404('0x4')](_0x1609fb)&&!_0x321cd8[_0x9404('0xf')][_0x9404('0xc')][_0x9404('0x43')]('user:range:'+_0x1d63ae)['getRange']()[_0x9404('0x30')])return;const _0x2a389e=_0x23684f['parent'];return _0x321cd8[_0x9404('0xf')][_0x9404('0x1b')]['isLimit'](_0x2a389e)&&!_0x321cd8[_0x9404('0xf')][_0x9404('0x25')](_0x2a389e)&&(_0x331ac1['contenteditable']=!0x1),function(_0x432e1d,_0x1e1300){const _0xb95bc8=_0x432e1d[_0x9404('0x28')](_0x9404('0x24'),_0x1e1300);return _0x432e1d[_0x9404('0x5')]('userPositionMarker',!0x0,_0xb95bc8),_0xb95bc8[_0x9404('0x2f')]=function(_0x50444b){const _0x4a980b=this['toDomElement'](_0x50444b);return _0x4a980b[_0x9404('0x35')]='<span\x20class=\x22ck-user__marker-line\x22\x20contenteditable=\x22false\x22><span\x20class=\x22ck-user__marker-dot\x22></span></span>',_0x4a980b;},_0xb95bc8['isSimilar']=function(_0x1ee149){return!(!this[_0x9404('0x4a')]('userPositionMarker')||!_0x1ee149['getCustomProperty']('userPositionMarker')||this[_0x9404('0x1f')](_0x9404('0x3f'))!=_0x1ee149[_0x9404('0x1f')](_0x9404('0x3f')));},_0xb95bc8;}(_0xf34b84,_0x331ac1);}(_0x5cdc80,_0x365df8,_0xd92ec7,_0x320326)}),_0x320326[_0x9404('0x15')][_0x9404('0x2c')](_0x9404('0x44'))[_0x9404('0x20')]({'model':_0x9404('0x4d'),'view':_0x51dc76=>function(_0x361be8,_0x131748){const _0x4cca5c=_0x361be8[_0x9404('0x4f')]['split'](':')[0x2];if(_0x4cca5c===_0x131748[_0x9404('0x23')])return null;const _0x5ca406=_0x131748['getUserBySessionId'](_0x4cca5c);if(!_0x5ca406)return{'id':_0x4cca5c,'classes':[]};return{'id':_0x4cca5c,'classes':[_0x9404('0x33'),_0x5ca406['color'][_0x9404('0x41')]()],'attributes':{'data-session-id':_0x4cca5c},'priority':0x7d0+_0x5ca406['orderNumber']};}(_0x51dc76,_0xd92ec7)}),function(_0x5c1e97){const _0x5a5e6a=_0x5c1e97[_0x9404('0xf')],_0x1fc742=new Map(),_0x21c842=_0x5c1e97[_0x9404('0x27')][_0x9404('0x43')](_0x460917);_0x5a5e6a[_0x9404('0xc')]['on']('update:user:range',(_0x47996f,_0x3c1446,_0x5333bd,_0x402210)=>{if(!_0x402210&&_0x1fc742[_0x9404('0x43')](_0x3c1446[_0x9404('0x18')]))return _0x1fc742[_0x9404('0x43')](_0x3c1446['name'])[_0x9404('0x22')](),void _0x1fc742[_0x9404('0x3c')](_0x3c1446['name']);const _0x1e5dba=_0x3c1446['name']['split'](':')[0x2];if(_0x1e5dba===_0x21c842['mySessionId'])return;const _0x115b25='user:position:'+_0x1e5dba;_0x5a5e6a['markers'][_0x9404('0x4b')](_0x115b25)&&_0x5c1e97['editing']['reconvertMarker'](_0x115b25),_0x3c1446['on'](_0x9404('0x10'),(_0x3043ed,_0x2c028c,_0x136da4)=>{if('$graveyard'!=_0x2c028c[_0x9404('0x3a')][_0x9404('0x21')]&&'$graveyard'==_0x3c1446[_0x9404('0x26')]()['root'][_0x9404('0x21')]&&!_0x1fc742[_0x9404('0x4b')](_0x3c1446[_0x9404('0x18')])){const _0x50a689=_0x5a5e6a[_0x9404('0x1b')]['getNearestSelectionRange'](_0x136da4[_0x9404('0x2d')]);if(_0x50a689){const _0x1fc71b=_0x5d8b6a['fromRange'](_0x50a689);_0x1fc742['set'](_0x3c1446[_0x9404('0x18')],_0x1fc71b),_0x1fc71b['on'](_0x9404('0x10'),(_0x992bae,_0x26b512,_0x454547)=>{if(_0x9404('0x2b')==_0x1fc71b['root']['rootName']){const _0x186e05=_0x5a5e6a[_0x9404('0x1b')][_0x9404('0x48')](_0x454547[_0x9404('0x2d')]);_0x186e05?(_0x1fc71b[_0x9404('0x7')]=_0x186e05[_0x9404('0x7')],_0x1fc71b[_0x9404('0xe')]=_0x186e05[_0x9404('0xe')]):(_0x1fc742['delete'](_0x3c1446[_0x9404('0x18')]),_0x1fc71b[_0x9404('0x22')]());}});}}});}),_0x5a5e6a[_0x9404('0x45')]['on']('change',()=>{_0x1fc742['size']>0x0&&_0x5a5e6a[_0x9404('0x12')]({'isUndoable':!0x1},_0x379e27=>{for(const [_0x4f10a8,_0x562df9]of _0x1fc742)_0x9404('0x2b')==_0x5a5e6a[_0x9404('0xc')][_0x9404('0x43')](_0x4f10a8)['getRange']()['root'][_0x9404('0x21')]&&(Y(_0x4f10a8[_0x9404('0x4e')](':')[0x2],_0x562df9['toRange'](),_0x5a5e6a,_0x379e27),_0x562df9[_0x9404('0x22')]());_0x1fc742['clear']();});});}(_0x320326);}[_0x9404('0x11')](){const _0x22884c=this[_0x9404('0x3')],_0x5cfdd4=_0x22884c[_0x9404('0x32')][_0x9404('0x43')]('undo');_0x5cfdd4&&_0x22884c[_0x9404('0xf')]['on'](_0x9404('0xd'),(_0x3e7315,_0x1be273)=>{const _0x38b45b=_0x1be273[0x0];if(_0x9404('0x1e')!=_0x38b45b[_0x9404('0x3d')]||!_0x38b45b[_0x9404('0x18')][_0x9404('0x2a')](_0x9404('0x49')))return;const _0x2466f8=_0x38b45b[_0x9404('0x6')];_0x5cfdd4[_0x9404('0x1a')]['has'](_0x2466f8)&&(_0x38b45b[_0x9404('0xb')]=_0x38b45b[_0x9404('0x1d')]?_0x22884c[_0x9404('0xf')][_0x9404('0x0')](_0x38b45b[_0x9404('0x1d')][_0x9404('0x7')],_0x38b45b['oldRange'][_0x9404('0xe')]):null);},{'priority':_0x9404('0x14')});}[_0x9404('0x2e')](){const _0x45b74a=this[_0x9404('0x3')],_0x5cc659=_0x45b74a['model'][_0x9404('0x45')],_0x5d9873=_0x45b74a[_0x9404('0x27')][_0x9404('0x43')](_0x460917);_0x45b74a['model'][_0x9404('0x12')]({'isUndoable':!0x1},_0x523b9b=>{const _0x3e2ccd=_0x9404('0x29')+_0x5d9873[_0x9404('0x23')],_0x5a5c99='user:position:'+_0x5d9873[_0x9404('0x23')],_0x3d2028=_0x45b74a[_0x9404('0xf')][_0x9404('0xc')][_0x9404('0x4b')](_0x3e2ccd);_0x45b74a[_0x9404('0x34')][_0x9404('0x37')]['hasDomSelection']?Y(_0x5d9873['mySessionId'],_0x5cc659[_0x9404('0x36')][_0x9404('0x2')](),_0x45b74a[_0x9404('0xf')],_0x523b9b):_0x3d2028&&(_0x523b9b[_0x9404('0x39')](_0x3e2ccd),_0x523b9b[_0x9404('0x39')](_0x5a5c99));});}}function Y(_0x463d87,_0x617a0c,_0x3b4fcf,_0x54837d){const _0x3bfbff=_0x9404('0x29')+_0x463d87,_0x55b238=_0x9404('0xa')+_0x463d87,_0x1fcc28=_0x617a0c['getContainedElement']();let _0x25fe3c=_0x617a0c[_0x9404('0x7')];_0x1fcc28&&_0x1fcc28['is'](_0x9404('0x3e'),_0x9404('0x1c'))&&(_0x25fe3c=function(_0x229bd8,_0x595955){for(const _0x596e72 of _0x229bd8['getPositions']())if(_0x595955['schema'][_0x9404('0x19')](_0x596e72,_0x9404('0x8')))return _0x596e72;}(_0x617a0c,_0x3b4fcf),_0x617a0c=_0x54837d[_0x9404('0x0')](_0x25fe3c));const _0x4921c0=_0x54837d[_0x9404('0x0')](_0x25fe3c);_0x3b4fcf[_0x9404('0xc')]['has'](_0x3bfbff)?(_0x54837d['updateMarker'](_0x3bfbff,{'range':_0x617a0c}),_0x54837d[_0x9404('0x13')](_0x55b238,{'range':_0x4921c0})):(_0x54837d[_0x9404('0x9')](_0x3bfbff,{'range':_0x617a0c,'usingOperation':!0x0}),_0x54837d[_0x9404('0x9')](_0x55b238,{'range':_0x4921c0,'usingOperation':!0x0}));}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xf91b=['connect','init','CONNECTING','cloudservices-reconnection-error','connection','catch','_shouldPluginsReconnect','pluginName','define','websocketgateway-plugin-already-registered','has','initialReconnectionInterval','online','addToReconnectionStack','isInReconnectionStack','listenTo','WebSocketGateway','plugins','cloudServices.connectionTimeout','code','_domEmitter','DISCONNECTED','connected','config','error','function','Connected\x20users\x20limit\x20exceeded','token','webSocketUrl','create','context','bind','add','get','constructor','_reconnect','_reconnectionStack','cloudservices-init','all','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.','change:me','delete','then','CONNECTED','_isBrowserOffline','real-time-collaboration','state','destroy','limitExceeded','websocketgateway-missing-token','requires','CloudServices','set','disconnect','stopListening','cloudServices.requestTimeout','websocketgateway-missing-websocket-url'];(function(_0x201709,_0xf91b56){const _0x6f3060=function(_0x37975f){while(--_0x37975f){_0x201709['push'](_0x201709['shift']());}};_0x6f3060(++_0xf91b56);}(_0xf91b,0xea));const _0x6f30=function(_0x201709,_0xf91b56){_0x201709=_0x201709-0x0;let _0x6f3060=_0xf91b[_0x201709];return _0x6f3060;};import{ContextPlugin as _0x5d428c}from'ckeditor5/src/core';import{DomEmitterMixin as _0x4238d6,CKEditorError as _0x22999d}from'ckeditor5/src/utils';import{WebSocketGateway as _0x2ff7e4,WEB_SOCKET_GATEWAY_STATES as _0x3ccac7}from'@ckeditor/ckeditor-cloud-services-collaboration/src/services';import{Notification as _0x5d3241}from'ckeditor5/src/ui';export default class c extends _0x5d428c{static get[_0x6f30('0x2c')](){return[_0x6f30('0x2d'),_0x5d3241];}static get[_0x6f30('0x1')](){return'WebSocketGateway';}constructor(_0x4c01ab){super(_0x4c01ab),this['set'](_0x6f30('0x28'),_0x3ccac7[_0x6f30('0x25')]),this[_0x6f30('0x2e')](_0x6f30('0x26'),!0x1),this[_0x6f30('0x1e')]=new Set(),this[_0x6f30('0x0')]=!0x1,this[_0x6f30('0xe')]=Object[_0x6f30('0x17')](_0x4238d6);}[_0x6f30('0x34')](){const _0x4a00b2=this[_0x6f30('0x18')],_0x19b5c5=_0x4a00b2[_0x6f30('0xb')]['get']('CloudServices'),_0x558a89=_0x4a00b2['plugins'][_0x6f30('0x1b')](_0x5d3241);if(!_0x19b5c5[_0x6f30('0x15')])throw new _0x22999d(_0x6f30('0x2b'),this);if(!_0x19b5c5[_0x6f30('0x16')])throw new _0x22999d(_0x6f30('0x32'),this);return this['_domEmitter'][_0x6f30('0x9')](window,'offline',()=>this[_0x6f30('0x26')]=!0x0),this[_0x6f30('0xe')][_0x6f30('0x9')](window,_0x6f30('0x6'),()=>this[_0x6f30('0x26')]=!0x1),this[_0x6f30('0x18')][_0x6f30('0x11')][_0x6f30('0x2')](_0x6f30('0xc'),0xa),this['context'][_0x6f30('0x11')][_0x6f30('0x2')](_0x6f30('0x31'),0x14),c[_0x6f30('0xa')][_0x6f30('0x33')](_0x19b5c5['token'],_0x19b5c5[_0x6f30('0x16')],{'timeout':0x3e8*this[_0x6f30('0x18')][_0x6f30('0x11')][_0x6f30('0x1b')](_0x6f30('0xc')),'requestTimeout':0x3e8*this['context'][_0x6f30('0x11')][_0x6f30('0x1b')](_0x6f30('0x31'))})[_0x6f30('0x24')](_0x3d582a=>{if(this[_0x6f30('0x37')]=_0x3d582a,this[_0x6f30('0x19')](_0x6f30('0x28'))['to'](_0x3d582a,_0x6f30('0x28'),this,_0x6f30('0x26'),(_0x4e52c5,_0x2bacf4)=>(_0x6f30('0x10')!==_0x4e52c5&&(this[_0x6f30('0x0')]=!0x0),_0x2bacf4||_0x4e52c5!==_0x3ccac7['CONNECTED']?_0x3ccac7[_0x6f30('0xf')]:this[_0x6f30('0x28')]==_0x3ccac7['DISCONNECTED']&&this[_0x6f30('0x0')]?(this[_0x6f30('0x0')]=!0x1,this[_0x6f30('0x1d')](),_0x3ccac7[_0x6f30('0x35')]):_0x3ccac7[_0x6f30('0x25')])),this[_0x6f30('0x37')]['on'](_0x6f30('0x12'),(_0x147224,_0x9c3732)=>{if(_0x6f30('0x2a')!==_0x9c3732[_0x6f30('0xd')])throw console['error'](_0x9c3732),new _0x22999d('cloudservices-init',null,{'originalError':_0x9c3732});_0x558a89['showWarning'](_0x6f30('0x21'),{'title':_0x6f30('0x14'),'namespace':_0x6f30('0x27')});}),!_0x3d582a['me'])return new Promise(_0x59a10d=>_0x3d582a['on'](_0x6f30('0x22'),_0x59a10d));})[_0x6f30('0x38')](_0x16de04=>{throw console[_0x6f30('0x12')](_0x16de04),new _0x22999d(_0x6f30('0x1f'),null,{'originalError':_0x16de04});});}[_0x6f30('0x7')](_0x4c25a6){if(_0x6f30('0x13')!=typeof _0x4c25a6['reconnect'])throw new _0x22999d('websocketgateway-invalid-plugin-interface',this);if(this[_0x6f30('0x8')](_0x4c25a6))throw new _0x22999d(_0x6f30('0x3'),this,{'name':_0x4c25a6[_0x6f30('0x1c')][_0x6f30('0x1')]});this[_0x6f30('0x1e')][_0x6f30('0x1a')](_0x4c25a6);}['removeFromReconnectionStack'](_0x4cd29a){this['_reconnectionStack'][_0x6f30('0x23')](_0x4cd29a);}['isInReconnectionStack'](_0x1681f3){return this[_0x6f30('0x1e')][_0x6f30('0x4')](_0x1681f3);}[_0x6f30('0x1d')](){return this[_0x6f30('0x37')]['reconnect']()[_0x6f30('0x24')](()=>Promise[_0x6f30('0x20')](Array['from'](this[_0x6f30('0x1e')],_0x4d91fc=>_0x4d91fc['reconnect']())))[_0x6f30('0x24')](()=>this['state']=_0x3ccac7[_0x6f30('0x25')])[_0x6f30('0x38')](_0x7bc32d=>{throw console[_0x6f30('0x12')](_0x7bc32d),new _0x22999d(_0x6f30('0x36'),this[_0x6f30('0x18')]);});}['destroy'](){this[_0x6f30('0x37')]&&this['connection'][_0x6f30('0x2f')](),this[_0x6f30('0x28')]=_0x3ccac7['DISCONNECTED'],this[_0x6f30('0xe')][_0x6f30('0x30')](),super[_0x6f30('0x29')]();}}c['WebSocketGateway']=_0x2ff7e4,c[_0x6f30('0x5')]=0x3e8;
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x15c4=['pluginName','RealTimeCollaborativeEditing','requires'];(function(_0x3828e7,_0x15c4e2){var _0x21a2bb=function(_0x1d1b9c){while(--_0x1d1b9c){_0x3828e7['push'](_0x3828e7['shift']());}};_0x21a2bb(++_0x15c4e2);}(_0x15c4,0x150));var _0x21a2=function(_0x3828e7,_0x15c4e2){_0x3828e7=_0x3828e7-0x0;var _0x21a2bb=_0x15c4[_0x3828e7];return _0x21a2bb;};import{Plugin as _0x552bd2}from'ckeditor5/src/core';import _0x4d7d29 from'./realtimecollaborativeediting/realtimecollaborationclient';export default class n extends _0x552bd2{static get[_0x21a2('0x2')](){return[_0x4d7d29];}static get[_0x21a2('0x0')](){return _0x21a2('0x1');}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x27e8=['catch','CONNECTED','sendBufferedUpdates','getMany','_isPendingUpdate','addRevisionData','_update','affectsData','toVersion','serverHistory','then','buildRevisionData','_offset','change:_isConnected','map','cloud-services-internal-error:\x20Revision\x20History\x20Service\x20is\x20not\x20connected.','reconnect','wrongRequestId','connected','_lastRequestId','adapter','off','_getLatestVersionFromServerOperations','cloudServices.bundleVersion','_isConnected','destroy','_getLatestVersion','remove','_revisionHistoryService','max','_startingVersion','baseVersion','_preventResendingRevisionData','_fetchMissingUsers','_fixRevision','getOperations','currentRevision','_revisionTracker','repository','marker','_waitForServiceReady','connection','state','isEmptyCurrent','_oldOffset','keys','authorsIds','isEnabled','_revisionDataBuilder','reverse','message','startsWith','size','type','isBundleUploaded','length','get','RevisionTracker','cloud-services-internal-error:\x20Request\x20timeout.','getRevision','setRevisionData','editor','config','RevisionHistoryService','reInit','_bufferUpdate','getUser','updateRevisions','diffData','getRevisions','_handleReconnectionError','400','sessionId','listenTo','change:_isPendingUpdate','_createCurrentRevision','data','plugins','connect','addUser','fromVersion','createdAt','_handleRevisionsUpdate','requires','creatorId'];(function(_0x17bb84,_0x27e839){const _0x13c542=function(_0x4d11dc){while(--_0x4d11dc){_0x17bb84['push'](_0x17bb84['shift']());}};_0x13c542(++_0x27e839);}(_0x27e8,0xc7));const _0x13c5=function(_0x17bb84,_0x27e839){_0x17bb84=_0x17bb84-0x0;let _0x13c542=_0x27e8[_0x17bb84];return _0x13c542;};import{Plugin as _0x2e4b5f}from'ckeditor5/src/core';import{version as _0x36aec3}from'ckeditor5/src/utils';import{Users as _0x4e38ea}from'ckeditor5-collaboration/src/collaboration-core';import _0x269218 from'../realtimecollaborativeediting/realtimecollaborationclient';import _0x106b75 from'../realtimecollaborativeediting/websocketgateway';import _0x412a7b from'../realtimecollaborativeediting/sessions';import{User as _0xfe55b}from'@ckeditor/ckeditor-cloud-services-collaboration';import{RevisionHistoryService as _0x42185a,EditorService as _0x202242,WEB_SOCKET_GATEWAY_STATES as _0x388481}from'@ckeditor/ckeditor-cloud-services-collaboration/src/services';export default class v extends _0x2e4b5f{static get[_0x13c5('0x36')](){return[_0x106b75,_0x269218,_0x13c5('0x1c'),_0x412a7b,_0x4e38ea];}constructor(_0x5a31a8){super(_0x5a31a8);const _0x36e71a=this[_0x13c5('0x20')]['config'][_0x13c5('0x1b')]('collaboration.channelId');this['_lastRequestId']=null,this['_revisionTracker']=this[_0x13c5('0x20')][_0x13c5('0x30')]['get']('RevisionTracker'),this[_0x13c5('0x54')]=new v[(_0x13c5('0x22'))](_0x36e71a);}async['init'](){const _0x57e207=this[_0x13c5('0x20')][_0x13c5('0x30')][_0x13c5('0x1b')](_0x269218),_0x36fec2=_0x57e207[_0x13c5('0x41')],_0xcfa178=this['editor'][_0x13c5('0x30')][_0x13c5('0x1b')](_0x106b75);this[_0x13c5('0x8')]['setSource']({'history':_0x36fec2,'getLatestVersion':()=>this[_0x13c5('0x52')](),'getCurrentRevisionId':()=>_0x57e207[_0x13c5('0x2b')]});const _0x136b0b=this[_0x13c5('0x20')][_0x13c5('0x21')]['get'](_0x13c5('0x4f'))||_0x36aec3,_0x27e41b=await _0x202242[_0x13c5('0x19')](_0xcfa178[_0x13c5('0xc')],_0x136b0b);this[_0x13c5('0x8')][_0x13c5('0x4c')]={'getRevision':async({revisionId:_0x3bf346})=>(await this[_0x13c5('0xb')](),await this[_0x13c5('0x54')][_0x13c5('0x1e')](_0x3bf346)),'updateRevisions':async _0x284375=>{await this[_0x13c5('0xb')]();const _0x7bb5dc=this[_0x13c5('0x8')][_0x13c5('0x7')];if(_0x27e41b&&0x1===_0x284375[_0x13c5('0x1a')]&&_0x284375[0x0]['id']===_0x7bb5dc['id'])return _0x284375;for(const _0x115744 of _0x284375)_0x115744['id']===_0x7bb5dc['id']&&(_0x115744[_0x13c5('0xe')]=_0x115744[_0x13c5('0x33')]===_0x115744['toVersion']);return this[_0x13c5('0x54')][_0x13c5('0x26')](_0x284375,this[_0x13c5('0x4b')])[_0x13c5('0x42')](_0x12e8b5=>(this[_0x13c5('0x4b')]=_0x12e8b5,_0x284375))[_0x13c5('0x38')](_0x35401f=>{if(st(_0x35401f)||_0x13c5('0x2a')===_0x35401f['code']&&void 0x0!==_0x35401f[_0x13c5('0x2f')][_0x13c5('0x49')]){for(const _0x240753 of _0x284375){!this[_0x13c5('0x8')][_0x13c5('0x9')][_0x13c5('0x1e')](_0x240753['id'])||this[_0x13c5('0x8')][_0x13c5('0x24')](_0x240753['id'],_0x240753,!0x1);}if(st(_0x35401f))throw _0x35401f;return _0x284375;}throw _0x35401f;});}},this[_0x13c5('0x2c')](this[_0x13c5('0x54')],'revisionsUpdated',(_0x496dec,{revisionsData:_0x10521e,requestId:_0x3a3175})=>{Math[_0x13c5('0x0')](..._0x10521e[_0x13c5('0x46')](_0x4be731=>_0x4be731['toVersion']))>this[_0x13c5('0x4e')]()-0x1?this['_getLatestVersion']()[_0x13c5('0x42')](()=>{this[_0x13c5('0x35')](_0x10521e,_0x3a3175);}):this[_0x13c5('0x35')](_0x10521e,_0x3a3175);});const {revisions:_0xf51c49,requestId:_0x349eeb}=await this[_0x13c5('0x54')][_0x13c5('0x31')](_0xcfa178[_0x13c5('0xc')]);_0xcfa178['addToReconnectionStack'](this),this[_0x13c5('0x4b')]=_0x349eeb,await this[_0x13c5('0x4')](_0xf51c49);for(const _0x181ef0 of _0xf51c49)this[_0x13c5('0x8')][_0x13c5('0x3d')](_0x181ef0);this['listenTo'](_0x57e207,'change:_isConnected',(_0x564836,_0x5a75d9,_0x3fa722)=>{_0x3fa722&&(this[_0x13c5('0xf')]=_0x57e207['_offset'],_0x564836[_0x13c5('0x4d')]());}),this[_0x13c5('0x8')]['bind'](_0x13c5('0x12'))['to'](_0xcfa178,_0x13c5('0xd'),_0x52fe78=>_0x52fe78===_0x388481[_0x13c5('0x39')]);}async[_0x13c5('0x48')](){const _0x17d3db=this[_0x13c5('0x20')]['plugins']['get'](_0x106b75),_0xe67870=this['editor'][_0x13c5('0x30')]['get'](_0x269218),_0x79742a=async()=>{const _0x259529=this[_0x13c5('0x8')][_0x13c5('0x7')],_0x39bb94=_0x259529['id'],_0x2d3ef8=_0x39bb94!==_0xe67870[_0x13c5('0x2b')];if(_0x2d3ef8){const _0x4a8071=_0xe67870[_0x13c5('0x44')]-this[_0x13c5('0xf')],_0x58ac9a=this[_0x13c5('0x4e')]();this[_0x13c5('0x8')][_0x13c5('0x13')][_0x13c5('0x23')]();if(_0x259529[_0x13c5('0x40')]+_0x4a8071!==_0x58ac9a){const _0x5ea10b=_0x259529[_0x13c5('0x33')]+_0x4a8071,_0x40e772=this['editor'][_0x13c5('0x30')]['get'](_0x4e38ea),_0x1953dc=this[_0x13c5('0x8')][_0x13c5('0x43')]({'revision':_0x259529,'from':_0x5ea10b,'to':_0x58ac9a});_0x1953dc['id']=_0x259529['id'];const _0x3fe0f7=_0x1953dc[_0x13c5('0x11')][_0x13c5('0x46')](_0x2c0446=>_0x40e772[_0x13c5('0x25')](_0x2c0446));_0x259529[_0x13c5('0x3e')]({..._0x1953dc,'authors':_0x3fe0f7},!0x0),this['_revisionTracker'][_0x13c5('0x24')](_0x259529['id'],_0x1953dc,!0x0);}this[_0x13c5('0x8')][_0x13c5('0x1')]=_0x58ac9a,(_0x259529[_0x13c5('0x40')]===_0x259529[_0x13c5('0x33')]&&!this[_0x13c5('0x8')]['_bufferedUpdates']['has'](_0x39bb94)&&this[_0x13c5('0x8')][_0x13c5('0x9')]['_revisions'][_0x13c5('0x53')](_0x39bb94),this[_0x13c5('0x8')][_0x13c5('0x2e')](_0x58ac9a));}const {revisions:_0x2ec669,requestId:_0x23ba20}=await this[_0x13c5('0x54')][_0x13c5('0x48')](_0x17d3db[_0x13c5('0xc')],this[_0x13c5('0x4b')]);_0x2d3ef8&&_0x2ec669['length']>0x0?_0xe67870[_0x13c5('0x29')]():(await this[_0x13c5('0x4')](_0x2ec669),this[_0x13c5('0x35')](_0x2ec669,_0x23ba20),this[_0x13c5('0x8')][_0x13c5('0x3a')]());};return _0xe67870[_0x13c5('0x50')]?_0x79742a():new Promise((_0x5a08eb,_0xdc812f)=>{_0xe67870['once'](_0x13c5('0x45'),()=>{_0x79742a()[_0x13c5('0x42')](_0x5a08eb)[_0x13c5('0x38')](_0xdc812f);});});}[_0x13c5('0x51')](){super[_0x13c5('0x51')]();}async['_waitForServiceReady'](){this[_0x13c5('0x54')]['isConnected']||await new Promise(_0x10af2a=>{this['listenTo'](this['_revisionHistoryService'],_0x13c5('0x4a'),_0x13cedf=>{_0x13cedf[_0x13c5('0x4d')](),_0x10af2a();});});}[_0x13c5('0x4e')](){const _0x238df9=this[_0x13c5('0x20')]['plugins']['get'](_0x269218)[_0x13c5('0x41')][_0x13c5('0x6')]()[_0x13c5('0x14')]();for(const _0x18e184 of _0x238df9)if(_0x13c5('0xa')!==_0x18e184[_0x13c5('0x18')]||_0x18e184[_0x13c5('0x3f')])return _0x18e184[_0x13c5('0x2')]+0x1;}['_getLatestVersion'](){const _0x5e4a9d=this['editor'][_0x13c5('0x30')]['get'](_0x269218);return new Promise(_0x83ba76=>{_0x5e4a9d[_0x13c5('0x3c')]?_0x5e4a9d['once'](_0x13c5('0x2d'),()=>{_0x83ba76(this[_0x13c5('0x4e')]());}):_0x83ba76(this['_getLatestVersionFromServerOperations']());});}[_0x13c5('0x35')](_0x1d64e2,_0x45ffe8){const _0x857b5d=this[_0x13c5('0x8')][_0x13c5('0x9')];this['_lastRequestId']=_0x45ffe8;for(const _0x26ea06 of _0x1d64e2){const _0x759bdf=_0x857b5d[_0x13c5('0x1e')](_0x26ea06['id']);if(_0x759bdf){if((_0x26ea06[_0x13c5('0x33')]||_0x26ea06[_0x13c5('0x40')])&&(_0x26ea06['diffData']=null),_0x759bdf===this[_0x13c5('0x8')][_0x13c5('0x7')]){const _0x36504e=Math[_0x13c5('0x0')](_0x759bdf['toVersion'],_0x26ea06[_0x13c5('0x40')]),_0x4d5217=Math['max'](_0x759bdf[_0x13c5('0x33')],_0x26ea06[_0x13c5('0x33')]);let _0x2d01de;_0x759bdf[_0x13c5('0x40')]===_0x26ea06['toVersion']&&_0x759bdf[_0x13c5('0x33')]===_0x26ea06[_0x13c5('0x33')]?(_0x2d01de=!0x0,this['_preventResendingRevisionData'](_0x26ea06)):_0x26ea06[_0x13c5('0x40')]===_0x36504e&&_0x26ea06['fromVersion']===_0x4d5217?_0x2d01de=!0x1:(_0x759bdf[_0x13c5('0x40')]===_0x36504e&&_0x759bdf[_0x13c5('0x33')]===_0x4d5217||this[_0x13c5('0x5')]({'revision':_0x759bdf,'from':_0x4d5217,'to':_0x36504e}),_0x2d01de=!0x0),_0x2d01de&&(delete _0x26ea06[_0x13c5('0x33')],delete _0x26ea06[_0x13c5('0x40')],delete _0x26ea06[_0x13c5('0x27')],delete _0x26ea06[_0x13c5('0x34')],delete _0x26ea06[_0x13c5('0x11')]);}this[_0x13c5('0x8')][_0x13c5('0x1f')](_0x26ea06),this[_0x13c5('0x3')](_0x26ea06);}else this[_0x13c5('0x8')][_0x13c5('0x3d')](_0x26ea06);}const _0x22cd74=_0x857b5d[_0x13c5('0x28')]();_0x22cd74[_0x13c5('0x14')]();for(let _0x42e6f6=0x0;_0x42e6f6<_0x22cd74['length']-0x1;_0x42e6f6++){const _0x3736ea=_0x22cd74[_0x42e6f6],_0x5574aa=_0x22cd74[_0x42e6f6+0x1];if(_0x3736ea[_0x13c5('0x33')]<_0x5574aa['toVersion']){const _0x23706d=_0x5574aa[_0x13c5('0x40')],_0x41c697=Math[_0x13c5('0x0')](_0x23706d,_0x3736ea[_0x13c5('0x40')]);this[_0x13c5('0x5')]({'revision':_0x3736ea,'from':_0x23706d,'to':_0x41c697});}}}[_0x13c5('0x5')]({revision:_0x48c434,from:_0xf5346f,to:_0x53adb5}={}){const _0x55bf2b=this[_0x13c5('0x20')]['plugins']['get'](_0x4e38ea),_0x5e305a=this[_0x13c5('0x8')][_0x13c5('0x43')]({'revision':_0x48c434,'from':_0xf5346f,'to':_0x53adb5});_0x5e305a['authors']=_0x5e305a[_0x13c5('0x11')][_0x13c5('0x46')](_0x7b7489=>_0x55bf2b['getUser'](_0x7b7489)),_0x48c434[_0x13c5('0x3e')](_0x5e305a);}['_preventResendingRevisionData'](_0x5003ee){const _0x123fad={};_0x123fad['id']=_0x5003ee['id'];for(const _0x2abec4 of Object[_0x13c5('0x10')](_0x5003ee))'id'!==_0x2abec4&&(_0x123fad[_0x2abec4]=void 0x0);this[_0x13c5('0x8')][_0x13c5('0x24')](_0x123fad['id'],_0x123fad,!0x0);}async[_0x13c5('0x4')](_0x20144c){const _0x444a39=this[_0x13c5('0x20')][_0x13c5('0x30')]['get'](_0x4e38ea),{connection:_0x2fdb74}=this[_0x13c5('0x20')][_0x13c5('0x30')][_0x13c5('0x1b')](_0x106b75),_0x2cd404=new Set();for(const _0x5e14a8 of _0x20144c){for(const _0x305bfd of _0x5e14a8[_0x13c5('0x11')])_0x2950ca(_0x305bfd);_0x5e14a8['creatorId']&&_0x2950ca(_0x5e14a8[_0x13c5('0x37')]);}if(0x0===_0x2cd404[_0x13c5('0x17')])return;const _0x50e168=await _0xfe55b[_0x13c5('0x3b')](_0x2fdb74,Array['from'](_0x2cd404));for(const _0x20c01f of _0x50e168)_0x444a39[_0x13c5('0x25')](_0x20c01f['id'])||_0x444a39[_0x13c5('0x32')](_0x20c01f);function _0x2950ca(_0x323793){_0x444a39[_0x13c5('0x25')](_0x323793)||_0x2cd404['add'](_0x323793);}}}function st(_0x2c9d92){return _0x2c9d92[_0x13c5('0x15')][_0x13c5('0x16')](_0x13c5('0x47'))||_0x2c9d92['message'][_0x13c5('0x16')]('cloud-services-internal-error:\x20Not\x20connected.')||_0x2c9d92[_0x13c5('0x15')][_0x13c5('0x16')](_0x13c5('0x1d'));}v[_0x13c5('0x22')]=_0x42185a;
|
|
23
|
+
const _0x1699=['catch','serverHistory','sessionId','getMany','isBundleUploaded','once','repository','_revisions','sendBufferedUpdates','currentRevision','reverse','message','baseVersion','adapter','destroy','CONNECTED','remove','authors','get','addToReconnectionStack','off','_update','code','bind','then','map','_createCurrentRevision','_revisionHistoryService','getOperations','startsWith','connection','setSource','_revisionTracker','from','diffData','has','change:_isPendingUpdate','isEnabled','connected','type','affectsData','addRevisionData','_offset','getRevisions','_bufferedUpdates','change:_isConnected','_isConnected','marker','_isPendingUpdate','requires','creatorId','_revisionDataBuilder','_fetchMissingUsers','RevisionTracker','max','buildRevisionData','state','config','cloud-services-internal-error:\x20Request\x20timeout.','length','isConnected','_getLatestVersion','400','authorsIds','connect','data','_startingVersion','wrongRequestId','keys','editor','_lastRequestId','cloudServices.bundleVersion','RevisionHistoryService','getRevision','isEmptyCurrent','_waitForServiceReady','_bufferUpdate','cloud-services-internal-error:\x20Not\x20connected.','getUser','size','createdAt','fromVersion','_handleReconnectionError','toVersion','_fixRevision','_oldOffset','init','_getLatestVersionFromServerOperations','plugins','_handleRevisionsUpdate','_preventResendingRevisionData'];(function(_0x35a97c,_0x16994b){const _0x103a48=function(_0x295cfa){while(--_0x295cfa){_0x35a97c['push'](_0x35a97c['shift']());}};_0x103a48(++_0x16994b);}(_0x1699,0x145));const _0x103a=function(_0x35a97c,_0x16994b){_0x35a97c=_0x35a97c-0x0;let _0x103a48=_0x1699[_0x35a97c];return _0x103a48;};import{Plugin as _0x3d7823}from'ckeditor5/src/core';import{version as _0x1f2fa9}from'ckeditor5/src/utils';import{Users as _0x82903d}from'ckeditor5-collaboration/src/collaboration-core';import _0x26d226 from'../realtimecollaborativeediting/realtimecollaborationclient';import _0x539376 from'../realtimecollaborativeediting/websocketgateway';import _0x101fd2 from'../realtimecollaborativeediting/sessions';import{User as _0x4bea76}from'@ckeditor/ckeditor-cloud-services-collaboration';import{RevisionHistoryService as _0x24fcef,EditorService as _0x29ebb8,WEB_SOCKET_GATEWAY_STATES as _0x12134c}from'@ckeditor/ckeditor-cloud-services-collaboration/src/services';export default class v extends _0x3d7823{static get[_0x103a('0x58')](){return[_0x539376,_0x26d226,_0x103a('0x1'),_0x101fd2,_0x82903d];}constructor(_0x342da0){super(_0x342da0);const _0x7512ef=this['editor']['config'][_0x103a('0x39')]('collaboration.channelId');this[_0x103a('0x12')]=null,this[_0x103a('0x47')]=this['editor'][_0x103a('0x24')][_0x103a('0x39')](_0x103a('0x1')),this['_revisionHistoryService']=new v['RevisionHistoryService'](_0x7512ef);}async[_0x103a('0x22')](){const _0x2217f1=this[_0x103a('0x11')][_0x103a('0x24')]['get'](_0x26d226),_0x349818=_0x2217f1[_0x103a('0x28')],_0x194fdf=this[_0x103a('0x11')][_0x103a('0x24')][_0x103a('0x39')](_0x539376);this[_0x103a('0x47')][_0x103a('0x46')]({'history':_0x349818,'getLatestVersion':()=>this[_0x103a('0x9')](),'getCurrentRevisionId':()=>_0x2217f1[_0x103a('0x29')]});const _0x49dc80=this[_0x103a('0x11')][_0x103a('0x5')][_0x103a('0x39')](_0x103a('0x13'))||_0x1f2fa9,_0x1bc10b=await _0x29ebb8[_0x103a('0x2b')](_0x194fdf['connection'],_0x49dc80);this[_0x103a('0x47')][_0x103a('0x34')]={'getRevision':async({revisionId:_0x4de496})=>(await this[_0x103a('0x17')](),await this[_0x103a('0x42')]['getRevision'](_0x4de496)),'updateRevisions':async _0x452512=>{await this[_0x103a('0x17')]();const _0x1663a1=this['_revisionTracker'][_0x103a('0x30')];if(_0x1bc10b&&0x1===_0x452512[_0x103a('0x7')]&&_0x452512[0x0]['id']===_0x1663a1['id'])return _0x452512;for(const _0x217a92 of _0x452512)_0x217a92['id']===_0x1663a1['id']&&(_0x217a92[_0x103a('0x16')]=_0x217a92[_0x103a('0x1d')]===_0x217a92['toVersion']);return this[_0x103a('0x42')]['updateRevisions'](_0x452512,this[_0x103a('0x12')])[_0x103a('0x3f')](_0x403748=>(this[_0x103a('0x12')]=_0x403748,_0x452512))[_0x103a('0x27')](_0x176dba=>{if(st(_0x176dba)||_0x103a('0xa')===_0x176dba[_0x103a('0x3d')]&&void 0x0!==_0x176dba[_0x103a('0xd')][_0x103a('0xf')]){for(const _0x481f30 of _0x452512){!this['_revisionTracker'][_0x103a('0x2d')][_0x103a('0x15')](_0x481f30['id'])||this[_0x103a('0x47')][_0x103a('0x18')](_0x481f30['id'],_0x481f30,!0x1);}if(st(_0x176dba))throw _0x176dba;return _0x452512;}throw _0x176dba;});}},this['listenTo'](this[_0x103a('0x42')],'revisionsUpdated',(_0x1e09e3,{revisionsData:_0x5a4829,requestId:_0x4547fb})=>{Math[_0x103a('0x2')](..._0x5a4829[_0x103a('0x40')](_0x1af298=>_0x1af298[_0x103a('0x1f')]))>this[_0x103a('0x23')]()-0x1?this[_0x103a('0x9')]()[_0x103a('0x3f')](()=>{this[_0x103a('0x25')](_0x5a4829,_0x4547fb);}):this[_0x103a('0x25')](_0x5a4829,_0x4547fb);});const {revisions:_0x4923f0,requestId:_0x5c9f81}=await this[_0x103a('0x42')][_0x103a('0xc')](_0x194fdf[_0x103a('0x45')]);_0x194fdf[_0x103a('0x3a')](this),this[_0x103a('0x12')]=_0x5c9f81,await this['_fetchMissingUsers'](_0x4923f0);for(const _0x2b9939 of _0x4923f0)this[_0x103a('0x47')]['addRevisionData'](_0x2b9939);this['listenTo'](_0x2217f1,_0x103a('0x54'),(_0x23e02f,_0x187b80,_0x165c38)=>{_0x165c38&&(this[_0x103a('0x21')]=_0x2217f1[_0x103a('0x51')],_0x23e02f[_0x103a('0x3b')]());}),this['_revisionTracker'][_0x103a('0x3e')](_0x103a('0x4c'))['to'](_0x194fdf,_0x103a('0x4'),_0xcca7f6=>_0xcca7f6===_0x12134c[_0x103a('0x36')]);}async['reconnect'](){const _0xc8c55d=this[_0x103a('0x11')]['plugins']['get'](_0x539376),_0x3a70c6=this[_0x103a('0x11')][_0x103a('0x24')][_0x103a('0x39')](_0x26d226),_0x333989=async()=>{const _0x4bcf2f=this[_0x103a('0x47')][_0x103a('0x30')],_0x446a1e=_0x4bcf2f['id'],_0x20eede=_0x446a1e!==_0x3a70c6[_0x103a('0x29')];if(_0x20eede){const _0x469811=_0x3a70c6[_0x103a('0x51')]-this[_0x103a('0x21')],_0x53cf85=this[_0x103a('0x23')]();this[_0x103a('0x47')][_0x103a('0x5a')]['reInit']();if(_0x4bcf2f['toVersion']+_0x469811!==_0x53cf85){const _0x284611=_0x4bcf2f[_0x103a('0x1d')]+_0x469811,_0x5b2365=this['editor'][_0x103a('0x24')][_0x103a('0x39')](_0x82903d),_0x526d9c=this[_0x103a('0x47')]['buildRevisionData']({'revision':_0x4bcf2f,'from':_0x284611,'to':_0x53cf85});_0x526d9c['id']=_0x4bcf2f['id'];const _0x457fa8=_0x526d9c[_0x103a('0xb')][_0x103a('0x40')](_0x5b9796=>_0x5b2365[_0x103a('0x1a')](_0x5b9796));_0x4bcf2f[_0x103a('0x3c')]({..._0x526d9c,'authors':_0x457fa8},!0x0),this[_0x103a('0x47')][_0x103a('0x18')](_0x4bcf2f['id'],_0x526d9c,!0x0);}this[_0x103a('0x47')][_0x103a('0xe')]=_0x53cf85,(_0x4bcf2f[_0x103a('0x1f')]===_0x4bcf2f[_0x103a('0x1d')]&&!this['_revisionTracker'][_0x103a('0x53')][_0x103a('0x4a')](_0x446a1e)&&this[_0x103a('0x47')]['repository'][_0x103a('0x2e')][_0x103a('0x37')](_0x446a1e),this[_0x103a('0x47')][_0x103a('0x41')](_0x53cf85));}const {revisions:_0x49d1b7,requestId:_0x554af2}=await this['_revisionHistoryService']['reconnect'](_0xc8c55d[_0x103a('0x45')],this[_0x103a('0x12')]);_0x20eede&&_0x49d1b7[_0x103a('0x7')]>0x0?_0x3a70c6[_0x103a('0x1e')]():(await this[_0x103a('0x0')](_0x49d1b7),this[_0x103a('0x25')](_0x49d1b7,_0x554af2),this['_revisionTracker'][_0x103a('0x2f')]());};return _0x3a70c6[_0x103a('0x55')]?_0x333989():new Promise((_0x127148,_0x14c030)=>{_0x3a70c6[_0x103a('0x2c')](_0x103a('0x54'),()=>{_0x333989()[_0x103a('0x3f')](_0x127148)['catch'](_0x14c030);});});}[_0x103a('0x35')](){super[_0x103a('0x35')]();}async[_0x103a('0x17')](){this[_0x103a('0x42')][_0x103a('0x8')]||await new Promise(_0x99faaf=>{this['listenTo'](this['_revisionHistoryService'],_0x103a('0x4d'),_0x3bf488=>{_0x3bf488[_0x103a('0x3b')](),_0x99faaf();});});}[_0x103a('0x23')](){const _0x3a51cf=this[_0x103a('0x11')][_0x103a('0x24')][_0x103a('0x39')](_0x26d226)[_0x103a('0x28')][_0x103a('0x43')]()[_0x103a('0x31')]();for(const _0x279201 of _0x3a51cf)if(_0x103a('0x56')!==_0x279201[_0x103a('0x4e')]||_0x279201[_0x103a('0x4f')])return _0x279201[_0x103a('0x33')]+0x1;}[_0x103a('0x9')](){const _0x2c4892=this[_0x103a('0x11')]['plugins'][_0x103a('0x39')](_0x26d226);return new Promise(_0x33ea1e=>{_0x2c4892[_0x103a('0x57')]?_0x2c4892['once'](_0x103a('0x4b'),()=>{_0x33ea1e(this['_getLatestVersionFromServerOperations']());}):_0x33ea1e(this[_0x103a('0x23')]());});}[_0x103a('0x25')](_0x1efbd0,_0x22d7d0){const _0x107c83=this[_0x103a('0x47')]['repository'];this[_0x103a('0x12')]=_0x22d7d0;for(const _0x47b554 of _0x1efbd0){const _0x30c4a1=_0x107c83[_0x103a('0x15')](_0x47b554['id']);if(_0x30c4a1){if((_0x47b554[_0x103a('0x1d')]||_0x47b554[_0x103a('0x1f')])&&(_0x47b554[_0x103a('0x49')]=null),_0x30c4a1===this[_0x103a('0x47')]['currentRevision']){const _0x138ad5=Math[_0x103a('0x2')](_0x30c4a1[_0x103a('0x1f')],_0x47b554[_0x103a('0x1f')]),_0x31878d=Math[_0x103a('0x2')](_0x30c4a1[_0x103a('0x1d')],_0x47b554[_0x103a('0x1d')]);let _0x37b4e2;_0x30c4a1[_0x103a('0x1f')]===_0x47b554[_0x103a('0x1f')]&&_0x30c4a1['fromVersion']===_0x47b554['fromVersion']?(_0x37b4e2=!0x0,this[_0x103a('0x26')](_0x47b554)):_0x47b554[_0x103a('0x1f')]===_0x138ad5&&_0x47b554[_0x103a('0x1d')]===_0x31878d?_0x37b4e2=!0x1:(_0x30c4a1[_0x103a('0x1f')]===_0x138ad5&&_0x30c4a1[_0x103a('0x1d')]===_0x31878d||this[_0x103a('0x20')]({'revision':_0x30c4a1,'from':_0x31878d,'to':_0x138ad5}),_0x37b4e2=!0x0),_0x37b4e2&&(delete _0x47b554[_0x103a('0x1d')],delete _0x47b554[_0x103a('0x1f')],delete _0x47b554[_0x103a('0x49')],delete _0x47b554[_0x103a('0x1c')],delete _0x47b554[_0x103a('0xb')]);}this['_revisionTracker']['setRevisionData'](_0x47b554),this['_preventResendingRevisionData'](_0x47b554);}else this[_0x103a('0x47')][_0x103a('0x50')](_0x47b554);}const _0x4bc996=_0x107c83[_0x103a('0x52')]();_0x4bc996[_0x103a('0x31')]();for(let _0x5f4186=0x0;_0x5f4186<_0x4bc996[_0x103a('0x7')]-0x1;_0x5f4186++){const _0x2d6222=_0x4bc996[_0x5f4186],_0x27ba4d=_0x4bc996[_0x5f4186+0x1];if(_0x2d6222['fromVersion']<_0x27ba4d[_0x103a('0x1f')]){const _0x54e4b8=_0x27ba4d[_0x103a('0x1f')],_0xb969b7=Math[_0x103a('0x2')](_0x54e4b8,_0x2d6222[_0x103a('0x1f')]);this['_fixRevision']({'revision':_0x2d6222,'from':_0x54e4b8,'to':_0xb969b7});}}}[_0x103a('0x20')]({revision:_0x177367,from:_0x340179,to:_0x572246}={}){const _0x32073b=this['editor'][_0x103a('0x24')][_0x103a('0x39')](_0x82903d),_0xd44098=this['_revisionTracker'][_0x103a('0x3')]({'revision':_0x177367,'from':_0x340179,'to':_0x572246});_0xd44098[_0x103a('0x38')]=_0xd44098[_0x103a('0xb')][_0x103a('0x40')](_0x5e08c8=>_0x32073b[_0x103a('0x1a')](_0x5e08c8)),_0x177367['_update'](_0xd44098);}[_0x103a('0x26')](_0x51e109){const _0x16dbf8={};_0x16dbf8['id']=_0x51e109['id'];for(const _0x470bc0 of Object[_0x103a('0x10')](_0x51e109))'id'!==_0x470bc0&&(_0x16dbf8[_0x470bc0]=void 0x0);this[_0x103a('0x47')][_0x103a('0x18')](_0x16dbf8['id'],_0x16dbf8,!0x0);}async['_fetchMissingUsers'](_0x152ba7){const _0x2e6312=this[_0x103a('0x11')][_0x103a('0x24')][_0x103a('0x39')](_0x82903d),{connection:_0x3b0d50}=this[_0x103a('0x11')][_0x103a('0x24')][_0x103a('0x39')](_0x539376),_0x185c8e=new Set();for(const _0x4a4dd0 of _0x152ba7){for(const _0x4fc630 of _0x4a4dd0['authorsIds'])_0xe03fa3(_0x4fc630);_0x4a4dd0['creatorId']&&_0xe03fa3(_0x4a4dd0[_0x103a('0x59')]);}if(0x0===_0x185c8e[_0x103a('0x1b')])return;const _0x1deca0=await _0x4bea76[_0x103a('0x2a')](_0x3b0d50,Array[_0x103a('0x48')](_0x185c8e));for(const _0x7beeb5 of _0x1deca0)_0x2e6312[_0x103a('0x1a')](_0x7beeb5['id'])||_0x2e6312['addUser'](_0x7beeb5);function _0xe03fa3(_0x2bec48){_0x2e6312[_0x103a('0x1a')](_0x2bec48)||_0x185c8e['add'](_0x2bec48);}}}function st(_0x3d09b2){return _0x3d09b2[_0x103a('0x32')][_0x103a('0x44')]('cloud-services-internal-error:\x20Revision\x20History\x20Service\x20is\x20not\x20connected.')||_0x3d09b2['message'][_0x103a('0x44')](_0x103a('0x19'))||_0x3d09b2[_0x103a('0x32')][_0x103a('0x44')](_0x103a('0x6'));}v[_0x103a('0x14')]=_0x24fcef;
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x420b=['RealTimeCollaborativeRevisionHistory','pluginName','RevisionHistory'];(function(_0x101881,_0x420be3){var _0x37c479=function(_0x1b9445){while(--_0x1b9445){_0x101881['push'](_0x101881['shift']());}};_0x37c479(++_0x420be3);}(_0x420b,0xa7));var _0x37c4=function(_0x101881,_0x420be3){_0x101881=_0x101881-0x0;var _0x37c479=_0x420b[_0x101881];return _0x37c479;};import{Plugin as _0x844924}from'ckeditor5/src/core';import _0x523858 from'./realtimecollaborativerevisionhistory/cloudservicesrevisionhistoryadapter';import _0x219142 from'./realtimecollaborativeediting';export default class d extends _0x844924{static get['requires'](){return[_0x37c4('0x0'),_0x523858,_0x219142];}static get[_0x37c4('0x2')](){return _0x37c4('0x1');}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5640=['open','get','find','adapter','cloud-services-internal-error:\x20Request\x20timeout.','TrackChangesEditing','_fetchMissingUsersForThreads','editor','suggestionUpdated','startsWith','listenTo','plugins','_saved','delete','attributes','_trackChangesService','connect','originalSuggestionId','connection','requires','init','_waitForServiceReady','hasSuggestion','cloud-services-internal-error:\x20Not\x20connected.','set','TrackChangesService','addUser','addSuggestionData','catch','from','addToReconnectionStack','update','getSuggestion','_bufferedRequests','collaboration.channelId','connected','off','getUser','add','data','message'];(function(_0x353a3c,_0x5640e1){const _0x154079=function(_0x266939){while(--_0x266939){_0x353a3c['push'](_0x353a3c['shift']());}};_0x154079(++_0x5640e1);}(_0x5640,0x143));const _0x1540=function(_0x353a3c,_0x5640e1){_0x353a3c=_0x353a3c-0x0;let _0x154079=_0x5640[_0x353a3c];return _0x154079;};import{Plugin as _0xfeb476}from'ckeditor5/src/core';import{TrackChangesService as _0xd19c32}from'@ckeditor/ckeditor-cloud-services-collaboration/src/services';import{User as _0x1ae858}from'@ckeditor/ckeditor-cloud-services-collaboration';import _0xddfa19 from'../realtimecollaborativeediting/websocketgateway';import _0x3708be from'../realtimecollaborativecomments/cloudservicescommentsadapter';import{Users as _0x4d5f8a}from'ckeditor5-collaboration/src/collaboration-core';export default class g extends _0xfeb476{static get[_0x1540('0x18')](){return[_0x3708be,_0x1540('0xa'),_0xddfa19];}constructor(_0x38a781){super(_0x38a781);const _0x5bd5f4=this[_0x1540('0xc')]['config'][_0x1540('0x6')](_0x1540('0x27'));this[_0x1540('0x26')]=new Map(),this[_0x1540('0x14')]=new g[(_0x1540('0x1e'))](_0x5bd5f4);}[_0x1540('0x19')](){const _0x3c577b=this[_0x1540('0xc')][_0x1540('0x10')][_0x1540('0x6')](_0xddfa19),_0x50e5a0=this[_0x1540('0xc')]['plugins'][_0x1540('0x6')]('TrackChangesEditing');return _0x50e5a0[_0x1540('0x8')]={'getSuggestion':async _0x6aa978=>{await this[_0x1540('0x1a')]();const _0xf83476=await this[_0x1540('0x14')][_0x1540('0x6')](_0x6aa978)[_0x1540('0x21')](B);return await this['_fetchMissingUsersForThreads']([_0xf83476]),_0xf83476;},'addSuggestion':async({id:_0x4b30cd,type:_0x3340e4,data:_0x347eca,originalSuggestionId:_0x1c5fbe,attributes:_0x5c5169})=>{await this[_0x1540('0x1a')]();const _0x231083={'id':_0x4b30cd,'type':_0x3340e4,'data':_0x347eca,'originalSuggestionId':_0x1c5fbe,'attributes':_0x5c5169},_0x5729ad=await this[_0x1540('0x14')][_0x1540('0x2')](_0x4b30cd,_0x3340e4,_0x347eca,_0x1c5fbe,_0x5c5169)['catch'](_0x3668a2=>{if(st(_0x3668a2))return new Promise(_0xf4d29e=>{this[_0x1540('0x26')][_0x1540('0x1d')](_0x4b30cd,{'resolve':_0xf4d29e,'suggestionData':_0x231083});});throw _0x3668a2;});return this[_0x1540('0x26')][_0x1540('0x12')](_0x4b30cd),_0x5729ad;},'updateSuggestion':async(_0x415087,_0x41058d)=>{if(await this['_waitForServiceReady'](),_0x1540('0x5')!==_0x41058d['state'])return this[_0x1540('0x14')][_0x1540('0x24')](_0x415087,_0x41058d)[_0x1540('0x21')](B);}},this[_0x1540('0xf')](this[_0x1540('0x14')],_0x1540('0xd'),(_0x209948,_0x38737b)=>{_0x50e5a0[_0x1540('0x1b')](_0x38737b['id'])&&(_0x50e5a0[_0x1540('0x25')](_0x38737b['id'])[_0x1540('0x13')]=_0x38737b[_0x1540('0x13')]);}),this[_0x1540('0x14')]['connect'](_0x3c577b[_0x1540('0x17')])['then'](_0x3b931a=>(_0x3c577b[_0x1540('0x23')](this),this[_0x1540('0xb')](_0x3b931a)['then'](()=>{for(const _0x49c953 of _0x3b931a){_0x50e5a0[_0x1540('0x20')](_0x49c953)[_0x1540('0x11')]=!0x0;}})));}async['reconnect'](){const _0x237fe6=this['editor'][_0x1540('0x10')][_0x1540('0x6')]('TrackChangesEditing'),{connection:_0x7e42ea}=this[_0x1540('0xc')][_0x1540('0x10')][_0x1540('0x6')](_0xddfa19),_0x54e7bf=await this[_0x1540('0x14')][_0x1540('0x15')](_0x7e42ea);await this[_0x1540('0xb')](_0x54e7bf);for(const {suggestionData:_0x22bf98,resolve:_0x989815}of this['_bufferedRequests']['values']()){let _0x229297=_0x54e7bf[_0x1540('0x7')](_0xf1a61b=>_0xf1a61b['id']===_0x22bf98['id']);_0x229297||(_0x229297=await this[_0x1540('0x14')][_0x1540('0x2')](_0x22bf98['id'],_0x22bf98['type'],_0x22bf98[_0x1540('0x3')],_0x22bf98[_0x1540('0x16')])),_0x989815(_0x229297);}for(const _0x41a84d of _0x54e7bf)_0x237fe6['hasSuggestion'](_0x41a84d['id'])||_0x237fe6[_0x1540('0x20')](_0x41a84d);}async[_0x1540('0x1a')](){this['_trackChangesService']['isConnected']||await new Promise(_0x3dbc2c=>{this[_0x1540('0xf')](this[_0x1540('0x14')],_0x1540('0x28'),_0x39f310=>{_0x39f310[_0x1540('0x0')](),_0x3dbc2c();});});}async[_0x1540('0xb')](_0x595cb8){const _0x252491=this['editor']['plugins'][_0x1540('0x6')](_0x4d5f8a),{connection:_0x3eea41}=this['editor'][_0x1540('0x10')]['get'](_0xddfa19),_0x17e599=new Set();for(const {authorId:_0x32e6d7}of _0x595cb8)_0x252491['getUser'](_0x32e6d7)||_0x17e599[_0x1540('0x2')](_0x32e6d7);if(0x0===_0x17e599['size'])return;const _0x555113=await _0x1ae858['getMany'](_0x3eea41,Array[_0x1540('0x22')](_0x17e599));for(const _0xfd680b of _0x555113)_0x252491[_0x1540('0x1')](_0xfd680b['id'])||_0x252491[_0x1540('0x1f')](_0xfd680b);}}function B(_0x1d3e47){if(st(_0x1d3e47))return new Promise(()=>{});throw _0x1d3e47;}function st(_0x1f82e6){return _0x1f82e6[_0x1540('0x4')][_0x1540('0xe')](_0x1540('0x1c'))||_0x1f82e6[_0x1540('0x4')]['startsWith'](_0x1540('0x9'));}g[_0x1540('0x1e')]=_0xd19c32;
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x53f8=['TrackChanges','requires','RealTimeCollaborativeTrackChanges','pluginName'];(function(_0x2c5c2e,_0x53f890){var _0xd3c3d8=function(_0xe66f49){while(--_0xe66f49){_0x2c5c2e['push'](_0x2c5c2e['shift']());}};_0xd3c3d8(++_0x53f890);}(_0x53f8,0x11e));var _0xd3c3=function(_0x2c5c2e,_0x53f890){_0x2c5c2e=_0x2c5c2e-0x0;var _0xd3c3d8=_0x53f8[_0x2c5c2e];return _0xd3c3d8;};import{Plugin as _0x290cc1}from'ckeditor5/src/core';import _0x537601 from'./realtimecollaborativetrackchanges/cloudservicestrackchangesadapter';import _0x4cbbb8 from'./realtimecollaborativecomments';export default class p extends _0x290cc1{static get[_0xd3c3('0x3')](){return[_0x4cbbb8,_0x537601,_0xd3c3('0x2')];}static get[_0xd3c3('0x1')](){return _0xd3c3('0x0');}}
|