@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": "",
|
|
@@ -68052,6 +68079,7 @@ const SCREENS = runtimeSetting({
|
|
|
68052
68079
|
"package": "himalaya",
|
|
68053
68080
|
"type": "HStack",
|
|
68054
68081
|
"props": {
|
|
68082
|
+
"alignment": "center",
|
|
68055
68083
|
"children": [
|
|
68056
68084
|
{
|
|
68057
68085
|
"id": "",
|
|
@@ -68102,6 +68130,7 @@ const SCREENS = runtimeSetting({
|
|
|
68102
68130
|
"package": "himalaya",
|
|
68103
68131
|
"type": "HStack",
|
|
68104
68132
|
"props": {
|
|
68133
|
+
"alignment": "center",
|
|
68105
68134
|
"children": [
|
|
68106
68135
|
{
|
|
68107
68136
|
"id": "",
|
|
@@ -70800,6 +70829,7 @@ const SCREENS = runtimeSetting({
|
|
|
70800
70829
|
"package": "himalaya",
|
|
70801
70830
|
"type": "HStack",
|
|
70802
70831
|
"props": {
|
|
70832
|
+
"alignment": "center",
|
|
70803
70833
|
"children": [
|
|
70804
70834
|
{
|
|
70805
70835
|
"id": "",
|
|
@@ -70850,6 +70880,7 @@ const SCREENS = runtimeSetting({
|
|
|
70850
70880
|
"package": "himalaya",
|
|
70851
70881
|
"type": "HStack",
|
|
70852
70882
|
"props": {
|
|
70883
|
+
"alignment": "center",
|
|
70853
70884
|
"children": [
|
|
70854
70885
|
{
|
|
70855
70886
|
"id": "",
|
|
@@ -73439,6 +73470,7 @@ const SCREENS = runtimeSetting({
|
|
|
73439
73470
|
"package": "himalaya",
|
|
73440
73471
|
"type": "HStack",
|
|
73441
73472
|
"props": {
|
|
73473
|
+
"alignment": "center",
|
|
73442
73474
|
"children": [
|
|
73443
73475
|
{
|
|
73444
73476
|
"id": "",
|
|
@@ -73489,6 +73521,7 @@ const SCREENS = runtimeSetting({
|
|
|
73489
73521
|
"package": "himalaya",
|
|
73490
73522
|
"type": "HStack",
|
|
73491
73523
|
"props": {
|
|
73524
|
+
"alignment": "center",
|
|
73492
73525
|
"children": [
|
|
73493
73526
|
{
|
|
73494
73527
|
"id": "",
|
|
@@ -16127,6 +16127,7 @@ const SCREENS = runtimeSetting({
|
|
|
16127
16127
|
"package": "himalaya",
|
|
16128
16128
|
"type": "HStack",
|
|
16129
16129
|
"props": {
|
|
16130
|
+
"alignment": "center",
|
|
16130
16131
|
"children": [
|
|
16131
16132
|
{
|
|
16132
16133
|
"id": "",
|
|
@@ -22613,6 +22614,7 @@ const SCREENS = runtimeSetting({
|
|
|
22613
22614
|
"package": "himalaya",
|
|
22614
22615
|
"type": "HStack",
|
|
22615
22616
|
"props": {
|
|
22617
|
+
"alignment": "center",
|
|
22616
22618
|
"children": [
|
|
22617
22619
|
{
|
|
22618
22620
|
"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": "",
|