@funnelsgrove/cli 0.1.365 → 0.1.367

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 (34) hide show
  1. package/README.md +16 -0
  2. package/dist/cli.js +52 -0
  3. package/dist/projectSetupCommands.d.ts +74 -0
  4. package/dist/projectSetupCommands.js +107 -0
  5. package/funnel-contract-compatibility.json +35 -35
  6. package/package.json +4 -4
  7. package/template_docs/.funnelsgrove-docs.json +10 -10
  8. package/template_docs/docs/funnelsgrove/START-HERE.md +1 -1
  9. package/template_docs/docs/funnelsgrove/contracts/content-answers.md +2 -2
  10. package/template_docs/docs/funnelsgrove/contracts/payments.md +5 -3
  11. package/template_docs/docs/funnelsgrove/migrations/step-contract-v3.md +1 -1
  12. package/template_docs/docs/funnelsgrove/recipes/add-step.md +1 -1
  13. package/template_docs/docs/funnelsgrove/recipes/edit-step.md +1 -1
  14. package/template_docs/docs/funnelsgrove/steps/paywall_offer.md +26 -3
  15. package/template_docs/docs/funnelsgrove/steps/progress_interstitial.md +13 -0
  16. package/template_docs/funnel-docs.config.json +1 -1
  17. package/template_scaffold/.funnelsgrove-docs.json +10 -10
  18. package/template_scaffold/.funnelsgrove-scaffold.json +15 -35
  19. package/template_scaffold/docs/funnelsgrove/START-HERE.md +1 -1
  20. package/template_scaffold/docs/funnelsgrove/contracts/content-answers.md +2 -2
  21. package/template_scaffold/docs/funnelsgrove/contracts/payments.md +5 -3
  22. package/template_scaffold/docs/funnelsgrove/migrations/step-contract-v3.md +1 -1
  23. package/template_scaffold/docs/funnelsgrove/recipes/add-step.md +1 -1
  24. package/template_scaffold/docs/funnelsgrove/recipes/edit-step.md +1 -1
  25. package/template_scaffold/docs/funnelsgrove/steps/paywall_offer.md +26 -3
  26. package/template_scaffold/docs/funnelsgrove/steps/progress_interstitial.md +13 -0
  27. package/template_scaffold/funnel-docs.config.json +1 -1
  28. package/template_scaffold/package-lock.json +15 -15
  29. package/template_scaffold/package.json +3 -3
  30. package/template_scaffold/src/steps/step-content.registry.ts +0 -4
  31. package/template_scaffold/src/steps/editor/email-capture.editor.ts +0 -58
  32. package/template_scaffold/src/steps/editor/step-01.editor.ts +0 -22
  33. package/template_scaffold/src/steps/editor/step-32-paywall.editor.ts +0 -508
  34. package/template_scaffold/src/steps/editor/subscription-started.editor.ts +0 -131
