@univerjs/preset-sheets-collaboration 0.6.9 → 0.6.10-nightly.202504101607
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 +6 -4
- package/lib/index.js +54 -0
- package/lib/locales/en-US.js +13 -0
- package/lib/locales/fa-IR.js +13 -0
- package/lib/locales/fr-FR.js +13 -0
- package/lib/locales/ru-RU.js +13 -0
- package/lib/locales/vi-VN.js +13 -0
- package/lib/locales/zh-CN.js +13 -0
- package/lib/locales/zh-TW.js +13 -0
- package/lib/types/umd.d.ts +4 -0
- package/lib/umd/index.js +9 -9
- package/lib/umd/locales/en-US.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/ru-RU.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");function s(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 c(e={}){const{universerEndpoint:t,univerContainerId:a="app"}=e,r=t!=null?t:`${window.location.protocol}//${window.location.host}`;return{plugins:[i.UniverCollaborationPlugin,[n.UniverCollaborationClientPlugin,{socketService:o.BrowserCollaborationSocketService,enableOfflineEditing:!0,enableSingleActiveInstanceLock:!0,enableAuthServer:!0,authzUrl:`${r}/universer-api/authz`,snapshotServerUrl:`${r}/universer-api/snapshot`,collabSubmitChangesetUrl:`${r}/universer-api/comb`,collabWebSocketUrl:s(`${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`,sendChangesetTimeout:200}],[o.UniverCollaborationClientUIPlugin,{}],[l.UniverEditHistoryLoaderPlugin,{univerContainerId:a,historyListServerUrl:`${r}/universer-api/history`}]]}}exports.UniverSheetsCollaborationPreset=c;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]})});
|
|
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/facade");require("@univerjs-pro/collaboration-client-ui/facade");function s(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 c(e={}){const{universerEndpoint:t,univerContainerId:a="app"}=e,r=t!=null?t:`${window.location.protocol}//${window.location.host}`;return{plugins:[i.UniverCollaborationPlugin,[n.UniverCollaborationClientPlugin,{socketService:o.BrowserCollaborationSocketService,enableOfflineEditing:!0,enableSingleActiveInstanceLock:!0,enableAuthServer:!0,authzUrl:`${r}/universer-api/authz`,snapshotServerUrl:`${r}/universer-api/snapshot`,collabSubmitChangesetUrl:`${r}/universer-api/comb`,collabWebSocketUrl:s(`${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`,sendChangesetTimeout:200}],[o.UniverCollaborationClientUIPlugin,{}],[l.UniverEditHistoryLoaderPlugin,{univerContainerId:a,historyListServerUrl:`${r}/universer-api/history`}]]}}exports.UniverSheetsCollaborationPreset=c;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]})});
|
package/lib/es/index.js
CHANGED
|
@@ -6,7 +6,9 @@ import { BrowserCollaborationSocketService as l, UniverCollaborationClientUIPlug
|
|
|
6
6
|
export * from "@univerjs-pro/collaboration-client-ui";
|
|
7
7
|
import { UniverEditHistoryLoaderPlugin as a } from "@univerjs-pro/edit-history-loader";
|
|
8
8
|
export * from "@univerjs-pro/edit-history-loader";
|
|
9
|
-
|
|
9
|
+
import "@univerjs-pro/collaboration-client/facade";
|
|
10
|
+
import "@univerjs-pro/collaboration-client-ui/facade";
|
|
11
|
+
function p(o) {
|
|
10
12
|
const e = new URL(o, window.location.origin);
|
|
11
13
|
switch (e.protocol) {
|
|
12
14
|
case "https:":
|
|
@@ -18,7 +20,7 @@ function c(o) {
|
|
|
18
20
|
}
|
|
19
21
|
return e.toString();
|
|
20
22
|
}
|
|
21
|
-
function
|
|
23
|
+
function f(o = {}) {
|
|
22
24
|
const { universerEndpoint: e, univerContainerId: i = "app" } = o, r = e != null ? e : `${window.location.protocol}//${window.location.host}`;
|
|
23
25
|
return {
|
|
24
26
|
plugins: [
|
|
@@ -31,7 +33,7 @@ function m(o = {}) {
|
|
|
31
33
|
authzUrl: `${r}/universer-api/authz`,
|
|
32
34
|
snapshotServerUrl: `${r}/universer-api/snapshot`,
|
|
33
35
|
collabSubmitChangesetUrl: `${r}/universer-api/comb`,
|
|
34
|
-
collabWebSocketUrl:
|
|
36
|
+
collabWebSocketUrl: p(`${r}/universer-api/comb/connect`),
|
|
35
37
|
loginUrlKey: `${r}/universer-api/oidc/authpage`,
|
|
36
38
|
uploadFileServerUrl: `${r}/universer-api/stream/file/upload`,
|
|
37
39
|
signUrlServerUrl: `${r}/universer-api/file/{fileID}/sign-url`,
|
|
@@ -48,5 +50,5 @@ function m(o = {}) {
|
|
|
48
50
|
};
|
|
49
51
|
}
|
|
50
52
|
export {
|
|
51
|
-
|
|
53
|
+
f as UniverSheetsCollaborationPreset
|
|
52
54
|
};
|
package/lib/index.js
ADDED
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { UniverCollaborationPlugin as t } from "@univerjs-pro/collaboration";
|
|
2
|
+
export * from "@univerjs-pro/collaboration";
|
|
3
|
+
import { UniverCollaborationClientPlugin as n } from "@univerjs-pro/collaboration-client";
|
|
4
|
+
export * from "@univerjs-pro/collaboration-client";
|
|
5
|
+
import { BrowserCollaborationSocketService as l, UniverCollaborationClientUIPlugin as s } from "@univerjs-pro/collaboration-client-ui";
|
|
6
|
+
export * from "@univerjs-pro/collaboration-client-ui";
|
|
7
|
+
import { UniverEditHistoryLoaderPlugin as a } from "@univerjs-pro/edit-history-loader";
|
|
8
|
+
export * from "@univerjs-pro/edit-history-loader";
|
|
9
|
+
import "@univerjs-pro/collaboration-client/facade";
|
|
10
|
+
import "@univerjs-pro/collaboration-client-ui/facade";
|
|
11
|
+
function p(o) {
|
|
12
|
+
const e = new URL(o, window.location.origin);
|
|
13
|
+
switch (e.protocol) {
|
|
14
|
+
case "https:":
|
|
15
|
+
e.protocol = "wss:";
|
|
16
|
+
break;
|
|
17
|
+
case "http:":
|
|
18
|
+
e.protocol = "ws:";
|
|
19
|
+
break;
|
|
20
|
+
}
|
|
21
|
+
return e.toString();
|
|
22
|
+
}
|
|
23
|
+
function f(o = {}) {
|
|
24
|
+
const { universerEndpoint: e, univerContainerId: i = "app" } = o, r = e != null ? e : `${window.location.protocol}//${window.location.host}`;
|
|
25
|
+
return {
|
|
26
|
+
plugins: [
|
|
27
|
+
t,
|
|
28
|
+
[n, {
|
|
29
|
+
socketService: l,
|
|
30
|
+
enableOfflineEditing: !0,
|
|
31
|
+
enableSingleActiveInstanceLock: !0,
|
|
32
|
+
enableAuthServer: !0,
|
|
33
|
+
authzUrl: `${r}/universer-api/authz`,
|
|
34
|
+
snapshotServerUrl: `${r}/universer-api/snapshot`,
|
|
35
|
+
collabSubmitChangesetUrl: `${r}/universer-api/comb`,
|
|
36
|
+
collabWebSocketUrl: p(`${r}/universer-api/comb/connect`),
|
|
37
|
+
loginUrlKey: `${r}/universer-api/oidc/authpage`,
|
|
38
|
+
uploadFileServerUrl: `${r}/universer-api/stream/file/upload`,
|
|
39
|
+
signUrlServerUrl: `${r}/universer-api/file/{fileID}/sign-url`,
|
|
40
|
+
downloadEndpointUrl: `${r}/`,
|
|
41
|
+
wsSessionTicketUrl: `${r}/universer-api/user/session-ticket`,
|
|
42
|
+
sendChangesetTimeout: 200
|
|
43
|
+
}],
|
|
44
|
+
[s, {}],
|
|
45
|
+
[a, {
|
|
46
|
+
univerContainerId: i,
|
|
47
|
+
historyListServerUrl: `${r}/universer-api/history`
|
|
48
|
+
}]
|
|
49
|
+
]
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
export {
|
|
53
|
+
f as UniverSheetsCollaborationPreset
|
|
54
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { merge as o } from "@univerjs/core";
|
|
2
|
+
import r from "@univerjs-pro/collaboration-client/locale/en-US";
|
|
3
|
+
import i from "@univerjs-pro/collaboration-client-ui/locale/en-US";
|
|
4
|
+
import e from "@univerjs-pro/edit-history-viewer/locale/en-US";
|
|
5
|
+
const a = o(
|
|
6
|
+
{},
|
|
7
|
+
r,
|
|
8
|
+
i,
|
|
9
|
+
e
|
|
10
|
+
);
|
|
11
|
+
export {
|
|
12
|
+
a as default
|
|
13
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { merge as o } from "@univerjs/core";
|
|
2
|
+
import r from "@univerjs-pro/collaboration-client/locale/fa-IR";
|
|
3
|
+
import i from "@univerjs-pro/collaboration-client-ui/locale/fa-IR";
|
|
4
|
+
import t from "@univerjs-pro/edit-history-viewer/locale/fa-IR";
|
|
5
|
+
const l = o(
|
|
6
|
+
{},
|
|
7
|
+
r,
|
|
8
|
+
i,
|
|
9
|
+
t
|
|
10
|
+
);
|
|
11
|
+
export {
|
|
12
|
+
l as default
|
|
13
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { merge as r } from "@univerjs/core";
|
|
2
|
+
import o from "@univerjs-pro/collaboration-client/locale/fr-FR";
|
|
3
|
+
import i from "@univerjs-pro/collaboration-client-ui/locale/fr-FR";
|
|
4
|
+
import t from "@univerjs-pro/edit-history-viewer/locale/fr-FR";
|
|
5
|
+
const a = r(
|
|
6
|
+
{},
|
|
7
|
+
o,
|
|
8
|
+
i,
|
|
9
|
+
t
|
|
10
|
+
);
|
|
11
|
+
export {
|
|
12
|
+
a as default
|
|
13
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { merge as r } from "@univerjs/core";
|
|
2
|
+
import o from "@univerjs-pro/collaboration-client/locale/ru-RU";
|
|
3
|
+
import i from "@univerjs-pro/collaboration-client-ui/locale/ru-RU";
|
|
4
|
+
import t from "@univerjs-pro/edit-history-viewer/locale/ru-RU";
|
|
5
|
+
const a = r(
|
|
6
|
+
{},
|
|
7
|
+
o,
|
|
8
|
+
i,
|
|
9
|
+
t
|
|
10
|
+
);
|
|
11
|
+
export {
|
|
12
|
+
a as default
|
|
13
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { merge as o } from "@univerjs/core";
|
|
2
|
+
import r from "@univerjs-pro/collaboration-client/locale/vi-VN";
|
|
3
|
+
import i from "@univerjs-pro/collaboration-client-ui/locale/vi-VN";
|
|
4
|
+
import t from "@univerjs-pro/edit-history-viewer/locale/vi-VN";
|
|
5
|
+
const a = o(
|
|
6
|
+
{},
|
|
7
|
+
r,
|
|
8
|
+
i,
|
|
9
|
+
t
|
|
10
|
+
);
|
|
11
|
+
export {
|
|
12
|
+
a as default
|
|
13
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { merge as o } from "@univerjs/core";
|
|
2
|
+
import r from "@univerjs-pro/collaboration-client/locale/zh-CN";
|
|
3
|
+
import i from "@univerjs-pro/collaboration-client-ui/locale/zh-CN";
|
|
4
|
+
import t from "@univerjs-pro/edit-history-viewer/locale/zh-CN";
|
|
5
|
+
const a = o(
|
|
6
|
+
{},
|
|
7
|
+
r,
|
|
8
|
+
i,
|
|
9
|
+
t
|
|
10
|
+
);
|
|
11
|
+
export {
|
|
12
|
+
a as default
|
|
13
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { merge as o } from "@univerjs/core";
|
|
2
|
+
import r from "@univerjs-pro/collaboration-client/locale/zh-TW";
|
|
3
|
+
import i from "@univerjs-pro/collaboration-client-ui/locale/zh-TW";
|
|
4
|
+
import t from "@univerjs-pro/edit-history-viewer/locale/zh-TW";
|
|
5
|
+
const a = o(
|
|
6
|
+
{},
|
|
7
|
+
r,
|
|
8
|
+
i,
|
|
9
|
+
t
|
|
10
|
+
);
|
|
11
|
+
export {
|
|
12
|
+
a as default
|
|
13
|
+
};
|
package/lib/types/umd.d.ts
CHANGED
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import { IPreset } from './types';
|
|
2
2
|
import '@univerjs-pro/collaboration-client-ui/lib/index.css';
|
|
3
3
|
import '@univerjs-pro/edit-history-viewer/lib/index.css';
|
|
4
|
+
import '@univerjs-pro/collaboration-client/facade';
|
|
5
|
+
import '@univerjs-pro/collaboration-client-ui/facade';
|
|
6
|
+
export type * from '@univerjs-pro/collaboration-client/facade';
|
|
7
|
+
export type * from '@univerjs-pro/collaboration/facade';
|
|
4
8
|
export interface IUniverSheetsCollaborationPresetConfig {
|
|
5
9
|
universerEndpoint?: string;
|
|
6
10
|
/**
|