@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,232 @@
|
|
|
1
|
+
import type { StepEditorSection } from '@funnelsgrove/runtime';
|
|
2
|
+
|
|
3
|
+
export const paywallEditor: readonly StepEditorSection[] = [
|
|
4
|
+
{
|
|
5
|
+
id: 'timer',
|
|
6
|
+
label: 'Timer',
|
|
7
|
+
fields: [
|
|
8
|
+
{
|
|
9
|
+
id: 'timer.label',
|
|
10
|
+
label: 'Timer label',
|
|
11
|
+
kind: 'text',
|
|
12
|
+
path: 'timer.label',
|
|
13
|
+
supportsVariables: true,
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
id: 'timer.ctaLabel',
|
|
17
|
+
label: 'Timer CTA',
|
|
18
|
+
kind: 'text',
|
|
19
|
+
path: 'timer.ctaLabel',
|
|
20
|
+
supportsVariables: true,
|
|
21
|
+
},
|
|
22
|
+
],
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
id: 'hero',
|
|
26
|
+
label: 'Hero',
|
|
27
|
+
fields: [
|
|
28
|
+
{
|
|
29
|
+
id: 'hero.image',
|
|
30
|
+
label: 'Hero image',
|
|
31
|
+
kind: 'image',
|
|
32
|
+
path: 'hero.image',
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
id: 'hero.pills',
|
|
36
|
+
label: 'Headline pills',
|
|
37
|
+
kind: 'textLines',
|
|
38
|
+
path: 'hero.pills',
|
|
39
|
+
supportsVariables: true,
|
|
40
|
+
},
|
|
41
|
+
],
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
id: 'promo',
|
|
45
|
+
label: 'Promo',
|
|
46
|
+
fields: [
|
|
47
|
+
{
|
|
48
|
+
id: 'promo.label',
|
|
49
|
+
label: 'Promo label',
|
|
50
|
+
kind: 'text',
|
|
51
|
+
path: 'promo.label',
|
|
52
|
+
supportsVariables: true,
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
id: 'promo.code',
|
|
56
|
+
label: 'Promo code',
|
|
57
|
+
kind: 'text',
|
|
58
|
+
path: 'promo.code',
|
|
59
|
+
supportsVariables: true,
|
|
60
|
+
},
|
|
61
|
+
],
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
id: 'highlight',
|
|
65
|
+
label: 'Highlight',
|
|
66
|
+
fields: [
|
|
67
|
+
{
|
|
68
|
+
id: 'highlight.title',
|
|
69
|
+
label: 'Highlight title',
|
|
70
|
+
kind: 'textLines',
|
|
71
|
+
path: 'highlight.title',
|
|
72
|
+
supportsVariables: true,
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
id: 'highlight.description',
|
|
76
|
+
label: 'Highlight description',
|
|
77
|
+
kind: 'textarea',
|
|
78
|
+
path: 'highlight.description',
|
|
79
|
+
supportsVariables: true,
|
|
80
|
+
},
|
|
81
|
+
],
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
id: 'plans',
|
|
85
|
+
label: 'Plans',
|
|
86
|
+
fields: [
|
|
87
|
+
{
|
|
88
|
+
id: 'plans.title',
|
|
89
|
+
label: 'Plans title',
|
|
90
|
+
kind: 'text',
|
|
91
|
+
path: 'plans.title',
|
|
92
|
+
supportsVariables: true,
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
id: 'plans.popularLabel',
|
|
96
|
+
label: 'Popular label',
|
|
97
|
+
kind: 'text',
|
|
98
|
+
path: 'plans.popularLabel',
|
|
99
|
+
supportsVariables: true,
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
id: 'plans.applePayLabel',
|
|
103
|
+
label: 'Apple Pay label',
|
|
104
|
+
kind: 'text',
|
|
105
|
+
path: 'plans.applePayLabel',
|
|
106
|
+
supportsVariables: true,
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
id: 'plans.cardButtonLabel',
|
|
110
|
+
label: 'Card button label',
|
|
111
|
+
kind: 'text',
|
|
112
|
+
path: 'plans.cardButtonLabel',
|
|
113
|
+
supportsVariables: true,
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
id: 'plans.loadingLabel',
|
|
117
|
+
label: 'Loading label',
|
|
118
|
+
kind: 'text',
|
|
119
|
+
path: 'plans.loadingLabel',
|
|
120
|
+
supportsVariables: true,
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
id: 'plans.alternativePaymentLabel',
|
|
124
|
+
label: 'Alternative payment label',
|
|
125
|
+
kind: 'text',
|
|
126
|
+
path: 'plans.alternativePaymentLabel',
|
|
127
|
+
supportsVariables: true,
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
id: 'plans.metaLabels',
|
|
131
|
+
label: 'Plan meta labels',
|
|
132
|
+
kind: 'textLines',
|
|
133
|
+
path: 'plans.metaLabels',
|
|
134
|
+
supportsVariables: true,
|
|
135
|
+
},
|
|
136
|
+
{
|
|
137
|
+
id: 'checkout.submitLabel',
|
|
138
|
+
label: 'Checkout submit label',
|
|
139
|
+
kind: 'text',
|
|
140
|
+
path: 'checkout.submitLabel',
|
|
141
|
+
supportsVariables: true,
|
|
142
|
+
},
|
|
143
|
+
{
|
|
144
|
+
id: 'checkout.processingLabel',
|
|
145
|
+
label: 'Checkout processing label',
|
|
146
|
+
kind: 'text',
|
|
147
|
+
path: 'checkout.processingLabel',
|
|
148
|
+
supportsVariables: true,
|
|
149
|
+
},
|
|
150
|
+
{
|
|
151
|
+
id: 'checkout.poweredByLabel',
|
|
152
|
+
label: 'Powered by label',
|
|
153
|
+
kind: 'text',
|
|
154
|
+
path: 'checkout.poweredByLabel',
|
|
155
|
+
supportsVariables: true,
|
|
156
|
+
},
|
|
157
|
+
],
|
|
158
|
+
},
|
|
159
|
+
{
|
|
160
|
+
id: 'stories',
|
|
161
|
+
label: 'Stories',
|
|
162
|
+
fields: [
|
|
163
|
+
{
|
|
164
|
+
id: 'stories.title',
|
|
165
|
+
label: 'Stories title',
|
|
166
|
+
kind: 'text',
|
|
167
|
+
path: 'stories.title',
|
|
168
|
+
supportsVariables: true,
|
|
169
|
+
},
|
|
170
|
+
{
|
|
171
|
+
id: 'stories.items',
|
|
172
|
+
label: 'Stories',
|
|
173
|
+
kind: 'list',
|
|
174
|
+
path: 'stories.items',
|
|
175
|
+
preset: 'quoteItems',
|
|
176
|
+
},
|
|
177
|
+
],
|
|
178
|
+
},
|
|
179
|
+
{
|
|
180
|
+
id: 'faq',
|
|
181
|
+
label: 'FAQ',
|
|
182
|
+
fields: [
|
|
183
|
+
{
|
|
184
|
+
id: 'faq.title',
|
|
185
|
+
label: 'FAQ title',
|
|
186
|
+
kind: 'text',
|
|
187
|
+
path: 'faq.title',
|
|
188
|
+
supportsVariables: true,
|
|
189
|
+
},
|
|
190
|
+
{
|
|
191
|
+
id: 'faq.items',
|
|
192
|
+
label: 'FAQ items',
|
|
193
|
+
kind: 'list',
|
|
194
|
+
path: 'faq.items',
|
|
195
|
+
preset: 'qaItems',
|
|
196
|
+
},
|
|
197
|
+
],
|
|
198
|
+
},
|
|
199
|
+
{
|
|
200
|
+
id: 'guarantee',
|
|
201
|
+
label: 'Guarantee',
|
|
202
|
+
fields: [
|
|
203
|
+
{
|
|
204
|
+
id: 'guarantee.image',
|
|
205
|
+
label: 'Guarantee image',
|
|
206
|
+
kind: 'image',
|
|
207
|
+
path: 'guarantee.image',
|
|
208
|
+
},
|
|
209
|
+
{
|
|
210
|
+
id: 'guarantee.title',
|
|
211
|
+
label: 'Guarantee title',
|
|
212
|
+
kind: 'text',
|
|
213
|
+
path: 'guarantee.title',
|
|
214
|
+
supportsVariables: true,
|
|
215
|
+
},
|
|
216
|
+
{
|
|
217
|
+
id: 'guarantee.description',
|
|
218
|
+
label: 'Guarantee description',
|
|
219
|
+
kind: 'textarea',
|
|
220
|
+
path: 'guarantee.description',
|
|
221
|
+
supportsVariables: true,
|
|
222
|
+
},
|
|
223
|
+
{
|
|
224
|
+
id: 'guarantee.refundPolicyLabel',
|
|
225
|
+
label: 'Refund policy label',
|
|
226
|
+
kind: 'text',
|
|
227
|
+
path: 'guarantee.refundPolicyLabel',
|
|
228
|
+
supportsVariables: true,
|
|
229
|
+
},
|
|
230
|
+
],
|
|
231
|
+
},
|
|
232
|
+
] as const;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { StepEditorSection } from '@funnelsgrove/runtime';
|
|
2
|
+
|
|
3
|
+
export const stepOneEditor: readonly StepEditorSection[] = [
|
|
4
|
+
{
|
|
5
|
+
id: 'hero',
|
|
6
|
+
label: 'Hero',
|
|
7
|
+
fields: [
|
|
8
|
+
{
|
|
9
|
+
id: 'headline',
|
|
10
|
+
label: 'Headline',
|
|
11
|
+
kind: 'textLines',
|
|
12
|
+
path: 'headline',
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
id: 'artwork',
|
|
16
|
+
label: 'Artwork',
|
|
17
|
+
kind: 'image',
|
|
18
|
+
path: 'artwork',
|
|
19
|
+
},
|
|
20
|
+
],
|
|
21
|
+
},
|
|
22
|
+
] as const;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import type { StepEditorSection } from '@funnelsgrove/runtime';
|
|
2
|
+
|
|
3
|
+
export const stepTwoEditor: readonly StepEditorSection[] = [
|
|
4
|
+
{
|
|
5
|
+
id: 'header',
|
|
6
|
+
label: 'Header',
|
|
7
|
+
fields: [
|
|
8
|
+
{
|
|
9
|
+
id: 'title',
|
|
10
|
+
label: 'Title',
|
|
11
|
+
kind: 'textLines',
|
|
12
|
+
path: 'title',
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
id: 'description',
|
|
16
|
+
label: 'Description',
|
|
17
|
+
kind: 'textarea',
|
|
18
|
+
path: 'description',
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
id: 'optionsLabel',
|
|
22
|
+
label: 'Options label',
|
|
23
|
+
kind: 'text',
|
|
24
|
+
path: 'optionsLabel',
|
|
25
|
+
},
|
|
26
|
+
],
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
id: 'options',
|
|
30
|
+
label: 'Options',
|
|
31
|
+
fields: [
|
|
32
|
+
{
|
|
33
|
+
id: 'options',
|
|
34
|
+
label: 'Device options',
|
|
35
|
+
kind: 'list',
|
|
36
|
+
path: 'options',
|
|
37
|
+
preset: 'choiceItems',
|
|
38
|
+
},
|
|
39
|
+
],
|
|
40
|
+
},
|
|
41
|
+
] as const;
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import type { StepEditorSection } from '@funnelsgrove/runtime';
|
|
2
|
+
|
|
3
|
+
export const stepThreeEditor: readonly StepEditorSection[] = [
|
|
4
|
+
{
|
|
5
|
+
id: 'copy',
|
|
6
|
+
label: 'Copy',
|
|
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: 'textLines',
|
|
18
|
+
path: 'title',
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
id: 'description',
|
|
22
|
+
label: 'Description',
|
|
23
|
+
kind: 'textarea',
|
|
24
|
+
path: 'description',
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
id: 'progressLabel',
|
|
28
|
+
label: 'Progress label',
|
|
29
|
+
kind: 'text',
|
|
30
|
+
path: 'progressLabel',
|
|
31
|
+
},
|
|
32
|
+
],
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
id: 'artwork',
|
|
36
|
+
label: 'Artwork',
|
|
37
|
+
fields: [
|
|
38
|
+
{
|
|
39
|
+
id: 'artwork.sprite',
|
|
40
|
+
label: 'Sprite',
|
|
41
|
+
kind: 'image',
|
|
42
|
+
path: 'artwork.sprite',
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
id: 'artwork.glow',
|
|
46
|
+
label: 'Glow',
|
|
47
|
+
kind: 'image',
|
|
48
|
+
path: 'artwork.glow',
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
id: 'artwork.bee',
|
|
52
|
+
label: 'Bee',
|
|
53
|
+
kind: 'image',
|
|
54
|
+
path: 'artwork.bee',
|
|
55
|
+
},
|
|
56
|
+
],
|
|
57
|
+
},
|
|
58
|
+
] as const;
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
import type { StepEditorSection } from '@funnelsgrove/runtime';
|
|
2
|
+
|
|
3
|
+
export const stepFourEditor: readonly StepEditorSection[] = [
|
|
4
|
+
{
|
|
5
|
+
id: 'header',
|
|
6
|
+
label: 'Scratchpad Header',
|
|
7
|
+
fields: [
|
|
8
|
+
{
|
|
9
|
+
id: 'header.title',
|
|
10
|
+
label: 'Title',
|
|
11
|
+
kind: 'textLines',
|
|
12
|
+
path: 'header.title',
|
|
13
|
+
supportsVariables: true,
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
id: 'header.description',
|
|
17
|
+
label: 'Description',
|
|
18
|
+
kind: 'textLines',
|
|
19
|
+
path: 'header.description',
|
|
20
|
+
supportsVariables: true,
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
id: 'header.instructionLabel',
|
|
24
|
+
label: 'Instruction label',
|
|
25
|
+
kind: 'text',
|
|
26
|
+
path: 'header.instructionLabel',
|
|
27
|
+
supportsVariables: true,
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
id: 'header.scratchAriaLabel',
|
|
31
|
+
label: 'Scratch accessibility label',
|
|
32
|
+
kind: 'text',
|
|
33
|
+
path: 'header.scratchAriaLabel',
|
|
34
|
+
},
|
|
35
|
+
],
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
id: 'ticket',
|
|
39
|
+
label: 'Ticket',
|
|
40
|
+
fields: [
|
|
41
|
+
{
|
|
42
|
+
id: 'ticket.offerLabel',
|
|
43
|
+
label: 'Offer label',
|
|
44
|
+
kind: 'text',
|
|
45
|
+
path: 'ticket.offerLabel',
|
|
46
|
+
supportsVariables: true,
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
id: 'ticket.code',
|
|
50
|
+
label: 'Promo code',
|
|
51
|
+
kind: 'text',
|
|
52
|
+
path: 'ticket.code',
|
|
53
|
+
supportsVariables: true,
|
|
54
|
+
},
|
|
55
|
+
],
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
id: 'reward',
|
|
59
|
+
label: 'Reward Card',
|
|
60
|
+
fields: [
|
|
61
|
+
{
|
|
62
|
+
id: 'reward.kicker',
|
|
63
|
+
label: 'Reward kicker',
|
|
64
|
+
kind: 'text',
|
|
65
|
+
path: 'reward.kicker',
|
|
66
|
+
supportsVariables: true,
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
id: 'reward.description',
|
|
70
|
+
label: 'Reward description',
|
|
71
|
+
kind: 'text',
|
|
72
|
+
path: 'reward.description',
|
|
73
|
+
supportsVariables: true,
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
id: 'reward.offerLabel',
|
|
77
|
+
label: 'Reward offer label',
|
|
78
|
+
kind: 'text',
|
|
79
|
+
path: 'reward.offerLabel',
|
|
80
|
+
supportsVariables: true,
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
id: 'reward.appliedLabel',
|
|
84
|
+
label: 'Applied label',
|
|
85
|
+
kind: 'text',
|
|
86
|
+
path: 'reward.appliedLabel',
|
|
87
|
+
supportsVariables: true,
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
id: 'reward.ctaLabel',
|
|
91
|
+
label: 'Reward CTA',
|
|
92
|
+
kind: 'text',
|
|
93
|
+
path: 'reward.ctaLabel',
|
|
94
|
+
supportsVariables: true,
|
|
95
|
+
},
|
|
96
|
+
],
|
|
97
|
+
},
|
|
98
|
+
] as const;
|