@univerjs-pro/collaboration-client 1.0.0-alpha.3 → 1.0.0-alpha.5
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/ar-SA.js +1 -1
- package/lib/cjs/locale/ca-ES.js +1 -1
- package/lib/cjs/locale/de-DE.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/id-ID.js +1 -1
- package/lib/cjs/locale/it-IT.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/pl-PL.js +1 -1
- package/lib/cjs/locale/pt-BR.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-HK.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/ar-SA.js +1 -1
- package/lib/es/locale/ca-ES.js +1 -1
- package/lib/es/locale/de-DE.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/id-ID.js +1 -1
- package/lib/es/locale/it-IT.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/pl-PL.js +1 -1
- package/lib/es/locale/pt-BR.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-HK.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/ar-SA.js +1 -1
- package/lib/locale/ca-ES.js +1 -1
- package/lib/locale/de-DE.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/id-ID.js +1 -1
- package/lib/locale/it-IT.js +1 -1
- package/lib/locale/ja-JP.js +1 -1
- package/lib/locale/ko-KR.js +1 -1
- package/lib/locale/pl-PL.js +1 -1
- package/lib/locale/pt-BR.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-HK.js +1 -1
- package/lib/locale/zh-TW.js +1 -1
- package/lib/types/controllers/collaboration/collaboration-entity.d.ts +2 -2
- package/lib/types/services/data-loader/data-loader.service.d.ts +1 -1
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +1 -1
- package/lib/umd/locale/ar-SA.js +1 -1
- package/lib/umd/locale/ca-ES.js +1 -1
- package/lib/umd/locale/de-DE.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/id-ID.js +1 -1
- package/lib/umd/locale/it-IT.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/pl-PL.js +1 -1
- package/lib/umd/locale/pt-BR.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-HK.js +1 -1
- package/lib/umd/locale/zh-TW.js +1 -1
- package/package.json +14 -14
package/lib/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function _0x240a(_0xe689a3,_0x39d2e6){_0xe689a3=_0xe689a3-0x18b;const _0x535382=_0x5353();let _0x240a00=_0x535382[_0xe689a3];return _0x240a00;}const _0x248473=_0x240a;(function(_0x59d345,_0x22c96d){const _0x129806=_0x240a,_0x50f636=_0x59d345();while(!![]){try{const _0x516a85=parseInt(_0x129806(0x1b9))/0x1+parseInt(_0x129806(0x1b8))/0x2*(-parseInt(_0x129806(0x197))/0x3)+parseInt(_0x129806(0x1cf))/0x4+parseInt(_0x129806(0x1ac))/0x5*(-parseInt(_0x129806(0x1a1))/0x6)+parseInt(_0x129806(0x1a5))/0x7+parseInt(_0x129806(0x1aa))/0x8*(-parseInt(_0x129806(0x1af))/0x9)+parseInt(_0x129806(0x190))/0xa;if(_0x516a85===_0x22c96d)break;else _0x50f636['push'](_0x50f636['shift']());}catch(_0x40bba5){_0x50f636['push'](_0x50f636['shift']());}}}(_0x5353,0x1a41c));import{CollaborationController as _0x9b5993,CollaborationStatus as _0x4782d2,DataLoaderService as _0x23ee25,MemberService as _0x48f363}from'@univerjs-pro/collaboration-client';import{FBase as _0x30f233,FEnum as _0x836403,FEventName as _0x2778a2,FUniver as _0x5c0431}from'@univerjs/core/facade';import{DisposableCollection as _0x4f9091,IUniverInstanceService as _0x52ec1e,Inject as _0x4fd530,Injector as _0x52c4d4,toDisposable as _0x1957bf}from'@univerjs/core';import{SnapshotService as _0x3ac8e0}from'@univerjs-pro/collaboration';function _0x5353(){const _0x5bfa70=['fireEvent','object','loadSheet','52208rubZDU','state','569785XMovvc','loadSheetAsync','decorate','90lMkezP','CONFLICT','CollaborationStatus','Event','getOwnPropertyDescriptor','loadUnit','getDocument','loadSlide','getCollabEntity','2jbtQgd','209505cjPoRv','[FCollaboration]:\x20Unit\x20\x22','loadServerUnit','loadBaseAsync','_snapshotService','status$','reject','values','getBoard','SYNCED','\x22\x20is\x20not\x20in\x20collaboration\x20mode.','_univerInstanceService','add','status','waitForRoom$','loadBoardAsync','NOT_COLLAB','getCollaboration','getPresentation','subscribeCollaborators','defineProperty','loadUnitOfRevision','250948OuoGwJ','getUnitId','loadServerUnitOfRevision','getFocusedUnit','extend','entityInit$','getBase','_handler','pipe','readyForCollab','1554450xWCjCk','loadDocAsync','\x22\x20while\x20collaboration\x20status\x20is\x20','CollaborationStatusChanged','_resolveUnitId','flush','_injector','441633eiauNH','loadBoard','unsubscribe','[FCollaboration]:\x20Cannot\x20flush\x20because\x20no\x20unit\x20is\x20focused\x20or\x20specified.','loadDoc','subscribe','_collaborationController','registerEventHandler','_initialize','loadSlideAsync','6azEMlU','length','\x22\x20after\x20','resolve','44023UmuGsM','get'];_0x5353=function(){return _0x5bfa70;};return _0x5353();}import{switchMap as _0x4e1321}from'rxjs';var h=class extends _0x836403{get[_0x248473(0x1b1)](){return _0x4782d2;}};_0x836403[_0x248473(0x1d3)](h);var g=class extends _0x2778a2{get[_0x248473(0x193)](){const _0x4280ff=_0x248473;return _0x4280ff(0x193);}};_0x2778a2['extend'](g);function _(_0x23383d,_0x3fbb9c){return function(_0x21bdb3,_0x1c90cf){_0x3fbb9c(_0x21bdb3,_0x1c90cf,_0x23383d);};}function v(_0xe86ee1,_0x20dbef,_0x550868,_0x3f7f9e){const _0x5b285b=_0x248473;var _0x456e83=arguments[_0x5b285b(0x1a2)],_0x3be6a9=_0x456e83<0x3?_0x20dbef:_0x3f7f9e===null?_0x3f7f9e=Object[_0x5b285b(0x1b3)](_0x20dbef,_0x550868):_0x3f7f9e,_0x5d0211;if(typeof Reflect==_0x5b285b(0x1a8)&&typeof Reflect[_0x5b285b(0x1ae)]=='function')_0x3be6a9=Reflect[_0x5b285b(0x1ae)](_0xe86ee1,_0x20dbef,_0x550868,_0x3f7f9e);else{for(var _0x29ea9e=_0xe86ee1[_0x5b285b(0x1a2)]-0x1;_0x29ea9e>=0x0;_0x29ea9e--)(_0x5d0211=_0xe86ee1[_0x29ea9e])&&(_0x3be6a9=(_0x456e83<0x3?_0x5d0211(_0x3be6a9):_0x456e83>0x3?_0x5d0211(_0x20dbef,_0x550868,_0x3be6a9):_0x5d0211(_0x20dbef,_0x550868))||_0x3be6a9);}return _0x456e83>0x3&&_0x3be6a9&&Object[_0x5b285b(0x1cd)](_0x20dbef,_0x550868,_0x3be6a9),_0x3be6a9;}let y=class extends _0x30f233{constructor(_0x24d28f,_0x40e753,_0x4f5531,_0x49386a,_0x3dd430){const _0x4d0f5e=_0x248473;super(),this['_handler']=_0x24d28f,this['_injector']=_0x40e753,this['_univerInstanceService']=_0x4f5531,this['_snapshotService']=_0x49386a,this[_0x4d0f5e(0x19d)]=_0x3dd430;}async[_0x248473(0x1ad)](_0x38e5e3,_0x3b6fa8){const _0x4f33a4=_0x248473;return await this[_0x4f33a4(0x1bd)][_0x4f33a4(0x1a9)](_0x38e5e3,0x0,_0x3b6fa8)?(await this[_0x4f33a4(0x19d)][_0x4f33a4(0x18f)](_0x38e5e3),this[_0x4f33a4(0x18d)]['getWorkbook'](_0x38e5e3)):null;}async[_0x248473(0x191)](_0x596ac0,_0x54f698){const _0x5712ea=_0x248473;return await this[_0x5712ea(0x1bd)][_0x5712ea(0x19b)](_0x596ac0,0x0,_0x54f698)?(await this[_0x5712ea(0x19d)][_0x5712ea(0x18f)](_0x596ac0),this[_0x5712ea(0x18d)]['getDocument'](_0x596ac0)):null;}async[_0x248473(0x1bc)](_0x9c3a38,_0x300754){const _0x5ef4d5=_0x248473;return await this[_0x5ef4d5(0x1bd)]['loadBase'](_0x9c3a38,0x0,_0x300754)?(await this[_0x5ef4d5(0x19d)]['readyForCollab'](_0x9c3a38),this[_0x5ef4d5(0x18d)][_0x5ef4d5(0x18c)](_0x9c3a38)):null;}async[_0x248473(0x1a0)](_0xfa387a,_0x4c59b0){const _0xd3af61=_0x248473;return await this[_0xd3af61(0x1bd)][_0xd3af61(0x1b6)](_0xfa387a,0x0,_0x4c59b0)?(await this[_0xd3af61(0x19d)][_0xd3af61(0x18f)](_0xfa387a),this['_handler'][_0xd3af61(0x1cb)](_0xfa387a)):null;}async[_0x248473(0x1c8)](_0x340672,_0x1e89f9){const _0x363497=_0x248473;return await this[_0x363497(0x1bd)][_0x363497(0x198)](_0x340672,0x0,_0x1e89f9)?(await this[_0x363497(0x19d)][_0x363497(0x18f)](_0x340672),this['_handler']['getBoard'](_0x340672)):null;}[_0x248473(0x1cc)](_0x32d861,_0x678ea9){const _0x45cac9=_0x248473;return _0x1957bf(this['_injector'][_0x45cac9(0x1a6)](_0x48f363)[_0x45cac9(0x1c7)](_0x32d861)[_0x45cac9(0x18e)](_0x4e1321(_0x2a1f7d=>_0x2a1f7d['members$']))[_0x45cac9(0x19c)](_0x20a5ee=>_0x678ea9(Array['from'](_0x20a5ee[_0x45cac9(0x1c0)]()))));}['getCollaborationStatus'](_0x25cfb4){const _0x54448a=_0x248473;var _0x36a92b;let _0x1e6824=this[_0x54448a(0x194)](_0x25cfb4);if(!_0x1e6824)return _0x4782d2[_0x54448a(0x1c9)];let _0x4d0df7=this[_0x54448a(0x19d)][_0x54448a(0x1b7)](_0x1e6824);return(_0x36a92b=_0x4d0df7==null?void 0x0:_0x4d0df7[_0x54448a(0x1ab)]['status'])==null?_0x4782d2[_0x54448a(0x1c9)]:_0x36a92b;}[_0x248473(0x195)](_0x23b391,_0x5a6863={}){const _0x51c644=_0x248473;var _0x4caa1a;let _0x4b4412=this[_0x51c644(0x194)](_0x23b391);if(!_0x4b4412)return Promise[_0x51c644(0x1bf)](Error(_0x51c644(0x19a)));let _0x1b660a=this[_0x51c644(0x19d)]['getCollabEntity'](_0x4b4412);if(!_0x1b660a)return Promise[_0x51c644(0x1bf)](Error(_0x51c644(0x1ba)+_0x4b4412+_0x51c644(0x1c3)));let _0x47c23f=_0x1b660a[_0x51c644(0x1ab)][_0x51c644(0x1c6)];if(_0x47c23f===_0x4782d2[_0x51c644(0x1c2)])return Promise[_0x51c644(0x1a4)]();let _0x206200=b(_0x4b4412,_0x47c23f);if(_0x206200)return Promise[_0x51c644(0x1bf)](_0x206200);let _0x5f13cf=(_0x4caa1a=_0x5a6863['timeout'])==null?0x7530:_0x4caa1a;return new Promise((_0x529b68,_0x26c960)=>{const _0x2979d6=_0x51c644;let _0x1e3caf=!0x1,_0x3d62d6=null,_0x381b72=setTimeout(()=>{const _0x3b7c26=_0x240a;_0x1e3caf=!0x0,_0x3d62d6==null||_0x3d62d6[_0x3b7c26(0x199)](),_0x26c960(Error('[FCollaboration]:\x20Timed\x20out\x20flushing\x20unit\x20\x22'+_0x4b4412+_0x3b7c26(0x1a3)+_0x5f13cf+'ms.'));},_0x5f13cf),_0x38af23=()=>{const _0x1a038f=_0x240a;_0x1e3caf=!0x0,clearTimeout(_0x381b72),_0x3d62d6==null||_0x3d62d6[_0x1a038f(0x199)]();};_0x3d62d6=_0x1b660a[_0x2979d6(0x1be)][_0x2979d6(0x19c)](_0x53691b=>{const _0x3c5605=_0x2979d6;if(_0x1e3caf)return;if(_0x53691b===_0x4782d2[_0x3c5605(0x1c2)]){_0x38af23(),_0x529b68();return;}let _0x5122eb=b(_0x4b4412,_0x53691b);_0x5122eb&&(_0x38af23(),_0x26c960(_0x5122eb));});});}[_0x248473(0x194)](_0xe15049){const _0x1739df=_0x248473;var _0x56cb16;return _0xe15049||((_0x56cb16=this[_0x1739df(0x1c4)][_0x1739df(0x1d2)]())==null?void 0x0:_0x56cb16[_0x1739df(0x1d0)]());}};y=v([_(0x1,_0x4fd530(_0x52c4d4)),_(0x2,_0x52ec1e),_(0x3,_0x4fd530(_0x3ac8e0)),_(0x4,_0x4fd530(_0x9b5993))],y);function b(_0x509c80,_0x240b9f){const _0x2a10b1=_0x248473;return _0x240b9f===_0x4782d2[_0x2a10b1(0x1b0)]||_0x240b9f===_0x4782d2[_0x2a10b1(0x1c9)]?Error('[FCollaboration]:\x20Cannot\x20flush\x20unit\x20\x22'+_0x509c80+_0x2a10b1(0x192)+_0x240b9f+'.'):null;}var x=class extends _0x5c0431{[_0x248473(0x19f)](_0x4a95e7){const _0x13c5b5=_0x248473;let _0x5508c7=_0x4a95e7[_0x13c5b5(0x1a6)](_0x9b5993);this['disposeWithMe'](this[_0x13c5b5(0x19e)](this[_0x13c5b5(0x1b2)][_0x13c5b5(0x193)],()=>{const _0x497d57=_0x13c5b5;let _0x2fc51a=new _0x4f9091(),_0xc009b2=_0x5508c7[_0x497d57(0x18b)]['subscribe'](_0x50a55d=>{const _0x3de3a8=_0x497d57;let _0x12f4b4=_0x50a55d[_0x3de3a8(0x1be)]['subscribe'](_0x1ec527=>{const _0x2e53bc=_0x3de3a8;let _0x35c555={'unitId':_0x50a55d['unitID'],'status':_0x1ec527};this[_0x2e53bc(0x1a7)](this[_0x2e53bc(0x1b2)][_0x2e53bc(0x193)],_0x35c555);});_0x2fc51a[_0x3de3a8(0x1c5)](_0x1957bf(_0x12f4b4));});return _0x2fc51a[_0x497d57(0x1c5)](_0x1957bf(_0xc009b2)),_0x2fc51a;}));}[_0x248473(0x1ca)](){const _0x758b8a=_0x248473;return this['_injector']['createInstance'](y,{'getWorkbook':_0x1d2d4e=>this['getWorkbook'](_0x1d2d4e),'getDocument':_0x2b338c=>this[_0x758b8a(0x1b5)](_0x2b338c),'getPresentation':_0x465c38=>this[_0x758b8a(0x1cb)](_0x465c38),'getBase':_0x6604f6=>this['getBase'](_0x6604f6),'getBoard':_0xb2d04d=>this[_0x758b8a(0x1c1)](_0xb2d04d)});}[_0x248473(0x1bb)](_0x577d13,_0x207397,_0x34b5de){const _0x4dc8fe=_0x248473;return this[_0x4dc8fe(0x196)]['get'](_0x23ee25)[_0x4dc8fe(0x1b4)](_0x577d13,_0x207397,_0x34b5de);}[_0x248473(0x1d1)](_0x22af40,_0x1ecb29,_0x2235c8){const _0xb22369=_0x248473;return this[_0xb22369(0x196)][_0xb22369(0x1a6)](_0x23ee25)[_0xb22369(0x1ce)](_0x22af40,_0x1ecb29,_0x2235c8);}};_0x5c0431['extend'](x);export{y as FCollaboration};
|