@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.
- package/README.md +988 -16
- package/dist/assets/Close.d.ts +2 -0
- package/dist/assets/Close.d.ts.map +1 -0
- package/dist/components/AddToCartBtn/AddToCartBtn.d.ts +1 -1
- package/dist/components/AddToCartBtn/AddToCartBtn.d.ts.map +1 -1
- package/dist/components/AddToCartBtn/HydrogenAddToCartBtn.d.ts +1 -1
- package/dist/components/AddToCartBtn/HydrogenAddToCartBtn.d.ts.map +1 -1
- package/dist/components/AddToCartBtn/HydrogenReactAddToCartBtn.d.ts +1 -1
- package/dist/components/AddToCartBtn/HydrogenReactAddToCartBtn.d.ts.map +1 -1
- package/dist/components/AddToCartBtn/types.d.ts +5 -0
- package/dist/components/AddToCartBtn/types.d.ts.map +1 -1
- package/dist/components/ProductCard/ProductCard.d.ts +1 -1
- package/dist/components/ProductCard/ProductCard.d.ts.map +1 -1
- package/dist/components/ProductCard/defaultSettings.d.ts +3 -0
- package/dist/components/ProductCard/defaultSettings.d.ts.map +1 -0
- package/dist/components/ProductCard/index.d.ts +1 -0
- package/dist/components/ProductCard/index.d.ts.map +1 -1
- package/dist/components/ProductCard/types.d.ts +46 -0
- package/dist/components/ProductCard/types.d.ts.map +1 -1
- package/dist/components/ProductCarousel/ProductCarousel.d.ts +3 -0
- package/dist/components/ProductCarousel/ProductCarousel.d.ts.map +1 -0
- package/dist/components/ProductCarousel/index.d.ts +2 -0
- package/dist/components/ProductCarousel/index.d.ts.map +1 -0
- package/dist/components/ProductCarousel/types.d.ts +18 -0
- package/dist/components/ProductCarousel/types.d.ts.map +1 -0
- package/dist/components/ProductPrice/ProductPrice.d.ts +2 -4
- package/dist/components/ProductPrice/ProductPrice.d.ts.map +1 -1
- package/dist/components/ProductPrice/types.d.ts +23 -0
- package/dist/components/ProductPrice/types.d.ts.map +1 -0
- package/dist/components/QuantityInput/QuantityInput.d.ts +3 -0
- package/dist/components/QuantityInput/QuantityInput.d.ts.map +1 -0
- package/dist/components/QuantityInput/index.d.ts +3 -0
- package/dist/components/QuantityInput/index.d.ts.map +1 -0
- package/dist/components/QuantityInput/types.d.ts +7 -0
- package/dist/components/QuantityInput/types.d.ts.map +1 -0
- package/dist/components/RebuyLink/RebuyLink.d.ts +3 -0
- package/dist/components/RebuyLink/RebuyLink.d.ts.map +1 -0
- package/dist/components/RebuyLink/index.d.ts +2 -0
- package/dist/components/RebuyLink/index.d.ts.map +1 -0
- package/dist/components/RebuyLink/types.d.ts +10 -0
- package/dist/components/RebuyLink/types.d.ts.map +1 -0
- package/dist/components/Timer/Timer.d.ts +3 -0
- package/dist/components/Timer/Timer.d.ts.map +1 -0
- package/dist/components/Timer/index.d.ts +3 -0
- package/dist/components/Timer/index.d.ts.map +1 -0
- package/dist/components/Timer/types.d.ts +20 -0
- package/dist/components/Timer/types.d.ts.map +1 -0
- package/dist/components/Title/Title.d.ts +1 -1
- package/dist/components/Title/Title.d.ts.map +1 -1
- package/dist/components/Title/types.d.ts +1 -0
- package/dist/components/Title/types.d.ts.map +1 -1
- package/dist/components/VariantSelect/VariantSelect.d.ts +1 -1
- package/dist/components/VariantSelect/VariantSelect.d.ts.map +1 -1
- package/dist/components/VariantSelect/types.d.ts +2 -0
- package/dist/components/VariantSelect/types.d.ts.map +1 -1
- package/dist/constants/api.d.ts +2 -0
- package/dist/constants/api.d.ts.map +1 -0
- package/dist/constants/debug.d.ts +28 -0
- package/dist/constants/debug.d.ts.map +1 -0
- package/dist/context/RebuyConfigContext.d.ts +23 -0
- package/dist/context/RebuyConfigContext.d.ts.map +1 -0
- package/dist/context/RebuyWidgetContext.d.ts +7 -0
- package/dist/context/RebuyWidgetContext.d.ts.map +1 -0
- package/dist/hooks/titleLevel.d.ts.map +1 -1
- package/dist/hooks/useBFCacheReset.d.ts +7 -0
- package/dist/hooks/useBFCacheReset.d.ts.map +1 -0
- package/dist/hooks/useBreakpoint.d.ts +5 -0
- package/dist/hooks/useBreakpoint.d.ts.map +1 -0
- package/dist/hooks/usePopupTrigger.d.ts +3 -0
- package/dist/hooks/usePopupTrigger.d.ts.map +1 -0
- package/dist/index.css +2680 -99
- package/dist/index.css.map +4 -4
- package/dist/index.d.ts +9 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +9756 -1461
- package/dist/index.js.map +4 -4
- package/dist/index.mjs +9768 -1482
- package/dist/index.mjs.map +4 -4
- package/dist/providers/RebuyHydrogenContextProvider.d.ts +1 -1
- package/dist/providers/RebuyHydrogenContextProvider.d.ts.map +1 -1
- package/dist/providers/RebuyHydrogenReactContextProvider.d.ts +6 -1
- package/dist/providers/RebuyHydrogenReactContextProvider.d.ts.map +1 -1
- package/dist/providers/types.d.ts +29 -14
- package/dist/providers/types.d.ts.map +1 -1
- package/dist/queries/cart.queries.d.ts +4 -4
- package/dist/queries/cart.queries.d.ts.map +1 -1
- package/dist/smart-cart/RebuySmartCart.d.ts +10 -0
- package/dist/smart-cart/RebuySmartCart.d.ts.map +1 -0
- package/dist/smart-cart/components/AnnouncementBar/AnnouncementBar.d.ts +10 -0
- package/dist/smart-cart/components/AnnouncementBar/AnnouncementBar.d.ts.map +1 -0
- package/dist/smart-cart/components/CartItem/CartItem.d.ts +7 -0
- package/dist/smart-cart/components/CartItem/CartItem.d.ts.map +1 -0
- package/dist/smart-cart/components/CartItemList/CartItemList.d.ts +10 -0
- package/dist/smart-cart/components/CartItemList/CartItemList.d.ts.map +1 -0
- package/dist/smart-cart/components/CartNoteInput/CartNoteInput.d.ts +10 -0
- package/dist/smart-cart/components/CartNoteInput/CartNoteInput.d.ts.map +1 -0
- package/dist/smart-cart/components/CartSubtotal/CartSubtotal.d.ts +11 -0
- package/dist/smart-cart/components/CartSubtotal/CartSubtotal.d.ts.map +1 -0
- package/dist/smart-cart/components/CartTitleBar/CartTitleBar.d.ts +7 -0
- package/dist/smart-cart/components/CartTitleBar/CartTitleBar.d.ts.map +1 -0
- package/dist/smart-cart/components/CheckoutArea/CheckoutArea.d.ts +10 -0
- package/dist/smart-cart/components/CheckoutArea/CheckoutArea.d.ts.map +1 -0
- package/dist/smart-cart/components/CrossSell/CrossSell.d.ts +10 -0
- package/dist/smart-cart/components/CrossSell/CrossSell.d.ts.map +1 -0
- package/dist/smart-cart/components/CustomCode/CustomCodeBlock.d.ts +21 -0
- package/dist/smart-cart/components/CustomCode/CustomCodeBlock.d.ts.map +1 -0
- package/dist/smart-cart/components/DebugPanel/DebugPanel.d.ts +13 -0
- package/dist/smart-cart/components/DebugPanel/DebugPanel.d.ts.map +1 -0
- package/dist/smart-cart/components/DebugPanel/index.d.ts +11 -0
- package/dist/smart-cart/components/DebugPanel/index.d.ts.map +1 -0
- package/dist/smart-cart/components/DiscountCodeInput/DiscountCodeInput.d.ts +10 -0
- package/dist/smart-cart/components/DiscountCodeInput/DiscountCodeInput.d.ts.map +1 -0
- package/dist/smart-cart/components/EmptyCart/EmptyCart.d.ts +3 -0
- package/dist/smart-cart/components/EmptyCart/EmptyCart.d.ts.map +1 -0
- package/dist/smart-cart/components/LoginButton/LoginButton.d.ts +3 -0
- package/dist/smart-cart/components/LoginButton/LoginButton.d.ts.map +1 -0
- package/dist/smart-cart/components/ScreenReaderText/ScreenReaderText.d.ts +8 -0
- package/dist/smart-cart/components/ScreenReaderText/ScreenReaderText.d.ts.map +1 -0
- package/dist/smart-cart/components/SmartCartApp/SmartCartApp.d.ts +20 -0
- package/dist/smart-cart/components/SmartCartApp/SmartCartApp.d.ts.map +1 -0
- package/dist/smart-cart/components/SmartCartContainer/SmartCartContainer.d.ts +8 -0
- package/dist/smart-cart/components/SmartCartContainer/SmartCartContainer.d.ts.map +1 -0
- package/dist/smart-cart/components/TieredProgressBar/Icons.d.ts +5 -0
- package/dist/smart-cart/components/TieredProgressBar/Icons.d.ts.map +1 -0
- package/dist/smart-cart/components/TieredProgressBar/TPBGiftItem.d.ts +21 -0
- package/dist/smart-cart/components/TieredProgressBar/TPBGiftItem.d.ts.map +1 -0
- package/dist/smart-cart/components/TieredProgressBar/TieredProgressBar.d.ts +11 -0
- package/dist/smart-cart/components/TieredProgressBar/TieredProgressBar.d.ts.map +1 -0
- package/dist/smart-cart/components/TieredProgressBar/progressBarUtils.d.ts +173 -0
- package/dist/smart-cart/components/TieredProgressBar/progressBarUtils.d.ts.map +1 -0
- package/dist/smart-cart/components/TieredProgressBar/types.d.ts +261 -0
- package/dist/smart-cart/components/TieredProgressBar/types.d.ts.map +1 -0
- package/dist/smart-cart/components/_Layouts/AnchorSlot.d.ts +13 -0
- package/dist/smart-cart/components/_Layouts/AnchorSlot.d.ts.map +1 -0
- package/dist/smart-cart/components/_Layouts/DoubleColumnLayout.d.ts +9 -0
- package/dist/smart-cart/components/_Layouts/DoubleColumnLayout.d.ts.map +1 -0
- package/dist/smart-cart/components/_Layouts/SingleColumnLayout.d.ts +8 -0
- package/dist/smart-cart/components/_Layouts/SingleColumnLayout.d.ts.map +1 -0
- package/dist/smart-cart/components/componentRegistry.d.ts +3 -0
- package/dist/smart-cart/components/componentRegistry.d.ts.map +1 -0
- package/dist/smart-cart/constants.d.ts +58 -0
- package/dist/smart-cart/constants.d.ts.map +1 -0
- package/dist/smart-cart/context/SmartCartContext.d.ts +62 -0
- package/dist/smart-cart/context/SmartCartContext.d.ts.map +1 -0
- package/dist/smart-cart/context/StorefrontCartContext.d.ts +32 -0
- package/dist/smart-cart/context/StorefrontCartContext.d.ts.map +1 -0
- package/dist/smart-cart/hooks/useCartItemFeatures.d.ts +84 -0
- package/dist/smart-cart/hooks/useCartItemFeatures.d.ts.map +1 -0
- package/dist/smart-cart/hooks/useDiscountManager.d.ts +28 -0
- package/dist/smart-cart/hooks/useDiscountManager.d.ts.map +1 -0
- package/dist/smart-cart/hooks/useGeolocation.d.ts +12 -0
- package/dist/smart-cart/hooks/useGeolocation.d.ts.map +1 -0
- package/dist/smart-cart/hooks/useIsScrolled.d.ts +14 -0
- package/dist/smart-cart/hooks/useIsScrolled.d.ts.map +1 -0
- package/dist/smart-cart/hooks/useSmartCartApps.d.ts +17 -0
- package/dist/smart-cart/hooks/useSmartCartApps.d.ts.map +1 -0
- package/dist/smart-cart/store/tieredProgressBarStore.d.ts +76 -0
- package/dist/smart-cart/store/tieredProgressBarStore.d.ts.map +1 -0
- package/dist/smart-cart/types/rebuy-storefront-cart.d.ts +142 -0
- package/dist/smart-cart/types/rebuy-storefront-cart.d.ts.map +1 -0
- package/dist/smart-cart/types/rebuy.d.ts +15 -0
- package/dist/smart-cart/types/rebuy.d.ts.map +1 -0
- package/dist/smart-cart/types/shop.d.ts +26 -0
- package/dist/smart-cart/types/shop.d.ts.map +1 -0
- package/dist/smart-cart/types/smart-cart-app.d.ts +103 -0
- package/dist/smart-cart/types/smart-cart-app.d.ts.map +1 -0
- package/dist/smart-cart/types/smart-cart-component.d.ts +1350 -0
- package/dist/smart-cart/types/smart-cart-component.d.ts.map +1 -0
- package/dist/smart-cart/types/smart-cart.d.ts +82 -0
- package/dist/smart-cart/types/smart-cart.d.ts.map +1 -0
- package/dist/smart-cart/utils/cartItemUtils.d.ts +292 -0
- package/dist/smart-cart/utils/cartItemUtils.d.ts.map +1 -0
- package/dist/smart-cart/utils/debugLog.d.ts +77 -0
- package/dist/smart-cart/utils/debugLog.d.ts.map +1 -0
- package/dist/smart-cart/utils/debugStyles.d.ts +3342 -0
- package/dist/smart-cart/utils/debugStyles.d.ts.map +1 -0
- package/dist/smart-cart/utils/executeScriptsInContainer.d.ts +14 -0
- package/dist/smart-cart/utils/executeScriptsInContainer.d.ts.map +1 -0
- package/dist/smart-cart/utils/imageUtils.d.ts +2 -0
- package/dist/smart-cart/utils/imageUtils.d.ts.map +1 -0
- package/dist/smart-cart/utils/mapHydrogenCartToStorefrontCartData.d.ts +14 -0
- package/dist/smart-cart/utils/mapHydrogenCartToStorefrontCartData.d.ts.map +1 -0
- package/dist/smart-cart/utils/moneyUtils.d.ts +24 -0
- package/dist/smart-cart/utils/moneyUtils.d.ts.map +1 -0
- package/dist/smart-cart/utils/safeJsonParse.d.ts +2 -0
- package/dist/smart-cart/utils/safeJsonParse.d.ts.map +1 -0
- package/dist/types/common.d.ts +16 -0
- package/dist/types/common.d.ts.map +1 -1
- package/dist/types/rebuyCustom.d.ts +133 -17
- package/dist/types/rebuyCustom.d.ts.map +1 -1
- package/dist/types/shopify.d.ts +1 -2
- package/dist/types/shopify.d.ts.map +1 -1
- package/dist/types/widgets.d.ts +20078 -7
- package/dist/types/widgets.d.ts.map +1 -1
- package/dist/utils/convertToRebuyProduct.d.ts.map +1 -1
- package/dist/utils/createContextParameters.d.ts +1 -1
- package/dist/utils/createContextParameters.d.ts.map +1 -1
- package/dist/utils/filterContextUtils.d.ts +3 -0
- package/dist/utils/filterContextUtils.d.ts.map +1 -0
- package/dist/utils/getEncodedAttributes.d.ts.map +1 -1
- package/dist/utils/getRebuyConfig.d.ts +1 -1
- package/dist/utils/getRebuyConfig.d.ts.map +1 -1
- package/dist/utils/nonceManager.d.ts +10 -0
- package/dist/utils/nonceManager.d.ts.map +1 -0
- package/dist/utils/theme.d.ts +20 -0
- package/dist/utils/theme.d.ts.map +1 -0
- package/dist/widgetContainer/RebuyWidgetContainer.d.ts +1 -1
- package/dist/widgetContainer/RebuyWidgetContainer.d.ts.map +1 -1
- package/dist/widgets/RebuyCompleteTheLook/RebuyCompleteTheLook.d.ts.map +1 -1
- package/dist/widgets/RebuyDynamicBundleProducts/BundleImages.d.ts.map +1 -1
- package/dist/widgets/RebuyDynamicBundleProducts/BundlePrice.d.ts.map +1 -1
- package/dist/widgets/RebuyDynamicBundleProducts/BundleSelection.d.ts +1 -1
- package/dist/widgets/RebuyDynamicBundleProducts/BundleSelection.d.ts.map +1 -1
- package/dist/widgets/RebuyDynamicBundleProducts/RebuyDynamicBundleProducts.d.ts.map +1 -1
- package/dist/widgets/RebuyDynamicBundleProducts/Select.d.ts.map +1 -1
- package/dist/widgets/RebuyGiftWithPurchase/RebuyGiftWithPurchase.d.ts +11 -0
- package/dist/widgets/RebuyGiftWithPurchase/RebuyGiftWithPurchase.d.ts.map +1 -0
- package/dist/widgets/RebuyGiftWithPurchase/index.d.ts +3 -0
- package/dist/widgets/RebuyGiftWithPurchase/index.d.ts.map +1 -0
- package/dist/widgets/RebuyGiftWithPurchase/store/giftWithPurchaseStore.d.ts +31 -0
- package/dist/widgets/RebuyGiftWithPurchase/store/giftWithPurchaseStore.d.ts.map +1 -0
- package/dist/widgets/RebuyGiftWithPurchase/types.d.ts +12 -0
- package/dist/widgets/RebuyGiftWithPurchase/types.d.ts.map +1 -0
- package/dist/widgets/RebuyGiftWithPurchase/utils.d.ts +35 -0
- package/dist/widgets/RebuyGiftWithPurchase/utils.d.ts.map +1 -0
- package/dist/widgets/RebuyProductAddOns/RebuyProductAddOnCard.d.ts.map +1 -1
- package/dist/widgets/RebuyProductAddOns/RebuyProductAddOns.d.ts.map +1 -1
- package/dist/widgets/RebuyProductAddOns/types.d.ts.map +1 -1
- package/dist/widgets/RebuyProductRecommendations/RebuyProductRecommendations.d.ts.map +1 -1
- package/dist/widgets/RebuyProductViewed/RebuyProductViewed.d.ts +3 -0
- package/dist/widgets/RebuyProductViewed/RebuyProductViewed.d.ts.map +1 -0
- package/dist/widgets/RebuyProductViewed/index.d.ts +2 -0
- package/dist/widgets/RebuyProductViewed/index.d.ts.map +1 -0
- package/dist/widgets/RebuyProductViewed/types.d.ts +8 -0
- package/dist/widgets/RebuyProductViewed/types.d.ts.map +1 -0
- package/dist/widgets/RebuyRecentlyViewedProducts/RebuyRecentlyViewedProducts.d.ts +3 -0
- package/dist/widgets/RebuyRecentlyViewedProducts/RebuyRecentlyViewedProducts.d.ts.map +1 -0
- package/dist/widgets/RebuyRecentlyViewedProducts/index.d.ts +2 -0
- package/dist/widgets/RebuyRecentlyViewedProducts/index.d.ts.map +1 -0
- package/dist/widgets/RebuyRecentlyViewedProducts/types.d.ts +11 -0
- package/dist/widgets/RebuyRecentlyViewedProducts/types.d.ts.map +1 -0
- package/dist/widgets/RebuyWidget/RebuyWidget.d.ts +3 -0
- package/dist/widgets/RebuyWidget/RebuyWidget.d.ts.map +1 -0
- package/dist/widgets/RebuyWidget/WidgetContent.d.ts +3 -0
- package/dist/widgets/RebuyWidget/WidgetContent.d.ts.map +1 -0
- package/dist/widgets/RebuyWidget/index.d.ts +2 -0
- package/dist/widgets/RebuyWidget/index.d.ts.map +1 -0
- package/dist/widgets/RebuyWidget/types.d.ts +28 -0
- package/dist/widgets/RebuyWidget/types.d.ts.map +1 -0
- package/dist/zustandStores/productViewed.d.ts +9 -0
- package/dist/zustandStores/productViewed.d.ts.map +1 -0
- package/package.json +57 -41
- package/dist/types/rebuySmartCart.d.ts +0 -184
- package/dist/types/rebuySmartCart.d.ts.map +0 -1
- package/src/components/AddToCartBtn/AddToCartBtn.tsx +0 -45
- package/src/components/AddToCartBtn/HydrogenAddToCartBtn.tsx +0 -43
- package/src/components/AddToCartBtn/HydrogenReactAddToCartBtn.tsx +0 -35
- package/src/components/AddToCartBtn/index.ts +0 -1
- package/src/components/AddToCartBtn/types.ts +0 -27
- package/src/components/ProductCard/ProductCard.tsx +0 -70
- package/src/components/ProductCard/index.ts +0 -1
- package/src/components/ProductCard/types.ts +0 -10
- package/src/components/ProductPrice/ProductPrice.tsx +0 -49
- package/src/components/ProductPrice/index.ts +0 -1
- package/src/components/Title/Title.tsx +0 -19
- package/src/components/Title/index.ts +0 -1
- package/src/components/Title/types.ts +0 -7
- package/src/components/VariantSelect/VariantSelect.tsx +0 -45
- package/src/components/VariantSelect/index.ts +0 -1
- package/src/components/VariantSelect/types.ts +0 -6
- package/src/context/RebuyContext.tsx +0 -9
- package/src/hooks/titleLevel.tsx +0 -42
- package/src/index.ts +0 -7
- package/src/providers/RebuyHydrogenContextProvider.tsx +0 -112
- package/src/providers/RebuyHydrogenReactContextProvider.tsx +0 -192
- package/src/providers/types.ts +0 -58
- package/src/queries/cart.queries.ts +0 -467
- package/src/types/common.ts +0 -8
- package/src/types/css.d.ts +0 -11
- package/src/types/env.d.ts +0 -12
- package/src/types/rebuy.d.ts +0 -31
- package/src/types/rebuyCustom.ts +0 -263
- package/src/types/rebuySmartCart.ts +0 -188
- package/src/types/shopify.ts +0 -142
- package/src/types/widgets.ts +0 -29
- package/src/utils/convertToRebuyProduct.tsx +0 -319
- package/src/utils/createContextParameters.ts +0 -142
- package/src/utils/getEncodedAttributes.ts +0 -11
- package/src/utils/getRebuyConfig.ts +0 -31
- package/src/widgetContainer/RebuyWidgetContainer.tsx +0 -183
- package/src/widgets/RebuyCompleteTheLook/RebuyCompleteTheLook.tsx +0 -50
- package/src/widgets/RebuyCompleteTheLook/index.ts +0 -1
- package/src/widgets/RebuyCompleteTheLook/types.ts +0 -5
- package/src/widgets/RebuyDynamicBundleProducts/BundleImages.tsx +0 -62
- package/src/widgets/RebuyDynamicBundleProducts/BundlePrice.tsx +0 -93
- package/src/widgets/RebuyDynamicBundleProducts/BundleSelection.tsx +0 -65
- package/src/widgets/RebuyDynamicBundleProducts/RebuyDynamicBundleProducts.tsx +0 -118
- package/src/widgets/RebuyDynamicBundleProducts/Select.tsx +0 -41
- package/src/widgets/RebuyDynamicBundleProducts/index.ts +0 -1
- package/src/widgets/RebuyDynamicBundleProducts/types.ts +0 -23
- package/src/widgets/RebuyProductAddOns/RebuyProductAddOnCard.tsx +0 -66
- package/src/widgets/RebuyProductAddOns/RebuyProductAddOns.tsx +0 -218
- package/src/widgets/RebuyProductAddOns/index.ts +0 -1
- package/src/widgets/RebuyProductAddOns/types.ts +0 -24
- package/src/widgets/RebuyProductRecommendations/RebuyProductRecommendations.tsx +0 -50
- package/src/widgets/RebuyProductRecommendations/index.ts +0 -1
- package/src/widgets/RebuyProductRecommendations/types.ts +0 -5
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"debugStyles.d.ts","sourceRoot":"","sources":["../../../src/smart-cart/utils/debugStyles.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAA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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iCAzEQ,aAAa;CAmFnC,CAAC"}
|
@@ -0,0 +1,14 @@
|
|
1
|
+
import type { DebugKey } from '~/constants/debug';
|
2
|
+
/**
|
3
|
+
* Finds all <script> elements within a given container, creates new executable
|
4
|
+
* script elements from them, and appends them to the container to trigger execution.
|
5
|
+
* This method avoids `eval()` and is designed to work with Content Security Policies
|
6
|
+
* that use nonces by attempting to copy a nonce from an existing script on the page.
|
7
|
+
*
|
8
|
+
* @param {HTMLElement} container The HTML element to search within.
|
9
|
+
* @param {DebugKey} debugKey The debug key for logging.
|
10
|
+
* @param {string} debugContext A string providing context for log messages (e.g., component ID).
|
11
|
+
* @returns {void}
|
12
|
+
*/
|
13
|
+
export declare const executeScriptsInContainer: (container: HTMLElement, debugKey: DebugKey, debugContext: string) => void;
|
14
|
+
//# sourceMappingURL=executeScriptsInContainer.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"executeScriptsInContainer.d.ts","sourceRoot":"","sources":["../../../src/smart-cart/utils/executeScriptsInContainer.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAIlD;;;;;;;;;;GAUG;AACH,eAAO,MAAM,yBAAyB,GAAI,WAAW,WAAW,EAAE,UAAU,QAAQ,EAAE,cAAc,MAAM,SAyEzG,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"imageUtils.d.ts","sourceRoot":"","sources":["../../../src/smart-cart/utils/imageUtils.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,SAAS,GAAI,KAAK,MAAM,GAAG,SAAS,GAAG,IAAI,EAAE,MAAM,MAAM,KAAG,MAuBxE,CAAC"}
|
@@ -0,0 +1,14 @@
|
|
1
|
+
import type { Cart as HydrogenStorefrontApiCart } from '@shopify/hydrogen/storefront-api-types';
|
2
|
+
import type { StorefrontCartData } from '~/smart-cart/types/rebuy-storefront-cart';
|
3
|
+
import type { ContextParameters } from '~/types/rebuyCustom';
|
4
|
+
/**
|
5
|
+
* Maps the cart data structure from RebuyContext.contextParameters
|
6
|
+
* (derived from Hydrogen/Hydrogen React cart) to the StorefrontCartData shape.
|
7
|
+
* Since StorefrontCartData now aliases HydrogenCart, this is a simplified pass-through.
|
8
|
+
*
|
9
|
+
* @param {HydrogenStorefrontApiCart | Partial<HydrogenStorefrontApiCart> | null | undefined} cartSource - The primary cart data object.
|
10
|
+
* @param {ContextParameters | null | undefined} contextParameters - Additional context parameters, used for fallback or supplementary data.
|
11
|
+
* @returns {StorefrontCartData | null} - The cart data, or null if essential data is missing.
|
12
|
+
*/
|
13
|
+
export declare const mapHydrogenCartToStorefrontCartData: (cartSource: HydrogenStorefrontApiCart | Partial<HydrogenStorefrontApiCart> | null | undefined, contextParameters: ContextParameters | null | undefined) => StorefrontCartData | null;
|
14
|
+
//# sourceMappingURL=mapHydrogenCartToStorefrontCartData.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"mapHydrogenCartToStorefrontCartData.d.ts","sourceRoot":"","sources":["../../../src/smart-cart/utils/mapHydrogenCartToStorefrontCartData.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,IAAI,yBAAyB,EAAE,MAAM,wCAAwC,CAAC;AAEhG,OAAO,KAAK,EAGR,kBAAkB,EAIrB,MAAM,0CAA0C,CAAC;AAElD,OAAO,KAAK,EAAE,iBAAiB,EAAe,MAAM,qBAAqB,CAAC;AAG1E;;;;;;;;GAQG;AACH,eAAO,MAAM,mCAAmC,GAC5C,YAAY,yBAAyB,GAAG,OAAO,CAAC,yBAAyB,CAAC,GAAG,IAAI,GAAG,SAAS,EAC7F,mBAAmB,iBAAiB,GAAG,IAAI,GAAG,SAAS,KACxD,kBAAkB,GAAG,IAyJvB,CAAC"}
|
@@ -0,0 +1,24 @@
|
|
1
|
+
import type { StorefrontMoney } from '~/smart-cart/types/rebuy-storefront-cart';
|
2
|
+
/**
|
3
|
+
* Formats a numeric amount as a currency string.
|
4
|
+
* Uses Intl.NumberFormat for locale-aware formatting when a valid currencyCode is provided.
|
5
|
+
* Falls back to simple symbol + fixed decimal formatting otherwise.
|
6
|
+
*
|
7
|
+
* @param {string|number|undefined|null} amount - The amount as a string or number. Can be null or undefined.
|
8
|
+
* @param {string} currencyCodeOrSymbol - The ISO currency code (e.g., 'USD', 'CAD') OR a currency symbol (e.g., '$'). Defaults to '$'.
|
9
|
+
* @param {string} locale - Optional locale string (e.g., 'en-US', 'en-CA', 'fr-FR'). Defaults to 'en-US'. Used only with Intl.NumberFormat.
|
10
|
+
*
|
11
|
+
* @returns {string} Formatted currency string.
|
12
|
+
*/
|
13
|
+
export declare const formatMoney: (amount: string | number | undefined | null, currencyCodeOrSymbol?: string, // Default to symbol for simple calls
|
14
|
+
locale?: string) => string;
|
15
|
+
/**
|
16
|
+
* Gets the maximum amount between a compare-at price and regular price
|
17
|
+
*
|
18
|
+
* @param {StorefrontMoney} compareAtPrice The compare-at price object with amount string
|
19
|
+
* @param {StorefrontMoney} price The regular price object with amount string
|
20
|
+
*
|
21
|
+
* @returns {number} The higher of the two amounts within each money object
|
22
|
+
*/
|
23
|
+
export declare const getMaxAmount: (compareAtPrice: StorefrontMoney | null, price: StorefrontMoney) => number;
|
24
|
+
//# sourceMappingURL=moneyUtils.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"moneyUtils.d.ts","sourceRoot":"","sources":["../../../src/smart-cart/utils/moneyUtils.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,0CAA0C,CAAC;AAEhF;;;;;;;;;;GAUG;AACH,eAAO,MAAM,WAAW,GACpB,QAAQ,MAAM,GAAG,MAAM,GAAG,SAAS,GAAG,IAAI,EAC1C,uBAAsB,MAAY,EAAE,qCAAqC;AACzE,SAAQ,MAAgB,KACzB,MA0CF,CAAC;AAEF;;;;;;;GAOG;AACH,eAAO,MAAM,YAAY,GAAI,gBAAgB,eAAe,GAAG,IAAI,EAAE,OAAO,eAAe,WAI1F,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"safeJsonParse.d.ts","sourceRoot":"","sources":["../../../src/smart-cart/utils/safeJsonParse.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,aAAa,GAAI,CAAC,EAAE,YAAY,MAAM,GAAG,IAAI,GAAG,SAAS,KAAG,CAAC,GAAG,IAS5E,CAAC"}
|
package/dist/types/common.d.ts
CHANGED
@@ -6,4 +6,20 @@ export declare enum ProductCardTitleLevel {
|
|
6
6
|
H5 = "h5",
|
7
7
|
H6 = "h6"
|
8
8
|
}
|
9
|
+
type JsonPrimitive = string | number | boolean | null;
|
10
|
+
type JsonObject = {
|
11
|
+
[Key in string]: JsonValue;
|
12
|
+
} & {
|
13
|
+
[Key in string]?: JsonValue | undefined;
|
14
|
+
};
|
15
|
+
type JsonArray = JsonValue[] | readonly JsonValue[];
|
16
|
+
export type JsonValue = JsonPrimitive | JsonObject | JsonArray;
|
17
|
+
export type ProductViewedRequest = {
|
18
|
+
parameters: {
|
19
|
+
shopify_product_handle?: string;
|
20
|
+
shopify_product_id?: string;
|
21
|
+
uuid?: string;
|
22
|
+
};
|
23
|
+
};
|
24
|
+
export {};
|
9
25
|
//# sourceMappingURL=common.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../src/types/common.ts"],"names":[],"mappings":"AAAA,oBAAY,qBAAqB;IAC7B,EAAE,OAAO;IACT,EAAE,OAAO;IACT,EAAE,OAAO;IACT,EAAE,OAAO;IACT,EAAE,OAAO;IACT,EAAE,OAAO;CACZ"}
|
1
|
+
{"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../src/types/common.ts"],"names":[],"mappings":"AAAA,oBAAY,qBAAqB;IAC7B,EAAE,OAAO;IACT,EAAE,OAAO;IACT,EAAE,OAAO;IACT,EAAE,OAAO;IACT,EAAE,OAAO;IACT,EAAE,OAAO;CACZ;AAED,KAAK,aAAa,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,IAAI,CAAC;AACtD,KAAK,UAAU,GAAG;KACb,GAAG,IAAI,MAAM,GAAG,SAAS;CAC7B,GAAG;KACC,GAAG,IAAI,MAAM,CAAC,CAAC,EAAE,SAAS,GAAG,SAAS;CAC1C,CAAC;AACF,KAAK,SAAS,GAAG,SAAS,EAAE,GAAG,SAAS,SAAS,EAAE,CAAC;AAEpD,MAAM,MAAM,SAAS,GAAG,aAAa,GAAG,UAAU,GAAG,SAAS,CAAC;AAE/D,MAAM,MAAM,oBAAoB,GAAG;IAC/B,UAAU,EAAE;QACR,sBAAsB,CAAC,EAAE,MAAM,CAAC;QAChC,kBAAkB,CAAC,EAAE,MAAM,CAAC;QAC5B,IAAI,CAAC,EAAE,MAAM,CAAC;KACjB,CAAC;CACL,CAAC"}
|
@@ -1,40 +1,109 @@
|
|
1
|
-
import type { Attribute, CartLine, Collection,
|
2
|
-
import type {
|
1
|
+
import type { Attribute, CartCost, CartDiscountCode, CartLine, Collection, Cart as HydrogenStorefrontApiCart, MoneyV2, Product, ProductVariant, SelectedOption } from '@shopify/hydrogen/storefront-api-types';
|
2
|
+
import type { CartStatus } from '@shopify/hydrogen-react';
|
3
|
+
import type { CartInput, AttributeInput as HRAttributeInput, CartLineInput as HRCartLineInput, CartLineUpdateInput as HRCartLineUpdateInput } from '@shopify/hydrogen-react/storefront-api-types';
|
4
|
+
import type { SmartCartConfig } from '~/smart-cart/types/smart-cart';
|
3
5
|
import type { HydrogenCollection, HydrogenProduct, HydrogenProductVariant } from '~/types/shopify';
|
6
|
+
export type RawCartLine = CartLine;
|
7
|
+
export type RawAttribute = Attribute;
|
8
|
+
export type RawDiscountCode = CartDiscountCode;
|
9
|
+
export type RawCartCost = Pick<CartCost, 'subtotalAmount' | 'totalAmount'>;
|
10
|
+
export type HydrogenReactCartActions = {
|
11
|
+
cartAttributesUpdate: (attributes: HRAttributeInput[]) => void;
|
12
|
+
cartCreate: (cartInput: CartInput) => void;
|
13
|
+
discountCodesUpdate: (discountCodes: string[]) => void;
|
14
|
+
linesAdd: (lines: HRCartLineInput[]) => void;
|
15
|
+
linesRemove: (lineIds: string[]) => void;
|
16
|
+
linesUpdate: (lines: HRCartLineUpdateInput[]) => void;
|
17
|
+
noteUpdate: (note: string) => void;
|
18
|
+
};
|
4
19
|
export type RebuyContextProps = {
|
5
20
|
cacheKey?: string;
|
6
|
-
cartAttributes?:
|
21
|
+
cartAttributes?: RawAttribute[];
|
22
|
+
cartCost?: RawCartCost;
|
7
23
|
cartId?: string;
|
8
|
-
cartLines?:
|
24
|
+
cartLines?: RawCartLine[];
|
9
25
|
cartLinesLength?: number;
|
10
26
|
cartNote?: string;
|
11
27
|
cartSubtotal?: string;
|
12
28
|
cartTotalQuantity?: number;
|
29
|
+
checkoutUrl?: string;
|
30
|
+
discountCodes?: RawDiscountCode[];
|
31
|
+
hydrogenReactCartActions?: HydrogenReactCartActions;
|
32
|
+
hydrogenReactCartError?: unknown;
|
33
|
+
hydrogenReactCartStatus?: CartStatus;
|
13
34
|
isHydrogenReact: boolean;
|
14
35
|
queryObject: Record<string, string>;
|
36
|
+
sourceHydrogenCart?: HydrogenStorefrontApiCart | Partial<HydrogenStorefrontApiCart> | null;
|
15
37
|
windowUrl: string;
|
16
38
|
};
|
39
|
+
export type ContextParameters = {
|
40
|
+
readonly cache_key?: string;
|
41
|
+
readonly cart?: Readonly<CartContext>;
|
42
|
+
readonly cart_count: number;
|
43
|
+
readonly cart_item_count: number;
|
44
|
+
readonly cart_line_count: number;
|
45
|
+
readonly cart_subtotal: number;
|
46
|
+
readonly cart_token?: string;
|
47
|
+
readonly cartAttributes?: readonly RawAttribute[];
|
48
|
+
readonly cartCost?: Readonly<RawCartCost>;
|
49
|
+
readonly cartId?: string;
|
50
|
+
readonly cartLines?: readonly RawCartLine[];
|
51
|
+
readonly cartNote?: string | null;
|
52
|
+
readonly checkoutUrl?: string;
|
53
|
+
readonly discountCodes?: readonly RawDiscountCode[];
|
54
|
+
readonly hydrogenCart?: Readonly<HydrogenStorefrontApiCart> | null;
|
55
|
+
readonly hydrogenReactCartActions?: Readonly<HydrogenReactCartActions>;
|
56
|
+
readonly hydrogenReactCartError?: RebuyContextProps['hydrogenReactCartError'];
|
57
|
+
readonly hydrogenReactCartStatus?: RebuyContextProps['hydrogenReactCartStatus'];
|
58
|
+
readonly isHydrogenReact: boolean;
|
59
|
+
readonly shopify_customer_id?: string;
|
60
|
+
readonly time: string;
|
61
|
+
readonly url: string;
|
62
|
+
};
|
63
|
+
/** Query parameters for `/custom` aka Data Source endpoints */
|
64
|
+
export type CustomEndpointQueryParams = {
|
65
|
+
/** Internal use for cache busting */
|
66
|
+
cache_key?: string;
|
67
|
+
/** Total quantity of all items in cart */
|
68
|
+
cart_item_count?: string | number;
|
69
|
+
/** Number of unique line items in cart */
|
70
|
+
cart_line_count?: string | number;
|
71
|
+
/** Total cost of items in cart (in minor currency units) */
|
72
|
+
cart_subtotal?: string | number;
|
73
|
+
/** ISO 3166-1 alpha-2 country code */
|
74
|
+
country_code?: string;
|
75
|
+
/** Use "pretty" to make JSON response readable */
|
76
|
+
format?: 'pretty';
|
77
|
+
/** API key for the Rebuy shop */
|
78
|
+
key?: string;
|
79
|
+
/** Limit number of results returned (default: 12) */
|
80
|
+
limit?: string | number;
|
81
|
+
/** Returns products with metafields when "yes" */
|
82
|
+
metafields?: 'yes';
|
83
|
+
/** Customer ID of the Shopify user */
|
84
|
+
shopify_customer_id?: string;
|
85
|
+
/** Comma separated list of Shopify product IDs */
|
86
|
+
shopify_product_ids?: string;
|
87
|
+
/** Comma separated list of Shopify variant IDs */
|
88
|
+
shopify_variant_ids?: string;
|
89
|
+
/** Unix timestamp or RFC time for "Date" based rules */
|
90
|
+
time?: string;
|
91
|
+
/** URL value for URL-based rule evaluation */
|
92
|
+
url?: string;
|
93
|
+
/** Identifier */
|
94
|
+
uuid?: string;
|
95
|
+
/** Returns variants with metafields when "yes" */
|
96
|
+
variant_metafields?: 'yes';
|
97
|
+
};
|
17
98
|
export type RebuyConfig = {
|
18
99
|
shop: RebuyShop | null;
|
19
|
-
smart_cart:
|
100
|
+
smart_cart: SmartCartConfig | null;
|
20
101
|
smart_flows: unknown[];
|
21
102
|
};
|
22
103
|
export type RebuyResponse = {
|
23
104
|
data: RebuyConfig;
|
24
105
|
response: unknown;
|
25
106
|
};
|
26
|
-
export type ContextParameters = {
|
27
|
-
cache_key?: string;
|
28
|
-
cart?: CartContext;
|
29
|
-
cart_count: number;
|
30
|
-
cart_item_count: number;
|
31
|
-
cart_line_count: number;
|
32
|
-
cart_subtotal: number;
|
33
|
-
cart_token?: string;
|
34
|
-
isHydrogenReact: boolean;
|
35
|
-
time: string;
|
36
|
-
url: string;
|
37
|
-
};
|
38
107
|
type RebuyShopIntegrations = {
|
39
108
|
attentive: boolean;
|
40
109
|
judgeme: boolean;
|
@@ -139,6 +208,10 @@ export type RebuyProduct = {
|
|
139
208
|
maxVariantPrice: MoneyV2;
|
140
209
|
minVariantPrice: MoneyV2;
|
141
210
|
};
|
211
|
+
reviews?: {
|
212
|
+
review_count?: number;
|
213
|
+
star_rating?: number;
|
214
|
+
};
|
142
215
|
selected: boolean;
|
143
216
|
selectedOptions: Record<string, string>;
|
144
217
|
selectedSellingPlan: unknown;
|
@@ -235,5 +308,48 @@ export type Address = {
|
|
235
308
|
province_code: string;
|
236
309
|
zip: string;
|
237
310
|
};
|
311
|
+
/** Query parameters for the `/recommended` endpoint */
|
312
|
+
export type RecommendedEndpointQueryParams = {
|
313
|
+
/** Returns products that have any variant prices equal to. Example value: 99.00 */
|
314
|
+
any_variant_price_equal_to?: string;
|
315
|
+
/** Returns products that have any variant prices less than. Example value: 14.00 */
|
316
|
+
any_variant_price_less_than?: string;
|
317
|
+
/** Returns products that have any variant prices less than or equal to. Example value: 14.00 */
|
318
|
+
any_variant_price_less_than_or_equal_to?: string;
|
319
|
+
/** Valid values: "yes". Deletes cached response and generates a new one. */
|
320
|
+
bust_cache?: 'yes';
|
321
|
+
/** Internal use for cache busting. */
|
322
|
+
cache_key?: string;
|
323
|
+
/** Defaults to "default". Toggles the recommended products to use the similar products AI. */
|
324
|
+
context?: string;
|
325
|
+
/** ISO 3166-1 alpha-2 country code (e.g., "US", "CA", "GB") */
|
326
|
+
country_code?: string;
|
327
|
+
/** Defaults to "yes". Excludes products that are out of stock (OOS) from the response. */
|
328
|
+
filter_oos?: 'yes' | 'no';
|
329
|
+
/** Valid values: "pretty". Use "pretty" to make the response easy to read. */
|
330
|
+
format?: 'pretty';
|
331
|
+
/** The API key for the Rebuy shop. */
|
332
|
+
key?: string;
|
333
|
+
/** Defaults to 5. Used to limit the number of returned results. */
|
334
|
+
limit?: string | number;
|
335
|
+
/** Valid values: "yes". Returns product objects enriched with a metafields property. */
|
336
|
+
metafields?: 'yes';
|
337
|
+
/** Shopify Collection ID. If provided, products belonging to this collection will be returned. */
|
338
|
+
shopify_collection_id?: string;
|
339
|
+
/** Comma separated list of Shopify Product IDs to filter from the result set. */
|
340
|
+
shopify_product_ids?: string;
|
341
|
+
/** Comma separated list of Shopify Variant IDs to filter from the result set. */
|
342
|
+
shopify_variant_ids?: string;
|
343
|
+
/** Unset all product variants that don't pass variant price conditions. */
|
344
|
+
unset_variants?: string;
|
345
|
+
/** Identifier (not sure what this is for) */
|
346
|
+
uuid?: string;
|
347
|
+
/** Valid values: "yes". Returns product objects enriched with a variant metafields property. */
|
348
|
+
variant_metafields?: 'yes';
|
349
|
+
/** Returns products that have any variant prices greater than. Example value: 10.00 */
|
350
|
+
variant_price_greater_than?: string;
|
351
|
+
/** Returns products that have any variant prices greater than or equal to. Example value: 14.00 */
|
352
|
+
variant_price_greater_than_or_equal_to?: string;
|
353
|
+
};
|
238
354
|
export {};
|
239
355
|
//# sourceMappingURL=rebuyCustom.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"rebuyCustom.d.ts","sourceRoot":"","sources":["../../src/types/rebuyCustom.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACR,SAAS,EACT,QAAQ,EACR,UAAU,EACV,uBAAuB,EACvB,OAAO,EACP,OAAO,EACP,cAAc,EACd,cAAc,EACjB,MAAM,8CAA8C,CAAC;AACtD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AACxD,OAAO,KAAK,EACR,kBAAkB,EAClB,eAAe,EACf,sBAAsB,EACzB,MAAM,iBAAiB,CAAC;AAEzB,MAAM,M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AC,EAAE,MAAM,GAAG,MAAM,CAAC;IAExB,wFAAwF;IACxF,UAAU,CAAC,EAAE,KAAK,CAAC;IAEnB,kGAAkG;IAClG,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAE/B,iFAAiF;IACjF,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAE7B,iFAAiF;IACjF,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAE7B,2EAA2E;IAC3E,cAAc,CAAC,EAAE,MAAM,CAAC;IAExB,6CAA6C;IAC7C,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd,gGAAgG;IAChG,kBAAkB,CAAC,EAAE,KAAK,CAAC;IAE3B,uFAAuF;IACvF,0BAA0B,CAAC,EAAE,MAAM,CAAC;IAEpC,mGAAmG;IACnG,sCAAsC,CAAC,EAAE,MAAM,CAAC;CACnD,CAAC"}
|
package/dist/types/shopify.d.ts
CHANGED
@@ -1,5 +1,4 @@
|
|
1
1
|
import type { Collection, Image, Maybe, MoneyV2, PageInfo, Product, ProductOption, ProductOptionValue, ProductOptionValueSwatch, ProductVariant, SelectedOption, Seo } from '@shopify/hydrogen-react/storefront-api-types';
|
2
|
-
import type { RebuyProductVariant } from './rebuyCustom';
|
3
2
|
export type HydrogenProduct = Pick<Product, 'id' | 'title' | 'vendor' | 'handle' | 'descriptionHtml' | 'description' | 'encodedVariantExistence' | 'encodedVariantAvailability'> & {
|
4
3
|
adjacentVariants: (Pick<ProductVariant, 'availableForSale' | 'id' | 'sku' | 'title'> & {
|
5
4
|
compareAtPrice?: Maybe<Pick<MoneyV2, 'amount' | 'currencyCode'>>;
|
@@ -57,7 +56,7 @@ export type HydrogenProduct = Pick<Product, 'id' | 'title' | 'vendor' | 'handle'
|
|
57
56
|
selectedVariant?: HydrogenProductVariant;
|
58
57
|
seo: Pick<Seo, 'description' | 'title'>;
|
59
58
|
variants?: {
|
60
|
-
nodes:
|
59
|
+
nodes: HydrogenProductVariant[];
|
61
60
|
};
|
62
61
|
};
|
63
62
|
export type HydrogenProductVariant = Pick<ProductVariant, 'availableForSale' | 'id' | 'sku' | 'title'> & {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"shopify.d.ts","sourceRoot":"","sources":["../../src/types/shopify.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACR,UAAU,EACV,KAAK,EACL,KAAK,EACL,OAAO,EACP,QAAQ,EACR,OAAO,EACP,aAAa,EACb,kBAAkB,EAClB,wBAAwB,EACxB,cAAc,EACd,cAAc,EACd,GAAG,EACN,MAAM,8CAA8C,CAAC;
|
1
|
+
{"version":3,"file":"shopify.d.ts","sourceRoot":"","sources":["../../src/types/shopify.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACR,UAAU,EACV,KAAK,EACL,KAAK,EACL,OAAO,EACP,QAAQ,EACR,OAAO,EACP,aAAa,EACb,kBAAkB,EAClB,wBAAwB,EACxB,cAAc,EACd,cAAc,EACd,GAAG,EACN,MAAM,8CAA8C,CAAC;AAEtD,MAAM,MAAM,eAAe,GAAG,IAAI,CAC9B,OAAO,EACL,IAAI,GACJ,OAAO,GACP,QAAQ,GACR,QAAQ,GACR,iBAAiB,GACjB,aAAa,GACb,yBAAyB,GACzB,4BAA4B,CACjC,GAAG;IACA,gBAAgB,EAAE,CAAC,IAAI,CAAC,cAAc,EAAE,kBAAkB,GAAG,IAAI,GAAG,KAAK,GAAG,OAAO,CAAC,GAAG;QACnF,cAAc,CAAC,EAAE,KAAK,CAAC,IAAI,CAAC,OAAO,EAAE,QAAQ,GAAG,cAAc,CAAC,CAAC,CAAC;QACjE,KAAK,CAAC,EAAE,KAAK,CAAC;YAAE,UAAU,EAAE,OAAO,CAAA;SAAE,GAAG,IAAI,CAAC,KAAK,EAAE,IAAI,GAAG,KAAK,GAAG,SAAS,GAAG,OAAO,GAAG,QAAQ,CAAC,CAAC,CAAC;QACpG,KAAK,EAAE,IAAI,CAAC,OAAO,EAAE,QAAQ,GAAG,cAAc,CAAC,CAAC;QAChD,OAAO,EAA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