@univerjs-pro/collaboration-client 0.25.1 → 1.0.0-alpha.1
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/umd/locale/zh-HK.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x3b2c(_0x296b8b,_0x48295c){_0x296b8b=_0x296b8b-0x10a;var _0x1cfcd1=_0x1cfc();var _0x3b2c07=_0x1cfcd1[_0x296b8b];return _0x3b2c07;}(function(_0xf65e7b,_0x38adc9){var _0x3d48ee=_0x3b2c,_0x5da130=_0xf65e7b();while(!![]){try{var _0x2226d8=parseInt(_0x3d48ee(0x10f))/0x1*(-parseInt(_0x3d48ee(0x119))/0x2)+-parseInt(_0x3d48ee(0x117))/0x3+parseInt(_0x3d48ee(0x10c))/0x4+parseInt(_0x3d48ee(0x124))/0x5*(parseInt(_0x3d48ee(0x112))/0x6)+-parseInt(_0x3d48ee(0x11b))/0x7+parseInt(_0x3d48ee(0x115))/0x8*(parseInt(_0x3d48ee(0x111))/0x9)+parseInt(_0x3d48ee(0x10a))/0xa;if(_0x2226d8===_0x38adc9)break;else _0x5da130['push'](_0x5da130['shift']());}catch(_0x106676){_0x5da130['push'](_0x5da130['shift']());}}}(_0x1cfc,0x928e7),function(_0x597c46,_0x4f66b5){var _0x234949=_0x3b2c;typeof exports==_0x234949(0x11e)&&typeof module<'u'?module[_0x234949(0x114)]=_0x4f66b5():typeof define==_0x234949(0x122)&&define[_0x234949(0x118)]?define([],_0x4f66b5):(_0x597c46=typeof globalThis<'u'?globalThis:_0x597c46||self,_0x597c46[_0x234949(0x11d)]=_0x4f66b5());}(this,function(){var _0x412140=_0x3b2c;return{'collaboration-client':{'collabClient':{'tooltip':{'reconnect':_0x412140(0x123)}},'collabStatus':{'fetchMiss':_0x412140(0x11f),'conflict':_0x412140(0x126),'notCollab':'本機檔案','synced':'已同步','syncing':_0x412140(0x10e),'offline':_0x412140(0x10d)},'session':{'connection-failed':_0x412140(0x125),'will-retry':_0x412140(0x121),'room-full':'此文件協作人數已達上限,您的編輯將暫存於本機。','join-failed':_0x412140(0x127),'room-not-exists':_0x412140(0x113),'room-permission-denied':_0x412140(0x116),'room-cnt-exceeds':_0x412140(0x128),'collaboration-timeout':_0x412140(0x120)},'conflict':{'title':'協作衝突','content':'您的本機文件與伺服器文件存在衝突。請將您的本機編輯儲存至其他地方,因為重新整理頁面後將會遺失。'},'permission':{'title':_0x412140(0x10b),'content':'您的操作與伺服器權限存在衝突。請將您的本機編輯儲存至其他地方,重新整理頁面後將會被捨棄。'},'collaboration':{'single-unit':{'warning':_0x412140(0x11a)},'closeRoom':_0x412140(0x11c)},'auth':{'needGotoLoginAlert':_0x412140(0x110)}}};}));function _0x1cfc(){var _0x11daad=['45soowiq','連線失敗,請檢查您的網絡。','編輯衝突','加入協作失敗,請稍後重試,您的編輯將暫存於本機。','協作文件數量超過限制,您的編輯將暫存於本機。','3963100QIkfGI','認證錯誤','3763740OGTuMR','已離線,編輯將儲存在本機','同步中...','4iRNQad','您的登入已過期,點擊「確定」重新登入,點擊「取消」儲存您的本機編輯。','3216924izMtoq','109296SUKpFU','加入協作失敗,您的編輯將暫存於本機。','exports','8lXWevL','沒有協作權限,您的編輯將暫存於本機。','337587wqIsbk','amd','434416GSgHsY','您在另一個分頁開啟了同一個檔案。為避免資料遺失,此分頁將無法進行編輯。','1938783jtgOcl','由於協作房間已關閉,編輯權限已被收回。','UniverProCollaborationClientZhHK','object','正在擷取伺服器資料...','伺服器未回應協作請求,您的編輯將儲存在本機。','連線失敗,將在稍後重試連線。','function','點擊重新連線'];_0x1cfc=function(){return _0x11daad;};return _0x1cfc();}
|
package/lib/umd/locale/zh-TW.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x24c2(){var _0x3f6e59=['amd','function','連線失敗,請檢查您的網路。','協作文件數量超過限制,您的編輯將暫存於本機。','5698231jFCOhq','本機檔案','2VtKxUd','沒有協作權限,您的編輯將暫存於本機。','編輯衝突','加入協作失敗,您的編輯將暫存於本機。','您在另一個分頁開啟了同一個檔案。為避免資料遺失,此分頁將無法進行編輯。','已離線,編輯將儲存在本機','1895928DHoGZp','6026976REAjhc','正在擷取伺服器資料...','2055alKSvs','伺服器未回應協作請求,您的編輯將儲存在本機。','連線失敗,將在稍後重試連線。','90TpZceZ','exports','您的本機文件與伺服器文件存在衝突。請將您的本機編輯儲存至其他地方,因為重新整理頁面後將會遺失。','78336sSQzwc','此文件協作人數已達上限,您的編輯將暫存於本機。','您的操作與伺服器權限存在衝突。請將您的本機編輯儲存至其他地方,重新整理頁面後將會被捨棄。','點擊重新連線','2182008iLewOa','同步中...','已同步','624211gGXEiZ','UniverProCollaborationClientZhTW','11820EygBDN'];_0x24c2=function(){return _0x3f6e59;};return _0x24c2();}function _0x1df0(_0x491e12,_0x3b5a0c){_0x491e12=_0x491e12-0x186;var _0x24c277=_0x24c2();var _0x1df048=_0x24c277[_0x491e12];return _0x1df048;}(function(_0xde59fa,_0x6f12e4){var _0x44e2d8=_0x1df0,_0x4908d9=_0xde59fa();while(!![]){try{var _0x484cf1=-parseInt(_0x44e2d8(0x19a))/0x1*(parseInt(_0x44e2d8(0x1a3))/0x2)+parseInt(_0x44e2d8(0x197))/0x3+-parseInt(_0x44e2d8(0x18a))/0x4+-parseInt(_0x44e2d8(0x18d))/0x5*(-parseInt(_0x44e2d8(0x19c))/0x6)+parseInt(_0x44e2d8(0x1a1))/0x7+-parseInt(_0x44e2d8(0x18b))/0x8+-parseInt(_0x44e2d8(0x193))/0x9*(parseInt(_0x44e2d8(0x190))/0xa);if(_0x484cf1===_0x6f12e4)break;else _0x4908d9['push'](_0x4908d9['shift']());}catch(_0x4e435d){_0x4908d9['push'](_0x4908d9['shift']());}}}(_0x24c2,0x66d12),function(_0x11ec7e,_0x4c5e78){var _0x467523=_0x1df0;typeof exports=='object'&&typeof module<'u'?module[_0x467523(0x191)]=_0x4c5e78():typeof define==_0x467523(0x19e)&&define[_0x467523(0x19d)]?define([],_0x4c5e78):(_0x11ec7e=typeof globalThis<'u'?globalThis:_0x11ec7e||self,_0x11ec7e[_0x467523(0x19b)]=_0x4c5e78());}(this,function(){var _0x40eddf=_0x1df0;return{'collaboration-client':{'collabClient':{'tooltip':{'reconnect':_0x40eddf(0x196)}},'collabStatus':{'fetchMiss':_0x40eddf(0x18c),'conflict':_0x40eddf(0x186),'notCollab':_0x40eddf(0x1a2),'synced':_0x40eddf(0x199),'syncing':_0x40eddf(0x198),'offline':_0x40eddf(0x189)},'session':{'connection-failed':_0x40eddf(0x19f),'will-retry':_0x40eddf(0x18f),'room-full':_0x40eddf(0x194),'join-failed':'加入協作失敗,請稍後重試,您的編輯將暫存於本機。','room-not-exists':_0x40eddf(0x187),'room-permission-denied':_0x40eddf(0x1a4),'room-cnt-exceeds':_0x40eddf(0x1a0),'collaboration-timeout':_0x40eddf(0x18e)},'conflict':{'title':'協作衝突','content':_0x40eddf(0x192)},'permission':{'title':'認證錯誤','content':_0x40eddf(0x195)},'collaboration':{'single-unit':{'warning':_0x40eddf(0x188)},'closeRoom':'由於協作房間已關閉,編輯權限已被收回。'},'auth':{'needGotoLoginAlert':'您的登入已過期,點擊「確定」重新登入,點擊「取消」儲存您的本機編輯。'}}};}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/collaboration-client",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "1.0.0-alpha.1",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Client-side collaboration plugin for Univer Pro.",
|
|
6
6
|
"author": "DreamNum Co., Ltd. <developer@univer.ai>",
|
|
@@ -67,23 +67,25 @@
|
|
|
67
67
|
},
|
|
68
68
|
"dependencies": {
|
|
69
69
|
"@noble/ciphers": "^2.2.0",
|
|
70
|
-
"@univerjs-pro/
|
|
71
|
-
"@univerjs-pro/
|
|
72
|
-
"@univerjs/
|
|
73
|
-
"@univerjs/
|
|
74
|
-
"@univerjs/
|
|
75
|
-
"@univerjs/
|
|
76
|
-
"@univerjs/
|
|
77
|
-
"@univerjs/
|
|
78
|
-
"@univerjs/
|
|
70
|
+
"@univerjs-pro/bases": "1.0.0-alpha.1",
|
|
71
|
+
"@univerjs-pro/license": "1.0.0-alpha.1",
|
|
72
|
+
"@univerjs-pro/collaboration": "1.0.0-alpha.1",
|
|
73
|
+
"@univerjs/core": "1.0.0-alpha.1",
|
|
74
|
+
"@univerjs-pro/slides": "1.0.0-alpha.1",
|
|
75
|
+
"@univerjs/drawing": "1.0.0-alpha.1",
|
|
76
|
+
"@univerjs/protocol": "1.0.0-alpha.1",
|
|
77
|
+
"@univerjs/network": "1.0.0-alpha.1",
|
|
78
|
+
"@univerjs/sheets": "1.0.0-alpha.1",
|
|
79
|
+
"@univerjs/docs": "1.0.0-alpha.1",
|
|
80
|
+
"@univerjs/telemetry": "1.0.0-alpha.1"
|
|
79
81
|
},
|
|
80
82
|
"devDependencies": {
|
|
81
|
-
"postcss": "^8.5.
|
|
83
|
+
"postcss": "^8.5.15",
|
|
82
84
|
"rxjs": "7.8.2",
|
|
83
|
-
"tailwindcss": "
|
|
85
|
+
"tailwindcss": "3.4.17",
|
|
84
86
|
"typescript": "^6.0.3",
|
|
85
|
-
"vitest": "^4.1.
|
|
86
|
-
"@univerjs-infra/shared": "0.
|
|
87
|
+
"vitest": "^4.1.9",
|
|
88
|
+
"@univerjs-infra/shared": "1.0.0-alpha.1"
|
|
87
89
|
},
|
|
88
90
|
"scripts": {
|
|
89
91
|
"test": "vitest run --pool=threads",
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
import type { Ctor, DependencyOverride } from '@univerjs/core';
|
|
2
|
-
import type { ICollaborationSocketService } from '../services/socket/collaboration-socket.service';
|
|
3
|
-
export declare const COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY = "collaboration-client.config";
|
|
4
|
-
export declare const configSymbol: unique symbol;
|
|
5
|
-
export interface IUniverCollaborationClientConfig {
|
|
6
|
-
/**
|
|
7
|
-
* Which socket should the plugin use to build connections to the collaborative engine.
|
|
8
|
-
* For normal cases, you should use `BrowserCollaborationSocketService` from the `collaboration-client-ui` plugin.
|
|
9
|
-
*/
|
|
10
|
-
socketService: Ctor<ICollaborationSocketService>;
|
|
11
|
-
/**
|
|
12
|
-
* If the plugin should enable collaborative editing. Which means the client will exchange edits with
|
|
13
|
-
* the collaboration server. It this is set to false, the client will simply load data from the server.
|
|
14
|
-
*
|
|
15
|
-
* @default true
|
|
16
|
-
*/
|
|
17
|
-
enableCollaboration?: boolean;
|
|
18
|
-
/**
|
|
19
|
-
* If offline editing is enabled.
|
|
20
|
-
* @default false
|
|
21
|
-
*/
|
|
22
|
-
enableOfflineEditing?: boolean;
|
|
23
|
-
enableSingleActiveInstanceLock?: boolean;
|
|
24
|
-
enableAuthServer?: boolean;
|
|
25
|
-
/**
|
|
26
|
-
* Override internal modules with custom implementations.
|
|
27
|
-
*/
|
|
28
|
-
override?: DependencyOverride;
|
|
29
|
-
sendChangesetTimeout?: number;
|
|
30
|
-
snapshotServerUrl?: string;
|
|
31
|
-
collabSubmitChangesetUrl?: string;
|
|
32
|
-
collabWebSocketUrl?: string;
|
|
33
|
-
/**
|
|
34
|
-
* The URL of the endpoint for getting the websocket session ticket.
|
|
35
|
-
*/
|
|
36
|
-
wsSessionTicketUrl?: string;
|
|
37
|
-
loginUrlKey?: string;
|
|
38
|
-
retryConnectingInterval?: number;
|
|
39
|
-
authzUrl?: string;
|
|
40
|
-
/**
|
|
41
|
-
* The URL of the endpoint for downloading files.
|
|
42
|
-
* @default 'location.origin'
|
|
43
|
-
*/
|
|
44
|
-
downloadEndpointUrl?: string;
|
|
45
|
-
uploadFileServerUrl?: string;
|
|
46
|
-
signUrlServerUrl?: string;
|
|
47
|
-
/**
|
|
48
|
-
* The URL of the endpoint for starting formula limit.
|
|
49
|
-
*/
|
|
50
|
-
startFormulaLimitUrl?: string;
|
|
51
|
-
/**
|
|
52
|
-
* The URL of the endpoint for getting formula limit status.
|
|
53
|
-
*/
|
|
54
|
-
getFormulaLimitStatusUrl?: string;
|
|
55
|
-
/**
|
|
56
|
-
* The URL of the endpoint for releasing formula limit.
|
|
57
|
-
*/
|
|
58
|
-
releaseFormulaLimitUrl?: string;
|
|
59
|
-
/**
|
|
60
|
-
* The socket connection custom headers.
|
|
61
|
-
*/
|
|
62
|
-
customHeaders?: Record<string, string>;
|
|
63
|
-
}
|
|
64
|
-
export declare const defaultPluginConfig: Omit<IUniverCollaborationClientConfig, 'socketService'>;
|