@wix/himalaya-cli 0.1527.0 → 0.1529.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 (61) hide show
  1. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk/ecom/src/extensions.d.ts +144 -0
  2. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk/restaurants/src/extensions.d.ts +93 -0
  3. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/iap-checkout.mjs +27 -5
  4. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/iap.mjs +19 -3
  5. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/screens.mjs +27 -5
  6. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/wix-ecom.mjs +58 -0
  7. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/wix-restaurants.mjs +23 -0
  8. package/dist/cli.mjs +5844 -4606
  9. package/fixtures/wix-canned.json +83 -0
  10. package/guides/hhp.md +39 -0
  11. package/guides/himi-json-output.md +67 -1
  12. package/guides/himi-mcp.md +41 -0
  13. package/guides/iap-products.md +88 -23
  14. package/package.json +2 -2
  15. package/templates/beauty-salon/config.ts +12 -1
  16. package/templates/beauty-salon/tier5-src/_shared/himi-restaurants.ts +12 -5
  17. package/templates/beauty-salon/tier5-src/_shared/restaurant-ordering.ts +201 -0
  18. package/templates/beauty-salon/tier5-src/himi-branded-lite-cart/index.ts +6 -0
  19. package/templates/branded-lite/config.ts +12 -1
  20. package/templates/branded-lite/dev/index.ts +1278 -180
  21. package/templates/branded-lite/tier5-src/_shared/himi-restaurants.ts +12 -5
  22. package/templates/branded-lite/tier5-src/_shared/restaurant-ordering.ts +201 -0
  23. package/templates/branded-lite/tier5-src/himi-branded-lite-cart/index.ts +6 -0
  24. package/templates/branded-lite/tier5-src/himi-branded-lite-menu-item/index.ts +144 -77
  25. package/templates/branded-lite/tier5-src/himi-branded-lite-menus/index.ts +16 -5
  26. package/templates/branded-lite/tier5-src/himi-branded-lite-reservations/index.ts +1 -1
  27. package/templates/branded-lite/tier5-src/wix-spaces-food-order-detail/index.ts +76 -14
  28. package/templates/branded-lite/tier5-src/wix-spaces-food-orders/index.ts +807 -55
  29. package/templates/community-club/config.ts +12 -1
  30. package/templates/community-club/tier5-src/_shared/himi-restaurants.ts +12 -5
  31. package/templates/events-meetups/config.ts +12 -1
  32. package/templates/events-meetups/tier5-src/_shared/himi-restaurants.ts +12 -5
  33. package/templates/gym-fitness/config.ts +12 -1
  34. package/templates/gym-fitness/tier5-src/_shared/himi-restaurants.ts +12 -5
  35. package/templates/gym-fitness/tier5-src/_shared/restaurant-ordering.ts +201 -0
  36. package/templates/gym-fitness/tier5-src/himi-branded-lite-cart/index.ts +6 -0
  37. package/templates/nonprofit-cause/config.ts +12 -1
  38. package/templates/nonprofit-cause/tier5-src/_shared/himi-restaurants.ts +12 -5
  39. package/templates/podcast-creator/config.ts +12 -1
  40. package/templates/podcast-creator/tier5-src/_shared/himi-restaurants.ts +12 -5
  41. package/templates/portfolio-creative/config.ts +12 -1
  42. package/templates/portfolio-creative/tier5-src/_shared/himi-restaurants.ts +12 -5
  43. package/templates/portfolio-creative/tier5-src/_shared/restaurant-ordering.ts +201 -0
  44. package/templates/portfolio-creative/tier5-src/himi-branded-lite-cart/index.ts +6 -0
  45. package/templates/restaurant/README.md +1 -1
  46. package/templates/restaurant/config.ts +12 -1
  47. package/templates/restaurant/dev/index.ts +1373 -275
  48. package/templates/restaurant/himalaya.template.json +2 -1
  49. package/templates/restaurant/tier5-src/_shared/himi-restaurants.ts +12 -5
  50. package/templates/restaurant/tier5-src/_shared/member-orders.ts +8 -0
  51. package/templates/restaurant/tier5-src/_shared/restaurant-ordering.ts +201 -0
  52. package/templates/restaurant/tier5-src/himi-branded-lite-menu-item/index.ts +144 -77
  53. package/templates/restaurant/tier5-src/himi-branded-lite-menus/index.ts +16 -5
  54. package/templates/restaurant/tier5-src/wix-spaces-food-order-detail/index.ts +76 -14
  55. package/templates/restaurant/tier5-src/wix-spaces-food-orders/index.ts +807 -55
  56. package/templates/retail-store/config.ts +12 -1
  57. package/templates/retail-store/tier5-src/_shared/himi-restaurants.ts +12 -5
  58. package/templates/retail-store/tier5-src/_shared/restaurant-ordering.ts +201 -0
  59. package/templates/retail-store/tier5-src/himi-branded-lite-cart/index.ts +6 -0
  60. package/templates/yoga-studio/config.ts +12 -1
  61. package/templates/yoga-studio/tier5-src/_shared/himi-restaurants.ts +12 -5
@@ -27498,6 +27498,20 @@ const SCREENS = runtimeSetting({
27498
27498
  "id": "$item.collectionId"
27499
27499
  }
27500
27500
  }
27501
+ },
27502
+ {
27503
+ "id": "open",
27504
+ "label": "Open details",
27505
+ "icon": "chevron_right",
27506
+ "action": {
27507
+ "actionId": "himi.open",
27508
+ "params": {
27509
+ "screenId": "$item.detailScreenId",
27510
+ "id": "$item.id",
27511
+ "menuId": "$item.menuId",
27512
+ "sectionId": "$item.sectionId"
27513
+ }
27514
+ }
27501
27515
  }
27502
27516
  ]
27503
27517
  }
@@ -27518,6 +27532,16 @@ const SCREENS = runtimeSetting({
27518
27532
  }
27519
27533
  },
27520
27534
  "modifiers": {
27535
+ "onTap": {
27536
+ "actionId": "himi.open",
27537
+ "params": {
27538
+ "screenId": "$item.detailScreenId",
27539
+ "id": "$item.id",
27540
+ "menuId": "$item.menuId",
27541
+ "sectionId": "$item.sectionId"
27542
+ }
27543
+ },
27544
+ "haptic": "light",
27521
27545
  "background": {
27522
27546
  "token": "surfaceElevated"
27523
27547
  },
@@ -27536,7 +27560,7 @@ const SCREENS = runtimeSetting({
27536
27560
  },
27537
27561
  "fillMaxWidth": true,
27538
27562
  "accessibilityLabel": "$item.collectionTitle",
27539
- "pressFeedback": "highlight",
27563
+ "pressFeedback": "scale",
27540
27564
  "transition": {
27541
27565
  "enter": "fadeSlide",
27542
27566
  "direction": "up",
@@ -27824,6 +27848,20 @@ const SCREENS = runtimeSetting({
27824
27848
  "id": "$item.collectionId"
27825
27849
  }
27826
27850
  }
27851
+ },
27852
+ {
27853
+ "id": "open",
27854
+ "label": "Open details",
27855
+ "icon": "chevron_right",
27856
+ "action": {
27857
+ "actionId": "himi.open",
27858
+ "params": {
27859
+ "screenId": "$item.detailScreenId",
27860
+ "id": "$item.id",
27861
+ "menuId": "$item.menuId",
27862
+ "sectionId": "$item.sectionId"
27863
+ }
27864
+ }
27827
27865
  }
27828
27866
  ]
27829
27867
  }
@@ -27840,6 +27878,16 @@ const SCREENS = runtimeSetting({
27840
27878
  }
27841
27879
  },
