@springmicro/forms 0.7.16 → 0.7.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +2 -1
- package/dist/index.js +10906 -12153
- package/dist/index.umd.cjs +76 -76
- package/package.json +3 -3
- package/src/FormRenderer.tsx +3 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@springmicro/forms",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.20",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"private": false,
|
|
6
6
|
"publishConfig": {
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"@rjsf/shadcn": "^6.2.5",
|
|
25
25
|
"@rjsf/utils": "^6.2.5",
|
|
26
26
|
"@rjsf/validator-ajv8": "^6.2.5",
|
|
27
|
-
"@springmicro/utils": "^0.7.
|
|
27
|
+
"@springmicro/utils": "^0.7.20",
|
|
28
28
|
"lodash": "^4.17.21",
|
|
29
29
|
"nanoid": "^5.0.7",
|
|
30
30
|
"react": "^19.2.4",
|
|
@@ -50,5 +50,5 @@
|
|
|
50
50
|
"vite": "^5.2.0",
|
|
51
51
|
"vite-plugin-dts": "^3.9.0"
|
|
52
52
|
},
|
|
53
|
-
"gitHead": "
|
|
53
|
+
"gitHead": "17216b9fa5725017f185d210dc57dca36e02f43c"
|
|
54
54
|
}
|
package/src/FormRenderer.tsx
CHANGED
|
@@ -110,9 +110,11 @@ const requestAQuote_HARDCODED = {
|
|
|
110
110
|
export function FormRenderer({
|
|
111
111
|
id,
|
|
112
112
|
test = false,
|
|
113
|
+
testFormContent,
|
|
113
114
|
}: {
|
|
114
115
|
id: string;
|
|
115
116
|
test?: boolean;
|
|
117
|
+
testFormContent?;
|
|
116
118
|
}) {
|
|
117
119
|
const [isSubmitting, setIsSubmitting] = React.useState(false);
|
|
118
120
|
const [formResult, setFormResult] = React.useState<FormResult | null>(null);
|
|
@@ -124,7 +126,7 @@ export function FormRenderer({
|
|
|
124
126
|
if (id === null) return;
|
|
125
127
|
if (test) {
|
|
126
128
|
// @ts-ignore
|
|
127
|
-
setForm(requestAQuote_HARDCODED);
|
|
129
|
+
setForm(testFormContent ?? requestAQuote_HARDCODED);
|
|
128
130
|
return;
|
|
129
131
|
}
|
|
130
132
|
|