@shipengine/react-api 1.0.0-next.2 → 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/hooks/index.d.ts +7 -6
- package/hooks/use-get-account-settings.d.ts +1 -1
- package/hooks/use-update-account-settings.d.ts +10 -0
- package/hooks/use-update-billing.d.ts +4 -1
- package/index.d.ts +1 -0
- package/index.js +16 -16
- package/index.mjs +2215 -3718
- package/package.json +6 -1
- package/providers/shipengine.d.ts +3 -2
- package/hooks/use-shipengine.d.ts +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shipengine/react-api",
|
|
3
|
-
"version": "1.0.0-next.
|
|
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
|
|
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
|
|
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;
|