@wix/himalaya-cli 0.1494.0 → 0.1496.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 (82) 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 -2541
  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/business-chat-model.ts +35 -4
  29. package/templates/branded-lite/tier5-src/_shared/business-chat-transport.ts +12 -5
  30. package/templates/branded-lite/tier5-src/_shared/himi-store-collection.ts +6 -3
  31. package/templates/branded-lite/tier5-src/_shared/himi-store-saved.ts +7 -1
  32. package/templates/branded-lite/tier5-src/business-chat/index.ts +50 -17
  33. package/templates/branded-lite/tier5-src/himi-branded-lite-cart/index.ts +256 -19
  34. package/templates/branded-lite/tier5-src/himi-store-product/index.ts +196 -34
  35. package/templates/branded-lite/tier5-src/himi-store-saved/index.ts +21 -5
  36. package/templates/branded-lite/tier5-src/himi-store-shop/index.ts +14 -2
  37. package/templates/branded-lite/tokens.json +8 -0
  38. package/templates/community-club/dev/index.ts +1 -1
  39. package/templates/community-club/tier5-src/_shared/himi-store-saved.ts +7 -1
  40. package/templates/community-club/tokens.json +15 -0
  41. package/templates/events-meetups/dev/index.ts +1 -1
  42. package/templates/events-meetups/tier5-src/_shared/himi-store-saved.ts +7 -1
  43. package/templates/events-meetups/tokens.json +15 -0
  44. package/templates/gym-fitness/dev/index.ts +2695 -1139
  45. package/templates/gym-fitness/himalaya.content.json +1 -1
  46. package/templates/gym-fitness/tier5-src/_shared/himi-store-collection.ts +6 -3
  47. package/templates/gym-fitness/tier5-src/_shared/himi-store-saved.ts +7 -1
  48. package/templates/gym-fitness/tier5-src/himi-branded-lite-cart/index.ts +256 -19
  49. package/templates/gym-fitness/tier5-src/himi-store-product/index.ts +196 -34
  50. package/templates/gym-fitness/tier5-src/himi-store-saved/index.ts +21 -5
  51. package/templates/gym-fitness/tier5-src/himi-store-shop/index.ts +14 -2
  52. package/templates/gym-fitness/tokens.json +15 -0
  53. package/templates/nonprofit-cause/dev/index.ts +1 -1
  54. package/templates/nonprofit-cause/tier5-src/_shared/himi-store-saved.ts +7 -1
  55. package/templates/nonprofit-cause/tokens.json +15 -0
  56. package/templates/podcast-creator/dev/index.ts +1 -1
  57. package/templates/podcast-creator/tier5-src/_shared/himi-store-saved.ts +7 -1
  58. package/templates/podcast-creator/tokens.json +15 -0
  59. package/templates/portfolio-creative/dev/index.ts +2569 -1013
  60. package/templates/portfolio-creative/himalaya.content.json +1 -1
  61. package/templates/portfolio-creative/tier5-src/_shared/himi-store-collection.ts +6 -3
  62. package/templates/portfolio-creative/tier5-src/_shared/himi-store-saved.ts +7 -1
  63. package/templates/portfolio-creative/tier5-src/himi-branded-lite-cart/index.ts +256 -19
  64. package/templates/portfolio-creative/tier5-src/himi-store-product/index.ts +196 -34
  65. package/templates/portfolio-creative/tier5-src/himi-store-saved/index.ts +21 -5
  66. package/templates/portfolio-creative/tier5-src/himi-store-shop/index.ts +14 -2
  67. package/templates/portfolio-creative/tokens.json +15 -0
  68. package/templates/restaurant/dev/index.ts +1 -1
  69. package/templates/restaurant/tier5-src/_shared/himi-store-saved.ts +7 -1
  70. package/templates/restaurant/tokens.json +15 -0
  71. package/templates/retail-store/dev/index.ts +2541 -985
  72. package/templates/retail-store/himalaya.content.json +1 -1
  73. package/templates/retail-store/tier5-src/_shared/himi-store-collection.ts +6 -3
  74. package/templates/retail-store/tier5-src/_shared/himi-store-saved.ts +7 -1
  75. package/templates/retail-store/tier5-src/himi-branded-lite-cart/index.ts +256 -19
  76. package/templates/retail-store/tier5-src/himi-store-product/index.ts +196 -34
  77. package/templates/retail-store/tier5-src/himi-store-saved/index.ts +21 -5
  78. package/templates/retail-store/tier5-src/himi-store-shop/index.ts +14 -2
  79. package/templates/retail-store/tokens.json +15 -0
  80. package/templates/yoga-studio/dev/index.ts +1 -1
  81. package/templates/yoga-studio/tier5-src/_shared/himi-store-saved.ts +7 -1
  82. package/templates/yoga-studio/tokens.json +15 -0
