@funnelsgrove/cli 0.1.93 → 0.1.96
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 +28 -28
- 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 +16 -11
- package/template_scaffold/docs/funnelsgrove/migrations/step-contract-v3.md +1 -1
- package/template_scaffold/funnel-docs.config.json +1 -1
- package/template_scaffold/package-lock.json +15 -15
- package/template_scaffold/package.json +3 -3
- package/template_scaffold/public/paywall/money-back-badge.jpg +0 -0
- package/template_scaffold/src/config/funnel.manifest.ts +8 -1
- package/template_scaffold/src/steps/content/step-32-paywall.content.ts +2 -2
- package/template_scaffold/src/steps/step-01.tsx +11 -3
- package/template_scaffold/src/steps/step-32-paywall.tsx +105 -21
|
@@ -4,10 +4,10 @@
|
|
|
4
4
|
"minimumCliVersion": "0.1.20",
|
|
5
5
|
"entries": [
|
|
6
6
|
{
|
|
7
|
-
"repositoryCliVersion": "0.1.
|
|
7
|
+
"repositoryCliVersion": "0.1.96",
|
|
8
8
|
"manifest": {
|
|
9
9
|
"schemaVersion": 1,
|
|
10
|
-
"bundleVersion": "2.0.
|
|
10
|
+
"bundleVersion": "2.0.85",
|
|
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": "74aa4089312533fbafe2dcfef1044038cfe88dd9fbdcd2da65143dbb7a316e41"
|
|
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": "3b5146eafa49ffb2a0ccf1f0004c1aab0abefe410a2f7994154e1a45ae70a32f"
|
|
149
149
|
}
|
|
150
150
|
]
|
|
151
151
|
}
|
|
152
152
|
},
|
|
153
153
|
{
|
|
154
|
-
"repositoryCliVersion": "0.1.
|
|
154
|
+
"repositoryCliVersion": "0.1.95",
|
|
155
155
|
"manifest": {
|
|
156
156
|
"schemaVersion": 1,
|
|
157
|
-
"bundleVersion": "2.0.
|
|
157
|
+
"bundleVersion": "2.0.84",
|
|
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": "c5314d0a369e449542919ac4bf4a9d2658d598f7bd1da0f124ae87548ba1484a"
|
|
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": "
|
|
295
|
+
"sha256": "cb8bbc961ee816f661f2b3d65cc4c310655a4a22be6bb68f6b10c5992c482213"
|
|
296
296
|
}
|
|
297
297
|
]
|
|
298
298
|
}
|
|
299
299
|
},
|
|
300
300
|
{
|
|
301
|
-
"repositoryCliVersion": "0.1.
|
|
301
|
+
"repositoryCliVersion": "0.1.94",
|
|
302
302
|
"manifest": {
|
|
303
303
|
"schemaVersion": 1,
|
|
304
|
-
"bundleVersion": "2.0.
|
|
304
|
+
"bundleVersion": "2.0.83",
|
|
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": "
|
|
342
|
+
"sha256": "118be5acdfeb1b1d73b1a83667a3f1e42e178f11180614d18c4dcb9c426bd266"
|
|
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": "
|
|
442
|
+
"sha256": "dbb35c46981b0dc9f62c1d249d59f0f034c4743e3a388736fb6d0ba9521dfb31"
|
|
443
443
|
}
|
|
444
444
|
]
|
|
445
445
|
}
|
|
446
446
|
},
|
|
447
447
|
{
|
|
448
|
-
"repositoryCliVersion": "0.1.
|
|
448
|
+
"repositoryCliVersion": "0.1.93",
|
|
449
449
|
"manifest": {
|
|
450
450
|
"schemaVersion": 1,
|
|
451
|
-
"bundleVersion": "2.0.
|
|
451
|
+
"bundleVersion": "2.0.82",
|
|
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": "
|
|
489
|
+
"sha256": "fd5ec5a46442cc09109f7e847a8f5e92ab2110c45cfb7ffa6a58fe9920345450"
|
|
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": "88b1ff5404679a4ca3a85547a6aab25fc6472648fb26a92596fcf0f24f909d13"
|
|
590
590
|
}
|
|
591
591
|
]
|
|
592
592
|
}
|
|
593
593
|
},
|
|
594
594
|
{
|
|
595
|
-
"repositoryCliVersion": "0.1.
|
|
595
|
+
"repositoryCliVersion": "0.1.92",
|
|
596
596
|
"manifest": {
|
|
597
597
|
"schemaVersion": 1,
|
|
598
|
-
"bundleVersion": "2.0.
|
|
598
|
+
"bundleVersion": "2.0.81",
|
|
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": "acade71994561bdcfd52526bd4b97043a1ee1125493c01a8e07d1d099daeaa85"
|
|
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": "7509cbaf23f1829d3744a4c363dd5ad4cbb87f7d0d9e818c860ced80206240c6"
|
|
737
737
|
}
|
|
738
738
|
]
|
|
739
739
|
}
|
|
740
740
|
},
|
|
741
741
|
{
|
|
742
|
-
"repositoryCliVersion": "0.1.
|
|
742
|
+
"repositoryCliVersion": "0.1.91",
|
|
743
743
|
"manifest": {
|
|
744
744
|
"schemaVersion": 1,
|
|
745
|
-
"bundleVersion": "2.0.
|
|
745
|
+
"bundleVersion": "2.0.80",
|
|
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": "4f7ee09583c85958a870814635f4ee4c6d916ccd5b7cc42968988520c17b852a"
|
|
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": "e6fce188252d2ad6063a1c854e14380bd08d25795d13794431bafdf2993e33b4"
|
|
884
884
|
}
|
|
885
885
|
]
|
|
886
886
|
}
|
|
887
887
|
},
|
|
888
888
|
{
|
|
889
|
-
"repositoryCliVersion": "0.1.
|
|
889
|
+
"repositoryCliVersion": "0.1.90",
|
|
890
890
|
"manifest": {
|
|
891
891
|
"schemaVersion": 1,
|
|
892
|
-
"bundleVersion": "2.0.
|
|
892
|
+
"bundleVersion": "2.0.79",
|
|
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": "396ab94a2577461d4fdb8d7973bf276c7260ae223238935401c4a06255818a13"
|
|
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": "35d29e8317be6bbe258e7945ac7966504d9b25bc343fa2502d0d4f52990c2eb9"
|
|
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.96",
|
|
4
4
|
"description": "FunnelsGrove command-line tools for editing, syncing, and publishing funnels",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -34,13 +34,13 @@
|
|
|
34
34
|
"test": "vitest run"
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@funnelsgrove/runtime": "0.7.
|
|
37
|
+
"@funnelsgrove/runtime": "0.7.12",
|
|
38
38
|
"commander": "^12.0.0",
|
|
39
39
|
"typescript": "^5.8.3"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
|
-
"@funnelsgrove/analytics": "0.1.
|
|
43
|
-
"@funnelsgrove/payments": "0.7.
|
|
42
|
+
"@funnelsgrove/analytics": "0.1.61",
|
|
43
|
+
"@funnelsgrove/payments": "0.7.5",
|
|
44
44
|
"vitest": "^3.0.0"
|
|
45
45
|
}
|
|
46
46
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schemaVersion": 1,
|
|
3
|
-
"bundleVersion": "2.0.
|
|
3
|
+
"bundleVersion": "2.0.85",
|
|
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": "74aa4089312533fbafe2dcfef1044038cfe88dd9fbdcd2da65143dbb7a316e41"
|
|
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": "3b5146eafa49ffb2a0ccf1f0004c1aab0abefe410a2f7994154e1a45ae70a32f"
|
|
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/runtime` `0.7.
|
|
20
|
+
Release `@funnelsgrove/runtime` `0.7.12` first, then `@funnelsgrove/analytics` `0.1.61`, then `@funnelsgrove/payments` `0.7.5`. Deploy the API and funnel template, then confirm production `/health` reports the new docs identity. Only then publish `@funnelsgrove/cli` `0.1.96`. 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.85",
|
|
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": "74aa4089312533fbafe2dcfef1044038cfe88dd9fbdcd2da65143dbb7a316e41"
|
|
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": "3b5146eafa49ffb2a0ccf1f0004c1aab0abefe410a2f7994154e1a45ae70a32f"
|
|
142
142
|
}
|
|
143
143
|
]
|
|
144
144
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schemaVersion": 1,
|
|
3
|
-
"sourceTreeHash": "
|
|
3
|
+
"sourceTreeHash": "f161a579258485ad61a428b552f03c8181cda5638ed3082307c33b955ce40072",
|
|
4
4
|
"stepContractVersion": 3,
|
|
5
|
-
"docsBundleVersion": "2.0.
|
|
5
|
+
"docsBundleVersion": "2.0.85",
|
|
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": "205926b30dc2671825d2fb0007c46be691b9e2d3e138c4cbfce61d01eb9c6f79",
|
|
20
20
|
"mode": "100644"
|
|
21
21
|
},
|
|
22
22
|
{
|
|
@@ -101,7 +101,7 @@
|
|
|
101
101
|
},
|
|
102
102
|
{
|
|
103
103
|
"path": "docs/funnelsgrove/migrations/step-contract-v3.md",
|
|
104
|
-
"sha256": "
|
|
104
|
+
"sha256": "74aa4089312533fbafe2dcfef1044038cfe88dd9fbdcd2da65143dbb7a316e41",
|
|
105
105
|
"mode": "100644"
|
|
106
106
|
},
|
|
107
107
|
{
|
|
@@ -236,7 +236,7 @@
|
|
|
236
236
|
},
|
|
237
237
|
{
|
|
238
238
|
"path": "funnel-docs.config.json",
|
|
239
|
-
"sha256": "
|
|
239
|
+
"sha256": "3b5146eafa49ffb2a0ccf1f0004c1aab0abefe410a2f7994154e1a45ae70a32f",
|
|
240
240
|
"mode": "100644"
|
|
241
241
|
},
|
|
242
242
|
{
|
|
@@ -261,12 +261,12 @@
|
|
|
261
261
|
},
|
|
262
262
|
{
|
|
263
263
|
"path": "package-lock.json",
|
|
264
|
-
"sha256": "
|
|
264
|
+
"sha256": "baf83174a1007a25b5e7ae133555da2a028f4f1e885d7dc4ebc014520b14e6da",
|
|
265
265
|
"mode": "100644"
|
|
266
266
|
},
|
|
267
267
|
{
|
|
268
268
|
"path": "package.json",
|
|
269
|
-
"sha256": "
|
|
269
|
+
"sha256": "be33c9a903346fe98ee82556660f9f822b6a0224520c11740e197dbd629fd2c5",
|
|
270
270
|
"mode": "100644"
|
|
271
271
|
},
|
|
272
272
|
{
|
|
@@ -279,6 +279,11 @@
|
|
|
279
279
|
"sha256": "546f01c953f35450a90e1166d2f3e78fc42cd1a97725efd489381505cebfff0a",
|
|
280
280
|
"mode": "100644"
|
|
281
281
|
},
|
|
282
|
+
{
|
|
283
|
+
"path": "public/paywall/money-back-badge.jpg",
|
|
284
|
+
"sha256": "7066f239525e4b60996c4fb20ee1af6fec05787811f633083879e2ae3345ae64",
|
|
285
|
+
"mode": "100644"
|
|
286
|
+
},
|
|
282
287
|
{
|
|
283
288
|
"path": "src/app/[stepId]/page.tsx",
|
|
284
289
|
"sha256": "292b9f12317d03061a72823b13ded89872c6f163b33502450ab418e6a397433e",
|
|
@@ -341,7 +346,7 @@
|
|
|
341
346
|
},
|
|
342
347
|
{
|
|
343
348
|
"path": "src/config/funnel.manifest.ts",
|
|
344
|
-
"sha256": "
|
|
349
|
+
"sha256": "ea009ecf584e8343af97428ab5cababd5bed75b850f107917bd759eb627719e3",
|
|
345
350
|
"mode": "100644"
|
|
346
351
|
},
|
|
347
352
|
{
|
|
@@ -481,7 +486,7 @@
|
|
|
481
486
|
},
|
|
482
487
|
{
|
|
483
488
|
"path": "src/steps/content/step-32-paywall.content.ts",
|
|
484
|
-
"sha256": "
|
|
489
|
+
"sha256": "f13a4cd4216465aa2610607a833af5889c31aa9f7e4894f4af578dad481057ed",
|
|
485
490
|
"mode": "100644"
|
|
486
491
|
},
|
|
487
492
|
{
|
|
@@ -536,7 +541,7 @@
|
|
|
536
541
|
},
|
|
537
542
|
{
|
|
538
543
|
"path": "src/steps/step-01.tsx",
|
|
539
|
-
"sha256": "
|
|
544
|
+
"sha256": "d85329482953b99f2809a84d069cf15c4fe85075623411ce6af66d9c9612604b",
|
|
540
545
|
"mode": "100644"
|
|
541
546
|
},
|
|
542
547
|
{
|
|
@@ -546,7 +551,7 @@
|
|
|
546
551
|
},
|
|
547
552
|
{
|
|
548
553
|
"path": "src/steps/step-32-paywall.tsx",
|
|
549
|
-
"sha256": "
|
|
554
|
+
"sha256": "a39be5512037b184a0c2f298b00720eae4cbaa21f1bda1ffc68aa966e5308242",
|
|
550
555
|
"mode": "100644"
|
|
551
556
|
},
|
|
552
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/runtime` `0.7.
|
|
20
|
+
Release `@funnelsgrove/runtime` `0.7.12` first, then `@funnelsgrove/analytics` `0.1.61`, then `@funnelsgrove/payments` `0.7.5`. Deploy the API and funnel template, then confirm production `/health` reports the new docs identity. Only then publish `@funnelsgrove/cli` `0.1.96`. 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.1.
|
|
12
|
-
"@funnelsgrove/payments": "^0.7.
|
|
13
|
-
"@funnelsgrove/runtime": "^0.7.
|
|
11
|
+
"@funnelsgrove/analytics": "^0.1.61",
|
|
12
|
+
"@funnelsgrove/payments": "^0.7.5",
|
|
13
|
+
"@funnelsgrove/runtime": "^0.7.12",
|
|
14
14
|
"@stripe/react-stripe-js": "^5.6.0",
|
|
15
15
|
"@stripe/stripe-js": "^8.7.0",
|
|
16
16
|
"lucide-react": "^0.553.0",
|
|
@@ -938,20 +938,20 @@
|
|
|
938
938
|
}
|
|
939
939
|
},
|
|
940
940
|
"node_modules/@funnelsgrove/analytics": {
|
|
941
|
-
"version": "0.1.
|
|
942
|
-
"resolved": "https://registry.npmjs.org/@funnelsgrove/analytics/-/analytics-0.1.
|
|
943
|
-
"integrity": "sha512-
|
|
941
|
+
"version": "0.1.61",
|
|
942
|
+
"resolved": "https://registry.npmjs.org/@funnelsgrove/analytics/-/analytics-0.1.61.tgz",
|
|
943
|
+
"integrity": "sha512-Z9+4Eu3m7EpXUNKlSELho+wmq3LGCVtWIiX/Ihsv12K4QPAzgmGAHyqXVVPA3m68q3QKF4tIcxBRs4WivSA76g==",
|
|
944
944
|
"dependencies": {
|
|
945
|
-
"@funnelsgrove/runtime": "0.7.
|
|
945
|
+
"@funnelsgrove/runtime": "0.7.12"
|
|
946
946
|
}
|
|
947
947
|
},
|
|
948
948
|
"node_modules/@funnelsgrove/payments": {
|
|
949
|
-
"version": "0.7.
|
|
950
|
-
"resolved": "https://registry.npmjs.org/@funnelsgrove/payments/-/payments-0.7.
|
|
951
|
-
"integrity": "sha512-
|
|
949
|
+
"version": "0.7.5",
|
|
950
|
+
"resolved": "https://registry.npmjs.org/@funnelsgrove/payments/-/payments-0.7.5.tgz",
|
|
951
|
+
"integrity": "sha512-THPFQ9nO2MxlBuM5culTu4G1eWTEDj2//ZB2P5l176xG1LEPaot6tQ3RX6zxppuJVp8sBZhG/ARq+8UN5XMzBA==",
|
|
952
952
|
"dependencies": {
|
|
953
|
-
"@funnelsgrove/analytics": "^0.1.
|
|
954
|
-
"@funnelsgrove/runtime": "^0.7.
|
|
953
|
+
"@funnelsgrove/analytics": "^0.1.61",
|
|
954
|
+
"@funnelsgrove/runtime": "^0.7.12",
|
|
955
955
|
"@solidgate/react-sdk": "1.34.0",
|
|
956
956
|
"@stripe/react-stripe-js": "^5.6.0",
|
|
957
957
|
"@stripe/stripe-js": "^8.7.0",
|
|
@@ -961,9 +961,9 @@
|
|
|
961
961
|
}
|
|
962
962
|
},
|
|
963
963
|
"node_modules/@funnelsgrove/runtime": {
|
|
964
|
-
"version": "0.7.
|
|
965
|
-
"resolved": "https://registry.npmjs.org/@funnelsgrove/runtime/-/runtime-0.7.
|
|
966
|
-
"integrity": "sha512-
|
|
964
|
+
"version": "0.7.12",
|
|
965
|
+
"resolved": "https://registry.npmjs.org/@funnelsgrove/runtime/-/runtime-0.7.12.tgz",
|
|
966
|
+
"integrity": "sha512-CBpH85yTZc2Vmy+MR4egKS9a0Ngec7bluf9cvVqV/OqNnxEHYhZTfz5t3Uf8QmUbl8sHzXnZBcSd+IfdBrHDTw==",
|
|
967
967
|
"dependencies": {
|
|
968
968
|
"posthog-js": "^1.369.2",
|
|
969
969
|
"react": "19.2.3",
|
|
@@ -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.1.
|
|
16
|
-
"@funnelsgrove/payments": "^0.7.
|
|
17
|
-
"@funnelsgrove/runtime": "^0.7.
|
|
15
|
+
"@funnelsgrove/analytics": "^0.1.61",
|
|
16
|
+
"@funnelsgrove/payments": "^0.7.5",
|
|
17
|
+
"@funnelsgrove/runtime": "^0.7.12",
|
|
18
18
|
"@stripe/react-stripe-js": "^5.6.0",
|
|
19
19
|
"@stripe/stripe-js": "^8.7.0",
|
|
20
20
|
"lucide-react": "^0.553.0",
|
|
Binary file
|
|
@@ -33,6 +33,13 @@ export const rawFunnelManifest = {
|
|
|
33
33
|
height: 120,
|
|
34
34
|
preload: 'idle',
|
|
35
35
|
},
|
|
36
|
+
moneyBackBadge: {
|
|
37
|
+
type: 'image',
|
|
38
|
+
src: '/paywall/money-back-badge.jpg',
|
|
39
|
+
width: 368,
|
|
40
|
+
height: 368,
|
|
41
|
+
preload: 'idle',
|
|
42
|
+
},
|
|
36
43
|
},
|
|
37
44
|
steps: [
|
|
38
45
|
{
|
|
@@ -63,7 +70,7 @@ export const rawFunnelManifest = {
|
|
|
63
70
|
type: 'paywall_offer',
|
|
64
71
|
kind: 'paywall',
|
|
65
72
|
title: 'Paywall',
|
|
66
|
-
assetIds: ['paywallPreview'],
|
|
73
|
+
assetIds: ['paywallPreview', 'moneyBackBadge'],
|
|
67
74
|
},
|
|
68
75
|
{
|
|
69
76
|
id: 'subscription-started',
|
|
@@ -63,14 +63,16 @@ const stepOneStyles = `
|
|
|
63
63
|
}
|
|
64
64
|
|
|
65
65
|
.template-starter-art {
|
|
66
|
-
position:
|
|
67
|
-
|
|
66
|
+
position: absolute;
|
|
67
|
+
top: 340px;
|
|
68
|
+
left: 50%;
|
|
69
|
+
width: min(72cqw, 310px);
|
|
68
70
|
aspect-ratio: 1;
|
|
69
|
-
margin: auto;
|
|
70
71
|
display: grid;
|
|
71
72
|
place-items: center;
|
|
72
73
|
border-radius: 999px;
|
|
73
74
|
background: color-mix(in srgb, var(--color-primary) 12%, white);
|
|
75
|
+
transform: translateX(-50%);
|
|
74
76
|
}
|
|
75
77
|
|
|
76
78
|
.template-starter-orbit {
|
|
@@ -98,4 +100,10 @@ const stepOneStyles = `
|
|
|
98
100
|
font-weight: 800;
|
|
99
101
|
box-shadow: 0 22px 50px color-mix(in srgb, var(--color-primary) 28%, transparent);
|
|
100
102
|
}
|
|
103
|
+
|
|
104
|
+
@media (max-width: 430px) {
|
|
105
|
+
.template-starter-art {
|
|
106
|
+
top: 310px;
|
|
107
|
+
}
|
|
108
|
+
}
|
|
101
109
|
`;
|
|
@@ -26,6 +26,7 @@ import {
|
|
|
26
26
|
import { getPathForStep } from '@/runtime/funnel-runtime';
|
|
27
27
|
import {
|
|
28
28
|
SharedCheckoutSpecialOfferDialog,
|
|
29
|
+
SolidgateCheckoutDialog,
|
|
29
30
|
SharedStripeCheckoutV2Dialog,
|
|
30
31
|
StripeSubscriptionWalletSurface,
|
|
31
32
|
activateSecondPaywallDiscount,
|
|
@@ -49,6 +50,7 @@ import { funnelManifest } from '@/config/funnel.manifest';
|
|
|
49
50
|
import { getStepContentLocale } from '@/runtime/step-content-context';
|
|
50
51
|
|
|
51
52
|
export const stepPaywallId = 'paywall';
|
|
53
|
+
const moneyBackBadgeAsset = funnelManifest.assets.moneyBackBadge;
|
|
52
54
|
|
|
53
55
|
export const stepPaywall = {
|
|
54
56
|
id: stepPaywallId,
|
|
@@ -95,6 +97,22 @@ const checkoutCurrencyFormatter = new Intl.NumberFormat('en-US', {
|
|
|
95
97
|
minimumFractionDigits: 2,
|
|
96
98
|
maximumFractionDigits: 2,
|
|
97
99
|
});
|
|
100
|
+
const inactiveBillingDiscounts = buildBillingDiscountCatalog([
|
|
101
|
+
{
|
|
102
|
+
stage: 'first',
|
|
103
|
+
couponId: '__inactive_first__',
|
|
104
|
+
discountPercent: 0,
|
|
105
|
+
durationSeconds: 0,
|
|
106
|
+
previousDiscountPercent: null,
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
stage: 'second',
|
|
110
|
+
couponId: '__inactive_second__',
|
|
111
|
+
discountPercent: 0,
|
|
112
|
+
durationSeconds: 0,
|
|
113
|
+
previousDiscountPercent: 0,
|
|
114
|
+
},
|
|
115
|
+
]);
|
|
98
116
|
|
|
99
117
|
function formatCheckoutAmount(amountCents: number): string {
|
|
100
118
|
return checkoutCurrencyFormatter.format(amountCents / 100);
|
|
@@ -142,8 +160,12 @@ function StepPaywallRuntime({
|
|
|
142
160
|
[checkoutMode, featureFlags, publishedRuntime.config],
|
|
143
161
|
);
|
|
144
162
|
const activeBillingDiscounts = useMemo(
|
|
145
|
-
() => activeBillingRuntime.discounts ??
|
|
146
|
-
|
|
163
|
+
() => activeBillingRuntime.discounts ?? (
|
|
164
|
+
activeBillingRuntime.provider === 'stripe'
|
|
165
|
+
? buildBillingDiscountCatalog(billingDiscountList)
|
|
166
|
+
: inactiveBillingDiscounts
|
|
167
|
+
),
|
|
168
|
+
[activeBillingRuntime.discounts, activeBillingRuntime.provider],
|
|
147
169
|
);
|
|
148
170
|
const availablePlans = activeBillingRuntime.plans;
|
|
149
171
|
const initialPlanId = useMemo(
|
|
@@ -158,6 +180,7 @@ function StepPaywallRuntime({
|
|
|
158
180
|
initialPlanId,
|
|
159
181
|
);
|
|
160
182
|
const [checkoutDialogOpen, setCheckoutDialogOpen] = useState(false);
|
|
183
|
+
const [solidgateAttemptKey, setSolidgateAttemptKey] = useState<string | null>(null);
|
|
161
184
|
const [specialOfferDialogOpen, setSpecialOfferDialogOpen] = useState(() => {
|
|
162
185
|
if (typeof window === 'undefined') {
|
|
163
186
|
return false;
|
|
@@ -216,6 +239,7 @@ function StepPaywallRuntime({
|
|
|
216
239
|
}, [displayPlans, initialPlanId, selectedPlanId]);
|
|
217
240
|
const checkoutSummaryLabel =
|
|
218
241
|
selectedDisplayPlan?.checkoutSummaryLabel?.trim() || selectedDisplayPlan?.title || 'Selected plan';
|
|
242
|
+
const checkoutProvider = activeBillingRuntime.provider;
|
|
219
243
|
const storyOptions = useMemo<readonly StoryOption[]>(
|
|
220
244
|
() =>
|
|
221
245
|
content.stories.items.map((item, index) => ({
|
|
@@ -315,10 +339,17 @@ function StepPaywallRuntime({
|
|
|
315
339
|
if (user.id) {
|
|
316
340
|
successUrl.searchParams.set('user_id', user.id);
|
|
317
341
|
}
|
|
318
|
-
successUrl.searchParams.set(
|
|
342
|
+
successUrl.searchParams.set(
|
|
343
|
+
'source',
|
|
344
|
+
checkoutProvider === 'solidgate' ? 'solidgate' : 'stripe-elements',
|
|
345
|
+
);
|
|
319
346
|
|
|
320
347
|
return successUrl.toString();
|
|
321
|
-
}, [user.id]);
|
|
348
|
+
}, [checkoutProvider, user.id]);
|
|
349
|
+
const checkoutPageUrl = useMemo(
|
|
350
|
+
() => typeof window === 'undefined' ? '' : window.location.href,
|
|
351
|
+
[],
|
|
352
|
+
);
|
|
322
353
|
const checkoutSession = useStripeSubscriptionCheckoutSession({
|
|
323
354
|
analyticsMetadata: checkoutAnalyticsMetadata,
|
|
324
355
|
checkoutMode,
|
|
@@ -326,7 +357,7 @@ function StepPaywallRuntime({
|
|
|
326
357
|
customerEmail: checkoutEmail || user.email,
|
|
327
358
|
displayPlan: selectedDisplayPlan,
|
|
328
359
|
onError: setError,
|
|
329
|
-
plan: selectedPlan,
|
|
360
|
+
plan: checkoutProvider === 'stripe' ? selectedPlan : null,
|
|
330
361
|
returnUrl: successReturnUrl,
|
|
331
362
|
runtimeConfig: checkoutRuntimeConfig,
|
|
332
363
|
userId: user.id,
|
|
@@ -357,8 +388,18 @@ function StepPaywallRuntime({
|
|
|
357
388
|
user.name,
|
|
358
389
|
],
|
|
359
390
|
);
|
|
360
|
-
const
|
|
391
|
+
const solidgateCheckoutConfigured = Boolean(
|
|
392
|
+
user.id.trim()
|
|
393
|
+
&& activeBillingRuntime.offerSetId.trim()
|
|
394
|
+
&& selectedPlan?.projectPlanId?.trim(),
|
|
395
|
+
);
|
|
396
|
+
const checkoutDisabled = !selectedPlan || !selectedDisplayPlan || (
|
|
397
|
+
checkoutProvider === 'solidgate'
|
|
398
|
+
? !solidgateCheckoutConfigured
|
|
399
|
+
: !checkoutSession.configured
|
|
400
|
+
);
|
|
361
401
|
const checkoutDialogReady =
|
|
402
|
+
checkoutProvider === 'stripe' &&
|
|
362
403
|
checkoutDialogOpen &&
|
|
363
404
|
Boolean(checkoutSession.activeClientSecret) &&
|
|
364
405
|
Boolean(checkoutSession.stripePromise) &&
|
|
@@ -407,6 +448,12 @@ function StepPaywallRuntime({
|
|
|
407
448
|
});
|
|
408
449
|
}, [user.email]);
|
|
409
450
|
|
|
451
|
+
useEffect(() => {
|
|
452
|
+
setCheckoutDialogOpen(false);
|
|
453
|
+
setSolidgateAttemptKey(null);
|
|
454
|
+
setError(null);
|
|
455
|
+
}, [selectedPlanId]);
|
|
456
|
+
|
|
410
457
|
useEffect(() => {
|
|
411
458
|
if (!discountStateReady) {
|
|
412
459
|
return;
|
|
@@ -473,7 +520,13 @@ function StepPaywallRuntime({
|
|
|
473
520
|
paywallWalletMethodWrapperClassNames[method];
|
|
474
521
|
|
|
475
522
|
const startCheckout = async () => {
|
|
476
|
-
if (checkoutDisabled || checkoutSession.loading.card) {
|
|
523
|
+
if (checkoutDisabled || (checkoutProvider === 'stripe' && checkoutSession.loading.card)) {
|
|
524
|
+
return;
|
|
525
|
+
}
|
|
526
|
+
|
|
527
|
+
if (checkoutProvider === 'solidgate') {
|
|
528
|
+
setSolidgateAttemptKey(crypto.randomUUID());
|
|
529
|
+
setCheckoutDialogOpen(true);
|
|
477
530
|
return;
|
|
478
531
|
}
|
|
479
532
|
|
|
@@ -550,6 +603,7 @@ function StepPaywallRuntime({
|
|
|
550
603
|
|
|
551
604
|
const closeCheckoutDialog = () => {
|
|
552
605
|
setCheckoutDialogOpen(false);
|
|
606
|
+
setSolidgateAttemptKey(null);
|
|
553
607
|
setError(null);
|
|
554
608
|
if (discountState.stage === 'first' && discountState.status === 'active') {
|
|
555
609
|
setSpecialOfferDialogOpen(true);
|
|
@@ -591,7 +645,7 @@ function StepPaywallRuntime({
|
|
|
591
645
|
);
|
|
592
646
|
}
|
|
593
647
|
|
|
594
|
-
if (checkoutSession.loading.card) {
|
|
648
|
+
if (checkoutProvider === 'stripe' && checkoutSession.loading.card) {
|
|
595
649
|
return (
|
|
596
650
|
<>
|
|
597
651
|
<div
|
|
@@ -611,7 +665,34 @@ function StepPaywallRuntime({
|
|
|
611
665
|
|
|
612
666
|
return (
|
|
613
667
|
<>
|
|
668
|
+
{checkoutProvider === 'solidgate' &&
|
|
669
|
+
checkoutDialogOpen &&
|
|
670
|
+
solidgateAttemptKey &&
|
|
671
|
+
selectedPlan?.projectPlanId ? (
|
|
672
|
+
<SolidgateCheckoutDialog
|
|
673
|
+
open
|
|
674
|
+
checkoutAnalytics={checkoutAnalyticsContext}
|
|
675
|
+
request={{
|
|
676
|
+
discountKeyOrProviderId: checkoutPromoActive
|
|
677
|
+
? selectedDisplayPlan?.couponId ?? null
|
|
678
|
+
: null,
|
|
679
|
+
failUrl: checkoutPageUrl,
|
|
680
|
+
funnelEndUserId: user.id,
|
|
681
|
+
idempotencyKey: solidgateAttemptKey,
|
|
682
|
+
offerSetId: activeBillingRuntime.offerSetId,
|
|
683
|
+
projectBillingPlanId: selectedPlan.projectPlanId,
|
|
684
|
+
returnUrl: checkoutPageUrl,
|
|
685
|
+
runtimeConfig: checkoutRuntimeConfig,
|
|
686
|
+
successUrl: successReturnUrl,
|
|
687
|
+
}}
|
|
688
|
+
onClose={closeCheckoutDialog}
|
|
689
|
+
onError={setError}
|
|
690
|
+
onSuccess={handleCheckoutCompleted}
|
|
691
|
+
/>
|
|
692
|
+
) : null}
|
|
693
|
+
|
|
614
694
|
{checkoutDialogOpen &&
|
|
695
|
+
checkoutProvider === 'stripe' &&
|
|
615
696
|
checkoutSession.activeClientSecret &&
|
|
616
697
|
checkoutSession.stripePromise &&
|
|
617
698
|
selectedDisplayPlan ? (
|
|
@@ -848,7 +929,7 @@ function StepPaywallRuntime({
|
|
|
848
929
|
</section>
|
|
849
930
|
|
|
850
931
|
<section className='paywall-v2-payment-stack'>
|
|
851
|
-
{selectedDisplayPlan ? (
|
|
932
|
+
{checkoutProvider === 'stripe' && selectedDisplayPlan ? (
|
|
852
933
|
<StripeSubscriptionWalletSurface
|
|
853
934
|
amountCents={selectedDisplayPlan.amountCents}
|
|
854
935
|
applePayPlaceholderLabel={content.checkout.walletPlaceholderLabel}
|
|
@@ -875,7 +956,10 @@ function StepPaywallRuntime({
|
|
|
875
956
|
type='button'
|
|
876
957
|
className='paywall-v2-card-button paywall-v2-vibe-cta'
|
|
877
958
|
onClick={() => void startCheckout()}
|
|
878
|
-
disabled={
|
|
959
|
+
disabled={
|
|
960
|
+
checkoutDisabled ||
|
|
961
|
+
(checkoutProvider === 'stripe' && checkoutSession.loading.card)
|
|
962
|
+
}
|
|
879
963
|
>
|
|
880
964
|
{content.plans.cardButtonLabel}
|
|
881
965
|
</button>
|
|
@@ -885,7 +969,7 @@ function StepPaywallRuntime({
|
|
|
885
969
|
{content.checkout.supportText}{' '}
|
|
886
970
|
<a href={`mailto:${supportEmail}`}>{supportEmail}</a>
|
|
887
971
|
</p>
|
|
888
|
-
{!checkoutSession.configured ? (
|
|
972
|
+
{checkoutProvider === 'stripe' && !checkoutSession.configured ? (
|
|
889
973
|
<p className='paywall-v2-note'>{content.plans.stripeUnavailableNote}</p>
|
|
890
974
|
) : null}
|
|
891
975
|
{error ? <p className='paywall-v2-error'>{error}</p> : null}
|
|
@@ -964,7 +1048,13 @@ function StepPaywallRuntime({
|
|
|
964
1048
|
</section>
|
|
965
1049
|
|
|
966
1050
|
<section className='paywall-v2-guarantee-card'>
|
|
967
|
-
<
|
|
1051
|
+
<Image
|
|
1052
|
+
src={content.guarantee.image.src}
|
|
1053
|
+
alt={content.guarantee.image.alt}
|
|
1054
|
+
width={moneyBackBadgeAsset.width}
|
|
1055
|
+
height={moneyBackBadgeAsset.height}
|
|
1056
|
+
className='paywall-v2-badge'
|
|
1057
|
+
/>
|
|
968
1058
|
<div className='paywall-v2-guarantee-copy'>
|
|
969
1059
|
<p className='paywall-v2-guarantee-title'>{content.guarantee.title}</p>
|
|
970
1060
|
<p className='paywall-v2-guarantee-text'>
|
|
@@ -1895,15 +1985,9 @@ const stepPaywallStyles = `
|
|
|
1895
1985
|
}
|
|
1896
1986
|
|
|
1897
1987
|
.paywall-v2-badge {
|
|
1898
|
-
|
|
1899
|
-
|
|
1900
|
-
|
|
1901
|
-
place-items: center;
|
|
1902
|
-
border: 8px double var(--color-primary);
|
|
1903
|
-
border-radius: 999px;
|
|
1904
|
-
color: var(--color-primary);
|
|
1905
|
-
font-size: 34px;
|
|
1906
|
-
font-weight: 800;
|
|
1988
|
+
width: 184px;
|
|
1989
|
+
height: 184px;
|
|
1990
|
+
object-fit: cover;
|
|
1907
1991
|
}
|
|
1908
1992
|
|
|
1909
1993
|
.paywall-v2-guarantee-copy {
|