@@ -1,58 +0,0 @@
1
- import type { StepEditorSection } from '@funnelsgrove/runtime';
2
-
3
- export const emailCaptureEditor: 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: 'text',
18
- path: 'title',
19
- },
20
- {
21
- id: 'description',
22
- label: 'Description',
23
- kind: 'textarea',
24
- path: 'description',
25
- },
26
- {
27
- id: 'fieldLabel',
28
- label: 'Field label',
29
- kind: 'text',
30
- path: 'fieldLabel',
31
- },
32
- {
33
- id: 'placeholder',
34
- label: 'Placeholder',
35
- kind: 'text',
36
- path: 'placeholder',
37
- },
38
- {
39
- id: 'submitLabel',
40
- label: 'Submit label',
41
- kind: 'text',
42
- path: 'submitLabel',
43
- },
44
- {
45
- id: 'submittingLabel',
46
- label: 'Submitting label',
47
- kind: 'text',
48
- path: 'submittingLabel',
49
- },
50
- {
51
- id: 'saveErrorMessage',
52
- label: 'Error message',
53
- kind: 'text',
54
- path: 'saveErrorMessage',
55
- },
56
- ],
57
- },
58
- ] as const;
@@ -1,22 +0,0 @@
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;
@@ -1,508 +0,0 @@
1
- import type { StepEditorSection } from '@funnelsgrove/runtime';
2
-
3
- export const stepPaywallEditor: readonly StepEditorSection[] = [
4
- {
5
- id: 'loading',
6
- label: 'Loading',
7
- fields: [
8
- {
9
- id: 'loadingLabel',
10
- label: 'Loading label',
11
- kind: 'text',
12
- path: 'loadingLabel',
13
- },
14
- ],
15
- },
16
- {
17
- id: 'top-bar',
18
- label: 'Top Bar',
19
- fields: [
20
- {
21
- id: 'topBarDiscountLabel',
22
- label: 'Discount label',
23
- kind: 'text',
24
- path: 'topBarDiscountLabel',
25
- },
26
- {
27
- id: 'topBarCtaLabel',
28
- label: 'Top CTA label',
29
- kind: 'text',
30
- path: 'topBarCtaLabel',
31
- },
32
- {
33
- id: 'countdownUnits',
34
- label: 'Countdown units',
35
- kind: 'textLines',
36
- path: 'countdownUnits',
37
- },
38
- ],
39
- },
40
- {
41
- id: 'hero',
42
- label: 'Hero',
43
- fields: [
44
- {
45
- id: 'hero.pills',
46
- label: 'Hero pills',
47
- kind: 'textLines',
48
- path: 'hero.pills',
49
- },
50
- {
51
- id: 'hero.image',
52
- label: 'Hero image',
53
- kind: 'image',
54
- path: 'hero.image',
55
- },
56
- ],
57
- },
58
- {
59
- id: 'promo',
60
- label: 'Promo',
61
- fields: [
62
- {
63
- id: 'promo.ariaLabel',
64
- label: 'Promo aria label',
65
- kind: 'text',
66
- path: 'promo.ariaLabel',
67
- },
68
- {
69
- id: 'promo.initialLabel',
70
- label: 'Promo label',
71
- kind: 'text',
72
- path: 'promo.initialLabel',
73
- },
74
- {
75
- id: 'promo.upgradedLabel',
76
- label: 'Upgraded promo label',
77
- kind: 'text',
78
- path: 'promo.upgradedLabel',
79
- },
80
- ],
81
- },
82
- {
83
- id: 'highlight',
84
- label: 'Highlight',
85
- fields: [
86
- {
87
- id: 'highlight.title',
88
- label: 'Highlight title',
89
- kind: 'textLines',
90
- path: 'highlight.title',
91
- },
92
- {
93
- id: 'highlight.description',
94
- label: 'Highlight description',
95
- kind: 'textarea',
96
- path: 'highlight.description',
97
- },
98
- ],
99
- },
100
- {
101
- id: 'plans',
102
- label: 'Plans',
103
- fields: [
104
- {
105
- id: 'plans.title',
106
- label: 'Plans title',
107
- kind: 'text',
108
- path: 'plans.title',
109
- },
110
- {
111
- id: 'plans.cardButtonLabel',
112
- label: 'Card button label',
113
- kind: 'text',
114
- path: 'plans.cardButtonLabel',
115
- },
116
- {
117
- id: 'plans.metaLabels',
118
- label: 'Meta labels',
119
- kind: 'textLines',
120
- path: 'plans.metaLabels',
121
- },
122
- {
123
- id: 'plans.stripeUnavailableNote',
124
- label: 'Stripe unavailable note',
125
- kind: 'textarea',
126
- path: 'plans.stripeUnavailableNote',
127
- },
128
- {
129
- id: 'plans.plansUnavailableNote',
130
- label: 'Plans unavailable note',
131
- kind: 'textarea',
132
- path: 'plans.plansUnavailableNote',
133
- },
134
- ],
135
- },
136
- {
137
- id: 'checkout',
138
- label: 'Checkout',
139
- fields: [
140
- {
141
- id: 'checkout.title',
142
- label: 'Dialog title',
143
- kind: 'text',
144
- path: 'checkout.title',
145
- },
146
- {
147
- id: 'checkout.summaryTitle',
148
- label: 'Summary title',
149
- kind: 'text',
150
- path: 'checkout.summaryTitle',
151
- },
152
- {
153
- id: 'checkout.closeAriaLabel',
154
- label: 'Close aria label',
155
- kind: 'text',
156
- path: 'checkout.closeAriaLabel',
157
- },
158
- {
159
- id: 'checkout.walletPlaceholderLabel',
160
- label: 'Wallet placeholder label',
161
- kind: 'text',
162
- path: 'checkout.walletPlaceholderLabel',
163
- },
164
- {
165
- id: 'checkout.walletButtonLabel',
166
- label: 'Wallet button label',
167
- kind: 'text',
168
- path: 'checkout.walletButtonLabel',
169
- },
170
- {
171
- id: 'checkout.customerEmailLabel',
172
- label: 'Customer email label',
173
- kind: 'text',
174
- path: 'checkout.customerEmailLabel',
175
- },
176
- {
177
- id: 'checkout.customerEmailPlaceholder',
178
- label: 'Customer email placeholder',
179
- kind: 'text',
180
- path: 'checkout.customerEmailPlaceholder',
181
- },
182
- {
183
- id: 'checkout.customerEmailInvalidMessage',
184
- label: 'Customer email invalid message',
185
- kind: 'text',
186
- path: 'checkout.customerEmailInvalidMessage',
187
- },
188
- {
189
- id: 'checkout.emailPromptTitle',
190
- label: 'Email prompt title',
191
- kind: 'text',
192
- path: 'checkout.emailPromptTitle',
193
- },
194
- {
195
- id: 'checkout.emailPromptDescription',
196
- label: 'Email prompt description',
197
- kind: 'textarea',
198
- path: 'checkout.emailPromptDescription',
199
- },
200
- {
201
- id: 'checkout.emailPromptSubmitLabel',
202
- label: 'Email prompt submit label',
203
- kind: 'text',
204
- path: 'checkout.emailPromptSubmitLabel',
205
- },
206
- {
207
- id: 'checkout.emailPromptCancelLabel',
208
- label: 'Email prompt cancel label',
209
- kind: 'text',
210
- path: 'checkout.emailPromptCancelLabel',
211
- },
212
- {
213
- id: 'checkout.countdownLabel',
214
- label: 'Checkout countdown label',
215
- kind: 'text',
216
- path: 'checkout.countdownLabel',
217
- },
218
- {
219
- id: 'checkout.satisfactionPercent',
220
- label: 'Satisfaction percent',
221
- kind: 'text',
222
- path: 'checkout.satisfactionPercent',
223
- },
224
- {
225
- id: 'checkout.satisfactionLabel',
226
- label: 'Satisfaction label',
227
- kind: 'textarea',
228
- path: 'checkout.satisfactionLabel',
229
- },
230
- {
231
- id: 'checkout.originalPriceLabel',
232
- label: 'Original price label',
233
- kind: 'text',
234
- path: 'checkout.originalPriceLabel',
235
- },
236
- {
237
- id: 'checkout.discountLabelTemplate',
238
- label: 'Discount label template',
239
- kind: 'text',
240
- path: 'checkout.discountLabelTemplate',
241
- },
242
- {
243
- id: 'checkout.discountRowLabelTemplate',
244
- label: 'Discount row label template',
245
- kind: 'text',
246
- path: 'checkout.discountRowLabelTemplate',
247
- },
248
- {
249
- id: 'checkout.promoCodeLabel',
250
- label: 'Promo code label',
251
- kind: 'text',
252
- path: 'checkout.promoCodeLabel',
253
- },
254
- {
255
- id: 'checkout.savedLabelTemplate',
256
- label: 'Saved label template',
257
- kind: 'text',
258
- path: 'checkout.savedLabelTemplate',
259
- },
260
- {
261
- id: 'checkout.totalLabel',
262
- label: 'Total label',
263
- kind: 'text',
264
- path: 'checkout.totalLabel',
265
- },
266
- {
267
- id: 'checkout.summaryGuaranteeLabel',
268
- label: 'Summary guarantee label',
269
- kind: 'text',
270
- path: 'checkout.summaryGuaranteeLabel',
271
- },
272
- {
273
- id: 'checkout.submitLabel',
274
- label: 'Submit label',
275
- kind: 'text',
276
- path: 'checkout.submitLabel',
277
- },
278
- {
279
- id: 'checkout.cardSubmitLabel',
280
- label: 'Card submit label',
281
- kind: 'text',
282
- path: 'checkout.cardSubmitLabel',
283
- },
284
- {
285
- id: 'checkout.paypalLabel',
286
- label: 'PayPal label',
287
- kind: 'text',
288
- path: 'checkout.paypalLabel',
289
- },
290
- {
291
- id: 'checkout.paypalButtonLabel',
292
- label: 'PayPal button label',
293
- kind: 'text',
294
- path: 'checkout.paypalButtonLabel',
295
- },
296
- {
297
- id: 'checkout.processingLabel',
298
- label: 'Processing label',
299
- kind: 'text',
300
- path: 'checkout.processingLabel',
301
- },
302
- {
303
- id: 'checkout.secureLabel',
304
- label: 'Secure label',
305
- kind: 'text',
306
- path: 'checkout.secureLabel',
307
- },
308
- {
309
- id: 'checkout.poweredByLabel',
310
- label: 'Powered by label',
311
- kind: 'text',
312
- path: 'checkout.poweredByLabel',
313
- },
314
- {
315
- id: 'checkout.paymentMethodLabels',
316
- label: 'Payment method labels',
317
- kind: 'textLines',
318
- path: 'checkout.paymentMethodLabels',
319
- },
320
- {
321
- id: 'checkout.legalPrefix',
322
- label: 'Legal prefix',
323
- kind: 'textarea',
324
- path: 'checkout.legalPrefix',
325
- },
326
- {
327
- id: 'checkout.legalLinks',
328
- label: 'Legal links',
329
- kind: 'list',
330
- path: 'checkout.legalLinks',
331
- preset: 'linkItems',
332
- },
333
- {
334
- id: 'checkout.supportText',
335
- label: 'Support text',
336
- kind: 'text',
337
- path: 'checkout.supportText',
338
- },
339
- {
340
- id: 'checkout.renewalTemplate',
341
- label: 'Renewal template',
342
- kind: 'textarea',
343
- path: 'checkout.renewalTemplate',
344
- },
345
- {
346
- id: 'checkout.specialOffer.discountLabel',
347
- label: 'Special offer discount label',
348
- kind: 'text',
349
- path: 'checkout.specialOffer.discountLabel',
350
- },
351
- {
352
- id: 'checkout.specialOffer.image',
353
- label: 'Special offer image',
354
- kind: 'image',
355
- path: 'checkout.specialOffer.image',
356
- },
357
- {
358
- id: 'checkout.specialOffer.title',
359
- label: 'Special offer title',
360
- kind: 'text',
361
- path: 'checkout.specialOffer.title',
362
- },
363
- {
364
- id: 'checkout.specialOffer.description',
365
- label: 'Special offer description',
366
- kind: 'textarea',
367
- path: 'checkout.specialOffer.description',
368
- },
369
- {
370
- id: 'checkout.specialOffer.buttonLabel',
371
- label: 'Special offer button label',
372
- kind: 'text',
373
- path: 'checkout.specialOffer.buttonLabel',
374
- },
375
- ],
376
- },
377
- {
378
- id: 'feature-grid',
379
- label: 'Feature Grid',
380
- fields: [
381
- {
382
- id: 'featureGrid.title',
383
- label: 'Section title',
384
- kind: 'textLines',
385
- path: 'featureGrid.title',
386
- },
387
- {
388
- id: 'featureGrid.subtitle',
389
- label: 'Section subtitle',
390
- kind: 'textarea',
391
- path: 'featureGrid.subtitle',
392
- },
393
- {
394
- id: 'featureGrid.assistant.image',
395
- label: 'Assistant image',
396
- kind: 'image',
397
- path: 'featureGrid.assistant.image',
398
- },
399
- {
400
- id: 'featureGrid.assistant.title',
401
- label: 'Assistant title',
402
- kind: 'text',
403
- path: 'featureGrid.assistant.title',
404
- },
405
- {
406
- id: 'featureGrid.assistant.description',
407
- label: 'Assistant description',
408
- kind: 'textarea',
409
- path: 'featureGrid.assistant.description',
410
- },
411
- {
412
- id: 'featureGrid.quickFeatures',
413
- label: 'Quick features',
414
- kind: 'list',
415
- path: 'featureGrid.quickFeatures',
416
- preset: 'infoItems',
417
- },
418
- {
419
- id: 'featureGrid.history.image',
420
- label: 'History image',
421
- kind: 'image',
422
- path: 'featureGrid.history.image',
423
- },
424
- {
425
- id: 'featureGrid.history.title',
426
- label: 'History title',
427
- kind: 'textarea',
428
- path: 'featureGrid.history.title',
429
- },
430
- {
431
- id: 'featureGrid.detailedFeatures',
432
- label: 'Detailed features',
433
- kind: 'list',
434
- path: 'featureGrid.detailedFeatures',
435
- preset: 'infoItems',
436
- },
437
- ],
438
- },
439
- {
440
- id: 'stories',
441
- label: 'Stories',
442
- fields: [
443
- {
444
- id: 'stories.title',
445
- label: 'Stories title',
446
- kind: 'text',
447
- path: 'stories.title',
448
- },
449
- {
450
- id: 'stories.items',
451
- label: 'Stories',
452
- kind: 'list',
453
- path: 'stories.items',
454
- preset: 'quoteItems',
455
- },
456
- ],
457
- },
458
- {
459
- id: 'faq',
460
- label: 'FAQ',
461
- fields: [
462
- {
463
- id: 'faq.title',
464
- label: 'FAQ title',
465
- kind: 'text',
466
- path: 'faq.title',
467
- },
468
- {
469
- id: 'faq.items',
470
- label: 'FAQ items',
471
- kind: 'list',
472
- path: 'faq.items',
473
- preset: 'qaItems',
474
- },
475
- ],
476
- },
477
- {
478
- id: 'guarantee',
479
- label: 'Guarantee',
480
- fields: [
481
- {
482
- id: 'guarantee.image',
483
- label: 'Guarantee image',
484
- kind: 'image',
485
- path: 'guarantee.image',
486
- },
487
- {
488
- id: 'guarantee.title',
489
- label: 'Guarantee title',
490
- kind: 'text',
491
- path: 'guarantee.title',
492
- },
493
- {
494
- id: 'guarantee.description',
495
- label: 'Guarantee description',
496
- kind: 'textarea',
497
- path: 'guarantee.description',
498
- },
499
- {
500
- id: 'guarantee.links',
501
- label: 'Guarantee links',
502
- kind: 'list',
503
- path: 'guarantee.links',
504
- preset: 'linkItems',
505
- },
506
- ],
507
- },
508
- ] as const;
@@ -1,131 +0,0 @@
1
- import type { StepEditorSection } from '@funnelsgrove/runtime';
2
-
3
- export const subscriptionStartedEditor: readonly StepEditorSection[] = [
4
- {
5
- id: 'header',
6
- label: 'Header',
7
- fields: [
8
- {
9
- id: 'kicker',
10
- label: 'Kicker',
11
- kind: 'text',
12
- path: 'kicker',
13
- },
14
- {
15
- id: 'title',
16
- label: 'Title',
17
- kind: 'text',
18
- path: 'title',
19
- },
20
- {
21
- id: 'copyWithQr',
22
- label: 'Copy with QR',
23
- kind: 'textarea',
24
- path: 'copyWithQr',
25
- },
26
- {
27
- id: 'copyWithoutQr',
28
- label: 'Copy without QR',
29
- kind: 'textarea',
30
- path: 'copyWithoutQr',
31
- },
32
- {
33
- id: 'note',
34
- label: 'Note',
35
- kind: 'textarea',
36
- path: 'note',
37
- },
38
- ],
39
- },
40
- {
41
- id: 'actions',
42
- label: 'Actions',
43
- fields: [
44
- {
45
- id: 'openAppLabel',
46
- label: 'Open app label',
47
- kind: 'text',
48
- path: 'openAppLabel',
49
- },
50
- {
51
- id: 'emailButtonLabel',
52
- label: 'Email button label',
53
- kind: 'text',
54
- path: 'emailButtonLabel',
55
- },
56
- {
57
- id: 'qrOpenLabel',
58
- label: 'QR open label',
59
- kind: 'text',
60
- path: 'qrOpenLabel',
61
- },
62
- {
63
- id: 'storeLinks',
64
- label: 'Store links',
65
- kind: 'list',
66
- path: 'storeLinks',
67
- preset: 'storeLinkItems',
68
- },
69
- ],
70
- },
71
- {
72
- id: 'email',
73
- label: 'Email',
74
- fields: [
75
- {
76
- id: 'emailSubject',
77
- label: 'Email subject',
78
- kind: 'text',
79
- path: 'emailSubject',
80
- },
81
- {
82
- id: 'emailIntro',
83
- label: 'Email intro',
84
- kind: 'textarea',
85
- path: 'emailIntro',
86
- },
87
- {
88
- id: 'emailOpenAppLabel',
89
- label: 'Email open app label',
90
- kind: 'text',
91
- path: 'emailOpenAppLabel',
92
- },
93
- {
94
- id: 'emailIosDeepLinkLabel',
95
- label: 'Email iOS deep link label',
96
- kind: 'text',
97
- path: 'emailIosDeepLinkLabel',
98
- },
99
- {
100
- id: 'emailAndroidDeepLinkLabel',
101
- label: 'Email Android deep link label',
102
- kind: 'text',
103
- path: 'emailAndroidDeepLinkLabel',
104
- },
105
- {
106
- id: 'emailStoreLabels.ios',
107
- label: 'Email iOS store label',
108
- kind: 'text',
109
- path: 'emailStoreLabels.ios',
110
- },
111
- {
112
- id: 'emailStoreLabels.android',
113
- label: 'Email Android store label',
114
- kind: 'text',
115
- path: 'emailStoreLabels.android',
116
- },
117
- {
118
- id: 'emailSentStatus',
119
- label: 'Email sent status',
120
- kind: 'text',
121
- path: 'emailSentStatus',
122
- },
123
- {
124
- id: 'autoOpenStatus',
125
- label: 'Auto-open status',
126
- kind: 'text',
127
- path: 'autoOpenStatus',
128
- },
129
- ],
130
- },
131
- ] as const;