@rebuy/rebuy-hydrogen 3.0.0-beta.2 → 3.0.0-beta.20

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 (307) hide show
  1. package/README.md +988 -16
  2. package/dist/assets/Close.d.ts +2 -0
  3. package/dist/assets/Close.d.ts.map +1 -0
  4. package/dist/components/AddToCartBtn/AddToCartBtn.d.ts +1 -1
  5. package/dist/components/AddToCartBtn/AddToCartBtn.d.ts.map +1 -1
  6. package/dist/components/AddToCartBtn/HydrogenAddToCartBtn.d.ts +1 -1
  7. package/dist/components/AddToCartBtn/HydrogenAddToCartBtn.d.ts.map +1 -1
  8. package/dist/components/AddToCartBtn/HydrogenReactAddToCartBtn.d.ts +1 -1
  9. package/dist/components/AddToCartBtn/HydrogenReactAddToCartBtn.d.ts.map +1 -1
  10. package/dist/components/AddToCartBtn/types.d.ts +5 -0
  11. package/dist/components/AddToCartBtn/types.d.ts.map +1 -1
  12. package/dist/components/ProductCard/ProductCard.d.ts +1 -1
  13. package/dist/components/ProductCard/ProductCard.d.ts.map +1 -1
  14. package/dist/components/ProductCard/defaultSettings.d.ts +3 -0
  15. package/dist/components/ProductCard/defaultSettings.d.ts.map +1 -0
  16. package/dist/components/ProductCard/index.d.ts +1 -0
  17. package/dist/components/ProductCard/index.d.ts.map +1 -1
  18. package/dist/components/ProductCard/types.d.ts +46 -0
  19. package/dist/components/ProductCard/types.d.ts.map +1 -1
  20. package/dist/components/ProductCarousel/ProductCarousel.d.ts +3 -0
  21. package/dist/components/ProductCarousel/ProductCarousel.d.ts.map +1 -0
  22. package/dist/components/ProductCarousel/index.d.ts +2 -0
  23. package/dist/components/ProductCarousel/index.d.ts.map +1 -0
  24. package/dist/components/ProductCarousel/types.d.ts +18 -0
  25. package/dist/components/ProductCarousel/types.d.ts.map +1 -0
  26. package/dist/components/ProductPrice/ProductPrice.d.ts +2 -4
  27. package/dist/components/ProductPrice/ProductPrice.d.ts.map +1 -1
  28. package/dist/components/ProductPrice/types.d.ts +23 -0
  29. package/dist/components/ProductPrice/types.d.ts.map +1 -0
  30. package/dist/components/QuantityInput/QuantityInput.d.ts +3 -0
  31. package/dist/components/QuantityInput/QuantityInput.d.ts.map +1 -0
  32. package/dist/components/QuantityInput/index.d.ts +3 -0
  33. package/dist/components/QuantityInput/index.d.ts.map +1 -0
  34. package/dist/components/QuantityInput/types.d.ts +7 -0
  35. package/dist/components/QuantityInput/types.d.ts.map +1 -0
  36. package/dist/components/RebuyLink/RebuyLink.d.ts +3 -0
  37. package/dist/components/RebuyLink/RebuyLink.d.ts.map +1 -0
  38. package/dist/components/RebuyLink/index.d.ts +2 -0
  39. package/dist/components/RebuyLink/index.d.ts.map +1 -0
  40. package/dist/components/RebuyLink/types.d.ts +10 -0
  41. package/dist/components/RebuyLink/types.d.ts.map +1 -0
  42. package/dist/components/Timer/Timer.d.ts +3 -0
  43. package/dist/components/Timer/Timer.d.ts.map +1 -0
  44. package/dist/components/Timer/index.d.ts +3 -0
  45. package/dist/components/Timer/index.d.ts.map +1 -0
  46. package/dist/components/Timer/types.d.ts +20 -0
  47. package/dist/components/Timer/types.d.ts.map +1 -0
  48. package/dist/components/Title/Title.d.ts +1 -1
  49. package/dist/components/Title/Title.d.ts.map +1 -1
  50. package/dist/components/Title/types.d.ts +1 -0
  51. package/dist/components/Title/types.d.ts.map +1 -1
  52. package/dist/components/VariantSelect/VariantSelect.d.ts +1 -1
  53. package/dist/components/VariantSelect/VariantSelect.d.ts.map +1 -1
  54. package/dist/components/VariantSelect/types.d.ts +2 -0
  55. package/dist/components/VariantSelect/types.d.ts.map +1 -1
  56. package/dist/constants/api.d.ts +2 -0
  57. package/dist/constants/api.d.ts.map +1 -0
  58. package/dist/constants/debug.d.ts +28 -0
  59. package/dist/constants/debug.d.ts.map +1 -0
  60. package/dist/context/RebuyConfigContext.d.ts +23 -0
  61. package/dist/context/RebuyConfigContext.d.ts.map +1 -0
  62. package/dist/context/RebuyWidgetContext.d.ts +7 -0
  63. package/dist/context/RebuyWidgetContext.d.ts.map +1 -0
  64. package/dist/hooks/titleLevel.d.ts.map +1 -1
  65. package/dist/hooks/useBFCacheReset.d.ts +7 -0
  66. package/dist/hooks/useBFCacheReset.d.ts.map +1 -0
  67. package/dist/hooks/useBreakpoint.d.ts +5 -0
  68. package/dist/hooks/useBreakpoint.d.ts.map +1 -0
  69. package/dist/hooks/usePopupTrigger.d.ts +3 -0
  70. package/dist/hooks/usePopupTrigger.d.ts.map +1 -0
  71. package/dist/index.css +2680 -99
  72. package/dist/index.css.map +4 -4
  73. package/dist/index.d.ts +9 -0
  74. package/dist/index.d.ts.map +1 -1
  75. package/dist/index.js +9756 -1461
  76. package/dist/index.js.map +4 -4
  77. package/dist/index.mjs +9768 -1482
  78. package/dist/index.mjs.map +4 -4
  79. package/dist/providers/RebuyHydrogenContextProvider.d.ts +1 -1
  80. package/dist/providers/RebuyHydrogenContextProvider.d.ts.map +1 -1
  81. package/dist/providers/RebuyHydrogenReactContextProvider.d.ts +6 -1
  82. package/dist/providers/RebuyHydrogenReactContextProvider.d.ts.map +1 -1
  83. package/dist/providers/types.d.ts +29 -14
  84. package/dist/providers/types.d.ts.map +1 -1
  85. package/dist/queries/cart.queries.d.ts +4 -4
  86. package/dist/queries/cart.queries.d.ts.map +1 -1
  87. package/dist/smart-cart/RebuySmartCart.d.ts +10 -0
  88. package/dist/smart-cart/RebuySmartCart.d.ts.map +1 -0
  89. package/dist/smart-cart/components/AnnouncementBar/AnnouncementBar.d.ts +10 -0
  90. package/dist/smart-cart/components/AnnouncementBar/AnnouncementBar.d.ts.map +1 -0
  91. package/dist/smart-cart/components/CartItem/CartItem.d.ts +7 -0
  92. package/dist/smart-cart/components/CartItem/CartItem.d.ts.map +1 -0
  93. package/dist/smart-cart/components/CartItemList/CartItemList.d.ts +10 -0
  94. package/dist/smart-cart/components/CartItemList/CartItemList.d.ts.map +1 -0
  95. package/dist/smart-cart/components/CartNoteInput/CartNoteInput.d.ts +10 -0
  96. package/dist/smart-cart/components/CartNoteInput/CartNoteInput.d.ts.map +1 -0
  97. package/dist/smart-cart/components/CartSubtotal/CartSubtotal.d.ts +11 -0
  98. package/dist/smart-cart/components/CartSubtotal/CartSubtotal.d.ts.map +1 -0
  99. package/dist/smart-cart/components/CartTitleBar/CartTitleBar.d.ts +7 -0
  100. package/dist/smart-cart/components/CartTitleBar/CartTitleBar.d.ts.map +1 -0
  101. package/dist/smart-cart/components/CheckoutArea/CheckoutArea.d.ts +10 -0
  102. package/dist/smart-cart/components/CheckoutArea/CheckoutArea.d.ts.map +1 -0
  103. package/dist/smart-cart/components/CrossSell/CrossSell.d.ts +10 -0
  104. package/dist/smart-cart/components/CrossSell/CrossSell.d.ts.map +1 -0
  105. package/dist/smart-cart/components/CustomCode/CustomCodeBlock.d.ts +21 -0
  106. package/dist/smart-cart/components/CustomCode/CustomCodeBlock.d.ts.map +1 -0
  107. package/dist/smart-cart/components/DebugPanel/DebugPanel.d.ts +13 -0
  108. package/dist/smart-cart/components/DebugPanel/DebugPanel.d.ts.map +1 -0
  109. package/dist/smart-cart/components/DebugPanel/index.d.ts +11 -0
  110. package/dist/smart-cart/components/DebugPanel/index.d.ts.map +1 -0
  111. package/dist/smart-cart/components/DiscountCodeInput/DiscountCodeInput.d.ts +10 -0
  112. package/dist/smart-cart/components/DiscountCodeInput/DiscountCodeInput.d.ts.map +1 -0
  113. package/dist/smart-cart/components/EmptyCart/EmptyCart.d.ts +3 -0
  114. package/dist/smart-cart/components/EmptyCart/EmptyCart.d.ts.map +1 -0
  115. package/dist/smart-cart/components/LoginButton/LoginButton.d.ts +3 -0
  116. package/dist/smart-cart/components/LoginButton/LoginButton.d.ts.map +1 -0
  117. package/dist/smart-cart/components/ScreenReaderText/ScreenReaderText.d.ts +8 -0
  118. package/dist/smart-cart/components/ScreenReaderText/ScreenReaderText.d.ts.map +1 -0
  119. package/dist/smart-cart/components/SmartCartApp/SmartCartApp.d.ts +20 -0
  120. package/dist/smart-cart/components/SmartCartApp/SmartCartApp.d.ts.map +1 -0
  121. package/dist/smart-cart/components/SmartCartContainer/SmartCartContainer.d.ts +8 -0
  122. package/dist/smart-cart/components/SmartCartContainer/SmartCartContainer.d.ts.map +1 -0
  123. package/dist/smart-cart/components/TieredProgressBar/Icons.d.ts +5 -0
  124. package/dist/smart-cart/components/TieredProgressBar/Icons.d.ts.map +1 -0
  125. package/dist/smart-cart/components/TieredProgressBar/TPBGiftItem.d.ts +21 -0
  126. package/dist/smart-cart/components/TieredProgressBar/TPBGiftItem.d.ts.map +1 -0
  127. package/dist/smart-cart/components/TieredProgressBar/TieredProgressBar.d.ts +11 -0
  128. package/dist/smart-cart/components/TieredProgressBar/TieredProgressBar.d.ts.map +1 -0
  129. package/dist/smart-cart/components/TieredProgressBar/progressBarUtils.d.ts +173 -0
  130. package/dist/smart-cart/components/TieredProgressBar/progressBarUtils.d.ts.map +1 -0
  131. package/dist/smart-cart/components/TieredProgressBar/types.d.ts +261 -0
  132. package/dist/smart-cart/components/TieredProgressBar/types.d.ts.map +1 -0
  133. package/dist/smart-cart/components/_Layouts/AnchorSlot.d.ts +13 -0
  134. package/dist/smart-cart/components/_Layouts/AnchorSlot.d.ts.map +1 -0
  135. package/dist/smart-cart/components/_Layouts/DoubleColumnLayout.d.ts +9 -0
  136. package/dist/smart-cart/components/_Layouts/DoubleColumnLayout.d.ts.map +1 -0
  137. package/dist/smart-cart/components/_Layouts/SingleColumnLayout.d.ts +8 -0
  138. package/dist/smart-cart/components/_Layouts/SingleColumnLayout.d.ts.map +1 -0
  139. package/dist/smart-cart/components/componentRegistry.d.ts +3 -0
  140. package/dist/smart-cart/components/componentRegistry.d.ts.map +1 -0
  141. package/dist/smart-cart/constants.d.ts +58 -0
  142. package/dist/smart-cart/constants.d.ts.map +1 -0
  143. package/dist/smart-cart/context/SmartCartContext.d.ts +62 -0
  144. package/dist/smart-cart/context/SmartCartContext.d.ts.map +1 -0
  145. package/dist/smart-cart/context/StorefrontCartContext.d.ts +32 -0
  146. package/dist/smart-cart/context/StorefrontCartContext.d.ts.map +1 -0
  147. package/dist/smart-cart/hooks/useCartItemFeatures.d.ts +84 -0
  148. package/dist/smart-cart/hooks/useCartItemFeatures.d.ts.map +1 -0
  149. package/dist/smart-cart/hooks/useDiscountManager.d.ts +28 -0
  150. package/dist/smart-cart/hooks/useDiscountManager.d.ts.map +1 -0
  151. package/dist/smart-cart/hooks/useGeolocation.d.ts +12 -0
  152. package/dist/smart-cart/hooks/useGeolocation.d.ts.map +1 -0
  153. package/dist/smart-cart/hooks/useIsScrolled.d.ts +14 -0
  154. package/dist/smart-cart/hooks/useIsScrolled.d.ts.map +1 -0
  155. package/dist/smart-cart/hooks/useSmartCartApps.d.ts +17 -0
  156. package/dist/smart-cart/hooks/useSmartCartApps.d.ts.map +1 -0
  157. package/dist/smart-cart/store/tieredProgressBarStore.d.ts +76 -0
  158. package/dist/smart-cart/store/tieredProgressBarStore.d.ts.map +1 -0
  159. package/dist/smart-cart/types/rebuy-storefront-cart.d.ts +142 -0
  160. package/dist/smart-cart/types/rebuy-storefront-cart.d.ts.map +1 -0
  161. package/dist/smart-cart/types/rebuy.d.ts +15 -0
  162. package/dist/smart-cart/types/rebuy.d.ts.map +1 -0
  163. package/dist/smart-cart/types/shop.d.ts +26 -0
  164. package/dist/smart-cart/types/shop.d.ts.map +1 -0
  165. package/dist/smart-cart/types/smart-cart-app.d.ts +103 -0
  166. package/dist/smart-cart/types/smart-cart-app.d.ts.map +1 -0
  167. package/dist/smart-cart/types/smart-cart-component.d.ts +1350 -0
  168. package/dist/smart-cart/types/smart-cart-component.d.ts.map +1 -0
  169. package/dist/smart-cart/types/smart-cart.d.ts +82 -0
  170. package/dist/smart-cart/types/smart-cart.d.ts.map +1 -0
  171. package/dist/smart-cart/utils/cartItemUtils.d.ts +292 -0
  172. package/dist/smart-cart/utils/cartItemUtils.d.ts.map +1 -0
  173. package/dist/smart-cart/utils/debugLog.d.ts +77 -0
  174. package/dist/smart-cart/utils/debugLog.d.ts.map +1 -0
  175. package/dist/smart-cart/utils/debugStyles.d.ts +3342 -0
  176. package/dist/smart-cart/utils/debugStyles.d.ts.map +1 -0
  177. package/dist/smart-cart/utils/executeScriptsInContainer.d.ts +14 -0
  178. package/dist/smart-cart/utils/executeScriptsInContainer.d.ts.map +1 -0
  179. package/dist/smart-cart/utils/imageUtils.d.ts +2 -0
  180. package/dist/smart-cart/utils/imageUtils.d.ts.map +1 -0
  181. package/dist/smart-cart/utils/mapHydrogenCartToStorefrontCartData.d.ts +14 -0
  182. package/dist/smart-cart/utils/mapHydrogenCartToStorefrontCartData.d.ts.map +1 -0
  183. package/dist/smart-cart/utils/moneyUtils.d.ts +24 -0
  184. package/dist/smart-cart/utils/moneyUtils.d.ts.map +1 -0
  185. package/dist/smart-cart/utils/safeJsonParse.d.ts +2 -0
  186. package/dist/smart-cart/utils/safeJsonParse.d.ts.map +1 -0
  187. package/dist/types/common.d.ts +16 -0
  188. package/dist/types/common.d.ts.map +1 -1
  189. package/dist/types/rebuyCustom.d.ts +133 -17
  190. package/dist/types/rebuyCustom.d.ts.map +1 -1
  191. package/dist/types/shopify.d.ts +1 -2
  192. package/dist/types/shopify.d.ts.map +1 -1
  193. package/dist/types/widgets.d.ts +20078 -7
  194. package/dist/types/widgets.d.ts.map +1 -1
  195. package/dist/utils/convertToRebuyProduct.d.ts.map +1 -1
  196. package/dist/utils/createContextParameters.d.ts +1 -1
  197. package/dist/utils/createContextParameters.d.ts.map +1 -1
  198. package/dist/utils/filterContextUtils.d.ts +3 -0
  199. package/dist/utils/filterContextUtils.d.ts.map +1 -0
  200. package/dist/utils/getEncodedAttributes.d.ts.map +1 -1
  201. package/dist/utils/getRebuyConfig.d.ts +1 -1
  202. package/dist/utils/getRebuyConfig.d.ts.map +1 -1
  203. package/dist/utils/nonceManager.d.ts +10 -0
  204. package/dist/utils/nonceManager.d.ts.map +1 -0
  205. package/dist/utils/theme.d.ts +20 -0
  206. package/dist/utils/theme.d.ts.map +1 -0
  207. package/dist/widgetContainer/RebuyWidgetContainer.d.ts +1 -1
  208. package/dist/widgetContainer/RebuyWidgetContainer.d.ts.map +1 -1
  209. package/dist/widgets/RebuyCompleteTheLook/RebuyCompleteTheLook.d.ts.map +1 -1
  210. package/dist/widgets/RebuyDynamicBundleProducts/BundleImages.d.ts.map +1 -1
  211. package/dist/widgets/RebuyDynamicBundleProducts/BundlePrice.d.ts.map +1 -1
  212. package/dist/widgets/RebuyDynamicBundleProducts/BundleSelection.d.ts +1 -1
  213. package/dist/widgets/RebuyDynamicBundleProducts/BundleSelection.d.ts.map +1 -1
  214. package/dist/widgets/RebuyDynamicBundleProducts/RebuyDynamicBundleProducts.d.ts.map +1 -1
  215. package/dist/widgets/RebuyDynamicBundleProducts/Select.d.ts.map +1 -1
  216. package/dist/widgets/RebuyGiftWithPurchase/RebuyGiftWithPurchase.d.ts +11 -0
  217. package/dist/widgets/RebuyGiftWithPurchase/RebuyGiftWithPurchase.d.ts.map +1 -0
  218. package/dist/widgets/RebuyGiftWithPurchase/index.d.ts +3 -0
  219. package/dist/widgets/RebuyGiftWithPurchase/index.d.ts.map +1 -0
  220. package/dist/widgets/RebuyGiftWithPurchase/store/giftWithPurchaseStore.d.ts +31 -0
  221. package/dist/widgets/RebuyGiftWithPurchase/store/giftWithPurchaseStore.d.ts.map +1 -0
  222. package/dist/widgets/RebuyGiftWithPurchase/types.d.ts +12 -0
  223. package/dist/widgets/RebuyGiftWithPurchase/types.d.ts.map +1 -0
  224. package/dist/widgets/RebuyGiftWithPurchase/utils.d.ts +35 -0
  225. package/dist/widgets/RebuyGiftWithPurchase/utils.d.ts.map +1 -0
  226. package/dist/widgets/RebuyProductAddOns/RebuyProductAddOnCard.d.ts.map +1 -1
  227. package/dist/widgets/RebuyProductAddOns/RebuyProductAddOns.d.ts.map +1 -1
  228. package/dist/widgets/RebuyProductAddOns/types.d.ts.map +1 -1
  229. package/dist/widgets/RebuyProductRecommendations/RebuyProductRecommendations.d.ts.map +1 -1
  230. package/dist/widgets/RebuyProductViewed/RebuyProductViewed.d.ts +3 -0
  231. package/dist/widgets/RebuyProductViewed/RebuyProductViewed.d.ts.map +1 -0
  232. package/dist/widgets/RebuyProductViewed/index.d.ts +2 -0
  233. package/dist/widgets/RebuyProductViewed/index.d.ts.map +1 -0
  234. package/dist/widgets/RebuyProductViewed/types.d.ts +8 -0
  235. package/dist/widgets/RebuyProductViewed/types.d.ts.map +1 -0
  236. package/dist/widgets/RebuyRecentlyViewedProducts/RebuyRecentlyViewedProducts.d.ts +3 -0
  237. package/dist/widgets/RebuyRecentlyViewedProducts/RebuyRecentlyViewedProducts.d.ts.map +1 -0
  238. package/dist/widgets/RebuyRecentlyViewedProducts/index.d.ts +2 -0
  239. package/dist/widgets/RebuyRecentlyViewedProducts/index.d.ts.map +1 -0
  240. package/dist/widgets/RebuyRecentlyViewedProducts/types.d.ts +11 -0
  241. package/dist/widgets/RebuyRecentlyViewedProducts/types.d.ts.map +1 -0
  242. package/dist/widgets/RebuyWidget/RebuyWidget.d.ts +3 -0
  243. package/dist/widgets/RebuyWidget/RebuyWidget.d.ts.map +1 -0
  244. package/dist/widgets/RebuyWidget/WidgetContent.d.ts +3 -0
  245. package/dist/widgets/RebuyWidget/WidgetContent.d.ts.map +1 -0
  246. package/dist/widgets/RebuyWidget/index.d.ts +2 -0
  247. package/dist/widgets/RebuyWidget/index.d.ts.map +1 -0
  248. package/dist/widgets/RebuyWidget/types.d.ts +28 -0
  249. package/dist/widgets/RebuyWidget/types.d.ts.map +1 -0
  250. package/dist/zustandStores/productViewed.d.ts +9 -0
  251. package/dist/zustandStores/productViewed.d.ts.map +1 -0
  252. package/package.json +57 -41
  253. package/dist/types/rebuySmartCart.d.ts +0 -184
  254. package/dist/types/rebuySmartCart.d.ts.map +0 -1
  255. package/src/components/AddToCartBtn/AddToCartBtn.tsx +0 -45
  256. package/src/components/AddToCartBtn/HydrogenAddToCartBtn.tsx +0 -43
  257. package/src/components/AddToCartBtn/HydrogenReactAddToCartBtn.tsx +0 -35
  258. package/src/components/AddToCartBtn/index.ts +0 -1
  259. package/src/components/AddToCartBtn/types.ts +0 -27
  260. package/src/components/ProductCard/ProductCard.tsx +0 -70
  261. package/src/components/ProductCard/index.ts +0 -1
  262. package/src/components/ProductCard/types.ts +0 -10
  263. package/src/components/ProductPrice/ProductPrice.tsx +0 -49
  264. package/src/components/ProductPrice/index.ts +0 -1
  265. package/src/components/Title/Title.tsx +0 -19
  266. package/src/components/Title/index.ts +0 -1
  267. package/src/components/Title/types.ts +0 -7
  268. package/src/components/VariantSelect/VariantSelect.tsx +0 -45
  269. package/src/components/VariantSelect/index.ts +0 -1
  270. package/src/components/VariantSelect/types.ts +0 -6
  271. package/src/context/RebuyContext.tsx +0 -9
  272. package/src/hooks/titleLevel.tsx +0 -42
  273. package/src/index.ts +0 -7
  274. package/src/providers/RebuyHydrogenContextProvider.tsx +0 -112
  275. package/src/providers/RebuyHydrogenReactContextProvider.tsx +0 -192
  276. package/src/providers/types.ts +0 -58
  277. package/src/queries/cart.queries.ts +0 -467
  278. package/src/types/common.ts +0 -8
  279. package/src/types/css.d.ts +0 -11
  280. package/src/types/env.d.ts +0 -12
  281. package/src/types/rebuy.d.ts +0 -31
  282. package/src/types/rebuyCustom.ts +0 -263
  283. package/src/types/rebuySmartCart.ts +0 -188
  284. package/src/types/shopify.ts +0 -142
  285. package/src/types/widgets.ts +0 -29
  286. package/src/utils/convertToRebuyProduct.tsx +0 -319
  287. package/src/utils/createContextParameters.ts +0 -142
  288. package/src/utils/getEncodedAttributes.ts +0 -11
  289. package/src/utils/getRebuyConfig.ts +0 -31
  290. package/src/widgetContainer/RebuyWidgetContainer.tsx +0 -183
  291. package/src/widgets/RebuyCompleteTheLook/RebuyCompleteTheLook.tsx +0 -50
  292. package/src/widgets/RebuyCompleteTheLook/index.ts +0 -1
  293. package/src/widgets/RebuyCompleteTheLook/types.ts +0 -5
  294. package/src/widgets/RebuyDynamicBundleProducts/BundleImages.tsx +0 -62
  295. package/src/widgets/RebuyDynamicBundleProducts/BundlePrice.tsx +0 -93
  296. package/src/widgets/RebuyDynamicBundleProducts/BundleSelection.tsx +0 -65
  297. package/src/widgets/RebuyDynamicBundleProducts/RebuyDynamicBundleProducts.tsx +0 -118
  298. package/src/widgets/RebuyDynamicBundleProducts/Select.tsx +0 -41
  299. package/src/widgets/RebuyDynamicBundleProducts/index.ts +0 -1
  300. package/src/widgets/RebuyDynamicBundleProducts/types.ts +0 -23
  301. package/src/widgets/RebuyProductAddOns/RebuyProductAddOnCard.tsx +0 -66
  302. package/src/widgets/RebuyProductAddOns/RebuyProductAddOns.tsx +0 -218
  303. package/src/widgets/RebuyProductAddOns/index.ts +0 -1
  304. package/src/widgets/RebuyProductAddOns/types.ts +0 -24
  305. package/src/widgets/RebuyProductRecommendations/RebuyProductRecommendations.tsx +0 -50
  306. package/src/widgets/RebuyProductRecommendations/index.ts +0 -1
  307. package/src/widgets/RebuyProductRecommendations/types.ts +0 -5
