@univerjs/preset-docs-advanced 0.25.0 → 1.0.0-alpha.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.
Files changed (107) hide show
  1. package/README.md +3 -3
  2. package/lib/cjs/index.js +62 -1
  3. package/lib/cjs/locales/ar-SA.js +13 -1
  4. package/lib/cjs/locales/ca-ES.js +13 -1
  5. package/lib/cjs/locales/de-DE.js +13 -1
  6. package/lib/cjs/locales/en-US.js +13 -1
  7. package/lib/cjs/locales/es-ES.js +13 -1
  8. package/lib/cjs/locales/fa-IR.js +13 -1
  9. package/lib/cjs/locales/fr-FR.js +13 -1
  10. package/lib/cjs/locales/id-ID.js +13 -1
  11. package/lib/cjs/locales/it-IT.js +13 -1
  12. package/lib/cjs/locales/ja-JP.js +13 -1
  13. package/lib/cjs/locales/ko-KR.js +13 -1
  14. package/lib/cjs/locales/pl-PL.js +13 -1
  15. package/lib/cjs/locales/pt-BR.js +13 -1
  16. package/lib/cjs/locales/ru-RU.js +13 -1
  17. package/lib/cjs/locales/sk-SK.js +13 -1
  18. package/lib/cjs/locales/vi-VN.js +13 -1
  19. package/lib/cjs/locales/zh-CN.js +13 -1
  20. package/lib/cjs/locales/zh-HK.js +13 -1
  21. package/lib/cjs/locales/zh-TW.js +13 -1
  22. package/lib/cjs/rolldown-runtime-C_NdSu1c.js +34 -0
  23. package/lib/es/index.js +40 -36
  24. package/lib/es/locales/ar-SA.js +9 -12
  25. package/lib/es/locales/ca-ES.js +9 -12
  26. package/lib/es/locales/de-DE.js +9 -12
  27. package/lib/es/locales/en-US.js +9 -12
  28. package/lib/es/locales/es-ES.js +9 -12
  29. package/lib/es/locales/fa-IR.js +9 -12
  30. package/lib/es/locales/fr-FR.js +9 -12
  31. package/lib/es/locales/id-ID.js +9 -12
  32. package/lib/es/locales/it-IT.js +9 -12
  33. package/lib/es/locales/ja-JP.js +9 -12
  34. package/lib/es/locales/ko-KR.js +9 -12
  35. package/lib/es/locales/pl-PL.js +9 -12
  36. package/lib/es/locales/pt-BR.js +9 -12
  37. package/lib/es/locales/ru-RU.js +9 -12
  38. package/lib/es/locales/sk-SK.js +9 -12
  39. package/lib/es/locales/vi-VN.js +9 -12
  40. package/lib/es/locales/zh-CN.js +9 -12
  41. package/lib/es/locales/zh-HK.js +9 -12
  42. package/lib/es/locales/zh-TW.js +9 -12
  43. package/lib/index.css +353 -1
  44. package/lib/index.js +40 -36
  45. package/lib/locales/ar-SA.js +9 -12
  46. package/lib/locales/ca-ES.js +9 -12
  47. package/lib/locales/de-DE.js +9 -12
  48. package/lib/locales/en-US.js +9 -12
  49. package/lib/locales/es-ES.js +9 -12
  50. package/lib/locales/fa-IR.js +9 -12
  51. package/lib/locales/fr-FR.js +9 -12
  52. package/lib/locales/id-ID.js +9 -12
  53. package/lib/locales/it-IT.js +9 -12
  54. package/lib/locales/ja-JP.js +9 -12
  55. package/lib/locales/ko-KR.js +9 -12
  56. package/lib/locales/pl-PL.js +9 -12
  57. package/lib/locales/pt-BR.js +9 -12
  58. package/lib/locales/ru-RU.js +9 -12
  59. package/lib/locales/sk-SK.js +9 -12
  60. package/lib/locales/vi-VN.js +9 -12
  61. package/lib/locales/zh-CN.js +9 -12
  62. package/lib/locales/zh-HK.js +9 -12
  63. package/lib/locales/zh-TW.js +9 -12
  64. package/lib/types/index.d.ts +1 -1
  65. package/lib/types/locales/ar-SA.d.ts +26 -1
  66. package/lib/types/locales/ca-ES.d.ts +26 -1
  67. package/lib/types/locales/de-DE.d.ts +26 -1
  68. package/lib/types/locales/en-US.d.ts +26 -1
  69. package/lib/types/locales/es-ES.d.ts +26 -1
  70. package/lib/types/locales/fa-IR.d.ts +26 -1
  71. package/lib/types/locales/fr-FR.d.ts +26 -1
  72. package/lib/types/locales/id-ID.d.ts +26 -1
  73. package/lib/types/locales/it-IT.d.ts +26 -1
  74. package/lib/types/locales/ja-JP.d.ts +26 -1
  75. package/lib/types/locales/ko-KR.d.ts +26 -1
  76. package/lib/types/locales/pl-PL.d.ts +26 -1
  77. package/lib/types/locales/pt-BR.d.ts +26 -1
  78. package/lib/types/locales/ru-RU.d.ts +26 -1
  79. package/lib/types/locales/sk-SK.d.ts +26 -1
  80. package/lib/types/locales/vi-VN.d.ts +26 -1
  81. package/lib/types/locales/zh-CN.d.ts +26 -1
  82. package/lib/types/locales/zh-HK.d.ts +26 -1
  83. package/lib/types/locales/zh-TW.d.ts +26 -1
  84. package/lib/types/{umd.d.ts → preset.d.ts} +4 -5
  85. package/package.json +20 -23
  86. package/LICENSE +0 -176
  87. package/lib/types/types.d.ts +0 -11
  88. package/lib/umd/index.js +0 -23
  89. package/lib/umd/locales/ar-SA.js +0 -11
  90. package/lib/umd/locales/ca-ES.js +0 -11
  91. package/lib/umd/locales/de-DE.js +0 -11
  92. package/lib/umd/locales/en-US.js +0 -11
  93. package/lib/umd/locales/es-ES.js +0 -11
  94. package/lib/umd/locales/fa-IR.js +0 -11
  95. package/lib/umd/locales/fr-FR.js +0 -11
  96. package/lib/umd/locales/id-ID.js +0 -11
  97. package/lib/umd/locales/it-IT.js +0 -11
  98. package/lib/umd/locales/ja-JP.js +0 -11
  99. package/lib/umd/locales/ko-KR.js +0 -11
  100. package/lib/umd/locales/pl-PL.js +0 -11
  101. package/lib/umd/locales/pt-BR.js +0 -11
  102. package/lib/umd/locales/ru-RU.js +0 -11
  103. package/lib/umd/locales/sk-SK.js +0 -11
  104. package/lib/umd/locales/vi-VN.js +0 -11
  105. package/lib/umd/locales/zh-CN.js +0 -11
  106. package/lib/umd/locales/zh-HK.js +0 -11
  107. package/lib/umd/locales/zh-TW.js +0 -11
