@wix/himalaya-cli 0.1528.0 → 0.1530.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 (126) hide show
  1. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk/bookings-v2/src/index.d.ts +24 -0
  2. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk/ecom/src/extensions.d.ts +144 -0
  3. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk/restaurants/src/extensions.d.ts +93 -0
  4. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/iap-checkout.mjs +27 -5
  5. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/iap.mjs +19 -3
  6. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/screens.mjs +27 -5
  7. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/wix-ecom.mjs +58 -0
  8. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/wix-restaurants.mjs +23 -0
  9. package/dist/cli.mjs +3110 -1993
  10. package/dist/preview-assets.generated.bin +0 -0
  11. package/fixtures/wix-canned.json +83 -0
  12. package/guides/hhp.md +39 -0
  13. package/guides/himi-json-output.md +22 -1
  14. package/guides/release-notes.md +17 -0
  15. package/guides/templates.md +11 -1
  16. package/guides/tier-5-add-a-screen.md +4 -0
  17. package/package.json +2 -2
  18. package/templates/beauty-salon/config.ts +12 -1
  19. package/templates/beauty-salon/dev/index.ts +1767 -2698
  20. package/templates/beauty-salon/tier5-src/_shared/collection-service.ts +23 -5
  21. package/templates/beauty-salon/tier5-src/_shared/engine-intl.ts +18 -0
  22. package/templates/beauty-salon/tier5-src/_shared/himi-restaurants.ts +12 -5
  23. package/templates/beauty-salon/tier5-src/_shared/member-bookings.ts +50 -7
  24. package/templates/beauty-salon/tier5-src/_shared/restaurant-ordering.ts +201 -0
  25. package/templates/beauty-salon/tier5-src/himi-booking-bookings/index.ts +385 -74
  26. package/templates/beauty-salon/tier5-src/himi-branded-lite-cart/index.ts +6 -0
  27. package/templates/beauty-salon-owner/tier5-src/_shared/collection-service.ts +23 -5
  28. package/templates/beauty-salon-owner/tier5-src/_shared/engine-intl.ts +18 -0
  29. package/templates/branded-lite/config.ts +12 -1
  30. package/templates/branded-lite/dev/index.ts +4955 -4801
  31. package/templates/branded-lite/tier5-src/_shared/collection-service.ts +23 -5
  32. package/templates/branded-lite/tier5-src/_shared/engine-intl.ts +18 -0
  33. package/templates/branded-lite/tier5-src/_shared/himi-restaurants.ts +12 -5
  34. package/templates/branded-lite/tier5-src/_shared/member-bookings.ts +50 -7
  35. package/templates/branded-lite/tier5-src/_shared/restaurant-ordering.ts +201 -0
  36. package/templates/branded-lite/tier5-src/himi-booking-bookings/index.ts +385 -74
  37. package/templates/branded-lite/tier5-src/himi-branded-lite-cart/index.ts +6 -0
  38. package/templates/branded-lite/tier5-src/himi-branded-lite-menu-item/index.ts +144 -77
  39. package/templates/branded-lite/tier5-src/himi-branded-lite-menus/index.ts +16 -5
  40. package/templates/branded-lite/tier5-src/himi-branded-lite-reservations/index.ts +1 -1
  41. package/templates/branded-lite/tier5-src/wix-spaces-food-order-detail/index.ts +76 -14
  42. package/templates/branded-lite/tier5-src/wix-spaces-food-orders/index.ts +807 -55
  43. package/templates/community-club/config.ts +12 -1
  44. package/templates/community-club/tier5-src/_shared/collection-service.ts +23 -5
  45. package/templates/community-club/tier5-src/_shared/engine-intl.ts +18 -0
  46. package/templates/community-club/tier5-src/_shared/himi-restaurants.ts +12 -5
  47. package/templates/community-club/tier5-src/_shared/member-bookings.ts +50 -7
  48. package/templates/community-club-owner/tier5-src/_shared/collection-service.ts +23 -5
  49. package/templates/community-club-owner/tier5-src/_shared/engine-intl.ts +18 -0
  50. package/templates/events-meetups/config.ts +12 -1
  51. package/templates/events-meetups/tier5-src/_shared/collection-service.ts +23 -5
  52. package/templates/events-meetups/tier5-src/_shared/engine-intl.ts +18 -0
  53. package/templates/events-meetups/tier5-src/_shared/himi-restaurants.ts +12 -5
  54. package/templates/events-meetups/tier5-src/_shared/member-bookings.ts +50 -7
  55. package/templates/events-meetups-owner/tier5-src/_shared/collection-service.ts +23 -5
  56. package/templates/events-meetups-owner/tier5-src/_shared/engine-intl.ts +18 -0
  57. package/templates/gym-fitness/config.ts +12 -1
  58. package/templates/gym-fitness/dev/index.ts +1753 -2697
  59. package/templates/gym-fitness/tier5-src/_shared/collection-service.ts +23 -5
  60. package/templates/gym-fitness/tier5-src/_shared/engine-intl.ts +18 -0
  61. package/templates/gym-fitness/tier5-src/_shared/himi-restaurants.ts +12 -5
  62. package/templates/gym-fitness/tier5-src/_shared/member-bookings.ts +50 -7
  63. package/templates/gym-fitness/tier5-src/_shared/restaurant-ordering.ts +201 -0
  64. package/templates/gym-fitness/tier5-src/himi-booking-bookings/index.ts +385 -74
  65. package/templates/gym-fitness/tier5-src/himi-branded-lite-cart/index.ts +6 -0
  66. package/templates/gym-fitness-owner/tier5-src/_shared/collection-service.ts +23 -5
  67. package/templates/gym-fitness-owner/tier5-src/_shared/engine-intl.ts +18 -0
  68. package/templates/nonprofit-cause/config.ts +12 -1
  69. package/templates/nonprofit-cause/tier5-src/_shared/collection-service.ts +23 -5
  70. package/templates/nonprofit-cause/tier5-src/_shared/engine-intl.ts +18 -0
  71. package/templates/nonprofit-cause/tier5-src/_shared/himi-restaurants.ts +12 -5
  72. package/templates/nonprofit-cause/tier5-src/_shared/member-bookings.ts +50 -7
  73. package/templates/nonprofit-cause-owner/tier5-src/_shared/collection-service.ts +23 -5
  74. package/templates/nonprofit-cause-owner/tier5-src/_shared/engine-intl.ts +18 -0
  75. package/templates/owner-lite/tier5-src/_shared/collection-service.ts +23 -5
  76. package/templates/owner-lite/tier5-src/_shared/engine-intl.ts +18 -0
  77. package/templates/podcast-creator/config.ts +12 -1
  78. package/templates/podcast-creator/tier5-src/_shared/collection-service.ts +23 -5
  79. package/templates/podcast-creator/tier5-src/_shared/engine-intl.ts +18 -0
  80. package/templates/podcast-creator/tier5-src/_shared/himi-restaurants.ts +12 -5
  81. package/templates/podcast-creator/tier5-src/_shared/member-bookings.ts +50 -7
  82. package/templates/podcast-creator-owner/tier5-src/_shared/collection-service.ts +23 -5
  83. package/templates/podcast-creator-owner/tier5-src/_shared/engine-intl.ts +18 -0
  84. package/templates/portfolio-creative/config.ts +12 -1
  85. package/templates/portfolio-creative/tier5-src/_shared/collection-service.ts +23 -5
  86. package/templates/portfolio-creative/tier5-src/_shared/engine-intl.ts +18 -0
  87. package/templates/portfolio-creative/tier5-src/_shared/himi-restaurants.ts +12 -5
  88. package/templates/portfolio-creative/tier5-src/_shared/member-bookings.ts +50 -7
  89. package/templates/portfolio-creative/tier5-src/_shared/restaurant-ordering.ts +201 -0
  90. package/templates/portfolio-creative/tier5-src/himi-branded-lite-cart/index.ts +6 -0
  91. package/templates/portfolio-creative-owner/tier5-src/_shared/collection-service.ts +23 -5
  92. package/templates/portfolio-creative-owner/tier5-src/_shared/engine-intl.ts +18 -0
  93. package/templates/restaurant/README.md +1 -1
  94. package/templates/restaurant/config.ts +12 -1
  95. package/templates/restaurant/dev/index.ts +1373 -275
  96. package/templates/restaurant/himalaya.template.json +2 -1
  97. package/templates/restaurant/tier5-src/_shared/collection-service.ts +23 -5
  98. package/templates/restaurant/tier5-src/_shared/engine-intl.ts +18 -0
  99. package/templates/restaurant/tier5-src/_shared/himi-restaurants.ts +12 -5
  100. package/templates/restaurant/tier5-src/_shared/member-bookings.ts +50 -7
  101. package/templates/restaurant/tier5-src/_shared/member-orders.ts +8 -0
  102. package/templates/restaurant/tier5-src/_shared/restaurant-ordering.ts +201 -0
  103. package/templates/restaurant/tier5-src/himi-branded-lite-menu-item/index.ts +144 -77
  104. package/templates/restaurant/tier5-src/himi-branded-lite-menus/index.ts +16 -5
  105. package/templates/restaurant/tier5-src/wix-spaces-food-order-detail/index.ts +76 -14
  106. package/templates/restaurant/tier5-src/wix-spaces-food-orders/index.ts +807 -55
  107. package/templates/restaurant-owner/tier5-src/_shared/collection-service.ts +23 -5
  108. package/templates/restaurant-owner/tier5-src/_shared/engine-intl.ts +18 -0
  109. package/templates/retail-store/config.ts +12 -1
  110. package/templates/retail-store/tier5-src/_shared/collection-service.ts +23 -5
  111. package/templates/retail-store/tier5-src/_shared/engine-intl.ts +18 -0
  112. package/templates/retail-store/tier5-src/_shared/himi-restaurants.ts +12 -5
  113. package/templates/retail-store/tier5-src/_shared/member-bookings.ts +50 -7
  114. package/templates/retail-store/tier5-src/_shared/restaurant-ordering.ts +201 -0
  115. package/templates/retail-store/tier5-src/himi-branded-lite-cart/index.ts +6 -0
  116. package/templates/retail-store-owner/tier5-src/_shared/collection-service.ts +23 -5
  117. package/templates/retail-store-owner/tier5-src/_shared/engine-intl.ts +18 -0
  118. package/templates/yoga-studio/config.ts +12 -1
  119. package/templates/yoga-studio/dev/index.ts +1755 -2699
  120. package/templates/yoga-studio/tier5-src/_shared/collection-service.ts +23 -5
  121. package/templates/yoga-studio/tier5-src/_shared/engine-intl.ts +18 -0
  122. package/templates/yoga-studio/tier5-src/_shared/himi-restaurants.ts +12 -5
  123. package/templates/yoga-studio/tier5-src/_shared/member-bookings.ts +50 -7
  124. package/templates/yoga-studio/tier5-src/himi-booking-bookings/index.ts +385 -74
  125. package/templates/yoga-studio-owner/tier5-src/_shared/collection-service.ts +23 -5
  126. package/templates/yoga-studio-owner/tier5-src/_shared/engine-intl.ts +18 -0
