@privy-io/react-auth 1.24.0-beta.3 → 1.24.0-beta.5
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 +356 -183
- package/dist/index.d.ts +17 -0
- package/dist/index.js +356 -183
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -359,10 +359,26 @@ type SignMessageModalUIOptions = {
|
|
|
359
359
|
description?: string;
|
|
360
360
|
buttonText?: string;
|
|
361
361
|
};
|
|
362
|
+
type SendTransactionModalTransactionInfo = {
|
|
363
|
+
description?: string;
|
|
364
|
+
action: string;
|
|
365
|
+
actionDescription: string;
|
|
366
|
+
};
|
|
367
|
+
type SenderInfo = {
|
|
368
|
+
url: string;
|
|
369
|
+
name: string;
|
|
370
|
+
actionText: string;
|
|
371
|
+
imgUrl?: string;
|
|
372
|
+
imgAltText?: string;
|
|
373
|
+
imgSize?: 'sm' | 'lg';
|
|
374
|
+
};
|
|
362
375
|
type SendTransactionModalUIOptions = {
|
|
376
|
+
modalTitle?: string;
|
|
363
377
|
title?: string;
|
|
364
378
|
description?: string;
|
|
365
379
|
buttonText?: string;
|
|
380
|
+
senderInfo?: SenderInfo;
|
|
381
|
+
transactionInfo?: SendTransactionModalTransactionInfo;
|
|
366
382
|
};
|
|
367
383
|
|
|
368
384
|
declare function getAccessToken(): Promise<string | null>;
|
|
@@ -1091,6 +1107,7 @@ declare class PrivyClient {
|
|
|
1091
1107
|
disableAutoRefresh?: boolean;
|
|
1092
1108
|
}): Promise<string | null>;
|
|
1093
1109
|
getServerConfig(): Promise<PrivyServerConfig>;
|
|
1110
|
+
getUsdTokenPrice(chainId: string | number): Promise<number | undefined>;
|
|
1094
1111
|
setActiveWallet(address: string, user: User): Promise<User>;
|
|
1095
1112
|
/**
|
|
1096
1113
|
* Get a short-lived token to start a new Privy session from the existing authenticated session.
|