@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.cjs
CHANGED
|
@@ -3483,14 +3483,16 @@ function WalletPickerScreen({
|
|
|
3483
3483
|
selectedProvider && /* @__PURE__ */ jsxRuntime.jsx(
|
|
3484
3484
|
PrimaryButton,
|
|
3485
3485
|
{
|
|
3486
|
-
onClick:
|
|
3487
|
-
|
|
3488
|
-
|
|
3489
|
-
const
|
|
3490
|
-
|
|
3491
|
-
|
|
3492
|
-
|
|
3486
|
+
onClick: () => {
|
|
3487
|
+
const session = preparedSession?.providerId === selectedProvider.id ? preparedSession : void 0;
|
|
3488
|
+
if (session) {
|
|
3489
|
+
const opened = window.open(session.uri, "_blank");
|
|
3490
|
+
if (!opened && window === window.parent) {
|
|
3491
|
+
window.location.href = session.uri;
|
|
3492
|
+
}
|
|
3493
3493
|
}
|
|
3494
|
+
setConnecting(true);
|
|
3495
|
+
onSelectProvider(selectedProvider.id, session).finally(() => setConnecting(false));
|
|
3494
3496
|
},
|
|
3495
3497
|
loading: connecting || preparing,
|
|
3496
3498
|
disabled: preparing,
|
|
@@ -6622,7 +6624,9 @@ function useProviderHandlers(deps) {
|
|
|
6622
6624
|
providerId,
|
|
6623
6625
|
isSetup: true
|
|
6624
6626
|
});
|
|
6625
|
-
|
|
6627
|
+
if (!preparedSession) {
|
|
6628
|
+
triggerDeeplink(sessionUri);
|
|
6629
|
+
}
|
|
6626
6630
|
dispatch({ type: "MOBILE_DEEPLINK_READY", deeplinkUri: sessionUri });
|
|
6627
6631
|
} else {
|
|
6628
6632
|
await authExecutor.executeSessionById(sessionId);
|