@wix/himalaya-cli 0.1524.0 → 0.1526.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 (55) hide show
  1. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/dev-server/src/builder.d.ts +14 -0
  2. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/ts/src/schema.d.ts +22 -0
  3. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/ts/src/worker-subtree-safe-types.generated.d.ts +4 -0
  4. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/flows/iap-checkout/src/apple-iap-contract.d.ts +5 -1
  5. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/flows/iap-checkout/src/cashier-charges.d.ts +3 -0
  6. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/core.mjs +7 -0
  7. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/iap-checkout.mjs +35 -9
  8. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/iap.mjs +14 -1
  9. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/screens.mjs +34 -8
  10. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/sdui.mjs +13 -0
  11. package/dist/cli.mjs +136 -39
  12. package/dist/preview-assets.generated.bin +0 -0
  13. package/guides/designing-himi-screens.md +43 -18
  14. package/guides/recipe-dynamic-list.md +7 -7
  15. package/guides/recipe-four-state.md +47 -41
  16. package/guides/recipe-search.md +1 -1
  17. package/package.json +2 -2
  18. package/templates/beauty-salon/dev/index.ts +69 -40
  19. package/templates/beauty-salon/tier5-src/himi-branded-lite-agenda/index.ts +9 -1
  20. package/templates/beauty-salon/tier5-src/himi-branded-lite-place-summary/index.ts +12 -1
  21. package/templates/beauty-salon/tier5-src/himi-store-account/index.ts +69 -10
  22. package/templates/beauty-salon/tier5-src/himi-store-product/index.ts +153 -132
  23. package/templates/branded-lite/dev/index.ts +165 -88
  24. package/templates/branded-lite/tier5-src/business-chat/index.ts +4 -0
  25. package/templates/branded-lite/tier5-src/himi-branded-lite-agenda/index.ts +9 -1
  26. package/templates/branded-lite/tier5-src/himi-branded-lite-place-summary/index.ts +12 -1
  27. package/templates/branded-lite/tier5-src/himi-store-account/index.ts +69 -10
  28. package/templates/branded-lite/tier5-src/himi-store-product/index.ts +153 -132
  29. package/templates/community-club/dev/index.ts +40 -21
  30. package/templates/community-club/tier5-src/himi-store-account/index.ts +69 -10
  31. package/templates/events-meetups/dev/index.ts +36 -19
  32. package/templates/events-meetups/tier5-src/himi-store-account/index.ts +69 -10
  33. package/templates/gym-fitness/dev/index.ts +73 -42
  34. package/templates/gym-fitness/tier5-src/himi-branded-lite-agenda/index.ts +9 -1
  35. package/templates/gym-fitness/tier5-src/himi-branded-lite-place-summary/index.ts +12 -1
  36. package/templates/gym-fitness/tier5-src/himi-store-account/index.ts +69 -10
  37. package/templates/gym-fitness/tier5-src/himi-store-product/index.ts +153 -132
  38. package/templates/nonprofit-cause/dev/index.ts +47 -29
  39. package/templates/nonprofit-cause/tier5-src/himi-branded-lite-place-summary/index.ts +12 -1
  40. package/templates/nonprofit-cause/tier5-src/himi-store-account/index.ts +69 -10
  41. package/templates/podcast-creator/dev/index.ts +47 -29
  42. package/templates/podcast-creator/tier5-src/himi-branded-lite-place-summary/index.ts +12 -1
  43. package/templates/podcast-creator/tier5-src/himi-store-account/index.ts +69 -10
  44. package/templates/portfolio-creative/dev/index.ts +52 -27
  45. package/templates/portfolio-creative/tier5-src/himi-store-account/index.ts +69 -10
  46. package/templates/portfolio-creative/tier5-src/himi-store-product/index.ts +153 -132
  47. package/templates/restaurant/dev/index.ts +48 -25
  48. package/templates/restaurant/tier5-src/himi-store-account/index.ts +69 -10
  49. package/templates/retail-store/dev/index.ts +44 -23
  50. package/templates/retail-store/tier5-src/himi-store-account/index.ts +69 -10
  51. package/templates/retail-store/tier5-src/himi-store-product/index.ts +153 -132
  52. package/templates/yoga-studio/dev/index.ts +57 -34
  53. package/templates/yoga-studio/tier5-src/himi-branded-lite-agenda/index.ts +9 -1
  54. package/templates/yoga-studio/tier5-src/himi-branded-lite-place-summary/index.ts +12 -1
  55. package/templates/yoga-studio/tier5-src/himi-store-account/index.ts +69 -10
