@univerjs/preset-sheets-collaboration 0.6.0-nightly.202502140800 → 0.6.1-nightly.202502231605

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 CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("@univerjs-pro/collaboration"),i=require("@univerjs-pro/collaboration-client"),n=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:[o.UniverCollaborationPlugin,[i.UniverCollaborationClientPlugin,{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}],[n.UniverCollaborationClientUIPlugin,{}],[l.UniverEditHistoryLoaderPlugin,{univerContainerId:a,historyListServerUrl:`${r}/universer-api/history`}]]}}exports.UniverSheetsCollaborationPreset=c;Object.keys(o).forEach(e=>{e!=="default"&&!Object.prototype.hasOwnProperty.call(exports,e)&&Object.defineProperty(exports,e,{enumerable:!0,get:()=>o[e]})});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(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");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
@@ -2,11 +2,11 @@ import { UniverCollaborationPlugin as t } from "@univerjs-pro/collaboration";
2
2
  export * from "@univerjs-pro/collaboration";
3
3
  import { UniverCollaborationClientPlugin as n } from "@univerjs-pro/collaboration-client";
4
4
  export * from "@univerjs-pro/collaboration-client";
5
- import { UniverCollaborationClientUIPlugin as l } from "@univerjs-pro/collaboration-client-ui";
5
+ import { BrowserCollaborationSocketService as l, UniverCollaborationClientUIPlugin as s } from "@univerjs-pro/collaboration-client-ui";
6
6
  export * from "@univerjs-pro/collaboration-client-ui";
7
- import { UniverEditHistoryLoaderPlugin as s } from "@univerjs-pro/edit-history-loader";
7
+ import { UniverEditHistoryLoaderPlugin as a } from "@univerjs-pro/edit-history-loader";
8
8
  export * from "@univerjs-pro/edit-history-loader";
9
- function a(o) {
9
+ function c(o) {
10
10
  const e = new URL(o, window.location.origin);
11
11
  switch (e.protocol) {
12
12
  case "https:":
@@ -18,19 +18,20 @@ function a(o) {
18
18
  }
19
19
  return e.toString();
20
20
  }
21
- function U(o = {}) {
21
+ function m(o = {}) {
22
22
  const { universerEndpoint: e, univerContainerId: i = "app" } = o, r = e != null ? e : `${window.location.protocol}//${window.location.host}`;
23
23
  return {
24
24
  plugins: [
25
25
  t,
26
26
  [n, {
27
+ socketService: l,
27
28
  enableOfflineEditing: !0,
28
29
  enableSingleActiveInstanceLock: !0,
29
30
  enableAuthServer: !0,
30
31
  authzUrl: `${r}/universer-api/authz`,
31
32
  snapshotServerUrl: `${r}/universer-api/snapshot`,
32
33
  collabSubmitChangesetUrl: `${r}/universer-api/comb`,
33
- collabWebSocketUrl: a(`${r}/universer-api/comb/connect`),
34
+ collabWebSocketUrl: c(`${r}/universer-api/comb/connect`),
34
35
  loginUrlKey: `${r}/universer-api/oidc/authpage`,
35
36
  uploadFileServerUrl: `${r}/universer-api/stream/file/upload`,
36
37
  signUrlServerUrl: `${r}/universer-api/file/{fileID}/sign-url`,
@@ -38,8 +39,8 @@ function U(o = {}) {
38
39
  wsSessionTicketUrl: `${r}/universer-api/user/session-ticket`,
39
40
  sendChangesetTimeout: 200
40
41
  }],
41
- [l, {}],
42
- [s, {
42
+ [s, {}],
43
+ [a, {
43
44
  univerContainerId: i,
44
45
  historyListServerUrl: `${r}/universer-api/history`
45
46
  }]
@@ -47,5 +48,5 @@ function U(o = {}) {
47
48
  };
48
49
  }
49
50
  export {
50
- U as UniverSheetsCollaborationPreset
51
+ m as UniverSheetsCollaborationPreset
51
52
  };