@@ -0,0 +1,2 @@
1
+ export declare const Close: () => import("react/jsx-runtime").JSX.Element;
2
+ //# sourceMappingURL=Close.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Close.d.ts","sourceRoot":"","sources":["../../src/assets/Close.tsx"],"names":[],"mappings":"AAAA,eAAO,MAAM,KAAK,+CAMjB,CAAC"}
@@ -1,3 +1,3 @@
1
1
  import type { AddToCartBtnProps } from '~/components/AddToCartBtn/types';
2
- export declare const AddToCartBtn: ({ addToCartBtnText, addToCartCallback, disabled, isHydrogenReact, moneyData, selectedVariants, }: AddToCartBtnProps) => import("react/jsx-runtime").JSX.Element;
2
+ export declare const AddToCartBtn: ({ addToCartBtnText, addToCartCallback, disableShopifyAddAction, disabled, isHydrogenReact, moneyData, onClickAction, quantity, selectedVariants, }: AddToCartBtnProps) => import("react/jsx-runtime").JSX.Element;
3
3
  //# sourceMappingURL=AddToCartBtn.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"AddToCartBtn.d.ts","sourceRoot":"","sources":["../../../src/components/AddToCartBtn/AddToCartBtn.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,iCAAiC,CAAC;AAEzE,eAAO,MAAM,YAAY,GAAI,kGAO1B,iBAAiB,4CAgCnB,CAAC"}
