yt-uikit 0.8.11-minicart.0 → 0.8.12-fix-flash.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 +393 -393
  20. package/dist/esm/components/BundleBlock/BundleBuilder/BundleBuilder.d.ts +38 -38
  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 +37 -37
  24. package/dist/esm/components/BundleBlock/BundleBuilderTracker/BundleBuilderTracker.d.ts +50 -50
  25. package/dist/esm/components/BundleBlock/BundleBuilderTracker/bundleBuilderTracker.style.d.ts +77 -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 +90 -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 +80 -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 +234 -237
  46. package/dist/esm/components/Cart/CartDrawer.d.ts +21 -21
  47. package/dist/esm/components/Cart/CartOffersCarousel.d.ts +45 -45
  48. package/dist/esm/components/Cart/CartProductsList.d.ts +45 -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/FreebieClaimManager.d.ts +17 -17
  57. package/dist/esm/components/Cart/FreebieClaimOverlay.d.ts +17 -17
  58. package/dist/esm/components/Cart/FreebieClaimOverlayCard.d.ts +9 -9
  59. package/dist/esm/components/Cart/FreebieClaimSection.d.ts +17 -17
  60. package/dist/esm/components/Cart/FreebieClaimSectionCard.d.ts +16 -16
  61. package/dist/esm/components/Cart/GSTSection.d.ts +15 -15
  62. package/dist/esm/components/Cart/GiftWrap.d.ts +14 -14
  63. package/dist/esm/components/Cart/GuestDiscountCoupon.d.ts +9 -9
  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/MobileMiniCart.d.ts +21 -0
  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 +30 -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/VariantSelectionPopup/MobileVariantPopover.styled.d.ts +49 -0
  100. package/dist/esm/components/Cart/index.d.ts +1 -1
  101. package/dist/esm/components/CouponFrame/CouponFrame.d.ts +15 -15
  102. package/dist/esm/components/CouponFrame/index.d.ts +1 -1
  103. package/dist/esm/components/Nudge/LeadGenerationNudge.d.ts +15 -15
  104. package/dist/esm/components/Nudge/Nudge.d.ts +40 -40
  105. package/dist/esm/components/Nudge/index.d.ts +1 -1
  106. package/dist/esm/components/ProductOffersBlock/ProductOffersCoupon.d.ts +12 -12
  107. package/dist/esm/components/ProductOffersBlock/ProductOffersList.d.ts +12 -12
  108. package/dist/esm/components/ProductOffersBlock/ProductOffersTermsMobilePopover.d.ts +10 -10
  109. package/dist/esm/components/ProductOffersBlock/ProductOffersTermsPopup.d.ts +10 -10
  110. package/dist/esm/components/ProductOffersBlock/ProductsOffers.d.ts +32 -32
  111. package/dist/esm/components/SpinnerWheel/SpinnerWheel.d.ts +23 -23
  112. package/dist/esm/components/SpinnerWheel/WheelSection.d.ts +9 -9
  113. package/dist/esm/components/SpinnerWheel/index.d.ts +1 -1
  114. package/dist/esm/components/index.d.ts +7 -7
  115. package/dist/esm/components/shared/Spinner.d.ts +23 -0
  116. package/dist/esm/components/shared/index.d.ts +2 -0
  117. package/dist/esm/index.d.ts +1 -1
  118. package/dist/esm/index.js +393 -393
  119. package/dist/esm/types/atoms/bundleBuilderProductDetailsAtom.d.ts +4 -4
  120. package/dist/esm/types/atoms/cartDataAtom.d.ts +3 -3
  121. package/dist/esm/types/atoms/cartLoadingAtom.d.ts +22 -22
  122. package/dist/esm/types/atoms/cartTimer.d.ts +2 -2
  123. package/dist/esm/types/atoms/couponSelectionOpenAtom.d.ts +3 -3
  124. package/dist/esm/types/atoms/dateAtom.d.ts +1 -1
  125. package/dist/esm/types/atoms/freebieClaimModalAtom.d.ts +7 -7
  126. package/dist/esm/types/atoms/giftWrap.d.ts +2 -2
  127. package/dist/esm/types/atoms/gstCompanyNameAtom.d.ts +1 -1
  128. package/dist/esm/types/atoms/gstInputAtom.d.ts +1 -1
  129. package/dist/esm/types/atoms/maxQtyErrorAtom.d.ts +3 -3
  130. package/dist/esm/types/atoms/multiClaimSelectionAtom.d.ts +19 -19
  131. package/dist/esm/types/atoms/noteInputAtom.d.ts +3 -3
  132. package/dist/esm/types/atoms/postalCodeAtom.d.ts +1 -1
  133. package/dist/esm/types/atoms/shippingAtom.d.ts +8 -8
  134. package/dist/esm/types/atoms/showGSTInputAtom.d.ts +1 -1
  135. package/dist/esm/types/atoms/variantSelectionModalAtom.d.ts +23 -23
  136. package/dist/esm/types/components/BundleBlock/Bundle.d.ts +393 -393
  137. package/dist/esm/types/components/BundleBlock/BundleBuilder/BundleBuilder.d.ts +38 -38
  138. package/dist/esm/types/components/BundleBlock/BundleBuilder/ResponsiveBgImage.d.ts +9 -9
  139. package/dist/esm/types/components/BundleBlock/BundleBuilder/VariantOptionsModal.d.ts +15 -15
  140. package/dist/esm/types/components/BundleBlock/BundleBuilder/bundleBuilder.style.d.ts +37 -37
  141. package/dist/esm/types/components/BundleBlock/BundleBuilderTracker/BundleBuilderTracker.d.ts +50 -50
  142. package/dist/esm/types/components/BundleBlock/BundleBuilderTracker/bundleBuilderTracker.style.d.ts +77 -77
  143. package/dist/esm/types/components/BundleBlock/BundleProductDetailsModal/BundleProductDetailsModal.d.ts +26 -26
  144. package/dist/esm/types/components/BundleBlock/BundleProductDetailsModal/bundleProductDetailsModal.style.d.ts +10 -10
  145. package/dist/esm/types/components/BundleBlock/CollectionBundle/ColllectionBundle.d.ts +116 -116
  146. package/dist/esm/types/components/BundleBlock/CollectionBundle/FileUpload.d.ts +15 -15
  147. package/dist/esm/types/components/BundleBlock/CollectionBundle/LoadingSpinner.d.ts +2 -2
  148. package/dist/esm/types/components/BundleBlock/CollectionBundle/ProductDetailsModal.d.ts +15 -15
  149. package/dist/esm/types/components/BundleBlock/ComboBundle.d.ts +16 -16
  150. package/dist/esm/types/components/BundleBlock/FixedBundle/FixedBundle.d.ts +4 -4
  151. package/dist/esm/types/components/BundleBlock/FixedBundle/SeparateVariantOptions.d.ts +39 -39
  152. package/dist/esm/types/components/BundleBlock/FixedBundle/VariantSelectorModal.d.ts +22 -22
  153. package/dist/esm/types/components/BundleBlock/FixedBundle/fixedBundle.style.d.ts +90 -90
  154. package/dist/esm/types/components/BundleBlock/Loader.d.ts +5 -5
  155. package/dist/esm/types/components/BundleBlock/MixAndMatchBundle/MixAndMatchBundle.d.ts +8 -8
  156. package/dist/esm/types/components/BundleBlock/MixAndMatchBundle/mixAndMatchBundle.style.d.ts +86 -86
  157. package/dist/esm/types/components/BundleBlock/VolumeBundle/VolumeBundle.d.ts +3 -3
  158. package/dist/esm/types/components/BundleBlock/VolumeBundle/volumeBundle.style.d.ts +80 -80
  159. package/dist/esm/types/components/BundleBlock/index.d.ts +1 -1
  160. package/dist/esm/types/components/Cart/ApplyCoupon.d.ts +12 -12
  161. package/dist/esm/types/components/Cart/Bundle.d.ts +6 -6
  162. package/dist/esm/types/components/Cart/Cart.d.ts +234 -237
  163. package/dist/esm/types/components/Cart/CartDrawer.d.ts +21 -21
  164. package/dist/esm/types/components/Cart/CartOffersCarousel.d.ts +45 -45
  165. package/dist/esm/types/components/Cart/CartProductsList.d.ts +45 -45
  166. package/dist/esm/types/components/Cart/CartTimer.d.ts +8 -8
  167. package/dist/esm/types/components/Cart/CheckoutSection.d.ts +38 -38
  168. package/dist/esm/types/components/Cart/CouponSelection.d.ts +25 -25
  169. package/dist/esm/types/components/Cart/DatePicker.d.ts +10 -10
  170. package/dist/esm/types/components/Cart/EmptyCart.d.ts +33 -33
  171. package/dist/esm/types/components/Cart/FloatingCart.d.ts +23 -23
  172. package/dist/esm/types/components/Cart/FooterSections.d.ts +6 -6
  173. package/dist/esm/types/components/Cart/FreebieClaimManager.d.ts +17 -17
  174. package/dist/esm/types/components/Cart/FreebieClaimOverlay.d.ts +17 -17
  175. package/dist/esm/types/components/Cart/FreebieClaimOverlayCard.d.ts +9 -9
  176. package/dist/esm/types/components/Cart/FreebieClaimSection.d.ts +17 -17
  177. package/dist/esm/types/components/Cart/FreebieClaimSectionCard.d.ts +16 -16
  178. package/dist/esm/types/components/Cart/GSTSection.d.ts +15 -15
  179. package/dist/esm/types/components/Cart/GiftWrap.d.ts +14 -14
  180. package/dist/esm/types/components/Cart/GuestDiscountCoupon.d.ts +9 -9
  181. package/dist/esm/types/components/Cart/InlineCartOfferInfoText.d.ts +10 -10
  182. package/dist/esm/types/components/Cart/LoyaltyAppliedCTA.d.ts +19 -19
  183. package/dist/esm/types/components/Cart/LoyaltyApplyCTA.d.ts +18 -18
  184. package/dist/esm/types/components/Cart/LoyaltyBadge.d.ts +10 -10
  185. package/dist/esm/types/components/Cart/LoyaltyGuestCTA.d.ts +17 -17
  186. package/dist/esm/types/components/Cart/MobileMiniCart.d.ts +21 -0
  187. package/dist/esm/types/components/Cart/MultiStepProgressBar/CheckpointConfetti.d.ts +11 -11
  188. package/dist/esm/types/components/Cart/MultiStepProgressBar/CheckpointIcon.d.ts +3 -3
  189. package/dist/esm/types/components/Cart/MultiStepProgressBar/CheckpointTooltip.d.ts +3 -3
  190. package/dist/esm/types/components/Cart/MultiStepProgressBar/MultiStepIcon.d.ts +9 -9
  191. package/dist/esm/types/components/Cart/MultiStepProgressBar/MultiStepProgressBar.d.ts +5 -5
  192. package/dist/esm/types/components/Cart/MultiStepProgressBar/MultiStepProgressBar.styled.d.ts +45 -45
  193. package/dist/esm/types/components/Cart/MultiStepProgressBar/MultiStepUtils.d.ts +6 -6
  194. package/dist/esm/types/components/Cart/MultiStepProgressBar/MultiTierProgressBar.d.ts +4 -4
  195. package/dist/esm/types/components/Cart/MultiStepProgressBar/MutiTierNextRewardMessage.d.ts +3 -3
  196. package/dist/esm/types/components/Cart/MultiStepProgressBar/NextRewardMessage.d.ts +3 -3
  197. package/dist/esm/types/components/Cart/MultiStepProgressBar/SingleTierProgressBar.d.ts +4 -4
  198. package/dist/esm/types/components/Cart/MultiStepProgressBar/SingleTierProgressBar.styled.d.ts +22 -22
  199. package/dist/esm/types/components/Cart/MultiStepProgressBar/SingletTierNextRewardMessage.d.ts +3 -3
  200. package/dist/esm/types/components/Cart/MultiStepProgressBar/types.d.ts +55 -55
  201. package/dist/esm/types/components/Cart/NextFreebieRow.d.ts +19 -19
  202. package/dist/esm/types/components/Cart/NoteSection.d.ts +8 -8
  203. package/dist/esm/types/components/Cart/ProductCard.d.ts +30 -30
  204. package/dist/esm/types/components/Cart/ProductRecCard.d.ts +20 -20
  205. package/dist/esm/types/components/Cart/ProductRecList.d.ts +23 -23
  206. package/dist/esm/types/components/Cart/ProgressBar.d.ts +13 -13
  207. package/dist/esm/types/components/Cart/ProgressBarCartLoader.d.ts +7 -7
  208. package/dist/esm/types/components/Cart/QuantitySelector.d.ts +12 -12
  209. package/dist/esm/types/components/Cart/RegionSpecificDelivery.d.ts +17 -17
  210. package/dist/esm/types/components/Cart/RewardPointsPreview.d.ts +10 -10
  211. package/dist/esm/types/components/Cart/StandardDelivery.d.ts +11 -11
  212. package/dist/esm/types/components/Cart/StickyCart.d.ts +52 -52
  213. package/dist/esm/types/components/Cart/VariantSelectionPopup/DesktopVariantPopup.d.ts +18 -18
  214. package/dist/esm/types/components/Cart/VariantSelectionPopup/DesktopVariantPopup.styled.d.ts +60 -60
  215. package/dist/esm/types/components/Cart/VariantSelectionPopup/MobileVariantPopover.d.ts +18 -18
  216. package/dist/esm/types/components/Cart/VariantSelectionPopup/MobileVariantPopover.styled.d.ts +49 -0
  217. package/dist/esm/types/components/Cart/index.d.ts +1 -1
  218. package/dist/esm/types/components/CouponFrame/CouponFrame.d.ts +15 -15
  219. package/dist/esm/types/components/CouponFrame/index.d.ts +1 -1
  220. package/dist/esm/types/components/Nudge/LeadGenerationNudge.d.ts +15 -15
  221. package/dist/esm/types/components/Nudge/Nudge.d.ts +40 -40
  222. package/dist/esm/types/components/Nudge/index.d.ts +1 -1
  223. package/dist/esm/types/components/ProductOffersBlock/ProductOffersCoupon.d.ts +12 -12
  224. package/dist/esm/types/components/ProductOffersBlock/ProductOffersList.d.ts +12 -12
  225. package/dist/esm/types/components/ProductOffersBlock/ProductOffersTermsMobilePopover.d.ts +10 -10
  226. package/dist/esm/types/components/ProductOffersBlock/ProductOffersTermsPopup.d.ts +10 -10
  227. package/dist/esm/types/components/ProductOffersBlock/ProductsOffers.d.ts +32 -32
  228. package/dist/esm/types/components/SpinnerWheel/SpinnerWheel.d.ts +23 -23
  229. package/dist/esm/types/components/SpinnerWheel/WheelSection.d.ts +9 -9
  230. package/dist/esm/types/components/SpinnerWheel/index.d.ts +1 -1
  231. package/dist/esm/types/components/index.d.ts +7 -7
  232. package/dist/esm/types/components/shared/Spinner.d.ts +23 -0
  233. package/dist/esm/types/components/shared/index.d.ts +2 -0
  234. package/dist/esm/types/index.d.ts +1 -1
  235. package/dist/esm/types/utils/converter.d.ts +2 -2
  236. package/dist/esm/types/utils/customVariantOptions.d.ts +20 -20
  237. package/dist/esm/types/utils/freebieProductUtils.d.ts +23 -23
  238. package/dist/esm/types/utils/freebieUtils.d.ts +5 -5
  239. package/dist/esm/types/utils/index.d.ts +14 -14
  240. package/dist/esm/utils/converter.d.ts +2 -2
  241. package/dist/esm/utils/customVariantOptions.d.ts +20 -20
  242. package/dist/esm/utils/freebieProductUtils.d.ts +23 -23
  243. package/dist/esm/utils/freebieUtils.d.ts +5 -5
  244. package/dist/esm/utils/index.d.ts +14 -14
  245. package/dist/index.d.ts +740 -752
  246. package/package.json +95 -95
  247. package/src/assets/Frame.svg +4 -4
  248. package/src/assets/bundlePlus.svg +4 -4
  249. package/src/assets/copy-icon.svg +3 -3
  250. package/src/assets/copy-iconBlack.svg +4 -4
  251. package/src/assets/coupon.svg +4 -4
  252. package/src/assets/delivery.svg +5 -5
