@rebuy/rebuy-hydrogen 3.0.0-beta.1 → 3.0.0-beta.2
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 +2193 -0
- package/dist/index.js.map +7 -0
- package/dist/index.mjs +2169 -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 +48 -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 +239 -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 +1 -1
- package/src/components/Title/Title.tsx +1 -2
@@ -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,GAC9B,iBAAiB,OAAO,EACxB,UAAU,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAyT5B,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,EAGR,iBAAiB,EACjB,iBAAiB,EACpB,MAAM,qBAAqB,CAAC;AAI7B,eAAO,MAAM,uBAAuB,GAAI,uJAYrC,iBAAiB,sBAqHnB,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,WAQvD,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,GACvB,UAAU,MAAM,EAChB,aAAa,MAAM,KACpB,OAAO,CAAC,WAAW,CAwBrB,CAAC"}
|
@@ -0,0 +1,8 @@
|
|
1
|
+
import { 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,EACV,aAAa,EAKhB,MAAM,OAAO,CAAC;AAEf,OAAO,KAAK,EAER,yBAAyB,EAE5B,MAAM,qBAAqB,CAAC;AAI7B,KAAK,6BAA6B,GAAG;IACjC,CAAC,KAAK,EAAE,yBAAyB,GAAG,GAAG,CAAC,OAAO,CAAC;CACnD,GAAG,aAAa,CAAC,yBAAyB,CAAC,CAAC;AAgK7C,eAAO,MAAM,oBAAoB,EACD,6BAA6B,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"RebuyCompleteTheLook.d.ts","sourceRoot":"","sources":["../../../src/widgets/RebuyCompleteTheLook/RebuyCompleteTheLook.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,SAAS,CAAC;AAOzD,eAAO,MAAM,oBAAoB,GAAI,OAAO,yBAAyB,mDAwCpE,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":"AAMA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,4CAA4C,CAAC;AAEhF,eAAO,MAAM,YAAY,GAAI,cAAc;IAAE,QAAQ,EAAE,aAAa,EAAE,CAAA;CAAE,4CAqDvE,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"BundlePrice.d.ts","sourceRoot":"","sources":["../../../src/widgets/RebuyDynamicBundleProducts/BundlePrice.tsx"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,4CAA4C,CAAC;AAEhF,eAAO,MAAM,WAAW,GAAI,cAAc;IAAE,QAAQ,EAAE,aAAa,EAAE,CAAA;CAAE,oDAkFtE,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;AAKvF,eAAO,MAAM,eAAe,GAAI,oDAI7B,oBAAoB,4CAqDtB,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":"AAMA,OAAO,KAAK,EAER,+BAA+B,EAClC,MAAM,4CAA4C,CAAC;AASpD,eAAO,MAAM,0BAA0B,GACnC,OAAO,+BAA+B,mDAkGzC,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"Select.d.ts","sourceRoot":"","sources":["../../../src/widgets/RebuyDynamicBundleProducts/Select.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAER,iBAAiB,EACpB,MAAM,4CAA4C,CAAC;AAEpD,eAAO,MAAM,MAAM,GAAI,8BAA8B,iBAAiB,4CAiCrE,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;AAK1D,eAAO,MAAM,qBAAqB,GAAI,uEAMnC,0BAA0B,4CAiD5B,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"RebuyProductAddOns.d.ts","sourceRoot":"","sources":["../../../src/widgets/RebuyProductAddOns/RebuyProductAddOns.tsx"],"names":[],"mappings":"AAYA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,oCAAoC,CAAC;AAOjF,eAAO,MAAM,kBAAkB,GAAI,OAAO,sBAAsB,mDAsM/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,CACV,KAAK,EAAE,KAAK,CAAC,WAAW,CAAC,gBAAgB,CAAC,EAC1C,OAAO,EAAE,YAAY,KACpB,IAAI,CAAC;IAEV,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":"AAEA,OAAO,KAAK,EAAE,gCAAgC,EAAE,MAAM,SAAS,CAAC;AAMhE,eAAO,MAAM,2BAA2B,GACpC,OAAO,gCAAgC,mDAwC1C,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
@@ -4,6 +4,7 @@ export const Title = ({ level, style, text }: TitleProps) => {
|
|
4
4
|
switch (level) {
|
5
5
|
case 'h1':
|
6
6
|
return <h1 style={style}>{text}</h1>;
|
7
|
+
default:
|
7
8
|
case 'h2':
|
8
9
|
return <h2 style={style}>{text}</h2>;
|
9
10
|
case 'h3':
|
@@ -14,7 +15,5 @@ export const Title = ({ level, style, text }: TitleProps) => {
|
|
14
15
|
return <h5 style={style}>{text}</h5>;
|
15
16
|
case 'h6':
|
16
17
|
return <h6 style={style}>{text}</h6>;
|
17
|
-
default:
|
18
|
-
return <h2 style={style}>{text}</h2>;
|
19
18
|
}
|
20
19
|
};
|