yt-uikit 0.8.15 → 0.8.17-drawer-layout.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 (252) 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/couponSelectionOpenAtom.d.ts +3 -3
  7. package/dist/esm/atoms/dateAtom.d.ts +1 -1
  8. package/dist/esm/atoms/freebieClaimModalAtom.d.ts +7 -7
  9. package/dist/esm/atoms/giftWrap.d.ts +2 -2
  10. package/dist/esm/atoms/gstCompanyNameAtom.d.ts +1 -1
  11. package/dist/esm/atoms/gstInputAtom.d.ts +1 -1
  12. package/dist/esm/atoms/maxQtyErrorAtom.d.ts +3 -3
  13. package/dist/esm/atoms/multiClaimSelectionAtom.d.ts +19 -19
  14. package/dist/esm/atoms/noteInputAtom.d.ts +3 -3
  15. package/dist/esm/atoms/postalCodeAtom.d.ts +1 -1
  16. package/dist/esm/atoms/shippingAtom.d.ts +8 -8
  17. package/dist/esm/atoms/showGSTInputAtom.d.ts +1 -1
  18. package/dist/esm/atoms/variantSelectionModalAtom.d.ts +23 -23
  19. package/dist/esm/components/BundleBlock/Bundle.d.ts +395 -395
  20. package/dist/esm/components/BundleBlock/BundleBuilder/BundleBuilder.d.ts +40 -40
  21. package/dist/esm/components/BundleBlock/BundleBuilder/ResponsiveBgImage.d.ts +9 -9
  22. package/dist/esm/components/BundleBlock/BundleBuilder/VariantOptionsModal.d.ts +15 -15
  23. package/dist/esm/components/BundleBlock/BundleBuilder/bundleBuilder.style.d.ts +35 -37
  24. package/dist/esm/components/BundleBlock/BundleBuilderTracker/BundleBuilderTracker.d.ts +51 -51
  25. package/dist/esm/components/BundleBlock/BundleBuilderTracker/bundleBuilderTracker.style.d.ts +75 -77
  26. package/dist/esm/components/BundleBlock/BundleProductDetailsModal/BundleProductDetailsModal.d.ts +26 -26
  27. package/dist/esm/components/BundleBlock/BundleProductDetailsModal/bundleProductDetailsModal.style.d.ts +10 -10
  28. package/dist/esm/components/BundleBlock/CollectionBundle/ColllectionBundle.d.ts +116 -116
  29. package/dist/esm/components/BundleBlock/CollectionBundle/FileUpload.d.ts +15 -15
  30. package/dist/esm/components/BundleBlock/CollectionBundle/LoadingSpinner.d.ts +2 -2
  31. package/dist/esm/components/BundleBlock/CollectionBundle/ProductDetailsModal.d.ts +15 -15
  32. package/dist/esm/components/BundleBlock/ComboBundle.d.ts +16 -16
  33. package/dist/esm/components/BundleBlock/FixedBundle/FixedBundle.d.ts +4 -4
  34. package/dist/esm/components/BundleBlock/FixedBundle/SeparateVariantOptions.d.ts +39 -39
  35. package/dist/esm/components/BundleBlock/FixedBundle/VariantSelectorModal.d.ts +22 -22
  36. package/dist/esm/components/BundleBlock/FixedBundle/fixedBundle.style.d.ts +84 -90
  37. package/dist/esm/components/BundleBlock/Loader.d.ts +5 -5
  38. package/dist/esm/components/BundleBlock/MixAndMatchBundle/MixAndMatchBundle.d.ts +8 -8
  39. package/dist/esm/components/BundleBlock/MixAndMatchBundle/mixAndMatchBundle.style.d.ts +86 -86
  40. package/dist/esm/components/BundleBlock/VolumeBundle/VolumeBundle.d.ts +3 -3
  41. package/dist/esm/components/BundleBlock/VolumeBundle/volumeBundle.style.d.ts +78 -80
  42. package/dist/esm/components/BundleBlock/index.d.ts +1 -1
  43. package/dist/esm/components/Cart/ApplyCoupon.d.ts +12 -12
  44. package/dist/esm/components/Cart/Bundle.d.ts +6 -6
  45. package/dist/esm/components/Cart/Cart.d.ts +220 -237
  46. package/dist/esm/components/Cart/CartDrawer.d.ts +30 -21
  47. package/dist/esm/components/Cart/CartOffersCarousel.d.ts +45 -45
  48. package/dist/esm/components/Cart/CartProductsList.d.ts +44 -45
  49. package/dist/esm/components/Cart/CartTimer.d.ts +8 -8
  50. package/dist/esm/components/Cart/CheckoutSection.d.ts +38 -38
  51. package/dist/esm/components/Cart/CouponSelection.d.ts +25 -25
  52. package/dist/esm/components/Cart/DatePicker.d.ts +10 -10
  53. package/dist/esm/components/Cart/EmptyCart.d.ts +33 -33
  54. package/dist/esm/components/Cart/FloatingCart.d.ts +23 -23
  55. package/dist/esm/components/Cart/FooterSections.d.ts +6 -6
  56. package/dist/esm/components/Cart/FreebieClaimErrorBoundary.d.ts +28 -0
  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 +9 -9
  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 +14 -14
  64. package/dist/esm/components/Cart/GuestDiscountCoupon.d.ts +9 -9
  65. package/dist/esm/components/Cart/InlineCartOfferInfoText.d.ts +10 -10
  66. package/dist/esm/components/Cart/LoyaltyAppliedCTA.d.ts +19 -19
  67. package/dist/esm/components/Cart/LoyaltyApplyCTA.d.ts +18 -18
  68. package/dist/esm/components/Cart/LoyaltyBadge.d.ts +10 -10
  69. package/dist/esm/components/Cart/LoyaltyGuestCTA.d.ts +17 -17
  70. package/dist/esm/components/Cart/MultiStepProgressBar/CheckpointConfetti.d.ts +11 -11
  71. package/dist/esm/components/Cart/MultiStepProgressBar/CheckpointIcon.d.ts +3 -3
  72. package/dist/esm/components/Cart/MultiStepProgressBar/CheckpointTooltip.d.ts +3 -3
  73. package/dist/esm/components/Cart/MultiStepProgressBar/MultiStepIcon.d.ts +9 -9
  74. package/dist/esm/components/Cart/MultiStepProgressBar/MultiStepProgressBar.d.ts +5 -5
  75. package/dist/esm/components/Cart/MultiStepProgressBar/MultiStepProgressBar.styled.d.ts +45 -45
  76. package/dist/esm/components/Cart/MultiStepProgressBar/MultiStepUtils.d.ts +6 -6
  77. package/dist/esm/components/Cart/MultiStepProgressBar/MultiTierProgressBar.d.ts +4 -4
  78. package/dist/esm/components/Cart/MultiStepProgressBar/MutiTierNextRewardMessage.d.ts +3 -3
  79. package/dist/esm/components/Cart/MultiStepProgressBar/NextRewardMessage.d.ts +3 -3
  80. package/dist/esm/components/Cart/MultiStepProgressBar/SingleTierProgressBar.d.ts +4 -4
  81. package/dist/esm/components/Cart/MultiStepProgressBar/SingleTierProgressBar.styled.d.ts +22 -22
  82. package/dist/esm/components/Cart/MultiStepProgressBar/SingletTierNextRewardMessage.d.ts +3 -3
  83. package/dist/esm/components/Cart/MultiStepProgressBar/types.d.ts +55 -55
  84. package/dist/esm/components/Cart/NextFreebieRow.d.ts +19 -19
  85. package/dist/esm/components/Cart/NoteSection.d.ts +8 -8
  86. package/dist/esm/components/Cart/ProductCard.d.ts +29 -30
  87. package/dist/esm/components/Cart/ProductRecCard.d.ts +20 -20
  88. package/dist/esm/components/Cart/ProductRecList.d.ts +23 -23
  89. package/dist/esm/components/Cart/ProgressBar.d.ts +13 -13
  90. package/dist/esm/components/Cart/ProgressBarCartLoader.d.ts +7 -7
  91. package/dist/esm/components/Cart/QuantitySelector.d.ts +12 -12
  92. package/dist/esm/components/Cart/RegionSpecificDelivery.d.ts +17 -17
  93. package/dist/esm/components/Cart/RewardPointsPreview.d.ts +10 -10
  94. package/dist/esm/components/Cart/StandardDelivery.d.ts +11 -11
  95. package/dist/esm/components/Cart/StickyCart.d.ts +52 -52
  96. package/dist/esm/components/Cart/VariantSelectionPopup/DesktopVariantPopup.d.ts +18 -18
  97. package/dist/esm/components/Cart/VariantSelectionPopup/DesktopVariantPopup.styled.d.ts +60 -60
  98. package/dist/esm/components/Cart/VariantSelectionPopup/MobileVariantPopover.d.ts +18 -18
  99. package/dist/esm/components/Cart/index.d.ts +1 -1
  100. package/dist/esm/components/CouponFrame/CouponFrame.d.ts +15 -15
  101. package/dist/esm/components/CouponFrame/index.d.ts +1 -1
  102. package/dist/esm/components/Nudge/LeadGenerationNudge.d.ts +15 -15
  103. package/dist/esm/components/Nudge/Nudge.d.ts +40 -40
  104. package/dist/esm/components/Nudge/index.d.ts +1 -1
  105. package/dist/esm/components/ProductOffersBlock/ProductOffersCoupon.d.ts +12 -12
  106. package/dist/esm/components/ProductOffersBlock/ProductOffersList.d.ts +12 -12
  107. package/dist/esm/components/ProductOffersBlock/ProductOffersTermsMobilePopover.d.ts +10 -10
  108. package/dist/esm/components/ProductOffersBlock/ProductOffersTermsPopup.d.ts +10 -10
  109. package/dist/esm/components/ProductOffersBlock/ProductsOffers.d.ts +32 -32
  110. package/dist/esm/components/SpinnerWheel/SpinnerWheel.d.ts +23 -23
  111. package/dist/esm/components/SpinnerWheel/WheelSection.d.ts +9 -9
  112. package/dist/esm/components/SpinnerWheel/index.d.ts +1 -1
  113. package/dist/esm/components/index.d.ts +6 -7
  114. package/dist/esm/index.d.ts +1 -1
  115. package/dist/esm/index.js +452 -452
  116. package/dist/esm/types/atoms/bundleBuilderProductDetailsAtom.d.ts +4 -4
  117. package/dist/esm/types/atoms/cartDataAtom.d.ts +3 -3
  118. package/dist/esm/types/atoms/cartLoadingAtom.d.ts +22 -22
  119. package/dist/esm/types/atoms/cartTimer.d.ts +2 -2
  120. package/dist/esm/types/atoms/couponSelectionOpenAtom.d.ts +3 -3
  121. package/dist/esm/types/atoms/dateAtom.d.ts +1 -1
  122. package/dist/esm/types/atoms/freebieClaimModalAtom.d.ts +7 -7
  123. package/dist/esm/types/atoms/giftWrap.d.ts +2 -2
  124. package/dist/esm/types/atoms/gstCompanyNameAtom.d.ts +1 -1
  125. package/dist/esm/types/atoms/gstInputAtom.d.ts +1 -1
  126. package/dist/esm/types/atoms/maxQtyErrorAtom.d.ts +3 -3
  127. package/dist/esm/types/atoms/multiClaimSelectionAtom.d.ts +19 -19
  128. package/dist/esm/types/atoms/noteInputAtom.d.ts +3 -3
  129. package/dist/esm/types/atoms/postalCodeAtom.d.ts +1 -1
  130. package/dist/esm/types/atoms/shippingAtom.d.ts +8 -8
  131. package/dist/esm/types/atoms/showGSTInputAtom.d.ts +1 -1
  132. package/dist/esm/types/atoms/variantSelectionModalAtom.d.ts +23 -23
  133. package/dist/esm/types/components/BundleBlock/Bundle.d.ts +395 -395
  134. package/dist/esm/types/components/BundleBlock/BundleBuilder/BundleBuilder.d.ts +40 -40
  135. package/dist/esm/types/components/BundleBlock/BundleBuilder/ResponsiveBgImage.d.ts +9 -9
  136. package/dist/esm/types/components/BundleBlock/BundleBuilder/VariantOptionsModal.d.ts +15 -15
  137. package/dist/esm/types/components/BundleBlock/BundleBuilder/bundleBuilder.style.d.ts +35 -37
  138. package/dist/esm/types/components/BundleBlock/BundleBuilderTracker/BundleBuilderTracker.d.ts +51 -51
  139. package/dist/esm/types/components/BundleBlock/BundleBuilderTracker/bundleBuilderTracker.style.d.ts +75 -77
  140. package/dist/esm/types/components/BundleBlock/BundleProductDetailsModal/BundleProductDetailsModal.d.ts +26 -26
  141. package/dist/esm/types/components/BundleBlock/BundleProductDetailsModal/bundleProductDetailsModal.style.d.ts +10 -10
  142. package/dist/esm/types/components/BundleBlock/CollectionBundle/ColllectionBundle.d.ts +116 -116
  143. package/dist/esm/types/components/BundleBlock/CollectionBundle/FileUpload.d.ts +15 -15
  144. package/dist/esm/types/components/BundleBlock/CollectionBundle/LoadingSpinner.d.ts +2 -2
  145. package/dist/esm/types/components/BundleBlock/CollectionBundle/ProductDetailsModal.d.ts +15 -15
  146. package/dist/esm/types/components/BundleBlock/ComboBundle.d.ts +16 -16
  147. package/dist/esm/types/components/BundleBlock/FixedBundle/FixedBundle.d.ts +4 -4
  148. package/dist/esm/types/components/BundleBlock/FixedBundle/SeparateVariantOptions.d.ts +39 -39
  149. package/dist/esm/types/components/BundleBlock/FixedBundle/VariantSelectorModal.d.ts +22 -22
  150. package/dist/esm/types/components/BundleBlock/FixedBundle/fixedBundle.style.d.ts +84 -90
  151. package/dist/esm/types/components/BundleBlock/Loader.d.ts +5 -5
  152. package/dist/esm/types/components/BundleBlock/MixAndMatchBundle/MixAndMatchBundle.d.ts +8 -8
  153. package/dist/esm/types/components/BundleBlock/MixAndMatchBundle/mixAndMatchBundle.style.d.ts +86 -86
  154. package/dist/esm/types/components/BundleBlock/VolumeBundle/VolumeBundle.d.ts +3 -3
  155. package/dist/esm/types/components/BundleBlock/VolumeBundle/volumeBundle.style.d.ts +78 -80
  156. package/dist/esm/types/components/BundleBlock/index.d.ts +1 -1
  157. package/dist/esm/types/components/Cart/ApplyCoupon.d.ts +12 -12
  158. package/dist/esm/types/components/Cart/Bundle.d.ts +6 -6
  159. package/dist/esm/types/components/Cart/Cart.d.ts +220 -237
  160. package/dist/esm/types/components/Cart/CartDrawer.d.ts +30 -21
  161. package/dist/esm/types/components/Cart/CartOffersCarousel.d.ts +45 -45
  162. package/dist/esm/types/components/Cart/CartProductsList.d.ts +44 -45
  163. package/dist/esm/types/components/Cart/CartTimer.d.ts +8 -8
  164. package/dist/esm/types/components/Cart/CheckoutSection.d.ts +38 -38
  165. package/dist/esm/types/components/Cart/CouponSelection.d.ts +25 -25
  166. package/dist/esm/types/components/Cart/DatePicker.d.ts +10 -10
  167. package/dist/esm/types/components/Cart/EmptyCart.d.ts +33 -33
  168. package/dist/esm/types/components/Cart/FloatingCart.d.ts +23 -23
  169. package/dist/esm/types/components/Cart/FooterSections.d.ts +6 -6
  170. package/dist/esm/types/components/Cart/FreebieClaimErrorBoundary.d.ts +28 -0
  171. package/dist/esm/types/components/Cart/FreebieClaimManager.d.ts +17 -17
  172. package/dist/esm/types/components/Cart/FreebieClaimOverlay.d.ts +17 -17
  173. package/dist/esm/types/components/Cart/FreebieClaimOverlayCard.d.ts +9 -9
  174. package/dist/esm/types/components/Cart/FreebieClaimSection.d.ts +17 -17
  175. package/dist/esm/types/components/Cart/FreebieClaimSectionCard.d.ts +16 -16
  176. package/dist/esm/types/components/Cart/GSTSection.d.ts +15 -15
  177. package/dist/esm/types/components/Cart/GiftWrap.d.ts +14 -14
  178. package/dist/esm/types/components/Cart/GuestDiscountCoupon.d.ts +9 -9
  179. package/dist/esm/types/components/Cart/InlineCartOfferInfoText.d.ts +10 -10
  180. package/dist/esm/types/components/Cart/LoyaltyAppliedCTA.d.ts +19 -19
  181. package/dist/esm/types/components/Cart/LoyaltyApplyCTA.d.ts +18 -18
  182. package/dist/esm/types/components/Cart/LoyaltyBadge.d.ts +10 -10
  183. package/dist/esm/types/components/Cart/LoyaltyGuestCTA.d.ts +17 -17
  184. package/dist/esm/types/components/Cart/MultiStepProgressBar/CheckpointConfetti.d.ts +11 -11
  185. package/dist/esm/types/components/Cart/MultiStepProgressBar/CheckpointIcon.d.ts +3 -3
  186. package/dist/esm/types/components/Cart/MultiStepProgressBar/CheckpointTooltip.d.ts +3 -3
  187. package/dist/esm/types/components/Cart/MultiStepProgressBar/MultiStepIcon.d.ts +9 -9
  188. package/dist/esm/types/components/Cart/MultiStepProgressBar/MultiStepProgressBar.d.ts +5 -5
  189. package/dist/esm/types/components/Cart/MultiStepProgressBar/MultiStepProgressBar.styled.d.ts +45 -45
  190. package/dist/esm/types/components/Cart/MultiStepProgressBar/MultiStepUtils.d.ts +6 -6
  191. package/dist/esm/types/components/Cart/MultiStepProgressBar/MultiTierProgressBar.d.ts +4 -4
  192. package/dist/esm/types/components/Cart/MultiStepProgressBar/MutiTierNextRewardMessage.d.ts +3 -3
  193. package/dist/esm/types/components/Cart/MultiStepProgressBar/NextRewardMessage.d.ts +3 -3
  194. package/dist/esm/types/components/Cart/MultiStepProgressBar/SingleTierProgressBar.d.ts +4 -4
  195. package/dist/esm/types/components/Cart/MultiStepProgressBar/SingleTierProgressBar.styled.d.ts +22 -22
  196. package/dist/esm/types/components/Cart/MultiStepProgressBar/SingletTierNextRewardMessage.d.ts +3 -3
  197. package/dist/esm/types/components/Cart/MultiStepProgressBar/types.d.ts +55 -55
  198. package/dist/esm/types/components/Cart/NextFreebieRow.d.ts +19 -19
  199. package/dist/esm/types/components/Cart/NoteSection.d.ts +8 -8
  200. package/dist/esm/types/components/Cart/ProductCard.d.ts +29 -30
  201. package/dist/esm/types/components/Cart/ProductRecCard.d.ts +20 -20
  202. package/dist/esm/types/components/Cart/ProductRecList.d.ts +23 -23
  203. package/dist/esm/types/components/Cart/ProgressBar.d.ts +13 -13
  204. package/dist/esm/types/components/Cart/ProgressBarCartLoader.d.ts +7 -7
  205. package/dist/esm/types/components/Cart/QuantitySelector.d.ts +12 -12
  206. package/dist/esm/types/components/Cart/RegionSpecificDelivery.d.ts +17 -17
  207. package/dist/esm/types/components/Cart/RewardPointsPreview.d.ts +10 -10
  208. package/dist/esm/types/components/Cart/StandardDelivery.d.ts +11 -11
  209. package/dist/esm/types/components/Cart/StickyCart.d.ts +52 -52
  210. package/dist/esm/types/components/Cart/VariantSelectionPopup/DesktopVariantPopup.d.ts +18 -18
  211. package/dist/esm/types/components/Cart/VariantSelectionPopup/DesktopVariantPopup.styled.d.ts +60 -60
  212. package/dist/esm/types/components/Cart/VariantSelectionPopup/MobileVariantPopover.d.ts +18 -18
  213. package/dist/esm/types/components/Cart/index.d.ts +1 -1
  214. package/dist/esm/types/components/CouponFrame/CouponFrame.d.ts +15 -15
  215. package/dist/esm/types/components/CouponFrame/index.d.ts +1 -1
  216. package/dist/esm/types/components/Nudge/LeadGenerationNudge.d.ts +15 -15
  217. package/dist/esm/types/components/Nudge/Nudge.d.ts +40 -40
  218. package/dist/esm/types/components/Nudge/index.d.ts +1 -1
  219. package/dist/esm/types/components/ProductOffersBlock/ProductOffersCoupon.d.ts +12 -12
  220. package/dist/esm/types/components/ProductOffersBlock/ProductOffersList.d.ts +12 -12
  221. package/dist/esm/types/components/ProductOffersBlock/ProductOffersTermsMobilePopover.d.ts +10 -10
  222. package/dist/esm/types/components/ProductOffersBlock/ProductOffersTermsPopup.d.ts +10 -10
  223. package/dist/esm/types/components/ProductOffersBlock/ProductsOffers.d.ts +32 -32
  224. package/dist/esm/types/components/SpinnerWheel/SpinnerWheel.d.ts +23 -23
  225. package/dist/esm/types/components/SpinnerWheel/WheelSection.d.ts +9 -9
  226. package/dist/esm/types/components/SpinnerWheel/index.d.ts +1 -1
  227. package/dist/esm/types/components/index.d.ts +6 -7
  228. package/dist/esm/types/index.d.ts +1 -1
  229. package/dist/esm/types/utils/converter.d.ts +2 -2
  230. package/dist/esm/types/utils/customVariantOptions.d.ts +20 -20
  231. package/dist/esm/types/utils/freebieErrorLogger.d.ts +68 -0
  232. package/dist/esm/types/utils/freebieProductUtils.d.ts +23 -23
  233. package/dist/esm/types/utils/freebieUtils.d.ts +5 -5
  234. package/dist/esm/types/utils/freebieValidation.d.ts +45 -0
  235. package/dist/esm/types/utils/index.d.ts +14 -14
  236. package/dist/esm/utils/converter.d.ts +2 -2
  237. package/dist/esm/utils/customVariantOptions.d.ts +20 -20
  238. package/dist/esm/utils/freebieErrorLogger.d.ts +68 -0
  239. package/dist/esm/utils/freebieProductUtils.d.ts +23 -23
  240. package/dist/esm/utils/freebieUtils.d.ts +5 -5
  241. package/dist/esm/utils/freebieValidation.d.ts +45 -0
  242. package/dist/esm/utils/index.d.ts +14 -14
  243. package/dist/index.d.ts +731 -752
  244. package/package.json +95 -95
  245. package/src/assets/Frame.svg +4 -4
  246. package/src/assets/bundlePlus.svg +4 -4
  247. package/src/assets/copy-icon.svg +3 -3
  248. package/src/assets/copy-iconBlack.svg +4 -4
  249. package/src/assets/coupon.svg +4 -4
  250. package/src/assets/delivery.svg +5 -5
  251. package/dist/esm/components/LoyaltyPageBlock/LoyaltyPageBlock.d.ts +0 -63
  252. package/dist/esm/types/components/LoyaltyPageBlock/LoyaltyPageBlock.d.ts +0 -63
