@rebuy/rebuy-hydrogen 3.0.0-beta.15 → 3.0.0-beta.17

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 (60) hide show
  1. package/README.md +165 -4
  2. package/dist/components/ProductCard/ProductCard.d.ts +1 -1
  3. package/dist/components/ProductCard/ProductCard.d.ts.map +1 -1
  4. package/dist/components/ProductCard/types.d.ts +1 -0
  5. package/dist/components/ProductCard/types.d.ts.map +1 -1
  6. package/dist/components/ProductCarousel/ProductCarousel.d.ts +2 -16
  7. package/dist/components/ProductCarousel/ProductCarousel.d.ts.map +1 -1
  8. package/dist/components/ProductCarousel/types.d.ts +18 -0
  9. package/dist/components/ProductCarousel/types.d.ts.map +1 -0
  10. package/dist/components/RebuyLink/RebuyLink.d.ts +3 -0
  11. package/dist/components/RebuyLink/RebuyLink.d.ts.map +1 -0
  12. package/dist/components/RebuyLink/index.d.ts +2 -0
  13. package/dist/components/RebuyLink/index.d.ts.map +1 -0
  14. package/dist/components/RebuyLink/types.d.ts +10 -0
  15. package/dist/components/RebuyLink/types.d.ts.map +1 -0
  16. package/dist/constants/debug.d.ts +2 -1
  17. package/dist/constants/debug.d.ts.map +1 -1
  18. package/dist/index.css +68 -39
  19. package/dist/index.css.map +3 -3
  20. package/dist/index.d.ts +2 -0
  21. package/dist/index.d.ts.map +1 -1
  22. package/dist/index.js +838 -507
  23. package/dist/index.js.map +4 -4
  24. package/dist/index.mjs +754 -423
  25. package/dist/index.mjs.map +4 -4
  26. package/dist/smart-cart/components/CartItem/CartItem.d.ts.map +1 -1
  27. package/dist/smart-cart/components/LoginButton/LoginButton.d.ts.map +1 -1
  28. package/dist/smart-cart/components/SmartCartContainer/SmartCartContainer.d.ts.map +1 -1
  29. package/dist/types/common.d.ts +7 -0
  30. package/dist/types/common.d.ts.map +1 -1
  31. package/dist/types/rebuyCustom.d.ts +0 -1
  32. package/dist/types/rebuyCustom.d.ts.map +1 -1
  33. package/dist/types/shopify.d.ts +1 -2
  34. package/dist/types/shopify.d.ts.map +1 -1
  35. package/dist/utils/convertToRebuyProduct.d.ts.map +1 -1
  36. package/dist/widgetContainer/RebuyWidgetContainer.d.ts.map +1 -1
  37. package/dist/widgets/RebuyDynamicBundleProducts/BundleImages.d.ts.map +1 -1
  38. package/dist/widgets/RebuyDynamicBundleProducts/RebuyDynamicBundleProducts.d.ts.map +1 -1
  39. package/dist/widgets/RebuyProductAddOns/RebuyProductAddOnCard.d.ts.map +1 -1
  40. package/dist/widgets/RebuyProductAddOns/RebuyProductAddOns.d.ts.map +1 -1
  41. package/dist/widgets/RebuyProductViewed/RebuyProductViewed.d.ts +3 -0
  42. package/dist/widgets/RebuyProductViewed/RebuyProductViewed.d.ts.map +1 -0
  43. package/dist/widgets/RebuyProductViewed/index.d.ts +2 -0
  44. package/dist/widgets/RebuyProductViewed/index.d.ts.map +1 -0
  45. package/dist/widgets/RebuyProductViewed/types.d.ts +8 -0
  46. package/dist/widgets/RebuyProductViewed/types.d.ts.map +1 -0
  47. package/dist/widgets/RebuyRecentlyViewedProducts/RebuyRecentlyViewedProducts.d.ts +3 -0
  48. package/dist/widgets/RebuyRecentlyViewedProducts/RebuyRecentlyViewedProducts.d.ts.map +1 -0
  49. package/dist/widgets/RebuyRecentlyViewedProducts/index.d.ts +2 -0
  50. package/dist/widgets/RebuyRecentlyViewedProducts/index.d.ts.map +1 -0
  51. package/dist/widgets/RebuyRecentlyViewedProducts/types.d.ts +11 -0
  52. package/dist/widgets/RebuyRecentlyViewedProducts/types.d.ts.map +1 -0
  53. package/dist/widgets/RebuyWidget/RebuyWidget.d.ts.map +1 -1
  54. package/dist/widgets/RebuyWidget/WidgetContent.d.ts +1 -1
  55. package/dist/widgets/RebuyWidget/WidgetContent.d.ts.map +1 -1
  56. package/dist/widgets/RebuyWidget/types.d.ts +2 -0
  57. package/dist/widgets/RebuyWidget/types.d.ts.map +1 -1
  58. package/dist/zustandStores/productViewed.d.ts +9 -0
  59. package/dist/zustandStores/productViewed.d.ts.map +1 -0
  60. package/package.json +9 -4
package/README.md CHANGED
@@ -26,14 +26,18 @@ First, determine whether your application uses:
26
26
 
27
27
  This distinction is important as different hooks/functions are used in each case. Note that if you're using Hydrogen React, Hydrogen is also being used by default. Our components will call the appropriate hooks/functions/components for Hydrogen React applications.
28
28
 
29
+ ### Prerequisites
30
+
31
+ "@shopify/hydrogen": ">=2025.5.0",
32
+
33
+ - If you are also using hydrogen-react along with just hydrogen
34
+ "@shopify/hydrogen-react": ">=2025.4.0"
35
+
36
+
29
37
  ### Installation Steps
30
38
 
31
39
  1. Install the beta version of our package from npm:
32
40
 
