@wix/himalaya-cli 0.1024.0 → 0.1026.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 (84) hide show
  1. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/ts/src/schema.d.ts +12 -1
  2. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/core.mjs +6 -0
  3. package/dist/cli.mjs +29 -18
  4. package/dist/preview-assets.generated.bin +0 -0
  5. package/guides/sdk-reference.json +1 -1
  6. package/package.json +2 -2
  7. package/templates/beauty-salon/dev/index.ts +1031 -240
  8. package/templates/beauty-salon/tier5-src/_shared/detail-presence.ts +51 -0
  9. package/templates/beauty-salon/tier5-src/himi-branded-lite-orders/index.ts +4 -1
  10. package/templates/beauty-salon/tier5-src/wix-spaces-collection-detail/index.ts +9 -9
  11. package/templates/beauty-salon/tier5-src/wix-spaces-create-post/index.ts +14 -4
  12. package/templates/beauty-salon/tier5-src/wix-spaces-plan-detail/index.ts +7 -9
  13. package/templates/beauty-salon/tier5-src/wix-spaces-subscription-detail/index.ts +12 -11
  14. package/templates/beauty-salon/tier5-src/wix-spaces-view-profile/index.ts +22 -12
  15. package/templates/branded-lite/config.ts +3 -1
  16. package/templates/branded-lite/dev/index.ts +3455 -813
  17. package/templates/branded-lite/tier5-src/_shared/detail-presence.ts +51 -0
  18. package/templates/branded-lite/tier5-src/himi-branded-lite-orders/index.ts +4 -1
  19. package/templates/branded-lite/tier5-src/himi-branded-lite-portfolio-project/index.ts +7 -2
  20. package/templates/branded-lite/tier5-src/himi-branded-lite-simple-detail/index.ts +4 -3
  21. package/templates/branded-lite/tier5-src/wix-spaces-chat-thread/index.ts +17 -4
  22. package/templates/branded-lite/tier5-src/wix-spaces-collection-detail/index.ts +9 -9
  23. package/templates/branded-lite/tier5-src/wix-spaces-coupon-detail/index.ts +7 -9
  24. package/templates/branded-lite/tier5-src/wix-spaces-create-post/index.ts +14 -4
  25. package/templates/branded-lite/tier5-src/wix-spaces-food-order-detail/index.ts +6 -3
  26. package/templates/branded-lite/tier5-src/wix-spaces-form-detail/index.ts +7 -9
  27. package/templates/branded-lite/tier5-src/wix-spaces-forum-post/index.ts +7 -9
  28. package/templates/branded-lite/tier5-src/wix-spaces-invoice-detail/index.ts +7 -9
  29. package/templates/branded-lite/tier5-src/wix-spaces-member-detail/index.ts +8 -8
  30. package/templates/branded-lite/tier5-src/wix-spaces-photo-albums/index.ts +8 -2
  31. package/templates/branded-lite/tier5-src/wix-spaces-plan-detail/index.ts +7 -9
  32. package/templates/branded-lite/tier5-src/wix-spaces-subscription-detail/index.ts +12 -11
  33. package/templates/branded-lite/tier5-src/wix-spaces-view-profile/index.ts +22 -12
  34. package/templates/community-club/dev/index.ts +345 -97
  35. package/templates/community-club/tier5-src/wix-spaces-create-post/index.ts +14 -4
  36. package/templates/community-club/tier5-src/wix-spaces-view-profile/index.ts +22 -12
  37. package/templates/events-meetups/dev/index.ts +345 -97
  38. package/templates/events-meetups/tier5-src/wix-spaces-create-post/index.ts +14 -4
  39. package/templates/events-meetups/tier5-src/wix-spaces-view-profile/index.ts +22 -12
  40. package/templates/gym-fitness/dev/index.ts +1031 -240
  41. package/templates/gym-fitness/tier5-src/_shared/detail-presence.ts +51 -0
  42. package/templates/gym-fitness/tier5-src/himi-branded-lite-orders/index.ts +4 -1
  43. package/templates/gym-fitness/tier5-src/wix-spaces-collection-detail/index.ts +9 -9
  44. package/templates/gym-fitness/tier5-src/wix-spaces-create-post/index.ts +14 -4
  45. package/templates/gym-fitness/tier5-src/wix-spaces-plan-detail/index.ts +7 -9
  46. package/templates/gym-fitness/tier5-src/wix-spaces-subscription-detail/index.ts +12 -11
  47. package/templates/gym-fitness/tier5-src/wix-spaces-view-profile/index.ts +22 -12
  48. package/templates/nonprofit-cause/dev/index.ts +732 -188
  49. package/templates/nonprofit-cause/tier5-src/_shared/detail-presence.ts +51 -0
  50. package/templates/nonprofit-cause/tier5-src/wix-spaces-create-post/index.ts +14 -4
  51. package/templates/nonprofit-cause/tier5-src/wix-spaces-plan-detail/index.ts +7 -9
  52. package/templates/nonprofit-cause/tier5-src/wix-spaces-subscription-detail/index.ts +12 -11
  53. package/templates/nonprofit-cause/tier5-src/wix-spaces-view-profile/index.ts +22 -12
  54. package/templates/podcast-creator/dev/index.ts +942 -321
  55. package/templates/podcast-creator/tier5-src/_shared/detail-presence.ts +51 -0
  56. package/templates/podcast-creator/tier5-src/himi-branded-lite-simple-detail/index.ts +4 -3
  57. package/templates/podcast-creator/tier5-src/wix-spaces-create-post/index.ts +14 -4
  58. package/templates/podcast-creator/tier5-src/wix-spaces-plan-detail/index.ts +7 -9
  59. package/templates/podcast-creator/tier5-src/wix-spaces-subscription-detail/index.ts +12 -11
  60. package/templates/podcast-creator/tier5-src/wix-spaces-view-profile/index.ts +22 -12
  61. package/templates/portfolio-creative/dev/index.ts +676 -169
  62. package/templates/portfolio-creative/tier5-src/_shared/detail-presence.ts +51 -0
  63. package/templates/portfolio-creative/tier5-src/himi-branded-lite-orders/index.ts +4 -1
  64. package/templates/portfolio-creative/tier5-src/himi-branded-lite-portfolio-project/index.ts +7 -2
  65. package/templates/portfolio-creative/tier5-src/wix-spaces-collection-detail/index.ts +9 -9
  66. package/templates/portfolio-creative/tier5-src/wix-spaces-create-post/index.ts +14 -4
  67. package/templates/portfolio-creative/tier5-src/wix-spaces-view-profile/index.ts +22 -12
  68. package/templates/restaurant/dev/index.ts +529 -149
  69. package/templates/restaurant/tier5-src/_shared/detail-presence.ts +51 -0
  70. package/templates/restaurant/tier5-src/wix-spaces-create-post/index.ts +14 -4
  71. package/templates/restaurant/tier5-src/wix-spaces-food-order-detail/index.ts +6 -3
  72. package/templates/restaurant/tier5-src/wix-spaces-view-profile/index.ts +22 -12
  73. package/templates/retail-store/dev/index.ts +643 -148
  74. package/templates/retail-store/tier5-src/_shared/detail-presence.ts +51 -0
  75. package/templates/retail-store/tier5-src/himi-branded-lite-orders/index.ts +4 -1
  76. package/templates/retail-store/tier5-src/wix-spaces-collection-detail/index.ts +9 -9
  77. package/templates/retail-store/tier5-src/wix-spaces-create-post/index.ts +14 -4
  78. package/templates/retail-store/tier5-src/wix-spaces-view-profile/index.ts +22 -12
  79. package/templates/yoga-studio/dev/index.ts +711 -183
  80. package/templates/yoga-studio/tier5-src/_shared/detail-presence.ts +51 -0
  81. package/templates/yoga-studio/tier5-src/wix-spaces-create-post/index.ts +14 -4
  82. package/templates/yoga-studio/tier5-src/wix-spaces-plan-detail/index.ts +7 -9
  83. package/templates/yoga-studio/tier5-src/wix-spaces-subscription-detail/index.ts +12 -11
  84. package/templates/yoga-studio/tier5-src/wix-spaces-view-profile/index.ts +22 -12