@@ -3520,8 +3520,10 @@ const SCREENS = runtimeSetting({
3520
3520
  "actionId": "himi.open",
3521
3521
  "params": {
3522
3522
  "screenId": "himi_sign_in",
3523
- "mode": "signin"
3524
- }
3523
+ "mode": "signin",
3524
+ "modal": "1"
3525
+ },
3526
+ "presentation": "sheet"
3525
3527
  }
3526
3528
  }
3527
3529
  }
@@ -3539,8 +3541,10 @@ const SCREENS = runtimeSetting({
3539
3541
  "actionId": "himi.open",
3540
3542
  "params": {
3541
3543
  "screenId": "himi_sign_in",
3542
- "mode": "register"
3543
- }
3544
+ "mode": "register",
3545
+ "modal": "1"
3546
+ },
3547
+ "presentation": "sheet"
3544
3548
  }
3545
3549
  }
3546
3550
  }
@@ -5228,6 +5232,8 @@ const SCREENS = runtimeSetting({
5228
5232
  "memberAccountLinks": "1",
5229
5233
  "restorePurchases": "1",
5230
5234
  "signInScreen": "himi_sign_in",
5235
+ "signInPresentation": "sheet",
5236
+ "signInReturnTab": "profile",
5231
5237
  "pollIdentity": "1",
5232
5238
  "cartCount": "1"
5233
5239
  }
@@ -5502,8 +5508,10 @@ const SCREENS = runtimeSetting({
5502
5508
  "params": {
5503
5509
  "screenId": "himi_sign_in",
5504
5510
  "mode": "signin",
5505
- "returnScreenId": "himi_account_settings"
5506
- }
5511
+ "returnScreenId": "himi_account_settings",
5512
+ "modal": "1"
5513
+ },
5514
+ "presentation": "sheet"
5507
5515
  }
5508
5516
  }
5509
5517
  },
@@ -7413,8 +7421,7 @@ const SCREENS = runtimeSetting({
7413
7421
  "style": "primary",
7414
7422
  "fullWidth": true,
7415
7423
  "action": {
7416
- "actionId": "nav.back",
7417
- "presentation": "back"
7424
+ "actionId": "tier5.himiStoreAccount.leave"
7418
7425
  }
7419
7426
  }
7420
7427
  }
@@ -7454,7 +7461,7 @@ const SCREENS = runtimeSetting({
7454
7461
  "declaredCapabilities": [
7455
7462
  "wix_api"
7456
7463
  ],
7457
- "minBinaryVersion": "0.2.0",
7464
+ "minBinaryVersion": "1.7.0",
7458
7465
  "bundleVersion": "0.0.1"
7459
7466
  }
7460
7467
  },
@@ -8321,8 +8328,10 @@ const SCREENS = runtimeSetting({
8321
8328
  "screenId": "himi_sign_in",
8322
8329
  "mode": "signin",
8323
8330
  "intent": "profile",
8324
- "returnScreenId": "himi_view_profile"
8325
- }
8331
+ "returnScreenId": "himi_view_profile",
8332
+ "modal": "1"
8333
+ },
8334
+ "presentation": "sheet"
8326
8335
  }
8327
8336
  }
8328
8337
  }
@@ -17145,8 +17154,10 @@ const SCREENS = runtimeSetting({
17145
17154
  "screenId": "himi_sign_in",
17146
17155
  "mode": "signin",
17147
17156
  "intent": "orders",
17148
- "returnScreenId": "himi_orders"
17149
- }
17157
+ "returnScreenId": "himi_orders",
17158
+ "modal": "1"
17159
+ },
17160
+ "presentation": "sheet"
17150
17161
  }
17151
17162
  }
17152
17163
  }
