@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.
Files changed (293) hide show
  1. package/contracts/step-contract-v2.json +733 -0
  2. package/dist/analyticsOutput.d.ts +30 -15
  3. package/dist/analyticsOutput.js +45 -28
  4. package/dist/apiClient.d.ts +85 -0
  5. package/dist/apiClient.js +225 -8
  6. package/dist/cli.d.ts +149 -1
  7. package/dist/cli.js +1232 -71
  8. package/dist/diagnosticOutput.d.ts +42 -0
  9. package/dist/diagnosticOutput.js +83 -0
  10. package/dist/docsOutput.d.ts +19 -0
  11. package/dist/docsOutput.js +73 -0
  12. package/dist/docsTransaction.d.ts +81 -0
  13. package/dist/docsTransaction.js +1755 -0
  14. package/dist/funnelValidation.d.ts +14 -0
  15. package/dist/funnelValidation.js +297 -0
  16. package/dist/localSync.d.ts +79 -0
  17. package/dist/localSync.js +428 -53
  18. package/dist/projectValidator.d.ts +27 -0
  19. package/dist/projectValidator.js +208 -0
  20. package/dist/reskin.js +27 -1
  21. package/dist/stepContractMigration.d.ts +71 -0
  22. package/dist/stepContractMigration.js +1323 -0
  23. package/dist/templateDocs.js +8 -25
  24. package/docs-release-history.json +66 -0
  25. package/legacy-docs-catalog.json +1012 -0
  26. package/package.json +13 -4
  27. package/template_docs/.funnelsgrove-docs.json +144 -0
  28. package/template_docs/AGENTS.md +30 -58
  29. package/template_docs/CLAUDE.md +0 -2
  30. package/template_docs/docs/funnelsgrove/START-HERE.md +73 -0
  31. package/template_docs/docs/funnelsgrove/contracts/analytics-events.md +59 -0
  32. package/template_docs/docs/funnelsgrove/contracts/content-answers.md +44 -0
  33. package/template_docs/docs/funnelsgrove/contracts/flow-routing.md +41 -0
  34. package/template_docs/docs/funnelsgrove/contracts/payments.md +42 -0
  35. package/template_docs/docs/funnelsgrove/contracts/step-metadata.md +57 -0
  36. package/template_docs/docs/funnelsgrove/migrations/step-contract-v3.md +39 -0
  37. package/template_docs/docs/funnelsgrove/qa/analytics.md +43 -0
  38. package/template_docs/docs/funnelsgrove/qa/local.md +42 -0
  39. package/template_docs/docs/funnelsgrove/qa/paywall-checkout.md +55 -0
  40. package/template_docs/docs/funnelsgrove/qa/publish.md +32 -0
  41. package/template_docs/docs/funnelsgrove/recipes/add-experiment.md +34 -0
  42. package/template_docs/docs/funnelsgrove/recipes/add-step.md +33 -0
  43. package/template_docs/docs/funnelsgrove/recipes/edit-step.md +31 -0
  44. package/template_docs/docs/funnelsgrove/steps/INDEX.md +26 -0
  45. package/template_docs/docs/funnelsgrove/steps/cancellation_offer.md +112 -0
  46. package/template_docs/docs/funnelsgrove/steps/checkout.md +120 -0
  47. package/template_docs/docs/funnelsgrove/steps/form_input.md +115 -0
  48. package/template_docs/docs/funnelsgrove/steps/intro_hero.md +110 -0
  49. package/template_docs/docs/funnelsgrove/steps/multi_select_choice.md +123 -0
  50. package/template_docs/docs/funnelsgrove/steps/paywall_offer.md +115 -0
  51. package/template_docs/docs/funnelsgrove/steps/progress_interstitial.md +111 -0
  52. package/template_docs/docs/funnelsgrove/steps/purchase_completed.md +117 -0
  53. package/template_docs/docs/funnelsgrove/steps/single_step_choice.md +122 -0
  54. package/template_docs/docs/funnelsgrove/steps/single_step_choice_emoji.md +122 -0
  55. package/template_docs/docs/funnelsgrove/steps/social_proof.md +110 -0
  56. package/template_docs/docs/funnelsgrove/steps/subscription_handoff.md +113 -0
  57. package/template_docs/docs/funnelsgrove/steps/subscription_management.md +112 -0
  58. package/template_docs/docs/funnelsgrove/steps/summary_confirmation.md +110 -0
  59. package/template_docs/docs/funnelsgrove/steps/upsell_offer.md +112 -0
  60. package/template_docs/docs/funnelsgrove/steps/value_prop_story.md +110 -0
  61. package/template_docs/funnel-docs.config.json +43 -0
  62. package/template_scaffold/.env.example +41 -0
  63. package/template_scaffold/.funnelsgrove-contract-tools.json +19 -0
  64. package/template_scaffold/.funnelsgrove-docs.json +144 -0
  65. package/template_scaffold/.funnelsgrove-scaffold.json +1078 -0
  66. package/template_scaffold/AGENTS.md +42 -0
  67. package/template_scaffold/CLAUDE.md +1 -0
  68. package/template_scaffold/PLAN.md +81 -0
  69. package/template_scaffold/PRODUCT_SENSE.md +28 -0
  70. package/template_scaffold/context/build-context.md +34 -0
  71. package/template_scaffold/docs/AGENT_FUNNEL_IMPLEMENTATION_SPEC.md +5 -0
  72. package/template_scaffold/docs/ARCHITECTURE.md +5 -0
  73. package/template_scaffold/docs/FLOW_CONFIG_AND_ROUTING.md +5 -0
  74. package/template_scaffold/docs/PAYWALL_AND_PAYMENTS.md +5 -0
  75. package/template_scaffold/docs/README.md +5 -0
  76. package/template_scaffold/docs/funnelsgrove/START-HERE.md +73 -0
  77. package/template_scaffold/docs/funnelsgrove/contracts/analytics-events.md +59 -0
  78. package/template_scaffold/docs/funnelsgrove/contracts/content-answers.md +44 -0
  79. package/template_scaffold/docs/funnelsgrove/contracts/flow-routing.md +41 -0
  80. package/template_scaffold/docs/funnelsgrove/contracts/payments.md +42 -0
  81. package/template_scaffold/docs/funnelsgrove/contracts/step-metadata.md +57 -0
  82. package/template_scaffold/docs/funnelsgrove/migrations/step-contract-v3.md +39 -0
  83. package/template_scaffold/docs/funnelsgrove/qa/analytics.md +43 -0
  84. package/template_scaffold/docs/funnelsgrove/qa/local.md +42 -0
  85. package/template_scaffold/docs/funnelsgrove/qa/paywall-checkout.md +55 -0
  86. package/template_scaffold/docs/funnelsgrove/qa/publish.md +32 -0
  87. package/template_scaffold/docs/funnelsgrove/recipes/add-experiment.md +34 -0
  88. package/template_scaffold/docs/funnelsgrove/recipes/add-step.md +33 -0
  89. package/template_scaffold/docs/funnelsgrove/recipes/edit-step.md +31 -0
  90. package/template_scaffold/docs/funnelsgrove/steps/INDEX.md +26 -0
  91. package/template_scaffold/docs/funnelsgrove/steps/cancellation_offer.md +112 -0
  92. package/template_scaffold/docs/funnelsgrove/steps/checkout.md +120 -0
  93. package/template_scaffold/docs/funnelsgrove/steps/form_input.md +115 -0
  94. package/template_scaffold/docs/funnelsgrove/steps/intro_hero.md +110 -0
  95. package/template_scaffold/docs/funnelsgrove/steps/multi_select_choice.md +123 -0
  96. package/template_scaffold/docs/funnelsgrove/steps/paywall_offer.md +115 -0
  97. package/template_scaffold/docs/funnelsgrove/steps/progress_interstitial.md +111 -0
  98. package/template_scaffold/docs/funnelsgrove/steps/purchase_completed.md +117 -0
  99. package/template_scaffold/docs/funnelsgrove/steps/single_step_choice.md +122 -0
  100. package/template_scaffold/docs/funnelsgrove/steps/single_step_choice_emoji.md +122 -0
  101. package/template_scaffold/docs/funnelsgrove/steps/social_proof.md +110 -0
  102. package/template_scaffold/docs/funnelsgrove/steps/subscription_handoff.md +113 -0
  103. package/template_scaffold/docs/funnelsgrove/steps/subscription_management.md +112 -0
  104. package/template_scaffold/docs/funnelsgrove/steps/summary_confirmation.md +110 -0
  105. package/template_scaffold/docs/funnelsgrove/steps/upsell_offer.md +112 -0
  106. package/template_scaffold/docs/funnelsgrove/steps/value_prop_story.md +110 -0
  107. package/template_scaffold/docs/references/funnel-sdk-user-answers.md +5 -0
  108. package/template_scaffold/eslint.config.mjs +16 -0
  109. package/template_scaffold/funnel-agent-docs.test.ts +699 -0
  110. package/template_scaffold/funnel-docs.config.json +43 -0
  111. package/template_scaffold/funnel.config.json +5 -0
  112. package/template_scaffold/gitignore.template +5 -0
  113. package/template_scaffold/next-env.d.ts +6 -0
  114. package/template_scaffold/next.config.ts +53 -0
  115. package/template_scaffold/package-lock.json +7737 -0
  116. package/template_scaffold/package.json +37 -0
  117. package/template_scaffold/package.test.ts +23 -0
  118. package/template_scaffold/public/claimbee/bee.png +0 -0
  119. package/template_scaffold/public/claimbee/device-iphone.png +0 -0
  120. package/template_scaffold/public/claimbee/device-macbook.png +0 -0
  121. package/template_scaffold/public/claimbee/device-none.png +0 -0
  122. package/template_scaffold/public/claimbee/device-watch.png +0 -0
  123. package/template_scaffold/public/claimbee/glow.svg +3 -0
  124. package/template_scaffold/public/claimbee/steps-sprite-alt.png +0 -0
  125. package/template_scaffold/public/claimbee/steps-sprite-default.png +0 -0
  126. package/template_scaffold/public/claimbee/testimonial-avatar.png +0 -0
  127. package/template_scaffold/public/claimbee/testimonial-star.svg +3 -0
  128. package/template_scaffold/public/paywall/ai-claim-assistant.png +0 -0
  129. package/template_scaffold/public/paywall/claim-history.png +0 -0
  130. package/template_scaffold/public/paywall/clear-progress.png +0 -0
  131. package/template_scaffold/public/paywall/hero.png +0 -0
  132. package/template_scaffold/public/paywall/money-alerts.png +0 -0
  133. package/template_scaffold/public/paywall/money-back-badge.png +0 -0
  134. package/template_scaffold/public/paywall/paywall-image.png +0 -0
  135. package/template_scaffold/public/paywall/r1.png +0 -0
  136. package/template_scaffold/public/paywall/r2.png +0 -0
  137. package/template_scaffold/public/paywall/r3.png +0 -0
  138. package/template_scaffold/public/paywall/r4.png +0 -0
  139. package/template_scaffold/public/paywall/r5.png +0 -0
  140. package/template_scaffold/public/paywall/r6.png +0 -0
  141. package/template_scaffold/public/paywall/special-offer-gift.png +0 -0
  142. package/template_scaffold/public/please/bee.png +0 -0
  143. package/template_scaffold/public/please/device-iphone.png +0 -0
  144. package/template_scaffold/public/please/device-macbook.png +0 -0
  145. package/template_scaffold/public/please/device-none.png +0 -0
  146. package/template_scaffold/public/please/device-watch.png +0 -0
  147. package/template_scaffold/public/please/glow.svg +3 -0
  148. package/template_scaffold/public/please/steps-sprite-alt.png +0 -0
  149. package/template_scaffold/public/please/steps-sprite-default.png +0 -0
  150. package/template_scaffold/public/please/testimonial-avatar.png +0 -0
  151. package/template_scaffold/public/please/testimonial-star.svg +3 -0
  152. package/template_scaffold/public/upsell/upgrade-hero.png +0 -0
  153. package/template_scaffold/src/app/[stepId]/page.test.tsx +59 -0
  154. package/template_scaffold/src/app/[stepId]/page.tsx +62 -0
  155. package/template_scaffold/src/app/globals.css +49 -0
  156. package/template_scaffold/src/app/layout.test.ts +26 -0
  157. package/template_scaffold/src/app/layout.tsx +61 -0
  158. package/template_scaffold/src/app/page.tsx +8 -0
  159. package/template_scaffold/src/app/sdk/page.tsx +673 -0
  160. package/template_scaffold/src/app/subscription-dashboard/page.tsx +274 -0
  161. package/template_scaffold/src/assets/claimbee/bee.png +0 -0
  162. package/template_scaffold/src/assets/claimbee/device-iphone.png +0 -0
  163. package/template_scaffold/src/assets/claimbee/device-macbook.png +0 -0
  164. package/template_scaffold/src/assets/claimbee/device-none.png +0 -0
  165. package/template_scaffold/src/assets/claimbee/device-watch.png +0 -0
  166. package/template_scaffold/src/assets/claimbee/glow.svg +3 -0
  167. package/template_scaffold/src/assets/claimbee/steps-sprite-alt.png +0 -0
  168. package/template_scaffold/src/assets/claimbee/steps-sprite-default.png +0 -0
  169. package/template_scaffold/src/assets/claimbee/testimonial-avatar.png +0 -0
  170. package/template_scaffold/src/assets/claimbee/testimonial-star.svg +3 -0
  171. package/template_scaffold/src/components/FunnelEditorPanel.tsx +194 -0
  172. package/template_scaffold/src/components/FunnelFlow.test.tsx +17 -0
  173. package/template_scaffold/src/components/FunnelFlow.tsx +114 -0
  174. package/template_scaffold/src/components/FunnelStepImage.test.ts +15 -0
  175. package/template_scaffold/src/components/FunnelStepImage.tsx +28 -0
  176. package/template_scaffold/src/components/step/FunnelStepHeader.tsx +35 -0
  177. package/template_scaffold/src/config/billing.plans.test.ts +143 -0
  178. package/template_scaffold/src/config/billing.plans.ts +69 -0
  179. package/template_scaffold/src/config/billing.test.plans.ts +32 -0
  180. package/template_scaffold/src/config/experiments.generated.ts +4 -0
  181. package/template_scaffold/src/config/experiments.test.ts +12 -0
  182. package/template_scaffold/src/config/experiments.ts +9 -0
  183. package/template_scaffold/src/config/funnel.config.ts +12 -0
  184. package/template_scaffold/src/config/funnel.manifest.test.ts +166 -0
  185. package/template_scaffold/src/config/funnel.manifest.ts +139 -0
  186. package/template_scaffold/src/config/offer-sets.generated.ts +4 -0
  187. package/template_scaffold/src/contract/funnel-project.validation.test.ts +80 -0
  188. package/template_scaffold/src/contract/funnel-project.validation.ts +44 -0
  189. package/template_scaffold/src/contract/funnel-validator.vite.config.ts +11 -0
  190. package/template_scaffold/src/contract/golden/cancellation_offer.fixture.ts +29 -0
  191. package/template_scaffold/src/contract/golden/checkout.fixture.ts +37 -0
  192. package/template_scaffold/src/contract/golden/form_input.fixture.ts +28 -0
  193. package/template_scaffold/src/contract/golden/golden-fixtures.test.ts +190 -0
  194. package/template_scaffold/src/contract/golden/intro_hero.fixture.ts +27 -0
  195. package/template_scaffold/src/contract/golden/multi_select_choice.fixture.ts +37 -0
  196. package/template_scaffold/src/contract/golden/paywall_offer.fixture.ts +30 -0
  197. package/template_scaffold/src/contract/golden/progress_interstitial.fixture.ts +28 -0
  198. package/template_scaffold/src/contract/golden/purchase_completed.fixture.ts +33 -0
  199. package/template_scaffold/src/contract/golden/single_step_choice.fixture.ts +36 -0
  200. package/template_scaffold/src/contract/golden/single_step_choice_emoji.fixture.ts +36 -0
  201. package/template_scaffold/src/contract/golden/social_proof.fixture.ts +27 -0
  202. package/template_scaffold/src/contract/golden/subscription_handoff.fixture.ts +30 -0
  203. package/template_scaffold/src/contract/golden/subscription_management.fixture.ts +29 -0
  204. package/template_scaffold/src/contract/golden/summary_confirmation.fixture.ts +27 -0
  205. package/template_scaffold/src/contract/golden/upsell_offer.fixture.ts +29 -0
  206. package/template_scaffold/src/contract/golden/value_prop_story.fixture.ts +27 -0
  207. package/template_scaffold/src/contract/validate-funnel.cli.test.ts +180 -0
  208. package/template_scaffold/src/contract/validate-funnel.cli.ts +199 -0
  209. package/template_scaffold/src/runtime/checkout-runtime-config.test.ts +60 -0
  210. package/template_scaffold/src/runtime/checkout-runtime-config.ts +26 -0
  211. package/template_scaffold/src/runtime/funnel-runtime.test.ts +25 -0
  212. package/template_scaffold/src/runtime/funnel-runtime.ts +118 -0
  213. package/template_scaffold/src/runtime/step-content-context.test.ts +38 -0
  214. package/template_scaffold/src/runtime/step-content-context.ts +65 -0
  215. package/template_scaffold/src/runtime/step-registry.ts +66 -0
  216. package/template_scaffold/src/runtime/step-variable-values.ts +31 -0
  217. package/template_scaffold/src/runtime/use-funnel-flow-controller.integration.test.ts +203 -0
  218. package/template_scaffold/src/runtime/use-funnel-flow-controller.test.ts +76 -0
  219. package/template_scaffold/src/runtime/use-funnel-flow-controller.ts +53 -0
  220. package/template_scaffold/src/steps/content/email-capture.content.ts +29 -0
  221. package/template_scaffold/src/steps/content/manage-subscription.content.ts +62 -0
  222. package/template_scaffold/src/steps/content/paywall.content.ts +191 -0
  223. package/template_scaffold/src/steps/content/step-01.content.ts +23 -0
  224. package/template_scaffold/src/steps/content/step-02.content.ts +77 -0
  225. package/template_scaffold/src/steps/content/step-03.content.ts +40 -0
  226. package/template_scaffold/src/steps/content/step-04.content.ts +49 -0
  227. package/template_scaffold/src/steps/content/step-32-paywall.content.ts +352 -0
  228. package/template_scaffold/src/steps/content/subscription-started.content.ts +68 -0
  229. package/template_scaffold/src/steps/editor/email-capture.editor.ts +58 -0
  230. package/template_scaffold/src/steps/editor/manage-subscription.editor.ts +179 -0
  231. package/template_scaffold/src/steps/editor/paywall.editor.ts +232 -0
  232. package/template_scaffold/src/steps/editor/step-01.editor.ts +22 -0
  233. package/template_scaffold/src/steps/editor/step-02.editor.ts +41 -0
  234. package/template_scaffold/src/steps/editor/step-03.editor.ts +58 -0
  235. package/template_scaffold/src/steps/editor/step-04.editor.ts +98 -0
  236. package/template_scaffold/src/steps/editor/step-32-paywall.editor.ts +478 -0
  237. package/template_scaffold/src/steps/editor/subscription-started.editor.ts +131 -0
  238. package/template_scaffold/src/steps/index.ts +25 -0
  239. package/template_scaffold/src/steps/paywall-checkout-options.test.ts +104 -0
  240. package/template_scaffold/src/steps/paywall-checkout-options.ts +130 -0
  241. package/template_scaffold/src/steps/pricing/paywall-b.pricing.ts +12 -0
  242. package/template_scaffold/src/steps/pricing/paywall.pricing.ts +12 -0
  243. package/template_scaffold/src/steps/pricing/shared-plan-order.ts +17 -0
  244. package/template_scaffold/src/steps/pricing/upsell-form.pricing.ts +16 -0
  245. package/template_scaffold/src/steps/shared-header-contract.test.ts +27 -0
  246. package/template_scaffold/src/steps/step-01.test.ts +38 -0
  247. package/template_scaffold/src/steps/step-01.tsx +108 -0
  248. package/template_scaffold/src/steps/step-02.test.ts +43 -0
  249. package/template_scaffold/src/steps/step-02.tsx +140 -0
  250. package/template_scaffold/src/steps/step-03.test.ts +15 -0
  251. package/template_scaffold/src/steps/step-03.tsx +262 -0
  252. package/template_scaffold/src/steps/step-04.test.ts +32 -0
  253. package/template_scaffold/src/steps/step-04.tsx +673 -0
  254. package/template_scaffold/src/steps/step-31-email-capture.test.ts +22 -0
  255. package/template_scaffold/src/steps/step-31-email-capture.tsx +195 -0
  256. package/template_scaffold/src/steps/step-32-paywall.test.ts +770 -0
  257. package/template_scaffold/src/steps/step-32-paywall.tsx +2253 -0
  258. package/template_scaffold/src/steps/step-32b-paywall-b.tsx +35 -0
  259. package/template_scaffold/src/steps/step-33-subscription-started.test.ts +26 -0
  260. package/template_scaffold/src/steps/step-33-subscription-started.tsx +86 -0
  261. package/template_scaffold/src/steps/step-34-upsell-form.test.ts +27 -0
  262. package/template_scaffold/src/steps/step-35-manage-subscription.tsx +46 -0
  263. package/template_scaffold/src/steps/step-content.registry.ts +45 -0
  264. package/template_scaffold/src/steps/step-image-migration.test.ts +20 -0
  265. package/template_scaffold/src/steps/styles/index.css +2 -0
  266. package/template_scaffold/src/steps/styles/shared/final-flow-shared.css +55 -0
  267. package/template_scaffold/src/steps/styles/shared/funnel-base.css +543 -0
  268. package/template_scaffold/src/steps/styles/shared/info-shared.css +139 -0
  269. package/template_scaffold/src/steps/styles/shared/progress-shared.css +117 -0
  270. package/template_scaffold/src/steps/styles/shared/question-shared.css +76 -0
  271. package/template_scaffold/src/steps/styles/shared/responsive-container.css +176 -0
  272. package/template_scaffold/src/steps/types.ts +7 -0
  273. package/template_scaffold/src/steps/use-claimbee-step-content.ts +15 -0
  274. package/template_scaffold/src/theme/theme.ts +81 -0
  275. package/template_scaffold/tsconfig.json +38 -0
  276. package/template_scaffold/vitest.config.ts +32 -0
  277. package/template_validation/.funnelsgrove-contract-tools.json +19 -0
  278. package/template_validation/src/contract/funnel-project.validation.ts +44 -0
  279. package/template_validation/src/contract/funnel-validator.vite.config.ts +11 -0
  280. package/template_validation/src/contract/validate-funnel.cli.ts +199 -0
  281. package/template_docs/docs/ab-experiments.md +0 -55
  282. package/template_docs/docs/analytics.md +0 -65
  283. package/template_docs/docs/editing-flow.md +0 -125
  284. package/template_docs/docs/editing-step.md +0 -125
  285. package/template_docs/docs/editor-and-content.md +0 -58
  286. package/template_docs/docs/funnel-runtime-architecture.md +0 -125
  287. package/template_docs/docs/meta-pixel-conversions-api.md +0 -50
  288. package/template_docs/docs/payment-plans-and-discounts.md +0 -106
  289. package/template_docs/docs/publishing-and-versioning.md +0 -117
  290. package/template_docs/docs/qa-checklist.md +0 -80
  291. package/template_docs/docs/sdk-api-endpoints.md +0 -78
  292. package/template_docs/docs/step-ui-guidelines.md +0 -110
  293. 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;