@tonconnect/ui 2.4.0-beta.5 → 2.4.0-beta.6

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, RequiredFeatures, VersionEvent, ConnectionEvent, ConnectionRestoringEvent, DisconnectionEvent, TransactionSigningEvent, DataSigningEvent, WalletModalOpenedEvent, SelectedWalletEvent, EventDispatcher, SdkActionEvent, ITonConnect, WalletInfoBase, Wallet, OptionalTraceable, FeatureName, WalletInfo, Account, ConnectAdditionalRequest, ChainId, TonConnectError, SendTransactionRequest, SendTransactionResponse, SignDataPayload, SignDataResponse } from '@tonconnect/sdk';
1
+ import { WalletInfoInjectable, WalletInfoRemote, RequiredFeatures, AnalyticsSettings, VersionEvent, ConnectionEvent, ConnectionRestoringEvent, DisconnectionEvent, TransactionSigningEvent, DataSigningEvent, WalletModalOpenedEvent, SelectedWalletEvent, EventDispatcher, SdkActionEvent, ITonConnect, WalletInfoBase, Wallet, OptionalTraceable, FeatureName, WalletInfo, Account, ConnectAdditionalRequest, ChainId, TonConnectError, SendTransactionRequest, SendTransactionResponse, SignDataPayload, SignDataResponse } from '@tonconnect/sdk';
2
2
  export * from '@tonconnect/sdk';
3
3
  import { Property } from 'csstype';
4
4
 
@@ -174,6 +174,10 @@ interface TonConnectUiOptions {
174
174
  * @default true
175
175
  */
176
176
  enableAndroidBackHandler?: boolean;
177
+ /**
178
+ * Analytics configuration forwarded to the underlying TonConnect SDK instance.
179
+ */
180
+ analytics?: AnalyticsSettings;
177
181
  }
178
182
 
179
183
  /**
package/lib/index.mjs CHANGED
@@ -12783,7 +12783,7 @@ class TonConnectUITracker {
12783
12783
  }
12784
12784
  }
12785
12785
  }
12786
- const tonConnectUiVersion = "2.4.0-beta.5";
12786
+ const tonConnectUiVersion = "2.4.0-beta.6";
12787
12787
  class TonConnectEnvironment {
12788
12788
  constructor() {
12789
12789
  this.userAgent = getUserAgent();
@@ -12824,7 +12824,8 @@ class TonConnectUI {
12824
12824
  manifestUrl: options.manifestUrl,
12825
12825
  eventDispatcher,
12826
12826
  walletsRequiredFeatures: options.walletsRequiredFeatures,
12827
- environment: new TonConnectEnvironment()
12827
+ environment: new TonConnectEnvironment(),
12828
+ analytics: options.analytics
12828
12829
  });
12829
12830
  } else {
12830
12831
  throw new TonConnectUIError(