@univerjs-pro/collaboration-client 0.5.5-nightly.202501241606 → 0.6.0-alpha.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/lib/cjs/facade.js CHANGED
@@ -1 +1 @@
1
- 'use strict';var _0x3bf08a=_0x1170;function _0x3f1f(){var _0x12ad11=['IUniverInstanceService','3791013LfiJtd','pipe','9196986OCWNkP','Module','MemberService','_univerInstanceService','__decorateClass','UniverInstanceType','Injector','name','4jIwKRD','subscribe','loadActiveSheetAsync','get','waitForRoom$','944Xggnbk','2853098EcANva','Inject','99430068cesXvM','FCollaboration','values','toStringTag','getUniverSheet','11hQtJtG','defineProperty','1768335hpZuYO','FUniverCollaborationClientMixin','1VEfmtd','[FCollaboration]:\x20this\x20method\x20should\x20be\x20override.','@univerjs/core','length','__decorateParam','@univerjs-pro/collaboration','14570jHvyFy','88648PDmJKl','loadSheet','extend','_snapshotService','loadSheetAsync','createInstance','@univerjs-pro/collaboration-client','SnapshotService','getOwnPropertyDescriptor','from','FUniver','_handler','_injector','FBase','UNIVER_SHEET','getUnit','readyForCollab','8217dmKLbh','_collaborationController','getCollaboration'];_0x3f1f=function(){return _0x12ad11;};return _0x3f1f();}function _0x1170(_0x3b6b2f,_0x114419){var _0x3f1f5e=_0x3f1f();return _0x1170=function(_0x117091,_0x2d4145){_0x117091=_0x117091-0x174;var _0x53002a=_0x3f1f5e[_0x117091];return _0x53002a;},_0x1170(_0x3b6b2f,_0x114419);}(function(_0x1f0772,_0x5bb66d){var _0x4b9f2f=_0x1170,_0x326007=_0x1f0772();while(!![]){try{var _0x38033d=parseInt(_0x4b9f2f(0x19d))/0x1*(-parseInt(_0x4b9f2f(0x192))/0x2)+-parseInt(_0x4b9f2f(0x182))/0x3+parseInt(_0x4b9f2f(0x18c))/0x4*(-parseInt(_0x4b9f2f(0x19b))/0x5)+-parseInt(_0x4b9f2f(0x184))/0x6+parseInt(_0x4b9f2f(0x1a4))/0x7*(-parseInt(_0x4b9f2f(0x191))/0x8)+parseInt(_0x4b9f2f(0x17e))/0x9*(-parseInt(_0x4b9f2f(0x1a3))/0xa)+parseInt(_0x4b9f2f(0x199))/0xb*(parseInt(_0x4b9f2f(0x194))/0xc);if(_0x38033d===_0x5bb66d)break;else _0x326007['push'](_0x326007['shift']());}catch(_0x5dc81d){_0x326007['push'](_0x326007['shift']());}}}(_0x3f1f,0xd7f30));var __defProp=Object[_0x3bf08a(0x19a)],__name=(_0xa7621a,_0x1898c2)=>__defProp(_0xa7621a,_0x3bf08a(0x18b),{'value':_0x1898c2,'configurable':!0x0});Object[_0x3bf08a(0x19a)](exports,Symbol[_0x3bf08a(0x197)],{'value':_0x3bf08a(0x185)});const core=require(_0x3bf08a(0x19f)),collaboration=require(_0x3bf08a(0x1a2)),collaborationClient=require(_0x3bf08a(0x1aa)),rxjs=require('rxjs');var __defProp2=Object[_0x3bf08a(0x19a)],__getOwnPropDesc=Object[_0x3bf08a(0x175)],__decorateClass=__name((_0x38191f,_0x4b35eb,_0x33b509,_0x2153a5)=>{var _0xdd1a2b=_0x3bf08a;for(var _0x5044f8=_0x2153a5>0x1?void 0x0:_0x2153a5?__getOwnPropDesc(_0x4b35eb,_0x33b509):_0x4b35eb,_0x2ec14f=_0x38191f[_0xdd1a2b(0x1a0)]-0x1,_0x36ba15;_0x2ec14f>=0x0;_0x2ec14f--)(_0x36ba15=_0x38191f[_0x2ec14f])&&(_0x5044f8=(_0x2153a5?_0x36ba15(_0x4b35eb,_0x33b509,_0x5044f8):_0x36ba15(_0x5044f8))||_0x5044f8);return _0x2153a5&&_0x5044f8&&__defProp2(_0x4b35eb,_0x33b509,_0x5044f8),_0x5044f8;},_0x3bf08a(0x188)),__decorateParam=__name((_0x32b04a,_0x514975)=>(_0x554ba1,_0x43c648)=>_0x514975(_0x554ba1,_0x43c648,_0x32b04a),_0x3bf08a(0x1a1)),_a;exports[_0x3bf08a(0x195)]=(_a=class extends core[_0x3bf08a(0x17a)]{constructor(_0x3dc0ec,_0x53141e,_0x585c7d,_0xf1cb3a,_0x20a4fa){var _0x4995d7=_0x3bf08a;super(),this[_0x4995d7(0x178)]=_0x3dc0ec,this[_0x4995d7(0x179)]=_0x53141e,this[_0x4995d7(0x187)]=_0x585c7d,this['_snapshotService']=_0xf1cb3a,this[_0x4995d7(0x17f)]=_0x20a4fa;}async['loadActiveSheet'](){var _0x23d5d2=_0x3bf08a;return this[_0x23d5d2(0x18e)]();}async[_0x3bf08a(0x18e)](){var _0x2062ef=_0x3bf08a;throw new Error(_0x2062ef(0x19e));}async[_0x3bf08a(0x1a5)](_0x3279c3){var _0x257a86=_0x3bf08a;return this[_0x257a86(0x1a8)](_0x3279c3);}async[_0x3bf08a(0x1a8)](_0x5a75d2){var _0x22c769=_0x3bf08a;return this['_univerInstanceService'][_0x22c769(0x17c)](_0x5a75d2,core[_0x22c769(0x189)][_0x22c769(0x17b)])||await this[_0x22c769(0x1a7)][_0x22c769(0x1a5)](_0x5a75d2,0x0)?(await this[_0x22c769(0x17f)][_0x22c769(0x17d)](_0x5a75d2),this[_0x22c769(0x178)][_0x22c769(0x198)](_0x5a75d2)):null;}['subscribeCollaborators'](_0x224381,_0x38e60e){var _0x5ba00f=_0x3bf08a;const _0x159115=this['_injector'][_0x5ba00f(0x18f)](collaborationClient[_0x5ba00f(0x186)])[_0x5ba00f(0x190)](_0x224381)[_0x5ba00f(0x183)](rxjs['switchMap'](_0x38647e=>_0x38647e['members$']))[_0x5ba00f(0x18d)](_0x2141cb=>_0x38e60e(Array[_0x5ba00f(0x176)](_0x2141cb[_0x5ba00f(0x196)]())));return core['toDisposable'](_0x159115);}},__name(_a,_0x3bf08a(0x195)),_a),exports['FCollaboration']=__decorateClass([__decorateParam(0x1,core[_0x3bf08a(0x193)](core[_0x3bf08a(0x18a)])),__decorateParam(0x2,core[_0x3bf08a(0x181)]),__decorateParam(0x3,core['Inject'](collaboration[_0x3bf08a(0x174)])),__decorateParam(0x4,core[_0x3bf08a(0x193)](collaborationClient['CollaborationController']))],exports[_0x3bf08a(0x195)]);const _FUniverCollaborationClientMixin=class _FUniverCollaborationClientMixin extends core[_0x3bf08a(0x177)]{[_0x3bf08a(0x180)](){var _0x14b719=_0x3bf08a;return this[_0x14b719(0x179)][_0x14b719(0x1a9)](exports[_0x14b719(0x195)],{'getUniverSheet':__name(_0x1a3041=>this[_0x14b719(0x198)](_0x1a3041),'getUniverSheet')});}};__name(_FUniverCollaborationClientMixin,_0x3bf08a(0x19c));let FUniverCollaborationClientMixin=_FUniverCollaborationClientMixin;core[_0x3bf08a(0x177)][_0x3bf08a(0x1a6)](FUniverCollaborationClientMixin);
1
+ 'use strict';function _0xd849(){var _0x470767=['from','waitForRoom$','SnapshotService','IUniverInstanceService','toStringTag','145504bbSYtm','Inject','extend','CollaborationController','readyForCollab','50lOOqmt','rxjs','length','getUniverSheet','subscribeCollaborators','4013586aCiOjL','[FCollaboration]:\x20this\x20method\x20should\x20be\x20override.','_injector','@univerjs-pro/collaboration','297EQdUza','loadActiveSheetAsync','UniverInstanceType','loadSheetAsync','FUniver','5121000akNScc','getCollaboration','969925PBjfRP','defineProperty','_collaborationController','loadSheet','pipe','_handler','89svaRQm','values','members$','_snapshotService','_univerInstanceService','16402kVGMzi','46628jssVdE','subscribe','117BGmEdI','FCollaboration','5413912xFoAwV','UNIVER_SHEET','loadActiveSheet','Injector','toDisposable','FBase','getOwnPropertyDescriptor','Module'];_0xd849=function(){return _0x470767;};return _0xd849();}function _0x1857(_0x1d2e41,_0x703be0){var _0xd849ae=_0xd849();return _0x1857=function(_0x18576a,_0xb006d0){_0x18576a=_0x18576a-0x85;var _0x1ff68=_0xd849ae[_0x18576a];return _0x1ff68;},_0x1857(_0x1d2e41,_0x703be0);}var _0x5a9ebf=_0x1857;(function(_0x31ee39,_0x245589){var _0x52568f=_0x1857,_0x37be2a=_0x31ee39();while(!![]){try{var _0x2bc774=-parseInt(_0x52568f(0x92))/0x1*(-parseInt(_0x52568f(0x97))/0x2)+parseInt(_0x52568f(0x9a))/0x3*(-parseInt(_0x52568f(0x98))/0x4)+-parseInt(_0x52568f(0x8a))/0x5+parseInt(_0x52568f(0xb3))/0x6+parseInt(_0x52568f(0x9c))/0x7+-parseInt(_0x52568f(0xa9))/0x8*(parseInt(_0x52568f(0x85))/0x9)+parseInt(_0x52568f(0xae))/0xa*(parseInt(_0x52568f(0x8c))/0xb);if(_0x2bc774===_0x245589)break;else _0x37be2a['push'](_0x37be2a['shift']());}catch(_0x7150d2){_0x37be2a['push'](_0x37be2a['shift']());}}}(_0xd849,0x82644));Object[_0x5a9ebf(0x8d)](exports,Symbol[_0x5a9ebf(0xa8)],{'value':_0x5a9ebf(0xa3)});const o=require('@univerjs/core'),h=require(_0x5a9ebf(0xb6)),c=require('@univerjs-pro/collaboration-client'),b=require(_0x5a9ebf(0xaf));var v=Object['defineProperty'],u=Object[_0x5a9ebf(0xa2)],S=(_0x3c0991,_0x4a6745,_0x3003ef,_0x1e037f)=>{var _0x14fca7=_0x5a9ebf;for(var _0x3edc26=_0x1e037f>0x1?void 0x0:_0x1e037f?u(_0x4a6745,_0x3003ef):_0x4a6745,_0x4fcf04=_0x3c0991[_0x14fca7(0xb0)]-0x1,_0x235a5b;_0x4fcf04>=0x0;_0x4fcf04--)(_0x235a5b=_0x3c0991[_0x4fcf04])&&(_0x3edc26=(_0x1e037f?_0x235a5b(_0x4a6745,_0x3003ef,_0x3edc26):_0x235a5b(_0x3edc26))||_0x3edc26);return _0x1e037f&&_0x3edc26&&v(_0x4a6745,_0x3003ef,_0x3edc26),_0x3edc26;},s=(_0x187324,_0x194db0)=>(_0x28d665,_0x14ae5c)=>_0x194db0(_0x28d665,_0x14ae5c,_0x187324);exports[_0x5a9ebf(0x9b)]=class extends o[_0x5a9ebf(0xa1)]{constructor(_0x525bb2,_0x2a4b16,_0x367dd0,_0x1cc09f,_0x59df68){var _0x3f65df=_0x5a9ebf;super(),this['_handler']=_0x525bb2,this['_injector']=_0x2a4b16,this[_0x3f65df(0x96)]=_0x367dd0,this['_snapshotService']=_0x1cc09f,this[_0x3f65df(0x8e)]=_0x59df68;}async[_0x5a9ebf(0x9e)](){var _0x345163=_0x5a9ebf;return this[_0x345163(0x86)]();}async[_0x5a9ebf(0x86)](){var _0x3b01cb=_0x5a9ebf;throw new Error(_0x3b01cb(0xb4));}async[_0x5a9ebf(0x8f)](_0x362820){var _0x2a891e=_0x5a9ebf;return this[_0x2a891e(0x88)](_0x362820);}async[_0x5a9ebf(0x88)](_0x3de8b1){var _0x1d12cc=_0x5a9ebf;return this[_0x1d12cc(0x96)]['getUnit'](_0x3de8b1,o[_0x1d12cc(0x87)][_0x1d12cc(0x9d)])||await this[_0x1d12cc(0x95)][_0x1d12cc(0x8f)](_0x3de8b1,0x0)?(await this[_0x1d12cc(0x8e)][_0x1d12cc(0xad)](_0x3de8b1),this[_0x1d12cc(0x91)][_0x1d12cc(0xb1)](_0x3de8b1)):null;}[_0x5a9ebf(0xb2)](_0x16438d,_0x434680){var _0x5df7b0=_0x5a9ebf;const _0x1dfe1c=this[_0x5df7b0(0xb5)]['get'](c['MemberService'])[_0x5df7b0(0xa5)](_0x16438d)[_0x5df7b0(0x90)](b['switchMap'](_0x4f73b1=>_0x4f73b1[_0x5df7b0(0x94)]))[_0x5df7b0(0x99)](_0x1473de=>_0x434680(Array[_0x5df7b0(0xa4)](_0x1473de[_0x5df7b0(0x93)]())));return o[_0x5df7b0(0xa0)](_0x1dfe1c);}},exports[_0x5a9ebf(0x9b)]=S([s(0x1,o[_0x5a9ebf(0xaa)](o[_0x5a9ebf(0x9f)])),s(0x2,o[_0x5a9ebf(0xa7)]),s(0x3,o[_0x5a9ebf(0xaa)](h[_0x5a9ebf(0xa6)])),s(0x4,o[_0x5a9ebf(0xaa)](c[_0x5a9ebf(0xac)]))],exports[_0x5a9ebf(0x9b)]);class _ extends o['FUniver']{[_0x5a9ebf(0x8b)](){var _0x483646=_0x5a9ebf;return this[_0x483646(0xb5)]['createInstance'](exports[_0x483646(0x9b)],{'getUniverSheet':_0x45442d=>this['getUniverSheet'](_0x45442d)});}}o[_0x5a9ebf(0x89)][_0x5a9ebf(0xab)](_);