@swype-org/react-sdk 0.1.293 → 0.1.300
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 +393 -418
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +13 -3
- package/dist/index.d.ts +13 -3
- package/dist/index.js +382 -407
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -1019,6 +1019,12 @@ interface WalletPickerScreenProps {
|
|
|
1019
1019
|
}
|
|
1020
1020
|
declare function WalletPickerScreen({ providers, pendingConnections, loading, useDeeplink, onPrepareProvider, onSelectProvider, onContinueConnection, onBack, onLogout, onLogin, showLoginOption, }: WalletPickerScreenProps): react_jsx_runtime.JSX.Element;
|
|
1021
1021
|
|
|
1022
|
+
interface SetupTokenOption {
|
|
1023
|
+
symbol: string;
|
|
1024
|
+
chainName: string;
|
|
1025
|
+
balance?: number;
|
|
1026
|
+
walletId?: string;
|
|
1027
|
+
}
|
|
1022
1028
|
interface SetupScreenProps {
|
|
1023
1029
|
availableBalance: number;
|
|
1024
1030
|
/** Number of tokens/chains available */
|
|
@@ -1028,7 +1034,7 @@ interface SetupScreenProps {
|
|
|
1028
1034
|
onSetupOneTap: (limit: number) => void;
|
|
1029
1035
|
onBack: () => void;
|
|
1030
1036
|
onLogout: () => void;
|
|
1031
|
-
/** Navigate to the advanced source picker. */
|
|
1037
|
+
/** Navigate to the advanced source picker (fallback when no tokenOptions). */
|
|
1032
1038
|
onAdvanced?: () => void;
|
|
1033
1039
|
/** Human-readable label for the currently selected source (e.g. "USDC on Base"). */
|
|
1034
1040
|
selectedSourceLabel?: string;
|
|
@@ -1036,8 +1042,12 @@ interface SetupScreenProps {
|
|
|
1036
1042
|
error: string | null;
|
|
1037
1043
|
/** Token symbol for the selected source, e.g. "USDC" or "USDT" */
|
|
1038
1044
|
selectedTokenSymbol?: string;
|
|
1045
|
+
/** Available tokens for the inline dropdown. When provided, the token row opens a dropdown instead of navigating. */
|
|
1046
|
+
tokenOptions?: SetupTokenOption[];
|
|
1047
|
+
/** Called when the user picks a token from the inline dropdown. */
|
|
1048
|
+
onSelectToken?: (symbol: string, chainName: string, walletId?: string) => void;
|
|
1039
1049
|
}
|
|
1040
|
-
declare function SetupScreen({ availableBalance, onSetupOneTap, onBack, onLogout, onAdvanced, loading, error, selectedTokenSymbol, }: SetupScreenProps): react_jsx_runtime.JSX.Element;
|
|
1050
|
+
declare function SetupScreen({ availableBalance, onSetupOneTap, onBack, onLogout, onAdvanced, loading, error, selectedTokenSymbol, tokenOptions, onSelectToken, }: SetupScreenProps): react_jsx_runtime.JSX.Element;
|
|
1041
1051
|
|
|
1042
1052
|
interface SetupStatusScreenProps {
|
|
1043
1053
|
/** Whether setup has completed */
|
|
@@ -1262,4 +1272,4 @@ declare const BLINK_LOGO: string;
|
|
|
1262
1272
|
/** @deprecated Use BLINK_LOGO instead. Kept for backward compatibility. */
|
|
1263
1273
|
declare const BLINK_MASCOT: string;
|
|
1264
1274
|
|
|
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 };
|
|
1275
|
+
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 SetupTokenOption, 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 };
|
package/dist/index.d.ts
CHANGED
|
@@ -1019,6 +1019,12 @@ interface WalletPickerScreenProps {
|
|
|
1019
1019
|
}
|
|
1020
1020
|
declare function WalletPickerScreen({ providers, pendingConnections, loading, useDeeplink, onPrepareProvider, onSelectProvider, onContinueConnection, onBack, onLogout, onLogin, showLoginOption, }: WalletPickerScreenProps): react_jsx_runtime.JSX.Element;
|
|
1021
1021
|
|
|
1022
|
+
interface SetupTokenOption {
|
|
1023
|
+
symbol: string;
|
|
1024
|
+
chainName: string;
|
|
1025
|
+
balance?: number;
|
|
1026
|
+
walletId?: string;
|
|
1027
|
+
}
|
|
1022
1028
|
interface SetupScreenProps {
|
|
1023
1029
|
availableBalance: number;
|
|
1024
1030
|
/** Number of tokens/chains available */
|
|
@@ -1028,7 +1034,7 @@ interface SetupScreenProps {
|
|
|
1028
1034
|
onSetupOneTap: (limit: number) => void;
|
|
1029
1035
|
onBack: () => void;
|
|
1030
1036
|
onLogout: () => void;
|
|
1031
|
-
/** Navigate to the advanced source picker. */
|
|
1037
|
+
/** Navigate to the advanced source picker (fallback when no tokenOptions). */
|
|
1032
1038
|
onAdvanced?: () => void;
|
|
1033
1039
|
/** Human-readable label for the currently selected source (e.g. "USDC on Base"). */
|
|
1034
1040
|
selectedSourceLabel?: string;
|
|
@@ -1036,8 +1042,12 @@ interface SetupScreenProps {
|
|
|
1036
1042
|
error: string | null;
|
|
1037
1043
|
/** Token symbol for the selected source, e.g. "USDC" or "USDT" */
|
|
1038
1044
|
selectedTokenSymbol?: string;
|
|
1045
|
+
/** Available tokens for the inline dropdown. When provided, the token row opens a dropdown instead of navigating. */
|
|
1046
|
+
tokenOptions?: SetupTokenOption[];
|
|
1047
|
+
/** Called when the user picks a token from the inline dropdown. */
|
|
1048
|
+
onSelectToken?: (symbol: string, chainName: string, walletId?: string) => void;
|
|
1039
1049
|
}
|
|
1040
|
-
declare function SetupScreen({ availableBalance, onSetupOneTap, onBack, onLogout, onAdvanced, loading, error, selectedTokenSymbol, }: SetupScreenProps): react_jsx_runtime.JSX.Element;
|
|
1050
|
+
declare function SetupScreen({ availableBalance, onSetupOneTap, onBack, onLogout, onAdvanced, loading, error, selectedTokenSymbol, tokenOptions, onSelectToken, }: SetupScreenProps): react_jsx_runtime.JSX.Element;
|
|
1041
1051
|
|
|
1042
1052
|
interface SetupStatusScreenProps {
|
|
1043
1053
|
/** Whether setup has completed */
|
|
@@ -1262,4 +1272,4 @@ declare const BLINK_LOGO: string;
|
|
|
1262
1272
|
/** @deprecated Use BLINK_LOGO instead. Kept for backward compatibility. */
|
|
1263
1273
|
declare const BLINK_MASCOT: string;
|
|
1264
1274
|
|
|
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 };
|
|
1275
|
+
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 SetupTokenOption, 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 };
|