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