@rebuy/rebuy-hydrogen 2.3.1 → 3.0.0-alpha.1
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 +195 -17
- package/dist/assets/Close.d.ts +2 -0
- package/dist/assets/Close.d.ts.map +1 -0
- 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 +27 -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/defaultSettings.d.ts +3 -0
- package/dist/components/ProductCard/defaultSettings.d.ts.map +1 -0
- package/dist/components/ProductCard/index.d.ts +3 -0
- package/dist/components/ProductCard/index.d.ts.map +1 -0
- package/dist/components/ProductCard/types.d.ts +52 -0
- package/dist/components/ProductCard/types.d.ts.map +1 -0
- package/dist/components/ProductCarousel/ProductCarousel.d.ts +16 -0
- package/dist/components/ProductCarousel/ProductCarousel.d.ts.map +1 -0
- package/dist/components/ProductCarousel/index.d.ts +2 -0
- package/dist/components/ProductCarousel/index.d.ts.map +1 -0
- package/dist/components/ProductPrice/ProductPrice.d.ts +3 -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/ProductPrice/types.d.ts +23 -0
- package/dist/components/ProductPrice/types.d.ts.map +1 -0
- package/dist/components/QuantityInput/QuantityInput.d.ts +3 -0
- package/dist/components/QuantityInput/QuantityInput.d.ts.map +1 -0
- package/dist/components/QuantityInput/index.d.ts +3 -0
- package/dist/components/QuantityInput/index.d.ts.map +1 -0
- package/dist/components/QuantityInput/types.d.ts +7 -0
- package/dist/components/QuantityInput/types.d.ts.map +1 -0
- package/dist/components/Timer/Timer.d.ts +3 -0
- package/dist/components/Timer/Timer.d.ts.map +1 -0
- package/dist/components/Timer/index.d.ts +3 -0
- package/dist/components/Timer/index.d.ts.map +1 -0
- package/dist/components/Timer/types.d.ts +16 -0
- package/dist/components/Timer/types.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 +8 -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 +8 -0
- package/dist/components/VariantSelect/types.d.ts.map +1 -0
- package/dist/constants/api.d.ts +2 -0
- package/dist/constants/api.d.ts.map +1 -0
- package/dist/context/RebuyConfigContext.d.ts +21 -0
- package/dist/context/RebuyConfigContext.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/hooks/useBreakpoint.d.ts +5 -0
- package/dist/hooks/useBreakpoint.d.ts.map +1 -0
- package/dist/hooks/usePopupTrigger.d.ts +3 -0
- package/dist/hooks/usePopupTrigger.d.ts.map +1 -0
- package/dist/hooks/useRebuyTheme.d.ts +21 -0
- package/dist/hooks/useRebuyTheme.d.ts.map +1 -0
- package/dist/index.css +853 -0
- package/dist/index.css.map +7 -0
- package/dist/index.d.ts +14 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +3211 -0
- package/dist/index.js.map +7 -0
- package/dist/index.mjs +3178 -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 +8 -0
- package/dist/providers/RebuyHydrogenReactContextProvider.d.ts.map +1 -0
- package/dist/providers/types.d.ts +71 -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 +275 -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 +23 -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/csp.d.ts +16 -0
- package/dist/utils/csp.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/utils/theme.d.ts +20 -0
- package/dist/utils/theme.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/dist/widgets/RebuyWidget/RebuyWidget.d.ts +3 -0
- package/dist/widgets/RebuyWidget/RebuyWidget.d.ts.map +1 -0
- package/dist/widgets/RebuyWidget/WidgetContent.d.ts +3 -0
- package/dist/widgets/RebuyWidget/WidgetContent.d.ts.map +1 -0
- package/dist/widgets/RebuyWidget/index.d.ts +2 -0
- package/dist/widgets/RebuyWidget/index.d.ts.map +1 -0
- package/dist/widgets/RebuyWidget/types.d.ts +335 -0
- package/dist/widgets/RebuyWidget/types.d.ts.map +1 -0
- package/package.json +86 -47
- 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,3 @@
|
|
1
|
+
import type { RebuyHydrogenContextProviderProps } from '~/providers/types';
|
2
|
+
export declare const RebuyHydrogenContextProvider: ({ cart, children, overrideApiKey, publicStoreDomain, shop, }: RebuyHydrogenContextProviderProps) => import("react/jsx-runtime").JSX.Element;
|
3
|
+
//# sourceMappingURL=RebuyHydrogenContextProvider.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"RebuyHydrogenContextProvider.d.ts","sourceRoot":"","sources":["../../src/providers/RebuyHydrogenContextProvider.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAA6B,iCAAiC,EAAE,MAAM,mBAAmB,CAAC;AAwDtG,eAAO,MAAM,4BAA4B,GAAI,8DAM1C,iCAAiC,4CAsBnC,CAAC"}
|
@@ -0,0 +1,8 @@
|
|
1
|
+
import type { RebuyHydrogenReactContextProviderProps } from '~/providers/types';
|
2
|
+
/**
|
3
|
+
* Outer provider component responsible for setting up ShopifyProvider,
|
4
|
+
* CartProvider (from @shopify/hydrogen-react), and wrapping the application
|
5
|
+
* with the RebuyHydrogenReactContext.
|
6
|
+
*/
|
7
|
+
export declare const RebuyHydrogenReactContextProvider: ({ cartFragment, children, countryIsoCode, customerAccessToken, data, languageIsoCode, numCartLines, onAttributesUpdate, onAttributesUpdateComplete, onBuyerIdentityUpdate, onBuyerIdentityUpdateComplete, onCreate, onCreateComplete, onDiscountCodesUpdate, onDiscountCodesUpdateComplete, onLineAdd, onLineAddComplete, onLineRemove, onLineRemoveComplete, onLineUpdate, onLineUpdateComplete, onNoteUpdate, onNoteUpdateComplete, overrideApiKey, publicPrimaryDomian, publicStoreDomain, publicStorefrontApiToken, publicStorefrontId, storefrontApiVersion, }: RebuyHydrogenReactContextProviderProps) => import("react/jsx-runtime").JSX.Element;
|
8
|
+
//# sourceMappingURL=RebuyHydrogenReactContextProvider.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"RebuyHydrogenReactContextProvider.d.ts","sourceRoot":"","sources":["../../src/providers/RebuyHydrogenReactContextProvider.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,sCAAsC,EAA2B,MAAM,mBAAmB,CAAC;AAsFzG;;;;GAIG;AACH,eAAO,MAAM,iCAAiC,GAAI,qiBAoC/C,sCAAsC,4CAgFxC,CAAC"}
|
@@ -0,0 +1,71 @@
|
|
1
|
+
import type { Cart as HydrogenStorefrontApiCart } from '@shopify/hydrogen/storefront-api-types';
|
2
|
+
import type { Attribute, Cart, CartLine, ComponentizableCartLine, CountryCode, LanguageCode, Maybe } from '@shopify/hydrogen-react/storefront-api-types';
|
3
|
+
import { type PartialDeep } from 'type-fest';
|
4
|
+
export type RebuyHydrogenContextProps = {
|
5
|
+
children: React.ReactNode;
|
6
|
+
shop: string;
|
7
|
+
sourceHydrogenCart?: HydrogenStorefrontApiCart | null;
|
8
|
+
};
|
9
|
+
export type RebuyHydrogenContextProviderProps = {
|
10
|
+
cart: Promise<HydrogenStorefrontApiCart | null>;
|
11
|
+
children: React.ReactNode;
|
12
|
+
enableSmartCart?: boolean;
|
13
|
+
overrideApiKey?: string;
|
14
|
+
publicStoreDomain: string;
|
15
|
+
shop: string;
|
16
|
+
};
|
17
|
+
export type RebuyHydrogenProps = {
|
18
|
+
apiKey?: string;
|
19
|
+
cartAttributes?: Attribute[];
|
20
|
+
cartCost?: string;
|
21
|
+
cartId?: string;
|
22
|
+
cartLines?: (CartLine | ComponentizableCartLine)[];
|
23
|
+
cartNote?: Maybe<string>;
|
24
|
+
cartQuantity?: number;
|
25
|
+
children: React.ReactNode;
|
26
|
+
publicStoreDomain: string;
|
27
|
+
shop: string;
|
28
|
+
};
|
29
|
+
export type RebuyHydrogenReactProps = {
|
30
|
+
children: React.ReactNode;
|
31
|
+
enableSmartCart?: boolean;
|
32
|
+
publicPrimaryDomian: string;
|
33
|
+
shop?: string;
|
34
|
+
};
|
35
|
+
export type RebuyHydrogenReactContextProviderProps = {
|
36
|
+
cartFragment?: string;
|
37
|
+
children: React.ReactNode;
|
38
|
+
countryIsoCode?: CountryCode;
|
39
|
+
customerAccessToken?: string;
|
40
|
+
data?: PartialDeep<Cart, {
|
41
|
+
recurseIntoArrays: true;
|
42
|
+
}>;
|
43
|
+
enableSmartCart?: boolean;
|
44
|
+
languageIsoCode?: LanguageCode;
|
45
|
+
numCartLines?: number;
|
46
|
+
onAttributesUpdate?: () => void;
|
47
|
+
onAttributesUpdateComplete?: () => void;
|
48
|
+
onBuyerIdentityUpdate?: () => void;
|
49
|
+
onBuyerIdentityUpdateComplete?: () => void;
|
50
|
+
onCreate?: () => void;
|
51
|
+
onCreateComplete?: () => void;
|
52
|
+
onDiscountCodesUpdate?: () => void;
|
53
|
+
onDiscountCodesUpdateComplete?: () => void;
|
54
|
+
onLineAdd?: () => void;
|
55
|
+
onLineAddComplete?: () => void;
|
56
|
+
onLineRemove?: () => void;
|
57
|
+
onLineRemoveComplete?: () => void;
|
58
|
+
onLineUpdate?: () => void;
|
59
|
+
onLineUpdateComplete?: () => void;
|
60
|
+
onNoteUpdate?: () => void;
|
61
|
+
onNoteUpdateComplete?: () => void;
|
62
|
+
overrideApiKey?: string;
|
63
|
+
publicPrimaryDomian: string;
|
64
|
+
publicStoreDomain: string;
|
65
|
+
publicStorefrontApiToken: string;
|
66
|
+
publicStorefrontId: string;
|
67
|
+
publicStorefrontToken: string;
|
68
|
+
shop?: string;
|
69
|
+
storefrontApiVersion?: string;
|
70
|
+
};
|
71
|
+
//# sourceMappingURL=types.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/providers/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,IAAI,yBAAyB,EAAE,MAAM,wCAAwC,CAAC;AAChG,OAAO,KAAK,EACR,SAAS,EACT,IAAI,EACJ,QAAQ,EACR,uBAAuB,EACvB,WAAW,EACX,YAAY,EACZ,KAAK,EACR,MAAM,8CAA8C,CAAC;AACtD,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,WAAW,CAAC;AAE7C,MAAM,MAAM,yBAAyB,GA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EAAE,MAAM,CAAC;CACjC,CAAC"}
|
@@ -0,0 +1,5 @@
|
|
1
|
+
export declare const OPTION_FRAGMENT = "#graphql\n fragment OptionFragment on ProductOption {\n id\n name\n optionValues {\n id\n name\n swatch {\n color\n image {\n mediaContentType\n previewImage {\n height\n id\n url\n width\n altText\n }\n id\n alt\n }\n }\n }\n }\n";
|
2
|
+
export declare const CART_LINE_FRAGMENT: "#graphql\n fragment CartLineFragment on CartLine {\n id\n quantity\n cost {\n amountPerQuantity {\n amount\n currencyCode\n }\n compareAtAmountPerQuantity {\n amount\n currencyCode\n }\n totalAmount {\n amount\n currencyCode\n }\n subtotalAmount {\n amount\n currencyCode\n }\n }\n attributes {\n key\n value\n }\n discountAllocations {\n discountedAmount {\n amount\n currencyCode\n }\n ... on CartAutomaticDiscountAllocation {\n __typename\n discountedAmount {\n amount\n currencyCode\n }\n title\n }\n ... on CartCodeDiscountAllocation {\n __typename\n code\n discountedAmount {\n amount\n currencyCode\n }\n }\n ... on CartCustomDiscountAllocation {\n __typename\n discountedAmount {\n amount\n currencyCode\n }\n title\n }\n }\n merchandise {\n ... on ProductVariant {\n availableForSale\n id\n sku\n title\n compareAtPrice {\n amount\n currencyCode\n }\n image {\n altText\n height\n id\n url\n width\n }\n price {\n amount\n currencyCode\n }\n product {\n handle\n id\n productType\n tags\n title\n vendor\n collections(first: 10) {\n nodes {\n handle\n }\n }\n options {\n ...OptionFragment\n }\n images(first: 20) {\n nodes {\n altText\n height\n id\n url\n width\n }\n }\n }\n selectedOptions {\n name\n value\n }\n }\n }\n }\n";
|
3
|
+
export declare const CART_LINE_COMPONENT_FRAGMENT: "#graphql\n fragment CartLineComponentFragment on ComponentizableCartLine {\n id\n quantity\n cost {\n amountPerQuantity {\n amount\n currencyCode\n }\n compareAtAmountPerQuantity {\n amount\n currencyCode\n }\n totalAmount {\n amount\n currencyCode\n }\n subtotalAmount {\n amount\n currencyCode\n }\n }\n attributes {\n key\n value\n }\n discountAllocations {\n discountedAmount {\n amount\n currencyCode\n }\n ... on CartAutomaticDiscountAllocation {\n __typename\n discountedAmount {\n amount\n currencyCode\n }\n title\n }\n ... on CartCodeDiscountAllocation {\n __typename\n code\n discountedAmount {\n amount\n currencyCode\n }\n }\n ... on CartCustomDiscountAllocation {\n __typename\n discountedAmount {\n amount\n currencyCode\n }\n title\n }\n }\n merchandise {\n ... on ProductVariant {\n availableForSale\n id\n sku\n title\n compareAtPrice {\n amount\n currencyCode\n }\n image {\n altText\n height\n id\n url\n width\n }\n price {\n amount\n currencyCode\n }\n product {\n handle\n id\n productType\n tags\n title\n vendor\n collections(first: 10) {\n nodes {\n handle\n }\n }\n options {\n id\n name\n optionValues {\n id\n name\n swatch {\n color\n image {\n mediaContentType\n previewImage {\n height\n id\n url\n width\n altText\n }\n id\n alt\n }\n }\n }\n }\n images(first: 20) {\n nodes {\n altText\n height\n id\n url\n width\n }\n }\n }\n selectedOptions {\n name\n value\n }\n }\n }\n lineComponents {\n id\n quantity\n cost {\n amountPerQuantity {\n amount\n currencyCode\n }\n compareAtAmountPerQuantity {\n amount\n currencyCode\n }\n totalAmount {\n amount\n currencyCode\n }\n subtotalAmount {\n amount\n currencyCode\n }\n }\n attributes {\n key\n value\n }\n discountAllocations {\n discountedAmount {\n amount\n currencyCode\n }\n ... on CartAutomaticDiscountAllocation {\n __typename\n discountedAmount {\n amount\n currencyCode\n }\n title\n }\n ... on CartCodeDiscountAllocation {\n __typename\n code\n discountedAmount {\n amount\n currencyCode\n }\n }\n ... on CartCustomDiscountAllocation {\n __typename\n discountedAmount {\n amount\n currencyCode\n }\n title\n }\n }\n merchandise {\n ... on ProductVariant {\n availableForSale\n id\n sku\n title\n compareAtPrice {\n amount\n currencyCode\n }\n image {\n altText\n height\n id\n url\n width\n }\n price {\n amount\n currencyCode\n }\n product {\n handle\n id\n productType\n tags\n title\n vendor\n collections(first: 10) {\n nodes {\n handle\n }\n }\n options {\n ...OptionFragment\n }\n images(first: 20) {\n nodes {\n altText\n height\n id\n url\n width\n }\n }\n }\n selectedOptions {\n name\n value\n }\n }\n }\n }\n }\n";
|
4
|
+
export declare const CART_FRAGMENT: "#graphql\n fragment CartFragment on Cart {\n id\n checkoutUrl\n createdAt\n totalQuantity\n note\n updatedAt\n __typename\n buyerIdentity {\n countryCode\n customer {\n id\n email\n firstName\n lastName\n displayName\n }\n email\n phone\n }\n attributes {\n key\n value\n }\n cost {\n subtotalAmount {\n amount\n currencyCode\n }\n totalAmount {\n amount\n currencyCode\n }\n }\n discountAllocations {\n discountedAmount {\n amount\n currencyCode\n }\n ... on CartAutomaticDiscountAllocation {\n __typename\n discountedAmount {\n amount\n currencyCode\n }\n title\n }\n ... on CartCodeDiscountAllocation {\n __typename\n code\n discountedAmount {\n amount\n currencyCode\n }\n }\n ... on CartCustomDiscountAllocation {\n __typename\n discountedAmount {\n amount\n currencyCode\n }\n title\n }\n }\n discountCodes {\n applicable\n code\n }\n lines(first: $numCartLines) {\n edges {\n node {\n ...CartLineComponentFragment\n }\n }\n edges {\n node {\n ...CartLineFragment\n }\n }\n }\n }\n #graphql\n fragment CartLineFragment on CartLine {\n id\n quantity\n cost {\n amountPerQuantity {\n amount\n currencyCode\n }\n compareAtAmountPerQuantity {\n amount\n currencyCode\n }\n totalAmount {\n amount\n currencyCode\n }\n subtotalAmount {\n amount\n currencyCode\n }\n }\n attributes {\n key\n value\n }\n discountAllocations {\n discountedAmount {\n amount\n currencyCode\n }\n ... on CartAutomaticDiscountAllocation {\n __typename\n discountedAmount {\n amount\n currencyCode\n }\n title\n }\n ... on CartCodeDiscountAllocation {\n __typename\n code\n discountedAmount {\n amount\n currencyCode\n }\n }\n ... on CartCustomDiscountAllocation {\n __typename\n discountedAmount {\n amount\n currencyCode\n }\n title\n }\n }\n merchandise {\n ... on ProductVariant {\n availableForSale\n id\n sku\n title\n compareAtPrice {\n amount\n currencyCode\n }\n image {\n altText\n height\n id\n url\n width\n }\n price {\n amount\n currencyCode\n }\n product {\n handle\n id\n productType\n tags\n title\n vendor\n collections(first: 10) {\n nodes {\n handle\n }\n }\n options {\n ...OptionFragment\n }\n images(first: 20) {\n nodes {\n altText\n height\n id\n url\n width\n }\n }\n }\n selectedOptions {\n name\n value\n }\n }\n }\n }\n\n #graphql\n fragment CartLineComponentFragment on ComponentizableCartLine {\n id\n quantity\n cost {\n amountPerQuantity {\n amount\n currencyCode\n }\n compareAtAmountPerQuantity {\n amount\n currencyCode\n }\n totalAmount {\n amount\n currencyCode\n }\n subtotalAmount {\n amount\n currencyCode\n }\n }\n attributes {\n key\n value\n }\n discountAllocations {\n discountedAmount {\n amount\n currencyCode\n }\n ... on CartAutomaticDiscountAllocation {\n __typename\n discountedAmount {\n amount\n currencyCode\n }\n title\n }\n ... on CartCodeDiscountAllocation {\n __typename\n code\n discountedAmount {\n amount\n currencyCode\n }\n }\n ... on CartCustomDiscountAllocation {\n __typename\n discountedAmount {\n amount\n currencyCode\n }\n title\n }\n }\n merchandise {\n ... on ProductVariant {\n availableForSale\n id\n sku\n title\n compareAtPrice {\n amount\n currencyCode\n }\n image {\n altText\n height\n id\n url\n width\n }\n price {\n amount\n currencyCode\n }\n product {\n handle\n id\n productType\n tags\n title\n vendor\n collections(first: 10) {\n nodes {\n handle\n }\n }\n options {\n id\n name\n optionValues {\n id\n name\n swatch {\n color\n image {\n mediaContentType\n previewImage {\n height\n id\n url\n width\n altText\n }\n id\n alt\n }\n }\n }\n }\n images(first: 20) {\n nodes {\n altText\n height\n id\n url\n width\n }\n }\n }\n selectedOptions {\n name\n value\n }\n }\n }\n lineComponents {\n id\n quantity\n cost {\n amountPerQuantity {\n amount\n currencyCode\n }\n compareAtAmountPerQuantity {\n amount\n currencyCode\n }\n totalAmount {\n amount\n currencyCode\n }\n subtotalAmount {\n amount\n currencyCode\n }\n }\n attributes {\n key\n value\n }\n discountAllocations {\n discountedAmount {\n amount\n currencyCode\n }\n ... on CartAutomaticDiscountAllocation {\n __typename\n discountedAmount {\n amount\n currencyCode\n }\n title\n }\n ... on CartCodeDiscountAllocation {\n __typename\n code\n discountedAmount {\n amount\n currencyCode\n }\n }\n ... on CartCustomDiscountAllocation {\n __typename\n discountedAmount {\n amount\n currencyCode\n }\n title\n }\n }\n merchandise {\n ... on ProductVariant {\n availableForSale\n id\n sku\n title\n compareAtPrice {\n amount\n currencyCode\n }\n image {\n altText\n height\n id\n url\n width\n }\n price {\n amount\n currencyCode\n }\n product {\n handle\n id\n productType\n tags\n title\n vendor\n collections(first: 10) {\n nodes {\n handle\n }\n }\n options {\n ...OptionFragment\n }\n images(first: 20) {\n nodes {\n altText\n height\n id\n url\n width\n }\n }\n }\n selectedOptions {\n name\n value\n }\n }\n }\n }\n }\n\n #graphql\n fragment OptionFragment on ProductOption {\n id\n name\n optionValues {\n id\n name\n swatch {\n color\n image {\n mediaContentType\n previewImage {\n height\n id\n url\n width\n altText\n }\n id\n alt\n }\n }\n }\n }\n\n";
|
5
|
+
//# sourceMappingURL=cart.queries.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"cart.queries.d.ts","sourceRoot":"","sources":["../../src/queries/cart.queries.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,eAAe,sYAwB3B,CAAC;AAOF,eAAO,MAAM,kBAAkB,m+DA6GrB,CAAC;AAEX,eAAO,MAAM,4BAA4B,8lJA6O/B,CAAC;AAEX,eAAO,MAAM,aAAa,k2QAqFhB,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../src/types/common.ts"],"names":[],"mappings":"AAAA,oBAAY,qBAAqB;IAC7B,EAAE,OAAO;IACT,EAAE,OAAO;IACT,EAAE,OAAO;IACT,EAAE,OAAO;IACT,EAAE,OAAO;IACT,EAAE,OAAO;CACZ"}
|
@@ -0,0 +1,275 @@
|
|
1
|
+
import type { Attribute, CartCost, CartDiscountCode, CartLine, Collection, Cart as HydrogenStorefrontApiCart, MoneyV2, Product, ProductVariant, SelectedOption } from '@shopify/hydrogen/storefront-api-types';
|
2
|
+
import type { CartStatus } from '@shopify/hydrogen-react';
|
3
|
+
import type { CartInput, AttributeInput as HRAttributeInput, CartLineInput as HRCartLineInput, CartLineUpdateInput as HRCartLineUpdateInput } from '@shopify/hydrogen-react/storefront-api-types';
|
4
|
+
import type { HydrogenCollection, HydrogenProduct, HydrogenProductVariant } from '~/types/shopify';
|
5
|
+
export type RawCartLine = CartLine;
|
6
|
+
export type RawAttribute = Attribute;
|
7
|
+
export type RawDiscountCode = CartDiscountCode;
|
8
|
+
export type RawCartCost = Pick<CartCost, 'subtotalAmount' | 'totalAmount'>;
|
9
|
+
export type HydrogenReactCartActions = {
|
10
|
+
cartAttributesUpdate: (attributes: HRAttributeInput[]) => void;
|
11
|
+
cartCreate: (cartInput: CartInput) => void;
|
12
|
+
discountCodesUpdate: (discountCodes: string[]) => void;
|
13
|
+
linesAdd: (lines: HRCartLineInput[]) => void;
|
14
|
+
linesRemove: (lineIds: string[]) => void;
|
15
|
+
linesUpdate: (lines: HRCartLineUpdateInput[]) => void;
|
16
|
+
noteUpdate: (note: string) => void;
|
17
|
+
};
|
18
|
+
export type RebuyContextProps = {
|
19
|
+
cacheKey?: string;
|
20
|
+
cartAttributes?: RawAttribute[];
|
21
|
+
cartCost?: RawCartCost;
|
22
|
+
cartId?: string;
|
23
|
+
cartLines?: RawCartLine[];
|
24
|
+
cartLinesLength?: number;
|
25
|
+
cartNote?: string;
|
26
|
+
cartSubtotal?: string;
|
27
|
+
cartTotalQuantity?: number;
|
28
|
+
checkoutUrl?: string;
|
29
|
+
discountCodes?: RawDiscountCode[];
|
30
|
+
hydrogenReactCartActions?: HydrogenReactCartActions;
|
31
|
+
hydrogenReactCartError?: unknown;
|
32
|
+
hydrogenReactCartStatus?: CartStatus;
|
33
|
+
isHydrogenReact: boolean;
|
34
|
+
queryObject: Record<string, string>;
|
35
|
+
sourceHydrogenCart?: HydrogenStorefrontApiCart | Partial<HydrogenStorefrontApiCart> | null;
|
36
|
+
windowUrl: string;
|
37
|
+
};
|
38
|
+
export type ContextParameters = {
|
39
|
+
readonly cacheKey?: string;
|
40
|
+
readonly cart?: Readonly<CartContext>;
|
41
|
+
readonly cartAttributes?: readonly RawAttribute[];
|
42
|
+
readonly cartCost?: Readonly<RawCartCost>;
|
43
|
+
readonly cartCount: number;
|
44
|
+
readonly cartId?: string;
|
45
|
+
readonly cartItemCount: number;
|
46
|
+
readonly cartLineCount: number;
|
47
|
+
readonly cartLines?: readonly RawCartLine[];
|
48
|
+
readonly cartNote?: string | null;
|
49
|
+
readonly cartSubtotal: number;
|
50
|
+
readonly cartToken?: string;
|
51
|
+
readonly checkoutUrl?: string;
|
52
|
+
readonly discountCodes?: readonly RawDiscountCode[];
|
53
|
+
readonly hydrogenCart?: Readonly<HydrogenStorefrontApiCart> | null;
|
54
|
+
readonly hydrogenReactCartActions?: Readonly<HydrogenReactCartActions>;
|
55
|
+
readonly hydrogenReactCartError?: RebuyContextProps['hydrogenReactCartError'];
|
56
|
+
readonly hydrogenReactCartStatus?: RebuyContextProps['hydrogenReactCartStatus'];
|
57
|
+
readonly isHydrogenReact: boolean;
|
58
|
+
readonly time: string;
|
59
|
+
readonly url: string;
|
60
|
+
};
|
61
|
+
export type RebuyConfig = {
|
62
|
+
shop: RebuyShop | null;
|
63
|
+
smart_flows: unknown[];
|
64
|
+
};
|
65
|
+
export type RebuyResponse = {
|
66
|
+
data: RebuyConfig;
|
67
|
+
response: unknown;
|
68
|
+
};
|
69
|
+
type RebuyShopIntegrations = {
|
70
|
+
attentive: boolean;
|
71
|
+
judgeme: boolean;
|
72
|
+
junip: boolean;
|
73
|
+
klaviyo: boolean;
|
74
|
+
loox: boolean;
|
75
|
+
okendo: boolean;
|
76
|
+
opinew: boolean;
|
77
|
+
recharge: boolean;
|
78
|
+
reviewsio: boolean;
|
79
|
+
stamped: boolean;
|
80
|
+
yotpo: boolean;
|
81
|
+
};
|
82
|
+
type RebuyShop = {
|
83
|
+
active_experiments: unknown[];
|
84
|
+
api_key: string;
|
85
|
+
cache_key: string;
|
86
|
+
carousel: string;
|
87
|
+
currency: string;
|
88
|
+
currency_symbol: string;
|
89
|
+
domain: string;
|
90
|
+
enabled_presentment_currencies: string[];
|
91
|
+
has_smart_collections_enabled: boolean;
|
92
|
+
has_smart_search_enabled: boolean;
|
93
|
+
id: string;
|
94
|
+
integrations: RebuyShopIntegrations;
|
95
|
+
money_format: string;
|
96
|
+
myshopify_domain: string;
|
97
|
+
primary_locale: string;
|
98
|
+
product_groups_enabled: string;
|
99
|
+
rebuy_assistant: boolean;
|
100
|
+
recharge_custom_domain: string | null;
|
101
|
+
selling_plans_enabled: boolean;
|
102
|
+
shop_id: number;
|
103
|
+
shop_name: string;
|
104
|
+
shopify_selling_plans_enabled: boolean;
|
105
|
+
storefront_access_token: string | null;
|
106
|
+
};
|
107
|
+
export type CartContext = {
|
108
|
+
attributes: string;
|
109
|
+
item_count: number;
|
110
|
+
items: CartItem[];
|
111
|
+
line_count: number;
|
112
|
+
note: string;
|
113
|
+
subtotal: number;
|
114
|
+
token: string;
|
115
|
+
};
|
116
|
+
export type CartItem = {
|
117
|
+
attributes: Attribute[];
|
118
|
+
product_id: string;
|
119
|
+
properties: string;
|
120
|
+
quantity: number;
|
121
|
+
variant_id: string;
|
122
|
+
};
|
123
|
+
export type RebuyWidgetContainerProps = {
|
124
|
+
apiKey: string;
|
125
|
+
children?: React.ReactNode;
|
126
|
+
collection?: Collection | HydrogenCollection;
|
127
|
+
collectionId?: string;
|
128
|
+
dataSource?: string;
|
129
|
+
limit?: number;
|
130
|
+
options?: object;
|
131
|
+
product?: Product | HydrogenProduct;
|
132
|
+
productId?: string;
|
133
|
+
variant?: ProductVariant | HydrogenProductVariant;
|
134
|
+
variantId?: string;
|
135
|
+
};
|
136
|
+
export type RebuyProduct = {
|
137
|
+
collections: {
|
138
|
+
nodes: {
|
139
|
+
handle: string;
|
140
|
+
}[];
|
141
|
+
};
|
142
|
+
compareAtPriceRange: {
|
143
|
+
maxVariantCompareAtPrice: MoneyV2 | null;
|
144
|
+
minVariantCompareAtPrice: MoneyV2 | null;
|
145
|
+
};
|
146
|
+
description: string;
|
147
|
+
descriptionHtml: string;
|
148
|
+
featuredImage: {
|
149
|
+
altText: string | null;
|
150
|
+
height: number;
|
151
|
+
id: string;
|
152
|
+
url: string;
|
153
|
+
width: number;
|
154
|
+
};
|
155
|
+
handle: string;
|
156
|
+
id: string;
|
157
|
+
images: {
|
158
|
+
altText: string | null;
|
159
|
+
height: number;
|
160
|
+
id: string;
|
161
|
+
url: string;
|
162
|
+
width: number;
|
163
|
+
}[];
|
164
|
+
media: unknown[];
|
165
|
+
metafields: unknown[];
|
166
|
+
options: {
|
167
|
+
name: string;
|
168
|
+
values: string[];
|
169
|
+
}[];
|
170
|
+
priceRange: {
|
171
|
+
maxVariantPrice: MoneyV2;
|
172
|
+
minVariantPrice: MoneyV2;
|
173
|
+
};
|
174
|
+
reviews?: {
|
175
|
+
review_count?: number;
|
176
|
+
star_rating?: number;
|
177
|
+
};
|
178
|
+
selected: boolean;
|
179
|
+
selectedOptions: Record<string, string>;
|
180
|
+
selectedSellingPlan: unknown;
|
181
|
+
selectedSellingPlanAllocation: unknown;
|
182
|
+
selectedVariant: RebuyProductVariant;
|
183
|
+
sellingPlanGroups: unknown[];
|
184
|
+
seo: {
|
185
|
+
description: string | null;
|
186
|
+
title: string | null;
|
187
|
+
};
|
188
|
+
title: string;
|
189
|
+
variants: {
|
190
|
+
nodes: RebuyProductVariant[];
|
191
|
+
};
|
192
|
+
vendor: string;
|
193
|
+
};
|
194
|
+
export type RebuyProductVariant = {
|
195
|
+
availableForSale: boolean;
|
196
|
+
compareAtPriceV2: MoneyV2 | null;
|
197
|
+
id: string;
|
198
|
+
image?: {
|
199
|
+
altText: string | null;
|
200
|
+
height: number;
|
201
|
+
id: string;
|
202
|
+
url: string;
|
203
|
+
width: number;
|
204
|
+
};
|
205
|
+
priceV2: MoneyV2;
|
206
|
+
product: {
|
207
|
+
handle: string;
|
208
|
+
id: string;
|
209
|
+
title: string;
|
210
|
+
vendor: string;
|
211
|
+
};
|
212
|
+
selectedOptions: Pick<SelectedOption, 'name' | 'value'>[];
|
213
|
+
sku: string;
|
214
|
+
title: string;
|
215
|
+
};
|
216
|
+
export type RebuyWidgetMetadata = {
|
217
|
+
also_bot_tracking_ids?: number[];
|
218
|
+
cache_info?: {
|
219
|
+
cache_key: string;
|
220
|
+
cache_key_readable: string;
|
221
|
+
cached_at_time: number | string;
|
222
|
+
};
|
223
|
+
purchased_quantity?: string;
|
224
|
+
shopify_customer: Customer;
|
225
|
+
top_sellers_filled?: boolean;
|
226
|
+
trending_products_filled?: boolean;
|
227
|
+
};
|
228
|
+
export type Customer = {
|
229
|
+
accepts_marketing: boolean;
|
230
|
+
accepts_marketing_updated_at: string;
|
231
|
+
addresses: Address[];
|
232
|
+
admin_graphql_api_id: string;
|
233
|
+
created_at: string;
|
234
|
+
currency: string;
|
235
|
+
default_address: Address;
|
236
|
+
email: string;
|
237
|
+
first_name: string;
|
238
|
+
id: number;
|
239
|
+
last_name: string;
|
240
|
+
last_order_id: string;
|
241
|
+
last_order_name: string;
|
242
|
+
marketing_opt_in_level: string;
|
243
|
+
multipass_identifier: string;
|
244
|
+
note: string;
|
245
|
+
orders_count: number;
|
246
|
+
phone: string;
|
247
|
+
state: string;
|
248
|
+
tags: string;
|
249
|
+
tax_exempt: boolean;
|
250
|
+
tax_exemptions: unknown[];
|
251
|
+
total_spent: string;
|
252
|
+
updated_at: string;
|
253
|
+
verified_email: boolean;
|
254
|
+
};
|
255
|
+
export type Address = {
|
256
|
+
address1: string;
|
257
|
+
address2: string;
|
258
|
+
city: string;
|
259
|
+
company: string;
|
260
|
+
country: string;
|
261
|
+
country_code: string;
|
262
|
+
country_name: string;
|
263
|
+
customer_id: number;
|
264
|
+
default: boolean;
|
265
|
+
first_name: string;
|
266
|
+
id: number;
|
267
|
+
last_name: string;
|
268
|
+
name: string;
|
269
|
+
phone: string;
|
270
|
+
province: string;
|
271
|
+
province_code: string;
|
272
|
+
zip: string;
|
273
|
+
};
|
274
|
+
export {};
|
275
|
+
//# sourceMappingURL=rebuyCustom.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"rebuyCustom.d.ts","sourceRoot":"","sources":["../../src/types/rebuyCustom.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACR,SAAS,EACT,QAAQ,EACR,gBAAgB,EAChB,QAAQ,EACR,UAAU,EACV,IAAI,IAAI,yBAAyB,EACjC,OAAO,EACP,OAAO,EACP,cAAc,EACd,cAAc,EACjB,MAAM,wCAAwC,CAAC;AAGhD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,KAAK,EACR,SAAS,EACT,cAAc,IAAI,gBAAgB,EAClC,aAAa,IAAI,eAAe,EAChC,mBAAmB,IAAI,qBAAqB,EAC/C,MAAM,8CAA8C,CAAC;AAGtD,OAAO,KAAK,EAAE,kBAAkB,EAAE,eAAe,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAGnG,MAAM,MAAM,WAAW,GAAG,QAAQ,CAAC;AACnC,MAAM,MAAM,YAAY,GAAG,SAAS,CAAC;AACrC,MAAM,MAAM,eAAe,GAAG,gBAAgB,CAAC;AAC/C,MAAM,MAAM,WAAW,GAAG,IAAI,CAAC,QAAQ,EAAE,gBAAgB,GAAG,aAAa,CAAC,CAAC;AAG3E,MAAM,MAAM,wBAAwB,GAAG;IACnC,oBAAoB,EAAE,CAAC,UAAU,EAAE,gBAAgB,EAAE,KAAK,IAAI,CAAC;IAC/D,UAAU,EAAE,CAAC,SAAS,EAAE,SAAS,KAAK,IAAI,CAAC;IAC3C,mBAAmB,EAAE,CAAC,aAAa,EAAE,MAAM,EAAE,KAAK,IAAI,CAAC;IACvD,QAAQ,EAAE,CAAC,KAAK,EAAE,eAAe,EAAE,KAAK,IAAI,CAAC;IAC7C,WAAW,EAAE,CAAC,OAAO,EAAE,MAAM,EA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+
id: number;
|
3
|
+
minimum: number | null;
|
4
|
+
presentment_currencies: {
|
5
|
+
enabled: boolean;
|
6
|
+
};
|
7
|
+
product_amount_reached_label: boolean;
|
8
|
+
product_amount_reached_label_text: string;
|
9
|
+
product_amount_remaining_label: boolean;
|
10
|
+
product_amount_remaining_label_text: string;
|
11
|
+
products: unknown[];
|
12
|
+
type: string;
|
13
|
+
};
|
14
|
+
export type ProgressBar = {
|
15
|
+
country_codes: string[];
|
16
|
+
exclude_discount: boolean;
|
17
|
+
free_shipping_enabled: boolean;
|
18
|
+
free_shipping_on_all_products: boolean;
|
19
|
+
free_shipping_on_subscription: boolean;
|
20
|
+
geolocation_enabled: boolean;
|
21
|
+
id: number;
|
22
|
+
layout: string;
|
23
|
+
name: string;
|
24
|
+
tiers: ProgressBarTier[];
|
25
|
+
};
|
26
|
+
export type SmartCartLanguage = {
|
27
|
+
bmsm_discount_message: string;
|
28
|
+
bmsm_discount_success: string;
|
29
|
+
cart_title: string;
|
30
|
+
checking_out_label: string;
|
31
|
+
checkout_label: string;
|
32
|
+
continue_shopping_label: string;
|
33
|
+
discount_button_label: string;
|
34
|
+
discount_code_label: string;
|
35
|
+
discount_invalid_message: string;
|
36
|
+
discount_label: string;
|
37
|
+
empty_cart: string;
|
38
|
+
free_shipping_helper: string;
|
39
|
+
free_shipping_reached: string;
|
40
|
+
free_shipping_remaining: string;
|
41
|
+
notes_label: string;
|
42
|
+
notes_placeholder: string;
|
43
|
+
notes_remaining_characters: string;
|
44
|
+
subtotal_plural_text: string;
|
45
|
+
subtotal_singular_text: string;
|
46
|
+
view_cart_label: string;
|
47
|
+
view_cart_working_label: string;
|
48
|
+
};
|
49
|
+
export type SmartCartComponent = {
|
50
|
+
always_visible?: boolean;
|
51
|
+
hidden?: boolean;
|
52
|
+
id: string;
|
53
|
+
settings?: unknown;
|
54
|
+
static?: boolean;
|
55
|
+
title: string;
|
56
|
+
type: string;
|
57
|
+
};
|
58
|
+
export type SmartCartAnchor = {
|
59
|
+
components: string[];
|
60
|
+
id: string;
|
61
|
+
title: string;
|
62
|
+
};
|
63
|
+
export type SmartCart = {
|
64
|
+
accelerated_checkout: {
|
65
|
+
enabled: boolean;
|
66
|
+
};
|
67
|
+
accessibility: {
|
68
|
+
heading: string;
|
69
|
+
};
|
70
|
+
anchorData: {
|
71
|
+
anchorOrder: string[];
|
72
|
+
anchors: {
|
73
|
+
[key: string]: SmartCartAnchor;
|
74
|
+
};
|
75
|
+
components: {
|
76
|
+
[key: string]: SmartCartComponent;
|
77
|
+
};
|
78
|
+
};
|
79
|
+
announcement_bar: {
|
80
|
+
enabled: boolean;
|
81
|
+
messages: string[];
|
82
|
+
};
|
83
|
+
apps: unknown[];
|
84
|
+
attribution_tracking_disabled: boolean;
|
85
|
+
buy_more_save_more: {
|
86
|
+
discount_products: unknown[];
|
87
|
+
discount_type: string;
|
88
|
+
display_type: string;
|
89
|
+
enabled: boolean;
|
90
|
+
language: {
|
91
|
+
bmsm_discount_message: string;
|
92
|
+
bmsm_discount_success: string;
|
93
|
+
};
|
94
|
+
tiers: {
|
95
|
+
discount: number;
|
96
|
+
quantity: number;
|
97
|
+
}[];
|
98
|
+
};
|
99
|
+
callbacks: {
|
100
|
+
[key: string]: {
|
101
|
+
enabled: boolean;
|
102
|
+
function: string;
|
103
|
+
};
|
104
|
+
};
|
105
|
+
cart_page_checkout_override: {
|
106
|
+
enabled: boolean;
|
107
|
+
};
|
108
|
+
checkout_button: {
|
109
|
+
enabled: boolean;
|
110
|
+
routing: string;
|
111
|
+
routing_link: string;
|
112
|
+
};
|
113
|
+
continue_shopping_button: {
|
114
|
+
enabled: boolean;
|
115
|
+
};
|
116
|
+
cross_sells: string[];
|
117
|
+
custom_css: string;
|
118
|
+
disable_cart_page: boolean;
|
119
|
+
discount: {
|
120
|
+
enabled: boolean;
|
121
|
+
use_message_only: boolean;
|
122
|
+
};
|
123
|
+
enable_product_metafields: boolean;
|
124
|
+
has_legacy_shipping: boolean;
|
125
|
+
installments: {
|
126
|
+
enabled: boolean;
|
127
|
+
payment_count: number;
|
128
|
+
provider: string;
|
129
|
+
terms_url: string;
|
130
|
+
};
|
131
|
+
integrations: {
|
132
|
+
code: string;
|
133
|
+
enabled: boolean;
|
134
|
+
};
|
135
|
+
language: SmartCartLanguage;
|
136
|
+
layout: string;
|
137
|
+
name: string;
|
138
|
+
notes: {
|
139
|
+
enabled: boolean;
|
140
|
+
limit_characters: boolean;
|
141
|
+
max_length: number;
|
142
|
+
};
|
143
|
+
pre_purchase: {
|
144
|
+
enabled: boolean;
|
145
|
+
id: string;
|
146
|
+
};
|
147
|
+
preview_mode: boolean;
|
148
|
+
product_form_redirect: string;
|
149
|
+
progress_bar: {
|
150
|
+
bars: ProgressBar[];
|
151
|
+
enabled: boolean;
|
152
|
+
};
|
153
|
+
selectors: {
|
154
|
+
cart_subtotal: string;
|
155
|
+
item_count: string;
|
156
|
+
};
|
157
|
+
shop_pay: {
|
158
|
+
enabled: boolean;
|
159
|
+
};
|
160
|
+
switch_to_subscription: {
|
161
|
+
disable_downgrade: boolean;
|
162
|
+
enabled: boolean;
|
163
|
+
language: {
|
164
|
+
downgrading_label: string;
|
165
|
+
onetime_option_group_label: string;
|
166
|
+
onetime_option_label: string;
|
167
|
+
subscription_option_group_label: string;
|
168
|
+
subscription_option_label: string;
|
169
|
+
upgrade_to_subscription_default_frequency: string;
|
170
|
+
upgrade_to_subscription_label: string;
|
171
|
+
upgrade_to_subscription_without_discount_label: string;
|
172
|
+
upgrading_label: string;
|
173
|
+
};
|
174
|
+
};
|
175
|
+
terms: {
|
176
|
+
disclaimer: string;
|
177
|
+
enabled: boolean;
|
178
|
+
};
|
179
|
+
version: number;
|
180
|
+
view_cart_button: {
|
181
|
+
enabled: boolean;
|
182
|
+
};
|
183
|
+
};
|
184
|
+
//# sourceMappingURL=rebuySmartCart.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"rebuySmartCart.d.ts","sourceRoot":"","sources":["../../src/types/rebu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