@wix/himalaya-cli 0.1321.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 (21) hide show
  1. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/sdk/webview/src/index.d.ts +4 -0
  2. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/sdk/webview-page/src/index.d.ts +16 -1
  3. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk/stores-v1/src/display.d.ts +21 -0
  4. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/webview-page.mjs +78 -0
  5. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/webview.mjs +16 -0
  6. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/wix-stores.mjs +13 -4
  7. package/dist/cli.mjs +25 -0
  8. package/guides/sdk-reference.json +33 -3
  9. package/guides/web-page-native-sdk.md +154 -33
  10. package/guides/webview-page-sdk.md +11 -0
  11. package/package.json +2 -2
  12. package/templates/beauty-salon/dev/index.ts +492 -0
  13. package/templates/beauty-salon/tier5-src/wix-spaces-collection-detail/index.ts +146 -30
  14. package/templates/branded-lite/dev/index.ts +492 -0
  15. package/templates/branded-lite/tier5-src/wix-spaces-collection-detail/index.ts +146 -30
  16. package/templates/gym-fitness/dev/index.ts +492 -0
  17. package/templates/gym-fitness/tier5-src/wix-spaces-collection-detail/index.ts +146 -30
  18. package/templates/portfolio-creative/dev/index.ts +492 -0
  19. package/templates/portfolio-creative/tier5-src/wix-spaces-collection-detail/index.ts +146 -30
  20. package/templates/retail-store/dev/index.ts +492 -0
  21. package/templates/retail-store/tier5-src/wix-spaces-collection-detail/index.ts +146 -30
@@ -9655,6 +9655,498 @@ const SCREENS = runtimeSetting({
9655
9655
  "hiddenPath": "$service:spacesCollectionDetail.noEntity"
9656
9656
  }
9657
9657
  },
