@privy-io/react-auth 2.11.1 → 2.13.0-beta-20250429210734

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.
Files changed (41) hide show
  1. package/dist/cjs/abstract-smart-wallets.js +1 -1
  2. package/dist/cjs/index.js +1 -1
  3. package/dist/cjs/privy-provider-BRLoNLzO.js +28 -0
  4. package/dist/cjs/smart-wallets-C4gFTR0Y.js +1 -0
  5. package/dist/cjs/smart-wallets.js +1 -1
  6. package/dist/cjs/solana.js +1 -1
  7. package/dist/cjs/ui.js +1 -1
  8. package/dist/cjs/{useActiveWallet-BJPtwRwN.js → useActiveWallet-CFjocDW3.js} +1 -1
  9. package/dist/cjs/{useFundWallet-CHZEiRO4.js → useFundWallet-DepHOq2e.js} +1 -1
  10. package/dist/dts/farcaster.d.mts +4 -1
  11. package/dist/dts/farcaster.d.ts +4 -1
  12. package/dist/dts/index.d.mts +70 -39
  13. package/dist/dts/index.d.ts +70 -39
  14. package/dist/dts/smart-wallets.d.mts +4 -1
  15. package/dist/dts/smart-wallets.d.ts +4 -1
  16. package/dist/dts/solana.d.mts +129 -7
  17. package/dist/dts/solana.d.ts +129 -7
  18. package/dist/dts/{types-B6jqW_Bc.d.mts → types-DWeM9B29.d.mts} +40 -15
  19. package/dist/dts/{types-B6jqW_Bc.d.ts → types-DWeM9B29.d.ts} +40 -15
  20. package/dist/dts/ui.d.mts +4 -1
  21. package/dist/dts/ui.d.ts +4 -1
  22. package/dist/dts/{useSolanaWallets-DtHAHWtA.d.mts → useSolanaWallets-DG2oXveQ.d.mts} +1 -1
  23. package/dist/dts/{useSolanaWallets-DtHAHWtA.d.ts → useSolanaWallets-DG2oXveQ.d.ts} +1 -1
  24. package/dist/esm/abstract-smart-wallets.mjs +1 -1
  25. package/dist/esm/farcaster.mjs +1 -1
  26. package/dist/esm/{frame-BeG8p5X6.mjs → frame-B1kjU0LI.mjs} +1 -1
  27. package/dist/esm/index.mjs +1 -1
  28. package/dist/esm/{internal-context-eu0bC04Q.mjs → internal-context-lAHxpYRu.mjs} +1 -1
  29. package/dist/esm/privy-provider-DHU2bEeW.mjs +28 -0
  30. package/dist/esm/smart-wallets-55YSeFOS.mjs +1 -0
  31. package/dist/esm/smart-wallets.mjs +1 -1
  32. package/dist/esm/solana.mjs +1 -1
  33. package/dist/esm/ui.mjs +2 -2
  34. package/dist/esm/useActiveWallet-C0t_HPvH.mjs +1 -0
  35. package/dist/esm/{useFundWallet-CCbN4yzN.mjs → useFundWallet-CA9Qmx4f.mjs} +1 -1
  36. package/package.json +6 -5
  37. package/dist/cjs/privy-provider-Cddj6OMJ.js +0 -28
  38. package/dist/cjs/smart-wallets-CyVw0HIK.js +0 -1
  39. package/dist/esm/privy-provider-B9IzlOpv.mjs +0 -28
  40. package/dist/esm/smart-wallets-D0LqwcPM.mjs +0 -1
  41. package/dist/esm/useActiveWallet-Cvm0O_EX.mjs +0 -1
@@ -1,15 +1,18 @@
1
- import { W as Wallet, j as SolanaFundingConfig, e as SupportedSolanaTransaction, h as SendTransactionModalUIOptions, S as SolanaTransactionReceipt, i as SignMessageModalUIOptions } from './types-B6jqW_Bc.js';
2
- export { C as ConnectedSolanaWallet, k as SolanaAdapterConnector, t as toSolanaWalletConnectors } from './types-B6jqW_Bc.js';
3
- import { P as PrivyEvents } from './useSolanaWallets-DtHAHWtA.js';
4
- export { U as UseSolanaWalletsInterface, u as useSolanaWallets } from './useSolanaWallets-DtHAHWtA.js';
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-DWeM9B29.js';
2
+ export { C as ConnectedSolanaWallet, l as SolanaAdapterConnector, t as toSolanaWalletConnectors } from './types-DWeM9B29.js';
3
+ import { P as PrivyEvents } from './useSolanaWallets-DG2oXveQ.js';
4
+ export { U as UseSolanaWalletsInterface, u as useSolanaWallets } from './useSolanaWallets-DG2oXveQ.js';
5
+ import { SolanaSignAndSendTransactionFeature, SolanaSignTransactionFeature, SolanaSignMessageFeature } from '@solana/wallet-standard-features';
6
+ import { WalletAccount, WalletIcon, WalletVersion } from '@wallet-standard/base';
7
+ import { StandardConnectFeature, StandardDisconnectFeature, StandardEventsFeature } from '@wallet-standard/features';
8
+ import { Transaction, VersionedTransaction, Cluster, SendOptions, TransactionSignature, Connection } from '@solana/web3.js';
9
+ import EventEmitter from 'eventemitter3';
5
10
  import { SendTransactionOptions } from '@solana/wallet-adapter-base';
