@rebuy/rebuy-hydrogen 3.0.0-beta.12 → 3.0.0-beta.14

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 (175) hide show
  1. package/README.md +677 -111
  2. package/dist/components/AddToCartBtn/AddToCartBtn.d.ts +1 -1
  3. package/dist/components/AddToCartBtn/AddToCartBtn.d.ts.map +1 -1
  4. package/dist/components/AddToCartBtn/HydrogenAddToCartBtn.d.ts +1 -1
  5. package/dist/components/AddToCartBtn/HydrogenAddToCartBtn.d.ts.map +1 -1
  6. package/dist/components/AddToCartBtn/HydrogenReactAddToCartBtn.d.ts +1 -1
  7. package/dist/components/AddToCartBtn/HydrogenReactAddToCartBtn.d.ts.map +1 -1
  8. package/dist/components/AddToCartBtn/types.d.ts +4 -0
  9. package/dist/components/AddToCartBtn/types.d.ts.map +1 -1
  10. package/dist/components/ProductCard/ProductCard.d.ts +1 -1
  11. package/dist/components/ProductCard/ProductCard.d.ts.map +1 -1
  12. package/dist/components/ProductCard/types.d.ts +3 -0
  13. package/dist/components/ProductCard/types.d.ts.map +1 -1
  14. package/dist/components/ProductCarousel/ProductCarousel.d.ts +2 -1
  15. package/dist/components/ProductCarousel/ProductCarousel.d.ts.map +1 -1
  16. package/dist/components/ProductPrice/ProductPrice.d.ts.map +1 -1
  17. package/dist/components/QuantityInput/QuantityInput.d.ts +1 -1
  18. package/dist/components/QuantityInput/QuantityInput.d.ts.map +1 -1
  19. package/dist/components/Timer/Timer.d.ts.map +1 -1
  20. package/dist/components/Timer/types.d.ts +2 -2
  21. package/dist/components/Timer/types.d.ts.map +1 -1
  22. package/dist/components/VariantSelect/VariantSelect.d.ts.map +1 -1
  23. package/dist/constants/debug.d.ts +27 -0
  24. package/dist/constants/debug.d.ts.map +1 -0
  25. package/dist/context/RebuyConfigContext.d.ts +2 -0
  26. package/dist/context/RebuyConfigContext.d.ts.map +1 -1
  27. package/dist/hooks/useBreakpoint.d.ts +1 -1
  28. package/dist/hooks/useBreakpoint.d.ts.map +1 -1
  29. package/dist/hooks/usePopupTrigger.d.ts +1 -1
  30. package/dist/hooks/usePopupTrigger.d.ts.map +1 -1
  31. package/dist/index.css +2513 -518
  32. package/dist/index.css.map +4 -4
  33. package/dist/index.d.ts +2 -2
  34. package/dist/index.d.ts.map +1 -1
  35. package/dist/index.js +8947 -2512
  36. package/dist/index.js.map +4 -4
  37. package/dist/index.mjs +8963 -2528
  38. package/dist/index.mjs.map +4 -4
  39. package/dist/providers/RebuyHydrogenContextProvider.d.ts +1 -1
  40. package/dist/providers/RebuyHydrogenContextProvider.d.ts.map +1 -1
  41. package/dist/providers/RebuyHydrogenReactContextProvider.d.ts +1 -1
  42. package/dist/providers/RebuyHydrogenReactContextProvider.d.ts.map +1 -1
  43. package/dist/providers/types.d.ts +14 -22
  44. package/dist/providers/types.d.ts.map +1 -1
  45. package/dist/queries/cart.queries.d.ts +4 -4
  46. package/dist/queries/cart.queries.d.ts.map +1 -1
  47. package/dist/smart-cart/RebuySmartCart.d.ts +10 -0
  48. package/dist/smart-cart/RebuySmartCart.d.ts.map +1 -0
  49. package/dist/smart-cart/components/AnnouncementBar/AnnouncementBar.d.ts +10 -0
  50. package/dist/smart-cart/components/AnnouncementBar/AnnouncementBar.d.ts.map +1 -0
  51. package/dist/smart-cart/components/CartItem/CartItem.d.ts +7 -0
  52. package/dist/smart-cart/components/CartItem/CartItem.d.ts.map +1 -0
  53. package/dist/smart-cart/components/CartItemList/CartItemList.d.ts +10 -0
  54. package/dist/smart-cart/components/CartItemList/CartItemList.d.ts.map +1 -0
  55. package/dist/smart-cart/components/CartNoteInput/CartNoteInput.d.ts +10 -0
  56. package/dist/smart-cart/components/CartNoteInput/CartNoteInput.d.ts.map +1 -0
  57. package/dist/smart-cart/components/CartSubtotal/CartSubtotal.d.ts +11 -0
  58. package/dist/smart-cart/components/CartSubtotal/CartSubtotal.d.ts.map +1 -0
  59. package/dist/smart-cart/components/CartTitleBar/CartTitleBar.d.ts +7 -0
  60. package/dist/smart-cart/components/CartTitleBar/CartTitleBar.d.ts.map +1 -0
  61. package/dist/smart-cart/components/CheckoutArea/CheckoutArea.d.ts +10 -0
  62. package/dist/smart-cart/components/CheckoutArea/CheckoutArea.d.ts.map +1 -0
  63. package/dist/smart-cart/components/CrossSell/CrossSell.d.ts +10 -0
  64. package/dist/smart-cart/components/CrossSell/CrossSell.d.ts.map +1 -0
  65. package/dist/smart-cart/components/CustomCode/CustomCodeBlock.d.ts +21 -0
  66. package/dist/smart-cart/components/CustomCode/CustomCodeBlock.d.ts.map +1 -0
  67. package/dist/smart-cart/components/DebugPanel/DebugPanel.d.ts +13 -0
  68. package/dist/smart-cart/components/DebugPanel/DebugPanel.d.ts.map +1 -0
  69. package/dist/smart-cart/components/DebugPanel/index.d.ts +11 -0
  70. package/dist/smart-cart/components/DebugPanel/index.d.ts.map +1 -0
  71. package/dist/smart-cart/components/DiscountCodeInput/DiscountCodeInput.d.ts +10 -0
  72. package/dist/smart-cart/components/DiscountCodeInput/DiscountCodeInput.d.ts.map +1 -0
  73. package/dist/smart-cart/components/EmptyCart/EmptyCart.d.ts +3 -0
  74. package/dist/smart-cart/components/EmptyCart/EmptyCart.d.ts.map +1 -0
  75. package/dist/smart-cart/components/LoginButton/LoginButton.d.ts +3 -0
  76. package/dist/smart-cart/components/LoginButton/LoginButton.d.ts.map +1 -0
  77. package/dist/smart-cart/components/ScreenReaderText/ScreenReaderText.d.ts +8 -0
  78. package/dist/smart-cart/components/ScreenReaderText/ScreenReaderText.d.ts.map +1 -0
  79. package/dist/smart-cart/components/SmartCartApp/SmartCartApp.d.ts +20 -0
  80. package/dist/smart-cart/components/SmartCartApp/SmartCartApp.d.ts.map +1 -0
  81. package/dist/smart-cart/components/SmartCartContainer/SmartCartContainer.d.ts +8 -0
  82. package/dist/smart-cart/components/SmartCartContainer/SmartCartContainer.d.ts.map +1 -0
  83. package/dist/smart-cart/components/TieredProgressBar/Icons.d.ts +5 -0
  84. package/dist/smart-cart/components/TieredProgressBar/Icons.d.ts.map +1 -0
  85. package/dist/smart-cart/components/TieredProgressBar/TPBGiftItem.d.ts +21 -0
  86. package/dist/smart-cart/components/TieredProgressBar/TPBGiftItem.d.ts.map +1 -0
  87. package/dist/smart-cart/components/TieredProgressBar/TieredProgressBar.d.ts +11 -0
  88. package/dist/smart-cart/components/TieredProgressBar/TieredProgressBar.d.ts.map +1 -0
  89. package/dist/smart-cart/components/TieredProgressBar/progressBarUtils.d.ts +173 -0
  90. package/dist/smart-cart/components/TieredProgressBar/progressBarUtils.d.ts.map +1 -0
  91. package/dist/smart-cart/components/TieredProgressBar/types.d.ts +261 -0
  92. package/dist/smart-cart/components/TieredProgressBar/types.d.ts.map +1 -0
  93. package/dist/smart-cart/components/_Layouts/AnchorSlot.d.ts +13 -0
  94. package/dist/smart-cart/components/_Layouts/AnchorSlot.d.ts.map +1 -0
  95. package/dist/smart-cart/components/_Layouts/DoubleColumnLayout.d.ts +9 -0
  96. package/dist/smart-cart/components/_Layouts/DoubleColumnLayout.d.ts.map +1 -0
  97. package/dist/smart-cart/components/_Layouts/SingleColumnLayout.d.ts +8 -0
  98. package/dist/smart-cart/components/_Layouts/SingleColumnLayout.d.ts.map +1 -0
  99. package/dist/smart-cart/components/componentRegistry.d.ts +3 -0
  100. package/dist/smart-cart/components/componentRegistry.d.ts.map +1 -0
  101. package/dist/smart-cart/constants.d.ts +57 -0
  102. package/dist/smart-cart/constants.d.ts.map +1 -0
  103. package/dist/smart-cart/context/SmartCartContext.d.ts +62 -0
  104. package/dist/smart-cart/context/SmartCartContext.d.ts.map +1 -0
  105. package/dist/smart-cart/context/StorefrontCartContext.d.ts +32 -0
  106. package/dist/smart-cart/context/StorefrontCartContext.d.ts.map +1 -0
  107. package/dist/smart-cart/hooks/useCartItemFeatures.d.ts +84 -0
  108. package/dist/smart-cart/hooks/useCartItemFeatures.d.ts.map +1 -0
  109. package/dist/smart-cart/hooks/useDiscountManager.d.ts +28 -0
  110. package/dist/smart-cart/hooks/useDiscountManager.d.ts.map +1 -0
  111. package/dist/smart-cart/hooks/useGeolocation.d.ts +12 -0
  112. package/dist/smart-cart/hooks/useGeolocation.d.ts.map +1 -0
  113. package/dist/smart-cart/hooks/useIsScrolled.d.ts +14 -0
  114. package/dist/smart-cart/hooks/useIsScrolled.d.ts.map +1 -0
  115. package/dist/smart-cart/hooks/useSmartCartApps.d.ts +17 -0
  116. package/dist/smart-cart/hooks/useSmartCartApps.d.ts.map +1 -0
  117. package/dist/smart-cart/store/tieredProgressBarStore.d.ts +76 -0
  118. package/dist/smart-cart/store/tieredProgressBarStore.d.ts.map +1 -0
  119. package/dist/smart-cart/types/rebuy-storefront-cart.d.ts +142 -0
  120. package/dist/smart-cart/types/rebuy-storefront-cart.d.ts.map +1 -0
  121. package/dist/smart-cart/types/rebuy.d.ts +15 -0
  122. package/dist/smart-cart/types/rebuy.d.ts.map +1 -0
  123. package/dist/smart-cart/types/shop.d.ts +26 -0
  124. package/dist/smart-cart/types/shop.d.ts.map +1 -0
  125. package/dist/smart-cart/types/smart-cart-app.d.ts +103 -0
  126. package/dist/smart-cart/types/smart-cart-app.d.ts.map +1 -0
  127. package/dist/smart-cart/types/smart-cart-component.d.ts +1350 -0
  128. package/dist/smart-cart/types/smart-cart-component.d.ts.map +1 -0
  129. package/dist/smart-cart/types/smart-cart.d.ts +82 -0
  130. package/dist/smart-cart/types/smart-cart.d.ts.map +1 -0
  131. package/dist/smart-cart/utils/cartItemUtils.d.ts +292 -0
  132. package/dist/smart-cart/utils/cartItemUtils.d.ts.map +1 -0
  133. package/dist/smart-cart/utils/debugLog.d.ts +77 -0
  134. package/dist/smart-cart/utils/debugLog.d.ts.map +1 -0
  135. package/dist/smart-cart/utils/debugStyles.d.ts +3342 -0
  136. package/dist/smart-cart/utils/debugStyles.d.ts.map +1 -0
  137. package/dist/smart-cart/utils/executeScriptsInContainer.d.ts +14 -0
  138. package/dist/smart-cart/utils/executeScriptsInContainer.d.ts.map +1 -0
  139. package/dist/smart-cart/utils/imageUtils.d.ts +2 -0
  140. package/dist/smart-cart/utils/imageUtils.d.ts.map +1 -0
  141. package/dist/smart-cart/utils/mapHydrogenCartToStorefrontCartData.d.ts +14 -0
  142. package/dist/smart-cart/utils/mapHydrogenCartToStorefrontCartData.d.ts.map +1 -0
  143. package/dist/smart-cart/utils/moneyUtils.d.ts +24 -0
  144. package/dist/smart-cart/utils/moneyUtils.d.ts.map +1 -0
  145. package/dist/smart-cart/utils/safeJsonParse.d.ts +2 -0
  146. package/dist/smart-cart/utils/safeJsonParse.d.ts.map +1 -0
  147. package/dist/types/common.d.ts +9 -0
  148. package/dist/types/common.d.ts.map +1 -1
  149. package/dist/types/rebuyCustom.d.ts +86 -6
  150. package/dist/types/rebuyCustom.d.ts.map +1 -1
  151. package/dist/types/widgets.d.ts +20068 -0
  152. package/dist/types/widgets.d.ts.map +1 -1
  153. package/dist/utils/createContextParameters.d.ts.map +1 -1
  154. package/dist/utils/filterContextUtils.d.ts +3 -0
  155. package/dist/utils/filterContextUtils.d.ts.map +1 -0
  156. package/dist/utils/nonceManager.d.ts +10 -0
  157. package/dist/utils/nonceManager.d.ts.map +1 -0
  158. package/dist/widgetContainer/RebuyWidgetContainer.d.ts.map +1 -1
  159. package/dist/widgets/RebuyCompleteTheLook/RebuyCompleteTheLook.d.ts.map +1 -1
  160. package/dist/widgets/RebuyDynamicBundleProducts/BundleSelection.d.ts.map +1 -1
  161. package/dist/widgets/RebuyDynamicBundleProducts/RebuyDynamicBundleProducts.d.ts.map +1 -1
  162. package/dist/widgets/RebuyProductAddOns/RebuyProductAddOns.d.ts.map +1 -1
  163. package/dist/widgets/RebuyProductRecommendations/RebuyProductRecommendations.d.ts.map +1 -1
  164. package/dist/widgets/RebuyWidget/RebuyWidget.d.ts.map +1 -1
  165. package/dist/widgets/RebuyWidget/WidgetContent.d.ts +1 -1
  166. package/dist/widgets/RebuyWidget/WidgetContent.d.ts.map +1 -1
  167. package/dist/widgets/RebuyWidget/types.d.ts +3 -314
  168. package/dist/widgets/RebuyWidget/types.d.ts.map +1 -1
  169. package/package.json +14 -8
  170. package/dist/hooks/useRebuyTheme.d.ts +0 -21
  171. package/dist/hooks/useRebuyTheme.d.ts.map +0 -1
  172. package/dist/types/rebuySmartCart.d.ts +0 -184
  173. package/dist/types/rebuySmartCart.d.ts.map +0 -1
  174. package/dist/utils/csp.d.ts +0 -16
  175. package/dist/utils/csp.d.ts.map +0 -1
