@univerjs-pro/collaboration-client 0.15.1 → 0.15.2

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 (57) hide show
  1. package/lib/cjs/facade.js +1 -1
  2. package/lib/cjs/index.js +1 -1
  3. package/lib/cjs/locale/ca-ES.js +1 -1
  4. package/lib/cjs/locale/en-US.js +1 -1
  5. package/lib/cjs/locale/es-ES.js +1 -1
  6. package/lib/cjs/locale/fa-IR.js +1 -1
  7. package/lib/cjs/locale/fr-FR.js +1 -1
  8. package/lib/cjs/locale/ja-JP.js +1 -1
  9. package/lib/cjs/locale/ko-KR.js +1 -1
  10. package/lib/cjs/locale/ru-RU.js +1 -1
  11. package/lib/cjs/locale/vi-VN.js +1 -1
  12. package/lib/cjs/locale/zh-CN.js +1 -1
  13. package/lib/cjs/locale/zh-TW.js +1 -1
  14. package/lib/es/facade.js +1 -1
  15. package/lib/es/index.js +1 -1
  16. package/lib/es/locale/ca-ES.js +1 -1
  17. package/lib/es/locale/en-US.js +1 -1
  18. package/lib/es/locale/es-ES.js +1 -1
  19. package/lib/es/locale/fa-IR.js +1 -1
  20. package/lib/es/locale/fr-FR.js +1 -1
  21. package/lib/es/locale/ja-JP.js +1 -1
  22. package/lib/es/locale/ko-KR.js +1 -1
  23. package/lib/es/locale/ru-RU.js +1 -1
  24. package/lib/es/locale/vi-VN.js +1 -1
  25. package/lib/es/locale/zh-CN.js +1 -1
  26. package/lib/es/locale/zh-TW.js +1 -1
  27. package/lib/facade.js +1 -1
  28. package/lib/index.js +1 -1
  29. package/lib/locale/ca-ES.js +1 -1
  30. package/lib/locale/en-US.js +1 -1
  31. package/lib/locale/es-ES.js +1 -1
  32. package/lib/locale/fa-IR.js +1 -1
  33. package/lib/locale/fr-FR.js +1 -1
  34. package/lib/locale/ja-JP.js +1 -1
  35. package/lib/locale/ko-KR.js +1 -1
  36. package/lib/locale/ru-RU.js +1 -1
  37. package/lib/locale/vi-VN.js +1 -1
  38. package/lib/locale/zh-CN.js +1 -1
  39. package/lib/locale/zh-TW.js +1 -1
  40. package/lib/types/facade/f-collaboration.d.ts +12 -4
  41. package/lib/types/facade/f-event.d.ts +50 -0
  42. package/lib/types/facade/f-univer.d.ts +2 -1
  43. package/lib/types/facade/index.d.ts +2 -0
  44. package/lib/umd/facade.js +1 -1
  45. package/lib/umd/index.js +1 -1
  46. package/lib/umd/locale/ca-ES.js +1 -1
  47. package/lib/umd/locale/en-US.js +1 -1
  48. package/lib/umd/locale/es-ES.js +1 -1
  49. package/lib/umd/locale/fa-IR.js +1 -1
  50. package/lib/umd/locale/fr-FR.js +1 -1
  51. package/lib/umd/locale/ja-JP.js +1 -1
  52. package/lib/umd/locale/ko-KR.js +1 -1
  53. package/lib/umd/locale/ru-RU.js +1 -1
  54. package/lib/umd/locale/vi-VN.js +1 -1
  55. package/lib/umd/locale/zh-CN.js +1 -1
  56. package/lib/umd/locale/zh-TW.js +1 -1
  57. package/package.json +10 -10