33
- ```bash
34
- npm i @rebuy/rebuy-hydrogen@3.0.0-beta.15
35
- ```
36
-
37
41
  Package URL: [https://www.npmjs.com/package/@rebuy/rebuy-hydrogen](https://www.npmjs.com/package/@rebuy/rebuy-hydrogen)
38
42
 
39
43
  2. In your server entry file (typically `app/entry.server.tsx`), update the `createContentSecurityPolicy` to have `rebuyengine.com` in the `connectSrc`.
@@ -272,6 +276,33 @@ Dynamic widget that can be set up to display a widget that you have created in t
272
276
  | `variant` | The selected variant object. |
273
277
  | `variantId` | The selected variant ID. |
274
278
 
279
+ ### RebuyProductViewed
280
+
281
+ Place this component on any page or element where you would like to record that a customer has viewed one of your products. You will need to pass in either the entire product object, productID, or just the productHandle. This component will generate a UUID for registering the viewed products if a customerId is not passed along as well. To record a customer viewing a product and have that record attached to their customerID you will need to pass in the customerId as a sting.
282
+
283
+ **Properties:**
284
+
285
+ | Property | Description |
286
+ | :---- | :---- |
287
+ | `productId` | The Shopify product ID |
288
+ | `product` | The entire product object |
289
+ | `productHandle` | The product’s handle |
290
+ | `customerId` | The ID of the customer viewing the product. If no customerId is passed a UUID will be used locally instead. | |
291
+
292
+ ### RebuyRecentlyViewedProducts
293
+
294
+ Component returns a list of the products that a customer has recently viewed based on either their customerId or the generated UUID
295
+
296
+ **Properties:**
297
+
298
+ | `customTitleLevel` | Sets the initial title level (e.g., if set to `h2`, other titles in the component will adjust to `h3` accordingly) |
299
+ | :---- | :---- |
300
+ | `customTitleStyle` | An object of custom styles for the title (e.g., text color, text align) |
301
+ | `addToCartCallBack` | A callback function for custom functionality when items are added to the cart |
302
+ | `addToCartBtnText` | Custom text for the Add To Cart button |
303
+ | `productId` | If you pass in a shopify productId, then that product will be excluded from the list of returned products. Use case would be if on a product page and you do not want the product on that page also displaying in the recently viewed products component. | |
304
+
305
+
275
306
  ---
276
307
 
277
308
  # 🛒 Smart Cart Guide
@@ -295,6 +326,136 @@ Welcome to the Rebuy Smart Cart! This powerful suite of features is designed to
295
326
  >
296
327
  > If you are using a non-Remix Hydrogen setup or a different React framework, you will need to adapt these instructions. While the core GraphQL fragments for the cart query are reusable, your project's methods for fetching data and handling cart mutations will be different.
297
328
 
329
+ ## Enabling Smart Cart Toggle
330
+
331
+ To replace Hydrogen's native cart drawer with Rebuy's Smart Cart, follow these steps:
332
+
333
+ ### 1. Enable Smart Cart in the Provider
334
+
335
+ In your root layout file (`app/root.tsx`), add the `enableSmartCart` prop to your context provider and include the `RebuySmartCart` component:
336
+
337
+ **For Hydrogen-only Applications:**
338
+ ```typescript
339
+ <RebuyHydrogenContextProvider
340
+ cart={data.cart}
341
+ shop="example.com"
342
+ publicStoreDomain="example.myshopify.com"
343
+ enableSmartCart={true}
344
+ >
345
+ {/* Your app content */}
346
+ <RebuySmartCart />
347
+ </RebuyHydrogenContextProvider>
348
+ ```
349
+
350
+ **For Hydrogen React Applications:**
351
+ ```typescript
352
+ <RebuyHydrogenReactContextProvider
353
+ publicPrimaryDomain="example.com"
354
+ publicStoreDomain="example.myshopify.com"
355
+ publicStorefrontToken="1233456"
356
+ publicStorefrontId="12345678"
357
+ enableSmartCart={true}
358
+ >
359
+ {/* Your app content */}
360
+ <RebuySmartCart />
361
+ </RebuyHydrogenReactContextProvider>
362
+ ```
363
+
364
+ ### 2. Disable the Native Cart Aside
365
+
366
+ Comment out or remove the native `CartAside` component in your layout file (typically in `PageLayout.tsx` or similar):
367
+
368
+ ```typescript
369
+ // Before
370
+ <CartAside cart={cart} />
371
+
372
+ // After - Comment out or remove
373
+ {/* <CartAside cart={cart} /> */}
374
+ ```
375
+
376
+ ### 3. Update Cart Toggle Interactions
377
+
378
+ Replace the native cart toggle functionality with Rebuy's Smart Cart:
379
+
380
+ **In your Header component:**
381
+ ```typescript
382
+ import { useSmartCart } from '@rebuy/rebuy-hydrogen';
383
+
384
+ export function Header() {
385
+ const { toggleCart } = useSmartCart();
386
+
387
+ // In your cart button/icon
388
+ return (
389
+ <button
390
+ onClick={(e) => {
391
+ e.preventDefault();
392
+ toggleCart();
393
+ }}
394
+ >
395
+ Cart ({itemCount})
396
+ </button>
397
+ );
398
+ }
399
+ ```
400
+
401
+ ### 4. Update Add to Cart Actions
402
+
403
+ After successful add to cart actions, open the Smart Cart:
404
+
405
+ ```typescript
406
+ import { useSmartCart } from '@rebuy/rebuy-hydrogen';
407
+
408
+ export function ProductForm() {
409
+ const { toggleCart } = useSmartCart();
410
+
411
+ // After successful add to cart
412
+ const handleAddToCart = async () => {
413
+ // ... add to cart logic
414
+ toggleCart(); // Opens Smart Cart after adding item
415
+ };
416
+ }
417
+ ```
418
+
419
+ ### Complete Example
420
+
421
+ Here's a complete example of converting a cart badge component:
422
+
423
+ **Before (Hydrogen):**
424
+ ```typescript
425
+ function CartBadge() {
426
+ const { open } = useAside();
427
+
428
+ return (
429
+ <a href="/cart" onClick={(e) => {
430
+ e.preventDefault();
431
+ open('cart');
432
+ }}>
433
+ Cart
434
+ </a>
435
+ );
436
+ }
437
+ ```
438
+
439
+ **After (Rebuy Smart Cart):**
440
+ ```typescript
441
+ import { useSmartCart } from '@rebuy/rebuy-hydrogen';
442
+
443
+ function CartBadge() {
444
+ const { toggleCart } = useSmartCart();
445
+
446
+ return (
447
+ <a href="/cart" onClick={(e) => {
448
+ e.preventDefault();
449
+ toggleCart();
450
+ }}>
451
+ Cart
452
+ </a>
453
+ );
454
+ }
455
+ ```
456
+
457
+ > **Note:** The `useSmartCart` hook provides `toggleCart()` to toggle the cart open/closed, along with other cart state management functions.
458
+
298
459
  ## Prerequisites
299
460
 
300
461
  Before implementing Smart Cart features, ensure your cart route can handle JSON payloads and your GraphQL queries include the necessary fields for discount and subscription functionality.
@@ -1,3 +1,3 @@
1
1
  import type { ProductCardProps } from '~/components/ProductCard/types';
2
- export declare const ProductCard: ({ addToCartBtnText, addToCartCallback, isHydrogenReact, isInPopup, onPopupDismiss, product, productCardTitleLevel, settings, variantOptionsText, }: ProductCardProps) => import("react/jsx-runtime").JSX.Element;
2
+ export declare const ProductCard: ({ addToCartBtnText, addToCartCallback, isCrossSell, isHydrogenReact, isInPopup, onPopupDismiss, product, productCardTitleLevel, settings, variantOptionsText, }: ProductCardProps) => import("react/jsx-runtime").JSX.Element;
3
3
  //# sourceMappingURL=ProductCard.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ProductCard.d.ts","sourceRoot":"","sources":["../../../src/components/ProductCard/ProductCard.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,gCAAgC,CAAC;AAUvE,eAAO,MAAM,WAAW,GAAI,oJAUzB,gBAAgB,4CAoOlB,CAAC"}
1
+ {"version":3,"file":"ProductCard.d.ts","sourceRoot":"","sources":["../../../src/components/ProductCard/ProductCard.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,gCAAgC,CAAC;AAYvE,eAAO,MAAM,WAAW,GAAI,iKAWzB,gBAAgB,4CA0SlB,CAAC"}
@@ -3,6 +3,7 @@ import type { RebuyProduct } from '~/types/rebuyCustom';
3
3
  export type ProductCardProps = {
4
4
  addToCartBtnText?: string;
5
5
  addToCartCallback?: () => void;
6
+ isCrossSell?: boolean;
6
7
  isHydrogenReact?: boolean;
7
8
  isInPopup?: boolean;
8
9
  onPopupDismiss?: () => void;
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/ProductCard/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,gBAAgB,CAAC;AAC5D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAExD,MAAM,MAAM,gBAAgB,GAAG;IAC3B,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,iBAAiB,CAAC,EAAE,MAAM,IAAI,CAAC;IAC/B,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,cAAc,CAAC,EAAE,MAAM,IAAI,CAAC;IAC5B,OAAO,EAAE,YAAY,CAAC;IACtB,qBAAqB,EAAE,qBAAqB,CAAC;IAC7C,QAAQ,CAAC,EAAE,mBAAmB,CAAC;IAC/B,8DAA8D;IAC9D,kBAAkB,CAAC,EAAE,MAAM,CAAC;CAC/B,CAAC;AAEF,MAAM,MAAM,mBAAmB,GAAG;IAC9B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,cAAc,CAAC,EAAE;QACb,0BAA0B,EAAE,OAAO,CAAC;QACpC,aAAa,EAAE,OAAO,CAAC;QACvB,qFAAqF;QACrF,0BAA0B,EAAE,OAAO,CAAC;QACpC,wBAAwB,EAAE,MAAM,CAAC;QACjC,yBAAyB,EAAE,MAAM,CAAC;QAClC,oBAAoB,EAAE,MAAM,CAAC;QAC7B,kBAAkB,EAAE,MAAM,CAAC;QAC3B,yBAAyB,EAAE,OAAO,CAAC;QACnC,qBAAqB,EAAE,MAAM,CAAC;KACjC,CAAC;IACF,aAAa,CAAC,EAAE;QACZ,gBAAgB,EAAE,MAAM,CAAC;QACzB,OAAO,EAAE,OAAO,CAAC;QACjB,SAAS,EAAE,MAAM,CAAC;QAClB,SAAS,EAAE,MAAM,CAAC;KACrB,CAAC;IACF,gBAAgB,CAAC,EAAE;QACf,MAAM,EAAE,MAAM,CAAC;QACf,iBAAiB,EAAE;YACf,gBAAgB,EAAE,MAAM,CAAC;YACzB,yBAAyB,EAAE,OAAO,CAAC;YACnC,OAAO,EAAE,OAAO,CAAC;SACpB,CAAC;QACF,mBAAmB,EAAE;YACjB,OAAO,EAAE,OAAO,CAAC;YACjB,6BAA6B,EAAE,MAAM,CAAC;SACzC,CAAC;QACF,aAAa,EAAE,MAAM,CAAC;QACtB,eAAe,EAAE,MAAM,CAAC;QACxB,OAAO,EAAE,MAAM,CAAC;QAChB,QAAQ,EAAE,MAAM,CAAC;QACjB,kBAAkB,EAAE,OAAO,CAAC;QAC5B,IAAI,EAAE,MAAM,CAAC;KAChB,CAAC;IACF,eAAe,CAAC,EAAE,MAAM,CAAC;CAC5B,CAAC"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/ProductCard/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,gBAAgB,CAAC;AAC5D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAExD,MAAM,MAAM,gBAAgB,GAAG;IAC3B,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,iBAAiB,CAAC,EAAE,MAAM,IAAI,CAAC;IAC/B,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,cAAc,CAAC,EAAE,MAAM,IAAI,CAAC;IAC5B,OAAO,EAAE,YAAY,CAAC;IACtB,qBAAqB,EAAE,qBAAqB,CAAC;IAC7C,QAAQ,CAAC,EAAE,mBAAmB,CAAC;IAC/B,8DAA8D;IAC9D,kBAAkB,CAAC,EAAE,MAAM,CAAC;CAC/B,CAAC;AAEF,MAAM,MAAM,mBAAmB,GAAG;IAC9B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,cAAc,CAAC,EAAE;QACb,0BAA0B,EAAE,OAAO,CAAC;QACpC,aAAa,EAAE,OAAO,CAAC;QACvB,qFAAqF;QACrF,0BAA0B,EAAE,OAAO,CAAC;QACpC,wBAAwB,EAAE,MAAM,CAAC;QACjC,yBAAyB,EAAE,MAAM,CAAC;QAClC,oBAAoB,EAAE,MAAM,CAAC;QAC7B,kBAAkB,EAAE,MAAM,CAAC;QAC3B,yBAAyB,EAAE,OAAO,CAAC;QACnC,qBAAqB,EAAE,MAAM,CAAC;KACjC,CAAC;IACF,aAAa,CAAC,EAAE;QACZ,gBAAgB,EAAE,MAAM,CAAC;QACzB,OAAO,EAAE,OAAO,CAAC;QACjB,SAAS,EAAE,MAAM,CAAC;QAClB,SAAS,EAAE,MAAM,CAAC;KACrB,CAAC;IACF,gBAAgB,CAAC,EAAE;QACf,MAAM,EAAE,MAAM,CAAC;QACf,iBAAiB,EAAE;YACf,gBAAgB,EAAE,MAAM,CAAC;YACzB,yBAAyB,EAAE,OAAO,CAAC;YACnC,OAAO,EAAE,OAAO,CAAC;SACpB,CAAC;QACF,mBAAmB,EAAE;YACjB,OAAO,EAAE,OAAO,CAAC;YACjB,6BAA6B,EAAE,MAAM,CAAC;SACzC,CAAC;QACF,aAAa,EAAE,MAAM,CAAC;QACtB,eAAe,EAAE,MAAM,CAAC;QACxB,OAAO,EAAE,MAAM,CAAC;QAChB,QAAQ,EAAE,MAAM,CAAC;QACjB,kBAAkB,EAAE,OAAO,CAAC;QAC5B,IAAI,EAAE,MAAM,CAAC;KAChB,CAAC;IACF,eAAe,CAAC,EAAE,MAAM,CAAC;CAC5B,CAAC"}
@@ -1,17 +1,3 @@
1
- import type { ProductCardSettings } from '~/components/ProductCard/types';
2
- import type { ProductCardTitleLevel } from '~/types/common';
3
- import type { RebuyProduct } from '~/types/rebuyCustom';
4
- type ProductCarouselProps = {
5
- addToCartBtnText?: string;
6
- addToCartCallback?: () => void;
7
- columns: number;
8
- isHydrogenReact?: boolean;
9
- productCardTitleLevel: ProductCardTitleLevel;
10
- products: RebuyProduct[];
11
- settings: ProductCardSettings;
12
- showPagination?: boolean;
13
- variantOptionsText?: string;
14
- };
15
- export declare const ProductCarousel: ({ addToCartBtnText, addToCartCallback, columns, isHydrogenReact, productCardTitleLevel, products, settings, showPagination, variantOptionsText, }: ProductCarouselProps) => import("react/jsx-runtime").JSX.Element;
16
- export {};
1
+ import type { ProductCarouselProps } from './types';
2
+ export declare const ProductCarousel: ({ addToCartBtnText, addToCartCallback, columns, isCrossSell, isHydrogenReact, isInPopup, onPopupDismiss, productCardTitleLevel, products, settings, showPagination, variantOptionsText, }: ProductCarouselProps) => import("react/jsx-runtime").JSX.Element;
17
3
  //# sourceMappingURL=ProductCarousel.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ProductCarousel.d.ts","sourceRoot":"","sources":["../../../src/components/ProductCarousel/ProductCarousel.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,gCAAgC,CAAC;AAC1E,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,gBAAgB,CAAC;AAC5D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAGxD,KAAK,oBAAoB,GAAG;IACxB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,iBAAiB,CAAC,EAAE,MAAM,IAAI,CAAC;IAC/B,OAAO,EAAE,MAAM,CAAC;IAChB,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,qBAAqB,EAAE,qBAAqB,CAAC;IAC7C,QAAQ,EAAE,YAAY,EAAE,CAAC;IACzB,QAAQ,EAAE,mBAAmB,CAAC;IAC9B,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,kBAAkB,CAAC,EAAE,MAAM,CAAC;CAC/B,CAAC;AAEF,eAAO,MAAM,eAAe,GAAI,mJAU7B,oBAAoB,4CAqGtB,CAAC"}
1
+ {"version":3,"file":"ProductCarousel.d.ts","sourceRoot":"","sources":["../../../src/components/ProductCarousel/ProductCarousel.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAC;AAGpD,eAAO,MAAM,eAAe,GAAI,2LAa7B,oBAAoB,4CAwGtB,CAAC"}
@@ -0,0 +1,18 @@
1
+ import type { ProductCardTitleLevel } from '~/types/common';
2
+ import type { RebuyProduct } from '~/types/rebuyCustom';
3
+ import type { ProductCardSettings } from '../ProductCard/types';
4
+ export type ProductCarouselProps = {
5
+ addToCartBtnText?: string;
6
+ addToCartCallback?: () => void;
7
+ columns: number;
8
+ isCrossSell?: boolean;
9
+ isHydrogenReact?: boolean;
10
+ isInPopup?: boolean;
11
+ onPopupDismiss?: () => void;
12
+ productCardTitleLevel: ProductCardTitleLevel;
13
+ products: RebuyProduct[];
14
+ settings: ProductCardSettings;
15
+ showPagination?: boolean;
16
+ variantOptionsText?: string;
17
+ };
18
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/ProductCarousel/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,gBAAgB,CAAC;AAC5D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AAEhE,MAAM,MAAM,oBAAoB,GAAG;IAC/B,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,iBAAiB,CAAC,EAAE,MAAM,IAAI,CAAC;IAC/B,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,cAAc,CAAC,EAAE,MAAM,IAAI,CAAC;IAC5B,qBAAqB,EAAE,qBAAqB,CAAC;IAC7C,QAAQ,EAAE,YAAY,EAAE,CAAC;IACzB,QAAQ,EAAE,mBAAmB,CAAC;IAC9B,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,kBAAkB,CAAC,EAAE,MAAM,CAAC;CAC/B,CAAC"}
@@ -0,0 +1,3 @@
1
+ import type { RebuyLinkProps } from './types';
2
+ export declare const RebuyLink: ({ ariaLabel, children, className, handle, onClick, role }: RebuyLinkProps) => import("react/jsx-runtime").JSX.Element;
3
+ //# sourceMappingURL=RebuyLink.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RebuyLink.d.ts","sourceRoot":"","sources":["../../../src/components/RebuyLink/RebuyLink.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAE9C,eAAO,MAAM,SAAS,GAAI,2DAAoE,cAAc,4CAM3G,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { RebuyLink } from './RebuyLink';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/RebuyLink/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC"}
@@ -0,0 +1,10 @@
1
+ import type { ReactNode } from 'react';
2
+ export type RebuyLinkProps = {
3
+ ariaLabel: string;
4
+ children: ReactNode;
5
+ className?: string;
6
+ handle: string;
7
+ onClick?: () => void;
8
+ role?: string;
9
+ };
10
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/RebuyLink/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,MAAM,MAAM,cAAc,GAAG;IACzB,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,SAAS,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,IAAI,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC"}
@@ -22,6 +22,7 @@ export declare enum DebugKey {
22
22
  WIDGET_COMPLETE_THE_LOOK = "widget-complete-the-look",
23
23
  WIDGET_DYNAMIC_BUNDLE_PRODUCTS = "widget-dynamic-bundle-products",
24
24
  WIDGET_PRODUCT_ADD_ONS = "widget-product-add-ons",
25
- WIDGET_PRODUCT_RECOMMENDATIONS = "widget-product-recommendations"
25
+ WIDGET_PRODUCT_RECOMMENDATIONS = "widget-product-recommendations",
26
+ WIDGET_RECENTLY_VIEWED_PRODUCTS = "widget-recently-viewed-products"
26
27
  }
27
28
  //# sourceMappingURL=debug.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"debug.d.ts","sourceRoot":"","sources":["../../src/constants/debug.ts"],"names":[],"mappings":"AAAA,oBAAY,QAAQ;IAChB,WAAW,gBAAgB;IAC3B,WAAW,gBAAgB;IAC3B,oBAAoB,yBAAyB;IAC7C,6BAA6B,kCAAkC;IAC/D,cAAc,2BAA2B;IACzC,eAAe,4BAA4B;IAC3C,qBAAqB,kCAAkC;IACvD,YAAY,yBAAyB;IACrC,MAAM,mBAAmB;IACzB,cAAc,2BAA2B;IACzC,mBAAmB,gCAAgC;IACnD,eAAe,4BAA4B;IAC3C,oBAAoB,iCAAiC;IACrD,mBAAmB,gCAAgC;IACnD,eAAe,4BAA4B;IAC3C,eAAe,4BAA4B;IAC3C,MAAM,mBAAmB;IACzB,YAAY,yBAAyB;IACrC,oBAAoB,iCAAiC;IACrD,MAAM,iBAAiB;IACvB,wBAAwB,6BAA6B;IACrD,8BAA8B,mCAAmC;IACjE,sBAAsB,2BAA2B;IACjD,8BAA8B,mCAAmC;CACpE"}
1
+ {"version":3,"file":"debug.d.ts","sourceRoot":"","sources":["../../src/constants/debug.ts"],"names":[],"mappings":"AAAA,oBAAY,QAAQ;IAChB,WAAW,gBAAgB;IAC3B,WAAW,gBAAgB;IAC3B,oBAAoB,yBAAyB;IAC7C,6BAA6B,kCAAkC;IAC/D,cAAc,2BAA2B;IACzC,eAAe,4BAA4B;IAC3C,qBAAqB,kCAAkC;IACvD,YAAY,yBAAyB;IACrC,MAAM,mBAAmB;IACzB,cAAc,2BAA2B;IACzC,mBAAmB,gCAAgC;IACnD,eAAe,4BAA4B;IAC3C,oBAAoB,iCAAiC;IACrD,mBAAmB,gCAAgC;IACnD,eAAe,4BAA4B;IAC3C,eAAe,4BAA4B;IAC3C,MAAM,mBAAmB;IACzB,YAAY,yBAAyB;IACrC,oBAAoB,iCAAiC;IACrD,MAAM,iBAAiB;IACvB,wBAAwB,6BAA6B;IACrD,8BAA8B,mCAAmC;IACjE,sBAAsB,2BAA2B;IACjD,8BAA8B,mCAAmC;IACjE,+BAA+B,oCAAoC;CACtE"}
package/dist/index.css CHANGED
@@ -11,7 +11,7 @@
11
11
  clip: rect(0, 0, 0, 0);
12
12
  }
13
13
 
14
- /* ../../../../../tmp/tmp-185-ZlCKjNsAw7YW/opt/atlassian/pipelines/agent/build/src/smart-cart/components/AnnouncementBar/AnnouncementBar.css */
14
+ /* ../../../../../tmp/tmp-165-KjLeIGy7bNip/opt/atlassian/pipelines/agent/build/src/smart-cart/components/AnnouncementBar/AnnouncementBar.css */
15
15
  .AnnouncementBar_rebuy-announcement-bar__container {
16
16
  position: relative;
17
17
  background-color: var(--rb-color-banner-background);
@@ -47,7 +47,7 @@
47
47
  overflow-wrap: break-word;
48
48
  }
49
49
 
50
- /* ../../../../../tmp/tmp-185-ZlCKjNsAw7YW/opt/atlassian/pipelines/agent/build/src/smart-cart/components/CartItem/CartItem.css */
50
+ /* ../../../../../tmp/tmp-165-KjLeIGy7bNip/opt/atlassian/pipelines/agent/build/src/smart-cart/components/CartItem/CartItem.css */
51
51
  .CartItem_rebuy-cart-item {
52
52
  display: flex;
53
53
  position: relative;
@@ -562,7 +562,7 @@
562
562
  opacity: 0.5;
563
563
  }
564
564
 
565
- /* ../../../../../tmp/tmp-185-ZlCKjNsAw7YW/opt/atlassian/pipelines/agent/build/src/smart-cart/components/EmptyCart/EmptyCart.css */
565
+ /* ../../../../../tmp/tmp-165-KjLeIGy7bNip/opt/atlassian/pipelines/agent/build/src/smart-cart/components/EmptyCart/EmptyCart.css */
566
566
  .EmptyCart_rebuy-empty-cart-message {
567
567
  flex: 0 0 auto;
568
568
  margin: 0;
@@ -583,7 +583,7 @@
583
583
  text-decoration: var(--rb-empty-cart-message-link-text-decoration-hover);
584
584
  }
585
585
 
586
- /* ../../../../../tmp/tmp-185-ZlCKjNsAw7YW/opt/atlassian/pipelines/agent/build/src/smart-cart/components/CartItemList/CartItemList.css */
586
+ /* ../../../../../tmp/tmp-165-KjLeIGy7bNip/opt/atlassian/pipelines/agent/build/src/smart-cart/components/CartItemList/CartItemList.css */
587
587
  .CartItemList_rebuy-cart-item-list__container {
588
588
  display: flex;
589
589
  flex-flow: column nowrap;
@@ -605,7 +605,7 @@
605
605
  min-height: var(--rb-cart-item-list-min-height);
606
606
  }
607
607
 
608
- /* ../../../../../tmp/tmp-185-ZlCKjNsAw7YW/opt/atlassian/pipelines/agent/build/src/smart-cart/components/CartNoteInput/CartNoteInput.css */
608
+ /* ../../../../../tmp/tmp-165-KjLeIGy7bNip/opt/atlassian/pipelines/agent/build/src/smart-cart/components/CartNoteInput/CartNoteInput.css */
609
609
  .CartNoteInput_rebuy-cart-note-input {
610
610
  display: flex;
611
611
  flex-direction: column;
@@ -815,7 +815,7 @@
815
815
  gap: var(--rb-cart-note-input-gap);
816
816
  }
817
817
 
818
- /* ../../../../../tmp/tmp-185-ZlCKjNsAw7YW/opt/atlassian/pipelines/agent/build/src/smart-cart/components/CartSubtotal/CartSubtotal.css */
818
+ /* ../../../../../tmp/tmp-165-KjLeIGy7bNip/opt/atlassian/pipelines/agent/build/src/smart-cart/components/CartSubtotal/CartSubtotal.css */
819
819
  .CartSubtotal_rebuy-cart-subtotal {
820
820
  display: flex;
821
821
  margin: 0;
@@ -931,7 +931,7 @@
931
931
  font-weight: var(--rb-cart-subtotal-discount-summary-item-amount-font-weight);
932
932
  }
933
933
 
934
- /* ../../../../../tmp/tmp-185-ZlCKjNsAw7YW/opt/atlassian/pipelines/agent/build/src/smart-cart/components/CartTitleBar/CartTitleBar.css */
934
+ /* ../../../../../tmp/tmp-165-KjLeIGy7bNip/opt/atlassian/pipelines/agent/build/src/smart-cart/components/CartTitleBar/CartTitleBar.css */
935
935
  .CartTitleBar_rebuy-cart-title-bar {
936
936
  flex-grow: var(--rb-cart-title-bar-flex-grow);
937
937
  margin: 0;
@@ -947,7 +947,7 @@
947
947
  font-weight: var(--rb-cart-title-bar-font-weight);
948
948
  }
949
949
 
950
- /* ../../../../../tmp/tmp-185-ZlCKjNsAw7YW/opt/atlassian/pipelines/agent/build/src/smart-cart/components/CheckoutArea/CheckoutArea.css */
950
+ /* ../../../../../tmp/tmp-165-KjLeIGy7bNip/opt/atlassian/pipelines/agent/build/src/smart-cart/components/CheckoutArea/CheckoutArea.css */
951
951
  .CheckoutArea_rebuy-checkout-area {
952
952
  display: flex;
953
953
  flex-flow: column nowrap;
@@ -1138,7 +1138,7 @@
1138
1138
  text-decoration: none;
1139
1139
  }
1140
1140
 
1141
- /* ../../../../../tmp/tmp-185-ZlCKjNsAw7YW/opt/atlassian/pipelines/agent/build/src/components/AddToCartBtn/AddToCartBtn.css */
1141
+ /* ../../../../../tmp/tmp-165-KjLeIGy7bNip/opt/atlassian/pipelines/agent/build/src/components/AddToCartBtn/AddToCartBtn.css */
1142
1142
  .AddToCartBtn_rebuy-cart-button {
1143
1143
  padding: var(--rb-spacing-unit-2x, 8px) var(--rb-spacing-unit-4x, 16px);
1144
1144
  border-radius: var(--rb-border-radius-button, 4px);
@@ -1190,7 +1190,7 @@
1190
1190
  max-width: 100%;
1191
1191
  }
1192
1192
 
1193
- /* ../../../../../tmp/tmp-185-ZlCKjNsAw7YW/opt/atlassian/pipelines/agent/build/src/components/ProductPrice/ProductPrice.css */
1193
+ /* ../../../../../tmp/tmp-165-KjLeIGy7bNip/opt/atlassian/pipelines/agent/build/src/components/ProductPrice/ProductPrice.css */
1194
1194
  .ProductPrice_rebuy-product-price {
1195
1195
  display: flex;
1196
1196
  align-items: baseline;
@@ -1212,7 +1212,7 @@
1212
1212
  font-size: var(--rb-font-size-small, 0.875em);
1213
1213
  }
1214
1214
 
1215
- /* ../../../../../tmp/tmp-185-ZlCKjNsAw7YW/opt/atlassian/pipelines/agent/build/src/components/QuantityInput/QuantityInput.css */
1215
+ /* ../../../../../tmp/tmp-165-KjLeIGy7bNip/opt/atlassian/pipelines/agent/build/src/components/QuantityInput/QuantityInput.css */
1216
1216
  .QuantityInput_rebuy-quantity__container {
1217
1217
  display: flex;
1218
1218
  align-items: center;
@@ -1230,17 +1230,7 @@
1230
1230
  appearance: auto;
1231
1231
  }
1232
1232
 
1233
- /* ../../../../../tmp/tmp-185-ZlCKjNsAw7YW/opt/atlassian/pipelines/agent/build/src/components/Title/Title.css */
1234
- .Title_rebuy-title {
1235
- font-family: var(--rb-font-family-base);
1236
- font-weight: var(--rb-font-weight-bold);
1237
- line-height: var(--rb-line-height-tight);
1238
- color: var(--rb-color-text-default);
1239
- margin: 0;
1240
- padding: 0;
1241
- }
1242
-
1243
- /* ../../../../../tmp/tmp-185-ZlCKjNsAw7YW/opt/atlassian/pipelines/agent/build/src/components/VariantSelect/VariantSelect.css */
1233
+ /* ../../../../../tmp/tmp-165-KjLeIGy7bNip/opt/atlassian/pipelines/agent/build/src/components/VariantSelect/VariantSelect.css */
1244
1234
  .VariantSelect_rebuy-variant__container {
1245
1235
  position: relative;
1246
1236
  }
@@ -1306,7 +1296,17 @@
1306
1296
  border-color: #999;
1307
1297
  }
1308
1298
 
1309
- /* ../../../../../tmp/tmp-185-ZlCKjNsAw7YW/opt/atlassian/pipelines/agent/build/src/components/ProductCard/ProductCard.css */
1299
+ /* ../../../../../tmp/tmp-165-KjLeIGy7bNip/opt/atlassian/pipelines/agent/build/src/components/Title/Title.css */
1300
+ .Title_rebuy-title {
1301
+ font-family: var(--rb-font-family-base);
1302
+ font-weight: var(--rb-font-weight-bold);
1303
+ line-height: var(--rb-line-height-tight);
1304
+ color: var(--rb-color-text-default);
1305
+ margin: 0;
1306
+ padding: 0;
1307
+ }
1308
+
1309
+ /* ../../../../../tmp/tmp-165-KjLeIGy7bNip/opt/atlassian/pipelines/agent/build/src/components/ProductCard/ProductCard.css */
1310
1310
  :root {
1311
1311
  --rb-product-card-gap: var(--rb-spacing-unit-2x, 8px);
1312
1312
  --rb-product-card-padding: var(--rb-spacing-unit-3x, 12px);
@@ -1546,7 +1546,7 @@
1546
1546
  margin-top: var(--rb-spacing-unit-1x, 0.5em);
1547
1547
  }
1548
1548
 
1549
- /* ../../../../../tmp/tmp-185-ZlCKjNsAw7YW/opt/atlassian/pipelines/agent/build/src/components/ProductCarousel/ProductCarousel.css */
1549
+ /* ../../../../../tmp/tmp-165-KjLeIGy7bNip/opt/atlassian/pipelines/agent/build/src/components/ProductCarousel/ProductCarousel.css */
1550
1550
  .ProductCarousel_rebuy-carousel {
1551
1551
  position: relative;
1552
1552
  overflow: hidden;
@@ -1629,7 +1629,7 @@
1629
1629
  flex: 0 0 calc(16.66% - 1.25em);
1630
1630
  }
1631
1631
 
1632
- /* ../../../../../tmp/tmp-185-ZlCKjNsAw7YW/opt/atlassian/pipelines/agent/build/src/components/Timer/Timer.css */
1632
+ /* ../../../../../tmp/tmp-165-KjLeIGy7bNip/opt/atlassian/pipelines/agent/build/src/components/Timer/Timer.css */
1633
1633
  .Timer_rebuy-timer__container {
1634
1634
  margin: 0 auto;
1635
1635
  padding: 10px;
@@ -1690,10 +1690,11 @@
1690
1690
  }
1691
1691
  }
