Skip to content

Commit

Permalink
fix: fix findDOMNode deprecation issue under React 18.3.1 (#2403)
Browse files Browse the repository at this point in the history
  • Loading branch information
jikkai authored Jun 3, 2024
1 parent 296f399 commit 41d21c3
Show file tree
Hide file tree
Showing 29 changed files with 933 additions and 775 deletions.
10 changes: 5 additions & 5 deletions examples/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"@univerjs/engine-render": "workspace:*",
"@univerjs/facade": "workspace:*",
"@univerjs/find-replace": "workspace:*",
"@univerjs/icons": "^0.1.55",
"@univerjs/icons": "^0.1.56",
"@univerjs/rpc": "workspace:*",
"@univerjs/sheets": "workspace:*",
"@univerjs/sheets-conditional-formatting": "workspace:*",
Expand All @@ -53,14 +53,14 @@
"@wendellhu/redi": "0.15.2",
"clsx": "^2.1.1",
"monaco-editor": "0.49.0",
"react": "18.2.0",
"react-dom": "18.2.0",
"react": "18.3.1",
"react-dom": "18.3.1",
"react-mosaic-component": "^6.1.0",
"rxjs": "^7.8.1"
},
"devDependencies": {
"@types/react": "^18.2.79",
"@types/react-dom": "^18.2.25",
"@types/react": "^18.3.3",
"@types/react-dom": "^18.3.0",
"@univerjs/shared": "workspace:*",
"esbuild": "^0.21.4",
"esbuild-plugin-clean": "^1.0.1",
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
"@release-it/conventional-changelog": "^8.0.1",
"@storybook/react": "8.1.5",
"@types/node": "^20.12.12",
"@types/react": "^18.3.2",
"@types/react": "^18.3.3",
"@univerjs/design": "workspace:*",
"@univerjs/shared": "workspace:*",
"@vitejs/plugin-react": "^4.3.0",
Expand All @@ -68,8 +68,8 @@
"eslint-plugin-react-refresh": "^0.4.7",
"husky": "^9.0.11",
"lint-staged": "^15.2.5",
"react": "18.2.0",
"react-dom": "18.2.0",
"react": "18.3.1",
"react-dom": "18.3.1",
"release-it": "^17.3.0",
"serve": "^14.2.3",
"turbo": "^1.13.3",
Expand Down
26 changes: 13 additions & 13 deletions packages/design/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -75,37 +75,37 @@
},
"dependencies": {
"@rc-component/color-picker": "^1.5.3",
"@rc-component/trigger": "^1.18.3",
"@rc-component/trigger": "^2.2.0",
"@types/react-mentions": "^4.1.13",
"@univerjs/icons": "^0.1.55",
"rc-dialog": "^9.4.0",
"@univerjs/icons": "^0.1.56",
"rc-dialog": "^9.5.0",
"rc-dropdown": "^4.2.0",
"rc-input": "^1.4.5",
"rc-input-number": "^9.0.0",
"rc-menu": "^9.13.0",
"rc-input": "^1.5.1",
"rc-input-number": "^9.1.0",
"rc-menu": "^9.14.0",
"rc-picker": "^4.5.0",
"rc-segmented": "^2.3.0",
"rc-select": "^14.13.3",
"rc-textarea": "^1.6.3",
"rc-select": "^14.14.0",
"rc-textarea": "^1.7.0",
"rc-tooltip": "^6.2.0",
"rc-util": "^5.39.3",
"rc-util": "^5.41.0",
"react-draggable": "^4.4.6",
"react-grid-layout": "^1.4.4",
"react-mentions": "^4.4.10",
"react-transition-group": "^4.4.5"
},
"devDependencies": {
"@testing-library/react": "^14.2.2",
"@types/react": "^18.2.79",
"@types/react-dom": "^18.2.25",
"@types/react": "^18.3.3",
"@types/react-dom": "^18.3.0",
"@types/react-grid-layout": "^1.3.5",
"@types/react-transition-group": "^4.4.10",
"@univerjs/shared": "workspace:*",
"clsx": "^2.1.1",
"dayjs": "^1.11.11",
"less": "^4.2.0",
"react": "18.2.0",
"react-dom": "18.2.0",
"react": "18.3.1",
"react-dom": "18.3.1",
"typescript": "^5.4.5",
"vite": "^5.2.12",
"vitest": "^1.6.0"
Expand Down
4 changes: 2 additions & 2 deletions packages/docs-drawing-ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@
"rxjs": ">=7.0.0"
},
"dependencies": {
"@univerjs/icons": "^0.1.55"
"@univerjs/icons": "^0.1.56"
},
"devDependencies": {
"@univerjs/core": "workspace:*",
Expand All @@ -98,7 +98,7 @@
"clsx": "^2.1.1",
"less": "^4.2.0",
"ot-json1": "^1.0.2",
"react": "18.2.0",
"react": "18.3.1",
"rxjs": "^7.8.1",
"typescript": "^5.4.5",
"vite": "^5.2.12",
Expand Down
4 changes: 2 additions & 2 deletions packages/docs-ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@
"rxjs": ">=7.0.0"
},
"devDependencies": {
"@types/react": "^18.2.79",
"@types/react": "^18.3.3",
"@univerjs/core": "workspace:*",
"@univerjs/design": "workspace:*",
"@univerjs/docs": "workspace:*",
Expand All @@ -87,7 +87,7 @@
"@univerjs/ui": "workspace:*",
"@wendellhu/redi": "0.15.2",
"less": "^4.2.0",
"react": "18.2.0",
"react": "18.3.1",
"rxjs": "^7.8.1",
"typescript": "^5.4.5",
"vite": "^5.2.12",
Expand Down
4 changes: 2 additions & 2 deletions packages/drawing-ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@
"react": "^16.9.0 || ^17.0.0 || ^18.0.0"
},
"dependencies": {
"@univerjs/icons": "^0.1.55"
"@univerjs/icons": "^0.1.56"
},
"devDependencies": {
"@univerjs/core": "workspace:*",
Expand All @@ -84,7 +84,7 @@
"@wendellhu/redi": "0.15.2",
"clsx": "^2.1.1",
"less": "^4.2.0",
"react": "18.2.0",
"react": "18.3.1",
"rxjs": "^7.8.1",
"typescript": "^5.4.5",
"vite": "^5.2.12",
Expand Down
4 changes: 2 additions & 2 deletions packages/drawing/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
"rxjs": ">=7.0.0"
},
"dependencies": {
"@univerjs/icons": "^0.1.55",
"@univerjs/icons": "^0.1.56",
"ot-json1": "^1.0.2"
},
"devDependencies": {
Expand All @@ -76,7 +76,7 @@
"@wendellhu/redi": "0.15.2",
"less": "^4.2.0",
"ot-json1": "^1.0.2",
"react": "18.2.0",
"react": "18.3.1",
"rxjs": "^7.8.1",
"typescript": "^5.4.5",
"vite": "^5.2.12",
Expand Down
6 changes: 3 additions & 3 deletions packages/find-replace/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -77,10 +77,10 @@
"rxjs": ">=7.0.0"
},
"dependencies": {
"@univerjs/icons": "^0.1.55"
"@univerjs/icons": "^0.1.56"
},
"devDependencies": {
"@types/react": "^18.2.79",
"@types/react": "^18.3.3",
"@univerjs/core": "workspace:*",
"@univerjs/design": "workspace:*",
"@univerjs/engine-formula": "workspace:*",
Expand All @@ -89,7 +89,7 @@
"@univerjs/ui": "workspace:*",
"@wendellhu/redi": "0.15.2",
"less": "^4.2.0",
"react": "18.2.0",
"react": "18.3.1",
"rxjs": "^7.8.1",
"typescript": "^5.4.5",
"vite": "^5.2.12",
Expand Down
4 changes: 2 additions & 2 deletions packages/sheets-conditional-formatting-ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@
"rxjs": ">=7.0.0"
},
"dependencies": {
"@univerjs/icons": "^0.1.55",
"@univerjs/icons": "^0.1.56",
"@univerjs/protocol": "^0.1.34",
"@univerjs/sheets-conditional-formatting": "workspace:*",
"lodash.get": "^4.4.2",
Expand All @@ -107,7 +107,7 @@
"@wendellhu/redi": "0.15.2",
"clsx": "^2.1.1",
"less": "^4.2.0",
"react": "18.2.0",
"react": "18.3.1",
"rxjs": "^7.8.1",
"typescript": "^5.4.5",
"vite": "^5.2.12",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,12 @@ export const ColorPicker = (props: IColorPickerProps) => {

return Icon && (!disable
? (
<Dropdown overlay={(
<div className={`${styles.cfColorPicker} `}>
<OriginColorPicker color={color} onChange={onChange} />
</div>
)}
<Dropdown
overlay={(
<div className={`${styles.cfColorPicker} `}>
<OriginColorPicker color={color} onChange={onChange} />
</div>
)}
>
<span className={`${styles.cfColorPickerIcon} ${className}`}>
<Icon extend={{ colorChannel1: colorKit.isValid ? color : 'rgb(var(--primary-color))' }} />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,6 @@ const IconSetRuleEdit = (props: {
{icon ? <img src={icon} className={styles.icon} /> : <SlashSingle className={styles.icon} />}
<MoreDownSingle />
</div>

</Dropdown>

</div>
Expand Down
4 changes: 2 additions & 2 deletions packages/sheets-data-validation/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@
"rxjs": ">=7.0.0"
},
"dependencies": {
"@univerjs/icons": "^0.1.55",
"@univerjs/icons": "^0.1.56",
"@univerjs/protocol": "^0.1.34"
},
"devDependencies": {
Expand All @@ -95,7 +95,7 @@
"clsx": "^2.1.1",
"dayjs": "^1.11.11",
"less": "^4.2.0",
"react": "18.2.0",
"react": "18.3.1",
"rxjs": "^7.8.1",
"typescript": "^5.4.5",
"vite": "^5.2.12",
Expand Down
4 changes: 2 additions & 2 deletions packages/sheets-drawing-ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@
"rxjs": ">=7.0.0"
},
"dependencies": {
"@univerjs/icons": "^0.1.55"
"@univerjs/icons": "^0.1.56"
},
"devDependencies": {
"@univerjs/core": "workspace:*",
Expand All @@ -97,7 +97,7 @@
"@wendellhu/redi": "0.15.2",
"clsx": "^2.1.1",
"less": "^4.2.0",
"react": "18.2.0",
"react": "18.3.1",
"rxjs": "^7.8.1",
"typescript": "^5.4.5",
"vite": "^5.2.12",
Expand Down
4 changes: 2 additions & 2 deletions packages/sheets-filter-ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@
"rxjs": ">=7.0.0"
},
"dependencies": {
"@univerjs/icons": "^0.1.55",
"@univerjs/icons": "^0.1.56",
"rc-virtual-list": "^3.11.5"
},
"devDependencies": {
Expand All @@ -91,7 +91,7 @@
"@wendellhu/redi": "0.15.2",
"clsx": "^2.1.1",
"less": "^4.2.0",
"react": "18.2.0",
"react": "18.3.1",
"rxjs": "^7.8.1",
"typescript": "^5.4.5",
"vite": "^5.2.12",
Expand Down
6 changes: 3 additions & 3 deletions packages/sheets-formula/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -77,10 +77,10 @@
"rxjs": ">=7.0.0"
},
"dependencies": {
"@univerjs/icons": "^0.1.55"
"@univerjs/icons": "^0.1.56"
},
"devDependencies": {
"@types/react": "^18.2.79",
"@types/react": "^18.3.3",
"@univerjs/core": "workspace:*",
"@univerjs/design": "workspace:*",
"@univerjs/docs": "workspace:*",
Expand All @@ -94,7 +94,7 @@
"@vitejs/plugin-react": "^4.2.1",
"@wendellhu/redi": "0.15.2",
"less": "^4.2.0",
"react": "18.2.0",
"react": "18.3.1",
"rxjs": "^7.8.1",
"typescript": "^5.4.5",
"vite": "^5.2.12",
Expand Down
2 changes: 1 addition & 1 deletion packages/sheets-hyper-link-ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@
"rxjs": ">=7.0.0"
},
"dependencies": {
"@univerjs/icons": "^0.1.55",
"@univerjs/icons": "^0.1.56",
"@univerjs/sheets-hyper-link": "workspace:*"
},
"devDependencies": {
Expand Down
6 changes: 3 additions & 3 deletions packages/sheets-numfmt/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -80,10 +80,10 @@
"rxjs": ">=7.0.0"
},
"dependencies": {
"@univerjs/icons": "^0.1.55"
"@univerjs/icons": "^0.1.56"
},
"devDependencies": {
"@types/react": "^18.2.79",
"@types/react": "^18.3.3",
"@univerjs/core": "workspace:*",
"@univerjs/design": "workspace:*",
"@univerjs/engine-formula": "workspace:*",
Expand All @@ -95,7 +95,7 @@
"@univerjs/ui": "workspace:*",
"@wendellhu/redi": "0.15.2",
"less": "^4.2.0",
"react": "18.2.0",
"react": "18.3.1",
"rxjs": "^7.8.1",
"typescript": "^5.4.5",
"vite": "^5.2.12",
Expand Down
4 changes: 2 additions & 2 deletions packages/sheets-thread-comment/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@
"rxjs": ">=7.0.0"
},
"dependencies": {
"@univerjs/icons": "^0.1.55",
"@univerjs/icons": "^0.1.56",
"@univerjs/thread-comment": "workspace:*",
"@univerjs/thread-comment-ui": "workspace:*"
},
Expand All @@ -86,7 +86,7 @@
"@univerjs/ui": "workspace:*",
"@wendellhu/redi": "0.15.2",
"clsx": "^2.1.1",
"react": "18.2.0",
"react": "18.3.1",
"rxjs": "^7.8.1",
"typescript": "^5.4.5",
"vite": "^5.2.12",
Expand Down
6 changes: 3 additions & 3 deletions packages/sheets-ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -83,11 +83,11 @@
"rxjs": ">=7.0.0"
},
"dependencies": {
"@univerjs/icons": "^0.1.55",
"@univerjs/icons": "^0.1.56",
"@univerjs/protocol": "^0.1.34"
},
"devDependencies": {
"@types/react": "^18.2.79",
"@types/react": "^18.3.3",
"@univerjs/core": "workspace:*",
"@univerjs/design": "workspace:*",
"@univerjs/docs": "workspace:*",
Expand All @@ -100,7 +100,7 @@
"@wendellhu/redi": "0.15.2",
"clsx": "^2.1.1",
"less": "^4.2.0",
"react": "18.2.0",
"react": "18.3.1",
"rxjs": "^7.8.1",
"typescript": "^5.4.5",
"vite": "^5.2.12",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -164,9 +164,11 @@ export function SheetBarMenu(props: ISheetBarMenuProps) {
visible={visible}
onVisibleChange={onVisibleChange}
>
<SheetBarButton>
<ConvertSingle />
</SheetBarButton>
<div>
<SheetBarButton>
<ConvertSingle />
</SheetBarButton>
</div>
</Dropdown>
);
}
Loading

0 comments on commit 41d21c3

Please sign in to comment.