@dynamic-labs/sdk-react-core 2.4.0 → 2.5.1

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.
@@ -7,6 +7,7 @@ var _tslib = require('../../../../../_virtual/_tslib.cjs');
7
7
  var React = require('react');
8
8
  var walletConnectorCore = require('@dynamic-labs/wallet-connector-core');
9
9
  var walletBook = require('@dynamic-labs/wallet-book');
10
+ var utils = require('@dynamic-labs/utils');
10
11
  require('@dynamic-labs/sdk-api-core');
11
12
  require('../../../shared/logger.cjs');
12
13
  require('@dynamic-labs/iconic');
@@ -16,7 +17,6 @@ require('../../constants/colors.cjs');
16
17
  require('../../constants/values.cjs');
17
18
  require('../../../shared/utils/classes/storage/localStorage.cjs');
18
19
  require('@dynamic-labs/logger');
19
- require('@dynamic-labs/utils');
20
20
  var useThrottle = require('../../../shared/utils/hooks/useThrottle/useThrottle.cjs');
21
21
  require('../../../shared/consts/index.cjs');
22
22
  require('@dynamic-labs/multi-wallet');
@@ -41,7 +41,8 @@ const getConnectedWalletsMap = (wallets, walletBook$1, primaryWalletId) => _tsli
41
41
  const newMap = {};
42
42
  yield Promise.all(wallets
43
43
  .filter((wallet) => wallet.id === primaryWalletId ||
44
- walletBook.isWalletMethodSupported(walletBook.findWalletBookWallet(walletBook$1, wallet.key), 'getConnectedAccounts', getPlatformForConnector.getPlatformForConnector(wallet.connector)))
44
+ (!utils.isMobile() &&
45
+ walletBook.isWalletMethodSupported(walletBook.findWalletBookWallet(walletBook$1, wallet.key), 'getConnectedAccounts', getPlatformForConnector.getPlatformForConnector(wallet.connector))))
45
46
  .map((wallet) => _tslib.__awaiter(void 0, void 0, void 0, function* () {
46
47
  newMap[getWalletIdentifier.getWalletIdentifier(wallet)] = yield isWalletConnected.isWalletConnected(wallet);
47
48
  })));
@@ -3,6 +3,7 @@ import { __awaiter } from '../../../../../_virtual/_tslib.js';
3
3
  import { useState, useRef, useCallback, useEffect } from 'react';
4
4
  import { isSameAddress } from '@dynamic-labs/wallet-connector-core';
5
5
  import { isWalletMethodSupported, findWalletBookWallet } from '@dynamic-labs/wallet-book';
6
+ import { isMobile } from '@dynamic-labs/utils';
6
7
  import '@dynamic-labs/sdk-api-core';
7
8
  import '../../../shared/logger.js';
8
9
  import '@dynamic-labs/iconic';
@@ -12,7 +13,6 @@ import '../../constants/colors.js';
12
13
  import '../../constants/values.js';
13
14
  import '../../../shared/utils/classes/storage/localStorage.js';
14
15
  import '@dynamic-labs/logger';
15
- import '@dynamic-labs/utils';
16
16
  import { useThrottle } from '../../../shared/utils/hooks/useThrottle/useThrottle.js';
17
17
  import '../../../shared/consts/index.js';
18
18
  import '@dynamic-labs/multi-wallet';
@@ -37,7 +37,8 @@ const getConnectedWalletsMap = (wallets, walletBook, primaryWalletId) => __await
37
37
  const newMap = {};
38
38
  yield Promise.all(wallets
39
39
  .filter((wallet) => wallet.id === primaryWalletId ||
40
- isWalletMethodSupported(findWalletBookWallet(walletBook, wallet.key), 'getConnectedAccounts', getPlatformForConnector(wallet.connector)))
40
+ (!isMobile() &&
41
+ isWalletMethodSupported(findWalletBookWallet(walletBook, wallet.key), 'getConnectedAccounts', getPlatformForConnector(wallet.connector))))
41
42
  .map((wallet) => __awaiter(void 0, void 0, void 0, function* () {
42
43
  newMap[getWalletIdentifier(wallet)] = yield isWalletConnected(wallet);
43
44
  })));