package/dist/index.d.ts CHANGED
@@ -1,777 +1,765 @@
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;
65
- }
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
- };
63
+ interface RewardCouponWithIcon extends RewardCoupon {
64
+ icon?: React.ReactElement | null;
65
+ }
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
74
  declare const CouponFrame: React.FC<CouponFrameProps>;
75
75
 
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
- products: {
387
- productId: string;
388
- variantIds: string[];
389
- }[];
390
- }[];
391
- };
392
- volumeTiers?: {
393
- isDefault: unknown;
394
- tier: number;
395
- minimumQuantity: number;
396
- title: string;
397
- subtitle: string;
398
- badgeTitle: string;
399
- discountValue: number;
400
- imageUrl?: string;
401
- }[];
402
- mixAndMatchTiers?: {
403
- tier: number;
404
- title: string;
405
- products: {
406
- productId: string;
407
- variantIds: string[];
408
- }[];
409
- }[];
410
- customizations: Customizations;
411
- variantOptions?: VariantOptions;
412
- storeCurrencyCode?: string;
413
- customStoreDetails?: {
414
- [key: string]: any;
415
- };
416
- customProductsQuantity?: number | null;
417
- reviewRatingType?: "none" | "ratingOnly" | "ratingAndReviewCount";
418
- appName?: string;
419
- pageHeader?: {
420
- title?: string;
421
- description?: string;
422
- customizePadding?: string;
423
- };
424
- };
425
- type BundleProps = {
426
- bundle: BundlePayload;
427
- addToCartFunction?: (selectedItemsSubtotal: number, variantIds?: string[], finalBundlePrice?: number, variantIdPriceMap?: {
428
- variantId: string;
429
- price: number;
430
- }[]) => Promise<void>;
431
- addCustomBundleToCart?: (e: any) => Promise<void>;
432
- selectedItems?: {
433
- variantId: string;
434
- product: ProductDetails;
435
- quantity: number;
436
- }[];
437
- setSelectedItems?: React.Dispatch<React.SetStateAction<{
438
- variantId: string;
439
- product: ProductDetails;
440
- quantity: number;
441
- }[]>>;
442
- bundleAddToCartLoading?: boolean;
443
- handleRemoveItem?: (variantId: string) => void;
444
- selectedItemsQuantity?: number;
445
- renderingOnPage?: boolean;
446
- bundleSubtotal?: {
447
- price: number;
448
- compareAtPrice: number;
449
- };
450
- bundleHeaderBackgroundColor?: string;
451
- currentProductId?: string;
452
- };
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
+ products: {
387
+ productId: string;
388
+ variantIds: string[];
389
+ }[];
390
+ }[];
391
+ };
392
+ volumeTiers?: {
393
+ isDefault: unknown;
394
+ tier: number;
395
+ minimumQuantity: number;
396
+ title: string;
397
+ subtitle: string;
398
+ badgeTitle: string;
399
+ discountValue: number;
400
+ imageUrl?: string;
401
+ }[];
402
+ mixAndMatchTiers?: {
403
+ tier: number;
404
+ title: string;
405
+ products: {
406
+ productId: string;
407
+ variantIds: string[];
408
+ }[];
409
+ }[];
410
+ customizations: Customizations;
411
+ variantOptions?: VariantOptions;
412
+ storeCurrencyCode?: string;
413
+ customStoreDetails?: {
414
+ [key: string]: any;
415
+ };
416
+ customProductsQuantity?: number | null;
417
+ reviewRatingType?: "none" | "ratingOnly" | "ratingAndReviewCount";
418
+ appName?: string;
419
+ pageHeader?: {
420
+ title?: string;
421
+ description?: string;
422
+ customizePadding?: string;
423
+ };
424
+ };
425
+ type BundleProps = {
426
+ bundle: BundlePayload;
427
+ addToCartFunction?: (selectedItemsSubtotal: number, variantIds?: string[], finalBundlePrice?: number, variantIdPriceMap?: {
428
+ variantId: string;
429
+ price: number;
430
+ }[]) => Promise<void>;
431
+ addCustomBundleToCart?: (e: any) => Promise<void>;
432
+ selectedItems?: {
433
+ variantId: string;
434
+ product: ProductDetails;
435
+ quantity: number;
436
+ }[];
437
+ setSelectedItems?: React.Dispatch<React.SetStateAction<{
438
+ variantId: string;
439
+ product: ProductDetails;
440
+ quantity: number;
441
+ }[]>>;
442
+ bundleAddToCartLoading?: boolean;
443
+ handleRemoveItem?: (variantId: string) => void;
444
+ selectedItemsQuantity?: number;
445
+ renderingOnPage?: boolean;
446
+ bundleSubtotal?: {
447
+ price: number;
448
+ compareAtPrice: number;
449
+ };
450
+ bundleHeaderBackgroundColor?: string;
451
+ currentProductId?: string;
452
+ };
453
453
  declare const Bundle: React.FC<BundleProps>;
