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.
@@ -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 {
@@ -1,5 +1,5 @@
1
1
  import React from "react";
2
- import { BundlePayload } from "../Bundle";
2
+ import { type BundlePayload } from "../Bundle";
3
3
  interface MixAndMatchBundleProps {
4
4
  bundle: BundlePayload;
5
5
  addToCartFunction: any;
@@ -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 PlusIcon: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
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;
package/dist/index.d.ts CHANGED
@@ -236,6 +236,7 @@ type GeneralStyle = {
236
236
  addOrderNotes: boolean;
237
237
  variantTitleSuffix: boolean;
238
238
  titleLength: string;
239
+ showDecimalsInBundlePricing?: boolean;
239
240
  };
240
241
  type VolumeStyle = {
241
242
  addtoCartMethod: string;
@@ -339,7 +340,7 @@ type BundlePayload = {
339
340
  percentageOff?: number;
340
341
  dealAmount?: number;
341
342
  amountOff?: number;
342
- type: "fixed" | "builder" | "volume" | "mixAndMatch" | "" | "combo";
343
+ type: "fixed" | "builder" | "volume" | "mixAndMatch" | "" | "combo" | "collection";
343
344
  minimumQuantity: number;
344
345
  showProductDetailsInTracker: boolean;
345
346
  coverImageUrl?: string;
@@ -407,6 +408,7 @@ type BundlePayload = {
407
408
  customStoreDetails?: {
408
409
  [key: string]: any;
409
410
  };
411
+ customProductsQuantity?: number | null;
410
412
  reviewRatingType?: "none" | "ratingOnly" | "ratingAndReviewCount";
411
413
  appName?: string;
412
414
  pageHeader?: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "yt-uikit",
3
- "version": "0.7.403-feature-product-offer-refactor.35",
3
+ "version": "0.7.403-feature-product-offer-refactor.36",
4
4
  "description": "YourToken UI Kit",
5
5
  "scripts": {
6
6
  "rollup": "tsc && rollup -c",