@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.
Files changed (71) hide show
  1. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/sdk/entity-extraction/src/index.d.ts +34 -0
  2. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/sdk/iap/src/catalog-pricing-contract.d.ts +4 -0
  3. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/sdk/iap/src/pricing-contract.d.ts +6 -1
  4. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/sdk/iap/src/wix-payments-contract.d.ts +10 -0
  5. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/sdk/sdk-types/src/capabilities.generated.d.ts +4 -1
  6. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/sdk/text-embedding/src/index.d.ts +37 -0
  7. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/sdk/translation/src/index.d.ts +51 -0
  8. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/sdk/webview-page/src/capabilities.generated.d.ts +6 -0
  9. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/ts/src/define-app.d.ts +1 -1
  10. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/flows/iap-checkout/src/iap-verticals/index.d.ts +1 -0
  11. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/flows/iap-checkout/src/iap-verticals/pricing-plans.d.ts +20 -0
  12. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/flows/iap-checkout/src/index.d.ts +1 -1
  13. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/flows/screens/src/index.d.ts +2 -0
  14. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/audio-record.mjs +3 -0
  15. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/calendar.mjs +3 -0
  16. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/calls.mjs +3 -0
  17. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/contacts.mjs +3 -0
  18. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/core.mjs +3 -0
  19. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/entity-extraction.mjs +38 -0
  20. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/iap-checkout.mjs +49 -8
  21. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/iap.mjs +35 -9
  22. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/location.mjs +3 -0
  23. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/motion.mjs +3 -0
  24. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/photos.mjs +3 -0
  25. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/screens.mjs +57 -14
  26. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/sdk-types.mjs +3 -0
  27. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/tasks.mjs +3 -0
  28. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/text-embedding.mjs +76 -0
  29. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/translation.mjs +66 -0
  30. package/dist/authoring-runtime/node_modules/@wix/himalaya/package.json +12 -0
  31. package/dist/browser-plane/assets.json +5 -5
  32. package/dist/browser-plane/preview-deferred/{ec5d778f3e7ecbc2351ab7a8f3509483b798094de9f889fe8b03447db1413cb6.bin → 9c4b4a8e0772f247f08e61b35d51b0bd2574408381cab23ec88cad1c7df68177.bin} +1 -1
  33. package/dist/browser-plane/sw.js +8 -8
  34. package/dist/cli.mjs +514 -315
  35. package/dist/preview-assets.generated.bin +0 -0
  36. package/guides/app-config.md +1 -1
  37. package/guides/capabilities.md +3 -0
  38. package/guides/iap-pricing.md +2 -2
  39. package/guides/iap-screen-adoption.md +1 -1
  40. package/guides/importable-sdks.md +3 -0
  41. package/guides/release-notes.md +30 -0
  42. package/guides/sdk-reference.json +252 -7
  43. package/guides/web-page-sdk-reference.md +3 -0
  44. package/package.json +2 -2
  45. package/templates/beauty-salon/tier5-src/himi-branded-lite-plans/index.ts +16 -7
  46. package/templates/beauty-salon-owner/dev/index.ts +35 -0
  47. package/templates/branded-lite/dev/index.ts +16 -0
  48. package/templates/branded-lite/tier5-src/himi-branded-lite-plans/index.ts +16 -7
  49. package/templates/community-club/dev/index.ts +2 -0
  50. package/templates/community-club-owner/dev/index.ts +35 -0
  51. package/templates/conference/dev/index.ts +1 -0
  52. package/templates/events-meetups/dev/index.ts +2 -0
  53. package/templates/events-meetups-owner/dev/index.ts +31 -0
  54. package/templates/gym-fitness/dev/index.ts +1 -0
  55. package/templates/gym-fitness/tier5-src/himi-branded-lite-plans/index.ts +16 -7
  56. package/templates/gym-fitness-owner/dev/index.ts +37 -0
  57. package/templates/nonprofit-cause/dev/index.ts +2 -0
  58. package/templates/nonprofit-cause/tier5-src/himi-branded-lite-plans/index.ts +16 -7
  59. package/templates/nonprofit-cause-owner/dev/index.ts +33 -0
  60. package/templates/owner-lite/dev/index.ts +37 -0
  61. package/templates/podcast-creator/dev/index.ts +2 -0
  62. package/templates/podcast-creator/tier5-src/himi-branded-lite-plans/index.ts +16 -7
  63. package/templates/podcast-creator-owner/dev/index.ts +35 -0
  64. package/templates/portfolio-creative/dev/index.ts +2 -0
  65. package/templates/portfolio-creative-owner/dev/index.ts +35 -0
  66. package/templates/restaurant/dev/index.ts +2 -0
  67. package/templates/restaurant-owner/dev/index.ts +37 -0
  68. package/templates/retail-store-owner/dev/index.ts +33 -0
  69. package/templates/yoga-studio/dev/index.ts +2 -0
  70. package/templates/yoga-studio/tier5-src/himi-branded-lite-plans/index.ts +16 -7
  71. 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": "",
