@wix/himalaya-cli 0.1320.0 → 0.1322.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 (64) hide show
  1. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/dev-server/src/app-config.d.ts +1 -0
  2. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/dev-server/src/app-module.d.ts +3 -0
  3. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/sdk/biometrics/src/index.d.ts +11 -1
  4. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/sdk/iap/src/catalog-pricing-contract.d.ts +4 -0
  5. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/sdk/iap/src/host-session.d.ts +4 -0
  6. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/sdk/iap/src/index.d.ts +13 -0
  7. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/sdk/iap/src/mapping-source.d.ts +8 -3
  8. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/sdk/iap/src/wix-payments.d.ts +5 -4
  9. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/sdk/sdk-types/src/capabilities.generated.d.ts +1 -1
  10. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/sdk/webview/src/index.d.ts +4 -0
  11. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/sdk/webview-page/src/index.d.ts +16 -1
  12. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/ts/src/tokens.d.ts +9 -1
  13. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/flows/iap-checkout/src/apple-iap-contract.d.ts +5 -0
  14. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/flows/iap-checkout/src/apple-iap-core.d.ts +3 -1
  15. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/flows/iap-checkout/src/checkout-source.d.ts +4 -0
  16. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/flows/iap-checkout/src/commerce-contract.d.ts +83 -0
  17. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/flows/iap-checkout/src/commerce-core.d.ts +36 -0
  18. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/flows/iap-checkout/src/commerce.d.ts +8 -0
  19. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/flows/iap-checkout/src/index.d.ts +3 -0
  20. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/flows/iap-checkout/src/purchase-fields.d.ts +4 -0
  21. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk/stores-v1/src/display.d.ts +21 -0
  22. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/audio-record.mjs +1 -1
  23. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/calendar.mjs +1 -1
  24. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/calls.mjs +1 -1
  25. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/contacts.mjs +1 -1
  26. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/iap-checkout.mjs +1205 -71
  27. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/iap.mjs +125 -13
  28. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/location.mjs +1 -1
  29. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/motion.mjs +1 -1
  30. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/photos.mjs +1 -1
  31. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/sdk-types.mjs +1 -1
  32. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/sdui.mjs +1 -0
  33. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/tasks.mjs +1 -1
  34. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/webview-page.mjs +78 -0
  35. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/webview.mjs +16 -0
  36. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/wix-stores.mjs +13 -4
  37. package/dist/cli.mjs +87 -23
  38. package/dist/preview-assets.generated.bin +0 -0
  39. package/guides/getting-started.md +4 -2
  40. package/guides/himi-skill.md +4 -2
  41. package/guides/iap-pricing.md +33 -26
  42. package/guides/index.json +2 -1
  43. package/guides/sdk-reference.json +50 -8
  44. package/guides/tokens.md +22 -1
  45. package/guides/web-page-native-sdk.md +154 -33
  46. package/guides/webview-page-sdk.md +11 -0
  47. package/package.json +2 -2
  48. package/templates/beauty-salon/dev/index.ts +492 -0
  49. package/templates/beauty-salon/tier5-src/wix-spaces-collection-detail/index.ts +146 -30
  50. package/templates/branded-lite/dev/index.ts +533 -0
  51. package/templates/branded-lite/tier5-src/_shared/iap-worker.ts +21 -44
  52. package/templates/branded-lite/tier5-src/himi-branded-lite-program/index.ts +77 -47
  53. package/templates/branded-lite/tier5-src/himi-branded-lite-programs/index.ts +24 -38
  54. package/templates/branded-lite/tier5-src/wix-spaces-collection-detail/index.ts +146 -30
  55. package/templates/gym-fitness/dev/index.ts +492 -0
  56. package/templates/gym-fitness/tier5-src/wix-spaces-collection-detail/index.ts +146 -30
  57. package/templates/portfolio-creative/dev/index.ts +492 -0
  58. package/templates/portfolio-creative/tier5-src/wix-spaces-collection-detail/index.ts +146 -30
  59. package/templates/retail-store/dev/index.ts +492 -0
  60. package/templates/retail-store/tier5-src/wix-spaces-collection-detail/index.ts +146 -30
  61. package/templates/yoga-studio/dev/index.ts +41 -0
  62. package/templates/yoga-studio/tier5-src/_shared/iap-worker.ts +21 -44
  63. package/templates/yoga-studio/tier5-src/himi-branded-lite-program/index.ts +77 -47
  64. package/templates/yoga-studio/tier5-src/himi-branded-lite-programs/index.ts +24 -38
