@axos-web-dev/shared-components 0.0.149 → 0.0.150
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/Button/Button.js +0 -1
- package/dist/Forms/SalesforceFieldsForm.d.ts +34 -2
- package/dist/Forms/SalesforceFieldsForm.js +86 -3
- package/dist/Forms/ScheduleCall.js +7 -1
- package/dist/Interstitial/Interstitial.js +0 -1
- package/dist/assets/Insight/Featured/Featured.css +1 -0
- package/package.json +1 -1
package/dist/Button/Button.js
CHANGED
|
@@ -20,8 +20,16 @@ export interface SalesforceInputs {
|
|
|
20
20
|
First_UTMMedium__c: string;
|
|
21
21
|
First_UTMSource__c: string;
|
|
22
22
|
First_UTMTerm__c: string;
|
|
23
|
-
|
|
24
|
-
|
|
23
|
+
Full_Web_Source__c: string;
|
|
24
|
+
First_MicrosoftClickId__c: string;
|
|
25
|
+
First_GoogleClickId__c: string;
|
|
26
|
+
First_FacebookClickId__c: string;
|
|
27
|
+
First_UTMPromo_Code__c: string;
|
|
28
|
+
First_UTMIdentity__c: string;
|
|
29
|
+
First_UTMHem__c: string;
|
|
30
|
+
First_UTMExperience_Id__c: string;
|
|
31
|
+
Primary_Cjdata__c: string;
|
|
32
|
+
Primary_Cjevent__c: string;
|
|
25
33
|
}
|
|
26
34
|
export declare const SalesforceSchema: z.ZodObject<{
|
|
27
35
|
Brand_SFDC2__c: z.ZodOptional<z.ZodString>;
|
|
@@ -39,6 +47,14 @@ export declare const SalesforceSchema: z.ZodObject<{
|
|
|
39
47
|
First_UTMTerm__c: z.ZodOptional<z.ZodString>;
|
|
40
48
|
utm_cjdata: z.ZodOptional<z.ZodString>;
|
|
41
49
|
utm_cjevent: z.ZodOptional<z.ZodString>;
|
|
50
|
+
Fuutm_cjevennfatll_Web_Source__c: z.ZodOptional<z.ZodString>;
|
|
51
|
+
First_MicrosoftClickId__c: z.ZodOptional<z.ZodString>;
|
|
52
|
+
First_GoogleClickId__c: z.ZodOptional<z.ZodString>;
|
|
53
|
+
First_FacebookClickId__c: z.ZodOptional<z.ZodString>;
|
|
54
|
+
First_UTMPromo_Code__c: z.ZodOptional<z.ZodString>;
|
|
55
|
+
First_UTMHem__c: z.ZodOptional<z.ZodString>;
|
|
56
|
+
First_UTMIdentity__c: z.ZodOptional<z.ZodString>;
|
|
57
|
+
First_UTMExperience_Id__c: z.ZodOptional<z.ZodString>;
|
|
42
58
|
}, "strip", z.ZodTypeAny, {
|
|
43
59
|
Brand_SFDC2__c?: string | undefined;
|
|
44
60
|
Branch_SFDC2__c?: string | undefined;
|
|
@@ -55,6 +71,14 @@ export declare const SalesforceSchema: z.ZodObject<{
|
|
|
55
71
|
First_UTMTerm__c?: string | undefined;
|
|
56
72
|
utm_cjdata?: string | undefined;
|
|
57
73
|
utm_cjevent?: string | undefined;
|
|
74
|
+
Fuutm_cjevennfatll_Web_Source__c?: string | undefined;
|
|
75
|
+
First_MicrosoftClickId__c?: string | undefined;
|
|
76
|
+
First_GoogleClickId__c?: string | undefined;
|
|
77
|
+
First_FacebookClickId__c?: string | undefined;
|
|
78
|
+
First_UTMPromo_Code__c?: string | undefined;
|
|
79
|
+
First_UTMHem__c?: string | undefined;
|
|
80
|
+
First_UTMIdentity__c?: string | undefined;
|
|
81
|
+
First_UTMExperience_Id__c?: string | undefined;
|
|
58
82
|
}, {
|
|
59
83
|
Brand_SFDC2__c?: string | undefined;
|
|
60
84
|
Branch_SFDC2__c?: string | undefined;
|
|
@@ -71,6 +95,14 @@ export declare const SalesforceSchema: z.ZodObject<{
|
|
|
71
95
|
First_UTMTerm__c?: string | undefined;
|
|
72
96
|
utm_cjdata?: string | undefined;
|
|
73
97
|
utm_cjevent?: string | undefined;
|
|
98
|
+
Fuutm_cjevennfatll_Web_Source__c?: string | undefined;
|
|
99
|
+
First_MicrosoftClickId__c?: string | undefined;
|
|
100
|
+
First_GoogleClickId__c?: string | undefined;
|
|
101
|
+
First_FacebookClickId__c?: string | undefined;
|
|
102
|
+
First_UTMPromo_Code__c?: string | undefined;
|
|
103
|
+
First_UTMHem__c?: string | undefined;
|
|
104
|
+
First_UTMIdentity__c?: string | undefined;
|
|
105
|
+
First_UTMExperience_Id__c?: string | undefined;
|
|
74
106
|
}>;
|
|
75
107
|
export interface QueryParams {
|
|
76
108
|
[str: string]: string;
|
|
@@ -25,7 +25,15 @@ const SalesforceSchema = z.object({
|
|
|
25
25
|
First_UTMSource__c: z.string().optional(),
|
|
26
26
|
First_UTMTerm__c: z.string().optional(),
|
|
27
27
|
utm_cjdata: z.string().optional(),
|
|
28
|
-
utm_cjevent: z.string().optional()
|
|
28
|
+
utm_cjevent: z.string().optional(),
|
|
29
|
+
Fuutm_cjevennfatll_Web_Source__c: z.string().optional(),
|
|
30
|
+
First_MicrosoftClickId__c: z.string().optional(),
|
|
31
|
+
First_GoogleClickId__c: z.string().optional(),
|
|
32
|
+
First_FacebookClickId__c: z.string().optional(),
|
|
33
|
+
First_UTMPromo_Code__c: z.string().optional(),
|
|
34
|
+
First_UTMHem__c: z.string().optional(),
|
|
35
|
+
First_UTMIdentity__c: z.string().optional(),
|
|
36
|
+
First_UTMExperience_Id__c: z.string().optional()
|
|
29
37
|
});
|
|
30
38
|
const SalesforceFieldsForm = memo(function SaleforceFieldForm({
|
|
31
39
|
salesforceFields,
|
|
@@ -146,7 +154,7 @@ const SalesforceFieldsForm = memo(function SaleforceFieldForm({
|
|
|
146
154
|
{
|
|
147
155
|
type: "hidden",
|
|
148
156
|
...register("Primary_Cjdata__c", {
|
|
149
|
-
value:
|
|
157
|
+
value: queryParams?.cjdata
|
|
150
158
|
})
|
|
151
159
|
}
|
|
152
160
|
),
|
|
@@ -155,7 +163,82 @@ const SalesforceFieldsForm = memo(function SaleforceFieldForm({
|
|
|
155
163
|
{
|
|
156
164
|
type: "hidden",
|
|
157
165
|
...register("Primary_Cjevent__c", {
|
|
158
|
-
value:
|
|
166
|
+
value: queryParams?.cjevent
|
|
167
|
+
})
|
|
168
|
+
}
|
|
169
|
+
),
|
|
170
|
+
/* @__PURE__ */ jsx(
|
|
171
|
+
"input",
|
|
172
|
+
{
|
|
173
|
+
type: "hidden",
|
|
174
|
+
...register("Full_Web_Source__c", {
|
|
175
|
+
value: location?.pathname
|
|
176
|
+
})
|
|
177
|
+
}
|
|
178
|
+
),
|
|
179
|
+
/* @__PURE__ */ jsx(
|
|
180
|
+
"input",
|
|
181
|
+
{
|
|
182
|
+
type: "hidden",
|
|
183
|
+
...register("First_UTMPromo_Code__c", {
|
|
184
|
+
value: queryParams?.utm_promocode
|
|
185
|
+
})
|
|
186
|
+
}
|
|
187
|
+
),
|
|
188
|
+
" ",
|
|
189
|
+
/* @__PURE__ */ jsx(
|
|
190
|
+
"input",
|
|
191
|
+
{
|
|
192
|
+
type: "hidden",
|
|
193
|
+
...register("First_UTMExperience_Id__c", {
|
|
194
|
+
value: queryParams?.experience_id
|
|
195
|
+
})
|
|
196
|
+
}
|
|
197
|
+
),
|
|
198
|
+
/* @__PURE__ */ jsx(
|
|
199
|
+
"input",
|
|
200
|
+
{
|
|
201
|
+
type: "hidden",
|
|
202
|
+
...register("First_UTMHem__c", {
|
|
203
|
+
value: queryParams?.hem
|
|
204
|
+
})
|
|
205
|
+
}
|
|
206
|
+
),
|
|
207
|
+
" ",
|
|
208
|
+
/* @__PURE__ */ jsx(
|
|
209
|
+
"input",
|
|
210
|
+
{
|
|
211
|
+
type: "hidden",
|
|
212
|
+
...register("First_UTMIdentity__c", {
|
|
213
|
+
value: queryParams?.identity
|
|
214
|
+
})
|
|
215
|
+
}
|
|
216
|
+
),
|
|
217
|
+
/* @__PURE__ */ jsx(
|
|
218
|
+
"input",
|
|
219
|
+
{
|
|
220
|
+
type: "hidden",
|
|
221
|
+
...register("First_MicrosoftClickId__c", {
|
|
222
|
+
value: queryParams?.msclkid
|
|
223
|
+
})
|
|
224
|
+
}
|
|
225
|
+
),
|
|
226
|
+
" ",
|
|
227
|
+
/* @__PURE__ */ jsx(
|
|
228
|
+
"input",
|
|
229
|
+
{
|
|
230
|
+
type: "hidden",
|
|
231
|
+
...register("First_FacebookClickId__c", {
|
|
232
|
+
value: queryParams?.fbclid
|
|
233
|
+
})
|
|
234
|
+
}
|
|
235
|
+
),
|
|
236
|
+
/* @__PURE__ */ jsx(
|
|
237
|
+
"input",
|
|
238
|
+
{
|
|
239
|
+
type: "hidden",
|
|
240
|
+
...register("First_GoogleClickId__c", {
|
|
241
|
+
value: queryParams?.gclid
|
|
159
242
|
})
|
|
160
243
|
}
|
|
161
244
|
)
|
|
@@ -78,7 +78,13 @@ const ScheduleCall = ({
|
|
|
78
78
|
formState: { errors, isValid }
|
|
79
79
|
} = methods;
|
|
80
80
|
const submitForm = async (data) => {
|
|
81
|
-
|
|
81
|
+
const date = new Date(data.Best_Contact_Date__c);
|
|
82
|
+
const withFormat = new Intl.DateTimeFormat("en-US").format(date);
|
|
83
|
+
await onSubmit({
|
|
84
|
+
...data,
|
|
85
|
+
Best_Best_Contact_Date__c: withFormat,
|
|
86
|
+
Date_Business_Established__c: withFormat
|
|
87
|
+
});
|
|
82
88
|
};
|
|
83
89
|
const variant = getVariant(fullVariant);
|
|
84
90
|
return /* @__PURE__ */ jsx("section", { id, className: clsx(formContainer({ variant })), children: /* @__PURE__ */ jsx("div", { className: clsx("containment"), children: /* @__PURE__ */ jsxs(FormProvider, { ...methods, children: [
|