@web3auth/no-modal 10.5.1 → 10.5.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.5.
|
|
148
|
+
const sdkVersion = "10.5.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;
|
package/dist/lib.cjs/noModal.js
CHANGED
|
@@ -136,6 +136,7 @@ class Web3AuthNoModal extends auth.SafeEventEmitter {
|
|
|
136
136
|
this.initCachedConnectorAndChainId();
|
|
137
137
|
this.initUIConfig(projectConfig);
|
|
138
138
|
this.initWalletServicesConfig(projectConfig);
|
|
139
|
+
this.initSessionTimeConfig(projectConfig);
|
|
139
140
|
this.analytics.setGlobalProperties({
|
|
140
141
|
team_id: projectConfig.teamId
|
|
141
142
|
});
|
|
@@ -474,6 +475,10 @@ class Web3AuthNoModal extends auth.SafeEventEmitter {
|
|
|
474
475
|
uxMode: auth.UX_MODE.POPUP
|
|
475
476
|
}, auth.cloneDeep(projectConfig.whitelabel || {}), this.coreOptions.uiConfig || {}]);
|
|
476
477
|
}
|
|
478
|
+
initSessionTimeConfig(projectConfig) {
|
|
479
|
+
if (this.coreOptions.sessionTime) return;
|
|
480
|
+
if (projectConfig.sessionTime) this.coreOptions.sessionTime = projectConfig.sessionTime;
|
|
481
|
+
}
|
|
477
482
|
initCachedConnectorAndChainId() {
|
|
478
483
|
// init chainId using cached chainId if it exists and is valid, otherwise use the defaultChainId or the first chain
|
|
479
484
|
const cachedChainId = this.state.currentChainId;
|
|
@@ -49,6 +49,7 @@ export declare class Web3AuthNoModal extends SafeEventEmitter<Web3AuthNoModalEve
|
|
|
49
49
|
protected initChainsConfig(projectConfig: ProjectConfig): void;
|
|
50
50
|
protected initAccountAbstractionConfig(projectConfig?: ProjectConfig): void;
|
|
51
51
|
protected initUIConfig(projectConfig: ProjectConfig): void;
|
|
52
|
+
protected initSessionTimeConfig(projectConfig: ProjectConfig): void;
|
|
52
53
|
protected initCachedConnectorAndChainId(): void;
|
|
53
54
|
protected initWalletServicesConfig(projectConfig: ProjectConfig): void;
|
|
54
55
|
protected getInitializationTrackData(): {};
|
|
@@ -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.5.
|
|
148
|
+
const sdkVersion = "10.5.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;
|
package/dist/lib.esm/noModal.js
CHANGED
|
@@ -132,6 +132,7 @@ class Web3AuthNoModal extends SafeEventEmitter {
|
|
|
132
132
|
this.initCachedConnectorAndChainId();
|
|
133
133
|
this.initUIConfig(projectConfig);
|
|
134
134
|
this.initWalletServicesConfig(projectConfig);
|
|
135
|
+
this.initSessionTimeConfig(projectConfig);
|
|
135
136
|
this.analytics.setGlobalProperties({
|
|
136
137
|
team_id: projectConfig.teamId
|
|
137
138
|
});
|
|
@@ -483,6 +484,10 @@ class Web3AuthNoModal extends SafeEventEmitter {
|
|
|
483
484
|
uxMode: UX_MODE.POPUP
|
|
484
485
|
}, cloneDeep(projectConfig.whitelabel || {}), this.coreOptions.uiConfig || {}]);
|
|
485
486
|
}
|
|
487
|
+
initSessionTimeConfig(projectConfig) {
|
|
488
|
+
if (this.coreOptions.sessionTime) return;
|
|
489
|
+
if (projectConfig.sessionTime) this.coreOptions.sessionTime = projectConfig.sessionTime;
|
|
490
|
+
}
|
|
486
491
|
initCachedConnectorAndChainId() {
|
|
487
492
|
// init chainId using cached chainId if it exists and is valid, otherwise use the defaultChainId or the first chain
|
|
488
493
|
const cachedChainId = this.state.currentChainId;
|