@web3auth/modal 10.5.3 → 10.5.4

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.
@@ -2,7 +2,7 @@
2
2
 
3
3
  var noModal = require('@web3auth/no-modal');
4
4
 
5
- const version = "10.5.3";
5
+ const version = "10.5.4";
6
6
  const defaultConnectorsModalConfig = {
7
7
  hideWalletDiscovery: false,
8
8
  connectors: {
@@ -317,7 +317,8 @@ class LoginModal {
317
317
  this.setState({
318
318
  status: interfaces.MODAL_STATUS.CONNECTED,
319
319
  modalVisibility: true,
320
- postLoadingMessage: "modal.post-loading.connected"
320
+ postLoadingMessage: "modal.post-loading.connected",
321
+ currentPage: constants.PAGES.LOGIN
321
322
  });
322
323
  } else {
323
324
  this.setState({
@@ -1,6 +1,6 @@
1
1
  import { EVM_CONNECTORS } from '@web3auth/no-modal';
2
2
 
3
- const version = "10.5.3";
3
+ const version = "10.5.4";
4
4
  const defaultConnectorsModalConfig = {
5
5
  hideWalletDiscovery: false,
6
6
  connectors: {
@@ -8,7 +8,7 @@ import Bowser from 'bowser';
8
8
  import { createRoot } from 'react-dom/client';
9
9
  import { getLoginModalAnalyticsProperties } from '../utils.js';
10
10
  import Widget from './components/Widget/Widget.js';
11
- import { DEFAULT_PRIMARY_COLOR, DEFAULT_ON_PRIMARY_COLOR, DEFAULT_LOGO_DARK, DEFAULT_LOGO_LIGHT } from './constants.js';
11
+ import { DEFAULT_PRIMARY_COLOR, DEFAULT_ON_PRIMARY_COLOR, PAGES, DEFAULT_LOGO_DARK, DEFAULT_LOGO_LIGHT } from './constants.js';
12
12
  import { AnalyticsContext } from './context/AnalyticsContext.js';
13
13
  import { ThemedContext } from './context/ThemeContext.js';
14
14
  import { MODAL_STATUS } from './interfaces.js';
@@ -318,7 +318,8 @@ class LoginModal {
318
318
  this.setState({
319
319
  status: MODAL_STATUS.CONNECTED,
320
320
  modalVisibility: true,
321
- postLoadingMessage: "modal.post-loading.connected"
321
+ postLoadingMessage: "modal.post-loading.connected",
322
+ currentPage: PAGES.LOGIN
322
323
  });
323
324
  } else {
324
325
  this.setState({