@swype-org/react-sdk 0.1.157 → 0.1.158
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 +12 -8
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +12 -8
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -3480,14 +3480,16 @@ function WalletPickerScreen({
|
|
|
3480
3480
|
selectedProvider && /* @__PURE__ */ jsx(
|
|
3481
3481
|
PrimaryButton,
|
|
3482
3482
|
{
|
|
3483
|
-
onClick:
|
|
3484
|
-
|
|
3485
|
-
|
|
3486
|
-
const
|
|
3487
|
-
|
|
3488
|
-
|
|
3489
|
-
|
|
3483
|
+
onClick: () => {
|
|
3484
|
+
const session = preparedSession?.providerId === selectedProvider.id ? preparedSession : void 0;
|
|
3485
|
+
if (session) {
|
|
3486
|
+
const opened = window.open(session.uri, "_blank");
|
|
3487
|
+
if (!opened && window === window.parent) {
|
|
3488
|
+
window.location.href = session.uri;
|
|
3489
|
+
}
|
|
3490
3490
|
}
|
|
3491
|
+
setConnecting(true);
|
|
3492
|
+
onSelectProvider(selectedProvider.id, session).finally(() => setConnecting(false));
|
|
3491
3493
|
},
|
|
3492
3494
|
loading: connecting || preparing,
|
|
3493
3495
|
disabled: preparing,
|
|
@@ -6619,7 +6621,9 @@ function useProviderHandlers(deps) {
|
|
|
6619
6621
|
providerId,
|
|
6620
6622
|
isSetup: true
|
|
6621
6623
|
});
|
|
6622
|
-
|
|
6624
|
+
if (!preparedSession) {
|
|
6625
|
+
triggerDeeplink(sessionUri);
|
|
6626
|
+
}
|
|
6623
6627
|
dispatch({ type: "MOBILE_DEEPLINK_READY", deeplinkUri: sessionUri });
|
|
6624
6628
|
} else {
|
|
6625
6629
|
await authExecutor.executeSessionById(sessionId);
|