@wix/himalaya-cli 0.1321.0 → 0.1323.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.
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/sdk/webview/src/index.d.ts +4 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/sdk/webview-page/src/index.d.ts +16 -1
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk/stores-v1/src/display.d.ts +21 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/webview-page.mjs +78 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/webview.mjs +16 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/wix-stores.mjs +13 -4
- package/dist/cli.mjs +44 -20
- package/dist/preview-assets.generated.bin +0 -0
- package/guides/sdk-reference.json +33 -3
- package/guides/web-page-native-sdk.md +154 -33
- package/guides/webview-page-sdk.md +11 -0
- package/package.json +2 -2
- package/templates/beauty-salon/dev/index.ts +492 -0
- package/templates/beauty-salon/tier5-src/wix-spaces-collection-detail/index.ts +146 -30
- package/templates/branded-lite/dev/index.ts +492 -0
- package/templates/branded-lite/tier5-src/wix-spaces-collection-detail/index.ts +146 -30
- package/templates/gym-fitness/dev/index.ts +492 -0
- package/templates/gym-fitness/tier5-src/wix-spaces-collection-detail/index.ts +146 -30
- package/templates/portfolio-creative/dev/index.ts +492 -0
- package/templates/portfolio-creative/tier5-src/wix-spaces-collection-detail/index.ts +146 -30
- package/templates/retail-store/dev/index.ts +492 -0
- package/templates/retail-store/tier5-src/wix-spaces-collection-detail/index.ts +146 -30
|
@@ -8634,6 +8634,498 @@ const SCREENS = runtimeSetting({
|
|
|
8634
8634
|
"hiddenPath": "$service:spacesCollectionDetail.noEntity"
|
|
8635
8635
|
}
|
|
8636
8636
|
},
|
|
8637
|
+
{
|
|
8638
|
+
"id": "",
|
|
8639
|
+
"body": {
|
|
8640
|
+
"package": "himalaya",
|
|
8641
|
+
"type": "VStack",
|
|
8642
|
+
"props": {
|
|
8643
|
+
"spacing": 10,
|
|
8644
|
+
"children": [
|
|
8645
|
+
{
|
|
8646
|
+
"id": "himi_collection.skeleton_1",
|
|
8647
|
+
"body": {
|
|
8648
|
+
"package": "himalaya",
|
|
8649
|
+
"type": "ZStack",
|
|
8650
|
+
"props": {
|
|
8651
|
+
"alignment": "center",
|
|
8652
|
+
"children": []
|
|
8653
|
+
}
|
|
8654
|
+
},
|
|
8655
|
+
"modifiers": {
|
|
8656
|
+
"height": 96,
|
|
8657
|
+
"background": {
|
|
8658
|
+
"token": "surfaceSecondary"
|
|
8659
|
+
},
|
|
8660
|
+
"border": {
|
|
8661
|
+
"width": 1,
|
|
8662
|
+
"color": {
|
|
8663
|
+
"token": "border"
|
|
8664
|
+
}
|
|
8665
|
+
},
|
|
8666
|
+
"cornerRadius": 8
|
|
8667
|
+
}
|
|
8668
|
+
},
|
|
8669
|
+
{
|
|
8670
|
+
"id": "himi_collection.skeleton_2",
|
|
8671
|
+
"body": {
|
|
8672
|
+
"package": "himalaya",
|
|
8673
|
+
"type": "ZStack",
|
|
8674
|
+
"props": {
|
|
8675
|
+
"alignment": "center",
|
|
8676
|
+
"children": []
|
|
8677
|
+
}
|
|
8678
|
+
},
|
|
8679
|
+
"modifiers": {
|
|
8680
|
+
"height": 96,
|
|
8681
|
+
"background": {
|
|
8682
|
+
"token": "surfaceSecondary"
|
|
8683
|
+
},
|
|
8684
|
+
"border": {
|
|
8685
|
+
"width": 1,
|
|
8686
|
+
"color": {
|
|
8687
|
+
"token": "border"
|
|
8688
|
+
}
|
|
8689
|
+
},
|
|
8690
|
+
"cornerRadius": 8
|
|
8691
|
+
}
|
|
8692
|
+
},
|
|
8693
|
+
{
|
|
8694
|
+
"id": "himi_collection.skeleton_3",
|
|
8695
|
+
"body": {
|
|
8696
|
+
"package": "himalaya",
|
|
8697
|
+
"type": "ZStack",
|
|
8698
|
+
"props": {
|
|
8699
|
+
"alignment": "center",
|
|
8700
|
+
"children": []
|
|
8701
|
+
}
|
|
8702
|
+
},
|
|
8703
|
+
"modifiers": {
|
|
8704
|
+
"height": 96,
|
|
8705
|
+
"background": {
|
|
8706
|
+
"token": "surfaceSecondary"
|
|
8707
|
+
},
|
|
8708
|
+
"border": {
|
|
8709
|
+
"width": 1,
|
|
8710
|
+
"color": {
|
|
8711
|
+
"token": "border"
|
|
8712
|
+
}
|
|
8713
|
+
},
|
|
8714
|
+
"cornerRadius": 8
|
|
8715
|
+
}
|
|
8716
|
+
}
|
|
8717
|
+
]
|
|
8718
|
+
}
|
|
8719
|
+
},
|
|
8720
|
+
"modifiers": {
|
|
8721
|
+
"hiddenPath": "$service:spacesCollectionDetail.hideProductsLoading"
|
|
8722
|
+
}
|
|
8723
|
+
},
|
|
8724
|
+
{
|
|
8725
|
+
"id": "himi_collection.products_retry.block",
|
|
8726
|
+
"body": {
|
|
8727
|
+
"package": "himalaya",
|
|
8728
|
+
"type": "VStack",
|
|
8729
|
+
"props": {
|
|
8730
|
+
"spacing": 12,
|
|
8731
|
+
"alignment": "leading",
|
|
8732
|
+
"children": [
|
|
8733
|
+
{
|
|
8734
|
+
"id": "",
|
|
8735
|
+
"body": {
|
|
8736
|
+
"package": "himalaya",
|
|
8737
|
+
"type": "HStack",
|
|
8738
|
+
"props": {
|
|
8739
|
+
"spacing": 10,
|
|
8740
|
+
"children": [
|
|
8741
|
+
{
|
|
8742
|
+
"id": "",
|
|
8743
|
+
"body": {
|
|
8744
|
+
"package": "himalaya",
|
|
8745
|
+
"type": "Icon",
|
|
8746
|
+
"props": {
|
|
8747
|
+
"name": "warning",
|
|
8748
|
+
"size": 18,
|
|
8749
|
+
"tint": "accentPrimary"
|
|
8750
|
+
}
|
|
8751
|
+
},
|
|
8752
|
+
"modifiers": {
|
|
8753
|
+
"accessibilityRole": "decorative"
|
|
8754
|
+
}
|
|
8755
|
+
},
|
|
8756
|
+
{
|
|
8757
|
+
"id": "",
|
|
8758
|
+
"body": {
|
|
8759
|
+
"package": "himalaya",
|
|
8760
|
+
"type": "Text",
|
|
8761
|
+
"props": {
|
|
8762
|
+
"text": "Something did not load.",
|
|
8763
|
+
"style": "bodyEmphasis"
|
|
8764
|
+
}
|
|
8765
|
+
}
|
|
8766
|
+
}
|
|
8767
|
+
]
|
|
8768
|
+
}
|
|
8769
|
+
}
|
|
8770
|
+
},
|
|
8771
|
+
{
|
|
8772
|
+
"id": "",
|
|
8773
|
+
"body": {
|
|
8774
|
+
"package": "himalaya",
|
|
8775
|
+
"type": "Text",
|
|
8776
|
+
"props": {
|
|
8777
|
+
"text": "Try again when the connection settles.",
|
|
8778
|
+
"style": "body",
|
|
8779
|
+
"color": "textSecondary"
|
|
8780
|
+
}
|
|
8781
|
+
}
|
|
8782
|
+
},
|
|
8783
|
+
{
|
|
8784
|
+
"id": "himi_collection.products_retry",
|
|
8785
|
+
"body": {
|
|
8786
|
+
"package": "himalaya",
|
|
8787
|
+
"type": "Button",
|
|
8788
|
+
"props": {
|
|
8789
|
+
"title": "Try again",
|
|
8790
|
+
"style": "secondary",
|
|
8791
|
+
"action": {
|
|
8792
|
+
"actionId": "tier5.spacesCollectionDetail.retryProducts"
|
|
8793
|
+
}
|
|
8794
|
+
}
|
|
8795
|
+
}
|
|
8796
|
+
}
|
|
8797
|
+
]
|
|
8798
|
+
}
|
|
8799
|
+
},
|
|
8800
|
+
"modifiers": {
|
|
8801
|
+
"background": {
|
|
8802
|
+
"token": "surfaceElevated"
|
|
8803
|
+
},
|
|
8804
|
+
"border": {
|
|
8805
|
+
"width": 1,
|
|
8806
|
+
"color": {
|
|
8807
|
+
"token": "border"
|
|
8808
|
+
}
|
|
8809
|
+
},
|
|
8810
|
+
"cornerRadius": 8,
|
|
8811
|
+
"padding": {
|
|
8812
|
+
"leading": 14,
|
|
8813
|
+
"trailing": 14,
|
|
8814
|
+
"top": 14,
|
|
8815
|
+
"bottom": 14
|
|
8816
|
+
},
|
|
8817
|
+
"hiddenPath": "$service:spacesCollectionDetail.productsNotErrored"
|
|
8818
|
+
}
|
|
8819
|
+
},
|
|
8820
|
+
{
|
|
8821
|
+
"id": "himi_collection.products",
|
|
8822
|
+
"body": {
|
|
8823
|
+
"package": "himalaya",
|
|
8824
|
+
"type": "LazyList",
|
|
8825
|
+
"props": {
|
|
8826
|
+
"spacing": 10,
|
|
8827
|
+
"itemsPath": "$service:spacesCollectionDetail.products",
|
|
8828
|
+
"items": [
|
|
8829
|
+
{
|
|
8830
|
+
"id": "himi_collection.row",
|
|
8831
|
+
"body": {
|
|
8832
|
+
"package": "himalaya",
|
|
8833
|
+
"type": "VStack",
|
|
8834
|
+
"props": {
|
|
8835
|
+
"spacing": 9,
|
|
8836
|
+
"alignment": "leading",
|
|
8837
|
+
"children": [
|
|
8838
|
+
{
|
|
8839
|
+
"id": "",
|
|
8840
|
+
"body": {
|
|
8841
|
+
"package": "himalaya",
|
|
8842
|
+
"type": "Image",
|
|
8843
|
+
"props": {
|
|
8844
|
+
"url": "$item.image",
|
|
8845
|
+
"fillWidth": true,
|
|
8846
|
+
"height": 168,
|
|
8847
|
+
"contentMode": "fill",
|
|
8848
|
+
"contentDescription": "$item.name"
|
|
8849
|
+
}
|
|
8850
|
+
},
|
|
8851
|
+
"modifiers": {
|
|
8852
|
+
"cornerRadius": 8,
|
|
8853
|
+
"fillMaxWidth": true,
|
|
8854
|
+
"hiddenPath": "$item.noImage"
|
|
8855
|
+
}
|
|
8856
|
+
},
|
|
8857
|
+
{
|
|
8858
|
+
"id": "himi_collection.row.monogram",
|
|
8859
|
+
"body": {
|
|
8860
|
+
"package": "himalaya",
|
|
8861
|
+
"type": "ZStack",
|
|
8862
|
+
"props": {
|
|
8863
|
+
"alignment": "center",
|
|
8864
|
+
"children": [
|
|
8865
|
+
{
|
|
8866
|
+
"id": "",
|
|
8867
|
+
"body": {
|
|
8868
|
+
"package": "himalaya",
|
|
8869
|
+
"type": "Text",
|
|
8870
|
+
"props": {
|
|
8871
|
+
"text": "$item.initial",
|
|
8872
|
+
"style": "display",
|
|
8873
|
+
"color": "textOnAccent",
|
|
8874
|
+
"maxLines": 1
|
|
8875
|
+
}
|
|
8876
|
+
}
|
|
8877
|
+
}
|
|
8878
|
+
]
|
|
8879
|
+
}
|
|
8880
|
+
},
|
|
8881
|
+
"modifiers": {
|
|
8882
|
+
"fillMaxWidth": true,
|
|
8883
|
+
"height": 168,
|
|
8884
|
+
"background": {
|
|
8885
|
+
"token": "accentPrimary"
|
|
8886
|
+
},
|
|
8887
|
+
"cornerRadius": 8,
|
|
8888
|
+
"hiddenPath": "$item.hasImage"
|
|
8889
|
+
}
|
|
8890
|
+
},
|
|
8891
|
+
{
|
|
8892
|
+
"id": "",
|
|
8893
|
+
"body": {
|
|
8894
|
+
"package": "himalaya",
|
|
8895
|
+
"type": "Text",
|
|
8896
|
+
"props": {
|
|
8897
|
+
"text": "$item.name",
|
|
8898
|
+
"style": "bodyEmphasis",
|
|
8899
|
+
"maxLines": 2
|
|
8900
|
+
}
|
|
8901
|
+
}
|
|
8902
|
+
},
|
|
8903
|
+
{
|
|
8904
|
+
"id": "",
|
|
8905
|
+
"body": {
|
|
8906
|
+
"package": "himalaya",
|
|
8907
|
+
"type": "Text",
|
|
8908
|
+
"props": {
|
|
8909
|
+
"text": "$item.subtitle",
|
|
8910
|
+
"style": "footnote",
|
|
8911
|
+
"color": "accentPrimary",
|
|
8912
|
+
"maxLines": 1,
|
|
8913
|
+
"collapseWhenEmpty": true
|
|
8914
|
+
}
|
|
8915
|
+
}
|
|
8916
|
+
}
|
|
8917
|
+
]
|
|
8918
|
+
}
|
|
8919
|
+
},
|
|
8920
|
+
"modifiers": {
|
|
8921
|
+
"background": {
|
|
8922
|
+
"token": "surfaceElevated"
|
|
8923
|
+
},
|
|
8924
|
+
"border": {
|
|
8925
|
+
"width": 1,
|
|
8926
|
+
"color": {
|
|
8927
|
+
"token": "border"
|
|
8928
|
+
}
|
|
8929
|
+
},
|
|
8930
|
+
"cornerRadius": 8,
|
|
8931
|
+
"padding": {
|
|
8932
|
+
"leading": 12,
|
|
8933
|
+
"trailing": 12,
|
|
8934
|
+
"top": 12,
|
|
8935
|
+
"bottom": 12
|
|
8936
|
+
},
|
|
8937
|
+
"onTap": {
|
|
8938
|
+
"actionId": "himi.open",
|
|
8939
|
+
"params": {
|
|
8940
|
+
"screenId": "$item.detailScreenId",
|
|
8941
|
+
"id": "$item.id"
|
|
8942
|
+
}
|
|
8943
|
+
},
|
|
8944
|
+
"pressFeedback": "scale",
|
|
8945
|
+
"haptic": "light",
|
|
8946
|
+
"accessibilityLabel": "$item.name"
|
|
8947
|
+
}
|
|
8948
|
+
}
|
|
8949
|
+
],
|
|
8950
|
+
"onPullToRefresh": {
|
|
8951
|
+
"actionId": "tier5.spacesCollectionDetail.load"
|
|
8952
|
+
},
|
|
8953
|
+
"pagination": {
|
|
8954
|
+
"cursor": "$service:spacesCollectionDetail.productsCursor",
|
|
8955
|
+
"onLoadMore": {
|
|
8956
|
+
"actionId": "tier5.spacesCollectionDetail.loadMoreProducts"
|
|
8957
|
+
},
|
|
8958
|
+
"pageSize": 50
|
|
8959
|
+
}
|
|
8960
|
+
}
|
|
8961
|
+
},
|
|
8962
|
+
"modifiers": {
|
|
8963
|
+
"hiddenPath": "$service:spacesCollectionDetail.hideProducts"
|
|
8964
|
+
}
|
|
8965
|
+
},
|
|
8966
|
+
{
|
|
8967
|
+
"id": "himi_collection.products_more_retry.block",
|
|
8968
|
+
"body": {
|
|
8969
|
+
"package": "himalaya",
|
|
8970
|
+
"type": "VStack",
|
|
8971
|
+
"props": {
|
|
8972
|
+
"spacing": 12,
|
|
8973
|
+
"alignment": "leading",
|
|
8974
|
+
"children": [
|
|
8975
|
+
{
|
|
8976
|
+
"id": "",
|
|
8977
|
+
"body": {
|
|
8978
|
+
"package": "himalaya",
|
|
8979
|
+
"type": "HStack",
|
|
8980
|
+
"props": {
|
|
8981
|
+
"spacing": 10,
|
|
8982
|
+
"children": [
|
|
8983
|
+
{
|
|
8984
|
+
"id": "",
|
|
8985
|
+
"body": {
|
|
8986
|
+
"package": "himalaya",
|
|
8987
|
+
"type": "Icon",
|
|
8988
|
+
"props": {
|
|
8989
|
+
"name": "warning",
|
|
8990
|
+
"size": 18,
|
|
8991
|
+
"tint": "accentPrimary"
|
|
8992
|
+
}
|
|
8993
|
+
},
|
|
8994
|
+
"modifiers": {
|
|
8995
|
+
"accessibilityRole": "decorative"
|
|
8996
|
+
}
|
|
8997
|
+
},
|
|
8998
|
+
{
|
|
8999
|
+
"id": "",
|
|
9000
|
+
"body": {
|
|
9001
|
+
"package": "himalaya",
|
|
9002
|
+
"type": "Text",
|
|
9003
|
+
"props": {
|
|
9004
|
+
"text": "Something did not load.",
|
|
9005
|
+
"style": "bodyEmphasis"
|
|
9006
|
+
}
|
|
9007
|
+
}
|
|
9008
|
+
}
|
|
9009
|
+
]
|
|
9010
|
+
}
|
|
9011
|
+
}
|
|
9012
|
+
},
|
|
9013
|
+
{
|
|
9014
|
+
"id": "",
|
|
9015
|
+
"body": {
|
|
9016
|
+
"package": "himalaya",
|
|
9017
|
+
"type": "Text",
|
|
9018
|
+
"props": {
|
|
9019
|
+
"text": "Try again when the connection settles.",
|
|
9020
|
+
"style": "body",
|
|
9021
|
+
"color": "textSecondary"
|
|
9022
|
+
}
|
|
9023
|
+
}
|
|
9024
|
+
},
|
|
9025
|
+
{
|
|
9026
|
+
"id": "himi_collection.products_more_retry",
|
|
9027
|
+
"body": {
|
|
9028
|
+
"package": "himalaya",
|
|
9029
|
+
"type": "Button",
|
|
9030
|
+
"props": {
|
|
9031
|
+
"title": "Try again",
|
|
9032
|
+
"style": "secondary",
|
|
9033
|
+
"action": {
|
|
9034
|
+
"actionId": "tier5.spacesCollectionDetail.retryProducts"
|
|
9035
|
+
}
|
|
9036
|
+
}
|
|
9037
|
+
}
|
|
9038
|
+
}
|
|
9039
|
+
]
|
|
9040
|
+
}
|
|
9041
|
+
},
|
|
9042
|
+
"modifiers": {
|
|
9043
|
+
"background": {
|
|
9044
|
+
"token": "surfaceElevated"
|
|
9045
|
+
},
|
|
9046
|
+
"border": {
|
|
9047
|
+
"width": 1,
|
|
9048
|
+
"color": {
|
|
9049
|
+
"token": "border"
|
|
9050
|
+
}
|
|
9051
|
+
},
|
|
9052
|
+
"cornerRadius": 8,
|
|
9053
|
+
"padding": {
|
|
9054
|
+
"leading": 14,
|
|
9055
|
+
"trailing": 14,
|
|
9056
|
+
"top": 14,
|
|
9057
|
+
"bottom": 14
|
|
9058
|
+
},
|
|
9059
|
+
"hiddenPath": "$service:spacesCollectionDetail.productsNoPageError"
|
|
9060
|
+
}
|
|
9061
|
+
},
|
|
9062
|
+
{
|
|
9063
|
+
"id": "",
|
|
9064
|
+
"body": {
|
|
9065
|
+
"package": "himalaya",
|
|
9066
|
+
"type": "VStack",
|
|
9067
|
+
"props": {
|
|
9068
|
+
"spacing": 12,
|
|
9069
|
+
"alignment": "center",
|
|
9070
|
+
"children": [
|
|
9071
|
+
{
|
|
9072
|
+
"id": "",
|
|
9073
|
+
"body": {
|
|
9074
|
+
"package": "himalaya",
|
|
9075
|
+
"type": "Icon",
|
|
9076
|
+
"props": {
|
|
9077
|
+
"name": "bag",
|
|
9078
|
+
"size": 34,
|
|
9079
|
+
"tint": "textTertiary"
|
|
9080
|
+
}
|
|
9081
|
+
},
|
|
9082
|
+
"modifiers": {
|
|
9083
|
+
"accessibilityRole": "decorative"
|
|
9084
|
+
}
|
|
9085
|
+
},
|
|
9086
|
+
{
|
|
9087
|
+
"id": "",
|
|
9088
|
+
"body": {
|
|
9089
|
+
"package": "himalaya",
|
|
9090
|
+
"type": "Text",
|
|
9091
|
+
"props": {
|
|
9092
|
+
"text": "No products in this category yet.",
|
|
9093
|
+
"style": "bodyEmphasis",
|
|
9094
|
+
"color": "textSecondary",
|
|
9095
|
+
"collapseWhenEmpty": true
|
|
9096
|
+
}
|
|
9097
|
+
}
|
|
9098
|
+
},
|
|
9099
|
+
{
|
|
9100
|
+
"id": "himi_collection.products_empty.cta",
|
|
9101
|
+
"body": {
|
|
9102
|
+
"package": "himalaya",
|
|
9103
|
+
"type": "Button",
|
|
9104
|
+
"props": {
|
|
9105
|
+
"title": "Back to categories",
|
|
9106
|
+
"style": "secondary",
|
|
9107
|
+
"action": {
|
|
9108
|
+
"actionId": "himi.open",
|
|
9109
|
+
"params": {
|
|
9110
|
+
"screenId": "himi_collections"
|
|
9111
|
+
}
|
|
9112
|
+
}
|
|
9113
|
+
}
|
|
9114
|
+
}
|
|
9115
|
+
}
|
|
9116
|
+
]
|
|
9117
|
+
}
|
|
9118
|
+
},
|
|
9119
|
+
"modifiers": {
|
|
9120
|
+
"padding": {
|
|
9121
|
+
"leading": 24,
|
|
9122
|
+
"trailing": 24,
|
|
9123
|
+
"top": 24,
|
|
9124
|
+
"bottom": 24
|
|
9125
|
+
},
|
|
9126
|
+
"hiddenPath": "$service:spacesCollectionDetail.noEmpty"
|
|
9127
|
+
}
|
|
9128
|
+
},
|
|
8637
9129
|
{
|
|
8638
9130
|
"id": "",
|
|
8639
9131
|
"body": {
|