@@ -10031,6 +10031,20 @@ const SCREENS = runtimeSetting({
10031
10031
  "id": "$item.collectionId"
10032
10032
  }
10033
10033
  }
10034
+ },
10035
+ {
10036
+ "id": "open",
10037
+ "label": "Open details",
10038
+ "icon": "chevron_right",
10039
+ "action": {
10040
+ "actionId": "himi.open",
10041
+ "params": {
10042
+ "screenId": "$item.detailScreenId",
10043
+ "id": "$item.id",
10044
+ "menuId": "$item.menuId",
10045
+ "sectionId": "$item.sectionId"
10046
+ }
10047
+ }
10034
10048
  }
10035
10049
  ]
10036
10050
  }
@@ -10051,6 +10065,16 @@ const SCREENS = runtimeSetting({
10051
10065
  }
10052
10066
  },
10053
10067
  "modifiers": {
10068
+ "onTap": {
10069
+ "actionId": "himi.open",
10070
+ "params": {
10071
+ "screenId": "$item.detailScreenId",
10072
+ "id": "$item.id",
10073
+ "menuId": "$item.menuId",
10074
+ "sectionId": "$item.sectionId"
10075
+ }
10076
+ },
10077
+ "haptic": "light",
10054
10078
  "background": {
10055
10079
  "token": "surfaceElevated"
10056
10080
  },
@@ -10069,7 +10093,7 @@ const SCREENS = runtimeSetting({
10069
10093
  },
10070
10094
  "fillMaxWidth": true,
10071
10095
  "accessibilityLabel": "$item.collectionTitle",
10072
- "pressFeedback": "highlight",
10096
+ "pressFeedback": "scale",
10073
10097
  "transition": {
10074
10098
  "enter": "fadeSlide",
10075
10099
  "direction": "up",
@@ -10357,6 +10381,20 @@ const SCREENS = runtimeSetting({
10357
10381
  "id": "$item.collectionId"
10358
10382
  }
10359
10383
  }
10384
+ },
10385
+ {
10386
+ "id": "open",
10387
+ "label": "Open details",
10388
+ "icon": "chevron_right",
10389
+ "action": {
10390
+ "actionId": "himi.open",
10391
+ "params": {
10392
+ "screenId": "$item.detailScreenId",
10393
+ "id": "$item.id",
10394
+ "menuId": "$item.menuId",
10395
+ "sectionId": "$item.sectionId"
10396
+ }
10397
+ }
10360
10398
  }
10361
10399
  ]
10362
10400
  }
@@ -10373,6 +10411,16 @@ const SCREENS = runtimeSetting({
10373
10411
  }
10374
10412
  },
10375
10413
  "modifiers": {
10414
+ "onTap": {
10415
+ "actionId": "himi.open",
10416
+ "params": {
10417
+ "screenId": "$item.detailScreenId",
10418
+ "id": "$item.id",
10419
+ "menuId": "$item.menuId",
10420
+ "sectionId": "$item.sectionId"
10421
+ }
10422
+ },
10423
+ "haptic": "light",
10376
10424
  "background": {
10377
10425
  "token": "surfaceElevated"
10378
10426
  },
@@ -10391,7 +10439,7 @@ const SCREENS = runtimeSetting({
10391
10439
  },
10392
10440
  "fillMaxWidth": true,
10393
10441
  "accessibilityLabel": "$item.collectionTitle",
10394
- "pressFeedback": "highlight",
10442
+ "pressFeedback": "scale",
10395
10443
  "transition": {
10396
10444
  "enter": "fadeSlide",
10397
10445
  "direction": "up",
@@ -10617,6 +10665,20 @@ const SCREENS = runtimeSetting({
10617
10665
  "id": "$item.collectionId"
10618
10666
  }
10619
10667
  }
10668
+ },
10669
+ {
10670
+ "id": "open",
10671
+ "label": "Open details",
10672
+ "icon": "chevron_right",
10673
+ "action": {
10674
+ "actionId": "himi.open",
10675
+ "params": {
10676
+ "screenId": "$item.detailScreenId",
10677
+ "id": "$item.id",
10678
+ "menuId": "$item.menuId",
10679
+ "sectionId": "$item.sectionId"
10680
+ }
10681
+ }
10620
10682
  }
10621
10683
  ]
10622
10684
  }
@@ -10637,6 +10699,16 @@ const SCREENS = runtimeSetting({
10637
10699
  }
10638
10700
  },
10639
10701
  "modifiers": {
10702
+ "onTap": {
10703
+ "actionId": "himi.open",
10704
+ "params": {
10705
+ "screenId": "$item.detailScreenId",
10706
+ "id": "$item.id",
10707
+ "menuId": "$item.menuId",
10708
+ "sectionId": "$item.sectionId"
10709
+ }
10710
+ },
10711
+ "haptic": "light",
10640
10712
  "background": {
10641
10713
  "token": "surfaceElevated"
10642
10714
  },
@@ -10655,7 +10727,7 @@ const SCREENS = runtimeSetting({
10655
10727
  },
10656
10728
  "fillMaxWidth": true,
10657
10729
  "accessibilityLabel": "$item.collectionTitle",
10658
- "pressFeedback": "highlight",
10730
+ "pressFeedback": "scale",
10659
10731
  "transition": {
10660
10732
  "enter": "fadeSlide",
10661
10733
  "direction": "up",
@@ -10943,6 +11015,20 @@ const SCREENS = runtimeSetting({
10943
11015
  "id": "$item.collectionId"
10944
11016
  }
10945
11017
  }
11018
+ },
11019
+ {
11020
+ "id": "open",
11021
+ "label": "Open details",
11022
+ "icon": "chevron_right",
11023
+ "action": {
11024
+ "actionId": "himi.open",
11025
+ "params": {
11026
+ "screenId": "$item.detailScreenId",
11027
+ "id": "$item.id",
11028
+ "menuId": "$item.menuId",
11029
+ "sectionId": "$item.sectionId"
11030
+ }
11031
+ }
10946
11032
  }
10947
11033
  ]
10948
11034
  }
@@ -10959,6 +11045,16 @@ const SCREENS = runtimeSetting({
10959
11045
  }
10960
11046
  },
10961
11047
  "modifiers": {
11048
+ "onTap": {
11049
+ "actionId": "himi.open",
11050
+ "params": {
11051
+ "screenId": "$item.detailScreenId",
11052
+ "id": "$item.id",
11053
+ "menuId": "$item.menuId",
11054
+ "sectionId": "$item.sectionId"
11055
+ }
11056
+ },
11057
+ "haptic": "light",
10962
11058
  "background": {
10963
11059
  "token": "surfaceElevated"
10964
11060
  },
@@ -10977,7 +11073,7 @@ const SCREENS = runtimeSetting({
10977
11073
  },
10978
11074
  "fillMaxWidth": true,
10979
11075
  "accessibilityLabel": "$item.collectionTitle",
10980
- "pressFeedback": "highlight",
11076
+ "pressFeedback": "scale",
10981
11077
  "transition": {
10982
11078
  "enter": "fadeSlide",
10983
11079
  "direction": "up",
@@ -11553,6 +11649,20 @@ const SCREENS = runtimeSetting({
11553
11649
  "id": "$item.collectionId"
11554
11650
  }
11555
11651
  }
11652
+ },
11653
+ {
11654
+ "id": "open",
11655
+ "label": "Open details",
11656
+ "icon": "chevron_right",
11657
+ "action": {
11658
+ "actionId": "himi.open",
11659
+ "params": {
11660
+ "screenId": "$item.detailScreenId",
11661
+ "id": "$item.id",
11662
+ "menuId": "$item.menuId",
11663
+ "sectionId": "$item.sectionId"
11664
+ }
11665
+ }
11556
11666
  }
11557
11667
  ]
11558
11668
  }
