@wix/himalaya-cli 0.1494.0 → 0.1495.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 (79) hide show
  1. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/dev-server/src/builder.d.ts +3 -0
  2. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/sdk/live-activity/src/index.d.ts +4 -0
  3. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/ts/src/schema.d.ts +2 -0
  4. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk/ecom/src/extensions.d.ts +16 -0
  5. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk/stores-v1/src/display.d.ts +24 -0
  6. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/live-activity.mjs +3 -1
  7. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/sdui.mjs +1 -1
  8. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/wix-ecom.mjs +14 -0
  9. package/dist/cli.mjs +3584 -2540
  10. package/dist/preview-assets.generated.bin +0 -0
  11. package/guides/himi-json-output.md +46 -4
  12. package/guides/iap-products.md +68 -9
  13. package/guides/one-app-to-himi-app.md +80 -5
  14. package/guides/sdk-reference.json +11 -256
  15. package/guides/widgets.md +5 -3
  16. package/package.json +2 -2
  17. package/templates/beauty-salon/dev/index.ts +2590 -1034
  18. package/templates/beauty-salon/himalaya.content.json +1 -1
  19. package/templates/beauty-salon/tier5-src/_shared/himi-store-collection.ts +6 -3
  20. package/templates/beauty-salon/tier5-src/_shared/himi-store-saved.ts +7 -1
  21. package/templates/beauty-salon/tier5-src/himi-branded-lite-cart/index.ts +256 -19
  22. package/templates/beauty-salon/tier5-src/himi-store-product/index.ts +196 -34
  23. package/templates/beauty-salon/tier5-src/himi-store-saved/index.ts +21 -5
  24. package/templates/beauty-salon/tier5-src/himi-store-shop/index.ts +14 -2
  25. package/templates/beauty-salon/tokens.json +15 -0
  26. package/templates/branded-lite/dev/index.ts +2696 -1140
  27. package/templates/branded-lite/himalaya.content.json +1 -1
  28. package/templates/branded-lite/tier5-src/_shared/himi-store-collection.ts +6 -3
  29. package/templates/branded-lite/tier5-src/_shared/himi-store-saved.ts +7 -1
  30. package/templates/branded-lite/tier5-src/himi-branded-lite-cart/index.ts +256 -19
  31. package/templates/branded-lite/tier5-src/himi-store-product/index.ts +196 -34
  32. package/templates/branded-lite/tier5-src/himi-store-saved/index.ts +21 -5
  33. package/templates/branded-lite/tier5-src/himi-store-shop/index.ts +14 -2
  34. package/templates/branded-lite/tokens.json +8 -0
  35. package/templates/community-club/dev/index.ts +1 -1
  36. package/templates/community-club/tier5-src/_shared/himi-store-saved.ts +7 -1
  37. package/templates/community-club/tokens.json +15 -0
  38. package/templates/events-meetups/dev/index.ts +1 -1
  39. package/templates/events-meetups/tier5-src/_shared/himi-store-saved.ts +7 -1
  40. package/templates/events-meetups/tokens.json +15 -0
  41. package/templates/gym-fitness/dev/index.ts +2695 -1139
  42. package/templates/gym-fitness/himalaya.content.json +1 -1
  43. package/templates/gym-fitness/tier5-src/_shared/himi-store-collection.ts +6 -3
  44. package/templates/gym-fitness/tier5-src/_shared/himi-store-saved.ts +7 -1
  45. package/templates/gym-fitness/tier5-src/himi-branded-lite-cart/index.ts +256 -19
  46. package/templates/gym-fitness/tier5-src/himi-store-product/index.ts +196 -34
  47. package/templates/gym-fitness/tier5-src/himi-store-saved/index.ts +21 -5
  48. package/templates/gym-fitness/tier5-src/himi-store-shop/index.ts +14 -2
  49. package/templates/gym-fitness/tokens.json +15 -0
  50. package/templates/nonprofit-cause/dev/index.ts +1 -1
  51. package/templates/nonprofit-cause/tier5-src/_shared/himi-store-saved.ts +7 -1
  52. package/templates/nonprofit-cause/tokens.json +15 -0
  53. package/templates/podcast-creator/dev/index.ts +1 -1
  54. package/templates/podcast-creator/tier5-src/_shared/himi-store-saved.ts +7 -1
  55. package/templates/podcast-creator/tokens.json +15 -0
  56. package/templates/portfolio-creative/dev/index.ts +2569 -1013
  57. package/templates/portfolio-creative/himalaya.content.json +1 -1
  58. package/templates/portfolio-creative/tier5-src/_shared/himi-store-collection.ts +6 -3
  59. package/templates/portfolio-creative/tier5-src/_shared/himi-store-saved.ts +7 -1
  60. package/templates/portfolio-creative/tier5-src/himi-branded-lite-cart/index.ts +256 -19
  61. package/templates/portfolio-creative/tier5-src/himi-store-product/index.ts +196 -34
  62. package/templates/portfolio-creative/tier5-src/himi-store-saved/index.ts +21 -5
  63. package/templates/portfolio-creative/tier5-src/himi-store-shop/index.ts +14 -2
  64. package/templates/portfolio-creative/tokens.json +15 -0
  65. package/templates/restaurant/dev/index.ts +1 -1
  66. package/templates/restaurant/tier5-src/_shared/himi-store-saved.ts +7 -1
  67. package/templates/restaurant/tokens.json +15 -0
  68. package/templates/retail-store/dev/index.ts +2541 -985
  69. package/templates/retail-store/himalaya.content.json +1 -1
  70. package/templates/retail-store/tier5-src/_shared/himi-store-collection.ts +6 -3
  71. package/templates/retail-store/tier5-src/_shared/himi-store-saved.ts +7 -1
  72. package/templates/retail-store/tier5-src/himi-branded-lite-cart/index.ts +256 -19
  73. package/templates/retail-store/tier5-src/himi-store-product/index.ts +196 -34
  74. package/templates/retail-store/tier5-src/himi-store-saved/index.ts +21 -5
  75. package/templates/retail-store/tier5-src/himi-store-shop/index.ts +14 -2
  76. package/templates/retail-store/tokens.json +15 -0
  77. package/templates/yoga-studio/dev/index.ts +1 -1
  78. package/templates/yoga-studio/tier5-src/_shared/himi-store-saved.ts +7 -1
  79. package/templates/yoga-studio/tokens.json +15 -0
