@wix/himalaya-cli 0.1579.0 → 0.1581.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 (54) hide show
  1. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/dev-server/src/app-config.d.ts +18 -3
  2. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/dev-server/src/builder.d.ts +3 -0
  3. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/sdk/motion/src/index.d.ts +51 -5
  4. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/sdk/network/src/index.d.ts +39 -0
  5. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/sdk/sdk-types/src/capabilities.generated.d.ts +2 -1
  6. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/sdk/webview-page/src/capabilities.generated.d.ts +2 -0
  7. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/ts/src/define-app.d.ts +1 -1
  8. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/ts/src/schema.d.ts +12 -0
  9. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/ts/src/validator.d.ts +6 -0
  10. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk/media/src/index.d.ts +1 -0
  11. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk/media/src/rendition.d.ts +42 -0
  12. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/audio-record.mjs +1 -0
  13. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/calendar.mjs +1 -0
  14. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/calls.mjs +1 -0
  15. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/contacts.mjs +1 -0
  16. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/core.mjs +1 -0
  17. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/location.mjs +1 -0
  18. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/motion.mjs +23 -2
  19. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/network.mjs +45 -0
  20. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/photos.mjs +1 -0
  21. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/sdk-types.mjs +1 -0
  22. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/sdui.mjs +1 -0
  23. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/tasks.mjs +1 -0
  24. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/wix-media.mjs +78 -0
  25. package/dist/authoring-runtime/node_modules/@wix/himalaya/package.json +4 -0
  26. package/dist/cli.mjs +9144 -7459
  27. package/dist/preview-assets.generated.bin +0 -0
  28. package/dist/quickjs-intl.js +462 -0
  29. package/dist/quickjs-web-globals.js +540 -0
  30. package/dist/quickjs-worker-entry.js +313 -0
  31. package/guides/app-config.md +1 -1
  32. package/guides/component-reference.json +5 -3
  33. package/guides/component-reference.md +10 -2
  34. package/guides/designing-himi-screens.md +24 -0
  35. package/guides/himi-json-output.md +30 -1
  36. package/guides/importable-sdks.md +1 -0
  37. package/guides/one-app-section-mappings.md +4 -5
  38. package/guides/one-app-to-himi-app.md +214 -6
  39. package/guides/one-app-viewer.md +2 -2
  40. package/guides/sdk-reference.json +74 -7
  41. package/guides/tier-5-add-a-screen.md +32 -0
  42. package/guides/web-page-sdk-reference.md +1 -0
  43. package/package.json +3 -2
  44. package/templates/beauty-salon/dev/index.ts +197 -304
  45. package/templates/beauty-salon/tier5-src/himi-store-product/index.ts +44 -13
  46. package/templates/branded-lite/dev/index.ts +197 -304
  47. package/templates/branded-lite/l10n/en.json +2 -2
  48. package/templates/branded-lite/tier5-src/himi-store-product/index.ts +49 -17
  49. package/templates/gym-fitness/dev/index.ts +197 -304
  50. package/templates/gym-fitness/tier5-src/himi-store-product/index.ts +44 -13
  51. package/templates/portfolio-creative/dev/index.ts +197 -304
  52. package/templates/portfolio-creative/tier5-src/himi-store-product/index.ts +44 -13
  53. package/templates/retail-store/dev/index.ts +197 -304
  54. package/templates/retail-store/tier5-src/himi-store-product/index.ts +49 -17
@@ -8015,19 +8015,6 @@ const SCREENS = runtimeSetting({
8015
8015
  }
8016
8016
  }
8017
8017
  },
