@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
@@ -8811,6 +8811,498 @@ const SCREENS = runtimeSetting({
8811
8811
  "hiddenPath": "$service:spacesCollectionDetail.noEntity"
8812
8812
  }
8813
8813
  },
8814
+ {
8815
+ "id": "",
8816
+ "body": {
8817
+ "package": "himalaya",
8818
+ "type": "VStack",
8819
+ "props": {
8820
+ "spacing": 10,
8821
+ "children": [
8822
+ {
8823
+ "id": "himi_collection.skeleton_1",
8824
+ "body": {
8825
+ "package": "himalaya",
8826
+ "type": "ZStack",
8827
+ "props": {
8828
+ "alignment": "center",
8829
+ "children": []
8830
+ }
8831
+ },
8832
+ "modifiers": {
8833
+ "height": 96,
8834
+ "background": {
8835
+ "token": "surfaceSecondary"
8836
+ },
8837
+ "border": {
8838
+ "width": 1,
8839
+ "color": {
8840
+ "token": "border"
8841
+ }
8842
+ },
8843
+ "cornerRadius": 8
8844
+ }
8845
+ },
8846
+ {
8847
+ "id": "himi_collection.skeleton_2",
8848
+ "body": {
8849
+ "package": "himalaya",
8850
+ "type": "ZStack",
8851
+ "props": {
8852
+ "alignment": "center",
8853
+ "children": []
8854
+ }
8855
+ },
8856
+ "modifiers": {
8857
+ "height": 96,
8858
+ "background": {
8859
+ "token": "surfaceSecondary"
8860
+ },
8861
+ "border": {
8862
+ "width": 1,
8863
+ "color": {
8864
+ "token": "border"
8865
+ }
8866
+ },
8867
+ "cornerRadius": 8
8868
+ }
8869
+ },
8870
+ {
8871
+ "id": "himi_collection.skeleton_3",
8872
+ "body": {
8873
+ "package": "himalaya",
8874
+ "type": "ZStack",
8875
+ "props": {
8876
+ "alignment": "center",
8877
+ "children": []
8878
+ }
8879
+ },
8880
+ "modifiers": {
8881
+ "height": 96,
8882
+ "background": {
8883
+ "token": "surfaceSecondary"
8884
+ },
8885
+ "border": {
8886
+ "width": 1,
8887
+ "color": {
8888
+ "token": "border"
8889
+ }
8890
+ },
8891
+ "cornerRadius": 8
8892
+ }
8893
+ }
8894
+ ]
8895
+ }
8896
+ },
8897
+ "modifiers": {
8898
+ "hiddenPath": "$service:spacesCollectionDetail.hideProductsLoading"
8899
+ }
8900
+ },
8901
+ {
8902
+ "id": "himi_collection.products_retry.block",
8903
+ "body": {
8904
+ "package": "himalaya",
8905
+ "type": "VStack",
8906
+ "props": {
8907
+ "spacing": 12,
8908
+ "alignment": "leading",
8909
+ "children": [
8910
+ {
8911
+ "id": "",
8912
+ "body": {
8913
+ "package": "himalaya",
8914
+ "type": "HStack",
8915
+ "props": {
8916
+ "spacing": 10,
8917
+ "children": [
8918
+ {
8919
+ "id": "",
8920
+ "body": {
8921
+ "package": "himalaya",
8922
+ "type": "Icon",
8923
+ "props": {
8924
+ "name": "warning",
8925
+ "size": 18,
8926
+ "tint": "accentPrimary"
8927
+ }
8928
+ },
8929
+ "modifiers": {
8930
+ "accessibilityRole": "decorative"
8931
+ }
8932
+ },
8933
+ {
8934
+ "id": "",
8935
+ "body": {
8936
+ "package": "himalaya",
8937
+ "type": "Text",
8938
+ "props": {
8939
+ "text": "Something did not load.",
8940
+ "style": "bodyEmphasis"
8941
+ }
8942
+ }
8943
+ }
8944
+ ]
8945
+ }
8946
+ }
8947
+ },
8948
+ {
8949
+ "id": "",
8950
+ "body": {
8951
+ "package": "himalaya",
8952
+ "type": "Text",
8953
+ "props": {
8954
+ "text": "Try again when the connection settles.",
8955
+ "style": "body",
8956
+ "color": "textSecondary"
8957
+ }
8958
+ }
8959
+ },
8960
+ {
8961
+ "id": "himi_collection.products_retry",
8962
+ "body": {
8963
+ "package": "himalaya",
8964
+ "type": "Button",
8965
+ "props": {
8966
+ "title": "Try again",
8967
+ "style": "secondary",
8968
+ "action": {
8969
+ "actionId": "tier5.spacesCollectionDetail.retryProducts"
8970
+ }
8971
+ }
8972
+ }
8973
+ }
8974
+ ]
8975
+ }
8976
+ },
8977
+ "modifiers": {
8978
+ "background": {
8979
+ "token": "surfaceElevated"
8980
+ },
8981
+ "border": {
8982
+ "width": 1,
8983
+ "color": {
8984
+ "token": "border"
8985
+ }
8986
+ },
8987
+ "cornerRadius": 8,
8988
+ "padding": {
8989
+ "leading": 14,
8990
+ "trailing": 14,
8991
+ "top": 14,
8992
+ "bottom": 14
8993
+ },
8994
+ "hiddenPath": "$service:spacesCollectionDetail.productsNotErrored"
8995
+ }
8996
+ },
8997
+ {
8998
+ "id": "himi_collection.products",
8999
+ "body": {
9000
+ "package": "himalaya",
9001
+ "type": "LazyList",
9002
+ "props": {
9003
+ "spacing": 10,
9004
+ "itemsPath": "$service:spacesCollectionDetail.products",
9005
+ "items": [
9006
+ {
9007
+ "id": "himi_collection.row",
9008
+ "body": {
9009
+ "package": "himalaya",
9010
+ "type": "VStack",
9011
+ "props": {
9012
+ "spacing": 9,
9013
+ "alignment": "leading",
9014
+ "children": [
9015
+ {
9016
+ "id": "",
9017
+ "body": {
9018
+ "package": "himalaya",
9019
+ "type": "Image",
9020
+ "props": {
9021
+ "url": "$item.image",
9022
+ "fillWidth": true,
9023
+ "height": 168,
9024
+ "contentMode": "fill",
9025
+ "contentDescription": "$item.name"
9026
+ }
9027
+ },
9028
+ "modifiers": {
9029
+ "cornerRadius": 8,
9030
+ "fillMaxWidth": true,
9031
+ "hiddenPath": "$item.noImage"
9032
+ }
9033
+ },
9034
+ {
9035
+ "id": "himi_collection.row.monogram",
9036
+ "body": {
9037
+ "package": "himalaya",
9038
+ "type": "ZStack",
9039
+ "props": {
9040
+ "alignment": "center",
9041
+ "children": [
9042
+ {
9043
+ "id": "",
9044
+ "body": {
9045
+ "package": "himalaya",
9046
+ "type": "Text",
9047
+ "props": {
9048
+ "text": "$item.initial",
9049
+ "style": "display",
9050
+ "color": "textOnAccent",
9051
+ "maxLines": 1
9052
+ }
9053
+ }
9054
+ }
9055
+ ]
9056
+ }
9057
+ },
9058
+ "modifiers": {
9059
+ "fillMaxWidth": true,
9060
+ "height": 168,
9061
+ "background": {
9062
+ "token": "accentPrimary"
9063
+ },
9064
+ "cornerRadius": 8,
9065
+ "hiddenPath": "$item.hasImage"
9066
+ }
9067
+ },
9068
+ {
9069
+ "id": "",
9070
+ "body": {
9071
+ "package": "himalaya",
9072
+ "type": "Text",
9073
+ "props": {
9074
+ "text": "$item.name",
9075
+ "style": "bodyEmphasis",
9076
+ "maxLines": 2
9077
+ }
9078
+ }
9079
+ },
9080
+ {
9081
+ "id": "",
9082
+ "body": {
9083
+ "package": "himalaya",
9084
+ "type": "Text",
9085
+ "props": {
9086
+ "text": "$item.subtitle",
9087
+ "style": "footnote",
9088
+ "color": "accentPrimary",
9089
+ "maxLines": 1,
9090
+ "collapseWhenEmpty": true
9091
+ }
9092
+ }
9093
+ }
9094
+ ]
9095
+ }
9096
+ },
9097
+ "modifiers": {
9098
+ "background": {
9099
+ "token": "surfaceElevated"
9100
+ },
9101
+ "border": {
9102
+ "width": 1,
9103
+ "color": {
9104
+ "token": "border"
9105
+ }
9106
+ },
9107
+ "cornerRadius": 8,
9108
+ "padding": {
9109
+ "leading": 12,
9110
+ "trailing": 12,
9111
+ "top": 12,
9112
+ "bottom": 12
9113
+ },
9114
+ "onTap": {
9115
+ "actionId": "himi.open",
9116
+ "params": {
9117
+ "screenId": "$item.detailScreenId",
9118
+ "id": "$item.id"
9119
+ }
9120
+ },
9121
+ "pressFeedback": "scale",
9122
+ "haptic": "light",
9123
+ "accessibilityLabel": "$item.name"
9124
+ }
9125
+ }
9126
+ ],
9127
+ "onPullToRefresh": {
9128
+ "actionId": "tier5.spacesCollectionDetail.load"
9129
+ },
9130
+ "pagination": {
9131
+ "cursor": "$service:spacesCollectionDetail.productsCursor",
9132
+ "onLoadMore": {
9133
+ "actionId": "tier5.spacesCollectionDetail.loadMoreProducts"
9134
+ },
9135
+ "pageSize": 50
9136
+ }
9137
+ }
9138
+ },
9139
+ "modifiers": {
9140
+ "hiddenPath": "$service:spacesCollectionDetail.hideProducts"
9141
+ }
9142
+ },
9143
+ {
9144
+ "id": "himi_collection.products_more_retry.block",
9145
+ "body": {
9146
+ "package": "himalaya",
9147
+ "type": "VStack",
9148
+ "props": {
9149
+ "spacing": 12,
9150
+ "alignment": "leading",
9151
+ "children": [
9152
+ {
9153
+ "id": "",
9154
+ "body": {
9155
+ "package": "himalaya",
9156
+ "type": "HStack",
9157
+ "props": {
9158
+ "spacing": 10,
9159
+ "children": [
9160
+ {
9161
+ "id": "",
9162
+ "body": {
9163
+ "package": "himalaya",
9164
+ "type": "Icon",
9165
+ "props": {
9166
+ "name": "warning",
9167
+ "size": 18,
9168
+ "tint": "accentPrimary"
9169
+ }
9170
+ },
9171
+ "modifiers": {
9172
+ "accessibilityRole": "decorative"
9173
+ }
9174
+ },
9175
+ {
9176
+ "id": "",
9177
+ "body": {
9178
+ "package": "himalaya",
9179
+ "type": "Text",
9180
+ "props": {
9181
+ "text": "Something did not load.",
9182
+ "style": "bodyEmphasis"
9183
+ }
9184
+ }
9185
+ }
9186
+ ]
9187
+ }
9188
+ }
9189
+ },
9190
+ {
9191
+ "id": "",
9192
+ "body": {
9193
+ "package": "himalaya",
9194
+ "type": "Text",
9195
+ "props": {
9196
+ "text": "Try again when the connection settles.",
9197
+ "style": "body",
9198
+ "color": "textSecondary"
9199
+ }
9200
+ }
9201
+ },
9202
+ {
9203
+ "id": "himi_collection.products_more_retry",
9204
+ "body": {
9205
+ "package": "himalaya",
9206
+ "type": "Button",
9207
+ "props": {
9208
+ "title": "Try again",
9209
+ "style": "secondary",
9210
+ "action": {
9211
+ "actionId": "tier5.spacesCollectionDetail.retryProducts"
9212
+ }
9213
+ }
9214
+ }
9215
+ }
9216
+ ]
9217
+ }
9218
+ },
9219
+ "modifiers": {
9220
+ "background": {
9221
+ "token": "surfaceElevated"
9222
+ },
9223
+ "border": {
9224
+ "width": 1,
9225
+ "color": {
9226
+ "token": "border"
9227
+ }
9228
+ },
9229
+ "cornerRadius": 8,
9230
+ "padding": {
9231
+ "leading": 14,
9232
+ "trailing": 14,
9233
+ "top": 14,
9234
+ "bottom": 14
9235
+ },
9236
+ "hiddenPath": "$service:spacesCollectionDetail.productsNoPageError"
9237
+ }
9238
+ },
9239
+ {
9240
+ "id": "",
9241
+ "body": {
9242
+ "package": "himalaya",
9243
+ "type": "VStack",
9244
+ "props": {
9245
+ "spacing": 12,
9246
+ "alignment": "center",
9247
+ "children": [
9248
+ {
9249
+ "id": "",
9250
+ "body": {
9251
+ "package": "himalaya",
9252
+ "type": "Icon",
9253
+ "props": {
9254
+ "name": "bag",
9255
+ "size": 34,
9256
+ "tint": "textTertiary"
9257
+ }
9258
+ },
9259
+ "modifiers": {
9260
+ "accessibilityRole": "decorative"
9261
+ }
9262
+ },
9263
+ {
9264
+ "id": "",
9265
+ "body": {
9266
+ "package": "himalaya",
9267
+ "type": "Text",
9268
+ "props": {
9269
+ "text": "No products in this category yet.",
9270
+ "style": "bodyEmphasis",
9271
+ "color": "textSecondary",
9272
+ "collapseWhenEmpty": true
9273
+ }
9274
+ }
9275
+ },
9276
+ {
9277
+ "id": "himi_collection.products_empty.cta",
9278
+ "body": {
9279
+ "package": "himalaya",
9280
+ "type": "Button",
9281
+ "props": {
9282
+ "title": "Back to categories",
9283
+ "style": "secondary",
9284
+ "action": {
9285
+ "actionId": "himi.open",
9286
+ "params": {
9287
+ "screenId": "himi_collections"
9288
+ }
9289
+ }
9290
+ }
9291
+ }
9292
+ }
9293
+ ]
9294
+ }
9295
+ },
9296
+ "modifiers": {
9297
+ "padding": {
9298
+ "leading": 24,
9299
+ "trailing": 24,
9300
+ "top": 24,
9301
+ "bottom": 24
9302
+ },
9303
+ "hiddenPath": "$service:spacesCollectionDetail.noEmpty"
9304
+ }
9305
+ },
8814
9306
  {
8815
9307
  "id": "",
8816
9308
  "body": {