@funnelsgrove/runtime 0.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 +42 -0
- package/dist/components/FunnelContext.d.ts +43 -0
- package/dist/components/FunnelContext.js +14 -0
- package/dist/components/FunnelEditorPanel.d.ts +22 -0
- package/dist/components/FunnelEditorPanel.js +116 -0
- package/dist/components/shared/PrimaryButton.d.ts +8 -0
- package/dist/components/shared/PrimaryButton.js +4 -0
- package/dist/config/builder-preview.protocol.d.ts +4 -0
- package/dist/config/builder-preview.protocol.js +4 -0
- package/dist/config/funnel-theme.d.ts +59 -0
- package/dist/config/funnel-theme.js +69 -0
- package/dist/config/funnel.manifest.types.d.ts +50 -0
- package/dist/config/funnel.manifest.types.js +1 -0
- package/dist/index.d.ts +21 -0
- package/dist/index.js +21 -0
- package/dist/runtime/browser-helpers.d.ts +9 -0
- package/dist/runtime/browser-helpers.js +57 -0
- package/dist/runtime/experiment-assignment.d.ts +4 -0
- package/dist/runtime/experiment-assignment.js +32 -0
- package/dist/runtime/funnel-flow.d.ts +23 -0
- package/dist/runtime/funnel-flow.js +66 -0
- package/dist/runtime/funnel-manifest.validation.d.ts +2 -0
- package/dist/runtime/funnel-manifest.validation.js +63 -0
- package/dist/runtime/funnel-runtime.d.ts +34 -0
- package/dist/runtime/funnel-runtime.js +75 -0
- package/dist/runtime/preview-bridge.d.ts +51 -0
- package/dist/runtime/preview-bridge.js +230 -0
- package/dist/runtime/route-resolver.d.ts +18 -0
- package/dist/runtime/route-resolver.js +91 -0
- package/dist/runtime/use-funnel-flow-controller.d.ts +58 -0
- package/dist/runtime/use-funnel-flow-controller.js +523 -0
- package/dist/sdk/userAnswers.d.ts +45 -0
- package/dist/sdk/userAnswers.js +10 -0
- package/dist/services/api.service.d.ts +81 -0
- package/dist/services/api.service.js +346 -0
- package/dist/services/logger.d.ts +8 -0
- package/dist/services/logger.js +16 -0
- package/dist/services/preview-frame.service.d.ts +4 -0
- package/dist/services/preview-frame.service.js +31 -0
- package/dist/services/runtime-api.config.d.ts +7 -0
- package/dist/services/runtime-api.config.js +40 -0
- package/dist/services/runtime-mode.service.d.ts +5 -0
- package/dist/services/runtime-mode.service.js +113 -0
- package/dist/steps/types.d.ts +22 -0
- package/dist/steps/types.js +17 -0
- package/package.json +39 -0
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export const FUNNEL_STEP_TYPES = [
|
|
2
|
+
'intro_hero',
|
|
3
|
+
'value_prop_story',
|
|
4
|
+
'single_step_choice',
|
|
5
|
+
'single_step_choice_emoji',
|
|
6
|
+
'multi_select_choice',
|
|
7
|
+
'form_input',
|
|
8
|
+
'social_proof',
|
|
9
|
+
'progress_interstitial',
|
|
10
|
+
'paywall_offer',
|
|
11
|
+
'upsell_offer',
|
|
12
|
+
'checkout',
|
|
13
|
+
'subscription_management',
|
|
14
|
+
'subscription_handoff',
|
|
15
|
+
'cancellation_offer',
|
|
16
|
+
'summary_confirmation',
|
|
17
|
+
];
|
package/package.json
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@funnelsgrove/runtime",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"private": false,
|
|
6
|
+
"main": "./dist/index.js",
|
|
7
|
+
"module": "./dist/index.js",
|
|
8
|
+
"types": "./dist/index.d.ts",
|
|
9
|
+
"exports": {
|
|
10
|
+
".": {
|
|
11
|
+
"types": "./dist/index.d.ts",
|
|
12
|
+
"import": "./dist/index.js",
|
|
13
|
+
"default": "./dist/index.js"
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
"files": [
|
|
17
|
+
"dist"
|
|
18
|
+
],
|
|
19
|
+
"publishConfig": {
|
|
20
|
+
"access": "public"
|
|
21
|
+
},
|
|
22
|
+
"scripts": {
|
|
23
|
+
"build": "rm -rf dist && tsc -p tsconfig.build.json",
|
|
24
|
+
"lint": "eslint .",
|
|
25
|
+
"prepublishOnly": "npm run build",
|
|
26
|
+
"test:run": "vitest run --passWithNoTests"
|
|
27
|
+
},
|
|
28
|
+
"dependencies": {
|
|
29
|
+
"react": "19.2.3",
|
|
30
|
+
"react-dom": "19.2.3"
|
|
31
|
+
},
|
|
32
|
+
"devDependencies": {
|
|
33
|
+
"@types/node": "^20",
|
|
34
|
+
"@types/react": "^19",
|
|
35
|
+
"@types/react-dom": "^19",
|
|
36
|
+
"typescript": "^5",
|
|
37
|
+
"vitest": "^3.2.4"
|
|
38
|
+
}
|
|
39
|
+
}
|