@rebuy/rebuy-hydrogen 3.0.0-beta.16 → 3.0.0-beta.18

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (44) hide show
  1. package/README.md +72 -20
  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/context/RebuyWidgetContext.d.ts +7 -0
  17. package/dist/context/RebuyWidgetContext.d.ts.map +1 -0
  18. package/dist/index.css +53 -39
  19. package/dist/index.css.map +3 -3
  20. package/dist/index.js +737 -567
  21. package/dist/index.js.map +4 -4
  22. package/dist/index.mjs +604 -434
  23. package/dist/index.mjs.map +4 -4
  24. package/dist/smart-cart/components/CartItem/CartItem.d.ts.map +1 -1
  25. package/dist/smart-cart/components/LoginButton/LoginButton.d.ts.map +1 -1
  26. package/dist/smart-cart/components/SmartCartContainer/SmartCartContainer.d.ts.map +1 -1
  27. package/dist/types/shopify.d.ts +1 -2
  28. package/dist/types/shopify.d.ts.map +1 -1
  29. package/dist/types/widgets.d.ts +4 -2
  30. package/dist/types/widgets.d.ts.map +1 -1
  31. package/dist/utils/convertToRebuyProduct.d.ts.map +1 -1
  32. package/dist/widgetContainer/RebuyWidgetContainer.d.ts.map +1 -1
  33. package/dist/widgets/RebuyCompleteTheLook/RebuyCompleteTheLook.d.ts.map +1 -1
  34. package/dist/widgets/RebuyDynamicBundleProducts/BundleImages.d.ts.map +1 -1
  35. package/dist/widgets/RebuyDynamicBundleProducts/RebuyDynamicBundleProducts.d.ts.map +1 -1
  36. package/dist/widgets/RebuyProductAddOns/RebuyProductAddOnCard.d.ts.map +1 -1
  37. package/dist/widgets/RebuyProductAddOns/RebuyProductAddOns.d.ts.map +1 -1
  38. package/dist/widgets/RebuyProductRecommendations/RebuyProductRecommendations.d.ts.map +1 -1
  39. package/dist/widgets/RebuyWidget/RebuyWidget.d.ts.map +1 -1
  40. package/dist/widgets/RebuyWidget/WidgetContent.d.ts +1 -1
  41. package/dist/widgets/RebuyWidget/WidgetContent.d.ts.map +1 -1
  42. package/dist/widgets/RebuyWidget/types.d.ts +2 -0
  43. package/dist/widgets/RebuyWidget/types.d.ts.map +1 -1
  44. 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`.
@@ -282,8 +286,8 @@ Place this component on any page or element where you would like to record that
282
286
  | :---- | :---- |
283
287
  | `productId` | The Shopify product ID |
284
288
  | `product` | The entire product object |
285
- | `productHandle` | The products handle |
286
- | `customerId` | The ID of the customer viewing the product. If no customerId is passed a UUID will be used locally instead. | |
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. |
287
291
 
288
292
  ### RebuyRecentlyViewedProducts
289
293
 
@@ -296,8 +300,56 @@ Component returns a list of the products that a customer has recently viewed bas
296
300
  | `customTitleStyle` | An object of custom styles for the title (e.g., text color, text align) |
297
301
  | `addToCartCallBack` | A callback function for custom functionality when items are added to the cart |
298
302
  | `addToCartBtnText` | Custom text for the Add To Cart button |
299
- | `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. | |
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
+ ### Using useRebuyWidget in Custom Components
300
306
 
