@univerjs/preset-docs-collaboration 1.0.0-alpha.3 → 1.0.0-alpha.5

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/index.css CHANGED
@@ -1,3 +1,30 @@
1
+ .univer-fixed {
2
+ position: fixed;
3
+ }
4
+
5
+ .univer-inset-0 {
6
+ top: 0;
7
+ bottom: 0;
8
+ left: 0;
9
+ right: 0;
10
+ }
11
+
12
+ .univer-left-1\/2 {
13
+ left: 50%;
14
+ }
15
+
16
+ .univer-top-4 {
17
+ top: 1rem;
18
+ }
19
+
20
+ .univer-z-\[1000\] {
21
+ z-index: 1000;
22
+ }
23
+
24
+ .univer-z-\[1001\] {
25
+ z-index: 1001;
26
+ }
27
+
1
28
  .univer-m-0 {
2
29
  margin: 0;
3
30
  }
@@ -10,6 +37,11 @@
10
37
  display: inline-flex;
11
38
  }
12
39
 
40
+ .univer-size-4 {
41
+ width: 1rem;
42
+ height: 1rem;
43
+ }
44
+
13
45
  .univer-h-8 {
14
46
  height: 2rem;
15
47
  }
@@ -18,6 +50,20 @@
18
50
  width: 2rem;
19
51
  }
20
52
 
53
+ .univer-max-w-\[calc\(100vw-32px\)\] {
54
+ max-width: calc(100vw - 32px);
55
+ }
56
+
57
+ .univer-shrink-0 {
58
+ flex-shrink: 0;
59
+ }
60
+
61
+ .-univer-translate-x-1\/2 {
62
+ --univer-tw-translate-x: -50%;
63
+ transform: translate(-50%, 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));
64
+ 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));
65
+ }
66
+
21
67
  @keyframes univer-pulse {
22
68
  50% {
23
69
  opacity: .5;
@@ -46,6 +92,10 @@
46
92
  cursor: pointer;
47
93
  }
48
94
 
95
+ .univer-cursor-wait {
96
+ cursor: wait;
97
+ }
98
+
49
99
  .univer-appearance-none {
50
100
  -webkit-appearance: none;
51
101
  appearance: none;
@@ -63,6 +113,10 @@
63
113
  justify-content: center;
64
114
  }
65
115
 
116
+ .univer-gap-2 {
117
+ gap: .5rem;
118
+ }
119
+
66
120
  .univer-gap-3 {
67
121
  gap: .75rem;
68
122
  }
@@ -91,10 +145,19 @@
91
145
  background-color: #0000;
92
146
  }
93
147
 
148
+ .univer-bg-white {
149
+ background-color: var(--univer-white);
150
+ }
151
+
94
152
  .univer-p-0 {
95
153
  padding: 0;
96
154
  }
97
155
 
156
+ .univer-px-3 {
157
+ padding-left: .75rem;
158
+ padding-right: .75rem;
159
+ }
160
+
98
161
  .univer-px-4 {
99
162
  padding-left: 1rem;
100
163
  padding-right: 1rem;
@@ -115,6 +178,11 @@
115
178
  line-height: 1.75rem;
116
179
  }
117
180
 
181
+ .univer-text-amber-500 {
182
+ --univer-tw-text-opacity: 1;
183
+ color: rgba(245, 158, 11, var(--univer-tw-text-opacity, 1));
184
+ }
185
+
118
186
  .univer-text-blue-500 {
119
187
  color: var(--univer-blue-500);
120
188
  }
@@ -127,6 +195,10 @@
127
195
  color: var(--univer-gray-600);
128
196
  }
129
197
 
198
+ .univer-text-gray-900 {
199
+ color: var(--univer-gray-900);
200
+ }
201
+
130
202
  .univer-text-green-500 {
131
203
  color: var(--univer-green-500);
132
204
  }
@@ -143,6 +215,13 @@
143
215
  color: var(--univer-white);
144
216
  }
145
217
 