8018
- {
8019
- "id": "himi_shop.subtitle",
8020
- "body": {
8021
- "package": "himalaya",
8022
- "type": "Text",
8023
- "props": {
8024
- "text": "Take the salon home — products your stylists swear by.",
8025
- "style": "body",
8026
- "color": "textSecondary",
8027
- "collapseWhenEmpty": true
8028
- }
8029
- }
8030
- },
8031
8018
  {
8032
8019
  "id": "himi_shop.search",
8033
8020
  "body": {
@@ -8193,46 +8180,6 @@ const SCREENS = runtimeSetting({
8193
8180
  "bottom": 10
8194
8181
  }
8195
8182
  }
8196
- },
8197
- {
8198
- "id": "himi_shop.refresh",
8199
- "body": {
8200
- "package": "himalaya",
8201
- "type": "HStack",
8202
- "props": {
8203
- "spacing": 4,
8204
- "children": [
8205
- {
8206
- "id": "",
8207
- "body": {
8208
- "package": "himalaya",
8209
- "type": "Icon",
8210
- "props": {
8211
- "name": "refresh",
8212
- "size": 16,
8213
- "tint": "textPrimary"
8214
- }
8215
- },
8216
- "modifiers": {
8217
- "accessibilityRole": "decorative"
8218
- }
8219
- }
8220
- ]
8221
- }
8222
- },
8223
- "modifiers": {
8224
- "onTap": {
8225
- "actionId": "tier5.himiBrandedShop.refresh"
8226
- },
8227
- "accessibilityLabel": "Refresh",
8228
- "accessibilityRole": "button",
8229
- "padding": {
8230
- "leading": 0,
8231
- "trailing": 0,
8232
- "top": 10,
8233
- "bottom": 10
8234
- }
8235
- }
8236
8183
  }
8237
8184
  ]
8238
8185
  }
@@ -8891,7 +8838,17 @@ const SCREENS = runtimeSetting({
8891
8838
  "fillMaxWidth": true
8892
8839
  }
8893
8840
  }
8894
- ]
8841
+ ],
8842
+ "onPullToRefresh": {
8843
+ "actionId": "tier5.himiBrandedShop.refresh"
8844
+ },
8845
+ "pagination": {
8846
+ "cursor": "$service:himiBrandedShop.nextCursor",
8847
+ "onLoadMore": {
8848
+ "actionId": "tier5.himiBrandedShop.loadMore"
8849
+ },
8850
+ "pageSize": 24
8851
+ }
8895
8852
  }
8896
8853
  },
8897
8854
  "modifiers": {
@@ -9324,29 +9281,21 @@ const SCREENS = runtimeSetting({
9324
9281
  "fillMaxWidth": true
9325
9282
  }
9326
9283
  }
9327
- ]
9328
- }
9329
- },
9330
- "modifiers": {
9331
- "hiddenPath": "$service:himiBrandedShop.hideCompact"
9332
- }
9333
- },
9334
- {
9335
- "id": "himi_shop.more",
9336
- "body": {
9337
- "package": "himalaya",
9338
- "type": "Button",
9339
- "props": {
9340
- "title": "Show more products",
9341
- "style": "secondary",
9342
- "fullWidth": true,
9343
- "action": {
9344
- "actionId": "tier5.himiBrandedShop.showMore"
9284
+ ],
9285
+ "onPullToRefresh": {
9286
+ "actionId": "tier5.himiBrandedShop.refresh"
9287
+ },
9288
+ "pagination": {
9289
+ "cursor": "$service:himiBrandedShop.nextCursor",
9290
+ "onLoadMore": {
9291
+ "actionId": "tier5.himiBrandedShop.loadMore"
9292
+ },
9293
+ "pageSize": 24
9345
9294
  }
9346
9295
  }
9347
9296
  },
9348
9297
  "modifiers": {
9349
- "hiddenPath": "$service:himiBrandedShop.noMore"
9298
+ "hiddenPath": "$service:himiBrandedShop.hideCompact"
9350
9299
  }
9351
9300
  }
9352
9301
  ]
@@ -12324,46 +12273,6 @@ const SCREENS = runtimeSetting({
12324
12273
  "bottom": 10
12325
12274
  }
12326
12275
  }
