@swype-org/react-sdk 0.2.297 → 0.2.309
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 +853 -545
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +52 -6
- package/dist/index.d.ts +52 -6
- package/dist/index.js +853 -546
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -30,6 +30,8 @@ interface TokenBalance {
|
|
|
30
30
|
interface WalletToken {
|
|
31
31
|
symbol: string;
|
|
32
32
|
status: string;
|
|
33
|
+
/** Server-provided token logo URI from the catalog. Preferred over the local `TOKEN_LOGOS` map. */
|
|
34
|
+
logoURI?: string | null;
|
|
33
35
|
}
|
|
34
36
|
/** A token source within a wallet (e.g. USDC on a specific chain) */
|
|
35
37
|
interface WalletSource {
|
|
@@ -242,6 +244,8 @@ interface SourceOption {
|
|
|
242
244
|
status?: string;
|
|
243
245
|
walletName?: string;
|
|
244
246
|
walletLogoUrl?: string;
|
|
247
|
+
/** Server-provided token logo URI from the catalog. Preferred over the local `TOKEN_LOGOS` map. */
|
|
248
|
+
logoURI?: string | null;
|
|
245
249
|
}
|
|
246
250
|
/** User's chain+token selection for the SELECT_SOURCE action. */
|
|
247
251
|
interface SourceSelection {
|
|
@@ -367,6 +371,7 @@ interface ThemeTokens {
|
|
|
367
371
|
accent: string;
|
|
368
372
|
accentHover: string;
|
|
369
373
|
accentText: string;
|
|
374
|
+
highlight: string;
|
|
370
375
|
success: string;
|
|
371
376
|
successBg: string;
|
|
372
377
|
error: string;
|
|
@@ -661,6 +666,7 @@ interface CreateManualTransferParams {
|
|
|
661
666
|
}
|
|
662
667
|
declare function createManualTransfer(apiBaseUrl: string, params: CreateManualTransferParams): Promise<ManualTransferSession>;
|
|
663
668
|
declare function fetchManualTransferSession(apiBaseUrl: string, sessionId: string): Promise<ManualTransferSession>;
|
|
669
|
+
declare function updateManualTransferDepositTargetChain(apiBaseUrl: string, sessionId: string, selectedChainId: number): Promise<ManualTransferSession>;
|
|
664
670
|
interface RefreshManualTransferQuoteResult {
|
|
665
671
|
quoteValidUntil: string;
|
|
666
672
|
minAmountUsd: string;
|
|
@@ -749,11 +755,12 @@ declare const api_reportPasskeyActivity: typeof reportPasskeyActivity;
|
|
|
749
755
|
declare const api_setAuthorizationSessionPaymentIntentAmount: typeof setAuthorizationSessionPaymentIntentAmount;
|
|
750
756
|
declare const api_setAuthorizationSessionProvider: typeof setAuthorizationSessionProvider;
|
|
751
757
|
declare const api_signTransfer: typeof signTransfer;
|
|
758
|
+
declare const api_updateManualTransferDepositTargetChain: typeof updateManualTransferDepositTargetChain;
|
|
752
759
|
declare const api_updateUserConfig: typeof updateUserConfig;
|
|
753
760
|
declare const api_updateUserConfigBySession: typeof updateUserConfigBySession;
|
|
754
761
|
declare const api_waitForActionTransactionReceipt: typeof waitForActionTransactionReceipt;
|
|
755
762
|
declare namespace api {
|
|
756
|
-
export { type api_ActionTransactionReceiptWaitResult as ActionTransactionReceiptWaitResult, type api_BridgeCall as BridgeCall, type api_CreateAccountAuthorizationSessionOptions as CreateAccountAuthorizationSessionOptions, type api_CreateAccountParams as CreateAccountParams, type api_CreateManualTransferParams as CreateManualTransferParams, type api_CreateTransferParams as CreateTransferParams, type api_FetchManualTransferSourcesParams as FetchManualTransferSourcesParams, type api_ProbeActionCompletionResult as ProbeActionCompletionResult, type api_RefreshManualTransferQuoteResult as RefreshManualTransferQuoteResult, type api_TransferQuote as TransferQuote, api_createAccount as createAccount, api_createAccountAuthorizationSession as createAccountAuthorizationSession, api_createManualTransfer as createManualTransfer, 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_fetchManualTransferSession as fetchManualTransferSession, api_fetchManualTransferSources as fetchManualTransferSources, api_fetchMerchantPublicKey as fetchMerchantPublicKey, api_fetchProviders as fetchProviders, api_fetchTransfer as fetchTransfer, api_fetchUserConfig as fetchUserConfig, api_postTransferQuote as postTransferQuote, api_probeActionCompletion as probeActionCompletion, api_refreshManualTransferQuote as refreshManualTransferQuote, api_registerPasskey as registerPasskey, api_reportActionCompletion as reportActionCompletion, api_reportPasskeyActivity as reportPasskeyActivity, api_setAuthorizationSessionPaymentIntentAmount as setAuthorizationSessionPaymentIntentAmount, api_setAuthorizationSessionProvider as setAuthorizationSessionProvider, api_signTransfer as signTransfer, api_updateUserConfig as updateUserConfig, api_updateUserConfigBySession as updateUserConfigBySession, api_waitForActionTransactionReceipt as waitForActionTransactionReceipt };
|
|
763
|
+
export { type api_ActionTransactionReceiptWaitResult as ActionTransactionReceiptWaitResult, type api_BridgeCall as BridgeCall, type api_CreateAccountAuthorizationSessionOptions as CreateAccountAuthorizationSessionOptions, type api_CreateAccountParams as CreateAccountParams, type api_CreateManualTransferParams as CreateManualTransferParams, type api_CreateTransferParams as CreateTransferParams, type api_FetchManualTransferSourcesParams as FetchManualTransferSourcesParams, type api_ProbeActionCompletionResult as ProbeActionCompletionResult, type api_RefreshManualTransferQuoteResult as RefreshManualTransferQuoteResult, type api_TransferQuote as TransferQuote, api_createAccount as createAccount, api_createAccountAuthorizationSession as createAccountAuthorizationSession, api_createManualTransfer as createManualTransfer, 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_fetchManualTransferSession as fetchManualTransferSession, api_fetchManualTransferSources as fetchManualTransferSources, api_fetchMerchantPublicKey as fetchMerchantPublicKey, api_fetchProviders as fetchProviders, api_fetchTransfer as fetchTransfer, api_fetchUserConfig as fetchUserConfig, api_postTransferQuote as postTransferQuote, api_probeActionCompletion as probeActionCompletion, api_refreshManualTransferQuote as refreshManualTransferQuote, api_registerPasskey as registerPasskey, api_reportActionCompletion as reportActionCompletion, api_reportPasskeyActivity as reportPasskeyActivity, api_setAuthorizationSessionPaymentIntentAmount as setAuthorizationSessionPaymentIntentAmount, api_setAuthorizationSessionProvider as setAuthorizationSessionProvider, api_signTransfer as signTransfer, api_updateManualTransferDepositTargetChain as updateManualTransferDepositTargetChain, api_updateUserConfig as updateUserConfig, api_updateUserConfigBySession as updateUserConfigBySession, api_waitForActionTransactionReceipt as waitForActionTransactionReceipt };
|
|
757
764
|
}
|
|
758
765
|
|
|
759
766
|
interface BlinkPaymentProps {
|
|
@@ -781,6 +788,7 @@ interface SelectSourceChainChoice {
|
|
|
781
788
|
balance: number;
|
|
782
789
|
walletName?: string;
|
|
783
790
|
walletLogoUrl?: string;
|
|
791
|
+
logoURI?: string | null;
|
|
784
792
|
}[];
|
|
785
793
|
}
|
|
786
794
|
|
|
@@ -1718,7 +1726,8 @@ declare function ScreenHeader({ title, right, onBack, left, badge, onLogout, cen
|
|
|
1718
1726
|
declare function PoweredByFooter(): react_jsx_runtime.JSX.Element;
|
|
1719
1727
|
|
|
1720
1728
|
interface PrimaryButtonProps {
|
|
1721
|
-
|
|
1729
|
+
/** Button label. Optional only when `spinnerOnly` is set (no label is shown). */
|
|
1730
|
+
children?: ReactNode;
|
|
1722
1731
|
onClick?: (event: MouseEvent<HTMLButtonElement | HTMLAnchorElement>) => void;
|
|
1723
1732
|
href?: string;
|
|
1724
1733
|
target?: HTMLAttributeAnchorTarget;
|
|
@@ -1735,8 +1744,15 @@ interface PrimaryButtonProps {
|
|
|
1735
1744
|
progressText?: string;
|
|
1736
1745
|
/** When true, the fill bar pulses to signal the user needs to take action (e.g. confirm in wallet). */
|
|
1737
1746
|
progressPaused?: boolean;
|
|
1747
|
+
/**
|
|
1748
|
+
* Renders the pill as a non-interactive waiting state: the black pill with a
|
|
1749
|
+
* single centered spinner and no label. For surfaces where the user is
|
|
1750
|
+
* blocked on an external action (e.g. signing in their wallet) and there is
|
|
1751
|
+
* nothing to click.
|
|
1752
|
+
*/
|
|
1753
|
+
spinnerOnly?: boolean;
|
|
1738
1754
|
}
|
|
1739
|
-
declare function PrimaryButton({ children, onClick, href, target, rel, disabled, loading, loadingText, icon, progress, progressText, progressPaused, }: PrimaryButtonProps): react_jsx_runtime.JSX.Element;
|
|
1755
|
+
declare function PrimaryButton({ children, onClick, href, target, rel, disabled, loading, loadingText, icon, progress, progressText, progressPaused, spinnerOnly, }: PrimaryButtonProps): react_jsx_runtime.JSX.Element;
|
|
1740
1756
|
|
|
1741
1757
|
interface OutlineButtonProps {
|
|
1742
1758
|
children: ReactNode;
|
|
@@ -1828,6 +1844,28 @@ interface LoginScreenProps {
|
|
|
1828
1844
|
}
|
|
1829
1845
|
declare function LoginScreen({ onLoginWithPasskey, onSignupWithPasskey, loading, error, onBack, onClose, merchantInitials, heroTitle, heroSubtitle, preferSignup, }: LoginScreenProps): react_jsx_runtime.JSX.Element;
|
|
1830
1846
|
|
|
1847
|
+
interface DepositOptionsScreenProps {
|
|
1848
|
+
/** Recessed "Send Crypto Manually" row. Navigates to the manual-transfer flow. */
|
|
1849
|
+
onToAddress: () => void;
|
|
1850
|
+
/**
|
|
1851
|
+
* Primary "Deposit with {biometric}" CTA. Routes to the login screen (wired to
|
|
1852
|
+
* handlers.onLogin) rather than prompting for a passkey directly, mirroring how
|
|
1853
|
+
* the connect-wallet entry point defers credential selection to LoginScreen.
|
|
1854
|
+
*/
|
|
1855
|
+
onSignInWithBlink: () => void;
|
|
1856
|
+
/** Dismiss the widget. When set, renders a round (X) close button in the top-right. */
|
|
1857
|
+
onClose?: () => void;
|
|
1858
|
+
}
|
|
1859
|
+
/**
|
|
1860
|
+
* Pre-login entry screen shown when `enableFullWidget` is true. Mirrors the
|
|
1861
|
+
* Figma "Payment method" redesign (node 1391-82825): a Blink wordmark, a lime
|
|
1862
|
+
* mascot hero, a black "Deposit with {biometric}" CTA with a decorative cluster
|
|
1863
|
+
* of wallet marks and a "0% FEES" badge anchored to its lower-right, an OR
|
|
1864
|
+
* divider, and a recessed "Send Crypto Manually" row that routes to the
|
|
1865
|
+
* manual-transfer flow.
|
|
1866
|
+
*/
|
|
1867
|
+
declare function DepositOptionsScreen({ onToAddress, onSignInWithBlink, onClose, }: DepositOptionsScreenProps): react_jsx_runtime.JSX.Element;
|
|
1868
|
+
|
|
1831
1869
|
interface BlinkErrorScreenProps {
|
|
1832
1870
|
/** Heading text shown under the illustration. */
|
|
1833
1871
|
title: string;
|
|
@@ -1934,6 +1972,8 @@ interface SetupTokenOption {
|
|
|
1934
1972
|
chainId?: number;
|
|
1935
1973
|
/** Account this token belongs to; used by multi-account pickers to group rows. */
|
|
1936
1974
|
accountId?: string;
|
|
1975
|
+
/** Server-provided token logo URI from the catalog. Preferred over the local `TOKEN_LOGOS` map. */
|
|
1976
|
+
logoURI?: string | null;
|
|
1937
1977
|
}
|
|
1938
1978
|
|
|
1939
1979
|
interface LinkTokenEntry {
|
|
@@ -2091,6 +2131,7 @@ interface ChainChoice$1 {
|
|
|
2091
2131
|
balance: number;
|
|
2092
2132
|
walletName?: string;
|
|
2093
2133
|
walletLogoUrl?: string;
|
|
2134
|
+
logoURI?: string | null;
|
|
2094
2135
|
}[];
|
|
2095
2136
|
}
|
|
2096
2137
|
interface SelectSourceScreenProps {
|
|
@@ -2240,13 +2281,18 @@ interface ApprovingInWalletScreenProps {
|
|
|
2240
2281
|
step: 'approve' | 'sign' | 'spl';
|
|
2241
2282
|
error?: string | null;
|
|
2242
2283
|
onRetry?: () => void;
|
|
2284
|
+
/** Desktop-only escape hatch back to the previous screen. */
|
|
2285
|
+
onBack?: () => void;
|
|
2286
|
+
/** Desktop-only settings/logout action. */
|
|
2287
|
+
onLogout?: () => void;
|
|
2243
2288
|
}
|
|
2244
2289
|
/**
|
|
2245
2290
|
* Activation surface rendered while the user signs the Permit2 / SPL
|
|
2246
2291
|
* authorization in their wallet. NOT a payment screen — no money moves here.
|
|
2247
|
-
*
|
|
2292
|
+
* Shares chrome with LinkTokensScreen (header wordmark, h2 heading, recessed
|
|
2293
|
+
* card, footer lock banner) so the link → authorize steps read as one page.
|
|
2248
2294
|
*/
|
|
2249
|
-
declare function ApprovingInWalletScreen({ tokenSymbol, chainName, step, error, onRetry, }: ApprovingInWalletScreenProps): react_jsx_runtime.JSX.Element;
|
|
2295
|
+
declare function ApprovingInWalletScreen({ tokenSymbol, chainName, step, error, onRetry, onBack, onLogout, }: ApprovingInWalletScreenProps): react_jsx_runtime.JSX.Element;
|
|
2250
2296
|
|
|
2251
2297
|
interface ConfirmSignScreenProps {
|
|
2252
2298
|
walletName: string | null;
|
|
@@ -2386,4 +2432,4 @@ declare function clearDebugEntries(): void;
|
|
|
2386
2432
|
*/
|
|
2387
2433
|
declare function useBlinkDebugLog(): DebugEntry[];
|
|
2388
2434
|
|
|
2389
|
-
export { ACCOUNT_SWITCH_CONFLICT_MESSAGE, type Account, type ActionExecutionResult, type AdvancedSettings, AdvancedSourceScreen, type Amount, ApprovingInWalletScreen, type ApprovingInWalletScreenProps, type AuthorizationAction, type AuthorizationSession, AuthorizationSessionCancelledError, type AuthorizationSessionDetail, BLINK_ERROR_ILLUSTRATION, BLINK_LOGO, BLINK_MASCOT, BLINK_PASSKEY_ILLUSTRATION, BLINK_SUCCESS_ILLUSTRATION, BlinkErrorScreen, BlinkInitialLoadingScreen, BlinkLoadingScreen, BlinkPayment, type BlinkPaymentProps, BlinkProvider, type BlinkProviderProps, type Chain, ConfirmSignScreen, type DebugEntry, type DebugLevel, DepositCompleteScreen, DepositScreen, DepositTransferStatusScreen, type Destination, type ErrorResponse, type ExecutionResult, type GuestTokenEntry, type GuestTokenPickerRawRow, GuestTokenPickerScreen, IconCircle, InfoBanner, LOGIN_KEY_ILLUSTRATION, type LinkTokenEntry, LinkTokensScreen, type ListResponse, LoginScreen, type MerchantAuthorization, type MerchantPublicKey, type MobileFlowState, OpenWalletScreen, type OrchestratorResult, type OrchestratorRunOptions, OtpVerifyScreen, OutlineButton, PasskeyIframeBlockedError, PasskeyPopupWelcomeScreen, PasskeyScreen, type PaymentPhase, type PaymentState, PoweredByFooter, type PreciseMoney, PrimaryButton, type Provider, ScreenHeader, ScreenLayout, type ScreenName, SecondaryButton, SelectDepositSourceScreen, SelectSourceScreen, SettingsMenu, type SetupTokenOption, type SourceOption, type SourceSelection, type SourceType, Spinner, type StepHandlers, type StepItem, StepList, StepRenderer, type StepRendererDerivedProps, type StepRendererFlowProps, type StepRendererFormProps, type StepRendererProps, type StepRendererRemoteProps, SuccessScreen, type ThemeMode, type ThemeTokens, type TokenBalance, TokenPickerScreen, type Transfer, type TransferDestination, type TransferPhase, type UseAuthorizationExecutorResult, type UseAuthorizationOrchestratorResult, type UserConfig, VerifyPasskeyScreen, type Wallet, type WalletAccountSwitchResult, type WalletCapabilities, type WalletCapabilitiesDebugSnapshot, type WalletDeeplink, WalletPickerScreen, type WalletSource, type WalletToken, appendDebug, api as blinkApi, clearDebugEntries, createInitialState, credentialIdBase64ToBytes, darkTheme, darkThemeNew, darkTransparentTheme, darkTransparentThemeNew, deviceHasPasskey, encodePermit2ApproveCalldata, findDevicePasskey, findDevicePasskeyViaPopup, getAtomicBatchSupportDebugInfo, getDebugEntries, getDeviceBiometricUnlockText, getTheme, getThemeBase, getWalletCapabilities, isAuthorizationSessionCancelled, isExpectedAuthorizationCancellation, isTerminalTransferStatus, isTransferAwaitingCompletion, isTransparentTheme, isUserDismissedAuthorizationError, isVisibleUsdAmountAtTwoDecimals, lightTheme, lightThemeNew, lightTransparentTheme, lightTransparentThemeNew, mapGuestPickerEntries, replaceOpenProviderForAccountSwitch, resolvePasskeyRpId, screenForPhase, subscribeDebug, supportsAtomicBatch, supportsPaymasterService, useAuthorizationExecutor, useAuthorizationOrchestrator, useBlinkConfig, useBlinkDebugLog, useBlinkDepositAmount, useTransferPolling, useTransferSigning };
|
|
2435
|
+
export { ACCOUNT_SWITCH_CONFLICT_MESSAGE, type Account, type ActionExecutionResult, type AdvancedSettings, AdvancedSourceScreen, type Amount, ApprovingInWalletScreen, type ApprovingInWalletScreenProps, type AuthorizationAction, type AuthorizationSession, AuthorizationSessionCancelledError, type AuthorizationSessionDetail, BLINK_ERROR_ILLUSTRATION, BLINK_LOGO, BLINK_MASCOT, BLINK_PASSKEY_ILLUSTRATION, BLINK_SUCCESS_ILLUSTRATION, BlinkErrorScreen, BlinkInitialLoadingScreen, BlinkLoadingScreen, BlinkPayment, type BlinkPaymentProps, BlinkProvider, type BlinkProviderProps, type Chain, ConfirmSignScreen, type DebugEntry, type DebugLevel, DepositCompleteScreen, DepositOptionsScreen, DepositScreen, DepositTransferStatusScreen, type Destination, type ErrorResponse, type ExecutionResult, type GuestTokenEntry, type GuestTokenPickerRawRow, GuestTokenPickerScreen, IconCircle, InfoBanner, LOGIN_KEY_ILLUSTRATION, type LinkTokenEntry, LinkTokensScreen, type ListResponse, LoginScreen, type MerchantAuthorization, type MerchantPublicKey, type MobileFlowState, OpenWalletScreen, type OrchestratorResult, type OrchestratorRunOptions, OtpVerifyScreen, OutlineButton, PasskeyIframeBlockedError, PasskeyPopupWelcomeScreen, PasskeyScreen, type PaymentPhase, type PaymentState, PoweredByFooter, type PreciseMoney, PrimaryButton, type Provider, ScreenHeader, ScreenLayout, type ScreenName, SecondaryButton, SelectDepositSourceScreen, SelectSourceScreen, SettingsMenu, type SetupTokenOption, type SourceOption, type SourceSelection, type SourceType, Spinner, type StepHandlers, type StepItem, StepList, StepRenderer, type StepRendererDerivedProps, type StepRendererFlowProps, type StepRendererFormProps, type StepRendererProps, type StepRendererRemoteProps, SuccessScreen, type ThemeMode, type ThemeTokens, type TokenBalance, TokenPickerScreen, type Transfer, type TransferDestination, type TransferPhase, type UseAuthorizationExecutorResult, type UseAuthorizationOrchestratorResult, type UserConfig, VerifyPasskeyScreen, type Wallet, type WalletAccountSwitchResult, type WalletCapabilities, type WalletCapabilitiesDebugSnapshot, type WalletDeeplink, WalletPickerScreen, type WalletSource, type WalletToken, appendDebug, api as blinkApi, clearDebugEntries, createInitialState, credentialIdBase64ToBytes, darkTheme, darkThemeNew, darkTransparentTheme, darkTransparentThemeNew, deviceHasPasskey, encodePermit2ApproveCalldata, findDevicePasskey, findDevicePasskeyViaPopup, getAtomicBatchSupportDebugInfo, getDebugEntries, getDeviceBiometricUnlockText, getTheme, getThemeBase, getWalletCapabilities, isAuthorizationSessionCancelled, isExpectedAuthorizationCancellation, isTerminalTransferStatus, isTransferAwaitingCompletion, isTransparentTheme, isUserDismissedAuthorizationError, isVisibleUsdAmountAtTwoDecimals, lightTheme, lightThemeNew, lightTransparentTheme, lightTransparentThemeNew, mapGuestPickerEntries, replaceOpenProviderForAccountSwitch, resolvePasskeyRpId, screenForPhase, subscribeDebug, supportsAtomicBatch, supportsPaymasterService, useAuthorizationExecutor, useAuthorizationOrchestrator, useBlinkConfig, useBlinkDebugLog, useBlinkDepositAmount, useTransferPolling, useTransferSigning };
|
package/dist/index.d.ts
CHANGED
|
@@ -30,6 +30,8 @@ interface TokenBalance {
|
|
|
30
30
|
interface WalletToken {
|
|
31
31
|
symbol: string;
|
|
32
32
|
status: string;
|
|
33
|
+
/** Server-provided token logo URI from the catalog. Preferred over the local `TOKEN_LOGOS` map. */
|
|
34
|
+
logoURI?: string | null;
|
|
33
35
|
}
|
|
34
36
|
/** A token source within a wallet (e.g. USDC on a specific chain) */
|
|
35
37
|
interface WalletSource {
|
|
@@ -242,6 +244,8 @@ interface SourceOption {
|
|
|
242
244
|
status?: string;
|
|
243
245
|
walletName?: string;
|
|
244
246
|
walletLogoUrl?: string;
|
|
247
|
+
/** Server-provided token logo URI from the catalog. Preferred over the local `TOKEN_LOGOS` map. */
|
|
248
|
+
logoURI?: string | null;
|
|
245
249
|
}
|
|
246
250
|
/** User's chain+token selection for the SELECT_SOURCE action. */
|
|
247
251
|
interface SourceSelection {
|
|
@@ -367,6 +371,7 @@ interface ThemeTokens {
|
|
|
367
371
|
accent: string;
|
|
368
372
|
accentHover: string;
|
|
369
373
|
accentText: string;
|
|
374
|
+
highlight: string;
|
|
370
375
|
success: string;
|
|
371
376
|
successBg: string;
|
|
372
377
|
error: string;
|
|
@@ -661,6 +666,7 @@ interface CreateManualTransferParams {
|
|
|
661
666
|
}
|
|
662
667
|
declare function createManualTransfer(apiBaseUrl: string, params: CreateManualTransferParams): Promise<ManualTransferSession>;
|
|
663
668
|
declare function fetchManualTransferSession(apiBaseUrl: string, sessionId: string): Promise<ManualTransferSession>;
|
|
669
|
+
declare function updateManualTransferDepositTargetChain(apiBaseUrl: string, sessionId: string, selectedChainId: number): Promise<ManualTransferSession>;
|
|
664
670
|
interface RefreshManualTransferQuoteResult {
|
|
665
671
|
quoteValidUntil: string;
|
|
666
672
|
minAmountUsd: string;
|
|
@@ -749,11 +755,12 @@ declare const api_reportPasskeyActivity: typeof reportPasskeyActivity;
|
|
|
749
755
|
declare const api_setAuthorizationSessionPaymentIntentAmount: typeof setAuthorizationSessionPaymentIntentAmount;
|
|
750
756
|
declare const api_setAuthorizationSessionProvider: typeof setAuthorizationSessionProvider;
|
|
751
757
|
declare const api_signTransfer: typeof signTransfer;
|
|
758
|
+
declare const api_updateManualTransferDepositTargetChain: typeof updateManualTransferDepositTargetChain;
|
|
752
759
|
declare const api_updateUserConfig: typeof updateUserConfig;
|
|
753
760
|
declare const api_updateUserConfigBySession: typeof updateUserConfigBySession;
|
|
754
761
|
declare const api_waitForActionTransactionReceipt: typeof waitForActionTransactionReceipt;
|
|
755
762
|
declare namespace api {
|
|
756
|
-
export { type api_ActionTransactionReceiptWaitResult as ActionTransactionReceiptWaitResult, type api_BridgeCall as BridgeCall, type api_CreateAccountAuthorizationSessionOptions as CreateAccountAuthorizationSessionOptions, type api_CreateAccountParams as CreateAccountParams, type api_CreateManualTransferParams as CreateManualTransferParams, type api_CreateTransferParams as CreateTransferParams, type api_FetchManualTransferSourcesParams as FetchManualTransferSourcesParams, type api_ProbeActionCompletionResult as ProbeActionCompletionResult, type api_RefreshManualTransferQuoteResult as RefreshManualTransferQuoteResult, type api_TransferQuote as TransferQuote, api_createAccount as createAccount, api_createAccountAuthorizationSession as createAccountAuthorizationSession, api_createManualTransfer as createManualTransfer, 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_fetchManualTransferSession as fetchManualTransferSession, api_fetchManualTransferSources as fetchManualTransferSources, api_fetchMerchantPublicKey as fetchMerchantPublicKey, api_fetchProviders as fetchProviders, api_fetchTransfer as fetchTransfer, api_fetchUserConfig as fetchUserConfig, api_postTransferQuote as postTransferQuote, api_probeActionCompletion as probeActionCompletion, api_refreshManualTransferQuote as refreshManualTransferQuote, api_registerPasskey as registerPasskey, api_reportActionCompletion as reportActionCompletion, api_reportPasskeyActivity as reportPasskeyActivity, api_setAuthorizationSessionPaymentIntentAmount as setAuthorizationSessionPaymentIntentAmount, api_setAuthorizationSessionProvider as setAuthorizationSessionProvider, api_signTransfer as signTransfer, api_updateUserConfig as updateUserConfig, api_updateUserConfigBySession as updateUserConfigBySession, api_waitForActionTransactionReceipt as waitForActionTransactionReceipt };
|
|
763
|
+
export { type api_ActionTransactionReceiptWaitResult as ActionTransactionReceiptWaitResult, type api_BridgeCall as BridgeCall, type api_CreateAccountAuthorizationSessionOptions as CreateAccountAuthorizationSessionOptions, type api_CreateAccountParams as CreateAccountParams, type api_CreateManualTransferParams as CreateManualTransferParams, type api_CreateTransferParams as CreateTransferParams, type api_FetchManualTransferSourcesParams as FetchManualTransferSourcesParams, type api_ProbeActionCompletionResult as ProbeActionCompletionResult, type api_RefreshManualTransferQuoteResult as RefreshManualTransferQuoteResult, type api_TransferQuote as TransferQuote, api_createAccount as createAccount, api_createAccountAuthorizationSession as createAccountAuthorizationSession, api_createManualTransfer as createManualTransfer, 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_fetchManualTransferSession as fetchManualTransferSession, api_fetchManualTransferSources as fetchManualTransferSources, api_fetchMerchantPublicKey as fetchMerchantPublicKey, api_fetchProviders as fetchProviders, api_fetchTransfer as fetchTransfer, api_fetchUserConfig as fetchUserConfig, api_postTransferQuote as postTransferQuote, api_probeActionCompletion as probeActionCompletion, api_refreshManualTransferQuote as refreshManualTransferQuote, api_registerPasskey as registerPasskey, api_reportActionCompletion as reportActionCompletion, api_reportPasskeyActivity as reportPasskeyActivity, api_setAuthorizationSessionPaymentIntentAmount as setAuthorizationSessionPaymentIntentAmount, api_setAuthorizationSessionProvider as setAuthorizationSessionProvider, api_signTransfer as signTransfer, api_updateManualTransferDepositTargetChain as updateManualTransferDepositTargetChain, api_updateUserConfig as updateUserConfig, api_updateUserConfigBySession as updateUserConfigBySession, api_waitForActionTransactionReceipt as waitForActionTransactionReceipt };
|
|
757
764
|
}
|
|
758
765
|
|
|
759
766
|
interface BlinkPaymentProps {
|
|
@@ -781,6 +788,7 @@ interface SelectSourceChainChoice {
|
|
|
781
788
|
balance: number;
|
|
782
789
|
walletName?: string;
|
|
783
790
|
walletLogoUrl?: string;
|
|
791
|
+
logoURI?: string | null;
|
|
784
792
|
}[];
|
|
785
793
|
}
|
|
786
794
|
|
|
@@ -1718,7 +1726,8 @@ declare function ScreenHeader({ title, right, onBack, left, badge, onLogout, cen
|
|
|
1718
1726
|
declare function PoweredByFooter(): react_jsx_runtime.JSX.Element;
|
|
1719
1727
|
|
|
1720
1728
|
interface PrimaryButtonProps {
|
|
1721
|
-
|
|
1729
|
+
/** Button label. Optional only when `spinnerOnly` is set (no label is shown). */
|
|
1730
|
+
children?: ReactNode;
|
|
1722
1731
|
onClick?: (event: MouseEvent<HTMLButtonElement | HTMLAnchorElement>) => void;
|
|
1723
1732
|
href?: string;
|
|
1724
1733
|
target?: HTMLAttributeAnchorTarget;
|
|
@@ -1735,8 +1744,15 @@ interface PrimaryButtonProps {
|
|
|
1735
1744
|
progressText?: string;
|
|
1736
1745
|
/** When true, the fill bar pulses to signal the user needs to take action (e.g. confirm in wallet). */
|
|
1737
1746
|
progressPaused?: boolean;
|
|
1747
|
+
/**
|
|
1748
|
+
* Renders the pill as a non-interactive waiting state: the black pill with a
|
|
1749
|
+
* single centered spinner and no label. For surfaces where the user is
|
|
1750
|
+
* blocked on an external action (e.g. signing in their wallet) and there is
|
|
1751
|
+
* nothing to click.
|
|
1752
|
+
*/
|
|
1753
|
+
spinnerOnly?: boolean;
|
|
1738
1754
|
}
|
|
1739
|
-
declare function PrimaryButton({ children, onClick, href, target, rel, disabled, loading, loadingText, icon, progress, progressText, progressPaused, }: PrimaryButtonProps): react_jsx_runtime.JSX.Element;
|
|
1755
|
+
declare function PrimaryButton({ children, onClick, href, target, rel, disabled, loading, loadingText, icon, progress, progressText, progressPaused, spinnerOnly, }: PrimaryButtonProps): react_jsx_runtime.JSX.Element;
|
|
1740
1756
|
|
|
1741
1757
|
interface OutlineButtonProps {
|
|
1742
1758
|
children: ReactNode;
|
|
@@ -1828,6 +1844,28 @@ interface LoginScreenProps {
|
|
|
1828
1844
|
}
|
|
1829
1845
|
declare function LoginScreen({ onLoginWithPasskey, onSignupWithPasskey, loading, error, onBack, onClose, merchantInitials, heroTitle, heroSubtitle, preferSignup, }: LoginScreenProps): react_jsx_runtime.JSX.Element;
|
|
1830
1846
|
|
|
1847
|
+
interface DepositOptionsScreenProps {
|
|
1848
|
+
/** Recessed "Send Crypto Manually" row. Navigates to the manual-transfer flow. */
|
|
1849
|
+
onToAddress: () => void;
|
|
1850
|
+
/**
|
|
1851
|
+
* Primary "Deposit with {biometric}" CTA. Routes to the login screen (wired to
|
|
1852
|
+
* handlers.onLogin) rather than prompting for a passkey directly, mirroring how
|
|
1853
|
+
* the connect-wallet entry point defers credential selection to LoginScreen.
|
|
1854
|
+
*/
|
|
1855
|
+
onSignInWithBlink: () => void;
|
|
1856
|
+
/** Dismiss the widget. When set, renders a round (X) close button in the top-right. */
|
|
1857
|
+
onClose?: () => void;
|
|
1858
|
+
}
|
|
1859
|
+
/**
|
|
1860
|
+
* Pre-login entry screen shown when `enableFullWidget` is true. Mirrors the
|
|
1861
|
+
* Figma "Payment method" redesign (node 1391-82825): a Blink wordmark, a lime
|
|
1862
|
+
* mascot hero, a black "Deposit with {biometric}" CTA with a decorative cluster
|
|
1863
|
+
* of wallet marks and a "0% FEES" badge anchored to its lower-right, an OR
|
|
1864
|
+
* divider, and a recessed "Send Crypto Manually" row that routes to the
|
|
1865
|
+
* manual-transfer flow.
|
|
1866
|
+
*/
|
|
1867
|
+
declare function DepositOptionsScreen({ onToAddress, onSignInWithBlink, onClose, }: DepositOptionsScreenProps): react_jsx_runtime.JSX.Element;
|
|
1868
|
+
|
|
1831
1869
|
interface BlinkErrorScreenProps {
|
|
1832
1870
|
/** Heading text shown under the illustration. */
|
|
1833
1871
|
title: string;
|
|
@@ -1934,6 +1972,8 @@ interface SetupTokenOption {
|
|
|
1934
1972
|
chainId?: number;
|
|
1935
1973
|
/** Account this token belongs to; used by multi-account pickers to group rows. */
|
|
1936
1974
|
accountId?: string;
|
|
1975
|
+
/** Server-provided token logo URI from the catalog. Preferred over the local `TOKEN_LOGOS` map. */
|
|
1976
|
+
logoURI?: string | null;
|
|
1937
1977
|
}
|
|
1938
1978
|
|
|
1939
1979
|
interface LinkTokenEntry {
|
|
@@ -2091,6 +2131,7 @@ interface ChainChoice$1 {
|
|
|
2091
2131
|
balance: number;
|
|
2092
2132
|
walletName?: string;
|
|
2093
2133
|
walletLogoUrl?: string;
|
|
2134
|
+
logoURI?: string | null;
|
|
2094
2135
|
}[];
|
|
2095
2136
|
}
|
|
2096
2137
|
interface SelectSourceScreenProps {
|
|
@@ -2240,13 +2281,18 @@ interface ApprovingInWalletScreenProps {
|
|
|
2240
2281
|
step: 'approve' | 'sign' | 'spl';
|
|
2241
2282
|
error?: string | null;
|
|
2242
2283
|
onRetry?: () => void;
|
|
2284
|
+
/** Desktop-only escape hatch back to the previous screen. */
|
|
2285
|
+
onBack?: () => void;
|
|
2286
|
+
/** Desktop-only settings/logout action. */
|
|
2287
|
+
onLogout?: () => void;
|
|
2243
2288
|
}
|
|
2244
2289
|
/**
|
|
2245
2290
|
* Activation surface rendered while the user signs the Permit2 / SPL
|
|
2246
2291
|
* authorization in their wallet. NOT a payment screen — no money moves here.
|
|
2247
|
-
*
|
|
2292
|
+
* Shares chrome with LinkTokensScreen (header wordmark, h2 heading, recessed
|
|
2293
|
+
* card, footer lock banner) so the link → authorize steps read as one page.
|
|
2248
2294
|
*/
|
|
2249
|
-
declare function ApprovingInWalletScreen({ tokenSymbol, chainName, step, error, onRetry, }: ApprovingInWalletScreenProps): react_jsx_runtime.JSX.Element;
|
|
2295
|
+
declare function ApprovingInWalletScreen({ tokenSymbol, chainName, step, error, onRetry, onBack, onLogout, }: ApprovingInWalletScreenProps): react_jsx_runtime.JSX.Element;
|
|
2250
2296
|
|
|
2251
2297
|
interface ConfirmSignScreenProps {
|
|
2252
2298
|
walletName: string | null;
|
|
@@ -2386,4 +2432,4 @@ declare function clearDebugEntries(): void;
|
|
|
2386
2432
|
*/
|
|
2387
2433
|
declare function useBlinkDebugLog(): DebugEntry[];
|
|
2388
2434
|
|
|
2389
|
-
export { ACCOUNT_SWITCH_CONFLICT_MESSAGE, type Account, type ActionExecutionResult, type AdvancedSettings, AdvancedSourceScreen, type Amount, ApprovingInWalletScreen, type ApprovingInWalletScreenProps, type AuthorizationAction, type AuthorizationSession, AuthorizationSessionCancelledError, type AuthorizationSessionDetail, BLINK_ERROR_ILLUSTRATION, BLINK_LOGO, BLINK_MASCOT, BLINK_PASSKEY_ILLUSTRATION, BLINK_SUCCESS_ILLUSTRATION, BlinkErrorScreen, BlinkInitialLoadingScreen, BlinkLoadingScreen, BlinkPayment, type BlinkPaymentProps, BlinkProvider, type BlinkProviderProps, type Chain, ConfirmSignScreen, type DebugEntry, type DebugLevel, DepositCompleteScreen, DepositScreen, DepositTransferStatusScreen, type Destination, type ErrorResponse, type ExecutionResult, type GuestTokenEntry, type GuestTokenPickerRawRow, GuestTokenPickerScreen, IconCircle, InfoBanner, LOGIN_KEY_ILLUSTRATION, type LinkTokenEntry, LinkTokensScreen, type ListResponse, LoginScreen, type MerchantAuthorization, type MerchantPublicKey, type MobileFlowState, OpenWalletScreen, type OrchestratorResult, type OrchestratorRunOptions, OtpVerifyScreen, OutlineButton, PasskeyIframeBlockedError, PasskeyPopupWelcomeScreen, PasskeyScreen, type PaymentPhase, type PaymentState, PoweredByFooter, type PreciseMoney, PrimaryButton, type Provider, ScreenHeader, ScreenLayout, type ScreenName, SecondaryButton, SelectDepositSourceScreen, SelectSourceScreen, SettingsMenu, type SetupTokenOption, type SourceOption, type SourceSelection, type SourceType, Spinner, type StepHandlers, type StepItem, StepList, StepRenderer, type StepRendererDerivedProps, type StepRendererFlowProps, type StepRendererFormProps, type StepRendererProps, type StepRendererRemoteProps, SuccessScreen, type ThemeMode, type ThemeTokens, type TokenBalance, TokenPickerScreen, type Transfer, type TransferDestination, type TransferPhase, type UseAuthorizationExecutorResult, type UseAuthorizationOrchestratorResult, type UserConfig, VerifyPasskeyScreen, type Wallet, type WalletAccountSwitchResult, type WalletCapabilities, type WalletCapabilitiesDebugSnapshot, type WalletDeeplink, WalletPickerScreen, type WalletSource, type WalletToken, appendDebug, api as blinkApi, clearDebugEntries, createInitialState, credentialIdBase64ToBytes, darkTheme, darkThemeNew, darkTransparentTheme, darkTransparentThemeNew, deviceHasPasskey, encodePermit2ApproveCalldata, findDevicePasskey, findDevicePasskeyViaPopup, getAtomicBatchSupportDebugInfo, getDebugEntries, getDeviceBiometricUnlockText, getTheme, getThemeBase, getWalletCapabilities, isAuthorizationSessionCancelled, isExpectedAuthorizationCancellation, isTerminalTransferStatus, isTransferAwaitingCompletion, isTransparentTheme, isUserDismissedAuthorizationError, isVisibleUsdAmountAtTwoDecimals, lightTheme, lightThemeNew, lightTransparentTheme, lightTransparentThemeNew, mapGuestPickerEntries, replaceOpenProviderForAccountSwitch, resolvePasskeyRpId, screenForPhase, subscribeDebug, supportsAtomicBatch, supportsPaymasterService, useAuthorizationExecutor, useAuthorizationOrchestrator, useBlinkConfig, useBlinkDebugLog, useBlinkDepositAmount, useTransferPolling, useTransferSigning };
|
|
2435
|
+
export { ACCOUNT_SWITCH_CONFLICT_MESSAGE, type Account, type ActionExecutionResult, type AdvancedSettings, AdvancedSourceScreen, type Amount, ApprovingInWalletScreen, type ApprovingInWalletScreenProps, type AuthorizationAction, type AuthorizationSession, AuthorizationSessionCancelledError, type AuthorizationSessionDetail, BLINK_ERROR_ILLUSTRATION, BLINK_LOGO, BLINK_MASCOT, BLINK_PASSKEY_ILLUSTRATION, BLINK_SUCCESS_ILLUSTRATION, BlinkErrorScreen, BlinkInitialLoadingScreen, BlinkLoadingScreen, BlinkPayment, type BlinkPaymentProps, BlinkProvider, type BlinkProviderProps, type Chain, ConfirmSignScreen, type DebugEntry, type DebugLevel, DepositCompleteScreen, DepositOptionsScreen, DepositScreen, DepositTransferStatusScreen, type Destination, type ErrorResponse, type ExecutionResult, type GuestTokenEntry, type GuestTokenPickerRawRow, GuestTokenPickerScreen, IconCircle, InfoBanner, LOGIN_KEY_ILLUSTRATION, type LinkTokenEntry, LinkTokensScreen, type ListResponse, LoginScreen, type MerchantAuthorization, type MerchantPublicKey, type MobileFlowState, OpenWalletScreen, type OrchestratorResult, type OrchestratorRunOptions, OtpVerifyScreen, OutlineButton, PasskeyIframeBlockedError, PasskeyPopupWelcomeScreen, PasskeyScreen, type PaymentPhase, type PaymentState, PoweredByFooter, type PreciseMoney, PrimaryButton, type Provider, ScreenHeader, ScreenLayout, type ScreenName, SecondaryButton, SelectDepositSourceScreen, SelectSourceScreen, SettingsMenu, type SetupTokenOption, type SourceOption, type SourceSelection, type SourceType, Spinner, type StepHandlers, type StepItem, StepList, StepRenderer, type StepRendererDerivedProps, type StepRendererFlowProps, type StepRendererFormProps, type StepRendererProps, type StepRendererRemoteProps, SuccessScreen, type ThemeMode, type ThemeTokens, type TokenBalance, TokenPickerScreen, type Transfer, type TransferDestination, type TransferPhase, type UseAuthorizationExecutorResult, type UseAuthorizationOrchestratorResult, type UserConfig, VerifyPasskeyScreen, type Wallet, type WalletAccountSwitchResult, type WalletCapabilities, type WalletCapabilitiesDebugSnapshot, type WalletDeeplink, WalletPickerScreen, type WalletSource, type WalletToken, appendDebug, api as blinkApi, clearDebugEntries, createInitialState, credentialIdBase64ToBytes, darkTheme, darkThemeNew, darkTransparentTheme, darkTransparentThemeNew, deviceHasPasskey, encodePermit2ApproveCalldata, findDevicePasskey, findDevicePasskeyViaPopup, getAtomicBatchSupportDebugInfo, getDebugEntries, getDeviceBiometricUnlockText, getTheme, getThemeBase, getWalletCapabilities, isAuthorizationSessionCancelled, isExpectedAuthorizationCancellation, isTerminalTransferStatus, isTransferAwaitingCompletion, isTransparentTheme, isUserDismissedAuthorizationError, isVisibleUsdAmountAtTwoDecimals, lightTheme, lightThemeNew, lightTransparentTheme, lightTransparentThemeNew, mapGuestPickerEntries, replaceOpenProviderForAccountSwitch, resolvePasskeyRpId, screenForPhase, subscribeDebug, supportsAtomicBatch, supportsPaymasterService, useAuthorizationExecutor, useAuthorizationOrchestrator, useBlinkConfig, useBlinkDebugLog, useBlinkDepositAmount, useTransferPolling, useTransferSigning };
|