@swype-org/react-sdk 0.1.183 → 0.1.187
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 +198 -147
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +8 -4
- package/dist/index.d.ts +8 -4
- package/dist/index.js +198 -147
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -655,8 +655,10 @@ interface ScreenHeaderProps {
|
|
|
655
655
|
onBack?: () => void;
|
|
656
656
|
/** Optional secondary label next to the title (e.g. "Simple") */
|
|
657
657
|
badge?: string;
|
|
658
|
+
/** When provided, renders the three-dot settings menu with a logout action in the right slot. */
|
|
659
|
+
onLogout?: () => void;
|
|
658
660
|
}
|
|
659
|
-
declare function ScreenHeader({ title, right, onBack, badge }: ScreenHeaderProps): react_jsx_runtime.JSX.Element;
|
|
661
|
+
declare function ScreenHeader({ title, right, onBack, badge, onLogout }: ScreenHeaderProps): react_jsx_runtime.JSX.Element;
|
|
660
662
|
|
|
661
663
|
declare function PoweredByFooter(): react_jsx_runtime.JSX.Element;
|
|
662
664
|
|
|
@@ -719,6 +721,7 @@ declare function SwypeLoadingScreen(): react_jsx_runtime.JSX.Element;
|
|
|
719
721
|
interface PasskeyScreenProps {
|
|
720
722
|
onCreatePasskey: () => void;
|
|
721
723
|
onBack?: () => void;
|
|
724
|
+
onLogout?: () => void;
|
|
722
725
|
creating: boolean;
|
|
723
726
|
error: string | null;
|
|
724
727
|
/** When true, direct passkey creation failed (Safari iframe restriction). */
|
|
@@ -726,7 +729,7 @@ interface PasskeyScreenProps {
|
|
|
726
729
|
/** Opens a pop-up window on the Swype domain for passkey registration. */
|
|
727
730
|
onCreatePasskeyViaPopup?: () => void;
|
|
728
731
|
}
|
|
729
|
-
declare function PasskeyScreen({ onCreatePasskey, onBack, creating, error, popupFallback, onCreatePasskeyViaPopup, }: PasskeyScreenProps): react_jsx_runtime.JSX.Element;
|
|
732
|
+
declare function PasskeyScreen({ onCreatePasskey, onBack, onLogout, creating, error, popupFallback, onCreatePasskeyViaPopup, }: PasskeyScreenProps): react_jsx_runtime.JSX.Element;
|
|
730
733
|
|
|
731
734
|
interface SetupScreenProps {
|
|
732
735
|
availableBalance: number;
|
|
@@ -744,7 +747,7 @@ interface SetupScreenProps {
|
|
|
744
747
|
loading?: boolean;
|
|
745
748
|
error: string | null;
|
|
746
749
|
}
|
|
747
|
-
declare function SetupScreen({ availableBalance, onSetupOneTap, onBack, onAdvanced, loading, error, }: SetupScreenProps): react_jsx_runtime.JSX.Element;
|
|
750
|
+
declare function SetupScreen({ availableBalance, onSetupOneTap, onBack, onLogout, onAdvanced, loading, error, }: SetupScreenProps): react_jsx_runtime.JSX.Element;
|
|
748
751
|
|
|
749
752
|
interface ChainChoice$1 {
|
|
750
753
|
chainName: string;
|
|
@@ -797,10 +800,11 @@ interface TokenPickerScreenProps {
|
|
|
797
800
|
onSelectAuthorized: (walletId: string, tokenSymbol: string) => void;
|
|
798
801
|
onAuthorizeToken: (walletId: string, tokenAddress: string, chainId: number, tokenSymbol: string) => void;
|
|
799
802
|
onBack: () => void;
|
|
803
|
+
onLogout?: () => void;
|
|
800
804
|
/** Deposit amount for the context card at top */
|
|
801
805
|
depositAmount?: number;
|
|
802
806
|
}
|
|
803
|
-
declare function TokenPickerScreen({ account, chains, onSelectAuthorized, onAuthorizeToken, onBack, depositAmount, }: TokenPickerScreenProps): react_jsx_runtime.JSX.Element;
|
|
807
|
+
declare function TokenPickerScreen({ account, chains, onSelectAuthorized, onAuthorizeToken, onBack, onLogout, depositAmount, }: TokenPickerScreenProps): react_jsx_runtime.JSX.Element;
|
|
804
808
|
|
|
805
809
|
type FlowPhase = 'link' | 'deposit';
|
|
806
810
|
|
package/dist/index.d.ts
CHANGED
|
@@ -655,8 +655,10 @@ interface ScreenHeaderProps {
|
|
|
655
655
|
onBack?: () => void;
|
|
656
656
|
/** Optional secondary label next to the title (e.g. "Simple") */
|
|
657
657
|
badge?: string;
|
|
658
|
+
/** When provided, renders the three-dot settings menu with a logout action in the right slot. */
|
|
659
|
+
onLogout?: () => void;
|
|
658
660
|
}
|
|
659
|
-
declare function ScreenHeader({ title, right, onBack, badge }: ScreenHeaderProps): react_jsx_runtime.JSX.Element;
|
|
661
|
+
declare function ScreenHeader({ title, right, onBack, badge, onLogout }: ScreenHeaderProps): react_jsx_runtime.JSX.Element;
|
|
660
662
|
|
|
661
663
|
declare function PoweredByFooter(): react_jsx_runtime.JSX.Element;
|
|
662
664
|
|
|
@@ -719,6 +721,7 @@ declare function SwypeLoadingScreen(): react_jsx_runtime.JSX.Element;
|
|
|
719
721
|
interface PasskeyScreenProps {
|
|
720
722
|
onCreatePasskey: () => void;
|
|
721
723
|
onBack?: () => void;
|
|
724
|
+
onLogout?: () => void;
|
|
722
725
|
creating: boolean;
|
|
723
726
|
error: string | null;
|
|
724
727
|
/** When true, direct passkey creation failed (Safari iframe restriction). */
|
|
@@ -726,7 +729,7 @@ interface PasskeyScreenProps {
|
|
|
726
729
|
/** Opens a pop-up window on the Swype domain for passkey registration. */
|
|
727
730
|
onCreatePasskeyViaPopup?: () => void;
|
|
728
731
|
}
|
|
729
|
-
declare function PasskeyScreen({ onCreatePasskey, onBack, creating, error, popupFallback, onCreatePasskeyViaPopup, }: PasskeyScreenProps): react_jsx_runtime.JSX.Element;
|
|
732
|
+
declare function PasskeyScreen({ onCreatePasskey, onBack, onLogout, creating, error, popupFallback, onCreatePasskeyViaPopup, }: PasskeyScreenProps): react_jsx_runtime.JSX.Element;
|
|
730
733
|
|
|
731
734
|
interface SetupScreenProps {
|
|
732
735
|
availableBalance: number;
|
|
@@ -744,7 +747,7 @@ interface SetupScreenProps {
|
|
|
744
747
|
loading?: boolean;
|
|
745
748
|
error: string | null;
|
|
746
749
|
}
|
|
747
|
-
declare function SetupScreen({ availableBalance, onSetupOneTap, onBack, onAdvanced, loading, error, }: SetupScreenProps): react_jsx_runtime.JSX.Element;
|
|
750
|
+
declare function SetupScreen({ availableBalance, onSetupOneTap, onBack, onLogout, onAdvanced, loading, error, }: SetupScreenProps): react_jsx_runtime.JSX.Element;
|
|
748
751
|
|
|
749
752
|
interface ChainChoice$1 {
|
|
750
753
|
chainName: string;
|
|
@@ -797,10 +800,11 @@ interface TokenPickerScreenProps {
|
|
|
797
800
|
onSelectAuthorized: (walletId: string, tokenSymbol: string) => void;
|
|
798
801
|
onAuthorizeToken: (walletId: string, tokenAddress: string, chainId: number, tokenSymbol: string) => void;
|
|
799
802
|
onBack: () => void;
|
|
803
|
+
onLogout?: () => void;
|
|
800
804
|
/** Deposit amount for the context card at top */
|
|
801
805
|
depositAmount?: number;
|
|
802
806
|
}
|
|
803
|
-
declare function TokenPickerScreen({ account, chains, onSelectAuthorized, onAuthorizeToken, onBack, depositAmount, }: TokenPickerScreenProps): react_jsx_runtime.JSX.Element;
|
|
807
|
+
declare function TokenPickerScreen({ account, chains, onSelectAuthorized, onAuthorizeToken, onBack, onLogout, depositAmount, }: TokenPickerScreenProps): react_jsx_runtime.JSX.Element;
|
|
804
808
|
|
|
805
809
|
type FlowPhase = 'link' | 'deposit';
|
|
806
810
|
|