@univerjs/preset-sheets-collaboration 0.16.0 → 0.17.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/index.js +1 -1
- package/lib/es/index.js +17 -15
- package/lib/index.js +17 -15
- package/lib/types/umd.d.ts +1 -0
- package/lib/umd/index.js +8 -8
- package/lib/umd/locales/ca-ES.js +3 -3
- package/lib/umd/locales/en-US.js +3 -3
- package/lib/umd/locales/es-ES.js +3 -3
- package/lib/umd/locales/fa-IR.js +3 -3
- package/lib/umd/locales/fr-FR.js +3 -3
- package/lib/umd/locales/ja-JP.js +3 -3
- package/lib/umd/locales/ko-KR.js +3 -3
- package/lib/umd/locales/ru-RU.js +3 -3
- package/lib/umd/locales/sk-SK.js +3 -3
- package/lib/umd/locales/vi-VN.js +3 -3
- package/lib/umd/locales/zh-CN.js +3 -3
- package/lib/umd/locales/zh-TW.js +3 -3
- package/package.json +10 -10
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("@univerjs-pro/collaboration"),n=require("@univerjs-pro/collaboration-client"),o=require("@univerjs-pro/collaboration-client-ui"),l=require("@univerjs-pro/edit-history-loader");require("@univerjs-pro/collaboration-client/lib/facade");require("@univerjs-pro/collaboration-client-ui/lib/facade");const a=require("@univerjs-pro/edit-history-viewer");function
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("@univerjs-pro/collaboration"),n=require("@univerjs-pro/collaboration-client"),o=require("@univerjs-pro/collaboration-client-ui"),l=require("@univerjs-pro/edit-history-loader");require("@univerjs-pro/collaboration-client/lib/facade");require("@univerjs-pro/collaboration-client-ui/lib/facade");const a=require("@univerjs-pro/edit-history-viewer");function f(e){const t=new URL(e,window.location.origin);switch(t.protocol){case"https:":t.protocol="wss:";break;case"http:":t.protocol="ws:";break}return t.toString()}function d(e={}){const{universerEndpoint:t,univerContainerId:s="app",enableOfflineEditing:c=!0,enableSingleActiveInstanceLock:u=!0,enableFrontendLog:p=!1,historyWorkerURL:b}=e,r=t!=null?t:`${window.location.protocol}//${window.location.host}`;return{plugins:[i.UniverCollaborationPlugin,[n.UniverCollaborationClientPlugin,{socketService:o.BrowserCollaborationSocketService,enableOfflineEditing:c,enableSingleActiveInstanceLock:u,enableAuthServer:!0,authzUrl:`${r}/universer-api/authz`,snapshotServerUrl:`${r}/universer-api/snapshot`,collabSubmitChangesetUrl:`${r}/universer-api/comb`,collabWebSocketUrl:f(`${r}/universer-api/comb/connect`),loginUrlKey:`${r}/universer-api/oidc/authpage`,uploadFileServerUrl:`${r}/universer-api/stream/file/upload`,signUrlServerUrl:`${r}/universer-api/file/{fileID}/sign-url`,downloadEndpointUrl:`${r}/`,wsSessionTicketUrl:`${r}/universer-api/user/session-ticket`,startFormulaLimitUrl:`${r}/universer-api/license/formula/limit/start`,getFormulaLimitStatusUrl:`${r}/universer-api/license/formula/limit/status`,releaseFormulaLimitUrl:`${r}/universer-api/license/formula/limit/done`,sendChangesetTimeout:200}],[o.UniverCollaborationClientUIPlugin,{enableFrontendLog:p}],[l.UniverEditHistoryLoaderPlugin,{univerContainerId:s,historyListServerUrl:`${r}/universer-api/history`,workerURL:b}]]}}exports.UniverSheetsCollaborationPreset=d;Object.keys(i).forEach(e=>{e!=="default"&&!Object.prototype.hasOwnProperty.call(exports,e)&&Object.defineProperty(exports,e,{enumerable:!0,get:()=>i[e]})});Object.keys(n).forEach(e=>{e!=="default"&&!Object.prototype.hasOwnProperty.call(exports,e)&&Object.defineProperty(exports,e,{enumerable:!0,get:()=>n[e]})});Object.keys(o).forEach(e=>{e!=="default"&&!Object.prototype.hasOwnProperty.call(exports,e)&&Object.defineProperty(exports,e,{enumerable:!0,get:()=>o[e]})});Object.keys(l).forEach(e=>{e!=="default"&&!Object.prototype.hasOwnProperty.call(exports,e)&&Object.defineProperty(exports,e,{enumerable:!0,get:()=>l[e]})});Object.keys(a).forEach(e=>{e!=="default"&&!Object.prototype.hasOwnProperty.call(exports,e)&&Object.defineProperty(exports,e,{enumerable:!0,get:()=>a[e]})});
|
package/lib/es/index.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { UniverCollaborationPlugin as
|
|
1
|
+
import { UniverCollaborationPlugin as s } from "@univerjs-pro/collaboration";
|
|
2
2
|
export * from "@univerjs-pro/collaboration";
|
|
3
|
-
import { UniverCollaborationClientPlugin as
|
|
3
|
+
import { UniverCollaborationClientPlugin as u } from "@univerjs-pro/collaboration-client";
|
|
4
4
|
export * from "@univerjs-pro/collaboration-client";
|
|
5
|
-
import { BrowserCollaborationSocketService as
|
|
5
|
+
import { BrowserCollaborationSocketService as p, UniverCollaborationClientUIPlugin as c } from "@univerjs-pro/collaboration-client-ui";
|
|
6
6
|
export * from "@univerjs-pro/collaboration-client-ui";
|
|
7
|
-
import { UniverEditHistoryLoaderPlugin as
|
|
7
|
+
import { UniverEditHistoryLoaderPlugin as m } from "@univerjs-pro/edit-history-loader";
|
|
8
8
|
export * from "@univerjs-pro/edit-history-loader";
|
|
9
9
|
import "@univerjs-pro/collaboration-client/lib/facade";
|
|
10
10
|
import "@univerjs-pro/collaboration-client-ui/lib/facade";
|
|
11
11
|
export * from "@univerjs-pro/edit-history-viewer";
|
|
12
|
-
function
|
|
12
|
+
function v(o) {
|
|
13
13
|
const e = new URL(o, window.location.origin);
|
|
14
14
|
switch (e.protocol) {
|
|
15
15
|
case "https:":
|
|
@@ -21,26 +21,27 @@ function m(o) {
|
|
|
21
21
|
}
|
|
22
22
|
return e.toString();
|
|
23
23
|
}
|
|
24
|
-
function
|
|
24
|
+
function w(o = {}) {
|
|
25
25
|
const {
|
|
26
26
|
universerEndpoint: e,
|
|
27
27
|
univerContainerId: i = "app",
|
|
28
28
|
enableOfflineEditing: t = !0,
|
|
29
29
|
enableSingleActiveInstanceLock: n = !0,
|
|
30
|
-
enableFrontendLog: l = !1
|
|
30
|
+
enableFrontendLog: l = !1,
|
|
31
|
+
historyWorkerURL: a
|
|
31
32
|
} = o, r = e != null ? e : `${window.location.protocol}//${window.location.host}`;
|
|
32
33
|
return {
|
|
33
34
|
plugins: [
|
|
34
|
-
|
|
35
|
-
[
|
|
36
|
-
socketService:
|
|
35
|
+
s,
|
|
36
|
+
[u, {
|
|
37
|
+
socketService: p,
|
|
37
38
|
enableOfflineEditing: t,
|
|
38
39
|
enableSingleActiveInstanceLock: n,
|
|
39
40
|
enableAuthServer: !0,
|
|
40
41
|
authzUrl: `${r}/universer-api/authz`,
|
|
41
42
|
snapshotServerUrl: `${r}/universer-api/snapshot`,
|
|
42
43
|
collabSubmitChangesetUrl: `${r}/universer-api/comb`,
|
|
43
|
-
collabWebSocketUrl:
|
|
44
|
+
collabWebSocketUrl: v(`${r}/universer-api/comb/connect`),
|
|
44
45
|
loginUrlKey: `${r}/universer-api/oidc/authpage`,
|
|
45
46
|
uploadFileServerUrl: `${r}/universer-api/stream/file/upload`,
|
|
46
47
|
signUrlServerUrl: `${r}/universer-api/file/{fileID}/sign-url`,
|
|
@@ -51,16 +52,17 @@ function h(o = {}) {
|
|
|
51
52
|
releaseFormulaLimitUrl: `${r}/universer-api/license/formula/limit/done`,
|
|
52
53
|
sendChangesetTimeout: 200
|
|
53
54
|
}],
|
|
54
|
-
[
|
|
55
|
+
[c, {
|
|
55
56
|
enableFrontendLog: l
|
|
56
57
|
}],
|
|
57
|
-
[
|
|
58
|
+
[m, {
|
|
58
59
|
univerContainerId: i,
|
|
59
|
-
historyListServerUrl: `${r}/universer-api/history
|
|
60
|
+
historyListServerUrl: `${r}/universer-api/history`,
|
|
61
|
+
workerURL: a
|
|
60
62
|
}]
|
|
61
63
|
]
|
|
62
64
|
};
|
|
63
65
|
}
|
|
64
66
|
export {
|
|
65
|
-
|
|
67
|
+
w as UniverSheetsCollaborationPreset
|
|
66
68
|
};
|
package/lib/index.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { UniverCollaborationPlugin as
|
|
1
|
+
import { UniverCollaborationPlugin as s } from "@univerjs-pro/collaboration";
|
|
2
2
|
export * from "@univerjs-pro/collaboration";
|
|
3
|
-
import { UniverCollaborationClientPlugin as
|
|
3
|
+
import { UniverCollaborationClientPlugin as u } from "@univerjs-pro/collaboration-client";
|
|
4
4
|
export * from "@univerjs-pro/collaboration-client";
|
|
5
|
-
import { BrowserCollaborationSocketService as
|
|
5
|
+
import { BrowserCollaborationSocketService as p, UniverCollaborationClientUIPlugin as c } from "@univerjs-pro/collaboration-client-ui";
|
|
6
6
|
export * from "@univerjs-pro/collaboration-client-ui";
|
|
7
|
-
import { UniverEditHistoryLoaderPlugin as
|
|
7
|
+
import { UniverEditHistoryLoaderPlugin as m } from "@univerjs-pro/edit-history-loader";
|
|
8
8
|
export * from "@univerjs-pro/edit-history-loader";
|
|
9
9
|
import "@univerjs-pro/collaboration-client/lib/facade";
|
|
10
10
|
import "@univerjs-pro/collaboration-client-ui/lib/facade";
|
|
11
11
|
export * from "@univerjs-pro/edit-history-viewer";
|
|
12
|
-
function
|
|
12
|
+
function v(o) {
|
|
13
13
|
const e = new URL(o, window.location.origin);
|
|
14
14
|
switch (e.protocol) {
|
|
15
15
|
case "https:":
|
|
@@ -21,26 +21,27 @@ function m(o) {
|
|
|
21
21
|
}
|
|
22
22
|
return e.toString();
|
|
23
23
|
}
|
|
24
|
-
function
|
|
24
|
+
function w(o = {}) {
|
|
25
25
|
const {
|
|
26
26
|
universerEndpoint: e,
|
|
27
27
|
univerContainerId: i = "app",
|
|
28
28
|
enableOfflineEditing: t = !0,
|
|
29
29
|
enableSingleActiveInstanceLock: n = !0,
|
|
30
|
-
enableFrontendLog: l = !1
|
|
30
|
+
enableFrontendLog: l = !1,
|
|
31
|
+
historyWorkerURL: a
|
|
31
32
|
} = o, r = e != null ? e : `${window.location.protocol}//${window.location.host}`;
|
|
32
33
|
return {
|
|
33
34
|
plugins: [
|
|
34
|
-
|
|
35
|
-
[
|
|
36
|
-
socketService:
|
|
35
|
+
s,
|
|
36
|
+
[u, {
|
|
37
|
+
socketService: p,
|
|
37
38
|
enableOfflineEditing: t,
|
|
38
39
|
enableSingleActiveInstanceLock: n,
|
|
39
40
|
enableAuthServer: !0,
|
|
40
41
|
authzUrl: `${r}/universer-api/authz`,
|
|
41
42
|
snapshotServerUrl: `${r}/universer-api/snapshot`,
|
|
42
43
|
collabSubmitChangesetUrl: `${r}/universer-api/comb`,
|
|
43
|
-
collabWebSocketUrl:
|
|
44
|
+
collabWebSocketUrl: v(`${r}/universer-api/comb/connect`),
|
|
44
45
|
loginUrlKey: `${r}/universer-api/oidc/authpage`,
|
|
45
46
|
uploadFileServerUrl: `${r}/universer-api/stream/file/upload`,
|
|
46
47
|
signUrlServerUrl: `${r}/universer-api/file/{fileID}/sign-url`,
|
|
@@ -51,16 +52,17 @@ function h(o = {}) {
|
|
|
51
52
|
releaseFormulaLimitUrl: `${r}/universer-api/license/formula/limit/done`,
|
|
52
53
|
sendChangesetTimeout: 200
|
|
53
54
|
}],
|
|
54
|
-
[
|
|
55
|
+
[c, {
|
|
55
56
|
enableFrontendLog: l
|
|
56
57
|
}],
|
|
57
|
-
[
|
|
58
|
+
[m, {
|
|
58
59
|
univerContainerId: i,
|
|
59
|
-
historyListServerUrl: `${r}/universer-api/history
|
|
60
|
+
historyListServerUrl: `${r}/universer-api/history`,
|
|
61
|
+
workerURL: a
|
|
60
62
|
}]
|
|
61
63
|
]
|
|
62
64
|
};
|
|
63
65
|
}
|
|
64
66
|
export {
|
|
65
|
-
|
|
67
|
+
w as UniverSheetsCollaborationPreset
|
|
66
68
|
};
|
package/lib/types/umd.d.ts
CHANGED
|
@@ -24,6 +24,7 @@ export interface IUniverSheetsCollaborationPresetConfig extends Pick<IUniverColl
|
|
|
24
24
|
* @default true
|
|
25
25
|
*/
|
|
26
26
|
enableSingleActiveInstanceLock?: boolean;
|
|
27
|
+
historyWorkerURL?: string | URL | Worker;
|
|
27
28
|
}
|
|
28
29
|
/**
|
|
29
30
|
* This preset add collaboration features, including collaboration editing, collaboration cursors,
|