218
+ .univer-shadow-lg {
219
+ --univer-tw-shadow: 0px 4px 6px 0px #1e284d0d, 0px 10px 15px -3px #1e284d1a;
220
+ --univer-tw-shadow-colored: 0px 4px 6px 0px var(--univer-tw-shadow-color), 0px 10px 15px -3px var(--univer-tw-shadow-color);
221
+ box-shadow: 0 0 #0000, 0 0 #0000, 0 4px 6px #1e284d0d, 0 10px 15px -3px #1e284d1a;
222
+ box-shadow: var(--univer-tw-ring-offset-shadow, 0 0 #0000), var(--univer-tw-ring-shadow, 0 0 #0000), var(--univer-tw-shadow);
223
+ }
224
+
146
225
  .univer-transition-all {
147
226
  transition-property: all;
148
227
  transition-duration: .15s;
@@ -183,6 +262,14 @@
183
262
  --univer-tw-ring-offset-width: 2px;
184
263
  }
185
264
 
265
+ .dark\:\!univer-bg-gray-700:where(.univer-dark, .univer-dark *) {
266
+ background-color: var(--univer-gray-700) !important;
267
+ }
268
+
269
+ .dark\:\!univer-text-white:where(.univer-dark, .univer-dark *) {
270
+ color: var(--univer-white) !important;
271
+ }
272
+
186
273
  .dark\:hover\:\!univer-bg-gray-700:hover:where(.univer-dark, .univer-dark *) {
187
274
  background-color: var(--univer-gray-700) !important;
188
275
  }
@@ -56,6 +56,11 @@ declare const _default: {
56
56
  syncing: string;
57
57
  offline: string;
58
58
  };
59
+ snapshotLoading: {
60
+ loadingSheet: string;
61
+ timeout: string;
62
+ refresh: string;
63
+ };
59
64
  session: {
60
65
  'connection-failed': string;
61
66
  'will-retry': string;
@@ -56,6 +56,11 @@ declare const _default: {
56
56
  syncing: string;
57
57
  offline: string;
58
58
  };
59
+ snapshotLoading: {
60
+ loadingSheet: string;
61
+ timeout: string;
62
+ refresh: string;
63
+ };
59
64
  session: {
60
65
  'connection-failed': string;
61
66
  'will-retry': string;
@@ -56,6 +56,11 @@ declare const _default: {
56
56
  syncing: string;
57
57
  offline: string;
58
58
  };
59
+ snapshotLoading: {
60
+ loadingSheet: string;
61
+ timeout: string;
62
+ refresh: string;
63
+ };
59
64
  session: {
60
65
  'connection-failed': string;
61
66
  'will-retry': string;
@@ -56,6 +56,11 @@ declare const _default: {
56
56
  syncing: string;
57
57
  offline: string;
58
58
  };
59
+ snapshotLoading: {
60
+ loadingSheet: string;
61
+ timeout: string;
62
+ refresh: string;
63
+ };
59
64
  session: {
60
65
  'connection-failed': string;
61
66
  'will-retry': string;
@@ -56,6 +56,11 @@ declare const _default: {
56
56
  syncing: string;
57
57
  offline: string;
58
58
  };
59
+ snapshotLoading: {
60
+ loadingSheet: string;
61
+ timeout: string;
62
+ refresh: string;
63
+ };
59
64
  session: {
60
65
  'connection-failed': string;
61
66
  'will-retry': string;
@@ -56,6 +56,11 @@ declare const _default: {
56
56
  syncing: string;
57
57
  offline: string;
58
58
  };
59
+ snapshotLoading: {
60
+ loadingSheet: string;
61
+ timeout: string;
62
+ refresh: string;
63
+ };
59
64
  session: {
60
65
  'connection-failed': string;
61
66
  'will-retry': string;
@@ -56,6 +56,11 @@ declare const _default: {
56
56
  syncing: string;
57
57
  offline: string;
58
58
  };
59
+ snapshotLoading: {
60
+ loadingSheet: string;
61
+ timeout: string;
62
+ refresh: string;
63
+ };
59
64
  session: {
60
65
  'connection-failed': string;
61
66
  'will-retry': string;
@@ -56,6 +56,11 @@ declare const _default: {
56
56
  syncing: string;
57
57
  offline: string;
58
58
  };
59
+ snapshotLoading: {
60
+ loadingSheet: string;
61
+ timeout: string;
62
+ refresh: string;
63
+ };
59
64
  session: {
60
65
  'connection-failed': string;
61
66
  'will-retry': string;
@@ -56,6 +56,11 @@ declare const _default: {
56
56
  syncing: string;
57
57
  offline: string;
58
58
  };
59
+ snapshotLoading: {
60
+ loadingSheet: string;
61
+ timeout: string;
62
+ refresh: string;
63
+ };
59
64
  session: {
60
65
  'connection-failed': string;
61
66
  'will-retry': string;
@@ -56,6 +56,11 @@ declare const _default: {
56
56
  syncing: string;
57
57
  offline: string;
58
58
  };
59
+ snapshotLoading: {
60
+ loadingSheet: string;
61
+ timeout: string;
62
+ refresh: string;
63
+ };
59
64
  session: {
60
65
  'connection-failed': string;
61
66
  'will-retry': string;
@@ -56,6 +56,11 @@ declare const _default: {
56
56
  syncing: string;
57
57
  offline: string;
58
58
  };
59
+ snapshotLoading: {
60
+ loadingSheet: string;
61
+ timeout: string;
62
+ refresh: string;
63
+ };
59
64
  session: {
60
65
  'connection-failed': string;
61
66
  'will-retry': string;
@@ -56,6 +56,11 @@ declare const _default: {
56
56
  syncing: string;
57
57
  offline: string;
58
58
  };
59
+ snapshotLoading: {
60
+ loadingSheet: string;
61
+ timeout: string;
62
+ refresh: string;
63
+ };
59
64
  session: {
60
65
  'connection-failed': string;
61
66
  'will-retry': string;
@@ -56,6 +56,11 @@ declare const _default: {
56
56
  syncing: string;
57
57
  offline: string;
58
58
  };
59
+ snapshotLoading: {
60
+ loadingSheet: string;
61
+ timeout: string;
62
+ refresh: string;
63
+ };
59
64
  session: {
60
65
  'connection-failed': string;
61
66
  'will-retry': string;
@@ -56,6 +56,11 @@ declare const _default: {
56
56
  syncing: string;
57
57
  offline: string;
58
58
  };
59
+ snapshotLoading: {
60
+ loadingSheet: string;
61
+ timeout: string;
62
+ refresh: string;
63
+ };
59
64
  session: {
60
65
  'connection-failed': string;
61
66
  'will-retry': string;
@@ -56,6 +56,11 @@ declare const _default: {
56
56
  syncing: string;
57
57
  offline: string;
58
58
  };
59
+ snapshotLoading: {
60
+ loadingSheet: string;
61
+ timeout: string;
62
+ refresh: string;
63
+ };
59
64
  session: {
60
65
  'connection-failed': string;
61
66
  'will-retry': string;
@@ -56,6 +56,11 @@ declare const _default: {
56
56
  syncing: string;
57
57
  offline: string;
58
58
  };
59
+ snapshotLoading: {
60
+ loadingSheet: string;
61
+ timeout: string;
62
+ refresh: string;
63
+ };
59
64
  session: {
60
65
  'connection-failed': string;
61
66
  'will-retry': string;
@@ -56,6 +56,11 @@ declare const _default: {
56
56
  syncing: string;
57
57
  offline: string;
58
58
  };
59
+ snapshotLoading: {
60
+ loadingSheet: string;
61
+ timeout: string;
62
+ refresh: string;
63
+ };
59
64
  session: {
60
65
  'connection-failed': string;
61
66
  'will-retry': string;
@@ -56,6 +56,11 @@ declare const _default: {
56
56
  syncing: string;
57
57
  offline: string;
58
58
  };
59
+ snapshotLoading: {
60
+ loadingSheet: string;
61
+ timeout: string;
62
+ refresh: string;
63
+ };
59
64
  session: {
60
65
  'connection-failed': string;
61
66
  'will-retry': string;
@@ -56,6 +56,11 @@ declare const _default: {
56
56
  syncing: string;
57
57
  offline: string;
58
58
  };
59
+ snapshotLoading: {
60
+ loadingSheet: string;
61
+ timeout: string;
62
+ refresh: string;
63
+ };
59
64
  session: {
60
65
  'connection-failed': string;
61
66
  'will-retry': string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs/preset-docs-collaboration",
3
- "version": "1.0.0-alpha.3",
3
+ "version": "1.0.0-alpha.5",
4
4
  "private": false,
5
5
  "description": "Preset for real-time collaboration in Univer Docs.",
6
6
  "author": "DreamNum Co., Ltd. <developer@univer.ai>",
@@ -55,18 +55,18 @@
55
55
  "rxjs": ">=7.0.0"
56
56
  },
57
57
  "dependencies": {
58
- "@univerjs-pro/collaboration": "1.0.0-alpha.3",
59
- "@univerjs-pro/collaboration-client": "1.0.0-alpha.3",
60
- "@univerjs-pro/collaboration-client-ui": "1.0.0-alpha.3"
58
+ "@univerjs-pro/collaboration": "1.0.0-alpha.5",
59
+ "@univerjs-pro/collaboration-client": "1.0.0-alpha.5",
60
+ "@univerjs-pro/collaboration-client-ui": "1.0.0-alpha.5"
61
61
  },
62
62
  "devDependencies": {
63
63
  "react": "18.3.1",
64
64
  "react-dom": "18.3.1",
65
65
  "rxjs": "^7.8.2",
66
66
  "typescript": "^6.0.3",
67
- "@univerjs-infra/shared": "1.0.0-alpha.3",
68
- "@univerjs/core": "1.0.0-alpha.3",
69
- "@univerjs/presets": "1.0.0-alpha.3"
67
+ "@univerjs-infra/shared": "1.0.0-alpha.5",
68
+ "@univerjs/core": "1.0.0-alpha.5",
69
+ "@univerjs/presets": "1.0.0-alpha.5"
70
70
  },
71
71
  "scripts": {
72
72
  "build:bundle": "univer-cli preset build --cleanup",