yt-uikit 0.7.358 → 0.7.359-productFormBundleFix.0
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 +8 -5
- package/dist/esm/components/BundleBlock/ComboBundle.d.ts +11 -0
- package/dist/esm/components/BundleBlock/VolumeBundle/temp.d.ts +3 -0
- package/dist/esm/components/Cart/Cart.d.ts +7 -0
- package/dist/esm/components/Cart/FreebieClaimManager.d.ts +2 -0
- package/dist/esm/components/Cart/FreebieClaimOverlay.d.ts +2 -0
- package/dist/esm/components/Cart/FreebieClaimOverlayCard.d.ts +1 -0
- package/dist/esm/components/Cart/FreebieClaimSection.d.ts +1 -0
- package/dist/esm/components/Cart/FreebieClaimSectionCard.d.ts +1 -0
- package/dist/esm/components/Cart/MultiStepProgressBar/MultiStepProgressBar.styled.d.ts +1 -1
- package/dist/esm/components/Cart/MultiStepProgressBar/SingleTierProgressBar.styled.d.ts +2 -2
- package/dist/esm/components/Cart/StickyCart.d.ts +7 -1
- package/dist/esm/components/Cart/VariantSelectionPopup/DesktopVariantPopup.d.ts +1 -0
- package/dist/esm/components/Cart/VariantSelectionPopup/MobileVariantPopover.d.ts +1 -0
- package/dist/esm/index.js +471 -469
- package/dist/esm/types/components/BundleBlock/Bundle.d.ts +8 -5
- package/dist/esm/types/components/BundleBlock/ComboBundle.d.ts +11 -0
- package/dist/esm/types/components/BundleBlock/VolumeBundle/temp.d.ts +3 -0
- package/dist/esm/types/components/Cart/Cart.d.ts +7 -0
- package/dist/esm/types/components/Cart/FreebieClaimManager.d.ts +2 -0
- package/dist/esm/types/components/Cart/FreebieClaimOverlay.d.ts +2 -0
- package/dist/esm/types/components/Cart/FreebieClaimOverlayCard.d.ts +1 -0
- package/dist/esm/types/components/Cart/FreebieClaimSection.d.ts +1 -0
- package/dist/esm/types/components/Cart/FreebieClaimSectionCard.d.ts +1 -0
- package/dist/esm/types/components/Cart/MultiStepProgressBar/MultiStepProgressBar.styled.d.ts +1 -1
- package/dist/esm/types/components/Cart/MultiStepProgressBar/SingleTierProgressBar.styled.d.ts +2 -2
- package/dist/esm/types/components/Cart/StickyCart.d.ts +7 -1
- package/dist/esm/types/components/Cart/VariantSelectionPopup/DesktopVariantPopup.d.ts +1 -0
- package/dist/esm/types/components/Cart/VariantSelectionPopup/MobileVariantPopover.d.ts +1 -0
- package/dist/esm/types/utils/freebieProductUtils.d.ts +1 -1
- package/dist/esm/types/utils/index.d.ts +1 -0
- package/dist/esm/utils/freebieProductUtils.d.ts +1 -1
- package/dist/esm/utils/index.d.ts +1 -0
- package/dist/index.d.ts +341 -332
- package/package.json +1 -4
|
@@ -80,7 +80,7 @@ export type ProductDetails = {
|
|
|
80
80
|
title: string;
|
|
81
81
|
handle: string;
|
|
82
82
|
featuredMedia: ProductFeaturedMedia;
|
|
83
|
-
status: "
|
|
83
|
+
status: "active" | "archived" | "draft" | "";
|
|
84
84
|
options: ProductOption[];
|
|
85
85
|
onlineStoreUrl: string;
|
|
86
86
|
collections: {
|
|
@@ -105,10 +105,12 @@ export type ProductDetails = {
|
|
|
105
105
|
node: {
|
|
106
106
|
alt: string;
|
|
107
107
|
preview: {
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
108
|
+
image: {
|
|
109
|
+
altText: string;
|
|
110
|
+
width?: number;
|
|
111
|
+
height?: number;
|
|
112
|
+
url: string;
|
|
113
|
+
};
|
|
112
114
|
};
|
|
113
115
|
image: {
|
|
114
116
|
altText: string;
|
|
@@ -163,6 +165,7 @@ type GeneralStyle = {
|
|
|
163
165
|
titleLength: string;
|
|
164
166
|
};
|
|
165
167
|
type VolumeStyle = {
|
|
168
|
+
addtoCartMethod: string;
|
|
166
169
|
titleFontSize: string;
|
|
167
170
|
subtitleFontSize: string;
|
|
168
171
|
titleBackgroundColor: string;
|
|
@@ -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;
|
|
@@ -222,6 +223,12 @@ export interface CartProps {
|
|
|
222
223
|
showApplyCoupon?: boolean;
|
|
223
224
|
enableConfetti?: boolean;
|
|
224
225
|
showCheckoutButtonPaymentIcons?: boolean;
|
|
226
|
+
shouldCheckInventoryQuantity?: boolean;
|
|
227
|
+
comboBundleData?: BundlePayload;
|
|
228
|
+
comboBundleAddToCartFunction?: (selectedItemsSubtotal: number, variantIds?: string[], finalBundlePrice?: number, variantIdPriceMap?: {
|
|
229
|
+
variantId: string;
|
|
230
|
+
price: number;
|
|
231
|
+
}[]) => Promise<void>;
|
|
225
232
|
}
|
|
226
233
|
declare const Cart: React.FC<CartProps>;
|
|
227
234
|
export default Cart;
|
|
@@ -11,6 +11,8 @@ interface FreebieClaimManagerProps {
|
|
|
11
11
|
cartCheckpoints?: Checkpoint[];
|
|
12
12
|
imageAspectSelector?: "square" | "portrait";
|
|
13
13
|
freebieCouponTemplates?: Checkpoint[];
|
|
14
|
+
isCartDrawerOpen?: boolean;
|
|
15
|
+
shouldCheckInventoryQuantity?: boolean;
|
|
14
16
|
}
|
|
15
17
|
declare const FreebieClaimManager: React.FC<FreebieClaimManagerProps>;
|
|
16
18
|
export default FreebieClaimManager;
|
|
@@ -11,6 +11,8 @@ interface FreebieClaimOverlayProps {
|
|
|
11
11
|
imageAspectSelector?: "square" | "portrait";
|
|
12
12
|
freebieCouponTemplates?: Checkpoint[];
|
|
13
13
|
freebieClaimData?: any;
|
|
14
|
+
isCartDrawerOpen?: boolean;
|
|
15
|
+
shouldCheckInventoryQuantity?: boolean;
|
|
14
16
|
}
|
|
15
17
|
declare const FreebieClaimOverlay: React.FC<FreebieClaimOverlayProps>;
|
|
16
18
|
export default FreebieClaimOverlay;
|
|
@@ -4,6 +4,7 @@ interface FreebieClaimOverlayCardProps {
|
|
|
4
4
|
imageAspectSelector?: "square" | "portrait";
|
|
5
5
|
freebieCouponTemplates?: any[];
|
|
6
6
|
accentColor?: string;
|
|
7
|
+
shouldCheckInventoryQuantity?: boolean;
|
|
7
8
|
}
|
|
8
9
|
declare const FreebieClaimOverlayCard: React.FC<FreebieClaimOverlayCardProps>;
|
|
9
10
|
export default FreebieClaimOverlayCard;
|
|
@@ -12,6 +12,7 @@ interface FreebieClaimSectionProps {
|
|
|
12
12
|
maxFreebiesInTier?: number;
|
|
13
13
|
tierName?: string;
|
|
14
14
|
freebieClaimData?: any;
|
|
15
|
+
shouldCheckInventoryQuantity?: boolean;
|
|
15
16
|
}
|
|
16
17
|
declare const FreebieClaimSection: React.FC<FreebieClaimSectionProps>;
|
|
17
18
|
export default FreebieClaimSection;
|
|
@@ -11,6 +11,7 @@ interface FreebieClaimSectionCardProps {
|
|
|
11
11
|
isSelected?: boolean;
|
|
12
12
|
isDisabled?: boolean;
|
|
13
13
|
onToggleSelection?: (productId: string) => void;
|
|
14
|
+
shouldCheckInventoryQuantity?: boolean;
|
|
14
15
|
}
|
|
15
16
|
declare const FreebieClaimSectionCard: React.FC<FreebieClaimSectionCardProps>;
|
|
16
17
|
export default FreebieClaimSectionCard;
|
|
@@ -30,7 +30,7 @@ export declare const MultiTierNextRewardWrapper: import("styled-components/dist/
|
|
|
30
30
|
$ctaButtonBackgroundColor?: string | undefined;
|
|
31
31
|
}>> & string;
|
|
32
32
|
export declare const ColoredText: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {
|
|
33
|
-
ctaButtonBackgroundColor?: string | undefined;
|
|
33
|
+
$ctaButtonBackgroundColor?: string | undefined;
|
|
34
34
|
}>> & string;
|
|
35
35
|
export declare const ProgressBarWrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
36
36
|
$showMOVForProgressTiers: boolean;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
export declare const ColoredText: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {
|
|
3
|
-
ctaButtonBackgroundColor?: string | undefined;
|
|
3
|
+
$ctaButtonBackgroundColor?: string | undefined;
|
|
4
4
|
}>> & string;
|
|
5
5
|
export declare const SingleTierWrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
6
6
|
$isCompleted?: boolean | undefined;
|
|
@@ -11,7 +11,7 @@ export declare const SingleTierWrapper: import("styled-components/dist/types").I
|
|
|
11
11
|
}>> & string;
|
|
12
12
|
export declare const Container: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
13
13
|
export declare const SingleTierNextRewardWrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {
|
|
14
|
-
ctaButtonTextColor?: string | undefined;
|
|
14
|
+
$ctaButtonTextColor?: string | undefined;
|
|
15
15
|
$ctaButtonBackgroundColor?: string | undefined;
|
|
16
16
|
}>> & string;
|
|
17
17
|
export declare const ProgressBarWrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
@@ -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;
|
|
@@ -13,6 +13,7 @@ type DesktopVariantPopupProps = {
|
|
|
13
13
|
productClaimCtaButtonText?: string;
|
|
14
14
|
backgroundSubdued?: string;
|
|
15
15
|
primaryTextColor?: string;
|
|
16
|
+
shouldCheckInventoryQuantity?: boolean;
|
|
16
17
|
};
|
|
17
18
|
declare const DesktopVariantPopup: React.ForwardRefExoticComponent<DesktopVariantPopupProps & React.RefAttributes<HTMLDivElement>>;
|
|
18
19
|
export default DesktopVariantPopup;
|
|
@@ -13,6 +13,7 @@ type MobileVariantPopupProps = {
|
|
|
13
13
|
productClaimCtaButtonText?: string;
|
|
14
14
|
backgroundSubdued?: string;
|
|
15
15
|
primaryTextColor?: string;
|
|
16
|
+
shouldCheckInventoryQuantity?: boolean;
|
|
16
17
|
};
|
|
17
18
|
declare const MobileVariantPopup: React.ForwardRefExoticComponent<MobileVariantPopupProps & React.RefAttributes<HTMLDivElement>>;
|
|
18
19
|
export default MobileVariantPopup;
|