yt-uikit 0.10.155 → 0.10.156

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 (181) 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 +479 -479
  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 +32 -32
  24. package/dist/esm/components/BundleBlock/BundleBuilder/bundleBuilder.style.d.ts +36 -36
  25. package/dist/esm/components/BundleBlock/BundleBuilderTracker/BundleBuilderTracker.d.ts +57 -57
  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 +42 -42
  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 +274 -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 +18 -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 +20 -20
  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 -419
  153. package/dist/esm/components/LoyaltyPageBlock/LoyaltyPageBlock.d.ts +236 -236
  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 -4
  167. package/dist/esm/index.js +91 -91
  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 -37
  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/unclipStickyAncestors.d.ts +9 -9
  178. package/dist/esm/utils/useMediaQuery.d.ts +1 -1
  179. package/dist/esm/utils/variantAvailability.d.ts +53 -53
  180. package/package.json +98 -98
  181. /package/dist/esm/{confetti-f3502561.js → confetti-89678a6f.js} +0 -0
@@ -1,479 +1,479 @@
1
- import React from "react";
2
- import "./bundle.scss";
3
- import { FilterGroup } from "./BundleBuilder/SortAndFilter";
4
- interface ShopifyCurrency {
5
- rate: number;
6
- active: string;
7
- }
8
- declare global {
9
- interface Window {
10
- Shopify?: {
11
- currency?: ShopifyCurrency;
12
- shop?: string;
13
- };
14
- }
15
- }
16
- type ProductImage = {
17
- url: string;
18
- height: number;
19
- width: number;
20
- altText?: string;
21
- };
22
- type ProductFeaturedMedia = {
23
- alt: string;
24
- preview: {
25
- image: {
26
- url: string;
27
- height?: number;
28
- width?: number;
29
- altText: string;
30
- };
31
- };
32
- };
33
- type ProductOption = {
34
- id: string;
35
- name: string;
36
- values: string[];
37
- };
38
- type CollectionNode = {
39
- node: {
40
- id: string;
41
- title: string;
42
- handle: string;
43
- };
44
- };
45
- export type VariantNode = {
46
- node: {
47
- id: string;
48
- price: string;
49
- compareAtPrice: string;
50
- title: string;
51
- displayName: string;
52
- image: ProductImage;
53
- availableForSale: boolean;
54
- inventoryQuantity: number;
55
- inventoryItem?: {
56
- tracked?: boolean;
57
- };
58
- inventoryPolicy?: "deny" | "continue";
59
- };
60
- };
61
- type SelectedVariantDetails = {
62
- id: string;
63
- price: string;
64
- compareAtPrice: string;
65
- title: string;
66
- displayName: string;
67
- image: ProductImage;
68
- availableForSale: boolean;
69
- inventoryQuantity: number;
70
- };
71
- export type VariantOptions = {
72
- shop: string;
73
- options: {
74
- name: string;
75
- type: "text" | "image" | "color";
76
- values: {
77
- name: string;
78
- value: string;
79
- }[];
80
- }[];
81
- createdAt: string;
82
- updatedAt: string;
83
- };
84
- export type ProductDetails = {
85
- id: string;
86
- title: string;
87
- handle: string;
88
- featuredMedia: ProductFeaturedMedia;
89
- status: "active" | "archived" | "draft" | "unlisted" | "";
90
- options: ProductOption[];
91
- onlineStoreUrl: string;
92
- tracksInventory?: boolean;
93
- publishedAt?: string | null;
94
- collections: {
95
- edges: CollectionNode[];
96
- };
97
- variants: {
98
- edges: VariantNode[];
99
- };
100
- shop: string;
101
- metafield?: {
102
- key: string;
103
- namespace: string;
104
- ownerType: string;
105
- value: string;
106
- id: string;
107
- jsonValue: string[];
108
- type: string;
109
- };
110
- descriptionHtml: string;
111
- media: {
112
- edges: {
113
- node: {
114
- alt: string;
115
- preview: {
116
- image: {
117
- altText: string;
118
- width?: number;
119
- height?: number;
120
- url: string;
121
- };
122
- };
123
- image: {
124
- altText: string;
125
- height: number;
126
- width: number;
127
- url: string;
128
- };
129
- };
130
- }[];
131
- };
132
- selectedVariant?: SelectedVariantDetails;
133
- rating?: {
134
- averageRating: number;
135
- ratingCount: number;
136
- };
137
- };
138
- export type ProductData = {
139
- productId: string;
140
- variantIds: string[];
141
- productDetails: ProductDetails;
142
- quantity?: number;
143
- };
144
- type GeneralStyle = {
145
- primaryColor: string;
146
- primaryContrastColor: string;
147
- secondaryColor: string;
148
- secondaryContrastColor: string;
149
- imageAspectRatio: string;
150
- ctaBackgroundColor: string;
151
- ctaTextColor: string;
152
- ctaBorderColor: string;
153
- ctaShadowType: string;
154
- ctaPadding: string;
155
- ctaWidth: string;
156
- ctaBorderRadius: string;
157
- ctaHoverBackgroundColor: string;
158
- ctaHoverTextColor: string;
159
- customizeHoverState: boolean;
160
- checkoutPartner: string;
161
- /** @deprecated use productClickAction on each bundle style section */
162
- redirectToPDP?: boolean;
163
- restrictCOD: boolean;
164
- trackInventory: boolean;
165
- showOutOfStockProducts: boolean;
166
- showOutOfStockVariants?: boolean;
167
- outOfStockLabel: string;
168
- disabledButtonColor: string;
169
- storeCurrency: string;
170
- currencySymbol: string;
171
- discountPrefix: string;
172
- discountSuffix: string;
173
- addOrderTags: boolean;
174
- addOrderNotes: boolean;
175
- variantTitleSuffix: boolean;
176
- titleLength: string;
177
- showDecimalsInBundlePricing?: boolean;
178
- showPaymentIcons?: boolean;
179
- atcLoaderType?: "spinner" | "animated";
180
- };
181
- type VolumeStyle = {
182
- productClickAction?: InPageProductClickAction;
183
- addtoCartMethod: string;
184
- titleFontSize: string;
185
- subtitleFontSize: string;
186
- titleBackgroundColor: string;
187
- titleTextColor: string;
188
- verticalMargin: string;
189
- sectionBackgroundColor: string;
190
- cardStyle: string;
191
- discountBadgeVisibility: string;
192
- tierPriceType: "none" | "unit-price" | "tier-price";
193
- allowVariantSelection: string;
194
- variantSelectorType: string;
195
- ctaTitle: string;
196
- bundleRedirection: string;
197
- discountBadgeDisplay: string;
198
- discountDisplayType: string;
199
- freebieDisplayType?: "compact" | "detailed";
200
- showVariantOptionsLabel: boolean;
201
- };
202
- type ComboStyle = {
203
- productClickAction?: InPageProductClickAction;
204
- productTitleFontSize: string;
205
- productDescriptionFontSize: string;
206
- descriptionTextColor: string;
207
- titleTextColor: string;
208
- verticalMargin: string;
209
- infoAlignment: string;
210
- ctaTitle: string;
211
- bundleRedirection: string;
212
- embedContentVisibility: boolean;
213
- mixAndMatchCardStyle: string;
214
- mixAndMatchVariantTypeSelector: string;
215
- comboCardStyle: string;
216
- comboVariantTypeSelector: string;
217
- showVariantOptionsLabel?: boolean;
218
- selectedEmbedContentVisibilityOptions: string[];
219
- subProductsSectionVisibility: boolean;
220
- subProductsImageVisibility: boolean;
221
- subProductsProductTitleVisibility: boolean;
222
- subProductsProductPriceVisibility: boolean;
223
- discountBadgeVisibility?: boolean;
224
- discountBadgeDisplay?: "discount-on-compare" | "discount-on-price";
225
- discountDisplayType?: "percentage" | "amount";
226
- comboProductRatingsDisplay?: string;
227
- mixAndMatchProductRatingsDisplay?: string;
228
- };
229
- type ByobStyle = {
230
- productClickAction?: ProductClickAction;
231
- titleFontSize: string;
232
- subtitleFontSize: string;
233
- titleBackgroundColor: string;
234
- titleTextColor: string;
235
- productTitleFontSize: string;
236
- showVariantTitleInCard: boolean;
237
- productVariantTitleType: "product-title" | "variant-title" | "variant-display-name";
238
- productTitleWrapLines: string;
239
- productCardDetailsAlignment: "left" | "center" | "right";
240
- sectionBackgroundColor: string;
241
- lazyLoadWidget: string;
242
- listingsGap: string;
243
- footerMargin: string;
244
- borderRadius: string;
245
- borderColor: string;
246
- cardBackgroundColor: string;
247
- shadowType: string;
248
- addToBundleCTAText: string;
249
- checkoutCTAText: string;
250
- variantSelectorType: string;
251
- primaryVariant: string;
252
- productsPriceVisibility: boolean;
253
- compareAtPriceVisibility: boolean;
254
- selectedProductsVisibility: boolean;
255
- bundleRedirection: string;
256
- enableConfetti: boolean;
257
- selectedItemVisibility: boolean;
258
- productTiersVisibility: boolean;
259
- tierNavigation: boolean;
260
- enableProductCategories: boolean;
261
- productCardCategoryVisibility: string;
262
- categoryFilterOnPage: string;
263
- productFiltersDisplay: "none" | "drawer" | "sidebar";
264
- filtersProvider: "based-on-products-data" | "search-and-discovery-app-sync";
265
- selectedFilterOptions: string[];
266
- productRatingsDisplay?: string;
267
- discountBadgeVisibility?: boolean;
268
- discountBadgeDisplay?: "discount-on-compare" | "discount-on-price";
269
- discountDisplayType?: string;
270
- fetchAllProductsAtOnce?: boolean;
271
- };
272
- type FixedStyle = {
273
- productClickAction?: InPageProductClickAction;
274
- titleFontSize: string;
275
- subtitleFontSize: string;
276
- titleBackgroundColor: string;
277
- titleTextColor: string;
278
- verticalMargin: string;
279
- sectionBackgroundColor: string;
280
- borderRadius: string;
281
- borderColor: string;
282
- cardBackgroundColor: string;
283
- shadowType: string;
284
- infoAlignment: string;
285
- ctaTitle: string;
286
- bundleRedirection: string;
287
- cardLayoutStyle: string;
288
- variantSelectorType: string;
289
- productsPriceVisibility: boolean;
290
- compareAtPriceVisibility: boolean;
291
- discountBadgeVisibility?: boolean;
292
- discountDisplayType?: string;
293
- discountBadgeDisplay?: "discount-on-compare" | "discount-on-price";
294
- productRatingsDisplay?: string;
295
- };
296
- /** What clicking a bundle product card does. */
297
- export type ProductClickAction = "none" | "details-modal" | "redirect-pdp";
298
- /** Product-page bundles render inside the PDP, so redirecting there is a no-op. */
299
- export type InPageProductClickAction = Exclude<ProductClickAction, "redirect-pdp">;
300
- export type Customizations = {
301
- shop?: string;
302
- general: GeneralStyle;
303
- byob: ByobStyle;
304
- fixedBundle: FixedStyle;
305
- volumeBundle: VolumeStyle;
306
- comboBundle: ComboStyle;
307
- createdAt?: string;
308
- updatedAt?: string;
309
- };
310
- export type ProductTier = {
311
- tier: number;
312
- title: string;
313
- minimumQuantity: number;
314
- isFixed?: boolean;
315
- isFreebieTier?: boolean;
316
- products: {
317
- productId: string;
318
- variantIds: string[];
319
- }[];
320
- };
321
- export type BundlePayload = {
322
- _id: string;
323
- showIndividualProductSelector: boolean;
324
- title?: string;
325
- subtitle?: string;
326
- products: ProductData[];
327
- freebieProducts?: ProductData[];
328
- percentageOff?: number;
329
- dealAmount?: number;
330
- amountOff?: number;
331
- type: "fixed" | "builder" | "volume" | "mixAndMatch" | "" | "combo" | "collection";
332
- minimumQuantity: number;
333
- maximumQuantity?: number | null;
334
- splitVariants?: boolean;
335
- showProductDetailsInTracker: boolean;
336
- coverImageUrl?: string;
337
- mobileCoverImageUrl?: string;
338
- titleSectionTextColor?: string;
339
- titleSectionBackgroundColor?: string;
340
- dealTextColor?: string;
341
- showBorder?: boolean;
342
- hideProductDetails?: boolean;
343
- cornerRadiusType?: "medium" | "high" | "";
344
- primaryBackgroundColorCta?: string;
345
- enableProgressBar?: boolean;
346
- enableSortAndFilter?: boolean;
347
- selectedCategories?: string[];
348
- disableQuantitySelector?: boolean;
349
- disableInventoryTracking?: boolean;
350
- alignFixedBundleContent?: "left" | "right" | "center" | "";
351
- imageAspectType?: "portrait" | "square" | "";
352
- backgroundColorFixedBundleDiv?: string;
353
- canCustomizeFixedBundle?: boolean;
354
- primaryTextColorCta?: string;
355
- showVariants?: boolean;
356
- discountType?: string;
357
- showCta?: boolean;
358
- productCardBadgeText?: string;
359
- coverImageVerticalMargin?: string;
360
- builderTiers?: {
361
- type: string;
362
- offerTier?: {
363
- tier: number;
364
- minimumQuantity: number;
365
- discountValue: number;
366
- }[];
367
- productTier?: ProductTier[];
368
- };
369
- volumeTiers?: {
370
- isDefault: unknown;
371
- tier: number;
372
- minimumQuantity: number;
373
- title: string;
374
- subtitle: string;
375
- badgeTitle: string;
376
- discountValue: number;
377
- imageUrl?: string;
378
- freebieProductIds?: string[];
379
- }[];
380
- mixAndMatchTiers?: {
381
- tier: number;
382
- title: string;
383
- products: {
384
- productId: string;
385
- variantIds: string[];
386
- }[];
387
- }[];
388
- customizations: Customizations;
389
- variantOptions?: VariantOptions;
390
- storeCurrencyCode?: string;
391
- customStoreDetails?: {
392
- [key: string]: any;
393
- };
394
- customProductsQuantity?: number | null;
395
- reviewRatingType?: "none" | "ratingOnly" | "ratingAndReviewCount";
396
- appName?: string;
397
- workWithoutPagination?: boolean;
398
- pageHeader?: {
399
- title?: string;
400
- description?: string;
401
- customizePadding?: string;
402
- };
403
- personalizedForm?: {
404
- title?: string;
405
- sections?: {
406
- title: string;
407
- type: "text" | "image";
408
- fields: {
409
- title: string;
410
- }[];
411
- }[];
412
- };
413
- categoryFilters?: Record<number, FilterGroup | FilterGroup[]> | FilterGroup | FilterGroup[];
414
- };
415
- export type EventNameCustom = "byob_checkout_cta" | "byob_add_to_bundle" | "block_visibility" | "bundle_add_to_cart";
416
- export type EventTypeCustom = "clicks" | "views";
417
- export type AnalyticsEventParams = {
418
- eventNameCustom: EventNameCustom;
419
- eventTypeCustom: EventTypeCustom;
420
- data: any;
421
- };
422
- export type CursorData = Record<number, {
423
- cursor: string;
424
- hasNext: boolean;
425
- }>;
426
- export type BundleProps = {
427
- bundle: BundlePayload;
428
- addToCartFunction?: (selectedItemsSubtotal: number, variantIds?: string[], finalBundlePrice?: number, variantIdPriceMap?: {
429
- variantId: string;
430
- price: number;
431
- }[], properties?: Record<string, string>, freebieProduct?: string[], isCheckout?: boolean) => Promise<void>;
432
- addCustomBundleToCart?: (e: any, formProperties?: Record<string, any>) => Promise<void>;
433
- selectedItems?: {
434
- variantId: string;
435
- product: ProductDetails;
436
- quantity: number;
437
- }[];
438
- setSelectedItems?: React.Dispatch<React.SetStateAction<{
439
- variantId: string;
440
- product: ProductDetails;
441
- quantity: number;
442
- }[]>>;
443
- bundleAddToCartLoading?: boolean;
444
- handleRemoveItem?: (variantId: string) => void;
445
- selectedItemsQuantity?: number;
446
- renderingOnPage?: boolean;
447
- bundleSubtotal?: {
448
- price: number;
449
- compareAtPrice: number;
450
- };
451
- bundleHeaderBackgroundColor?: string;
452
- currentProductId?: string;
453
- dispatchAnalyticsEvent?: (params: AnalyticsEventParams) => void;
454
- fetchStoreDetails?: () => Promise<any>;
455
- productsPagination?: {
456
- initialCursorData: CursorData;
457
- cursorData: CursorData;
458
- fetchFn: (filters?: any, bundleTier?: number, cursor?: string | null) => Promise<ProductData[]>;
459
- setCursorData: (cursorData: CursorData) => void;
460
- };
461
- categoryFilters?: Record<number, FilterGroup | FilterGroup[]>;
462
- };
463
- export declare const currencyPrice: (price: number | string | undefined) => string | undefined;
464
- export declare const getCurrencySymbol: (genSymbol: string, _storeCurrencyCode?: string) => string;
465
- export declare const optimiseImage: (url: string, width?: number) => string;
466
- export declare const handleAddToBundle: (variantId: string, product: ProductDetails, quantity: number, selectedItems: {
467
- variantId: string;
468
- product: ProductDetails;
469
- quantity: number;
470
- tierIndex?: number | undefined;
471
- }[], setSelectedItems: React.Dispatch<React.SetStateAction<{
472
- variantId: string;
473
- product: ProductDetails;
474
- quantity: number;
475
- isFree?: boolean | undefined;
476
- tierIndex?: number | undefined;
477
- }[]>>, isFreebie?: boolean, tierIndex?: number) => void;
478
- declare const Bundle: React.FC<BundleProps>;
479
- export default Bundle;
1
+ import React from "react";
2
+ import "./bundle.scss";
3
+ import { FilterGroup } from "./BundleBuilder/SortAndFilter";
4
+ interface ShopifyCurrency {
5
+ rate: number;
6
+ active: string;
7
+ }
8
+ declare global {
9
+ interface Window {
10
+ Shopify?: {
11
+ currency?: ShopifyCurrency;
12
+ shop?: string;
13
+ };
14
+ }
15
+ }
16
+ type ProductImage = {
17
+ url: string;
18
+ height: number;
19
+ width: number;
20
+ altText?: string;
21
+ };
22
+ type ProductFeaturedMedia = {
23
+ alt: string;
24
+ preview: {
25
+ image: {
26
+ url: string;
27
+ height?: number;
28
+ width?: number;
29
+ altText: string;
30
+ };
31
+ };
32
+ };
33
+ type ProductOption = {
34
+ id: string;
35
+ name: string;
36
+ values: string[];
37
+ };
38
+ type CollectionNode = {
39
+ node: {
40
+ id: string;
41
+ title: string;
42
+ handle: string;
43
+ };
44
+ };
45
+ export type VariantNode = {
46
+ node: {
47
+ id: string;
48
+ price: string;
49
+ compareAtPrice: string;
50
+ title: string;
51
+ displayName: string;
52
+ image: ProductImage;
53
+ availableForSale: boolean;
54
+ inventoryQuantity: number;
55
+ inventoryItem?: {
56
+ tracked?: boolean;
57
+ };
58
+ inventoryPolicy?: "deny" | "continue";
59
+ };
60
+ };
61
+ type SelectedVariantDetails = {
62
+ id: string;
63
+ price: string;
64
+ compareAtPrice: string;
65
+ title: string;
66
+ displayName: string;
67
+ image: ProductImage;
68
+ availableForSale: boolean;
69
+ inventoryQuantity: number;
70
+ };
71
+ export type VariantOptions = {
72
+ shop: string;
73
+ options: {
74
+ name: string;
75
+ type: "text" | "image" | "color";
76
+ values: {
77
+ name: string;
78
+ value: string;
79
+ }[];
80
+ }[];
81
+ createdAt: string;
82
+ updatedAt: string;
83
+ };
84
+ export type ProductDetails = {
85
+ id: string;
86
+ title: string;
87
+ handle: string;
88
+ featuredMedia: ProductFeaturedMedia;
89
+ status: "active" | "archived" | "draft" | "unlisted" | "";
90
+ options: ProductOption[];
91
+ onlineStoreUrl: string;
92
+ tracksInventory?: boolean;
93
+ publishedAt?: string | null;
94
+ collections: {
95
+ edges: CollectionNode[];
96
+ };
97
+ variants: {
98
+ edges: VariantNode[];
99
+ };
100
+ shop: string;
101
+ metafield?: {
102
+ key: string;
103
+ namespace: string;
104
+ ownerType: string;
105
+ value: string;
106
+ id: string;
107
+ jsonValue: string[];
108
+ type: string;
109
+ };
110
+ descriptionHtml: string;
111
+ media: {
112
+ edges: {
113
+ node: {
114
+ alt: string;
115
+ preview: {
116
+ image: {
117
+ altText: string;
118
+ width?: number;
119
+ height?: number;
120
+ url: string;
121
+ };
122
+ };
123
+ image: {
124
+ altText: string;
125
+ height: number;
126
+ width: number;
127
+ url: string;
128
+ };
129
+ };
130
+ }[];
131
+ };
132
+ selectedVariant?: SelectedVariantDetails;
133
+ rating?: {
134
+ averageRating: number;
135
+ ratingCount: number;
136
+ };
137
+ };
138
+ export type ProductData = {
139
+ productId: string;
140
+ variantIds: string[];
141
+ productDetails: ProductDetails;
142
+ quantity?: number;
143
+ };
144
+ type GeneralStyle = {
145
+ primaryColor: string;
146
+ primaryContrastColor: string;
147
+ secondaryColor: string;
148
+ secondaryContrastColor: string;
149
+ imageAspectRatio: string;
150
+ ctaBackgroundColor: string;
151
+ ctaTextColor: string;
152
+ ctaBorderColor: string;
153
+ ctaShadowType: string;
154
+ ctaPadding: string;
155
+ ctaWidth: string;
156
+ ctaBorderRadius: string;
157
+ ctaHoverBackgroundColor: string;
158
+ ctaHoverTextColor: string;
159
+ customizeHoverState: boolean;
160
+ checkoutPartner: string;
161
+ /** @deprecated use productClickAction on each bundle style section */
162
+ redirectToPDP?: boolean;
163
+ restrictCOD: boolean;
164
+ trackInventory: boolean;
165
+ showOutOfStockProducts: boolean;
166
+ showOutOfStockVariants?: boolean;
167
+ outOfStockLabel: string;
168
+ disabledButtonColor: string;
169
+ storeCurrency: string;
170
+ currencySymbol: string;
171
+ discountPrefix: string;
172
+ discountSuffix: string;
173
+ addOrderTags: boolean;
174
+ addOrderNotes: boolean;
175
+ variantTitleSuffix: boolean;
176
+ titleLength: string;
177
+ showDecimalsInBundlePricing?: boolean;
178
+ showPaymentIcons?: boolean;
179
+ atcLoaderType?: "spinner" | "animated";
180
+ };
181
+ type VolumeStyle = {
182
+ productClickAction?: InPageProductClickAction;
183
+ addtoCartMethod: string;
184
+ titleFontSize: string;
185
+ subtitleFontSize: string;
186
+ titleBackgroundColor: string;
187
+ titleTextColor: string;
188
+ verticalMargin: string;
189
+ sectionBackgroundColor: string;
190
+ cardStyle: string;
191
+ discountBadgeVisibility: string;
192
+ tierPriceType: "none" | "unit-price" | "tier-price";
193
+ allowVariantSelection: string;
194
+ variantSelectorType: string;
195
+ ctaTitle: string;
196
+ bundleRedirection: string;
197
+ discountBadgeDisplay: string;
198
+ discountDisplayType: string;
199
+ freebieDisplayType?: "compact" | "detailed";
200
+ showVariantOptionsLabel: boolean;
201
+ };
202
+ type ComboStyle = {
203
+ productClickAction?: InPageProductClickAction;
204
+ productTitleFontSize: string;
205
+ productDescriptionFontSize: string;
206
+ descriptionTextColor: string;
207
+ titleTextColor: string;
208
+ verticalMargin: string;
209
+ infoAlignment: string;
210
+ ctaTitle: string;
211
+ bundleRedirection: string;
212
+ embedContentVisibility: boolean;
213
+ mixAndMatchCardStyle: string;
214
+ mixAndMatchVariantTypeSelector: string;
215
+ comboCardStyle: string;
216
+ comboVariantTypeSelector: string;
217
+ showVariantOptionsLabel?: boolean;
218
+ selectedEmbedContentVisibilityOptions: string[];
219
+ subProductsSectionVisibility: boolean;
220
+ subProductsImageVisibility: boolean;
221
+ subProductsProductTitleVisibility: boolean;
222
+ subProductsProductPriceVisibility: boolean;
223
+ discountBadgeVisibility?: boolean;
224
+ discountBadgeDisplay?: "discount-on-compare" | "discount-on-price";
225
+ discountDisplayType?: "percentage" | "amount";
226
+ comboProductRatingsDisplay?: string;
227
+ mixAndMatchProductRatingsDisplay?: string;
228
+ };
229
+ type ByobStyle = {
230
+ productClickAction?: ProductClickAction;
231
+ titleFontSize: string;
232
+ subtitleFontSize: string;
233
+ titleBackgroundColor: string;
234
+ titleTextColor: string;
235
+ productTitleFontSize: string;
236
+ showVariantTitleInCard: boolean;
237
+ productVariantTitleType: "product-title" | "variant-title" | "variant-display-name";
238
+ productTitleWrapLines: string;
239
+ productCardDetailsAlignment: "left" | "center" | "right";
240
+ sectionBackgroundColor: string;
241
+ lazyLoadWidget: string;
242
+ listingsGap: string;
243
+ footerMargin: string;
244
+ borderRadius: string;
245
+ borderColor: string;
246
+ cardBackgroundColor: string;
247
+ shadowType: string;
248
+ addToBundleCTAText: string;
249
+ checkoutCTAText: string;
250
+ variantSelectorType: string;
251
+ primaryVariant: string;
252
+ productsPriceVisibility: boolean;
253
+ compareAtPriceVisibility: boolean;
254
+ selectedProductsVisibility: boolean;
255
+ bundleRedirection: string;
256
+ enableConfetti: boolean;
257
+ selectedItemVisibility: boolean;
258
+ productTiersVisibility: boolean;
259
+ tierNavigation: boolean;
260
+ enableProductCategories: boolean;
261
+ productCardCategoryVisibility: string;
262
+ categoryFilterOnPage: string;
263
+ productFiltersDisplay: "none" | "drawer" | "sidebar";
264
+ filtersProvider: "based-on-products-data" | "search-and-discovery-app-sync";
265
+ selectedFilterOptions: string[];
266
+ productRatingsDisplay?: string;
267
+ discountBadgeVisibility?: boolean;
268
+ discountBadgeDisplay?: "discount-on-compare" | "discount-on-price";
269
+ discountDisplayType?: string;
270
+ fetchAllProductsAtOnce?: boolean;
271
+ };
272
+ type FixedStyle = {
273
+ productClickAction?: InPageProductClickAction;
274
+ titleFontSize: string;
275
+ subtitleFontSize: string;
276
+ titleBackgroundColor: string;
277
+ titleTextColor: string;
278
+ verticalMargin: string;
279
+ sectionBackgroundColor: string;
280
+ borderRadius: string;
281
+ borderColor: string;
282
+ cardBackgroundColor: string;
283
+ shadowType: string;
284
+ infoAlignment: string;
285
+ ctaTitle: string;
286
+ bundleRedirection: string;
287
+ cardLayoutStyle: string;
288
+ variantSelectorType: string;
289
+ productsPriceVisibility: boolean;
290
+ compareAtPriceVisibility: boolean;
291
+ discountBadgeVisibility?: boolean;
292
+ discountDisplayType?: string;
293
+ discountBadgeDisplay?: "discount-on-compare" | "discount-on-price";
294
+ productRatingsDisplay?: string;
295
+ };
296
+ /** What clicking a bundle product card does. */
297
+ export type ProductClickAction = "none" | "details-modal" | "redirect-pdp";
298
+ /** Product-page bundles render inside the PDP, so redirecting there is a no-op. */
299
+ export type InPageProductClickAction = Exclude<ProductClickAction, "redirect-pdp">;
300
+ export type Customizations = {
301
+ shop?: string;
302
+ general: GeneralStyle;
303
+ byob: ByobStyle;
304
+ fixedBundle: FixedStyle;
305
+ volumeBundle: VolumeStyle;
306
+ comboBundle: ComboStyle;
307
+ createdAt?: string;
308
+ updatedAt?: string;
309
+ };
310
+ export type ProductTier = {
311
+ tier: number;
312
+ title: string;
313
+ minimumQuantity: number;
314
+ isFixed?: boolean;
315
+ isFreebieTier?: boolean;
316
+ products: {
317
+ productId: string;
318
+ variantIds: string[];
319
+ }[];
320
+ };
321
+ export type BundlePayload = {
322
+ _id: string;
323
+ showIndividualProductSelector: boolean;
324
+ title?: string;
325
+ subtitle?: string;
326
+ products: ProductData[];
327
+ freebieProducts?: ProductData[];
328
+ percentageOff?: number;
329
+ dealAmount?: number;
330
+ amountOff?: number;
331
+ type: "fixed" | "builder" | "volume" | "mixAndMatch" | "" | "combo" | "collection";
332
+ minimumQuantity: number;
333
+ maximumQuantity?: number | null;
334
+ splitVariants?: boolean;
335
+ showProductDetailsInTracker: boolean;
336
+ coverImageUrl?: string;
337
+ mobileCoverImageUrl?: string;
338
+ titleSectionTextColor?: string;
339
+ titleSectionBackgroundColor?: string;
340
+ dealTextColor?: string;
341
+ showBorder?: boolean;
342
+ hideProductDetails?: boolean;
343
+ cornerRadiusType?: "medium" | "high" | "";
344
+ primaryBackgroundColorCta?: string;
345
+ enableProgressBar?: boolean;
346
+ enableSortAndFilter?: boolean;
347
+ selectedCategories?: string[];
348
+ disableQuantitySelector?: boolean;
349
+ disableInventoryTracking?: boolean;
350
+ alignFixedBundleContent?: "left" | "right" | "center" | "";
351
+ imageAspectType?: "portrait" | "square" | "";
352
+ backgroundColorFixedBundleDiv?: string;
353
+ canCustomizeFixedBundle?: boolean;
354
+ primaryTextColorCta?: string;
355
+ showVariants?: boolean;
356
+ discountType?: string;
357
+ showCta?: boolean;
358
+ productCardBadgeText?: string;
359
+ coverImageVerticalMargin?: string;
360
+ builderTiers?: {
361
+ type: string;
362
+ offerTier?: {
363
+ tier: number;
364
+ minimumQuantity: number;
365
+ discountValue: number;
366
+ }[];
367
+ productTier?: ProductTier[];
368
+ };
369
+ volumeTiers?: {
370
+ isDefault: unknown;
371
+ tier: number;
372
+ minimumQuantity: number;
373
+ title: string;
374
+ subtitle: string;
375
+ badgeTitle: string;
376
+ discountValue: number;
377
+ imageUrl?: string;
378
+ freebieProductIds?: string[];
379
+ }[];
380
+ mixAndMatchTiers?: {
381
+ tier: number;
382
+ title: string;
383
+ products: {
384
+ productId: string;
385
+ variantIds: string[];
386
+ }[];
387
+ }[];
388
+ customizations: Customizations;
389
+ variantOptions?: VariantOptions;
390
+ storeCurrencyCode?: string;
391
+ customStoreDetails?: {
392
+ [key: string]: any;
393
+ };
394
+ customProductsQuantity?: number | null;
395
+ reviewRatingType?: "none" | "ratingOnly" | "ratingAndReviewCount";
396
+ appName?: string;
397
+ workWithoutPagination?: boolean;
398
+ pageHeader?: {
399
+ title?: string;
400
+ description?: string;
401
+ customizePadding?: string;
402
+ };
403
+ personalizedForm?: {
404
+ title?: string;
405
+ sections?: {
406
+ title: string;
407
+ type: "text" | "image";
408
+ fields: {
409
+ title: string;
410
+ }[];
411
+ }[];
412
+ };
413
+ categoryFilters?: Record<number, FilterGroup | FilterGroup[]> | FilterGroup | FilterGroup[];
414
+ };
415
+ export type EventNameCustom = "byob_checkout_cta" | "byob_add_to_bundle" | "block_visibility" | "bundle_add_to_cart";
416
+ export type EventTypeCustom = "clicks" | "views";
417
+ export type AnalyticsEventParams = {
418
+ eventNameCustom: EventNameCustom;
419
+ eventTypeCustom: EventTypeCustom;
420
+ data: any;
421
+ };
422
+ export type CursorData = Record<number, {
423
+ cursor: string;
424
+ hasNext: boolean;
425
+ }>;
426
+ export type BundleProps = {
427
+ bundle: BundlePayload;
428
+ addToCartFunction?: (selectedItemsSubtotal: number, variantIds?: string[], finalBundlePrice?: number, variantIdPriceMap?: {
429
+ variantId: string;
430
+ price: number;
431
+ }[], properties?: Record<string, string>, freebieProduct?: string[], isCheckout?: boolean) => Promise<void>;
432
+ addCustomBundleToCart?: (e: any, formProperties?: Record<string, any>) => Promise<void>;
433
+ selectedItems?: {
434
+ variantId: string;
435
+ product: ProductDetails;
436
+ quantity: number;
437
+ }[];
438
+ setSelectedItems?: React.Dispatch<React.SetStateAction<{
439
+ variantId: string;
440
+ product: ProductDetails;
441
+ quantity: number;
442
+ }[]>>;
443
+ bundleAddToCartLoading?: boolean;
444
+ handleRemoveItem?: (variantId: string) => void;
445
+ selectedItemsQuantity?: number;
446
+ renderingOnPage?: boolean;
447
+ bundleSubtotal?: {
448
+ price: number;
449
+ compareAtPrice: number;
450
+ };
451
+ bundleHeaderBackgroundColor?: string;
452
+ currentProductId?: string;
453
+ dispatchAnalyticsEvent?: (params: AnalyticsEventParams) => void;
454
+ fetchStoreDetails?: () => Promise<any>;
455
+ productsPagination?: {
456
+ initialCursorData: CursorData;
457
+ cursorData: CursorData;
458
+ fetchFn: (filters?: any, bundleTier?: number, cursor?: string | null) => Promise<ProductData[]>;
459
+ setCursorData: (cursorData: CursorData) => void;
460
+ };
461
+ categoryFilters?: Record<number, FilterGroup | FilterGroup[]>;
462
+ };
463
+ export declare const currencyPrice: (price: number | string | undefined) => string | undefined;
464
+ export declare const getCurrencySymbol: (genSymbol: string, _storeCurrencyCode?: string) => string;
465
+ export declare const optimiseImage: (url: string, width?: number) => string;
466
+ export declare const handleAddToBundle: (variantId: string, product: ProductDetails, quantity: number, selectedItems: {
467
+ variantId: string;
468
+ product: ProductDetails;
469
+ quantity: number;
470
+ tierIndex?: number | undefined;
471
+ }[], setSelectedItems: React.Dispatch<React.SetStateAction<{
472
+ variantId: string;
473
+ product: ProductDetails;
474
+ quantity: number;
475
+ isFree?: boolean | undefined;
476
+ tierIndex?: number | undefined;
477
+ }[]>>, isFreebie?: boolean, tierIndex?: number) => void;
478
+ declare const Bundle: React.FC<BundleProps>;
479
+ export default Bundle;