@ckeditor/ckeditor5-real-time-collaboration 32.0.0 → 33.0.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.
Files changed (62) hide show
  1. package/LICENSE.md +1 -1
  2. package/README.md +1 -1
  3. package/build/real-time-collaboration.js +7 -0
  4. package/build/translations/cs.js +1 -0
  5. package/build/translations/de-ch.js +1 -0
  6. package/build/translations/de.js +1 -0
  7. package/build/translations/el.js +1 -0
  8. package/build/translations/en-au.js +1 -0
  9. package/build/translations/es.js +1 -0
  10. package/build/translations/et.js +1 -0
  11. package/build/translations/fr.js +1 -0
  12. package/build/translations/gl.js +1 -0
  13. package/build/translations/hi.js +1 -0
  14. package/build/translations/hr.js +1 -0
  15. package/build/translations/hu.js +1 -0
  16. package/build/translations/id.js +1 -0
  17. package/build/translations/it.js +1 -0
  18. package/build/translations/ko.js +1 -0
  19. package/build/translations/nl.js +1 -0
  20. package/build/translations/no.js +1 -0
  21. package/build/translations/pl.js +1 -0
  22. package/build/translations/pt-br.js +1 -0
  23. package/build/translations/ro.js +1 -0
  24. package/build/translations/ru.js +1 -0
  25. package/build/translations/sk.js +1 -0
  26. package/build/translations/sr-latn.js +1 -0
  27. package/build/translations/sr.js +1 -0
  28. package/build/translations/tk.js +1 -0
  29. package/build/translations/tr.js +1 -0
  30. package/build/translations/uk.js +1 -0
  31. package/build/translations/zh-cn.js +1 -0
  32. package/build/translations/zh.js +1 -0
  33. package/ckeditor5-metadata.json +22 -1
  34. package/lang/translations/cs.po +5 -5
  35. package/lang/translations/el.po +47 -0
  36. package/lang/translations/es.po +5 -5
  37. package/lang/translations/sr-latn.po +5 -5
  38. package/lang/translations/sr.po +5 -5
  39. package/package.json +7 -10
  40. package/src/index.js +23 -0
  41. package/src/presencelist/presencelistui.js +1 -1
  42. package/src/presencelist/view/presencecounterview.js +1 -1
  43. package/src/presencelist/view/presencedropdownlistitemview.js +1 -1
  44. package/src/presencelist/view/presencedropdownlistview.js +1 -1
  45. package/src/presencelist/view/presenceinlinelistitemview.js +1 -1
  46. package/src/presencelist/view/presenceinlinelistview.js +1 -1
  47. package/src/presencelist/view/presencelistview.js +1 -1
  48. package/src/presencelist/view/tooltipview.js +1 -1
  49. package/src/presencelist.js +1 -1
  50. package/src/realtimecollaborativecomments/cloudservicescommentsadapter.js +1 -1
  51. package/src/realtimecollaborativecomments.js +1 -1
  52. package/src/realtimecollaborativeediting/realtimecollaborationclient.js +1 -1
  53. package/src/realtimecollaborativeediting/sessions.js +1 -1
  54. package/src/realtimecollaborativeediting/usermarkers.js +1 -1
  55. package/src/realtimecollaborativeediting/websocketgateway.js +1 -1
  56. package/src/realtimecollaborativeediting.js +1 -1
  57. package/src/realtimecollaborativerevisionhistory/cloudservicesrevisionhistoryadapter.js +1 -1
  58. package/src/realtimecollaborativerevisionhistory.js +1 -1
  59. package/src/realtimecollaborativetrackchanges/cloudservicestrackchangesadapter.js +1 -1
  60. package/src/realtimecollaborativetrackchanges.js +1 -1
  61. package/theme/presencelist.css +1 -1
  62. package/theme/usermarkers.css +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x496e=['type','config','data','addSuggestionData','adapter','attributes','_saved','TrackChangesService','delete','connection','off','find','collaboration.channelId','add','_trackChangesService','_bufferedRequests','race','_waitForServiceReady','hasSuggestion','reconnect','set','getUser','getSuggestion','get','addToReconnectionStack','init','_fetchMissingUsersForThreads','plugins','then','from','originalSuggestionId','map','connect','listenTo','editor','values','all','state'];(function(_0x5c01a6,_0x496e0c){const _0x1aa4ce=function(_0x3ff9e5){while(--_0x3ff9e5){_0x5c01a6['push'](_0x5c01a6['shift']());}};_0x1aa4ce(++_0x496e0c);}(_0x496e,0x1e6));const _0x1aa4=function(_0x5c01a6,_0x496e0c){_0x5c01a6=_0x5c01a6-0x0;let _0x1aa4ce=_0x496e[_0x5c01a6];return _0x1aa4ce;};import{Plugin as _0x188b2b}from'ckeditor5/src/core';import _0xc083ee from'@ckeditor/ckeditor-cloud-services-collaboration/src/track-changes/trackchangesservice';import _0x51d957 from'../realtimecollaborativeediting/websocketgateway';import _0x385a6b from'../realtimecollaborativecomments/cloudservicescommentsadapter';import _0xdd5f8d from'@ckeditor/ckeditor5-track-changes/src/trackchangesediting';import _0x34377b from'@ckeditor/ckeditor-cloud-services-collaboration/src/users/user';import _0xcb2d25 from'@ckeditor/ckeditor5-collaboration-core/src/users';export default class k extends _0x188b2b{static get['requires'](){return[_0x385a6b,_0xdd5f8d,_0x51d957];}constructor(_0x1c5ce8){super(_0x1c5ce8),this[_0x1aa4('0x17')]=new Map();}[_0x1aa4('0x21')](){const _0x5a92fd=this[_0x1aa4('0x4')]['plugins'][_0x1aa4('0x1f')](_0x51d957),_0x3e9118=this[_0x1aa4('0x4')][_0x1aa4('0x23')][_0x1aa4('0x1f')](_0xdd5f8d),_0x51bd6=this[_0x1aa4('0x4')][_0x1aa4('0x9')][_0x1aa4('0x1f')](_0x1aa4('0x14'));return _0x5a92fd[_0x1aa4('0x20')](this),this[_0x1aa4('0x16')]=new k['TrackChangesService'](_0x51bd6),_0x3e9118[_0x1aa4('0xc')]={'getSuggestion':async _0x13c348=>{await this['_waitForServiceReady']();const _0x1149ef=await this[_0x1aa4('0x16')][_0x1aa4('0x1f')](_0x13c348);return await this[_0x1aa4('0x22')]([_0x1149ef]),_0x1149ef;},'addSuggestion':async({id:_0x2a1ebc,type:_0x4c269e,data:_0x14b40e,originalSuggestionId:_0x16fea3,attributes:_0x1bf5a4})=>{await this[_0x1aa4('0x19')]();const _0x3b8702={'id':_0x2a1ebc,'type':_0x4c269e,'data':_0x14b40e,'originalSuggestionId':_0x16fea3,'attributes':_0x1bf5a4},_0x57971d=new Promise(_0x4cec20=>{this[_0x1aa4('0x17')][_0x1aa4('0x1c')](_0x2a1ebc,{'resolve':_0x4cec20,'suggestionData':_0x3b8702});}),_0x34fab8=await Promise[_0x1aa4('0x18')]([this['_trackChangesService'][_0x1aa4('0x15')](_0x2a1ebc,_0x4c269e,_0x14b40e,_0x16fea3,_0x1bf5a4),_0x57971d]);return this[_0x1aa4('0x17')][_0x1aa4('0x10')](_0x2a1ebc),_0x34fab8;},'updateSuggestion':async(_0x2d3c31,_0x20c721)=>{if(await this['_waitForServiceReady'](),'open'!==_0x20c721[_0x1aa4('0x7')])return this[_0x1aa4('0x16')]['update'](_0x2d3c31,_0x20c721);}},this['listenTo'](this['_trackChangesService'],'suggestionUpdated',(_0x596714,_0x183282)=>{_0x3e9118['hasSuggestion'](_0x183282['id'])&&(_0x3e9118[_0x1aa4('0x1e')](_0x183282['id'])[_0x1aa4('0xd')]=_0x183282[_0x1aa4('0xd')]);}),this['_trackChangesService'][_0x1aa4('0x2')](_0x5a92fd[_0x1aa4('0x11')])[_0x1aa4('0x24')](_0x2a8a5d=>this[_0x1aa4('0x22')](_0x2a8a5d)[_0x1aa4('0x24')](()=>{for(const _0x3138a8 of _0x2a8a5d){_0x3e9118[_0x1aa4('0xb')](_0x3138a8)[_0x1aa4('0xe')]=!0x0;}}));}async[_0x1aa4('0x1b')](){const _0x18e6cc=this['editor']['plugins'][_0x1aa4('0x1f')](_0xdd5f8d),{connection:_0x27a6a6}=this[_0x1aa4('0x4')]['plugins'][_0x1aa4('0x1f')](_0x51d957),_0x10f19f=await this[_0x1aa4('0x16')][_0x1aa4('0x2')](_0x27a6a6);await this[_0x1aa4('0x22')](_0x10f19f);for(const {suggestionData:_0x5a0d8b,resolve:_0x15a473}of this[_0x1aa4('0x17')][_0x1aa4('0x5')]()){let _0x259413=_0x10f19f[_0x1aa4('0x13')](_0x32c0ee=>_0x32c0ee['id']===_0x5a0d8b['id']);_0x259413||(_0x259413=await this[_0x1aa4('0x16')][_0x1aa4('0x15')](_0x5a0d8b['id'],_0x5a0d8b[_0x1aa4('0x8')],_0x5a0d8b[_0x1aa4('0xa')],_0x5a0d8b[_0x1aa4('0x0')])),_0x15a473(_0x259413);}for(const _0x4b4e03 of _0x10f19f)_0x18e6cc[_0x1aa4('0x1a')](_0x4b4e03['id'])||_0x18e6cc[_0x1aa4('0xb')](_0x4b4e03);}async[_0x1aa4('0x19')](){this[_0x1aa4('0x16')]['isConnected']||await new Promise(_0x45ceff=>{this[_0x1aa4('0x3')](this['_trackChangesService'],_0x1aa4('0x2'),_0x523cef=>{_0x523cef[_0x1aa4('0x12')](),_0x45ceff();});});}[_0x1aa4('0x22')](_0x379350){const _0x5b7fa8=this[_0x1aa4('0x4')][_0x1aa4('0x23')]['get'](_0xcb2d25),{connection:_0x48d14c}=this[_0x1aa4('0x4')][_0x1aa4('0x23')][_0x1aa4('0x1f')](_0x51d957),_0xb4468c=new Set();for(const {authorId:_0x396394}of _0x379350)_0x5b7fa8[_0x1aa4('0x1d')](_0x396394)||_0xb4468c[_0x1aa4('0x15')](_0x396394);return Promise[_0x1aa4('0x6')](Array[_0x1aa4('0x25')](_0xb4468c)[_0x1aa4('0x1')](_0x1c6545=>_0x34377b['get'](_0x48d14c,_0x1c6545)[_0x1aa4('0x24')](_0x44ecbf=>{_0x5b7fa8['getUser'](_0x1c6545)||_0x5b7fa8['addUser'](_0x44ecbf);})));}}k[_0x1aa4('0xf')]=_0xc083ee;
