@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
  }
@@ -7660,9 +7660,9 @@ const SCREENS = runtimeSetting({
7660
7660
  "package": "himalaya",
7661
7661
  "type": "Button",
7662
7662
  "props": {
7663
- "title": "Saved products",
7663
+ "title": "Wishlist",
7664
7664
  "style": "plain",
7665
- "leadingIcon": "bookmark",
7665
+ "leadingIcon": "heart",
7666
7666
  "fullWidth": false,
7667
7667
  "action": {
7668
7668
  "actionId": "himi.open",
@@ -10213,54 +10213,213 @@ const SCREENS = runtimeSetting({
10213
10213
  "package": "himalaya",
10214
10214
  "type": "Text",
10215
10215
  "props": {
10216
- "text": "Saved products",
10216
+ "text": "Wishlist",
10217
10217
  "style": "title1"
10218
10218
  }
10219
10219
  }
10220
10220
  },
10221
- {
10222
- "id": "",
10223
- "body": {
10224
- "package": "himalaya",
10225
- "type": "Text",
10226
- "props": {
10227
- "text": "Saved on this device. Open a product for its latest price and availability.",
10228
- "style": "footnote",
10229
- "color": "textSecondary"
10230
- }
10231
- }
10232
- },
10233
10221
  {
10234
10222
  "id": "himi_saved_products.skeleton",
10235
10223
  "body": {
10236
10224
  "package": "himalaya",
10237
- "type": "Skeleton",
10225
+ "type": "Grid",
10238
10226
  "props": {
10239
- "height": 168,
10240
- "cornerRadius": 8
10227
+ "columns": 2,
10228
+ "spacing": 14,
10229
+ "items": [
10230
+ {
10231
+ "id": "",
10232
+ "body": {
10233
+ "package": "himalaya",
10234
+ "type": "VStack",
10235
+ "props": {
10236
+ "spacing": 8,
10237
+ "children": [
10238
+ {
10239
+ "id": "himi_saved_products.skeleton_image",
10240
+ "body": {
10241
+ "package": "himalaya",
10242
+ "type": "Skeleton",
10243
+ "props": {
10244
+ "height": 168,
10245
+ "cornerRadius": 8
10246
+ }
10247
+ },
10248
+ "modifiers": {
10249
+ "height": 168,
10250
+ "background": {
10251
+ "token": "surfaceSecondary"
10252
+ },
10253
+ "cornerRadius": 8,
10254
+ "accessibilityRole": "decorative"
10255
+ }
10256
+ },
10257
+ {
10258
+ "id": "himi_saved_products.skeleton_name",
10259
+ "body": {
10260
+ "package": "himalaya",
10261
+ "type": "Skeleton",
10262
+ "props": {
10263
+ "height": 14,
10264
+ "cornerRadius": 8
10265
+ }
10266
+ },
10267
+ "modifiers": {
10268
+ "height": 14,
10269
+ "background": {
10270
+ "token": "surfaceSecondary"
10271
+ },
10272
+ "cornerRadius": 8,
10273
+ "accessibilityRole": "decorative"
10274
+ }
10275
+ },
10276
+ {
10277
+ "id": "himi_saved_products.skeleton_price",
10278
+ "body": {
10279
+ "package": "himalaya",
10280
+ "type": "Skeleton",
10281
+ "props": {
10282
+ "height": 12,
10283
+ "cornerRadius": 8
10284
+ }
10285
+ },
10286
+ "modifiers": {
10287
+ "height": 12,
10288
+ "background": {
10289
+ "token": "surfaceSecondary"
10290
+ },
10291
+ "cornerRadius": 8,
10292
+ "accessibilityRole": "decorative"
10293
+ }
10294
+ }
10295
+ ]
10296
+ }
10297
+ },
10298
+ "modifiers": {
10299
+ "background": {
10300
+ "token": "surfaceSecondary"
10301
+ },
10302
+ "border": {
10303
+ "width": 1,
10304
+ "color": {
10305
+ "token": "border"
10306
+ }
10307
+ },
10308
+ "cornerRadius": 4,
10309
+ "padding": {
10310
+ "leading": 8,
10311
+ "trailing": 8,
10312
+ "top": 8,
10313
+ "bottom": 8
10314
+ }
10315
+ }
10316
+ },
10317
+ {
10318
+ "id": "",
10319
+ "body": {
10320
+ "package": "himalaya",
10321
+ "type": "VStack",
10322
+ "props": {
10323
+ "spacing": 8,
10324
+ "children": [
10325
+ {
10326
+ "id": "himi_saved_products.skeleton_image",
10327
+ "body": {
10328
+ "package": "himalaya",
10329
+ "type": "Skeleton",
10330
+ "props": {
10331
+ "height": 168,
10332
+ "cornerRadius": 8
10333
+ }
10334
+ },
10335
+ "modifiers": {
10336
+ "height": 168,
10337
+ "background": {
10338
+ "token": "surfaceSecondary"
10339
+ },
10340
+ "cornerRadius": 8,
10341
+ "accessibilityRole": "decorative"
10342
+ }
10343
+ },
10344
+ {
10345
+ "id": "himi_saved_products.skeleton_name",
10346
+ "body": {
10347
+ "package": "himalaya",
10348
+ "type": "Skeleton",
10349
+ "props": {
10350
+ "height": 14,
10351
+ "cornerRadius": 8
10352
+ }
10353
+ },
10354
+ "modifiers": {
10355
+ "height": 14,
10356
+ "background": {
10357
+ "token": "surfaceSecondary"
10358
+ },
10359
+ "cornerRadius": 8,
10360
+ "accessibilityRole": "decorative"
10361
+ }
10362
+ },
10363
+ {
10364
+ "id": "himi_saved_products.skeleton_price",
10365
+ "body": {
10366
+ "package": "himalaya",
10367
+ "type": "Skeleton",
10368
+ "props": {
10369
+ "height": 12,
10370
+ "cornerRadius": 8
10371
+ }
10372
+ },
10373
+ "modifiers": {
10374
+ "height": 12,
10375
+ "background": {
10376
+ "token": "surfaceSecondary"
10377
+ },
10378
+ "cornerRadius": 8,
10379
+ "accessibilityRole": "decorative"
10380
+ }
10381
+ }
10382
+ ]
10383
+ }
10384
+ },
10385
+ "modifiers": {
10386
+ "background": {
10387
+ "token": "surfaceSecondary"
10388
+ },
10389
+ "border": {
10390
+ "width": 1,
10391
+ "color": {
10392
+ "token": "border"
10393
+ }
10394
+ },
10395
+ "cornerRadius": 4,
10396
+ "padding": {
10397
+ "leading": 8,
10398
+ "trailing": 8,
10399
+ "top": 8,
10400
+ "bottom": 8
10401
+ }
10402
+ }
10403
+ }
10404
+ ]
10241
10405
  }
10242
10406
  },
10243
10407
  "modifiers": {
10244
- "height": 168,
10245
- "background": {
10246
- "token": "surfaceSecondary"
10247
- },
10248
- "cornerRadius": 8,
10249
- "accessibilityRole": "decorative",
10250
10408
  "hiddenPath": "$service:himiStoreSaved.notLoading"
10251
10409
  }
10252
10410
  },
10253
10411
  {
10254
- "id": "",
10412
+ "id": "himi_saved_products.error",
10255
10413
  "body": {
10256
10414
  "package": "himalaya",
10257
- "type": "Text",
10415
+ "type": "Banner",
10258
10416
  "props": {
10259
- "text": "$service:himiStoreSaved.error",
10260
- "style": "footnote",
10261
- "color": "danger",
10262
- "collapseWhenEmpty": true
10417
+ "title": "$service:himiStoreSaved.error",
10418
+ "severity": "danger"
10263
10419
  }
10420
+ },
10421
+ "modifiers": {
10422
+ "hiddenPath": "$service:himiStoreSaved.notErrored"
10264
10423
  }
10265
10424
  },
10266
10425
  {
@@ -10367,81 +10526,282 @@ const SCREENS = runtimeSetting({
10367
10526
  "id": "himi_saved_products.list",
10368
10527
  "body": {
10369
10528
  "package": "himalaya",
10370
- "type": "LazyList",
10529
+ "type": "Grid",
10371
10530
  "props": {
10372
- "spacing": 16,
10531
+ "columns": 2,
10532
+ "columnsMedium": 3,
10533
+ "columnsExpanded": 4,
10534
+ "spacing": 14,
10373
10535
  "itemsPath": "$service:himiStoreSaved.rows",
10374
10536
  "items": [
10375
10537
  {
10376
- "id": "",
10538
+ "id": "himi_saved_products.row",
10377
10539
  "body": {
10378
10540
  "package": "himalaya",
10379
10541
  "type": "VStack",
10380
10542
  "props": {
10381
10543
  "spacing": 8,
10544
+ "alignment": "leading",
10382
10545
  "children": [
10383
10546
  {
10384
- "id": "himi_saved_products.row",
10547
+ "id": "",
10385
10548
  "body": {
10386
10549
  "package": "himalaya",
10387
- "type": "VStack",
10550
+ "type": "Image",
10388
10551
  "props": {
10389
- "spacing": 9,
10390
- "alignment": "leading",
10552
+ "url": "$item.image",
10553
+ "fillWidth": true,
10554
+ "aspectRatio": 0.75,
10555
+ "contentMode": "fill",
10556
+ "shape": "rect",
10557
+ "contentDescription": "$item.name"
10558
+ }
10559
+ },
10560
+ "modifiers": {
10561
+ "fillMaxWidth": true,
10562
+ "aspectRatio": 0.75,
10563
+ "onTap": {
10564
+ "actionId": "himi.open",
10565
+ "params": {
10566
+ "screenId": "himi_product",
10567
+ "id": "$item.id"
10568
+ }
10569
+ },
10570
+ "pressFeedback": "highlight",
10571
+ "haptic": "light",
10572
+ "hiddenPath": "$item.noImage"
10573
+ }
10574
+ },
10575
+ {
10576
+ "id": "",
10577
+ "body": {
10578
+ "package": "himalaya",
10579
+ "type": "ZStack",
10580
+ "props": {
10581
+ "alignment": "center",
10391
10582
  "children": [
10392
10583
  {
10393
10584
  "id": "",
10394
10585
  "body": {
10395
10586
  "package": "himalaya",
10396
- "type": "Image",
10587
+ "type": "Icon",
10397
10588
  "props": {
10398
- "url": "$item.image",
10399
- "fillWidth": true,
10400
- "height": 168,
10401
- "contentMode": "fill",
10402
- "contentDescription": "$item.name"
10589
+ "name": "photo",
10590
+ "size": 24,
10591
+ "tint": "textSecondary"
10403
10592
  }
10404
10593
  },
10405
10594
  "modifiers": {
10406
- "cornerRadius": 8,
10407
- "fillMaxWidth": true,
10408
- "hiddenPath": "$item.noImage"
10595
+ "accessibilityRole": "decorative"
10596
+ }
10597
+ }
10598
+ ]
10599
+ }
10600
+ },
10601
+ "modifiers": {
10602
+ "fillMaxWidth": true,
10603
+ "aspectRatio": 0.75,
10604
+ "background": {
10605
+ "token": "surfaceTertiary"
10606
+ },
10607
+ "onTap": {
10608
+ "actionId": "himi.open",
10609
+ "params": {
10610
+ "screenId": "himi_product",
10611
+ "id": "$item.id"
10612
+ }
10613
+ },
10614
+ "accessibilityLabel": "$item.name",
10615
+ "hiddenPath": "$item.hasImage"
10616
+ }
10617
+ },
10618
+ {
10619
+ "id": "himi_saved_products.tags",
10620
+ "body": {
10621
+ "package": "himalaya",
10622
+ "type": "HStack",
10623
+ "props": {
10624
+ "spacing": 8,
10625
+ "children": [
10626
+ {
10627
+ "id": "",
10628
+ "body": {
10629
+ "package": "himalaya",
10630
+ "type": "Text",
10631
+ "props": {
10632
+ "text": "On sale",
10633
+ "style": "caption",
10634
+ "color": "textPrimary"
10635
+ }
10636
+ },
10637
+ "modifiers": {
10638
+ "background": {
10639
+ "token": "surfaceTertiary"
10640
+ },
10641
+ "padding": {
10642
+ "leading": 8,
10643
+ "trailing": 8,
10644
+ "top": 4,
10645
+ "bottom": 4
10646
+ },
10647
+ "hiddenPath": "$item.notOnSale"
10409
10648
  }
10410
10649
  },
10411
10650
  {
10412
- "id": "himi_saved_products.row.monogram",
10651
+ "id": "himi_saved_products.swatches",
10413
10652
  "body": {
10414
10653
  "package": "himalaya",
10415
- "type": "ZStack",
10654
+ "type": "HStack",
10416
10655
  "props": {
10417
- "alignment": "center",
10656
+ "spacing": 5,
10418
10657
  "children": [
10419
10658
  {
10420
- "id": "",
10659
+ "id": "himi_saved_products.swatch_1",
10421
10660
  "body": {
10422
10661
  "package": "himalaya",
10423
10662
  "type": "Text",
10424
10663
  "props": {
10425
- "text": "$item.initial",
10426
- "style": "display",
10427
- "color": "textOnAccent",
10428
- "maxLines": 1
10664
+ "text": "",
10665
+ "style": "caption"
10666
+ }
10667
+ },
10668
+ "modifiers": {
10669
+ "width": 10,
10670
+ "height": 10,
10671
+ "cornerRadius": 5,
10672
+ "backgroundColorPath": "$item.swatch1",
10673
+ "border": {
10674
+ "width": 1,
10675
+ "color": {
10676
+ "token": "border"
10677
+ }
10678
+ },
10679
+ "accessibilityHidden": true,
10680
+ "hiddenPath": "$item.noSwatch1"
10681
+ }
10682
+ },
10683
+ {
10684
+ "id": "himi_saved_products.swatch_2",
10685
+ "body": {
10686
+ "package": "himalaya",
10687
+ "type": "Text",
10688
+ "props": {
10689
+ "text": "",
10690
+ "style": "caption"
10691
+ }
10692
+ },
10693
+ "modifiers": {
10694
+ "width": 10,
10695
+ "height": 10,
10696
+ "cornerRadius": 5,
10697
+ "backgroundColorPath": "$item.swatch2",
10698
+ "border": {
10699
+ "width": 1,
10700
+ "color": {
10701
+ "token": "border"
10702
+ }
10703
+ },
10704
+ "accessibilityHidden": true,
10705
+ "hiddenPath": "$item.noSwatch2"
10706
+ }
10707
+ },
10708
+ {
10709
+ "id": "himi_saved_products.swatch_3",
10710
+ "body": {
10711
+ "package": "himalaya",
10712
+ "type": "Text",
10713
+ "props": {
10714
+ "text": "",
10715
+ "style": "caption"
10716
+ }
10717
+ },
10718
+ "modifiers": {
10719
+ "width": 10,
10720
+ "height": 10,
10721
+ "cornerRadius": 5,
10722
+ "backgroundColorPath": "$item.swatch3",
10723
+ "border": {
10724
+ "width": 1,
10725
+ "color": {
10726
+ "token": "border"
10727
+ }
10728
+ },
10729
+ "accessibilityHidden": true,
10730
+ "hiddenPath": "$item.noSwatch3"
10731
+ }
10732
+ },
10733
+ {
10734
+ "id": "himi_saved_products.swatch_4",
10735
+ "body": {
10736
+ "package": "himalaya",
10737
+ "type": "Text",
10738
+ "props": {
10739
+ "text": "",
10740
+ "style": "caption"
10741
+ }
10742
+ },
10743
+ "modifiers": {
10744
+ "width": 10,
10745
+ "height": 10,
10746
+ "cornerRadius": 5,
10747
+ "backgroundColorPath": "$item.swatch4",
10748
+ "border": {
10749
+ "width": 1,
10750
+ "color": {
10751
+ "token": "border"
10752
+ }
10753
+ },
10754
+ "accessibilityHidden": true,
10755
+ "hiddenPath": "$item.noSwatch4"
10756
+ }
10757
+ },
10758
+ {
10759
+ "id": "himi_saved_products.swatch_5",
10760
+ "body": {
10761
+ "package": "himalaya",
10762
+ "type": "Text",
10763
+ "props": {
10764
+ "text": "",
10765
+ "style": "caption"
10429
10766
  }
10767
+ },
10768
+ "modifiers": {
10769
+ "width": 10,
10770
+ "height": 10,
10771
+ "cornerRadius": 5,
10772
+ "backgroundColorPath": "$item.swatch5",
10773
+ "border": {
10774
+ "width": 1,
10775
+ "color": {
10776
+ "token": "border"
10777
+ }
10778
+ },
10779
+ "accessibilityHidden": true,
10780
+ "hiddenPath": "$item.noSwatch5"
10430
10781
  }
10431
10782
  }
10432
10783
  ]
10433
10784
  }
10434
10785
  },
10435
10786
  "modifiers": {
10436
- "fillMaxWidth": true,
10437
- "height": 168,
10438
- "background": {
10439
- "token": "accentPrimary"
10440
- },
10441
- "cornerRadius": 8,
10442
- "hiddenPath": "$item.hasImage"
10787
+ "hiddenPath": "$item.noSwatches"
10443
10788
  }
10444
- },
10789
+ }
10790
+ ]
10791
+ }
10792
+ },
10793
+ "modifiers": {
10794
+ "hiddenPath": "$item.noTagRow"
10795
+ }
10796
+ },
10797
+ {
10798
+ "id": "",
10799
+ "body": {
10800
+ "package": "himalaya",
10801
+ "type": "HStack",
10802
+ "props": {
10803
+ "spacing": 6,
10804
+ "children": [
10445
10805
  {
10446
10806
  "id": "",
10447
10807
  "body": {
@@ -10449,9 +10809,42 @@ const SCREENS = runtimeSetting({
10449
10809
  "type": "Text",
10450
10810
  "props": {
10451
10811
  "text": "$item.name",
10452
- "style": "bodyEmphasis",
10812
+ "style": "footnoteRegular",
10813
+ "color": "textPrimary",
10453
10814
  "maxLines": 2
10454
10815
  }
10816
+ },
10817
+ "modifiers": {
10818
+ "weight": 1
10819
+ }
10820
+ }
10821
+ ]
10822
+ }
10823
+ }
10824
+ },
10825
+ {
10826
+ "id": "",
10827
+ "body": {
10828
+ "package": "himalaya",
10829
+ "type": "HStack",
10830
+ "props": {
10831
+ "spacing": 6,
10832
+ "children": [
10833
+ {
10834
+ "id": "",
10835
+ "body": {
10836
+ "package": "himalaya",
10837
+ "type": "Text",
10838
+ "props": {
10839
+ "text": "$item.wasPrice",
10840
+ "style": "caption",
10841
+ "color": "textSecondary",
10842
+ "maxLines": 1,
10843
+ "decoration": "strikethrough"
10844
+ }
10845
+ },
10846
+ "modifiers": {
10847
+ "hiddenPath": "$item.notOnSale"
10455
10848
  }
10456
10849
  },
10457
10850
  {
@@ -10461,70 +10854,100 @@ const SCREENS = runtimeSetting({
10461
10854
  "type": "Text",
10462
10855
  "props": {
10463
10856
  "text": "$item.price",
10464
- "style": "footnote",
10465
- "color": "accentPrimary",
10466
- "maxLines": 1,
10467
- "collapseWhenEmpty": true
10857
+ "style": "caption",
10858
+ "color": "danger",
10859
+ "maxLines": 1
10860
+ }
10861
+ },
10862
+ "modifiers": {
10863
+ "hiddenPath": "$item.notOnSale"
10864
+ }
10865
+ },
10866
+ {
10867
+ "id": "",
10868
+ "body": {
10869
+ "package": "himalaya",
10870
+ "type": "Text",
10871
+ "props": {
10872
+ "text": "$item.price",
10873
+ "style": "caption",
10874
+ "color": "textPrimary",
10875
+ "maxLines": 1
10876
+ }
10877
+ },
10878
+ "modifiers": {
10879
+ "hiddenPath": "$item.wasPriceEmpty"
10880
+ }
10881
+ },
10882
+ {
10883
+ "id": "",
10884
+ "body": {
10885
+ "package": "himalaya",
10886
+ "type": "Spacer",
10887
+ "props": {}
10888
+ }
10889
+ },
10890
+ {
10891
+ "id": "himi_saved_products.remove",
10892
+ "body": {
10893
+ "package": "himalaya",
10894
+ "type": "ZStack",
10895
+ "props": {
10896
+ "alignment": "center",
10897
+ "children": [
10898
+ {
10899
+ "id": "",
10900
+ "body": {
10901
+ "package": "himalaya",
10902
+ "type": "Icon",
10903
+ "props": {
10904
+ "name": "heart_fill",
10905
+ "size": 22,
10906
+ "tint": "accentPrimary"
10907
+ }
10908
+ },
10909
+ "modifiers": {
10910
+ "accessibilityRole": "decorative"
10911
+ }
10912
+ }
10913
+ ]
10468
10914
  }
10915
+ },
10916
+ "modifiers": {
10917
+ "width": 44,
10918
+ "height": 44,
10919
+ "onTap": {
10920
+ "actionId": "tier5.himiStoreSaved.remove",
10921
+ "params": {
10922
+ "id": "$item.id"
10923
+ }
10924
+ },
10925
+ "accessibilityRole": "button",
10926
+ "accessibilityLabel": "Remove from wishlist",
10927
+ "haptic": "light"
10469
10928
  }
10470
10929
  }
10471
10930
  ]
10472
10931
  }
10473
- },
10474
- "modifiers": {
10475
- "background": {
10476
- "token": "surfaceElevated"
10477
- },
10478
- "border": {
10479
- "width": 1,
10480
- "color": {
10481
- "token": "border"
10482
- }
10483
- },
10484
- "cornerRadius": 8,
10485
- "padding": {
10486
- "leading": 12,
10487
- "trailing": 12,
10488
- "top": 12,
10489
- "bottom": 12
10490
- },
10491
- "onTap": {
10492
- "actionId": "himi.open",
10493
- "params": {
10494
- "screenId": "$item.detailScreenId",
10495
- "id": "$item.id"
10496
- }
10497
- },
10498
- "pressFeedback": "scale",
10499
- "haptic": "light",
10500
- "accessibilityLabel": "$item.name"
10501
- }
10502
- },
10503
- {
10504
- "id": "himi_saved_products.remove",
10505
- "body": {
10506
- "package": "himalaya",
10507
- "type": "Button",
10508
- "props": {
10509
- "title": "Remove",
10510
- "style": "secondary",
10511
- "action": {
10512
- "actionId": "tier5.himiStoreSaved.remove",
10513
- "params": {
10514
- "id": "$item.id"
10515
- }
10516
- }
10517
- }
10518
10932
  }
10519
10933
  }
10520
10934
  ]
10521
10935
  }
10522
- }
10523
- }
10524
- ],
10525
- "onPullToRefresh": {
10526
- "actionId": "tier5.himiStoreSaved.load"
10527
- }
10936
+ },
10937
+ "modifiers": {
10938
+ "onTap": {
10939
+ "actionId": "himi.open",
10940
+ "params": {
10941
+ "screenId": "himi_product",
10942
+ "id": "$item.id"
10943
+ }
10944
+ },
10945
+ "pressFeedback": "highlight",
10946
+ "haptic": "light",
10947
+ "accessibilityLabel": "$item.name"
10948
+ }
10949
+ }
10950
+ ]
10528
10951
  }
10529
10952
  },
10530
10953
  "modifiers": {
@@ -10532,27 +10955,59 @@ const SCREENS = runtimeSetting({
10532
10955
  }
10533
10956
  },
10534
10957
  {
10535
- "id": "",
10958
+ "id": "himi_saved_products.empty",
10536
10959
  "body": {
10537
10960
  "package": "himalaya",
10538
10961
  "type": "VStack",
10539
10962
  "props": {
10540
- "spacing": 12,
10963
+ "spacing": 10,
10541
10964
  "alignment": "center",
10542
10965
  "children": [
10543
10966
  {
10544
10967
  "id": "",
10545
10968
  "body": {
10546
10969
  "package": "himalaya",
10547
- "type": "Icon",
10970
+ "type": "ZStack",
10548
10971
  "props": {
10549
- "name": "bookmark",
10550
- "size": 34,
10551
- "tint": "textTertiary"
10972
+ "alignment": "center",
10973
+ "children": [
10974
+ {
10975
+ "id": "",
10976
+ "body": {
10977
+ "package": "himalaya",
10978
+ "type": "Icon",
10979
+ "props": {
10980
+ "name": "heart",
10981
+ "size": 24,
10982
+ "tint": "textSecondary"
10983
+ }
10984
+ },
10985
+ "modifiers": {
10986
+ "accessibilityRole": "decorative"
10987
+ }
10988
+ }
10989
+ ]
10552
10990
  }
10553
10991
  },
10554
10992
  "modifiers": {
10555
- "accessibilityRole": "decorative"
10993
+ "width": 56,
10994
+ "height": 56,
10995
+ "background": {
10996
+ "token": "surfaceTertiary"
10997
+ },
10998
+ "cornerRadius": 28
10999
+ }
11000
+ },
11001
+ {
11002
+ "id": "",
11003
+ "body": {
11004
+ "package": "himalaya",
11005
+ "type": "Text",
11006
+ "props": {
11007
+ "text": "Your wishlist is empty",
11008
+ "style": "title3",
11009
+ "textAlign": "center"
11010
+ }
10556
11011
  }
10557
11012
  },
10558
11013
  {
@@ -10562,14 +11017,14 @@ const SCREENS = runtimeSetting({
10562
11017
  "type": "Text",
10563
11018
  "props": {
10564
11019
  "text": "$service:himiStoreSaved.emptyText",
10565
- "style": "bodyEmphasis",
11020
+ "style": "footnote",
10566
11021
  "color": "textSecondary",
10567
- "collapseWhenEmpty": true
11022
+ "textAlign": "center"
10568
11023
  }
10569
11024
  }
10570
11025
  },
10571
11026
  {
10572
- "id": "himi_saved_products.empty.cta",
11027
+ "id": "himi_saved_products.browse",
10573
11028
  "body": {
10574
11029
  "package": "himalaya",
10575
11030
  "type": "Button",
@@ -10589,16 +11044,6 @@ const SCREENS = runtimeSetting({
10589
11044
  }
10590
11045
  },
10591
11046
  "modifiers": {
10592
- "padding": {
10593
- "leading": 24,
10594
- "trailing": 24,
10595
- "top": 24,
10596
- "bottom": 24
10597
- },
10598
- "transition": {
10599
- "enter": "fade",
10600
- "exit": "fade"
10601
- },
10602
11047
  "hiddenPath": "$service:himiStoreSaved.noEmpty"
10603
11048
  }
10604
11049
  }
@@ -11594,20 +12039,8 @@ const SCREENS = runtimeSetting({
11594
12039
  "package": "himalaya",
11595
12040
  "type": "Text",
11596
12041
  "props": {
11597
- "text": "Cart",
11598
- "style": "title1"
11599
- }
11600
- }
11601
- },
11602
- {
11603
- "id": "",
11604
- "body": {
11605
- "package": "himalaya",
11606
- "type": "Text",
11607
- "props": {
11608
- "text": "Review your items before you check out.",
11609
- "style": "body",
11610
- "color": "textSecondary"
12042
+ "text": "Shopping cart",
12043
+ "style": "pageTitle"
11611
12044
  }
11612
12045
  }
11613
12046
  },
@@ -11626,449 +12059,26 @@ const SCREENS = runtimeSetting({
11626
12059
  "package": "himalaya",
11627
12060
  "type": "Text",
11628
12061
  "props": {
11629
- "text": "Your cart could not be loaded.",
12062
+ "text": "You are offline",
11630
12063
  "style": "bodyEmphasis"
11631
12064
  }
11632
- }
11633
- },
11634
- {
11635
- "id": "",
11636
- "body": {
11637
- "package": "himalaya",
11638
- "type": "Text",
11639
- "props": {
11640
- "text": "Try again without leaving the app.",
11641
- "style": "footnote",
11642
- "color": "textSecondary"
11643
- }
11644
- }
11645
- },
11646
- {
11647
- "id": "himi_cart.retry",
11648
- "body": {
11649
- "package": "himalaya",
11650
- "type": "Button",
11651
- "props": {
11652
- "title": "Try again",
11653
- "style": "secondary",
11654
- "action": {
11655
- "actionId": "tier5.himiStoreCart.load"
11656
- }
11657
- }
11658
- }
11659
- }
11660
- ]
11661
- }
11662
- },
11663
- "modifiers": {
11664
- "background": {
11665
- "token": "surfaceElevated"
11666
- },
11667
- "border": {
11668
- "width": 1,
11669
- "color": {
11670
- "token": "border"
11671
- }
11672
- },
11673
- "cornerRadius": 4,
11674
- "padding": {
11675
- "leading": 16,
11676
- "trailing": 16,
11677
- "top": 16,
11678
- "bottom": 16
11679
- },
11680
- "hiddenPath": "$service:himiStoreCart.notErrored"
11681
- }
11682
- },
11683
- {
11684
- "id": "",
11685
- "body": {
11686
- "package": "himalaya",
11687
- "type": "VStack",
11688
- "props": {
11689
- "spacing": 12,
11690
- "children": [
11691
- {
11692
- "id": "himi_cart.list",
11693
- "body": {
11694
- "package": "himalaya",
11695
- "type": "Grid",
11696
- "props": {
11697
- "columns": 1,
11698
- "spacing": 10,
11699
- "itemsPath": "$service:himiStoreCart.items",
11700
- "items": [
11701
- {
11702
- "id": "himi_cart.row",
11703
- "body": {
11704
- "package": "himalaya",
11705
- "type": "VStack",
11706
- "props": {
11707
- "spacing": 8,
11708
- "alignment": "leading",
11709
- "children": [
11710
- {
11711
- "id": "",
11712
- "body": {
11713
- "package": "himalaya",
11714
- "type": "HStack",
11715
- "props": {
11716
- "spacing": 10,
11717
- "children": [
11718
- {
11719
- "id": "",
11720
- "body": {
11721
- "package": "himalaya",
11722
- "type": "Image",
11723
- "props": {
11724
- "url": "$item.image",
11725
- "width": 62,
11726
- "height": 62,
11727
- "contentMode": "fill",
11728
- "contentDescription": "$item.title"
11729
- }
11730
- },
11731
- "modifiers": {
11732
- "cornerRadius": 8,
11733
- "hiddenPath": "$item.noImage"
11734
- }
11735
- },
11736
- {
11737
- "id": "himi_cart.row_media.initial",
11738
- "body": {
11739
- "package": "himalaya",
11740
- "type": "ZStack",
11741
- "props": {
11742
- "alignment": "center",
11743
- "children": [
11744
- {
11745
- "id": "",
11746
- "body": {
11747
- "package": "himalaya",
11748
- "type": "Text",
11749
- "props": {
11750
- "text": "$item.initial",
11751
- "style": "title2",
11752
- "color": "textOnAccent",
11753
- "maxLines": 1,
11754
- "collapseWhenEmpty": true
11755
- }
11756
- }
11757
- }
11758
- ]
11759
- }
11760
- },
11761
- "modifiers": {
11762
- "width": 62,
11763
- "height": 62,
11764
- "background": {
11765
- "token": "accentPrimary"
11766
- },
11767
- "cornerRadius": 16,
11768
- "hiddenPath": "$item.hasImage"
11769
- }
11770
- },
11771
- {
11772
- "id": "",
11773
- "body": {
11774
- "package": "himalaya",
11775
- "type": "VStack",
11776
- "props": {
11777
- "spacing": 3,
11778
- "alignment": "leading",
11779
- "children": [
11780
- {
11781
- "id": "",
11782
- "body": {
11783
- "package": "himalaya",
11784
- "type": "Text",
11785
- "props": {
11786
- "text": "$item.name",
11787
- "style": "bodyEmphasis",
11788
- "maxLines": 2
11789
- }
11790
- }
11791
- },
11792
- {
11793
- "id": "",
11794
- "body": {
11795
- "package": "himalaya",
11796
- "type": "Text",
11797
- "props": {
11798
- "text": "$item.subtitle",
11799
- "style": "footnote",
11800
- "color": "textSecondary"
11801
- }
11802
- }
11803
- }
11804
- ]
11805
- }
11806
- }
11807
- },
11808
- {
11809
- "id": "",
11810
- "body": {
11811
- "package": "himalaya",
11812
- "type": "Spacer",
11813
- "props": {}
11814
- }
11815
- },
11816
- {
11817
- "id": "",
11818
- "body": {
11819
- "package": "himalaya",
11820
- "type": "Text",
11821
- "props": {
11822
- "text": "$item.total",
11823
- "style": "bodyEmphasis",
11824
- "collapseWhenEmpty": true
11825
- }
11826
- }
11827
- }
11828
- ]
11829
- }
11830
- }
11831
- },
11832
- {
11833
- "id": "",
11834
- "body": {
11835
- "package": "himalaya",
11836
- "type": "HStack",
11837
- "props": {
11838
- "spacing": 10,
11839
- "children": [
11840
- {
11841
- "id": "himi_cart.qty_minus",
11842
- "body": {
11843
- "package": "himalaya",
11844
- "type": "Button",
11845
- "props": {
11846
- "title": "−",
11847
- "style": "secondary",
11848
- "action": {
11849
- "actionId": "tier5.himiStoreCart.decrement",
11850
- "params": {
11851
- "id": "$item.id"
11852
- }
11853
- }
11854
- }
11855
- }
11856
- },
11857
- {
11858
- "id": "himi_cart.qty_value",
11859
- "body": {
11860
- "package": "himalaya",
11861
- "type": "Text",
11862
- "props": {
11863
- "text": "$item.quantityLabel",
11864
- "style": "bodyEmphasis"
11865
- }
11866
- }
11867
- },
11868
- {
11869
- "id": "himi_cart.qty_plus",
11870
- "body": {
11871
- "package": "himalaya",
11872
- "type": "Button",
11873
- "props": {
11874
- "title": "+",
11875
- "style": "secondary",
11876
- "action": {
11877
- "actionId": "tier5.himiStoreCart.increment",
11878
- "params": {
11879
- "id": "$item.id"
11880
- }
11881
- }
11882
- }
11883
- }
11884
- },
11885
- {
11886
- "id": "",
11887
- "body": {
11888
- "package": "himalaya",
11889
- "type": "Spacer",
11890
- "props": {}
11891
- }
11892
- },
11893
- {
11894
- "id": "himi_cart.remove",
11895
- "body": {
11896
- "package": "himalaya",
11897
- "type": "Button",
11898
- "props": {
11899
- "title": "Remove",
11900
- "style": "secondary",
11901
- "action": {
11902
- "actionId": "tier5.himiStoreCart.remove",
11903
- "params": {
11904
- "id": "$item.id"
11905
- }
11906
- }
11907
- }
11908
- }
11909
- }
11910
- ]
11911
- }
11912
- }
11913
- }
11914
- ]
11915
- }
11916
- },
11917
- "modifiers": {
11918
- "background": {
11919
- "token": "surfaceElevated"
11920
- },
11921
- "border": {
11922
- "width": 1,
11923
- "color": {
11924
- "token": "border"
11925
- }
11926
- },
11927
- "cornerRadius": 4,
11928
- "padding": {
11929
- "leading": 16,
11930
- "trailing": 16,
11931
- "top": 16,
11932
- "bottom": 16
11933
- }
11934
- }
11935
- }
11936
- ]
11937
- }
11938
- }
11939
- },
11940
- {
11941
- "id": "himi_cart.summary",
11942
- "body": {
11943
- "package": "himalaya",
11944
- "type": "VStack",
11945
- "props": {
11946
- "spacing": 8,
11947
- "alignment": "leading",
11948
- "children": [
11949
- {
11950
- "id": "",
11951
- "body": {
11952
- "package": "himalaya",
11953
- "type": "HStack",
11954
- "props": {
11955
- "spacing": 8,
11956
- "children": [
11957
- {
11958
- "id": "",
11959
- "body": {
11960
- "package": "himalaya",
11961
- "type": "Text",
11962
- "props": {
11963
- "text": "Subtotal",
11964
- "style": "bodyEmphasis"
11965
- }
11966
- }
11967
- },
11968
- {
11969
- "id": "",
11970
- "body": {
11971
- "package": "himalaya",
11972
- "type": "Spacer",
11973
- "props": {}
11974
- }
11975
- },
11976
- {
11977
- "id": "",
11978
- "body": {
11979
- "package": "himalaya",
11980
- "type": "Text",
11981
- "props": {
11982
- "text": "$service:himiStoreCart.subtotal",
11983
- "style": "bodyEmphasis",
11984
- "collapseWhenEmpty": true
11985
- }
11986
- }
11987
- }
11988
- ]
11989
- }
11990
- }
11991
- },
11992
- {
11993
- "id": "himi_cart.checkout",
11994
- "body": {
11995
- "package": "himalaya",
11996
- "type": "Button",
11997
- "props": {
11998
- "title": "Checkout in browser",
11999
- "style": "primary",
12000
- "fullWidth": true,
12001
- "action": {
12002
- "actionId": "tier5.himiStoreCart.checkout"
12003
- }
12004
- }
12005
- }
12006
- }
12007
- ]
12008
- }
12009
12065
  },
12010
12066
  "modifiers": {
12011
- "background": {
12012
- "token": "surfaceElevated"
12013
- },
12014
- "border": {
12015
- "width": 1,
12016
- "color": {
12017
- "token": "border"
12018
- }
12019
- },
12020
- "cornerRadius": 4,
12021
- "padding": {
12022
- "leading": 16,
12023
- "trailing": 16,
12024
- "top": 16,
12025
- "bottom": 16
12026
- },
12027
- "hiddenPath": "$service:himiStoreCart.noItems"
12067
+ "hiddenPath": "$service:himiStoreCart.noOfflineError"
12028
12068
  }
12029
- }
12030
- ]
12031
- }
12032
- },
12033
- "modifiers": {
12034
- "hiddenPath": "$service:himiStoreCart.hideContent"
12035
- }
12036
- },
12037
- {
12038
- "id": "himi_cart.hint",
12039
- "body": {
12040
- "package": "himalaya",
12041
- "type": "Text",
12042
- "props": {
12043
- "text": "$service:himiStoreCart.checkoutHint",
12044
- "style": "footnote",
12045
- "color": "textSecondary",
12046
- "collapseWhenEmpty": true
12047
- }
12048
- }
12049
- },
12050
- {
12051
- "id": "himi_cart.empty",
12052
- "body": {
12053
- "package": "himalaya",
12054
- "type": "VStack",
12055
- "props": {
12056
- "spacing": 8,
12057
- "alignment": "leading",
12058
- "children": [
12069
+ },
12059
12070
  {
12060
12071
  "id": "",
12061
12072
  "body": {
12062
12073
  "package": "himalaya",
12063
- "type": "Icon",
12074
+ "type": "Text",
12064
12075
  "props": {
12065
- "name": "cart",
12066
- "size": 28,
12067
- "tint": "textTertiary"
12076
+ "text": "Your cart could not be loaded.",
12077
+ "style": "bodyEmphasis"
12068
12078
  }
12069
12079
  },
12070
12080
  "modifiers": {
12071
- "accessibilityRole": "decorative"
12081
+ "hiddenPath": "$service:himiStoreCart.noServerError"
12072
12082
  }
12073
12083
  },
12074
12084
  {
@@ -12077,26 +12087,22 @@ const SCREENS = runtimeSetting({
12077
12087
  "package": "himalaya",
12078
12088
  "type": "Text",
12079
12089
  "props": {
12080
- "text": "$service:himiStoreCart.emptyText",
12081
- "style": "bodyEmphasis",
12082
- "color": "textSecondary",
12083
- "collapseWhenEmpty": true
12090
+ "text": "Try again without leaving the app.",
12091
+ "style": "footnote",
12092
+ "color": "textSecondary"
12084
12093
  }
12085
12094
  }
12086
12095
  },
12087
12096
  {
12088
- "id": "himi_cart.browse",
12097
+ "id": "himi_cart.retry",
12089
12098
  "body": {
12090
12099
  "package": "himalaya",
12091
12100
  "type": "Button",
12092
12101
  "props": {
12093
- "title": "Browse products",
12102
+ "title": "Try again",
12094
12103
  "style": "secondary",
12095
12104
  "action": {
12096
- "actionId": "himi.open",
12097
- "params": {
12098
- "screenId": "himi_shop"
12099
- }
12105
+ "actionId": "tier5.himiStoreCart.load"
12100
12106
  }
12101
12107
  }
12102
12108
  }
@@ -12121,8 +12127,617 @@ const SCREENS = runtimeSetting({
12121
12127
  "top": 16,
12122
12128
  "bottom": 16
12123
12129
  },
12130
+ "hiddenPath": "$service:himiStoreCart.notErrored"
12131
+ }
12132
+ },
12133
+ {
12134
+ "id": "himi_cart.list",
12135
+ "body": {
12136
+ "package": "himalaya",
12137
+ "type": "Grid",
12138
+ "props": {
12139
+ "columns": 1,
12140
+ "spacing": 0,
12141
+ "itemsPath": "$service:himiStoreCart.items",
12142
+ "items": [
12143
+ {
12144
+ "id": "himi_cart.row",
12145
+ "body": {
12146
+ "package": "himalaya",
12147
+ "type": "VStack",
12148
+ "props": {
12149
+ "spacing": 0,
12150
+ "alignment": "leading",
12151
+ "children": [
12152
+ {
12153
+ "id": "",
12154
+ "body": {
12155
+ "package": "himalaya",
12156
+ "type": "Divider",
12157
+ "props": {}
12158
+ }
12159
+ },
12160
+ {
12161
+ "id": "himi_cart.row_content",
12162
+ "body": {
12163
+ "package": "himalaya",
12164
+ "type": "HStack",
12165
+ "props": {
12166
+ "spacing": 12,
12167
+ "children": [
12168
+ {
12169
+ "id": "himi_cart.thumbnail",
12170
+ "body": {
12171
+ "package": "himalaya",
12172
+ "type": "Image",
12173
+ "props": {
12174
+ "url": "$item.image",
12175
+ "width": 112,
12176
+ "height": 144,
12177
+ "contentMode": "fit",
12178
+ "shape": "rect",
12179
+ "contentDescription": "$item.name"
12180
+ }
12181
+ },
12182
+ "modifiers": {
12183
+ "onTap": {
12184
+ "actionId": "himi.open",
12185
+ "params": {
12186
+ "screenId": "himi_product",
12187
+ "id": "$item.catalogItemId"
12188
+ }
12189
+ },
12190
+ "hiddenPath": "$item.noImage"
12191
+ }
12192
+ },
12193
+ {
12194
+ "id": "",
12195
+ "body": {
12196
+ "package": "himalaya",
12197
+ "type": "ZStack",
12198
+ "props": {
12199
+ "alignment": "center",
12200
+ "children": [
12201
+ {
12202
+ "id": "",
12203
+ "body": {
12204
+ "package": "himalaya",
12205
+ "type": "Text",
12206
+ "props": {
12207
+ "text": "$item.initial",
12208
+ "style": "title2",
12209
+ "color": "textOnAccent"
12210
+ }
12211
+ }
12212
+ }
12213
+ ]
12214
+ }
12215
+ },
12216
+ "modifiers": {
12217
+ "width": 112,
12218
+ "height": 144,
12219
+ "background": {
12220
+ "token": "accentPrimary"
12221
+ },
12222
+ "onTap": {
12223
+ "actionId": "himi.open",
12224
+ "params": {
12225
+ "screenId": "himi_product",
12226
+ "id": "$item.catalogItemId"
12227
+ }
12228
+ },
12229
+ "accessibilityLabel": "$item.name",
12230
+ "hiddenPath": "$item.hasImage"
12231
+ }
12232
+ },
12233
+ {
12234
+ "id": "himi_cart.details",
12235
+ "body": {
12236
+ "package": "himalaya",
12237
+ "type": "VStack",
12238
+ "props": {
12239
+ "spacing": 4,
12240
+ "alignment": "leading",
12241
+ "children": [
12242
+ {
12243
+ "id": "himi_cart.name_price",
12244
+ "body": {
12245
+ "package": "himalaya",
12246
+ "type": "HStack",
12247
+ "props": {
12248
+ "spacing": 6,
12249
+ "children": [
12250
+ {
12251
+ "id": "himi_cart.product_title",
12252
+ "body": {
12253
+ "package": "himalaya",
12254
+ "type": "Text",
12255
+ "props": {
12256
+ "text": "$item.name",
12257
+ "style": "bodyEmphasis",
12258
+ "color": "textPrimary",
12259
+ "maxLines": 2
12260
+ }
12261
+ },
12262
+ "modifiers": {
12263
+ "weight": 1
12264
+ }
12265
+ },
12266
+ {
12267
+ "id": "himi_cart.product_price",
12268
+ "body": {
12269
+ "package": "himalaya",
12270
+ "type": "Text",
12271
+ "props": {
12272
+ "text": "$item.total",
12273
+ "style": "bodyEmphasis",
12274
+ "color": "textPrimary",
12275
+ "maxLines": 1,
12276
+ "collapseWhenEmpty": true
12277
+ }
12278
+ }
12279
+ }
12280
+ ]
12281
+ }
12282
+ }
12283
+ },
12284
+ {
12285
+ "id": "",
12286
+ "body": {
12287
+ "package": "himalaya",
12288
+ "type": "Text",
12289
+ "props": {
12290
+ "text": "$item.option1",
12291
+ "style": "body",
12292
+ "color": "textSecondary",
12293
+ "maxLines": 1,
12294
+ "collapseWhenEmpty": true
12295
+ }
12296
+ }
12297
+ },
12298
+ {
12299
+ "id": "",
12300
+ "body": {
12301
+ "package": "himalaya",
12302
+ "type": "Text",
12303
+ "props": {
12304
+ "text": "$item.option2",
12305
+ "style": "body",
12306
+ "color": "textSecondary",
12307
+ "maxLines": 1,
12308
+ "collapseWhenEmpty": true
12309
+ }
12310
+ }
12311
+ },
12312
+ {
12313
+ "id": "",
12314
+ "body": {
12315
+ "package": "himalaya",
12316
+ "type": "Text",
12317
+ "props": {
12318
+ "text": "$item.option3",
12319
+ "style": "body",
12320
+ "color": "textSecondary",
12321
+ "maxLines": 1,
12322
+ "collapseWhenEmpty": true
12323
+ }
12324
+ }
12325
+ },
12326
+ {
12327
+ "id": "",
12328
+ "body": {
12329
+ "package": "himalaya",
12330
+ "type": "Text",
12331
+ "props": {
12332
+ "text": "$item.inStockMessage",
12333
+ "style": "body",
12334
+ "color": "success"
12335
+ }
12336
+ },
12337
+ "modifiers": {
12338
+ "hiddenPath": "$item.noInStockMessage"
12339
+ }
12340
+ },
12341
+ {
12342
+ "id": "",
12343
+ "body": {
12344
+ "package": "himalaya",
12345
+ "type": "Text",
12346
+ "props": {
12347
+ "text": "$item.stockMessage",
12348
+ "style": "body",
12349
+ "color": "danger"
12350
+ }
12351
+ },
12352
+ "modifiers": {
12353
+ "hiddenPath": "$item.noStockMessage"
12354
+ }
12355
+ },
12356
+ {
12357
+ "id": "",
12358
+ "body": {
12359
+ "package": "himalaya",
12360
+ "type": "Spacer",
12361
+ "props": {}
12362
+ }
12363
+ },
12364
+ {
12365
+ "id": "himi_cart.actions",
12366
+ "body": {
12367
+ "package": "himalaya",
12368
+ "type": "HStack",
12369
+ "props": {
12370
+ "spacing": 0,
12371
+ "children": [
12372
+ {
12373
+ "id": "himi_cart.qty_minus",
12374
+ "body": {
12375
+ "package": "himalaya",
12376
+ "type": "ZStack",
12377
+ "props": {
12378
+ "alignment": "center",
12379
+ "children": [
12380
+ {
12381
+ "id": "",
12382
+ "body": {
12383
+ "package": "himalaya",
12384
+ "type": "Icon",
12385
+ "props": {
12386
+ "name": "minus",
12387
+ "size": 24,
12388
+ "tint": "textPrimary"
12389
+ }
12390
+ },
12391
+ "modifiers": {
12392
+ "accessibilityRole": "decorative"
12393
+ }
12394
+ }
12395
+ ]
12396
+ }
12397
+ },
12398
+ "modifiers": {
12399
+ "width": 44,
12400
+ "height": 44,
12401
+ "onTap": {
12402
+ "actionId": "tier5.himiStoreCart.decrement",
12403
+ "params": {
12404
+ "id": "$item.id"
12405
+ }
12406
+ },
12407
+ "accessibilityRole": "button",
12408
+ "accessibilityLabel": "Decrease quantity",
12409
+ "haptic": "light"
12410
+ }
12411
+ },
12412
+ {
12413
+ "id": "himi_cart.qty_value",
12414
+ "body": {
12415
+ "package": "himalaya",
12416
+ "type": "Text",
12417
+ "props": {
12418
+ "text": "$item.quantityLabel",
12419
+ "style": "body",
12420
+ "textAlign": "center"
12421
+ }
12422
+ },
12423
+ "modifiers": {
12424
+ "width": 32
12425
+ }
12426
+ },
12427
+ {
12428
+ "id": "himi_cart.qty_plus",
12429
+ "body": {
12430
+ "package": "himalaya",
12431
+ "type": "ZStack",
12432
+ "props": {
12433
+ "alignment": "center",
12434
+ "children": [
12435
+ {
12436
+ "id": "",
12437
+ "body": {
12438
+ "package": "himalaya",
12439
+ "type": "Icon",
12440
+ "props": {
12441
+ "name": "plus",
12442
+ "size": 24,
12443
+ "tint": "textPrimary"
12444
+ }
12445
+ },
12446
+ "modifiers": {
12447
+ "accessibilityRole": "decorative"
12448
+ }
12449
+ }
12450
+ ]
12451
+ }
12452
+ },
12453
+ "modifiers": {
12454
+ "width": 44,
12455
+ "height": 44,
12456
+ "onTap": {
12457
+ "actionId": "tier5.himiStoreCart.increment",
12458
+ "params": {
12459
+ "id": "$item.id"
12460
+ }
12461
+ },
12462
+ "accessibilityRole": "button",
12463
+ "accessibilityLabel": "Increase quantity",
12464
+ "haptic": "light"
12465
+ }
12466
+ },
12467
+ {
12468
+ "id": "",
12469
+ "body": {
12470
+ "package": "himalaya",
12471
+ "type": "Spacer",
12472
+ "props": {}
12473
+ }
12474
+ },
12475
+ {
12476
+ "id": "himi_cart.save_filled",
12477
+ "body": {
12478
+ "package": "himalaya",
12479
+ "type": "ZStack",
12480
+ "props": {
12481
+ "alignment": "center",
12482
+ "children": [
12483
+ {
12484
+ "id": "",
12485
+ "body": {
12486
+ "package": "himalaya",
12487
+ "type": "Icon",
12488
+ "props": {
12489
+ "name": "heart_fill",
12490
+ "size": 24,
12491
+ "tint": "textPrimary"
12492
+ }
12493
+ },
12494
+ "modifiers": {
12495
+ "accessibilityRole": "decorative"
12496
+ }
12497
+ }
12498
+ ]
12499
+ }
12500
+ },
12501
+ "modifiers": {
12502
+ "width": 44,
12503
+ "height": 44,
12504
+ "onTap": {
12505
+ "actionId": "tier5.himiStoreCart.save",
12506
+ "params": {
12507
+ "id": "$item.id"
12508
+ }
12509
+ },
12510
+ "accessibilityRole": "button",
12511
+ "accessibilityLabel": "Remove from wishlist",
12512
+ "haptic": "light",
12513
+ "hiddenPath": "$item.notSaved"
12514
+ }
12515
+ },
12516
+ {
12517
+ "id": "himi_cart.save",
12518
+ "body": {
12519
+ "package": "himalaya",
12520
+ "type": "ZStack",
12521
+ "props": {
12522
+ "alignment": "center",
12523
+ "children": [
12524
+ {
12525
+ "id": "",
12526
+ "body": {
12527
+ "package": "himalaya",
12528
+ "type": "Icon",
12529
+ "props": {
12530
+ "name": "heart",
12531
+ "size": 24,
12532
+ "tint": "textPrimary"
12533
+ }
12534
+ },
12535
+ "modifiers": {
12536
+ "accessibilityRole": "decorative"
12537
+ }
12538
+ }
12539
+ ]
12540
+ }
12541
+ },
12542
+ "modifiers": {
12543
+ "width": 44,
12544
+ "height": 44,
12545
+ "onTap": {
12546
+ "actionId": "tier5.himiStoreCart.save",
12547
+ "params": {
12548
+ "id": "$item.id"
12549
+ }
12550
+ },
12551
+ "accessibilityRole": "button",
12552
+ "accessibilityLabel": "Add to wishlist",
12553
+ "haptic": "light",
12554
+ "hiddenPath": "$item.saved"
12555
+ }
12556
+ },
12557
+ {
12558
+ "id": "himi_cart.remove",
12559
+ "body": {
12560
+ "package": "himalaya",
12561
+ "type": "ZStack",
12562
+ "props": {
12563
+ "alignment": "center",
12564
+ "children": [
12565
+ {
12566
+ "id": "",
12567
+ "body": {
12568
+ "package": "himalaya",
12569
+ "type": "Icon",
12570
+ "props": {
12571
+ "name": "trash",
12572
+ "size": 24,
12573
+ "tint": "textPrimary"
12574
+ }
12575
+ },
12576
+ "modifiers": {
12577
+ "accessibilityRole": "decorative"
12578
+ }
12579
+ }
12580
+ ]
12581
+ }
12582
+ },
12583
+ "modifiers": {
12584
+ "width": 44,
12585
+ "height": 44,
12586
+ "onTap": {
12587
+ "actionId": "tier5.himiStoreCart.remove",
12588
+ "params": {
12589
+ "id": "$item.id"
12590
+ }
12591
+ },
12592
+ "accessibilityRole": "button",
12593
+ "accessibilityLabel": "Remove from cart",
12594
+ "haptic": "light"
12595
+ }
12596
+ }
12597
+ ]
12598
+ }
12599
+ }
12600
+ }
12601
+ ]
12602
+ }
12603
+ },
12604
+ "modifiers": {
12605
+ "weight": 1
12606
+ }
12607
+ }
12608
+ ]
12609
+ }
12610
+ },
12611
+ "modifiers": {
12612
+ "fillMaxWidth": true
12613
+ }
12614
+ },
12615
+ {
12616
+ "id": "",
12617
+ "body": {
12618
+ "package": "himalaya",
12619
+ "type": "Divider",
12620
+ "props": {}
12621
+ }
12622
+ }
12623
+ ]
12624
+ }
12625
+ },
12626
+ "modifiers": {
12627
+ "padding": {
12628
+ "top": 16,
12629
+ "bottom": 16
12630
+ }
12631
+ }
12632
+ }
12633
+ ]
12634
+ }
12635
+ },
12636
+ "modifiers": {
12637
+ "hiddenPath": "$service:himiStoreCart.hideContent"
12638
+ }
12639
+ },
12640
+ {
12641
+ "id": "himi_cart.hint",
12642
+ "body": {
12643
+ "package": "himalaya",
12644
+ "type": "Banner",
12645
+ "props": {
12646
+ "title": "$service:himiStoreCart.checkoutHint",
12647
+ "severity": "warning"
12648
+ }
12649
+ },
12650
+ "modifiers": {
12651
+ "hiddenPath": "$service:himiStoreCart.noCheckoutHint"
12652
+ }
12653
+ },
12654
+ {
12655
+ "id": "himi_cart.empty",
12656
+ "body": {
12657
+ "package": "himalaya",
12658
+ "type": "VStack",
12659
+ "props": {
12660
+ "spacing": 12,
12661
+ "alignment": "center",
12662
+ "children": [
12663
+ {
12664
+ "id": "",
12665
+ "body": {
12666
+ "package": "himalaya",
12667
+ "type": "Icon",
12668
+ "props": {
12669
+ "name": "cart",
12670
+ "size": 28,
12671
+ "tint": "textTertiary"
12672
+ }
12673
+ },
12674
+ "modifiers": {
12675
+ "accessibilityRole": "decorative"
12676
+ }
12677
+ },
12678
+ {
12679
+ "id": "",
12680
+ "body": {
12681
+ "package": "himalaya",
12682
+ "type": "Text",
12683
+ "props": {
12684
+ "text": "$service:himiStoreCart.emptyText",
12685
+ "style": "title3",
12686
+ "color": "textPrimary",
12687
+ "collapseWhenEmpty": true
12688
+ }
12689
+ }
12690
+ },
12691
+ {
12692
+ "id": "",
12693
+ "body": {
12694
+ "package": "himalaya",
12695
+ "type": "Text",
12696
+ "props": {
12697
+ "text": "Your items will appear here when you add them.",
12698
+ "style": "footnote",
12699
+ "color": "textSecondary"
12700
+ }
12701
+ }
12702
+ },
12703
+ {
12704
+ "id": "himi_cart.browse",
12705
+ "body": {
12706
+ "package": "himalaya",
12707
+ "type": "Button",
12708
+ "props": {
12709
+ "title": "Browse products",
12710
+ "style": "secondary",
12711
+ "action": {
12712
+ "actionId": "himi.open",
12713
+ "params": {
12714
+ "screenId": "himi_shop"
12715
+ }
12716
+ }
12717
+ }
12718
+ }
12719
+ }
12720
+ ]
12721
+ }
12722
+ },
12723
+ "modifiers": {
12124
12724
  "hiddenPath": "$service:himiStoreCart.noEmpty"
12125
12725
  }
12726
+ },
12727
+ {
12728
+ "id": "himi_cart.order_placed",
12729
+ "body": {
12730
+ "package": "himalaya",
12731
+ "type": "Snackbar",
12732
+ "props": {
12733
+ "message": "Order placed. Thanks!",
12734
+ "severity": "success",
12735
+ "durationMs": 3000
12736
+ }
12737
+ },
12738
+ "modifiers": {
12739
+ "hiddenPath": "$service:himiStoreCart.noPaidToast"
12740
+ }
12126
12741
  }
12127
12742
  ]
12128
12743
  }
@@ -12157,6 +12772,291 @@ const SCREENS = runtimeSetting({
12157
12772
  ],
12158
12773
  "minBinaryVersion": "0.1.0",
12159
12774
  "bundleVersion": "0.0.1"
12775
+ },
12776
+ "stickyFooter": {
12777
+ "id": "himi_cart.footer",
12778
+ "body": {
12779
+ "package": "himalaya",
12780
+ "type": "VStack",
12781
+ "props": {
12782
+ "spacing": 10,
12783
+ "alignment": "leading",
12784
+ "children": [
12785
+ {
12786
+ "id": "",
12787
+ "body": {
12788
+ "package": "himalaya",
12789
+ "type": "HStack",
12790
+ "props": {
12791
+ "spacing": 8,
12792
+ "children": [
12793
+ {
12794
+ "id": "himi_cart.promo",
12795
+ "body": {
12796
+ "package": "himalaya",
12797
+ "type": "TextField",
12798
+ "props": {
12799
+ "placeholder": "Promo code",
12800
+ "valuePath": "$service:himiStoreCart.promoCode",
12801
+ "onChange": {
12802
+ "actionId": "tier5.himiStoreCart.setPromo"
12803
+ },
12804
+ "onSubmit": {
12805
+ "actionId": "tier5.himiStoreCart.applyPromo"
12806
+ },
12807
+ "autoCapitalization": "characters",
12808
+ "suggestions": "off",
12809
+ "submitLabel": "done",
12810
+ "clearButton": true,
12811
+ "maxLength": 100,
12812
+ "borderless": true
12813
+ }
12814
+ },
12815
+ "modifiers": {
12816
+ "weight": 1,
12817
+ "height": 36,
12818
+ "border": {
12819
+ "width": 1,
12820
+ "color": {
12821
+ "token": "border"
12822
+ }
12823
+ },
12824
+ "padding": {
12825
+ "leading": 12,
12826
+ "trailing": 12
12827
+ },
12828
+ "hiddenPath": "$service:himiStoreCart.hasCoupon"
12829
+ }
12830
+ },
12831
+ {
12832
+ "id": "himi_cart.apply_promo",
12833
+ "body": {
12834
+ "package": "himalaya",
12835
+ "type": "Button",
12836
+ "props": {
12837
+ "title": "Apply",
12838
+ "style": "secondary",
12839
+ "action": {
12840
+ "actionId": "tier5.himiStoreCart.applyPromo"
12841
+ },
12842
+ "disabledPath": "$service:himiStoreCart.promoBusy"
12843
+ }
12844
+ },
12845
+ "modifiers": {
12846
+ "height": 44,
12847
+ "cornerRadius": 0,
12848
+ "border": {
12849
+ "width": 1,
12850
+ "color": {
12851
+ "token": "textPrimary"
12852
+ }
12853
+ },
12854
+ "hiddenPath": "$service:himiStoreCart.hasCoupon"
12855
+ }
12856
+ },
12857
+ {
12858
+ "id": "",
12859
+ "body": {
12860
+ "package": "himalaya",
12861
+ "type": "HStack",
12862
+ "props": {
12863
+ "spacing": 8,
12864
+ "children": [
12865
+ {
12866
+ "id": "",
12867
+ "body": {
12868
+ "package": "himalaya",
12869
+ "type": "Text",
12870
+ "props": {
12871
+ "text": "$service:himiStoreCart.appliedLabel",
12872
+ "style": "footnote",
12873
+ "color": "textPrimary"
12874
+ }
12875
+ }
12876
+ },
12877
+ {
12878
+ "id": "",
12879
+ "body": {
12880
+ "package": "himalaya",
12881
+ "type": "Spacer",
12882
+ "props": {}
12883
+ }
12884
+ },
12885
+ {
12886
+ "id": "himi_cart.remove_promo",
12887
+ "body": {
12888
+ "package": "himalaya",
12889
+ "type": "Button",
12890
+ "props": {
12891
+ "title": "Remove promo code",
12892
+ "action": {
12893
+ "actionId": "tier5.himiStoreCart.removePromo"
12894
+ },
12895
+ "style": "tertiary",
12896
+ "iconOnly": true,
12897
+ "leadingIcon": "close",
12898
+ "cornerRadius": 22,
12899
+ "minHeight": 44
12900
+ }
12901
+ },
12902
+ "modifiers": {
12903
+ "width": 44,
12904
+ "height": 44,
12905
+ "accessibilityLabel": "Remove promo code",
12906
+ "accessibilityRole": "button"
12907
+ }
12908
+ }
12909
+ ]
12910
+ }
12911
+ },
12912
+ "modifiers": {
12913
+ "hiddenPath": "$service:himiStoreCart.noCoupon"
12914
+ }
12915
+ }
12916
+ ]
12917
+ }
12918
+ }
12919
+ },
12920
+ {
12921
+ "id": "himi_cart.promo_error",
12922
+ "body": {
12923
+ "package": "himalaya",
12924
+ "type": "Text",
12925
+ "props": {
12926
+ "text": "$service:himiStoreCart.promoError",
12927
+ "style": "footnote",
12928
+ "color": "danger"
12929
+ }
12930
+ },
12931
+ "modifiers": {
12932
+ "hiddenPath": "$service:himiStoreCart.noPromoError"
12933
+ }
12934
+ },
12935
+ {
12936
+ "id": "",
12937
+ "body": {
12938
+ "package": "himalaya",
12939
+ "type": "HStack",
12940
+ "props": {
12941
+ "spacing": 8,
12942
+ "children": [
12943
+ {
12944
+ "id": "",
12945
+ "body": {
12946
+ "package": "himalaya",
12947
+ "type": "Text",
12948
+ "props": {
12949
+ "text": "Discount",
12950
+ "style": "body",
12951
+ "color": "textPrimary"
12952
+ }
12953
+ }
12954
+ },
12955
+ {
12956
+ "id": "",
12957
+ "body": {
12958
+ "package": "himalaya",
12959
+ "type": "Spacer",
12960
+ "props": {}
12961
+ }
12962
+ },
12963
+ {
12964
+ "id": "",
12965
+ "body": {
12966
+ "package": "himalaya",
12967
+ "type": "Text",
12968
+ "props": {
12969
+ "text": "$service:himiStoreCart.discount",
12970
+ "style": "body",
12971
+ "color": "success"
12972
+ }
12973
+ }
12974
+ }
12975
+ ]
12976
+ }
12977
+ },
12978
+ "modifiers": {
12979
+ "hiddenPath": "$service:himiStoreCart.noDiscount"
12980
+ }
12981
+ },
12982
+ {
12983
+ "id": "",
12984
+ "body": {
12985
+ "package": "himalaya",
12986
+ "type": "HStack",
12987
+ "props": {
12988
+ "spacing": 8,
12989
+ "children": [
12990
+ {
12991
+ "id": "",
12992
+ "body": {
12993
+ "package": "himalaya",
12994
+ "type": "Text",
12995
+ "props": {
12996
+ "text": "$service:himiStoreCart.subtotalLabel",
12997
+ "style": "bodyEmphasis"
12998
+ }
12999
+ }
13000
+ },
13001
+ {
13002
+ "id": "",
13003
+ "body": {
13004
+ "package": "himalaya",
13005
+ "type": "Spacer",
13006
+ "props": {}
13007
+ }
13008
+ },
13009
+ {
13010
+ "id": "",
13011
+ "body": {
13012
+ "package": "himalaya",
13013
+ "type": "Text",
13014
+ "props": {
13015
+ "text": "$service:himiStoreCart.subtotal",
13016
+ "style": "bodyEmphasis"
13017
+ }
13018
+ }
13019
+ }
13020
+ ]
13021
+ }
13022
+ }
13023
+ },
13024
+ {
13025
+ "id": "himi_cart.checkout",
13026
+ "body": {
13027
+ "package": "himalaya",
13028
+ "type": "Button",
13029
+ "props": {
13030
+ "title": "Checkout",
13031
+ "style": "primary",
13032
+ "fullWidth": true,
13033
+ "action": {
13034
+ "actionId": "tier5.himiStoreCart.checkout"
13035
+ }
13036
+ }
13037
+ }
13038
+ }
13039
+ ]
13040
+ }
13041
+ },
13042
+ "modifiers": {
13043
+ "background": {
13044
+ "token": "surfacePrimary"
13045
+ },
13046
+ "border": {
13047
+ "width": 1,
13048
+ "color": {
13049
+ "token": "border"
13050
+ }
13051
+ },
13052
+ "padding": {
13053
+ "leading": 20,
13054
+ "trailing": 20,
13055
+ "top": 12,
13056
+ "bottom": 12
13057
+ },
13058
+ "hiddenPath": "$service:himiStoreCart.noItems"
13059
+ }
12160
13060
  }
12161
13061
  },
12162
13062
  "himi_orders": {
@@ -36297,7 +37197,7 @@ const TEMPLATED: { pattern: string; display: string; liveSeed?: LiveSeed; static
36297
37197
  { pattern: "^himi_product(?:[_/](.+))?$", display: "himi_product[_{id}]", liveSeed: {"path":"/stores/v3/products/query","body":{"query":{"cursorPaging":{"limit":50}}},"listKey":"products","prefix":"himi_product_"}, template: {
36298
37198
  "screenId": "himi_product___HIMI_ID__",
36299
37199
  "renderer": "sdui_intent",
36300
- "title": "Product",
37200
+ "title": "",
36301
37201
  "schemaVersion": 1,
36302
37202
  "cacheControl": {
36303
37203
  "maxAge": 0,
@@ -36426,12 +37326,12 @@ const TEMPLATED: { pattern: string; display: string; liveSeed?: LiveSeed; static
36426
37326
  "package": "himalaya",
36427
37327
  "type": "Skeleton",
36428
37328
  "props": {
36429
- "height": 220,
37329
+ "height": 510,
36430
37330
  "cornerRadius": 8
36431
37331
  }
36432
37332
  },
36433
37333
  "modifiers": {
36434
- "height": 220,
37334
+ "height": 510,
36435
37335
  "background": {
36436
37336
  "token": "surfaceSecondary"
36437
37337
  },
@@ -36440,41 +37340,61 @@ const TEMPLATED: { pattern: string; display: string; liveSeed?: LiveSeed; static
36440
37340
  }
36441
37341
  },
36442
37342
  {
36443
- "id": "himi_product.skeleton_title",
37343
+ "id": "",
36444
37344
  "body": {
36445
37345
  "package": "himalaya",
36446
- "type": "Skeleton",
37346
+ "type": "VStack",
36447
37347
  "props": {
36448
- "height": 28,
36449
- "cornerRadius": 8
37348
+ "spacing": 12,
37349
+ "children": [
37350
+ {
37351
+ "id": "himi_product.skeleton_title",
37352
+ "body": {
37353
+ "package": "himalaya",
37354
+ "type": "Skeleton",
37355
+ "props": {
37356
+ "height": 28,
37357
+ "cornerRadius": 8
37358
+ }
37359
+ },
37360
+ "modifiers": {
37361
+ "height": 28,
37362
+ "background": {
37363
+ "token": "surfaceSecondary"
37364
+ },
37365
+ "cornerRadius": 8,
37366
+ "accessibilityRole": "decorative"
37367
+ }
37368
+ },
37369
+ {
37370
+ "id": "himi_product.skeleton_body",
37371
+ "body": {
37372
+ "package": "himalaya",
37373
+ "type": "Skeleton",
37374
+ "props": {
37375
+ "height": 72,
37376
+ "cornerRadius": 8
37377
+ }
37378
+ },
37379
+ "modifiers": {
37380
+ "height": 72,
37381
+ "background": {
37382
+ "token": "surfaceSecondary"
37383
+ },
37384
+ "cornerRadius": 8,
37385
+ "accessibilityRole": "decorative"
37386
+ }
37387
+ }
37388
+ ]
36450
37389
  }
36451
37390
  },
36452
37391
  "modifiers": {
36453
- "height": 28,
36454
- "background": {
36455
- "token": "surfaceSecondary"
36456
- },
36457
- "cornerRadius": 8,
36458
- "accessibilityRole": "decorative"
36459
- }
36460
- },
36461
- {
36462
- "id": "himi_product.skeleton_body",
36463
- "body": {
36464
- "package": "himalaya",
36465
- "type": "Skeleton",
36466
- "props": {
36467
- "height": 72,
36468
- "cornerRadius": 8
37392
+ "padding": {
37393
+ "leading": 16,
37394
+ "trailing": 16,
37395
+ "top": 12,
37396
+ "bottom": 12
36469
37397
  }
36470
- },
36471
- "modifiers": {
36472
- "height": 72,
36473
- "background": {
36474
- "token": "surfaceSecondary"
36475
- },
36476
- "cornerRadius": 8,
36477
- "accessibilityRole": "decorative"
36478
37398
  }
36479
37399
  }
36480
37400
  ]
@@ -36494,73 +37414,555 @@ const TEMPLATED: { pattern: string; display: string; liveSeed?: LiveSeed; static
36494
37414
  "alignment": "leading",
36495
37415
  "children": [
36496
37416
  {
36497
- "id": "himi_product.summary",
37417
+ "id": "himi_product.gallery",
37418
+ "body": {
37419
+ "package": "himalaya",
37420
+ "type": "Carousel",
37421
+ "props": {
37422
+ "itemsPath": "$service:himiStoreProduct.gallery",
37423
+ "items": [
37424
+ {
37425
+ "id": "",
37426
+ "body": {
37427
+ "package": "himalaya",
37428
+ "type": "Image",
37429
+ "props": {
37430
+ "url": "$item.url",
37431
+ "fillWidth": true,
37432
+ "height": 510,
37433
+ "contentMode": "fill",
37434
+ "contentDescription": "$service:himiStoreProduct.name"
37435
+ }
37436
+ },
37437
+ "modifiers": {
37438
+ "fillMaxWidth": true
37439
+ }
37440
+ }
37441
+ ]
37442
+ }
37443
+ },
37444
+ "modifiers": {
37445
+ "hiddenPath": "$service:himiStoreProduct.noGallery"
37446
+ }
37447
+ },
37448
+ {
37449
+ "id": "",
37450
+ "body": {
37451
+ "package": "himalaya",
37452
+ "type": "Image",
37453
+ "props": {
37454
+ "url": "$service:himiStoreProduct.image",
37455
+ "fillWidth": true,
37456
+ "height": 510,
37457
+ "contentMode": "fill",
37458
+ "contentDescription": "$service:himiStoreProduct.name"
37459
+ }
37460
+ },
37461
+ "modifiers": {
37462
+ "fillMaxWidth": true,
37463
+ "hiddenPath": "$service:himiStoreProduct.noSingleImage"
37464
+ }
37465
+ },
37466
+ {
37467
+ "id": "",
37468
+ "body": {
37469
+ "package": "himalaya",
37470
+ "type": "ZStack",
37471
+ "props": {
37472
+ "alignment": "center",
37473
+ "children": [
37474
+ {
37475
+ "id": "",
37476
+ "body": {
37477
+ "package": "himalaya",
37478
+ "type": "Text",
37479
+ "props": {
37480
+ "text": "$service:himiStoreProduct.initial",
37481
+ "style": "display",
37482
+ "color": "textOnAccent"
37483
+ }
37484
+ }
37485
+ }
37486
+ ]
37487
+ }
37488
+ },
37489
+ "modifiers": {
37490
+ "fillMaxWidth": true,
37491
+ "height": 510,
37492
+ "background": {
37493
+ "token": "accentPrimary"
37494
+ },
37495
+ "hiddenPath": "$service:himiStoreProduct.hasImage"
37496
+ }
37497
+ },
37498
+ {
37499
+ "id": "",
36498
37500
  "body": {
36499
37501
  "package": "himalaya",
36500
37502
  "type": "VStack",
36501
37503
  "props": {
36502
- "spacing": 12,
37504
+ "spacing": 16,
36503
37505
  "alignment": "leading",
36504
37506
  "children": [
36505
37507
  {
36506
- "id": "himi_product.gallery",
37508
+ "id": "",
36507
37509
  "body": {
36508
37510
  "package": "himalaya",
36509
- "type": "Carousel",
37511
+ "type": "Text",
36510
37512
  "props": {
36511
- "itemsPath": "$service:himiStoreProduct.gallery",
36512
- "items": [
37513
+ "text": "On sale",
37514
+ "style": "caption",
37515
+ "color": "danger"
37516
+ }
37517
+ },
37518
+ "modifiers": {
37519
+ "background": {
37520
+ "token": "surfaceTertiary"
37521
+ },
37522
+ "cornerRadius": 4,
37523
+ "padding": {
37524
+ "leading": 8,
37525
+ "trailing": 8,
37526
+ "top": 4,
37527
+ "bottom": 4
37528
+ },
37529
+ "hiddenPath": "$service:himiStoreProduct.notOnSale"
37530
+ }
37531
+ },
37532
+ {
37533
+ "id": "himi_product.title",
37534
+ "body": {
37535
+ "package": "himalaya",
37536
+ "type": "Text",
37537
+ "props": {
37538
+ "text": "$service:himiStoreProduct.name",
37539
+ "style": "title3",
37540
+ "color": "textPrimary",
37541
+ "maxLines": 2,
37542
+ "collapseWhenEmpty": true
37543
+ }
37544
+ }
37545
+ },
37546
+ {
37547
+ "id": "himi_product.price_row",
37548
+ "body": {
37549
+ "package": "himalaya",
37550
+ "type": "HStack",
37551
+ "props": {
37552
+ "spacing": 8,
37553
+ "children": [
37554
+ {
37555
+ "id": "",
37556
+ "body": {
37557
+ "package": "himalaya",
37558
+ "type": "Text",
37559
+ "props": {
37560
+ "text": "$service:himiStoreProduct.wasPrice",
37561
+ "style": "title3",
37562
+ "color": "textSecondary",
37563
+ "collapseWhenEmpty": true,
37564
+ "decoration": "strikethrough"
37565
+ }
37566
+ },
37567
+ "modifiers": {
37568
+ "hiddenPath": "$service:himiStoreProduct.notOnSale"
37569
+ }
37570
+ },
37571
+ {
37572
+ "id": "himi_product.price_sale",
37573
+ "body": {
37574
+ "package": "himalaya",
37575
+ "type": "Text",
37576
+ "props": {
37577
+ "text": "$service:himiStoreProduct.price",
37578
+ "style": "title3",
37579
+ "color": "danger",
37580
+ "collapseWhenEmpty": true
37581
+ }
37582
+ },
37583
+ "modifiers": {
37584
+ "hiddenPath": "$service:himiStoreProduct.notOnSale"
37585
+ }
37586
+ },
37587
+ {
37588
+ "id": "himi_product.price",
37589
+ "body": {
37590
+ "package": "himalaya",
37591
+ "type": "Text",
37592
+ "props": {
37593
+ "text": "$service:himiStoreProduct.price",
37594
+ "style": "title3",
37595
+ "color": "accentPrimary",
37596
+ "collapseWhenEmpty": true
37597
+ }
37598
+ },
37599
+ "modifiers": {
37600
+ "hiddenPath": "$service:himiStoreProduct.wasPriceEmpty"
37601
+ }
37602
+ }
37603
+ ]
37604
+ }
37605
+ }
37606
+ },
37607
+ {
37608
+ "id": "himi_product.options_card",
37609
+ "body": {
37610
+ "package": "himalaya",
37611
+ "type": "VStack",
37612
+ "props": {
37613
+ "spacing": 12,
37614
+ "alignment": "leading",
37615
+ "children": [
37616
+ {
37617
+ "id": "himi_product.opt1_row",
37618
+ "body": {
37619
+ "package": "himalaya",
37620
+ "type": "VStack",
37621
+ "props": {
37622
+ "spacing": 8,
37623
+ "alignment": "leading",
37624
+ "children": [
37625
+ {
37626
+ "id": "",
37627
+ "body": {
37628
+ "package": "himalaya",
37629
+ "type": "Text",
37630
+ "props": {
37631
+ "text": "$service:himiStoreProduct.opt1Label",
37632
+ "style": "body",
37633
+ "collapseWhenEmpty": true
37634
+ }
37635
+ }
37636
+ },
37637
+ {
37638
+ "id": "himi_product.opt1",
37639
+ "body": {
37640
+ "package": "himalaya",
37641
+ "type": "Picker",
37642
+ "props": {
37643
+ "options": [],
37644
+ "optionsPath": "$service:himiStoreProduct.opt1Chips",
37645
+ "selectedId": "$service:himiStoreProduct.opt1SelectedId",
37646
+ "placeholder": "$service:himiStoreProduct.opt1Placeholder",
37647
+ "presentation": "sheet",
37648
+ "field": {
37649
+ "minHeight": 48,
37650
+ "cornerRadius": 4,
37651
+ "borderColor": "textSecondary",
37652
+ "borderWidth": 1,
37653
+ "padding": 16,
37654
+ "chevronIcon": "chevron_down"
37655
+ },
37656
+ "onChange": {
37657
+ "actionId": "tier5.himiStoreProduct.selectOption",
37658
+ "params": {
37659
+ "group": "1"
37660
+ }
37661
+ }
37662
+ }
37663
+ },
37664
+ "modifiers": {
37665
+ "accessibilityLabel": "$service:himiStoreProduct.opt1Label",
37666
+ "hiddenPath": "$service:himiStoreProduct.hasOpt1Error"
37667
+ }
37668
+ },
37669
+ {
37670
+ "id": "himi_product.opt1_error",
37671
+ "body": {
37672
+ "package": "himalaya",
37673
+ "type": "Picker",
37674
+ "props": {
37675
+ "options": [],
37676
+ "optionsPath": "$service:himiStoreProduct.opt1Chips",
37677
+ "selectedId": "$service:himiStoreProduct.opt1SelectedId",
37678
+ "placeholder": "$service:himiStoreProduct.opt1Placeholder",
37679
+ "presentation": "sheet",
37680
+ "field": {
37681
+ "minHeight": 48,
37682
+ "cornerRadius": 4,
37683
+ "borderColor": "danger",
37684
+ "borderWidth": 1,
37685
+ "padding": 16,
37686
+ "chevronIcon": "chevron_down"
37687
+ },
37688
+ "onChange": {
37689
+ "actionId": "tier5.himiStoreProduct.selectOption",
37690
+ "params": {
37691
+ "group": "1"
37692
+ }
37693
+ }
37694
+ }
37695
+ },
37696
+ "modifiers": {
37697
+ "accessibilityLabel": "$service:himiStoreProduct.opt1Label",
37698
+ "hiddenPath": "$service:himiStoreProduct.noOpt1Error"
37699
+ }
37700
+ },
37701
+ {
37702
+ "id": "",
37703
+ "body": {
37704
+ "package": "himalaya",
37705
+ "type": "Text",
37706
+ "props": {
37707
+ "text": "$service:himiStoreProduct.opt1Error",
37708
+ "style": "footnote",
37709
+ "color": "danger"
37710
+ }
37711
+ },
37712
+ "modifiers": {
37713
+ "hiddenPath": "$service:himiStoreProduct.noOpt1Error"
37714
+ }
37715
+ }
37716
+ ]
37717
+ }
37718
+ },
37719
+ "modifiers": {
37720
+ "hiddenPath": "$service:himiStoreProduct.noOpt1"
37721
+ }
37722
+ },
37723
+ {
37724
+ "id": "himi_product.opt2_row",
37725
+ "body": {
37726
+ "package": "himalaya",
37727
+ "type": "VStack",
37728
+ "props": {
37729
+ "spacing": 8,
37730
+ "alignment": "leading",
37731
+ "children": [
37732
+ {
37733
+ "id": "",
37734
+ "body": {
37735
+ "package": "himalaya",
37736
+ "type": "Text",
37737
+ "props": {
37738
+ "text": "$service:himiStoreProduct.opt2Label",
37739
+ "style": "body",
37740
+ "collapseWhenEmpty": true
37741
+ }
37742
+ }
37743
+ },
37744
+ {
37745
+ "id": "himi_product.opt2",
37746
+ "body": {
37747
+ "package": "himalaya",
37748
+ "type": "Picker",
37749
+ "props": {
37750
+ "options": [],
37751
+ "optionsPath": "$service:himiStoreProduct.opt2Chips",
37752
+ "selectedId": "$service:himiStoreProduct.opt2SelectedId",
37753
+ "placeholder": "$service:himiStoreProduct.opt2Placeholder",
37754
+ "presentation": "sheet",
37755
+ "field": {
37756
+ "minHeight": 48,
37757
+ "cornerRadius": 4,
37758
+ "borderColor": "textSecondary",
37759
+ "borderWidth": 1,
37760
+ "padding": 16,
37761
+ "chevronIcon": "chevron_down"
37762
+ },
37763
+ "onChange": {
37764
+ "actionId": "tier5.himiStoreProduct.selectOption",
37765
+ "params": {
37766
+ "group": "2"
37767
+ }
37768
+ }
37769
+ }
37770
+ },
37771
+ "modifiers": {
37772
+ "accessibilityLabel": "$service:himiStoreProduct.opt2Label",
37773
+ "hiddenPath": "$service:himiStoreProduct.hasOpt2Error"
37774
+ }
37775
+ },
37776
+ {
37777
+ "id": "himi_product.opt2_error",
37778
+ "body": {
37779
+ "package": "himalaya",
37780
+ "type": "Picker",
37781
+ "props": {
37782
+ "options": [],
37783
+ "optionsPath": "$service:himiStoreProduct.opt2Chips",
37784
+ "selectedId": "$service:himiStoreProduct.opt2SelectedId",
37785
+ "placeholder": "$service:himiStoreProduct.opt2Placeholder",
37786
+ "presentation": "sheet",
37787
+ "field": {
37788
+ "minHeight": 48,
37789
+ "cornerRadius": 4,
37790
+ "borderColor": "danger",
37791
+ "borderWidth": 1,
37792
+ "padding": 16,
37793
+ "chevronIcon": "chevron_down"
37794
+ },
37795
+ "onChange": {
37796
+ "actionId": "tier5.himiStoreProduct.selectOption",
37797
+ "params": {
37798
+ "group": "2"
37799
+ }
37800
+ }
37801
+ }
37802
+ },
37803
+ "modifiers": {
37804
+ "accessibilityLabel": "$service:himiStoreProduct.opt2Label",
37805
+ "hiddenPath": "$service:himiStoreProduct.noOpt2Error"
37806
+ }
37807
+ },
37808
+ {
37809
+ "id": "",
37810
+ "body": {
37811
+ "package": "himalaya",
37812
+ "type": "Text",
37813
+ "props": {
37814
+ "text": "$service:himiStoreProduct.opt2Error",
37815
+ "style": "footnote",
37816
+ "color": "danger"
37817
+ }
37818
+ },
37819
+ "modifiers": {
37820
+ "hiddenPath": "$service:himiStoreProduct.noOpt2Error"
37821
+ }
37822
+ }
37823
+ ]
37824
+ }
37825
+ },
37826
+ "modifiers": {
37827
+ "hiddenPath": "$service:himiStoreProduct.noOpt2"
37828
+ }
37829
+ },
37830
+ {
37831
+ "id": "himi_product.opt3_row",
37832
+ "body": {
37833
+ "package": "himalaya",
37834
+ "type": "VStack",
37835
+ "props": {
37836
+ "spacing": 8,
37837
+ "alignment": "leading",
37838
+ "children": [
37839
+ {
37840
+ "id": "",
37841
+ "body": {
37842
+ "package": "himalaya",
37843
+ "type": "Text",
37844
+ "props": {
37845
+ "text": "$service:himiStoreProduct.opt3Label",
37846
+ "style": "body",
37847
+ "collapseWhenEmpty": true
37848
+ }
37849
+ }
37850
+ },
37851
+ {
37852
+ "id": "himi_product.opt3",
37853
+ "body": {
37854
+ "package": "himalaya",
37855
+ "type": "Picker",
37856
+ "props": {
37857
+ "options": [],
37858
+ "optionsPath": "$service:himiStoreProduct.opt3Chips",
37859
+ "selectedId": "$service:himiStoreProduct.opt3SelectedId",
37860
+ "placeholder": "$service:himiStoreProduct.opt3Placeholder",
37861
+ "presentation": "sheet",
37862
+ "field": {
37863
+ "minHeight": 48,
37864
+ "cornerRadius": 4,
37865
+ "borderColor": "textSecondary",
37866
+ "borderWidth": 1,
37867
+ "padding": 16,
37868
+ "chevronIcon": "chevron_down"
37869
+ },
37870
+ "onChange": {
37871
+ "actionId": "tier5.himiStoreProduct.selectOption",
37872
+ "params": {
37873
+ "group": "3"
37874
+ }
37875
+ }
37876
+ }
37877
+ },
37878
+ "modifiers": {
37879
+ "accessibilityLabel": "$service:himiStoreProduct.opt3Label",
37880
+ "hiddenPath": "$service:himiStoreProduct.hasOpt3Error"
37881
+ }
37882
+ },
37883
+ {
37884
+ "id": "himi_product.opt3_error",
37885
+ "body": {
37886
+ "package": "himalaya",
37887
+ "type": "Picker",
37888
+ "props": {
37889
+ "options": [],
37890
+ "optionsPath": "$service:himiStoreProduct.opt3Chips",
37891
+ "selectedId": "$service:himiStoreProduct.opt3SelectedId",
37892
+ "placeholder": "$service:himiStoreProduct.opt3Placeholder",
37893
+ "presentation": "sheet",
37894
+ "field": {
37895
+ "minHeight": 48,
37896
+ "cornerRadius": 4,
37897
+ "borderColor": "danger",
37898
+ "borderWidth": 1,
37899
+ "padding": 16,
37900
+ "chevronIcon": "chevron_down"
37901
+ },
37902
+ "onChange": {
37903
+ "actionId": "tier5.himiStoreProduct.selectOption",
37904
+ "params": {
37905
+ "group": "3"
37906
+ }
37907
+ }
37908
+ }
37909
+ },
37910
+ "modifiers": {
37911
+ "accessibilityLabel": "$service:himiStoreProduct.opt3Label",
37912
+ "hiddenPath": "$service:himiStoreProduct.noOpt3Error"
37913
+ }
37914
+ },
37915
+ {
37916
+ "id": "",
37917
+ "body": {
37918
+ "package": "himalaya",
37919
+ "type": "Text",
37920
+ "props": {
37921
+ "text": "$service:himiStoreProduct.opt3Error",
37922
+ "style": "footnote",
37923
+ "color": "danger"
37924
+ }
37925
+ },
37926
+ "modifiers": {
37927
+ "hiddenPath": "$service:himiStoreProduct.noOpt3Error"
37928
+ }
37929
+ }
37930
+ ]
37931
+ }
37932
+ },
37933
+ "modifiers": {
37934
+ "hiddenPath": "$service:himiStoreProduct.noOpt3"
37935
+ }
37936
+ },
36513
37937
  {
36514
37938
  "id": "",
36515
37939
  "body": {
36516
37940
  "package": "himalaya",
36517
- "type": "Image",
37941
+ "type": "Text",
36518
37942
  "props": {
36519
- "url": "$item.url",
36520
- "fillWidth": true,
36521
- "height": 240,
36522
- "contentMode": "fill",
36523
- "contentDescription": "$service:himiStoreProduct.name"
37943
+ "text": "This product has more options than this screen can show. Open it on the website to order.",
37944
+ "style": "footnote",
37945
+ "color": "textSecondary"
36524
37946
  }
36525
37947
  },
36526
37948
  "modifiers": {
36527
- "cornerRadius": 8,
36528
- "fillMaxWidth": true
37949
+ "hiddenPath": "$service:himiStoreProduct.noOptionsOverflow"
36529
37950
  }
36530
37951
  }
36531
37952
  ]
36532
37953
  }
36533
37954
  },
36534
37955
  "modifiers": {
36535
- "hiddenPath": "$service:himiStoreProduct.noGallery"
36536
- }
36537
- },
36538
- {
36539
- "id": "",
36540
- "body": {
36541
- "package": "himalaya",
36542
- "type": "Image",
36543
- "props": {
36544
- "url": "$service:himiStoreProduct.image",
36545
- "fillWidth": true,
36546
- "height": 240,
36547
- "contentMode": "fill",
36548
- "contentDescription": "$service:himiStoreProduct.name"
36549
- }
36550
- },
36551
- "modifiers": {
36552
- "cornerRadius": 8,
36553
- "fillMaxWidth": true,
36554
- "hiddenPath": "$service:himiStoreProduct.noSingleImage"
37956
+ "hiddenPath": "$service:himiStoreProduct.noOptions"
36555
37957
  }
36556
37958
  },
36557
37959
  {
36558
- "id": "",
37960
+ "id": "himi_product.qty_row",
36559
37961
  "body": {
36560
37962
  "package": "himalaya",
36561
- "type": "ZStack",
37963
+ "type": "HStack",
36562
37964
  "props": {
36563
- "alignment": "center",
37965
+ "spacing": 12,
36564
37966
  "children": [
36565
37967
  {
36566
37968
  "id": "",
@@ -36568,49 +37970,41 @@ const TEMPLATED: { pattern: string; display: string; liveSeed?: LiveSeed; static
36568
37970
  "package": "himalaya",
36569
37971
  "type": "Text",
36570
37972
  "props": {
36571
- "text": "$service:himiStoreProduct.initial",
36572
- "style": "display",
36573
- "color": "textOnAccent"
37973
+ "text": "Quantity",
37974
+ "style": "body"
37975
+ }
37976
+ }
37977
+ },
37978
+ {
37979
+ "id": "",
37980
+ "body": {
37981
+ "package": "himalaya",
37982
+ "type": "Spacer",
37983
+ "props": {}
37984
+ }
37985
+ },
37986
+ {
37987
+ "id": "himi_product.qty",
37988
+ "body": {
37989
+ "package": "himalaya",
37990
+ "type": "Stepper",
37991
+ "props": {
37992
+ "value": 1,
37993
+ "valuePath": "$service:himiStoreProduct.quantity",
37994
+ "min": 1,
37995
+ "max": 99,
37996
+ "presentation": "plain",
37997
+ "onChange": {
37998
+ "actionId": "tier5.himiStoreProduct.setQuantity"
37999
+ }
36574
38000
  }
38001
+ },
38002
+ "modifiers": {
38003
+ "accessibilityLabel": "Quantity"
36575
38004
  }
36576
38005
  }
36577
38006
  ]
36578
38007
  }
36579
- },
36580
- "modifiers": {
36581
- "fillMaxWidth": true,
36582
- "height": 220,
36583
- "background": {
36584
- "token": "accentPrimary"
36585
- },
36586
- "cornerRadius": 8,
36587
- "hiddenPath": "$service:himiStoreProduct.hasImage"
36588
- }
36589
- },
36590
- {
36591
- "id": "",
36592
- "body": {
36593
- "package": "himalaya",
36594
- "type": "Text",
36595
- "props": {
36596
- "text": "$service:himiStoreProduct.name",
36597
- "style": "title2",
36598
- "maxLines": 2,
36599
- "collapseWhenEmpty": true
36600
- }
36601
- }
36602
- },
36603
- {
36604
- "id": "himi_product.price",
36605
- "body": {
36606
- "package": "himalaya",
36607
- "type": "Text",
36608
- "props": {
36609
- "text": "$service:himiStoreProduct.price",
36610
- "style": "title1",
36611
- "color": "accentPrimary",
36612
- "collapseWhenEmpty": true
36613
- }
36614
38008
  }
36615
38009
  },
36616
38010
  {
@@ -36639,7 +38033,7 @@ const TEMPLATED: { pattern: string; display: string; liveSeed?: LiveSeed; static
36639
38033
  "props": {
36640
38034
  "text": "$service:himiStoreProduct.description",
36641
38035
  "style": "body",
36642
- "color": "textSecondary",
38036
+ "color": "textPrimary",
36643
38037
  "collapseWhenEmpty": true
36644
38038
  }
36645
38039
  }
@@ -36655,302 +38049,265 @@ const TEMPLATED: { pattern: string; display: string; liveSeed?: LiveSeed; static
36655
38049
  "props": {
36656
38050
  "text": "$service:himiStoreProduct.description",
36657
38051
  "style": "body",
36658
- "color": "textSecondary",
38052
+ "color": "textPrimary",
36659
38053
  "collapseWhenEmpty": true
36660
38054
  }
36661
38055
  },
36662
38056
  "modifiers": {
36663
38057
  "hiddenPath": "$service:himiStoreProduct.hasDescriptionJson"
36664
38058
  }
36665
- }
36666
- ]
36667
- }
36668
- },
36669
- "modifiers": {
36670
- "background": {
36671
- "token": "surfaceElevated"
36672
- },
36673
- "border": {
36674
- "width": 1,
36675
- "color": {
36676
- "token": "border"
36677
- }
36678
- },
36679
- "cornerRadius": 8,
36680
- "padding": {
36681
- "leading": 14,
36682
- "trailing": 14,
36683
- "top": 14,
36684
- "bottom": 14
36685
- }
36686
- }
36687
- },
36688
- {
36689
- "id": "himi_product.options_card",
36690
- "body": {
36691
- "package": "himalaya",
36692
- "type": "VStack",
36693
- "props": {
36694
- "spacing": 12,
36695
- "alignment": "leading",
36696
- "children": [
38059
+ },
36697
38060
  {
36698
- "id": "himi_product.opt1_row",
38061
+ "id": "himi_product.sku",
36699
38062
  "body": {
36700
38063
  "package": "himalaya",
36701
- "type": "VStack",
38064
+ "type": "Text",
36702
38065
  "props": {
36703
- "spacing": 8,
36704
- "alignment": "leading",
36705
- "children": [
36706
- {
36707
- "id": "",
36708
- "body": {
36709
- "package": "himalaya",
36710
- "type": "Text",
36711
- "props": {
36712
- "text": "$service:himiStoreProduct.opt1Label",
36713
- "style": "bodyEmphasis",
36714
- "collapseWhenEmpty": true
36715
- }
36716
- }
36717
- },
36718
- {
36719
- "id": "himi_product.opt1",
36720
- "body": {
36721
- "package": "himalaya",
36722
- "type": "FilterChips",
36723
- "props": {
36724
- "chips": [],
36725
- "optionsPath": "$service:himiStoreProduct.opt1Chips",
36726
- "selectedIds": [
36727
- "$service:himiStoreProduct.opt1Selected"
36728
- ],
36729
- "onChange": {
36730
- "actionId": "tier5.himiStoreProduct.selectOption",
36731
- "params": {
36732
- "group": "1"
36733
- }
36734
- }
36735
- }
36736
- },
36737
- "modifiers": {
36738
- "accessibilityLabel": "$service:himiStoreProduct.opt1Label"
36739
- }
36740
- }
36741
- ]
38066
+ "text": "$service:himiStoreProduct.skuLabel",
38067
+ "style": "caption",
38068
+ "color": "textSecondary",
38069
+ "collapseWhenEmpty": true
36742
38070
  }
38071
+ }
38072
+ },
38073
+ {
38074
+ "id": "",
38075
+ "body": {
38076
+ "package": "himalaya",
38077
+ "type": "Divider",
38078
+ "props": {}
36743
38079
  },
36744
38080
  "modifiers": {
36745
- "hiddenPath": "$service:himiStoreProduct.noOpt1"
38081
+ "hiddenPath": "$service:himiStoreProduct.noSku"
36746
38082
  }
36747
38083
  },
36748
38084
  {
36749
- "id": "himi_product.opt2_row",
38085
+ "id": "himi_product.return_policy",
36750
38086
  "body": {
36751
38087
  "package": "himalaya",
36752
38088
  "type": "VStack",
36753
38089
  "props": {
36754
- "spacing": 8,
38090
+ "spacing": 0,
36755
38091
  "alignment": "leading",
36756
38092
  "children": [
36757
38093
  {
36758
- "id": "",
38094
+ "id": "himi_product.return_policy.header",
36759
38095
  "body": {
36760
38096
  "package": "himalaya",
36761
- "type": "Text",
38097
+ "type": "HStack",
36762
38098
  "props": {
36763
- "text": "$service:himiStoreProduct.opt2Label",
36764
- "style": "bodyEmphasis",
36765
- "collapseWhenEmpty": true
38099
+ "spacing": 12,
38100
+ "children": [
38101
+ {
38102
+ "id": "",
38103
+ "body": {
38104
+ "package": "himalaya",
38105
+ "type": "Text",
38106
+ "props": {
38107
+ "text": "Return & refund policy",
38108
+ "style": "body",
38109
+ "maxLines": 2
38110
+ }
38111
+ }
38112
+ },
38113
+ {
38114
+ "id": "",
38115
+ "body": {
38116
+ "package": "himalaya",
38117
+ "type": "Spacer",
38118
+ "props": {}
38119
+ }
38120
+ },
38121
+ {
38122
+ "id": "",
38123
+ "body": {
38124
+ "package": "himalaya",
38125
+ "type": "Icon",
38126
+ "props": {
38127
+ "name": "chevron_down",
38128
+ "size": 16,
38129
+ "tint": "textSecondary"
38130
+ }
38131
+ },
38132
+ "modifiers": {
38133
+ "accessibilityRole": "decorative",
38134
+ "hiddenPath": "$service:himiStoreProduct.returnPolicyExpanded"
38135
+ }
38136
+ },
38137
+ {
38138
+ "id": "",
38139
+ "body": {
38140
+ "package": "himalaya",
38141
+ "type": "Icon",
38142
+ "props": {
38143
+ "name": "chevron_up",
38144
+ "size": 16,
38145
+ "tint": "textSecondary"
38146
+ }
38147
+ },
38148
+ "modifiers": {
38149
+ "accessibilityRole": "decorative",
38150
+ "hiddenPath": "$service:himiStoreProduct.returnPolicyCollapsed"
38151
+ }
38152
+ }
38153
+ ]
36766
38154
  }
38155
+ },
38156
+ "modifiers": {
38157
+ "fillMaxWidth": true,
38158
+ "padding": {
38159
+ "top": 18,
38160
+ "bottom": 18
38161
+ },
38162
+ "onTap": {
38163
+ "actionId": "tier5.himiStoreProduct.toggleReturnPolicy"
38164
+ },
38165
+ "pressFeedback": "highlight",
38166
+ "accessibilityRole": "button",
38167
+ "accessibilityLabel": "Return & refund policy"
36767
38168
  }
36768
38169
  },
36769
38170
  {
36770
- "id": "himi_product.opt2",
38171
+ "id": "",
36771
38172
  "body": {
36772
38173
  "package": "himalaya",
36773
- "type": "FilterChips",
38174
+ "type": "Text",
36774
38175
  "props": {
36775
- "chips": [],
36776
- "optionsPath": "$service:himiStoreProduct.opt2Chips",
36777
- "selectedIds": [
36778
- "$service:himiStoreProduct.opt2Selected"
36779
- ],
36780
- "onChange": {
36781
- "actionId": "tier5.himiStoreProduct.selectOption",
36782
- "params": {
36783
- "group": "2"
36784
- }
36785
- }
38176
+ "text": "$service:himiStoreProduct.returnPolicyBody",
38177
+ "style": "body",
38178
+ "color": "textSecondary"
36786
38179
  }
36787
38180
  },
36788
38181
  "modifiers": {
36789
- "accessibilityLabel": "$service:himiStoreProduct.opt2Label"
38182
+ "padding": {
38183
+ "bottom": 18
38184
+ },
38185
+ "hiddenPath": "$service:himiStoreProduct.returnPolicyCollapsed"
38186
+ }
38187
+ },
38188
+ {
38189
+ "id": "",
38190
+ "body": {
38191
+ "package": "himalaya",
38192
+ "type": "Divider",
38193
+ "props": {}
36790
38194
  }
36791
38195
  }
36792
38196
  ]
36793
38197
  }
36794
- },
36795
- "modifiers": {
36796
- "hiddenPath": "$service:himiStoreProduct.noOpt2"
36797
38198
  }
36798
38199
  },
36799
38200
  {
36800
- "id": "himi_product.opt3_row",
38201
+ "id": "himi_product.shipping_info",
36801
38202
  "body": {
36802
38203
  "package": "himalaya",
36803
38204
  "type": "VStack",
36804
38205
  "props": {
36805
- "spacing": 8,
38206
+ "spacing": 0,
36806
38207
  "alignment": "leading",
36807
38208
  "children": [
36808
38209
  {
36809
- "id": "",
36810
- "body": {
36811
- "package": "himalaya",
36812
- "type": "Text",
36813
- "props": {
36814
- "text": "$service:himiStoreProduct.opt3Label",
36815
- "style": "bodyEmphasis",
36816
- "collapseWhenEmpty": true
36817
- }
36818
- }
36819
- },
36820
- {
36821
- "id": "himi_product.opt3",
38210
+ "id": "himi_product.shipping_info.header",
36822
38211
  "body": {
36823
38212
  "package": "himalaya",
36824
- "type": "FilterChips",
38213
+ "type": "HStack",
36825
38214
  "props": {
36826
- "chips": [],
36827
- "optionsPath": "$service:himiStoreProduct.opt3Chips",
36828
- "selectedIds": [
36829
- "$service:himiStoreProduct.opt3Selected"
36830
- ],
36831
- "onChange": {
36832
- "actionId": "tier5.himiStoreProduct.selectOption",
36833
- "params": {
36834
- "group": "3"
38215
+ "spacing": 12,
38216
+ "children": [
38217
+ {
38218
+ "id": "",
38219
+ "body": {
38220
+ "package": "himalaya",
38221
+ "type": "Text",
38222
+ "props": {
38223
+ "text": "Shipping info",
38224
+ "style": "body",
38225
+ "maxLines": 2
38226
+ }
38227
+ }
38228
+ },
38229
+ {
38230
+ "id": "",
38231
+ "body": {
38232
+ "package": "himalaya",
38233
+ "type": "Spacer",
38234
+ "props": {}
38235
+ }
38236
+ },
38237
+ {
38238
+ "id": "",
38239
+ "body": {
38240
+ "package": "himalaya",
38241
+ "type": "Icon",
38242
+ "props": {
38243
+ "name": "chevron_down",
38244
+ "size": 16,
38245
+ "tint": "textSecondary"
38246
+ }
38247
+ },
38248
+ "modifiers": {
38249
+ "accessibilityRole": "decorative",
38250
+ "hiddenPath": "$service:himiStoreProduct.shippingInfoExpanded"
38251
+ }
38252
+ },
38253
+ {
38254
+ "id": "",
38255
+ "body": {
38256
+ "package": "himalaya",
38257
+ "type": "Icon",
38258
+ "props": {
38259
+ "name": "chevron_up",
38260
+ "size": 16,
38261
+ "tint": "textSecondary"
38262
+ }
38263
+ },
38264
+ "modifiers": {
38265
+ "accessibilityRole": "decorative",
38266
+ "hiddenPath": "$service:himiStoreProduct.shippingInfoCollapsed"
38267
+ }
36835
38268
  }
36836
- }
38269
+ ]
36837
38270
  }
36838
38271
  },
36839
38272
  "modifiers": {
36840
- "accessibilityLabel": "$service:himiStoreProduct.opt3Label"
38273
+ "fillMaxWidth": true,
38274
+ "padding": {
38275
+ "top": 18,
38276
+ "bottom": 18
38277
+ },
38278
+ "onTap": {
38279
+ "actionId": "tier5.himiStoreProduct.toggleShippingInfo"
38280
+ },
38281
+ "pressFeedback": "highlight",
38282
+ "accessibilityRole": "button",
38283
+ "accessibilityLabel": "Shipping info"
36841
38284
  }
36842
- }
36843
- ]
36844
- }
36845
- },
36846
- "modifiers": {
36847
- "hiddenPath": "$service:himiStoreProduct.noOpt3"
36848
- }
36849
- },
36850
- {
36851
- "id": "himi_product.options_hint",
36852
- "body": {
36853
- "package": "himalaya",
36854
- "type": "Text",
36855
- "props": {
36856
- "text": "$service:himiStoreProduct.optionsHint",
36857
- "style": "footnote",
36858
- "color": "textSecondary",
36859
- "collapseWhenEmpty": true
36860
- }
36861
- }
36862
- },
36863
- {
36864
- "id": "",
36865
- "body": {
36866
- "package": "himalaya",
36867
- "type": "Text",
36868
- "props": {
36869
- "text": "This product has more options than this screen can show. Open it on the website to order.",
36870
- "style": "footnote",
36871
- "color": "textSecondary"
36872
- }
36873
- },
36874
- "modifiers": {
36875
- "hiddenPath": "$service:himiStoreProduct.noOptionsOverflow"
36876
- }
36877
- }
36878
- ]
36879
- }
36880
- },
36881
- "modifiers": {
36882
- "background": {
36883
- "token": "surfaceElevated"
36884
- },
36885
- "border": {
36886
- "width": 1,
36887
- "color": {
36888
- "token": "border"
36889
- }
36890
- },
36891
- "cornerRadius": 8,
36892
- "padding": {
36893
- "leading": 14,
36894
- "trailing": 14,
36895
- "top": 14,
36896
- "bottom": 14
36897
- },
36898
- "hiddenPath": "$service:himiStoreProduct.noOptions"
36899
- }
36900
- },
36901
- {
36902
- "id": "himi_product.qty_card",
36903
- "body": {
36904
- "package": "himalaya",
36905
- "type": "VStack",
36906
- "props": {
36907
- "spacing": 12,
36908
- "alignment": "leading",
36909
- "children": [
36910
- {
36911
- "id": "himi_product.qty_row",
36912
- "body": {
36913
- "package": "himalaya",
36914
- "type": "HStack",
36915
- "props": {
36916
- "spacing": 12,
36917
- "children": [
38285
+ },
36918
38286
  {
36919
38287
  "id": "",
36920
38288
  "body": {
36921
38289
  "package": "himalaya",
36922
38290
  "type": "Text",
36923
38291
  "props": {
36924
- "text": "Quantity",
36925
- "style": "bodyEmphasis"
38292
+ "text": "$service:himiStoreProduct.shippingInfoBody",
38293
+ "style": "body",
38294
+ "color": "textSecondary"
36926
38295
  }
38296
+ },
38297
+ "modifiers": {
38298
+ "padding": {
38299
+ "bottom": 18
38300
+ },
38301
+ "hiddenPath": "$service:himiStoreProduct.shippingInfoCollapsed"
36927
38302
  }
36928
38303
  },
36929
38304
  {
36930
38305
  "id": "",
36931
38306
  "body": {
36932
38307
  "package": "himalaya",
36933
- "type": "Spacer",
38308
+ "type": "Divider",
36934
38309
  "props": {}
36935
38310
  }
36936
- },
36937
- {
36938
- "id": "himi_product.qty",
36939
- "body": {
36940
- "package": "himalaya",
36941
- "type": "Stepper",
36942
- "props": {
36943
- "value": 1,
36944
- "min": 1,
36945
- "max": 99,
36946
- "onChange": {
36947
- "actionId": "tier5.himiStoreProduct.setQuantity"
36948
- }
36949
- }
36950
- },
36951
- "modifiers": {
36952
- "accessibilityLabel": "Quantity"
36953
- }
36954
38311
  }
36955
38312
  ]
36956
38313
  }
@@ -36960,107 +38317,34 @@ const TEMPLATED: { pattern: string; display: string; liveSeed?: LiveSeed; static
36960
38317
  }
36961
38318
  },
36962
38319
  "modifiers": {
36963
- "background": {
36964
- "token": "surfaceElevated"
36965
- },
36966
- "border": {
36967
- "width": 1,
36968
- "color": {
36969
- "token": "border"
36970
- }
36971
- },
36972
- "cornerRadius": 8,
36973
38320
  "padding": {
36974
- "leading": 14,
36975
- "trailing": 14,
36976
- "top": 14,
36977
- "bottom": 14
36978
- }
36979
- }
36980
- },
36981
- {
36982
- "id": "himi_product.save",
36983
- "body": {
36984
- "package": "himalaya",
36985
- "type": "Button",
36986
- "props": {
36987
- "title": "$service:himiStoreProduct.saveLabel",
36988
- "style": "secondary",
36989
- "fullWidth": true,
36990
- "leadingIcon": "bookmark",
36991
- "action": {
36992
- "actionId": "tier5.himiStoreProduct.toggleSave"
36993
- }
36994
- }
36995
- }
36996
- },
36997
- {
36998
- "id": "himi_product.save_hint",
36999
- "body": {
37000
- "package": "himalaya",
37001
- "type": "Text",
37002
- "props": {
37003
- "text": "$service:himiStoreProduct.saveHint",
37004
- "style": "footnote",
37005
- "collapseWhenEmpty": true
37006
- }
37007
- }
37008
- },
37009
- {
37010
- "id": "himi_product.saved_list",
37011
- "body": {
37012
- "package": "himalaya",
37013
- "type": "Button",
37014
- "props": {
37015
- "title": "View saved products",
37016
- "style": "secondary",
37017
- "fullWidth": true,
37018
- "action": {
37019
- "actionId": "himi.open",
37020
- "params": {
37021
- "screenId": "himi_saved_products"
37022
- }
37023
- }
37024
- }
37025
- }
37026
- },
37027
- {
37028
- "id": "himi_product.share",
37029
- "body": {
37030
- "package": "himalaya",
37031
- "type": "Button",
37032
- "props": {
37033
- "title": "Share",
37034
- "style": "secondary",
37035
- "fullWidth": true,
37036
- "leadingIcon": "share",
37037
- "action": {
37038
- "actionId": "tier5.himiStoreProduct.share"
37039
- }
37040
- }
37041
- }
37042
- },
37043
- {
37044
- "id": "",
37045
- "body": {
37046
- "package": "himalaya",
37047
- "type": "Text",
37048
- "props": {
37049
- "text": "$service:himiStoreProduct.cartHint",
37050
- "style": "footnote",
37051
- "color": "textSecondary",
37052
- "collapseWhenEmpty": true
38321
+ "leading": 16,
38322
+ "trailing": 16,
38323
+ "top": 4,
38324
+ "bottom": 8
37053
38325
  }
37054
- },
37055
- "modifiers": {
37056
- "hiddenPath": "$service:himiStoreProduct.added"
37057
38326
  }
37058
38327
  }
37059
38328
  ]
37060
38329
  }
37061
38330
  },
37062
38331
  "modifiers": {
37063
- "hiddenPath": "$service:himiStoreProduct.isLoading"
38332
+ "hiddenPath": "$service:himiStoreProduct.hideProduct"
38333
+ }
38334
+ },
38335
+ {
38336
+ "id": "himi_product.share_hint",
38337
+ "body": {
38338
+ "package": "himalaya",
38339
+ "type": "Snackbar",
38340
+ "props": {
38341
+ "message": "Sharing is not available on this device.",
38342
+ "severity": "warning",
38343
+ "durationMs": 3000
38344
+ }
38345
+ },
38346
+ "modifiers": {
38347
+ "hiddenPath": "$service:himiStoreProduct.noShareHint"
37064
38348
  }
37065
38349
  },
37066
38350
  {
@@ -37133,6 +38417,255 @@ const TEMPLATED: { pattern: string; display: string; liveSeed?: LiveSeed; static
37133
38417
  },
37134
38418
  "hiddenPath": "$service:himiStoreProduct.noEmpty"
37135
38419
  }
38420
+ },
38421
+ {
38422
+ "id": "himi_product.added_sheet",
38423
+ "body": {
38424
+ "package": "himalaya",
38425
+ "type": "BottomSheet",
38426
+ "props": {
38427
+ "presentedPath": "$service:himiStoreProduct.addedSheetPresented",
38428
+ "placement": "inline",
38429
+ "modal": false,
38430
+ "autoDismissMs": 4000,
38431
+ "detents": [
38432
+ 0.5,
38433
+ 0.9
38434
+ ],
38435
+ "label": "Item added to cart",
38436
+ "onDismiss": {
38437
+ "actionId": "tier5.himiStoreProduct.closeAddedSheet"
38438
+ },
38439
+ "content": {
38440
+ "id": "",
38441
+ "body": {
38442
+ "package": "himalaya",
38443
+ "type": "VStack",
38444
+ "props": {
38445
+ "spacing": 16,
38446
+ "children": [
38447
+ {
38448
+ "id": "",
38449
+ "body": {
38450
+ "package": "himalaya",
38451
+ "type": "HStack",
38452
+ "props": {
38453
+ "spacing": 12,
38454
+ "children": [
38455
+ {
38456
+ "id": "himi_product.added_sheet_title",
38457
+ "body": {
38458
+ "package": "himalaya",
38459
+ "type": "Text",
38460
+ "props": {
38461
+ "text": "Item added to cart",
38462
+ "style": "title3"
38463
+ }
38464
+ }
38465
+ },
38466
+ {
38467
+ "id": "",
38468
+ "body": {
38469
+ "package": "himalaya",
38470
+ "type": "Spacer",
38471
+ "props": {}
38472
+ }
38473
+ },
38474
+ {
38475
+ "id": "himi_product.added_sheet_close",
38476
+ "body": {
38477
+ "package": "himalaya",
38478
+ "type": "Button",
38479
+ "props": {
38480
+ "title": "Close confirmation",
38481
+ "action": {
38482
+ "actionId": "tier5.himiStoreProduct.closeAddedSheet"
38483
+ },
38484
+ "style": "tertiary",
38485
+ "iconOnly": true,
38486
+ "leadingIcon": "close",
38487
+ "cornerRadius": 22,
38488
+ "minHeight": 44
38489
+ }
38490
+ },
38491
+ "modifiers": {
38492
+ "width": 44,
38493
+ "height": 44,
38494
+ "accessibilityLabel": "Close confirmation",
38495
+ "accessibilityRole": "button"
38496
+ }
38497
+ }
38498
+ ]
38499
+ }
38500
+ },
38501
+ "modifiers": {
38502
+ "background": {
38503
+ "token": "surfaceSecondary"
38504
+ },
38505
+ "padding": {
38506
+ "leading": 16,
38507
+ "trailing": 16,
38508
+ "top": 12,
38509
+ "bottom": 12
38510
+ }
38511
+ }
38512
+ },
38513
+ {
38514
+ "id": "",
38515
+ "body": {
38516
+ "package": "himalaya",
38517
+ "type": "HStack",
38518
+ "props": {
38519
+ "spacing": 12,
38520
+ "children": [
38521
+ {
38522
+ "id": "",
38523
+ "body": {
38524
+ "package": "himalaya",
38525
+ "type": "Image",
38526
+ "props": {
38527
+ "url": "$service:himiStoreProduct.image",
38528
+ "width": 88,
38529
+ "height": 112,
38530
+ "contentMode": "fill",
38531
+ "shape": "rect",
38532
+ "contentDescription": "$service:himiStoreProduct.name"
38533
+ }
38534
+ }
38535
+ },
38536
+ {
38537
+ "id": "",
38538
+ "body": {
38539
+ "package": "himalaya",
38540
+ "type": "VStack",
38541
+ "props": {
38542
+ "spacing": 6,
38543
+ "alignment": "leading",
38544
+ "children": [
38545
+ {
38546
+ "id": "",
38547
+ "body": {
38548
+ "package": "himalaya",
38549
+ "type": "Text",
38550
+ "props": {
38551
+ "text": "$service:himiStoreProduct.name",
38552
+ "style": "bodyEmphasis",
38553
+ "maxLines": 2
38554
+ }
38555
+ }
38556
+ },
38557
+ {
38558
+ "id": "",
38559
+ "body": {
38560
+ "package": "himalaya",
38561
+ "type": "Text",
38562
+ "props": {
38563
+ "text": "$service:himiStoreProduct.price",
38564
+ "style": "body"
38565
+ }
38566
+ }
38567
+ },
38568
+ {
38569
+ "id": "",
38570
+ "body": {
38571
+ "package": "himalaya",
38572
+ "type": "Text",
38573
+ "props": {
38574
+ "text": "$service:himiStoreProduct.optionsSummary",
38575
+ "style": "footnote",
38576
+ "color": "textSecondary",
38577
+ "collapseWhenEmpty": true
38578
+ }
38579
+ }
38580
+ },
38581
+ {
38582
+ "id": "",
38583
+ "body": {
38584
+ "package": "himalaya",
38585
+ "type": "Text",
38586
+ "props": {
38587
+ "text": "$service:himiStoreProduct.quantityLabel",
38588
+ "style": "footnote",
38589
+ "color": "textSecondary"
38590
+ }
38591
+ },
38592
+ "modifiers": {
38593
+ "hiddenPath": "$service:himiStoreProduct.quantityIsOne"
38594
+ }
38595
+ }
38596
+ ]
38597
+ }
38598
+ }
38599
+ }
38600
+ ]
38601
+ }
38602
+ }
38603
+ },
38604
+ {
38605
+ "id": "",
38606
+ "body": {
38607
+ "package": "himalaya",
38608
+ "type": "HStack",
38609
+ "props": {
38610
+ "spacing": 10,
38611
+ "children": [
38612
+ {
38613
+ "id": "himi_product.view_cart",
38614
+ "body": {
38615
+ "package": "himalaya",
38616
+ "type": "Button",
38617
+ "props": {
38618
+ "title": "View cart",
38619
+ "style": "secondary",
38620
+ "fullWidth": true,
38621
+ "action": {
38622
+ "actionId": "himi.open",
38623
+ "params": {
38624
+ "screenId": "himi_cart"
38625
+ }
38626
+ }
38627
+ }
38628
+ }
38629
+ },
38630
+ {
38631
+ "id": "himi_product.checkout",
38632
+ "body": {
38633
+ "package": "himalaya",
38634
+ "type": "Button",
38635
+ "props": {
38636
+ "title": "Checkout",
38637
+ "style": "primary",
38638
+ "fullWidth": true,
38639
+ "action": {
38640
+ "actionId": "himi.open",
38641
+ "params": {
38642
+ "screenId": "himi_cart"
38643
+ }
38644
+ }
38645
+ }
38646
+ }
38647
+ }
38648
+ ]
38649
+ }
38650
+ }
38651
+ }
38652
+ ]
38653
+ }
38654
+ },
38655
+ "modifiers": {
38656
+ "padding": {
38657
+ "leading": 16,
38658
+ "trailing": 16,
38659
+ "top": 16,
38660
+ "bottom": 24
38661
+ },
38662
+ "background": {
38663
+ "token": "surfacePrimary"
38664
+ }
38665
+ }
38666
+ }
38667
+ }
38668
+ }
37136
38669
  }
37137
38670
  ]
37138
38671
  }
@@ -37142,9 +38675,7 @@ const TEMPLATED: { pattern: string; display: string; liveSeed?: LiveSeed; static
37142
38675
  "token": "surfacePrimary"
37143
38676
  },
37144
38677
  "padding": {
37145
- "leading": 16,
37146
- "trailing": 16,
37147
- "top": 18,
38678
+ "top": 0,
37148
38679
  "bottom": 24
37149
38680
  },
37150
38681
  "onAppear": {
@@ -37171,7 +38702,7 @@ const TEMPLATED: { pattern: string; display: string; liveSeed?: LiveSeed; static
37171
38702
  "id": "__HIMI_ID__"
37172
38703
  },
37173
38704
  "stickyFooter": {
37174
- "id": "",
38705
+ "id": "himi_product.stickyFooter",
37175
38706
  "body": {
37176
38707
  "package": "himalaya",
37177
38708
  "type": "VStack",
@@ -37179,183 +38710,200 @@ const TEMPLATED: { pattern: string; display: string; liveSeed?: LiveSeed; static
37179
38710
  "spacing": 8,
37180
38711
  "children": [
37181
38712
  {
37182
- "id": "himi_product.add_to_cart",
37183
- "body": {
37184
- "package": "himalaya",
37185
- "type": "Button",
37186
- "props": {
37187
- "title": "Add to cart",
37188
- "style": "primary",
37189
- "fullWidth": true,
37190
- "action": {
37191
- "actionId": "tier5.himiStoreProduct.addToCart"
37192
- },
37193
- "disabledPath": "$service:himiStoreProduct.optionsIncomplete"
37194
- }
37195
- },
37196
- "modifiers": {
37197
- "cornerRadius": 8,
37198
- "pressFeedback": "scale",
37199
- "haptic": "medium",
37200
- "hiddenPath": "$service:himiStoreProduct.cartHidden"
37201
- }
37202
- },
37203
- {
37204
- "id": "himi_product.buy",
38713
+ "id": "himi_product.save_hint",
37205
38714
  "body": {
37206
38715
  "package": "himalaya",
37207
- "type": "Button",
38716
+ "type": "Banner",
37208
38717
  "props": {
37209
- "title": "$service:himiStoreProduct.buyLabel",
37210
- "style": "primary",
37211
- "fullWidth": true,
37212
- "disabledPath": "$service:himiStoreProduct.buyDisabled",
37213
- "action": {
37214
- "actionId": "tier5.himiStoreProduct.buy"
37215
- }
38718
+ "title": "$service:himiStoreProduct.saveHint",
38719
+ "severity": "warning"
37216
38720
  }
37217
38721
  },
37218
38722
  "modifiers": {
37219
- "hiddenPath": "$service:himiStoreProduct.buyHidden"
38723
+ "hiddenPath": "$service:himiStoreProduct.noSaveHint"
37220
38724
  }
37221
38725
  },
37222
38726
  {
37223
- "id": "himi_product.buy_note",
38727
+ "id": "himi_product.cart_hint",
37224
38728
  "body": {
37225
38729
  "package": "himalaya",
37226
- "type": "Text",
38730
+ "type": "Banner",
37227
38731
  "props": {
37228
- "text": "$service:himiStoreProduct.buyNote",
37229
- "style": "footnote",
37230
- "color": "textSecondary",
37231
- "collapseWhenEmpty": true
38732
+ "title": "$service:himiStoreProduct.cartHint",
38733
+ "severity": "warning"
37232
38734
  }
37233
38735
  },
37234
38736
  "modifiers": {
37235
- "hiddenPath": "$service:himiStoreProduct.buyHidden"
38737
+ "hiddenPath": "$service:himiStoreProduct.noCartHint"
37236
38738
  }
37237
38739
  },
37238
38740
  {
37239
- "id": "himi_product.purchased",
37240
- "body": {
37241
- "package": "himalaya",
37242
- "type": "Text",
37243
- "props": {
37244
- "text": "$service:himiStoreProduct.purchasedNote",
37245
- "style": "footnote",
37246
- "collapseWhenEmpty": true
37247
- }
37248
- }
37249
- },
37250
- {
37251
- "id": "himi_product.adding",
38741
+ "id": "",
37252
38742
  "body": {
37253
38743
  "package": "himalaya",
37254
- "type": "HStack",
37255
- "props": {
37256
- "spacing": 8,
37257
- "children": [
37258
- {
37259
- "id": "",
37260
- "body": {
37261
- "package": "himalaya",
37262
- "type": "ActivityIndicator",
37263
- "props": {
37264
- "indeterminate": true,
37265
- "size": 16
37266
- }
37267
- }
37268
- },
37269
- {
37270
- "id": "",
37271
- "body": {
37272
- "package": "himalaya",
37273
- "type": "Text",
37274
- "props": {
37275
- "text": "Adding to cart…",
37276
- "style": "footnote",
37277
- "color": "textSecondary"
37278
- }
37279
- }
37280
- }
37281
- ]
37282
- }
37283
- },
37284
- "modifiers": {
37285
- "hiddenPath": "$service:himiStoreProduct.notAdding"
38744
+ "type": "Divider",
38745
+ "props": {}
37286
38746
  }
37287
38747
  },
37288
38748
  {
37289
- "id": "himi_product.added_confirmation",
38749
+ "id": "",
37290
38750
  "body": {
37291
38751
  "package": "himalaya",
37292
38752
  "type": "HStack",
37293
38753
  "props": {
37294
- "spacing": 10,
38754
+ "spacing": 12,
37295
38755
  "children": [
37296
38756
  {
37297
- "id": "",
38757
+ "id": "himi_product.save",
37298
38758
  "body": {
37299
38759
  "package": "himalaya",
37300
- "type": "Icon",
38760
+ "type": "ZStack",
37301
38761
  "props": {
37302
- "name": "check",
37303
- "size": 18,
37304
- "tint": "success"
38762
+ "alignment": "center",
38763
+ "children": [
38764
+ {
38765
+ "id": "",
38766
+ "body": {
38767
+ "package": "himalaya",
38768
+ "type": "Icon",
38769
+ "props": {
38770
+ "name": "$service:himiStoreProduct.saveIcon",
38771
+ "size": 22,
38772
+ "tint": "textPrimary"
38773
+ }
38774
+ },
38775
+ "modifiers": {
38776
+ "accessibilityRole": "decorative"
38777
+ }
38778
+ }
38779
+ ]
37305
38780
  }
37306
38781
  },
37307
38782
  "modifiers": {
37308
- "accessibilityRole": "decorative"
38783
+ "width": 48,
38784
+ "height": 48,
38785
+ "cornerRadius": 24,
38786
+ "border": {
38787
+ "width": 1,
38788
+ "color": {
38789
+ "token": "border"
38790
+ }
38791
+ },
38792
+ "onTap": {
38793
+ "actionId": "tier5.himiStoreProduct.toggleSave"
38794
+ },
38795
+ "accessibilityRole": "button",
38796
+ "accessibilityLabel": "$service:himiStoreProduct.saveLabel",
38797
+ "haptic": "light"
37309
38798
  }
37310
38799
  },
37311
38800
  {
37312
- "id": "",
38801
+ "id": "himi_product.add_to_cart",
37313
38802
  "body": {
37314
38803
  "package": "himalaya",
37315
- "type": "Text",
38804
+ "type": "Button",
37316
38805
  "props": {
37317
- "text": "$service:himiStoreProduct.cartHint",
37318
- "style": "footnote",
37319
- "collapseWhenEmpty": true
38806
+ "title": "Add to cart",
38807
+ "style": "primary",
38808
+ "fullWidth": true,
38809
+ "action": {
38810
+ "actionId": "tier5.himiStoreProduct.addToCart"
38811
+ },
38812
+ "disabledPath": "$service:himiStoreProduct.addDisabled"
37320
38813
  }
37321
38814
  },
37322
38815
  "modifiers": {
38816
+ "cornerRadius": 8,
38817
+ "pressFeedback": "scale",
38818
+ "haptic": "medium",
38819
+ "height": 48,
38820
+ "hiddenPath": "$service:himiStoreProduct.cartHidden",
37323
38821
  "weight": 1
37324
38822
  }
37325
38823
  },
37326
38824
  {
37327
- "id": "himi_product.view_cart",
38825
+ "id": "himi_product.adding",
37328
38826
  "body": {
37329
38827
  "package": "himalaya",
37330
- "type": "Button",
38828
+ "type": "ZStack",
37331
38829
  "props": {
37332
- "title": "View cart",
37333
- "style": "tertiary",
37334
- "action": {
37335
- "actionId": "himi.open",
37336
- "params": {
37337
- "screenId": "himi_cart"
38830
+ "alignment": "center",
38831
+ "children": [
38832
+ {
38833
+ "id": "",
38834
+ "body": {
38835
+ "package": "himalaya",
38836
+ "type": "ActivityIndicator",
38837
+ "props": {
38838
+ "indeterminate": true,
38839
+ "size": 18,
38840
+ "tint": "textOnAccent"
38841
+ }
38842
+ }
37338
38843
  }
37339
- }
38844
+ ]
37340
38845
  }
38846
+ },
38847
+ "modifiers": {
38848
+ "weight": 1,
38849
+ "height": 48,
38850
+ "background": {
38851
+ "token": "accentPrimary"
38852
+ },
38853
+ "cornerRadius": 8,
38854
+ "accessibilityLabel": "Adding to cart…",
38855
+ "hiddenPath": "$service:himiStoreProduct.notAdding"
37341
38856
  }
37342
38857
  }
37343
38858
  ]
37344
38859
  }
38860
+ }
38861
+ },
38862
+ {
38863
+ "id": "himi_product.buy",
38864
+ "body": {
38865
+ "package": "himalaya",
38866
+ "type": "Button",
38867
+ "props": {
38868
+ "title": "$service:himiStoreProduct.buyLabel",
38869
+ "style": "primary",
38870
+ "fullWidth": true,
38871
+ "disabledPath": "$service:himiStoreProduct.buyDisabled",
38872
+ "action": {
38873
+ "actionId": "tier5.himiStoreProduct.buy"
38874
+ }
38875
+ }
37345
38876
  },
37346
38877
  "modifiers": {
37347
- "background": {
37348
- "token": "surfaceSecondary"
37349
- },
37350
- "cornerRadius": 8,
37351
- "padding": {
37352
- "leading": 12,
37353
- "trailing": 8,
37354
- "top": 6,
37355
- "bottom": 6
37356
- },
37357
- "fillMaxWidth": true,
37358
- "hiddenPath": "$service:himiStoreProduct.notAdded"
38878
+ "hiddenPath": "$service:himiStoreProduct.buyHidden"
38879
+ }
38880
+ },
38881
+ {
38882
+ "id": "himi_product.buy_note",
38883
+ "body": {
38884
+ "package": "himalaya",
38885
+ "type": "Text",
38886
+ "props": {
38887
+ "text": "$service:himiStoreProduct.buyNote",
38888
+ "style": "footnote",
38889
+ "color": "textSecondary",
38890
+ "collapseWhenEmpty": true
38891
+ }
38892
+ },
38893
+ "modifiers": {
38894
+ "hiddenPath": "$service:himiStoreProduct.buyHidden"
38895
+ }
38896
+ },
38897
+ {
38898
+ "id": "himi_product.purchased",
38899
+ "body": {
38900
+ "package": "himalaya",
38901
+ "type": "Text",
38902
+ "props": {
38903
+ "text": "$service:himiStoreProduct.purchasedNote",
38904
+ "style": "footnote",
38905
+ "collapseWhenEmpty": true
38906
+ }
37359
38907
  }
37360
38908
  }
37361
38909
  ]
@@ -37371,11 +38919,19 @@ const TEMPLATED: { pattern: string; display: string; liveSeed?: LiveSeed; static
37371
38919
  "top": 8,
37372
38920
  "bottom": 8
37373
38921
  },
37374
- "hiddenPath": "$service:himiStoreProduct.isLoading"
38922
+ "hiddenPath": "$service:himiStoreProduct.hideBar"
37375
38923
  }
37376
38924
  },
37377
38925
  "topBar": {
37378
38926
  "actions": [
38927
+ {
38928
+ "id": "share",
38929
+ "icon": "share",
38930
+ "accessibilityLabel": "Share",
38931
+ "onTap": {
38932
+ "actionId": "tier5.himiStoreProduct.share"
38933
+ }
38934
+ },
37379
38935
  {
37380
38936
  "id": "cart",
37381
38937
  "icon": "cart",