@privy-io/react-auth 2.12.0 → 2.13.0-beta-20250501014923
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-CWqMAvEO.js +28 -0
- package/dist/cjs/{smart-wallets-BOO4AAyW.js → smart-wallets-DV0fgo1l.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-jRYT06Mr.js → useActiveWallet-CC5Y8aAV.js} +1 -1
- package/dist/cjs/{useFundWallet-Cgo-Ct91.js → useFundWallet-DDYDQHtp.js} +1 -1
- package/dist/dts/farcaster.d.mts +4 -1
- package/dist/dts/farcaster.d.ts +4 -1
- package/dist/dts/index.d.mts +10 -8
- package/dist/dts/index.d.ts +10 -8
- package/dist/dts/smart-wallets.d.mts +4 -1
- package/dist/dts/smart-wallets.d.ts +4 -1
- package/dist/dts/solana.d.mts +25 -7
- package/dist/dts/solana.d.ts +25 -7
- package/dist/dts/{types-Nqh9YCV3.d.mts → types-BG3I9l2r.d.mts} +51 -4
- package/dist/dts/{types-Nqh9YCV3.d.ts → types-BG3I9l2r.d.ts} +51 -4
- package/dist/dts/ui.d.mts +4 -1
- package/dist/dts/ui.d.ts +4 -1
- package/dist/dts/{useSolanaWallets-BSVQS05e.d.mts → useSolanaWallets-DDThoGl0.d.mts} +1 -1
- package/dist/dts/{useSolanaWallets-BSVQS05e.d.ts → useSolanaWallets-DDThoGl0.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-CpCLcFWH.mjs +28 -0
- package/dist/esm/{smart-wallets-C2dDEs0t.mjs → smart-wallets-DBw-WLUh.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-B62Sy0KW.mjs → useActiveWallet-CUzyYYbh.mjs} +1 -1
- package/dist/esm/{useFundWallet-D2_dle4r.mjs → useFundWallet-ChP1v4-x.mjs} +1 -1
- package/package.json +3 -3
- package/dist/cjs/privy-provider-WROKgGLv.js +0 -28
- package/dist/esm/privy-provider-CE4-s2JH.mjs +0 -28
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 {
|
|
4
|
-
export {
|
|
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, w as RequestArguments, x as WalletTimeoutError, y as WalletConnector, B as BaseConnectedEthereumWallet, z as ConnectedWalletMetadata, A as ConnectorType, D as WalletListEntry, G as ExternalWalletsConfig, H as BaseConnectedWallet, l as SolanaWalletConnector, U as User, I as ConnectWalletModalOptions, J as LoginModalOptions, g as CreateWalletOptions, W as Wallet, K as SetWalletRecoveryOptions, i as SignMessageModalUIOptions, N as SignTypedDataParams, M as MfaMethod, Q as UnsignedTransactionRequest, h as SendTransactionModalUIOptions, T as FundWalletConfig, V as ConnectedWallet, O as OAuthTokens, X as CrossAppProviderDetails, Y as OAuthProviderType, Z as MoonpaySignRequest, _ as MoonpaySignResponse, $ as SmartWalletConfig, a as LoginMethod, a0 as SiweWalletMetadata, a1 as TelegramAuthResult, a2 as TelegramWebAppData, a3 as OAuthUserInfo, a4 as SiwsMessageType, a5 as OAuthFlowState, a6 as LoginWithCode, a7 as OtpFlowState, a8 as PasskeyFlowState, a9 as SiweFlowState, aa as UnsignedTransactionRequestWithChainId, ab as BaseConnectedWalletType, C as ConnectedSolanaWallet, ac as SessionSignerInput, ad as TelegramAuthFlowState } from './types-BG3I9l2r.js';
|
|
4
|
+
export { aw as Apple, aH as AppleOAuthWithMetadata, aP as ContractUIOptions, az as CrossAppAccount, aK as CrossAppAccountWithMetadata, at as Discord, aD as DiscordOAuthWithMetadata, aM as Email, ao as EmailWithMetadata, aT as Farcaster, aI as FarcasterWithMetadata, au as Github, aE as GithubOAuthWithMetadata, ar as Google, aB as GoogleOAuthWithMetadata, aA as LinkedAccountType, b as LinkedAccountWithMetadata, av as LinkedIn, aG as LinkedInOAuthWithMetadata, aV as LoginMethodOrderOption, af as MessageTypes, ah as MoonpayConfig, ai as MoonpayCurrencyCode, aR as MoonpayFundingConfig, aj as MoonpayPaymentMethod, aQ as NativeFundingConfig, an as NonEmptyArray, aU as Passkey, aL as PasskeyWithMetadata, aN as Phone, ap as PhoneWithMetadata, aS as PriceDisplayOptions, P as PrivyErrorCode, ak as Quantity, ag as SmartWallet, f as SolanaCluster, k as SolanaFundingConfig, S as SolanaTransactionReceipt, e as SupportedSolanaTransaction, ay as Telegram, aJ as TelegramWithMetadata, ax as Tiktok, aF as TiktokOAuthWithMetadata, al as TransactionLog, am as TransactionReceipt, aO as TransactionUIOptions, as as Twitter, aC as TwitterOAuthWithMetadata, ae as TypedMessage, aq as WalletWithMetadata } from './types-BG3I9l2r.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,9 +16,12 @@ 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-DDThoGl0.js';
|
|
20
|
+
export { C as CallbackError, U as UseSolanaWalletsInterface, u as useSolanaWallets } from './useSolanaWallets-DDThoGl0.js';
|
|
21
21
|
import '@solana/wallet-adapter-base';
|
|
22
|
+
import '@solana/wallet-standard-features';
|
|
23
|
+
import '@wallet-standard/base';
|
|
24
|
+
import '@wallet-standard/features';
|
|
22
25
|
import '@metamask/eth-sig-util';
|
|
23
26
|
|
|
24
27
|
type MobileWalletConfig = {
|
|
@@ -2733,11 +2736,12 @@ declare class PrivyClient {
|
|
|
2733
2736
|
*
|
|
2734
2737
|
* @returns The user object.
|
|
2735
2738
|
*/
|
|
2736
|
-
linkWithSiws({ message, signature, walletClientType, connectorType, }: {
|
|
2739
|
+
linkWithSiws({ message, signature, walletClientType, connectorType, messageType, }: {
|
|
2737
2740
|
message: string;
|
|
2738
2741
|
signature: string;
|
|
2739
2742
|
walletClientType?: string;
|
|
2740
2743
|
connectorType?: string;
|
|
2744
|
+
messageType: SiwsMessageType;
|
|
2741
2745
|
}): Promise<User>;
|
|
2742
2746
|
updateUserAndIdToken(): Promise<User>;
|
|
2743
2747
|
scanTransaction(request: PrivyTransactionScanningInputType): Promise<PrivyTransactionScanningResponseType>;
|
|
@@ -3862,9 +3866,7 @@ interface UseSessionSignersInterface {
|
|
|
3862
3866
|
*/
|
|
3863
3867
|
addSessionSigners: ({ address, signers, }: {
|
|
3864
3868
|
address: string;
|
|
3865
|
-
signers:
|
|
3866
|
-
signerId: string;
|
|
3867
|
-
}[];
|
|
3869
|
+
signers: SessionSignerInput;
|
|
3868
3870
|
}) => Promise<{
|
|
3869
3871
|
user: User;
|
|
3870
3872
|
}>;
|
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 {
|
|
4
|
-
export {
|
|
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, w as RequestArguments, x as WalletTimeoutError, y as WalletConnector, B as BaseConnectedEthereumWallet, z as ConnectedWalletMetadata, A as ConnectorType, D as WalletListEntry, G as ExternalWalletsConfig, H as BaseConnectedWallet, l as SolanaWalletConnector, U as User, I as ConnectWalletModalOptions, J as LoginModalOptions, g as CreateWalletOptions, W as Wallet, K as SetWalletRecoveryOptions, i as SignMessageModalUIOptions, N as SignTypedDataParams, M as MfaMethod, Q as UnsignedTransactionRequest, h as SendTransactionModalUIOptions, T as FundWalletConfig, V as ConnectedWallet, O as OAuthTokens, X as CrossAppProviderDetails, Y as OAuthProviderType, Z as MoonpaySignRequest, _ as MoonpaySignResponse, $ as SmartWalletConfig, a as LoginMethod, a0 as SiweWalletMetadata, a1 as TelegramAuthResult, a2 as TelegramWebAppData, a3 as OAuthUserInfo, a4 as SiwsMessageType, a5 as OAuthFlowState, a6 as LoginWithCode, a7 as OtpFlowState, a8 as PasskeyFlowState, a9 as SiweFlowState, aa as UnsignedTransactionRequestWithChainId, ab as BaseConnectedWalletType, C as ConnectedSolanaWallet, ac as SessionSignerInput, ad as TelegramAuthFlowState } from './types-BG3I9l2r.js';
|
|
4
|
+
export { aw as Apple, aH as AppleOAuthWithMetadata, aP as ContractUIOptions, az as CrossAppAccount, aK as CrossAppAccountWithMetadata, at as Discord, aD as DiscordOAuthWithMetadata, aM as Email, ao as EmailWithMetadata, aT as Farcaster, aI as FarcasterWithMetadata, au as Github, aE as GithubOAuthWithMetadata, ar as Google, aB as GoogleOAuthWithMetadata, aA as LinkedAccountType, b as LinkedAccountWithMetadata, av as LinkedIn, aG as LinkedInOAuthWithMetadata, aV as LoginMethodOrderOption, af as MessageTypes, ah as MoonpayConfig, ai as MoonpayCurrencyCode, aR as MoonpayFundingConfig, aj as MoonpayPaymentMethod, aQ as NativeFundingConfig, an as NonEmptyArray, aU as Passkey, aL as PasskeyWithMetadata, aN as Phone, ap as PhoneWithMetadata, aS as PriceDisplayOptions, P as PrivyErrorCode, ak as Quantity, ag as SmartWallet, f as SolanaCluster, k as SolanaFundingConfig, S as SolanaTransactionReceipt, e as SupportedSolanaTransaction, ay as Telegram, aJ as TelegramWithMetadata, ax as Tiktok, aF as TiktokOAuthWithMetadata, al as TransactionLog, am as TransactionReceipt, aO as TransactionUIOptions, as as Twitter, aC as TwitterOAuthWithMetadata, ae as TypedMessage, aq as WalletWithMetadata } from './types-BG3I9l2r.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,9 +16,12 @@ 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-DDThoGl0.js';
|
|
20
|
+
export { C as CallbackError, U as UseSolanaWalletsInterface, u as useSolanaWallets } from './useSolanaWallets-DDThoGl0.js';
|
|
21
21
|
import '@solana/wallet-adapter-base';
|
|
22
|
+
import '@solana/wallet-standard-features';
|
|
23
|
+
import '@wallet-standard/base';
|
|
24
|
+
import '@wallet-standard/features';
|
|
22
25
|
import '@metamask/eth-sig-util';
|
|
23
26
|
|
|
24
27
|
type MobileWalletConfig = {
|
|
@@ -2733,11 +2736,12 @@ declare class PrivyClient {
|
|
|
2733
2736
|
*
|
|
2734
2737
|
* @returns The user object.
|
|
2735
2738
|
*/
|
|
2736
|
-
linkWithSiws({ message, signature, walletClientType, connectorType, }: {
|
|
2739
|
+
linkWithSiws({ message, signature, walletClientType, connectorType, messageType, }: {
|
|
2737
2740
|
message: string;
|
|
2738
2741
|
signature: string;
|
|
2739
2742
|
walletClientType?: string;
|
|
2740
2743
|
connectorType?: string;
|
|
2744
|
+
messageType: SiwsMessageType;
|
|
2741
2745
|
}): Promise<User>;
|
|
2742
2746
|
updateUserAndIdToken(): Promise<User>;
|
|
2743
2747
|
scanTransaction(request: PrivyTransactionScanningInputType): Promise<PrivyTransactionScanningResponseType>;
|
|
@@ -3862,9 +3866,7 @@ interface UseSessionSignersInterface {
|
|
|
3862
3866
|
*/
|
|
3863
3867
|
addSessionSigners: ({ address, signers, }: {
|
|
3864
3868
|
address: string;
|
|
3865
|
-
signers:
|
|
3866
|
-
signerId: string;
|
|
3867
|
-
}[];
|
|
3869
|
+
signers: SessionSignerInput;
|
|
3868
3870
|
}) => Promise<{
|
|
3869
3871
|
user: User;
|
|
3870
3872
|
}>;
|
|
@@ -7,9 +7,12 @@ 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-BG3I9l2r.js';
|
|
11
11
|
import '@solana/wallet-adapter-base';
|
|
12
12
|
import '@privy-io/public-api';
|
|
13
|
+
import '@solana/wallet-standard-features';
|
|
14
|
+
import '@wallet-standard/base';
|
|
15
|
+
import '@wallet-standard/features';
|
|
13
16
|
import '@metamask/eth-sig-util';
|
|
14
17
|
import '@solana/web3.js';
|
|
15
18
|
import 'eventemitter3';
|
|
@@ -7,9 +7,12 @@ 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-BG3I9l2r.js';
|
|
11
11
|
import '@solana/wallet-adapter-base';
|
|
12
12
|
import '@privy-io/public-api';
|
|
13
|
+
import '@solana/wallet-standard-features';
|
|
14
|
+
import '@wallet-standard/base';
|
|
15
|
+
import '@wallet-standard/features';
|
|
13
16
|
import '@metamask/eth-sig-util';
|
|
14
17
|
import '@solana/web3.js';
|
|
15
18
|
import 'eventemitter3';
|
package/dist/dts/solana.d.mts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { W as Wallet, j as SolanaFundingConfig, e as SupportedSolanaTransaction, h as SendTransactionModalUIOptions, S as SolanaTransactionReceipt, i as SignMessageModalUIOptions } from './types-
|
|
2
|
-
export { C as ConnectedSolanaWallet,
|
|
3
|
-
import { P as PrivyEvents } from './useSolanaWallets-
|
|
4
|
-
export { U as UseSolanaWalletsInterface, u as useSolanaWallets } from './useSolanaWallets-
|
|
5
|
-
import {
|
|
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-BG3I9l2r.js';
|
|
2
|
+
export { C as ConnectedSolanaWallet, l as SolanaAdapterConnector, t as toSolanaWalletConnectors } from './types-BG3I9l2r.js';
|
|
3
|
+
import { P as PrivyEvents } from './useSolanaWallets-DDThoGl0.js';
|
|
4
|
+
export { U as UseSolanaWalletsInterface, u as useSolanaWallets } from './useSolanaWallets-DDThoGl0.js';
|
|
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';
|
|
@@ -102,7 +102,7 @@ type PrivyFeature = {
|
|
|
102
102
|
/**
|
|
103
103
|
* Privy standard wallet implementation.
|
|
104
104
|
*/
|
|
105
|
-
declare class PrivyStandardWallet implements
|
|
105
|
+
declare class PrivyStandardWallet implements SolanaStandardWallet {
|
|
106
106
|
#private;
|
|
107
107
|
get version(): "1.0.0";
|
|
108
108
|
get name(): string;
|
|
@@ -110,6 +110,7 @@ declare class PrivyStandardWallet implements WalletWithSolanaFeatures {
|
|
|
110
110
|
get chains(): ("solana:mainnet" | "solana:devnet" | "solana:testnet")[];
|
|
111
111
|
get features(): StandardConnectFeature & StandardDisconnectFeature & StandardEventsFeature & SolanaSignAndSendTransactionFeature & SolanaSignTransactionFeature & SolanaSignMessageFeature & PrivyFeature;
|
|
112
112
|
get accounts(): PrivyWalletAccount[];
|
|
113
|
+
get isPrivyWallet(): boolean;
|
|
113
114
|
constructor({ name, icon, version, injection, wallets, }: {
|
|
114
115
|
name: string;
|
|
115
116
|
icon: WalletIcon;
|
|
@@ -139,6 +140,21 @@ interface UsePrivyStandardWalletInterface {
|
|
|
139
140
|
*/
|
|
140
141
|
declare function usePrivyStandardWallet(): UsePrivyStandardWalletInterface;
|
|
141
142
|
|
|
143
|
+
/**
|
|
144
|
+
* Use this hook to get the wallets that implement the Solana Standard Wallet interface.
|
|
145
|
+
*/
|
|
146
|
+
interface UseSolanaStandardWalletsInterface {
|
|
147
|
+
/**
|
|
148
|
+
* Whether the wallets are ready to be used.
|
|
149
|
+
*/
|
|
150
|
+
ready: boolean;
|
|
151
|
+
/**
|
|
152
|
+
* The wallets that implement the Solana Standard Wallet interface.
|
|
153
|
+
*/
|
|
154
|
+
wallets: SolanaStandardWallet[];
|
|
155
|
+
}
|
|
156
|
+
declare function useSolanaStandardWallets(): UseSolanaStandardWalletsInterface;
|
|
157
|
+
|
|
142
158
|
/**
|
|
143
159
|
* Method to fund a user's Solana wallet via Privy's funding feature by inputting a valid wallet address.
|
|
144
160
|
* You can access the fields and methods documented here via the {@link useFundWallet} hook.
|
|
@@ -171,6 +187,8 @@ declare const useFundWallet: (callbacks?: PrivyEvents["fundSolanaWallet"]) => Us
|
|
|
171
187
|
|
|
172
188
|
declare const useSolanaFundingPlugin: () => void;
|
|
173
189
|
|
|
190
|
+
declare const useSolanaLedgerPlugin: () => void;
|
|
191
|
+
|
|
174
192
|
/**
|
|
175
193
|
* Method to send a Solana transaction via a user's embedded wallet.
|
|
176
194
|
* You can access the methods documented here via the {@link useSendTransaction} hook from `@privy-io/react-auth/solana`..
|
|
@@ -295,4 +313,4 @@ declare function useSignMessage(callbacks?: PrivyEvents['signSolanaMessage']): {
|
|
|
295
313
|
}) => Promise<Uint8Array>;
|
|
296
314
|
};
|
|
297
315
|
|
|
298
|
-
export { PrivyStandardWallet, SolanaTransactionReceipt, SupportedSolanaTransaction, type UseFundWalletInterface, type UseImportWalletInterface, type UsePrivyStandardWalletInterface, type UseSendTransactionInterface, type UseSignMessageInterface, type UseSignTransactionInterface, useFundWallet, useImportWallet, usePrivyStandardWallet, useSendTransaction, useSignMessage, useSignTransaction, useSolanaFundingPlugin };
|
|
316
|
+
export { PrivyStandardWallet, SolanaStandardWallet, SolanaTransactionReceipt, SupportedSolanaTransaction, type UseFundWalletInterface, type UseImportWalletInterface, type UsePrivyStandardWalletInterface, type UseSendTransactionInterface, type UseSignMessageInterface, type UseSignTransactionInterface, type UseSolanaStandardWalletsInterface, useFundWallet, useImportWallet, usePrivyStandardWallet, useSendTransaction, useSignMessage, useSignTransaction, useSolanaFundingPlugin, useSolanaLedgerPlugin, useSolanaStandardWallets };
|
package/dist/dts/solana.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { W as Wallet, j as SolanaFundingConfig, e as SupportedSolanaTransaction, h as SendTransactionModalUIOptions, S as SolanaTransactionReceipt, i as SignMessageModalUIOptions } from './types-
|
|
2
|
-
export { C as ConnectedSolanaWallet,
|
|
3
|
-
import { P as PrivyEvents } from './useSolanaWallets-
|
|
4
|
-
export { U as UseSolanaWalletsInterface, u as useSolanaWallets } from './useSolanaWallets-
|
|
5
|
-
import {
|
|
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-BG3I9l2r.js';
|
|
2
|
+
export { C as ConnectedSolanaWallet, l as SolanaAdapterConnector, t as toSolanaWalletConnectors } from './types-BG3I9l2r.js';
|
|
3
|
+
import { P as PrivyEvents } from './useSolanaWallets-DDThoGl0.js';
|
|
4
|
+
export { U as UseSolanaWalletsInterface, u as useSolanaWallets } from './useSolanaWallets-DDThoGl0.js';
|
|
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';
|
|
@@ -102,7 +102,7 @@ type PrivyFeature = {
|
|
|
102
102
|
/**
|
|
103
103
|
* Privy standard wallet implementation.
|
|
104
104
|
*/
|
|
105
|
-
declare class PrivyStandardWallet implements
|
|
105
|
+
declare class PrivyStandardWallet implements SolanaStandardWallet {
|
|
106
106
|
#private;
|
|
107
107
|
get version(): "1.0.0";
|
|
108
108
|
get name(): string;
|
|
@@ -110,6 +110,7 @@ declare class PrivyStandardWallet implements WalletWithSolanaFeatures {
|
|
|
110
110
|
get chains(): ("solana:mainnet" | "solana:devnet" | "solana:testnet")[];
|
|
111
111
|
get features(): StandardConnectFeature & StandardDisconnectFeature & StandardEventsFeature & SolanaSignAndSendTransactionFeature & SolanaSignTransactionFeature & SolanaSignMessageFeature & PrivyFeature;
|
|
112
112
|
get accounts(): PrivyWalletAccount[];
|
|
113
|
+
get isPrivyWallet(): boolean;
|
|
113
114
|
constructor({ name, icon, version, injection, wallets, }: {
|
|
114
115
|
name: string;
|
|
115
116
|
icon: WalletIcon;
|
|
@@ -139,6 +140,21 @@ interface UsePrivyStandardWalletInterface {
|
|
|
139
140
|
*/
|
|
140
141
|
declare function usePrivyStandardWallet(): UsePrivyStandardWalletInterface;
|
|
141
142
|
|
|
143
|
+
/**
|
|
144
|
+
* Use this hook to get the wallets that implement the Solana Standard Wallet interface.
|
|
145
|
+
*/
|
|
146
|
+
interface UseSolanaStandardWalletsInterface {
|
|
147
|
+
/**
|
|
148
|
+
* Whether the wallets are ready to be used.
|
|
149
|
+
*/
|
|
150
|
+
ready: boolean;
|
|
151
|
+
/**
|
|
152
|
+
* The wallets that implement the Solana Standard Wallet interface.
|
|
153
|
+
*/
|
|
154
|
+
wallets: SolanaStandardWallet[];
|
|
155
|
+
}
|
|
156
|
+
declare function useSolanaStandardWallets(): UseSolanaStandardWalletsInterface;
|
|
157
|
+
|
|
142
158
|
/**
|
|
143
159
|
* Method to fund a user's Solana wallet via Privy's funding feature by inputting a valid wallet address.
|
|
144
160
|
* You can access the fields and methods documented here via the {@link useFundWallet} hook.
|
|
@@ -171,6 +187,8 @@ declare const useFundWallet: (callbacks?: PrivyEvents["fundSolanaWallet"]) => Us
|
|
|
171
187
|
|
|
172
188
|
declare const useSolanaFundingPlugin: () => void;
|
|
173
189
|
|
|
190
|
+
declare const useSolanaLedgerPlugin: () => void;
|
|
191
|
+
|
|
174
192
|
/**
|
|
175
193
|
* Method to send a Solana transaction via a user's embedded wallet.
|
|
176
194
|
* You can access the methods documented here via the {@link useSendTransaction} hook from `@privy-io/react-auth/solana`..
|
|
@@ -295,4 +313,4 @@ declare function useSignMessage(callbacks?: PrivyEvents['signSolanaMessage']): {
|
|
|
295
313
|
}) => Promise<Uint8Array>;
|
|
296
314
|
};
|
|
297
315
|
|
|
298
|
-
export { PrivyStandardWallet, SolanaTransactionReceipt, SupportedSolanaTransaction, type UseFundWalletInterface, type UseImportWalletInterface, type UsePrivyStandardWalletInterface, type UseSendTransactionInterface, type UseSignMessageInterface, type UseSignTransactionInterface, useFundWallet, useImportWallet, usePrivyStandardWallet, useSendTransaction, useSignMessage, useSignTransaction, useSolanaFundingPlugin };
|
|
316
|
+
export { PrivyStandardWallet, SolanaStandardWallet, SolanaTransactionReceipt, SupportedSolanaTransaction, type UseFundWalletInterface, type UseImportWalletInterface, type UsePrivyStandardWalletInterface, type UseSendTransactionInterface, type UseSignMessageInterface, type UseSignTransactionInterface, type UseSolanaStandardWalletsInterface, useFundWallet, useImportWallet, usePrivyStandardWallet, useSendTransaction, useSignMessage, useSignTransaction, useSolanaFundingPlugin, useSolanaLedgerPlugin, useSolanaStandardWallets };
|
|
@@ -1,8 +1,11 @@
|
|
|
1
|
-
import { Adapter, WalletError, MessageSignerWalletAdapterProps, WalletAdapterProps, SignerWalletAdapterProps } from '@solana/wallet-adapter-base';
|
|
1
|
+
import { StandardWalletAdapter, Adapter, WalletError, MessageSignerWalletAdapterProps, WalletAdapterProps, SignerWalletAdapterProps } from '@solana/wallet-adapter-base';
|
|
2
2
|
import { ReactElement } from 'react';
|
|
3
3
|
import { Hex } from 'viem';
|
|
4
4
|
import { Cluster as Cluster$1, ChainLikeWithId, CountryCode, Chain } from '@privy-io/js-sdk-core';
|
|
5
5
|
import { SmartWalletType, CustomMetadataType, PasskeyAuthenticateInputType } from '@privy-io/public-api';
|
|
6
|
+
import { SolanaSignMessageFeature, SolanaSignTransactionFeature, SolanaSignAndSendTransactionFeature, SolanaSignInFeature } from '@solana/wallet-standard-features';
|
|
7
|
+
import { WalletWithFeatures } from '@wallet-standard/base';
|
|
8
|
+
import { StandardConnectFeature, StandardDisconnectFeature, StandardEventsFeature } from '@wallet-standard/features';
|
|
6
9
|
import { TypedMessage as TypedMessage$1, MessageTypes as MessageTypes$1 } from '@metamask/eth-sig-util';
|
|
7
10
|
import { Transaction, VersionedTransaction, ParsedTransactionWithMeta, Cluster } from '@solana/web3.js';
|
|
8
11
|
import EventEmitter from 'eventemitter3';
|
|
@@ -174,6 +177,19 @@ interface RequestArguments {
|
|
|
174
177
|
readonly params?: readonly unknown[] | object | any;
|
|
175
178
|
}
|
|
176
179
|
|
|
180
|
+
/**
|
|
181
|
+
* Helper type for defining a Standard Wallet with a union of Solana features.
|
|
182
|
+
*/
|
|
183
|
+
type SolanaStandardWallet = WalletWithFeatures<{
|
|
184
|
+
'standard:connect'?: StandardConnectFeature['standard:connect'];
|
|
185
|
+
'standard:disconnect'?: StandardDisconnectFeature['standard:disconnect'];
|
|
186
|
+
'standard:events'?: StandardEventsFeature['standard:events'];
|
|
187
|
+
'solana:signMessage'?: SolanaSignMessageFeature['solana:signMessage'];
|
|
188
|
+
'solana:signTransaction'?: SolanaSignTransactionFeature['solana:signTransaction'];
|
|
189
|
+
'solana:signAndSendTransaction'?: SolanaSignAndSendTransactionFeature['solana:signAndSendTransaction'];
|
|
190
|
+
'solana:signIn'?: SolanaSignInFeature['solana:signIn'];
|
|
191
|
+
}>;
|
|
192
|
+
|
|
177
193
|
/**
|
|
178
194
|
* Represents a connection with a single Solana wallet provider. Manages wallet state
|
|
179
195
|
* including ongoing connection status, and exposes methods for connecting and disconnecting.
|
|
@@ -184,8 +200,9 @@ declare class SolanaWalletConnector extends WalletConnector {
|
|
|
184
200
|
wallets: BaseConnectedSolanaWallet[];
|
|
185
201
|
private adapter;
|
|
186
202
|
private autoConnectEnabled;
|
|
187
|
-
constructor(adapter:
|
|
203
|
+
constructor(adapter: StandardWalletAdapter, autoConnectEnabled: boolean);
|
|
188
204
|
get isInstalled(): boolean;
|
|
205
|
+
get wallet(): SolanaStandardWallet;
|
|
189
206
|
/**
|
|
190
207
|
* Builds a connected wallet object to be exposed to the developer. This object
|
|
191
208
|
* contains the address and a few helper methods.
|
|
@@ -609,11 +626,25 @@ interface BaseConnectedSolanaWallet extends BaseConnectedWallet {
|
|
|
609
626
|
/**
|
|
610
627
|
* Returns a light provider for interfacing with this wallet. Support message signing
|
|
611
628
|
* on embedded and external wallets using an internal interface.
|
|
629
|
+
*
|
|
630
|
+
* @deprecated Use `useSolanaStandardWallets` to get the wallet provider for this wallet.
|
|
612
631
|
*/
|
|
613
632
|
getProvider: () => Promise<SolanaProvider>;
|
|
633
|
+
/**
|
|
634
|
+
* @deprecated Use `useSignMessage` from the solana package instead.
|
|
635
|
+
*/
|
|
614
636
|
signMessage: MessageSignerWalletAdapterProps['signMessage'];
|
|
637
|
+
/**
|
|
638
|
+
* @deprecated Use `useSendTransaction` from the solana package instead.
|
|
639
|
+
*/
|
|
615
640
|
sendTransaction: WalletAdapterProps['sendTransaction'];
|
|
641
|
+
/**
|
|
642
|
+
* @deprecated Use `useSignTransaction` from the solana package instead.
|
|
643
|
+
*/
|
|
616
644
|
signTransaction: SignerWalletAdapterProps['signTransaction'];
|
|
645
|
+
/**
|
|
646
|
+
* @deprecated Use `useSignTransaction` from the solana package instead.
|
|
647
|
+
*/
|
|
617
648
|
signAllTransactions: SignerWalletAdapterProps['signAllTransactions'];
|
|
618
649
|
}
|
|
619
650
|
/**
|
|
@@ -1085,6 +1116,13 @@ type ExternalWalletsConfig = {
|
|
|
1085
1116
|
};
|
|
1086
1117
|
solana?: {
|
|
1087
1118
|
connectors?: SolanaWalletConnectorsConfig;
|
|
1119
|
+
/**
|
|
1120
|
+
* If true, allows users to authenticate into Privy using a Solana Ledger wallet by forcing the user to sign a SIWS transaction
|
|
1121
|
+
* rather than a SIWS message, which is currently not supported by Ledger Solana
|
|
1122
|
+
*
|
|
1123
|
+
* @experimental This feature is experimental
|
|
1124
|
+
*/
|
|
1125
|
+
allowLedgerSignInViaPhantom?: boolean;
|
|
1088
1126
|
};
|
|
1089
1127
|
/**
|
|
1090
1128
|
* If true, disables all connections to external wallets.
|
|
@@ -1757,7 +1795,8 @@ type UnsignedTransactionRequestWithChainId = UnsignedTransactionRequest & {
|
|
|
1757
1795
|
chainId: number;
|
|
1758
1796
|
};
|
|
1759
1797
|
type LoginModalOptions = RuntimeLoginOverridableOptions & {
|
|
1760
|
-
|
|
1798
|
+
isLedgerSolanaSignInEnabled?: boolean;
|
|
1799
|
+
isSigningInWithLedgerSolana?: boolean;
|
|
1761
1800
|
};
|
|
1762
1801
|
type ConnectWalletModalOptions = ExternalConnectWalletModalOptions;
|
|
1763
1802
|
type PrivyFarcasterSignerInitResponse = {
|
|
@@ -1843,6 +1882,14 @@ type LoginToFrame = {
|
|
|
1843
1882
|
*/
|
|
1844
1883
|
signature: string;
|
|
1845
1884
|
};
|
|
1885
|
+
/**
|
|
1886
|
+
* For SIWS flows, indicates whether or not the SIWS message is plaintext, or wrapped in a memo transaction
|
|
1887
|
+
*/
|
|
1888
|
+
type SiwsMessageType = 'plain' | 'transaction';
|
|
1889
|
+
type SessionSignerInput = {
|
|
1890
|
+
signerId: string;
|
|
1891
|
+
policyIds?: string[];
|
|
1892
|
+
}[];
|
|
1846
1893
|
|
|
1847
1894
|
/**
|
|
1848
1895
|
* We support a subset of the provider methods found here:
|
|
@@ -1970,4 +2017,4 @@ type EthereumRpcResponseType = eth_signTransactionResponse | eth_populateTransac
|
|
|
1970
2017
|
type SolanaRpcRequestType = solana_signMessage;
|
|
1971
2018
|
type SolanaRpcResponseType = solana_signMessageResponse;
|
|
1972
2019
|
|
|
1973
|
-
export { type
|
|
2020
|
+
export { type SmartWalletConfig 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 ExternalWalletsConfig as G, type BaseConnectedWallet as H, type ConnectWalletModalOptions as I, type LoginModalOptions as J, type SetWalletRecoveryOptions as K, type LoginToFrame 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 SolanaTransactionReceipt as S, type FundWalletConfig as T, type User as U, type ConnectedWallet as V, type Wallet as W, type CrossAppProviderDetails as X, type OAuthProviderType as Y, type MoonpaySignRequest as Z, type MoonpaySignResponse as _, type LoginMethod as a, type SiweWalletMetadata as a0, type TelegramAuthResult as a1, type TelegramWebAppData as a2, type OAuthUserInfo as a3, type SiwsMessageType as a4, type OAuthFlowState as a5, type LoginWithCode as a6, type OtpFlowState as a7, type PasskeyFlowState as a8, type SiweFlowState as a9, type LinkedAccountType as aA, type GoogleOAuthWithMetadata as aB, type TwitterOAuthWithMetadata as aC, type DiscordOAuthWithMetadata as aD, type GithubOAuthWithMetadata as aE, type TiktokOAuthWithMetadata 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 MoonpayFundingConfig as aR, type PriceDisplayOptions as aS, type Farcaster as aT, type Passkey as aU, type LoginMethodOrderOption as aV, type UnsignedTransactionRequestWithChainId as aa, type BaseConnectedWalletType as ab, type SessionSignerInput as ac, type TelegramAuthFlowState as ad, type TypedMessage as ae, type MessageTypes as af, type SmartWallet as ag, type MoonpayConfig as ah, type MoonpayCurrencyCode as ai, type MoonpayPaymentMethod as aj, type Quantity as ak, type TransactionLog as al, type TransactionReceipt as am, type NonEmptyArray as an, type EmailWithMetadata as ao, type PhoneWithMetadata as ap, type WalletWithMetadata as aq, type Google as ar, type Twitter as as, type Discord as at, type Github as au, type LinkedIn as av, type Apple as aw, type Tiktok as ax, type Telegram as ay, type CrossAppAccount 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,11 @@
|
|
|
1
|
-
import { Adapter, WalletError, MessageSignerWalletAdapterProps, WalletAdapterProps, SignerWalletAdapterProps } from '@solana/wallet-adapter-base';
|
|
1
|
+
import { StandardWalletAdapter, Adapter, WalletError, MessageSignerWalletAdapterProps, WalletAdapterProps, SignerWalletAdapterProps } from '@solana/wallet-adapter-base';
|
|
2
2
|
import { ReactElement } from 'react';
|
|
3
3
|
import { Hex } from 'viem';
|
|
4
4
|
import { Cluster as Cluster$1, ChainLikeWithId, CountryCode, Chain } from '@privy-io/js-sdk-core';
|
|
5
5
|
import { SmartWalletType, CustomMetadataType, PasskeyAuthenticateInputType } from '@privy-io/public-api';
|
|
6
|
+
import { SolanaSignMessageFeature, SolanaSignTransactionFeature, SolanaSignAndSendTransactionFeature, SolanaSignInFeature } from '@solana/wallet-standard-features';
|
|
7
|
+
import { WalletWithFeatures } from '@wallet-standard/base';
|
|
8
|
+
import { StandardConnectFeature, StandardDisconnectFeature, StandardEventsFeature } from '@wallet-standard/features';
|
|
6
9
|
import { TypedMessage as TypedMessage$1, MessageTypes as MessageTypes$1 } from '@metamask/eth-sig-util';
|
|
7
10
|
import { Transaction, VersionedTransaction, ParsedTransactionWithMeta, Cluster } from '@solana/web3.js';
|
|
8
11
|
import EventEmitter from 'eventemitter3';
|
|
@@ -174,6 +177,19 @@ interface RequestArguments {
|
|
|
174
177
|
readonly params?: readonly unknown[] | object | any;
|
|
175
178
|
}
|
|
176
179
|
|
|
180
|
+
/**
|
|
181
|
+
* Helper type for defining a Standard Wallet with a union of Solana features.
|
|
182
|
+
*/
|
|
183
|
+
type SolanaStandardWallet = WalletWithFeatures<{
|
|
184
|
+
'standard:connect'?: StandardConnectFeature['standard:connect'];
|
|
185
|
+
'standard:disconnect'?: StandardDisconnectFeature['standard:disconnect'];
|
|
186
|
+
'standard:events'?: StandardEventsFeature['standard:events'];
|
|
187
|
+
'solana:signMessage'?: SolanaSignMessageFeature['solana:signMessage'];
|
|
188
|
+
'solana:signTransaction'?: SolanaSignTransactionFeature['solana:signTransaction'];
|
|
189
|
+
'solana:signAndSendTransaction'?: SolanaSignAndSendTransactionFeature['solana:signAndSendTransaction'];
|
|
190
|
+
'solana:signIn'?: SolanaSignInFeature['solana:signIn'];
|
|
191
|
+
}>;
|
|
192
|
+
|
|
177
193
|
/**
|
|
178
194
|
* Represents a connection with a single Solana wallet provider. Manages wallet state
|
|
179
195
|
* including ongoing connection status, and exposes methods for connecting and disconnecting.
|
|
@@ -184,8 +200,9 @@ declare class SolanaWalletConnector extends WalletConnector {
|
|
|
184
200
|
wallets: BaseConnectedSolanaWallet[];
|
|
185
201
|
private adapter;
|
|
186
202
|
private autoConnectEnabled;
|
|
187
|
-
constructor(adapter:
|
|
203
|
+
constructor(adapter: StandardWalletAdapter, autoConnectEnabled: boolean);
|
|
188
204
|
get isInstalled(): boolean;
|
|
205
|
+
get wallet(): SolanaStandardWallet;
|
|
189
206
|
/**
|
|
190
207
|
* Builds a connected wallet object to be exposed to the developer. This object
|
|
191
208
|
* contains the address and a few helper methods.
|
|
@@ -609,11 +626,25 @@ interface BaseConnectedSolanaWallet extends BaseConnectedWallet {
|
|
|
609
626
|
/**
|
|
610
627
|
* Returns a light provider for interfacing with this wallet. Support message signing
|
|
611
628
|
* on embedded and external wallets using an internal interface.
|
|
629
|
+
*
|
|
630
|
+
* @deprecated Use `useSolanaStandardWallets` to get the wallet provider for this wallet.
|
|
612
631
|
*/
|
|
613
632
|
getProvider: () => Promise<SolanaProvider>;
|
|
633
|
+
/**
|
|
634
|
+
* @deprecated Use `useSignMessage` from the solana package instead.
|
|
635
|
+
*/
|
|
614
636
|
signMessage: MessageSignerWalletAdapterProps['signMessage'];
|
|
637
|
+
/**
|
|
638
|
+
* @deprecated Use `useSendTransaction` from the solana package instead.
|
|
639
|
+
*/
|
|
615
640
|
sendTransaction: WalletAdapterProps['sendTransaction'];
|
|
641
|
+
/**
|
|
642
|
+
* @deprecated Use `useSignTransaction` from the solana package instead.
|
|
643
|
+
*/
|
|
616
644
|
signTransaction: SignerWalletAdapterProps['signTransaction'];
|
|
645
|
+
/**
|
|
646
|
+
* @deprecated Use `useSignTransaction` from the solana package instead.
|
|
647
|
+
*/
|
|
617
648
|
signAllTransactions: SignerWalletAdapterProps['signAllTransactions'];
|
|
618
649
|
}
|
|
619
650
|
/**
|
|
@@ -1085,6 +1116,13 @@ type ExternalWalletsConfig = {
|
|
|
1085
1116
|
};
|
|
1086
1117
|
solana?: {
|
|
1087
1118
|
connectors?: SolanaWalletConnectorsConfig;
|
|
1119
|
+
/**
|
|
1120
|
+
* If true, allows users to authenticate into Privy using a Solana Ledger wallet by forcing the user to sign a SIWS transaction
|
|
1121
|
+
* rather than a SIWS message, which is currently not supported by Ledger Solana
|
|
1122
|
+
*
|
|
1123
|
+
* @experimental This feature is experimental
|
|
1124
|
+
*/
|
|
1125
|
+
allowLedgerSignInViaPhantom?: boolean;
|
|
1088
1126
|
};
|
|
1089
1127
|
/**
|
|
1090
1128
|
* If true, disables all connections to external wallets.
|
|
@@ -1757,7 +1795,8 @@ type UnsignedTransactionRequestWithChainId = UnsignedTransactionRequest & {
|
|
|
1757
1795
|
chainId: number;
|
|
1758
1796
|
};
|
|
1759
1797
|
type LoginModalOptions = RuntimeLoginOverridableOptions & {
|
|
1760
|
-
|
|
1798
|
+
isLedgerSolanaSignInEnabled?: boolean;
|
|
1799
|
+
isSigningInWithLedgerSolana?: boolean;
|
|
1761
1800
|
};
|
|
1762
1801
|
type ConnectWalletModalOptions = ExternalConnectWalletModalOptions;
|
|
1763
1802
|
type PrivyFarcasterSignerInitResponse = {
|
|
@@ -1843,6 +1882,14 @@ type LoginToFrame = {
|
|
|
1843
1882
|
*/
|
|
1844
1883
|
signature: string;
|
|
1845
1884
|
};
|
|
1885
|
+
/**
|
|
1886
|
+
* For SIWS flows, indicates whether or not the SIWS message is plaintext, or wrapped in a memo transaction
|
|
1887
|
+
*/
|
|
1888
|
+
type SiwsMessageType = 'plain' | 'transaction';
|
|
1889
|
+
type SessionSignerInput = {
|
|
1890
|
+
signerId: string;
|
|
1891
|
+
policyIds?: string[];
|
|
1892
|
+
}[];
|
|
1846
1893
|
|
|
1847
1894
|
/**
|
|
1848
1895
|
* We support a subset of the provider methods found here:
|
|
@@ -1970,4 +2017,4 @@ type EthereumRpcResponseType = eth_signTransactionResponse | eth_populateTransac
|
|
|
1970
2017
|
type SolanaRpcRequestType = solana_signMessage;
|
|
1971
2018
|
type SolanaRpcResponseType = solana_signMessageResponse;
|
|
1972
2019
|
|
|
1973
|
-
export { type
|
|
2020
|
+
export { type SmartWalletConfig 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 ExternalWalletsConfig as G, type BaseConnectedWallet as H, type ConnectWalletModalOptions as I, type LoginModalOptions as J, type SetWalletRecoveryOptions as K, type LoginToFrame 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 SolanaTransactionReceipt as S, type FundWalletConfig as T, type User as U, type ConnectedWallet as V, type Wallet as W, type CrossAppProviderDetails as X, type OAuthProviderType as Y, type MoonpaySignRequest as Z, type MoonpaySignResponse as _, type LoginMethod as a, type SiweWalletMetadata as a0, type TelegramAuthResult as a1, type TelegramWebAppData as a2, type OAuthUserInfo as a3, type SiwsMessageType as a4, type OAuthFlowState as a5, type LoginWithCode as a6, type OtpFlowState as a7, type PasskeyFlowState as a8, type SiweFlowState as a9, type LinkedAccountType as aA, type GoogleOAuthWithMetadata as aB, type TwitterOAuthWithMetadata as aC, type DiscordOAuthWithMetadata as aD, type GithubOAuthWithMetadata as aE, type TiktokOAuthWithMetadata 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 MoonpayFundingConfig as aR, type PriceDisplayOptions as aS, type Farcaster as aT, type Passkey as aU, type LoginMethodOrderOption as aV, type UnsignedTransactionRequestWithChainId as aa, type BaseConnectedWalletType as ab, type SessionSignerInput as ac, type TelegramAuthFlowState as ad, type TypedMessage as ae, type MessageTypes as af, type SmartWallet as ag, type MoonpayConfig as ah, type MoonpayCurrencyCode as ai, type MoonpayPaymentMethod as aj, type Quantity as ak, type TransactionLog as al, type TransactionReceipt as am, type NonEmptyArray as an, type EmailWithMetadata as ao, type PhoneWithMetadata as ap, type WalletWithMetadata as aq, type Google as ar, type Twitter as as, type Discord as at, type Github as au, type LinkedIn as av, type Apple as aw, type Tiktok as ax, type Telegram as ay, type CrossAppAccount 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 };
|
package/dist/dts/ui.d.mts
CHANGED
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import { R as RuntimeLoginOverridableOptions } from './types-
|
|
2
|
+
import { R as RuntimeLoginOverridableOptions } from './types-BG3I9l2r.js';
|
|
3
3
|
import { Hex } from 'viem';
|
|
4
4
|
import { Chain, Cluster } from '@privy-io/js-sdk-core';
|
|
5
5
|
import '@solana/wallet-adapter-base';
|
|
6
6
|
import 'react';
|
|
7
7
|
import '@privy-io/public-api';
|
|
8
|
+
import '@solana/wallet-standard-features';
|
|
9
|
+
import '@wallet-standard/base';
|
|
10
|
+
import '@wallet-standard/features';
|
|
8
11
|
import '@metamask/eth-sig-util';
|
|
9
12
|
import '@solana/web3.js';
|
|
10
13
|
import 'eventemitter3';
|
package/dist/dts/ui.d.ts
CHANGED
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import { R as RuntimeLoginOverridableOptions } from './types-
|
|
2
|
+
import { R as RuntimeLoginOverridableOptions } from './types-BG3I9l2r.js';
|
|
3
3
|
import { Hex } from 'viem';
|
|
4
4
|
import { Chain, Cluster } from '@privy-io/js-sdk-core';
|
|
5
5
|
import '@solana/wallet-adapter-base';
|
|
6
6
|
import 'react';
|
|
7
7
|
import '@privy-io/public-api';
|
|
8
|
+
import '@solana/wallet-standard-features';
|
|
9
|
+
import '@wallet-standard/base';
|
|
10
|
+
import '@wallet-standard/features';
|
|
8
11
|
import '@metamask/eth-sig-util';
|
|
9
12
|
import '@solana/web3.js';
|
|
10
13
|
import 'eventemitter3';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Chain } from '@privy-io/js-sdk-core';
|
|
2
|
-
import { P as PrivyErrorCode, U as User, a as LoginMethod, b as LinkedAccountWithMetadata, B as BaseConnectedEthereumWallet, c as BaseConnectedSolanaWallet, W as Wallet, M as MfaMethod, d as UserRecoveryMethod, S as SolanaTransactionReceipt, e as SupportedSolanaTransaction, O as OAuthTokens, F as FundingMethod, f as SolanaCluster, C as ConnectedSolanaWallet, g as CreateWalletOptions } from './types-
|
|
2
|
+
import { P as PrivyErrorCode, U as User, a as LoginMethod, b as LinkedAccountWithMetadata, B as BaseConnectedEthereumWallet, c as BaseConnectedSolanaWallet, W as Wallet, M as MfaMethod, d as UserRecoveryMethod, S as SolanaTransactionReceipt, e as SupportedSolanaTransaction, O as OAuthTokens, F as FundingMethod, f as SolanaCluster, C as ConnectedSolanaWallet, g as CreateWalletOptions } from './types-BG3I9l2r.js';
|
|
3
3
|
import { MouseEvent } from 'react';
|
|
4
4
|
|
|
5
5
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Chain } from '@privy-io/js-sdk-core';
|
|
2
|
-
import { P as PrivyErrorCode, U as User, a as LoginMethod, b as LinkedAccountWithMetadata, B as BaseConnectedEthereumWallet, c as BaseConnectedSolanaWallet, W as Wallet, M as MfaMethod, d as UserRecoveryMethod, S as SolanaTransactionReceipt, e as SupportedSolanaTransaction, O as OAuthTokens, F as FundingMethod, f as SolanaCluster, C as ConnectedSolanaWallet, g as CreateWalletOptions } from './types-
|
|
2
|
+
import { P as PrivyErrorCode, U as User, a as LoginMethod, b as LinkedAccountWithMetadata, B as BaseConnectedEthereumWallet, c as BaseConnectedSolanaWallet, W as Wallet, M as MfaMethod, d as UserRecoveryMethod, S as SolanaTransactionReceipt, e as SupportedSolanaTransaction, O as OAuthTokens, F as FundingMethod, f as SolanaCluster, C as ConnectedSolanaWallet, g as CreateWalletOptions } from './types-BG3I9l2r.js';
|
|
3
3
|
import { MouseEvent } from 'react';
|
|
4
4
|
|
|
5
5
|
/**
|