Skip to content

Build your own AI office with Univer Office SDK. Bring editing, calculation, collaboration, and file processing into your product for people and AI agents. Built on an extensible open-source core.

chore(deps): update peerDependencies

白熱be7ddd856c0f
diff --git a/common/shared/vite/auto-externalize-dependency-plugin.js b/common/shared/vite/auto-externalize-dependency-plugin.js
index ccab65ff3c..60994f5820 100644
--- a/common/shared/vite/auto-externalize-dependency-plugin.js
+++ b/common/shared/vite/auto-externalize-dependency-plugin.js
@@ -41,12 +41,12 @@ exports.autoExternalizeDependency = function autoExternalizeDependency() {
react: {
global: 'React',
name: 'react',
- version: '>=16.9.0',
+ version: '^16.9.0 || ^17.0.0 || ^18.0.0',
},
'react-dom': {
global: 'ReactDOM',
name: 'react-dom',
- version: '>=16.9.0',
+ version: '^16.9.0 || ^17.0.0 || ^18.0.0',
},
rxjs: {
global: 'rxjs',
diff --git a/packages/design/package.json b/packages/design/package.json
index 4d071f1982..7c06488d5f 100644
--- a/packages/design/package.json
+++ b/packages/design/package.json
@@ -67,8 +67,8 @@
},
"peerDependencies": {
"clsx": ">=2.0.0",
- "react": ">=16.9.0",
- "react-dom": ">=16.9.0"
+ "react": "^16.9.0 || ^17.0.0 || ^18.0.0",
+ "react-dom": "^16.9.0 || ^17.0.0 || ^18.0.0"
},
"dependencies": {
"@rc-component/color-picker": "^1.5.3",
diff --git a/packages/docs-ui/package.json b/packages/docs-ui/package.json
index 2972b7581a..512e76c4ba 100644
--- a/packages/docs-ui/package.json
+++ b/packages/docs-ui/package.json
@@ -72,7 +72,7 @@
"@univerjs/engine-render": "workspace:*",
"@univerjs/ui": "workspace:*",
"@wendellhu/redi": "0.13.0",
- "react": ">=16.9.0",
+ "react": "^16.9.0 || ^17.0.0 || ^18.0.0",
"rxjs": ">=7.0.0"
},
"devDependencies": {
diff --git a/packages/find-replace/package.json b/packages/find-replace/package.json
index 75b187ae53..9b1c131ead 100644
--- a/packages/find-replace/package.json
+++ b/packages/find-replace/package.json
@@ -71,7 +71,7 @@
"@univerjs/engine-render": "workspace:*",
"@univerjs/ui": "workspace:*",
"@wendellhu/redi": "0.13.0",
- "react": ">=16.9.0",
+ "react": "^16.9.0 || ^17.0.0 || ^18.0.0",
"rxjs": ">=7.0.0"
},
"dependencies": {
diff --git a/packages/sheets-conditional-formatting-ui/package.json b/packages/sheets-conditional-formatting-ui/package.json
index 6dfe563315..4af5232294 100644
--- a/packages/sheets-conditional-formatting-ui/package.json
+++ b/packages/sheets-conditional-formatting-ui/package.json
@@ -76,8 +76,8 @@
"@univerjs/ui": "workspace:*",
"@wendellhu/redi": "0.13.0",
"clsx": ">=2.0.0",
- "react": ">=16.9.0",
- "react-dom": ">=16.9.0",
+ "react": "^16.9.0 || ^17.0.0 || ^18.0.0",
+ "react-dom": "^16.9.0 || ^17.0.0 || ^18.0.0",
"rxjs": ">=7.0.0"
},
"dependencies": {
diff --git a/packages/sheets-data-validation/package.json b/packages/sheets-data-validation/package.json
index 38e06f65a6..4540ce50c6 100644
--- a/packages/sheets-data-validation/package.json
+++ b/packages/sheets-data-validation/package.json
@@ -69,7 +69,7 @@
"@univerjs/sheets-ui": "workspace:*",
"@univerjs/ui": "workspace:*",
"@wendellhu/redi": "0.13.0",
- "react": ">=16.9.0",
+ "react": "^16.9.0 || ^17.0.0 || ^18.0.0",
"rxjs": ">=7.0.0"
},
"dependencies": {
diff --git a/packages/sheets-formula/package.json b/packages/sheets-formula/package.json
index dec1152b96..7d8c409c5c 100644
--- a/packages/sheets-formula/package.json
+++ b/packages/sheets-formula/package.json
@@ -69,7 +69,7 @@
"@univerjs/sheets-ui": "workspace:*",
"@univerjs/ui": "workspace:*",
"@wendellhu/redi": "0.13.0",
- "react": ">=16.9.0",
+ "react": "^16.9.0 || ^17.0.0 || ^18.0.0",
"rxjs": ">=7.0.0"
},
"dependencies": {
diff --git a/packages/sheets-numfmt/package.json b/packages/sheets-numfmt/package.json
index 616dd757d7..b7afeb23e5 100644
--- a/packages/sheets-numfmt/package.json
+++ b/packages/sheets-numfmt/package.json
@@ -75,7 +75,7 @@
"@univerjs/sheets-ui": "workspace:*",
"@univerjs/ui": "workspace:*",
"@wendellhu/redi": "0.13.0",
- "react": ">=16.9.0",
+ "react": "^16.9.0 || ^17.0.0 || ^18.0.0",
"rxjs": ">=7.0.0"
},
"dependencies": {
diff --git a/packages/sheets-ui/package.json b/packages/sheets-ui/package.json
index dc937b39e0..95ca47bb3b 100644
--- a/packages/sheets-ui/package.json
+++ b/packages/sheets-ui/package.json
@@ -77,7 +77,7 @@
"@univerjs/ui": "workspace:*",
"@wendellhu/redi": "0.13.0",
"clsx": ">=2.0.0",
- "react": ">=16.9.0",
+ "react": "^16.9.0 || ^17.0.0 || ^18.0.0",
"rxjs": ">=7.0.0"
},
"dependencies": {
diff --git a/packages/sheets-zen-editor/package.json b/packages/sheets-zen-editor/package.json
index a4d389010c..3654074a62 100644
--- a/packages/sheets-zen-editor/package.json
+++ b/packages/sheets-zen-editor/package.json
@@ -73,7 +73,7 @@
"@univerjs/ui": "workspace:*",
"@wendellhu/redi": "0.13.0",
"clsx": ">=2.0.0",
- "react": ">=16.9.0",
+ "react": "^16.9.0 || ^17.0.0 || ^18.0.0",
"rxjs": ">=7.0.0"
},
"dependencies": {
diff --git a/packages/slides-ui/package.json b/packages/slides-ui/package.json
index 2c373359a3..f4acff02f3 100644
--- a/packages/slides-ui/package.json
+++ b/packages/slides-ui/package.json
@@ -71,7 +71,7 @@
"@univerjs/slides": "workspace:*",
"@univerjs/ui": "workspace:*",
"@wendellhu/redi": "0.13.0",
- "react": ">=16.9.0"
+ "react": "^16.9.0 || ^17.0.0 || ^18.0.0"
},
"devDependencies": {
"@types/react": "^18.2.73",
diff --git a/packages/ui/package.json b/packages/ui/package.json
index d7c38ef374..f3ca5c90de 100644
--- a/packages/ui/package.json
+++ b/packages/ui/package.json
@@ -72,8 +72,8 @@
"@univerjs/engine-render": "workspace:*",
"@wendellhu/redi": "0.13.0",
"clsx": ">=2.0.0",
- "react": ">=16.9.0",
- "react-dom": ">=16.9.0",
+ "react": "^16.9.0 || ^17.0.0 || ^18.0.0",
+ "react-dom": "^16.9.0 || ^17.0.0 || ^18.0.0",
"rxjs": ">=7.0.0"
},
"dependencies": {
diff --git a/packages/uniscript/package.json b/packages/uniscript/package.json
index c468791d21..f4f188cfe8 100644
--- a/packages/uniscript/package.json
+++ b/packages/uniscript/package.json
@@ -72,7 +72,7 @@
"@univerjs/ui": "workspace:*",
"@wendellhu/redi": "0.13.0",
"monaco-editor": ">=0.44.0",
- "react": ">=16.9.0",
+ "react": "^16.9.0 || ^17.0.0 || ^18.0.0",
"rxjs": ">=7.0.0"
},
"devDependencies": {