1692
1692
 
1693
- /* ../../../../../tmp/tmp-185-ZlCKjNsAw7YW/opt/atlassian/pipelines/agent/build/src/widgets/RebuyWidget/RebuyWidget.css */
1693
+ /* ../../../../../tmp/tmp-165-KjLeIGy7bNip/opt/atlassian/pipelines/agent/build/src/widgets/RebuyWidget/RebuyWidget.css */
1694
1694
  .RebuyWidget_rebuy-widget__container {
1695
1695
  width: 100%;
1696
1696
  padding: 0;
1697
+ position: relative;
1697
1698
  }
1698
1699
  .RebuyWidget_rebuy-widget__popup-overlay {
1699
1700
  position: fixed;
@@ -1792,7 +1793,7 @@
1792
1793
  align-items: flex-start;
1793
1794
  }
1794
1795
 
1795
- /* ../../../../../tmp/tmp-185-ZlCKjNsAw7YW/opt/atlassian/pipelines/agent/build/src/smart-cart/components/DiscountCodeInput/DiscountCodeInput.css */
1796
+ /* ../../../../../tmp/tmp-165-KjLeIGy7bNip/opt/atlassian/pipelines/agent/build/src/smart-cart/components/DiscountCodeInput/DiscountCodeInput.css */
1796
1797
  .DiscountCodeInput_rebuy-discount-code-input {
1797
1798
  display: flex;
1798
1799
  flex-flow: row wrap;
@@ -2006,7 +2007,7 @@
2006
2007
  font-weight: var(--rb-discount-code-input-total-discount-amount-font-weight);
2007
2008
  }
