@springmicro/forms 0.7.21 → 0.7.23
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 +9573 -9461
- package/dist/index.umd.cjs +78 -78
- 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.23",
|
|
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.23",
|
|
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": "d1f4ad0110ef4cf25f65cc1b59886624db416a78"
|
|
54
54
|
}
|
package/src/FormRenderer.tsx
CHANGED
|
@@ -111,10 +111,12 @@ export function FormRenderer({
|
|
|
111
111
|
id,
|
|
112
112
|
test = false,
|
|
113
113
|
testFormContent,
|
|
114
|
+
affiliateCode: affiliate_code,
|
|
114
115
|
}: {
|
|
115
116
|
id: string;
|
|
116
117
|
test?: boolean;
|
|
117
118
|
testFormContent?;
|
|
119
|
+
affiliateCode?: string;
|
|
118
120
|
}) {
|
|
119
121
|
const [isSubmitting, setIsSubmitting] = React.useState(false);
|
|
120
122
|
const [formResult, setFormResult] = React.useState<FormResult | null>(null);
|
|
@@ -149,7 +151,7 @@ export function FormRenderer({
|
|
|
149
151
|
"content-type": "application/json",
|
|
150
152
|
},
|
|
151
153
|
method: "POST",
|
|
152
|
-
body: JSON.stringify({ data: data.formData }),
|
|
154
|
+
body: JSON.stringify({ data: data.formData, affiliate_code }),
|
|
153
155
|
})
|
|
154
156
|
.then((res) => {
|
|
155
157
|
setIsSubmitting(false);
|