@tonconnect/ui 2.0.9-beta.1 → 2.0.9-beta.3

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/lib/index.cjs CHANGED
@@ -8415,7 +8415,7 @@ function redirectToTelegram(universalLink, options) {
8415
8415
  openLinkBlank(linkWithStrategy);
8416
8416
  }
8417
8417
  } else if (isOS("android")) {
8418
- options.returnStrategy = "none";
8418
+ options.returnStrategy = "back";
8419
8419
  const isChrome = isBrowser("chrome");
8420
8420
  const isFirefox = isBrowser("firefox");
8421
8421
  const useDeepLink = (isChrome || isFirefox) && !options.forceRedirect;
@@ -8450,29 +8450,28 @@ function redirectToTelegram(universalLink, options) {
8450
8450
  const isChrome = isBrowser("chrome");
8451
8451
  const isFirefox = isBrowser("firefox");
8452
8452
  const useDeepLink = (isChrome || isFirefox) && !options.forceRedirect;
8453
+ const linkWithStrategy = addReturnStrategy(
8454
+ directLinkUrl.toString(),
8455
+ options.returnStrategy
8456
+ );
8453
8457
  if (useDeepLink) {
8454
- const linkWithStrategy = addReturnStrategy(
8455
- directLinkUrl.toString(),
8456
- options.returnStrategy
8457
- );
8458
8458
  const deepLink = convertToTGDeepLink(linkWithStrategy);
8459
8459
  openDeeplinkWithFallback(deepLink, () => openLinkBlank(linkWithStrategy));
8460
8460
  } else {
8461
- const linkWithStrategy = addReturnStrategy(
8462
- directLinkUrl.toString(),
8463
- options.returnStrategy
8464
- );
8465
8461
  openLinkBlank(linkWithStrategy);
8466
8462
  }
8467
8463
  } else if (isOS("macos", "windows", "linux")) {
8468
- options.returnStrategy = "none";
8464
+ options.returnStrategy = "back";
8469
8465
  options.twaReturnUrl = void 0;
8466
+ const linkWithStrategy = addReturnStrategy(
8467
+ directLinkUrl.toString(),
8468
+ options.returnStrategy
8469
+ );
8470
8470
  if (options.forceRedirect) {
8471
- openLinkBlank(addReturnStrategy(directLinkUrl.toString(), options));
8471
+ openLinkBlank(linkWithStrategy);
8472
8472
  } else {
8473
- const link = addReturnStrategy(directLinkUrl.toString(), options);
8474
- const deepLink = convertToTGDeepLink(link);
8475
- openDeeplinkWithFallback(deepLink, () => openLinkBlank(link));
8473
+ const deepLink = convertToTGDeepLink(linkWithStrategy);
8474
+ openDeeplinkWithFallback(deepLink, () => openLinkBlank(linkWithStrategy));
8476
8475
  }
8477
8476
  } else {
8478
8477
  openLinkBlank(addReturnStrategy(directLinkUrl.toString(), options));
@@ -10965,7 +10964,7 @@ class TonConnectUITracker {
10965
10964
  }
10966
10965
  }
10967
10966
  }
10968
- const tonConnectUiVersion = "2.0.9-beta.1";
10967
+ const tonConnectUiVersion = "2.0.9-beta.3";
10969
10968
  class TonConnectUI {
10970
10969
  constructor(options) {
10971
10970
  __publicField(this, "walletInfoStorage", new WalletInfoStorage());