yt-uikit 0.8.71 → 0.8.72-optimistic.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.
Files changed (120) hide show
  1. package/README.md +94 -94
  2. package/dist/esm/atoms/bundleBuilderProductDetailsAtom.d.ts +4 -4
  3. package/dist/esm/atoms/cartDataAtom.d.ts +3 -3
  4. package/dist/esm/atoms/cartLoadingAtom.d.ts +22 -22
  5. package/dist/esm/atoms/cartTimer.d.ts +2 -2
  6. package/dist/esm/atoms/dateAtom.d.ts +1 -1
  7. package/dist/esm/atoms/freebieClaimModalAtom.d.ts +7 -7
  8. package/dist/esm/atoms/giftWrap.d.ts +2 -2
  9. package/dist/esm/atoms/gstCompanyNameAtom.d.ts +1 -1
  10. package/dist/esm/atoms/gstInputAtom.d.ts +1 -1
  11. package/dist/esm/atoms/maxQtyErrorAtom.d.ts +3 -3
  12. package/dist/esm/atoms/multiClaimSelectionAtom.d.ts +25 -25
  13. package/dist/esm/atoms/noteInputAtom.d.ts +3 -3
  14. package/dist/esm/atoms/postalCodeAtom.d.ts +1 -1
  15. package/dist/esm/atoms/shippingAtom.d.ts +8 -8
  16. package/dist/esm/atoms/showGSTInputAtom.d.ts +1 -1
  17. package/dist/esm/atoms/variantSelectionModalAtom.d.ts +25 -25
  18. package/dist/esm/components/BundleBlock/Bundle.d.ts +420 -420
  19. package/dist/esm/components/BundleBlock/BundleBuilder/BundleBuilder.d.ts +45 -45
  20. package/dist/esm/components/BundleBlock/BundleBuilder/ResponsiveBgImage.d.ts +9 -9
  21. package/dist/esm/components/BundleBlock/BundleBuilder/SortAndFilter.d.ts +69 -69
  22. package/dist/esm/components/BundleBlock/BundleBuilder/VariantOptionsModal.d.ts +28 -28
  23. package/dist/esm/components/BundleBlock/BundleBuilder/bundleBuilder.style.d.ts +37 -37
  24. package/dist/esm/components/BundleBlock/BundleBuilderTracker/BundleBuilderTracker.d.ts +53 -53
  25. package/dist/esm/components/BundleBlock/BundleBuilderTracker/bundleBuilderTracker.style.d.ts +77 -77
  26. package/dist/esm/components/BundleBlock/BundleProductDetailsModal/BundleProductDetailsModal.d.ts +37 -37
  27. package/dist/esm/components/BundleBlock/BundleProductDetailsModal/bundleProductDetailsModal.style.d.ts +10 -10
  28. package/dist/esm/components/BundleBlock/CollectionBundle/CategoryFilter.d.ts +10 -10
  29. package/dist/esm/components/BundleBlock/CollectionBundle/ColllectionBundle.d.ts +126 -126
  30. package/dist/esm/components/BundleBlock/CollectionBundle/FileUpload.d.ts +15 -15
  31. package/dist/esm/components/BundleBlock/CollectionBundle/LoadingSpinner.d.ts +2 -2
  32. package/dist/esm/components/BundleBlock/CollectionBundle/ProductDetailsModal.d.ts +15 -15
  33. package/dist/esm/components/BundleBlock/ComboBundle.d.ts +17 -17
  34. package/dist/esm/components/BundleBlock/FixedBundle/FixedBundle.d.ts +4 -4
  35. package/dist/esm/components/BundleBlock/FixedBundle/SeparateVariantOptions.d.ts +45 -45
  36. package/dist/esm/components/BundleBlock/FixedBundle/VariantSelectorModal.d.ts +22 -22
  37. package/dist/esm/components/BundleBlock/FixedBundle/fixedBundle.style.d.ts +90 -90
  38. package/dist/esm/components/BundleBlock/Loader.d.ts +5 -5
  39. package/dist/esm/components/BundleBlock/MixAndMatchBundle/MixAndMatchBundle.d.ts +9 -9
  40. package/dist/esm/components/BundleBlock/MixAndMatchBundle/mixAndMatchBundle.style.d.ts +86 -86
  41. package/dist/esm/components/BundleBlock/VolumeBundle/VolumeBundle.d.ts +27 -27
  42. package/dist/esm/components/BundleBlock/VolumeBundle/volumeBundle.style.d.ts +80 -80
  43. package/dist/esm/components/BundleBlock/index.d.ts +1 -1
  44. package/dist/esm/components/Cart/ApplyCoupon.d.ts +13 -13
  45. package/dist/esm/components/Cart/Bundle.d.ts +6 -6
  46. package/dist/esm/components/Cart/Cart.d.ts +239 -241
  47. package/dist/esm/components/Cart/CartDrawer.d.ts +25 -25
  48. package/dist/esm/components/Cart/CartOffersCarousel.d.ts +48 -48
  49. package/dist/esm/components/Cart/CartProductsList.d.ts +43 -45
  50. package/dist/esm/components/Cart/CartTimer.d.ts +8 -8
  51. package/dist/esm/components/Cart/CheckoutSection.d.ts +39 -39
  52. package/dist/esm/components/Cart/CouponSelection.d.ts +15 -15
  53. package/dist/esm/components/Cart/DatePicker.d.ts +10 -10
  54. package/dist/esm/components/Cart/EmptyCart.d.ts +33 -33
  55. package/dist/esm/components/Cart/FloatingCart.d.ts +24 -24
  56. package/dist/esm/components/Cart/FooterSections.d.ts +6 -6
  57. package/dist/esm/components/Cart/FreebieClaimManager.d.ts +17 -17
  58. package/dist/esm/components/Cart/FreebieClaimOverlay.d.ts +17 -17
  59. package/dist/esm/components/Cart/FreebieClaimOverlayCard.d.ts +10 -10
  60. package/dist/esm/components/Cart/FreebieClaimSection.d.ts +17 -17
  61. package/dist/esm/components/Cart/FreebieClaimSectionCard.d.ts +16 -16
  62. package/dist/esm/components/Cart/GSTSection.d.ts +15 -15
  63. package/dist/esm/components/Cart/GiftWrap.d.ts +15 -15
  64. package/dist/esm/components/Cart/InlineCartOfferInfoText.d.ts +10 -10
  65. package/dist/esm/components/Cart/LoyaltyAppliedCTA.d.ts +19 -19
  66. package/dist/esm/components/Cart/LoyaltyApplyCTA.d.ts +18 -18
  67. package/dist/esm/components/Cart/LoyaltyBadge.d.ts +10 -10
  68. package/dist/esm/components/Cart/LoyaltyGuestCTA.d.ts +17 -17
  69. package/dist/esm/components/Cart/MultiStepProgressBar/CheckpointConfetti.d.ts +11 -11
  70. package/dist/esm/components/Cart/MultiStepProgressBar/CheckpointIcon.d.ts +3 -3
  71. package/dist/esm/components/Cart/MultiStepProgressBar/CheckpointTooltip.d.ts +3 -3
  72. package/dist/esm/components/Cart/MultiStepProgressBar/MultiStepIcon.d.ts +9 -9
  73. package/dist/esm/components/Cart/MultiStepProgressBar/MultiStepProgressBar.d.ts +5 -5
  74. package/dist/esm/components/Cart/MultiStepProgressBar/MultiStepProgressBar.styled.d.ts +45 -45
  75. package/dist/esm/components/Cart/MultiStepProgressBar/MultiStepUtils.d.ts +6 -6
  76. package/dist/esm/components/Cart/MultiStepProgressBar/MultiTierProgressBar.d.ts +4 -4
  77. package/dist/esm/components/Cart/MultiStepProgressBar/MutiTierNextRewardMessage.d.ts +3 -3
  78. package/dist/esm/components/Cart/MultiStepProgressBar/NextRewardMessage.d.ts +3 -3
  79. package/dist/esm/components/Cart/MultiStepProgressBar/SingleTierProgressBar.d.ts +4 -4
  80. package/dist/esm/components/Cart/MultiStepProgressBar/SingleTierProgressBar.styled.d.ts +22 -22
  81. package/dist/esm/components/Cart/MultiStepProgressBar/SingletTierNextRewardMessage.d.ts +3 -3
  82. package/dist/esm/components/Cart/MultiStepProgressBar/types.d.ts +55 -55
  83. package/dist/esm/components/Cart/NextFreebieRow.d.ts +19 -19
  84. package/dist/esm/components/Cart/NoteSection.d.ts +8 -8
  85. package/dist/esm/components/Cart/ProductCard.d.ts +28 -30
  86. package/dist/esm/components/Cart/ProductRecCard.d.ts +20 -20
  87. package/dist/esm/components/Cart/ProductRecList.d.ts +23 -23
  88. package/dist/esm/components/Cart/ProgressBarCartLoader.d.ts +7 -7
  89. package/dist/esm/components/Cart/QuantitySelector.d.ts +12 -12
  90. package/dist/esm/components/Cart/RegionSpecificDelivery.d.ts +17 -17
  91. package/dist/esm/components/Cart/RewardPointsPreview.d.ts +10 -10
  92. package/dist/esm/components/Cart/StandardDelivery.d.ts +11 -11
  93. package/dist/esm/components/Cart/StealDealSection.d.ts +14 -14
  94. package/dist/esm/components/Cart/StickyCart.d.ts +64 -64
  95. package/dist/esm/components/Cart/SubtotalSection.d.ts +13 -13
  96. package/dist/esm/components/Cart/VariantSelectionPopup/DesktopVariantPopup.d.ts +19 -19
  97. package/dist/esm/components/Cart/VariantSelectionPopup/DesktopVariantPopup.styled.d.ts +60 -60
  98. package/dist/esm/components/Cart/VariantSelectionPopup/MobileVariantPopover.d.ts +19 -19
  99. package/dist/esm/components/Cart/index.d.ts +1 -1
  100. package/dist/esm/components/LoyaltyPageBlock/LoyaltyPageBlock.d.ts +64 -64
  101. package/dist/esm/components/Nudge/LeadGenerationNudge.d.ts +15 -15
  102. package/dist/esm/components/Nudge/Nudge.d.ts +40 -40
  103. package/dist/esm/components/Nudge/index.d.ts +1 -1
  104. package/dist/esm/components/ProductOffersBlock/ProductOffersCoupon.d.ts +12 -12
  105. package/dist/esm/components/ProductOffersBlock/ProductOffersList.d.ts +12 -12
  106. package/dist/esm/components/ProductOffersBlock/ProductOffersTermsMobilePopover.d.ts +10 -10
  107. package/dist/esm/components/ProductOffersBlock/ProductOffersTermsPopup.d.ts +10 -10
  108. package/dist/esm/components/ProductOffersBlock/ProductsOffers.d.ts +40 -40
  109. package/dist/esm/components/SpinnerWheel/SpinnerWheel.d.ts +23 -23
  110. package/dist/esm/components/SpinnerWheel/WheelSection.d.ts +9 -9
  111. package/dist/esm/components/SpinnerWheel/index.d.ts +1 -1
  112. package/dist/esm/components/index.d.ts +7 -7
  113. package/dist/esm/index.d.ts +1 -1
  114. package/dist/esm/index.js +6 -6
  115. package/dist/esm/utils/converter.d.ts +2 -2
  116. package/dist/esm/utils/customVariantOptions.d.ts +20 -20
  117. package/dist/esm/utils/freebieProductUtils.d.ts +28 -28
  118. package/dist/esm/utils/freebieUtils.d.ts +5 -5
  119. package/dist/esm/utils/index.d.ts +14 -14
  120. package/package.json +96 -96