2008
2009
 
2009
- /* ../../../../../tmp/tmp-185-ZlCKjNsAw7YW/opt/atlassian/pipelines/agent/build/src/smart-cart/components/LoginButton/LoginButton.css */
2010
+ /* ../../../../../tmp/tmp-165-KjLeIGy7bNip/opt/atlassian/pipelines/agent/build/src/smart-cart/components/LoginButton/LoginButton.css */
2010
2011
  .LoginButton_rebuy-login-button {
2011
2012
  appearance: none;
2012
2013
  box-sizing: border-box;
@@ -2048,7 +2049,7 @@
2048
2049
  color: var(--rb-login-button-text-color-active);
2049
2050
  }
2050
2051
 
2051
- /* ../../../../../tmp/tmp-185-ZlCKjNsAw7YW/opt/atlassian/pipelines/agent/build/src/smart-cart/components/TieredProgressBar/TieredProgressBar.css */
2052
+ /* ../../../../../tmp/tmp-165-KjLeIGy7bNip/opt/atlassian/pipelines/agent/build/src/smart-cart/components/TieredProgressBar/TieredProgressBar.css */
2052
2053
  .TieredProgressBar_rebuy-tiered-progress-bar {
2053
2054
  display: flex;
2054
2055
  flex-direction: column;
@@ -2323,7 +2324,7 @@
2323
2324
  border-color: var(--rb-tiered-progress-bar-gift-item-select-border-color-hover);
2324
2325
  }
