yt-uikit 0.8.9 → 0.8.11-minicart.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.
@@ -49,6 +49,13 @@ export type Product = {
49
49
  image?: string;
50
50
  options?: string[];
51
51
  };
52
+ type DiscountData = {
53
+ type: "dummy_coupon" | "percentage_discount_coupon" | "amount_discount_coupon" | "fixed_price_collection";
54
+ tiers: {
55
+ minimumQuantity: number;
56
+ discountValue: number;
57
+ };
58
+ } | null;
52
59
  export type BundleConfig = {
53
60
  config: {
54
61
  shop: string;
@@ -59,10 +66,11 @@ export type BundleConfig = {
59
66
  collectionTier: {
60
67
  title: string;
61
68
  tier: number;
62
- minimumQuantity: number;
69
+ maximumQuantity: number;
63
70
  collectionId: string;
64
71
  handle: string;
65
72
  products: Product[];
73
+ discountData: DiscountData;
66
74
  }[];
67
75
  };
68
76
  form?: {
@@ -94,6 +102,9 @@ export type BundleConfig = {
94
102
  hideOutOfStockProducts: boolean;
95
103
  bundleRedirection: "cart-drawer" | "checkout";
96
104
  checkoutPartner: "shopify" | "razorpay" | "shiprocket" | "gokwik" | "breeze" | "zecpay" | "shopflo";
105
+ showTierSteps: boolean;
106
+ headerImage: string;
107
+ stickyBarWidth: "compact" | "full-width";
97
108
  };
98
109
  };
99
110
  interface CollectionBundleProps {
@@ -5,6 +5,7 @@ import { CartOffersCarousalProps } from "./CartOffersCarousel";
5
5
  import { freebieMilestoneProps } from "./NextFreebieRow";
6
6
  import { GSTSectionCustomizationProps } from "./GSTSection";
7
7
  import { BundlePayload } from "../BundleBlock/Bundle";
8
+ import { type FloatingCartDataProps } from "./FloatingCart";
8
9
  export interface RewardCoupon {
9
10
  couponTemplateId: number;
10
11
  name: string;
@@ -192,6 +193,8 @@ export interface CartProps {
192
193
  productRecsCardListVariant: "scroll" | "carousel" | "vertical";
193
194
  showCartTimer?: boolean;
194
195
  showFreebieMilestone?: boolean;
196
+ showFloatingCart?: boolean;
197
+ floatingCartData?: FloatingCartDataProps;
195
198
  cartTimerInMinutes?: number;
196
199
  cartTimerCustomText?: string;
197
200
  imageAspectSelector?: "square" | "portrait";
@@ -0,0 +1,23 @@
1
+ import React from "react";
2
+ import { Checkpoint } from "./Cart";
3
+ export interface FloatingCartProps {
4
+ setIsCartOpen: (isOpen: boolean) => void;
5
+ isCartOpen?: boolean;
6
+ cartCheckpoints?: Checkpoint[];
7
+ customCartProgressBarCriteria?: string;
8
+ floatingCartData?: FloatingCartDataProps;
9
+ effectiveQuantityForProgressBar?: number;
10
+ cartComponentsCornerType?: "rounded" | "sharp";
11
+ cartComponentsCornerRadius?: number;
12
+ }
13
+ export type FloatingCartDataProps = {
14
+ enableFloatingCart: boolean;
15
+ backgroundColor: string;
16
+ bannerBackgroundColor: string;
17
+ textColor: string;
18
+ buttonColor: string;
19
+ bannerFooterText: string;
20
+ showOnPages: string[];
21
+ };
22
+ declare const FloatingCart: React.FC<FloatingCartProps>;
23
+ export default FloatingCart;