yt-uikit 0.7.413-tracks-inventory.0 → 0.7.413-tracks-inventory-p.1

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.
@@ -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 = {
@@ -10,7 +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
- selectedVariantInventoryQty: number;
13
+ selectedVariantInventoryQty: number | typeof Infinity;
14
14
  }): React.JSX.Element;
15
15
  type BundleBuilderProps = {
16
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;
@@ -11,7 +11,6 @@ type BundleProductDetailsModalProps = {
11
11
  remainingQuantity: number;
12
12
  hideAddToBundle: boolean;
13
13
  disableQuantitySelector: boolean;
14
- disableInventoryTracking: boolean;
15
14
  themeColor?: string;
16
15
  cornerRadius: string;
17
16
  primaryTextColorCta: string;
package/dist/index.d.ts CHANGED
@@ -123,6 +123,10 @@ type VariantNode = {
123
123
  image: ProductImage;
124
124
  availableForSale: boolean;
125
125
  inventoryQuantity: number;
126
+ inventoryItem?: {
127
+ tracked?: boolean;
128
+ };
129
+ inventoryPolicy?: "deny" | "continue";
126
130
  };
127
131
  };
128
132
  type SelectedVariantDetails = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "yt-uikit",
3
- "version": "0.7.413-tracks-inventory.0",
3
+ "version": "0.7.413-tracks-inventory-p.1",
4
4
  "description": "YourToken UI Kit",
5
5
  "scripts": {
6
6
  "rollup": "tsc && rollup -c",