454
454
 
455
- type stickyCartCustomizationDataProps = {
456
- showPrice: boolean;
457
- productImage?: {
458
- id: string;
459
- path: string;
460
- };
461
- buyNowCtaTitle: string;
462
- desktopBarType: "stretch" | "hover";
463
- showProductName: boolean;
464
- showBuyNowButton: boolean;
465
- showProductImage: boolean;
466
- addToCartCtaTitle: string;
467
- showAddToCartButton: boolean;
468
- showVariantSelector: boolean;
469
- productInfoVisibility: boolean;
470
- excludeProducts?: string[];
471
- showBarOnDesktop?: boolean;
472
- ctaButtonFontSize?: number;
473
- startsAppearingAtHeight?: number;
474
- fullyAppearsAtHeight?: number;
475
- topRibbonText?: string;
455
+ type stickyCartCustomizationDataProps = {
456
+ showPrice: boolean;
457
+ productImage?: {
458
+ id: string;
459
+ path: string;
460
+ };
461
+ buyNowCtaTitle: string;
462
+ desktopBarType: "stretch" | "hover";
463
+ showProductName: boolean;
464
+ showBuyNowButton: boolean;
465
+ showProductImage: boolean;
466
+ addToCartCtaTitle: string;
467
+ showAddToCartButton: boolean;
468
+ showVariantSelector: boolean;
469
+ productInfoVisibility: boolean;
470
+ excludeProducts?: string[];
471
+ showBarOnDesktop?: boolean;
472
+ ctaButtonFontSize?: number;
473
+ startsAppearingAtHeight?: number;
474
+ fullyAppearsAtHeight?: number;
475
+ topRibbonText?: string;
476
476
  };
477
477
 
478
- type Criteria = {
479
- id: string;
480
- type: "mov" | "moq";
481
- value: number;
482
- message: string;
483
- redirectionUrl?: string;
484
- };
485
- type Slide = {
486
- slideNumber: number;
487
- slideType: "TextImage" | "TextCode" | "TextFieldOnly" | "ImageOnly";
488
- textAlignment: "left" | "center" | "right";
489
- titleTextField?: string;
490
- descriptionTextField?: string;
491
- campaignCode?: string;
492
- imageUrl?: string;
493
- carouselRedirectionLink?: string;
494
- criteriaCount?: number;
495
- criteria?: Criteria[];
496
- };
497
- type CartOffersCarousalProps = {
498
- enableCartOffersCarousel: boolean;
499
- slidesCount: number;
500
- pauseTimer: number;
501
- backgroundColor: string;
502
- slides: Slide[];
478
+ type Criteria = {
479
+ id: string;
480
+ type: "mov" | "moq";
481
+ value: number;
482
+ message: string;
483
+ redirectionUrl?: string;
484
+ };
485
+ type Slide = {
486
+ slideNumber: number;
487
+ slideType: "TextImage" | "TextCode" | "TextFieldOnly" | "ImageOnly";
488
+ textAlignment: "left" | "center" | "right";
489
+ titleTextField?: string;
490
+ descriptionTextField?: string;
491
+ campaignCode?: string;
492
+ imageUrl?: string;
493
+ carouselRedirectionLink?: string;
494
+ criteriaCount?: number;
495
+ criteria?: Criteria[];
496
+ };
497
+ type CartOffersCarousalProps = {
498
+ enableCartOffersCarousel: boolean;
499
+ slidesCount: number;
500
+ pauseTimer: number;
501
+ backgroundColor: string;
502
+ slides: Slide[];
503
503
  };
504
504
 
505
- type freebieMilestoneProps = {
506
- enableFreebieMilestone: boolean;
507
- milestoneImage: {
508
- id: string;
509
- path: string;
510
- };
511
- campaignFilter?: string;
505
+ type freebieMilestoneProps = {
506
+ enableFreebieMilestone: boolean;
507
+ milestoneImage: {
508
+ id: string;
509
+ path: string;
510
+ };
511
+ campaignFilter?: string;
512
512
  };
513
513
 
514
- interface GSTSectionCustomizationProps {
515
- title?: string;
516
- iconColor?: string;
517
- showIcon?: boolean;
518
- backgroundColor?: string;
519
- textColor?: string;
514
+ interface GSTSectionCustomizationProps {
515
+ title?: string;
516
+ iconColor?: string;
517
+ showIcon?: boolean;
518
+ backgroundColor?: string;
519
+ textColor?: string;
520
520
  }
521
521
 
522
- type FloatingCartDataProps = {
523
- enableFloatingCart: boolean;
524
- backgroundColor: string;
525
- bannerBackgroundColor: string;
526
- textColor: string;
527
- buttonColor: string;
528
- bannerFooterText: string;
529
- showOnPages: string[];
530
- };
531
-
532
- interface RewardCoupon {
533
- couponTemplateId: number;
534
- name: string;
535
- couponType: string;
536
- discountPercentage: number | null;
537
- discountValue: number | null;
538
- minimumOrderValue: number | null;
539
- pointsRequired: number | null;
540
- }
541
- interface Checkpoint {
542
- couponTemplateId: number;
543
- couponType: string;
544
- minimumOrderValue: number;
545
- name: string;
546
- quantityThreshold: number;
547
- isDummyCouponTemplate?: boolean;
548
- customerGetsProductIds?: {
549
- ids: string[];
550
- };
551
- discountValue?: number;
552
- _allVariantIds: string[];
553
- maxFreebiesInTier?: number;
554
- }
555
- interface freebieClaimInterface {
556
- freebieSectionTitle: string;
557
- productClaimCtaButtonText: string;
558
- type: "section" | "overlay";
559
- allowOverlayClose: boolean;
560
- }
561
- type LoyaltyDiscount = {
562
- type: string;
563
- key: string;
564
- title: string;
565
- description: string | null;
566
- value: string;
567
- created_at: string;
568
- value_type: string;
569
- allocation_method: string;
570
- target_selection: string;
571
- target_type: string;
572
- total_allocated_amount: number;
573
- };
574
- interface CartProps {
575
- isOpen: boolean;
576
- setIsOpen: React.Dispatch<React.SetStateAction<boolean>>;
577
- backdrop?: boolean;
578
- backgroundColor: string;
579
- backgroundSubdued?: string;
580
- tertiaryColor?: string;
581
- tertiaryTextColor?: string;
582
- exploreCTAColor: string;
583
- emptyCartTitle: string;
584
- emptyCartDescription?: string;
585
- emptyCartButtons?: Array<{
586
- title: string;
587
- link: string;
588
- }>;
589
- checkoutFontSize: number | string;
590
- cartTitle: string;
591
- cartData?: any;
592
- switchWidthVariant?: boolean;
593
- addCartItem?: (product: any, quantity?: number, triggeredFrom?: string, freebieReplace?: boolean, productHandle?: string) => Promise<any>;
594
- removeCartItem: (lineItemKey: string, triggeredFrom?: string, ytRequest?: boolean) => Promise<any>;
595
- handleIncrement: (productId: number, newQuantity: number, properties?: {
596
- [key: string]: string;
597
- }) => Promise<any>;
598
- handleDecrement: (productId: number, newQuantity?: number) => Promise<any>;
599
- bundleProducts?: any;
600
- showBundle?: boolean;
601
- showCouponOptions?: boolean;
602
- isUserSignedIn?: boolean;
603
- loyaltyIcon?: string;
604
- discountAmountOff?: number;
605
- pointsToBeUsed?: number;
606
- rewardMultiplier?: number;
607
- redemptionMultiplier?: number;
608
- removeDiscount?: () => Promise<any>;
609
- applyDiscount?: () => Promise<any>;
610
- discountApplied?: boolean;
611
- rewardCoupons?: RewardCoupon[];
612
- userTotalPoints?: number;
613
- joinNowFunction?: () => void;
614
- checkoutFunction: (templateId?: number) => Promise<any>;
615
- guestLoyaltyPercentage?: number;
616
- showToggleButton?: boolean;
617
- isDev?: boolean;
618
- recProductsList?: any[];
619
- showMultiStepProgressBar?: boolean;
620
- cartCheckpoints?: Checkpoint[];
621
- showCartLevelAltPay?: boolean;
622
- redemptionRate: number;
623
- pointsRewardRate: number;
624
- showGuestDiscountCoupon?: boolean;
625
- guestRewardCoupon?: RewardCouponWithIcon;
626
- applyTemplateDiscount?: (templateId?: number) => Promise<any>;
627
- exploreCtaRedirectLink?: string;
628
- discountAmountApplied?: number;
629
- minimumCartValue?: number;
630
- discountInCheckoutButton?: boolean | string;
631
- isStickyCheckout?: boolean;
632
- showDiscountsListToGuestUsers?: boolean;
633
- showApplyCouponsButtonToGuestUsers?: boolean;
634
- handleCheckpointCrossed?: (checkpoint: Checkpoint, cartAmount: number) => Promise<any>;
635
- customCartProgressBarCriteria?: string;
636
- primaryTextColor?: string;
637
- secondaryTextColor?: string;
638
- themeColor?: string;
639
- themeTextColor?: string;
640
- checkoutButtonColor?: string;
641
- ctaButtonBackgroundColor?: string;
642
- ctaButtonTextColor?: string;
643
- showProductRecsOnMobile?: boolean;
644
- showProductRecsOnDesktop?: boolean;
645
- productRecsTitleText?: string;
646
- productRecsCtaButtonText?: string;
647
- showGSTOption?: boolean;
648
- gstNumber?: string;
649
- companyName?: string;
650
- applyGSTToCart?: (gstNumber: string, companyName: string) => Promise<any>;
651
- showMOVForProgressTiers?: boolean;
652
- freeProduct?: any;
653
- showLoyaltyCta?: boolean;
654
- freeProductAdjustedCartTotal?: number;
655
- minimumOrderValueToAvailDiscount?: number;
656
- signinCTAButtonVisible?: boolean;
657
- cartSigninCTAMainText?: string;
658
- showNoteOption?: boolean;
659
- note?: string;
660
- applyNoteToCart?: (note: string) => Promise<any>;
661
- inlineCartOfferInfoText?: string;
662
- inlineCartOfferInfoRedirectLink?: string;
663
- cartOfferTermsAndConditionsText?: string;
664
- showEditOptionOnProducts?: boolean;
665
- getProductDetailsByVariantId?: (handle: string, variantId?: string) => Promise<any>;
666
- onSetLoading?: (setLoadingFn: (isLoading: boolean, showLoader: boolean, showSkeletonLoader?: boolean, showLoyaltyCtaLoading?: boolean) => void) => void;
667
- showVariantSelectionDropdownInProductRecs?: boolean;
668
- originalCartSubtotal?: number;
669
- freebieProductsInCart?: any;
670
- currentTier?: number;
671
- showFreebieClaim?: boolean;
672
- addFreebieToCart?: (variantId: string) => Promise<void>;
673
- freebiesInCart?: string[];
674
- effectiveQuantityForProgressBar?: number;
675
- productPercentageOffMapping: {
676
- [variantId: string]: number;
677
- };
678
- productTagsMapping?: Map<string, string[]>;
679
- removeFreebieFromCart?: (lineItemKey: string) => Promise<void>;
680
- postalCodeList?: number[];
681
- enableGeoLocationDeliveryRestriction?: boolean;
682
- applyPostalCodeAndDeliverySlotToCart?: (deliveryType: string, postalCode?: string, deliverySlot?: string) => Promise<any>;
683
- showDeleteOnFreebies?: boolean;
684
- freebieCouponTemplates?: Checkpoint[];
685
- freebieFlowCheckpoints?: Checkpoint[];
686
- freebieClaimData?: freebieClaimInterface;
687
- showStickyAddToCart?: boolean;
688
- stickyCartLineItem?: any;
689
- stickyCartCustomizationData?: stickyCartCustomizationDataProps;
690
- stickyCartLineItemQuantity?: number;
691
- postalCodeBasedItemTrackingParameter?: "specific-tags" | "all-products";
692
- enableSlotPicker?: boolean;
693
- deliveryHeaderTitle?: string;
694
- deliveryAvailableText?: string;
695
- deliveryNotAvailableText?: string;
696
- giftWrapSetupData?: any;
697
- giftWrapProductDetail?: any;
698
- progressBarFreeProductIconType?: "tshirt" | "gift" | "box" | "cup";
699
- addToStickyCart?: (variantId: string, quantity: number) => Promise<void>;
700
- enableCustomCartOnCartPage?: boolean;
701
- isCartPage?: boolean;
702
- productRecsCardLayout: "horizontal" | "vertical";
703
- productRecsCardListVariant: "scroll" | "carousel" | "vertical";
704
- showCartTimer?: boolean;
705
- showFreebieMilestone?: boolean;
706
- showFloatingCart?: boolean;
707
- floatingCartData?: FloatingCartDataProps;
708
- cartTimerInMinutes?: number;
709
- cartTimerCustomText?: string;
710
- imageAspectSelector?: "square" | "portrait";
711
- cartComponentsCornerType?: "rounded" | "sharp";
712
- cartComponentsCornerRadius?: number;
713
- cartOffersCarousalData?: CartOffersCarousalProps;
714
- freebieMilestoneData?: freebieMilestoneProps;
715
- cartOffersCarouselHeight?: number;
716
- stickyBarBuyNowFunction?: (variantId: string, quantity: number) => Promise<void>;
717
- gstSectionCustomizationData?: GSTSectionCustomizationProps;
718
- noteSectionTitle?: string;
719
- checkoutSectionMessage?: string;
720
- checkoutSectionMessageRedirectLink?: string;
721
- checkoutSectionMessageDisplay?: "ribbon" | "tag" | "bookmark";
722
- showVariantSelectionDropdownInProductClaim?: boolean;
723
- productClaimCtaButtonText?: string;
724
- loyaltyDiscount?: LoyaltyDiscount | undefined;
725
- brandTokenName?: string;
726
- showDiscountOnMRP?: boolean;
727
- prefixMessageText?: string;
728
- suffixMessageText?: string;
729
- successMessageText?: string;
730
- toggleDecimal?: boolean;
731
- disableCheckoutButton: boolean;
732
- showEmptyCartRecommendations?: boolean;
733
- emptyProductRecsTitleText?: string;
734
- checkoutButtonBottomSpacing?: number;
735
- showPoweredByBadge?: boolean;
736
- applyCouponCode?: (code: string) => Promise<void>;
737
- showApplyCoupon?: boolean;
738
- enableConfetti?: boolean;
739
- showCheckoutButtonPaymentIcons?: boolean;
740
- comboBundleData?: BundlePayload;
741
- comboBundleAddToCartFunction?: (selectedItemsSubtotal: number, variantIds?: string[], finalBundlePrice?: number, variantIdPriceMap?: {
742
- variantId: string;
743
- price: number;
744
- }[]) => Promise<void>;
745
- }
522
+ interface RewardCoupon {
523
+ couponTemplateId: number;
524
+ name: string;
525
+ couponType: string;
526
+ discountPercentage: number | null;
527
+ discountValue: number | null;
528
+ minimumOrderValue: number | null;
529
+ pointsRequired: number | null;
530
+ }
531
+ interface Checkpoint {
532
+ couponTemplateId: number;
533
+ couponType: string;
534
+ minimumOrderValue: number;
535
+ name: string;
536
+ quantityThreshold: number;
537
+ isDummyCouponTemplate?: boolean;
538
+ customerGetsProductIds?: {
539
+ ids: string[];
540
+ };
541
+ discountValue?: number;
542
+ _allVariantIds: string[];
543
+ maxFreebiesInTier?: number;
544
+ }
545
+ interface freebieClaimInterface {
546
+ freebieSectionTitle: string;
547
+ productClaimCtaButtonText: string;
548
+ type: "section" | "overlay";
549
+ allowOverlayClose: boolean;
550
+ }
551
+ type LoyaltyDiscount = {
552
+ type: string;
553
+ key: string;
554
+ title: string;
555
+ description: string | null;
556
+ value: string;
557
+ created_at: string;
558
+ value_type: string;
559
+ allocation_method: string;
560
+ target_selection: string;
561
+ target_type: string;
562
+ total_allocated_amount: number;
563
+ };
564
+ interface CartProps {
565
+ isOpen: boolean;
566
+ setIsOpen: React.Dispatch<React.SetStateAction<boolean>>;
567
+ backdrop?: boolean;
568
+ backgroundColor: string;
569
+ backgroundSubdued?: string;
570
+ tertiaryColor?: string;
571
+ tertiaryTextColor?: string;
572
+ exploreCTAColor: string;
573
+ emptyCartTitle: string;
574
+ emptyCartDescription?: string;
575
+ emptyCartButtons?: Array<{
576
+ title: string;
577
+ link: string;
578
+ }>;
579
+ checkoutFontSize: number | string;
580
+ cartTitle: string;
581
+ cartData?: any;
582
+ switchWidthVariant?: boolean;
583
+ addCartItem?: (product: any, quantity?: number, triggeredFrom?: string, freebieReplace?: boolean, productHandle?: string) => Promise<any>;
584
+ removeCartItem: (lineItemKey: string, triggeredFrom?: string, ytRequest?: boolean) => Promise<any>;
585
+ handleIncrement: (productId: number, newQuantity: number, properties?: {
586
+ [key: string]: string;
587
+ }) => Promise<any>;
588
+ handleDecrement: (productId: number, newQuantity?: number) => Promise<any>;
589
+ bundleProducts?: any;
590
+ showBundle?: boolean;
591
+ showCouponOptions?: boolean;
592
+ isUserSignedIn?: boolean;
593
+ loyaltyIcon?: string;
594
+ discountAmountOff?: number;
595
+ pointsToBeUsed?: number;
596
+ rewardMultiplier?: number;
597
+ redemptionMultiplier?: number;
598
+ removeDiscount?: () => Promise<any>;
599
+ applyDiscount?: () => Promise<any>;
600
+ discountApplied?: boolean;
601
+ rewardCoupons?: RewardCoupon[];
602
+ userTotalPoints?: number;
603
+ joinNowFunction?: () => void;
604
+ checkoutFunction: (templateId?: number) => Promise<any>;
605
+ guestLoyaltyPercentage?: number;
606
+ showToggleButton?: boolean;
607
+ isDev?: boolean;
608
+ recProductsList?: any[];
609
+ showMultiStepProgressBar?: boolean;
610
+ cartCheckpoints?: Checkpoint[];
611
+ showCartLevelAltPay?: boolean;
612
+ redemptionRate: number;
613
+ pointsRewardRate: number;
614
+ showGuestDiscountCoupon?: boolean;
615
+ guestRewardCoupon?: RewardCouponWithIcon;
616
+ applyTemplateDiscount?: (templateId?: number) => Promise<any>;
617
+ exploreCtaRedirectLink?: string;
618
+ discountAmountApplied?: number;
619
+ minimumCartValue?: number;
620
+ discountInCheckoutButton?: boolean | string;
621
+ isStickyCheckout?: boolean;
622
+ showDiscountsListToGuestUsers?: boolean;
623
+ showApplyCouponsButtonToGuestUsers?: boolean;
624
+ handleCheckpointCrossed?: (checkpoint: Checkpoint, cartAmount: number) => Promise<any>;
625
+ customCartProgressBarCriteria?: string;
626
+ primaryTextColor?: string;
627
+ secondaryTextColor?: string;
628
+ themeColor?: string;
629
+ themeTextColor?: string;
630
+ checkoutButtonColor?: string;
631
+ ctaButtonBackgroundColor?: string;
632
+ ctaButtonTextColor?: string;
633
+ showProductRecsOnMobile?: boolean;
634
+ showProductRecsOnDesktop?: boolean;
635
+ productRecsTitleText?: string;
636
+ productRecsCtaButtonText?: string;
637
+ showGSTOption?: boolean;
638
+ gstNumber?: string;
639
+ companyName?: string;
640
+ applyGSTToCart?: (gstNumber: string, companyName: string) => Promise<any>;
641
+ showMOVForProgressTiers?: boolean;
642
+ freeProduct?: any;
643
+ showLoyaltyCta?: boolean;
644
+ freeProductAdjustedCartTotal?: number;
645
+ minimumOrderValueToAvailDiscount?: number;
646
+ signinCTAButtonVisible?: boolean;
647
+ cartSigninCTAMainText?: string;
648
+ showNoteOption?: boolean;
649
+ note?: string;
650
+ applyNoteToCart?: (note: string) => Promise<any>;
651
+ inlineCartOfferInfoText?: string;
652
+ inlineCartOfferInfoRedirectLink?: string;
653
+ cartOfferTermsAndConditionsText?: string;
654
+ showEditOptionOnProducts?: boolean;
655
+ getProductDetailsByVariantId?: (handle: string, variantId?: string) => Promise<any>;
656
+ onSetLoading?: (setLoadingFn: (isLoading: boolean, showLoader: boolean, showSkeletonLoader?: boolean, showLoyaltyCtaLoading?: boolean) => void) => void;
657
+ showVariantSelectionDropdownInProductRecs?: boolean;
658
+ originalCartSubtotal?: number;
659
+ freebieProductsInCart?: any;
660
+ currentTier?: number;
661
+ showFreebieClaim?: boolean;
662
+ addFreebieToCart?: (variantId: string) => Promise<void>;
663
+ freebiesInCart?: string[];
664
+ effectiveQuantityForProgressBar?: number;
665
+ productPercentageOffMapping: {
666
+ [variantId: string]: number;
667
+ };
668
+ productTagsMapping?: Map<string, string[]>;
669
+ removeFreebieFromCart?: (lineItemKey: string) => Promise<void>;
670
+ postalCodeList?: number[];
671
+ enableGeoLocationDeliveryRestriction?: boolean;
672
+ applyPostalCodeAndDeliverySlotToCart?: (deliveryType: string, postalCode?: string, deliverySlot?: string) => Promise<any>;
673
+ showDeleteOnFreebies?: boolean;
674
+ freebieCouponTemplates?: Checkpoint[];
675
+ freebieFlowCheckpoints?: Checkpoint[];
676
+ freebieClaimData?: freebieClaimInterface;
677
+ showStickyAddToCart?: boolean;
678
+ stickyCartLineItem?: any;
679
+ stickyCartCustomizationData?: stickyCartCustomizationDataProps;
680
+ stickyCartLineItemQuantity?: number;
681
+ postalCodeBasedItemTrackingParameter?: "specific-tags" | "all-products";
682
+ enableSlotPicker?: boolean;
683
+ deliveryHeaderTitle?: string;
684
+ deliveryAvailableText?: string;
685
+ deliveryNotAvailableText?: string;
686
+ giftWrapSetupData?: any;
687
+ giftWrapProductDetail?: any;
688
+ progressBarFreeProductIconType?: "tshirt" | "gift" | "box" | "cup";
689
+ addToStickyCart?: (variantId: string, quantity: number) => Promise<void>;
690
+ enableCustomCartOnCartPage?: boolean;
691
+ isCartPage?: boolean;
692
+ productRecsCardLayout: "horizontal" | "vertical";
693
+ productRecsCardListVariant: "scroll" | "carousel" | "vertical";
694
+ showCartTimer?: boolean;
695
+ showFreebieMilestone?: boolean;
696
+ cartTimerInMinutes?: number;
697
+ cartTimerCustomText?: string;
698
+ imageAspectSelector?: "square" | "portrait";
699
+ cartComponentsCornerType?: "rounded" | "sharp";
700
+ cartComponentsCornerRadius?: number;
701
+ cartOffersCarousalData?: CartOffersCarousalProps;
702
+ freebieMilestoneData?: freebieMilestoneProps;
703
+ cartOffersCarouselHeight?: number;
704
+ stickyBarBuyNowFunction?: (variantId: string, quantity: number) => Promise<void>;
705
+ gstSectionCustomizationData?: GSTSectionCustomizationProps;
706
+ noteSectionTitle?: string;
707
+ checkoutSectionMessage?: string;
708
+ checkoutSectionMessageRedirectLink?: string;
709
+ checkoutSectionMessageDisplay?: "ribbon" | "tag" | "bookmark";
710
+ showVariantSelectionDropdownInProductClaim?: boolean;
711
+ productClaimCtaButtonText?: string;
712
+ loyaltyDiscount?: LoyaltyDiscount | undefined;
713
+ brandTokenName?: string;
714
+ showDiscountOnMRP?: boolean;
715
+ prefixMessageText?: string;
716
+ suffixMessageText?: string;
717
+ successMessageText?: string;
718
+ toggleDecimal?: boolean;
719
+ disableCheckoutButton: boolean;
720
+ showEmptyCartRecommendations?: boolean;
721
+ emptyProductRecsTitleText?: string;
722
+ checkoutButtonBottomSpacing?: number;
723
+ showPoweredByBadge?: boolean;
724
+ applyCouponCode?: (code: string) => Promise<void>;
725
+ showApplyCoupon?: boolean;
726
+ enableConfetti?: boolean;
727
+ showCheckoutButtonPaymentIcons?: boolean;
728
+ comboBundleData?: BundlePayload;
729
+ comboBundleAddToCartFunction?: (selectedItemsSubtotal: number, variantIds?: string[], finalBundlePrice?: number, variantIdPriceMap?: {
730
+ variantId: string;
731
+ price: number;
732
+ }[]) => Promise<void>;
733
+ }
746
734
  declare const Cart: React.FC<CartProps>;
747
735
 
748
- type BundleLoaderProps = {};
736
+ type BundleLoaderProps = {};
749
737
  declare const BundleLoader: React.FC<BundleLoaderProps>;
750
738
 
751
- interface ProductsOffersConfigType {
752
- sectionType?: "coupon" | "list";
753
- sectionTitle?: string;
754
- sectionBackgroundColor?: string;
755
- sectionBgContrastColor?: string;
756
- cardBackgroundColor?: string;
757
- cardBackgroundTransparent?: boolean;
758
- textColor?: string;
759
- accentColor?: string;
760
- roundness?: number;
761
- cardPadding?: number;
762
- viewDetailsTitle?: string;
763
- alignment?: "left" | "middle" | "right";
764
- iconVisibility?: boolean;
765
- popupIsolationStrategy?: "revert" | "revert-layer" | "unset" | "initial" | "inherit" | "none";
766
- }
767
- interface CartCheckpoint extends Checkpoint {
768
- customCartProgressBarCriteria?: string | null;
769
- discountPercentage?: number | null;
770
- discountId?: number | null;
771
- }
772
- declare const ProductsOffers: ({ offersConfig, offers, }: {
773
- offersConfig?: ProductsOffersConfigType | null | undefined;
774
- offers: CartCheckpoint[];
739
+ interface ProductsOffersConfigType {
740
+ sectionType?: "coupon" | "list";
741
+ sectionTitle?: string;
742
+ sectionBackgroundColor?: string;
743
+ sectionBgContrastColor?: string;
744
+ cardBackgroundColor?: string;
745
+ cardBackgroundTransparent?: boolean;
746
+ textColor?: string;
747
+ accentColor?: string;
748
+ roundness?: number;
749
+ cardPadding?: number;
750
+ viewDetailsTitle?: string;
751
+ alignment?: "left" | "middle" | "right";
752
+ iconVisibility?: boolean;
753
+ popupIsolationStrategy?: "revert" | "revert-layer" | "unset" | "initial" | "inherit" | "none";
754
+ }
755
+ interface CartCheckpoint extends Checkpoint {
756
+ customCartProgressBarCriteria?: string | null;
757
+ discountPercentage?: number | null;
758
+ discountId?: number | null;
759
+ }
760
+ declare const ProductsOffers: ({ offersConfig, offers, }: {
761
+ offersConfig?: ProductsOffersConfigType | null | undefined;
762
+ offers: CartCheckpoint[];
775
763
  }) => React.JSX.Element;
776
764
 
777
765
  export { Bundle, BundleLoader, Cart, CartCheckpoint, CouponFrame, Nudge, ProductsOffers as ProductOffers, ProductsOffersConfigType, SpinnerWheel };