@univerjs-pro/collaboration-client 1.0.0-alpha.3 → 1.0.0-alpha.4
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/cjs/locale/zh-TW.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x53a3(_0x3a638e,_0x59057a){_0x3a638e=_0x3a638e-0x169;const _0x473f4c=_0x473f();let _0x53a37e=_0x473f4c[_0x3a638e];return _0x53a37e;}const _0x33ed27=_0x53a3;(function(_0x2b037f,_0xafbcfe){const _0x6b15b5=_0x53a3,_0x16ce58=_0x2b037f();while(!![]){try{const _0x4ceb95=parseInt(_0x6b15b5(0x174))/0x1+-parseInt(_0x6b15b5(0x182))/0x2+parseInt(_0x6b15b5(0x169))/0x3*(parseInt(_0x6b15b5(0x173))/0x4)+-parseInt(_0x6b15b5(0x178))/0x5*(parseInt(_0x6b15b5(0x16b))/0x6)+-parseInt(_0x6b15b5(0x171))/0x7+parseInt(_0x6b15b5(0x175))/0x8+-parseInt(_0x6b15b5(0x16c))/0x9*(-parseInt(_0x6b15b5(0x17a))/0xa);if(_0x4ceb95===_0xafbcfe)break;else _0x16ce58['push'](_0x16ce58['shift']());}catch(_0x5264ea){_0x16ce58['push'](_0x16ce58['shift']());}}}(_0x473f,0xd6010));const e={'collaboration-client':{'collabClient':{'tooltip':{'reconnect':_0x33ed27(0x177)}},'collabStatus':{'fetchMiss':_0x33ed27(0x16a),'conflict':_0x33ed27(0x180),'notCollab':_0x33ed27(0x170),'synced':'已同步','syncing':'同步中...','offline':_0x33ed27(0x16d)},'session':{'connection-failed':_0x33ed27(0x172),'will-retry':_0x33ed27(0x181),'room-full':_0x33ed27(0x17f),'join-failed':'加入協作失敗,請稍後重試,您的編輯將暫存於本機。','room-not-exists':_0x33ed27(0x17d),'room-permission-denied':'沒有協作權限,您的編輯將暫存於本機。','room-cnt-exceeds':_0x33ed27(0x176),'collaboration-timeout':'伺服器未回應協作請求,您的編輯將儲存在本機。'},'conflict':{'title':_0x33ed27(0x16e),'content':_0x33ed27(0x17e)},'permission':{'title':_0x33ed27(0x17c),'content':_0x33ed27(0x179)},'collaboration':{'single-unit':{'warning':'您在另一個分頁開啟了同一個檔案。為避免資料遺失,此分頁將無法進行編輯。'},'closeRoom':'由於協作房間已關閉,編輯權限已被收回。'},'auth':{'needGotoLoginAlert':_0x33ed27(0x17b)}}};module[_0x33ed27(0x16f)]=e;function _0x473f(){const _0x1b3948=['440ucLZxa','1429570kxoHDz','4254272kAOCkm','協作文件數量超過限制,您的編輯將暫存於本機。','點擊重新連線','397040TzcqrT','您的操作與伺服器權限存在衝突。請將您的本機編輯儲存至其他地方,重新整理頁面後將會被捨棄。','860gTDBry','您的登入已過期,點擊「確定」重新登入,點擊「取消」儲存您的本機編輯。','認證錯誤','加入協作失敗,您的編輯將暫存於本機。','您的本機文件與伺服器文件存在衝突。請將您的本機編輯儲存至其他地方,因為重新整理頁面後將會遺失。','此文件協作人數已達上限,您的編輯將暫存於本機。','編輯衝突','連線失敗,將在稍後重試連線。','3419332gXlXmf','29310HcbJTd','正在擷取伺服器資料...','42RwHMJp','133164hDdJsp','已離線,編輯將儲存在本機','協作衝突','exports','本機檔案','8164996isUoTO','連線失敗,請檢查您的網路。'];_0x473f=function(){return _0x1b3948;};return _0x473f();}
|
package/lib/es/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x4b67dd=_0x4cdf;(function(_0x460656,_0x1226c3){const _0x3f04a7=_0x4cdf,_0x2d7afb=_0x460656();while(!![]){try{const _0x2e5c50=parseInt(_0x3f04a7(0x13e))/0x1*(-parseInt(_0x3f04a7(0x142))/0x2)+-parseInt(_0x3f04a7(0x14b))/0x3+-parseInt(_0x3f04a7(0x16a))/0x4*(-parseInt(_0x3f04a7(0x149))/0x5)+-parseInt(_0x3f04a7(0x160))/0x6*(parseInt(_0x3f04a7(0x16c))/0x7)+-parseInt(_0x3f04a7(0x136))/0x8+parseInt(_0x3f04a7(0x16d))/0x9*(parseInt(_0x3f04a7(0x134))/0xa)+parseInt(_0x3f04a7(0x155))/0xb*(parseInt(_0x3f04a7(0x12e))/0xc);if(_0x2e5c50===_0x1226c3)break;else _0x2d7afb['push'](_0x2d7afb['shift']());}catch(_0x24506f){_0x2d7afb['push'](_0x2d7afb['shift']());}}}(_0x4498,0x21ae9));import{CollaborationController as _0x1a0f79,CollaborationStatus as _0x3364c1,DataLoaderService as _0x4bc8f0,MemberService as _0x58d335}from'@univerjs-pro/collaboration-client';import{FBase as _0x52a3c9,FEnum as _0x541442,FEventName as _0x49d7c4,FUniver as _0xaef4f1}from'@univerjs/core/facade';import{DisposableCollection as _0x1abbbd,IUniverInstanceService as _0x1bca34,Inject as _0x547d8d,Injector as _0x3e2183,toDisposable as _0x1d3d70}from'@univerjs/core';function _0x4cdf(_0x5602e8,_0x39f2eb){_0x5602e8=_0x5602e8-0x12e;const _0x44981b=_0x4498();let _0x4cdf57=_0x44981b[_0x5602e8];return _0x4cdf57;}import{SnapshotService as _0x28c84c}from'@univerjs-pro/collaboration';import{switchMap as _0x36213d}from'rxjs';var h=class extends _0x541442{get[_0x4b67dd(0x138)](){return _0x3364c1;}};function _0x4498(){const _0x34fc04=['members$','loadBaseAsync','_handler','getBase','get','4578pWbDWY','_collaborationController','subscribeCollaborators','length','readyForCollab','loadServerUnitOfRevision','getPresentation','object','[FCollaboration]:\x20Unit\x20\x22','SYNCED','344YoYPql','getFocusedUnit','861ylHQGd','28413GHlKSX','NOT_COLLAB','[FCollaboration]:\x20Cannot\x20flush\x20because\x20no\x20unit\x20is\x20focused\x20or\x20specified.','state','loadDocAsync','ms.','_injector','3561564kpdnkD','loadSlide','status$','loadUnit','getWorkbook','getCollabEntity','10lIHcPr','unsubscribe','689520WcprhB','Event','CollaborationStatus','disposeWithMe','getCollaboration','getUnitId','_resolveUnitId','\x22\x20is\x20not\x20in\x20collaboration\x20mode.','33lbxQYh','function','subscribe','_initialize','8914HfbAOO','pipe','loadBoard','loadSheet','extend','defineProperty','CollaborationStatusChanged','14180CZQvXQ','_snapshotService','236307iiNQDp','CONFLICT','createInstance','getCollaborationStatus','_univerInstanceService','values','getBoard','\x22\x20while\x20collaboration\x20status\x20is\x20','loadServerUnit','reject','11upInlI','fireEvent','\x22\x20after\x20','add','registerEventHandler','decorate'];_0x4498=function(){return _0x34fc04;};return _0x4498();}_0x541442[_0x4b67dd(0x146)](h);var g=class extends _0x49d7c4{get['CollaborationStatusChanged'](){const _0x300d6a=_0x4b67dd;return _0x300d6a(0x148);}};_0x49d7c4[_0x4b67dd(0x146)](g);function _(_0x2a98d4,_0x43a41a){return function(_0x50e4b8,_0x40d561){_0x43a41a(_0x50e4b8,_0x40d561,_0x2a98d4);};}function v(_0x4a78e6,_0x26215e,_0x272c0c,_0x197813){const _0x3730ba=_0x4b67dd;var _0x31030b=arguments[_0x3730ba(0x163)],_0x1ac451=_0x31030b<0x3?_0x26215e:_0x197813===null?_0x197813=Object['getOwnPropertyDescriptor'](_0x26215e,_0x272c0c):_0x197813,_0x115a31;if(typeof Reflect==_0x3730ba(0x167)&&typeof Reflect[_0x3730ba(0x15a)]==_0x3730ba(0x13f))_0x1ac451=Reflect[_0x3730ba(0x15a)](_0x4a78e6,_0x26215e,_0x272c0c,_0x197813);else{for(var _0xa198f=_0x4a78e6[_0x3730ba(0x163)]-0x1;_0xa198f>=0x0;_0xa198f--)(_0x115a31=_0x4a78e6[_0xa198f])&&(_0x1ac451=(_0x31030b<0x3?_0x115a31(_0x1ac451):_0x31030b>0x3?_0x115a31(_0x26215e,_0x272c0c,_0x1ac451):_0x115a31(_0x26215e,_0x272c0c))||_0x1ac451);}return _0x31030b>0x3&&_0x1ac451&&Object[_0x3730ba(0x147)](_0x26215e,_0x272c0c,_0x1ac451),_0x1ac451;}let y=class extends _0x52a3c9{constructor(_0x2ab65d,_0x2e7919,_0x3a1ced,_0x67c27e,_0x5bbae8){const _0x3e5ed3=_0x4b67dd;super(),this[_0x3e5ed3(0x15d)]=_0x2ab65d,this[_0x3e5ed3(0x173)]=_0x2e7919,this[_0x3e5ed3(0x14f)]=_0x3a1ced,this[_0x3e5ed3(0x14a)]=_0x67c27e,this[_0x3e5ed3(0x161)]=_0x5bbae8;}async['loadSheetAsync'](_0x41b4d9,_0xb72917){const _0x421b56=_0x4b67dd;return await this[_0x421b56(0x14a)][_0x421b56(0x145)](_0x41b4d9,0x0,_0xb72917)?(await this[_0x421b56(0x161)][_0x421b56(0x164)](_0x41b4d9),this[_0x421b56(0x15d)][_0x421b56(0x132)](_0x41b4d9)):null;}async[_0x4b67dd(0x171)](_0x558000,_0x23925f){const _0xdb5daf=_0x4b67dd;return await this['_snapshotService']['loadDoc'](_0x558000,0x0,_0x23925f)?(await this[_0xdb5daf(0x161)][_0xdb5daf(0x164)](_0x558000),this[_0xdb5daf(0x15d)]['getDocument'](_0x558000)):null;}async[_0x4b67dd(0x15c)](_0x4b07d2,_0x369265){const _0x5214fa=_0x4b67dd;return await this[_0x5214fa(0x14a)]['loadBase'](_0x4b07d2,0x0,_0x369265)?(await this[_0x5214fa(0x161)][_0x5214fa(0x164)](_0x4b07d2),this[_0x5214fa(0x15d)][_0x5214fa(0x15e)](_0x4b07d2)):null;}async['loadSlideAsync'](_0x4ed816,_0xac0d37){const _0x1d8134=_0x4b67dd;return await this[_0x1d8134(0x14a)][_0x1d8134(0x12f)](_0x4ed816,0x0,_0xac0d37)?(await this['_collaborationController'][_0x1d8134(0x164)](_0x4ed816),this['_handler'][_0x1d8134(0x166)](_0x4ed816)):null;}async['loadBoardAsync'](_0x4f83aa,_0x52f697){const _0x126696=_0x4b67dd;return await this[_0x126696(0x14a)][_0x126696(0x144)](_0x4f83aa,0x0,_0x52f697)?(await this[_0x126696(0x161)]['readyForCollab'](_0x4f83aa),this[_0x126696(0x15d)][_0x126696(0x151)](_0x4f83aa)):null;}[_0x4b67dd(0x162)](_0xf1f1ec,_0x5869f4){const _0x4bd7cb=_0x4b67dd;return _0x1d3d70(this[_0x4bd7cb(0x173)]['get'](_0x58d335)['waitForRoom$'](_0xf1f1ec)[_0x4bd7cb(0x143)](_0x36213d(_0x5a507b=>_0x5a507b[_0x4bd7cb(0x15b)]))[_0x4bd7cb(0x140)](_0x3de6c9=>_0x5869f4(Array['from'](_0x3de6c9[_0x4bd7cb(0x150)]()))));}[_0x4b67dd(0x14e)](_0x4b16d3){const _0x3565bf=_0x4b67dd;var _0x109288;let _0x12a296=this[_0x3565bf(0x13c)](_0x4b16d3);if(!_0x12a296)return _0x3364c1[_0x3565bf(0x16e)];let _0x3b52b0=this[_0x3565bf(0x161)][_0x3565bf(0x133)](_0x12a296);return(_0x109288=_0x3b52b0==null?void 0x0:_0x3b52b0[_0x3565bf(0x170)]['status'])==null?_0x3364c1[_0x3565bf(0x16e)]:_0x109288;}['flush'](_0x3f937b,_0x5cf205={}){const _0x50dbb9=_0x4b67dd;var _0x19c735;let _0x58d64a=this['_resolveUnitId'](_0x3f937b);if(!_0x58d64a)return Promise[_0x50dbb9(0x154)](Error(_0x50dbb9(0x16f)));let _0x24a182=this['_collaborationController'][_0x50dbb9(0x133)](_0x58d64a);if(!_0x24a182)return Promise[_0x50dbb9(0x154)](Error(_0x50dbb9(0x168)+_0x58d64a+_0x50dbb9(0x13d)));let _0x9c65b8=_0x24a182['state']['status'];if(_0x9c65b8===_0x3364c1[_0x50dbb9(0x169)])return Promise['resolve']();let _0x15d39b=b(_0x58d64a,_0x9c65b8);if(_0x15d39b)return Promise['reject'](_0x15d39b);let _0x5335c3=(_0x19c735=_0x5cf205['timeout'])==null?0x7530:_0x19c735;return new Promise((_0x67c717,_0x262e83)=>{const _0x5e8dc5=_0x50dbb9;let _0x5d6be7=!0x1,_0x860e2=null,_0x3c314e=setTimeout(()=>{const _0x468b5d=_0x4cdf;_0x5d6be7=!0x0,_0x860e2==null||_0x860e2[_0x468b5d(0x135)](),_0x262e83(Error('[FCollaboration]:\x20Timed\x20out\x20flushing\x20unit\x20\x22'+_0x58d64a+_0x468b5d(0x157)+_0x5335c3+_0x468b5d(0x172)));},_0x5335c3),_0x3d219a=()=>{const _0x2c2c75=_0x4cdf;_0x5d6be7=!0x0,clearTimeout(_0x3c314e),_0x860e2==null||_0x860e2[_0x2c2c75(0x135)]();};_0x860e2=_0x24a182[_0x5e8dc5(0x130)][_0x5e8dc5(0x140)](_0x3f0970=>{const _0x2931b2=_0x5e8dc5;if(_0x5d6be7)return;if(_0x3f0970===_0x3364c1[_0x2931b2(0x169)]){_0x3d219a(),_0x67c717();return;}let _0x5b0860=b(_0x58d64a,_0x3f0970);_0x5b0860&&(_0x3d219a(),_0x262e83(_0x5b0860));});});}[_0x4b67dd(0x13c)](_0x1f1c7a){const _0x323361=_0x4b67dd;var _0x138a6f;return _0x1f1c7a||((_0x138a6f=this[_0x323361(0x14f)][_0x323361(0x16b)]())==null?void 0x0:_0x138a6f[_0x323361(0x13b)]());}};y=v([_(0x1,_0x547d8d(_0x3e2183)),_(0x2,_0x1bca34),_(0x3,_0x547d8d(_0x28c84c)),_(0x4,_0x547d8d(_0x1a0f79))],y);function b(_0x2f63da,_0x3e1dad){const _0x278c66=_0x4b67dd;return _0x3e1dad===_0x3364c1[_0x278c66(0x14c)]||_0x3e1dad===_0x3364c1[_0x278c66(0x16e)]?Error('[FCollaboration]:\x20Cannot\x20flush\x20unit\x20\x22'+_0x2f63da+_0x278c66(0x152)+_0x3e1dad+'.'):null;}var x=class extends _0xaef4f1{[_0x4b67dd(0x141)](_0x22bbc3){const _0x508141=_0x4b67dd;let _0x288ca4=_0x22bbc3[_0x508141(0x15f)](_0x1a0f79);this[_0x508141(0x139)](this[_0x508141(0x159)](this[_0x508141(0x137)][_0x508141(0x148)],()=>{const _0x2b1730=_0x508141;let _0x42e453=new _0x1abbbd(),_0x499e4c=_0x288ca4['entityInit$'][_0x2b1730(0x140)](_0xec9a28=>{const _0x5dd939=_0x2b1730;let _0x16a820=_0xec9a28['status$'][_0x5dd939(0x140)](_0x1b68f0=>{const _0x1bc93c=_0x5dd939;let _0x5d65b3={'unitId':_0xec9a28['unitID'],'status':_0x1b68f0};this[_0x1bc93c(0x156)](this[_0x1bc93c(0x137)][_0x1bc93c(0x148)],_0x5d65b3);});_0x42e453[_0x5dd939(0x158)](_0x1d3d70(_0x16a820));});return _0x42e453[_0x2b1730(0x158)](_0x1d3d70(_0x499e4c)),_0x42e453;}));}[_0x4b67dd(0x13a)](){const _0x345e1b=_0x4b67dd;return this['_injector'][_0x345e1b(0x14d)](y,{'getWorkbook':_0x1b74dc=>this[_0x345e1b(0x132)](_0x1b74dc),'getDocument':_0x52cd6f=>this['getDocument'](_0x52cd6f),'getPresentation':_0x19f91c=>this[_0x345e1b(0x166)](_0x19f91c),'getBase':_0x2548b8=>this[_0x345e1b(0x15e)](_0x2548b8),'getBoard':_0x625d8=>this[_0x345e1b(0x151)](_0x625d8)});}[_0x4b67dd(0x153)](_0x2d221c,_0x2d3354,_0x396298){const _0x7ef79a=_0x4b67dd;return this[_0x7ef79a(0x173)][_0x7ef79a(0x15f)](_0x4bc8f0)[_0x7ef79a(0x131)](_0x2d221c,_0x2d3354,_0x396298);}[_0x4b67dd(0x165)](_0x46d2b8,_0x5aac18,_0x1d4dc4){const _0x150423=_0x4b67dd;return this[_0x150423(0x173)][_0x150423(0x15f)](_0x4bc8f0)['loadUnitOfRevision'](_0x46d2b8,_0x5aac18,_0x1d4dc4);}};_0xaef4f1[_0x4b67dd(0x146)](x);export{y as FCollaboration};
|