@web3auth/no-modal 10.0.1-beta.0 → 10.0.3

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.
@@ -145,7 +145,7 @@ const getWalletServicesAnalyticsProperties = walletServicesConfig => {
145
145
  ws_default_portfolio: walletServicesConfig === null || walletServicesConfig === void 0 || (_walletServicesConfig1 = walletServicesConfig.whiteLabel) === null || _walletServicesConfig1 === void 0 ? void 0 : _walletServicesConfig1.defaultPortfolio
146
146
  };
147
147
  };
148
- const sdkVersion = "10.0.1-beta.0";
148
+ const sdkVersion = "10.0.3";
149
149
  const getErrorAnalyticsProperties = error => {
150
150
  try {
151
151
  const code = error instanceof index.Web3AuthError ? error.code : error === null || error === void 0 ? void 0 : error.code;
@@ -133,6 +133,9 @@ class Web3AuthNoModal extends auth.SafeEventEmitter {
133
133
  this.initCachedConnectorAndChainId();
134
134
  this.initUIConfig(projectConfig);
135
135
  this.initWalletServicesConfig(projectConfig);
136
+ this.analytics.setGlobalProperties({
137
+ team_id: projectConfig.teamId
138
+ });
136
139
  trackData = this.getInitializationTrackData();
137
140
  // setup common JRPC provider
138
141
  await utils.withAbort(() => this.setupCommonJRPCProvider(), signal);
@@ -61,6 +61,7 @@ export interface LoginModalConfig {
61
61
  displayExternalWalletsCount?: boolean;
62
62
  }
63
63
  export interface ProjectConfig {
64
+ teamId: number;
64
65
  userDataIncludedInToken?: boolean;
65
66
  sessionTime?: number;
66
67
  enableKeyExport?: boolean;
@@ -145,7 +145,7 @@ const getWalletServicesAnalyticsProperties = walletServicesConfig => {
145
145
  ws_default_portfolio: walletServicesConfig === null || walletServicesConfig === void 0 || (_walletServicesConfig1 = walletServicesConfig.whiteLabel) === null || _walletServicesConfig1 === void 0 ? void 0 : _walletServicesConfig1.defaultPortfolio
146
146
  };
147
147
  };
148
- const sdkVersion = "10.0.1-beta.0";
148
+ const sdkVersion = "10.0.3";
149
149
  const getErrorAnalyticsProperties = error => {
150
150
  try {
151
151
  const code = error instanceof Web3AuthError ? error.code : error === null || error === void 0 ? void 0 : error.code;
@@ -129,6 +129,9 @@ class Web3AuthNoModal extends SafeEventEmitter {
129
129
  this.initCachedConnectorAndChainId();
130
130
  this.initUIConfig(projectConfig);
131
131
  this.initWalletServicesConfig(projectConfig);
132
+ this.analytics.setGlobalProperties({
133
+ team_id: projectConfig.teamId
134
+ });
132
135
  trackData = this.getInitializationTrackData();
133
136
 
134
137
  // setup common JRPC provider