@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 +1 -1
- package/lib/cjs/locales/fr-FR.js +1 -0
- package/lib/es/index.js +32 -17
- package/lib/es/locales/fr-FR.js +11 -0
- package/lib/index.css +1 -1
- package/lib/types/index.d.ts +3 -0
- package/lib/types/locales/fr-FR.d.ts +2 -0
- package/lib/umd/index.js +5 -5
- package/lib/umd/locales/en-US.js +2 -2
- package/lib/umd/locales/fa-IR.js +2 -2
- package/lib/umd/locales/fr-FR.js +8 -0
- package/lib/umd/locales/ru-RU.js +2 -2
- package/lib/umd/locales/vi-VN.js +2 -2
- package/lib/umd/locales/zh-CN.js +2 -2
- package/lib/umd/locales/zh-TW.js +2 -2
- package/package.json +11 -10
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("@univerjs-pro/collaboration"),
|
|
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
|
|
2
|
-
|
|
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
|
-
|
|
5
|
-
|
|
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
|
-
|
|
9
|
-
[
|
|
23
|
+
t,
|
|
24
|
+
[n, {
|
|
10
25
|
enableOfflineEditing: !0,
|
|
11
26
|
enableSingleActiveInstanceLock: !0,
|
|
12
27
|
enableAuthServer: !0,
|
|
13
|
-
authzUrl: `${
|
|
14
|
-
snapshotServerUrl: `${
|
|
15
|
-
collabSubmitChangesetUrl: `${
|
|
16
|
-
collabWebSocketUrl: `${
|
|
17
|
-
loginUrlKey: `${
|
|
18
|
-
uploadFileServerUrl: `${
|
|
19
|
-
signUrlServerUrl: `${
|
|
20
|
-
downloadEndpointUrl: `${
|
|
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:
|
|
25
|
-
historyListServerUrl: `${
|
|
39
|
+
univerContainerId: i,
|
|
40
|
+
historyListServerUrl: `${r}/universer-api/history`
|
|
26
41
|
}]
|
|
27
42
|
]
|
|
28
43
|
};
|
|
29
44
|
}
|
|
30
45
|
export {
|
|
31
|
-
|
|
46
|
+
c as UniverSheetsCollaborationPreset
|
|
32
47
|
};
|
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{
|
|
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}
|
package/lib/types/index.d.ts
CHANGED
|
@@ -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
|
/**
|