2325
2326
 
2326
- /* ../../../../../tmp/tmp-185-ZlCKjNsAw7YW/opt/atlassian/pipelines/agent/build/src/smart-cart/components/_Layouts/LayoutStyles.css */
2327
+ /* ../../../../../tmp/tmp-165-KjLeIGy7bNip/opt/atlassian/pipelines/agent/build/src/smart-cart/components/_Layouts/LayoutStyles.css */
2327
2328
  .LayoutStyles_rebuy-smart-cart-layout__anchor-goal-box {
2328
2329
  display: flex;
2329
2330
  flex-flow: column nowrap;
@@ -2421,13 +2422,16 @@
2421
2422
  @media screen and (width <= 900px) {
2422
2423
  .LayoutStyles_rebuy-smart-cart-layout__flyout-inner {
2423
2424
  flex-direction: column;
2425
+ height: 100%;
2426
+ overflow: hidden;
2424
2427
  }
2425
2428
  .LayoutStyles_rebuy-smart-cart-layout__column--primary {
2426
- flex-basis: auto;
2429
+ flex: 1 1 auto;
2427
2430
  width: 100%;
2428
2431
  max-width: 100%;
2429
- height: auto;
2430
- overflow: visible;
2432
+ height: 100%;
2433
+ min-height: 0;
2434
+ overflow: hidden;
2431
2435
  }
2432
2436
  .LayoutStyles_rebuy-smart-cart-layout__column--secondary {
2433
2437
  display: none;
@@ -2435,6 +2439,11 @@
2435
2439
  }
2436
2440
 
2437
2441
  /* src/smart-cart/components/SmartCartContainer/Global.css */
2442
+ body.rebuy-smart-cart-open {
2443
+ overflow: hidden;
2444
+ position: fixed;
2445
+ width: 100%;
2446
+ }
2438
2447
  .rebuy-preview-highlight .rebuy-smart-cart {
2439
2448
  border: var(--rb-preview-highlight-outline-width, 2px) solid var(--rb-preview-highlight-outline-color, #2491c4) !important;
2440
2449
  }
@@ -2450,7 +2459,7 @@
2450
2459
  box-sizing: border-box !important;
2451
2460
  }
2452
2461
 
2453
- /* ../../../../../tmp/tmp-185-ZlCKjNsAw7YW/opt/atlassian/pipelines/agent/build/src/smart-cart/components/SmartCartContainer/SmartCartContainer.css */
2462
+ /* ../../../../../tmp/tmp-165-KjLeIGy7bNip/opt/atlassian/pipelines/agent/build/src/smart-cart/components/SmartCartContainer/SmartCartContainer.css */
2454
2463
  .SmartCartContainer_rebuy-smart-cart,
2455
2464
  .SmartCartContainer_rebuy-smart-cart *,
2456
2465
  .SmartCartContainer_rebuy-smart-cart *::before,
@@ -2604,12 +2613,13 @@
2604
2613
  }
2605
2614
  }
