@wix/stores 1.0.979 → 1.0.981
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/build/cjs/context-category-by-id.d.ts +5 -1
- package/build/cjs/context-category-by-id.js +2 -2
- package/build/cjs/context-category-by-id.js.map +1 -1
- package/build/cjs/context-category-by-slug.d.ts +4 -0
- package/build/cjs/context-category-by-slug.js +596 -508
- package/build/cjs/context-category-by-slug.js.map +1 -1
- package/build/cjs/context-category-info.js +1 -1
- package/build/cjs/context-category-info.js.map +1 -1
- package/build/cjs/context-product-by-id.d.ts +5 -0
- package/build/cjs/context-product-by-id.js +3 -3
- package/build/cjs/context-product-by-id.js.map +1 -1
- package/build/cjs/context-product-by-slug.d.ts +5 -0
- package/build/cjs/context-product-by-slug.js +2 -2
- package/build/cjs/context-product-by-slug.js.map +1 -1
- package/build/cjs/context-product-item.d.ts +5 -0
- package/build/cjs/context-product-item.js +1 -1
- package/build/cjs/context-product-item.js.map +1 -1
- package/build/cjs/context-product-list.d.ts +4 -0
- package/build/cjs/context-product.d.ts +21 -0
- package/build/es/context-category-by-id.d.mts +5 -1
- package/build/es/context-category-by-id.mjs +2 -2
- package/build/es/context-category-by-id.mjs.map +1 -1
- package/build/es/context-category-by-slug.d.mts +4 -0
- package/build/es/context-category-by-slug.mjs +596 -508
- package/build/es/context-category-by-slug.mjs.map +1 -1
- package/build/es/context-category-info.mjs +1 -1
- package/build/es/context-category-info.mjs.map +1 -1
- package/build/es/context-product-by-id.d.mts +5 -0
- package/build/es/context-product-by-id.mjs +3 -3
- package/build/es/context-product-by-id.mjs.map +1 -1
- package/build/es/context-product-by-slug.d.mts +5 -0
- package/build/es/context-product-by-slug.mjs +2 -2
- package/build/es/context-product-by-slug.mjs.map +1 -1
- package/build/es/context-product-item.d.mts +5 -0
- package/build/es/context-product-item.mjs +1 -1
- package/build/es/context-product-item.mjs.map +1 -1
- package/build/es/context-product-list.d.mts +4 -0
- package/build/es/context-product.d.mts +21 -0
- package/build/internal/cjs/context-category-by-id.d.ts +5 -1
- package/build/internal/cjs/context-category-by-slug.d.ts +4 -0
- package/build/internal/cjs/context-product-by-id.d.ts +5 -0
- package/build/internal/cjs/context-product-by-slug.d.ts +5 -0
- package/build/internal/cjs/context-product-item.d.ts +5 -0
- package/build/internal/cjs/context-product-list.d.ts +4 -0
- package/build/internal/cjs/context-product.d.ts +21 -0
- package/build/internal/es/context-category-by-id.d.mts +5 -1
- package/build/internal/es/context-category-by-slug.d.mts +4 -0
- package/build/internal/es/context-product-by-id.d.mts +5 -0
- package/build/internal/es/context-product-by-slug.d.mts +5 -0
- package/build/internal/es/context-product-item.d.mts +5 -0
- package/build/internal/es/context-product-list.d.mts +4 -0
- package/build/internal/es/context-product.d.mts +21 -0
- package/context-runtime/context-category-by-id/runtime.d.ts +5 -1
- package/context-runtime/context-category-by-id/runtime.js +2 -2
- package/context-runtime/context-category-by-slug/runtime.d.ts +4 -0
- package/context-runtime/context-category-by-slug/runtime.js +2 -2
- package/context-runtime/context-category-info/runtime.js +2 -2
- package/context-runtime/context-product/runtime.d.ts +21 -0
- package/context-runtime/context-product-by-id/runtime.d.ts +5 -0
- package/context-runtime/context-product-by-id/runtime.js +2 -2
- package/context-runtime/context-product-by-slug/runtime.d.ts +5 -0
- package/context-runtime/context-product-by-slug/runtime.js +2 -2
- package/context-runtime/context-product-item/runtime.d.ts +5 -0
- package/context-runtime/context-product-item/runtime.js +2 -2
- package/context-runtime/context-product-list/runtime.d.ts +4 -0
- package/package.json +2 -2
|
@@ -3931,6 +3931,9 @@ interface ProductPriceRange {
|
|
|
3931
3931
|
minCompareAtPrice?: number;
|
|
3932
3932
|
maxCompareAtPrice?: number;
|
|
3933
3933
|
}
|
|
3934
|
+
interface ProductExtendedFields {
|
|
3935
|
+
namespaces: Record<string, Record<string, unknown>>;
|
|
3936
|
+
}
|
|
3934
3937
|
interface Product {
|
|
3935
3938
|
id: string;
|
|
3936
3939
|
slug?: string;
|
|
@@ -3954,6 +3957,7 @@ interface Product {
|
|
|
3954
3957
|
inventory: ProductInventory;
|
|
3955
3958
|
discountRuleNames?: DiscountInfo['discountRuleNames'];
|
|
3956
3959
|
productGroupId?: string;
|
|
3960
|
+
extendedFields: ProductExtendedFields;
|
|
3957
3961
|
}
|
|
3958
3962
|
//#endregion
|
|
3959
3963
|
//#region src/extensions/product/providers/selectors/validate-user-input/validate-user-input.d.ts
|
|
@@ -4133,6 +4137,7 @@ declare function useProductItemContextValue({
|
|
|
4133
4137
|
discountRules: {
|
|
4134
4138
|
name: string;
|
|
4135
4139
|
}[] | undefined;
|
|
4140
|
+
extendedFields: ProductExtendedFields;
|
|
4136
4141
|
source: ProductContextSource;
|
|
4137
4142
|
};
|
|
4138
4143
|
type ProductItemContextImplementation = ReturnType<typeof useProductItemContextValue>;
|
|
@@ -3697,7 +3697,7 @@ function Ys(e2, r2) {
|
|
|
3697
3697
|
return n(() => ({ handleNotifyMe: i2 }), [i2]);
|
|
3698
3698
|
}
|
|
3699
3699
|
function Xs(e2, t2) {
|
|
3700
|
-
return n(() => ({ id: e2.id, name: e2.name, description: e2.description, ribbons: e2.ribbons, breadcrumbs: e2.breadcrumbs, mainCategoryId: e2.mainCategoryId, categories: e2.categories, infoSections: e2.infoSections, sku: t2?.sku, discountRules: e2.discountRuleNames?.map((e3) => ({ name: e3 })) }), [e2, t2]);
|
|
3700
|
+
return n(() => ({ id: e2.id, name: e2.name, description: e2.description, ribbons: e2.ribbons, breadcrumbs: e2.breadcrumbs, mainCategoryId: e2.mainCategoryId, categories: e2.categories, infoSections: e2.infoSections, sku: t2?.sku, discountRules: e2.discountRuleNames?.map((e3) => ({ name: e3 })), extendedFields: e2.extendedFields }), [e2, t2]);
|
|
3701
3701
|
}
|
|
3702
3702
|
function Zs(e2) {
|
|
3703
3703
|
if (!e2) return;
|