307
+ You can create custom components that access Rebuy widget data by using the `useRebuyWidget` hook within a `RebuyWidgetContainer`. This allows you to build custom UIs while maintaining access to all Rebuy widget functionality.
308
+
309
+ ```typescript
310
+ import { useRebuyWidget } from '@rebuy/rebuy-hydrogen';
311
+
312
+ // In your page/layout:
313
+ <RebuyWidgetContainer dataSource="/api/v1/products/recommended" limit={4}>
314
+ <MyCustomComponent />
315
+ <RebuyProductRecommendations />
316
+ </RebuyWidgetContainer>
317
+
318
+ // In your custom component:
319
+ const MyCustomComponent = () => {
320
+ const {
321
+ products,
322
+ isHydrogenReact,
323
+ metadata,
324
+ product,
325
+ variant
326
+ } = useRebuyWidget();
327
+
328
+ return (
329
+ <div>
330
+ {/* Custom implementation using Rebuy data */}
331
+ </div>
332
+ );
333
+ };
334
+ ```
335
+
336
+ **Available Context Properties:**
337
+
338
+ | Property | Type | Description |
339
+ | :------- | :--- | :---------- |
340
+ | `products` | `RebuyProduct[]` | Array of recommended products |
341
+ | `isHydrogenReact` | `boolean` | Whether the app is using Hydrogen React |
342
+ | `metadata` | `RebuyWidgetMetadata` | Widget metadata from Rebuy |
343
+ | `product` | `HydrogenProduct \| undefined` | The main product if provided |
344
+ | `variant` | `RebuyProductVariant \| undefined` | The selected variant if provided |
345
+ | `productId` | `string \| undefined` | The product ID if provided |
346
+ | `variantId` | `string \| undefined` | The variant ID if provided |
347
+ | `dataSource` | `string` | The Rebuy API endpoint being used |
348
+ | `limit` | `number` | Maximum number of products to return |
349
+ | `options` | `Record<string, unknown>` | Additional Rebuy API options |
350
+ | `key` | `string` | Unique key for the widget instance |
351
+ | `cacheKey` | `string \| undefined` | The shop's cache key for Rebuy |
352
+ | `apiKey` | `string \| undefined` | The Rebuy API key for the shop |
301
353
 
302
354
  ---
303
355
 
@@ -332,9 +384,9 @@ In your root layout file (`app/root.tsx`), add the `enableSmartCart` prop to you
332
384
 
333
385
  **For Hydrogen-only Applications:**
334
386
  ```typescript
335
- <RebuyHydrogenContextProvider
336
- cart={data.cart}
337
- shop="example.com"
387
+ <RebuyHydrogenContextProvider
388
+ cart={data.cart}
389
+ shop="example.com"
338
390
  publicStoreDomain="example.myshopify.com"
339
391
  enableSmartCart={true}
340
392
  >
@@ -345,10 +397,10 @@ In your root layout file (`app/root.tsx`), add the `enableSmartCart` prop to you
345
397
 
346
398
  **For Hydrogen React Applications:**
347
399
  ```typescript
348
- <RebuyHydrogenReactContextProvider
349
- publicPrimaryDomain="example.com"
350
- publicStoreDomain="example.myshopify.com"
351
- publicStorefrontToken="1233456"
400
+ <RebuyHydrogenReactContextProvider
401
+ publicPrimaryDomain="example.com"
402
+ publicStoreDomain="example.myshopify.com"
403
+ publicStorefrontToken="1233456"
352
404
  publicStorefrontId="12345678"
353
405
  enableSmartCart={true}
354
406
  >
@@ -379,10 +431,10 @@ import { useSmartCart } from '@rebuy/rebuy-hydrogen';
379
431
 