package/dist/index.d.ts CHANGED
@@ -1,778 +1,757 @@
1
1
  import React, { Dispatch, SetStateAction } from 'react';
2
2
 
3
- interface NudgeProps {
4
- title?: string;
5
- text?: string;
6
- highlightColor?: string;
7
- backgroundColor?: string;
8
- variant?: "campaign" | "delivery" | "checkout" | "postPurchase" | "registration" | "leadGeneration";
9
- extraProps?: any;
10
- cartValue?: number;
11
- freeDeliveryValue?: number;
12
- imageUrl?: string;
13
- nudgeImageUrl?: string;
14
- onClickCheckout?: () => void;
15
- onClose?: () => void;
16
- isDev?: boolean;
17
- onGotoCartClick?: () => void;
18
- bannerCtaAction?: () => void;
19
- bannerCtaText?: string;
20
- ctaButtonBackgroundColor?: string;
21
- ctaTextColor?: string;
22
- ctaButtonText?: string;
23
- ctaButtonPosition?: "left" | "right" | "center";
24
- postPurchaseCtaAction?: () => void;
25
- postPurchaseCredits?: number;
26
- largeScreenImageUrl?: string;
27
- smallScreenImageUrl?: string;
28
- ctaButtonLink?: string;
29
- autoCloseTimeout?: number;
30
- isCTAButtonEnabled?: boolean;
31
- isCTARedirectionEnabled?: boolean;
32
- borderRadius?: string;
33
- padding?: string;
34
- onClickCtaButton?: () => void;
35
- position?: "right" | "left";
36
- closeIconColor?: string;
37
- handleLoginOrSignup?: (phoneNumber: string, email: string) => Promise<any>;
38
- handleSubmit?: (phoneNumber: string, otp: string) => Promise<any>;
39
- }
3
+ interface NudgeProps {
4
+ title?: string;
5
+ text?: string;
6
+ highlightColor?: string;
7
+ backgroundColor?: string;
8
+ variant?: "campaign" | "delivery" | "checkout" | "postPurchase" | "registration" | "leadGeneration";
9
+ extraProps?: any;
10
+ cartValue?: number;
11
+ freeDeliveryValue?: number;
12
+ imageUrl?: string;
13
+ nudgeImageUrl?: string;
14
+ onClickCheckout?: () => void;
15
+ onClose?: () => void;
16
+ isDev?: boolean;
17
+ onGotoCartClick?: () => void;
18
+ bannerCtaAction?: () => void;
19
+ bannerCtaText?: string;
20
+ ctaButtonBackgroundColor?: string;
21
+ ctaTextColor?: string;
22
+ ctaButtonText?: string;
23
+ ctaButtonPosition?: "left" | "right" | "center";
24
+ postPurchaseCtaAction?: () => void;
25
+ postPurchaseCredits?: number;
26
+ largeScreenImageUrl?: string;
27
+ smallScreenImageUrl?: string;
28
+ ctaButtonLink?: string;
29
+ autoCloseTimeout?: number;
30
+ isCTAButtonEnabled?: boolean;
31
+ isCTARedirectionEnabled?: boolean;
32
+ borderRadius?: string;
33
+ padding?: string;
34
+ onClickCtaButton?: () => void;
35
+ position?: "right" | "left";
36
+ closeIconColor?: string;
37
+ handleLoginOrSignup?: (phoneNumber: string, email: string) => Promise<any>;
38
+ handleSubmit?: (phoneNumber: string, otp: string) => Promise<any>;
39
+ }
40
40
  declare const Nudge: React.FC<NudgeProps>;
