yt-uikit 0.7.425-offerTierCustomTextView.0 → 0.7.425-offerTierCustomTextView.2
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/dist/esm/components/BundleBlock/Bundle.d.ts +5 -0
- package/dist/esm/components/BundleBlock/BundleBuilder/BundleBuilder.d.ts +2 -3
- package/dist/esm/components/BundleBlock/BundleBuilder/VariantOptionsModal.d.ts +0 -1
- package/dist/esm/components/BundleBlock/BundleProductDetailsModal/BundleProductDetailsModal.d.ts +0 -1
- package/dist/esm/index.js +65 -63
- package/dist/esm/types/components/BundleBlock/Bundle.d.ts +5 -0
- package/dist/esm/types/components/BundleBlock/BundleBuilder/BundleBuilder.d.ts +2 -3
- package/dist/esm/types/components/BundleBlock/BundleBuilder/VariantOptionsModal.d.ts +0 -1
- package/dist/esm/types/components/BundleBlock/BundleProductDetailsModal/BundleProductDetailsModal.d.ts +0 -1
- package/dist/index.d.ts +5 -0
- package/package.json +1 -1
- package/dist/esm/components/BundleBlock/ProductGridSkeleton/ProductGridSkeleton.d.ts +0 -5
- package/dist/esm/components/BundleBlock/VolumeBundle/temp.d.ts +0 -3
- package/dist/esm/components/Cart/FreebieClaim.d.ts +0 -17
- package/dist/esm/components/Cart/VariantSelectionPopup/MobileVariantPopover.styled.d.ts +0 -49
- package/dist/esm/hooks/useShadowConfetti.d.ts +0 -1
- package/dist/esm/shadowStyles.d.ts +0 -1
- package/dist/esm/types/components/BundleBlock/ProductGridSkeleton/ProductGridSkeleton.d.ts +0 -5
- package/dist/esm/types/components/BundleBlock/VolumeBundle/temp.d.ts +0 -3
- package/dist/esm/types/components/Cart/FreebieClaim.d.ts +0 -17
- package/dist/esm/types/components/Cart/VariantSelectionPopup/MobileVariantPopover.styled.d.ts +0 -49
- package/dist/esm/types/hooks/useShadowConfetti.d.ts +0 -1
- package/dist/esm/types/shadowStyles.d.ts +0 -1
|
@@ -50,6 +50,10 @@ export type VariantNode = {
|
|
|
50
50
|
image: ProductImage;
|
|
51
51
|
availableForSale: boolean;
|
|
52
52
|
inventoryQuantity: number;
|
|
53
|
+
inventoryItem?: {
|
|
54
|
+
tracked?: boolean;
|
|
55
|
+
};
|
|
56
|
+
inventoryPolicy?: "deny" | "continue";
|
|
53
57
|
};
|
|
54
58
|
};
|
|
55
59
|
type SelectedVariantDetails = {
|
|
@@ -83,6 +87,7 @@ export type ProductDetails = {
|
|
|
83
87
|
status: "active" | "archived" | "draft" | "";
|
|
84
88
|
options: ProductOption[];
|
|
85
89
|
onlineStoreUrl: string;
|
|
90
|
+
tracksInventory?: boolean;
|
|
86
91
|
collections: {
|
|
87
92
|
edges: CollectionNode[];
|
|
88
93
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "../bundle.scss";
|
|
2
2
|
import React from "react";
|
|
3
3
|
import { BundlePayload, ProductDetails } from "../Bundle";
|
|
4
|
-
export declare function QuantitySelectorForBundle({ quantity, setQuantity, remainingQuantity, handleAddToBundle, variantId, product, handleRemoveItem, hideAddToBundle,
|
|
4
|
+
export declare function QuantitySelectorForBundle({ quantity, setQuantity, remainingQuantity, handleAddToBundle, variantId, product, handleRemoveItem, hideAddToBundle, selectedVariantInventoryQty, }: {
|
|
5
5
|
quantity: number;
|
|
6
6
|
setQuantity: React.Dispatch<React.SetStateAction<number>>;
|
|
7
7
|
remainingQuantity: number;
|
|
@@ -10,8 +10,7 @@ export declare function QuantitySelectorForBundle({ quantity, setQuantity, remai
|
|
|
10
10
|
product?: ProductDetails;
|
|
11
11
|
handleRemoveItem?: (variantId: string, quantity: number) => void;
|
|
12
12
|
hideAddToBundle?: boolean;
|
|
13
|
-
|
|
14
|
-
selectedVariantInventoryQty: number;
|
|
13
|
+
selectedVariantInventoryQty: number | typeof Infinity;
|
|
15
14
|
}): React.JSX.Element;
|
|
16
15
|
type BundleBuilderProps = {
|
|
17
16
|
bundle: BundlePayload;
|
|
@@ -10,7 +10,6 @@ interface SingleProductVariantOptionsModalProps {
|
|
|
10
10
|
backgroundColor: string;
|
|
11
11
|
};
|
|
12
12
|
onConfirm: (variantId: string) => void;
|
|
13
|
-
disableInventoryTracking?: boolean;
|
|
14
13
|
}
|
|
15
14
|
declare const SingleProductVariantOptionsModal: React.FC<SingleProductVariantOptionsModalProps>;
|
|
16
15
|
export default SingleProductVariantOptionsModal;
|