@univerjs/preset-sheets-collaboration 0.5.0-nightly.202411230627 → 0.5.1

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"),t=require("@univerjs-pro/collaboration-client"),l=require("@univerjs-pro/edit-history-loader");function a(i={}){const{universerEndpoint:r,univerContainerId:n}=i,e=r!=null?r:`${window.location.protocol}//${window.location.host}`;return{plugins:[o.UniverCollaborationPlugin,[t.UniverCollaborationClientPlugin,{enableOfflineEditing:!0,enableSingleActiveInstanceLock:!0,enableAuthServer:!0,authzUrl:`${e}/universer-api/authz`,snapshotServerUrl:`${e}/universer-api/snapshot`,collabSubmitChangesetUrl:`${e}/universer-api/comb`,collabWebSocketUrl:`${e}/universer-api/comb/connect`,loginUrlKey:`${e}/universer-api/oidc/authpage`,uploadFileServerUrl:`${e}/universer-api/stream/file/upload`,signUrlServerUrl:`${e}/universer-api/file/{fileID}/sign-url`,downloadEndpointUrl:`${e}/`,sendChangesetTimeout:200}],[l.UniverEditHistoryLoaderPlugin,{univerContainerId:n,historyListServerUrl:`${e}/universer-api/history`}]]}}exports.UniverSheetsCollaborationPreset=a;
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/edit-history-loader");function a(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 s(e={}){const{universerEndpoint:t,univerContainerId:l}=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:a(`${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}/`,sendChangesetTimeout:200}],[n.UniverEditHistoryLoaderPlugin,{univerContainerId:l,historyListServerUrl:`${r}/universer-api/history`}]]}}exports.UniverSheetsCollaborationPreset=s;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]})});
@@ -0,0 +1 @@
1
+ "use strict";const e=require("@univerjs/core"),r=require("@univerjs-pro/collaboration-client/locale/fr-FR"),o=require("@univerjs-pro/edit-history-viewer/locale/fr-FR"),i=e.Tools.deepMerge({},r,o);module.exports=i;
package/lib/es/index.js CHANGED
@@ -1,32 +1,47 @@
1
- import { UniverCollaborationPlugin as o } from "@univerjs-pro/collaboration";
2
- import { UniverCollaborationClientPlugin as t } from "@univerjs-pro/collaboration-client";
1
+ import { UniverCollaborationPlugin as t } from "@univerjs-pro/collaboration";
2
+ export * from "@univerjs-pro/collaboration";
3
+ import { UniverCollaborationClientPlugin as n } from "@univerjs-pro/collaboration-client";
4
+ export * from "@univerjs-pro/collaboration-client";
3
5
  import { UniverEditHistoryLoaderPlugin as l } from "@univerjs-pro/edit-history-loader";
