@tonconnect/ui 2.0.12 → 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 { WalletInfoBase, WalletInfoInjectable, WalletInfoRemote, 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
 
@@ -91,7 +91,7 @@ interface UIPreferences {
91
91
  colorsSet?: Partial<Record<THEME, PartialColorsSet>>;
92
92
  }
93
93
 
94
- declare type UIWallet = WalletInfoBase & (Omit<WalletInfoInjectable, 'injected' | 'embedded'> | WalletInfoRemote);
94
+ declare type UIWallet = Omit<WalletInfoInjectable, 'injected' | 'embedded'> | WalletInfoRemote;
95
95
 
96
96
  /**
97
97
  * Add corrections to the default wallets list in the modal: add custom wallets and change wallets order.
@@ -157,6 +157,10 @@ interface TonConnectUiOptions {
157
157
  * Configuration for the wallets list in the connect wallet modal.
158
158
  */
159
159
  walletsListConfiguration?: WalletsListConfiguration;
160
+ /**
161
+ * Required features for wallets. If wallet doesn't support required features, it will be disabled.
162
+ */
163
+ walletsRequiredFeatures?: RequiredFeatures;
160
164
  /**
161
165
  * Configuration for action-period (e.g. sendTransaction) UI elements: modals and notifications and wallet behaviour (return strategy).
162
166
  */
@@ -327,6 +331,7 @@ declare class TonConnectUI {
327
331
  private systemThemeChangeUnsubscribe;
328
332
  private actionsConfiguration?;
329
333
  private readonly walletsList;
334
+ readonly walletsRequiredFeatures?: RequiredFeatures;
330
335
  private connectRequestParametersCallback?;
331
336
  /**
332
337
  * TonConnect instance.