diff --git a/.changeset/mean-mirrors-worry.md b/.changeset/mean-mirrors-worry.md new file mode 100644 index 0000000000..1b98a2064d --- /dev/null +++ b/.changeset/mean-mirrors-worry.md @@ -0,0 +1,5 @@ +--- +'@shopify/hydrogen': minor +--- + +Updated the ExternalVideo component to use the new `embedUrl` Storefront API ([introduced in 2022-04](https://shopify.dev/api/release-notes/2022-04#non-encoded-object-ids-in-the-graphql-storefront-api)) on ExternalVideo. diff --git a/packages/hydrogen/src/components/ExternalVideo/ExternalVideo.tsx b/packages/hydrogen/src/components/ExternalVideo/ExternalVideo.tsx index 117c7bc121..d0d3efe854 100644 --- a/packages/hydrogen/src/components/ExternalVideo/ExternalVideo.tsx +++ b/packages/hydrogen/src/components/ExternalVideo/ExternalVideo.tsx @@ -5,7 +5,7 @@ import {ExternalVideoFragment as Fragment} from '../../graphql/graphql-constants import type {ExternalVideoFragmentFragment} from './ExternalVideoFragment'; export interface ExternalVideoProps { - /** An object with the keys `host`, `embeddedUrl`, and `id`. Refer to the Storefront API's + /** An object with the keys `host`, `embedUrl`, and `id`. Refer to the Storefront API's * [`ExternalVideo` type](/api/storefront/reference/products/externalvideo). */ data: ExternalVideoFragmentFragment; @@ -35,7 +35,7 @@ export function ExternalVideo( ...passthroughProps } = props; - const url = useEmbeddedVideoUrl(data.embeddedUrl, options); + const url = useEmbeddedVideoUrl(data.embedUrl, options); return (