@swype-org/react-sdk 0.1.209 → 0.1.210
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 +2 -12
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +2 -12
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -3264,10 +3264,7 @@ function WalletPickerScreen({
|
|
|
3264
3264
|
onClick: () => {
|
|
3265
3265
|
const session = preparedSession?.providerId === selectedProvider.id ? preparedSession : void 0;
|
|
3266
3266
|
if (session && useDeeplink) {
|
|
3267
|
-
|
|
3268
|
-
if (!opened && window === window.parent) {
|
|
3269
|
-
window.location.href = session.uri;
|
|
3270
|
-
}
|
|
3267
|
+
window.open(session.uri, "_blank");
|
|
3271
3268
|
}
|
|
3272
3269
|
setConnecting(true);
|
|
3273
3270
|
onSelectProvider(selectedProvider.id, session).finally(() => setConnecting(false));
|
|
@@ -4905,7 +4902,6 @@ var stepsWrapStyle2 = {
|
|
|
4905
4902
|
|
|
4906
4903
|
// src/deeplink.ts
|
|
4907
4904
|
var IFRAME_CLEANUP_DELAY_MS = 3e3;
|
|
4908
|
-
var LOCATION_FALLBACK_DELAY_MS = 100;
|
|
4909
4905
|
function triggerDeeplink(uri) {
|
|
4910
4906
|
try {
|
|
4911
4907
|
const iframe = document.createElement("iframe");
|
|
@@ -4920,9 +4916,6 @@ function triggerDeeplink(uri) {
|
|
|
4920
4916
|
}, IFRAME_CLEANUP_DELAY_MS);
|
|
4921
4917
|
} catch {
|
|
4922
4918
|
}
|
|
4923
|
-
setTimeout(() => {
|
|
4924
|
-
window.location.href = uri;
|
|
4925
|
-
}, LOCATION_FALLBACK_DELAY_MS);
|
|
4926
4919
|
}
|
|
4927
4920
|
function OpenWalletScreen({
|
|
4928
4921
|
walletName,
|
|
@@ -4944,10 +4937,7 @@ function OpenWalletScreen({
|
|
|
4944
4937
|
triggerDeeplink(deeplinkUri);
|
|
4945
4938
|
}, [useDeeplink, loading, deeplinkUri]);
|
|
4946
4939
|
const handleOpen = react.useCallback(() => {
|
|
4947
|
-
|
|
4948
|
-
if (!opened && window === window.parent) {
|
|
4949
|
-
window.location.href = deeplinkUri;
|
|
4950
|
-
}
|
|
4940
|
+
window.open(deeplinkUri, "_blank");
|
|
4951
4941
|
}, [deeplinkUri]);
|
|
4952
4942
|
if (!useDeeplink) {
|
|
4953
4943
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|