1
+ {"version":3,"file":"AddToCartBtn.d.ts","sourceRoot":"","sources":["../../../src/components/AddToCartBtn/AddToCartBtn.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,iCAAiC,CAAC;AAIzE,eAAO,MAAM,YAAY,GAAI,oJAU1B,iBAAiB,4CAoCnB,CAAC"}
@@ -1,3 +1,3 @@
1
1
  import type { btnProps } from '~/components/AddToCartBtn/types';
2
- export declare const HydrogenAddToCartBtn: ({ addToCartBtnText, addToCartCallback, disabled, linesToAdd, moneyData, }: btnProps) => import("react/jsx-runtime").JSX.Element;
2
+ export declare const HydrogenAddToCartBtn: ({ addToCartBtnText, addToCartCallback, disableShopifyAddAction, disabled, linesToAdd, moneyData, onClickAction, }: btnProps) => import("react/jsx-runtime").JSX.Element;
3
3
  //# sourceMappingURL=HydrogenAddToCartBtn.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"HydrogenAddToCartBtn.d.ts","sourceRoot":"","sources":["../../../src/components/AddToCartBtn/HydrogenAddToCartBtn.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,iCAAiC,CAAC;AAEhE,eAAO,MAAM,oBAAoB,GAAI,2EAMlC,QAAQ,4CA6BV,CAAC"}
1
+ {"version":3,"file":"HydrogenAddToCartBtn.d.ts","sourceRoot":"","sources":["../../../src/components/AddToCartBtn/HydrogenAddToCartBtn.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,iCAAiC,CAAC;AAGhE,eAAO,MAAM,oBAAoB,GAAI,mHAQlC,QAAQ,4CAmDV,CAAC"}
@@ -1,3 +1,3 @@
1
1
  import type { btnProps } from '~/components/AddToCartBtn/types';
2
- export declare const HydrogenReactAddToCartBtn: ({ addToCartBtnText, addToCartCallback, disabled, linesToAdd, moneyData, }: btnProps) => import("react/jsx-runtime").JSX.Element;
2
+ export declare const HydrogenReactAddToCartBtn: ({ addToCartBtnText, addToCartCallback, disableShopifyAddAction, disabled, linesToAdd, moneyData, onClickAction, }: btnProps) => import("react/jsx-runtime").JSX.Element;
3
3
  //# sourceMappingURL=HydrogenReactAddToCartBtn.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"HydrogenReactAddToCartBtn.d.ts","sourceRoot":"","sources":["../../../src/components/AddToCartBtn/HydrogenReactAddToCartBtn.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,iCAAiC,CAAC;AAEhE,eAAO,MAAM,yBAAyB,GAAI,2EAMvC,QAAQ,4CAsBV,CAAC"}
1
+ {"version":3,"file":"HydrogenReactAddToCartBtn.d.ts","sourceRoot":"","sources":["../../../src/components/AddToCartBtn/HydrogenReactAddToCartBtn.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,iCAAiC,CAAC;AAGhE,eAAO,MAAM,yBAAyB,GAAI,mHAQvC,QAAQ,4CAsCV,CAAC"}
@@ -4,6 +4,7 @@ export type btnProps = {
4
4
  addToCartBtnText?: string;
5
5
  addToCartCallback?: () => void;
6
6
  disabled?: boolean;
7
+ disableShopifyAddAction?: boolean;
7
8
  linesToAdd: {
8
9
  attributes: {
9
10
  key: string;
@@ -14,13 +15,17 @@ export type btnProps = {
14
15
  selectedVariant: unknown;
15
16
  }[];
16
17
  moneyData?: MoneyV2;
18
+ onClickAction?: () => void;
17
19
  };
18
20
  export type AddToCartBtnProps = {
19
21
  addToCartBtnText?: string;
20
22
  addToCartCallback?: () => void;
21
23
  disabled?: boolean;
24
+ disableShopifyAddAction?: boolean;
22
25
  isHydrogenReact?: boolean;
23
26
  moneyData?: MoneyV2;
27
+ onClickAction?: () => void;
28
+ quantity?: number;
24
29
  selectedVariants: RebuyProductVariant[];
25
30
  };
26
31
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/AddToCartBtn/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,8CAA8C,CAAC;AAC5E,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AAE/D,MAAM,MAAM,QAAQ,GAAG;IACnB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,iBAAiB,CAAC,EAAE,MAAM,IAAI,CAAC;IAC/B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,UAAU,EAAE;QACR,UAAU,EAAE;YACR,GAAG,EAAE,MAAM,CAAC;YACZ,KAAK,EAAE,MAAM,CAAC;SACjB,EAAE,CAAC;QACJ,aAAa,EAAE,MAAM,CAAC;QACtB,QAAQ,EAAE,MAAM,CAAC;QACjB,eAAe,EAAE,OAAO,CAAC;KAC5B,EAAE,CAAC;IACJ,SAAS,CAAC,EAAE,OAAO,CAAC;CACvB,CAAC;AAEF,MAAM,MAAM,iBAAiB,GAAG;IAC5B,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,iBAAiB,CAAC,EAAE,MAAM,IAAI,CAAC;IAC/B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,gBAAgB,EAAE,mBAAmB,EAAE,CAAC;CAC3C,CAAC"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/AddToCartBtn/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,8CAA8C,CAAC;AAC5E,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AAE/D,MAAM,MAAM,QAAQ,GAAG;IACnB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,iBAAiB,CAAC,EAAE,MAAM,IAAI,CAAC;IAC/B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,uBAAuB,CAAC,EAAE,OAAO,CAAC;IAClC,UAAU,EAAE;QACR,UAAU,EAAE;YACR,GAAG,EAAE,MAAM,CAAC;YACZ,KAAK,EAAE,MAAM,CAAC;SACjB,EAAE,CAAC;QACJ,aAAa,EAAE,MAAM,CAAC;QACtB,QAAQ,EAAE,MAAM,CAAC;QACjB,eAAe,EAAE,OAAO,CAAC;KAC5B,EAAE,CAAC;IACJ,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,aAAa,CAAC,EAAE,MAAM,IAAI,CAAC;CAC9B,CAAC;AAEF,MAAM,MAAM,iBAAiB,GAAG;IAC5B,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,iBAAiB,CAAC,EAAE,MAAM,IAAI,CAAC;IAC/B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,uBAAuB,CAAC,EAAE,OAAO,CAAC;IAClC,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,aAAa,CAAC,EAAE,MAAM,IAAI,CAAC;IAC3B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,gBAAgB,EAAE,mBAAmB,EAAE,CAAC;CAC3C,CAAC"}
@@ -1,3 +1,3 @@
1
1
  import type { ProductCardProps } from '~/components/ProductCard/types';
2
- export declare const ProductCard: ({ addToCartBtnText, addToCartCallback, isHydrogenReact, product, productCardTitleLevel, }: ProductCardProps) => import("react/jsx-runtime").JSX.Element;
2
+ export declare const ProductCard: ({ addToCartBtnText, addToCartCallback, isCrossSell, isHydrogenReact, isInPopup, onPopupDismiss, product, productCardTitleLevel, settings, variantOptionsText, }: ProductCardProps) => import("react/jsx-runtime").JSX.Element;
3
3
  //# sourceMappingURL=ProductCard.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ProductCard.d.ts","sourceRoot":"","sources":["../../../src/components/ProductCard/ProductCard.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,gCAAgC,CAAC;AAQvE,eAAO,MAAM,WAAW,GAAI,2FAMzB,gBAAgB,4CAiDlB,CAAC"}
1
+ {"version":3,"file":"ProductCard.d.ts","sourceRoot":"","sources":["../../../src/components/ProductCard/ProductCard.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,gCAAgC,CAAC;AAYvE,eAAO,MAAM,WAAW,GAAI,iKAWzB,gBAAgB,4CA0SlB,CAAC"}
@@ -0,0 +1,3 @@
1
+ import type { ProductCardSettings } from './types';
2
+ export declare const defaultProductCardSettings: ProductCardSettings;
3
+ //# sourceMappingURL=defaultSettings.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"defaultSettings.d.ts","sourceRoot":"","sources":["../../../src/components/ProductCard/defaultSettings.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAEnD,eAAO,MAAM,0BAA0B,EAAE,mBAsCxC,CAAC"}
@@ -1,2 +1,3 @@
1
+ export { defaultProductCardSettings } from './defaultSettings';
1
2
  export * from './ProductCard';
2
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/ProductCard/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/ProductCard/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,0BAA0B,EAAE,MAAM,mBAAmB,CAAC;AAC/D,cAAc,eAAe,CAAC"}
@@ -3,8 +3,54 @@ import type { RebuyProduct } from '~/types/rebuyCustom';
3
3
  export type ProductCardProps = {
4
4
  addToCartBtnText?: string;
5
5
  addToCartCallback?: () => void;
6
+ isCrossSell?: boolean;
6
7
  isHydrogenReact?: boolean;
8
+ isInPopup?: boolean;
9
+ onPopupDismiss?: () => void;
7
10
  product: RebuyProduct;
8
11
  productCardTitleLevel: ProductCardTitleLevel;
12
+ settings?: ProductCardSettings;
13
+ /** Language text for "Select Options" from widget settings */
14
+ variantOptionsText?: string;
15
+ };
16
+ export type ProductCardSettings = {
17
+ layoutStyle?: string;
18
+ productOptions?: {
19
+ hide_out_of_stock_variants: boolean;
20
+ match_variant: boolean;
21
+ /** @deprecated (I think this is no longer used in widgets, but I'm not 100% sure) */
22
+ match_variant_out_of_stock: boolean;
23
+ show_product_description: string;
24
+ show_subscription_options: string;
25
+ show_variant_options: string;
26
+ show_variant_title: string;
27
+ show_variants_as_products: boolean;
28
+ variant_display_limit: string;
29
+ };
30
+ quantityInput?: {
31
+ default_quantity: number;
32
+ enabled: boolean;
33
+ max_value: number;
34
+ min_value: number;
35
+ };
36
+ settingsDiscount?: {
37
+ amount: number;
38
+ bundle_protection: {
39
+ allowed_removals: number;
40
+ disable_atc_on_incomplete: boolean;
41
+ enabled: boolean;
42
+ };
43
+ discount_protection: {
44
+ enabled: boolean;
45
+ minimum_items_to_get_discount: number;
46
+ };
47
+ discounted_by: string;
48
+ discounted_from: string;
49
+ message: string;
50
+ quantity: number;
51
+ show_saving_amount: boolean;
52
+ type: string;
53
+ };
54
+ variantSelector?: string;
9
55
  };
10
56
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/ProductCard/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,gBAAgB,CAAC;AAC5D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAExD,MAAM,MAAM,gBAAgB,GAAG;IAC3B,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,iBAAiB,CAAC,EAAE,MAAM,IAAI,CAAC;IAC/B,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,OAAO,EAAE,YAAY,CAAC;IACtB,qBAAqB,EAAE,qBAAqB,CAAC;CAChD,CAAC"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/ProductCard/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,gBAAgB,CAAC;AAC5D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAExD,MAAM,MAAM,gBAAgB,GAAG;IAC3B,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,iBAAiB,CAAC,EAAE,MAAM,IAAI,CAAC;IAC/B,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,cAAc,CAAC,EAAE,MAAM,IAAI,CAAC;IAC5B,OAAO,EAAE,YAAY,CAAC;IACtB,qBAAqB,EAAE,qBAAqB,CAAC;IAC7C,QAAQ,CAAC,EAAE,mBAAmB,CAAC;IAC/B,8DAA8D;IAC9D,kBAAkB,CAAC,EAAE,MAAM,CAAC;CAC/B,CAAC;AAEF,MAAM,MAAM,mBAAmB,GAAG;IAC9B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,cAAc,CAAC,EAAE;QACb,0BAA0B,EAAE,OAAO,CAAC;QACpC,aAAa,EAAE,OAAO,CAAC;QACvB,qFAAqF;QACrF,0BAA0B,EAAE,OAAO,CAAC;QACpC,wBAAwB,EAAE,MAAM,CAAC;QACjC,yBAAyB,EAAE,MAAM,CAAC;QAClC,oBAAoB,EAAE,MAAM,CAAC;QAC7B,kBAAkB,EAAE,MAAM,CAAC;QAC3B,yBAAyB,EAAE,OAAO,CAAC;QACnC,qBAAqB,EAAE,MAAM,CAAC;KACjC,CAAC;IACF,aAAa,CAAC,EAAE;QACZ,gBAAgB,EAAE,MAAM,CAAC;QACzB,OAAO,EAAE,OAAO,CAAC;QACjB,SAAS,EAAE,MAAM,CAAC;QAClB,SAAS,EAAE,MAAM,CAAC;KACrB,CAAC;IACF,gBAAgB,CAAC,EAAE;QACf,MAAM,EAAE,MAAM,CAAC;QACf,iBAAiB,EAAE;YACf,gBAAgB,EAAE,MAAM,CAAC;YACzB,yBAAyB,EAAE,OAAO,CAAC;YACnC,OAAO,EAAE,OAAO,CAAC;SACpB,CAAC;QACF,mBAAmB,EAAE;YACjB,OAAO,EAAE,OAAO,CAAC;YACjB,6BAA6B,EAAE,MAAM,CAAC;SACzC,CAAC;QACF,aAAa,EAAE,MAAM,CAAC;QACtB,eAAe,EAAE,MAAM,CAAC;QACxB,OAAO,EAAE,MAAM,CAAC;QAChB,QAAQ,EAAE,MAAM,CAAC;QACjB,kBAAkB,EAAE,OAAO,CAAC;QAC5B,IAAI,EAAE,MAAM,CAAC;KAChB,CAAC;IACF,eAAe,CAAC,EAAE,MAAM,CAAC;CAC5B,CAAC"}
@@ -0,0 +1,3 @@
1
+ import type { ProductCarouselProps } from './types';
2
+ export declare const ProductCarousel: ({ addToCartBtnText, addToCartCallback, columns, isCrossSell, isHydrogenReact, isInPopup, onPopupDismiss, productCardTitleLevel, products, settings, showPagination, variantOptionsText, }: ProductCarouselProps) => import("react/jsx-runtime").JSX.Element;
3
+ //# sourceMappingURL=ProductCarousel.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ProductCarousel.d.ts","sourceRoot":"","sources":["../../../src/components/ProductCarousel/ProductCarousel.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAC;AAGpD,eAAO,MAAM,eAAe,GAAI,2LAa7B,oBAAoB,4CAwGtB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from './ProductCarousel';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/ProductCarousel/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC"}
@@ -0,0 +1,18 @@
1
+ import type { ProductCardTitleLevel } from '~/types/common';
2
+ import type { RebuyProduct } from '~/types/rebuyCustom';
3
+ import type { ProductCardSettings } from '../ProductCard/types';
4
+ export type ProductCarouselProps = {
5
+ addToCartBtnText?: string;
6
+ addToCartCallback?: () => void;
7
+ columns: number;
8
+ isCrossSell?: boolean;
9
+ isHydrogenReact?: boolean;
10
+ isInPopup?: boolean;
11
+ onPopupDismiss?: () => void;
12
+ productCardTitleLevel: ProductCardTitleLevel;
13
+ products: RebuyProduct[];
14
+ settings: ProductCardSettings;
15
+ showPagination?: boolean;
16
+ variantOptionsText?: string;
17
+ };
18
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/ProductCarousel/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,gBAAgB,CAAC;AAC5D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AAEhE,MAAM,MAAM,oBAAoB,GAAG;IAC/B,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,iBAAiB,CAAC,EAAE,MAAM,IAAI,CAAC;IAC/B,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,cAAc,CAAC,EAAE,MAAM,IAAI,CAAC;IAC5B,qBAAqB,EAAE,qBAAqB,CAAC;IAC7C,QAAQ,EAAE,YAAY,EAAE,CAAC;IACzB,QAAQ,EAAE,mBAAmB,CAAC;IAC9B,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,kBAAkB,CAAC,EAAE,MAAM,CAAC;CAC/B,CAAC"}
@@ -1,5 +1,3 @@
1
- import type { RebuyProductVariant } from '~/types/rebuyCustom';
2
- export declare const RebuyProductPrice: ({ selectedVariant, }: {
3
- selectedVariant: RebuyProductVariant;
4
- }) => import("react/jsx-runtime").JSX.Element | null;
1
+ import type { ProductPriceProps } from './types';
2
+ export declare const RebuyProductPrice: ({ selectedVariant, settingsDiscount }: ProductPriceProps) => import("react/jsx-runtime").JSX.Element | null;
5
3
  //# sourceMappingURL=ProductPrice.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ProductPrice.d.ts","sourceRoot":"","sources":["../../../src/components/ProductPrice/ProductPrice.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AAE/D,eAAO,MAAM,iBAAiB,GAAI,sBAE/B;IACC,eAAe,EAAE,mBAAmB,CAAC;CACxC,mDAqCA,CAAC"}
1
+ {"version":3,"file":"ProductPrice.d.ts","sourceRoot":"","sources":["../../../src/components/ProductPrice/ProductPrice.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAKjD,eAAO,MAAM,iBAAiB,GAAI,uCAAuC,iBAAiB,mDAsCzF,CAAC"}
@@ -0,0 +1,23 @@
1
+ import type { RebuyProductVariant } from '~/types/rebuyCustom';
2
+ export type ProductPriceProps = {
3
+ selectedVariant: RebuyProductVariant;
4
+ settingsDiscount?: {
5
+ amount: number;
6
+ bundle_protection: {
7
+ allowed_removals: number;
8
+ disable_atc_on_incomplete: boolean;
9
+ enabled: boolean;
10
+ };
11
+ discount_protection: {
12
+ enabled: boolean;
13
+ minimum_items_to_get_discount: number;
14
+ };
15
+ discounted_by: string;
16
+ discounted_from: string;
17
+ message: string;
18
+ quantity: number;
19
+ show_saving_amount: boolean;
20
+ type: string;
21
+ };
22
+ };
23
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/ProductPrice/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AAE/D,MAAM,MAAM,iBAAiB,GAAG;IAC5B,eAAe,EAAE,mBAAmB,CAAC;IACrC,gBAAgB,CAAC,EAAE;QACf,MAAM,EAAE,MAAM,CAAC;QACf,iBAAiB,EAAE;YACf,gBAAgB,EAAE,MAAM,CAAC;YACzB,yBAAyB,EAAE,OAAO,CAAC;YACnC,OAAO,EAAE,OAAO,CAAC;SACpB,CAAC;QACF,mBAAmB,EAAE;YACjB,OAAO,EAAE,OAAO,CAAC;YACjB,6BAA6B,EAAE,MAAM,CAAC;SACzC,CAAC;QACF,aAAa,EAAE,MAAM,CAAC;QACtB,eAAe,EAAE,MAAM,CAAC;QACxB,OAAO,EAAE,MAAM,CAAC;QAChB,QAAQ,EAAE,MAAM,CAAC;QACjB,kBAAkB,EAAE,OAAO,CAAC;QAC5B,IAAI,EAAE,MAAM,CAAC;KAChB,CAAC;CACL,CAAC"}
@@ -0,0 +1,3 @@
1
+ import type { QuantityInputProps } from '~/components/QuantityInput/types';
2
+ export declare const QuantityInput: ({ defaultQuantity, handleSelectedQuantity, maxValue, minValue, }: QuantityInputProps) => import("react/jsx-runtime").JSX.Element;
3
+ //# sourceMappingURL=QuantityInput.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"QuantityInput.d.ts","sourceRoot":"","sources":["../../../src/components/QuantityInput/QuantityInput.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAC;AAG3E,eAAO,MAAM,aAAa,GAAI,kEAK3B,kBAAkB,4CAiCpB,CAAC"}
@@ -0,0 +1,3 @@
1
+ export * from './QuantityInput';
2
+ export type { QuantityInputProps } from './types';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/QuantityInput/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAChC,YAAY,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC"}
@@ -0,0 +1,7 @@
1
+ export type QuantityInputProps = {
2
+ defaultQuantity?: number;
3
+ handleSelectedQuantity?: (quantity: number) => void;
4
+ maxValue?: number;
5
+ minValue?: number;
6
+ };
7
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/QuantityInput/types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,kBAAkB,GAAG;IAC7B,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,sBAAsB,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;IACpD,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACrB,CAAC"}
@@ -0,0 +1,3 @@
1
+ import type { RebuyLinkProps } from './types';
2
+ export declare const RebuyLink: ({ ariaLabel, children, className, handle, onClick, role }: RebuyLinkProps) => import("react/jsx-runtime").JSX.Element;
3
+ //# sourceMappingURL=RebuyLink.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RebuyLink.d.ts","sourceRoot":"","sources":["../../../src/components/RebuyLink/RebuyLink.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAE9C,eAAO,MAAM,SAAS,GAAI,2DAAoE,cAAc,4CAM3G,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { RebuyLink } from './RebuyLink';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/RebuyLink/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC"}
@@ -0,0 +1,10 @@
1
+ import type { ReactNode } from 'react';
2
+ export type RebuyLinkProps = {
3
+ ariaLabel: string;
4
+ children: ReactNode;
5
+ className?: string;
6
+ handle: string;
7
+ onClick?: () => void;
8
+ role?: string;
9
+ };
10
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/RebuyLink/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,MAAM,MAAM,cAAc,GAAG;IACzB,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,SAAS,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,IAAI,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC"}
@@ -0,0 +1,3 @@
1
+ import type { TimerProps } from './types';
2
+ export declare const Timer: ({ action, cartCount, checkoutUrl, durationMinutes, durationSeconds, isPopup, onDismiss, title, }: TimerProps) => import("react/jsx-runtime").JSX.Element;
3
+ //# sourceMappingURL=Timer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Timer.d.ts","sourceRoot":"","sources":["../../../src/components/Timer/Timer.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAI1C,eAAO,MAAM,KAAK,GAAI,kGASnB,UAAU,4CAoFZ,CAAC"}
@@ -0,0 +1,3 @@
1
+ export * from './Timer';
2
+ export * from './types';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Timer/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC"}
@@ -0,0 +1,20 @@
1
+ export type TimerAction = 'dismiss' | 'checkout' | 'cart' | 'stop';
2
+ export type TimerProps = {
3
+ /** The action to take when the timer reaches zero */
4
+ action: TimerAction;
5
+ /** The cart count to handle the edge case where the cart count is 0 and we don't want the redirect to occur */
6
+ cartCount?: number;
7
+ /** The URL for the stores checkout page (for checkout action) */
8
+ checkoutUrl?: string;
9
+ /** The duration in minutes */
10
+ durationMinutes: number | null;
11
+ /** The duration in seconds */
12
+ durationSeconds: number | null;
13
+ /** Whether the timer is in a popup context */
14
+ isPopup?: boolean;
15
+ /** Callback function to dismiss the popup */
16
+ onDismiss?: () => void;
17
+ /** The title text to display above the timer */
18
+ title?: string;
19
+ };
20
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/Timer/types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,WAAW,GAAG,SAAS,GAAG,UAAU,GAAG,MAAM,GAAG,MAAM,CAAC;AAEnE,MAAM,MAAM,UAAU,GAAG;IACrB,qDAAqD;IACrD,MAAM,EAAE,WAAW,CAAC;IACpB,+GAA+G;IAC/G,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,iEAAiE;IACjE,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,8BAA8B;IAC9B,eAAe,EAAE,MAAM,GAAG,IAAI,CAAC;IAC/B,8BAA8B;IAC9B,eAAe,EAAE,MAAM,GAAG,IAAI,CAAC;IAC/B,8CAA8C;IAC9C,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,6CAA6C;IAC7C,SAAS,CAAC,EAAE,MAAM,IAAI,CAAC;IACvB,gDAAgD;IAChD,KAAK,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC"}
@@ -1,3 +1,3 @@
1
1
  import type { TitleProps } from '~/components/Title/types';
2
- export declare const Title: ({ level, style, text }: TitleProps) => import("react/jsx-runtime").JSX.Element;
2
+ export declare const Title: ({ className, level, style, text }: TitleProps) => import("react/jsx-runtime").JSX.Element;
3
3
  //# sourceMappingURL=Title.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Title.d.ts","sourceRoot":"","sources":["../../../src/components/Title/Title.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AAE3D,eAAO,MAAM,KAAK,GAAI,wBAAwB,UAAU,4CAgBvD,CAAC"}
1
+ {"version":3,"file":"Title.d.ts","sourceRoot":"","sources":["../../../src/components/Title/Title.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AAG3D,eAAO,MAAM,KAAK,GAAI,mCAAmC,UAAU,4CA0ClE,CAAC"}
@@ -1,5 +1,6 @@
1
1
  import type { ProductCardTitleLevel } from '~/types/common';
2
2
  export type TitleProps = {
3
+ className?: string;
3
4
  level: ProductCardTitleLevel;
4
5
  style?: React.CSSProperties;
5
6
  text: string;
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/Title/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,gBAAgB,CAAC;AAE5D,MAAM,MAAM,UAAU,GAAG;IACrB,KAAK,EAAE,qBAAqB,CAAC;IAC7B,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAC5B,IAAI,EAAE,MAAM,CAAC;CAChB,CAAC"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/Title/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,gBAAgB,CAAC;AAE5D,MAAM,MAAM,UAAU,GAAG;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,EAAE,qBAAqB,CAAC;IAC7B,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAC5B,IAAI,EAAE,MAAM,CAAC;CAChB,CAAC"}
@@ -1,3 +1,3 @@
1
1
  import type { VariantSelectProps } from '~/components/VariantSelect/types';
2
- export declare const VariantSelect: ({ handleSelectedVariant, product, }: VariantSelectProps) => false | import("react/jsx-runtime").JSX.Element;
2
+ export declare const VariantSelect: ({ handleSelectedVariant, product, selectedId, style }: VariantSelectProps) => import("react/jsx-runtime").JSX.Element | null;
3
3
  //# sourceMappingURL=VariantSelect.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"VariantSelect.d.ts","sourceRoot":"","sources":["../../../src/components/VariantSelect/VariantSelect.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAC;AAG3E,eAAO,MAAM,aAAa,GAAI,qCAG3B,kBAAkB,oDAoCpB,CAAC"}
1
+ {"version":3,"file":"VariantSelect.d.ts","sourceRoot":"","sources":["../../../src/components/VariantSelect/VariantSelect.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAC;AAG3E,eAAO,MAAM,aAAa,GAAI,uDAAkE,kBAAkB,mDAyDjH,CAAC"}
@@ -2,5 +2,7 @@ import type { RebuyProduct } from '~/types/rebuyCustom';
2
2
  export type VariantSelectProps = {
3
3
  handleSelectedVariant: (product: RebuyProduct, variant_id: string) => void;
4
4
  product: RebuyProduct;
5
+ selectedId?: string;
6
+ style?: string;
5
7
  };
6
8
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/VariantSelect/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAExD,MAAM,MAAM,kBAAkB,GAAG;IAC7B,qBAAqB,EAAE,CAAC,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,KAAK,IAAI,CAAC;IAC3E,OAAO,EAAE,YAAY,CAAC;CACzB,CAAC"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/VariantSelect/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAExD,MAAM,MAAM,kBAAkB,GAAG;IAC7B,qBAAqB,EAAE,CAAC,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,KAAK,IAAI,CAAC;IAC3E,OAAO,EAAE,YAAY,CAAC;IACtB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,KAAK,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export declare const REBUY_THEME_STYLES_BASE_URL = "https://rebuyengine.com/api/v1/theme-styles";
2
+ //# sourceMappingURL=api.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../../src/constants/api.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,2BAA2B,gDAAgD,CAAC"}
@@ -0,0 +1,28 @@
1
+ export declare enum DebugKey {
2
+ CART_MAPPER = "cart-mapper",
3
+ GEOLOCATION = "geolocation",
4
+ REBUY_CONFIG_CONTEXT = "rebuy-config-context",
5
+ REBUY_HYDROGEN_REACT_PROVIDER = "rebuy-hydrogen-react-provider",
6
+ SC_ANCHOR_SLOT = "smart-cart-anchor-slot",
7
+ SC_CART_ACTIONS = "smart-cart-cart-actions",
8
+ SC_CART_ITEM_FEATURES = "smart-cart-cart-item-features",
9
+ SC_CONTAINER = "smart-cart-container",
10
+ SC_CTX = "smart-cart-ctx",
11
+ SC_CTX_H_REACT = "smart-cart-ctx-h-react",
12
+ SC_CTX_TPB_SELECTOR = "smart-cart-ctx-tpb-selector",
13
+ SC_CTX_TPB_SYNC = "smart-cart-ctx-tpb-sync",
14
+ SC_CUSTOM_CODE_BLOCK = "smart-cart-custom-code-block",
15
+ SC_DISCOUNT_MANAGER = "smart-cart-discount-manager",
16
+ SC_LOGIN_BUTTON = "smart-cart-login-button",
17
+ SC_PARTNER_APPS = "smart-cart-partner-apps",
18
+ SC_TPB = "smart-cart-tpb",
19
+ SC_TPB_STORE = "smart-cart-tpb-store",
20
+ SC_TPB_SUBTOTAL_CALC = "smart-cart-tpb-subtotal-calc",
21
+ WIDGET = "rebuy-widget",
22
+ WIDGET_COMPLETE_THE_LOOK = "widget-complete-the-look",
23
+ WIDGET_DYNAMIC_BUNDLE_PRODUCTS = "widget-dynamic-bundle-products",
24
+ WIDGET_PRODUCT_ADD_ONS = "widget-product-add-ons",
25
+ WIDGET_PRODUCT_RECOMMENDATIONS = "widget-product-recommendations",
26
+ WIDGET_RECENTLY_VIEWED_PRODUCTS = "widget-recently-viewed-products"
27
+ }
28
+ //# sourceMappingURL=debug.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"debug.d.ts","sourceRoot":"","sources":["../../src/constants/debug.ts"],"names":[],"mappings":"AAAA,oBAAY,QAAQ;IAChB,WAAW,gBAAgB;IAC3B,WAAW,gBAAgB;IAC3B,oBAAoB,yBAAyB;IAC7C,6BAA6B,kCAAkC;IAC/D,cAAc,2BAA2B;IACzC,eAAe,4BAA4B;IAC3C,qBAAqB,kCAAkC;IACvD,YAAY,yBAAyB;IACrC,MAAM,mBAAmB;IACzB,cAAc,2BAA2B;IACzC,mBAAmB,gCAAgC;IACnD,eAAe,4BAA4B;IAC3C,oBAAoB,iCAAiC;IACrD,mBAAmB,gCAAgC;IACnD,eAAe,4BAA4B;IAC3C,eAAe,4BAA4B;IAC3C,MAAM,mBAAmB;IACzB,YAAY,yBAAyB;IACrC,oBAAoB,iCAAiC;IACrD,MAAM,iBAAiB;IACvB,wBAAwB,6BAA6B;IACrD,8BAA8B,mCAAmC;IACjE,sBAAsB,2BAA2B;IACjD,8BAA8B,mCAAmC;IACjE,+BAA+B,oCAAoC;CACtE"}
@@ -0,0 +1,23 @@
1
+ import { type ReactNode } from 'react';
2
+ import type { SmartCartConfig } from '~/smart-cart/types/smart-cart';
3
+ import type { RebuyConfig } from '~/types/rebuyCustom';
4
+ export type RebuyConfigLoadingStatus = 'idle' | 'loading' | 'success' | 'error';
5
+ export type RebuyConfigContextType = {
6
+ apiKey: string | null;
7
+ fetchError: Error | string | null;
8
+ fetchRebuyConfig: (domain: string) => Promise<void>;
9
+ loadingStatus: RebuyConfigLoadingStatus;
10
+ rebuyConfig: RebuyConfig | null;
11
+ shopDomain: string | null;
12
+ smartCartConfig: SmartCartConfig | null;
13
+ };
14
+ export type RebuyConfigProviderProps = {
15
+ children: ReactNode;
16
+ /** The Shopify store domain (e.g., example-brand.myshopify.com) used to fetch the config. */
17
+ initialShopDomain?: string;
18
+ /** Optional API key to override environment variable or config-derived one. */
19
+ overrideApiKey?: string;
20
+ };
21
+ export declare const RebuyConfigProvider: ({ children, initialShopDomain, overrideApiKey }: RebuyConfigProviderProps) => import("react/jsx-runtime").JSX.Element;
22
+ export declare const useRebuyConfig: () => RebuyConfigContextType;
23
+ //# sourceMappingURL=RebuyConfigContext.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RebuyConfigContext.d.ts","sourceRoot":"","sources":["../../src/context/RebuyConfigContext.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAmE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAExG,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAErE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAGvD,MAAM,MAAM,wBAAwB,GAAG,MAAM,GAAG,SAAS,GAAG,SAAS,GAAG,OAAO,CAAC;AAEhF,MAAM,MAAM,sBAAsB,GAAG;IACjC,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,UAAU,EAAE,KAAK,GAAG,MAAM,GAAG,IAAI,CAAC;IAClC,gBAAgB,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IACpD,aAAa,EAAE,wBAAwB,CAAC;IACxC,WAAW,EAAE,WAAW,GAAG,IAAI,CAAC;IAChC,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,eAAe,EAAE,eAAe,GAAG,IAAI,CAAC;CAC3C,CAAC;AAIF,MAAM,MAAM,wBAAwB,GAAG;IACnC,QAAQ,EAAE,SAAS,CAAC;IACpB,6FAA6F;IAC7F,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,+EAA+E;IAC/E,cAAc,CAAC,EAAE,MAAM,CAAC;CAC3B,CAAC;AAEF,eAAO,MAAM,mBAAmB,GAAI,iDAAiD,wBAAwB,4CAkF5G,CAAC;AAEF,eAAO,MAAM,cAAc,QAAO,sBAQjC,CAAC"}
@@ -0,0 +1,7 @@
1
+ import type { RebuyWidgetContextType } from '~/types/widgets';
2
+ export declare const useRebuyWidget: () => RebuyWidgetContextType;
3
+ export declare const RebuyWidgetProvider: React.FC<{
4
+ children: React.ReactNode;
5
+ value: RebuyWidgetContextType;
6
+ }>;
7
+ //# sourceMappingURL=RebuyWidgetContext.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RebuyWidgetContext.d.ts","sourceRoot":"","sources":["../../src/context/RebuyWidgetContext.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAc9D,eAAO,MAAM,cAAc,8BAAuC,CAAC;AAEnE,eAAO,MAAM,mBAAmB,EAAE,KAAK,CAAC,EAAE,CAAC;IACvC,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,KAAK,EAAE,sBAAsB,CAAC;CACjC,CAEA,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"titleLevel.d.ts","sourceRoot":"","sources":["../../src/hooks/titleLevel.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,gBAAgB,CAAC;AAGvD,eAAO,MAAM,aAAa,GACtB,OAAO,MAAM,EACb,gBAAe,OAAe,KAC/B,qBAmCF,CAAC"}
1
+ {"version":3,"file":"titleLevel.d.ts","sourceRoot":"","sources":["../../src/hooks/titleLevel.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,gBAAgB,CAAC;AAGvD,eAAO,MAAM,aAAa,GAAI,OAAO,MAAM,EAAE,gBAAe,OAAe,KAAG,qBAyC7E,CAAC"}
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Hook to detect B/F (Back/Forward) cache restoration and provide a reset key
3
+ * When the browser restores a page from B/F cache, this hook updates the reset key
4
+ * which can be used to force remount components and reset their state
5
+ */
6
+ export declare const useBFCacheReset: () => number;
7
+ //# sourceMappingURL=useBFCacheReset.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useBFCacheReset.d.ts","sourceRoot":"","sources":["../../src/hooks/useBFCacheReset.ts"],"names":[],"mappings":"AAEA;;;;GAIG;AACH,eAAO,MAAM,eAAe,cAkB3B,CAAC"}
@@ -0,0 +1,5 @@
1
+ import type { WidgetSettings } from '~/types/widgets';
2
+ type Breakpoint = 'small' | 'medium' | 'large';
3
+ export declare const useBreakpoint: (settings: WidgetSettings | null) => Breakpoint;
4
+ export {};
5
+ //# sourceMappingURL=useBreakpoint.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useBreakpoint.d.ts","sourceRoot":"","sources":["../../src/hooks/useBreakpoint.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAEtD,KAAK,UAAU,GAAG,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAC;AAE/C,eAAO,MAAM,aAAa,GAAI,UAAU,cAAc,GAAG,IAAI,KAAG,UAsD/D,CAAC"}
@@ -0,0 +1,3 @@
1
+ import type { WidgetSettings } from '~/types/widgets';
2
+ export declare const usePopupTrigger: (settings: WidgetSettings | null, popupTriggerId: string | undefined, widgetId: string, popupShownOnce: boolean, showPopup: boolean, setShowPopup: (show: boolean) => void, setPopupShownOnce: (shown: boolean) => void) => void;
3
+ //# sourceMappingURL=usePopupTrigger.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"usePopupTrigger.d.ts","sourceRoot":"","sources":["../../src/hooks/usePopupTrigger.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAEtD,eAAO,MAAM,eAAe,GACxB,UAAU,cAAc,GAAG,IAAI,EAC/B,gBAAgB,MAAM,GAAG,SAAS,EAClC,UAAU,MAAM,EAChB,gBAAgB,OAAO,EACvB,WAAW,OAAO,EAClB,cAAc,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,EACrC,mBAAmB,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,SAoI9C,CAAC"}