@@ -17779,8 +17790,10 @@ const SCREENS = runtimeSetting({
17779
17790
  "screenId": "himi_sign_in",
17780
17791
  "mode": "signin",
17781
17792
  "intent": "addresses",
17782
- "returnScreenId": "himi_addresses"
17783
- }
17793
+ "returnScreenId": "himi_addresses",
17794
+ "modal": "1"
17795
+ },
17796
+ "presentation": "sheet"
17784
17797
  }
17785
17798
  }
17786
17799
  }
@@ -18836,8 +18849,10 @@ const SCREENS = runtimeSetting({
18836
18849
  "screenId": "himi_sign_in",
18837
18850
  "mode": "signin",
18838
18851
  "intent": "addresses",
18839
- "returnScreenId": "himi_address"
18840
- }
18852
+ "returnScreenId": "himi_address",
18853
+ "modal": "1"
18854
+ },
18855
+ "presentation": "sheet"
18841
18856
  }
18842
18857
  }
18843
18858
  }
@@ -19507,8 +19522,10 @@ const SCREENS = runtimeSetting({
19507
19522
  "screenId": "himi_sign_in",
19508
19523
  "mode": "signin",
19509
19524
  "intent": "wallet",
19510
- "returnScreenId": "himi_wallet"
19511
- }
19525
+ "returnScreenId": "himi_wallet",
19526
+ "modal": "1"
19527
+ },
19528
+ "presentation": "sheet"
19512
19529
  }
19513
19530
  }
19514
19531
  }
@@ -19976,11 +19993,7 @@ const SCREENS = runtimeSetting({
19976
19993
  "size": "sm",
19977
19994
  "fullWidth": true,
19978
19995
  "action": {
19979
- "actionId": "himi.open",
19980
- "params": {
19981
- "screenId": "$service:himiPlaceSummary.ctaScreenId",
19982
- "mode": "$service:himiPlaceSummary.ctaMode"
19983
- }
19996
+ "actionId": "tier5.himiPlaceSummary.openCta"
19984
19997
  }
19985
19998
  }
19986
19999
  },
@@ -20021,7 +20034,8 @@ const SCREENS = runtimeSetting({
20021
20034
  "onAppear": {
20022
20035
  "actionId": "tier5.himiPlaceSummary.load",
20023
20036
  "params": {
20024
- "verticals": "[\"store\",\"bookings\",\"restaurants\",\"programs\",\"plans\",\"feed\",\"members\",\"forum\",\"coupons\",\"notifications\",\"loyalty\",\"reviews\",\"portfolio\",\"reservations\",\"invoices\",\"badges\",\"notifsettings\",\"events\",\"blog\",\"groups\",\"cms\",\"donations\",\"giftCards\",\"videos\",\"podcasts\",\"forms\",\"galleries\",\"inbox\",\"faq\"]"
20037
+ "verticals": "[\"store\",\"bookings\",\"restaurants\",\"programs\",\"plans\",\"feed\",\"members\",\"forum\",\"coupons\",\"notifications\",\"loyalty\",\"reviews\",\"portfolio\",\"reservations\",\"invoices\",\"badges\",\"notifsettings\",\"events\",\"blog\",\"groups\",\"cms\",\"donations\",\"giftCards\",\"videos\",\"podcasts\",\"forms\",\"galleries\",\"inbox\",\"faq\"]",
20038
+ "signInPresentation": "sheet"
20025
20039
  }
20026
20040
  }
20027
20041
  }
@@ -23291,8 +23305,10 @@ const SCREENS = runtimeSetting({
23291
23305
  "params": {
23292
23306
  "screenId": "himi_sign_in",
23293
23307
  "mode": "signin",
23294
- "returnScreenId": "himi_bookings"
23295
- }
23308
+ "returnScreenId": "himi_bookings",
23309
+ "modal": "1"
23310
+ },
23311
+ "presentation": "sheet"
23296
23312
  }
23297
23313
  }
23298
23314
  }
