@tonconnect/ui 2.0.9-beta.0 → 2.0.9-beta.1
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/tonconnect-ui.min.js +2 -2
- package/dist/tonconnect-ui.min.js.map +1 -1
- package/lib/index.cjs +22 -22
- package/lib/index.cjs.map +1 -1
- package/lib/index.mjs +22 -22
- package/lib/index.mjs.map +1 -1
- package/package.json +1 -1
package/lib/index.cjs
CHANGED
|
@@ -8367,22 +8367,18 @@ function redirectToTelegram(universalLink, options) {
|
|
|
8367
8367
|
}
|
|
8368
8368
|
if (isInTelegramBrowser()) {
|
|
8369
8369
|
options.returnStrategy = "back";
|
|
8370
|
-
|
|
8371
|
-
const linkWitStrategy = addReturnStrategy(directLinkUrl.toString(), options);
|
|
8370
|
+
const linkWitStrategy = addReturnStrategy(directLinkUrl.toString(), options.returnStrategy);
|
|
8372
8371
|
openLinkBlank(linkWitStrategy);
|
|
8373
8372
|
} else if (isInTMA()) {
|
|
8374
|
-
if (isTmaPlatform("ios", "android", "macos")) {
|
|
8373
|
+
if (isTmaPlatform("ios", "android", "macos", "tdesktop", "web")) {
|
|
8375
8374
|
options.returnStrategy = "back";
|
|
8376
|
-
|
|
8377
|
-
|
|
8378
|
-
|
|
8379
|
-
|
|
8375
|
+
const linkWitStrategy = addReturnStrategy(
|
|
8376
|
+
directLinkUrl.toString(),
|
|
8377
|
+
options.returnStrategy
|
|
8378
|
+
);
|
|
8379
|
+
sendOpenTelegramLink(linkWitStrategy);
|
|
8380
8380
|
} else if (isTmaPlatform("weba")) {
|
|
8381
8381
|
sendOpenTelegramLink(addReturnStrategy(directLinkUrl.toString(), options));
|
|
8382
|
-
} else if (isTmaPlatform("web")) {
|
|
8383
|
-
options.returnStrategy = "back";
|
|
8384
|
-
options.twaReturnUrl = void 0;
|
|
8385
|
-
sendOpenTelegramLink(addReturnStrategy(directLinkUrl.toString(), options));
|
|
8386
8382
|
} else {
|
|
8387
8383
|
openLinkBlank(addReturnStrategy(directLinkUrl.toString(), options));
|
|
8388
8384
|
}
|
|
@@ -8733,16 +8729,20 @@ const DesktopConnectionModal = (props) => {
|
|
|
8733
8729
|
generateUniversalLink();
|
|
8734
8730
|
}
|
|
8735
8731
|
setMode("desktop");
|
|
8736
|
-
|
|
8737
|
-
|
|
8738
|
-
|
|
8739
|
-
|
|
8740
|
-
|
|
8741
|
-
|
|
8742
|
-
|
|
8743
|
-
|
|
8744
|
-
})
|
|
8745
|
-
|
|
8732
|
+
if (sdk.isTelegramUrl(universalLink())) {
|
|
8733
|
+
onClickTelegram();
|
|
8734
|
+
} else {
|
|
8735
|
+
const forceRedirect = !firstClick();
|
|
8736
|
+
setFirstClick(false);
|
|
8737
|
+
redirectToWallet(universalLink(), props.wallet.deepLink, {
|
|
8738
|
+
returnStrategy: appState.returnStrategy,
|
|
8739
|
+
forceRedirect
|
|
8740
|
+
}, (method) => {
|
|
8741
|
+
setLastSelectedWalletInfo(__spreadProps(__spreadValues({}, props.wallet), {
|
|
8742
|
+
openMethod: method
|
|
8743
|
+
}));
|
|
8744
|
+
});
|
|
8745
|
+
}
|
|
8746
8746
|
};
|
|
8747
8747
|
const onClickTelegram = () => {
|
|
8748
8748
|
const forceRedirect = !firstClick();
|
|
@@ -10965,7 +10965,7 @@ class TonConnectUITracker {
|
|
|
10965
10965
|
}
|
|
10966
10966
|
}
|
|
10967
10967
|
}
|
|
10968
|
-
const tonConnectUiVersion = "2.0.9-beta.
|
|
10968
|
+
const tonConnectUiVersion = "2.0.9-beta.1";
|
|
10969
10969
|
class TonConnectUI {
|
|
10970
10970
|
constructor(options) {
|
|
10971
10971
|
__publicField(this, "walletInfoStorage", new WalletInfoStorage());
|