@wix/stores 1.0.966 → 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 +2 -2
@@ -3989,13 +3989,16 @@ interface UserInputErrorFields {
3989
3989
  }
3990
3990
  //#endregion
3991
3991
  //#region src/extensions/product/providers/product-context/constants.d.ts
3992
- /** Which kind of container supplies the product to the component. */
3992
+ /** Which place supplied the product to the component. */
3993
3993
  declare enum ProductContextSource {
3994
- /** The product whose product page the visitor is on, identified by the slug in the page's URL. */
3994
+ /** A product page. The product is the one whose slug is in the page's URL. */
3995
3995
  PRODUCT_BY_SLUG = "product-by-slug",
3996
- /** A product chosen by ID in the settings of the container that holds the component. */
3996
+ /**
3997
+ * A page, container, or section that the Product Data Source is attached to. The product is the
3998
+ * one chosen in the Data Source's settings.
3999
+ */
3997
4000
  PRODUCT_BY_ID = "product-by-id",
3998
- /** The product of an item in a products list. */
4001
+ /** A Product Item in a Product List element. The product is that item's product. */
3999
4002
  PRODUCT_ITEM = "product-item"
4000
4003
  }
4001
4004
  //#endregion
@@ -1133,7 +1133,7 @@ function tr(e2, t2) {
1133
1133
  }
1134
1134
  function nr(e2) {
1135
1135
  if (!e2) return;
1136
- 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);
1136
+ 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);
1137
1137
  if (n2 === `wix:`) {
1138
1138
  let t3 = { id: c2, height: Number(o2), width: Number(s2) };
1139
1139
  return u2 ? { ...t3, altText: u2, filename: u2, url: e2 } : t3;