@univerjs-pro/collaboration-client 0.25.0 → 1.0.0-alpha.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/config/config.d.ts +70 -0
- package/lib/types/controllers/collaboration/collaboration-entity.d.ts +15 -1
- package/lib/types/controllers/collaboration/utils/changeset-utils.d.ts +6 -14
- package/lib/types/facade/f-collaboration.d.ts +38 -25
- package/lib/types/index.d.ts +11 -7
- package/lib/types/locale/types.d.ts +3 -0
- package/lib/types/plugin.d.ts +1 -1
- package/lib/types/services/attachment-remote/attachment-io.service.d.ts +22 -0
- package/lib/types/services/attachment-remote/types.d.ts +23 -0
- package/lib/types/services/data-loader/data-loader.service.d.ts +3 -0
- package/lib/types/services/local-cache/local-cache.service.d.ts +1 -0
- 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 -14
- package/lib/types/controllers/config.schema.d.ts +0 -64
package/lib/es/locale/zh-TW.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const _0x125272=_0x443e;(function(_0x5bd169,_0x3a81d5){const _0xb5c566=_0x443e,_0x58255b=_0x5bd169();while(!![]){try{const _0x3b79d8=-parseInt(_0xb5c566(0x1b4))/0x1+parseInt(_0xb5c566(0x1b2))/0x2*(parseInt(_0xb5c566(0x1b7))/0x3)+parseInt(_0xb5c566(0x1c5))/0x4+-parseInt(_0xb5c566(0x1c6))/0x5*(parseInt(_0xb5c566(0x1c0))/0x6)+-parseInt(_0xb5c566(0x1cb))/0x7*(-parseInt(_0xb5c566(0x1bc))/0x8)+parseInt(_0xb5c566(0x1ca))/0x9*(parseInt(_0xb5c566(0x1c1))/0xa)+parseInt(_0xb5c566(0x1b6))/0xb;if(_0x3b79d8===_0x3a81d5)break;else _0x58255b['push'](_0x58255b['shift']());}catch(_0x186e6c){_0x58255b['push'](_0x58255b['shift']());}}}(_0x41be,0x723dd));function _0x443e(_0xef0ab0,_0x54ce90){_0xef0ab0=_0xef0ab0-0x1b2;const _0x41be01=_0x41be();let _0x443eb0=_0x41be01[_0xef0ab0];return _0x443eb0;}const e={'collaboration-client':{'collabClient':{'tooltip':{'reconnect':_0x125272(0x1b5)}},'collabStatus':{'fetchMiss':_0x125272(0x1be),'conflict':_0x125272(0x1b8),'notCollab':_0x125272(0x1c4),'synced':_0x125272(0x1bd),'syncing':_0x125272(0x1cd),'offline':'已離線,編輯將儲存在本機'},'session':{'connection-failed':'連線失敗,請檢查您的網路。','will-retry':_0x125272(0x1bf),'room-full':_0x125272(0x1b9),'join-failed':_0x125272(0x1c9),'room-not-exists':_0x125272(0x1cc),'room-permission-denied':'沒有協作權限,您的編輯將暫存於本機。','room-cnt-exceeds':'協作文件數量超過限制,您的編輯將暫存於本機。','collaboration-timeout':_0x125272(0x1c8)},'conflict':{'title':_0x125272(0x1c3),'content':_0x125272(0x1b3)},'permission':{'title':_0x125272(0x1bb),'content':_0x125272(0x1ba)},'collaboration':{'single-unit':{'warning':_0x125272(0x1c7)},'closeRoom':'由於協作房間已關閉,編輯權限已被收回。'},'auth':{'needGotoLoginAlert':_0x125272(0x1c2)}}};export{e as default};function _0x41be(){const _0x5e99ea=['您的登入已過期,點擊「確定」重新登入,點擊「取消」儲存您的本機編輯。','協作衝突','本機檔案','299620QVfRQY','10865zMWEvx','您在另一個分頁開啟了同一個檔案。為避免資料遺失,此分頁將無法進行編輯。','伺服器未回應協作請求,您的編輯將儲存在本機。','加入協作失敗,請稍後重試,您的編輯將暫存於本機。','7344BEurYl','17843kaYLZp','加入協作失敗,您的編輯將暫存於本機。','同步中...','14fwhcCZ','您的本機文件與伺服器文件存在衝突。請將您的本機編輯儲存至其他地方,因為重新整理頁面後將會遺失。','689660VfjLLC','點擊重新連線','9701483yymKYq','64902pXosLK','編輯衝突','此文件協作人數已達上限,您的編輯將暫存於本機。','您的操作與伺服器權限存在衝突。請將您的本機編輯儲存至其他地方,重新整理頁面後將會被捨棄。','認證錯誤','1592iaImJG','已同步','正在擷取伺服器資料...','連線失敗,將在稍後重試連線。','2364SxbWbJ','4880Odblqj'];_0x41be=function(){return _0x5e99ea;};return _0x41be();}
|
package/lib/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x5336c5=_0x2a12;(function(_0x2b1f5e,_0x5ef170){const _0x83d91a=_0x2a12,_0x33aeec=_0x2b1f5e();while(!![]){try{const _0x3f166b=parseInt(_0x83d91a(0x1e2))/0x1*(-parseInt(_0x83d91a(0x1d6))/0x2)+parseInt(_0x83d91a(0x1ce))/0x3+parseInt(_0x83d91a(0x1d7))/0x4*(-parseInt(_0x83d91a(0x1c5))/0x5)+parseInt(_0x83d91a(0x1cb))/0x6+-parseInt(_0x83d91a(0x1d5))/0x7*(parseInt(_0x83d91a(0x1ea))/0x8)+-parseInt(_0x83d91a(0x1f5))/0x9+parseInt(_0x83d91a(0x1d1))/0xa*(parseInt(_0x83d91a(0x1df))/0xb);if(_0x3f166b===_0x5ef170)break;else _0x33aeec['push'](_0x33aeec['shift']());}catch(_0x27e8be){_0x33aeec['push'](_0x33aeec['shift']());}}}(_0x1810,0xadb5f));import{CollaborationController as _0x42f083,CollaborationStatus as _0x261e17,DataLoaderService as _0x382443,MemberService as _0x162476}from'@univerjs-pro/collaboration-client';import{FBase as _0x4fa887,FEnum as _0x55ad85,FEventName as _0x5ae43d,FUniver as _0x4c266a}from'@univerjs/core/facade';import{DisposableCollection as _0xaa38c,IUniverInstanceService as _0x2f92dc,Inject as _0x480ff5,Injector as _0x18114b,toDisposable as _0x278fff}from'@univerjs/core';import{SnapshotService as _0x51b064}from'@univerjs-pro/collaboration';import{switchMap as _0x19b790}from'rxjs';var h=class extends _0x55ad85{get[_0x5336c5(0x1ef)](){return _0x261e17;}};_0x55ad85[_0x5336c5(0x1dd)](h);var g=class extends _0x5ae43d{get['CollaborationStatusChanged'](){const _0x587b81=_0x5336c5;return _0x587b81(0x1c9);}};_0x5ae43d['extend'](g);function _(_0x1b4967,_0x1b8e4d){return function(_0x53a32a,_0x4b9628){_0x1b8e4d(_0x53a32a,_0x4b9628,_0x1b4967);};}function v(_0x346a50,_0x33e994,_0x135e91,_0x3962c0){const _0x263609=_0x5336c5;var _0x47a1f5=arguments[_0x263609(0x1c1)],_0x26527d=_0x47a1f5<0x3?_0x33e994:_0x3962c0===null?_0x3962c0=Object[_0x263609(0x1c6)](_0x33e994,_0x135e91):_0x3962c0,_0x23f6dc;if(typeof Reflect=='object'&&typeof Reflect['decorate']==_0x263609(0x1ba))_0x26527d=Reflect[_0x263609(0x1d4)](_0x346a50,_0x33e994,_0x135e91,_0x3962c0);else{for(var _0x4b769a=_0x346a50[_0x263609(0x1c1)]-0x1;_0x4b769a>=0x0;_0x4b769a--)(_0x23f6dc=_0x346a50[_0x4b769a])&&(_0x26527d=(_0x47a1f5<0x3?_0x23f6dc(_0x26527d):_0x47a1f5>0x3?_0x23f6dc(_0x33e994,_0x135e91,_0x26527d):_0x23f6dc(_0x33e994,_0x135e91))||_0x26527d);}return _0x47a1f5>0x3&&_0x26527d&&Object[_0x263609(0x1c8)](_0x33e994,_0x135e91,_0x26527d),_0x26527d;}let y=class extends _0x4fa887{constructor(_0x4c01ca,_0x2b2c7c,_0x2ab56a,_0x4b1a44,_0x2df179){const _0x567643=_0x5336c5;super(),this['_handler']=_0x4c01ca,this[_0x567643(0x1e7)]=_0x2b2c7c,this[_0x567643(0x1e6)]=_0x2ab56a,this[_0x567643(0x1bf)]=_0x4b1a44,this['_collaborationController']=_0x2df179;}async[_0x5336c5(0x1de)](_0x2a454f,_0x5b7212){const _0x1781c9=_0x5336c5;return await this[_0x1781c9(0x1bf)][_0x1781c9(0x1bd)](_0x2a454f,0x0,_0x5b7212)?(await this[_0x1781c9(0x1e3)][_0x1781c9(0x1d0)](_0x2a454f),this[_0x1781c9(0x1f1)][_0x1781c9(0x1da)](_0x2a454f)):null;}async[_0x5336c5(0x1e4)](_0x19cd05,_0x43bedb){const _0x290c76=_0x5336c5;return await this[_0x290c76(0x1bf)][_0x290c76(0x1d2)](_0x19cd05,0x0,_0x43bedb)?(await this[_0x290c76(0x1e3)][_0x290c76(0x1d0)](_0x19cd05),this[_0x290c76(0x1f1)][_0x290c76(0x1f6)](_0x19cd05)):null;}async['loadBaseAsync'](_0x3da25b,_0x2e5ab1){const _0x60dc95=_0x5336c5;return await this[_0x60dc95(0x1bf)][_0x60dc95(0x1f3)](_0x3da25b,0x0,_0x2e5ab1)?(await this[_0x60dc95(0x1e3)][_0x60dc95(0x1d0)](_0x3da25b),this[_0x60dc95(0x1f1)]['getBase'](_0x3da25b)):null;}async[_0x5336c5(0x1c2)](_0xb676b4,_0x68df2e){const _0x3f4dc5=_0x5336c5;return await this[_0x3f4dc5(0x1bf)][_0x3f4dc5(0x1f4)](_0xb676b4,0x0,_0x68df2e)?(await this[_0x3f4dc5(0x1e3)][_0x3f4dc5(0x1d0)](_0xb676b4),this[_0x3f4dc5(0x1f1)][_0x3f4dc5(0x1e0)](_0xb676b4)):null;}[_0x5336c5(0x1cc)](_0x2fa2bf,_0x543682){const _0x405a4f=_0x5336c5;return _0x278fff(this[_0x405a4f(0x1e7)][_0x405a4f(0x1c7)](_0x162476)[_0x405a4f(0x1e8)](_0x2fa2bf)[_0x405a4f(0x1e1)](_0x19b790(_0x5e123a=>_0x5e123a['members$']))[_0x405a4f(0x1c0)](_0x3b616e=>_0x543682(Array['from'](_0x3b616e[_0x405a4f(0x1eb)]()))));}[_0x5336c5(0x1ca)](_0x5ebde8){const _0x3bd8ae=_0x5336c5;var _0xec70d1;let _0x48888e;if(_0x5ebde8)_0x48888e=_0x5ebde8;else{let _0x3cdc23=this['_univerInstanceService'][_0x3bd8ae(0x1f2)]();_0x48888e=_0x3cdc23==null?void 0x0:_0x3cdc23[_0x3bd8ae(0x1ed)]();}if(!_0x48888e)return _0x261e17[_0x3bd8ae(0x1be)];let _0x5ef77e=this[_0x3bd8ae(0x1e3)][_0x3bd8ae(0x1c3)](_0x48888e);return(_0xec70d1=_0x5ef77e==null?void 0x0:_0x5ef77e[_0x3bd8ae(0x1ec)][_0x3bd8ae(0x1ee)])==null?_0x261e17[_0x3bd8ae(0x1be)]:_0xec70d1;}};y=v([_(0x1,_0x480ff5(_0x18114b)),_(0x2,_0x2f92dc),_(0x3,_0x480ff5(_0x51b064)),_(0x4,_0x480ff5(_0x42f083))],y);function _0x2a12(_0x8d7bce,_0x49db62){_0x8d7bce=_0x8d7bce-0x1ba;const _0x181094=_0x1810();let _0x2a124e=_0x181094[_0x8d7bce];return _0x2a124e;}var b=class extends _0x4c266a{[_0x5336c5(0x1e9)](_0x16b8e0){const _0x225704=_0x5336c5;let _0x37adb5=_0x16b8e0[_0x225704(0x1c7)](_0x42f083);this[_0x225704(0x1db)](this[_0x225704(0x1cd)](this[_0x225704(0x1cf)][_0x225704(0x1c9)],()=>{const _0x561187=_0x225704;let _0x20bbc7=new _0xaa38c(),_0x56c9ba=_0x37adb5['entityInit$'][_0x561187(0x1c0)](_0x4d2c16=>{const _0x454769=_0x561187;let _0x2a9d95=_0x4d2c16[_0x454769(0x1c4)]['subscribe'](_0x16ea9f=>{const _0x1b56fa=_0x454769;let _0x5d045e={'unitId':_0x4d2c16['unitID'],'status':_0x16ea9f};this['fireEvent'](this['Event'][_0x1b56fa(0x1c9)],_0x5d045e);});_0x20bbc7[_0x454769(0x1d3)](_0x278fff(_0x2a9d95));});return _0x20bbc7[_0x561187(0x1d3)](_0x278fff(_0x56c9ba)),_0x20bbc7;}));}[_0x5336c5(0x1e5)](){const _0x1ae042=_0x5336c5;return this['_injector'][_0x1ae042(0x1dc)](y,{'getWorkbook':_0x37e84a=>this[_0x1ae042(0x1da)](_0x37e84a),'getDocument':_0x18af1e=>this[_0x1ae042(0x1f6)](_0x18af1e),'getPresentation':_0x36176c=>this[_0x1ae042(0x1e0)](_0x36176c),'getBase':_0x45da8c=>this[_0x1ae042(0x1d8)](_0x45da8c)});}[_0x5336c5(0x1f0)](_0x130c8e,_0x54e985,_0x4c390c){const _0x3dad4a=_0x5336c5;return this[_0x3dad4a(0x1e7)][_0x3dad4a(0x1c7)](_0x382443)[_0x3dad4a(0x1d9)](_0x130c8e,_0x54e985,_0x4c390c);}[_0x5336c5(0x1bc)](_0x4c8785,_0x37142a,_0x5d8467){const _0xdd7ad6=_0x5336c5;return this[_0xdd7ad6(0x1e7)][_0xdd7ad6(0x1c7)](_0x382443)[_0xdd7ad6(0x1bb)](_0x4c8785,_0x37142a,_0x5d8467);}};_0x4c266a[_0x5336c5(0x1dd)](b);export{y as FCollaboration};function _0x1810(){const _0x3165d2=['getPresentation','pipe','19727pVQhuZ','_collaborationController','loadDocAsync','getCollaboration','_univerInstanceService','_injector','waitForRoom$','_initialize','1514656IKLxSH','values','state','getUnitId','status','CollaborationStatus','loadServerUnit','_handler','getFocusedUnit','loadBase','loadSlide','1280070YUkhfg','getDocument','function','loadUnitOfRevision','loadServerUnitOfRevision','loadSheet','NOT_COLLAB','_snapshotService','subscribe','length','loadSlideAsync','getCollabEntity','status$','23965HuZpWA','getOwnPropertyDescriptor','get','defineProperty','CollaborationStatusChanged','getCollaborationStatus','105990ehsizV','subscribeCollaborators','registerEventHandler','3331608okxroL','Event','readyForCollab','72190HaIbKn','loadDoc','add','decorate','21yCtaBC','32DfpUpv','76orXYEm','getBase','loadUnit','getWorkbook','disposeWithMe','createInstance','extend','loadSheetAsync','1067TMmoyD'];_0x1810=function(){return _0x3165d2;};return _0x1810();}
|