12327
- },
12328
- {
12329
- "id": "himi_collection.refresh",
12330
- "body": {
12331
- "package": "himalaya",
12332
- "type": "HStack",
12333
- "props": {
12334
- "spacing": 4,
12335
- "children": [
12336
- {
12337
- "id": "",
12338
- "body": {
12339
- "package": "himalaya",
12340
- "type": "Icon",
12341
- "props": {
12342
- "name": "refresh",
12343
- "size": 16,
12344
- "tint": "textPrimary"
12345
- }
12346
- },
12347
- "modifiers": {
12348
- "accessibilityRole": "decorative"
12349
- }
12350
- }
12351
- ]
12352
- }
12353
- },
12354
- "modifiers": {
12355
- "onTap": {
12356
- "actionId": "tier5.himiBrandedCategory.load"
12357
- },
12358
- "accessibilityLabel": "Refresh",
12359
- "accessibilityRole": "button",
12360
- "padding": {
12361
- "leading": 0,
12362
- "trailing": 0,
12363
- "top": 10,
12364
- "bottom": 10
12365
- }
12366
- }
12367
12276
  }
12368
12277
  ]
12369
12278
  }
@@ -12941,7 +12850,17 @@ const SCREENS = runtimeSetting({
12941
12850
  "fillMaxWidth": true
12942
12851
  }
12943
12852
  }
12944
- ]
12853
+ ],
12854
+ "onPullToRefresh": {
12855
+ "actionId": "tier5.himiBrandedCategory.load"
12856
+ },
12857
+ "pagination": {
12858
+ "cursor": "$service:himiBrandedCategory.nextCursor",
12859
+ "onLoadMore": {
12860
+ "actionId": "tier5.himiBrandedCategory.loadMore"
12861
+ },
12862
+ "pageSize": 24
12863
+ }
12945
12864
  }
12946
12865
  },
12947
12866
  "modifiers": {
@@ -13387,29 +13306,21 @@ const SCREENS = runtimeSetting({
13387
13306
  "fillMaxWidth": true
13388
13307
  }
13389
13308
  }
13390
- ]
13391
- }
13392
- },
13393
- "modifiers": {
13394
- "hiddenPath": "$service:himiBrandedCategory.hideCompact"
13395
- }
13396
- },
13397
- {
13398
- "id": "himi_collection.more",
13399
- "body": {
13400
- "package": "himalaya",
13401
- "type": "Button",
13402
- "props": {
13403
- "title": "Show more products",
13404
- "style": "secondary",
13405
- "fullWidth": true,
13406
- "action": {
13407
- "actionId": "tier5.himiBrandedCategory.showMore"
13309
+ ],
13310
+ "onPullToRefresh": {
13311
+ "actionId": "tier5.himiBrandedCategory.load"
13312
+ },
13313
+ "pagination": {
13314
+ "cursor": "$service:himiBrandedCategory.nextCursor",
13315
+ "onLoadMore": {
13316
+ "actionId": "tier5.himiBrandedCategory.loadMore"
13317
+ },
13318
+ "pageSize": 24
13408
13319
  }
13409
13320
  }
13410
13321
  },
13411
13322
  "modifiers": {
13412
- "hiddenPath": "$service:himiBrandedCategory.noMore"
13323
+ "hiddenPath": "$service:himiBrandedCategory.hideCompact"
13413
13324
  }
13414
13325
  }
13415
13326
  ]
@@ -33291,7 +33202,7 @@ const TEMPLATED: { pattern: string; display: string; liveSeed?: LiveSeed; static
33291
33202
  "itemsPath": "$service:himiStoreProduct.gallery",
33292
33203
  "items": [
33293
33204
  {
33294
- "id": "",
33205
+ "id": "himi_product.gallery.$item.id",
33295
33206
  "body": {
33296
33207
  "package": "himalaya",
33297
33208
  "type": "Image",
@@ -33300,6 +33211,7 @@ const TEMPLATED: { pattern: string; display: string; liveSeed?: LiveSeed; static
33300
33211
  "fillWidth": true,
33301
33212
  "height": 510,
33302
33213
  "contentMode": "fill",
33214
+ "shape": "rect",
33303
33215
  "contentDescription": "$service:himiStoreProduct.name"
33304
33216
  }
33305
33217
  },
@@ -33307,10 +33219,19 @@ const TEMPLATED: { pattern: string; display: string; liveSeed?: LiveSeed; static
33307
33219
  "fillMaxWidth": true
33308
33220
  }
33309
33221
  }
33310
- ]
33222
+ ],
33223
+ "paged": true,
33224
+ "currentIndexPath": "$service:himiStoreProduct.galleryIndex",
33225
+ "onChange": {
33226
+ "actionId": "tier5.himiStoreProduct.setGalleryIndex"
33227
+ },
33228
+ "liveWindow": 1
33311
33229
  }
