@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,117 @@
1
+ .progress-step {
2
+ position: absolute;
3
+ inset: 0;
4
+ }
5
+
6
+ .progress-step--warm {
7
+ background: var(--color-bg-warning);
8
+ }
9
+
10
+ .progress-step-content {
11
+ position: absolute;
12
+ top: 122px;
13
+ left: var(--padding);
14
+ right: var(--padding);
15
+ width: auto;
16
+ }
17
+
18
+ .progress-step-title {
19
+ margin: 0;
20
+ color: var(--color-button);
21
+ font-size: 56px;
22
+ font-weight: 800;
23
+ line-height: 1.1;
24
+ letter-spacing: -0.03em;
25
+ }
26
+
27
+ .progress-step-title--indigo {
28
+ color: var(--color-accent);
29
+ }
30
+
31
+ .progress-step-text {
32
+ margin: 16px 0 0;
33
+ color: var(--color-text);
34
+ font-size: 20px;
35
+ font-weight: 500;
36
+ line-height: 1.35;
37
+ }
38
+
39
+ .progress-step-text--dark {
40
+ font-size: 20px;
41
+ }
42
+
43
+ .progress-step-art {
44
+ position: absolute;
45
+ left: 50%;
46
+ transform: translateX(-50%);
47
+ height: auto;
48
+ }
49
+
50
+ .progress-step-art--claims {
51
+ top: 399px;
52
+ width: 404px;
53
+ }
54
+
55
+ .progress-step-art--be-first {
56
+ top: 505px;
57
+ width: 412px;
58
+ }
59
+
60
+ .status-section {
61
+ position: absolute;
62
+ left: var(--padding);
63
+ right: var(--padding);
64
+ bottom: 96px;
65
+ display: flex;
66
+ flex-direction: column;
67
+ align-items: center;
68
+ gap: 16px;
69
+ }
70
+
71
+ .status-section--be-first {
72
+ bottom: 94px;
73
+ }
74
+
75
+ .status-label {
76
+ margin: 0;
77
+ color: var(--color-accent);
78
+ font-size: 14px;
79
+ font-weight: 700;
80
+ line-height: 24px;
81
+ text-align: center;
82
+ }
83
+
84
+ .status-progress {
85
+ width: 100%;
86
+ height: 10px;
87
+ border-radius: 25px;
88
+ background: var(--color-accent-soft);
89
+ overflow: hidden;
90
+ }
91
+
92
+ .status-progress-fill {
93
+ display: block;
94
+ height: 100%;
95
+ border-radius: 25px;
96
+ background: var(--color-accent);
97
+ }
98
+
99
+ .status-progress-fill--five-sec {
100
+ width: 0;
101
+ animation: be-first-progress-run 5s linear forwards;
102
+ }
103
+
104
+ @keyframes be-first-progress-run {
105
+ from {
106
+ width: 0;
107
+ }
108
+
109
+ to {
110
+ width: 100%;
111
+ }
112
+ }
113
+
114
+ .status-progress-fill--claims {
115
+ width: 0;
116
+ animation: be-first-progress-run 5s linear forwards;
117
+ }
@@ -0,0 +1,76 @@
1
+ .step-tag {
2
+ position: absolute;
3
+ top: 82px;
4
+ left: 50%;
5
+ margin: 0;
6
+ transform: translateX(-50%);
7
+ color: var(--color-accent);
8
+ font-size: 16px;
9
+ font-weight: 800;
10
+ line-height: 1.2;
11
+ }
12
+
13
+ .step-tag--green {
14
+ color: var(--color-button);
15
+ }
16
+
17
+ .question-step {
18
+ position: absolute;
19
+ inset: 0;
20
+ background: var(--color-bg);
21
+ font-family: var(--font-family-base);
22
+ }
23
+
24
+ .question-step-title {
25
+ position: absolute;
26
+ top: 220px;
27
+ left: var(--padding);
28
+ right: var(--padding);
29
+ width: auto;
30
+ margin: 0;
31
+ color: var(--color-text);
32
+ font-size: 56px;
33
+ font-weight: 700;
34
+ line-height: 1.25;
35
+ letter-spacing: -0.04em;
36
+ text-align: center;
37
+ }
38
+
39
+ .question-step-title--delivery {
40
+ top: 208px;
41
+ font-size: 32px;
42
+ line-height: 1.2;
43
+ letter-spacing: -0.03em;
44
+ }
45
+
46
+ .question-step-title--compact {
47
+ top: 220px;
48
+ }
49
+
50
+ .question-step-art {
51
+ position: absolute;
52
+ left: 50%;
53
+ transform: translateX(-50%);
54
+ width: 406px;
55
+ height: auto;
56
+ }
57
+
58
+ .question-step-art--medium {
59
+ top: 466px;
60
+ }
61
+
62
+ .question-step-art--small {
63
+ top: 474px;
64
+ }
65
+
66
+ .is-orange {
67
+ color: var(--color-warning);
68
+ }
69
+
70
+ .is-green {
71
+ color: var(--color-button);
72
+ }
73
+
74
+ .is-indigo {
75
+ color: var(--color-accent);
76
+ }
@@ -0,0 +1,176 @@
1
+ @container (max-width: 430px) {
2
+ .step-tag {
3
+ top: 76px;
4
+ }
5
+
6
+ .question-step-title,
7
+ .info-title,
8
+ .progress-step-title,
9
+ .great-news-title,
10
+ .filing-title,
11
+ .journey-title,
12
+ .warning-title,
13
+ .relationship-title,
14
+ .email-title,
15
+ .paywall-title {
16
+ font-size: 28px;
17
+ letter-spacing: -0.02em;
18
+ }
19
+
20
+ .great-news-title {
21
+ font-size: 32px;
22
+ }
23
+
24
+ .active-cases-title-line--main {
25
+ font-size: 44px;
26
+ }
27
+
28
+ .active-cases-title-line--small {
29
+ font-size: 18px;
30
+ }
31
+
32
+ .question-step-title--delivery {
33
+ top: 216px;
34
+ font-size: 28px;
35
+ line-height: 1.2;
36
+ }
37
+
38
+ .question-step-title {
39
+ top: 216px;
40
+ left: var(--padding);
41
+ right: var(--padding);
42
+ width: auto;
43
+ }
44
+
45
+ .question-step-title--compact {
46
+ top: 260px;
47
+ }
48
+
49
+ .question-step-art,
50
+ .info-step-art,
51
+ .progress-step-art,
52
+ .sequence-step-art,
53
+ .filing-art,
54
+ .family-art {
55
+ width: min(406px, calc(100% - (var(--padding) * 2)));
56
+ }
57
+
58
+ .info-step-content,
59
+ .progress-step-content,
60
+ .great-news-copy,
61
+ .filing-copy,
62
+ .journey-copy,
63
+ .relationship-copy,
64
+ .family-copy,
65
+ .email-copy {
66
+ left: var(--padding);
67
+ right: var(--padding);
68
+ width: auto;
69
+ }
70
+
71
+ .is-green-lg {
72
+ font-size: 62px;
73
+ }
74
+
75
+ .is-indigo-xl {
76
+ font-size: 48px;
77
+ }
78
+
79
+ .info-pill,
80
+ .warning-pill,
81
+ .great-news-badge,
82
+ .family-pill {
83
+ font-size: 26px;
84
+ }
85
+
86
+ .great-news-badge {
87
+ font-size: 28px;
88
+ }
89
+
90
+ .info-amount {
91
+ font-size: 42px;
92
+ }
93
+
94
+ .info-amount--large {
95
+ font-size: 58px;
96
+ }
97
+
98
+ .status-section,
99
+ .status-section--be-first {
100
+ left: var(--padding);
101
+ right: var(--padding);
102
+ }
103
+
104
+ .sequence-step-title {
105
+ top: 260px;
106
+ left: var(--padding);
107
+ right: var(--padding);
108
+ width: auto;
109
+ font-size: 28px;
110
+ }
111
+
112
+ .great-news-chart {
113
+ left: var(--padding);
114
+ right: var(--padding);
115
+ top: 450px;
116
+ }
117
+
118
+ .great-news-footnote {
119
+ left: var(--padding);
120
+ right: var(--padding);
121
+ top: 748px;
122
+ }
123
+
124
+ .journey-options,
125
+ .relationship-options,
126
+ .email-field-wrap,
127
+ .email-action {
128
+ left: var(--padding);
129
+ right: var(--padding);
130
+ width: auto;
131
+ }
132
+
133
+ .paywall-step {
134
+ padding: 114px var(--padding) 34px;
135
+ }
136
+
137
+ .paywall-v2-step {
138
+ padding: 20px var(--padding) 34px;
139
+ }
140
+
141
+ .paywall-v2-top-row {
142
+ gap: 10px;
143
+ }
144
+
145
+ .paywall-v2-countdown {
146
+ width: 149px;
147
+ }
148
+
149
+ .paywall-v2-countdown-value {
150
+ font-size: 30px;
151
+ }
152
+
153
+ .paywall-v2-pill-line {
154
+ font-size: 26px;
155
+ }
156
+
157
+ .paywall-v2-highlight-title {
158
+ font-size: 24px;
159
+ }
160
+
161
+ .paywall-v2-plan-title {
162
+ font-size: 18px;
163
+ }
164
+
165
+ .paywall-v2-plan-price-main {
166
+ font-size: 24px;
167
+ }
168
+
169
+ .paywall-v2-plan-per-day-amount {
170
+ font-size: 22px;
171
+ }
172
+
173
+ .paywall-v2-feedback-title {
174
+ font-size: 28px;
175
+ }
176
+ }
@@ -0,0 +1,7 @@
1
+ export {
2
+ FUNNEL_STEP_TYPES,
3
+ type FunnelStepActionBar,
4
+ type FunnelStepKind,
5
+ type FunnelStepMeta,
6
+ type FunnelStepType,
7
+ } from '@funnelsgrove/runtime';
@@ -0,0 +1,15 @@
1
+ import {
2
+ useFunnel,
3
+ usePreviewStepLocalizedContent,
4
+ type LocalizedStepContent,
5
+ } from '@funnelsgrove/runtime';
6
+ import { getStepContentLocale } from '@/runtime/step-content-context';
7
+
8
+ export function useClaimbeeStepContent<TLocaleContent>(
9
+ stepId: string,
10
+ definition: LocalizedStepContent<TLocaleContent>,
11
+ ): TLocaleContent {
12
+ const { attributes } = useFunnel();
13
+
14
+ return usePreviewStepLocalizedContent(stepId, definition, getStepContentLocale(attributes));
15
+ }
@@ -0,0 +1,81 @@
1
+ import { createThemeCssVariables, type FunnelTheme } from '@funnelsgrove/runtime';
2
+
3
+ export const theme = {
4
+ interfaceMode: 'light',
5
+ colors: {
6
+ interface: {
7
+ background: '#f4f7f4',
8
+ primary: '#4db53f',
9
+ primaryText: '#ffffff',
10
+ secondary: '#f4cf3a',
11
+ secondaryText: '#1f2933',
12
+ text: '#1f2933',
13
+ },
14
+ interfaceOpacity: {
15
+ background: 100,
16
+ primary: 100,
17
+ primaryText: 100,
18
+ secondary: 100,
19
+ secondaryText: 100,
20
+ text: 100,
21
+ },
22
+ semantic: {
23
+ accent: '#f4cf3a',
24
+ button: '#4db53f',
25
+ buttonText: '#ffffff',
26
+ surface: '#ffffff',
27
+ border: '#d7e3df',
28
+ warning: '#d58b24',
29
+ danger: '#c74b43',
30
+ },
31
+ derived: {
32
+ bgMuted: '#edf4f2',
33
+ bgSuccess: '#eef8f1',
34
+ bgWarning: '#fff6e8',
35
+ bgDanger: '#fff2ee',
36
+ bgNeutral: '#f6f1e8',
37
+ textMuted: '#5f6b74',
38
+ accentSoft: 'rgb(244 207 58 / 16%)',
39
+ accentMuted: '#dccd82',
40
+ },
41
+ },
42
+ darkOverrides: {},
43
+ typography: {
44
+ font: {
45
+ family: 'Inter',
46
+ style: 'Normal',
47
+ fallbacks: '-apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif',
48
+ },
49
+ fontSizes: {
50
+ xs: '12px',
51
+ sm: '14px',
52
+ md: '16px',
53
+ lg: '20px',
54
+ xl: '28px',
55
+ xxl: '36px',
56
+ },
57
+ fontWeights: {
58
+ regular: 400,
59
+ medium: 500,
60
+ semibold: 600,
61
+ bold: 700,
62
+ heavy: 800,
63
+ },
64
+ lineHeights: {
65
+ tight: 1.2,
66
+ normal: 1.45,
67
+ relaxed: 1.65,
68
+ },
69
+ },
70
+ deviceSize: {
71
+ activePreset: 'Universal',
72
+ presets: [{ name: 'Universal', shellWidth: 430, maxWidth: 430 }],
73
+ padding: 16,
74
+ cornerRadius: 16,
75
+ },
76
+ layout: {
77
+ safeAreaOffsets: { top: 0, right: 0, bottom: 0, left: 0 },
78
+ },
79
+ } as const satisfies FunnelTheme;
80
+
81
+ export const themeCssVariables = createThemeCssVariables(theme);
@@ -0,0 +1,38 @@
1
+ {
2
+ "compilerOptions": {
3
+ "target": "ES2017",
4
+ "lib": ["dom", "dom.iterable", "esnext"],
5
+ "allowJs": true,
6
+ "skipLibCheck": true,
7
+ "strict": true,
8
+ "noEmit": true,
9
+ "esModuleInterop": true,
10
+ "module": "esnext",
11
+ "moduleResolution": "bundler",
12
+ "resolveJsonModule": true,
13
+ "isolatedModules": true,
14
+ "jsx": "react-jsx",
15
+ "incremental": true,
16
+ "plugins": [
17
+ {
18
+ "name": "next"
19
+ }
20
+ ],
21
+ "paths": {
22
+ "@/*": ["./src/*"],
23
+ "@funnelsgrove/runtime/config/env.config": ["../funnel-runtime/src/config/env.config.ts"],
24
+ "@funnelsgrove/runtime": ["../funnel-runtime/src/index.ts"],
25
+ "@funnelsgrove/analytics": ["../funnel-analytics/src/index.ts"],
26
+ "@funnelsgrove/payments": ["../funnel-payments/src/index.ts"]
27
+ }
28
+ },
29
+ "include": [
30
+ "next-env.d.ts",
31
+ "**/*.ts",
32
+ "**/*.tsx",
33
+ ".next/types/**/*.ts",
34
+ ".next/dev/types/**/*.ts",
35
+ "**/*.mts"
36
+ ],
37
+ "exclude": ["node_modules"]
38
+ }
@@ -0,0 +1,32 @@
1
+ import fs from 'node:fs';
2
+ import path from 'node:path';
3
+ import { defineConfig } from 'vitest/config';
4
+
5
+ // Inside the funnelsgrove monorepo, test against shared package sources so
6
+ // changes there surface immediately. Standalone copies (funnels scaffolded
7
+ // from this template) resolve @funnelsgrove/* from node_modules instead.
8
+ const monorepoRuntimeSrc = path.resolve(__dirname, '../funnel-runtime/src/index.ts');
9
+
10
+ const monorepoAliases: Record<string, string> = fs.existsSync(monorepoRuntimeSrc)
11
+ ? {
12
+ '@funnelsgrove/runtime/config/env.config': path.resolve(
13
+ __dirname,
14
+ '../funnel-runtime/src/config/env.config.ts',
15
+ ),
16
+ '@funnelsgrove/runtime': monorepoRuntimeSrc,
17
+ '@funnelsgrove/analytics': path.resolve(__dirname, '../funnel-analytics/src/index.ts'),
18
+ '@funnelsgrove/payments': path.resolve(__dirname, '../funnel-payments/src/index.ts'),
19
+ }
20
+ : {};
21
+
22
+ export default defineConfig({
23
+ test: {
24
+ environment: 'node',
25
+ },
26
+ resolve: {
27
+ alias: {
28
+ '@': path.resolve(__dirname, './src'),
29
+ ...monorepoAliases,
30
+ },
31
+ },
32
+ });
@@ -0,0 +1,19 @@
1
+ {
2
+ "schemaVersion": 1,
3
+ "stepContractVersion": 3,
4
+ "contractHash": "d761e91d5ac6ff9e72c6d49c5bcd014270912473a66f99c49d726c65998085cf",
5
+ "managedFiles": [
6
+ {
7
+ "path": "src/contract/funnel-project.validation.ts",
8
+ "sha256": "b0ec02eac1bd56812eef773be71628ae4e94f80fcd88837bbc5c8bf04e73a62c"
9
+ },
10
+ {
11
+ "path": "src/contract/funnel-validator.vite.config.ts",
12
+ "sha256": "014c0c2c5e29d98e7c91548f233843d83630905ba20c10d248364271ca448e9b"
13
+ },
14
+ {
15
+ "path": "src/contract/validate-funnel.cli.ts",
16
+ "sha256": "1b268b194865d633c760b704a0d4552adc2eb4526801da138ab2a4036f643d58"
17
+ }
18
+ ]
19
+ }
@@ -0,0 +1,44 @@
1
+ import {
2
+ CURRENT_STEP_CONTRACT_VERSION,
3
+ validateFunnelStepContractSnapshot,
4
+ type FunnelContractDiagnostic,
5
+ type FunnelStepContractProjectSnapshot,
6
+ type FunnelStepMeta,
7
+ } from '@funnelsgrove/runtime';
8
+ import docsManifest from '../../.funnelsgrove-docs.json';
9
+ import { manifestExperiments } from '@/config/experiments';
10
+ import { rawFunnelManifest } from '@/config/funnel.manifest';
11
+ import { stepRegistry } from '@/runtime/step-registry';
12
+ import { contentOptionsByStepId } from '@/steps/step-content.registry';
13
+
14
+ export const FUNNEL_PROJECT_CONTRACT_VERSION = CURRENT_STEP_CONTRACT_VERSION;
15
+
16
+ export const buildFunnelProjectSnapshot = (): FunnelStepContractProjectSnapshot => {
17
+ const componentMetaByKey = Object.fromEntries(
18
+ Object.entries(stepRegistry).map(([componentKey, entry]) => [componentKey, entry.meta]),
19
+ ) as Record<string, FunnelStepMeta>;
20
+
21
+ return {
22
+ manifest: rawFunnelManifest,
23
+ componentMetaByKey,
24
+ registeredComponentKeys: Object.keys(stepRegistry),
25
+ contentOptionsByStepId,
26
+ edgesByStepId: rawFunnelManifest.edgesByStepId,
27
+ experiments: manifestExperiments,
28
+ docs: {
29
+ schemaVersion: docsManifest.schemaVersion,
30
+ bundleVersion: docsManifest.bundleVersion,
31
+ stepContractVersion: docsManifest.stepContractVersion,
32
+ contractHash: docsManifest.contractHash,
33
+ missing: [],
34
+ changed: [],
35
+ conflicts: [],
36
+ },
37
+ };
38
+ };
39
+
40
+ export const validateFunnelProject = (
41
+ snapshot: FunnelStepContractProjectSnapshot = buildFunnelProjectSnapshot(),
42
+ ): FunnelContractDiagnostic[] => {
43
+ return validateFunnelStepContractSnapshot(snapshot, { mode: 'authoring' });
44
+ };
@@ -0,0 +1,11 @@
1
+ import { fileURLToPath } from 'node:url';
2
+
3
+ const sourceRoot = fileURLToPath(new URL('../', import.meta.url));
4
+
5
+ export default {
6
+ resolve: {
7
+ alias: {
8
+ '@': sourceRoot,
9
+ },
10
+ },
11
+ };