@univerjs/preset-sheets-collaboration 0.9.3 → 0.10.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 +10 -9
- package/lib/index.js +10 -9
- package/lib/types/index.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/ko-KR.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");require("@univerjs-pro/collaboration-client/lib/facade");require("@univerjs-pro/collaboration-client-ui/lib/facade");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 p(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 b(e={}){const{universerEndpoint:t,univerContainerId:s="app",enableOfflineEditing:c=!0,enableSingleActiveInstanceLock:u=!0}=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:p(`${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:s,historyListServerUrl:`${r}/universer-api/history`}]]}}exports.UniverSheetsCollaborationPreset=b;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
|
@@ -8,25 +8,26 @@ import { UniverEditHistoryLoaderPlugin as c } from "@univerjs-pro/edit-history-l
|
|
|
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
|
-
|
|
12
|
-
|
|
13
|
-
|
|
11
|
+
export * from "@univerjs-pro/edit-history-viewer";
|
|
12
|
+
function u(e) {
|
|
13
|
+
const o = new URL(e, window.location.origin);
|
|
14
|
+
switch (o.protocol) {
|
|
14
15
|
case "https:":
|
|
15
|
-
|
|
16
|
+
o.protocol = "wss:";
|
|
16
17
|
break;
|
|
17
18
|
case "http:":
|
|
18
|
-
|
|
19
|
+
o.protocol = "ws:";
|
|
19
20
|
break;
|
|
20
21
|
}
|
|
21
|
-
return
|
|
22
|
+
return o.toString();
|
|
22
23
|
}
|
|
23
|
-
function h(
|
|
24
|
+
function h(e = {}) {
|
|
24
25
|
const {
|
|
25
|
-
universerEndpoint:
|
|
26
|
+
universerEndpoint: o,
|
|
26
27
|
univerContainerId: i = "app",
|
|
27
28
|
enableOfflineEditing: t = !0,
|
|
28
29
|
enableSingleActiveInstanceLock: n = !0
|
|
29
|
-
} =
|
|
30
|
+
} = e, r = o != null ? o : `${window.location.protocol}//${window.location.host}`;
|
|
30
31
|
return {
|
|
31
32
|
plugins: [
|
|
32
33
|
l,
|
package/lib/index.js
CHANGED
|
@@ -8,25 +8,26 @@ import { UniverEditHistoryLoaderPlugin as c } from "@univerjs-pro/edit-history-l
|
|
|
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
|
-
|
|
12
|
-
|
|
13
|
-
|
|
11
|
+
export * from "@univerjs-pro/edit-history-viewer";
|
|
12
|
+
function u(e) {
|
|
13
|
+
const o = new URL(e, window.location.origin);
|
|
14
|
+
switch (o.protocol) {
|
|
14
15
|
case "https:":
|
|
15
|
-
|
|
16
|
+
o.protocol = "wss:";
|
|
16
17
|
break;
|
|
17
18
|
case "http:":
|
|
18
|
-
|
|
19
|
+
o.protocol = "ws:";
|
|
19
20
|
break;
|
|
20
21
|
}
|
|
21
|
-
return
|
|
22
|
+
return o.toString();
|
|
22
23
|
}
|
|
23
|
-
function h(
|
|
24
|
+
function h(e = {}) {
|
|
24
25
|
const {
|
|
25
|
-
universerEndpoint:
|
|
26
|
+
universerEndpoint: o,
|
|
26
27
|
univerContainerId: i = "app",
|
|
27
28
|
enableOfflineEditing: t = !0,
|
|
28
29
|
enableSingleActiveInstanceLock: n = !0
|
|
29
|
-
} =
|
|
30
|
+
} = e, r = o != null ? o : `${window.location.protocol}//${window.location.host}`;
|
|
30
31
|
return {
|
|
31
32
|
plugins: [
|
|
32
33
|
l,
|
package/lib/types/index.d.ts
CHANGED