@@ -26679,7 +26695,8 @@ const SCREENS = runtimeSetting({
26679
26695
  "onAppear": {
26680
26696
  "actionId": "tier5.himiBrandedAgenda.load",
26681
26697
  "params": {
26682
- "firstWeekday": "0"
26698
+ "firstWeekday": "0",
26699
+ "signInPresentation": "sheet"
26683
26700
  }
26684
26701
  }
26685
26702
  }
@@ -35336,8 +35353,10 @@ const SCREENS = runtimeSetting({
35336
35353
  "actionId": "himi.open",
35337
35354
  "params": {
35338
35355
  "screenId": "himi_sign_in",
35339
- "mode": "signin"
35340
- }
35356
+ "mode": "signin",
35357
+ "modal": "1"
35358
+ },
35359
+ "presentation": "sheet"
35341
35360
  }
35342
35361
  }
35343
35362
  },
@@ -35837,8 +35856,10 @@ const SCREENS = runtimeSetting({
35837
35856
  "screenId": "himi_sign_in",
35838
35857
  "mode": "signin",
35839
35858
  "intent": "post",
35840
- "returnScreenId": "himi_feed"
35841
- }
35859
+ "returnScreenId": "himi_feed",
35860
+ "modal": "1"
35861
+ },
35862
+ "presentation": "sheet"
35842
35863
  }
35843
35864
  }
35844
35865
  }
@@ -38246,8 +38267,10 @@ const SCREENS = runtimeSetting({
38246
38267
  "action": {
38247
38268
  "actionId": "himi.open",
38248
38269
  "params": {
38249
- "screenId": "himi_sign_in"
38250
- }
38270
+ "screenId": "himi_sign_in",
38271
+ "modal": "1"
38272
+ },
38273
+ "presentation": "sheet"
38251
38274
  }
38252
38275
  }
38253
38276
  },
@@ -40857,8 +40880,10 @@ const SCREENS = runtimeSetting({
40857
40880
  "action": {
40858
40881
  "actionId": "himi.open",
40859
40882
  "params": {
40860
- "screenId": "himi_sign_in"
40861
- }
40883
+ "screenId": "himi_sign_in",
40884
+ "modal": "1"
40885
+ },
40886
+ "presentation": "sheet"
40862
40887
  }
40863
40888
  }
40864
40889
  },
@@ -43143,8 +43168,10 @@ const SCREENS = runtimeSetting({
43143
43168
  "action": {
43144
43169
  "actionId": "himi.open",
43145
43170
  "params": {
43146
- "screenId": "himi_sign_in"
43147
- }
43171
+ "screenId": "himi_sign_in",
43172
+ "modal": "1"
43173
+ },
43174
+ "presentation": "sheet"
43148
43175
  }
43149
43176
  }
43150
43177
  },
@@ -45701,8 +45728,10 @@ const SCREENS = runtimeSetting({
45701
45728
  "action": {
45702
45729
  "actionId": "himi.open",
45703
45730
  "params": {
45704
- "screenId": "himi_sign_in"
45705
- }
45731
+ "screenId": "himi_sign_in",
45732
+ "modal": "1"
45733
+ },
45734
+ "presentation": "sheet"
45706
45735
  }
45707
45736
  }
45708
45737
  },
@@ -48176,8 +48205,10 @@ const SCREENS = runtimeSetting({
48176
48205
  "action": {
48177
48206
  "actionId": "himi.open",
48178
48207
  "params": {
48179
- "screenId": "himi_sign_in"
48180
- }
48208
+ "screenId": "himi_sign_in",
48209
+ "modal": "1"
48210
+ },
48211
+ "presentation": "sheet"
48181
48212
  }
48182
48213
  }
48183
48214
  },
@@ -50821,8 +50852,10 @@ const SCREENS = runtimeSetting({
50821
50852
  "action": {
50822
50853
  "actionId": "himi.open",
50823
50854
  "params": {
50824
- "screenId": "himi_sign_in"
50825
- }
50855
+ "screenId": "himi_sign_in",
50856
+ "modal": "1"
50857
+ },
50858
+ "presentation": "sheet"
50826
50859
  }
50827
50860
  }
50828
50861
  },
@@ -51313,8 +51346,10 @@ const SCREENS = runtimeSetting({
51313
51346
  "action": {
51314
51347
  "actionId": "himi.open",
51315
51348
  "params": {
51316
- "screenId": "himi_sign_in"
51317
- }
51349
+ "screenId": "himi_sign_in",
51350
+ "modal": "1"
51351
+ },
51352
+ "presentation": "sheet"
51318
51353
  }
51319
51354
  }
