@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.
Files changed (22) 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 +44 -20
  8. package/dist/preview-assets.generated.bin +0 -0
  9. package/guides/sdk-reference.json +33 -3
  10. package/guides/web-page-native-sdk.md +154 -33
  11. package/guides/webview-page-sdk.md +11 -0
  12. package/package.json +2 -2
  13. package/templates/beauty-salon/dev/index.ts +492 -0
  14. package/templates/beauty-salon/tier5-src/wix-spaces-collection-detail/index.ts +146 -30
  15. package/templates/branded-lite/dev/index.ts +492 -0
  16. package/templates/branded-lite/tier5-src/wix-spaces-collection-detail/index.ts +146 -30
  17. package/templates/gym-fitness/dev/index.ts +492 -0
  18. package/templates/gym-fitness/tier5-src/wix-spaces-collection-detail/index.ts +146 -30
  19. package/templates/portfolio-creative/dev/index.ts +492 -0
  20. package/templates/portfolio-creative/tier5-src/wix-spaces-collection-detail/index.ts +146 -30
  21. package/templates/retail-store/dev/index.ts +492 -0
  22. package/templates/retail-store/tier5-src/wix-spaces-collection-detail/index.ts +146 -30
@@ -8007,6 +8007,498 @@ const SCREENS = runtimeSetting({
8007
8007
  "hiddenPath": "$service:spacesCollectionDetail.noEntity"
8008
8008
  }
8009
8009
  },