package/lib/cjs/facade.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const _0x31e480=_0x26ab;(function(_0x57b30e,_0x573198){const _0x3b8643=_0x26ab,_0xa206e9=_0x57b30e();while(!![]){try{const _0x4e421d=-parseInt(_0x3b8643(0x169))/0x1+parseInt(_0x3b8643(0x19f))/0x2+-parseInt(_0x3b8643(0x195))/0x3*(-parseInt(_0x3b8643(0x180))/0x4)+-parseInt(_0x3b8643(0x196))/0x5*(parseInt(_0x3b8643(0x197))/0x6)+parseInt(_0x3b8643(0x17d))/0x7+parseInt(_0x3b8643(0x168))/0x8+-parseInt(_0x3b8643(0x184))/0x9;if(_0x4e421d===_0x573198)break;else _0xa206e9['push'](_0xa206e9['shift']());}catch(_0xa02c75){_0xa206e9['push'](_0xa206e9['shift']());}}}(_0x2094,0x8f2c4));Object[_0x31e480(0x191)](exports,Symbol[_0x31e480(0x19e)],{'value':_0x31e480(0x189)});const i=require('@univerjs-pro/collaboration-client'),l=require('@univerjs/core/facade'),v=require('@univerjs-pro/collaboration'),s=require('@univerjs/core'),b=require('rxjs');class h extends l[_0x31e480(0x1a1)]{get[_0x31e480(0x174)](){const _0x4fe584=_0x31e480;return i[_0x4fe584(0x174)];}}l[_0x31e480(0x1a1)]['extend'](h);function _0x2094(){const _0x1f2091=['_univerInstanceService','_snapshotService','_collaborationController','Module','loadActiveSheet','extend','length','_handler','loadServerUnit','[FCollaboration]:\x20this\x20method\x20should\x20be\x20override.','loadServerUnitOfRevision','defineProperty','loadSheet','getUniverSheet','from','3opAKPx','766345RAIDBe','30IvgdvB','FUniver','state','createInstance','get','DataLoaderService','getUnitId','toStringTag','1365314TiyBwr','getCollaborationStatus','FEnum','loadUnitOfRevision','7756096fFblkY','892592ZDhEtb','loadSheetAsync','status','FCollaboration','toDisposable','CollaborationController','NOT_COLLAB','pipe','loadActiveSheetAsync','_injector','readyForCollab','CollaborationStatus','IUniverInstanceService','getFocusedUnit','SnapshotService','MemberService','getCollaboration','switchMap','FBase','getOwnPropertyDescriptor','8182699KUtBfT','loadUnit','Inject','4570196fUplbq','waitForRoom$','getCollabEntity','subscribe','15464718cZboVc','values'];_0x2094=function(){return _0x1f2091;};return _0x2094();}var d=Object[_0x31e480(0x17c)],S=(_0x1818f5,_0x231c72,_0x4ccf03,_0x1ec093)=>{const _0x4021ed=_0x31e480;for(var _0x4e3599=_0x1ec093>0x1?void 0x0:_0x1ec093?d(_0x231c72,_0x4ccf03):_0x231c72,_0x5c0964=_0x1818f5[_0x4021ed(0x18c)]-0x1,_0x2926b8;_0x5c0964>=0x0;_0x5c0964--)(_0x2926b8=_0x1818f5[_0x5c0964])&&(_0x4e3599=_0x2926b8(_0x4e3599)||_0x4e3599);return _0x4e3599;},c=(_0x3b44cb,_0x146759)=>(_0x2acbc9,_0x12b97a)=>_0x146759(_0x2acbc9,_0x12b97a,_0x3b44cb);function _0x26ab(_0x2e59ab,_0x355232){_0x2e59ab=_0x2e59ab-0x167;const _0x20948c=_0x2094();let _0x26ab61=_0x20948c[_0x2e59ab];return _0x26ab61;}exports[_0x31e480(0x16c)]=class extends l[_0x31e480(0x17b)]{constructor(_0x191dae,_0x3c1143,_0x1c2576,_0x12833c,_0x5d0e5d){const _0x44c047=_0x31e480;super(),this[_0x44c047(0x18d)]=_0x191dae,this[_0x44c047(0x172)]=_0x3c1143,this[_0x44c047(0x186)]=_0x1c2576,this[_0x44c047(0x187)]=_0x12833c,this['_collaborationController']=_0x5d0e5d;}async[_0x31e480(0x18a)](){const _0x287ed2=_0x31e480;return this[_0x287ed2(0x171)]();}async['loadActiveSheetAsync'](){const _0x12b57d=_0x31e480;throw new Error(_0x12b57d(0x18f));}async[_0x31e480(0x192)](_0x51073e){const _0x5b3a35=_0x31e480;return this[_0x5b3a35(0x16a)](_0x51073e);}async[_0x31e480(0x16a)](_0x47a915,_0x24885a){const _0x891338=_0x31e480;return await this[_0x891338(0x187)]['loadSheet'](_0x47a915,0x0,_0x24885a)?(await this[_0x891338(0x188)][_0x891338(0x173)](_0x47a915),this['_handler']['getUniverSheet'](_0x47a915)):null;}['subscribeCollaborators'](_0x28175d,_0x52277f){const _0x2c878b=_0x31e480,_0x84455a=this['_injector'][_0x2c878b(0x19b)](i[_0x2c878b(0x178)])[_0x2c878b(0x181)](_0x28175d)[_0x2c878b(0x170)](b[_0x2c878b(0x17a)](_0x44c741=>_0x44c741['members$']))[_0x2c878b(0x183)](_0x52616a=>_0x52277f(Array[_0x2c878b(0x194)](_0x52616a[_0x2c878b(0x185)]())));return s[_0x2c878b(0x16d)](_0x84455a);}[_0x31e480(0x1a0)](){const _0x18bb3e=_0x31e480,_0x268545=this['_univerInstanceService'][_0x18bb3e(0x176)]();if(!_0x268545)return i[_0x18bb3e(0x174)][_0x18bb3e(0x16f)];const _0x5ce329=this[_0x18bb3e(0x188)][_0x18bb3e(0x182)](_0x268545[_0x18bb3e(0x19d)]());return _0x5ce329?_0x5ce329[_0x18bb3e(0x199)][_0x18bb3e(0x16b)]:i[_0x18bb3e(0x174)][_0x18bb3e(0x16f)];}},exports[_0x31e480(0x16c)]=S([c(0x1,s[_0x31e480(0x17f)](s['Injector'])),c(0x2,s[_0x31e480(0x175)]),c(0x3,s[_0x31e480(0x17f)](v[_0x31e480(0x177)])),c(0x4,s[_0x31e480(0x17f)](i[_0x31e480(0x16e)]))],exports['FCollaboration']);class C extends l[_0x31e480(0x198)]{[_0x31e480(0x179)](){const _0x5307f1=_0x31e480;return this[_0x5307f1(0x172)][_0x5307f1(0x19a)](exports[_0x5307f1(0x16c)],{'getUniverSheet':_0x552865=>this[_0x5307f1(0x193)](_0x552865)});}[_0x31e480(0x18e)](_0x4b8e25,_0x284cba,_0x6a3522){const _0xa54667=_0x31e480;return this[_0xa54667(0x172)][_0xa54667(0x19b)](i['DataLoaderService'])[_0xa54667(0x17e)](_0x4b8e25,_0x284cba,_0x6a3522);}[_0x31e480(0x190)](_0x2f260b,_0x11c9e3,_0x2afe10){const _0x28de5a=_0x31e480;return this[_0x28de5a(0x172)][_0x28de5a(0x19b)](i[_0x28de5a(0x19c)])[_0x28de5a(0x167)](_0x2f260b,_0x11c9e3,_0x2afe10);}}l[_0x31e480(0x198)][_0x31e480(0x18b)](C);
1
+ 'use strict';const _0x341af9=_0x2445;(function(_0x3703be,_0x27748a){const _0x2d94ca=_0x2445,_0x558e39=_0x3703be();while(!![]){try{const _0x15df20=-parseInt(_0x2d94ca(0x1e5))/0x1*(-parseInt(_0x2d94ca(0x20f))/0x2)+parseInt(_0x2d94ca(0x1fd))/0x3+parseInt(_0x2d94ca(0x203))/0x4+parseInt(_0x2d94ca(0x213))/0x5*(parseInt(_0x2d94ca(0x1de))/0x6)+parseInt(_0x2d94ca(0x1e7))/0x7*(parseInt(_0x2d94ca(0x1ec))/0x8)+-parseInt(_0x2d94ca(0x200))/0x9+-parseInt(_0x2d94ca(0x1d9))/0xa;if(_0x15df20===_0x27748a)break;else _0x558e39['push'](_0x558e39['shift']());}catch(_0x418bc7){_0x558e39['push'](_0x558e39['shift']());}}}(_0x4008,0xba211));Object['defineProperty'](exports,Symbol[_0x341af9(0x204)],{'value':_0x341af9(0x1ea)});const s=require('@univerjs-pro/collaboration-client'),l=require('@univerjs/core/facade'),n=require('@univerjs/core'),d=require('@univerjs-pro/collaboration'),h=require('rxjs');class v extends l[_0x341af9(0x1fc)]{get[_0x341af9(0x1f0)](){const _0x3ffbcb=_0x341af9;return s[_0x3ffbcb(0x1f0)];}}l['FEnum'][_0x341af9(0x1f2)](v);class C{get['CollaborationStatusChanged'](){const _0x56a230=_0x341af9;return _0x56a230(0x1df);}}l[_0x341af9(0x20c)]['extend'](C);var S=Object[_0x341af9(0x1e3)],g=(_0x7e7276,_0x4e9131,_0x1ec097,_0x226aa9)=>{for(var _0x19d93b=_0x226aa9>0x1?void 0x0:_0x226aa9?S(_0x4e9131,_0x1ec097):_0x4e9131,_0xd767d2=_0x7e7276['length']-0x1,_0x388634;_0xd767d2>=0x0;_0xd767d2--)(_0x388634=_0x7e7276[_0xd767d2])&&(_0x19d93b=_0x388634(_0x19d93b)||_0x19d93b);return _0x19d93b;},b=(_0x34a681,_0x445d7d)=>(_0xa406e,_0x48b13a)=>_0x445d7d(_0xa406e,_0x48b13a,_0x34a681);function _0x4008(){const _0x2604b4=['from','loadUnitOfRevision','1999110YvXYgR','CollaborationStatusChanged','_snapshotService','waitForRoom$','loadActiveSheetAsync','getOwnPropertyDescriptor','toDisposable','949479CTiDGE','status$','2303bjTIRY','loadActiveSheet','FCollaboration','Module','NOT_COLLAB','8368VVElMG','members$','loadServerUnit','fireEvent','CollaborationStatus','FBase','extend','CollaborationController','_handler','getCollaboration','Event','Inject','_univerInstanceService','get','loadSheet','getCollaborationStatus','FEnum','826695xBkqYw','loadSheetAsync','_collaborationController','8202258LrGioW','[FCollaboration]:\x20this\x20method\x20should\x20be\x20override.','getUniverSheet','2748024HgDyiv','toStringTag','readyForCollab','IUniverInstanceService','FUniver','status','_injector','_initialize','add','FEventName','subscribeCollaborators','createInstance','2LlHokV','subscribe','Injector','getCollabEntity','5lriUiQ','loadServerUnitOfRevision','switchMap','SnapshotService','9156220RKzQcD','registerEventHandler','MemberService'];_0x4008=function(){return _0x2604b4;};return _0x4008();}exports['FCollaboration']=class extends l[_0x341af9(0x1f1)]{constructor(_0x144672,_0x59a3aa,_0x329d16,_0x4c41e2,_0x15a7f5){const _0x42358e=_0x341af9;super(),this['_handler']=_0x144672,this[_0x42358e(0x209)]=_0x59a3aa,this[_0x42358e(0x1f8)]=_0x329d16,this[_0x42358e(0x1e0)]=_0x4c41e2,this[_0x42358e(0x1ff)]=_0x15a7f5;}async[_0x341af9(0x1e8)](){return this['loadActiveSheetAsync']();}async[_0x341af9(0x1e2)](){const _0x163a09=_0x341af9;throw new Error(_0x163a09(0x201));}async[_0x341af9(0x1fa)](_0x1e9464){const _0x2c73a7=_0x341af9;return this[_0x2c73a7(0x1fe)](_0x1e9464);}async['loadSheetAsync'](_0x487236,_0x5d480c){const _0x59ec7e=_0x341af9;return await this[_0x59ec7e(0x1e0)][_0x59ec7e(0x1fa)](_0x487236,0x0,_0x5d480c)?(await this[_0x59ec7e(0x1ff)][_0x59ec7e(0x205)](_0x487236),this[_0x59ec7e(0x1f4)][_0x59ec7e(0x202)](_0x487236)):null;}[_0x341af9(0x20d)](_0x5f31a0,_0x40c6f8){const _0x3b8058=_0x341af9,_0x2796b8=this[_0x3b8058(0x209)][_0x3b8058(0x1f9)](s[_0x3b8058(0x1db)])[_0x3b8058(0x1e1)](_0x5f31a0)['pipe'](h[_0x3b8058(0x215)](_0x1979be=>_0x1979be[_0x3b8058(0x1ed)]))[_0x3b8058(0x210)](_0x1f0371=>_0x40c6f8(Array[_0x3b8058(0x1dc)](_0x1f0371['values']())));return n[_0x3b8058(0x1e4)](_0x2796b8);}[_0x341af9(0x1fb)](_0x38a1c0){const _0x2f73d2=_0x341af9;var _0x2c9f6a;let _0x20b30e;if(_0x38a1c0)_0x20b30e=_0x38a1c0;else{const _0x7a7175=this[_0x2f73d2(0x1f8)]['getFocusedUnit']();_0x20b30e=_0x7a7175==null?void 0x0:_0x7a7175['getUnitId']();}if(!_0x20b30e)return s['CollaborationStatus'][_0x2f73d2(0x1eb)];const _0x4ee959=this['_collaborationController'][_0x2f73d2(0x212)](_0x20b30e);return(_0x2c9f6a=_0x4ee959==null?void 0x0:_0x4ee959['state'][_0x2f73d2(0x208)])!=null?_0x2c9f6a:s[_0x2f73d2(0x1f0)][_0x2f73d2(0x1eb)];}},exports[_0x341af9(0x1e9)]=g([b(0x1,n[_0x341af9(0x1f7)](n[_0x341af9(0x211)])),b(0x2,n[_0x341af9(0x206)]),b(0x3,n[_0x341af9(0x1f7)](d[_0x341af9(0x216)])),b(0x4,n[_0x341af9(0x1f7)](s[_0x341af9(0x1f3)]))],exports[_0x341af9(0x1e9)]);class _ extends l['FUniver']{[_0x341af9(0x20a)](_0x3436ac){const _0x195ef6=_0x341af9,_0x318170=_0x3436ac['get'](s[_0x195ef6(0x1f3)]);this[_0x195ef6(0x1da)](this[_0x195ef6(0x1f6)]['CollaborationStatusChanged'],()=>{const _0x26ce6b=_0x195ef6,_0x2c3c82=new n['DisposableCollection'](),_0x50b1fc=_0x318170['entityInit$'][_0x26ce6b(0x210)](_0x3864a8=>{const _0x2802ae=_0x26ce6b,_0xb084ae=_0x3864a8[_0x2802ae(0x1e6)][_0x2802ae(0x210)](_0x4109c2=>{const _0x53304e=_0x2802ae;this[_0x53304e(0x1ef)](this[_0x53304e(0x1f6)]['CollaborationStatusChanged'],{'unitId':_0x3864a8['unitID'],'status':_0x4109c2});});_0x2c3c82['add'](n['toDisposable'](_0xb084ae));});return _0x2c3c82[_0x26ce6b(0x20b)](n['toDisposable'](_0x50b1fc)),_0x2c3c82;});}[_0x341af9(0x1f5)](){const _0x50976f=_0x341af9;return this[_0x50976f(0x209)][_0x50976f(0x20e)](exports[_0x50976f(0x1e9)],{'getUniverSheet':_0x2bfdb4=>this['getUniverSheet'](_0x2bfdb4)});}[_0x341af9(0x1ee)](_0x176221,_0x1ef23e,_0x16ad30){const _0x38b7d0=_0x341af9;return this[_0x38b7d0(0x209)][_0x38b7d0(0x1f9)](s['DataLoaderService'])['loadUnit'](_0x176221,_0x1ef23e,_0x16ad30);}[_0x341af9(0x214)](_0x3834a8,_0x20b42e,_0x33c5d4){const _0x27776c=_0x341af9;return this[_0x27776c(0x209)][_0x27776c(0x1f9)](s['DataLoaderService'])[_0x27776c(0x1dd)](_0x3834a8,_0x20b42e,_0x33c5d4);}}function _0x2445(_0x251e61,_0x3baea5){_0x251e61=_0x251e61-0x1d9;const _0x400867=_0x4008();let _0x244564=_0x400867[_0x251e61];return _0x244564;}l[_0x341af9(0x207)][_0x341af9(0x1f2)](_);