@rebuy/rebuy-hydrogen 3.0.0-beta.1 → 3.0.0-beta.10

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 (143) hide show
  1. package/README.md +0 -2
  2. package/dist/components/AddToCartBtn/AddToCartBtn.d.ts +3 -0
  3. package/dist/components/AddToCartBtn/AddToCartBtn.d.ts.map +1 -0
  4. package/dist/components/AddToCartBtn/HydrogenAddToCartBtn.d.ts +3 -0
  5. package/dist/components/AddToCartBtn/HydrogenAddToCartBtn.d.ts.map +1 -0
  6. package/dist/components/AddToCartBtn/HydrogenReactAddToCartBtn.d.ts +3 -0
  7. package/dist/components/AddToCartBtn/HydrogenReactAddToCartBtn.d.ts.map +1 -0
  8. package/dist/components/AddToCartBtn/index.d.ts +2 -0
  9. package/dist/components/AddToCartBtn/index.d.ts.map +1 -0
  10. package/{src/components/AddToCartBtn/types.ts → dist/components/AddToCartBtn/types.d.ts} +1 -2
  11. package/dist/components/AddToCartBtn/types.d.ts.map +1 -0
  12. package/dist/components/ProductCard/ProductCard.d.ts +3 -0
  13. package/dist/components/ProductCard/ProductCard.d.ts.map +1 -0
  14. package/dist/components/ProductCard/index.d.ts +2 -0
  15. package/dist/components/ProductCard/index.d.ts.map +1 -0
  16. package/{src/components/ProductCard/types.ts → dist/components/ProductCard/types.d.ts} +2 -2
  17. package/dist/components/ProductCard/types.d.ts.map +1 -0
  18. package/dist/components/ProductPrice/ProductPrice.d.ts +5 -0
  19. package/dist/components/ProductPrice/ProductPrice.d.ts.map +1 -0
  20. package/dist/components/ProductPrice/index.d.ts +2 -0
  21. package/dist/components/ProductPrice/index.d.ts.map +1 -0
  22. package/dist/components/Title/Title.d.ts +3 -0
  23. package/dist/components/Title/Title.d.ts.map +1 -0
  24. package/dist/components/Title/index.d.ts +2 -0
  25. package/dist/components/Title/index.d.ts.map +1 -0
  26. package/{src/components/Title/types.ts → dist/components/Title/types.d.ts} +1 -1
  27. package/dist/components/Title/types.d.ts.map +1 -0
  28. package/dist/components/VariantSelect/VariantSelect.d.ts +3 -0
  29. package/dist/components/VariantSelect/VariantSelect.d.ts.map +1 -0
  30. package/dist/components/VariantSelect/index.d.ts +2 -0
  31. package/dist/components/VariantSelect/index.d.ts.map +1 -0
  32. package/{src/components/VariantSelect/types.ts → dist/components/VariantSelect/types.d.ts} +1 -1
  33. package/dist/components/VariantSelect/types.d.ts.map +1 -0
  34. package/{src/context/RebuyContext.tsx → dist/context/RebuyContext.d.ts} +2 -5
  35. package/dist/context/RebuyContext.d.ts.map +1 -0
  36. package/dist/hooks/titleLevel.d.ts +3 -0
  37. package/dist/hooks/titleLevel.d.ts.map +1 -0
  38. package/dist/index.css +296 -0
  39. package/dist/index.css.map +7 -0
  40. package/{src/index.ts → dist/index.d.ts} +1 -0
  41. package/dist/index.d.ts.map +1 -0
  42. package/dist/index.js +1967 -0
  43. package/dist/index.js.map +7 -0
  44. package/dist/index.mjs +1935 -0
  45. package/dist/index.mjs.map +7 -0
  46. package/dist/providers/RebuyHydrogenContextProvider.d.ts +3 -0
  47. package/dist/providers/RebuyHydrogenContextProvider.d.ts.map +1 -0
  48. package/dist/providers/RebuyHydrogenReactContextProvider.d.ts +3 -0
  49. package/dist/providers/RebuyHydrogenReactContextProvider.d.ts.map +1 -0
  50. package/{src/providers/types.ts → dist/providers/types.d.ts} +12 -16
  51. package/dist/providers/types.d.ts.map +1 -0
  52. package/dist/queries/cart.queries.d.ts +5 -0
  53. package/dist/queries/cart.queries.d.ts.map +1 -0
  54. package/dist/types/common.d.ts +9 -0
  55. package/dist/types/common.d.ts.map +1 -0
  56. package/{src/types/rebuyCustom.ts → dist/types/rebuyCustom.d.ts} +12 -35
  57. package/dist/types/rebuyCustom.d.ts.map +1 -0
  58. package/{src/types/rebuySmartCart.ts → dist/types/rebuySmartCart.d.ts} +1 -5
  59. package/dist/types/rebuySmartCart.d.ts.map +1 -0
  60. package/dist/types/shopify.d.ts +85 -0
  61. package/dist/types/shopify.d.ts.map +1 -0
  62. package/{src/types/widgets.ts → dist/types/widgets.d.ts} +2 -9
  63. package/dist/types/widgets.d.ts.map +1 -0
  64. package/dist/utils/convertToRebuyProduct.d.ts +156 -0
  65. package/dist/utils/convertToRebuyProduct.d.ts.map +1 -0
  66. package/dist/utils/createContextParameters.d.ts +3 -0
  67. package/dist/utils/createContextParameters.d.ts.map +1 -0
  68. package/dist/utils/getEncodedAttributes.d.ts +3 -0
  69. package/dist/utils/getEncodedAttributes.d.ts.map +1 -0
  70. package/dist/utils/getRebuyConfig.d.ts +3 -0
  71. package/dist/utils/getRebuyConfig.d.ts.map +1 -0
  72. package/dist/widgetContainer/RebuyWidgetContainer.d.ts +8 -0
  73. package/dist/widgetContainer/RebuyWidgetContainer.d.ts.map +1 -0
  74. package/dist/widgets/RebuyCompleteTheLook/RebuyCompleteTheLook.d.ts +3 -0
  75. package/dist/widgets/RebuyCompleteTheLook/RebuyCompleteTheLook.d.ts.map +1 -0
  76. package/{src/widgets/RebuyCompleteTheLook/index.ts → dist/widgets/RebuyCompleteTheLook/index.d.ts} +1 -0
  77. package/dist/widgets/RebuyCompleteTheLook/index.d.ts.map +1 -0
  78. package/{src/widgets/RebuyCompleteTheLook/types.ts → dist/widgets/RebuyCompleteTheLook/types.d.ts} +1 -1
  79. package/dist/widgets/RebuyCompleteTheLook/types.d.ts.map +1 -0
  80. package/dist/widgets/RebuyDynamicBundleProducts/BundleImages.d.ts +5 -0
  81. package/dist/widgets/RebuyDynamicBundleProducts/BundleImages.d.ts.map +1 -0
  82. package/dist/widgets/RebuyDynamicBundleProducts/BundlePrice.d.ts +5 -0
  83. package/dist/widgets/RebuyDynamicBundleProducts/BundlePrice.d.ts.map +1 -0
  84. package/dist/widgets/RebuyDynamicBundleProducts/BundleSelection.d.ts +3 -0
  85. package/dist/widgets/RebuyDynamicBundleProducts/BundleSelection.d.ts.map +1 -0
  86. package/dist/widgets/RebuyDynamicBundleProducts/RebuyDynamicBundleProducts.d.ts +3 -0
  87. package/dist/widgets/RebuyDynamicBundleProducts/RebuyDynamicBundleProducts.d.ts.map +1 -0
  88. package/dist/widgets/RebuyDynamicBundleProducts/Select.d.ts +3 -0
  89. package/dist/widgets/RebuyDynamicBundleProducts/Select.d.ts.map +1 -0
  90. package/{src/widgets/RebuyDynamicBundleProducts/index.ts → dist/widgets/RebuyDynamicBundleProducts/index.d.ts} +1 -0
  91. package/dist/widgets/RebuyDynamicBundleProducts/index.d.ts.map +1 -0
  92. package/{src/widgets/RebuyDynamicBundleProducts/types.ts → dist/widgets/RebuyDynamicBundleProducts/types.d.ts} +1 -5
  93. package/dist/widgets/RebuyDynamicBundleProducts/types.d.ts.map +1 -0
  94. package/dist/widgets/RebuyProductAddOns/RebuyProductAddOnCard.d.ts +3 -0
  95. package/dist/widgets/RebuyProductAddOns/RebuyProductAddOnCard.d.ts.map +1 -0
  96. package/dist/widgets/RebuyProductAddOns/RebuyProductAddOns.d.ts +3 -0
  97. package/dist/widgets/RebuyProductAddOns/RebuyProductAddOns.d.ts.map +1 -0
  98. package/{src/widgets/RebuyProductAddOns/index.ts → dist/widgets/RebuyProductAddOns/index.d.ts} +1 -0
  99. package/dist/widgets/RebuyProductAddOns/index.d.ts.map +1 -0
  100. package/{src/widgets/RebuyProductAddOns/types.ts → dist/widgets/RebuyProductAddOns/types.d.ts} +2 -7
  101. package/dist/widgets/RebuyProductAddOns/types.d.ts.map +1 -0
  102. package/dist/widgets/RebuyProductRecommendations/RebuyProductRecommendations.d.ts +3 -0
  103. package/dist/widgets/RebuyProductRecommendations/RebuyProductRecommendations.d.ts.map +1 -0
  104. package/{src/widgets/RebuyProductRecommendations/index.ts → dist/widgets/RebuyProductRecommendations/index.d.ts} +1 -0
  105. package/dist/widgets/RebuyProductRecommendations/index.d.ts.map +1 -0
  106. package/{src/widgets/RebuyProductRecommendations/types.ts → dist/widgets/RebuyProductRecommendations/types.d.ts} +1 -1
  107. package/dist/widgets/RebuyProductRecommendations/types.d.ts.map +1 -0
  108. package/package.json +48 -36
  109. package/src/components/AddToCartBtn/AddToCartBtn.tsx +0 -45
  110. package/src/components/AddToCartBtn/HydrogenAddToCartBtn.tsx +0 -43
  111. package/src/components/AddToCartBtn/HydrogenReactAddToCartBtn.tsx +0 -35
  112. package/src/components/AddToCartBtn/index.ts +0 -1
  113. package/src/components/ProductCard/ProductCard.tsx +0 -70
  114. package/src/components/ProductCard/index.ts +0 -1
  115. package/src/components/ProductPrice/ProductPrice.tsx +0 -49
  116. package/src/components/ProductPrice/index.ts +0 -1
  117. package/src/components/Title/Title.tsx +0 -20
  118. package/src/components/Title/index.ts +0 -1
  119. package/src/components/VariantSelect/VariantSelect.tsx +0 -45
  120. package/src/components/VariantSelect/index.ts +0 -1
  121. package/src/hooks/titleLevel.tsx +0 -42
  122. package/src/providers/RebuyHydrogenContextProvider.tsx +0 -112
  123. package/src/providers/RebuyHydrogenReactContextProvider.tsx +0 -192
  124. package/src/queries/cart.queries.ts +0 -467
  125. package/src/types/common.ts +0 -8
  126. package/src/types/css.d.ts +0 -11
  127. package/src/types/env.d.ts +0 -12
  128. package/src/types/rebuy.d.ts +0 -31
  129. package/src/types/shopify.ts +0 -142
  130. package/src/utils/convertToRebuyProduct.tsx +0 -319
  131. package/src/utils/createContextParameters.ts +0 -142
  132. package/src/utils/getEncodedAttributes.ts +0 -11
  133. package/src/utils/getRebuyConfig.ts +0 -31
  134. package/src/widgetContainer/RebuyWidgetContainer.tsx +0 -183
  135. package/src/widgets/RebuyCompleteTheLook/RebuyCompleteTheLook.tsx +0 -50
  136. package/src/widgets/RebuyDynamicBundleProducts/BundleImages.tsx +0 -62
  137. package/src/widgets/RebuyDynamicBundleProducts/BundlePrice.tsx +0 -93
  138. package/src/widgets/RebuyDynamicBundleProducts/BundleSelection.tsx +0 -65
  139. package/src/widgets/RebuyDynamicBundleProducts/RebuyDynamicBundleProducts.tsx +0 -118
  140. package/src/widgets/RebuyDynamicBundleProducts/Select.tsx +0 -41
  141. package/src/widgets/RebuyProductAddOns/RebuyProductAddOnCard.tsx +0 -66
  142. package/src/widgets/RebuyProductAddOns/RebuyProductAddOns.tsx +0 -218
  143. package/src/widgets/RebuyProductRecommendations/RebuyProductRecommendations.tsx +0 -50
