yt-uikit 0.7.414-hide-progress.1 → 0.7.415-mixandmatchUIChanges.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 (244) 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 +388 -388
  20. package/dist/esm/components/BundleBlock/BundleBuilder/BundleBuilder.d.ts +39 -39
  21. package/dist/esm/components/BundleBlock/BundleBuilder/ResponsiveBgImage.d.ts +9 -9
  22. package/dist/esm/components/BundleBlock/BundleBuilder/VariantOptionsModal.d.ts +16 -16
  23. package/dist/esm/components/BundleBlock/BundleBuilder/bundleBuilder.style.d.ts +37 -35
  24. package/dist/esm/components/BundleBlock/BundleBuilderTracker/BundleBuilderTracker.d.ts +50 -50
  25. package/dist/esm/components/BundleBlock/BundleBuilderTracker/bundleBuilderTracker.style.d.ts +77 -75
  26. package/dist/esm/components/BundleBlock/BundleProductDetailsModal/BundleProductDetailsModal.d.ts +27 -27
  27. package/dist/esm/components/BundleBlock/BundleProductDetailsModal/bundleProductDetailsModal.style.d.ts +10 -10
  28. package/dist/esm/components/BundleBlock/CollectionBundle/ColllectionBundle.d.ts +103 -103
  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 -84
  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/ProductGridSkeleton/ProductGridSkeleton.d.ts +5 -0
  41. package/dist/esm/components/BundleBlock/VolumeBundle/VolumeBundle.d.ts +3 -3
  42. package/dist/esm/components/BundleBlock/VolumeBundle/temp.d.ts +3 -0
  43. package/dist/esm/components/BundleBlock/VolumeBundle/volumeBundle.style.d.ts +80 -78
  44. package/dist/esm/components/BundleBlock/index.d.ts +1 -1
  45. package/dist/esm/components/Cart/ApplyCoupon.d.ts +12 -12
  46. package/dist/esm/components/Cart/Bundle.d.ts +6 -6
  47. package/dist/esm/components/Cart/Cart.d.ts +235 -235
  48. package/dist/esm/components/Cart/CartDrawer.d.ts +21 -21
  49. package/dist/esm/components/Cart/CartOffersCarousel.d.ts +45 -45
  50. package/dist/esm/components/Cart/CartProductsList.d.ts +45 -45
  51. package/dist/esm/components/Cart/CartTimer.d.ts +8 -8
  52. package/dist/esm/components/Cart/CheckoutSection.d.ts +38 -38
  53. package/dist/esm/components/Cart/CouponSelection.d.ts +25 -25
  54. package/dist/esm/components/Cart/DatePicker.d.ts +10 -10
  55. package/dist/esm/components/Cart/EmptyCart.d.ts +33 -33
  56. package/dist/esm/components/Cart/FooterSections.d.ts +6 -6
  57. package/dist/esm/components/Cart/FreebieClaim.d.ts +17 -0
  58. package/dist/esm/components/Cart/FreebieClaimManager.d.ts +18 -18
  59. package/dist/esm/components/Cart/FreebieClaimOverlay.d.ts +18 -18
  60. package/dist/esm/components/Cart/FreebieClaimOverlayCard.d.ts +10 -10
  61. package/dist/esm/components/Cart/FreebieClaimSection.d.ts +18 -18
  62. package/dist/esm/components/Cart/FreebieClaimSectionCard.d.ts +17 -17
  63. package/dist/esm/components/Cart/GSTSection.d.ts +15 -15
  64. package/dist/esm/components/Cart/GiftWrap.d.ts +14 -14
  65. package/dist/esm/components/Cart/GuestDiscountCoupon.d.ts +9 -9
  66. package/dist/esm/components/Cart/InlineCartOfferInfoText.d.ts +10 -10
  67. package/dist/esm/components/Cart/LoyaltyAppliedCTA.d.ts +19 -19
  68. package/dist/esm/components/Cart/LoyaltyApplyCTA.d.ts +18 -18
  69. package/dist/esm/components/Cart/LoyaltyBadge.d.ts +10 -10
  70. package/dist/esm/components/Cart/LoyaltyGuestCTA.d.ts +17 -17
  71. package/dist/esm/components/Cart/MultiStepProgressBar/CheckpointConfetti.d.ts +11 -11
  72. package/dist/esm/components/Cart/MultiStepProgressBar/CheckpointIcon.d.ts +3 -3
  73. package/dist/esm/components/Cart/MultiStepProgressBar/CheckpointTooltip.d.ts +3 -3
  74. package/dist/esm/components/Cart/MultiStepProgressBar/MultiStepIcon.d.ts +9 -9
  75. package/dist/esm/components/Cart/MultiStepProgressBar/MultiStepProgressBar.d.ts +5 -5
  76. package/dist/esm/components/Cart/MultiStepProgressBar/MultiStepProgressBar.styled.d.ts +45 -45
  77. package/dist/esm/components/Cart/MultiStepProgressBar/MultiStepUtils.d.ts +5 -6
  78. package/dist/esm/components/Cart/MultiStepProgressBar/MultiTierProgressBar.d.ts +4 -4
  79. package/dist/esm/components/Cart/MultiStepProgressBar/MutiTierNextRewardMessage.d.ts +3 -3
  80. package/dist/esm/components/Cart/MultiStepProgressBar/NextRewardMessage.d.ts +3 -3
  81. package/dist/esm/components/Cart/MultiStepProgressBar/SingleTierProgressBar.d.ts +4 -4
  82. package/dist/esm/components/Cart/MultiStepProgressBar/SingleTierProgressBar.styled.d.ts +22 -22
  83. package/dist/esm/components/Cart/MultiStepProgressBar/SingletTierNextRewardMessage.d.ts +3 -3
  84. package/dist/esm/components/Cart/MultiStepProgressBar/types.d.ts +55 -55
  85. package/dist/esm/components/Cart/NextFreebieRow.d.ts +19 -19
  86. package/dist/esm/components/Cart/NoteSection.d.ts +8 -8
  87. package/dist/esm/components/Cart/ProductCard.d.ts +30 -30
  88. package/dist/esm/components/Cart/ProductRecCard.d.ts +20 -20
  89. package/dist/esm/components/Cart/ProductRecList.d.ts +23 -23
  90. package/dist/esm/components/Cart/ProgressBar.d.ts +13 -13
  91. package/dist/esm/components/Cart/ProgressBarCartLoader.d.ts +7 -7
  92. package/dist/esm/components/Cart/QuantitySelector.d.ts +12 -12
  93. package/dist/esm/components/Cart/RegionSpecificDelivery.d.ts +17 -17
  94. package/dist/esm/components/Cart/RewardPointsPreview.d.ts +10 -10
  95. package/dist/esm/components/Cart/StandardDelivery.d.ts +11 -11
  96. package/dist/esm/components/Cart/StickyCart.d.ts +52 -52
  97. package/dist/esm/components/Cart/VariantSelectionPopup/DesktopVariantPopup.d.ts +19 -19
  98. package/dist/esm/components/Cart/VariantSelectionPopup/DesktopVariantPopup.styled.d.ts +60 -60
  99. package/dist/esm/components/Cart/VariantSelectionPopup/MobileVariantPopover.d.ts +19 -19
  100. package/dist/esm/components/Cart/VariantSelectionPopup/MobileVariantPopover.styled.d.ts +49 -0
  101. package/dist/esm/components/Cart/index.d.ts +1 -1
  102. package/dist/esm/components/CouponFrame/CouponFrame.d.ts +15 -15
  103. package/dist/esm/components/CouponFrame/index.d.ts +1 -1
  104. package/dist/esm/components/Nudge/LeadGenerationNudge.d.ts +15 -15
  105. package/dist/esm/components/Nudge/Nudge.d.ts +40 -40
  106. package/dist/esm/components/Nudge/index.d.ts +1 -1
  107. package/dist/esm/components/SpinnerWheel/SpinnerWheel.d.ts +23 -23
  108. package/dist/esm/components/SpinnerWheel/WheelSection.d.ts +9 -9
  109. package/dist/esm/components/SpinnerWheel/index.d.ts +1 -1
  110. package/dist/esm/components/index.d.ts +6 -6
  111. package/dist/esm/hooks/useShadowConfetti.d.ts +1 -0
  112. package/dist/esm/index.d.ts +1 -1
  113. package/dist/esm/index.js +412 -414
  114. package/dist/esm/shadowStyles.d.ts +1 -0
  115. package/dist/esm/types/atoms/bundleBuilderProductDetailsAtom.d.ts +4 -4
  116. package/dist/esm/types/atoms/cartDataAtom.d.ts +3 -3
  117. package/dist/esm/types/atoms/cartLoadingAtom.d.ts +22 -22
  118. package/dist/esm/types/atoms/cartTimer.d.ts +2 -2
  119. package/dist/esm/types/atoms/couponSelectionOpenAtom.d.ts +3 -3
  120. package/dist/esm/types/atoms/dateAtom.d.ts +1 -1
  121. package/dist/esm/types/atoms/freebieClaimModalAtom.d.ts +7 -7
  122. package/dist/esm/types/atoms/giftWrap.d.ts +2 -2
  123. package/dist/esm/types/atoms/gstCompanyNameAtom.d.ts +1 -1
  124. package/dist/esm/types/atoms/gstInputAtom.d.ts +1 -1
  125. package/dist/esm/types/atoms/maxQtyErrorAtom.d.ts +3 -3
  126. package/dist/esm/types/atoms/multiClaimSelectionAtom.d.ts +19 -19
  127. package/dist/esm/types/atoms/noteInputAtom.d.ts +3 -3
  128. package/dist/esm/types/atoms/postalCodeAtom.d.ts +1 -1
  129. package/dist/esm/types/atoms/shippingAtom.d.ts +8 -8
  130. package/dist/esm/types/atoms/showGSTInputAtom.d.ts +1 -1
  131. package/dist/esm/types/atoms/variantSelectionModalAtom.d.ts +23 -23
  132. package/dist/esm/types/components/BundleBlock/Bundle.d.ts +388 -388
  133. package/dist/esm/types/components/BundleBlock/BundleBuilder/BundleBuilder.d.ts +39 -39
  134. package/dist/esm/types/components/BundleBlock/BundleBuilder/ResponsiveBgImage.d.ts +9 -9
  135. package/dist/esm/types/components/BundleBlock/BundleBuilder/VariantOptionsModal.d.ts +16 -16
  136. package/dist/esm/types/components/BundleBlock/BundleBuilder/bundleBuilder.style.d.ts +37 -35
  137. package/dist/esm/types/components/BundleBlock/BundleBuilderTracker/BundleBuilderTracker.d.ts +50 -50
  138. package/dist/esm/types/components/BundleBlock/BundleBuilderTracker/bundleBuilderTracker.style.d.ts +77 -75
  139. package/dist/esm/types/components/BundleBlock/BundleProductDetailsModal/BundleProductDetailsModal.d.ts +27 -27
  140. package/dist/esm/types/components/BundleBlock/BundleProductDetailsModal/bundleProductDetailsModal.style.d.ts +10 -10
  141. package/dist/esm/types/components/BundleBlock/CollectionBundle/ColllectionBundle.d.ts +103 -103
  142. package/dist/esm/types/components/BundleBlock/CollectionBundle/FileUpload.d.ts +15 -15
  143. package/dist/esm/types/components/BundleBlock/CollectionBundle/LoadingSpinner.d.ts +2 -2
  144. package/dist/esm/types/components/BundleBlock/CollectionBundle/ProductDetailsModal.d.ts +15 -15
  145. package/dist/esm/types/components/BundleBlock/ComboBundle.d.ts +16 -16
  146. package/dist/esm/types/components/BundleBlock/FixedBundle/FixedBundle.d.ts +4 -4
  147. package/dist/esm/types/components/BundleBlock/FixedBundle/SeparateVariantOptions.d.ts +39 -39
  148. package/dist/esm/types/components/BundleBlock/FixedBundle/VariantSelectorModal.d.ts +22 -22
  149. package/dist/esm/types/components/BundleBlock/FixedBundle/fixedBundle.style.d.ts +90 -84
  150. package/dist/esm/types/components/BundleBlock/Loader.d.ts +5 -5
  151. package/dist/esm/types/components/BundleBlock/MixAndMatchBundle/MixAndMatchBundle.d.ts +8 -8
  152. package/dist/esm/types/components/BundleBlock/MixAndMatchBundle/mixAndMatchBundle.style.d.ts +86 -86
  153. package/dist/esm/types/components/BundleBlock/ProductGridSkeleton/ProductGridSkeleton.d.ts +5 -0
  154. package/dist/esm/types/components/BundleBlock/VolumeBundle/VolumeBundle.d.ts +3 -3
  155. package/dist/esm/types/components/BundleBlock/VolumeBundle/temp.d.ts +3 -0
  156. package/dist/esm/types/components/BundleBlock/VolumeBundle/volumeBundle.style.d.ts +80 -78
  157. package/dist/esm/types/components/BundleBlock/index.d.ts +1 -1
  158. package/dist/esm/types/components/Cart/ApplyCoupon.d.ts +12 -12
  159. package/dist/esm/types/components/Cart/Bundle.d.ts +6 -6
  160. package/dist/esm/types/components/Cart/Cart.d.ts +235 -235
  161. package/dist/esm/types/components/Cart/CartDrawer.d.ts +21 -21
  162. package/dist/esm/types/components/Cart/CartOffersCarousel.d.ts +45 -45
  163. package/dist/esm/types/components/Cart/CartProductsList.d.ts +45 -45
  164. package/dist/esm/types/components/Cart/CartTimer.d.ts +8 -8
  165. package/dist/esm/types/components/Cart/CheckoutSection.d.ts +38 -38
  166. package/dist/esm/types/components/Cart/CouponSelection.d.ts +25 -25
  167. package/dist/esm/types/components/Cart/DatePicker.d.ts +10 -10
  168. package/dist/esm/types/components/Cart/EmptyCart.d.ts +33 -33
  169. package/dist/esm/types/components/Cart/FooterSections.d.ts +6 -6
  170. package/dist/esm/types/components/Cart/FreebieClaim.d.ts +17 -0
  171. package/dist/esm/types/components/Cart/FreebieClaimManager.d.ts +18 -18
  172. package/dist/esm/types/components/Cart/FreebieClaimOverlay.d.ts +18 -18
  173. package/dist/esm/types/components/Cart/FreebieClaimOverlayCard.d.ts +10 -10
  174. package/dist/esm/types/components/Cart/FreebieClaimSection.d.ts +18 -18
  175. package/dist/esm/types/components/Cart/FreebieClaimSectionCard.d.ts +17 -17
  176. package/dist/esm/types/components/Cart/GSTSection.d.ts +15 -15
  177. package/dist/esm/types/components/Cart/GiftWrap.d.ts +14 -14
  178. package/dist/esm/types/components/Cart/GuestDiscountCoupon.d.ts +9 -9
  179. package/dist/esm/types/components/Cart/InlineCartOfferInfoText.d.ts +10 -10
  180. package/dist/esm/types/components/Cart/LoyaltyAppliedCTA.d.ts +19 -19
  181. package/dist/esm/types/components/Cart/LoyaltyApplyCTA.d.ts +18 -18
  182. package/dist/esm/types/components/Cart/LoyaltyBadge.d.ts +10 -10
  183. package/dist/esm/types/components/Cart/LoyaltyGuestCTA.d.ts +17 -17
  184. package/dist/esm/types/components/Cart/MultiStepProgressBar/CheckpointConfetti.d.ts +11 -11
  185. package/dist/esm/types/components/Cart/MultiStepProgressBar/CheckpointIcon.d.ts +3 -3
  186. package/dist/esm/types/components/Cart/MultiStepProgressBar/CheckpointTooltip.d.ts +3 -3
  187. package/dist/esm/types/components/Cart/MultiStepProgressBar/MultiStepIcon.d.ts +9 -9
  188. package/dist/esm/types/components/Cart/MultiStepProgressBar/MultiStepProgressBar.d.ts +5 -5
  189. package/dist/esm/types/components/Cart/MultiStepProgressBar/MultiStepProgressBar.styled.d.ts +45 -45
  190. package/dist/esm/types/components/Cart/MultiStepProgressBar/MultiStepUtils.d.ts +5 -6
  191. package/dist/esm/types/components/Cart/MultiStepProgressBar/MultiTierProgressBar.d.ts +4 -4
  192. package/dist/esm/types/components/Cart/MultiStepProgressBar/MutiTierNextRewardMessage.d.ts +3 -3
  193. package/dist/esm/types/components/Cart/MultiStepProgressBar/NextRewardMessage.d.ts +3 -3
  194. package/dist/esm/types/components/Cart/MultiStepProgressBar/SingleTierProgressBar.d.ts +4 -4
  195. package/dist/esm/types/components/Cart/MultiStepProgressBar/SingleTierProgressBar.styled.d.ts +22 -22
  196. package/dist/esm/types/components/Cart/MultiStepProgressBar/SingletTierNextRewardMessage.d.ts +3 -3
  197. package/dist/esm/types/components/Cart/MultiStepProgressBar/types.d.ts +55 -55
  198. package/dist/esm/types/components/Cart/NextFreebieRow.d.ts +19 -19
  199. package/dist/esm/types/components/Cart/NoteSection.d.ts +8 -8
  200. package/dist/esm/types/components/Cart/ProductCard.d.ts +30 -30
  201. package/dist/esm/types/components/Cart/ProductRecCard.d.ts +20 -20
  202. package/dist/esm/types/components/Cart/ProductRecList.d.ts +23 -23
  203. package/dist/esm/types/components/Cart/ProgressBar.d.ts +13 -13
  204. package/dist/esm/types/components/Cart/ProgressBarCartLoader.d.ts +7 -7
  205. package/dist/esm/types/components/Cart/QuantitySelector.d.ts +12 -12
  206. package/dist/esm/types/components/Cart/RegionSpecificDelivery.d.ts +17 -17
  207. package/dist/esm/types/components/Cart/RewardPointsPreview.d.ts +10 -10
  208. package/dist/esm/types/components/Cart/StandardDelivery.d.ts +11 -11
  209. package/dist/esm/types/components/Cart/StickyCart.d.ts +52 -52
  210. package/dist/esm/types/components/Cart/VariantSelectionPopup/DesktopVariantPopup.d.ts +19 -19
  211. package/dist/esm/types/components/Cart/VariantSelectionPopup/DesktopVariantPopup.styled.d.ts +60 -60
  212. package/dist/esm/types/components/Cart/VariantSelectionPopup/MobileVariantPopover.d.ts +19 -19
  213. package/dist/esm/types/components/Cart/VariantSelectionPopup/MobileVariantPopover.styled.d.ts +49 -0
  214. package/dist/esm/types/components/Cart/index.d.ts +1 -1
  215. package/dist/esm/types/components/CouponFrame/CouponFrame.d.ts +15 -15
  216. package/dist/esm/types/components/CouponFrame/index.d.ts +1 -1
  217. package/dist/esm/types/components/Nudge/LeadGenerationNudge.d.ts +15 -15
  218. package/dist/esm/types/components/Nudge/Nudge.d.ts +40 -40
  219. package/dist/esm/types/components/Nudge/index.d.ts +1 -1
  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 +6 -6
  224. package/dist/esm/types/hooks/useShadowConfetti.d.ts +1 -0
  225. package/dist/esm/types/index.d.ts +1 -1
  226. package/dist/esm/types/shadowStyles.d.ts +1 -0
  227. package/dist/esm/types/utils/converter.d.ts +2 -2
  228. package/dist/esm/types/utils/customVariantOptions.d.ts +20 -20
  229. package/dist/esm/types/utils/freebieProductUtils.d.ts +22 -22
  230. package/dist/esm/types/utils/freebieUtils.d.ts +5 -5
  231. package/dist/esm/types/utils/index.d.ts +14 -14
  232. package/dist/esm/utils/converter.d.ts +2 -2
  233. package/dist/esm/utils/customVariantOptions.d.ts +20 -20
  234. package/dist/esm/utils/freebieProductUtils.d.ts +22 -22
  235. package/dist/esm/utils/freebieUtils.d.ts +5 -5
  236. package/dist/esm/utils/index.d.ts +14 -14
  237. package/dist/index.d.ts +712 -712
  238. package/package.json +95 -95
  239. package/src/assets/Frame.svg +4 -4
  240. package/src/assets/bundlePlus.svg +4 -4
  241. package/src/assets/copy-icon.svg +3 -3
  242. package/src/assets/copy-iconBlack.svg +4 -4
  243. package/src/assets/coupon.svg +4 -4
  244. package/src/assets/delivery.svg +5 -5
