@heycater/qualification-funnel 1.1.0
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 +24 -0
- package/package.json +83 -0
package/README.md
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# @heycater/qualification-funnel
|
|
2
|
+
|
|
3
|
+
Embeddable qualification funnel widget for heycater.
|
|
4
|
+
|
|
5
|
+
## Build
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
npm run build # Build both ESM and IIFE
|
|
9
|
+
npm run build:esm # ESM only (for React apps)
|
|
10
|
+
npm run build:iife # IIFE only (for script tags)
|
|
11
|
+
npm run dev # Development server
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
## Build Outputs
|
|
15
|
+
|
|
16
|
+
| File | Format | Use Case |
|
|
17
|
+
|------|--------|----------|
|
|
18
|
+
| `dist/index.esm.js` | ESM | React/bundler imports (requires peer deps) |
|
|
19
|
+
| `dist/index.cjs.js` | CommonJS | Node.js/require |
|
|
20
|
+
| `dist/heycater-funnel.iife.js` | IIFE | Self-contained script tag embedding |
|
|
21
|
+
|
|
22
|
+
**ESM Build**: Externalizes React and UI dependencies. Consumers must install peer dependencies.
|
|
23
|
+
|
|
24
|
+
**IIFE Build**: Bundles everything into a single file with all dependencies and assets included.
|
package/package.json
ADDED
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@heycater/qualification-funnel",
|
|
3
|
+
"version": "1.1.0",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"description": "Heycater embedded qualification funnel widget",
|
|
6
|
+
"main": "dist/index.cjs.js",
|
|
7
|
+
"module": "dist/index.esm.js",
|
|
8
|
+
"types": "dist/index.d.ts",
|
|
9
|
+
"exports": {
|
|
10
|
+
".": {
|
|
11
|
+
"import": "./dist/index.esm.js",
|
|
12
|
+
"require": "./dist/index.cjs.js",
|
|
13
|
+
"types": "./dist/index.d.ts"
|
|
14
|
+
},
|
|
15
|
+
"./style.css": "./dist/style.css",
|
|
16
|
+
"./widget": "./dist/heycater-funnel.iife.js",
|
|
17
|
+
"./widget.css": "./dist/heycater-funnel.css"
|
|
18
|
+
},
|
|
19
|
+
"files": [
|
|
20
|
+
"dist"
|
|
21
|
+
],
|
|
22
|
+
"repository": "https://github.com/heycater/npm-packages",
|
|
23
|
+
"scripts": {
|
|
24
|
+
"dev": "vite",
|
|
25
|
+
"build": "npm run build:esm && npm run build:iife",
|
|
26
|
+
"build:esm": "BUILD_TARGET=esm vite build",
|
|
27
|
+
"build:iife": "BUILD_TARGET=iife vite build",
|
|
28
|
+
"clean": "rm -rf ./dist",
|
|
29
|
+
"preview": "vite preview",
|
|
30
|
+
"prepublishOnly": "npm run clean && npm run build",
|
|
31
|
+
"lint": "npx eslint ./src",
|
|
32
|
+
"type-check": "tsc --noEmit"
|
|
33
|
+
},
|
|
34
|
+
"peerDependencies": {
|
|
35
|
+
"react": "^17.0.2 || ^18.0.0",
|
|
36
|
+
"react-dom": "^17.0.2 || ^18.0.0",
|
|
37
|
+
"@bugsnag/js": "^7.5.4",
|
|
38
|
+
"@bugsnag/plugin-react": "^7.5.4",
|
|
39
|
+
"@material-ui/core": "^4.12.0",
|
|
40
|
+
"@material-ui/lab": "^4.0.0-alpha.56",
|
|
41
|
+
"@material-ui/system": "^4.12.2",
|
|
42
|
+
"formik": "^2.2.9",
|
|
43
|
+
"i18next": "^19.8.4",
|
|
44
|
+
"react-day-picker": "^8.8.0",
|
|
45
|
+
"react-i18next": "^11.8.3",
|
|
46
|
+
"react-intersection-observer": "^8.34.0",
|
|
47
|
+
"styled-components": "^5.1.1",
|
|
48
|
+
"urql": "^4.0.0"
|
|
49
|
+
},
|
|
50
|
+
"peerDependenciesMeta": {
|
|
51
|
+
"@bugsnag/js": {
|
|
52
|
+
"optional": true
|
|
53
|
+
},
|
|
54
|
+
"@bugsnag/plugin-react": {
|
|
55
|
+
"optional": true
|
|
56
|
+
}
|
|
57
|
+
},
|
|
58
|
+
"dependencies": {
|
|
59
|
+
"date-fns": "^2.30.0",
|
|
60
|
+
"lodash": "^4.17.21",
|
|
61
|
+
"qs": "^6.9.1",
|
|
62
|
+
"yup": "^0.32.9"
|
|
63
|
+
},
|
|
64
|
+
"devDependencies": {
|
|
65
|
+
"@svgr/rollup": "^8.1.0",
|
|
66
|
+
"@types/google.maps": "^3.54.1",
|
|
67
|
+
"@types/lodash": "^4.17.0",
|
|
68
|
+
"@types/node": "20.3.2",
|
|
69
|
+
"@types/qs": "^6.14.0",
|
|
70
|
+
"@types/react": "^17.0.2",
|
|
71
|
+
"@types/react-dom": "^17.0.2",
|
|
72
|
+
"@types/styled-components": "^5.1.26",
|
|
73
|
+
"@vitejs/plugin-react": "^4.2.1",
|
|
74
|
+
"react": "^17.0.2",
|
|
75
|
+
"react-dom": "^17.0.2",
|
|
76
|
+
"rollup-plugin-visualizer": "^6.0.5",
|
|
77
|
+
"terser": "^5.27.0",
|
|
78
|
+
"typescript": "5.1.3",
|
|
79
|
+
"vite": "^5.0.10",
|
|
80
|
+
"vite-plugin-dts": "^3.7.0",
|
|
81
|
+
"vite-plugin-static-copy": "^3.1.4"
|
|
82
|
+
}
|
|
83
|
+
}
|