@rebuy/rebuy-hydrogen 2.3.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.
- package/README.md +0 -2
- package/dist/components/AddToCartBtn/AddToCartBtn.d.ts +3 -0
- package/dist/components/AddToCartBtn/AddToCartBtn.d.ts.map +1 -0
- package/dist/components/AddToCartBtn/HydrogenAddToCartBtn.d.ts +3 -0
- package/dist/components/AddToCartBtn/HydrogenAddToCartBtn.d.ts.map +1 -0
- package/dist/components/AddToCartBtn/HydrogenReactAddToCartBtn.d.ts +3 -0
- package/dist/components/AddToCartBtn/HydrogenReactAddToCartBtn.d.ts.map +1 -0
- package/dist/components/AddToCartBtn/index.d.ts +2 -0
- package/dist/components/AddToCartBtn/index.d.ts.map +1 -0
- package/dist/components/AddToCartBtn/types.d.ts +26 -0
- package/dist/components/AddToCartBtn/types.d.ts.map +1 -0
- package/dist/components/ProductCard/ProductCard.d.ts +3 -0
- package/dist/components/ProductCard/ProductCard.d.ts.map +1 -0
- package/dist/components/ProductCard/index.d.ts +2 -0
- package/dist/components/ProductCard/index.d.ts.map +1 -0
- package/dist/components/ProductCard/types.d.ts +10 -0
- package/dist/components/ProductCard/types.d.ts.map +1 -0
- package/dist/components/ProductPrice/ProductPrice.d.ts +5 -0
- package/dist/components/ProductPrice/ProductPrice.d.ts.map +1 -0
- package/dist/components/ProductPrice/index.d.ts +2 -0
- package/dist/components/ProductPrice/index.d.ts.map +1 -0
- package/dist/components/Title/Title.d.ts +3 -0
- package/dist/components/Title/Title.d.ts.map +1 -0
- package/dist/components/Title/index.d.ts +2 -0
- package/dist/components/Title/index.d.ts.map +1 -0
- package/dist/components/Title/types.d.ts +7 -0
- package/dist/components/Title/types.d.ts.map +1 -0
- package/dist/components/VariantSelect/VariantSelect.d.ts +3 -0
- package/dist/components/VariantSelect/VariantSelect.d.ts.map +1 -0
- package/dist/components/VariantSelect/index.d.ts +2 -0
- package/dist/components/VariantSelect/index.d.ts.map +1 -0
- package/dist/components/VariantSelect/types.d.ts +6 -0
- package/dist/components/VariantSelect/types.d.ts.map +1 -0
- package/dist/context/RebuyContext.d.ts +6 -0
- package/dist/context/RebuyContext.d.ts.map +1 -0
- package/dist/hooks/titleLevel.d.ts +3 -0
- package/dist/hooks/titleLevel.d.ts.map +1 -0
- package/dist/index.css +296 -0
- package/dist/index.css.map +7 -0
- package/dist/index.d.ts +8 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +1967 -0
- package/dist/index.js.map +7 -0
- package/dist/index.mjs +1935 -0
- package/dist/index.mjs.map +7 -0
- package/dist/providers/RebuyHydrogenContextProvider.d.ts +3 -0
- package/dist/providers/RebuyHydrogenContextProvider.d.ts.map +1 -0
- package/dist/providers/RebuyHydrogenReactContextProvider.d.ts +3 -0
- package/dist/providers/RebuyHydrogenReactContextProvider.d.ts.map +1 -0
- package/dist/providers/types.d.ts +54 -0
- package/dist/providers/types.d.ts.map +1 -0
- package/dist/queries/cart.queries.d.ts +5 -0
- package/dist/queries/cart.queries.d.ts.map +1 -0
- package/dist/types/common.d.ts +9 -0
- package/dist/types/common.d.ts.map +1 -0
- package/dist/types/rebuyCustom.d.ts +240 -0
- package/dist/types/rebuyCustom.d.ts.map +1 -0
- package/dist/types/rebuySmartCart.d.ts +184 -0
- package/dist/types/rebuySmartCart.d.ts.map +1 -0
- package/dist/types/shopify.d.ts +85 -0
- package/dist/types/shopify.d.ts.map +1 -0
- package/dist/types/widgets.d.ts +22 -0
- package/dist/types/widgets.d.ts.map +1 -0
- package/dist/utils/convertToRebuyProduct.d.ts +156 -0
- package/dist/utils/convertToRebuyProduct.d.ts.map +1 -0
- package/dist/utils/createContextParameters.d.ts +3 -0
- package/dist/utils/createContextParameters.d.ts.map +1 -0
- package/dist/utils/getEncodedAttributes.d.ts +3 -0
- package/dist/utils/getEncodedAttributes.d.ts.map +1 -0
- package/dist/utils/getRebuyConfig.d.ts +3 -0
- package/dist/utils/getRebuyConfig.d.ts.map +1 -0
- package/dist/widgetContainer/RebuyWidgetContainer.d.ts +8 -0
- package/dist/widgetContainer/RebuyWidgetContainer.d.ts.map +1 -0
- package/dist/widgets/RebuyCompleteTheLook/RebuyCompleteTheLook.d.ts +3 -0
- package/dist/widgets/RebuyCompleteTheLook/RebuyCompleteTheLook.d.ts.map +1 -0
- package/dist/widgets/RebuyCompleteTheLook/index.d.ts +2 -0
- package/dist/widgets/RebuyCompleteTheLook/index.d.ts.map +1 -0
- package/dist/widgets/RebuyCompleteTheLook/types.d.ts +5 -0
- package/dist/widgets/RebuyCompleteTheLook/types.d.ts.map +1 -0
- package/dist/widgets/RebuyDynamicBundleProducts/BundleImages.d.ts +5 -0
- package/dist/widgets/RebuyDynamicBundleProducts/BundleImages.d.ts.map +1 -0
- package/dist/widgets/RebuyDynamicBundleProducts/BundlePrice.d.ts +5 -0
- package/dist/widgets/RebuyDynamicBundleProducts/BundlePrice.d.ts.map +1 -0
- package/dist/widgets/RebuyDynamicBundleProducts/BundleSelection.d.ts +3 -0
- package/dist/widgets/RebuyDynamicBundleProducts/BundleSelection.d.ts.map +1 -0
- package/dist/widgets/RebuyDynamicBundleProducts/RebuyDynamicBundleProducts.d.ts +3 -0
- package/dist/widgets/RebuyDynamicBundleProducts/RebuyDynamicBundleProducts.d.ts.map +1 -0
- package/dist/widgets/RebuyDynamicBundleProducts/Select.d.ts +3 -0
- package/dist/widgets/RebuyDynamicBundleProducts/Select.d.ts.map +1 -0
- package/dist/widgets/RebuyDynamicBundleProducts/index.d.ts +2 -0
- package/dist/widgets/RebuyDynamicBundleProducts/index.d.ts.map +1 -0
- package/dist/widgets/RebuyDynamicBundleProducts/types.d.ts +19 -0
- package/dist/widgets/RebuyDynamicBundleProducts/types.d.ts.map +1 -0
- package/dist/widgets/RebuyProductAddOns/RebuyProductAddOnCard.d.ts +3 -0
- package/dist/widgets/RebuyProductAddOns/RebuyProductAddOnCard.d.ts.map +1 -0
- package/dist/widgets/RebuyProductAddOns/RebuyProductAddOns.d.ts +3 -0
- package/dist/widgets/RebuyProductAddOns/RebuyProductAddOns.d.ts.map +1 -0
- package/dist/widgets/RebuyProductAddOns/index.d.ts +2 -0
- package/dist/widgets/RebuyProductAddOns/index.d.ts.map +1 -0
- package/dist/widgets/RebuyProductAddOns/types.d.ts +19 -0
- package/dist/widgets/RebuyProductAddOns/types.d.ts.map +1 -0
- package/dist/widgets/RebuyProductRecommendations/RebuyProductRecommendations.d.ts +3 -0
- package/dist/widgets/RebuyProductRecommendations/RebuyProductRecommendations.d.ts.map +1 -0
- package/dist/widgets/RebuyProductRecommendations/index.d.ts +2 -0
- package/dist/widgets/RebuyProductRecommendations/index.d.ts.map +1 -0
- package/dist/widgets/RebuyProductRecommendations/types.d.ts +5 -0
- package/dist/widgets/RebuyProductRecommendations/types.d.ts.map +1 -0
- package/package.json +84 -46
- package/RebuyCompleteTheLook.client.jsx +0 -188
- package/RebuyContextProvider.client.jsx +0 -222
- package/RebuyContexts.client.jsx +0 -3
- package/RebuyDynamicBundleProducts.client.jsx +0 -415
- package/RebuyProductAddOnCard.client.jsx +0 -89
- package/RebuyProductAddOns.client.jsx +0 -227
- package/RebuyProductRecommendations.client.jsx +0 -68
- package/RebuyProductViewed.client.jsx +0 -62
- package/RebuyRecentlyViewedProducts.client.jsx +0 -68
- package/RebuyWidgetContainer.client.jsx +0 -136
@@ -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 @@
|
|
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 @@
|
|
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 @@
|
|
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"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/widgets/RebuyCompleteTheLook/index.ts"],"names":[],"mappings":"AAAA,cAAc,wBAAwB,CAAC"}
|
@@ -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 @@
|
|
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 @@
|
|
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 @@
|
|
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"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/widgets/RebuyDynamicBundleProducts/index.ts"],"names":[],"mappings":"AAAA,cAAc,8BAA8B,CAAC"}
|
@@ -0,0 +1,19 @@
|
|
1
|
+
import type { RebuyProduct } from '~/types/rebuyCustom';
|
2
|
+
import type { WidgetChildProps } from '~/types/widgets';
|
3
|
+
export type BundleProductOptions = {
|
4
|
+
default?: boolean;
|
5
|
+
};
|
6
|
+
export type BundleProduct = RebuyProduct & BundleProductOptions;
|
7
|
+
export type BundleSelectionProps = {
|
8
|
+
onSelectVariant: (product: BundleProduct, variantId: string) => void;
|
9
|
+
onToggleBundleItem: (product: BundleProduct) => void;
|
10
|
+
products: BundleProduct[];
|
11
|
+
};
|
12
|
+
export type BundleSelectProps = {
|
13
|
+
onSelectVariant: (product: BundleProduct, variantId: string) => void;
|
14
|
+
product: BundleProduct;
|
15
|
+
};
|
16
|
+
export type RebuyDynamicBundleProductsProps = {
|
17
|
+
addToCartBtnText?: string;
|
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 @@
|
|
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"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/widgets/RebuyProductAddOns/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAC"}
|
@@ -0,0 +1,19 @@
|
|
1
|
+
import type { ProductCardTitleLevel } from '~/types/common';
|
2
|
+
import type { RebuyProduct } from '~/types/rebuyCustom';
|
3
|
+
import type { WidgetChildProps } from '~/types/widgets';
|
4
|
+
export type RebuyProductAddOnProps = {
|
5
|
+
addToCartBtnText?: string;
|
6
|
+
includeMainProduct?: boolean;
|
7
|
+
learnMoreText?: string;
|
8
|
+
outOfStockText?: string;
|
9
|
+
subtotalText?: string;
|
10
|
+
withProductText?: string;
|
11
|
+
} & WidgetChildProps;
|
12
|
+
export type RebuyProductAddOnCardProps = {
|
13
|
+
handleChange: (event: React.ChangeEvent<HTMLInputElement>, product: RebuyProduct) => void;
|
14
|
+
learnMoreText?: string;
|
15
|
+
outOfStockText?: string;
|
16
|
+
product: RebuyProduct;
|
17
|
+
titleLevel: ProductCardTitleLevel;
|
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 @@
|
|
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"}
|
@@ -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"}
|
@@ -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"}
|
package/package.json
CHANGED
@@ -1,23 +1,44 @@
|
|
1
1
|
{
|
2
2
|
"name": "@rebuy/rebuy-hydrogen",
|
3
|
+
"version": "3.0.0-beta.10",
|
3
4
|
"description": "This is the default library for Rebuy + Shopify Hydrogen",
|
4
|
-
"
|
5
|
+
"homepage": "https://bitbucket.org/rebuyengine/npm-rebuy-hydrogen#readme",
|
6
|
+
"bugs": {
|
7
|
+
"url": "https://bitbucket.org/rebuyengine/npm-rebuy-hydrogen/issues"
|
8
|
+
},
|
9
|
+
"repository": {
|
10
|
+
"type": "git",
|
11
|
+
"url": "git+ssh://git@bitbucket.org/rebuyengine/npm-rebuy-hydrogen.git"
|
12
|
+
},
|
5
13
|
"license": "MIT",
|
6
14
|
"author": "Rebuy, Inc.",
|
7
15
|
"type": "module",
|
8
|
-
"
|
9
|
-
|
10
|
-
|
16
|
+
"main": "./dist/index.js",
|
17
|
+
"module": "./dist/index.mjs",
|
18
|
+
"types": "./dist/index.d.ts",
|
11
19
|
"files": [
|
12
|
-
"
|
13
|
-
"
|
14
|
-
"**/*.jsx"
|
20
|
+
"dist",
|
21
|
+
"README.md"
|
15
22
|
],
|
16
23
|
"scripts": {
|
17
|
-
"
|
18
|
-
"
|
24
|
+
"build": "npm run clean && npm run build:types && npm run build:code",
|
25
|
+
"build:code": "node esbuild.config.mjs",
|
26
|
+
"build:types": "tsc --emitDeclarationOnly --outDir dist",
|
27
|
+
"build:watch": "npm run clean && npm run build:types && node esbuild.config.mjs --watch",
|
28
|
+
"check-types": "tsc --noEmit",
|
29
|
+
"clean": "rm -rf dist",
|
30
|
+
"deploy": "npm run build && npx semantic-release --debug --no-ci",
|
31
|
+
"deploy:dryrun": "npm run deploy -- --dry-run",
|
32
|
+
"dev": "npm run clean && concurrently \"npm run types:watch\" \"npm run build:watch\"",
|
33
|
+
"format": "npm run lint -- --fix && npm run lint:css -- --fix",
|
34
|
+
"lint": "eslint --ext .js,.jsx,.json,.mjs,.ts,.tsx ./src",
|
35
|
+
"lint:css": "stylelint './src/**/*.{css,scss}'",
|
36
|
+
"lint:css-skip-warn": "npm run lint:css -- --quiet",
|
37
|
+
"lint:skip-warn": "npm run lint -- --quiet",
|
19
38
|
"prepare": "husky install",
|
20
|
-
"
|
39
|
+
"sort-package": "sort-package-json",
|
40
|
+
"test": "echo \"Error: no test specified\" && exit 1",
|
41
|
+
"types:watch": "tsc --emitDeclarationOnly --outDir dist --watch"
|
21
42
|
},
|
22
43
|
"config": {
|
23
44
|
"commitizen": {
|
@@ -27,48 +48,65 @@
|
|
27
48
|
"config": ".cz-config.cjs"
|
28
49
|
}
|
29
50
|
},
|
30
|
-
"
|
31
|
-
"
|
32
|
-
"
|
33
|
-
|
34
|
-
|
35
|
-
"
|
51
|
+
"dependencies": {
|
52
|
+
"@rebuy/rebuy": "^1.5.1",
|
53
|
+
"classnames": "^2.5.1",
|
54
|
+
"dompurify": "^3.2.5",
|
55
|
+
"lodash-es": "^4.17.21",
|
56
|
+
"zustand": "^5.0.4"
|
36
57
|
},
|
37
|
-
"homepage": "https://bitbucket.org/rebuyengine/npm-rebuy-hydrogen#readme",
|
38
58
|
"devDependencies": {
|
39
|
-
"@commitlint/cli": "^
|
40
|
-
"@commitlint/config-conventional": "^
|
41
|
-
"@semantic-release/changelog": "^6.0.
|
42
|
-
"@semantic-release/commit-analyzer": "^
|
59
|
+
"@commitlint/cli": "^19.8.0",
|
60
|
+
"@commitlint/config-conventional": "^19.8.0",
|
61
|
+
"@semantic-release/changelog": "^6.0.3",
|
62
|
+
"@semantic-release/commit-analyzer": "^13.0.1",
|
43
63
|
"@semantic-release/git": "^10.0.1",
|
44
|
-
"@semantic-release/
|
45
|
-
"@
|
46
|
-
"@shopify/hydrogen": "
|
47
|
-
"
|
64
|
+
"@semantic-release/release-notes-generator": "^14.0.3",
|
65
|
+
"@shopify/hydrogen": ">=2025.0.1",
|
66
|
+
"@shopify/hydrogen-react": ">=2025.0.1",
|
67
|
+
"@types/dompurify": "^3.0.5",
|
68
|
+
"@types/lodash-es": "^4.17.12",
|
69
|
+
"@types/react": "^18.3.3",
|
70
|
+
"@types/three": "^0.175.0",
|
71
|
+
"@typescript-eslint/eslint-plugin": "^8.26.1",
|
72
|
+
"@typescript-eslint/parser": "^8.26.1",
|
73
|
+
"concurrently": "^9.1.2",
|
74
|
+
"conventional-changelog-eslint": "^6.0.0",
|
48
75
|
"cz-conventional-changelog": "^3.3.0",
|
49
|
-
"cz-customizable": "^
|
50
|
-
"
|
51
|
-
"eslint
|
52
|
-
"eslint-
|
53
|
-
"eslint-
|
54
|
-
"eslint-plugin-
|
55
|
-
"eslint-plugin-
|
56
|
-
"eslint-plugin-
|
57
|
-
"
|
58
|
-
"
|
59
|
-
"
|
60
|
-
"
|
61
|
-
|
62
|
-
|
63
|
-
"
|
76
|
+
"cz-customizable": "^7.4.0",
|
77
|
+
"esbuild": "0.25.2",
|
78
|
+
"eslint": "^8.57.0",
|
79
|
+
"eslint-config-prettier": "^10.1.1",
|
80
|
+
"eslint-import-resolver-typescript": "^4.3.4",
|
81
|
+
"eslint-plugin-import": "^2.31.0",
|
82
|
+
"eslint-plugin-jsdoc": "^50.2.4",
|
83
|
+
"eslint-plugin-json": "^4.0.1",
|
84
|
+
"eslint-plugin-prettier": "^5.2.3",
|
85
|
+
"eslint-plugin-react": "^7.37.4",
|
86
|
+
"eslint-plugin-react-hooks": "^4.6.2",
|
87
|
+
"eslint-plugin-sort-destructure-keys": "^2.0.0",
|
88
|
+
"eslint-plugin-sort-keys": "^2.3.5",
|
89
|
+
"eslint-plugin-typescript-sort-keys": "^3.3.0",
|
90
|
+
"eslint-plugin-unused-imports": "^4.1.4",
|
91
|
+
"husky": "^9.1.7",
|
92
|
+
"lint-staged": "^15.5.0",
|
93
|
+
"prettier": "^3.5.2",
|
94
|
+
"react": "^18.3.1",
|
95
|
+
"semantic-release": "^24.2.3",
|
96
|
+
"sort-package-json": "^2.10.0",
|
97
|
+
"stylelint": "^16.19.1",
|
98
|
+
"stylelint-config-css-modules": "^4.4.0",
|
99
|
+
"stylelint-config-standard": "^36.0.1",
|
100
|
+
"typescript": "^5.8.2"
|
64
101
|
},
|
65
102
|
"peerDependencies": {
|
66
|
-
"@
|
103
|
+
"@remix-run/react": ">=2.10.0",
|
104
|
+
"@shopify/hydrogen": ">=2025.0.1",
|
105
|
+
"@shopify/hydrogen-react": ">=2025.0.1",
|
106
|
+
"react": ">=18.2.0",
|
107
|
+
"react-dom": ">=18.2.0"
|
67
108
|
},
|
68
|
-
"
|
69
|
-
"
|
70
|
-
"npm run format",
|
71
|
-
"prettier --write"
|
72
|
-
]
|
109
|
+
"publishConfig": {
|
110
|
+
"access": "public"
|
73
111
|
}
|
74
112
|
}
|