@@ -68368,6 +68395,7 @@ const SCREENS = runtimeSetting({
68368
68395
  "package": "himalaya",
68369
68396
  "type": "HStack",
68370
68397
  "props": {
68398
+ "alignment": "center",
68371
68399
  "children": [
68372
68400
  {
68373
68401
  "id": "",
@@ -68418,6 +68446,7 @@ const SCREENS = runtimeSetting({
68418
68446
  "package": "himalaya",
68419
68447
  "type": "HStack",
68420
68448
  "props": {
68449
+ "alignment": "center",
68421
68450
  "children": [
68422
68451
  {
68423
68452
  "id": "",
@@ -71098,6 +71127,7 @@ const SCREENS = runtimeSetting({
71098
71127
  "package": "himalaya",
71099
71128
  "type": "HStack",
71100
71129
  "props": {
71130
+ "alignment": "center",
71101
71131
  "children": [
71102
71132
  {
71103
71133
  "id": "",
@@ -71148,6 +71178,7 @@ const SCREENS = runtimeSetting({
71148
71178
  "package": "himalaya",
71149
71179
  "type": "HStack",
71150
71180
  "props": {
71181
+ "alignment": "center",
71151
71182
  "children": [
71152
71183
  {
71153
71184
  "id": "",
@@ -73645,6 +73676,7 @@ const SCREENS = runtimeSetting({
73645
73676
  "package": "himalaya",
73646
73677
  "type": "HStack",
73647
73678
  "props": {
73679
+ "alignment": "center",
73648
73680
  "children": [
73649
73681
  {
73650
73682
  "id": "",
@@ -73695,6 +73727,7 @@ const SCREENS = runtimeSetting({
73695
73727
  "package": "himalaya",
73696
73728
  "type": "HStack",
73697
73729
  "props": {
73730
+ "alignment": "center",
73698
73731
  "children": [
73699
73732
  {
73700
73733
  "id": "",
@@ -76284,6 +76317,7 @@ const SCREENS = runtimeSetting({
76284
76317
  "package": "himalaya",
76285
76318
  "type": "HStack",
76286
76319
  "props": {
76320
+ "alignment": "center",
76287
76321
  "children": [
76288
76322
  {
76289
76323
  "id": "",
@@ -76334,6 +76368,7 @@ const SCREENS = runtimeSetting({
76334
76368
  "package": "himalaya",
76335
76369
  "type": "HStack",
76336
76370
  "props": {
76371
+ "alignment": "center",
76337
76372
  "children": [
76338
76373
  {
76339
76374
  "id": "",
@@ -28587,6 +28587,7 @@ const SCREENS = runtimeSetting({
28587
28587
  "package": "himalaya",
28588
28588
  "type": "HStack",
28589
28589
  "props": {
28590
+ "alignment": "center",
28590
28591
  "children": [
28591
28592
  {
28592
28593
  "id": "",
@@ -31781,6 +31782,7 @@ const SCREENS = runtimeSetting({
31781
31782
  "package": "himalaya",
31782
31783
  "type": "HStack",
31783
31784
  "props": {
31785
+ "alignment": "center",
31784
31786
  "children": [
31785
31787
  {
31786
31788
  "id": "",
@@ -41852,6 +41854,7 @@ const SCREENS = runtimeSetting({
41852
41854
  "package": "himalaya",
41853
41855
  "type": "HStack",
41854
41856
  "props": {
41857
+ "alignment": "center",
41855
41858
  "children": [
41856
41859
  {
41857
41860
  "id": "",
@@ -44482,6 +44485,7 @@ const SCREENS = runtimeSetting({
44482
44485
  "package": "himalaya",
44483
44486
  "type": "HStack",
44484
44487
  "props": {
44488
+ "alignment": "center",
44485
44489
  "children": [
44486
44490
  {
44487
44491
  "id": "",
@@ -47886,6 +47890,7 @@ const SCREENS = runtimeSetting({
47886
47890
  "package": "himalaya",
47887
47891
  "type": "HStack",
47888
47892
  "props": {
47893
+ "alignment": "center",
47889
47894
  "children": [
47890
47895
  {
47891
47896
  "id": "",
@@ -50708,6 +50713,7 @@ const SCREENS = runtimeSetting({
50708
50713
  "package": "himalaya",
50709
50714
  "type": "HStack",
50710
50715
  "props": {
50716
+ "alignment": "center",
50711
50717
  "children": [
50712
50718
  {
50713
50719
  "id": "",
@@ -53186,6 +53192,7 @@ const SCREENS = runtimeSetting({
53186
53192
  "package": "himalaya",
53187
53193
  "type": "HStack",
53188
53194
  "props": {
53195
+ "alignment": "center",
53189
53196
  "children": [
53190
53197
  {
53191
53198
  "id": "",
@@ -56342,6 +56349,7 @@ const SCREENS = runtimeSetting({
56342
56349
  "package": "himalaya",
56343
56350
  "type": "HStack",
56344
56351
  "props": {
56352
+ "alignment": "center",
56345
56353
  "children": [
56346
56354
  {
56347
56355
  "id": "",
@@ -58787,6 +58795,7 @@ const SCREENS = runtimeSetting({
58787
58795
  "package": "himalaya",
58788
58796
  "type": "HStack",
58789
58797
  "props": {
58798
+ "alignment": "center",
58790
58799
  "children": [
58791
58800
  {
58792
58801
  "id": "",
@@ -62382,6 +62391,7 @@ const SCREENS = runtimeSetting({
62382
62391
  "package": "himalaya",
62383
62392
  "type": "HStack",
62384
62393
  "props": {
62394
+ "alignment": "center",
62385
62395
  "children": [
62386
62396
  {
62387
62397
  "id": "",
@@ -68142,6 +68152,7 @@ const SCREENS = runtimeSetting({
68142
68152
  "package": "himalaya",
68143
68153
  "type": "HStack",
68144
68154
  "props": {
68155
+ "alignment": "center",
68145
68156
  "children": [
68146
68157
  {
68147
68158
  "id": "",
@@ -73978,6 +73989,7 @@ const SCREENS = runtimeSetting({
73978
73989
  "package": "himalaya",
73979
73990
  "type": "HStack",
73980
73991
  "props": {
73992
+ "alignment": "center",
73981
73993
  "children": [
73982
73994
  {
73983
73995
  "id": "",
@@ -76539,6 +76551,7 @@ const SCREENS = runtimeSetting({
76539
76551
  "package": "himalaya",
76540
76552
  "type": "HStack",
76541
76553
  "props": {
76554
+ "alignment": "center",
76542
76555
  "children": [
76543
76556
  {
76544
76557
  "id": "",
@@ -79370,6 +79383,7 @@ const SCREENS = runtimeSetting({
79370
79383
  "package": "himalaya",
79371
79384
  "type": "HStack",
79372
79385
  "props": {
79386
+ "alignment": "center",
79373
79387
  "children": [
79374
79388
  {
79375
79389
  "id": "",
@@ -82536,6 +82550,7 @@ const SCREENS = runtimeSetting({
82536
82550
  "package": "himalaya",
82537
82551
  "type": "HStack",
82538
82552
  "props": {
82553
+ "alignment": "center",
82539
82554
  "children": [
82540
82555
  {
82541
82556
  "id": "",
@@ -87305,6 +87320,7 @@ const SCREENS = runtimeSetting({
87305
87320
  "package": "himalaya",
87306
87321
  "type": "HStack",
87307
87322
  "props": {
87323
+ "alignment": "center",
87308
87324
  "children": [
87309
87325
  {
87310
87326
  "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?.singlePaymentUnlimited === true,
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.appleSupported : price.actionDisabled || !regularReady) || joining.has(row.id),
252
- joinNote: apple ? row.appleSupported ? purchase.buyNote : iapPriceCopy("plans").purchaseUnavailable : price.actionNote };
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.appleSupported) return undefined;
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;
@@ -9009,6 +9009,7 @@ const SCREENS = runtimeSetting({
9009
9009
  "package": "himalaya",
9010
9010
  "type": "HStack",
9011
9011
  "props": {
9012
+ "alignment": "center",
9012
9013
  "children": [
9013
9014
  {
9014
9015
  "id": "",
@@ -14775,6 +14776,7 @@ const SCREENS = runtimeSetting({
14775
14776
  "package": "himalaya",
14776
14777
  "type": "HStack",
14777
14778
  "props": {
14779
+ "alignment": "center",
14778
14780
  "children": [
14779
14781
  {
14780
14782
  "id": "",