@univerjs-pro/collaboration-client-ui 1.0.4 → 1.1.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 +7 -0
- package/lib/types/services/collaboration-socket/collaboration-socket.service.d.ts +1 -0
- package/lib/types/services/local-cache/web-local-cache.service.d.ts +11 -7
- 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 +20 -20
- package/lib/types/controllers/collab-cursor/board-collab-cursor-entity.d.ts +0 -32
- package/lib/types/controllers/collab-cursor/board-collab-cursor-render.controller.d.ts +0 -21
- package/lib/types/controllers/collab-cursor/slide-collab-cursor-entity.d.ts +0 -35
- package/lib/types/controllers/collab-cursor/slide-collab-cursor-render.controller.d.ts +0 -21
- package/lib/types/services/formula-calculation-guard/formula-calculation-guard.service.d.ts +0 -38
- package/lib/types/services/formula-calculation-guard/util.d.ts +0 -11
- package/lib/types/views/shapes/slide-collab-cursor.shape.d.ts +0 -15
package/lib/locale/zh-TW.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x4b6d28=_0x5c0a;function _0x5c0a(_0x1c9f71,_0x50b3b9){_0x1c9f71=_0x1c9f71-0x73;const _0x5d790c=_0x5d79();let _0x5c0a79=_0x5d790c[_0x1c9f71];return _0x5c0a79;}(function(_0x33eb30,_0xc57c4a){const _0x591cc0=_0x5c0a,_0x5db8a7=_0x33eb30();while(!![]){try{const _0x1d0376=parseInt(_0x591cc0(0x8e))/0x1+-parseInt(_0x591cc0(0x76))/0x2+parseInt(_0x591cc0(0x8f))/0x3+-parseInt(_0x591cc0(0x74))/0x4+parseInt(_0x591cc0(0x78))/0x5+-parseInt(_0x591cc0(0x7f))/0x6*(parseInt(_0x591cc0(0x8c))/0x7)+-parseInt(_0x591cc0(0x7b))/0x8*(parseInt(_0x591cc0(0x77))/0x9);if(_0x1d0376===_0xc57c4a)break;else _0x5db8a7['push'](_0x5db8a7['shift']());}catch(_0x54665f){_0x5db8a7['push'](_0x5db8a7['shift']());}}}(_0x5d79,0x35693));const e={'collaboration-client-ui':{'collabClient':{'tooltip':{'reconnect':_0x4b6d28(0x85)}},'collabStatus':{'fetchMiss':_0x4b6d28(0x80),'conflict':_0x4b6d28(0x81),'notCollab':_0x4b6d28(0x7a),'synced':_0x4b6d28(0x7e),'syncing':'同步中...','offline':_0x4b6d28(0x83)},'snapshotLoading':{'timeout':_0x4b6d28(0x8a),'refresh':_0x4b6d28(0x89)},'session':{'connection-failed':_0x4b6d28(0x7c),'will-retry':'連線失敗,將在稍後重試連線。','room-full':_0x4b6d28(0x8d),'collaboration-timeout':'伺服器未回應協作請求,您的編輯將儲存在本機。'},'conflict':{'processing':_0x4b6d28(0x8b),'clearFailed':_0x4b6d28(0x79),'retry':_0x4b6d28(0x82),'title':_0x4b6d28(0x75),'content':_0x4b6d28(0x88)},'permission':{'title':_0x4b6d28(0x73),'content':'您的操作與伺服器權限存在衝突。請將您的本機編輯儲存至其他地方,重新整理頁面後將會被捨棄。'},'collaboration':{'offline-data-not-saved':_0x4b6d28(0x87),'single-unit':{'warning':_0x4b6d28(0x84)},'closeRoom':_0x4b6d28(0x86)},'auth':{'needGotoLoginAlert':_0x4b6d28(0x7d)}}};export{e as default};function _0x5d79(){const _0x230f84=['協作衝突','26722jMAuEQ','45ifOEuT','988440GbvFkH','無法清除本機衝突資料。重新整理頁面可能再次還原異常資料,請重試。','本機檔案','479096KrSHYf','連線失敗,請檢查您的網路。','您的登入已過期,點擊「確定」重新登入,點擊「取消」儲存您的本機編輯。','已同步','54726vIXFuS','正在擷取伺服器資料...','編輯衝突','重試並重新整理','已離線,編輯將儲存在本機','您在另一個分頁開啟了同一個檔案。為避免資料遺失,此分頁將無法進行編輯。','點擊重新連線','由於協作房間已關閉,編輯權限已被收回。','您有未儲存至伺服器的離線編輯,請檢查網路後重試。','您的本機文件與伺服器文件存在衝突。請將您的本機編輯儲存至其他地方,因為重新整理頁面後將會遺失。','重新整理頁面','資料載入停留在\x20{0}/{1},請重新整理頁面後再試。','正在處理協同衝突…','35kXsETs','協作房間已滿,您的編輯將暫存於本機。','346469OqnolM','687969xJnzAd','認證錯誤','785232AuObSF'];_0x5d79=function(){return _0x230f84;};return _0x5d79();}
|
|
@@ -19,5 +19,12 @@ export interface IUniverCollaborationClientUIConfig {
|
|
|
19
19
|
* @default false
|
|
20
20
|
*/
|
|
21
21
|
enableFrontendLog?: boolean;
|
|
22
|
+
/**
|
|
23
|
+
* Whether to load the unit named by the `unit` and `type` URL query parameters when the plugin starts.
|
|
24
|
+
* Disable it when the host loads documents itself, e.g. with `univerAPI.getCollaboration().loadSheetAsync()`.
|
|
25
|
+
*
|
|
26
|
+
* @default true
|
|
27
|
+
*/
|
|
28
|
+
enableUrlUnitLoader?: boolean;
|
|
22
29
|
}
|
|
23
30
|
export declare const defaultPluginConfig: IUniverCollaborationClientUIConfig;
|
|
@@ -5,6 +5,7 @@ import { CollaborationSocketService } from '@univerjs-pro/collaboration-client';
|
|
|
5
5
|
import { IConfigService, ILogService, Injector } from '@univerjs/core';
|
|
6
6
|
import { HTTPService } from '@univerjs/network';
|
|
7
7
|
export declare class BrowserCollaborationSocketService extends CollaborationSocketService implements ICollaborationSocketService {
|
|
8
|
+
private readonly _dispose$;
|
|
8
9
|
constructor(_injector: Injector, _httpService: HTTPService, _configService: IConfigService, _logService: ILogService, _snapshotServerService: ISnapshotServerService);
|
|
9
10
|
createSocket(rawUrl: string): Promise<Nullable<ICollaborationSocket>>;
|
|
10
11
|
protected _createSocketURL(url: string, ticket: string): string;
|
|
@@ -2,7 +2,7 @@ import type { IChangeset } from '@univerjs-pro/collaboration';
|
|
|
2
2
|
import type { ILocalCacheService, IUnitCacheData } from '@univerjs-pro/collaboration-client';
|
|
3
3
|
import type { IMutationInfo, Nullable, UniverInstanceType } from '@univerjs/core';
|
|
4
4
|
import { RevisionService } from '@univerjs-pro/collaboration';
|
|
5
|
-
import { Disposable, IConfigService, ILocalStorageService } from '@univerjs/core';
|
|
5
|
+
import { Disposable, IConfigService, ILocalStorageService, ILogService, UserManagerService } from '@univerjs/core';
|
|
6
6
|
/**
|
|
7
7
|
* This service provide caching to the collaboration controller.
|
|
8
8
|
*/
|
|
@@ -10,20 +10,24 @@ export declare class WebLocalCacheService extends Disposable implements ILocalCa
|
|
|
10
10
|
private readonly _configService;
|
|
11
11
|
private readonly _localStorageService;
|
|
12
12
|
private readonly _revisionService;
|
|
13
|
+
private readonly _logService;
|
|
14
|
+
private readonly _userManagerService;
|
|
13
15
|
private _cachedData;
|
|
14
16
|
private _saveTaskMap;
|
|
15
17
|
private _activeSaveTaskMap;
|
|
16
18
|
private _disabled;
|
|
17
|
-
constructor(_configService: IConfigService, _localStorageService: ILocalStorageService, _revisionService: RevisionService);
|
|
19
|
+
constructor(_configService: IConfigService, _localStorageService: ILocalStorageService, _revisionService: RevisionService, _logService: ILogService, _userManagerService: UserManagerService);
|
|
18
20
|
disableLocalCache(): void;
|
|
19
21
|
enableLocalCache(): void;
|
|
20
22
|
get saveTaskMap(): Map<string, number>;
|
|
21
23
|
dispose(): void;
|
|
22
|
-
loadOfflineData(unitID: string): Promise<Nullable<IUnitCacheData>>;
|
|
23
|
-
saveOfflineData(unitID: string, data: IUnitCacheData): Promise<boolean>;
|
|
24
|
-
backupOfflineData(unitID: string, reason: string): Promise<void>;
|
|
25
|
-
clearOfflineData(unitID: string): Promise<void>;
|
|
26
|
-
updateOfflineData(unitID: string, type: UniverInstanceType, awaitingChangeset: Nullable<IChangeset>, pendingMutations: IMutationInfo[]): void;
|
|
24
|
+
loadOfflineData(unitID: string, userId?: string | null): Promise<Nullable<IUnitCacheData>>;
|
|
25
|
+
saveOfflineData(unitID: string, data: IUnitCacheData, userId?: string | null): Promise<boolean>;
|
|
26
|
+
backupOfflineData(unitID: string, reason: string, userId?: string | null): Promise<void>;
|
|
27
|
+
clearOfflineData(unitID: string, userId?: string | null): Promise<void>;
|
|
28
|
+
updateOfflineData(unitID: string, type: UniverInstanceType, awaitingChangeset: Nullable<IChangeset>, pendingMutations: IMutationInfo[], userId?: string | null): void;
|
|
29
|
+
private _getUserId;
|
|
30
|
+
private _normalizeUserId;
|
|
27
31
|
private _scheduleSaving;
|
|
28
32
|
private _getSaveTimeout;
|
|
29
33
|
private _saveCache;
|
package/lib/umd/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function _0x5f4f(_0x45289c,_0x4984ff){_0x45289c=_0x45289c-0x8d;var _0x54159c=_0x5415();var _0x5f4f6d=_0x54159c[_0x45289c];return _0x5f4f6d;}function _0x5415(){var _0x641f93=['4qDmqaV','1490580BnWfGL','21jNsbGx','extend','FUniver','808797BeagSz','UniverCoreFacade','485232kwHBkT','18854JeSfgc','runOnServer','384184IKeUtk','1966430akUoLn','3331410mJmUWp','@univerjs/core/facade','@univerjs-pro/collaboration-client-ui','8wMJDHV','UniverProCollaborationClientUi','function','get'];_0x5415=function(){return _0x641f93;};return _0x5415();}(function(_0x3a3e48,_0x42d2a1){var _0x2a9cc7=_0x5f4f,_0x2c6792=_0x3a3e48();while(!![]){try{var _0x1b000a=-parseInt(_0x2a9cc7(0x91))/0x1*(-parseInt(_0x2a9cc7(0x98))/0x2)+-parseInt(_0x2a9cc7(0x8e))/0x3*(parseInt(_0x2a9cc7(0x9c))/0x4)+parseInt(_0x2a9cc7(0x94))/0x5+parseInt(_0x2a9cc7(0x90))/0x6+-parseInt(_0x2a9cc7(0x9e))/0x7*(-parseInt(_0x2a9cc7(0x93))/0x8)+parseInt(_0x2a9cc7(0x9d))/0x9+-parseInt(_0x2a9cc7(0x95))/0xa;if(_0x1b000a===_0x42d2a1)break;else _0x2c6792['push'](_0x2c6792['shift']());}catch(_0x41c531){_0x2c6792['push'](_0x2c6792['shift']());}}}(_0x5415,0x3ea0b),function(_0xf34316,_0x5269bf){var _0x3b9bc1=_0x5f4f;typeof exports=='object'&&typeof module<'u'?_0x5269bf(require('@univerjs-pro/collaboration-client-ui'),require('@univerjs/core/facade')):typeof define==_0x3b9bc1(0x9a)&&define['amd']?define([_0x3b9bc1(0x97),_0x3b9bc1(0x96)],_0x5269bf):(_0xf34316=typeof globalThis<'u'?globalThis:_0xf34316||self,_0x5269bf(_0xf34316[_0x3b9bc1(0x99)],_0xf34316[_0x3b9bc1(0x8f)]));}(this,function(_0x5efbce,_0x3227ed){var _0x188f24=_0x5f4f,_0x3acc16=class extends _0x3227ed[_0x188f24(0x8d)]{[_0x188f24(0x92)](_0xc2b86,_0x37e605,..._0xa1a14a){var _0x56bf13=_0x188f24;return this['_injector'][_0x56bf13(0x9b)](_0x5efbce['RemoteUniscriptService'])[_0x56bf13(0x92)](_0xc2b86,_0x37e605,{},..._0xa1a14a);}};_0x3227ed['FUniver'][_0x188f24(0x9f)](_0x3acc16);}));
|