27842
27880
  "modifiers": {
27881
+ "onTap": {
27882
+ "actionId": "himi.open",
27883
+ "params": {
27884
+ "screenId": "$item.detailScreenId",
27885
+ "id": "$item.id",
27886
+ "menuId": "$item.menuId",
27887
+ "sectionId": "$item.sectionId"
27888
+ }
27889
+ },
27890
+ "haptic": "light",
27843
27891
  "background": {
27844
27892
  "token": "surfaceElevated"
27845
27893
  },
@@ -27858,7 +27906,7 @@ const SCREENS = runtimeSetting({
27858
27906
  },
27859
27907
  "fillMaxWidth": true,
27860
27908
  "accessibilityLabel": "$item.collectionTitle",
27861
- "pressFeedback": "highlight",
27909
+ "pressFeedback": "scale",
27862
27910
  "transition": {
27863
27911
  "enter": "fadeSlide",
27864
27912
  "direction": "up",
@@ -28084,6 +28132,20 @@ const SCREENS = runtimeSetting({
28084
28132
  "id": "$item.collectionId"
28085
28133
  }
28086
28134
  }
28135
+ },
28136
+ {
28137
+ "id": "open",
28138
+ "label": "Open details",
28139
+ "icon": "chevron_right",
28140
+ "action": {
28141
+ "actionId": "himi.open",
28142
+ "params": {
28143
+ "screenId": "$item.detailScreenId",
28144
+ "id": "$item.id",
28145
+ "menuId": "$item.menuId",
28146
+ "sectionId": "$item.sectionId"
28147
+ }
28148
+ }
28087
28149
  }
28088
28150
  ]
28089
28151
  }
@@ -28104,6 +28166,16 @@ const SCREENS = runtimeSetting({
28104
28166
  }
28105
28167
  },
28106
28168
  "modifiers": {
28169
+ "onTap": {
28170
+ "actionId": "himi.open",
28171
+ "params": {
28172
+ "screenId": "$item.detailScreenId",
28173
+ "id": "$item.id",
28174
+ "menuId": "$item.menuId",
28175
+ "sectionId": "$item.sectionId"
28176
+ }
28177
+ },
28178
+ "haptic": "light",
28107
28179
  "background": {
28108
28180
  "token": "surfaceElevated"
28109
28181
  },
@@ -28122,7 +28194,7 @@ const SCREENS = runtimeSetting({
28122
28194
  },
28123
28195
  "fillMaxWidth": true,
28124
28196
  "accessibilityLabel": "$item.collectionTitle",
28125
- "pressFeedback": "highlight",
28197
+ "pressFeedback": "scale",
28126
28198
  "transition": {
28127
28199
  "enter": "fadeSlide",
28128
28200
  "direction": "up",
@@ -28410,6 +28482,20 @@ const SCREENS = runtimeSetting({
28410
28482
  "id": "$item.collectionId"
28411
28483
  }
28412
28484
  }
28485
+ },
28486
+ {
28487
+ "id": "open",
28488
+ "label": "Open details",
28489
+ "icon": "chevron_right",
28490
+ "action": {
28491
+ "actionId": "himi.open",
28492
+ "params": {
28493
+ "screenId": "$item.detailScreenId",
28494
+ "id": "$item.id",
28495
+ "menuId": "$item.menuId",
28496
+ "sectionId": "$item.sectionId"
28497
+ }
28498
+ }
28413
28499
  }
28414
28500
  ]
28415
28501
  }
@@ -28426,6 +28512,16 @@ const SCREENS = runtimeSetting({
28426
28512
  }
28427
28513
  },
28428
28514
  "modifiers": {
28515
+ "onTap": {
28516
+ "actionId": "himi.open",
28517
+ "params": {
28518
+ "screenId": "$item.detailScreenId",
28519
+ "id": "$item.id",
28520
+ "menuId": "$item.menuId",
28521
+ "sectionId": "$item.sectionId"
28522
+ }
28523
+ },
28524
+ "haptic": "light",
28429
28525
  "background": {
28430
28526
  "token": "surfaceElevated"
28431
28527
  },
@@ -28444,7 +28540,7 @@ const SCREENS = runtimeSetting({
28444
28540
  },
28445
28541
  "fillMaxWidth": true,
28446
28542
  "accessibilityLabel": "$item.collectionTitle",
28447
- "pressFeedback": "highlight",
28543
+ "pressFeedback": "scale",
28448
28544
  "transition": {
28449
28545
  "enter": "fadeSlide",
28450
28546
  "direction": "up",
@@ -29020,6 +29116,20 @@ const SCREENS = runtimeSetting({
29020
29116
  "id": "$item.collectionId"
29021
29117
  }
29022
29118
  }
29119
+ },
29120
+ {
29121
+ "id": "open",
29122
+ "label": "Open details",
29123
+ "icon": "chevron_right",
29124
+ "action": {
29125
+ "actionId": "himi.open",
29126
+ "params": {
29127
+ "screenId": "$item.detailScreenId",
29128
+ "id": "$item.id",
29129
+ "menuId": "$item.menuId",
29130
+ "sectionId": "$item.sectionId"
29131
+ }
29132
+ }
29023
29133
  }
29024
29134
  ]
29025
29135
  }
@@ -29036,6 +29146,16 @@ const SCREENS = runtimeSetting({
29036
29146
  }
29037
29147
  },
