Skip to content

Commit

Permalink
Upgrade to latest react v19 compatible types
Browse files Browse the repository at this point in the history
  • Loading branch information
acusti committed Dec 19, 2024
1 parent 1f93539 commit 9365030
Show file tree
Hide file tree
Showing 17 changed files with 80 additions and 78 deletions.
96 changes: 54 additions & 42 deletions .pnp.cjs

Large diffs are not rendered by default.

Binary file not shown.
Binary file not shown.
Binary file not shown.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
"@testing-library/react": "^16.1.0",
"@testing-library/user-event": "^14.5.2",
"@types/node": "^22.5.1",
"@types/react": "^18.3.3",
"@types/react": "^19.0.2",
"@typescript-eslint/eslint-plugin": "^8.18.1",
"@typescript-eslint/parser": "^8.18.1",
"eslint": "^9.17.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/css-value-input/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
"@testing-library/dom": "^10.4.0",
"@testing-library/react": "^16.0.1",
"@testing-library/user-event": "^14.5.2",
"@types/react": "^18.3.3",
"@types/react": "^19.0.2",
"happy-dom": "^15.7.3",
"react": "^19.0.0",
"react-dom": "^19.0.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/date-picker/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
"@testing-library/dom": "^10.4.0",
"@testing-library/react": "^16.0.1",
"@testing-library/user-event": "^14.5.2",
"@types/react": "^18.3.3",
"@types/react": "^19.0.2",
"happy-dom": "^15.11.7",
"react": "^19.0.0",
"react-dom": "^19.0.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"@storybook/react": "^8.4.7",
"@storybook/react-vite": "^8.4.7",
"@storybook/test": "^8.4.7",
"@types/react": "^18.3.3",
"@types/react": "^19.0.2",
"core-js": "^3.38.1",
"react": "^19.0.0",
"react-dom": "^19.0.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/dropdown/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
"@testing-library/dom": "^10.4.0",
"@testing-library/react": "^16.0.1",
"@testing-library/user-event": "^14.5.2",
"@types/react": "^18.3.3",
"@types/react": "^19.0.2",
"happy-dom": "^15.7.3",
"react": "^19.0.0",
"react-dom": "^19.0.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/input-text/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
"@testing-library/dom": "^10.4.0",
"@testing-library/react": "^16.0.1",
"@testing-library/user-event": "^14.5.2",
"@types/react": "^18.3.3",
"@types/react": "^19.0.2",
"happy-dom": "^15.7.3",
"react": "^19.0.0",
"react-dom": "^19.0.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/styling/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
"@testing-library/dom": "^10.4.0",
"@testing-library/react": "^16.0.1",
"@testing-library/user-event": "^14.5.2",
"@types/react": "^18.3.3",
"@types/react": "^19.0.2",
"happy-dom": "^15.7.3",
"react": "^19.0.0",
"react-dom": "^19.0.0",
Expand Down
1 change: 0 additions & 1 deletion packages/styling/src/Style.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ const Style = ({ children, href: _href, precedence = 'medium' }: Props) => {
// https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/react/canary.d.ts
// https://react.dev/reference/react-dom/components/style#props
return (
// @ts-expect-error @types/react is missing new <style> props
<style href={href} precedence={precedence}>
{styles}
</style>
Expand Down
1 change: 0 additions & 1 deletion packages/styling/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/// <reference types="react/canary" />
export { default as Style } from './Style.js';

export const SYSTEM_UI_FONT =
Expand Down
2 changes: 1 addition & 1 deletion packages/use-bounding-client-rect/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
},
"homepage": "https://github.com/acusti/uikit/tree/main/packages/use-bounding-client-rect#readme",
"devDependencies": {
"@types/react": "^18.3.4",
"@types/react": "^19.0.2",
"react": "^19.0.0",
"react-dom": "^19.0.0",
"typescript": "5.3.3",
Expand Down
2 changes: 1 addition & 1 deletion packages/use-is-out-of-bounds/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
},
"homepage": "https://github.com/acusti/uikit/tree/main/packages/use-is-out-of-bounds#readme",
"devDependencies": {
"@types/react": "^18.3.4",
"@types/react": "^19.0.2",
"react": "^19.0.0",
"react-dom": "^19.0.0",
"typescript": "5.3.3",
Expand Down
2 changes: 1 addition & 1 deletion packages/use-keyboard-events/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
"@testing-library/dom": "^10.4.0",
"@testing-library/react": "^16.0.1",
"@testing-library/user-event": "^14.5.2",
"@types/react": "^18.3.4",
"@types/react": "^19.0.2",
"happy-dom": "^15.7.3",
"react": "^19.0.0",
"react-dom": "^19.0.0",
Expand Down
40 changes: 16 additions & 24 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ __metadata:
"@testing-library/dom": "npm:^10.4.0"
"@testing-library/react": "npm:^16.0.1"
"@testing-library/user-event": "npm:^14.5.2"
"@types/react": "npm:^18.3.3"
"@types/react": "npm:^19.0.2"
clsx: "npm:^2"
happy-dom: "npm:^15.7.3"
react: "npm:^19.0.0"
Expand Down Expand Up @@ -74,7 +74,7 @@ __metadata:
"@testing-library/dom": "npm:^10.4.0"
"@testing-library/react": "npm:^16.0.1"
"@testing-library/user-event": "npm:^14.5.2"
"@types/react": "npm:^18.3.3"
"@types/react": "npm:^19.0.2"
clsx: "npm:^2"
happy-dom: "npm:^15.11.7"
react: "npm:^19.0.0"
Expand All @@ -94,12 +94,12 @@ __metadata:
"@acusti/input-text": "npm:^1.8.0"
"@acusti/matchmaking": "npm:^0.7.0"
"@acusti/styling": "npm:^0.7.2 || ^1.0.0-0"
"@acusti/use-is-out-of-bounds": "npm:^0.11.0"
"@acusti/use-keyboard-events": "npm:^0.7.0"
"@acusti/use-is-out-of-bounds": "npm:^0.12.0"
"@acusti/use-keyboard-events": "npm:^0.8.0"
"@testing-library/dom": "npm:^10.4.0"
"@testing-library/react": "npm:^16.0.1"
"@testing-library/user-event": "npm:^14.5.2"
"@types/react": "npm:^18.3.3"
"@types/react": "npm:^19.0.2"
clsx: "npm:^2"
happy-dom: "npm:^15.7.3"
react: "npm:^19.0.0"
Expand All @@ -119,7 +119,7 @@ __metadata:
"@testing-library/dom": "npm:^10.4.0"
"@testing-library/react": "npm:^16.0.1"
"@testing-library/user-event": "npm:^14.5.2"
"@types/react": "npm:^18.3.3"
"@types/react": "npm:^19.0.2"
happy-dom: "npm:^15.7.3"
react: "npm:^19.0.0"
react-dom: "npm:^19.0.0"
Expand Down Expand Up @@ -166,7 +166,7 @@ __metadata:
"@testing-library/dom": "npm:^10.4.0"
"@testing-library/react": "npm:^16.0.1"
"@testing-library/user-event": "npm:^14.5.2"
"@types/react": "npm:^18.3.3"
"@types/react": "npm:^19.0.2"
happy-dom: "npm:^15.7.3"
react: "npm:^19.0.0"
react-dom: "npm:^19.0.0"
Expand Down Expand Up @@ -197,7 +197,7 @@ __metadata:
"@storybook/react": "npm:^8.4.7"
"@storybook/react-vite": "npm:^8.4.7"
"@storybook/test": "npm:^8.4.7"
"@types/react": "npm:^18.3.3"
"@types/react": "npm:^19.0.2"
core-js: "npm:^3.38.1"
react: "npm:^19.0.0"
react-dom: "npm:^19.0.0"
Expand All @@ -217,7 +217,7 @@ __metadata:
"@testing-library/react": "npm:^16.1.0"
"@testing-library/user-event": "npm:^14.5.2"
"@types/node": "npm:^22.5.1"
"@types/react": "npm:^18.3.3"
"@types/react": "npm:^19.0.2"
"@typescript-eslint/eslint-plugin": "npm:^8.18.1"
"@typescript-eslint/parser": "npm:^8.18.1"
eslint: "npm:^9.17.0"
Expand Down Expand Up @@ -260,7 +260,7 @@ __metadata:
version: 0.0.0-use.local
resolution: "@acusti/use-bounding-client-rect@workspace:packages/use-bounding-client-rect"
dependencies:
"@types/react": "npm:^18.3.4"
"@types/react": "npm:^19.0.2"
react: "npm:^19.0.0"
react-dom: "npm:^19.0.0"
typescript: "npm:5.3.3"
Expand All @@ -276,7 +276,7 @@ __metadata:
resolution: "@acusti/use-is-out-of-bounds@workspace:packages/use-is-out-of-bounds"
dependencies:
"@acusti/use-bounding-client-rect": "npm:^1.2.0"
"@types/react": "npm:^18.3.4"
"@types/react": "npm:^19.0.2"
react: "npm:^19.0.0"
react-dom: "npm:^19.0.0"
typescript: "npm:5.3.3"
Expand All @@ -294,7 +294,7 @@ __metadata:
"@testing-library/dom": "npm:^10.4.0"
"@testing-library/react": "npm:^16.0.1"
"@testing-library/user-event": "npm:^14.5.2"
"@types/react": "npm:^18.3.4"
"@types/react": "npm:^19.0.2"
happy-dom: "npm:^15.7.3"
react: "npm:^19.0.0"
react-dom: "npm:^19.0.0"
Expand Down Expand Up @@ -3343,13 +3343,6 @@ __metadata:
languageName: node
linkType: hard

"@types/prop-types@npm:*":
version: 15.7.3
resolution: "@types/prop-types@npm:15.7.3"
checksum: 10/90064105961cfabb9174e61e5010b4e7a471e21832118ad0258f196f4be19ad7dd0f724cc62b0e90939d0b830d4f49ba54dffde166893fd0d9be1f3b43db6981
languageName: node
linkType: hard

"@types/qs@npm:*, @types/qs@npm:^6.9.5":
version: 6.9.8
resolution: "@types/qs@npm:6.9.8"
Expand All @@ -3364,13 +3357,12 @@ __metadata:
languageName: node
linkType: hard

"@types/react@npm:>=16, @types/react@npm:^18.3.3, @types/react@npm:^18.3.4":
version: 18.3.4
resolution: "@types/react@npm:18.3.4"
"@types/react@npm:>=16, @types/react@npm:^19.0.2":
version: 19.0.2
resolution: "@types/react@npm:19.0.2"
dependencies:
"@types/prop-types": "npm:*"
csstype: "npm:^3.0.2"
checksum: 10/359973924be42cf9e7366e1d885b28e0b3bd56d31f24458c5351af7a3f2fc070511e90d517b2195fb229146cdcb70342db6318e279c31dd5057beec1105b704e
checksum: 10/b355cfa22814e934b381c4f6de67c66652255377c3ddc6a757ea195ccbd0e7095aadfe1a28713d8ab1221222b8f2ec237903f4ec0e54eaf656ac832782d25dd2
languageName: node
linkType: hard

Expand Down

0 comments on commit 9365030

Please sign in to comment.