@univerjs-pro/collaboration-client 1.0.0-beta.0 → 1.0.0-beta.2
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/facade/f-collaboration.d.ts +14 -0
- package/lib/types/services/undoredo/collaborative-undoredo.service.d.ts +2 -2
- 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 +16 -16
package/lib/cjs/locale/zh-TW.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x33df47=_0x3f6b;(function(_0x2acc74,_0x154621){const _0x54c73a=_0x3f6b,_0x2c15e1=_0x2acc74();while(!![]){try{const _0x1effea=parseInt(_0x54c73a(0x18a))/0x1+-parseInt(_0x54c73a(0x187))/0x2+parseInt(_0x54c73a(0x192))/0x3*(parseInt(_0x54c73a(0x18f))/0x4)+parseInt(_0x54c73a(0x188))/0x5*(parseInt(_0x54c73a(0x194))/0x6)+-parseInt(_0x54c73a(0x18b))/0x7+-parseInt(_0x54c73a(0x184))/0x8*(parseInt(_0x54c73a(0x193))/0x9)+parseInt(_0x54c73a(0x191))/0xa;if(_0x1effea===_0x154621)break;else _0x2c15e1['push'](_0x2c15e1['shift']());}catch(_0x59b469){_0x2c15e1['push'](_0x2c15e1['shift']());}}}(_0xe0e1,0x9e3ce));const e={'collaboration-client':{'collabClient':{'tooltip':{'reconnect':_0x33df47(0x199)}},'collabStatus':{'fetchMiss':'正在擷取伺服器資料...','conflict':'編輯衝突','notCollab':'本機檔案','synced':_0x33df47(0x186),'syncing':_0x33df47(0x18d),'offline':_0x33df47(0x195)},'session':{'connection-failed':_0x33df47(0x18c),'will-retry':_0x33df47(0x196),'room-full':_0x33df47(0x18e),'join-failed':'加入協作失敗,請稍後重試,您的編輯將暫存於本機。','room-not-exists':_0x33df47(0x189),'room-permission-denied':_0x33df47(0x185),'room-cnt-exceeds':_0x33df47(0x183),'collaboration-timeout':_0x33df47(0x197)},'conflict':{'title':'協作衝突','content':_0x33df47(0x198)},'permission':{'title':_0x33df47(0x190),'content':_0x33df47(0x181)},'collaboration':{'single-unit':{'warning':_0x33df47(0x19a)},'closeRoom':_0x33df47(0x182)},'auth':{'needGotoLoginAlert':'您的登入已過期,點擊「確定」重新登入,點擊「取消」儲存您的本機編輯。'}}};function _0x3f6b(_0x1ca0ea,_0x5d3b35){_0x1ca0ea=_0x1ca0ea-0x181;const _0xe0e1b6=_0xe0e1();let _0x3f6b6d=_0xe0e1b6[_0x1ca0ea];return _0x3f6b6d;}function _0xe0e1(){const _0xb6ed2b=['您的操作與伺服器權限存在衝突。請將您的本機編輯儲存至其他地方,重新整理頁面後將會被捨棄。','由於協作房間已關閉,編輯權限已被收回。','協作文件數量超過限制,您的編輯將暫存於本機。','880xuKwTA','沒有協作權限,您的編輯將暫存於本機。','已同步','593196urBXKa','10350daIFnD','加入協作失敗,您的編輯將暫存於本機。','640903bDzKqy','4709467xacdDj','連線失敗,請檢查您的網路。','同步中...','此文件協作人數已達上限,您的編輯將暫存於本機。','1944660REumLi','認證錯誤','1654830uyAAhL','3phLYtf','5760wNLQMx','1146ioiqKG','已離線,編輯將儲存在本機','連線失敗,將在稍後重試連線。','伺服器未回應協作請求,您的編輯將儲存在本機。','您的本機文件與伺服器文件存在衝突。請將您的本機編輯儲存至其他地方,因為重新整理頁面後將會遺失。','點擊重新連線','您在另一個分頁開啟了同一個檔案。為避免資料遺失,此分頁將無法進行編輯。'];_0xe0e1=function(){return _0xb6ed2b;};return _0xe0e1();}module['exports']=e;
|
package/lib/es/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0xe42515=_0x182e;function _0x182e(_0x31394a,_0x3dfbf3){_0x31394a=_0x31394a-0x165;const _0xa46442=_0xa464();let _0x182ece=_0xa46442[_0x31394a];return _0x182ece;}(function(_0x34e379,_0x5e0108){const _0x145a38=_0x182e,_0x310258=_0x34e379();while(!![]){try{const _0x5c7cbd=-parseInt(_0x145a38(0x19a))/0x1+-parseInt(_0x145a38(0x187))/0x2+-parseInt(_0x145a38(0x16f))/0x3*(parseInt(_0x145a38(0x18b))/0x4)+parseInt(_0x145a38(0x18a))/0x5+-parseInt(_0x145a38(0x188))/0x6+-parseInt(_0x145a38(0x166))/0x7*(parseInt(_0x145a38(0x16a))/0x8)+-parseInt(_0x145a38(0x171))/0x9*(-parseInt(_0x145a38(0x17d))/0xa);if(_0x5c7cbd===_0x5e0108)break;else _0x310258['push'](_0x310258['shift']());}catch(_0x59c6b7){_0x310258['push'](_0x310258['shift']());}}}(_0xa464,0xdcfbd));import{CollaborationController as _0x46c8d6,CollaborationStatus as _0x35b6c3,DataLoaderService as _0x1d2475,MemberService as _0x560350}from'@univerjs-pro/collaboration-client';import{FBase as _0x254a03,FEnum as _0x49cf55,FEventName as _0x4ba359,FUniver as _0x6fa0ed}from'@univerjs/core/facade';import{DisposableCollection as _0x1a000d,IUniverInstanceService as _0x22c343,Inject as _0x23fc2c,Injector as _0x456951,toDisposable as _0x3a2692}from'@univerjs/core';import{SnapshotService as _0x4fdd53}from'@univerjs-pro/collaboration';import{switchMap as _0x140223}from'rxjs';var h=class extends _0x49cf55{get['CollaborationStatus'](){return _0x35b6c3;}};_0x49cf55[_0xe42515(0x167)](h);var g=class extends _0x4ba359{get['CollaborationStatusChanged'](){const _0x364510=_0xe42515;return _0x364510(0x186);}};_0x4ba359[_0xe42515(0x167)](g);function _(_0x5e161f,_0x128c1b){return function(_0x2f43eb,_0x4917ed){_0x128c1b(_0x2f43eb,_0x4917ed,_0x5e161f);};}function v(_0x2c35b5,_0x11845c,_0x2af50b,_0x5efa99){const _0x4b42ca=_0xe42515;var _0x487225=arguments[_0x4b42ca(0x178)],_0x128c7b=_0x487225<0x3?_0x11845c:_0x5efa99===null?_0x5efa99=Object[_0x4b42ca(0x16c)](_0x11845c,_0x2af50b):_0x5efa99,_0x42dee2;if(typeof Reflect==_0x4b42ca(0x17a)&&typeof Reflect['decorate']=='function')_0x128c7b=Reflect[_0x4b42ca(0x19f)](_0x2c35b5,_0x11845c,_0x2af50b,_0x5efa99);else{for(var _0x4688b5=_0x2c35b5[_0x4b42ca(0x178)]-0x1;_0x4688b5>=0x0;_0x4688b5--)(_0x42dee2=_0x2c35b5[_0x4688b5])&&(_0x128c7b=(_0x487225<0x3?_0x42dee2(_0x128c7b):_0x487225>0x3?_0x42dee2(_0x11845c,_0x2af50b,_0x128c7b):_0x42dee2(_0x11845c,_0x2af50b))||_0x128c7b);}return _0x487225>0x3&&_0x128c7b&&Object[_0x4b42ca(0x17e)](_0x11845c,_0x2af50b,_0x128c7b),_0x128c7b;}let y=class extends _0x254a03{constructor(_0x5bf740,_0x51839b,_0x425041,_0x3c800d,_0x5bbeec){const _0x3fb82f=_0xe42515;super(),this[_0x3fb82f(0x19d)]=_0x5bf740,this[_0x3fb82f(0x196)]=_0x51839b,this[_0x3fb82f(0x195)]=_0x425041,this[_0x3fb82f(0x168)]=_0x3c800d,this['_collaborationController']=_0x5bbeec;}async[_0xe42515(0x18d)](_0x80a708,_0x2514b7){const _0x289891=_0xe42515;return await this[_0x289891(0x168)][_0x289891(0x172)](_0x80a708,0x0,_0x2514b7)?(await this[_0x289891(0x199)]['readyForCollab'](_0x80a708),this[_0x289891(0x19d)][_0x289891(0x176)](_0x80a708)):null;}async['loadDocAsync'](_0x1e877d,_0x2cba3f){const _0x3368e9=_0xe42515;return await this[_0x3368e9(0x168)][_0x3368e9(0x181)](_0x1e877d,0x0,_0x2cba3f)?(await this[_0x3368e9(0x199)]['readyForCollab'](_0x1e877d),this[_0x3368e9(0x19d)][_0x3368e9(0x183)](_0x1e877d)):null;}async['loadBaseAsync'](_0x293e34,_0x478b6e){const _0x239996=_0xe42515;return await this['_snapshotService']['loadBase'](_0x293e34,0x0,_0x478b6e)?(await this[_0x239996(0x199)][_0x239996(0x16e)](_0x293e34),this['_handler']['getBase'](_0x293e34)):null;}async['loadSlideAsync'](_0x3599f6,_0x57d96f){const _0x3e50e1=_0xe42515;return await this[_0x3e50e1(0x168)]['loadSlide'](_0x3599f6,0x0,_0x57d96f)?(await this[_0x3e50e1(0x199)][_0x3e50e1(0x16e)](_0x3599f6),this[_0x3e50e1(0x19d)][_0x3e50e1(0x16b)](_0x3599f6)):null;}async[_0xe42515(0x184)](_0x5f2220,_0x432615){const _0x3ddab8=_0xe42515;return await this[_0x3ddab8(0x168)][_0x3ddab8(0x1a3)](_0x5f2220,0x0,_0x432615)?(await this[_0x3ddab8(0x199)][_0x3ddab8(0x16e)](_0x5f2220),this[_0x3ddab8(0x19d)][_0x3ddab8(0x19c)](_0x5f2220)):null;}async['loadPdfAsync'](_0x3eeae2,_0x2ef38c){const _0x373ce3=_0xe42515;return await this[_0x373ce3(0x168)]['loadPdf'](_0x3eeae2,0x0,_0x2ef38c)?(await this[_0x373ce3(0x199)][_0x373ce3(0x16e)](_0x3eeae2),this[_0x373ce3(0x19d)][_0x373ce3(0x19b)](_0x3eeae2)):null;}[_0xe42515(0x174)](_0x19c580,_0x4fbd24){const _0x2ddbc9=_0xe42515;return _0x3a2692(this['_injector'][_0x2ddbc9(0x189)](_0x560350)['waitForRoom$'](_0x19c580)[_0x2ddbc9(0x1a5)](_0x140223(_0x2e5aa9=>_0x2e5aa9[_0x2ddbc9(0x16d)]))[_0x2ddbc9(0x17f)](_0x5dec43=>_0x4fbd24(Array[_0x2ddbc9(0x19e)](_0x5dec43[_0x2ddbc9(0x169)]()))));}[_0xe42515(0x170)](_0x3c4070){const _0x1ab7f1=_0xe42515;let _0x414419=this[_0x1ab7f1(0x18c)](_0x3c4070);if(!_0x414419)return _0x35b6c3[_0x1ab7f1(0x192)];let _0x193f88=this[_0x1ab7f1(0x199)][_0x1ab7f1(0x1a4)](_0x414419);return(_0x193f88==null?void 0x0:_0x193f88['state']['status'])??_0x35b6c3[_0x1ab7f1(0x192)];}[_0xe42515(0x165)](_0x503118,_0x52ddca={}){const _0x1743f2=_0xe42515;let _0x41c3bc=this[_0x1743f2(0x18c)](_0x503118);if(!_0x41c3bc)return Promise['reject'](Error(_0x1743f2(0x1a2)));let _0xaa00d7=this[_0x1743f2(0x199)][_0x1743f2(0x1a4)](_0x41c3bc);if(!_0xaa00d7)return Promise[_0x1743f2(0x198)](Error('[FCollaboration]:\x20Unit\x20\x22'+_0x41c3bc+_0x1743f2(0x1a7)));let _0x231cbe=_0xaa00d7[_0x1743f2(0x179)]['status'];if(_0x231cbe===_0x35b6c3[_0x1743f2(0x193)])return Promise['resolve']();let _0x36db38=b(_0x41c3bc,_0x231cbe);if(_0x36db38)return Promise[_0x1743f2(0x198)](_0x36db38);let _0x452796=_0x52ddca[_0x1743f2(0x190)]??0x7530;return new Promise((_0x179304,_0x442d81)=>{const _0x2b0884=_0x1743f2;let _0x149d8b=!0x1,_0xa71309=null,_0x5def12=setTimeout(()=>{const _0x2ad6a4=_0x182e;_0x149d8b=!0x0,_0xa71309==null||_0xa71309[_0x2ad6a4(0x191)](),_0x442d81(Error(_0x2ad6a4(0x180)+_0x41c3bc+_0x2ad6a4(0x197)+_0x452796+_0x2ad6a4(0x185)));},_0x452796),_0xe8ba55=()=>{const _0x130590=_0x182e;_0x149d8b=!0x0,clearTimeout(_0x5def12),_0xa71309==null||_0xa71309[_0x130590(0x191)]();};_0xa71309=_0xaa00d7[_0x2b0884(0x1a9)][_0x2b0884(0x17f)](_0x3ed7c7=>{const _0x1d2d17=_0x2b0884;if(_0x149d8b)return;if(_0x3ed7c7===_0x35b6c3[_0x1d2d17(0x193)]){_0xe8ba55(),_0x179304();return;}let _0x1bc338=b(_0x41c3bc,_0x3ed7c7);_0x1bc338&&(_0xe8ba55(),_0x442d81(_0x1bc338));});});}[_0xe42515(0x18c)](_0x248ed3){const _0x331614=_0xe42515;var _0x45309d;return _0x248ed3||((_0x45309d=this['_univerInstanceService'][_0x331614(0x17b)]())==null?void 0x0:_0x45309d[_0x331614(0x173)]());}};function _0xa464(){const _0x1eea44=['[FCollaboration]:\x20Timed\x20out\x20flushing\x20unit\x20\x22','loadDoc','add','getDocument','loadBoardAsync','ms.','CollaborationStatusChanged','2638494QrnvGX','1480518WeKlEG','get','1245545BmPHLl','156QABlZi','_resolveUnitId','loadSheetAsync','CONFLICT','[FCollaboration]:\x20Cannot\x20flush\x20unit\x20\x22','timeout','unsubscribe','NOT_COLLAB','SYNCED','loadServerUnit','_univerInstanceService','_injector','\x22\x20after\x20','reject','_collaborationController','1240105yoSYuL','getPdf','getBoard','_handler','from','decorate','loadServerUnitOfRevision','getBase','[FCollaboration]:\x20Cannot\x20flush\x20because\x20no\x20unit\x20is\x20focused\x20or\x20specified.','loadBoard','getCollabEntity','pipe','_initialize','\x22\x20is\x20not\x20in\x20collaboration\x20mode.','disposeWithMe','status$','flush','21msKtYD','extend','_snapshotService','values','3664672PRqRyE','getPresentation','getOwnPropertyDescriptor','members$','readyForCollab','72363VKUVdi','getCollaborationStatus','9zmYVDc','loadSheet','getUnitId','subscribeCollaborators','getCollaboration','getWorkbook','registerEventHandler','length','state','object','getFocusedUnit','\x22\x20while\x20collaboration\x20status\x20is\x20','57771160LawrlU','defineProperty','subscribe'];_0xa464=function(){return _0x1eea44;};return _0xa464();}y=v([_(0x1,_0x23fc2c(_0x456951)),_(0x2,_0x22c343),_(0x3,_0x23fc2c(_0x4fdd53)),_(0x4,_0x23fc2c(_0x46c8d6))],y);function b(_0x589f82,_0xb1f647){const _0x2cb36c=_0xe42515;return _0xb1f647===_0x35b6c3[_0x2cb36c(0x18e)]||_0xb1f647===_0x35b6c3[_0x2cb36c(0x192)]?Error(_0x2cb36c(0x18f)+_0x589f82+_0x2cb36c(0x17c)+_0xb1f647+'.'):null;}var x=class extends _0x6fa0ed{[_0xe42515(0x1a6)](_0x214d17){const _0x43d337=_0xe42515;let _0x2d112d=_0x214d17[_0x43d337(0x189)](_0x46c8d6);this[_0x43d337(0x1a8)](this[_0x43d337(0x177)](this['Event'][_0x43d337(0x186)],()=>{const _0x3d97da=_0x43d337;let _0x49a7e=new _0x1a000d(),_0x352a14=_0x2d112d['entityInit$'][_0x3d97da(0x17f)](_0x13f0a8=>{const _0x40d3b8=_0x3d97da;let _0x1e0351=_0x13f0a8[_0x40d3b8(0x1a9)][_0x40d3b8(0x17f)](_0x1b959f=>{const _0x3007e0=_0x40d3b8;let _0x19b5d7={'unitId':_0x13f0a8['unitID'],'status':_0x1b959f};this['fireEvent'](this['Event'][_0x3007e0(0x186)],_0x19b5d7);});_0x49a7e[_0x40d3b8(0x182)](_0x3a2692(_0x1e0351));});return _0x49a7e[_0x3d97da(0x182)](_0x3a2692(_0x352a14)),_0x49a7e;}));}[_0xe42515(0x175)](){const _0x20d246=_0xe42515;return this[_0x20d246(0x196)]['createInstance'](y,{'getWorkbook':_0x835c14=>this[_0x20d246(0x176)](_0x835c14),'getDocument':_0x50c594=>this[_0x20d246(0x183)](_0x50c594),'getPresentation':_0x39de91=>this[_0x20d246(0x16b)](_0x39de91),'getBase':_0x7e46c8=>this[_0x20d246(0x1a1)](_0x7e46c8),'getBoard':_0x24300f=>this[_0x20d246(0x19c)](_0x24300f),'getPdf':_0x340fcc=>this[_0x20d246(0x19b)](_0x340fcc)});}[_0xe42515(0x194)](_0x3c3431,_0x1d8f10,_0x4597c7){const _0x15e467=_0xe42515;return this[_0x15e467(0x196)][_0x15e467(0x189)](_0x1d2475)['loadUnit'](_0x3c3431,_0x1d8f10,_0x4597c7);}[_0xe42515(0x1a0)](_0x81e883,_0x3b49b9,_0x4a92f2){const _0x4cb7c3=_0xe42515;return this[_0x4cb7c3(0x196)]['get'](_0x1d2475)['loadUnitOfRevision'](_0x81e883,_0x3b49b9,_0x4a92f2);}};_0x6fa0ed['extend'](x);export{y as FCollaboration};
|