@coinbase/cdp-hooks 0.0.15 → 0.0.17

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/dist/esm/index.js CHANGED
@@ -1,22 +1,24 @@
1
- import { CDPContext as n, CDPHooksProvider as u } from "./index2.js";
2
- import { useConfig as t, useCurrentUser as r, useEnforceAuthenticated as o, useEnforceUnauthenticated as a, useEvmAddress as E, useExportEvmAccount as m, useIsInitialized as d, useIsSignedIn as g, useSendEvmTransaction as c, useSignEvmHash as v, useSignEvmMessage as S, useSignEvmTransaction as f, useSignEvmTypedData as C, useSignInWithEmail as I, useSignOut as h, useVerifyEmailOTP as p } from "./index3.js";
1
+ import { APIError as n } from "@coinbase/cdp-core";
2
+ import { CDPContext as u, CDPHooksProvider as i } from "./index2.js";
3
+ import { useConfig as o, useCurrentUser as a, useEnforceAuthenticated as E, useEnforceUnauthenticated as m, useEvmAddress as d, useExportEvmAccount as g, useIsInitialized as c, useIsSignedIn as v, useSendEvmTransaction as S, useSignEvmHash as f, useSignEvmMessage as I, useSignEvmTransaction as p, useSignEvmTypedData as x, useSignInWithEmail as C, useSignOut as P, useVerifyEmailOTP as h } from "./index3.js";
3
4
  export {
4
- n as CDPContext,
5
- u as CDPHooksProvider,
6
- t as useConfig,
7
- r as useCurrentUser,
8
- o as useEnforceAuthenticated,
9
- a as useEnforceUnauthenticated,
10
- E as useEvmAddress,
11
- m as useExportEvmAccount,
12
- d as useIsInitialized,
13
- g as useIsSignedIn,
14
- c as useSendEvmTransaction,
15
- v as useSignEvmHash,
16
- S as useSignEvmMessage,
17
- f as useSignEvmTransaction,
18
- C as useSignEvmTypedData,
19
- I as useSignInWithEmail,
20
- h as useSignOut,
21
- p as useVerifyEmailOTP
5
+ n as APIError,
6
+ u as CDPContext,
7
+ i as CDPHooksProvider,
8
+ o as useConfig,
9
+ a as useCurrentUser,
10
+ E as useEnforceAuthenticated,
11
+ m as useEnforceUnauthenticated,
12
+ d as useEvmAddress,
13
+ g as useExportEvmAccount,
14
+ c as useIsInitialized,
15
+ v as useIsSignedIn,
16
+ S as useSendEvmTransaction,
17
+ f as useSignEvmHash,
18
+ I as useSignEvmMessage,
19
+ p as useSignEvmTransaction,
20
+ x as useSignEvmTypedData,
21
+ C as useSignInWithEmail,
22
+ P as useSignOut,
23
+ h as useVerifyEmailOTP
22
24
  };
@@ -1,4 +1,6 @@
1
1
  import { AllowedEvmTransactionType } from '@coinbase/cdp-core';
2
+ import { APIError } from '@coinbase/cdp-core';
3
+ import { APIErrorType } from '@coinbase/cdp-core';
2
4
  import { Config } from '@coinbase/cdp-core';
3
5
  import { Context } from 'react';
4
6
  import { EIP712TypedData } from '@coinbase/cdp-core';
@@ -26,6 +28,10 @@ import { VerifyEmailOTPResult } from '@coinbase/cdp-core';
26
28
 
27
29
  export { AllowedEvmTransactionType }
28
30
 
31
+ export { APIError }
32
+
33
+ export { APIErrorType }
34
+
29
35
  export declare const CDPContext: Context<CDPContextValue | null>;
30
36
 
31
37
  export declare interface CDPContextValue {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@coinbase/cdp-hooks",
3
- "version": "0.0.15",
3
+ "version": "0.0.17",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist/**",
@@ -14,7 +14,7 @@
14
14
  },
15
15
  "peerDependencies": {
16
16
  "react": ">=18.2.0",
17
- "@coinbase/cdp-core": "^0.0.15"
17
+ "@coinbase/cdp-core": "^0.0.17"
18
18
  },
19
19
  "devDependencies": {
20
20
  "@testing-library/jest-dom": "^6.6.3",
@@ -29,7 +29,7 @@
29
29
  "@size-limit/webpack": "^11.2.0",
30
30
  "@size-limit/webpack-why": "^11.2.0",
31
31
  "size-limit": "^11.2.0",
32
- "@coinbase/cdp-core": "^0.0.15"
32
+ "@coinbase/cdp-core": "^0.0.17"
33
33
  },
34
34
  "size-limit": [
35
35
  {