@dynamic-labs/sdk-react-core 4.93.0 → 4.94.0
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 +19 -0
- package/package.cjs +1 -1
- package/package.js +1 -1
- package/package.json +12 -12
- package/src/lib/utils/hooks/useStepUpAuthentication/useStepUpMfa.cjs +3 -3
- package/src/lib/utils/hooks/useStepUpAuthentication/useStepUpMfa.js +3 -3
- package/src/lib/utils/hooks/useTokenBalances/utils.cjs +5 -2
- package/src/lib/utils/hooks/useTokenBalances/utils.js +5 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,23 @@
|
|
|
1
1
|
|
|
2
|
+
## [4.94.0](https://github.com/dynamic-labs/dynamic-auth/compare/v4.93.1...v4.94.0) (2026-07-24)
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
### Features
|
|
6
|
+
|
|
7
|
+
* **bitcoin:** add sendBitcoinWithConfirmation to show confirm modal on BTC sends ([#12023](https://github.com/dynamic-labs/dynamic-auth/issues/12023)) ([22a8b14](https://github.com/dynamic-labs/dynamic-auth/commit/22a8b14286b5612f37591ddba5507dd8f3c87cd3))
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
### Bug Fixes
|
|
11
|
+
|
|
12
|
+
* replace deprecated polygon-rpc.com RPC with polygon.drpc.org (v4) ([#12033](https://github.com/dynamic-labs/dynamic-auth/issues/12033)) ([d64623d](https://github.com/dynamic-labs/dynamic-auth/commit/d64623d89f63084eb0b040f4466f057b833b9293))
|
|
13
|
+
|
|
14
|
+
### [4.93.1](https://github.com/dynamic-labs/dynamic-auth/compare/v4.93.0...v4.93.1) (2026-07-22)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Bug Fixes
|
|
18
|
+
|
|
19
|
+
* **wallet-connect:** recover WalletConnect IndexedDB store when object store is missing ([#12048](https://github.com/dynamic-labs/dynamic-auth/issues/12048)) ([#12052](https://github.com/dynamic-labs/dynamic-auth/issues/12052)) ([48286d2](https://github.com/dynamic-labs/dynamic-auth/commit/48286d2beecb11ebe53489a25b83fbf73c9dd5f1))
|
|
20
|
+
|
|
2
21
|
## [4.93.0](https://github.com/dynamic-labs/dynamic-auth/compare/v4.92.4...v4.93.0) (2026-07-20)
|
|
3
22
|
|
|
4
23
|
|
package/package.cjs
CHANGED
package/package.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dynamic-labs/sdk-react-core",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.94.0",
|
|
4
4
|
"dependencies": {
|
|
5
5
|
"@dynamic-labs/sdk-api-core": "0.0.1082",
|
|
6
6
|
"@dynamic-labs-sdk/client": "1.20.0",
|
|
@@ -18,17 +18,17 @@
|
|
|
18
18
|
"react-i18next": "13.5.0",
|
|
19
19
|
"react-international-phone": "4.5.0",
|
|
20
20
|
"yup": "0.32.11",
|
|
21
|
-
"@dynamic-labs/assert-package-version": "4.
|
|
22
|
-
"@dynamic-labs/iconic": "4.
|
|
23
|
-
"@dynamic-labs/locale": "4.
|
|
24
|
-
"@dynamic-labs/logger": "4.
|
|
25
|
-
"@dynamic-labs/multi-wallet": "4.
|
|
26
|
-
"@dynamic-labs/rpc-providers": "4.
|
|
27
|
-
"@dynamic-labs/store": "4.
|
|
28
|
-
"@dynamic-labs/types": "4.
|
|
29
|
-
"@dynamic-labs/utils": "4.
|
|
30
|
-
"@dynamic-labs/wallet-book": "4.
|
|
31
|
-
"@dynamic-labs/wallet-connector-core": "4.
|
|
21
|
+
"@dynamic-labs/assert-package-version": "4.94.0",
|
|
22
|
+
"@dynamic-labs/iconic": "4.94.0",
|
|
23
|
+
"@dynamic-labs/locale": "4.94.0",
|
|
24
|
+
"@dynamic-labs/logger": "4.94.0",
|
|
25
|
+
"@dynamic-labs/multi-wallet": "4.94.0",
|
|
26
|
+
"@dynamic-labs/rpc-providers": "4.94.0",
|
|
27
|
+
"@dynamic-labs/store": "4.94.0",
|
|
28
|
+
"@dynamic-labs/types": "4.94.0",
|
|
29
|
+
"@dynamic-labs/utils": "4.94.0",
|
|
30
|
+
"@dynamic-labs/wallet-book": "4.94.0",
|
|
31
|
+
"@dynamic-labs/wallet-connector-core": "4.94.0",
|
|
32
32
|
"eventemitter3": "5.0.1"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
@@ -23,7 +23,7 @@ const useStepUpMfa = ({ stateActions }) => {
|
|
|
23
23
|
? error.message
|
|
24
24
|
: 'Failed to authenticate passkey for step-up authentication';
|
|
25
25
|
setError(errorMessage);
|
|
26
|
-
|
|
26
|
+
throw error;
|
|
27
27
|
}
|
|
28
28
|
}), [setError, setLoading, setSuccess]);
|
|
29
29
|
const verifyTotpMfa = React.useCallback((_b) => _tslib.__awaiter(void 0, [_b], void 0, function* ({ code, deviceId, requestedScopes, }) {
|
|
@@ -42,7 +42,7 @@ const useStepUpMfa = ({ stateActions }) => {
|
|
|
42
42
|
? error.message
|
|
43
43
|
: 'Failed to authenticate TOTP device for step-up authentication';
|
|
44
44
|
setError(errorMessage);
|
|
45
|
-
|
|
45
|
+
throw error;
|
|
46
46
|
}
|
|
47
47
|
}), [setError, setLoading, setSuccess]);
|
|
48
48
|
const verifyRecoveryCode = React.useCallback((_c) => _tslib.__awaiter(void 0, [_c], void 0, function* ({ code, requestedScopes, }) {
|
|
@@ -60,7 +60,7 @@ const useStepUpMfa = ({ stateActions }) => {
|
|
|
60
60
|
? error.message
|
|
61
61
|
: 'Failed to authenticate recovery code for step-up authentication';
|
|
62
62
|
setError(errorMessage);
|
|
63
|
-
|
|
63
|
+
throw error;
|
|
64
64
|
}
|
|
65
65
|
}), [setError, setLoading, setSuccess]);
|
|
66
66
|
return { verifyPasskeyMfa, verifyRecoveryCode, verifyTotpMfa };
|
|
@@ -19,7 +19,7 @@ const useStepUpMfa = ({ stateActions }) => {
|
|
|
19
19
|
? error.message
|
|
20
20
|
: 'Failed to authenticate passkey for step-up authentication';
|
|
21
21
|
setError(errorMessage);
|
|
22
|
-
|
|
22
|
+
throw error;
|
|
23
23
|
}
|
|
24
24
|
}), [setError, setLoading, setSuccess]);
|
|
25
25
|
const verifyTotpMfa = useCallback((_b) => __awaiter(void 0, [_b], void 0, function* ({ code, deviceId, requestedScopes, }) {
|
|
@@ -38,7 +38,7 @@ const useStepUpMfa = ({ stateActions }) => {
|
|
|
38
38
|
? error.message
|
|
39
39
|
: 'Failed to authenticate TOTP device for step-up authentication';
|
|
40
40
|
setError(errorMessage);
|
|
41
|
-
|
|
41
|
+
throw error;
|
|
42
42
|
}
|
|
43
43
|
}), [setError, setLoading, setSuccess]);
|
|
44
44
|
const verifyRecoveryCode = useCallback((_c) => __awaiter(void 0, [_c], void 0, function* ({ code, requestedScopes, }) {
|
|
@@ -56,7 +56,7 @@ const useStepUpMfa = ({ stateActions }) => {
|
|
|
56
56
|
? error.message
|
|
57
57
|
: 'Failed to authenticate recovery code for step-up authentication';
|
|
58
58
|
setError(errorMessage);
|
|
59
|
-
|
|
59
|
+
throw error;
|
|
60
60
|
}
|
|
61
61
|
}), [setError, setLoading, setSuccess]);
|
|
62
62
|
return { verifyPasskeyMfa, verifyRecoveryCode, verifyTotpMfa };
|
|
@@ -44,9 +44,12 @@ const convertStellarNetworkToNumeric = (networkId) => {
|
|
|
44
44
|
* Resolves the network ID for API requests, handling chain-specific conversions.
|
|
45
45
|
*/
|
|
46
46
|
const resolveNetworkIdForRequest = (chainName, networkId) => {
|
|
47
|
-
// Bitcoin
|
|
47
|
+
// Bitcoin requests require a network ID; use the connector's live network
|
|
48
|
+
// (1 mainnet, 2 testnet) so the id matches the per-network address, and
|
|
49
|
+
// fall back to mainnet when no network is resolved
|
|
48
50
|
if (chainName === sdkApiCore.ChainEnum.Btc) {
|
|
49
|
-
|
|
51
|
+
const numericBtcId = Number(networkId);
|
|
52
|
+
return isNaN(numericBtcId) ? 1 : numericBtcId;
|
|
50
53
|
}
|
|
51
54
|
if (chainName === sdkApiCore.ChainEnum.Stellar) {
|
|
52
55
|
return convertStellarNetworkToNumeric(networkId);
|
|
@@ -40,9 +40,12 @@ const convertStellarNetworkToNumeric = (networkId) => {
|
|
|
40
40
|
* Resolves the network ID for API requests, handling chain-specific conversions.
|
|
41
41
|
*/
|
|
42
42
|
const resolveNetworkIdForRequest = (chainName, networkId) => {
|
|
43
|
-
// Bitcoin
|
|
43
|
+
// Bitcoin requests require a network ID; use the connector's live network
|
|
44
|
+
// (1 mainnet, 2 testnet) so the id matches the per-network address, and
|
|
45
|
+
// fall back to mainnet when no network is resolved
|
|
44
46
|
if (chainName === ChainEnum.Btc) {
|
|
45
|
-
|
|
47
|
+
const numericBtcId = Number(networkId);
|
|
48
|
+
return isNaN(numericBtcId) ? 1 : numericBtcId;
|
|
46
49
|
}
|
|
47
50
|
if (chainName === ChainEnum.Stellar) {
|
|
48
51
|
return convertStellarNetworkToNumeric(networkId);
|