yt-uikit 0.7.344-refactorBundleBuilder.4 → 0.7.344-refactorBundleBuilder.6
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 +1 -0
- package/dist/esm/components/BundleBlock/BundleBuilder/VariantOptionsModal.d.ts +1 -0
- package/dist/esm/components/BundleBlock/BundleBuilder/bundleBuilder.style.d.ts +0 -5
- package/dist/esm/components/BundleBlock/BundleProductDetailsModal/BundleProductDetailsModal.d.ts +1 -0
- package/dist/esm/components/BundleBlock/FixedBundle/SeparateVariantOptions.d.ts +3 -0
- package/dist/esm/components/BundleBlock/FixedBundle/VariantSelectorModal.d.ts +2 -0
- package/dist/esm/components/BundleBlock/VolumeBundle/volumeBundle.style.d.ts +0 -1
- package/dist/esm/components/Cart/FreebieClaimManager.d.ts +3 -3
- package/dist/esm/components/Cart/FreebieClaimOverlay.d.ts +2 -1
- package/dist/esm/components/Cart/FreebieClaimSection.d.ts +2 -1
- package/dist/esm/components/Cart/MultiStepProgressBar/MultiStepProgressBar.styled.d.ts +4 -1
- package/dist/esm/index.js +393 -355
- package/dist/esm/types/components/BundleBlock/Bundle.d.ts +1 -0
- package/dist/esm/types/components/BundleBlock/BundleBuilder/VariantOptionsModal.d.ts +1 -0
- package/dist/esm/types/components/BundleBlock/BundleBuilder/bundleBuilder.style.d.ts +0 -5
- package/dist/esm/types/components/BundleBlock/BundleProductDetailsModal/BundleProductDetailsModal.d.ts +1 -0
- package/dist/esm/types/components/BundleBlock/FixedBundle/SeparateVariantOptions.d.ts +3 -0
- package/dist/esm/types/components/BundleBlock/FixedBundle/VariantSelectorModal.d.ts +2 -0
- package/dist/esm/types/components/BundleBlock/VolumeBundle/volumeBundle.style.d.ts +0 -1
- package/dist/esm/types/components/Cart/FreebieClaimManager.d.ts +3 -3
- package/dist/esm/types/components/Cart/FreebieClaimOverlay.d.ts +2 -1
- package/dist/esm/types/components/Cart/FreebieClaimSection.d.ts +2 -1
- package/dist/esm/types/components/Cart/MultiStepProgressBar/MultiStepProgressBar.styled.d.ts +4 -1
- package/dist/index.d.ts +1 -0
- package/package.json +1 -1
|
@@ -10,6 +10,7 @@ interface SingleProductVariantOptionsModalProps {
|
|
|
10
10
|
backgroundColor: string;
|
|
11
11
|
};
|
|
12
12
|
onConfirm: (variantId: string) => void;
|
|
13
|
+
disableInventoryTracking?: boolean;
|
|
13
14
|
}
|
|
14
15
|
declare const SingleProductVariantOptionsModal: React.FC<SingleProductVariantOptionsModalProps>;
|
|
15
16
|
export default SingleProductVariantOptionsModal;
|
|
@@ -35,8 +35,3 @@ export declare const AddedButton: import("styled-components/dist/types").IStyled
|
|
|
35
35
|
}>> & string;
|
|
36
36
|
export declare const AddedButtonText: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
37
37
|
export declare const RemoveButton: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
38
|
-
export declare const OutOfStockButton: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<Omit<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, never>, "ref"> & {
|
|
39
|
-
ref?: ((instance: HTMLButtonElement | null) => void) | import("react").RefObject<HTMLButtonElement> | null | undefined;
|
|
40
|
-
}, {
|
|
41
|
-
borderRadius: string;
|
|
42
|
-
}>> & string;
|
package/dist/esm/components/BundleBlock/BundleProductDetailsModal/BundleProductDetailsModal.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ import React from "react";
|
|
|
2
2
|
import { ProductDetails, Customizations } from "../Bundle";
|
|
3
3
|
import "./bundleProductDetailsModal.style.css";
|
|
4
4
|
import "../bundle.scss";
|
|
5
|
+
import "../BundleBuilder/bundleBuilder.style.css";
|
|
5
6
|
type BundleProductDetailsModalProps = {
|
|
6
7
|
handleAddToBundle: (variantId: string, product: ProductDetails, quantity: number) => void;
|
|
7
8
|
selectedProducts: {
|
|
@@ -31,6 +31,9 @@ interface ProductVariantSelectorProps {
|
|
|
31
31
|
variantOptions?: VariantOptions;
|
|
32
32
|
selectedVariants: string[];
|
|
33
33
|
onVariantChange: (variantId: string) => void;
|
|
34
|
+
variantType?: string;
|
|
35
|
+
variantId?: string;
|
|
36
|
+
primaryProductId?: string;
|
|
34
37
|
}
|
|
35
38
|
export declare const ProductVariantSelector: React.FC<ProductVariantSelectorProps>;
|
|
36
39
|
export {};
|
|
@@ -9,6 +9,8 @@ interface VariantSelectorModalProps {
|
|
|
9
9
|
textColor: string;
|
|
10
10
|
backgroundColor: string;
|
|
11
11
|
};
|
|
12
|
+
primaryProductId?: string;
|
|
13
|
+
variantId?: string;
|
|
12
14
|
onVariantChange: (productId: string, variantId: string) => void;
|
|
13
15
|
handleAddToCart: (e: React.MouseEvent<HTMLButtonElement, MouseEvent>) => Promise<void>;
|
|
14
16
|
}
|
|
@@ -68,7 +68,6 @@ export declare const CustomRadio: import("styled-components/dist/types").IStyled
|
|
|
68
68
|
accentColor?: string | undefined;
|
|
69
69
|
}>> & string;
|
|
70
70
|
export declare const ProductImage: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, never>> & string;
|
|
71
|
-
export declare const CTAInfo: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, never>> & string;
|
|
72
71
|
export declare const DropdownItem: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, never>> & string;
|
|
73
72
|
export declare const VariantImage: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, never>> & string;
|
|
74
73
|
export declare const VariantColor: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import { freebieClaimInterface } from "./Cart";
|
|
2
|
+
import { freebieClaimInterface, Checkpoint } from "./Cart";
|
|
3
3
|
interface FreebieClaimManagerProps {
|
|
4
4
|
freebieProductsInCart: any[];
|
|
5
5
|
themeColor?: string;
|
|
@@ -8,9 +8,9 @@ interface FreebieClaimManagerProps {
|
|
|
8
8
|
addFreebieToCart?: (variantId: string, originalAllowedVariantIds?: string[]) => Promise<void>;
|
|
9
9
|
freebiesInCart: string[];
|
|
10
10
|
freebieClaimData?: freebieClaimInterface;
|
|
11
|
-
cartCheckpoints?:
|
|
11
|
+
cartCheckpoints?: Checkpoint[];
|
|
12
12
|
imageAspectSelector?: "square" | "portrait";
|
|
13
|
-
freebieCouponTemplates?:
|
|
13
|
+
freebieCouponTemplates?: Checkpoint[];
|
|
14
14
|
}
|
|
15
15
|
declare const FreebieClaimManager: React.FC<FreebieClaimManagerProps>;
|
|
16
16
|
export default FreebieClaimManager;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
+
import { Checkpoint } from "./Cart";
|
|
2
3
|
interface FreebieClaimOverlayProps {
|
|
3
4
|
freebieProductsInCart: any[];
|
|
4
5
|
maxFreebiesInTier: number;
|
|
@@ -8,7 +9,7 @@ interface FreebieClaimOverlayProps {
|
|
|
8
9
|
primaryTextColor?: string;
|
|
9
10
|
addFreebieToCart: (selectedProductIds: string[]) => Promise<void>;
|
|
10
11
|
imageAspectSelector?: "square" | "portrait";
|
|
11
|
-
freebieCouponTemplates?:
|
|
12
|
+
freebieCouponTemplates?: Checkpoint[];
|
|
12
13
|
freebieClaimData?: any;
|
|
13
14
|
}
|
|
14
15
|
declare const FreebieClaimOverlay: React.FC<FreebieClaimOverlayProps>;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
+
import { Checkpoint } from "./Cart";
|
|
2
3
|
interface FreebieClaimSectionProps {
|
|
3
4
|
freebieProductsInCart: any[];
|
|
4
5
|
themeColor?: string;
|
|
@@ -7,7 +8,7 @@ interface FreebieClaimSectionProps {
|
|
|
7
8
|
addFreebieToCart?: (variantId: string, originalAllowedVariantIds?: string[]) => Promise<void>;
|
|
8
9
|
freebiesInCart: string[];
|
|
9
10
|
imageAspectSelector?: "square" | "portrait";
|
|
10
|
-
freebieCouponTemplates?:
|
|
11
|
+
freebieCouponTemplates?: Checkpoint[];
|
|
11
12
|
maxFreebiesInTier?: number;
|
|
12
13
|
tierName?: string;
|
|
13
14
|
freebieClaimData?: any;
|
|
@@ -34,8 +34,11 @@ export declare const ColoredText: import("styled-components/dist/types").IStyled
|
|
|
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;
|
|
37
|
+
$rightMarginOffsetPx?: number | undefined;
|
|
38
|
+
}>> & string;
|
|
39
|
+
export declare const ContentWrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
40
|
+
$hasWrappedTags?: boolean | undefined;
|
|
37
41
|
}>> & string;
|
|
38
|
-
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;
|
|
39
42
|
export declare const CheckpointWrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
40
43
|
$numberOfCheckpoints: number;
|
|
41
44
|
}>> & string;
|