6
- import { Connection } from '@solana/web3.js';
7
11
  import 'react';
8
12
  import 'viem';
9
13
  import '@privy-io/js-sdk-core';
10
14
  import '@privy-io/public-api';
11
15
  import '@metamask/eth-sig-util';
12
- import 'eventemitter3';
13
16
 
14
17
  interface UseImportWalletInterface {
15
18
  /**
@@ -33,6 +36,125 @@ interface UseImportWalletInterface {
33
36
  */
34
37
  declare const useImportWallet: () => UseImportWalletInterface;
35
38
 
39
+ /**
40
+ * Object representation of a Privy Solana wallet account.
41
+ */
42
+ declare class PrivyWalletAccount implements WalletAccount {
43
+ #private;
44
+ get address(): string;
45
+ get publicKey(): Uint8Array;
46
+ get chains(): `${string}:${string}`[];
47
+ get features(): `${string}:${string}`[];
48
+ get label(): string | undefined;
49
+ get icon(): `data:image/svg+xml;base64,${string}` | `data:image/webp;base64,${string}` | `data:image/png;base64,${string}` | `data:image/gif;base64,${string}` | undefined;
50
+ constructor({ address, publicKey, label, icon }: Omit<WalletAccount, 'chains' | 'features'>);
51
+ }
52
+
53
+ /**
54
+ * Standard wallet implementation interface
55
+ */
56
+ interface StandardWalletImplementation {
57
+ /**
58
+ * Sign a message.
59
+ */
60
+ signMessage(message: Uint8Array, address: string): Promise<{
61
+ signature: Uint8Array;
62
+ }>;
63
+ /**
64
+ * Sign and send a transaction.
65
+ */
66
+ signAndSendTransaction<T extends Transaction | VersionedTransaction>(transaction: T, address: string, cluster: Cluster, options?: SendOptions): Promise<{
67
+ signature: TransactionSignature;
68
+ }>;
69
+ /**
70
+ * Sign a transaction without sending it to the network.
71
+ */
72
+ signTransaction<T extends Transaction | VersionedTransaction>(transaction: T, address: string, cluster: Cluster, options?: SendOptions): Promise<T>;
73
+ }
74
+ type StandardWalletInjectionEvents = {
75
+ accountChanged: (accounts?: Array<{
76
+ address: string;
77
+ }>) => void;
78
+ };
79
+ /**
80
+ * Event emitter for the provider solana injection.
81
+ * This provides all the methods to sign messages, transactions, etc.
82
+ * Implementation is updated everytime the references to the wallets change.
83
+ */
84
+ declare class StandardWalletInjection extends EventEmitter<StandardWalletInjectionEvents> {
85
+ #private;
86
+ constructor(implementation: StandardWalletImplementation);
87
+ setImplementation(implementation: StandardWalletImplementation): void;
88
+ signMessage(message: Uint8Array, address: string): Promise<{
89
+ signature: Uint8Array;
90
+ }>;
91
+ signAndSendTransaction<T extends Transaction | VersionedTransaction>(transaction: T, address: string, cluster: Cluster, options?: SendOptions): Promise<{
92
+ signature: TransactionSignature;
93
+ }>;
94
+ signTransaction<T extends Transaction | VersionedTransaction>(transaction: T, address: string, cluster: Cluster, options?: SendOptions): Promise<T>;
95
+ }
96
+
97
+ type PrivyFeature = {
98
+ 'privy:': {
99
+ privy: StandardWalletImplementation;
100
+ };
101
+ };
102
+ /**
103
+ * Privy standard wallet implementation.
104
+ */
105
+ declare class PrivyStandardWallet implements SolanaStandardWallet {
106
+ #private;
107
+ get version(): "1.0.0";
108
+ get name(): string;
109
+ get icon(): `data:image/svg+xml;base64,${string}` | `data:image/webp;base64,${string}` | `data:image/png;base64,${string}` | `data:image/gif;base64,${string}`;
110
+ get chains(): ("solana:mainnet" | "solana:devnet" | "solana:testnet")[];
111
+ get features(): StandardConnectFeature & StandardDisconnectFeature & StandardEventsFeature & SolanaSignAndSendTransactionFeature & SolanaSignTransactionFeature & SolanaSignMessageFeature & PrivyFeature;
112
+ get accounts(): PrivyWalletAccount[];
113
+ get isPrivyWallet(): boolean;
114
+ constructor({ name, icon, version, injection, wallets, }: {
115
+ name: string;
116
+ icon: WalletIcon;
117
+ version: WalletVersion;
118
+ injection: StandardWalletInjection;
119
+ wallets: Array<{
120
+ address: string;
121
+ }>;
122
+ });
123
+ }
124
+
125
+ /**
126
+ * Use this hook to get Privy's implementation of the Standard Wallet interface.
127
+ */
128
+ interface UsePrivyStandardWalletInterface {
129
+ /**
130
+ * Whether the wallet is ready to be used.
131
+ */
132
+ ready: boolean;
133
+ /**
134
+ * The wallet that implements the Standard Wallet interface.
135
+ */
136
+ wallet: PrivyStandardWallet;
137
+ }
138
+ /**
139
+ * Use this hook to get Privy's implementation of the Standard Wallet interface.
140
+ */
141
+ declare function usePrivyStandardWallet(): UsePrivyStandardWalletInterface;
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
+
36
158
  /**
37
159
  * Method to fund a user's Solana wallet via Privy's funding feature by inputting a valid wallet address.
38
160
  * You can access the fields and methods documented here via the {@link useFundWallet} hook.
@@ -189,4 +311,4 @@ declare function useSignMessage(callbacks?: PrivyEvents['signSolanaMessage']): {
189
311
  }) => Promise<Uint8Array>;
190
312
  };
191
313
 
192
- export { SolanaTransactionReceipt, SupportedSolanaTransaction, type UseFundWalletInterface, type UseImportWalletInterface, type UseSendTransactionInterface, type UseSignMessageInterface, type UseSignTransactionInterface, useFundWallet, useImportWallet, useSendTransaction, useSignMessage, useSignTransaction, useSolanaFundingPlugin };
314
+ 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, useSolanaStandardWallets };
@@ -1,15 +1,18 @@
1
- import { W as Wallet, j as SolanaFundingConfig, e as SupportedSolanaTransaction, h as SendTransactionModalUIOptions, S as SolanaTransactionReceipt, i as SignMessageModalUIOptions } from './types-B6jqW_Bc.js';
2
- export { C as ConnectedSolanaWallet, k as SolanaAdapterConnector, t as toSolanaWalletConnectors } from './types-B6jqW_Bc.js';
3
- import { P as PrivyEvents } from './useSolanaWallets-DtHAHWtA.js';
4
- export { U as UseSolanaWalletsInterface, u as useSolanaWallets } from './useSolanaWallets-DtHAHWtA.js';
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-DWeM9B29.js';
2
+ export { C as ConnectedSolanaWallet, l as SolanaAdapterConnector, t as toSolanaWalletConnectors } from './types-DWeM9B29.js';
3
+ import { P as PrivyEvents } from './useSolanaWallets-DG2oXveQ.js';
4
+ export { U as UseSolanaWalletsInterface, u as useSolanaWallets } from './useSolanaWallets-DG2oXveQ.js';
5
+ import { SolanaSignAndSendTransactionFeature, SolanaSignTransactionFeature, SolanaSignMessageFeature } from '@solana/wallet-standard-features';
6
+ import { WalletAccount, WalletIcon, WalletVersion } from '@wallet-standard/base';
7
+ import { StandardConnectFeature, StandardDisconnectFeature, StandardEventsFeature } from '@wallet-standard/features';
8
+ import { Transaction, VersionedTransaction, Cluster, SendOptions, TransactionSignature, Connection } from '@solana/web3.js';
9
+ import EventEmitter from 'eventemitter3';
5
10
  import { SendTransactionOptions } from '@solana/wallet-adapter-base';
6
- import { Connection } from '@solana/web3.js';
7
11
  import 'react';
8
12
  import 'viem';
9
13
  import '@privy-io/js-sdk-core';
10
14
  import '@privy-io/public-api';
11
15
  import '@metamask/eth-sig-util';
12
- import 'eventemitter3';
13
16
 
14
17
  interface UseImportWalletInterface {
15
18
  /**
@@ -33,6 +36,125 @@ interface UseImportWalletInterface {
33
36
  */
34
37
  declare const useImportWallet: () => UseImportWalletInterface;
35
38
 
39
+ /**
40
+ * Object representation of a Privy Solana wallet account.
41
+ */
42
+ declare class PrivyWalletAccount implements WalletAccount {
43
+ #private;
44
+ get address(): string;
45
+ get publicKey(): Uint8Array;
46
+ get chains(): `${string}:${string}`[];
47
+ get features(): `${string}:${string}`[];
48
+ get label(): string | undefined;
49
+ get icon(): `data:image/svg+xml;base64,${string}` | `data:image/webp;base64,${string}` | `data:image/png;base64,${string}` | `data:image/gif;base64,${string}` | undefined;
50
+ constructor({ address, publicKey, label, icon }: Omit<WalletAccount, 'chains' | 'features'>);
51
+ }
52
+
53
+ /**
54
+ * Standard wallet implementation interface
55
+ */
56
+ interface StandardWalletImplementation {
57
+ /**
58
+ * Sign a message.
59
+ */
60
+ signMessage(message: Uint8Array, address: string): Promise<{
61
+ signature: Uint8Array;
62
+ }>;
63
+ /**
64
+ * Sign and send a transaction.
65
+ */
66
+ signAndSendTransaction<T extends Transaction | VersionedTransaction>(transaction: T, address: string, cluster: Cluster, options?: SendOptions): Promise<{
67
+ signature: TransactionSignature;
68
+ }>;
69
+ /**
70
+ * Sign a transaction without sending it to the network.
71
+ */
72
+ signTransaction<T extends Transaction | VersionedTransaction>(transaction: T, address: string, cluster: Cluster, options?: SendOptions): Promise<T>;
73
+ }
74
+ type StandardWalletInjectionEvents = {
75
+ accountChanged: (accounts?: Array<{
76
+ address: string;
77
+ }>) => void;
78
+ };
79
+ /**
80
+ * Event emitter for the provider solana injection.
81
+ * This provides all the methods to sign messages, transactions, etc.
82
+ * Implementation is updated everytime the references to the wallets change.
83
+ */
84
+ declare class StandardWalletInjection extends EventEmitter<StandardWalletInjectionEvents> {
85
+ #private;
86
+ constructor(implementation: StandardWalletImplementation);
87
+ setImplementation(implementation: StandardWalletImplementation): void;
88
+ signMessage(message: Uint8Array, address: string): Promise<{
89
+ signature: Uint8Array;
90
+ }>;
91
+ signAndSendTransaction<T extends Transaction | VersionedTransaction>(transaction: T, address: string, cluster: Cluster, options?: SendOptions): Promise<{
92
+ signature: TransactionSignature;
93
+ }>;
94
+ signTransaction<T extends Transaction | VersionedTransaction>(transaction: T, address: string, cluster: Cluster, options?: SendOptions): Promise<T>;
95
+ }
96
+
97
+ type PrivyFeature = {
98
+ 'privy:': {
99
+ privy: StandardWalletImplementation;
100
+ };
101
+ };
102
+ /**
103
+ * Privy standard wallet implementation.
104
+ */
105
+ declare class PrivyStandardWallet implements SolanaStandardWallet {
106
+ #private;
107
+ get version(): "1.0.0";
108
+ get name(): string;
109
+ get icon(): `data:image/svg+xml;base64,${string}` | `data:image/webp;base64,${string}` | `data:image/png;base64,${string}` | `data:image/gif;base64,${string}`;
110
+ get chains(): ("solana:mainnet" | "solana:devnet" | "solana:testnet")[];
111
+ get features(): StandardConnectFeature & StandardDisconnectFeature & StandardEventsFeature & SolanaSignAndSendTransactionFeature & SolanaSignTransactionFeature & SolanaSignMessageFeature & PrivyFeature;
112
+ get accounts(): PrivyWalletAccount[];
113
+ get isPrivyWallet(): boolean;
114
+ constructor({ name, icon, version, injection, wallets, }: {
115
+ name: string;
116
+ icon: WalletIcon;
117
+ version: WalletVersion;
118
+ injection: StandardWalletInjection;
119
+ wallets: Array<{
120
+ address: string;
121
+ }>;
122
+ });
123
+ }
124
+
125
+ /**
126
+ * Use this hook to get Privy's implementation of the Standard Wallet interface.
127
+ */
128
+ interface UsePrivyStandardWalletInterface {
129
+ /**
130
+ * Whether the wallet is ready to be used.
131
+ */
132
+ ready: boolean;
133
+ /**
134
+ * The wallet that implements the Standard Wallet interface.
135
+ */
136
+ wallet: PrivyStandardWallet;
137
+ }
138
+ /**
139
+ * Use this hook to get Privy's implementation of the Standard Wallet interface.
140
+ */
141
+ declare function usePrivyStandardWallet(): UsePrivyStandardWalletInterface;
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
+
36
158
  /**
37
159
  * Method to fund a user's Solana wallet via Privy's funding feature by inputting a valid wallet address.
38
160
  * You can access the fields and methods documented here via the {@link useFundWallet} hook.
@@ -189,4 +311,4 @@ declare function useSignMessage(callbacks?: PrivyEvents['signSolanaMessage']): {
189
311
  }) => Promise<Uint8Array>;
190
312
  };
191
313
 
192
- export { SolanaTransactionReceipt, SupportedSolanaTransaction, type UseFundWalletInterface, type UseImportWalletInterface, type UseSendTransactionInterface, type UseSignMessageInterface, type UseSignTransactionInterface, useFundWallet, useImportWallet, useSendTransaction, useSignMessage, useSignTransaction, useSolanaFundingPlugin };
314
+ 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, 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: Adapter, autoConnectEnabled: boolean);
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.
@@ -380,7 +397,7 @@ type MfaSubmitArgs = {
380
397
  mfaCode: string | PasskeyAuthenticateInputType['authenticator_response'];
381
398
  relyingParty: string;
382
399
  };
383
- type EntropyIdVerifier = 'ethereum-address-verifier' | 'solana-address-verifier' | 'p256';
400
+ type EntropyIdVerifier = 'ethereum-address-verifier' | 'solana-address-verifier';
384
401
  /**
385
402
  * Supported OAuth providers. Can be `'google'`, `'discord'`, `'twitter'`, `'github'`, `'spotify'`,
386
403
  * `'instagram'`, `'tiktok'`, `'linkedin'`, or `'apple'`
@@ -542,7 +559,7 @@ interface Wallet {
542
559
  * 1. 'privy': privy escrow of the recovery material
543
560
  * 2. 'user-passcode': recovery protected by user-input passcode
544
561
  */
545
- recoveryMethod?: 'privy' | UserRecoveryMethod;
562
+ recoveryMethod?: RecoveryMethod;
546
563
  /** Whether the wallet is imported. Only applies to embedded wallets (`walletClientType === 'privy'`). */
547
564
  imported: boolean;
548
565
  /** Whether the wallet is delegated. Only applies to embedded wallets (`walletClientType === 'privy'`). */
@@ -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
  /**
@@ -863,9 +894,6 @@ interface CrossAppAccount {
863
894
  providerApp: ProviderAppMetadata;
864
895
  subject: string;
865
896
  }
866
- interface AuthorizationKeyAccount {
867
- publicKey: string;
868
- }
869
897
  /** Object representation of a user's email, with additional metadata for advanced use cases. */
870
898
  interface EmailWithMetadata extends LinkMetadata, Email {
871
899
  /** Denotes that this is an email account. */
@@ -955,15 +983,10 @@ interface CrossAppAccountWithMetadata extends LinkMetadata, CrossAppAccount {
955
983
  /** Denotes that this is a cross-app account */
956
984
  type: 'cross_app';
957
985
  }
958
- /** Object representation of a user's authorization key, with additional metadata for advanced use cases. */
959
- interface AuthorizationKeyAccountWithMetadata extends LinkMetadata, AuthorizationKeyAccount {
960
- /** Denotes that this is an authorization key */
961
- type: 'authorization_key';
962
- }
963
986
  /**
964
987
  * Object representation of a user's linked accounts
965
988
  */
966
- type LinkedAccountWithMetadata = WalletWithMetadata | SmartWalletWithMetadata | EmailWithMetadata | PhoneWithMetadata | GoogleOAuthWithMetadata | TwitterOAuthWithMetadata | DiscordOAuthWithMetadata | GithubOAuthWithMetadata | SpotifyOAuthWithMetadata | InstagramOAuthWithMetadata | TiktokOAuthWithMetadata | LinkedInOAuthWithMetadata | AppleOAuthWithMetadata | CustomJwtAccountWithMetadata | FarcasterWithMetadata | PasskeyWithMetadata | TelegramWithMetadata | CrossAppAccountWithMetadata | AuthorizationKeyAccountWithMetadata;
989
+ type LinkedAccountWithMetadata = WalletWithMetadata | SmartWalletWithMetadata | EmailWithMetadata | PhoneWithMetadata | GoogleOAuthWithMetadata | TwitterOAuthWithMetadata | DiscordOAuthWithMetadata | GithubOAuthWithMetadata | SpotifyOAuthWithMetadata | InstagramOAuthWithMetadata | TiktokOAuthWithMetadata | LinkedInOAuthWithMetadata | AppleOAuthWithMetadata | CustomJwtAccountWithMetadata | FarcasterWithMetadata | PasskeyWithMetadata | TelegramWithMetadata | CrossAppAccountWithMetadata;
967
990
  interface User {
968
991
  /** The Privy-issued DID for the user. If you need to store additional information
969
992
  * about a user, you can use this DID to reference them. */
@@ -1764,7 +1787,9 @@ type SendTransactionModalUIOptions = {
1764
1787
  type UnsignedTransactionRequestWithChainId = UnsignedTransactionRequest & {
1765
1788
  chainId: number;
1766
1789
  };
1767
- type LoginModalOptions = RuntimeLoginOverridableOptions;
1790
+ type LoginModalOptions = RuntimeLoginOverridableOptions & {
1791
+ isLedgerSolana?: boolean;
1792
+ };
1768
1793
  type ConnectWalletModalOptions = ExternalConnectWalletModalOptions;
1769
1794
  type PrivyFarcasterSignerInitResponse = {
1770
1795
  public_key: string;
@@ -1976,4 +2001,4 @@ type EthereumRpcResponseType = eth_signTransactionResponse | eth_populateTransac
1976
2001
  type SolanaRpcRequestType = solana_signMessage;
1977
2002
  type SolanaRpcResponseType = solana_signMessageResponse;
1978
2003
 
1979
- export { type SiweWalletMetadata as $, type WalletListEntry as A, type BaseConnectedEthereumWallet as B, type ConnectedSolanaWallet as C, type ExternalWalletsConfig as D, type EthereumRpcRequestType as E, type FundingMethod as F, type BaseConnectedWallet as G, type ConnectWalletModalOptions as H, type LoginModalOptions as I, type SetWalletRecoveryOptions as J, type SignTypedDataParams as K, type LoginToFrame as L, type MfaMethod as M, type UnsignedTransactionRequest as N, type OAuthTokens as O, PrivyErrorCode as P, type FundWalletConfig as Q, type RuntimeLoginOverridableOptions as R, type SolanaTransactionReceipt as S, type ConnectedWallet as T, type User as U, type CrossAppProviderDetails as V, type Wallet as W, type OAuthProviderType as X, type MoonpaySignRequest as Y, type MoonpaySignResponse as Z, type SmartWalletConfig as _, type LoginMethod as a, type TelegramAuthResult as a0, type TelegramWebAppData as a1, type OAuthUserInfo as a2, type OAuthFlowState as a3, type LoginWithCode as a4, type OtpFlowState as a5, type PasskeyFlowState as a6, type SiweFlowState as a7, type UnsignedTransactionRequestWithChainId as a8, type BaseConnectedWalletType as a9, type DiscordOAuthWithMetadata as aA, type GithubOAuthWithMetadata as aB, type TiktokOAuthWithMetadata as aC, type LinkedInOAuthWithMetadata as aD, type AppleOAuthWithMetadata as aE, type FarcasterWithMetadata as aF, type TelegramWithMetadata as aG, type CrossAppAccountWithMetadata as aH, type PasskeyWithMetadata as aI, type Email as aJ, type Phone as aK, type TransactionUIOptions as aL, type ContractUIOptions as aM, type NativeFundingConfig as aN, type MoonpayFundingConfig as aO, type PriceDisplayOptions as aP, type Farcaster as aQ, type Passkey as aR, type LoginMethodOrderOption as aS, type TelegramAuthFlowState as aa, type TypedMessage as ab, type MessageTypes as ac, type SmartWallet as ad, type MoonpayConfig as ae, type MoonpayCurrencyCode as af, type MoonpayPaymentMethod as ag, type Quantity as ah, type TransactionLog as ai, type TransactionReceipt as aj, type NonEmptyArray as ak, type EmailWithMetadata as al, type PhoneWithMetadata as am, type WalletWithMetadata as an, type Google as ao, type Twitter as ap, type Discord as aq, type Github as ar, type LinkedIn as as, type Apple as at, type Tiktok as au, type Telegram as av, type CrossAppAccount as aw, type LinkedAccountType as ax, type GoogleOAuthWithMetadata as ay, type TwitterOAuthWithMetadata 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 SolanaFundingConfig as j, SolanaWalletConnector as k, type WalletClientType as l, type PrivyFarcasterSignerInitResponse as m, type MfaSubmitArgs as n, type SolanaRpcRequestType as o, type EthereumRpcResponseType as p, type SolanaRpcResponseType as q, type PrivyClientConfig as r, type EIP1193Provider as s, toSolanaWalletConnectors as t, type EntropyIdVerifier as u, type RequestArguments as v, WalletTimeoutError as w, WalletConnector as x, type ConnectedWalletMetadata as y, type ConnectorType as z };
2004
+ 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 OAuthFlowState as a4, type LoginWithCode as a5, type OtpFlowState as a6, type PasskeyFlowState as a7, type SiweFlowState as a8, type UnsignedTransactionRequestWithChainId as a9, type TwitterOAuthWithMetadata as aA, type DiscordOAuthWithMetadata as aB, type GithubOAuthWithMetadata as aC, type TiktokOAuthWithMetadata as aD, type LinkedInOAuthWithMetadata as aE, type AppleOAuthWithMetadata as aF, type FarcasterWithMetadata as aG, type TelegramWithMetadata as aH, type CrossAppAccountWithMetadata as aI, type PasskeyWithMetadata as aJ, type Email as aK, type Phone as aL, type TransactionUIOptions as aM, type ContractUIOptions as aN, type NativeFundingConfig as aO, type MoonpayFundingConfig as aP, type PriceDisplayOptions as aQ, type Farcaster as aR, type Passkey as aS, type LoginMethodOrderOption as aT, type BaseConnectedWalletType as aa, type TelegramAuthFlowState as ab, type TypedMessage as ac, type MessageTypes as ad, type SmartWallet as ae, type MoonpayConfig as af, type MoonpayCurrencyCode as ag, type MoonpayPaymentMethod as ah, type Quantity as ai, type TransactionLog as aj, type TransactionReceipt as ak, type NonEmptyArray as al, type EmailWithMetadata as am, type PhoneWithMetadata as an, type WalletWithMetadata as ao, type Google as ap, type Twitter as aq, type Discord as ar, type Github as as, type LinkedIn as at, type Apple as au, type Tiktok as av, type Telegram as aw, type CrossAppAccount as ax, type LinkedAccountType as ay, type GoogleOAuthWithMetadata 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: Adapter, autoConnectEnabled: boolean);
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.
@@ -380,7 +397,7 @@ type MfaSubmitArgs = {
380
397
  mfaCode: string | PasskeyAuthenticateInputType['authenticator_response'];
381
398
  relyingParty: string;
382
399
  };
383
- type EntropyIdVerifier = 'ethereum-address-verifier' | 'solana-address-verifier' | 'p256';
400
+ type EntropyIdVerifier = 'ethereum-address-verifier' | 'solana-address-verifier';
384
401
  /**
385
402
  * Supported OAuth providers. Can be `'google'`, `'discord'`, `'twitter'`, `'github'`, `'spotify'`,
386
403
  * `'instagram'`, `'tiktok'`, `'linkedin'`, or `'apple'`
@@ -542,7 +559,7 @@ interface Wallet {
542
559
  * 1. 'privy': privy escrow of the recovery material
543
560
  * 2. 'user-passcode': recovery protected by user-input passcode
544
561
  */
545
- recoveryMethod?: 'privy' | UserRecoveryMethod;
562
+ recoveryMethod?: RecoveryMethod;
546
563
  /** Whether the wallet is imported. Only applies to embedded wallets (`walletClientType === 'privy'`). */
547
564
  imported: boolean;
548
565
  /** Whether the wallet is delegated. Only applies to embedded wallets (`walletClientType === 'privy'`). */
@@ -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
  /**
@@ -863,9 +894,6 @@ interface CrossAppAccount {
863
894
  providerApp: ProviderAppMetadata;
864
895
  subject: string;
865
896
  }
866
- interface AuthorizationKeyAccount {
867
- publicKey: string;
868
- }
869
897
  /** Object representation of a user's email, with additional metadata for advanced use cases. */
870
898
  interface EmailWithMetadata extends LinkMetadata, Email {
871
899
  /** Denotes that this is an email account. */
@@ -955,15 +983,10 @@ interface CrossAppAccountWithMetadata extends LinkMetadata, CrossAppAccount {
955
983
  /** Denotes that this is a cross-app account */
956
984
  type: 'cross_app';
957
985
  }
958
- /** Object representation of a user's authorization key, with additional metadata for advanced use cases. */
959
- interface AuthorizationKeyAccountWithMetadata extends LinkMetadata, AuthorizationKeyAccount {
960
- /** Denotes that this is an authorization key */
961
- type: 'authorization_key';
962
- }
963
986
  /**
964
987
  * Object representation of a user's linked accounts
965
988
  */
966
- type LinkedAccountWithMetadata = WalletWithMetadata | SmartWalletWithMetadata | EmailWithMetadata | PhoneWithMetadata | GoogleOAuthWithMetadata | TwitterOAuthWithMetadata | DiscordOAuthWithMetadata | GithubOAuthWithMetadata | SpotifyOAuthWithMetadata | InstagramOAuthWithMetadata | TiktokOAuthWithMetadata | LinkedInOAuthWithMetadata | AppleOAuthWithMetadata | CustomJwtAccountWithMetadata | FarcasterWithMetadata | PasskeyWithMetadata | TelegramWithMetadata | CrossAppAccountWithMetadata | AuthorizationKeyAccountWithMetadata;
989
+ type LinkedAccountWithMetadata = WalletWithMetadata | SmartWalletWithMetadata | EmailWithMetadata | PhoneWithMetadata | GoogleOAuthWithMetadata | TwitterOAuthWithMetadata | DiscordOAuthWithMetadata | GithubOAuthWithMetadata | SpotifyOAuthWithMetadata | InstagramOAuthWithMetadata | TiktokOAuthWithMetadata | LinkedInOAuthWithMetadata | AppleOAuthWithMetadata | CustomJwtAccountWithMetadata | FarcasterWithMetadata | PasskeyWithMetadata | TelegramWithMetadata | CrossAppAccountWithMetadata;
967
990
  interface User {
968
991
  /** The Privy-issued DID for the user. If you need to store additional information
969
992
  * about a user, you can use this DID to reference them. */
@@ -1764,7 +1787,9 @@ type SendTransactionModalUIOptions = {
1764
1787
  type UnsignedTransactionRequestWithChainId = UnsignedTransactionRequest & {
1765
1788
  chainId: number;
1766
1789
  };
1767
- type LoginModalOptions = RuntimeLoginOverridableOptions;
1790
+ type LoginModalOptions = RuntimeLoginOverridableOptions & {
1791
+ isLedgerSolana?: boolean;
1792
+ };
1768
1793
  type ConnectWalletModalOptions = ExternalConnectWalletModalOptions;
1769
1794
  type PrivyFarcasterSignerInitResponse = {
1770
1795
  public_key: string;
@@ -1976,4 +2001,4 @@ type EthereumRpcResponseType = eth_signTransactionResponse | eth_populateTransac
1976
2001
  type SolanaRpcRequestType = solana_signMessage;
1977
2002
  type SolanaRpcResponseType = solana_signMessageResponse;
1978
2003
 
1979
- export { type SiweWalletMetadata as $, type WalletListEntry as A, type BaseConnectedEthereumWallet as B, type ConnectedSolanaWallet as C, type ExternalWalletsConfig as D, type EthereumRpcRequestType as E, type FundingMethod as F, type BaseConnectedWallet as G, type ConnectWalletModalOptions as H, type LoginModalOptions as I, type SetWalletRecoveryOptions as J, type SignTypedDataParams as K, type LoginToFrame as L, type MfaMethod as M, type UnsignedTransactionRequest as N, type OAuthTokens as O, PrivyErrorCode as P, type FundWalletConfig as Q, type RuntimeLoginOverridableOptions as R, type SolanaTransactionReceipt as S, type ConnectedWallet as T, type User as U, type CrossAppProviderDetails as V, type Wallet as W, type OAuthProviderType as X, type MoonpaySignRequest as Y, type MoonpaySignResponse as Z, type SmartWalletConfig as _, type LoginMethod as a, type TelegramAuthResult as a0, type TelegramWebAppData as a1, type OAuthUserInfo as a2, type OAuthFlowState as a3, type LoginWithCode as a4, type OtpFlowState as a5, type PasskeyFlowState as a6, type SiweFlowState as a7, type UnsignedTransactionRequestWithChainId as a8, type BaseConnectedWalletType as a9, type DiscordOAuthWithMetadata as aA, type GithubOAuthWithMetadata as aB, type TiktokOAuthWithMetadata as aC, type LinkedInOAuthWithMetadata as aD, type AppleOAuthWithMetadata as aE, type FarcasterWithMetadata as aF, type TelegramWithMetadata as aG, type CrossAppAccountWithMetadata as aH, type PasskeyWithMetadata as aI, type Email as aJ, type Phone as aK, type TransactionUIOptions as aL, type ContractUIOptions as aM, type NativeFundingConfig as aN, type MoonpayFundingConfig as aO, type PriceDisplayOptions as aP, type Farcaster as aQ, type Passkey as aR, type LoginMethodOrderOption as aS, type TelegramAuthFlowState as aa, type TypedMessage as ab, type MessageTypes as ac, type SmartWallet as ad, type MoonpayConfig as ae, type MoonpayCurrencyCode as af, type MoonpayPaymentMethod as ag, type Quantity as ah, type TransactionLog as ai, type TransactionReceipt as aj, type NonEmptyArray as ak, type EmailWithMetadata as al, type PhoneWithMetadata as am, type WalletWithMetadata as an, type Google as ao, type Twitter as ap, type Discord as aq, type Github as ar, type LinkedIn as as, type Apple as at, type Tiktok as au, type Telegram as av, type CrossAppAccount as aw, type LinkedAccountType as ax, type GoogleOAuthWithMetadata as ay, type TwitterOAuthWithMetadata 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 SolanaFundingConfig as j, SolanaWalletConnector as k, type WalletClientType as l, type PrivyFarcasterSignerInitResponse as m, type MfaSubmitArgs as n, type SolanaRpcRequestType as o, type EthereumRpcResponseType as p, type SolanaRpcResponseType as q, type PrivyClientConfig as r, type EIP1193Provider as s, toSolanaWalletConnectors as t, type EntropyIdVerifier as u, type RequestArguments as v, WalletTimeoutError as w, WalletConnector as x, type ConnectedWalletMetadata as y, type ConnectorType as z };
2004
+ 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 OAuthFlowState as a4, type LoginWithCode as a5, type OtpFlowState as a6, type PasskeyFlowState as a7, type SiweFlowState as a8, type UnsignedTransactionRequestWithChainId as a9, type TwitterOAuthWithMetadata as aA, type DiscordOAuthWithMetadata as aB, type GithubOAuthWithMetadata as aC, type TiktokOAuthWithMetadata as aD, type LinkedInOAuthWithMetadata as aE, type AppleOAuthWithMetadata as aF, type FarcasterWithMetadata as aG, type TelegramWithMetadata as aH, type CrossAppAccountWithMetadata as aI, type PasskeyWithMetadata as aJ, type Email as aK, type Phone as aL, type TransactionUIOptions as aM, type ContractUIOptions as aN, type NativeFundingConfig as aO, type MoonpayFundingConfig as aP, type PriceDisplayOptions as aQ, type Farcaster as aR, type Passkey as aS, type LoginMethodOrderOption as aT, type BaseConnectedWalletType as aa, type TelegramAuthFlowState as ab, type TypedMessage as ac, type MessageTypes as ad, type SmartWallet as ae, type MoonpayConfig as af, type MoonpayCurrencyCode as ag, type MoonpayPaymentMethod as ah, type Quantity as ai, type TransactionLog as aj, type TransactionReceipt as ak, type NonEmptyArray as al, type EmailWithMetadata as am, type PhoneWithMetadata as an, type WalletWithMetadata as ao, type Google as ap, type Twitter as aq, type Discord as ar, type Github as as, type LinkedIn as at, type Apple as au, type Tiktok as av, type Telegram as aw, type CrossAppAccount as ax, type LinkedAccountType as ay, type GoogleOAuthWithMetadata 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-B6jqW_Bc.js';
2
+ import { R as RuntimeLoginOverridableOptions } from './types-DWeM9B29.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-B6jqW_Bc.js';
2
+ import { R as RuntimeLoginOverridableOptions } from './types-DWeM9B29.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-B6jqW_Bc.js';
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-DWeM9B29.js';
3
3
  import { MouseEvent } from 'react';
4
4
 
5
5
  /**