51320
51355
  },
@@ -53755,8 +53790,10 @@ const SCREENS = runtimeSetting({
53755
53790
  "action": {
53756
53791
  "actionId": "himi.open",
53757
53792
  "params": {
53758
- "screenId": "himi_sign_in"
53759
- }
53793
+ "screenId": "himi_sign_in",
53794
+ "modal": "1"
53795
+ },
53796
+ "presentation": "sheet"
53760
53797
  }
53761
53798
  }
53762
53799
  },
@@ -55947,8 +55984,10 @@ const SCREENS = runtimeSetting({
55947
55984
  "action": {
55948
55985
  "actionId": "himi.open",
55949
55986
  "params": {
55950
- "screenId": "himi_sign_in"
55951
- }
55987
+ "screenId": "himi_sign_in",
55988
+ "modal": "1"
55989
+ },
55990
+ "presentation": "sheet"
55952
55991
  }
55953
55992
  }
55954
55993
  },
@@ -56249,8 +56288,10 @@ const SCREENS = runtimeSetting({
56249
56288
  "screenId": "himi_sign_in",
56250
56289
  "mode": "signin",
56251
56290
  "intent": "post",
56252
- "returnScreenId": "himi_create_post"
56253
- }
56291
+ "returnScreenId": "himi_create_post",
56292
+ "modal": "1"
56293
+ },
56294
+ "presentation": "sheet"
56254
56295
  }
56255
56296
  }
56256
56297
  }
@@ -68003,8 +68044,10 @@ const SCREENS = runtimeSetting({
68003
68044
  "action": {
68004
68045
  "actionId": "himi.open",
68005
68046
  "params": {
68006
- "screenId": "himi_sign_in"
68007
- }
68047
+ "screenId": "himi_sign_in",
68048
+ "modal": "1"
68049
+ },
68050
+ "presentation": "sheet"
68008
68051
  }
68009
68052
  }
68010
68053
  },
@@ -70257,8 +70300,10 @@ const SCREENS = runtimeSetting({
70257
70300
  "action": {
70258
70301
  "actionId": "himi.open",
70259
70302
  "params": {
70260
- "screenId": "himi_sign_in"
70261
- }
70303
+ "screenId": "himi_sign_in",
70304
+ "modal": "1"
70305
+ },
70306
+ "presentation": "sheet"
70262
70307
  }
70263
70308
  }
70264
70309
  },
@@ -72815,8 +72860,10 @@ const SCREENS = runtimeSetting({
72815
72860
  "action": {
72816
72861
  "actionId": "himi.open",
72817
72862
  "params": {
72818
- "screenId": "himi_sign_in"
72819
- }
72863
+ "screenId": "himi_sign_in",
72864
+ "modal": "1"
72865
+ },
72866
+ "presentation": "sheet"
72820
72867
  }
72821
72868
  }
72822
72869
  },
@@ -75615,8 +75662,10 @@ const SCREENS = runtimeSetting({
75615
75662
  "action": {
75616
75663
  "actionId": "himi.open",
75617
75664
  "params": {
75618
- "screenId": "himi_sign_in"
75619
- }
75665
+ "screenId": "himi_sign_in",
75666
+ "modal": "1"
75667
+ },
75668
+ "presentation": "sheet"
75620
75669
  }
75621
75670
  }
75622
75671
  },
@@ -77973,8 +78022,10 @@ const SCREENS = runtimeSetting({
77973
78022
  "screenId": "himi_sign_in",
77974
78023
  "returnScreenId": "himi_video_channel",
77975
78024
  "returnId": "$service:himiBrandedVideo.id",
77976
- "returnChannelId": "$service:himiBrandedVideo.channelId"
77977
- }
78025
+ "returnChannelId": "$service:himiBrandedVideo.channelId",
78026
+ "modal": "1"
78027
+ },
78028
+ "presentation": "sheet"
77978
78029
  }
77979
78030
  }
77980
78031
  },
