@univerjs/preset-sheets-collaboration 1.0.0-alpha.8 → 1.0.0-beta.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
@@ -28,7 +28,7 @@ function transformUrlProtocolToWs(url) {
28
28
  */
29
29
  function UniverSheetsCollaborationPreset(config = {}) {
30
30
  const { universerEndpoint, univerContainerId = "app", enableOfflineEditing = true, enableSingleActiveInstanceLock = true, enableFrontendLog = false, historyWorkerURL: workerURL } = config;
31
- const serverEndpoint = universerEndpoint !== null && universerEndpoint !== void 0 ? universerEndpoint : `${window.location.protocol}//${window.location.host}`;
31
+ const serverEndpoint = universerEndpoint ?? `${window.location.protocol}//${window.location.host}`;
32
32
  return { plugins: [
33
33
  _univerjs_pro_collaboration.UniverCollaborationPlugin,
34
34
  [_univerjs_pro_collaboration_client.UniverCollaborationClientPlugin, {
package/lib/es/index.js CHANGED
@@ -37,7 +37,7 @@ function transformUrlProtocolToWs(url) {
37
37
  */
38
38
  function UniverSheetsCollaborationPreset(config = {}) {
39
39
  const { universerEndpoint, univerContainerId = "app", enableOfflineEditing = true, enableSingleActiveInstanceLock = true, enableFrontendLog = false, historyWorkerURL: workerURL } = config;
40
- const serverEndpoint = universerEndpoint !== null && universerEndpoint !== void 0 ? universerEndpoint : `${window.location.protocol}//${window.location.host}`;
40
+ const serverEndpoint = universerEndpoint ?? `${window.location.protocol}//${window.location.host}`;
41
41
  return { plugins: [
42
42
  UniverCollaborationPlugin,
43
43
  [UniverCollaborationClientPlugin, {
package/lib/index.css CHANGED
@@ -2,13 +2,6 @@
2
2
  position: fixed;
3
3
  }
4
4
 
5
- .univer-inset-0 {
6
- top: 0;
7
- bottom: 0;
8
- left: 0;
9
- right: 0;
10
- }
11
-
12
5
  .univer-left-1\/2 {
13
6
  left: 50%;
14
7
  }
@@ -17,10 +10,6 @@
17
10
  top: 1rem;
18
11
  }
19
12
 
20
- .univer-z-\[1000\] {
21
- z-index: 1000;
22
- }
23
-
24
13
  .univer-z-\[1001\] {
25
14
  z-index: 1001;
26
15
  }
@@ -92,12 +81,7 @@
92
81
  cursor: pointer;
93
82
  }
94
83
 
95
- .univer-cursor-wait {
96
- cursor: wait;
97
- }
98
-
99
84
  .univer-appearance-none {
100
- -webkit-appearance: none;
101
85
  appearance: none;
102
86
  }
103
87
 
@@ -137,6 +121,10 @@
137
121
  background-color: var(--univer-gray-700) !important;
138
122
  }
139
123
 
124
+ .univer-bg-gray-0 {
125
+ background-color: var(--univer-gray-0);
126
+ }
127
+
140
128
  .univer-bg-primary-500 {
141
129
  background-color: var(--univer-primary-500);
142
130
  }
@@ -145,10 +133,6 @@
145
133
  background-color: #0000;
146
134
  }
147
135
 
148
- .univer-bg-white {
149
- background-color: var(--univer-white);
150
- }
151
-
152
136
  .univer-p-0 {
153
137
  padding: 0;
154
138
  }
@@ -187,6 +171,10 @@
187
171
  color: var(--univer-blue-500);
188
172
  }
189
173
 
174
+ .univer-text-gray-0 {
175
+ color: var(--univer-gray-0);
176
+ }
177
+
190
178
  .univer-text-gray-400 {
191
179
  color: var(--univer-gray-400);
192
180
  }
@@ -211,10 +199,6 @@
211
199
  color: var(--univer-red-500);
212
200
  }
213
201
 
214
- .univer-text-white {
215
- color: var(--univer-white);
216
- }
217
-
218
202
  .univer-shadow-lg {
219
203
  --univer-tw-shadow: 0px 4px 6px 0px #1e284d0d, 0px 10px 15px -3px #1e284d1a;
220
204
  --univer-tw-shadow-colored: 0px 4px 6px 0px var(--univer-tw-shadow-color), 0px 10px 15px -3px var(--univer-tw-shadow-color);
@@ -266,8 +250,8 @@
266
250
  background-color: var(--univer-gray-700) !important;
267
251
  }
268
252
 
269
- .dark\:\!univer-text-white:where(.univer-dark, .univer-dark *) {
270
- color: var(--univer-white) !important;
253
+ .dark\:\!univer-text-gray-0:where(.univer-dark, .univer-dark *) {
254
+ color: var(--univer-gray-0) !important;
271
255
  }
272
256
 
273
257
  .dark\:hover\:\!univer-bg-gray-700:hover:where(.univer-dark, .univer-dark *) {
@@ -298,10 +282,7 @@
298
282
  }
299
283
 
300
284
  .univer-inset-0 {
301
- top: 0;
302
- bottom: 0;
303
- left: 0;
304
- right: 0;
285
+ inset: 0;
305
286
  }
306
287
 
307
288
  .univer-left-0 {
@@ -609,6 +590,10 @@
609
590
  background-color: var(--univer-blue-50);
610
591
  }
611
592
 
593
+ .univer-bg-gray-0 {
594
+ background-color: var(--univer-gray-0);
595
+ }
596
+
612
597
  .univer-bg-gray-100 {
613
598
  background-color: var(--univer-gray-100);
614
599
  }
@@ -625,10 +610,6 @@
625
610
  background-color: var(--univer-primary-50);
626
611
  }
627
612
 
628
- .univer-bg-white {
629
- background-color: var(--univer-white);
630
- }
631
-
632
613
  .univer-p-2 {
633
614
  padding: .5rem;
634
615
  }
@@ -845,6 +826,10 @@
845
826
  color: var(--univer-blue-400) !important;
846
827
  }
847
828
 
829
+ .dark\:\!univer-text-gray-0:where(.univer-dark, .univer-dark *) {
830
+ color: var(--univer-gray-0) !important;
831
+ }
832
+
848
833
  .dark\:\!univer-text-gray-200:where(.univer-dark, .univer-dark *) {
849
834
  color: var(--univer-gray-200) !important;
850
835
  }
@@ -857,10 +842,6 @@
857
842
  color: var(--univer-gray-400) !important;
858
843
  }
859
844
 
860
- .dark\:\!univer-text-white:where(.univer-dark, .univer-dark *) {
861
- color: var(--univer-white) !important;
862
- }
863
-
864
845
  .dark\:hover\:\!univer-bg-gray-700:hover:where(.univer-dark, .univer-dark *) {
865
846
  background-color: var(--univer-gray-700) !important;
866
847
  }
package/lib/index.js CHANGED
@@ -37,7 +37,7 @@ function transformUrlProtocolToWs(url) {
37
37
  */
38
38
  function UniverSheetsCollaborationPreset(config = {}) {
39
39
  const { universerEndpoint, univerContainerId = "app", enableOfflineEditing = true, enableSingleActiveInstanceLock = true, enableFrontendLog = false, historyWorkerURL: workerURL } = config;
40
- const serverEndpoint = universerEndpoint !== null && universerEndpoint !== void 0 ? universerEndpoint : `${window.location.protocol}//${window.location.host}`;
40
+ const serverEndpoint = universerEndpoint ?? `${window.location.protocol}//${window.location.host}`;
41
41
  return { plugins: [
42
42
  UniverCollaborationPlugin,
43
43
  [UniverCollaborationClientPlugin, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs/preset-sheets-collaboration",
3
- "version": "1.0.0-alpha.8",
3
+ "version": "1.0.0-beta.1",
4
4
  "private": false,
5
5
  "description": "Preset for real-time collaboration and edit history in Univer Sheets.",
6
6
  "author": "DreamNum Co., Ltd. <developer@univer.ai>",
@@ -55,22 +55,22 @@
55
55
  "rxjs": ">=7.0.0"
56
56
  },
57
57
  "dependencies": {
58
- "@univerjs-pro/collaboration": "1.0.0-alpha.8",
59
- "@univerjs-pro/collaboration-client-ui": "1.0.0-alpha.8",
60
- "@univerjs-pro/edit-history-viewer": "1.0.0-alpha.8",
61
- "@univerjs-pro/collaboration-client": "1.0.0-alpha.8",
62
- "@univerjs-pro/edit-history-loader": "1.0.0-alpha.8",
63
- "@univerjs-pro/thread-comment-datasource": "1.0.0-alpha.8",
64
- "@univerjs/preset-sheets-advanced": "1.0.0-alpha.8"
58
+ "@univerjs-pro/collaboration-client": "1.0.0-beta.1",
59
+ "@univerjs-pro/collaboration": "1.0.0-beta.1",
60
+ "@univerjs-pro/collaboration-client-ui": "1.0.0-beta.1",
61
+ "@univerjs-pro/edit-history-loader": "1.0.0-beta.1",
62
+ "@univerjs-pro/thread-comment-datasource": "1.0.0-beta.1",
63
+ "@univerjs/preset-sheets-advanced": "1.0.0-beta.1",
64
+ "@univerjs-pro/edit-history-viewer": "1.0.0-beta.1"
65
65
  },
66
66
  "devDependencies": {
67
67
  "react": "18.3.1",
68
68
  "react-dom": "18.3.1",
69
69
  "rxjs": "^7.8.2",
70
70
  "typescript": "^6.0.3",
71
- "@univerjs/presets": "1.0.0-alpha.8",
72
- "@univerjs/core": "1.0.0-alpha.8",
73
- "@univerjs-infra/shared": "1.0.0-alpha.8"
71
+ "@univerjs/core": "1.0.0-beta.1",
72
+ "@univerjs-infra/shared": "1.0.0-beta.1",
73
+ "@univerjs/presets": "1.0.0-beta.1"
74
74
  },
75
75
  "scripts": {
76
76
  "build:bundle": "univer-cli preset build --cleanup",