@wealthreach/site-kit 0.0.0-stage → 1.0.1

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.
Files changed (42) hide show
  1. package/README.md +20 -2
  2. package/dist/a11y/client.d.ts +23 -0
  3. package/dist/a11y/client.js +72 -0
  4. package/dist/a11y/index.d.ts +43 -0
  5. package/dist/a11y/index.js +194 -0
  6. package/dist/a11y/shell-client.d.ts +19 -0
  7. package/dist/a11y/shell-client.js +45 -0
  8. package/dist/analytics/index.d.ts +47 -0
  9. package/dist/analytics/index.js +122 -0
  10. package/dist/attribution-DQaAWtA5.d.ts +41 -0
  11. package/dist/blog/index.d.ts +131 -0
  12. package/dist/blog/index.js +259 -0
  13. package/dist/chunk-4YRCSRZZ.js +32 -0
  14. package/dist/chunk-7GDXQ6UB.js +772 -0
  15. package/dist/chunk-QQP7VG2C.js +231 -0
  16. package/dist/chunk-Y77ARZE4.js +214 -0
  17. package/dist/config/index.d.ts +20 -0
  18. package/dist/config/index.js +445 -0
  19. package/dist/consent/index.d.ts +103 -0
  20. package/dist/consent/index.js +61 -0
  21. package/dist/disclosures/index.d.ts +57 -0
  22. package/dist/disclosures/index.js +361 -0
  23. package/dist/forms/index.d.ts +128 -0
  24. package/dist/forms/index.js +449 -0
  25. package/dist/mdx/index.d.ts +15 -0
  26. package/dist/mdx/index.js +45 -0
  27. package/dist/next/config.cjs +140 -0
  28. package/dist/next/config.d.cts +36 -0
  29. package/dist/next/config.d.ts +36 -0
  30. package/dist/next/config.js +111 -0
  31. package/dist/next/draft-route.d.ts +10 -0
  32. package/dist/next/draft-route.js +49 -0
  33. package/dist/next/leads-route.d.ts +138 -0
  34. package/dist/next/leads-route.js +771 -0
  35. package/dist/next/privacy-mode.d.ts +14 -0
  36. package/dist/next/privacy-mode.js +86 -0
  37. package/dist/next/proxy.d.ts +19 -0
  38. package/dist/next/proxy.js +93 -0
  39. package/dist/regulatory-schema-uDKNJ7q8.d.ts +1301 -0
  40. package/dist/schema-C1ixytx2.d.ts +2911 -0
  41. package/dist/schema-DD0nDOD0.d.ts +1744 -0
  42. package/package.json +85 -3