@@ -78256,8 +78307,10 @@ const SCREENS = runtimeSetting({
78256
78307
  "screenId": "himi_sign_in",
78257
78308
  "returnScreenId": "himi_video",
78258
78309
  "returnId": "$service:himiBrandedVideo.id",
78259
- "returnChannelId": "$service:himiBrandedVideo.channelId"
78260
- }
78310
+ "returnChannelId": "$service:himiBrandedVideo.channelId",
78311
+ "modal": "1"
78312
+ },
78313
+ "presentation": "sheet"
78261
78314
  }
78262
78315
  }
78263
78316
  },
@@ -78661,8 +78714,10 @@ const SCREENS = runtimeSetting({
78661
78714
  "action": {
78662
78715
  "actionId": "himi.open",
78663
78716
  "params": {
78664
- "screenId": "himi_sign_in"
78665
- }
78717
+ "screenId": "himi_sign_in",
78718
+ "modal": "1"
78719
+ },
78720
+ "presentation": "sheet"
78666
78721
  }
78667
78722
  }
78668
78723
  },
@@ -81678,8 +81733,10 @@ const SCREENS = runtimeSetting({
81678
81733
  "action": {
81679
81734
  "actionId": "himi.open",
81680
81735
  "params": {
81681
- "screenId": "himi_sign_in"
81682
- }
81736
+ "screenId": "himi_sign_in",
81737
+ "modal": "1"
81738
+ },
81739
+ "presentation": "sheet"
81683
81740
  }
81684
81741
  }
81685
81742
  },
@@ -84110,8 +84167,10 @@ const SCREENS = runtimeSetting({
84110
84167
  "action": {
84111
84168
  "actionId": "himi.open",
84112
84169
  "params": {
84113
- "screenId": "himi_sign_in"
84114
- }
84170
+ "screenId": "himi_sign_in",
84171
+ "modal": "1"
84172
+ },
84173
+ "presentation": "sheet"
84115
84174
  }
84116
84175
  }
84117
84176
  },
@@ -86720,8 +86779,10 @@ const SCREENS = runtimeSetting({
86720
86779
  "params": {
86721
86780
  "screenId": "himi_sign_in",
86722
86781
  "mode": "signin",
86723
- "returnScreenId": "himi_business_chat"
86724
- }
86782
+ "returnScreenId": "himi_business_chat",
86783
+ "modal": "1"
86784
+ },
86785
+ "presentation": "sheet"
86725
86786
  }
86726
86787
  }
86727
86788
  },
@@ -88364,8 +88425,10 @@ const SCREENS = runtimeSetting({
88364
88425
  "params": {
88365
88426
  "screenId": "himi_sign_in",
88366
88427
  "intent": "food-orders",
88367
- "returnScreenId": "himi_food_orders"
88368
- }
88428
+ "returnScreenId": "himi_food_orders",
88429
+ "modal": "1"
88430
+ },
88431
+ "presentation": "sheet"
88369
88432
  }
88370
88433
  }
88371
88434
  }
@@ -90408,8 +90471,10 @@ const TEMPLATED: { pattern: string; display: string; liveSeed?: LiveSeed; static
90408
90471
  "params": {
90409
90472
  "screenId": "himi_sign_in",
90410
90473
  "returnScreenId": "himi_order",
90411
- "returnId": "$service:himiBrandedOrder.id"
90412
- }
90474
+ "returnId": "$service:himiBrandedOrder.id",
90475
+ "modal": "1"
90476
+ },
90477
+ "presentation": "sheet"
90413
90478
  }
90414
90479
  }
90415
90480
  },
@@ -95843,8 +95908,10 @@ const TEMPLATED: { pattern: string; display: string; liveSeed?: LiveSeed; static
95843
95908
  "params": {
95844
95909
  "screenId": "himi_sign_in",
95845
95910
  "mode": "signin",
95846
- "intent": "book"
95847
- }
95911
+ "intent": "book",
95912
+ "modal": "1"
95913
+ },
95914
+ "presentation": "sheet"
95848
95915
  }
95849
95916
  }
95850
95917
  },
@@ -95869,8 +95936,10 @@ const TEMPLATED: { pattern: string; display: string; liveSeed?: LiveSeed; static
95869
95936
  "params": {
95870
95937
  "screenId": "himi_sign_in",
95871
95938
  "mode": "signin",
95872
- "intent": "book"
95873
- }
95939
+ "intent": "book",
95940
+ "modal": "1"
95941
+ },
95942
+ "presentation": "sheet"
95874
95943
  }
