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