@privy-io/react-auth 3.5.1 → 3.6.0-beta-20251104001210
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{EmbeddedWalletConnectingScreen-i0UDHMDq.js → EmbeddedWalletConnectingScreen-jOWUCqZg.js} +15 -15
- package/dist/cjs/{SignRequestScreen-H5r467q6.js → SignRequestScreen-CC8faRpv.js} +1 -1
- package/dist/cjs/abstract-smart-wallets.js +1 -1
- package/dist/cjs/{events-context-Cgq8fGB0.js → events-context-PZ26oAHB.js} +1 -1
- package/dist/cjs/extended-chains.js +1 -1
- package/dist/cjs/index.js +2 -2
- package/dist/cjs/internal.js +1 -1
- package/dist/cjs/{smart-wallets-B0bTYa6G.js → smart-wallets-7xSqnGde.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/{use-export-wallet-BhYG6ocQ.js → use-export-wallet-C-yeV_2q.js} +1 -1
- package/dist/cjs/{useActiveWallet-BoPIudwB.js → useActiveWallet-B8m9GNRD.js} +1 -1
- package/dist/cjs/{usePrivy-CLLJiDdU.js → usePrivy-8MnUTXRB.js} +1 -1
- package/dist/dts/{events-context-DB3Pn5Hg.d.mts → events-context-Dr3UkLLW.d.mts} +1 -1
- package/dist/dts/{events-context-DB3Pn5Hg.d.ts → events-context-Dr3UkLLW.d.ts} +1 -1
- package/dist/dts/extended-chains.d.mts +1 -1
- package/dist/dts/extended-chains.d.ts +1 -1
- package/dist/dts/farcaster.d.mts +1 -1
- package/dist/dts/farcaster.d.ts +1 -1
- package/dist/dts/index.d.mts +4 -4
- package/dist/dts/index.d.ts +4 -4
- package/dist/dts/internal.d.mts +1 -1
- package/dist/dts/internal.d.ts +1 -1
- package/dist/dts/smart-wallets.d.mts +1 -1
- package/dist/dts/smart-wallets.d.ts +1 -1
- package/dist/dts/solana.d.mts +3 -3
- package/dist/dts/solana.d.ts +3 -3
- package/dist/dts/{types-C4KyGxEF.d.mts → types-CjeRoR7y.d.mts} +63 -1
- package/dist/dts/{types-C4KyGxEF.d.ts → types-CjeRoR7y.d.ts} +63 -1
- package/dist/dts/ui.d.mts +1 -1
- package/dist/dts/ui.d.ts +1 -1
- package/dist/esm/{EmbeddedWalletConnectingScreen-BehtOUIO.mjs → EmbeddedWalletConnectingScreen-_hPnhal6.mjs} +16 -16
- package/dist/esm/{SignRequestScreen-W1brL2hg.mjs → SignRequestScreen-COrPVTAi.mjs} +1 -1
- package/dist/esm/abstract-smart-wallets.mjs +1 -1
- package/dist/esm/events-context-BccykGqQ.mjs +1 -0
- package/dist/esm/extended-chains.mjs +1 -1
- package/dist/esm/index.mjs +2 -2
- package/dist/esm/internal.mjs +1 -1
- package/dist/esm/{smart-wallets-CZ7EzP9s.mjs → smart-wallets-6eFo3Ba2.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/{use-export-wallet-CPxLgKFx.mjs → use-export-wallet-PupiUzXB.mjs} +1 -1
- package/dist/esm/{useActiveWallet-Bw1ry9JQ.mjs → useActiveWallet-CPXrlSna.mjs} +1 -1
- package/dist/esm/{usePrivy-BJ3NMQui.mjs → usePrivy-CpgWT-Fo.mjs} +1 -1
- package/package.json +1 -1
- package/dist/esm/events-context-BKqrDYHW.mjs +0 -1
|
@@ -11,6 +11,39 @@ import { SolanaSignMessageFeature, SolanaSignTransactionFeature, SolanaSignAndSe
|
|
|
11
11
|
import { StandardConnectFeature, StandardDisconnectFeature, StandardEventsFeature } from '@wallet-standard/features';
|
|
12
12
|
import EventEmitter from 'eventemitter3';
|
|
13
13
|
|
|
14
|
+
/**
|
|
15
|
+
* Internationalization strings for Privy UI components.
|
|
16
|
+
*
|
|
17
|
+
* Keys follow the pattern: `component.semanticDescription`
|
|
18
|
+
*/
|
|
19
|
+
type PrivyI18nStrings = {
|
|
20
|
+
'connectionStatus.successfullyConnected': string;
|
|
21
|
+
'connectionStatus.errorTitle': string;
|
|
22
|
+
'connectionStatus.connecting': string;
|
|
23
|
+
'connectionStatus.connectOneWallet': string;
|
|
24
|
+
'connectionStatus.checkOtherWindows': string;
|
|
25
|
+
'connectionStatus.stillHere': string;
|
|
26
|
+
'connectionStatus.tryConnectingAgain': string;
|
|
27
|
+
'connectionStatus.or': string;
|
|
28
|
+
'connectionStatus.useDifferentLink': string;
|
|
29
|
+
'connectWallet.connectYourWallet': string;
|
|
30
|
+
'connectWallet.waitingForWallet': string;
|
|
31
|
+
'connectWallet.connectToAccount': string;
|
|
32
|
+
'connectWallet.installAndConnect': string;
|
|
33
|
+
'connectWallet.tryConnectingAgain': string;
|
|
34
|
+
'connectWallet.openInApp': string;
|
|
35
|
+
'connectWallet.copyLink': string;
|
|
36
|
+
'connectWallet.retry': string;
|
|
37
|
+
'connectWallet.searchPlaceholder': string;
|
|
38
|
+
'connectWallet.noWalletsFound': string;
|
|
39
|
+
'connectWallet.lastUsed': string;
|
|
40
|
+
'connectWallet.selectYourWallet': string;
|
|
41
|
+
'connectWallet.selectNetwork': string;
|
|
42
|
+
'connectWallet.goToWallet': string;
|
|
43
|
+
'connectWallet.scanToConnect': string;
|
|
44
|
+
'connectWallet.openOrInstall': string;
|
|
45
|
+
};
|
|
46
|
+
|
|
14
47
|
interface ConnectorEvents {
|
|
15
48
|
walletsUpdated(): void;
|
|
16
49
|
initialized(): void;
|
|
@@ -1252,6 +1285,34 @@ interface PrivyClientConfig {
|
|
|
1252
1285
|
* @default 'US'
|
|
1253
1286
|
*/
|
|
1254
1287
|
defaultCountry: CountryCode;
|
|
1288
|
+
/**
|
|
1289
|
+
* Custom localization strings for Privy UI components.
|
|
1290
|
+
*
|
|
1291
|
+
* Pass a partial object with only the strings you want to override.
|
|
1292
|
+
* All other strings will fall back to default English values.
|
|
1293
|
+
*
|
|
1294
|
+
* Supports simple template interpolation with {variableName} syntax.
|
|
1295
|
+
*
|
|
1296
|
+
* @experimental This feature is experimental and may change in future releases.
|
|
1297
|
+
*
|
|
1298
|
+
* @example
|
|
1299
|
+
* ```typescript
|
|
1300
|
+
* <PrivyProvider
|
|
1301
|
+
* appId="your-app-id"
|
|
1302
|
+
* config={{
|
|
1303
|
+
* intl: {
|
|
1304
|
+
* textLocalization: {
|
|
1305
|
+
* 'connectWallet.connectYourWallet': 'Connecter un portefeuille',
|
|
1306
|
+
* 'connectionStatus.successfullyConnected': 'Connexion réussie avec {walletName}',
|
|
1307
|
+
* }
|
|
1308
|
+
* }
|
|
1309
|
+
* }}
|
|
1310
|
+
* >
|
|
1311
|
+
* {children}
|
|
1312
|
+
* </PrivyProvider>
|
|
1313
|
+
* ```
|
|
1314
|
+
*/
|
|
1315
|
+
textLocalization?: Partial<PrivyI18nStrings>;
|
|
1255
1316
|
};
|
|
1256
1317
|
/**
|
|
1257
1318
|
* This property is only required for apps that use a third-party authentication provider.
|
|
@@ -1660,6 +1721,7 @@ type AppConfig = {
|
|
|
1660
1721
|
defaultChain: Chain;
|
|
1661
1722
|
intl: {
|
|
1662
1723
|
defaultCountry: CountryCode;
|
|
1724
|
+
textLocalization?: Partial<PrivyI18nStrings>;
|
|
1663
1725
|
};
|
|
1664
1726
|
customOAuthProviders: PrivyAppResponse['custom_oauth_providers'];
|
|
1665
1727
|
/**
|
|
@@ -2311,4 +2373,4 @@ type EthereumRpcResponseType = eth_signTransactionResponse | eth_populateTransac
|
|
|
2311
2373
|
type SolanaRpcRequestType = solana_signMessage;
|
|
2312
2374
|
type SolanaRpcResponseType = solana_signMessageResponse;
|
|
2313
2375
|
|
|
2314
|
-
export { type SiwsMessageType as $, type WalletListEntry as A, type BaseConnectedEthereumWallet as B, type CreateWalletOptions as C, type AppConfig as D, type EthereumRpcRequestType as E, type FundingMethod as F, type BaseConnectedWallet as G, type HDWalletWithMetadata as H, type ConnectWalletModalOptions as I, type LoginModalOptions as J, type SetWalletRecoveryOptions as K, type LoginMethod as L, type MfaMethod as M, type SignTypedDataParams as N, type OAuthTokens as O, PrivyErrorCode as P, type UnsignedTransactionRequest as Q, type RuntimeLoginOverridableOptions as R, type SolanaChain as S, type FundWalletConfig as T, type User as U, type ConnectedWallet as V, type Wallet as W, type CrossAppProviderDetails as X, type MoonpaySignRequest as Y, type MoonpaySignResponse as Z, type SmartWalletConfig as _, type LinkedAccountWithMetadata as a, type ExternalWalletMetadata as a0, type TelegramAuthResult as a1, type TelegramWebAppData as a2, type OAuthUserInfo as a3, type OAuthFlowState as a4, type LoginWithCode as a5, type OtpFlowState as a6, type PasskeyFlowState as a7, type SiweFlowState as a8, type BaseAccountSdkType as a9, type GoogleOAuthWithMetadata as aA, type TwitterOAuthWithMetadata as aB, type DiscordOAuthWithMetadata as aC, type GithubOAuthWithMetadata as aD, type TiktokOAuthWithMetadata as aE, type LineOAuthWithMetadata as aF, type LinkedInOAuthWithMetadata as aG, type AppleOAuthWithMetadata as aH, type FarcasterWithMetadata as aI, type TelegramWithMetadata as aJ, type CrossAppAccountWithMetadata as aK, type PasskeyWithMetadata as aL, type Email as aM, type Phone as aN, type TransactionUIOptions as aO, type ContractUIOptions as aP, type NativeFundingConfig as aQ, type PriceDisplayOptions as aR, type Farcaster as aS, type Passkey as aT, type LoginMethodOrderOption as aU, type SiwsFlowState as aV, type UnsignedTransactionRequestWithChainId as aa, type BaseConnectedWalletType as ab, type TelegramAuthFlowState as ac, type TypedMessage as ad, type MessageTypes as ae, type SmartWallet as af, type MoonpayCurrencyCode as ag, type MoonpayPaymentMethod as ah, type Quantity as ai, type TransactionLog as aj, type TransactionReceipt as ak, type NonEmptyArray as al, type EmailWithMetadata as am, type PhoneWithMetadata as an, type WalletWithMetadata as ao, type Google as ap, type Twitter as aq, type Discord as ar, type Github as as, type LinkedIn as at, type Apple as au, type Tiktok as av, type Line as aw, type Telegram as ax, type CrossAppAccount as ay, type LinkedAccountType as az, type BaseConnectedSolanaWallet as b, type UserRecoveryMethod as c, type LoginToMiniApp as d, type SendTransactionModalUIOptions as e, type SignMessageModalUIOptions as f, type SessionSignerInput as g, type SolanaStandardWallet as h, type SolanaFundingConfig as i, SolanaWalletConnector as j, type MfaSubmitArgs as k, type SolanaRpcRequestType as l, type EthereumRpcResponseType as m, type SolanaRpcResponseType as n, type PrivyFarcasterSignerInitResponse as o, type EIP1193Provider as p, type EntropyIdVerifier as q, type RequestArguments as r, WalletConnector as s, toSolanaWalletConnectors as t, PrivyProxyProvider as u, type WalletClientType as v, type ConnectedWalletMetadata as w, type PrivyClientConfig as x, type ConnectorType as y, type SetBaseAccountSdkType as z };
|
|
2376
|
+
export { type SiwsMessageType as $, type WalletListEntry as A, type BaseConnectedEthereumWallet as B, type CreateWalletOptions as C, type AppConfig as D, type EthereumRpcRequestType as E, type FundingMethod as F, type BaseConnectedWallet as G, type HDWalletWithMetadata as H, type ConnectWalletModalOptions as I, type LoginModalOptions as J, type SetWalletRecoveryOptions as K, type LoginMethod as L, type MfaMethod as M, type SignTypedDataParams as N, type OAuthTokens as O, PrivyErrorCode as P, type UnsignedTransactionRequest as Q, type RuntimeLoginOverridableOptions as R, type SolanaChain as S, type FundWalletConfig as T, type User as U, type ConnectedWallet as V, type Wallet as W, type CrossAppProviderDetails as X, type MoonpaySignRequest as Y, type MoonpaySignResponse as Z, type SmartWalletConfig as _, type LinkedAccountWithMetadata as a, type ExternalWalletMetadata as a0, type TelegramAuthResult as a1, type TelegramWebAppData as a2, type OAuthUserInfo as a3, type OAuthFlowState as a4, type LoginWithCode as a5, type OtpFlowState as a6, type PasskeyFlowState as a7, type SiweFlowState as a8, type BaseAccountSdkType as a9, type GoogleOAuthWithMetadata as aA, type TwitterOAuthWithMetadata as aB, type DiscordOAuthWithMetadata as aC, type GithubOAuthWithMetadata as aD, type TiktokOAuthWithMetadata as aE, type LineOAuthWithMetadata as aF, type LinkedInOAuthWithMetadata as aG, type AppleOAuthWithMetadata as aH, type FarcasterWithMetadata as aI, type TelegramWithMetadata as aJ, type CrossAppAccountWithMetadata as aK, type PasskeyWithMetadata as aL, type Email as aM, type Phone as aN, type TransactionUIOptions as aO, type ContractUIOptions as aP, type NativeFundingConfig as aQ, type PriceDisplayOptions as aR, type Farcaster as aS, type Passkey as aT, type LoginMethodOrderOption as aU, type SiwsFlowState as aV, type PrivyI18nStrings as aW, type UnsignedTransactionRequestWithChainId as aa, type BaseConnectedWalletType as ab, type TelegramAuthFlowState as ac, type TypedMessage as ad, type MessageTypes as ae, type SmartWallet as af, type MoonpayCurrencyCode as ag, type MoonpayPaymentMethod as ah, type Quantity as ai, type TransactionLog as aj, type TransactionReceipt as ak, type NonEmptyArray as al, type EmailWithMetadata as am, type PhoneWithMetadata as an, type WalletWithMetadata as ao, type Google as ap, type Twitter as aq, type Discord as ar, type Github as as, type LinkedIn as at, type Apple as au, type Tiktok as av, type Line as aw, type Telegram as ax, type CrossAppAccount as ay, type LinkedAccountType as az, type BaseConnectedSolanaWallet as b, type UserRecoveryMethod as c, type LoginToMiniApp as d, type SendTransactionModalUIOptions as e, type SignMessageModalUIOptions as f, type SessionSignerInput as g, type SolanaStandardWallet as h, type SolanaFundingConfig as i, SolanaWalletConnector as j, type MfaSubmitArgs as k, type SolanaRpcRequestType as l, type EthereumRpcResponseType as m, type SolanaRpcResponseType as n, type PrivyFarcasterSignerInitResponse as o, type EIP1193Provider as p, type EntropyIdVerifier as q, type RequestArguments as r, WalletConnector as s, toSolanaWalletConnectors as t, PrivyProxyProvider as u, type WalletClientType as v, type ConnectedWalletMetadata as w, type PrivyClientConfig as x, type ConnectorType as y, type SetBaseAccountSdkType as z };
|
package/dist/dts/ui.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import { R as RuntimeLoginOverridableOptions, S as SolanaChain } from './types-
|
|
2
|
+
import { R as RuntimeLoginOverridableOptions, S as SolanaChain } from './types-CjeRoR7y.js';
|
|
3
3
|
import { Hex } from 'viem';
|
|
4
4
|
import { Chain } from '@privy-io/js-sdk-core';
|
|
5
5
|
import '@coinbase/wallet-sdk';
|
package/dist/dts/ui.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import { R as RuntimeLoginOverridableOptions, S as SolanaChain } from './types-
|
|
2
|
+
import { R as RuntimeLoginOverridableOptions, S as SolanaChain } from './types-CjeRoR7y.js';
|
|
3
3
|
import { Hex } from 'viem';
|
|
4
4
|
import { Chain } from '@privy-io/js-sdk-core';
|
|
5
5
|
import '@coinbase/wallet-sdk';
|