@univerjs/preset-docs-collaboration 0.5.1 → 0.5.3
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/cjs/locales/en-US.js +1 -1
- package/lib/cjs/locales/fa-IR.js +1 -1
- package/lib/cjs/locales/fr-FR.js +1 -1
- package/lib/cjs/locales/ru-RU.js +1 -1
- package/lib/cjs/locales/vi-VN.js +1 -1
- package/lib/cjs/locales/zh-CN.js +1 -1
- package/lib/cjs/locales/zh-TW.js +1 -1
- package/lib/es/index.js +27 -22
- package/lib/es/locales/en-US.js +7 -5
- package/lib/es/locales/fa-IR.js +7 -5
- package/lib/es/locales/fr-FR.js +6 -4
- package/lib/es/locales/ru-RU.js +6 -4
- package/lib/es/locales/vi-VN.js +7 -5
- package/lib/es/locales/zh-CN.js +7 -5
- package/lib/es/locales/zh-TW.js +7 -5
- package/lib/types/index.d.ts +2 -6
- package/lib/types/umd.d.ts +7 -0
- package/lib/umd/index.js +12 -3
- package/lib/umd/locales/en-US.js +5 -2
- package/lib/umd/locales/fa-IR.js +5 -2
- package/lib/umd/locales/fr-FR.js +5 -2
- package/lib/umd/locales/ru-RU.js +5 -2
- package/lib/umd/locales/vi-VN.js +5 -2
- package/lib/umd/locales/zh-CN.js +5 -2
- package/lib/umd/locales/zh-TW.js +5 -2
- package/package.json +9 -6
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("@univerjs-pro/collaboration"),n=require("@univerjs-pro/collaboration-client");function
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("@univerjs-pro/collaboration"),n=require("@univerjs-pro/collaboration-client"),i=require("@univerjs-pro/collaboration-client-ui");require("@univerjs-pro/collaboration-client/facade");function l(e){const o=new URL(e,window.location.origin);switch(o.protocol){case"https:":o.protocol="wss:";break;case"http:":o.protocol="ws:";break}return o.toString()}function a(e={}){const{universerEndpoint:o}=e,r=o!=null?o:`${window.location.protocol}//${window.location.host}`;return{plugins:[t.UniverCollaborationPlugin,[n.UniverCollaborationClientPlugin,{enableOfflineEditing:!0,enableSingleActiveInstanceLock:!0,enableAuthServer:!0,authzUrl:`${r}/universer-api/authz`,snapshotServerUrl:`${r}/universer-api/snapshot`,collabSubmitChangesetUrl:`${r}/universer-api/comb`,collabWebSocketUrl:l(`${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}],i.UniverCollaborationClientUIPlugin]}}exports.UniverDocsCollaborationPreset=a;Object.keys(t).forEach(e=>{e!=="default"&&!Object.prototype.hasOwnProperty.call(exports,e)&&Object.defineProperty(exports,e,{enumerable:!0,get:()=>t[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(i).forEach(e=>{e!=="default"&&!Object.prototype.hasOwnProperty.call(exports,e)&&Object.defineProperty(exports,e,{enumerable:!0,get:()=>i[e]})});
|
package/lib/cjs/locales/en-US.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("@univerjs/core"),o=require("@univerjs-pro/collaboration-client/locale/en-US"),
|
|
1
|
+
"use strict";const e=require("@univerjs/core"),r=require("@univerjs-pro/collaboration-client/locale/en-US"),o=require("@univerjs-pro/collaboration-client-ui/locale/en-US"),i=e.merge({},r,o);module.exports=i;
|
package/lib/cjs/locales/fa-IR.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("@univerjs/core"),o=require("@univerjs-pro/collaboration-client/locale/fa-IR"),
|
|
1
|
+
"use strict";const e=require("@univerjs/core"),r=require("@univerjs-pro/collaboration-client/locale/fa-IR"),o=require("@univerjs-pro/collaboration-client-ui/locale/fa-IR"),i=e.merge({},r,o);module.exports=i;
|
package/lib/cjs/locales/fr-FR.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("@univerjs/core"),r=require("@univerjs-pro/collaboration-client/locale/fr-FR"),o=e.
|
|
1
|
+
"use strict";const e=require("@univerjs/core"),r=require("@univerjs-pro/collaboration-client/locale/fr-FR"),o=require("@univerjs-pro/collaboration-client-ui/locale/fr-FR"),i=e.merge({},r,o);module.exports=i;
|
package/lib/cjs/locales/ru-RU.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("@univerjs/core"),r=require("@univerjs-pro/collaboration-client/locale/ru-RU"),o=e.
|
|
1
|
+
"use strict";const e=require("@univerjs/core"),r=require("@univerjs-pro/collaboration-client/locale/ru-RU"),o=require("@univerjs-pro/collaboration-client-ui/locale/ru-RU"),i=e.merge({},r,o);module.exports=i;
|
package/lib/cjs/locales/vi-VN.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("@univerjs/core"),
|
|
1
|
+
"use strict";const e=require("@univerjs/core"),r=require("@univerjs-pro/collaboration-client/locale/vi-VN"),i=require("@univerjs-pro/collaboration-client-ui/locale/vi-VN"),o=e.merge({},r,i);module.exports=o;
|
package/lib/cjs/locales/zh-CN.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("@univerjs/core"),o=require("@univerjs-pro/collaboration-client/locale/zh-CN"),
|
|
1
|
+
"use strict";const e=require("@univerjs/core"),r=require("@univerjs-pro/collaboration-client/locale/zh-CN"),o=require("@univerjs-pro/collaboration-client-ui/locale/zh-CN"),i=e.merge({},r,o);module.exports=i;
|
package/lib/cjs/locales/zh-TW.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("@univerjs/core"),o=require("@univerjs-pro/collaboration-client/locale/zh-TW"),
|
|
1
|
+
"use strict";const e=require("@univerjs/core"),r=require("@univerjs-pro/collaboration-client/locale/zh-TW"),o=require("@univerjs-pro/collaboration-client-ui/locale/zh-TW"),i=e.merge({},r,o);module.exports=i;
|
package/lib/es/index.js
CHANGED
|
@@ -1,41 +1,46 @@
|
|
|
1
|
-
import { UniverCollaborationPlugin as
|
|
1
|
+
import { UniverCollaborationPlugin as i } from "@univerjs-pro/collaboration";
|
|
2
2
|
export * from "@univerjs-pro/collaboration";
|
|
3
|
-
import { UniverCollaborationClientPlugin as
|
|
3
|
+
import { UniverCollaborationClientPlugin as n } from "@univerjs-pro/collaboration-client";
|
|
4
4
|
export * from "@univerjs-pro/collaboration-client";
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
import { UniverCollaborationClientUIPlugin as t } from "@univerjs-pro/collaboration-client-ui";
|
|
6
|
+
export * from "@univerjs-pro/collaboration-client-ui";
|
|
7
|
+
import "@univerjs-pro/collaboration-client/facade";
|
|
8
|
+
function l(e) {
|
|
9
|
+
const r = new URL(e, window.location.origin);
|
|
10
|
+
switch (r.protocol) {
|
|
8
11
|
case "https:":
|
|
9
|
-
|
|
12
|
+
r.protocol = "wss:";
|
|
10
13
|
break;
|
|
11
14
|
case "http:":
|
|
12
|
-
|
|
15
|
+
r.protocol = "ws:";
|
|
13
16
|
break;
|
|
14
17
|
}
|
|
15
|
-
return
|
|
18
|
+
return r.toString();
|
|
16
19
|
}
|
|
17
|
-
function
|
|
18
|
-
const { universerEndpoint:
|
|
20
|
+
function u(e = {}) {
|
|
21
|
+
const { universerEndpoint: r } = e, o = r != null ? r : `${window.location.protocol}//${window.location.host}`;
|
|
19
22
|
return {
|
|
20
23
|
plugins: [
|
|
21
|
-
|
|
22
|
-
[
|
|
24
|
+
i,
|
|
25
|
+
[n, {
|
|
23
26
|
enableOfflineEditing: !0,
|
|
24
27
|
enableSingleActiveInstanceLock: !0,
|
|
25
28
|
enableAuthServer: !0,
|
|
26
|
-
authzUrl: `${
|
|
27
|
-
snapshotServerUrl: `${
|
|
28
|
-
collabSubmitChangesetUrl: `${
|
|
29
|
-
collabWebSocketUrl:
|
|
30
|
-
loginUrlKey: `${
|
|
31
|
-
uploadFileServerUrl: `${
|
|
32
|
-
signUrlServerUrl: `${
|
|
33
|
-
downloadEndpointUrl: `${
|
|
29
|
+
authzUrl: `${o}/universer-api/authz`,
|
|
30
|
+
snapshotServerUrl: `${o}/universer-api/snapshot`,
|
|
31
|
+
collabSubmitChangesetUrl: `${o}/universer-api/comb`,
|
|
32
|
+
collabWebSocketUrl: l(`${o}/universer-api/comb/connect`),
|
|
33
|
+
loginUrlKey: `${o}/universer-api/oidc/authpage`,
|
|
34
|
+
uploadFileServerUrl: `${o}/universer-api/stream/file/upload`,
|
|
35
|
+
signUrlServerUrl: `${o}/universer-api/file/{fileID}/sign-url`,
|
|
36
|
+
downloadEndpointUrl: `${o}/`,
|
|
37
|
+
wsSessionTicketUrl: `${o}/universer-api/user/session-ticket`,
|
|
34
38
|
sendChangesetTimeout: 200
|
|
35
|
-
}]
|
|
39
|
+
}],
|
|
40
|
+
t
|
|
36
41
|
]
|
|
37
42
|
};
|
|
38
43
|
}
|
|
39
44
|
export {
|
|
40
|
-
|
|
45
|
+
u as UniverDocsCollaborationPreset
|
|
41
46
|
};
|
package/lib/es/locales/en-US.js
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
|
|
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
|
+
const l = o(
|
|
4
5
|
{},
|
|
5
|
-
|
|
6
|
+
r,
|
|
7
|
+
i
|
|
6
8
|
);
|
|
7
9
|
export {
|
|
8
|
-
|
|
10
|
+
l as default
|
|
9
11
|
};
|
package/lib/es/locales/fa-IR.js
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
|
|
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
|
+
const l = o(
|
|
4
5
|
{},
|
|
5
|
-
|
|
6
|
+
r,
|
|
7
|
+
i
|
|
6
8
|
);
|
|
7
9
|
export {
|
|
8
|
-
|
|
10
|
+
l as default
|
|
9
11
|
};
|
package/lib/es/locales/fr-FR.js
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { merge as o } from "@univerjs/core";
|
|
2
2
|
import r from "@univerjs-pro/collaboration-client/locale/fr-FR";
|
|
3
|
-
|
|
3
|
+
import i from "@univerjs-pro/collaboration-client-ui/locale/fr-FR";
|
|
4
|
+
const m = o(
|
|
4
5
|
{},
|
|
5
|
-
r
|
|
6
|
+
r,
|
|
7
|
+
i
|
|
6
8
|
);
|
|
7
9
|
export {
|
|
8
|
-
|
|
10
|
+
m as default
|
|
9
11
|
};
|
package/lib/es/locales/ru-RU.js
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { merge as o } from "@univerjs/core";
|
|
2
2
|
import r from "@univerjs-pro/collaboration-client/locale/ru-RU";
|
|
3
|
-
|
|
3
|
+
import i from "@univerjs-pro/collaboration-client-ui/locale/ru-RU";
|
|
4
|
+
const m = o(
|
|
4
5
|
{},
|
|
5
|
-
r
|
|
6
|
+
r,
|
|
7
|
+
i
|
|
6
8
|
);
|
|
7
9
|
export {
|
|
8
|
-
|
|
10
|
+
m as default
|
|
9
11
|
};
|
package/lib/es/locales/vi-VN.js
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
|
|
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
|
+
const m = o(
|
|
4
5
|
{},
|
|
5
|
-
|
|
6
|
+
r,
|
|
7
|
+
i
|
|
6
8
|
);
|
|
7
9
|
export {
|
|
8
|
-
|
|
10
|
+
m as default
|
|
9
11
|
};
|
package/lib/es/locales/zh-CN.js
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
|
|
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
|
+
const m = o(
|
|
4
5
|
{},
|
|
5
|
-
|
|
6
|
+
r,
|
|
7
|
+
i
|
|
6
8
|
);
|
|
7
9
|
export {
|
|
8
|
-
|
|
10
|
+
m as default
|
|
9
11
|
};
|
package/lib/es/locales/zh-TW.js
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
|
|
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
|
+
const m = o(
|
|
4
5
|
{},
|
|
5
|
-
|
|
6
|
+
r,
|
|
7
|
+
i
|
|
6
8
|
);
|
|
7
9
|
export {
|
|
8
|
-
|
|
10
|
+
m as default
|
|
9
11
|
};
|
package/lib/types/index.d.ts
CHANGED
|
@@ -1,8 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
import '@univerjs-pro/collaboration-client/lib/index.css';
|
|
1
|
+
export * from './umd';
|
|
3
2
|
export * from '@univerjs-pro/collaboration';
|
|
4
3
|
export * from '@univerjs-pro/collaboration-client';
|
|
5
|
-
export
|
|
6
|
-
universerEndpoint?: string;
|
|
7
|
-
}
|
|
8
|
-
export declare function UniverDocsCollaborationPreset(config?: Partial<IUniverDocsCollaborationPresetConfig>): IPreset;
|
|
4
|
+
export * from '@univerjs-pro/collaboration-client-ui';
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { IPreset } from './types';
|
|
2
|
+
import '@univerjs-pro/collaboration-client/facade';
|
|
3
|
+
import '@univerjs-pro/collaboration-client-ui/lib/index.css';
|
|
4
|
+
export interface IUniverDocsCollaborationPresetConfig {
|
|
5
|
+
universerEndpoint?: string;
|
|
6
|
+
}
|
|
7
|
+
export declare function UniverDocsCollaborationPreset(config?: Partial<IUniverDocsCollaborationPresetConfig>): IPreset;
|