@@ -0,0 +1,361 @@
1
+ // src/disclosures/regulatory-schema.ts
2
+ import { z } from "zod";
3
+ var text = z.string().trim().min(1);
4
+ var httpsUrl = z.string().trim().url().refine((value) => value.startsWith("https://"), {
5
+ message: "must be an https:// URL"
6
+ });
7
+ var urlOrPath = z.string().trim().min(1).refine(
8
+ (value) => value.startsWith("https://") || value.startsWith("/") && !value.startsWith("//"),
9
+ { message: "must be an https:// URL or site-relative /path" }
10
+ );
11
+ var US_STATES = {
12
+ AL: "Alabama",
13
+ AK: "Alaska",
14
+ AZ: "Arizona",
15
+ AR: "Arkansas",
16
+ CA: "California",
17
+ CO: "Colorado",
18
+ CT: "Connecticut",
19
+ DE: "Delaware",
20
+ DC: "District of Columbia",
21
+ FL: "Florida",
22
+ GA: "Georgia",
23
+ HI: "Hawaii",
24
+ ID: "Idaho",
25
+ IL: "Illinois",
26
+ IN: "Indiana",
27
+ IA: "Iowa",
28
+ KS: "Kansas",
29
+ KY: "Kentucky",
30
+ LA: "Louisiana",
31
+ ME: "Maine",
32
+ MD: "Maryland",
33
+ MA: "Massachusetts",
34
+ MI: "Michigan",
35
+ MN: "Minnesota",
36
+ MS: "Mississippi",
37
+ MO: "Missouri",
38
+ MT: "Montana",
39
+ NE: "Nebraska",
40
+ NV: "Nevada",
41
+ NH: "New Hampshire",
42
+ NJ: "New Jersey",
43
+ NM: "New Mexico",
44
+ NY: "New York",
45
+ NC: "North Carolina",
46
+ ND: "North Dakota",
47
+ OH: "Ohio",
48
+ OK: "Oklahoma",
49
+ OR: "Oregon",
50
+ PA: "Pennsylvania",
51
+ RI: "Rhode Island",
52
+ SC: "South Carolina",
53
+ SD: "South Dakota",
54
+ TN: "Tennessee",
55
+ TX: "Texas",
56
+ UT: "Utah",
57
+ VT: "Vermont",
58
+ VA: "Virginia",
59
+ WA: "Washington",
60
+ WV: "West Virginia",
61
+ WI: "Wisconsin",
62
+ WY: "Wyoming"
63
+ };
64
+ var PROVINCES = {
65
+ AB: "Alberta",
66
+ BC: "British Columbia",
67
+ MB: "Manitoba",
68
+ NB: "New Brunswick",
69
+ NL: "Newfoundland and Labrador",
70
+ NS: "Nova Scotia",
71
+ NT: "Northwest Territories",
72
+ NU: "Nunavut",
73
+ ON: "Ontario",
74
+ PE: "Prince Edward Island",
75
+ QC: "Quebec",
76
+ SK: "Saskatchewan",
77
+ YT: "Yukon"
78
+ };
79
+ var keys = (o) => Object.keys(o);
80
+ var usStateSchema = z.enum(keys(US_STATES));
81
+ var provinceSchema = z.enum(keys(PROVINCES));
82
+ var crdSchema = z.string().regex(/^[0-9]{1,10}$/, "must be a CRD number, digits only");
83
+ var statesSchema = z.array(usStateSchema).min(1, "must name at least one state");
84
+ var regulatorSchema = z.union([
85
+ z.strictObject({ sec: z.literal(true) }),
86
+ z.strictObject({
87
+ states: statesSchema,
88
+ exemptElsewhere: z.boolean().default(false)
89
+ })
90
+ ]);
91
+ var membershipSchema = z.enum(["FINRA", "SIPC", "MSRB"]);
92
+ var adviserEntitySchema = z.strictObject({
93
+ legalName: text,
94
+ regulator: regulatorSchema,
95
+ crd: crdSchema.optional(),
96
+ formAdvUrl: urlOrPath.optional(),
97
+ formCrsUrl: urlOrPath.optional()
98
+ });
99
+ var brokerDealerEntitySchema = z.strictObject({
100
+ legalName: text,
101
+ memberships: z.array(membershipSchema).min(1),
102
+ crd: crdSchema.optional()
103
+ });
104
+ var dualFirmSchema = brokerDealerEntitySchema.extend({
105
+ regulator: regulatorSchema,
106
+ formAdvUrl: urlOrPath.optional(),
107
+ formCrsUrl: urlOrPath.optional()
108
+ });
109
+ var transactsSchema = z.union([statesSchema, z.literal("registered-states")]);
110
+ var addOns = {
111
+ affiliates: z.array(
112
+ z.strictObject({
113
+ role: z.enum(["insurance", "tax", "law", "planning"]),
114
+ legalName: text,
115
+ relation: z.enum(["affiliated", "unaffiliated"]),
116
+ licensedStates: statesSchema.optional()
117
+ })
118
+ ).optional(),
119
+ custodian: text.optional()
120
+ };
121
+ var houseText = z.boolean().optional();
122
+ var regulatorySchema = z.discriminatedUnion("kind", [
123
+ z.strictObject({
124
+ kind: z.literal("adviser"),
125
+ regulator: regulatorSchema,
126
+ crd: crdSchema.optional(),
127
+ formAdvUrl: urlOrPath.optional(),
128
+ formCrsUrl: urlOrPath.optional(),
129
+ secFileNumber: z.string().regex(/^[0-9]{3}-[0-9]{1,6}$/, "must be an SEC file number such as 801-12345").optional(),
130
+ ...addOns
131
+ }),
132
+ z.strictObject({
133
+ kind: z.literal("adviser-representative"),
134
+ adviser: adviserEntitySchema,
135
+ relation: z.enum(["dba", "affiliated", "unaffiliated"]),
136
+ ...addOns
137
+ }),
138
+ z.strictObject({
139
+ kind: z.literal("broker-dealer-and-adviser"),
140
+ brokerDealer: brokerDealerEntitySchema,
141
+ adviser: adviserEntitySchema,
142
+ relation: z.literal("unaffiliated"),
143
+ transacts: transactsSchema,
144
+ clearingFirm: text.optional(),
145
+ brokerCheck: httpsUrl.optional(),
146
+ houseText,
147
+ ...addOns
148
+ }),
149
+ z.strictObject({
150
+ kind: z.literal("dual-registrant"),
151
+ firm: dualFirmSchema,
152
+ capacities: z.array(z.enum(["registered-representative", "investment-adviser-representative"])).min(1),
153
+ transacts: transactsSchema,
154
+ brokerCheck: httpsUrl.optional(),
155
+ houseText,
156
+ ...addOns
157
+ }),
158
+ z.strictObject({
159
+ kind: z.literal("broker-dealer-representative"),
160
+ brokerDealer: brokerDealerEntitySchema,
161
+ transacts: transactsSchema,
162
+ clearingFirm: text.optional(),
163
+ brokerCheck: httpsUrl.optional(),
164
+ houseText,
165
+ ...addOns
166
+ }),
167
+ z.strictObject({
168
+ kind: z.literal("insurance-only"),
169
+ licensedStates: statesSchema,
170
+ ...addOns
171
+ }),
172
+ z.strictObject({
173
+ kind: z.literal("canadian-dealer-representative"),
174
+ dealer: z.strictObject({
175
+ legalName: text,
176
+ sro: z.literal("CIRO"),
177
+ protectionFund: z.literal("CIPF")
178
+ }),
179
+ provinces: z.array(provinceSchema).min(1, "must name at least one province"),
180
+ tradeName: z.boolean(),
181
+ productScope: text.optional(),
182
+ ...addOns
183
+ }),
184
+ z.strictObject({ kind: z.literal("not-regulated"), ...addOns }),
185
+ z.strictObject({
186
+ kind: z.literal("unclassified"),
187
+ crd: crdSchema.optional(),
188
+ formAdvUrl: urlOrPath.optional()
189
+ })
190
+ ]);
191
+ function isClassified(r) {
192
+ return r.kind !== "unclassified";
193
+ }
194
+
195
+ // src/disclosures/generator.ts
196
+ function andList(items) {
197
+ return items.length <= 1 ? items[0] ?? "" : `${items.slice(0, -1).join(", ")} and ${items.at(-1)}`;
198
+ }
199
+ var stateNames = (s) => s.map((c) => US_STATES[c]);
200
+ var provinceNames = (p) => p.map((c) => PROVINCES[c]);
201
+ function registeredPhrase(r) {
202
+ if ("sec" in r) return "registered with the U.S. Securities and Exchange Commission";
203
+ const names = stateNames(r.states);
204
+ const where = `registered in the ${names.length === 1 ? "State" : "States"} of ${andList(names)}`;
205
+ return r.exemptElsewhere ? `${where}, and in other jurisdictions where exempt` : where;
206
+ }
207
+ function membershipPhrase(memberships) {
208
+ const members = memberships.filter((m) => m !== "MSRB");
209
+ const parts = [
210
+ ...members.length > 0 ? [`member ${members.join("/")}`] : [],
211
+ ...memberships.includes("MSRB") ? ["registered with the MSRB"] : []
212
+ ];
213
+ return parts.join(", ");
214
+ }
215
+ var end = (s) => s.endsWith(".") ? s : `${s}.`;
216
+ var NO_SKILL = "Registration does not imply a certain level of skill or training.";
217
+ function transactsLine(t) {
218
+ const lead = "The registered representatives associated with this site may discuss or transact securities business only with residents of";
219
+ return t === "registered-states" ? `${lead} the states in which they are properly registered.` : `${lead} the following states: ${stateNames(t).join(", ")}.`;
220
+ }
221
+ function regulatoryLines(config) {
222
+ const r = config.compliance.regulatory;
223
+ if (!r) return [];
224
+ const { legalName, displayName } = config.brand;
225
+ if ("houseText" in r && r.houseText) return [];
226
+ switch (r.kind) {
227
+ case "adviser":
228
+ return [`${legalName} is an investment adviser ${registeredPhrase(r.regulator)}. ${NO_SKILL}`];
229
+ case "adviser-representative":
230
+ return r.relation === "dba" ? [
231
+ `${displayName} is a trade name of ${r.adviser.legalName}, an investment adviser ${registeredPhrase(r.adviser.regulator)}.`
232
+ ] : [
233
+ `Advisory services offered through ${r.adviser.legalName}, an investment adviser ${registeredPhrase(r.adviser.regulator)}. ${displayName} and ${r.adviser.legalName} are ${r.relation === "affiliated" ? "affiliated" : "not affiliated"}.`
234
+ ];
235
+ case "broker-dealer-and-adviser":
236
+ return [
237
+ `Securities offered through ${r.brokerDealer.legalName}, ${membershipPhrase(r.brokerDealer.memberships)}. Advisory services offered through ${r.adviser.legalName}, an investment adviser ${registeredPhrase(r.adviser.regulator)}. ` + end(`${displayName} is not affiliated with ${r.brokerDealer.legalName} or ${r.adviser.legalName}`),
238
+ transactsLine(r.transacts)
239
+ ];
240
+ case "dual-registrant": {
241
+ const rr = r.capacities.includes("registered-representative");
242
+ const iar = r.capacities.includes("investment-adviser-representative");
243
+ const what = rr && iar ? "Securities and advisory services" : rr ? "Securities" : "Advisory services";
244
+ return [
245
+ `${what} offered through ${r.firm.legalName}, a broker-dealer, ${membershipPhrase(r.firm.memberships)}, and an investment adviser ${registeredPhrase(r.firm.regulator)}.`,
246
+ transactsLine(r.transacts)
247
+ ];
248
+ }
249
+ case "broker-dealer-representative":
250
+ return [
251
+ `Securities offered through ${r.brokerDealer.legalName}, ${membershipPhrase(r.brokerDealer.memberships)}.`,
252
+ transactsLine(r.transacts)
253
+ ];
254
+ case "insurance-only":
255
+ return [
256
+ `${legalName} is licensed to sell insurance in ${andList(stateNames(r.licensedStates))}. It is not a registered investment adviser or broker-dealer and does not offer securities or investment advice.`
257
+ ];
258
+ case "canadian-dealer-representative":
259
+ return [
260
+ [
261
+ `${r.productScope ?? "Investment products"} are offered through ${r.dealer.legalName}, a member of the Canadian Investment Regulatory Organization (CIRO) and the Canadian Investor Protection Fund (CIPF).`,
262
+ ...r.tradeName ? [end(`${displayName} is a registered trade name of ${r.dealer.legalName}`)] : [],
263
+ `The information on this site is intended for residents of ${andList(provinceNames(r.provinces))} only.`
264
+ ].join(" ")
265
+ ];
266
+ case "not-regulated":
267
+ return [
268
+ `${legalName} is not registered as an investment adviser or broker-dealer and does not provide investment advice.`
269
+ ];
270
+ case "unclassified":
271
+ return [];
272
+ }
273
+ }
274
+ function regulatoryLinks(config) {
275
+ const r = config.compliance.regulatory;
276
+ if (!r) {
277
+ const legacy = [];
278
+ if (config.compliance.formAdvUrl) {
279
+ legacy.push({ mark: "form-adv", label: "Form ADV", href: config.compliance.formAdvUrl });
280
+ }
281
+ if (config.compliance.formCrsUrl) {
282
+ legacy.push({ mark: "form-crs", label: "Form CRS", href: config.compliance.formCrsUrl });
283
+ }
284
+ if (config.compliance.crd) {
285
+ legacy.push({ mark: "crd", label: `CRD #${config.compliance.crd}` });
286
+ }
287
+ if (config.compliance.brokerCheckUrl) {
288
+ legacy.push({
289
+ mark: "brokercheck",
290
+ label: "Check the background of this firm on FINRA's BrokerCheck.",
291
+ href: config.compliance.brokerCheckUrl
292
+ });
293
+ }
294
+ return legacy;
295
+ }
296
+ const holder = r.kind === "adviser" || r.kind === "unclassified" ? r : r.kind === "adviser-representative" || r.kind === "broker-dealer-and-adviser" ? r.adviser : r.kind === "dual-registrant" ? r.firm : r.kind === "broker-dealer-representative" ? r.brokerDealer : {};
297
+ const links = [];
298
+ if (holder.formAdvUrl) links.push({ mark: "form-adv", label: "Form ADV", href: holder.formAdvUrl });
299
+ if (holder.formCrsUrl) links.push({ mark: "form-crs", label: "Form CRS", href: holder.formCrsUrl });
300
+ if (holder.crd) links.push({ mark: "crd", label: `CRD #${holder.crd}` });
301
+ if ("brokerCheck" in r && r.brokerCheck) {
302
+ links.push({
303
+ mark: "brokercheck",
304
+ label: "Check the background of this firm on FINRA's BrokerCheck.",
305
+ href: r.brokerCheck
306
+ });
307
+ }
308
+ return links;
309
+ }
310
+ function namesTheFirmTextCarries(config) {
311
+ const r = config.compliance.regulatory;
312
+ if (!r || r.kind === "unclassified") return [];
313
+ const names = [
314
+ ...(r.affiliates ?? []).map((a) => a.legalName),
315
+ ...r.custodian ? [r.custodian] : []
316
+ ];
317
+ if ("clearingFirm" in r && r.clearingFirm) names.push(r.clearingFirm);
318
+ if ("houseText" in r && r.houseText) {
319
+ if (r.kind === "broker-dealer-and-adviser") {
320
+ names.push(r.brokerDealer.legalName, r.adviser.legalName);
321
+ }
322
+ if (r.kind === "dual-registrant") names.push(r.firm.legalName);
323
+ if (r.kind === "broker-dealer-representative") names.push(r.brokerDealer.legalName);
324
+ }
325
+ return names;
326
+ }
327
+ function getDisclosures(config) {
328
+ return {
329
+ lines: regulatoryLines(config),
330
+ links: regulatoryLinks(config),
331
+ firmDisclosures: (config.compliance.disclosures ?? []).filter((d) => d.trim().length > 0),
332
+ requiredFirmNames: namesTheFirmTextCarries(config)
333
+ };
334
+ }
335
+
336
+ // src/disclosures/markers.ts
337
+ function disclosureRegionProps() {
338
+ return { "data-wr-disclosures": "" };
339
+ }
340
+ function disclosureLinkProps(mark) {
341
+ return { "data-wr-disclosure": mark };
342
+ }
343
+ export {
344
+ PROVINCES,
345
+ US_STATES,
346
+ crdSchema,
347
+ disclosureLinkProps,
348
+ disclosureRegionProps,
349
+ getDisclosures,
350
+ isClassified,
351
+ membershipPhrase,
352
+ membershipSchema,
353
+ namesTheFirmTextCarries,
354
+ provinceSchema,
355
+ registeredPhrase,
356
+ regulatorSchema,
357
+ regulatoryLines,
358
+ regulatoryLinks,
359
+ regulatorySchema,
360
+ usStateSchema
361
+ };
@@ -0,0 +1,128 @@
1
+ import { AttributionSnapshot, WebsiteVisitSnapshot } from '../analytics/index.js';
2
+ import React__default from 'react';
3
+
4
+ declare const FORM_KINDS: readonly ["lead", "newsletter", "resource", "calculator", "consultation", "event"];
5
+ type FormKind = (typeof FORM_KINDS)[number];
6
+ type CustomFieldValue = string | number | boolean | string[];
7
+ interface NormalizedLeadSubmission {
8
+ formId: string;
9
+ formKind: FormKind;
10
+ submissionId: string;
11
+ advisorId?: string;
12
+ name?: string;
13
+ email: string;
14
+ phone?: string;
15
+ message?: string;
16
+ customFields?: Record<string, string | boolean | string[]>;
17
+ sourceUrl: string;
18
+ attribution: AttributionSnapshot;
19
+ websiteVisit?: WebsiteVisitSnapshot;
20
+ honeypot?: string;
21
+ turnstileToken?: string;
22
+ }
23
+ interface FormSuccessResult<TData = unknown> {
24
+ leadId: string;
25
+ submissionId: string;
26
+ consentAllowed: boolean;
27
+ data?: TData;
28
+ }
29
+
30
+ declare function isSensitiveFieldKey(key: string): boolean;
31
+ interface PackedFormValues {
32
+ name?: string;
33
+ email: string;
34
+ phone?: string;
35
+ message?: string;
36
+ honeypot: string;
37
+ turnstileToken?: string;
38
+ customFields: Record<string, string | boolean | string[]>;
39
+ blockedSensitiveKeys: string[];
40
+ }
41
+ /**
42
+ * Extracts canonical lead fields (handling real-world aliases like `Full-Name`,
43
+ * `firstName`+`lastName`, `Email-Address`, `phoneNumber`, `notes`) and packs
44
+ * every remaining field into sanitized `customFields` so zero form data is lost.
45
+ */
46
+ declare function packFormEntries(entries: Iterable<readonly [string, FormDataEntryValue | CustomFieldValue]>): PackedFormValues;
47
+
48
+ interface UseWealthReachFormOptions<TData = unknown> {
49
+ /** Stable kebab-case identifier shown in WealthReach dashboards. */
50
+ formId: string;
51
+ /** Semantic category for CRM routing and email-only validation. */
52
+ formKind?: FormKind;
53
+ /** Same-origin endpoint (defaults to "/api/leads"). */
54
+ endpoint?: string;
55
+ /** Optional advisor override for multi-advisor sites. */
56
+ advisorId?: string;
57
+ /** Optional custom client-side validator returning `{ fieldName: errorMessage }`. */
58
+ validate?: (values: Record<string, CustomFieldValue>) => Record<string, string>;
59
+ /** Fires ONLY after WealthReach confirms capture; receives consentAllowed. */
60
+ onSuccess?: (result: FormSuccessResult<TData>) => void;
61
+ }
62
+ declare function useWealthReachForm<TData = unknown>(options: UseWealthReachFormOptions<TData>): {
63
+ formRef: React__default.RefObject<HTMLFormElement | null>;
64
+ formProps: {
65
+ ref: React__default.RefObject<HTMLFormElement | null>;
66
+ noValidate: boolean;
67
+ onSubmit: (event: React__default.FormEvent<HTMLFormElement>) => Promise<void>;
68
+ "data-wr-form": string;
69
+ "data-wr-form-kind": "lead" | "newsletter" | "resource" | "calculator" | "consultation" | "event";
70
+ };
71
+ Honeypot: () => React__default.JSX.Element;
72
+ getFieldProps: (name: string) => {
73
+ "aria-describedby"?: string | undefined;
74
+ id: string;
75
+ name: string;
76
+ "aria-invalid": boolean;
77
+ };
78
+ getErrorProps: (name: string) => {
79
+ id: string;
80
+ role: "alert";
81
+ } | null;
82
+ submit: (payload: {
83
+ email: string;
84
+ name?: string;
85
+ phone?: string;
86
+ message?: string;
87
+ customFields?: Record<string, CustomFieldValue>;
88
+ turnstileToken?: string;
89
+ }) => Promise<{
90
+ ok: false;
91
+ error: string;
92
+ leadId?: undefined;
93
+ data?: undefined;
94
+ } | {
95
+ ok: true;
96
+ leadId: string;
97
+ data: TData | undefined;
98
+ error?: undefined;
99
+ }>;
100
+ status: "idle" | "submitting" | "success" | "error";
101
+ errors: Record<string, string>;
102
+ serverError: string | null;
103
+ reset: () => void;
104
+ consentAllowed: boolean;
105
+ };
106
+
107
+ interface WealthReachFormProps<TData = unknown> extends Omit<React__default.FormHTMLAttributes<HTMLFormElement>, "onSubmit"> {
108
+ form: ReturnType<typeof useWealthReachForm<TData>>;
109
+ children: React__default.ReactNode;
110
+ }
111
+ /**
112
+ * Unstyled structural `<form>` wrapper that stamps `data-wr-form`,
113
+ * `data-wr-form-kind`, accessible honeypot, and wires `onSubmit` automatically.
114
+ */
115
+ declare function WealthReachForm<TData = unknown>({ form, children, ...rest }: WealthReachFormProps<TData>): React__default.JSX.Element;
116
+
117
+ /**
118
+ * Drop inside a React 19 Server Action `<form action={action} data-wr-form="...">`
119
+ * so the server action receives attribution, idempotent submissionId, sourceUrl,
120
+ * and (only if consented) websiteVisit via `extractWealthReachContext(formData)`.
121
+ */
122
+ declare function WealthReachHiddenContext({ formId, formKind, }: {
123
+ formId: string;
124
+ formKind?: FormKind;
125
+ }): React__default.JSX.Element;
126
+
127
+ export { FORM_KINDS, WealthReachForm, WealthReachHiddenContext, isSensitiveFieldKey, packFormEntries, useWealthReachForm };
128
+ export type { CustomFieldValue, FormKind, FormSuccessResult, NormalizedLeadSubmission, PackedFormValues, UseWealthReachFormOptions, WealthReachFormProps };