@swype-org/react-sdk 0.1.192 → 0.1.202
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 +168 -169
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +7 -2
- package/dist/index.d.ts +7 -2
- package/dist/index.js +168 -169
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -746,8 +746,10 @@ interface SetupScreenProps {
|
|
|
746
746
|
selectedSourceLabel?: string;
|
|
747
747
|
loading?: boolean;
|
|
748
748
|
error: string | null;
|
|
749
|
+
/** Token symbol for the selected source, e.g. "USDC" or "USDT" */
|
|
750
|
+
selectedTokenSymbol?: string;
|
|
749
751
|
}
|
|
750
|
-
declare function SetupScreen({ availableBalance, onSetupOneTap, onBack, onLogout, onAdvanced, loading, error, }: SetupScreenProps): react_jsx_runtime.JSX.Element;
|
|
752
|
+
declare function SetupScreen({ availableBalance, onSetupOneTap, onBack, onLogout, onAdvanced, loading, error, selectedTokenSymbol, }: SetupScreenProps): react_jsx_runtime.JSX.Element;
|
|
751
753
|
|
|
752
754
|
interface ChainChoice$1 {
|
|
753
755
|
chainName: string;
|
|
@@ -803,8 +805,10 @@ interface TokenPickerScreenProps {
|
|
|
803
805
|
onLogout?: () => void;
|
|
804
806
|
/** Deposit amount for the context card at top */
|
|
805
807
|
depositAmount?: number;
|
|
808
|
+
/** Currently selected token symbol, e.g. "USDC" or "USDT" */
|
|
809
|
+
selectedTokenSymbol?: string;
|
|
806
810
|
}
|
|
807
|
-
declare function TokenPickerScreen({ account, chains, onSelectAuthorized, onAuthorizeToken, onBack, onLogout, depositAmount, }: TokenPickerScreenProps): react_jsx_runtime.JSX.Element;
|
|
811
|
+
declare function TokenPickerScreen({ account, chains, onSelectAuthorized, onAuthorizeToken, onBack, onLogout, depositAmount, selectedTokenSymbol, }: TokenPickerScreenProps): react_jsx_runtime.JSX.Element;
|
|
808
812
|
|
|
809
813
|
type FlowPhase = 'link' | 'deposit';
|
|
810
814
|
|
|
@@ -814,6 +818,7 @@ declare function FlowPhaseProvider({ phase, children, }: {
|
|
|
814
818
|
}): react_jsx_runtime.JSX.Element;
|
|
815
819
|
|
|
816
820
|
declare const SWYPE_LOGO: string;
|
|
821
|
+
/** @deprecated Use SWYPE_LOGO instead. Kept for backward compatibility. */
|
|
817
822
|
declare const SWYPE_MASCOT: string;
|
|
818
823
|
|
|
819
824
|
export { type Account, type ActionExecutionResult, type AdvancedSettings, AdvancedSourceScreen, type Amount, type AuthorizationAction, type AuthorizationSession, type AuthorizationSessionDetail, type Chain, type Destination, type ErrorResponse, type FlowPhase, FlowPhaseProvider, IconCircle, InfoBanner, type ListResponse, type MerchantAuthorization, type MerchantPublicKey, OutlineButton, PasskeyIframeBlockedError, PasskeyScreen, type PaymentStep, PoweredByFooter, PrimaryButton, type Provider, SWYPE_LOGO, SWYPE_MASCOT, ScreenHeader, ScreenLayout, SelectSourceScreen, SettingsMenu, SetupScreen, type SourceOption, type SourceSelection, type SourceType, Spinner, type StepItem, StepList, SwypeLoadingScreen, SwypePayment, type SwypePaymentProps, SwypeProvider, type SwypeProviderProps, type ThemeMode, type ThemeTokens, type TokenBalance, TokenPickerScreen, type Transfer, type TransferDestination, type UserConfig, type Wallet, type WalletSource, type WalletToken, buildPasskeyPopupOptions, createPasskeyCredential, createPasskeyViaPopup, darkTheme, deviceHasPasskey, findDevicePasskey, findDevicePasskeyViaPopup, getTheme, lightTheme, resolvePasskeyRpId, api as swypeApi, useAuthorizationExecutor, useSwypeConfig, useSwypeDepositAmount, useTransferPolling, useTransferSigning };
|
package/dist/index.d.ts
CHANGED
|
@@ -746,8 +746,10 @@ interface SetupScreenProps {
|
|
|
746
746
|
selectedSourceLabel?: string;
|
|
747
747
|
loading?: boolean;
|
|
748
748
|
error: string | null;
|
|
749
|
+
/** Token symbol for the selected source, e.g. "USDC" or "USDT" */
|
|
750
|
+
selectedTokenSymbol?: string;
|
|
749
751
|
}
|
|
750
|
-
declare function SetupScreen({ availableBalance, onSetupOneTap, onBack, onLogout, onAdvanced, loading, error, }: SetupScreenProps): react_jsx_runtime.JSX.Element;
|
|
752
|
+
declare function SetupScreen({ availableBalance, onSetupOneTap, onBack, onLogout, onAdvanced, loading, error, selectedTokenSymbol, }: SetupScreenProps): react_jsx_runtime.JSX.Element;
|
|
751
753
|
|
|
752
754
|
interface ChainChoice$1 {
|
|
753
755
|
chainName: string;
|
|
@@ -803,8 +805,10 @@ interface TokenPickerScreenProps {
|
|
|
803
805
|
onLogout?: () => void;
|
|
804
806
|
/** Deposit amount for the context card at top */
|
|
805
807
|
depositAmount?: number;
|
|
808
|
+
/** Currently selected token symbol, e.g. "USDC" or "USDT" */
|
|
809
|
+
selectedTokenSymbol?: string;
|
|
806
810
|
}
|
|
807
|
-
declare function TokenPickerScreen({ account, chains, onSelectAuthorized, onAuthorizeToken, onBack, onLogout, depositAmount, }: TokenPickerScreenProps): react_jsx_runtime.JSX.Element;
|
|
811
|
+
declare function TokenPickerScreen({ account, chains, onSelectAuthorized, onAuthorizeToken, onBack, onLogout, depositAmount, selectedTokenSymbol, }: TokenPickerScreenProps): react_jsx_runtime.JSX.Element;
|
|
808
812
|
|
|
809
813
|
type FlowPhase = 'link' | 'deposit';
|
|
810
814
|
|
|
@@ -814,6 +818,7 @@ declare function FlowPhaseProvider({ phase, children, }: {
|
|
|
814
818
|
}): react_jsx_runtime.JSX.Element;
|
|
815
819
|
|
|
816
820
|
declare const SWYPE_LOGO: string;
|
|
821
|
+
/** @deprecated Use SWYPE_LOGO instead. Kept for backward compatibility. */
|
|
817
822
|
declare const SWYPE_MASCOT: string;
|
|
818
823
|
|
|
819
824
|
export { type Account, type ActionExecutionResult, type AdvancedSettings, AdvancedSourceScreen, type Amount, type AuthorizationAction, type AuthorizationSession, type AuthorizationSessionDetail, type Chain, type Destination, type ErrorResponse, type FlowPhase, FlowPhaseProvider, IconCircle, InfoBanner, type ListResponse, type MerchantAuthorization, type MerchantPublicKey, OutlineButton, PasskeyIframeBlockedError, PasskeyScreen, type PaymentStep, PoweredByFooter, PrimaryButton, type Provider, SWYPE_LOGO, SWYPE_MASCOT, ScreenHeader, ScreenLayout, SelectSourceScreen, SettingsMenu, SetupScreen, type SourceOption, type SourceSelection, type SourceType, Spinner, type StepItem, StepList, SwypeLoadingScreen, SwypePayment, type SwypePaymentProps, SwypeProvider, type SwypeProviderProps, type ThemeMode, type ThemeTokens, type TokenBalance, TokenPickerScreen, type Transfer, type TransferDestination, type UserConfig, type Wallet, type WalletSource, type WalletToken, buildPasskeyPopupOptions, createPasskeyCredential, createPasskeyViaPopup, darkTheme, deviceHasPasskey, findDevicePasskey, findDevicePasskeyViaPopup, getTheme, lightTheme, resolvePasskeyRpId, api as swypeApi, useAuthorizationExecutor, useSwypeConfig, useSwypeDepositAmount, useTransferPolling, useTransferSigning };
|