@tonconnect/ui 0.0.13 → 0.0.14

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.js CHANGED
@@ -10980,13 +10980,15 @@ class TonConnectUI {
10980
10980
  }
10981
10981
  connectWallet() {
10982
10982
  return __async(this, null, function* () {
10983
+ var _a;
10983
10984
  const walletsList = yield this.getWallets();
10984
10985
  const embeddedWallet = walletsList.find(
10985
10986
  (wallet) => "embedded" in wallet && wallet.embedded
10986
10987
  );
10987
10988
  if (embeddedWallet) {
10989
+ const additionalRequest = yield (_a = appState.getConnectParameters) == null ? void 0 : _a.call(appState);
10988
10990
  setLastSelectedWalletInfo(embeddedWallet);
10989
- this.connector.connect({ jsBridgeKey: embeddedWallet.jsBridgeKey });
10991
+ this.connector.connect({ jsBridgeKey: embeddedWallet.jsBridgeKey }, additionalRequest);
10990
10992
  } else {
10991
10993
  widgetController.openWalletsModal();
10992
10994
  }