diff --git a/apps/compliance-portal/package.json b/apps/compliance-portal/package.json index 77f07ef94..352dfa8cd 100644 --- a/apps/compliance-portal/package.json +++ b/apps/compliance-portal/package.json @@ -16,19 +16,19 @@ "@probo/relay": "1.0.0", "@probo/routes": "1.0.0", "@probo/ui": "1.0.0", - "i18next": "^26.3.1", + "i18next": "^26.3.4", "react": "^19.2.7", "react-dom": "^19.2.7", "react-i18next": "^17.0.8", "react-relay": "^21.0.1", - "react-router": "^8.0.0", + "react-router": "^8.1.0", "relay-runtime": "^21.0.1" }, "devDependencies": { - "@babel/core": "^7.29.0", + "@babel/core": "^8.0.1", "@rolldown/plugin-babel": "^0.2.3", - "@tailwindcss/vite": "^4.3.1", - "@types/node": "^25.9.3", + "@tailwindcss/vite": "^4.3.2", + "@types/node": "^26.1.0", "@types/react": "^19.2.17", "@types/react-dom": "^19.2.3", "@types/react-relay": "^18.2.1", @@ -38,7 +38,7 @@ "graphql": "^17.0.1", "tailwindcss": "^4.3.1", "typescript": "~6.0.3", - "vite": "^8.0.16" + "vite": "^8.1.2" }, "volta": { "node": "24.4.0" diff --git a/apps/console/package.json b/apps/console/package.json index 2e18121fe..3c88b22c7 100644 --- a/apps/console/package.json +++ b/apps/console/package.json @@ -24,23 +24,23 @@ "clsx": "^2.1.1", "react": "^19.2.7", "react-dom": "^19.2.7", - "react-dropzone": "^14.3.8", + "react-dropzone": "^15.0.0", "react-error-boundary": "^6.0.0", "react-hook-form": "^7.56.4", "react-pdf": "^10.3.0", "react-relay": "^21.0.1", - "react-router": "^8.0.0", + "react-router": "^8.1.0", "relay-runtime": "^21.0.1", "use-debounce": "^10.0.5", "usehooks-ts": "^3.1.1", - "zod": "^3.25.17" + "zod": "^4.4.3" }, "devDependencies": { - "@babel/core": "^7.29.0", + "@babel/core": "^8.0.1", "@rolldown/plugin-babel": "^0.2.3", - "@tailwindcss/vite": "^4.3.1", + "@tailwindcss/vite": "^4.3.2", "@types/babel__core": "^7.20.5", - "@types/node": "^24", + "@types/node": "^26", "@types/react": "^19.2.17", "@types/react-dom": "^19.2.3", "@vitejs/plugin-react": "^6.0.2", @@ -48,6 +48,6 @@ "graphql": "^17.0.1", "tailwindcss": "^4.3.1", "typescript": "~6.0.3", - "vite": "^8.0.16" + "vite": "^8.1.2" } } diff --git a/apps/console/src/components/table/EditableTable.tsx b/apps/console/src/components/table/EditableTable.tsx index e888234dd..ecacaa5f0 100644 --- a/apps/console/src/components/table/EditableTable.tsx +++ b/apps/console/src/components/table/EditableTable.tsx @@ -40,7 +40,7 @@ import { useStateWithSchema } from "#/hooks/useStateWithSchema"; type ColumnDefinition = { label: string; field: string } | string; -type EditableTableRowProps = { +type EditableTableRowProps>> = { item?: T; onUpdate: (key: keyof z.infer, value: z.infer[typeof key]) => void; errors: Record; @@ -51,7 +51,7 @@ type EditableTableRowProps = { */ export function EditableTable< T extends { id: string }, - S extends z.ZodSchema, + S extends z.ZodType>, >(props: { // Schema to create a new item schema: S; @@ -123,7 +123,10 @@ export function EditableTable< ); } -function NewItemRow(props: { +function NewItemRow< + T extends { id: string }, + S extends z.ZodType>, +>(props: { schema: S; defaultValue: z.infer; connectionId: string; @@ -153,7 +156,10 @@ function NewItemRow(props: { }); }; return ( - + void} + errors={errors} + > {props.row({ errors, onUpdate: update })}