@springmicro/forms 0.7.16 → 0.7.19

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@springmicro/forms",
3
- "version": "0.7.16",
3
+ "version": "0.7.19",
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.16",
27
+ "@springmicro/utils": "^0.7.19",
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": "3969208c879eb53f646849f05369b1ee2811f8ac"
53
+ "gitHead": "5242f8a3ea5bde25f4b6681f9a30baae76713016"
54
54
  }
@@ -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