@privy-io/react-auth 2.13.1 → 2.13.2-beta-20250512232257
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/abstract-smart-wallets.js +1 -1
- package/dist/cjs/index.js +1 -1
- package/dist/cjs/{privy-provider-DFRGMmYo.js → privy-provider-BPVLOYOm.js} +27 -27
- package/dist/cjs/{smart-wallets-C1ixu36_.js → smart-wallets-H2fShVka.js} +1 -1
- package/dist/cjs/smart-wallets.js +1 -1
- package/dist/cjs/solana.js +1 -1
- package/dist/cjs/ui.js +1 -1
- package/dist/cjs/{useActiveWallet-CmsIBqAk.js → useActiveWallet-CRKwHkvW.js} +1 -1
- package/dist/cjs/{useFundWallet-CixvepkC.js → useFundWallet-BlLbOEpS.js} +1 -1
- package/dist/dts/farcaster.d.mts +2 -1
- package/dist/dts/farcaster.d.ts +2 -1
- package/dist/dts/index.d.mts +7 -7
- package/dist/dts/index.d.ts +7 -7
- package/dist/dts/smart-wallets.d.mts +2 -1
- package/dist/dts/smart-wallets.d.ts +2 -1
- package/dist/dts/solana.d.mts +5 -4
- package/dist/dts/solana.d.ts +5 -4
- package/dist/dts/{types-B2cNjPPJ.d.mts → types-DGkRNs0O.d.mts} +182 -4
- package/dist/dts/{types-B2cNjPPJ.d.ts → types-DGkRNs0O.d.ts} +182 -4
- package/dist/dts/ui.d.mts +2 -1
- package/dist/dts/ui.d.ts +2 -1
- package/dist/dts/{useSolanaWallets-CJ5Sl9Y-.d.mts → useSolanaWallets-BmWMwUPQ.d.mts} +1 -1
- package/dist/dts/{useSolanaWallets-CJ5Sl9Y-.d.ts → useSolanaWallets-BmWMwUPQ.d.ts} +1 -1
- package/dist/esm/abstract-smart-wallets.mjs +1 -1
- package/dist/esm/index.mjs +1 -1
- package/dist/esm/{privy-provider-DkDa6JMm.mjs → privy-provider-CEMXidcl.mjs} +27 -27
- package/dist/esm/{smart-wallets-CdsbAPBR.mjs → smart-wallets-2QppO2aL.mjs} +1 -1
- package/dist/esm/smart-wallets.mjs +1 -1
- package/dist/esm/solana.mjs +1 -1
- package/dist/esm/ui.mjs +1 -1
- package/dist/esm/{useActiveWallet-Czp--Wb-.mjs → useActiveWallet-NFl4VS8U.mjs} +1 -1
- package/dist/esm/{useFundWallet-BGNujJ0T.mjs → useFundWallet-Alvkcmu1.mjs} +1 -1
- package/package.json +4 -4
package/dist/dts/index.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
2
|
import react__default, { MouseEvent } from 'react';
|
|
3
|
-
import { m as WalletClientType, d as UserRecoveryMethod, n as PrivyFarcasterSignerInitResponse, o as MfaSubmitArgs, E as EthereumRpcRequestType, p as SolanaRpcRequestType, q as EthereumRpcResponseType, r as SolanaRpcResponseType, s as PrivyClientConfig, u as EIP1193Provider, v as EntropyIdVerifier$1, H as HDWalletWithMetadata, w as RequestArguments, x as WalletTimeoutError, y as WalletConnector, B as BaseConnectedEthereumWallet, z as ConnectedWalletMetadata, A as ConnectorType, D as WalletListEntry, G as
|
|
4
|
-
export { ax as Apple, aI as AppleOAuthWithMetadata, aQ as ContractUIOptions, aA as CrossAppAccount, aL as CrossAppAccountWithMetadata, au as Discord, aE as DiscordOAuthWithMetadata, aN as Email, ap as EmailWithMetadata, aU as Farcaster, aJ as FarcasterWithMetadata, av as Github, aF as GithubOAuthWithMetadata, as as Google, aC as GoogleOAuthWithMetadata, aB as LinkedAccountType, b as LinkedAccountWithMetadata, aw as LinkedIn, aH as LinkedInOAuthWithMetadata, aW as LoginMethodOrderOption, ag as MessageTypes, ai as MoonpayConfig, aj as MoonpayCurrencyCode, aS as MoonpayFundingConfig, ak as MoonpayPaymentMethod, aR as NativeFundingConfig, ao as NonEmptyArray, aV as Passkey, aM as PasskeyWithMetadata, aO as Phone, aq as PhoneWithMetadata, aT as PriceDisplayOptions, P as PrivyErrorCode, al as Quantity, ah as SmartWallet, f as SolanaCluster, k as SolanaFundingConfig, S as SolanaTransactionReceipt, e as SupportedSolanaTransaction, az as Telegram, aK as TelegramWithMetadata, ay as Tiktok, aG as TiktokOAuthWithMetadata, am as TransactionLog, an as TransactionReceipt, aP as TransactionUIOptions, at as Twitter, aD as TwitterOAuthWithMetadata, af as TypedMessage, ar as WalletWithMetadata } from './types-
|
|
3
|
+
import { m as WalletClientType, d as UserRecoveryMethod, n as PrivyFarcasterSignerInitResponse, o as MfaSubmitArgs, E as EthereumRpcRequestType, p as SolanaRpcRequestType, q as EthereumRpcResponseType, r as SolanaRpcResponseType, s as PrivyClientConfig, u as EIP1193Provider, v as EntropyIdVerifier$1, H as HDWalletWithMetadata, w as RequestArguments, x as WalletTimeoutError, y as WalletConnector, B as BaseConnectedEthereumWallet, z as ConnectedWalletMetadata, A as ConnectorType, D as WalletListEntry, G as AppConfig, I as BaseConnectedWallet, l as SolanaWalletConnector, U as User, J as ConnectWalletModalOptions, K as LoginModalOptions, g as CreateWalletOptions, W as Wallet, N as SetWalletRecoveryOptions, i as SignMessageModalUIOptions, Q as SignTypedDataParams, M as MfaMethod, T as UnsignedTransactionRequest, h as SendTransactionModalUIOptions, V as FundWalletConfig, X as ConnectedWallet, O as OAuthTokens, Y as CrossAppProviderDetails, Z as OAuthProviderType, _ as MoonpaySignRequest, $ as MoonpaySignResponse, a0 as SmartWalletConfig, a as LoginMethod, a1 as SiweWalletMetadata, a2 as TelegramAuthResult, a3 as TelegramWebAppData, a4 as OAuthUserInfo, a5 as SiwsMessageType, a6 as OAuthFlowState, a7 as LoginWithCode, a8 as OtpFlowState, a9 as PasskeyFlowState, aa as SiweFlowState, ab as UnsignedTransactionRequestWithChainId, ac as BaseConnectedWalletType, C as ConnectedSolanaWallet, ad as SessionSignerInput, ae as TelegramAuthFlowState } from './types-DGkRNs0O.js';
|
|
4
|
+
export { ax as Apple, aI as AppleOAuthWithMetadata, aQ as ContractUIOptions, aA as CrossAppAccount, aL as CrossAppAccountWithMetadata, au as Discord, aE as DiscordOAuthWithMetadata, aN as Email, ap as EmailWithMetadata, aU as Farcaster, aJ as FarcasterWithMetadata, av as Github, aF as GithubOAuthWithMetadata, as as Google, aC as GoogleOAuthWithMetadata, aB as LinkedAccountType, b as LinkedAccountWithMetadata, aw as LinkedIn, aH as LinkedInOAuthWithMetadata, aW as LoginMethodOrderOption, ag as MessageTypes, ai as MoonpayConfig, aj as MoonpayCurrencyCode, aS as MoonpayFundingConfig, ak as MoonpayPaymentMethod, aR as NativeFundingConfig, ao as NonEmptyArray, aV as Passkey, aM as PasskeyWithMetadata, aO as Phone, aq as PhoneWithMetadata, aT as PriceDisplayOptions, P as PrivyErrorCode, al as Quantity, ah as SmartWallet, f as SolanaCluster, k as SolanaFundingConfig, S as SolanaTransactionReceipt, e as SupportedSolanaTransaction, az as Telegram, aK as TelegramWithMetadata, ay as Tiktok, aG as TiktokOAuthWithMetadata, am as TransactionLog, an as TransactionReceipt, aP as TransactionUIOptions, at as Twitter, aD as TwitterOAuthWithMetadata, af as TypedMessage, ar as WalletWithMetadata } from './types-DGkRNs0O.js';
|
|
5
5
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
6
6
|
import { TurnstileProps } from '@marsidev/react-turnstile';
|
|
7
7
|
import EventEmitter from 'eventemitter3';
|
|
@@ -16,8 +16,9 @@ import * as _simplewebauthn_types from '@simplewebauthn/types';
|
|
|
16
16
|
import { PublicKeyCredentialRequestOptionsJSON } from '@simplewebauthn/types';
|
|
17
17
|
import { Cluster } from '@solana/web3.js';
|
|
18
18
|
import { FetchOptions } from 'ofetch';
|
|
19
|
-
import { P as PrivyEvents } from './useSolanaWallets-
|
|
20
|
-
export { C as CallbackError, U as UseSolanaWalletsInterface, u as useSolanaWallets } from './useSolanaWallets-
|
|
19
|
+
import { P as PrivyEvents } from './useSolanaWallets-BmWMwUPQ.js';
|
|
20
|
+
export { C as CallbackError, U as UseSolanaWalletsInterface, u as useSolanaWallets } from './useSolanaWallets-BmWMwUPQ.js';
|
|
21
|
+
import '@coinbase/wallet-sdk';
|
|
21
22
|
import '@solana/wallet-adapter-base';
|
|
22
23
|
import '@solana/wallet-standard-features';
|
|
23
24
|
import '@wallet-standard/base';
|
|
@@ -1429,7 +1430,6 @@ declare class ConnectorManager extends EventEmitter<ConnectorManagerEvents> {
|
|
|
1429
1430
|
private storedConnections;
|
|
1430
1431
|
private activeWallet?;
|
|
1431
1432
|
private privyAppId;
|
|
1432
|
-
private privyAppLogo?;
|
|
1433
1433
|
private walletConnectCloudProjectId;
|
|
1434
1434
|
private rpcConfig;
|
|
1435
1435
|
private chains;
|
|
@@ -1440,7 +1440,7 @@ declare class ConnectorManager extends EventEmitter<ConnectorManagerEvents> {
|
|
|
1440
1440
|
private privyAppName;
|
|
1441
1441
|
private walletChainType;
|
|
1442
1442
|
private externalWalletConfig;
|
|
1443
|
-
constructor(privyAppId: string, walletConnectCloudProjectId: string, rpcConfig: RpcConfig, chains: Chain[], defaultChain: Chain, store: Store, walletList: WalletListEntry[], shouldEnforceDefaultChainOnConnect: boolean, externalWalletConfig:
|
|
1443
|
+
constructor(privyAppId: string, walletConnectCloudProjectId: string, rpcConfig: RpcConfig, chains: Chain[], defaultChain: Chain, store: Store, walletList: WalletListEntry[], shouldEnforceDefaultChainOnConnect: boolean, externalWalletConfig: AppConfig['externalWallets'], privyAppName: string, walletChainType?: 'ethereum-and-solana' | 'ethereum-only' | 'solana-only');
|
|
1444
1444
|
/**
|
|
1445
1445
|
* The core wallets array that is exposed to developers. It builds
|
|
1446
1446
|
* the wallets away with the following logic:
|
|
@@ -2573,7 +2573,7 @@ declare class PrivyClient {
|
|
|
2573
2573
|
store: Store;
|
|
2574
2574
|
walletList: WalletListEntry[];
|
|
2575
2575
|
shouldEnforceDefaultChainOnConnect: boolean;
|
|
2576
|
-
externalWalletConfig:
|
|
2576
|
+
externalWalletConfig: AppConfig['externalWallets'];
|
|
2577
2577
|
appName: string;
|
|
2578
2578
|
walletChainType: 'ethereum-and-solana' | 'ethereum-only' | 'solana-only';
|
|
2579
2579
|
}): void;
|
package/dist/dts/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
2
|
import react__default, { MouseEvent } from 'react';
|
|
3
|
-
import { m as WalletClientType, d as UserRecoveryMethod, n as PrivyFarcasterSignerInitResponse, o as MfaSubmitArgs, E as EthereumRpcRequestType, p as SolanaRpcRequestType, q as EthereumRpcResponseType, r as SolanaRpcResponseType, s as PrivyClientConfig, u as EIP1193Provider, v as EntropyIdVerifier$1, H as HDWalletWithMetadata, w as RequestArguments, x as WalletTimeoutError, y as WalletConnector, B as BaseConnectedEthereumWallet, z as ConnectedWalletMetadata, A as ConnectorType, D as WalletListEntry, G as
|
|
4
|
-
export { ax as Apple, aI as AppleOAuthWithMetadata, aQ as ContractUIOptions, aA as CrossAppAccount, aL as CrossAppAccountWithMetadata, au as Discord, aE as DiscordOAuthWithMetadata, aN as Email, ap as EmailWithMetadata, aU as Farcaster, aJ as FarcasterWithMetadata, av as Github, aF as GithubOAuthWithMetadata, as as Google, aC as GoogleOAuthWithMetadata, aB as LinkedAccountType, b as LinkedAccountWithMetadata, aw as LinkedIn, aH as LinkedInOAuthWithMetadata, aW as LoginMethodOrderOption, ag as MessageTypes, ai as MoonpayConfig, aj as MoonpayCurrencyCode, aS as MoonpayFundingConfig, ak as MoonpayPaymentMethod, aR as NativeFundingConfig, ao as NonEmptyArray, aV as Passkey, aM as PasskeyWithMetadata, aO as Phone, aq as PhoneWithMetadata, aT as PriceDisplayOptions, P as PrivyErrorCode, al as Quantity, ah as SmartWallet, f as SolanaCluster, k as SolanaFundingConfig, S as SolanaTransactionReceipt, e as SupportedSolanaTransaction, az as Telegram, aK as TelegramWithMetadata, ay as Tiktok, aG as TiktokOAuthWithMetadata, am as TransactionLog, an as TransactionReceipt, aP as TransactionUIOptions, at as Twitter, aD as TwitterOAuthWithMetadata, af as TypedMessage, ar as WalletWithMetadata } from './types-
|
|
3
|
+
import { m as WalletClientType, d as UserRecoveryMethod, n as PrivyFarcasterSignerInitResponse, o as MfaSubmitArgs, E as EthereumRpcRequestType, p as SolanaRpcRequestType, q as EthereumRpcResponseType, r as SolanaRpcResponseType, s as PrivyClientConfig, u as EIP1193Provider, v as EntropyIdVerifier$1, H as HDWalletWithMetadata, w as RequestArguments, x as WalletTimeoutError, y as WalletConnector, B as BaseConnectedEthereumWallet, z as ConnectedWalletMetadata, A as ConnectorType, D as WalletListEntry, G as AppConfig, I as BaseConnectedWallet, l as SolanaWalletConnector, U as User, J as ConnectWalletModalOptions, K as LoginModalOptions, g as CreateWalletOptions, W as Wallet, N as SetWalletRecoveryOptions, i as SignMessageModalUIOptions, Q as SignTypedDataParams, M as MfaMethod, T as UnsignedTransactionRequest, h as SendTransactionModalUIOptions, V as FundWalletConfig, X as ConnectedWallet, O as OAuthTokens, Y as CrossAppProviderDetails, Z as OAuthProviderType, _ as MoonpaySignRequest, $ as MoonpaySignResponse, a0 as SmartWalletConfig, a as LoginMethod, a1 as SiweWalletMetadata, a2 as TelegramAuthResult, a3 as TelegramWebAppData, a4 as OAuthUserInfo, a5 as SiwsMessageType, a6 as OAuthFlowState, a7 as LoginWithCode, a8 as OtpFlowState, a9 as PasskeyFlowState, aa as SiweFlowState, ab as UnsignedTransactionRequestWithChainId, ac as BaseConnectedWalletType, C as ConnectedSolanaWallet, ad as SessionSignerInput, ae as TelegramAuthFlowState } from './types-DGkRNs0O.js';
|
|
4
|
+
export { ax as Apple, aI as AppleOAuthWithMetadata, aQ as ContractUIOptions, aA as CrossAppAccount, aL as CrossAppAccountWithMetadata, au as Discord, aE as DiscordOAuthWithMetadata, aN as Email, ap as EmailWithMetadata, aU as Farcaster, aJ as FarcasterWithMetadata, av as Github, aF as GithubOAuthWithMetadata, as as Google, aC as GoogleOAuthWithMetadata, aB as LinkedAccountType, b as LinkedAccountWithMetadata, aw as LinkedIn, aH as LinkedInOAuthWithMetadata, aW as LoginMethodOrderOption, ag as MessageTypes, ai as MoonpayConfig, aj as MoonpayCurrencyCode, aS as MoonpayFundingConfig, ak as MoonpayPaymentMethod, aR as NativeFundingConfig, ao as NonEmptyArray, aV as Passkey, aM as PasskeyWithMetadata, aO as Phone, aq as PhoneWithMetadata, aT as PriceDisplayOptions, P as PrivyErrorCode, al as Quantity, ah as SmartWallet, f as SolanaCluster, k as SolanaFundingConfig, S as SolanaTransactionReceipt, e as SupportedSolanaTransaction, az as Telegram, aK as TelegramWithMetadata, ay as Tiktok, aG as TiktokOAuthWithMetadata, am as TransactionLog, an as TransactionReceipt, aP as TransactionUIOptions, at as Twitter, aD as TwitterOAuthWithMetadata, af as TypedMessage, ar as WalletWithMetadata } from './types-DGkRNs0O.js';
|
|
5
5
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
6
6
|
import { TurnstileProps } from '@marsidev/react-turnstile';
|
|
7
7
|
import EventEmitter from 'eventemitter3';
|
|
@@ -16,8 +16,9 @@ import * as _simplewebauthn_types from '@simplewebauthn/types';
|
|
|
16
16
|
import { PublicKeyCredentialRequestOptionsJSON } from '@simplewebauthn/types';
|
|
17
17
|
import { Cluster } from '@solana/web3.js';
|
|
18
18
|
import { FetchOptions } from 'ofetch';
|
|
19
|
-
import { P as PrivyEvents } from './useSolanaWallets-
|
|
20
|
-
export { C as CallbackError, U as UseSolanaWalletsInterface, u as useSolanaWallets } from './useSolanaWallets-
|
|
19
|
+
import { P as PrivyEvents } from './useSolanaWallets-BmWMwUPQ.js';
|
|
20
|
+
export { C as CallbackError, U as UseSolanaWalletsInterface, u as useSolanaWallets } from './useSolanaWallets-BmWMwUPQ.js';
|
|
21
|
+
import '@coinbase/wallet-sdk';
|
|
21
22
|
import '@solana/wallet-adapter-base';
|
|
22
23
|
import '@solana/wallet-standard-features';
|
|
23
24
|
import '@wallet-standard/base';
|
|
@@ -1429,7 +1430,6 @@ declare class ConnectorManager extends EventEmitter<ConnectorManagerEvents> {
|
|
|
1429
1430
|
private storedConnections;
|
|
1430
1431
|
private activeWallet?;
|
|
1431
1432
|
private privyAppId;
|
|
1432
|
-
private privyAppLogo?;
|
|
1433
1433
|
private walletConnectCloudProjectId;
|
|
1434
1434
|
private rpcConfig;
|
|
1435
1435
|
private chains;
|
|
@@ -1440,7 +1440,7 @@ declare class ConnectorManager extends EventEmitter<ConnectorManagerEvents> {
|
|
|
1440
1440
|
private privyAppName;
|
|
1441
1441
|
private walletChainType;
|
|
1442
1442
|
private externalWalletConfig;
|
|
1443
|
-
constructor(privyAppId: string, walletConnectCloudProjectId: string, rpcConfig: RpcConfig, chains: Chain[], defaultChain: Chain, store: Store, walletList: WalletListEntry[], shouldEnforceDefaultChainOnConnect: boolean, externalWalletConfig:
|
|
1443
|
+
constructor(privyAppId: string, walletConnectCloudProjectId: string, rpcConfig: RpcConfig, chains: Chain[], defaultChain: Chain, store: Store, walletList: WalletListEntry[], shouldEnforceDefaultChainOnConnect: boolean, externalWalletConfig: AppConfig['externalWallets'], privyAppName: string, walletChainType?: 'ethereum-and-solana' | 'ethereum-only' | 'solana-only');
|
|
1444
1444
|
/**
|
|
1445
1445
|
* The core wallets array that is exposed to developers. It builds
|
|
1446
1446
|
* the wallets away with the following logic:
|
|
@@ -2573,7 +2573,7 @@ declare class PrivyClient {
|
|
|
2573
2573
|
store: Store;
|
|
2574
2574
|
walletList: WalletListEntry[];
|
|
2575
2575
|
shouldEnforceDefaultChainOnConnect: boolean;
|
|
2576
|
-
externalWalletConfig:
|
|
2576
|
+
externalWalletConfig: AppConfig['externalWallets'];
|
|
2577
2577
|
appName: string;
|
|
2578
2578
|
walletChainType: 'ethereum-and-solana' | 'ethereum-only' | 'solana-only';
|
|
2579
2579
|
}): void;
|
|
@@ -7,7 +7,8 @@ import { SmartAccount, SendUserOperationParameters } from 'viem/account-abstract
|
|
|
7
7
|
import * as viem from 'viem';
|
|
8
8
|
import { SendTransactionParameters, Chain, Hash, SignableMessage, Hex, TypedData, SignTypedDataParameters, EIP1193Provider, PublicClient, Client } from 'viem';
|
|
9
9
|
import { SmartWalletType } from '@privy-io/js-sdk-core';
|
|
10
|
-
import { h as SendTransactionModalUIOptions, i as SignMessageModalUIOptions } from './types-
|
|
10
|
+
import { h as SendTransactionModalUIOptions, i as SignMessageModalUIOptions } from './types-DGkRNs0O.js';
|
|
11
|
+
import '@coinbase/wallet-sdk';
|
|
11
12
|
import '@solana/wallet-adapter-base';
|
|
12
13
|
import '@privy-io/public-api';
|
|
13
14
|
import '@solana/wallet-standard-features';
|
|
@@ -7,7 +7,8 @@ import { SmartAccount, SendUserOperationParameters } from 'viem/account-abstract
|
|
|
7
7
|
import * as viem from 'viem';
|
|
8
8
|
import { SendTransactionParameters, Chain, Hash, SignableMessage, Hex, TypedData, SignTypedDataParameters, EIP1193Provider, PublicClient, Client } from 'viem';
|
|
9
9
|
import { SmartWalletType } from '@privy-io/js-sdk-core';
|
|
10
|
-
import { h as SendTransactionModalUIOptions, i as SignMessageModalUIOptions } from './types-
|
|
10
|
+
import { h as SendTransactionModalUIOptions, i as SignMessageModalUIOptions } from './types-DGkRNs0O.js';
|
|
11
|
+
import '@coinbase/wallet-sdk';
|
|
11
12
|
import '@solana/wallet-adapter-base';
|
|
12
13
|
import '@privy-io/public-api';
|
|
13
14
|
import '@solana/wallet-standard-features';
|
package/dist/dts/solana.d.mts
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
import { W as Wallet, j as SolanaStandardWallet, k as SolanaFundingConfig, e as SupportedSolanaTransaction, h as SendTransactionModalUIOptions, S as SolanaTransactionReceipt, i as SignMessageModalUIOptions } from './types-
|
|
2
|
-
export { C as ConnectedSolanaWallet, l as SolanaAdapterConnector, t as toSolanaWalletConnectors } from './types-
|
|
3
|
-
import { P as PrivyEvents } from './useSolanaWallets-
|
|
4
|
-
export { U as UseSolanaWalletsInterface, u as useSolanaWallets } from './useSolanaWallets-
|
|
1
|
+
import { W as Wallet, j as SolanaStandardWallet, k as SolanaFundingConfig, e as SupportedSolanaTransaction, h as SendTransactionModalUIOptions, S as SolanaTransactionReceipt, i as SignMessageModalUIOptions } from './types-DGkRNs0O.js';
|
|
2
|
+
export { C as ConnectedSolanaWallet, l as SolanaAdapterConnector, t as toSolanaWalletConnectors } from './types-DGkRNs0O.js';
|
|
3
|
+
import { P as PrivyEvents } from './useSolanaWallets-BmWMwUPQ.js';
|
|
4
|
+
export { U as UseSolanaWalletsInterface, u as useSolanaWallets } from './useSolanaWallets-BmWMwUPQ.js';
|
|
5
5
|
import { SolanaSignAndSendTransactionFeature, SolanaSignTransactionFeature, SolanaSignMessageFeature } from '@solana/wallet-standard-features';
|
|
6
6
|
import { WalletAccount, WalletIcon, WalletVersion } from '@wallet-standard/base';
|
|
7
7
|
import { StandardConnectFeature, StandardDisconnectFeature, StandardEventsFeature } from '@wallet-standard/features';
|
|
8
8
|
import { Transaction, VersionedTransaction, Cluster, SendOptions, TransactionSignature, Connection } from '@solana/web3.js';
|
|
9
9
|
import EventEmitter from 'eventemitter3';
|
|
10
10
|
import { SendTransactionOptions } from '@solana/wallet-adapter-base';
|
|
11
|
+
import '@coinbase/wallet-sdk';
|
|
11
12
|
import 'react';
|
|
12
13
|
import 'viem';
|
|
13
14
|
import '@privy-io/js-sdk-core';
|
package/dist/dts/solana.d.ts
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
import { W as Wallet, j as SolanaStandardWallet, k as SolanaFundingConfig, e as SupportedSolanaTransaction, h as SendTransactionModalUIOptions, S as SolanaTransactionReceipt, i as SignMessageModalUIOptions } from './types-
|
|
2
|
-
export { C as ConnectedSolanaWallet, l as SolanaAdapterConnector, t as toSolanaWalletConnectors } from './types-
|
|
3
|
-
import { P as PrivyEvents } from './useSolanaWallets-
|
|
4
|
-
export { U as UseSolanaWalletsInterface, u as useSolanaWallets } from './useSolanaWallets-
|
|
1
|
+
import { W as Wallet, j as SolanaStandardWallet, k as SolanaFundingConfig, e as SupportedSolanaTransaction, h as SendTransactionModalUIOptions, S as SolanaTransactionReceipt, i as SignMessageModalUIOptions } from './types-DGkRNs0O.js';
|
|
2
|
+
export { C as ConnectedSolanaWallet, l as SolanaAdapterConnector, t as toSolanaWalletConnectors } from './types-DGkRNs0O.js';
|
|
3
|
+
import { P as PrivyEvents } from './useSolanaWallets-BmWMwUPQ.js';
|
|
4
|
+
export { U as UseSolanaWalletsInterface, u as useSolanaWallets } from './useSolanaWallets-BmWMwUPQ.js';
|
|
5
5
|
import { SolanaSignAndSendTransactionFeature, SolanaSignTransactionFeature, SolanaSignMessageFeature } from '@solana/wallet-standard-features';
|
|
6
6
|
import { WalletAccount, WalletIcon, WalletVersion } from '@wallet-standard/base';
|
|
7
7
|
import { StandardConnectFeature, StandardDisconnectFeature, StandardEventsFeature } from '@wallet-standard/features';
|
|
8
8
|
import { Transaction, VersionedTransaction, Cluster, SendOptions, TransactionSignature, Connection } from '@solana/web3.js';
|
|
9
9
|
import EventEmitter from 'eventemitter3';
|
|
10
10
|
import { SendTransactionOptions } from '@solana/wallet-adapter-base';
|
|
11
|
+
import '@coinbase/wallet-sdk';
|
|
11
12
|
import 'react';
|
|
12
13
|
import 'viem';
|
|
13
14
|
import '@privy-io/js-sdk-core';
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
+
import { createCoinbaseWalletSDK } from '@coinbase/wallet-sdk';
|
|
1
2
|
import { StandardWalletAdapter, Adapter, WalletError, MessageSignerWalletAdapterProps, WalletAdapterProps, SignerWalletAdapterProps } from '@solana/wallet-adapter-base';
|
|
2
3
|
import { ReactElement } from 'react';
|
|
3
4
|
import { Hex } from 'viem';
|
|
4
|
-
import { Cluster as Cluster$1, ChainLikeWithId, CountryCode, Chain } from '@privy-io/js-sdk-core';
|
|
5
|
-
import { SmartWalletType, CustomMetadataType, PasskeyAuthenticateInputType } from '@privy-io/public-api';
|
|
5
|
+
import { Cluster as Cluster$1, ChainLikeWithId, CountryCode, Chain, RpcConfig } from '@privy-io/js-sdk-core';
|
|
6
|
+
import { SmartWalletType, CustomMetadataType, PrivyAppResponse, PasskeyAuthenticateInputType } from '@privy-io/public-api';
|
|
6
7
|
import { SolanaSignMessageFeature, SolanaSignTransactionFeature, SolanaSignAndSendTransactionFeature, SolanaSignInFeature } from '@solana/wallet-standard-features';
|
|
7
8
|
import { WalletWithFeatures } from '@wallet-standard/base';
|
|
8
9
|
import { StandardConnectFeature, StandardDisconnectFeature, StandardEventsFeature } from '@wallet-standard/features';
|
|
@@ -1227,13 +1228,21 @@ type ExternalWalletsConfig = {
|
|
|
1227
1228
|
*/
|
|
1228
1229
|
coinbaseWallet?: {
|
|
1229
1230
|
/**
|
|
1231
|
+
* @deprecated Pass this directly as config.preference.options
|
|
1232
|
+
*
|
|
1230
1233
|
* Whether Coinbase wallet connections should prompt the smart wallet, the extension wallet, or intelligently decide between the two.
|
|
1231
1234
|
* - If 'eoaOnly', Coinbase wallet connections will only prompt the Coinbase wallet browser extension or mobile app (an externally-owned account)
|
|
1232
1235
|
* - If 'smartWalletOnly', Coinbase wallet connections will only prompt the Coinbase smart wallet and will not allow users to use the extension or mobile app.
|
|
1233
1236
|
* DO NOT use this setting in production.
|
|
1234
1237
|
* - If 'all', Coinbase wallet connections will prompt the Coinbase wallet browser extension if it is detected as installed, and will otherwise prompt the smart wallet.
|
|
1235
1238
|
*/
|
|
1236
|
-
connectionOptions
|
|
1239
|
+
connectionOptions?: 'all' | 'eoaOnly' | 'smartWalletOnly';
|
|
1240
|
+
/**
|
|
1241
|
+
* Allows you to override the default configuration options for initializing the Coinbase Wallet
|
|
1242
|
+
* connector. This includes overriding the connection options (via config.preference.options)
|
|
1243
|
+
* or adding additional configuration (i.e. enabling subAccounts)
|
|
1244
|
+
*/
|
|
1245
|
+
config?: Parameters<typeof createCoinbaseWalletSDK>[0];
|
|
1237
1246
|
};
|
|
1238
1247
|
/**
|
|
1239
1248
|
* Options to configure WalletConnect behavior.
|
|
@@ -1701,6 +1710,175 @@ type SmartWalletNetworkConfig = {
|
|
|
1701
1710
|
paymasterUrl?: string;
|
|
1702
1711
|
paymasterContext?: AlchemyPaymasterContextClient | BiconomyPaymasterContext;
|
|
1703
1712
|
};
|
|
1713
|
+
/**
|
|
1714
|
+
* There are two options For how to prioritize/highlight the user's login method options:
|
|
1715
|
+
* - `web3-first`: highlight the web3 login method options (wallets)
|
|
1716
|
+
* - `web2-first`: highlight the web2 login method options (email, sms, social)
|
|
1717
|
+
*/
|
|
1718
|
+
type LoginGroupPriority = 'web2-first' | 'web3-first';
|
|
1719
|
+
/** Privy configuration object used throughout the application
|
|
1720
|
+
* This is a composition of the server config and client config, and contains data used throughout the app.
|
|
1721
|
+
* This is just used internally - changes to this don't count as breaking API changes. */
|
|
1722
|
+
type AppConfig = {
|
|
1723
|
+
id: PrivyAppResponse['id'];
|
|
1724
|
+
name: PrivyAppResponse['name'];
|
|
1725
|
+
allowlistConfig: {
|
|
1726
|
+
errorTitle: string | null;
|
|
1727
|
+
errorDetail: string | null;
|
|
1728
|
+
errorCtaText: string | null;
|
|
1729
|
+
errorCtaLink: string | null;
|
|
1730
|
+
};
|
|
1731
|
+
legacyWalletUiConfig: PrivyAppResponse['legacy_wallet_ui_config'];
|
|
1732
|
+
appearance: {
|
|
1733
|
+
logo?: NonNullable<PrivyClientConfig['appearance']>['logo'];
|
|
1734
|
+
landingHeader: NonNullable<PrivyClientConfig['appearance']>['landingHeader'];
|
|
1735
|
+
loginMessage: NonNullable<PrivyClientConfig['appearance']>['loginMessage'];
|
|
1736
|
+
footerLogo: NonNullable<PrivyClientConfig['appearance']>['footerLogo'];
|
|
1737
|
+
palette: PrivyPalette;
|
|
1738
|
+
loginGroupPriority: LoginGroupPriority;
|
|
1739
|
+
hideDirectWeb2Inputs?: boolean;
|
|
1740
|
+
walletList: NonNullable<NonNullable<PrivyClientConfig['appearance']>['walletList']>;
|
|
1741
|
+
walletChainType: NonNullable<NonNullable<PrivyClientConfig['appearance']>['walletChainType']>;
|
|
1742
|
+
};
|
|
1743
|
+
loginMethods: {
|
|
1744
|
+
wallet?: boolean;
|
|
1745
|
+
email?: boolean;
|
|
1746
|
+
sms?: boolean;
|
|
1747
|
+
google?: boolean;
|
|
1748
|
+
twitter?: boolean;
|
|
1749
|
+
discord?: boolean;
|
|
1750
|
+
github?: boolean;
|
|
1751
|
+
spotify?: boolean;
|
|
1752
|
+
instagram?: boolean;
|
|
1753
|
+
tiktok?: boolean;
|
|
1754
|
+
linkedin?: boolean;
|
|
1755
|
+
apple?: boolean;
|
|
1756
|
+
farcaster?: boolean;
|
|
1757
|
+
passkey?: boolean;
|
|
1758
|
+
telegram?: boolean;
|
|
1759
|
+
};
|
|
1760
|
+
disablePlusEmails: PrivyAppResponse['disable_plus_emails'];
|
|
1761
|
+
loginMethodsAndOrder?: PrivyClientConfig['loginMethodsAndOrder'];
|
|
1762
|
+
legal: {
|
|
1763
|
+
termsAndConditionsUrl: PrivyAppResponse['terms_and_conditions_url'];
|
|
1764
|
+
privacyPolicyUrl: PrivyAppResponse['privacy_policy_url'];
|
|
1765
|
+
requireUsersAcceptTerms: NonNullable<PrivyAppResponse['require_users_accept_terms']>;
|
|
1766
|
+
};
|
|
1767
|
+
walletConnectCloudProjectId: NonNullable<PrivyAppResponse['wallet_connect_cloud_project_id']>;
|
|
1768
|
+
rpcConfig: RpcConfig;
|
|
1769
|
+
chains: Chain[];
|
|
1770
|
+
solanaClusters: Record<Cluster$1, {
|
|
1771
|
+
rpcUrl: string;
|
|
1772
|
+
blockExplorerUrl: string;
|
|
1773
|
+
}>;
|
|
1774
|
+
defaultChain: Chain;
|
|
1775
|
+
intl: {
|
|
1776
|
+
defaultCountry: CountryCode;
|
|
1777
|
+
};
|
|
1778
|
+
/**
|
|
1779
|
+
* Whether the `defaultChain` in the internal config should be enforced on connection requests. This
|
|
1780
|
+
* gets set to true if the app has explicitly set a `defaultChain`, and false otherwise.
|
|
1781
|
+
*
|
|
1782
|
+
* If true, Privy will prompt wallets to switch to the `defaultChain` on connection, and will include
|
|
1783
|
+
* the default chain in the required chains namespace for WalletConnect.
|
|
1784
|
+
*/
|
|
1785
|
+
shouldEnforceDefaultChainOnConnect: boolean;
|
|
1786
|
+
captchaEnabled: NonNullable<PrivyAppResponse['captcha_enabled']>;
|
|
1787
|
+
captchaSiteKey: NonNullable<PrivyAppResponse['captcha_site_key']>;
|
|
1788
|
+
externalWallets: {
|
|
1789
|
+
coinbaseWallet: {
|
|
1790
|
+
config: NonNullable<NonNullable<NonNullable<PrivyClientConfig['externalWallets']>['coinbaseWallet']>['config']>;
|
|
1791
|
+
};
|
|
1792
|
+
walletConnect: {
|
|
1793
|
+
enabled: boolean;
|
|
1794
|
+
};
|
|
1795
|
+
solana: {
|
|
1796
|
+
connectors: NonNullable<NonNullable<PrivyClientConfig['externalWallets']>['solana']>['connectors'];
|
|
1797
|
+
};
|
|
1798
|
+
disableAllExternalWallets: boolean;
|
|
1799
|
+
};
|
|
1800
|
+
embeddedWallets: {
|
|
1801
|
+
ethereum: {
|
|
1802
|
+
createOnLogin: NonNullable<PrivyAppResponse['embedded_wallet_config']>['ethereum']['create_on_login'];
|
|
1803
|
+
};
|
|
1804
|
+
solana: {
|
|
1805
|
+
createOnLogin: NonNullable<PrivyAppResponse['embedded_wallet_config']>['solana']['create_on_login'];
|
|
1806
|
+
};
|
|
1807
|
+
requireUserOwnedRecoveryOnCreate: NonNullable<PrivyAppResponse['embedded_wallet_config']>['require_user_owned_recovery_on_create'];
|
|
1808
|
+
userOwnedRecoveryOptions: NonNullable<PrivyAppResponse['embedded_wallet_config']>['user_owned_recovery_options'];
|
|
1809
|
+
mode: 'legacy-embedded-wallets-only' | 'user-controlled-server-wallets-only';
|
|
1810
|
+
priceDisplay: NonNullable<NonNullable<PrivyClientConfig['embeddedWallets']>['priceDisplay']>;
|
|
1811
|
+
showWalletUIs: NonNullable<NonNullable<PrivyClientConfig['embeddedWallets']>['showWalletUIs']>;
|
|
1812
|
+
extendedCalldataDecoding: NonNullable<NonNullable<PrivyClientConfig['embeddedWallets']>['extendedCalldataDecoding']>;
|
|
1813
|
+
transactionScanning: {
|
|
1814
|
+
enabled: boolean;
|
|
1815
|
+
domain: NonNullable<NonNullable<NonNullable<PrivyClientConfig['embeddedWallets']>['transactionScanning']>['domain']>;
|
|
1816
|
+
};
|
|
1817
|
+
};
|
|
1818
|
+
mfa: {
|
|
1819
|
+
methods: NonNullable<PrivyAppResponse['mfa_methods']>;
|
|
1820
|
+
noPromptOnMfaRequired?: NonNullable<PrivyClientConfig['mfa']>['noPromptOnMfaRequired'];
|
|
1821
|
+
};
|
|
1822
|
+
passkeys: {
|
|
1823
|
+
shouldUnlinkOnUnenrollMfa: NonNullable<PrivyClientConfig['passkeys']>['shouldUnlinkOnUnenrollMfa'];
|
|
1824
|
+
shouldUnenrollMfaOnUnlink: NonNullable<PrivyClientConfig['passkeys']>['shouldUnenrollMfaOnUnlink'];
|
|
1825
|
+
};
|
|
1826
|
+
customAuth?: {
|
|
1827
|
+
enabled?: boolean;
|
|
1828
|
+
getCustomAccessToken: NonNullable<PrivyClientConfig['customAuth']>['getCustomAccessToken'];
|
|
1829
|
+
isLoading: NonNullable<PrivyClientConfig['customAuth']>['isLoading'];
|
|
1830
|
+
};
|
|
1831
|
+
render: {
|
|
1832
|
+
standalone: NonNullable<PrivyClientConfig['_render']>['standalone'];
|
|
1833
|
+
};
|
|
1834
|
+
loginConfig: {
|
|
1835
|
+
telegramAuthConfiguration?: {
|
|
1836
|
+
botId: string;
|
|
1837
|
+
botName: string;
|
|
1838
|
+
linkEnabled: boolean;
|
|
1839
|
+
seamlessAuthEnabled: boolean;
|
|
1840
|
+
};
|
|
1841
|
+
passkeysForSignupEnabled: PrivyAppResponse['passkeys_for_signup_enabled'];
|
|
1842
|
+
};
|
|
1843
|
+
headless: boolean;
|
|
1844
|
+
fundingConfig?: {
|
|
1845
|
+
methods: NonNullable<PrivyAppResponse['funding_config']>['methods'];
|
|
1846
|
+
options: NonNullable<PrivyAppResponse['funding_config']>['options'];
|
|
1847
|
+
defaultRecommendedAmount: string;
|
|
1848
|
+
defaultRecommendedCurrency: NonNullable<PrivyAppResponse['funding_config']>['default_recommended_currency'];
|
|
1849
|
+
promptFundingOnWalletCreation: boolean;
|
|
1850
|
+
crossChainBridgingEnabled: boolean;
|
|
1851
|
+
};
|
|
1852
|
+
fundingMethodConfig: NonNullable<PrivyClientConfig['fundingMethodConfig']>;
|
|
1853
|
+
whatsAppEnabled: boolean;
|
|
1854
|
+
};
|
|
1855
|
+
/** Privy's generated color palette.
|
|
1856
|
+
* This will be generated, given a passed theme and accent color (from configuration),
|
|
1857
|
+
* and then passed along to css variables. Generated attributes can be overridden by the user.
|
|
1858
|
+
* at the css level. */
|
|
1859
|
+
type PrivyPalette = {
|
|
1860
|
+
colorScheme: 'light' | 'dark';
|
|
1861
|
+
background: string;
|
|
1862
|
+
background2: string;
|
|
1863
|
+
background3: string;
|
|
1864
|
+
foreground: string;
|
|
1865
|
+
foreground2: string;
|
|
1866
|
+
foreground3: string;
|
|
1867
|
+
foreground4: string;
|
|
1868
|
+
foregroundAccent: string;
|
|
1869
|
+
accent: string;
|
|
1870
|
+
accentLight: string;
|
|
1871
|
+
accentLightest: string;
|
|
1872
|
+
accentDark: string;
|
|
1873
|
+
accentDarkest: string;
|
|
1874
|
+
success: string;
|
|
1875
|
+
warn: string;
|
|
1876
|
+
warnLight: string;
|
|
1877
|
+
successDark: string;
|
|
1878
|
+
successLight: string;
|
|
1879
|
+
error: string;
|
|
1880
|
+
errorLight: string;
|
|
1881
|
+
};
|
|
1704
1882
|
type EmbeddedWalletCreateOnLoginConfig = 'users-without-wallets' | 'all-users' | 'off';
|
|
1705
1883
|
type OtpFlowState = {
|
|
1706
1884
|
status: 'initial';
|
|
@@ -2021,4 +2199,4 @@ type SessionSignerInput = {
|
|
|
2021
2199
|
policyIds?: string[];
|
|
2022
2200
|
}[];
|
|
2023
2201
|
|
|
2024
|
-
export { type MoonpaySignResponse as $, type ConnectorType as A, type BaseConnectedEthereumWallet as B, type ConnectedSolanaWallet as C, type WalletListEntry as D, type EthereumRpcRequestType as E, type FundingMethod as F, type
|
|
2202
|
+
export { type MoonpaySignResponse as $, type ConnectorType as A, type BaseConnectedEthereumWallet as B, type ConnectedSolanaWallet as C, type WalletListEntry as D, type EthereumRpcRequestType as E, type FundingMethod as F, type AppConfig as G, type HDWalletWithMetadata as H, type BaseConnectedWallet as I, type ConnectWalletModalOptions as J, type LoginModalOptions as K, type LoginToFrame as L, type MfaMethod as M, type SetWalletRecoveryOptions as N, type OAuthTokens as O, PrivyErrorCode as P, type SignTypedDataParams as Q, type RuntimeLoginOverridableOptions as R, type SolanaTransactionReceipt as S, type UnsignedTransactionRequest as T, type User as U, type FundWalletConfig as V, type Wallet as W, type ConnectedWallet as X, type CrossAppProviderDetails as Y, type OAuthProviderType as Z, type MoonpaySignRequest as _, type LoginMethod as a, type SmartWalletConfig as a0, type SiweWalletMetadata as a1, type TelegramAuthResult as a2, type TelegramWebAppData as a3, type OAuthUserInfo as a4, type SiwsMessageType as a5, type OAuthFlowState as a6, type LoginWithCode as a7, type OtpFlowState as a8, type PasskeyFlowState as a9, type CrossAppAccount as aA, type LinkedAccountType as aB, type GoogleOAuthWithMetadata as aC, type TwitterOAuthWithMetadata as aD, type DiscordOAuthWithMetadata as aE, type GithubOAuthWithMetadata as aF, type TiktokOAuthWithMetadata as aG, type LinkedInOAuthWithMetadata as aH, type AppleOAuthWithMetadata as aI, type FarcasterWithMetadata as aJ, type TelegramWithMetadata as aK, type CrossAppAccountWithMetadata as aL, type PasskeyWithMetadata as aM, type Email as aN, type Phone as aO, type TransactionUIOptions as aP, type ContractUIOptions as aQ, type NativeFundingConfig as aR, type MoonpayFundingConfig as aS, type PriceDisplayOptions as aT, type Farcaster as aU, type Passkey as aV, type LoginMethodOrderOption as aW, type SiweFlowState as aa, type UnsignedTransactionRequestWithChainId as ab, type BaseConnectedWalletType as ac, type SessionSignerInput as ad, type TelegramAuthFlowState as ae, type TypedMessage as af, type MessageTypes as ag, type SmartWallet as ah, type MoonpayConfig as ai, type MoonpayCurrencyCode as aj, type MoonpayPaymentMethod as ak, type Quantity as al, type TransactionLog as am, type TransactionReceipt as an, type NonEmptyArray as ao, type EmailWithMetadata as ap, type PhoneWithMetadata as aq, type WalletWithMetadata as ar, type Google as as, type Twitter as at, type Discord as au, type Github as av, type LinkedIn as aw, type Apple as ax, type Tiktok as ay, type Telegram as az, type LinkedAccountWithMetadata as b, type BaseConnectedSolanaWallet as c, type UserRecoveryMethod as d, type SupportedSolanaTransaction as e, type SolanaCluster as f, type CreateWalletOptions as g, type SendTransactionModalUIOptions as h, type SignMessageModalUIOptions as i, type SolanaStandardWallet as j, type SolanaFundingConfig as k, SolanaWalletConnector as l, type WalletClientType as m, type PrivyFarcasterSignerInitResponse as n, type MfaSubmitArgs as o, type SolanaRpcRequestType as p, type EthereumRpcResponseType as q, type SolanaRpcResponseType as r, type PrivyClientConfig as s, toSolanaWalletConnectors as t, type EIP1193Provider as u, type EntropyIdVerifier as v, type RequestArguments as w, WalletTimeoutError as x, WalletConnector as y, type ConnectedWalletMetadata as z };
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
+
import { createCoinbaseWalletSDK } from '@coinbase/wallet-sdk';
|
|
1
2
|
import { StandardWalletAdapter, Adapter, WalletError, MessageSignerWalletAdapterProps, WalletAdapterProps, SignerWalletAdapterProps } from '@solana/wallet-adapter-base';
|
|
2
3
|
import { ReactElement } from 'react';
|
|
3
4
|
import { Hex } from 'viem';
|
|
4
|
-
import { Cluster as Cluster$1, ChainLikeWithId, CountryCode, Chain } from '@privy-io/js-sdk-core';
|
|
5
|
-
import { SmartWalletType, CustomMetadataType, PasskeyAuthenticateInputType } from '@privy-io/public-api';
|
|
5
|
+
import { Cluster as Cluster$1, ChainLikeWithId, CountryCode, Chain, RpcConfig } from '@privy-io/js-sdk-core';
|
|
6
|
+
import { SmartWalletType, CustomMetadataType, PrivyAppResponse, PasskeyAuthenticateInputType } from '@privy-io/public-api';
|
|
6
7
|
import { SolanaSignMessageFeature, SolanaSignTransactionFeature, SolanaSignAndSendTransactionFeature, SolanaSignInFeature } from '@solana/wallet-standard-features';
|
|
7
8
|
import { WalletWithFeatures } from '@wallet-standard/base';
|
|
8
9
|
import { StandardConnectFeature, StandardDisconnectFeature, StandardEventsFeature } from '@wallet-standard/features';
|
|
@@ -1227,13 +1228,21 @@ type ExternalWalletsConfig = {
|
|
|
1227
1228
|
*/
|
|
1228
1229
|
coinbaseWallet?: {
|
|
1229
1230
|
/**
|
|
1231
|
+
* @deprecated Pass this directly as config.preference.options
|
|
1232
|
+
*
|
|
1230
1233
|
* Whether Coinbase wallet connections should prompt the smart wallet, the extension wallet, or intelligently decide between the two.
|
|
1231
1234
|
* - If 'eoaOnly', Coinbase wallet connections will only prompt the Coinbase wallet browser extension or mobile app (an externally-owned account)
|
|
1232
1235
|
* - If 'smartWalletOnly', Coinbase wallet connections will only prompt the Coinbase smart wallet and will not allow users to use the extension or mobile app.
|
|
1233
1236
|
* DO NOT use this setting in production.
|
|
1234
1237
|
* - If 'all', Coinbase wallet connections will prompt the Coinbase wallet browser extension if it is detected as installed, and will otherwise prompt the smart wallet.
|
|
1235
1238
|
*/
|
|
1236
|
-
connectionOptions
|
|
1239
|
+
connectionOptions?: 'all' | 'eoaOnly' | 'smartWalletOnly';
|
|
1240
|
+
/**
|
|
1241
|
+
* Allows you to override the default configuration options for initializing the Coinbase Wallet
|
|
1242
|
+
* connector. This includes overriding the connection options (via config.preference.options)
|
|
1243
|
+
* or adding additional configuration (i.e. enabling subAccounts)
|
|
1244
|
+
*/
|
|
1245
|
+
config?: Parameters<typeof createCoinbaseWalletSDK>[0];
|
|
1237
1246
|
};
|
|
1238
1247
|
/**
|
|
1239
1248
|
* Options to configure WalletConnect behavior.
|
|
@@ -1701,6 +1710,175 @@ type SmartWalletNetworkConfig = {
|
|
|
1701
1710
|
paymasterUrl?: string;
|
|
1702
1711
|
paymasterContext?: AlchemyPaymasterContextClient | BiconomyPaymasterContext;
|
|
1703
1712
|
};
|
|
1713
|
+
/**
|
|
1714
|
+
* There are two options For how to prioritize/highlight the user's login method options:
|
|
1715
|
+
* - `web3-first`: highlight the web3 login method options (wallets)
|
|
1716
|
+
* - `web2-first`: highlight the web2 login method options (email, sms, social)
|
|
1717
|
+
*/
|
|
1718
|
+
type LoginGroupPriority = 'web2-first' | 'web3-first';
|
|
1719
|
+
/** Privy configuration object used throughout the application
|
|
1720
|
+
* This is a composition of the server config and client config, and contains data used throughout the app.
|
|
1721
|
+
* This is just used internally - changes to this don't count as breaking API changes. */
|
|
1722
|
+
type AppConfig = {
|
|
1723
|
+
id: PrivyAppResponse['id'];
|
|
1724
|
+
name: PrivyAppResponse['name'];
|
|
1725
|
+
allowlistConfig: {
|
|
1726
|
+
errorTitle: string | null;
|
|
1727
|
+
errorDetail: string | null;
|
|
1728
|
+
errorCtaText: string | null;
|
|
1729
|
+
errorCtaLink: string | null;
|
|
1730
|
+
};
|
|
1731
|
+
legacyWalletUiConfig: PrivyAppResponse['legacy_wallet_ui_config'];
|
|
1732
|
+
appearance: {
|
|
1733
|
+
logo?: NonNullable<PrivyClientConfig['appearance']>['logo'];
|
|
1734
|
+
landingHeader: NonNullable<PrivyClientConfig['appearance']>['landingHeader'];
|
|
1735
|
+
loginMessage: NonNullable<PrivyClientConfig['appearance']>['loginMessage'];
|
|
1736
|
+
footerLogo: NonNullable<PrivyClientConfig['appearance']>['footerLogo'];
|
|
1737
|
+
palette: PrivyPalette;
|
|
1738
|
+
loginGroupPriority: LoginGroupPriority;
|
|
1739
|
+
hideDirectWeb2Inputs?: boolean;
|
|
1740
|
+
walletList: NonNullable<NonNullable<PrivyClientConfig['appearance']>['walletList']>;
|
|
1741
|
+
walletChainType: NonNullable<NonNullable<PrivyClientConfig['appearance']>['walletChainType']>;
|
|
1742
|
+
};
|
|
1743
|
+
loginMethods: {
|
|
1744
|
+
wallet?: boolean;
|
|
1745
|
+
email?: boolean;
|
|
1746
|
+
sms?: boolean;
|
|
1747
|
+
google?: boolean;
|
|
1748
|
+
twitter?: boolean;
|
|
1749
|
+
discord?: boolean;
|
|
1750
|
+
github?: boolean;
|
|
1751
|
+
spotify?: boolean;
|
|
1752
|
+
instagram?: boolean;
|
|
1753
|
+
tiktok?: boolean;
|
|
1754
|
+
linkedin?: boolean;
|
|
1755
|
+
apple?: boolean;
|
|
1756
|
+
farcaster?: boolean;
|
|
1757
|
+
passkey?: boolean;
|
|
1758
|
+
telegram?: boolean;
|
|
1759
|
+
};
|
|
1760
|
+
disablePlusEmails: PrivyAppResponse['disable_plus_emails'];
|
|
1761
|
+
loginMethodsAndOrder?: PrivyClientConfig['loginMethodsAndOrder'];
|
|
1762
|
+
legal: {
|
|
1763
|
+
termsAndConditionsUrl: PrivyAppResponse['terms_and_conditions_url'];
|
|
1764
|
+
privacyPolicyUrl: PrivyAppResponse['privacy_policy_url'];
|
|
1765
|
+
requireUsersAcceptTerms: NonNullable<PrivyAppResponse['require_users_accept_terms']>;
|
|
1766
|
+
};
|
|
1767
|
+
walletConnectCloudProjectId: NonNullable<PrivyAppResponse['wallet_connect_cloud_project_id']>;
|
|
1768
|
+
rpcConfig: RpcConfig;
|
|
1769
|
+
chains: Chain[];
|
|
1770
|
+
solanaClusters: Record<Cluster$1, {
|
|
1771
|
+
rpcUrl: string;
|
|
1772
|
+
blockExplorerUrl: string;
|
|
1773
|
+
}>;
|
|
1774
|
+
defaultChain: Chain;
|
|
1775
|
+
intl: {
|
|
1776
|
+
defaultCountry: CountryCode;
|
|
1777
|
+
};
|
|
1778
|
+
/**
|
|
1779
|
+
* Whether the `defaultChain` in the internal config should be enforced on connection requests. This
|
|
1780
|
+
* gets set to true if the app has explicitly set a `defaultChain`, and false otherwise.
|
|
1781
|
+
*
|
|
1782
|
+
* If true, Privy will prompt wallets to switch to the `defaultChain` on connection, and will include
|
|
1783
|
+
* the default chain in the required chains namespace for WalletConnect.
|
|
1784
|
+
*/
|
|
1785
|
+
shouldEnforceDefaultChainOnConnect: boolean;
|
|
1786
|
+
captchaEnabled: NonNullable<PrivyAppResponse['captcha_enabled']>;
|
|
1787
|
+
captchaSiteKey: NonNullable<PrivyAppResponse['captcha_site_key']>;
|
|
1788
|
+
externalWallets: {
|
|
1789
|
+
coinbaseWallet: {
|
|
1790
|
+
config: NonNullable<NonNullable<NonNullable<PrivyClientConfig['externalWallets']>['coinbaseWallet']>['config']>;
|
|
1791
|
+
};
|
|
1792
|
+
walletConnect: {
|
|
1793
|
+
enabled: boolean;
|
|
1794
|
+
};
|
|
1795
|
+
solana: {
|
|
1796
|
+
connectors: NonNullable<NonNullable<PrivyClientConfig['externalWallets']>['solana']>['connectors'];
|
|
1797
|
+
};
|
|
1798
|
+
disableAllExternalWallets: boolean;
|
|
1799
|
+
};
|
|
1800
|
+
embeddedWallets: {
|
|
1801
|
+
ethereum: {
|
|
1802
|
+
createOnLogin: NonNullable<PrivyAppResponse['embedded_wallet_config']>['ethereum']['create_on_login'];
|
|
1803
|
+
};
|
|
1804
|
+
solana: {
|
|
1805
|
+
createOnLogin: NonNullable<PrivyAppResponse['embedded_wallet_config']>['solana']['create_on_login'];
|
|
1806
|
+
};
|
|
1807
|
+
requireUserOwnedRecoveryOnCreate: NonNullable<PrivyAppResponse['embedded_wallet_config']>['require_user_owned_recovery_on_create'];
|
|
1808
|
+
userOwnedRecoveryOptions: NonNullable<PrivyAppResponse['embedded_wallet_config']>['user_owned_recovery_options'];
|
|
1809
|
+
mode: 'legacy-embedded-wallets-only' | 'user-controlled-server-wallets-only';
|
|
1810
|
+
priceDisplay: NonNullable<NonNullable<PrivyClientConfig['embeddedWallets']>['priceDisplay']>;
|
|
1811
|
+
showWalletUIs: NonNullable<NonNullable<PrivyClientConfig['embeddedWallets']>['showWalletUIs']>;
|
|
1812
|
+
extendedCalldataDecoding: NonNullable<NonNullable<PrivyClientConfig['embeddedWallets']>['extendedCalldataDecoding']>;
|
|
1813
|
+
transactionScanning: {
|
|
1814
|
+
enabled: boolean;
|
|
1815
|
+
domain: NonNullable<NonNullable<NonNullable<PrivyClientConfig['embeddedWallets']>['transactionScanning']>['domain']>;
|
|
1816
|
+
};
|
|
1817
|
+
};
|
|
1818
|
+
mfa: {
|
|
1819
|
+
methods: NonNullable<PrivyAppResponse['mfa_methods']>;
|
|
1820
|
+
noPromptOnMfaRequired?: NonNullable<PrivyClientConfig['mfa']>['noPromptOnMfaRequired'];
|
|
1821
|
+
};
|
|
1822
|
+
passkeys: {
|
|
1823
|
+
shouldUnlinkOnUnenrollMfa: NonNullable<PrivyClientConfig['passkeys']>['shouldUnlinkOnUnenrollMfa'];
|
|
1824
|
+
shouldUnenrollMfaOnUnlink: NonNullable<PrivyClientConfig['passkeys']>['shouldUnenrollMfaOnUnlink'];
|
|
1825
|
+
};
|
|
1826
|
+
customAuth?: {
|
|
1827
|
+
enabled?: boolean;
|
|
1828
|
+
getCustomAccessToken: NonNullable<PrivyClientConfig['customAuth']>['getCustomAccessToken'];
|
|
1829
|
+
isLoading: NonNullable<PrivyClientConfig['customAuth']>['isLoading'];
|
|
1830
|
+
};
|
|
1831
|
+
render: {
|
|
1832
|
+
standalone: NonNullable<PrivyClientConfig['_render']>['standalone'];
|
|
1833
|
+
};
|
|
1834
|
+
loginConfig: {
|
|
1835
|
+
telegramAuthConfiguration?: {
|
|
1836
|
+
botId: string;
|
|
1837
|
+
botName: string;
|
|
1838
|
+
linkEnabled: boolean;
|
|
1839
|
+
seamlessAuthEnabled: boolean;
|
|
1840
|
+
};
|
|
1841
|
+
passkeysForSignupEnabled: PrivyAppResponse['passkeys_for_signup_enabled'];
|
|
1842
|
+
};
|
|
1843
|
+
headless: boolean;
|
|
1844
|
+
fundingConfig?: {
|
|
1845
|
+
methods: NonNullable<PrivyAppResponse['funding_config']>['methods'];
|
|
1846
|
+
options: NonNullable<PrivyAppResponse['funding_config']>['options'];
|
|
1847
|
+
defaultRecommendedAmount: string;
|
|
1848
|
+
defaultRecommendedCurrency: NonNullable<PrivyAppResponse['funding_config']>['default_recommended_currency'];
|
|
1849
|
+
promptFundingOnWalletCreation: boolean;
|
|
1850
|
+
crossChainBridgingEnabled: boolean;
|
|
1851
|
+
};
|
|
1852
|
+
fundingMethodConfig: NonNullable<PrivyClientConfig['fundingMethodConfig']>;
|
|
1853
|
+
whatsAppEnabled: boolean;
|
|
1854
|
+
};
|
|
1855
|
+
/** Privy's generated color palette.
|
|
1856
|
+
* This will be generated, given a passed theme and accent color (from configuration),
|
|
1857
|
+
* and then passed along to css variables. Generated attributes can be overridden by the user.
|
|
1858
|
+
* at the css level. */
|
|
1859
|
+
type PrivyPalette = {
|
|
1860
|
+
colorScheme: 'light' | 'dark';
|
|
1861
|
+
background: string;
|
|
1862
|
+
background2: string;
|
|
1863
|
+
background3: string;
|
|
1864
|
+
foreground: string;
|
|
1865
|
+
foreground2: string;
|
|
1866
|
+
foreground3: string;
|
|
1867
|
+
foreground4: string;
|
|
1868
|
+
foregroundAccent: string;
|
|
1869
|
+
accent: string;
|
|
1870
|
+
accentLight: string;
|
|
1871
|
+
accentLightest: string;
|
|
1872
|
+
accentDark: string;
|
|
1873
|
+
accentDarkest: string;
|
|
1874
|
+
success: string;
|
|
1875
|
+
warn: string;
|
|
1876
|
+
warnLight: string;
|
|
1877
|
+
successDark: string;
|
|
1878
|
+
successLight: string;
|
|
1879
|
+
error: string;
|
|
1880
|
+
errorLight: string;
|
|
1881
|
+
};
|
|
1704
1882
|
type EmbeddedWalletCreateOnLoginConfig = 'users-without-wallets' | 'all-users' | 'off';
|
|
1705
1883
|
type OtpFlowState = {
|
|
1706
1884
|
status: 'initial';
|
|
@@ -2021,4 +2199,4 @@ type SessionSignerInput = {
|
|
|
2021
2199
|
policyIds?: string[];
|
|
2022
2200
|
}[];
|
|
2023
2201
|
|
|
2024
|
-
export { type MoonpaySignResponse as $, type ConnectorType as A, type BaseConnectedEthereumWallet as B, type ConnectedSolanaWallet as C, type WalletListEntry as D, type EthereumRpcRequestType as E, type FundingMethod as F, type
|
|
2202
|
+
export { type MoonpaySignResponse as $, type ConnectorType as A, type BaseConnectedEthereumWallet as B, type ConnectedSolanaWallet as C, type WalletListEntry as D, type EthereumRpcRequestType as E, type FundingMethod as F, type AppConfig as G, type HDWalletWithMetadata as H, type BaseConnectedWallet as I, type ConnectWalletModalOptions as J, type LoginModalOptions as K, type LoginToFrame as L, type MfaMethod as M, type SetWalletRecoveryOptions as N, type OAuthTokens as O, PrivyErrorCode as P, type SignTypedDataParams as Q, type RuntimeLoginOverridableOptions as R, type SolanaTransactionReceipt as S, type UnsignedTransactionRequest as T, type User as U, type FundWalletConfig as V, type Wallet as W, type ConnectedWallet as X, type CrossAppProviderDetails as Y, type OAuthProviderType as Z, type MoonpaySignRequest as _, type LoginMethod as a, type SmartWalletConfig as a0, type SiweWalletMetadata as a1, type TelegramAuthResult as a2, type TelegramWebAppData as a3, type OAuthUserInfo as a4, type SiwsMessageType as a5, type OAuthFlowState as a6, type LoginWithCode as a7, type OtpFlowState as a8, type PasskeyFlowState as a9, type CrossAppAccount as aA, type LinkedAccountType as aB, type GoogleOAuthWithMetadata as aC, type TwitterOAuthWithMetadata as aD, type DiscordOAuthWithMetadata as aE, type GithubOAuthWithMetadata as aF, type TiktokOAuthWithMetadata as aG, type LinkedInOAuthWithMetadata as aH, type AppleOAuthWithMetadata as aI, type FarcasterWithMetadata as aJ, type TelegramWithMetadata as aK, type CrossAppAccountWithMetadata as aL, type PasskeyWithMetadata as aM, type Email as aN, type Phone as aO, type TransactionUIOptions as aP, type ContractUIOptions as aQ, type NativeFundingConfig as aR, type MoonpayFundingConfig as aS, type PriceDisplayOptions as aT, type Farcaster as aU, type Passkey as aV, type LoginMethodOrderOption as aW, type SiweFlowState as aa, type UnsignedTransactionRequestWithChainId as ab, type BaseConnectedWalletType as ac, type SessionSignerInput as ad, type TelegramAuthFlowState as ae, type TypedMessage as af, type MessageTypes as ag, type SmartWallet as ah, type MoonpayConfig as ai, type MoonpayCurrencyCode as aj, type MoonpayPaymentMethod as ak, type Quantity as al, type TransactionLog as am, type TransactionReceipt as an, type NonEmptyArray as ao, type EmailWithMetadata as ap, type PhoneWithMetadata as aq, type WalletWithMetadata as ar, type Google as as, type Twitter as at, type Discord as au, type Github as av, type LinkedIn as aw, type Apple as ax, type Tiktok as ay, type Telegram as az, type LinkedAccountWithMetadata as b, type BaseConnectedSolanaWallet as c, type UserRecoveryMethod as d, type SupportedSolanaTransaction as e, type SolanaCluster as f, type CreateWalletOptions as g, type SendTransactionModalUIOptions as h, type SignMessageModalUIOptions as i, type SolanaStandardWallet as j, type SolanaFundingConfig as k, SolanaWalletConnector as l, type WalletClientType as m, type PrivyFarcasterSignerInitResponse as n, type MfaSubmitArgs as o, type SolanaRpcRequestType as p, type EthereumRpcResponseType as q, type SolanaRpcResponseType as r, type PrivyClientConfig as s, toSolanaWalletConnectors as t, type EIP1193Provider as u, type EntropyIdVerifier as v, type RequestArguments as w, WalletTimeoutError as x, WalletConnector as y, type ConnectedWalletMetadata as z };
|