@gelatonetwork/smartwallet-react-sdk 0.0.20 → 0.0.21
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 +18 -0
- package/_dist/index.d.ts +8 -2
- package/_dist/index.d.ts.map +1 -1
- package/_dist/index.js +10 -4
- package/_dist/index.js.map +1 -1
- package/_dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +9 -8
- package/src/index.ts +10 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
# @gelatonetwork/smartwallet-react-sdk
|
|
2
2
|
|
|
3
|
+
## 0.0.21
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 4c94ad5: feat: custom network definition for waas providers
|
|
8
|
+
- Updated dependencies [4c94ad5]
|
|
9
|
+
- Updated dependencies [1320278]
|
|
10
|
+
- Updated dependencies [b13bb97]
|
|
11
|
+
- Updated dependencies [41fb5f7]
|
|
12
|
+
- Updated dependencies [76be45b]
|
|
13
|
+
- Updated dependencies [0213d77]
|
|
14
|
+
- Updated dependencies [0213d77]
|
|
15
|
+
- Updated dependencies [bbc4a33]
|
|
16
|
+
- @gelatonetwork/smartwallet-react-dynamic@0.0.21
|
|
17
|
+
- @gelatonetwork/smartwallet-react-privy@0.0.21
|
|
18
|
+
- @gelatonetwork/smartwallet-react-types@0.0.21
|
|
19
|
+
- @gelatonetwork/smartwallet@0.0.21
|
|
20
|
+
|
|
3
21
|
## 0.0.20
|
|
4
22
|
|
|
5
23
|
### Patch Changes
|
package/_dist/index.d.ts
CHANGED
|
@@ -1,13 +1,19 @@
|
|
|
1
1
|
import type { wallet } from "@gelatonetwork/smartwallet-react-types";
|
|
2
2
|
export { GelatoSmartWalletContextProvider, useGelatoSmartWalletProviderContext } from "./provider.js";
|
|
3
3
|
export { GelatoSmartWalletConnectButton } from "./components/connect.js";
|
|
4
|
-
export declare const dynamic: (appId: string) => {
|
|
4
|
+
export declare const dynamic: (appId: string, options?: wallet.DynamicOptions) => {
|
|
5
5
|
type: wallet.ProviderType;
|
|
6
6
|
appId: string;
|
|
7
|
+
customChains: {
|
|
8
|
+
evmNetworks: import("@dynamic-labs/types").GenericNetwork[] | ((networks: import("@dynamic-labs/types").GenericNetwork[]) => import("@dynamic-labs/types").GenericNetwork[]) | undefined;
|
|
9
|
+
};
|
|
7
10
|
};
|
|
8
|
-
export declare const privy: (appId: string) => {
|
|
11
|
+
export declare const privy: (appId: string, options?: wallet.PrivyOptions) => {
|
|
9
12
|
type: wallet.ProviderType;
|
|
10
13
|
appId: string;
|
|
14
|
+
customChains: {
|
|
15
|
+
supportedChains: import("viem").Chain[] | undefined;
|
|
16
|
+
};
|
|
11
17
|
};
|
|
12
18
|
export declare const wagmi: (config: wallet.WagmiCreateConfigParameters) => {
|
|
13
19
|
config: wallet.WagmiCreateConfigParameters;
|
package/_dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,wCAAwC,CAAC;AAErE,OAAO,EACL,gCAAgC,EAChC,mCAAmC,EACpC,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,8BAA8B,EAAE,MAAM,yBAAyB,CAAC;AAEzE,eAAO,MAAM,OAAO,GAAI,OAAO,MAAM;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,wCAAwC,CAAC;AAErE,OAAO,EACL,gCAAgC,EAChC,mCAAmC,EACpC,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,8BAA8B,EAAE,MAAM,yBAAyB,CAAC;AAEzE,eAAO,MAAM,OAAO,GAAI,OAAO,MAAM,EAAE,UAAU,MAAM,CAAC,cAAc;UAE/C,MAAM,CAAC,YAAY;;;;;CAMzC,CAAC;AAEF,eAAO,MAAM,KAAK,GAAI,OAAO,MAAM,EAAE,UAAU,MAAM,CAAC,YAAY;UAE7C,MAAM,CAAC,YAAY;;;;;CAMvC,CAAC;AAEF,eAAO,MAAM,KAAK,GAAI,QAAQ,MAAM,CAAC,2BAA2B;;CAI/D,CAAC"}
|
package/_dist/index.js
CHANGED
|
@@ -1,15 +1,21 @@
|
|
|
1
1
|
export { GelatoSmartWalletContextProvider, useGelatoSmartWalletProviderContext } from "./provider.js";
|
|
2
2
|
export { GelatoSmartWalletConnectButton } from "./components/connect.js";
|
|
3
|
-
export const dynamic = (appId) => {
|
|
3
|
+
export const dynamic = (appId, options) => {
|
|
4
4
|
return {
|
|
5
5
|
type: "dynamic",
|
|
6
|
-
appId
|
|
6
|
+
appId,
|
|
7
|
+
customChains: {
|
|
8
|
+
evmNetworks: options?.evmNetworks
|
|
9
|
+
}
|
|
7
10
|
};
|
|
8
11
|
};
|
|
9
|
-
export const privy = (appId) => {
|
|
12
|
+
export const privy = (appId, options) => {
|
|
10
13
|
return {
|
|
11
14
|
type: "privy",
|
|
12
|
-
appId
|
|
15
|
+
appId,
|
|
16
|
+
customChains: {
|
|
17
|
+
supportedChains: options?.supportedChains
|
|
18
|
+
}
|
|
13
19
|
};
|
|
14
20
|
};
|
|
15
21
|
export const wagmi = (config) => {
|
package/_dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,gCAAgC,EAChC,mCAAmC,EACpC,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,8BAA8B,EAAE,MAAM,yBAAyB,CAAC;AAEzE,MAAM,CAAC,MAAM,OAAO,GAAG,CAAC,KAAa,EAAE,EAAE;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,gCAAgC,EAChC,mCAAmC,EACpC,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,8BAA8B,EAAE,MAAM,yBAAyB,CAAC;AAEzE,MAAM,CAAC,MAAM,OAAO,GAAG,CAAC,KAAa,EAAE,OAA+B,EAAE,EAAE;IACxE,OAAO;QACL,IAAI,EAAE,SAAgC;QACtC,KAAK;QACL,YAAY,EAAE;YACZ,WAAW,EAAE,OAAO,EAAE,WAAW;SAClC;KACF,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,KAAK,GAAG,CAAC,KAAa,EAAE,OAA6B,EAAE,EAAE;IACpE,OAAO;QACL,IAAI,EAAE,OAA8B;QACpC,KAAK;QACL,YAAY,EAAE;YACZ,eAAe,EAAE,OAAO,EAAE,eAAe;SAC1C;KACF,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,KAAK,GAAG,CAAC,MAA0C,EAAE,EAAE;IAClE,OAAO;QACL,MAAM;KACP,CAAC;AACJ,CAAC,CAAC"}
|