yt-uikit 0.7.403-feature-product-offer-refactor.35 → 0.7.403-feature-product-offer-refactor.36
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 +4 -1
- package/dist/esm/components/BundleBlock/CollectionBundle/ColllectionBundle.d.ts +2 -0
- package/dist/esm/components/BundleBlock/MixAndMatchBundle/MixAndMatchBundle.d.ts +1 -1
- package/dist/esm/components/BundleBlock/MixAndMatchBundle/mixAndMatchBundle.style.d.ts +8 -9
- package/dist/esm/components/Cart/MultiStepProgressBar/MultiStepUtils.d.ts +1 -0
- package/dist/esm/index.js +632 -489
- package/dist/esm/types/components/BundleBlock/Bundle.d.ts +4 -1
- package/dist/esm/types/components/BundleBlock/CollectionBundle/ColllectionBundle.d.ts +2 -0
- package/dist/esm/types/components/BundleBlock/MixAndMatchBundle/MixAndMatchBundle.d.ts +1 -1
- package/dist/esm/types/components/BundleBlock/MixAndMatchBundle/mixAndMatchBundle.style.d.ts +8 -9
- package/dist/esm/types/components/Cart/MultiStepProgressBar/MultiStepUtils.d.ts +1 -0
- package/dist/index.d.ts +3 -1
- package/package.json +1 -1
|
@@ -163,6 +163,7 @@ type GeneralStyle = {
|
|
|
163
163
|
addOrderNotes: boolean;
|
|
164
164
|
variantTitleSuffix: boolean;
|
|
165
165
|
titleLength: string;
|
|
166
|
+
showDecimalsInBundlePricing?: boolean;
|
|
166
167
|
};
|
|
167
168
|
type VolumeStyle = {
|
|
168
169
|
addtoCartMethod: string;
|
|
@@ -266,7 +267,7 @@ export type BundlePayload = {
|
|
|
266
267
|
percentageOff?: number;
|
|
267
268
|
dealAmount?: number;
|
|
268
269
|
amountOff?: number;
|
|
269
|
-
type: "fixed" | "builder" | "volume" | "mixAndMatch" | "" | "combo";
|
|
270
|
+
type: "fixed" | "builder" | "volume" | "mixAndMatch" | "" | "combo" | "collection";
|
|
270
271
|
minimumQuantity: number;
|
|
271
272
|
showProductDetailsInTracker: boolean;
|
|
272
273
|
coverImageUrl?: string;
|
|
@@ -334,6 +335,7 @@ export type BundlePayload = {
|
|
|
334
335
|
customStoreDetails?: {
|
|
335
336
|
[key: string]: any;
|
|
336
337
|
};
|
|
338
|
+
customProductsQuantity?: number | null;
|
|
337
339
|
reviewRatingType?: "none" | "ratingOnly" | "ratingAndReviewCount";
|
|
338
340
|
appName?: string;
|
|
339
341
|
pageHeader?: {
|
|
@@ -372,6 +374,7 @@ export type BundleProps = {
|
|
|
372
374
|
};
|
|
373
375
|
export declare const currencyPrice: (price: number | string | undefined) => string | undefined;
|
|
374
376
|
export declare const getCurrencySymbol: (genSymbol: string, storeCurrencyCode?: string) => string;
|
|
377
|
+
export declare const optimiseImage: (url: string, width?: number) => string;
|
|
375
378
|
export declare const handleAddToBundle: (variantId: string, product: ProductDetails, quantity: number, selectedItems: {
|
|
376
379
|
variantId: string;
|
|
377
380
|
product: ProductDetails;
|
|
@@ -92,6 +92,8 @@ export type BundleConfig = {
|
|
|
92
92
|
hideSelectedProducts: boolean;
|
|
93
93
|
allowMultipleQty: boolean;
|
|
94
94
|
hideOutOfStockProducts: boolean;
|
|
95
|
+
bundleRedirection: "cart-drawer" | "checkout";
|
|
96
|
+
checkoutPartner: "shopify" | "razorpay" | "shiprocket" | "gokwik" | "breeze" | "zecpay" | "shopflo";
|
|
95
97
|
};
|
|
96
98
|
};
|
|
97
99
|
interface CollectionBundleProps {
|
|
@@ -20,25 +20,24 @@ export declare const ProductBox: import("styled-components/dist/types").IStyledC
|
|
|
20
20
|
isHorizontal?: boolean | undefined;
|
|
21
21
|
infoAlignment?: string | undefined;
|
|
22
22
|
}>> & string;
|
|
23
|
-
export declare const ProductImage: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, {
|
|
24
|
-
isHorizontal?: boolean | undefined;
|
|
25
|
-
}>> & string;
|
|
26
|
-
export declare const ProductInfo: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
27
|
-
isHorizontal?: boolean | undefined;
|
|
28
|
-
}>> & string;
|
|
29
|
-
export declare const ProductTitle: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, never>> & string;
|
|
30
|
-
export declare const ProductVariant: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, never>> & string;
|
|
31
23
|
export declare const EmptyProductBox: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
32
24
|
isHorizontal?: boolean | undefined;
|
|
33
25
|
infoAlignment?: string | undefined;
|
|
34
26
|
}>> & string;
|
|
35
|
-
export declare const
|
|
27
|
+
export declare const ProductImage: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, {
|
|
28
|
+
isHorizontal?: boolean | undefined;
|
|
29
|
+
}>> & string;
|
|
30
|
+
export declare const ProductInfo: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
36
31
|
isHorizontal?: boolean | undefined;
|
|
37
32
|
}>> & string;
|
|
38
33
|
export declare const SelectText: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
39
34
|
isHorizontal?: boolean | undefined;
|
|
40
35
|
infoAlignment?: string | undefined;
|
|
41
36
|
}>> & string;
|
|
37
|
+
export declare const ProductTitle: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, never>> & string;
|
|
38
|
+
export declare const ProductVariant: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, never>> & string;
|
|
39
|
+
export declare const RemoveButtonIcon: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, never>> & string;
|
|
40
|
+
export declare const PlusIcon: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
42
41
|
export declare const AddToCartButton: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, {
|
|
43
42
|
borderRadius?: string | undefined;
|
|
44
43
|
primaryBgColor?: string | undefined;
|
|
@@ -3,3 +3,4 @@ import { Checkpoint } from "../Cart";
|
|
|
3
3
|
import { MultiStepProgressBarProps } from "./types";
|
|
4
4
|
export declare const criteriaCheckpointFieldMap: (customCartProgressBarCriteria: string) => "minimumOrderValue" | "quantityThreshold";
|
|
5
5
|
export declare function processCheckpoint(checkpoint: Checkpoint, index: number, sortedCheckpoints: Checkpoint[], itemCount: number, props: MultiStepProgressBarProps): CheckpointWithProgress;
|
|
6
|
+
export declare function hasAnyProgress(checkpoints: Checkpoint[] | undefined, currentCartAmount: number, effectiveQuantityForProgressBar: number | undefined, customCartProgressBarCriteria: string, itemCount: number): boolean;
|