@swype-org/react-sdk 0.1.287 → 0.1.293
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/index.cjs +641 -174
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +290 -13
- package/dist/index.d.ts +290 -13
- package/dist/index.js +627 -175
- package/dist/index.js.map +1 -1
- package/package.json +4 -9
package/dist/index.d.cts
CHANGED
|
@@ -216,6 +216,37 @@ interface AdvancedSettings {
|
|
|
216
216
|
/** Override chain name (e.g. 'Base', 'Ethereum'). Null = let backend decide. */
|
|
217
217
|
chain: string | null;
|
|
218
218
|
}
|
|
219
|
+
/** Decimal-string money amount (avoids JSON floating-point for fees). */
|
|
220
|
+
interface PreciseMoney {
|
|
221
|
+
value: string;
|
|
222
|
+
currency: string;
|
|
223
|
+
}
|
|
224
|
+
/** Guest fee projection from PUT /sender probe or POST /v1/transfers/{id}/quotes. */
|
|
225
|
+
interface GuestTransferFee {
|
|
226
|
+
quote: PreciseMoney | null;
|
|
227
|
+
actual: PreciseMoney | null;
|
|
228
|
+
}
|
|
229
|
+
/** Server-ranked default source from PUT /sender probe (guest checkout). */
|
|
230
|
+
interface RecommendedGuestSource {
|
|
231
|
+
sourceChainId: number;
|
|
232
|
+
tokenAddress: string;
|
|
233
|
+
chainName: string;
|
|
234
|
+
tokenSymbol: string;
|
|
235
|
+
}
|
|
236
|
+
/** Balance row inside PUT /sender probe `source.balances`. */
|
|
237
|
+
interface GuestTransferBalanceItem extends SourceOption {
|
|
238
|
+
sourceChainId: number;
|
|
239
|
+
}
|
|
240
|
+
/** Envelope returned by PUT /v1/transfers/{id}/sender (probe or commit). */
|
|
241
|
+
interface SetTransferSenderResponse {
|
|
242
|
+
transfer: Transfer;
|
|
243
|
+
source?: {
|
|
244
|
+
balances: GuestTransferBalanceItem[];
|
|
245
|
+
recommended: RecommendedGuestSource;
|
|
246
|
+
};
|
|
247
|
+
/** Present on probe only. */
|
|
248
|
+
fee?: GuestTransferFee;
|
|
249
|
+
}
|
|
219
250
|
|
|
220
251
|
interface ThemeTokens {
|
|
221
252
|
bg: string;
|
|
@@ -430,7 +461,20 @@ declare function getTransferByGuestToken(apiBaseUrl: string, guestToken: string)
|
|
|
430
461
|
* Set the sender's wallet address and selected source token on a guest transfer.
|
|
431
462
|
* PUT /v1/transfers/:id/sender
|
|
432
463
|
*/
|
|
433
|
-
|
|
464
|
+
/**
|
|
465
|
+
* Guest fee preview before PUT /sender (non-recommended token or refresh).
|
|
466
|
+
* POST /v1/transfers/:id/quotes
|
|
467
|
+
*/
|
|
468
|
+
declare function postGuestTransferFeeQuote(apiBaseUrl: string, transferId: string, guestSessionToken: string, senderAddress: string, sourceChainId: number, sourceToken: string): Promise<GuestTransferFee>;
|
|
469
|
+
/**
|
|
470
|
+
* PUT /v1/transfers/:id/sender — guest probe (`senderAddress` only) or commit (full body).
|
|
471
|
+
*/
|
|
472
|
+
declare function putGuestTransferSender(apiBaseUrl: string, transferId: string, guestSessionToken: string, body: {
|
|
473
|
+
senderAddress: string;
|
|
474
|
+
sourceChainId?: number;
|
|
475
|
+
sourceToken?: string;
|
|
476
|
+
}): Promise<SetTransferSenderResponse>;
|
|
477
|
+
declare function setTransferSender(apiBaseUrl: string, transferId: string, guestSessionToken: string, senderAddress: string, sourceChainId: number, sourceToken: string): Promise<SetTransferSenderResponse>;
|
|
434
478
|
/**
|
|
435
479
|
* Submit the origin chain tx hash for a guest transfer.
|
|
436
480
|
* PATCH /v1/transfers/:id with { originTxHash }
|
|
@@ -441,15 +485,8 @@ declare function signGuestTransfer(apiBaseUrl: string, transferId: string, guest
|
|
|
441
485
|
* GET /v1/transfers/:id with x-guest-session-token header
|
|
442
486
|
*/
|
|
443
487
|
declare function getGuestTransfer(apiBaseUrl: string, transferId: string, guestSessionToken: string): Promise<Transfer>;
|
|
444
|
-
/**
|
|
445
|
-
|
|
446
|
-
sourceChainId: number;
|
|
447
|
-
}
|
|
448
|
-
/**
|
|
449
|
-
* Fetch stablecoin balances for a wallet address, scoped to a guest transfer.
|
|
450
|
-
* GET /v1/transfers/:id/balances?walletAddress=...
|
|
451
|
-
*/
|
|
452
|
-
declare function fetchGuestTransferBalances(apiBaseUrl: string, transferId: string, guestSessionToken: string, walletAddress: string): Promise<GuestBalanceOption[]>;
|
|
488
|
+
/** @alias GuestTransferBalanceItem */
|
|
489
|
+
type GuestBalanceOption = GuestTransferBalanceItem;
|
|
453
490
|
declare function fetchGuestAccount(apiBaseUrl: string, guestToken: string): Promise<{
|
|
454
491
|
accountId: string;
|
|
455
492
|
hasPasskey: boolean;
|
|
@@ -486,13 +523,14 @@ declare const api_fetchAuthorizationSession: typeof fetchAuthorizationSession;
|
|
|
486
523
|
declare const api_fetchAuthorizationSessionByToken: typeof fetchAuthorizationSessionByToken;
|
|
487
524
|
declare const api_fetchChains: typeof fetchChains;
|
|
488
525
|
declare const api_fetchGuestAccount: typeof fetchGuestAccount;
|
|
489
|
-
declare const api_fetchGuestTransferBalances: typeof fetchGuestTransferBalances;
|
|
490
526
|
declare const api_fetchMerchantPublicKey: typeof fetchMerchantPublicKey;
|
|
491
527
|
declare const api_fetchProviders: typeof fetchProviders;
|
|
492
528
|
declare const api_fetchTransfer: typeof fetchTransfer;
|
|
493
529
|
declare const api_fetchUserConfig: typeof fetchUserConfig;
|
|
494
530
|
declare const api_getGuestTransfer: typeof getGuestTransfer;
|
|
495
531
|
declare const api_getTransferByGuestToken: typeof getTransferByGuestToken;
|
|
532
|
+
declare const api_postGuestTransferFeeQuote: typeof postGuestTransferFeeQuote;
|
|
533
|
+
declare const api_putGuestTransferSender: typeof putGuestTransferSender;
|
|
496
534
|
declare const api_registerPasskey: typeof registerPasskey;
|
|
497
535
|
declare const api_reportActionCompletion: typeof reportActionCompletion;
|
|
498
536
|
declare const api_reportPasskeyActivity: typeof reportPasskeyActivity;
|
|
@@ -503,7 +541,7 @@ declare const api_signTransfer: typeof signTransfer;
|
|
|
503
541
|
declare const api_updateUserConfig: typeof updateUserConfig;
|
|
504
542
|
declare const api_updateUserConfigBySession: typeof updateUserConfigBySession;
|
|
505
543
|
declare namespace api {
|
|
506
|
-
export { type api_CreateAccountParams as CreateAccountParams, type api_CreateGuestTransferParams as CreateGuestTransferParams, type api_CreateTransferParams as CreateTransferParams, type api_GuestBalanceOption as GuestBalanceOption, type api_GuestTransferResult as GuestTransferResult, api_createAccount as createAccount, api_createAccountAuthorizationSession as createAccountAuthorizationSession, api_createGuestAccount as createGuestAccount, api_createGuestTransfer as createGuestTransfer, api_createTransfer as createTransfer, api_fetchAccount as fetchAccount, api_fetchAccounts as fetchAccounts, api_fetchAuthorizationSession as fetchAuthorizationSession, api_fetchAuthorizationSessionByToken as fetchAuthorizationSessionByToken, api_fetchChains as fetchChains, api_fetchGuestAccount as fetchGuestAccount,
|
|
544
|
+
export { type api_CreateAccountParams as CreateAccountParams, type api_CreateGuestTransferParams as CreateGuestTransferParams, type api_CreateTransferParams as CreateTransferParams, type api_GuestBalanceOption as GuestBalanceOption, type api_GuestTransferResult as GuestTransferResult, api_createAccount as createAccount, api_createAccountAuthorizationSession as createAccountAuthorizationSession, api_createGuestAccount as createGuestAccount, api_createGuestTransfer as createGuestTransfer, api_createTransfer as createTransfer, api_fetchAccount as fetchAccount, api_fetchAccounts as fetchAccounts, api_fetchAuthorizationSession as fetchAuthorizationSession, api_fetchAuthorizationSessionByToken as fetchAuthorizationSessionByToken, api_fetchChains as fetchChains, api_fetchGuestAccount as fetchGuestAccount, api_fetchMerchantPublicKey as fetchMerchantPublicKey, api_fetchProviders as fetchProviders, api_fetchTransfer as fetchTransfer, api_fetchUserConfig as fetchUserConfig, api_getGuestTransfer as getGuestTransfer, api_getTransferByGuestToken as getTransferByGuestToken, api_postGuestTransferFeeQuote as postGuestTransferFeeQuote, api_putGuestTransferSender as putGuestTransferSender, api_registerPasskey as registerPasskey, api_reportActionCompletion as reportActionCompletion, api_reportPasskeyActivity as reportPasskeyActivity, api_setAccountOwner as setAccountOwner, api_setTransferSender as setTransferSender, api_signGuestTransfer as signGuestTransfer, api_signTransfer as signTransfer, api_updateUserConfig as updateUserConfig, api_updateUserConfigBySession as updateUserConfigBySession };
|
|
507
545
|
}
|
|
508
546
|
|
|
509
547
|
interface BlinkPaymentProps {
|
|
@@ -732,6 +770,36 @@ interface UseTransferSigningOptions {
|
|
|
732
770
|
*/
|
|
733
771
|
declare function useTransferSigning(pollIntervalMs?: number, options?: UseTransferSigningOptions): UseTransferSigningResult;
|
|
734
772
|
|
|
773
|
+
interface GuestTokenEntry {
|
|
774
|
+
chainId: string;
|
|
775
|
+
/** Standard EVM numeric chain ID — used in PUT /sender sourceChainId. */
|
|
776
|
+
sourceChainId: number;
|
|
777
|
+
chainName: string;
|
|
778
|
+
tokenSymbol: string;
|
|
779
|
+
tokenAddress: string;
|
|
780
|
+
balance: number;
|
|
781
|
+
decimals: number;
|
|
782
|
+
rawBalance: string;
|
|
783
|
+
}
|
|
784
|
+
interface GuestBalanceOptionInput {
|
|
785
|
+
chainId: string;
|
|
786
|
+
sourceChainId: number;
|
|
787
|
+
chainName: string;
|
|
788
|
+
tokenSymbol: string;
|
|
789
|
+
tokenAddress: string;
|
|
790
|
+
decimals: number;
|
|
791
|
+
rawBalance: string;
|
|
792
|
+
}
|
|
793
|
+
/**
|
|
794
|
+
* Picker list: positive balances first (by amount); if none, show zero-balance
|
|
795
|
+
* rows so the user can still choose a catalog token.
|
|
796
|
+
*/
|
|
797
|
+
declare function mapGuestPickerEntries(options: GuestBalanceOptionInput[]): GuestTokenEntry[];
|
|
798
|
+
declare function guestEntryMatchingRecommended(balances: GuestBalanceOptionInput[], recommended: {
|
|
799
|
+
sourceChainId: number;
|
|
800
|
+
tokenAddress: string;
|
|
801
|
+
}): GuestTokenEntry | null;
|
|
802
|
+
|
|
735
803
|
interface ScreenLayoutProps {
|
|
736
804
|
children: ReactNode;
|
|
737
805
|
/** Content pinned to the bottom of the screen (buttons, footer) */
|
|
@@ -811,6 +879,37 @@ declare function Spinner({ size, label }: SpinnerProps): react_jsx_runtime.JSX.E
|
|
|
811
879
|
|
|
812
880
|
declare function BlinkLoadingScreen(): react_jsx_runtime.JSX.Element;
|
|
813
881
|
|
|
882
|
+
interface LoginScreenProps {
|
|
883
|
+
authInput: string;
|
|
884
|
+
onAuthInputChange: (value: string) => void;
|
|
885
|
+
onSubmit: () => void;
|
|
886
|
+
sending: boolean;
|
|
887
|
+
error: string | null;
|
|
888
|
+
onBack?: () => void;
|
|
889
|
+
merchantInitials?: string;
|
|
890
|
+
onSocialLogin?: (provider: 'google' | 'apple' | 'twitter') => void;
|
|
891
|
+
/** Overrides default hero heading (e.g. gallery / recovery-email flow). */
|
|
892
|
+
heroTitle?: string;
|
|
893
|
+
/** Optional line below the hero heading. */
|
|
894
|
+
heroSubtitle?: string;
|
|
895
|
+
/** Overrides default input placeholder. */
|
|
896
|
+
inputPlaceholder?: string;
|
|
897
|
+
}
|
|
898
|
+
declare function LoginScreen({ authInput, onAuthInputChange, onSubmit, sending, error, onBack, merchantInitials, onSocialLogin, heroTitle, heroSubtitle, inputPlaceholder, }: LoginScreenProps): react_jsx_runtime.JSX.Element;
|
|
899
|
+
|
|
900
|
+
interface OtpVerifyScreenProps {
|
|
901
|
+
/** Masked identifier displayed to the user (e.g. "user@email.com") */
|
|
902
|
+
maskedIdentifier: string;
|
|
903
|
+
otpCode: string;
|
|
904
|
+
onOtpChange: (code: string) => void;
|
|
905
|
+
onVerify: () => void;
|
|
906
|
+
onResend: () => void;
|
|
907
|
+
onBack: () => void;
|
|
908
|
+
verifying: boolean;
|
|
909
|
+
error: string | null;
|
|
910
|
+
}
|
|
911
|
+
declare function OtpVerifyScreen({ maskedIdentifier, otpCode, onOtpChange, onVerify, onResend, onBack, verifying, error, }: OtpVerifyScreenProps): react_jsx_runtime.JSX.Element;
|
|
912
|
+
|
|
814
913
|
interface PasskeyScreenProps {
|
|
815
914
|
onCreatePasskey: () => void;
|
|
816
915
|
onBack?: () => void;
|
|
@@ -824,6 +923,14 @@ interface PasskeyScreenProps {
|
|
|
824
923
|
}
|
|
825
924
|
declare function PasskeyScreen({ onCreatePasskey, onBack, onLogout, creating, error, popupFallback, onCreatePasskeyViaPopup, }: PasskeyScreenProps): react_jsx_runtime.JSX.Element;
|
|
826
925
|
|
|
926
|
+
interface VerifyPasskeyScreenProps {
|
|
927
|
+
onVerify: () => void;
|
|
928
|
+
onBack?: () => void;
|
|
929
|
+
verifying: boolean;
|
|
930
|
+
error: string | null;
|
|
931
|
+
}
|
|
932
|
+
declare function VerifyPasskeyScreen({ onVerify, onBack, verifying, error, }: VerifyPasskeyScreenProps): react_jsx_runtime.JSX.Element;
|
|
933
|
+
|
|
827
934
|
type AuthIdentifierKind = 'email' | 'phone';
|
|
828
935
|
interface NormalizedAuthIdentifier {
|
|
829
936
|
kind: AuthIdentifierKind;
|
|
@@ -891,6 +998,27 @@ type PaymentPhase = {
|
|
|
891
998
|
};
|
|
892
999
|
declare function screenForPhase(phase: PaymentPhase): ScreenName;
|
|
893
1000
|
|
|
1001
|
+
interface PreparedSession {
|
|
1002
|
+
accountId: string;
|
|
1003
|
+
sessionId: string;
|
|
1004
|
+
uri: string;
|
|
1005
|
+
}
|
|
1006
|
+
|
|
1007
|
+
interface WalletPickerScreenProps {
|
|
1008
|
+
providers: Provider[];
|
|
1009
|
+
pendingConnections?: Account[];
|
|
1010
|
+
loading?: boolean;
|
|
1011
|
+
useDeeplink?: boolean;
|
|
1012
|
+
onPrepareProvider: (providerId: string) => Promise<PreparedSession | null>;
|
|
1013
|
+
onSelectProvider: (providerId: string, preparedSession?: PreparedSession) => Promise<void>;
|
|
1014
|
+
onContinueConnection?: (accountId: string) => void;
|
|
1015
|
+
onBack?: () => void;
|
|
1016
|
+
onLogout?: () => void;
|
|
1017
|
+
onLogin?: () => void;
|
|
1018
|
+
showLoginOption?: boolean;
|
|
1019
|
+
}
|
|
1020
|
+
declare function WalletPickerScreen({ providers, pendingConnections, loading, useDeeplink, onPrepareProvider, onSelectProvider, onContinueConnection, onBack, onLogout, onLogin, showLoginOption, }: WalletPickerScreenProps): react_jsx_runtime.JSX.Element;
|
|
1021
|
+
|
|
894
1022
|
interface SetupScreenProps {
|
|
895
1023
|
availableBalance: number;
|
|
896
1024
|
/** Number of tokens/chains available */
|
|
@@ -911,6 +1039,87 @@ interface SetupScreenProps {
|
|
|
911
1039
|
}
|
|
912
1040
|
declare function SetupScreen({ availableBalance, onSetupOneTap, onBack, onLogout, onAdvanced, loading, error, selectedTokenSymbol, }: SetupScreenProps): react_jsx_runtime.JSX.Element;
|
|
913
1041
|
|
|
1042
|
+
interface SetupStatusScreenProps {
|
|
1043
|
+
/** Whether setup has completed */
|
|
1044
|
+
complete: boolean;
|
|
1045
|
+
/** The approved One-Tap limit */
|
|
1046
|
+
limit: number;
|
|
1047
|
+
/** Number of tokens approved */
|
|
1048
|
+
tokensApproved: number;
|
|
1049
|
+
/** Merchant name for the "Return to ..." button */
|
|
1050
|
+
merchantName?: string;
|
|
1051
|
+
/** Called when user taps the primary action on the complete screen */
|
|
1052
|
+
onContinue: () => void;
|
|
1053
|
+
onLogout: () => void;
|
|
1054
|
+
error: string | null;
|
|
1055
|
+
}
|
|
1056
|
+
declare function SetupStatusScreen({ complete, onContinue, onLogout, error, }: SetupStatusScreenProps): react_jsx_runtime.JSX.Element;
|
|
1057
|
+
|
|
1058
|
+
interface DepositScreenProps {
|
|
1059
|
+
merchantName?: string;
|
|
1060
|
+
/** Total available balance from source */
|
|
1061
|
+
availableBalance: number;
|
|
1062
|
+
/** Remaining One-Tap allowance from the API, or null when not configured */
|
|
1063
|
+
remainingLimit: number | null;
|
|
1064
|
+
/** Number of tokens/chains available */
|
|
1065
|
+
tokenCount: number;
|
|
1066
|
+
/** Pre-populated amount */
|
|
1067
|
+
initialAmount: number;
|
|
1068
|
+
/** Estimated fee percentage and dollar amount */
|
|
1069
|
+
estimatedFeePct?: number;
|
|
1070
|
+
estimatedFeeUsd?: number;
|
|
1071
|
+
/** Whether the deposit is currently processing */
|
|
1072
|
+
processing?: boolean;
|
|
1073
|
+
error: string | null;
|
|
1074
|
+
onDeposit: (amount: number) => void;
|
|
1075
|
+
onSwitchWallet: () => void;
|
|
1076
|
+
onBack: () => void;
|
|
1077
|
+
onLogout: () => void;
|
|
1078
|
+
/** Called when the user taps "Increase Limit" to re-authorize via wallet deeplink */
|
|
1079
|
+
onIncreaseLimit?: () => void;
|
|
1080
|
+
/** Whether a limit-increase flow is currently in progress */
|
|
1081
|
+
increasingLimit?: boolean;
|
|
1082
|
+
/** All user accounts for the source dropdown */
|
|
1083
|
+
accounts?: Account[];
|
|
1084
|
+
/** Currently selected account ID */
|
|
1085
|
+
selectedAccountId?: string | null;
|
|
1086
|
+
/** Called when an active account is selected from the dropdown */
|
|
1087
|
+
onSelectAccount?: (accountId: string) => void;
|
|
1088
|
+
/** Called when an inactive account is clicked (to authorize it) */
|
|
1089
|
+
onAuthorizeAccount?: (accountId: string) => void;
|
|
1090
|
+
/** Called when "+ Add Provider" is clicked in the dropdown */
|
|
1091
|
+
onAddProvider?: () => void;
|
|
1092
|
+
/** Called when the token badge is tapped to open the token picker */
|
|
1093
|
+
onSelectToken?: () => void;
|
|
1094
|
+
/** Label for the selected chain/token, e.g. "USDC on Base" */
|
|
1095
|
+
selectedSourceLabel?: string;
|
|
1096
|
+
/** Token symbol for the selected source, e.g. "USDC" or "USDT" */
|
|
1097
|
+
selectedTokenSymbol?: string;
|
|
1098
|
+
/**
|
|
1099
|
+
* Minimum USD amount required for One-Tap on this screen. When the host sets
|
|
1100
|
+
* `depositAmount`, this should match it; otherwise the default floor ($0.25)
|
|
1101
|
+
* applies (see StepRenderer).
|
|
1102
|
+
*/
|
|
1103
|
+
minDepositFloor: number;
|
|
1104
|
+
}
|
|
1105
|
+
declare function DepositScreen({ merchantName, availableBalance, remainingLimit, tokenCount, initialAmount, minDepositFloor, processing, error, onDeposit, onSwitchWallet, onBack, onLogout, onIncreaseLimit, increasingLimit, accounts, selectedAccountId, onSelectAccount, onAuthorizeAccount, onAddProvider, onSelectToken, selectedSourceLabel, selectedTokenSymbol, }: DepositScreenProps): react_jsx_runtime.JSX.Element;
|
|
1106
|
+
|
|
1107
|
+
interface SuccessScreenProps {
|
|
1108
|
+
amount: number;
|
|
1109
|
+
currency: string;
|
|
1110
|
+
succeeded: boolean;
|
|
1111
|
+
error?: string | null;
|
|
1112
|
+
merchantName?: string;
|
|
1113
|
+
sourceName?: string;
|
|
1114
|
+
remainingLimit?: number | null;
|
|
1115
|
+
onDone: () => void;
|
|
1116
|
+
onLogout?: () => void;
|
|
1117
|
+
onIncreaseLimits?: () => void;
|
|
1118
|
+
onManageAccount?: () => void;
|
|
1119
|
+
onPreauthorize?: () => void;
|
|
1120
|
+
}
|
|
1121
|
+
declare function SuccessScreen({ amount, currency, succeeded, error, merchantName, sourceName, remainingLimit, onDone, onLogout, onIncreaseLimits, onManageAccount, onPreauthorize, }: SuccessScreenProps): react_jsx_runtime.JSX.Element;
|
|
1122
|
+
|
|
914
1123
|
interface ChainChoice$1 {
|
|
915
1124
|
chainName: string;
|
|
916
1125
|
balance: number;
|
|
@@ -954,6 +1163,46 @@ interface AdvancedSourceScreenProps {
|
|
|
954
1163
|
}
|
|
955
1164
|
declare function AdvancedSourceScreen({ choices, selectedChainName, selectedTokenSymbol, onSelectSource, onBack, }: AdvancedSourceScreenProps): react_jsx_runtime.JSX.Element;
|
|
956
1165
|
|
|
1166
|
+
type TransferPhase = 'creating' | 'verifying' | 'sent';
|
|
1167
|
+
interface TransferStatusScreenProps {
|
|
1168
|
+
phase: TransferPhase;
|
|
1169
|
+
error: string | null;
|
|
1170
|
+
onLogout: () => void;
|
|
1171
|
+
}
|
|
1172
|
+
declare function TransferStatusScreen({ phase, error, onLogout, }: TransferStatusScreenProps): react_jsx_runtime.JSX.Element;
|
|
1173
|
+
|
|
1174
|
+
interface OpenWalletScreenProps {
|
|
1175
|
+
walletName: string | null;
|
|
1176
|
+
deeplinkUri: string;
|
|
1177
|
+
loading: boolean;
|
|
1178
|
+
/** When true (mobile), auto-opens deeplinks and shows the "Open wallet" button.
|
|
1179
|
+
* When false (desktop), shows inline authorization progress instead. */
|
|
1180
|
+
useDeeplink?: boolean;
|
|
1181
|
+
error?: string | null;
|
|
1182
|
+
onRetryStatus?: () => void;
|
|
1183
|
+
onBack?: () => void;
|
|
1184
|
+
onLogout: () => void;
|
|
1185
|
+
}
|
|
1186
|
+
/**
|
|
1187
|
+
* Wallet authorization screen. On mobile, provides a user-tappable button
|
|
1188
|
+
* that triggers the deeplink via window.open. On desktop, shows inline
|
|
1189
|
+
* authorization progress while wallet extension popups handle the flow.
|
|
1190
|
+
*/
|
|
1191
|
+
declare function OpenWalletScreen({ walletName, deeplinkUri, loading, useDeeplink, error, onRetryStatus, onBack, onLogout, }: OpenWalletScreenProps): react_jsx_runtime.JSX.Element;
|
|
1192
|
+
|
|
1193
|
+
interface ConfirmSignScreenProps {
|
|
1194
|
+
walletName: string | null;
|
|
1195
|
+
signing: boolean;
|
|
1196
|
+
error: string | null;
|
|
1197
|
+
onSign: () => void;
|
|
1198
|
+
onLogout: () => void;
|
|
1199
|
+
}
|
|
1200
|
+
/**
|
|
1201
|
+
* Shown after the user returns from wallet authorization. Requires an explicit
|
|
1202
|
+
* button tap to initiate passkey signing (FaceID) rather than auto-triggering.
|
|
1203
|
+
*/
|
|
1204
|
+
declare function ConfirmSignScreen({ walletName, signing, error, onSign, onLogout, }: ConfirmSignScreenProps): react_jsx_runtime.JSX.Element;
|
|
1205
|
+
|
|
957
1206
|
interface TokenPickerScreenProps {
|
|
958
1207
|
account: Account;
|
|
959
1208
|
chains: Array<{
|
|
@@ -974,6 +1223,34 @@ interface TokenPickerScreenProps {
|
|
|
974
1223
|
}
|
|
975
1224
|
declare function TokenPickerScreen({ account, chains, onSelectAuthorized, onAuthorizeToken, onBack, onLogout, depositAmount, selectedTokenSymbol, selectedWalletId, }: TokenPickerScreenProps): react_jsx_runtime.JSX.Element;
|
|
976
1225
|
|
|
1226
|
+
interface GuestTokenPickerScreenProps {
|
|
1227
|
+
entries: GuestTokenEntry[];
|
|
1228
|
+
loading: boolean;
|
|
1229
|
+
setting: boolean;
|
|
1230
|
+
depositAmount?: number;
|
|
1231
|
+
error?: string | null;
|
|
1232
|
+
pendingEntry: GuestTokenEntry | null;
|
|
1233
|
+
quoteFee: PreciseMoney | null;
|
|
1234
|
+
quoteLoading: boolean;
|
|
1235
|
+
onSelect: (entry: GuestTokenEntry) => void;
|
|
1236
|
+
onConfirm: () => void | Promise<void>;
|
|
1237
|
+
onBack: () => void;
|
|
1238
|
+
/** For gallery capture: start with the token list expanded (A06). */
|
|
1239
|
+
defaultTokenListExpanded?: boolean;
|
|
1240
|
+
}
|
|
1241
|
+
declare function GuestTokenPickerScreen({ entries, loading, setting, depositAmount, error, pendingEntry, quoteFee, quoteLoading, onSelect, onConfirm, onBack, defaultTokenListExpanded, }: GuestTokenPickerScreenProps): react_jsx_runtime.JSX.Element;
|
|
1242
|
+
|
|
1243
|
+
interface GuestPreauthSetupCompleteScreenProps {
|
|
1244
|
+
onClose: () => void;
|
|
1245
|
+
onLogout: () => void;
|
|
1246
|
+
}
|
|
1247
|
+
declare function GuestPreauthSetupCompleteScreen({ onClose, onLogout, }: GuestPreauthSetupCompleteScreenProps): react_jsx_runtime.JSX.Element;
|
|
1248
|
+
|
|
1249
|
+
interface GuestPreauthLinkingScreenProps {
|
|
1250
|
+
onLogout: () => void;
|
|
1251
|
+
}
|
|
1252
|
+
declare function GuestPreauthLinkingScreen({ onLogout }: GuestPreauthLinkingScreenProps): react_jsx_runtime.JSX.Element;
|
|
1253
|
+
|
|
977
1254
|
type FlowPhase = 'link' | 'deposit';
|
|
978
1255
|
|
|
979
1256
|
declare function FlowPhaseProvider({ phase, children, }: {
|
|
@@ -985,4 +1262,4 @@ declare const BLINK_LOGO: string;
|
|
|
985
1262
|
/** @deprecated Use BLINK_LOGO instead. Kept for backward compatibility. */
|
|
986
1263
|
declare const BLINK_MASCOT: string;
|
|
987
1264
|
|
|
988
|
-
export { type Account, type ActionExecutionResult, type AdvancedSettings, AdvancedSourceScreen, type Amount, type AuthorizationAction, type AuthorizationSession, type AuthorizationSessionDetail, BLINK_LOGO, BLINK_MASCOT, BlinkLoadingScreen, BlinkPayment, type BlinkPaymentProps, BlinkProvider, type BlinkProviderProps, type Chain, type Destination, type ErrorResponse, type FlowPhase, FlowPhaseProvider, IconCircle, InfoBanner, type ListResponse, type MerchantAuthorization, type MerchantPublicKey, type MobileFlowState, OutlineButton, PasskeyIframeBlockedError, PasskeyScreen, type PaymentPhase, PoweredByFooter, PrimaryButton, type Provider, ScreenHeader, ScreenLayout, type ScreenName, SelectSourceScreen, SettingsMenu, SetupScreen, type SourceOption, type SourceSelection, type SourceType, Spinner, type StepItem, StepList, type ThemeMode, type ThemeTokens, type TokenBalance, TokenPickerScreen, type Transfer, type TransferDestination, type UserConfig, type Wallet, type WalletSource, type WalletToken, api as blinkApi, buildPasskeyPopupOptions, createPasskeyCredential, createPasskeyViaPopup, darkTheme, deviceHasPasskey, findDevicePasskey, findDevicePasskeyViaPopup, getTheme, lightTheme, resolvePasskeyRpId, screenForPhase, useAuthorizationExecutor, useBlinkConfig, useBlinkDepositAmount, useTransferPolling, useTransferSigning };
|
|
1265
|
+
export { type Account, type ActionExecutionResult, type AdvancedSettings, AdvancedSourceScreen, type Amount, type AuthorizationAction, type AuthorizationSession, type AuthorizationSessionDetail, BLINK_LOGO, BLINK_MASCOT, BlinkLoadingScreen, BlinkPayment, type BlinkPaymentProps, BlinkProvider, type BlinkProviderProps, type Chain, ConfirmSignScreen, DepositScreen, type Destination, type ErrorResponse, type FlowPhase, FlowPhaseProvider, type GuestBalanceOptionInput, GuestPreauthLinkingScreen, GuestPreauthSetupCompleteScreen, type GuestTokenEntry, GuestTokenPickerScreen, type GuestTransferFee, IconCircle, InfoBanner, type ListResponse, LoginScreen, type MerchantAuthorization, type MerchantPublicKey, type MobileFlowState, OpenWalletScreen, OtpVerifyScreen, OutlineButton, PasskeyIframeBlockedError, PasskeyScreen, type PaymentPhase, PoweredByFooter, type PreciseMoney, PrimaryButton, type Provider, ScreenHeader, ScreenLayout, type ScreenName, SelectSourceScreen, SettingsMenu, SetupScreen, SetupStatusScreen, type SourceOption, type SourceSelection, type SourceType, Spinner, type StepItem, StepList, SuccessScreen, type ThemeMode, type ThemeTokens, type TokenBalance, TokenPickerScreen, type Transfer, type TransferDestination, type TransferPhase, TransferStatusScreen, type UserConfig, VerifyPasskeyScreen, type Wallet, WalletPickerScreen, type WalletSource, type WalletToken, api as blinkApi, buildPasskeyPopupOptions, createPasskeyCredential, createPasskeyViaPopup, darkTheme, deviceHasPasskey, findDevicePasskey, findDevicePasskeyViaPopup, getTheme, guestEntryMatchingRecommended, lightTheme, mapGuestPickerEntries, resolvePasskeyRpId, screenForPhase, useAuthorizationExecutor, useBlinkConfig, useBlinkDepositAmount, useTransferPolling, useTransferSigning };
|