@@ -14,7 +14,7 @@ const SCREENS = runtimeSetting({
14
14
  "himi_branded_home": {
15
15
  "screenId": "himi_branded_home",
16
16
  "renderer": "sdui_intent",
17
- "title": "",
17
+ "title": "__HIMI_APP_NAME__",
18
18
  "schemaVersion": 1,
19
19
  "cacheControl": {
20
20
  "maxAge": 0,
@@ -4064,74 +4064,196 @@ const SCREENS = runtimeSetting({
4064
4064
  "alignment": "center",
4065
4065
  "children": [
4066
4066
  {
4067
- "id": "himi_view_profile.avatar",
4067
+ "id": "himi_view_profile.loading",
4068
+ "body": {
4069
+ "package": "himalaya",
4070
+ "type": "Text",
4071
+ "props": {
4072
+ "text": "Loading…",
4073
+ "style": "body",
4074
+ "color": "textSecondary"
4075
+ }
4076
+ },
4077
+ "modifiers": {
4078
+ "hiddenPath": "$service:spacesViewProfile.hideLoading"
4079
+ }
4080
+ },
4081
+ {
4082
+ "id": "",
4068
4083
  "body": {
4069
4084
  "package": "himalaya",
4070
- "type": "ZStack",
4085
+ "type": "VStack",
4071
4086
  "props": {
4087
+ "spacing": 8,
4072
4088
  "alignment": "center",
4073
4089
  "children": [
4074
4090
  {
4075
- "id": "",
4091
+ "id": "himi_view_profile.avatar",
4076
4092
  "body": {
4077
4093
  "package": "himalaya",
4078
- "type": "Icon",
4094
+ "type": "ZStack",
4079
4095
  "props": {
4080
- "name": "photo",
4081
- "size": 28,
4082
- "tint": "accentPrimary"
4096
+ "alignment": "center",
4097
+ "children": [
4098
+ {
4099
+ "id": "",
4100
+ "body": {
4101
+ "package": "himalaya",
4102
+ "type": "Icon",
4103
+ "props": {
4104
+ "name": "photo",
4105
+ "size": 28,
4106
+ "tint": "accentPrimary"
4107
+ }
4108
+ },
4109
+ "modifiers": {
4110
+ "accessibilityRole": "decorative"
4111
+ }
4112
+ }
4113
+ ]
4083
4114
  }
4084
4115
  },
4085
4116
  "modifiers": {
4086
- "accessibilityRole": "decorative"
4117
+ "width": 96,
4118
+ "height": 96,
4119
+ "background": {
4120
+ "token": "accentSurface"
4121
+ },
4122
+ "cornerRadius": 16
4123
+ }
4124
+ },
4125
+ {
4126
+ "id": "himi_view_profile.name",
4127
+ "body": {
4128
+ "package": "himalaya",
4129
+ "type": "Text",
4130
+ "props": {
4131
+ "text": "$service:spacesViewProfile.name",
4132
+ "style": "title1"
4133
+ }
4134
+ }
4135
+ },
4136
+ {
4137
+ "id": "",
4138
+ "body": {
4139
+ "package": "himalaya",
4140
+ "type": "Text",
4141
+ "props": {
4142
+ "text": "$service:spacesViewProfile.handle",
4143
+ "style": "footnote",
4144
+ "color": "textSecondary",
4145
+ "collapseWhenEmpty": true
4146
+ }
4147
+ }
4148
+ },
4149
+ {
4150
+ "id": "",
4151
+ "body": {
4152
+ "package": "himalaya",
4153
+ "type": "Text",
4154
+ "props": {
4155
+ "text": "$service:spacesViewProfile.about",
4156
+ "style": "body",
4157
+ "collapseWhenEmpty": true
4158
+ }
4087
4159
  }
4088
4160
  }
4089
4161
  ]
4090
4162
  }
4091
4163
  },
4092
4164
  "modifiers": {
4093
- "width": 96,
4094
- "height": 96,
4095
- "background": {
4096
- "token": "accentSurface"
4097
- },
4098
- "cornerRadius": 16
4099
- }
4100
- },
4101
- {
4102
- "id": "himi_view_profile.name",
4103
- "body": {
4104
- "package": "himalaya",
4105
- "type": "Text",
4106
- "props": {
4107
- "text": "$service:spacesViewProfile.name",
4108
- "style": "title1"
4109
- }
4110
- }
4111
- },
4112
- {
4113
- "id": "",
4114
- "body": {
4115
- "package": "himalaya",
4116
- "type": "Text",
4117
- "props": {
4118
- "text": "$service:spacesViewProfile.handle",
4119
- "style": "footnote",
4120
- "color": "textSecondary",
4121
- "collapseWhenEmpty": true
4122
- }
4165
+ "hiddenPath": "$service:spacesViewProfile.profileHidden"
4123
4166
  }
4124
4167
  },
4125
4168
  {
4126
- "id": "",
4169
+ "id": "himi_view_profile.member_gate",
4127
4170
  "body": {
4128
4171
  "package": "himalaya",
4129
- "type": "Text",
4172
+ "type": "VStack",
4130
4173
  "props": {
4131
- "text": "$service:spacesViewProfile.about",
4132
- "style": "body",
4133
- "collapseWhenEmpty": true
4174
+ "spacing": 10,
4175
+ "alignment": "center",
4176
+ "children": [
4177
+ {
4178
+ "id": "",
4179
+ "body": {
4180
+ "package": "himalaya",
4181
+ "type": "Icon",
4182
+ "props": {
4183
+ "name": "person",
4184
+ "size": 28,
4185
+ "tint": "accentPrimary"
4186
+ }
4187
+ },
4188
+ "modifiers": {
4189
+ "accessibilityRole": "decorative"
4190
+ }
4191
+ },
4192
+ {
4193
+ "id": "himi_view_profile.member_gate_title",
4194
+ "body": {
4195
+ "package": "himalaya",
4196
+ "type": "Text",
4197
+ "props": {
4198
+ "text": "Sign in to view your profile",
4199
+ "style": "bodyEmphasis"
4200
+ }
4201
+ }
4202
+ },
4203
+ {
4204
+ "id": "",
4205
+ "body": {
4206
+ "package": "himalaya",
4207
+ "type": "Text",
4208
+ "props": {
4209
+ "text": "Your public profile appears here after you sign in.",
4210
+ "style": "footnote",
4211
+ "color": "textSecondary"
4212
+ }
4213
+ }
4214
+ },
4215
+ {
4216
+ "id": "himi_view_profile.member_gate_signin",
4217
+ "body": {
4218
+ "package": "himalaya",
4219
+ "type": "Button",
4220
+ "props": {
4221
+ "title": "Sign in",
4222
+ "style": "primary",
4223
+ "fullWidth": true,
4224
+ "action": {
4225
+ "actionId": "himi.open",
4226
+ "params": {
4227
+ "screenId": "himi_account",
4228
+ "intent": "profile",
4229
+ "returnScreenId": "himi_view_profile"
4230
+ }
4231
+ }
4232
+ }
4233
+ }
4234
+ }
4235
+ ]
4134
4236
  }
4237
+ },
4238
+ "modifiers": {
4239
+ "background": {
4240
+ "token": "surfaceElevated"
4241
+ },
4242
+ "border": {
4243
+ "width": 1,
4244
+ "color": {
4245
+ "token": "border"
4246
+ }
4247
+ },
4248
+ "cornerRadius": 16,
4249
+ "padding": {
4250
+ "leading": 16,
4251
+ "trailing": 16,
4252
+ "top": 20,
4253
+ "bottom": 20
4254
+ },
4255
+ "fillMaxWidth": true,
4256
+ "hiddenPath": "$service:spacesViewProfile.noSignIn"
4135
4257
  }
4136
4258
  }
4137
4259
  ]
@@ -7476,65 +7598,172 @@ const SCREENS = runtimeSetting({
7476
7598
  }
7477
7599
  },
7478
7600
  {
7479
- "id": "",
7480
- "body": {
7481
- "package": "himalaya",
7482
- "type": "Text",
7483
- "props": {
7484
- "text": "$service:spacesCreatePost.hint",
7485
- "style": "footnote",
7486
- "color": "textSecondary",
7487
- "collapseWhenEmpty": true
7488
- }
7489
- }
7490
- },
7491
- {
7492
- "id": "himi_create_post.title_field",
7601
+ "id": "himi_create_post.member_gate",
7493
7602
  "body": {
7494
7603
  "package": "himalaya",
7495
- "type": "TextField",
7604
+ "type": "VStack",
7496
7605
  "props": {
7497
- "placeholder": "Title",
7498
- "value": "",
7499
- "submitLabel": "next",
7500
- "onSubmit": {
7501
- "actionId": "tier5.spacesCreatePost.focusBody"
7502
- },
7503
- "onChange": {
7504
- "actionId": "tier5.spacesCreatePost.setTitle"
7505
- }
7606
+ "spacing": 10,
7607
+ "alignment": "center",
7608
+ "children": [
7609
+ {
7610
+ "id": "",
7611
+ "body": {
7612
+ "package": "himalaya",
7613
+ "type": "Icon",
7614
+ "props": {
7615
+ "name": "person",
7616
+ "size": 28,
7617
+ "tint": "accentPrimary"
7618
+ }
7619
+ },
7620
+ "modifiers": {
7621
+ "accessibilityRole": "decorative"
7622
+ }
7623
+ },
7624
+ {
7625
+ "id": "himi_create_post.member_gate_title",
7626
+ "body": {
7627
+ "package": "himalaya",
7628
+ "type": "Text",
7629
+ "props": {
7630
+ "text": "Sign in to post",
7631
+ "style": "bodyEmphasis"
7632
+ }
7633
+ }
7634
+ },
7635
+ {
7636
+ "id": "",
7637
+ "body": {
7638
+ "package": "himalaya",
7639
+ "type": "Text",
7640
+ "props": {
7641
+ "text": "Sign in to share something with the community.",
7642
+ "style": "footnote",
7643
+ "color": "textSecondary"
7644
+ }
7645
+ }
7646
+ },
7647
+ {
7648
+ "id": "himi_create_post.member_gate_signin",
7649
+ "body": {
7650
+ "package": "himalaya",
7651
+ "type": "Button",
7652
+ "props": {
7653
+ "title": "Sign in",
7654
+ "style": "primary",
7655
+ "fullWidth": true,
7656
+ "action": {
7657
+ "actionId": "himi.open",
7658
+ "params": {
7659
+ "screenId": "himi_account",
7660
+ "intent": "post",
7661
+ "returnScreenId": "himi_create_post"
7662
+ }
7663
+ }
7664
+ }
7665
+ }
7666
+ }
7667
+ ]
7506
7668
  }
7507
- }
7508
- },
7509
- {
7510
- "id": "himi_create_post.body_field",
7511
- "body": {
7512
- "package": "himalaya",
7513
- "type": "TextField",
7514
- "props": {
7515
- "placeholder": "Write something…",
7516
- "value": "",
7517
- "multilineMaxLines": 6,
7518
- "focusPath": "$service:spacesCreatePost.bodyFocus",
7519
- "onChange": {
7520
- "actionId": "tier5.spacesCreatePost.setBody"
7669
+ },
7670
+ "modifiers": {
7671
+ "background": {
7672
+ "token": "surfaceElevated"
7673
+ },
7674
+ "border": {
7675
+ "width": 1,
7676
+ "color": {
7677
+ "token": "border"
7521
7678
  }
7522
- }
7679
+ },
7680
+ "cornerRadius": 16,
7681
+ "padding": {
7682
+ "leading": 16,
7683
+ "trailing": 16,
7684
+ "top": 20,
7685
+ "bottom": 20
7686
+ },
7687
+ "fillMaxWidth": true,
7688
+ "hiddenPath": "$service:spacesCreatePost.noSignIn"
7523
7689
  }
7524
7690
  },
7525
7691
  {
7526
- "id": "himi_create_post.submit",
7692
+ "id": "",
7527
7693
  "body": {
7528
7694
  "package": "himalaya",
7529
- "type": "Button",
7695
+ "type": "VStack",
7530
7696
  "props": {
7531
- "title": "Post",
7532
- "style": "primary",
7533
- "fullWidth": true,
7534
- "action": {
7535
- "actionId": "tier5.spacesCreatePost.submit"
7536
- }
7697
+ "spacing": 16,
7698
+ "alignment": "leading",
7699
+ "children": [
7700
+ {
7701
+ "id": "",
7702
+ "body": {
7703
+ "package": "himalaya",
7704
+ "type": "Text",
7705
+ "props": {
7706
+ "text": "$service:spacesCreatePost.hint",
7707
+ "style": "footnote",
7708
+ "color": "textSecondary",
7709
+ "collapseWhenEmpty": true
7710
+ }
7711
+ }
7712
+ },
7713
+ {
7714
+ "id": "himi_create_post.title_field",
7715
+ "body": {
7716
+ "package": "himalaya",
7717
+ "type": "TextField",
7718
+ "props": {
7719
+ "placeholder": "Title",
7720
+ "value": "",
7721
+ "submitLabel": "next",
7722
+ "onSubmit": {
7723
+ "actionId": "tier5.spacesCreatePost.focusBody"
7724
+ },
7725
+ "onChange": {
7726
+ "actionId": "tier5.spacesCreatePost.setTitle"
7727
+ }
7728
+ }
7729
+ }
7730
+ },
7731
+ {
7732
+ "id": "himi_create_post.body_field",
7733
+ "body": {
7734
+ "package": "himalaya",
7735
+ "type": "TextField",
7736
+ "props": {
7737
+ "placeholder": "Write something…",
7738
+ "value": "",
7739
+ "multilineMaxLines": 6,
7740
+ "focusPath": "$service:spacesCreatePost.bodyFocus",
7741
+ "onChange": {
7742
+ "actionId": "tier5.spacesCreatePost.setBody"
7743
+ }
7744
+ }
7745
+ }
7746
+ },
7747
+ {
7748
+ "id": "himi_create_post.submit",
7749
+ "body": {
7750
+ "package": "himalaya",
7751
+ "type": "Button",
7752
+ "props": {
7753
+ "title": "Post",
7754
+ "style": "primary",
7755
+ "fullWidth": true,
7756
+ "action": {
7757
+ "actionId": "tier5.spacesCreatePost.submit"
7758
+ }
7759
+ }
7760
+ }
7761
+ }
7762
+ ]
7537
7763
  }
7764
+ },
7765
+ "modifiers": {
7766
+ "hiddenPath": "$service:spacesCreatePost.hideForm"
7538
7767
  }
7539
7768
  }
7540
7769
  ]
@@ -7549,6 +7778,9 @@ const SCREENS = runtimeSetting({
7549
7778
  "trailing": 16,
7550
7779
  "top": 18,
7551
7780
  "bottom": 28
7781
+ },
7782
+ "onAppear": {
7783
+ "actionId": "tier5.spacesCreatePost.load"
7552
7784
  }
7553
7785
  }
7554
7786
  },
@@ -14434,77 +14666,225 @@ const SCREENS = runtimeSetting({
14434
14666
  "spacing": 8,
14435
14667
  "alignment": "leading",
14436
14668
  "children": [
14437
- {
14438
- "id": "himi_food_order.chrome",
14439
- "body": {
14440
- "package": "himalaya",
14441
- "type": "Text",
14442
- "props": {
14443
- "text": "Order details",
14444
- "style": "title1"
14445
- }
14446
- }
14447
- },
14448
- {
14449
- "id": "himi_food_order.title",
14450
- "body": {
14451
- "package": "himalaya",
14452
- "type": "Text",
14453
- "props": {
14454
- "text": "$service:spacesFoodOrderDetail.name",
14455
- "style": "title1",
14456
- "collapseWhenEmpty": true
14457
- }
14458
- }
14459
- },
14460
14669
  {
14461
14670
  "id": "",
14462
14671
  "body": {
14463
14672
  "package": "himalaya",
14464
- "type": "Text",
14465
- "props": {
14466
- "text": "$service:spacesFoodOrderDetail.status_",
14467
- "style": "footnote",
14468
- "color": "textSecondary",
14469
- "collapseWhenEmpty": true
14470
- }
14471
- }
14472
- },
14473
- {
14474
- "id": "",
14475
- "body": {
14476
- "package": "himalaya",
14477
- "type": "Text",
14478
- "props": {
14479
- "text": "$service:spacesFoodOrderDetail.total",
14480
- "style": "title3",
14481
- "color": "accentPrimary",
14482
- "collapseWhenEmpty": true
14483
- }
14484
- }
14485
- },
14486
- {
14487
- "id": "",
14488
- "body": {
14489
- "package": "himalaya",
14490
- "type": "Text",
14673
+ "type": "VStack",
14491
14674
  "props": {
14492
- "text": "$service:spacesFoodOrderDetail.items",
14493
- "style": "body",
14494
- "collapseWhenEmpty": true
14675
+ "spacing": 8,
14676
+ "alignment": "leading",
14677
+ "children": [
14678
+ {
14679
+ "id": "himi_food_order.chrome",
14680
+ "body": {
14681
+ "package": "himalaya",
14682
+ "type": "Text",
14683
+ "props": {
14684
+ "text": "Order details",
14685
+ "style": "title1"
14686
+ }
14687
+ }
14688
+ },
14689
+ {
14690
+ "id": "himi_food_order.title",
14691
+ "body": {
14692
+ "package": "himalaya",
14693
+ "type": "Text",
14694
+ "props": {
14695
+ "text": "$service:spacesFoodOrderDetail.name",
14696
+ "style": "title1",
14697
+ "collapseWhenEmpty": true
14698
+ }
14699
+ }
14700
+ },
14701
+ {
14702
+ "id": "",
14703
+ "body": {
14704
+ "package": "himalaya",
14705
+ "type": "Text",
14706
+ "props": {
14707
+ "text": "$service:spacesFoodOrderDetail.status_",
14708
+ "style": "footnote",
14709
+ "color": "textSecondary",
14710
+ "collapseWhenEmpty": true
14711
+ }
14712
+ }
14713
+ },
14714
+ {
14715
+ "id": "",
14716
+ "body": {
14717
+ "package": "himalaya",
14718
+ "type": "Text",
14719
+ "props": {
14720
+ "text": "$service:spacesFoodOrderDetail.total",
14721
+ "style": "title3",
14722
+ "color": "accentPrimary",
14723
+ "collapseWhenEmpty": true
14724
+ }
14725
+ }
14726
+ },
14727
+ {
14728
+ "id": "",
14729
+ "body": {
14730
+ "package": "himalaya",
14731
+ "type": "Text",
14732
+ "props": {
14733
+ "text": "$service:spacesFoodOrderDetail.items",
14734
+ "style": "body",
14735
+ "collapseWhenEmpty": true
14736
+ }
14737
+ }
14738
+ },
14739
+ {
14740
+ "id": "",
14741
+ "body": {
14742
+ "package": "himalaya",
14743
+ "type": "Text",
14744
+ "props": {
14745
+ "text": "$service:spacesFoodOrderDetail.message",
14746
+ "style": "body",
14747
+ "color": "textSecondary",
14748
+ "collapseWhenEmpty": true
14749
+ }
14750
+ }
14751
+ }
14752
+ ]
14495
14753
  }
14754
+ },
14755
+ "modifiers": {
14756
+ "hiddenPath": "$service:spacesFoodOrderDetail.noEntity"
14496
14757
  }
14497
14758
  },
14498
14759
  {
14499
14760
  "id": "",
14500
14761
  "body": {
14501
14762
  "package": "himalaya",
14502
- "type": "Text",
14763
+ "type": "VStack",
14503
14764
  "props": {
14504
- "text": "$service:spacesFoodOrderDetail.message",
14505
- "style": "body",
14506
- "color": "textSecondary",
14507
- "collapseWhenEmpty": true
14765
+ "spacing": 12,
14766
+ "alignment": "leading",
14767
+ "children": [
14768
+ {
14769
+ "id": "himi_food_order.loading",
14770
+ "body": {
14771
+ "package": "himalaya",
14772
+ "type": "Text",
14773
+ "props": {
14774
+ "text": "Loading…",
14775
+ "style": "body",
14776
+ "color": "textSecondary"
14777
+ }
14778
+ },
14779
+ "modifiers": {
14780
+ "hiddenPath": "$service:spacesFoodOrderDetail.hideLoading"
14781
+ }
14782
+ },
14783
+ {
14784
+ "id": "himi_food_order.load_error",
14785
+ "body": {
14786
+ "package": "himalaya",
14787
+ "type": "Text",
14788
+ "props": {
14789
+ "text": "This couldn't be loaded. Check your connection and try again.",
14790
+ "style": "body",
14791
+ "color": "textSecondary"
14792
+ }
14793
+ },
14794
+ "modifiers": {
14795
+ "hiddenPath": "$service:spacesFoodOrderDetail.hideLoadError"
14796
+ }
14797
+ },
14798
+ {
14799
+ "id": "himi_food_order.not_found",
14800
+ "body": {
14801
+ "package": "himalaya",
14802
+ "type": "VStack",
14803
+ "props": {
14804
+ "spacing": 10,
14805
+ "alignment": "center",
14806
+ "children": [
14807
+ {
14808
+ "id": "",
14809
+ "body": {
14810
+ "package": "himalaya",
14811
+ "type": "Icon",
14812
+ "props": {
14813
+ "name": "bag",
14814
+ "size": 32,
14815
+ "tint": "textTertiary"
14816
+ }
14817
+ },
14818
+ "modifiers": {
14819
+ "accessibilityRole": "decorative"
14820
+ }
14821
+ },
14822
+ {
14823
+ "id": "himi_food_order.not_found_title",
14824
+ "body": {
14825
+ "package": "himalaya",
14826
+ "type": "Text",
14827
+ "props": {
14828
+ "text": "Order not found",
14829
+ "style": "title3"
14830
+ }
14831
+ }
14832
+ },
14833
+ {
14834
+ "id": "",
14835
+ "body": {
14836
+ "package": "himalaya",
14837
+ "type": "Text",
14838
+ "props": {
14839
+ "text": "This order is no longer available.",
14840
+ "style": "body",
14841
+ "color": "textSecondary"
14842
+ }
14843
+ }
14844
+ },
14845
+ {
14846
+ "id": "himi_food_order.not_found_back",
14847
+ "body": {
14848
+ "package": "himalaya",
14849
+ "type": "Button",
14850
+ "props": {
14851
+ "title": "Back to orders",
14852
+ "style": "primary",
14853
+ "fullWidth": true,
14854
+ "action": {
14855
+ "actionId": "himi.open",
14856
+ "params": {
14857
+ "screenId": "himi_food_orders"
14858
+ }
14859
+ }
14860
+ }
14861
+ }
14862
+ }
14863
+ ]
14864
+ }
14865
+ },
14866
+ "modifiers": {
14867
+ "background": {
14868
+ "token": "surfaceElevated"
14869
+ },
14870
+ "border": {
14871
+ "width": 1,
14872
+ "color": {
14873
+ "token": "border"
14874
+ }
14875
+ },
14876
+ "cornerRadius": 16,
14877
+ "padding": {
14878
+ "leading": 16,
14879
+ "trailing": 16,
14880
+ "top": 20,
14881
+ "bottom": 20
14882
+ },
14883
+ "fillMaxWidth": true,
14884
+ "hiddenPath": "$service:spacesFoodOrderDetail.hideNotFound"
14885
+ }
14886
+ }
14887
+ ]
14508
14888
  }
14509
14889
  }
14510
14890
  }