@univerjs/preset-docs-thread-comment 1.4.0 → 1.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/README.md CHANGED
@@ -8,9 +8,9 @@
8
8
 
9
9
  ## Package Overview
10
10
 
11
- | Package | CSS | Locales | Facade entry |
12
- | -------------------------------------- | :-: | :-----: | :----------: |
13
- | `@univerjs/preset-docs-thread-comment` | Yes | Yes | No |
11
+ | Package | UMD global | CSS | Locales | Facade entry | Worker entry |
12
+ | --- | --- | :---: | :---: | :---: | :---: |
13
+ | `@univerjs/preset-docs-thread-comment` | — | Yes | Yes | No | No |
14
14
 
15
15
  ## Installation
16
16
 
@@ -20,8 +20,6 @@ pnpm add @univerjs/preset-docs-thread-comment
20
20
  npm install @univerjs/preset-docs-thread-comment
21
21
  ```
22
22
 
23
- Keep all `@univerjs/*` packages on the same version.
24
-
25
23
  ## Usage
26
24
 
27
25
  ```ts
package/lib/index.css CHANGED
@@ -79,11 +79,6 @@
79
79
  display: grid;
80
80
  }
81
81
 
82
- .univer-size-12 {
83
- width: 3rem;
84
- height: 3rem;
85
- }
86
-
87
82
  .univer-size-6 {
88
83
  width: 1.5rem;
89
84
  height: 1.5rem;
@@ -93,10 +88,6 @@
93
88
  height: .375rem;
94
89
  }
95
90
 
96
- .univer-h-10 {
97
- height: 2.5rem;
98
- }
99
-
100
91
  .univer-h-3\.5 {
101
92
  height: .875rem;
102
93
  }
@@ -137,7 +128,7 @@
137
128
  flex: 1;
138
129
  }
139
130
 
140
- .univer-flex-shrink-0, .univer-shrink-0 {
131
+ .univer-flex-shrink-0 {
141
132
  flex-shrink: 0;
142
133
  }
143
134
 
@@ -181,10 +172,6 @@
181
172
  justify-content: space-between;
182
173
  }
183
174
 
184
- .univer-gap-1 {
185
- gap: .25rem;
186
- }
187
-
188
175
  .univer-gap-2 {
189
176
  gap: .5rem;
190
177
  }
@@ -197,10 +184,6 @@
197
184
  overflow: hidden;
198
185
  }
199
186
 
200
- .univer-overflow-x-auto {
201
- overflow-x: auto;
202
- }
203
-
204
187
  .univer-overflow-y-auto {
205
188
  overflow-y: auto;
206
189
  }
@@ -239,10 +222,6 @@
239
222
  border-radius: .125rem;
240
223
  }
241
224
 
242
- .univer-rounded-xl {
243
- border-radius: .75rem;
244
- }
245
-
246
225
  .univer-rounded-t-md {
247
226
  border-top-left-radius: .375rem;
248
227
  border-top-right-radius: .375rem;
@@ -272,10 +251,6 @@
272
251
  background-color: var(--univer-gray-0);
273
252
  }
274
253
 
275
- .univer-bg-gray-100 {
276
- background-color: var(--univer-gray-100);
277
- }
278
-
279
254
  .univer-bg-gray-50 {
280
255
  background-color: var(--univer-gray-50);
281
256
  }
@@ -308,10 +283,6 @@
308
283
  padding: 0;
309
284
  }
310
285
 
311
- .univer-p-1 {
312
- padding: .25rem;
313
- }
314
-
315
286
  .univer-p-1\.5 {
316
287
  padding: .375rem;
317
288
  }
@@ -320,11 +291,6 @@
320
291
  padding: 1rem;
321
292
  }
322
293
 
323
- .univer-px-3 {
324
- padding-left: .75rem;
325
- padding-right: .75rem;
326
- }
327
-
328
294
  .univer-px-4 {
329
295
  padding-left: 1rem;
330
296
  padding-right: 1rem;
@@ -342,11 +308,6 @@
342
308
  padding-left: 30px;
343
309
  }
344
310
 
345
- .univer-text-2xl {
346
- font-size: 1.5rem;
347
- line-height: 2rem;
348
- }
349
-
350
311
  .univer-text-base {
351
312
  font-size: 1rem;
352
313
  line-height: 1.5rem;
@@ -387,10 +348,6 @@
387
348
  color: var(--univer-gray-600);
388
349
  }
389
350
 
390
- .univer-text-gray-700 {
391
- color: var(--univer-gray-700);
392
- }
393
-
394
351
  .univer-text-gray-900 {
395
352
  color: var(--univer-gray-900);
396
353
  }
@@ -418,13 +375,6 @@
418
375
  box-shadow: var(--univer-tw-ring-offset-shadow, 0 0 #0000), var(--univer-tw-ring-shadow, 0 0 #0000), var(--univer-tw-shadow);
419
376
  }
420
377
 
421
- .univer-shadow-sm {
422
- --univer-tw-shadow: 0px 1px 2px 0px #1e284d14;
423
- --univer-tw-shadow-colored: 0px 1px 2px 0px var(--univer-tw-shadow-color);
424
- box-shadow: 0 0 #0000, 0 0 #0000, 0 1px 2px #1e284d14;
425
- box-shadow: var(--univer-tw-ring-offset-shadow, 0 0 #0000), var(--univer-tw-ring-shadow, 0 0 #0000), var(--univer-tw-shadow);
426
- }
427
-
428
378
  @media (hover: hover) and (pointer: fine) {
429
379
  .hover\:univer-bg-gray-100:hover {
430
380
  background-color: var(--univer-gray-100);
@@ -435,17 +385,6 @@
435
385
  }
436
386
  }
437
387
 
438
- .active\:univer-scale-95:active {
439
- --univer-tw-scale-x: .95;
440
- --univer-tw-scale-y: .95;
441
- transform: translate(var(--univer-tw-translate-x), var(--univer-tw-translate-y)) rotate(var(--univer-tw-rotate)) skewX(var(--univer-tw-skew-x)) skewY(var(--univer-tw-skew-y)) scaleX(.95) scaleY(.95);
442
- transform: translate(var(--univer-tw-translate-x), var(--univer-tw-translate-y)) rotate(var(--univer-tw-rotate)) skewX(var(--univer-tw-skew-x)) skewY(var(--univer-tw-skew-y)) scaleX(var(--univer-tw-scale-x)) scaleY(var(--univer-tw-scale-y));
443
- }
444
-
445
- .active\:univer-bg-gray-100:active {
446
- background-color: var(--univer-gray-100);
447
- }
448
-
449
388
  .rtl\:univer-left-auto:where([dir="rtl"], [dir="rtl"] *) {
450
389
  left: auto;
451
390
  }
@@ -486,14 +425,6 @@
486
425
  border-color: var(--univer-gray-700) !important;
487
426
  }
488
427
 
489
- .dark\:\!univer-bg-gray-700:where(.univer-dark, .univer-dark *) {
490
- background-color: var(--univer-gray-700) !important;
491
- }
492
-
493
- .dark\:\!univer-bg-gray-800:where(.univer-dark, .univer-dark *) {
494
- background-color: var(--univer-gray-800) !important;
495
- }
496
-
497
428
  .dark\:\!univer-bg-gray-900:where(.univer-dark, .univer-dark *) {
498
429
  background-color: var(--univer-gray-900) !important;
499
430
  }
@@ -510,10 +441,6 @@
510
441
  color: var(--univer-gray-400) !important;
511
442
  }
512
443
 
513
- .dark\:\!univer-text-primary-300:where(.univer-dark, .univer-dark *) {
514
- color: var(--univer-primary-300) !important;
515
- }
516
-
517
444
  @media (hover: hover) and (pointer: fine) {
518
445
  .dark\:hover\:\!univer-bg-gray-600:hover:where(.univer-dark, .univer-dark *) {
519
446
  background-color: var(--univer-gray-600) !important;
@@ -524,10 +451,6 @@
524
451
  }
525
452
  }
526
453
 
527
- .dark\:active\:\!univer-bg-gray-700:active:where(.univer-dark, .univer-dark *) {
528
- background-color: var(--univer-gray-700) !important;
529
- }
530
-
531
454
  .\[\&_button\]\:univer-block button {
532
455
  display: block;
533
456
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs/preset-docs-thread-comment",
3
- "version": "1.4.0",
3
+ "version": "1.5.1",
4
4
  "private": false,
5
5
  "description": "Preset for thread comments in Univer Docs.",
6
6
  "author": "DreamNum Co., Ltd. <developer@univer.ai>",
@@ -56,18 +56,18 @@
56
56
  "rxjs": ">=7.0.0"
57
57
  },
58
58
  "dependencies": {
59
- "@univerjs/docs-thread-comment-ui": "1.4.0",
60
- "@univerjs/thread-comment": "1.4.0",
61
- "@univerjs/thread-comment-ui": "1.4.0"
59
+ "@univerjs/docs-thread-comment-ui": "1.5.1",
60
+ "@univerjs/thread-comment": "1.5.1",
61
+ "@univerjs/thread-comment-ui": "1.5.1"
62
62
  },
63
63
  "devDependencies": {
64
- "@univerjs-infra/shared": "1.4.0",
65
- "@univerjs/core": "1.4.0",
66
- "@univerjs/presets": "1.4.0",
64
+ "@univerjs-infra/shared": "1.5.1",
65
+ "@univerjs/core": "1.5.1",
66
+ "@univerjs/presets": "1.5.1",
67
67
  "react": "18.3.1",
68
68
  "react-dom": "18.3.1",
69
69
  "rxjs": "7.8.2",
70
- "tsrs": "0.20.1-ts7.1.0-beta"
70
+ "tsrs": "0.23.0-ts7.1.0-beta"
71
71
  },
72
72
  "scripts": {
73
73
  "build:bundle": "univer-cli preset build --cleanup",