You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* MediaFile renders an `Image`, `Video`, `ExternalVideo`, or `ModelViewer` component. Use the `mediaOptions` prop to customize the props sent to each of these components.
14
-
* @publicDocs
15
-
*/
12
+
/** @publicDocs */
16
13
exportinterfaceMediaFilePropsextendsBaseProps{
17
14
/** An object with fields that correspond to the Storefront API's [Media object](https://shopify.dev/api/storefront/reference/products/media). */
Copy file name to clipboardExpand all lines: packages/hydrogen-react/src/ModelViewer.tsx
+1-9Lines changed: 1 addition & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -54,15 +54,7 @@ export type ModelViewerBaseProps = {
54
54
onSceneGraphReady?: (event: Event)=>void;
55
55
};
56
56
57
-
/**
58
-
* The `ModelViewer` component renders a 3D model (with the `model-viewer` custom element) for
59
-
* the Storefront API's [Model3d object](https://shopify.dev/api/storefront/reference/products/model3d).
60
-
*
61
-
* The `model-viewer` custom element is lazily downloaded through a dynamically-injected `<script type="module">` tag when the `<ModelViewer />` component is rendered
62
-
*
63
-
* ModelViewer is using version `1.21.1` of the `@google/model-viewer` library.
Copy file name to clipboardExpand all lines: packages/hydrogen-react/src/ShopPayButton.tsx
+1-6Lines changed: 1 addition & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -65,12 +65,7 @@ function isChannel(
65
65
returnchannel==='headless'||channel==='hydrogen';
66
66
}
67
67
68
-
/**
69
-
* The `ShopPayButton` component renders a button that redirects to the Shop Pay checkout.
70
-
* It renders a [`<shop-pay-button>`](https://shopify.dev/custom-storefronts/tools/web-components) custom element, for which it will lazy-load the source code automatically.
71
-
* It relies on the `<ShopProvider>` context provider.
Copy file name to clipboardExpand all lines: packages/hydrogen-react/src/flatten-connection.ts
+2-11Lines changed: 2 additions & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -1,12 +1,6 @@
1
1
importtype{PartialDeep}from'type-fest';
2
2
3
-
/**
4
-
* The `flattenConnection` utility transforms a connection object from the Storefront API (for example, [Product-related connections](https://shopify.dev/api/storefront/reference/products/product)) into a flat array of nodes.
5
-
* The utility works with either `nodes` or `edges.node`.
6
-
*
7
-
* If `connection` is null or undefined, will return an empty array instead in production. In development, an error will be thrown.
* Determine whether an option value combination is present in an encoded option value string. Function is memoized by encodedVariantField.
34
-
*
35
-
* @param targetOptionValueCombination - Indices of option values to look up in the encoded option value string. A partial set of indices may be passed to determine whether a node or any children is present. For example, if a product has 3 options, passing [0] will return true if any option value combination for the first option's option value is present in the encoded string.
36
-
* @param encodedVariantField - Encoded option value string from the Storefront API, e.g. [product.encodedVariantExistence](/docs/api/storefront/2026-01/objects/Product#field-encodedvariantexistence) or [product.encodedVariantAvailability](/docs/api/storefront/2026-01/objects/Product#field-encodedvariantavailability)
37
-
* @returns - True if a full or partial targetOptionValueIndices is present in the encoded option value string, false otherwise.
* For an encoded option value string, decode into option value combinations. Entries represent a valid combination formatted as an array of option value positions.
86
-
* @param encodedVariantField - Encoded option value string from the Storefront API, e.g. [product.encodedVariantExistence](/docs/api/storefront/2026-01/objects/Product#field-encodedvariantexistence) or [product.encodedVariantAvailability](/docs/api/storefront/2026-01/objects/Product#field-encodedvariantavailability)
0 commit comments