@funnelsgrove/cli 0.1.14 → 0.1.18
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/contracts/step-contract-v2.json +733 -0
- package/dist/analyticsOutput.d.ts +30 -15
- package/dist/analyticsOutput.js +45 -28
- package/dist/apiClient.d.ts +85 -0
- package/dist/apiClient.js +225 -8
- package/dist/cli.d.ts +149 -1
- package/dist/cli.js +1232 -71
- package/dist/diagnosticOutput.d.ts +42 -0
- package/dist/diagnosticOutput.js +83 -0
- package/dist/docsOutput.d.ts +19 -0
- package/dist/docsOutput.js +73 -0
- package/dist/docsTransaction.d.ts +81 -0
- package/dist/docsTransaction.js +1755 -0
- package/dist/funnelValidation.d.ts +14 -0
- package/dist/funnelValidation.js +297 -0
- package/dist/localSync.d.ts +79 -0
- package/dist/localSync.js +428 -53
- package/dist/projectValidator.d.ts +27 -0
- package/dist/projectValidator.js +208 -0
- package/dist/reskin.js +27 -1
- package/dist/stepContractMigration.d.ts +71 -0
- package/dist/stepContractMigration.js +1323 -0
- package/dist/templateDocs.js +8 -25
- package/docs-release-history.json +66 -0
- package/legacy-docs-catalog.json +1012 -0
- package/package.json +13 -4
- package/template_docs/.funnelsgrove-docs.json +144 -0
- package/template_docs/AGENTS.md +30 -58
- package/template_docs/CLAUDE.md +0 -2
- package/template_docs/docs/funnelsgrove/START-HERE.md +73 -0
- package/template_docs/docs/funnelsgrove/contracts/analytics-events.md +59 -0
- package/template_docs/docs/funnelsgrove/contracts/content-answers.md +44 -0
- package/template_docs/docs/funnelsgrove/contracts/flow-routing.md +41 -0
- package/template_docs/docs/funnelsgrove/contracts/payments.md +42 -0
- package/template_docs/docs/funnelsgrove/contracts/step-metadata.md +57 -0
- package/template_docs/docs/funnelsgrove/migrations/step-contract-v3.md +39 -0
- package/template_docs/docs/funnelsgrove/qa/analytics.md +43 -0
- package/template_docs/docs/funnelsgrove/qa/local.md +42 -0
- package/template_docs/docs/funnelsgrove/qa/paywall-checkout.md +55 -0
- package/template_docs/docs/funnelsgrove/qa/publish.md +32 -0
- package/template_docs/docs/funnelsgrove/recipes/add-experiment.md +34 -0
- package/template_docs/docs/funnelsgrove/recipes/add-step.md +33 -0
- package/template_docs/docs/funnelsgrove/recipes/edit-step.md +31 -0
- package/template_docs/docs/funnelsgrove/steps/INDEX.md +26 -0
- package/template_docs/docs/funnelsgrove/steps/cancellation_offer.md +112 -0
- package/template_docs/docs/funnelsgrove/steps/checkout.md +120 -0
- package/template_docs/docs/funnelsgrove/steps/form_input.md +115 -0
- package/template_docs/docs/funnelsgrove/steps/intro_hero.md +110 -0
- package/template_docs/docs/funnelsgrove/steps/multi_select_choice.md +123 -0
- package/template_docs/docs/funnelsgrove/steps/paywall_offer.md +115 -0
- package/template_docs/docs/funnelsgrove/steps/progress_interstitial.md +111 -0
- package/template_docs/docs/funnelsgrove/steps/purchase_completed.md +117 -0
- package/template_docs/docs/funnelsgrove/steps/single_step_choice.md +122 -0
- package/template_docs/docs/funnelsgrove/steps/single_step_choice_emoji.md +122 -0
- package/template_docs/docs/funnelsgrove/steps/social_proof.md +110 -0
- package/template_docs/docs/funnelsgrove/steps/subscription_handoff.md +113 -0
- package/template_docs/docs/funnelsgrove/steps/subscription_management.md +112 -0
- package/template_docs/docs/funnelsgrove/steps/summary_confirmation.md +110 -0
- package/template_docs/docs/funnelsgrove/steps/upsell_offer.md +112 -0
- package/template_docs/docs/funnelsgrove/steps/value_prop_story.md +110 -0
- package/template_docs/funnel-docs.config.json +43 -0
- package/template_scaffold/.env.example +41 -0
- package/template_scaffold/.funnelsgrove-contract-tools.json +19 -0
- package/template_scaffold/.funnelsgrove-docs.json +144 -0
- package/template_scaffold/.funnelsgrove-scaffold.json +1078 -0
- package/template_scaffold/AGENTS.md +42 -0
- package/template_scaffold/CLAUDE.md +1 -0
- package/template_scaffold/PLAN.md +81 -0
- package/template_scaffold/PRODUCT_SENSE.md +28 -0
- package/template_scaffold/context/build-context.md +34 -0
- package/template_scaffold/docs/AGENT_FUNNEL_IMPLEMENTATION_SPEC.md +5 -0
- package/template_scaffold/docs/ARCHITECTURE.md +5 -0
- package/template_scaffold/docs/FLOW_CONFIG_AND_ROUTING.md +5 -0
- package/template_scaffold/docs/PAYWALL_AND_PAYMENTS.md +5 -0
- package/template_scaffold/docs/README.md +5 -0
- package/template_scaffold/docs/funnelsgrove/START-HERE.md +73 -0
- package/template_scaffold/docs/funnelsgrove/contracts/analytics-events.md +59 -0
- package/template_scaffold/docs/funnelsgrove/contracts/content-answers.md +44 -0
- package/template_scaffold/docs/funnelsgrove/contracts/flow-routing.md +41 -0
- package/template_scaffold/docs/funnelsgrove/contracts/payments.md +42 -0
- package/template_scaffold/docs/funnelsgrove/contracts/step-metadata.md +57 -0
- package/template_scaffold/docs/funnelsgrove/migrations/step-contract-v3.md +39 -0
- package/template_scaffold/docs/funnelsgrove/qa/analytics.md +43 -0
- package/template_scaffold/docs/funnelsgrove/qa/local.md +42 -0
- package/template_scaffold/docs/funnelsgrove/qa/paywall-checkout.md +55 -0
- package/template_scaffold/docs/funnelsgrove/qa/publish.md +32 -0
- package/template_scaffold/docs/funnelsgrove/recipes/add-experiment.md +34 -0
- package/template_scaffold/docs/funnelsgrove/recipes/add-step.md +33 -0
- package/template_scaffold/docs/funnelsgrove/recipes/edit-step.md +31 -0
- package/template_scaffold/docs/funnelsgrove/steps/INDEX.md +26 -0
- package/template_scaffold/docs/funnelsgrove/steps/cancellation_offer.md +112 -0
- package/template_scaffold/docs/funnelsgrove/steps/checkout.md +120 -0
- package/template_scaffold/docs/funnelsgrove/steps/form_input.md +115 -0
- package/template_scaffold/docs/funnelsgrove/steps/intro_hero.md +110 -0
- package/template_scaffold/docs/funnelsgrove/steps/multi_select_choice.md +123 -0
- package/template_scaffold/docs/funnelsgrove/steps/paywall_offer.md +115 -0
- package/template_scaffold/docs/funnelsgrove/steps/progress_interstitial.md +111 -0
- package/template_scaffold/docs/funnelsgrove/steps/purchase_completed.md +117 -0
- package/template_scaffold/docs/funnelsgrove/steps/single_step_choice.md +122 -0
- package/template_scaffold/docs/funnelsgrove/steps/single_step_choice_emoji.md +122 -0
- package/template_scaffold/docs/funnelsgrove/steps/social_proof.md +110 -0
- package/template_scaffold/docs/funnelsgrove/steps/subscription_handoff.md +113 -0
- package/template_scaffold/docs/funnelsgrove/steps/subscription_management.md +112 -0
- package/template_scaffold/docs/funnelsgrove/steps/summary_confirmation.md +110 -0
- package/template_scaffold/docs/funnelsgrove/steps/upsell_offer.md +112 -0
- package/template_scaffold/docs/funnelsgrove/steps/value_prop_story.md +110 -0
- package/template_scaffold/docs/references/funnel-sdk-user-answers.md +5 -0
- package/template_scaffold/eslint.config.mjs +16 -0
- package/template_scaffold/funnel-agent-docs.test.ts +699 -0
- package/template_scaffold/funnel-docs.config.json +43 -0
- package/template_scaffold/funnel.config.json +5 -0
- package/template_scaffold/gitignore.template +5 -0
- package/template_scaffold/next-env.d.ts +6 -0
- package/template_scaffold/next.config.ts +53 -0
- package/template_scaffold/package-lock.json +7737 -0
- package/template_scaffold/package.json +37 -0
- package/template_scaffold/package.test.ts +23 -0
- package/template_scaffold/public/claimbee/bee.png +0 -0
- package/template_scaffold/public/claimbee/device-iphone.png +0 -0
- package/template_scaffold/public/claimbee/device-macbook.png +0 -0
- package/template_scaffold/public/claimbee/device-none.png +0 -0
- package/template_scaffold/public/claimbee/device-watch.png +0 -0
- package/template_scaffold/public/claimbee/glow.svg +3 -0
- package/template_scaffold/public/claimbee/steps-sprite-alt.png +0 -0
- package/template_scaffold/public/claimbee/steps-sprite-default.png +0 -0
- package/template_scaffold/public/claimbee/testimonial-avatar.png +0 -0
- package/template_scaffold/public/claimbee/testimonial-star.svg +3 -0
- package/template_scaffold/public/paywall/ai-claim-assistant.png +0 -0
- package/template_scaffold/public/paywall/claim-history.png +0 -0
- package/template_scaffold/public/paywall/clear-progress.png +0 -0
- package/template_scaffold/public/paywall/hero.png +0 -0
- package/template_scaffold/public/paywall/money-alerts.png +0 -0
- package/template_scaffold/public/paywall/money-back-badge.png +0 -0
- package/template_scaffold/public/paywall/paywall-image.png +0 -0
- package/template_scaffold/public/paywall/r1.png +0 -0
- package/template_scaffold/public/paywall/r2.png +0 -0
- package/template_scaffold/public/paywall/r3.png +0 -0
- package/template_scaffold/public/paywall/r4.png +0 -0
- package/template_scaffold/public/paywall/r5.png +0 -0
- package/template_scaffold/public/paywall/r6.png +0 -0
- package/template_scaffold/public/paywall/special-offer-gift.png +0 -0
- package/template_scaffold/public/please/bee.png +0 -0
- package/template_scaffold/public/please/device-iphone.png +0 -0
- package/template_scaffold/public/please/device-macbook.png +0 -0
- package/template_scaffold/public/please/device-none.png +0 -0
- package/template_scaffold/public/please/device-watch.png +0 -0
- package/template_scaffold/public/please/glow.svg +3 -0
- package/template_scaffold/public/please/steps-sprite-alt.png +0 -0
- package/template_scaffold/public/please/steps-sprite-default.png +0 -0
- package/template_scaffold/public/please/testimonial-avatar.png +0 -0
- package/template_scaffold/public/please/testimonial-star.svg +3 -0
- package/template_scaffold/public/upsell/upgrade-hero.png +0 -0
- package/template_scaffold/src/app/[stepId]/page.test.tsx +59 -0
- package/template_scaffold/src/app/[stepId]/page.tsx +62 -0
- package/template_scaffold/src/app/globals.css +49 -0
- package/template_scaffold/src/app/layout.test.ts +26 -0
- package/template_scaffold/src/app/layout.tsx +61 -0
- package/template_scaffold/src/app/page.tsx +8 -0
- package/template_scaffold/src/app/sdk/page.tsx +673 -0
- package/template_scaffold/src/app/subscription-dashboard/page.tsx +274 -0
- package/template_scaffold/src/assets/claimbee/bee.png +0 -0
- package/template_scaffold/src/assets/claimbee/device-iphone.png +0 -0
- package/template_scaffold/src/assets/claimbee/device-macbook.png +0 -0
- package/template_scaffold/src/assets/claimbee/device-none.png +0 -0
- package/template_scaffold/src/assets/claimbee/device-watch.png +0 -0
- package/template_scaffold/src/assets/claimbee/glow.svg +3 -0
- package/template_scaffold/src/assets/claimbee/steps-sprite-alt.png +0 -0
- package/template_scaffold/src/assets/claimbee/steps-sprite-default.png +0 -0
- package/template_scaffold/src/assets/claimbee/testimonial-avatar.png +0 -0
- package/template_scaffold/src/assets/claimbee/testimonial-star.svg +3 -0
- package/template_scaffold/src/components/FunnelEditorPanel.tsx +194 -0
- package/template_scaffold/src/components/FunnelFlow.test.tsx +17 -0
- package/template_scaffold/src/components/FunnelFlow.tsx +114 -0
- package/template_scaffold/src/components/FunnelStepImage.test.ts +15 -0
- package/template_scaffold/src/components/FunnelStepImage.tsx +28 -0
- package/template_scaffold/src/components/step/FunnelStepHeader.tsx +35 -0
- package/template_scaffold/src/config/billing.plans.test.ts +143 -0
- package/template_scaffold/src/config/billing.plans.ts +69 -0
- package/template_scaffold/src/config/billing.test.plans.ts +32 -0
- package/template_scaffold/src/config/experiments.generated.ts +4 -0
- package/template_scaffold/src/config/experiments.test.ts +12 -0
- package/template_scaffold/src/config/experiments.ts +9 -0
- package/template_scaffold/src/config/funnel.config.ts +12 -0
- package/template_scaffold/src/config/funnel.manifest.test.ts +166 -0
- package/template_scaffold/src/config/funnel.manifest.ts +139 -0
- package/template_scaffold/src/config/offer-sets.generated.ts +4 -0
- package/template_scaffold/src/contract/funnel-project.validation.test.ts +80 -0
- package/template_scaffold/src/contract/funnel-project.validation.ts +44 -0
- package/template_scaffold/src/contract/funnel-validator.vite.config.ts +11 -0
- package/template_scaffold/src/contract/golden/cancellation_offer.fixture.ts +29 -0
- package/template_scaffold/src/contract/golden/checkout.fixture.ts +37 -0
- package/template_scaffold/src/contract/golden/form_input.fixture.ts +28 -0
- package/template_scaffold/src/contract/golden/golden-fixtures.test.ts +190 -0
- package/template_scaffold/src/contract/golden/intro_hero.fixture.ts +27 -0
- package/template_scaffold/src/contract/golden/multi_select_choice.fixture.ts +37 -0
- package/template_scaffold/src/contract/golden/paywall_offer.fixture.ts +30 -0
- package/template_scaffold/src/contract/golden/progress_interstitial.fixture.ts +28 -0
- package/template_scaffold/src/contract/golden/purchase_completed.fixture.ts +33 -0
- package/template_scaffold/src/contract/golden/single_step_choice.fixture.ts +36 -0
- package/template_scaffold/src/contract/golden/single_step_choice_emoji.fixture.ts +36 -0
- package/template_scaffold/src/contract/golden/social_proof.fixture.ts +27 -0
- package/template_scaffold/src/contract/golden/subscription_handoff.fixture.ts +30 -0
- package/template_scaffold/src/contract/golden/subscription_management.fixture.ts +29 -0
- package/template_scaffold/src/contract/golden/summary_confirmation.fixture.ts +27 -0
- package/template_scaffold/src/contract/golden/upsell_offer.fixture.ts +29 -0
- package/template_scaffold/src/contract/golden/value_prop_story.fixture.ts +27 -0
- package/template_scaffold/src/contract/validate-funnel.cli.test.ts +180 -0
- package/template_scaffold/src/contract/validate-funnel.cli.ts +199 -0
- package/template_scaffold/src/runtime/checkout-runtime-config.test.ts +60 -0
- package/template_scaffold/src/runtime/checkout-runtime-config.ts +26 -0
- package/template_scaffold/src/runtime/funnel-runtime.test.ts +25 -0
- package/template_scaffold/src/runtime/funnel-runtime.ts +118 -0
- package/template_scaffold/src/runtime/step-content-context.test.ts +38 -0
- package/template_scaffold/src/runtime/step-content-context.ts +65 -0
- package/template_scaffold/src/runtime/step-registry.ts +66 -0
- package/template_scaffold/src/runtime/step-variable-values.ts +31 -0
- package/template_scaffold/src/runtime/use-funnel-flow-controller.integration.test.ts +203 -0
- package/template_scaffold/src/runtime/use-funnel-flow-controller.test.ts +76 -0
- package/template_scaffold/src/runtime/use-funnel-flow-controller.ts +53 -0
- package/template_scaffold/src/steps/content/email-capture.content.ts +29 -0
- package/template_scaffold/src/steps/content/manage-subscription.content.ts +62 -0
- package/template_scaffold/src/steps/content/paywall.content.ts +191 -0
- package/template_scaffold/src/steps/content/step-01.content.ts +23 -0
- package/template_scaffold/src/steps/content/step-02.content.ts +77 -0
- package/template_scaffold/src/steps/content/step-03.content.ts +40 -0
- package/template_scaffold/src/steps/content/step-04.content.ts +49 -0
- package/template_scaffold/src/steps/content/step-32-paywall.content.ts +352 -0
- package/template_scaffold/src/steps/content/subscription-started.content.ts +68 -0
- package/template_scaffold/src/steps/editor/email-capture.editor.ts +58 -0
- package/template_scaffold/src/steps/editor/manage-subscription.editor.ts +179 -0
- package/template_scaffold/src/steps/editor/paywall.editor.ts +232 -0
- package/template_scaffold/src/steps/editor/step-01.editor.ts +22 -0
- package/template_scaffold/src/steps/editor/step-02.editor.ts +41 -0
- package/template_scaffold/src/steps/editor/step-03.editor.ts +58 -0
- package/template_scaffold/src/steps/editor/step-04.editor.ts +98 -0
- package/template_scaffold/src/steps/editor/step-32-paywall.editor.ts +478 -0
- package/template_scaffold/src/steps/editor/subscription-started.editor.ts +131 -0
- package/template_scaffold/src/steps/index.ts +25 -0
- package/template_scaffold/src/steps/paywall-checkout-options.test.ts +104 -0
- package/template_scaffold/src/steps/paywall-checkout-options.ts +130 -0
- package/template_scaffold/src/steps/pricing/paywall-b.pricing.ts +12 -0
- package/template_scaffold/src/steps/pricing/paywall.pricing.ts +12 -0
- package/template_scaffold/src/steps/pricing/shared-plan-order.ts +17 -0
- package/template_scaffold/src/steps/pricing/upsell-form.pricing.ts +16 -0
- package/template_scaffold/src/steps/shared-header-contract.test.ts +27 -0
- package/template_scaffold/src/steps/step-01.test.ts +38 -0
- package/template_scaffold/src/steps/step-01.tsx +108 -0
- package/template_scaffold/src/steps/step-02.test.ts +43 -0
- package/template_scaffold/src/steps/step-02.tsx +140 -0
- package/template_scaffold/src/steps/step-03.test.ts +15 -0
- package/template_scaffold/src/steps/step-03.tsx +262 -0
- package/template_scaffold/src/steps/step-04.test.ts +32 -0
- package/template_scaffold/src/steps/step-04.tsx +673 -0
- package/template_scaffold/src/steps/step-31-email-capture.test.ts +22 -0
- package/template_scaffold/src/steps/step-31-email-capture.tsx +195 -0
- package/template_scaffold/src/steps/step-32-paywall.test.ts +770 -0
- package/template_scaffold/src/steps/step-32-paywall.tsx +2253 -0
- package/template_scaffold/src/steps/step-32b-paywall-b.tsx +35 -0
- package/template_scaffold/src/steps/step-33-subscription-started.test.ts +26 -0
- package/template_scaffold/src/steps/step-33-subscription-started.tsx +86 -0
- package/template_scaffold/src/steps/step-34-upsell-form.test.ts +27 -0
- package/template_scaffold/src/steps/step-35-manage-subscription.tsx +46 -0
- package/template_scaffold/src/steps/step-content.registry.ts +45 -0
- package/template_scaffold/src/steps/step-image-migration.test.ts +20 -0
- package/template_scaffold/src/steps/styles/index.css +2 -0
- package/template_scaffold/src/steps/styles/shared/final-flow-shared.css +55 -0
- package/template_scaffold/src/steps/styles/shared/funnel-base.css +543 -0
- package/template_scaffold/src/steps/styles/shared/info-shared.css +139 -0
- package/template_scaffold/src/steps/styles/shared/progress-shared.css +117 -0
- package/template_scaffold/src/steps/styles/shared/question-shared.css +76 -0
- package/template_scaffold/src/steps/styles/shared/responsive-container.css +176 -0
- package/template_scaffold/src/steps/types.ts +7 -0
- package/template_scaffold/src/steps/use-claimbee-step-content.ts +15 -0
- package/template_scaffold/src/theme/theme.ts +81 -0
- package/template_scaffold/tsconfig.json +38 -0
- package/template_scaffold/vitest.config.ts +32 -0
- package/template_validation/.funnelsgrove-contract-tools.json +19 -0
- package/template_validation/src/contract/funnel-project.validation.ts +44 -0
- package/template_validation/src/contract/funnel-validator.vite.config.ts +11 -0
- package/template_validation/src/contract/validate-funnel.cli.ts +199 -0
- package/template_docs/docs/ab-experiments.md +0 -55
- package/template_docs/docs/analytics.md +0 -65
- package/template_docs/docs/editing-flow.md +0 -125
- package/template_docs/docs/editing-step.md +0 -125
- package/template_docs/docs/editor-and-content.md +0 -58
- package/template_docs/docs/funnel-runtime-architecture.md +0 -125
- package/template_docs/docs/meta-pixel-conversions-api.md +0 -50
- package/template_docs/docs/payment-plans-and-discounts.md +0 -106
- package/template_docs/docs/publishing-and-versioning.md +0 -117
- package/template_docs/docs/qa-checklist.md +0 -80
- package/template_docs/docs/sdk-api-endpoints.md +0 -78
- package/template_docs/docs/step-ui-guidelines.md +0 -110
- package/template_docs/docs/theme.md +0 -35
|
@@ -0,0 +1,478 @@
|
|
|
1
|
+
import type { StepEditorSection } from '@funnelsgrove/runtime';
|
|
2
|
+
|
|
3
|
+
export const stepPaywallEditor: readonly StepEditorSection[] = [
|
|
4
|
+
{
|
|
5
|
+
id: 'loading',
|
|
6
|
+
label: 'Loading',
|
|
7
|
+
fields: [
|
|
8
|
+
{
|
|
9
|
+
id: 'loadingLabel',
|
|
10
|
+
label: 'Loading label',
|
|
11
|
+
kind: 'text',
|
|
12
|
+
path: 'loadingLabel',
|
|
13
|
+
},
|
|
14
|
+
],
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
id: 'top-bar',
|
|
18
|
+
label: 'Top Bar',
|
|
19
|
+
fields: [
|
|
20
|
+
{
|
|
21
|
+
id: 'topBarDiscountLabel',
|
|
22
|
+
label: 'Discount label',
|
|
23
|
+
kind: 'text',
|
|
24
|
+
path: 'topBarDiscountLabel',
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
id: 'topBarCtaLabel',
|
|
28
|
+
label: 'Top CTA label',
|
|
29
|
+
kind: 'text',
|
|
30
|
+
path: 'topBarCtaLabel',
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
id: 'countdownUnits',
|
|
34
|
+
label: 'Countdown units',
|
|
35
|
+
kind: 'textLines',
|
|
36
|
+
path: 'countdownUnits',
|
|
37
|
+
},
|
|
38
|
+
],
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
id: 'hero',
|
|
42
|
+
label: 'Hero',
|
|
43
|
+
fields: [
|
|
44
|
+
{
|
|
45
|
+
id: 'hero.pills',
|
|
46
|
+
label: 'Hero pills',
|
|
47
|
+
kind: 'textLines',
|
|
48
|
+
path: 'hero.pills',
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
id: 'hero.image',
|
|
52
|
+
label: 'Hero image',
|
|
53
|
+
kind: 'image',
|
|
54
|
+
path: 'hero.image',
|
|
55
|
+
},
|
|
56
|
+
],
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
id: 'promo',
|
|
60
|
+
label: 'Promo',
|
|
61
|
+
fields: [
|
|
62
|
+
{
|
|
63
|
+
id: 'promo.ariaLabel',
|
|
64
|
+
label: 'Promo aria label',
|
|
65
|
+
kind: 'text',
|
|
66
|
+
path: 'promo.ariaLabel',
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
id: 'promo.initialLabel',
|
|
70
|
+
label: 'Promo label',
|
|
71
|
+
kind: 'text',
|
|
72
|
+
path: 'promo.initialLabel',
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
id: 'promo.upgradedLabel',
|
|
76
|
+
label: 'Upgraded promo label',
|
|
77
|
+
kind: 'text',
|
|
78
|
+
path: 'promo.upgradedLabel',
|
|
79
|
+
},
|
|
80
|
+
],
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
id: 'highlight',
|
|
84
|
+
label: 'Highlight',
|
|
85
|
+
fields: [
|
|
86
|
+
{
|
|
87
|
+
id: 'highlight.title',
|
|
88
|
+
label: 'Highlight title',
|
|
89
|
+
kind: 'textLines',
|
|
90
|
+
path: 'highlight.title',
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
id: 'highlight.description',
|
|
94
|
+
label: 'Highlight description',
|
|
95
|
+
kind: 'textarea',
|
|
96
|
+
path: 'highlight.description',
|
|
97
|
+
},
|
|
98
|
+
],
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
id: 'plans',
|
|
102
|
+
label: 'Plans',
|
|
103
|
+
fields: [
|
|
104
|
+
{
|
|
105
|
+
id: 'plans.title',
|
|
106
|
+
label: 'Plans title',
|
|
107
|
+
kind: 'text',
|
|
108
|
+
path: 'plans.title',
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
id: 'plans.cardButtonLabel',
|
|
112
|
+
label: 'Card button label',
|
|
113
|
+
kind: 'text',
|
|
114
|
+
path: 'plans.cardButtonLabel',
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
id: 'plans.metaLabels',
|
|
118
|
+
label: 'Meta labels',
|
|
119
|
+
kind: 'textLines',
|
|
120
|
+
path: 'plans.metaLabels',
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
id: 'plans.stripeUnavailableNote',
|
|
124
|
+
label: 'Stripe unavailable note',
|
|
125
|
+
kind: 'textarea',
|
|
126
|
+
path: 'plans.stripeUnavailableNote',
|
|
127
|
+
},
|
|
128
|
+
],
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
id: 'checkout',
|
|
132
|
+
label: 'Checkout',
|
|
133
|
+
fields: [
|
|
134
|
+
{
|
|
135
|
+
id: 'checkout.title',
|
|
136
|
+
label: 'Dialog title',
|
|
137
|
+
kind: 'text',
|
|
138
|
+
path: 'checkout.title',
|
|
139
|
+
},
|
|
140
|
+
{
|
|
141
|
+
id: 'checkout.summaryTitle',
|
|
142
|
+
label: 'Summary title',
|
|
143
|
+
kind: 'text',
|
|
144
|
+
path: 'checkout.summaryTitle',
|
|
145
|
+
},
|
|
146
|
+
{
|
|
147
|
+
id: 'checkout.closeAriaLabel',
|
|
148
|
+
label: 'Close aria label',
|
|
149
|
+
kind: 'text',
|
|
150
|
+
path: 'checkout.closeAriaLabel',
|
|
151
|
+
},
|
|
152
|
+
{
|
|
153
|
+
id: 'checkout.walletPlaceholderLabel',
|
|
154
|
+
label: 'Wallet placeholder label',
|
|
155
|
+
kind: 'text',
|
|
156
|
+
path: 'checkout.walletPlaceholderLabel',
|
|
157
|
+
},
|
|
158
|
+
{
|
|
159
|
+
id: 'checkout.walletButtonLabel',
|
|
160
|
+
label: 'Wallet button label',
|
|
161
|
+
kind: 'text',
|
|
162
|
+
path: 'checkout.walletButtonLabel',
|
|
163
|
+
},
|
|
164
|
+
{
|
|
165
|
+
id: 'checkout.customerEmailLabel',
|
|
166
|
+
label: 'Customer email label',
|
|
167
|
+
kind: 'text',
|
|
168
|
+
path: 'checkout.customerEmailLabel',
|
|
169
|
+
},
|
|
170
|
+
{
|
|
171
|
+
id: 'checkout.customerEmailPlaceholder',
|
|
172
|
+
label: 'Customer email placeholder',
|
|
173
|
+
kind: 'text',
|
|
174
|
+
path: 'checkout.customerEmailPlaceholder',
|
|
175
|
+
},
|
|
176
|
+
{
|
|
177
|
+
id: 'checkout.customerEmailInvalidMessage',
|
|
178
|
+
label: 'Customer email invalid message',
|
|
179
|
+
kind: 'text',
|
|
180
|
+
path: 'checkout.customerEmailInvalidMessage',
|
|
181
|
+
},
|
|
182
|
+
{
|
|
183
|
+
id: 'checkout.countdownLabel',
|
|
184
|
+
label: 'Checkout countdown label',
|
|
185
|
+
kind: 'text',
|
|
186
|
+
path: 'checkout.countdownLabel',
|
|
187
|
+
},
|
|
188
|
+
{
|
|
189
|
+
id: 'checkout.satisfactionPercent',
|
|
190
|
+
label: 'Satisfaction percent',
|
|
191
|
+
kind: 'text',
|
|
192
|
+
path: 'checkout.satisfactionPercent',
|
|
193
|
+
},
|
|
194
|
+
{
|
|
195
|
+
id: 'checkout.satisfactionLabel',
|
|
196
|
+
label: 'Satisfaction label',
|
|
197
|
+
kind: 'textarea',
|
|
198
|
+
path: 'checkout.satisfactionLabel',
|
|
199
|
+
},
|
|
200
|
+
{
|
|
201
|
+
id: 'checkout.originalPriceLabel',
|
|
202
|
+
label: 'Original price label',
|
|
203
|
+
kind: 'text',
|
|
204
|
+
path: 'checkout.originalPriceLabel',
|
|
205
|
+
},
|
|
206
|
+
{
|
|
207
|
+
id: 'checkout.discountLabelTemplate',
|
|
208
|
+
label: 'Discount label template',
|
|
209
|
+
kind: 'text',
|
|
210
|
+
path: 'checkout.discountLabelTemplate',
|
|
211
|
+
},
|
|
212
|
+
{
|
|
213
|
+
id: 'checkout.discountRowLabelTemplate',
|
|
214
|
+
label: 'Discount row label template',
|
|
215
|
+
kind: 'text',
|
|
216
|
+
path: 'checkout.discountRowLabelTemplate',
|
|
217
|
+
},
|
|
218
|
+
{
|
|
219
|
+
id: 'checkout.promoCodeLabel',
|
|
220
|
+
label: 'Promo code label',
|
|
221
|
+
kind: 'text',
|
|
222
|
+
path: 'checkout.promoCodeLabel',
|
|
223
|
+
},
|
|
224
|
+
{
|
|
225
|
+
id: 'checkout.savedLabelTemplate',
|
|
226
|
+
label: 'Saved label template',
|
|
227
|
+
kind: 'text',
|
|
228
|
+
path: 'checkout.savedLabelTemplate',
|
|
229
|
+
},
|
|
230
|
+
{
|
|
231
|
+
id: 'checkout.totalLabel',
|
|
232
|
+
label: 'Total label',
|
|
233
|
+
kind: 'text',
|
|
234
|
+
path: 'checkout.totalLabel',
|
|
235
|
+
},
|
|
236
|
+
{
|
|
237
|
+
id: 'checkout.summaryGuaranteeLabel',
|
|
238
|
+
label: 'Summary guarantee label',
|
|
239
|
+
kind: 'text',
|
|
240
|
+
path: 'checkout.summaryGuaranteeLabel',
|
|
241
|
+
},
|
|
242
|
+
{
|
|
243
|
+
id: 'checkout.submitLabel',
|
|
244
|
+
label: 'Submit label',
|
|
245
|
+
kind: 'text',
|
|
246
|
+
path: 'checkout.submitLabel',
|
|
247
|
+
},
|
|
248
|
+
{
|
|
249
|
+
id: 'checkout.cardSubmitLabel',
|
|
250
|
+
label: 'Card submit label',
|
|
251
|
+
kind: 'text',
|
|
252
|
+
path: 'checkout.cardSubmitLabel',
|
|
253
|
+
},
|
|
254
|
+
{
|
|
255
|
+
id: 'checkout.paypalLabel',
|
|
256
|
+
label: 'PayPal label',
|
|
257
|
+
kind: 'text',
|
|
258
|
+
path: 'checkout.paypalLabel',
|
|
259
|
+
},
|
|
260
|
+
{
|
|
261
|
+
id: 'checkout.paypalButtonLabel',
|
|
262
|
+
label: 'PayPal button label',
|
|
263
|
+
kind: 'text',
|
|
264
|
+
path: 'checkout.paypalButtonLabel',
|
|
265
|
+
},
|
|
266
|
+
{
|
|
267
|
+
id: 'checkout.processingLabel',
|
|
268
|
+
label: 'Processing label',
|
|
269
|
+
kind: 'text',
|
|
270
|
+
path: 'checkout.processingLabel',
|
|
271
|
+
},
|
|
272
|
+
{
|
|
273
|
+
id: 'checkout.secureLabel',
|
|
274
|
+
label: 'Secure label',
|
|
275
|
+
kind: 'text',
|
|
276
|
+
path: 'checkout.secureLabel',
|
|
277
|
+
},
|
|
278
|
+
{
|
|
279
|
+
id: 'checkout.poweredByLabel',
|
|
280
|
+
label: 'Powered by label',
|
|
281
|
+
kind: 'text',
|
|
282
|
+
path: 'checkout.poweredByLabel',
|
|
283
|
+
},
|
|
284
|
+
{
|
|
285
|
+
id: 'checkout.paymentMethodLabels',
|
|
286
|
+
label: 'Payment method labels',
|
|
287
|
+
kind: 'textLines',
|
|
288
|
+
path: 'checkout.paymentMethodLabels',
|
|
289
|
+
},
|
|
290
|
+
{
|
|
291
|
+
id: 'checkout.legalPrefix',
|
|
292
|
+
label: 'Legal prefix',
|
|
293
|
+
kind: 'textarea',
|
|
294
|
+
path: 'checkout.legalPrefix',
|
|
295
|
+
},
|
|
296
|
+
{
|
|
297
|
+
id: 'checkout.legalLinks',
|
|
298
|
+
label: 'Legal links',
|
|
299
|
+
kind: 'list',
|
|
300
|
+
path: 'checkout.legalLinks',
|
|
301
|
+
preset: 'linkItems',
|
|
302
|
+
},
|
|
303
|
+
{
|
|
304
|
+
id: 'checkout.supportText',
|
|
305
|
+
label: 'Support text',
|
|
306
|
+
kind: 'text',
|
|
307
|
+
path: 'checkout.supportText',
|
|
308
|
+
},
|
|
309
|
+
{
|
|
310
|
+
id: 'checkout.renewalTemplate',
|
|
311
|
+
label: 'Renewal template',
|
|
312
|
+
kind: 'textarea',
|
|
313
|
+
path: 'checkout.renewalTemplate',
|
|
314
|
+
},
|
|
315
|
+
{
|
|
316
|
+
id: 'checkout.specialOffer.discountLabel',
|
|
317
|
+
label: 'Special offer discount label',
|
|
318
|
+
kind: 'text',
|
|
319
|
+
path: 'checkout.specialOffer.discountLabel',
|
|
320
|
+
},
|
|
321
|
+
{
|
|
322
|
+
id: 'checkout.specialOffer.image',
|
|
323
|
+
label: 'Special offer image',
|
|
324
|
+
kind: 'image',
|
|
325
|
+
path: 'checkout.specialOffer.image',
|
|
326
|
+
},
|
|
327
|
+
{
|
|
328
|
+
id: 'checkout.specialOffer.title',
|
|
329
|
+
label: 'Special offer title',
|
|
330
|
+
kind: 'text',
|
|
331
|
+
path: 'checkout.specialOffer.title',
|
|
332
|
+
},
|
|
333
|
+
{
|
|
334
|
+
id: 'checkout.specialOffer.description',
|
|
335
|
+
label: 'Special offer description',
|
|
336
|
+
kind: 'textarea',
|
|
337
|
+
path: 'checkout.specialOffer.description',
|
|
338
|
+
},
|
|
339
|
+
{
|
|
340
|
+
id: 'checkout.specialOffer.buttonLabel',
|
|
341
|
+
label: 'Special offer button label',
|
|
342
|
+
kind: 'text',
|
|
343
|
+
path: 'checkout.specialOffer.buttonLabel',
|
|
344
|
+
},
|
|
345
|
+
],
|
|
346
|
+
},
|
|
347
|
+
{
|
|
348
|
+
id: 'feature-grid',
|
|
349
|
+
label: 'Feature Grid',
|
|
350
|
+
fields: [
|
|
351
|
+
{
|
|
352
|
+
id: 'featureGrid.title',
|
|
353
|
+
label: 'Section title',
|
|
354
|
+
kind: 'textLines',
|
|
355
|
+
path: 'featureGrid.title',
|
|
356
|
+
},
|
|
357
|
+
{
|
|
358
|
+
id: 'featureGrid.subtitle',
|
|
359
|
+
label: 'Section subtitle',
|
|
360
|
+
kind: 'textarea',
|
|
361
|
+
path: 'featureGrid.subtitle',
|
|
362
|
+
},
|
|
363
|
+
{
|
|
364
|
+
id: 'featureGrid.assistant.image',
|
|
365
|
+
label: 'Assistant image',
|
|
366
|
+
kind: 'image',
|
|
367
|
+
path: 'featureGrid.assistant.image',
|
|
368
|
+
},
|
|
369
|
+
{
|
|
370
|
+
id: 'featureGrid.assistant.title',
|
|
371
|
+
label: 'Assistant title',
|
|
372
|
+
kind: 'text',
|
|
373
|
+
path: 'featureGrid.assistant.title',
|
|
374
|
+
},
|
|
375
|
+
{
|
|
376
|
+
id: 'featureGrid.assistant.description',
|
|
377
|
+
label: 'Assistant description',
|
|
378
|
+
kind: 'textarea',
|
|
379
|
+
path: 'featureGrid.assistant.description',
|
|
380
|
+
},
|
|
381
|
+
{
|
|
382
|
+
id: 'featureGrid.quickFeatures',
|
|
383
|
+
label: 'Quick features',
|
|
384
|
+
kind: 'list',
|
|
385
|
+
path: 'featureGrid.quickFeatures',
|
|
386
|
+
preset: 'infoItems',
|
|
387
|
+
},
|
|
388
|
+
{
|
|
389
|
+
id: 'featureGrid.history.image',
|
|
390
|
+
label: 'History image',
|
|
391
|
+
kind: 'image',
|
|
392
|
+
path: 'featureGrid.history.image',
|
|
393
|
+
},
|
|
394
|
+
{
|
|
395
|
+
id: 'featureGrid.history.title',
|
|
396
|
+
label: 'History title',
|
|
397
|
+
kind: 'textarea',
|
|
398
|
+
path: 'featureGrid.history.title',
|
|
399
|
+
},
|
|
400
|
+
{
|
|
401
|
+
id: 'featureGrid.detailedFeatures',
|
|
402
|
+
label: 'Detailed features',
|
|
403
|
+
kind: 'list',
|
|
404
|
+
path: 'featureGrid.detailedFeatures',
|
|
405
|
+
preset: 'infoItems',
|
|
406
|
+
},
|
|
407
|
+
],
|
|
408
|
+
},
|
|
409
|
+
{
|
|
410
|
+
id: 'stories',
|
|
411
|
+
label: 'Stories',
|
|
412
|
+
fields: [
|
|
413
|
+
{
|
|
414
|
+
id: 'stories.title',
|
|
415
|
+
label: 'Stories title',
|
|
416
|
+
kind: 'text',
|
|
417
|
+
path: 'stories.title',
|
|
418
|
+
},
|
|
419
|
+
{
|
|
420
|
+
id: 'stories.items',
|
|
421
|
+
label: 'Stories',
|
|
422
|
+
kind: 'list',
|
|
423
|
+
path: 'stories.items',
|
|
424
|
+
preset: 'quoteItems',
|
|
425
|
+
},
|
|
426
|
+
],
|
|
427
|
+
},
|
|
428
|
+
{
|
|
429
|
+
id: 'faq',
|
|
430
|
+
label: 'FAQ',
|
|
431
|
+
fields: [
|
|
432
|
+
{
|
|
433
|
+
id: 'faq.title',
|
|
434
|
+
label: 'FAQ title',
|
|
435
|
+
kind: 'text',
|
|
436
|
+
path: 'faq.title',
|
|
437
|
+
},
|
|
438
|
+
{
|
|
439
|
+
id: 'faq.items',
|
|
440
|
+
label: 'FAQ items',
|
|
441
|
+
kind: 'list',
|
|
442
|
+
path: 'faq.items',
|
|
443
|
+
preset: 'qaItems',
|
|
444
|
+
},
|
|
445
|
+
],
|
|
446
|
+
},
|
|
447
|
+
{
|
|
448
|
+
id: 'guarantee',
|
|
449
|
+
label: 'Guarantee',
|
|
450
|
+
fields: [
|
|
451
|
+
{
|
|
452
|
+
id: 'guarantee.image',
|
|
453
|
+
label: 'Guarantee image',
|
|
454
|
+
kind: 'image',
|
|
455
|
+
path: 'guarantee.image',
|
|
456
|
+
},
|
|
457
|
+
{
|
|
458
|
+
id: 'guarantee.title',
|
|
459
|
+
label: 'Guarantee title',
|
|
460
|
+
kind: 'text',
|
|
461
|
+
path: 'guarantee.title',
|
|
462
|
+
},
|
|
463
|
+
{
|
|
464
|
+
id: 'guarantee.description',
|
|
465
|
+
label: 'Guarantee description',
|
|
466
|
+
kind: 'textarea',
|
|
467
|
+
path: 'guarantee.description',
|
|
468
|
+
},
|
|
469
|
+
{
|
|
470
|
+
id: 'guarantee.links',
|
|
471
|
+
label: 'Guarantee links',
|
|
472
|
+
kind: 'list',
|
|
473
|
+
path: 'guarantee.links',
|
|
474
|
+
preset: 'linkItems',
|
|
475
|
+
},
|
|
476
|
+
],
|
|
477
|
+
},
|
|
478
|
+
] as const;
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
import type { StepEditorSection } from '@funnelsgrove/runtime';
|
|
2
|
+
|
|
3
|
+
export const subscriptionStartedEditor: readonly StepEditorSection[] = [
|
|
4
|
+
{
|
|
5
|
+
id: 'header',
|
|
6
|
+
label: 'Header',
|
|
7
|
+
fields: [
|
|
8
|
+
{
|
|
9
|
+
id: 'kicker',
|
|
10
|
+
label: 'Kicker',
|
|
11
|
+
kind: 'text',
|
|
12
|
+
path: 'kicker',
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
id: 'title',
|
|
16
|
+
label: 'Title',
|
|
17
|
+
kind: 'text',
|
|
18
|
+
path: 'title',
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
id: 'copyWithQr',
|
|
22
|
+
label: 'Copy with QR',
|
|
23
|
+
kind: 'textarea',
|
|
24
|
+
path: 'copyWithQr',
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
id: 'copyWithoutQr',
|
|
28
|
+
label: 'Copy without QR',
|
|
29
|
+
kind: 'textarea',
|
|
30
|
+
path: 'copyWithoutQr',
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
id: 'note',
|
|
34
|
+
label: 'Note',
|
|
35
|
+
kind: 'textarea',
|
|
36
|
+
path: 'note',
|
|
37
|
+
},
|
|
38
|
+
],
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
id: 'actions',
|
|
42
|
+
label: 'Actions',
|
|
43
|
+
fields: [
|
|
44
|
+
{
|
|
45
|
+
id: 'openAppLabel',
|
|
46
|
+
label: 'Open app label',
|
|
47
|
+
kind: 'text',
|
|
48
|
+
path: 'openAppLabel',
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
id: 'emailButtonLabel',
|
|
52
|
+
label: 'Email button label',
|
|
53
|
+
kind: 'text',
|
|
54
|
+
path: 'emailButtonLabel',
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
id: 'qrOpenLabel',
|
|
58
|
+
label: 'QR open label',
|
|
59
|
+
kind: 'text',
|
|
60
|
+
path: 'qrOpenLabel',
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
id: 'storeLinks',
|
|
64
|
+
label: 'Store links',
|
|
65
|
+
kind: 'list',
|
|
66
|
+
path: 'storeLinks',
|
|
67
|
+
preset: 'storeLinkItems',
|
|
68
|
+
},
|
|
69
|
+
],
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
id: 'email',
|
|
73
|
+
label: 'Email',
|
|
74
|
+
fields: [
|
|
75
|
+
{
|
|
76
|
+
id: 'emailSubject',
|
|
77
|
+
label: 'Email subject',
|
|
78
|
+
kind: 'text',
|
|
79
|
+
path: 'emailSubject',
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
id: 'emailIntro',
|
|
83
|
+
label: 'Email intro',
|
|
84
|
+
kind: 'textarea',
|
|
85
|
+
path: 'emailIntro',
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
id: 'emailOpenAppLabel',
|
|
89
|
+
label: 'Email open app label',
|
|
90
|
+
kind: 'text',
|
|
91
|
+
path: 'emailOpenAppLabel',
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
id: 'emailIosDeepLinkLabel',
|
|
95
|
+
label: 'Email iOS deep link label',
|
|
96
|
+
kind: 'text',
|
|
97
|
+
path: 'emailIosDeepLinkLabel',
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
id: 'emailAndroidDeepLinkLabel',
|
|
101
|
+
label: 'Email Android deep link label',
|
|
102
|
+
kind: 'text',
|
|
103
|
+
path: 'emailAndroidDeepLinkLabel',
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
id: 'emailStoreLabels.ios',
|
|
107
|
+
label: 'Email iOS store label',
|
|
108
|
+
kind: 'text',
|
|
109
|
+
path: 'emailStoreLabels.ios',
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
id: 'emailStoreLabels.android',
|
|
113
|
+
label: 'Email Android store label',
|
|
114
|
+
kind: 'text',
|
|
115
|
+
path: 'emailStoreLabels.android',
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
id: 'emailSentStatus',
|
|
119
|
+
label: 'Email sent status',
|
|
120
|
+
kind: 'text',
|
|
121
|
+
path: 'emailSentStatus',
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
id: 'autoOpenStatus',
|
|
125
|
+
label: 'Auto-open status',
|
|
126
|
+
kind: 'text',
|
|
127
|
+
path: 'autoOpenStatus',
|
|
128
|
+
},
|
|
129
|
+
],
|
|
130
|
+
},
|
|
131
|
+
] as const;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { FunctionComponent } from 'react';
|
|
2
|
+
import { funnelManifest, type FunnelStepId } from '@/config/funnel.manifest';
|
|
3
|
+
import { stepRegistry } from '@/runtime/step-registry';
|
|
4
|
+
import type { FunnelStepMeta } from '@funnelsgrove/runtime';
|
|
5
|
+
|
|
6
|
+
export const steps = funnelManifest.steps.map((step) => {
|
|
7
|
+
return stepRegistry[step.componentKey].meta;
|
|
8
|
+
}) as FunnelStepMeta[];
|
|
9
|
+
|
|
10
|
+
export type StepId = FunnelStepId;
|
|
11
|
+
|
|
12
|
+
export const stepById: Record<StepId, FunnelStepMeta> = Object.fromEntries(
|
|
13
|
+
funnelManifest.steps.map((step) => [step.id, stepRegistry[step.componentKey].meta] as const),
|
|
14
|
+
) as Record<StepId, FunnelStepMeta>;
|
|
15
|
+
|
|
16
|
+
export const stepComponentById: Record<
|
|
17
|
+
StepId,
|
|
18
|
+
FunctionComponent<Record<string, never>>
|
|
19
|
+
> = Object.fromEntries(
|
|
20
|
+
funnelManifest.steps.map((step) => [step.id, stepRegistry[step.componentKey].component] as const),
|
|
21
|
+
) as Record<StepId, FunctionComponent<Record<string, never>>>;
|
|
22
|
+
|
|
23
|
+
export const paywallStepIds: StepId[] = funnelManifest.steps
|
|
24
|
+
.filter((step) => 'kind' in step && step.kind === 'paywall')
|
|
25
|
+
.map((step) => step.id as StepId);
|