33312
33230
  },
33313
33231
  "modifiers": {
33232
+ "height": 534,
33233
+ "fillMaxWidth": true,
33234
+ "accessibilityLabel": "$service:himiStoreProduct.galleryLabel",
33314
33235
  "hiddenPath": "$service:himiStoreProduct.noGallery"
33315
33236
  }
33316
33237
  },
@@ -33324,6 +33245,7 @@ const TEMPLATED: { pattern: string; display: string; liveSeed?: LiveSeed; static
33324
33245
  "fillWidth": true,
33325
33246
  "height": 510,
33326
33247
  "contentMode": "fill",
33248
+ "shape": "rect",
33327
33249
  "contentDescription": "$service:himiStoreProduct.name"
33328
33250
  }
33329
33251
  },
@@ -33571,21 +33493,18 @@ const TEMPLATED: { pattern: string; display: string; liveSeed?: LiveSeed; static
33571
33493
  "id": "",
33572
33494
  "body": {
33573
33495
  "package": "himalaya",
33574
- "type": "Text",
33496
+ "type": "FieldError",
33575
33497
  "props": {
33576
- "text": "$service:himiStoreProduct.opt1Error",
33577
- "style": "footnote",
33578
- "color": "danger"
33498
+ "text": "",
33499
+ "textPath": "$service:himiStoreProduct.opt1Error"
33579
33500
  }
33580
- },
33581
- "modifiers": {
33582
- "hiddenPath": "$service:himiStoreProduct.noOpt1Error"
33583
33501
  }
33584
33502
  }
33585
33503
  ]
33586
33504
  }
33587
33505
  },
33588
33506
  "modifiers": {
33507
+ "scrollIntoViewPath": "$service:himiStoreProduct.opt1ScrollRequest",
33589
33508
  "hiddenPath": "$service:himiStoreProduct.noOpt1"
33590
33509
  }
33591
33510
  },
@@ -33678,21 +33597,18 @@ const TEMPLATED: { pattern: string; display: string; liveSeed?: LiveSeed; static
33678
33597
  "id": "",
33679
33598
  "body": {
33680
33599
  "package": "himalaya",
33681
- "type": "Text",
33600
+ "type": "FieldError",
33682
33601
  "props": {
33683
- "text": "$service:himiStoreProduct.opt2Error",
33684
- "style": "footnote",
33685
- "color": "danger"
33602
+ "text": "",
33603
+ "textPath": "$service:himiStoreProduct.opt2Error"
33686
33604
  }
33687
- },
33688
- "modifiers": {
33689
- "hiddenPath": "$service:himiStoreProduct.noOpt2Error"
33690
33605
  }
33691
33606
  }
33692
33607
  ]
33693
33608
  }
33694
33609
  },
33695
33610
  "modifiers": {
33611
+ "scrollIntoViewPath": "$service:himiStoreProduct.opt2ScrollRequest",
33696
33612
  "hiddenPath": "$service:himiStoreProduct.noOpt2"
33697
33613
  }
33698
33614
  },
@@ -33785,21 +33701,18 @@ const TEMPLATED: { pattern: string; display: string; liveSeed?: LiveSeed; static
33785
33701
  "id": "",
33786
33702
  "body": {
33787
33703
  "package": "himalaya",
33788
- "type": "Text",
33704
+ "type": "FieldError",
33789
33705
  "props": {
33790
- "text": "$service:himiStoreProduct.opt3Error",
33791
- "style": "footnote",
33792
- "color": "danger"
33706
+ "text": "",
33707
+ "textPath": "$service:himiStoreProduct.opt3Error"
33793
33708
  }
33794
- },
33795
- "modifiers": {
33796
- "hiddenPath": "$service:himiStoreProduct.noOpt3Error"
33797
33709
  }
33798
33710
  }
33799
33711
  ]
33800
33712
  }
33801
33713
  },
33802
33714
  "modifiers": {
33715
+ "scrollIntoViewPath": "$service:himiStoreProduct.opt3ScrollRequest",
33803
33716
  "hiddenPath": "$service:himiStoreProduct.noOpt3"
33804
33717
  }
