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