@univerjs-pro/collaboration-client 1.0.0-alpha.7 → 1.0.0-beta.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/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 +6 -0
- package/lib/types/controllers/collaboration/collaboration-state.d.ts +3 -4
- package/lib/types/controllers/collaboration/utils/changeset-utils.d.ts +8 -5
- package/lib/types/index.d.ts +2 -3
- package/lib/types/services/attachment-remote/attachment-io.service.d.ts +9 -4
- package/lib/types/services/attachment-remote/types.d.ts +2 -19
- package/lib/types/services/member/member.service.d.ts +2 -15
- 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 -14
package/lib/es/locale/zh-TW.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function _0x3177(_0x18b2fa,_0x235508){_0x18b2fa=_0x18b2fa-0xde;const _0x129d03=_0x129d();let _0x31779c=_0x129d03[_0x18b2fa];return _0x31779c;}function _0x129d(){const _0x273da8=['加入協作失敗,請稍後重試,您的編輯將暫存於本機。','1730448fXXCUU','3519108aZewsz','由於協作房間已關閉,編輯權限已被收回。','您的本機文件與伺服器文件存在衝突。請將您的本機編輯儲存至其他地方,因為重新整理頁面後將會遺失。','連線失敗,將在稍後重試連線。','編輯衝突','4fVKBMH','協作衝突','伺服器未回應協作請求,您的編輯將儲存在本機。','本機檔案','沒有協作權限,您的編輯將暫存於本機。','點擊重新連線','35522990YufqBi','協作文件數量超過限制,您的編輯將暫存於本機。','18JvGBEO','446019hGOIxV','702861EUrDXR','連線失敗,請檢查您的網路。','認證錯誤','已離線,編輯將儲存在本機','您在另一個分頁開啟了同一個檔案。為避免資料遺失,此分頁將無法進行編輯。','您的登入已過期,點擊「確定」重新登入,點擊「取消」儲存您的本機編輯。','5384296LSAtcM','正在擷取伺服器資料...','9HlNvNO','此文件協作人數已達上限,您的編輯將暫存於本機。','已同步','6491440hkXrzJ'];_0x129d=function(){return _0x273da8;};return _0x129d();}const _0x5d04d2=_0x3177;(function(_0x3eeeb2,_0x38a16b){const _0x3ee92d=_0x3177,_0x2545d8=_0x3eeeb2();while(!![]){try{const _0x19b52d=-parseInt(_0x3ee92d(0xe6))/0x1+parseInt(_0x3ee92d(0xec))/0x2*(parseInt(_0x3ee92d(0xf6))/0x3)+-parseInt(_0x3ee92d(0xe7))/0x4+-parseInt(_0x3ee92d(0xe4))/0x5+-parseInt(_0x3ee92d(0xf4))/0x6*(-parseInt(_0x3ee92d(0xf5))/0x7)+parseInt(_0x3ee92d(0xdf))/0x8+parseInt(_0x3ee92d(0xe1))/0x9*(parseInt(_0x3ee92d(0xf2))/0xa);if(_0x19b52d===_0x38a16b)break;else _0x2545d8['push'](_0x2545d8['shift']());}catch(_0x174d72){_0x2545d8['push'](_0x2545d8['shift']());}}}(_0x129d,0xee6a4));const e={'collaboration-client':{'collabClient':{'tooltip':{'reconnect':_0x5d04d2(0xf1)}},'collabStatus':{'fetchMiss':_0x5d04d2(0xe0),'conflict':_0x5d04d2(0xeb),'notCollab':_0x5d04d2(0xef),'synced':_0x5d04d2(0xe3),'syncing':'同步中...','offline':_0x5d04d2(0xf9)},'session':{'connection-failed':_0x5d04d2(0xf7),'will-retry':_0x5d04d2(0xea),'room-full':_0x5d04d2(0xe2),'join-failed':_0x5d04d2(0xe5),'room-not-exists':'加入協作失敗,您的編輯將暫存於本機。','room-permission-denied':_0x5d04d2(0xf0),'room-cnt-exceeds':_0x5d04d2(0xf3),'collaboration-timeout':_0x5d04d2(0xee)},'conflict':{'title':_0x5d04d2(0xed),'content':_0x5d04d2(0xe9)},'permission':{'title':_0x5d04d2(0xf8),'content':'您的操作與伺服器權限存在衝突。請將您的本機編輯儲存至其他地方,重新整理頁面後將會被捨棄。'},'collaboration':{'single-unit':{'warning':_0x5d04d2(0xfa)},'closeRoom':_0x5d04d2(0xe8)},'auth':{'needGotoLoginAlert':_0x5d04d2(0xde)}}};export{e as default};
|
package/lib/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x3c058e=_0x808b;(function(_0x261344,_0x2e539b){const _0x1dad5a=_0x808b,_0x3181ca=_0x261344();while(!![]){try{const _0x4cec57=-parseInt(_0x1dad5a(0x87))/0x1+-parseInt(_0x1dad5a(0x9b))/0x2*(-parseInt(_0x1dad5a(0x98))/0x3)+-parseInt(_0x1dad5a(0x95))/0x4+-parseInt(_0x1dad5a(0x99))/0x5+-parseInt(_0x1dad5a(0x7d))/0x6+parseInt(_0x1dad5a(0x72))/0x7+parseInt(_0x1dad5a(0x78))/0x8;if(_0x4cec57===_0x2e539b)break;else _0x3181ca['push'](_0x3181ca['shift']());}catch(_0x172db0){_0x3181ca['push'](_0x3181ca['shift']());}}}(_0x2445,0x6ac3c));import{CollaborationController as _0x5908f7,CollaborationStatus as _0x8793a2,DataLoaderService as _0x5768b5,MemberService as _0xdc3371}from'@univerjs-pro/collaboration-client';import{FBase as _0x4ff620,FEnum as _0x1316b0,FEventName as _0x1ccac0,FUniver as _0x53a7ce}from'@univerjs/core/facade';import{DisposableCollection as _0x5e396e,IUniverInstanceService as _0x4a1953,Inject as _0x5e6672,Injector as _0x4e94fa,toDisposable as _0x1b51cb}from'@univerjs/core';import{SnapshotService as _0x5035fd}from'@univerjs-pro/collaboration';import{switchMap as _0x5573bd}from'rxjs';var h=class extends _0x1316b0{get['CollaborationStatus'](){return _0x8793a2;}};_0x1316b0[_0x3c058e(0x89)](h);var g=class extends _0x1ccac0{get[_0x3c058e(0xa9)](){const _0x20b44e=_0x3c058e;return _0x20b44e(0xa9);}};_0x1ccac0[_0x3c058e(0x89)](g);function _(_0x173085,_0x41a0c1){return function(_0x2b8344,_0x5a2201){_0x41a0c1(_0x2b8344,_0x5a2201,_0x173085);};}function v(_0x12e879,_0x306bfc,_0x5bf867,_0x5bcd06){const _0x2b52e9=_0x3c058e;var _0x17949f=arguments[_0x2b52e9(0x73)],_0x21fa5f=_0x17949f<0x3?_0x306bfc:_0x5bcd06===null?_0x5bcd06=Object['getOwnPropertyDescriptor'](_0x306bfc,_0x5bf867):_0x5bcd06,_0x3cc34e;if(typeof Reflect==_0x2b52e9(0x85)&&typeof Reflect[_0x2b52e9(0x94)]==_0x2b52e9(0xab))_0x21fa5f=Reflect[_0x2b52e9(0x94)](_0x12e879,_0x306bfc,_0x5bf867,_0x5bcd06);else{for(var _0x436356=_0x12e879[_0x2b52e9(0x73)]-0x1;_0x436356>=0x0;_0x436356--)(_0x3cc34e=_0x12e879[_0x436356])&&(_0x21fa5f=(_0x17949f<0x3?_0x3cc34e(_0x21fa5f):_0x17949f>0x3?_0x3cc34e(_0x306bfc,_0x5bf867,_0x21fa5f):_0x3cc34e(_0x306bfc,_0x5bf867))||_0x21fa5f);}return _0x17949f>0x3&&_0x21fa5f&&Object[_0x2b52e9(0x6f)](_0x306bfc,_0x5bf867,_0x21fa5f),_0x21fa5f;}function _0x808b(_0x31d541,_0x4e95d9){_0x31d541=_0x31d541-0x6e;const _0x2445ba=_0x2445();let _0x808bce=_0x2445ba[_0x31d541];return _0x808bce;}let y=class extends _0x4ff620{constructor(_0x44a198,_0x480e79,_0x7ff10c,_0x18e4ae,_0x527e5f){const _0x13730c=_0x3c058e;super(),this[_0x13730c(0x86)]=_0x44a198,this[_0x13730c(0x84)]=_0x480e79,this['_univerInstanceService']=_0x7ff10c,this[_0x13730c(0x6e)]=_0x18e4ae,this[_0x13730c(0xa4)]=_0x527e5f;}async['loadSheetAsync'](_0x24aad4,_0x3e4072){const _0x55dedc=_0x3c058e;return await this['_snapshotService']['loadSheet'](_0x24aad4,0x0,_0x3e4072)?(await this[_0x55dedc(0xa4)][_0x55dedc(0x8e)](_0x24aad4),this['_handler'][_0x55dedc(0x83)](_0x24aad4)):null;}async[_0x3c058e(0x9a)](_0x30e2d6,_0x1bc4e2){const _0x43c5e9=_0x3c058e;return await this[_0x43c5e9(0x6e)][_0x43c5e9(0x88)](_0x30e2d6,0x0,_0x1bc4e2)?(await this[_0x43c5e9(0xa4)][_0x43c5e9(0x8e)](_0x30e2d6),this[_0x43c5e9(0x86)][_0x43c5e9(0x9f)](_0x30e2d6)):null;}async[_0x3c058e(0xa2)](_0x4343d5,_0x462f59){const _0xf7f06c=_0x3c058e;return await this[_0xf7f06c(0x6e)][_0xf7f06c(0x96)](_0x4343d5,0x0,_0x462f59)?(await this[_0xf7f06c(0xa4)]['readyForCollab'](_0x4343d5),this['_handler'][_0xf7f06c(0x80)](_0x4343d5)):null;}async[_0x3c058e(0xa6)](_0x358d8e,_0x20b9e7){const _0x1a210d=_0x3c058e;return await this['_snapshotService'][_0x1a210d(0x90)](_0x358d8e,0x0,_0x20b9e7)?(await this[_0x1a210d(0xa4)][_0x1a210d(0x8e)](_0x358d8e),this[_0x1a210d(0x86)]['getPresentation'](_0x358d8e)):null;}async['loadBoardAsync'](_0x114f89,_0x3fb0b0){const _0x19e852=_0x3c058e;return await this['_snapshotService'][_0x19e852(0x71)](_0x114f89,0x0,_0x3fb0b0)?(await this[_0x19e852(0xa4)][_0x19e852(0x8e)](_0x114f89),this[_0x19e852(0x86)][_0x19e852(0x81)](_0x114f89)):null;}[_0x3c058e(0x9c)](_0xf39000,_0xcc8e40){const _0x35eba9=_0x3c058e;return _0x1b51cb(this[_0x35eba9(0x84)][_0x35eba9(0xa1)](_0xdc3371)[_0x35eba9(0xa7)](_0xf39000)['pipe'](_0x5573bd(_0x5cc289=>_0x5cc289[_0x35eba9(0x75)]))[_0x35eba9(0xa0)](_0x5c9d05=>_0xcc8e40(Array[_0x35eba9(0xa3)](_0x5c9d05['values']()))));}[_0x3c058e(0x70)](_0x37d9c0){const _0x215022=_0x3c058e;let _0x514dae=this[_0x215022(0x7c)](_0x37d9c0);if(!_0x514dae)return _0x8793a2[_0x215022(0xb0)];let _0x21da6e=this[_0x215022(0xa4)][_0x215022(0x79)](_0x514dae);return(_0x21da6e==null?void 0x0:_0x21da6e['state'][_0x215022(0x7a)])??_0x8793a2[_0x215022(0xb0)];}[_0x3c058e(0x9d)](_0x50c6e5,_0x5efd0c={}){const _0x350846=_0x3c058e;let _0x5d79e9=this[_0x350846(0x7c)](_0x50c6e5);if(!_0x5d79e9)return Promise['reject'](Error('[FCollaboration]:\x20Cannot\x20flush\x20because\x20no\x20unit\x20is\x20focused\x20or\x20specified.'));let _0x3f2759=this['_collaborationController'][_0x350846(0x79)](_0x5d79e9);if(!_0x3f2759)return Promise[_0x350846(0x8d)](Error('[FCollaboration]:\x20Unit\x20\x22'+_0x5d79e9+_0x350846(0x76)));let _0x1e3da8=_0x3f2759['state']['status'];if(_0x1e3da8===_0x8793a2[_0x350846(0xad)])return Promise[_0x350846(0x74)]();let _0x45763a=b(_0x5d79e9,_0x1e3da8);if(_0x45763a)return Promise[_0x350846(0x8d)](_0x45763a);let _0x57e995=_0x5efd0c[_0x350846(0xaa)]??0x7530;return new Promise((_0x1c373b,_0x29e898)=>{const _0x5963af=_0x350846;let _0xe22d18=!0x1,_0x461100=null,_0x56bd98=setTimeout(()=>{const _0xa87a36=_0x808b;_0xe22d18=!0x0,_0x461100==null||_0x461100[_0xa87a36(0xb1)](),_0x29e898(Error(_0xa87a36(0x91)+_0x5d79e9+_0xa87a36(0x82)+_0x57e995+'ms.'));},_0x57e995),_0x3e8ef5=()=>{const _0x2e58e0=_0x808b;_0xe22d18=!0x0,clearTimeout(_0x56bd98),_0x461100==null||_0x461100[_0x2e58e0(0xb1)]();};_0x461100=_0x3f2759['status$'][_0x5963af(0xa0)](_0x2ecafb=>{if(_0xe22d18)return;if(_0x2ecafb===_0x8793a2['SYNCED']){_0x3e8ef5(),_0x1c373b();return;}let _0x5eeeb2=b(_0x5d79e9,_0x2ecafb);_0x5eeeb2&&(_0x3e8ef5(),_0x29e898(_0x5eeeb2));});});}[_0x3c058e(0x7c)](_0x2b87c3){const _0x3c4484=_0x3c058e;var _0x189ad5;return _0x2b87c3||((_0x189ad5=this[_0x3c4484(0x8b)][_0x3c4484(0x8f)]())==null?void 0x0:_0x189ad5[_0x3c4484(0x7f)]());}};y=v([_(0x1,_0x5e6672(_0x4e94fa)),_(0x2,_0x4a1953),_(0x3,_0x5e6672(_0x5035fd)),_(0x4,_0x5e6672(_0x5908f7))],y);function b(_0x591752,_0x28d700){const _0x49aba6=_0x3c058e;return _0x28d700===_0x8793a2[_0x49aba6(0x93)]||_0x28d700===_0x8793a2[_0x49aba6(0xb0)]?Error(_0x49aba6(0xa5)+_0x591752+_0x49aba6(0x9e)+_0x28d700+'.'):null;}var x=class extends _0x53a7ce{[_0x3c058e(0x97)](_0x5abcaf){const _0x57540b=_0x3c058e;let _0x4aaf1d=_0x5abcaf[_0x57540b(0xa1)](_0x5908f7);this['disposeWithMe'](this[_0x57540b(0xac)](this[_0x57540b(0x7e)]['CollaborationStatusChanged'],()=>{const _0x1ee9be=_0x57540b;let _0x1cc08e=new _0x5e396e(),_0xfab0c=_0x4aaf1d['entityInit$'][_0x1ee9be(0xa0)](_0x4c16f2=>{const _0x3a15e3=_0x1ee9be;let _0x2a0832=_0x4c16f2[_0x3a15e3(0xa8)][_0x3a15e3(0xa0)](_0x49f776=>{const _0x3dfb95=_0x3a15e3;let _0x3239b7={'unitId':_0x4c16f2[_0x3dfb95(0x8a)],'status':_0x49f776};this[_0x3dfb95(0xae)](this[_0x3dfb95(0x7e)]['CollaborationStatusChanged'],_0x3239b7);});_0x1cc08e[_0x3a15e3(0xaf)](_0x1b51cb(_0x2a0832));});return _0x1cc08e[_0x1ee9be(0xaf)](_0x1b51cb(_0xfab0c)),_0x1cc08e;}));}[_0x3c058e(0x8c)](){const _0x4eb374=_0x3c058e;return this[_0x4eb374(0x84)]['createInstance'](y,{'getWorkbook':_0x2ae41a=>this[_0x4eb374(0x83)](_0x2ae41a),'getDocument':_0xe9fe78=>this[_0x4eb374(0x9f)](_0xe9fe78),'getPresentation':_0xc17622=>this[_0x4eb374(0x7b)](_0xc17622),'getBase':_0x53c90e=>this['getBase'](_0x53c90e),'getBoard':_0x2597cd=>this[_0x4eb374(0x81)](_0x2597cd)});}['loadServerUnit'](_0x5d6c18,_0x45c93f,_0x64e926){const _0xf185f4=_0x3c058e;return this[_0xf185f4(0x84)]['get'](_0x5768b5)[_0xf185f4(0x92)](_0x5d6c18,_0x45c93f,_0x64e926);}['loadServerUnitOfRevision'](_0x34b310,_0x3ae6d5,_0x12ef66){const _0x4d896a=_0x3c058e;return this[_0x4d896a(0x84)][_0x4d896a(0xa1)](_0x5768b5)[_0x4d896a(0x77)](_0x34b310,_0x3ae6d5,_0x12ef66);}};_0x53a7ce['extend'](x);function _0x2445(){const _0x14e813=['from','_collaborationController','[FCollaboration]:\x20Cannot\x20flush\x20unit\x20\x22','loadSlideAsync','waitForRoom$','status$','CollaborationStatusChanged','timeout','function','registerEventHandler','SYNCED','fireEvent','add','NOT_COLLAB','unsubscribe','_snapshotService','defineProperty','getCollaborationStatus','loadBoard','3234315RtjgkD','length','resolve','members$','\x22\x20is\x20not\x20in\x20collaboration\x20mode.','loadUnitOfRevision','5876768uNiRtg','getCollabEntity','status','getPresentation','_resolveUnitId','3618162iTPOLd','Event','getUnitId','getBase','getBoard','\x22\x20after\x20','getWorkbook','_injector','object','_handler','62710DhLigo','loadDoc','extend','unitID','_univerInstanceService','getCollaboration','reject','readyForCollab','getFocusedUnit','loadSlide','[FCollaboration]:\x20Timed\x20out\x20flushing\x20unit\x20\x22','loadUnit','CONFLICT','decorate','2520388CMIOFx','loadBase','_initialize','498HLVniM','204235tcPpIu','loadDocAsync','6956ZfShGk','subscribeCollaborators','flush','\x22\x20while\x20collaboration\x20status\x20is\x20','getDocument','subscribe','get','loadBaseAsync'];_0x2445=function(){return _0x14e813;};return _0x2445();}export{y as FCollaboration};
|