8010
+ {
8011
+ "id": "",
8012
+ "body": {
8013
+ "package": "himalaya",
8014
+ "type": "VStack",
8015
+ "props": {
8016
+ "spacing": 10,
8017
+ "children": [
8018
+ {
8019
+ "id": "himi_collection.skeleton_1",
8020
+ "body": {
8021
+ "package": "himalaya",
8022
+ "type": "ZStack",
8023
+ "props": {
8024
+ "alignment": "center",
8025
+ "children": []
8026
+ }
8027
+ },
8028
+ "modifiers": {
8029
+ "height": 96,
8030
+ "background": {
8031
+ "token": "surfaceSecondary"
8032
+ },
8033
+ "border": {
8034
+ "width": 1,
8035
+ "color": {
8036
+ "token": "border"
8037
+ }
8038
+ },
8039
+ "cornerRadius": 8
8040
+ }
8041
+ },
8042
+ {
8043
+ "id": "himi_collection.skeleton_2",
8044
+ "body": {
8045
+ "package": "himalaya",
8046
+ "type": "ZStack",
8047
+ "props": {
8048
+ "alignment": "center",
8049
+ "children": []
8050
+ }
8051
+ },
8052
+ "modifiers": {
8053
+ "height": 96,
8054
+ "background": {
8055
+ "token": "surfaceSecondary"
8056
+ },
8057
+ "border": {
8058
+ "width": 1,
8059
+ "color": {
8060
+ "token": "border"
8061
+ }
8062
+ },
8063
+ "cornerRadius": 8
8064
+ }
8065
+ },
8066
+ {
8067
+ "id": "himi_collection.skeleton_3",
8068
+ "body": {
8069
+ "package": "himalaya",
8070
+ "type": "ZStack",
8071
+ "props": {
8072
+ "alignment": "center",
8073
+ "children": []
8074
+ }
8075
+ },
8076
+ "modifiers": {
8077
+ "height": 96,
8078
+ "background": {
8079
+ "token": "surfaceSecondary"
8080
+ },
8081
+ "border": {
8082
+ "width": 1,
8083
+ "color": {
8084
+ "token": "border"
8085
+ }
8086
+ },
8087
+ "cornerRadius": 8
8088
+ }
8089
+ }
8090
+ ]
8091
+ }
8092
+ },
8093
+ "modifiers": {
8094
+ "hiddenPath": "$service:spacesCollectionDetail.hideProductsLoading"
8095
+ }
8096
+ },
8097
+ {
8098
+ "id": "himi_collection.products_retry.block",
8099
+ "body": {
8100
+ "package": "himalaya",
8101
+ "type": "VStack",
8102
+ "props": {
8103
+ "spacing": 12,
8104
+ "alignment": "leading",
8105
+ "children": [
8106
+ {
8107
+ "id": "",
8108
+ "body": {
8109
+ "package": "himalaya",
8110
+ "type": "HStack",
8111
+ "props": {
8112
+ "spacing": 10,
8113
+ "children": [
8114
+ {
8115
+ "id": "",
8116
+ "body": {
8117
+ "package": "himalaya",
8118
+ "type": "Icon",
8119
+ "props": {
8120
+ "name": "warning",
8121
+ "size": 18,
8122
+ "tint": "accentPrimary"
8123
+ }
8124
+ },
8125
+ "modifiers": {
8126
+ "accessibilityRole": "decorative"
8127
+ }
8128
+ },
8129
+ {
8130
+ "id": "",
8131
+ "body": {
8132
+ "package": "himalaya",
8133
+ "type": "Text",
8134
+ "props": {
8135
+ "text": "Something did not load.",
8136
+ "style": "bodyEmphasis"
8137
+ }
8138
+ }
8139
+ }
8140
+ ]
8141
+ }
8142
+ }
8143
+ },
8144
+ {
8145
+ "id": "",
8146
+ "body": {
8147
+ "package": "himalaya",
8148
+ "type": "Text",
8149
+ "props": {
8150
+ "text": "Try again when the connection settles.",
8151
+ "style": "body",
8152
+ "color": "textSecondary"
8153
+ }
8154
+ }
8155
+ },
8156
+ {
8157
+ "id": "himi_collection.products_retry",
8158
+ "body": {
8159
+ "package": "himalaya",
8160
+ "type": "Button",
8161
+ "props": {
8162
+ "title": "Try again",
8163
+ "style": "secondary",
8164
+ "action": {
8165
+ "actionId": "tier5.spacesCollectionDetail.retryProducts"
8166
+ }
8167
+ }
8168
+ }
8169
+ }
8170
+ ]
8171
+ }
8172
+ },
8173
+ "modifiers": {
8174
+ "background": {
8175
+ "token": "surfaceElevated"
8176
+ },
8177
+ "border": {
8178
+ "width": 1,
8179
+ "color": {
8180
+ "token": "border"
8181
+ }
8182
+ },
8183
+ "cornerRadius": 8,
8184
+ "padding": {
8185
+ "leading": 14,
8186
+ "trailing": 14,
8187
+ "top": 14,
8188
+ "bottom": 14
8189
+ },
8190
+ "hiddenPath": "$service:spacesCollectionDetail.productsNotErrored"
8191
+ }
8192
+ },
8193
+ {
8194
+ "id": "himi_collection.products",
8195
+ "body": {
8196
+ "package": "himalaya",
8197
+ "type": "LazyList",
8198
+ "props": {
8199
+ "spacing": 10,
8200
+ "itemsPath": "$service:spacesCollectionDetail.products",
8201
+ "items": [
8202
+ {
8203
+ "id": "himi_collection.row",
8204
+ "body": {
8205
+ "package": "himalaya",
8206
+ "type": "VStack",
8207
+ "props": {
8208
+ "spacing": 9,
8209
+ "alignment": "leading",
8210
+ "children": [
8211
+ {
8212
+ "id": "",
8213
+ "body": {
8214
+ "package": "himalaya",
8215
+ "type": "Image",
8216
+ "props": {
8217
+ "url": "$item.image",
8218
+ "fillWidth": true,
8219
+ "height": 168,
8220
+ "contentMode": "fill",
8221
+ "contentDescription": "$item.name"
8222
+ }
8223
+ },
8224
+ "modifiers": {
8225
+ "cornerRadius": 8,
8226
+ "fillMaxWidth": true,
8227
+ "hiddenPath": "$item.noImage"
8228
+ }
8229
+ },
8230
+ {
8231
+ "id": "himi_collection.row.monogram",
8232
+ "body": {
8233
+ "package": "himalaya",
8234
+ "type": "ZStack",
8235
+ "props": {
8236
+ "alignment": "center",
8237
+ "children": [
8238
+ {
8239
+ "id": "",
8240
+ "body": {
8241
+ "package": "himalaya",
8242
+ "type": "Text",
8243
+ "props": {
8244
+ "text": "$item.initial",
8245
+ "style": "display",
8246
+ "color": "textOnAccent",
8247
+ "maxLines": 1
8248
+ }
8249
+ }
8250
+ }
8251
+ ]
8252
+ }
8253
+ },
8254
+ "modifiers": {
8255
+ "fillMaxWidth": true,
8256
+ "height": 168,
8257
+ "background": {
8258
+ "token": "accentPrimary"
8259
+ },
8260
+ "cornerRadius": 8,
8261
+ "hiddenPath": "$item.hasImage"
8262
+ }
8263
+ },
8264
+ {
8265
+ "id": "",
8266
+ "body": {
8267
+ "package": "himalaya",
8268
+ "type": "Text",
8269
+ "props": {
8270
+ "text": "$item.name",
8271
+ "style": "bodyEmphasis",
8272
+ "maxLines": 2
8273
+ }
8274
+ }
8275
+ },
8276
+ {
8277
+ "id": "",
8278
+ "body": {
8279
+ "package": "himalaya",
8280
+ "type": "Text",
8281
+ "props": {
8282
+ "text": "$item.subtitle",
8283
+ "style": "footnote",
8284
+ "color": "accentPrimary",
8285
+ "maxLines": 1,
8286
+ "collapseWhenEmpty": true
8287
+ }
8288
+ }
8289
+ }
8290
+ ]
8291
+ }
8292
+ },
8293
+ "modifiers": {
8294
+ "background": {
8295
+ "token": "surfaceElevated"
8296
+ },
8297
+ "border": {
8298
+ "width": 1,
8299
+ "color": {
8300
+ "token": "border"
8301
+ }
8302
+ },
8303
+ "cornerRadius": 8,
8304
+ "padding": {
8305
+ "leading": 12,
8306
+ "trailing": 12,
8307
+ "top": 12,
8308
+ "bottom": 12
8309
+ },
8310
+ "onTap": {
8311
+ "actionId": "himi.open",
8312
+ "params": {
8313
+ "screenId": "$item.detailScreenId",
8314
+ "id": "$item.id"
8315
+ }
8316
+ },
8317
+ "pressFeedback": "scale",
8318
+ "haptic": "light",
8319
+ "accessibilityLabel": "$item.name"
8320
+ }
8321
+ }
8322
+ ],
8323
+ "onPullToRefresh": {
8324
+ "actionId": "tier5.spacesCollectionDetail.load"
8325
+ },
8326
+ "pagination": {
8327
+ "cursor": "$service:spacesCollectionDetail.productsCursor",
8328
+ "onLoadMore": {
8329
+ "actionId": "tier5.spacesCollectionDetail.loadMoreProducts"
8330
+ },
8331
+ "pageSize": 50
8332
+ }
8333
+ }
8334
+ },
8335
+ "modifiers": {
8336
+ "hiddenPath": "$service:spacesCollectionDetail.hideProducts"
8337
+ }
8338
+ },
8339
+ {
8340
+ "id": "himi_collection.products_more_retry.block",
8341
+ "body": {
8342
+ "package": "himalaya",
8343
+ "type": "VStack",
8344
+ "props": {
8345
+ "spacing": 12,
8346
+ "alignment": "leading",
8347
+ "children": [
8348
+ {
8349
+ "id": "",
8350
+ "body": {
8351
+ "package": "himalaya",
8352
+ "type": "HStack",
8353
+ "props": {
8354
+ "spacing": 10,
8355
+ "children": [
8356
+ {
8357
+ "id": "",
8358
+ "body": {
8359
+ "package": "himalaya",
8360
+ "type": "Icon",
8361
+ "props": {
8362
+ "name": "warning",
8363
+ "size": 18,
8364
+ "tint": "accentPrimary"
8365
+ }
8366
+ },
8367
+ "modifiers": {
8368
+ "accessibilityRole": "decorative"
8369
+ }
8370
+ },
8371
+ {
8372
+ "id": "",
8373
+ "body": {
8374
+ "package": "himalaya",
8375
+ "type": "Text",
8376
+ "props": {
8377
+ "text": "Something did not load.",
8378
+ "style": "bodyEmphasis"
8379
+ }
8380
+ }
8381
+ }
8382
+ ]
8383
+ }
8384
+ }
8385
+ },
8386
+ {
8387
+ "id": "",
8388
+ "body": {
8389
+ "package": "himalaya",
8390
+ "type": "Text",
8391
+ "props": {
8392
+ "text": "Try again when the connection settles.",
8393
+ "style": "body",
8394
+ "color": "textSecondary"
8395
+ }
8396
+ }
8397
+ },
8398
+ {
8399
+ "id": "himi_collection.products_more_retry",
8400
+ "body": {
8401
+ "package": "himalaya",
8402
+ "type": "Button",
8403
+ "props": {
8404
+ "title": "Try again",
8405
+ "style": "secondary",
8406
+ "action": {
8407
+ "actionId": "tier5.spacesCollectionDetail.retryProducts"
8408
+ }
8409
+ }
8410
+ }
8411
+ }
8412
+ ]
8413
+ }
8414
+ },
8415
+ "modifiers": {
8416
+ "background": {
8417
+ "token": "surfaceElevated"
8418
+ },
8419
+ "border": {
8420
+ "width": 1,
8421
+ "color": {
8422
+ "token": "border"
8423
+ }
8424
+ },
8425
+ "cornerRadius": 8,
8426
+ "padding": {
8427
+ "leading": 14,
8428
+ "trailing": 14,
8429
+ "top": 14,
8430
+ "bottom": 14
8431
+ },
8432
+ "hiddenPath": "$service:spacesCollectionDetail.productsNoPageError"
8433
+ }
8434
+ },
8435
+ {
8436
+ "id": "",
8437
+ "body": {
8438
+ "package": "himalaya",
8439
+ "type": "VStack",
8440
+ "props": {
8441
+ "spacing": 12,
8442
+ "alignment": "center",
8443
+ "children": [
8444
+ {
8445
+ "id": "",
8446
+ "body": {
8447
+ "package": "himalaya",
8448
+ "type": "Icon",
8449
+ "props": {
8450
+ "name": "bag",
8451
+ "size": 34,
8452
+ "tint": "textTertiary"
8453
+ }
8454
+ },
8455
+ "modifiers": {
8456
+ "accessibilityRole": "decorative"
8457
+ }
8458
+ },
8459
+ {
8460
+ "id": "",
8461
+ "body": {
8462
+ "package": "himalaya",
8463
+ "type": "Text",
8464
+ "props": {
8465
+ "text": "No products in this category yet.",
8466
+ "style": "bodyEmphasis",
8467
+ "color": "textSecondary",
8468
+ "collapseWhenEmpty": true
8469
+ }
8470
+ }
8471
+ },
8472
+ {
8473
+ "id": "himi_collection.products_empty.cta",
8474
+ "body": {
8475
+ "package": "himalaya",
8476
+ "type": "Button",
8477
+ "props": {
8478
+ "title": "Back to categories",
8479
+ "style": "secondary",
8480
+ "action": {
8481
+ "actionId": "himi.open",
8482
+ "params": {
8483
+ "screenId": "himi_collections"
8484
+ }
8485
+ }
8486
+ }
8487
+ }
8488
+ }
8489
+ ]
8490
+ }
8491
+ },
8492
+ "modifiers": {
8493
+ "padding": {
8494
+ "leading": 24,
8495
+ "trailing": 24,
8496
+ "top": 24,
8497
+ "bottom": 24
8498
+ },
8499
+ "hiddenPath": "$service:spacesCollectionDetail.noEmpty"
8500
+ }
8501
+ },
8010
8502
  {
8011
8503
  "id": "",
8012
8504
  "body": {