@univerjs/preset-sheets-collaboration 1.0.0-alpha.7 → 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 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
@@ -3,10 +3,7 @@
3
3
  }
4
4
 
5
5
  .univer-inset-0 {
6
- top: 0;
7
- bottom: 0;
8
- left: 0;
9
- right: 0;
6
+ inset: 0;
10
7
  }
11
8
 
12
9
  .univer-left-1\/2 {
@@ -97,7 +94,6 @@
97
94
  }
98
95
 
99
96
  .univer-appearance-none {
100
- -webkit-appearance: none;
101
97
  appearance: none;
102
98
  }
103
99
 
@@ -298,10 +294,7 @@
298
294
  }
299
295
 
300
296
  .univer-inset-0 {
301
- top: 0;
302
- bottom: 0;
303
- left: 0;
304
- right: 0;
297
+ inset: 0;
305
298
  }
306
299
 
307
300
  .univer-left-0 {
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.7",
3
+ "version": "1.0.0-beta.0",
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.7",
59
- "@univerjs-pro/collaboration-client": "1.0.0-alpha.7",
60
- "@univerjs-pro/edit-history-viewer": "1.0.0-alpha.7",
61
- "@univerjs-pro/edit-history-loader": "1.0.0-alpha.7",
62
- "@univerjs-pro/collaboration-client-ui": "1.0.0-alpha.7",
63
- "@univerjs/preset-sheets-advanced": "1.0.0-alpha.7",
64
- "@univerjs-pro/thread-comment-datasource": "1.0.0-alpha.7"
58
+ "@univerjs-pro/collaboration-client": "1.0.0-beta.0",
59
+ "@univerjs-pro/collaboration-client-ui": "1.0.0-beta.0",
60
+ "@univerjs-pro/collaboration": "1.0.0-beta.0",
61
+ "@univerjs-pro/thread-comment-datasource": "1.0.0-beta.0",
62
+ "@univerjs-pro/edit-history-loader": "1.0.0-beta.0",
63
+ "@univerjs-pro/edit-history-viewer": "1.0.0-beta.0",
64
+ "@univerjs/preset-sheets-advanced": "1.0.0-beta.0"
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-infra/shared": "1.0.0-alpha.7",
72
- "@univerjs/core": "1.0.0-alpha.7",
73
- "@univerjs/presets": "1.0.0-alpha.7"
71
+ "@univerjs-infra/shared": "1.0.0-beta.0",
72
+ "@univerjs/core": "1.0.0-beta.0",
73
+ "@univerjs/presets": "1.0.0-beta.0"
74
74
  },
75
75
  "scripts": {
76
76
  "build:bundle": "univer-cli preset build --cleanup",