@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.js CHANGED
@@ -3261,10 +3261,7 @@ function WalletPickerScreen({
3261
3261
  onClick: () => {
3262
3262
  const session = preparedSession?.providerId === selectedProvider.id ? preparedSession : void 0;
3263
3263
  if (session && useDeeplink) {
3264
- const opened = window.open(session.uri, "_blank");
3265
- if (!opened && window === window.parent) {
3266
- window.location.href = session.uri;
3267
- }
3264
+ window.open(session.uri, "_blank");
3268
3265
  }
3269
3266
  setConnecting(true);
3270
3267
  onSelectProvider(selectedProvider.id, session).finally(() => setConnecting(false));
@@ -4902,7 +4899,6 @@ var stepsWrapStyle2 = {
4902
4899
 
4903
4900
  // src/deeplink.ts
4904
4901
  var IFRAME_CLEANUP_DELAY_MS = 3e3;
4905
- var LOCATION_FALLBACK_DELAY_MS = 100;
4906
4902
  function triggerDeeplink(uri) {
4907
4903
  try {
4908
4904
  const iframe = document.createElement("iframe");
@@ -4917,9 +4913,6 @@ function triggerDeeplink(uri) {
4917
4913
  }, IFRAME_CLEANUP_DELAY_MS);
4918
4914
  } catch {
4919
4915
  }
4920
- setTimeout(() => {
4921
- window.location.href = uri;
4922
- }, LOCATION_FALLBACK_DELAY_MS);
4923
4916
  }
4924
4917
  function OpenWalletScreen({
4925
4918
  walletName,
@@ -4941,10 +4934,7 @@ function OpenWalletScreen({
4941
4934
  triggerDeeplink(deeplinkUri);
4942
4935
  }, [useDeeplink, loading, deeplinkUri]);
4943
4936
  const handleOpen = useCallback(() => {
4944
- const opened = window.open(deeplinkUri, "_blank");
4945
- if (!opened && window === window.parent) {
4946
- window.location.href = deeplinkUri;
4947
- }
4937
+ window.open(deeplinkUri, "_blank");
4948
4938
  }, [deeplinkUri]);
4949
4939
  if (!useDeeplink) {
4950
4940
  return /* @__PURE__ */ jsxs(