@usgb/forms 1.0.0 → 1.0.2
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/README.md +104 -46
- package/dist/forms-manifest.1.0.2.json +305 -0
- package/dist/forms-manifest.json +71 -15
- package/dist/index.js +609 -592
- package/dist/src/contract/types.d.ts +7 -11
- package/dist/src/contract/types.d.ts.map +1 -1
- package/dist/src/definitions/consents.d.ts +53 -20
- package/dist/src/definitions/consents.d.ts.map +1 -1
- package/dist/src/definitions/index.d.ts +3 -3
- package/dist/src/definitions/index.d.ts.map +1 -1
- package/dist/src/definitions/types.d.ts +15 -5
- package/dist/src/definitions/types.d.ts.map +1 -1
- package/dist/src/form/UsgbForm.d.ts +2 -2
- package/dist/src/form/UsgbForm.d.ts.map +1 -1
- package/dist/src/form/kinds/LeadKindForm.d.ts.map +1 -1
- package/dist/src/form/useUsgbFormSession.d.ts +5 -5
- package/dist/src/form/useUsgbFormSession.d.ts.map +1 -1
- package/dist/src/index.d.ts +2 -2
- package/dist/src/index.d.ts.map +1 -1
- package/dist/usgb-forms.1.0.2.js +44 -0
- package/dist/usgb-forms.css +46 -24
- package/dist/usgb-forms.js +11 -11
- package/forms-manifest.json +71 -15
- package/package.json +62 -62
- package/dist/usgb-forms.1.0.0.js +0 -44
package/dist/forms-manifest.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"schemaVersion": "1.0.0",
|
|
3
3
|
"package": {
|
|
4
4
|
"name": "@usgb/forms",
|
|
5
|
-
"compatiblePackageVersions": "^1.0.
|
|
5
|
+
"compatiblePackageVersions": "^1.0.2"
|
|
6
6
|
},
|
|
7
7
|
"submissionContract": {
|
|
8
8
|
"version": "1.0.0",
|
|
@@ -186,21 +186,76 @@
|
|
|
186
186
|
"user_agent",
|
|
187
187
|
"ip_address"
|
|
188
188
|
],
|
|
189
|
-
"
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
"
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
189
|
+
"ctaLabel": "GET MY FREE GUIDE",
|
|
190
|
+
"consents": [
|
|
191
|
+
{
|
|
192
|
+
"definitionId": "lead-tcpa",
|
|
193
|
+
"definitionVersion": "1",
|
|
194
|
+
"required": false
|
|
195
|
+
},
|
|
196
|
+
{
|
|
197
|
+
"definitionId": "lead-sms",
|
|
198
|
+
"definitionVersion": "1",
|
|
199
|
+
"required": false
|
|
200
|
+
},
|
|
201
|
+
{
|
|
202
|
+
"definitionId": "lead-tospp",
|
|
203
|
+
"definitionVersion": "1",
|
|
204
|
+
"required": false
|
|
205
|
+
}
|
|
206
|
+
],
|
|
198
207
|
"editor": {
|
|
199
208
|
"label": "Main Investors Kit",
|
|
200
|
-
"description": "Standard lead form: name, email, phone, TCPA
|
|
201
|
-
"whenToUse": "Default kit request. Do not use for affiliate landers or IRA-specific leads.",
|
|
202
|
-
"whenNotToUse": "Affiliate pages (separate definition). IRA kit (separate definition when added).",
|
|
203
|
-
"supportedAppearances": ["light", "
|
|
209
|
+
"description": "Standard lead form: name, email, phone, plus optional TCPA, marketing SMS, and terms/privacy checkboxes. Use on full-width landing pages and PWA kit/sidebar placements.",
|
|
210
|
+
"whenToUse": "Default kit request with optional consent checkboxes. Do not use for affiliate landers or IRA-specific leads.",
|
|
211
|
+
"whenNotToUse": "Affiliate pages (separate definition). IRA kit (separate definition when added). Clickwrap-only kit (`main-investors-kit-notice`).",
|
|
212
|
+
"supportedAppearances": ["on-light", "on-dark"],
|
|
213
|
+
"supportedVariants": ["dense", "large", "sidebar", "two-column"]
|
|
214
|
+
}
|
|
215
|
+
},
|
|
216
|
+
"main-investors-kit-notice": {
|
|
217
|
+
"definitionVersion": "1",
|
|
218
|
+
"kind": "lead",
|
|
219
|
+
"flow": { "type": "single" },
|
|
220
|
+
"supportedHosts": ["pwa", "wordpress"],
|
|
221
|
+
"fields": [
|
|
222
|
+
{ "name": "firstname", "required": true, "group": "name" },
|
|
223
|
+
{ "name": "lastname", "required": true, "group": "name" },
|
|
224
|
+
{ "name": "email", "required": true },
|
|
225
|
+
{ "name": "phone", "required": false }
|
|
226
|
+
],
|
|
227
|
+
"trackingFields": [
|
|
228
|
+
"page_url",
|
|
229
|
+
"page_title",
|
|
230
|
+
"referrer",
|
|
231
|
+
"first_touch_url",
|
|
232
|
+
"utm_source",
|
|
233
|
+
"utm_medium",
|
|
234
|
+
"utm_campaign",
|
|
235
|
+
"utm_term",
|
|
236
|
+
"utm_content",
|
|
237
|
+
"gclid",
|
|
238
|
+
"msclkid",
|
|
239
|
+
"gbraid",
|
|
240
|
+
"wbraid",
|
|
241
|
+
"hubspot_utk",
|
|
242
|
+
"ga_client_id",
|
|
243
|
+
"ga_session_id",
|
|
244
|
+
"snowplow_id",
|
|
245
|
+
"vwo_uuid",
|
|
246
|
+
"user_agent",
|
|
247
|
+
"ip_address"
|
|
248
|
+
],
|
|
249
|
+
"ctaLabel": "GET MY FREE GUIDE",
|
|
250
|
+
"consents": [
|
|
251
|
+
{ "definitionId": "lead-clickwrap", "definitionVersion": "1" }
|
|
252
|
+
],
|
|
253
|
+
"editor": {
|
|
254
|
+
"label": "Main Investors Kit (clickwrap)",
|
|
255
|
+
"description": "Same fields as Main Investors Kit with a clickwrap notice only — no consent checkboxes.",
|
|
256
|
+
"whenToUse": "Kit request where submit acknowledges legal docs via notice copy instead of checkboxes.",
|
|
257
|
+
"whenNotToUse": "Placements that need TCPA / marketing SMS / terms checkboxes (`main-investors-kit`).",
|
|
258
|
+
"supportedAppearances": ["on-light", "on-dark"],
|
|
204
259
|
"supportedVariants": ["dense", "large", "sidebar", "two-column"]
|
|
205
260
|
}
|
|
206
261
|
},
|
|
@@ -220,12 +275,13 @@
|
|
|
220
275
|
"utm_term",
|
|
221
276
|
"utm_content"
|
|
222
277
|
],
|
|
278
|
+
"ctaLabel": "SUBSCRIBE",
|
|
223
279
|
"editor": {
|
|
224
280
|
"label": "Newsletter",
|
|
225
281
|
"description": "Email-only newsletter signup. No TCPA consent.",
|
|
226
282
|
"whenToUse": "Footer or landing newsletter capture where only an email is required.",
|
|
227
283
|
"whenNotToUse": "Lead kits that need name, phone, or TCPA consent.",
|
|
228
|
-
"supportedAppearances": ["light", "
|
|
284
|
+
"supportedAppearances": ["on-light", "on-dark"],
|
|
229
285
|
"supportedVariants": []
|
|
230
286
|
}
|
|
231
287
|
}
|