@univerjs/preset-sheets-collaboration 0.6.7 → 0.6.9-experimental.20250403-d914ddc

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 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]})});
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/facade");require("@univerjs-pro/collaboration-client-ui/facade");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
@@ -6,7 +6,9 @@ import { BrowserCollaborationSocketService as l, UniverCollaborationClientUIPlug
6
6
  export * from "@univerjs-pro/collaboration-client-ui";
7
7
  import { UniverEditHistoryLoaderPlugin as a } from "@univerjs-pro/edit-history-loader";
8
8
  export * from "@univerjs-pro/edit-history-loader";
9
- function c(o) {
9
+ import "@univerjs-pro/collaboration-client/facade";
10
+ import "@univerjs-pro/collaboration-client-ui/facade";
11
+ function p(o) {
10
12
  const e = new URL(o, window.location.origin);
11
13
  switch (e.protocol) {
12
14
  case "https:":
@@ -18,7 +20,7 @@ function c(o) {
18
20
  }
19
21
  return e.toString();
20
22
  }
21
- function m(o = {}) {
23
+ function f(o = {}) {
22
24
  const { universerEndpoint: e, univerContainerId: i = "app" } = o, r = e != null ? e : `${window.location.protocol}//${window.location.host}`;
23
25
  return {
24
26
  plugins: [
@@ -31,7 +33,7 @@ function m(o = {}) {
31
33
  authzUrl: `${r}/universer-api/authz`,
32
34
  snapshotServerUrl: `${r}/universer-api/snapshot`,
33
35
  collabSubmitChangesetUrl: `${r}/universer-api/comb`,
34
- collabWebSocketUrl: c(`${r}/universer-api/comb/connect`),
36
+ collabWebSocketUrl: p(`${r}/universer-api/comb/connect`),
35
37
  loginUrlKey: `${r}/universer-api/oidc/authpage`,
36
38
  uploadFileServerUrl: `${r}/universer-api/stream/file/upload`,
37
39
  signUrlServerUrl: `${r}/universer-api/file/{fileID}/sign-url`,
@@ -48,5 +50,5 @@ function m(o = {}) {
48
50
  };
49
51
  }
50
52
  export {
51
- m as UniverSheetsCollaborationPreset
53
+ f as UniverSheetsCollaborationPreset
52
54
  };
@@ -1,6 +1,10 @@
1
1
  import { IPreset } from './types';
2
2
  import '@univerjs-pro/collaboration-client-ui/lib/index.css';
3
3
  import '@univerjs-pro/edit-history-viewer/lib/index.css';
4
+ import '@univerjs-pro/collaboration-client/facade';
5
+ import '@univerjs-pro/collaboration-client-ui/facade';
6
+ export type * from '@univerjs-pro/collaboration-client/facade';
7
+ export type * from '@univerjs-pro/collaboration/facade';
4
8
  export interface IUniverSheetsCollaborationPresetConfig {
5
9
  universerEndpoint?: string;
6
10
  /**