@wix/himalaya-cli 0.1498.0 → 0.1499.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 (78) hide show
  1. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk/stores-collections/src/display.d.ts +1 -1
  2. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk/stores-collections/src/index.d.ts +2 -0
  3. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk/stores-v1/src/display.d.ts +4 -0
  4. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/wix-stores-collections.mjs +2 -2
  5. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/wix-stores.mjs +3 -2
  6. package/dist/cli.mjs +30 -31
  7. package/dist/preview-assets.generated.bin +0 -0
  8. package/guides/sdk-reference.json +384 -29
  9. package/guides/trim-a-template.md +1 -1
  10. package/package.json +2 -2
  11. package/templates/beauty-salon/dev/index.ts +2465 -2035
  12. package/templates/beauty-salon/tier5-src/_shared/himi-store-categories.ts +102 -0
  13. package/templates/beauty-salon/tier5-src/_shared/himi-store-facets.ts +478 -0
  14. package/templates/beauty-salon/tier5-src/_shared/iap-presentation.ts +158 -15
  15. package/templates/beauty-salon/tier5-src/himi-branded-lite-home/index.ts +42 -2
  16. package/templates/beauty-salon/tier5-src/himi-branded-lite-shop/index.ts +691 -0
  17. package/templates/beauty-salon/tier5-src/himi-store-product/index.ts +2 -1
  18. package/templates/beauty-salon/tier5-src/himi-store-saved/index.ts +1 -0
  19. package/templates/branded-lite/dev/index.ts +2593 -2163
  20. package/templates/branded-lite/tier5-src/_shared/himi-store-categories.ts +102 -0
  21. package/templates/branded-lite/tier5-src/_shared/himi-store-facets.ts +478 -0
  22. package/templates/branded-lite/tier5-src/_shared/iap-presentation.ts +158 -15
  23. package/templates/branded-lite/tier5-src/himi-branded-lite-home/index.ts +42 -2
  24. package/templates/branded-lite/tier5-src/himi-branded-lite-shop/index.ts +691 -0
  25. package/templates/branded-lite/tier5-src/himi-store-product/index.ts +2 -1
  26. package/templates/branded-lite/tier5-src/himi-store-saved/index.ts +1 -0
  27. package/templates/community-club/tier5-src/_shared/himi-store-categories.ts +102 -0
  28. package/templates/community-club/tier5-src/_shared/iap-presentation.ts +158 -15
  29. package/templates/community-club/tier5-src/himi-branded-lite-home/index.ts +42 -2
  30. package/templates/events-meetups/tier5-src/_shared/himi-store-categories.ts +102 -0
  31. package/templates/events-meetups/tier5-src/_shared/iap-presentation.ts +158 -15
  32. package/templates/events-meetups/tier5-src/himi-branded-lite-home/index.ts +42 -2
  33. package/templates/gym-fitness/dev/index.ts +2600 -2170
  34. package/templates/gym-fitness/tier5-src/_shared/himi-store-categories.ts +102 -0
  35. package/templates/gym-fitness/tier5-src/_shared/himi-store-facets.ts +478 -0
  36. package/templates/gym-fitness/tier5-src/_shared/iap-presentation.ts +158 -15
  37. package/templates/gym-fitness/tier5-src/himi-branded-lite-home/index.ts +42 -2
  38. package/templates/gym-fitness/tier5-src/himi-branded-lite-shop/index.ts +691 -0
  39. package/templates/gym-fitness/tier5-src/himi-store-product/index.ts +2 -1
  40. package/templates/gym-fitness/tier5-src/himi-store-saved/index.ts +1 -0
  41. package/templates/nonprofit-cause/tier5-src/_shared/himi-store-categories.ts +102 -0
  42. package/templates/nonprofit-cause/tier5-src/_shared/iap-presentation.ts +158 -15
  43. package/templates/nonprofit-cause/tier5-src/himi-branded-lite-home/index.ts +42 -2
  44. package/templates/podcast-creator/tier5-src/_shared/himi-store-categories.ts +102 -0
  45. package/templates/podcast-creator/tier5-src/_shared/iap-presentation.ts +158 -15
  46. package/templates/podcast-creator/tier5-src/himi-branded-lite-home/index.ts +42 -2
  47. package/templates/portfolio-creative/dev/index.ts +2470 -2040
  48. package/templates/portfolio-creative/tier5-src/_shared/himi-store-categories.ts +102 -0
  49. package/templates/portfolio-creative/tier5-src/_shared/himi-store-facets.ts +478 -0
  50. package/templates/portfolio-creative/tier5-src/_shared/iap-presentation.ts +158 -15
  51. package/templates/portfolio-creative/tier5-src/himi-branded-lite-home/index.ts +42 -2
  52. package/templates/portfolio-creative/tier5-src/himi-branded-lite-shop/index.ts +691 -0
  53. package/templates/portfolio-creative/tier5-src/himi-store-product/index.ts +2 -1
  54. package/templates/portfolio-creative/tier5-src/himi-store-saved/index.ts +1 -0
  55. package/templates/restaurant/tier5-src/_shared/himi-store-categories.ts +102 -0
  56. package/templates/restaurant/tier5-src/_shared/iap-presentation.ts +158 -15
  57. package/templates/restaurant/tier5-src/himi-branded-lite-home/index.ts +42 -2
  58. package/templates/retail-store/dev/index.ts +2583 -2137
  59. package/templates/retail-store/tier5-src/_shared/himi-store-categories.ts +102 -0
  60. package/templates/retail-store/tier5-src/_shared/himi-store-facets.ts +478 -0
  61. package/templates/retail-store/tier5-src/_shared/iap-presentation.ts +158 -15
  62. package/templates/retail-store/tier5-src/himi-branded-lite-home/index.ts +42 -2
  63. package/templates/retail-store/tier5-src/himi-branded-lite-shop/index.ts +691 -0
  64. package/templates/retail-store/tier5-src/himi-store-product/index.ts +2 -1
  65. package/templates/retail-store/tier5-src/himi-store-saved/index.ts +1 -0
  66. package/templates/yoga-studio/tier5-src/_shared/himi-store-categories.ts +102 -0
  67. package/templates/yoga-studio/tier5-src/_shared/iap-presentation.ts +158 -15
  68. package/templates/yoga-studio/tier5-src/himi-branded-lite-home/index.ts +42 -2
  69. package/templates/beauty-salon/tier5-src/_shared/himi-store-collection.ts +0 -22
  70. package/templates/beauty-salon/tier5-src/himi-store-shop/index.ts +0 -173
  71. package/templates/branded-lite/tier5-src/_shared/himi-store-collection.ts +0 -22
  72. package/templates/branded-lite/tier5-src/himi-store-shop/index.ts +0 -173
  73. package/templates/gym-fitness/tier5-src/_shared/himi-store-collection.ts +0 -22
  74. package/templates/gym-fitness/tier5-src/himi-store-shop/index.ts +0 -173
  75. package/templates/portfolio-creative/tier5-src/_shared/himi-store-collection.ts +0 -22
  76. package/templates/portfolio-creative/tier5-src/himi-store-shop/index.ts +0 -173
  77. package/templates/retail-store/tier5-src/_shared/himi-store-collection.ts +0 -22
  78. package/templates/retail-store/tier5-src/himi-store-shop/index.ts +0 -173
