yt-uikit 0.10.138 → 0.10.140
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/VolumeBundle/VolumeBundle.d.ts +4 -0
- package/dist/esm/components/Cart/Cart.d.ts +0 -13
- package/dist/esm/components/Cart/CartProductsList.d.ts +0 -2
- package/dist/esm/components/Cart/EmptyCart.d.ts +1 -2
- package/dist/esm/components/Cart/FreebieClaimManager.d.ts +0 -1
- package/dist/esm/components/Cart/FreebieClaimSection.d.ts +0 -2
- package/dist/esm/components/Cart/GiftWrap.d.ts +1 -3
- package/dist/esm/components/Cart/LoyaltyGuestCTA.d.ts +0 -2
- package/dist/esm/components/Cart/MultiStepProgressBar/MultiStepIcon.d.ts +1 -1
- package/dist/esm/components/Cart/MultiStepProgressBar/types.d.ts +0 -2
- package/dist/esm/components/Cart/ProductCard.d.ts +1 -2
- package/dist/esm/components/Cart/QuantitySelector.d.ts +1 -2
- package/dist/esm/components/Cart/RegionSpecificDelivery.d.ts +0 -3
- package/dist/esm/components/Cart/StickyCart.d.ts +5 -5
- package/dist/esm/components/Cart/VariantSelectionPopup/DesktopVariantPopup.d.ts +0 -3
- package/dist/esm/components/Cart/VariantSelectionPopup/DesktopVariantPopup.styled.d.ts +0 -12
- package/dist/esm/components/Cart/VariantSelectionPopup/MobileVariantPopover.d.ts +0 -3
- package/dist/esm/index.js +120 -214
- package/dist/esm/utils/converter.d.ts +1 -0
- package/dist/esm/utils/index.d.ts +4 -1
- package/package.json +1 -1
|
@@ -34,19 +34,6 @@ export interface freebieClaimInterface {
|
|
|
34
34
|
showVariantsInClaimSection: boolean;
|
|
35
35
|
showVariantSelectionDropdownInProductClaim: boolean;
|
|
36
36
|
}
|
|
37
|
-
export type CartLevelDiscountApplication = {
|
|
38
|
-
type: string;
|
|
39
|
-
key: string;
|
|
40
|
-
title: string;
|
|
41
|
-
description: string | null;
|
|
42
|
-
value: string;
|
|
43
|
-
created_at: string;
|
|
44
|
-
value_type: string;
|
|
45
|
-
allocation_method: string;
|
|
46
|
-
target_selection: string;
|
|
47
|
-
target_type: string;
|
|
48
|
-
total_allocated_amount: number;
|
|
49
|
-
};
|
|
50
37
|
export type LoyaltyDiscount = {
|
|
51
38
|
type: string;
|
|
52
39
|
key: string;
|
|
@@ -13,11 +13,9 @@ type CartProductsListProps = {
|
|
|
13
13
|
[key: string]: string;
|
|
14
14
|
}) => Promise<any>;
|
|
15
15
|
handleDecrement: (lineItemKey: string | number, newQuantity?: number) => Promise<any>;
|
|
16
|
-
isDev?: boolean;
|
|
17
16
|
themeColor?: string;
|
|
18
17
|
primaryTextColor?: string;
|
|
19
18
|
secondaryTextColor?: string;
|
|
20
|
-
freeProduct?: any;
|
|
21
19
|
themeTextColor?: string;
|
|
22
20
|
showEditOptionOnProducts?: boolean;
|
|
23
21
|
productPercentageOffMapping: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { CartProps } from "./Cart";
|
|
3
|
-
export default function EmptyCart({ showLoyaltyCta, exploreCTAColor, emptyCartTitle, emptyCartDescription, isUserSignedIn, joinNowFunction, exploreCtaRedirectLink, themeColor, emptyCartButtons, cartComponentsCornerRadius, cartComponentsCornerType, themeTextColor, isRecProductsListValid, recProductsList, addCartItem, productRecsCtaButtonText, ctaButtonBackgroundColor, ctaButtonTextColor, primaryTextColor, secondaryTextColor, showVariantSelectionDropdownInProductRecs, variantPickerUiVariant,
|
|
3
|
+
export default function EmptyCart({ showLoyaltyCta, exploreCTAColor, emptyCartTitle, emptyCartDescription, isUserSignedIn, joinNowFunction, exploreCtaRedirectLink, themeColor, emptyCartButtons, cartComponentsCornerRadius, cartComponentsCornerType, themeTextColor, isRecProductsListValid, recProductsList, addCartItem, productRecsCtaButtonText, ctaButtonBackgroundColor, ctaButtonTextColor, primaryTextColor, secondaryTextColor, showVariantSelectionDropdownInProductRecs, variantPickerUiVariant, emptyProductRecsTitleText, backgroundSubdued, showEmptyCartRecommendations, tertiaryColor, tertiaryTextColor, }: {
|
|
4
4
|
showLoyaltyCta: boolean;
|
|
5
5
|
exploreCTAColor: any;
|
|
6
6
|
emptyCartTitle: string;
|
|
@@ -26,7 +26,6 @@ export default function EmptyCart({ showLoyaltyCta, exploreCTAColor, emptyCartTi
|
|
|
26
26
|
secondaryTextColor?: CartProps["secondaryTextColor"];
|
|
27
27
|
showVariantSelectionDropdownInProductRecs?: CartProps["showVariantSelectionDropdownInProductRecs"];
|
|
28
28
|
variantPickerUiVariant?: "button" | "dropdown";
|
|
29
|
-
productRecsTitleText?: CartProps["productRecsTitleText"];
|
|
30
29
|
emptyProductRecsTitleText?: CartProps["emptyProductRecsTitleText"];
|
|
31
30
|
backgroundSubdued?: CartProps["backgroundSubdued"];
|
|
32
31
|
showEmptyCartRecommendations?: boolean;
|
|
@@ -7,7 +7,6 @@ interface FreebieClaimManagerProps {
|
|
|
7
7
|
themeTextColor?: string;
|
|
8
8
|
primaryTextColor?: string;
|
|
9
9
|
addFreebieToCart?: (variantId: string, originalAllowedVariantIds?: string[], rewardContext?: FreebieRewardContext) => Promise<void>;
|
|
10
|
-
freebiesInCart: string[];
|
|
11
10
|
freebieClaimData?: freebieClaimInterface;
|
|
12
11
|
cartCheckpoints?: Checkpoint[];
|
|
13
12
|
imageAspectSelector?: "square" | "portrait";
|
|
@@ -7,11 +7,9 @@ interface FreebieClaimSectionProps {
|
|
|
7
7
|
themeTextColor?: string;
|
|
8
8
|
primaryTextColor?: string;
|
|
9
9
|
addFreebieToCart?: (variantId: string, originalAllowedVariantIds?: string[], rewardContext?: FreebieRewardContext) => Promise<void>;
|
|
10
|
-
freebiesInCart: string[];
|
|
11
10
|
imageAspectSelector?: "square" | "portrait";
|
|
12
11
|
freebieCouponTemplates?: Checkpoint[];
|
|
13
12
|
maxFreebiesInTier?: number;
|
|
14
|
-
tierName?: string;
|
|
15
13
|
freebieClaimData?: any;
|
|
16
14
|
}
|
|
17
15
|
declare const FreebieClaimSection: React.FC<FreebieClaimSectionProps>;
|
|
@@ -1,15 +1,13 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
type GiftWrapProps = {
|
|
3
3
|
themeColor?: string;
|
|
4
|
-
id?: string;
|
|
5
4
|
detail?: any;
|
|
6
5
|
showPrice?: boolean;
|
|
7
6
|
showProductImage?: boolean;
|
|
8
|
-
errorText?: string;
|
|
9
7
|
customText?: string;
|
|
10
8
|
showGiftIcon?: boolean;
|
|
11
9
|
addCartItem?: (variant: any, quantity?: number, triggeredFrom?: string) => Promise<any>;
|
|
12
10
|
removeCartItem?: (variantId: string, triggeredFrom?: string) => Promise<any>;
|
|
13
11
|
};
|
|
14
|
-
export default function GiftWrap({ themeColor,
|
|
12
|
+
export default function GiftWrap({ themeColor, showPrice, detail, customText, showGiftIcon, showProductImage, addCartItem, removeCartItem, }: GiftWrapProps): React.JSX.Element | null;
|
|
15
13
|
export {};
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
type LoyaltyGuestCTAProps = {
|
|
3
3
|
cartSigninCTAMainText?: string;
|
|
4
|
-
signinCTAButtonVisible?: boolean;
|
|
5
4
|
guestLoyaltyPercentage: number;
|
|
6
5
|
joinNowFunction: () => void;
|
|
7
|
-
themeColor?: string;
|
|
8
6
|
ctaButtonBackgroundColor?: string;
|
|
9
7
|
ctaButtonTextColor?: string;
|
|
10
8
|
primaryTextColor?: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { IconType } from "react-icons";
|
|
3
|
-
export declare const MultiStepIcon: (couponType: string, color: string, numberOfCheckpoints: number, freeProductIconType: string
|
|
3
|
+
export declare const MultiStepIcon: (couponType: string, color: string, numberOfCheckpoints: number, freeProductIconType: string) => React.ReactElement;
|
|
4
4
|
export declare const progressBarCheckpointFreeProductIconMap: {
|
|
5
5
|
[key: string]: IconType;
|
|
6
6
|
};
|
|
@@ -6,7 +6,6 @@ export interface MultiStepProgressBarProps {
|
|
|
6
6
|
currentCartAmount: number;
|
|
7
7
|
checkpoints: Checkpoint[];
|
|
8
8
|
themeColor?: string;
|
|
9
|
-
themeTextColor?: string;
|
|
10
9
|
handleCheckpointCrossed?: (checkpoint: Checkpoint, cartAmount: number) => Promise<any>;
|
|
11
10
|
customCartProgressBarCriteria: string;
|
|
12
11
|
primaryTextColor?: string;
|
|
@@ -36,7 +35,6 @@ export interface CheckpointIconProps {
|
|
|
36
35
|
themeColor?: string;
|
|
37
36
|
checkpointsLength: number;
|
|
38
37
|
progressBarFreeProductIconType?: string;
|
|
39
|
-
themeTextColor?: string;
|
|
40
38
|
ctaButtonTextColor?: string;
|
|
41
39
|
}
|
|
42
40
|
export interface NextRewardMessageProps {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import type { cartConfigInterface } from "./CartDrawer";
|
|
3
3
|
import type { RatingsData } from "./Cart";
|
|
4
|
-
declare const _default: React.MemoExoticComponent<({ product: variant, handleDecrement, handleIncrement, removeCartItem, addCartItem,
|
|
4
|
+
declare const _default: React.MemoExoticComponent<({ product: variant, handleDecrement, handleIncrement, removeCartItem, addCartItem, themeColor, primaryTextColor, secondaryTextColor, tertiaryColor, tertiaryTextColor, showQtySelector, themeTextColor, showEditOptionOnProducts, percentageOff, removeFreebieFromCart, showDeleteOnFreebies, imageAspectSelector, cartComponentsCornerType, cartComponentsCornerRadius, backgroundSubdued, backgroundColor, showDiscountOnMRP, freeLabelText, showVariantsInClaimSection, cartConfigData, ratingsData, getProductDetailsByVariantId, isLargeScreen, }: {
|
|
5
5
|
product: any;
|
|
6
6
|
addCartItem?: ((product: any, quantity?: number | undefined, triggeredFrom?: string | undefined) => Promise<any>) | undefined;
|
|
7
7
|
removeCartItem?: ((lineItemKey: string, triggeredFrom?: string | undefined, ytRequest?: boolean | undefined) => Promise<any>) | undefined;
|
|
@@ -9,7 +9,6 @@ declare const _default: React.MemoExoticComponent<({ product: variant, handleDec
|
|
|
9
9
|
[key: string]: string;
|
|
10
10
|
} | undefined) => Promise<any>) | undefined;
|
|
11
11
|
handleDecrement?: ((lineItemKey: string | number, newQuantity?: number | undefined) => Promise<any>) | undefined;
|
|
12
|
-
isDev?: boolean | undefined;
|
|
13
12
|
themeColor?: string | undefined;
|
|
14
13
|
primaryTextColor?: string | undefined;
|
|
15
14
|
secondaryTextColor?: string | undefined;
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import "./shared.scss";
|
|
3
|
-
export declare const QuantitySelector: ({ value, handleItemQuantityDecrement, handleItemQuantityIncrement,
|
|
3
|
+
export declare const QuantitySelector: ({ value, handleItemQuantityDecrement, handleItemQuantityIncrement, themeColor, cartComponentsCornerType, cartComponentsCornerRadius, backgroundSubdued, }: {
|
|
4
4
|
value: number;
|
|
5
5
|
handleItemQuantityIncrement: () => Promise<void>;
|
|
6
6
|
handleItemQuantityDecrement: () => Promise<void>;
|
|
7
|
-
isDev?: boolean | undefined;
|
|
8
7
|
themeColor?: string | undefined;
|
|
9
8
|
cartComponentsCornerType?: "rounded" | "sharp" | undefined;
|
|
10
9
|
cartComponentsCornerRadius?: number | undefined;
|
|
@@ -27,13 +27,9 @@ export declare const defaultStickyCartCustomizationData: stickyCartCustomization
|
|
|
27
27
|
export type StickyAddToCartProps = {
|
|
28
28
|
showStickyCart: boolean;
|
|
29
29
|
product: any;
|
|
30
|
-
addCartItem?: (product: any, quantity?: number, triggeredFrom?: string, freebieReplace?: boolean) => Promise<any>;
|
|
31
|
-
onSetLoading?: (setLoadingFn: (isLoading: boolean, showLoader: boolean, showSkeletonLoader?: boolean, showLoyaltyCtaLoading?: boolean) => void) => void;
|
|
32
30
|
themeColor?: string;
|
|
33
31
|
themeTextColor?: string;
|
|
34
32
|
cartData: any;
|
|
35
|
-
isCartOpen: boolean;
|
|
36
|
-
setIsCartOpen: (isCartOpen: boolean) => void;
|
|
37
33
|
ctaButtonBackgroundColor?: string;
|
|
38
34
|
ctaButtonTextColor?: string;
|
|
39
35
|
addToStickyCart?: (variantId: string, quantity: number) => Promise<void>;
|
|
@@ -63,6 +59,10 @@ export type StickyAddToCartProps = {
|
|
|
63
59
|
variantId: string;
|
|
64
60
|
quantity: number;
|
|
65
61
|
}[];
|
|
62
|
+
volumeBundlePagePrices?: {
|
|
63
|
+
original: number;
|
|
64
|
+
discounted: number;
|
|
65
|
+
};
|
|
66
66
|
};
|
|
67
|
-
declare const StickyAddToCart: ({ showStickyCart, product,
|
|
67
|
+
declare const StickyAddToCart: ({ showStickyCart, product, themeColor, cartData, ctaButtonBackgroundColor, ctaButtonTextColor, addToStickyCart, cartComponentsCornerType, cartComponentsCornerRadius, themeTextColor, stickyCartCustomizationData, checkoutFunction, backgroundColor, primaryTextColor, comboBundleData, comboBundleAddToCartFunction, volumeBundleCurrentTier, volumeBundleData, volumeBundleAddToCartFunction, volumeBundleSelectedVariants, volumeBundlePagePrices, }: StickyAddToCartProps) => React.JSX.Element | null;
|
|
68
68
|
export default StickyAddToCart;
|
|
@@ -6,14 +6,11 @@ type DesktopVariantPopupProps = {
|
|
|
6
6
|
addCartItem?: (variantId: string, quantity?: number, triggeredFrom?: string, freebieReplace?: boolean, productHandle?: string) => Promise<any>;
|
|
7
7
|
getProductDetailsByVariantId?: (handle: string, variantId?: string) => Promise<any>;
|
|
8
8
|
themeColor?: string;
|
|
9
|
-
cartComponentsCornerType?: "rounded" | "sharp";
|
|
10
|
-
cartComponentsCornerRadius?: number;
|
|
11
9
|
backgroundColor?: string;
|
|
12
10
|
removeFreebieFromCart?: (lineItemKey: string) => Promise<void>;
|
|
13
11
|
freebieClaimAddToCart?: (variantId: string, originalAllowedVariantIds?: string[], rewardContext?: FreebieRewardContext) => Promise<void>;
|
|
14
12
|
stealDealAddToCart?: (variantId: string, originalAllowedVariantIds?: string[], rewardContext?: FreebieRewardContext) => Promise<void>;
|
|
15
13
|
productClaimCtaButtonText?: string;
|
|
16
|
-
backgroundSubdued?: string;
|
|
17
14
|
primaryTextColor?: string;
|
|
18
15
|
};
|
|
19
16
|
declare const DesktopVariantPopup: React.ForwardRefExoticComponent<DesktopVariantPopupProps & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -5,11 +5,6 @@ export declare const ModalContainer: import("styled-components/dist/types").ISty
|
|
|
5
5
|
$backgroundColor?: string | undefined;
|
|
6
6
|
$themeColor?: string | undefined;
|
|
7
7
|
}>> & string;
|
|
8
|
-
export declare const VariantSelect: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").SelectHTMLAttributes<HTMLSelectElement>, HTMLSelectElement>, {
|
|
9
|
-
$themeColor?: string | undefined;
|
|
10
|
-
$cornerRadius?: number | undefined;
|
|
11
|
-
}>> & string;
|
|
12
|
-
export declare const VariantLabel: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").LabelHTMLAttributes<HTMLLabelElement>, HTMLLabelElement>, never>> & string;
|
|
13
8
|
export declare const LoaderWrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
14
9
|
export declare const ContentWrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
15
10
|
export declare const HeaderSection: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
@@ -25,16 +20,10 @@ export declare const Price: import("styled-components/dist/types").IStyledCompon
|
|
|
25
20
|
$primaryTextColor?: string | undefined;
|
|
26
21
|
}>> & string;
|
|
27
22
|
export declare const ComparePrice: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, never>> & string;
|
|
28
|
-
export declare const ViewDetailsLink: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>, never>> & string;
|
|
29
|
-
export declare const OptionsContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
30
|
-
export declare const ActionContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
31
23
|
export declare const CartButton: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, {
|
|
32
24
|
$themeColor: string;
|
|
33
25
|
}>> & string;
|
|
34
|
-
export declare const OptionContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
35
26
|
export declare const OptionContainerDesktop: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
36
|
-
export declare const OptionLabel: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
37
|
-
export declare const VariantOptions: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
38
27
|
export declare const VariantOption: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, {
|
|
39
28
|
$isSelected?: boolean | undefined;
|
|
40
29
|
$isDisabled?: boolean | undefined;
|
|
@@ -45,7 +34,6 @@ export declare const VariantOption: import("styled-components/dist/types").IStyl
|
|
|
45
34
|
}>> & string;
|
|
46
35
|
export declare const OptionLabelDesktop: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
47
36
|
export declare const SelectedOptionBadge: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, never>> & string;
|
|
48
|
-
export declare const OptionLabelSelected: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
49
37
|
export declare const VariantOptionsContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
50
38
|
export declare const PriceAndQuantityContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
51
39
|
export declare const ColorVariantButton: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, {
|
|
@@ -6,14 +6,11 @@ type MobileVariantPopupProps = {
|
|
|
6
6
|
addCartItem?: (variantId: string, quantity?: number, triggeredFrom?: string, freebieReplace?: boolean, productHandle?: string) => Promise<any>;
|
|
7
7
|
getProductDetailsByVariantId?: (handle: string, variantId?: string) => Promise<any>;
|
|
8
8
|
themeColor?: string;
|
|
9
|
-
cartComponentsCornerType?: "rounded" | "sharp";
|
|
10
|
-
cartComponentsCornerRadius?: number;
|
|
11
9
|
backgroundColor: string;
|
|
12
10
|
removeFreebieFromCart?: (lineItemKey: string) => Promise<void>;
|
|
13
11
|
freebieClaimAddToCart?: (variantId: string, originalAllowedVariantIds?: string[], rewardContext?: FreebieRewardContext) => Promise<void>;
|
|
14
12
|
stealDealAddToCart?: (variantId: string, originalAllowedVariantIds?: string[], rewardContext?: FreebieRewardContext) => Promise<void>;
|
|
15
13
|
productClaimCtaButtonText?: string;
|
|
16
|
-
backgroundSubdued?: string;
|
|
17
14
|
primaryTextColor?: string;
|
|
18
15
|
};
|
|
19
16
|
declare const MobileVariantPopup: React.ForwardRefExoticComponent<MobileVariantPopupProps & React.RefAttributes<HTMLDivElement>>;
|