@shopify/hydrogen 0.11.1 → 0.12.0
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/CHANGELOG.md +199 -0
- package/dist/esnext/components/AddToCartButton/AddToCartButton.client.d.ts +3 -4
- package/dist/esnext/components/AddToCartButton/AddToCartButton.client.js +9 -22
- package/dist/esnext/components/AddToCartButton/index.d.ts +1 -1
- package/dist/esnext/components/BuyNowButton/BuyNowButton.client.d.ts +4 -5
- package/dist/esnext/components/BuyNowButton/index.d.ts +1 -1
- package/dist/esnext/components/BuyNowButton/index.js +1 -1
- package/dist/esnext/components/CartCheckoutButton/CartCheckoutButton.client.d.ts +2 -3
- package/dist/esnext/components/CartEstimatedCost/CartEstimatedCost.client.d.ts +3 -3
- package/dist/esnext/components/CartLineImage/CartLineImage.client.d.ts +5 -3
- package/dist/esnext/components/CartLinePrice/CartLinePrice.client.d.ts +5 -5
- package/dist/esnext/components/CartLinePrice/CartLinePrice.client.js +1 -1
- package/dist/esnext/components/CartLineProductTitle/CartLineProductTitle.client.d.ts +1 -3
- package/dist/esnext/components/CartLineProvider/context.d.ts +0 -6
- package/dist/esnext/components/CartLineQuantity/CartLineQuantity.client.d.ts +1 -3
- package/dist/esnext/components/CartProvider/CartProvider.client.js +6 -1
- package/dist/esnext/components/CartProvider/graphql/CartAttributesUpdateMutation.d.ts +71 -4
- package/dist/esnext/components/CartProvider/graphql/CartBuyerIdentityUpdateMutation.d.ts +71 -4
- package/dist/esnext/components/CartProvider/graphql/CartCreateMutation.d.ts +71 -4
- package/dist/esnext/components/CartProvider/graphql/CartDiscountCodesUpdateMutation.d.ts +72 -5
- package/dist/esnext/components/CartProvider/graphql/CartFragment.d.ts +12 -10
- package/dist/esnext/components/CartProvider/graphql/CartLineAddMutation.d.ts +71 -4
- package/dist/esnext/components/CartProvider/graphql/CartLineRemoveMutation.d.ts +71 -4
- package/dist/esnext/components/CartProvider/graphql/CartLineUpdateMutation.d.ts +71 -4
- package/dist/esnext/components/CartProvider/graphql/CartNoteUpdateMutation.d.ts +72 -5
- package/dist/esnext/components/CartProvider/graphql/CartQuery.d.ts +71 -4
- package/dist/esnext/components/CartShopPayButton/CartShopPayButton.client.d.ts +3 -2
- package/dist/esnext/components/ExternalVideo/ExternalVideo.d.ts +5 -11
- package/dist/esnext/components/ExternalVideo/ExternalVideo.js +2 -5
- package/dist/esnext/components/ExternalVideo/ExternalVideoFragment.d.ts +5 -1
- package/dist/esnext/components/ExternalVideo/index.d.ts +1 -1
- package/dist/esnext/components/ExternalVideo/index.js +1 -1
- package/dist/esnext/components/Image/Image.d.ts +5 -9
- package/dist/esnext/components/Image/Image.js +0 -3
- package/dist/esnext/components/Image/ImageFragment.d.ts +4 -0
- package/dist/esnext/components/Image/index.d.ts +1 -1
- package/dist/esnext/components/Image/index.js +1 -1
- package/dist/esnext/components/Link/Link.client.js +1 -1
- package/dist/esnext/components/LocalizationProvider/LocalizationProvider.server.d.ts +2 -3
- package/dist/esnext/components/LocalizationProvider/LocalizationQuery.d.ts +4 -0
- package/dist/esnext/components/MediaFile/MediaFile.d.ts +8 -20
- package/dist/esnext/components/MediaFile/MediaFile.js +7 -5
- package/dist/esnext/components/MediaFile/MediaFileFragment.d.ts +22 -8
- package/dist/esnext/components/MediaFile/index.d.ts +1 -1
- package/dist/esnext/components/MediaFile/index.js +1 -1
- package/dist/esnext/components/Metafield/Metafield.client.d.ts +0 -4
- package/dist/esnext/components/Metafield/Metafield.client.js +0 -3
- package/dist/esnext/components/Metafield/MetafieldFragment.d.ts +5 -2
- package/dist/esnext/components/Metafield/components/StarRating/StarRating.d.ts +1 -3
- package/dist/esnext/components/Metafield/index.d.ts +1 -2
- package/dist/esnext/components/Metafield/index.js +1 -1
- package/dist/esnext/components/ModelViewer/Model3DFragment.d.ts +4 -0
- package/dist/esnext/components/ModelViewer/ModelViewer.client.d.ts +3 -12
- package/dist/esnext/components/ModelViewer/ModelViewer.client.js +0 -3
- package/dist/esnext/components/ModelViewer/index.d.ts +1 -1
- package/dist/esnext/components/Money/Money.client.d.ts +5 -10
- package/dist/esnext/components/Money/Money.client.js +0 -3
- package/dist/esnext/components/Money/MoneyFragment.d.ts +4 -0
- package/dist/esnext/components/Money/index.d.ts +1 -1
- package/dist/esnext/components/Money/index.js +1 -1
- package/dist/esnext/components/ProductDescription/ProductDescription.client.d.ts +3 -3
- package/dist/esnext/components/ProductPrice/ProductPrice.client.d.ts +5 -5
- package/dist/esnext/components/ProductProvider/ProductProvider.client.d.ts +5 -6
- package/dist/esnext/components/ProductProvider/ProductProvider.client.js +1 -4
- package/dist/esnext/components/ProductProvider/ProductProviderFragment.d.ts +183 -16
- package/dist/esnext/components/ProductProvider/index.d.ts +1 -1
- package/dist/esnext/components/ProductProvider/index.js +1 -1
- package/dist/esnext/components/RawHtml/RawHtml.d.ts +1 -3
- package/dist/esnext/components/RawHtml/index.d.ts +1 -1
- package/dist/esnext/components/Seo/CollectionSeo.client.d.ts +2 -2
- package/dist/esnext/components/Seo/CollectionSeo.client.js +1 -1
- package/dist/esnext/components/Seo/DefaultPageSeo.client.js +2 -2
- package/dist/esnext/components/Seo/DescriptionSeo.client.d.ts +3 -3
- package/dist/esnext/components/Seo/DescriptionSeo.client.js +1 -1
- package/dist/esnext/components/Seo/ImageSeo.client.d.ts +2 -2
- package/dist/esnext/components/Seo/ImageSeo.client.js +1 -1
- package/dist/esnext/components/Seo/PageSeo.client.d.ts +2 -2
- package/dist/esnext/components/Seo/PageSeo.client.js +2 -2
- package/dist/esnext/components/Seo/ProductSeo.client.d.ts +5 -2
- package/dist/esnext/components/Seo/Seo.client.d.ts +8 -7
- package/dist/esnext/components/Seo/Seo.client.js +8 -14
- package/dist/esnext/components/Seo/SeoFragment.d.ts +66 -0
- package/dist/esnext/components/Seo/SeoFragment.js +1 -0
- package/dist/esnext/components/Seo/TitleSeo.client.d.ts +2 -2
- package/dist/esnext/components/Seo/types.d.ts +8 -60
- package/dist/esnext/components/ShopPayButton/ShopPayButton.client.d.ts +2 -1
- package/dist/esnext/components/ShopPayButton/ShopPayButton.client.js +1 -9
- package/dist/esnext/components/ShopPayButton/index.d.ts +1 -1
- package/dist/esnext/components/UnitPrice/UnitPrice.client.d.ts +4 -10
- package/dist/esnext/components/UnitPrice/UnitPrice.client.js +8 -3
- package/dist/esnext/components/UnitPrice/UnitPriceFragment.d.ts +5 -2
- package/dist/esnext/components/UnitPrice/index.d.ts +1 -1
- package/dist/esnext/components/UnitPrice/index.js +1 -1
- package/dist/esnext/components/Video/Video.d.ts +5 -14
- package/dist/esnext/components/Video/Video.js +1 -4
- package/dist/esnext/components/Video/VideoFragment.d.ts +4 -0
- package/dist/esnext/components/Video/index.d.ts +1 -2
- package/dist/esnext/components/Video/index.js +1 -1
- package/dist/esnext/components/index.d.ts +3 -13
- package/dist/esnext/components/index.js +2 -2
- package/dist/esnext/entry-client.js +19 -5
- package/dist/esnext/entry-server.d.ts +1 -1
- package/dist/esnext/entry-server.js +27 -73
- package/dist/esnext/foundation/Boomerang/Boomerang.client.d.ts +3 -1
- package/dist/esnext/foundation/Boomerang/Boomerang.client.js +17 -3
- package/dist/esnext/foundation/Router/FileRoutes.d.ts +18 -0
- package/dist/esnext/foundation/Router/{DefaultRoutes.js → FileRoutes.js} +9 -18
- package/dist/esnext/foundation/Router/Route.server.d.ts +9 -0
- package/dist/esnext/foundation/Router/Route.server.js +6 -0
- package/dist/esnext/foundation/Router/{Router.client.d.ts → Router.d.ts} +0 -0
- package/dist/esnext/foundation/Router/{Router.client.js → Router.js} +4 -2
- package/dist/esnext/foundation/Router/Router.server.d.ts +8 -0
- package/dist/esnext/foundation/Router/Router.server.js +23 -0
- package/dist/esnext/foundation/Router/useParams.d.ts +1 -0
- package/dist/esnext/foundation/Router/useParams.js +5 -0
- package/dist/esnext/foundation/ServerStateProvider/{ServerStateProvider.client.d.ts → ServerStateProvider.d.ts} +0 -0
- package/dist/esnext/foundation/ServerStateProvider/{ServerStateProvider.client.js → ServerStateProvider.js} +0 -0
- package/dist/esnext/foundation/ServerStateProvider/index.d.ts +2 -2
- package/dist/esnext/foundation/ServerStateProvider/index.js +1 -1
- package/dist/esnext/foundation/ShopifyProvider/ShopifyProvider.client.js +3 -0
- package/dist/esnext/foundation/ShopifyProvider/ShopifyProvider.server.js +3 -0
- package/dist/esnext/foundation/index.d.ts +0 -1
- package/dist/esnext/foundation/index.js +0 -1
- package/dist/esnext/fragments.d.ts +20 -0
- package/dist/esnext/fragments.js +10 -0
- package/dist/esnext/framework/Hydration/Html.d.ts +2 -0
- package/dist/esnext/framework/Hydration/Html.js +71 -2
- package/dist/esnext/framework/Hydration/rsc.js +1 -1
- package/dist/esnext/framework/plugins/vite-plugin-hydrogen-config.js +15 -17
- package/dist/esnext/graphql/graphql-constants.d.ts +11 -6
- package/dist/esnext/graphql/graphql-constants.js +89 -6
- package/dist/esnext/graphql/types/types.d.ts +1645 -1579
- package/dist/esnext/graphql/types/types.js +699 -702
- package/dist/esnext/hooks/useCartLine/useCartLine.d.ts +0 -8
- package/dist/esnext/hooks/useNavigate/useNavigate.js +1 -1
- package/dist/esnext/hooks/useProduct/useProduct.d.ts +7 -47
- package/dist/esnext/hooks/useProductOptions/SellingPlanFragment.d.ts +6 -3
- package/dist/esnext/hooks/useProductOptions/SellingPlanGroupsFragment.d.ts +28 -2
- package/dist/esnext/hooks/useProductOptions/VariantFragment.d.ts +57 -15
- package/dist/esnext/hooks/useShopQuery/hooks.js +16 -7
- package/dist/esnext/index.d.ts +4 -0
- package/dist/esnext/index.js +4 -0
- package/dist/esnext/streaming.server.d.ts +0 -1
- package/dist/esnext/streaming.server.js +0 -9
- package/dist/esnext/types.d.ts +2 -2
- package/dist/esnext/utilities/apiRoutes.d.ts +15 -3
- package/dist/esnext/utilities/apiRoutes.js +25 -4
- package/dist/esnext/utilities/fetch.js +0 -8
- package/dist/esnext/utilities/video_parameters.js +0 -4
- package/dist/esnext/version.d.ts +1 -1
- package/dist/esnext/version.js +1 -1
- package/dist/node/entry-server.d.ts +1 -1
- package/dist/node/entry-server.js +24 -70
- package/dist/node/foundation/ServerStateProvider/{ServerStateProvider.client.d.ts → ServerStateProvider.d.ts} +0 -0
- package/dist/node/foundation/ServerStateProvider/{ServerStateProvider.client.js → ServerStateProvider.js} +0 -0
- package/dist/node/foundation/ServerStateProvider/index.d.ts +2 -2
- package/dist/node/foundation/ServerStateProvider/index.js +3 -3
- package/dist/node/framework/Hydration/Html.d.ts +2 -0
- package/dist/node/framework/Hydration/Html.js +73 -3
- package/dist/node/framework/Hydration/rsc.js +1 -1
- package/dist/node/framework/plugins/vite-plugin-hydrogen-config.js +15 -17
- package/dist/node/graphql/types/types.d.ts +1645 -1579
- package/dist/node/graphql/types/types.js +700 -703
- package/dist/node/streaming.server.d.ts +0 -1
- package/dist/node/streaming.server.js +1 -11
- package/dist/node/types.d.ts +2 -2
- package/dist/node/utilities/apiRoutes.d.ts +15 -3
- package/dist/node/utilities/apiRoutes.js +27 -6
- package/dist/node/utilities/fetch.d.ts +4 -0
- package/dist/node/utilities/fetch.js +40 -0
- package/dist/node/version.d.ts +1 -0
- package/dist/node/version.js +4 -0
- package/fragments.d.ts +1 -0
- package/fragments.js +1 -0
- package/package.json +15 -12
- package/vendor/react-server-dom-vite/esm/react-server-dom-vite-client-proxy.js +3 -3
- package/dist/esnext/components/Router/index.d.ts +0 -1
- package/dist/esnext/components/Router/index.js +0 -1
- package/dist/esnext/foundation/Boomerang/BoomerangPageTemplate.client.d.ts +0 -3
- package/dist/esnext/foundation/Boomerang/BoomerangPageTemplate.client.js +0 -14
- package/dist/esnext/foundation/Router/DefaultRoutes.d.ts +0 -22
- package/dist/esnext/foundation/Router/index.d.ts +0 -1
- package/dist/esnext/foundation/Router/index.js +0 -1
|
@@ -6,15 +6,14 @@ export interface ProductProviderProps {
|
|
|
6
6
|
children: ReactNode;
|
|
7
7
|
/** A [Product object](/api/storefront/reference/products/product). */
|
|
8
8
|
data: Product;
|
|
9
|
-
/** The initially selected variant.
|
|
9
|
+
/** The initially selected variant. If this is missing, then `selectedVariantId`
|
|
10
|
+
* in the returned `object` from the `useProduct` hook uses the first available variant
|
|
11
|
+
* or the first variant (if none are available).
|
|
12
|
+
*/
|
|
10
13
|
initialVariantId?: Parameters<typeof useProductOptions>['0']['initialVariantId'];
|
|
11
14
|
}
|
|
12
15
|
/**
|
|
13
16
|
* The `ProductProvider` component sets up a context with product details. Descendents of
|
|
14
|
-
* this component can use the `useProduct` hook
|
|
17
|
+
* this component can use the `useProduct` hook.
|
|
15
18
|
*/
|
|
16
19
|
export declare function ProductProvider({ children, data: product, initialVariantId, }: ProductProviderProps): JSX.Element;
|
|
17
|
-
export declare namespace ProductProvider {
|
|
18
|
-
var Fragment: string;
|
|
19
|
-
}
|
|
20
|
-
export declare const ProductProviderFragment = "\nfragment ProductProviderFragment on Product {\n compareAtPriceRange {\n maxVariantPrice {\n ...MoneyFragment\n }\n minVariantPrice {\n ...MoneyFragment\n }\n }\n descriptionHtml\n handle\n id\n media(first: $numProductMedia) {\n edges {\n node {\n ...MediaFileFragment\n }\n }\n }\n metafields(first: $numProductMetafields) {\n edges {\n node {\n ...MetafieldFragment\n }\n }\n }\n priceRange {\n maxVariantPrice {\n ...MoneyFragment\n }\n minVariantPrice {\n ...MoneyFragment\n }\n }\n title\n variants(first: $numProductVariants) {\n edges {\n node {\n ...VariantFragment\n }\n }\n }\n sellingPlanGroups(first: $numProductSellingPlanGroups) {\n edges {\n node {\n ...SellingPlanGroupsFragment\n }\n }\n }\n}\n\n\nfragment MediaFileFragment on Media {\n ... on MediaImage {\n mediaContentType\n image {\n ...ImageFragment\n }\n }\n ... on Video {\n mediaContentType\n ...VideoFragment\n }\n ... on ExternalVideo {\n mediaContentType\n ...ExternalVideoFragment\n }\n ... on Model3d {\n mediaContentType\n ...Model3DFragment\n }\n}\n\n\nfragment MetafieldFragment on Metafield {\n id\n type\n namespace\n key\n value\n createdAt\n updatedAt\n description\n reference @include(if: $includeReferenceMetafieldDetails) {\n __typename\n ... on MediaImage {\n id\n mediaContentType\n image {\n ...ImageFragment\n }\n }\n }\n}\n\nfragment VariantFragment on ProductVariant {\n id\n title\n availableForSale\n image {\n ...ImageFragment\n }\n ...UnitPriceFragment\n priceV2 {\n ...MoneyFragment\n }\n compareAtPriceV2 {\n ...MoneyFragment\n }\n selectedOptions {\n name\n value\n }\n metafields(first: $numProductVariantMetafields) {\n edges {\n node {\n ...MetafieldFragment\n }\n }\n }\n sellingPlanAllocations(first: $numProductVariantSellingPlanAllocations) {\n edges {\n node {\n priceAdjustments {\n compareAtPrice {\n ...MoneyFragment\n }\n perDeliveryPrice {\n ...MoneyFragment\n }\n price {\n ...MoneyFragment\n }\n unitPrice {\n ...MoneyFragment\n }\n }\n sellingPlan {\n ...SellingPlanFragment\n }\n }\n }\n }\n}\n\n\nfragment SellingPlanGroupsFragment on SellingPlanGroup {\n sellingPlans(first:$numProductSellingPlans) {\n edges {\n node {\n ...SellingPlanFragment\n }\n }\n }\n appName\n name\n options {\n name\n values\n }\n}\nfragment MoneyFragment on MoneyV2 {\n currencyCode\n amount\n}\nfragment ImageFragment on Image {\n id\n url\n altText\n width\n height\n}\n\nfragment VideoFragment on Video {\n id\n previewImage {\n url\n }\n sources {\n mimeType\n url\n }\n}\n\nfragment ExternalVideoFragment on ExternalVideo {\n id\n embeddedUrl\n host\n}\n\nfragment Model3DFragment on Model3d {\n id\n alt\n mediaContentType\n previewImage {\n url\n }\n sources {\n url\n }\n}\n\nfragment ImageFragment on Image {\n id\n url\n altText\n width\n height\n}\n\n\nfragment SellingPlanFragment on SellingPlan {\n id\n description\n name\n options {\n name\n value\n }\n priceAdjustments {\n orderCount\n adjustmentValue {\n ...on SellingPlanFixedAmountPriceAdjustment {\n adjustmentAmount {\n ...MoneyFragment\n }\n }\n ...on SellingPlanFixedPriceAdjustment {\n price {\n ...MoneyFragment\n }\n }\n ...on SellingPlanPercentagePriceAdjustment {\n adjustmentPercentage\n }\n }\n }\n recurringDeliveries\n}\nfragment MoneyFragment on MoneyV2 {\n currencyCode\n amount\n}\nfragment ImageFragment on Image {\n id\n url\n altText\n width\n height\n}\n\n\nfragment UnitPriceFragment on ProductVariant {\n unitPriceMeasurement {\n measuredType\n quantityUnit\n quantityValue\n referenceUnit\n referenceValue\n }\n unitPrice {\n ...MoneyFragment\n }\n}\nfragment MoneyFragment on MoneyV2 {\n currencyCode\n amount\n}\nfragment MoneyFragment on MoneyV2 {\n currencyCode\n amount\n}\n\nfragment SellingPlanFragment on SellingPlan {\n id\n description\n name\n options {\n name\n value\n }\n priceAdjustments {\n orderCount\n adjustmentValue {\n ...on SellingPlanFixedAmountPriceAdjustment {\n adjustmentAmount {\n ...MoneyFragment\n }\n }\n ...on SellingPlanFixedPriceAdjustment {\n price {\n ...MoneyFragment\n }\n }\n ...on SellingPlanPercentagePriceAdjustment {\n adjustmentPercentage\n }\n }\n }\n recurringDeliveries\n}\nfragment MoneyFragment on MoneyV2 {\n currencyCode\n amount\n}";
|
|
@@ -2,11 +2,10 @@ import React, { useMemo } from 'react';
|
|
|
2
2
|
import { useParsedMetafields } from '../../hooks';
|
|
3
3
|
import { flattenConnection } from '../../utilities';
|
|
4
4
|
import { ProductContext } from './context';
|
|
5
|
-
import { ProductProviderFragment as Fragment } from '../../graphql/graphql-constants';
|
|
6
5
|
import { ProductOptionsProvider } from './ProductOptionsProvider.client';
|
|
7
6
|
/**
|
|
8
7
|
* The `ProductProvider` component sets up a context with product details. Descendents of
|
|
9
|
-
* this component can use the `useProduct` hook
|
|
8
|
+
* this component can use the `useProduct` hook.
|
|
10
9
|
*/
|
|
11
10
|
export function ProductProvider({ children, data: product, initialVariantId, }) {
|
|
12
11
|
const metafields = useParsedMetafields(product.metafields);
|
|
@@ -32,5 +31,3 @@ export function ProductProvider({ children, data: product, initialVariantId, })
|
|
|
32
31
|
return (React.createElement(ProductContext.Provider, { value: providerValue },
|
|
33
32
|
React.createElement(ProductOptionsProvider, { initialVariantId: initialVariantId }, children)));
|
|
34
33
|
}
|
|
35
|
-
ProductProvider.Fragment = Fragment;
|
|
36
|
-
export const ProductProviderFragment = Fragment;
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* THIS FILE IS AUTO-GENERATED, DO NOT EDIT.
|
|
3
|
+
* Instead, you can edit the associated .graphql file to query for additional fields and this file will be updated when you run `yarn graphql-types`
|
|
4
|
+
*/
|
|
1
5
|
import * as Types from '../../graphql/types/types';
|
|
2
|
-
import { MoneyFragmentFragment } from '../Money/MoneyFragment';
|
|
3
|
-
import { MediaFileFragment_ExternalVideo_Fragment, MediaFileFragment_MediaImage_Fragment, MediaFileFragment_Model3d_Fragment, MediaFileFragment_Video_Fragment } from '../MediaFile/MediaFileFragment';
|
|
4
|
-
import { MetafieldFragmentFragment } from '../Metafield/MetafieldFragment';
|
|
5
|
-
import { VariantFragmentFragment } from '../../hooks/useProductOptions/VariantFragment';
|
|
6
|
-
import { SellingPlanGroupsFragmentFragment } from '../../hooks/useProductOptions/SellingPlanGroupsFragment';
|
|
7
6
|
export declare type ProductProviderFragmentFragment = {
|
|
8
7
|
__typename?: 'Product';
|
|
9
8
|
} & Pick<Types.Product, 'descriptionHtml' | 'handle' | 'id' | 'title'> & {
|
|
@@ -12,10 +11,10 @@ export declare type ProductProviderFragmentFragment = {
|
|
|
12
11
|
} & {
|
|
13
12
|
maxVariantPrice: {
|
|
14
13
|
__typename?: 'MoneyV2';
|
|
15
|
-
} &
|
|
14
|
+
} & Pick<Types.MoneyV2, 'currencyCode' | 'amount'>;
|
|
16
15
|
minVariantPrice: {
|
|
17
16
|
__typename?: 'MoneyV2';
|
|
18
|
-
} &
|
|
17
|
+
} & Pick<Types.MoneyV2, 'currencyCode' | 'amount'>;
|
|
19
18
|
};
|
|
20
19
|
media: {
|
|
21
20
|
__typename?: 'MediaConnection';
|
|
@@ -25,13 +24,31 @@ export declare type ProductProviderFragmentFragment = {
|
|
|
25
24
|
} & {
|
|
26
25
|
node: ({
|
|
27
26
|
__typename?: 'ExternalVideo';
|
|
28
|
-
} &
|
|
27
|
+
} & Pick<Types.ExternalVideo, 'mediaContentType' | 'id' | 'embedUrl' | 'host'>) | ({
|
|
29
28
|
__typename?: 'MediaImage';
|
|
30
|
-
} &
|
|
29
|
+
} & Pick<Types.MediaImage, 'mediaContentType'> & {
|
|
30
|
+
image?: Types.Maybe<{
|
|
31
|
+
__typename?: 'Image';
|
|
32
|
+
} & Pick<Types.Image, 'id' | 'url' | 'altText' | 'width' | 'height'>>;
|
|
33
|
+
}) | ({
|
|
31
34
|
__typename?: 'Model3d';
|
|
32
|
-
} &
|
|
35
|
+
} & Pick<Types.Model3d, 'mediaContentType' | 'id' | 'alt'> & {
|
|
36
|
+
previewImage?: Types.Maybe<{
|
|
37
|
+
__typename?: 'Image';
|
|
38
|
+
} & Pick<Types.Image, 'url'>>;
|
|
39
|
+
sources: Array<{
|
|
40
|
+
__typename?: 'Model3dSource';
|
|
41
|
+
} & Pick<Types.Model3dSource, 'url'>>;
|
|
42
|
+
}) | ({
|
|
33
43
|
__typename?: 'Video';
|
|
34
|
-
} &
|
|
44
|
+
} & Pick<Types.Video, 'mediaContentType' | 'id'> & {
|
|
45
|
+
previewImage?: Types.Maybe<{
|
|
46
|
+
__typename?: 'Image';
|
|
47
|
+
} & Pick<Types.Image, 'url'>>;
|
|
48
|
+
sources: Array<{
|
|
49
|
+
__typename?: 'VideoSource';
|
|
50
|
+
} & Pick<Types.VideoSource, 'mimeType' | 'url'>>;
|
|
51
|
+
});
|
|
35
52
|
}>;
|
|
36
53
|
};
|
|
37
54
|
metafields: {
|
|
@@ -42,7 +59,21 @@ export declare type ProductProviderFragmentFragment = {
|
|
|
42
59
|
} & {
|
|
43
60
|
node: {
|
|
44
61
|
__typename?: 'Metafield';
|
|
45
|
-
} &
|
|
62
|
+
} & Pick<Types.Metafield, 'id' | 'type' | 'namespace' | 'key' | 'value' | 'createdAt' | 'updatedAt' | 'description'> & {
|
|
63
|
+
reference?: Types.Maybe<({
|
|
64
|
+
__typename: 'MediaImage';
|
|
65
|
+
} & Pick<Types.MediaImage, 'id' | 'mediaContentType'> & {
|
|
66
|
+
image?: Types.Maybe<{
|
|
67
|
+
__typename?: 'Image';
|
|
68
|
+
} & Pick<Types.Image, 'id' | 'url' | 'altText' | 'width' | 'height'>>;
|
|
69
|
+
}) | {
|
|
70
|
+
__typename: 'Page';
|
|
71
|
+
} | {
|
|
72
|
+
__typename: 'Product';
|
|
73
|
+
} | {
|
|
74
|
+
__typename: 'ProductVariant';
|
|
75
|
+
}>;
|
|
76
|
+
};
|
|
46
77
|
}>;
|
|
47
78
|
};
|
|
48
79
|
priceRange: {
|
|
@@ -50,10 +81,10 @@ export declare type ProductProviderFragmentFragment = {
|
|
|
50
81
|
} & {
|
|
51
82
|
maxVariantPrice: {
|
|
52
83
|
__typename?: 'MoneyV2';
|
|
53
|
-
} &
|
|
84
|
+
} & Pick<Types.MoneyV2, 'currencyCode' | 'amount'>;
|
|
54
85
|
minVariantPrice: {
|
|
55
86
|
__typename?: 'MoneyV2';
|
|
56
|
-
} &
|
|
87
|
+
} & Pick<Types.MoneyV2, 'currencyCode' | 'amount'>;
|
|
57
88
|
};
|
|
58
89
|
variants: {
|
|
59
90
|
__typename?: 'ProductVariantConnection';
|
|
@@ -63,7 +94,105 @@ export declare type ProductProviderFragmentFragment = {
|
|
|
63
94
|
} & {
|
|
64
95
|
node: {
|
|
65
96
|
__typename?: 'ProductVariant';
|
|
66
|
-
} &
|
|
97
|
+
} & Pick<Types.ProductVariant, 'id' | 'title' | 'availableForSale'> & {
|
|
98
|
+
image?: Types.Maybe<{
|
|
99
|
+
__typename?: 'Image';
|
|
100
|
+
} & Pick<Types.Image, 'id' | 'url' | 'altText' | 'width' | 'height'>>;
|
|
101
|
+
priceV2: {
|
|
102
|
+
__typename?: 'MoneyV2';
|
|
103
|
+
} & Pick<Types.MoneyV2, 'currencyCode' | 'amount'>;
|
|
104
|
+
compareAtPriceV2?: Types.Maybe<{
|
|
105
|
+
__typename?: 'MoneyV2';
|
|
106
|
+
} & Pick<Types.MoneyV2, 'currencyCode' | 'amount'>>;
|
|
107
|
+
selectedOptions: Array<{
|
|
108
|
+
__typename?: 'SelectedOption';
|
|
109
|
+
} & Pick<Types.SelectedOption, 'name' | 'value'>>;
|
|
110
|
+
metafields: {
|
|
111
|
+
__typename?: 'MetafieldConnection';
|
|
112
|
+
} & {
|
|
113
|
+
edges: Array<{
|
|
114
|
+
__typename?: 'MetafieldEdge';
|
|
115
|
+
} & {
|
|
116
|
+
node: {
|
|
117
|
+
__typename?: 'Metafield';
|
|
118
|
+
} & Pick<Types.Metafield, 'id' | 'type' | 'namespace' | 'key' | 'value' | 'createdAt' | 'updatedAt' | 'description'> & {
|
|
119
|
+
reference?: Types.Maybe<({
|
|
120
|
+
__typename: 'MediaImage';
|
|
121
|
+
} & Pick<Types.MediaImage, 'id' | 'mediaContentType'> & {
|
|
122
|
+
image?: Types.Maybe<{
|
|
123
|
+
__typename?: 'Image';
|
|
124
|
+
} & Pick<Types.Image, 'id' | 'url' | 'altText' | 'width' | 'height'>>;
|
|
125
|
+
}) | {
|
|
126
|
+
__typename: 'Page';
|
|
127
|
+
} | {
|
|
128
|
+
__typename: 'Product';
|
|
129
|
+
} | {
|
|
130
|
+
__typename: 'ProductVariant';
|
|
131
|
+
}>;
|
|
132
|
+
};
|
|
133
|
+
}>;
|
|
134
|
+
};
|
|
135
|
+
sellingPlanAllocations: {
|
|
136
|
+
__typename?: 'SellingPlanAllocationConnection';
|
|
137
|
+
} & {
|
|
138
|
+
edges: Array<{
|
|
139
|
+
__typename?: 'SellingPlanAllocationEdge';
|
|
140
|
+
} & {
|
|
141
|
+
node: {
|
|
142
|
+
__typename?: 'SellingPlanAllocation';
|
|
143
|
+
} & {
|
|
144
|
+
priceAdjustments: Array<{
|
|
145
|
+
__typename?: 'SellingPlanAllocationPriceAdjustment';
|
|
146
|
+
} & {
|
|
147
|
+
compareAtPrice: {
|
|
148
|
+
__typename?: 'MoneyV2';
|
|
149
|
+
} & Pick<Types.MoneyV2, 'currencyCode' | 'amount'>;
|
|
150
|
+
perDeliveryPrice: {
|
|
151
|
+
__typename?: 'MoneyV2';
|
|
152
|
+
} & Pick<Types.MoneyV2, 'currencyCode' | 'amount'>;
|
|
153
|
+
price: {
|
|
154
|
+
__typename?: 'MoneyV2';
|
|
155
|
+
} & Pick<Types.MoneyV2, 'currencyCode' | 'amount'>;
|
|
156
|
+
unitPrice?: Types.Maybe<{
|
|
157
|
+
__typename?: 'MoneyV2';
|
|
158
|
+
} & Pick<Types.MoneyV2, 'currencyCode' | 'amount'>>;
|
|
159
|
+
}>;
|
|
160
|
+
sellingPlan: {
|
|
161
|
+
__typename?: 'SellingPlan';
|
|
162
|
+
} & Pick<Types.SellingPlan, 'id' | 'description' | 'name' | 'recurringDeliveries'> & {
|
|
163
|
+
options: Array<{
|
|
164
|
+
__typename?: 'SellingPlanOption';
|
|
165
|
+
} & Pick<Types.SellingPlanOption, 'name' | 'value'>>;
|
|
166
|
+
priceAdjustments: Array<{
|
|
167
|
+
__typename?: 'SellingPlanPriceAdjustment';
|
|
168
|
+
} & Pick<Types.SellingPlanPriceAdjustment, 'orderCount'> & {
|
|
169
|
+
adjustmentValue: ({
|
|
170
|
+
__typename?: 'SellingPlanFixedAmountPriceAdjustment';
|
|
171
|
+
} & {
|
|
172
|
+
adjustmentAmount: {
|
|
173
|
+
__typename?: 'MoneyV2';
|
|
174
|
+
} & Pick<Types.MoneyV2, 'currencyCode' | 'amount'>;
|
|
175
|
+
}) | ({
|
|
176
|
+
__typename?: 'SellingPlanFixedPriceAdjustment';
|
|
177
|
+
} & {
|
|
178
|
+
price: {
|
|
179
|
+
__typename?: 'MoneyV2';
|
|
180
|
+
} & Pick<Types.MoneyV2, 'currencyCode' | 'amount'>;
|
|
181
|
+
}) | ({
|
|
182
|
+
__typename?: 'SellingPlanPercentagePriceAdjustment';
|
|
183
|
+
} & Pick<Types.SellingPlanPercentagePriceAdjustment, 'adjustmentPercentage'>);
|
|
184
|
+
}>;
|
|
185
|
+
};
|
|
186
|
+
};
|
|
187
|
+
}>;
|
|
188
|
+
};
|
|
189
|
+
unitPriceMeasurement?: Types.Maybe<{
|
|
190
|
+
__typename?: 'UnitPriceMeasurement';
|
|
191
|
+
} & Pick<Types.UnitPriceMeasurement, 'measuredType' | 'quantityUnit' | 'quantityValue' | 'referenceUnit' | 'referenceValue'>>;
|
|
192
|
+
unitPrice?: Types.Maybe<{
|
|
193
|
+
__typename?: 'MoneyV2';
|
|
194
|
+
} & Pick<Types.MoneyV2, 'currencyCode' | 'amount'>>;
|
|
195
|
+
};
|
|
67
196
|
}>;
|
|
68
197
|
};
|
|
69
198
|
sellingPlanGroups: {
|
|
@@ -74,7 +203,45 @@ export declare type ProductProviderFragmentFragment = {
|
|
|
74
203
|
} & {
|
|
75
204
|
node: {
|
|
76
205
|
__typename?: 'SellingPlanGroup';
|
|
77
|
-
} &
|
|
206
|
+
} & Pick<Types.SellingPlanGroup, 'appName' | 'name'> & {
|
|
207
|
+
sellingPlans: {
|
|
208
|
+
__typename?: 'SellingPlanConnection';
|
|
209
|
+
} & {
|
|
210
|
+
edges: Array<{
|
|
211
|
+
__typename?: 'SellingPlanEdge';
|
|
212
|
+
} & {
|
|
213
|
+
node: {
|
|
214
|
+
__typename?: 'SellingPlan';
|
|
215
|
+
} & Pick<Types.SellingPlan, 'id' | 'description' | 'name' | 'recurringDeliveries'> & {
|
|
216
|
+
options: Array<{
|
|
217
|
+
__typename?: 'SellingPlanOption';
|
|
218
|
+
} & Pick<Types.SellingPlanOption, 'name' | 'value'>>;
|
|
219
|
+
priceAdjustments: Array<{
|
|
220
|
+
__typename?: 'SellingPlanPriceAdjustment';
|
|
221
|
+
} & Pick<Types.SellingPlanPriceAdjustment, 'orderCount'> & {
|
|
222
|
+
adjustmentValue: ({
|
|
223
|
+
__typename?: 'SellingPlanFixedAmountPriceAdjustment';
|
|
224
|
+
} & {
|
|
225
|
+
adjustmentAmount: {
|
|
226
|
+
__typename?: 'MoneyV2';
|
|
227
|
+
} & Pick<Types.MoneyV2, 'currencyCode' | 'amount'>;
|
|
228
|
+
}) | ({
|
|
229
|
+
__typename?: 'SellingPlanFixedPriceAdjustment';
|
|
230
|
+
} & {
|
|
231
|
+
price: {
|
|
232
|
+
__typename?: 'MoneyV2';
|
|
233
|
+
} & Pick<Types.MoneyV2, 'currencyCode' | 'amount'>;
|
|
234
|
+
}) | ({
|
|
235
|
+
__typename?: 'SellingPlanPercentagePriceAdjustment';
|
|
236
|
+
} & Pick<Types.SellingPlanPercentagePriceAdjustment, 'adjustmentPercentage'>);
|
|
237
|
+
}>;
|
|
238
|
+
};
|
|
239
|
+
}>;
|
|
240
|
+
};
|
|
241
|
+
options: Array<{
|
|
242
|
+
__typename?: 'SellingPlanGroupOption';
|
|
243
|
+
} & Pick<Types.SellingPlanGroupOption, 'name' | 'values'>>;
|
|
244
|
+
};
|
|
78
245
|
}>;
|
|
79
246
|
};
|
|
80
247
|
};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { ProductProvider
|
|
1
|
+
export { ProductProvider } from './ProductProvider.client';
|
|
2
2
|
export { useProduct } from '../../hooks/useProduct/useProduct';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { ProductProvider
|
|
1
|
+
export { ProductProvider } from './ProductProvider.client';
|
|
2
2
|
export { useProduct } from '../../hooks/useProduct/useProduct';
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import { ElementType } from 'react';
|
|
2
|
-
import { Props } from '../types';
|
|
3
1
|
export interface RawHtmlProps<TTag> {
|
|
4
2
|
/** An HTML string. */
|
|
5
3
|
string: string;
|
|
@@ -16,4 +14,4 @@ export interface RawHtmlProps<TTag> {
|
|
|
16
14
|
* [isomorphic-dompurify](https://github.com/kkomelin/isomorphic-dompurify) by default.
|
|
17
15
|
* To keep the text unsanitized, set the `unsanitized` prop to `true`.
|
|
18
16
|
*/
|
|
19
|
-
export declare function RawHtml<TTag extends
|
|
17
|
+
export declare function RawHtml<TTag extends keyof JSX.IntrinsicElements = 'div'>(props: JSX.IntrinsicElements[TTag] & RawHtmlProps<TTag>): JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { RawHtml
|
|
1
|
+
export { RawHtml } from './RawHtml';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare function CollectionSeo({ title, description, seo, image }:
|
|
1
|
+
import type { CollectionSeoFragmentFragment } from './SeoFragment';
|
|
2
|
+
export declare function CollectionSeo({ title, description, seo, image, }: CollectionSeoFragmentFragment): JSX.Element;
|
|
@@ -3,7 +3,7 @@ import { TitleSeo } from './TitleSeo.client';
|
|
|
3
3
|
import { DescriptionSeo } from './DescriptionSeo.client';
|
|
4
4
|
import { TwitterSeo } from './TwitterSeo.client';
|
|
5
5
|
import { ImageSeo } from './ImageSeo.client';
|
|
6
|
-
export function CollectionSeo({ title, description, seo, image }) {
|
|
6
|
+
export function CollectionSeo({ title, description, seo, image, }) {
|
|
7
7
|
var _a, _b;
|
|
8
8
|
const seoTitle = (_a = seo.title) !== null && _a !== void 0 ? _a : title;
|
|
9
9
|
const seoDescription = (_b = seo.description) !== null && _b !== void 0 ? _b : description;
|
|
@@ -8,10 +8,10 @@ export function DefaultPageSeo({ title, description, url, titleTemplate, lang, }
|
|
|
8
8
|
const { locale } = useShop();
|
|
9
9
|
const fallBacklang = locale.split(/[-_]/)[0];
|
|
10
10
|
return (React.createElement(React.Fragment, null,
|
|
11
|
-
React.createElement(Head, { defaultTitle: title, titleTemplate: titleTemplate !== null && titleTemplate !== void 0 ? titleTemplate : `%s - ${title}` },
|
|
11
|
+
React.createElement(Head, { defaultTitle: title !== null && title !== void 0 ? title : '', titleTemplate: titleTemplate !== null && titleTemplate !== void 0 ? titleTemplate : `%s - ${title}` },
|
|
12
12
|
React.createElement("html", { lang: lang !== null && lang !== void 0 ? lang : fallBacklang }),
|
|
13
13
|
React.createElement("meta", { property: "og:type", content: "website" }),
|
|
14
|
-
React.createElement("meta", { property: "og:site_name", content: title }),
|
|
14
|
+
React.createElement("meta", { property: "og:site_name", content: title !== null && title !== void 0 ? title : '' }),
|
|
15
15
|
React.createElement("meta", { property: "og:url", content: url })),
|
|
16
16
|
React.createElement(TitleSeo, { title: title }),
|
|
17
17
|
React.createElement(DescriptionSeo, { description: description }),
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
export declare function DescriptionSeo({ description }: {
|
|
3
|
-
description?:
|
|
1
|
+
import type { SeoFragmentFragment } from './SeoFragment';
|
|
2
|
+
export declare function DescriptionSeo({ description, }: {
|
|
3
|
+
description?: SeoFragmentFragment['description'];
|
|
4
4
|
}): JSX.Element | null;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
export declare function ImageSeo({ url, width, height, altText }: Partial<
|
|
1
|
+
import type { ImageSeoFragmentFragment } from './SeoFragment';
|
|
2
|
+
export declare function ImageSeo({ url, width, height, altText, }: Partial<ImageSeoFragmentFragment>): JSX.Element;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { Head } from '../../client';
|
|
3
|
-
export function ImageSeo({ url, width, height, altText }) {
|
|
3
|
+
export function ImageSeo({ url, width, height, altText, }) {
|
|
4
4
|
return (React.createElement(Head, null,
|
|
5
5
|
url && React.createElement("meta", { property: "og:image", content: url }),
|
|
6
6
|
url && React.createElement("meta", { property: "og:image:secure_url", content: url }),
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare function PageSeo({ title, seo }:
|
|
1
|
+
import { PageSeoFragmentFragment } from './SeoFragment';
|
|
2
|
+
export declare function PageSeo({ title, seo }: PageSeoFragmentFragment): JSX.Element;
|
|
@@ -4,8 +4,8 @@ import { DescriptionSeo } from './DescriptionSeo.client';
|
|
|
4
4
|
import { TwitterSeo } from './TwitterSeo.client';
|
|
5
5
|
export function PageSeo({ title, seo }) {
|
|
6
6
|
var _a;
|
|
7
|
-
const seoTitle = (_a = seo.title) !== null && _a !== void 0 ? _a : title;
|
|
8
|
-
const seoDescription = seo.description;
|
|
7
|
+
const seoTitle = (_a = seo === null || seo === void 0 ? void 0 : seo.title) !== null && _a !== void 0 ? _a : title;
|
|
8
|
+
const seoDescription = seo === null || seo === void 0 ? void 0 : seo.description;
|
|
9
9
|
return (React.createElement(React.Fragment, null,
|
|
10
10
|
React.createElement(TitleSeo, { title: seoTitle }),
|
|
11
11
|
React.createElement(DescriptionSeo, { description: seoDescription }),
|
|
@@ -1,2 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import type { ProductSeoFragmentFragment } from './SeoFragment';
|
|
2
|
+
import type { Scalars } from '../../graphql/types/types';
|
|
3
|
+
export declare function ProductSeo({ url, title, description, seo, vendor, featuredImage, variants, }: ProductSeoFragmentFragment & {
|
|
4
|
+
url: Scalars['URL'];
|
|
5
|
+
}): JSX.Element;
|
|
@@ -1,22 +1,23 @@
|
|
|
1
|
-
import type { DefaultPage, HomePage
|
|
1
|
+
import type { DefaultPage, HomePage } from './types';
|
|
2
|
+
import type { ProductSeoFragmentFragment, CollectionSeoFragmentFragment, PageSeoFragmentFragment } from './SeoFragment';
|
|
2
3
|
declare type Props = {
|
|
3
4
|
type: 'defaultSeo';
|
|
4
|
-
data:
|
|
5
|
+
data: Omit<DefaultPage, 'url'>;
|
|
5
6
|
} | {
|
|
6
7
|
type: 'homepage';
|
|
7
|
-
data:
|
|
8
|
+
data: Omit<HomePage, 'url'>;
|
|
8
9
|
} | {
|
|
9
10
|
type: 'product';
|
|
10
|
-
data:
|
|
11
|
+
data: ProductSeoFragmentFragment;
|
|
11
12
|
} | {
|
|
12
13
|
type: 'collection';
|
|
13
|
-
data:
|
|
14
|
+
data: CollectionSeoFragmentFragment;
|
|
14
15
|
} | {
|
|
15
16
|
type: 'page';
|
|
16
|
-
data:
|
|
17
|
+
data: PageSeoFragmentFragment;
|
|
17
18
|
};
|
|
18
19
|
/**
|
|
19
20
|
* The `Seo` component renders SEO information on a webpage.
|
|
20
21
|
*/
|
|
21
|
-
export declare function Seo(
|
|
22
|
+
export declare function Seo(props: Props): JSX.Element | null;
|
|
22
23
|
export {};
|
|
@@ -8,27 +8,21 @@ import { PageSeo } from './PageSeo.client';
|
|
|
8
8
|
/**
|
|
9
9
|
* The `Seo` component renders SEO information on a webpage.
|
|
10
10
|
*/
|
|
11
|
-
export function Seo(
|
|
11
|
+
export function Seo(props) {
|
|
12
12
|
const url = useUrl().href;
|
|
13
|
-
|
|
14
|
-
switch (type) {
|
|
13
|
+
switch (props.type) {
|
|
15
14
|
case 'defaultSeo':
|
|
16
|
-
|
|
17
|
-
break;
|
|
15
|
+
return React.createElement(DefaultPageSeo, { ...{ url, ...props.data } });
|
|
18
16
|
case 'homepage':
|
|
19
|
-
|
|
20
|
-
break;
|
|
17
|
+
return React.createElement(HomePageSeo, { ...{ url, ...props.data } });
|
|
21
18
|
case 'product':
|
|
22
|
-
|
|
23
|
-
break;
|
|
19
|
+
return React.createElement(ProductSeo, { ...{ url, ...props.data } });
|
|
24
20
|
case 'collection':
|
|
25
|
-
|
|
26
|
-
break;
|
|
21
|
+
return React.createElement(CollectionSeo, { ...props.data });
|
|
27
22
|
case 'page':
|
|
28
|
-
|
|
29
|
-
break;
|
|
23
|
+
return React.createElement(PageSeo, { ...props.data });
|
|
30
24
|
default:
|
|
31
25
|
console.warn('The <Seo/> only accepts type prop with values of defaultSeo, homepage, product, collection, or page.');
|
|
26
|
+
return null;
|
|
32
27
|
}
|
|
33
|
-
return SeoMarkup;
|
|
34
28
|
}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* THIS FILE IS AUTO-GENERATED, DO NOT EDIT.
|
|
3
|
+
* Instead, you can edit the associated .graphql file to query for additional fields and this file will be updated when you run `yarn graphql-types`
|
|
4
|
+
*/
|
|
5
|
+
import * as Types from '../../graphql/types/types';
|
|
6
|
+
export declare type DefaultPageSeoFragmentFragment = {
|
|
7
|
+
__typename?: 'Shop';
|
|
8
|
+
} & Pick<Types.Shop, 'description'> & {
|
|
9
|
+
title: Types.Shop['name'];
|
|
10
|
+
};
|
|
11
|
+
export declare type HomeSeoFragmentFragment = {
|
|
12
|
+
__typename?: 'Shop';
|
|
13
|
+
} & Pick<Types.Shop, 'description'> & {
|
|
14
|
+
title: Types.Shop['name'];
|
|
15
|
+
};
|
|
16
|
+
export declare type ImageSeoFragmentFragment = {
|
|
17
|
+
__typename?: 'Image';
|
|
18
|
+
} & Pick<Types.Image, 'url' | 'width' | 'height' | 'altText'>;
|
|
19
|
+
export declare type SeoFragmentFragment = {
|
|
20
|
+
__typename?: 'SEO';
|
|
21
|
+
} & Pick<Types.Seo, 'description' | 'title'>;
|
|
22
|
+
export declare type ProductSeoFragmentFragment = {
|
|
23
|
+
__typename?: 'Product';
|
|
24
|
+
} & Pick<Types.Product, 'title' | 'description' | 'vendor'> & {
|
|
25
|
+
seo: {
|
|
26
|
+
__typename?: 'SEO';
|
|
27
|
+
} & Pick<Types.Seo, 'description' | 'title'>;
|
|
28
|
+
featuredImage?: Types.Maybe<{
|
|
29
|
+
__typename?: 'Image';
|
|
30
|
+
} & Pick<Types.Image, 'url' | 'width' | 'height' | 'altText'>>;
|
|
31
|
+
variants: {
|
|
32
|
+
__typename?: 'ProductVariantConnection';
|
|
33
|
+
} & {
|
|
34
|
+
edges: Array<{
|
|
35
|
+
__typename?: 'ProductVariantEdge';
|
|
36
|
+
} & {
|
|
37
|
+
node: {
|
|
38
|
+
__typename?: 'ProductVariant';
|
|
39
|
+
} & Pick<Types.ProductVariant, 'availableForSale' | 'sku'> & {
|
|
40
|
+
image?: Types.Maybe<{
|
|
41
|
+
__typename?: 'Image';
|
|
42
|
+
} & Pick<Types.Image, 'url'>>;
|
|
43
|
+
priceV2: {
|
|
44
|
+
__typename?: 'MoneyV2';
|
|
45
|
+
} & Pick<Types.MoneyV2, 'amount' | 'currencyCode'>;
|
|
46
|
+
};
|
|
47
|
+
}>;
|
|
48
|
+
};
|
|
49
|
+
};
|
|
50
|
+
export declare type CollectionSeoFragmentFragment = {
|
|
51
|
+
__typename?: 'Collection';
|
|
52
|
+
} & Pick<Types.Collection, 'title' | 'description'> & {
|
|
53
|
+
seo: {
|
|
54
|
+
__typename?: 'SEO';
|
|
55
|
+
} & Pick<Types.Seo, 'description' | 'title'>;
|
|
56
|
+
image?: Types.Maybe<{
|
|
57
|
+
__typename?: 'Image';
|
|
58
|
+
} & Pick<Types.Image, 'url' | 'width' | 'height' | 'altText'>>;
|
|
59
|
+
};
|
|
60
|
+
export declare type PageSeoFragmentFragment = {
|
|
61
|
+
__typename?: 'Page';
|
|
62
|
+
} & Pick<Types.Page, 'title'> & {
|
|
63
|
+
seo?: Types.Maybe<{
|
|
64
|
+
__typename?: 'SEO';
|
|
65
|
+
} & Pick<Types.Seo, 'description' | 'title'>>;
|
|
66
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|