yt-uikit 0.10.149-note.1 → 0.10.149

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (180) hide show
  1. package/README.md +94 -94
  2. package/dist/esm/assets/confetti.d.ts +2 -2
  3. package/dist/esm/atoms/bundleBuilderProductDetailsAtom.d.ts +4 -4
  4. package/dist/esm/atoms/cartDataAtom.d.ts +3 -3
  5. package/dist/esm/atoms/cartLoadingAtom.d.ts +23 -23
  6. package/dist/esm/atoms/cartTimer.d.ts +2 -2
  7. package/dist/esm/atoms/dateAtom.d.ts +1 -1
  8. package/dist/esm/atoms/freebieClaimModalAtom.d.ts +7 -7
  9. package/dist/esm/atoms/giftWrap.d.ts +2 -2
  10. package/dist/esm/atoms/gstCompanyNameAtom.d.ts +1 -1
  11. package/dist/esm/atoms/gstInputAtom.d.ts +1 -1
  12. package/dist/esm/atoms/maxQtyErrorAtom.d.ts +3 -3
  13. package/dist/esm/atoms/multiClaimSelectionAtom.d.ts +28 -28
  14. package/dist/esm/atoms/noteInputAtom.d.ts +3 -3
  15. package/dist/esm/atoms/postalCodeAtom.d.ts +1 -1
  16. package/dist/esm/atoms/shippingAtom.d.ts +8 -8
  17. package/dist/esm/atoms/showGSTInputAtom.d.ts +1 -1
  18. package/dist/esm/atoms/variantSelectionModalAtom.d.ts +35 -35
  19. package/dist/esm/components/BundleBlock/Bundle.d.ts +478 -478
  20. package/dist/esm/components/BundleBlock/BundleBuilder/BundleBuilder.d.ts +52 -52
  21. package/dist/esm/components/BundleBlock/BundleBuilder/ResponsiveBgImage.d.ts +9 -9
  22. package/dist/esm/components/BundleBlock/BundleBuilder/SortAndFilter.d.ts +74 -74
  23. package/dist/esm/components/BundleBlock/BundleBuilder/VariantOptionsModal.d.ts +30 -30
  24. package/dist/esm/components/BundleBlock/BundleBuilder/bundleBuilder.style.d.ts +36 -36
  25. package/dist/esm/components/BundleBlock/BundleBuilderTracker/BundleBuilderTracker.d.ts +56 -56
  26. package/dist/esm/components/BundleBlock/BundleBuilderTracker/bundleBuilderTracker.style.d.ts +80 -80
  27. package/dist/esm/components/BundleBlock/BundleLoaderModal.d.ts +7 -7
  28. package/dist/esm/components/BundleBlock/BundleProductDetailsModal/BundleProductDetailsModal.d.ts +54 -54
  29. package/dist/esm/components/BundleBlock/BundleProductDetailsModal/ImageViewer.d.ts +18 -18
  30. package/dist/esm/components/BundleBlock/BundleProductDetailsModal/bundleProductDetailsModal.style.d.ts +9 -9
  31. package/dist/esm/components/BundleBlock/CartATCLoader.d.ts +12 -12
  32. package/dist/esm/components/BundleBlock/CollectionBundle/CategoryFilter.d.ts +10 -10
  33. package/dist/esm/components/BundleBlock/CollectionBundle/ColllectionBundle.d.ts +135 -135
  34. package/dist/esm/components/BundleBlock/CollectionBundle/ProductDetailsModal.d.ts +20 -20
  35. package/dist/esm/components/BundleBlock/ComboBundle.d.ts +17 -17
  36. package/dist/esm/components/BundleBlock/ErrorToast.d.ts +10 -10
  37. package/dist/esm/components/BundleBlock/FixedBundle/FixedBundle.d.ts +4 -4
  38. package/dist/esm/components/BundleBlock/FixedBundle/SeparateVariantOptions.d.ts +52 -52
  39. package/dist/esm/components/BundleBlock/FixedBundle/VariantSelectorModal.d.ts +23 -23
  40. package/dist/esm/components/BundleBlock/FixedBundle/fixedBundle.style.d.ts +86 -86
  41. package/dist/esm/components/BundleBlock/Loader.d.ts +5 -5
  42. package/dist/esm/components/BundleBlock/MixAndMatchBundle/MixAndMatchBundle.d.ts +9 -9
  43. package/dist/esm/components/BundleBlock/MixAndMatchBundle/mixAndMatchBundle.style.d.ts +91 -91
  44. package/dist/esm/components/BundleBlock/PersonalizationForm/PersonalizationForm.d.ts +35 -35
  45. package/dist/esm/components/BundleBlock/PersonalizationForm/PersonalizationFormModal.d.ts +24 -24
  46. package/dist/esm/components/BundleBlock/VariantDropdown.d.ts +33 -33
  47. package/dist/esm/components/BundleBlock/VolumeBundle/VolumeBundle.d.ts +31 -31
  48. package/dist/esm/components/BundleBlock/VolumeBundle/volumeBundle.style.d.ts +102 -102
  49. package/dist/esm/components/BundleBlock/gokwikGuard.d.ts +22 -22
  50. package/dist/esm/components/BundleBlock/index.d.ts +1 -1
  51. package/dist/esm/components/Cart/ApplyCoupon.d.ts +13 -13
  52. package/dist/esm/components/Cart/Bundle.d.ts +6 -6
  53. package/dist/esm/components/Cart/Cart.d.ts +272 -272
  54. package/dist/esm/components/Cart/CartDrawer.d.ts +41 -41
  55. package/dist/esm/components/Cart/CartOffersCarousel.d.ts +48 -48
  56. package/dist/esm/components/Cart/CartProductsList.d.ts +55 -55
  57. package/dist/esm/components/Cart/CartTimer.d.ts +8 -8
  58. package/dist/esm/components/Cart/CheckoutSection.d.ts +55 -55
  59. package/dist/esm/components/Cart/CouponSelection.d.ts +18 -18
  60. package/dist/esm/components/Cart/CustomVariantSwatches.d.ts +15 -15
  61. package/dist/esm/components/Cart/DatePicker.d.ts +10 -10
  62. package/dist/esm/components/Cart/EmptyCart.d.ts +34 -34
  63. package/dist/esm/components/Cart/FloatingCart.d.ts +24 -24
  64. package/dist/esm/components/Cart/FooterSections.d.ts +9 -9
  65. package/dist/esm/components/Cart/FreebieClaimManager.d.ts +17 -17
  66. package/dist/esm/components/Cart/FreebieClaimOverlay.d.ts +18 -18
  67. package/dist/esm/components/Cart/FreebieClaimOverlayCard.d.ts +14 -14
  68. package/dist/esm/components/Cart/FreebieClaimSection.d.ts +16 -16
  69. package/dist/esm/components/Cart/FreebieClaimSectionCard.d.ts +23 -23
  70. package/dist/esm/components/Cart/GSTSection.d.ts +15 -15
  71. package/dist/esm/components/Cart/GiftWrap.d.ts +13 -13
  72. package/dist/esm/components/Cart/InlineCartOfferInfoText.d.ts +10 -10
  73. package/dist/esm/components/Cart/ItemSwap.d.ts +35 -35
  74. package/dist/esm/components/Cart/LoyaltyAppliedCTA.d.ts +14 -14
  75. package/dist/esm/components/Cart/LoyaltyApplyCTA.d.ts +16 -16
  76. package/dist/esm/components/Cart/LoyaltyBadge.d.ts +11 -11
  77. package/dist/esm/components/Cart/LoyaltyGuestCTA.d.ts +15 -15
  78. package/dist/esm/components/Cart/MultiStepProgressBar/CheckpointConfetti.d.ts +11 -11
  79. package/dist/esm/components/Cart/MultiStepProgressBar/CheckpointIcon.d.ts +3 -3
  80. package/dist/esm/components/Cart/MultiStepProgressBar/CheckpointTooltip.d.ts +3 -3
  81. package/dist/esm/components/Cart/MultiStepProgressBar/MultiStepIcon.d.ts +9 -9
  82. package/dist/esm/components/Cart/MultiStepProgressBar/MultiStepProgressBar.d.ts +5 -5
  83. package/dist/esm/components/Cart/MultiStepProgressBar/MultiStepProgressBar.styled.d.ts +47 -47
  84. package/dist/esm/components/Cart/MultiStepProgressBar/MultiStepUtils.d.ts +6 -6
  85. package/dist/esm/components/Cart/MultiStepProgressBar/MultiTierProgressBar.d.ts +4 -4
  86. package/dist/esm/components/Cart/MultiStepProgressBar/MutiTierNextRewardMessage.d.ts +3 -3
  87. package/dist/esm/components/Cart/MultiStepProgressBar/NextRewardMessage.d.ts +3 -3
  88. package/dist/esm/components/Cart/MultiStepProgressBar/SingleTierProgressBar.d.ts +4 -4
  89. package/dist/esm/components/Cart/MultiStepProgressBar/SingleTierProgressBar.styled.d.ts +22 -22
  90. package/dist/esm/components/Cart/MultiStepProgressBar/SingletTierNextRewardMessage.d.ts +3 -3
  91. package/dist/esm/components/Cart/MultiStepProgressBar/types.d.ts +54 -54
  92. package/dist/esm/components/Cart/NextFreebieRow.d.ts +21 -21
  93. package/dist/esm/components/Cart/NoteSection.d.ts +8 -8
  94. package/dist/esm/components/Cart/ProductCard.d.ts +37 -37
  95. package/dist/esm/components/Cart/ProductRecCard.d.ts +23 -23
  96. package/dist/esm/components/Cart/ProductRecList.d.ts +24 -24
  97. package/dist/esm/components/Cart/ProgressBarCartLoader.d.ts +7 -7
  98. package/dist/esm/components/Cart/QuantitySelector.d.ts +11 -11
  99. package/dist/esm/components/Cart/RegionSpecificDelivery.d.ts +14 -14
  100. package/dist/esm/components/Cart/RewardPointsPreview.d.ts +12 -12
  101. package/dist/esm/components/Cart/StandardDelivery.d.ts +11 -11
  102. package/dist/esm/components/Cart/StealDealSection.d.ts +16 -16
  103. package/dist/esm/components/Cart/StickyCart.d.ts +68 -68
  104. package/dist/esm/components/Cart/SubtotalSection.d.ts +13 -13
  105. package/dist/esm/components/Cart/UploadImageSection.d.ts +31 -31
  106. package/dist/esm/components/Cart/VariantDropDown.d.ts +13 -13
  107. package/dist/esm/components/Cart/VariantSelectionPopup/DesktopVariantPopup.d.ts +17 -17
  108. package/dist/esm/components/Cart/VariantSelectionPopup/DesktopVariantPopup.styled.d.ts +48 -48
  109. package/dist/esm/components/Cart/VariantSelectionPopup/MobileVariantPopover.d.ts +17 -17
  110. package/dist/esm/components/Cart/index.d.ts +1 -1
  111. package/dist/esm/components/Loyalty/AccountAddresses.d.ts +30 -30
  112. package/dist/esm/components/Loyalty/AccountBlock.d.ts +108 -108
  113. package/dist/esm/components/Loyalty/AccountBlock.types.d.ts +290 -290
  114. package/dist/esm/components/Loyalty/AccountLoginForm.d.ts +57 -57
  115. package/dist/esm/components/Loyalty/AccountOrderHistory.d.ts +61 -61
  116. package/dist/esm/components/Loyalty/AccountRewards.d.ts +25 -25
  117. package/dist/esm/components/Loyalty/AccountWaysToRedeem.d.ts +10 -10
  118. package/dist/esm/components/Loyalty/ActiveSessionOverlay.d.ts +8 -8
  119. package/dist/esm/components/Loyalty/BubbleLauncher.d.ts +14 -14
  120. package/dist/esm/components/Loyalty/GuestDesktop.d.ts +5 -5
  121. package/dist/esm/components/Loyalty/GuestDesktopWithoutImage.d.ts +7 -7
  122. package/dist/esm/components/Loyalty/GuestMobile.d.ts +6 -6
  123. package/dist/esm/components/Loyalty/Loader.d.ts +10 -10
  124. package/dist/esm/components/Loyalty/LoyaltyProductCatalog.d.ts +69 -69
  125. package/dist/esm/components/Loyalty/LoyaltyProfile.d.ts +6 -6
  126. package/dist/esm/components/Loyalty/LoyaltyWidget.d.ts +6 -6
  127. package/dist/esm/components/Loyalty/OTPComponent.d.ts +20 -20
  128. package/dist/esm/components/Loyalty/PointEarnBadge.d.ts +17 -17
  129. package/dist/esm/components/Loyalty/PointRedeemBadge.d.ts +17 -17
  130. package/dist/esm/components/Loyalty/RecentTransactions.d.ts +8 -8
  131. package/dist/esm/components/Loyalty/RewardsModal.d.ts +13 -13
  132. package/dist/esm/components/Loyalty/RibbonLauncher.d.ts +12 -12
  133. package/dist/esm/components/Loyalty/StickyLauncher.d.ts +14 -14
  134. package/dist/esm/components/Loyalty/StickyTextLauncher.d.ts +2 -2
  135. package/dist/esm/components/Loyalty/Toast.d.ts +7 -7
  136. package/dist/esm/components/Loyalty/VIPTiersScreen.d.ts +11 -11
  137. package/dist/esm/components/Loyalty/WTRCoupon.d.ts +13 -13
  138. package/dist/esm/components/Loyalty/WaysToEarn.d.ts +34 -34
  139. package/dist/esm/components/Loyalty/WaysToRedeem.d.ts +111 -111
  140. package/dist/esm/components/Loyalty/index.d.ts +16 -16
  141. package/dist/esm/components/Loyalty/loyaltyLauncher.d.ts +19 -19
  142. package/dist/esm/components/Loyalty/styles/AccountBlock.styles.d.ts +27 -27
  143. package/dist/esm/components/Loyalty/styles/ActiveSession.styles.d.ts +3 -3
  144. package/dist/esm/components/Loyalty/styles/DobPopup.styles.d.ts +3 -3
  145. package/dist/esm/components/Loyalty/styles/PointEarnBadge.styles.d.ts +3 -3
  146. package/dist/esm/components/Loyalty/styles/PointRedeemBadge.styles.d.ts +3 -3
  147. package/dist/esm/components/Loyalty/styles/RecentTransactions.styles.d.ts +6 -6
  148. package/dist/esm/components/Loyalty/styles/VIPTiers.styles.d.ts +4 -4
  149. package/dist/esm/components/Loyalty/styles/WaysToRedeem.styles.d.ts +5 -5
  150. package/dist/esm/components/Loyalty/styles/shared.styles.d.ts +3 -3
  151. package/dist/esm/components/Loyalty/styles.d.ts +23 -23
  152. package/dist/esm/components/Loyalty/types.d.ts +419 -418
  153. package/dist/esm/components/LoyaltyPageBlock/LoyaltyPageBlock.d.ts +236 -235
  154. package/dist/esm/components/Nudge/LeadGenerationNudge.d.ts +15 -15
  155. package/dist/esm/components/Nudge/Nudge.d.ts +40 -40
  156. package/dist/esm/components/Nudge/index.d.ts +1 -1
  157. package/dist/esm/components/ProductOffersBlock/ProductOffersCoupon.d.ts +12 -12
  158. package/dist/esm/components/ProductOffersBlock/ProductOffersList.d.ts +12 -12
  159. package/dist/esm/components/ProductOffersBlock/ProductOffersTermsMobilePopover.d.ts +10 -10
  160. package/dist/esm/components/ProductOffersBlock/ProductOffersTermsPopup.d.ts +10 -10
  161. package/dist/esm/components/ProductOffersBlock/ProductsOffers.d.ts +42 -42
  162. package/dist/esm/components/SpinnerWheel/SpinnerWheel.d.ts +23 -23
  163. package/dist/esm/components/SpinnerWheel/WheelSection.d.ts +9 -9
  164. package/dist/esm/components/SpinnerWheel/index.d.ts +1 -1
  165. package/dist/esm/components/index.d.ts +20 -20
  166. package/dist/esm/index.d.ts +4 -3
  167. package/dist/esm/index.js +446 -446
  168. package/dist/esm/utils/converter.d.ts +4 -4
  169. package/dist/esm/utils/customCartConfig.d.ts +2 -2
  170. package/dist/esm/utils/customHtmlInteractions.d.ts +9 -9
  171. package/dist/esm/utils/customVariantOptions.d.ts +30 -30
  172. package/dist/esm/utils/freebieProductUtils.d.ts +40 -40
  173. package/dist/esm/utils/freebieUtils.d.ts +12 -12
  174. package/dist/esm/utils/index.d.ts +37 -36
  175. package/dist/esm/utils/safeguardDOM.d.ts +5 -5
  176. package/dist/esm/utils/shopifyAtcBridge.d.ts +43 -43
  177. package/dist/esm/utils/useMediaQuery.d.ts +1 -1
  178. package/dist/esm/utils/variantAvailability.d.ts +53 -53
  179. package/package.json +98 -98
  180. /package/dist/esm/{confetti-89678a6f.js → confetti-f3502561.js} +0 -0
