yt-uikit 0.7.378 → 0.7.379

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.
@@ -1,5 +1,16 @@
1
1
  import React from "react";
2
2
  import { BundleProps } from "./Bundle";
3
+ declare global {
4
+ interface Window {
5
+ ytComboBundle?: {
6
+ bundle: BundleProps["bundle"];
7
+ addToCart: (selectedItemsSubtotal: number, variantIds?: string[], finalBundlePrice?: number, variantIdPriceMap?: {
8
+ variantId: string;
9
+ price: number;
10
+ }[]) => Promise<void>;
11
+ } | undefined;
12
+ }
13
+ }
3
14
  import "./bundle.scss";
4
15
  declare const ComboBundle: React.FC<BundleProps>;
5
16
  export default ComboBundle;
@@ -4,6 +4,7 @@ import { stickyCartCustomizationDataProps } from "./StickyCart";
4
4
  import { CartOffersCarousalProps } from "./CartOffersCarousel";
5
5
  import { freebieMilestoneProps } from "./NextFreebieRow";
6
6
  import { GSTSectionCustomizationProps } from "./GSTSection";
7
+ import { BundlePayload } from "../BundleBlock/Bundle";
7
8
  export interface RewardCoupon {
8
9
  couponTemplateId: number;
9
10
  name: string;
@@ -223,6 +224,11 @@ export interface CartProps {
223
224
  enableConfetti?: boolean;
224
225
  showCheckoutButtonPaymentIcons?: boolean;
225
226
  shouldCheckInventoryQuantity?: boolean;
227
+ comboBundleData?: BundlePayload;
228
+ comboBundleAddToCartFunction?: (selectedItemsSubtotal: number, variantIds?: string[], finalBundlePrice?: number, variantIdPriceMap?: {
229
+ variantId: string;
230
+ price: number;
231
+ }[]) => Promise<void>;
226
232
  }
227
233
  declare const Cart: React.FC<CartProps>;
228
234
  export default Cart;
@@ -1,4 +1,5 @@
1
1
  import React from "react";
2
+ import { BundlePayload } from "../BundleBlock/Bundle";
2
3
  export type stickyCartCustomizationDataProps = {
3
4
  showPrice: boolean;
4
5
  productImage?: {
@@ -41,6 +42,11 @@ export type StickyAddToCartProps = {
41
42
  checkoutFunction?: (event: any) => Promise<any>;
42
43
  backgroundColor?: string;
43
44
  primaryTextColor?: string;
45
+ comboBundleData?: BundlePayload;
46
+ comboBundleAddToCartFunction?: (selectedItemsSubtotal: number, variantIds?: string[], finalBundlePrice?: number, variantIdPriceMap?: {
47
+ variantId: string;
48
+ price: number;
49
+ }[]) => Promise<void>;
44
50
  };
45
- declare const StickyAddToCart: ({ showStickyCart, product, addCartItem, onSetLoading, themeColor, cartData, isCartOpen, setIsCartOpen, ctaButtonBackgroundColor, ctaButtonTextColor, addToStickyCart, cartComponentsCornerType, cartComponentsCornerRadius, themeTextColor, stickyCartCustomizationData, checkoutFunction, backgroundColor, primaryTextColor, }: StickyAddToCartProps) => React.JSX.Element | null;
51
+ declare const StickyAddToCart: ({ showStickyCart, product, addCartItem, onSetLoading, themeColor, cartData, isCartOpen, setIsCartOpen, ctaButtonBackgroundColor, ctaButtonTextColor, addToStickyCart, cartComponentsCornerType, cartComponentsCornerRadius, themeTextColor, stickyCartCustomizationData, checkoutFunction, backgroundColor, primaryTextColor, comboBundleData, comboBundleAddToCartFunction, }: StickyAddToCartProps) => React.JSX.Element | null;
46
52
  export default StickyAddToCart;