@springmicro/forms 0.7.21 → 0.7.22

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.21",
3
+ "version": "0.7.22",
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.21",
27
+ "@springmicro/utils": "^0.7.22",
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": "e8fafa3c55eef78488e2a8193d4178e2d843a5f5"
53
+ "gitHead": "8bd83cea14b624431c069e6bebba77f858483da6"
54
54
  }
@@ -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);