@@ -442,7 +442,7 @@ let checkoutEntered = false;
442
442
  const defineService = withIapPresentation<S>({
443
443
  adapters: SELLS_THROUGH_APPLE ? [storesProductOrders] : [],
444
444
  onCreate: commerce => { productPricing = commerce; }, prefix: "product",
445
- transientKeys: ["price", "optionsIncomplete", "cartHint", "cartHidden", "buyHidden", "buyLabel", "buyDisabled", "buyNote", "purchasedNote", "addedSheetPresented", "shareHint"], contentActions: ["load", "paintCached"],
445
+ transientKeys: ["price", "optionsIncomplete", "cartHint", "cartHidden", "buyHidden", "buyLabel", "buyDisabled", "buyNote", "purchasedNote", "addedSheetPresented", "shareHint"], contentActions: ["load", "paintCached"], concurrentPublishActions: ["buy"],
446
446
  items: state => inputId() ? [{ reference: { kind: "storesProduct", id: inputId() }, commerceDisplayPrice: state.price }] : [],
447
447
  present: (state, price, allowed) => {
448
448
  const purchase = applePurchase(state);
@@ -885,5 +885,6 @@ const svc = defineService<S, {
885
885
  },
886
886
  });
887
887
 
888
+ // The boot sweep loads the bound product; root onAppear refreshes it when the screen returns.
888
889
  svc.load();
889
890
  export { svc };
@@ -36,6 +36,7 @@ function failed(s: S): S {
36
36
  return shape({ ...s, status: "error", error: copyParam("savedProducts.error", "Could not update your wishlist. Try again.") });
37
37
  }
38
38
  const defineService = withIapPresentation<S>({
39
+ forcePriceRefreshActions: ["load", "remove"],
39
40
  prefix: "savedProducts", transientKeys: ["rows"], contentActions: ["load", "remove"],
40
41
  items: state => state.rows.map(row => ({ reference: { kind: "storesProduct", id: row.id }, commerceDisplayPrice: row.commercePrice ?? row.price })),
41
42
  present: (state, price) => ({ ...state, rows: state.rows.map(row => {