@swype-org/react-sdk 0.1.226 → 0.1.228
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 +591 -672
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +38 -3
- package/dist/index.d.ts +38 -3
- package/dist/index.js +591 -673
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -207,8 +207,6 @@ interface UserConfig {
|
|
|
207
207
|
}
|
|
208
208
|
/** Theme mode */
|
|
209
209
|
type ThemeMode = 'light' | 'dark';
|
|
210
|
-
/** Steps in the payment flow */
|
|
211
|
-
type PaymentStep = 'login' | 'otp-verify' | 'create-passkey' | 'verify-passkey' | 'wallet-picker' | 'open-wallet' | 'setup-status' | 'setup' | 'confirm-sign' | 'deposit' | 'low-balance' | 'processing' | 'select-source' | 'token-picker' | 'success';
|
|
212
210
|
/** User-selected advanced settings for chain/asset override */
|
|
213
211
|
interface AdvancedSettings {
|
|
214
212
|
/** Override asset (e.g. 'USDC', 'USDT'). Null = let backend decide. */
|
|
@@ -822,6 +820,43 @@ interface PasskeyScreenProps {
|
|
|
822
820
|
}
|
|
823
821
|
declare function PasskeyScreen({ onCreatePasskey, onBack, onLogout, creating, error, popupFallback, onCreatePasskeyViaPopup, }: PasskeyScreenProps): react_jsx_runtime.JSX.Element;
|
|
824
822
|
|
|
823
|
+
type AuthIdentifierKind = 'email' | 'phone';
|
|
824
|
+
interface NormalizedAuthIdentifier {
|
|
825
|
+
kind: AuthIdentifierKind;
|
|
826
|
+
value: string;
|
|
827
|
+
}
|
|
828
|
+
|
|
829
|
+
type ScreenName = 'loading' | 'login' | 'otp-verify' | 'create-passkey' | 'verify-passkey' | 'success' | 'processing' | 'confirm-sign' | 'select-source' | 'setup' | 'open-wallet' | 'setup-status' | 'guest-token-picker' | 'wallet-picker' | 'token-picker' | 'deposit';
|
|
830
|
+
type UserIntent = 'pick-token' | 'configure-one-tap' | 'switch-wallet' | null;
|
|
831
|
+
interface ResolveScreenState {
|
|
832
|
+
privyReady: boolean;
|
|
833
|
+
authenticated: boolean;
|
|
834
|
+
verificationTarget: NormalizedAuthIdentifier | null;
|
|
835
|
+
activeCredentialId: string | null;
|
|
836
|
+
knownCredentialIds: string[];
|
|
837
|
+
passkeyConfigLoaded: boolean;
|
|
838
|
+
passkeyPopupNeeded: boolean;
|
|
839
|
+
accounts: Account[];
|
|
840
|
+
isGuestFlow: boolean;
|
|
841
|
+
selectedProviderId: string | null;
|
|
842
|
+
mobileFlow: boolean;
|
|
843
|
+
inlineAuthorizationExecuting: boolean;
|
|
844
|
+
creatingTransfer: boolean;
|
|
845
|
+
transfer: Transfer | null;
|
|
846
|
+
pendingSelectSource: AuthorizationAction | null;
|
|
847
|
+
pendingOneTapSetup: AuthorizationAction | null;
|
|
848
|
+
oneTapLimitAlreadySaved: boolean;
|
|
849
|
+
loadingData: boolean;
|
|
850
|
+
isDesktop: boolean;
|
|
851
|
+
isReturningUser: boolean;
|
|
852
|
+
guestPreauthRedirect: boolean;
|
|
853
|
+
loginRequested: boolean;
|
|
854
|
+
userIntent: UserIntent;
|
|
855
|
+
selectedAccount: Account | undefined;
|
|
856
|
+
guestSettingSender: boolean;
|
|
857
|
+
}
|
|
858
|
+
declare function resolveScreen(state: ResolveScreenState): ScreenName;
|
|
859
|
+
|
|
825
860
|
interface SetupScreenProps {
|
|
826
861
|
availableBalance: number;
|
|
827
862
|
/** Number of tokens/chains available */
|
|
@@ -914,4 +949,4 @@ declare const BLINK_LOGO: string;
|
|
|
914
949
|
/** @deprecated Use BLINK_LOGO instead. Kept for backward compatibility. */
|
|
915
950
|
declare const BLINK_MASCOT: string;
|
|
916
951
|
|
|
917
|
-
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, OutlineButton, PasskeyIframeBlockedError, PasskeyScreen,
|
|
952
|
+
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, OutlineButton, PasskeyIframeBlockedError, PasskeyScreen, PoweredByFooter, PrimaryButton, type Provider, type ResolveScreenState, 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 UserIntent, type Wallet, type WalletSource, type WalletToken, api as blinkApi, buildPasskeyPopupOptions, createPasskeyCredential, createPasskeyViaPopup, darkTheme, deviceHasPasskey, findDevicePasskey, findDevicePasskeyViaPopup, getTheme, lightTheme, resolvePasskeyRpId, resolveScreen, useAuthorizationExecutor, useBlinkConfig, useBlinkDepositAmount, useTransferPolling, useTransferSigning };
|
package/dist/index.d.ts
CHANGED
|
@@ -207,8 +207,6 @@ interface UserConfig {
|
|
|
207
207
|
}
|
|
208
208
|
/** Theme mode */
|
|
209
209
|
type ThemeMode = 'light' | 'dark';
|
|
210
|
-
/** Steps in the payment flow */
|
|
211
|
-
type PaymentStep = 'login' | 'otp-verify' | 'create-passkey' | 'verify-passkey' | 'wallet-picker' | 'open-wallet' | 'setup-status' | 'setup' | 'confirm-sign' | 'deposit' | 'low-balance' | 'processing' | 'select-source' | 'token-picker' | 'success';
|
|
212
210
|
/** User-selected advanced settings for chain/asset override */
|
|
213
211
|
interface AdvancedSettings {
|
|
214
212
|
/** Override asset (e.g. 'USDC', 'USDT'). Null = let backend decide. */
|
|
@@ -822,6 +820,43 @@ interface PasskeyScreenProps {
|
|
|
822
820
|
}
|
|
823
821
|
declare function PasskeyScreen({ onCreatePasskey, onBack, onLogout, creating, error, popupFallback, onCreatePasskeyViaPopup, }: PasskeyScreenProps): react_jsx_runtime.JSX.Element;
|
|
824
822
|
|
|
823
|
+
type AuthIdentifierKind = 'email' | 'phone';
|
|
824
|
+
interface NormalizedAuthIdentifier {
|
|
825
|
+
kind: AuthIdentifierKind;
|
|
826
|
+
value: string;
|
|
827
|
+
}
|
|
828
|
+
|
|
829
|
+
type ScreenName = 'loading' | 'login' | 'otp-verify' | 'create-passkey' | 'verify-passkey' | 'success' | 'processing' | 'confirm-sign' | 'select-source' | 'setup' | 'open-wallet' | 'setup-status' | 'guest-token-picker' | 'wallet-picker' | 'token-picker' | 'deposit';
|
|
830
|
+
type UserIntent = 'pick-token' | 'configure-one-tap' | 'switch-wallet' | null;
|
|
831
|
+
interface ResolveScreenState {
|
|
832
|
+
privyReady: boolean;
|
|
833
|
+
authenticated: boolean;
|
|
834
|
+
verificationTarget: NormalizedAuthIdentifier | null;
|
|
835
|
+
activeCredentialId: string | null;
|
|
836
|
+
knownCredentialIds: string[];
|
|
837
|
+
passkeyConfigLoaded: boolean;
|
|
838
|
+
passkeyPopupNeeded: boolean;
|
|
839
|
+
accounts: Account[];
|
|
840
|
+
isGuestFlow: boolean;
|
|
841
|
+
selectedProviderId: string | null;
|
|
842
|
+
mobileFlow: boolean;
|
|
843
|
+
inlineAuthorizationExecuting: boolean;
|
|
844
|
+
creatingTransfer: boolean;
|
|
845
|
+
transfer: Transfer | null;
|
|
846
|
+
pendingSelectSource: AuthorizationAction | null;
|
|
847
|
+
pendingOneTapSetup: AuthorizationAction | null;
|
|
848
|
+
oneTapLimitAlreadySaved: boolean;
|
|
849
|
+
loadingData: boolean;
|
|
850
|
+
isDesktop: boolean;
|
|
851
|
+
isReturningUser: boolean;
|
|
852
|
+
guestPreauthRedirect: boolean;
|
|
853
|
+
loginRequested: boolean;
|
|
854
|
+
userIntent: UserIntent;
|
|
855
|
+
selectedAccount: Account | undefined;
|
|
856
|
+
guestSettingSender: boolean;
|
|
857
|
+
}
|
|
858
|
+
declare function resolveScreen(state: ResolveScreenState): ScreenName;
|
|
859
|
+
|
|
825
860
|
interface SetupScreenProps {
|
|
826
861
|
availableBalance: number;
|
|
827
862
|
/** Number of tokens/chains available */
|
|
@@ -914,4 +949,4 @@ declare const BLINK_LOGO: string;
|
|
|
914
949
|
/** @deprecated Use BLINK_LOGO instead. Kept for backward compatibility. */
|
|
915
950
|
declare const BLINK_MASCOT: string;
|
|
916
951
|
|
|
917
|
-
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, OutlineButton, PasskeyIframeBlockedError, PasskeyScreen,
|
|
952
|
+
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, OutlineButton, PasskeyIframeBlockedError, PasskeyScreen, PoweredByFooter, PrimaryButton, type Provider, type ResolveScreenState, 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 UserIntent, type Wallet, type WalletSource, type WalletToken, api as blinkApi, buildPasskeyPopupOptions, createPasskeyCredential, createPasskeyViaPopup, darkTheme, deviceHasPasskey, findDevicePasskey, findDevicePasskeyViaPopup, getTheme, lightTheme, resolvePasskeyRpId, resolveScreen, useAuthorizationExecutor, useBlinkConfig, useBlinkDepositAmount, useTransferPolling, useTransferSigning };
|