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