95875
95944
  }
95876
95945
  },
@@ -95895,8 +95964,10 @@ const TEMPLATED: { pattern: string; display: string; liveSeed?: LiveSeed; static
95895
95964
  "params": {
95896
95965
  "screenId": "himi_sign_in",
95897
95966
  "mode": "signin",
95898
- "intent": "book"
95899
- }
95967
+ "intent": "book",
95968
+ "modal": "1"
95969
+ },
95970
+ "presentation": "sheet"
95900
95971
  }
95901
95972
  }
95902
95973
  },
@@ -96678,8 +96749,10 @@ const TEMPLATED: { pattern: string; display: string; liveSeed?: LiveSeed; static
96678
96749
  "screenId": "himi_sign_in",
96679
96750
  "intent": "basket",
96680
96751
  "returnScreenId": "himi_menu_item",
96681
- "returnId": "$service:himiBrandedMenuItem.id"
96682
- }
96752
+ "returnId": "$service:himiBrandedMenuItem.id",
96753
+ "modal": "1"
96754
+ },
96755
+ "presentation": "sheet"
96683
96756
  },
96684
96757
  "leadingIcon": "person"
96685
96758
  }
@@ -99120,8 +99193,10 @@ const TEMPLATED: { pattern: string; display: string; liveSeed?: LiveSeed; static
99120
99193
  "params": {
99121
99194
  "screenId": "himi_sign_in",
99122
99195
  "mode": "signin",
99123
- "intent": "rsvp"
99124
- }
99196
+ "intent": "rsvp",
99197
+ "modal": "1"
99198
+ },
99199
+ "presentation": "sheet"
99125
99200
  }
99126
99201
  }
99127
99202
  },
@@ -100453,8 +100528,10 @@ const TEMPLATED: { pattern: string; display: string; liveSeed?: LiveSeed; static
100453
100528
  "intent": "join_group",
100454
100529
  "contextName": "$service:himiBrandedGroup.name",
100455
100530
  "returnScreenId": "himi_group",
100456
- "returnId": "$service:himiBrandedGroup.id"
100457
- }
100531
+ "returnId": "$service:himiBrandedGroup.id",
100532
+ "modal": "1"
100533
+ },
100534
+ "presentation": "sheet"
100458
100535
  }
100459
100536
  }
100460
100537
  },
