Skip to content

Commit cb2a7e9

Browse files
[v4] Alias embeddedWallet to inAppWallet (#2745)
1 parent 07f98a5 commit cb2a7e9

File tree

5 files changed

+33
-1
lines changed

5 files changed

+33
-1
lines changed

.changeset/good-boxes-repair.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
"@thirdweb-dev/react-native": patch
3+
"@thirdweb-dev/wallets": patch
4+
"@thirdweb-dev/react": patch
5+
---
6+
7+
Alias embedded wallet to in-app wallet

legacy_packages/react-native/src/evm/index.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,9 @@ export { smartWallet } from "./wallets/wallets/smart-wallet";
1616
export { localWallet } from "./wallets/wallets/local-wallet";
1717
export { LocalWallet } from "./wallets/wallets/LocalWallet";
1818
export { EmbeddedWallet } from "./wallets/wallets/embedded/EmbeddedWallet";
19+
export { EmbeddedWallet as InAppWallet } from "./wallets/wallets/embedded/EmbeddedWallet";
1920
export { embeddedWallet } from "./wallets/wallets/embedded/embedded-wallet";
21+
export { embeddedWallet as inAppWallet } from "./wallets/wallets/embedded/embedded-wallet";
2022
export * from "./wallets/wallets/wallet-connect/WalletConnectBase";
2123
export { WalletConnect } from "./wallets/wallets/wallet-connect/WalletConnect";
2224
export { walletConnect } from "./wallets/wallets/wallet-connect/wallet-connect";
@@ -27,6 +29,7 @@ export { useMetaMaskWallet } from "./wallets/hooks/useMetaMaskWallet";
2729
export { useRainbowWallet } from "./wallets/hooks/useRainbowWallet";
2830
export { useTrustWallet } from "./wallets/hooks/useTrustWallet";
2931
export { useEmbeddedWallet } from "./wallets/hooks/useEmbeddedWallet";
32+
export { useEmbeddedWallet as useInAppWallet } from "./wallets/hooks/useEmbeddedWallet";
3033
export { useSmartWallet } from "./wallets/hooks/useSmartWallet";
3134
export { useEmbeddedWalletSendVerificationEmail } from "./wallets/hooks/useEmbeddedWalletSendVerificationEmail";
3235

legacy_packages/react/src/evm/index.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,12 @@ export {
6161
useEmbeddedWalletUserEmail,
6262
} from "./hooks/wallets/useEmbeddedWallet";
6363
export { useEmbeddedWalletSendVerificationEmail } from "./hooks/useEmbeddedWalletSendVerificationEmail";
64+
export {
65+
useEmbeddedWallet as useInAppWallet,
66+
useEmbeddedWalletUserEmail as useInAppWalletUserEmail,
67+
} from "./hooks/wallets/useEmbeddedWallet";
68+
export { useEmbeddedWalletSendVerificationEmail as useInAppWalletSendVerificationEmail } from "./hooks/useEmbeddedWalletSendVerificationEmail";
69+
6470

6571
export {
6672
usePaperWalletUserEmail,

legacy_packages/react/src/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,9 @@ export {
1616
type CoinbaseWalletConfigOptions,
1717
} from "./wallet/wallets/coinbase/coinbaseWallet";
1818
export { embeddedWallet } from "./wallet/wallets/embeddedWallet/embeddedWallet";
19+
export { embeddedWallet as inAppWallet } from "./wallet/wallets/embeddedWallet/embeddedWallet";
1920
export type { EmbeddedWalletConfigOptions } from "./wallet/wallets/embeddedWallet/types";
21+
export type { EmbeddedWalletConfigOptions as InAppWalletConfigOptions } from "./wallet/wallets/embeddedWallet/types";
2022

2123
export {
2224
frameWallet,

legacy_packages/wallets/src/evm/index.ts

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,21 @@ export { AbstractClientWallet } from "./wallets/base";
2929
export type { WalletOptions } from "./wallets/base";
3030
export { type BloctoOptions, BloctoWallet } from "./wallets/blocto";
3131
export * from "./wallets/coinbase-wallet";
32-
export * from "./wallets/embedded-wallet";
32+
export {
33+
EmbeddedWallet,
34+
EmbeddedWallet as InAppWallet,
35+
type AuthParams,
36+
type AuthResult,
37+
type EmbeddedWalletAdditionalOptions,
38+
type EmbeddedWalletAdditionalOptions as InAppWalletWalletAdditionalOptions,
39+
type EmbeddedWalletConnectionArgs,
40+
type EmbeddedWalletConnectionArgs as InAppWalletConnectionArgs,
41+
type EmbeddedWalletOauthStrategy,
42+
type EmbeddedWalletOauthStrategy as InAppWalletOauthStrategy,
43+
type EmbeddedWalletOptions,
44+
type EmbeddedWalletOptions as InAppWalletWalletOptions,
45+
supportedSmsCountries
46+
} from "./wallets/embedded-wallet";
3347
export * from "./wallets/ethers";
3448
export * from "./wallets/frame";
3549
export * from "./wallets/imtoken";

0 commit comments

Comments
 (0)