@gelatonetwork/smartwallet-react-sdk 0.0.25 → 0.0.27
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/CHANGELOG.md +17 -0
- package/_dist/index.d.ts +3 -3
- package/_dist/index.d.ts.map +1 -1
- package/_dist/index.js +5 -5
- package/_dist/index.js.map +1 -1
- package/_dist/provider.js.map +1 -1
- package/_dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +8 -8
- package/src/index.ts +5 -5
- package/src/provider.tsx +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gelatonetwork/smartwallet-react-sdk",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.27",
|
|
4
4
|
"author": "Gelato",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"description": "Gelato SmartWallet React SDK",
|
|
@@ -10,10 +10,10 @@
|
|
|
10
10
|
"peerDependencies": {
|
|
11
11
|
"typescript": "^5.9.2",
|
|
12
12
|
"viem": "~2.36.0",
|
|
13
|
-
"@gelatonetwork/smartwallet
|
|
14
|
-
"@gelatonetwork/smartwallet": "0.0.
|
|
15
|
-
"@gelatonetwork/smartwallet-react-
|
|
16
|
-
"@gelatonetwork/smartwallet-react-
|
|
13
|
+
"@gelatonetwork/smartwallet": "0.0.26",
|
|
14
|
+
"@gelatonetwork/smartwallet-react-types": "0.0.26",
|
|
15
|
+
"@gelatonetwork/smartwallet-react-dynamic": "0.0.27",
|
|
16
|
+
"@gelatonetwork/smartwallet-react-privy": "0.0.26"
|
|
17
17
|
},
|
|
18
18
|
"peerDependenciesMeta": {
|
|
19
19
|
"typescript": {
|
|
@@ -25,9 +25,9 @@
|
|
|
25
25
|
"viem": "~2.36.0",
|
|
26
26
|
"wagmi": "~2.16.8",
|
|
27
27
|
"@dynamic-labs/types": "~4.29.4",
|
|
28
|
-
"@gelatonetwork/smartwallet-react-types": "0.0.
|
|
29
|
-
"@gelatonetwork/smartwallet-react-
|
|
30
|
-
"@gelatonetwork/smartwallet-react-
|
|
28
|
+
"@gelatonetwork/smartwallet-react-types": "0.0.26",
|
|
29
|
+
"@gelatonetwork/smartwallet-react-dynamic": "0.0.27",
|
|
30
|
+
"@gelatonetwork/smartwallet-react-privy": "0.0.26"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
33
|
"@types/react": "^18.3.1"
|
package/src/index.ts
CHANGED
|
@@ -1,29 +1,29 @@
|
|
|
1
1
|
import type { wallet } from "@gelatonetwork/smartwallet-react-types";
|
|
2
2
|
|
|
3
|
+
export { GelatoSmartWalletConnectButton } from "./components/connect.js";
|
|
3
4
|
export {
|
|
4
5
|
GelatoSmartWalletContextProvider,
|
|
5
6
|
useGelatoSmartWalletProviderContext
|
|
6
7
|
} from "./provider.js";
|
|
7
|
-
export { GelatoSmartWalletConnectButton } from "./components/connect.js";
|
|
8
8
|
|
|
9
9
|
export const dynamic = (appId: string, options?: wallet.DynamicOptions) => {
|
|
10
10
|
return {
|
|
11
|
-
type: "dynamic" as wallet.ProviderType,
|
|
12
11
|
appId,
|
|
13
12
|
customChains: {
|
|
14
13
|
evmNetworks: options?.evmNetworks
|
|
15
|
-
}
|
|
14
|
+
},
|
|
15
|
+
type: "dynamic" as wallet.ProviderType
|
|
16
16
|
};
|
|
17
17
|
};
|
|
18
18
|
|
|
19
19
|
export const privy = (appId: string, options?: wallet.PrivyOptions) => {
|
|
20
20
|
return {
|
|
21
|
-
type: "privy" as wallet.ProviderType,
|
|
22
21
|
appId,
|
|
23
22
|
clientId: options?.clientId,
|
|
24
23
|
customChains: {
|
|
25
24
|
supportedChains: options?.supportedChains
|
|
26
|
-
}
|
|
25
|
+
},
|
|
26
|
+
type: "privy" as wallet.ProviderType
|
|
27
27
|
};
|
|
28
28
|
};
|
|
29
29
|
|
package/src/provider.tsx
CHANGED
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
} from "@gelatonetwork/smartwallet-react-privy";
|
|
9
9
|
import type { wallet } from "@gelatonetwork/smartwallet-react-types";
|
|
10
10
|
import type React from "react";
|
|
11
|
-
import { type ReactNode,
|
|
11
|
+
import { createContext, type ReactNode, useContext } from "react";
|
|
12
12
|
|
|
13
13
|
import { isDynamic } from "./utils/index.js";
|
|
14
14
|
|