@usgb/forms 1.0.0 → 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.
- package/README.md +27 -18
- package/dist/forms-manifest.json +4 -2
- package/dist/index.js +109 -109
- package/dist/src/contract/types.d.ts +1 -1
- package/dist/src/contract/types.d.ts.map +1 -1
- package/dist/src/definitions/types.d.ts +6 -1
- 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/{usgb-forms.1.0.0.js → usgb-forms.1.0.1.js} +11 -11
- package/dist/usgb-forms.css +46 -24
- package/dist/usgb-forms.js +11 -11
- package/forms-manifest.json +4 -2
- package/package.json +62 -62
package/forms-manifest.json
CHANGED
|
@@ -186,6 +186,7 @@
|
|
|
186
186
|
"user_agent",
|
|
187
187
|
"ip_address"
|
|
188
188
|
],
|
|
189
|
+
"ctaLabel": "GET MY FREE GUIDE",
|
|
189
190
|
"consent": {
|
|
190
191
|
"definitionId": "lead-tcpa",
|
|
191
192
|
"definitionVersion": "1",
|
|
@@ -200,7 +201,7 @@
|
|
|
200
201
|
"description": "Standard lead form: name, email, phone, TCPA consent. Use on full-width landing pages and PWA kit/sidebar placements.",
|
|
201
202
|
"whenToUse": "Default kit request. Do not use for affiliate landers or IRA-specific leads.",
|
|
202
203
|
"whenNotToUse": "Affiliate pages (separate definition). IRA kit (separate definition when added).",
|
|
203
|
-
"supportedAppearances": ["light", "
|
|
204
|
+
"supportedAppearances": ["on-light", "on-dark"],
|
|
204
205
|
"supportedVariants": ["dense", "large", "sidebar", "two-column"]
|
|
205
206
|
}
|
|
206
207
|
},
|
|
@@ -220,12 +221,13 @@
|
|
|
220
221
|
"utm_term",
|
|
221
222
|
"utm_content"
|
|
222
223
|
],
|
|
224
|
+
"ctaLabel": "SUBSCRIBE",
|
|
223
225
|
"editor": {
|
|
224
226
|
"label": "Newsletter",
|
|
225
227
|
"description": "Email-only newsletter signup. No TCPA consent.",
|
|
226
228
|
"whenToUse": "Footer or landing newsletter capture where only an email is required.",
|
|
227
229
|
"whenNotToUse": "Lead kits that need name, phone, or TCPA consent.",
|
|
228
|
-
"supportedAppearances": ["light", "
|
|
230
|
+
"supportedAppearances": ["on-light", "on-dark"],
|
|
229
231
|
"supportedVariants": []
|
|
230
232
|
}
|
|
231
233
|
}
|
package/package.json
CHANGED
|
@@ -1,66 +1,66 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
2
|
+
"name": "@usgb/forms",
|
|
3
|
+
"version": "1.0.1",
|
|
4
|
+
"description": "Shared USGB lead-form package for PWA and WordPress",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"license": "UNLICENSED",
|
|
7
|
+
"files": [
|
|
8
|
+
"dist",
|
|
9
|
+
"forms-manifest.json"
|
|
10
|
+
],
|
|
11
|
+
"main": "./dist/index.js",
|
|
12
|
+
"module": "./dist/index.js",
|
|
13
|
+
"types": "./dist/src/index.d.ts",
|
|
14
|
+
"exports": {
|
|
15
|
+
".": {
|
|
16
|
+
"types": "./dist/src/index.d.ts",
|
|
17
|
+
"import": "./dist/index.js"
|
|
18
|
+
},
|
|
19
|
+
"./usgb-forms.css": "./dist/usgb-forms.css",
|
|
20
|
+
"./manifest": "./forms-manifest.json",
|
|
21
|
+
"./wc": {
|
|
22
|
+
"import": "./dist/usgb-forms.js"
|
|
23
|
+
}
|
|
18
24
|
},
|
|
19
|
-
"
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
25
|
+
"scripts": {
|
|
26
|
+
"dev": "vite --config vite.playground.config.ts",
|
|
27
|
+
"build": "node scripts/build.mjs",
|
|
28
|
+
"typecheck": "tsc --noEmit",
|
|
29
|
+
"lint": "eslint 'src/**/*.{js,ts,tsx}' --quiet --fix",
|
|
30
|
+
"lint:check": "eslint 'src/**/*.{js,ts,tsx}' --quiet",
|
|
31
|
+
"format": "prettier --write 'src/**/*.{js,ts,tsx,css,md,json}' '*.md' 'forms-manifest.json'",
|
|
32
|
+
"format:check": "prettier --check 'src/**/*.{js,ts,tsx,css,md,json}' '*.md' 'forms-manifest.json'",
|
|
33
|
+
"preview": "vite preview --config vite.playground.config.ts"
|
|
34
|
+
},
|
|
35
|
+
"peerDependencies": {
|
|
36
|
+
"react": "^18.0.0 || ^19.0.0",
|
|
37
|
+
"react-dom": "^18.0.0 || ^19.0.0"
|
|
38
|
+
},
|
|
39
|
+
"dependencies": {
|
|
40
|
+
"classnames": "^2.5.1",
|
|
41
|
+
"email-validator": "^2.0.4",
|
|
42
|
+
"react-hook-form": "^7.54.2"
|
|
43
|
+
},
|
|
44
|
+
"devDependencies": {
|
|
45
|
+
"@eslint/eslintrc": "^3.3.5",
|
|
46
|
+
"@eslint/js": "^9.39.4",
|
|
47
|
+
"@types/react": "^18.3.16",
|
|
48
|
+
"@types/react-dom": "^18.3.5",
|
|
49
|
+
"@typescript-eslint/eslint-plugin": "^8.60.0",
|
|
50
|
+
"@typescript-eslint/parser": "^8.60.0",
|
|
51
|
+
"@vitejs/plugin-react": "^4.3.4",
|
|
52
|
+
"eslint": "^9.39.4",
|
|
53
|
+
"eslint-config-prettier": "^10.1.8",
|
|
54
|
+
"eslint-plugin-jsx-a11y": "^6.10.2",
|
|
55
|
+
"eslint-plugin-prettier": "^4.2.1",
|
|
56
|
+
"eslint-plugin-react": "^7.37.5",
|
|
57
|
+
"eslint-plugin-react-hooks": "^5.2.0",
|
|
58
|
+
"globals": "^16.0.0",
|
|
59
|
+
"prettier": "^2.2.1",
|
|
60
|
+
"react": "^18.3.1",
|
|
61
|
+
"react-dom": "^18.3.1",
|
|
62
|
+
"typescript": "^5.7.2",
|
|
63
|
+
"vite": "^6.0.4",
|
|
64
|
+
"vite-plugin-dts": "^4.4.0"
|
|
23
65
|
}
|
|
24
|
-
},
|
|
25
|
-
"scripts": {
|
|
26
|
-
"dev": "vite --config vite.playground.config.ts",
|
|
27
|
-
"build": "node scripts/build.mjs",
|
|
28
|
-
"typecheck": "tsc --noEmit",
|
|
29
|
-
"lint": "eslint 'src/**/*.{js,ts,tsx}' --quiet --fix",
|
|
30
|
-
"lint:check": "eslint 'src/**/*.{js,ts,tsx}' --quiet",
|
|
31
|
-
"format": "prettier --write 'src/**/*.{js,ts,tsx,css,md,json}' '*.md' 'forms-manifest.json'",
|
|
32
|
-
"format:check": "prettier --check 'src/**/*.{js,ts,tsx,css,md,json}' '*.md' 'forms-manifest.json'",
|
|
33
|
-
"preview": "vite preview --config vite.playground.config.ts"
|
|
34
|
-
},
|
|
35
|
-
"peerDependencies": {
|
|
36
|
-
"react": "^18.0.0 || ^19.0.0",
|
|
37
|
-
"react-dom": "^18.0.0 || ^19.0.0"
|
|
38
|
-
},
|
|
39
|
-
"dependencies": {
|
|
40
|
-
"classnames": "^2.5.1",
|
|
41
|
-
"email-validator": "^2.0.4",
|
|
42
|
-
"react-hook-form": "^7.54.2"
|
|
43
|
-
},
|
|
44
|
-
"devDependencies": {
|
|
45
|
-
"@eslint/eslintrc": "^3.3.5",
|
|
46
|
-
"@eslint/js": "^9.39.4",
|
|
47
|
-
"@types/react": "^18.3.16",
|
|
48
|
-
"@types/react-dom": "^18.3.5",
|
|
49
|
-
"@typescript-eslint/eslint-plugin": "^8.60.0",
|
|
50
|
-
"@typescript-eslint/parser": "^8.60.0",
|
|
51
|
-
"@vitejs/plugin-react": "^4.3.4",
|
|
52
|
-
"eslint": "^9.39.4",
|
|
53
|
-
"eslint-config-prettier": "^10.1.8",
|
|
54
|
-
"eslint-plugin-jsx-a11y": "^6.10.2",
|
|
55
|
-
"eslint-plugin-prettier": "^4.2.1",
|
|
56
|
-
"eslint-plugin-react": "^7.37.5",
|
|
57
|
-
"eslint-plugin-react-hooks": "^5.2.0",
|
|
58
|
-
"globals": "^16.0.0",
|
|
59
|
-
"prettier": "^2.2.1",
|
|
60
|
-
"react": "^18.3.1",
|
|
61
|
-
"react-dom": "^18.3.1",
|
|
62
|
-
"typescript": "^5.7.2",
|
|
63
|
-
"vite": "^6.0.4",
|
|
64
|
-
"vite-plugin-dts": "^4.4.0"
|
|
65
|
-
}
|
|
66
66
|
}
|