@@ -355,6 +355,10 @@ async function deliver(pending:BusinessChatIntent,draft:string):Promise<void>{
355
355
  const svc=defineService<State,Record<string,(s:State,a?:unknown)=>State|undefined|Promise<State|undefined>>>('businessChat',{
356
356
  state:shape(initial),notHydrated:Object.keys(initial) as (keyof State)[],
357
357
  actions:{
358
+ // A host runs `load` when the screen shows again, also when a sign-in modal over it closes.
359
+ // Only a guest loads again: a member's chat is already live. No args: init keeps the site
360
+ // and name the screen gave first.
361
+ load:async (s):Promise<State|undefined>=>s.phase==='guest'?svc.init():undefined,
358
362
  init:async(s,a)=>{
359
363
  if(initFlight)return s;initFlight=true;eventDuringInit=false;statusDuringInit=null;
360
364
  // A retry passes no site: the one the screen gave first stays. A site the screen passes, even an empty one (a
@@ -598,6 +598,9 @@ function initial(): S {
598
598
  };
599
599
  }
600
600
 
601
+ /** How the app opens its sign-in screen, from the appear params ("" = push). */
602
+ let signInPresentation: "" | "sheet" | "full_screen" = "";
603
+
601
604
  const svc = defineService<S, {
602
605
  load: (s: S, p?: unknown) => Promise<S | undefined>;
603
606
  retry: (s: S) => Promise<S | undefined>;
@@ -614,6 +617,8 @@ const svc = defineService<S, {
614
617
  actions: {
615
618
  load: async (s, p) => {
616
619
  stashCopy(p);
620
+ const presentation = argOf(p, "signInPresentation");
621
+ if (presentation === "sheet" || presentation === "full_screen") signInPresentation = presentation;
617
622
  const fw = Number(argOf(p, "firstWeekday") || s.firstWeekday);
618
623
  const today = dayKey(new Date());
619
624
  // First appearance: open on this week. A re-appearance keeps the member's place and
@@ -739,7 +744,10 @@ const svc = defineService<S, {
739
744
  const before = await memberAccess().catch(() => undefined);
740
745
  if (!before?.email) {
741
746
  busy = false;
742
- return navigate(s, { screenId: "himi_sign_in", args: { mode: "signin", returnScreenId: "himi_agenda" } });
747
+ // As a modal it only closes, and this screen loads again (its re-appearance reload).
748
+ return navigate(s, signInPresentation
749
+ ? { screenId: "himi_sign_in", presentation: signInPresentation, args: { mode: "signin", modal: "1" } }
750
+ : { screenId: "himi_sign_in", args: { mode: "signin", returnScreenId: "himi_agenda" } });
743
751
  }
744
752
  const name = await memberName();
745
753
  const current = await memberAccess().catch(() => undefined);
@@ -9,7 +9,7 @@
9
9
  // `load` is both the onAppear action and what an embed controller's `refresh()` runs (arg-less:
10
10
  // the stashed appear params keep the verticals and the copy pack), so a host that hears
11
11
  // `booking.created` / `booking.cancelled` re-reads the summary without a remount.
12
- import { defineService } from "@himalaya/state";
12
+ import { defineService, navigate } from "@himalaya/state";
13
13
  import { listMyPlanOrders, type WixPlanOrder } from "@himalaya/wix-pricing-plans";
14
14
  import { fetchMemberBookings, type MemberBookingRow } from "../_shared/member-bookings.js";
15
15
  import { memberAccess, assertMemberAccess, memberAccessDenied, type MemberAccess } from "../_shared/member-access.js";
@@ -52,6 +52,7 @@ const PLANS_SCREEN = "himi_plans";
52
52
  const SIGN_IN_SCREEN = "himi_sign_in";
53
53
 
54
54
  let stashedVerticals: string[] | null = null;
55
+ let signInPresentation: "sheet" | "full_screen" | undefined;
55
56
  let generation = 0;
56
57
 
57
58
  function appearVerticals(arg: unknown): string[] {
@@ -190,6 +191,8 @@ async function read(arg: unknown, again = true): Promise<PlaceSummaryState> {
190
191
  * write back over the newer result. */
191
192
  async function load(_s: PlaceSummaryState, arg?: unknown): Promise<PlaceSummaryState | undefined> {
192
193
  stashCopy(arg);
194
+ const presentation = arg && typeof arg === "object" ? (arg as Record<string, unknown>).signInPresentation : undefined;
195
+ if (presentation === "sheet" || presentation === "full_screen") signInPresentation = presentation;
193
196
  const mine = ++generation;
194
197
  const next = await read(arg);
195
198
  return mine === generation ? next : undefined;
@@ -198,11 +201,19 @@ async function load(_s: PlaceSummaryState, arg?: unknown): Promise<PlaceSummaryS
198
201
  const svc = defineService<PlaceSummaryState, {
199
202
  load: (s: PlaceSummaryState, arg?: unknown) => Promise<PlaceSummaryState | undefined>;
200
203
  retry: (s: PlaceSummaryState) => Promise<PlaceSummaryState | undefined>;
204
+ openCta: (s: PlaceSummaryState) => PlaceSummaryState;
201
205
  }>("himiPlaceSummary", {
202
206
  state: BLANK,
203
207
  actions: {
204
208
  load,
205
209
  retry: (s) => load(s),
210
+ openCta: (s) => {
211
+ if (s.hideCta || !s.ctaScreenId) return s;
212
+ // No return path: the tile is embedded, so the form closes over its host.
213
+ return navigate(s, s.ctaScreenId === SIGN_IN_SCREEN && signInPresentation
214
+ ? { screenId: SIGN_IN_SCREEN, presentation: signInPresentation, args: { mode: "signin", modal: "1" } }
215
+ : { screenId: s.ctaScreenId, args: { mode: s.ctaMode } });
216
+ },
206
217
  },
207
218
  });
208
219
  export { svc };