@@ -1,19 +1,19 @@
1
- import React from "react";
2
- type MobileVariantPopupProps = {
3
- isDev?: boolean;
4
- removeCartItem: (variantId: string, triggeredFrom?: string, ytRequest?: boolean) => Promise<any>;
5
- addCartItem?: (variantId: string, quantity?: number, triggeredFrom?: string, freebieReplace?: boolean, productHandle?: string) => Promise<any>;
6
- getProductDetailsByVariantId?: (handle: string, variantId?: string) => Promise<any>;
7
- themeColor?: string;
8
- cartComponentsCornerType?: "rounded" | "sharp";
9
- cartComponentsCornerRadius?: number;
10
- backgroundColor: string;
11
- removeFreebieFromCart?: (lineItemKey: string) => Promise<void>;
12
- freebieClaimAddToCart?: (variantId: string, originalAllowedVariantIds?: string[]) => Promise<void>;
13
- productClaimCtaButtonText?: string;
14
- backgroundSubdued?: string;
15
- primaryTextColor?: string;
16
- shouldCheckInventoryQuantity?: boolean;
17
- };
18
- declare const MobileVariantPopup: React.ForwardRefExoticComponent<MobileVariantPopupProps & React.RefAttributes<HTMLDivElement>>;
19
- export default MobileVariantPopup;
1
+ import React from "react";
2
+ type MobileVariantPopupProps = {
3
+ isDev?: boolean;
4
+ removeCartItem: (variantId: string, triggeredFrom?: string, ytRequest?: boolean) => Promise<any>;
5
+ addCartItem?: (variantId: string, quantity?: number, triggeredFrom?: string, freebieReplace?: boolean, productHandle?: string) => Promise<any>;
6
+ getProductDetailsByVariantId?: (handle: string, variantId?: string) => Promise<any>;
7
+ themeColor?: string;
8
+ cartComponentsCornerType?: "rounded" | "sharp";
9
+ cartComponentsCornerRadius?: number;
10
+ backgroundColor: string;
11
+ removeFreebieFromCart?: (lineItemKey: string) => Promise<void>;
12
+ freebieClaimAddToCart?: (variantId: string, originalAllowedVariantIds?: string[]) => Promise<void>;
13
+ productClaimCtaButtonText?: string;
14
+ backgroundSubdued?: string;
15
+ primaryTextColor?: string;
16
+ shouldCheckInventoryQuantity?: boolean;
17
+ };
18
+ declare const MobileVariantPopup: React.ForwardRefExoticComponent<MobileVariantPopupProps & React.RefAttributes<HTMLDivElement>>;
19
+ export default MobileVariantPopup;
@@ -0,0 +1,49 @@
1
+ /// <reference types="react" />
2
+ export declare const VariantSelectionPopupContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
3
+ export declare const ModalContent: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
4
+ $themeColor?: string | undefined;
5
+ $cornerRadius?: number | undefined;
6
+ $backgroundColor?: string | undefined;
7
+ }>> & string;
8
+ export declare const CloseButton: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
9
+ export declare const ProductDetails: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
10
+ export declare const ProductImage: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, never>> & string;
11
+ export declare const ProductInfo: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
12
+ export declare const ProductTitle: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>, {
13
+ $themeColor?: string | undefined;
14
+ }>> & string;
15
+ export declare const ProductPrice: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
16
+ primaryTextColor?: string | undefined;
17
+ }>> & string;
18
+ export declare const OriginalPrice: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, never>> & string;
19
+ export declare const ViewDetailsLink: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>, never>> & string;
20
+ export declare const OptionContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
21
+ export declare const OptionTitle: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
22
+ export declare const OptionsWrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
23
+ export declare const VariantOption: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, {
24
+ $isSelected?: boolean | undefined;
25
+ $isDisabled?: boolean | undefined;
26
+ $themeColor?: string | undefined;
27
+ backgroundColor?: string | undefined;
28
+ }>> & string;
29
+ export declare const CartButton: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, {
30
+ $themeColor: string;
31
+ }>> & string;
32
+ export declare const LoaderContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
33
+ export declare const QuantitySelectorContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
34
+ export declare const MainSelectorContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
35
+ $backgroundColor: string;
36
+ }>> & string;
37
+ export declare const FlexContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
38
+ export declare const DetailsSection: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
39
+ export declare const PriceSection: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
40
+ export declare const LinkSection: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
41
+ export declare const ActionsSection: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
42
+ export declare const ReplaceButtonContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
43
+ export declare const ReplaceButton: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, {
44
+ $themeColor?: string | undefined;
45
+ $cornerRadius?: number | undefined;
46
+ $cornerType?: string | undefined;
47
+ $disabled?: boolean | undefined;
48
+ }>> & string;
49
+ export declare const ReplaceButtonContent: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
@@ -1 +1 @@
1
- export { default } from "./Cart";
1
+ export { default } from "./Cart";
@@ -1,15 +1,15 @@
1
- import React from "react";
2
- import { RewardCoupon } from "../Cart/Cart";
3
- export interface RewardCouponWithIcon extends RewardCoupon {
4
- icon?: React.ReactElement | null;
5
- }
6
- export type CouponFrameProps = {
7
- couponActive: boolean;
8
- rewardCoupon: RewardCouponWithIcon;
9
- currency: string;
10
- handleApply: (templateId?: number) => Promise<any>;
11
- pointsCoupon?: boolean;
12
- pointsToBeUsed?: number;
13
- };
14
- declare const CouponFrame: React.FC<CouponFrameProps>;
15
- export default CouponFrame;
1
+ import React from "react";
2
+ import { RewardCoupon } from "../Cart/Cart";
3
+ export interface RewardCouponWithIcon extends RewardCoupon {
4
+ icon?: React.ReactElement | null;
5
+ }
6
+ export type CouponFrameProps = {
7
+ couponActive: boolean;
8
+ rewardCoupon: RewardCouponWithIcon;
9
+ currency: string;
10
+ handleApply: (templateId?: number) => Promise<any>;
11
+ pointsCoupon?: boolean;
12
+ pointsToBeUsed?: number;
13
+ };
14
+ declare const CouponFrame: React.FC<CouponFrameProps>;
15
+ export default CouponFrame;
@@ -1 +1 @@
1
- export { default } from "./CouponFrame";
1
+ export { default } from "./CouponFrame";
@@ -1,15 +1,15 @@
1
- import React from "react";
2
- import "./Nudge.scss";
3
- import "react-international-phone/style.css";
4
- type LeadGenerationNudgeProps = {
5
- ctaButtonColor?: string;
6
- headerColor?: string;
7
- title?: string;
8
- subtitle?: string;
9
- handleLoginOrSignup?: (phoneNumber: string, email: string) => Promise<any>;
10
- handleSubmit?: (phoneNumber: string, otp: string) => Promise<any>;
11
- onClose?: () => void;
12
- closeIconColor?: string;
13
- };
14
- declare const LeadGenerationNudge: ({ ctaButtonColor, headerColor, handleLoginOrSignup, handleSubmit, title, subtitle, onClose, closeIconColor, }: LeadGenerationNudgeProps) => React.JSX.Element;
15
- export default LeadGenerationNudge;
1
+ import React from "react";
2
+ import "./Nudge.scss";
3
+ import "react-international-phone/style.css";
4
+ type LeadGenerationNudgeProps = {
5
+ ctaButtonColor?: string;
6
+ headerColor?: string;
7
+ title?: string;
8
+ subtitle?: string;
9
+ handleLoginOrSignup?: (phoneNumber: string, email: string) => Promise<any>;
10
+ handleSubmit?: (phoneNumber: string, otp: string) => Promise<any>;
11
+ onClose?: () => void;
12
+ closeIconColor?: string;
13
+ };
14
+ declare const LeadGenerationNudge: ({ ctaButtonColor, headerColor, handleLoginOrSignup, handleSubmit, title, subtitle, onClose, closeIconColor, }: LeadGenerationNudgeProps) => React.JSX.Element;
15
+ export default LeadGenerationNudge;
@@ -1,40 +1,40 @@
1
- import React from "react";
2
- export interface NudgeProps {
3
- title?: string;
4
- text?: string;
5
- highlightColor?: string;
6
- backgroundColor?: string;
7
- variant?: "campaign" | "delivery" | "checkout" | "postPurchase" | "registration" | "leadGeneration";
8
- extraProps?: any;
9
- cartValue?: number;
10
- freeDeliveryValue?: number;
11
- imageUrl?: string;
12
- nudgeImageUrl?: string;
13
- onClickCheckout?: () => void;
14
- onClose?: () => void;
15
- isDev?: boolean;
16
- onGotoCartClick?: () => void;
17
- bannerCtaAction?: () => void;
18
- bannerCtaText?: string;
19
- ctaButtonBackgroundColor?: string;
20
- ctaTextColor?: string;
21
- ctaButtonText?: string;
22
- ctaButtonPosition?: "left" | "right" | "center";
23
- postPurchaseCtaAction?: () => void;
24
- postPurchaseCredits?: number;
25
- largeScreenImageUrl?: string;
26
- smallScreenImageUrl?: string;
27
- ctaButtonLink?: string;
28
- autoCloseTimeout?: number;
29
- isCTAButtonEnabled?: boolean;
30
- isCTARedirectionEnabled?: boolean;
31
- borderRadius?: string;
32
- padding?: string;
33
- onClickCtaButton?: () => void;
34
- position?: "right" | "left";
35
- closeIconColor?: string;
36
- handleLoginOrSignup?: (phoneNumber: string, email: string) => Promise<any>;
37
- handleSubmit?: (phoneNumber: string, otp: string) => Promise<any>;
38
- }
39
- declare const Nudge: React.FC<NudgeProps>;
40
- export default Nudge;
1
+ import React from "react";
2
+ export interface NudgeProps {
3
+ title?: string;
4
+ text?: string;
5
+ highlightColor?: string;
6
+ backgroundColor?: string;
7
+ variant?: "campaign" | "delivery" | "checkout" | "postPurchase" | "registration" | "leadGeneration";
8
+ extraProps?: any;
9
+ cartValue?: number;
10
+ freeDeliveryValue?: number;
11
+ imageUrl?: string;
12
+ nudgeImageUrl?: string;
13
+ onClickCheckout?: () => void;
14
+ onClose?: () => void;
15
+ isDev?: boolean;
16
+ onGotoCartClick?: () => void;
17
+ bannerCtaAction?: () => void;
18
+ bannerCtaText?: string;
19
+ ctaButtonBackgroundColor?: string;
20
+ ctaTextColor?: string;
21
+ ctaButtonText?: string;
22
+ ctaButtonPosition?: "left" | "right" | "center";
23
+ postPurchaseCtaAction?: () => void;
24
+ postPurchaseCredits?: number;
25
+ largeScreenImageUrl?: string;
26
+ smallScreenImageUrl?: string;
27
+ ctaButtonLink?: string;
28
+ autoCloseTimeout?: number;
29
+ isCTAButtonEnabled?: boolean;
30
+ isCTARedirectionEnabled?: boolean;
31
+ borderRadius?: string;
32
+ padding?: string;
33
+ onClickCtaButton?: () => void;
34
+ position?: "right" | "left";
35
+ closeIconColor?: string;
36
+ handleLoginOrSignup?: (phoneNumber: string, email: string) => Promise<any>;
37
+ handleSubmit?: (phoneNumber: string, otp: string) => Promise<any>;
38
+ }
39
+ declare const Nudge: React.FC<NudgeProps>;
40
+ export default Nudge;
@@ -1 +1 @@
1
- export { default } from "./Nudge";
1
+ export { default } from "./Nudge";
@@ -1,23 +1,23 @@
1
- import React from "react";
2
- import type { Dispatch, SetStateAction } from "react";
3
- interface SegmentProps {
4
- label: string;
5
- color: string;
6
- outcome: "WIN" | "LOSE";
7
- winHeading?: string;
8
- winValue?: number;
9
- probability?: number;
10
- }
11
- export interface WheelProps {
12
- segments: SegmentProps[];
13
- setWinningSegment: Dispatch<SetStateAction<number | null>>;
14
- ctaButtonText?: string;
15
- brandThemeColor?: string | undefined;
16
- brandGameDefaultThemeColor?: string | undefined;
17
- wheelSectionColor1?: string | undefined;
18
- wheelSectionColor2?: string | undefined;
19
- wheelCenterLogo?: string | undefined;
20
- isStatic?: boolean | undefined;
21
- }
22
- declare const SpinnerWheel: React.FC<WheelProps>;
23
- export default SpinnerWheel;
1
+ import React from "react";
2
+ import type { Dispatch, SetStateAction } from "react";
3
+ interface SegmentProps {
4
+ label: string;
5
+ color: string;
6
+ outcome: "WIN" | "LOSE";
7
+ winHeading?: string;
8
+ winValue?: number;
9
+ probability?: number;
10
+ }
11
+ export interface WheelProps {
12
+ segments: SegmentProps[];
13
+ setWinningSegment: Dispatch<SetStateAction<number | null>>;
14
+ ctaButtonText?: string;
15
+ brandThemeColor?: string | undefined;
16
+ brandGameDefaultThemeColor?: string | undefined;
17
+ wheelSectionColor1?: string | undefined;
18
+ wheelSectionColor2?: string | undefined;
19
+ wheelCenterLogo?: string | undefined;
20
+ isStatic?: boolean | undefined;
21
+ }
22
+ declare const SpinnerWheel: React.FC<WheelProps>;
23
+ export default SpinnerWheel;
@@ -1,9 +1,9 @@
1
- import React from "react";
2
- interface WheelSectionProps {
3
- color: string;
4
- label: string;
5
- index: number;
6
- total: number;
7
- }
8
- export declare const WheelSection: React.FC<WheelSectionProps>;
9
- export {};
1
+ import React from "react";
2
+ interface WheelSectionProps {
3
+ color: string;
4
+ label: string;
5
+ index: number;
6
+ total: number;
7
+ }
8
+ export declare const WheelSection: React.FC<WheelSectionProps>;
9
+ export {};
@@ -1 +1 @@
1
- export { default } from "./SpinnerWheel";
1
+ export { default } from "./SpinnerWheel";
@@ -1,6 +1,6 @@
1
- export { default as Nudge } from "./Nudge";
2
- export { default as SpinnerWheel } from "./SpinnerWheel";
3
- export { default as Cart } from "./Cart";
4
- export { default as CouponFrame } from "./CouponFrame";
5
- export { default as Bundle } from "./BundleBlock";
6
- export { default as BundleLoader } from "./BundleBlock/Loader";
1
+ export { default as Nudge } from "./Nudge";
2
+ export { default as SpinnerWheel } from "./SpinnerWheel";
3
+ export { default as Cart } from "./Cart";
4
+ export { default as CouponFrame } from "./CouponFrame";
5
+ export { default as Bundle } from "./BundleBlock";
6
+ export { default as BundleLoader } from "./BundleBlock/Loader";
@@ -0,0 +1 @@
1
+ export declare function useShadowConfetti(): (options: any) => void;
@@ -1 +1 @@
1
- export * from "./components";
1
+ export * from "./components";
@@ -0,0 +1 @@
1
+ export declare const ytBundleShadowCss: string;
@@ -1,2 +1,2 @@
1
- export declare const getCurrencyValueFromShopifyPrice: (price: number, currency: string) => number;
2
- export declare const getCurrencySymbol: (cartData: any, currency?: string) => string;
1
+ export declare const getCurrencyValueFromShopifyPrice: (price: number, currency: string) => number;
2
+ export declare const getCurrencySymbol: (cartData: any, currency?: string) => string;
@@ -1,20 +1,20 @@
1
- export interface CustomVariantValue {
2
- name: string;
3
- value: string;
4
- }
5
- export interface CustomVariantOption {
6
- id?: string;
7
- name: string;
8
- type?: "text" | "image" | "color" | string;
9
- values: CustomVariantValue[];
10
- }
11
- export interface CustomVariantOptions {
12
- options: CustomVariantOption[];
13
- }
14
- export declare const normalizeVariantLabel: (label?: string) => string;
15
- export declare const extractHexFromLabel: (label?: string) => string | null;
16
- export declare const loadCustomVariantOptions: () => CustomVariantOptions | null;
17
- export declare const saveCustomVariantOptions: (input: CustomVariantOptions | CustomVariantOption[]) => void;
18
- export declare const clearCustomVariantOptions: () => void;
19
- export declare const findMatchingCustomVariantValue: (customOption: CustomVariantOption | undefined, optionValue?: string) => CustomVariantValue | undefined;
20
- export declare const useCustomVariantOptions: () => CustomVariantOptions | null;
1
+ export interface CustomVariantValue {
2
+ name: string;
3
+ value: string;
4
+ }
5
+ export interface CustomVariantOption {
6
+ id?: string;
7
+ name: string;
8
+ type?: "text" | "image" | "color" | string;
9
+ values: CustomVariantValue[];
10
+ }
11
+ export interface CustomVariantOptions {
12
+ options: CustomVariantOption[];
13
+ }
14
+ export declare const normalizeVariantLabel: (label?: string) => string;
15
+ export declare const extractHexFromLabel: (label?: string) => string | null;
16
+ export declare const loadCustomVariantOptions: () => CustomVariantOptions | null;
17
+ export declare const saveCustomVariantOptions: (input: CustomVariantOptions | CustomVariantOption[]) => void;
18
+ export declare const clearCustomVariantOptions: () => void;
19
+ export declare const findMatchingCustomVariantValue: (customOption: CustomVariantOption | undefined, optionValue?: string) => CustomVariantValue | undefined;
20
+ export declare const useCustomVariantOptions: () => CustomVariantOptions | null;
@@ -1,22 +1,22 @@
1
- export interface ProcessedFreebieProduct {
2
- selectedVariantId?: string;
3
- selectedVariantGid?: string;
4
- selectedVariantPrice: number;
5
- availableVariants: any[];
6
- displayVariantCount: number;
7
- effectiveDiscount: number;
8
- effectivePrice: number;
9
- dealAmount: number;
10
- showOptions: boolean;
11
- isFree: boolean;
12
- }
13
- /**
14
- * Process freebie product data to extract pricing, variant, and display information
15
- * Consolidates expensive calculations that were happening in multiple components
16
- */
17
- export declare const processFreebieProduct: (product: any, freebieCouponTemplates?: any[], localVariantId?: string, shouldCheckInventoryQuantity?: boolean) => ProcessedFreebieProduct;
18
- /**
19
- * Get initial variant ID with deal amount preference
20
- * Used by FreebieClaimSectionCard for smart variant selection
21
- */
22
- export declare const getInitialVariantWithDealAmount: (availableVariants: any[], freebieCouponTemplates?: any[]) => string | undefined;
1
+ export interface ProcessedFreebieProduct {
2
+ selectedVariantId?: string;
3
+ selectedVariantGid?: string;
4
+ selectedVariantPrice: number;
5
+ availableVariants: any[];
6
+ displayVariantCount: number;
7
+ effectiveDiscount: number;
8
+ effectivePrice: number;
9
+ dealAmount: number;
10
+ showOptions: boolean;
11
+ isFree: boolean;
12
+ }
13
+ /**
14
+ * Process freebie product data to extract pricing, variant, and display information
15
+ * Consolidates expensive calculations that were happening in multiple components
16
+ */
17
+ export declare const processFreebieProduct: (product: any, freebieCouponTemplates?: any[], localVariantId?: string, shouldCheckInventoryQuantity?: boolean) => ProcessedFreebieProduct;
18
+ /**
19
+ * Get initial variant ID with deal amount preference
20
+ * Used by FreebieClaimSectionCard for smart variant selection
21
+ */
22
+ export declare const getInitialVariantWithDealAmount: (availableVariants: any[], freebieCouponTemplates?: any[]) => string | undefined;
@@ -1,5 +1,5 @@
1
- /**
2
- * Shared utility function for adding freebie products to cart
3
- * Used by both FreebieClaimManager and FreebieClaimSection to avoid code duplication
4
- */
5
- export declare const addFreebieProductsToCart: (selectedProductIds: string[], freebieProductsInCart: any[], addFreebieToCart?: ((variantId: string, originalAllowedVariantIds?: string[]) => Promise<void>) | undefined) => Promise<void>;
1
+ /**
2
+ * Shared utility function for adding freebie products to cart
3
+ * Used by both FreebieClaimManager and FreebieClaimSection to avoid code duplication
4
+ */
5
+ export declare const addFreebieProductsToCart: (selectedProductIds: string[], freebieProductsInCart: any[], addFreebieToCart?: ((variantId: string, originalAllowedVariantIds?: string[]) => Promise<void>) | undefined) => Promise<void>;
@@ -1,14 +1,14 @@
1
- export declare const getAdjustedTitle: (title: string, length?: number) => string;
2
- export declare const getAdjustedTitleByCanvas: (title: string, maxWidthPercentage: number, containerWidth: number, fontFamily?: string, fontSize?: string) => string;
3
- export declare function getColorWithAlpha(colorHex: string, alpha: number): string;
4
- export declare function hexToRGBWithOpacity(hex: any, opacity: any): string;
5
- export declare const getIdFromGid: (gid: string) => string | undefined;
6
- export declare function getCookieValue(cookieName: string): string;
7
- export declare const extractShopifyProductOrVariantId: (id: string) => string;
8
- export declare function setContrastTextColor(element: HTMLElement | null, lightColor?: string, darkColor?: string, threshold?: number): void;
9
- export declare const formatPriceWithCommas: (price: number | string) => string;
10
- export declare const shouldRenderCheckoutMessageInCartList: () => boolean;
11
- export declare const shouldUseBWTheme: () => boolean;
12
- export declare const optimizeShopifyImage: (imageUrl: string | undefined | null, size?: number, quality?: number, format?: "webp" | "auto" | "jpg" | "png") => string;
13
- export declare const darkenColor: (color: string | undefined, amount?: number) => string;
14
- export declare const extractBundleDiscountTitle: (discountTitle: string) => string;
1
+ export declare const getAdjustedTitle: (title: string, length?: number) => string;
2
+ export declare const getAdjustedTitleByCanvas: (title: string, maxWidthPercentage: number, containerWidth: number, fontFamily?: string, fontSize?: string) => string;
3
+ export declare function getColorWithAlpha(colorHex: string, alpha: number): string;
4
+ export declare function hexToRGBWithOpacity(hex: any, opacity: any): string;
5
+ export declare const getIdFromGid: (gid: string) => string | undefined;
6
+ export declare function getCookieValue(cookieName: string): string;
7
+ export declare const extractShopifyProductOrVariantId: (id: string) => string;
8
+ export declare function setContrastTextColor(element: HTMLElement | null, lightColor?: string, darkColor?: string, threshold?: number): void;
9
+ export declare const formatPriceWithCommas: (price: number | string) => string;
10
+ export declare const shouldRenderCheckoutMessageInCartList: () => boolean;
11
+ export declare const shouldUseBWTheme: () => boolean;
12
+ export declare const optimizeShopifyImage: (imageUrl: string | undefined | null, size?: number, quality?: number, format?: "webp" | "auto" | "jpg" | "png") => string;
13
+ export declare const darkenColor: (color: string | undefined, amount?: number) => string;
14
+ export declare const extractBundleDiscountTitle: (discountTitle: string) => string;
@@ -1,2 +1,2 @@
1
- export declare const getCurrencyValueFromShopifyPrice: (price: number, currency: string) => number;
2
- export declare const getCurrencySymbol: (cartData: any, currency?: string) => string;
1
+ export declare const getCurrencyValueFromShopifyPrice: (price: number, currency: string) => number;
2
+ export declare const getCurrencySymbol: (cartData: any, currency?: string) => string;
@@ -1,20 +1,20 @@
1
- export interface CustomVariantValue {
2
- name: string;
3
- value: string;
4
- }
5
- export interface CustomVariantOption {
6
- id?: string;
7
- name: string;
8
- type?: "text" | "image" | "color" | string;
9
- values: CustomVariantValue[];
10
- }
11
- export interface CustomVariantOptions {
12
- options: CustomVariantOption[];
13
- }
14
- export declare const normalizeVariantLabel: (label?: string) => string;
15
- export declare const extractHexFromLabel: (label?: string) => string | null;
16
- export declare const loadCustomVariantOptions: () => CustomVariantOptions | null;
17
- export declare const saveCustomVariantOptions: (input: CustomVariantOptions | CustomVariantOption[]) => void;
18
- export declare const clearCustomVariantOptions: () => void;
19
- export declare const findMatchingCustomVariantValue: (customOption: CustomVariantOption | undefined, optionValue?: string) => CustomVariantValue | undefined;
20
- export declare const useCustomVariantOptions: () => CustomVariantOptions | null;
1
+ export interface CustomVariantValue {
2
+ name: string;
3
+ value: string;
4
+ }
5
+ export interface CustomVariantOption {
6
+ id?: string;
7
+ name: string;
8
+ type?: "text" | "image" | "color" | string;
9
+ values: CustomVariantValue[];
10
+ }
11
+ export interface CustomVariantOptions {
12
+ options: CustomVariantOption[];
13
+ }
14
+ export declare const normalizeVariantLabel: (label?: string) => string;
15
+ export declare const extractHexFromLabel: (label?: string) => string | null;
16
+ export declare const loadCustomVariantOptions: () => CustomVariantOptions | null;
17
+ export declare const saveCustomVariantOptions: (input: CustomVariantOptions | CustomVariantOption[]) => void;
18
+ export declare const clearCustomVariantOptions: () => void;
19
+ export declare const findMatchingCustomVariantValue: (customOption: CustomVariantOption | undefined, optionValue?: string) => CustomVariantValue | undefined;
20
+ export declare const useCustomVariantOptions: () => CustomVariantOptions | null;
@@ -1,22 +1,22 @@
1
- export interface ProcessedFreebieProduct {
2
- selectedVariantId?: string;
3
- selectedVariantGid?: string;
4
- selectedVariantPrice: number;
5
- availableVariants: any[];
6
- displayVariantCount: number;
7
- effectiveDiscount: number;
8
- effectivePrice: number;
9
- dealAmount: number;
10
- showOptions: boolean;
11
- isFree: boolean;
12
- }
13
- /**
14
- * Process freebie product data to extract pricing, variant, and display information
15
- * Consolidates expensive calculations that were happening in multiple components
16
- */
17
- export declare const processFreebieProduct: (product: any, freebieCouponTemplates?: any[], localVariantId?: string, shouldCheckInventoryQuantity?: boolean) => ProcessedFreebieProduct;
18
- /**
19
- * Get initial variant ID with deal amount preference
20
- * Used by FreebieClaimSectionCard for smart variant selection
21
- */
22
- export declare const getInitialVariantWithDealAmount: (availableVariants: any[], freebieCouponTemplates?: any[]) => string | undefined;
1
+ export interface ProcessedFreebieProduct {
2
+ selectedVariantId?: string;
3
+ selectedVariantGid?: string;
4
+ selectedVariantPrice: number;
5
+ availableVariants: any[];
6
+ displayVariantCount: number;
7
+ effectiveDiscount: number;
8
+ effectivePrice: number;
9
+ dealAmount: number;
10
+ showOptions: boolean;
11
+ isFree: boolean;
12
+ }
13
+ /**
14
+ * Process freebie product data to extract pricing, variant, and display information
15
+ * Consolidates expensive calculations that were happening in multiple components
16
+ */
17
+ export declare const processFreebieProduct: (product: any, freebieCouponTemplates?: any[], localVariantId?: string, shouldCheckInventoryQuantity?: boolean) => ProcessedFreebieProduct;
18
+ /**
19
+ * Get initial variant ID with deal amount preference
20
+ * Used by FreebieClaimSectionCard for smart variant selection
21
+ */
22
+ export declare const getInitialVariantWithDealAmount: (availableVariants: any[], freebieCouponTemplates?: any[]) => string | undefined;
@@ -1,5 +1,5 @@
1
- /**
2
- * Shared utility function for adding freebie products to cart
3
- * Used by both FreebieClaimManager and FreebieClaimSection to avoid code duplication
4
- */
5
- export declare const addFreebieProductsToCart: (selectedProductIds: string[], freebieProductsInCart: any[], addFreebieToCart?: ((variantId: string, originalAllowedVariantIds?: string[]) => Promise<void>) | undefined) => Promise<void>;
1
+ /**
2
+ * Shared utility function for adding freebie products to cart
3
+ * Used by both FreebieClaimManager and FreebieClaimSection to avoid code duplication
4
+ */
5
+ export declare const addFreebieProductsToCart: (selectedProductIds: string[], freebieProductsInCart: any[], addFreebieToCart?: ((variantId: string, originalAllowedVariantIds?: string[]) => Promise<void>) | undefined) => Promise<void>;