@shopify/hydrogen-react 0.0.0-next-992334e → 0.0.0-next-954af28

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.
@@ -0,0 +1,16 @@
1
+ import { type ReactNode } from 'react';
2
+ import { CartLine } from './storefront-api-types.js';
3
+ export declare const CartLineContext: import("react").Context<CartLine | null>;
4
+ /**
5
+ * The `useCartLine` hook provides access to the cart line object. It must be a descendent of a `CartProvider` component.
6
+ */
7
+ export declare function useCartLine(): CartLine;
8
+ /**
9
+ * The `CartLineProvider` component creates a context for using a cart line.
10
+ */
11
+ export declare function CartLineProvider({ children, line, }: {
12
+ /** Any `ReactNode` elements. */
13
+ children: ReactNode;
14
+ /** A cart line object. */
15
+ line: CartLine;
16
+ }): JSX.Element;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shopify/hydrogen-react",
3
- "version": "0.0.0-next-992334e",
3
+ "version": "0.0.0-next-954af28",
4
4
  "description": "React components, hooks, and utilities for creating custom Shopify storefronts",
5
5
  "homepage": "https://github.com/Shopify/hydrogen-ui/tree/main/packages/react",
6
6
  "license": "MIT",