33805
33718
  },
@@ -34571,41 +34484,13 @@ const TEMPLATED: { pattern: string; display: string; liveSeed?: LiveSeed; static
34571
34484
  "id": "__HIMI_ID__"
34572
34485
  },
34573
34486
  "stickyFooter": {
34574
- "id": "himi_product.stickyFooter",
34487
+ "id": "",
34575
34488
  "body": {
34576
34489
  "package": "himalaya",
34577
34490
  "type": "VStack",
34578
34491
  "props": {
34579
- "spacing": 8,
34492
+ "spacing": 0,
34580
34493
  "children": [
34581
- {
34582
- "id": "himi_product.save_hint",
34583
- "body": {
34584
- "package": "himalaya",
34585
- "type": "Banner",
34586
- "props": {
34587
- "title": "$service:himiStoreProduct.saveHint",
34588
- "severity": "warning"
34589
- }
34590
- },
34591
- "modifiers": {
34592
- "hiddenPath": "$service:himiStoreProduct.noSaveHint"
34593
- }
34594
- },
34595
- {
34596
- "id": "himi_product.cart_hint",
34597
- "body": {
34598
- "package": "himalaya",
34599
- "type": "Banner",
34600
- "props": {
34601
- "title": "$service:himiStoreProduct.cartHint",
34602
- "severity": "warning"
34603
- }
34604
- },
34605
- "modifiers": {
34606
- "hiddenPath": "$service:himiStoreProduct.noCartHint"
34607
- }
34608
- },
34609
34494
  {
34610
34495
  "id": "",
34611
34496
  "body": {
@@ -34615,163 +34500,179 @@ const TEMPLATED: { pattern: string; display: string; liveSeed?: LiveSeed; static
34615
34500
  }
34616
34501
  },
34617
34502
  {
34618
- "id": "",
34503
+ "id": "himi_product.stickyFooter",
34619
34504
  "body": {
34620
34505
  "package": "himalaya",
34621
- "type": "HStack",
34506
+ "type": "VStack",
34622
34507
  "props": {
34623
- "spacing": 12,
34508
+ "spacing": 8,
34624
34509
  "children": [
34625
34510
  {
34626
- "id": "himi_product.save",
34511
+ "id": "himi_product.save_hint",
34627
34512
  "body": {
34628
34513
  "package": "himalaya",
34629
- "type": "ZStack",
34514
+ "type": "Banner",
34630
34515
  "props": {
34631
- "alignment": "center",
34516
+ "title": "$service:himiStoreProduct.saveHint",
34517
+ "severity": "warning"
34518
+ }
34519
+ },
34520
+ "modifiers": {
34521
+ "hiddenPath": "$service:himiStoreProduct.noSaveHint"
34522
+ }
34523
+ },
34524
+ {
34525
+ "id": "himi_product.cart_hint",
34526
+ "body": {
34527
+ "package": "himalaya",
34528
+ "type": "Banner",
34529
+ "props": {
34530
+ "title": "$service:himiStoreProduct.cartHint",
34531
+ "severity": "warning"
34532
+ }
34533
+ },
34534
+ "modifiers": {
34535
+ "hiddenPath": "$service:himiStoreProduct.noCartHint"
34536
+ }
34537
+ },
34538
+ {
34539
+ "id": "",
34540
+ "body": {
34541
+ "package": "himalaya",
34542
+ "type": "HStack",
34543
+ "props": {
34544
+ "spacing": 12,
34632
34545
  "children": [
34633
34546
  {
34634
- "id": "",
34547
+ "id": "himi_product.save",
34635
34548
  "body": {
34636
34549
  "package": "himalaya",
34637
- "type": "Icon",
34550
+ "type": "ZStack",
34638
34551
  "props": {
34639
- "name": "$service:himiStoreProduct.saveIcon",
34640
- "size": 22,
34641
- "tint": "textPrimary"
34552
+ "alignment": "center",
34553
+ "children": [
34554
+ {
34555
+ "id": "",
34556
+ "body": {
34557
+ "package": "himalaya",
34558
+ "type": "Icon",
34559
+ "props": {
34560
+ "name": "$service:himiStoreProduct.saveIcon",
34561
+ "size": 22,
34562
+ "tint": "textPrimary"
34563
+ }
34564
+ },
34565
+ "modifiers": {
34566
+ "accessibilityRole": "decorative"
34567
+ }
34568
+ }
34569
+ ]
34642
34570
  }
34643
34571
  },
34644
34572
  "modifiers": {
34645
- "accessibilityRole": "decorative"
34573
+ "width": 48,
34574
+ "height": 48,
34575
+ "cornerRadius": 24,
34576
+ "border": {
34577
+ "width": 1,
34578
+ "color": {
34579
+ "token": "border"
34580
+ }
34581
+ },
34582
+ "onTap": {
34583
+ "actionId": "tier5.himiStoreProduct.toggleSave"
34584
+ },
34585
+ "accessibilityRole": "button",
34586
+ "accessibilityLabel": "$service:himiStoreProduct.saveLabel",
34587
+ "haptic": "light"
34588
+ }
34589
+ },
34590
+ {
34591
+ "id": "himi_product.add_to_cart",
34592
+ "body": {
34593
+ "package": "himalaya",
34594
+ "type": "Button",
34595
+ "props": {
34596
+ "title": "$service:himiStoreProduct.addLabel",
34597
+ "style": "primary",
34598
+ "fullWidth": true,
34599
+ "action": {
34600
+ "actionId": "tier5.himiStoreProduct.addToCart"
34601
+ },
34602
+ "disabledPath": "$service:himiStoreProduct.addDisabled",
34603
+ "loadingPath": "$service:himiStoreProduct.adding"
34604
+ }
34605
+ },
34606
+ "modifiers": {
34607
+ "height": 48,
34608
+ "cornerRadius": 8,
34609
+ "hiddenPath": "$service:himiStoreProduct.cartHidden",
34610
+ "weight": 1
34646
34611
  }
34647
34612
  }
34648
34613
  ]
34649
34614
  }
34650
- },
34651
- "modifiers": {
34652
- "width": 48,
34653
- "height": 48,
34654
- "cornerRadius": 24,
34655
- "border": {
34656
- "width": 1,
34657
- "color": {
34658
- "token": "border"
34659
- }
34660
- },
34661
- "onTap": {
34662
- "actionId": "tier5.himiStoreProduct.toggleSave"
34663
- },
34664
- "accessibilityRole": "button",
34665
- "accessibilityLabel": "$service:himiStoreProduct.saveLabel",
34666
- "haptic": "light"
34667
34615
  }
34668
34616
  },
34669
34617
  {
34670
- "id": "himi_product.add_to_cart",
34618
+ "id": "himi_product.buy",
34671
34619
  "body": {
34672
34620
  "package": "himalaya",
34673
34621
  "type": "Button",
34674
34622
  "props": {
34675
- "title": "Add to cart",
34623
+ "title": "$service:himiStoreProduct.buyLabel",
34676
34624
  "style": "primary",
34677
34625
  "fullWidth": true,
34626
+ "disabledPath": "$service:himiStoreProduct.buyDisabled",
34678
34627
  "action": {
34679
- "actionId": "tier5.himiStoreProduct.addToCart"
34680
- },
34681
- "disabledPath": "$service:himiStoreProduct.addDisabled"
34628
+ "actionId": "tier5.himiStoreProduct.buy"
34629
+ }
34682
34630
  }
34683
34631
  },
34684
34632
  "modifiers": {
34685
- "cornerRadius": 8,
34686
- "pressFeedback": "scale",
34687
- "haptic": "medium",
34688
- "height": 48,
34689
- "hiddenPath": "$service:himiStoreProduct.cartHidden",
34690
- "weight": 1
34633
+ "hiddenPath": "$service:himiStoreProduct.buyHidden"
34691
34634
  }
34692
34635
  },
34693
34636
  {
34694
- "id": "himi_product.adding",
34637
+ "id": "himi_product.buy_note",
34695
34638
  "body": {
34696
34639
  "package": "himalaya",
34697
- "type": "ZStack",
34640
+ "type": "Text",
34698
34641
  "props": {
34699
- "alignment": "center",
34700
- "children": [
34701
- {
34702
- "id": "",
34703
- "body": {
34704
- "package": "himalaya",
34705
- "type": "ActivityIndicator",
34706
- "props": {
34707
- "indeterminate": true,
34708
- "size": 18,
34709
- "tint": "textOnAccent"
34710
- }
34711
- }
34712
- }
34713
- ]
34642
+ "text": "$service:himiStoreProduct.buyNote",
34643
+ "style": "footnote",
34644
+ "color": "textSecondary",
34645
+ "collapseWhenEmpty": true
34714
34646
  }
34715
34647
  },
34716
34648
  "modifiers": {
34717
- "weight": 1,
34718
- "height": 48,
34719
- "background": {
34720
- "token": "accentPrimary"
34721
- },
34722
- "cornerRadius": 8,
34723
- "accessibilityLabel": "Adding to cart…",
34724
- "hiddenPath": "$service:himiStoreProduct.notAdding"
34649
+ "hiddenPath": "$service:himiStoreProduct.buyHidden"
34650
+ }
34651
+ },
34652
+ {
34653
+ "id": "himi_product.purchased",
34654
+ "body": {
34655
+ "package": "himalaya",
34656
+ "type": "Text",
34657
+ "props": {
34658
+ "text": "$service:himiStoreProduct.purchasedNote",
34659
+ "style": "footnote",
34660
+ "collapseWhenEmpty": true
34661
+ }
34725
34662
  }
34726
34663
  }
34727
34664
  ]
34728
34665
  }
34729
- }
34730
- },
34731
- {
34732
- "id": "himi_product.buy",
34733
- "body": {
34734
- "package": "himalaya",
34735
- "type": "Button",
34736
- "props": {
34737
- "title": "$service:himiStoreProduct.buyLabel",
34738
- "style": "primary",
34739
- "fullWidth": true,
34740
- "disabledPath": "$service:himiStoreProduct.buyDisabled",
34741
- "action": {
34742
- "actionId": "tier5.himiStoreProduct.buy"
34743
- }
34744
- }
34745
- },
34746
- "modifiers": {
34747
- "hiddenPath": "$service:himiStoreProduct.buyHidden"
34748
- }
34749
- },
34750
- {
34751
- "id": "himi_product.buy_note",
34752
- "body": {
34753
- "package": "himalaya",
34754
- "type": "Text",
34755
- "props": {
34756
- "text": "$service:himiStoreProduct.buyNote",
34757
- "style": "footnote",
34758
- "color": "textSecondary",
34759
- "collapseWhenEmpty": true
34760
- }
34761
34666
  },
34762
34667
  "modifiers": {
34763
- "hiddenPath": "$service:himiStoreProduct.buyHidden"
34764
- }
34765
- },
34766
- {
34767
- "id": "himi_product.purchased",
34768
- "body": {
34769
- "package": "himalaya",
34770
- "type": "Text",
34771
- "props": {
34772
- "text": "$service:himiStoreProduct.purchasedNote",
34773
- "style": "footnote",
34774
- "collapseWhenEmpty": true
34668
+ "background": {
34669
+ "token": "surfacePrimary"
34670
+ },
34671
+ "padding": {
34672
+ "leading": 16,
34673
+ "trailing": 16,
34674
+ "top": 8,
34675
+ "bottom": 8
34775
34676
  }
34776
34677
  }
34777
34678
  }
@@ -34779,19 +34680,11 @@ const TEMPLATED: { pattern: string; display: string; liveSeed?: LiveSeed; static
34779
34680
  }
34780
34681
  },
34781
34682
  "modifiers": {
34782
- "background": {
34783
- "token": "surfacePrimary"
34784
- },
34785
- "padding": {
34786
- "leading": 16,
34787
- "trailing": 16,
34788
- "top": 8,
34789
- "bottom": 8
34790
- },
34791
34683
  "hiddenPath": "$service:himiStoreProduct.hideBar"
34792
34684
  }
34793
34685
  },
34794
34686
  "topBar": {
34687
+ "style": "transparent",
34795
34688
  "actions": [
34796
34689
  {
34797
34690
  "id": "share",