@wix/himalaya-cli 0.1728.0 → 0.1730.0
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/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/sdk/entity-extraction/src/index.d.ts +34 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/sdk/iap/src/catalog-pricing-contract.d.ts +4 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/sdk/iap/src/pricing-contract.d.ts +6 -1
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/sdk/iap/src/wix-payments-contract.d.ts +10 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/sdk/sdk-types/src/capabilities.generated.d.ts +4 -1
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/sdk/text-embedding/src/index.d.ts +37 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/sdk/translation/src/index.d.ts +51 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/sdk/webview-page/src/capabilities.generated.d.ts +6 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/ts/src/define-app.d.ts +1 -1
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/flows/iap-checkout/src/iap-verticals/index.d.ts +1 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/flows/iap-checkout/src/iap-verticals/pricing-plans.d.ts +20 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/flows/iap-checkout/src/index.d.ts +1 -1
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/flows/screens/src/index.d.ts +2 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/audio-record.mjs +3 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/calendar.mjs +3 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/calls.mjs +3 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/contacts.mjs +3 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/core.mjs +3 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/entity-extraction.mjs +38 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/iap-checkout.mjs +49 -8
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/iap.mjs +35 -9
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/location.mjs +3 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/motion.mjs +3 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/photos.mjs +3 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/screens.mjs +57 -14
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/sdk-types.mjs +3 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/tasks.mjs +3 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/text-embedding.mjs +76 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/translation.mjs +66 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/package.json +12 -0
- package/dist/browser-plane/assets.json +5 -5
- package/dist/browser-plane/preview-deferred/{ec5d778f3e7ecbc2351ab7a8f3509483b798094de9f889fe8b03447db1413cb6.bin → 9c4b4a8e0772f247f08e61b35d51b0bd2574408381cab23ec88cad1c7df68177.bin} +1 -1
- package/dist/browser-plane/sw.js +8 -8
- package/dist/cli.mjs +514 -315
- package/dist/preview-assets.generated.bin +0 -0
- package/guides/app-config.md +1 -1
- package/guides/capabilities.md +3 -0
- package/guides/iap-pricing.md +2 -2
- package/guides/iap-screen-adoption.md +1 -1
- package/guides/importable-sdks.md +3 -0
- package/guides/release-notes.md +30 -0
- package/guides/sdk-reference.json +252 -7
- package/guides/web-page-sdk-reference.md +3 -0
- package/package.json +2 -2
- package/templates/beauty-salon/tier5-src/himi-branded-lite-plans/index.ts +16 -7
- package/templates/beauty-salon-owner/dev/index.ts +35 -0
- package/templates/branded-lite/dev/index.ts +16 -0
- package/templates/branded-lite/tier5-src/himi-branded-lite-plans/index.ts +16 -7
- package/templates/community-club/dev/index.ts +2 -0
- package/templates/community-club-owner/dev/index.ts +35 -0
- package/templates/conference/dev/index.ts +1 -0
- package/templates/events-meetups/dev/index.ts +2 -0
- package/templates/events-meetups-owner/dev/index.ts +31 -0
- package/templates/gym-fitness/dev/index.ts +1 -0
- package/templates/gym-fitness/tier5-src/himi-branded-lite-plans/index.ts +16 -7
- package/templates/gym-fitness-owner/dev/index.ts +37 -0
- package/templates/nonprofit-cause/dev/index.ts +2 -0
- package/templates/nonprofit-cause/tier5-src/himi-branded-lite-plans/index.ts +16 -7
- package/templates/nonprofit-cause-owner/dev/index.ts +33 -0
- package/templates/owner-lite/dev/index.ts +37 -0
- package/templates/podcast-creator/dev/index.ts +2 -0
- package/templates/podcast-creator/tier5-src/himi-branded-lite-plans/index.ts +16 -7
- package/templates/podcast-creator-owner/dev/index.ts +35 -0
- package/templates/portfolio-creative/dev/index.ts +2 -0
- package/templates/portfolio-creative-owner/dev/index.ts +35 -0
- package/templates/restaurant/dev/index.ts +2 -0
- package/templates/restaurant-owner/dev/index.ts +37 -0
- package/templates/retail-store-owner/dev/index.ts +33 -0
- package/templates/yoga-studio/dev/index.ts +2 -0
- package/templates/yoga-studio/tier5-src/himi-branded-lite-plans/index.ts +16 -7
- package/templates/yoga-studio-owner/dev/index.ts +33 -0
|
@@ -349,6 +349,7 @@ const SCREENS = runtimeSetting({
|
|
|
349
349
|
"package": "himalaya",
|
|
350
350
|
"type": "HStack",
|
|
351
351
|
"props": {
|
|
352
|
+
"alignment": "center",
|
|
352
353
|
"children": [
|
|
353
354
|
{
|
|
354
355
|
"id": "",
|
|
@@ -399,6 +400,7 @@ const SCREENS = runtimeSetting({
|
|
|
399
400
|
"package": "himalaya",
|
|
400
401
|
"type": "HStack",
|
|
401
402
|
"props": {
|
|
403
|
+
"alignment": "center",
|
|
402
404
|
"children": [
|
|
403
405
|
{
|
|
404
406
|
"id": "",
|
|
@@ -3703,6 +3705,7 @@ const SCREENS = runtimeSetting({
|
|
|
3703
3705
|
"package": "himalaya",
|
|
3704
3706
|
"type": "HStack",
|
|
3705
3707
|
"props": {
|
|
3708
|
+
"alignment": "center",
|
|
3706
3709
|
"children": [
|
|
3707
3710
|
{
|
|
3708
3711
|
"id": "",
|
|
@@ -3753,6 +3756,7 @@ const SCREENS = runtimeSetting({
|
|
|
3753
3756
|
"package": "himalaya",
|
|
3754
3757
|
"type": "HStack",
|
|
3755
3758
|
"props": {
|
|
3759
|
+
"alignment": "center",
|
|
3756
3760
|
"children": [
|
|
3757
3761
|
{
|
|
3758
3762
|
"id": "",
|
|
@@ -7057,6 +7061,7 @@ const SCREENS = runtimeSetting({
|
|
|
7057
7061
|
"package": "himalaya",
|
|
7058
7062
|
"type": "HStack",
|
|
7059
7063
|
"props": {
|
|
7064
|
+
"alignment": "center",
|
|
7060
7065
|
"children": [
|
|
7061
7066
|
{
|
|
7062
7067
|
"id": "",
|
|
@@ -10144,6 +10149,7 @@ const SCREENS = runtimeSetting({
|
|
|
10144
10149
|
"package": "himalaya",
|
|
10145
10150
|
"type": "HStack",
|
|
10146
10151
|
"props": {
|
|
10152
|
+
"alignment": "center",
|
|
10147
10153
|
"children": [
|
|
10148
10154
|
{
|
|
10149
10155
|
"id": "",
|
|
@@ -10194,6 +10200,7 @@ const SCREENS = runtimeSetting({
|
|
|
10194
10200
|
"package": "himalaya",
|
|
10195
10201
|
"type": "HStack",
|
|
10196
10202
|
"props": {
|
|
10203
|
+
"alignment": "center",
|
|
10197
10204
|
"children": [
|
|
10198
10205
|
{
|
|
10199
10206
|
"id": "",
|
|
@@ -13498,6 +13505,7 @@ const SCREENS = runtimeSetting({
|
|
|
13498
13505
|
"package": "himalaya",
|
|
13499
13506
|
"type": "HStack",
|
|
13500
13507
|
"props": {
|
|
13508
|
+
"alignment": "center",
|
|
13501
13509
|
"children": [
|
|
13502
13510
|
{
|
|
13503
13511
|
"id": "",
|
|
@@ -13548,6 +13556,7 @@ const SCREENS = runtimeSetting({
|
|
|
13548
13556
|
"package": "himalaya",
|
|
13549
13557
|
"type": "HStack",
|
|
13550
13558
|
"props": {
|
|
13559
|
+
"alignment": "center",
|
|
13551
13560
|
"children": [
|
|
13552
13561
|
{
|
|
13553
13562
|
"id": "",
|
|
@@ -16852,6 +16861,7 @@ const SCREENS = runtimeSetting({
|
|
|
16852
16861
|
"package": "himalaya",
|
|
16853
16862
|
"type": "HStack",
|
|
16854
16863
|
"props": {
|
|
16864
|
+
"alignment": "center",
|
|
16855
16865
|
"children": [
|
|
16856
16866
|
{
|
|
16857
16867
|
"id": "",
|
|
@@ -16902,6 +16912,7 @@ const SCREENS = runtimeSetting({
|
|
|
16902
16912
|
"package": "himalaya",
|
|
16903
16913
|
"type": "HStack",
|
|
16904
16914
|
"props": {
|
|
16915
|
+
"alignment": "center",
|
|
16905
16916
|
"children": [
|
|
16906
16917
|
{
|
|
16907
16918
|
"id": "",
|
|
@@ -20206,6 +20217,7 @@ const SCREENS = runtimeSetting({
|
|
|
20206
20217
|
"package": "himalaya",
|
|
20207
20218
|
"type": "HStack",
|
|
20208
20219
|
"props": {
|
|
20220
|
+
"alignment": "center",
|
|
20209
20221
|
"children": [
|
|
20210
20222
|
{
|
|
20211
20223
|
"id": "",
|
|
@@ -20256,6 +20268,7 @@ const SCREENS = runtimeSetting({
|
|
|
20256
20268
|
"package": "himalaya",
|
|
20257
20269
|
"type": "HStack",
|
|
20258
20270
|
"props": {
|
|
20271
|
+
"alignment": "center",
|
|
20259
20272
|
"children": [
|
|
20260
20273
|
{
|
|
20261
20274
|
"id": "",
|
|
@@ -23560,6 +23573,7 @@ const SCREENS = runtimeSetting({
|
|
|
23560
23573
|
"package": "himalaya",
|
|
23561
23574
|
"type": "HStack",
|
|
23562
23575
|
"props": {
|
|
23576
|
+
"alignment": "center",
|
|
23563
23577
|
"children": [
|
|
23564
23578
|
{
|
|
23565
23579
|
"id": "",
|
|
@@ -23610,6 +23624,7 @@ const SCREENS = runtimeSetting({
|
|
|
23610
23624
|
"package": "himalaya",
|
|
23611
23625
|
"type": "HStack",
|
|
23612
23626
|
"props": {
|
|
23627
|
+
"alignment": "center",
|
|
23613
23628
|
"children": [
|
|
23614
23629
|
{
|
|
23615
23630
|
"id": "",
|
|
@@ -26914,6 +26929,7 @@ const SCREENS = runtimeSetting({
|
|
|
26914
26929
|
"package": "himalaya",
|
|
26915
26930
|
"type": "HStack",
|
|
26916
26931
|
"props": {
|
|
26932
|
+
"alignment": "center",
|
|
26917
26933
|
"children": [
|
|
26918
26934
|
{
|
|
26919
26935
|
"id": "",
|
|
@@ -26964,6 +26980,7 @@ const SCREENS = runtimeSetting({
|
|
|
26964
26980
|
"package": "himalaya",
|
|
26965
26981
|
"type": "HStack",
|
|
26966
26982
|
"props": {
|
|
26983
|
+
"alignment": "center",
|
|
26967
26984
|
"children": [
|
|
26968
26985
|
{
|
|
26969
26986
|
"id": "",
|
|
@@ -30268,6 +30285,7 @@ const SCREENS = runtimeSetting({
|
|
|
30268
30285
|
"package": "himalaya",
|
|
30269
30286
|
"type": "HStack",
|
|
30270
30287
|
"props": {
|
|
30288
|
+
"alignment": "center",
|
|
30271
30289
|
"children": [
|
|
30272
30290
|
{
|
|
30273
30291
|
"id": "",
|
|
@@ -30318,6 +30336,7 @@ const SCREENS = runtimeSetting({
|
|
|
30318
30336
|
"package": "himalaya",
|
|
30319
30337
|
"type": "HStack",
|
|
30320
30338
|
"props": {
|
|
30339
|
+
"alignment": "center",
|
|
30321
30340
|
"children": [
|
|
30322
30341
|
{
|
|
30323
30342
|
"id": "",
|
|
@@ -33622,6 +33641,7 @@ const SCREENS = runtimeSetting({
|
|
|
33622
33641
|
"package": "himalaya",
|
|
33623
33642
|
"type": "HStack",
|
|
33624
33643
|
"props": {
|
|
33644
|
+
"alignment": "center",
|
|
33625
33645
|
"children": [
|
|
33626
33646
|
{
|
|
33627
33647
|
"id": "",
|
|
@@ -36709,6 +36729,7 @@ const SCREENS = runtimeSetting({
|
|
|
36709
36729
|
"package": "himalaya",
|
|
36710
36730
|
"type": "HStack",
|
|
36711
36731
|
"props": {
|
|
36732
|
+
"alignment": "center",
|
|
36712
36733
|
"children": [
|
|
36713
36734
|
{
|
|
36714
36735
|
"id": "",
|
|
@@ -36759,6 +36780,7 @@ const SCREENS = runtimeSetting({
|
|
|
36759
36780
|
"package": "himalaya",
|
|
36760
36781
|
"type": "HStack",
|
|
36761
36782
|
"props": {
|
|
36783
|
+
"alignment": "center",
|
|
36762
36784
|
"children": [
|
|
36763
36785
|
{
|
|
36764
36786
|
"id": "",
|
|
@@ -40063,6 +40085,7 @@ const SCREENS = runtimeSetting({
|
|
|
40063
40085
|
"package": "himalaya",
|
|
40064
40086
|
"type": "HStack",
|
|
40065
40087
|
"props": {
|
|
40088
|
+
"alignment": "center",
|
|
40066
40089
|
"children": [
|
|
40067
40090
|
{
|
|
40068
40091
|
"id": "",
|
|
@@ -40113,6 +40136,7 @@ const SCREENS = runtimeSetting({
|
|
|
40113
40136
|
"package": "himalaya",
|
|
40114
40137
|
"type": "HStack",
|
|
40115
40138
|
"props": {
|
|
40139
|
+
"alignment": "center",
|
|
40116
40140
|
"children": [
|
|
40117
40141
|
{
|
|
40118
40142
|
"id": "",
|
|
@@ -43417,6 +43441,7 @@ const SCREENS = runtimeSetting({
|
|
|
43417
43441
|
"package": "himalaya",
|
|
43418
43442
|
"type": "HStack",
|
|
43419
43443
|
"props": {
|
|
43444
|
+
"alignment": "center",
|
|
43420
43445
|
"children": [
|
|
43421
43446
|
{
|
|
43422
43447
|
"id": "",
|
|
@@ -43467,6 +43492,7 @@ const SCREENS = runtimeSetting({
|
|
|
43467
43492
|
"package": "himalaya",
|
|
43468
43493
|
"type": "HStack",
|
|
43469
43494
|
"props": {
|
|
43495
|
+
"alignment": "center",
|
|
43470
43496
|
"children": [
|
|
43471
43497
|
{
|
|
43472
43498
|
"id": "",
|
|
@@ -46771,6 +46797,7 @@ const SCREENS = runtimeSetting({
|
|
|
46771
46797
|
"package": "himalaya",
|
|
46772
46798
|
"type": "HStack",
|
|
46773
46799
|
"props": {
|
|
46800
|
+
"alignment": "center",
|
|
46774
46801
|
"children": [
|
|
46775
46802
|
{
|
|
46776
46803
|
"id": "",
|
|
@@ -68444,6 +68471,7 @@ const SCREENS = runtimeSetting({
|
|
|
68444
68471
|
"package": "himalaya",
|
|
68445
68472
|
"type": "HStack",
|
|
68446
68473
|
"props": {
|
|
68474
|
+
"alignment": "center",
|
|
68447
68475
|
"children": [
|
|
68448
68476
|
{
|
|
68449
68477
|
"id": "",
|
|
@@ -68494,6 +68522,7 @@ const SCREENS = runtimeSetting({
|
|
|
68494
68522
|
"package": "himalaya",
|
|
68495
68523
|
"type": "HStack",
|
|
68496
68524
|
"props": {
|
|
68525
|
+
"alignment": "center",
|
|
68497
68526
|
"children": [
|
|
68498
68527
|
{
|
|
68499
68528
|
"id": "",
|
|
@@ -71174,6 +71203,7 @@ const SCREENS = runtimeSetting({
|
|
|
71174
71203
|
"package": "himalaya",
|
|
71175
71204
|
"type": "HStack",
|
|
71176
71205
|
"props": {
|
|
71206
|
+
"alignment": "center",
|
|
71177
71207
|
"children": [
|
|
71178
71208
|
{
|
|
71179
71209
|
"id": "",
|
|
@@ -71224,6 +71254,7 @@ const SCREENS = runtimeSetting({
|
|
|
71224
71254
|
"package": "himalaya",
|
|
71225
71255
|
"type": "HStack",
|
|
71226
71256
|
"props": {
|
|
71257
|
+
"alignment": "center",
|
|
71227
71258
|
"children": [
|
|
71228
71259
|
{
|
|
71229
71260
|
"id": "",
|
|
@@ -73703,6 +73734,7 @@ const SCREENS = runtimeSetting({
|
|
|
73703
73734
|
"package": "himalaya",
|
|
73704
73735
|
"type": "HStack",
|
|
73705
73736
|
"props": {
|
|
73737
|
+
"alignment": "center",
|
|
73706
73738
|
"children": [
|
|
73707
73739
|
{
|
|
73708
73740
|
"id": "",
|
|
@@ -73753,6 +73785,7 @@ const SCREENS = runtimeSetting({
|
|
|
73753
73785
|
"package": "himalaya",
|
|
73754
73786
|
"type": "HStack",
|
|
73755
73787
|
"props": {
|
|
73788
|
+
"alignment": "center",
|
|
73756
73789
|
"children": [
|
|
73757
73790
|
{
|
|
73758
73791
|
"id": "",
|
|
@@ -76281,6 +76314,7 @@ const SCREENS = runtimeSetting({
|
|
|
76281
76314
|
"package": "himalaya",
|
|
76282
76315
|
"type": "HStack",
|
|
76283
76316
|
"props": {
|
|
76317
|
+
"alignment": "center",
|
|
76284
76318
|
"children": [
|
|
76285
76319
|
{
|
|
76286
76320
|
"id": "",
|
|
@@ -76331,6 +76365,7 @@ const SCREENS = runtimeSetting({
|
|
|
76331
76365
|
"package": "himalaya",
|
|
76332
76366
|
"type": "HStack",
|
|
76333
76367
|
"props": {
|
|
76368
|
+
"alignment": "center",
|
|
76334
76369
|
"children": [
|
|
76335
76370
|
{
|
|
76336
76371
|
"id": "",
|
|
@@ -78920,6 +78955,7 @@ const SCREENS = runtimeSetting({
|
|
|
78920
78955
|
"package": "himalaya",
|
|
78921
78956
|
"type": "HStack",
|
|
78922
78957
|
"props": {
|
|
78958
|
+
"alignment": "center",
|
|
78923
78959
|
"children": [
|
|
78924
78960
|
{
|
|
78925
78961
|
"id": "",
|
|
@@ -78970,6 +79006,7 @@ const SCREENS = runtimeSetting({
|
|
|
78970
79006
|
"package": "himalaya",
|
|
78971
79007
|
"type": "HStack",
|
|
78972
79008
|
"props": {
|
|
79009
|
+
"alignment": "center",
|
|
78973
79010
|
"children": [
|
|
78974
79011
|
{
|
|
78975
79012
|
"id": "",
|
|
@@ -13146,6 +13146,7 @@ const SCREENS = runtimeSetting({
|
|
|
13146
13146
|
"package": "himalaya",
|
|
13147
13147
|
"type": "HStack",
|
|
13148
13148
|
"props": {
|
|
13149
|
+
"alignment": "center",
|
|
13149
13150
|
"children": [
|
|
13150
13151
|
{
|
|
13151
13152
|
"id": "",
|
|
@@ -18912,6 +18913,7 @@ const SCREENS = runtimeSetting({
|
|
|
18912
18913
|
"package": "himalaya",
|
|
18913
18914
|
"type": "HStack",
|
|
18914
18915
|
"props": {
|
|
18916
|
+
"alignment": "center",
|
|
18915
18917
|
"children": [
|
|
18916
18918
|
{
|
|
18917
18919
|
"id": "",
|
|
@@ -13,7 +13,7 @@ import { session as wixPlatformSession } from "@himalaya/wix-platform";
|
|
|
13
13
|
import { copyParam, copyTemplate, stashCopy } from "../_shared/himi-copy.js";
|
|
14
14
|
import { activePlanIds, entitlement, isPaymentSetupFailure, payCashierOrder } from "@himalaya/checkout";
|
|
15
15
|
import { hostSessionFromGlobal, iapPriceFields, type IapCatalogItem } from "@himalaya/iap";
|
|
16
|
-
import { createIapCommerce, pricingPlanOrders } from "@himalaya/iap-checkout";
|
|
16
|
+
import { applePlanPeriod, createIapCommerce, isAppleSellablePlan, pricingPlanOrders } from "@himalaya/iap-checkout";
|
|
17
17
|
import { iapPriceCopy, iapPurchaseCopy, resetUnhydratedKeysOnOlderRuntime } from "../_shared/iap-worker.js";
|
|
18
18
|
import { formatCurrency } from "../_shared/engine-intl.js";
|
|
19
19
|
import { isHostedWorker, hostedSitePageOpener } from "../_shared/hosted-checkout.js";
|
|
@@ -67,6 +67,8 @@ interface PlanRow {
|
|
|
67
67
|
free: boolean;
|
|
68
68
|
joined: boolean;
|
|
69
69
|
appleSupported: boolean;
|
|
70
|
+
/** The App Store period Apple must renew it at ("" for a one-time plan): offered only on a matching price. */
|
|
71
|
+
applePeriod: string;
|
|
70
72
|
joinLabel: string;
|
|
71
73
|
joinDisabled: boolean;
|
|
72
74
|
joinNote: string;
|
|
@@ -142,6 +144,12 @@ function isFreePlan(plan: WixPlan): boolean {
|
|
|
142
144
|
return raw !== undefined && raw !== "" && Number(raw) === 0;
|
|
143
145
|
}
|
|
144
146
|
|
|
147
|
+
/** Apple sells the plan only on the terms it bills: a recurring plan as a renewing App Store price. Only a
|
|
148
|
+
* settled price says whether it renews; while one reloads, the purchase fields keep the last route. */
|
|
149
|
+
function appleOffered(row: PlanRow, view: { route: string; renews?: true; subscriptionPeriod?: string }): boolean {
|
|
150
|
+
return row.appleSupported && (view.route !== "appleIap" || row.applePeriod === (view.renews ? view.subscriptionPeriod ?? "" : ""));
|
|
151
|
+
}
|
|
152
|
+
|
|
145
153
|
function planRow(plan: WixPlan): PlanRow {
|
|
146
154
|
const name = (plan.name || copyParam("plans.planFallbackName", "Plan")).trim();
|
|
147
155
|
const perks = (plan.perks?.values ?? [])
|
|
@@ -173,7 +181,8 @@ function planRow(plan: WixPlan): PlanRow {
|
|
|
173
181
|
hasBadge: !!badge,
|
|
174
182
|
joinUrl: joinUrl(plan),
|
|
175
183
|
free: isFreePlan(plan),
|
|
176
|
-
appleSupported: plan.pricing
|
|
184
|
+
appleSupported: isAppleSellablePlan(plan.pricing),
|
|
185
|
+
applePeriod: applePlanPeriod(plan.pricing),
|
|
177
186
|
joined: false, joinLabel: copyParam("plans.joinCta", "Continue"), joinDisabled: true, joinNote: "",
|
|
178
187
|
};
|
|
179
188
|
}
|
|
@@ -242,14 +251,14 @@ function pricedState(state: State): State {
|
|
|
242
251
|
const regularReady = regularGeneration === memberSession.current().generation && (!memberSession.identityBound || memberSession.current().kind === "member");
|
|
243
252
|
const joined = apple ? purchase.accessReady : regularReady && regularAccess.has(row.id);
|
|
244
253
|
return { ...row, expanded: expandedPlans.has(row.id), benefitsCollapsed: !expandedPlans.has(row.id), benefitsState: expandedPlans.has(row.id) ? "expanded" : "collapsed", priceLine: view.route === "disabled" ? row.priceLine : price.priceText,
|
|
245
|
-
periodLine: apple ? price.priceNote : view.route === "regular" || view.route === "disabled" ? row.periodLine : "",
|
|
254
|
+
periodLine: apple && !view.renews ? price.priceNote : view.route === "regular" || view.route === "disabled" || view.renews ? row.periodLine : "",
|
|
246
255
|
trialBadge: apple || price.actionDisabled ? "" : row.trialBadge,
|
|
247
|
-
validity: apple ? "" : row.validity,
|
|
256
|
+
validity: apple && !view.renews ? "" : row.validity,
|
|
248
257
|
noTrialBadge: apple || price.actionDisabled || row.noTrialBadge,
|
|
249
258
|
joined,
|
|
250
259
|
joinLabel: joined ? copyParam("plans.joinedLabel", "Current plan") : apple ? purchase.buyLabel : row.joinLabel,
|
|
251
|
-
joinDisabled: joined || (apple ? purchase.buyDisabled || !row
|
|
252
|
-
joinNote: apple ? row
|
|
260
|
+
joinDisabled: joined || (apple ? purchase.buyDisabled || !appleOffered(row, view) : price.actionDisabled || !regularReady) || joining.has(row.id),
|
|
261
|
+
joinNote: apple ? appleOffered(row, view) ? purchase.buyNote : iapPriceCopy("plans").purchaseUnavailable : price.actionNote };
|
|
253
262
|
});
|
|
254
263
|
const detail = priced.find(row => row.id === detailInputId()) ?? null;
|
|
255
264
|
const owned = detailInputId() ? detail?.joined ? detail : undefined : priced.find(row => row.joined);
|
|
@@ -442,7 +451,7 @@ const svc = defineService<State, {
|
|
|
442
451
|
const purchase = commerce.purchaseFields(reference, iapPurchaseCopy("plans"));
|
|
443
452
|
if (purchase.accessReady) return undefined;
|
|
444
453
|
if (purchase.appleRoute) {
|
|
445
|
-
if (!row.
|
|
454
|
+
if (!appleOffered(row, commerce.pricing.view(reference))) return undefined;
|
|
446
455
|
await commerce.buy({ reference });
|
|
447
456
|
void svc.pricingPublish();
|
|
448
457
|
return undefined;
|
|
@@ -349,6 +349,7 @@ const SCREENS = runtimeSetting({
|
|
|
349
349
|
"package": "himalaya",
|
|
350
350
|
"type": "HStack",
|
|
351
351
|
"props": {
|
|
352
|
+
"alignment": "center",
|
|
352
353
|
"children": [
|
|
353
354
|
{
|
|
354
355
|
"id": "",
|
|
@@ -399,6 +400,7 @@ const SCREENS = runtimeSetting({
|
|
|
399
400
|
"package": "himalaya",
|
|
400
401
|
"type": "HStack",
|
|
401
402
|
"props": {
|
|
403
|
+
"alignment": "center",
|
|
402
404
|
"children": [
|
|
403
405
|
{
|
|
404
406
|
"id": "",
|
|
@@ -3703,6 +3705,7 @@ const SCREENS = runtimeSetting({
|
|
|
3703
3705
|
"package": "himalaya",
|
|
3704
3706
|
"type": "HStack",
|
|
3705
3707
|
"props": {
|
|
3708
|
+
"alignment": "center",
|
|
3706
3709
|
"children": [
|
|
3707
3710
|
{
|
|
3708
3711
|
"id": "",
|
|
@@ -3753,6 +3756,7 @@ const SCREENS = runtimeSetting({
|
|
|
3753
3756
|
"package": "himalaya",
|
|
3754
3757
|
"type": "HStack",
|
|
3755
3758
|
"props": {
|
|
3759
|
+
"alignment": "center",
|
|
3756
3760
|
"children": [
|
|
3757
3761
|
{
|
|
3758
3762
|
"id": "",
|
|
@@ -7057,6 +7061,7 @@ const SCREENS = runtimeSetting({
|
|
|
7057
7061
|
"package": "himalaya",
|
|
7058
7062
|
"type": "HStack",
|
|
7059
7063
|
"props": {
|
|
7064
|
+
"alignment": "center",
|
|
7060
7065
|
"children": [
|
|
7061
7066
|
{
|
|
7062
7067
|
"id": "",
|
|
@@ -10144,6 +10149,7 @@ const SCREENS = runtimeSetting({
|
|
|
10144
10149
|
"package": "himalaya",
|
|
10145
10150
|
"type": "HStack",
|
|
10146
10151
|
"props": {
|
|
10152
|
+
"alignment": "center",
|
|
10147
10153
|
"children": [
|
|
10148
10154
|
{
|
|
10149
10155
|
"id": "",
|
|
@@ -10194,6 +10200,7 @@ const SCREENS = runtimeSetting({
|
|
|
10194
10200
|
"package": "himalaya",
|
|
10195
10201
|
"type": "HStack",
|
|
10196
10202
|
"props": {
|
|
10203
|
+
"alignment": "center",
|
|
10197
10204
|
"children": [
|
|
10198
10205
|
{
|
|
10199
10206
|
"id": "",
|
|
@@ -13498,6 +13505,7 @@ const SCREENS = runtimeSetting({
|
|
|
13498
13505
|
"package": "himalaya",
|
|
13499
13506
|
"type": "HStack",
|
|
13500
13507
|
"props": {
|
|
13508
|
+
"alignment": "center",
|
|
13501
13509
|
"children": [
|
|
13502
13510
|
{
|
|
13503
13511
|
"id": "",
|
|
@@ -13548,6 +13556,7 @@ const SCREENS = runtimeSetting({
|
|
|
13548
13556
|
"package": "himalaya",
|
|
13549
13557
|
"type": "HStack",
|
|
13550
13558
|
"props": {
|
|
13559
|
+
"alignment": "center",
|
|
13551
13560
|
"children": [
|
|
13552
13561
|
{
|
|
13553
13562
|
"id": "",
|
|
@@ -16852,6 +16861,7 @@ const SCREENS = runtimeSetting({
|
|
|
16852
16861
|
"package": "himalaya",
|
|
16853
16862
|
"type": "HStack",
|
|
16854
16863
|
"props": {
|
|
16864
|
+
"alignment": "center",
|
|
16855
16865
|
"children": [
|
|
16856
16866
|
{
|
|
16857
16867
|
"id": "",
|
|
@@ -16902,6 +16912,7 @@ const SCREENS = runtimeSetting({
|
|
|
16902
16912
|
"package": "himalaya",
|
|
16903
16913
|
"type": "HStack",
|
|
16904
16914
|
"props": {
|
|
16915
|
+
"alignment": "center",
|
|
16905
16916
|
"children": [
|
|
16906
16917
|
{
|
|
16907
16918
|
"id": "",
|
|
@@ -20206,6 +20217,7 @@ const SCREENS = runtimeSetting({
|
|
|
20206
20217
|
"package": "himalaya",
|
|
20207
20218
|
"type": "HStack",
|
|
20208
20219
|
"props": {
|
|
20220
|
+
"alignment": "center",
|
|
20209
20221
|
"children": [
|
|
20210
20222
|
{
|
|
20211
20223
|
"id": "",
|
|
@@ -20256,6 +20268,7 @@ const SCREENS = runtimeSetting({
|
|
|
20256
20268
|
"package": "himalaya",
|
|
20257
20269
|
"type": "HStack",
|
|
20258
20270
|
"props": {
|
|
20271
|
+
"alignment": "center",
|
|
20259
20272
|
"children": [
|
|
20260
20273
|
{
|
|
20261
20274
|
"id": "",
|
|
@@ -23560,6 +23573,7 @@ const SCREENS = runtimeSetting({
|
|
|
23560
23573
|
"package": "himalaya",
|
|
23561
23574
|
"type": "HStack",
|
|
23562
23575
|
"props": {
|
|
23576
|
+
"alignment": "center",
|
|
23563
23577
|
"children": [
|
|
23564
23578
|
{
|
|
23565
23579
|
"id": "",
|
|
@@ -23610,6 +23624,7 @@ const SCREENS = runtimeSetting({
|
|
|
23610
23624
|
"package": "himalaya",
|
|
23611
23625
|
"type": "HStack",
|
|
23612
23626
|
"props": {
|
|
23627
|
+
"alignment": "center",
|
|
23613
23628
|
"children": [
|
|
23614
23629
|
{
|
|
23615
23630
|
"id": "",
|
|
@@ -26914,6 +26929,7 @@ const SCREENS = runtimeSetting({
|
|
|
26914
26929
|
"package": "himalaya",
|
|
26915
26930
|
"type": "HStack",
|
|
26916
26931
|
"props": {
|
|
26932
|
+
"alignment": "center",
|
|
26917
26933
|
"children": [
|
|
26918
26934
|
{
|
|
26919
26935
|
"id": "",
|
|
@@ -26964,6 +26980,7 @@ const SCREENS = runtimeSetting({
|
|
|
26964
26980
|
"package": "himalaya",
|
|
26965
26981
|
"type": "HStack",
|
|
26966
26982
|
"props": {
|
|
26983
|
+
"alignment": "center",
|
|
26967
26984
|
"children": [
|
|
26968
26985
|
{
|
|
26969
26986
|
"id": "",
|
|
@@ -30268,6 +30285,7 @@ const SCREENS = runtimeSetting({
|
|
|
30268
30285
|
"package": "himalaya",
|
|
30269
30286
|
"type": "HStack",
|
|
30270
30287
|
"props": {
|
|
30288
|
+
"alignment": "center",
|
|
30271
30289
|
"children": [
|
|
30272
30290
|
{
|
|
30273
30291
|
"id": "",
|
|
@@ -30318,6 +30336,7 @@ const SCREENS = runtimeSetting({
|
|
|
30318
30336
|
"package": "himalaya",
|
|
30319
30337
|
"type": "HStack",
|
|
30320
30338
|
"props": {
|
|
30339
|
+
"alignment": "center",
|
|
30321
30340
|
"children": [
|
|
30322
30341
|
{
|
|
30323
30342
|
"id": "",
|
|
@@ -33622,6 +33641,7 @@ const SCREENS = runtimeSetting({
|
|
|
33622
33641
|
"package": "himalaya",
|
|
33623
33642
|
"type": "HStack",
|
|
33624
33643
|
"props": {
|
|
33644
|
+
"alignment": "center",
|
|
33625
33645
|
"children": [
|
|
33626
33646
|
{
|
|
33627
33647
|
"id": "",
|
|
@@ -36709,6 +36729,7 @@ const SCREENS = runtimeSetting({
|
|
|
36709
36729
|
"package": "himalaya",
|
|
36710
36730
|
"type": "HStack",
|
|
36711
36731
|
"props": {
|
|
36732
|
+
"alignment": "center",
|
|
36712
36733
|
"children": [
|
|
36713
36734
|
{
|
|
36714
36735
|
"id": "",
|
|
@@ -36759,6 +36780,7 @@ const SCREENS = runtimeSetting({
|
|
|
36759
36780
|
"package": "himalaya",
|
|
36760
36781
|
"type": "HStack",
|
|
36761
36782
|
"props": {
|
|
36783
|
+
"alignment": "center",
|
|
36762
36784
|
"children": [
|
|
36763
36785
|
{
|
|
36764
36786
|
"id": "",
|
|
@@ -40063,6 +40085,7 @@ const SCREENS = runtimeSetting({
|
|
|
40063
40085
|
"package": "himalaya",
|
|
40064
40086
|
"type": "HStack",
|
|
40065
40087
|
"props": {
|
|
40088
|
+
"alignment": "center",
|
|
40066
40089
|
"children": [
|
|
40067
40090
|
{
|
|
40068
40091
|
"id": "",
|
|
@@ -40113,6 +40136,7 @@ const SCREENS = runtimeSetting({
|
|
|
40113
40136
|
"package": "himalaya",
|
|
40114
40137
|
"type": "HStack",
|
|
40115
40138
|
"props": {
|
|
40139
|
+
"alignment": "center",
|
|
40116
40140
|
"children": [
|
|
40117
40141
|
{
|
|
40118
40142
|
"id": "",
|
|
@@ -43417,6 +43441,7 @@ const SCREENS = runtimeSetting({
|
|
|
43417
43441
|
"package": "himalaya",
|
|
43418
43442
|
"type": "HStack",
|
|
43419
43443
|
"props": {
|
|
43444
|
+
"alignment": "center",
|
|
43420
43445
|
"children": [
|
|
43421
43446
|
{
|
|
43422
43447
|
"id": "",
|
|
@@ -43467,6 +43492,7 @@ const SCREENS = runtimeSetting({
|
|
|
43467
43492
|
"package": "himalaya",
|
|
43468
43493
|
"type": "HStack",
|
|
43469
43494
|
"props": {
|
|
43495
|
+
"alignment": "center",
|
|
43470
43496
|
"children": [
|
|
43471
43497
|
{
|
|
43472
43498
|
"id": "",
|
|
@@ -46771,6 +46797,7 @@ const SCREENS = runtimeSetting({
|
|
|
46771
46797
|
"package": "himalaya",
|
|
46772
46798
|
"type": "HStack",
|
|
46773
46799
|
"props": {
|
|
46800
|
+
"alignment": "center",
|
|
46774
46801
|
"children": [
|
|
46775
46802
|
{
|
|
46776
46803
|
"id": "",
|
|
@@ -68001,6 +68028,7 @@ const SCREENS = runtimeSetting({
|
|
|
68001
68028
|
"package": "himalaya",
|
|
68002
68029
|
"type": "HStack",
|
|
68003
68030
|
"props": {
|
|
68031
|
+
"alignment": "center",
|
|
68004
68032
|
"children": [
|
|
68005
68033
|
{
|
|
68006
68034
|
"id": "",
|
|
@@ -68051,6 +68079,7 @@ const SCREENS = runtimeSetting({
|
|
|
68051
68079
|
"package": "himalaya",
|
|
68052
68080
|
"type": "HStack",
|
|
68053
68081
|
"props": {
|
|
68082
|
+
"alignment": "center",
|
|
68054
68083
|
"children": [
|
|
68055
68084
|
{
|
|
68056
68085
|
"id": "",
|
|
@@ -70530,6 +70559,7 @@ const SCREENS = runtimeSetting({
|
|
|
70530
70559
|
"package": "himalaya",
|
|
70531
70560
|
"type": "HStack",
|
|
70532
70561
|
"props": {
|
|
70562
|
+
"alignment": "center",
|
|
70533
70563
|
"children": [
|
|
70534
70564
|
{
|
|
70535
70565
|
"id": "",
|
|
@@ -70580,6 +70610,7 @@ const SCREENS = runtimeSetting({
|
|
|
70580
70610
|
"package": "himalaya",
|
|
70581
70611
|
"type": "HStack",
|
|
70582
70612
|
"props": {
|
|
70613
|
+
"alignment": "center",
|
|
70583
70614
|
"children": [
|
|
70584
70615
|
{
|
|
70585
70616
|
"id": "",
|
|
@@ -73108,6 +73139,7 @@ const SCREENS = runtimeSetting({
|
|
|
73108
73139
|
"package": "himalaya",
|
|
73109
73140
|
"type": "HStack",
|
|
73110
73141
|
"props": {
|
|
73142
|
+
"alignment": "center",
|
|
73111
73143
|
"children": [
|
|
73112
73144
|
{
|
|
73113
73145
|
"id": "",
|
|
@@ -73158,6 +73190,7 @@ const SCREENS = runtimeSetting({
|
|
|
73158
73190
|
"package": "himalaya",
|
|
73159
73191
|
"type": "HStack",
|
|
73160
73192
|
"props": {
|
|
73193
|
+
"alignment": "center",
|
|
73161
73194
|
"children": [
|
|
73162
73195
|
{
|
|
73163
73196
|
"id": "",
|