@tonconnect/ui-react 0.0.10 → 0.0.11

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
@@ -11957,13 +11957,15 @@ class TonConnectUI {
11957
11957
  }
11958
11958
  connectWallet() {
11959
11959
  return __async(this, null, function* () {
11960
+ var _a;
11960
11961
  const walletsList = yield this.getWallets();
11961
11962
  const embeddedWallet = walletsList.find(
11962
11963
  (wallet) => "embedded" in wallet && wallet.embedded
11963
11964
  );
11964
11965
  if (embeddedWallet) {
11966
+ const additionalRequest = yield (_a = appState.getConnectParameters) == null ? void 0 : _a.call(appState);
11965
11967
  setLastSelectedWalletInfo(embeddedWallet);
11966
- this.connector.connect({ jsBridgeKey: embeddedWallet.jsBridgeKey });
11968
+ this.connector.connect({ jsBridgeKey: embeddedWallet.jsBridgeKey }, additionalRequest);
11967
11969
  } else {
11968
11970
  widgetController.openWalletsModal();
11969
11971
  }