@@ -258,7 +258,7 @@ const SCREENS = runtimeSetting({
258
258
  "package": "himalaya",
259
259
  "type": "Text",
260
260
  "props": {
261
- "text": "Products you saved",
261
+ "text": "Wishlist",
262
262
  "style": "bodyEmphasis"
263
263
  }
264
264
  }
@@ -6417,9 +6417,9 @@ const SCREENS = runtimeSetting({
6417
6417
  "package": "himalaya",
6418
6418
  "type": "Button",
6419
6419
  "props": {
6420
- "title": "Saved products",
6420
+ "title": "Wishlist",
6421
6421
  "style": "plain",
6422
- "leadingIcon": "bookmark",
6422
+ "leadingIcon": "heart",
6423
6423
  "fullWidth": false,
6424
6424
  "action": {
6425
6425
  "actionId": "himi.open",
@@ -8967,54 +8967,213 @@ const SCREENS = runtimeSetting({
8967
8967
  "package": "himalaya",
8968
8968
  "type": "Text",
8969
8969
  "props": {
8970
- "text": "Saved products",
8970
+ "text": "Wishlist",
8971
8971
  "style": "title1"
8972
8972
  }
8973
8973
  }
8974
8974
  },
8975
- {
8976
- "id": "",
8977
- "body": {
8978
- "package": "himalaya",
8979
- "type": "Text",
8980
- "props": {
8981
- "text": "Saved on this device. Open a product for its latest price and availability.",
8982
- "style": "footnote",
8983
- "color": "textSecondary"
8984
- }
8985
- }
8986
- },
8987
8975
  {
8988
8976
  "id": "himi_saved_products.skeleton",
8989
8977
  "body": {
8990
8978
  "package": "himalaya",
8991
- "type": "Skeleton",
8979
+ "type": "Grid",
8992
8980
  "props": {
8993
- "height": 168,
8994
- "cornerRadius": 8
8981
+ "columns": 2,
8982
+ "spacing": 14,
8983
+ "items": [
8984
+ {
8985
+ "id": "",
8986
+ "body": {
8987
+ "package": "himalaya",
8988
+ "type": "VStack",
8989
+ "props": {
8990
+ "spacing": 8,
8991
+ "children": [
8992
+ {
8993
+ "id": "himi_saved_products.skeleton_image",
8994
+ "body": {
8995
+ "package": "himalaya",
8996
+ "type": "Skeleton",
8997
+ "props": {
8998
+ "height": 168,
8999
+ "cornerRadius": 8
9000
+ }
9001
+ },
9002
+ "modifiers": {
9003
+ "height": 168,
9004
+ "background": {
9005
+ "token": "surfaceSecondary"
9006
+ },
9007
+ "cornerRadius": 8,
9008
+ "accessibilityRole": "decorative"
9009
+ }
9010
+ },
9011
+ {
9012
+ "id": "himi_saved_products.skeleton_name",
9013
+ "body": {
9014
+ "package": "himalaya",
9015
+ "type": "Skeleton",
9016
+ "props": {
9017
+ "height": 14,
9018
+ "cornerRadius": 8
9019
+ }
9020
+ },
9021
+ "modifiers": {
9022
+ "height": 14,
9023
+ "background": {
9024
+ "token": "surfaceSecondary"
9025
+ },
9026
+ "cornerRadius": 8,
9027
+ "accessibilityRole": "decorative"
9028
+ }
9029
+ },
9030
+ {
9031
+ "id": "himi_saved_products.skeleton_price",
9032
+ "body": {
9033
+ "package": "himalaya",
9034
+ "type": "Skeleton",
9035
+ "props": {
9036
+ "height": 12,
9037
+ "cornerRadius": 8
9038
+ }
9039
+ },
9040
+ "modifiers": {
9041
+ "height": 12,
9042
+ "background": {
9043
+ "token": "surfaceSecondary"
9044
+ },
9045
+ "cornerRadius": 8,
9046
+ "accessibilityRole": "decorative"
9047
+ }
9048
+ }
9049
+ ]
9050
+ }
9051
+ },
9052
+ "modifiers": {
9053
+ "background": {
9054
+ "token": "surfaceSecondary"
9055
+ },
9056
+ "border": {
9057
+ "width": 1,
9058
+ "color": {
9059
+ "token": "border"
9060
+ }
9061
+ },
9062
+ "cornerRadius": 4,
9063
+ "padding": {
9064
+ "leading": 8,
9065
+ "trailing": 8,
9066
+ "top": 8,
9067
+ "bottom": 8
9068
+ }
9069
+ }
9070
+ },
9071
+ {
9072
+ "id": "",
9073
+ "body": {
9074
+ "package": "himalaya",
9075
+ "type": "VStack",
9076
+ "props": {
9077
+ "spacing": 8,
9078
+ "children": [
9079
+ {
9080
+ "id": "himi_saved_products.skeleton_image",
9081
+ "body": {
9082
+ "package": "himalaya",
9083
+ "type": "Skeleton",
9084
+ "props": {
9085
+ "height": 168,
9086
+ "cornerRadius": 8
9087
+ }
9088
+ },
9089
+ "modifiers": {
9090
+ "height": 168,
9091
+ "background": {
9092
+ "token": "surfaceSecondary"
9093
+ },
9094
+ "cornerRadius": 8,
9095
+ "accessibilityRole": "decorative"
9096
+ }
9097
+ },
9098
+ {
9099
+ "id": "himi_saved_products.skeleton_name",
9100
+ "body": {
9101
+ "package": "himalaya",
9102
+ "type": "Skeleton",
9103
+ "props": {
9104
+ "height": 14,
9105
+ "cornerRadius": 8
9106
+ }
9107
+ },
9108
+ "modifiers": {
9109
+ "height": 14,
9110
+ "background": {
9111
+ "token": "surfaceSecondary"
9112
+ },
9113
+ "cornerRadius": 8,
9114
+ "accessibilityRole": "decorative"
9115
+ }
9116
+ },
9117
+ {
9118
+ "id": "himi_saved_products.skeleton_price",
9119
+ "body": {
9120
+ "package": "himalaya",
9121
+ "type": "Skeleton",
9122
+ "props": {
9123
+ "height": 12,
9124
+ "cornerRadius": 8
9125
+ }
9126
+ },
9127
+ "modifiers": {
9128
+ "height": 12,
9129
+ "background": {
9130
+ "token": "surfaceSecondary"
9131
+ },
9132
+ "cornerRadius": 8,
9133
+ "accessibilityRole": "decorative"
9134
+ }
9135
+ }
9136
+ ]
9137
+ }
9138
+ },
9139
+ "modifiers": {
9140
+ "background": {
9141
+ "token": "surfaceSecondary"
9142
+ },
9143
+ "border": {
9144
+ "width": 1,
9145
+ "color": {
9146
+ "token": "border"
9147
+ }
9148
+ },
9149
+ "cornerRadius": 4,
9150
+ "padding": {
9151
+ "leading": 8,
9152
+ "trailing": 8,
9153
+ "top": 8,
9154
+ "bottom": 8
9155
+ }
9156
+ }
9157
+ }
9158
+ ]
8995
9159
  }
8996
9160
  },
8997
9161
  "modifiers": {
8998
- "height": 168,
8999
- "background": {
9000
- "token": "surfaceSecondary"
9001
- },
9002
- "cornerRadius": 8,
9003
- "accessibilityRole": "decorative",
9004
9162
  "hiddenPath": "$service:himiStoreSaved.notLoading"
9005
9163
  }
9006
9164
  },
9007
9165
  {
9008
- "id": "",
9166
+ "id": "himi_saved_products.error",
9009
9167
  "body": {
9010
9168
  "package": "himalaya",
9011
- "type": "Text",
9169
+ "type": "Banner",
9012
9170
  "props": {
9013
- "text": "$service:himiStoreSaved.error",
9014
- "style": "footnote",
9015
- "color": "danger",
9016
- "collapseWhenEmpty": true
9171
+ "title": "$service:himiStoreSaved.error",
9172
+ "severity": "danger"
9017
9173
  }
9174
+ },
9175
+ "modifiers": {
9176
+ "hiddenPath": "$service:himiStoreSaved.notErrored"
9018
9177
  }
9019
9178
  },
9020
9179
  {
@@ -9121,81 +9280,282 @@ const SCREENS = runtimeSetting({
9121
9280
  "id": "himi_saved_products.list",
9122
9281
  "body": {
9123
9282
  "package": "himalaya",
9124
- "type": "LazyList",
9283
+ "type": "Grid",
9125
9284
  "props": {
9126
- "spacing": 16,
9285
+ "columns": 2,
9286
+ "columnsMedium": 3,
9287
+ "columnsExpanded": 4,
9288
+ "spacing": 14,
9127
9289
  "itemsPath": "$service:himiStoreSaved.rows",
9128
9290
  "items": [
9129
9291
  {
9130
- "id": "",
9292
+ "id": "himi_saved_products.row",
9131
9293
  "body": {
9132
9294
  "package": "himalaya",
9133
9295
  "type": "VStack",
9134
9296
  "props": {
9135
9297
  "spacing": 8,
9298
+ "alignment": "leading",
9136
9299
  "children": [
9137
9300
  {
9138
- "id": "himi_saved_products.row",
9301
+ "id": "",
9139
9302
  "body": {
9140
9303
  "package": "himalaya",
9141
- "type": "VStack",
9304
+ "type": "Image",
9142
9305
  "props": {
9143
- "spacing": 9,
9144
- "alignment": "leading",
9306
+ "url": "$item.image",
9307
+ "fillWidth": true,
9308
+ "aspectRatio": 0.75,
9309
+ "contentMode": "fill",
9310
+ "shape": "rect",
9311
+ "contentDescription": "$item.name"
9312
+ }
9313
+ },
9314
+ "modifiers": {
9315
+ "fillMaxWidth": true,
9316
+ "aspectRatio": 0.75,
9317
+ "onTap": {
9318
+ "actionId": "himi.open",
9319
+ "params": {
9320
+ "screenId": "himi_product",
9321
+ "id": "$item.id"
9322
+ }
9323
+ },
9324
+ "pressFeedback": "highlight",
9325
+ "haptic": "light",
9326
+ "hiddenPath": "$item.noImage"
9327
+ }
9328
+ },
9329
+ {
9330
+ "id": "",
9331
+ "body": {
9332
+ "package": "himalaya",
9333
+ "type": "ZStack",
9334
+ "props": {
9335
+ "alignment": "center",
9145
9336
  "children": [
9146
9337
  {
9147
9338
  "id": "",
9148
9339
  "body": {
9149
9340
  "package": "himalaya",
9150
- "type": "Image",
9341
+ "type": "Icon",
9151
9342
  "props": {
9152
- "url": "$item.image",
9153
- "fillWidth": true,
9154
- "height": 168,
9155
- "contentMode": "fill",
9156
- "contentDescription": "$item.name"
9343
+ "name": "photo",
9344
+ "size": 24,
9345
+ "tint": "textSecondary"
9157
9346
  }
9158
9347
  },
9159
9348
  "modifiers": {
9160
- "cornerRadius": 8,
9161
- "fillMaxWidth": true,
9162
- "hiddenPath": "$item.noImage"
9349
+ "accessibilityRole": "decorative"
9350
+ }
9351
+ }
9352
+ ]
9353
+ }
9354
+ },
9355
+ "modifiers": {
9356
+ "fillMaxWidth": true,
9357
+ "aspectRatio": 0.75,
9358
+ "background": {
9359
+ "token": "surfaceTertiary"
9360
+ },
9361
+ "onTap": {
9362
+ "actionId": "himi.open",
9363
+ "params": {
9364
+ "screenId": "himi_product",
9365
+ "id": "$item.id"
9366
+ }
9367
+ },
9368
+ "accessibilityLabel": "$item.name",
9369
+ "hiddenPath": "$item.hasImage"
9370
+ }
9371
+ },
9372
+ {
9373
+ "id": "himi_saved_products.tags",
9374
+ "body": {
9375
+ "package": "himalaya",
9376
+ "type": "HStack",
9377
+ "props": {
9378
+ "spacing": 8,
9379
+ "children": [
9380
+ {
9381
+ "id": "",
9382
+ "body": {
9383
+ "package": "himalaya",
9384
+ "type": "Text",
9385
+ "props": {
9386
+ "text": "On sale",
9387
+ "style": "caption",
9388
+ "color": "textPrimary"
9389
+ }
9390
+ },
9391
+ "modifiers": {
9392
+ "background": {
9393
+ "token": "surfaceTertiary"
9394
+ },
9395
+ "padding": {
9396
+ "leading": 8,
9397
+ "trailing": 8,
9398
+ "top": 4,
9399
+ "bottom": 4
9400
+ },
9401
+ "hiddenPath": "$item.notOnSale"
9163
9402
  }
9164
9403
  },
9165
9404
  {
9166
- "id": "himi_saved_products.row.monogram",
9405
+ "id": "himi_saved_products.swatches",
9167
9406
  "body": {
9168
9407
  "package": "himalaya",
9169
- "type": "ZStack",
9408
+ "type": "HStack",
9170
9409
  "props": {
9171
- "alignment": "center",
9410
+ "spacing": 5,
9172
9411
  "children": [
9173
9412
  {
9174
- "id": "",
9413
+ "id": "himi_saved_products.swatch_1",
9175
9414
  "body": {
9176
9415
  "package": "himalaya",
9177
9416
  "type": "Text",
9178
9417
  "props": {
9179
- "text": "$item.initial",
9180
- "style": "display",
9181
- "color": "textOnAccent",
9182
- "maxLines": 1
9418
+ "text": "",
9419
+ "style": "caption"
9183
9420
  }
9421
+ },
9422
+ "modifiers": {
9423
+ "width": 10,
9424
+ "height": 10,
9425
+ "cornerRadius": 5,
9426
+ "backgroundColorPath": "$item.swatch1",
9427
+ "border": {
9428
+ "width": 1,
9429
+ "color": {
9430
+ "token": "border"
9431
+ }
9432
+ },
9433
+ "accessibilityHidden": true,
9434
+ "hiddenPath": "$item.noSwatch1"
9435
+ }
9436
+ },
9437
+ {
9438
+ "id": "himi_saved_products.swatch_2",
9439
+ "body": {
9440
+ "package": "himalaya",
9441
+ "type": "Text",
9442
+ "props": {
9443
+ "text": "",
9444
+ "style": "caption"
9445
+ }
9446
+ },
9447
+ "modifiers": {
9448
+ "width": 10,
9449
+ "height": 10,
9450
+ "cornerRadius": 5,
9451
+ "backgroundColorPath": "$item.swatch2",
9452
+ "border": {
9453
+ "width": 1,
9454
+ "color": {
9455
+ "token": "border"
9456
+ }
9457
+ },
9458
+ "accessibilityHidden": true,
9459
+ "hiddenPath": "$item.noSwatch2"
9460
+ }
9461
+ },
9462
+ {
9463
+ "id": "himi_saved_products.swatch_3",
9464
+ "body": {
9465
+ "package": "himalaya",
9466
+ "type": "Text",
9467
+ "props": {
9468
+ "text": "",
9469
+ "style": "caption"
9470
+ }
9471
+ },
9472
+ "modifiers": {
9473
+ "width": 10,
9474
+ "height": 10,
9475
+ "cornerRadius": 5,
9476
+ "backgroundColorPath": "$item.swatch3",
9477
+ "border": {
9478
+ "width": 1,
9479
+ "color": {
9480
+ "token": "border"
9481
+ }
9482
+ },
9483
+ "accessibilityHidden": true,
9484
+ "hiddenPath": "$item.noSwatch3"
9485
+ }
9486
+ },
9487
+ {
9488
+ "id": "himi_saved_products.swatch_4",
9489
+ "body": {
9490
+ "package": "himalaya",
9491
+ "type": "Text",
9492
+ "props": {
9493
+ "text": "",
9494
+ "style": "caption"
9495
+ }
9496
+ },
9497
+ "modifiers": {
9498
+ "width": 10,
9499
+ "height": 10,
9500
+ "cornerRadius": 5,
9501
+ "backgroundColorPath": "$item.swatch4",
9502
+ "border": {
9503
+ "width": 1,
9504
+ "color": {
9505
+ "token": "border"
9506
+ }
9507
+ },
9508
+ "accessibilityHidden": true,
9509
+ "hiddenPath": "$item.noSwatch4"
9510
+ }
9511
+ },
9512
+ {
9513
+ "id": "himi_saved_products.swatch_5",
9514
+ "body": {
9515
+ "package": "himalaya",
9516
+ "type": "Text",
9517
+ "props": {
9518
+ "text": "",
9519
+ "style": "caption"
9520
+ }
9521
+ },
9522
+ "modifiers": {
9523
+ "width": 10,
9524
+ "height": 10,
9525
+ "cornerRadius": 5,
9526
+ "backgroundColorPath": "$item.swatch5",
9527
+ "border": {
9528
+ "width": 1,
9529
+ "color": {
9530
+ "token": "border"
9531
+ }
9532
+ },
9533
+ "accessibilityHidden": true,
9534
+ "hiddenPath": "$item.noSwatch5"
9184
9535
  }
9185
9536
  }
9186
9537
  ]
9187
9538
  }
9188
9539
  },
9189
9540
  "modifiers": {
9190
- "fillMaxWidth": true,
9191
- "height": 168,
9192
- "background": {
9193
- "token": "accentPrimary"
9194
- },
9195
- "cornerRadius": 8,
9196
- "hiddenPath": "$item.hasImage"
9541
+ "hiddenPath": "$item.noSwatches"
9197
9542
  }
9198
- },
9543
+ }
9544
+ ]
9545
+ }
9546
+ },
9547
+ "modifiers": {
9548
+ "hiddenPath": "$item.noTagRow"
9549
+ }
9550
+ },
9551
+ {
9552
+ "id": "",
9553
+ "body": {
9554
+ "package": "himalaya",
9555
+ "type": "HStack",
9556
+ "props": {
9557
+ "spacing": 6,
9558
+ "children": [
9199
9559
  {
9200
9560
  "id": "",
9201
9561
  "body": {
@@ -9203,9 +9563,42 @@ const SCREENS = runtimeSetting({
9203
9563
  "type": "Text",
9204
9564
  "props": {
9205
9565
  "text": "$item.name",
9206
- "style": "bodyEmphasis",
9566
+ "style": "footnoteRegular",
9567
+ "color": "textPrimary",
9207
9568
  "maxLines": 2
9208
9569
  }
9570
+ },
9571
+ "modifiers": {
9572
+ "weight": 1
9573
+ }
9574
+ }
9575
+ ]
9576
+ }
9577
+ }
9578
+ },
9579
+ {
9580
+ "id": "",
9581
+ "body": {
9582
+ "package": "himalaya",
9583
+ "type": "HStack",
9584
+ "props": {
9585
+ "spacing": 6,
9586
+ "children": [
9587
+ {
9588
+ "id": "",
9589
+ "body": {
9590
+ "package": "himalaya",
9591
+ "type": "Text",
9592
+ "props": {
9593
+ "text": "$item.wasPrice",
9594
+ "style": "caption",
9595
+ "color": "textSecondary",
9596
+ "maxLines": 1,
9597
+ "decoration": "strikethrough"
9598
+ }
9599
+ },
9600
+ "modifiers": {
9601
+ "hiddenPath": "$item.notOnSale"
9209
9602
  }
9210
9603
  },
9211
9604
  {
@@ -9215,70 +9608,100 @@ const SCREENS = runtimeSetting({
9215
9608
  "type": "Text",
9216
9609
  "props": {
9217
9610
  "text": "$item.price",
9218
- "style": "footnote",
9219
- "color": "accentPrimary",
9220
- "maxLines": 1,
9221
- "collapseWhenEmpty": true
9611
+ "style": "caption",
9612
+ "color": "danger",
9613
+ "maxLines": 1
9614
+ }
9615
+ },
9616
+ "modifiers": {
9617
+ "hiddenPath": "$item.notOnSale"
9618
+ }
9619
+ },
9620
+ {
9621
+ "id": "",
9622
+ "body": {
9623
+ "package": "himalaya",
9624
+ "type": "Text",
9625
+ "props": {
9626
+ "text": "$item.price",
9627
+ "style": "caption",
9628
+ "color": "textPrimary",
9629
+ "maxLines": 1
9630
+ }
9631
+ },
9632
+ "modifiers": {
9633
+ "hiddenPath": "$item.wasPriceEmpty"
9634
+ }
9635
+ },
9636
+ {
9637
+ "id": "",
9638
+ "body": {
9639
+ "package": "himalaya",
9640
+ "type": "Spacer",
9641
+ "props": {}
9642
+ }
9643
+ },
9644
+ {
9645
+ "id": "himi_saved_products.remove",
9646
+ "body": {
9647
+ "package": "himalaya",
9648
+ "type": "ZStack",
9649
+ "props": {
9650
+ "alignment": "center",
9651
+ "children": [
9652
+ {
9653
+ "id": "",
9654
+ "body": {
9655
+ "package": "himalaya",
9656
+ "type": "Icon",
9657
+ "props": {
9658
+ "name": "heart_fill",
9659
+ "size": 22,
9660
+ "tint": "accentPrimary"
9661
+ }
9662
+ },
9663
+ "modifiers": {
9664
+ "accessibilityRole": "decorative"
9665
+ }
9666
+ }
9667
+ ]
9222
9668
  }
9669
+ },
9670
+ "modifiers": {
9671
+ "width": 44,
9672
+ "height": 44,
9673
+ "onTap": {
9674
+ "actionId": "tier5.himiStoreSaved.remove",
9675
+ "params": {
9676
+ "id": "$item.id"
9677
+ }
9678
+ },
9679
+ "accessibilityRole": "button",
9680
+ "accessibilityLabel": "Remove from wishlist",
9681
+ "haptic": "light"
9223
9682
  }
9224
9683
  }
9225
9684
  ]
9226
9685
  }
9227
- },
9228
- "modifiers": {
9229
- "background": {
9230
- "token": "surfaceElevated"
9231
- },
9232
- "border": {
9233
- "width": 1,
9234
- "color": {
9235
- "token": "border"
9236
- }
9237
- },
9238
- "cornerRadius": 8,
9239
- "padding": {
9240
- "leading": 12,
9241
- "trailing": 12,
9242
- "top": 12,
9243
- "bottom": 12
9244
- },
9245
- "onTap": {
9246
- "actionId": "himi.open",
9247
- "params": {
9248
- "screenId": "$item.detailScreenId",
9249
- "id": "$item.id"
9250
- }
9251
- },
9252
- "pressFeedback": "scale",
9253
- "haptic": "light",
9254
- "accessibilityLabel": "$item.name"
9255
- }
9256
- },
9257
- {
9258
- "id": "himi_saved_products.remove",
9259
- "body": {
9260
- "package": "himalaya",
9261
- "type": "Button",
9262
- "props": {
9263
- "title": "Remove",
9264
- "style": "secondary",
9265
- "action": {
9266
- "actionId": "tier5.himiStoreSaved.remove",
9267
- "params": {
9268
- "id": "$item.id"
9269
- }
9270
- }
9271
- }
9272
9686
  }
9273
9687
  }
9274
9688
  ]
9275
9689
  }
9690
+ },
9691
+ "modifiers": {
9692
+ "onTap": {
9693
+ "actionId": "himi.open",
9694
+ "params": {
9695
+ "screenId": "himi_product",
9696
+ "id": "$item.id"
9697
+ }
9698
+ },
9699
+ "pressFeedback": "highlight",
9700
+ "haptic": "light",
9701
+ "accessibilityLabel": "$item.name"
9276
9702
  }
9277
9703
  }
9278
- ],
9279
- "onPullToRefresh": {
9280
- "actionId": "tier5.himiStoreSaved.load"
9281
- }
9704
+ ]
9282
9705
  }
9283
9706
  },
9284
9707
  "modifiers": {
@@ -9286,29 +9709,61 @@ const SCREENS = runtimeSetting({
9286
9709
  }
9287
9710
  },
9288
9711
  {
9289
- "id": "",
9712
+ "id": "himi_saved_products.empty",
9290
9713
  "body": {
9291
9714
  "package": "himalaya",
9292
9715
  "type": "VStack",
9293
9716
  "props": {
9294
- "spacing": 12,
9717
+ "spacing": 10,
9295
9718
  "alignment": "center",
9296
9719
  "children": [
9297
9720
  {
9298
9721
  "id": "",
9299
9722
  "body": {
9300
9723
  "package": "himalaya",
9301
- "type": "Icon",
9724
+ "type": "ZStack",
9302
9725
  "props": {
9303
- "name": "bookmark",
9304
- "size": 34,
9305
- "tint": "textTertiary"
9306
- }
9307
- },
9308
- "modifiers": {
9309
- "accessibilityRole": "decorative"
9310
- }
9311
- },
9726
+ "alignment": "center",
9727
+ "children": [
9728
+ {
9729
+ "id": "",
9730
+ "body": {
9731
+ "package": "himalaya",
9732
+ "type": "Icon",
9733
+ "props": {
9734
+ "name": "heart",
9735
+ "size": 24,
9736
+ "tint": "textSecondary"
9737
+ }
9738
+ },
9739
+ "modifiers": {
9740
+ "accessibilityRole": "decorative"
9741
+ }
9742
+ }
9743
+ ]
9744
+ }
9745
+ },
9746
+ "modifiers": {
9747
+ "width": 56,
9748
+ "height": 56,
9749
+ "background": {
9750
+ "token": "surfaceTertiary"
9751
+ },
9752
+ "cornerRadius": 28
9753
+ }
9754
+ },
9755
+ {
9756
+ "id": "",
9757
+ "body": {
9758
+ "package": "himalaya",
9759
+ "type": "Text",
9760
+ "props": {
9761
+ "text": "Your wishlist is empty",
9762
+ "style": "title3",
9763
+ "textAlign": "center"
9764
+ }
9765
+ }
9766
+ },
9312
9767
  {
9313
9768
  "id": "",
9314
9769
  "body": {
@@ -9316,14 +9771,14 @@ const SCREENS = runtimeSetting({
9316
9771
  "type": "Text",
9317
9772
  "props": {
9318
9773
  "text": "$service:himiStoreSaved.emptyText",
9319
- "style": "bodyEmphasis",
9774
+ "style": "footnote",
9320
9775
  "color": "textSecondary",
9321
- "collapseWhenEmpty": true
9776
+ "textAlign": "center"
9322
9777
  }
9323
9778
  }
9324
9779
  },
9325
9780
  {
9326
- "id": "himi_saved_products.empty.cta",
9781
+ "id": "himi_saved_products.browse",
9327
9782
  "body": {
9328
9783
  "package": "himalaya",
9329
9784
  "type": "Button",
@@ -9343,16 +9798,6 @@ const SCREENS = runtimeSetting({
9343
9798
  }
9344
9799
  },
9345
9800
  "modifiers": {
9346
- "padding": {
9347
- "leading": 24,
9348
- "trailing": 24,
9349
- "top": 24,
9350
- "bottom": 24
9351
- },
9352
- "transition": {
9353
- "enter": "fade",
9354
- "exit": "fade"
9355
- },
9356
9801
  "hiddenPath": "$service:himiStoreSaved.noEmpty"
9357
9802
  }
9358
9803
  }
@@ -10348,20 +10793,8 @@ const SCREENS = runtimeSetting({
10348
10793
  "package": "himalaya",
10349
10794
  "type": "Text",
10350
10795
  "props": {
10351
- "text": "Cart",
10352
- "style": "title1"
10353
- }
10354
- }
10355
- },
10356
- {
10357
- "id": "",
10358
- "body": {
10359
- "package": "himalaya",
10360
- "type": "Text",
10361
- "props": {
10362
- "text": "Review your items before you check out.",
10363
- "style": "body",
10364
- "color": "textSecondary"
10796
+ "text": "Shopping cart",
10797
+ "style": "pageTitle"
10365
10798
  }
10366
10799
  }
10367
10800
  },
@@ -10374,6 +10807,20 @@ const SCREENS = runtimeSetting({
10374
10807
  "spacing": 8,
10375
10808
  "alignment": "leading",
10376
10809
  "children": [
10810
+ {
10811
+ "id": "",
10812
+ "body": {
10813
+ "package": "himalaya",
10814
+ "type": "Text",
10815
+ "props": {
10816
+ "text": "You are offline",
10817
+ "style": "bodyEmphasis"
10818
+ }
10819
+ },
10820
+ "modifiers": {
10821
+ "hiddenPath": "$service:himiStoreCart.noOfflineError"
10822
+ }
10823
+ },
10377
10824
  {
10378
10825
  "id": "",
10379
10826
  "body": {
@@ -10383,6 +10830,9 @@ const SCREENS = runtimeSetting({
10383
10830
  "text": "Your cart could not be loaded.",
10384
10831
  "style": "bodyEmphasis"
10385
10832
  }
10833
+ },
10834
+ "modifiers": {
10835
+ "hiddenPath": "$service:himiStoreCart.noServerError"
10386
10836
  }
10387
10837
  },
10388
10838
  {
@@ -10435,123 +10885,149 @@ const SCREENS = runtimeSetting({
10435
10885
  }
10436
10886
  },
10437
10887
  {
10438
- "id": "",
10888
+ "id": "himi_cart.list",
10439
10889
  "body": {
10440
10890
  "package": "himalaya",
10441
- "type": "VStack",
10891
+ "type": "Grid",
10442
10892
  "props": {
10443
- "spacing": 12,
10444
- "children": [
10893
+ "columns": 1,
10894
+ "spacing": 0,
10895
+ "itemsPath": "$service:himiStoreCart.items",
10896
+ "items": [
10445
10897
  {
10446
- "id": "himi_cart.list",
10898
+ "id": "himi_cart.row",
10447
10899
  "body": {
10448
10900
  "package": "himalaya",
10449
- "type": "Grid",
10901
+ "type": "VStack",
10450
10902
  "props": {
10451
- "columns": 1,
10452
- "spacing": 10,
10453
- "itemsPath": "$service:himiStoreCart.items",
10454
- "items": [
10903
+ "spacing": 0,
10904
+ "alignment": "leading",
10905
+ "children": [
10455
10906
  {
10456
- "id": "himi_cart.row",
10907
+ "id": "",
10457
10908
  "body": {
10458
10909
  "package": "himalaya",
10459
- "type": "VStack",
10910
+ "type": "Divider",
10911
+ "props": {}
10912
+ }
10913
+ },
10914
+ {
10915
+ "id": "himi_cart.row_content",
10916
+ "body": {
10917
+ "package": "himalaya",
10918
+ "type": "HStack",
10460
10919
  "props": {
10461
- "spacing": 8,
10462
- "alignment": "leading",
10920
+ "spacing": 12,
10463
10921
  "children": [
10922
+ {
10923
+ "id": "himi_cart.thumbnail",
10924
+ "body": {
10925
+ "package": "himalaya",
10926
+ "type": "Image",
10927
+ "props": {
10928
+ "url": "$item.image",
10929
+ "width": 112,
10930
+ "height": 144,
10931
+ "contentMode": "fit",
10932
+ "shape": "rect",
10933
+ "contentDescription": "$item.name"
10934
+ }
10935
+ },
10936
+ "modifiers": {
10937
+ "onTap": {
10938
+ "actionId": "himi.open",
10939
+ "params": {
10940
+ "screenId": "himi_product",
10941
+ "id": "$item.catalogItemId"
10942
+ }
10943
+ },
10944
+ "hiddenPath": "$item.noImage"
10945
+ }
10946
+ },
10464
10947
  {
10465
10948
  "id": "",
10466
10949
  "body": {
10467
10950
  "package": "himalaya",
10468
- "type": "HStack",
10951
+ "type": "ZStack",
10469
10952
  "props": {
10470
- "spacing": 10,
10953
+ "alignment": "center",
10471
10954
  "children": [
10472
10955
  {
10473
10956
  "id": "",
10474
10957
  "body": {
10475
10958
  "package": "himalaya",
10476
- "type": "Image",
10477
- "props": {
10478
- "url": "$item.image",
10479
- "width": 62,
10480
- "height": 62,
10481
- "contentMode": "fill",
10482
- "contentDescription": "$item.title"
10483
- }
10484
- },
10485
- "modifiers": {
10486
- "cornerRadius": 8,
10487
- "hiddenPath": "$item.noImage"
10488
- }
10489
- },
10490
- {
10491
- "id": "himi_cart.row_media.initial",
10492
- "body": {
10493
- "package": "himalaya",
10494
- "type": "ZStack",
10959
+ "type": "Text",
10495
10960
  "props": {
10496
- "alignment": "center",
10497
- "children": [
10498
- {
10499
- "id": "",
10500
- "body": {
10501
- "package": "himalaya",
10502
- "type": "Text",
10503
- "props": {
10504
- "text": "$item.initial",
10505
- "style": "title2",
10506
- "color": "textOnAccent",
10507
- "maxLines": 1,
10508
- "collapseWhenEmpty": true
10509
- }
10510
- }
10511
- }
10512
- ]
10961
+ "text": "$item.initial",
10962
+ "style": "title2",
10963
+ "color": "textOnAccent"
10513
10964
  }
10514
- },
10515
- "modifiers": {
10516
- "width": 62,
10517
- "height": 62,
10518
- "background": {
10519
- "token": "accentPrimary"
10520
- },
10521
- "cornerRadius": 16,
10522
- "hiddenPath": "$item.hasImage"
10523
10965
  }
10524
- },
10966
+ }
10967
+ ]
10968
+ }
10969
+ },
10970
+ "modifiers": {
10971
+ "width": 112,
10972
+ "height": 144,
10973
+ "background": {
10974
+ "token": "accentPrimary"
10975
+ },
10976
+ "onTap": {
10977
+ "actionId": "himi.open",
10978
+ "params": {
10979
+ "screenId": "himi_product",
10980
+ "id": "$item.catalogItemId"
10981
+ }
10982
+ },
10983
+ "accessibilityLabel": "$item.name",
10984
+ "hiddenPath": "$item.hasImage"
10985
+ }
10986
+ },
10987
+ {
10988
+ "id": "himi_cart.details",
10989
+ "body": {
10990
+ "package": "himalaya",
10991
+ "type": "VStack",
10992
+ "props": {
10993
+ "spacing": 4,
10994
+ "alignment": "leading",
10995
+ "children": [
10525
10996
  {
10526
- "id": "",
10997
+ "id": "himi_cart.name_price",
10527
10998
  "body": {
10528
10999
  "package": "himalaya",
10529
- "type": "VStack",
11000
+ "type": "HStack",
10530
11001
  "props": {
10531
- "spacing": 3,
10532
- "alignment": "leading",
11002
+ "spacing": 6,
10533
11003
  "children": [
10534
11004
  {
10535
- "id": "",
11005
+ "id": "himi_cart.product_title",
10536
11006
  "body": {
10537
11007
  "package": "himalaya",
10538
11008
  "type": "Text",
10539
11009
  "props": {
10540
11010
  "text": "$item.name",
10541
11011
  "style": "bodyEmphasis",
11012
+ "color": "textPrimary",
10542
11013
  "maxLines": 2
10543
11014
  }
11015
+ },
11016
+ "modifiers": {
11017
+ "weight": 1
10544
11018
  }
10545
11019
  },
10546
11020
  {
10547
- "id": "",
11021
+ "id": "himi_cart.product_price",
10548
11022
  "body": {
10549
11023
  "package": "himalaya",
10550
11024
  "type": "Text",
10551
11025
  "props": {
10552
- "text": "$item.subtitle",
10553
- "style": "footnote",
10554
- "color": "textSecondary"
11026
+ "text": "$item.total",
11027
+ "style": "bodyEmphasis",
11028
+ "color": "textPrimary",
11029
+ "maxLines": 1,
11030
+ "collapseWhenEmpty": true
10555
11031
  }
10556
11032
  }
10557
11033
  }
@@ -10563,8 +11039,14 @@ const SCREENS = runtimeSetting({
10563
11039
  "id": "",
10564
11040
  "body": {
10565
11041
  "package": "himalaya",
10566
- "type": "Spacer",
10567
- "props": {}
11042
+ "type": "Text",
11043
+ "props": {
11044
+ "text": "$item.option1",
11045
+ "style": "body",
11046
+ "color": "textSecondary",
11047
+ "maxLines": 1,
11048
+ "collapseWhenEmpty": true
11049
+ }
10568
11050
  }
10569
11051
  },
10570
11052
  {
@@ -10573,67 +11055,56 @@ const SCREENS = runtimeSetting({
10573
11055
  "package": "himalaya",
10574
11056
  "type": "Text",
10575
11057
  "props": {
10576
- "text": "$item.total",
10577
- "style": "bodyEmphasis",
11058
+ "text": "$item.option2",
11059
+ "style": "body",
11060
+ "color": "textSecondary",
11061
+ "maxLines": 1,
10578
11062
  "collapseWhenEmpty": true
10579
11063
  }
10580
11064
  }
10581
- }
10582
- ]
10583
- }
10584
- }
10585
- },
10586
- {
10587
- "id": "",
10588
- "body": {
10589
- "package": "himalaya",
10590
- "type": "HStack",
10591
- "props": {
10592
- "spacing": 10,
10593
- "children": [
11065
+ },
10594
11066
  {
10595
- "id": "himi_cart.qty_minus",
11067
+ "id": "",
10596
11068
  "body": {
10597
11069
  "package": "himalaya",
10598
- "type": "Button",
11070
+ "type": "Text",
10599
11071
  "props": {
10600
- "title": "−",
10601
- "style": "secondary",
10602
- "action": {
10603
- "actionId": "tier5.himiStoreCart.decrement",
10604
- "params": {
10605
- "id": "$item.id"
10606
- }
10607
- }
11072
+ "text": "$item.option3",
11073
+ "style": "body",
11074
+ "color": "textSecondary",
11075
+ "maxLines": 1,
11076
+ "collapseWhenEmpty": true
10608
11077
  }
10609
11078
  }
10610
11079
  },
10611
11080
  {
10612
- "id": "himi_cart.qty_value",
11081
+ "id": "",
10613
11082
  "body": {
10614
11083
  "package": "himalaya",
10615
11084
  "type": "Text",
10616
11085
  "props": {
10617
- "text": "$item.quantityLabel",
10618
- "style": "bodyEmphasis"
11086
+ "text": "$item.inStockMessage",
11087
+ "style": "body",
11088
+ "color": "success"
10619
11089
  }
11090
+ },
11091
+ "modifiers": {
11092
+ "hiddenPath": "$item.noInStockMessage"
10620
11093
  }
10621
11094
  },
10622
11095
  {
10623
- "id": "himi_cart.qty_plus",
11096
+ "id": "",
10624
11097
  "body": {
10625
11098
  "package": "himalaya",
10626
- "type": "Button",
11099
+ "type": "Text",
10627
11100
  "props": {
10628
- "title": "+",
10629
- "style": "secondary",
10630
- "action": {
10631
- "actionId": "tier5.himiStoreCart.increment",
10632
- "params": {
10633
- "id": "$item.id"
10634
- }
10635
- }
11101
+ "text": "$item.stockMessage",
11102
+ "style": "body",
11103
+ "color": "danger"
10636
11104
  }
11105
+ },
11106
+ "modifiers": {
11107
+ "hiddenPath": "$item.noStockMessage"
10637
11108
  }
10638
11109
  },
10639
11110
  {
@@ -10645,184 +11116,602 @@ const SCREENS = runtimeSetting({
10645
11116
  }
10646
11117
  },
10647
11118
  {
10648
- "id": "himi_cart.remove",
11119
+ "id": "himi_cart.actions",
10649
11120
  "body": {
10650
11121
  "package": "himalaya",
10651
- "type": "Button",
11122
+ "type": "HStack",
10652
11123
  "props": {
10653
- "title": "Remove",
10654
- "style": "secondary",
10655
- "action": {
10656
- "actionId": "tier5.himiStoreCart.remove",
10657
- "params": {
10658
- "id": "$item.id"
11124
+ "spacing": 0,
11125
+ "children": [
11126
+ {
11127
+ "id": "himi_cart.qty_minus",
11128
+ "body": {
11129
+ "package": "himalaya",
11130
+ "type": "ZStack",
11131
+ "props": {
11132
+ "alignment": "center",
11133
+ "children": [
11134
+ {
11135
+ "id": "",
11136
+ "body": {
11137
+ "package": "himalaya",
11138
+ "type": "Icon",
11139
+ "props": {
11140
+ "name": "minus",
11141
+ "size": 24,
11142
+ "tint": "textPrimary"
11143
+ }
11144
+ },
11145
+ "modifiers": {
11146
+ "accessibilityRole": "decorative"
11147
+ }
11148
+ }
11149
+ ]
11150
+ }
11151
+ },
11152
+ "modifiers": {
11153
+ "width": 44,
11154
+ "height": 44,
11155
+ "onTap": {
11156
+ "actionId": "tier5.himiStoreCart.decrement",
11157
+ "params": {
11158
+ "id": "$item.id"
11159
+ }
11160
+ },
11161
+ "accessibilityRole": "button",
11162
+ "accessibilityLabel": "Decrease quantity",
11163
+ "haptic": "light"
11164
+ }
11165
+ },
11166
+ {
11167
+ "id": "himi_cart.qty_value",
11168
+ "body": {
11169
+ "package": "himalaya",
11170
+ "type": "Text",
11171
+ "props": {
11172
+ "text": "$item.quantityLabel",
11173
+ "style": "body",
11174
+ "textAlign": "center"
11175
+ }
11176
+ },
11177
+ "modifiers": {
11178
+ "width": 32
11179
+ }
11180
+ },
11181
+ {
11182
+ "id": "himi_cart.qty_plus",
11183
+ "body": {
11184
+ "package": "himalaya",
11185
+ "type": "ZStack",
11186
+ "props": {
11187
+ "alignment": "center",
11188
+ "children": [
11189
+ {
11190
+ "id": "",
11191
+ "body": {
11192
+ "package": "himalaya",
11193
+ "type": "Icon",
11194
+ "props": {
11195
+ "name": "plus",
11196
+ "size": 24,
11197
+ "tint": "textPrimary"
11198
+ }
11199
+ },
11200
+ "modifiers": {
11201
+ "accessibilityRole": "decorative"
11202
+ }
11203
+ }
11204
+ ]
11205
+ }
11206
+ },
11207
+ "modifiers": {
11208
+ "width": 44,
11209
+ "height": 44,
11210
+ "onTap": {
11211
+ "actionId": "tier5.himiStoreCart.increment",
11212
+ "params": {
11213
+ "id": "$item.id"
11214
+ }
11215
+ },
11216
+ "accessibilityRole": "button",
11217
+ "accessibilityLabel": "Increase quantity",
11218
+ "haptic": "light"
11219
+ }
11220
+ },
11221
+ {
11222
+ "id": "",
11223
+ "body": {
11224
+ "package": "himalaya",
11225
+ "type": "Spacer",
11226
+ "props": {}
11227
+ }
11228
+ },
11229
+ {
11230
+ "id": "himi_cart.save_filled",
11231
+ "body": {
11232
+ "package": "himalaya",
11233
+ "type": "ZStack",
11234
+ "props": {
11235
+ "alignment": "center",
11236
+ "children": [
11237
+ {
11238
+ "id": "",
11239
+ "body": {
11240
+ "package": "himalaya",
11241
+ "type": "Icon",
11242
+ "props": {
11243
+ "name": "heart_fill",
11244
+ "size": 24,
11245
+ "tint": "textPrimary"
11246
+ }
11247
+ },
11248
+ "modifiers": {
11249
+ "accessibilityRole": "decorative"
11250
+ }
11251
+ }
11252
+ ]
11253
+ }
11254
+ },
11255
+ "modifiers": {
11256
+ "width": 44,
11257
+ "height": 44,
11258
+ "onTap": {
11259
+ "actionId": "tier5.himiStoreCart.save",
11260
+ "params": {
11261
+ "id": "$item.id"
11262
+ }
11263
+ },
11264
+ "accessibilityRole": "button",
11265
+ "accessibilityLabel": "Remove from wishlist",
11266
+ "haptic": "light",
11267
+ "hiddenPath": "$item.notSaved"
11268
+ }
11269
+ },
11270
+ {
11271
+ "id": "himi_cart.save",
11272
+ "body": {
11273
+ "package": "himalaya",
11274
+ "type": "ZStack",
11275
+ "props": {
11276
+ "alignment": "center",
11277
+ "children": [
11278
+ {
11279
+ "id": "",
11280
+ "body": {
11281
+ "package": "himalaya",
11282
+ "type": "Icon",
11283
+ "props": {
11284
+ "name": "heart",
11285
+ "size": 24,
11286
+ "tint": "textPrimary"
11287
+ }
11288
+ },
11289
+ "modifiers": {
11290
+ "accessibilityRole": "decorative"
11291
+ }
11292
+ }
11293
+ ]
11294
+ }
11295
+ },
11296
+ "modifiers": {
11297
+ "width": 44,
11298
+ "height": 44,
11299
+ "onTap": {
11300
+ "actionId": "tier5.himiStoreCart.save",
11301
+ "params": {
11302
+ "id": "$item.id"
11303
+ }
11304
+ },
11305
+ "accessibilityRole": "button",
11306
+ "accessibilityLabel": "Add to wishlist",
11307
+ "haptic": "light",
11308
+ "hiddenPath": "$item.saved"
11309
+ }
11310
+ },
11311
+ {
11312
+ "id": "himi_cart.remove",
11313
+ "body": {
11314
+ "package": "himalaya",
11315
+ "type": "ZStack",
11316
+ "props": {
11317
+ "alignment": "center",
11318
+ "children": [
11319
+ {
11320
+ "id": "",
11321
+ "body": {
11322
+ "package": "himalaya",
11323
+ "type": "Icon",
11324
+ "props": {
11325
+ "name": "trash",
11326
+ "size": 24,
11327
+ "tint": "textPrimary"
11328
+ }
11329
+ },
11330
+ "modifiers": {
11331
+ "accessibilityRole": "decorative"
11332
+ }
11333
+ }
11334
+ ]
11335
+ }
11336
+ },
11337
+ "modifiers": {
11338
+ "width": 44,
11339
+ "height": 44,
11340
+ "onTap": {
11341
+ "actionId": "tier5.himiStoreCart.remove",
11342
+ "params": {
11343
+ "id": "$item.id"
11344
+ }
11345
+ },
11346
+ "accessibilityRole": "button",
11347
+ "accessibilityLabel": "Remove from cart",
11348
+ "haptic": "light"
11349
+ }
10659
11350
  }
10660
- }
11351
+ ]
10661
11352
  }
10662
11353
  }
10663
11354
  }
10664
11355
  ]
10665
11356
  }
11357
+ },
11358
+ "modifiers": {
11359
+ "weight": 1
10666
11360
  }
10667
11361
  }
10668
11362
  ]
10669
11363
  }
10670
11364
  },
10671
11365
  "modifiers": {
10672
- "background": {
10673
- "token": "surfaceElevated"
10674
- },
10675
- "border": {
10676
- "width": 1,
10677
- "color": {
10678
- "token": "border"
10679
- }
10680
- },
10681
- "cornerRadius": 4,
10682
- "padding": {
10683
- "leading": 16,
10684
- "trailing": 16,
10685
- "top": 16,
10686
- "bottom": 16
10687
- }
11366
+ "fillMaxWidth": true
11367
+ }
11368
+ },
11369
+ {
11370
+ "id": "",
11371
+ "body": {
11372
+ "package": "himalaya",
11373
+ "type": "Divider",
11374
+ "props": {}
10688
11375
  }
10689
11376
  }
10690
11377
  ]
10691
11378
  }
11379
+ },
11380
+ "modifiers": {
11381
+ "padding": {
11382
+ "top": 16,
11383
+ "bottom": 16
11384
+ }
11385
+ }
11386
+ }
11387
+ ]
11388
+ }
11389
+ },
11390
+ "modifiers": {
11391
+ "hiddenPath": "$service:himiStoreCart.hideContent"
11392
+ }
11393
+ },
11394
+ {
11395
+ "id": "himi_cart.hint",
11396
+ "body": {
11397
+ "package": "himalaya",
11398
+ "type": "Banner",
11399
+ "props": {
11400
+ "title": "$service:himiStoreCart.checkoutHint",
11401
+ "severity": "warning"
11402
+ }
11403
+ },
11404
+ "modifiers": {
11405
+ "hiddenPath": "$service:himiStoreCart.noCheckoutHint"
11406
+ }
11407
+ },
11408
+ {
11409
+ "id": "himi_cart.empty",
11410
+ "body": {
11411
+ "package": "himalaya",
11412
+ "type": "VStack",
11413
+ "props": {
11414
+ "spacing": 12,
11415
+ "alignment": "center",
11416
+ "children": [
11417
+ {
11418
+ "id": "",
11419
+ "body": {
11420
+ "package": "himalaya",
11421
+ "type": "Icon",
11422
+ "props": {
11423
+ "name": "cart",
11424
+ "size": 28,
11425
+ "tint": "textTertiary"
11426
+ }
11427
+ },
11428
+ "modifiers": {
11429
+ "accessibilityRole": "decorative"
11430
+ }
11431
+ },
11432
+ {
11433
+ "id": "",
11434
+ "body": {
11435
+ "package": "himalaya",
11436
+ "type": "Text",
11437
+ "props": {
11438
+ "text": "$service:himiStoreCart.emptyText",
11439
+ "style": "title3",
11440
+ "color": "textPrimary",
11441
+ "collapseWhenEmpty": true
11442
+ }
11443
+ }
11444
+ },
11445
+ {
11446
+ "id": "",
11447
+ "body": {
11448
+ "package": "himalaya",
11449
+ "type": "Text",
11450
+ "props": {
11451
+ "text": "Your items will appear here when you add them.",
11452
+ "style": "footnote",
11453
+ "color": "textSecondary"
11454
+ }
11455
+ }
11456
+ },
11457
+ {
11458
+ "id": "himi_cart.browse",
11459
+ "body": {
11460
+ "package": "himalaya",
11461
+ "type": "Button",
11462
+ "props": {
11463
+ "title": "Browse products",
11464
+ "style": "secondary",
11465
+ "action": {
11466
+ "actionId": "himi.open",
11467
+ "params": {
11468
+ "screenId": "himi_shop"
11469
+ }
11470
+ }
11471
+ }
11472
+ }
11473
+ }
11474
+ ]
11475
+ }
11476
+ },
11477
+ "modifiers": {
11478
+ "hiddenPath": "$service:himiStoreCart.noEmpty"
11479
+ }
11480
+ },
11481
+ {
11482
+ "id": "himi_cart.order_placed",
11483
+ "body": {
11484
+ "package": "himalaya",
11485
+ "type": "Snackbar",
11486
+ "props": {
11487
+ "message": "Order placed. Thanks!",
11488
+ "severity": "success",
11489
+ "durationMs": 3000
11490
+ }
11491
+ },
11492
+ "modifiers": {
11493
+ "hiddenPath": "$service:himiStoreCart.noPaidToast"
11494
+ }
11495
+ }
11496
+ ]
11497
+ }
11498
+ },
11499
+ "modifiers": {
11500
+ "background": {
11501
+ "token": "surfacePrimary"
11502
+ },
11503
+ "padding": {
11504
+ "leading": 16,
11505
+ "trailing": 16,
11506
+ "top": 18,
11507
+ "bottom": 28
11508
+ },
11509
+ "onAppear": {
11510
+ "actionId": "tier5.himiStoreCart.load"
11511
+ }
11512
+ }
11513
+ },
11514
+ "logicBundle": {
11515
+ "url": "http://localhost:8190/v1/bundles/himi-branded-lite-cart?integrity=",
11516
+ "integrity": "",
11517
+ "contentType": "application/javascript+ts-bundle",
11518
+ "declaredCapabilities": [
11519
+ "wix_api",
11520
+ "wix_cashier",
11521
+ "open_url",
11522
+ "local_database",
11523
+ "wix_platform",
11524
+ "iap",
11525
+ "app_info"
11526
+ ],
11527
+ "minBinaryVersion": "0.1.0",
11528
+ "bundleVersion": "0.0.1"
11529
+ },
11530
+ "stickyFooter": {
11531
+ "id": "himi_cart.footer",
11532
+ "body": {
11533
+ "package": "himalaya",
11534
+ "type": "VStack",
11535
+ "props": {
11536
+ "spacing": 10,
11537
+ "alignment": "leading",
11538
+ "children": [
11539
+ {
11540
+ "id": "",
11541
+ "body": {
11542
+ "package": "himalaya",
11543
+ "type": "HStack",
11544
+ "props": {
11545
+ "spacing": 8,
11546
+ "children": [
11547
+ {
11548
+ "id": "himi_cart.promo",
11549
+ "body": {
11550
+ "package": "himalaya",
11551
+ "type": "TextField",
11552
+ "props": {
11553
+ "placeholder": "Promo code",
11554
+ "valuePath": "$service:himiStoreCart.promoCode",
11555
+ "onChange": {
11556
+ "actionId": "tier5.himiStoreCart.setPromo"
11557
+ },
11558
+ "onSubmit": {
11559
+ "actionId": "tier5.himiStoreCart.applyPromo"
11560
+ },
11561
+ "autoCapitalization": "characters",
11562
+ "suggestions": "off",
11563
+ "submitLabel": "done",
11564
+ "clearButton": true,
11565
+ "maxLength": 100,
11566
+ "borderless": true
11567
+ }
11568
+ },
11569
+ "modifiers": {
11570
+ "weight": 1,
11571
+ "height": 36,
11572
+ "border": {
11573
+ "width": 1,
11574
+ "color": {
11575
+ "token": "border"
11576
+ }
11577
+ },
11578
+ "padding": {
11579
+ "leading": 12,
11580
+ "trailing": 12
11581
+ },
11582
+ "hiddenPath": "$service:himiStoreCart.hasCoupon"
11583
+ }
11584
+ },
11585
+ {
11586
+ "id": "himi_cart.apply_promo",
11587
+ "body": {
11588
+ "package": "himalaya",
11589
+ "type": "Button",
11590
+ "props": {
11591
+ "title": "Apply",
11592
+ "style": "secondary",
11593
+ "action": {
11594
+ "actionId": "tier5.himiStoreCart.applyPromo"
11595
+ },
11596
+ "disabledPath": "$service:himiStoreCart.promoBusy"
11597
+ }
11598
+ },
11599
+ "modifiers": {
11600
+ "height": 44,
11601
+ "cornerRadius": 0,
11602
+ "border": {
11603
+ "width": 1,
11604
+ "color": {
11605
+ "token": "textPrimary"
11606
+ }
11607
+ },
11608
+ "hiddenPath": "$service:himiStoreCart.hasCoupon"
10692
11609
  }
10693
11610
  },
10694
11611
  {
10695
- "id": "himi_cart.summary",
11612
+ "id": "",
10696
11613
  "body": {
10697
11614
  "package": "himalaya",
10698
- "type": "VStack",
11615
+ "type": "HStack",
10699
11616
  "props": {
10700
11617
  "spacing": 8,
10701
- "alignment": "leading",
10702
11618
  "children": [
10703
11619
  {
10704
11620
  "id": "",
10705
11621
  "body": {
10706
11622
  "package": "himalaya",
10707
- "type": "HStack",
11623
+ "type": "Text",
10708
11624
  "props": {
10709
- "spacing": 8,
10710
- "children": [
10711
- {
10712
- "id": "",
10713
- "body": {
10714
- "package": "himalaya",
10715
- "type": "Text",
10716
- "props": {
10717
- "text": "Subtotal",
10718
- "style": "bodyEmphasis"
10719
- }
10720
- }
10721
- },
10722
- {
10723
- "id": "",
10724
- "body": {
10725
- "package": "himalaya",
10726
- "type": "Spacer",
10727
- "props": {}
10728
- }
10729
- },
10730
- {
10731
- "id": "",
10732
- "body": {
10733
- "package": "himalaya",
10734
- "type": "Text",
10735
- "props": {
10736
- "text": "$service:himiStoreCart.subtotal",
10737
- "style": "bodyEmphasis",
10738
- "collapseWhenEmpty": true
10739
- }
10740
- }
10741
- }
10742
- ]
11625
+ "text": "$service:himiStoreCart.appliedLabel",
11626
+ "style": "footnote",
11627
+ "color": "textPrimary"
10743
11628
  }
10744
11629
  }
10745
11630
  },
10746
11631
  {
10747
- "id": "himi_cart.checkout",
11632
+ "id": "",
11633
+ "body": {
11634
+ "package": "himalaya",
11635
+ "type": "Spacer",
11636
+ "props": {}
11637
+ }
11638
+ },
11639
+ {
11640
+ "id": "himi_cart.remove_promo",
10748
11641
  "body": {
10749
11642
  "package": "himalaya",
10750
11643
  "type": "Button",
10751
11644
  "props": {
10752
- "title": "Checkout in browser",
10753
- "style": "primary",
10754
- "fullWidth": true,
11645
+ "title": "Remove promo code",
10755
11646
  "action": {
10756
- "actionId": "tier5.himiStoreCart.checkout"
10757
- }
11647
+ "actionId": "tier5.himiStoreCart.removePromo"
11648
+ },
11649
+ "style": "tertiary",
11650
+ "iconOnly": true,
11651
+ "leadingIcon": "close",
11652
+ "cornerRadius": 22,
11653
+ "minHeight": 44
10758
11654
  }
11655
+ },
11656
+ "modifiers": {
11657
+ "width": 44,
11658
+ "height": 44,
11659
+ "accessibilityLabel": "Remove promo code",
11660
+ "accessibilityRole": "button"
10759
11661
  }
10760
11662
  }
10761
11663
  ]
10762
11664
  }
10763
11665
  },
10764
11666
  "modifiers": {
10765
- "background": {
10766
- "token": "surfaceElevated"
10767
- },
10768
- "border": {
10769
- "width": 1,
10770
- "color": {
10771
- "token": "border"
10772
- }
10773
- },
10774
- "cornerRadius": 4,
10775
- "padding": {
10776
- "leading": 16,
10777
- "trailing": 16,
10778
- "top": 16,
10779
- "bottom": 16
10780
- },
10781
- "hiddenPath": "$service:himiStoreCart.noItems"
11667
+ "hiddenPath": "$service:himiStoreCart.noCoupon"
10782
11668
  }
10783
11669
  }
10784
11670
  ]
10785
11671
  }
10786
- },
10787
- "modifiers": {
10788
- "hiddenPath": "$service:himiStoreCart.hideContent"
10789
11672
  }
10790
11673
  },
10791
11674
  {
10792
- "id": "himi_cart.hint",
11675
+ "id": "himi_cart.promo_error",
10793
11676
  "body": {
10794
11677
  "package": "himalaya",
10795
11678
  "type": "Text",
10796
11679
  "props": {
10797
- "text": "$service:himiStoreCart.checkoutHint",
11680
+ "text": "$service:himiStoreCart.promoError",
10798
11681
  "style": "footnote",
10799
- "color": "textSecondary",
10800
- "collapseWhenEmpty": true
11682
+ "color": "danger"
10801
11683
  }
11684
+ },
11685
+ "modifiers": {
11686
+ "hiddenPath": "$service:himiStoreCart.noPromoError"
10802
11687
  }
10803
11688
  },
10804
11689
  {
10805
- "id": "himi_cart.empty",
11690
+ "id": "",
10806
11691
  "body": {
10807
11692
  "package": "himalaya",
10808
- "type": "VStack",
11693
+ "type": "HStack",
10809
11694
  "props": {
10810
11695
  "spacing": 8,
10811
- "alignment": "leading",
10812
11696
  "children": [
10813
11697
  {
10814
11698
  "id": "",
10815
11699
  "body": {
10816
11700
  "package": "himalaya",
10817
- "type": "Icon",
11701
+ "type": "Text",
10818
11702
  "props": {
10819
- "name": "cart",
10820
- "size": 28,
10821
- "tint": "textTertiary"
11703
+ "text": "Discount",
11704
+ "style": "body",
11705
+ "color": "textPrimary"
10822
11706
  }
10823
- },
10824
- "modifiers": {
10825
- "accessibilityRole": "decorative"
11707
+ }
11708
+ },
11709
+ {
11710
+ "id": "",
11711
+ "body": {
11712
+ "package": "himalaya",
11713
+ "type": "Spacer",
11714
+ "props": {}
10826
11715
  }
10827
11716
  },
10828
11717
  {
@@ -10831,51 +11720,74 @@ const SCREENS = runtimeSetting({
10831
11720
  "package": "himalaya",
10832
11721
  "type": "Text",
10833
11722
  "props": {
10834
- "text": "$service:himiStoreCart.emptyText",
10835
- "style": "bodyEmphasis",
10836
- "color": "textSecondary",
10837
- "collapseWhenEmpty": true
11723
+ "text": "$service:himiStoreCart.discount",
11724
+ "style": "body",
11725
+ "color": "success"
11726
+ }
11727
+ }
11728
+ }
11729
+ ]
11730
+ }
11731
+ },
11732
+ "modifiers": {
11733
+ "hiddenPath": "$service:himiStoreCart.noDiscount"
11734
+ }
11735
+ },
11736
+ {
11737
+ "id": "",
11738
+ "body": {
11739
+ "package": "himalaya",
11740
+ "type": "HStack",
11741
+ "props": {
11742
+ "spacing": 8,
11743
+ "children": [
11744
+ {
11745
+ "id": "",
11746
+ "body": {
11747
+ "package": "himalaya",
11748
+ "type": "Text",
11749
+ "props": {
11750
+ "text": "$service:himiStoreCart.subtotalLabel",
11751
+ "style": "bodyEmphasis"
10838
11752
  }
10839
11753
  }
10840
11754
  },
10841
11755
  {
10842
- "id": "himi_cart.browse",
11756
+ "id": "",
10843
11757
  "body": {
10844
11758
  "package": "himalaya",
10845
- "type": "Button",
11759
+ "type": "Spacer",
11760
+ "props": {}
11761
+ }
11762
+ },
11763
+ {
11764
+ "id": "",
11765
+ "body": {
11766
+ "package": "himalaya",
11767
+ "type": "Text",
10846
11768
  "props": {
10847
- "title": "Browse products",
10848
- "style": "secondary",
10849
- "action": {
10850
- "actionId": "himi.open",
10851
- "params": {
10852
- "screenId": "himi_shop"
10853
- }
10854
- }
11769
+ "text": "$service:himiStoreCart.subtotal",
11770
+ "style": "bodyEmphasis"
10855
11771
  }
10856
11772
  }
10857
11773
  }
10858
11774
  ]
10859
11775
  }
10860
- },
10861
- "modifiers": {
10862
- "background": {
10863
- "token": "surfaceElevated"
10864
- },
10865
- "border": {
10866
- "width": 1,
10867
- "color": {
10868
- "token": "border"
11776
+ }
11777
+ },
11778
+ {
11779
+ "id": "himi_cart.checkout",
11780
+ "body": {
11781
+ "package": "himalaya",
11782
+ "type": "Button",
11783
+ "props": {
11784
+ "title": "Checkout",
11785
+ "style": "primary",
11786
+ "fullWidth": true,
11787
+ "action": {
11788
+ "actionId": "tier5.himiStoreCart.checkout"
10869
11789
  }
10870
- },
10871
- "cornerRadius": 4,
10872
- "padding": {
10873
- "leading": 16,
10874
- "trailing": 16,
10875
- "top": 16,
10876
- "bottom": 16
10877
- },
10878
- "hiddenPath": "$service:himiStoreCart.noEmpty"
11790
+ }
10879
11791
  }
10880
11792
  }
10881
11793
  ]
@@ -10885,32 +11797,20 @@ const SCREENS = runtimeSetting({
10885
11797
  "background": {
10886
11798
  "token": "surfacePrimary"
10887
11799
  },
11800
+ "border": {
11801
+ "width": 1,
11802
+ "color": {
11803
+ "token": "border"
11804
+ }
11805
+ },
10888
11806
  "padding": {
10889
- "leading": 16,
10890
- "trailing": 16,
10891
- "top": 18,
10892
- "bottom": 28
11807
+ "leading": 20,
11808
+ "trailing": 20,
11809
+ "top": 12,
11810
+ "bottom": 12
10893
11811
  },
10894
- "onAppear": {
10895
- "actionId": "tier5.himiStoreCart.load"
10896
- }
11812
+ "hiddenPath": "$service:himiStoreCart.noItems"
10897
11813
  }
10898
- },
10899
- "logicBundle": {
10900
- "url": "http://localhost:8190/v1/bundles/himi-branded-lite-cart?integrity=",
10901
- "integrity": "",
10902
- "contentType": "application/javascript+ts-bundle",
10903
- "declaredCapabilities": [
10904
- "wix_api",
10905
- "wix_cashier",
10906
- "open_url",
10907
- "local_database",
10908
- "wix_platform",
10909
- "iap",
10910
- "app_info"
10911
- ],
10912
- "minBinaryVersion": "0.1.0",
10913
- "bundleVersion": "0.0.1"
10914
11814
  }
10915
11815
  },
10916
11816
  "himi_orders": {
@@ -20304,7 +21204,7 @@ const TEMPLATED: { pattern: string; display: string; liveSeed?: LiveSeed; static
20304
21204
  { pattern: "^himi_product(?:[_/](.+))?$", display: "himi_product[_{id}]", liveSeed: {"path":"/stores/v3/products/query","body":{"query":{"cursorPaging":{"limit":50}}},"listKey":"products","prefix":"himi_product_"}, template: {
20305
21205
  "screenId": "himi_product___HIMI_ID__",
20306
21206
  "renderer": "sdui_intent",
20307
- "title": "Product",
21207
+ "title": "",
20308
21208
  "schemaVersion": 1,
20309
21209
  "cacheControl": {
20310
21210
  "maxAge": 0,
@@ -20415,49 +21315,30 @@ const TEMPLATED: { pattern: string; display: string; liveSeed?: LiveSeed; static
20415
21315
  "transition": {
20416
21316
  "enter": "fade",
20417
21317
  "exit": "fade"
20418
- },
20419
- "hiddenPath": "$service:himiStoreProduct.notErrored"
20420
- }
20421
- },
20422
- {
20423
- "id": "",
20424
- "body": {
20425
- "package": "himalaya",
20426
- "type": "VStack",
20427
- "props": {
20428
- "spacing": 12,
20429
- "children": [
20430
- {
20431
- "id": "himi_product.skeleton_media",
20432
- "body": {
20433
- "package": "himalaya",
20434
- "type": "Skeleton",
20435
- "props": {
20436
- "height": 220,
20437
- "cornerRadius": 8
20438
- }
20439
- },
20440
- "modifiers": {
20441
- "height": 220,
20442
- "background": {
20443
- "token": "surfaceSecondary"
20444
- },
20445
- "cornerRadius": 8,
20446
- "accessibilityRole": "decorative"
20447
- }
20448
- },
21318
+ },
21319
+ "hiddenPath": "$service:himiStoreProduct.notErrored"
21320
+ }
21321
+ },
21322
+ {
21323
+ "id": "",
21324
+ "body": {
21325
+ "package": "himalaya",
21326
+ "type": "VStack",
21327
+ "props": {
21328
+ "spacing": 12,
21329
+ "children": [
20449
21330
  {
20450
- "id": "himi_product.skeleton_title",
21331
+ "id": "himi_product.skeleton_media",
20451
21332
  "body": {
20452
21333
  "package": "himalaya",
20453
21334
  "type": "Skeleton",
20454
21335
  "props": {
20455
- "height": 28,
21336
+ "height": 510,
20456
21337
  "cornerRadius": 8
20457
21338
  }
20458
21339
  },
20459
21340
  "modifiers": {
20460
- "height": 28,
21341
+ "height": 510,
20461
21342
  "background": {
20462
21343
  "token": "surfaceSecondary"
20463
21344
  },
@@ -20466,22 +21347,61 @@ const TEMPLATED: { pattern: string; display: string; liveSeed?: LiveSeed; static
20466
21347
  }
20467
21348
  },
20468
21349
  {
20469
- "id": "himi_product.skeleton_body",
21350
+ "id": "",
20470
21351
  "body": {
20471
21352
  "package": "himalaya",
20472
- "type": "Skeleton",
21353
+ "type": "VStack",
20473
21354
  "props": {
20474
- "height": 72,
20475
- "cornerRadius": 8
21355
+ "spacing": 12,
21356
+ "children": [
21357
+ {
21358
+ "id": "himi_product.skeleton_title",
21359
+ "body": {
21360
+ "package": "himalaya",
21361
+ "type": "Skeleton",
21362
+ "props": {
21363
+ "height": 28,
21364
+ "cornerRadius": 8
21365
+ }
21366
+ },
21367
+ "modifiers": {
21368
+ "height": 28,
21369
+ "background": {
21370
+ "token": "surfaceSecondary"
21371
+ },
21372
+ "cornerRadius": 8,
21373
+ "accessibilityRole": "decorative"
21374
+ }
21375
+ },
21376
+ {
21377
+ "id": "himi_product.skeleton_body",
21378
+ "body": {
21379
+ "package": "himalaya",
21380
+ "type": "Skeleton",
21381
+ "props": {
21382
+ "height": 72,
21383
+ "cornerRadius": 8
21384
+ }
21385
+ },
21386
+ "modifiers": {
21387
+ "height": 72,
21388
+ "background": {
21389
+ "token": "surfaceSecondary"
21390
+ },
21391
+ "cornerRadius": 8,
21392
+ "accessibilityRole": "decorative"
21393
+ }
21394
+ }
21395
+ ]
20476
21396
  }
20477
21397
  },
20478
21398
  "modifiers": {
20479
- "height": 72,
20480
- "background": {
20481
- "token": "surfaceSecondary"
20482
- },
20483
- "cornerRadius": 8,
20484
- "accessibilityRole": "decorative"
21399
+ "padding": {
21400
+ "leading": 16,
21401
+ "trailing": 16,
21402
+ "top": 12,
21403
+ "bottom": 12
21404
+ }
20485
21405
  }
20486
21406
  }
20487
21407
  ]
@@ -20501,214 +21421,142 @@ const TEMPLATED: { pattern: string; display: string; liveSeed?: LiveSeed; static
20501
21421
  "alignment": "leading",
20502
21422
  "children": [
20503
21423
  {
20504
- "id": "himi_product.summary",
21424
+ "id": "himi_product.gallery",
20505
21425
  "body": {
20506
21426
  "package": "himalaya",
20507
- "type": "VStack",
21427
+ "type": "Carousel",
20508
21428
  "props": {
20509
- "spacing": 12,
20510
- "alignment": "leading",
20511
- "children": [
20512
- {
20513
- "id": "himi_product.gallery",
20514
- "body": {
20515
- "package": "himalaya",
20516
- "type": "Carousel",
20517
- "props": {
20518
- "itemsPath": "$service:himiStoreProduct.gallery",
20519
- "items": [
20520
- {
20521
- "id": "",
20522
- "body": {
20523
- "package": "himalaya",
20524
- "type": "Image",
20525
- "props": {
20526
- "url": "$item.url",
20527
- "fillWidth": true,
20528
- "height": 240,
20529
- "contentMode": "fill",
20530
- "contentDescription": "$service:himiStoreProduct.name"
20531
- }
20532
- },
20533
- "modifiers": {
20534
- "cornerRadius": 8,
20535
- "fillMaxWidth": true
20536
- }
20537
- }
20538
- ]
20539
- }
20540
- },
20541
- "modifiers": {
20542
- "hiddenPath": "$service:himiStoreProduct.noGallery"
20543
- }
20544
- },
21429
+ "itemsPath": "$service:himiStoreProduct.gallery",
21430
+ "items": [
20545
21431
  {
20546
21432
  "id": "",
20547
21433
  "body": {
20548
21434
  "package": "himalaya",
20549
21435
  "type": "Image",
20550
21436
  "props": {
20551
- "url": "$service:himiStoreProduct.image",
21437
+ "url": "$item.url",
20552
21438
  "fillWidth": true,
20553
- "height": 240,
21439
+ "height": 510,
20554
21440
  "contentMode": "fill",
20555
21441
  "contentDescription": "$service:himiStoreProduct.name"
20556
21442
  }
20557
21443
  },
20558
21444
  "modifiers": {
20559
- "cornerRadius": 8,
20560
- "fillMaxWidth": true,
20561
- "hiddenPath": "$service:himiStoreProduct.noSingleImage"
20562
- }
20563
- },
20564
- {
20565
- "id": "",
20566
- "body": {
20567
- "package": "himalaya",
20568
- "type": "ZStack",
20569
- "props": {
20570
- "alignment": "center",
20571
- "children": [
20572
- {
20573
- "id": "",
20574
- "body": {
20575
- "package": "himalaya",
20576
- "type": "Text",
20577
- "props": {
20578
- "text": "$service:himiStoreProduct.initial",
20579
- "style": "display",
20580
- "color": "textOnAccent"
20581
- }
20582
- }
20583
- }
20584
- ]
20585
- }
20586
- },
20587
- "modifiers": {
20588
- "fillMaxWidth": true,
20589
- "height": 220,
20590
- "background": {
20591
- "token": "accentPrimary"
20592
- },
20593
- "cornerRadius": 8,
20594
- "hiddenPath": "$service:himiStoreProduct.hasImage"
20595
- }
20596
- },
20597
- {
20598
- "id": "",
20599
- "body": {
20600
- "package": "himalaya",
20601
- "type": "Text",
20602
- "props": {
20603
- "text": "$service:himiStoreProduct.name",
20604
- "style": "title2",
20605
- "maxLines": 2,
20606
- "collapseWhenEmpty": true
20607
- }
20608
- }
20609
- },
20610
- {
20611
- "id": "himi_product.price",
20612
- "body": {
20613
- "package": "himalaya",
20614
- "type": "Text",
20615
- "props": {
20616
- "text": "$service:himiStoreProduct.price",
20617
- "style": "title1",
20618
- "color": "accentPrimary",
20619
- "collapseWhenEmpty": true
20620
- }
21445
+ "fillMaxWidth": true
20621
21446
  }
20622
- },
21447
+ }
21448
+ ]
21449
+ }
21450
+ },
21451
+ "modifiers": {
21452
+ "hiddenPath": "$service:himiStoreProduct.noGallery"
21453
+ }
21454
+ },
21455
+ {
21456
+ "id": "",
21457
+ "body": {
21458
+ "package": "himalaya",
21459
+ "type": "Image",
21460
+ "props": {
21461
+ "url": "$service:himiStoreProduct.image",
21462
+ "fillWidth": true,
21463
+ "height": 510,
21464
+ "contentMode": "fill",
21465
+ "contentDescription": "$service:himiStoreProduct.name"
21466
+ }
21467
+ },
21468
+ "modifiers": {
21469
+ "fillMaxWidth": true,
21470
+ "hiddenPath": "$service:himiStoreProduct.noSingleImage"
21471
+ }
21472
+ },
21473
+ {
21474
+ "id": "",
21475
+ "body": {
21476
+ "package": "himalaya",
21477
+ "type": "ZStack",
21478
+ "props": {
21479
+ "alignment": "center",
21480
+ "children": [
20623
21481
  {
20624
21482
  "id": "",
20625
- "body": {
20626
- "package": "himalaya",
20627
- "type": "Divider",
20628
- "props": {}
20629
- }
20630
- },
20631
- {
20632
- "id": "product_body",
20633
- "body": {
20634
- "package": "himalaya",
20635
- "type": "RichContent",
20636
- "props": {
20637
- "documentJsonPath": "$service:himiStoreProduct.descriptionJson",
20638
- "onLink": {
20639
- "actionId": "tier5.himiStoreProduct.openLink"
20640
- },
20641
- "fallback": {
20642
- "id": "",
20643
- "body": {
20644
- "package": "himalaya",
20645
- "type": "Text",
20646
- "props": {
20647
- "text": "$service:himiStoreProduct.description",
20648
- "style": "body",
20649
- "color": "textSecondary",
20650
- "collapseWhenEmpty": true
20651
- }
20652
- }
20653
- }
20654
- }
20655
- }
20656
- },
20657
- {
20658
- "id": "product_body_text",
20659
21483
  "body": {
20660
21484
  "package": "himalaya",
20661
21485
  "type": "Text",
20662
21486
  "props": {
20663
- "text": "$service:himiStoreProduct.description",
20664
- "style": "body",
20665
- "color": "textSecondary",
20666
- "collapseWhenEmpty": true
21487
+ "text": "$service:himiStoreProduct.initial",
21488
+ "style": "display",
21489
+ "color": "textOnAccent"
20667
21490
  }
20668
- },
20669
- "modifiers": {
20670
- "hiddenPath": "$service:himiStoreProduct.hasDescriptionJson"
20671
21491
  }
20672
21492
  }
20673
21493
  ]
20674
21494
  }
20675
21495
  },
20676
21496
  "modifiers": {
21497
+ "fillMaxWidth": true,
21498
+ "height": 510,
20677
21499
  "background": {
20678
- "token": "surfaceElevated"
20679
- },
20680
- "border": {
20681
- "width": 1,
20682
- "color": {
20683
- "token": "border"
20684
- }
21500
+ "token": "accentPrimary"
20685
21501
  },
20686
- "cornerRadius": 8,
20687
- "padding": {
20688
- "leading": 14,
20689
- "trailing": 14,
20690
- "top": 14,
20691
- "bottom": 14
20692
- }
21502
+ "hiddenPath": "$service:himiStoreProduct.hasImage"
20693
21503
  }
20694
21504
  },
20695
21505
  {
20696
- "id": "himi_product.options_card",
21506
+ "id": "",
20697
21507
  "body": {
20698
21508
  "package": "himalaya",
20699
21509
  "type": "VStack",
20700
21510
  "props": {
20701
- "spacing": 12,
21511
+ "spacing": 16,
20702
21512
  "alignment": "leading",
20703
21513
  "children": [
20704
21514
  {
20705
- "id": "himi_product.opt1_row",
21515
+ "id": "",
21516
+ "body": {
21517
+ "package": "himalaya",
21518
+ "type": "Text",
21519
+ "props": {
21520
+ "text": "On sale",
21521
+ "style": "caption",
21522
+ "color": "danger"
21523
+ }
21524
+ },
21525
+ "modifiers": {
21526
+ "background": {
21527
+ "token": "surfaceTertiary"
21528
+ },
21529
+ "cornerRadius": 4,
21530
+ "padding": {
21531
+ "leading": 8,
21532
+ "trailing": 8,
21533
+ "top": 4,
21534
+ "bottom": 4
21535
+ },
21536
+ "hiddenPath": "$service:himiStoreProduct.notOnSale"
21537
+ }
21538
+ },
21539
+ {
21540
+ "id": "himi_product.title",
21541
+ "body": {
21542
+ "package": "himalaya",
21543
+ "type": "Text",
21544
+ "props": {
21545
+ "text": "$service:himiStoreProduct.name",
21546
+ "style": "title3",
21547
+ "color": "textPrimary",
21548
+ "maxLines": 2,
21549
+ "collapseWhenEmpty": true
21550
+ }
21551
+ }
21552
+ },
21553
+ {
21554
+ "id": "himi_product.price_row",
20706
21555
  "body": {
20707
21556
  "package": "himalaya",
20708
- "type": "VStack",
21557
+ "type": "HStack",
20709
21558
  "props": {
20710
21559
  "spacing": 8,
20711
- "alignment": "leading",
20712
21560
  "children": [
20713
21561
  {
20714
21562
  "id": "",
@@ -20716,152 +21564,514 @@ const TEMPLATED: { pattern: string; display: string; liveSeed?: LiveSeed; static
20716
21564
  "package": "himalaya",
20717
21565
  "type": "Text",
20718
21566
  "props": {
20719
- "text": "$service:himiStoreProduct.opt1Label",
20720
- "style": "bodyEmphasis",
21567
+ "text": "$service:himiStoreProduct.wasPrice",
21568
+ "style": "title3",
21569
+ "color": "textSecondary",
21570
+ "collapseWhenEmpty": true,
21571
+ "decoration": "strikethrough"
21572
+ }
21573
+ },
21574
+ "modifiers": {
21575
+ "hiddenPath": "$service:himiStoreProduct.notOnSale"
21576
+ }
21577
+ },
21578
+ {
21579
+ "id": "himi_product.price_sale",
21580
+ "body": {
21581
+ "package": "himalaya",
21582
+ "type": "Text",
21583
+ "props": {
21584
+ "text": "$service:himiStoreProduct.price",
21585
+ "style": "title3",
21586
+ "color": "danger",
20721
21587
  "collapseWhenEmpty": true
20722
21588
  }
21589
+ },
21590
+ "modifiers": {
21591
+ "hiddenPath": "$service:himiStoreProduct.notOnSale"
20723
21592
  }
20724
21593
  },
20725
21594
  {
20726
- "id": "himi_product.opt1",
21595
+ "id": "himi_product.price",
20727
21596
  "body": {
20728
21597
  "package": "himalaya",
20729
- "type": "FilterChips",
21598
+ "type": "Text",
20730
21599
  "props": {
20731
- "chips": [],
20732
- "optionsPath": "$service:himiStoreProduct.opt1Chips",
20733
- "selectedIds": [
20734
- "$service:himiStoreProduct.opt1Selected"
20735
- ],
20736
- "onChange": {
20737
- "actionId": "tier5.himiStoreProduct.selectOption",
20738
- "params": {
20739
- "group": "1"
20740
- }
20741
- }
21600
+ "text": "$service:himiStoreProduct.price",
21601
+ "style": "title3",
21602
+ "color": "accentPrimary",
21603
+ "collapseWhenEmpty": true
20742
21604
  }
20743
21605
  },
20744
21606
  "modifiers": {
20745
- "accessibilityLabel": "$service:himiStoreProduct.opt1Label"
21607
+ "hiddenPath": "$service:himiStoreProduct.wasPriceEmpty"
20746
21608
  }
20747
21609
  }
20748
21610
  ]
20749
21611
  }
20750
- },
20751
- "modifiers": {
20752
- "hiddenPath": "$service:himiStoreProduct.noOpt1"
20753
21612
  }
20754
21613
  },
20755
21614
  {
20756
- "id": "himi_product.opt2_row",
21615
+ "id": "himi_product.options_card",
20757
21616
  "body": {
20758
21617
  "package": "himalaya",
20759
21618
  "type": "VStack",
20760
21619
  "props": {
20761
- "spacing": 8,
21620
+ "spacing": 12,
20762
21621
  "alignment": "leading",
20763
21622
  "children": [
20764
21623
  {
20765
- "id": "",
21624
+ "id": "himi_product.opt1_row",
20766
21625
  "body": {
20767
21626
  "package": "himalaya",
20768
- "type": "Text",
21627
+ "type": "VStack",
20769
21628
  "props": {
20770
- "text": "$service:himiStoreProduct.opt2Label",
20771
- "style": "bodyEmphasis",
20772
- "collapseWhenEmpty": true
21629
+ "spacing": 8,
21630
+ "alignment": "leading",
21631
+ "children": [
21632
+ {
21633
+ "id": "",
21634
+ "body": {
21635
+ "package": "himalaya",
21636
+ "type": "Text",
21637
+ "props": {
21638
+ "text": "$service:himiStoreProduct.opt1Label",
21639
+ "style": "body",
21640
+ "collapseWhenEmpty": true
21641
+ }
21642
+ }
21643
+ },
21644
+ {
21645
+ "id": "himi_product.opt1",
21646
+ "body": {
21647
+ "package": "himalaya",
21648
+ "type": "Picker",
21649
+ "props": {
21650
+ "options": [],
21651
+ "optionsPath": "$service:himiStoreProduct.opt1Chips",
21652
+ "selectedId": "$service:himiStoreProduct.opt1SelectedId",
21653
+ "placeholder": "$service:himiStoreProduct.opt1Placeholder",
21654
+ "presentation": "sheet",
21655
+ "field": {
21656
+ "minHeight": 48,
21657
+ "cornerRadius": 4,
21658
+ "borderColor": "textSecondary",
21659
+ "borderWidth": 1,
21660
+ "padding": 16,
21661
+ "chevronIcon": "chevron_down"
21662
+ },
21663
+ "onChange": {
21664
+ "actionId": "tier5.himiStoreProduct.selectOption",
21665
+ "params": {
21666
+ "group": "1"
21667
+ }
21668
+ }
21669
+ }
21670
+ },
21671
+ "modifiers": {
21672
+ "accessibilityLabel": "$service:himiStoreProduct.opt1Label",
21673
+ "hiddenPath": "$service:himiStoreProduct.hasOpt1Error"
21674
+ }
21675
+ },
21676
+ {
21677
+ "id": "himi_product.opt1_error",
21678
+ "body": {
21679
+ "package": "himalaya",
21680
+ "type": "Picker",
21681
+ "props": {
21682
+ "options": [],
21683
+ "optionsPath": "$service:himiStoreProduct.opt1Chips",
21684
+ "selectedId": "$service:himiStoreProduct.opt1SelectedId",
21685
+ "placeholder": "$service:himiStoreProduct.opt1Placeholder",
21686
+ "presentation": "sheet",
21687
+ "field": {
21688
+ "minHeight": 48,
21689
+ "cornerRadius": 4,
21690
+ "borderColor": "danger",
21691
+ "borderWidth": 1,
21692
+ "padding": 16,
21693
+ "chevronIcon": "chevron_down"
21694
+ },
21695
+ "onChange": {
21696
+ "actionId": "tier5.himiStoreProduct.selectOption",
21697
+ "params": {
21698
+ "group": "1"
21699
+ }
21700
+ }
21701
+ }
21702
+ },
21703
+ "modifiers": {
21704
+ "accessibilityLabel": "$service:himiStoreProduct.opt1Label",
21705
+ "hiddenPath": "$service:himiStoreProduct.noOpt1Error"
21706
+ }
21707
+ },
21708
+ {
21709
+ "id": "",
21710
+ "body": {
21711
+ "package": "himalaya",
21712
+ "type": "Text",
21713
+ "props": {
21714
+ "text": "$service:himiStoreProduct.opt1Error",
21715
+ "style": "footnote",
21716
+ "color": "danger"
21717
+ }
21718
+ },
21719
+ "modifiers": {
21720
+ "hiddenPath": "$service:himiStoreProduct.noOpt1Error"
21721
+ }
21722
+ }
21723
+ ]
20773
21724
  }
21725
+ },
21726
+ "modifiers": {
21727
+ "hiddenPath": "$service:himiStoreProduct.noOpt1"
20774
21728
  }
20775
21729
  },
20776
21730
  {
20777
- "id": "himi_product.opt2",
21731
+ "id": "himi_product.opt2_row",
20778
21732
  "body": {
20779
21733
  "package": "himalaya",
20780
- "type": "FilterChips",
21734
+ "type": "VStack",
20781
21735
  "props": {
20782
- "chips": [],
20783
- "optionsPath": "$service:himiStoreProduct.opt2Chips",
20784
- "selectedIds": [
20785
- "$service:himiStoreProduct.opt2Selected"
20786
- ],
20787
- "onChange": {
20788
- "actionId": "tier5.himiStoreProduct.selectOption",
20789
- "params": {
20790
- "group": "2"
21736
+ "spacing": 8,
21737
+ "alignment": "leading",
21738
+ "children": [
21739
+ {
21740
+ "id": "",
21741
+ "body": {
21742
+ "package": "himalaya",
21743
+ "type": "Text",
21744
+ "props": {
21745
+ "text": "$service:himiStoreProduct.opt2Label",
21746
+ "style": "body",
21747
+ "collapseWhenEmpty": true
21748
+ }
21749
+ }
21750
+ },
21751
+ {
21752
+ "id": "himi_product.opt2",
21753
+ "body": {
21754
+ "package": "himalaya",
21755
+ "type": "Picker",
21756
+ "props": {
21757
+ "options": [],
21758
+ "optionsPath": "$service:himiStoreProduct.opt2Chips",
21759
+ "selectedId": "$service:himiStoreProduct.opt2SelectedId",
21760
+ "placeholder": "$service:himiStoreProduct.opt2Placeholder",
21761
+ "presentation": "sheet",
21762
+ "field": {
21763
+ "minHeight": 48,
21764
+ "cornerRadius": 4,
21765
+ "borderColor": "textSecondary",
21766
+ "borderWidth": 1,
21767
+ "padding": 16,
21768
+ "chevronIcon": "chevron_down"
21769
+ },
21770
+ "onChange": {
21771
+ "actionId": "tier5.himiStoreProduct.selectOption",
21772
+ "params": {
21773
+ "group": "2"
21774
+ }
21775
+ }
21776
+ }
21777
+ },
21778
+ "modifiers": {
21779
+ "accessibilityLabel": "$service:himiStoreProduct.opt2Label",
21780
+ "hiddenPath": "$service:himiStoreProduct.hasOpt2Error"
21781
+ }
21782
+ },
21783
+ {
21784
+ "id": "himi_product.opt2_error",
21785
+ "body": {
21786
+ "package": "himalaya",
21787
+ "type": "Picker",
21788
+ "props": {
21789
+ "options": [],
21790
+ "optionsPath": "$service:himiStoreProduct.opt2Chips",
21791
+ "selectedId": "$service:himiStoreProduct.opt2SelectedId",
21792
+ "placeholder": "$service:himiStoreProduct.opt2Placeholder",
21793
+ "presentation": "sheet",
21794
+ "field": {
21795
+ "minHeight": 48,
21796
+ "cornerRadius": 4,
21797
+ "borderColor": "danger",
21798
+ "borderWidth": 1,
21799
+ "padding": 16,
21800
+ "chevronIcon": "chevron_down"
21801
+ },
21802
+ "onChange": {
21803
+ "actionId": "tier5.himiStoreProduct.selectOption",
21804
+ "params": {
21805
+ "group": "2"
21806
+ }
21807
+ }
21808
+ }
21809
+ },
21810
+ "modifiers": {
21811
+ "accessibilityLabel": "$service:himiStoreProduct.opt2Label",
21812
+ "hiddenPath": "$service:himiStoreProduct.noOpt2Error"
21813
+ }
21814
+ },
21815
+ {
21816
+ "id": "",
21817
+ "body": {
21818
+ "package": "himalaya",
21819
+ "type": "Text",
21820
+ "props": {
21821
+ "text": "$service:himiStoreProduct.opt2Error",
21822
+ "style": "footnote",
21823
+ "color": "danger"
21824
+ }
21825
+ },
21826
+ "modifiers": {
21827
+ "hiddenPath": "$service:himiStoreProduct.noOpt2Error"
21828
+ }
20791
21829
  }
20792
- }
21830
+ ]
21831
+ }
21832
+ },
21833
+ "modifiers": {
21834
+ "hiddenPath": "$service:himiStoreProduct.noOpt2"
21835
+ }
21836
+ },
21837
+ {
21838
+ "id": "himi_product.opt3_row",
21839
+ "body": {
21840
+ "package": "himalaya",
21841
+ "type": "VStack",
21842
+ "props": {
21843
+ "spacing": 8,
21844
+ "alignment": "leading",
21845
+ "children": [
21846
+ {
21847
+ "id": "",
21848
+ "body": {
21849
+ "package": "himalaya",
21850
+ "type": "Text",
21851
+ "props": {
21852
+ "text": "$service:himiStoreProduct.opt3Label",
21853
+ "style": "body",
21854
+ "collapseWhenEmpty": true
21855
+ }
21856
+ }
21857
+ },
21858
+ {
21859
+ "id": "himi_product.opt3",
21860
+ "body": {
21861
+ "package": "himalaya",
21862
+ "type": "Picker",
21863
+ "props": {
21864
+ "options": [],
21865
+ "optionsPath": "$service:himiStoreProduct.opt3Chips",
21866
+ "selectedId": "$service:himiStoreProduct.opt3SelectedId",
21867
+ "placeholder": "$service:himiStoreProduct.opt3Placeholder",
21868
+ "presentation": "sheet",
21869
+ "field": {
21870
+ "minHeight": 48,
21871
+ "cornerRadius": 4,
21872
+ "borderColor": "textSecondary",
21873
+ "borderWidth": 1,
21874
+ "padding": 16,
21875
+ "chevronIcon": "chevron_down"
21876
+ },
21877
+ "onChange": {
21878
+ "actionId": "tier5.himiStoreProduct.selectOption",
21879
+ "params": {
21880
+ "group": "3"
21881
+ }
21882
+ }
21883
+ }
21884
+ },
21885
+ "modifiers": {
21886
+ "accessibilityLabel": "$service:himiStoreProduct.opt3Label",
21887
+ "hiddenPath": "$service:himiStoreProduct.hasOpt3Error"
21888
+ }
21889
+ },
21890
+ {
21891
+ "id": "himi_product.opt3_error",
21892
+ "body": {
21893
+ "package": "himalaya",
21894
+ "type": "Picker",
21895
+ "props": {
21896
+ "options": [],
21897
+ "optionsPath": "$service:himiStoreProduct.opt3Chips",
21898
+ "selectedId": "$service:himiStoreProduct.opt3SelectedId",
21899
+ "placeholder": "$service:himiStoreProduct.opt3Placeholder",
21900
+ "presentation": "sheet",
21901
+ "field": {
21902
+ "minHeight": 48,
21903
+ "cornerRadius": 4,
21904
+ "borderColor": "danger",
21905
+ "borderWidth": 1,
21906
+ "padding": 16,
21907
+ "chevronIcon": "chevron_down"
21908
+ },
21909
+ "onChange": {
21910
+ "actionId": "tier5.himiStoreProduct.selectOption",
21911
+ "params": {
21912
+ "group": "3"
21913
+ }
21914
+ }
21915
+ }
21916
+ },
21917
+ "modifiers": {
21918
+ "accessibilityLabel": "$service:himiStoreProduct.opt3Label",
21919
+ "hiddenPath": "$service:himiStoreProduct.noOpt3Error"
21920
+ }
21921
+ },
21922
+ {
21923
+ "id": "",
21924
+ "body": {
21925
+ "package": "himalaya",
21926
+ "type": "Text",
21927
+ "props": {
21928
+ "text": "$service:himiStoreProduct.opt3Error",
21929
+ "style": "footnote",
21930
+ "color": "danger"
21931
+ }
21932
+ },
21933
+ "modifiers": {
21934
+ "hiddenPath": "$service:himiStoreProduct.noOpt3Error"
21935
+ }
21936
+ }
21937
+ ]
21938
+ }
21939
+ },
21940
+ "modifiers": {
21941
+ "hiddenPath": "$service:himiStoreProduct.noOpt3"
21942
+ }
21943
+ },
21944
+ {
21945
+ "id": "",
21946
+ "body": {
21947
+ "package": "himalaya",
21948
+ "type": "Text",
21949
+ "props": {
21950
+ "text": "This product has more options than this screen can show. Open it on the website to order.",
21951
+ "style": "footnote",
21952
+ "color": "textSecondary"
20793
21953
  }
20794
21954
  },
20795
21955
  "modifiers": {
20796
- "accessibilityLabel": "$service:himiStoreProduct.opt2Label"
21956
+ "hiddenPath": "$service:himiStoreProduct.noOptionsOverflow"
20797
21957
  }
20798
21958
  }
20799
21959
  ]
20800
21960
  }
20801
21961
  },
20802
21962
  "modifiers": {
20803
- "hiddenPath": "$service:himiStoreProduct.noOpt2"
21963
+ "hiddenPath": "$service:himiStoreProduct.noOptions"
20804
21964
  }
20805
21965
  },
20806
21966
  {
20807
- "id": "himi_product.opt3_row",
21967
+ "id": "himi_product.qty_row",
20808
21968
  "body": {
20809
21969
  "package": "himalaya",
20810
- "type": "VStack",
21970
+ "type": "HStack",
20811
21971
  "props": {
20812
- "spacing": 8,
20813
- "alignment": "leading",
21972
+ "spacing": 12,
20814
21973
  "children": [
20815
21974
  {
20816
21975
  "id": "",
20817
21976
  "body": {
20818
21977
  "package": "himalaya",
20819
- "type": "Text",
20820
- "props": {
20821
- "text": "$service:himiStoreProduct.opt3Label",
20822
- "style": "bodyEmphasis",
20823
- "collapseWhenEmpty": true
20824
- }
21978
+ "type": "Text",
21979
+ "props": {
21980
+ "text": "Quantity",
21981
+ "style": "body"
21982
+ }
21983
+ }
21984
+ },
21985
+ {
21986
+ "id": "",
21987
+ "body": {
21988
+ "package": "himalaya",
21989
+ "type": "Spacer",
21990
+ "props": {}
20825
21991
  }
20826
21992
  },
20827
21993
  {
20828
- "id": "himi_product.opt3",
21994
+ "id": "himi_product.qty",
20829
21995
  "body": {
20830
21996
  "package": "himalaya",
20831
- "type": "FilterChips",
21997
+ "type": "Stepper",
20832
21998
  "props": {
20833
- "chips": [],
20834
- "optionsPath": "$service:himiStoreProduct.opt3Chips",
20835
- "selectedIds": [
20836
- "$service:himiStoreProduct.opt3Selected"
20837
- ],
21999
+ "value": 1,
22000
+ "valuePath": "$service:himiStoreProduct.quantity",
22001
+ "min": 1,
22002
+ "max": 99,
22003
+ "presentation": "plain",
20838
22004
  "onChange": {
20839
- "actionId": "tier5.himiStoreProduct.selectOption",
20840
- "params": {
20841
- "group": "3"
20842
- }
22005
+ "actionId": "tier5.himiStoreProduct.setQuantity"
20843
22006
  }
20844
22007
  }
20845
22008
  },
20846
22009
  "modifiers": {
20847
- "accessibilityLabel": "$service:himiStoreProduct.opt3Label"
22010
+ "accessibilityLabel": "Quantity"
20848
22011
  }
20849
22012
  }
20850
22013
  ]
20851
22014
  }
22015
+ }
22016
+ },
22017
+ {
22018
+ "id": "",
22019
+ "body": {
22020
+ "package": "himalaya",
22021
+ "type": "Divider",
22022
+ "props": {}
22023
+ }
22024
+ },
22025
+ {
22026
+ "id": "product_body",
22027
+ "body": {
22028
+ "package": "himalaya",
22029
+ "type": "RichContent",
22030
+ "props": {
22031
+ "documentJsonPath": "$service:himiStoreProduct.descriptionJson",
22032
+ "onLink": {
22033
+ "actionId": "tier5.himiStoreProduct.openLink"
22034
+ },
22035
+ "fallback": {
22036
+ "id": "",
22037
+ "body": {
22038
+ "package": "himalaya",
22039
+ "type": "Text",
22040
+ "props": {
22041
+ "text": "$service:himiStoreProduct.description",
22042
+ "style": "body",
22043
+ "color": "textPrimary",
22044
+ "collapseWhenEmpty": true
22045
+ }
22046
+ }
22047
+ }
22048
+ }
22049
+ }
22050
+ },
22051
+ {
22052
+ "id": "product_body_text",
22053
+ "body": {
22054
+ "package": "himalaya",
22055
+ "type": "Text",
22056
+ "props": {
22057
+ "text": "$service:himiStoreProduct.description",
22058
+ "style": "body",
22059
+ "color": "textPrimary",
22060
+ "collapseWhenEmpty": true
22061
+ }
20852
22062
  },
20853
22063
  "modifiers": {
20854
- "hiddenPath": "$service:himiStoreProduct.noOpt3"
22064
+ "hiddenPath": "$service:himiStoreProduct.hasDescriptionJson"
20855
22065
  }
20856
22066
  },
20857
22067
  {
20858
- "id": "himi_product.options_hint",
22068
+ "id": "himi_product.sku",
20859
22069
  "body": {
20860
22070
  "package": "himalaya",
20861
22071
  "type": "Text",
20862
22072
  "props": {
20863
- "text": "$service:himiStoreProduct.optionsHint",
20864
- "style": "footnote",
22073
+ "text": "$service:himiStoreProduct.skuLabel",
22074
+ "style": "caption",
20865
22075
  "color": "textSecondary",
20866
22076
  "collapseWhenEmpty": true
20867
22077
  }
@@ -20871,92 +22081,239 @@ const TEMPLATED: { pattern: string; display: string; liveSeed?: LiveSeed; static
20871
22081
  "id": "",
20872
22082
  "body": {
20873
22083
  "package": "himalaya",
20874
- "type": "Text",
20875
- "props": {
20876
- "text": "This product has more options than this screen can show. Open it on the website to order.",
20877
- "style": "footnote",
20878
- "color": "textSecondary"
20879
- }
22084
+ "type": "Divider",
22085
+ "props": {}
20880
22086
  },
20881
22087
  "modifiers": {
20882
- "hiddenPath": "$service:himiStoreProduct.noOptionsOverflow"
22088
+ "hiddenPath": "$service:himiStoreProduct.noSku"
20883
22089
  }
20884
- }
20885
- ]
20886
- }
20887
- },
20888
- "modifiers": {
20889
- "background": {
20890
- "token": "surfaceElevated"
20891
- },
20892
- "border": {
20893
- "width": 1,
20894
- "color": {
20895
- "token": "border"
20896
- }
20897
- },
20898
- "cornerRadius": 8,
20899
- "padding": {
20900
- "leading": 14,
20901
- "trailing": 14,
20902
- "top": 14,
20903
- "bottom": 14
20904
- },
20905
- "hiddenPath": "$service:himiStoreProduct.noOptions"
20906
- }
20907
- },
20908
- {
20909
- "id": "himi_product.qty_card",
20910
- "body": {
20911
- "package": "himalaya",
20912
- "type": "VStack",
20913
- "props": {
20914
- "spacing": 12,
20915
- "alignment": "leading",
20916
- "children": [
22090
+ },
20917
22091
  {
20918
- "id": "himi_product.qty_row",
22092
+ "id": "himi_product.return_policy",
20919
22093
  "body": {
20920
22094
  "package": "himalaya",
20921
- "type": "HStack",
22095
+ "type": "VStack",
20922
22096
  "props": {
20923
- "spacing": 12,
22097
+ "spacing": 0,
22098
+ "alignment": "leading",
20924
22099
  "children": [
22100
+ {
22101
+ "id": "himi_product.return_policy.header",
22102
+ "body": {
22103
+ "package": "himalaya",
22104
+ "type": "HStack",
22105
+ "props": {
22106
+ "spacing": 12,
22107
+ "children": [
22108
+ {
22109
+ "id": "",
22110
+ "body": {
22111
+ "package": "himalaya",
22112
+ "type": "Text",
22113
+ "props": {
22114
+ "text": "Return & refund policy",
22115
+ "style": "body",
22116
+ "maxLines": 2
22117
+ }
22118
+ }
22119
+ },
22120
+ {
22121
+ "id": "",
22122
+ "body": {
22123
+ "package": "himalaya",
22124
+ "type": "Spacer",
22125
+ "props": {}
22126
+ }
22127
+ },
22128
+ {
22129
+ "id": "",
22130
+ "body": {
22131
+ "package": "himalaya",
22132
+ "type": "Icon",
22133
+ "props": {
22134
+ "name": "chevron_down",
22135
+ "size": 16,
22136
+ "tint": "textSecondary"
22137
+ }
22138
+ },
22139
+ "modifiers": {
22140
+ "accessibilityRole": "decorative",
22141
+ "hiddenPath": "$service:himiStoreProduct.returnPolicyExpanded"
22142
+ }
22143
+ },
22144
+ {
22145
+ "id": "",
22146
+ "body": {
22147
+ "package": "himalaya",
22148
+ "type": "Icon",
22149
+ "props": {
22150
+ "name": "chevron_up",
22151
+ "size": 16,
22152
+ "tint": "textSecondary"
22153
+ }
22154
+ },
22155
+ "modifiers": {
22156
+ "accessibilityRole": "decorative",
22157
+ "hiddenPath": "$service:himiStoreProduct.returnPolicyCollapsed"
22158
+ }
22159
+ }
22160
+ ]
22161
+ }
22162
+ },
22163
+ "modifiers": {
22164
+ "fillMaxWidth": true,
22165
+ "padding": {
22166
+ "top": 18,
22167
+ "bottom": 18
22168
+ },
22169
+ "onTap": {
22170
+ "actionId": "tier5.himiStoreProduct.toggleReturnPolicy"
22171
+ },
22172
+ "pressFeedback": "highlight",
22173
+ "accessibilityRole": "button",
22174
+ "accessibilityLabel": "Return & refund policy"
22175
+ }
22176
+ },
20925
22177
  {
20926
22178
  "id": "",
20927
22179
  "body": {
20928
22180
  "package": "himalaya",
20929
22181
  "type": "Text",
20930
22182
  "props": {
20931
- "text": "Quantity",
20932
- "style": "bodyEmphasis"
22183
+ "text": "$service:himiStoreProduct.returnPolicyBody",
22184
+ "style": "body",
22185
+ "color": "textSecondary"
20933
22186
  }
22187
+ },
22188
+ "modifiers": {
22189
+ "padding": {
22190
+ "bottom": 18
22191
+ },
22192
+ "hiddenPath": "$service:himiStoreProduct.returnPolicyCollapsed"
20934
22193
  }
20935
22194
  },
20936
22195
  {
20937
22196
  "id": "",
20938
22197
  "body": {
20939
22198
  "package": "himalaya",
20940
- "type": "Spacer",
22199
+ "type": "Divider",
20941
22200
  "props": {}
20942
22201
  }
22202
+ }
22203
+ ]
22204
+ }
22205
+ }
22206
+ },
22207
+ {
22208
+ "id": "himi_product.shipping_info",
22209
+ "body": {
22210
+ "package": "himalaya",
22211
+ "type": "VStack",
22212
+ "props": {
22213
+ "spacing": 0,
22214
+ "alignment": "leading",
22215
+ "children": [
22216
+ {
22217
+ "id": "himi_product.shipping_info.header",
22218
+ "body": {
22219
+ "package": "himalaya",
22220
+ "type": "HStack",
22221
+ "props": {
22222
+ "spacing": 12,
22223
+ "children": [
22224
+ {
22225
+ "id": "",
22226
+ "body": {
22227
+ "package": "himalaya",
22228
+ "type": "Text",
22229
+ "props": {
22230
+ "text": "Shipping info",
22231
+ "style": "body",
22232
+ "maxLines": 2
22233
+ }
22234
+ }
22235
+ },
22236
+ {
22237
+ "id": "",
22238
+ "body": {
22239
+ "package": "himalaya",
22240
+ "type": "Spacer",
22241
+ "props": {}
22242
+ }
22243
+ },
22244
+ {
22245
+ "id": "",
22246
+ "body": {
22247
+ "package": "himalaya",
22248
+ "type": "Icon",
22249
+ "props": {
22250
+ "name": "chevron_down",
22251
+ "size": 16,
22252
+ "tint": "textSecondary"
22253
+ }
22254
+ },
22255
+ "modifiers": {
22256
+ "accessibilityRole": "decorative",
22257
+ "hiddenPath": "$service:himiStoreProduct.shippingInfoExpanded"
22258
+ }
22259
+ },
22260
+ {
22261
+ "id": "",
22262
+ "body": {
22263
+ "package": "himalaya",
22264
+ "type": "Icon",
22265
+ "props": {
22266
+ "name": "chevron_up",
22267
+ "size": 16,
22268
+ "tint": "textSecondary"
22269
+ }
22270
+ },
22271
+ "modifiers": {
22272
+ "accessibilityRole": "decorative",
22273
+ "hiddenPath": "$service:himiStoreProduct.shippingInfoCollapsed"
22274
+ }
22275
+ }
22276
+ ]
22277
+ }
22278
+ },
22279
+ "modifiers": {
22280
+ "fillMaxWidth": true,
22281
+ "padding": {
22282
+ "top": 18,
22283
+ "bottom": 18
22284
+ },
22285
+ "onTap": {
22286
+ "actionId": "tier5.himiStoreProduct.toggleShippingInfo"
22287
+ },
22288
+ "pressFeedback": "highlight",
22289
+ "accessibilityRole": "button",
22290
+ "accessibilityLabel": "Shipping info"
22291
+ }
20943
22292
  },
20944
22293
  {
20945
- "id": "himi_product.qty",
22294
+ "id": "",
20946
22295
  "body": {
20947
22296
  "package": "himalaya",
20948
- "type": "Stepper",
22297
+ "type": "Text",
20949
22298
  "props": {
20950
- "value": 1,
20951
- "min": 1,
20952
- "max": 99,
20953
- "onChange": {
20954
- "actionId": "tier5.himiStoreProduct.setQuantity"
20955
- }
22299
+ "text": "$service:himiStoreProduct.shippingInfoBody",
22300
+ "style": "body",
22301
+ "color": "textSecondary"
20956
22302
  }
20957
22303
  },
20958
22304
  "modifiers": {
20959
- "accessibilityLabel": "Quantity"
22305
+ "padding": {
22306
+ "bottom": 18
22307
+ },
22308
+ "hiddenPath": "$service:himiStoreProduct.shippingInfoCollapsed"
22309
+ }
22310
+ },
22311
+ {
22312
+ "id": "",
22313
+ "body": {
22314
+ "package": "himalaya",
22315
+ "type": "Divider",
22316
+ "props": {}
20960
22317
  }
20961
22318
  }
20962
22319
  ]
@@ -20967,107 +22324,34 @@ const TEMPLATED: { pattern: string; display: string; liveSeed?: LiveSeed; static
20967
22324
  }
20968
22325
  },
20969
22326
  "modifiers": {
20970
- "background": {
20971
- "token": "surfaceElevated"
20972
- },
20973
- "border": {
20974
- "width": 1,
20975
- "color": {
20976
- "token": "border"
20977
- }
20978
- },
20979
- "cornerRadius": 8,
20980
22327
  "padding": {
20981
- "leading": 14,
20982
- "trailing": 14,
20983
- "top": 14,
20984
- "bottom": 14
20985
- }
20986
- }
20987
- },
20988
- {
20989
- "id": "himi_product.save",
20990
- "body": {
20991
- "package": "himalaya",
20992
- "type": "Button",
20993
- "props": {
20994
- "title": "$service:himiStoreProduct.saveLabel",
20995
- "style": "secondary",
20996
- "fullWidth": true,
20997
- "leadingIcon": "bookmark",
20998
- "action": {
20999
- "actionId": "tier5.himiStoreProduct.toggleSave"
21000
- }
21001
- }
21002
- }
21003
- },
21004
- {
21005
- "id": "himi_product.save_hint",
21006
- "body": {
21007
- "package": "himalaya",
21008
- "type": "Text",
21009
- "props": {
21010
- "text": "$service:himiStoreProduct.saveHint",
21011
- "style": "footnote",
21012
- "collapseWhenEmpty": true
21013
- }
21014
- }
21015
- },
21016
- {
21017
- "id": "himi_product.saved_list",
21018
- "body": {
21019
- "package": "himalaya",
21020
- "type": "Button",
21021
- "props": {
21022
- "title": "View saved products",
21023
- "style": "secondary",
21024
- "fullWidth": true,
21025
- "action": {
21026
- "actionId": "himi.open",
21027
- "params": {
21028
- "screenId": "himi_saved_products"
21029
- }
21030
- }
21031
- }
21032
- }
21033
- },
21034
- {
21035
- "id": "himi_product.share",
21036
- "body": {
21037
- "package": "himalaya",
21038
- "type": "Button",
21039
- "props": {
21040
- "title": "Share",
21041
- "style": "secondary",
21042
- "fullWidth": true,
21043
- "leadingIcon": "share",
21044
- "action": {
21045
- "actionId": "tier5.himiStoreProduct.share"
21046
- }
21047
- }
21048
- }
21049
- },
21050
- {
21051
- "id": "",
21052
- "body": {
21053
- "package": "himalaya",
21054
- "type": "Text",
21055
- "props": {
21056
- "text": "$service:himiStoreProduct.cartHint",
21057
- "style": "footnote",
21058
- "color": "textSecondary",
21059
- "collapseWhenEmpty": true
22328
+ "leading": 16,
22329
+ "trailing": 16,
22330
+ "top": 4,
22331
+ "bottom": 8
21060
22332
  }
21061
- },
21062
- "modifiers": {
21063
- "hiddenPath": "$service:himiStoreProduct.added"
21064
22333
  }
21065
22334
  }
21066
22335
  ]
21067
22336
  }
21068
22337
  },
21069
22338
  "modifiers": {
21070
- "hiddenPath": "$service:himiStoreProduct.isLoading"
22339
+ "hiddenPath": "$service:himiStoreProduct.hideProduct"
22340
+ }
22341
+ },
22342
+ {
22343
+ "id": "himi_product.share_hint",
22344
+ "body": {
22345
+ "package": "himalaya",
22346
+ "type": "Snackbar",
22347
+ "props": {
22348
+ "message": "Sharing is not available on this device.",
22349
+ "severity": "warning",
22350
+ "durationMs": 3000
22351
+ }
22352
+ },
22353
+ "modifiers": {
22354
+ "hiddenPath": "$service:himiStoreProduct.noShareHint"
21071
22355
  }
21072
22356
  },
21073
22357
  {
@@ -21121,24 +22405,273 @@ const TEMPLATED: { pattern: string; display: string; liveSeed?: LiveSeed; static
21121
22405
  "screenId": "himi_shop"
21122
22406
  }
21123
22407
  }
21124
- }
22408
+ }
22409
+ }
22410
+ }
22411
+ ]
22412
+ }
22413
+ },
22414
+ "modifiers": {
22415
+ "padding": {
22416
+ "leading": 24,
22417
+ "trailing": 24,
22418
+ "top": 24,
22419
+ "bottom": 24
22420
+ },
22421
+ "transition": {
22422
+ "enter": "fade",
22423
+ "exit": "fade"
22424
+ },
22425
+ "hiddenPath": "$service:himiStoreProduct.noEmpty"
22426
+ }
22427
+ },
22428
+ {
22429
+ "id": "himi_product.added_sheet",
22430
+ "body": {
22431
+ "package": "himalaya",
22432
+ "type": "BottomSheet",
22433
+ "props": {
22434
+ "presentedPath": "$service:himiStoreProduct.addedSheetPresented",
22435
+ "placement": "inline",
22436
+ "modal": false,
22437
+ "autoDismissMs": 4000,
22438
+ "detents": [
22439
+ 0.5,
22440
+ 0.9
22441
+ ],
22442
+ "label": "Item added to cart",
22443
+ "onDismiss": {
22444
+ "actionId": "tier5.himiStoreProduct.closeAddedSheet"
22445
+ },
22446
+ "content": {
22447
+ "id": "",
22448
+ "body": {
22449
+ "package": "himalaya",
22450
+ "type": "VStack",
22451
+ "props": {
22452
+ "spacing": 16,
22453
+ "children": [
22454
+ {
22455
+ "id": "",
22456
+ "body": {
22457
+ "package": "himalaya",
22458
+ "type": "HStack",
22459
+ "props": {
22460
+ "spacing": 12,
22461
+ "children": [
22462
+ {
22463
+ "id": "himi_product.added_sheet_title",
22464
+ "body": {
22465
+ "package": "himalaya",
22466
+ "type": "Text",
22467
+ "props": {
22468
+ "text": "Item added to cart",
22469
+ "style": "title3"
22470
+ }
22471
+ }
22472
+ },
22473
+ {
22474
+ "id": "",
22475
+ "body": {
22476
+ "package": "himalaya",
22477
+ "type": "Spacer",
22478
+ "props": {}
22479
+ }
22480
+ },
22481
+ {
22482
+ "id": "himi_product.added_sheet_close",
22483
+ "body": {
22484
+ "package": "himalaya",
22485
+ "type": "Button",
22486
+ "props": {
22487
+ "title": "Close confirmation",
22488
+ "action": {
22489
+ "actionId": "tier5.himiStoreProduct.closeAddedSheet"
22490
+ },
22491
+ "style": "tertiary",
22492
+ "iconOnly": true,
22493
+ "leadingIcon": "close",
22494
+ "cornerRadius": 22,
22495
+ "minHeight": 44
22496
+ }
22497
+ },
22498
+ "modifiers": {
22499
+ "width": 44,
22500
+ "height": 44,
22501
+ "accessibilityLabel": "Close confirmation",
22502
+ "accessibilityRole": "button"
22503
+ }
22504
+ }
22505
+ ]
22506
+ }
22507
+ },
22508
+ "modifiers": {
22509
+ "background": {
22510
+ "token": "surfaceSecondary"
22511
+ },
22512
+ "padding": {
22513
+ "leading": 16,
22514
+ "trailing": 16,
22515
+ "top": 12,
22516
+ "bottom": 12
22517
+ }
22518
+ }
22519
+ },
22520
+ {
22521
+ "id": "",
22522
+ "body": {
22523
+ "package": "himalaya",
22524
+ "type": "HStack",
22525
+ "props": {
22526
+ "spacing": 12,
22527
+ "children": [
22528
+ {
22529
+ "id": "",
22530
+ "body": {
22531
+ "package": "himalaya",
22532
+ "type": "Image",
22533
+ "props": {
22534
+ "url": "$service:himiStoreProduct.image",
22535
+ "width": 88,
22536
+ "height": 112,
22537
+ "contentMode": "fill",
22538
+ "shape": "rect",
22539
+ "contentDescription": "$service:himiStoreProduct.name"
22540
+ }
22541
+ }
22542
+ },
22543
+ {
22544
+ "id": "",
22545
+ "body": {
22546
+ "package": "himalaya",
22547
+ "type": "VStack",
22548
+ "props": {
22549
+ "spacing": 6,
22550
+ "alignment": "leading",
22551
+ "children": [
22552
+ {
22553
+ "id": "",
22554
+ "body": {
22555
+ "package": "himalaya",
22556
+ "type": "Text",
22557
+ "props": {
22558
+ "text": "$service:himiStoreProduct.name",
22559
+ "style": "bodyEmphasis",
22560
+ "maxLines": 2
22561
+ }
22562
+ }
22563
+ },
22564
+ {
22565
+ "id": "",
22566
+ "body": {
22567
+ "package": "himalaya",
22568
+ "type": "Text",
22569
+ "props": {
22570
+ "text": "$service:himiStoreProduct.price",
22571
+ "style": "body"
22572
+ }
22573
+ }
22574
+ },
22575
+ {
22576
+ "id": "",
22577
+ "body": {
22578
+ "package": "himalaya",
22579
+ "type": "Text",
22580
+ "props": {
22581
+ "text": "$service:himiStoreProduct.optionsSummary",
22582
+ "style": "footnote",
22583
+ "color": "textSecondary",
22584
+ "collapseWhenEmpty": true
22585
+ }
22586
+ }
22587
+ },
22588
+ {
22589
+ "id": "",
22590
+ "body": {
22591
+ "package": "himalaya",
22592
+ "type": "Text",
22593
+ "props": {
22594
+ "text": "$service:himiStoreProduct.quantityLabel",
22595
+ "style": "footnote",
22596
+ "color": "textSecondary"
22597
+ }
22598
+ },
22599
+ "modifiers": {
22600
+ "hiddenPath": "$service:himiStoreProduct.quantityIsOne"
22601
+ }
22602
+ }
22603
+ ]
22604
+ }
22605
+ }
22606
+ }
22607
+ ]
22608
+ }
22609
+ }
22610
+ },
22611
+ {
22612
+ "id": "",
22613
+ "body": {
22614
+ "package": "himalaya",
22615
+ "type": "HStack",
22616
+ "props": {
22617
+ "spacing": 10,
22618
+ "children": [
22619
+ {
22620
+ "id": "himi_product.view_cart",
22621
+ "body": {
22622
+ "package": "himalaya",
22623
+ "type": "Button",
22624
+ "props": {
22625
+ "title": "View cart",
22626
+ "style": "secondary",
22627
+ "fullWidth": true,
22628
+ "action": {
22629
+ "actionId": "himi.open",
22630
+ "params": {
22631
+ "screenId": "himi_cart"
22632
+ }
22633
+ }
22634
+ }
22635
+ }
22636
+ },
22637
+ {
22638
+ "id": "himi_product.checkout",
22639
+ "body": {
22640
+ "package": "himalaya",
22641
+ "type": "Button",
22642
+ "props": {
22643
+ "title": "Checkout",
22644
+ "style": "primary",
22645
+ "fullWidth": true,
22646
+ "action": {
22647
+ "actionId": "himi.open",
22648
+ "params": {
22649
+ "screenId": "himi_cart"
22650
+ }
22651
+ }
22652
+ }
22653
+ }
22654
+ }
22655
+ ]
22656
+ }
22657
+ }
22658
+ }
22659
+ ]
22660
+ }
22661
+ },
22662
+ "modifiers": {
22663
+ "padding": {
22664
+ "leading": 16,
22665
+ "trailing": 16,
22666
+ "top": 16,
22667
+ "bottom": 24
22668
+ },
22669
+ "background": {
22670
+ "token": "surfacePrimary"
21125
22671
  }
21126
22672
  }
21127
- ]
22673
+ }
21128
22674
  }
21129
- },
21130
- "modifiers": {
21131
- "padding": {
21132
- "leading": 24,
21133
- "trailing": 24,
21134
- "top": 24,
21135
- "bottom": 24
21136
- },
21137
- "transition": {
21138
- "enter": "fade",
21139
- "exit": "fade"
21140
- },
21141
- "hiddenPath": "$service:himiStoreProduct.noEmpty"
21142
22675
  }
21143
22676
  }
21144
22677
  ]
@@ -21149,9 +22682,7 @@ const TEMPLATED: { pattern: string; display: string; liveSeed?: LiveSeed; static
21149
22682
  "token": "surfacePrimary"
21150
22683
  },
21151
22684
  "padding": {
21152
- "leading": 16,
21153
- "trailing": 16,
21154
- "top": 18,
22685
+ "top": 0,
21155
22686
  "bottom": 24
21156
22687
  },
21157
22688
  "onAppear": {
@@ -21178,7 +22709,7 @@ const TEMPLATED: { pattern: string; display: string; liveSeed?: LiveSeed; static
21178
22709
  "id": "__HIMI_ID__"
21179
22710
  },
21180
22711
  "stickyFooter": {
21181
- "id": "",
22712
+ "id": "himi_product.stickyFooter",
21182
22713
  "body": {
21183
22714
  "package": "himalaya",
21184
22715
  "type": "VStack",
@@ -21186,183 +22717,200 @@ const TEMPLATED: { pattern: string; display: string; liveSeed?: LiveSeed; static
21186
22717
  "spacing": 8,
21187
22718
  "children": [
21188
22719
  {
21189
- "id": "himi_product.add_to_cart",
21190
- "body": {
21191
- "package": "himalaya",
21192
- "type": "Button",
21193
- "props": {
21194
- "title": "Add to cart",
21195
- "style": "primary",
21196
- "fullWidth": true,
21197
- "action": {
21198
- "actionId": "tier5.himiStoreProduct.addToCart"
21199
- },
21200
- "disabledPath": "$service:himiStoreProduct.optionsIncomplete"
21201
- }
21202
- },
21203
- "modifiers": {
21204
- "cornerRadius": 8,
21205
- "pressFeedback": "scale",
21206
- "haptic": "medium",
21207
- "hiddenPath": "$service:himiStoreProduct.cartHidden"
21208
- }
21209
- },
21210
- {
21211
- "id": "himi_product.buy",
22720
+ "id": "himi_product.save_hint",
21212
22721
  "body": {
21213
22722
  "package": "himalaya",
21214
- "type": "Button",
22723
+ "type": "Banner",
21215
22724
  "props": {
21216
- "title": "$service:himiStoreProduct.buyLabel",
21217
- "style": "primary",
21218
- "fullWidth": true,
21219
- "disabledPath": "$service:himiStoreProduct.buyDisabled",
21220
- "action": {
21221
- "actionId": "tier5.himiStoreProduct.buy"
21222
- }
22725
+ "title": "$service:himiStoreProduct.saveHint",
22726
+ "severity": "warning"
21223
22727
  }
21224
22728
  },
21225
22729
  "modifiers": {
21226
- "hiddenPath": "$service:himiStoreProduct.buyHidden"
22730
+ "hiddenPath": "$service:himiStoreProduct.noSaveHint"
21227
22731
  }
21228
22732
  },
21229
22733
  {
21230
- "id": "himi_product.buy_note",
22734
+ "id": "himi_product.cart_hint",
21231
22735
  "body": {
21232
22736
  "package": "himalaya",
21233
- "type": "Text",
22737
+ "type": "Banner",
21234
22738
  "props": {
21235
- "text": "$service:himiStoreProduct.buyNote",
21236
- "style": "footnote",
21237
- "color": "textSecondary",
21238
- "collapseWhenEmpty": true
22739
+ "title": "$service:himiStoreProduct.cartHint",
22740
+ "severity": "warning"
21239
22741
  }
21240
22742
  },
21241
22743
  "modifiers": {
21242
- "hiddenPath": "$service:himiStoreProduct.buyHidden"
21243
- }
21244
- },
21245
- {
21246
- "id": "himi_product.purchased",
21247
- "body": {
21248
- "package": "himalaya",
21249
- "type": "Text",
21250
- "props": {
21251
- "text": "$service:himiStoreProduct.purchasedNote",
21252
- "style": "footnote",
21253
- "collapseWhenEmpty": true
21254
- }
22744
+ "hiddenPath": "$service:himiStoreProduct.noCartHint"
21255
22745
  }
21256
22746
  },
21257
22747
  {
21258
- "id": "himi_product.adding",
22748
+ "id": "",
21259
22749
  "body": {
21260
22750
  "package": "himalaya",
21261
- "type": "HStack",
21262
- "props": {
21263
- "spacing": 8,
21264
- "children": [
21265
- {
21266
- "id": "",
21267
- "body": {
21268
- "package": "himalaya",
21269
- "type": "ActivityIndicator",
21270
- "props": {
21271
- "indeterminate": true,
21272
- "size": 16
21273
- }
21274
- }
21275
- },
21276
- {
21277
- "id": "",
21278
- "body": {
21279
- "package": "himalaya",
21280
- "type": "Text",
21281
- "props": {
21282
- "text": "Adding to cart…",
21283
- "style": "footnote",
21284
- "color": "textSecondary"
21285
- }
21286
- }
21287
- }
21288
- ]
21289
- }
21290
- },
21291
- "modifiers": {
21292
- "hiddenPath": "$service:himiStoreProduct.notAdding"
22751
+ "type": "Divider",
22752
+ "props": {}
21293
22753
  }
21294
22754
  },
21295
22755
  {
21296
- "id": "himi_product.added_confirmation",
22756
+ "id": "",
21297
22757
  "body": {
21298
22758
  "package": "himalaya",
21299
22759
  "type": "HStack",
21300
22760
  "props": {
21301
- "spacing": 10,
22761
+ "spacing": 12,
21302
22762
  "children": [
21303
22763
  {
21304
- "id": "",
22764
+ "id": "himi_product.save",
21305
22765
  "body": {
21306
22766
  "package": "himalaya",
21307
- "type": "Icon",
22767
+ "type": "ZStack",
21308
22768
  "props": {
21309
- "name": "check",
21310
- "size": 18,
21311
- "tint": "success"
22769
+ "alignment": "center",
22770
+ "children": [
22771
+ {
22772
+ "id": "",
22773
+ "body": {
22774
+ "package": "himalaya",
22775
+ "type": "Icon",
22776
+ "props": {
22777
+ "name": "$service:himiStoreProduct.saveIcon",
22778
+ "size": 22,
22779
+ "tint": "textPrimary"
22780
+ }
22781
+ },
22782
+ "modifiers": {
22783
+ "accessibilityRole": "decorative"
22784
+ }
22785
+ }
22786
+ ]
21312
22787
  }
21313
22788
  },
21314
22789
  "modifiers": {
21315
- "accessibilityRole": "decorative"
22790
+ "width": 48,
22791
+ "height": 48,
22792
+ "cornerRadius": 24,
22793
+ "border": {
22794
+ "width": 1,
22795
+ "color": {
22796
+ "token": "border"
22797
+ }
22798
+ },
22799
+ "onTap": {
22800
+ "actionId": "tier5.himiStoreProduct.toggleSave"
22801
+ },
22802
+ "accessibilityRole": "button",
22803
+ "accessibilityLabel": "$service:himiStoreProduct.saveLabel",
22804
+ "haptic": "light"
21316
22805
  }
21317
22806
  },
21318
22807
  {
21319
- "id": "",
22808
+ "id": "himi_product.add_to_cart",
21320
22809
  "body": {
21321
22810
  "package": "himalaya",
21322
- "type": "Text",
22811
+ "type": "Button",
21323
22812
  "props": {
21324
- "text": "$service:himiStoreProduct.cartHint",
21325
- "style": "footnote",
21326
- "collapseWhenEmpty": true
22813
+ "title": "Add to cart",
22814
+ "style": "primary",
22815
+ "fullWidth": true,
22816
+ "action": {
22817
+ "actionId": "tier5.himiStoreProduct.addToCart"
22818
+ },
22819
+ "disabledPath": "$service:himiStoreProduct.addDisabled"
21327
22820
  }
21328
22821
  },
21329
22822
  "modifiers": {
22823
+ "cornerRadius": 8,
22824
+ "pressFeedback": "scale",
22825
+ "haptic": "medium",
22826
+ "height": 48,
22827
+ "hiddenPath": "$service:himiStoreProduct.cartHidden",
21330
22828
  "weight": 1
21331
22829
  }
21332
22830
  },
21333
22831
  {
21334
- "id": "himi_product.view_cart",
22832
+ "id": "himi_product.adding",
21335
22833
  "body": {
21336
22834
  "package": "himalaya",
21337
- "type": "Button",
22835
+ "type": "ZStack",
21338
22836
  "props": {
21339
- "title": "View cart",
21340
- "style": "tertiary",
21341
- "action": {
21342
- "actionId": "himi.open",
21343
- "params": {
21344
- "screenId": "himi_cart"
22837
+ "alignment": "center",
22838
+ "children": [
22839
+ {
22840
+ "id": "",
22841
+ "body": {
22842
+ "package": "himalaya",
22843
+ "type": "ActivityIndicator",
22844
+ "props": {
22845
+ "indeterminate": true,
22846
+ "size": 18,
22847
+ "tint": "textOnAccent"
22848
+ }
22849
+ }
21345
22850
  }
21346
- }
22851
+ ]
21347
22852
  }
22853
+ },
22854
+ "modifiers": {
22855
+ "weight": 1,
22856
+ "height": 48,
22857
+ "background": {
22858
+ "token": "accentPrimary"
22859
+ },
22860
+ "cornerRadius": 8,
22861
+ "accessibilityLabel": "Adding to cart…",
22862
+ "hiddenPath": "$service:himiStoreProduct.notAdding"
21348
22863
  }
21349
22864
  }
21350
22865
  ]
21351
22866
  }
22867
+ }
22868
+ },
22869
+ {
22870
+ "id": "himi_product.buy",
22871
+ "body": {
22872
+ "package": "himalaya",
22873
+ "type": "Button",
22874
+ "props": {
22875
+ "title": "$service:himiStoreProduct.buyLabel",
22876
+ "style": "primary",
22877
+ "fullWidth": true,
22878
+ "disabledPath": "$service:himiStoreProduct.buyDisabled",
22879
+ "action": {
22880
+ "actionId": "tier5.himiStoreProduct.buy"
22881
+ }
22882
+ }
21352
22883
  },
21353
22884
  "modifiers": {
21354
- "background": {
21355
- "token": "surfaceSecondary"
21356
- },
21357
- "cornerRadius": 8,
21358
- "padding": {
21359
- "leading": 12,
21360
- "trailing": 8,
21361
- "top": 6,
21362
- "bottom": 6
21363
- },
21364
- "fillMaxWidth": true,
21365
- "hiddenPath": "$service:himiStoreProduct.notAdded"
22885
+ "hiddenPath": "$service:himiStoreProduct.buyHidden"
22886
+ }
22887
+ },
22888
+ {
22889
+ "id": "himi_product.buy_note",
22890
+ "body": {
22891
+ "package": "himalaya",
22892
+ "type": "Text",
22893
+ "props": {
22894
+ "text": "$service:himiStoreProduct.buyNote",
22895
+ "style": "footnote",
22896
+ "color": "textSecondary",
22897
+ "collapseWhenEmpty": true
22898
+ }
22899
+ },
22900
+ "modifiers": {
22901
+ "hiddenPath": "$service:himiStoreProduct.buyHidden"
22902
+ }
22903
+ },
22904
+ {
22905
+ "id": "himi_product.purchased",
22906
+ "body": {
22907
+ "package": "himalaya",
22908
+ "type": "Text",
22909
+ "props": {
22910
+ "text": "$service:himiStoreProduct.purchasedNote",
22911
+ "style": "footnote",
22912
+ "collapseWhenEmpty": true
22913
+ }
21366
22914
  }
21367
22915
  }
21368
22916
  ]
@@ -21378,11 +22926,19 @@ const TEMPLATED: { pattern: string; display: string; liveSeed?: LiveSeed; static
21378
22926
  "top": 8,
21379
22927
  "bottom": 8
21380
22928
  },
21381
- "hiddenPath": "$service:himiStoreProduct.isLoading"
22929
+ "hiddenPath": "$service:himiStoreProduct.hideBar"
21382
22930
  }
21383
22931
  },
21384
22932
  "topBar": {
21385
22933
  "actions": [
22934
+ {
22935
+ "id": "share",
22936
+ "icon": "share",
22937
+ "accessibilityLabel": "Share",
22938
+ "onTap": {
22939
+ "actionId": "tier5.himiStoreProduct.share"
22940
+ }
22941
+ },
21386
22942
  {
21387
22943
  "id": "cart",
21388
22944
  "icon": "cart",