@@ -7450,6 +7450,498 @@ const SCREENS = runtimeSetting({
7450
7450
  "hiddenPath": "$service:spacesCollectionDetail.noEntity"
7451
7451
  }
7452
7452
  },
7453
+ {
7454
+ "id": "",
7455
+ "body": {
7456
+ "package": "himalaya",
7457
+ "type": "VStack",
7458
+ "props": {
7459
+ "spacing": 10,
7460
+ "children": [
7461
+ {
7462
+ "id": "himi_collection.skeleton_1",
7463
+ "body": {
7464
+ "package": "himalaya",
7465
+ "type": "ZStack",
7466
+ "props": {
7467
+ "alignment": "center",
7468
+ "children": []
7469
+ }
7470
+ },
7471
+ "modifiers": {
7472
+ "height": 96,
7473
+ "background": {
7474
+ "token": "surfaceSecondary"
7475
+ },
7476
+ "border": {
7477
+ "width": 1,
7478
+ "color": {
7479
+ "token": "border"
7480
+ }
7481
+ },
7482
+ "cornerRadius": 8
7483
+ }
7484
+ },
7485
+ {
7486
+ "id": "himi_collection.skeleton_2",
7487
+ "body": {
7488
+ "package": "himalaya",
7489
+ "type": "ZStack",
7490
+ "props": {
7491
+ "alignment": "center",
7492
+ "children": []
7493
+ }
7494
+ },
7495
+ "modifiers": {
7496
+ "height": 96,
7497
+ "background": {
7498
+ "token": "surfaceSecondary"
7499
+ },
7500
+ "border": {
7501
+ "width": 1,
7502
+ "color": {
7503
+ "token": "border"
7504
+ }
7505
+ },
7506
+ "cornerRadius": 8
7507
+ }
7508
+ },
7509
+ {
7510
+ "id": "himi_collection.skeleton_3",
7511
+ "body": {
7512
+ "package": "himalaya",
7513
+ "type": "ZStack",
7514
+ "props": {
7515
+ "alignment": "center",
7516
+ "children": []
7517
+ }
7518
+ },
7519
+ "modifiers": {
7520
+ "height": 96,
7521
+ "background": {
7522
+ "token": "surfaceSecondary"
7523
+ },
7524
+ "border": {
7525
+ "width": 1,
7526
+ "color": {
7527
+ "token": "border"
7528
+ }
7529
+ },
7530
+ "cornerRadius": 8
7531
+ }
7532
+ }
7533
+ ]
7534
+ }
7535
+ },
7536
+ "modifiers": {
7537
+ "hiddenPath": "$service:spacesCollectionDetail.hideProductsLoading"
7538
+ }
7539
+ },
7540
+ {
7541
+ "id": "himi_collection.products_retry.block",
7542
+ "body": {
7543
+ "package": "himalaya",
7544
+ "type": "VStack",
7545
+ "props": {
7546
+ "spacing": 12,
7547
+ "alignment": "leading",
7548
+ "children": [
7549
+ {
7550
+ "id": "",
7551
+ "body": {
7552
+ "package": "himalaya",
7553
+ "type": "HStack",
7554
+ "props": {
7555
+ "spacing": 10,
7556
+ "children": [
7557
+ {
7558
+ "id": "",
7559
+ "body": {
7560
+ "package": "himalaya",
7561
+ "type": "Icon",
7562
+ "props": {
7563
+ "name": "warning",
7564
+ "size": 18,
7565
+ "tint": "accentPrimary"
7566
+ }
7567
+ },
7568
+ "modifiers": {
7569
+ "accessibilityRole": "decorative"
7570
+ }
7571
+ },
7572
+ {
7573
+ "id": "",
7574
+ "body": {
7575
+ "package": "himalaya",
7576
+ "type": "Text",
7577
+ "props": {
7578
+ "text": "Something did not load.",
7579
+ "style": "bodyEmphasis"
7580
+ }
7581
+ }
7582
+ }
7583
+ ]
7584
+ }
7585
+ }
7586
+ },
7587
+ {
7588
+ "id": "",
7589
+ "body": {
7590
+ "package": "himalaya",
7591
+ "type": "Text",
7592
+ "props": {
7593
+ "text": "Try again when the connection settles.",
7594
+ "style": "body",
7595
+ "color": "textSecondary"
7596
+ }
7597
+ }
7598
+ },
7599
+ {
7600
+ "id": "himi_collection.products_retry",
7601
+ "body": {
7602
+ "package": "himalaya",
7603
+ "type": "Button",
7604
+ "props": {
7605
+ "title": "Try again",
7606
+ "style": "secondary",
7607
+ "action": {
7608
+ "actionId": "tier5.spacesCollectionDetail.retryProducts"
7609
+ }
7610
+ }
7611
+ }
7612
+ }
7613
+ ]
7614
+ }
7615
+ },
7616
+ "modifiers": {
7617
+ "background": {
7618
+ "token": "surfaceElevated"
7619
+ },
7620
+ "border": {
7621
+ "width": 1,
7622
+ "color": {
7623
+ "token": "border"
7624
+ }
7625
+ },
7626
+ "cornerRadius": 8,
7627
+ "padding": {
7628
+ "leading": 14,
7629
+ "trailing": 14,
7630
+ "top": 14,
7631
+ "bottom": 14
7632
+ },
7633
+ "hiddenPath": "$service:spacesCollectionDetail.productsNotErrored"
7634
+ }
7635
+ },
7636
+ {
7637
+ "id": "himi_collection.products",
7638
+ "body": {
7639
+ "package": "himalaya",
7640
+ "type": "LazyList",
7641
+ "props": {
7642
+ "spacing": 10,
7643
+ "itemsPath": "$service:spacesCollectionDetail.products",
7644
+ "items": [
7645
+ {
7646
+ "id": "himi_collection.row",
7647
+ "body": {
7648
+ "package": "himalaya",
7649
+ "type": "VStack",
7650
+ "props": {
7651
+ "spacing": 9,
7652
+ "alignment": "leading",
7653
+ "children": [
7654
+ {
7655
+ "id": "",
7656
+ "body": {
7657
+ "package": "himalaya",
7658
+ "type": "Image",
7659
+ "props": {
7660
+ "url": "$item.image",
7661
+ "fillWidth": true,
7662
+ "height": 168,
7663
+ "contentMode": "fill",
7664
+ "contentDescription": "$item.name"
7665
+ }
7666
+ },
7667
+ "modifiers": {
7668
+ "cornerRadius": 8,
7669
+ "fillMaxWidth": true,
7670
+ "hiddenPath": "$item.noImage"
7671
+ }
7672
+ },
7673
+ {
7674
+ "id": "himi_collection.row.monogram",
7675
+ "body": {
7676
+ "package": "himalaya",
7677
+ "type": "ZStack",
7678
+ "props": {
7679
+ "alignment": "center",
7680
+ "children": [
7681
+ {
7682
+ "id": "",
7683
+ "body": {
7684
+ "package": "himalaya",
7685
+ "type": "Text",
7686
+ "props": {
7687
+ "text": "$item.initial",
7688
+ "style": "display",
7689
+ "color": "textOnAccent",
7690
+ "maxLines": 1
7691
+ }
7692
+ }
7693
+ }
7694
+ ]
7695
+ }
7696
+ },
7697
+ "modifiers": {
7698
+ "fillMaxWidth": true,
7699
+ "height": 168,
7700
+ "background": {
7701
+ "token": "accentPrimary"
7702
+ },
7703
+ "cornerRadius": 8,
7704
+ "hiddenPath": "$item.hasImage"
7705
+ }
7706
+ },
7707
+ {
7708
+ "id": "",
7709
+ "body": {
7710
+ "package": "himalaya",
7711
+ "type": "Text",
7712
+ "props": {
7713
+ "text": "$item.name",
7714
+ "style": "bodyEmphasis",
7715
+ "maxLines": 2
7716
+ }
7717
+ }
7718
+ },
7719
+ {
7720
+ "id": "",
7721
+ "body": {
7722
+ "package": "himalaya",
7723
+ "type": "Text",
7724
+ "props": {
7725
+ "text": "$item.subtitle",
7726
+ "style": "footnote",
7727
+ "color": "accentPrimary",
7728
+ "maxLines": 1,
7729
+ "collapseWhenEmpty": true
7730
+ }
7731
+ }
7732
+ }
7733
+ ]
7734
+ }
7735
+ },
7736
+ "modifiers": {
7737
+ "background": {
7738
+ "token": "surfaceElevated"
7739
+ },
7740
+ "border": {
7741
+ "width": 1,
7742
+ "color": {
7743
+ "token": "border"
7744
+ }
7745
+ },
7746
+ "cornerRadius": 8,
7747
+ "padding": {
7748
+ "leading": 12,
7749
+ "trailing": 12,
7750
+ "top": 12,
7751
+ "bottom": 12
7752
+ },
7753
+ "onTap": {
7754
+ "actionId": "himi.open",
7755
+ "params": {
7756
+ "screenId": "$item.detailScreenId",
7757
+ "id": "$item.id"
7758
+ }
7759
+ },
7760
+ "pressFeedback": "scale",
7761
+ "haptic": "light",
7762
+ "accessibilityLabel": "$item.name"
7763
+ }
7764
+ }
7765
+ ],
7766
+ "onPullToRefresh": {
7767
+ "actionId": "tier5.spacesCollectionDetail.load"
7768
+ },
7769
+ "pagination": {
7770
+ "cursor": "$service:spacesCollectionDetail.productsCursor",
7771
+ "onLoadMore": {
7772
+ "actionId": "tier5.spacesCollectionDetail.loadMoreProducts"
7773
+ },
7774
+ "pageSize": 50
7775
+ }
7776
+ }
7777
+ },
7778
+ "modifiers": {
7779
+ "hiddenPath": "$service:spacesCollectionDetail.hideProducts"
7780
+ }
7781
+ },
7782
+ {
7783
+ "id": "himi_collection.products_more_retry.block",
7784
+ "body": {
7785
+ "package": "himalaya",
7786
+ "type": "VStack",
7787
+ "props": {
7788
+ "spacing": 12,
7789
+ "alignment": "leading",
7790
+ "children": [
7791
+ {
7792
+ "id": "",
7793
+ "body": {
7794
+ "package": "himalaya",
7795
+ "type": "HStack",
7796
+ "props": {
7797
+ "spacing": 10,
7798
+ "children": [
7799
+ {
7800
+ "id": "",
7801
+ "body": {
7802
+ "package": "himalaya",
7803
+ "type": "Icon",
7804
+ "props": {
7805
+ "name": "warning",
7806
+ "size": 18,
7807
+ "tint": "accentPrimary"
7808
+ }
7809
+ },
7810
+ "modifiers": {
7811
+ "accessibilityRole": "decorative"
7812
+ }
7813
+ },
7814
+ {
7815
+ "id": "",
7816
+ "body": {
7817
+ "package": "himalaya",
7818
+ "type": "Text",
7819
+ "props": {
7820
+ "text": "Something did not load.",
7821
+ "style": "bodyEmphasis"
7822
+ }
7823
+ }
7824
+ }
7825
+ ]
7826
+ }
7827
+ }
7828
+ },
7829
+ {
7830
+ "id": "",
7831
+ "body": {
7832
+ "package": "himalaya",
7833
+ "type": "Text",
7834
+ "props": {
7835
+ "text": "Try again when the connection settles.",
7836
+ "style": "body",
7837
+ "color": "textSecondary"
7838
+ }
7839
+ }
7840
+ },
7841
+ {
7842
+ "id": "himi_collection.products_more_retry",
7843
+ "body": {
7844
+ "package": "himalaya",
7845
+ "type": "Button",
7846
+ "props": {
7847
+ "title": "Try again",
7848
+ "style": "secondary",
7849
+ "action": {
7850
+ "actionId": "tier5.spacesCollectionDetail.retryProducts"
7851
+ }
7852
+ }
7853
+ }
7854
+ }
7855
+ ]
7856
+ }
7857
+ },
7858
+ "modifiers": {
7859
+ "background": {
7860
+ "token": "surfaceElevated"
7861
+ },
7862
+ "border": {
7863
+ "width": 1,
7864
+ "color": {
7865
+ "token": "border"
7866
+ }
7867
+ },
7868
+ "cornerRadius": 8,
7869
+ "padding": {
7870
+ "leading": 14,
7871
+ "trailing": 14,
7872
+ "top": 14,
7873
+ "bottom": 14
7874
+ },
7875
+ "hiddenPath": "$service:spacesCollectionDetail.productsNoPageError"
7876
+ }
7877
+ },
7878
+ {
7879
+ "id": "",
7880
+ "body": {
7881
+ "package": "himalaya",
7882
+ "type": "VStack",
7883
+ "props": {
7884
+ "spacing": 12,
7885
+ "alignment": "center",
7886
+ "children": [
7887
+ {
7888
+ "id": "",
7889
+ "body": {
7890
+ "package": "himalaya",
7891
+ "type": "Icon",
7892
+ "props": {
7893
+ "name": "bag",
7894
+ "size": 34,
7895
+ "tint": "textTertiary"
7896
+ }
7897
+ },
7898
+ "modifiers": {
7899
+ "accessibilityRole": "decorative"
7900
+ }
7901
+ },
7902
+ {
7903
+ "id": "",
7904
+ "body": {
7905
+ "package": "himalaya",
7906
+ "type": "Text",
7907
+ "props": {
7908
+ "text": "No products in this category yet.",
7909
+ "style": "bodyEmphasis",
7910
+ "color": "textSecondary",
7911
+ "collapseWhenEmpty": true
7912
+ }
7913
+ }
7914
+ },
7915
+ {
7916
+ "id": "himi_collection.products_empty.cta",
7917
+ "body": {
7918
+ "package": "himalaya",
7919
+ "type": "Button",
7920
+ "props": {
7921
+ "title": "Back to categories",
7922
+ "style": "secondary",
7923
+ "action": {
7924
+ "actionId": "himi.open",
7925
+ "params": {
7926
+ "screenId": "himi_collections"
7927
+ }
7928
+ }
7929
+ }
7930
+ }
7931
+ }
7932
+ ]
7933
+ }
7934
+ },
7935
+ "modifiers": {
7936
+ "padding": {
7937
+ "leading": 24,
7938
+ "trailing": 24,
7939
+ "top": 24,
7940
+ "bottom": 24
7941
+ },
7942
+ "hiddenPath": "$service:spacesCollectionDetail.noEmpty"
7943
+ }
7944
+ },
7453
7945
  {
7454
7946
  "id": "",
7455
7947
  "body": {