4
- function p(i = {}) {
5
- const { universerEndpoint: r, univerContainerId: n } = i, e = r != null ? r : `${window.location.protocol}//${window.location.host}`;
6
+ export * from "@univerjs-pro/edit-history-loader";
7
+ function a(o) {
8
+ const e = new URL(o, window.location.origin);
9
+ switch (e.protocol) {
10
+ case "https:":
11
+ e.protocol = "wss:";
12
+ break;
13
+ case "http:":
14
+ e.protocol = "ws:";
15
+ break;
16
+ }
17
+ return e.toString();
18
+ }
19
+ function c(o = {}) {
20
+ const { universerEndpoint: e, univerContainerId: i } = o, r = e != null ? e : `${window.location.protocol}//${window.location.host}`;
6
21
  return {
7
22
  plugins: [
8
- o,
9
- [t, {
23
+ t,
24
+ [n, {
10
25
  enableOfflineEditing: !0,
11
26
  enableSingleActiveInstanceLock: !0,
12
27
  enableAuthServer: !0,
13
- authzUrl: `${e}/universer-api/authz`,
14
- snapshotServerUrl: `${e}/universer-api/snapshot`,
15
- collabSubmitChangesetUrl: `${e}/universer-api/comb`,
16
- collabWebSocketUrl: `${e}/universer-api/comb/connect`,
17
- loginUrlKey: `${e}/universer-api/oidc/authpage`,
18
- uploadFileServerUrl: `${e}/universer-api/stream/file/upload`,
19
- signUrlServerUrl: `${e}/universer-api/file/{fileID}/sign-url`,
20
- downloadEndpointUrl: `${e}/`,
28
+ authzUrl: `${r}/universer-api/authz`,
29
+ snapshotServerUrl: `${r}/universer-api/snapshot`,
30
+ collabSubmitChangesetUrl: `${r}/universer-api/comb`,
31
+ collabWebSocketUrl: a(`${r}/universer-api/comb/connect`),
32
+ loginUrlKey: `${r}/universer-api/oidc/authpage`,
33
+ uploadFileServerUrl: `${r}/universer-api/stream/file/upload`,
34
+ signUrlServerUrl: `${r}/universer-api/file/{fileID}/sign-url`,
35
+ downloadEndpointUrl: `${r}/`,
21
36
  sendChangesetTimeout: 200
22
37
  }],
23
38
  [l, {
24
- univerContainerId: n,
25
- historyListServerUrl: `${e}/universer-api/history`
39
+ univerContainerId: i,
40
+ historyListServerUrl: `${r}/universer-api/history`
26
41
  }]
27
42
  ]
28
43
  };
29
44
  }
30
45
  export {
31
- p as UniverSheetsCollaborationPreset
46
+ c as UniverSheetsCollaborationPreset
32
47
  };
@@ -0,0 +1,11 @@
1
+ import { Tools as o } from "@univerjs/core";
2
+ import r from "@univerjs-pro/collaboration-client/locale/fr-FR";
3
+ import e from "@univerjs-pro/edit-history-viewer/locale/fr-FR";
4
+ const s = o.deepMerge(
5
+ {},
6
+ r,
7
+ e
8
+ );
9
+ export {
10
+ s as default
11
+ };
package/lib/index.css CHANGED
@@ -1 +1 @@
1
- .univer-online-status-icon{display:flex;margin-right:8px;font-size:20px}.univer-online-status-title{font-size:14px;line-height:32px;color:rgb(var(--grey-600))}.univer-online-status.univer-online .univer-online-status-icon{color:rgb(var(--green-500))}.univer-online-status.univer-offline .univer-online-status-icon{color:rgb(var(--red-500))}.univer-version-list-panel{margin-left:-20px;margin-right:-20px;overflow:hidden}.univer-version-list-panel-content{height:100%;border-top:1px solid #e5e5e5}.univer-version-list-panel-content{height:100%;overflow:auto}.univer-version-date{display:flex;padding:6px 0 6px 20px;align-items:center;gap:10px;align-self:stretch;color:var(---Black, #1e222b);font-family:PingFang SC;font-size:14px;font-style:normal;font-weight:500;line-height:normal}.univer-version-item{cursor:default;height:60px;display:flex;padding:6px 16px;flex-direction:column;justify-content:center;align-items:flex-start;align-self:stretch}.univer-version-item-header{height:24px;display:flex;justify-content:space-between;width:100%}.univer-version-item-header-expand{width:24px;height:24px;color:#4b4b4b;display:flex;align-items:center;justify-content:center}.univer-version-item-header-time{color:var(---Grey-500, #7a7a7a);font-family:PingFang SC;font-size:13px;font-style:normal;font-weight:400;line-height:normal;flex-grow:1;flex-shrink:1;display:flex;align-items:center}.univer-version-item-header-time-tag{border-radius:4px;border:1px solid #274fee;background:var(--hyacinth-blue-5008, rgba(39, 79, 238, .08));display:flex;height:20px;padding:0 6px;justify-content:center;align-items:center;color:#274fee;text-align:justify;font-size:12px;font-style:normal;font-weight:400;margin-left:8px}.univer-version-item-header-revert{width:24px;height:24px;color:#4b4b4b;border-radius:4px;display:flex;align-items:center;justify-content:center}.univer-version-item-header-revert:hover{background:var(--black-6, rgba(30, 34, 43, .06))}.univer-version-item-content{padding-left:26px;color:var(---Black, #1e222b);text-align:center;font-family:PingFang SC;font-size:13px;font-style:normal;font-weight:400;line-height:20px}.univer-version-item.univer-active{background:#1e222b17}.univer-history-view-header{border-bottom:1px solid #e5e5e5;cursor:default;height:50px;display:flex;align-items:center}.univer-history-view-header-back{flex:0,0,85px;margin-left:10px;height:32px;width:32px;border-radius:4px;display:flex;align-items:center;justify-content:center}.univer-history-view-header-back:hover{background:var(--black-6, rgba(30, 34, 43, .06))}.univer-history-view-header-back-text{margin-left:5px}.univer-history-view-header-revert{flex-grow:1;flex-shrink:1;display:flex;align-items:center;justify-content:center}@keyframes univer-loading-spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.univer-version-list-loading{width:100%;height:30px;display:flex;align-items:center;justify-content:center}.univer-version-list-loading-icon{animation:univer-loading-spin 1s linear infinite}
1
+ .univer-online-status-icon{display:flex;margin-right:8px;font-size:20px}.univer-online-status-title{font-size:14px;line-height:32px;color:rgb(var(--grey-600))}.univer-online-status.univer-online .univer-online-status-icon{color:rgb(var(--green-500))}.univer-online-status.univer-offline .univer-online-status-icon{color:rgb(var(--red-500))}.univer-version-list-panel{margin-left:-20px;margin-right:-20px;overflow:hidden}.univer-version-list-panel-content{border-top:1px solid #e5e5e5;height:100%;overflow:auto}.univer-version-date{display:flex;padding:6px 0 6px 20px;align-items:center;gap:10px;align-self:stretch;color:var(---Black, #1e222b);font-family:PingFang SC;font-size:14px;font-style:normal;font-weight:500;line-height:normal}.univer-version-item{cursor:default;height:60px;display:flex;padding:6px 16px;flex-direction:column;justify-content:center;align-items:flex-start;align-self:stretch}.univer-version-item-header{height:24px;display:flex;justify-content:space-between;width:100%}.univer-version-item-header-expand{width:24px;height:24px;color:#4b4b4b;display:flex;align-items:center;justify-content:center}.univer-version-item-header-time{color:var(---Grey-500, #7a7a7a);font-family:PingFang SC;font-size:13px;font-style:normal;font-weight:400;line-height:normal;flex-grow:1;flex-shrink:1;display:flex;align-items:center}.univer-version-item-header-time-tag{border-radius:4px;border:1px solid #274fee;background:var(--hyacinth-blue-5008, rgba(39, 79, 238, .08));display:flex;height:20px;padding:0 6px;justify-content:center;align-items:center;color:#274fee;text-align:justify;font-size:12px;font-style:normal;font-weight:400;margin-left:8px}.univer-version-item-header-revert{width:24px;height:24px;color:#4b4b4b;border-radius:4px;display:flex;align-items:center;justify-content:center}.univer-version-item-header-revert:hover{background:var(--black-6, rgba(30, 34, 43, .06))}.univer-version-item-content{padding-left:26px;color:var(---Black, #1e222b);text-align:center;font-family:PingFang SC;font-size:13px;font-style:normal;font-weight:400;line-height:20px}.univer-version-item.univer-active{background:#1e222b17}.univer-history-view-header{border-bottom:1px solid #e5e5e5;cursor:default;height:50px;display:flex;align-items:center}.univer-history-view-header-back{flex:0,0,85px;margin-left:10px;height:32px;width:32px;border-radius:4px;display:flex;align-items:center;justify-content:center}.univer-history-view-header-back:hover{background:var(--black-6, rgba(30, 34, 43, .06))}.univer-history-view-header-back-text{margin-left:5px}.univer-history-view-header-revert{flex-grow:1;flex-shrink:1;display:flex;align-items:center;justify-content:center}@keyframes univer-loading-spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.univer-version-list-loading{width:100%;height:30px;display:flex;align-items:center;justify-content:center}.univer-version-list-loading-icon{animation:univer-loading-spin 1s linear infinite}
@@ -1,6 +1,9 @@
1
1
  import { IPreset } from './types';
2
2
  import '@univerjs-pro/collaboration-client/lib/index.css';
3
3
  import '@univerjs-pro/edit-history-viewer/lib/index.css';
4
+ export * from '@univerjs-pro/collaboration';
5
+ export * from '@univerjs-pro/collaboration-client';
6
+ export * from '@univerjs-pro/edit-history-loader';
4
7
  export interface IUniverSheetsCollaborationPresetConfig {
5
8
  universerEndpoint?: string;
6
9
  /**
@@ -0,0 +1,2 @@
1
+ declare const _default: any;
2
+ export default _default;