yt-uikit 0.10.46 → 0.10.48

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.
@@ -319,6 +319,7 @@ export type BundlePayload = {
319
319
  amountOff?: number;
320
320
  type: "fixed" | "builder" | "volume" | "mixAndMatch" | "" | "combo" | "collection";
321
321
  minimumQuantity: number;
322
+ maximumQuantity?: number | null;
322
323
  showProductDetailsInTracker: boolean;
323
324
  coverImageUrl?: string;
324
325
  mobileCoverImageUrl?: string;
@@ -4,7 +4,7 @@ import { AnalyticsEventParams, BundlePayload, CursorData, ProductData, ProductDe
4
4
  import { FilterGroup } from "./SortAndFilter";
5
5
  export declare function QuantitySelectorForBundle({ quantity, setQuantity, remainingQuantity, handleAddToBundle, variantId, product, handleRemoveItem, hideAddToBundle, selectedVariantInventoryQty, }: {
6
6
  quantity: number;
7
- setQuantity: React.Dispatch<React.SetStateAction<number>>;
7
+ setQuantity?: React.Dispatch<React.SetStateAction<number>>;
8
8
  remainingQuantity: number;
9
9
  handleAddToBundle?: (variantId: string, product: ProductDetails, quantity: number) => void;
10
10
  variantId?: string;
@@ -1,5 +1,5 @@
1
1
  import React from "react";
2
- import { ProductDetails, Customizations, VariantOptions } from "../Bundle";
2
+ import { ProductDetails, Customizations, VariantOptions, BundlePayload } from "../Bundle";
3
3
  import "../bundle.scss";
4
4
  type BundleProductDetailsModalProps = {
5
5
  handleAddToBundle: (variantId: string, product: ProductDetails, quantity: number) => void;
@@ -32,6 +32,14 @@ type BundleProductDetailsModalProps = {
32
32
  isFreebieTier?: boolean;
33
33
  showFreebieTierProductPrices?: boolean;
34
34
  bundleVariantOptions?: VariantOptions;
35
+ onVariantSelect?: (variantId: string, product: ProductDetails) => void;
36
+ bundleType?: string;
37
+ bundle?: BundlePayload;
38
+ bundleDiscountType?: string;
39
+ bundleDiscountValue?: number | null;
40
+ totalPriceSum?: number | string;
41
+ dealPrice?: number | string;
42
+ totalSelectedOriginal?: number;
35
43
  };
36
44
  declare const BundleProductDetailsModal: React.ForwardRefExoticComponent<BundleProductDetailsModalProps & React.RefAttributes<HTMLDivElement>>;
37
45
  export default BundleProductDetailsModal;
@@ -24,4 +24,4 @@ declare global {
24
24
  } | undefined;
25
25
  }
26
26
  }
27
- export default function VolumeBundle({ bundle, addToCartFunction, currentProductId, dispatchAnalyticsEvent, }: BundleProps): React.JSX.Element;
27
+ export default function VolumeBundle({ bundle: originalBundle, addToCartFunction, currentProductId, dispatchAnalyticsEvent, }: BundleProps): React.JSX.Element;
@@ -4,14 +4,10 @@ import { LoyaltyDiscount } from "./Cart";
4
4
  export declare const LoyaltyCtaProgressBar: () => React.JSX.Element;
5
5
  type LoyaltyAppliedCTAProps = {
6
6
  removeDiscount: () => Promise<void>;
7
- isDev?: boolean;
8
7
  themeColor?: string;
9
- ctaButtonBackgroundColor?: string;
10
- ctaButtonTextColor?: string;
11
8
  primaryTextColor?: string;
12
9
  secondaryTextColor?: string;
13
10
  loyaltyDiscount: LoyaltyDiscount;
14
- pointsToBeUsed: number;
15
11
  showCartLevelAltPay?: boolean;
16
12
  };
17
13
  declare const LoyaltyAppliedCTA: React.FC<LoyaltyAppliedCTAProps>;
@@ -5,15 +5,11 @@ type LoyaltyApplyCTAProps = {
5
5
  pointsToBeUsed: number;
6
6
  applyDiscount: () => Promise<void>;
7
7
  themeColor?: string;
8
- ctaButtonBackgroundColor?: string;
9
- ctaButtonTextColor?: string;
10
8
  primaryTextColor?: string;
11
- secondaryTextColor?: string;
12
9
  redemptionMinimumOrderValue?: number;
13
10
  redemptionMinimumOrderValueStatus?: boolean;
14
11
  coinName?: string;
15
12
  showCartLevelAltPay?: boolean;
16
- redemptionMultiplier?: number | null;
17
13
  };
18
14
  declare const LoyaltyApplyCTA: React.FC<LoyaltyApplyCTAProps>;
19
15
  export default LoyaltyApplyCTA;