@wix/stores 1.0.973 → 1.0.974
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-category-by-id/runtime.d.ts +33 -4
- package/_sdk-exports/context-category-by-id/runtime.js +2 -2
- package/_sdk-exports/context-category-by-slug/runtime.d.ts +33 -4
- package/_sdk-exports/context-category-by-slug/runtime.js +2 -2
- package/_sdk-exports/context-category-info/runtime.d.ts +6 -1
- package/_sdk-exports/context-category-list/runtime.d.ts +5 -1
- package/_sdk-exports/context-product/runtime.d.ts +13 -13
- package/_sdk-exports/context-product-by-id/runtime.d.ts +19 -11
- package/_sdk-exports/context-product-by-id/runtime.js +2 -2
- package/_sdk-exports/context-product-by-slug/runtime.d.ts +17 -11
- package/_sdk-exports/context-product-by-slug/runtime.js +2 -2
- package/_sdk-exports/context-product-item/runtime.d.ts +35 -2
- package/_sdk-exports/context-product-item/runtime.js +2 -2
- package/_sdk-exports/context-product-list/runtime.d.ts +29 -1
- package/_sdk-exports/context-promotion-item/runtime.d.ts +5 -1
- package/build/cjs/context-category-by-id.d.ts +33 -4
- package/build/cjs/context-category-by-id.js +1187 -822
- package/build/cjs/context-category-by-id.js.map +1 -1
- package/build/cjs/context-category-by-slug.d.ts +33 -4
- package/build/cjs/context-category-by-slug.js +1382 -1017
- package/build/cjs/context-category-by-slug.js.map +1 -1
- package/build/cjs/context-category-info.d.ts +6 -1
- package/build/cjs/context-category-list.d.ts +5 -1
- package/build/cjs/context-product-by-id.d.ts +19 -11
- package/build/cjs/context-product-by-id.js +39 -36
- package/build/cjs/context-product-by-id.js.map +1 -1
- package/build/cjs/context-product-by-slug.d.ts +17 -11
- package/build/cjs/context-product-by-slug.js +37 -34
- package/build/cjs/context-product-by-slug.js.map +1 -1
- package/build/cjs/context-product-item.d.ts +35 -2
- package/build/cjs/context-product-item.js +287 -287
- package/build/cjs/context-product-item.js.map +1 -1
- package/build/cjs/context-product-list.d.ts +29 -1
- package/build/cjs/context-product.d.ts +13 -13
- package/build/cjs/context-promotion-item.d.ts +5 -1
- package/build/es/context-category-by-id.d.mts +33 -4
- package/build/es/context-category-by-id.mjs +1194 -829
- package/build/es/context-category-by-id.mjs.map +1 -1
- package/build/es/context-category-by-slug.d.mts +33 -4
- package/build/es/context-category-by-slug.mjs +1382 -1017
- package/build/es/context-category-by-slug.mjs.map +1 -1
- package/build/es/context-category-info.d.mts +6 -1
- package/build/es/context-category-list.d.mts +5 -1
- package/build/es/context-product-by-id.d.mts +19 -11
- package/build/es/context-product-by-id.mjs +39 -36
- package/build/es/context-product-by-id.mjs.map +1 -1
- package/build/es/context-product-by-slug.d.mts +17 -11
- package/build/es/context-product-by-slug.mjs +37 -34
- package/build/es/context-product-by-slug.mjs.map +1 -1
- package/build/es/context-product-item.d.mts +35 -2
- package/build/es/context-product-item.mjs +287 -287
- package/build/es/context-product-item.mjs.map +1 -1
- package/build/es/context-product-list.d.mts +29 -1
- package/build/es/context-product.d.mts +13 -13
- package/build/es/context-promotion-item.d.mts +5 -1
- package/build/internal/cjs/context-category-by-id.d.ts +33 -4
- package/build/internal/cjs/context-category-by-slug.d.ts +33 -4
- package/build/internal/cjs/context-category-info.d.ts +6 -1
- package/build/internal/cjs/context-category-list.d.ts +5 -1
- package/build/internal/cjs/context-product-by-id.d.ts +19 -11
- package/build/internal/cjs/context-product-by-slug.d.ts +17 -11
- package/build/internal/cjs/context-product-item.d.ts +35 -2
- package/build/internal/cjs/context-product-list.d.ts +29 -1
- package/build/internal/cjs/context-product.d.ts +13 -13
- package/build/internal/cjs/context-promotion-item.d.ts +5 -1
- package/build/internal/es/context-category-by-id.d.mts +33 -4
- package/build/internal/es/context-category-by-slug.d.mts +33 -4
- package/build/internal/es/context-category-info.d.mts +6 -1
- package/build/internal/es/context-category-list.d.mts +5 -1
- package/build/internal/es/context-product-by-id.d.mts +19 -11
- package/build/internal/es/context-product-by-slug.d.mts +17 -11
- package/build/internal/es/context-product-item.d.mts +35 -2
- package/build/internal/es/context-product-list.d.mts +29 -1
- package/build/internal/es/context-product.d.mts +13 -13
- package/build/internal/es/context-promotion-item.d.mts +5 -1
- package/package.json +2 -2
|
@@ -4010,16 +4010,7 @@ interface Price {
|
|
|
4010
4010
|
formattedAmount: string;
|
|
4011
4011
|
}
|
|
4012
4012
|
//#endregion
|
|
4013
|
-
//#region src/
|
|
4014
|
-
interface InventoryItem {
|
|
4015
|
-
variantId: string;
|
|
4016
|
-
availabilityStatus?: AvailabilityStatusWithLiterals;
|
|
4017
|
-
quantity?: number;
|
|
4018
|
-
trackQuantity: boolean;
|
|
4019
|
-
preorderInfo?: PreorderInfo;
|
|
4020
|
-
}
|
|
4021
|
-
//#endregion
|
|
4022
|
-
//#region src/extensions/product/providers/api/product-groups/product-groups.d.ts
|
|
4013
|
+
//#region src/api/product-groups/product-groups.d.ts
|
|
4023
4014
|
declare enum ProductGroupCustomizationType {
|
|
4024
4015
|
PRODUCT_OPTION = "PRODUCT_OPTION",
|
|
4025
4016
|
MODIFIER = "MODIFIER"
|
|
@@ -4036,6 +4027,15 @@ interface ProductGroupMember {
|
|
|
4036
4027
|
inventoryAvailabilityStatus?: AvailabilityStatus;
|
|
4037
4028
|
}
|
|
4038
4029
|
//#endregion
|
|
4030
|
+
//#region src/domain/inventory/inventory.d.ts
|
|
4031
|
+
interface InventoryItem {
|
|
4032
|
+
variantId: string;
|
|
4033
|
+
availabilityStatus?: AvailabilityStatusWithLiterals;
|
|
4034
|
+
quantity?: number;
|
|
4035
|
+
trackQuantity: boolean;
|
|
4036
|
+
preorderInfo?: PreorderInfo;
|
|
4037
|
+
}
|
|
4038
|
+
//#endregion
|
|
4039
4039
|
//#region src/extensions/product/providers/hooks/use-price/use-price.d.ts
|
|
4040
4040
|
/** Way to buy a subscription product, either one of its subscription plans or a one-time purchase. */
|
|
4041
4041
|
interface SubscriptionPlan {
|
|
@@ -4210,7 +4210,13 @@ declare function useStandaloneProductContextValue({
|
|
|
4210
4210
|
//#region src/extensions/product/providers/product-by-slug-context/product-by-slug-context-provider.d.ts
|
|
4211
4211
|
declare const NO_PRODUCT_SLUG_ERROR = "No product slug is available for the product context";
|
|
4212
4212
|
type ProductBySlugContextImplementation = ReturnType<typeof useStandaloneProductContextValue>;
|
|
4213
|
-
/**
|
|
4213
|
+
/**
|
|
4214
|
+
* The `useProductBySlugContext()` hook provides access to the store product that a product page
|
|
4215
|
+
* shows: its details, prices, media, and stock, and the visitor's selection of options, modifiers,
|
|
4216
|
+
* subscription plan, and quantity. Use it to build a product page's components: show the product,
|
|
4217
|
+
* let visitors choose what to buy, and let them add their selection to the cart, start a checkout,
|
|
4218
|
+
* or sign up for a back-in-stock email.
|
|
4219
|
+
*/
|
|
4214
4220
|
declare function useProductBySlugContext(): ProductContextValue;
|
|
4215
4221
|
/** Loads the product identified by the page URL and supplies its product context. */
|
|
4216
4222
|
declare function ProductBySlugContextProvider({
|