@@ -11569,6 +11679,16 @@ const SCREENS = runtimeSetting({
11569
11679
  }
11570
11680
  },
11571
11681
  "modifiers": {
11682
+ "onTap": {
11683
+ "actionId": "himi.open",
11684
+ "params": {
11685
+ "screenId": "$item.detailScreenId",
11686
+ "id": "$item.id",
11687
+ "menuId": "$item.menuId",
11688
+ "sectionId": "$item.sectionId"
11689
+ }
11690
+ },
11691
+ "haptic": "light",
11572
11692
  "background": {
11573
11693
  "token": "surfaceElevated"
11574
11694
  },
@@ -11587,7 +11707,7 @@ const SCREENS = runtimeSetting({
11587
11707
  },
11588
11708
  "fillMaxWidth": true,
11589
11709
  "accessibilityLabel": "$item.collectionTitle",
11590
- "pressFeedback": "highlight",
11710
+ "pressFeedback": "scale",
11591
11711
  "transition": {
11592
11712
  "enter": "fadeSlide",
11593
11713
  "direction": "up",
@@ -19403,7 +19523,7 @@ const SCREENS = runtimeSetting({
19403
19523
  "package": "himalaya",
19404
19524
  "type": "Text",
19405
19525
  "props": {
19406
- "text": "My Food Orders",
19526
+ "text": "Food orders",
19407
19527
  "style": "title1"
19408
19528
  }
19409
19529
  }
@@ -19414,14 +19534,14 @@ const SCREENS = runtimeSetting({
19414
19534
  "package": "himalaya",
19415
19535
  "type": "Text",
19416
19536
  "props": {
19417
- "text": "Your order history at this restaurant.",
19537
+ "text": "Order for pickup or delivery, then pay on the restaurant's secure checkout.",
19418
19538
  "style": "body",
19419
19539
  "color": "textSecondary"
19420
19540
  }
19421
19541
  }
19422
19542
  },
19423
19543
  {
19424
- "id": "himi_food_orders.signin_card",
19544
+ "id": "himi_food_orders.loading",
19425
19545
  "body": {
19426
19546
  "package": "himalaya",
19427
19547
  "type": "VStack",
@@ -19429,65 +19549,17 @@ const SCREENS = runtimeSetting({
19429
19549
  "spacing": 8,
19430
19550
  "alignment": "leading",
19431
19551
  "children": [
19432
- {
19433
- "id": "",
19434
- "body": {
19435
- "package": "himalaya",
19436
- "type": "Icon",
19437
- "props": {
19438
- "name": "person",
19439
- "size": 28,
19440
- "tint": "accentPrimary"
19441
- }
19442
- },
19443
- "modifiers": {
19444
- "accessibilityRole": "decorative"
19445
- }
19446
- },
19447
- {
19448
- "id": "",
19449
- "body": {
19450
- "package": "himalaya",
19451
- "type": "Text",
19452
- "props": {
19453
- "text": "Sign in to see your food orders",
19454
- "style": "bodyEmphasis"
19455
- }
19456
- }
19457
- },
19458
19552
  {
19459
19553
  "id": "",
19460
19554
  "body": {
19461
19555
  "package": "himalaya",
19462
19556
  "type": "Text",
19463
19557
  "props": {
19464
- "text": "Restaurant activity is kept private to your member account.",
19465
- "style": "footnote",
19558
+ "text": "Loading your order...",
19559
+ "style": "body",
19466
19560
  "color": "textSecondary"
19467
19561
  }
19468
19562
  }
19469
- },
19470
- {
19471
- "id": "himi_food_orders.signin",
19472
- "body": {
19473
- "package": "himalaya",
19474
- "type": "Button",
19475
- "props": {
19476
- "title": "Sign in",
19477
- "style": "primary",
19478
- "fullWidth": true,
19479
- "action": {
19480
- "actionId": "himi.open",
19481
- "params": {
19482
- "screenId": "himi_sign_in",
19483
- "intent": "food-orders",
19484
- "returnScreenId": "himi_food_orders",
19485
- "modal": "1"
19486
- },
19487
- "presentation": "sheet"
19488
- }
19489
- }
19490
- }
19491
19563
  }
19492
19564
  ]
19493
19565
  }
@@ -19509,11 +19581,11 @@ const SCREENS = runtimeSetting({
19509
19581
  "top": 16,
19510
19582
  "bottom": 16
19511
19583
  },
19512
- "hiddenPath": "$service:spacesFoodOrders.noSignIn"
19584
+ "hiddenPath": "$service:spacesFoodOrders.notLoading"
19513
19585
  }
19514
19586
  },
19515
19587
  {
19516
- "id": "himi_food_orders.basket",
19588
+ "id": "himi_food_orders.error",
19517
19589
  "body": {
19518
19590
  "package": "himalaya",
19519
19591
  "type": "VStack",
@@ -19525,142 +19597,11 @@ const SCREENS = runtimeSetting({
19525
19597
  "id": "",
19526
19598
  "body": {
19527
19599
  "package": "himalaya",
19528
- "type": "HStack",
19529
- "props": {
19530
- "spacing": 8,
19531
- "children": [
19532
- {
19533
- "id": "",
19534
- "body": {
19535
- "package": "himalaya",
19536
- "type": "Icon",
19537
- "props": {
19538
- "name": "bag",
19539
- "size": 20,
19540
- "tint": "accentPrimary"
19541
- }
19542
- },
19543
- "modifiers": {
19544
- "accessibilityRole": "decorative"
19545
- }
19546
- },
19547
- {
19548
- "id": "",
19549
- "body": {
19550
- "package": "himalaya",
19551
- "type": "Text",
19552
- "props": {
19553
- "text": "Your basket",
19554
- "style": "title3"
19555
- }
19556
- }
19557
- },
19558
- {
19559
- "id": "",
19560
- "body": {
19561
- "package": "himalaya",
19562
- "type": "Spacer",
19563
- "props": {}
19564
- }
19565
- },
19566
- {
19567
- "id": "",
19568
- "body": {
19569
- "package": "himalaya",
19570
- "type": "Text",
19571
- "props": {
19572
- "text": "$service:spacesFoodOrders.basketLabel",
19573
- "style": "caption",
19574
- "color": "textSecondary",
19575
- "collapseWhenEmpty": true
19576
- }
19577
- }
19578
- }
19579
- ]
19580
- }
19581
- }
19582
- },
19583
- {
19584
- "id": "himi_food_orders.basket_rows",
19585
- "body": {
19586
- "package": "himalaya",
19587
- "type": "Grid",
19600
+ "type": "Text",
19588
19601
  "props": {
19589
- "columns": 1,
19590
- "spacing": 8,
19591
- "itemsPath": "$service:spacesFoodOrders.basketItems",
19592
- "items": [
19593
- {
19594
- "id": "",
19595
- "body": {
19596
- "package": "himalaya",
19597
- "type": "HStack",
19598
- "props": {
19599
- "spacing": 10,
19600
- "children": [
19601
- {
19602
- "id": "",
19603
- "body": {
19604
- "package": "himalaya",
19605
- "type": "VStack",
19606
- "props": {
19607
- "spacing": 3,
19608
- "alignment": "leading",
19609
- "children": [
19610
- {
19611
- "id": "",
19612
- "body": {
19613
- "package": "himalaya",
19614
- "type": "Text",
19615
- "props": {
19616
- "text": "$item.name",
19617
- "style": "bodyEmphasis",
19618
- "maxLines": 2
19619
- }
19620
- }
19621
- },
19622
- {
19623
- "id": "",
19624
- "body": {
19625
- "package": "himalaya",
19626
- "type": "Text",
19627
- "props": {
19628
- "text": "$item.subtitle",
19629
- "style": "footnote",
19630
- "color": "textSecondary",
19631
- "collapseWhenEmpty": true
19632
- }
19633
- }
19634
- }
19635
- ]
19636
- }
19637
- }
19638
- },
19639
- {
19640
- "id": "",
19641
- "body": {
19642
- "package": "himalaya",
19643
- "type": "Spacer",
19644
- "props": {}
19645
- }
19646
- },
19647
- {
19648
- "id": "",
19649
- "body": {
19650
- "package": "himalaya",
19651
- "type": "Text",
19652
- "props": {
19653
- "text": "$item.quantity",
19654
- "style": "title3",
19655
- "color": "accentPrimary"
19656
- }
19657
- }
19658
- }
19659
- ]
19660
- }
19661
- }
19662
- }
19663
- ]
19602
+ "text": "$service:spacesFoodOrders.errorText",
19603
+ "style": "bodyEmphasis",
19604
+ "collapseWhenEmpty": true
19664
19605
  }
19665
19606
  }
19666
19607
  },
@@ -19670,22 +19611,22 @@ const SCREENS = runtimeSetting({
19670
19611
  "package": "himalaya",
19671
19612
  "type": "Text",
19672
19613
  "props": {
19673
- "text": "Saved on this device for this business. In-app restaurant checkout is not available yet.",
19674
- "style": "caption",
19675
- "color": "textTertiary"
19614
+ "text": "Try again without leaving the app.",
19615
+ "style": "footnote",
19616
+ "color": "textSecondary"
19676
19617
  }
19677
19618
  }
19678
19619
  },
19679
19620
  {
19680
- "id": "himi_food_orders.clear_basket",
19621
+ "id": "himi_food_orders.retry",
19681
19622
  "body": {
19682
19623
  "package": "himalaya",
19683
19624
  "type": "Button",
19684
19625
  "props": {
19685
- "title": "Clear basket",
19626
+ "title": "Try again",
19686
19627
  "style": "secondary",
19687
19628
  "action": {
19688
- "actionId": "tier5.spacesFoodOrders.clearBasket"
19629
+ "actionId": "tier5.spacesFoodOrders.load"
19689
19630
  }
19690
19631
  }
19691
19632
  }
@@ -19710,21 +19651,6 @@ const SCREENS = runtimeSetting({
19710
19651
  "top": 16,
19711
19652
  "bottom": 16
19712
19653
  },
19713
- "hiddenPath": "$service:spacesFoodOrders.noBasket"
19714
- }
19715
- },
19716
- {
19717
- "id": "himi_food_orders.error",
19718
- "body": {
19719
- "package": "himalaya",
19720
- "type": "Banner",
19721
- "props": {
19722
- "severity": "warning",
19723
- "title": "Your active order could not be loaded",
19724
- "message": "Your basket is still available on this device."
19725
- }
19726
- },
19727
- "modifiers": {
19728
19654
  "hiddenPath": "$service:spacesFoodOrders.notErrored"
19729
19655
  }
19730
19656
  },
@@ -19734,7 +19660,1047 @@ const SCREENS = runtimeSetting({
19734
19660
  "package": "himalaya",
19735
19661
  "type": "VStack",
19736
19662
  "props": {
19737
- "spacing": 10,
19663
+ "spacing": 0,
19664
+ "alignment": "leading",
19665
+ "children": [
19666
+ {
19667
+ "id": "himi_food_orders.closed",
19668
+ "body": {
19669
+ "package": "himalaya",
19670
+ "type": "Banner",
19671
+ "props": {
19672
+ "severity": "warning",
19673
+ "title": "Not taking orders",
19674
+ "message": "$service:spacesFoodOrders.closedText"
19675
+ }
19676
+ },
19677
+ "modifiers": {
19678
+ "hiddenPath": "$service:spacesFoodOrders.hideClosedBanner"
19679
+ }
19680
+ },
19681
+ {
19682
+ "id": "himi_food_orders.closed_mixed",
19683
+ "body": {
19684
+ "package": "himalaya",
19685
+ "type": "Banner",
19686
+ "props": {
19687
+ "severity": "warning",
19688
+ "title": "Dishes from more than one location",
19689
+ "message": "$service:spacesFoodOrders.closedText"
19690
+ }
19691
+ },
19692
+ "modifiers": {
19693
+ "hiddenPath": "$service:spacesFoodOrders.hideMixedBanner"
19694
+ }
19695
+ },
19696
+ {
19697
+ "id": "himi_food_orders.closed_refresh",
19698
+ "body": {
19699
+ "package": "himalaya",
19700
+ "type": "Banner",
19701
+ "props": {
19702
+ "severity": "warning",
19703
+ "title": "Order details need a refresh",
19704
+ "message": "$service:spacesFoodOrders.closedText"
19705
+ }
19706
+ },
19707
+ "modifiers": {
19708
+ "hiddenPath": "$service:spacesFoodOrders.hideRefreshBanner"
19709
+ }
19710
+ }
19711
+ ]
19712
+ }
19713
+ }
19714
+ },
19715
+ {
19716
+ "id": "himi_food_orders.empty_cart",
19717
+ "body": {
19718
+ "package": "himalaya",
19719
+ "type": "VStack",
19720
+ "props": {
19721
+ "spacing": 8,
19722
+ "alignment": "leading",
19723
+ "children": [
19724
+ {
19725
+ "id": "",
19726
+ "body": {
19727
+ "package": "himalaya",
19728
+ "type": "Icon",
19729
+ "props": {
19730
+ "name": "bag",
19731
+ "size": 28,
19732
+ "tint": "textTertiary"
19733
+ }
19734
+ },
19735
+ "modifiers": {
19736
+ "accessibilityRole": "decorative"
19737
+ }
19738
+ },
19739
+ {
19740
+ "id": "",
19741
+ "body": {
19742
+ "package": "himalaya",
19743
+ "type": "Text",
19744
+ "props": {
19745
+ "text": "Your order is empty",
19746
+ "style": "bodyEmphasis"
19747
+ }
19748
+ }
19749
+ },
19750
+ {
19751
+ "id": "",
19752
+ "body": {
19753
+ "package": "himalaya",
19754
+ "type": "Text",
19755
+ "props": {
19756
+ "text": "Add dishes from the menu to start an order.",
19757
+ "style": "footnote",
19758
+ "color": "textSecondary"
19759
+ }
19760
+ }
19761
+ },
19762
+ {
19763
+ "id": "himi_food_orders.browse",
19764
+ "body": {
19765
+ "package": "himalaya",
19766
+ "type": "Button",
19767
+ "props": {
19768
+ "title": "Browse the menu",
19769
+ "style": "secondary",
19770
+ "action": {
19771
+ "actionId": "himi.open",
19772
+ "params": {
19773
+ "screenId": "himi_menu"
19774
+ }
19775
+ }
19776
+ }
19777
+ }
19778
+ }
19779
+ ]
19780
+ }
19781
+ },
19782
+ "modifiers": {
19783
+ "background": {
19784
+ "token": "surfaceElevated"
19785
+ },
19786
+ "border": {
19787
+ "width": 1,
19788
+ "color": {
19789
+ "token": "border"
19790
+ }
19791
+ },
19792
+ "cornerRadius": 4,
19793
+ "padding": {
19794
+ "leading": 16,
19795
+ "trailing": 16,
19796
+ "top": 16,
19797
+ "bottom": 16
19798
+ },
19799
+ "fillMaxWidth": true,
19800
+ "hiddenPath": "$service:spacesFoodOrders.hideEmptyCart"
19801
+ }
19802
+ },
19803
+ {
19804
+ "id": "",
19805
+ "body": {
19806
+ "package": "himalaya",
19807
+ "type": "VStack",
19808
+ "props": {
19809
+ "spacing": 10,
19810
+ "alignment": "leading",
19811
+ "children": [
19812
+ {
19813
+ "id": "himi_food_orders.lines",
19814
+ "body": {
19815
+ "package": "himalaya",
19816
+ "type": "Grid",
19817
+ "props": {
19818
+ "columns": 1,
19819
+ "spacing": 10,
19820
+ "itemsPath": "$service:spacesFoodOrders.items",
19821
+ "items": [
19822
+ {
19823
+ "id": "himi_food_orders.line",
19824
+ "body": {
19825
+ "package": "himalaya",
19826
+ "type": "VStack",
19827
+ "props": {
19828
+ "spacing": 8,
19829
+ "alignment": "leading",
19830
+ "children": [
19831
+ {
19832
+ "id": "",
19833
+ "body": {
19834
+ "package": "himalaya",
19835
+ "type": "HStack",
19836
+ "props": {
19837
+ "spacing": 10,
19838
+ "children": [
19839
+ {
19840
+ "id": "",
19841
+ "body": {
19842
+ "package": "himalaya",
19843
+ "type": "Image",
19844
+ "props": {
19845
+ "url": "$item.image",
19846
+ "width": 52,
19847
+ "height": 52,
19848
+ "contentMode": "fill",
19849
+ "contentDescription": "$item.title"
19850
+ }
19851
+ },
19852
+ "modifiers": {
19853
+ "cornerRadius": 8,
19854
+ "hiddenPath": "$item.noImage"
19855
+ }
19856
+ },
19857
+ {
19858
+ "id": "himi_food_orders.line_media.initial",
19859
+ "body": {
19860
+ "package": "himalaya",
19861
+ "type": "ZStack",
19862
+ "props": {
19863
+ "alignment": "center",
19864
+ "children": [
19865
+ {
19866
+ "id": "",
19867
+ "body": {
19868
+ "package": "himalaya",
19869
+ "type": "Text",
19870
+ "props": {
19871
+ "text": "$item.initial",
19872
+ "style": "title2",
19873
+ "color": "textOnAccent",
19874
+ "maxLines": 1,
19875
+ "collapseWhenEmpty": true
19876
+ }
19877
+ }
19878
+ }
19879
+ ]
19880
+ }
19881
+ },
19882
+ "modifiers": {
19883
+ "width": 52,
19884
+ "height": 52,
19885
+ "background": {
19886
+ "token": "accentPrimary"
19887
+ },
19888
+ "cornerRadius": 16,
19889
+ "hiddenPath": "$item.hasImage"
19890
+ }
19891
+ },
19892
+ {
19893
+ "id": "",
19894
+ "body": {
19895
+ "package": "himalaya",
19896
+ "type": "VStack",
19897
+ "props": {
19898
+ "spacing": 3,
19899
+ "alignment": "leading",
19900
+ "children": [
19901
+ {
19902
+ "id": "",
19903
+ "body": {
19904
+ "package": "himalaya",
19905
+ "type": "Text",
19906
+ "props": {
19907
+ "text": "$item.name",
19908
+ "style": "bodyEmphasis",
19909
+ "maxLines": 2
19910
+ }
19911
+ }
19912
+ },
19913
+ {
19914
+ "id": "",
19915
+ "body": {
19916
+ "package": "himalaya",
19917
+ "type": "Text",
19918
+ "props": {
19919
+ "text": "$item.subtitle",
19920
+ "style": "footnote",
19921
+ "color": "textSecondary",
19922
+ "collapseWhenEmpty": true
19923
+ }
19924
+ }
19925
+ }
19926
+ ]
19927
+ }
19928
+ }
19929
+ },
19930
+ {
19931
+ "id": "",
19932
+ "body": {
19933
+ "package": "himalaya",
19934
+ "type": "Spacer",
19935
+ "props": {}
19936
+ }
19937
+ },
19938
+ {
19939
+ "id": "",
19940
+ "body": {
19941
+ "package": "himalaya",
19942
+ "type": "Text",
19943
+ "props": {
19944
+ "text": "$item.total",
19945
+ "style": "bodyEmphasis",
19946
+ "collapseWhenEmpty": true
19947
+ }
19948
+ }
19949
+ }
19950
+ ]
19951
+ }
19952
+ }
19953
+ },
19954
+ {
19955
+ "id": "",
19956
+ "body": {
19957
+ "package": "himalaya",
19958
+ "type": "HStack",
19959
+ "props": {
19960
+ "spacing": 10,
19961
+ "children": [
19962
+ {
19963
+ "id": "himi_food_orders.qty_minus",
19964
+ "body": {
19965
+ "package": "himalaya",
19966
+ "type": "Button",
19967
+ "props": {
19968
+ "title": "−",
19969
+ "style": "secondary",
19970
+ "action": {
19971
+ "actionId": "tier5.spacesFoodOrders.decrement",
19972
+ "params": {
19973
+ "id": "$item.id"
19974
+ }
19975
+ }
19976
+ }
19977
+ },
19978
+ "modifiers": {
19979
+ "accessibilityLabel": "Decrease quantity"
19980
+ }
19981
+ },
19982
+ {
19983
+ "id": "himi_food_orders.qty_value",
19984
+ "body": {
19985
+ "package": "himalaya",
19986
+ "type": "Text",
19987
+ "props": {
19988
+ "text": "$item.quantityLabel",
19989
+ "style": "bodyEmphasis"
19990
+ }
19991
+ }
19992
+ },
19993
+ {
19994
+ "id": "himi_food_orders.qty_plus",
19995
+ "body": {
19996
+ "package": "himalaya",
19997
+ "type": "Button",
19998
+ "props": {
19999
+ "title": "+",
20000
+ "style": "secondary",
20001
+ "action": {
20002
+ "actionId": "tier5.spacesFoodOrders.increment",
20003
+ "params": {
20004
+ "id": "$item.id"
20005
+ }
20006
+ }
20007
+ }
20008
+ },
20009
+ "modifiers": {
20010
+ "accessibilityLabel": "Increase quantity"
20011
+ }
20012
+ },
20013
+ {
20014
+ "id": "",
20015
+ "body": {
20016
+ "package": "himalaya",
20017
+ "type": "Spacer",
20018
+ "props": {}
20019
+ }
20020
+ },
20021
+ {
20022
+ "id": "himi_food_orders.remove",
20023
+ "body": {
20024
+ "package": "himalaya",
20025
+ "type": "Button",
20026
+ "props": {
20027
+ "title": "Remove",
20028
+ "action": {
20029
+ "actionId": "tier5.spacesFoodOrders.remove",
20030
+ "params": {
20031
+ "id": "$item.id"
20032
+ }
20033
+ },
20034
+ "style": "tertiary",
20035
+ "iconOnly": true,
20036
+ "leadingIcon": "trash",
20037
+ "cornerRadius": 22,
20038
+ "minHeight": 44
20039
+ }
20040
+ },
20041
+ "modifiers": {
20042
+ "width": 44,
20043
+ "height": 44,
20044
+ "accessibilityLabel": "Remove",
20045
+ "accessibilityRole": "button"
20046
+ }
20047
+ }
20048
+ ]
20049
+ }
20050
+ }
20051
+ }
20052
+ ]
20053
+ }
20054
+ },
20055
+ "modifiers": {
20056
+ "background": {
20057
+ "token": "surfaceElevated"
20058
+ },
20059
+ "border": {
20060
+ "width": 1,
20061
+ "color": {
20062
+ "token": "border"
20063
+ }
20064
+ },
20065
+ "cornerRadius": 4,
20066
+ "padding": {
20067
+ "leading": 16,
20068
+ "trailing": 16,
20069
+ "top": 16,
20070
+ "bottom": 16
20071
+ }
20072
+ }
20073
+ }
20074
+ ]
20075
+ }
20076
+ }
20077
+ },
20078
+ {
20079
+ "id": "",
20080
+ "body": {
20081
+ "package": "himalaya",
20082
+ "type": "HStack",
20083
+ "props": {
20084
+ "spacing": 8,
20085
+ "children": [
20086
+ {
20087
+ "id": "",
20088
+ "body": {
20089
+ "package": "himalaya",
20090
+ "type": "Text",
20091
+ "props": {
20092
+ "text": "Subtotal",
20093
+ "style": "bodyEmphasis"
20094
+ }
20095
+ }
20096
+ },
20097
+ {
20098
+ "id": "",
20099
+ "body": {
20100
+ "package": "himalaya",
20101
+ "type": "Spacer",
20102
+ "props": {}
20103
+ }
20104
+ },
20105
+ {
20106
+ "id": "himi_food_orders.subtotal",
20107
+ "body": {
20108
+ "package": "himalaya",
20109
+ "type": "Text",
20110
+ "props": {
20111
+ "text": "$service:spacesFoodOrders.subtotal",
20112
+ "style": "bodyEmphasis",
20113
+ "collapseWhenEmpty": true
20114
+ }
20115
+ }
20116
+ }
20117
+ ]
20118
+ }
20119
+ }
20120
+ }
20121
+ ]
20122
+ }
20123
+ },
20124
+ "modifiers": {
20125
+ "hiddenPath": "$service:spacesFoodOrders.noItems"
20126
+ }
20127
+ },
20128
+ {
20129
+ "id": "himi_food_orders.fulfillment",
20130
+ "body": {
20131
+ "package": "himalaya",
20132
+ "type": "VStack",
20133
+ "props": {
20134
+ "spacing": 8,
20135
+ "alignment": "leading",
20136
+ "children": [
20137
+ {
20138
+ "id": "",
20139
+ "body": {
20140
+ "package": "himalaya",
20141
+ "type": "Text",
20142
+ "props": {
20143
+ "text": "Pickup or delivery",
20144
+ "style": "title3"
20145
+ }
20146
+ }
20147
+ },
20148
+ {
20149
+ "id": "",
20150
+ "body": {
20151
+ "package": "himalaya",
20152
+ "type": "VStack",
20153
+ "props": {
20154
+ "spacing": 4,
20155
+ "alignment": "leading",
20156
+ "children": [
20157
+ {
20158
+ "id": "himi_food_orders.pickup_selected",
20159
+ "body": {
20160
+ "package": "himalaya",
20161
+ "type": "Button",
20162
+ "props": {
20163
+ "title": "$service:spacesFoodOrders.pickupLabel",
20164
+ "style": "primary",
20165
+ "fullWidth": true,
20166
+ "leadingIcon": "checkmark",
20167
+ "action": {
20168
+ "actionId": "tier5.spacesFoodOrders.choosePickup"
20169
+ }
20170
+ }
20171
+ },
20172
+ "modifiers": {
20173
+ "hiddenPath": "$service:spacesFoodOrders.pickupNotSelected"
20174
+ }
20175
+ },
20176
+ {
20177
+ "id": "himi_food_orders.pickup",
20178
+ "body": {
20179
+ "package": "himalaya",
20180
+ "type": "Button",
20181
+ "props": {
20182
+ "title": "$service:spacesFoodOrders.pickupLabel",
20183
+ "style": "secondary",
20184
+ "fullWidth": true,
20185
+ "leadingIcon": "bag",
20186
+ "action": {
20187
+ "actionId": "tier5.spacesFoodOrders.choosePickup"
20188
+ }
20189
+ }
20190
+ },
20191
+ "modifiers": {
20192
+ "hiddenPath": "$service:spacesFoodOrders.pickupSelected"
20193
+ }
20194
+ },
20195
+ {
20196
+ "id": "",
20197
+ "body": {
20198
+ "package": "himalaya",
20199
+ "type": "Text",
20200
+ "props": {
20201
+ "text": "$service:spacesFoodOrders.pickupDetail",
20202
+ "style": "caption",
20203
+ "color": "textSecondary",
20204
+ "collapseWhenEmpty": true
20205
+ }
20206
+ }
20207
+ }
20208
+ ]
20209
+ }
20210
+ },
20211
+ "modifiers": {
20212
+ "hiddenPath": "$service:spacesFoodOrders.noPickup"
20213
+ }
20214
+ },
20215
+ {
20216
+ "id": "",
20217
+ "body": {
20218
+ "package": "himalaya",
20219
+ "type": "VStack",
20220
+ "props": {
20221
+ "spacing": 4,
20222
+ "alignment": "leading",
20223
+ "children": [
20224
+ {
20225
+ "id": "himi_food_orders.delivery_selected",
20226
+ "body": {
20227
+ "package": "himalaya",
20228
+ "type": "Button",
20229
+ "props": {
20230
+ "title": "$service:spacesFoodOrders.deliveryLabel",
20231
+ "style": "primary",
20232
+ "fullWidth": true,
20233
+ "leadingIcon": "checkmark",
20234
+ "action": {
20235
+ "actionId": "tier5.spacesFoodOrders.chooseDelivery"
20236
+ }
20237
+ }
20238
+ },
20239
+ "modifiers": {
20240
+ "hiddenPath": "$service:spacesFoodOrders.deliveryNotSelected"
20241
+ }
20242
+ },
20243
+ {
20244
+ "id": "himi_food_orders.delivery",
20245
+ "body": {
20246
+ "package": "himalaya",
20247
+ "type": "Button",
20248
+ "props": {
20249
+ "title": "$service:spacesFoodOrders.deliveryLabel",
20250
+ "style": "secondary",
20251
+ "fullWidth": true,
20252
+ "leadingIcon": "location",
20253
+ "action": {
20254
+ "actionId": "tier5.spacesFoodOrders.chooseDelivery"
20255
+ }
20256
+ }
20257
+ },
20258
+ "modifiers": {
20259
+ "hiddenPath": "$service:spacesFoodOrders.deliverySelected"
20260
+ }
20261
+ },
20262
+ {
20263
+ "id": "",
20264
+ "body": {
20265
+ "package": "himalaya",
20266
+ "type": "Text",
20267
+ "props": {
20268
+ "text": "$service:spacesFoodOrders.deliveryDetail",
20269
+ "style": "caption",
20270
+ "color": "textSecondary",
20271
+ "collapseWhenEmpty": true
20272
+ }
20273
+ }
20274
+ }
20275
+ ]
20276
+ }
20277
+ },
20278
+ "modifiers": {
20279
+ "hiddenPath": "$service:spacesFoodOrders.noDelivery"
20280
+ }
20281
+ }
20282
+ ]
20283
+ }
20284
+ },
20285
+ "modifiers": {
20286
+ "background": {
20287
+ "token": "surfaceElevated"
20288
+ },
20289
+ "border": {
20290
+ "width": 1,
20291
+ "color": {
20292
+ "token": "border"
20293
+ }
20294
+ },
20295
+ "cornerRadius": 4,
20296
+ "padding": {
20297
+ "leading": 16,
20298
+ "trailing": 16,
20299
+ "top": 16,
20300
+ "bottom": 16
20301
+ },
20302
+ "fillMaxWidth": true,
20303
+ "hiddenPath": "$service:spacesFoodOrders.hideFulfillment"
20304
+ }
20305
+ },
20306
+ {
20307
+ "id": "himi_food_orders.address",
20308
+ "body": {
20309
+ "package": "himalaya",
20310
+ "type": "VStack",
20311
+ "props": {
20312
+ "spacing": 8,
20313
+ "alignment": "leading",
20314
+ "children": [
20315
+ {
20316
+ "id": "",
20317
+ "body": {
20318
+ "package": "himalaya",
20319
+ "type": "Text",
20320
+ "props": {
20321
+ "text": "Delivery address",
20322
+ "style": "title3"
20323
+ }
20324
+ }
20325
+ },
20326
+ {
20327
+ "id": "",
20328
+ "body": {
20329
+ "package": "himalaya",
20330
+ "type": "VStack",
20331
+ "props": {
20332
+ "spacing": 4,
20333
+ "alignment": "leading",
20334
+ "children": [
20335
+ {
20336
+ "id": "",
20337
+ "body": {
20338
+ "package": "himalaya",
20339
+ "type": "Text",
20340
+ "props": {
20341
+ "text": "Street and number",
20342
+ "style": "caption",
20343
+ "color": "textSecondary"
20344
+ }
20345
+ }
20346
+ },
20347
+ {
20348
+ "id": "himi_food_orders.addressLine",
20349
+ "body": {
20350
+ "package": "himalaya",
20351
+ "type": "TextField",
20352
+ "props": {
20353
+ "valuePath": "$service:spacesFoodOrders.addressLine",
20354
+ "autoCapitalization": "words",
20355
+ "onChange": {
20356
+ "actionId": "tier5.spacesFoodOrders.setAddressLine"
20357
+ }
20358
+ }
20359
+ },
20360
+ "modifiers": {
20361
+ "accessibilityLabel": "Street and number"
20362
+ }
20363
+ }
20364
+ ]
20365
+ }
20366
+ }
20367
+ },
20368
+ {
20369
+ "id": "",
20370
+ "body": {
20371
+ "package": "himalaya",
20372
+ "type": "VStack",
20373
+ "props": {
20374
+ "spacing": 4,
20375
+ "alignment": "leading",
20376
+ "children": [
20377
+ {
20378
+ "id": "",
20379
+ "body": {
20380
+ "package": "himalaya",
20381
+ "type": "Text",
20382
+ "props": {
20383
+ "text": "City",
20384
+ "style": "caption",
20385
+ "color": "textSecondary"
20386
+ }
20387
+ }
20388
+ },
20389
+ {
20390
+ "id": "himi_food_orders.city",
20391
+ "body": {
20392
+ "package": "himalaya",
20393
+ "type": "TextField",
20394
+ "props": {
20395
+ "valuePath": "$service:spacesFoodOrders.city",
20396
+ "autoCapitalization": "words",
20397
+ "onChange": {
20398
+ "actionId": "tier5.spacesFoodOrders.setCity"
20399
+ }
20400
+ }
20401
+ },
20402
+ "modifiers": {
20403
+ "accessibilityLabel": "City"
20404
+ }
20405
+ }
20406
+ ]
20407
+ }
20408
+ }
20409
+ },
20410
+ {
20411
+ "id": "",
20412
+ "body": {
20413
+ "package": "himalaya",
20414
+ "type": "VStack",
20415
+ "props": {
20416
+ "spacing": 4,
20417
+ "alignment": "leading",
20418
+ "children": [
20419
+ {
20420
+ "id": "",
20421
+ "body": {
20422
+ "package": "himalaya",
20423
+ "type": "Text",
20424
+ "props": {
20425
+ "text": "Postal code",
20426
+ "style": "caption",
20427
+ "color": "textSecondary"
20428
+ }
20429
+ }
20430
+ },
20431
+ {
20432
+ "id": "himi_food_orders.postalCode",
20433
+ "body": {
20434
+ "package": "himalaya",
20435
+ "type": "TextField",
20436
+ "props": {
20437
+ "valuePath": "$service:spacesFoodOrders.postalCode",
20438
+ "autoCapitalization": "characters",
20439
+ "onChange": {
20440
+ "actionId": "tier5.spacesFoodOrders.setPostalCode"
20441
+ }
20442
+ }
20443
+ },
20444
+ "modifiers": {
20445
+ "accessibilityLabel": "Postal code"
20446
+ }
20447
+ }
20448
+ ]
20449
+ }
20450
+ }
20451
+ },
20452
+ {
20453
+ "id": "",
20454
+ "body": {
20455
+ "package": "himalaya",
20456
+ "type": "VStack",
20457
+ "props": {
20458
+ "spacing": 4,
20459
+ "alignment": "leading",
20460
+ "children": [
20461
+ {
20462
+ "id": "",
20463
+ "body": {
20464
+ "package": "himalaya",
20465
+ "type": "Text",
20466
+ "props": {
20467
+ "text": "State or region",
20468
+ "style": "caption",
20469
+ "color": "textSecondary"
20470
+ }
20471
+ }
20472
+ },
20473
+ {
20474
+ "id": "himi_food_orders.subdivision",
20475
+ "body": {
20476
+ "package": "himalaya",
20477
+ "type": "TextField",
20478
+ "props": {
20479
+ "placeholder": "For example CA",
20480
+ "valuePath": "$service:spacesFoodOrders.subdivision",
20481
+ "autoCapitalization": "characters",
20482
+ "onChange": {
20483
+ "actionId": "tier5.spacesFoodOrders.setSubdivision"
20484
+ }
20485
+ }
20486
+ },
20487
+ "modifiers": {
20488
+ "accessibilityLabel": "State or region"
20489
+ }
20490
+ }
20491
+ ]
20492
+ }
20493
+ }
20494
+ },
20495
+ {
20496
+ "id": "",
20497
+ "body": {
20498
+ "package": "himalaya",
20499
+ "type": "VStack",
20500
+ "props": {
20501
+ "spacing": 4,
20502
+ "alignment": "leading",
20503
+ "children": [
20504
+ {
20505
+ "id": "",
20506
+ "body": {
20507
+ "package": "himalaya",
20508
+ "type": "Text",
20509
+ "props": {
20510
+ "text": "Country",
20511
+ "style": "caption",
20512
+ "color": "textSecondary"
20513
+ }
20514
+ }
20515
+ },
20516
+ {
20517
+ "id": "himi_food_orders.country",
20518
+ "body": {
20519
+ "package": "himalaya",
20520
+ "type": "TextField",
20521
+ "props": {
20522
+ "placeholder": "Two-letter code, for example US",
20523
+ "valuePath": "$service:spacesFoodOrders.country",
20524
+ "autoCapitalization": "characters",
20525
+ "onChange": {
20526
+ "actionId": "tier5.spacesFoodOrders.setCountry"
20527
+ }
20528
+ }
20529
+ },
20530
+ "modifiers": {
20531
+ "accessibilityLabel": "Country"
20532
+ }
20533
+ }
20534
+ ]
20535
+ }
20536
+ }
20537
+ }
20538
+ ]
20539
+ }
20540
+ },
20541
+ "modifiers": {
20542
+ "background": {
20543
+ "token": "surfaceElevated"
20544
+ },
20545
+ "border": {
20546
+ "width": 1,
20547
+ "color": {
20548
+ "token": "border"
20549
+ }
20550
+ },
20551
+ "cornerRadius": 4,
20552
+ "padding": {
20553
+ "leading": 16,
20554
+ "trailing": 16,
20555
+ "top": 16,
20556
+ "bottom": 16
20557
+ },
20558
+ "fillMaxWidth": true,
20559
+ "hiddenPath": "$service:spacesFoodOrders.hideAddress"
20560
+ }
20561
+ },
20562
+ {
20563
+ "id": "",
20564
+ "body": {
20565
+ "package": "himalaya",
20566
+ "type": "VStack",
20567
+ "props": {
20568
+ "spacing": 8,
20569
+ "alignment": "leading",
20570
+ "children": [
20571
+ {
20572
+ "id": "himi_food_orders.outside_area",
20573
+ "body": {
20574
+ "package": "himalaya",
20575
+ "type": "Banner",
20576
+ "props": {
20577
+ "severity": "warning",
20578
+ "title": "Outside the delivery area",
20579
+ "message": "The restaurant doesn't deliver to this address. Check the address or choose pickup."
20580
+ }
20581
+ }
20582
+ },
20583
+ {
20584
+ "id": "himi_food_orders.switch_to_pickup",
20585
+ "body": {
20586
+ "package": "himalaya",
20587
+ "type": "Button",
20588
+ "props": {
20589
+ "title": "Switch to pickup",
20590
+ "style": "secondary",
20591
+ "fullWidth": true,
20592
+ "leadingIcon": "bag",
20593
+ "action": {
20594
+ "actionId": "tier5.spacesFoodOrders.choosePickup"
20595
+ }
20596
+ }
20597
+ },
20598
+ "modifiers": {
20599
+ "hiddenPath": "$service:spacesFoodOrders.noPickup"
20600
+ }
20601
+ }
20602
+ ]
20603
+ }
20604
+ },
20605
+ "modifiers": {
20606
+ "hiddenPath": "$service:spacesFoodOrders.notOutsideArea"
20607
+ }
20608
+ },
20609
+ {
20610
+ "id": "",
20611
+ "body": {
20612
+ "package": "himalaya",
20613
+ "type": "VStack",
20614
+ "props": {
20615
+ "spacing": 8,
20616
+ "alignment": "leading",
20617
+ "children": [
20618
+ {
20619
+ "id": "himi_food_orders.minimum",
20620
+ "body": {
20621
+ "package": "himalaya",
20622
+ "type": "Text",
20623
+ "props": {
20624
+ "text": "$service:spacesFoodOrders.minimumText",
20625
+ "style": "footnote",
20626
+ "color": "textPrimary",
20627
+ "collapseWhenEmpty": true
20628
+ }
20629
+ },
20630
+ "modifiers": {
20631
+ "hiddenPath": "$service:spacesFoodOrders.noMinimumText"
20632
+ }
20633
+ },
20634
+ {
20635
+ "id": "himi_food_orders.total",
20636
+ "body": {
20637
+ "package": "himalaya",
20638
+ "type": "Text",
20639
+ "props": {
20640
+ "text": "$service:spacesFoodOrders.totalLine",
20641
+ "style": "bodyEmphasis",
20642
+ "collapseWhenEmpty": true
20643
+ }
20644
+ }
20645
+ },
20646
+ {
20647
+ "id": "himi_food_orders.hint",
20648
+ "body": {
20649
+ "package": "himalaya",
20650
+ "type": "Text",
20651
+ "props": {
20652
+ "text": "$service:spacesFoodOrders.checkoutHint",
20653
+ "style": "footnote",
20654
+ "color": "textSecondary",
20655
+ "collapseWhenEmpty": true
20656
+ }
20657
+ }
20658
+ },
20659
+ {
20660
+ "id": "himi_food_orders.checkout",
20661
+ "body": {
20662
+ "package": "himalaya",
20663
+ "type": "Button",
20664
+ "props": {
20665
+ "title": "Checkout",
20666
+ "style": "primary",
20667
+ "fullWidth": true,
20668
+ "leadingIcon": "lock",
20669
+ "action": {
20670
+ "actionId": "tier5.spacesFoodOrders.checkout"
20671
+ }
20672
+ }
20673
+ },
20674
+ "modifiers": {
20675
+ "hiddenPath": "$service:spacesFoodOrders.hideCheckout"
20676
+ }
20677
+ },
20678
+ {
20679
+ "id": "",
20680
+ "body": {
20681
+ "package": "himalaya",
20682
+ "type": "Text",
20683
+ "props": {
20684
+ "text": "You pay on the restaurant's secure checkout page.",
20685
+ "style": "caption",
20686
+ "color": "textTertiary"
20687
+ }
20688
+ },
20689
+ "modifiers": {
20690
+ "hiddenPath": "$service:spacesFoodOrders.hideCheckout"
20691
+ }
20692
+ }
20693
+ ]
20694
+ }
20695
+ }
20696
+ },
20697
+ {
20698
+ "id": "",
20699
+ "body": {
20700
+ "package": "himalaya",
20701
+ "type": "VStack",
20702
+ "props": {
20703
+ "spacing": 10,
19738
20704
  "alignment": "leading",
19739
20705
  "children": [
19740
20706
  {
@@ -19743,11 +20709,103 @@ const SCREENS = runtimeSetting({
19743
20709
  "package": "himalaya",
19744
20710
  "type": "Text",
19745
20711
  "props": {
19746
- "text": "Active order",
20712
+ "text": "Past orders",
19747
20713
  "style": "title3"
19748
20714
  }
19749
20715
  }
19750
20716
  },
20717
+ {
20718
+ "id": "himi_food_orders.signin_card",
20719
+ "body": {
20720
+ "package": "himalaya",
20721
+ "type": "VStack",
20722
+ "props": {
20723
+ "spacing": 8,
20724
+ "alignment": "leading",
20725
+ "children": [
20726
+ {
20727
+ "id": "",
20728
+ "body": {
20729
+ "package": "himalaya",
20730
+ "type": "Icon",
20731
+ "props": {
20732
+ "name": "person",
20733
+ "size": 28,
20734
+ "tint": "accentPrimary"
20735
+ }
20736
+ },
20737
+ "modifiers": {
20738
+ "accessibilityRole": "decorative"
20739
+ }
20740
+ },
20741
+ {
20742
+ "id": "",
20743
+ "body": {
20744
+ "package": "himalaya",
20745
+ "type": "Text",
20746
+ "props": {
20747
+ "text": "Sign in to see your past orders",
20748
+ "style": "bodyEmphasis"
20749
+ }
20750
+ }
20751
+ },
20752
+ {
20753
+ "id": "",
20754
+ "body": {
20755
+ "package": "himalaya",
20756
+ "type": "Text",
20757
+ "props": {
20758
+ "text": "Your restaurant orders are kept private to your member account.",
20759
+ "style": "footnote",
20760
+ "color": "textSecondary"
20761
+ }
20762
+ }
20763
+ },
20764
+ {
20765
+ "id": "himi_food_orders.signin",
20766
+ "body": {
20767
+ "package": "himalaya",
20768
+ "type": "Button",
20769
+ "props": {
20770
+ "title": "Sign in",
20771
+ "style": "primary",
20772
+ "fullWidth": true,
20773
+ "action": {
20774
+ "actionId": "himi.open",
20775
+ "params": {
20776
+ "screenId": "himi_sign_in",
20777
+ "intent": "food-orders",
20778
+ "returnScreenId": "himi_food_orders",
20779
+ "modal": "1"
20780
+ },
20781
+ "presentation": "sheet"
20782
+ }
20783
+ }
20784
+ }
20785
+ }
20786
+ ]
20787
+ }
20788
+ },
20789
+ "modifiers": {
20790
+ "background": {
20791
+ "token": "surfaceElevated"
20792
+ },
20793
+ "border": {
20794
+ "width": 1,
20795
+ "color": {
20796
+ "token": "border"
20797
+ }
20798
+ },
20799
+ "cornerRadius": 4,
20800
+ "padding": {
20801
+ "leading": 16,
20802
+ "trailing": 16,
20803
+ "top": 16,
20804
+ "bottom": 16
20805
+ },
20806
+ "hiddenPath": "$service:spacesFoodOrders.noSignIn"
20807
+ }
20808
+ },
19751
20809
  {
19752
20810
  "id": "himi_food_orders.rows",
19753
20811
  "body": {
@@ -19788,7 +20846,7 @@ const SCREENS = runtimeSetting({
19788
20846
  "text": "$item.subtitle",
19789
20847
  "style": "footnote",
19790
20848
  "color": "textSecondary",
19791
- "maxLines": 1,
20849
+ "maxLines": 2,
19792
20850
  "collapseWhenEmpty": true
19793
20851
  }
19794
20852
  }
@@ -19827,35 +20885,50 @@ const SCREENS = runtimeSetting({
19827
20885
  }
19828
20886
  ]
19829
20887
  }
20888
+ },
20889
+ "modifiers": {
20890
+ "hiddenPath": "$service:spacesFoodOrders.noOrders"
20891
+ }
20892
+ },
20893
+ {
20894
+ "id": "himi_food_orders.history_empty",
20895
+ "body": {
20896
+ "package": "himalaya",
20897
+ "type": "Text",
20898
+ "props": {
20899
+ "text": "$service:spacesFoodOrders.emptyText",
20900
+ "style": "body",
20901
+ "color": "textSecondary",
20902
+ "collapseWhenEmpty": true
20903
+ }
20904
+ },
20905
+ "modifiers": {
20906
+ "hiddenPath": "$service:spacesFoodOrders.hasOrders"
20907
+ }
20908
+ },
20909
+ {
20910
+ "id": "himi_food_orders.on_site",
20911
+ "body": {
20912
+ "package": "himalaya",
20913
+ "type": "Button",
20914
+ "props": {
20915
+ "title": "Open your orders on the site",
20916
+ "style": "secondary",
20917
+ "fullWidth": true,
20918
+ "action": {
20919
+ "actionId": "tier5.spacesFoodOrders.openOrdersOnSite"
20920
+ }
20921
+ }
20922
+ },
20923
+ "modifiers": {
20924
+ "hiddenPath": "$service:spacesFoodOrders.notOnSite"
19830
20925
  }
19831
20926
  }
19832
20927
  ]
19833
20928
  }
19834
20929
  },
19835
20930
  "modifiers": {
19836
- "hiddenPath": "$service:spacesFoodOrders.noActiveOrder"
19837
- }
19838
- },
19839
- {
19840
- "id": "",
19841
- "body": {
19842
- "package": "himalaya",
19843
- "type": "Text",
19844
- "props": {
19845
- "text": "$service:spacesFoodOrders.emptyText",
19846
- "style": "body",
19847
- "color": "textSecondary",
19848
- "collapseWhenEmpty": true
19849
- }
19850
- },
19851
- "modifiers": {
19852
- "padding": {
19853
- "leading": 8,
19854
- "trailing": 8,
19855
- "top": 8,
19856
- "bottom": 0
19857
- },
19858
- "hiddenPath": "$service:spacesFoodOrders.hasActiveOrder"
20931
+ "hiddenPath": "$service:spacesFoodOrders.isLoading"
19859
20932
  }
19860
20933
  }
19861
20934
  ]
@@ -19881,7 +20954,10 @@ const SCREENS = runtimeSetting({
19881
20954
  "integrity": "",
19882
20955
  "contentType": "application/javascript+ts-bundle",
19883
20956
  "declaredCapabilities": [
19884
- "wix_api"
20957
+ "wix_api",
20958
+ "wix_cashier",
20959
+ "open_url",
20960
+ "local_database"
19885
20961
  ],
19886
20962
  "minBinaryVersion": "0.1.0",
19887
20963
  "bundleVersion": "0.0.1"
@@ -20629,84 +21705,106 @@ const TEMPLATED: { pattern: string; display: string; liveSeed?: LiveSeed; static
20629
21705
  }
20630
21706
  },
20631
21707
  {
20632
- "id": "himi_menu_item.add_to_basket",
21708
+ "id": "himi_menu_item.add_to_order",
20633
21709
  "body": {
20634
21710
  "package": "himalaya",
20635
21711
  "type": "Button",
20636
21712
  "props": {
20637
- "title": "Add to basket",
21713
+ "title": "Add to order",
20638
21714
  "style": "primary",
20639
21715
  "fullWidth": true,
20640
21716
  "action": {
20641
- "actionId": "tier5.himiBrandedMenuItem.addToBasket"
21717
+ "actionId": "tier5.himiBrandedMenuItem.addToOrder"
20642
21718
  },
20643
21719
  "leadingIcon": "bag"
20644
21720
  }
20645
21721
  },
20646
21722
  "modifiers": {
20647
- "hiddenPath": "$service:himiBrandedMenuItem.cannotSaveBasket"
21723
+ "hiddenPath": "$service:himiBrandedMenuItem.cannotOrder"
20648
21724
  }
20649
21725
  },
20650
21726
  {
20651
- "id": "himi_menu_item.basket_signin",
21727
+ "id": "",
20652
21728
  "body": {
20653
21729
  "package": "himalaya",
20654
- "type": "Button",
21730
+ "type": "HStack",
20655
21731
  "props": {
20656
- "title": "Sign in to save a basket",
20657
- "style": "primary",
20658
- "fullWidth": true,
20659
- "action": {
20660
- "actionId": "himi.open",
20661
- "params": {
20662
- "screenId": "himi_sign_in",
20663
- "intent": "basket",
20664
- "returnScreenId": "himi_menu_item",
20665
- "returnId": "$service:himiBrandedMenuItem.id",
20666
- "modal": "1"
21732
+ "spacing": 8,
21733
+ "children": [
21734
+ {
21735
+ "id": "",
21736
+ "body": {
21737
+ "package": "himalaya",
21738
+ "type": "Icon",
21739
+ "props": {
21740
+ "name": "info",
21741
+ "size": 18,
21742
+ "tint": "textSecondary"
21743
+ }
21744
+ },
21745
+ "modifiers": {
21746
+ "accessibilityRole": "decorative"
21747
+ }
20667
21748
  },
20668
- "presentation": "sheet"
20669
- },
20670
- "leadingIcon": "person"
21749
+ {
21750
+ "id": "",
21751
+ "body": {
21752
+ "package": "himalaya",
21753
+ "type": "Text",
21754
+ "props": {
21755
+ "text": "$service:himiBrandedMenuItem.orderNote",
21756
+ "style": "footnote",
21757
+ "color": "textSecondary",
21758
+ "collapseWhenEmpty": true
21759
+ }
21760
+ }
21761
+ }
21762
+ ]
20671
21763
  }
20672
21764
  },
20673
21765
  "modifiers": {
20674
- "hiddenPath": "$service:himiBrandedMenuItem.canSaveBasket"
21766
+ "padding": {
21767
+ "leading": 2,
21768
+ "trailing": 2,
21769
+ "top": 2,
21770
+ "bottom": 2
21771
+ },
21772
+ "hiddenPath": "$service:himiBrandedMenuItem.noOrderNote"
20675
21773
  }
20676
21774
  },
20677
21775
  {
20678
- "id": "himi_menu_item.basket_count",
21776
+ "id": "himi_menu_item.order_message",
20679
21777
  "body": {
20680
21778
  "package": "himalaya",
20681
21779
  "type": "Text",
20682
21780
  "props": {
20683
- "text": "$service:himiBrandedMenuItem.basketLabel",
20684
- "style": "caption",
20685
- "color": "accentPrimary",
21781
+ "text": "$service:himiBrandedMenuItem.orderMessage",
21782
+ "style": "footnote",
21783
+ "color": "textPrimary",
20686
21784
  "collapseWhenEmpty": true
20687
21785
  }
20688
21786
  }
20689
21787
  },
20690
21788
  {
20691
- "id": "himi_menu_item.basket_message",
21789
+ "id": "himi_menu_item.cart_count",
20692
21790
  "body": {
20693
21791
  "package": "himalaya",
20694
21792
  "type": "Text",
20695
21793
  "props": {
20696
- "text": "$service:himiBrandedMenuItem.basketMessage",
20697
- "style": "footnote",
20698
- "color": "textSecondary",
21794
+ "text": "$service:himiBrandedMenuItem.cartLabel",
21795
+ "style": "caption",
21796
+ "color": "accentPrimary",
20699
21797
  "collapseWhenEmpty": true
20700
21798
  }
20701
21799
  }
20702
21800
  },
20703
21801
  {
20704
- "id": "himi_menu_item.view_basket",
21802
+ "id": "himi_menu_item.view_order",
20705
21803
  "body": {
20706
21804
  "package": "himalaya",
20707
21805
  "type": "Button",
20708
21806
  "props": {
20709
- "title": "View basket & active order",
21807
+ "title": "View your order",
20710
21808
  "style": "secondary",
20711
21809
  "fullWidth": true,
20712
21810
  "action": {
@@ -20719,7 +21817,7 @@ const TEMPLATED: { pattern: string; display: string; liveSeed?: LiveSeed; static
20719
21817
  }
20720
21818
  },
20721
21819
  "modifiers": {
20722
- "hiddenPath": "$service:himiBrandedMenuItem.cannotSaveBasket"
21820
+ "hiddenPath": "$service:himiBrandedMenuItem.noCart"
20723
21821
  }
20724
21822
  },
20725
21823
  {