2606
2615
 
2607
- /* ../../../../../tmp/tmp-185-ZlCKjNsAw7YW/opt/atlassian/pipelines/agent/build/src/widgets/RebuyCompleteTheLook/RebuyCompleteTheLook.css */
2616
+ /* ../../../../../tmp/tmp-165-KjLeIGy7bNip/opt/atlassian/pipelines/agent/build/src/widgets/RebuyCompleteTheLook/RebuyCompleteTheLook.css */
2608
2617
  .RebuyCompleteTheLook_container {
2609
2618
  padding: 32px 1em;
2610
2619
  margin: 1em 0;
2611
2620
  background-color: #f0f4f8;
2612
2621
  border-radius: 1em;
2622
+ position: relative;
2613
2623
  @media (width >= 768px) {
2614
2624
  padding: 4em;
2615
2625
  }
@@ -2630,13 +2640,14 @@
2630
2640
  width: 100%;
2631
2641
  }
2632
2642
 
2633
- /* ../../../../../tmp/tmp-185-ZlCKjNsAw7YW/opt/atlassian/pipelines/agent/build/src/widgets/RebuyDynamicBundleProducts/RebuyDynamicBundleProducts.css */
2643
+ /* ../../../../../tmp/tmp-165-KjLeIGy7bNip/opt/atlassian/pipelines/agent/build/src/widgets/RebuyDynamicBundleProducts/RebuyDynamicBundleProducts.css */
2634
2644
  .RebuyDynamicBundleProducts_container {
2635
2645
  padding: 32px 16px;
2636
2646
  background-color: #f0f4f8;
2637
2647
  border-radius: 16px;
2638
2648
  max-width: 768px;
2639
2649
  margin: 16px 0;
2650
+ position: relative;
2640
2651
  @media (width >= 768px) {
2641
2652
  padding: 64px;
2642
2653
  }
@@ -2718,7 +2729,7 @@
2718
2729
  opacity: 0.5;
2719
2730
  }