380
432
  export function Header() {
381
433
  const { toggleCart } = useSmartCart();
382
-
434
+
383
435
  // In your cart button/icon
384
436
  return (
385
- <button
437
+ <button
386
438
  onClick={(e) => {
387
439
  e.preventDefault();
388
440
  toggleCart();
@@ -403,7 +455,7 @@ import { useSmartCart } from '@rebuy/rebuy-hydrogen';
403
455
 
404
456
  export function ProductForm() {
405
457
  const { toggleCart } = useSmartCart();
406
-
458
+
407
459
  // After successful add to cart
408
460
  const handleAddToCart = async () => {
409
461
  // ... add to cart logic
@@ -416,11 +468,11 @@ export function ProductForm() {
416
468
 
417
469
  Here's a complete example of converting a cart badge component:
418
470
 
419
- **Before (Native Hydrogen):**
471
+ **Before (Hydrogen):**
420
472
  ```typescript
421
473
  function CartBadge() {
422
474
  const { open } = useAside();
423
-
475
+
424
476
  return (
425
477
  <a href="/cart" onClick={(e) => {
426
478
  e.preventDefault();
@@ -438,7 +490,7 @@ import { useSmartCart } from '@rebuy/rebuy-hydrogen';
438
490
 
439
491
  function CartBadge() {
440
492
  const { toggleCart } = useSmartCart();
441
-
493
+
442
494
  return (
443
495
  <a href="/cart" onClick={(e) => {
444
496
  e.preventDefault();
@@ -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"}
@@ -0,0 +1,7 @@
1
+ import type { RebuyWidgetContextType } from '~/types/widgets';
2
+ export declare const useRebuyWidget: () => RebuyWidgetContextType;
3
+ export declare const RebuyWidgetProvider: React.FC<{
4
+ children: React.ReactNode;
5
+ value: RebuyWidgetContextType;
6
+ }>;
7
+ //# sourceMappingURL=RebuyWidgetContext.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RebuyWidgetContext.d.ts","sourceRoot":"","sources":["../../src/context/RebuyWidgetContext.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAc9D,eAAO,MAAM,cAAc,8BAAuC,CAAC;AAEnE,eAAO,MAAM,mBAAmB,EAAE,KAAK,CAAC,EAAE,CAAC;IACvC,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,KAAK,EAAE,sBAAsB,CAAC;CACjC,CAEA,CAAC"}
package/dist/index.css CHANGED
@@ -11,7 +11,7 @@
11
11
  clip: rect(0, 0, 0, 0);
12
12
  }
13
13
 
14
- /* ../../../../../tmp/tmp-165-ANnZixNQysaG/opt/atlassian/pipelines/agent/build/src/smart-cart/components/AnnouncementBar/AnnouncementBar.css */
14
+ /* ../../../../../tmp/tmp-165-xiLw4QszNNPN/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-165-ANnZixNQysaG/opt/atlassian/pipelines/agent/build/src/smart-cart/components/CartItem/CartItem.css */
50
+ /* ../../../../../tmp/tmp-165-xiLw4QszNNPN/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-165-ANnZixNQysaG/opt/atlassian/pipelines/agent/build/src/smart-cart/components/EmptyCart/EmptyCart.css */
565
+ /* ../../../../../tmp/tmp-165-xiLw4QszNNPN/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-165-ANnZixNQysaG/opt/atlassian/pipelines/agent/build/src/smart-cart/components/CartItemList/CartItemList.css */
586
+ /* ../../../../../tmp/tmp-165-xiLw4QszNNPN/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-165-ANnZixNQysaG/opt/atlassian/pipelines/agent/build/src/smart-cart/components/CartNoteInput/CartNoteInput.css */
608
+ /* ../../../../../tmp/tmp-165-xiLw4QszNNPN/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-165-ANnZixNQysaG/opt/atlassian/pipelines/agent/build/src/smart-cart/components/CartSubtotal/CartSubtotal.css */
818
+ /* ../../../../../tmp/tmp-165-xiLw4QszNNPN/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-165-ANnZixNQysaG/opt/atlassian/pipelines/agent/build/src/smart-cart/components/CartTitleBar/CartTitleBar.css */
934
+ /* ../../../../../tmp/tmp-165-xiLw4QszNNPN/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-165-ANnZixNQysaG/opt/atlassian/pipelines/agent/build/src/smart-cart/components/CheckoutArea/CheckoutArea.css */
950
+ /* ../../../../../tmp/tmp-165-xiLw4QszNNPN/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-165-ANnZixNQysaG/opt/atlassian/pipelines/agent/build/src/components/AddToCartBtn/AddToCartBtn.css */
1141
+ /* ../../../../../tmp/tmp-165-xiLw4QszNNPN/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-165-ANnZixNQysaG/opt/atlassian/pipelines/agent/build/src/components/ProductPrice/ProductPrice.css */
1193
+ /* ../../../../../tmp/tmp-165-xiLw4QszNNPN/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-165-ANnZixNQysaG/opt/atlassian/pipelines/agent/build/src/components/QuantityInput/QuantityInput.css */
1215
+ /* ../../../../../tmp/tmp-165-xiLw4QszNNPN/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-165-ANnZixNQysaG/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-165-ANnZixNQysaG/opt/atlassian/pipelines/agent/build/src/components/VariantSelect/VariantSelect.css */
1233
+ /* ../../../../../tmp/tmp-165-xiLw4QszNNPN/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-165-ANnZixNQysaG/opt/atlassian/pipelines/agent/build/src/components/ProductCard/ProductCard.css */
1299
+ /* ../../../../../tmp/tmp-165-xiLw4QszNNPN/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-xiLw4QszNNPN/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-165-ANnZixNQysaG/opt/atlassian/pipelines/agent/build/src/components/ProductCarousel/ProductCarousel.css */
1549
+ /* ../../../../../tmp/tmp-165-xiLw4QszNNPN/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-165-ANnZixNQysaG/opt/atlassian/pipelines/agent/build/src/components/Timer/Timer.css */
1632
+ /* ../../../../../tmp/tmp-165-xiLw4QszNNPN/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-165-ANnZixNQysaG/opt/atlassian/pipelines/agent/build/src/widgets/RebuyWidget/RebuyWidget.css */
1693
+ /* ../../../../../tmp/tmp-165-xiLw4QszNNPN/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-165-ANnZixNQysaG/opt/atlassian/pipelines/agent/build/src/smart-cart/components/DiscountCodeInput/DiscountCodeInput.css */
1796
+ /* ../../../../../tmp/tmp-165-xiLw4QszNNPN/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-165-ANnZixNQysaG/opt/atlassian/pipelines/agent/build/src/smart-cart/components/LoginButton/LoginButton.css */
2010
+ /* ../../../../../tmp/tmp-165-xiLw4QszNNPN/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-165-ANnZixNQysaG/opt/atlassian/pipelines/agent/build/src/smart-cart/components/TieredProgressBar/TieredProgressBar.css */
2052
+ /* ../../../../../tmp/tmp-165-xiLw4QszNNPN/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-165-ANnZixNQysaG/opt/atlassian/pipelines/agent/build/src/smart-cart/components/_Layouts/LayoutStyles.css */
2327
+ /* ../../../../../tmp/tmp-165-xiLw4QszNNPN/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-165-ANnZixNQysaG/opt/atlassian/pipelines/agent/build/src/smart-cart/components/SmartCartContainer/SmartCartContainer.css */
2462
+ /* ../../../../../tmp/tmp-165-xiLw4QszNNPN/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-165-ANnZixNQysaG/opt/atlassian/pipelines/agent/build/src/widgets/RebuyCompleteTheLook/RebuyCompleteTheLook.css */
2616
+ /* ../../../../../tmp/tmp-165-xiLw4QszNNPN/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-165-ANnZixNQysaG/opt/atlassian/pipelines/agent/build/src/widgets/RebuyDynamicBundleProducts/RebuyDynamicBundleProducts.css */
2643
+ /* ../../../../../tmp/tmp-165-xiLw4QszNNPN/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-165-ANnZixNQysaG/opt/atlassian/pipelines/agent/build/src/widgets/RebuyProductAddOns/RebuyProductAddOns.css */
2732
+ /* ../../../../../tmp/tmp-165-xiLw4QszNNPN/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-165-ANnZixNQysaG/opt/atlassian/pipelines/agent/build/src/widgets/RebuyProductRecommendations/RebuyProductRecommendations.css */
2842
+ /* ../../../../../tmp/tmp-165-xiLw4QszNNPN/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
  }
@@ -2844,12 +2857,13 @@
2844
2857
  list-style: none;
2845
2858
  }
2846
2859
 
2847
- /* ../../../../../tmp/tmp-165-ANnZixNQysaG/opt/atlassian/pipelines/agent/build/src/widgets/RebuyRecentlyViewedProducts/RebuyRecentlyViewedProducts.css */
2860
+ /* ../../../../../tmp/tmp-165-xiLw4QszNNPN/opt/atlassian/pipelines/agent/build/src/widgets/RebuyRecentlyViewedProducts/RebuyRecentlyViewedProducts.css */
2848
2861
  .RebuyRecentlyViewedProducts_rebuy-recently-viewed-products-container {
2849
2862
  padding: 32px 16px;
2850
2863
  background-color: #f0f4f8;
2851
2864
  border-radius: 16px;
2852
2865
  margin: 16px 0;
2866
+ position: relative;
2853
2867
  @media (width >= 768px) {
2854
2868
  padding: 64px;
2855
2869
  }