From 47bcc82c881b6f249116b20bc6949babde1c9f95 Mon Sep 17 00:00:00 2001 From: ghost2023 Date: Fri, 22 May 2026 10:47:12 +0300 Subject: [PATCH] chore: install react-hook-form, zod and @hookform/resolvers to freight web portal --- apps/edr-freight-web/portal/package.json | 3 ++ pnpm-lock.yaml | 38 ++++++++++++++++++++++-- 2 files changed, 39 insertions(+), 2 deletions(-) diff --git a/apps/edr-freight-web/portal/package.json b/apps/edr-freight-web/portal/package.json index 81a34f736..9afc896f7 100644 --- a/apps/edr-freight-web/portal/package.json +++ b/apps/edr-freight-web/portal/package.json @@ -14,6 +14,7 @@ "dependencies": { "@edr/types": "workspace:*", "@edr/ui-common": "workspace:*", + "@hookform/resolvers": "^5.4.0", "@tanstack/react-query": "^5.59.0", "@tria-plc/iamui-common": "1.1.1", "axios": "^1.7.7", @@ -23,9 +24,11 @@ "radix-ui": "^1.4.3", "react": "19.2.6", "react-dom": "19.2.6", + "react-hook-form": "^7.76.0", "react-router-dom": "^6.27.0", "recharts": "^3.8.1", "tailwind-merge": "^3.6.0", + "zod": "^4.4.3", "zustand": "^5.0.0" }, "devDependencies": { diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index ca17749d4..6aa2017e8 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -229,6 +229,9 @@ importers: '@edr/ui-common': specifier: workspace:* version: link:../../../packages/ui-common + '@hookform/resolvers': + specifier: ^5.4.0 + version: 5.4.0(react-hook-form@7.76.0(react@18.3.1)) '@tanstack/react-query': specifier: ^5.59.0 version: 5.100.10(react@18.3.1) @@ -256,6 +259,9 @@ importers: react-dom: specifier: 18.3.1 version: 18.3.1(react@18.3.1) + react-hook-form: + specifier: ^7.76.0 + version: 7.76.0(react@18.3.1) react-router-dom: specifier: ^6.27.0 version: 6.30.3(react-dom@18.3.1(react@18.3.1))(react@18.3.1) @@ -265,6 +271,9 @@ importers: tailwind-merge: specifier: ^3.6.0 version: 3.6.0 + zod: + specifier: ^4.4.3 + version: 4.4.3 zustand: specifier: ^5.0.0 version: 5.0.13(@types/react@18.3.28)(immer@11.1.8)(react@18.3.1)(use-sync-external-store@1.6.0(react@18.3.1)) @@ -1324,6 +1333,11 @@ packages: peerDependencies: react-hook-form: ^7.55.0 + '@hookform/resolvers@5.4.0': + resolution: {integrity: sha512-EIsqr/t/qbinPIhGjMdtvutIN1Kk4uwbROE9/UQ93CAVGR7GkA7Y92+fX80OzXi/OB67jVFYwKGO1WzkxmkFZw==} + peerDependencies: + react-hook-form: ^7.55.0 + '@humanwhocodes/config-array@0.13.0': resolution: {integrity: sha512-DZLEEqFWQFiyK6h5YIeynKx7JlvCYWL0cImfSRXZ9l4Sg2efkFGTuFf6vzXjK1cq6IYkU+Eg/JizXw+TD2vRNw==} engines: {node: '>=10.10.0'} @@ -9252,6 +9266,12 @@ packages: peerDependencies: react: 18.3.1 + react-hook-form@7.76.0: + resolution: {integrity: sha512-eKtLGgFeSgkHqQD8J59AMZ9a4uD1D83iSIzt4YlTGD7liDen5rrjcUO1rVIGd9yC1gofryjtHbv+4ny4hkLWlw==} + engines: {node: '>=18.0.0'} + peerDependencies: + react: 18.3.1 + react-i18next@15.7.4: resolution: {integrity: sha512-nyU8iKNrI5uDJch0z9+Y5XEr34b0wkyYj3Rp+tfbahxtlswxSCjcUL9H0nqXo9IR3/t5Y5PKIA3fx3MfUyR9Xw==} peerDependencies: @@ -11449,6 +11469,9 @@ packages: zod@3.25.76: resolution: {integrity: sha512-gzUt/qt81nXsFGKIFcC3YnfEAx5NkunCfnDlvuBSSFS02bcXu4Lmea0AFIUwbLWxWPx3d9p8S5QoaujKcNQxcQ==} + zod@4.4.3: + resolution: {integrity: sha512-ytENFjIJFl2UwYglde2jchW2Hwm4GJFLDiSXWdTrJQBIN9Fcyp7n4DhxJEiWNAJMV1/BqWfW/kkg71UDcHJyTQ==} + zustand@5.0.13: resolution: {integrity: sha512-efI2tVaVQPqtOh114loML/Z80Y4NP3yc+Ff0fYiZJPauNeWZeIp/bRFD7I9bfmCOYBh/PHxlglQ9+wvlwnPikQ==} engines: {node: '>=12.20.0'} @@ -12264,6 +12287,11 @@ snapshots: '@standard-schema/utils': 0.3.0 react-hook-form: 7.75.0(react@18.3.1) + '@hookform/resolvers@5.4.0(react-hook-form@7.76.0(react@18.3.1))': + dependencies: + '@standard-schema/utils': 0.3.0 + react-hook-form: 7.76.0(react@18.3.1) + '@humanwhocodes/config-array@0.13.0': dependencies: '@humanwhocodes/object-schema': 2.0.3 @@ -14897,7 +14925,7 @@ snapshots: '@chakra-ui/react': 3.35.0(@emotion/react@11.14.0(@types/react@18.3.28)(react@18.3.1))(react-dom@18.3.1(react@18.3.1))(react@18.3.1) '@emotion/react': 11.14.0(@types/react@18.3.28)(react@18.3.1) '@emotion/styled': 11.14.1(@emotion/react@11.14.0(@types/react@18.3.28)(react@18.3.1))(@types/react@18.3.28)(react@18.3.1) - '@hookform/resolvers': 5.2.2(react-hook-form@7.75.0(react@18.3.1)) + '@hookform/resolvers': 5.4.0(react-hook-form@7.76.0(react@18.3.1)) '@lottiefiles/react-lottie-player': 3.6.0(react@18.3.1) '@mantine/core': 8.3.18(@mantine/hooks@8.3.18(react@18.3.1))(@types/react@18.3.28)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) '@mantine/dates': 8.3.18(@mantine/core@8.3.18(@mantine/hooks@8.3.18(react@18.3.1))(@types/react@18.3.28)(react-dom@18.3.1(react@18.3.1))(react@18.3.1))(@mantine/hooks@8.3.18(react@18.3.1))(dayjs@1.11.20)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) @@ -14972,7 +15000,7 @@ snapshots: react-day-picker: 9.14.0(react@18.3.1) react-dom: 18.3.1(react@18.3.1) react-dropzone: 14.4.1(react@18.3.1) - react-hook-form: 7.75.0(react@18.3.1) + react-hook-form: 7.76.0(react@18.3.1) react-i18next: 15.7.4(i18next@25.10.10(typescript@5.9.3))(react-dom@18.3.1(react@18.3.1))(react@18.3.1)(typescript@5.9.3) react-icons: 5.6.0(react@18.3.1) react-image-crop: 11.0.10(react@18.3.1) @@ -21997,6 +22025,10 @@ snapshots: dependencies: react: 18.3.1 + react-hook-form@7.76.0(react@18.3.1): + dependencies: + react: 18.3.1 + react-i18next@15.7.4(i18next@25.10.10(typescript@5.9.3))(react-dom@18.3.1(react@18.3.1))(react@18.3.1)(typescript@5.9.3): dependencies: '@babel/runtime': 7.29.2 @@ -24547,6 +24579,8 @@ snapshots: zod@3.25.76: {} + zod@4.4.3: {} + zustand@5.0.13(@types/react@18.3.28)(immer@11.1.8)(react@18.3.1)(use-sync-external-store@1.6.0(react@18.3.1)): optionalDependencies: '@types/react': 18.3.28