@univerjs-pro/collaboration-client 1.0.2 → 1.0.3
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/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 +15 -15
package/lib/cjs/locale/zh-TW.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x4a36(){const _0x218a1b=['正在擷取伺服器資料...','您在另一個分頁開啟了同一個檔案。為避免資料遺失,此分頁將無法進行編輯。','沒有協作權限,您的編輯將暫存於本機。','協作文件數量超過限制,您的編輯將暫存於本機。','認證錯誤','30mGJtEX','加入協作失敗,請稍後重試,您的編輯將暫存於本機。','此文件協作人數已達上限,您的編輯將暫存於本機。','37323yOJjYK','2660144QvgyPh','已離線,編輯將儲存在本機','您的操作與伺服器權限存在衝突。請將您的本機編輯儲存至其他地方,重新整理頁面後將會被捨棄。','已同步','編輯衝突','152152lYDYUX','本機檔案','325570bVmqAh','254385KzETXt','點擊重新連線','同步中...','由於協作房間已關閉,編輯權限已被收回。','加入協作失敗,您的編輯將暫存於本機。','941065TZSiRd','連線失敗,將在稍後重試連線。','連線失敗,請檢查您的網路。','140tSIZvx','您的登入已過期,點擊「確定」重新登入,點擊「取消」儲存您的本機編輯。','伺服器未回應協作請求,您的編輯將儲存在本機。','協作衝突','24cUMPzr','822642Rvcdno'];_0x4a36=function(){return _0x218a1b;};return _0x4a36();}function _0x5115(_0x4782de,_0x186bcf){_0x4782de=_0x4782de-0x1b8;const _0x4a364d=_0x4a36();let _0x5115d2=_0x4a364d[_0x4782de];return _0x5115d2;}const _0x4a373c=_0x5115;(function(_0x2c487c,_0x4e4064){const _0x441148=_0x5115,_0x2f3008=_0x2c487c();while(!![]){try{const _0x2c06a8=parseInt(_0x441148(0x1c6))/0x1+parseInt(_0x441148(0x1d5))/0x2+parseInt(_0x441148(0x1b9))/0x3*(-parseInt(_0x441148(0x1c5))/0x4)+parseInt(_0x441148(0x1be))/0x5+parseInt(_0x441148(0x1cc))/0x6*(parseInt(_0x441148(0x1b8))/0x7)+-parseInt(_0x441148(0x1d0))/0x8+-parseInt(_0x441148(0x1cf))/0x9*(parseInt(_0x441148(0x1c1))/0xa);if(_0x2c06a8===_0x4e4064)break;else _0x2f3008['push'](_0x2f3008['shift']());}catch(_0x339ce5){_0x2f3008['push'](_0x2f3008['shift']());}}}(_0x4a36,0x66927));const e={'collaboration-client':{'collabClient':{'tooltip':{'reconnect':_0x4a373c(0x1ba)}},'collabStatus':{'fetchMiss':_0x4a373c(0x1c7),'conflict':_0x4a373c(0x1d4),'notCollab':_0x4a373c(0x1d6),'synced':_0x4a373c(0x1d3),'syncing':_0x4a373c(0x1bb),'offline':_0x4a373c(0x1d1)},'session':{'connection-failed':_0x4a373c(0x1c0),'will-retry':_0x4a373c(0x1bf),'room-full':_0x4a373c(0x1ce),'join-failed':_0x4a373c(0x1cd),'room-not-exists':_0x4a373c(0x1bd),'room-permission-denied':_0x4a373c(0x1c9),'room-cnt-exceeds':_0x4a373c(0x1ca),'collaboration-timeout':_0x4a373c(0x1c3)},'conflict':{'title':_0x4a373c(0x1c4),'content':'您的本機文件與伺服器文件存在衝突。請將您的本機編輯儲存至其他地方,因為重新整理頁面後將會遺失。'},'permission':{'title':_0x4a373c(0x1cb),'content':_0x4a373c(0x1d2)},'collaboration':{'single-unit':{'warning':_0x4a373c(0x1c8)},'closeRoom':_0x4a373c(0x1bc)},'auth':{'needGotoLoginAlert':_0x4a373c(0x1c2)}}};module['exports']=e;
|
package/lib/es/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x323396=_0x1c57;(function(_0x34b383,_0x3071e7){const _0xeefbbe=_0x1c57,_0x1f6165=_0x34b383();while(!![]){try{const _0x278d0f=-parseInt(_0xeefbbe(0x1d0))/0x1+parseInt(_0xeefbbe(0x1d7))/0x2*(-parseInt(_0xeefbbe(0x1dd))/0x3)+-parseInt(_0xeefbbe(0x1ae))/0x4*(parseInt(_0xeefbbe(0x1cd))/0x5)+-parseInt(_0xeefbbe(0x1d2))/0x6+-parseInt(_0xeefbbe(0x1a1))/0x7+parseInt(_0xeefbbe(0x1e3))/0x8+-parseInt(_0xeefbbe(0x1d1))/0x9*(-parseInt(_0xeefbbe(0x1c6))/0xa);if(_0x278d0f===_0x3071e7)break;else _0x1f6165['push'](_0x1f6165['shift']());}catch(_0x345f95){_0x1f6165['push'](_0x1f6165['shift']());}}}(_0x54bb,0xcac1c));import{CollaborationController as _0x242075,CollaborationStatus as _0xc7f623,DataLoaderService as _0x967cae,MemberService as _0x22c4e9}from'@univerjs-pro/collaboration-client';import{FBase as _0x53e01c,FEnum as _0x3c1ade,FEventName as _0x33e7b9,FUniver as _0x3be7ee}from'@univerjs/core/facade';import{DisposableCollection as _0x1ac6c0,IUniverInstanceService as _0x407b3c,Inject as _0x14667b,Injector as _0x4f5fb2,toDisposable as _0x42b565}from'@univerjs/core';import{SnapshotService as _0x14bb4e}from'@univerjs-pro/collaboration';function _0x1c57(_0xe85c73,_0x3f24ca){_0xe85c73=_0xe85c73-0x19c;const _0x54bbea=_0x54bb();let _0x1c5739=_0x54bbea[_0xe85c73];return _0x1c5739;}import{switchMap as _0x41a3c8}from'rxjs';var h=class extends _0x3c1ade{get['CollaborationStatus'](){return _0xc7f623;}};function _0x54bb(){const _0x3914c0=['loadDocAsync','getPresentation','getFocusedUnit','\x22\x20while\x20collaboration\x20status\x20is\x20','973732HxPlOc','defineProperty','loadBoard','loadUnitOfRevision','[FCollaboration]:\x20Cannot\x20flush\x20because\x20no\x20unit\x20is\x20focused\x20or\x20specified.','members$','loadUnit','subscribe','length','subscribeCollaborators','registerEventHandler','CollaborationStatusChanged','resolve','[FCollaboration]:\x20Timed\x20out\x20flushing\x20unit\x20\x22','Event','pipe','get','NOT_COLLAB','_univerInstanceService','loadPdfAsync','getWorkbook','loadSheetAsync','readyForCollab','getBoard','1690TwZyLx','unitID','getBase','add','status$','_handler','unsubscribe','25GNQvjz','status','loadSlideAsync','119810XNbnCE','211743JNImsX','1310916yIeHtd','getOwnPropertyDescriptor','\x22\x20is\x20not\x20in\x20collaboration\x20mode.','getPdf','_resolveUnitId','1690CogrHa','getCollaboration','state','[FCollaboration]:\x20Unit\x20\x22','decorate','getCollaborationStatus','3963mtECrD','extend','values','function','_injector','object','7149672lTCIAa','reject','loadDoc','loadPdf','\x22\x20after\x20','getUnitId','9573018goUlWz','getCollabEntity','loadBase','_collaborationController','_snapshotService','fireEvent','timeout','loadSheet','from'];_0x54bb=function(){return _0x3914c0;};return _0x54bb();}_0x3c1ade[_0x323396(0x1de)](h);var g=class extends _0x33e7b9{get[_0x323396(0x1b9)](){const _0x513843=_0x323396;return _0x513843(0x1b9);}};_0x33e7b9[_0x323396(0x1de)](g);function _(_0x4f68b2,_0xa3a408){return function(_0x4b6dde,_0x450948){_0xa3a408(_0x4b6dde,_0x450948,_0x4f68b2);};}function v(_0x57c47e,_0xfc727e,_0x1cdd29,_0x4ad6b9){const _0x224c68=_0x323396;var _0x533b1b=arguments[_0x224c68(0x1b6)],_0x556716=_0x533b1b<0x3?_0xfc727e:_0x4ad6b9===null?_0x4ad6b9=Object[_0x224c68(0x1d3)](_0xfc727e,_0x1cdd29):_0x4ad6b9,_0x5cd9b0;if(typeof Reflect==_0x224c68(0x1e2)&&typeof Reflect['decorate']==_0x224c68(0x1e0))_0x556716=Reflect[_0x224c68(0x1db)](_0x57c47e,_0xfc727e,_0x1cdd29,_0x4ad6b9);else{for(var _0x1a05ca=_0x57c47e[_0x224c68(0x1b6)]-0x1;_0x1a05ca>=0x0;_0x1a05ca--)(_0x5cd9b0=_0x57c47e[_0x1a05ca])&&(_0x556716=(_0x533b1b<0x3?_0x5cd9b0(_0x556716):_0x533b1b>0x3?_0x5cd9b0(_0xfc727e,_0x1cdd29,_0x556716):_0x5cd9b0(_0xfc727e,_0x1cdd29))||_0x556716);}return _0x533b1b>0x3&&_0x556716&&Object[_0x224c68(0x1af)](_0xfc727e,_0x1cdd29,_0x556716),_0x556716;}let y=class extends _0x53e01c{constructor(_0x58faa2,_0x2131c7,_0x105a24,_0x1d7bf7,_0x50dbeb){const _0x21083b=_0x323396;super(),this[_0x21083b(0x1cb)]=_0x58faa2,this[_0x21083b(0x1e1)]=_0x2131c7,this[_0x21083b(0x1c0)]=_0x105a24,this[_0x21083b(0x1a5)]=_0x1d7bf7,this[_0x21083b(0x1a4)]=_0x50dbeb;}async[_0x323396(0x1c3)](_0xf82dc,_0xd72ab){const _0x59e79a=_0x323396;return await this['_snapshotService'][_0x59e79a(0x1a8)](_0xf82dc,0x0,_0xd72ab)?(await this[_0x59e79a(0x1a4)][_0x59e79a(0x1c4)](_0xf82dc),this[_0x59e79a(0x1cb)][_0x59e79a(0x1c2)](_0xf82dc)):null;}async[_0x323396(0x1aa)](_0x5a04c5,_0x1d9ae8){const _0x501af7=_0x323396;return await this['_snapshotService'][_0x501af7(0x19d)](_0x5a04c5,0x0,_0x1d9ae8)?(await this[_0x501af7(0x1a4)][_0x501af7(0x1c4)](_0x5a04c5),this[_0x501af7(0x1cb)]['getDocument'](_0x5a04c5)):null;}async['loadBaseAsync'](_0x1eb71e,_0x44fecb){const _0x58dcf7=_0x323396;return await this[_0x58dcf7(0x1a5)][_0x58dcf7(0x1a3)](_0x1eb71e,0x0,_0x44fecb)?(await this['_collaborationController'][_0x58dcf7(0x1c4)](_0x1eb71e),this[_0x58dcf7(0x1cb)][_0x58dcf7(0x1c8)](_0x1eb71e)):null;}async[_0x323396(0x1cf)](_0x3625c3,_0x4e73d7){const _0x4d27cd=_0x323396;return await this[_0x4d27cd(0x1a5)]['loadSlide'](_0x3625c3,0x0,_0x4e73d7)?(await this[_0x4d27cd(0x1a4)][_0x4d27cd(0x1c4)](_0x3625c3),this[_0x4d27cd(0x1cb)]['getPresentation'](_0x3625c3)):null;}async['loadBoardAsync'](_0x30eabf,_0x29d077){const _0x580b4f=_0x323396;return await this['_snapshotService'][_0x580b4f(0x1b0)](_0x30eabf,0x0,_0x29d077)?(await this[_0x580b4f(0x1a4)][_0x580b4f(0x1c4)](_0x30eabf),this['_handler']['getBoard'](_0x30eabf)):null;}async[_0x323396(0x1c1)](_0x374718,_0x323059){const _0x38d614=_0x323396;return await this[_0x38d614(0x1a5)][_0x38d614(0x19e)](_0x374718,0x0,_0x323059)?(await this[_0x38d614(0x1a4)][_0x38d614(0x1c4)](_0x374718),this[_0x38d614(0x1cb)][_0x38d614(0x1d5)](_0x374718)):null;}[_0x323396(0x1b7)](_0x144d6f,_0x109662){const _0x2c8bb4=_0x323396;let _0x460c0c=this[_0x2c8bb4(0x1e1)][_0x2c8bb4(0x1be)](_0x22c4e9)['waitForRoom$'](_0x144d6f)[_0x2c8bb4(0x1bd)](_0x41a3c8(_0x50b11d=>_0x50b11d[_0x2c8bb4(0x1b3)]))[_0x2c8bb4(0x1b5)](_0x55a157=>_0x109662(Array[_0x2c8bb4(0x1a9)](_0x55a157[_0x2c8bb4(0x1df)]())));return _0x42b565(_0x460c0c);}[_0x323396(0x1dc)](_0x407ce3){const _0x5ef8b6=_0x323396;let _0x879139=this[_0x5ef8b6(0x1d6)](_0x407ce3);if(!_0x879139)return _0xc7f623[_0x5ef8b6(0x1bf)];let _0x4c2f5e=this[_0x5ef8b6(0x1a4)][_0x5ef8b6(0x1a2)](_0x879139);return(_0x4c2f5e==null?void 0x0:_0x4c2f5e[_0x5ef8b6(0x1d9)][_0x5ef8b6(0x1ce)])??_0xc7f623[_0x5ef8b6(0x1bf)];}['flush'](_0x7d95d,_0x4eeede={}){const _0x2a9930=_0x323396;let _0xde31b5=this[_0x2a9930(0x1d6)](_0x7d95d);if(!_0xde31b5)return Promise['reject'](Error(_0x2a9930(0x1b2)));let _0x54a5ff=this[_0x2a9930(0x1a4)]['getCollabEntity'](_0xde31b5);if(!_0x54a5ff)return Promise[_0x2a9930(0x19c)](Error(_0x2a9930(0x1da)+_0xde31b5+_0x2a9930(0x1d4)));let _0x4358a2=_0x54a5ff[_0x2a9930(0x1d9)][_0x2a9930(0x1ce)];if(_0x4358a2===_0xc7f623['SYNCED'])return Promise[_0x2a9930(0x1ba)]();let _0x33c950=b(_0xde31b5,_0x4358a2);if(_0x33c950)return Promise['reject'](_0x33c950);let _0x32faa4=_0x4eeede[_0x2a9930(0x1a7)]??0x7530;return new Promise((_0xb88f36,_0x17ed31)=>{const _0x24189a=_0x2a9930;let _0x38fa1c=!0x1,_0x48ce1c=null,_0x31def9=setTimeout(()=>{const _0x454302=_0x1c57;_0x38fa1c=!0x0,_0x48ce1c==null||_0x48ce1c[_0x454302(0x1cc)](),_0x17ed31(Error(_0x454302(0x1bb)+_0xde31b5+_0x454302(0x19f)+_0x32faa4+'ms.'));},_0x32faa4),_0x54f69a=()=>{const _0x51dad0=_0x1c57;_0x38fa1c=!0x0,clearTimeout(_0x31def9),_0x48ce1c==null||_0x48ce1c[_0x51dad0(0x1cc)]();};_0x48ce1c=_0x54a5ff[_0x24189a(0x1ca)][_0x24189a(0x1b5)](_0x196007=>{if(_0x38fa1c)return;if(_0x196007===_0xc7f623['SYNCED']){_0x54f69a(),_0xb88f36();return;}let _0x42a557=b(_0xde31b5,_0x196007);_0x42a557&&(_0x54f69a(),_0x17ed31(_0x42a557));});});}['_resolveUnitId'](_0x43cf13){const _0x5130b9=_0x323396;var _0x421bca;return _0x43cf13||((_0x421bca=this['_univerInstanceService'][_0x5130b9(0x1ac)]())==null?void 0x0:_0x421bca[_0x5130b9(0x1a0)]());}};y=v([_(0x1,_0x14667b(_0x4f5fb2)),_(0x2,_0x407b3c),_(0x3,_0x14667b(_0x14bb4e)),_(0x4,_0x14667b(_0x242075))],y);function b(_0x1d33fe,_0x47eddb){const _0xf8d74d=_0x323396;return _0x47eddb===_0xc7f623['CONFLICT']||_0x47eddb===_0xc7f623[_0xf8d74d(0x1bf)]?Error('[FCollaboration]:\x20Cannot\x20flush\x20unit\x20\x22'+_0x1d33fe+_0xf8d74d(0x1ad)+_0x47eddb+'.'):null;}var x=class extends _0x3be7ee{['_initialize'](_0x252087){const _0x2516c1=_0x323396;let _0x230502=_0x252087['get'](_0x242075);this['disposeWithMe'](this[_0x2516c1(0x1b8)](this[_0x2516c1(0x1bc)][_0x2516c1(0x1b9)],()=>{const _0x28ed33=_0x2516c1;let _0x1215ba=new _0x1ac6c0(),_0xdf59a3=_0x230502['entityInit$'][_0x28ed33(0x1b5)](_0x32b906=>{const _0x7f470e=_0x28ed33;let _0x12334e=_0x32b906[_0x7f470e(0x1ca)][_0x7f470e(0x1b5)](_0x1a02f9=>{const _0x171fc3=_0x7f470e;let _0x2ab896={'unitId':_0x32b906[_0x171fc3(0x1c7)],'status':_0x1a02f9};this[_0x171fc3(0x1a6)](this['Event'][_0x171fc3(0x1b9)],_0x2ab896);});_0x1215ba[_0x7f470e(0x1c9)](_0x42b565(_0x12334e));});return _0x1215ba[_0x28ed33(0x1c9)](_0x42b565(_0xdf59a3)),_0x1215ba;}));}[_0x323396(0x1d8)](){const _0x237f5b=_0x323396;return this[_0x237f5b(0x1e1)]['createInstance'](y,{'getWorkbook':_0x519bca=>this[_0x237f5b(0x1c2)](_0x519bca),'getDocument':_0x2a68a8=>this['getDocument'](_0x2a68a8),'getPresentation':_0x3dfcf6=>this[_0x237f5b(0x1ab)](_0x3dfcf6),'getBase':_0x3b7921=>this[_0x237f5b(0x1c8)](_0x3b7921),'getBoard':_0x59079a=>this[_0x237f5b(0x1c5)](_0x59079a),'getPdf':_0x305789=>this[_0x237f5b(0x1d5)](_0x305789)});}['loadServerUnit'](_0x3bd9ac,_0x5f1bf5,_0x5dfd9d){const _0x2879b8=_0x323396;return this['_injector'][_0x2879b8(0x1be)](_0x967cae)[_0x2879b8(0x1b4)](_0x3bd9ac,_0x5f1bf5,_0x5dfd9d);}['loadServerUnitOfRevision'](_0x3ac230,_0x19251f,_0x3b9206){const _0x38b8c9=_0x323396;return this['_injector'][_0x38b8c9(0x1be)](_0x967cae)[_0x38b8c9(0x1b1)](_0x3ac230,_0x19251f,_0x3b9206);}};_0x3be7ee[_0x323396(0x1de)](x);export{y as FCollaboration};
|