@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.
- package/_sdk-exports/context-product-by-id-context-provider/runtime.d.ts +7 -4
- package/_sdk-exports/context-product-by-id-context-provider/runtime.js +2 -2
- package/_sdk-exports/context-product-by-slug-context-provider/runtime.d.ts +7 -4
- package/_sdk-exports/context-product-by-slug-context-provider/runtime.js +2 -2
- package/_sdk-exports/context-product-context-provider/runtime.d.ts +11 -5
- package/_sdk-exports/context-product-item-context-provider/runtime.d.ts +7 -4
- package/_sdk-exports/context-product-item-context-provider/runtime.js +2 -2
- package/build/cjs/context-product-by-id-context-provider.d.ts +7 -4
- package/build/cjs/context-product-by-id-context-provider.js +1 -1
- package/build/cjs/context-product-by-id-context-provider.js.map +1 -1
- package/build/cjs/context-product-by-slug-context-provider.d.ts +7 -4
- package/build/cjs/context-product-by-slug-context-provider.js +1 -1
- package/build/cjs/context-product-by-slug-context-provider.js.map +1 -1
- package/build/cjs/context-product-context-provider.d.ts +11 -5
- package/build/cjs/context-product-item-context-provider.d.ts +7 -4
- package/build/cjs/context-product-item-context-provider.js +1 -1
- package/build/cjs/context-product-item-context-provider.js.map +1 -1
- package/build/es/context-product-by-id-context-provider.d.mts +7 -4
- package/build/es/context-product-by-id-context-provider.mjs +1 -1
- package/build/es/context-product-by-id-context-provider.mjs.map +1 -1
- package/build/es/context-product-by-slug-context-provider.d.mts +7 -4
- package/build/es/context-product-by-slug-context-provider.mjs +1 -1
- package/build/es/context-product-by-slug-context-provider.mjs.map +1 -1
- package/build/es/context-product-context-provider.d.mts +11 -5
- package/build/es/context-product-item-context-provider.d.mts +7 -4
- package/build/es/context-product-item-context-provider.mjs +1 -1
- package/build/es/context-product-item-context-provider.mjs.map +1 -1
- package/build/internal/cjs/context-product-by-id-context-provider.d.ts +7 -4
- package/build/internal/cjs/context-product-by-slug-context-provider.d.ts +7 -4
- package/build/internal/cjs/context-product-context-provider.d.ts +11 -5
- package/build/internal/cjs/context-product-item-context-provider.d.ts +7 -4
- package/build/internal/es/context-product-by-id-context-provider.d.mts +7 -4
- package/build/internal/es/context-product-by-slug-context-provider.d.mts +7 -4
- package/build/internal/es/context-product-context-provider.d.mts +11 -5
- package/build/internal/es/context-product-item-context-provider.d.mts +7 -4
- 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
|
|
3992
|
+
/** Which place supplied the product to the component. */
|
|
3993
3993
|
declare enum ProductContextSource {
|
|
3994
|
-
/**
|
|
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
|
-
/**
|
|
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
|
-
/**
|
|
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
|
|
@@ -1125,7 +1125,7 @@ function $n(e2, t2) {
|
|
|
1125
1125
|
}
|
|
1126
1126
|
function er(e2) {
|
|
1127
1127
|
if (!e2) return;
|
|
1128
|
-
let t2 = gt(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);
|
|
1128
|
+
let t2 = gt(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);
|
|
1129
1129
|
if (n2 === `wix:`) {
|
|
1130
1130
|
let t3 = { id: c2, height: Number(o2), width: Number(s2) };
|
|
1131
1131
|
return u2 ? { ...t3, altText: u2, filename: u2, url: e2 } : t3;
|