@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 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 u(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 p(e={}){const{universerEndpoint:t,univerContainerId:a="app",enableOfflineEditing:s=!0,enableSingleActiveInstanceLock:c=!0}=e,r=t!=null?t:`${window.location.protocol}//${window.location.host}`;return{plugins:[i.UniverCollaborationPlugin,[n.UniverCollaborationClientPlugin,{socketService:o.BrowserCollaborationSocketService,enableOfflineEditing:s,enableSingleActiveInstanceLock:c,enableAuthServer:!0,authzUrl:`${r}/universer-api/authz`,snapshotServerUrl:`${r}/universer-api/snapshot`,collabSubmitChangesetUrl:`${r}/universer-api/comb`,collabWebSocketUrl:u(`${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=p;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/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
- function u(o) {
12
- const e = new URL(o, window.location.origin);
13
- switch (e.protocol) {
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
- e.protocol = "wss:";
16
+ o.protocol = "wss:";
16
17
  break;
17
18
  case "http:":
18
- e.protocol = "ws:";
19
+ o.protocol = "ws:";
19
20
  break;
20
21
  }
21
- return e.toString();
22
+ return o.toString();
22
23
  }
23
- function h(o = {}) {
24
+ function h(e = {}) {
24
25
  const {
25
- universerEndpoint: e,
26
+ universerEndpoint: o,
26
27
  univerContainerId: i = "app",
27
28
  enableOfflineEditing: t = !0,
28
29
  enableSingleActiveInstanceLock: n = !0
29
- } = o, r = e != null ? e : `${window.location.protocol}//${window.location.host}`;
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
- function u(o) {
12
- const e = new URL(o, window.location.origin);
13
- switch (e.protocol) {
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
- e.protocol = "wss:";
16
+ o.protocol = "wss:";
16
17
  break;
17
18
  case "http:":
18
- e.protocol = "ws:";
19
+ o.protocol = "ws:";
19
20
  break;
20
21
  }
21
- return e.toString();
22
+ return o.toString();
22
23
  }
23
- function h(o = {}) {
24
+ function h(e = {}) {
24
25
  const {
25
- universerEndpoint: e,
26
+ universerEndpoint: o,
26
27
  univerContainerId: i = "app",
27
28
  enableOfflineEditing: t = !0,
28
29
  enableSingleActiveInstanceLock: n = !0
29
- } = o, r = e != null ? e : `${window.location.protocol}//${window.location.host}`;
30
+ } = e, r = o != null ? o : `${window.location.protocol}//${window.location.host}`;
30
31
  return {
31
32
  plugins: [
32
33
  l,
@@ -3,3 +3,4 @@ export * from '@univerjs-pro/collaboration';
3
3
  export * from '@univerjs-pro/collaboration-client';
4
4
  export * from '@univerjs-pro/collaboration-client-ui';
5
5
  export * from '@univerjs-pro/edit-history-loader';
6
+ export * from '@univerjs-pro/edit-history-viewer';