@univerjs-pro/collaboration-client 0.20.1 → 0.21.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 +1 -1
- package/lib/cjs/index.js +1 -1
- package/lib/cjs/locale/ca-ES.js +1 -1
- package/lib/cjs/locale/en-US.js +1 -1
- package/lib/cjs/locale/es-ES.js +1 -1
- package/lib/cjs/locale/fa-IR.js +1 -1
- package/lib/cjs/locale/fr-FR.js +1 -1
- package/lib/cjs/locale/ja-JP.js +1 -1
- package/lib/cjs/locale/ko-KR.js +1 -1
- package/lib/cjs/locale/ru-RU.js +1 -1
- package/lib/cjs/locale/sk-SK.js +1 -1
- package/lib/cjs/locale/vi-VN.js +1 -1
- package/lib/cjs/locale/zh-CN.js +1 -1
- package/lib/cjs/locale/zh-TW.js +1 -1
- package/lib/es/facade.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/es/locale/ca-ES.js +1 -1
- package/lib/es/locale/en-US.js +1 -1
- package/lib/es/locale/es-ES.js +1 -1
- package/lib/es/locale/fa-IR.js +1 -1
- package/lib/es/locale/fr-FR.js +1 -1
- package/lib/es/locale/ja-JP.js +1 -1
- package/lib/es/locale/ko-KR.js +1 -1
- package/lib/es/locale/ru-RU.js +1 -1
- package/lib/es/locale/sk-SK.js +1 -1
- package/lib/es/locale/vi-VN.js +1 -1
- package/lib/es/locale/zh-CN.js +1 -1
- package/lib/es/locale/zh-TW.js +1 -1
- package/lib/facade.js +1 -1
- package/lib/index.js +1 -1
- package/lib/locale/ca-ES.js +1 -1
- package/lib/locale/en-US.js +1 -1
- package/lib/locale/es-ES.js +1 -1
- package/lib/locale/fa-IR.js +1 -1
- package/lib/locale/fr-FR.js +1 -1
- package/lib/locale/ja-JP.js +1 -1
- package/lib/locale/ko-KR.js +1 -1
- package/lib/locale/ru-RU.js +1 -1
- package/lib/locale/sk-SK.js +1 -1
- package/lib/locale/vi-VN.js +1 -1
- package/lib/locale/zh-CN.js +1 -1
- package/lib/locale/zh-TW.js +1 -1
- package/lib/types/controllers/collaboration/collaboration-entity.d.ts +7 -8
- package/lib/types/controllers/collaboration/collaboration-state.d.ts +11 -12
- package/lib/types/controllers/collaboration/collaboration.controller.d.ts +1 -1
- package/lib/types/services/auth-server/util.d.ts +1 -0
- package/lib/types/services/data-loader/data-loader.service.d.ts +4 -5
- package/lib/types/services/local-cache/local-cache.service.d.ts +3 -4
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +1 -1
- package/lib/umd/locale/ca-ES.js +1 -1
- package/lib/umd/locale/en-US.js +1 -1
- package/lib/umd/locale/es-ES.js +1 -1
- package/lib/umd/locale/fa-IR.js +1 -1
- package/lib/umd/locale/fr-FR.js +1 -1
- package/lib/umd/locale/ja-JP.js +1 -1
- package/lib/umd/locale/ko-KR.js +1 -1
- package/lib/umd/locale/ru-RU.js +1 -1
- package/lib/umd/locale/sk-SK.js +1 -1
- package/lib/umd/locale/vi-VN.js +1 -1
- package/lib/umd/locale/zh-CN.js +1 -1
- package/lib/umd/locale/zh-TW.js +1 -1
- package/package.json +15 -16
package/lib/cjs/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x103568=_0xc92f;(function(_0x67a008,_0x1d06ed){const _0x15ff30=_0xc92f,_0xcf5fab=_0x67a008();while(!![]){try{const _0x374825=-parseInt(_0x15ff30(0x1c6))/0x1*(parseInt(_0x15ff30(0x1f1))/0x2)+parseInt(_0x15ff30(0x1c7))/0x3+-parseInt(_0x15ff30(0x1bb))/0x4+-parseInt(_0x15ff30(0x1bc))/0x5*(parseInt(_0x15ff30(0x1b3))/0x6)+-parseInt(_0x15ff30(0x1be))/0x7+parseInt(_0x15ff30(0x1e7))/0x8*(parseInt(_0x15ff30(0x1c1))/0x9)+-parseInt(_0x15ff30(0x1b9))/0xa*(-parseInt(_0x15ff30(0x1ea))/0xb);if(_0x374825===_0x1d06ed)break;else _0xcf5fab['push'](_0xcf5fab['shift']());}catch(_0x319bb7){_0xcf5fab['push'](_0xcf5fab['shift']());}}}(_0x222b,0xe790d),Object[_0x103568(0x1c4)](exports,Symbol['toStringTag'],{'value':'Module'}));let _univerjs_pro_collaboration_client=require('@univerjs-pro/collaboration-client'),_univerjs_core_facade=require('@univerjs/core/facade'),_univerjs_core=require('@univerjs/core'),_univerjs_pro_collaboration=require('@univerjs-pro/collaboration'),rxjs=require('rxjs');var FCollaborationClientEnumMixin=class extends _univerjs_core_facade['FEnum']{get[_0x103568(0x1b7)](){return _univerjs_pro_collaboration_client['CollaborationStatus'];}};_univerjs_core_facade[_0x103568(0x1d5)][_0x103568(0x1d6)](FCollaborationClientEnumMixin);var FCollaborationEventNameMixin=class extends _univerjs_core_facade[_0x103568(0x1d4)]{get[_0x103568(0x1b1)](){const _0x5e97ae=_0x103568;return _0x5e97ae(0x1b1);}};_univerjs_core_facade[_0x103568(0x1d4)][_0x103568(0x1d6)](FCollaborationEventNameMixin);function __decorateParam(_0x32e370,_0x19665d){return function(_0x1c12fd,_0x2b735a){_0x19665d(_0x1c12fd,_0x2b735a,_0x32e370);};}function __decorate(_0x53d234,_0x1ae896,_0x5bbaa9,_0x594768){const _0x5794df=_0x103568;var _0x4d066e=arguments['length'],_0x1a601a=_0x4d066e<0x3?_0x1ae896:_0x594768===null?_0x594768=Object[_0x5794df(0x1c8)](_0x1ae896,_0x5bbaa9):_0x594768,_0x49812e;if(typeof Reflect===_0x5794df(0x1e2)&&typeof Reflect['decorate']===_0x5794df(0x1c3))_0x1a601a=Reflect[_0x5794df(0x1e1)](_0x53d234,_0x1ae896,_0x5bbaa9,_0x594768);else{for(var _0x47c92f=_0x53d234[_0x5794df(0x1c2)]-0x1;_0x47c92f>=0x0;_0x47c92f--)if(_0x49812e=_0x53d234[_0x47c92f])_0x1a601a=(_0x4d066e<0x3?_0x49812e(_0x1a601a):_0x4d066e>0x3?_0x49812e(_0x1ae896,_0x5bbaa9,_0x1a601a):_0x49812e(_0x1ae896,_0x5bbaa9))||_0x1a601a;}return _0x4d066e>0x3&&_0x1a601a&&Object['defineProperty'](_0x1ae896,_0x5bbaa9,_0x1a601a),_0x1a601a;}let FCollaboration=class FCollaboration extends _univerjs_core_facade[_0x103568(0x1f0)]{constructor(_0x59fa33,_0x1e5eda,_0x1e270a,_0x5a2cd8,_0x31a8dd){const _0x5f0ef0=_0x103568;super(),this['_handler']=_0x59fa33,this[_0x5f0ef0(0x1e8)]=_0x1e5eda,this[_0x5f0ef0(0x1dc)]=_0x1e270a,this['_snapshotService']=_0x5a2cd8,this[_0x5f0ef0(0x1c0)]=_0x31a8dd;}async[_0x103568(0x1b8)](){return this['loadActiveSheetAsync']();}async[_0x103568(0x1e0)](){throw new Error('[FCollaboration]:\x20this\x20method\x20should\x20be\x20override.');}async['loadSheet'](_0x1adfb5){const _0x57481c=_0x103568;return this[_0x57481c(0x1cb)](_0x1adfb5);}async[_0x103568(0x1cb)](_0x267478,_0x28bb8d){const _0x232956=_0x103568;if(!await this[_0x232956(0x1bd)][_0x232956(0x1ba)](_0x267478,0x0,_0x28bb8d))return null;return await this[_0x232956(0x1c0)][_0x232956(0x1ef)](_0x267478),this[_0x232956(0x1e5)][_0x232956(0x1d1)](_0x267478);}[_0x103568(0x1db)](_0x13fab7,_0x1812ea){const _0x4ef7a6=_0x103568;return(0x0,_univerjs_core[_0x4ef7a6(0x1cf)])(this['_injector']['get'](_univerjs_pro_collaboration_client['MemberService'])[_0x4ef7a6(0x1b0)](_0x13fab7)[_0x4ef7a6(0x1d9)]((0x0,rxjs[_0x4ef7a6(0x1e3)])(_0x3532b7=>_0x3532b7['members$']))[_0x4ef7a6(0x1df)](_0x40ee78=>_0x1812ea(Array[_0x4ef7a6(0x1b4)](_0x40ee78[_0x4ef7a6(0x1ec)]()))));}[_0x103568(0x1ca)](_0x495df2){const _0xeb1d9f=_0x103568;var _0x2dd18f;let _0x316c70;if(_0x495df2)_0x316c70=_0x495df2;else{const _0x26b0f1=this[_0xeb1d9f(0x1dc)][_0xeb1d9f(0x1c5)]();_0x316c70=_0x26b0f1===null||_0x26b0f1===void 0x0?void 0x0:_0x26b0f1['getUnitId']();}if(!_0x316c70)return _univerjs_pro_collaboration_client[_0xeb1d9f(0x1b7)][_0xeb1d9f(0x1b5)];const _0x386f9e=this[_0xeb1d9f(0x1c0)]['getCollabEntity'](_0x316c70);return(_0x2dd18f=_0x386f9e===null||_0x386f9e===void 0x0?void 0x0:_0x386f9e[_0xeb1d9f(0x1dd)][_0xeb1d9f(0x1bf)])!==null&&_0x2dd18f!==void 0x0?_0x2dd18f:_univerjs_pro_collaboration_client[_0xeb1d9f(0x1b7)][_0xeb1d9f(0x1b5)];}};FCollaboration=__decorate([__decorateParam(0x1,(0x0,_univerjs_core[_0x103568(0x1cd)])(_univerjs_core[_0x103568(0x1e4)])),__decorateParam(0x2,_univerjs_core[_0x103568(0x1ed)]),__decorateParam(0x3,(0x0,_univerjs_core[_0x103568(0x1cd)])(_univerjs_pro_collaboration[_0x103568(0x1d3)])),__decorateParam(0x4,(0x0,_univerjs_core[_0x103568(0x1cd)])(_univerjs_pro_collaboration_client[_0x103568(0x1d7)]))],FCollaboration);var FUniverCollaborationClientMixin=class extends _univerjs_core_facade[_0x103568(0x1eb)]{[_0x103568(0x1ce)](_0x31b5d1){const _0x2bea0b=_0x103568,_0x1aab09=_0x31b5d1['get'](_univerjs_pro_collaboration_client[_0x2bea0b(0x1d7)]);this[_0x2bea0b(0x1d0)](this['registerEventHandler'](this['Event'][_0x2bea0b(0x1b1)],()=>{const _0xd76747=_0x2bea0b,_0x48152c=new _univerjs_core[(_0xd76747(0x1b2))](),_0x596d03=_0x1aab09['entityInit$'][_0xd76747(0x1df)](_0x13e81b=>{const _0x57094d=_0xd76747,_0x3b6e54=_0x13e81b['status$'][_0x57094d(0x1df)](_0x401a39=>{const _0x413835=_0x57094d,_0x42f4a5={'unitId':_0x13e81b[_0x413835(0x1e9)],'status':_0x401a39};this['fireEvent'](this[_0x413835(0x1b6)][_0x413835(0x1b1)],_0x42f4a5);});_0x48152c[_0x57094d(0x1d2)]((0x0,_univerjs_core[_0x57094d(0x1cf)])(_0x3b6e54));});return _0x48152c[_0xd76747(0x1d2)]((0x0,_univerjs_core['toDisposable'])(_0x596d03)),_0x48152c;}));}['getCollaboration'](){const _0xeb76a5=_0x103568;return this[_0xeb76a5(0x1e8)][_0xeb76a5(0x1ee)](FCollaboration,{'getUniverSheet':_0x49a21b=>this['getUniverSheet'](_0x49a21b)});}[_0x103568(0x1da)](_0x21b533,_0x2b63af,_0xefa4d4){const _0xa0927e=_0x103568;return this[_0xa0927e(0x1e8)][_0xa0927e(0x1c9)](_univerjs_pro_collaboration_client[_0xa0927e(0x1e6)])['loadUnit'](_0x21b533,_0x2b63af,_0xefa4d4);}[_0x103568(0x1de)](_0x4a4a4e,_0x512d88,_0xafb288){const _0x549441=_0x103568;return this['_injector']['get'](_univerjs_pro_collaboration_client[_0x549441(0x1e6)])[_0x549441(0x1cc)](_0x4a4a4e,_0x512d88,_0xafb288);}};function _0xc92f(_0x2e0541,_0x1a9478){_0x2e0541=_0x2e0541-0x1b0;const _0x222bd3=_0x222b();let _0xc92f32=_0x222bd3[_0x2e0541];return _0xc92f32;}function _0x222b(){const _0x254e37=['FEventName','FEnum','extend','CollaborationController','FCollaboration','pipe','loadServerUnit','subscribeCollaborators','_univerInstanceService','state','loadServerUnitOfRevision','subscribe','loadActiveSheetAsync','decorate','object','switchMap','Injector','_handler','DataLoaderService','8gGiNyl','_injector','unitID','127578jwnWFm','FUniver','values','IUniverInstanceService','createInstance','readyForCollab','FBase','2UbNEHq','waitForRoom$','CollaborationStatusChanged','DisposableCollection','67926JiePZG','from','NOT_COLLAB','Event','CollaborationStatus','loadActiveSheet','200hSsXKN','loadSheet','591972sDfXhA','145nKbKsO','_snapshotService','8172752BjNkAt','status','_collaborationController','6462513aUJfBR','length','function','defineProperty','getFocusedUnit','136002jDutOJ','5334948TLqCXH','getOwnPropertyDescriptor','get','getCollaborationStatus','loadSheetAsync','loadUnitOfRevision','Inject','_initialize','toDisposable','disposeWithMe','getUniverSheet','add','SnapshotService'];_0x222b=function(){return _0x254e37;};return _0x222b();}_univerjs_core_facade[_0x103568(0x1eb)][_0x103568(0x1d6)](FUniverCollaborationClientMixin),Object[_0x103568(0x1c4)](exports,_0x103568(0x1d8),{'enumerable':!![],'get':function(){return FCollaboration;}});
|