@@ -1,241 +1,239 @@
1
- import React from "react";
2
- import { stickyCartCustomizationDataProps } from "./StickyCart";
3
- import { CartOffersCarousalProps } from "./CartOffersCarousel";
4
- import { freebieMilestoneProps } from "./NextFreebieRow";
5
- import { GSTSectionCustomizationProps } from "./GSTSection";
6
- import { BundlePayload } from "../BundleBlock/Bundle";
7
- import { type FloatingCartDataProps } from "./FloatingCart";
8
- export interface Checkpoint {
9
- couponTemplateId: number;
10
- couponType: string;
11
- minimumOrderValue: number;
12
- name: string;
13
- quantityThreshold: number;
14
- isDummyCouponTemplate?: boolean;
15
- customerGetsProductIds?: {
16
- ids: string[];
17
- };
18
- discountValue?: number;
19
- _allVariantIds: string[];
20
- maxFreebiesInTier?: number;
21
- }
22
- export interface freebieClaimInterface {
23
- freebieSectionTitle: string;
24
- productClaimCtaButtonText: string;
25
- type: "section" | "overlay";
26
- allowOverlayClose: boolean;
27
- freeLabelText?: string;
28
- }
29
- export type CartLevelDiscountApplication = {
30
- type: string;
31
- key: string;
32
- title: string;
33
- description: string | null;
34
- value: string;
35
- created_at: string;
36
- value_type: string;
37
- allocation_method: string;
38
- target_selection: string;
39
- target_type: string;
40
- total_allocated_amount: number;
41
- };
42
- export type LoyaltyDiscount = {
43
- type: string;
44
- key: string;
45
- title: string;
46
- description: string | null;
47
- value: string;
48
- created_at: string;
49
- value_type: string;
50
- allocation_method: string;
51
- target_selection: string;
52
- target_type: string;
53
- total_allocated_amount: number;
54
- };
55
- export interface RewardCoupon {
56
- couponTemplateId: number;
57
- name: string;
58
- couponType: string;
59
- discountPercentage: number | null;
60
- discountValue: number | null;
61
- minimumOrderValue: number | null;
62
- pointsRequired: number | null;
63
- allowedCollections?: {
64
- ids: string[];
65
- };
66
- resolvedCollectionNames?: string[];
67
- isEligible?: boolean;
68
- quantityThreshold?: number | null;
69
- customCartProgressBarCriteria?: string;
70
- }
71
- export interface CartProps {
72
- isOpen: boolean;
73
- setIsOpen: React.Dispatch<React.SetStateAction<boolean>>;
74
- backdrop?: boolean;
75
- backgroundColor: string;
76
- backgroundSubdued?: string;
77
- tertiaryColor?: string;
78
- tertiaryTextColor?: string;
79
- exploreCTAColor: string;
80
- emptyCartTitle: string;
81
- emptyCartDescription?: string;
82
- emptyCartButtons?: Array<{
83
- title: string;
84
- link: string;
85
- }>;
86
- checkoutFontSize: number | string;
87
- cartTitle: string;
88
- cartData?: any;
89
- switchWidthVariant?: boolean;
90
- addCartItem?: (product: any, quantity?: number, triggeredFrom?: string, freebieReplace?: boolean, productHandle?: string) => Promise<any>;
91
- removeCartItem: (lineItemKey: string, triggeredFrom?: string, ytRequest?: boolean) => Promise<any>;
92
- handleIncrement: (productId: number, newQuantity: number, properties?: {
93
- [key: string]: string;
94
- }) => Promise<any>;
95
- handleDecrement: (productId: number, newQuantity?: number) => Promise<any>;
96
- bundleProducts?: any;
97
- showBundle?: boolean;
98
- isUserSignedIn?: boolean;
99
- loyaltyIcon?: string;
100
- discountAmountOff?: number;
101
- pointsToBeUsed?: number;
102
- rewardMultiplier?: number;
103
- redemptionMultiplier?: number;
104
- removeDiscount?: () => Promise<any>;
105
- applyDiscount?: () => Promise<any>;
106
- discountApplied?: boolean;
107
- joinNowFunction?: () => void;
108
- checkoutFunction: (templateId?: number) => Promise<any>;
109
- guestLoyaltyPercentage?: number;
110
- showToggleButton?: boolean;
111
- isDev?: boolean;
112
- recProductsList?: any[];
113
- showMultiStepProgressBar?: boolean;
114
- cartCheckpoints?: Checkpoint[];
115
- showCartLevelAltPay?: boolean;
116
- redemptionRate: number;
117
- pointsRewardRate: number;
118
- exploreCtaRedirectLink?: string;
119
- discountAmountApplied?: number;
120
- minimumCartValue?: number;
121
- discountInCheckoutButton?: boolean | string;
122
- isStickyCheckout?: boolean;
123
- handleCheckpointCrossed?: (checkpoint: Checkpoint, cartAmount: number) => Promise<any>;
124
- customCartProgressBarCriteria?: string;
125
- primaryTextColor?: string;
126
- secondaryTextColor?: string;
127
- themeColor?: string;
128
- themeTextColor?: string;
129
- checkoutButtonColor?: string;
130
- ctaButtonBackgroundColor?: string;
131
- ctaButtonTextColor?: string;
132
- showProductRecsOnMobile?: boolean;
133
- showProductRecsOnDesktop?: boolean;
134
- productRecsTitleText?: string;
135
- productRecsCtaButtonText?: string;
136
- showGSTOption?: boolean;
137
- gstNumber?: string;
138
- companyName?: string;
139
- applyGSTToCart?: (gstNumber: string, companyName: string) => Promise<any>;
140
- showMOVForProgressTiers?: boolean;
141
- freeProduct?: any;
142
- showLoyaltyCta?: boolean;
143
- freeProductAdjustedCartTotal?: number;
144
- minimumOrderValueToAvailDiscount?: number;
145
- signinCTAButtonVisible?: boolean;
146
- cartSigninCTAMainText?: string;
147
- showNoteOption?: boolean;
148
- note?: string;
149
- applyNoteToCart?: (note: string) => Promise<any>;
150
- inlineCartOfferInfoText?: string;
151
- inlineCartOfferInfoRedirectLink?: string;
152
- cartOfferTermsAndConditionsText?: string;
153
- showEditOptionOnProducts?: boolean;
154
- getProductDetailsByVariantId?: (handle: string, variantId?: string) => Promise<any>;
155
- onSetLoading?: (setLoadingFn: (isLoading: boolean, showLoader: boolean, showSkeletonLoader?: boolean, showLoyaltyCtaLoading?: boolean) => void) => void;
156
- showVariantSelectionDropdownInProductRecs?: boolean;
157
- originalCartSubtotal?: number;
158
- freebieProductsInCart?: any;
159
- currentTier?: number;
160
- showFreebieClaim?: boolean;
161
- addFreebieToCart?: (variantId: string) => Promise<void>;
162
- freebiesInCart?: string[];
163
- effectiveQuantityForProgressBar?: number;
164
- productPercentageOffMapping: {
165
- [variantId: string]: number;
166
- };
167
- removeFreebieFromCart?: (lineItemKey: string) => Promise<void>;
168
- postalCodeList?: number[];
169
- enableGeoLocationDeliveryRestriction?: boolean;
170
- applyPostalCodeAndDeliverySlotToCart?: (deliveryType: string, postalCode?: string, deliverySlot?: string) => Promise<any>;
171
- showDeleteOnFreebies?: boolean;
172
- freebieCouponTemplates?: Checkpoint[];
173
- freebieFlowCheckpoints?: Checkpoint[];
174
- freebieClaimData?: freebieClaimInterface;
175
- showStickyAddToCart?: boolean;
176
- stickyCartLineItem?: any;
177
- stickyCartCustomizationData?: stickyCartCustomizationDataProps;
178
- stickyCartLineItemQuantity?: number;
179
- postalCodeBasedItemTrackingParameter?: "specific-tags" | "all-products";
180
- enableSlotPicker?: boolean;
181
- deliveryHeaderTitle?: string;
182
- deliveryAvailableText?: string;
183
- deliveryNotAvailableText?: string;
184
- giftWrapSetupData?: any;
185
- giftWrapProductDetail?: any;
186
- progressBarFreeProductIconType?: "tshirt" | "gift" | "box" | "cup";
187
- addToStickyCart?: (variantId: string, quantity: number) => Promise<void>;
188
- enableCustomCartOnCartPage?: boolean;
189
- isCartPage?: boolean;
190
- productRecsCardLayout: "horizontal" | "vertical";
191
- productRecsCardListVariant: "scroll" | "carousel" | "vertical";
192
- showCartTimer?: boolean;
193
- showFreebieMilestone?: boolean;
194
- showFloatingCart?: boolean;
195
- floatingCartData?: FloatingCartDataProps;
196
- cartTimerInMinutes?: number;
197
- cartTimerCustomText?: string;
198
- imageAspectSelector?: "square" | "portrait";
199
- cartComponentsCornerType?: "rounded" | "sharp";
200
- cartComponentsCornerRadius?: number;
201
- cartOffersCarousalData?: CartOffersCarousalProps;
202
- freebieMilestoneData?: freebieMilestoneProps;
203
- cartOffersCarouselHeight?: number;
204
- stickyBarBuyNowFunction?: (variantId: string, quantity: number) => Promise<void>;
205
- gstSectionCustomizationData?: GSTSectionCustomizationProps;
206
- noteSectionTitle?: string;
207
- checkoutSectionMessage?: string;
208
- checkoutSectionMessageRedirectLink?: string;
209
- checkoutSectionMessageDisplay?: "ribbon" | "tag" | "bookmark";
210
- showVariantSelectionDropdownInProductClaim?: boolean;
211
- productClaimCtaButtonText?: string;
212
- loyaltyDiscount?: LoyaltyDiscount | undefined;
213
- brandTokenName?: string;
214
- showDiscountOnMRP?: boolean;
215
- prefixMessageText?: string;
216
- suffixMessageText?: string;
217
- successMessageText?: string;
218
- toggleDecimal?: boolean;
219
- disableCheckoutButton: boolean;
220
- showEmptyCartRecommendations?: boolean;
221
- emptyProductRecsTitleText?: string;
222
- checkoutButtonBottomSpacing?: number;
223
- showPoweredByBadge?: boolean;
224
- applyCouponCode?: (code: string) => Promise<void>;
225
- showApplyCoupon?: boolean;
226
- enableConfetti?: boolean;
227
- showCheckoutButtonPaymentIcons?: boolean;
228
- showCouponOptions?: boolean;
229
- rewardCoupons?: RewardCoupon[];
230
- comboBundleData?: BundlePayload;
231
- comboBundleAddToCartFunction?: (selectedItemsSubtotal: number, variantIds?: string[], finalBundlePrice?: number, variantIdPriceMap?: {
232
- variantId: string;
233
- price: number;
234
- }[]) => Promise<void>;
235
- stealDealCheckpoints?: Checkpoint[];
236
- stealDealProducts?: any[];
237
- stealDealAddToCart?: (variantId: string, originalAllowedVariantIds?: string[]) => Promise<void>;
238
- useCartShell?: boolean;
239
- }
240
- declare const Cart: React.FC<CartProps>;
241
- export default Cart;
1
+ import React from "react";
2
+ import { stickyCartCustomizationDataProps } from "./StickyCart";
3
+ import { CartOffersCarousalProps } from "./CartOffersCarousel";
4
+ import { freebieMilestoneProps } from "./NextFreebieRow";
5
+ import { GSTSectionCustomizationProps } from "./GSTSection";
6
+ import { BundlePayload } from "../BundleBlock/Bundle";
7
+ import { type FloatingCartDataProps } from "./FloatingCart";
8
+ export interface Checkpoint {
9
+ couponTemplateId: number;
10
+ couponType: string;
11
+ minimumOrderValue: number;
12
+ name: string;
13
+ quantityThreshold: number;
14
+ isDummyCouponTemplate?: boolean;
15
+ customerGetsProductIds?: {
16
+ ids: string[];
17
+ };
18
+ discountValue?: number;
19
+ _allVariantIds: string[];
20
+ maxFreebiesInTier?: number;
21
+ }
22
+ export interface freebieClaimInterface {
23
+ freebieSectionTitle: string;
24
+ productClaimCtaButtonText: string;
25
+ type: "section" | "overlay";
26
+ allowOverlayClose: boolean;
27
+ freeLabelText?: string;
28
+ }
29
+ export type CartLevelDiscountApplication = {
30
+ type: string;
31
+ key: string;
32
+ title: string;
33
+ description: string | null;
34
+ value: string;
35
+ created_at: string;
36
+ value_type: string;
37
+ allocation_method: string;
38
+ target_selection: string;
39
+ target_type: string;
40
+ total_allocated_amount: number;
41
+ };
42
+ export type LoyaltyDiscount = {
43
+ type: string;
44
+ key: string;
45
+ title: string;
46
+ description: string | null;
47
+ value: string;
48
+ created_at: string;
49
+ value_type: string;
50
+ allocation_method: string;
51
+ target_selection: string;
52
+ target_type: string;
53
+ total_allocated_amount: number;
54
+ };
55
+ export interface RewardCoupon {
56
+ couponTemplateId: number;
57
+ name: string;
58
+ couponType: string;
59
+ discountPercentage: number | null;
60
+ discountValue: number | null;
61
+ minimumOrderValue: number | null;
62
+ pointsRequired: number | null;
63
+ allowedCollections?: {
64
+ ids: string[];
65
+ };
66
+ resolvedCollectionNames?: string[];
67
+ isEligible?: boolean;
68
+ quantityThreshold?: number | null;
69
+ customCartProgressBarCriteria?: string;
70
+ }
71
+ export interface CartProps {
72
+ isOpen: boolean;
73
+ setIsOpen: React.Dispatch<React.SetStateAction<boolean>>;
74
+ backdrop?: boolean;
75
+ backgroundColor: string;
76
+ backgroundSubdued?: string;
77
+ tertiaryColor?: string;
78
+ tertiaryTextColor?: string;
79
+ exploreCTAColor: string;
80
+ emptyCartTitle: string;
81
+ emptyCartDescription?: string;
82
+ emptyCartButtons?: Array<{
83
+ title: string;
84
+ link: string;
85
+ }>;
86
+ checkoutFontSize: number | string;
87
+ cartTitle: string;
88
+ cartData?: any;
89
+ switchWidthVariant?: boolean;
90
+ addCartItem?: (product: any, quantity?: number, triggeredFrom?: string, freebieReplace?: boolean, productHandle?: string) => Promise<any>;
91
+ removeCartItem: (lineItemKey: string, triggeredFrom?: string, ytRequest?: boolean) => Promise<any>;
92
+ handleIncrement?: (productId: string | number, newQuantity: number) => Promise<any>;
93
+ handleDecrement: (productId: number, newQuantity?: number) => Promise<any>;
94
+ bundleProducts?: any;
95
+ showBundle?: boolean;
96
+ isUserSignedIn?: boolean;
97
+ loyaltyIcon?: string;
98
+ discountAmountOff?: number;
99
+ pointsToBeUsed?: number;
100
+ rewardMultiplier?: number;
101
+ redemptionMultiplier?: number;
102
+ removeDiscount?: () => Promise<any>;
103
+ applyDiscount?: () => Promise<any>;
104
+ discountApplied?: boolean;
105
+ joinNowFunction?: () => void;
106
+ checkoutFunction: (templateId?: number) => Promise<any>;
107
+ guestLoyaltyPercentage?: number;
108
+ showToggleButton?: boolean;
109
+ isDev?: boolean;
110
+ recProductsList?: any[];
111
+ showMultiStepProgressBar?: boolean;
112
+ cartCheckpoints?: Checkpoint[];
113
+ showCartLevelAltPay?: boolean;
114
+ redemptionRate: number;
115
+ pointsRewardRate: number;
116
+ exploreCtaRedirectLink?: string;
117
+ discountAmountApplied?: number;
118
+ minimumCartValue?: number;
119
+ discountInCheckoutButton?: boolean | string;
120
+ isStickyCheckout?: boolean;
121
+ handleCheckpointCrossed?: (checkpoint: Checkpoint, cartAmount: number) => Promise<any>;
122
+ customCartProgressBarCriteria?: string;
123
+ primaryTextColor?: string;
124
+ secondaryTextColor?: string;
125
+ themeColor?: string;
126
+ themeTextColor?: string;
127
+ checkoutButtonColor?: string;
128
+ ctaButtonBackgroundColor?: string;
129
+ ctaButtonTextColor?: string;
130
+ showProductRecsOnMobile?: boolean;
131
+ showProductRecsOnDesktop?: boolean;
132
+ productRecsTitleText?: string;
133
+ productRecsCtaButtonText?: string;
134
+ showGSTOption?: boolean;
135
+ gstNumber?: string;
136
+ companyName?: string;
137
+ applyGSTToCart?: (gstNumber: string, companyName: string) => Promise<any>;
138
+ showMOVForProgressTiers?: boolean;
139
+ freeProduct?: any;
140
+ showLoyaltyCta?: boolean;
141
+ freeProductAdjustedCartTotal?: number;
142
+ minimumOrderValueToAvailDiscount?: number;
143
+ signinCTAButtonVisible?: boolean;
144
+ cartSigninCTAMainText?: string;
145
+ showNoteOption?: boolean;
146
+ note?: string;
147
+ applyNoteToCart?: (note: string) => Promise<any>;
148
+ inlineCartOfferInfoText?: string;
149
+ inlineCartOfferInfoRedirectLink?: string;
150
+ cartOfferTermsAndConditionsText?: string;
151
+ showEditOptionOnProducts?: boolean;
152
+ getProductDetailsByVariantId?: (handle: string, variantId?: string) => Promise<any>;
153
+ onSetLoading?: (setLoadingFn: (isLoading: boolean, showLoader: boolean, showSkeletonLoader?: boolean, showLoyaltyCtaLoading?: boolean) => void) => void;
154
+ showVariantSelectionDropdownInProductRecs?: boolean;
155
+ originalCartSubtotal?: number;
156
+ freebieProductsInCart?: any;
157
+ currentTier?: number;
158
+ showFreebieClaim?: boolean;
159
+ addFreebieToCart?: (variantId: string) => Promise<void>;
160
+ freebiesInCart?: string[];
161
+ effectiveQuantityForProgressBar?: number;
162
+ productPercentageOffMapping: {
163
+ [variantId: string]: number;
164
+ };
165
+ removeFreebieFromCart?: (lineItemKey: string) => Promise<void>;
166
+ postalCodeList?: number[];
167
+ enableGeoLocationDeliveryRestriction?: boolean;
168
+ applyPostalCodeAndDeliverySlotToCart?: (deliveryType: string, postalCode?: string, deliverySlot?: string) => Promise<any>;
169
+ showDeleteOnFreebies?: boolean;
170
+ freebieCouponTemplates?: Checkpoint[];
171
+ freebieFlowCheckpoints?: Checkpoint[];
172
+ freebieClaimData?: freebieClaimInterface;
173
+ showStickyAddToCart?: boolean;
174
+ stickyCartLineItem?: any;
175
+ stickyCartCustomizationData?: stickyCartCustomizationDataProps;
176
+ stickyCartLineItemQuantity?: number;
177
+ postalCodeBasedItemTrackingParameter?: "specific-tags" | "all-products";
178
+ enableSlotPicker?: boolean;
179
+ deliveryHeaderTitle?: string;
180
+ deliveryAvailableText?: string;
181
+ deliveryNotAvailableText?: string;
182
+ giftWrapSetupData?: any;
183
+ giftWrapProductDetail?: any;
184
+ progressBarFreeProductIconType?: "tshirt" | "gift" | "box" | "cup";
185
+ addToStickyCart?: (variantId: string, quantity: number) => Promise<void>;
186
+ enableCustomCartOnCartPage?: boolean;
187
+ isCartPage?: boolean;
188
+ productRecsCardLayout: "horizontal" | "vertical";
189
+ productRecsCardListVariant: "scroll" | "carousel" | "vertical";
190
+ showCartTimer?: boolean;
191
+ showFreebieMilestone?: boolean;
192
+ showFloatingCart?: boolean;
193
+ floatingCartData?: FloatingCartDataProps;
194
+ cartTimerInMinutes?: number;
195
+ cartTimerCustomText?: string;
196
+ imageAspectSelector?: "square" | "portrait";
197
+ cartComponentsCornerType?: "rounded" | "sharp";
198
+ cartComponentsCornerRadius?: number;
199
+ cartOffersCarousalData?: CartOffersCarousalProps;
200
+ freebieMilestoneData?: freebieMilestoneProps;
201
+ cartOffersCarouselHeight?: number;
202
+ stickyBarBuyNowFunction?: (variantId: string, quantity: number) => Promise<void>;
203
+ gstSectionCustomizationData?: GSTSectionCustomizationProps;
204
+ noteSectionTitle?: string;
205
+ checkoutSectionMessage?: string;
206
+ checkoutSectionMessageRedirectLink?: string;
207
+ checkoutSectionMessageDisplay?: "ribbon" | "tag" | "bookmark";
208
+ showVariantSelectionDropdownInProductClaim?: boolean;
209
+ productClaimCtaButtonText?: string;
210
+ loyaltyDiscount?: LoyaltyDiscount | undefined;
211
+ brandTokenName?: string;
212
+ showDiscountOnMRP?: boolean;
213
+ prefixMessageText?: string;
214
+ suffixMessageText?: string;
215
+ successMessageText?: string;
216
+ toggleDecimal?: boolean;
217
+ disableCheckoutButton: boolean;
218
+ showEmptyCartRecommendations?: boolean;
219
+ emptyProductRecsTitleText?: string;
220
+ checkoutButtonBottomSpacing?: number;
221
+ showPoweredByBadge?: boolean;
222
+ applyCouponCode?: (code: string) => Promise<void>;
223
+ showApplyCoupon?: boolean;
224
+ enableConfetti?: boolean;
225
+ showCheckoutButtonPaymentIcons?: boolean;
226
+ showCouponOptions?: boolean;
227
+ rewardCoupons?: RewardCoupon[];
228
+ comboBundleData?: BundlePayload;
229
+ comboBundleAddToCartFunction?: (selectedItemsSubtotal: number, variantIds?: string[], finalBundlePrice?: number, variantIdPriceMap?: {
230
+ variantId: string;
231
+ price: number;
232
+ }[]) => Promise<void>;
233
+ stealDealCheckpoints?: Checkpoint[];
234
+ stealDealProducts?: any[];
235
+ stealDealAddToCart?: (variantId: string, originalAllowedVariantIds?: string[]) => Promise<void>;
236
+ useCartShell?: boolean;
237
+ }
238
+ declare const Cart: React.FC<CartProps>;
239
+ export default Cart;
@@ -1,25 +1,25 @@
1
- import React from "react";
2
- import { CartProps, RewardCoupon } from "./Cart";
3
- import "./shared.scss";
4
- interface CartDrawerProps extends CartProps {
5
- prefixMessageText?: string;
6
- suffixMessageText?: string;
7
- successMessageText?: string;
8
- switchWidthVariant?: boolean;
9
- toggleDecimal?: boolean;
10
- cartOffersCarouselHeight?: number;
11
- showEmptyCartRecommendations?: boolean;
12
- checkoutButtonBottomSpacing?: number;
13
- showPoweredByBadge: boolean;
14
- applyCouponCode?: (code: string) => Promise<void>;
15
- showApplyCoupon?: boolean;
16
- enableConfetti?: boolean;
17
- checkoutSectionMessageRedirectLink?: string;
18
- showCheckoutButtonPaymentIcons?: boolean;
19
- showCouponOptions?: boolean;
20
- rewardCoupons?: RewardCoupon[];
21
- applyTemplateDiscount?: (templateId?: number) => Promise<any>;
22
- useCartShell?: boolean;
23
- }
24
- declare const CartDrawer: React.FC<CartDrawerProps>;
25
- export default CartDrawer;
1
+ import React from "react";
2
+ import { CartProps, RewardCoupon } from "./Cart";
3
+ import "./shared.scss";
4
+ interface CartDrawerProps extends CartProps {
5
+ prefixMessageText?: string;
6
+ suffixMessageText?: string;
7
+ successMessageText?: string;
8
+ switchWidthVariant?: boolean;
9
+ toggleDecimal?: boolean;
10
+ cartOffersCarouselHeight?: number;
11
+ showEmptyCartRecommendations?: boolean;
12
+ checkoutButtonBottomSpacing?: number;
13
+ showPoweredByBadge: boolean;
14
+ applyCouponCode?: (code: string) => Promise<void>;
15
+ showApplyCoupon?: boolean;
16
+ enableConfetti?: boolean;
17
+ checkoutSectionMessageRedirectLink?: string;
18
+ showCheckoutButtonPaymentIcons?: boolean;
19
+ showCouponOptions?: boolean;
20
+ rewardCoupons?: RewardCoupon[];
21
+ applyTemplateDiscount?: (templateId?: number) => Promise<any>;
22
+ useCartShell?: boolean;
23
+ }
24
+ declare const CartDrawer: React.FC<CartDrawerProps>;
25
+ export default CartDrawer;
@@ -1,48 +1,48 @@
1
- import React from "react";
2
- export type Criteria = {
3
- id: string;
4
- type: "mov" | "moq";
5
- value: number;
6
- message: string;
7
- redirectionUrl?: string;
8
- };
9
- export type Slide = {
10
- slideNumber: number;
11
- slideType: "TextImage" | "TextCode" | "TextFieldOnly" | "ImageOnly";
12
- textAlignment: "left" | "center" | "right";
13
- titleTextField?: string;
14
- descriptionTextField?: string;
15
- campaignCode?: string;
16
- imageUrl?: string;
17
- carouselRedirectionLink?: string;
18
- redirectionUrl?: string;
19
- enableMarquee?: boolean;
20
- enableCustomCriteria?: boolean;
21
- criteriaCount?: number;
22
- criteria?: Criteria[];
23
- };
24
- export type CartOffersCarousalProps = {
25
- enableCartOffersCarousel: boolean;
26
- slidesCount: number;
27
- pauseTimer: number;
28
- backgroundColor: string;
29
- slides: Slide[];
30
- };
31
- export default function CartOffersCarousel({ cartOffersCarousalData, themeColor, cartOffersCarouselHeight, cartData, }: {
32
- themeColor?: string;
33
- cartOffersCarousalData: CartOffersCarousalProps;
34
- cartOffersCarouselHeight?: number;
35
- cartData?: {
36
- items_subtotal_price?: number;
37
- original_total_price?: number;
38
- currency?: string;
39
- item_count?: number;
40
- items: Array<{
41
- properties?: {
42
- _isYtFreebie?: boolean;
43
- };
44
- quantity?: number;
45
- product_id?: number;
46
- }>;
47
- };
48
- }): React.JSX.Element | null;
1
+ import React from "react";
2
+ export type Criteria = {
3
+ id: string;
4
+ type: "mov" | "moq";
5
+ value: number;
6
+ message: string;
7
+ redirectionUrl?: string;
8
+ };
9
+ export type Slide = {
10
+ slideNumber: number;
11
+ slideType: "TextImage" | "TextCode" | "TextFieldOnly" | "ImageOnly";
12
+ textAlignment: "left" | "center" | "right";
13
+ titleTextField?: string;
14
+ descriptionTextField?: string;
15
+ campaignCode?: string;
16
+ imageUrl?: string;
17
+ carouselRedirectionLink?: string;
18
+ redirectionUrl?: string;
19
+ enableMarquee?: boolean;
20
+ enableCustomCriteria?: boolean;
21
+ criteriaCount?: number;
22
+ criteria?: Criteria[];
23
+ };
24
+ export type CartOffersCarousalProps = {
25
+ enableCartOffersCarousel: boolean;
26
+ slidesCount: number;
27
+ pauseTimer: number;
28
+ backgroundColor: string;
29
+ slides: Slide[];
30
+ };
31
+ export default function CartOffersCarousel({ cartOffersCarousalData, themeColor, cartOffersCarouselHeight, cartData, }: {
32
+ themeColor?: string;
33
+ cartOffersCarousalData: CartOffersCarousalProps;
34
+ cartOffersCarouselHeight?: number;
35
+ cartData?: {
36
+ items_subtotal_price?: number;
37
+ original_total_price?: number;
38
+ currency?: string;
39
+ item_count?: number;
40
+ items: Array<{
41
+ properties?: {
42
+ _isYtFreebie?: boolean;
43
+ };
44
+ quantity?: number;
45
+ product_id?: number;
46
+ }>;
47
+ };
48
+ }): React.JSX.Element | null;