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