@funnelsgrove/cli 0.1.280 → 0.1.282
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/funnel-contract-compatibility.json +34 -34
- package/package.json +4 -4
- package/template_docs/.funnelsgrove-docs.json +3 -3
- package/template_docs/docs/funnelsgrove/migrations/step-contract-v3.md +1 -1
- package/template_docs/funnel-docs.config.json +1 -1
- package/template_scaffold/.funnelsgrove-docs.json +3 -3
- package/template_scaffold/.funnelsgrove-scaffold.json +9 -9
- package/template_scaffold/docs/funnelsgrove/migrations/step-contract-v3.md +1 -1
- package/template_scaffold/funnel-docs.config.json +1 -1
- package/template_scaffold/funnel.runtime-capabilities.json +2 -1
- package/template_scaffold/package-lock.json +15 -15
- package/template_scaffold/package.json +3 -3
- package/template_scaffold/src/steps/step-32-paywall.tsx +59 -11
|
@@ -4,10 +4,10 @@
|
|
|
4
4
|
"minimumCliVersion": "0.1.20",
|
|
5
5
|
"entries": [
|
|
6
6
|
{
|
|
7
|
-
"repositoryCliVersion": "0.1.
|
|
7
|
+
"repositoryCliVersion": "0.1.282",
|
|
8
8
|
"manifest": {
|
|
9
9
|
"schemaVersion": 1,
|
|
10
|
-
"bundleVersion": "2.0.
|
|
10
|
+
"bundleVersion": "2.0.275",
|
|
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": "
|
|
48
|
+
"sha256": "291485278a2071a4e73422412e8f81e6ef64bc8b5aa3837b5a9e6dec54501607"
|
|
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": "
|
|
148
|
+
"sha256": "b1ed6276f1565a432a9f48036669b15ed4edfb7c955bf74b312a2b5502f128eb"
|
|
149
149
|
}
|
|
150
150
|
]
|
|
151
151
|
}
|
|
152
152
|
},
|
|
153
153
|
{
|
|
154
|
-
"repositoryCliVersion": "0.1.
|
|
154
|
+
"repositoryCliVersion": "0.1.281",
|
|
155
155
|
"manifest": {
|
|
156
156
|
"schemaVersion": 1,
|
|
157
|
-
"bundleVersion": "2.0.
|
|
157
|
+
"bundleVersion": "2.0.274",
|
|
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": "
|
|
195
|
+
"sha256": "3d6d1dc040dc64ba2b0d99d568d161efb621ddfc8e03b79e5fea72eb407cc086"
|
|
196
196
|
},
|
|
197
197
|
{
|
|
198
198
|
"path": "docs/funnelsgrove/qa/analytics.md",
|
|
@@ -292,22 +292,22 @@
|
|
|
292
292
|
},
|
|
293
293
|
{
|
|
294
294
|
"path": "funnel-docs.config.json",
|
|
295
|
-
"sha256": "
|
|
295
|
+
"sha256": "9f2c2f20da1c0e9cc714a563041e01a3bd80d416a3965be6237c6036a6ab1f4d"
|
|
296
296
|
}
|
|
297
297
|
]
|
|
298
298
|
}
|
|
299
299
|
},
|
|
300
300
|
{
|
|
301
|
-
"repositoryCliVersion": "0.1.
|
|
301
|
+
"repositoryCliVersion": "0.1.280",
|
|
302
302
|
"manifest": {
|
|
303
303
|
"schemaVersion": 1,
|
|
304
|
-
"bundleVersion": "2.0.
|
|
304
|
+
"bundleVersion": "2.0.273",
|
|
305
305
|
"stepContractVersion": 3,
|
|
306
306
|
"contractHash": "d761e91d5ac6ff9e72c6d49c5bcd014270912473a66f99c49d726c65998085cf",
|
|
307
307
|
"managedFiles": [
|
|
308
308
|
{
|
|
309
309
|
"path": "AGENTS.md",
|
|
310
|
-
"sha256": "
|
|
310
|
+
"sha256": "b7dc496d1dcfea176fb5a57e6d17f64abdcff77afeccfcecbbe1790d11da7386"
|
|
311
311
|
},
|
|
312
312
|
{
|
|
313
313
|
"path": "CLAUDE.md",
|
|
@@ -315,7 +315,7 @@
|
|
|
315
315
|
},
|
|
316
316
|
{
|
|
317
317
|
"path": "docs/funnelsgrove/START-HERE.md",
|
|
318
|
-
"sha256": "
|
|
318
|
+
"sha256": "5442274f8ca7ddded834147a693677e203a9c223e1db4260e56bf498ec06a362"
|
|
319
319
|
},
|
|
320
320
|
{
|
|
321
321
|
"path": "docs/funnelsgrove/contracts/analytics-events.md",
|
|
@@ -323,7 +323,7 @@
|
|
|
323
323
|
},
|
|
324
324
|
{
|
|
325
325
|
"path": "docs/funnelsgrove/contracts/content-answers.md",
|
|
326
|
-
"sha256": "
|
|
326
|
+
"sha256": "efd912eb405e4c64b33becb1cf9a397ba5fe9afc2d4e2aea115a0f5e0703ca87"
|
|
327
327
|
},
|
|
328
328
|
{
|
|
329
329
|
"path": "docs/funnelsgrove/contracts/flow-routing.md",
|
|
@@ -339,7 +339,7 @@
|
|
|
339
339
|
},
|
|
340
340
|
{
|
|
341
341
|
"path": "docs/funnelsgrove/migrations/step-contract-v3.md",
|
|
342
|
-
"sha256": "
|
|
342
|
+
"sha256": "0d5fc0fbb91286906cdfe5edd317ce970cd20b9210cea694d6b5ed630b2f8a3e"
|
|
343
343
|
},
|
|
344
344
|
{
|
|
345
345
|
"path": "docs/funnelsgrove/qa/analytics.md",
|
|
@@ -439,22 +439,22 @@
|
|
|
439
439
|
},
|
|
440
440
|
{
|
|
441
441
|
"path": "funnel-docs.config.json",
|
|
442
|
-
"sha256": "
|
|
442
|
+
"sha256": "ca45c7be882af24d09999ab0ee7130645f9bfe4fb56addd2f7966bb31807e610"
|
|
443
443
|
}
|
|
444
444
|
]
|
|
445
445
|
}
|
|
446
446
|
},
|
|
447
447
|
{
|
|
448
|
-
"repositoryCliVersion": "0.1.
|
|
448
|
+
"repositoryCliVersion": "0.1.279",
|
|
449
449
|
"manifest": {
|
|
450
450
|
"schemaVersion": 1,
|
|
451
|
-
"bundleVersion": "2.0.
|
|
451
|
+
"bundleVersion": "2.0.272",
|
|
452
452
|
"stepContractVersion": 3,
|
|
453
453
|
"contractHash": "d761e91d5ac6ff9e72c6d49c5bcd014270912473a66f99c49d726c65998085cf",
|
|
454
454
|
"managedFiles": [
|
|
455
455
|
{
|
|
456
456
|
"path": "AGENTS.md",
|
|
457
|
-
"sha256": "
|
|
457
|
+
"sha256": "b7dc496d1dcfea176fb5a57e6d17f64abdcff77afeccfcecbbe1790d11da7386"
|
|
458
458
|
},
|
|
459
459
|
{
|
|
460
460
|
"path": "CLAUDE.md",
|
|
@@ -462,7 +462,7 @@
|
|
|
462
462
|
},
|
|
463
463
|
{
|
|
464
464
|
"path": "docs/funnelsgrove/START-HERE.md",
|
|
465
|
-
"sha256": "
|
|
465
|
+
"sha256": "5442274f8ca7ddded834147a693677e203a9c223e1db4260e56bf498ec06a362"
|
|
466
466
|
},
|
|
467
467
|
{
|
|
468
468
|
"path": "docs/funnelsgrove/contracts/analytics-events.md",
|
|
@@ -470,7 +470,7 @@
|
|
|
470
470
|
},
|
|
471
471
|
{
|
|
472
472
|
"path": "docs/funnelsgrove/contracts/content-answers.md",
|
|
473
|
-
"sha256": "
|
|
473
|
+
"sha256": "efd912eb405e4c64b33becb1cf9a397ba5fe9afc2d4e2aea115a0f5e0703ca87"
|
|
474
474
|
},
|
|
475
475
|
{
|
|
476
476
|
"path": "docs/funnelsgrove/contracts/flow-routing.md",
|
|
@@ -486,7 +486,7 @@
|
|
|
486
486
|
},
|
|
487
487
|
{
|
|
488
488
|
"path": "docs/funnelsgrove/migrations/step-contract-v3.md",
|
|
489
|
-
"sha256": "
|
|
489
|
+
"sha256": "038a83e26aa4d24ad4ad6ec78a548cc7a2f2bc84d67adde6e9cc03bc11795a09"
|
|
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": "
|
|
589
|
+
"sha256": "3eacc262001aadac7bdc68e58d69fa8a102ef919cbdd09178f5be90812468747"
|
|
590
590
|
}
|
|
591
591
|
]
|
|
592
592
|
}
|
|
593
593
|
},
|
|
594
594
|
{
|
|
595
|
-
"repositoryCliVersion": "0.1.
|
|
595
|
+
"repositoryCliVersion": "0.1.278",
|
|
596
596
|
"manifest": {
|
|
597
597
|
"schemaVersion": 1,
|
|
598
|
-
"bundleVersion": "2.0.
|
|
598
|
+
"bundleVersion": "2.0.271",
|
|
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": "
|
|
636
|
+
"sha256": "012ef8788fdb0b5f7b8acc283ee9d0c3c9e23f68d944327ed8c2d9378de94585"
|
|
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": "
|
|
736
|
+
"sha256": "580a792c8650972c8016c0052bec88f7a5331445a8a039bb35912c2da4c645a0"
|
|
737
737
|
}
|
|
738
738
|
]
|
|
739
739
|
}
|
|
740
740
|
},
|
|
741
741
|
{
|
|
742
|
-
"repositoryCliVersion": "0.1.
|
|
742
|
+
"repositoryCliVersion": "0.1.277",
|
|
743
743
|
"manifest": {
|
|
744
744
|
"schemaVersion": 1,
|
|
745
|
-
"bundleVersion": "2.0.
|
|
745
|
+
"bundleVersion": "2.0.270",
|
|
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": "
|
|
783
|
+
"sha256": "b15776c8ec0ecbc1f9369ccd56daee4160c533f7b34285cd1c5013db38fd411f"
|
|
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": "
|
|
883
|
+
"sha256": "bdc9354312747f58fa96e201ec2b69b289dfbb21452f33866b3b7d2628490cd6"
|
|
884
884
|
}
|
|
885
885
|
]
|
|
886
886
|
}
|
|
887
887
|
},
|
|
888
888
|
{
|
|
889
|
-
"repositoryCliVersion": "0.1.
|
|
889
|
+
"repositoryCliVersion": "0.1.276",
|
|
890
890
|
"manifest": {
|
|
891
891
|
"schemaVersion": 1,
|
|
892
|
-
"bundleVersion": "2.0.
|
|
892
|
+
"bundleVersion": "2.0.269",
|
|
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": "
|
|
930
|
+
"sha256": "fbff72ea55bddc1e2e58a66bfbf15677574868bfed25538507d169fd820f0202"
|
|
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": "
|
|
1030
|
+
"sha256": "2415311f4118e042c33855343708800e74c9f2433443f61ec4a44325f9a4dbc2"
|
|
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.
|
|
3
|
+
"version": "0.1.282",
|
|
4
4
|
"description": "FunnelsGrove command-line tools for editing, syncing, and publishing funnels",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -34,14 +34,14 @@
|
|
|
34
34
|
"test": "vitest run"
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@funnelsgrove/runtime": "0.
|
|
37
|
+
"@funnelsgrove/runtime": "0.30.0",
|
|
38
38
|
"commander": "^12.0.0",
|
|
39
39
|
"ignore": "^7.0.8",
|
|
40
40
|
"typescript": "^5.8.3"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
|
-
"@funnelsgrove/analytics": "0.
|
|
44
|
-
"@funnelsgrove/payments": "0.
|
|
43
|
+
"@funnelsgrove/analytics": "0.12.0",
|
|
44
|
+
"@funnelsgrove/payments": "0.37.0",
|
|
45
45
|
"vitest": "^3.0.0"
|
|
46
46
|
}
|
|
47
47
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schemaVersion": 1,
|
|
3
|
-
"bundleVersion": "2.0.
|
|
3
|
+
"bundleVersion": "2.0.275",
|
|
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": "
|
|
41
|
+
"sha256": "291485278a2071a4e73422412e8f81e6ef64bc8b5aa3837b5a9e6dec54501607"
|
|
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": "
|
|
141
|
+
"sha256": "b1ed6276f1565a432a9f48036669b15ed4edfb7c955bf74b312a2b5502f128eb"
|
|
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.4.0` first, then `@funnelsgrove/runtime` `0.30.0`, then `@funnelsgrove/analytics` `0.12.0`, then `@funnelsgrove/payments` `0.37.0`. The production deploy verifies the zero-traffic API candidate, publishes and verifies `@funnelsgrove/cli` `0.1.
|
|
20
|
+
Release `@funnelsgrove/sdk` `0.4.0` first, then `@funnelsgrove/runtime` `0.30.0`, then `@funnelsgrove/analytics` `0.12.0`, then `@funnelsgrove/payments` `0.37.0`. The production deploy verifies the zero-traffic API candidate, publishes and verifies `@funnelsgrove/cli` `0.1.282`, 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.
|
|
3
|
+
"bundleVersion": "2.0.275",
|
|
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": "
|
|
41
|
+
"sha256": "291485278a2071a4e73422412e8f81e6ef64bc8b5aa3837b5a9e6dec54501607"
|
|
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": "
|
|
141
|
+
"sha256": "b1ed6276f1565a432a9f48036669b15ed4edfb7c955bf74b312a2b5502f128eb"
|
|
142
142
|
}
|
|
143
143
|
]
|
|
144
144
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schemaVersion": 1,
|
|
3
|
-
"sourceTreeHash": "
|
|
3
|
+
"sourceTreeHash": "b695f9d05e91e191e2053228b64bfc7b4d2c1e23b366b4fc9fa5a684ffcbf4a3",
|
|
4
4
|
"stepContractVersion": 3,
|
|
5
|
-
"docsBundleVersion": "2.0.
|
|
5
|
+
"docsBundleVersion": "2.0.275",
|
|
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": "
|
|
19
|
+
"sha256": "3a05839c27f66c2733c0a43d3b9d84ef202ec0c6a6b1dbe7815e69dd02abdcbc",
|
|
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": "
|
|
79
|
+
"sha256": "291485278a2071a4e73422412e8f81e6ef64bc8b5aa3837b5a9e6dec54501607",
|
|
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": "
|
|
209
|
+
"sha256": "b1ed6276f1565a432a9f48036669b15ed4edfb7c955bf74b312a2b5502f128eb",
|
|
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": "
|
|
219
|
+
"sha256": "50024a9d997506468094a938db5b34ed8d4c6d27e44de76b3417363c51b2c042",
|
|
220
220
|
"mode": "100644"
|
|
221
221
|
},
|
|
222
222
|
{
|
|
@@ -236,12 +236,12 @@
|
|
|
236
236
|
},
|
|
237
237
|
{
|
|
238
238
|
"path": "package-lock.json",
|
|
239
|
-
"sha256": "
|
|
239
|
+
"sha256": "5d7d31d0f2fde5fdfed166440191ab8891d13460e01c56afa0c8362f35cab7c8",
|
|
240
240
|
"mode": "100644"
|
|
241
241
|
},
|
|
242
242
|
{
|
|
243
243
|
"path": "package.json",
|
|
244
|
-
"sha256": "
|
|
244
|
+
"sha256": "f6e66b75994b00ec61a0a9f48825c4c2197d0c0177504397f6faf88fc1a9eb95",
|
|
245
245
|
"mode": "100644"
|
|
246
246
|
},
|
|
247
247
|
{
|
|
@@ -551,7 +551,7 @@
|
|
|
551
551
|
},
|
|
552
552
|
{
|
|
553
553
|
"path": "src/steps/step-32-paywall.tsx",
|
|
554
|
-
"sha256": "
|
|
554
|
+
"sha256": "8a2903926e6476eef4901b240f7b6d054eb782292d72e84b1a11dcda65b200c4",
|
|
555
555
|
"mode": "100644"
|
|
556
556
|
},
|
|
557
557
|
{
|
|
@@ -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.4.0` first, then `@funnelsgrove/runtime` `0.30.0`, then `@funnelsgrove/analytics` `0.12.0`, then `@funnelsgrove/payments` `0.37.0`. The production deploy verifies the zero-traffic API candidate, publishes and verifies `@funnelsgrove/cli` `0.1.
|
|
20
|
+
Release `@funnelsgrove/sdk` `0.4.0` first, then `@funnelsgrove/runtime` `0.30.0`, then `@funnelsgrove/analytics` `0.12.0`, then `@funnelsgrove/payments` `0.37.0`. The production deploy verifies the zero-traffic API candidate, publishes and verifies `@funnelsgrove/cli` `0.1.282`, 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
|
|
@@ -8,9 +8,9 @@
|
|
|
8
8
|
"name": "funnel-template",
|
|
9
9
|
"version": "0.1.0",
|
|
10
10
|
"dependencies": {
|
|
11
|
-
"@funnelsgrove/analytics": "^0.
|
|
12
|
-
"@funnelsgrove/payments": "^0.
|
|
13
|
-
"@funnelsgrove/runtime": "^0.
|
|
11
|
+
"@funnelsgrove/analytics": "^0.12.0",
|
|
12
|
+
"@funnelsgrove/payments": "^0.37.0",
|
|
13
|
+
"@funnelsgrove/runtime": "^0.30.0",
|
|
14
14
|
"@stripe/react-stripe-js": "^5.6.0",
|
|
15
15
|
"@stripe/stripe-js": "^8.7.0",
|
|
16
16
|
"lucide-react": "^0.553.0",
|
|
@@ -940,17 +940,17 @@
|
|
|
940
940
|
}
|
|
941
941
|
},
|
|
942
942
|
"node_modules/@funnelsgrove/analytics": {
|
|
943
|
-
"version": "0.
|
|
944
|
-
"resolved": "https://registry.npmjs.org/@funnelsgrove/analytics/-/analytics-0.
|
|
945
|
-
"integrity": "sha512-
|
|
943
|
+
"version": "0.12.0",
|
|
944
|
+
"resolved": "https://registry.npmjs.org/@funnelsgrove/analytics/-/analytics-0.12.0.tgz",
|
|
945
|
+
"integrity": "sha512-6f5UOWf8Dn3NYCFYLe1p3vtR0kKNQ6X3+8CVKl5nTqfBDxMwSCvothHTJIZnFpTNx5r6Hx+UJyePNrtFPC07Kw==",
|
|
946
946
|
"peerDependencies": {
|
|
947
|
-
"@funnelsgrove/runtime": "^0.
|
|
947
|
+
"@funnelsgrove/runtime": "^0.30.0"
|
|
948
948
|
}
|
|
949
949
|
},
|
|
950
950
|
"node_modules/@funnelsgrove/payments": {
|
|
951
|
-
"version": "0.
|
|
952
|
-
"resolved": "https://registry.npmjs.org/@funnelsgrove/payments/-/payments-0.
|
|
953
|
-
"integrity": "sha512-
|
|
951
|
+
"version": "0.37.0",
|
|
952
|
+
"resolved": "https://registry.npmjs.org/@funnelsgrove/payments/-/payments-0.37.0.tgz",
|
|
953
|
+
"integrity": "sha512-JPVeFQ3ewh0E2I8yl0CgTpZ02xKLKPLBRJabAmJYtvp6EO1zBDhnVbxqNvMlFou26DoU2e5ZqsCBhvgUcV4JjA==",
|
|
954
954
|
"dependencies": {
|
|
955
955
|
"@solidgate/react-sdk": "1.34.0",
|
|
956
956
|
"@stripe/react-stripe-js": "^5.6.0",
|
|
@@ -960,14 +960,14 @@
|
|
|
960
960
|
"stripe": "^20.3.1"
|
|
961
961
|
},
|
|
962
962
|
"peerDependencies": {
|
|
963
|
-
"@funnelsgrove/analytics": "^0.
|
|
964
|
-
"@funnelsgrove/runtime": "^0.
|
|
963
|
+
"@funnelsgrove/analytics": "^0.12.0",
|
|
964
|
+
"@funnelsgrove/runtime": "^0.30.0"
|
|
965
965
|
}
|
|
966
966
|
},
|
|
967
967
|
"node_modules/@funnelsgrove/runtime": {
|
|
968
|
-
"version": "0.
|
|
969
|
-
"resolved": "https://registry.npmjs.org/@funnelsgrove/runtime/-/runtime-0.
|
|
970
|
-
"integrity": "sha512-
|
|
968
|
+
"version": "0.30.0",
|
|
969
|
+
"resolved": "https://registry.npmjs.org/@funnelsgrove/runtime/-/runtime-0.30.0.tgz",
|
|
970
|
+
"integrity": "sha512-Vj5zzkEks+w62MR8Lpn6dOlqNIVde+cYtYzpkOyHvwFokjoxi0gsBb4rt7ko5p+9uPdhcFwN9ihCPFWq2jY2fg==",
|
|
971
971
|
"dependencies": {
|
|
972
972
|
"@funnelsgrove/sdk": "0.4.0",
|
|
973
973
|
"posthog-js": "^1.369.2",
|
|
@@ -12,9 +12,9 @@
|
|
|
12
12
|
"validate:funnel": "vite-node --config src/contract/funnel-validator.vite.config.ts src/contract/validate-funnel.cli.ts"
|
|
13
13
|
},
|
|
14
14
|
"dependencies": {
|
|
15
|
-
"@funnelsgrove/analytics": "^0.
|
|
16
|
-
"@funnelsgrove/payments": "^0.
|
|
17
|
-
"@funnelsgrove/runtime": "^0.
|
|
15
|
+
"@funnelsgrove/analytics": "^0.12.0",
|
|
16
|
+
"@funnelsgrove/payments": "^0.37.0",
|
|
17
|
+
"@funnelsgrove/runtime": "^0.30.0",
|
|
18
18
|
"@stripe/react-stripe-js": "^5.6.0",
|
|
19
19
|
"@stripe/stripe-js": "^8.7.0",
|
|
20
20
|
"lucide-react": "^0.553.0",
|
|
@@ -33,6 +33,9 @@ import { getPathForStep } from '@/runtime/funnel-runtime';
|
|
|
33
33
|
import {
|
|
34
34
|
SharedCheckoutSpecialOfferDialog,
|
|
35
35
|
SolidgateCheckoutDialog,
|
|
36
|
+
PayPalCheckout,
|
|
37
|
+
PayPalCheckoutDialog,
|
|
38
|
+
readPendingPayPalCheckout,
|
|
36
39
|
SharedStripeCheckoutV2Dialog,
|
|
37
40
|
StripeSubscriptionWalletSurface,
|
|
38
41
|
activateSecondPaywallDiscount,
|
|
@@ -140,7 +143,7 @@ function StepPaywallRuntime({
|
|
|
140
143
|
}: StepPaywallProps = {}) {
|
|
141
144
|
const [runtimeMode] = useRuntimeMode();
|
|
142
145
|
const checkoutMode = runtimeMode;
|
|
143
|
-
const { user, setUser, attributes, featureFlags, completeStep, userBootstrapped } = useFunnel();
|
|
146
|
+
const { user, setUser, attributes, featureFlags, completeStep, goNext, userBootstrapped } = useFunnel();
|
|
144
147
|
const publishedRuntime = useFunnelRuntimeConfig();
|
|
145
148
|
const browserLocale = useBrowserOfferLocale();
|
|
146
149
|
const content = usePreviewStepLocalizedContent(
|
|
@@ -179,7 +182,7 @@ function StepPaywallRuntime({
|
|
|
179
182
|
activeBillingRuntime.sourceVersionId,
|
|
180
183
|
]);
|
|
181
184
|
const activeBillingDiscounts = useMemo(
|
|
182
|
-
() => activeBillingRuntime.discounts ?? (
|
|
185
|
+
() => activeBillingRuntime.provider === 'paypal' ? inactiveBillingDiscounts : activeBillingRuntime.discounts ?? (
|
|
183
186
|
activeBillingRuntime.provider === 'stripe'
|
|
184
187
|
? buildBillingDiscountCatalog(billingDiscountList)
|
|
185
188
|
: inactiveBillingDiscounts
|
|
@@ -217,10 +220,16 @@ function StepPaywallRuntime({
|
|
|
217
220
|
null,
|
|
218
221
|
[activeBillingRuntime.defaultPlanKey, availablePlans],
|
|
219
222
|
);
|
|
220
|
-
const [
|
|
223
|
+
const [requestedPlanId, setSelectedPlanId] = useState<string | null>(
|
|
221
224
|
initialPlanId,
|
|
222
225
|
);
|
|
223
|
-
const
|
|
226
|
+
const pendingPayPal = readPendingPayPalCheckout({ environment: checkoutMode, funnelEndUserId: user.id, runtimeConfig: activeCheckoutRuntimeConfig });
|
|
227
|
+
const hasPendingPayPal = Boolean(pendingPayPal);
|
|
228
|
+
const selectedPlanId = pendingPayPal
|
|
229
|
+
? availablePlans.find(plan => plan.funnelPlanKey === pendingPayPal.funnelPlanKey)?.id ?? null
|
|
230
|
+
: requestedPlanId;
|
|
231
|
+
const [checkoutDialogOpen, setCheckoutDialogOpen] = useState(Boolean(pendingPayPal));
|
|
232
|
+
const [paypalPending, setPayPalPending] = useState(false);
|
|
224
233
|
const [solidgateAttemptKey, setSolidgateAttemptKey] = useState<string | null>(null);
|
|
225
234
|
const [specialOfferDialogOpen, setSpecialOfferDialogOpen] = useState(() => {
|
|
226
235
|
if (typeof window === 'undefined') {
|
|
@@ -287,6 +296,7 @@ function StepPaywallRuntime({
|
|
|
287
296
|
const checkoutSummaryLabel =
|
|
288
297
|
selectedDisplayPlan?.checkoutSummaryLabel?.trim() || selectedDisplayPlan?.title || content.selectedPlanLabel;
|
|
289
298
|
const checkoutProvider = activeBillingRuntime.provider;
|
|
299
|
+
const paypalOption = pendingPayPal?.option || (selectedPlan?.funnelPlanKey ? activeBillingRuntime.paypalOptionsByPlanKey?.[selectedPlan.funnelPlanKey] : null);
|
|
290
300
|
const storyOptions = useMemo<readonly StoryOption[]>(
|
|
291
301
|
() =>
|
|
292
302
|
content.stories.items.map((item, index) => ({
|
|
@@ -390,7 +400,7 @@ function StepPaywallRuntime({
|
|
|
390
400
|
}
|
|
391
401
|
successUrl.searchParams.set(
|
|
392
402
|
'source',
|
|
393
|
-
checkoutProvider === '
|
|
403
|
+
checkoutProvider === 'stripe' ? 'stripe-elements' : checkoutProvider,
|
|
394
404
|
);
|
|
395
405
|
|
|
396
406
|
return successUrl.toString();
|
|
@@ -483,10 +493,10 @@ function StepPaywallRuntime({
|
|
|
483
493
|
&& activeBillingRuntime.offerSetId.trim()
|
|
484
494
|
&& selectedPlan?.funnelPlanKey?.trim(),
|
|
485
495
|
);
|
|
486
|
-
const checkoutDisabled = !checkoutSelectionReady || !userBootstrapped || !selectedPlan || !selectedDisplayPlan || (
|
|
496
|
+
const checkoutDisabled = Boolean(pendingPayPal) || paypalPending || !checkoutSelectionReady || !userBootstrapped || !selectedPlan || !selectedDisplayPlan || (
|
|
487
497
|
checkoutProvider === 'solidgate'
|
|
488
498
|
? !solidgateCheckoutConfigured
|
|
489
|
-
: !checkoutSession.configured
|
|
499
|
+
: checkoutProvider === 'paypal' ? !paypalOption : !checkoutSession.configured
|
|
490
500
|
);
|
|
491
501
|
const checkoutDialogReady =
|
|
492
502
|
checkoutProvider === 'stripe' &&
|
|
@@ -539,10 +549,10 @@ function StepPaywallRuntime({
|
|
|
539
549
|
}, [user.email]);
|
|
540
550
|
|
|
541
551
|
useEffect(() => {
|
|
542
|
-
setCheckoutDialogOpen(
|
|
552
|
+
setCheckoutDialogOpen(hasPendingPayPal);
|
|
543
553
|
setSolidgateAttemptKey(null);
|
|
544
554
|
setError(null);
|
|
545
|
-
}, [selectedPlanId]);
|
|
555
|
+
}, [selectedPlanId, hasPendingPayPal]);
|
|
546
556
|
|
|
547
557
|
useEffect(() => {
|
|
548
558
|
if (
|
|
@@ -633,6 +643,7 @@ function StepPaywallRuntime({
|
|
|
633
643
|
paywallWalletMethodWrapperClassNames[method];
|
|
634
644
|
|
|
635
645
|
const startCheckout = async () => {
|
|
646
|
+
if (pendingPayPal || paypalPending) { setCheckoutDialogOpen(true); return; }
|
|
636
647
|
if (checkoutDisabled) {
|
|
637
648
|
return;
|
|
638
649
|
}
|
|
@@ -642,6 +653,8 @@ function StepPaywallRuntime({
|
|
|
642
653
|
return;
|
|
643
654
|
}
|
|
644
655
|
|
|
656
|
+
if (checkoutProvider === 'paypal') { setCheckoutDialogOpen(true); return; }
|
|
657
|
+
|
|
645
658
|
if (checkoutProvider === 'solidgate') {
|
|
646
659
|
setSolidgateAttemptKey(crypto.randomUUID());
|
|
647
660
|
setCheckoutDialogOpen(true);
|
|
@@ -684,6 +697,7 @@ function StepPaywallRuntime({
|
|
|
684
697
|
};
|
|
685
698
|
|
|
686
699
|
const openCardCheckoutFromUnavailableWallet = async () => {
|
|
700
|
+
if (pendingPayPal || paypalPending) { setCheckoutDialogOpen(true); return; }
|
|
687
701
|
if (checkoutDisabled) {
|
|
688
702
|
return;
|
|
689
703
|
}
|
|
@@ -754,6 +768,27 @@ function StepPaywallRuntime({
|
|
|
754
768
|
setCheckoutEmailPromptError(null);
|
|
755
769
|
};
|
|
756
770
|
|
|
771
|
+
const paypalCheckout = (checkoutSelectionReady || pendingPayPal) && userBootstrapped && paypalOption && (selectedPlan?.funnelPlanKey || pendingPayPal) ? (
|
|
772
|
+
<PayPalCheckout
|
|
773
|
+
key={`${paypalOption.paymentProfileId}:${paypalOption.providerPlanId}:${checkoutMode}:${pendingPayPal?.funnelPlanKey || selectedPlan?.funnelPlanKey}`}
|
|
774
|
+
option={paypalOption}
|
|
775
|
+
environment={checkoutMode}
|
|
776
|
+
funnelEndUserId={user.id}
|
|
777
|
+
offerSetId={pendingPayPal?.offerSetId || activeBillingRuntime.offerSetId}
|
|
778
|
+
funnelPlanKey={pendingPayPal?.funnelPlanKey || selectedPlan?.funnelPlanKey || ''}
|
|
779
|
+
runtimeConfig={activeCheckoutRuntimeConfig}
|
|
780
|
+
onPreparationStart={billingSelection.pin}
|
|
781
|
+
onPendingChange={pending => {
|
|
782
|
+
setPayPalPending(pending);
|
|
783
|
+
if (!pending) billingSelection.reset();
|
|
784
|
+
}}
|
|
785
|
+
onSuccess={() => {
|
|
786
|
+
completeStep(analyticsStepId, { planId: selectedDisplayPlan?.id ?? pendingPayPal?.funnelPlanKey });
|
|
787
|
+
goNext();
|
|
788
|
+
}}
|
|
789
|
+
/>
|
|
790
|
+
) : undefined;
|
|
791
|
+
|
|
757
792
|
const closeCheckoutDialog = () => {
|
|
758
793
|
if (checkoutProvider === 'stripe') checkoutSession.reset();
|
|
759
794
|
else billingSelection.reset();
|
|
@@ -903,6 +938,11 @@ function StepPaywallRuntime({
|
|
|
903
938
|
/>
|
|
904
939
|
) : null}
|
|
905
940
|
|
|
941
|
+
{checkoutDialogOpen && paypalCheckout && (checkoutProvider === 'paypal' || !checkoutSession.activeClientSecret) ? (
|
|
942
|
+
<PayPalCheckoutDialog title={content.checkout.title} closeAriaLabel={content.checkout.closeAriaLabel}
|
|
943
|
+
onClose={() => setCheckoutDialogOpen(false)}>{paypalCheckout}</PayPalCheckoutDialog>
|
|
944
|
+
) : null}
|
|
945
|
+
|
|
906
946
|
{checkoutDialogOpen &&
|
|
907
947
|
checkoutProvider === 'stripe' &&
|
|
908
948
|
checkoutSession.activeClientSecret &&
|
|
@@ -933,6 +973,8 @@ function StepPaywallRuntime({
|
|
|
933
973
|
onError={checkoutSession.setError}
|
|
934
974
|
onSuccess={handleCheckoutCompleted}
|
|
935
975
|
paymentMethodLabels={content.checkout.paymentMethodLabels}
|
|
976
|
+
paypalCheckout={paypalCheckout}
|
|
977
|
+
paypalPending={paypalPending || Boolean(pendingPayPal)}
|
|
936
978
|
paypalButtonLabel={content.checkout.paypalButtonLabel}
|
|
937
979
|
paypalLabel={content.checkout.paypalLabel}
|
|
938
980
|
promoActive={checkoutPromoActive}
|
|
@@ -1099,6 +1141,7 @@ function StepPaywallRuntime({
|
|
|
1099
1141
|
]
|
|
1100
1142
|
.filter(Boolean)
|
|
1101
1143
|
.join(' ')}
|
|
1144
|
+
disabled={paypalPending || Boolean(pendingPayPal)}
|
|
1102
1145
|
onClick={() => setSelectedPlanId(plan.id)}
|
|
1103
1146
|
>
|
|
1104
1147
|
{plan.featuredTag ? <span className='paywall-v2-plan-tag'>{plan.featuredTag}</span> : null}
|
|
@@ -1169,12 +1212,17 @@ function StepPaywallRuntime({
|
|
|
1169
1212
|
type='button'
|
|
1170
1213
|
className='paywall-v2-card-button paywall-v2-vibe-cta'
|
|
1171
1214
|
onClick={() => void startCheckout()}
|
|
1172
|
-
disabled={checkoutDisabled}
|
|
1215
|
+
disabled={checkoutDisabled && !pendingPayPal && !paypalPending}
|
|
1173
1216
|
>
|
|
1174
1217
|
{content.plans.cardButtonLabel}
|
|
1175
1218
|
</button>
|
|
1176
|
-
|
|
1219
|
+
{checkoutProvider !== 'paypal' && !pendingPayPal ? (
|
|
1220
|
+
<div aria-label='Card and wallet billing terms'>
|
|
1221
|
+
{paypalOption ? <p className='paywall-v2-alt-meta'>Card and wallet terms</p> : null}
|
|
1177
1222
|
<PaywallRenewalDisclaimer plan={selectedPlan} hasActiveDiscount={Boolean(activeCouponId)} copy={content.checkout} catalogLabels={content.catalogLabels} />
|
|
1223
|
+
</div>
|
|
1224
|
+
) : null}
|
|
1225
|
+
<p className='paywall-v2-alt-meta'>{content.plans.metaLabels.join(' · ')}</p>
|
|
1178
1226
|
<p className='paywall-v2-support'>
|
|
1179
1227
|
{content.checkout.supportText}{' '}
|
|
1180
1228
|
<a href={`mailto:${supportEmail}`}>{supportEmail}</a>
|