@privy-io/react-auth 3.4.1 → 3.5.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/cjs/EmbeddedWalletConnectingScreen-D_YsihzO.js +27 -0
- package/dist/cjs/SignRequestScreen-MGUrxay9.js +1 -0
- package/dist/cjs/abstract-smart-wallets.js +1 -1
- package/dist/cjs/events-context-Dn0fJZ2h.js +1 -0
- package/dist/cjs/extended-chains.js +1 -1
- package/dist/cjs/farcaster.js +1 -1
- package/dist/cjs/frame-B2orQ_lK.js +1 -0
- package/dist/cjs/index.js +7 -7
- package/dist/cjs/internal-context-CeWKmK5u.js +1 -0
- package/dist/cjs/internal.js +1 -0
- package/dist/cjs/smart-wallets-5q-XiLac.js +1 -0
- package/dist/cjs/smart-wallets.js +1 -1
- package/dist/cjs/solana.js +1 -1
- package/dist/cjs/ui.js +2 -2
- package/dist/cjs/use-export-wallet-C7R1A29C.js +2 -0
- package/dist/cjs/use-sign-with-user-signer-BtJVKMQr.js +1 -0
- package/dist/cjs/useActiveWallet-E94x91YD.js +1 -0
- package/dist/cjs/usePrivy-BEZb4Uky.js +1 -0
- package/dist/dts/events-context-DB3Pn5Hg.d.mts +328 -0
- package/dist/dts/events-context-DB3Pn5Hg.d.ts +328 -0
- package/dist/dts/extended-chains.d.mts +24 -2
- package/dist/dts/extended-chains.d.ts +24 -2
- package/dist/dts/farcaster.d.mts +1 -1
- package/dist/dts/farcaster.d.ts +1 -1
- package/dist/dts/index.d.mts +20 -332
- package/dist/dts/index.d.ts +20 -332
- package/dist/dts/internal.d.mts +44 -0
- package/dist/dts/internal.d.ts +44 -0
- package/dist/dts/smart-wallets.d.mts +1 -1
- package/dist/dts/smart-wallets.d.ts +1 -1
- package/dist/dts/solana.d.mts +31 -7
- package/dist/dts/solana.d.ts +31 -7
- package/dist/dts/{types-BF33BYgd.d.mts → types-C4KyGxEF.d.mts} +3 -3
- package/dist/dts/{types-BF33BYgd.d.ts → types-C4KyGxEF.d.ts} +3 -3
- package/dist/dts/ui.d.mts +1 -1
- package/dist/dts/ui.d.ts +1 -1
- package/dist/esm/EmbeddedWalletConnectingScreen-ilL_GaJO.mjs +25 -0
- package/dist/esm/SignRequestScreen-B3UhThlp.mjs +1 -0
- package/dist/esm/abstract-smart-wallets.mjs +1 -1
- package/dist/esm/events-context-CB7CF-OC.mjs +1 -0
- package/dist/esm/extended-chains.mjs +1 -1
- package/dist/esm/farcaster.mjs +1 -1
- package/dist/esm/frame-Dj70FEYB.mjs +1 -0
- package/dist/esm/index.mjs +6 -6
- package/dist/esm/internal-context-eGSwROSk.mjs +1 -0
- package/dist/esm/internal.mjs +1 -0
- package/dist/esm/smart-wallets-DINPJbZr.mjs +1 -0
- package/dist/esm/smart-wallets.mjs +1 -1
- package/dist/esm/solana.mjs +1 -1
- package/dist/esm/ui.mjs +2 -2
- package/dist/esm/use-export-wallet-CED1-6Km.mjs +1 -0
- package/dist/esm/use-sign-with-user-signer-DaTvrd5T.mjs +1 -0
- package/dist/esm/useActiveWallet-2NxrDpZU.mjs +1 -0
- package/dist/esm/usePrivy-DhsfOIjx.mjs +1 -0
- package/package.json +21 -7
- package/dist/cjs/SignRequestScreen-cAAtS6nl.js +0 -27
- package/dist/cjs/frame-8JZCzmCf.js +0 -1
- package/dist/cjs/internal-context-DNWjSiYq.js +0 -1
- package/dist/cjs/paths-B00ZrFQm.js +0 -1
- package/dist/cjs/privy-context-NMR-GjnL.js +0 -1
- package/dist/cjs/smart-wallets-65yy6DGK.js +0 -1
- package/dist/cjs/use-export-wallet-9ypqLaaB.js +0 -2
- package/dist/cjs/use-sign-with-user-signer-Q0_LRVtz.js +0 -1
- package/dist/cjs/useActiveWallet-CtNcsjJH.js +0 -1
- package/dist/cjs/usePrivy-dGz-b0SX.js +0 -1
- package/dist/esm/SignRequestScreen-cNZ56bAg.mjs +0 -25
- package/dist/esm/frame-Dh-xhHMG.mjs +0 -1
- package/dist/esm/internal-context-CfE_S5P-.mjs +0 -1
- package/dist/esm/paths-B891YjWw.mjs +0 -1
- package/dist/esm/privy-context-DDSW3jEM.mjs +0 -1
- package/dist/esm/smart-wallets-_lFo8N6W.mjs +0 -1
- package/dist/esm/use-export-wallet-E2KvvjYq.mjs +0 -1
- package/dist/esm/use-sign-with-user-signer-DVcbjNtZ.mjs +0 -1
- package/dist/esm/useActiveWallet-BLu2tB4S.mjs +0 -1
- package/dist/esm/usePrivy-DmWciddF.mjs +0 -1
package/dist/dts/solana.d.ts
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export {
|
|
1
|
+
import { g as SessionSignerInput, W as Wallet, f as SignMessageModalUIOptions, S as SolanaChain, h as SolanaStandardWallet, C as CreateWalletOptions, e as SendTransactionModalUIOptions, i as SolanaFundingConfig } from './types-C4KyGxEF.js';
|
|
2
|
+
export { j as SolanaAdapterConnector, t as toSolanaWalletConnectors } from './types-C4KyGxEF.js';
|
|
3
3
|
import { SolanaSignAndSendTransactionFeature, SolanaSignTransactionFeature, SolanaSignMessageFeature } from '@solana/wallet-standard-features';
|
|
4
4
|
import { WalletAccount, WalletIcon, WalletVersion } from '@wallet-standard/base';
|
|
5
5
|
import { StandardConnectFeature, StandardDisconnectFeature, StandardEventsFeature } from '@wallet-standard/features';
|
|
6
6
|
import EventEmitter from 'eventemitter3';
|
|
7
7
|
import { SolanaSignAndSendTransactionOptions, SolanaSignTransactionOptions, ConnectedStandardSolanaWallet } from '@privy-io/js-sdk-core';
|
|
8
8
|
export { ConnectedStandardSolanaWallet } from '@privy-io/js-sdk-core';
|
|
9
|
+
import { P as PrivyEvents } from './events-context-DB3Pn5Hg.js';
|
|
9
10
|
import '@coinbase/wallet-sdk';
|
|
10
11
|
import '@simplewebauthn/browser';
|
|
11
12
|
import '@solana/kit';
|
|
@@ -17,8 +18,7 @@ import '@base-org/account';
|
|
|
17
18
|
interface UseImportWalletInterface {
|
|
18
19
|
/**
|
|
19
20
|
* Imports a private key to be used as an embedded wallet for the user
|
|
20
|
-
* This method will error if the user
|
|
21
|
-
* exit in the middle of the flow.
|
|
21
|
+
* This method will error if the user exits in the middle of the flow.
|
|
22
22
|
*
|
|
23
23
|
* @param o Input object
|
|
24
24
|
* @param o.privateKey The base58 private key of the solana wallet to import
|
|
@@ -288,11 +288,35 @@ type UseSignAndSendTransaction = {
|
|
|
288
288
|
};
|
|
289
289
|
declare function useSignAndSendTransaction(): UseSignAndSendTransaction;
|
|
290
290
|
|
|
291
|
-
|
|
291
|
+
/**
|
|
292
|
+
* Method to fund a user's Solana wallet via Privy's funding feature by inputting a valid wallet address.
|
|
293
|
+
* You can access the fields and methods documented here via the {@link useFundWallet} hook.
|
|
294
|
+
*/
|
|
295
|
+
interface UseFundWalletInterface {
|
|
296
|
+
/**
|
|
297
|
+
* Prompt the user to go through the funding flow and for a specified Solana wallet.
|
|
298
|
+
*
|
|
299
|
+
* This will open the modal with a prompt for the user to select a funding method (if multiple are enabled).
|
|
300
|
+
*
|
|
301
|
+
* Once the user continues to the funding flow, Privy will display the funding status screen, and wait
|
|
302
|
+
* for the transaction to complete.
|
|
303
|
+
*
|
|
304
|
+
* Note: Even after a successful funding, funds can take a few minutes to arrive in the user's wallet.
|
|
305
|
+
*
|
|
306
|
+
* @param address The wallet address to fund
|
|
307
|
+
* @param options {@link SolanaFundingConfig} Funding configuration to specify chain and funding amount
|
|
308
|
+
*/
|
|
292
309
|
fundWallet: ({ address, options, }: {
|
|
293
310
|
address: string;
|
|
294
311
|
options?: SolanaFundingConfig;
|
|
295
312
|
}) => Promise<void>;
|
|
296
|
-
}
|
|
313
|
+
}
|
|
314
|
+
/**
|
|
315
|
+
* Hook to fund a Solana wallet via Privy's fiat on-ramp integration given the wallet address.
|
|
316
|
+
*
|
|
317
|
+
* @param callbacks.onUserExited {@link PrivyEvents} Callback that will execute when a funding flow is exited. This fires when a user closes a funding flow modal, for any reason.
|
|
318
|
+
* @returns fundWallet - function to on-ramp funds to any given Solana wallet
|
|
319
|
+
*/
|
|
320
|
+
declare function useFundWallet(callbacks?: PrivyEvents['fundSolanaWallet']): UseFundWalletInterface;
|
|
297
321
|
|
|
298
|
-
export { PrivyStandardWallet, SolanaFundingConfig, SolanaStandardWallet, type UseImportWalletInterface, type UseSignAndSendTransaction, type UseSignMessage, type UseSignTransaction, type UseSolanaStandardWalletsInterface as UseStandardWallets, type UseWallets, useCreateWallet, useExportWallet, useFundWallet, useImportWallet, useSignAndSendTransaction, useSignMessage, useSignTransaction, useSolanaFundingPlugin, useSolanaLedgerPlugin, useSolanaStandardWallets as useStandardWallets, useWallets };
|
|
322
|
+
export { PrivyStandardWallet, SolanaFundingConfig, SolanaStandardWallet, type UseFundWalletInterface, type UseImportWalletInterface, type UseSignAndSendTransaction, type UseSignMessage, type UseSignTransaction, type UseSolanaStandardWalletsInterface as UseStandardWallets, type UseWallets, useCreateWallet, useExportWallet, useFundWallet, useImportWallet, useSignAndSendTransaction, useSignMessage, useSignTransaction, useSolanaFundingPlugin, useSolanaLedgerPlugin, useSolanaStandardWallets as useStandardWallets, useWallets };
|
|
@@ -274,7 +274,7 @@ declare class SolanaWalletConnector extends WalletConnector {
|
|
|
274
274
|
/**
|
|
275
275
|
* @hidden
|
|
276
276
|
*/
|
|
277
|
-
disconnect: () => void
|
|
277
|
+
disconnect: () => Promise<void>;
|
|
278
278
|
/**
|
|
279
279
|
* @hidden
|
|
280
280
|
*/
|
|
@@ -1082,7 +1082,7 @@ type PriceDisplayOptions = {
|
|
|
1082
1082
|
};
|
|
1083
1083
|
type WalletListEntry = 'metamask' | 'coinbase_wallet' | 'base_account' | 'rainbow' | 'phantom' | 'zerion' | 'cryptocom' | 'uniswap' | 'okx_wallet' | 'universal_profile'
|
|
1084
1084
|
/** @deprecated Use `detected_ethereum_wallets` or `detected_solana_wallets` instead */
|
|
1085
|
-
| 'detected_wallets' | 'detected_solana_wallets' | 'detected_ethereum_wallets' | 'wallet_connect' | 'wallet_connect_qr' | 'rabby_wallet' | 'bybit_wallet' | 'ronin_wallet' | 'haha_wallet' | 'safe' | 'solflare' | 'backpack' | 'binance' | 'binanceus' | 'bitget_wallet';
|
|
1085
|
+
| 'detected_wallets' | 'detected_solana_wallets' | 'detected_ethereum_wallets' | 'wallet_connect' | 'wallet_connect_qr' | 'wallet_connect_qr_solana' | 'rabby_wallet' | 'bybit_wallet' | 'ronin_wallet' | 'haha_wallet' | 'safe' | 'solflare' | 'backpack' | 'binance' | 'binanceus' | 'bitget_wallet';
|
|
1086
1086
|
type NonEmptyArray<T> = [T, ...T[]];
|
|
1087
1087
|
type LoginMethodOrderOption = 'email' | 'sms' | WalletListEntry | OAuthProviderType | `privy:${string}` | 'farcaster' | 'telegram';
|
|
1088
1088
|
type ExternalWalletsConfig = {
|
|
@@ -2311,4 +2311,4 @@ type EthereumRpcResponseType = eth_signTransactionResponse | eth_populateTransac
|
|
|
2311
2311
|
type SolanaRpcRequestType = solana_signMessage;
|
|
2312
2312
|
type SolanaRpcResponseType = solana_signMessageResponse;
|
|
2313
2313
|
|
|
2314
|
-
export { type
|
|
2314
|
+
export { type SiwsMessageType as $, type WalletListEntry as A, type BaseConnectedEthereumWallet as B, type CreateWalletOptions as C, type AppConfig as D, type EthereumRpcRequestType as E, type FundingMethod as F, type BaseConnectedWallet as G, type HDWalletWithMetadata as H, type ConnectWalletModalOptions as I, type LoginModalOptions as J, type SetWalletRecoveryOptions as K, type LoginMethod as L, type MfaMethod as M, type SignTypedDataParams as N, type OAuthTokens as O, PrivyErrorCode as P, type UnsignedTransactionRequest as Q, type RuntimeLoginOverridableOptions as R, type SolanaChain as S, type FundWalletConfig as T, type User as U, type ConnectedWallet as V, type Wallet as W, type CrossAppProviderDetails as X, type MoonpaySignRequest as Y, type MoonpaySignResponse as Z, type SmartWalletConfig as _, type LinkedAccountWithMetadata as a, type ExternalWalletMetadata as a0, type TelegramAuthResult as a1, type TelegramWebAppData as a2, type OAuthUserInfo as a3, type OAuthFlowState as a4, type LoginWithCode as a5, type OtpFlowState as a6, type PasskeyFlowState as a7, type SiweFlowState as a8, type BaseAccountSdkType as a9, type GoogleOAuthWithMetadata as aA, type TwitterOAuthWithMetadata as aB, type DiscordOAuthWithMetadata as aC, type GithubOAuthWithMetadata as aD, type TiktokOAuthWithMetadata as aE, type LineOAuthWithMetadata as aF, type LinkedInOAuthWithMetadata as aG, type AppleOAuthWithMetadata as aH, type FarcasterWithMetadata as aI, type TelegramWithMetadata as aJ, type CrossAppAccountWithMetadata as aK, type PasskeyWithMetadata as aL, type Email as aM, type Phone as aN, type TransactionUIOptions as aO, type ContractUIOptions as aP, type NativeFundingConfig as aQ, type PriceDisplayOptions as aR, type Farcaster as aS, type Passkey as aT, type LoginMethodOrderOption as aU, type SiwsFlowState as aV, type UnsignedTransactionRequestWithChainId as aa, type BaseConnectedWalletType as ab, type TelegramAuthFlowState as ac, type TypedMessage as ad, type MessageTypes as ae, type SmartWallet as af, type MoonpayCurrencyCode as ag, type MoonpayPaymentMethod as ah, type Quantity as ai, type TransactionLog as aj, type TransactionReceipt as ak, type NonEmptyArray as al, type EmailWithMetadata as am, type PhoneWithMetadata as an, type WalletWithMetadata as ao, type Google as ap, type Twitter as aq, type Discord as ar, type Github as as, type LinkedIn as at, type Apple as au, type Tiktok as av, type Line as aw, type Telegram as ax, type CrossAppAccount as ay, type LinkedAccountType as az, type BaseConnectedSolanaWallet as b, type UserRecoveryMethod as c, type LoginToMiniApp as d, type SendTransactionModalUIOptions as e, type SignMessageModalUIOptions as f, type SessionSignerInput as g, type SolanaStandardWallet as h, type SolanaFundingConfig as i, SolanaWalletConnector as j, type MfaSubmitArgs as k, type SolanaRpcRequestType as l, type EthereumRpcResponseType as m, type SolanaRpcResponseType as n, type PrivyFarcasterSignerInitResponse as o, type EIP1193Provider as p, type EntropyIdVerifier as q, type RequestArguments as r, WalletConnector as s, toSolanaWalletConnectors as t, PrivyProxyProvider as u, type WalletClientType as v, type ConnectedWalletMetadata as w, type PrivyClientConfig as x, type ConnectorType as y, type SetBaseAccountSdkType as z };
|
|
@@ -274,7 +274,7 @@ declare class SolanaWalletConnector extends WalletConnector {
|
|
|
274
274
|
/**
|
|
275
275
|
* @hidden
|
|
276
276
|
*/
|
|
277
|
-
disconnect: () => void
|
|
277
|
+
disconnect: () => Promise<void>;
|
|
278
278
|
/**
|
|
279
279
|
* @hidden
|
|
280
280
|
*/
|
|
@@ -1082,7 +1082,7 @@ type PriceDisplayOptions = {
|
|
|
1082
1082
|
};
|
|
1083
1083
|
type WalletListEntry = 'metamask' | 'coinbase_wallet' | 'base_account' | 'rainbow' | 'phantom' | 'zerion' | 'cryptocom' | 'uniswap' | 'okx_wallet' | 'universal_profile'
|
|
1084
1084
|
/** @deprecated Use `detected_ethereum_wallets` or `detected_solana_wallets` instead */
|
|
1085
|
-
| 'detected_wallets' | 'detected_solana_wallets' | 'detected_ethereum_wallets' | 'wallet_connect' | 'wallet_connect_qr' | 'rabby_wallet' | 'bybit_wallet' | 'ronin_wallet' | 'haha_wallet' | 'safe' | 'solflare' | 'backpack' | 'binance' | 'binanceus' | 'bitget_wallet';
|
|
1085
|
+
| 'detected_wallets' | 'detected_solana_wallets' | 'detected_ethereum_wallets' | 'wallet_connect' | 'wallet_connect_qr' | 'wallet_connect_qr_solana' | 'rabby_wallet' | 'bybit_wallet' | 'ronin_wallet' | 'haha_wallet' | 'safe' | 'solflare' | 'backpack' | 'binance' | 'binanceus' | 'bitget_wallet';
|
|
1086
1086
|
type NonEmptyArray<T> = [T, ...T[]];
|
|
1087
1087
|
type LoginMethodOrderOption = 'email' | 'sms' | WalletListEntry | OAuthProviderType | `privy:${string}` | 'farcaster' | 'telegram';
|
|
1088
1088
|
type ExternalWalletsConfig = {
|
|
@@ -2311,4 +2311,4 @@ type EthereumRpcResponseType = eth_signTransactionResponse | eth_populateTransac
|
|
|
2311
2311
|
type SolanaRpcRequestType = solana_signMessage;
|
|
2312
2312
|
type SolanaRpcResponseType = solana_signMessageResponse;
|
|
2313
2313
|
|
|
2314
|
-
export { type
|
|
2314
|
+
export { type SiwsMessageType as $, type WalletListEntry as A, type BaseConnectedEthereumWallet as B, type CreateWalletOptions as C, type AppConfig as D, type EthereumRpcRequestType as E, type FundingMethod as F, type BaseConnectedWallet as G, type HDWalletWithMetadata as H, type ConnectWalletModalOptions as I, type LoginModalOptions as J, type SetWalletRecoveryOptions as K, type LoginMethod as L, type MfaMethod as M, type SignTypedDataParams as N, type OAuthTokens as O, PrivyErrorCode as P, type UnsignedTransactionRequest as Q, type RuntimeLoginOverridableOptions as R, type SolanaChain as S, type FundWalletConfig as T, type User as U, type ConnectedWallet as V, type Wallet as W, type CrossAppProviderDetails as X, type MoonpaySignRequest as Y, type MoonpaySignResponse as Z, type SmartWalletConfig as _, type LinkedAccountWithMetadata as a, type ExternalWalletMetadata as a0, type TelegramAuthResult as a1, type TelegramWebAppData as a2, type OAuthUserInfo as a3, type OAuthFlowState as a4, type LoginWithCode as a5, type OtpFlowState as a6, type PasskeyFlowState as a7, type SiweFlowState as a8, type BaseAccountSdkType as a9, type GoogleOAuthWithMetadata as aA, type TwitterOAuthWithMetadata as aB, type DiscordOAuthWithMetadata as aC, type GithubOAuthWithMetadata as aD, type TiktokOAuthWithMetadata as aE, type LineOAuthWithMetadata as aF, type LinkedInOAuthWithMetadata as aG, type AppleOAuthWithMetadata as aH, type FarcasterWithMetadata as aI, type TelegramWithMetadata as aJ, type CrossAppAccountWithMetadata as aK, type PasskeyWithMetadata as aL, type Email as aM, type Phone as aN, type TransactionUIOptions as aO, type ContractUIOptions as aP, type NativeFundingConfig as aQ, type PriceDisplayOptions as aR, type Farcaster as aS, type Passkey as aT, type LoginMethodOrderOption as aU, type SiwsFlowState as aV, type UnsignedTransactionRequestWithChainId as aa, type BaseConnectedWalletType as ab, type TelegramAuthFlowState as ac, type TypedMessage as ad, type MessageTypes as ae, type SmartWallet as af, type MoonpayCurrencyCode as ag, type MoonpayPaymentMethod as ah, type Quantity as ai, type TransactionLog as aj, type TransactionReceipt as ak, type NonEmptyArray as al, type EmailWithMetadata as am, type PhoneWithMetadata as an, type WalletWithMetadata as ao, type Google as ap, type Twitter as aq, type Discord as ar, type Github as as, type LinkedIn as at, type Apple as au, type Tiktok as av, type Line as aw, type Telegram as ax, type CrossAppAccount as ay, type LinkedAccountType as az, type BaseConnectedSolanaWallet as b, type UserRecoveryMethod as c, type LoginToMiniApp as d, type SendTransactionModalUIOptions as e, type SignMessageModalUIOptions as f, type SessionSignerInput as g, type SolanaStandardWallet as h, type SolanaFundingConfig as i, SolanaWalletConnector as j, type MfaSubmitArgs as k, type SolanaRpcRequestType as l, type EthereumRpcResponseType as m, type SolanaRpcResponseType as n, type PrivyFarcasterSignerInitResponse as o, type EIP1193Provider as p, type EntropyIdVerifier as q, type RequestArguments as r, WalletConnector as s, toSolanaWalletConnectors as t, PrivyProxyProvider as u, type WalletClientType as v, type ConnectedWalletMetadata as w, type PrivyClientConfig as x, type ConnectorType as y, type SetBaseAccountSdkType as z };
|
package/dist/dts/ui.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import { R as RuntimeLoginOverridableOptions, S as SolanaChain } from './types-
|
|
2
|
+
import { R as RuntimeLoginOverridableOptions, S as SolanaChain } from './types-C4KyGxEF.js';
|
|
3
3
|
import { Hex } from 'viem';
|
|
4
4
|
import { Chain } from '@privy-io/js-sdk-core';
|
|
5
5
|
import '@coinbase/wallet-sdk';
|
package/dist/dts/ui.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import { R as RuntimeLoginOverridableOptions, S as SolanaChain } from './types-
|
|
2
|
+
import { R as RuntimeLoginOverridableOptions, S as SolanaChain } from './types-C4KyGxEF.js';
|
|
3
3
|
import { Hex } from 'viem';
|
|
4
4
|
import { Chain } from '@privy-io/js-sdk-core';
|
|
5
5
|
import '@coinbase/wallet-sdk';
|