@funnelsgrove/cli 0.1.396 → 0.1.399

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/README.md CHANGED
@@ -326,6 +326,15 @@ workspace, project and funnel chosen with `fgrove use`). `--log` attaches the
326
326
  last 20,000 characters of a log file as-is, so remove secrets first. The
327
327
  command prints the reference of the filed report.
328
328
 
329
+ Request a feature the same way:
330
+
331
+ ```bash
332
+ fgrove feature request "export funnel analytics as CSV" --dry-run # show what would be sent
333
+ fgrove feature request "export funnel analytics as CSV"
334
+ ```
335
+
336
+ A feature request carries the same context, without a log.
337
+
329
338
  Use `--api-url` or `FUNNELSGROVE_API_URL` for non-production APIs.
330
339
  Use `--config` or `FUNNELSGROVE_CONFIG` to keep test credentials separate from the default `~/.funnelsgrove/config.json`.
331
340
 
@@ -6,6 +6,7 @@ type CallApi = <T>(input: {
6
6
  }) => Promise<T>;
7
7
  export declare const BUG_REPORT_MAX_LOG_CHARS = 20000;
8
8
  export type BugReport = {
9
+ kind?: 'feature';
9
10
  message: string;
10
11
  logs?: string;
11
12
  cliVersion: string;
@@ -29,6 +30,7 @@ export declare const resolveBugReportContext: (input: {
29
30
  active: BugReportContext | null;
30
31
  }) => BugReportContext;
31
32
  export declare const buildBugReport: (input: {
33
+ kind?: "feature";
32
34
  message: string;
33
35
  logPath?: string;
34
36
  cliVersion: string;
@@ -13,14 +13,18 @@ export const resolveBugReportContext = (input) => {
13
13
  };
14
14
  export const buildBugReport = async (input) => {
15
15
  const message = input.message.trim();
16
- if (!message)
17
- throw new Error('Describe the bug: fgrove bug report "what happened".');
16
+ if (!message) {
17
+ throw new Error(input.kind === 'feature'
18
+ ? 'Describe the feature: fgrove feature request "what you need".'
19
+ : 'Describe the bug: fgrove bug report "what happened".');
20
+ }
18
21
  const readText = input.readText ?? ((path) => readFile(path, 'utf8'));
19
22
  const logs = input.logPath ? tailLog(await readText(input.logPath)) : undefined;
20
- return { message, ...(logs ? { logs } : {}), cliVersion: input.cliVersion, environment: input.environment, ...input.context };
23
+ return { ...(input.kind ? { kind: input.kind } : {}), message, ...(logs ? { logs } : {}), cliVersion: input.cliVersion, environment: input.environment, ...input.context };
21
24
  };
22
25
  export const submitBugReport = (input, report) => (input.callApi({ path: 'bugReports.create', type: 'mutation', token: input.token, data: report }));
23
26
  export const formatBugReportPreview = (report) => [
27
+ ...(report.kind === 'feature' ? ['Type\tfeature request'] : []),
24
28
  `CLI\t${report.cliVersion} (${report.environment})`,
25
29
  `Workspace\t${report.workspaceId ?? 'not set'}`,
26
30
  `Project\t${report.projectId ?? 'not set'}`,
package/dist/cli.js CHANGED
@@ -2890,16 +2890,10 @@ const bugCommand = addExamples(program.command('bug').description('Report a Funn
2890
2890
  'fgrove bug report "publish hangs at image optimization" --log ./publish.log --dir ./claimbee-ios',
2891
2891
  'fgrove bug report "users find misses a project" --dry-run',
2892
2892
  ]);
2893
- bugCommand
2894
- .command('report <message>')
2895
- .description('Send a bug report with your CLI version, environment and current workspace, project and funnel; --log attaches the last 20,000 characters of a log file')
2896
- .option('--log <file>', 'Log file to attach (sent as-is; remove secrets first)')
2897
- .option('--dir <path>', 'Local funnel directory whose sync manifest names the funnel', '.')
2898
- .option('--dry-run', 'Print what would be sent without sending it')
2899
- .option('--json', 'Print machine-readable JSON')
2900
- .action(async (message, options) => {
2893
+ const sendBugReport = async (kind, message, options) => {
2901
2894
  const [manifest, active] = await Promise.all([loadManifestForDir(options.dir), loadActiveContext(getConfigPath())]);
2902
2895
  const report = await buildBugReport({
2896
+ kind,
2903
2897
  message,
2904
2898
  logPath: options.log && path.resolve(process.cwd(), options.log),
2905
2899
  cliVersion: cliReleaseIdentity.cliVersion,
@@ -2918,8 +2912,27 @@ bugCommand
2918
2912
  console.log(JSON.stringify(result, null, 2));
2919
2913
  return;
2920
2914
  }
2921
- console.log(`Bug report sent\t${result.reference}`);
2922
- });
2915
+ console.log(`${kind === 'feature' ? 'Feature request' : 'Bug report'} sent\t${result.reference}`);
2916
+ };
2917
+ bugCommand
2918
+ .command('report <message>')
2919
+ .description('Send a bug report with your CLI version, environment and current workspace, project and funnel; --log attaches the last 20,000 characters of a log file')
2920
+ .option('--log <file>', 'Log file to attach (sent as-is; remove secrets first)')
2921
+ .option('--dir <path>', 'Local funnel directory whose sync manifest names the funnel', '.')
2922
+ .option('--dry-run', 'Print what would be sent without sending it')
2923
+ .option('--json', 'Print machine-readable JSON')
2924
+ .action((message, options) => sendBugReport(undefined, message, options));
2925
+ const featureCommand = addExamples(program.command('feature').description('Request a FunnelsGrove feature from the FunnelsGrove team'), [
2926
+ 'fgrove feature request "export funnel analytics as CSV"',
2927
+ 'fgrove feature request "bulk-edit prices across funnels" --dry-run',
2928
+ ]);
2929
+ featureCommand
2930
+ .command('request <message>')
2931
+ .description('Send a feature request with your CLI version, environment and current workspace, project and funnel')
2932
+ .option('--dir <path>', 'Local funnel directory whose sync manifest names the funnel', '.')
2933
+ .option('--dry-run', 'Print what would be sent without sending it')
2934
+ .option('--json', 'Print machine-readable JSON')
2935
+ .action((message, options) => sendBugReport('feature', message, options));
2923
2936
  const funnelsCommand = addExamples(program.command('funnels').description('Manage funnels'), [
2924
2937
  'fgrove funnels list',
2925
2938
  'fgrove funnels clone --funnel claimbee --name claimbee-ios',
@@ -272,6 +272,7 @@ type GenerateOptions = {
272
272
  swap?: string;
273
273
  pack?: string;
274
274
  captions?: string;
275
+ concept?: string;
275
276
  formats?: string;
276
277
  variants?: string;
277
278
  persuasionAngle?: string;
@@ -523,6 +523,7 @@ const registerGenerationRunCommands = (root, input) => {
523
523
  const startCommand = (command) => scoped(command
524
524
  .option('--flow <flow>', 'image | video | remix | format (default: --kind, else image)')
525
525
  .option('--brief <id>', 'Brief id')
526
+ .option('--concept <concept>', 'The Concept (code such as K012) this Generation is made for; it moves the Concept into production')
526
527
  .option('--angle <angle>', 'Quick-create and Remix: angle code or slug').option('--brand <brand>', 'Quick-create and Remix: brand with a Brand Kit')
527
528
  .option('--prompt <text>', 'Quick-create: scene to generate').option('--headline <text>', 'Quick-create: headline')
528
529
  .option('--cta <text>', 'Quick-create: call to action').option('--supporting <text>', 'Quick-create: supporting line')
@@ -559,6 +560,7 @@ const registerGenerationRunCommands = (root, input) => {
559
560
  ...(flow === 'remix'
560
561
  ? remixRequest(options, await input.angles(scope), options.texts ? parseTextSets(JSON.parse(await readFile(options.texts, 'utf8'))) : [])
561
562
  : generationRequest({ ...options, kind: flow }, options.brief ? [] : await input.angles(scope))),
563
+ ...(options.concept !== undefined ? { conceptId: options.concept } : {}),
562
564
  ...(options.pack ? { packCreativeId: findCreative(await input.creatives(scope), options.pack).id } : {}),
563
565
  };
564
566
  if (options.estimate) {
@@ -1292,6 +1294,7 @@ video may be written { "variation": "<full name or vd005_01>", "size": "1080x192
1292
1294
  scoped(montage.command('start <cutSheet>').description('Upload the cut sheet\'s files and start a Montage Generation; every credit is reserved at start')
1293
1295
  .requiredOption('--angle <angle>', 'Angle code or slug of the Variations an approved video makes')
1294
1296
  .requiredOption('--brand <brand>', 'Brand with a Brand Kit')
1297
+ .option('--concept <concept>', 'The Concept (code such as K012) this Generation is made for; it moves the Concept into production')
1295
1298
  .option('--model <model>', MONTAGE_MODEL_HINT)
1296
1299
  .option('--resolution <resolution>', MONTAGE_RESOLUTION_HINT)
1297
1300
  .option('--pack <creative>', 'Approve videos into this existing Creative, such as vd007 (default: one new Creative per batch)')
@@ -1305,6 +1308,7 @@ video may be written { "variation": "<full name or vd005_01>", "size": "1080x192
1305
1308
  const { cutSheet } = await readMontageCutSheet(scope, file, { upload: true, variations: () => input.variations(scope) });
1306
1309
  const request = {
1307
1310
  montage: { angleId, brand: options.brand, cutSheet, ...(options.keyframesOnly ? { keyframesOnly: true } : {}) },
1311
+ ...(options.concept !== undefined ? { conceptId: options.concept } : {}),
1308
1312
  ...(options.model ? { model: options.model } : {}), ...(options.resolution ? { resolution: options.resolution } : {}),
1309
1313
  ...(packCreativeId ? { packCreativeId } : {}),
1310
1314
  };
@@ -1401,6 +1405,91 @@ Examples:
1401
1405
  fgrove creatives montage start ./vd007/cut.json --angle C004 --brand "Acme Claims" --keyframes-only --wait --project acme
1402
1406
  fgrove creatives montage show <generation id> --wait --download ./vd007/out --project acme
1403
1407
  fgrove creatives montage revise <generation id> --reroll s04 --out ./vd007/cut.v2.json --project acme`);
1408
+ scoped(root.command('inbox').description('What waits for the agent (scripts to write, approved scripts to produce, open notes) and what waits for the member'))
1409
+ .action(run((scope) => api(scope, 'inbox', 'query')));
1410
+ const concepts = root.command('concepts').description('Concepts: planned ads under an Angle');
1411
+ scoped(concepts.command('list').description('List Concepts without their scripts')
1412
+ .option('--stage <stage>', 'idea | script | approved | production | review | done | dropped'))
1413
+ .action(run(async (scope, options) => (await api(scope, 'concepts', 'query'))
1414
+ .filter((concept) => !options.stage || concept.stage === options.stage)));
1415
+ scoped(concepts.command('show <concept>').description('Show a Concept by code or id, including its script'))
1416
+ .action(run((scope, _options, concept) => api(scope, 'concept', 'query', { concept })));
1417
+ const conceptOptions = (command) => scoped(command
1418
+ .option('--hook <text>', 'Opening hook')
1419
+ .option('--treatment <text>', 'How the ad is made')
1420
+ .option('--source <source>', 'manual | brainstorm | mix | iteration')
1421
+ .option('--origin <names...>', 'Names of the Variations a mix or an iteration builds on')
1422
+ .option('--script <text>', 'Full script')
1423
+ .option('--script-file <path>', 'Read the full script from a UTF-8 file'));
1424
+ const conceptInput = async (scope, options) => {
1425
+ if (options.script !== undefined && options.scriptFile !== undefined) {
1426
+ throw new Error('--script and --script-file cannot be used together');
1427
+ }
1428
+ return {
1429
+ ...pick(options, ['title', 'format', 'hook', 'treatment', 'source', 'script', 'stage'], (value) => value !== undefined),
1430
+ ...(options.angle !== undefined ? { angleId: findAngle(await angles(scope), options.angle).id } : {}),
1431
+ ...(options.origin !== undefined ? { originRefs: options.origin } : {}),
1432
+ ...(options.scriptFile !== undefined ? { script: await readFile(options.scriptFile, 'utf8') } : {}),
1433
+ };
1434
+ };
1435
+ conceptOptions(concepts.command('create').description('Create a Concept under an Angle')
1436
+ .requiredOption('--angle <angle>', 'Angle code, slug, or id')
1437
+ .requiredOption('--title <title>', 'Concept title')
1438
+ .requiredOption('--format <format>', 'Format from the dictionary (st, vid, vidst)'))
1439
+ .action(run(async (scope, options) => api(scope, 'createConcept', 'mutation', await conceptInput(scope, options))));
1440
+ conceptOptions(concepts.command('update <concept>').description('Update only the given fields of a Concept by code or id')
1441
+ .option('--angle <angle>', 'Angle code, slug, or id')
1442
+ .option('--title <title>', 'Concept title')
1443
+ .option('--format <format>', 'Format from the dictionary (st, vid, vidst)')
1444
+ .option('--stage <stage>', 'idea | script | approved | production | review | done | dropped'))
1445
+ .action(run(async (scope, options, concept) => api(scope, 'updateConcept', 'mutation', {
1446
+ concept, ...await conceptInput(scope, options),
1447
+ })));
1448
+ const notes = root.command('notes').description('Review notes for the agent on a Variation, Concept, or Montage');
1449
+ scoped(notes.command('list').description('List open review notes from the inbox'))
1450
+ .action(run(async (scope) => {
1451
+ const { agent } = await api(scope, 'inbox', 'query');
1452
+ return { concepts: agent.conceptNotes, variations: agent.variationNotes, montages: agent.montageNotes };
1453
+ }));
1454
+ const noteOptions = (command) => scoped(command
1455
+ .option('--variation <variation>', 'Variation name or id')
1456
+ .option('--concept <concept>', 'Concept code or id')
1457
+ .option('--generation <id>', 'Montage Generation id'));
1458
+ const noteTarget = async (scope, options) => {
1459
+ if ([options.variation, options.concept, options.generation].filter((value) => value !== undefined).length !== 1) {
1460
+ throw new Error('Pass exactly one target: --variation, --concept, or --generation');
1461
+ }
1462
+ if (options.shot !== undefined && options.generation === undefined) {
1463
+ throw new Error('--shot is only valid with --generation');
1464
+ }
1465
+ if (options.variation !== undefined) {
1466
+ return { on: 'variation', variationId: findVariation(await variations(scope), options.variation).id };
1467
+ }
1468
+ if (options.concept !== undefined) {
1469
+ const concept = await api(scope, 'concept', 'query', { concept: options.concept });
1470
+ return { on: 'concept', conceptId: concept.id };
1471
+ }
1472
+ return { on: 'montage', generationId: options.generation };
1473
+ };
1474
+ noteOptions(notes.command('add').description('Add an open review note')
1475
+ .requiredOption('--text <text>', 'What needs to change')
1476
+ .option('--shot <shotId>', 'Shot id; only with --generation (omit for the whole video)'))
1477
+ .action(run(async (scope, options) => api(scope, 'addNote', 'mutation', {
1478
+ target: await noteTarget(scope, options), text: options.text, ...(options.shot !== undefined ? { shotId: options.shot } : {}),
1479
+ })));
1480
+ noteOptions(notes.command('done <noteId>').description('Close a note with what changed and where to see it')
1481
+ .requiredOption('--reply <text>', 'What changed, in which version'))
1482
+ .action(run(async (scope, options, noteId) => api(scope, 'closeNote', 'mutation', {
1483
+ target: await noteTarget(scope, options), noteId, reply: options.reply,
1484
+ })));
1485
+ noteOptions(notes.command('reopen <noteId>').description('Reopen a review note'))
1486
+ .action(run(async (scope, options, noteId) => api(scope, 'reopenNote', 'mutation', {
1487
+ target: await noteTarget(scope, options), noteId,
1488
+ })));
1489
+ noteOptions(notes.command('remove <noteId>').description('Remove a review note'))
1490
+ .action(run(async (scope, options, noteId) => api(scope, 'removeNote', 'mutation', {
1491
+ target: await noteTarget(scope, options), noteId,
1492
+ })));
1404
1493
  const settings = root.command('settings').description('Project creative settings');
1405
1494
  scoped(settings.command('show').description('Show the name prefix and dictionaries'))
1406
1495
  .action(run((scope) => api(scope, 'settings', 'query')));
@@ -33,6 +33,7 @@ credits. Before anything paid:
33
33
  fgrove creatives credits
34
34
  fgrove creatives montage start cut.json --angle <angle> --brand <brand> --estimate
35
35
 
36
+ When making a Concept, optionally add --concept K012 to montage start; starting the Generation moves it into production.
36
37
  Stop and tell the user when the balance is under the estimate.
37
38
 
38
39
  1. TURN THE SCRIPT INTO A SHOT LIST
@@ -155,6 +156,13 @@ have been listened to as one voice.
155
156
 
156
157
  6. THE CUT
157
158
 
159
+ Before revising a delivered Montage, read open notes with "fgrove creatives notes list" (or "fgrove creatives inbox").
160
+ Make each note a change in the next version. Close each with:
161
+
162
+ fgrove creatives notes done <noteId> --reply "<what changed, in which version>" --generation <id>
163
+
164
+ For a note on a Variation or Concept, use --variation <variation> or --concept <concept> as its target instead.
165
+
158
166
  fgrove creatives montage revise <generationId> --out cut.json
159
167
 
160
168
  writes a cut sheet in which every delivered clip, a generated music track and a converted take is a stored file. Turn
@@ -4,10 +4,10 @@
4
4
  "minimumCliVersion": "0.1.20",
5
5
  "entries": [
6
6
  {
7
- "repositoryCliVersion": "0.1.396",
7
+ "repositoryCliVersion": "0.1.399",
8
8
  "manifest": {
9
9
  "schemaVersion": 1,
10
- "bundleVersion": "2.0.389",
10
+ "bundleVersion": "2.0.392",
11
11
  "stepContractVersion": 3,
12
12
  "contractHash": "d761e91d5ac6ff9e72c6d49c5bcd014270912473a66f99c49d726c65998085cf",
13
13
  "managedFiles": [
@@ -45,7 +45,7 @@
45
45
  },
46
46
  {
47
47
  "path": "docs/funnelsgrove/migrations/step-contract-v3.md",
48
- "sha256": "7ab93d7a8f249494fa0c2d7bae90ad9dd58e8f292cdf80662a824efe18cb682d"
48
+ "sha256": "2ba365bb0f41d4dd541fb4fa3ea6566b00dd3fdcd57394d0ac195757284eef95"
49
49
  },
50
50
  {
51
51
  "path": "docs/funnelsgrove/qa/analytics.md",
@@ -145,16 +145,16 @@
145
145
  },
146
146
  {
147
147
  "path": "funnel-docs.config.json",
148
- "sha256": "e305826722a12102979fbd7dec46471875f09f8397cb97917109f090f505443f"
148
+ "sha256": "8c7e10447b684b8a568d722dbfdb095a6c608fd1ed22910a52faf63a502a25d5"
149
149
  }
150
150
  ]
151
151
  }
152
152
  },
153
153
  {
154
- "repositoryCliVersion": "0.1.395",
154
+ "repositoryCliVersion": "0.1.398",
155
155
  "manifest": {
156
156
  "schemaVersion": 1,
157
- "bundleVersion": "2.0.388",
157
+ "bundleVersion": "2.0.391",
158
158
  "stepContractVersion": 3,
159
159
  "contractHash": "d761e91d5ac6ff9e72c6d49c5bcd014270912473a66f99c49d726c65998085cf",
160
160
  "managedFiles": [
@@ -192,7 +192,7 @@
192
192
  },
193
193
  {
194
194
  "path": "docs/funnelsgrove/migrations/step-contract-v3.md",
195
- "sha256": "d1eddcd89db6e20b6a054dbe8c43282fd9b0c4988e1e01f05c4a7c69081e1093"
195
+ "sha256": "502d91c2c9ca9a3b41b3b46b3e965a5651ec14bde6a5ff4e617df62e873b835b"
196
196
  },
197
197
  {
198
198
  "path": "docs/funnelsgrove/qa/analytics.md",
@@ -292,16 +292,16 @@
292
292
  },
293
293
  {
294
294
  "path": "funnel-docs.config.json",
295
- "sha256": "bef986565046d4615b543a21cbe7e0de64567ee3a777a385a0a7072b94c55b5d"
295
+ "sha256": "cbcba371bd3082cd467a40a6dfb11c181ab0a77caaafc6b28d4512ae8fb6770b"
296
296
  }
297
297
  ]
298
298
  }
299
299
  },
300
300
  {
301
- "repositoryCliVersion": "0.1.394",
301
+ "repositoryCliVersion": "0.1.397",
302
302
  "manifest": {
303
303
  "schemaVersion": 1,
304
- "bundleVersion": "2.0.387",
304
+ "bundleVersion": "2.0.390",
305
305
  "stepContractVersion": 3,
306
306
  "contractHash": "d761e91d5ac6ff9e72c6d49c5bcd014270912473a66f99c49d726c65998085cf",
307
307
  "managedFiles": [
@@ -339,7 +339,7 @@
339
339
  },
340
340
  {
341
341
  "path": "docs/funnelsgrove/migrations/step-contract-v3.md",
342
- "sha256": "831c1168ae9f1def454e495a92e19974ff8de7b54b8e6665f4f8d427ee1f0154"
342
+ "sha256": "31a69ec0c7ed48cba36e7b470f499b3bd484bd78550fd5248ce1efc0af472348"
343
343
  },
344
344
  {
345
345
  "path": "docs/funnelsgrove/qa/analytics.md",
@@ -439,16 +439,16 @@
439
439
  },
440
440
  {
441
441
  "path": "funnel-docs.config.json",
442
- "sha256": "bdedcb98d0fabb5c659eb9105e1b10306bbd3cbee58897c3a05ccda7d2f06fff"
442
+ "sha256": "75ef0d4be50021d59c15097ee33f467bb30f0862ad11fa5447cf7a9ede50e38a"
443
443
  }
444
444
  ]
445
445
  }
446
446
  },
447
447
  {
448
- "repositoryCliVersion": "0.1.393",
448
+ "repositoryCliVersion": "0.1.396",
449
449
  "manifest": {
450
450
  "schemaVersion": 1,
451
- "bundleVersion": "2.0.386",
451
+ "bundleVersion": "2.0.389",
452
452
  "stepContractVersion": 3,
453
453
  "contractHash": "d761e91d5ac6ff9e72c6d49c5bcd014270912473a66f99c49d726c65998085cf",
454
454
  "managedFiles": [
@@ -486,7 +486,7 @@
486
486
  },
487
487
  {
488
488
  "path": "docs/funnelsgrove/migrations/step-contract-v3.md",
489
- "sha256": "7ce50d62b61683fa35a54f61d0ce5b5add484676d6eea75704b24d5e0ffba678"
489
+ "sha256": "7ab93d7a8f249494fa0c2d7bae90ad9dd58e8f292cdf80662a824efe18cb682d"
490
490
  },
491
491
  {
492
492
  "path": "docs/funnelsgrove/qa/analytics.md",
@@ -586,16 +586,16 @@
586
586
  },
587
587
  {
588
588
  "path": "funnel-docs.config.json",
589
- "sha256": "b0d2b5fc0cfc06cfbb29f4845b520349cd09bfca5cad8aaa2da463adaf41a9ad"
589
+ "sha256": "e305826722a12102979fbd7dec46471875f09f8397cb97917109f090f505443f"
590
590
  }
591
591
  ]
592
592
  }
593
593
  },
594
594
  {
595
- "repositoryCliVersion": "0.1.392",
595
+ "repositoryCliVersion": "0.1.395",
596
596
  "manifest": {
597
597
  "schemaVersion": 1,
598
- "bundleVersion": "2.0.385",
598
+ "bundleVersion": "2.0.388",
599
599
  "stepContractVersion": 3,
600
600
  "contractHash": "d761e91d5ac6ff9e72c6d49c5bcd014270912473a66f99c49d726c65998085cf",
601
601
  "managedFiles": [
@@ -633,7 +633,7 @@
633
633
  },
634
634
  {
635
635
  "path": "docs/funnelsgrove/migrations/step-contract-v3.md",
636
- "sha256": "d5606e76d2e25344d0d67f2443772722ef85c1104416b58ed6433f7a5ce798ba"
636
+ "sha256": "d1eddcd89db6e20b6a054dbe8c43282fd9b0c4988e1e01f05c4a7c69081e1093"
637
637
  },
638
638
  {
639
639
  "path": "docs/funnelsgrove/qa/analytics.md",
@@ -733,16 +733,16 @@
733
733
  },
734
734
  {
735
735
  "path": "funnel-docs.config.json",
736
- "sha256": "dd341d481aff2f0fe7431b8747fb11325f8cfba1b9f1cc77659fbcc481f6c86f"
736
+ "sha256": "bef986565046d4615b543a21cbe7e0de64567ee3a777a385a0a7072b94c55b5d"
737
737
  }
738
738
  ]
739
739
  }
740
740
  },
741
741
  {
742
- "repositoryCliVersion": "0.1.391",
742
+ "repositoryCliVersion": "0.1.394",
743
743
  "manifest": {
744
744
  "schemaVersion": 1,
745
- "bundleVersion": "2.0.384",
745
+ "bundleVersion": "2.0.387",
746
746
  "stepContractVersion": 3,
747
747
  "contractHash": "d761e91d5ac6ff9e72c6d49c5bcd014270912473a66f99c49d726c65998085cf",
748
748
  "managedFiles": [
@@ -780,7 +780,7 @@
780
780
  },
781
781
  {
782
782
  "path": "docs/funnelsgrove/migrations/step-contract-v3.md",
783
- "sha256": "ecb816a88f07dc802885f0f0ac6120c48d56990af6ec55e71cf8907c581cde82"
783
+ "sha256": "831c1168ae9f1def454e495a92e19974ff8de7b54b8e6665f4f8d427ee1f0154"
784
784
  },
785
785
  {
786
786
  "path": "docs/funnelsgrove/qa/analytics.md",
@@ -880,16 +880,16 @@
880
880
  },
881
881
  {
882
882
  "path": "funnel-docs.config.json",
883
- "sha256": "f49123bec51ad0d6c17aaefc49c8f1b94958763ae52625360477de39ab9df091"
883
+ "sha256": "bdedcb98d0fabb5c659eb9105e1b10306bbd3cbee58897c3a05ccda7d2f06fff"
884
884
  }
885
885
  ]
886
886
  }
887
887
  },
888
888
  {
889
- "repositoryCliVersion": "0.1.390",
889
+ "repositoryCliVersion": "0.1.393",
890
890
  "manifest": {
891
891
  "schemaVersion": 1,
892
- "bundleVersion": "2.0.383",
892
+ "bundleVersion": "2.0.386",
893
893
  "stepContractVersion": 3,
894
894
  "contractHash": "d761e91d5ac6ff9e72c6d49c5bcd014270912473a66f99c49d726c65998085cf",
895
895
  "managedFiles": [
@@ -927,7 +927,7 @@
927
927
  },
928
928
  {
929
929
  "path": "docs/funnelsgrove/migrations/step-contract-v3.md",
930
- "sha256": "f48822c5e06a270bc43e7f3608a86ec2ad091267ffc672f45c52bf7d4cc6ae1f"
930
+ "sha256": "7ce50d62b61683fa35a54f61d0ce5b5add484676d6eea75704b24d5e0ffba678"
931
931
  },
932
932
  {
933
933
  "path": "docs/funnelsgrove/qa/analytics.md",
@@ -1027,7 +1027,7 @@
1027
1027
  },
1028
1028
  {
1029
1029
  "path": "funnel-docs.config.json",
1030
- "sha256": "7193d345b5cfce4343a0de55a6a4457941c2c9c0b1ad9e6c7ebcf0dd613ba275"
1030
+ "sha256": "b0d2b5fc0cfc06cfbb29f4845b520349cd09bfca5cad8aaa2da463adaf41a9ad"
1031
1031
  }
1032
1032
  ]
1033
1033
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@funnelsgrove/cli",
3
- "version": "0.1.396",
3
+ "version": "0.1.399",
4
4
  "description": "FunnelsGrove command-line tools for editing, syncing, and publishing funnels",
5
5
  "repository": {
6
6
  "type": "git",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "schemaVersion": 1,
3
- "bundleVersion": "2.0.389",
3
+ "bundleVersion": "2.0.392",
4
4
  "stepContractVersion": 3,
5
5
  "contractHash": "d761e91d5ac6ff9e72c6d49c5bcd014270912473a66f99c49d726c65998085cf",
6
6
  "managedFiles": [
@@ -38,7 +38,7 @@
38
38
  },
39
39
  {
40
40
  "path": "docs/funnelsgrove/migrations/step-contract-v3.md",
41
- "sha256": "7ab93d7a8f249494fa0c2d7bae90ad9dd58e8f292cdf80662a824efe18cb682d"
41
+ "sha256": "2ba365bb0f41d4dd541fb4fa3ea6566b00dd3fdcd57394d0ac195757284eef95"
42
42
  },
43
43
  {
44
44
  "path": "docs/funnelsgrove/qa/analytics.md",
@@ -138,7 +138,7 @@
138
138
  },
139
139
  {
140
140
  "path": "funnel-docs.config.json",
141
- "sha256": "e305826722a12102979fbd7dec46471875f09f8397cb97917109f090f505443f"
141
+ "sha256": "8c7e10447b684b8a568d722dbfdb095a6c608fd1ed22910a52faf63a502a25d5"
142
142
  }
143
143
  ]
144
144
  }
@@ -17,7 +17,7 @@ Supported read versions: `1`, `2`, `3`. Authoring and publish target version `3`
17
17
 
18
18
  ### Package release order
19
19
 
20
- Release `@funnelsgrove/sdk` `0.5.0` first, then `@funnelsgrove/runtime` `0.49.0`, then `@funnelsgrove/analytics` `0.32.0`, then `@funnelsgrove/payments` `0.79.0`. The production deploy verifies the zero-traffic API candidate, publishes and verifies `@funnelsgrove/cli` `0.1.396`, and only then promotes the candidate to production traffic. The serving API must never advertise an unpublished preferred CLI. Publishing packages and deploying production remain separately approved operational actions.
20
+ Release `@funnelsgrove/sdk` `0.5.0` first, then `@funnelsgrove/runtime` `0.49.0`, then `@funnelsgrove/analytics` `0.32.0`, then `@funnelsgrove/payments` `0.80.0`. The production deploy verifies the zero-traffic API candidate, publishes and verifies `@funnelsgrove/cli` `0.1.399`, and only then promotes the candidate to production traffic. The serving API must never advertise an unpublished preferred CLI. Publishing packages and deploying production remain separately approved operational actions.
21
21
  <!-- funnelsgrove:generated:end contract-v3/migration/step-contract-v3 -->
22
22
 
23
23
  ## Version-last policy
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "schemaVersion": 1,
3
- "bundleVersion": "2.0.389",
3
+ "bundleVersion": "2.0.392",
4
4
  "contractSource": "funnelsgrove-repository://apps/funnel-runtime/contracts/step-contract-v2.json",
5
5
  "fullyGenerated": [
6
6
  ".funnelsgrove-docs.json",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "schemaVersion": 1,
3
- "bundleVersion": "2.0.389",
3
+ "bundleVersion": "2.0.392",
4
4
  "stepContractVersion": 3,
5
5
  "contractHash": "d761e91d5ac6ff9e72c6d49c5bcd014270912473a66f99c49d726c65998085cf",
6
6
  "managedFiles": [
@@ -38,7 +38,7 @@
38
38
  },
39
39
  {
40
40
  "path": "docs/funnelsgrove/migrations/step-contract-v3.md",
41
- "sha256": "7ab93d7a8f249494fa0c2d7bae90ad9dd58e8f292cdf80662a824efe18cb682d"
41
+ "sha256": "2ba365bb0f41d4dd541fb4fa3ea6566b00dd3fdcd57394d0ac195757284eef95"
42
42
  },
43
43
  {
44
44
  "path": "docs/funnelsgrove/qa/analytics.md",
@@ -138,7 +138,7 @@
138
138
  },
139
139
  {
140
140
  "path": "funnel-docs.config.json",
141
- "sha256": "e305826722a12102979fbd7dec46471875f09f8397cb97917109f090f505443f"
141
+ "sha256": "8c7e10447b684b8a568d722dbfdb095a6c608fd1ed22910a52faf63a502a25d5"
142
142
  }
143
143
  ]
144
144
  }
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "schemaVersion": 1,
3
- "sourceTreeHash": "b59a8a4fa4aaedc40b7d24ee8255e7cf42450379a25c24614725ed5deb83a7ec",
3
+ "sourceTreeHash": "feab93332264dfc4165876f17389b7575a19f7967bac5e5be65941e09662fa0d",
4
4
  "stepContractVersion": 3,
5
- "docsBundleVersion": "2.0.389",
5
+ "docsBundleVersion": "2.0.392",
6
6
  "files": [
7
7
  {
8
8
  "path": ".env.example",
@@ -16,7 +16,7 @@
16
16
  },
17
17
  {
18
18
  "path": ".funnelsgrove-docs.json",
19
- "sha256": "047200d9e2fac51b23297bd303d9d6e73a3c810c8e5954f31f3636158e698299",
19
+ "sha256": "d79fec258ae11c5b2cfee17934827d109e0ff7599adc938410948c66d52ab3b4",
20
20
  "mode": "100644"
21
21
  },
22
22
  {
@@ -76,7 +76,7 @@
76
76
  },
77
77
  {
78
78
  "path": "docs/funnelsgrove/migrations/step-contract-v3.md",
79
- "sha256": "7ab93d7a8f249494fa0c2d7bae90ad9dd58e8f292cdf80662a824efe18cb682d",
79
+ "sha256": "2ba365bb0f41d4dd541fb4fa3ea6566b00dd3fdcd57394d0ac195757284eef95",
80
80
  "mode": "100644"
81
81
  },
82
82
  {
@@ -206,7 +206,7 @@
206
206
  },
207
207
  {
208
208
  "path": "funnel-docs.config.json",
209
- "sha256": "e305826722a12102979fbd7dec46471875f09f8397cb97917109f090f505443f",
209
+ "sha256": "8c7e10447b684b8a568d722dbfdb095a6c608fd1ed22910a52faf63a502a25d5",
210
210
  "mode": "100644"
211
211
  },
212
212
  {
@@ -216,7 +216,7 @@
216
216
  },
217
217
  {
218
218
  "path": "funnel.runtime-capabilities.json",
219
- "sha256": "50024a9d997506468094a938db5b34ed8d4c6d27e44de76b3417363c51b2c042",
219
+ "sha256": "190b64b86782bb5e9cfed0ef66688ef14310182f8a8a64e58bc08aef76f19bf8",
220
220
  "mode": "100644"
221
221
  },
222
222
  {
@@ -531,7 +531,7 @@
531
531
  },
532
532
  {
533
533
  "path": "src/steps/step-32-paywall.tsx",
534
- "sha256": "fc7b4eeddc91a832ced8e4d73e8e30a024b2cb51a6b9d80b8c3cad5f0ab05712",
534
+ "sha256": "234af980716f9092ccf1557ca04ad2ec53c35f7b1fbde67329b4e562f552ab5b",
535
535
  "mode": "100644"
536
536
  },
537
537
  {
@@ -17,7 +17,7 @@ Supported read versions: `1`, `2`, `3`. Authoring and publish target version `3`
17
17
 
18
18
  ### Package release order
19
19
 
20
- Release `@funnelsgrove/sdk` `0.5.0` first, then `@funnelsgrove/runtime` `0.49.0`, then `@funnelsgrove/analytics` `0.32.0`, then `@funnelsgrove/payments` `0.79.0`. The production deploy verifies the zero-traffic API candidate, publishes and verifies `@funnelsgrove/cli` `0.1.396`, and only then promotes the candidate to production traffic. The serving API must never advertise an unpublished preferred CLI. Publishing packages and deploying production remain separately approved operational actions.
20
+ Release `@funnelsgrove/sdk` `0.5.0` first, then `@funnelsgrove/runtime` `0.49.0`, then `@funnelsgrove/analytics` `0.32.0`, then `@funnelsgrove/payments` `0.80.0`. The production deploy verifies the zero-traffic API candidate, publishes and verifies `@funnelsgrove/cli` `0.1.399`, and only then promotes the candidate to production traffic. The serving API must never advertise an unpublished preferred CLI. Publishing packages and deploying production remain separately approved operational actions.
21
21
  <!-- funnelsgrove:generated:end contract-v3/migration/step-contract-v3 -->
22
22
 
23
23
  ## Version-last policy
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "schemaVersion": 1,
3
- "bundleVersion": "2.0.389",
3
+ "bundleVersion": "2.0.392",
4
4
  "contractSource": "funnelsgrove-repository://apps/funnel-runtime/contracts/step-contract-v2.json",
5
5
  "fullyGenerated": [
6
6
  ".funnelsgrove-docs.json",
@@ -1,5 +1,6 @@
1
1
  {
2
2
  "moneyContractVersion": 1,
3
3
  "localeContractVersion": 1,
4
- "paypalCheckoutVersion": 1
4
+ "paypalCheckoutVersion": 1,
5
+ "paddleCheckoutVersion": 1
5
6
  }
@@ -36,6 +36,9 @@ import {
36
36
  PayPalCheckout,
37
37
  PayPalCheckoutDialog,
38
38
  readPendingPayPalCheckout,
39
+ PaddleCheckout,
40
+ PaddleCheckoutDialog,
41
+ readPendingPaddleCheckout,
39
42
  SharedStripeCheckoutV2Dialog,
40
43
  StripeSubscriptionWalletSurface,
41
44
  activateSecondPaywallDiscount,
@@ -182,7 +185,7 @@ function StepPaywallRuntime({
182
185
  activeBillingRuntime.sourceVersionId,
183
186
  ]);
184
187
  const activeBillingDiscounts = useMemo(
185
- () => activeBillingRuntime.provider === 'paypal' ? inactiveBillingDiscounts : activeBillingRuntime.discounts ?? (
188
+ () => activeBillingRuntime.provider === 'paypal' || activeBillingRuntime.provider === 'paddle' ? inactiveBillingDiscounts : activeBillingRuntime.discounts ?? (
186
189
  activeBillingRuntime.provider === 'stripe'
187
190
  ? buildBillingDiscountCatalog(billingDiscountList)
188
191
  : inactiveBillingDiscounts
@@ -225,11 +228,17 @@ function StepPaywallRuntime({
225
228
  );
226
229
  const pendingPayPal = readPendingPayPalCheckout({ environment: checkoutMode, funnelEndUserId: user.id, runtimeConfig: activeCheckoutRuntimeConfig });
227
230
  const hasPendingPayPal = Boolean(pendingPayPal);
228
- const selectedPlanId = pendingPayPal
229
- ? availablePlans.find(plan => plan.funnelPlanKey === pendingPayPal.funnelPlanKey)?.id ?? null
231
+ // A paid Paddle checkout awaiting server confirmation keeps its plan, like a pending PayPal approval.
232
+ const pendingPaddle = readPendingPaddleCheckout({ environment: checkoutMode, funnelEndUserId: user.id, runtimeConfig: activeCheckoutRuntimeConfig });
233
+ const hasPendingPaddle = Boolean(pendingPaddle);
234
+ const pendingPlanKey = pendingPayPal?.funnelPlanKey || pendingPaddle?.funnelPlanKey;
235
+ const selectedPlanId = pendingPlanKey
236
+ ? availablePlans.find(plan => plan.funnelPlanKey === pendingPlanKey)?.id ?? null
230
237
  : requestedPlanId;
231
- const [checkoutDialogOpen, setCheckoutDialogOpen] = useState(Boolean(pendingPayPal));
238
+ const [checkoutDialogOpen, setCheckoutDialogOpen] = useState(Boolean(pendingPlanKey));
232
239
  const [paypalPending, setPayPalPending] = useState(false);
240
+ const [paddlePending, setPaddlePending] = useState(false);
241
+ const nativeCheckoutPending = hasPendingPayPal || paypalPending || hasPendingPaddle || paddlePending;
233
242
  const [solidgateAttemptKey, setSolidgateAttemptKey] = useState<string | null>(null);
234
243
  const [specialOfferDialogOpen, setSpecialOfferDialogOpen] = useState(() => {
235
244
  if (typeof window === 'undefined') {
@@ -297,6 +306,8 @@ function StepPaywallRuntime({
297
306
  selectedDisplayPlan?.checkoutSummaryLabel?.trim() || selectedDisplayPlan?.title || content.selectedPlanLabel;
298
307
  const checkoutProvider = activeBillingRuntime.provider;
299
308
  const paypalOption = pendingPayPal?.option || (selectedPlan?.funnelPlanKey ? activeBillingRuntime.paypalOptionsByPlanKey?.[selectedPlan.funnelPlanKey] : null);
309
+ // Paddle is the only checkout of a Paddle-owned Offer Set, never an alternative next to Stripe.
310
+ const paddleOption = pendingPaddle?.option || (checkoutProvider === 'paddle' && selectedPlan?.funnelPlanKey ? activeBillingRuntime.paddleOptionsByPlanKey?.[selectedPlan.funnelPlanKey] : null);
300
311
  const storyOptions = useMemo<readonly StoryOption[]>(
301
312
  () =>
302
313
  content.stories.items.map((item, index) => ({
@@ -493,10 +504,11 @@ function StepPaywallRuntime({
493
504
  && activeBillingRuntime.offerSetId.trim()
494
505
  && selectedPlan?.funnelPlanKey?.trim(),
495
506
  );
496
- const checkoutDisabled = Boolean(pendingPayPal) || paypalPending || !checkoutSelectionReady || !userBootstrapped || !selectedPlan || !selectedDisplayPlan || (
507
+ const checkoutDisabled = nativeCheckoutPending || !checkoutSelectionReady || !userBootstrapped || !selectedPlan || !selectedDisplayPlan || (
497
508
  checkoutProvider === 'solidgate'
498
509
  ? !solidgateCheckoutConfigured
499
- : checkoutProvider === 'paypal' ? !paypalOption : !checkoutSession.configured
510
+ : checkoutProvider === 'paypal' ? !paypalOption
511
+ : checkoutProvider === 'paddle' ? !paddleOption : !checkoutSession.configured
500
512
  );
501
513
  const checkoutDialogReady =
502
514
  checkoutProvider === 'stripe' &&
@@ -554,10 +566,10 @@ function StepPaywallRuntime({
554
566
  }, [user.email]);
555
567
 
556
568
  useEffect(() => {
557
- setCheckoutDialogOpen(hasPendingPayPal);
569
+ setCheckoutDialogOpen(hasPendingPayPal || hasPendingPaddle);
558
570
  setSolidgateAttemptKey(null);
559
571
  setError(null);
560
- }, [selectedPlanId, hasPendingPayPal]);
572
+ }, [selectedPlanId, hasPendingPayPal, hasPendingPaddle]);
561
573
 
562
574
  useEffect(() => {
563
575
  if (
@@ -648,7 +660,7 @@ function StepPaywallRuntime({
648
660
  paywallWalletMethodWrapperClassNames[method];
649
661
 
650
662
  const startCheckout = async () => {
651
- if (pendingPayPal || paypalPending) { setCheckoutDialogOpen(true); return; }
663
+ if (nativeCheckoutPending) { setCheckoutDialogOpen(true); return; }
652
664
  if (checkoutDisabled) {
653
665
  return;
654
666
  }
@@ -660,6 +672,13 @@ function StepPaywallRuntime({
660
672
 
661
673
  if (checkoutProvider === 'paypal') { setCheckoutDialogOpen(true); return; }
662
674
 
675
+ if (checkoutProvider === 'paddle') {
676
+ // Mounting the checkout prepares the attempt, so the published snapshot is pinned first.
677
+ billingSelection.pin();
678
+ setCheckoutDialogOpen(true);
679
+ return;
680
+ }
681
+
663
682
  if (checkoutProvider === 'solidgate') {
664
683
  setSolidgateAttemptKey(crypto.randomUUID());
665
684
  setCheckoutDialogOpen(true);
@@ -702,7 +721,7 @@ function StepPaywallRuntime({
702
721
  };
703
722
 
704
723
  const openCardCheckoutFromUnavailableWallet = async () => {
705
- if (pendingPayPal || paypalPending) { setCheckoutDialogOpen(true); return; }
724
+ if (nativeCheckoutPending) { setCheckoutDialogOpen(true); return; }
706
725
  if (checkoutDisabled) {
707
726
  return;
708
727
  }
@@ -794,6 +813,31 @@ function StepPaywallRuntime({
794
813
  />
795
814
  ) : undefined;
796
815
 
816
+ const closePaddleCheckout = () => {
817
+ if (!paddlePending && !pendingPaddle) billingSelection.reset();
818
+ setCheckoutDialogOpen(false);
819
+ };
820
+
821
+ const paddleCheckout = (checkoutSelectionReady || pendingPaddle) && userBootstrapped && paddleOption && (selectedPlan?.funnelPlanKey || pendingPaddle) ? (
822
+ <PaddleCheckout
823
+ key={`${paddleOption.paymentProfileId}:${paddleOption.providerPlanId}:${checkoutMode}:${pendingPaddle?.funnelPlanKey || selectedPlan?.funnelPlanKey}`}
824
+ option={paddleOption}
825
+ environment={checkoutMode}
826
+ funnelEndUserId={user.id}
827
+ offerSetId={pendingPaddle?.offerSetId || activeBillingRuntime.offerSetId}
828
+ funnelPlanKey={pendingPaddle?.funnelPlanKey || selectedPlan?.funnelPlanKey || ''}
829
+ checkoutType={selectedPlan && !selectedPlan.billingInterval ? 'one_time' : 'subscription'}
830
+ runtimeConfig={activeCheckoutRuntimeConfig}
831
+ customerEmail={checkoutEmail || user.email}
832
+ onPendingChange={setPaddlePending}
833
+ onClose={closePaddleCheckout}
834
+ onSuccess={() => {
835
+ completeStep(analyticsStepId, { planId: selectedDisplayPlan?.id ?? pendingPaddle?.funnelPlanKey });
836
+ goNext();
837
+ }}
838
+ />
839
+ ) : undefined;
840
+
797
841
  const closeCheckoutDialog = () => {
798
842
  if (checkoutProvider === 'stripe') checkoutSession.reset();
799
843
  else billingSelection.reset();
@@ -948,6 +992,11 @@ function StepPaywallRuntime({
948
992
  onClose={() => setCheckoutDialogOpen(false)}>{paypalCheckout}</PayPalCheckoutDialog>
949
993
  ) : null}
950
994
 
995
+ {checkoutDialogOpen && paddleCheckout ? (
996
+ <PaddleCheckoutDialog title={content.checkout.title} closeAriaLabel={content.checkout.closeAriaLabel}
997
+ onClose={closePaddleCheckout}>{paddleCheckout}</PaddleCheckoutDialog>
998
+ ) : null}
999
+
951
1000
  {checkoutDialogOpen &&
952
1001
  checkoutProvider === 'stripe' &&
953
1002
  checkoutSession.activeClientSecret &&
@@ -1005,7 +1054,7 @@ function StepPaywallRuntime({
1005
1054
  />
1006
1055
  ) : null}
1007
1056
 
1008
- {specialOfferDialogOpen ? (
1057
+ {specialOfferDialogOpen && checkoutProvider !== 'paddle' ? (
1009
1058
  <SharedCheckoutSpecialOfferDialog
1010
1059
  buttonColor='var(--color-secondary-text)'
1011
1060
  buttonLabel={content.checkout.specialOffer.buttonLabel}
@@ -1147,7 +1196,7 @@ function StepPaywallRuntime({
1147
1196
  ]
1148
1197
  .filter(Boolean)
1149
1198
  .join(' ')}
1150
- disabled={paypalPending || Boolean(pendingPayPal)}
1199
+ disabled={nativeCheckoutPending}
1151
1200
  onClick={() => setSelectedPlanId(plan.id)}
1152
1201
  >
1153
1202
  {plan.featuredTag ? <span className='paywall-v2-plan-tag'>{plan.featuredTag}</span> : null}
@@ -1218,11 +1267,11 @@ function StepPaywallRuntime({
1218
1267
  type='button'
1219
1268
  className='paywall-v2-card-button paywall-v2-vibe-cta'
1220
1269
  onClick={() => void startCheckout()}
1221
- disabled={checkoutDisabled && !pendingPayPal && !paypalPending}
1270
+ disabled={checkoutDisabled && !nativeCheckoutPending}
1222
1271
  >
1223
1272
  {content.plans.cardButtonLabel}
1224
1273
  </button>
1225
- {checkoutProvider !== 'paypal' && !pendingPayPal ? (
1274
+ {checkoutProvider !== 'paypal' && checkoutProvider !== 'paddle' && !pendingPayPal && !pendingPaddle ? (
1226
1275
  <div aria-label='Card and wallet billing terms'>
1227
1276
  {paypalOption ? <p className='paywall-v2-alt-meta'>Card and wallet terms</p> : null}
1228
1277
  <PaywallRenewalDisclaimer plan={selectedPlan} hasActiveDiscount={Boolean(activeCouponId)} copy={content.checkout} catalogLabels={content.catalogLabels} />