Skip to content

Commit 541f616

Browse files
committed
chore(deps): update rjsf to v5
1 parent 97f737a commit 541f616

File tree

6 files changed

+90
-62
lines changed

6 files changed

+90
-62
lines changed

components/executionsCards/ApplicationCard/ApplicationModal.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@ import { useGetApplication } from "@squonk/data-manager-client/application";
55
import { getGetInstancesQueryKey, useCreateInstance } from "@squonk/data-manager-client/instance";
66

77
import { Grid, MenuItem, TextField } from "@mui/material";
8-
import Form from "@rjsf/material-ui/v5";
8+
import Form from "@rjsf/mui";
9+
import validator from "@rjsf/validator-ajv8";
910
import { useQueryClient } from "@tanstack/react-query";
1011

1112
import { useEnqueueError } from "../../../hooks/useEnqueueStackError";
@@ -129,6 +130,7 @@ export const ApplicationModal = ({
129130
formData={formData}
130131
schema={schema}
131132
showErrorList={false}
133+
validator={validator}
132134
onChange={(event) => setFormData(event.formData)}
133135
>
134136
{/* Don't render a submit button */}

components/executionsCards/JobCard/JobModal.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ import { getGetInstancesQueryKey, useCreateInstance } from "@squonk/data-manager
1010
import { useGetJob } from "@squonk/data-manager-client/job";
1111

1212
import { Box, Grid, TextField, Typography } from "@mui/material";
13-
import Form from "@rjsf/material-ui/v5";
13+
import Form from "@rjsf/mui";
14+
import validator from "@rjsf/validator-ajv8";
1415
import { useQueryClient } from "@tanstack/react-query";
1516
import dynamic from "next/dynamic";
1617

@@ -187,6 +188,7 @@ export const JobModal = ({
187188
schema={JSON.parse(job.variables.options)}
188189
showErrorList={false}
189190
uiSchema={{ "ui:order": job.variables.order?.options }}
191+
validator={validator}
190192
onChange={(event) => setOptionsFormData(event.formData)}
191193
>
192194
{/* Remove the default submit button */}

components/uploads/MimeTypeCard.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
import type { TypeSummary } from "@squonk/data-manager-client";
22

33
import { Card, CardContent } from "@mui/material";
4-
import Form from "@rjsf/material-ui/v5";
4+
import Form from "@rjsf/mui";
5+
import validator from "@rjsf/validator-ajv8";
56

67
export interface MimeTypeCardProps {
78
/**
@@ -31,6 +32,7 @@ export const MimeTypeCard = ({ type, formDatas, onFormChange }: MimeTypeCardProp
3132
noHtml5Validate
3233
formData={formDatas[type.mime]}
3334
schema={type.formatter_options}
35+
validator={validator}
3436
onChange={(event) => onFormChange({ ...formDatas, [type.mime]: event.formData })}
3537
>
3638
{/* Disable the default submit button */}

package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,10 @@
4848
"@mui/styles": "5.11.13",
4949
"@next/eslint-plugin-next": "13.2.4",
5050
"@next/mdx": "13.2.4",
51-
"@rjsf/core": "4.2.3",
52-
"@rjsf/material-ui": "4.2.3",
51+
"@rjsf/core": "5.2.1",
52+
"@rjsf/mui": "^5.2.1",
53+
"@rjsf/utils": "^5.2.1",
54+
"@rjsf/validator-ajv8": "^5.2.1",
5355
"@sentry/nextjs": "7.43.0",
5456
"@squonk/account-server-client": "2.0.3",
5557
"@squonk/data-manager-client": "1.1.0",

pnpm-lock.yaml

Lines changed: 77 additions & 52 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tsconfig.json

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,6 @@
2020
"jsxImportSource": "@emotion/react",
2121
"incremental": true,
2222
"baseUrl": ".",
23-
"paths": {
24-
"@rjsf/material-ui/*": [
25-
"node_modules/@rjsf/material-ui/dist/*"
26-
]
27-
},
2823
},
2924
"exclude": [
3025
"node_modules",

0 commit comments

Comments
 (0)