@univerjs/preset-docs-advanced 1.0.0-alpha.8 → 1.0.0-beta.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 +4 -4
- package/lib/es/index.js +4 -4
- package/lib/index.css +44 -15
- package/lib/index.js +4 -4
- package/lib/types/preset.d.ts +2 -2
- package/package.json +13 -13
package/lib/cjs/index.js
CHANGED
|
@@ -7,6 +7,7 @@ let _univerjs_pro_exchange_client = require("@univerjs-pro/exchange-client");
|
|
|
7
7
|
let _univerjs_pro_license = require("@univerjs-pro/license");
|
|
8
8
|
require("@univerjs-pro/docs-formula/facade");
|
|
9
9
|
require("@univerjs-pro/exchange-client/facade");
|
|
10
|
+
require("@univerjs-pro/docs-exchange-client/facade");
|
|
10
11
|
|
|
11
12
|
//#region src/preset.ts
|
|
12
13
|
/**
|
|
@@ -16,8 +17,8 @@ function UniverDocsAdvancedPreset(config = {
|
|
|
16
17
|
license: "",
|
|
17
18
|
universerEndpoint: ""
|
|
18
19
|
}) {
|
|
19
|
-
const { license, universerEndpoint
|
|
20
|
-
const serverEndpoint = universerEndpoint
|
|
20
|
+
const { license, universerEndpoint } = config;
|
|
21
|
+
const serverEndpoint = universerEndpoint ?? `${window.location.protocol}//${window.location.host}`;
|
|
21
22
|
return { plugins: [
|
|
22
23
|
[_univerjs_pro_license.UniverLicensePlugin, { license }],
|
|
23
24
|
_univerjs_pro_docs_print.UniverDocsPrintPlugin,
|
|
@@ -29,8 +30,7 @@ function UniverDocsAdvancedPreset(config = {
|
|
|
29
30
|
signUrlServerUrl: `${serverEndpoint}/universer-api/file/{fileID}/sign-url`,
|
|
30
31
|
importServerUrl: `${serverEndpoint}/universer-api/exchange/{type}/import`,
|
|
31
32
|
exportServerUrl: `${serverEndpoint}/universer-api/exchange/{type}/export`,
|
|
32
|
-
downloadEndpointUrl: `${serverEndpoint}
|
|
33
|
-
options: exchangeClientOptions
|
|
33
|
+
downloadEndpointUrl: `${serverEndpoint}/`
|
|
34
34
|
}],
|
|
35
35
|
_univerjs_pro_docs_exchange_client.UniverDocsExchangeClientPlugin
|
|
36
36
|
].filter((v) => !!v) };
|
package/lib/es/index.js
CHANGED
|
@@ -6,6 +6,7 @@ import { UniverExchangeClientPlugin } from "@univerjs-pro/exchange-client";
|
|
|
6
6
|
import { UniverLicensePlugin } from "@univerjs-pro/license";
|
|
7
7
|
import "@univerjs-pro/docs-formula/facade";
|
|
8
8
|
import "@univerjs-pro/exchange-client/facade";
|
|
9
|
+
import "@univerjs-pro/docs-exchange-client/facade";
|
|
9
10
|
|
|
10
11
|
export * from "@univerjs-pro/docs-exchange-client"
|
|
11
12
|
|
|
@@ -23,8 +24,8 @@ function UniverDocsAdvancedPreset(config = {
|
|
|
23
24
|
license: "",
|
|
24
25
|
universerEndpoint: ""
|
|
25
26
|
}) {
|
|
26
|
-
const { license, universerEndpoint
|
|
27
|
-
const serverEndpoint = universerEndpoint
|
|
27
|
+
const { license, universerEndpoint } = config;
|
|
28
|
+
const serverEndpoint = universerEndpoint ?? `${window.location.protocol}//${window.location.host}`;
|
|
28
29
|
return { plugins: [
|
|
29
30
|
[UniverLicensePlugin, { license }],
|
|
30
31
|
UniverDocsPrintPlugin,
|
|
@@ -36,8 +37,7 @@ function UniverDocsAdvancedPreset(config = {
|
|
|
36
37
|
signUrlServerUrl: `${serverEndpoint}/universer-api/file/{fileID}/sign-url`,
|
|
37
38
|
importServerUrl: `${serverEndpoint}/universer-api/exchange/{type}/import`,
|
|
38
39
|
exportServerUrl: `${serverEndpoint}/universer-api/exchange/{type}/export`,
|
|
39
|
-
downloadEndpointUrl: `${serverEndpoint}
|
|
40
|
-
options: exchangeClientOptions
|
|
40
|
+
downloadEndpointUrl: `${serverEndpoint}/`
|
|
41
41
|
}],
|
|
42
42
|
UniverDocsExchangeClientPlugin
|
|
43
43
|
].filter((v) => !!v) };
|
package/lib/index.css
CHANGED
|
@@ -111,10 +111,6 @@
|
|
|
111
111
|
height: 1.25rem;
|
|
112
112
|
}
|
|
113
113
|
|
|
114
|
-
.univer-h-6 {
|
|
115
|
-
height: 1.5rem;
|
|
116
|
-
}
|
|
117
|
-
|
|
118
114
|
.univer-h-7 {
|
|
119
115
|
height: 1.75rem;
|
|
120
116
|
}
|
|
@@ -123,6 +119,14 @@
|
|
|
123
119
|
max-height: 18rem;
|
|
124
120
|
}
|
|
125
121
|
|
|
122
|
+
.univer-w-10 {
|
|
123
|
+
width: 2.5rem;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
.univer-w-48 {
|
|
127
|
+
width: 12rem;
|
|
128
|
+
}
|
|
129
|
+
|
|
126
130
|
.univer-w-\[324px\] {
|
|
127
131
|
width: 324px;
|
|
128
132
|
}
|
|
@@ -135,6 +139,20 @@
|
|
|
135
139
|
width: calc(100% - 48px);
|
|
136
140
|
}
|
|
137
141
|
|
|
142
|
+
.univer-shrink-0 {
|
|
143
|
+
flex-shrink: 0;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
@keyframes univer-spin {
|
|
147
|
+
to {
|
|
148
|
+
transform: rotate(360deg);
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
.univer-animate-spin {
|
|
153
|
+
animation: 1s linear infinite univer-spin;
|
|
154
|
+
}
|
|
155
|
+
|
|
138
156
|
.univer-cursor-pointer {
|
|
139
157
|
cursor: pointer;
|
|
140
158
|
}
|
|
@@ -155,6 +173,10 @@
|
|
|
155
173
|
align-items: center;
|
|
156
174
|
}
|
|
157
175
|
|
|
176
|
+
.univer-justify-end {
|
|
177
|
+
justify-content: flex-end;
|
|
178
|
+
}
|
|
179
|
+
|
|
158
180
|
.univer-justify-center {
|
|
159
181
|
justify-content: center;
|
|
160
182
|
}
|
|
@@ -167,6 +189,18 @@
|
|
|
167
189
|
gap: .5rem;
|
|
168
190
|
}
|
|
169
191
|
|
|
192
|
+
.univer-gap-3 {
|
|
193
|
+
gap: .75rem;
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
.univer-gap-4 {
|
|
197
|
+
gap: 1rem;
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
.univer-gap-5 {
|
|
201
|
+
gap: 1.25rem;
|
|
202
|
+
}
|
|
203
|
+
|
|
170
204
|
.univer-overflow-y-auto {
|
|
171
205
|
overflow-y: auto;
|
|
172
206
|
}
|
|
@@ -225,6 +259,10 @@
|
|
|
225
259
|
padding: 0;
|
|
226
260
|
}
|
|
227
261
|
|
|
262
|
+
.univer-p-1 {
|
|
263
|
+
padding: .25rem;
|
|
264
|
+
}
|
|
265
|
+
|
|
228
266
|
.univer-px-2 {
|
|
229
267
|
padding-left: .5rem;
|
|
230
268
|
padding-right: .5rem;
|
|
@@ -403,10 +441,7 @@
|
|
|
403
441
|
}
|
|
404
442
|
|
|
405
443
|
.univer-inset-0 {
|
|
406
|
-
|
|
407
|
-
bottom: 0;
|
|
408
|
-
left: 0;
|
|
409
|
-
right: 0;
|
|
444
|
+
inset: 0;
|
|
410
445
|
}
|
|
411
446
|
|
|
412
447
|
.univer-bottom-full {
|
|
@@ -784,7 +819,6 @@
|
|
|
784
819
|
}
|
|
785
820
|
|
|
786
821
|
.univer-appearance-none {
|
|
787
|
-
-webkit-appearance: none;
|
|
788
822
|
appearance: none;
|
|
789
823
|
}
|
|
790
824
|
|
|
@@ -1331,11 +1365,7 @@
|
|
|
1331
1365
|
color: var(--univer-gray-700);
|
|
1332
1366
|
}
|
|
1333
1367
|
|
|
1334
|
-
.hover\:univer-opacity-100:hover {
|
|
1335
|
-
opacity: 1;
|
|
1336
|
-
}
|
|
1337
|
-
|
|
1338
|
-
.focus-visible\:univer-opacity-100:focus-visible {
|
|
1368
|
+
.hover\:univer-opacity-100:hover, .focus-visible\:univer-opacity-100:focus-visible {
|
|
1339
1369
|
opacity: 1;
|
|
1340
1370
|
}
|
|
1341
1371
|
|
|
@@ -1463,7 +1493,6 @@
|
|
|
1463
1493
|
}
|
|
1464
1494
|
|
|
1465
1495
|
.\[\&\:\:-webkit-slider-thumb\]\:univer-appearance-none::-webkit-slider-thumb {
|
|
1466
|
-
-webkit-appearance: none;
|
|
1467
1496
|
appearance: none;
|
|
1468
1497
|
}
|
|
1469
1498
|
|
package/lib/index.js
CHANGED
|
@@ -6,6 +6,7 @@ import { UniverExchangeClientPlugin } from "@univerjs-pro/exchange-client";
|
|
|
6
6
|
import { UniverLicensePlugin } from "@univerjs-pro/license";
|
|
7
7
|
import "@univerjs-pro/docs-formula/facade";
|
|
8
8
|
import "@univerjs-pro/exchange-client/facade";
|
|
9
|
+
import "@univerjs-pro/docs-exchange-client/facade";
|
|
9
10
|
|
|
10
11
|
export * from "@univerjs-pro/docs-exchange-client"
|
|
11
12
|
|
|
@@ -23,8 +24,8 @@ function UniverDocsAdvancedPreset(config = {
|
|
|
23
24
|
license: "",
|
|
24
25
|
universerEndpoint: ""
|
|
25
26
|
}) {
|
|
26
|
-
const { license, universerEndpoint
|
|
27
|
-
const serverEndpoint = universerEndpoint
|
|
27
|
+
const { license, universerEndpoint } = config;
|
|
28
|
+
const serverEndpoint = universerEndpoint ?? `${window.location.protocol}//${window.location.host}`;
|
|
28
29
|
return { plugins: [
|
|
29
30
|
[UniverLicensePlugin, { license }],
|
|
30
31
|
UniverDocsPrintPlugin,
|
|
@@ -36,8 +37,7 @@ function UniverDocsAdvancedPreset(config = {
|
|
|
36
37
|
signUrlServerUrl: `${serverEndpoint}/universer-api/file/{fileID}/sign-url`,
|
|
37
38
|
importServerUrl: `${serverEndpoint}/universer-api/exchange/{type}/import`,
|
|
38
39
|
exportServerUrl: `${serverEndpoint}/universer-api/exchange/{type}/export`,
|
|
39
|
-
downloadEndpointUrl: `${serverEndpoint}
|
|
40
|
-
options: exchangeClientOptions
|
|
40
|
+
downloadEndpointUrl: `${serverEndpoint}/`
|
|
41
41
|
}],
|
|
42
42
|
UniverDocsExchangeClientPlugin
|
|
43
43
|
].filter((v) => !!v) };
|
package/lib/types/preset.d.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import type { IUniverExchangeClientOptions } from '@univerjs-pro/exchange-client';
|
|
2
1
|
import type { IPreset } from '@univerjs/presets';
|
|
3
2
|
import '@univerjs-pro/docs-formula/facade';
|
|
4
3
|
import '@univerjs-pro/exchange-client/facade';
|
|
4
|
+
import '@univerjs-pro/docs-exchange-client/facade';
|
|
5
|
+
export type * from '@univerjs-pro/docs-exchange-client/facade';
|
|
5
6
|
export type * from '@univerjs-pro/exchange-client/facade';
|
|
6
7
|
export interface IUniverDocsAdvancedPresetConfig {
|
|
7
8
|
universerEndpoint?: string;
|
|
8
9
|
license?: string;
|
|
9
10
|
useWorker?: boolean;
|
|
10
|
-
exchangeClientOptions?: IUniverExchangeClientOptions;
|
|
11
11
|
}
|
|
12
12
|
/**
|
|
13
13
|
* This presets helps you to create a Univer Docs with open sourced features.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs/preset-docs-advanced",
|
|
3
|
-
"version": "1.0.0-
|
|
3
|
+
"version": "1.0.0-beta.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Preset for advanced Univer Docs with print and exchange capabilities.",
|
|
6
6
|
"author": "DreamNum Co., Ltd. <developer@univer.ai>",
|
|
@@ -56,24 +56,24 @@
|
|
|
56
56
|
"rxjs": ">=7.0.0"
|
|
57
57
|
},
|
|
58
58
|
"dependencies": {
|
|
59
|
-
"@univerjs-pro/
|
|
60
|
-
"@univerjs-pro/
|
|
61
|
-
"@univerjs-pro/docs-formula": "1.0.0-
|
|
62
|
-
"@univerjs-pro/
|
|
63
|
-
"@univerjs-pro/docs-
|
|
64
|
-
"@univerjs-pro/
|
|
65
|
-
"@univerjs-pro/
|
|
66
|
-
"@univerjs-pro/print": "1.0.0-
|
|
67
|
-
"@univerjs-pro/shape-editor-ui": "1.0.0-
|
|
59
|
+
"@univerjs-pro/docs-formula": "1.0.0-beta.0",
|
|
60
|
+
"@univerjs-pro/collaboration": "1.0.0-beta.0",
|
|
61
|
+
"@univerjs-pro/docs-formula-ui": "1.0.0-beta.0",
|
|
62
|
+
"@univerjs-pro/docs-print": "1.0.0-beta.0",
|
|
63
|
+
"@univerjs-pro/docs-exchange-client": "1.0.0-beta.0",
|
|
64
|
+
"@univerjs-pro/exchange-client": "1.0.0-beta.0",
|
|
65
|
+
"@univerjs-pro/license": "1.0.0-beta.0",
|
|
66
|
+
"@univerjs-pro/print": "1.0.0-beta.0",
|
|
67
|
+
"@univerjs-pro/shape-editor-ui": "1.0.0-beta.0"
|
|
68
68
|
},
|
|
69
69
|
"devDependencies": {
|
|
70
70
|
"react": "18.3.1",
|
|
71
71
|
"react-dom": "18.3.1",
|
|
72
72
|
"rxjs": "^7.8.2",
|
|
73
73
|
"typescript": "^6.0.3",
|
|
74
|
-
"@univerjs
|
|
75
|
-
"@univerjs/
|
|
76
|
-
"@univerjs/
|
|
74
|
+
"@univerjs/presets": "1.0.0-beta.0",
|
|
75
|
+
"@univerjs-infra/shared": "1.0.0-beta.0",
|
|
76
|
+
"@univerjs/core": "1.0.0-beta.0"
|
|
77
77
|
},
|
|
78
78
|
"scripts": {
|
|
79
79
|
"build:bundle": "univer-cli preset build --cleanup",
|