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