@@ -1,135 +1,135 @@
1
- import React from "react";
2
- import { AnalyticsEventParams, ProductClickAction } from "../Bundle";
3
- export type Product = {
4
- id: number;
5
- title: string;
6
- handle: string;
7
- description: string | null;
8
- published_at: string;
9
- created_at: string;
10
- vendor: string;
11
- type: string;
12
- tags: string[];
13
- price: number;
14
- price_min: number;
15
- price_max: number;
16
- available: boolean;
17
- price_varies: boolean;
18
- compare_at_price: number | null;
19
- compare_at_price_min: number;
20
- compare_at_price_max: number;
21
- compare_at_price_varies: boolean;
22
- metafields?: {
23
- custom: any;
24
- judgeme: any;
25
- yourtoken_bundles_app: {
26
- categories?: string[];
27
- };
28
- };
29
- variants: Array<{
30
- id: number;
31
- title: string;
32
- option1: string | null;
33
- option2: string | null;
34
- option3: string | null;
35
- sku: string;
36
- requires_shipping: boolean;
37
- taxable: boolean;
38
- featured_image: any | null;
39
- available: boolean;
40
- name: string;
41
- public_title: string;
42
- options: string[];
43
- price: number;
44
- weight: number;
45
- compare_at_price: number | null;
46
- inventory_management: string;
47
- barcode: string;
48
- requires_selling_plan: boolean;
49
- selling_plan_allocations: any[];
50
- quantity_rule: {
51
- min: number;
52
- max: number | null;
53
- increment: number;
54
- };
55
- }>;
56
- images: string[];
57
- image?: string;
58
- options?: string[];
59
- };
60
- type DiscountData = {
61
- type: "dummy_coupon" | "percentage_discount_coupon" | "amount_discount_coupon" | "fixed_price_collection";
62
- tiers: {
63
- minimumQuantity: number;
64
- discountValue: number;
65
- };
66
- } | null;
67
- export type BundleConfig = {
68
- id: string;
69
- type: string;
70
- config: {
71
- shop: string;
72
- collectionIds: string[];
73
- type: "collection";
74
- builderTiers: {
75
- type: "collectionTier";
76
- collectionTier: {
77
- title: string;
78
- tier: number;
79
- maximumQuantity: number;
80
- collectionId: string;
81
- handle: string;
82
- products: Product[];
83
- discountData: DiscountData;
84
- }[];
85
- };
86
- splitVariants?: boolean;
87
- form?: {
88
- title?: string;
89
- sections?: {
90
- title: string;
91
- type: "text" | "image";
92
- fields: {
93
- title: string;
94
- }[];
95
- }[];
96
- };
97
- };
98
- customizations: {
99
- borderRadius: string;
100
- atcBg: string;
101
- atcText: string;
102
- productImageRatio: string;
103
- bundleBg: string;
104
- bundleText: string;
105
- bundleBorder: string;
106
- btnPrimaryBg: string;
107
- btnPrimaryText: string;
108
- productCardBorder: string;
109
- productCardBg: string;
110
- productCardShadow: string;
111
- hideSelectedProducts: boolean;
112
- allowMultipleQty: boolean;
113
- hideOutOfStockProducts: boolean;
114
- bundleRedirection: "cart-drawer" | "checkout";
115
- checkoutPartner: "shopify" | "razorpay" | "shiprocket" | "gokwik" | "breeze" | "zecpay" | "shopflo";
116
- showTierSteps: boolean;
117
- headerImage: string;
118
- stickyBarWidth: "compact" | "full-width";
119
- productCardCategoryVisibility?: boolean;
120
- enableProductCategories?: boolean;
121
- categoryFilterOnPage?: "tabs" | "box";
122
- enableSearch?: boolean;
123
- enableSort?: boolean;
124
- productClickAction?: ProductClickAction;
125
- productRatingsDisplay?: "none" | "ratingOnly" | "ratingAndReviewCount";
126
- };
127
- };
128
- interface CollectionBundleProps {
129
- config: BundleConfig;
130
- addCustomBundleToCart: (items: any) => void;
131
- bundleAddToCartLoading: boolean;
132
- dispatchAnalyticsEvent?: (params: AnalyticsEventParams) => void;
133
- }
134
- declare const CollectionBundle: ({ config, bundleAddToCartLoading, addCustomBundleToCart, dispatchAnalyticsEvent, }: CollectionBundleProps) => React.JSX.Element;
135
- export default CollectionBundle;
1
+ import React from "react";
2
+ import { AnalyticsEventParams, ProductClickAction } from "../Bundle";
3
+ export type Product = {
4
+ id: number;
5
+ title: string;
6
+ handle: string;
7
+ description: string | null;
8
+ published_at: string;
9
+ created_at: string;
10
+ vendor: string;
11
+ type: string;
12
+ tags: string[];
13
+ price: number;
14
+ price_min: number;
15
+ price_max: number;
16
+ available: boolean;
17
+ price_varies: boolean;
18
+ compare_at_price: number | null;
19
+ compare_at_price_min: number;
20
+ compare_at_price_max: number;
21
+ compare_at_price_varies: boolean;
22
+ metafields?: {
23
+ custom: any;
24
+ judgeme: any;
25
+ yourtoken_bundles_app: {
26
+ categories?: string[];
27
+ };
28
+ };
29
+ variants: Array<{
30
+ id: number;
31
+ title: string;
32
+ option1: string | null;
33
+ option2: string | null;
34
+ option3: string | null;
35
+ sku: string;
36
+ requires_shipping: boolean;
37
+ taxable: boolean;
38
+ featured_image: any | null;
39
+ available: boolean;
40
+ name: string;
41
+ public_title: string;
42
+ options: string[];
43
+ price: number;
44
+ weight: number;
45
+ compare_at_price: number | null;
46
+ inventory_management: string;
47
+ barcode: string;
48
+ requires_selling_plan: boolean;
49
+ selling_plan_allocations: any[];
50
+ quantity_rule: {
51
+ min: number;
52
+ max: number | null;
53
+ increment: number;
54
+ };
55
+ }>;
56
+ images: string[];
57
+ image?: string;
58
+ options?: string[];
59
+ };
60
+ type DiscountData = {
61
+ type: "dummy_coupon" | "percentage_discount_coupon" | "amount_discount_coupon" | "fixed_price_collection";
62
+ tiers: {
63
+ minimumQuantity: number;
64
+ discountValue: number;
65
+ };
66
+ } | null;
67
+ export type BundleConfig = {
68
+ id: string;
69
+ type: string;
70
+ config: {
71
+ shop: string;
72
+ collectionIds: string[];
73
+ type: "collection";
74
+ builderTiers: {
75
+ type: "collectionTier";
76
+ collectionTier: {
77
+ title: string;
78
+ tier: number;
79
+ maximumQuantity: number;
80
+ collectionId: string;
81
+ handle: string;
82
+ products: Product[];
83
+ discountData: DiscountData;
84
+ }[];
85
+ };
86
+ splitVariants?: boolean;
87
+ form?: {
88
+ title?: string;
89
+ sections?: {
90
+ title: string;
91
+ type: "text" | "image";
92
+ fields: {
93
+ title: string;
94
+ }[];
95
+ }[];
96
+ };
97
+ };
98
+ customizations: {
99
+ borderRadius: string;
100
+ atcBg: string;
101
+ atcText: string;
102
+ productImageRatio: string;
103
+ bundleBg: string;
104
+ bundleText: string;
105
+ bundleBorder: string;
106
+ btnPrimaryBg: string;
107
+ btnPrimaryText: string;
108
+ productCardBorder: string;
109
+ productCardBg: string;
110
+ productCardShadow: string;
111
+ hideSelectedProducts: boolean;
112
+ allowMultipleQty: boolean;
113
+ hideOutOfStockProducts: boolean;
114
+ bundleRedirection: "cart-drawer" | "checkout";
115
+ checkoutPartner: "shopify" | "razorpay" | "shiprocket" | "gokwik" | "breeze" | "zecpay" | "shopflo";
116
+ showTierSteps: boolean;
117
+ headerImage: string;
118
+ stickyBarWidth: "compact" | "full-width";
119
+ productCardCategoryVisibility?: boolean;
120
+ enableProductCategories?: boolean;
121
+ categoryFilterOnPage?: "tabs" | "box";
122
+ enableSearch?: boolean;
123
+ enableSort?: boolean;
124
+ productClickAction?: ProductClickAction;
125
+ productRatingsDisplay?: "none" | "ratingOnly" | "ratingAndReviewCount";
126
+ };
127
+ };
128
+ interface CollectionBundleProps {
129
+ config: BundleConfig;
130
+ addCustomBundleToCart: (items: any) => void;
131
+ bundleAddToCartLoading: boolean;
132
+ dispatchAnalyticsEvent?: (params: AnalyticsEventParams) => void;
133
+ }
134
+ declare const CollectionBundle: ({ config, bundleAddToCartLoading, addCustomBundleToCart, dispatchAnalyticsEvent, }: CollectionBundleProps) => React.JSX.Element;
135
+ export default CollectionBundle;
@@ -1,20 +1,20 @@
1
- import React from "react";
2
- import { Product, BundleConfig } from "./ColllectionBundle";
3
- export declare const getProductRating: (product: Product) => {
4
- averageRating: number;
5
- ratingCount: number;
6
- };
7
- type ProductDetailsModalProps = {
8
- product: Product;
9
- tierIdx: number;
10
- isOpen: boolean;
11
- onClose: () => void;
12
- onAddToBundle: (product: Product, tierIdx: number) => void;
13
- canAdd: boolean;
14
- isSelected: boolean;
15
- customizations: BundleConfig["customizations"];
16
- isMobile: boolean;
17
- splitVariants?: boolean;
18
- };
19
- export declare const ProductDetailsModal: ({ product, tierIdx, isOpen, onClose, onAddToBundle, canAdd, isSelected, customizations, isMobile, splitVariants, }: ProductDetailsModalProps) => React.ReactPortal | null;
20
- export {};
1
+ import React from "react";
2
+ import { Product, BundleConfig } from "./ColllectionBundle";
3
+ export declare const getProductRating: (product: Product) => {
4
+ averageRating: number;
5
+ ratingCount: number;
6
+ };
7
+ type ProductDetailsModalProps = {
8
+ product: Product;
9
+ tierIdx: number;
10
+ isOpen: boolean;
11
+ onClose: () => void;
12
+ onAddToBundle: (product: Product, tierIdx: number) => void;
13
+ canAdd: boolean;
14
+ isSelected: boolean;
15
+ customizations: BundleConfig["customizations"];
16
+ isMobile: boolean;
17
+ splitVariants?: boolean;
18
+ };
19
+ export declare const ProductDetailsModal: ({ product, tierIdx, isOpen, onClose, onAddToBundle, canAdd, isSelected, customizations, isMobile, splitVariants, }: ProductDetailsModalProps) => React.ReactPortal | null;
20
+ export {};
@@ -1,17 +1,17 @@
1
- import React from "react";
2
- import { BundleProps } from "./Bundle";
3
- declare global {
4
- interface Window {
5
- ytComboBundle?: {
6
- bundle: BundleProps["bundle"];
7
- addToCart: (selectedItemsSubtotal: number, variantIds?: string[], finalBundlePrice?: number, variantIdPriceMap?: {
8
- variantId: string;
9
- price: number;
10
- }[]) => Promise<void>;
11
- selectedVariants: Record<number, string>;
12
- } | undefined;
13
- }
14
- }
15
- import "./bundle.scss";
16
- declare const ComboBundle: React.FC<BundleProps>;
17
- export default ComboBundle;
1
+ import React from "react";
2
+ import { BundleProps } from "./Bundle";
3
+ declare global {
4
+ interface Window {
5
+ ytComboBundle?: {
6
+ bundle: BundleProps["bundle"];
7
+ addToCart: (selectedItemsSubtotal: number, variantIds?: string[], finalBundlePrice?: number, variantIdPriceMap?: {
8
+ variantId: string;
9
+ price: number;
10
+ }[]) => Promise<void>;
11
+ selectedVariants: Record<number, string>;
12
+ } | undefined;
13
+ }
14
+ }
15
+ import "./bundle.scss";
16
+ declare const ComboBundle: React.FC<BundleProps>;
17
+ export default ComboBundle;
@@ -1,10 +1,10 @@
1
- import React from "react";
2
- export declare const sanitizeErrorMessage: (error: any) => string;
3
- export interface ErrorToastProps {
4
- message: string;
5
- onClose: () => void;
6
- duration?: number;
7
- style?: React.CSSProperties;
8
- }
9
- declare const ErrorToast: React.FC<ErrorToastProps>;
10
- export default ErrorToast;
1
+ import React from "react";
2
+ export declare const sanitizeErrorMessage: (error: any) => string;
3
+ export interface ErrorToastProps {
4
+ message: string;
5
+ onClose: () => void;
6
+ duration?: number;
7
+ style?: React.CSSProperties;
8
+ }
9
+ declare const ErrorToast: React.FC<ErrorToastProps>;
10
+ export default ErrorToast;
@@ -1,4 +1,4 @@
1
- import React from "react";
2
- import { BundleProps } from "../Bundle";
3
- declare const FixedBundle: React.FC<BundleProps>;
4
- export default FixedBundle;
1
+ import React from "react";
2
+ import { BundleProps } from "../Bundle";
3
+ declare const FixedBundle: React.FC<BundleProps>;
4
+ export default FixedBundle;
@@ -1,52 +1,52 @@
1
- import React from "react";
2
- interface Option {
3
- name: string;
4
- values: string[];
5
- }
6
- interface VariantOption {
7
- name: string;
8
- type: "color" | "image" | "text";
9
- values: {
10
- name: string;
11
- value: string;
12
- }[];
13
- }
14
- interface VariantOptions {
15
- options: VariantOption[];
16
- }
17
- interface ProductVariant {
18
- node: {
19
- id: string;
20
- title: string;
21
- inventoryQuantity: number;
22
- inventoryItem?: {
23
- tracked?: boolean;
24
- };
25
- inventoryPolicy?: "deny" | "continue";
26
- };
27
- }
28
- interface Product {
29
- options: Option[];
30
- tracksInventory?: boolean;
31
- variants: {
32
- edges: ProductVariant[];
33
- };
34
- }
35
- interface ProductVariantSelectorProps {
36
- product: Product;
37
- variantOptions?: VariantOptions;
38
- selectedVariants: string[];
39
- onVariantChange: (variantId: string) => void;
40
- variantType?: string;
41
- variantId?: string;
42
- primaryProductId?: string;
43
- accentColor?: string;
44
- showOutOfStockVariants?: boolean;
45
- }
46
- /**
47
- * The variant title to show as a badge next to the product title. Empty when
48
- * any option still has a real choice, so the selectors render instead.
49
- */
50
- export declare const getSingleVariantTitle: (product: Product, showOutOfStockVariants?: boolean) => string;
51
- export declare const ProductVariantSelector: React.FC<ProductVariantSelectorProps>;
52
- export {};
1
+ import React from "react";
2
+ interface Option {
3
+ name: string;
4
+ values: string[];
5
+ }
6
+ interface VariantOption {
7
+ name: string;
8
+ type: "color" | "image" | "text";
9
+ values: {
10
+ name: string;
11
+ value: string;
12
+ }[];
13
+ }
14
+ interface VariantOptions {
15
+ options: VariantOption[];
16
+ }
17
+ interface ProductVariant {
18
+ node: {
19
+ id: string;
20
+ title: string;
21
+ inventoryQuantity: number;
22
+ inventoryItem?: {
23
+ tracked?: boolean;
24
+ };
25
+ inventoryPolicy?: "deny" | "continue";
26
+ };
27
+ }
28
+ interface Product {
29
+ options: Option[];
30
+ tracksInventory?: boolean;
31
+ variants: {
32
+ edges: ProductVariant[];
33
+ };
34
+ }
35
+ interface ProductVariantSelectorProps {
36
+ product: Product;
37
+ variantOptions?: VariantOptions;
38
+ selectedVariants: string[];
39
+ onVariantChange: (variantId: string) => void;
40
+ variantType?: string;
41
+ variantId?: string;
42
+ primaryProductId?: string;
43
+ accentColor?: string;
44
+ showOutOfStockVariants?: boolean;
45
+ }
46
+ /**
47
+ * The variant title to show as a badge next to the product title. Empty when
48
+ * any option still has a real choice, so the selectors render instead.
49
+ */
50
+ export declare const getSingleVariantTitle: (product: Product, showOutOfStockVariants?: boolean) => string;
51
+ export declare const ProductVariantSelector: React.FC<ProductVariantSelectorProps>;
52
+ export {};
@@ -1,23 +1,23 @@
1
- import React from "react";
2
- import { ProductData, VariantOptions } from "../Bundle";
3
- interface ProductWithIndex {
4
- product: ProductData;
5
- index: number;
6
- }
7
- interface VariantSelectorModalProps {
8
- productsWithIndices: ProductWithIndex[];
9
- isOpen: boolean;
10
- onClose: () => void;
11
- variantOptions?: VariantOptions;
12
- cta: {
13
- textColor: string;
14
- backgroundColor: string;
15
- };
16
- primaryProductId?: string;
17
- variantId?: string;
18
- onVariantChange: (index: number, variantId: string) => void;
19
- handleAddToCart: (e: React.MouseEvent<HTMLButtonElement, MouseEvent>) => Promise<void>;
20
- showOutOfStockVariants?: boolean;
21
- }
22
- declare const VariantSelectorModal: React.FC<VariantSelectorModalProps>;
23
- export default VariantSelectorModal;
1
+ import React from "react";
2
+ import { ProductData, VariantOptions } from "../Bundle";
3
+ interface ProductWithIndex {
4
+ product: ProductData;
5
+ index: number;
6
+ }
7
+ interface VariantSelectorModalProps {
8
+ productsWithIndices: ProductWithIndex[];
9
+ isOpen: boolean;
10
+ onClose: () => void;
11
+ variantOptions?: VariantOptions;
12
+ cta: {
13
+ textColor: string;
14
+ backgroundColor: string;
15
+ };
16
+ primaryProductId?: string;
17
+ variantId?: string;
18
+ onVariantChange: (index: number, variantId: string) => void;
19
+ handleAddToCart: (e: React.MouseEvent<HTMLButtonElement, MouseEvent>) => Promise<void>;
20
+ showOutOfStockVariants?: boolean;
21
+ }
22
+ declare const VariantSelectorModal: React.FC<VariantSelectorModalProps>;
23
+ export default VariantSelectorModal;