@privy-io/react-auth 1.45.3-beta-20231031214219 → 1.45.3
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/esm/index.js +2 -2
- package/dist/index.d.ts +24 -8
- package/dist/index.js +2 -2
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1231,6 +1231,16 @@ type PrivyServerConfig = {
|
|
|
1231
1231
|
accentColor?: string;
|
|
1232
1232
|
};
|
|
1233
1233
|
type HexColor = `#${string}`;
|
|
1234
|
+
/**
|
|
1235
|
+
* Options to customize the display of transaction prices in the embedded wallet's transaction prompt.
|
|
1236
|
+
*/
|
|
1237
|
+
type PriceDisplayOptions = {
|
|
1238
|
+
primary: 'fiat-currency';
|
|
1239
|
+
secondary: 'native-token';
|
|
1240
|
+
} | {
|
|
1241
|
+
primary: 'native-token';
|
|
1242
|
+
secondary: null;
|
|
1243
|
+
};
|
|
1234
1244
|
type PrivyClientConfig = {
|
|
1235
1245
|
/** All UI and theme related configuration */
|
|
1236
1246
|
appearance?: {
|
|
@@ -1383,16 +1393,22 @@ type PrivyClientConfig = {
|
|
|
1383
1393
|
*/
|
|
1384
1394
|
noPromptOnSignature?: boolean;
|
|
1385
1395
|
/**
|
|
1386
|
-
*
|
|
1387
|
-
* prompt
|
|
1396
|
+
* Options to customize the display of transaction prices in the embedded wallet's transaction
|
|
1397
|
+
* prompt. You may configure a primary currency to emphasize, and a secondary currency to show
|
|
1398
|
+
* as subtext. Defaults to emphasizing the price in fiat currency, and showing the price in the native
|
|
1399
|
+
* token as subtext.
|
|
1400
|
+
*
|
|
1401
|
+
* You may either set:
|
|
1402
|
+
* - `{primary: 'fiat-currency', secondary: 'native-token'}` to emphasize fiat currency prices, showing native token
|
|
1403
|
+
* prices as subtext. This is the default.
|
|
1404
|
+
* - `{secondary: 'native-token', secondary: null}` to show native token prices only, with no subtext.
|
|
1388
1405
|
*
|
|
1389
|
-
*
|
|
1390
|
-
*
|
|
1391
|
-
* -
|
|
1406
|
+
* Privy does not currently support:
|
|
1407
|
+
* - emphasizing native token prices over fiat currency prices
|
|
1408
|
+
* - showing prices only in fiat currency, without native token prices
|
|
1392
1409
|
*
|
|
1393
|
-
* Defaults to `false`.
|
|
1394
1410
|
*/
|
|
1395
|
-
|
|
1411
|
+
priceDisplay?: PriceDisplayOptions;
|
|
1396
1412
|
};
|
|
1397
1413
|
/**
|
|
1398
1414
|
* Setting associated with fiat-on-ramp flows
|
|
@@ -2185,4 +2201,4 @@ declare function useCreateWallet(callbacks?: PrivyEvents['createWallet']): {
|
|
|
2185
2201
|
createWallet: () => Promise<Wallet>;
|
|
2186
2202
|
};
|
|
2187
2203
|
|
|
2188
|
-
export { Apple, AppleOAuthWithMetadata, AsExternalProvider, CallbackError, ConnectedWallet, ConnectorManager, ContractUIOptions, Discord, DiscordOAuthWithMetadata, EIP1193Provider, Email, EmailWithMetadata, FundWalletConfig, Github, GithubOAuthWithMetadata, Google, GoogleOAuthWithMetadata, LinkedIn, LinkedInOAuthWithMetadata, MfaMethod, MoonpayConfig, MoonpayCurrencyCode, MoonpayPaymentMethod, Phone, PhoneWithMetadata, PrivyClient, PrivyClientConfig, PrivyEvents, PrivyInterface, PrivyProvider, PrivyProviderProps, PrivyProxyProvider, Quantity, DEFAULT_SUPPORTED_CHAINS as SUPPORTED_CHAINS, SendTransactionModalUIOptions, SignMessageModalUIOptions, Tiktok, TiktokOAuthWithMetadata, TransactionLog, TransactionReceipt, TransactionUIOptions, Twitter, TwitterOAuthWithMetadata, UnsignedTransactionRequest, UseWalletsInterface, User, VERSION, Wallet, WalletConnector, WalletWithMetadata, errorIndicatesMaxMfaRetries, errorIndicatesMfaTimeout, errorIndicatesMfaVerificationFailed, getAccessToken, useConnectWallet, useCreateWallet, useLogin, useLogout, useMfa, useMfaEnrollment, usePrivy, useWallets };
|
|
2204
|
+
export { Apple, AppleOAuthWithMetadata, AsExternalProvider, CallbackError, ConnectedWallet, ConnectorManager, ContractUIOptions, Discord, DiscordOAuthWithMetadata, EIP1193Provider, Email, EmailWithMetadata, FundWalletConfig, Github, GithubOAuthWithMetadata, Google, GoogleOAuthWithMetadata, LinkedIn, LinkedInOAuthWithMetadata, MfaMethod, MoonpayConfig, MoonpayCurrencyCode, MoonpayPaymentMethod, Phone, PhoneWithMetadata, PriceDisplayOptions, PrivyClient, PrivyClientConfig, PrivyEvents, PrivyInterface, PrivyProvider, PrivyProviderProps, PrivyProxyProvider, Quantity, DEFAULT_SUPPORTED_CHAINS as SUPPORTED_CHAINS, SendTransactionModalUIOptions, SignMessageModalUIOptions, Tiktok, TiktokOAuthWithMetadata, TransactionLog, TransactionReceipt, TransactionUIOptions, Twitter, TwitterOAuthWithMetadata, UnsignedTransactionRequest, UseWalletsInterface, User, VERSION, Wallet, WalletConnector, WalletWithMetadata, errorIndicatesMaxMfaRetries, errorIndicatesMfaTimeout, errorIndicatesMfaVerificationFailed, getAccessToken, useConnectWallet, useCreateWallet, useLogin, useLogout, useMfa, useMfaEnrollment, usePrivy, useWallets };
|