@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 +22 -20
- package/dist/types/index.d.ts +6 -0
- package/package.json +3 -3
package/dist/esm/index.js
CHANGED
|
@@ -1,22 +1,24 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
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
|
|
5
|
-
u as
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
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
|
};
|
package/dist/types/index.d.ts
CHANGED
|
@@ -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.
|
|
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.
|
|
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.
|
|
32
|
+
"@coinbase/cdp-core": "^0.0.17"
|
|
33
33
|
},
|
|
34
34
|
"size-limit": [
|
|
35
35
|
{
|