@ckeditor/ckeditor5-real-time-collaboration 35.3.2 → 36.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 (112) hide show
  1. package/build/real-time-collaboration.js +3 -2
  2. package/build/translations/ar.js +1 -0
  3. package/build/translations/bg.js +1 -0
  4. package/build/translations/bn.js +1 -0
  5. package/build/translations/ca.js +1 -0
  6. package/build/translations/cs.js +1 -0
  7. package/build/translations/da.js +1 -0
  8. package/build/translations/de-ch.js +1 -0
  9. package/build/translations/de.js +1 -0
  10. package/build/translations/el.js +1 -0
  11. package/build/translations/en-au.js +1 -0
  12. package/build/translations/es.js +1 -0
  13. package/build/translations/et.js +1 -0
  14. package/build/translations/fi.js +1 -0
  15. package/build/translations/fr.js +1 -0
  16. package/build/translations/gl.js +1 -0
  17. package/build/translations/he.js +1 -0
  18. package/build/translations/hi.js +1 -0
  19. package/build/translations/hr.js +1 -0
  20. package/build/translations/hu.js +1 -0
  21. package/build/translations/id.js +1 -0
  22. package/build/translations/it.js +1 -0
  23. package/build/translations/ja.js +1 -0
  24. package/build/translations/ko.js +1 -0
  25. package/build/translations/lt.js +1 -0
  26. package/build/translations/lv.js +1 -0
  27. package/build/translations/ms.js +1 -0
  28. package/build/translations/nl.js +1 -0
  29. package/build/translations/no.js +1 -0
  30. package/build/translations/pl.js +1 -0
  31. package/build/translations/pt-br.js +1 -0
  32. package/build/translations/pt.js +1 -0
  33. package/build/translations/ro.js +1 -0
  34. package/build/translations/ru.js +1 -0
  35. package/build/translations/sk.js +1 -0
  36. package/build/translations/sr-latn.js +1 -0
  37. package/build/translations/sr.js +1 -0
  38. package/build/translations/sv.js +1 -0
  39. package/build/translations/th.js +1 -0
  40. package/build/translations/tk.js +1 -0
  41. package/build/translations/tr.js +1 -0
  42. package/build/translations/uk.js +1 -0
  43. package/build/translations/vi.js +1 -0
  44. package/build/translations/zh-cn.js +1 -0
  45. package/build/translations/zh.js +1 -0
  46. package/lang/translations/ar.po +1 -1
  47. package/lang/translations/bg.po +1 -1
  48. package/lang/translations/bn.po +1 -1
  49. package/lang/translations/ca.po +1 -1
  50. package/lang/translations/cs.po +1 -1
  51. package/lang/translations/da.po +1 -1
  52. package/lang/translations/de-ch.po +1 -1
  53. package/lang/translations/de.po +1 -1
  54. package/lang/translations/el.po +1 -1
  55. package/lang/translations/en-au.po +1 -1
  56. package/lang/translations/en.po +1 -1
  57. package/lang/translations/es.po +1 -1
  58. package/lang/translations/et.po +1 -1
  59. package/lang/translations/fi.po +1 -1
  60. package/lang/translations/fr.po +1 -1
  61. package/lang/translations/gl.po +1 -1
  62. package/lang/translations/he.po +1 -1
  63. package/lang/translations/hi.po +1 -1
  64. package/lang/translations/hr.po +1 -1
  65. package/lang/translations/hu.po +1 -1
  66. package/lang/translations/id.po +1 -1
  67. package/lang/translations/it.po +1 -1
  68. package/lang/translations/ja.po +1 -1
  69. package/lang/translations/ko.po +1 -1
  70. package/lang/translations/lt.po +1 -1
  71. package/lang/translations/lv.po +1 -1
  72. package/lang/translations/ms.po +1 -1
  73. package/lang/translations/nl.po +1 -1
  74. package/lang/translations/no.po +1 -1
  75. package/lang/translations/pl.po +1 -1
  76. package/lang/translations/pt-br.po +1 -1
  77. package/lang/translations/pt.po +1 -1
  78. package/lang/translations/ro.po +1 -1
  79. package/lang/translations/ru.po +1 -1
  80. package/lang/translations/sk.po +1 -1
  81. package/lang/translations/sr-latn.po +1 -1
  82. package/lang/translations/sr.po +1 -1
  83. package/lang/translations/sv.po +1 -1
  84. package/lang/translations/th.po +1 -1
  85. package/lang/translations/tk.po +1 -1
  86. package/lang/translations/tr.po +1 -1
  87. package/lang/translations/uk.po +1 -1
  88. package/lang/translations/vi.po +1 -1
  89. package/lang/translations/zh-cn.po +1 -1
  90. package/lang/translations/zh.po +1 -1
  91. package/package.json +5 -5
  92. package/src/common-translations.js +2 -2
  93. package/src/index.js +1 -1
  94. package/src/presencelist/presencelistui.js +2 -2
  95. package/src/presencelist/view/presencecounterview.js +2 -2
  96. package/src/presencelist/view/presencedropdownlistitemview.js +2 -2
  97. package/src/presencelist/view/presencedropdownlistview.js +2 -2
  98. package/src/presencelist/view/presenceinlinelistitemview.js +2 -2
  99. package/src/presencelist/view/presenceinlinelistview.js +2 -2
  100. package/src/presencelist/view/presencelistview.js +2 -2
  101. package/src/presencelist.js +2 -2
  102. package/src/realtimecollaborativecomments/cloudservicescommentsadapter.js +2 -2
  103. package/src/realtimecollaborativecomments.js +2 -2
  104. package/src/realtimecollaborativeediting/realtimecollaborationclient.js +2 -2
  105. package/src/realtimecollaborativeediting/sessions.js +2 -2
  106. package/src/realtimecollaborativeediting/usermarkers.js +2 -2
  107. package/src/realtimecollaborativeediting/websocketgateway.js +2 -2
  108. package/src/realtimecollaborativeediting.js +2 -2
  109. package/src/realtimecollaborativerevisionhistory/cloudservicesrevisionhistoryadapter.js +2 -2
  110. package/src/realtimecollaborativerevisionhistory.js +2 -2
  111. package/src/realtimecollaborativetrackchanges/cloudservicestrackchangesadapter.js +2 -2
  112. package/src/realtimecollaborativetrackchanges.js +2 -2
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1c21=['connected','add','connect','_fetchMissingUsersForThreads','cloud-services-internal-error:\x20Not\x20connected.','_bufferedRequests','type','off','_trackChangesService','getMany','open','get','originalSuggestionId','plugins','cloud-services-internal-error:\x20Request\x20timeout.','editor','listenTo','config','catch','from','getUser','startsWith','message','delete','requires','values','TrackChangesService','init','_waitForServiceReady','attributes','then','hasSuggestion','adapter','suggestionUpdated','connection','state','getSuggestion','addSuggestionData','update','TrackChangesEditing'];(function(_0x2f93ba,_0x1c21e4){const _0x284ae6=function(_0x5c1aa4){while(--_0x5c1aa4){_0x2f93ba['push'](_0x2f93ba['shift']());}};_0x284ae6(++_0x1c21e4);}(_0x1c21,0x12c));const _0x284a=function(_0x2f93ba,_0x1c21e4){_0x2f93ba=_0x2f93ba-0x0;let _0x284ae6=_0x1c21[_0x2f93ba];return _0x284ae6;};import{Plugin as _0x1ff205}from'ckeditor5/src/core';import _0x3240bf from'@ckeditor/ckeditor-cloud-services-collaboration/src/track-changes/trackchangesservice';import _0x2f8f03 from'../realtimecollaborativeediting/websocketgateway';import _0x171b83 from'../realtimecollaborativecomments/cloudservicescommentsadapter';import _0x1f248f from'@ckeditor/ckeditor-cloud-services-collaboration/src/users/user';import{Users as _0x3876ad}from'ckeditor5-collaboration/src/collaboration-core';export default class g extends _0x1ff205{static get[_0x284a('0x4')](){return[_0x171b83,'TrackChangesEditing',_0x2f8f03];}constructor(_0x48c3a4){super(_0x48c3a4),this[_0x284a('0x19')]=new Map();}[_0x284a('0x7')](){const _0xfb02fe=this[_0x284a('0x23')][_0x284a('0x21')][_0x284a('0x1f')](_0x2f8f03),_0x51e3e5=this['editor']['plugins'][_0x284a('0x1f')](_0x284a('0x13')),_0x5452dd=this[_0x284a('0x23')][_0x284a('0x25')][_0x284a('0x1f')]('collaboration.channelId');return this['_trackChangesService']=new g[(_0x284a('0x6'))](_0x5452dd),_0x51e3e5[_0x284a('0xc')]={'getSuggestion':async _0x5a4d38=>{await this[_0x284a('0x8')]();const _0x54171b=await this[_0x284a('0x1c')][_0x284a('0x1f')](_0x5a4d38)[_0x284a('0x26')](y);return await this[_0x284a('0x17')]([_0x54171b]),_0x54171b;},'addSuggestion':async({id:_0x448a1d,type:_0x4153ec,data:_0x7008b1,originalSuggestionId:_0x113e25,attributes:_0x317f62})=>{await this['_waitForServiceReady']();const _0x49dfe5={'id':_0x448a1d,'type':_0x4153ec,'data':_0x7008b1,'originalSuggestionId':_0x113e25,'attributes':_0x317f62},_0x49b589=await this[_0x284a('0x1c')]['add'](_0x448a1d,_0x4153ec,_0x7008b1,_0x113e25,_0x317f62)[_0x284a('0x26')](_0x31d3b0=>{if(it(_0x31d3b0))return new Promise(_0xa814c8=>{this['_bufferedRequests']['set'](_0x448a1d,{'resolve':_0xa814c8,'suggestionData':_0x49dfe5});});throw _0x31d3b0;});return this['_bufferedRequests'][_0x284a('0x3')](_0x448a1d),_0x49b589;},'updateSuggestion':async(_0xd86481,_0x308b07)=>{if(await this[_0x284a('0x8')](),_0x284a('0x1e')!==_0x308b07[_0x284a('0xf')])return this[_0x284a('0x1c')][_0x284a('0x12')](_0xd86481,_0x308b07)[_0x284a('0x26')](y);}},this[_0x284a('0x24')](this[_0x284a('0x1c')],_0x284a('0xd'),(_0x27659e,_0xbc4fc0)=>{_0x51e3e5[_0x284a('0xb')](_0xbc4fc0['id'])&&(_0x51e3e5[_0x284a('0x10')](_0xbc4fc0['id'])[_0x284a('0x9')]=_0xbc4fc0['attributes']);}),this['_trackChangesService']['connect'](_0xfb02fe[_0x284a('0xe')])['then'](_0x40de8b=>(_0xfb02fe['addToReconnectionStack'](this),this[_0x284a('0x17')](_0x40de8b)[_0x284a('0xa')](()=>{for(const _0x1b4239 of _0x40de8b){_0x51e3e5[_0x284a('0x11')](_0x1b4239)['_saved']=!0x0;}})));}async['reconnect'](){const _0x22213b=this['editor'][_0x284a('0x21')]['get'](_0x284a('0x13')),{connection:_0x31fa9f}=this['editor']['plugins']['get'](_0x2f8f03),_0x29dc33=await this[_0x284a('0x1c')][_0x284a('0x16')](_0x31fa9f);await this[_0x284a('0x17')](_0x29dc33);for(const {suggestionData:_0x189bb4,resolve:_0x282cfd}of this['_bufferedRequests'][_0x284a('0x5')]()){let _0x31785a=_0x29dc33['find'](_0x59e43c=>_0x59e43c['id']===_0x189bb4['id']);_0x31785a||(_0x31785a=await this[_0x284a('0x1c')][_0x284a('0x15')](_0x189bb4['id'],_0x189bb4[_0x284a('0x1a')],_0x189bb4['data'],_0x189bb4[_0x284a('0x20')])),_0x282cfd(_0x31785a);}for(const _0xcc6cbc of _0x29dc33)_0x22213b[_0x284a('0xb')](_0xcc6cbc['id'])||_0x22213b[_0x284a('0x11')](_0xcc6cbc);}async[_0x284a('0x8')](){this[_0x284a('0x1c')]['isConnected']||await new Promise(_0x5e3d14=>{this[_0x284a('0x24')](this[_0x284a('0x1c')],_0x284a('0x14'),_0x3ce9fa=>{_0x3ce9fa[_0x284a('0x1b')](),_0x5e3d14();});});}async['_fetchMissingUsersForThreads'](_0x59a7b4){const _0x9af8e6=this[_0x284a('0x23')][_0x284a('0x21')][_0x284a('0x1f')](_0x3876ad),{connection:_0x42782d}=this[_0x284a('0x23')][_0x284a('0x21')][_0x284a('0x1f')](_0x2f8f03),_0x1a1018=new Set();for(const {authorId:_0x133626}of _0x59a7b4)_0x9af8e6[_0x284a('0x0')](_0x133626)||_0x1a1018[_0x284a('0x15')](_0x133626);if(0x0===_0x1a1018['size'])return;const _0x39d2cf=await _0x1f248f[_0x284a('0x1d')](_0x42782d,Array[_0x284a('0x27')](_0x1a1018));for(const _0x43b0fa of _0x39d2cf)_0x9af8e6[_0x284a('0x0')](_0x43b0fa['id'])||_0x9af8e6['addUser'](_0x43b0fa);}}function y(_0x5d23cd){if(it(_0x5d23cd))return new Promise(()=>{});throw _0x5d23cd;}function it(_0x4c2c92){return _0x4c2c92['message'][_0x284a('0x1')](_0x284a('0x18'))||_0x4c2c92[_0x284a('0x2')][_0x284a('0x1')](_0x284a('0x22'));}g[_0x284a('0x6')]=_0x3240bf;
23
+ const _0x5719=['data','delete','originalSuggestionId','from','TrackChangesEditing','open','_waitForServiceReady','suggestionUpdated','message','adapter','_bufferedRequests','catch','_fetchMissingUsersForThreads','plugins','startsWith','then','find','connection','isConnected','add','init','get','_trackChangesService','config','TrackChangesService','attributes','getUser','reconnect','size','update','cloud-services-internal-error:\x20Not\x20connected.','connected','addToReconnectionStack','hasSuggestion','set','collaboration.channelId','listenTo','off','getMany','connect','editor','addUser'];(function(_0x4d5691,_0x57199a){const _0x31ff7e=function(_0x34497c){while(--_0x34497c){_0x4d5691['push'](_0x4d5691['shift']());}};_0x31ff7e(++_0x57199a);}(_0x5719,0x1a9));const _0x31ff=function(_0x4d5691,_0x57199a){_0x4d5691=_0x4d5691-0x0;let _0x31ff7e=_0x5719[_0x4d5691];return _0x31ff7e;};import{Plugin as _0x5856a6}from'ckeditor5/src/core';import _0x6d2a01 from'@ckeditor/ckeditor-cloud-services-collaboration/src/track-changes/trackchangesservice';import _0x2c5c4b from'../realtimecollaborativeediting/websocketgateway';import _0x7a453d from'../realtimecollaborativecomments/cloudservicescommentsadapter';import _0x557cce from'@ckeditor/ckeditor-cloud-services-collaboration/src/users/user';import{Users as _0x29e7c6}from'ckeditor5-collaboration/src/collaboration-core';export default class g extends _0x5856a6{static get['requires'](){return[_0x7a453d,_0x31ff('0x29'),_0x2c5c4b];}constructor(_0x17053f){super(_0x17053f),this[_0x31ff('0x5')]=new Map();}[_0x31ff('0xf')](){const _0x4ad85f=this[_0x31ff('0x23')][_0x31ff('0x8')]['get'](_0x2c5c4b),_0x384e5e=this[_0x31ff('0x23')][_0x31ff('0x8')]['get']('TrackChangesEditing'),_0x555869=this['editor'][_0x31ff('0x12')][_0x31ff('0x10')](_0x31ff('0x1e'));return this['_trackChangesService']=new g[(_0x31ff('0x13'))](_0x555869),_0x384e5e[_0x31ff('0x4')]={'getSuggestion':async _0x22ae13=>{await this[_0x31ff('0x1')]();const _0x45139a=await this[_0x31ff('0x11')][_0x31ff('0x10')](_0x22ae13)[_0x31ff('0x6')](R);return await this[_0x31ff('0x7')]([_0x45139a]),_0x45139a;},'addSuggestion':async({id:_0x3a05c0,type:_0x3d6b70,data:_0xaff007,originalSuggestionId:_0x5ba4ee,attributes:_0x174942})=>{await this[_0x31ff('0x1')]();const _0x2979fb={'id':_0x3a05c0,'type':_0x3d6b70,'data':_0xaff007,'originalSuggestionId':_0x5ba4ee,'attributes':_0x174942},_0x1e25f0=await this[_0x31ff('0x11')][_0x31ff('0xe')](_0x3a05c0,_0x3d6b70,_0xaff007,_0x5ba4ee,_0x174942)[_0x31ff('0x6')](_0x531b03=>{if(tt(_0x531b03))return new Promise(_0x37793b=>{this[_0x31ff('0x5')][_0x31ff('0x1d')](_0x3a05c0,{'resolve':_0x37793b,'suggestionData':_0x2979fb});});throw _0x531b03;});return this['_bufferedRequests'][_0x31ff('0x26')](_0x3a05c0),_0x1e25f0;},'updateSuggestion':async(_0x557ebd,_0x17dad0)=>{if(await this['_waitForServiceReady'](),_0x31ff('0x0')!==_0x17dad0['state'])return this[_0x31ff('0x11')][_0x31ff('0x18')](_0x557ebd,_0x17dad0)['catch'](R);}},this[_0x31ff('0x1f')](this[_0x31ff('0x11')],_0x31ff('0x2'),(_0x43ade0,_0x4e70fb)=>{_0x384e5e[_0x31ff('0x1c')](_0x4e70fb['id'])&&(_0x384e5e['getSuggestion'](_0x4e70fb['id'])['attributes']=_0x4e70fb[_0x31ff('0x14')]);}),this['_trackChangesService'][_0x31ff('0x22')](_0x4ad85f[_0x31ff('0xc')])[_0x31ff('0xa')](_0x33f6a0=>(_0x4ad85f[_0x31ff('0x1b')](this),this[_0x31ff('0x7')](_0x33f6a0)[_0x31ff('0xa')](()=>{for(const _0x56575e of _0x33f6a0){_0x384e5e['addSuggestionData'](_0x56575e)['_saved']=!0x0;}})));}async[_0x31ff('0x16')](){const _0x2d8391=this[_0x31ff('0x23')][_0x31ff('0x8')]['get'](_0x31ff('0x29')),{connection:_0x4e8aa4}=this[_0x31ff('0x23')][_0x31ff('0x8')][_0x31ff('0x10')](_0x2c5c4b),_0x1afdc5=await this[_0x31ff('0x11')][_0x31ff('0x22')](_0x4e8aa4);await this['_fetchMissingUsersForThreads'](_0x1afdc5);for(const {suggestionData:_0x4f9a0b,resolve:_0x3f420e}of this[_0x31ff('0x5')]['values']()){let _0x94e25a=_0x1afdc5[_0x31ff('0xb')](_0x267b70=>_0x267b70['id']===_0x4f9a0b['id']);_0x94e25a||(_0x94e25a=await this[_0x31ff('0x11')][_0x31ff('0xe')](_0x4f9a0b['id'],_0x4f9a0b['type'],_0x4f9a0b[_0x31ff('0x25')],_0x4f9a0b[_0x31ff('0x27')])),_0x3f420e(_0x94e25a);}for(const _0x23bbf3 of _0x1afdc5)_0x2d8391['hasSuggestion'](_0x23bbf3['id'])||_0x2d8391['addSuggestionData'](_0x23bbf3);}async[_0x31ff('0x1')](){this[_0x31ff('0x11')][_0x31ff('0xd')]||await new Promise(_0x11d607=>{this[_0x31ff('0x1f')](this[_0x31ff('0x11')],_0x31ff('0x1a'),_0x35007e=>{_0x35007e[_0x31ff('0x20')](),_0x11d607();});});}async['_fetchMissingUsersForThreads'](_0x4c7ee2){const _0x79b911=this[_0x31ff('0x23')][_0x31ff('0x8')][_0x31ff('0x10')](_0x29e7c6),{connection:_0x437b59}=this[_0x31ff('0x23')][_0x31ff('0x8')]['get'](_0x2c5c4b),_0x3433a7=new Set();for(const {authorId:_0x2cb851}of _0x4c7ee2)_0x79b911[_0x31ff('0x15')](_0x2cb851)||_0x3433a7[_0x31ff('0xe')](_0x2cb851);if(0x0===_0x3433a7[_0x31ff('0x17')])return;const _0x25ff95=await _0x557cce[_0x31ff('0x21')](_0x437b59,Array[_0x31ff('0x28')](_0x3433a7));for(const _0x3047fd of _0x25ff95)_0x79b911[_0x31ff('0x15')](_0x3047fd['id'])||_0x79b911[_0x31ff('0x24')](_0x3047fd);}}function R(_0x27972a){if(tt(_0x27972a))return new Promise(()=>{});throw _0x27972a;}function tt(_0x3f428a){return _0x3f428a['message'][_0x31ff('0x9')](_0x31ff('0x19'))||_0x3f428a[_0x31ff('0x3')][_0x31ff('0x9')]('cloud-services-internal-error:\x20Request\x20timeout.');}g['TrackChangesService']=_0x6d2a01;
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2016 - 2023, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x2d1f=['RealTimeCollaborativeTrackChanges','TrackChanges'];(function(_0xbfb3d9,_0x2d1f68){var _0x4710f1=function(_0x527434){while(--_0x527434){_0xbfb3d9['push'](_0xbfb3d9['shift']());}};_0x4710f1(++_0x2d1f68);}(_0x2d1f,0x96));var _0x4710=function(_0xbfb3d9,_0x2d1f68){_0xbfb3d9=_0xbfb3d9-0x0;var _0x4710f1=_0x2d1f[_0xbfb3d9];return _0x4710f1;};import{Plugin as _0x2586b0}from'ckeditor5/src/core';import _0x1283a2 from'./realtimecollaborativetrackchanges/cloudservicestrackchangesadapter';import _0x25c2b2 from'./realtimecollaborativecomments';export default class p extends _0x2586b0{static get['requires'](){return[_0x25c2b2,_0x1283a2,_0x4710('0x1')];}static get['pluginName'](){return _0x4710('0x0');}}
23
+ var _0x55bd=['RealTimeCollaborativeTrackChanges','TrackChanges','requires'];(function(_0x3d7f47,_0x55bd64){var _0x2bc6f8=function(_0xee325a){while(--_0xee325a){_0x3d7f47['push'](_0x3d7f47['shift']());}};_0x2bc6f8(++_0x55bd64);}(_0x55bd,0x166));var _0x2bc6=function(_0x3d7f47,_0x55bd64){_0x3d7f47=_0x3d7f47-0x0;var _0x2bc6f8=_0x55bd[_0x3d7f47];return _0x2bc6f8;};import{Plugin as _0x382a64}from'ckeditor5/src/core';import _0x2d5998 from'./realtimecollaborativetrackchanges/cloudservicestrackchangesadapter';import _0x496a81 from'./realtimecollaborativecomments';export default class p extends _0x382a64{static get[_0x2bc6('0x1')](){return[_0x496a81,_0x2d5998,_0x2bc6('0x0')];}static get['pluginName'](){return _0x2bc6('0x2');}}