package/lib/index.css CHANGED
@@ -1 +1,353 @@
1
- .univer-fixed{position:fixed}.univer-bottom-12{bottom:3rem}.univer-right-3{right:.75rem}.univer-z-\[1000\]{z-index:1000}.univer-m-0{margin:0}.univer-mx-0{margin-left:0;margin-right:0}.univer-mb-3{margin-bottom:.75rem}.univer-ml-1{margin-left:.25rem}.univer-ml-1\.5{margin-left:.375rem}.univer-mt-3{margin-top:.75rem}.univer-mt-4{margin-top:1rem}.univer-mt-5{margin-top:1.25rem}.univer-box-border{box-sizing:border-box}.univer-flex{display:flex}.univer-size-6{width:1.5rem;height:1.5rem}.univer-h-1\.5{height:.375rem}.univer-h-5{height:1.25rem}.univer-h-6{height:1.5rem}.univer-h-7{height:1.75rem}.univer-max-h-72{max-height:18rem}.univer-w-\[324px\]{width:324px}.univer-w-\[372px\]{width:372px}.univer-w-\[calc\(100\%-48px\)\]{width:calc(100% - 48px)}.univer-cursor-pointer{cursor:pointer}.univer-select-none{user-select:none}.univer-list-none{list-style-type:none}.univer-flex-col{flex-direction:column}.univer-items-center{align-items:center}.univer-justify-center{justify-content:center}.univer-justify-between{justify-content:space-between}.univer-gap-2{gap:.5rem}.univer-overflow-y-auto{overflow-y:auto}.univer-overflow-x-hidden{overflow-x:hidden}.univer-truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.univer-rounded{border-radius:.25rem}.univer-rounded-lg{border-radius:.5rem}.univer-rounded-md{border-radius:.375rem}.univer-border-0{border-width:0}.univer-border-none{border-style:none}.univer-border-transparent{border-color:#0000}.univer-bg-gray-200{background-color:var(--univer-gray-200)}.univer-bg-primary-600{background-color:var(--univer-primary-600)}.univer-bg-transparent{background-color:#0000}.univer-bg-white{background-color:var(--univer-white)}.univer-p-0{padding:0}.univer-px-2{padding-left:.5rem;padding-right:.5rem}.univer-px-3{padding-left:.75rem;padding-right:.75rem}.univer-py-0{padding-top:0;padding-bottom:0}.univer-py-1{padding-top:.25rem;padding-bottom:.25rem}.univer-pb-4{padding-bottom:1rem}.univer-pl-1\.5{padding-left:.375rem}.univer-pl-2{padding-left:.5rem}.univer-pr-1{padding-right:.25rem}.univer-pr-2{padding-right:.5rem}.univer-pr-4{padding-right:1rem}.univer-pt-5{padding-top:1.25rem}.univer-text-2xl{font-size:1.5rem;line-height:2rem}.univer-text-base{font-size:1rem;line-height:1.5rem}.univer-text-sm{font-size:.875rem;line-height:1.25rem}.univer-text-xl{font-size:1.25rem;line-height:1.75rem}.univer-font-semibold{font-weight:600}.univer-leading-6{line-height:1.5rem}.univer-text-blue-500{color:var(--univer-blue-500)}.univer-text-gray-500{color:var(--univer-gray-500)}.univer-text-gray-600{color:var(--univer-gray-600)}.univer-text-gray-900{color:var(--univer-gray-900)}.univer-text-green-500{color:var(--univer-green-500)}.univer-text-primary-600{color:var(--univer-primary-600)}.univer-text-red-500{color:var(--univer-red-500)}.univer-no-underline{text-decoration-line:none}.univer-shadow-md{--univer-tw-shadow: 0px 1px 6px -2px #1e284d14, 0px 2px 6px -1px #1e284d1a;--univer-tw-shadow-colored: 0px 1px 6px -2px var(--univer-tw-shadow-color), 0px 2px 6px -1px var(--univer-tw-shadow-color);box-shadow:0 0 #0000,0 0 #0000,0 1px 6px -2px #1e284d14,0 2px 6px -1px #1e284d1a;box-shadow:var(--univer-tw-ring-offset-shadow, 0 0 #0000),var(--univer-tw-ring-shadow, 0 0 #0000),var(--univer-tw-shadow)}.univer-outline-none{outline-offset:2px;outline:2px solid #0000}.univer-transition-\[width\]{transition-property:width;transition-duration:.15s;transition-timing-function:cubic-bezier(.4,0,.2,1)}.univer-transition-all{transition-property:all;transition-duration:.15s;transition-timing-function:cubic-bezier(.4,0,.2,1)}.univer-transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-duration:.15s;transition-timing-function:cubic-bezier(.4,0,.2,1)}.univer-duration-150{transition-duration:.15s}.univer-duration-500{transition-duration:.5s}.hover\:univer-bg-gray-200:hover{background-color:var(--univer-gray-200)}.hover\:univer-bg-primary-50:hover{background-color:var(--univer-primary-50)}.dark\:\!univer-bg-gray-600:where(.univer-dark,.univer-dark *){background-color:var(--univer-gray-600)!important}.dark\:\!univer-text-gray-200:where(.univer-dark,.univer-dark *){color:var(--univer-gray-200)!important}.dark\:\!univer-text-white:where(.univer-dark,.univer-dark *){color:var(--univer-white)!important}.dark\:hover\:\!univer-bg-gray-600:hover:where(.univer-dark,.univer-dark *){background-color:var(--univer-gray-600)!important}
1
+ .univer-fixed {
2
+ position: fixed;
3
+ }
4
+
5
+ .univer-bottom-12 {
6
+ bottom: 3rem;
7
+ }
8
+
9
+ .univer-right-3 {
10
+ right: .75rem;
11
+ }
12
+
13
+ .univer-z-\[1000\] {
14
+ z-index: 1000;
15
+ }
16
+
17
+ .univer-m-0 {
18
+ margin: 0;
19
+ }
20
+
21
+ .univer-mx-0 {
22
+ margin-left: 0;
23
+ margin-right: 0;
24
+ }
25
+
26
+ .univer-mb-3 {
27
+ margin-bottom: .75rem;
28
+ }
29
+
30
+ .univer-ml-1 {
31
+ margin-left: .25rem;
32
+ }
33
+
34
+ .univer-ml-1\.5 {
35
+ margin-left: .375rem;
36
+ }
37
+
38
+ .univer-mt-3 {
39
+ margin-top: .75rem;
40
+ }
41
+
42
+ .univer-mt-4 {
43
+ margin-top: 1rem;
44
+ }
45
+
46
+ .univer-mt-5 {
47
+ margin-top: 1.25rem;
48
+ }
49
+
50
+ .univer-box-border {
51
+ box-sizing: border-box;
52
+ }
53
+
54
+ .univer-flex {
55
+ display: flex;
56
+ }
57
+
58
+ .univer-size-6 {
59
+ width: 1.5rem;
60
+ height: 1.5rem;
61
+ }
62
+
63
+ .univer-h-1\.5 {
64
+ height: .375rem;
65
+ }
66
+
67
+ .univer-h-5 {
68
+ height: 1.25rem;
69
+ }
70
+
71
+ .univer-h-6 {
72
+ height: 1.5rem;
73
+ }
74
+
75
+ .univer-h-7 {
76
+ height: 1.75rem;
77
+ }
78
+
79
+ .univer-max-h-72 {
80
+ max-height: 18rem;
81
+ }
82
+
83
+ .univer-w-\[324px\] {
84
+ width: 324px;
85
+ }
86
+
87
+ .univer-w-\[372px\] {
88
+ width: 372px;
89
+ }
90
+
91
+ .univer-w-\[calc\(100\%-48px\)\] {
92
+ width: calc(100% - 48px);
93
+ }
94
+
95
+ .univer-cursor-pointer {
96
+ cursor: pointer;
97
+ }
98
+
99
+ .univer-select-none {
100
+ user-select: none;
101
+ }
102
+
103
+ .univer-list-none {
104
+ list-style-type: none;
105
+ }
106
+
107
+ .univer-flex-col {
108
+ flex-direction: column;
109
+ }
110
+
111
+ .univer-items-center {
112
+ align-items: center;
113
+ }
114
+
115
+ .univer-justify-center {
116
+ justify-content: center;
117
+ }
118
+
119
+ .univer-justify-between {
120
+ justify-content: space-between;
121
+ }
122
+
123
+ .univer-gap-2 {
124
+ gap: .5rem;
125
+ }
126
+
127
+ .univer-overflow-y-auto {
128
+ overflow-y: auto;
129
+ }
130
+
131
+ .univer-overflow-x-hidden {
132
+ overflow-x: hidden;
133
+ }
134
+
135
+ .univer-truncate {
136
+ text-overflow: ellipsis;
137
+ white-space: nowrap;
138
+ overflow: hidden;
139
+ }
140
+
141
+ .univer-rounded {
142
+ border-radius: .25rem;
143
+ }
144
+
145
+ .univer-rounded-lg {
146
+ border-radius: .5rem;
147
+ }
148
+
149
+ .univer-rounded-md {
150
+ border-radius: .375rem;
151
+ }
152
+
153
+ .univer-border-0 {
154
+ border-width: 0;
155
+ }
156
+
157
+ .univer-border-none {
158
+ border-style: none;
159
+ }
160
+
161
+ .univer-border-transparent {
162
+ border-color: #0000;
163
+ }
164
+
165
+ .univer-bg-gray-200 {
166
+ background-color: var(--univer-gray-200);
167
+ }
168
+
169
+ .univer-bg-primary-600 {
170
+ background-color: var(--univer-primary-600);
171
+ }
172
+
173
+ .univer-bg-transparent {
174
+ background-color: #0000;
175
+ }
176
+
177
+ .univer-bg-white {
178
+ background-color: var(--univer-white);
179
+ }
180
+
181
+ .univer-p-0 {
182
+ padding: 0;
183
+ }
184
+
185
+ .univer-px-2 {
186
+ padding-left: .5rem;
187
+ padding-right: .5rem;
188
+ }
189
+
190
+ .univer-px-3 {
191
+ padding-left: .75rem;
192
+ padding-right: .75rem;
193
+ }
194
+
195
+ .univer-py-0 {
196
+ padding-top: 0;
197
+ padding-bottom: 0;
198
+ }
199
+
200
+ .univer-py-1 {
201
+ padding-top: .25rem;
202
+ padding-bottom: .25rem;
203
+ }
204
+
205
+ .univer-pb-4 {
206
+ padding-bottom: 1rem;
207
+ }
208
+
209
+ .univer-pl-1\.5 {
210
+ padding-left: .375rem;
211
+ }
212
+
213
+ .univer-pl-2 {
214
+ padding-left: .5rem;
215
+ }
216
+
217
+ .univer-pr-1 {
218
+ padding-right: .25rem;
219
+ }
220
+
221
+ .univer-pr-2 {
222
+ padding-right: .5rem;
223
+ }
224
+
225
+ .univer-pr-4 {
226
+ padding-right: 1rem;
227
+ }
228
+
229
+ .univer-pt-5 {
230
+ padding-top: 1.25rem;
231
+ }
232
+
233
+ .univer-text-2xl {
234
+ font-size: 1.5rem;
235
+ line-height: 2rem;
236
+ }
237
+
238
+ .univer-text-base {
239
+ font-size: 1rem;
240
+ line-height: 1.5rem;
241
+ }
242
+
243
+ .univer-text-sm {
244
+ font-size: .875rem;
245
+ line-height: 1.25rem;
246
+ }
247
+
248
+ .univer-text-xl {
249
+ font-size: 1.25rem;
250
+ line-height: 1.75rem;
251
+ }
252
+
253
+ .univer-font-semibold {
254
+ font-weight: 600;
255
+ }
256
+
257
+ .univer-leading-6 {
258
+ line-height: 1.5rem;
259
+ }
260
+
261
+ .univer-text-blue-500 {
262
+ color: var(--univer-blue-500);
263
+ }
264
+
265
+ .univer-text-gray-500 {
266
+ color: var(--univer-gray-500);
267
+ }
268
+
269
+ .univer-text-gray-600 {
270
+ color: var(--univer-gray-600);
271
+ }
272
+
273
+ .univer-text-gray-900 {
274
+ color: var(--univer-gray-900);
275
+ }
276
+
277
+ .univer-text-green-500 {
278
+ color: var(--univer-green-500);
279
+ }
280
+
281
+ .univer-text-primary-600 {
282
+ color: var(--univer-primary-600);
283
+ }
284
+
285
+ .univer-text-red-500 {
286
+ color: var(--univer-red-500);
287
+ }
288
+
289
+ .univer-no-underline {
290
+ text-decoration-line: none;
291
+ }
292
+
293
+ .univer-shadow-md {
294
+ --univer-tw-shadow: 0px 1px 6px -2px #1e284d14, 0px 2px 6px -1px #1e284d1a;
295
+ --univer-tw-shadow-colored: 0px 1px 6px -2px var(--univer-tw-shadow-color), 0px 2px 6px -1px var(--univer-tw-shadow-color);
296
+ box-shadow: 0 0 #0000, 0 0 #0000, 0 1px 6px -2px #1e284d14, 0 2px 6px -1px #1e284d1a;
297
+ box-shadow: var(--univer-tw-ring-offset-shadow, 0 0 #0000), var(--univer-tw-ring-shadow, 0 0 #0000), var(--univer-tw-shadow);
298
+ }
299
+
300
+ .univer-outline-none {
301
+ outline-offset: 2px;
302
+ outline: 2px solid #0000;
303
+ }
304
+
305
+ .univer-transition-\[width\] {
306
+ transition-property: width;
307
+ transition-duration: .15s;
308
+ transition-timing-function: cubic-bezier(.4, 0, .2, 1);
309
+ }
310
+
311
+ .univer-transition-all {
312
+ transition-property: all;
313
+ transition-duration: .15s;
314
+ transition-timing-function: cubic-bezier(.4, 0, .2, 1);
315
+ }
316
+
317
+ .univer-transition-colors {
318
+ transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
319
+ transition-duration: .15s;
320
+ transition-timing-function: cubic-bezier(.4, 0, .2, 1);
321
+ }
322
+
323
+ .univer-duration-150 {
324
+ transition-duration: .15s;
325
+ }
326
+
327
+ .univer-duration-500 {
328
+ transition-duration: .5s;
329
+ }
330
+
331
+ .hover\:univer-bg-gray-200:hover {
332
+ background-color: var(--univer-gray-200);
333
+ }
334
+
335
+ .hover\:univer-bg-primary-50:hover {
336
+ background-color: var(--univer-primary-50);
337
+ }
338
+
339
+ .dark\:\!univer-bg-gray-600:where(.univer-dark, .univer-dark *) {
340
+ background-color: var(--univer-gray-600) !important;
341
+ }
342
+
343
+ .dark\:\!univer-text-gray-200:where(.univer-dark, .univer-dark *) {
344
+ color: var(--univer-gray-200) !important;
345
+ }
346
+
347
+ .dark\:\!univer-text-white:where(.univer-dark, .univer-dark *) {
348
+ color: var(--univer-white) !important;
349
+ }
350
+
351
+ .dark\:hover\:\!univer-bg-gray-600:hover:where(.univer-dark, .univer-dark *) {
352
+ background-color: var(--univer-gray-600) !important;
353
+ }
package/lib/index.js CHANGED
@@ -1,38 +1,42 @@
1
- import { UniverDocsExchangeClientPlugin as l } from "@univerjs-pro/docs-exchange-client";
2
- export * from "@univerjs-pro/docs-exchange-client";
3
- import { UniverDocsPrintPlugin as p } from "@univerjs-pro/docs-print";
4
- export * from "@univerjs-pro/docs-print";
5
- import { UniverExchangeClientPlugin as s } from "@univerjs-pro/exchange-client";
6
- export * from "@univerjs-pro/exchange-client";
7
- import { UniverLicensePlugin as a } from "@univerjs-pro/license";
8
- export * from "@univerjs-pro/license";
9
- import "@univerjs-pro/exchange-client/lib/facade";
10
- function f(i = {
11
- license: "",
12
- universerEndpoint: ""
1
+ import { UniverDocsExchangeClientPlugin } from "@univerjs-pro/docs-exchange-client";
2
+ import { UniverDocsPrintPlugin } from "@univerjs-pro/docs-print";
3
+ import { UniverExchangeClientPlugin } from "@univerjs-pro/exchange-client";
4
+ import { UniverLicensePlugin } from "@univerjs-pro/license";
5
+ import "@univerjs-pro/exchange-client/facade";
6
+
7
+ export * from "@univerjs-pro/docs-exchange-client"
8
+
9
+ export * from "@univerjs-pro/docs-print"
10
+
11
+ export * from "@univerjs-pro/exchange-client"
12
+
13
+ export * from "@univerjs-pro/license"
14
+
15
+ //#region src/preset.ts
16
+ /**
17
+ * This presets helps you to create a Univer Docs with open sourced features.
18
+ */
19
+ function UniverDocsAdvancedPreset(config = {
20
+ license: "",
21
+ universerEndpoint: ""
13
22
  }) {
14
- const {
15
- license: n,
16
- universerEndpoint: r,
17
- exchangeClientOptions: o
18
- } = i, e = r != null ? r : `${window.location.protocol}//${window.location.host}`;
19
- return {
20
- plugins: [
21
- [a, { license: n }],
22
- p,
23
- [s, {
24
- uploadFileServerUrl: `${e}/universer-api/stream/file/upload`,
25
- getTaskServerUrl: `${e}/universer-api/exchange/task/{taskID}`,
26
- signUrlServerUrl: `${e}/universer-api/file/{fileID}/sign-url`,
27
- importServerUrl: `${e}/universer-api/exchange/{type}/import`,
28
- exportServerUrl: `${e}/universer-api/exchange/{type}/export`,
29
- downloadEndpointUrl: `${e}/`,
30
- options: o
31
- }],
32
- l
33
- ].filter((t) => !!t)
34
- };
23
+ const { license, universerEndpoint, exchangeClientOptions } = config;
24
+ const serverEndpoint = universerEndpoint !== null && universerEndpoint !== void 0 ? universerEndpoint : `${window.location.protocol}//${window.location.host}`;
25
+ return { plugins: [
26
+ [UniverLicensePlugin, { license }],
27
+ UniverDocsPrintPlugin,
28
+ [UniverExchangeClientPlugin, {
29
+ uploadFileServerUrl: `${serverEndpoint}/universer-api/stream/file/upload`,
30
+ getTaskServerUrl: `${serverEndpoint}/universer-api/exchange/task/{taskID}`,
31
+ signUrlServerUrl: `${serverEndpoint}/universer-api/file/{fileID}/sign-url`,
32
+ importServerUrl: `${serverEndpoint}/universer-api/exchange/{type}/import`,
33
+ exportServerUrl: `${serverEndpoint}/universer-api/exchange/{type}/export`,
34
+ downloadEndpointUrl: `${serverEndpoint}/`,
35
+ options: exchangeClientOptions
36
+ }],
37
+ UniverDocsExchangeClientPlugin
38
+ ].filter((v) => !!v) };
35
39
  }
36
- export {
37
- f as UniverDocsAdvancedPreset
38
- };
40
+
41
+ //#endregion
42
+ export { UniverDocsAdvancedPreset };
@@ -1,12 +1,9 @@
1
- import { mergeLocales as r } from "@univerjs/core";
2
- import e from "@univerjs-pro/docs-exchange-client/locale/ar-SA";
3
- import o from "@univerjs-pro/docs-print/locale/ar-SA";
4
- import i from "@univerjs-pro/exchange-client/locale/ar-SA";
5
- const s = r(
6
- e,
7
- o,
8
- i
9
- );
10
- export {
11
- s as default
12
- };
1
+ import univerjsdocsexchangeclient from "@univerjs-pro/docs-exchange-client/locale/ar-SA";
2
+ import univerjsdocsprint from "@univerjs-pro/docs-print/locale/ar-SA";
3
+ import univerjsexchangeclient from "@univerjs-pro/exchange-client/locale/ar-SA";
4
+
5
+ //#region src/locales/ar-SA.ts
6
+ var ar_SA_default = Object.assign({}, univerjsdocsexchangeclient, univerjsdocsprint, univerjsexchangeclient);
7
+
8
+ //#endregion
9
+ export { ar_SA_default as default };
@@ -1,12 +1,9 @@
1
- import { mergeLocales as e } from "@univerjs/core";
2
- import r from "@univerjs-pro/docs-exchange-client/locale/ca-ES";
3
- import o from "@univerjs-pro/docs-print/locale/ca-ES";
4
- import i from "@univerjs-pro/exchange-client/locale/ca-ES";
5
- const s = e(
6
- r,
7
- o,
8
- i
9
- );
10
- export {
11
- s as default
12
- };
1
+ import univerjsdocsexchangeclient from "@univerjs-pro/docs-exchange-client/locale/ca-ES";
2
+ import univerjsdocsprint from "@univerjs-pro/docs-print/locale/ca-ES";
3
+ import univerjsexchangeclient from "@univerjs-pro/exchange-client/locale/ca-ES";
4
+
5
+ //#region src/locales/ca-ES.ts
6
+ var ca_ES_default = Object.assign({}, univerjsdocsexchangeclient, univerjsdocsprint, univerjsexchangeclient);
7
+
8
+ //#endregion
9
+ export { ca_ES_default as default };
@@ -1,12 +1,9 @@
1
- import { mergeLocales as e } from "@univerjs/core";
2
- import r from "@univerjs-pro/docs-exchange-client/locale/de-DE";
3
- import o from "@univerjs-pro/docs-print/locale/de-DE";
4
- import i from "@univerjs-pro/exchange-client/locale/de-DE";
5
- const s = e(
6
- r,
7
- o,
8
- i
9
- );
10
- export {
11
- s as default
12
- };
1
+ import univerjsdocsexchangeclient from "@univerjs-pro/docs-exchange-client/locale/de-DE";
2
+ import univerjsdocsprint from "@univerjs-pro/docs-print/locale/de-DE";
3
+ import univerjsexchangeclient from "@univerjs-pro/exchange-client/locale/de-DE";
4
+
5
+ //#region src/locales/de-DE.ts
6
+ var de_DE_default = Object.assign({}, univerjsdocsexchangeclient, univerjsdocsprint, univerjsexchangeclient);
7
+
8
+ //#endregion
9
+ export { de_DE_default as default };
@@ -1,12 +1,9 @@
1
- import { mergeLocales as e } from "@univerjs/core";
2
- import r from "@univerjs-pro/docs-exchange-client/locale/en-US";
3
- import o from "@univerjs-pro/docs-print/locale/en-US";
4
- import i from "@univerjs-pro/exchange-client/locale/en-US";
5
- const s = e(
6
- r,
7
- o,
8
- i
9
- );
10
- export {
11
- s as default
12
- };
1
+ import univerjsdocsexchangeclient from "@univerjs-pro/docs-exchange-client/locale/en-US";
2
+ import univerjsdocsprint from "@univerjs-pro/docs-print/locale/en-US";
3
+ import univerjsexchangeclient from "@univerjs-pro/exchange-client/locale/en-US";
4
+
5
+ //#region src/locales/en-US.ts
6
+ var en_US_default = Object.assign({}, univerjsdocsexchangeclient, univerjsdocsprint, univerjsexchangeclient);
7
+
8
+ //#endregion
9
+ export { en_US_default as default };
@@ -1,12 +1,9 @@
1
- import { mergeLocales as e } from "@univerjs/core";
2
- import r from "@univerjs-pro/docs-exchange-client/locale/es-ES";
3
- import o from "@univerjs-pro/docs-print/locale/es-ES";
4
- import i from "@univerjs-pro/exchange-client/locale/es-ES";
5
- const c = e(
6
- r,
7
- o,
8
- i
9
- );
10
- export {
11
- c as default
12
- };
1
+ import univerjsdocsexchangeclient from "@univerjs-pro/docs-exchange-client/locale/es-ES";
2
+ import univerjsdocsprint from "@univerjs-pro/docs-print/locale/es-ES";
3
+ import univerjsexchangeclient from "@univerjs-pro/exchange-client/locale/es-ES";
4
+
5
+ //#region src/locales/es-ES.ts
6
+ var es_ES_default = Object.assign({}, univerjsdocsexchangeclient, univerjsdocsprint, univerjsexchangeclient);
7
+
8
+ //#endregion
9
+ export { es_ES_default as default };
@@ -1,12 +1,9 @@
1
- import { mergeLocales as e } from "@univerjs/core";
2
- import r from "@univerjs-pro/docs-exchange-client/locale/fa-IR";
3
- import o from "@univerjs-pro/docs-print/locale/fa-IR";
4
- import i from "@univerjs-pro/exchange-client/locale/fa-IR";
5
- const s = e(
6
- r,
7
- o,
8
- i
9
- );
10
- export {
11
- s as default
12
- };
1
+ import univerjsdocsexchangeclient from "@univerjs-pro/docs-exchange-client/locale/fa-IR";
2
+ import univerjsdocsprint from "@univerjs-pro/docs-print/locale/fa-IR";
3
+ import univerjsexchangeclient from "@univerjs-pro/exchange-client/locale/fa-IR";
4
+
5
+ //#region src/locales/fa-IR.ts
6
+ var fa_IR_default = Object.assign({}, univerjsdocsexchangeclient, univerjsdocsprint, univerjsexchangeclient);
7
+
8
+ //#endregion
9
+ export { fa_IR_default as default };
@@ -1,12 +1,9 @@
1
- import { mergeLocales as r } from "@univerjs/core";
2
- import e from "@univerjs-pro/docs-exchange-client/locale/fr-FR";
3
- import o from "@univerjs-pro/docs-print/locale/fr-FR";
4
- import i from "@univerjs-pro/exchange-client/locale/fr-FR";
5
- const s = r(
6
- e,
7
- o,
8
- i
9
- );
10
- export {
11
- s as default
12
- };
1
+ import univerjsdocsexchangeclient from "@univerjs-pro/docs-exchange-client/locale/fr-FR";
2
+ import univerjsdocsprint from "@univerjs-pro/docs-print/locale/fr-FR";
3
+ import univerjsexchangeclient from "@univerjs-pro/exchange-client/locale/fr-FR";
4
+
5
+ //#region src/locales/fr-FR.ts
6
+ var fr_FR_default = Object.assign({}, univerjsdocsexchangeclient, univerjsdocsprint, univerjsexchangeclient);
7
+
8
+ //#endregion
9
+ export { fr_FR_default as default };
@@ -1,12 +1,9 @@
1
- import { mergeLocales as e } from "@univerjs/core";
2
- import r from "@univerjs-pro/docs-exchange-client/locale/id-ID";
3
- import o from "@univerjs-pro/docs-print/locale/id-ID";
4
- import i from "@univerjs-pro/exchange-client/locale/id-ID";
5
- const s = e(
6
- r,
7
- o,
8
- i
9
- );
10
- export {
11
- s as default
12
- };
1
+ import univerjsdocsexchangeclient from "@univerjs-pro/docs-exchange-client/locale/id-ID";
2
+ import univerjsdocsprint from "@univerjs-pro/docs-print/locale/id-ID";
3
+ import univerjsexchangeclient from "@univerjs-pro/exchange-client/locale/id-ID";
4
+
5
+ //#region src/locales/id-ID.ts
6
+ var id_ID_default = Object.assign({}, univerjsdocsexchangeclient, univerjsdocsprint, univerjsexchangeclient);
7
+
8
+ //#endregion
9
+ export { id_ID_default as default };
@@ -1,12 +1,9 @@
1
- import { mergeLocales as e } from "@univerjs/core";
2
- import r from "@univerjs-pro/docs-exchange-client/locale/it-IT";
3
- import o from "@univerjs-pro/docs-print/locale/it-IT";
4
- import i from "@univerjs-pro/exchange-client/locale/it-IT";
5
- const s = e(
6
- r,
7
- o,
8
- i
9
- );
10
- export {
11
- s as default
12
- };
1
+ import univerjsdocsexchangeclient from "@univerjs-pro/docs-exchange-client/locale/it-IT";
2
+ import univerjsdocsprint from "@univerjs-pro/docs-print/locale/it-IT";
3
+ import univerjsexchangeclient from "@univerjs-pro/exchange-client/locale/it-IT";
4
+
5
+ //#region src/locales/it-IT.ts
6
+ var it_IT_default = Object.assign({}, univerjsdocsexchangeclient, univerjsdocsprint, univerjsexchangeclient);
7
+
8
+ //#endregion
9
+ export { it_IT_default as default };
@@ -1,12 +1,9 @@
1
- import { mergeLocales as e } from "@univerjs/core";
2
- import r from "@univerjs-pro/docs-exchange-client/locale/ja-JP";
3
- import o from "@univerjs-pro/docs-print/locale/ja-JP";
4
- import i from "@univerjs-pro/exchange-client/locale/ja-JP";
5
- const s = e(
6
- r,
7
- o,
8
- i
9
- );
10
- export {
11
- s as default
12
- };
1
+ import univerjsdocsexchangeclient from "@univerjs-pro/docs-exchange-client/locale/ja-JP";
2
+ import univerjsdocsprint from "@univerjs-pro/docs-print/locale/ja-JP";
3
+ import univerjsexchangeclient from "@univerjs-pro/exchange-client/locale/ja-JP";
4
+
5
+ //#region src/locales/ja-JP.ts
6
+ var ja_JP_default = Object.assign({}, univerjsdocsexchangeclient, univerjsdocsprint, univerjsexchangeclient);
7
+
8
+ //#endregion
9
+ export { ja_JP_default as default };