29038
29148
  "modifiers": {
29149
+ "onTap": {
29150
+ "actionId": "himi.open",
29151
+ "params": {
29152
+ "screenId": "$item.detailScreenId",
29153
+ "id": "$item.id",
29154
+ "menuId": "$item.menuId",
29155
+ "sectionId": "$item.sectionId"
29156
+ }
29157
+ },
29158
+ "haptic": "light",
29039
29159
  "background": {
29040
29160
  "token": "surfaceElevated"
29041
29161
  },
@@ -29054,7 +29174,7 @@ const SCREENS = runtimeSetting({
29054
29174
  },
29055
29175
  "fillMaxWidth": true,
29056
29176
  "accessibilityLabel": "$item.collectionTitle",
29057
- "pressFeedback": "highlight",
29177
+ "pressFeedback": "scale",
29058
29178
  "transition": {
29059
29179
  "enter": "fadeSlide",
29060
29180
  "direction": "up",
@@ -88386,7 +88506,7 @@ const SCREENS = runtimeSetting({
88386
88506
  "package": "himalaya",
88387
88507
  "type": "Text",
88388
88508
  "props": {
88389
- "text": "My Food Orders",
88509
+ "text": "Food orders",
88390
88510
  "style": "title1"
88391
88511
  }
88392
88512
  }
@@ -88397,14 +88517,186 @@ const SCREENS = runtimeSetting({
88397
88517
  "package": "himalaya",
88398
88518
  "type": "Text",
88399
88519
  "props": {
88400
- "text": "Your order history at this restaurant.",
88520
+ "text": "Order for pickup or delivery, then pay on the restaurant's secure checkout.",
88401
88521
  "style": "body",
88402
88522
  "color": "textSecondary"
88403
88523
  }
88404
88524
  }
88405
88525
  },
88406
88526
  {
88407
- "id": "himi_food_orders.signin_card",
88527
+ "id": "himi_food_orders.loading",
88528
+ "body": {
88529
+ "package": "himalaya",
88530
+ "type": "VStack",
88531
+ "props": {
88532
+ "spacing": 8,
88533
+ "alignment": "leading",
88534
+ "children": [
88535
+ {
88536
+ "id": "",
88537
+ "body": {
88538
+ "package": "himalaya",
88539
+ "type": "Text",
88540
+ "props": {
88541
+ "text": "Loading your order...",
88542
+ "style": "body",
88543
+ "color": "textSecondary"
88544
+ }
88545
+ }
88546
+ }
88547
+ ]
88548
+ }
88549
+ },
88550
+ "modifiers": {
88551
+ "background": {
88552
+ "token": "surfaceElevated"
88553
+ },
88554
+ "border": {
88555
+ "width": 1,
88556
+ "color": {
88557
+ "token": "border"
88558
+ }
88559
+ },
88560
+ "cornerRadius": 4,
88561
+ "padding": {
88562
+ "leading": 16,
88563
+ "trailing": 16,
88564
+ "top": 16,
88565
+ "bottom": 16
88566
+ },
88567
+ "hiddenPath": "$service:spacesFoodOrders.notLoading"
88568
+ }
88569
+ },
88570
+ {
88571
+ "id": "himi_food_orders.error",
88572
+ "body": {
88573
+ "package": "himalaya",
88574
+ "type": "VStack",
88575
+ "props": {
88576
+ "spacing": 8,
88577
+ "alignment": "leading",
88578
+ "children": [
88579
+ {
88580
+ "id": "",
88581
+ "body": {
88582
+ "package": "himalaya",
88583
+ "type": "Text",
88584
+ "props": {
88585
+ "text": "$service:spacesFoodOrders.errorText",
88586
+ "style": "bodyEmphasis",
88587
+ "collapseWhenEmpty": true
88588
+ }
88589
+ }
88590
+ },
88591
+ {
88592
+ "id": "",
88593
+ "body": {
88594
+ "package": "himalaya",
88595
+ "type": "Text",
88596
+ "props": {
88597
+ "text": "Try again without leaving the app.",
88598
+ "style": "footnote",
88599
+ "color": "textSecondary"
88600
+ }
88601
+ }
88602
+ },
88603
+ {
88604
+ "id": "himi_food_orders.retry",
88605
+ "body": {
88606
+ "package": "himalaya",
88607
+ "type": "Button",
88608
+ "props": {
88609
+ "title": "Try again",
88610
+ "style": "secondary",
88611
+ "action": {
88612
+ "actionId": "tier5.spacesFoodOrders.load"
88613
+ }
88614
+ }
88615
+ }
88616
+ }
88617
+ ]
88618
+ }
88619
+ },
88620
+ "modifiers": {
88621
+ "background": {
88622
+ "token": "surfaceElevated"
88623
+ },
88624
+ "border": {
88625
+ "width": 1,
88626
+ "color": {
88627
+ "token": "border"
88628
+ }
88629
+ },
88630
+ "cornerRadius": 4,
88631
+ "padding": {
88632
+ "leading": 16,
88633
+ "trailing": 16,
88634
+ "top": 16,
88635
+ "bottom": 16
88636
+ },
88637
+ "hiddenPath": "$service:spacesFoodOrders.notErrored"
88638
+ }
88639
+ },
88640
+ {
88641
+ "id": "",
88642
+ "body": {
88643
+ "package": "himalaya",
88644
+ "type": "VStack",
88645
+ "props": {
88646
+ "spacing": 0,
88647
+ "alignment": "leading",
88648
+ "children": [
88649
+ {
88650
+ "id": "himi_food_orders.closed",
88651
+ "body": {
88652
+ "package": "himalaya",
88653
+ "type": "Banner",
88654
+ "props": {
88655
+ "severity": "warning",
88656
+ "title": "Not taking orders",
88657
+ "message": "$service:spacesFoodOrders.closedText"
88658
+ }
88659
+ },
88660
+ "modifiers": {
88661
+ "hiddenPath": "$service:spacesFoodOrders.hideClosedBanner"
88662
+ }
88663
+ },
88664
+ {
88665
+ "id": "himi_food_orders.closed_mixed",
88666
+ "body": {
88667
+ "package": "himalaya",
88668
+ "type": "Banner",
88669
+ "props": {
88670
+ "severity": "warning",
88671
+ "title": "Dishes from more than one location",
88672
+ "message": "$service:spacesFoodOrders.closedText"
88673
+ }
88674
+ },
88675
+ "modifiers": {
88676
+ "hiddenPath": "$service:spacesFoodOrders.hideMixedBanner"
88677
+ }
88678
+ },
88679
+ {
88680
+ "id": "himi_food_orders.closed_refresh",
88681
+ "body": {
88682
+ "package": "himalaya",
88683
+ "type": "Banner",
88684
+ "props": {
88685
+ "severity": "warning",
88686
+ "title": "Order details need a refresh",
88687
+ "message": "$service:spacesFoodOrders.closedText"
88688
+ }
88689
+ },
88690
+ "modifiers": {
88691
+ "hiddenPath": "$service:spacesFoodOrders.hideRefreshBanner"
88692
+ }
88693
+ }
88694
+ ]
88695
+ }
88696
+ }
88697
+ },
88698
+ {
88699
+ "id": "himi_food_orders.empty_cart",
88408
88700
  "body": {
88409
88701
  "package": "himalaya",
88410
88702
  "type": "VStack",
@@ -88418,9 +88710,9 @@ const SCREENS = runtimeSetting({
88418
88710
  "package": "himalaya",
88419
88711
  "type": "Icon",
88420
88712
  "props": {
88421
- "name": "person",
88713
+ "name": "bag",
88422
88714
  "size": 28,
88423
- "tint": "accentPrimary"
88715
+ "tint": "textTertiary"
88424
88716
  }
88425
88717
  },
88426
88718
  "modifiers": {
@@ -88433,7 +88725,7 @@ const SCREENS = runtimeSetting({
88433
88725
  "package": "himalaya",
88434
88726
  "type": "Text",
88435
88727
  "props": {
88436
- "text": "Sign in to see your food orders",
88728
+ "text": "Your order is empty",
88437
88729
  "style": "bodyEmphasis"
88438
88730
  }
88439
88731
  }
@@ -88444,30 +88736,25 @@ const SCREENS = runtimeSetting({
88444
88736
  "package": "himalaya",
88445
88737
  "type": "Text",
88446
88738
  "props": {
88447
- "text": "Restaurant activity is kept private to your member account.",
88739
+ "text": "Add dishes from the menu to start an order.",
88448
88740
  "style": "footnote",
88449
88741
  "color": "textSecondary"
88450
88742
  }
88451
88743
  }
88452
88744
  },
88453
88745
  {
88454
- "id": "himi_food_orders.signin",
88746
+ "id": "himi_food_orders.browse",
88455
88747
  "body": {
88456
88748
  "package": "himalaya",
88457
88749
  "type": "Button",
88458
88750
  "props": {
88459
- "title": "Sign in",
88460
- "style": "primary",
88461
- "fullWidth": true,
88751
+ "title": "Browse the menu",
88752
+ "style": "secondary",
88462
88753
  "action": {
88463
88754
  "actionId": "himi.open",
88464
88755
  "params": {
88465
- "screenId": "himi_sign_in",
88466
- "intent": "food-orders",
88467
- "returnScreenId": "himi_food_orders",
88468
- "modal": "1"
88469
- },
88470
- "presentation": "sheet"
88756
+ "screenId": "himi_menu"
88757
+ }
88471
88758
  }
88472
88759
  }
88473
88760
  }
@@ -88492,18 +88779,285 @@ const SCREENS = runtimeSetting({
88492
88779
  "top": 16,
88493
88780
  "bottom": 16
88494
88781
  },
88495
- "hiddenPath": "$service:spacesFoodOrders.noSignIn"
88782
+ "fillMaxWidth": true,
88783
+ "hiddenPath": "$service:spacesFoodOrders.hideEmptyCart"
88496
88784
  }
88497
88785
  },
88498
88786
  {
88499
- "id": "himi_food_orders.basket",
88787
+ "id": "",
88500
88788
  "body": {
88501
88789
  "package": "himalaya",
88502
88790
  "type": "VStack",
88503
88791
  "props": {
88504
- "spacing": 8,
88792
+ "spacing": 10,
88505
88793
  "alignment": "leading",
88506
88794
  "children": [
88795
+ {
88796
+ "id": "himi_food_orders.lines",
88797
+ "body": {
88798
+ "package": "himalaya",
88799
+ "type": "Grid",
88800
+ "props": {
88801
+ "columns": 1,
88802
+ "spacing": 10,
88803
+ "itemsPath": "$service:spacesFoodOrders.items",
88804
+ "items": [
88805
+ {
88806
+ "id": "himi_food_orders.line",
88807
+ "body": {
88808
+ "package": "himalaya",
88809
+ "type": "VStack",
88810
+ "props": {
88811
+ "spacing": 8,
88812
+ "alignment": "leading",
88813
+ "children": [
88814
+ {
88815
+ "id": "",
88816
+ "body": {
88817
+ "package": "himalaya",
88818
+ "type": "HStack",
88819
+ "props": {
88820
+ "spacing": 10,
88821
+ "children": [
88822
+ {
88823
+ "id": "",
88824
+ "body": {
88825
+ "package": "himalaya",
88826
+ "type": "Image",
88827
+ "props": {
88828
+ "url": "$item.image",
88829
+ "width": 52,
88830
+ "height": 52,
88831
+ "contentMode": "fill",
88832
+ "contentDescription": "$item.title"
88833
+ }
88834
+ },
88835
+ "modifiers": {
88836
+ "cornerRadius": 8,
88837
+ "hiddenPath": "$item.noImage"
88838
+ }
88839
+ },
88840
+ {
88841
+ "id": "himi_food_orders.line_media.initial",
88842
+ "body": {
88843
+ "package": "himalaya",
88844
+ "type": "ZStack",
88845
+ "props": {
88846
+ "alignment": "center",
88847
+ "children": [
88848
+ {
88849
+ "id": "",
88850
+ "body": {
88851
+ "package": "himalaya",
88852
+ "type": "Text",
88853
+ "props": {
88854
+ "text": "$item.initial",
88855
+ "style": "title2",
88856
+ "color": "textOnAccent",
88857
+ "maxLines": 1,
88858
+ "collapseWhenEmpty": true
88859
+ }
88860
+ }
88861
+ }
88862
+ ]
88863
+ }
88864
+ },
88865
+ "modifiers": {
88866
+ "width": 52,
88867
+ "height": 52,
88868
+ "background": {
88869
+ "token": "accentPrimary"
88870
+ },
88871
+ "cornerRadius": 16,
88872
+ "hiddenPath": "$item.hasImage"
88873
+ }
88874
+ },
88875
+ {
88876
+ "id": "",
88877
+ "body": {
88878
+ "package": "himalaya",
88879
+ "type": "VStack",
88880
+ "props": {
88881
+ "spacing": 3,
88882
+ "alignment": "leading",
88883
+ "children": [
88884
+ {
88885
+ "id": "",
88886
+ "body": {
88887
+ "package": "himalaya",
88888
+ "type": "Text",
88889
+ "props": {
88890
+ "text": "$item.name",
88891
+ "style": "bodyEmphasis",
88892
+ "maxLines": 2
88893
+ }
88894
+ }
88895
+ },
88896
+ {
88897
+ "id": "",
88898
+ "body": {
88899
+ "package": "himalaya",
88900
+ "type": "Text",
88901
+ "props": {
88902
+ "text": "$item.subtitle",
88903
+ "style": "footnote",
88904
+ "color": "textSecondary",
88905
+ "collapseWhenEmpty": true
88906
+ }
88907
+ }
88908
+ }
88909
+ ]
88910
+ }
88911
+ }
88912
+ },
88913
+ {
88914
+ "id": "",
88915
+ "body": {
88916
+ "package": "himalaya",
88917
+ "type": "Spacer",
88918
+ "props": {}
88919
+ }
88920
+ },
88921
+ {
88922
+ "id": "",
88923
+ "body": {
88924
+ "package": "himalaya",
88925
+ "type": "Text",
88926
+ "props": {
88927
+ "text": "$item.total",
88928
+ "style": "bodyEmphasis",
88929
+ "collapseWhenEmpty": true
88930
+ }
88931
+ }
88932
+ }
88933
+ ]
88934
+ }
88935
+ }
88936
+ },
88937
+ {
88938
+ "id": "",
88939
+ "body": {
88940
+ "package": "himalaya",
88941
+ "type": "HStack",
88942
+ "props": {
88943
+ "spacing": 10,
88944
+ "children": [
88945
+ {
88946
+ "id": "himi_food_orders.qty_minus",
88947
+ "body": {
88948
+ "package": "himalaya",
88949
+ "type": "Button",
88950
+ "props": {
88951
+ "title": "−",
88952
+ "style": "secondary",
88953
+ "action": {
88954
+ "actionId": "tier5.spacesFoodOrders.decrement",
88955
+ "params": {
88956
+ "id": "$item.id"
88957
+ }
88958
+ }
88959
+ }
88960
+ },
88961
+ "modifiers": {
88962
+ "accessibilityLabel": "Decrease quantity"
88963
+ }
88964
+ },
88965
+ {
88966
+ "id": "himi_food_orders.qty_value",
88967
+ "body": {
88968
+ "package": "himalaya",
88969
+ "type": "Text",
88970
+ "props": {
88971
+ "text": "$item.quantityLabel",
88972
+ "style": "bodyEmphasis"
88973
+ }
88974
+ }
88975
+ },
88976
+ {
88977
+ "id": "himi_food_orders.qty_plus",
88978
+ "body": {
88979
+ "package": "himalaya",
88980
+ "type": "Button",
88981
+ "props": {
88982
+ "title": "+",
88983
+ "style": "secondary",
88984
+ "action": {
88985
+ "actionId": "tier5.spacesFoodOrders.increment",
88986
+ "params": {
88987
+ "id": "$item.id"
88988
+ }
88989
+ }
88990
+ }
88991
+ },
88992
+ "modifiers": {
88993
+ "accessibilityLabel": "Increase quantity"
88994
+ }
88995
+ },
88996
+ {
88997
+ "id": "",
88998
+ "body": {
88999
+ "package": "himalaya",
89000
+ "type": "Spacer",
89001
+ "props": {}
89002
+ }
89003
+ },
89004
+ {
89005
+ "id": "himi_food_orders.remove",
89006
+ "body": {
89007
+ "package": "himalaya",
89008
+ "type": "Button",
89009
+ "props": {
89010
+ "title": "Remove",
89011
+ "action": {
89012
+ "actionId": "tier5.spacesFoodOrders.remove",
89013
+ "params": {
89014
+ "id": "$item.id"
89015
+ }
89016
+ },
89017
+ "style": "tertiary",
89018
+ "iconOnly": true,
89019
+ "leadingIcon": "trash",
89020
+ "cornerRadius": 22,
89021
+ "minHeight": 44
89022
+ }
89023
+ },
89024
+ "modifiers": {
89025
+ "width": 44,
89026
+ "height": 44,
89027
+ "accessibilityLabel": "Remove",
89028
+ "accessibilityRole": "button"
89029
+ }
89030
+ }
89031
+ ]
89032
+ }
89033
+ }
89034
+ }
89035
+ ]
89036
+ }
89037
+ },
89038
+ "modifiers": {
89039
+ "background": {
89040
+ "token": "surfaceElevated"
89041
+ },
89042
+ "border": {
89043
+ "width": 1,
89044
+ "color": {
89045
+ "token": "border"
89046
+ }
89047
+ },
89048
+ "cornerRadius": 4,
89049
+ "padding": {
89050
+ "leading": 16,
89051
+ "trailing": 16,
89052
+ "top": 16,
89053
+ "bottom": 16
89054
+ }
89055
+ }
89056
+ }
89057
+ ]
89058
+ }
89059
+ }
89060
+ },
88507
89061
  {
88508
89062
  "id": "",
88509
89063
  "body": {
@@ -88516,15 +89070,109 @@ const SCREENS = runtimeSetting({
88516
89070
  "id": "",
88517
89071
  "body": {
88518
89072
  "package": "himalaya",
88519
- "type": "Icon",
89073
+ "type": "Text",
88520
89074
  "props": {
88521
- "name": "bag",
88522
- "size": 20,
88523
- "tint": "accentPrimary"
89075
+ "text": "Subtotal",
89076
+ "style": "bodyEmphasis"
89077
+ }
89078
+ }
89079
+ },
89080
+ {
89081
+ "id": "",
89082
+ "body": {
89083
+ "package": "himalaya",
89084
+ "type": "Spacer",
89085
+ "props": {}
89086
+ }
89087
+ },
89088
+ {
89089
+ "id": "himi_food_orders.subtotal",
89090
+ "body": {
89091
+ "package": "himalaya",
89092
+ "type": "Text",
89093
+ "props": {
89094
+ "text": "$service:spacesFoodOrders.subtotal",
89095
+ "style": "bodyEmphasis",
89096
+ "collapseWhenEmpty": true
89097
+ }
89098
+ }
89099
+ }
89100
+ ]
89101
+ }
89102
+ }
89103
+ }
89104
+ ]
89105
+ }
89106
+ },
89107
+ "modifiers": {
89108
+ "hiddenPath": "$service:spacesFoodOrders.noItems"
89109
+ }
89110
+ },
89111
+ {
89112
+ "id": "himi_food_orders.fulfillment",
89113
+ "body": {
89114
+ "package": "himalaya",
89115
+ "type": "VStack",
89116
+ "props": {
89117
+ "spacing": 8,
89118
+ "alignment": "leading",
89119
+ "children": [
89120
+ {
89121
+ "id": "",
89122
+ "body": {
89123
+ "package": "himalaya",
89124
+ "type": "Text",
89125
+ "props": {
89126
+ "text": "Pickup or delivery",
89127
+ "style": "title3"
89128
+ }
89129
+ }
89130
+ },
89131
+ {
89132
+ "id": "",
89133
+ "body": {
89134
+ "package": "himalaya",
89135
+ "type": "VStack",
89136
+ "props": {
89137
+ "spacing": 4,
89138
+ "alignment": "leading",
89139
+ "children": [
89140
+ {
89141
+ "id": "himi_food_orders.pickup_selected",
89142
+ "body": {
89143
+ "package": "himalaya",
89144
+ "type": "Button",
89145
+ "props": {
89146
+ "title": "$service:spacesFoodOrders.pickupLabel",
89147
+ "style": "primary",
89148
+ "fullWidth": true,
89149
+ "leadingIcon": "checkmark",
89150
+ "action": {
89151
+ "actionId": "tier5.spacesFoodOrders.choosePickup"
89152
+ }
88524
89153
  }
88525
89154
  },
88526
89155
  "modifiers": {
88527
- "accessibilityRole": "decorative"
89156
+ "hiddenPath": "$service:spacesFoodOrders.pickupNotSelected"
89157
+ }
89158
+ },
89159
+ {
89160
+ "id": "himi_food_orders.pickup",
89161
+ "body": {
89162
+ "package": "himalaya",
89163
+ "type": "Button",
89164
+ "props": {
89165
+ "title": "$service:spacesFoodOrders.pickupLabel",
89166
+ "style": "secondary",
89167
+ "fullWidth": true,
89168
+ "leadingIcon": "bag",
89169
+ "action": {
89170
+ "actionId": "tier5.spacesFoodOrders.choosePickup"
89171
+ }
89172
+ }
89173
+ },
89174
+ "modifiers": {
89175
+ "hiddenPath": "$service:spacesFoodOrders.pickupSelected"
88528
89176
  }
88529
89177
  },
88530
89178
  {
@@ -88533,17 +89181,65 @@ const SCREENS = runtimeSetting({
88533
89181
  "package": "himalaya",
88534
89182
  "type": "Text",
88535
89183
  "props": {
88536
- "text": "Your basket",
88537
- "style": "title3"
89184
+ "text": "$service:spacesFoodOrders.pickupDetail",
89185
+ "style": "caption",
89186
+ "color": "textSecondary",
89187
+ "collapseWhenEmpty": true
88538
89188
  }
88539
89189
  }
89190
+ }
89191
+ ]
89192
+ }
89193
+ },
89194
+ "modifiers": {
89195
+ "hiddenPath": "$service:spacesFoodOrders.noPickup"
89196
+ }
89197
+ },
89198
+ {
89199
+ "id": "",
89200
+ "body": {
89201
+ "package": "himalaya",
89202
+ "type": "VStack",
89203
+ "props": {
89204
+ "spacing": 4,
89205
+ "alignment": "leading",
89206
+ "children": [
89207
+ {
89208
+ "id": "himi_food_orders.delivery_selected",
89209
+ "body": {
89210
+ "package": "himalaya",
89211
+ "type": "Button",
89212
+ "props": {
89213
+ "title": "$service:spacesFoodOrders.deliveryLabel",
89214
+ "style": "primary",
89215
+ "fullWidth": true,
89216
+ "leadingIcon": "checkmark",
89217
+ "action": {
89218
+ "actionId": "tier5.spacesFoodOrders.chooseDelivery"
89219
+ }
89220
+ }
89221
+ },
89222
+ "modifiers": {
89223
+ "hiddenPath": "$service:spacesFoodOrders.deliveryNotSelected"
89224
+ }
88540
89225
  },
88541
89226
  {
88542
- "id": "",
89227
+ "id": "himi_food_orders.delivery",
88543
89228
  "body": {
88544
89229
  "package": "himalaya",
88545
- "type": "Spacer",
88546
- "props": {}
89230
+ "type": "Button",
89231
+ "props": {
89232
+ "title": "$service:spacesFoodOrders.deliveryLabel",
89233
+ "style": "secondary",
89234
+ "fullWidth": true,
89235
+ "leadingIcon": "location",
89236
+ "action": {
89237
+ "actionId": "tier5.spacesFoodOrders.chooseDelivery"
89238
+ }
89239
+ }
89240
+ },
89241
+ "modifiers": {
89242
+ "hiddenPath": "$service:spacesFoodOrders.deliverySelected"
88547
89243
  }
88548
89244
  },
88549
89245
  {
@@ -88552,7 +89248,7 @@ const SCREENS = runtimeSetting({
88552
89248
  "package": "himalaya",
88553
89249
  "type": "Text",
88554
89250
  "props": {
88555
- "text": "$service:spacesFoodOrders.basketLabel",
89251
+ "text": "$service:spacesFoodOrders.deliveryDetail",
88556
89252
  "style": "caption",
88557
89253
  "color": "textSecondary",
88558
89254
  "collapseWhenEmpty": true
@@ -88561,87 +89257,92 @@ const SCREENS = runtimeSetting({
88561
89257
  }
88562
89258
  ]
88563
89259
  }
89260
+ },
89261
+ "modifiers": {
89262
+ "hiddenPath": "$service:spacesFoodOrders.noDelivery"
89263
+ }
89264
+ }
89265
+ ]
89266
+ }
89267
+ },
89268
+ "modifiers": {
89269
+ "background": {
89270
+ "token": "surfaceElevated"
89271
+ },
89272
+ "border": {
89273
+ "width": 1,
89274
+ "color": {
89275
+ "token": "border"
89276
+ }
89277
+ },
89278
+ "cornerRadius": 4,
89279
+ "padding": {
89280
+ "leading": 16,
89281
+ "trailing": 16,
89282
+ "top": 16,
89283
+ "bottom": 16
89284
+ },
89285
+ "fillMaxWidth": true,
89286
+ "hiddenPath": "$service:spacesFoodOrders.hideFulfillment"
89287
+ }
89288
+ },
89289
+ {
89290
+ "id": "himi_food_orders.address",
89291
+ "body": {
89292
+ "package": "himalaya",
89293
+ "type": "VStack",
89294
+ "props": {
89295
+ "spacing": 8,
89296
+ "alignment": "leading",
89297
+ "children": [
89298
+ {
89299
+ "id": "",
89300
+ "body": {
89301
+ "package": "himalaya",
89302
+ "type": "Text",
89303
+ "props": {
89304
+ "text": "Delivery address",
89305
+ "style": "title3"
89306
+ }
88564
89307
  }
88565
89308
  },
88566
89309
  {
88567
- "id": "himi_food_orders.basket_rows",
89310
+ "id": "",
88568
89311
  "body": {
88569
89312
  "package": "himalaya",
88570
- "type": "Grid",
89313
+ "type": "VStack",
88571
89314
  "props": {
88572
- "columns": 1,
88573
- "spacing": 8,
88574
- "itemsPath": "$service:spacesFoodOrders.basketItems",
88575
- "items": [
89315
+ "spacing": 4,
89316
+ "alignment": "leading",
89317
+ "children": [
88576
89318
  {
88577
89319
  "id": "",
88578
89320
  "body": {
88579
89321
  "package": "himalaya",
88580
- "type": "HStack",
89322
+ "type": "Text",
88581
89323
  "props": {
88582
- "spacing": 10,
88583
- "children": [
88584
- {
88585
- "id": "",
88586
- "body": {
88587
- "package": "himalaya",
88588
- "type": "VStack",
88589
- "props": {
88590
- "spacing": 3,
88591
- "alignment": "leading",
88592
- "children": [
88593
- {
88594
- "id": "",
88595
- "body": {
88596
- "package": "himalaya",
88597
- "type": "Text",
88598
- "props": {
88599
- "text": "$item.name",
88600
- "style": "bodyEmphasis",
88601
- "maxLines": 2
88602
- }
88603
- }
88604
- },
88605
- {
88606
- "id": "",
88607
- "body": {
88608
- "package": "himalaya",
88609
- "type": "Text",
88610
- "props": {
88611
- "text": "$item.subtitle",
88612
- "style": "footnote",
88613
- "color": "textSecondary",
88614
- "collapseWhenEmpty": true
88615
- }
88616
- }
88617
- }
88618
- ]
88619
- }
88620
- }
88621
- },
88622
- {
88623
- "id": "",
88624
- "body": {
88625
- "package": "himalaya",
88626
- "type": "Spacer",
88627
- "props": {}
88628
- }
88629
- },
88630
- {
88631
- "id": "",
88632
- "body": {
88633
- "package": "himalaya",
88634
- "type": "Text",
88635
- "props": {
88636
- "text": "$item.quantity",
88637
- "style": "title3",
88638
- "color": "accentPrimary"
88639
- }
88640
- }
88641
- }
88642
- ]
89324
+ "text": "Street and number",
89325
+ "style": "caption",
89326
+ "color": "textSecondary"
88643
89327
  }
88644
89328
  }
89329
+ },
89330
+ {
89331
+ "id": "himi_food_orders.addressLine",
89332
+ "body": {
89333
+ "package": "himalaya",
89334
+ "type": "TextField",
89335
+ "props": {
89336
+ "valuePath": "$service:spacesFoodOrders.addressLine",
89337
+ "autoCapitalization": "words",
89338
+ "onChange": {
89339
+ "actionId": "tier5.spacesFoodOrders.setAddressLine"
89340
+ }
89341
+ }
89342
+ },
89343
+ "modifiers": {
89344
+ "accessibilityLabel": "Street and number"
89345
+ }
88645
89346
  }
88646
89347
  ]
88647
89348
  }
@@ -88651,25 +89352,169 @@ const SCREENS = runtimeSetting({
88651
89352
  "id": "",
88652
89353
  "body": {
88653
89354
  "package": "himalaya",
88654
- "type": "Text",
89355
+ "type": "VStack",
88655
89356
  "props": {
88656
- "text": "Saved on this device for this business. In-app restaurant checkout is not available yet.",
88657
- "style": "caption",
88658
- "color": "textTertiary"
89357
+ "spacing": 4,
89358
+ "alignment": "leading",
89359
+ "children": [
89360
+ {
89361
+ "id": "",
89362
+ "body": {
89363
+ "package": "himalaya",
89364
+ "type": "Text",
89365
+ "props": {
89366
+ "text": "City",
89367
+ "style": "caption",
89368
+ "color": "textSecondary"
89369
+ }
89370
+ }
89371
+ },
89372
+ {
89373
+ "id": "himi_food_orders.city",
89374
+ "body": {
89375
+ "package": "himalaya",
89376
+ "type": "TextField",
89377
+ "props": {
89378
+ "valuePath": "$service:spacesFoodOrders.city",
89379
+ "autoCapitalization": "words",
89380
+ "onChange": {
89381
+ "actionId": "tier5.spacesFoodOrders.setCity"
89382
+ }
89383
+ }
89384
+ },
89385
+ "modifiers": {
89386
+ "accessibilityLabel": "City"
89387
+ }
89388
+ }
89389
+ ]
88659
89390
  }
88660
89391
  }
88661
89392
  },
88662
89393
  {
88663
- "id": "himi_food_orders.clear_basket",
89394
+ "id": "",
88664
89395
  "body": {
88665
89396
  "package": "himalaya",
88666
- "type": "Button",
89397
+ "type": "VStack",
88667
89398
  "props": {
88668
- "title": "Clear basket",
88669
- "style": "secondary",
88670
- "action": {
88671
- "actionId": "tier5.spacesFoodOrders.clearBasket"
88672
- }
89399
+ "spacing": 4,
89400
+ "alignment": "leading",
89401
+ "children": [
89402
+ {
89403
+ "id": "",
89404
+ "body": {
89405
+ "package": "himalaya",
89406
+ "type": "Text",
89407
+ "props": {
89408
+ "text": "Postal code",
89409
+ "style": "caption",
89410
+ "color": "textSecondary"
89411
+ }
89412
+ }
89413
+ },
89414
+ {
89415
+ "id": "himi_food_orders.postalCode",
89416
+ "body": {
89417
+ "package": "himalaya",
89418
+ "type": "TextField",
89419
+ "props": {
89420
+ "valuePath": "$service:spacesFoodOrders.postalCode",
89421
+ "autoCapitalization": "characters",
89422
+ "onChange": {
89423
+ "actionId": "tier5.spacesFoodOrders.setPostalCode"
89424
+ }
89425
+ }
89426
+ },
89427
+ "modifiers": {
89428
+ "accessibilityLabel": "Postal code"
89429
+ }
89430
+ }
89431
+ ]
89432
+ }
89433
+ }
89434
+ },
89435
+ {
89436
+ "id": "",
89437
+ "body": {
89438
+ "package": "himalaya",
89439
+ "type": "VStack",
89440
+ "props": {
89441
+ "spacing": 4,
89442
+ "alignment": "leading",
89443
+ "children": [
89444
+ {
89445
+ "id": "",
89446
+ "body": {
89447
+ "package": "himalaya",
89448
+ "type": "Text",
89449
+ "props": {
89450
+ "text": "State or region",
89451
+ "style": "caption",
89452
+ "color": "textSecondary"
89453
+ }
89454
+ }
89455
+ },
89456
+ {
89457
+ "id": "himi_food_orders.subdivision",
89458
+ "body": {
89459
+ "package": "himalaya",
89460
+ "type": "TextField",
89461
+ "props": {
89462
+ "placeholder": "For example CA",
89463
+ "valuePath": "$service:spacesFoodOrders.subdivision",
89464
+ "autoCapitalization": "characters",
89465
+ "onChange": {
89466
+ "actionId": "tier5.spacesFoodOrders.setSubdivision"
89467
+ }
89468
+ }
89469
+ },
89470
+ "modifiers": {
89471
+ "accessibilityLabel": "State or region"
89472
+ }
89473
+ }
89474
+ ]
89475
+ }
89476
+ }
89477
+ },
89478
+ {
89479
+ "id": "",
89480
+ "body": {
89481
+ "package": "himalaya",
89482
+ "type": "VStack",
89483
+ "props": {
89484
+ "spacing": 4,
89485
+ "alignment": "leading",
89486
+ "children": [
89487
+ {
89488
+ "id": "",
89489
+ "body": {
89490
+ "package": "himalaya",
89491
+ "type": "Text",
89492
+ "props": {
89493
+ "text": "Country",
89494
+ "style": "caption",
89495
+ "color": "textSecondary"
89496
+ }
89497
+ }
89498
+ },
89499
+ {
89500
+ "id": "himi_food_orders.country",
89501
+ "body": {
89502
+ "package": "himalaya",
89503
+ "type": "TextField",
89504
+ "props": {
89505
+ "placeholder": "Two-letter code, for example US",
89506
+ "valuePath": "$service:spacesFoodOrders.country",
89507
+ "autoCapitalization": "characters",
89508
+ "onChange": {
89509
+ "actionId": "tier5.spacesFoodOrders.setCountry"
89510
+ }
89511
+ }
89512
+ },
89513
+ "modifiers": {
89514
+ "accessibilityLabel": "Country"
89515
+ }
89516
+ }
89517
+ ]
88673
89518
  }
88674
89519
  }
88675
89520
  }
@@ -88693,22 +89538,143 @@ const SCREENS = runtimeSetting({
88693
89538
  "top": 16,
88694
89539
  "bottom": 16
88695
89540
  },
88696
- "hiddenPath": "$service:spacesFoodOrders.noBasket"
89541
+ "fillMaxWidth": true,
89542
+ "hiddenPath": "$service:spacesFoodOrders.hideAddress"
88697
89543
  }
88698
89544
  },
88699
89545
  {
88700
- "id": "himi_food_orders.error",
89546
+ "id": "",
88701
89547
  "body": {
88702
89548
  "package": "himalaya",
88703
- "type": "Banner",
89549
+ "type": "VStack",
88704
89550
  "props": {
88705
- "severity": "warning",
88706
- "title": "Your active order could not be loaded",
88707
- "message": "Your basket is still available on this device."
89551
+ "spacing": 8,
89552
+ "alignment": "leading",
89553
+ "children": [
89554
+ {
89555
+ "id": "himi_food_orders.outside_area",
89556
+ "body": {
89557
+ "package": "himalaya",
89558
+ "type": "Banner",
89559
+ "props": {
89560
+ "severity": "warning",
89561
+ "title": "Outside the delivery area",
89562
+ "message": "The restaurant doesn't deliver to this address. Check the address or choose pickup."
89563
+ }
89564
+ }
89565
+ },
89566
+ {
89567
+ "id": "himi_food_orders.switch_to_pickup",
89568
+ "body": {
89569
+ "package": "himalaya",
89570
+ "type": "Button",
89571
+ "props": {
89572
+ "title": "Switch to pickup",
89573
+ "style": "secondary",
89574
+ "fullWidth": true,
89575
+ "leadingIcon": "bag",
89576
+ "action": {
89577
+ "actionId": "tier5.spacesFoodOrders.choosePickup"
89578
+ }
89579
+ }
89580
+ },
89581
+ "modifiers": {
89582
+ "hiddenPath": "$service:spacesFoodOrders.noPickup"
89583
+ }
89584
+ }
89585
+ ]
88708
89586
  }
88709
89587
  },
88710
89588
  "modifiers": {
88711
- "hiddenPath": "$service:spacesFoodOrders.notErrored"
89589
+ "hiddenPath": "$service:spacesFoodOrders.notOutsideArea"
89590
+ }
89591
+ },
89592
+ {
89593
+ "id": "",
89594
+ "body": {
89595
+ "package": "himalaya",
89596
+ "type": "VStack",
89597
+ "props": {
89598
+ "spacing": 8,
89599
+ "alignment": "leading",
89600
+ "children": [
89601
+ {
89602
+ "id": "himi_food_orders.minimum",
89603
+ "body": {
89604
+ "package": "himalaya",
89605
+ "type": "Text",
89606
+ "props": {
89607
+ "text": "$service:spacesFoodOrders.minimumText",
89608
+ "style": "footnote",
89609
+ "color": "textPrimary",
89610
+ "collapseWhenEmpty": true
89611
+ }
89612
+ },
89613
+ "modifiers": {
89614
+ "hiddenPath": "$service:spacesFoodOrders.noMinimumText"
89615
+ }
89616
+ },
89617
+ {
89618
+ "id": "himi_food_orders.total",
89619
+ "body": {
89620
+ "package": "himalaya",
89621
+ "type": "Text",
89622
+ "props": {
89623
+ "text": "$service:spacesFoodOrders.totalLine",
89624
+ "style": "bodyEmphasis",
89625
+ "collapseWhenEmpty": true
89626
+ }
89627
+ }
89628
+ },
89629
+ {
89630
+ "id": "himi_food_orders.hint",
89631
+ "body": {
89632
+ "package": "himalaya",
89633
+ "type": "Text",
89634
+ "props": {
89635
+ "text": "$service:spacesFoodOrders.checkoutHint",
89636
+ "style": "footnote",
89637
+ "color": "textSecondary",
89638
+ "collapseWhenEmpty": true
89639
+ }
89640
+ }
89641
+ },
89642
+ {
89643
+ "id": "himi_food_orders.checkout",
89644
+ "body": {
89645
+ "package": "himalaya",
89646
+ "type": "Button",
89647
+ "props": {
89648
+ "title": "Checkout",
89649
+ "style": "primary",
89650
+ "fullWidth": true,
89651
+ "leadingIcon": "lock",
89652
+ "action": {
89653
+ "actionId": "tier5.spacesFoodOrders.checkout"
89654
+ }
89655
+ }
89656
+ },
89657
+ "modifiers": {
89658
+ "hiddenPath": "$service:spacesFoodOrders.hideCheckout"
89659
+ }
89660
+ },
89661
+ {
89662
+ "id": "",
89663
+ "body": {
89664
+ "package": "himalaya",
89665
+ "type": "Text",
89666
+ "props": {
89667
+ "text": "You pay on the restaurant's secure checkout page.",
89668
+ "style": "caption",
89669
+ "color": "textTertiary"
89670
+ }
89671
+ },
89672
+ "modifiers": {
89673
+ "hiddenPath": "$service:spacesFoodOrders.hideCheckout"
89674
+ }
89675
+ }
89676
+ ]
89677
+ }
88712
89678
  }
88713
89679
  },
88714
89680
  {
@@ -88726,11 +89692,103 @@ const SCREENS = runtimeSetting({
88726
89692
  "package": "himalaya",
88727
89693
  "type": "Text",
88728
89694
  "props": {
88729
- "text": "Active order",
89695
+ "text": "Past orders",
88730
89696
  "style": "title3"
88731
89697
  }
88732
89698
  }
88733
89699
  },
89700
+ {
89701
+ "id": "himi_food_orders.signin_card",
89702
+ "body": {
89703
+ "package": "himalaya",
89704
+ "type": "VStack",
89705
+ "props": {
89706
+ "spacing": 8,
89707
+ "alignment": "leading",
89708
+ "children": [
89709
+ {
89710
+ "id": "",
89711
+ "body": {
89712
+ "package": "himalaya",
89713
+ "type": "Icon",
89714
+ "props": {
89715
+ "name": "person",
89716
+ "size": 28,
89717
+ "tint": "accentPrimary"
89718
+ }
89719
+ },
89720
+ "modifiers": {
89721
+ "accessibilityRole": "decorative"
89722
+ }
89723
+ },
89724
+ {
89725
+ "id": "",
89726
+ "body": {
89727
+ "package": "himalaya",
89728
+ "type": "Text",
89729
+ "props": {
89730
+ "text": "Sign in to see your past orders",
89731
+ "style": "bodyEmphasis"
89732
+ }
89733
+ }
89734
+ },
89735
+ {
89736
+ "id": "",
89737
+ "body": {
89738
+ "package": "himalaya",
89739
+ "type": "Text",
89740
+ "props": {
89741
+ "text": "Your restaurant orders are kept private to your member account.",
89742
+ "style": "footnote",
89743
+ "color": "textSecondary"
89744
+ }
89745
+ }
89746
+ },
89747
+ {
89748
+ "id": "himi_food_orders.signin",
89749
+ "body": {
89750
+ "package": "himalaya",
89751
+ "type": "Button",
89752
+ "props": {
89753
+ "title": "Sign in",
89754
+ "style": "primary",
89755
+ "fullWidth": true,
89756
+ "action": {
89757
+ "actionId": "himi.open",
89758
+ "params": {
89759
+ "screenId": "himi_sign_in",
89760
+ "intent": "food-orders",
89761
+ "returnScreenId": "himi_food_orders",
89762
+ "modal": "1"
89763
+ },
89764
+ "presentation": "sheet"
89765
+ }
89766
+ }
89767
+ }
89768
+ }
89769
+ ]
89770
+ }
89771
+ },
89772
+ "modifiers": {
89773
+ "background": {
89774
+ "token": "surfaceElevated"
89775
+ },
89776
+ "border": {
89777
+ "width": 1,
89778
+ "color": {
89779
+ "token": "border"
89780
+ }
89781
+ },
89782
+ "cornerRadius": 4,
89783
+ "padding": {
89784
+ "leading": 16,
89785
+ "trailing": 16,
89786
+ "top": 16,
89787
+ "bottom": 16
89788
+ },
89789
+ "hiddenPath": "$service:spacesFoodOrders.noSignIn"
89790
+ }
89791
+ },
88734
89792
  {
88735
89793
  "id": "himi_food_orders.rows",
88736
89794
  "body": {
@@ -88771,7 +89829,7 @@ const SCREENS = runtimeSetting({
88771
89829
  "text": "$item.subtitle",
88772
89830
  "style": "footnote",
88773
89831
  "color": "textSecondary",
88774
- "maxLines": 1,
89832
+ "maxLines": 2,
88775
89833
  "collapseWhenEmpty": true
88776
89834
  }
88777
89835
  }
@@ -88810,35 +89868,50 @@ const SCREENS = runtimeSetting({
88810
89868
  }
88811
89869
  ]
88812
89870
  }
89871
+ },
89872
+ "modifiers": {
89873
+ "hiddenPath": "$service:spacesFoodOrders.noOrders"
89874
+ }
89875
+ },
89876
+ {
89877
+ "id": "himi_food_orders.history_empty",
89878
+ "body": {
89879
+ "package": "himalaya",
89880
+ "type": "Text",
89881
+ "props": {
89882
+ "text": "$service:spacesFoodOrders.emptyText",
89883
+ "style": "body",
89884
+ "color": "textSecondary",
89885
+ "collapseWhenEmpty": true
89886
+ }
89887
+ },
89888
+ "modifiers": {
89889
+ "hiddenPath": "$service:spacesFoodOrders.hasOrders"
89890
+ }
89891
+ },
89892
+ {
89893
+ "id": "himi_food_orders.on_site",
89894
+ "body": {
89895
+ "package": "himalaya",
89896
+ "type": "Button",
89897
+ "props": {
89898
+ "title": "Open your orders on the site",
89899
+ "style": "secondary",
89900
+ "fullWidth": true,
89901
+ "action": {
89902
+ "actionId": "tier5.spacesFoodOrders.openOrdersOnSite"
89903
+ }
89904
+ }
89905
+ },
89906
+ "modifiers": {
89907
+ "hiddenPath": "$service:spacesFoodOrders.notOnSite"
88813
89908
  }
88814
89909
  }
88815
89910
  ]
88816
89911
  }
88817
89912
  },
88818
89913
  "modifiers": {
88819
- "hiddenPath": "$service:spacesFoodOrders.noActiveOrder"
88820
- }
88821
- },
88822
- {
88823
- "id": "",
88824
- "body": {
88825
- "package": "himalaya",
88826
- "type": "Text",
88827
- "props": {
88828
- "text": "$service:spacesFoodOrders.emptyText",
88829
- "style": "body",
88830
- "color": "textSecondary",
88831
- "collapseWhenEmpty": true
88832
- }
88833
- },
88834
- "modifiers": {
88835
- "padding": {
88836
- "leading": 8,
88837
- "trailing": 8,
88838
- "top": 8,
88839
- "bottom": 0
88840
- },
88841
- "hiddenPath": "$service:spacesFoodOrders.hasActiveOrder"
89914
+ "hiddenPath": "$service:spacesFoodOrders.isLoading"
88842
89915
  }
88843
89916
  }
88844
89917
  ]
@@ -88864,7 +89937,10 @@ const SCREENS = runtimeSetting({
88864
89937
  "integrity": "",
88865
89938
  "contentType": "application/javascript+ts-bundle",
88866
89939
  "declaredCapabilities": [
88867
- "wix_api"
89940
+ "wix_api",
89941
+ "wix_cashier",
89942
+ "open_url",
89943
+ "local_database"
88868
89944
  ],
88869
89945
  "minBinaryVersion": "0.1.0",
88870
89946
  "bundleVersion": "0.0.1"
@@ -98023,84 +99099,106 @@ const TEMPLATED: { pattern: string; display: string; liveSeed?: LiveSeed; static
98023
99099
  }
98024
99100
  },
98025
99101
  {
98026
- "id": "himi_menu_item.add_to_basket",
99102
+ "id": "himi_menu_item.add_to_order",
98027
99103
  "body": {
98028
99104
  "package": "himalaya",
98029
99105
  "type": "Button",
98030
99106
  "props": {
98031
- "title": "Add to basket",
99107
+ "title": "Add to order",
98032
99108
  "style": "primary",
98033
99109
  "fullWidth": true,
98034
99110
  "action": {
98035
- "actionId": "tier5.himiBrandedMenuItem.addToBasket"
99111
+ "actionId": "tier5.himiBrandedMenuItem.addToOrder"
98036
99112
  },
98037
99113
  "leadingIcon": "bag"
98038
99114
  }
98039
99115
  },
98040
99116
  "modifiers": {
98041
- "hiddenPath": "$service:himiBrandedMenuItem.cannotSaveBasket"
99117
+ "hiddenPath": "$service:himiBrandedMenuItem.cannotOrder"
98042
99118
  }
98043
99119
  },
98044
99120
  {
98045
- "id": "himi_menu_item.basket_signin",
99121
+ "id": "",
98046
99122
  "body": {
98047
99123
  "package": "himalaya",
98048
- "type": "Button",
99124
+ "type": "HStack",
98049
99125
  "props": {
98050
- "title": "Sign in to save a basket",
98051
- "style": "primary",
98052
- "fullWidth": true,
98053
- "action": {
98054
- "actionId": "himi.open",
98055
- "params": {
98056
- "screenId": "himi_sign_in",
98057
- "intent": "basket",
98058
- "returnScreenId": "himi_menu_item",
98059
- "returnId": "$service:himiBrandedMenuItem.id",
98060
- "modal": "1"
99126
+ "spacing": 8,
99127
+ "children": [
99128
+ {
99129
+ "id": "",
99130
+ "body": {
99131
+ "package": "himalaya",
99132
+ "type": "Icon",
99133
+ "props": {
99134
+ "name": "info",
99135
+ "size": 18,
99136
+ "tint": "textSecondary"
99137
+ }
99138
+ },
99139
+ "modifiers": {
99140
+ "accessibilityRole": "decorative"
99141
+ }
98061
99142
  },
98062
- "presentation": "sheet"
98063
- },
98064
- "leadingIcon": "person"
99143
+ {
99144
+ "id": "",
99145
+ "body": {
99146
+ "package": "himalaya",
99147
+ "type": "Text",
99148
+ "props": {
99149
+ "text": "$service:himiBrandedMenuItem.orderNote",
99150
+ "style": "footnote",
99151
+ "color": "textSecondary",
99152
+ "collapseWhenEmpty": true
99153
+ }
99154
+ }
99155
+ }
99156
+ ]
98065
99157
  }
98066
99158
  },
98067
99159
  "modifiers": {
98068
- "hiddenPath": "$service:himiBrandedMenuItem.canSaveBasket"
99160
+ "padding": {
99161
+ "leading": 2,
99162
+ "trailing": 2,
99163
+ "top": 2,
99164
+ "bottom": 2
99165
+ },
99166
+ "hiddenPath": "$service:himiBrandedMenuItem.noOrderNote"
98069
99167
  }
98070
99168
  },
98071
99169
  {
98072
- "id": "himi_menu_item.basket_count",
99170
+ "id": "himi_menu_item.order_message",
98073
99171
  "body": {
98074
99172
  "package": "himalaya",
98075
99173
  "type": "Text",
98076
99174
  "props": {
98077
- "text": "$service:himiBrandedMenuItem.basketLabel",
98078
- "style": "caption",
98079
- "color": "accentPrimary",
99175
+ "text": "$service:himiBrandedMenuItem.orderMessage",
99176
+ "style": "footnote",
99177
+ "color": "textPrimary",
98080
99178
  "collapseWhenEmpty": true
98081
99179
  }
98082
99180
  }
98083
99181
  },
98084
99182
  {
98085
- "id": "himi_menu_item.basket_message",
99183
+ "id": "himi_menu_item.cart_count",
98086
99184
  "body": {
98087
99185
  "package": "himalaya",
98088
99186
  "type": "Text",
98089
99187
  "props": {
98090
- "text": "$service:himiBrandedMenuItem.basketMessage",
98091
- "style": "footnote",
98092
- "color": "textSecondary",
99188
+ "text": "$service:himiBrandedMenuItem.cartLabel",
99189
+ "style": "caption",
99190
+ "color": "accentPrimary",
98093
99191
  "collapseWhenEmpty": true
98094
99192
  }
98095
99193
  }
98096
99194
  },
98097
99195
  {
98098
- "id": "himi_menu_item.view_basket",
99196
+ "id": "himi_menu_item.view_order",
98099
99197
  "body": {
98100
99198
  "package": "himalaya",
98101
99199
  "type": "Button",
98102
99200
  "props": {
98103
- "title": "View basket & active order",
99201
+ "title": "View your order",
98104
99202
  "style": "secondary",
98105
99203
  "fullWidth": true,
98106
99204
  "action": {
@@ -98113,7 +99211,7 @@ const TEMPLATED: { pattern: string; display: string; liveSeed?: LiveSeed; static
98113
99211
  }
98114
99212
  },
98115
99213
  "modifiers": {
98116
- "hiddenPath": "$service:himiBrandedMenuItem.cannotSaveBasket"
99214
+ "hiddenPath": "$service:himiBrandedMenuItem.noCart"
98117
99215
  }
98118
99216
  },
98119
99217
  {