@privy-io/react-auth 1.84.0 → 1.85.0
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/{chunk-BWEW65KO.js → chunk-3AGMJGHJ.js} +1 -1
- package/dist/chunk-LEABMTNM.js +118 -0
- package/dist/chunk-QTSNS7VF.js +3281 -0
- package/dist/chunk-XKAIXCX7.js +1 -0
- package/dist/esm/{chunk-BWEW65KO.js → chunk-3AGMJGHJ.js} +1 -1
- package/dist/esm/chunk-LEABMTNM.js +118 -0
- package/dist/esm/chunk-QTSNS7VF.js +3281 -0
- package/dist/esm/chunk-XKAIXCX7.js +1 -0
- package/dist/esm/index.js +1 -1
- package/dist/esm/smart-wallets.js +1 -1
- package/dist/esm/solana.js +1 -1
- package/dist/esm/ui.js +1 -1
- package/dist/index.d.ts +56 -6
- package/dist/index.js +1 -1
- package/dist/smart-wallets.js +1 -1
- package/dist/solana.d.ts +41 -11
- package/dist/solana.js +1 -1
- package/dist/{types-cbc2ff3a.d.ts → types-fcce0fc5.d.ts} +34 -3
- package/dist/ui.d.ts +1 -1
- package/dist/ui.js +8 -8
- package/package.json +5 -2
- package/dist/chunk-CMFOSIZZ.js +0 -118
- package/dist/chunk-KD3IIYQS.js +0 -1
- package/dist/chunk-M7S3ORHS.js +0 -3276
- package/dist/esm/chunk-CMFOSIZZ.js +0 -118
- package/dist/esm/chunk-KD3IIYQS.js +0 -1
- package/dist/esm/chunk-M7S3ORHS.js +0 -3276
- package/dist/useSolanaWallets-56085db4.d.ts +0 -37
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { ay as ConnectedSolanaWallet, p as Wallet } from './types-cbc2ff3a.js';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* Hook to create and interact with Solana wallets. This currently only supports an embedded Solana wallet and no
|
|
5
|
-
* external wallets.
|
|
6
|
-
*
|
|
7
|
-
* @returns wallets {ConnectedSolanaWallet[]} an array of connected Solana wallets
|
|
8
|
-
* @returns createWallet {() => Promise<Wallet>} an method to create an embedded Solana wallet.
|
|
9
|
-
*/
|
|
10
|
-
interface UseSolanaWalletsInterface {
|
|
11
|
-
/**
|
|
12
|
-
* An array of the connected Solana wallets for the user. Currently, this will only contain the embedded
|
|
13
|
-
* Solana wallet if the user has created one.
|
|
14
|
-
*/
|
|
15
|
-
wallets: ConnectedSolanaWallet[];
|
|
16
|
-
/**
|
|
17
|
-
* Method to create an embedded Solana wallet for a user. This method will throw an error if the user already has an
|
|
18
|
-
* embedded Solana or Ethereum wallet. Currently, only embedded Solana wallets with automatic recovery are supported.
|
|
19
|
-
* @returns wallet {Wallet} the Solana linked account for the user.
|
|
20
|
-
*/
|
|
21
|
-
createWallet: () => Promise<Wallet>;
|
|
22
|
-
/**
|
|
23
|
-
* Shows the user a Privy modal, from which they can copy their embedded solana wallet's private
|
|
24
|
-
* key for easy export to another wallet client (e.g. Phantom, Backpack). The private key is loaded
|
|
25
|
-
* on an iframe running on a separate domain from your app, meaning your app cannot access it.
|
|
26
|
-
*
|
|
27
|
-
* This method will error if the user is not authenticated or does not have an embedded solana wallet.
|
|
28
|
-
* @param options {@link {address: string}} (optional) wallet address to export the private key for
|
|
29
|
-
* @returns Promise that resolves once the user exits the modal
|
|
30
|
-
*/
|
|
31
|
-
exportWallet: (options?: {
|
|
32
|
-
address: string;
|
|
33
|
-
}) => Promise<void>;
|
|
34
|
-
}
|
|
35
|
-
declare const useSolanaWallets: () => UseSolanaWalletsInterface;
|
|
36
|
-
|
|
37
|
-
export { UseSolanaWalletsInterface as U, useSolanaWallets as u };
|