@@ -1,3 +1,3 @@
1
1
  import type { RebuyHydrogenContextProviderProps } from '~/providers/types';
2
- export declare const RebuyHydrogenContextProvider: ({ cart, children, overrideApiKey, publicStoreDomain, shop, }: RebuyHydrogenContextProviderProps) => import("react/jsx-runtime").JSX.Element;
2
+ export declare const RebuyHydrogenContextProvider: ({ cart, children, enableSmartCart, overrideApiKey, publicStoreDomain, publicStorefrontToken, shop, }: RebuyHydrogenContextProviderProps) => import("react/jsx-runtime").JSX.Element;
3
3
  //# sourceMappingURL=RebuyHydrogenContextProvider.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"RebuyHydrogenContextProvider.d.ts","sourceRoot":"","sources":["../../src/providers/RebuyHydrogenContextProvider.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAA6B,iCAAiC,EAAE,MAAM,mBAAmB,CAAC;AAwDtG,eAAO,MAAM,4BAA4B,GAAI,8DAM1C,iCAAiC,4CAsBnC,CAAC"}
1
+ {"version":3,"file":"RebuyHydrogenContextProvider.d.ts","sourceRoot":"","sources":["../../src/providers/RebuyHydrogenContextProvider.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAA6B,iCAAiC,EAAE,MAAM,mBAAmB,CAAC;AA6GtG,eAAO,MAAM,4BAA4B,GAAI,sGAQ1C,iCAAiC,4CA2BnC,CAAC"}
@@ -4,5 +4,5 @@ import type { RebuyHydrogenReactContextProviderProps } from '~/providers/types';
4
4
  * CartProvider (from @shopify/hydrogen-react), and wrapping the application
5
5
  * with the RebuyHydrogenReactContext.
6
6
  */
7
- export declare const RebuyHydrogenReactContextProvider: ({ cartFragment, children, countryIsoCode, customerAccessToken, data, languageIsoCode, numCartLines, onAttributesUpdate, onAttributesUpdateComplete, onBuyerIdentityUpdate, onBuyerIdentityUpdateComplete, onCreate, onCreateComplete, onDiscountCodesUpdate, onDiscountCodesUpdateComplete, onLineAdd, onLineAddComplete, onLineRemove, onLineRemoveComplete, onLineUpdate, onLineUpdateComplete, onNoteUpdate, onNoteUpdateComplete, overrideApiKey, publicPrimaryDomian, publicStoreDomain, publicStorefrontApiToken, publicStorefrontId, storefrontApiVersion, }: RebuyHydrogenReactContextProviderProps) => import("react/jsx-runtime").JSX.Element;
7
+ export declare const RebuyHydrogenReactContextProvider: ({ cart, cartFragment, children, countryIsoCode, customerAccessToken, enableSmartCart, languageIsoCode, numCartLines, onAttributesUpdate, onAttributesUpdateComplete, onBuyerIdentityUpdate, onBuyerIdentityUpdateComplete, onCreate, onCreateComplete, onDiscountCodesUpdate, onDiscountCodesUpdateComplete, onLineAdd, onLineAddComplete, onLineRemove, onLineRemoveComplete, onLineUpdate, onLineUpdateComplete, onNoteUpdate, onNoteUpdateComplete, overrideApiKey, publicPrimaryDomain, publicStoreDomain, publicStorefrontId, publicStorefrontToken, storefrontApiVersion, }: RebuyHydrogenReactContextProviderProps) => import("react/jsx-runtime").JSX.Element;
8
8
  //# sourceMappingURL=RebuyHydrogenReactContextProvider.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"RebuyHydrogenReactContextProvider.d.ts","sourceRoot":"","sources":["../../src/providers/RebuyHydrogenReactContextProvider.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,sCAAsC,EAA2B,MAAM,mBAAmB,CAAC;AAsFzG;;;;GAIG;AACH,eAAO,MAAM,iCAAiC,GAAI,qiBAoC/C,sCAAsC,4CAgFxC,CAAC"}
1
+ {"version":3,"file":"RebuyHydrogenReactContextProvider.d.ts","sourceRoot":"","sources":["../../src/providers/RebuyHydrogenReactContextProvider.tsx"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,sCAAsC,EAA2B,MAAM,mBAAmB,CAAC;AAsLzG;;;;GAIG;AACH,eAAO,MAAM,iCAAiC,GAAI,mjBAoC/C,sCAAsC,4CA2FxC,CAAC"}
@@ -1,45 +1,38 @@
1
- import type { Cart as HydrogenStorefrontApiCart } from '@shopify/hydrogen/storefront-api-types';
2
- import type { Attribute, Cart, CartLine, ComponentizableCartLine, CountryCode, LanguageCode, Maybe } from '@shopify/hydrogen-react/storefront-api-types';
1
+ import type { CartReturn } from '@shopify/hydrogen';
2
+ import type { CountryCode, Cart as HydrogenReactApiCart, LanguageCode } from '@shopify/hydrogen-react/storefront-api-types';
3
+ import type { Cart as HydrogenRemixCart } from '@shopify/hydrogen/storefront-api-types';
3
4
  import { type PartialDeep } from 'type-fest';
4
5
  export type RebuyHydrogenContextProps = {
5
6
  children: React.ReactNode;
7
+ enableSmartCart?: boolean;
8
+ publicStorefrontToken: string;
6
9
  shop: string;
7
- sourceHydrogenCart?: HydrogenStorefrontApiCart | null;
10
+ sourceHydrogenCart?: HydrogenRemixCart | null;
8
11
  };
9
12
  export type RebuyHydrogenContextProviderProps = {
10
- cart: Promise<HydrogenStorefrontApiCart | null>;
13
+ cart: CartReturn;
11
14
  children: React.ReactNode;
12
15
  enableSmartCart?: boolean;
13
16
  overrideApiKey?: string;
14
17
  publicStoreDomain: string;
15
- shop: string;
16
- };
17
- export type RebuyHydrogenProps = {
18
- apiKey?: string;
19
- cartAttributes?: Attribute[];
20
- cartCost?: string;
21
- cartId?: string;
22
- cartLines?: (CartLine | ComponentizableCartLine)[];
23
- cartNote?: Maybe<string>;
24
- cartQuantity?: number;
25
- children: React.ReactNode;
26
- publicStoreDomain: string;
18
+ publicStorefrontToken: string;
27
19
  shop: string;
28
20
  };
29
21
  export type RebuyHydrogenReactProps = {
30
22
  children: React.ReactNode;
31
23
  enableSmartCart?: boolean;
32
- publicPrimaryDomian: string;
24
+ publicPrimaryDomain: string;
25
+ publicStorefrontToken: string;
33
26
  shop?: string;
34
27
  };
35
28
  export type RebuyHydrogenReactContextProviderProps = {
29
+ cart?: PartialDeep<HydrogenReactApiCart, {
30
+ recurseIntoArrays: true;
31
+ }>;
36
32
  cartFragment?: string;
37
33
  children: React.ReactNode;
38
34
  countryIsoCode?: CountryCode;
39
35
  customerAccessToken?: string;
40
- data?: PartialDeep<Cart, {
41
- recurseIntoArrays: true;
42
- }>;
43
36
  enableSmartCart?: boolean;
44
37
  languageIsoCode?: LanguageCode;
45
38
  numCartLines?: number;
@@ -60,9 +53,8 @@ export type RebuyHydrogenReactContextProviderProps = {
60
53
  onNoteUpdate?: () => void;
61
54
  onNoteUpdateComplete?: () => void;
62
55
  overrideApiKey?: string;
63
- publicPrimaryDomian: string;
56
+ publicPrimaryDomain: string;
64
57
  publicStoreDomain: string;
65
- publicStorefrontApiToken: string;
66
58
  publicStorefrontId: string;
67
59
  publicStorefrontToken: string;
68
60
  shop?: string;
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/providers/types.ts"],"names":[],"mappings":"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"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/providers/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,KAAK,EACR,WAAW,EACX,IAAI,IAAI,oBAAoB,EAC5B,YAAY,EACf,MAAM,8CAA8C,CAAC;AAEtD,OAAO,KAAK,EAAE,IAAI,IAAI,iBAAiB,EAAE,MAAM,wCAAwC,CAAC;AAExF,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,WAAW,CAAC;AAE7C,MAAM,MAAM,yBAAyB,GAAG;IACpC,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,qBAAqB,EAAE,MAAM,CAAC;IAC9B,IAAI,EAAE,MAAM,CAAC;IACb,kBAAkB,CAAC,EAAE,iBAAiB,GAAG,IAAI,CAAC;CACjD,CAAC;AAEF,MAAM,MAAM,iCAAiC,GAAG;IAC5C,IAAI,EAAE,UAAU,CAAC;IACjB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,qBAAqB,EAAE,MAAM,CAAC;IAC9B,IAAI,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,MAAM,MAAM,uBAAuB,GAAG;IAClC,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,mBAAmB,EAAE,MAAM,CAAC;IAC5B,qBAAqB,EAAE,MAAM,CAAC;IAC9B,IAAI,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,MAAM,MAAM,sCAAsC,GAAG;IACjD,IAAI,CAAC,EAAE,WAAW,CAAC,oBAAoB,EAAE;QAAE,iBAAiB,EAAE,IAAI,CAAA;KAAE,CAAC,CAAC;IACtE,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,cAAc,CAAC,EAAE,WAAW,CAAC;IAC7B,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,eAAe,CAAC,EAAE,YAAY,CAAC;IAC/B,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,kBAAkB,CAAC,EAAE,MAAM,IAAI,CAAC;IAChC,0BAA0B,CAAC,EAAE,MAAM,IAAI,CAAC;IACxC,qBAAqB,CAAC,EAAE,MAAM,IAAI,CAAC;IACnC,6BAA6B,CAAC,EAAE,MAAM,IAAI,CAAC;IAC3C,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;IACtB,gBAAgB,CAAC,EAAE,MAAM,IAAI,CAAC;IAC9B,qBAAqB,CAAC,EAAE,MAAM,IAAI,CAAC;IACnC,6BAA6B,CAAC,EAAE,MAAM,IAAI,CAAC;IAC3C,SAAS,CAAC,EAAE,MAAM,IAAI,CAAC;IACvB,iBAAiB,CAAC,EAAE,MAAM,IAAI,CAAC;IAC/B,YAAY,CAAC,EAAE,MAAM,IAAI,CAAC;IAC1B,oBAAoB,CAAC,EAAE,MAAM,IAAI,CAAC;IAClC,YAAY,CAAC,EAAE,MAAM,IAAI,CAAC;IAC1B,oBAAoB,CAAC,EAAE,MAAM,IAAI,CAAC;IAClC,YAAY,CAAC,EAAE,MAAM,IAAI,CAAC;IAC1B,oBAAoB,CAAC,EAAE,MAAM,IAAI,CAAC;IAClC,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,mBAAmB,EAAE,MAAM,CAAC;IAC5B,iBAAiB,EAAE,MAAM,CAAC;IAC1B,kBAAkB,EAAE,MAAM,CAAC;IAC3B,qBAAqB,EAAE,MAAM,CAAC;IAC9B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,oBAAoB,CAAC,EAAE,MAAM,CAAC;CACjC,CAAC"}
@@ -1,5 +1,5 @@
1
- export declare const OPTION_FRAGMENT = "#graphql\n fragment OptionFragment on ProductOption {\n id\n name\n optionValues {\n id\n name\n swatch {\n color\n image {\n mediaContentType\n previewImage {\n height\n id\n url\n width\n altText\n }\n id\n alt\n }\n }\n }\n }\n";
2
- export declare const CART_LINE_FRAGMENT: "#graphql\n fragment CartLineFragment on CartLine {\n id\n quantity\n cost {\n amountPerQuantity {\n amount\n currencyCode\n }\n compareAtAmountPerQuantity {\n amount\n currencyCode\n }\n totalAmount {\n amount\n currencyCode\n }\n subtotalAmount {\n amount\n currencyCode\n }\n }\n attributes {\n key\n value\n }\n discountAllocations {\n discountedAmount {\n amount\n currencyCode\n }\n ... on CartAutomaticDiscountAllocation {\n __typename\n discountedAmount {\n amount\n currencyCode\n }\n title\n }\n ... on CartCodeDiscountAllocation {\n __typename\n code\n discountedAmount {\n amount\n currencyCode\n }\n }\n ... on CartCustomDiscountAllocation {\n __typename\n discountedAmount {\n amount\n currencyCode\n }\n title\n }\n }\n merchandise {\n ... on ProductVariant {\n availableForSale\n id\n sku\n title\n compareAtPrice {\n amount\n currencyCode\n }\n image {\n altText\n height\n id\n url\n width\n }\n price {\n amount\n currencyCode\n }\n product {\n handle\n id\n productType\n tags\n title\n vendor\n collections(first: 10) {\n nodes {\n handle\n }\n }\n options {\n ...OptionFragment\n }\n images(first: 20) {\n nodes {\n altText\n height\n id\n url\n width\n }\n }\n }\n selectedOptions {\n name\n value\n }\n }\n }\n }\n";
3
- export declare const CART_LINE_COMPONENT_FRAGMENT: "#graphql\n fragment CartLineComponentFragment on ComponentizableCartLine {\n id\n quantity\n cost {\n amountPerQuantity {\n amount\n currencyCode\n }\n compareAtAmountPerQuantity {\n amount\n currencyCode\n }\n totalAmount {\n amount\n currencyCode\n }\n subtotalAmount {\n amount\n currencyCode\n }\n }\n attributes {\n key\n value\n }\n discountAllocations {\n discountedAmount {\n amount\n currencyCode\n }\n ... on CartAutomaticDiscountAllocation {\n __typename\n discountedAmount {\n amount\n currencyCode\n }\n title\n }\n ... on CartCodeDiscountAllocation {\n __typename\n code\n discountedAmount {\n amount\n currencyCode\n }\n }\n ... on CartCustomDiscountAllocation {\n __typename\n discountedAmount {\n amount\n currencyCode\n }\n title\n }\n }\n merchandise {\n ... on ProductVariant {\n availableForSale\n id\n sku\n title\n compareAtPrice {\n amount\n currencyCode\n }\n image {\n altText\n height\n id\n url\n width\n }\n price {\n amount\n currencyCode\n }\n product {\n handle\n id\n productType\n tags\n title\n vendor\n collections(first: 10) {\n nodes {\n handle\n }\n }\n options {\n id\n name\n optionValues {\n id\n name\n swatch {\n color\n image {\n mediaContentType\n previewImage {\n height\n id\n url\n width\n altText\n }\n id\n alt\n }\n }\n }\n }\n images(first: 20) {\n nodes {\n altText\n height\n id\n url\n width\n }\n }\n }\n selectedOptions {\n name\n value\n }\n }\n }\n lineComponents {\n id\n quantity\n cost {\n amountPerQuantity {\n amount\n currencyCode\n }\n compareAtAmountPerQuantity {\n amount\n currencyCode\n }\n totalAmount {\n amount\n currencyCode\n }\n subtotalAmount {\n amount\n currencyCode\n }\n }\n attributes {\n key\n value\n }\n discountAllocations {\n discountedAmount {\n amount\n currencyCode\n }\n ... on CartAutomaticDiscountAllocation {\n __typename\n discountedAmount {\n amount\n currencyCode\n }\n title\n }\n ... on CartCodeDiscountAllocation {\n __typename\n code\n discountedAmount {\n amount\n currencyCode\n }\n }\n ... on CartCustomDiscountAllocation {\n __typename\n discountedAmount {\n amount\n currencyCode\n }\n title\n }\n }\n merchandise {\n ... on ProductVariant {\n availableForSale\n id\n sku\n title\n compareAtPrice {\n amount\n currencyCode\n }\n image {\n altText\n height\n id\n url\n width\n }\n price {\n amount\n currencyCode\n }\n product {\n handle\n id\n productType\n tags\n title\n vendor\n collections(first: 10) {\n nodes {\n handle\n }\n }\n options {\n ...OptionFragment\n }\n images(first: 20) {\n nodes {\n altText\n height\n id\n url\n width\n }\n }\n }\n selectedOptions {\n name\n value\n }\n }\n }\n }\n }\n";
4
- export declare const CART_FRAGMENT: "#graphql\n fragment CartFragment on Cart {\n id\n checkoutUrl\n createdAt\n totalQuantity\n note\n updatedAt\n __typename\n buyerIdentity {\n countryCode\n customer {\n id\n email\n firstName\n lastName\n displayName\n }\n email\n phone\n }\n attributes {\n key\n value\n }\n cost {\n subtotalAmount {\n amount\n currencyCode\n }\n totalAmount {\n amount\n currencyCode\n }\n }\n discountAllocations {\n discountedAmount {\n amount\n currencyCode\n }\n ... on CartAutomaticDiscountAllocation {\n __typename\n discountedAmount {\n amount\n currencyCode\n }\n title\n }\n ... on CartCodeDiscountAllocation {\n __typename\n code\n discountedAmount {\n amount\n currencyCode\n }\n }\n ... on CartCustomDiscountAllocation {\n __typename\n discountedAmount {\n amount\n currencyCode\n }\n title\n }\n }\n discountCodes {\n applicable\n code\n }\n lines(first: $numCartLines) {\n edges {\n node {\n ...CartLineComponentFragment\n }\n }\n edges {\n node {\n ...CartLineFragment\n }\n }\n }\n }\n #graphql\n fragment CartLineFragment on CartLine {\n id\n quantity\n cost {\n amountPerQuantity {\n amount\n currencyCode\n }\n compareAtAmountPerQuantity {\n amount\n currencyCode\n }\n totalAmount {\n amount\n currencyCode\n }\n subtotalAmount {\n amount\n currencyCode\n }\n }\n attributes {\n key\n value\n }\n discountAllocations {\n discountedAmount {\n amount\n currencyCode\n }\n ... on CartAutomaticDiscountAllocation {\n __typename\n discountedAmount {\n amount\n currencyCode\n }\n title\n }\n ... on CartCodeDiscountAllocation {\n __typename\n code\n discountedAmount {\n amount\n currencyCode\n }\n }\n ... on CartCustomDiscountAllocation {\n __typename\n discountedAmount {\n amount\n currencyCode\n }\n title\n }\n }\n merchandise {\n ... on ProductVariant {\n availableForSale\n id\n sku\n title\n compareAtPrice {\n amount\n currencyCode\n }\n image {\n altText\n height\n id\n url\n width\n }\n price {\n amount\n currencyCode\n }\n product {\n handle\n id\n productType\n tags\n title\n vendor\n collections(first: 10) {\n nodes {\n handle\n }\n }\n options {\n ...OptionFragment\n }\n images(first: 20) {\n nodes {\n altText\n height\n id\n url\n width\n }\n }\n }\n selectedOptions {\n name\n value\n }\n }\n }\n }\n\n #graphql\n fragment CartLineComponentFragment on ComponentizableCartLine {\n id\n quantity\n cost {\n amountPerQuantity {\n amount\n currencyCode\n }\n compareAtAmountPerQuantity {\n amount\n currencyCode\n }\n totalAmount {\n amount\n currencyCode\n }\n subtotalAmount {\n amount\n currencyCode\n }\n }\n attributes {\n key\n value\n }\n discountAllocations {\n discountedAmount {\n amount\n currencyCode\n }\n ... on CartAutomaticDiscountAllocation {\n __typename\n discountedAmount {\n amount\n currencyCode\n }\n title\n }\n ... on CartCodeDiscountAllocation {\n __typename\n code\n discountedAmount {\n amount\n currencyCode\n }\n }\n ... on CartCustomDiscountAllocation {\n __typename\n discountedAmount {\n amount\n currencyCode\n }\n title\n }\n }\n merchandise {\n ... on ProductVariant {\n availableForSale\n id\n sku\n title\n compareAtPrice {\n amount\n currencyCode\n }\n image {\n altText\n height\n id\n url\n width\n }\n price {\n amount\n currencyCode\n }\n product {\n handle\n id\n productType\n tags\n title\n vendor\n collections(first: 10) {\n nodes {\n handle\n }\n }\n options {\n id\n name\n optionValues {\n id\n name\n swatch {\n color\n image {\n mediaContentType\n previewImage {\n height\n id\n url\n width\n altText\n }\n id\n alt\n }\n }\n }\n }\n images(first: 20) {\n nodes {\n altText\n height\n id\n url\n width\n }\n }\n }\n selectedOptions {\n name\n value\n }\n }\n }\n lineComponents {\n id\n quantity\n cost {\n amountPerQuantity {\n amount\n currencyCode\n }\n compareAtAmountPerQuantity {\n amount\n currencyCode\n }\n totalAmount {\n amount\n currencyCode\n }\n subtotalAmount {\n amount\n currencyCode\n }\n }\n attributes {\n key\n value\n }\n discountAllocations {\n discountedAmount {\n amount\n currencyCode\n }\n ... on CartAutomaticDiscountAllocation {\n __typename\n discountedAmount {\n amount\n currencyCode\n }\n title\n }\n ... on CartCodeDiscountAllocation {\n __typename\n code\n discountedAmount {\n amount\n currencyCode\n }\n }\n ... on CartCustomDiscountAllocation {\n __typename\n discountedAmount {\n amount\n currencyCode\n }\n title\n }\n }\n merchandise {\n ... on ProductVariant {\n availableForSale\n id\n sku\n title\n compareAtPrice {\n amount\n currencyCode\n }\n image {\n altText\n height\n id\n url\n width\n }\n price {\n amount\n currencyCode\n }\n product {\n handle\n id\n productType\n tags\n title\n vendor\n collections(first: 10) {\n nodes {\n handle\n }\n }\n options {\n ...OptionFragment\n }\n images(first: 20) {\n nodes {\n altText\n height\n id\n url\n width\n }\n }\n }\n selectedOptions {\n name\n value\n }\n }\n }\n }\n }\n\n #graphql\n fragment OptionFragment on ProductOption {\n id\n name\n optionValues {\n id\n name\n swatch {\n color\n image {\n mediaContentType\n previewImage {\n height\n id\n url\n width\n altText\n }\n id\n alt\n }\n }\n }\n }\n\n";
1
+ export declare const OPTION_FRAGMENT = "#graphql\n fragment OptionFragment on ProductOption {\n __typename\n id\n name\n optionValues {\n __typename\n id\n name\n swatch {\n __typename\n color\n image {\n __typename\n mediaContentType\n previewImage {\n __typename\n height\n id\n url\n width\n altText\n }\n id\n alt\n }\n }\n }\n }\n";
2
+ export declare const CART_LINE_FRAGMENT: "#graphql\n fragment CartLineFragment on CartLine {\n __typename\n id\n quantity\n cost {\n __typename\n amountPerQuantity {\n __typename\n amount\n currencyCode\n }\n compareAtAmountPerQuantity {\n __typename\n amount\n currencyCode\n }\n totalAmount {\n __typename\n amount\n currencyCode\n }\n subtotalAmount {\n __typename\n amount\n currencyCode\n }\n }\n attributes {\n __typename\n key\n value\n }\n discountAllocations {\n discountedAmount {\n __typename\n amount\n currencyCode\n }\n ... on CartAutomaticDiscountAllocation {\n __typename\n discountedAmount {\n amount\n currencyCode\n }\n title\n }\n ... on CartCodeDiscountAllocation {\n __typename\n code\n discountedAmount {\n amount\n currencyCode\n }\n }\n ... on CartCustomDiscountAllocation {\n __typename\n discountedAmount {\n amount\n currencyCode\n }\n title\n }\n }\n merchandise {\n ... on ProductVariant {\n __typename\n availableForSale\n id\n sku\n title\n compareAtPrice {\n __typename\n amount\n currencyCode\n }\n image {\n __typename\n altText\n height\n id\n url\n width\n }\n price {\n __typename\n amount\n currencyCode\n }\n product {\n __typename\n handle\n id\n productType\n tags\n title\n vendor\n description\n requiresSellingPlan\n collections(first: 10) {\n __typename\n nodes {\n __typename\n handle\n }\n }\n options {\n ...OptionFragment\n }\n images(first: 20) {\n __typename\n nodes {\n __typename\n altText\n height\n id\n url\n width\n }\n }\n sellingPlanGroups(first: 100) {\n __typename\n edges {\n __typename\n node {\n __typename\n appName\n name\n options { __typename name values }\n sellingPlans(first: 100) {\n __typename\n edges {\n __typename\n node {\n __typename\n id\n name\n options { __typename name value }\n priceAdjustments {\n __typename\n adjustmentValue {\n __typename\n ... on SellingPlanFixedAmountPriceAdjustment {\n adjustmentAmount { __typename amount currencyCode }\n }\n ... on SellingPlanFixedPriceAdjustment {\n price { __typename amount currencyCode }\n }\n ... on SellingPlanPercentagePriceAdjustment {\n adjustmentPercentage\n }\n }\n }\n }\n }\n }\n }\n }\n }\n }\n selectedOptions {\n __typename\n name\n value\n }\n }\n }\n sellingPlanAllocation {\n __typename\n sellingPlan {\n __typename\n id\n name\n }\n }\n }\n";
3
+ export declare const CART_LINE_COMPONENT_FRAGMENT: "#graphql\n fragment CartLineComponentFragment on ComponentizableCartLine {\n __typename\n id\n quantity\n cost {\n __typename\n amountPerQuantity { __typename amount currencyCode }\n compareAtAmountPerQuantity { __typename amount currencyCode }\n totalAmount { __typename amount currencyCode }\n subtotalAmount { __typename amount currencyCode }\n }\n attributes { __typename key value }\n discountAllocations {\n discountedAmount { __typename amount currencyCode }\n ... on CartAutomaticDiscountAllocation {\n __typename\n discountedAmount { amount currencyCode }\n title\n }\n ... on CartCodeDiscountAllocation {\n __typename\n code\n discountedAmount { amount currencyCode }\n }\n ... on CartCustomDiscountAllocation {\n __typename\n discountedAmount { amount currencyCode }\n title\n }\n }\n merchandise {\n ... on ProductVariant {\n __typename\n availableForSale\n id\n sku\n title\n compareAtPrice { __typename amount currencyCode }\n image { __typename altText height id url width }\n price { __typename amount currencyCode }\n product {\n __typename\n handle\n id\n productType\n tags\n title\n vendor\n description\n requiresSellingPlan\n collections(first: 10) {\n __typename\n nodes { __typename handle }\n }\n options {\n id\n name\n optionValues {\n __typename\n id\n name\n swatch {\n __typename\n color\n image {\n __typename\n mediaContentType\n previewImage { __typename height id url width altText }\n id\n alt\n }\n }\n }\n }\n images(first: 20) {\n __typename\n nodes { __typename altText height id url width }\n }\n sellingPlanGroups(first: 100) {\n __typename\n edges {\n __typename\n node {\n __typename\n appName\n name\n options { __typename name values }\n sellingPlans(first: 100) {\n __typename\n edges {\n __typename\n node {\n __typename\n id\n name\n options { __typename name value }\n priceAdjustments {\n __typename\n adjustmentValue {\n __typename\n ... on SellingPlanFixedAmountPriceAdjustment { adjustmentAmount { __typename amount currencyCode } }\n ... on SellingPlanFixedPriceAdjustment { price { __typename amount currencyCode } }\n ... on SellingPlanPercentagePriceAdjustment { adjustmentPercentage }\n }\n }\n }\n }\n }\n }\n }\n }\n }\n selectedOptions { __typename name value }\n }\n }\n sellingPlanAllocation {\n __typename\n sellingPlan {\n __typename\n id\n name\n }\n }\n lineComponents {\n __typename\n id\n quantity\n cost {\n __typename\n amountPerQuantity { __typename amount currencyCode }\n compareAtAmountPerQuantity { __typename amount currencyCode }\n totalAmount { __typename amount currencyCode }\n subtotalAmount { __typename amount currencyCode }\n }\n attributes { __typename key value }\n discountAllocations {\n discountedAmount { __typename amount currencyCode }\n ... on CartAutomaticDiscountAllocation {\n __typename\n discountedAmount { amount currencyCode }\n title\n }\n ... on CartCodeDiscountAllocation {\n __typename\n code\n discountedAmount { amount currencyCode }\n }\n ... on CartCustomDiscountAllocation {\n __typename\n discountedAmount { amount currencyCode }\n title\n }\n }\n merchandise {\n ... on ProductVariant {\n __typename\n availableForSale\n id\n sku\n title\n compareAtPrice { __typename amount currencyCode }\n image { __typename altText height id url width }\n price { __typename amount currencyCode }\n product {\n __typename\n handle\n id\n productType\n tags\n title\n vendor\n description\n requiresSellingPlan\n collections(first: 10) {\n __typename\n nodes { __typename handle }\n }\n options {\n ...OptionFragment\n }\n images(first: 20) {\n __typename\n nodes { __typename altText height id url width }\n }\n sellingPlanGroups(first: 100) {\n __typename\n edges {\n __typename\n node {\n __typename\n appName\n name\n options { __typename name values }\n sellingPlans(first: 100) {\n __typename\n edges {\n __typename\n node {\n __typename\n id\n name\n options { __typename name value }\n priceAdjustments {\n __typename\n adjustmentValue {\n __typename\n ... on SellingPlanFixedAmountPriceAdjustment { adjustmentAmount { __typename amount currencyCode } }\n ... on SellingPlanFixedPriceAdjustment { price { __typename amount currencyCode } }\n ... on SellingPlanPercentagePriceAdjustment { adjustmentPercentage }\n }\n }\n }\n }\n }\n }\n }\n }\n }\n selectedOptions { __typename name value }\n }\n }\n sellingPlanAllocation {\n __typename\n sellingPlan {\n __typename\n id\n name\n }\n }\n }\n }\n";
4
+ export declare const CART_FRAGMENT: "#graphql\n fragment CartFragment on Cart {\n id\n checkoutUrl\n createdAt\n totalQuantity\n note\n updatedAt\n __typename\n buyerIdentity {\n __typename\n countryCode\n customer {\n __typename\n id\n email\n firstName\n lastName\n displayName\n }\n email\n phone\n }\n attributes {\n __typename\n key\n value\n }\n cost {\n __typename\n subtotalAmount {\n __typename\n amount\n currencyCode\n }\n totalAmount {\n __typename\n amount\n currencyCode\n }\n }\n discountAllocations {\n discountedAmount {\n __typename\n amount\n currencyCode\n }\n ... on CartAutomaticDiscountAllocation {\n __typename\n discountedAmount {\n amount\n currencyCode\n }\n title\n }\n ... on CartCodeDiscountAllocation {\n __typename\n code\n discountedAmount {\n amount\n currencyCode\n }\n }\n ... on CartCustomDiscountAllocation {\n __typename\n discountedAmount {\n amount\n currencyCode\n }\n title\n }\n }\n discountCodes {\n __typename\n applicable\n code\n }\n lines(first: $numCartLines) {\n __typename\n edges {\n __typename\n node {\n ...CartLineComponentFragment\n }\n }\n }\n }\n #graphql\n fragment CartLineFragment on CartLine {\n __typename\n id\n quantity\n cost {\n __typename\n amountPerQuantity {\n __typename\n amount\n currencyCode\n }\n compareAtAmountPerQuantity {\n __typename\n amount\n currencyCode\n }\n totalAmount {\n __typename\n amount\n currencyCode\n }\n subtotalAmount {\n __typename\n amount\n currencyCode\n }\n }\n attributes {\n __typename\n key\n value\n }\n discountAllocations {\n discountedAmount {\n __typename\n amount\n currencyCode\n }\n ... on CartAutomaticDiscountAllocation {\n __typename\n discountedAmount {\n amount\n currencyCode\n }\n title\n }\n ... on CartCodeDiscountAllocation {\n __typename\n code\n discountedAmount {\n amount\n currencyCode\n }\n }\n ... on CartCustomDiscountAllocation {\n __typename\n discountedAmount {\n amount\n currencyCode\n }\n title\n }\n }\n merchandise {\n ... on ProductVariant {\n __typename\n availableForSale\n id\n sku\n title\n compareAtPrice {\n __typename\n amount\n currencyCode\n }\n image {\n __typename\n altText\n height\n id\n url\n width\n }\n price {\n __typename\n amount\n currencyCode\n }\n product {\n __typename\n handle\n id\n productType\n tags\n title\n vendor\n description\n requiresSellingPlan\n collections(first: 10) {\n __typename\n nodes {\n __typename\n handle\n }\n }\n options {\n ...OptionFragment\n }\n images(first: 20) {\n __typename\n nodes {\n __typename\n altText\n height\n id\n url\n width\n }\n }\n sellingPlanGroups(first: 100) {\n __typename\n edges {\n __typename\n node {\n __typename\n appName\n name\n options { __typename name values }\n sellingPlans(first: 100) {\n __typename\n edges {\n __typename\n node {\n __typename\n id\n name\n options { __typename name value }\n priceAdjustments {\n __typename\n adjustmentValue {\n __typename\n ... on SellingPlanFixedAmountPriceAdjustment {\n adjustmentAmount { __typename amount currencyCode }\n }\n ... on SellingPlanFixedPriceAdjustment {\n price { __typename amount currencyCode }\n }\n ... on SellingPlanPercentagePriceAdjustment {\n adjustmentPercentage\n }\n }\n }\n }\n }\n }\n }\n }\n }\n }\n selectedOptions {\n __typename\n name\n value\n }\n }\n }\n sellingPlanAllocation {\n __typename\n sellingPlan {\n __typename\n id\n name\n }\n }\n }\n\n #graphql\n fragment CartLineComponentFragment on ComponentizableCartLine {\n __typename\n id\n quantity\n cost {\n __typename\n amountPerQuantity { __typename amount currencyCode }\n compareAtAmountPerQuantity { __typename amount currencyCode }\n totalAmount { __typename amount currencyCode }\n subtotalAmount { __typename amount currencyCode }\n }\n attributes { __typename key value }\n discountAllocations {\n discountedAmount { __typename amount currencyCode }\n ... on CartAutomaticDiscountAllocation {\n __typename\n discountedAmount { amount currencyCode }\n title\n }\n ... on CartCodeDiscountAllocation {\n __typename\n code\n discountedAmount { amount currencyCode }\n }\n ... on CartCustomDiscountAllocation {\n __typename\n discountedAmount { amount currencyCode }\n title\n }\n }\n merchandise {\n ... on ProductVariant {\n __typename\n availableForSale\n id\n sku\n title\n compareAtPrice { __typename amount currencyCode }\n image { __typename altText height id url width }\n price { __typename amount currencyCode }\n product {\n __typename\n handle\n id\n productType\n tags\n title\n vendor\n description\n requiresSellingPlan\n collections(first: 10) {\n __typename\n nodes { __typename handle }\n }\n options {\n id\n name\n optionValues {\n __typename\n id\n name\n swatch {\n __typename\n color\n image {\n __typename\n mediaContentType\n previewImage { __typename height id url width altText }\n id\n alt\n }\n }\n }\n }\n images(first: 20) {\n __typename\n nodes { __typename altText height id url width }\n }\n sellingPlanGroups(first: 100) {\n __typename\n edges {\n __typename\n node {\n __typename\n appName\n name\n options { __typename name values }\n sellingPlans(first: 100) {\n __typename\n edges {\n __typename\n node {\n __typename\n id\n name\n options { __typename name value }\n priceAdjustments {\n __typename\n adjustmentValue {\n __typename\n ... on SellingPlanFixedAmountPriceAdjustment { adjustmentAmount { __typename amount currencyCode } }\n ... on SellingPlanFixedPriceAdjustment { price { __typename amount currencyCode } }\n ... on SellingPlanPercentagePriceAdjustment { adjustmentPercentage }\n }\n }\n }\n }\n }\n }\n }\n }\n }\n selectedOptions { __typename name value }\n }\n }\n sellingPlanAllocation {\n __typename\n sellingPlan {\n __typename\n id\n name\n }\n }\n lineComponents {\n __typename\n id\n quantity\n cost {\n __typename\n amountPerQuantity { __typename amount currencyCode }\n compareAtAmountPerQuantity { __typename amount currencyCode }\n totalAmount { __typename amount currencyCode }\n subtotalAmount { __typename amount currencyCode }\n }\n attributes { __typename key value }\n discountAllocations {\n discountedAmount { __typename amount currencyCode }\n ... on CartAutomaticDiscountAllocation {\n __typename\n discountedAmount { amount currencyCode }\n title\n }\n ... on CartCodeDiscountAllocation {\n __typename\n code\n discountedAmount { amount currencyCode }\n }\n ... on CartCustomDiscountAllocation {\n __typename\n discountedAmount { amount currencyCode }\n title\n }\n }\n merchandise {\n ... on ProductVariant {\n __typename\n availableForSale\n id\n sku\n title\n compareAtPrice { __typename amount currencyCode }\n image { __typename altText height id url width }\n price { __typename amount currencyCode }\n product {\n __typename\n handle\n id\n productType\n tags\n title\n vendor\n description\n requiresSellingPlan\n collections(first: 10) {\n __typename\n nodes { __typename handle }\n }\n options {\n ...OptionFragment\n }\n images(first: 20) {\n __typename\n nodes { __typename altText height id url width }\n }\n sellingPlanGroups(first: 100) {\n __typename\n edges {\n __typename\n node {\n __typename\n appName\n name\n options { __typename name values }\n sellingPlans(first: 100) {\n __typename\n edges {\n __typename\n node {\n __typename\n id\n name\n options { __typename name value }\n priceAdjustments {\n __typename\n adjustmentValue {\n __typename\n ... on SellingPlanFixedAmountPriceAdjustment { adjustmentAmount { __typename amount currencyCode } }\n ... on SellingPlanFixedPriceAdjustment { price { __typename amount currencyCode } }\n ... on SellingPlanPercentagePriceAdjustment { adjustmentPercentage }\n }\n }\n }\n }\n }\n }\n }\n }\n }\n selectedOptions { __typename name value }\n }\n }\n sellingPlanAllocation {\n __typename\n sellingPlan {\n __typename\n id\n name\n }\n }\n }\n }\n\n #graphql\n fragment OptionFragment on ProductOption {\n __typename\n id\n name\n optionValues {\n __typename\n id\n name\n swatch {\n __typename\n color\n image {\n __typename\n mediaContentType\n previewImage {\n __typename\n height\n id\n url\n width\n altText\n }\n id\n alt\n }\n }\n }\n }\n\n";
5
5
  //# sourceMappingURL=cart.queries.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"cart.queries.d.ts","sourceRoot":"","sources":["../../src/queries/cart.queries.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,eAAe,sYAwB3B,CAAC;AAOF,eAAO,MAAM,kBAAkB,m+DA6GrB,CAAC;AAEX,eAAO,MAAM,4BAA4B,8lJA6O/B,CAAC;AAEX,eAAO,MAAM,aAAa,k2QAqFhB,CAAC"}
1
+ {"version":3,"file":"cart.queries.d.ts","sourceRoot":"","sources":["../../src/queries/cart.queries.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,eAAe,0eA6B3B,CAAC;AAOF,eAAO,MAAM,kBAAkB,24HAgLrB,CAAC;AAEX,eAAO,MAAM,4BAA4B,u0NAwO/B,CAAC;AAEX,eAAO,MAAM,aAAa,msZA0FhB,CAAC"}
@@ -0,0 +1,10 @@
1
+ import type React from 'react';
2
+ /**
3
+ * RebuySmartCart component
4
+ *
5
+ * This component renders the Smart Cart UI.
6
+ * It assumes that SmartCartProvider is already rendered higher up in the component tree
7
+ * by RebuyHydrogenReactContextProvider.
8
+ */
9
+ export declare const RebuySmartCart: React.FC;
10
+ //# sourceMappingURL=RebuySmartCart.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RebuySmartCart.d.ts","sourceRoot":"","sources":["../../src/smart-cart/RebuySmartCart.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B;;;;;;GAMG;AACH,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EAGlC,CAAC"}
@@ -0,0 +1,10 @@
1
+ import React from 'react';
2
+ import type { SmartCartComponentConfig } from '~/smart-cart/types/smart-cart-component';
3
+ /**
4
+ * Renders a rotating announcement bar based on configuration settings.
5
+ * Uses a simple timer-based carousel.
6
+ */
7
+ export declare const AnnouncementBar: React.MemoExoticComponent<({ componentConfig }: {
8
+ componentConfig: SmartCartComponentConfig;
9
+ }) => import("react/jsx-runtime").JSX.Element | null>;
10
+ //# sourceMappingURL=AnnouncementBar.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AnnouncementBar.d.ts","sourceRoot":"","sources":["../../../../src/smart-cart/components/AnnouncementBar/AnnouncementBar.tsx"],"names":[],"mappings":"AACA,OAAO,KAA4D,MAAM,OAAO,CAAC;AAIjF,OAAO,KAAK,EAA2B,wBAAwB,EAAE,MAAM,yCAAyC,CAAC;AASjH;;;GAGG;AACH,eAAO,MAAM,eAAe,kDAAoC;IAAE,eAAe,EAAE,wBAAwB,CAAA;CAAE,oDAoM3G,CAAC"}
@@ -0,0 +1,7 @@
1
+ import type { StorefrontCartLine } from '~/smart-cart/types/rebuy-storefront-cart';
2
+ type CartItemProps = {
3
+ line: StorefrontCartLine;
4
+ };
5
+ export declare const CartItem: React.FC<CartItemProps>;
6
+ export {};
7
+ //# sourceMappingURL=CartItem.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CartItem.d.ts","sourceRoot":"","sources":["../../../../src/smart-cart/components/CartItem/CartItem.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,0CAA0C,CAAC;AAiBnF,KAAK,aAAa,GAAG;IACjB,IAAI,EAAE,kBAAkB,CAAC;CAC5B,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE,KAAK,CAAC,EAAE,CAAC,aAAa,CAijB5C,CAAC"}
@@ -0,0 +1,10 @@
1
+ import type React from 'react';
2
+ import type { SmartCartComponentConfig } from '~/smart-cart/types/smart-cart-component';
3
+ type CartItemListProps = {
4
+ componentConfig: Extract<SmartCartComponentConfig, {
5
+ type: 'cart_items';
6
+ }>;
7
+ };
8
+ export declare const CartItemList: React.FC<CartItemListProps>;
9
+ export {};
10
+ //# sourceMappingURL=CartItemList.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CartItemList.d.ts","sourceRoot":"","sources":["../../../../src/smart-cart/components/CartItemList/CartItemList.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,yCAAyC,CAAC;AAMxF,KAAK,iBAAiB,GAAG;IACrB,eAAe,EAAE,OAAO,CAAC,wBAAwB,EAAE;QAAE,IAAI,EAAE,YAAY,CAAA;KAAE,CAAC,CAAC;CAC9E,CAAC;AAEF,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,CAuCpD,CAAC"}
@@ -0,0 +1,10 @@
1
+ import React from 'react';
2
+ import type { SmartCartComponentConfig } from '~/smart-cart/types/smart-cart-component';
3
+ type CartNoteInputProps = {
4
+ componentConfig: Extract<SmartCartComponentConfig, {
5
+ type: 'notes';
6
+ }>;
7
+ };
8
+ export declare const CartNoteInput: React.MemoExoticComponent<({ componentConfig }: CartNoteInputProps) => import("react/jsx-runtime").JSX.Element | null>;
9
+ export {};
10
+ //# sourceMappingURL=CartNoteInput.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CartNoteInput.d.ts","sourceRoot":"","sources":["../../../../src/smart-cart/components/CartNoteInput/CartNoteInput.tsx"],"names":[],"mappings":"AACA,OAAO,KAA4D,MAAM,OAAO,CAAC;AAIjF,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,yCAAyC,CAAC;AAMxF,KAAK,kBAAkB,GAAG;IACtB,eAAe,EAAE,OAAO,CAAC,wBAAwB,EAAE;QAAE,IAAI,EAAE,OAAO,CAAA;KAAE,CAAC,CAAC;CACzE,CAAC;AAOF,eAAO,MAAM,aAAa,kDAAoC,kBAAkB,oDA6R9E,CAAC"}
@@ -0,0 +1,11 @@
1
+ import React from 'react';
2
+ import type { SmartCartComponentConfig } from '~/smart-cart/types/smart-cart-component';
3
+ type CartSubtotalProps = {
4
+ componentConfig: Extract<SmartCartComponentConfig, {
5
+ type: 'cart_subtotal';
6
+ }>;
7
+ };
8
+ export declare const CartSubtotalComponent: ({ componentConfig }: CartSubtotalProps) => import("react/jsx-runtime").JSX.Element | null;
9
+ export declare const CartSubtotal: React.MemoExoticComponent<({ componentConfig }: CartSubtotalProps) => import("react/jsx-runtime").JSX.Element | null>;
10
+ export {};
11
+ //# sourceMappingURL=CartSubtotal.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CartSubtotal.d.ts","sourceRoot":"","sources":["../../../../src/smart-cart/components/CartSubtotal/CartSubtotal.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAyC,MAAM,OAAO,CAAC;AAW9D,OAAO,KAAK,EAAwB,wBAAwB,EAAE,MAAM,yCAAyC,CAAC;AAO9G,KAAK,iBAAiB,GAAG;IACrB,eAAe,EAAE,OAAO,CAAC,wBAAwB,EAAE;QAAE,IAAI,EAAE,eAAe,CAAA;KAAE,CAAC,CAAC;CACjF,CAAC;AAsBF,eAAO,MAAM,qBAAqB,GAAI,qBAAqB,iBAAiB,mDA8L3E,CAAC;AAEF,eAAO,MAAM,YAAY,kDAhMkC,iBAAiB,oDAgMf,CAAC"}
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ /**
3
+ * Renders the Smart Cart Title Bar based on configuration.
4
+ * Fetches settings from the SmartCartContext.
5
+ */
6
+ export declare const CartTitleBar: React.MemoExoticComponent<() => import("react/jsx-runtime").JSX.Element | null>;
7
+ //# sourceMappingURL=CartTitleBar.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CartTitleBar.d.ts","sourceRoot":"","sources":["../../../../src/smart-cart/components/CartTitleBar/CartTitleBar.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAkB,MAAM,OAAO,CAAC;AAQvC;;;GAGG;AACH,eAAO,MAAM,YAAY,iFAsCvB,CAAC"}
@@ -0,0 +1,10 @@
1
+ import React from 'react';
2
+ import type { SmartCartComponentConfig } from '~/smart-cart/types/smart-cart-component';
3
+ type CheckoutAreaProps = {
4
+ componentConfig: Extract<SmartCartComponentConfig, {
5
+ type: 'checkout';
6
+ }>;
7
+ };
8
+ export declare const CheckoutArea: React.MemoExoticComponent<({ componentConfig }: CheckoutAreaProps) => import("react/jsx-runtime").JSX.Element | null>;
9
+ export {};
10
+ //# sourceMappingURL=CheckoutArea.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CheckoutArea.d.ts","sourceRoot":"","sources":["../../../../src/smart-cart/components/CheckoutArea/CheckoutArea.tsx"],"names":[],"mappings":"AACA,OAAO,KAAoD,MAAM,OAAO,CAAC;AAKzE,OAAO,KAAK,EAAoB,wBAAwB,EAAE,MAAM,yCAAyC,CAAC;AAO1G,KAAK,iBAAiB,GAAG;IACrB,eAAe,EAAE,OAAO,CAAC,wBAAwB,EAAE;QAAE,IAAI,EAAE,UAAU,CAAA;KAAE,CAAC,CAAC;CAC5E,CAAC;AAGF,eAAO,MAAM,YAAY,kDAAoC,iBAAiB,oDA0V5E,CAAC"}
@@ -0,0 +1,10 @@
1
+ import type { SmartCartComponentConfig } from '~/smart-cart/types/smart-cart-component';
2
+ import './CrossSell.css';
3
+ type CrossSellProps = {
4
+ componentConfig: Extract<SmartCartComponentConfig, {
5
+ type: 'cross_sell_widget';
6
+ }>;
7
+ };
8
+ export declare const CrossSell: ({ componentConfig }: CrossSellProps) => import("react/jsx-runtime").JSX.Element | null;
9
+ export {};
10
+ //# sourceMappingURL=CrossSell.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CrossSell.d.ts","sourceRoot":"","sources":["../../../../src/smart-cart/components/CrossSell/CrossSell.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,yCAAyC,CAAC;AAExF,OAAO,iBAAiB,CAAC;AAEzB,KAAK,cAAc,GAAG;IAClB,eAAe,EAAE,OAAO,CAAC,wBAAwB,EAAE;QAAE,IAAI,EAAE,mBAAmB,CAAA;KAAE,CAAC,CAAC;CACrF,CAAC;AAEF,eAAO,MAAM,SAAS,GAAI,qBAAqB,cAAc,mDAc5D,CAAC"}
@@ -0,0 +1,21 @@
1
+ import React from 'react';
2
+ import type { SmartCartComponentConfig } from '~/smart-cart/types/smart-cart-component';
3
+ type CustomCodeBlockProps = {
4
+ /** The specific configuration object for this Custom Code Block instance. */
5
+ componentConfig: Extract<SmartCartComponentConfig, {
6
+ type: 'custom_code_block';
7
+ }>;
8
+ };
9
+ /**
10
+ * Renders arbitrary HTML and executes *all* associated <script> tags provided
11
+ * in the component's configuration. Mirrors the legacy CustomCode feature but
12
+ * supports multiple scripts within one block.
13
+ *
14
+ * ! WARNING: This component uses `dangerouslySetInnerHTML` and a script execution
15
+ * ! helper to run user-provided code. This approach avoids `eval()` to comply with
16
+ * ! Content Security Policies (CSP) but still carries risks (e.g., XSS).
17
+ * ! Use with extreme caution and ensure the provided HTML/JS is trusted.
18
+ */
19
+ export declare const CustomCodeBlock: React.MemoExoticComponent<({ componentConfig }: CustomCodeBlockProps) => import("react/jsx-runtime").JSX.Element | null>;
20
+ export {};
21
+ //# sourceMappingURL=CustomCodeBlock.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CustomCodeBlock.d.ts","sourceRoot":"","sources":["../../../../src/smart-cart/components/CustomCode/CustomCodeBlock.tsx"],"names":[],"mappings":"AACA,OAAO,KAAqC,MAAM,OAAO,CAAC;AAG1D,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,yCAAyC,CAAC;AAKxF,KAAK,oBAAoB,GAAG;IACxB,6EAA6E;IAC7E,eAAe,EAAE,OAAO,CAAC,wBAAwB,EAAE;QAAE,IAAI,EAAE,mBAAmB,CAAA;KAAE,CAAC,CAAC;CACrF,CAAC;AAEF;;;;;;;;;GASG;AACH,eAAO,MAAM,eAAe,kDAAoC,oBAAoB,oDA+ClF,CAAC"}
@@ -0,0 +1,13 @@
1
+ import { type CSSProperties, type ReactNode } from 'react';
2
+ export type DebugPanelProps = {
3
+ children: ReactNode;
4
+ debugKey?: string;
5
+ style?: CSSProperties;
6
+ toggleButtonStyle?: CSSProperties;
7
+ toggleButtonText?: {
8
+ hide?: string;
9
+ show?: string;
10
+ };
11
+ };
12
+ export declare const DebugPanel: React.FC<DebugPanelProps>;
13
+ //# sourceMappingURL=DebugPanel.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DebugPanel.d.ts","sourceRoot":"","sources":["../../../../src/smart-cart/components/DebugPanel/DebugPanel.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,aAAa,EAAE,KAAK,SAAS,EAAY,MAAM,OAAO,CAAC;AAKrE,MAAM,MAAM,eAAe,GAAG;IAC1B,QAAQ,EAAE,SAAS,CAAC;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,KAAK,CAAC,EAAE,aAAa,CAAC;IACtB,iBAAiB,CAAC,EAAE,aAAa,CAAC;IAClC,gBAAgB,CAAC,EAAE;QACf,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,IAAI,CAAC,EAAE,MAAM,CAAC;KACjB,CAAC;CACL,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CAgDhD,CAAC"}
@@ -0,0 +1,11 @@
1
+ import { type FC } from 'react';
2
+ import type { DebugPanelProps } from './DebugPanel';
3
+ /**
4
+ * Lazy-loaded debug panel that only renders when debug mode is active.
5
+ * This ensures zero overhead for production users who don't have debug mode enabled.
6
+ *
7
+ * @param {DebugPanelProps} props - The props for the debug panel.
8
+ * @returns {FC<DebugPanelProps>} The debug panel component.
9
+ */
10
+ export declare const DebugPanel: FC<DebugPanelProps>;
11
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/smart-cart/components/DebugPanel/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAkB,KAAK,EAAE,EAAE,MAAM,OAAO,CAAC;AAGhD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAKpD;;;;;;GAMG;AACH,eAAO,MAAM,UAAU,EAAE,EAAE,CAAC,eAAe,CAa1C,CAAC"}
@@ -0,0 +1,10 @@
1
+ import React from 'react';
2
+ type DiscountCodeInputProps = {
3
+ componentConfig: {
4
+ component_id: string;
5
+ };
6
+ };
7
+ export declare const DiscountCodeInputComponent: ({ componentConfig }: DiscountCodeInputProps) => import("react/jsx-runtime").JSX.Element | null;
8
+ export declare const DiscountCodeInput: React.MemoExoticComponent<({ componentConfig }: DiscountCodeInputProps) => import("react/jsx-runtime").JSX.Element | null>;
9
+ export {};
10
+ //# sourceMappingURL=DiscountCodeInput.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DiscountCodeInput.d.ts","sourceRoot":"","sources":["../../../../src/smart-cart/components/DiscountCodeInput/DiscountCodeInput.tsx"],"names":[],"mappings":"AAGA,OAAO,KAA4E,MAAM,OAAO,CAAC;AAWjG,KAAK,sBAAsB,GAAG;IAAE,eAAe,EAAE;QAAE,YAAY,EAAE,MAAM,CAAA;KAAE,CAAA;CAAE,CAAC;AAE5E,eAAO,MAAM,0BAA0B,GAAI,qBAAqB,sBAAsB,mDAwRrF,CAAC;AAEF,eAAO,MAAM,iBAAiB,kDA1RkC,sBAAsB,oDA0Rf,CAAC"}
@@ -0,0 +1,3 @@
1
+ import type React from 'react';
2
+ export declare const EmptyCart: React.FC;
3
+ //# sourceMappingURL=EmptyCart.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"EmptyCart.d.ts","sourceRoot":"","sources":["../../../../src/smart-cart/components/EmptyCart/EmptyCart.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAM/B,eAAO,MAAM,SAAS,EAAE,KAAK,CAAC,EAK7B,CAAC"}
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ export declare const LoginButton: React.MemoExoticComponent<() => import("react/jsx-runtime").JSX.Element | null>;
3
+ //# sourceMappingURL=LoginButton.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LoginButton.d.ts","sourceRoot":"","sources":["../../../../src/smart-cart/components/LoginButton/LoginButton.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAS1B,eAAO,MAAM,WAAW,iFA4BtB,CAAC"}
@@ -0,0 +1,8 @@
1
+ import type React from 'react';
2
+ import './ScreenReaderText.css';
3
+ type ScreenReaderTextProps = {
4
+ children: React.ReactNode;
5
+ };
6
+ export declare const ScreenReaderText: ({ children, ...props }: ScreenReaderTextProps) => import("react/jsx-runtime").JSX.Element;
7
+ export {};
8
+ //# sourceMappingURL=ScreenReaderText.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ScreenReaderText.d.ts","sourceRoot":"","sources":["../../../../src/smart-cart/components/ScreenReaderText/ScreenReaderText.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,wBAAwB,CAAC;AAEhC,KAAK,qBAAqB,GAAG;IACzB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC7B,CAAC;AAEF,eAAO,MAAM,gBAAgB,GAAI,wBAAwB,qBAAqB,4CAI7E,CAAC"}
@@ -0,0 +1,20 @@
1
+ import React from 'react';
2
+ import type { SmartCartComponentConfig } from '~/smart-cart/types/smart-cart-component';
3
+ type SmartCartAppProps = {
4
+ /** The specific configuration object for this Smart Cart App instance. */
5
+ componentConfig: Extract<SmartCartComponentConfig, {
6
+ type: 'smart_cart_app';
7
+ }>;
8
+ };
9
+ /**
10
+ * Renders a container for a specific Smart Cart App, fetching its content
11
+ * and executing its scripts via the useSmartCartApps hook.
12
+ *
13
+ * ! WARNING: This component uses `dangerouslySetInnerHTML` and a script execution
14
+ * ! helper to run code fetched from an API. This approach avoids `eval()` to comply
15
+ * ! with Content Security Policies (CSP) but still carries risks (e.g., XSS).
16
+ * ! Use with caution.
17
+ */
18
+ export declare const SmartCartApp: React.MemoExoticComponent<({ componentConfig }: SmartCartAppProps) => import("react/jsx-runtime").JSX.Element | null>;
19
+ export {};
20
+ //# sourceMappingURL=SmartCartApp.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SmartCartApp.d.ts","sourceRoot":"","sources":["../../../../src/smart-cart/components/SmartCartApp/SmartCartApp.tsx"],"names":[],"mappings":"AACA,OAAO,KAAqC,MAAM,OAAO,CAAC;AAK1D,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,yCAAyC,CAAC;AAIxF,KAAK,iBAAiB,GAAG;IACrB,0EAA0E;IAC1E,eAAe,EAAE,OAAO,CAAC,wBAAwB,EAAE;QAAE,IAAI,EAAE,gBAAgB,CAAA;KAAE,CAAC,CAAC;CAClF,CAAC;AAEF;;;;;;;;GAQG;AACH,eAAO,MAAM,YAAY,kDAAoC,iBAAiB,oDAiF5E,CAAC"}
@@ -0,0 +1,8 @@
1
+ import React from 'react';
2
+ import './Global.css';
3
+ type SmartCartContainerProps = {
4
+ containerId?: string;
5
+ };
6
+ export declare const SmartCartContainer: React.FC<SmartCartContainerProps>;
7
+ export {};
8
+ //# sourceMappingURL=SmartCartContainer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SmartCartContainer.d.ts","sourceRoot":"","sources":["../../../../src/smart-cart/components/SmartCartContainer/SmartCartContainer.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAkB,MAAM,OAAO,CAAC;AAQvC,OAAO,cAAc,CAAC;AAGtB,KAAK,uBAAuB,GAAG;IAAE,WAAW,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC;AAExD,eAAO,MAAM,kBAAkB,EAAE,KAAK,CAAC,EAAE,CAAC,uBAAuB,CA+EhE,CAAC"}
@@ -0,0 +1,5 @@
1
+ export declare const CheckIcon: () => import("react/jsx-runtime").JSX.Element;
2
+ export declare const ShippingIcon: () => import("react/jsx-runtime").JSX.Element;
3
+ export declare const DiscountIcon: () => import("react/jsx-runtime").JSX.Element;
4
+ export declare const GiftIcon: () => import("react/jsx-runtime").JSX.Element;
5
+ //# sourceMappingURL=Icons.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Icons.d.ts","sourceRoot":"","sources":["../../../../src/smart-cart/components/TieredProgressBar/Icons.tsx"],"names":[],"mappings":"AAMA,eAAO,MAAM,SAAS,+CAOrB,CAAC;AAEF,eAAO,MAAM,YAAY,+CAaxB,CAAC;AAEF,eAAO,MAAM,YAAY,+CAkBxB,CAAC;AAEF,eAAO,MAAM,QAAQ,+CAcpB,CAAC"}
@@ -0,0 +1,21 @@
1
+ import type React from 'react';
2
+ import { type TieredProgressBarQualifiedGiftState } from '~/smart-cart/components/TieredProgressBar/types';
3
+ type TieredProgressBarGiftItemProps = {
4
+ isGloballySyncing: boolean;
5
+ onAddOrReAdd: (tierId: string) => void;
6
+ onRemove: (tierId: string) => void;
7
+ onSelectVariant: (tierId: string, variantGid: string) => void;
8
+ product: TieredProgressBarQualifiedGiftState;
9
+ };
10
+ /**
11
+ * Renders an individual gift item within the Tiered Progress Bar's gift area.
12
+ * It displays product information, variant selection (if applicable),
13
+ * and action buttons (add/remove/re-add).
14
+ *
15
+ * @param {TieredProgressBarGiftItemProps} props The props for the component.
16
+ *
17
+ * @returns {React.ReactElement} The rendered gift item.
18
+ */
19
+ export declare const TieredProgressBarGiftItem: React.FC<TieredProgressBarGiftItemProps>;
20
+ export {};
21
+ //# sourceMappingURL=TPBGiftItem.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TPBGiftItem.d.ts","sourceRoot":"","sources":["../../../../src/smart-cart/components/TieredProgressBar/TPBGiftItem.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAEH,KAAK,mCAAmC,EAC3C,MAAM,iDAAiD,CAAC;AAQzD,KAAK,8BAA8B,GAAG;IAClC,iBAAiB,EAAE,OAAO,CAAC;IAC3B,YAAY,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;IACvC,QAAQ,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;IACnC,eAAe,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,KAAK,IAAI,CAAC;IAC9D,OAAO,EAAE,mCAAmC,CAAC;CAChD,CAAC;AAEF;;;;;;;;GAQG;AACH,eAAO,MAAM,yBAAyB,EAAE,KAAK,CAAC,EAAE,CAAC,8BAA8B,CAkI9E,CAAC"}
@@ -0,0 +1,11 @@
1
+ import React from 'react';
2
+ /**
3
+ * TieredProgressBar component.
4
+ * Displays progress towards different reward tiers (e.g., free shipping, discounts, free products)
5
+ * based on the cart subtotal. It interacts with the `tieredProgressBarStore` for its state
6
+ * and logic, and with `useSmartCart` for cart actions.
7
+ * This component does not take direct props as its configuration is managed via the store,
8
+ * initialized from settings provided in `SmartCartContext`.
9
+ */
10
+ export declare const TieredProgressBar: React.FC;
11
+ //# sourceMappingURL=TieredProgressBar.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TieredProgressBar.d.ts","sourceRoot":"","sources":["../../../../src/smart-cart/components/TieredProgressBar/TieredProgressBar.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAoD,MAAM,OAAO,CAAC;AAsCzE;;;;;;;GAOG;AACH,eAAO,MAAM,iBAAiB,EAAE,KAAK,CAAC,EA4ZpC,CAAC"}