@swype-org/react-sdk 0.1.172 → 0.1.181
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 +630 -512
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +15 -3
- package/dist/index.d.ts +15 -3
- package/dist/index.js +628 -513
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -744,7 +744,7 @@ interface SetupScreenProps {
|
|
|
744
744
|
loading?: boolean;
|
|
745
745
|
error: string | null;
|
|
746
746
|
}
|
|
747
|
-
declare function SetupScreen({ availableBalance,
|
|
747
|
+
declare function SetupScreen({ availableBalance, onSetupOneTap, onBack, onAdvanced, loading, error, }: SetupScreenProps): react_jsx_runtime.JSX.Element;
|
|
748
748
|
|
|
749
749
|
interface ChainChoice$1 {
|
|
750
750
|
chainName: string;
|
|
@@ -797,7 +797,19 @@ interface TokenPickerScreenProps {
|
|
|
797
797
|
onSelectAuthorized: (walletId: string, tokenSymbol: string) => void;
|
|
798
798
|
onAuthorizeToken: (walletId: string, tokenAddress: string, chainId: number, tokenSymbol: string) => void;
|
|
799
799
|
onBack: () => void;
|
|
800
|
+
/** Deposit amount for the context card at top */
|
|
801
|
+
depositAmount?: number;
|
|
800
802
|
}
|
|
801
|
-
declare function TokenPickerScreen({ account, chains, onSelectAuthorized, onAuthorizeToken, onBack, }: TokenPickerScreenProps): react_jsx_runtime.JSX.Element;
|
|
803
|
+
declare function TokenPickerScreen({ account, chains, onSelectAuthorized, onAuthorizeToken, onBack, depositAmount, }: TokenPickerScreenProps): react_jsx_runtime.JSX.Element;
|
|
802
804
|
|
|
803
|
-
|
|
805
|
+
type FlowPhase = 'link' | 'deposit';
|
|
806
|
+
|
|
807
|
+
declare function FlowPhaseProvider({ phase, children, }: {
|
|
808
|
+
phase: FlowPhase | null;
|
|
809
|
+
children: ReactNode;
|
|
810
|
+
}): react_jsx_runtime.JSX.Element;
|
|
811
|
+
|
|
812
|
+
declare const SWYPE_LOGO: string;
|
|
813
|
+
declare const SWYPE_MASCOT: string;
|
|
814
|
+
|
|
815
|
+
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
|
@@ -744,7 +744,7 @@ interface SetupScreenProps {
|
|
|
744
744
|
loading?: boolean;
|
|
745
745
|
error: string | null;
|
|
746
746
|
}
|
|
747
|
-
declare function SetupScreen({ availableBalance,
|
|
747
|
+
declare function SetupScreen({ availableBalance, onSetupOneTap, onBack, onAdvanced, loading, error, }: SetupScreenProps): react_jsx_runtime.JSX.Element;
|
|
748
748
|
|
|
749
749
|
interface ChainChoice$1 {
|
|
750
750
|
chainName: string;
|
|
@@ -797,7 +797,19 @@ interface TokenPickerScreenProps {
|
|
|
797
797
|
onSelectAuthorized: (walletId: string, tokenSymbol: string) => void;
|
|
798
798
|
onAuthorizeToken: (walletId: string, tokenAddress: string, chainId: number, tokenSymbol: string) => void;
|
|
799
799
|
onBack: () => void;
|
|
800
|
+
/** Deposit amount for the context card at top */
|
|
801
|
+
depositAmount?: number;
|
|
800
802
|
}
|
|
801
|
-
declare function TokenPickerScreen({ account, chains, onSelectAuthorized, onAuthorizeToken, onBack, }: TokenPickerScreenProps): react_jsx_runtime.JSX.Element;
|
|
803
|
+
declare function TokenPickerScreen({ account, chains, onSelectAuthorized, onAuthorizeToken, onBack, depositAmount, }: TokenPickerScreenProps): react_jsx_runtime.JSX.Element;
|
|
802
804
|
|
|
803
|
-
|
|
805
|
+
type FlowPhase = 'link' | 'deposit';
|
|
806
|
+
|
|
807
|
+
declare function FlowPhaseProvider({ phase, children, }: {
|
|
808
|
+
phase: FlowPhase | null;
|
|
809
|
+
children: ReactNode;
|
|
810
|
+
}): react_jsx_runtime.JSX.Element;
|
|
811
|
+
|
|
812
|
+
declare const SWYPE_LOGO: string;
|
|
813
|
+
declare const SWYPE_MASCOT: string;
|
|
814
|
+
|
|
815
|
+
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 };
|