@univerjs-pro/collaboration-client 0.21.0 → 0.21.1
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/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 +11 -11
package/lib/cjs/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x9bbd69=_0x1e6e;(function(_0xb9da18,_0x3fd475){const _0x5be3a5=_0x1e6e,_0x285b8f=_0xb9da18();while(!![]){try{const _0x391a56=parseInt(_0x5be3a5(0x186))/0x1*(parseInt(_0x5be3a5(0x1a4))/0x2)+-parseInt(_0x5be3a5(0x1ab))/0x3+-parseInt(_0x5be3a5(0x1a5))/0x4*(-parseInt(_0x5be3a5(0x188))/0x5)+parseInt(_0x5be3a5(0x19b))/0x6*(parseInt(_0x5be3a5(0x17c))/0x7)+-parseInt(_0x5be3a5(0x1b5))/0x8*(-parseInt(_0x5be3a5(0x1b9))/0x9)+parseInt(_0x5be3a5(0x197))/0xa*(parseInt(_0x5be3a5(0x1a0))/0xb)+-parseInt(_0x5be3a5(0x1a3))/0xc*(parseInt(_0x5be3a5(0x17d))/0xd);if(_0x391a56===_0x3fd475)break;else _0x285b8f['push'](_0x285b8f['shift']());}catch(_0x3c853d){_0x285b8f['push'](_0x285b8f['shift']());}}}(_0x1c87,0xeac28),Object[_0x9bbd69(0x19d)](exports,Symbol[_0x9bbd69(0x1b4)],{'value':_0x9bbd69(0x19e)}));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[_0x9bbd69(0x175)]{get['CollaborationStatus'](){const _0x379fda=_0x9bbd69;return _univerjs_pro_collaboration_client[_0x379fda(0x191)];}};function _0x1e6e(_0x1aa373,_0x43b3b1){_0x1aa373=_0x1aa373-0x175;const _0x1c87e9=_0x1c87();let _0x1e6e67=_0x1c87e9[_0x1aa373];return _0x1e6e67;}_univerjs_core_facade['FEnum']['extend'](FCollaborationClientEnumMixin);var FCollaborationEventNameMixin=class extends _univerjs_core_facade[_0x9bbd69(0x1b3)]{get[_0x9bbd69(0x19a)](){return'CollaborationStatusChanged';}};_univerjs_core_facade[_0x9bbd69(0x1b3)]['extend'](FCollaborationEventNameMixin);function __decorateParam(_0x168b29,_0xd4e361){return function(_0x5957fe,_0x309b00){_0xd4e361(_0x5957fe,_0x309b00,_0x168b29);};}function __decorate(_0xd662f1,_0x25f7a1,_0x3a870d,_0x57cadd){const _0x98df53=_0x9bbd69;var _0x114090=arguments[_0x98df53(0x1a2)],_0x316062=_0x114090<0x3?_0x25f7a1:_0x57cadd===null?_0x57cadd=Object['getOwnPropertyDescriptor'](_0x25f7a1,_0x3a870d):_0x57cadd,_0x544e68;if(typeof Reflect===_0x98df53(0x193)&&typeof Reflect[_0x98df53(0x1b2)]==='function')_0x316062=Reflect[_0x98df53(0x1b2)](_0xd662f1,_0x25f7a1,_0x3a870d,_0x57cadd);else{for(var _0x257a00=_0xd662f1[_0x98df53(0x1a2)]-0x1;_0x257a00>=0x0;_0x257a00--)if(_0x544e68=_0xd662f1[_0x257a00])_0x316062=(_0x114090<0x3?_0x544e68(_0x316062):_0x114090>0x3?_0x544e68(_0x25f7a1,_0x3a870d,_0x316062):_0x544e68(_0x25f7a1,_0x3a870d))||_0x316062;}return _0x114090>0x3&&_0x316062&&Object[_0x98df53(0x19d)](_0x25f7a1,_0x3a870d,_0x316062),_0x316062;}function _0x1c87(){const _0x3b8beb=['toStringTag','8wieTaY','loadUnitOfRevision','Inject','loadUnit','8492859rvNKFb','FEnum','FBase','pipe','_snapshotService','getUnitId','loadSheetAsync','get','49diFkMB','949ThfVHz','status','Event','_injector','from','getCollaborationStatus','extend','subscribeCollaborators','state','1twoIrx','SnapshotService','5gPSldy','_handler','loadActiveSheetAsync','MemberService','loadSheet','registerEventHandler','subscribe','add','_univerInstanceService','CollaborationStatus','getCollabEntity','object','values','[FCollaboration]:\x20this\x20method\x20should\x20be\x20override.','entityInit$','7508060eVcHfZ','getFocusedUnit','_collaborationController','CollaborationStatusChanged','811032oDvwfX','FCollaboration','defineProperty','Module','IUniverInstanceService','11QZYgqg','loadServerUnit','length','445668usFcHv','2766918EjNoMK','3871164RcCNnW','CollaborationController','FUniver','DisposableCollection','DataLoaderService','getUniverSheet','3957564DVJDQB','createInstance','toDisposable','getCollaboration','_initialize','members$','NOT_COLLAB','decorate','FEventName'];_0x1c87=function(){return _0x3b8beb;};return _0x1c87();}let FCollaboration=class FCollaboration extends _univerjs_core_facade[_0x9bbd69(0x176)]{constructor(_0x4a74c4,_0x311519,_0x434276,_0x5ec66d,_0x4f1da5){const _0x2f1eab=_0x9bbd69;super(),this[_0x2f1eab(0x189)]=_0x4a74c4,this[_0x2f1eab(0x180)]=_0x311519,this[_0x2f1eab(0x190)]=_0x434276,this[_0x2f1eab(0x178)]=_0x5ec66d,this[_0x2f1eab(0x199)]=_0x4f1da5;}async['loadActiveSheet'](){const _0x31c821=_0x9bbd69;return this[_0x31c821(0x18a)]();}async[_0x9bbd69(0x18a)](){const _0x316fd0=_0x9bbd69;throw new Error(_0x316fd0(0x195));}async[_0x9bbd69(0x18c)](_0x51551a){const _0xa9bc8d=_0x9bbd69;return this[_0xa9bc8d(0x17a)](_0x51551a);}async[_0x9bbd69(0x17a)](_0x31ebe8,_0x11dc16){const _0x3febb2=_0x9bbd69;if(!await this['_snapshotService']['loadSheet'](_0x31ebe8,0x0,_0x11dc16))return null;return await this['_collaborationController']['readyForCollab'](_0x31ebe8),this[_0x3febb2(0x189)][_0x3febb2(0x1aa)](_0x31ebe8);}[_0x9bbd69(0x184)](_0x41ab20,_0x56c693){const _0x7d50e1=_0x9bbd69;return(0x0,_univerjs_core['toDisposable'])(this[_0x7d50e1(0x180)]['get'](_univerjs_pro_collaboration_client[_0x7d50e1(0x18b)])['waitForRoom$'](_0x41ab20)[_0x7d50e1(0x177)]((0x0,rxjs['switchMap'])(_0x21c115=>_0x21c115[_0x7d50e1(0x1b0)]))[_0x7d50e1(0x18e)](_0x1d05f9=>_0x56c693(Array[_0x7d50e1(0x181)](_0x1d05f9[_0x7d50e1(0x194)]()))));}[_0x9bbd69(0x182)](_0x63caa3){const _0x404f30=_0x9bbd69;var _0x474d4a;let _0x419bec;if(_0x63caa3)_0x419bec=_0x63caa3;else{const _0x2db559=this[_0x404f30(0x190)][_0x404f30(0x198)]();_0x419bec=_0x2db559===null||_0x2db559===void 0x0?void 0x0:_0x2db559[_0x404f30(0x179)]();}if(!_0x419bec)return _univerjs_pro_collaboration_client[_0x404f30(0x191)][_0x404f30(0x1b1)];const _0x368815=this['_collaborationController'][_0x404f30(0x192)](_0x419bec);return(_0x474d4a=_0x368815===null||_0x368815===void 0x0?void 0x0:_0x368815[_0x404f30(0x185)][_0x404f30(0x17e)])!==null&&_0x474d4a!==void 0x0?_0x474d4a:_univerjs_pro_collaboration_client['CollaborationStatus']['NOT_COLLAB'];}};FCollaboration=__decorate([__decorateParam(0x1,(0x0,_univerjs_core[_0x9bbd69(0x1b7)])(_univerjs_core['Injector'])),__decorateParam(0x2,_univerjs_core[_0x9bbd69(0x19f)]),__decorateParam(0x3,(0x0,_univerjs_core[_0x9bbd69(0x1b7)])(_univerjs_pro_collaboration[_0x9bbd69(0x187)])),__decorateParam(0x4,(0x0,_univerjs_core['Inject'])(_univerjs_pro_collaboration_client['CollaborationController']))],FCollaboration);var FUniverCollaborationClientMixin=class extends _univerjs_core_facade['FUniver']{[_0x9bbd69(0x1af)](_0x2f2ba0){const _0x1ff4a5=_0x9bbd69,_0x54d967=_0x2f2ba0[_0x1ff4a5(0x17b)](_univerjs_pro_collaboration_client[_0x1ff4a5(0x1a6)]);this['disposeWithMe'](this[_0x1ff4a5(0x18d)](this[_0x1ff4a5(0x17f)]['CollaborationStatusChanged'],()=>{const _0x3d36ed=_0x1ff4a5,_0x145eea=new _univerjs_core[(_0x3d36ed(0x1a8))](),_0x5cca54=_0x54d967[_0x3d36ed(0x196)]['subscribe'](_0x56be94=>{const _0xf47d8d=_0x3d36ed,_0xe93c6f=_0x56be94['status$']['subscribe'](_0x31a57b=>{const _0x2a3f9f=_0x1e6e,_0x5412e0={'unitId':_0x56be94['unitID'],'status':_0x31a57b};this['fireEvent'](this['Event'][_0x2a3f9f(0x19a)],_0x5412e0);});_0x145eea[_0xf47d8d(0x18f)]((0x0,_univerjs_core[_0xf47d8d(0x1ad)])(_0xe93c6f));});return _0x145eea[_0x3d36ed(0x18f)]((0x0,_univerjs_core['toDisposable'])(_0x5cca54)),_0x145eea;}));}[_0x9bbd69(0x1ae)](){const _0x4d751c=_0x9bbd69;return this[_0x4d751c(0x180)][_0x4d751c(0x1ac)](FCollaboration,{'getUniverSheet':_0xf11936=>this[_0x4d751c(0x1aa)](_0xf11936)});}[_0x9bbd69(0x1a1)](_0x5b024c,_0x2ed06a,_0x56ed73){const _0x5b838e=_0x9bbd69;return this[_0x5b838e(0x180)][_0x5b838e(0x17b)](_univerjs_pro_collaboration_client['DataLoaderService'])[_0x5b838e(0x1b8)](_0x5b024c,_0x2ed06a,_0x56ed73);}['loadServerUnitOfRevision'](_0x31e606,_0x223b12,_0x2abc31){const _0x15d993=_0x9bbd69;return this[_0x15d993(0x180)][_0x15d993(0x17b)](_univerjs_pro_collaboration_client[_0x15d993(0x1a9)])[_0x15d993(0x1b6)](_0x31e606,_0x223b12,_0x2abc31);}};_univerjs_core_facade[_0x9bbd69(0x1a7)][_0x9bbd69(0x183)](FUniverCollaborationClientMixin),Object[_0x9bbd69(0x19d)](exports,_0x9bbd69(0x19c),{'enumerable':!![],'get':function(){return FCollaboration;}});
|