@swype-org/react-sdk 0.1.59 → 0.1.64
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 +377 -69
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +26 -5
- package/dist/index.d.ts +26 -5
- package/dist/index.js +377 -70
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -624,7 +624,7 @@ declare function Spinner({ size, label }: SpinnerProps): react_jsx_runtime.JSX.E
|
|
|
624
624
|
|
|
625
625
|
interface CreatePasskeyScreenProps {
|
|
626
626
|
onCreatePasskey: () => void;
|
|
627
|
-
onBack
|
|
627
|
+
onBack?: () => void;
|
|
628
628
|
creating: boolean;
|
|
629
629
|
error: string | null;
|
|
630
630
|
/** When true, direct passkey creation failed (Safari iframe restriction). */
|
|
@@ -643,12 +643,16 @@ interface SetupScreenProps {
|
|
|
643
643
|
onSetupOneTap: (limit: number) => void;
|
|
644
644
|
onBack: () => void;
|
|
645
645
|
onLogout: () => void;
|
|
646
|
+
/** Navigate to the advanced source picker. */
|
|
647
|
+
onAdvanced?: () => void;
|
|
648
|
+
/** Human-readable label for the currently selected source (e.g. "USDC on Base"). */
|
|
649
|
+
selectedSourceLabel?: string;
|
|
646
650
|
loading?: boolean;
|
|
647
651
|
error: string | null;
|
|
648
652
|
}
|
|
649
|
-
declare function SetupScreen({ availableBalance, tokenCount, sourceName, onSetupOneTap, onBack, onLogout, loading, error, }: SetupScreenProps): react_jsx_runtime.JSX.Element;
|
|
653
|
+
declare function SetupScreen({ availableBalance, tokenCount, sourceName, onSetupOneTap, onBack, onLogout, onAdvanced, selectedSourceLabel, loading, error, }: SetupScreenProps): react_jsx_runtime.JSX.Element;
|
|
650
654
|
|
|
651
|
-
interface ChainChoice {
|
|
655
|
+
interface ChainChoice$1 {
|
|
652
656
|
chainName: string;
|
|
653
657
|
balance: number;
|
|
654
658
|
tokens: {
|
|
@@ -657,7 +661,7 @@ interface ChainChoice {
|
|
|
657
661
|
}[];
|
|
658
662
|
}
|
|
659
663
|
interface SelectSourceScreenProps {
|
|
660
|
-
choices: ChainChoice[];
|
|
664
|
+
choices: ChainChoice$1[];
|
|
661
665
|
selectedChainName: string;
|
|
662
666
|
selectedTokenSymbol: string;
|
|
663
667
|
recommended: {
|
|
@@ -671,4 +675,21 @@ interface SelectSourceScreenProps {
|
|
|
671
675
|
}
|
|
672
676
|
declare function SelectSourceScreen({ choices, selectedChainName, selectedTokenSymbol, recommended, onChainChange, onTokenChange, onConfirm, onLogout, }: SelectSourceScreenProps): react_jsx_runtime.JSX.Element;
|
|
673
677
|
|
|
674
|
-
|
|
678
|
+
interface ChainChoice {
|
|
679
|
+
chainName: string;
|
|
680
|
+
balance: number;
|
|
681
|
+
tokens: {
|
|
682
|
+
tokenSymbol: string;
|
|
683
|
+
balance: number;
|
|
684
|
+
}[];
|
|
685
|
+
}
|
|
686
|
+
interface AdvancedSourceScreenProps {
|
|
687
|
+
choices: ChainChoice[];
|
|
688
|
+
selectedChainName: string;
|
|
689
|
+
selectedTokenSymbol: string;
|
|
690
|
+
onSelectSource: (chainName: string, tokenSymbol: string) => void;
|
|
691
|
+
onBack: () => void;
|
|
692
|
+
}
|
|
693
|
+
declare function AdvancedSourceScreen({ choices, selectedChainName, selectedTokenSymbol, onSelectSource, onBack, }: AdvancedSourceScreenProps): react_jsx_runtime.JSX.Element;
|
|
694
|
+
|
|
695
|
+
export { type Account, type ActionExecutionResult, type AdvancedSettings, AdvancedSourceScreen, type Amount, type AuthorizationAction, type AuthorizationSession, type AuthorizationSessionDetail, type Chain, CreatePasskeyScreen, type Destination, type ErrorResponse, IconCircle, type ListResponse, type MerchantAuthorization, type MerchantPublicKey, OutlineButton, PasskeyIframeBlockedError, type PaymentStep, PoweredByFooter, PrimaryButton, type Provider, ScreenHeader, ScreenLayout, SelectSourceScreen, SettingsMenu, SetupScreen, type SourceOption, type SourceSelection, type SourceType, Spinner, type StepItem, StepList, SwypePayment, type SwypePaymentProps, SwypeProvider, type SwypeProviderProps, type ThemeMode, type ThemeTokens, type TokenBalance, type Transfer, type TransferDestination, type UserConfig, type Wallet, type WalletSource, type WalletToken, buildPasskeyPopupOptions, createPasskeyCredential, createPasskeyViaPopup, darkTheme, deviceHasPasskey, findDevicePasskey, getTheme, lightTheme, api as swypeApi, useAuthorizationExecutor, useSwypeConfig, useSwypeDepositAmount, useTransferPolling, useTransferSigning };
|
package/dist/index.d.ts
CHANGED
|
@@ -624,7 +624,7 @@ declare function Spinner({ size, label }: SpinnerProps): react_jsx_runtime.JSX.E
|
|
|
624
624
|
|
|
625
625
|
interface CreatePasskeyScreenProps {
|
|
626
626
|
onCreatePasskey: () => void;
|
|
627
|
-
onBack
|
|
627
|
+
onBack?: () => void;
|
|
628
628
|
creating: boolean;
|
|
629
629
|
error: string | null;
|
|
630
630
|
/** When true, direct passkey creation failed (Safari iframe restriction). */
|
|
@@ -643,12 +643,16 @@ interface SetupScreenProps {
|
|
|
643
643
|
onSetupOneTap: (limit: number) => void;
|
|
644
644
|
onBack: () => void;
|
|
645
645
|
onLogout: () => void;
|
|
646
|
+
/** Navigate to the advanced source picker. */
|
|
647
|
+
onAdvanced?: () => void;
|
|
648
|
+
/** Human-readable label for the currently selected source (e.g. "USDC on Base"). */
|
|
649
|
+
selectedSourceLabel?: string;
|
|
646
650
|
loading?: boolean;
|
|
647
651
|
error: string | null;
|
|
648
652
|
}
|
|
649
|
-
declare function SetupScreen({ availableBalance, tokenCount, sourceName, onSetupOneTap, onBack, onLogout, loading, error, }: SetupScreenProps): react_jsx_runtime.JSX.Element;
|
|
653
|
+
declare function SetupScreen({ availableBalance, tokenCount, sourceName, onSetupOneTap, onBack, onLogout, onAdvanced, selectedSourceLabel, loading, error, }: SetupScreenProps): react_jsx_runtime.JSX.Element;
|
|
650
654
|
|
|
651
|
-
interface ChainChoice {
|
|
655
|
+
interface ChainChoice$1 {
|
|
652
656
|
chainName: string;
|
|
653
657
|
balance: number;
|
|
654
658
|
tokens: {
|
|
@@ -657,7 +661,7 @@ interface ChainChoice {
|
|
|
657
661
|
}[];
|
|
658
662
|
}
|
|
659
663
|
interface SelectSourceScreenProps {
|
|
660
|
-
choices: ChainChoice[];
|
|
664
|
+
choices: ChainChoice$1[];
|
|
661
665
|
selectedChainName: string;
|
|
662
666
|
selectedTokenSymbol: string;
|
|
663
667
|
recommended: {
|
|
@@ -671,4 +675,21 @@ interface SelectSourceScreenProps {
|
|
|
671
675
|
}
|
|
672
676
|
declare function SelectSourceScreen({ choices, selectedChainName, selectedTokenSymbol, recommended, onChainChange, onTokenChange, onConfirm, onLogout, }: SelectSourceScreenProps): react_jsx_runtime.JSX.Element;
|
|
673
677
|
|
|
674
|
-
|
|
678
|
+
interface ChainChoice {
|
|
679
|
+
chainName: string;
|
|
680
|
+
balance: number;
|
|
681
|
+
tokens: {
|
|
682
|
+
tokenSymbol: string;
|
|
683
|
+
balance: number;
|
|
684
|
+
}[];
|
|
685
|
+
}
|
|
686
|
+
interface AdvancedSourceScreenProps {
|
|
687
|
+
choices: ChainChoice[];
|
|
688
|
+
selectedChainName: string;
|
|
689
|
+
selectedTokenSymbol: string;
|
|
690
|
+
onSelectSource: (chainName: string, tokenSymbol: string) => void;
|
|
691
|
+
onBack: () => void;
|
|
692
|
+
}
|
|
693
|
+
declare function AdvancedSourceScreen({ choices, selectedChainName, selectedTokenSymbol, onSelectSource, onBack, }: AdvancedSourceScreenProps): react_jsx_runtime.JSX.Element;
|
|
694
|
+
|
|
695
|
+
export { type Account, type ActionExecutionResult, type AdvancedSettings, AdvancedSourceScreen, type Amount, type AuthorizationAction, type AuthorizationSession, type AuthorizationSessionDetail, type Chain, CreatePasskeyScreen, type Destination, type ErrorResponse, IconCircle, type ListResponse, type MerchantAuthorization, type MerchantPublicKey, OutlineButton, PasskeyIframeBlockedError, type PaymentStep, PoweredByFooter, PrimaryButton, type Provider, ScreenHeader, ScreenLayout, SelectSourceScreen, SettingsMenu, SetupScreen, type SourceOption, type SourceSelection, type SourceType, Spinner, type StepItem, StepList, SwypePayment, type SwypePaymentProps, SwypeProvider, type SwypeProviderProps, type ThemeMode, type ThemeTokens, type TokenBalance, type Transfer, type TransferDestination, type UserConfig, type Wallet, type WalletSource, type WalletToken, buildPasskeyPopupOptions, createPasskeyCredential, createPasskeyViaPopup, darkTheme, deviceHasPasskey, findDevicePasskey, getTheme, lightTheme, api as swypeApi, useAuthorizationExecutor, useSwypeConfig, useSwypeDepositAmount, useTransferPolling, useTransferSigning };
|