9658
+ {
9659
+ "id": "",
9660
+ "body": {
9661
+ "package": "himalaya",
9662
+ "type": "VStack",
9663
+ "props": {
9664
+ "spacing": 10,
9665
+ "children": [
9666
+ {
9667
+ "id": "himi_collection.skeleton_1",
9668
+ "body": {
9669
+ "package": "himalaya",
9670
+ "type": "ZStack",
9671
+ "props": {
9672
+ "alignment": "center",
9673
+ "children": []
9674
+ }
9675
+ },
9676
+ "modifiers": {
9677
+ "height": 96,
9678
+ "background": {
9679
+ "token": "surfaceSecondary"
9680
+ },
9681
+ "border": {
9682
+ "width": 1,
9683
+ "color": {
9684
+ "token": "border"
9685
+ }
9686
+ },
9687
+ "cornerRadius": 8
9688
+ }
9689
+ },
9690
+ {
9691
+ "id": "himi_collection.skeleton_2",
9692
+ "body": {
9693
+ "package": "himalaya",
9694
+ "type": "ZStack",
9695
+ "props": {
9696
+ "alignment": "center",
9697
+ "children": []
9698
+ }
9699
+ },
9700
+ "modifiers": {
9701
+ "height": 96,
9702
+ "background": {
9703
+ "token": "surfaceSecondary"
9704
+ },
9705
+ "border": {
9706
+ "width": 1,
9707
+ "color": {
9708
+ "token": "border"
9709
+ }
9710
+ },
9711
+ "cornerRadius": 8
9712
+ }
9713
+ },
9714
+ {
9715
+ "id": "himi_collection.skeleton_3",
9716
+ "body": {
9717
+ "package": "himalaya",
9718
+ "type": "ZStack",
9719
+ "props": {
9720
+ "alignment": "center",
9721
+ "children": []
9722
+ }
9723
+ },
9724
+ "modifiers": {
9725
+ "height": 96,
9726
+ "background": {
9727
+ "token": "surfaceSecondary"
9728
+ },
9729
+ "border": {
9730
+ "width": 1,
9731
+ "color": {
9732
+ "token": "border"
9733
+ }
9734
+ },
9735
+ "cornerRadius": 8
9736
+ }
9737
+ }
9738
+ ]
9739
+ }
9740
+ },
9741
+ "modifiers": {
9742
+ "hiddenPath": "$service:spacesCollectionDetail.hideProductsLoading"
9743
+ }
9744
+ },
9745
+ {
9746
+ "id": "himi_collection.products_retry.block",
9747
+ "body": {
9748
+ "package": "himalaya",
9749
+ "type": "VStack",
9750
+ "props": {
9751
+ "spacing": 12,
9752
+ "alignment": "leading",
9753
+ "children": [
9754
+ {
9755
+ "id": "",
9756
+ "body": {
9757
+ "package": "himalaya",
9758
+ "type": "HStack",
9759
+ "props": {
9760
+ "spacing": 10,
9761
+ "children": [
9762
+ {
9763
+ "id": "",
9764
+ "body": {
9765
+ "package": "himalaya",
9766
+ "type": "Icon",
9767
+ "props": {
9768
+ "name": "warning",
9769
+ "size": 18,
9770
+ "tint": "accentPrimary"
9771
+ }
9772
+ },
9773
+ "modifiers": {
9774
+ "accessibilityRole": "decorative"
9775
+ }
9776
+ },
9777
+ {
9778
+ "id": "",
9779
+ "body": {
9780
+ "package": "himalaya",
9781
+ "type": "Text",
9782
+ "props": {
9783
+ "text": "Something did not load.",
9784
+ "style": "bodyEmphasis"
9785
+ }
9786
+ }
9787
+ }
9788
+ ]
9789
+ }
9790
+ }
9791
+ },
9792
+ {
9793
+ "id": "",
9794
+ "body": {
9795
+ "package": "himalaya",
9796
+ "type": "Text",
9797
+ "props": {
9798
+ "text": "Try again when the connection settles.",
9799
+ "style": "body",
9800
+ "color": "textSecondary"
9801
+ }
9802
+ }
9803
+ },
9804
+ {
9805
+ "id": "himi_collection.products_retry",
9806
+ "body": {
9807
+ "package": "himalaya",
9808
+ "type": "Button",
9809
+ "props": {
9810
+ "title": "Try again",
9811
+ "style": "secondary",
9812
+ "action": {
9813
+ "actionId": "tier5.spacesCollectionDetail.retryProducts"
9814
+ }
9815
+ }
9816
+ }
9817
+ }
9818
+ ]
9819
+ }
9820
+ },
9821
+ "modifiers": {
9822
+ "background": {
9823
+ "token": "surfaceElevated"
9824
+ },
9825
+ "border": {
9826
+ "width": 1,
9827
+ "color": {
9828
+ "token": "border"
9829
+ }
9830
+ },
9831
+ "cornerRadius": 8,
9832
+ "padding": {
9833
+ "leading": 14,
9834
+ "trailing": 14,
9835
+ "top": 14,
9836
+ "bottom": 14
9837
+ },
9838
+ "hiddenPath": "$service:spacesCollectionDetail.productsNotErrored"
9839
+ }
9840
+ },
9841
+ {
9842
+ "id": "himi_collection.products",
9843
+ "body": {
9844
+ "package": "himalaya",
9845
+ "type": "LazyList",
9846
+ "props": {
9847
+ "spacing": 10,
9848
+ "itemsPath": "$service:spacesCollectionDetail.products",
9849
+ "items": [
9850
+ {
9851
+ "id": "himi_collection.row",
9852
+ "body": {
9853
+ "package": "himalaya",
9854
+ "type": "VStack",
9855
+ "props": {
9856
+ "spacing": 9,
9857
+ "alignment": "leading",
9858
+ "children": [
9859
+ {
9860
+ "id": "",
9861
+ "body": {
9862
+ "package": "himalaya",
9863
+ "type": "Image",
9864
+ "props": {
9865
+ "url": "$item.image",
9866
+ "fillWidth": true,
9867
+ "height": 168,
9868
+ "contentMode": "fill",
9869
+ "contentDescription": "$item.name"
9870
+ }
9871
+ },
9872
+ "modifiers": {
9873
+ "cornerRadius": 8,
9874
+ "fillMaxWidth": true,
9875
+ "hiddenPath": "$item.noImage"
9876
+ }
9877
+ },
9878
+ {
9879
+ "id": "himi_collection.row.monogram",
9880
+ "body": {
9881
+ "package": "himalaya",
9882
+ "type": "ZStack",
9883
+ "props": {
9884
+ "alignment": "center",
9885
+ "children": [
9886
+ {
9887
+ "id": "",
9888
+ "body": {
9889
+ "package": "himalaya",
9890
+ "type": "Text",
9891
+ "props": {
9892
+ "text": "$item.initial",
9893
+ "style": "display",
9894
+ "color": "textOnAccent",
9895
+ "maxLines": 1
9896
+ }
9897
+ }
9898
+ }
9899
+ ]
9900
+ }
9901
+ },
9902
+ "modifiers": {
9903
+ "fillMaxWidth": true,
9904
+ "height": 168,
9905
+ "background": {
9906
+ "token": "accentPrimary"
9907
+ },
9908
+ "cornerRadius": 8,
9909
+ "hiddenPath": "$item.hasImage"
9910
+ }
9911
+ },
9912
+ {
9913
+ "id": "",
9914
+ "body": {
9915
+ "package": "himalaya",
9916
+ "type": "Text",
9917
+ "props": {
9918
+ "text": "$item.name",
9919
+ "style": "bodyEmphasis",
9920
+ "maxLines": 2
9921
+ }
9922
+ }
9923
+ },
9924
+ {
9925
+ "id": "",
9926
+ "body": {
9927
+ "package": "himalaya",
9928
+ "type": "Text",
9929
+ "props": {
9930
+ "text": "$item.subtitle",
9931
+ "style": "footnote",
9932
+ "color": "accentPrimary",
9933
+ "maxLines": 1,
9934
+ "collapseWhenEmpty": true
9935
+ }
9936
+ }
9937
+ }
9938
+ ]
9939
+ }
9940
+ },
9941
+ "modifiers": {
9942
+ "background": {
9943
+ "token": "surfaceElevated"
9944
+ },
9945
+ "border": {
9946
+ "width": 1,
9947
+ "color": {
9948
+ "token": "border"
9949
+ }
9950
+ },
9951
+ "cornerRadius": 8,
9952
+ "padding": {
9953
+ "leading": 12,
9954
+ "trailing": 12,
9955
+ "top": 12,
9956
+ "bottom": 12
9957
+ },
9958
+ "onTap": {
9959
+ "actionId": "himi.open",
9960
+ "params": {
9961
+ "screenId": "$item.detailScreenId",
9962
+ "id": "$item.id"
9963
+ }
9964
+ },
9965
+ "pressFeedback": "scale",
9966
+ "haptic": "light",
9967
+ "accessibilityLabel": "$item.name"
9968
+ }
9969
+ }
9970
+ ],
9971
+ "onPullToRefresh": {
9972
+ "actionId": "tier5.spacesCollectionDetail.load"
9973
+ },
9974
+ "pagination": {
9975
+ "cursor": "$service:spacesCollectionDetail.productsCursor",
9976
+ "onLoadMore": {
9977
+ "actionId": "tier5.spacesCollectionDetail.loadMoreProducts"
9978
+ },
9979
+ "pageSize": 50
9980
+ }
9981
+ }
9982
+ },
9983
+ "modifiers": {
9984
+ "hiddenPath": "$service:spacesCollectionDetail.hideProducts"
9985
+ }
9986
+ },
9987
+ {
9988
+ "id": "himi_collection.products_more_retry.block",
9989
+ "body": {
9990
+ "package": "himalaya",
9991
+ "type": "VStack",
9992
+ "props": {
9993
+ "spacing": 12,
9994
+ "alignment": "leading",
9995
+ "children": [
9996
+ {
9997
+ "id": "",
9998
+ "body": {
9999
+ "package": "himalaya",
10000
+ "type": "HStack",
10001
+ "props": {
10002
+ "spacing": 10,
10003
+ "children": [
10004
+ {
10005
+ "id": "",
10006
+ "body": {
10007
+ "package": "himalaya",
10008
+ "type": "Icon",
10009
+ "props": {
10010
+ "name": "warning",
10011
+ "size": 18,
10012
+ "tint": "accentPrimary"
10013
+ }
10014
+ },
10015
+ "modifiers": {
10016
+ "accessibilityRole": "decorative"
10017
+ }
10018
+ },
10019
+ {
10020
+ "id": "",
10021
+ "body": {
10022
+ "package": "himalaya",
10023
+ "type": "Text",
10024
+ "props": {
10025
+ "text": "Something did not load.",
10026
+ "style": "bodyEmphasis"
10027
+ }
10028
+ }
10029
+ }
10030
+ ]
10031
+ }
10032
+ }
10033
+ },
10034
+ {
10035
+ "id": "",
10036
+ "body": {
10037
+ "package": "himalaya",
10038
+ "type": "Text",
10039
+ "props": {
10040
+ "text": "Try again when the connection settles.",
10041
+ "style": "body",
10042
+ "color": "textSecondary"
10043
+ }
10044
+ }
10045
+ },
10046
+ {
10047
+ "id": "himi_collection.products_more_retry",
10048
+ "body": {
10049
+ "package": "himalaya",
10050
+ "type": "Button",
10051
+ "props": {
10052
+ "title": "Try again",
10053
+ "style": "secondary",
10054
+ "action": {
10055
+ "actionId": "tier5.spacesCollectionDetail.retryProducts"
10056
+ }
10057
+ }
10058
+ }
10059
+ }
10060
+ ]
10061
+ }
10062
+ },
10063
+ "modifiers": {
10064
+ "background": {
10065
+ "token": "surfaceElevated"
10066
+ },
10067
+ "border": {
10068
+ "width": 1,
10069
+ "color": {
10070
+ "token": "border"
10071
+ }
10072
+ },
10073
+ "cornerRadius": 8,
10074
+ "padding": {
10075
+ "leading": 14,
10076
+ "trailing": 14,
10077
+ "top": 14,
10078
+ "bottom": 14
10079
+ },
10080
+ "hiddenPath": "$service:spacesCollectionDetail.productsNoPageError"
10081
+ }
10082
+ },
10083
+ {
10084
+ "id": "",
10085
+ "body": {
10086
+ "package": "himalaya",
10087
+ "type": "VStack",
10088
+ "props": {
10089
+ "spacing": 12,
10090
+ "alignment": "center",
10091
+ "children": [
10092
+ {
10093
+ "id": "",
10094
+ "body": {
10095
+ "package": "himalaya",
10096
+ "type": "Icon",
10097
+ "props": {
10098
+ "name": "bag",
10099
+ "size": 34,
10100
+ "tint": "textTertiary"
10101
+ }
10102
+ },
10103
+ "modifiers": {
10104
+ "accessibilityRole": "decorative"
10105
+ }
10106
+ },
10107
+ {
10108
+ "id": "",
10109
+ "body": {
10110
+ "package": "himalaya",
10111
+ "type": "Text",
10112
+ "props": {
10113
+ "text": "No products in this category yet.",
10114
+ "style": "bodyEmphasis",
10115
+ "color": "textSecondary",
10116
+ "collapseWhenEmpty": true
10117
+ }
10118
+ }
10119
+ },
10120
+ {
10121
+ "id": "himi_collection.products_empty.cta",
10122
+ "body": {
10123
+ "package": "himalaya",
10124
+ "type": "Button",
10125
+ "props": {
10126
+ "title": "Back to categories",
10127
+ "style": "secondary",
10128
+ "action": {
10129
+ "actionId": "himi.open",
10130
+ "params": {
10131
+ "screenId": "himi_collections"
10132
+ }
10133
+ }
10134
+ }
10135
+ }
10136
+ }
10137
+ ]
10138
+ }
10139
+ },
10140
+ "modifiers": {
10141
+ "padding": {
10142
+ "leading": 24,
10143
+ "trailing": 24,
10144
+ "top": 24,
10145
+ "bottom": 24
10146
+ },
10147
+ "hiddenPath": "$service:spacesCollectionDetail.noEmpty"
10148
+ }
10149
+ },
9658
10150
  {
9659
10151
  "id": "",
9660
10152
  "body": {