2720
2731
 
2721
- /* ../../../../../tmp/tmp-185-ZlCKjNsAw7YW/opt/atlassian/pipelines/agent/build/src/widgets/RebuyProductAddOns/RebuyProductAddOns.css */
2732
+ /* ../../../../../tmp/tmp-165-KjLeIGy7bNip/opt/atlassian/pipelines/agent/build/src/widgets/RebuyProductAddOns/RebuyProductAddOns.css */
2722
2733
  .RebuyProductAddOns_container {
2723
2734
  display: flex;
2724
2735
  flex-direction: column;
@@ -2727,6 +2738,7 @@
2727
2738
  background-color: #f0f4f8;
2728
2739
  border-radius: 16px;
2729
2740
  padding: 32px 16px;
2741
+ position: relative;
2730
2742
  @media (width >= 768px) {
2731
2743
  padding: 64px;
2732
2744
  }
@@ -2827,12 +2839,13 @@
2827
2839
  justify-content: center;
2828
2840
  }
2829
2841
 
2830
- /* ../../../../../tmp/tmp-185-ZlCKjNsAw7YW/opt/atlassian/pipelines/agent/build/src/widgets/RebuyProductRecommendations/RebuyProductRecommendations.css */
2842
+ /* ../../../../../tmp/tmp-165-KjLeIGy7bNip/opt/atlassian/pipelines/agent/build/src/widgets/RebuyProductRecommendations/RebuyProductRecommendations.css */
2831
2843
  .RebuyProductRecommendations_container {
2832
2844
  padding: 32px 16px;
2833
2845
  background-color: #f0f4f8;
2834
2846
  border-radius: 16px;
2835
2847
  margin: 16px 0;
2848
+ position: relative;
2836
2849
  @media (width >= 768px) {
2837
2850
  padding: 64px;
2838
2851
  }
@@ -2843,6 +2856,22 @@
2843
2856
  gap: 32px;
2844
2857
  list-style: none;
2845
2858
  }
2846
- .RebuyProductRecommendations_productItem {
2859
+
2860
+ /* ../../../../../tmp/tmp-165-KjLeIGy7bNip/opt/atlassian/pipelines/agent/build/src/widgets/RebuyRecentlyViewedProducts/RebuyRecentlyViewedProducts.css */
2861
+ .RebuyRecentlyViewedProducts_rebuy-recently-viewed-products-container {
2862
+ padding: 32px 16px;
2863
+ background-color: #f0f4f8;
2864
+ border-radius: 16px;
2865
+ margin: 16px 0;
2866
+ position: relative;
2867
+ @media (width >= 768px) {
2868
+ padding: 64px;
2869
+ }
2870
+ }
2871
+ .RebuyRecentlyViewedProducts_product-grid {
2872
+ display: grid;
2873
+ grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
2874
+ gap: 32px;
2875
+ list-style: none;
2847
2876
  }
2848
2877
  /*# sourceMappingURL=index.css.map */