41
41
 
42
- interface SegmentProps {
43
- label: string;
44
- color: string;
45
- outcome: "WIN" | "LOSE";
46
- winHeading?: string;
47
- winValue?: number;
48
- probability?: number;
49
- }
50
- interface WheelProps {
51
- segments: SegmentProps[];
52
- setWinningSegment: Dispatch<SetStateAction<number | null>>;
53
- ctaButtonText?: string;
54
- brandThemeColor?: string | undefined;
55
- brandGameDefaultThemeColor?: string | undefined;
56
- wheelSectionColor1?: string | undefined;
57
- wheelSectionColor2?: string | undefined;
58
- wheelCenterLogo?: string | undefined;
59
- isStatic?: boolean | undefined;
60
- }
42
+ interface SegmentProps {
43
+ label: string;
44
+ color: string;
45
+ outcome: "WIN" | "LOSE";
46
+ winHeading?: string;
47
+ winValue?: number;
48
+ probability?: number;
49
+ }
50
+ interface WheelProps {
51
+ segments: SegmentProps[];
52
+ setWinningSegment: Dispatch<SetStateAction<number | null>>;
53
+ ctaButtonText?: string;
54
+ brandThemeColor?: string | undefined;
55
+ brandGameDefaultThemeColor?: string | undefined;
56
+ wheelSectionColor1?: string | undefined;
57
+ wheelSectionColor2?: string | undefined;
58
+ wheelCenterLogo?: string | undefined;
59
+ isStatic?: boolean | undefined;
60
+ }
61
61
  declare const SpinnerWheel: React.FC<WheelProps>;
62
62
 
