yt-uikit 0.7.351-refactorComboBundle.0 → 0.7.352
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/FixedBundle/SeparateVariantOptions.d.ts +3 -0
- package/dist/esm/components/BundleBlock/FixedBundle/VariantSelectorModal.d.ts +2 -0
- 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 +101 -88
- 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/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/package.json +1 -1
|
@@ -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
|
}
|
|
@@ -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;
|