@dynamic-labs/sdk-react-core 2.5.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.
package/CHANGELOG.md CHANGED
@@ -1,4 +1,11 @@
1
1
 
2
+ ### [2.5.1](https://github.com/dynamic-labs/DynamicAuth/compare/v2.5.0...v2.5.1) (2024-08-25)
3
+
4
+
5
+ ### Bug Fixes
6
+
7
+ * on mobile only check for connection state on the primary wallet ([#6705](https://github.com/dynamic-labs/DynamicAuth/issues/6705)) ([ac2bfe2](https://github.com/dynamic-labs/DynamicAuth/commit/ac2bfe224104da92ada2d57093d24e264a0e0993))
8
+
2
9
  ## [2.5.0](https://github.com/dynamic-labs/DynamicAuth/compare/v2.4.0...v2.5.0) (2024-08-22)
3
10
 
4
11
 
package/package.cjs CHANGED
@@ -3,7 +3,7 @@
3
3
 
4
4
  Object.defineProperty(exports, '__esModule', { value: true });
5
5
 
6
- var version = "2.5.0";
6
+ var version = "2.5.1";
7
7
  var dependencies = {
8
8
  "@dynamic-labs/sdk-api-core": "0.0.497",
9
9
  "@hcaptcha/react-hcaptcha": "1.4.4",
package/package.js CHANGED
@@ -1,5 +1,5 @@
1
1
  'use client'
2
- var version = "2.5.0";
2
+ var version = "2.5.1";
3
3
  var dependencies = {
4
4
  "@dynamic-labs/sdk-api-core": "0.0.497",
5
5
  "@hcaptcha/react-hcaptcha": "1.4.4",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dynamic-labs/sdk-react-core",
3
- "version": "2.5.0",
3
+ "version": "2.5.1",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/dynamic-labs/dynamic-auth.git",
@@ -17,18 +17,18 @@
17
17
  "react-i18next": "13.5.0",
18
18
  "yup": "0.32.11",
19
19
  "react-international-phone": "4.2.5",
20
- "@dynamic-labs/iconic": "2.5.0",
21
- "@dynamic-labs/logger": "2.5.0",
22
- "@dynamic-labs/multi-wallet": "2.5.0",
23
- "@dynamic-labs/rpc-provider-ethereum": "2.5.0",
24
- "@dynamic-labs/rpc-provider-solana": "2.5.0",
25
- "@dynamic-labs/rpc-providers": "2.5.0",
26
- "@dynamic-labs/store": "2.5.0",
27
- "@dynamic-labs/types": "2.5.0",
28
- "@dynamic-labs/utils": "2.5.0",
29
- "@dynamic-labs/viem-utils": "2.5.0",
30
- "@dynamic-labs/wallet-book": "2.5.0",
31
- "@dynamic-labs/wallet-connector-core": "2.5.0",
20
+ "@dynamic-labs/iconic": "2.5.1",
21
+ "@dynamic-labs/logger": "2.5.1",
22
+ "@dynamic-labs/multi-wallet": "2.5.1",
23
+ "@dynamic-labs/rpc-provider-ethereum": "2.5.1",
24
+ "@dynamic-labs/rpc-provider-solana": "2.5.1",
25
+ "@dynamic-labs/rpc-providers": "2.5.1",
26
+ "@dynamic-labs/store": "2.5.1",
27
+ "@dynamic-labs/types": "2.5.1",
28
+ "@dynamic-labs/utils": "2.5.1",
29
+ "@dynamic-labs/viem-utils": "2.5.1",
30
+ "@dynamic-labs/wallet-book": "2.5.1",
31
+ "@dynamic-labs/wallet-connector-core": "2.5.1",
32
32
  "eventemitter3": "5.0.1"
33
33
  },
34
34
  "devDependencies": {
@@ -0,0 +1,2 @@
1
+ export * from './resolveFetcher';
2
+ export * from './createReducer';
@@ -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
  })));