@@ -11,7 +11,6 @@ export type ProgressBarTier = {
11
11
  products: unknown[];
12
12
  type: string;
13
13
  };
14
-
15
14
  export type ProgressBar = {
16
15
  country_codes: string[];
17
16
  exclude_discount: boolean;
@@ -24,7 +23,6 @@ export type ProgressBar = {
24
23
  name: string;
25
24
  tiers: ProgressBarTier[];
26
25
  };
27
-
28
26
  export type SmartCartLanguage = {
29
27
  bmsm_discount_message: string;
30
28
  bmsm_discount_success: string;
@@ -48,7 +46,6 @@ export type SmartCartLanguage = {
48
46
  view_cart_label: string;
49
47
  view_cart_working_label: string;
50
48
  };
51
-
52
49
  export type SmartCartComponent = {
53
50
  always_visible?: boolean;
54
51
  hidden?: boolean;
@@ -58,13 +55,11 @@ export type SmartCartComponent = {
58
55
  title: string;
59
56
  type: string;
60
57
  };
61
-
62
58
  export type SmartCartAnchor = {
63
59
  components: string[];
64
60
  id: string;
65
61
  title: string;
66
62
  };
67
-
68
63
  export type SmartCart = {
69
64
  accelerated_checkout: {
70
65
  enabled: boolean;
@@ -186,3 +181,4 @@ export type SmartCart = {
186
181
  enabled: boolean;
187
182
  };
188
183
  };
184
+ //# sourceMappingURL=rebuySmartCart.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"rebuySmartCart.d.ts","sourceRoot":"","sources":["../../src/types/rebuySmartCart.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,eAAe,GAAG;IAC1B,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB,sBAAsB,EAAE;QACpB,OAAO,EAAE,OAAO,CAAC;KACpB,CAAC;IACF,4BAA4B,EAAE,OAAO,CAAC;IACtC,iCAAiC,EAAE,MAAM,CAAC;IAC1C,8BAA8B,EAAE,OAAO,CAAC;IAC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OAAO,CAAC;IACtB,qBAAqB,EAAE,MAAM,CAAC;IAC9B,YAAY,EAAE;QACV,IAAI,EAAE,WAAW,EAAE,CAAC;QACpB,OAAO,EAAE,OAAO,CAAC;KACpB,CAAC;IACF,SAAS,EAAE;QACP,aAAa,EAAE,MAAM,CAAC;QACtB,UAAU,EAAE,MAAM,CAAC;KACtB,CAAC;IACF,QAAQ,EAAE;QACN,OAAO,EAAE,OAAO,CAAC;KACpB,CAAC;IACF,sBAAsB,EAAE;QACpB,iBAAiB,EAAE,OAAO,CAAC;QAC3B,OAAO,EAAE,OAAO,CAAC;QACjB,QAAQ,EAAE;YACN,iBAAiB,EAAE,MAAM,CAAC;YAC1B,0BAA0B,EAAE,MAAM,CAAC;YACnC,oBAAoB,EAAE,MAAM,CAAC;YAC7B,+BAA+B,EAAE,MAAM,CAAC;YACxC,yBAAyB,EAAE,MAAM,CAAC;YAClC,yCAAyC,EAAE,MAAM,CAAC;YAClD,6BAA6B,EAAE,MAAM,CAAC;YACtC,8CAA8C,EAAE,MAAM,CAAC;YACvD,eAAe,EAAE,MAAM,CAAC;SAC3B,CAAC;KACL,CAAC;IACF,KAAK,EAAE;QACH,UAAU,EAAE,MAAM,CAAC;QACnB,OAAO,EAAE,OAAO,CAAC;KACpB,CAAC;IACF,OAAO,EAAE,MAAM,CAAC;IAChB,gBAAgB,EAAE;QACd,OAAO,EAAE,OAAO,CAAC;KACpB,CAAC;CACL,CAAC"}
@@ -0,0 +1,85 @@
1
+ import type { Collection, Image, Maybe, MoneyV2, PageInfo, Product, ProductOption, ProductOptionValue, ProductOptionValueSwatch, ProductVariant, SelectedOption, Seo } from '@shopify/hydrogen-react/storefront-api-types';
2
+ import type { RebuyProductVariant } from './rebuyCustom';
3
+ export type HydrogenProduct = Pick<Product, 'id' | 'title' | 'vendor' | 'handle' | 'descriptionHtml' | 'description' | 'encodedVariantExistence' | 'encodedVariantAvailability'> & {
4
+ adjacentVariants: (Pick<ProductVariant, 'availableForSale' | 'id' | 'sku' | 'title'> & {
5
+ compareAtPrice?: Maybe<Pick<MoneyV2, 'amount' | 'currencyCode'>>;
6
+ image?: Maybe<{
7
+ __typename: 'Image';
8
+ } & Pick<Image, 'id' | 'url' | 'altText' | 'width' | 'height'>>;
9
+ price: Pick<MoneyV2, 'amount' | 'currencyCode'>;
10
+ product: Pick<Product, 'title' | 'handle'>;
11
+ selectedOptions: Pick<SelectedOption, 'name' | 'value'>[];
12
+ unitPrice?: Maybe<Pick<MoneyV2, 'amount' | 'currencyCode'>>;
13
+ })[];
14
+ collections: {
15
+ nodes: {
16
+ handle: string;
17
+ }[];
18
+ };
19
+ featuredImage?: {
20
+ altText: string | null;
21
+ height: number;
22
+ id: string;
23
+ url: string;
24
+ width: number;
25
+ };
26
+ images: {
27
+ altText: string | null;
28
+ height: number;
29
+ id: string;
30
+ url: string;
31
+ width: number;
32
+ }[];
33
+ options: (Pick<ProductOption, 'name'> & {
34
+ optionValues: (Pick<ProductOptionValue, 'name'> & {
35
+ firstSelectableVariant?: Maybe<Pick<ProductVariant, 'availableForSale' | 'id' | 'sku' | 'title'> & {
36
+ compareAtPrice?: Maybe<Pick<MoneyV2, 'amount' | 'currencyCode'>>;
37
+ image?: Maybe<{
38
+ __typename: 'Image';
39
+ } & Pick<Image, 'id' | 'url' | 'altText' | 'width' | 'height'>>;
40
+ price: Pick<MoneyV2, 'amount' | 'currencyCode'>;
41
+ product: Pick<Product, 'title' | 'handle'>;
42
+ selectedOptions: Pick<SelectedOption, 'name' | 'value'>[];
43
+ unitPrice?: Maybe<Pick<MoneyV2, 'amount' | 'currencyCode'>>;
44
+ }>;
45
+ swatch?: Maybe<Pick<ProductOptionValueSwatch, 'color'> & {
46
+ image?: Maybe<{
47
+ previewImage?: Maybe<Pick<Image, 'url'>>;
48
+ }>;
49
+ }>;
50
+ })[];
51
+ })[];
52
+ priceRange: {
53
+ maxVariantPrice: MoneyV2;
54
+ minVariantPrice: MoneyV2;
55
+ };
56
+ selectedOrFirstAvailableVariant?: HydrogenProductVariant;
57
+ selectedVariant?: HydrogenProductVariant;
58
+ seo: Pick<Seo, 'description' | 'title'>;
59
+ variants?: {
60
+ nodes: RebuyProductVariant[];
61
+ };
62
+ };
63
+ export type HydrogenProductVariant = Pick<ProductVariant, 'availableForSale' | 'id' | 'sku' | 'title'> & {
64
+ compareAtPrice?: Maybe<Pick<MoneyV2, 'amount' | 'currencyCode'>>;
65
+ image?: Maybe<{
66
+ __typename: 'Image';
67
+ } & Pick<Image, 'id' | 'url' | 'altText' | 'width' | 'height'>>;
68
+ price: Pick<MoneyV2, 'amount' | 'currencyCode'>;
69
+ product: Pick<Product, 'title' | 'handle'>;
70
+ selectedOptions: Pick<SelectedOption, 'name' | 'value'>[];
71
+ unitPrice?: Maybe<Pick<MoneyV2, 'amount' | 'currencyCode'>>;
72
+ };
73
+ export type HydrogenCollection = Pick<Collection, 'id' | 'handle' | 'title' | 'description'> & {
74
+ products: {
75
+ nodes: (Pick<Product, 'id' | 'handle' | 'title'> & {
76
+ featuredImage?: Maybe<Pick<Image, 'id' | 'altText' | 'url' | 'width' | 'height'>>;
77
+ priceRange: {
78
+ maxVariantPrice: Pick<MoneyV2, 'amount' | 'currencyCode'>;
79
+ minVariantPrice: Pick<MoneyV2, 'amount' | 'currencyCode'>;
80
+ };
81
+ })[];
82
+ pageInfo: Pick<PageInfo, 'hasPreviousPage' | 'hasNextPage' | 'endCursor' | 'startCursor'>;
83
+ };
84
+ };
85
+ //# sourceMappingURL=shopify.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"shopify.d.ts","sourceRoot":"","sources":["../../src/types/shopify.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACR,UAAU,EACV,KAAK,EACL,KAAK,EACL,OAAO,EACP,QAAQ,EACR,OAAO,EACP,aAAa,EACb,kBAAkB,EAClB,wBAAwB,EACxB,cAAc,EACd,cAAc,EACd,GAAG,EACN,MAAM,8CAA8C,CAAC;AACtD,OAAO,KAAK,EAAE,mBAAmB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AAO,GAAG,aAAa,CAAC,GAAG;IAC3F,QAAQ,EAAE;QACN,KAAK,EAAE,CAAC,IAAI,CAAC,OAAO,EAAE,IAAI,GAAG,QAAQ,GAAG,OAAO,CAAC,GAAG;YAC/C,aAAa,CAAC,EAAE,KAAK,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,GAAG,SAAS,GAAG,KAAK,GAAG,OAAO,GAAG,QAAQ,CAAC,CAAC,CAAC;YAClF,UAAU,EAAE;gBACR,eAAe,EAAE,IAAI,CAAC,OAAO,EAAE,QAAQ,GAAG,cAAc,CAAC,CAAC;gBAC1D,eAAe,EAAE,IAAI,CAAC,OAAO,EAAE,QAAQ,GAAG,cAAc,CAAC,CAAC;aAC7D,CAAC;SACL,CAAC,EAAE,CAAC;QACL,QAAQ,EAAE,IAAI,CAAC,QAAQ,EAAE,iBAAiB,GAAG,aAAa,GAAG,WAAW,GAAG,aAAa,CAAC,CAAC;KAC7F,CAAC;CACL,CAAC"}
@@ -1,12 +1,5 @@
1
+ import { type RebuyProduct, type RebuyProductVariant, type RebuyWidgetMetadata } from '~/types/rebuyCustom';
1
2
  import type { HydrogenProduct } from '~/types/shopify';
2
-
3
- import {
4
- RebuyProduct,
5
- RebuyProductVariant,
6
- RebuyWidgetMetadata,
7
- } from '~/types/rebuyCustom';
8
-
9
- // Internal type with all props from container
10
3
  export type WidgetContainerProvidedProps = {
11
4
  dataSource: string;
12
5
  isHydrogenReact: boolean;
@@ -20,10 +13,10 @@ export type WidgetContainerProvidedProps = {
20
13
  variant: RebuyProductVariant;
21
14
  variantId: string;
22
15
  };
23
-
24
16
  export type WidgetChildProps = {
25
17
  addToCartCallback?: () => void;
26
18
  customTitle?: string;
27
19
  customTitleLevel?: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6';
28
20
  customTitleStyle?: React.CSSProperties;
29
21
  } & Partial<WidgetContainerProvidedProps>;
22
+ //# sourceMappingURL=widgets.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"widgets.d.ts","sourceRoot":"","sources":["../../src/types/widgets.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,YAAY,EAAE,KAAK,mBAAmB,EAAE,KAAK,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AAC5G,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAGvD,MAAM,MAAM,4BAA4B,GAAG;IACvC,UAAU,EAAE,MAAM,CAAC;IACnB,eAAe,EAAE,OAAO,CAAC;IACzB,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,mBAAmB,CAAC;IAC9B,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACjC,OAAO,EAAE,eAAe,CAAC;IACzB,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,YAAY,EAAE,CAAC;IACzB,OAAO,EAAE,mBAAmB,CAAC;IAC7B,SAAS,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF,MAAM,MAAM,gBAAgB,GAAG;IAC3B,iBAAiB,CAAC,EAAE,MAAM,IAAI,CAAC;IAC/B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,gBAAgB,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;IAC3D,gBAAgB,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;CAC1C,GAAG,OAAO,CAAC,4BAA4B,CAAC,CAAC"}
@@ -0,0 +1,156 @@
1
+ import type { RebuyProductVariant } from '~/types/rebuyCustom';
2
+ import type { HydrogenProduct } from '~/types/shopify';
3
+ export declare const convertToRebuyProduct: (isHydrogenReact: boolean, product?: HydrogenProduct) => {
4
+ collections: {
5
+ nodes: {
6
+ handle: string;
7
+ }[];
8
+ };
9
+ compareAtPriceRange: {
10
+ maxVariantCompareAtPrice: null;
11
+ minVariantCompareAtPrice: null;
12
+ };
13
+ description: string;
14
+ descriptionHtml: string;
15
+ featuredImage: {
16
+ altText: string;
17
+ height: number;
18
+ id: string;
19
+ url: string;
20
+ width: number;
21
+ };
22
+ handle: string;
23
+ id: string;
24
+ images: {
25
+ altText: string;
26
+ height: number;
27
+ id: string;
28
+ url: string;
29
+ width: number;
30
+ }[];
31
+ media: never[];
32
+ metafields: never[];
33
+ options: never[];
34
+ priceRange: {
35
+ maxVariantPrice: import("@shopify/hydrogen-react/storefront-api-types").MoneyV2;
36
+ minVariantPrice: import("@shopify/hydrogen-react/storefront-api-types").MoneyV2;
37
+ };
38
+ selected: boolean;
39
+ selectedOptions: {};
40
+ selectedSellingPlan: {};
41
+ selectedSellingPlanAllocation: {};
42
+ selectedVariant: {
43
+ availableForSale: boolean;
44
+ compareAtPriceV2: {
45
+ amount: string;
46
+ currencyCode: import("@shopify/hydrogen-react/storefront-api-types").CurrencyCode;
47
+ };
48
+ id: string;
49
+ image: {
50
+ altText: string;
51
+ height: number;
52
+ id: string;
53
+ url: string;
54
+ width: number;
55
+ };
56
+ priceV2: {
57
+ amount: string;
58
+ currencyCode: import("@shopify/hydrogen-react/storefront-api-types").CurrencyCode;
59
+ };
60
+ product: {
61
+ handle: string;
62
+ id: string;
63
+ title: string;
64
+ vendor: string;
65
+ };
66
+ selectedOptions: Pick<import("@shopify/hydrogen-react/storefront-api-types").SelectedOption, "name" | "value">[];
67
+ sku: string;
68
+ title: string;
69
+ };
70
+ sellingPlanGroups: never[];
71
+ seo: {
72
+ description: string;
73
+ title: string;
74
+ };
75
+ title: string;
76
+ variants: {
77
+ nodes: RebuyProductVariant[];
78
+ };
79
+ vendor: string;
80
+ } | {
81
+ collections: {
82
+ nodes: never[];
83
+ };
84
+ compareAtPriceRange: {
85
+ maxVariantCompareAtPrice: null;
86
+ minVariantCompareAtPrice: null;
87
+ };
88
+ description: string;
89
+ descriptionHtml: string;
90
+ featuredImage: {
91
+ altText: string;
92
+ height: number;
93
+ id: string;
94
+ url: string;
95
+ width: number;
96
+ };
97
+ handle: string;
98
+ id: string;
99
+ images: {
100
+ altText: string;
101
+ height: number;
102
+ id: string;
103
+ url: string;
104
+ width: number;
105
+ }[];
106
+ media: never[];
107
+ metafields: never[];
108
+ options: never[];
109
+ priceRange: {
110
+ maxVariantPrice: import("@shopify/hydrogen-react/storefront-api-types").MoneyV2;
111
+ minVariantPrice: import("@shopify/hydrogen-react/storefront-api-types").MoneyV2;
112
+ };
113
+ selected: boolean;
114
+ selectedOptions: {};
115
+ selectedSellingPlan: {};
116
+ selectedSellingPlanAllocation: {};
117
+ selectedVariant: {
118
+ availableForSale: boolean;
119
+ compareAtPriceV2: {
120
+ amount: string;
121
+ currencyCode: import("@shopify/hydrogen-react/storefront-api-types").CurrencyCode;
122
+ };
123
+ id: string;
124
+ image: {
125
+ altText: string;
126
+ height: number;
127
+ id: string;
128
+ url: string;
129
+ width: number;
130
+ };
131
+ priceV2: {
132
+ amount: string;
133
+ currencyCode: import("@shopify/hydrogen-react/storefront-api-types").CurrencyCode;
134
+ };
135
+ product: {
136
+ handle: string;
137
+ id: string;
138
+ title: string;
139
+ vendor: string;
140
+ };
141
+ selectedOptions: Pick<import("@shopify/hydrogen-react/storefront-api-types").SelectedOption, "name" | "value">[];
142
+ sku: string;
143
+ title: string;
144
+ };
145
+ sellingPlanGroups: never[];
146
+ seo: {
147
+ description: null;
148
+ title: null;
149
+ };
150
+ title: string;
151
+ variants: {
152
+ nodes: RebuyProductVariant[];
153
+ };
154
+ vendor: string;
155
+ };
156
+ //# sourceMappingURL=convertToRebuyProduct.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"convertToRebuyProduct.d.ts","sourceRoot":"","sources":["../../src/utils/convertToRebuyProduct.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AAC/D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAEvD,eAAO,MAAM,qBAAqB,GAAI,iBAAiB,OAAO,EAAE,UAAU,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAqOxF,CAAC"}
@@ -0,0 +1,3 @@
1
+ import type { ContextParameters, RebuyContextProps } from '~/types/rebuyCustom';
2
+ export declare const createContextParameters: ({ cacheKey, cartAttributes, cartId, cartLines, cartLinesLength, cartNote, cartSubtotal, cartTotalQuantity, isHydrogenReact, queryObject, windowUrl, }: RebuyContextProps) => ContextParameters;
3
+ //# sourceMappingURL=createContextParameters.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createContextParameters.d.ts","sourceRoot":"","sources":["../../src/utils/createContextParameters.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAyB,iBAAiB,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAIvG,eAAO,MAAM,uBAAuB,GAAI,uJAYrC,iBAAiB,sBAqGnB,CAAC"}
@@ -0,0 +1,3 @@
1
+ import type { Attribute } from '@shopify/hydrogen-react/storefront-api-types';
2
+ export declare const getEncodedAttributes: (attributes: Attribute[]) => string;
3
+ //# sourceMappingURL=getEncodedAttributes.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getEncodedAttributes.d.ts","sourceRoot":"","sources":["../../src/utils/getEncodedAttributes.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,8CAA8C,CAAC;AAE9E,eAAO,MAAM,oBAAoB,GAAI,YAAY,SAAS,EAAE,WAGvD,CAAC"}
@@ -0,0 +1,3 @@
1
+ import type { RebuyConfig } from '~/types/rebuyCustom';
2
+ export declare const getRebuyConfig: (storeDomain: string) => Promise<RebuyConfig>;
3
+ //# sourceMappingURL=getRebuyConfig.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getRebuyConfig.d.ts","sourceRoot":"","sources":["../../src/utils/getRebuyConfig.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAiB,MAAM,qBAAqB,CAAC;AAEtE,eAAO,MAAM,cAAc,GAAU,aAAa,MAAM,KAAG,OAAO,CAAC,WAAW,CAuB7E,CAAC"}
@@ -0,0 +1,8 @@
1
+ import { type ComponentType } from 'react';
2
+ import type { RebuyWidgetContainerProps } from '~/types/rebuyCustom';
3
+ type RebuyWidgetContainerComponent = {
4
+ (props: RebuyWidgetContainerProps): JSX.Element;
5
+ } & ComponentType<RebuyWidgetContainerProps>;
6
+ export declare const RebuyWidgetContainer: RebuyWidgetContainerComponent;
7
+ export {};
8
+ //# sourceMappingURL=RebuyWidgetContainer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RebuyWidgetContainer.d.ts","sourceRoot":"","sources":["../../src/widgetContainer/RebuyWidgetContainer.tsx"],"names":[],"mappings":"AAGA,OAAc,EAAE,KAAK,aAAa,EAA4C,MAAM,OAAO,CAAC;AAG5F,OAAO,KAAK,EAAgB,yBAAyB,EAAuB,MAAM,qBAAqB,CAAC;AAExG,KAAK,6BAA6B,GAAG;IACjC,CAAC,KAAK,EAAE,yBAAyB,GAAG,GAAG,CAAC,OAAO,CAAC;CACnD,GAAG,aAAa,CAAC,yBAAyB,CAAC,CAAC;AA2H7C,eAAO,MAAM,oBAAoB,EAA+B,6BAA6B,CAAC"}
@@ -0,0 +1,3 @@
1
+ import type { RebuyCompleteTheLookProps } from './types';
2
+ export declare const RebuyCompleteTheLook: (props: RebuyCompleteTheLookProps) => import("react/jsx-runtime").JSX.Element | null;
3
+ //# sourceMappingURL=RebuyCompleteTheLook.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RebuyCompleteTheLook.d.ts","sourceRoot":"","sources":["../../../src/widgets/RebuyCompleteTheLook/RebuyCompleteTheLook.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,SAAS,CAAC;AAIzD,eAAO,MAAM,oBAAoB,GAAI,OAAO,yBAAyB,mDAkCpE,CAAC"}
@@ -1 +1,2 @@
1
1
  export * from './RebuyCompleteTheLook';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/widgets/RebuyCompleteTheLook/index.ts"],"names":[],"mappings":"AAAA,cAAc,wBAAwB,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import type { WidgetChildProps } from '~/types/widgets';
2
-
3
2
  export type RebuyCompleteTheLookProps = {
4
3
  addToCartBtnText?: string;
5
4
  } & WidgetChildProps;
5
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/widgets/RebuyCompleteTheLook/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AAExD,MAAM,MAAM,yBAAyB,GAAG;IACpC,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC7B,GAAG,gBAAgB,CAAC"}
@@ -0,0 +1,5 @@
1
+ import type { BundleProduct } from '~/widgets/RebuyDynamicBundleProducts/types';
2
+ export declare const BundleImages: ({ products }: {
3
+ products: BundleProduct[];
4
+ }) => import("react/jsx-runtime").JSX.Element;
5
+ //# sourceMappingURL=BundleImages.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BundleImages.d.ts","sourceRoot":"","sources":["../../../src/widgets/RebuyDynamicBundleProducts/BundleImages.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,4CAA4C,CAAC;AAGhF,eAAO,MAAM,YAAY,GAAI,cAAc;IAAE,QAAQ,EAAE,aAAa,EAAE,CAAA;CAAE,4CAkDvE,CAAC"}
@@ -0,0 +1,5 @@
1
+ import type { BundleProduct } from '~/widgets/RebuyDynamicBundleProducts/types';
2
+ export declare const BundlePrice: ({ products }: {
3
+ products: BundleProduct[];
4
+ }) => false | import("react/jsx-runtime").JSX.Element;
5
+ //# sourceMappingURL=BundlePrice.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BundlePrice.d.ts","sourceRoot":"","sources":["../../../src/widgets/RebuyDynamicBundleProducts/BundlePrice.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,4CAA4C,CAAC;AAGhF,eAAO,MAAM,WAAW,GAAI,cAAc;IAAE,QAAQ,EAAE,aAAa,EAAE,CAAA;CAAE,oDAqEtE,CAAC"}
@@ -0,0 +1,3 @@
1
+ import type { BundleSelectionProps } from '~/widgets/RebuyDynamicBundleProducts/types';
2
+ export declare const BundleSelection: ({ onSelectVariant, onToggleBundleItem, products }: BundleSelectionProps) => import("react/jsx-runtime").JSX.Element;
3
+ //# sourceMappingURL=BundleSelection.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BundleSelection.d.ts","sourceRoot":"","sources":["../../../src/widgets/RebuyDynamicBundleProducts/BundleSelection.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,4CAA4C,CAAC;AAGvF,eAAO,MAAM,eAAe,GAAI,mDAAmD,oBAAoB,4CAyCtG,CAAC"}
@@ -0,0 +1,3 @@
1
+ import type { RebuyDynamicBundleProductsProps } from '~/widgets/RebuyDynamicBundleProducts/types';
2
+ export declare const RebuyDynamicBundleProducts: (props: RebuyDynamicBundleProductsProps) => import("react/jsx-runtime").JSX.Element | null;
3
+ //# sourceMappingURL=RebuyDynamicBundleProducts.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RebuyDynamicBundleProducts.d.ts","sourceRoot":"","sources":["../../../src/widgets/RebuyDynamicBundleProducts/RebuyDynamicBundleProducts.tsx"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAiB,+BAA+B,EAAE,MAAM,4CAA4C,CAAC;AAIjH,eAAO,MAAM,0BAA0B,GAAI,OAAO,+BAA+B,mDAsFhF,CAAC"}
@@ -0,0 +1,3 @@
1
+ import type { BundleSelectProps } from '~/widgets/RebuyDynamicBundleProducts/types';
2
+ export declare const Select: ({ onSelectVariant, product }: BundleSelectProps) => import("react/jsx-runtime").JSX.Element;
3
+ //# sourceMappingURL=Select.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Select.d.ts","sourceRoot":"","sources":["../../../src/widgets/RebuyDynamicBundleProducts/Select.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAiB,iBAAiB,EAAE,MAAM,4CAA4C,CAAC;AAGnG,eAAO,MAAM,MAAM,GAAI,8BAA8B,iBAAiB,4CA6BrE,CAAC"}
@@ -1 +1,2 @@
1
1
  export * from './RebuyDynamicBundleProducts';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/widgets/RebuyDynamicBundleProducts/index.ts"],"names":[],"mappings":"AAAA,cAAc,8BAA8B,CAAC"}
@@ -1,23 +1,19 @@
1
1
  import type { RebuyProduct } from '~/types/rebuyCustom';
2
2
  import type { WidgetChildProps } from '~/types/widgets';
3
-
4
3
  export type BundleProductOptions = {
5
4
  default?: boolean;
6
5
  };
7
-
8
6
  export type BundleProduct = RebuyProduct & BundleProductOptions;
9
-
10
7
  export type BundleSelectionProps = {
11
8
  onSelectVariant: (product: BundleProduct, variantId: string) => void;
12
9
  onToggleBundleItem: (product: BundleProduct) => void;
13
10
  products: BundleProduct[];
14
11
  };
15
-
16
12
  export type BundleSelectProps = {
17
13
  onSelectVariant: (product: BundleProduct, variantId: string) => void;
18
14
  product: BundleProduct;
19
15
  };
20
-
21
16
  export type RebuyDynamicBundleProductsProps = {
22
17
  addToCartBtnText?: string;
23
18
  } & WidgetChildProps;
19
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/widgets/RebuyDynamicBundleProducts/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AAExD,MAAM,MAAM,oBAAoB,GAAG;IAC/B,OAAO,CAAC,EAAE,OAAO,CAAC;CACrB,CAAC;AAEF,MAAM,MAAM,aAAa,GAAG,YAAY,GAAG,oBAAoB,CAAC;AAEhE,MAAM,MAAM,oBAAoB,GAAG;IAC/B,eAAe,EAAE,CAAC,OAAO,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,KAAK,IAAI,CAAC;IACrE,kBAAkB,EAAE,CAAC,OAAO,EAAE,aAAa,KAAK,IAAI,CAAC;IACrD,QAAQ,EAAE,aAAa,EAAE,CAAC;CAC7B,CAAC;AAEF,MAAM,MAAM,iBAAiB,GAAG;IAC5B,eAAe,EAAE,CAAC,OAAO,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,KAAK,IAAI,CAAC;IACrE,OAAO,EAAE,aAAa,CAAC;CAC1B,CAAC;AAEF,MAAM,MAAM,+BAA+B,GAAG;IAC1C,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC7B,GAAG,gBAAgB,CAAC"}
@@ -0,0 +1,3 @@
1
+ import type { RebuyProductAddOnCardProps } from './types';
2
+ export declare const RebuyProductAddOnCard: ({ handleChange, learnMoreText, outOfStockText, product, titleLevel, }: RebuyProductAddOnCardProps) => import("react/jsx-runtime").JSX.Element;
3
+ //# sourceMappingURL=RebuyProductAddOnCard.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RebuyProductAddOnCard.d.ts","sourceRoot":"","sources":["../../../src/widgets/RebuyProductAddOns/RebuyProductAddOnCard.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,SAAS,CAAC;AAG1D,eAAO,MAAM,qBAAqB,GAAI,uEAMnC,0BAA0B,4CAwC5B,CAAC"}
@@ -0,0 +1,3 @@
1
+ import type { RebuyProductAddOnProps } from '~/widgets/RebuyProductAddOns/types';
2
+ export declare const RebuyProductAddOns: (props: RebuyProductAddOnProps) => import("react/jsx-runtime").JSX.Element | null;
3
+ //# sourceMappingURL=RebuyProductAddOns.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RebuyProductAddOns.d.ts","sourceRoot":"","sources":["../../../src/widgets/RebuyProductAddOns/RebuyProductAddOns.tsx"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,oCAAoC,CAAC;AAIjF,eAAO,MAAM,kBAAkB,GAAI,OAAO,sBAAsB,mDA0K/D,CAAC"}
@@ -1 +1,2 @@
1
1
  export * from './RebuyProductAddOns';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/widgets/RebuyProductAddOns/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAC"}
@@ -1,7 +1,6 @@
1
1
  import type { ProductCardTitleLevel } from '~/types/common';
2
2
  import type { RebuyProduct } from '~/types/rebuyCustom';
3
3
  import type { WidgetChildProps } from '~/types/widgets';
4
-
5
4
  export type RebuyProductAddOnProps = {
6
5
  addToCartBtnText?: string;
7
6
  includeMainProduct?: boolean;
@@ -10,15 +9,11 @@ export type RebuyProductAddOnProps = {
10
9
  subtotalText?: string;
11
10
  withProductText?: string;
12
11
  } & WidgetChildProps;
13
-
14
12
  export type RebuyProductAddOnCardProps = {
15
- handleChange: (
16
- event: React.ChangeEvent<HTMLInputElement>,
17
- product: RebuyProduct
18
- ) => void;
19
-
13
+ handleChange: (event: React.ChangeEvent<HTMLInputElement>, product: RebuyProduct) => void;
20
14
  learnMoreText?: string;
21
15
  outOfStockText?: string;
22
16
  product: RebuyProduct;
23
17
  titleLevel: ProductCardTitleLevel;
24
18
  };
19
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/widgets/RebuyProductAddOns/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,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AAExD,MAAM,MAAM,sBAAsB,GAAG;IACjC,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,eAAe,CAAC,EAAE,MAAM,CAAC;CAC5B,GAAG,gBAAgB,CAAC;AAErB,MAAM,MAAM,0BAA0B,GAAG;IACrC,YAAY,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,WAAW,CAAC,gBAAgB,CAAC,EAAE,OAAO,EAAE,YAAY,KAAK,IAAI,CAAC;IAE1F,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,OAAO,EAAE,YAAY,CAAC;IACtB,UAAU,EAAE,qBAAqB,CAAC;CACrC,CAAC"}
@@ -0,0 +1,3 @@
1
+ import type { RebuyProductRecommendationsProps } from './types';
2
+ export declare const RebuyProductRecommendations: (props: RebuyProductRecommendationsProps) => import("react/jsx-runtime").JSX.Element | null;
3
+ //# sourceMappingURL=RebuyProductRecommendations.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RebuyProductRecommendations.d.ts","sourceRoot":"","sources":["../../../src/widgets/RebuyProductRecommendations/RebuyProductRecommendations.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,gCAAgC,EAAE,MAAM,SAAS,CAAC;AAGhE,eAAO,MAAM,2BAA2B,GAAI,OAAO,gCAAgC,mDAkClF,CAAC"}
@@ -1 +1,2 @@
1
1
  export { RebuyProductRecommendations } from './RebuyProductRecommendations';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/widgets/RebuyProductRecommendations/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,2BAA2B,EAAE,MAAM,+BAA+B,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import type { WidgetChildProps } from '~/types/widgets';
2
-
3
2
  export type RebuyProductRecommendationsProps = {
4
3
  addToCartBtnText?: string;
5
4
  } & WidgetChildProps;
5
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/widgets/RebuyProductRecommendations/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AAExD,MAAM,MAAM,gCAAgC,GAAG;IAC3C,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC7B,GAAG,gBAAgB,CAAC"}