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/package.json
CHANGED
|
@@ -1,95 +1,95 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "yt-uikit",
|
|
3
|
-
"version": "0.8.18
|
|
4
|
-
"description": "YourToken UI Kit",
|
|
5
|
-
"scripts": {
|
|
6
|
-
"rollup": "tsc && rollup -c",
|
|
7
|
-
"test": "jest",
|
|
8
|
-
"storybook": "storybook dev -p 6006",
|
|
9
|
-
"build-storybook": "storybook build"
|
|
10
|
-
},
|
|
11
|
-
"author": "Pulkit Vyas",
|
|
12
|
-
"license": "ISC",
|
|
13
|
-
"resolutions": {
|
|
14
|
-
"@types/react": "^17.0.0",
|
|
15
|
-
"@types/react-dom": "^17.0.0"
|
|
16
|
-
},
|
|
17
|
-
"peerDependencies": {
|
|
18
|
-
"react": ">= 16.8.0",
|
|
19
|
-
"react-dom": ">= 16.8.0",
|
|
20
|
-
"styled-components": "^6.0.7"
|
|
21
|
-
},
|
|
22
|
-
"devDependencies": {
|
|
23
|
-
"@babel/core": "^7.16.0",
|
|
24
|
-
"@babel/preset-env": "^7.16.4",
|
|
25
|
-
"@babel/preset-react": "^7.16.0",
|
|
26
|
-
"@babel/preset-typescript": "^7.16.0",
|
|
27
|
-
"@mdx-js/react": "^2.1.2",
|
|
28
|
-
"@rollup/plugin-commonjs": "^21.0.1",
|
|
29
|
-
"@rollup/plugin-node-resolve": "^13.0.6",
|
|
30
|
-
"@rollup/plugin-typescript": "^8.3.0",
|
|
31
|
-
"@storybook/addon-actions": "^7.6.16",
|
|
32
|
-
"@storybook/addon-essentials": "^7.6.16",
|
|
33
|
-
"@storybook/addon-links": "^7.6.16",
|
|
34
|
-
"@storybook/addon-postcss": "^2.0.0",
|
|
35
|
-
"@storybook/addon-styling-webpack": "^0.0.6",
|
|
36
|
-
"@storybook/preset-scss": "^1.0.3",
|
|
37
|
-
"@storybook/react": "^7.6.16",
|
|
38
|
-
"@storybook/react-webpack5": "^7.6.16",
|
|
39
|
-
"@testing-library/react": "^13.3.0",
|
|
40
|
-
"@types/canvas-confetti": "^1.9.0",
|
|
41
|
-
"@types/d3-ease": "^3.0.0",
|
|
42
|
-
"@types/jest": "^28.1.6",
|
|
43
|
-
"@types/react": "^18.0.15",
|
|
44
|
-
"@types/react-modal-image": "^2.6.3",
|
|
45
|
-
"autoprefixer": "^10.4.17",
|
|
46
|
-
"babel-jest": "^27.3.1",
|
|
47
|
-
"babel-loader": "^8.2.3",
|
|
48
|
-
"class-variance-authority": "^0.7.0",
|
|
49
|
-
"clsx": "^2.1.0",
|
|
50
|
-
"css-loader": "^6.5.1",
|
|
51
|
-
"currency-symbol-map": "^5.1.0",
|
|
52
|
-
"daisyui": "^4.7.2",
|
|
53
|
-
"html-webpack-plugin": "^5.5.0",
|
|
54
|
-
"identity-obj-proxy": "^3.0.0",
|
|
55
|
-
"jest": "^28.1.3",
|
|
56
|
-
"jest-worker": "^29.7.0",
|
|
57
|
-
"jotai": "^2.6.4",
|
|
58
|
-
"react": "^18.2.0",
|
|
59
|
-
"react-dom": "^18.2.0",
|
|
60
|
-
"react-icons": "5.4.0",
|
|
61
|
-
"rollup": "^2.60.0",
|
|
62
|
-
"rollup-plugin-dts": "^4.0.1",
|
|
63
|
-
"rollup-plugin-postcss": "^4.0.1",
|
|
64
|
-
"rollup-plugin-svg": "^2.0.0",
|
|
65
|
-
"sass": "^1.43.5",
|
|
66
|
-
"sass-loader": "^12.3.0",
|
|
67
|
-
"storybook": "^7.6.16",
|
|
68
|
-
"style-loader": "^3.3.1",
|
|
69
|
-
"tslib": "^2.8.1",
|
|
70
|
-
"typescript": "^4.7.4",
|
|
71
|
-
"webpack": "^5.89.0",
|
|
72
|
-
"webpack-cli": "^5.1.4",
|
|
73
|
-
"webpack-dev-server": "^4.15.1"
|
|
74
|
-
},
|
|
75
|
-
"main": "dist/cjs/index.js",
|
|
76
|
-
"module": "dist/esm/index.js",
|
|
77
|
-
"files": [
|
|
78
|
-
"dist",
|
|
79
|
-
"src/assets/*.svg"
|
|
80
|
-
],
|
|
81
|
-
"types": "dist/index.d.ts",
|
|
82
|
-
"dependencies": {
|
|
83
|
-
"canvas-confetti": "^1.9.3",
|
|
84
|
-
"prettier": "^3.6.2",
|
|
85
|
-
"react-calendar": "^5.0.0",
|
|
86
|
-
"react-international-phone": "^4.3.0",
|
|
87
|
-
"react-modal-image": "^2.6.0",
|
|
88
|
-
"react-otp-input": "^3.1.1",
|
|
89
|
-
"react-scripts": "^5.0.1",
|
|
90
|
-
"react-spinners": "^0.14.1",
|
|
91
|
-
"react-use": "^17.5.0",
|
|
92
|
-
"rollup-plugin-terser": "^7.0.2",
|
|
93
|
-
"web-vitals": "^3.5.1"
|
|
94
|
-
}
|
|
95
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "yt-uikit",
|
|
3
|
+
"version": "0.8.18",
|
|
4
|
+
"description": "YourToken UI Kit",
|
|
5
|
+
"scripts": {
|
|
6
|
+
"rollup": "tsc && rollup -c",
|
|
7
|
+
"test": "jest",
|
|
8
|
+
"storybook": "storybook dev -p 6006",
|
|
9
|
+
"build-storybook": "storybook build"
|
|
10
|
+
},
|
|
11
|
+
"author": "Pulkit Vyas",
|
|
12
|
+
"license": "ISC",
|
|
13
|
+
"resolutions": {
|
|
14
|
+
"@types/react": "^17.0.0",
|
|
15
|
+
"@types/react-dom": "^17.0.0"
|
|
16
|
+
},
|
|
17
|
+
"peerDependencies": {
|
|
18
|
+
"react": ">= 16.8.0",
|
|
19
|
+
"react-dom": ">= 16.8.0",
|
|
20
|
+
"styled-components": "^6.0.7"
|
|
21
|
+
},
|
|
22
|
+
"devDependencies": {
|
|
23
|
+
"@babel/core": "^7.16.0",
|
|
24
|
+
"@babel/preset-env": "^7.16.4",
|
|
25
|
+
"@babel/preset-react": "^7.16.0",
|
|
26
|
+
"@babel/preset-typescript": "^7.16.0",
|
|
27
|
+
"@mdx-js/react": "^2.1.2",
|
|
28
|
+
"@rollup/plugin-commonjs": "^21.0.1",
|
|
29
|
+
"@rollup/plugin-node-resolve": "^13.0.6",
|
|
30
|
+
"@rollup/plugin-typescript": "^8.3.0",
|
|
31
|
+
"@storybook/addon-actions": "^7.6.16",
|
|
32
|
+
"@storybook/addon-essentials": "^7.6.16",
|
|
33
|
+
"@storybook/addon-links": "^7.6.16",
|
|
34
|
+
"@storybook/addon-postcss": "^2.0.0",
|
|
35
|
+
"@storybook/addon-styling-webpack": "^0.0.6",
|
|
36
|
+
"@storybook/preset-scss": "^1.0.3",
|
|
37
|
+
"@storybook/react": "^7.6.16",
|
|
38
|
+
"@storybook/react-webpack5": "^7.6.16",
|
|
39
|
+
"@testing-library/react": "^13.3.0",
|
|
40
|
+
"@types/canvas-confetti": "^1.9.0",
|
|
41
|
+
"@types/d3-ease": "^3.0.0",
|
|
42
|
+
"@types/jest": "^28.1.6",
|
|
43
|
+
"@types/react": "^18.0.15",
|
|
44
|
+
"@types/react-modal-image": "^2.6.3",
|
|
45
|
+
"autoprefixer": "^10.4.17",
|
|
46
|
+
"babel-jest": "^27.3.1",
|
|
47
|
+
"babel-loader": "^8.2.3",
|
|
48
|
+
"class-variance-authority": "^0.7.0",
|
|
49
|
+
"clsx": "^2.1.0",
|
|
50
|
+
"css-loader": "^6.5.1",
|
|
51
|
+
"currency-symbol-map": "^5.1.0",
|
|
52
|
+
"daisyui": "^4.7.2",
|
|
53
|
+
"html-webpack-plugin": "^5.5.0",
|
|
54
|
+
"identity-obj-proxy": "^3.0.0",
|
|
55
|
+
"jest": "^28.1.3",
|
|
56
|
+
"jest-worker": "^29.7.0",
|
|
57
|
+
"jotai": "^2.6.4",
|
|
58
|
+
"react": "^18.2.0",
|
|
59
|
+
"react-dom": "^18.2.0",
|
|
60
|
+
"react-icons": "5.4.0",
|
|
61
|
+
"rollup": "^2.60.0",
|
|
62
|
+
"rollup-plugin-dts": "^4.0.1",
|
|
63
|
+
"rollup-plugin-postcss": "^4.0.1",
|
|
64
|
+
"rollup-plugin-svg": "^2.0.0",
|
|
65
|
+
"sass": "^1.43.5",
|
|
66
|
+
"sass-loader": "^12.3.0",
|
|
67
|
+
"storybook": "^7.6.16",
|
|
68
|
+
"style-loader": "^3.3.1",
|
|
69
|
+
"tslib": "^2.8.1",
|
|
70
|
+
"typescript": "^4.7.4",
|
|
71
|
+
"webpack": "^5.89.0",
|
|
72
|
+
"webpack-cli": "^5.1.4",
|
|
73
|
+
"webpack-dev-server": "^4.15.1"
|
|
74
|
+
},
|
|
75
|
+
"main": "dist/cjs/index.js",
|
|
76
|
+
"module": "dist/esm/index.js",
|
|
77
|
+
"files": [
|
|
78
|
+
"dist",
|
|
79
|
+
"src/assets/*.svg"
|
|
80
|
+
],
|
|
81
|
+
"types": "dist/index.d.ts",
|
|
82
|
+
"dependencies": {
|
|
83
|
+
"canvas-confetti": "^1.9.3",
|
|
84
|
+
"prettier": "^3.6.2",
|
|
85
|
+
"react-calendar": "^5.0.0",
|
|
86
|
+
"react-international-phone": "^4.3.0",
|
|
87
|
+
"react-modal-image": "^2.6.0",
|
|
88
|
+
"react-otp-input": "^3.1.1",
|
|
89
|
+
"react-scripts": "^5.0.1",
|
|
90
|
+
"react-spinners": "^0.14.1",
|
|
91
|
+
"react-use": "^17.5.0",
|
|
92
|
+
"rollup-plugin-terser": "^7.0.2",
|
|
93
|
+
"web-vitals": "^3.5.1"
|
|
94
|
+
}
|
|
95
|
+
}
|
package/src/assets/Frame.svg
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<svg width="23" height="14" viewBox="0 0 23 14" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
-
<path d="M7.91479 1.46798C7.91479 1.27973 7.98986 1.09919 8.12349 0.966074C8.25711 0.832961 8.43835 0.758179 8.62732 0.758179H10.4332H21.4528C21.6418 0.758179 21.8231 0.832961 21.9567 0.966074C22.0903 1.09919 22.1654 1.27973 22.1654 1.46798V5.37188C21.6929 5.37188 21.2399 5.55884 20.9058 5.89162C20.5717 6.2244 20.384 6.67575 20.384 7.14638C20.384 7.61701 20.5717 8.06836 20.9058 8.40114C21.2399 8.73392 21.6929 8.92088 22.1654 8.92088V12.8248C22.1654 13.013 22.0903 13.1936 21.9567 13.3267C21.8231 13.4598 21.6418 13.5346 21.4528 13.5346H10.4946H8.62732C8.43835 13.5346 8.25711 13.4598 8.12349 13.3267C7.98986 13.1936 7.91479 13.013 7.91479 12.8248V1.46798ZM12.2505 12.115C12.324 11.907 12.4604 11.7269 12.641 11.5995C12.8216 11.472 13.0375 11.4036 13.2588 11.4036C13.4801 11.4036 13.6959 11.472 13.8765 11.5995C14.0571 11.7269 14.1935 11.907 14.267 12.115H20.7403V10.0083C20.2051 9.74404 19.7546 9.33608 19.4396 8.83041C19.1246 8.32474 18.9577 7.74148 18.9577 7.14638C18.9577 6.55128 19.1246 5.96802 19.4396 5.46235C19.7546 4.95668 20.2051 4.54872 20.7403 4.28447V2.17778H14.267C14.1935 2.38575 14.0571 2.56588 13.8765 2.6933C13.6959 2.82073 13.4801 2.88916 13.2588 2.88916C13.0375 2.88916 12.8216 2.82073 12.641 2.6933C12.4604 2.56588 12.324 2.38575 12.2505 2.17778H10.4946H10.4332H9.33985V12.115H12.2505ZM13.2588 6.43658C12.9753 6.43658 12.7034 6.32441 12.503 6.12474C12.3026 5.92507 12.19 5.65425 12.19 5.37188C12.19 5.0895 12.3026 4.81869 12.503 4.61902C12.7034 4.41935 12.9753 4.30718 13.2588 4.30718C13.5422 4.30718 13.8141 4.41935 14.0145 4.61902C14.215 4.81869 14.3276 5.0895 14.3276 5.37188C14.3276 5.65425 14.215 5.92507 14.0145 6.12474C13.8141 6.32441 13.5422 6.43658 13.2588 6.43658ZM13.2588 9.98558C12.9753 9.98558 12.7034 9.87341 12.503 9.67374C12.3026 9.47407 12.19 9.20326 12.19 8.92088C12.19 8.6385 12.3026 8.36769 12.503 8.16802C12.7034 7.96835 12.9753 7.85618 13.2588 7.85618C13.5422 7.85618 13.8141 7.96835 14.0145 8.16802C14.215 8.36769 14.3276 8.6385 14.3276 8.92088C14.3276 9.20326 14.215 9.47407 14.0145 9.67374C13.8141 9.87341 13.5422 9.98558 13.2588 9.98558Z" fill="#4D4D4D"/>
|
|
3
|
-
<path d="M0.567471 0.843839C0.740262 0.671048 0.974617 0.573975 1.21898 0.573975H7.30005V2.41673H6.74722V4.25948H7.30005V6.10223H6.74722V7.94498H7.30005V9.78773H6.74722V11.6305H7.30005V13.4732H1.21898C0.974617 13.4732 0.740262 13.3762 0.567471 13.2034C0.39468 13.0306 0.297607 12.7962 0.297607 12.5519V8.86635H1.21898C1.48724 8.86638 1.75227 8.80788 1.99558 8.69491C2.23889 8.58195 2.45462 8.41725 2.62771 8.21231C2.8008 8.00738 2.92709 7.76713 2.99775 7.50835C3.06842 7.24957 3.08176 6.97849 3.03685 6.71402C2.88943 5.80831 2.03808 5.18085 1.12039 5.18085H0.297607V1.49535C0.297607 1.25099 0.39468 1.01663 0.567471 0.843839Z" fill="#FF4E4E"/>
|
|
4
|
-
</svg>
|
|
1
|
+
<svg width="23" height="14" viewBox="0 0 23 14" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path d="M7.91479 1.46798C7.91479 1.27973 7.98986 1.09919 8.12349 0.966074C8.25711 0.832961 8.43835 0.758179 8.62732 0.758179H10.4332H21.4528C21.6418 0.758179 21.8231 0.832961 21.9567 0.966074C22.0903 1.09919 22.1654 1.27973 22.1654 1.46798V5.37188C21.6929 5.37188 21.2399 5.55884 20.9058 5.89162C20.5717 6.2244 20.384 6.67575 20.384 7.14638C20.384 7.61701 20.5717 8.06836 20.9058 8.40114C21.2399 8.73392 21.6929 8.92088 22.1654 8.92088V12.8248C22.1654 13.013 22.0903 13.1936 21.9567 13.3267C21.8231 13.4598 21.6418 13.5346 21.4528 13.5346H10.4946H8.62732C8.43835 13.5346 8.25711 13.4598 8.12349 13.3267C7.98986 13.1936 7.91479 13.013 7.91479 12.8248V1.46798ZM12.2505 12.115C12.324 11.907 12.4604 11.7269 12.641 11.5995C12.8216 11.472 13.0375 11.4036 13.2588 11.4036C13.4801 11.4036 13.6959 11.472 13.8765 11.5995C14.0571 11.7269 14.1935 11.907 14.267 12.115H20.7403V10.0083C20.2051 9.74404 19.7546 9.33608 19.4396 8.83041C19.1246 8.32474 18.9577 7.74148 18.9577 7.14638C18.9577 6.55128 19.1246 5.96802 19.4396 5.46235C19.7546 4.95668 20.2051 4.54872 20.7403 4.28447V2.17778H14.267C14.1935 2.38575 14.0571 2.56588 13.8765 2.6933C13.6959 2.82073 13.4801 2.88916 13.2588 2.88916C13.0375 2.88916 12.8216 2.82073 12.641 2.6933C12.4604 2.56588 12.324 2.38575 12.2505 2.17778H10.4946H10.4332H9.33985V12.115H12.2505ZM13.2588 6.43658C12.9753 6.43658 12.7034 6.32441 12.503 6.12474C12.3026 5.92507 12.19 5.65425 12.19 5.37188C12.19 5.0895 12.3026 4.81869 12.503 4.61902C12.7034 4.41935 12.9753 4.30718 13.2588 4.30718C13.5422 4.30718 13.8141 4.41935 14.0145 4.61902C14.215 4.81869 14.3276 5.0895 14.3276 5.37188C14.3276 5.65425 14.215 5.92507 14.0145 6.12474C13.8141 6.32441 13.5422 6.43658 13.2588 6.43658ZM13.2588 9.98558C12.9753 9.98558 12.7034 9.87341 12.503 9.67374C12.3026 9.47407 12.19 9.20326 12.19 8.92088C12.19 8.6385 12.3026 8.36769 12.503 8.16802C12.7034 7.96835 12.9753 7.85618 13.2588 7.85618C13.5422 7.85618 13.8141 7.96835 14.0145 8.16802C14.215 8.36769 14.3276 8.6385 14.3276 8.92088C14.3276 9.20326 14.215 9.47407 14.0145 9.67374C13.8141 9.87341 13.5422 9.98558 13.2588 9.98558Z" fill="#4D4D4D"/>
|
|
3
|
+
<path d="M0.567471 0.843839C0.740262 0.671048 0.974617 0.573975 1.21898 0.573975H7.30005V2.41673H6.74722V4.25948H7.30005V6.10223H6.74722V7.94498H7.30005V9.78773H6.74722V11.6305H7.30005V13.4732H1.21898C0.974617 13.4732 0.740262 13.3762 0.567471 13.2034C0.39468 13.0306 0.297607 12.7962 0.297607 12.5519V8.86635H1.21898C1.48724 8.86638 1.75227 8.80788 1.99558 8.69491C2.23889 8.58195 2.45462 8.41725 2.62771 8.21231C2.8008 8.00738 2.92709 7.76713 2.99775 7.50835C3.06842 7.24957 3.08176 6.97849 3.03685 6.71402C2.88943 5.80831 2.03808 5.18085 1.12039 5.18085H0.297607V1.49535C0.297607 1.25099 0.39468 1.01663 0.567471 0.843839Z" fill="#FF4E4E"/>
|
|
4
|
+
</svg>
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<svg width="35" height="35" viewBox="0 0 35 35" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
-
<circle cx="17.2797" cy="18.7208" r="15.5219" fill="#3A3A3A" stroke="#767676" stroke-width="1.51433"/>
|
|
3
|
-
<path d="M15.5903 25.9172V12.1037H19.0827V25.9172H15.5903ZM10.4297 20.7566V17.2642H24.2433V20.7566H10.4297Z" fill="white"/>
|
|
4
|
-
</svg>
|
|
1
|
+
<svg width="35" height="35" viewBox="0 0 35 35" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<circle cx="17.2797" cy="18.7208" r="15.5219" fill="#3A3A3A" stroke="#767676" stroke-width="1.51433"/>
|
|
3
|
+
<path d="M15.5903 25.9172V12.1037H19.0827V25.9172H15.5903ZM10.4297 20.7566V17.2642H24.2433V20.7566H10.4297Z" fill="white"/>
|
|
4
|
+
</svg>
|
package/src/assets/copy-icon.svg
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
-
<path d="M8 7V15C8 16.1046 8.89543 17 10 17H16M8 7V5C8 3.89543 8.89543 3 10 3H14.5858C14.851 3 15.1054 3.10536 15.2929 3.29289L19.7071 7.70711C19.8946 7.89464 20 8.149 20 8.41421V15C20 16.1046 19.1046 17 18 17H16M8 7H6C4.89543 7 4 7.89543 4 9V19C4 20.1046 4.89543 21 6 21H14C15.1046 21 16 20.1046 16 19V17" stroke="#21272A" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
|
|
3
|
-
</svg>
|
|
1
|
+
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path d="M8 7V15C8 16.1046 8.89543 17 10 17H16M8 7V5C8 3.89543 8.89543 3 10 3H14.5858C14.851 3 15.1054 3.10536 15.2929 3.29289L19.7071 7.70711C19.8946 7.89464 20 8.149 20 8.41421V15C20 16.1046 19.1046 17 18 17H16M8 7H6C4.89543 7 4 7.89543 4 9V19C4 20.1046 4.89543 21 6 21H14C15.1046 21 16 20.1046 16 19V17" stroke="#21272A" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
|
|
3
|
+
</svg>
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<svg width="34" height="32" viewBox="0 0 34 32" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
-
<path d="M14.8334 21.4167H21.3334H23.5C24.6967 21.4167 25.6667 20.4466 25.6667 19.25V12.1154C25.6667 11.8281 25.5526 11.5525 25.3494 11.3494L20.5673 6.5673C20.3642 6.36414 20.0886 6.25 19.8013 6.25H14.8334C13.6368 6.25 12.6667 7.22005 12.6667 8.41667V10.5833V19.25C12.6667 20.4466 13.6368 21.4167 14.8334 21.4167Z" fill="#21272A"/>
|
|
3
|
-
<path d="M12.6667 10.5833V19.25C12.6667 20.4466 13.6368 21.4167 14.8334 21.4167H21.3334M12.6667 10.5833V8.41667C12.6667 7.22005 13.6368 6.25 14.8334 6.25H19.8013C20.0886 6.25 20.3642 6.36414 20.5673 6.5673L25.3494 11.3494C25.5526 11.5525 25.6667 11.8281 25.6667 12.1154V19.25C25.6667 20.4466 24.6967 21.4167 23.5 21.4167H21.3334M12.6667 10.5833H10.5C9.30342 10.5833 8.33337 11.5534 8.33337 12.75V23.5833C8.33337 24.78 9.30342 25.75 10.5 25.75H19.1667C20.3633 25.75 21.3334 24.78 21.3334 23.5833V21.4167" stroke="#21272A" stroke-width="2.16667" stroke-linecap="round" stroke-linejoin="round"/>
|
|
4
|
-
</svg>
|
|
1
|
+
<svg width="34" height="32" viewBox="0 0 34 32" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path d="M14.8334 21.4167H21.3334H23.5C24.6967 21.4167 25.6667 20.4466 25.6667 19.25V12.1154C25.6667 11.8281 25.5526 11.5525 25.3494 11.3494L20.5673 6.5673C20.3642 6.36414 20.0886 6.25 19.8013 6.25H14.8334C13.6368 6.25 12.6667 7.22005 12.6667 8.41667V10.5833V19.25C12.6667 20.4466 13.6368 21.4167 14.8334 21.4167Z" fill="#21272A"/>
|
|
3
|
+
<path d="M12.6667 10.5833V19.25C12.6667 20.4466 13.6368 21.4167 14.8334 21.4167H21.3334M12.6667 10.5833V8.41667C12.6667 7.22005 13.6368 6.25 14.8334 6.25H19.8013C20.0886 6.25 20.3642 6.36414 20.5673 6.5673L25.3494 11.3494C25.5526 11.5525 25.6667 11.8281 25.6667 12.1154V19.25C25.6667 20.4466 24.6967 21.4167 23.5 21.4167H21.3334M12.6667 10.5833H10.5C9.30342 10.5833 8.33337 11.5534 8.33337 12.75V23.5833C8.33337 24.78 9.30342 25.75 10.5 25.75H19.1667C20.3633 25.75 21.3334 24.78 21.3334 23.5833V21.4167" stroke="#21272A" stroke-width="2.16667" stroke-linecap="round" stroke-linejoin="round"/>
|
|
4
|
+
</svg>
|
package/src/assets/coupon.svg
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<svg width="38" height="38" viewBox="0 0 38 38" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
-
<path d="M12.6079 10.2342V16.5724L22.2823 26.2468L28.6204 19.9087L18.946 10.2342H12.6079ZM11.2258 10.2342C11.2258 9.86769 11.3714 9.51616 11.6306 9.25697C11.8898 8.99778 12.2413 8.85217 12.6079 8.85217H18.946C19.3125 8.85225 19.664 8.99791 19.9231 9.25712L29.5976 18.9316C29.8567 19.1907 30.0022 19.5422 30.0022 19.9087C30.0022 20.2751 29.8567 20.6266 29.5976 20.8858L23.2594 27.2239C23.0003 27.483 22.6488 27.6286 22.2823 27.6286C21.9158 27.6286 21.5644 27.483 21.3052 27.2239L11.6308 17.5495C11.3716 17.2904 11.2259 16.9389 11.2258 16.5724V10.2342Z" fill="#4D4D4D"/>
|
|
3
|
-
<path d="M16.0621 14.3804C15.8789 14.3804 15.7031 14.3076 15.5735 14.178C15.4439 14.0484 15.3711 13.8727 15.3711 13.6894C15.3711 13.5061 15.4439 13.3304 15.5735 13.2008C15.7031 13.0712 15.8789 12.9984 16.0621 12.9984C16.2454 12.9984 16.4212 13.0712 16.5508 13.2008C16.6804 13.3304 16.7532 13.5061 16.7532 13.6894C16.7532 13.8727 16.6804 14.0484 16.5508 14.178C16.4212 14.3076 16.2454 14.3804 16.0621 14.3804ZM16.0621 15.7625C16.612 15.7625 17.1393 15.5441 17.528 15.1553C17.9168 14.7665 18.1352 14.2392 18.1352 13.6894C18.1352 13.1396 17.9168 12.6123 17.528 12.2235C17.1393 11.8347 16.612 11.6163 16.0621 11.6163C15.5123 11.6163 14.985 11.8347 14.5963 12.2235C14.2075 12.6123 13.9891 13.1396 13.9891 13.6894C13.9891 14.2392 14.2075 14.7665 14.5963 15.1553C14.985 15.5441 15.5123 15.7625 16.0621 15.7625ZM9.84288 17.2634C9.84295 17.6299 9.98861 17.9814 10.2478 18.2405L20.5538 28.5466L20.4944 28.606C20.2352 28.8651 19.8838 29.0107 19.5173 29.0107C19.1508 29.0107 18.7994 28.8651 18.5402 28.606L8.86576 18.9316C8.60655 18.6724 8.46089 18.321 8.46082 17.9545V11.6163C8.46082 11.2498 8.60642 10.8982 8.86561 10.639C9.1248 10.3799 9.47633 10.2343 9.84288 10.2343V17.2634Z" fill="#FF4E4E"/>
|
|
4
|
-
</svg>
|
|
1
|
+
<svg width="38" height="38" viewBox="0 0 38 38" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path d="M12.6079 10.2342V16.5724L22.2823 26.2468L28.6204 19.9087L18.946 10.2342H12.6079ZM11.2258 10.2342C11.2258 9.86769 11.3714 9.51616 11.6306 9.25697C11.8898 8.99778 12.2413 8.85217 12.6079 8.85217H18.946C19.3125 8.85225 19.664 8.99791 19.9231 9.25712L29.5976 18.9316C29.8567 19.1907 30.0022 19.5422 30.0022 19.9087C30.0022 20.2751 29.8567 20.6266 29.5976 20.8858L23.2594 27.2239C23.0003 27.483 22.6488 27.6286 22.2823 27.6286C21.9158 27.6286 21.5644 27.483 21.3052 27.2239L11.6308 17.5495C11.3716 17.2904 11.2259 16.9389 11.2258 16.5724V10.2342Z" fill="#4D4D4D"/>
|
|
3
|
+
<path d="M16.0621 14.3804C15.8789 14.3804 15.7031 14.3076 15.5735 14.178C15.4439 14.0484 15.3711 13.8727 15.3711 13.6894C15.3711 13.5061 15.4439 13.3304 15.5735 13.2008C15.7031 13.0712 15.8789 12.9984 16.0621 12.9984C16.2454 12.9984 16.4212 13.0712 16.5508 13.2008C16.6804 13.3304 16.7532 13.5061 16.7532 13.6894C16.7532 13.8727 16.6804 14.0484 16.5508 14.178C16.4212 14.3076 16.2454 14.3804 16.0621 14.3804ZM16.0621 15.7625C16.612 15.7625 17.1393 15.5441 17.528 15.1553C17.9168 14.7665 18.1352 14.2392 18.1352 13.6894C18.1352 13.1396 17.9168 12.6123 17.528 12.2235C17.1393 11.8347 16.612 11.6163 16.0621 11.6163C15.5123 11.6163 14.985 11.8347 14.5963 12.2235C14.2075 12.6123 13.9891 13.1396 13.9891 13.6894C13.9891 14.2392 14.2075 14.7665 14.5963 15.1553C14.985 15.5441 15.5123 15.7625 16.0621 15.7625ZM9.84288 17.2634C9.84295 17.6299 9.98861 17.9814 10.2478 18.2405L20.5538 28.5466L20.4944 28.606C20.2352 28.8651 19.8838 29.0107 19.5173 29.0107C19.1508 29.0107 18.7994 28.8651 18.5402 28.606L8.86576 18.9316C8.60655 18.6724 8.46089 18.321 8.46082 17.9545V11.6163C8.46082 11.2498 8.60642 10.8982 8.86561 10.639C9.1248 10.3799 9.47633 10.2343 9.84288 10.2343V17.2634Z" fill="#FF4E4E"/>
|
|
4
|
+
</svg>
|
package/src/assets/delivery.svg
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
<svg width="29" height="23" viewBox="0 0 29 23" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
-
<path d="M3.58718 11.5427H14.229V12.9247H3.58718V11.5427Z" fill="#FF4E4E"/>
|
|
3
|
-
<path d="M1.81354 8.08752H10.6818V9.46959H1.81354V8.08752Z" fill="#FF4E4E"/>
|
|
4
|
-
<path d="M26.5737 11.9615L23.9133 7.12431C23.845 6.99997 23.7314 6.89401 23.5865 6.81956C23.4416 6.74511 23.2718 6.70547 23.0983 6.70554H20.4378V5.32348C20.4378 5.1402 20.3444 4.96444 20.1781 4.83484C20.0118 4.70525 19.7862 4.63245 19.551 4.63245H5.36184V6.01451H18.6642V14.6911C18.2601 14.8739 17.9064 15.1173 17.6236 15.4072C17.3408 15.697 17.1345 16.0277 17.0165 16.38H11.4437C11.2278 15.7286 10.7145 15.1609 9.99991 14.7833C9.28533 14.4057 8.41855 14.2441 7.56205 14.3289C6.70554 14.4137 5.91811 14.739 5.34737 15.2438C4.77662 15.7486 4.46173 16.3982 4.46173 17.071C4.46173 17.7438 4.77662 18.3935 5.34737 18.8983C5.91811 19.4031 6.70554 19.7283 7.56205 19.8131C8.41855 19.8979 9.28533 19.7363 9.99991 19.3587C10.7145 18.9812 11.2278 18.4134 11.4437 17.762H17.0165C17.2094 18.3551 17.6506 18.8811 18.2702 19.2569C18.8899 19.6326 19.6526 19.8366 20.4378 19.8366C21.223 19.8366 21.9857 19.6326 22.6054 19.2569C23.2251 18.8811 23.6663 18.3551 23.8592 17.762H25.7587C25.9939 17.762 26.2195 17.6892 26.3858 17.5596C26.5521 17.43 26.6456 17.2543 26.6456 17.071V12.2338C26.6456 12.1402 26.6212 12.0475 26.5737 11.9615ZM8.02231 18.4531C7.67151 18.4531 7.3286 18.372 7.03692 18.2202C6.74525 18.0683 6.51792 17.8524 6.38367 17.5999C6.24943 17.3474 6.21431 17.0695 6.28274 16.8014C6.35118 16.5333 6.5201 16.287 6.76815 16.0937C7.0162 15.9005 7.33223 15.7688 7.67629 15.7155C8.02034 15.6622 8.37696 15.6895 8.70105 15.7942C9.02514 15.8988 9.30215 16.0759 9.49704 16.3032C9.69193 16.5305 9.79595 16.7977 9.79595 17.071C9.79548 17.4374 9.60846 17.7888 9.27594 18.0479C8.94342 18.307 8.49256 18.4527 8.02231 18.4531ZM20.4378 8.0876H22.513L24.4143 11.5428H20.4378V8.0876ZM20.4378 18.4531C20.087 18.4531 19.7441 18.372 19.4524 18.2202C19.1608 18.0683 18.9334 17.8524 18.7992 17.5999C18.6649 17.3474 18.6298 17.0695 18.6983 16.8014C18.7667 16.5333 18.9356 16.287 19.1837 16.0937C19.4317 15.9005 19.7477 15.7688 20.0918 15.7155C20.4358 15.6622 20.7925 15.6895 21.1166 15.7942C21.4406 15.8988 21.7177 16.0759 21.9125 16.3032C22.1074 16.5305 22.2115 16.7977 22.2115 17.071C22.211 17.4374 22.024 17.7888 21.6915 18.0479C21.3589 18.307 20.9081 18.4527 20.4378 18.4531ZM24.8719 16.38H23.8592C23.6638 15.7881 23.2219 15.2634 22.6028 14.8882C21.9836 14.513 21.2222 14.3086 20.4378 14.3069V12.9248H24.8719V16.38Z" fill="#4D4D4D"/>
|
|
5
|
-
</svg>
|
|
1
|
+
<svg width="29" height="23" viewBox="0 0 29 23" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path d="M3.58718 11.5427H14.229V12.9247H3.58718V11.5427Z" fill="#FF4E4E"/>
|
|
3
|
+
<path d="M1.81354 8.08752H10.6818V9.46959H1.81354V8.08752Z" fill="#FF4E4E"/>
|
|
4
|
+
<path d="M26.5737 11.9615L23.9133 7.12431C23.845 6.99997 23.7314 6.89401 23.5865 6.81956C23.4416 6.74511 23.2718 6.70547 23.0983 6.70554H20.4378V5.32348C20.4378 5.1402 20.3444 4.96444 20.1781 4.83484C20.0118 4.70525 19.7862 4.63245 19.551 4.63245H5.36184V6.01451H18.6642V14.6911C18.2601 14.8739 17.9064 15.1173 17.6236 15.4072C17.3408 15.697 17.1345 16.0277 17.0165 16.38H11.4437C11.2278 15.7286 10.7145 15.1609 9.99991 14.7833C9.28533 14.4057 8.41855 14.2441 7.56205 14.3289C6.70554 14.4137 5.91811 14.739 5.34737 15.2438C4.77662 15.7486 4.46173 16.3982 4.46173 17.071C4.46173 17.7438 4.77662 18.3935 5.34737 18.8983C5.91811 19.4031 6.70554 19.7283 7.56205 19.8131C8.41855 19.8979 9.28533 19.7363 9.99991 19.3587C10.7145 18.9812 11.2278 18.4134 11.4437 17.762H17.0165C17.2094 18.3551 17.6506 18.8811 18.2702 19.2569C18.8899 19.6326 19.6526 19.8366 20.4378 19.8366C21.223 19.8366 21.9857 19.6326 22.6054 19.2569C23.2251 18.8811 23.6663 18.3551 23.8592 17.762H25.7587C25.9939 17.762 26.2195 17.6892 26.3858 17.5596C26.5521 17.43 26.6456 17.2543 26.6456 17.071V12.2338C26.6456 12.1402 26.6212 12.0475 26.5737 11.9615ZM8.02231 18.4531C7.67151 18.4531 7.3286 18.372 7.03692 18.2202C6.74525 18.0683 6.51792 17.8524 6.38367 17.5999C6.24943 17.3474 6.21431 17.0695 6.28274 16.8014C6.35118 16.5333 6.5201 16.287 6.76815 16.0937C7.0162 15.9005 7.33223 15.7688 7.67629 15.7155C8.02034 15.6622 8.37696 15.6895 8.70105 15.7942C9.02514 15.8988 9.30215 16.0759 9.49704 16.3032C9.69193 16.5305 9.79595 16.7977 9.79595 17.071C9.79548 17.4374 9.60846 17.7888 9.27594 18.0479C8.94342 18.307 8.49256 18.4527 8.02231 18.4531ZM20.4378 8.0876H22.513L24.4143 11.5428H20.4378V8.0876ZM20.4378 18.4531C20.087 18.4531 19.7441 18.372 19.4524 18.2202C19.1608 18.0683 18.9334 17.8524 18.7992 17.5999C18.6649 17.3474 18.6298 17.0695 18.6983 16.8014C18.7667 16.5333 18.9356 16.287 19.1837 16.0937C19.4317 15.9005 19.7477 15.7688 20.0918 15.7155C20.4358 15.6622 20.7925 15.6895 21.1166 15.7942C21.4406 15.8988 21.7177 16.0759 21.9125 16.3032C22.1074 16.5305 22.2115 16.7977 22.2115 17.071C22.211 17.4374 22.024 17.7888 21.6915 18.0479C21.3589 18.307 20.9081 18.4527 20.4378 18.4531ZM24.8719 16.38H23.8592C23.6638 15.7881 23.2219 15.2634 22.6028 14.8882C21.9836 14.513 21.2222 14.3086 20.4378 14.3069V12.9248H24.8719V16.38Z" fill="#4D4D4D"/>
|
|
5
|
+
</svg>
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import React, { Component, ReactNode } from 'react';
|
|
2
|
-
interface FreebieClaimErrorBoundaryProps {
|
|
3
|
-
children: ReactNode;
|
|
4
|
-
fallback?: ReactNode;
|
|
5
|
-
showErrorUI?: boolean;
|
|
6
|
-
}
|
|
7
|
-
interface FreebieClaimErrorBoundaryState {
|
|
8
|
-
hasError: boolean;
|
|
9
|
-
error: Error | null;
|
|
10
|
-
errorInfo: React.ErrorInfo | null;
|
|
11
|
-
}
|
|
12
|
-
/**
|
|
13
|
-
* Error Boundary for Freebie Claim components
|
|
14
|
-
* Catches React rendering errors and logs them with detailed context
|
|
15
|
-
* Prevents entire cart from crashing when freebie component has errors
|
|
16
|
-
*/
|
|
17
|
-
declare class FreebieClaimErrorBoundary extends Component<FreebieClaimErrorBoundaryProps, FreebieClaimErrorBoundaryState> {
|
|
18
|
-
constructor(props: FreebieClaimErrorBoundaryProps);
|
|
19
|
-
static getDerivedStateFromError(error: Error): Partial<FreebieClaimErrorBoundaryState>;
|
|
20
|
-
componentDidCatch(error: Error, errorInfo: React.ErrorInfo): void;
|
|
21
|
-
render(): ReactNode;
|
|
22
|
-
}
|
|
23
|
-
export default FreebieClaimErrorBoundary;
|
|
24
|
-
/**
|
|
25
|
-
* HOC to wrap a component with FreebieClaimErrorBoundary
|
|
26
|
-
* Usage: const SafeComponent = withFreebieErrorBoundary(MyComponent);
|
|
27
|
-
*/
|
|
28
|
-
export declare function withFreebieErrorBoundary<P extends object>(Component: React.ComponentType<P>, showErrorUI?: boolean): React.FC<P>;
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
export interface SpinnerProps {
|
|
3
|
-
color?: string;
|
|
4
|
-
size?: number;
|
|
5
|
-
loading?: boolean;
|
|
6
|
-
}
|
|
7
|
-
/**
|
|
8
|
-
* A lightweight CSS-only spinner component to replace ClipLoader from react-spinners.
|
|
9
|
-
* Uses CSS animations for the spinning effect.
|
|
10
|
-
*/
|
|
11
|
-
export declare const Spinner: React.FC<SpinnerProps>;
|
|
12
|
-
export interface ScaleLoaderProps {
|
|
13
|
-
color?: string;
|
|
14
|
-
loading?: boolean;
|
|
15
|
-
height?: number;
|
|
16
|
-
width?: number;
|
|
17
|
-
}
|
|
18
|
-
/**
|
|
19
|
-
* A lightweight CSS-only scale loader component to replace ScaleLoader from react-spinners.
|
|
20
|
-
* Displays animated bars that pulse in sequence.
|
|
21
|
-
*/
|
|
22
|
-
export declare const ScaleLoader: React.FC<ScaleLoaderProps>;
|
|
23
|
-
export default Spinner;
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import React, { Component, ReactNode } from 'react';
|
|
2
|
-
interface FreebieClaimErrorBoundaryProps {
|
|
3
|
-
children: ReactNode;
|
|
4
|
-
fallback?: ReactNode;
|
|
5
|
-
showErrorUI?: boolean;
|
|
6
|
-
}
|
|
7
|
-
interface FreebieClaimErrorBoundaryState {
|
|
8
|
-
hasError: boolean;
|
|
9
|
-
error: Error | null;
|
|
10
|
-
errorInfo: React.ErrorInfo | null;
|
|
11
|
-
}
|
|
12
|
-
/**
|
|
13
|
-
* Error Boundary for Freebie Claim components
|
|
14
|
-
* Catches React rendering errors and logs them with detailed context
|
|
15
|
-
* Prevents entire cart from crashing when freebie component has errors
|
|
16
|
-
*/
|
|
17
|
-
declare class FreebieClaimErrorBoundary extends Component<FreebieClaimErrorBoundaryProps, FreebieClaimErrorBoundaryState> {
|
|
18
|
-
constructor(props: FreebieClaimErrorBoundaryProps);
|
|
19
|
-
static getDerivedStateFromError(error: Error): Partial<FreebieClaimErrorBoundaryState>;
|
|
20
|
-
componentDidCatch(error: Error, errorInfo: React.ErrorInfo): void;
|
|
21
|
-
render(): ReactNode;
|
|
22
|
-
}
|
|
23
|
-
export default FreebieClaimErrorBoundary;
|
|
24
|
-
/**
|
|
25
|
-
* HOC to wrap a component with FreebieClaimErrorBoundary
|
|
26
|
-
* Usage: const SafeComponent = withFreebieErrorBoundary(MyComponent);
|
|
27
|
-
*/
|
|
28
|
-
export declare function withFreebieErrorBoundary<P extends object>(Component: React.ComponentType<P>, showErrorUI?: boolean): React.FC<P>;
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
export interface SpinnerProps {
|
|
3
|
-
color?: string;
|
|
4
|
-
size?: number;
|
|
5
|
-
loading?: boolean;
|
|
6
|
-
}
|
|
7
|
-
/**
|
|
8
|
-
* A lightweight CSS-only spinner component to replace ClipLoader from react-spinners.
|
|
9
|
-
* Uses CSS animations for the spinning effect.
|
|
10
|
-
*/
|
|
11
|
-
export declare const Spinner: React.FC<SpinnerProps>;
|
|
12
|
-
export interface ScaleLoaderProps {
|
|
13
|
-
color?: string;
|
|
14
|
-
loading?: boolean;
|
|
15
|
-
height?: number;
|
|
16
|
-
width?: number;
|
|
17
|
-
}
|
|
18
|
-
/**
|
|
19
|
-
* A lightweight CSS-only scale loader component to replace ScaleLoader from react-spinners.
|
|
20
|
-
* Displays animated bars that pulse in sequence.
|
|
21
|
-
*/
|
|
22
|
-
export declare const ScaleLoader: React.FC<ScaleLoaderProps>;
|
|
23
|
-
export default Spinner;
|
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Centralized error logging utility for Freebie Claim components
|
|
3
|
-
* Provides detailed error logging with context to help debug issues across stores
|
|
4
|
-
*/
|
|
5
|
-
export declare enum FreebieErrorSeverity {
|
|
6
|
-
WARNING = "WARNING",
|
|
7
|
-
ERROR = "ERROR",
|
|
8
|
-
CRITICAL = "CRITICAL"
|
|
9
|
-
}
|
|
10
|
-
export interface FreebieErrorContext {
|
|
11
|
-
component?: string;
|
|
12
|
-
productId?: string;
|
|
13
|
-
productTitle?: string;
|
|
14
|
-
variantId?: string;
|
|
15
|
-
checkpointId?: number;
|
|
16
|
-
storeData?: any;
|
|
17
|
-
additionalData?: any;
|
|
18
|
-
}
|
|
19
|
-
export interface FreebieError {
|
|
20
|
-
severity: FreebieErrorSeverity;
|
|
21
|
-
message: string;
|
|
22
|
-
context: FreebieErrorContext;
|
|
23
|
-
timestamp: string;
|
|
24
|
-
}
|
|
25
|
-
declare class FreebieErrorLogger {
|
|
26
|
-
private errors;
|
|
27
|
-
private maxErrors;
|
|
28
|
-
/**
|
|
29
|
-
* Log an error with context
|
|
30
|
-
*/
|
|
31
|
-
log(severity: FreebieErrorSeverity, message: string, context?: FreebieErrorContext): void;
|
|
32
|
-
/**
|
|
33
|
-
* Log a warning
|
|
34
|
-
*/
|
|
35
|
-
warn(message: string, context?: FreebieErrorContext): void;
|
|
36
|
-
/**
|
|
37
|
-
* Log an error
|
|
38
|
-
*/
|
|
39
|
-
error(message: string, context?: FreebieErrorContext): void;
|
|
40
|
-
/**
|
|
41
|
-
* Log a critical error
|
|
42
|
-
*/
|
|
43
|
-
critical(message: string, context?: FreebieErrorContext): void;
|
|
44
|
-
/**
|
|
45
|
-
* Get all logged errors
|
|
46
|
-
*/
|
|
47
|
-
getErrors(): FreebieError[];
|
|
48
|
-
/**
|
|
49
|
-
* Get errors by severity
|
|
50
|
-
*/
|
|
51
|
-
getErrorsBySeverity(severity: FreebieErrorSeverity): FreebieError[];
|
|
52
|
-
/**
|
|
53
|
-
* Clear all errors
|
|
54
|
-
*/
|
|
55
|
-
clearErrors(): void;
|
|
56
|
-
/**
|
|
57
|
-
* Export errors as JSON for debugging
|
|
58
|
-
*/
|
|
59
|
-
exportErrors(): string;
|
|
60
|
-
}
|
|
61
|
-
export declare const freebieErrorLogger: FreebieErrorLogger;
|
|
62
|
-
export declare const logMissingProp: (component: string, propName: string, additionalContext?: any) => void;
|
|
63
|
-
export declare const logInvalidData: (component: string, dataType: string, issue: string, data?: any) => void;
|
|
64
|
-
export declare const logProductError: (component: string, message: string, productId?: string, productTitle?: string, additionalData?: any) => void;
|
|
65
|
-
export declare const logVariantError: (component: string, message: string, productId?: string, variantId?: string, additionalData?: any) => void;
|
|
66
|
-
export declare const logCheckpointError: (component: string, message: string, checkpointId?: number, additionalData?: any) => void;
|
|
67
|
-
export declare const logWarning: (component: string, message: string, context?: FreebieErrorContext) => void;
|
|
68
|
-
export {};
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Validation utilities for Freebie Claim components
|
|
3
|
-
* Validates product data, configuration, and required props
|
|
4
|
-
*/
|
|
5
|
-
export interface ValidationResult {
|
|
6
|
-
isValid: boolean;
|
|
7
|
-
errors: string[];
|
|
8
|
-
warnings: string[];
|
|
9
|
-
}
|
|
10
|
-
/**
|
|
11
|
-
* Validate that required props are present
|
|
12
|
-
*/
|
|
13
|
-
export declare const validateRequiredProps: (component: string, props: {
|
|
14
|
-
freebieProductsInCart?: any[];
|
|
15
|
-
addFreebieToCart?: Function;
|
|
16
|
-
freebiesInCart?: string[];
|
|
17
|
-
}) => ValidationResult;
|
|
18
|
-
/**
|
|
19
|
-
* Validate product data structure
|
|
20
|
-
*/
|
|
21
|
-
export declare const validateProductData: (component: string, product: any, index?: number) => ValidationResult;
|
|
22
|
-
/**
|
|
23
|
-
* Validate all products in cart
|
|
24
|
-
*/
|
|
25
|
-
export declare const validateAllProducts: (component: string, products: any[]) => ValidationResult;
|
|
26
|
-
/**
|
|
27
|
-
* Validate variant data
|
|
28
|
-
*/
|
|
29
|
-
export declare const validateVariantData: (component: string, variant: any, productId?: string) => ValidationResult;
|
|
30
|
-
/**
|
|
31
|
-
* Validate checkpoint data
|
|
32
|
-
*/
|
|
33
|
-
export declare const validateCheckpoint: (component: string, checkpoint: any) => ValidationResult;
|
|
34
|
-
/**
|
|
35
|
-
* Validate freebie claim configuration
|
|
36
|
-
*/
|
|
37
|
-
export declare const validateFreebieClaimData: (component: string, freebieClaimData: any) => ValidationResult;
|
|
38
|
-
/**
|
|
39
|
-
* Validate that products match inventory requirements
|
|
40
|
-
*/
|
|
41
|
-
export declare const validateInventoryQuantity: (component: string, product: any, shouldCheckInventoryQuantity: boolean) => ValidationResult;
|
|
42
|
-
/**
|
|
43
|
-
* Log validation summary
|
|
44
|
-
*/
|
|
45
|
-
export declare const logValidationSummary: (component: string, validationResults: ValidationResult[]) => void;
|
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Centralized error logging utility for Freebie Claim components
|
|
3
|
-
* Provides detailed error logging with context to help debug issues across stores
|
|
4
|
-
*/
|
|
5
|
-
export declare enum FreebieErrorSeverity {
|
|
6
|
-
WARNING = "WARNING",
|
|
7
|
-
ERROR = "ERROR",
|
|
8
|
-
CRITICAL = "CRITICAL"
|
|
9
|
-
}
|
|
10
|
-
export interface FreebieErrorContext {
|
|
11
|
-
component?: string;
|
|
12
|
-
productId?: string;
|
|
13
|
-
productTitle?: string;
|
|
14
|
-
variantId?: string;
|
|
15
|
-
checkpointId?: number;
|
|
16
|
-
storeData?: any;
|
|
17
|
-
additionalData?: any;
|
|
18
|
-
}
|
|
19
|
-
export interface FreebieError {
|
|
20
|
-
severity: FreebieErrorSeverity;
|
|
21
|
-
message: string;
|
|
22
|
-
context: FreebieErrorContext;
|
|
23
|
-
timestamp: string;
|
|
24
|
-
}
|
|
25
|
-
declare class FreebieErrorLogger {
|
|
26
|
-
private errors;
|
|
27
|
-
private maxErrors;
|
|
28
|
-
/**
|
|
29
|
-
* Log an error with context
|
|
30
|
-
*/
|
|
31
|
-
log(severity: FreebieErrorSeverity, message: string, context?: FreebieErrorContext): void;
|
|
32
|
-
/**
|
|
33
|
-
* Log a warning
|
|
34
|
-
*/
|
|
35
|
-
warn(message: string, context?: FreebieErrorContext): void;
|
|
36
|
-
/**
|
|
37
|
-
* Log an error
|
|
38
|
-
*/
|
|
39
|
-
error(message: string, context?: FreebieErrorContext): void;
|
|
40
|
-
/**
|
|
41
|
-
* Log a critical error
|
|
42
|
-
*/
|
|
43
|
-
critical(message: string, context?: FreebieErrorContext): void;
|
|
44
|
-
/**
|
|
45
|
-
* Get all logged errors
|
|
46
|
-
*/
|
|
47
|
-
getErrors(): FreebieError[];
|
|
48
|
-
/**
|
|
49
|
-
* Get errors by severity
|
|
50
|
-
*/
|
|
51
|
-
getErrorsBySeverity(severity: FreebieErrorSeverity): FreebieError[];
|
|
52
|
-
/**
|
|
53
|
-
* Clear all errors
|
|
54
|
-
*/
|
|
55
|
-
clearErrors(): void;
|
|
56
|
-
/**
|
|
57
|
-
* Export errors as JSON for debugging
|
|
58
|
-
*/
|
|
59
|
-
exportErrors(): string;
|
|
60
|
-
}
|
|
61
|
-
export declare const freebieErrorLogger: FreebieErrorLogger;
|
|
62
|
-
export declare const logMissingProp: (component: string, propName: string, additionalContext?: any) => void;
|
|
63
|
-
export declare const logInvalidData: (component: string, dataType: string, issue: string, data?: any) => void;
|
|
64
|
-
export declare const logProductError: (component: string, message: string, productId?: string, productTitle?: string, additionalData?: any) => void;
|
|
65
|
-
export declare const logVariantError: (component: string, message: string, productId?: string, variantId?: string, additionalData?: any) => void;
|
|
66
|
-
export declare const logCheckpointError: (component: string, message: string, checkpointId?: number, additionalData?: any) => void;
|
|
67
|
-
export declare const logWarning: (component: string, message: string, context?: FreebieErrorContext) => void;
|
|
68
|
-
export {};
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Validation utilities for Freebie Claim components
|
|
3
|
-
* Validates product data, configuration, and required props
|
|
4
|
-
*/
|
|
5
|
-
export interface ValidationResult {
|
|
6
|
-
isValid: boolean;
|
|
7
|
-
errors: string[];
|
|
8
|
-
warnings: string[];
|
|
9
|
-
}
|
|
10
|
-
/**
|
|
11
|
-
* Validate that required props are present
|
|
12
|
-
*/
|
|
13
|
-
export declare const validateRequiredProps: (component: string, props: {
|
|
14
|
-
freebieProductsInCart?: any[];
|
|
15
|
-
addFreebieToCart?: Function;
|
|
16
|
-
freebiesInCart?: string[];
|
|
17
|
-
}) => ValidationResult;
|
|
18
|
-
/**
|
|
19
|
-
* Validate product data structure
|
|
20
|
-
*/
|
|
21
|
-
export declare const validateProductData: (component: string, product: any, index?: number) => ValidationResult;
|
|
22
|
-
/**
|
|
23
|
-
* Validate all products in cart
|
|
24
|
-
*/
|
|
25
|
-
export declare const validateAllProducts: (component: string, products: any[]) => ValidationResult;
|
|
26
|
-
/**
|
|
27
|
-
* Validate variant data
|
|
28
|
-
*/
|
|
29
|
-
export declare const validateVariantData: (component: string, variant: any, productId?: string) => ValidationResult;
|
|
30
|
-
/**
|
|
31
|
-
* Validate checkpoint data
|
|
32
|
-
*/
|
|
33
|
-
export declare const validateCheckpoint: (component: string, checkpoint: any) => ValidationResult;
|
|
34
|
-
/**
|
|
35
|
-
* Validate freebie claim configuration
|
|
36
|
-
*/
|
|
37
|
-
export declare const validateFreebieClaimData: (component: string, freebieClaimData: any) => ValidationResult;
|
|
38
|
-
/**
|
|
39
|
-
* Validate that products match inventory requirements
|
|
40
|
-
*/
|
|
41
|
-
export declare const validateInventoryQuantity: (component: string, product: any, shouldCheckInventoryQuantity: boolean) => ValidationResult;
|
|
42
|
-
/**
|
|
43
|
-
* Log validation summary
|
|
44
|
-
*/
|
|
45
|
-
export declare const logValidationSummary: (component: string, validationResults: ValidationResult[]) => void;
|