@shipengine/react-api 1.0.0-next.3 → 1.0.0-next.4

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shipengine/react-api",
3
- "version": "1.0.0-next.3",
3
+ "version": "1.0.0-next.4",
4
4
  "main": "./index.js",
5
5
  "types": "./index.d.ts",
6
6
  "exports": {
@@ -14,5 +14,10 @@
14
14
  "entryPoint": "./src/index.ts",
15
15
  "readmeFile": "./README.md",
16
16
  "tsconfig": "./tsconfig.lib.json"
17
+ },
18
+ "peerDependencies": {
19
+ "react": "^18.2.0",
20
+ "react-dom": "^18.2.0",
21
+ "react-query": "^3.39.3"
17
22
  }
18
23
  }
@@ -4,9 +4,10 @@ export interface ShipEngineContextValue {
4
4
  client: ShipEngineAPI;
5
5
  }
6
6
  export declare const ShipEngineContext: import("react").Context<ShipEngineContextValue | undefined>;
7
- export type ShipEngineProviderProps = {
7
+ export type ShipEngineProps = {
8
8
  children: React.ReactNode;
9
9
  getToken: () => Promise<string> | string;
10
10
  headers?: AxiosRequestHeaders;
11
11
  } & ShipEngineAPIConfig;
12
- export declare const ShipEngineProvider: ({ baseURL, children, headers, getToken, }: ShipEngineProviderProps) => JSX.Element;
12
+ export declare const ShipEngine: ({ baseURL, children, headers, getToken }: ShipEngineProps) => JSX.Element;
13
+ export declare const useShipEngine: () => ShipEngineContextValue;
@@ -1 +0,0 @@
1
- export declare const useShipEngine: () => import("../providers").ShipEngineContextValue;