@@ -629,7 +629,7 @@ const SCREENS = runtimeSetting({
629
629
  "package": "himalaya",
630
630
  "type": "Text",
631
631
  "props": {
632
- "text": "Products you saved",
632
+ "text": "Wishlist",
633
633
  "style": "bodyEmphasis"
634
634
  }
635
635
  }
@@ -7490,9 +7490,9 @@ const SCREENS = runtimeSetting({
7490
7490
  "package": "himalaya",
7491
7491
  "type": "Button",
7492
7492
  "props": {
7493
- "title": "Saved products",
7493
+ "title": "Wishlist",
7494
7494
  "style": "plain",
7495
- "leadingIcon": "bookmark",
7495
+ "leadingIcon": "heart",
7496
7496
  "fullWidth": false,
7497
7497
  "action": {
7498
7498
  "actionId": "himi.open",
@@ -10043,54 +10043,213 @@ const SCREENS = runtimeSetting({
10043
10043
  "package": "himalaya",
10044
10044
  "type": "Text",
10045
10045
  "props": {
10046
- "text": "Saved products",
10046
+ "text": "Wishlist",
10047
10047
  "style": "title1"
10048
10048
  }
10049
10049
  }
10050
10050
  },
10051
- {
10052
- "id": "",
10053
- "body": {
10054
- "package": "himalaya",
10055
- "type": "Text",
10056
- "props": {
10057
- "text": "Saved on this device. Open a product for its latest price and availability.",
10058
- "style": "footnote",
10059
- "color": "textSecondary"
10060
- }
10061
- }
10062
- },
10063
10051
  {
10064
10052
  "id": "himi_saved_products.skeleton",
10065
10053
  "body": {
10066
10054
  "package": "himalaya",
10067
- "type": "Skeleton",
10055
+ "type": "Grid",
10068
10056
  "props": {
10069
- "height": 168,
10070
- "cornerRadius": 8
10057
+ "columns": 2,
10058
+ "spacing": 14,
10059
+ "items": [
10060
+ {
10061
+ "id": "",
10062
+ "body": {
10063
+ "package": "himalaya",
10064
+ "type": "VStack",
10065
+ "props": {
10066
+ "spacing": 8,
10067
+ "children": [
10068
+ {
10069
+ "id": "himi_saved_products.skeleton_image",
10070
+ "body": {
10071
+ "package": "himalaya",
10072
+ "type": "Skeleton",
10073
+ "props": {
10074
+ "height": 168,
10075
+ "cornerRadius": 8
10076
+ }
10077
+ },
10078
+ "modifiers": {
10079
+ "height": 168,
10080
+ "background": {
10081
+ "token": "surfaceSecondary"
10082
+ },
10083
+ "cornerRadius": 8,
10084
+ "accessibilityRole": "decorative"
10085
+ }
10086
+ },
10087
+ {
10088
+ "id": "himi_saved_products.skeleton_name",
10089
+ "body": {
10090
+ "package": "himalaya",
10091
+ "type": "Skeleton",
10092
+ "props": {
10093
+ "height": 14,
10094
+ "cornerRadius": 8
10095
+ }
10096
+ },
10097
+ "modifiers": {
10098
+ "height": 14,
10099
+ "background": {
10100
+ "token": "surfaceSecondary"
10101
+ },
10102
+ "cornerRadius": 8,
10103
+ "accessibilityRole": "decorative"
10104
+ }
10105
+ },
10106
+ {
10107
+ "id": "himi_saved_products.skeleton_price",
10108
+ "body": {
10109
+ "package": "himalaya",
10110
+ "type": "Skeleton",
10111
+ "props": {
10112
+ "height": 12,
10113
+ "cornerRadius": 8
10114
+ }
10115
+ },
10116
+ "modifiers": {
10117
+ "height": 12,
10118
+ "background": {
10119
+ "token": "surfaceSecondary"
10120
+ },
10121
+ "cornerRadius": 8,
10122
+ "accessibilityRole": "decorative"
10123
+ }
10124
+ }
10125
+ ]
10126
+ }
10127
+ },
10128
+ "modifiers": {
10129
+ "background": {
10130
+ "token": "surfaceSecondary"
10131
+ },
10132
+ "border": {
10133
+ "width": 1,
10134
+ "color": {
10135
+ "token": "border"
10136
+ }
10137
+ },
10138
+ "cornerRadius": 4,
10139
+ "padding": {
10140
+ "leading": 8,
10141
+ "trailing": 8,
10142
+ "top": 8,
10143
+ "bottom": 8
10144
+ }
10145
+ }
10146
+ },
10147
+ {
10148
+ "id": "",
10149
+ "body": {
10150
+ "package": "himalaya",
10151
+ "type": "VStack",
10152
+ "props": {
10153
+ "spacing": 8,
10154
+ "children": [
10155
+ {
10156
+ "id": "himi_saved_products.skeleton_image",
10157
+ "body": {
10158
+ "package": "himalaya",
10159
+ "type": "Skeleton",
10160
+ "props": {
10161
+ "height": 168,
10162
+ "cornerRadius": 8
10163
+ }
10164
+ },
10165
+ "modifiers": {
10166
+ "height": 168,
10167
+ "background": {
10168
+ "token": "surfaceSecondary"
10169
+ },
10170
+ "cornerRadius": 8,
10171
+ "accessibilityRole": "decorative"
10172
+ }
10173
+ },
10174
+ {
10175
+ "id": "himi_saved_products.skeleton_name",
10176
+ "body": {
10177
+ "package": "himalaya",
10178
+ "type": "Skeleton",
10179
+ "props": {
10180
+ "height": 14,
10181
+ "cornerRadius": 8
10182
+ }
10183
+ },
10184
+ "modifiers": {
10185
+ "height": 14,
10186
+ "background": {
10187
+ "token": "surfaceSecondary"
10188
+ },
10189
+ "cornerRadius": 8,
10190
+ "accessibilityRole": "decorative"
10191
+ }
10192
+ },
10193
+ {
10194
+ "id": "himi_saved_products.skeleton_price",
10195
+ "body": {
10196
+ "package": "himalaya",
10197
+ "type": "Skeleton",
10198
+ "props": {
10199
+ "height": 12,
10200
+ "cornerRadius": 8
10201
+ }
10202
+ },
10203
+ "modifiers": {
10204
+ "height": 12,
10205
+ "background": {
10206
+ "token": "surfaceSecondary"
10207
+ },
10208
+ "cornerRadius": 8,
10209
+ "accessibilityRole": "decorative"
10210
+ }
10211
+ }
10212
+ ]
10213
+ }
10214
+ },
10215
+ "modifiers": {
10216
+ "background": {
10217
+ "token": "surfaceSecondary"
10218
+ },
10219
+ "border": {
10220
+ "width": 1,
10221
+ "color": {
10222
+ "token": "border"
10223
+ }
10224
+ },
10225
+ "cornerRadius": 4,
10226
+ "padding": {
10227
+ "leading": 8,
10228
+ "trailing": 8,
10229
+ "top": 8,
10230
+ "bottom": 8
10231
+ }
10232
+ }
10233
+ }
10234
+ ]
10071
10235
  }
10072
10236
  },
10073
10237
  "modifiers": {
10074
- "height": 168,
10075
- "background": {
10076
- "token": "surfaceSecondary"
10077
- },
10078
- "cornerRadius": 8,
10079
- "accessibilityRole": "decorative",
10080
10238
  "hiddenPath": "$service:himiStoreSaved.notLoading"
10081
10239
  }
10082
10240
  },
10083
10241
  {
10084
- "id": "",
10242
+ "id": "himi_saved_products.error",
10085
10243
  "body": {
10086
10244
  "package": "himalaya",
10087
- "type": "Text",
10245
+ "type": "Banner",
10088
10246
  "props": {
10089
- "text": "$service:himiStoreSaved.error",
10090
- "style": "footnote",
10091
- "color": "danger",
10092
- "collapseWhenEmpty": true
10247
+ "title": "$service:himiStoreSaved.error",
10248
+ "severity": "danger"
10093
10249
  }
10250
+ },
10251
+ "modifiers": {
10252
+ "hiddenPath": "$service:himiStoreSaved.notErrored"
10094
10253
  }
10095
10254
  },
10096
10255
  {
@@ -10197,81 +10356,282 @@ const SCREENS = runtimeSetting({
10197
10356
  "id": "himi_saved_products.list",
10198
10357
  "body": {
10199
10358
  "package": "himalaya",
10200
- "type": "LazyList",
10359
+ "type": "Grid",
10201
10360
  "props": {
10202
- "spacing": 16,
10361
+ "columns": 2,
10362
+ "columnsMedium": 3,
10363
+ "columnsExpanded": 4,
10364
+ "spacing": 14,
10203
10365
  "itemsPath": "$service:himiStoreSaved.rows",
10204
10366
  "items": [
10205
10367
  {
10206
- "id": "",
10368
+ "id": "himi_saved_products.row",
10207
10369
  "body": {
10208
10370
  "package": "himalaya",
10209
10371
  "type": "VStack",
10210
10372
  "props": {
10211
10373
  "spacing": 8,
10374
+ "alignment": "leading",
10212
10375
  "children": [
10213
10376
  {
10214
- "id": "himi_saved_products.row",
10377
+ "id": "",
10215
10378
  "body": {
10216
10379
  "package": "himalaya",
10217
- "type": "VStack",
10380
+ "type": "Image",
10218
10381
  "props": {
10219
- "spacing": 9,
10220
- "alignment": "leading",
10382
+ "url": "$item.image",
10383
+ "fillWidth": true,
10384
+ "aspectRatio": 0.75,
10385
+ "contentMode": "fill",
10386
+ "shape": "rect",
10387
+ "contentDescription": "$item.name"
10388
+ }
10389
+ },
10390
+ "modifiers": {
10391
+ "fillMaxWidth": true,
10392
+ "aspectRatio": 0.75,
10393
+ "onTap": {
10394
+ "actionId": "himi.open",
10395
+ "params": {
10396
+ "screenId": "himi_product",
10397
+ "id": "$item.id"
10398
+ }
10399
+ },
10400
+ "pressFeedback": "highlight",
10401
+ "haptic": "light",
10402
+ "hiddenPath": "$item.noImage"
10403
+ }
10404
+ },
10405
+ {
10406
+ "id": "",
10407
+ "body": {
10408
+ "package": "himalaya",
10409
+ "type": "ZStack",
10410
+ "props": {
10411
+ "alignment": "center",
10221
10412
  "children": [
10222
10413
  {
10223
10414
  "id": "",
10224
10415
  "body": {
10225
10416
  "package": "himalaya",
10226
- "type": "Image",
10417
+ "type": "Icon",
10227
10418
  "props": {
10228
- "url": "$item.image",
10229
- "fillWidth": true,
10230
- "height": 168,
10231
- "contentMode": "fill",
10232
- "contentDescription": "$item.name"
10419
+ "name": "photo",
10420
+ "size": 24,
10421
+ "tint": "textSecondary"
10233
10422
  }
10234
10423
  },
10235
10424
  "modifiers": {
10236
- "cornerRadius": 8,
10237
- "fillMaxWidth": true,
10238
- "hiddenPath": "$item.noImage"
10425
+ "accessibilityRole": "decorative"
10239
10426
  }
10240
- },
10427
+ }
10428
+ ]
10429
+ }
10430
+ },
10431
+ "modifiers": {
10432
+ "fillMaxWidth": true,
10433
+ "aspectRatio": 0.75,
10434
+ "background": {
10435
+ "token": "surfaceTertiary"
10436
+ },
10437
+ "onTap": {
10438
+ "actionId": "himi.open",
10439
+ "params": {
10440
+ "screenId": "himi_product",
10441
+ "id": "$item.id"
10442
+ }
10443
+ },
10444
+ "accessibilityLabel": "$item.name",
10445
+ "hiddenPath": "$item.hasImage"
10446
+ }
10447
+ },
10448
+ {
10449
+ "id": "himi_saved_products.tags",
10450
+ "body": {
10451
+ "package": "himalaya",
10452
+ "type": "HStack",
10453
+ "props": {
10454
+ "spacing": 8,
10455
+ "children": [
10241
10456
  {
10242
- "id": "himi_saved_products.row.monogram",
10457
+ "id": "",
10243
10458
  "body": {
10244
10459
  "package": "himalaya",
10245
- "type": "ZStack",
10460
+ "type": "Text",
10246
10461
  "props": {
10247
- "alignment": "center",
10462
+ "text": "On sale",
10463
+ "style": "caption",
10464
+ "color": "textPrimary"
10465
+ }
10466
+ },
10467
+ "modifiers": {
10468
+ "background": {
10469
+ "token": "surfaceTertiary"
10470
+ },
10471
+ "padding": {
10472
+ "leading": 8,
10473
+ "trailing": 8,
10474
+ "top": 4,
10475
+ "bottom": 4
10476
+ },
10477
+ "hiddenPath": "$item.notOnSale"
10478
+ }
10479
+ },
10480
+ {
10481
+ "id": "himi_saved_products.swatches",
10482
+ "body": {
10483
+ "package": "himalaya",
10484
+ "type": "HStack",
10485
+ "props": {
10486
+ "spacing": 5,
10248
10487
  "children": [
10249
10488
  {
10250
- "id": "",
10489
+ "id": "himi_saved_products.swatch_1",
10251
10490
  "body": {
10252
10491
  "package": "himalaya",
10253
10492
  "type": "Text",
10254
10493
  "props": {
10255
- "text": "$item.initial",
10256
- "style": "display",
10257
- "color": "textOnAccent",
10258
- "maxLines": 1
10494
+ "text": "",
10495
+ "style": "caption"
10496
+ }
10497
+ },
10498
+ "modifiers": {
10499
+ "width": 10,
10500
+ "height": 10,
10501
+ "cornerRadius": 5,
10502
+ "backgroundColorPath": "$item.swatch1",
10503
+ "border": {
10504
+ "width": 1,
10505
+ "color": {
10506
+ "token": "border"
10507
+ }
10508
+ },
10509
+ "accessibilityHidden": true,
10510
+ "hiddenPath": "$item.noSwatch1"
10511
+ }
10512
+ },
10513
+ {
10514
+ "id": "himi_saved_products.swatch_2",
10515
+ "body": {
10516
+ "package": "himalaya",
10517
+ "type": "Text",
10518
+ "props": {
10519
+ "text": "",
10520
+ "style": "caption"
10521
+ }
10522
+ },
10523
+ "modifiers": {
10524
+ "width": 10,
10525
+ "height": 10,
10526
+ "cornerRadius": 5,
10527
+ "backgroundColorPath": "$item.swatch2",
10528
+ "border": {
10529
+ "width": 1,
10530
+ "color": {
10531
+ "token": "border"
10532
+ }
10533
+ },
10534
+ "accessibilityHidden": true,
10535
+ "hiddenPath": "$item.noSwatch2"
10536
+ }
10537
+ },
10538
+ {
10539
+ "id": "himi_saved_products.swatch_3",
10540
+ "body": {
10541
+ "package": "himalaya",
10542
+ "type": "Text",
10543
+ "props": {
10544
+ "text": "",
10545
+ "style": "caption"
10546
+ }
10547
+ },
10548
+ "modifiers": {
10549
+ "width": 10,
10550
+ "height": 10,
10551
+ "cornerRadius": 5,
10552
+ "backgroundColorPath": "$item.swatch3",
10553
+ "border": {
10554
+ "width": 1,
10555
+ "color": {
10556
+ "token": "border"
10557
+ }
10558
+ },
10559
+ "accessibilityHidden": true,
10560
+ "hiddenPath": "$item.noSwatch3"
10561
+ }
10562
+ },
10563
+ {
10564
+ "id": "himi_saved_products.swatch_4",
10565
+ "body": {
10566
+ "package": "himalaya",
10567
+ "type": "Text",
10568
+ "props": {
10569
+ "text": "",
10570
+ "style": "caption"
10571
+ }
10572
+ },
10573
+ "modifiers": {
10574
+ "width": 10,
10575
+ "height": 10,
10576
+ "cornerRadius": 5,
10577
+ "backgroundColorPath": "$item.swatch4",
10578
+ "border": {
10579
+ "width": 1,
10580
+ "color": {
10581
+ "token": "border"
10582
+ }
10583
+ },
10584
+ "accessibilityHidden": true,
10585
+ "hiddenPath": "$item.noSwatch4"
10586
+ }
10587
+ },
10588
+ {
10589
+ "id": "himi_saved_products.swatch_5",
10590
+ "body": {
10591
+ "package": "himalaya",
10592
+ "type": "Text",
10593
+ "props": {
10594
+ "text": "",
10595
+ "style": "caption"
10259
10596
  }
10597
+ },
10598
+ "modifiers": {
10599
+ "width": 10,
10600
+ "height": 10,
10601
+ "cornerRadius": 5,
10602
+ "backgroundColorPath": "$item.swatch5",
10603
+ "border": {
10604
+ "width": 1,
10605
+ "color": {
10606
+ "token": "border"
10607
+ }
10608
+ },
10609
+ "accessibilityHidden": true,
10610
+ "hiddenPath": "$item.noSwatch5"
10260
10611
  }
10261
10612
  }
10262
10613
  ]
10263
10614
  }
10264
10615
  },
10265
10616
  "modifiers": {
10266
- "fillMaxWidth": true,
10267
- "height": 168,
10268
- "background": {
10269
- "token": "accentPrimary"
10270
- },
10271
- "cornerRadius": 8,
10272
- "hiddenPath": "$item.hasImage"
10617
+ "hiddenPath": "$item.noSwatches"
10273
10618
  }
10274
- },
10619
+ }
10620
+ ]
10621
+ }
10622
+ },
10623
+ "modifiers": {
10624
+ "hiddenPath": "$item.noTagRow"
10625
+ }
10626
+ },
10627
+ {
10628
+ "id": "",
10629
+ "body": {
10630
+ "package": "himalaya",
10631
+ "type": "HStack",
10632
+ "props": {
10633
+ "spacing": 6,
10634
+ "children": [
10275
10635
  {
10276
10636
  "id": "",
10277
10637
  "body": {
@@ -10279,9 +10639,42 @@ const SCREENS = runtimeSetting({
10279
10639
  "type": "Text",
10280
10640
  "props": {
10281
10641
  "text": "$item.name",
10282
- "style": "bodyEmphasis",
10642
+ "style": "footnoteRegular",
10643
+ "color": "textPrimary",
10283
10644
  "maxLines": 2
10284
10645
  }
10646
+ },
10647
+ "modifiers": {
10648
+ "weight": 1
10649
+ }
10650
+ }
10651
+ ]
10652
+ }
10653
+ }
10654
+ },
10655
+ {
10656
+ "id": "",
10657
+ "body": {
10658
+ "package": "himalaya",
10659
+ "type": "HStack",
10660
+ "props": {
10661
+ "spacing": 6,
10662
+ "children": [
10663
+ {
10664
+ "id": "",
10665
+ "body": {
10666
+ "package": "himalaya",
10667
+ "type": "Text",
10668
+ "props": {
10669
+ "text": "$item.wasPrice",
10670
+ "style": "caption",
10671
+ "color": "textSecondary",
10672
+ "maxLines": 1,
10673
+ "decoration": "strikethrough"
10674
+ }
10675
+ },
10676
+ "modifiers": {
10677
+ "hiddenPath": "$item.notOnSale"
10285
10678
  }
10286
10679
  },
10287
10680
  {
@@ -10291,70 +10684,100 @@ const SCREENS = runtimeSetting({
10291
10684
  "type": "Text",
10292
10685
  "props": {
10293
10686
  "text": "$item.price",
10294
- "style": "footnote",
10295
- "color": "accentPrimary",
10296
- "maxLines": 1,
10297
- "collapseWhenEmpty": true
10687
+ "style": "caption",
10688
+ "color": "danger",
10689
+ "maxLines": 1
10690
+ }
10691
+ },
10692
+ "modifiers": {
10693
+ "hiddenPath": "$item.notOnSale"
10694
+ }
10695
+ },
10696
+ {
10697
+ "id": "",
10698
+ "body": {
10699
+ "package": "himalaya",
10700
+ "type": "Text",
10701
+ "props": {
10702
+ "text": "$item.price",
10703
+ "style": "caption",
10704
+ "color": "textPrimary",
10705
+ "maxLines": 1
10706
+ }
10707
+ },
10708
+ "modifiers": {
10709
+ "hiddenPath": "$item.wasPriceEmpty"
10710
+ }
10711
+ },
10712
+ {
10713
+ "id": "",
10714
+ "body": {
10715
+ "package": "himalaya",
10716
+ "type": "Spacer",
10717
+ "props": {}
10718
+ }
10719
+ },
10720
+ {
10721
+ "id": "himi_saved_products.remove",
10722
+ "body": {
10723
+ "package": "himalaya",
10724
+ "type": "ZStack",
10725
+ "props": {
10726
+ "alignment": "center",
10727
+ "children": [
10728
+ {
10729
+ "id": "",
10730
+ "body": {
10731
+ "package": "himalaya",
10732
+ "type": "Icon",
10733
+ "props": {
10734
+ "name": "heart_fill",
10735
+ "size": 22,
10736
+ "tint": "accentPrimary"
10737
+ }
10738
+ },
10739
+ "modifiers": {
10740
+ "accessibilityRole": "decorative"
10741
+ }
10742
+ }
10743
+ ]
10298
10744
  }
10745
+ },
10746
+ "modifiers": {
10747
+ "width": 44,
10748
+ "height": 44,
10749
+ "onTap": {
10750
+ "actionId": "tier5.himiStoreSaved.remove",
10751
+ "params": {
10752
+ "id": "$item.id"
10753
+ }
10754
+ },
10755
+ "accessibilityRole": "button",
10756
+ "accessibilityLabel": "Remove from wishlist",
10757
+ "haptic": "light"
10299
10758
  }
10300
10759
  }
10301
10760
  ]
10302
10761
  }
10303
- },
10304
- "modifiers": {
10305
- "background": {
10306
- "token": "surfaceElevated"
10307
- },
10308
- "border": {
10309
- "width": 1,
10310
- "color": {
10311
- "token": "border"
10312
- }
10313
- },
10314
- "cornerRadius": 8,
10315
- "padding": {
10316
- "leading": 12,
10317
- "trailing": 12,
10318
- "top": 12,
10319
- "bottom": 12
10320
- },
10321
- "onTap": {
10322
- "actionId": "himi.open",
10323
- "params": {
10324
- "screenId": "$item.detailScreenId",
10325
- "id": "$item.id"
10326
- }
10327
- },
10328
- "pressFeedback": "scale",
10329
- "haptic": "light",
10330
- "accessibilityLabel": "$item.name"
10331
- }
10332
- },
10333
- {
10334
- "id": "himi_saved_products.remove",
10335
- "body": {
10336
- "package": "himalaya",
10337
- "type": "Button",
10338
- "props": {
10339
- "title": "Remove",
10340
- "style": "secondary",
10341
- "action": {
10342
- "actionId": "tier5.himiStoreSaved.remove",
10343
- "params": {
10344
- "id": "$item.id"
10345
- }
10346
- }
10347
- }
10348
10762
  }
10349
10763
  }
10350
10764
  ]
10351
10765
  }
10352
- }
10353
- }
10354
- ],
10355
- "onPullToRefresh": {
10356
- "actionId": "tier5.himiStoreSaved.load"
10357
- }
10766
+ },
10767
+ "modifiers": {
10768
+ "onTap": {
10769
+ "actionId": "himi.open",
10770
+ "params": {
10771
+ "screenId": "himi_product",
10772
+ "id": "$item.id"
10773
+ }
10774
+ },
10775
+ "pressFeedback": "highlight",
10776
+ "haptic": "light",
10777
+ "accessibilityLabel": "$item.name"
10778
+ }
10779
+ }
10780
+ ]
10358
10781
  }
10359
10782
  },
10360
10783
  "modifiers": {
@@ -10362,27 +10785,59 @@ const SCREENS = runtimeSetting({
10362
10785
  }
10363
10786
  },
10364
10787
  {
10365
- "id": "",
10788
+ "id": "himi_saved_products.empty",
10366
10789
  "body": {
10367
10790
  "package": "himalaya",
10368
10791
  "type": "VStack",
10369
10792
  "props": {
10370
- "spacing": 12,
10793
+ "spacing": 10,
10371
10794
  "alignment": "center",
10372
10795
  "children": [
10373
10796
  {
10374
10797
  "id": "",
10375
10798
  "body": {
10376
10799
  "package": "himalaya",
10377
- "type": "Icon",
10800
+ "type": "ZStack",
10378
10801
  "props": {
10379
- "name": "bookmark",
10380
- "size": 34,
10381
- "tint": "textTertiary"
10802
+ "alignment": "center",
10803
+ "children": [
10804
+ {
10805
+ "id": "",
10806
+ "body": {
10807
+ "package": "himalaya",
10808
+ "type": "Icon",
10809
+ "props": {
10810
+ "name": "heart",
10811
+ "size": 24,
10812
+ "tint": "textSecondary"
10813
+ }
10814
+ },
10815
+ "modifiers": {
10816
+ "accessibilityRole": "decorative"
10817
+ }
10818
+ }
10819
+ ]
10382
10820
  }
10383
10821
  },
10384
10822
  "modifiers": {
10385
- "accessibilityRole": "decorative"
10823
+ "width": 56,
10824
+ "height": 56,
10825
+ "background": {
10826
+ "token": "surfaceTertiary"
10827
+ },
10828
+ "cornerRadius": 28
10829
+ }
10830
+ },
10831
+ {
10832
+ "id": "",
10833
+ "body": {
10834
+ "package": "himalaya",
10835
+ "type": "Text",
10836
+ "props": {
10837
+ "text": "Your wishlist is empty",
10838
+ "style": "title3",
10839
+ "textAlign": "center"
10840
+ }
10386
10841
  }
10387
10842
  },
10388
10843
  {
@@ -10392,14 +10847,14 @@ const SCREENS = runtimeSetting({
10392
10847
  "type": "Text",
10393
10848
  "props": {
10394
10849
  "text": "$service:himiStoreSaved.emptyText",
10395
- "style": "bodyEmphasis",
10850
+ "style": "footnote",
10396
10851
  "color": "textSecondary",
10397
- "collapseWhenEmpty": true
10852
+ "textAlign": "center"
10398
10853
  }
10399
10854
  }
10400
10855
  },
10401
10856
  {
10402
- "id": "himi_saved_products.empty.cta",
10857
+ "id": "himi_saved_products.browse",
10403
10858
  "body": {
10404
10859
  "package": "himalaya",
10405
10860
  "type": "Button",
@@ -10419,16 +10874,6 @@ const SCREENS = runtimeSetting({
10419
10874
  }
10420
10875
  },
10421
10876
  "modifiers": {
10422
- "padding": {
10423
- "leading": 24,
10424
- "trailing": 24,
10425
- "top": 24,
10426
- "bottom": 24
10427
- },
10428
- "transition": {
10429
- "enter": "fade",
10430
- "exit": "fade"
10431
- },
10432
10877
  "hiddenPath": "$service:himiStoreSaved.noEmpty"
10433
10878
  }
10434
10879
  }
@@ -11424,20 +11869,8 @@ const SCREENS = runtimeSetting({
11424
11869
  "package": "himalaya",
11425
11870
  "type": "Text",
11426
11871
  "props": {
11427
- "text": "Cart",
11428
- "style": "title1"
11429
- }
11430
- }
11431
- },
11432
- {
11433
- "id": "",
11434
- "body": {
11435
- "package": "himalaya",
11436
- "type": "Text",
11437
- "props": {
11438
- "text": "Review your items before you check out.",
11439
- "style": "body",
11440
- "color": "textSecondary"
11872
+ "text": "Shopping cart",
11873
+ "style": "pageTitle"
11441
11874
  }
11442
11875
  }
11443
11876
  },
@@ -11450,6 +11883,20 @@ const SCREENS = runtimeSetting({
11450
11883
  "spacing": 8,
11451
11884
  "alignment": "leading",
11452
11885
  "children": [
11886
+ {
11887
+ "id": "",
11888
+ "body": {
11889
+ "package": "himalaya",
11890
+ "type": "Text",
11891
+ "props": {
11892
+ "text": "You are offline",
11893
+ "style": "bodyEmphasis"
11894
+ }
11895
+ },
11896
+ "modifiers": {
11897
+ "hiddenPath": "$service:himiStoreCart.noOfflineError"
11898
+ }
11899
+ },
11453
11900
  {
11454
11901
  "id": "",
11455
11902
  "body": {
@@ -11459,6 +11906,9 @@ const SCREENS = runtimeSetting({
11459
11906
  "text": "Your cart could not be loaded.",
11460
11907
  "style": "bodyEmphasis"
11461
11908
  }
11909
+ },
11910
+ "modifiers": {
11911
+ "hiddenPath": "$service:himiStoreCart.noServerError"
11462
11912
  }
11463
11913
  },
11464
11914
  {
@@ -11511,123 +11961,149 @@ const SCREENS = runtimeSetting({
11511
11961
  }
11512
11962
  },
11513
11963
  {
11514
- "id": "",
11964
+ "id": "himi_cart.list",
11515
11965
  "body": {
11516
11966
  "package": "himalaya",
11517
- "type": "VStack",
11967
+ "type": "Grid",
11518
11968
  "props": {
11519
- "spacing": 12,
11520
- "children": [
11969
+ "columns": 1,
11970
+ "spacing": 0,
11971
+ "itemsPath": "$service:himiStoreCart.items",
11972
+ "items": [
11521
11973
  {
11522
- "id": "himi_cart.list",
11974
+ "id": "himi_cart.row",
11523
11975
  "body": {
11524
11976
  "package": "himalaya",
11525
- "type": "Grid",
11977
+ "type": "VStack",
11526
11978
  "props": {
11527
- "columns": 1,
11528
- "spacing": 10,
11529
- "itemsPath": "$service:himiStoreCart.items",
11530
- "items": [
11979
+ "spacing": 0,
11980
+ "alignment": "leading",
11981
+ "children": [
11531
11982
  {
11532
- "id": "himi_cart.row",
11983
+ "id": "",
11533
11984
  "body": {
11534
11985
  "package": "himalaya",
11535
- "type": "VStack",
11986
+ "type": "Divider",
11987
+ "props": {}
11988
+ }
11989
+ },
11990
+ {
11991
+ "id": "himi_cart.row_content",
11992
+ "body": {
11993
+ "package": "himalaya",
11994
+ "type": "HStack",
11536
11995
  "props": {
11537
- "spacing": 8,
11538
- "alignment": "leading",
11996
+ "spacing": 12,
11539
11997
  "children": [
11998
+ {
11999
+ "id": "himi_cart.thumbnail",
12000
+ "body": {
12001
+ "package": "himalaya",
12002
+ "type": "Image",
12003
+ "props": {
12004
+ "url": "$item.image",
12005
+ "width": 112,
12006
+ "height": 144,
12007
+ "contentMode": "fit",
12008
+ "shape": "rect",
12009
+ "contentDescription": "$item.name"
12010
+ }
12011
+ },
12012
+ "modifiers": {
12013
+ "onTap": {
12014
+ "actionId": "himi.open",
12015
+ "params": {
12016
+ "screenId": "himi_product",
12017
+ "id": "$item.catalogItemId"
12018
+ }
12019
+ },
12020
+ "hiddenPath": "$item.noImage"
12021
+ }
12022
+ },
11540
12023
  {
11541
12024
  "id": "",
11542
12025
  "body": {
11543
12026
  "package": "himalaya",
11544
- "type": "HStack",
12027
+ "type": "ZStack",
11545
12028
  "props": {
11546
- "spacing": 10,
12029
+ "alignment": "center",
11547
12030
  "children": [
11548
12031
  {
11549
12032
  "id": "",
11550
12033
  "body": {
11551
12034
  "package": "himalaya",
11552
- "type": "Image",
11553
- "props": {
11554
- "url": "$item.image",
11555
- "width": 62,
11556
- "height": 62,
11557
- "contentMode": "fill",
11558
- "contentDescription": "$item.title"
11559
- }
11560
- },
11561
- "modifiers": {
11562
- "cornerRadius": 8,
11563
- "hiddenPath": "$item.noImage"
11564
- }
11565
- },
11566
- {
11567
- "id": "himi_cart.row_media.initial",
11568
- "body": {
11569
- "package": "himalaya",
11570
- "type": "ZStack",
12035
+ "type": "Text",
11571
12036
  "props": {
11572
- "alignment": "center",
11573
- "children": [
11574
- {
11575
- "id": "",
11576
- "body": {
11577
- "package": "himalaya",
11578
- "type": "Text",
11579
- "props": {
11580
- "text": "$item.initial",
11581
- "style": "title2",
11582
- "color": "textOnAccent",
11583
- "maxLines": 1,
11584
- "collapseWhenEmpty": true
11585
- }
11586
- }
11587
- }
11588
- ]
12037
+ "text": "$item.initial",
12038
+ "style": "title2",
12039
+ "color": "textOnAccent"
11589
12040
  }
11590
- },
11591
- "modifiers": {
11592
- "width": 62,
11593
- "height": 62,
11594
- "background": {
11595
- "token": "accentPrimary"
11596
- },
11597
- "cornerRadius": 16,
11598
- "hiddenPath": "$item.hasImage"
11599
12041
  }
11600
- },
12042
+ }
12043
+ ]
12044
+ }
12045
+ },
12046
+ "modifiers": {
12047
+ "width": 112,
12048
+ "height": 144,
12049
+ "background": {
12050
+ "token": "accentPrimary"
12051
+ },
12052
+ "onTap": {
12053
+ "actionId": "himi.open",
12054
+ "params": {
12055
+ "screenId": "himi_product",
12056
+ "id": "$item.catalogItemId"
12057
+ }
12058
+ },
12059
+ "accessibilityLabel": "$item.name",
12060
+ "hiddenPath": "$item.hasImage"
12061
+ }
12062
+ },
12063
+ {
12064
+ "id": "himi_cart.details",
12065
+ "body": {
12066
+ "package": "himalaya",
12067
+ "type": "VStack",
12068
+ "props": {
12069
+ "spacing": 4,
12070
+ "alignment": "leading",
12071
+ "children": [
11601
12072
  {
11602
- "id": "",
12073
+ "id": "himi_cart.name_price",
11603
12074
  "body": {
11604
12075
  "package": "himalaya",
11605
- "type": "VStack",
12076
+ "type": "HStack",
11606
12077
  "props": {
11607
- "spacing": 3,
11608
- "alignment": "leading",
12078
+ "spacing": 6,
11609
12079
  "children": [
11610
12080
  {
11611
- "id": "",
12081
+ "id": "himi_cart.product_title",
11612
12082
  "body": {
11613
12083
  "package": "himalaya",
11614
12084
  "type": "Text",
11615
12085
  "props": {
11616
12086
  "text": "$item.name",
11617
12087
  "style": "bodyEmphasis",
12088
+ "color": "textPrimary",
11618
12089
  "maxLines": 2
11619
12090
  }
12091
+ },
12092
+ "modifiers": {
12093
+ "weight": 1
11620
12094
  }
11621
12095
  },
11622
12096
  {
11623
- "id": "",
12097
+ "id": "himi_cart.product_price",
11624
12098
  "body": {
11625
12099
  "package": "himalaya",
11626
12100
  "type": "Text",
11627
12101
  "props": {
11628
- "text": "$item.subtitle",
11629
- "style": "footnote",
11630
- "color": "textSecondary"
12102
+ "text": "$item.total",
12103
+ "style": "bodyEmphasis",
12104
+ "color": "textPrimary",
12105
+ "maxLines": 1,
12106
+ "collapseWhenEmpty": true
11631
12107
  }
11632
12108
  }
11633
12109
  }
@@ -11639,8 +12115,14 @@ const SCREENS = runtimeSetting({
11639
12115
  "id": "",
11640
12116
  "body": {
11641
12117
  "package": "himalaya",
11642
- "type": "Spacer",
11643
- "props": {}
12118
+ "type": "Text",
12119
+ "props": {
12120
+ "text": "$item.option1",
12121
+ "style": "body",
12122
+ "color": "textSecondary",
12123
+ "maxLines": 1,
12124
+ "collapseWhenEmpty": true
12125
+ }
11644
12126
  }
11645
12127
  },
11646
12128
  {
@@ -11649,67 +12131,56 @@ const SCREENS = runtimeSetting({
11649
12131
  "package": "himalaya",
11650
12132
  "type": "Text",
11651
12133
  "props": {
11652
- "text": "$item.total",
11653
- "style": "bodyEmphasis",
12134
+ "text": "$item.option2",
12135
+ "style": "body",
12136
+ "color": "textSecondary",
12137
+ "maxLines": 1,
11654
12138
  "collapseWhenEmpty": true
11655
12139
  }
11656
12140
  }
11657
- }
11658
- ]
11659
- }
11660
- }
11661
- },
11662
- {
11663
- "id": "",
11664
- "body": {
11665
- "package": "himalaya",
11666
- "type": "HStack",
11667
- "props": {
11668
- "spacing": 10,
11669
- "children": [
12141
+ },
11670
12142
  {
11671
- "id": "himi_cart.qty_minus",
12143
+ "id": "",
11672
12144
  "body": {
11673
12145
  "package": "himalaya",
11674
- "type": "Button",
12146
+ "type": "Text",
11675
12147
  "props": {
11676
- "title": "−",
11677
- "style": "secondary",
11678
- "action": {
11679
- "actionId": "tier5.himiStoreCart.decrement",
11680
- "params": {
11681
- "id": "$item.id"
11682
- }
11683
- }
12148
+ "text": "$item.option3",
12149
+ "style": "body",
12150
+ "color": "textSecondary",
12151
+ "maxLines": 1,
12152
+ "collapseWhenEmpty": true
11684
12153
  }
11685
12154
  }
11686
12155
  },
11687
12156
  {
11688
- "id": "himi_cart.qty_value",
12157
+ "id": "",
11689
12158
  "body": {
11690
12159
  "package": "himalaya",
11691
12160
  "type": "Text",
11692
12161
  "props": {
11693
- "text": "$item.quantityLabel",
11694
- "style": "bodyEmphasis"
12162
+ "text": "$item.inStockMessage",
12163
+ "style": "body",
12164
+ "color": "success"
11695
12165
  }
12166
+ },
12167
+ "modifiers": {
12168
+ "hiddenPath": "$item.noInStockMessage"
11696
12169
  }
11697
12170
  },
11698
12171
  {
11699
- "id": "himi_cart.qty_plus",
12172
+ "id": "",
11700
12173
  "body": {
11701
12174
  "package": "himalaya",
11702
- "type": "Button",
12175
+ "type": "Text",
11703
12176
  "props": {
11704
- "title": "+",
11705
- "style": "secondary",
11706
- "action": {
11707
- "actionId": "tier5.himiStoreCart.increment",
11708
- "params": {
11709
- "id": "$item.id"
11710
- }
11711
- }
12177
+ "text": "$item.stockMessage",
12178
+ "style": "body",
12179
+ "color": "danger"
11712
12180
  }
12181
+ },
12182
+ "modifiers": {
12183
+ "hiddenPath": "$item.noStockMessage"
11713
12184
  }
11714
12185
  },
11715
12186
  {
@@ -11721,140 +12192,272 @@ const SCREENS = runtimeSetting({
11721
12192
  }
11722
12193
  },
11723
12194
  {
11724
- "id": "himi_cart.remove",
12195
+ "id": "himi_cart.actions",
11725
12196
  "body": {
11726
12197
  "package": "himalaya",
11727
- "type": "Button",
12198
+ "type": "HStack",
11728
12199
  "props": {
11729
- "title": "Remove",
11730
- "style": "secondary",
11731
- "action": {
11732
- "actionId": "tier5.himiStoreCart.remove",
11733
- "params": {
11734
- "id": "$item.id"
12200
+ "spacing": 0,
12201
+ "children": [
12202
+ {
12203
+ "id": "himi_cart.qty_minus",
12204
+ "body": {
12205
+ "package": "himalaya",
12206
+ "type": "ZStack",
12207
+ "props": {
12208
+ "alignment": "center",
12209
+ "children": [
12210
+ {
12211
+ "id": "",
12212
+ "body": {
12213
+ "package": "himalaya",
12214
+ "type": "Icon",
12215
+ "props": {
12216
+ "name": "minus",
12217
+ "size": 24,
12218
+ "tint": "textPrimary"
12219
+ }
12220
+ },
12221
+ "modifiers": {
12222
+ "accessibilityRole": "decorative"
12223
+ }
12224
+ }
12225
+ ]
12226
+ }
12227
+ },
12228
+ "modifiers": {
12229
+ "width": 44,
12230
+ "height": 44,
12231
+ "onTap": {
12232
+ "actionId": "tier5.himiStoreCart.decrement",
12233
+ "params": {
12234
+ "id": "$item.id"
12235
+ }
12236
+ },
12237
+ "accessibilityRole": "button",
12238
+ "accessibilityLabel": "Decrease quantity",
12239
+ "haptic": "light"
12240
+ }
12241
+ },
12242
+ {
12243
+ "id": "himi_cart.qty_value",
12244
+ "body": {
12245
+ "package": "himalaya",
12246
+ "type": "Text",
12247
+ "props": {
12248
+ "text": "$item.quantityLabel",
12249
+ "style": "body",
12250
+ "textAlign": "center"
12251
+ }
12252
+ },
12253
+ "modifiers": {
12254
+ "width": 32
12255
+ }
12256
+ },
12257
+ {
12258
+ "id": "himi_cart.qty_plus",
12259
+ "body": {
12260
+ "package": "himalaya",
12261
+ "type": "ZStack",
12262
+ "props": {
12263
+ "alignment": "center",
12264
+ "children": [
12265
+ {
12266
+ "id": "",
12267
+ "body": {
12268
+ "package": "himalaya",
12269
+ "type": "Icon",
12270
+ "props": {
12271
+ "name": "plus",
12272
+ "size": 24,
12273
+ "tint": "textPrimary"
12274
+ }
12275
+ },
12276
+ "modifiers": {
12277
+ "accessibilityRole": "decorative"
12278
+ }
12279
+ }
12280
+ ]
12281
+ }
12282
+ },
12283
+ "modifiers": {
12284
+ "width": 44,
12285
+ "height": 44,
12286
+ "onTap": {
12287
+ "actionId": "tier5.himiStoreCart.increment",
12288
+ "params": {
12289
+ "id": "$item.id"
12290
+ }
12291
+ },
12292
+ "accessibilityRole": "button",
12293
+ "accessibilityLabel": "Increase quantity",
12294
+ "haptic": "light"
12295
+ }
12296
+ },
12297
+ {
12298
+ "id": "",
12299
+ "body": {
12300
+ "package": "himalaya",
12301
+ "type": "Spacer",
12302
+ "props": {}
12303
+ }
12304
+ },
12305
+ {
12306
+ "id": "himi_cart.save_filled",
12307
+ "body": {
12308
+ "package": "himalaya",
12309
+ "type": "ZStack",
12310
+ "props": {
12311
+ "alignment": "center",
12312
+ "children": [
12313
+ {
12314
+ "id": "",
12315
+ "body": {
12316
+ "package": "himalaya",
12317
+ "type": "Icon",
12318
+ "props": {
12319
+ "name": "heart_fill",
12320
+ "size": 24,
12321
+ "tint": "textPrimary"
12322
+ }
12323
+ },
12324
+ "modifiers": {
12325
+ "accessibilityRole": "decorative"
12326
+ }
12327
+ }
12328
+ ]
12329
+ }
12330
+ },
12331
+ "modifiers": {
12332
+ "width": 44,
12333
+ "height": 44,
12334
+ "onTap": {
12335
+ "actionId": "tier5.himiStoreCart.save",
12336
+ "params": {
12337
+ "id": "$item.id"
12338
+ }
12339
+ },
12340
+ "accessibilityRole": "button",
12341
+ "accessibilityLabel": "Remove from wishlist",
12342
+ "haptic": "light",
12343
+ "hiddenPath": "$item.notSaved"
12344
+ }
12345
+ },
12346
+ {
12347
+ "id": "himi_cart.save",
12348
+ "body": {
12349
+ "package": "himalaya",
12350
+ "type": "ZStack",
12351
+ "props": {
12352
+ "alignment": "center",
12353
+ "children": [
12354
+ {
12355
+ "id": "",
12356
+ "body": {
12357
+ "package": "himalaya",
12358
+ "type": "Icon",
12359
+ "props": {
12360
+ "name": "heart",
12361
+ "size": 24,
12362
+ "tint": "textPrimary"
12363
+ }
12364
+ },
12365
+ "modifiers": {
12366
+ "accessibilityRole": "decorative"
12367
+ }
12368
+ }
12369
+ ]
12370
+ }
12371
+ },
12372
+ "modifiers": {
12373
+ "width": 44,
12374
+ "height": 44,
12375
+ "onTap": {
12376
+ "actionId": "tier5.himiStoreCart.save",
12377
+ "params": {
12378
+ "id": "$item.id"
12379
+ }
12380
+ },
12381
+ "accessibilityRole": "button",
12382
+ "accessibilityLabel": "Add to wishlist",
12383
+ "haptic": "light",
12384
+ "hiddenPath": "$item.saved"
12385
+ }
12386
+ },
12387
+ {
12388
+ "id": "himi_cart.remove",
12389
+ "body": {
12390
+ "package": "himalaya",
12391
+ "type": "ZStack",
12392
+ "props": {
12393
+ "alignment": "center",
12394
+ "children": [
12395
+ {
12396
+ "id": "",
12397
+ "body": {
12398
+ "package": "himalaya",
12399
+ "type": "Icon",
12400
+ "props": {
12401
+ "name": "trash",
12402
+ "size": 24,
12403
+ "tint": "textPrimary"
12404
+ }
12405
+ },
12406
+ "modifiers": {
12407
+ "accessibilityRole": "decorative"
12408
+ }
12409
+ }
12410
+ ]
12411
+ }
12412
+ },
12413
+ "modifiers": {
12414
+ "width": 44,
12415
+ "height": 44,
12416
+ "onTap": {
12417
+ "actionId": "tier5.himiStoreCart.remove",
12418
+ "params": {
12419
+ "id": "$item.id"
12420
+ }
12421
+ },
12422
+ "accessibilityRole": "button",
12423
+ "accessibilityLabel": "Remove from cart",
12424
+ "haptic": "light"
12425
+ }
11735
12426
  }
11736
- }
12427
+ ]
11737
12428
  }
11738
12429
  }
11739
12430
  }
11740
12431
  ]
11741
12432
  }
12433
+ },
12434
+ "modifiers": {
12435
+ "weight": 1
11742
12436
  }
11743
12437
  }
11744
12438
  ]
11745
12439
  }
11746
12440
  },
11747
12441
  "modifiers": {
11748
- "background": {
11749
- "token": "surfaceElevated"
11750
- },
11751
- "border": {
11752
- "width": 1,
11753
- "color": {
11754
- "token": "border"
11755
- }
11756
- },
11757
- "cornerRadius": 4,
11758
- "padding": {
11759
- "leading": 16,
11760
- "trailing": 16,
11761
- "top": 16,
11762
- "bottom": 16
11763
- }
12442
+ "fillMaxWidth": true
11764
12443
  }
11765
- }
11766
- ]
11767
- }
11768
- }
11769
- },
11770
- {
11771
- "id": "himi_cart.summary",
11772
- "body": {
11773
- "package": "himalaya",
11774
- "type": "VStack",
11775
- "props": {
11776
- "spacing": 8,
11777
- "alignment": "leading",
11778
- "children": [
12444
+ },
11779
12445
  {
11780
12446
  "id": "",
11781
12447
  "body": {
11782
12448
  "package": "himalaya",
11783
- "type": "HStack",
11784
- "props": {
11785
- "spacing": 8,
11786
- "children": [
11787
- {
11788
- "id": "",
11789
- "body": {
11790
- "package": "himalaya",
11791
- "type": "Text",
11792
- "props": {
11793
- "text": "Subtotal",
11794
- "style": "bodyEmphasis"
11795
- }
11796
- }
11797
- },
11798
- {
11799
- "id": "",
11800
- "body": {
11801
- "package": "himalaya",
11802
- "type": "Spacer",
11803
- "props": {}
11804
- }
11805
- },
11806
- {
11807
- "id": "",
11808
- "body": {
11809
- "package": "himalaya",
11810
- "type": "Text",
11811
- "props": {
11812
- "text": "$service:himiStoreCart.subtotal",
11813
- "style": "bodyEmphasis",
11814
- "collapseWhenEmpty": true
11815
- }
11816
- }
11817
- }
11818
- ]
11819
- }
11820
- }
11821
- },
11822
- {
11823
- "id": "himi_cart.checkout",
11824
- "body": {
11825
- "package": "himalaya",
11826
- "type": "Button",
11827
- "props": {
11828
- "title": "Checkout in browser",
11829
- "style": "primary",
11830
- "fullWidth": true,
11831
- "action": {
11832
- "actionId": "tier5.himiStoreCart.checkout"
11833
- }
11834
- }
12449
+ "type": "Divider",
12450
+ "props": {}
11835
12451
  }
11836
12452
  }
11837
12453
  ]
11838
12454
  }
11839
12455
  },
11840
12456
  "modifiers": {
11841
- "background": {
11842
- "token": "surfaceElevated"
11843
- },
11844
- "border": {
11845
- "width": 1,
11846
- "color": {
11847
- "token": "border"
11848
- }
11849
- },
11850
- "cornerRadius": 4,
11851
12457
  "padding": {
11852
- "leading": 16,
11853
- "trailing": 16,
11854
12458
  "top": 16,
11855
12459
  "bottom": 16
11856
- },
11857
- "hiddenPath": "$service:himiStoreCart.noItems"
12460
+ }
11858
12461
  }
11859
12462
  }
11860
12463
  ]
@@ -11868,13 +12471,14 @@ const SCREENS = runtimeSetting({
11868
12471
  "id": "himi_cart.hint",
11869
12472
  "body": {
11870
12473
  "package": "himalaya",
11871
- "type": "Text",
12474
+ "type": "Banner",
11872
12475
  "props": {
11873
- "text": "$service:himiStoreCart.checkoutHint",
11874
- "style": "footnote",
11875
- "color": "textSecondary",
11876
- "collapseWhenEmpty": true
12476
+ "title": "$service:himiStoreCart.checkoutHint",
12477
+ "severity": "warning"
11877
12478
  }
12479
+ },
12480
+ "modifiers": {
12481
+ "hiddenPath": "$service:himiStoreCart.noCheckoutHint"
11878
12482
  }
11879
12483
  },
11880
12484
  {
@@ -11883,8 +12487,8 @@ const SCREENS = runtimeSetting({
11883
12487
  "package": "himalaya",
11884
12488
  "type": "VStack",
11885
12489
  "props": {
11886
- "spacing": 8,
11887
- "alignment": "leading",
12490
+ "spacing": 12,
12491
+ "alignment": "center",
11888
12492
  "children": [
11889
12493
  {
11890
12494
  "id": "",
@@ -11908,12 +12512,24 @@ const SCREENS = runtimeSetting({
11908
12512
  "type": "Text",
11909
12513
  "props": {
11910
12514
  "text": "$service:himiStoreCart.emptyText",
11911
- "style": "bodyEmphasis",
11912
- "color": "textSecondary",
12515
+ "style": "title3",
12516
+ "color": "textPrimary",
11913
12517
  "collapseWhenEmpty": true
11914
12518
  }
11915
12519
  }
11916
12520
  },
12521
+ {
12522
+ "id": "",
12523
+ "body": {
12524
+ "package": "himalaya",
12525
+ "type": "Text",
12526
+ "props": {
12527
+ "text": "Your items will appear here when you add them.",
12528
+ "style": "footnote",
12529
+ "color": "textSecondary"
12530
+ }
12531
+ }
12532
+ },
11917
12533
  {
11918
12534
  "id": "himi_cart.browse",
11919
12535
  "body": {
@@ -11935,24 +12551,23 @@ const SCREENS = runtimeSetting({
11935
12551
  }
11936
12552
  },
11937
12553
  "modifiers": {
11938
- "background": {
11939
- "token": "surfaceElevated"
11940
- },
11941
- "border": {
11942
- "width": 1,
11943
- "color": {
11944
- "token": "border"
11945
- }
11946
- },
11947
- "cornerRadius": 4,
11948
- "padding": {
11949
- "leading": 16,
11950
- "trailing": 16,
11951
- "top": 16,
11952
- "bottom": 16
11953
- },
11954
12554
  "hiddenPath": "$service:himiStoreCart.noEmpty"
11955
12555
  }
12556
+ },
12557
+ {
12558
+ "id": "himi_cart.order_placed",
12559
+ "body": {
12560
+ "package": "himalaya",
12561
+ "type": "Snackbar",
12562
+ "props": {
12563
+ "message": "Order placed. Thanks!",
12564
+ "severity": "success",
12565
+ "durationMs": 3000
12566
+ }
12567
+ },
12568
+ "modifiers": {
12569
+ "hiddenPath": "$service:himiStoreCart.noPaidToast"
12570
+ }
11956
12571
  }
11957
12572
  ]
11958
12573
  }
@@ -11987,58 +12602,173 @@ const SCREENS = runtimeSetting({
11987
12602
  ],
11988
12603
  "minBinaryVersion": "0.1.0",
11989
12604
  "bundleVersion": "0.0.1"
11990
- }
11991
- },
11992
- "himi_orders": {
11993
- "screenId": "himi_orders",
11994
- "renderer": "sdui_intent",
11995
- "title": "",
11996
- "schemaVersion": 1,
11997
- "cacheControl": {
11998
- "maxAge": 0,
11999
- "staleWhileRevalidate": 0
12000
12605
  },
12001
- "payload": {
12002
- "id": "himi_orders.root",
12606
+ "stickyFooter": {
12607
+ "id": "himi_cart.footer",
12003
12608
  "body": {
12004
12609
  "package": "himalaya",
12005
12610
  "type": "VStack",
12006
12611
  "props": {
12007
- "spacing": 16,
12612
+ "spacing": 10,
12008
12613
  "alignment": "leading",
12009
12614
  "children": [
12010
12615
  {
12011
- "id": "himi_orders.title",
12616
+ "id": "",
12012
12617
  "body": {
12013
12618
  "package": "himalaya",
12014
- "type": "Text",
12619
+ "type": "HStack",
12015
12620
  "props": {
12016
- "text": "My orders",
12017
- "style": "title1"
12621
+ "spacing": 8,
12622
+ "children": [
12623
+ {
12624
+ "id": "himi_cart.promo",
12625
+ "body": {
12626
+ "package": "himalaya",
12627
+ "type": "TextField",
12628
+ "props": {
12629
+ "placeholder": "Promo code",
12630
+ "valuePath": "$service:himiStoreCart.promoCode",
12631
+ "onChange": {
12632
+ "actionId": "tier5.himiStoreCart.setPromo"
12633
+ },
12634
+ "onSubmit": {
12635
+ "actionId": "tier5.himiStoreCart.applyPromo"
12636
+ },
12637
+ "autoCapitalization": "characters",
12638
+ "suggestions": "off",
12639
+ "submitLabel": "done",
12640
+ "clearButton": true,
12641
+ "maxLength": 100,
12642
+ "borderless": true
12643
+ }
12644
+ },
12645
+ "modifiers": {
12646
+ "weight": 1,
12647
+ "height": 36,
12648
+ "border": {
12649
+ "width": 1,
12650
+ "color": {
12651
+ "token": "border"
12652
+ }
12653
+ },
12654
+ "padding": {
12655
+ "leading": 12,
12656
+ "trailing": 12
12657
+ },
12658
+ "hiddenPath": "$service:himiStoreCart.hasCoupon"
12659
+ }
12660
+ },
12661
+ {
12662
+ "id": "himi_cart.apply_promo",
12663
+ "body": {
12664
+ "package": "himalaya",
12665
+ "type": "Button",
12666
+ "props": {
12667
+ "title": "Apply",
12668
+ "style": "secondary",
12669
+ "action": {
12670
+ "actionId": "tier5.himiStoreCart.applyPromo"
12671
+ },
12672
+ "disabledPath": "$service:himiStoreCart.promoBusy"
12673
+ }
12674
+ },
12675
+ "modifiers": {
12676
+ "height": 44,
12677
+ "cornerRadius": 0,
12678
+ "border": {
12679
+ "width": 1,
12680
+ "color": {
12681
+ "token": "textPrimary"
12682
+ }
12683
+ },
12684
+ "hiddenPath": "$service:himiStoreCart.hasCoupon"
12685
+ }
12686
+ },
12687
+ {
12688
+ "id": "",
12689
+ "body": {
12690
+ "package": "himalaya",
12691
+ "type": "HStack",
12692
+ "props": {
12693
+ "spacing": 8,
12694
+ "children": [
12695
+ {
12696
+ "id": "",
12697
+ "body": {
12698
+ "package": "himalaya",
12699
+ "type": "Text",
12700
+ "props": {
12701
+ "text": "$service:himiStoreCart.appliedLabel",
12702
+ "style": "footnote",
12703
+ "color": "textPrimary"
12704
+ }
12705
+ }
12706
+ },
12707
+ {
12708
+ "id": "",
12709
+ "body": {
12710
+ "package": "himalaya",
12711
+ "type": "Spacer",
12712
+ "props": {}
12713
+ }
12714
+ },
12715
+ {
12716
+ "id": "himi_cart.remove_promo",
12717
+ "body": {
12718
+ "package": "himalaya",
12719
+ "type": "Button",
12720
+ "props": {
12721
+ "title": "Remove promo code",
12722
+ "action": {
12723
+ "actionId": "tier5.himiStoreCart.removePromo"
12724
+ },
12725
+ "style": "tertiary",
12726
+ "iconOnly": true,
12727
+ "leadingIcon": "close",
12728
+ "cornerRadius": 22,
12729
+ "minHeight": 44
12730
+ }
12731
+ },
12732
+ "modifiers": {
12733
+ "width": 44,
12734
+ "height": 44,
12735
+ "accessibilityLabel": "Remove promo code",
12736
+ "accessibilityRole": "button"
12737
+ }
12738
+ }
12739
+ ]
12740
+ }
12741
+ },
12742
+ "modifiers": {
12743
+ "hiddenPath": "$service:himiStoreCart.noCoupon"
12744
+ }
12745
+ }
12746
+ ]
12018
12747
  }
12019
12748
  }
12020
12749
  },
12021
12750
  {
12022
- "id": "",
12751
+ "id": "himi_cart.promo_error",
12023
12752
  "body": {
12024
12753
  "package": "himalaya",
12025
12754
  "type": "Text",
12026
12755
  "props": {
12027
- "text": "$service:himiBrandedOrders.identityLine",
12028
- "style": "caption",
12029
- "color": "textSecondary",
12030
- "collapseWhenEmpty": true
12756
+ "text": "$service:himiStoreCart.promoError",
12757
+ "style": "footnote",
12758
+ "color": "danger"
12031
12759
  }
12760
+ },
12761
+ "modifiers": {
12762
+ "hiddenPath": "$service:himiStoreCart.noPromoError"
12032
12763
  }
12033
12764
  },
12034
12765
  {
12035
- "id": "himi_orders.loading",
12766
+ "id": "",
12036
12767
  "body": {
12037
12768
  "package": "himalaya",
12038
- "type": "VStack",
12769
+ "type": "HStack",
12039
12770
  "props": {
12040
12771
  "spacing": 8,
12041
- "alignment": "leading",
12042
12772
  "children": [
12043
12773
  {
12044
12774
  "id": "",
@@ -12046,9 +12776,29 @@ const SCREENS = runtimeSetting({
12046
12776
  "package": "himalaya",
12047
12777
  "type": "Text",
12048
12778
  "props": {
12049
- "text": "Loading orders...",
12779
+ "text": "Discount",
12050
12780
  "style": "body",
12051
- "color": "textSecondary"
12781
+ "color": "textPrimary"
12782
+ }
12783
+ }
12784
+ },
12785
+ {
12786
+ "id": "",
12787
+ "body": {
12788
+ "package": "himalaya",
12789
+ "type": "Spacer",
12790
+ "props": {}
12791
+ }
12792
+ },
12793
+ {
12794
+ "id": "",
12795
+ "body": {
12796
+ "package": "himalaya",
12797
+ "type": "Text",
12798
+ "props": {
12799
+ "text": "$service:himiStoreCart.discount",
12800
+ "style": "body",
12801
+ "color": "success"
12052
12802
  }
12053
12803
  }
12054
12804
  }
@@ -12056,27 +12806,177 @@ const SCREENS = runtimeSetting({
12056
12806
  }
12057
12807
  },
12058
12808
  "modifiers": {
12059
- "background": {
12060
- "token": "surfaceElevated"
12061
- },
12062
- "border": {
12063
- "width": 1,
12064
- "color": {
12065
- "token": "border"
12066
- }
12067
- },
12068
- "cornerRadius": 4,
12069
- "padding": {
12070
- "leading": 16,
12071
- "trailing": 16,
12072
- "top": 16,
12073
- "bottom": 16
12074
- },
12075
- "hiddenPath": "$service:himiBrandedOrders.notLoading"
12809
+ "hiddenPath": "$service:himiStoreCart.noDiscount"
12076
12810
  }
12077
12811
  },
12078
12812
  {
12079
- "id": "himi_orders.error",
12813
+ "id": "",
12814
+ "body": {
12815
+ "package": "himalaya",
12816
+ "type": "HStack",
12817
+ "props": {
12818
+ "spacing": 8,
12819
+ "children": [
12820
+ {
12821
+ "id": "",
12822
+ "body": {
12823
+ "package": "himalaya",
12824
+ "type": "Text",
12825
+ "props": {
12826
+ "text": "$service:himiStoreCart.subtotalLabel",
12827
+ "style": "bodyEmphasis"
12828
+ }
12829
+ }
12830
+ },
12831
+ {
12832
+ "id": "",
12833
+ "body": {
12834
+ "package": "himalaya",
12835
+ "type": "Spacer",
12836
+ "props": {}
12837
+ }
12838
+ },
12839
+ {
12840
+ "id": "",
12841
+ "body": {
12842
+ "package": "himalaya",
12843
+ "type": "Text",
12844
+ "props": {
12845
+ "text": "$service:himiStoreCart.subtotal",
12846
+ "style": "bodyEmphasis"
12847
+ }
12848
+ }
12849
+ }
12850
+ ]
12851
+ }
12852
+ }
12853
+ },
12854
+ {
12855
+ "id": "himi_cart.checkout",
12856
+ "body": {
12857
+ "package": "himalaya",
12858
+ "type": "Button",
12859
+ "props": {
12860
+ "title": "Checkout",
12861
+ "style": "primary",
12862
+ "fullWidth": true,
12863
+ "action": {
12864
+ "actionId": "tier5.himiStoreCart.checkout"
12865
+ }
12866
+ }
12867
+ }
12868
+ }
12869
+ ]
12870
+ }
12871
+ },
12872
+ "modifiers": {
12873
+ "background": {
12874
+ "token": "surfacePrimary"
12875
+ },
12876
+ "border": {
12877
+ "width": 1,
12878
+ "color": {
12879
+ "token": "border"
12880
+ }
12881
+ },
12882
+ "padding": {
12883
+ "leading": 20,
12884
+ "trailing": 20,
12885
+ "top": 12,
12886
+ "bottom": 12
12887
+ },
12888
+ "hiddenPath": "$service:himiStoreCart.noItems"
12889
+ }
12890
+ }
12891
+ },
12892
+ "himi_orders": {
12893
+ "screenId": "himi_orders",
12894
+ "renderer": "sdui_intent",
12895
+ "title": "",
12896
+ "schemaVersion": 1,
12897
+ "cacheControl": {
12898
+ "maxAge": 0,
12899
+ "staleWhileRevalidate": 0
12900
+ },
12901
+ "payload": {
12902
+ "id": "himi_orders.root",
12903
+ "body": {
12904
+ "package": "himalaya",
12905
+ "type": "VStack",
12906
+ "props": {
12907
+ "spacing": 16,
12908
+ "alignment": "leading",
12909
+ "children": [
12910
+ {
12911
+ "id": "himi_orders.title",
12912
+ "body": {
12913
+ "package": "himalaya",
12914
+ "type": "Text",
12915
+ "props": {
12916
+ "text": "My orders",
12917
+ "style": "title1"
12918
+ }
12919
+ }
12920
+ },
12921
+ {
12922
+ "id": "",
12923
+ "body": {
12924
+ "package": "himalaya",
12925
+ "type": "Text",
12926
+ "props": {
12927
+ "text": "$service:himiBrandedOrders.identityLine",
12928
+ "style": "caption",
12929
+ "color": "textSecondary",
12930
+ "collapseWhenEmpty": true
12931
+ }
12932
+ }
12933
+ },
12934
+ {
12935
+ "id": "himi_orders.loading",
12936
+ "body": {
12937
+ "package": "himalaya",
12938
+ "type": "VStack",
12939
+ "props": {
12940
+ "spacing": 8,
12941
+ "alignment": "leading",
12942
+ "children": [
12943
+ {
12944
+ "id": "",
12945
+ "body": {
12946
+ "package": "himalaya",
12947
+ "type": "Text",
12948
+ "props": {
12949
+ "text": "Loading orders...",
12950
+ "style": "body",
12951
+ "color": "textSecondary"
12952
+ }
12953
+ }
12954
+ }
12955
+ ]
12956
+ }
12957
+ },
12958
+ "modifiers": {
12959
+ "background": {
12960
+ "token": "surfaceElevated"
12961
+ },
12962
+ "border": {
12963
+ "width": 1,
12964
+ "color": {
12965
+ "token": "border"
12966
+ }
12967
+ },
12968
+ "cornerRadius": 4,
12969
+ "padding": {
12970
+ "leading": 16,
12971
+ "trailing": 16,
12972
+ "top": 16,
12973
+ "bottom": 16
12974
+ },
12975
+ "hiddenPath": "$service:himiBrandedOrders.notLoading"
12976
+ }
12977
+ },
12978
+ {
12979
+ "id": "himi_orders.error",
12080
12980
  "body": {
12081
12981
  "package": "himalaya",
12082
12982
  "type": "VStack",
@@ -31691,7 +32591,7 @@ const TEMPLATED: { pattern: string; display: string; liveSeed?: LiveSeed; static
31691
32591
  { pattern: "^himi_product(?:[_/](.+))?$", display: "himi_product[_{id}]", liveSeed: {"path":"/stores/v3/products/query","body":{"query":{"cursorPaging":{"limit":50}}},"listKey":"products","prefix":"himi_product_"}, template: {
31692
32592
  "screenId": "himi_product___HIMI_ID__",
31693
32593
  "renderer": "sdui_intent",
31694
- "title": "Product",
32594
+ "title": "",
31695
32595
  "schemaVersion": 1,
31696
32596
  "cacheControl": {
31697
32597
  "maxAge": 0,
@@ -31820,12 +32720,12 @@ const TEMPLATED: { pattern: string; display: string; liveSeed?: LiveSeed; static
31820
32720
  "package": "himalaya",
31821
32721
  "type": "Skeleton",
31822
32722
  "props": {
31823
- "height": 220,
32723
+ "height": 510,
31824
32724
  "cornerRadius": 8
31825
32725
  }
31826
32726
  },
31827
32727
  "modifiers": {
31828
- "height": 220,
32728
+ "height": 510,
31829
32729
  "background": {
31830
32730
  "token": "surfaceSecondary"
31831
32731
  },
@@ -31834,41 +32734,61 @@ const TEMPLATED: { pattern: string; display: string; liveSeed?: LiveSeed; static
31834
32734
  }
31835
32735
  },
31836
32736
  {
31837
- "id": "himi_product.skeleton_title",
32737
+ "id": "",
31838
32738
  "body": {
31839
32739
  "package": "himalaya",
31840
- "type": "Skeleton",
32740
+ "type": "VStack",
31841
32741
  "props": {
31842
- "height": 28,
31843
- "cornerRadius": 8
32742
+ "spacing": 12,
32743
+ "children": [
32744
+ {
32745
+ "id": "himi_product.skeleton_title",
32746
+ "body": {
32747
+ "package": "himalaya",
32748
+ "type": "Skeleton",
32749
+ "props": {
32750
+ "height": 28,
32751
+ "cornerRadius": 8
32752
+ }
32753
+ },
32754
+ "modifiers": {
32755
+ "height": 28,
32756
+ "background": {
32757
+ "token": "surfaceSecondary"
32758
+ },
32759
+ "cornerRadius": 8,
32760
+ "accessibilityRole": "decorative"
32761
+ }
32762
+ },
32763
+ {
32764
+ "id": "himi_product.skeleton_body",
32765
+ "body": {
32766
+ "package": "himalaya",
32767
+ "type": "Skeleton",
32768
+ "props": {
32769
+ "height": 72,
32770
+ "cornerRadius": 8
32771
+ }
32772
+ },
32773
+ "modifiers": {
32774
+ "height": 72,
32775
+ "background": {
32776
+ "token": "surfaceSecondary"
32777
+ },
32778
+ "cornerRadius": 8,
32779
+ "accessibilityRole": "decorative"
32780
+ }
32781
+ }
32782
+ ]
31844
32783
  }
31845
32784
  },
31846
32785
  "modifiers": {
31847
- "height": 28,
31848
- "background": {
31849
- "token": "surfaceSecondary"
31850
- },
31851
- "cornerRadius": 8,
31852
- "accessibilityRole": "decorative"
31853
- }
31854
- },
31855
- {
31856
- "id": "himi_product.skeleton_body",
31857
- "body": {
31858
- "package": "himalaya",
31859
- "type": "Skeleton",
31860
- "props": {
31861
- "height": 72,
31862
- "cornerRadius": 8
32786
+ "padding": {
32787
+ "leading": 16,
32788
+ "trailing": 16,
32789
+ "top": 12,
32790
+ "bottom": 12
31863
32791
  }
31864
- },
31865
- "modifiers": {
31866
- "height": 72,
31867
- "background": {
31868
- "token": "surfaceSecondary"
31869
- },
31870
- "cornerRadius": 8,
31871
- "accessibilityRole": "decorative"
31872
32792
  }
31873
32793
  }
31874
32794
  ]
@@ -31888,73 +32808,555 @@ const TEMPLATED: { pattern: string; display: string; liveSeed?: LiveSeed; static
31888
32808
  "alignment": "leading",
31889
32809
  "children": [
31890
32810
  {
31891
- "id": "himi_product.summary",
32811
+ "id": "himi_product.gallery",
31892
32812
  "body": {
31893
32813
  "package": "himalaya",
31894
- "type": "VStack",
32814
+ "type": "Carousel",
31895
32815
  "props": {
31896
- "spacing": 12,
31897
- "alignment": "leading",
31898
- "children": [
32816
+ "itemsPath": "$service:himiStoreProduct.gallery",
32817
+ "items": [
31899
32818
  {
31900
- "id": "himi_product.gallery",
32819
+ "id": "",
31901
32820
  "body": {
31902
32821
  "package": "himalaya",
31903
- "type": "Carousel",
32822
+ "type": "Image",
31904
32823
  "props": {
31905
- "itemsPath": "$service:himiStoreProduct.gallery",
31906
- "items": [
32824
+ "url": "$item.url",
32825
+ "fillWidth": true,
32826
+ "height": 510,
32827
+ "contentMode": "fill",
32828
+ "contentDescription": "$service:himiStoreProduct.name"
32829
+ }
32830
+ },
32831
+ "modifiers": {
32832
+ "fillMaxWidth": true
32833
+ }
32834
+ }
32835
+ ]
32836
+ }
32837
+ },
32838
+ "modifiers": {
32839
+ "hiddenPath": "$service:himiStoreProduct.noGallery"
32840
+ }
32841
+ },
32842
+ {
32843
+ "id": "",
32844
+ "body": {
32845
+ "package": "himalaya",
32846
+ "type": "Image",
32847
+ "props": {
32848
+ "url": "$service:himiStoreProduct.image",
32849
+ "fillWidth": true,
32850
+ "height": 510,
32851
+ "contentMode": "fill",
32852
+ "contentDescription": "$service:himiStoreProduct.name"
32853
+ }
32854
+ },
32855
+ "modifiers": {
32856
+ "fillMaxWidth": true,
32857
+ "hiddenPath": "$service:himiStoreProduct.noSingleImage"
32858
+ }
32859
+ },
32860
+ {
32861
+ "id": "",
32862
+ "body": {
32863
+ "package": "himalaya",
32864
+ "type": "ZStack",
32865
+ "props": {
32866
+ "alignment": "center",
32867
+ "children": [
32868
+ {
32869
+ "id": "",
32870
+ "body": {
32871
+ "package": "himalaya",
32872
+ "type": "Text",
32873
+ "props": {
32874
+ "text": "$service:himiStoreProduct.initial",
32875
+ "style": "display",
32876
+ "color": "textOnAccent"
32877
+ }
32878
+ }
32879
+ }
32880
+ ]
32881
+ }
32882
+ },
32883
+ "modifiers": {
32884
+ "fillMaxWidth": true,
32885
+ "height": 510,
32886
+ "background": {
32887
+ "token": "accentPrimary"
32888
+ },
32889
+ "hiddenPath": "$service:himiStoreProduct.hasImage"
32890
+ }
32891
+ },
32892
+ {
32893
+ "id": "",
32894
+ "body": {
32895
+ "package": "himalaya",
32896
+ "type": "VStack",
32897
+ "props": {
32898
+ "spacing": 16,
32899
+ "alignment": "leading",
32900
+ "children": [
32901
+ {
32902
+ "id": "",
32903
+ "body": {
32904
+ "package": "himalaya",
32905
+ "type": "Text",
32906
+ "props": {
32907
+ "text": "On sale",
32908
+ "style": "caption",
32909
+ "color": "danger"
32910
+ }
32911
+ },
32912
+ "modifiers": {
32913
+ "background": {
32914
+ "token": "surfaceTertiary"
32915
+ },
32916
+ "cornerRadius": 4,
32917
+ "padding": {
32918
+ "leading": 8,
32919
+ "trailing": 8,
32920
+ "top": 4,
32921
+ "bottom": 4
32922
+ },
32923
+ "hiddenPath": "$service:himiStoreProduct.notOnSale"
32924
+ }
32925
+ },
32926
+ {
32927
+ "id": "himi_product.title",
32928
+ "body": {
32929
+ "package": "himalaya",
32930
+ "type": "Text",
32931
+ "props": {
32932
+ "text": "$service:himiStoreProduct.name",
32933
+ "style": "title3",
32934
+ "color": "textPrimary",
32935
+ "maxLines": 2,
32936
+ "collapseWhenEmpty": true
32937
+ }
32938
+ }
32939
+ },
32940
+ {
32941
+ "id": "himi_product.price_row",
32942
+ "body": {
32943
+ "package": "himalaya",
32944
+ "type": "HStack",
32945
+ "props": {
32946
+ "spacing": 8,
32947
+ "children": [
32948
+ {
32949
+ "id": "",
32950
+ "body": {
32951
+ "package": "himalaya",
32952
+ "type": "Text",
32953
+ "props": {
32954
+ "text": "$service:himiStoreProduct.wasPrice",
32955
+ "style": "title3",
32956
+ "color": "textSecondary",
32957
+ "collapseWhenEmpty": true,
32958
+ "decoration": "strikethrough"
32959
+ }
32960
+ },
32961
+ "modifiers": {
32962
+ "hiddenPath": "$service:himiStoreProduct.notOnSale"
32963
+ }
32964
+ },
32965
+ {
32966
+ "id": "himi_product.price_sale",
32967
+ "body": {
32968
+ "package": "himalaya",
32969
+ "type": "Text",
32970
+ "props": {
32971
+ "text": "$service:himiStoreProduct.price",
32972
+ "style": "title3",
32973
+ "color": "danger",
32974
+ "collapseWhenEmpty": true
32975
+ }
32976
+ },
32977
+ "modifiers": {
32978
+ "hiddenPath": "$service:himiStoreProduct.notOnSale"
32979
+ }
32980
+ },
32981
+ {
32982
+ "id": "himi_product.price",
32983
+ "body": {
32984
+ "package": "himalaya",
32985
+ "type": "Text",
32986
+ "props": {
32987
+ "text": "$service:himiStoreProduct.price",
32988
+ "style": "title3",
32989
+ "color": "accentPrimary",
32990
+ "collapseWhenEmpty": true
32991
+ }
32992
+ },
32993
+ "modifiers": {
32994
+ "hiddenPath": "$service:himiStoreProduct.wasPriceEmpty"
32995
+ }
32996
+ }
32997
+ ]
32998
+ }
32999
+ }
33000
+ },
33001
+ {
33002
+ "id": "himi_product.options_card",
33003
+ "body": {
33004
+ "package": "himalaya",
33005
+ "type": "VStack",
33006
+ "props": {
33007
+ "spacing": 12,
33008
+ "alignment": "leading",
33009
+ "children": [
33010
+ {
33011
+ "id": "himi_product.opt1_row",
33012
+ "body": {
33013
+ "package": "himalaya",
33014
+ "type": "VStack",
33015
+ "props": {
33016
+ "spacing": 8,
33017
+ "alignment": "leading",
33018
+ "children": [
33019
+ {
33020
+ "id": "",
33021
+ "body": {
33022
+ "package": "himalaya",
33023
+ "type": "Text",
33024
+ "props": {
33025
+ "text": "$service:himiStoreProduct.opt1Label",
33026
+ "style": "body",
33027
+ "collapseWhenEmpty": true
33028
+ }
33029
+ }
33030
+ },
33031
+ {
33032
+ "id": "himi_product.opt1",
33033
+ "body": {
33034
+ "package": "himalaya",
33035
+ "type": "Picker",
33036
+ "props": {
33037
+ "options": [],
33038
+ "optionsPath": "$service:himiStoreProduct.opt1Chips",
33039
+ "selectedId": "$service:himiStoreProduct.opt1SelectedId",
33040
+ "placeholder": "$service:himiStoreProduct.opt1Placeholder",
33041
+ "presentation": "sheet",
33042
+ "field": {
33043
+ "minHeight": 48,
33044
+ "cornerRadius": 4,
33045
+ "borderColor": "textSecondary",
33046
+ "borderWidth": 1,
33047
+ "padding": 16,
33048
+ "chevronIcon": "chevron_down"
33049
+ },
33050
+ "onChange": {
33051
+ "actionId": "tier5.himiStoreProduct.selectOption",
33052
+ "params": {
33053
+ "group": "1"
33054
+ }
33055
+ }
33056
+ }
33057
+ },
33058
+ "modifiers": {
33059
+ "accessibilityLabel": "$service:himiStoreProduct.opt1Label",
33060
+ "hiddenPath": "$service:himiStoreProduct.hasOpt1Error"
33061
+ }
33062
+ },
33063
+ {
33064
+ "id": "himi_product.opt1_error",
33065
+ "body": {
33066
+ "package": "himalaya",
33067
+ "type": "Picker",
33068
+ "props": {
33069
+ "options": [],
33070
+ "optionsPath": "$service:himiStoreProduct.opt1Chips",
33071
+ "selectedId": "$service:himiStoreProduct.opt1SelectedId",
33072
+ "placeholder": "$service:himiStoreProduct.opt1Placeholder",
33073
+ "presentation": "sheet",
33074
+ "field": {
33075
+ "minHeight": 48,
33076
+ "cornerRadius": 4,
33077
+ "borderColor": "danger",
33078
+ "borderWidth": 1,
33079
+ "padding": 16,
33080
+ "chevronIcon": "chevron_down"
33081
+ },
33082
+ "onChange": {
33083
+ "actionId": "tier5.himiStoreProduct.selectOption",
33084
+ "params": {
33085
+ "group": "1"
33086
+ }
33087
+ }
33088
+ }
33089
+ },
33090
+ "modifiers": {
33091
+ "accessibilityLabel": "$service:himiStoreProduct.opt1Label",
33092
+ "hiddenPath": "$service:himiStoreProduct.noOpt1Error"
33093
+ }
33094
+ },
33095
+ {
33096
+ "id": "",
33097
+ "body": {
33098
+ "package": "himalaya",
33099
+ "type": "Text",
33100
+ "props": {
33101
+ "text": "$service:himiStoreProduct.opt1Error",
33102
+ "style": "footnote",
33103
+ "color": "danger"
33104
+ }
33105
+ },
33106
+ "modifiers": {
33107
+ "hiddenPath": "$service:himiStoreProduct.noOpt1Error"
33108
+ }
33109
+ }
33110
+ ]
33111
+ }
33112
+ },
33113
+ "modifiers": {
33114
+ "hiddenPath": "$service:himiStoreProduct.noOpt1"
33115
+ }
33116
+ },
33117
+ {
33118
+ "id": "himi_product.opt2_row",
33119
+ "body": {
33120
+ "package": "himalaya",
33121
+ "type": "VStack",
33122
+ "props": {
33123
+ "spacing": 8,
33124
+ "alignment": "leading",
33125
+ "children": [
33126
+ {
33127
+ "id": "",
33128
+ "body": {
33129
+ "package": "himalaya",
33130
+ "type": "Text",
33131
+ "props": {
33132
+ "text": "$service:himiStoreProduct.opt2Label",
33133
+ "style": "body",
33134
+ "collapseWhenEmpty": true
33135
+ }
33136
+ }
33137
+ },
33138
+ {
33139
+ "id": "himi_product.opt2",
33140
+ "body": {
33141
+ "package": "himalaya",
33142
+ "type": "Picker",
33143
+ "props": {
33144
+ "options": [],
33145
+ "optionsPath": "$service:himiStoreProduct.opt2Chips",
33146
+ "selectedId": "$service:himiStoreProduct.opt2SelectedId",
33147
+ "placeholder": "$service:himiStoreProduct.opt2Placeholder",
33148
+ "presentation": "sheet",
33149
+ "field": {
33150
+ "minHeight": 48,
33151
+ "cornerRadius": 4,
33152
+ "borderColor": "textSecondary",
33153
+ "borderWidth": 1,
33154
+ "padding": 16,
33155
+ "chevronIcon": "chevron_down"
33156
+ },
33157
+ "onChange": {
33158
+ "actionId": "tier5.himiStoreProduct.selectOption",
33159
+ "params": {
33160
+ "group": "2"
33161
+ }
33162
+ }
33163
+ }
33164
+ },
33165
+ "modifiers": {
33166
+ "accessibilityLabel": "$service:himiStoreProduct.opt2Label",
33167
+ "hiddenPath": "$service:himiStoreProduct.hasOpt2Error"
33168
+ }
33169
+ },
33170
+ {
33171
+ "id": "himi_product.opt2_error",
33172
+ "body": {
33173
+ "package": "himalaya",
33174
+ "type": "Picker",
33175
+ "props": {
33176
+ "options": [],
33177
+ "optionsPath": "$service:himiStoreProduct.opt2Chips",
33178
+ "selectedId": "$service:himiStoreProduct.opt2SelectedId",
33179
+ "placeholder": "$service:himiStoreProduct.opt2Placeholder",
33180
+ "presentation": "sheet",
33181
+ "field": {
33182
+ "minHeight": 48,
33183
+ "cornerRadius": 4,
33184
+ "borderColor": "danger",
33185
+ "borderWidth": 1,
33186
+ "padding": 16,
33187
+ "chevronIcon": "chevron_down"
33188
+ },
33189
+ "onChange": {
33190
+ "actionId": "tier5.himiStoreProduct.selectOption",
33191
+ "params": {
33192
+ "group": "2"
33193
+ }
33194
+ }
33195
+ }
33196
+ },
33197
+ "modifiers": {
33198
+ "accessibilityLabel": "$service:himiStoreProduct.opt2Label",
33199
+ "hiddenPath": "$service:himiStoreProduct.noOpt2Error"
33200
+ }
33201
+ },
33202
+ {
33203
+ "id": "",
33204
+ "body": {
33205
+ "package": "himalaya",
33206
+ "type": "Text",
33207
+ "props": {
33208
+ "text": "$service:himiStoreProduct.opt2Error",
33209
+ "style": "footnote",
33210
+ "color": "danger"
33211
+ }
33212
+ },
33213
+ "modifiers": {
33214
+ "hiddenPath": "$service:himiStoreProduct.noOpt2Error"
33215
+ }
33216
+ }
33217
+ ]
33218
+ }
33219
+ },
33220
+ "modifiers": {
33221
+ "hiddenPath": "$service:himiStoreProduct.noOpt2"
33222
+ }
33223
+ },
33224
+ {
33225
+ "id": "himi_product.opt3_row",
33226
+ "body": {
33227
+ "package": "himalaya",
33228
+ "type": "VStack",
33229
+ "props": {
33230
+ "spacing": 8,
33231
+ "alignment": "leading",
33232
+ "children": [
33233
+ {
33234
+ "id": "",
33235
+ "body": {
33236
+ "package": "himalaya",
33237
+ "type": "Text",
33238
+ "props": {
33239
+ "text": "$service:himiStoreProduct.opt3Label",
33240
+ "style": "body",
33241
+ "collapseWhenEmpty": true
33242
+ }
33243
+ }
33244
+ },
33245
+ {
33246
+ "id": "himi_product.opt3",
33247
+ "body": {
33248
+ "package": "himalaya",
33249
+ "type": "Picker",
33250
+ "props": {
33251
+ "options": [],
33252
+ "optionsPath": "$service:himiStoreProduct.opt3Chips",
33253
+ "selectedId": "$service:himiStoreProduct.opt3SelectedId",
33254
+ "placeholder": "$service:himiStoreProduct.opt3Placeholder",
33255
+ "presentation": "sheet",
33256
+ "field": {
33257
+ "minHeight": 48,
33258
+ "cornerRadius": 4,
33259
+ "borderColor": "textSecondary",
33260
+ "borderWidth": 1,
33261
+ "padding": 16,
33262
+ "chevronIcon": "chevron_down"
33263
+ },
33264
+ "onChange": {
33265
+ "actionId": "tier5.himiStoreProduct.selectOption",
33266
+ "params": {
33267
+ "group": "3"
33268
+ }
33269
+ }
33270
+ }
33271
+ },
33272
+ "modifiers": {
33273
+ "accessibilityLabel": "$service:himiStoreProduct.opt3Label",
33274
+ "hiddenPath": "$service:himiStoreProduct.hasOpt3Error"
33275
+ }
33276
+ },
33277
+ {
33278
+ "id": "himi_product.opt3_error",
33279
+ "body": {
33280
+ "package": "himalaya",
33281
+ "type": "Picker",
33282
+ "props": {
33283
+ "options": [],
33284
+ "optionsPath": "$service:himiStoreProduct.opt3Chips",
33285
+ "selectedId": "$service:himiStoreProduct.opt3SelectedId",
33286
+ "placeholder": "$service:himiStoreProduct.opt3Placeholder",
33287
+ "presentation": "sheet",
33288
+ "field": {
33289
+ "minHeight": 48,
33290
+ "cornerRadius": 4,
33291
+ "borderColor": "danger",
33292
+ "borderWidth": 1,
33293
+ "padding": 16,
33294
+ "chevronIcon": "chevron_down"
33295
+ },
33296
+ "onChange": {
33297
+ "actionId": "tier5.himiStoreProduct.selectOption",
33298
+ "params": {
33299
+ "group": "3"
33300
+ }
33301
+ }
33302
+ }
33303
+ },
33304
+ "modifiers": {
33305
+ "accessibilityLabel": "$service:himiStoreProduct.opt3Label",
33306
+ "hiddenPath": "$service:himiStoreProduct.noOpt3Error"
33307
+ }
33308
+ },
33309
+ {
33310
+ "id": "",
33311
+ "body": {
33312
+ "package": "himalaya",
33313
+ "type": "Text",
33314
+ "props": {
33315
+ "text": "$service:himiStoreProduct.opt3Error",
33316
+ "style": "footnote",
33317
+ "color": "danger"
33318
+ }
33319
+ },
33320
+ "modifiers": {
33321
+ "hiddenPath": "$service:himiStoreProduct.noOpt3Error"
33322
+ }
33323
+ }
33324
+ ]
33325
+ }
33326
+ },
33327
+ "modifiers": {
33328
+ "hiddenPath": "$service:himiStoreProduct.noOpt3"
33329
+ }
33330
+ },
31907
33331
  {
31908
33332
  "id": "",
31909
33333
  "body": {
31910
33334
  "package": "himalaya",
31911
- "type": "Image",
33335
+ "type": "Text",
31912
33336
  "props": {
31913
- "url": "$item.url",
31914
- "fillWidth": true,
31915
- "height": 240,
31916
- "contentMode": "fill",
31917
- "contentDescription": "$service:himiStoreProduct.name"
33337
+ "text": "This product has more options than this screen can show. Open it on the website to order.",
33338
+ "style": "footnote",
33339
+ "color": "textSecondary"
31918
33340
  }
31919
33341
  },
31920
33342
  "modifiers": {
31921
- "cornerRadius": 8,
31922
- "fillMaxWidth": true
33343
+ "hiddenPath": "$service:himiStoreProduct.noOptionsOverflow"
31923
33344
  }
31924
33345
  }
31925
33346
  ]
31926
33347
  }
31927
33348
  },
31928
33349
  "modifiers": {
31929
- "hiddenPath": "$service:himiStoreProduct.noGallery"
31930
- }
31931
- },
31932
- {
31933
- "id": "",
31934
- "body": {
31935
- "package": "himalaya",
31936
- "type": "Image",
31937
- "props": {
31938
- "url": "$service:himiStoreProduct.image",
31939
- "fillWidth": true,
31940
- "height": 240,
31941
- "contentMode": "fill",
31942
- "contentDescription": "$service:himiStoreProduct.name"
31943
- }
31944
- },
31945
- "modifiers": {
31946
- "cornerRadius": 8,
31947
- "fillMaxWidth": true,
31948
- "hiddenPath": "$service:himiStoreProduct.noSingleImage"
33350
+ "hiddenPath": "$service:himiStoreProduct.noOptions"
31949
33351
  }
31950
33352
  },
31951
33353
  {
31952
- "id": "",
33354
+ "id": "himi_product.qty_row",
31953
33355
  "body": {
31954
33356
  "package": "himalaya",
31955
- "type": "ZStack",
33357
+ "type": "HStack",
31956
33358
  "props": {
31957
- "alignment": "center",
33359
+ "spacing": 12,
31958
33360
  "children": [
31959
33361
  {
31960
33362
  "id": "",
@@ -31962,49 +33364,41 @@ const TEMPLATED: { pattern: string; display: string; liveSeed?: LiveSeed; static
31962
33364
  "package": "himalaya",
31963
33365
  "type": "Text",
31964
33366
  "props": {
31965
- "text": "$service:himiStoreProduct.initial",
31966
- "style": "display",
31967
- "color": "textOnAccent"
33367
+ "text": "Quantity",
33368
+ "style": "body"
33369
+ }
33370
+ }
33371
+ },
33372
+ {
33373
+ "id": "",
33374
+ "body": {
33375
+ "package": "himalaya",
33376
+ "type": "Spacer",
33377
+ "props": {}
33378
+ }
33379
+ },
33380
+ {
33381
+ "id": "himi_product.qty",
33382
+ "body": {
33383
+ "package": "himalaya",
33384
+ "type": "Stepper",
33385
+ "props": {
33386
+ "value": 1,
33387
+ "valuePath": "$service:himiStoreProduct.quantity",
33388
+ "min": 1,
33389
+ "max": 99,
33390
+ "presentation": "plain",
33391
+ "onChange": {
33392
+ "actionId": "tier5.himiStoreProduct.setQuantity"
33393
+ }
31968
33394
  }
33395
+ },
33396
+ "modifiers": {
33397
+ "accessibilityLabel": "Quantity"
31969
33398
  }
31970
33399
  }
31971
33400
  ]
31972
33401
  }
31973
- },
31974
- "modifiers": {
31975
- "fillMaxWidth": true,
31976
- "height": 220,
31977
- "background": {
31978
- "token": "accentPrimary"
31979
- },
31980
- "cornerRadius": 8,
31981
- "hiddenPath": "$service:himiStoreProduct.hasImage"
31982
- }
31983
- },
31984
- {
31985
- "id": "",
31986
- "body": {
31987
- "package": "himalaya",
31988
- "type": "Text",
31989
- "props": {
31990
- "text": "$service:himiStoreProduct.name",
31991
- "style": "title2",
31992
- "maxLines": 2,
31993
- "collapseWhenEmpty": true
31994
- }
31995
- }
31996
- },
31997
- {
31998
- "id": "himi_product.price",
31999
- "body": {
32000
- "package": "himalaya",
32001
- "type": "Text",
32002
- "props": {
32003
- "text": "$service:himiStoreProduct.price",
32004
- "style": "title1",
32005
- "color": "accentPrimary",
32006
- "collapseWhenEmpty": true
32007
- }
32008
33402
  }
32009
33403
  },
32010
33404
  {
@@ -32033,7 +33427,7 @@ const TEMPLATED: { pattern: string; display: string; liveSeed?: LiveSeed; static
32033
33427
  "props": {
32034
33428
  "text": "$service:himiStoreProduct.description",
32035
33429
  "style": "body",
32036
- "color": "textSecondary",
33430
+ "color": "textPrimary",
32037
33431
  "collapseWhenEmpty": true
32038
33432
  }
32039
33433
  }
@@ -32049,206 +33443,22 @@ const TEMPLATED: { pattern: string; display: string; liveSeed?: LiveSeed; static
32049
33443
  "props": {
32050
33444
  "text": "$service:himiStoreProduct.description",
32051
33445
  "style": "body",
32052
- "color": "textSecondary",
33446
+ "color": "textPrimary",
32053
33447
  "collapseWhenEmpty": true
32054
33448
  }
32055
33449
  },
32056
33450
  "modifiers": {
32057
33451
  "hiddenPath": "$service:himiStoreProduct.hasDescriptionJson"
32058
33452
  }
32059
- }
32060
- ]
32061
- }
32062
- },
32063
- "modifiers": {
32064
- "background": {
32065
- "token": "surfaceElevated"
32066
- },
32067
- "border": {
32068
- "width": 1,
32069
- "color": {
32070
- "token": "border"
32071
- }
32072
- },
32073
- "cornerRadius": 8,
32074
- "padding": {
32075
- "leading": 14,
32076
- "trailing": 14,
32077
- "top": 14,
32078
- "bottom": 14
32079
- }
32080
- }
32081
- },
32082
- {
32083
- "id": "himi_product.options_card",
32084
- "body": {
32085
- "package": "himalaya",
32086
- "type": "VStack",
32087
- "props": {
32088
- "spacing": 12,
32089
- "alignment": "leading",
32090
- "children": [
32091
- {
32092
- "id": "himi_product.opt1_row",
32093
- "body": {
32094
- "package": "himalaya",
32095
- "type": "VStack",
32096
- "props": {
32097
- "spacing": 8,
32098
- "alignment": "leading",
32099
- "children": [
32100
- {
32101
- "id": "",
32102
- "body": {
32103
- "package": "himalaya",
32104
- "type": "Text",
32105
- "props": {
32106
- "text": "$service:himiStoreProduct.opt1Label",
32107
- "style": "bodyEmphasis",
32108
- "collapseWhenEmpty": true
32109
- }
32110
- }
32111
- },
32112
- {
32113
- "id": "himi_product.opt1",
32114
- "body": {
32115
- "package": "himalaya",
32116
- "type": "FilterChips",
32117
- "props": {
32118
- "chips": [],
32119
- "optionsPath": "$service:himiStoreProduct.opt1Chips",
32120
- "selectedIds": [
32121
- "$service:himiStoreProduct.opt1Selected"
32122
- ],
32123
- "onChange": {
32124
- "actionId": "tier5.himiStoreProduct.selectOption",
32125
- "params": {
32126
- "group": "1"
32127
- }
32128
- }
32129
- }
32130
- },
32131
- "modifiers": {
32132
- "accessibilityLabel": "$service:himiStoreProduct.opt1Label"
32133
- }
32134
- }
32135
- ]
32136
- }
32137
- },
32138
- "modifiers": {
32139
- "hiddenPath": "$service:himiStoreProduct.noOpt1"
32140
- }
32141
- },
32142
- {
32143
- "id": "himi_product.opt2_row",
32144
- "body": {
32145
- "package": "himalaya",
32146
- "type": "VStack",
32147
- "props": {
32148
- "spacing": 8,
32149
- "alignment": "leading",
32150
- "children": [
32151
- {
32152
- "id": "",
32153
- "body": {
32154
- "package": "himalaya",
32155
- "type": "Text",
32156
- "props": {
32157
- "text": "$service:himiStoreProduct.opt2Label",
32158
- "style": "bodyEmphasis",
32159
- "collapseWhenEmpty": true
32160
- }
32161
- }
32162
- },
32163
- {
32164
- "id": "himi_product.opt2",
32165
- "body": {
32166
- "package": "himalaya",
32167
- "type": "FilterChips",
32168
- "props": {
32169
- "chips": [],
32170
- "optionsPath": "$service:himiStoreProduct.opt2Chips",
32171
- "selectedIds": [
32172
- "$service:himiStoreProduct.opt2Selected"
32173
- ],
32174
- "onChange": {
32175
- "actionId": "tier5.himiStoreProduct.selectOption",
32176
- "params": {
32177
- "group": "2"
32178
- }
32179
- }
32180
- }
32181
- },
32182
- "modifiers": {
32183
- "accessibilityLabel": "$service:himiStoreProduct.opt2Label"
32184
- }
32185
- }
32186
- ]
32187
- }
32188
- },
32189
- "modifiers": {
32190
- "hiddenPath": "$service:himiStoreProduct.noOpt2"
32191
- }
32192
- },
32193
- {
32194
- "id": "himi_product.opt3_row",
32195
- "body": {
32196
- "package": "himalaya",
32197
- "type": "VStack",
32198
- "props": {
32199
- "spacing": 8,
32200
- "alignment": "leading",
32201
- "children": [
32202
- {
32203
- "id": "",
32204
- "body": {
32205
- "package": "himalaya",
32206
- "type": "Text",
32207
- "props": {
32208
- "text": "$service:himiStoreProduct.opt3Label",
32209
- "style": "bodyEmphasis",
32210
- "collapseWhenEmpty": true
32211
- }
32212
- }
32213
- },
32214
- {
32215
- "id": "himi_product.opt3",
32216
- "body": {
32217
- "package": "himalaya",
32218
- "type": "FilterChips",
32219
- "props": {
32220
- "chips": [],
32221
- "optionsPath": "$service:himiStoreProduct.opt3Chips",
32222
- "selectedIds": [
32223
- "$service:himiStoreProduct.opt3Selected"
32224
- ],
32225
- "onChange": {
32226
- "actionId": "tier5.himiStoreProduct.selectOption",
32227
- "params": {
32228
- "group": "3"
32229
- }
32230
- }
32231
- }
32232
- },
32233
- "modifiers": {
32234
- "accessibilityLabel": "$service:himiStoreProduct.opt3Label"
32235
- }
32236
- }
32237
- ]
32238
- }
32239
- },
32240
- "modifiers": {
32241
- "hiddenPath": "$service:himiStoreProduct.noOpt3"
32242
- }
32243
33453
  },
32244
33454
  {
32245
- "id": "himi_product.options_hint",
33455
+ "id": "himi_product.sku",
32246
33456
  "body": {
32247
33457
  "package": "himalaya",
32248
33458
  "type": "Text",
32249
33459
  "props": {
32250
- "text": "$service:himiStoreProduct.optionsHint",
32251
- "style": "footnote",
33460
+ "text": "$service:himiStoreProduct.skuLabel",
33461
+ "style": "caption",
32252
33462
  "color": "textSecondary",
32253
33463
  "collapseWhenEmpty": true
32254
33464
  }
@@ -32258,203 +33468,277 @@ const TEMPLATED: { pattern: string; display: string; liveSeed?: LiveSeed; static
32258
33468
  "id": "",
32259
33469
  "body": {
32260
33470
  "package": "himalaya",
32261
- "type": "Text",
32262
- "props": {
32263
- "text": "This product has more options than this screen can show. Open it on the website to order.",
32264
- "style": "footnote",
32265
- "color": "textSecondary"
32266
- }
33471
+ "type": "Divider",
33472
+ "props": {}
32267
33473
  },
32268
33474
  "modifiers": {
32269
- "hiddenPath": "$service:himiStoreProduct.noOptionsOverflow"
33475
+ "hiddenPath": "$service:himiStoreProduct.noSku"
32270
33476
  }
32271
- }
32272
- ]
32273
- }
32274
- },
32275
- "modifiers": {
32276
- "background": {
32277
- "token": "surfaceElevated"
32278
- },
32279
- "border": {
32280
- "width": 1,
32281
- "color": {
32282
- "token": "border"
32283
- }
32284
- },
32285
- "cornerRadius": 8,
32286
- "padding": {
32287
- "leading": 14,
32288
- "trailing": 14,
32289
- "top": 14,
32290
- "bottom": 14
32291
- },
32292
- "hiddenPath": "$service:himiStoreProduct.noOptions"
32293
- }
32294
- },
32295
- {
32296
- "id": "himi_product.qty_card",
32297
- "body": {
32298
- "package": "himalaya",
32299
- "type": "VStack",
32300
- "props": {
32301
- "spacing": 12,
32302
- "alignment": "leading",
32303
- "children": [
33477
+ },
32304
33478
  {
32305
- "id": "himi_product.qty_row",
33479
+ "id": "himi_product.return_policy",
32306
33480
  "body": {
32307
33481
  "package": "himalaya",
32308
- "type": "HStack",
33482
+ "type": "VStack",
32309
33483
  "props": {
32310
- "spacing": 12,
33484
+ "spacing": 0,
33485
+ "alignment": "leading",
32311
33486
  "children": [
32312
33487
  {
32313
- "id": "",
33488
+ "id": "himi_product.return_policy.header",
32314
33489
  "body": {
32315
33490
  "package": "himalaya",
32316
- "type": "Text",
33491
+ "type": "HStack",
32317
33492
  "props": {
32318
- "text": "Quantity",
32319
- "style": "bodyEmphasis"
33493
+ "spacing": 12,
33494
+ "children": [
33495
+ {
33496
+ "id": "",
33497
+ "body": {
33498
+ "package": "himalaya",
33499
+ "type": "Text",
33500
+ "props": {
33501
+ "text": "Return & refund policy",
33502
+ "style": "body",
33503
+ "maxLines": 2
33504
+ }
33505
+ }
33506
+ },
33507
+ {
33508
+ "id": "",
33509
+ "body": {
33510
+ "package": "himalaya",
33511
+ "type": "Spacer",
33512
+ "props": {}
33513
+ }
33514
+ },
33515
+ {
33516
+ "id": "",
33517
+ "body": {
33518
+ "package": "himalaya",
33519
+ "type": "Icon",
33520
+ "props": {
33521
+ "name": "chevron_down",
33522
+ "size": 16,
33523
+ "tint": "textSecondary"
33524
+ }
33525
+ },
33526
+ "modifiers": {
33527
+ "accessibilityRole": "decorative",
33528
+ "hiddenPath": "$service:himiStoreProduct.returnPolicyExpanded"
33529
+ }
33530
+ },
33531
+ {
33532
+ "id": "",
33533
+ "body": {
33534
+ "package": "himalaya",
33535
+ "type": "Icon",
33536
+ "props": {
33537
+ "name": "chevron_up",
33538
+ "size": 16,
33539
+ "tint": "textSecondary"
33540
+ }
33541
+ },
33542
+ "modifiers": {
33543
+ "accessibilityRole": "decorative",
33544
+ "hiddenPath": "$service:himiStoreProduct.returnPolicyCollapsed"
33545
+ }
33546
+ }
33547
+ ]
32320
33548
  }
33549
+ },
33550
+ "modifiers": {
33551
+ "fillMaxWidth": true,
33552
+ "padding": {
33553
+ "top": 18,
33554
+ "bottom": 18
33555
+ },
33556
+ "onTap": {
33557
+ "actionId": "tier5.himiStoreProduct.toggleReturnPolicy"
33558
+ },
33559
+ "pressFeedback": "highlight",
33560
+ "accessibilityRole": "button",
33561
+ "accessibilityLabel": "Return & refund policy"
32321
33562
  }
32322
33563
  },
32323
33564
  {
32324
33565
  "id": "",
32325
33566
  "body": {
32326
33567
  "package": "himalaya",
32327
- "type": "Spacer",
32328
- "props": {}
33568
+ "type": "Text",
33569
+ "props": {
33570
+ "text": "$service:himiStoreProduct.returnPolicyBody",
33571
+ "style": "body",
33572
+ "color": "textSecondary"
33573
+ }
33574
+ },
33575
+ "modifiers": {
33576
+ "padding": {
33577
+ "bottom": 18
33578
+ },
33579
+ "hiddenPath": "$service:himiStoreProduct.returnPolicyCollapsed"
32329
33580
  }
32330
33581
  },
32331
33582
  {
32332
- "id": "himi_product.qty",
33583
+ "id": "",
32333
33584
  "body": {
32334
33585
  "package": "himalaya",
32335
- "type": "Stepper",
32336
- "props": {
32337
- "value": 1,
32338
- "min": 1,
32339
- "max": 99,
32340
- "onChange": {
32341
- "actionId": "tier5.himiStoreProduct.setQuantity"
32342
- }
32343
- }
32344
- },
32345
- "modifiers": {
32346
- "accessibilityLabel": "Quantity"
33586
+ "type": "Divider",
33587
+ "props": {}
33588
+ }
33589
+ }
33590
+ ]
33591
+ }
33592
+ }
33593
+ },
33594
+ {
33595
+ "id": "himi_product.shipping_info",
33596
+ "body": {
33597
+ "package": "himalaya",
33598
+ "type": "VStack",
33599
+ "props": {
33600
+ "spacing": 0,
33601
+ "alignment": "leading",
33602
+ "children": [
33603
+ {
33604
+ "id": "himi_product.shipping_info.header",
33605
+ "body": {
33606
+ "package": "himalaya",
33607
+ "type": "HStack",
33608
+ "props": {
33609
+ "spacing": 12,
33610
+ "children": [
33611
+ {
33612
+ "id": "",
33613
+ "body": {
33614
+ "package": "himalaya",
33615
+ "type": "Text",
33616
+ "props": {
33617
+ "text": "Shipping info",
33618
+ "style": "body",
33619
+ "maxLines": 2
33620
+ }
33621
+ }
33622
+ },
33623
+ {
33624
+ "id": "",
33625
+ "body": {
33626
+ "package": "himalaya",
33627
+ "type": "Spacer",
33628
+ "props": {}
33629
+ }
33630
+ },
33631
+ {
33632
+ "id": "",
33633
+ "body": {
33634
+ "package": "himalaya",
33635
+ "type": "Icon",
33636
+ "props": {
33637
+ "name": "chevron_down",
33638
+ "size": 16,
33639
+ "tint": "textSecondary"
33640
+ }
33641
+ },
33642
+ "modifiers": {
33643
+ "accessibilityRole": "decorative",
33644
+ "hiddenPath": "$service:himiStoreProduct.shippingInfoExpanded"
33645
+ }
33646
+ },
33647
+ {
33648
+ "id": "",
33649
+ "body": {
33650
+ "package": "himalaya",
33651
+ "type": "Icon",
33652
+ "props": {
33653
+ "name": "chevron_up",
33654
+ "size": 16,
33655
+ "tint": "textSecondary"
33656
+ }
33657
+ },
33658
+ "modifiers": {
33659
+ "accessibilityRole": "decorative",
33660
+ "hiddenPath": "$service:himiStoreProduct.shippingInfoCollapsed"
33661
+ }
33662
+ }
33663
+ ]
33664
+ }
33665
+ },
33666
+ "modifiers": {
33667
+ "fillMaxWidth": true,
33668
+ "padding": {
33669
+ "top": 18,
33670
+ "bottom": 18
33671
+ },
33672
+ "onTap": {
33673
+ "actionId": "tier5.himiStoreProduct.toggleShippingInfo"
33674
+ },
33675
+ "pressFeedback": "highlight",
33676
+ "accessibilityRole": "button",
33677
+ "accessibilityLabel": "Shipping info"
33678
+ }
33679
+ },
33680
+ {
33681
+ "id": "",
33682
+ "body": {
33683
+ "package": "himalaya",
33684
+ "type": "Text",
33685
+ "props": {
33686
+ "text": "$service:himiStoreProduct.shippingInfoBody",
33687
+ "style": "body",
33688
+ "color": "textSecondary"
33689
+ }
33690
+ },
33691
+ "modifiers": {
33692
+ "padding": {
33693
+ "bottom": 18
33694
+ },
33695
+ "hiddenPath": "$service:himiStoreProduct.shippingInfoCollapsed"
33696
+ }
33697
+ },
33698
+ {
33699
+ "id": "",
33700
+ "body": {
33701
+ "package": "himalaya",
33702
+ "type": "Divider",
33703
+ "props": {}
32347
33704
  }
32348
33705
  }
32349
33706
  ]
32350
33707
  }
32351
33708
  }
32352
33709
  }
32353
- ]
32354
- }
32355
- },
32356
- "modifiers": {
32357
- "background": {
32358
- "token": "surfaceElevated"
32359
- },
32360
- "border": {
32361
- "width": 1,
32362
- "color": {
32363
- "token": "border"
32364
- }
32365
- },
32366
- "cornerRadius": 8,
32367
- "padding": {
32368
- "leading": 14,
32369
- "trailing": 14,
32370
- "top": 14,
32371
- "bottom": 14
32372
- }
32373
- }
32374
- },
32375
- {
32376
- "id": "himi_product.save",
32377
- "body": {
32378
- "package": "himalaya",
32379
- "type": "Button",
32380
- "props": {
32381
- "title": "$service:himiStoreProduct.saveLabel",
32382
- "style": "secondary",
32383
- "fullWidth": true,
32384
- "leadingIcon": "bookmark",
32385
- "action": {
32386
- "actionId": "tier5.himiStoreProduct.toggleSave"
32387
- }
32388
- }
32389
- }
32390
- },
32391
- {
32392
- "id": "himi_product.save_hint",
32393
- "body": {
32394
- "package": "himalaya",
32395
- "type": "Text",
32396
- "props": {
32397
- "text": "$service:himiStoreProduct.saveHint",
32398
- "style": "footnote",
32399
- "collapseWhenEmpty": true
32400
- }
32401
- }
32402
- },
32403
- {
32404
- "id": "himi_product.saved_list",
32405
- "body": {
32406
- "package": "himalaya",
32407
- "type": "Button",
32408
- "props": {
32409
- "title": "View saved products",
32410
- "style": "secondary",
32411
- "fullWidth": true,
32412
- "action": {
32413
- "actionId": "himi.open",
32414
- "params": {
32415
- "screenId": "himi_saved_products"
32416
- }
32417
- }
32418
- }
32419
- }
32420
- },
32421
- {
32422
- "id": "himi_product.share",
32423
- "body": {
32424
- "package": "himalaya",
32425
- "type": "Button",
32426
- "props": {
32427
- "title": "Share",
32428
- "style": "secondary",
32429
- "fullWidth": true,
32430
- "leadingIcon": "share",
32431
- "action": {
32432
- "actionId": "tier5.himiStoreProduct.share"
32433
- }
32434
- }
32435
- }
32436
- },
32437
- {
32438
- "id": "",
32439
- "body": {
32440
- "package": "himalaya",
32441
- "type": "Text",
32442
- "props": {
32443
- "text": "$service:himiStoreProduct.cartHint",
32444
- "style": "footnote",
32445
- "color": "textSecondary",
32446
- "collapseWhenEmpty": true
33710
+ ]
32447
33711
  }
32448
33712
  },
32449
33713
  "modifiers": {
32450
- "hiddenPath": "$service:himiStoreProduct.added"
33714
+ "padding": {
33715
+ "leading": 16,
33716
+ "trailing": 16,
33717
+ "top": 4,
33718
+ "bottom": 8
33719
+ }
32451
33720
  }
32452
33721
  }
32453
33722
  ]
32454
33723
  }
32455
33724
  },
32456
33725
  "modifiers": {
32457
- "hiddenPath": "$service:himiStoreProduct.isLoading"
33726
+ "hiddenPath": "$service:himiStoreProduct.hideProduct"
33727
+ }
33728
+ },
33729
+ {
33730
+ "id": "himi_product.share_hint",
33731
+ "body": {
33732
+ "package": "himalaya",
33733
+ "type": "Snackbar",
33734
+ "props": {
33735
+ "message": "Sharing is not available on this device.",
33736
+ "severity": "warning",
33737
+ "durationMs": 3000
33738
+ }
33739
+ },
33740
+ "modifiers": {
33741
+ "hiddenPath": "$service:himiStoreProduct.noShareHint"
32458
33742
  }
32459
33743
  },
32460
33744
  {
@@ -32508,24 +33792,273 @@ const TEMPLATED: { pattern: string; display: string; liveSeed?: LiveSeed; static
32508
33792
  "screenId": "himi_shop"
32509
33793
  }
32510
33794
  }
32511
- }
33795
+ }
33796
+ }
33797
+ }
33798
+ ]
33799
+ }
33800
+ },
33801
+ "modifiers": {
33802
+ "padding": {
33803
+ "leading": 24,
33804
+ "trailing": 24,
33805
+ "top": 24,
33806
+ "bottom": 24
33807
+ },
33808
+ "transition": {
33809
+ "enter": "fade",
33810
+ "exit": "fade"
33811
+ },
33812
+ "hiddenPath": "$service:himiStoreProduct.noEmpty"
33813
+ }
33814
+ },
33815
+ {
33816
+ "id": "himi_product.added_sheet",
33817
+ "body": {
33818
+ "package": "himalaya",
33819
+ "type": "BottomSheet",
33820
+ "props": {
33821
+ "presentedPath": "$service:himiStoreProduct.addedSheetPresented",
33822
+ "placement": "inline",
33823
+ "modal": false,
33824
+ "autoDismissMs": 4000,
33825
+ "detents": [
33826
+ 0.5,
33827
+ 0.9
33828
+ ],
33829
+ "label": "Item added to cart",
33830
+ "onDismiss": {
33831
+ "actionId": "tier5.himiStoreProduct.closeAddedSheet"
33832
+ },
33833
+ "content": {
33834
+ "id": "",
33835
+ "body": {
33836
+ "package": "himalaya",
33837
+ "type": "VStack",
33838
+ "props": {
33839
+ "spacing": 16,
33840
+ "children": [
33841
+ {
33842
+ "id": "",
33843
+ "body": {
33844
+ "package": "himalaya",
33845
+ "type": "HStack",
33846
+ "props": {
33847
+ "spacing": 12,
33848
+ "children": [
33849
+ {
33850
+ "id": "himi_product.added_sheet_title",
33851
+ "body": {
33852
+ "package": "himalaya",
33853
+ "type": "Text",
33854
+ "props": {
33855
+ "text": "Item added to cart",
33856
+ "style": "title3"
33857
+ }
33858
+ }
33859
+ },
33860
+ {
33861
+ "id": "",
33862
+ "body": {
33863
+ "package": "himalaya",
33864
+ "type": "Spacer",
33865
+ "props": {}
33866
+ }
33867
+ },
33868
+ {
33869
+ "id": "himi_product.added_sheet_close",
33870
+ "body": {
33871
+ "package": "himalaya",
33872
+ "type": "Button",
33873
+ "props": {
33874
+ "title": "Close confirmation",
33875
+ "action": {
33876
+ "actionId": "tier5.himiStoreProduct.closeAddedSheet"
33877
+ },
33878
+ "style": "tertiary",
33879
+ "iconOnly": true,
33880
+ "leadingIcon": "close",
33881
+ "cornerRadius": 22,
33882
+ "minHeight": 44
33883
+ }
33884
+ },
33885
+ "modifiers": {
33886
+ "width": 44,
33887
+ "height": 44,
33888
+ "accessibilityLabel": "Close confirmation",
33889
+ "accessibilityRole": "button"
33890
+ }
33891
+ }
33892
+ ]
33893
+ }
33894
+ },
33895
+ "modifiers": {
33896
+ "background": {
33897
+ "token": "surfaceSecondary"
33898
+ },
33899
+ "padding": {
33900
+ "leading": 16,
33901
+ "trailing": 16,
33902
+ "top": 12,
33903
+ "bottom": 12
33904
+ }
33905
+ }
33906
+ },
33907
+ {
33908
+ "id": "",
33909
+ "body": {
33910
+ "package": "himalaya",
33911
+ "type": "HStack",
33912
+ "props": {
33913
+ "spacing": 12,
33914
+ "children": [
33915
+ {
33916
+ "id": "",
33917
+ "body": {
33918
+ "package": "himalaya",
33919
+ "type": "Image",
33920
+ "props": {
33921
+ "url": "$service:himiStoreProduct.image",
33922
+ "width": 88,
33923
+ "height": 112,
33924
+ "contentMode": "fill",
33925
+ "shape": "rect",
33926
+ "contentDescription": "$service:himiStoreProduct.name"
33927
+ }
33928
+ }
33929
+ },
33930
+ {
33931
+ "id": "",
33932
+ "body": {
33933
+ "package": "himalaya",
33934
+ "type": "VStack",
33935
+ "props": {
33936
+ "spacing": 6,
33937
+ "alignment": "leading",
33938
+ "children": [
33939
+ {
33940
+ "id": "",
33941
+ "body": {
33942
+ "package": "himalaya",
33943
+ "type": "Text",
33944
+ "props": {
33945
+ "text": "$service:himiStoreProduct.name",
33946
+ "style": "bodyEmphasis",
33947
+ "maxLines": 2
33948
+ }
33949
+ }
33950
+ },
33951
+ {
33952
+ "id": "",
33953
+ "body": {
33954
+ "package": "himalaya",
33955
+ "type": "Text",
33956
+ "props": {
33957
+ "text": "$service:himiStoreProduct.price",
33958
+ "style": "body"
33959
+ }
33960
+ }
33961
+ },
33962
+ {
33963
+ "id": "",
33964
+ "body": {
33965
+ "package": "himalaya",
33966
+ "type": "Text",
33967
+ "props": {
33968
+ "text": "$service:himiStoreProduct.optionsSummary",
33969
+ "style": "footnote",
33970
+ "color": "textSecondary",
33971
+ "collapseWhenEmpty": true
33972
+ }
33973
+ }
33974
+ },
33975
+ {
33976
+ "id": "",
33977
+ "body": {
33978
+ "package": "himalaya",
33979
+ "type": "Text",
33980
+ "props": {
33981
+ "text": "$service:himiStoreProduct.quantityLabel",
33982
+ "style": "footnote",
33983
+ "color": "textSecondary"
33984
+ }
33985
+ },
33986
+ "modifiers": {
33987
+ "hiddenPath": "$service:himiStoreProduct.quantityIsOne"
33988
+ }
33989
+ }
33990
+ ]
33991
+ }
33992
+ }
33993
+ }
33994
+ ]
33995
+ }
33996
+ }
33997
+ },
33998
+ {
33999
+ "id": "",
34000
+ "body": {
34001
+ "package": "himalaya",
34002
+ "type": "HStack",
34003
+ "props": {
34004
+ "spacing": 10,
34005
+ "children": [
34006
+ {
34007
+ "id": "himi_product.view_cart",
34008
+ "body": {
34009
+ "package": "himalaya",
34010
+ "type": "Button",
34011
+ "props": {
34012
+ "title": "View cart",
34013
+ "style": "secondary",
34014
+ "fullWidth": true,
34015
+ "action": {
34016
+ "actionId": "himi.open",
34017
+ "params": {
34018
+ "screenId": "himi_cart"
34019
+ }
34020
+ }
34021
+ }
34022
+ }
34023
+ },
34024
+ {
34025
+ "id": "himi_product.checkout",
34026
+ "body": {
34027
+ "package": "himalaya",
34028
+ "type": "Button",
34029
+ "props": {
34030
+ "title": "Checkout",
34031
+ "style": "primary",
34032
+ "fullWidth": true,
34033
+ "action": {
34034
+ "actionId": "himi.open",
34035
+ "params": {
34036
+ "screenId": "himi_cart"
34037
+ }
34038
+ }
34039
+ }
34040
+ }
34041
+ }
34042
+ ]
34043
+ }
34044
+ }
34045
+ }
34046
+ ]
34047
+ }
34048
+ },
34049
+ "modifiers": {
34050
+ "padding": {
34051
+ "leading": 16,
34052
+ "trailing": 16,
34053
+ "top": 16,
34054
+ "bottom": 24
34055
+ },
34056
+ "background": {
34057
+ "token": "surfacePrimary"
32512
34058
  }
32513
34059
  }
32514
- ]
34060
+ }
32515
34061
  }
32516
- },
32517
- "modifiers": {
32518
- "padding": {
32519
- "leading": 24,
32520
- "trailing": 24,
32521
- "top": 24,
32522
- "bottom": 24
32523
- },
32524
- "transition": {
32525
- "enter": "fade",
32526
- "exit": "fade"
32527
- },
32528
- "hiddenPath": "$service:himiStoreProduct.noEmpty"
32529
34062
  }
32530
34063
  }
32531
34064
  ]
@@ -32536,9 +34069,7 @@ const TEMPLATED: { pattern: string; display: string; liveSeed?: LiveSeed; static
32536
34069
  "token": "surfacePrimary"
32537
34070
  },
32538
34071
  "padding": {
32539
- "leading": 16,
32540
- "trailing": 16,
32541
- "top": 18,
34072
+ "top": 0,
32542
34073
  "bottom": 24
32543
34074
  },
32544
34075
  "onAppear": {
@@ -32565,7 +34096,7 @@ const TEMPLATED: { pattern: string; display: string; liveSeed?: LiveSeed; static
32565
34096
  "id": "__HIMI_ID__"
32566
34097
  },
32567
34098
  "stickyFooter": {
32568
- "id": "",
34099
+ "id": "himi_product.stickyFooter",
32569
34100
  "body": {
32570
34101
  "package": "himalaya",
32571
34102
  "type": "VStack",
@@ -32573,183 +34104,200 @@ const TEMPLATED: { pattern: string; display: string; liveSeed?: LiveSeed; static
32573
34104
  "spacing": 8,
32574
34105
  "children": [
32575
34106
  {
32576
- "id": "himi_product.add_to_cart",
32577
- "body": {
32578
- "package": "himalaya",
32579
- "type": "Button",
32580
- "props": {
32581
- "title": "Add to cart",
32582
- "style": "primary",
32583
- "fullWidth": true,
32584
- "action": {
32585
- "actionId": "tier5.himiStoreProduct.addToCart"
32586
- },
32587
- "disabledPath": "$service:himiStoreProduct.optionsIncomplete"
32588
- }
32589
- },
32590
- "modifiers": {
32591
- "cornerRadius": 8,
32592
- "pressFeedback": "scale",
32593
- "haptic": "medium",
32594
- "hiddenPath": "$service:himiStoreProduct.cartHidden"
32595
- }
32596
- },
32597
- {
32598
- "id": "himi_product.buy",
34107
+ "id": "himi_product.save_hint",
32599
34108
  "body": {
32600
34109
  "package": "himalaya",
32601
- "type": "Button",
34110
+ "type": "Banner",
32602
34111
  "props": {
32603
- "title": "$service:himiStoreProduct.buyLabel",
32604
- "style": "primary",
32605
- "fullWidth": true,
32606
- "disabledPath": "$service:himiStoreProduct.buyDisabled",
32607
- "action": {
32608
- "actionId": "tier5.himiStoreProduct.buy"
32609
- }
34112
+ "title": "$service:himiStoreProduct.saveHint",
34113
+ "severity": "warning"
32610
34114
  }
32611
34115
  },
32612
34116
  "modifiers": {
32613
- "hiddenPath": "$service:himiStoreProduct.buyHidden"
34117
+ "hiddenPath": "$service:himiStoreProduct.noSaveHint"
32614
34118
  }
32615
34119
  },
32616
34120
  {
32617
- "id": "himi_product.buy_note",
34121
+ "id": "himi_product.cart_hint",
32618
34122
  "body": {
32619
34123
  "package": "himalaya",
32620
- "type": "Text",
34124
+ "type": "Banner",
32621
34125
  "props": {
32622
- "text": "$service:himiStoreProduct.buyNote",
32623
- "style": "footnote",
32624
- "color": "textSecondary",
32625
- "collapseWhenEmpty": true
34126
+ "title": "$service:himiStoreProduct.cartHint",
34127
+ "severity": "warning"
32626
34128
  }
32627
34129
  },
32628
34130
  "modifiers": {
32629
- "hiddenPath": "$service:himiStoreProduct.buyHidden"
34131
+ "hiddenPath": "$service:himiStoreProduct.noCartHint"
32630
34132
  }
32631
34133
  },
32632
34134
  {
32633
- "id": "himi_product.purchased",
32634
- "body": {
32635
- "package": "himalaya",
32636
- "type": "Text",
32637
- "props": {
32638
- "text": "$service:himiStoreProduct.purchasedNote",
32639
- "style": "footnote",
32640
- "collapseWhenEmpty": true
32641
- }
32642
- }
32643
- },
32644
- {
32645
- "id": "himi_product.adding",
34135
+ "id": "",
32646
34136
  "body": {
32647
34137
  "package": "himalaya",
32648
- "type": "HStack",
32649
- "props": {
32650
- "spacing": 8,
32651
- "children": [
32652
- {
32653
- "id": "",
32654
- "body": {
32655
- "package": "himalaya",
32656
- "type": "ActivityIndicator",
32657
- "props": {
32658
- "indeterminate": true,
32659
- "size": 16
32660
- }
32661
- }
32662
- },
32663
- {
32664
- "id": "",
32665
- "body": {
32666
- "package": "himalaya",
32667
- "type": "Text",
32668
- "props": {
32669
- "text": "Adding to cart…",
32670
- "style": "footnote",
32671
- "color": "textSecondary"
32672
- }
32673
- }
32674
- }
32675
- ]
32676
- }
32677
- },
32678
- "modifiers": {
32679
- "hiddenPath": "$service:himiStoreProduct.notAdding"
34138
+ "type": "Divider",
34139
+ "props": {}
32680
34140
  }
32681
34141
  },
32682
34142
  {
32683
- "id": "himi_product.added_confirmation",
34143
+ "id": "",
32684
34144
  "body": {
32685
34145
  "package": "himalaya",
32686
34146
  "type": "HStack",
32687
34147
  "props": {
32688
- "spacing": 10,
34148
+ "spacing": 12,
32689
34149
  "children": [
32690
34150
  {
32691
- "id": "",
34151
+ "id": "himi_product.save",
32692
34152
  "body": {
32693
34153
  "package": "himalaya",
32694
- "type": "Icon",
34154
+ "type": "ZStack",
32695
34155
  "props": {
32696
- "name": "check",
32697
- "size": 18,
32698
- "tint": "success"
34156
+ "alignment": "center",
34157
+ "children": [
34158
+ {
34159
+ "id": "",
34160
+ "body": {
34161
+ "package": "himalaya",
34162
+ "type": "Icon",
34163
+ "props": {
34164
+ "name": "$service:himiStoreProduct.saveIcon",
34165
+ "size": 22,
34166
+ "tint": "textPrimary"
34167
+ }
34168
+ },
34169
+ "modifiers": {
34170
+ "accessibilityRole": "decorative"
34171
+ }
34172
+ }
34173
+ ]
32699
34174
  }
32700
34175
  },
32701
34176
  "modifiers": {
32702
- "accessibilityRole": "decorative"
34177
+ "width": 48,
34178
+ "height": 48,
34179
+ "cornerRadius": 24,
34180
+ "border": {
34181
+ "width": 1,
34182
+ "color": {
34183
+ "token": "border"
34184
+ }
34185
+ },
34186
+ "onTap": {
34187
+ "actionId": "tier5.himiStoreProduct.toggleSave"
34188
+ },
34189
+ "accessibilityRole": "button",
34190
+ "accessibilityLabel": "$service:himiStoreProduct.saveLabel",
34191
+ "haptic": "light"
32703
34192
  }
32704
34193
  },
32705
34194
  {
32706
- "id": "",
34195
+ "id": "himi_product.add_to_cart",
32707
34196
  "body": {
32708
34197
  "package": "himalaya",
32709
- "type": "Text",
34198
+ "type": "Button",
32710
34199
  "props": {
32711
- "text": "$service:himiStoreProduct.cartHint",
32712
- "style": "footnote",
32713
- "collapseWhenEmpty": true
34200
+ "title": "Add to cart",
34201
+ "style": "primary",
34202
+ "fullWidth": true,
34203
+ "action": {
34204
+ "actionId": "tier5.himiStoreProduct.addToCart"
34205
+ },
34206
+ "disabledPath": "$service:himiStoreProduct.addDisabled"
32714
34207
  }
32715
34208
  },
32716
34209
  "modifiers": {
34210
+ "cornerRadius": 8,
34211
+ "pressFeedback": "scale",
34212
+ "haptic": "medium",
34213
+ "height": 48,
34214
+ "hiddenPath": "$service:himiStoreProduct.cartHidden",
32717
34215
  "weight": 1
32718
34216
  }
32719
34217
  },
32720
34218
  {
32721
- "id": "himi_product.view_cart",
34219
+ "id": "himi_product.adding",
32722
34220
  "body": {
32723
34221
  "package": "himalaya",
32724
- "type": "Button",
34222
+ "type": "ZStack",
32725
34223
  "props": {
32726
- "title": "View cart",
32727
- "style": "tertiary",
32728
- "action": {
32729
- "actionId": "himi.open",
32730
- "params": {
32731
- "screenId": "himi_cart"
34224
+ "alignment": "center",
34225
+ "children": [
34226
+ {
34227
+ "id": "",
34228
+ "body": {
34229
+ "package": "himalaya",
34230
+ "type": "ActivityIndicator",
34231
+ "props": {
34232
+ "indeterminate": true,
34233
+ "size": 18,
34234
+ "tint": "textOnAccent"
34235
+ }
34236
+ }
32732
34237
  }
32733
- }
34238
+ ]
32734
34239
  }
34240
+ },
34241
+ "modifiers": {
34242
+ "weight": 1,
34243
+ "height": 48,
34244
+ "background": {
34245
+ "token": "accentPrimary"
34246
+ },
34247
+ "cornerRadius": 8,
34248
+ "accessibilityLabel": "Adding to cart…",
34249
+ "hiddenPath": "$service:himiStoreProduct.notAdding"
32735
34250
  }
32736
34251
  }
32737
34252
  ]
32738
34253
  }
34254
+ }
34255
+ },
34256
+ {
34257
+ "id": "himi_product.buy",
34258
+ "body": {
34259
+ "package": "himalaya",
34260
+ "type": "Button",
34261
+ "props": {
34262
+ "title": "$service:himiStoreProduct.buyLabel",
34263
+ "style": "primary",
34264
+ "fullWidth": true,
34265
+ "disabledPath": "$service:himiStoreProduct.buyDisabled",
34266
+ "action": {
34267
+ "actionId": "tier5.himiStoreProduct.buy"
34268
+ }
34269
+ }
32739
34270
  },
32740
34271
  "modifiers": {
32741
- "background": {
32742
- "token": "surfaceSecondary"
32743
- },
32744
- "cornerRadius": 8,
32745
- "padding": {
32746
- "leading": 12,
32747
- "trailing": 8,
32748
- "top": 6,
32749
- "bottom": 6
32750
- },
32751
- "fillMaxWidth": true,
32752
- "hiddenPath": "$service:himiStoreProduct.notAdded"
34272
+ "hiddenPath": "$service:himiStoreProduct.buyHidden"
34273
+ }
34274
+ },
34275
+ {
34276
+ "id": "himi_product.buy_note",
34277
+ "body": {
34278
+ "package": "himalaya",
34279
+ "type": "Text",
34280
+ "props": {
34281
+ "text": "$service:himiStoreProduct.buyNote",
34282
+ "style": "footnote",
34283
+ "color": "textSecondary",
34284
+ "collapseWhenEmpty": true
34285
+ }
34286
+ },
34287
+ "modifiers": {
34288
+ "hiddenPath": "$service:himiStoreProduct.buyHidden"
34289
+ }
34290
+ },
34291
+ {
34292
+ "id": "himi_product.purchased",
34293
+ "body": {
34294
+ "package": "himalaya",
34295
+ "type": "Text",
34296
+ "props": {
34297
+ "text": "$service:himiStoreProduct.purchasedNote",
34298
+ "style": "footnote",
34299
+ "collapseWhenEmpty": true
34300
+ }
32753
34301
  }
32754
34302
  }
32755
34303
  ]
@@ -32765,11 +34313,19 @@ const TEMPLATED: { pattern: string; display: string; liveSeed?: LiveSeed; static
32765
34313
  "top": 8,
32766
34314
  "bottom": 8
32767
34315
  },
32768
- "hiddenPath": "$service:himiStoreProduct.isLoading"
34316
+ "hiddenPath": "$service:himiStoreProduct.hideBar"
32769
34317
  }
32770
34318
  },
32771
34319
  "topBar": {
32772
34320
  "actions": [
34321
+ {
34322
+ "id": "share",
34323
+ "icon": "share",
34324
+ "accessibilityLabel": "Share",
34325
+ "onTap": {
34326
+ "actionId": "tier5.himiStoreProduct.share"
34327
+ }
34328
+ },
32773
34329
  {
32774
34330
  "id": "cart",
32775
34331
  "icon": "cart",