23
+ const _0x371a=['addUser','listenTo','_waitForServiceReady','isConnected','_trackChangesService','config','delete','init','attributes','hasSuggestion','getUser','reconnect','TrackChangesService','suggestionUpdated','cloud-services-internal-error:\x20Request\x20timeout.','then','set','TrackChangesEditing','map','getSuggestion','addSuggestionData','editor','connected','cloud-services-internal-error:\x20Not\x20connected.','message','add','plugins','find','addToReconnectionStack','_fetchMissingUsersForThreads','all','connection','update','data','open','values','startsWith','requires','off','_saved','_bufferedRequests','get','catch','originalSuggestionId','collaboration.channelId','state','from'];(function(_0x3c50b7,_0x371a41){const _0x595fff=function(_0x1d72a3){while(--_0x1d72a3){_0x3c50b7['push'](_0x3c50b7['shift']());}};_0x595fff(++_0x371a41);}(_0x371a,0x161));const _0x595f=function(_0x3c50b7,_0x371a41){_0x3c50b7=_0x3c50b7-0x0;let _0x595fff=_0x371a[_0x3c50b7];return _0x595fff;};import{Plugin as _0x2a4c3e}from'ckeditor5/src/core';import _0x258876 from'@ckeditor/ckeditor-cloud-services-collaboration/src/track-changes/trackchangesservice';import _0x17650d from'../realtimecollaborativeediting/websocketgateway';import _0x201604 from'../realtimecollaborativecomments/cloudservicescommentsadapter';import _0x23e239 from'@ckeditor/ckeditor-cloud-services-collaboration/src/users/user';import{Users as _0x16df7b}from'ckeditor5-collaboration/src/collaboration-core';export default class g extends _0x2a4c3e{static get[_0x595f('0xd')](){return[_0x201604,_0x595f('0x28'),_0x17650d];}constructor(_0x56574a){super(_0x56574a),this[_0x595f('0x10')]=new Map();}[_0x595f('0x1e')](){const _0x4967ef=this[_0x595f('0x2c')]['plugins'][_0x595f('0x11')](_0x17650d),_0x32889f=this[_0x595f('0x2c')][_0x595f('0x2')][_0x595f('0x11')](_0x595f('0x28')),_0x49660e=this[_0x595f('0x2c')][_0x595f('0x1c')][_0x595f('0x11')](_0x595f('0x14'));return _0x4967ef[_0x595f('0x4')](this),this[_0x595f('0x1b')]=new g[(_0x595f('0x23'))](_0x49660e),_0x32889f['adapter']={'getSuggestion':async _0x4bbefb=>{await this[_0x595f('0x19')]();const _0x2f334a=await this[_0x595f('0x1b')][_0x595f('0x11')](_0x4bbefb)['catch'](T);return await this[_0x595f('0x5')]([_0x2f334a]),_0x2f334a;},'addSuggestion':async({id:_0x1bb8bf,type:_0x3f3bf8,data:_0x4222eb,originalSuggestionId:_0x390430,attributes:_0x3546d5})=>{await this[_0x595f('0x19')]();const _0x18a89b={'id':_0x1bb8bf,'type':_0x3f3bf8,'data':_0x4222eb,'originalSuggestionId':_0x390430,'attributes':_0x3546d5},_0x54ce1c=await this[_0x595f('0x1b')]['add'](_0x1bb8bf,_0x3f3bf8,_0x4222eb,_0x390430,_0x3546d5)[_0x595f('0x12')](_0x14dc57=>{if(et(_0x14dc57))return new Promise(_0x5124cd=>{this['_bufferedRequests'][_0x595f('0x27')](_0x1bb8bf,{'resolve':_0x5124cd,'suggestionData':_0x18a89b});});throw _0x14dc57;});return this[_0x595f('0x10')][_0x595f('0x1d')](_0x1bb8bf),_0x54ce1c;},'updateSuggestion':async(_0xd2c0a5,_0x35bebe)=>{if(await this[_0x595f('0x19')](),_0x595f('0xa')!==_0x35bebe[_0x595f('0x15')])return this[_0x595f('0x1b')][_0x595f('0x8')](_0xd2c0a5,_0x35bebe)[_0x595f('0x12')](T);}},this[_0x595f('0x18')](this[_0x595f('0x1b')],_0x595f('0x24'),(_0x51f9b1,_0x359dcf)=>{_0x32889f[_0x595f('0x20')](_0x359dcf['id'])&&(_0x32889f[_0x595f('0x2a')](_0x359dcf['id'])['attributes']=_0x359dcf[_0x595f('0x1f')]);}),this[_0x595f('0x1b')]['connect'](_0x4967ef[_0x595f('0x7')])['then'](_0x1d7870=>this[_0x595f('0x5')](_0x1d7870)['then'](()=>{for(const _0x4630a0 of _0x1d7870){_0x32889f[_0x595f('0x2b')](_0x4630a0)[_0x595f('0xf')]=!0x0;}}));}async[_0x595f('0x22')](){const _0x35f850=this[_0x595f('0x2c')][_0x595f('0x2')][_0x595f('0x11')]('TrackChangesEditing'),{connection:_0xae258d}=this[_0x595f('0x2c')]['plugins'][_0x595f('0x11')](_0x17650d),_0x248cda=await this['_trackChangesService']['connect'](_0xae258d);await this[_0x595f('0x5')](_0x248cda);for(const {suggestionData:_0x4a510b,resolve:_0x477844}of this[_0x595f('0x10')][_0x595f('0xb')]()){let _0x3da526=_0x248cda[_0x595f('0x3')](_0x3dade3=>_0x3dade3['id']===_0x4a510b['id']);_0x3da526||(_0x3da526=await this['_trackChangesService'][_0x595f('0x1')](_0x4a510b['id'],_0x4a510b['type'],_0x4a510b[_0x595f('0x9')],_0x4a510b[_0x595f('0x13')])),_0x477844(_0x3da526);}for(const _0x10ed2b of _0x248cda)_0x35f850[_0x595f('0x20')](_0x10ed2b['id'])||_0x35f850[_0x595f('0x2b')](_0x10ed2b);}async[_0x595f('0x19')](){this[_0x595f('0x1b')][_0x595f('0x1a')]||await new Promise(_0x156e41=>{this[_0x595f('0x18')](this['_trackChangesService'],_0x595f('0x2d'),_0x148c89=>{_0x148c89[_0x595f('0xe')](),_0x156e41();});});}['_fetchMissingUsersForThreads'](_0x3627f0){const _0x5bf09d=this[_0x595f('0x2c')][_0x595f('0x2')][_0x595f('0x11')](_0x16df7b),{connection:_0x4f3641}=this['editor'][_0x595f('0x2')][_0x595f('0x11')](_0x17650d),_0x35efe1=new Set();for(const {authorId:_0x4e26ef}of _0x3627f0)_0x5bf09d[_0x595f('0x21')](_0x4e26ef)||_0x35efe1[_0x595f('0x1')](_0x4e26ef);return Promise[_0x595f('0x6')](Array[_0x595f('0x16')](_0x35efe1)[_0x595f('0x29')](_0x2cef60=>_0x23e239[_0x595f('0x11')](_0x4f3641,_0x2cef60)[_0x595f('0x26')](_0x2bd3fc=>{_0x5bf09d[_0x595f('0x21')](_0x2cef60)||_0x5bf09d[_0x595f('0x17')](_0x2bd3fc);})));}}function T(_0x370580){if(et(_0x370580))return new Promise(()=>{});throw _0x370580;}function et(_0x337417){return _0x337417[_0x595f('0x0')][_0x595f('0xc')](_0x595f('0x2e'))||_0x337417[_0x595f('0x0')][_0x595f('0xc')](_0x595f('0x25'));}g[_0x595f('0x23')]=_0x258876;
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x2bb8=['pluginName','RealTimeCollaborativeTrackChanges','requires'];(function(_0x49e83d,_0x2bb8bf){var _0x5c0b92=function(_0x2e3fb9){while(--_0x2e3fb9){_0x49e83d['push'](_0x49e83d['shift']());}};_0x5c0b92(++_0x2bb8bf);}(_0x2bb8,0x19a));var _0x5c0b=function(_0x49e83d,_0x2bb8bf){_0x49e83d=_0x49e83d-0x0;var _0x5c0b92=_0x2bb8[_0x49e83d];return _0x5c0b92;};import{Plugin as _0x5e5067}from'ckeditor5/src/core';import _0x268a9d from'./realtimecollaborativetrackchanges/cloudservicestrackchangesadapter';import _0x17e8c2 from'./realtimecollaborativecomments';import _0x1ca2ef from'@ckeditor/ckeditor5-track-changes/src/trackchanges';export default class b extends _0x5e5067{static get[_0x5c0b('0x0')](){return[_0x17e8c2,_0x268a9d,_0x1ca2ef];}static get[_0x5c0b('0x1')](){return _0x5c0b('0x2');}}
23
+ var _0x478e=['pluginName','RealTimeCollaborativeTrackChanges','requires'];(function(_0x4425cf,_0x478e32){var _0x38f67b=function(_0x5c0a25){while(--_0x5c0a25){_0x4425cf['push'](_0x4425cf['shift']());}};_0x38f67b(++_0x478e32);}(_0x478e,0x182));var _0x38f6=function(_0x4425cf,_0x478e32){_0x4425cf=_0x4425cf-0x0;var _0x38f67b=_0x478e[_0x4425cf];return _0x38f67b;};import{Plugin as _0x4326f0}from'ckeditor5/src/core';import _0x241d80 from'./realtimecollaborativetrackchanges/cloudservicestrackchangesadapter';import _0x4adbca from'./realtimecollaborativecomments';export default class u extends _0x4326f0{static get[_0x38f6('0x0')](){return[_0x4adbca,_0x241d80,'TrackChanges'];}static get[_0x38f6('0x1')](){return _0x38f6('0x2');}}
@@ -3,7 +3,7 @@
3
3
  * CKEditor 5 Collaboration is licensed under a commercial license and protected by copyright law. Where not otherwise indicated,
4
4
  * all CKEditor 5 Collaboration content is authored by CKSource engineers and consists of CKSource-owned intellectual property.
5
5
  *
6
- * Copyright (c) 2003-2021, CKSource Holding sp. z o.o. All rights reserved.
6
+ * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
7
7
  */
8
8
 
9
9
  @import '@ckeditor/ckeditor5-ui/theme/components/tooltip/tooltip.css';
@@ -3,7 +3,7 @@
3
3
  * CKEditor 5 Collaboration is licensed under a commercial license and protected by copyright law. Where not otherwise indicated,
4
4
  * all CKEditor 5 Collaboration content is authored by CKSource engineers and consists of CKSource-owned intellectual property.
5
5
  *
6
- * Copyright (c) 2003-2021, CKSource Holding sp. z o.o. All rights reserved.
6
+ * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
7
7
  */
8
8
 
9
9
  .ck .ck-user__marker {