@wix/stores 1.0.965 → 1.0.967

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 (36) hide show
  1. package/_sdk-exports/context-product-by-id-context-provider/runtime.d.ts +7 -4
  2. package/_sdk-exports/context-product-by-id-context-provider/runtime.js +2 -2
  3. package/_sdk-exports/context-product-by-slug-context-provider/runtime.d.ts +7 -4
  4. package/_sdk-exports/context-product-by-slug-context-provider/runtime.js +2 -2
  5. package/_sdk-exports/context-product-context-provider/runtime.d.ts +11 -5
  6. package/_sdk-exports/context-product-item-context-provider/runtime.d.ts +7 -4
  7. package/_sdk-exports/context-product-item-context-provider/runtime.js +2 -2
  8. package/build/cjs/context-product-by-id-context-provider.d.ts +7 -4
  9. package/build/cjs/context-product-by-id-context-provider.js +1 -1
  10. package/build/cjs/context-product-by-id-context-provider.js.map +1 -1
  11. package/build/cjs/context-product-by-slug-context-provider.d.ts +7 -4
  12. package/build/cjs/context-product-by-slug-context-provider.js +1 -1
  13. package/build/cjs/context-product-by-slug-context-provider.js.map +1 -1
  14. package/build/cjs/context-product-context-provider.d.ts +11 -5
  15. package/build/cjs/context-product-item-context-provider.d.ts +7 -4
  16. package/build/cjs/context-product-item-context-provider.js +1 -1
  17. package/build/cjs/context-product-item-context-provider.js.map +1 -1
  18. package/build/es/context-product-by-id-context-provider.d.mts +7 -4
  19. package/build/es/context-product-by-id-context-provider.mjs +1 -1
  20. package/build/es/context-product-by-id-context-provider.mjs.map +1 -1
  21. package/build/es/context-product-by-slug-context-provider.d.mts +7 -4
  22. package/build/es/context-product-by-slug-context-provider.mjs +1 -1
  23. package/build/es/context-product-by-slug-context-provider.mjs.map +1 -1
  24. package/build/es/context-product-context-provider.d.mts +11 -5
  25. package/build/es/context-product-item-context-provider.d.mts +7 -4
  26. package/build/es/context-product-item-context-provider.mjs +1 -1
  27. package/build/es/context-product-item-context-provider.mjs.map +1 -1
  28. package/build/internal/cjs/context-product-by-id-context-provider.d.ts +7 -4
  29. package/build/internal/cjs/context-product-by-slug-context-provider.d.ts +7 -4
  30. package/build/internal/cjs/context-product-context-provider.d.ts +11 -5
  31. package/build/internal/cjs/context-product-item-context-provider.d.ts +7 -4
  32. package/build/internal/es/context-product-by-id-context-provider.d.mts +7 -4
  33. package/build/internal/es/context-product-by-slug-context-provider.d.mts +7 -4
  34. package/build/internal/es/context-product-context-provider.d.mts +11 -5
  35. package/build/internal/es/context-product-item-context-provider.d.mts +7 -4
  36. package/package.json +22 -22
@@ -3925,13 +3925,16 @@ interface SubscriptionPlan {
3925
3925
  }
3926
3926
  //#endregion
3927
3927
  //#region src/extensions/product/providers/product-context/constants.d.ts
3928
- /** Which kind of container supplies the product to the component. */
3928
+ /** Which place supplied the product to the component. */
3929
3929
  declare enum ProductContextSource {
3930
- /** The product whose product page the visitor is on, identified by the slug in the page's URL. */
3930
+ /** A product page. The product is the one whose slug is in the page's URL. */
3931
3931
  PRODUCT_BY_SLUG = "product-by-slug",
3932
- /** A product chosen by ID in the settings of the container that holds the component. */
3932
+ /**
3933
+ * A page, container, or section that the Product Data Source is attached to. The product is the
3934
+ * one chosen in the Data Source's settings.
3935
+ */
3933
3936
  PRODUCT_BY_ID = "product-by-id",
3934
- /** The product of an item in a products list. */
3937
+ /** A Product Item in a Product List element. The product is that item's product. */
3935
3938
  PRODUCT_ITEM = "product-item"
3936
3939
  }
3937
3940
  //#endregion
@@ -3949,7 +3952,10 @@ interface PricePerUnit {
3949
3952
  interface ProductContextValue {
3950
3953
  /** Product's stable catalog ID. */
3951
3954
  id: string;
3952
- /** The product context implementation that serves this product */
3955
+ /**
3956
+ * Which place supplied the product: a product page, the Product Data Source, or a Product Item
3957
+ * in a Product List element. Some properties are `null` in a Product Item, such as `description`.
3958
+ */
3953
3959
  source: ProductContextSource;
3954
3960
  /** Product's display name. */
3955
3961
  name: string;
@@ -3974,13 +3974,16 @@ interface UserInputErrorFields {
3974
3974
  }
3975
3975
  //#endregion
3976
3976
  //#region src/extensions/product/providers/product-context/constants.d.ts
3977
- /** Which kind of container supplies the product to the component. */
3977
+ /** Which place supplied the product to the component. */
3978
3978
  declare enum ProductContextSource {
3979
- /** The product whose product page the visitor is on, identified by the slug in the page's URL. */
3979
+ /** A product page. The product is the one whose slug is in the page's URL. */
3980
3980
  PRODUCT_BY_SLUG = "product-by-slug",
3981
- /** A product chosen by ID in the settings of the container that holds the component. */
3981
+ /**
3982
+ * A page, container, or section that the Product Data Source is attached to. The product is the
3983
+ * one chosen in the Data Source's settings.
3984
+ */
3982
3985
  PRODUCT_BY_ID = "product-by-id",
3983
- /** The product of an item in a products list. */
3986
+ /** A Product Item in a Product List element. The product is that item's product. */
3984
3987
  PRODUCT_ITEM = "product-item"
3985
3988
  }
3986
3989
  //#endregion
@@ -3423,7 +3423,7 @@ function Qo(e2, t2) {
3423
3423
  }
3424
3424
  function $o(e2) {
3425
3425
  if (!e2) return;
3426
- let t2 = _t(e2, `image`), { protocol: n2, hash: r2, pathname: i2 } = new URL(t2), a2 = new URLSearchParams(r2.replace(`#`, ``)), o2 = a2.get(`originHeight`), s2 = a2.get(`originWidth`), [c2, l2] = i2.replace(`image://v1/`, ``).split(`/`), u2 = decodeURIComponent(l2);
3426
+ let t2 = _t(e2, `image`), { protocol: n2, hash: r2, pathname: i2 } = new URL(t2), a2 = new URLSearchParams(r2.replace(`#`, ``)), o2 = a2.get(`originHeight`), s2 = a2.get(`originWidth`), [c2, l2] = i2.replace(`image://v1/`, ``).split(`/`), u2 = l2 && decodeURIComponent(l2);
3427
3427
  if (n2 === `wix:`) {
3428
3428
  let t3 = { id: c2, height: Number(o2), width: Number(s2) };
3429
3429
  return u2 ? { ...t3, altText: u2, filename: u2, url: e2 } : t3;