63
- interface RewardCouponWithIcon extends RewardCoupon {
64
- icon?: React.ReactElement | null;
63
+ interface DrawerLayout {
64
+ headerIds?: string[];
65
+ scroll?: {
66
+ topIds?: string[];
67
+ bottomIds?: string[];
68
+ };
69
+ footerIds?: string[];
65
70
  }
66
- type CouponFrameProps = {
67
- couponActive: boolean;
68
- rewardCoupon: RewardCouponWithIcon;
69
- currency: string;
70
- handleApply: (templateId?: number) => Promise<any>;
71
- pointsCoupon?: boolean;
72
- pointsToBeUsed?: number;
73
- };
74
- declare const CouponFrame: React.FC<CouponFrameProps>;
75
71
 
76
- interface ShopifyCurrency {
77
- rate: number;
78
- active: string;
79
- }
80
- declare global {
81
- interface Window {
82
- Shopify?: {
83
- currency?: ShopifyCurrency;
84
- };
85
- }
86
- }
87
- type ProductImage = {
88
- url: string;
89
- height: number;
90
- width: number;
91
- altText?: string;
92
- };
93
- type ProductFeaturedMedia = {
94
- alt: string;
95
- preview: {
96
- image: {
97
- url: string;
98
- height?: number;
99
- width?: number;
100
- altText: string;
101
- };
102
- };
103
- };
104
- type ProductOption = {
105
- id: string;
106
- name: string;
107
- values: string[];
108
- };
109
- type CollectionNode = {
110
- node: {
111
- id: string;
112
- title: string;
113
- handle: string;
114
- };
115
- };
116
- type VariantNode = {
117
- node: {
118
- id: string;
119
- price: string;
120
- compareAtPrice: string;
121
- title: string;
122
- displayName: string;
123
- image: ProductImage;
124
- availableForSale: boolean;
125
- inventoryQuantity: number;
126
- inventoryItem?: {
127
- tracked?: boolean;
128
- };
129
- inventoryPolicy?: "deny" | "continue";
130
- };
131
- };
132
- type SelectedVariantDetails = {
133
- id: string;
134
- price: string;
135
- compareAtPrice: string;
136
- title: string;
137
- displayName: string;
138
- image: ProductImage;
139
- availableForSale: boolean;
140
- inventoryQuantity: number;
141
- };
142
- type VariantOptions = {
143
- shop: string;
144
- options: {
145
- name: string;
146
- type: "text" | "image" | "color";
147
- values: {
148
- name: string;
149
- value: string;
150
- }[];
151
- }[];
152
- createdAt: string;
153
- updatedAt: string;
154
- };
155
- type ProductDetails = {
156
- id: string;
157
- title: string;
158
- handle: string;
159
- featuredMedia: ProductFeaturedMedia;
160
- status: "active" | "archived" | "draft" | "";
161
- options: ProductOption[];
162
- onlineStoreUrl: string;
163
- tracksInventory?: boolean;
164
- collections: {
165
- edges: CollectionNode[];
166
- };
167
- variants: {
168
- edges: VariantNode[];
169
- };
170
- shop: string;
171
- metafield?: {
172
- key: string;
173
- namespace: string;
174
- ownerType: string;
175
- value: string;
176
- id: string;
177
- jsonValue: string[];
178
- type: string;
179
- };
180
- descriptionHtml: string;
181
- media: {
182
- edges: {
183
- node: {
184
- alt: string;
185
- preview: {
186
- image: {
187
- altText: string;
188
- width?: number;
189
- height?: number;
190
- url: string;
191
- };
192
- };
193
- image: {
194
- altText: string;
195
- height: number;
196
- width: number;
197
- url: string;
198
- };
199
- };
200
- }[];
201
- };
202
- selectedVariant?: SelectedVariantDetails;
203
- rating?: {
204
- averageRating: number;
205
- ratingCount: number;
206
- };
207
- };
208
- type ProductData = {
209
- productId: string;
210
- variantIds: string[];
211
- productDetails: ProductDetails;
212
- };
213
- type GeneralStyle = {
214
- primaryColor: string;
215
- primaryContrastColor: string;
216
- secondaryColor: string;
217
- secondaryContrastColor: string;
218
- imageAspectRatio: string;
219
- ctaBackgroundColor: string;
220
- ctaTextColor: string;
221
- ctaBorderColor: string;
222
- ctaShadowType: string;
223
- ctaPadding: string;
224
- ctaWidth: string;
225
- ctaBorderRadius: string;
226
- ctaHoverBackgroundColor: string;
227
- ctaHoverTextColor: string;
228
- customizeHoverState: boolean;
229
- checkoutPartner: string;
230
- redirectToPDP: boolean;
231
- restrictCOD: boolean;
232
- trackInventory: boolean;
233
- showOutOfStockProducts: boolean;
234
- outOfStockLabel: string;
235
- disabledButtonColor: string;
236
- storeCurrency: string;
237
- currencySymbol: string;
238
- discountPrefix: string;
239
- discountSuffix: string;
240
- addOrderTags: boolean;
241
- addOrderNotes: boolean;
242
- variantTitleSuffix: boolean;
243
- titleLength: string;
244
- showDecimalsInBundlePricing?: boolean;
245
- };
246
- type VolumeStyle = {
247
- addtoCartMethod: string;
248
- titleFontSize: string;
249
- subtitleFontSize: string;
250
- titleBackgroundColor: string;
251
- titleTextColor: string;
252
- verticalMargin: string;
253
- sectionBackgroundColor: string;
254
- cardStyle: string;
255
- discountBadgeVisibility: string;
256
- allowVariantSelection: string;
257
- variantSelectorType: string;
258
- ctaTitle: string;
259
- bundleRedirection: string;
260
- };
261
- type ComboStyle = {
262
- productTitleFontSize: string;
263
- productDescriptionFontSize: string;
264
- descriptionTextColor: string;
265
- titleTextColor: string;
266
- verticalMargin: string;
267
- infoAlignment: string;
268
- ctaTitle: string;
269
- bundleRedirection: string;
270
- embedContentVisibility: boolean;
271
- mixAndMatchCardStyle: string;
272
- mixAndMatchVariantTypeSelector: string;
273
- comboCardStyle: string;
274
- comboVariantTypeSelector: string;
275
- selectedEmbedContentVisibilityOptions: string[];
276
- subProductsSectionVisibility: boolean;
277
- subProductsImageVisibility: boolean;
278
- subProductsProductTitleVisibility: boolean;
279
- subProductsProductPriceVisibility: boolean;
280
- };
281
- type ByobStyle = {
282
- titleFontSize: string;
283
- subtitleFontSize: string;
284
- titleBackgroundColor: string;
285
- titleTextColor: string;
286
- productTitleFontSize: string;
287
- sectionBackgroundColor: string;
288
- lazyLoadWidget: string;
289
- listingsGap: string;
290
- footerMargin: string;
291
- borderRadius: string;
292
- borderColor: string;
293
- cardBackgroundColor: string;
294
- shadowType: string;
295
- addToBundleCTAText: string;
296
- checkoutCTAText: string;
297
- variantSelectorType: string;
298
- primaryVariant: string;
299
- productsPriceVisibility: boolean;
300
- compareAtPriceVisibility: boolean;
301
- selectedProductsVisibility: boolean;
302
- bundleRedirection: string;
303
- enableConfetti: boolean;
304
- selectedItemVisibility: boolean;
305
- productTiersVisibility: boolean;
306
- tierNavigation: boolean;
307
- enableProductCategories: boolean;
308
- productCardCategoryVisibility: string;
309
- categoryFilterOnPage: string;
310
- };
311
- type FixedStyle = {
312
- titleFontSize: string;
313
- subtitleFontSize: string;
314
- titleBackgroundColor: string;
315
- titleTextColor: string;
316
- verticalMargin: string;
317
- sectionBackgroundColor: string;
318
- borderRadius: string;
319
- borderColor: string;
320
- cardBackgroundColor: string;
321
- shadowType: string;
322
- infoAlignment: string;
323
- ctaTitle: string;
324
- bundleRedirection: string;
325
- cardLayoutStyle: string;
326
- variantSelectorType: string;
327
- productsPriceVisibility: boolean;
328
- compareAtPriceVisibility: boolean;
329
- };
330
- type Customizations = {
331
- shop?: string;
332
- general: GeneralStyle;
333
- byob: ByobStyle;
334
- fixedBundle: FixedStyle;
335
- volumeBundle: VolumeStyle;
336
- comboBundle: ComboStyle;
337
- createdAt?: string;
338
- updatedAt?: string;
339
- };
340
- type BundlePayload = {
341
- showIndividualProductSelector: boolean;
342
- title?: string;
343
- subtitle?: string;
344
- products: ProductData[];
345
- percentageOff?: number;
346
- dealAmount?: number;
347
- amountOff?: number;
348
- type: "fixed" | "builder" | "volume" | "mixAndMatch" | "" | "combo" | "collection";
349
- minimumQuantity: number;
350
- showProductDetailsInTracker: boolean;
351
- coverImageUrl?: string;
352
- mobileCoverImageUrl?: string;
353
- titleSectionTextColor?: string;
354
- titleSectionBackgroundColor?: string;
355
- dealTextColor?: string;
356
- showBorder?: boolean;
357
- hideProductDetails?: boolean;
358
- cornerRadiusType?: "medium" | "high" | "";
359
- primaryBackgroundColorCta?: string;
360
- enableProgressBar?: boolean;
361
- enableSortAndFilter?: boolean;
362
- disableQuantitySelector?: boolean;
363
- disableInventoryTracking?: boolean;
364
- alignFixedBundleContent?: "left" | "right" | "center" | "";
365
- imageAspectType?: "portrait" | "square" | "";
366
- backgroundColorFixedBundleDiv?: string;
367
- canCustomizeFixedBundle?: boolean;
368
- primaryTextColorCta?: string;
369
- showVariants?: boolean;
370
- discountType?: string;
371
- showCta?: boolean;
372
- productCardBadgeText?: string;
373
- coverImageVerticalMargin?: string;
374
- builderTiers?: {
375
- type: string;
376
- offerTier?: {
377
- tier: number;
378
- minimumQuantity: number;
379
- discountValue: number;
380
- }[];
381
- productTier?: {
382
- tier: number;
383
- title: string;
384
- minimumQuantity: number;
385
- isFixed?: boolean;
386
- isFreebieTier?: boolean;
387
- products: {
388
- productId: string;
389
- variantIds: string[];
390
- }[];
391
- }[];
392
- };
393
- volumeTiers?: {
394
- isDefault: unknown;
395
- tier: number;
396
- minimumQuantity: number;
397
- title: string;
398
- subtitle: string;
399
- badgeTitle: string;
400
- discountValue: number;
401
- imageUrl?: string;
402
- }[];
403
- mixAndMatchTiers?: {
404
- tier: number;
405
- title: string;
406
- products: {
407
- productId: string;
408
- variantIds: string[];
409
- }[];
410
- }[];
411
- customizations: Customizations;
412
- variantOptions?: VariantOptions;
413
- storeCurrencyCode?: string;
414
- customStoreDetails?: {
415
- [key: string]: any;
416
- };
417
- customProductsQuantity?: number | null;
418
- reviewRatingType?: "none" | "ratingOnly" | "ratingAndReviewCount";
419
- appName?: string;
420
- pageHeader?: {
421
- title?: string;
422
- description?: string;
423
- customizePadding?: string;
424
- };
425
- };
426
- type BundleProps = {
427
- bundle: BundlePayload;
428
- addToCartFunction?: (selectedItemsSubtotal: number, variantIds?: string[], finalBundlePrice?: number, variantIdPriceMap?: {
429
- variantId: string;
430
- price: number;
431
- }[]) => Promise<void>;
432
- addCustomBundleToCart?: (e: any) => Promise<void>;
433
- selectedItems?: {
434
- variantId: string;
435
- product: ProductDetails;
436
- quantity: number;
437
- }[];
438
- setSelectedItems?: React.Dispatch<React.SetStateAction<{
439
- variantId: string;
440
- product: ProductDetails;
441
- quantity: number;
442
- }[]>>;
443
- bundleAddToCartLoading?: boolean;
444
- handleRemoveItem?: (variantId: string) => void;
445
- selectedItemsQuantity?: number;
446
- renderingOnPage?: boolean;
447
- bundleSubtotal?: {
448
- price: number;
449
- compareAtPrice: number;
450
- };
451
- bundleHeaderBackgroundColor?: string;
452
- currentProductId?: string;
453
- };
72
+ interface ShopifyCurrency {
73
+ rate: number;
74
+ active: string;
75
+ }
76
+ declare global {
77
+ interface Window {
78
+ Shopify?: {
79
+ currency?: ShopifyCurrency;
80
+ };
81
+ }
82
+ }
83
+ type ProductImage = {
84
+ url: string;
85
+ height: number;
86
+ width: number;
87
+ altText?: string;
88
+ };
89
+ type ProductFeaturedMedia = {
90
+ alt: string;
91
+ preview: {
92
+ image: {
93
+ url: string;
94
+ height?: number;
95
+ width?: number;
96
+ altText: string;
97
+ };
98
+ };
99
+ };
100
+ type ProductOption = {
101
+ id: string;
102
+ name: string;
103
+ values: string[];
104
+ };
105
+ type CollectionNode = {
106
+ node: {
107
+ id: string;
108
+ title: string;
109
+ handle: string;
110
+ };
111
+ };
112
+ type VariantNode = {
113
+ node: {
114
+ id: string;
115
+ price: string;
116
+ compareAtPrice: string;
117
+ title: string;
118
+ displayName: string;
119
+ image: ProductImage;
120
+ availableForSale: boolean;
121
+ inventoryQuantity: number;
122
+ inventoryItem?: {
123
+ tracked?: boolean;
124
+ };
125
+ inventoryPolicy?: "deny" | "continue";
126
+ };
127
+ };
128
+ type SelectedVariantDetails = {
129
+ id: string;
130
+ price: string;
131
+ compareAtPrice: string;
132
+ title: string;
133
+ displayName: string;
134
+ image: ProductImage;
135
+ availableForSale: boolean;
136
+ inventoryQuantity: number;
137
+ };
138
+ type VariantOptions = {
139
+ shop: string;
140
+ options: {
141
+ name: string;
142
+ type: "text" | "image" | "color";
143
+ values: {
144
+ name: string;
145
+ value: string;
146
+ }[];
147
+ }[];
148
+ createdAt: string;
149
+ updatedAt: string;
150
+ };
151
+ type ProductDetails = {
152
+ id: string;
153
+ title: string;
154
+ handle: string;
155
+ featuredMedia: ProductFeaturedMedia;
156
+ status: "active" | "archived" | "draft" | "";
157
+ options: ProductOption[];
158
+ onlineStoreUrl: string;
159
+ tracksInventory?: boolean;
160
+ collections: {
161
+ edges: CollectionNode[];
162
+ };
163
+ variants: {
164
+ edges: VariantNode[];
165
+ };
166
+ shop: string;
167
+ metafield?: {
168
+ key: string;
169
+ namespace: string;
170
+ ownerType: string;
171
+ value: string;
172
+ id: string;
173
+ jsonValue: string[];
174
+ type: string;
175
+ };
176
+ descriptionHtml: string;
177
+ media: {
178
+ edges: {
179
+ node: {
180
+ alt: string;
181
+ preview: {
182
+ image: {
183
+ altText: string;
184
+ width?: number;
185
+ height?: number;
186
+ url: string;
187
+ };
188
+ };
189
+ image: {
190
+ altText: string;
191
+ height: number;
192
+ width: number;
193
+ url: string;
194
+ };
195
+ };
196
+ }[];
197
+ };
198
+ selectedVariant?: SelectedVariantDetails;
199
+ rating?: {
200
+ averageRating: number;
201
+ ratingCount: number;
202
+ };
203
+ };
204
+ type ProductData = {
205
+ productId: string;
206
+ variantIds: string[];
207
+ productDetails: ProductDetails;
208
+ };
209
+ type GeneralStyle = {
210
+ primaryColor: string;
211
+ primaryContrastColor: string;
212
+ secondaryColor: string;
213
+ secondaryContrastColor: string;
214
+ imageAspectRatio: string;
215
+ ctaBackgroundColor: string;
216
+ ctaTextColor: string;
217
+ ctaBorderColor: string;
218
+ ctaShadowType: string;
219
+ ctaPadding: string;
220
+ ctaWidth: string;
221
+ ctaBorderRadius: string;
222
+ ctaHoverBackgroundColor: string;
223
+ ctaHoverTextColor: string;
224
+ customizeHoverState: boolean;
225
+ checkoutPartner: string;
226
+ redirectToPDP: boolean;
227
+ restrictCOD: boolean;
228
+ trackInventory: boolean;
229
+ showOutOfStockProducts: boolean;
230
+ outOfStockLabel: string;
231
+ disabledButtonColor: string;
232
+ storeCurrency: string;
233
+ currencySymbol: string;
234
+ discountPrefix: string;
235
+ discountSuffix: string;
236
+ addOrderTags: boolean;
237
+ addOrderNotes: boolean;
238
+ variantTitleSuffix: boolean;
239
+ titleLength: string;
240
+ showDecimalsInBundlePricing?: boolean;
241
+ };
242
+ type VolumeStyle = {
243
+ addtoCartMethod: string;
244
+ titleFontSize: string;
245
+ subtitleFontSize: string;
246
+ titleBackgroundColor: string;
247
+ titleTextColor: string;
248
+ verticalMargin: string;
249
+ sectionBackgroundColor: string;
250
+ cardStyle: string;
251
+ discountBadgeVisibility: string;
252
+ allowVariantSelection: string;
253
+ variantSelectorType: string;
254
+ ctaTitle: string;
255
+ bundleRedirection: string;
256
+ };
257
+ type ComboStyle = {
258
+ productTitleFontSize: string;
259
+ productDescriptionFontSize: string;
260
+ descriptionTextColor: string;
261
+ titleTextColor: string;
262
+ verticalMargin: string;
263
+ infoAlignment: string;
264
+ ctaTitle: string;
265
+ bundleRedirection: string;
266
+ embedContentVisibility: boolean;
267
+ mixAndMatchCardStyle: string;
268
+ mixAndMatchVariantTypeSelector: string;
269
+ comboCardStyle: string;
270
+ comboVariantTypeSelector: string;
271
+ selectedEmbedContentVisibilityOptions: string[];
272
+ subProductsSectionVisibility: boolean;
273
+ subProductsImageVisibility: boolean;
274
+ subProductsProductTitleVisibility: boolean;
275
+ subProductsProductPriceVisibility: boolean;
276
+ };
277
+ type ByobStyle = {
278
+ titleFontSize: string;
279
+ subtitleFontSize: string;
280
+ titleBackgroundColor: string;
281
+ titleTextColor: string;
282
+ productTitleFontSize: string;
283
+ sectionBackgroundColor: string;
284
+ lazyLoadWidget: string;
285
+ listingsGap: string;
286
+ footerMargin: string;
287
+ borderRadius: string;
288
+ borderColor: string;
289
+ cardBackgroundColor: string;
290
+ shadowType: string;
291
+ addToBundleCTAText: string;
292
+ checkoutCTAText: string;
293
+ variantSelectorType: string;
294
+ primaryVariant: string;
295
+ productsPriceVisibility: boolean;
296
+ compareAtPriceVisibility: boolean;
297
+ selectedProductsVisibility: boolean;
298
+ bundleRedirection: string;
299
+ enableConfetti: boolean;
300
+ selectedItemVisibility: boolean;
301
+ productTiersVisibility: boolean;
302
+ tierNavigation: boolean;
303
+ enableProductCategories: boolean;
304
+ productCardCategoryVisibility: string;
305
+ categoryFilterOnPage: string;
306
+ };
307
+ type FixedStyle = {
308
+ titleFontSize: string;
309
+ subtitleFontSize: string;
310
+ titleBackgroundColor: string;
311
+ titleTextColor: string;
312
+ verticalMargin: string;
313
+ sectionBackgroundColor: string;
314
+ borderRadius: string;
315
+ borderColor: string;
316
+ cardBackgroundColor: string;
317
+ shadowType: string;
318
+ infoAlignment: string;
319
+ ctaTitle: string;
320
+ bundleRedirection: string;
321
+ cardLayoutStyle: string;
322
+ variantSelectorType: string;
323
+ productsPriceVisibility: boolean;
324
+ compareAtPriceVisibility: boolean;
325
+ };
326
+ type Customizations = {
327
+ shop?: string;
328
+ general: GeneralStyle;
329
+ byob: ByobStyle;
330
+ fixedBundle: FixedStyle;
331
+ volumeBundle: VolumeStyle;
332
+ comboBundle: ComboStyle;
333
+ createdAt?: string;
334
+ updatedAt?: string;
335
+ };
336
+ type BundlePayload = {
337
+ showIndividualProductSelector: boolean;
338
+ title?: string;
339
+ subtitle?: string;
340
+ products: ProductData[];
341
+ percentageOff?: number;
342
+ dealAmount?: number;
343
+ amountOff?: number;
344
+ type: "fixed" | "builder" | "volume" | "mixAndMatch" | "" | "combo" | "collection";
345
+ minimumQuantity: number;
346
+ showProductDetailsInTracker: boolean;
347
+ coverImageUrl?: string;
348
+ mobileCoverImageUrl?: string;
349
+ titleSectionTextColor?: string;
350
+ titleSectionBackgroundColor?: string;
351
+ dealTextColor?: string;
352
+ showBorder?: boolean;
353
+ hideProductDetails?: boolean;
354
+ cornerRadiusType?: "medium" | "high" | "";
355
+ primaryBackgroundColorCta?: string;
356
+ enableProgressBar?: boolean;
357
+ enableSortAndFilter?: boolean;
358
+ disableQuantitySelector?: boolean;
359
+ disableInventoryTracking?: boolean;
360
+ alignFixedBundleContent?: "left" | "right" | "center" | "";
361
+ imageAspectType?: "portrait" | "square" | "";
362
+ backgroundColorFixedBundleDiv?: string;
363
+ canCustomizeFixedBundle?: boolean;
364
+ primaryTextColorCta?: string;
365
+ showVariants?: boolean;
366
+ discountType?: string;
367
+ showCta?: boolean;
368
+ productCardBadgeText?: string;
369
+ coverImageVerticalMargin?: string;
370
+ builderTiers?: {
371
+ type: string;
372
+ offerTier?: {
373
+ tier: number;
374
+ minimumQuantity: number;
375
+ discountValue: number;
376
+ }[];
377
+ productTier?: {
378
+ tier: number;
379
+ title: string;
380
+ minimumQuantity: number;
381
+ isFixed?: boolean;
382
+ isFreebieTier?: boolean;
383
+ products: {
384
+ productId: string;
385
+ variantIds: string[];
386
+ }[];
387
+ }[];
388
+ };
389
+ volumeTiers?: {
390
+ isDefault: unknown;
391
+ tier: number;
392
+ minimumQuantity: number;
393
+ title: string;
394
+ subtitle: string;
395
+ badgeTitle: string;
396
+ discountValue: number;
397
+ imageUrl?: string;
398
+ }[];
399
+ mixAndMatchTiers?: {
400
+ tier: number;
401
+ title: string;
402
+ products: {
403
+ productId: string;
404
+ variantIds: string[];
405
+ }[];
406
+ }[];
407
+ customizations: Customizations;
408
+ variantOptions?: VariantOptions;
409
+ storeCurrencyCode?: string;
410
+ customStoreDetails?: {
411
+ [key: string]: any;
412
+ };
413
+ customProductsQuantity?: number | null;
414
+ reviewRatingType?: "none" | "ratingOnly" | "ratingAndReviewCount";
415
+ appName?: string;
416
+ pageHeader?: {
417
+ title?: string;
418
+ description?: string;
419
+ customizePadding?: string;
420
+ };
421
+ };
422
+ type BundleProps = {
423
+ bundle: BundlePayload;
424
+ addToCartFunction?: (selectedItemsSubtotal: number, variantIds?: string[], finalBundlePrice?: number, variantIdPriceMap?: {
425
+ variantId: string;
426
+ price: number;
427
+ }[]) => Promise<void>;
428
+ addCustomBundleToCart?: (e: any) => Promise<void>;
429
+ selectedItems?: {
430
+ variantId: string;
431
+ product: ProductDetails;
432
+ quantity: number;
433
+ }[];
434
+ setSelectedItems?: React.Dispatch<React.SetStateAction<{
435
+ variantId: string;
436
+ product: ProductDetails;
437
+ quantity: number;
438
+ }[]>>;
439
+ bundleAddToCartLoading?: boolean;
440
+ handleRemoveItem?: (variantId: string) => void;
441
+ selectedItemsQuantity?: number;
442
+ renderingOnPage?: boolean;
443
+ bundleSubtotal?: {
444
+ price: number;
445
+ compareAtPrice: number;
446
+ };
447
+ bundleHeaderBackgroundColor?: string;
448
+ currentProductId?: string;
449
+ };
454
450
  declare const Bundle: React.FC<BundleProps>;
455
451
 
456
- type stickyCartCustomizationDataProps = {
457
- showPrice: boolean;
458
- productImage?: {
459
- id: string;
460
- path: string;
461
- };
462
- buyNowCtaTitle: string;
463
- desktopBarType: "stretch" | "hover";
464
- showProductName: boolean;
465
- showBuyNowButton: boolean;
466
- showProductImage: boolean;
467
- addToCartCtaTitle: string;
468
- showAddToCartButton: boolean;
469
- showVariantSelector: boolean;
470
- productInfoVisibility: boolean;
471
- excludeProducts?: string[];
472
- showBarOnDesktop?: boolean;
473
- ctaButtonFontSize?: number;
474
- startsAppearingAtHeight?: number;
475
- fullyAppearsAtHeight?: number;
476
- topRibbonText?: string;
452
+ type stickyCartCustomizationDataProps = {
453
+ showPrice: boolean;
454
+ productImage?: {
455
+ id: string;
456
+ path: string;
457
+ };
458
+ buyNowCtaTitle: string;
459
+ desktopBarType: "stretch" | "hover";
460
+ showProductName: boolean;
461
+ showBuyNowButton: boolean;
462
+ showProductImage: boolean;
463
+ addToCartCtaTitle: string;
464
+ showAddToCartButton: boolean;
465
+ showVariantSelector: boolean;
466
+ productInfoVisibility: boolean;
467
+ excludeProducts?: string[];
468
+ showBarOnDesktop?: boolean;
469
+ ctaButtonFontSize?: number;
470
+ startsAppearingAtHeight?: number;
471
+ fullyAppearsAtHeight?: number;
472
+ topRibbonText?: string;
477
473
  };
478
474
 
479
- type Criteria = {
480
- id: string;
481
- type: "mov" | "moq";
482
- value: number;
483
- message: string;
484
- redirectionUrl?: string;
485
- };
486
- type Slide = {
487
- slideNumber: number;
488
- slideType: "TextImage" | "TextCode" | "TextFieldOnly" | "ImageOnly";
489
- textAlignment: "left" | "center" | "right";
490
- titleTextField?: string;
491
- descriptionTextField?: string;
492
- campaignCode?: string;
493
- imageUrl?: string;
494
- carouselRedirectionLink?: string;
495
- criteriaCount?: number;
496
- criteria?: Criteria[];
497
- };
498
- type CartOffersCarousalProps = {
499
- enableCartOffersCarousel: boolean;
500
- slidesCount: number;
501
- pauseTimer: number;
502
- backgroundColor: string;
503
- slides: Slide[];
475
+ type Criteria = {
476
+ id: string;
477
+ type: "mov" | "moq";
478
+ value: number;
479
+ message: string;
480
+ redirectionUrl?: string;
481
+ };
482
+ type Slide = {
483
+ slideNumber: number;
484
+ slideType: "TextImage" | "TextCode" | "TextFieldOnly" | "ImageOnly";
485
+ textAlignment: "left" | "center" | "right";
486
+ titleTextField?: string;
487
+ descriptionTextField?: string;
488
+ campaignCode?: string;
489
+ imageUrl?: string;
490
+ carouselRedirectionLink?: string;
491
+ criteriaCount?: number;
492
+ criteria?: Criteria[];
493
+ };
494
+ type CartOffersCarousalProps = {
495
+ enableCartOffersCarousel: boolean;
496
+ slidesCount: number;
497
+ pauseTimer: number;
498
+ backgroundColor: string;
499
+ slides: Slide[];
504
500
  };
505
501
 
506
- type freebieMilestoneProps = {
507
- enableFreebieMilestone: boolean;
508
- milestoneImage: {
509
- id: string;
510
- path: string;
511
- };
512
- campaignFilter?: string;
502
+ type freebieMilestoneProps = {
503
+ enableFreebieMilestone: boolean;
504
+ milestoneImage: {
505
+ id: string;
506
+ path: string;
507
+ };
508
+ campaignFilter?: string;
513
509
  };
514
510
 
515
- interface GSTSectionCustomizationProps {
516
- title?: string;
517
- iconColor?: string;
518
- showIcon?: boolean;
519
- backgroundColor?: string;
520
- textColor?: string;
511
+ interface GSTSectionCustomizationProps {
512
+ title?: string;
513
+ iconColor?: string;
514
+ showIcon?: boolean;
515
+ backgroundColor?: string;
516
+ textColor?: string;
521
517
  }
522
518
 
523
- type FloatingCartDataProps = {
524
- enableFloatingCart: boolean;
525
- backgroundColor: string;
526
- bannerBackgroundColor: string;
527
- textColor: string;
528
- buttonColor: string;
529
- bannerFooterText: string;
530
- showOnPages: string[];
519
+ type FloatingCartDataProps = {
520
+ enableFloatingCart: boolean;
521
+ backgroundColor: string;
522
+ bannerBackgroundColor: string;
523
+ textColor: string;
524
+ buttonColor: string;
525
+ bannerFooterText: string;
526
+ showOnPages: string[];
531
527
  };
532
528
 
533
- interface RewardCoupon {
534
- couponTemplateId: number;
535
- name: string;
536
- couponType: string;
537
- discountPercentage: number | null;
538
- discountValue: number | null;
539
- minimumOrderValue: number | null;
540
- pointsRequired: number | null;
541
- }
542
- interface Checkpoint {
543
- couponTemplateId: number;
544
- couponType: string;
545
- minimumOrderValue: number;
546
- name: string;
547
- quantityThreshold: number;
548
- isDummyCouponTemplate?: boolean;
549
- customerGetsProductIds?: {
550
- ids: string[];
551
- };
552
- discountValue?: number;
553
- _allVariantIds: string[];
554
- maxFreebiesInTier?: number;
555
- }
556
- interface freebieClaimInterface {
557
- freebieSectionTitle: string;
558
- productClaimCtaButtonText: string;
559
- type: "section" | "overlay";
560
- allowOverlayClose: boolean;
561
- }
562
- type LoyaltyDiscount = {
563
- type: string;
564
- key: string;
565
- title: string;
566
- description: string | null;
567
- value: string;
568
- created_at: string;
569
- value_type: string;
570
- allocation_method: string;
571
- target_selection: string;
572
- target_type: string;
573
- total_allocated_amount: number;
574
- };
575
- interface CartProps {
576
- isOpen: boolean;
577
- setIsOpen: React.Dispatch<React.SetStateAction<boolean>>;
578
- backdrop?: boolean;
579
- backgroundColor: string;
580
- backgroundSubdued?: string;
581
- tertiaryColor?: string;
582
- tertiaryTextColor?: string;
583
- exploreCTAColor: string;
584
- emptyCartTitle: string;
585
- emptyCartDescription?: string;
586
- emptyCartButtons?: Array<{
587
- title: string;
588
- link: string;
589
- }>;
590
- checkoutFontSize: number | string;
591
- cartTitle: string;
592
- cartData?: any;
593
- switchWidthVariant?: boolean;
594
- addCartItem?: (product: any, quantity?: number, triggeredFrom?: string, freebieReplace?: boolean, productHandle?: string) => Promise<any>;
595
- removeCartItem: (lineItemKey: string, triggeredFrom?: string, ytRequest?: boolean) => Promise<any>;
596
- handleIncrement: (productId: number, newQuantity: number, properties?: {
597
- [key: string]: string;
598
- }) => Promise<any>;
599
- handleDecrement: (productId: number, newQuantity?: number) => Promise<any>;
600
- bundleProducts?: any;
601
- showBundle?: boolean;
602
- showCouponOptions?: boolean;
603
- isUserSignedIn?: boolean;
604
- loyaltyIcon?: string;
605
- discountAmountOff?: number;
606
- pointsToBeUsed?: number;
607
- rewardMultiplier?: number;
608
- redemptionMultiplier?: number;
609
- removeDiscount?: () => Promise<any>;
610
- applyDiscount?: () => Promise<any>;
611
- discountApplied?: boolean;
612
- rewardCoupons?: RewardCoupon[];
613
- userTotalPoints?: number;
614
- joinNowFunction?: () => void;
615
- checkoutFunction: (templateId?: number) => Promise<any>;
616
- guestLoyaltyPercentage?: number;
617
- showToggleButton?: boolean;
618
- isDev?: boolean;
619
- recProductsList?: any[];
620
- showMultiStepProgressBar?: boolean;
621
- cartCheckpoints?: Checkpoint[];
622
- showCartLevelAltPay?: boolean;
623
- redemptionRate: number;
624
- pointsRewardRate: number;
625
- showGuestDiscountCoupon?: boolean;
626
- guestRewardCoupon?: RewardCouponWithIcon;
627
- applyTemplateDiscount?: (templateId?: number) => Promise<any>;
628
- exploreCtaRedirectLink?: string;
629
- discountAmountApplied?: number;
630
- minimumCartValue?: number;
631
- discountInCheckoutButton?: boolean | string;
632
- isStickyCheckout?: boolean;
633
- showDiscountsListToGuestUsers?: boolean;
634
- showApplyCouponsButtonToGuestUsers?: boolean;
635
- handleCheckpointCrossed?: (checkpoint: Checkpoint, cartAmount: number) => Promise<any>;
636
- customCartProgressBarCriteria?: string;
637
- primaryTextColor?: string;
638
- secondaryTextColor?: string;
639
- themeColor?: string;
640
- themeTextColor?: string;
641
- checkoutButtonColor?: string;
642
- ctaButtonBackgroundColor?: string;
643
- ctaButtonTextColor?: string;
644
- showProductRecsOnMobile?: boolean;
645
- showProductRecsOnDesktop?: boolean;
646
- productRecsTitleText?: string;
647
- productRecsCtaButtonText?: string;
648
- showGSTOption?: boolean;
649
- gstNumber?: string;
650
- companyName?: string;
651
- applyGSTToCart?: (gstNumber: string, companyName: string) => Promise<any>;
652
- showMOVForProgressTiers?: boolean;
653
- freeProduct?: any;
654
- showLoyaltyCta?: boolean;
655
- freeProductAdjustedCartTotal?: number;
656
- minimumOrderValueToAvailDiscount?: number;
657
- signinCTAButtonVisible?: boolean;
658
- cartSigninCTAMainText?: string;
659
- showNoteOption?: boolean;
660
- note?: string;
661
- applyNoteToCart?: (note: string) => Promise<any>;
662
- inlineCartOfferInfoText?: string;
663
- inlineCartOfferInfoRedirectLink?: string;
664
- cartOfferTermsAndConditionsText?: string;
665
- showEditOptionOnProducts?: boolean;
666
- getProductDetailsByVariantId?: (handle: string, variantId?: string) => Promise<any>;
667
- onSetLoading?: (setLoadingFn: (isLoading: boolean, showLoader: boolean, showSkeletonLoader?: boolean, showLoyaltyCtaLoading?: boolean) => void) => void;
668
- showVariantSelectionDropdownInProductRecs?: boolean;
669
- originalCartSubtotal?: number;
670
- freebieProductsInCart?: any;
671
- currentTier?: number;
672
- showFreebieClaim?: boolean;
673
- addFreebieToCart?: (variantId: string) => Promise<void>;
674
- freebiesInCart?: string[];
675
- effectiveQuantityForProgressBar?: number;
676
- productPercentageOffMapping: {
677
- [variantId: string]: number;
678
- };
679
- productTagsMapping?: Map<string, string[]>;
680
- removeFreebieFromCart?: (lineItemKey: string) => Promise<void>;
681
- postalCodeList?: number[];
682
- enableGeoLocationDeliveryRestriction?: boolean;
683
- applyPostalCodeAndDeliverySlotToCart?: (deliveryType: string, postalCode?: string, deliverySlot?: string) => Promise<any>;
684
- showDeleteOnFreebies?: boolean;
685
- freebieCouponTemplates?: Checkpoint[];
686
- freebieFlowCheckpoints?: Checkpoint[];
687
- freebieClaimData?: freebieClaimInterface;
688
- showStickyAddToCart?: boolean;
689
- stickyCartLineItem?: any;
690
- stickyCartCustomizationData?: stickyCartCustomizationDataProps;
691
- stickyCartLineItemQuantity?: number;
692
- postalCodeBasedItemTrackingParameter?: "specific-tags" | "all-products";
693
- enableSlotPicker?: boolean;
694
- deliveryHeaderTitle?: string;
695
- deliveryAvailableText?: string;
696
- deliveryNotAvailableText?: string;
697
- giftWrapSetupData?: any;
698
- giftWrapProductDetail?: any;
699
- progressBarFreeProductIconType?: "tshirt" | "gift" | "box" | "cup";
700
- addToStickyCart?: (variantId: string, quantity: number) => Promise<void>;
701
- enableCustomCartOnCartPage?: boolean;
702
- isCartPage?: boolean;
703
- productRecsCardLayout: "horizontal" | "vertical";
704
- productRecsCardListVariant: "scroll" | "carousel" | "vertical";
705
- showCartTimer?: boolean;
706
- showFreebieMilestone?: boolean;
707
- showFloatingCart?: boolean;
708
- floatingCartData?: FloatingCartDataProps;
709
- cartTimerInMinutes?: number;
710
- cartTimerCustomText?: string;
711
- imageAspectSelector?: "square" | "portrait";
712
- cartComponentsCornerType?: "rounded" | "sharp";
713
- cartComponentsCornerRadius?: number;
714
- cartOffersCarousalData?: CartOffersCarousalProps;
715
- freebieMilestoneData?: freebieMilestoneProps;
716
- cartOffersCarouselHeight?: number;
717
- stickyBarBuyNowFunction?: (variantId: string, quantity: number) => Promise<void>;
718
- gstSectionCustomizationData?: GSTSectionCustomizationProps;
719
- noteSectionTitle?: string;
720
- checkoutSectionMessage?: string;
721
- checkoutSectionMessageRedirectLink?: string;
722
- checkoutSectionMessageDisplay?: "ribbon" | "tag" | "bookmark";
723
- showVariantSelectionDropdownInProductClaim?: boolean;
724
- productClaimCtaButtonText?: string;
725
- loyaltyDiscount?: LoyaltyDiscount | undefined;
726
- brandTokenName?: string;
727
- showDiscountOnMRP?: boolean;
728
- prefixMessageText?: string;
729
- suffixMessageText?: string;
730
- successMessageText?: string;
731
- toggleDecimal?: boolean;
732
- disableCheckoutButton: boolean;
733
- showEmptyCartRecommendations?: boolean;
734
- emptyProductRecsTitleText?: string;
735
- checkoutButtonBottomSpacing?: number;
736
- showPoweredByBadge?: boolean;
737
- applyCouponCode?: (code: string) => Promise<void>;
738
- showApplyCoupon?: boolean;
739
- enableConfetti?: boolean;
740
- showCheckoutButtonPaymentIcons?: boolean;
741
- comboBundleData?: BundlePayload;
742
- comboBundleAddToCartFunction?: (selectedItemsSubtotal: number, variantIds?: string[], finalBundlePrice?: number, variantIdPriceMap?: {
743
- variantId: string;
744
- price: number;
745
- }[]) => Promise<void>;
746
- }
529
+ interface Checkpoint {
530
+ couponTemplateId: number;
531
+ couponType: string;
532
+ minimumOrderValue: number;
533
+ name: string;
534
+ quantityThreshold: number;
535
+ isDummyCouponTemplate?: boolean;
536
+ customerGetsProductIds?: {
537
+ ids: string[];
538
+ };
539
+ discountValue?: number;
540
+ _allVariantIds: string[];
541
+ maxFreebiesInTier?: number;
542
+ }
543
+ interface freebieClaimInterface {
544
+ freebieSectionTitle: string;
545
+ productClaimCtaButtonText: string;
546
+ type: "section" | "overlay";
547
+ allowOverlayClose: boolean;
548
+ }
549
+ type LoyaltyDiscount = {
550
+ type: string;
551
+ key: string;
552
+ title: string;
553
+ description: string | null;
554
+ value: string;
555
+ created_at: string;
556
+ value_type: string;
557
+ allocation_method: string;
558
+ target_selection: string;
559
+ target_type: string;
560
+ total_allocated_amount: number;
561
+ };
562
+ interface CartProps {
563
+ isOpen: boolean;
564
+ setIsOpen: React.Dispatch<React.SetStateAction<boolean>>;
565
+ backdrop?: boolean;
566
+ backgroundColor: string;
567
+ backgroundSubdued?: string;
568
+ tertiaryColor?: string;
569
+ tertiaryTextColor?: string;
570
+ exploreCTAColor: string;
571
+ emptyCartTitle: string;
572
+ emptyCartDescription?: string;
573
+ emptyCartButtons?: Array<{
574
+ title: string;
575
+ link: string;
576
+ }>;
577
+ checkoutFontSize: number | string;
578
+ cartTitle: string;
579
+ cartData?: any;
580
+ switchWidthVariant?: boolean;
581
+ addCartItem?: (product: any, quantity?: number, triggeredFrom?: string, freebieReplace?: boolean, productHandle?: string) => Promise<any>;
582
+ removeCartItem: (lineItemKey: string, triggeredFrom?: string, ytRequest?: boolean) => Promise<any>;
583
+ handleIncrement: (productId: number, newQuantity: number, properties?: {
584
+ [key: string]: string;
585
+ }) => Promise<any>;
586
+ handleDecrement: (productId: number, newQuantity?: number) => Promise<any>;
587
+ bundleProducts?: any;
588
+ showBundle?: boolean;
589
+ isUserSignedIn?: boolean;
590
+ loyaltyIcon?: string;
591
+ discountAmountOff?: number;
592
+ pointsToBeUsed?: number;
593
+ rewardMultiplier?: number;
594
+ redemptionMultiplier?: number;
595
+ removeDiscount?: () => Promise<any>;
596
+ applyDiscount?: () => Promise<any>;
597
+ discountApplied?: boolean;
598
+ joinNowFunction?: () => void;
599
+ checkoutFunction: (templateId?: number) => Promise<any>;
600
+ guestLoyaltyPercentage?: number;
601
+ showToggleButton?: boolean;
602
+ isDev?: boolean;
603
+ recProductsList?: any[];
604
+ showMultiStepProgressBar?: boolean;
605
+ cartCheckpoints?: Checkpoint[];
606
+ showCartLevelAltPay?: boolean;
607
+ redemptionRate: number;
608
+ pointsRewardRate: number;
609
+ exploreCtaRedirectLink?: string;
610
+ discountAmountApplied?: number;
611
+ minimumCartValue?: number;
612
+ discountInCheckoutButton?: boolean | string;
613
+ isStickyCheckout?: boolean;
614
+ handleCheckpointCrossed?: (checkpoint: Checkpoint, cartAmount: number) => Promise<any>;
615
+ customCartProgressBarCriteria?: string;
616
+ primaryTextColor?: string;
617
+ secondaryTextColor?: string;
618
+ themeColor?: string;
619
+ themeTextColor?: string;
620
+ checkoutButtonColor?: string;
621
+ ctaButtonBackgroundColor?: string;
622
+ ctaButtonTextColor?: string;
623
+ showProductRecsOnMobile?: boolean;
624
+ showProductRecsOnDesktop?: boolean;
625
+ productRecsTitleText?: string;
626
+ productRecsCtaButtonText?: string;
627
+ showGSTOption?: boolean;
628
+ gstNumber?: string;
629
+ companyName?: string;
630
+ applyGSTToCart?: (gstNumber: string, companyName: string) => Promise<any>;
631
+ showMOVForProgressTiers?: boolean;
632
+ freeProduct?: any;
633
+ showLoyaltyCta?: boolean;
634
+ freeProductAdjustedCartTotal?: number;
635
+ minimumOrderValueToAvailDiscount?: number;
636
+ signinCTAButtonVisible?: boolean;
637
+ cartSigninCTAMainText?: string;
638
+ showNoteOption?: boolean;
639
+ note?: string;
640
+ applyNoteToCart?: (note: string) => Promise<any>;
641
+ inlineCartOfferInfoText?: string;
642
+ inlineCartOfferInfoRedirectLink?: string;
643
+ cartOfferTermsAndConditionsText?: string;
644
+ showEditOptionOnProducts?: boolean;
645
+ getProductDetailsByVariantId?: (handle: string, variantId?: string) => Promise<any>;
646
+ onSetLoading?: (setLoadingFn: (isLoading: boolean, showLoader: boolean, showSkeletonLoader?: boolean, showLoyaltyCtaLoading?: boolean) => void) => void;
647
+ showVariantSelectionDropdownInProductRecs?: boolean;
648
+ originalCartSubtotal?: number;
649
+ freebieProductsInCart?: any;
650
+ currentTier?: number;
651
+ showFreebieClaim?: boolean;
652
+ addFreebieToCart?: (variantId: string) => Promise<void>;
653
+ freebiesInCart?: string[];
654
+ effectiveQuantityForProgressBar?: number;
655
+ productPercentageOffMapping: {
656
+ [variantId: string]: number;
657
+ };
658
+ removeFreebieFromCart?: (lineItemKey: string) => Promise<void>;
659
+ postalCodeList?: number[];
660
+ enableGeoLocationDeliveryRestriction?: boolean;
661
+ applyPostalCodeAndDeliverySlotToCart?: (deliveryType: string, postalCode?: string, deliverySlot?: string) => Promise<any>;
662
+ showDeleteOnFreebies?: boolean;
663
+ freebieCouponTemplates?: Checkpoint[];
664
+ freebieFlowCheckpoints?: Checkpoint[];
665
+ freebieClaimData?: freebieClaimInterface;
666
+ showStickyAddToCart?: boolean;
667
+ stickyCartLineItem?: any;
668
+ stickyCartCustomizationData?: stickyCartCustomizationDataProps;
669
+ stickyCartLineItemQuantity?: number;
670
+ postalCodeBasedItemTrackingParameter?: "specific-tags" | "all-products";
671
+ enableSlotPicker?: boolean;
672
+ deliveryHeaderTitle?: string;
673
+ deliveryAvailableText?: string;
674
+ deliveryNotAvailableText?: string;
675
+ giftWrapSetupData?: any;
676
+ giftWrapProductDetail?: any;
677
+ progressBarFreeProductIconType?: "tshirt" | "gift" | "box" | "cup";
678
+ addToStickyCart?: (variantId: string, quantity: number) => Promise<void>;
679
+ enableCustomCartOnCartPage?: boolean;
680
+ isCartPage?: boolean;
681
+ productRecsCardLayout: "horizontal" | "vertical";
682
+ productRecsCardListVariant: "scroll" | "carousel" | "vertical";
683
+ showCartTimer?: boolean;
684
+ showFreebieMilestone?: boolean;
685
+ showFloatingCart?: boolean;
686
+ floatingCartData?: FloatingCartDataProps;
687
+ cartTimerInMinutes?: number;
688
+ cartTimerCustomText?: string;
689
+ imageAspectSelector?: "square" | "portrait";
690
+ cartComponentsCornerType?: "rounded" | "sharp";
691
+ cartComponentsCornerRadius?: number;
692
+ cartOffersCarousalData?: CartOffersCarousalProps;
693
+ freebieMilestoneData?: freebieMilestoneProps;
694
+ cartOffersCarouselHeight?: number;
695
+ stickyBarBuyNowFunction?: (variantId: string, quantity: number) => Promise<void>;
696
+ gstSectionCustomizationData?: GSTSectionCustomizationProps;
697
+ noteSectionTitle?: string;
698
+ checkoutSectionMessage?: string;
699
+ checkoutSectionMessageRedirectLink?: string;
700
+ checkoutSectionMessageDisplay?: "ribbon" | "tag" | "bookmark";
701
+ showVariantSelectionDropdownInProductClaim?: boolean;
702
+ productClaimCtaButtonText?: string;
703
+ loyaltyDiscount?: LoyaltyDiscount | undefined;
704
+ brandTokenName?: string;
705
+ showDiscountOnMRP?: boolean;
706
+ prefixMessageText?: string;
707
+ suffixMessageText?: string;
708
+ successMessageText?: string;
709
+ toggleDecimal?: boolean;
710
+ disableCheckoutButton: boolean;
711
+ showEmptyCartRecommendations?: boolean;
712
+ emptyProductRecsTitleText?: string;
713
+ checkoutButtonBottomSpacing?: number;
714
+ showPoweredByBadge?: boolean;
715
+ applyCouponCode?: (code: string) => Promise<void>;
716
+ showApplyCoupon?: boolean;
717
+ enableConfetti?: boolean;
718
+ showCheckoutButtonPaymentIcons?: boolean;
719
+ comboBundleData?: BundlePayload;
720
+ comboBundleAddToCartFunction?: (selectedItemsSubtotal: number, variantIds?: string[], finalBundlePrice?: number, variantIdPriceMap?: {
721
+ variantId: string;
722
+ price: number;
723
+ }[]) => Promise<void>;
724
+ drawerLayout?: DrawerLayout;
725
+ }
747
726
  declare const Cart: React.FC<CartProps>;
748
727
 
749
- type BundleLoaderProps = {};
728
+ type BundleLoaderProps = {};
750
729
  declare const BundleLoader: React.FC<BundleLoaderProps>;
751
730
 
752
- interface ProductsOffersConfigType {
753
- sectionType?: "coupon" | "list";
754
- sectionTitle?: string;
755
- sectionBackgroundColor?: string;
756
- sectionBgContrastColor?: string;
757
- cardBackgroundColor?: string;
758
- cardBackgroundTransparent?: boolean;
759
- textColor?: string;
760
- accentColor?: string;
761
- roundness?: number;
762
- cardPadding?: number;
763
- viewDetailsTitle?: string;
764
- alignment?: "left" | "middle" | "right";
765
- iconVisibility?: boolean;
766
- popupIsolationStrategy?: "revert" | "revert-layer" | "unset" | "initial" | "inherit" | "none";
767
- }
768
- interface CartCheckpoint extends Checkpoint {
769
- customCartProgressBarCriteria?: string | null;
770
- discountPercentage?: number | null;
771
- discountId?: number | null;
772
- }
773
- declare const ProductsOffers: ({ offersConfig, offers, }: {
774
- offersConfig?: ProductsOffersConfigType | null | undefined;
775
- offers: CartCheckpoint[];
731
+ interface ProductsOffersConfigType {
732
+ sectionType?: "coupon" | "list";
733
+ sectionTitle?: string;
734
+ sectionBackgroundColor?: string;
735
+ sectionBgContrastColor?: string;
736
+ cardBackgroundColor?: string;
737
+ cardBackgroundTransparent?: boolean;
738
+ textColor?: string;
739
+ accentColor?: string;
740
+ roundness?: number;
741
+ cardPadding?: number;
742
+ viewDetailsTitle?: string;
743
+ alignment?: "left" | "middle" | "right";
744
+ iconVisibility?: boolean;
745
+ popupIsolationStrategy?: "revert" | "revert-layer" | "unset" | "initial" | "inherit" | "none";
746
+ }
747
+ interface CartCheckpoint extends Checkpoint {
748
+ customCartProgressBarCriteria?: string | null;
749
+ discountPercentage?: number | null;
750
+ discountId?: number | null;
751
+ }
752
+ declare const ProductsOffers: ({ offersConfig, offers, }: {
753
+ offersConfig?: ProductsOffersConfigType | null | undefined;
754
+ offers: CartCheckpoint[];
776
755
  }) => React.JSX.Element;
777
756
 
778
- export { Bundle, BundleLoader, Cart, CartCheckpoint, CouponFrame, Nudge, ProductsOffers as ProductOffers, ProductsOffersConfigType, SpinnerWheel };
757
+ export { Bundle, BundleLoader, Cart, CartCheckpoint, Nudge, ProductsOffers as ProductOffers, ProductsOffersConfigType, SpinnerWheel };