@tonconnect/ui 2.0.13-beta.0 → 2.1.0

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.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { WalletInfoInjectable, WalletInfoRemote, RequireFeature, Feature, VersionEvent, ConnectionEvent, ConnectionRestoringEvent, DisconnectionEvent, TransactionSigningEvent, ITonConnect, EventDispatcher, SdkActionEvent, Wallet, WalletInfo, Account, ConnectAdditionalRequest, TonConnectError, SendTransactionRequest, SendTransactionResponse } from '@tonconnect/sdk';
1
+ import { WalletInfoInjectable, WalletInfoRemote, RequiredFeatures, VersionEvent, ConnectionEvent, ConnectionRestoringEvent, DisconnectionEvent, TransactionSigningEvent, ITonConnect, EventDispatcher, SdkActionEvent, Wallet, WalletInfo, Account, ConnectAdditionalRequest, TonConnectError, SendTransactionRequest, SendTransactionResponse } from '@tonconnect/sdk';
2
2
  export * from '@tonconnect/sdk';
3
3
  import { Property } from 'csstype';
4
4
 
@@ -160,7 +160,7 @@ interface TonConnectUiOptions {
160
160
  /**
161
161
  * Required features for wallets. If wallet doesn't support required features, it will be disabled.
162
162
  */
163
- walletsRequiredFeatures?: RequireFeature[] | ((features: Feature[]) => boolean);
163
+ walletsRequiredFeatures?: RequiredFeatures;
164
164
  /**
165
165
  * Configuration for action-period (e.g. sendTransaction) UI elements: modals and notifications and wallet behaviour (return strategy).
166
166
  */
@@ -331,7 +331,7 @@ declare class TonConnectUI {
331
331
  private systemThemeChangeUnsubscribe;
332
332
  private actionsConfiguration?;
333
333
  private readonly walletsList;
334
- readonly walletsRequiredFeatures?: RequireFeature[] | ((features: Feature[]) => boolean);
334
+ readonly walletsRequiredFeatures?: RequiredFeatures;
335
335
  private connectRequestParametersCallback?;
336
336
  /**
337
337
  * TonConnect instance.
package/lib/index.mjs CHANGED
@@ -11507,7 +11507,7 @@ class TonConnectUITracker {
11507
11507
  }
11508
11508
  }
11509
11509
  }
11510
- const tonConnectUiVersion = "2.0.13-beta.0";
11510
+ const tonConnectUiVersion = "2.1.0";
11511
11511
  class TonConnectUI {
11512
11512
  constructor(options) {
11513
11513
  __publicField(this, "walletInfoStorage", new WalletInfoStorage());