@dynamic-labs/sdk-react-core 5.13.0 → 5.15.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 +38 -0
- package/package.cjs +3 -3
- package/package.js +3 -3
- package/package.json +14 -14
- package/src/index.cjs +2 -0
- package/src/index.d.ts +1 -0
- package/src/index.js +1 -0
- package/src/lib/store/utils/settingsUtils/settingsUtils.cjs +21 -2
- package/src/lib/store/utils/settingsUtils/settingsUtils.js +21 -2
- package/src/lib/styles/index.shadow.cjs +1 -1
- package/src/lib/styles/index.shadow.js +1 -1
- package/src/lib/utils/hooks/useAuthenticatePasskeyMFA/useAuthenticatePasskeyMFA.cjs +1 -4
- package/src/lib/utils/hooks/useAuthenticatePasskeyMFA/useAuthenticatePasskeyMFA.js +1 -4
- package/src/lib/utils/hooks/useMfa/useMfa.cjs +1 -7
- package/src/lib/utils/hooks/useMfa/useMfa.js +1 -7
- package/src/lib/utils/hooks/useSetWalletConnectorFetchers/useSetWalletConnectorFetchers.cjs +3 -0
- package/src/lib/utils/hooks/useSetWalletConnectorFetchers/useSetWalletConnectorFetchers.js +3 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,42 @@
|
|
|
1
1
|
|
|
2
|
+
## [5.15.0](https://github.com/dynamic-labs/dynamic-auth/compare/v5.14.0...v5.15.0) (2026-11-05)
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
### ⚠ BREAKING CHANGES
|
|
6
|
+
|
|
7
|
+
* **wallet-book:** the ExodusEvm connector export and the exodus,
|
|
8
|
+
exodusevm and exodussol wallet-book entries are removed
|
|
9
|
+
|
|
10
|
+
### Features
|
|
11
|
+
|
|
12
|
+
* **tron:** support MetaMask via @metamask/connect-tron adapter ([#12671](https://github.com/dynamic-labs/dynamic-auth/issues/12671)) ([9b5bd65](https://github.com/dynamic-labs/dynamic-auth/commit/9b5bd65e51a0827fc06521804301fb4334698db5))
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
### Bug Fixes
|
|
16
|
+
|
|
17
|
+
* **deps:** bump joi to 17.13.9 for GHSA-4528-x5fx-h6hg ([#12685](https://github.com/dynamic-labs/dynamic-auth/issues/12685)) ([4b48f61](https://github.com/dynamic-labs/dynamic-auth/commit/4b48f6161cfac51820f3c3eb243bdaeedfdb974c))
|
|
18
|
+
* **deps:** override decode-uri-component to 0.5.1 for GHSA-qr28-fpjm-wq7f ([#12674](https://github.com/dynamic-labs/dynamic-auth/issues/12674)) ([5679fbe](https://github.com/dynamic-labs/dynamic-auth/commit/5679fbe96bef807b044d2af55cbef4583263e34a)), closes [#1203](https://github.com/dynamic-labs/dynamic-auth/issues/1203) [#1205](https://github.com/dynamic-labs/dynamic-auth/issues/1205) [#1206](https://github.com/dynamic-labs/dynamic-auth/issues/1206) [#1173](https://github.com/dynamic-labs/dynamic-auth/issues/1173) [#1176](https://github.com/dynamic-labs/dynamic-auth/issues/1176) [#1114](https://github.com/dynamic-labs/dynamic-auth/issues/1114) [#1115](https://github.com/dynamic-labs/dynamic-auth/issues/1115) [#12645](https://github.com/dynamic-labs/dynamic-auth/issues/12645)
|
|
19
|
+
* **iconic:** add Zerion wallet icon ([#12650](https://github.com/dynamic-labs/dynamic-auth/issues/12650)) ([578615c](https://github.com/dynamic-labs/dynamic-auth/commit/578615cc81245295624833ce307ade1c1630d9f7))
|
|
20
|
+
* **sdk-react-core:** default wallet return redirectUrl to current page ([#12659](https://github.com/dynamic-labs/dynamic-auth/issues/12659)) ([c41c9ef](https://github.com/dynamic-labs/dynamic-auth/commit/c41c9ef639ebcc505425d5f7014d695189d02835))
|
|
21
|
+
* **sdk-react-core:** scroll the whole modal box on the collect user data screen ([#12698](https://github.com/dynamic-labs/dynamic-auth/issues/12698)) ([6bafd1f](https://github.com/dynamic-labs/dynamic-auth/commit/6bafd1ff4732b8f9ae8f16622331b9b080300107))
|
|
22
|
+
* **waas-svm:** keep the blockhash of a transaction another key already signed ([#12676](https://github.com/dynamic-labs/dynamic-auth/issues/12676)) ([74bf588](https://github.com/dynamic-labs/dynamic-auth/commit/74bf588ae72a24f7951451ef791a3eebe6f5baf4))
|
|
23
|
+
* **waas:** wire elevated access token provider on all WaaS connectors ([#12711](https://github.com/dynamic-labs/dynamic-auth/issues/12711)) ([1c343be](https://github.com/dynamic-labs/dynamic-auth/commit/1c343bee5b6e04219be513e24afb16d5ac652723))
|
|
24
|
+
* **wallet-book:** restore Magic Eden WalletConnect connect flow on mobile ([#12657](https://github.com/dynamic-labs/dynamic-auth/issues/12657)) ([740026a](https://github.com/dynamic-labs/dynamic-auth/commit/740026a6637f441049678e563d36ffdac5e61e8b))
|
|
25
|
+
* **wallet-book:** use Backpack's ul/v1/browse link for the in-app browser ([#12702](https://github.com/dynamic-labs/dynamic-auth/issues/12702)) ([99f8e95](https://github.com/dynamic-labs/dynamic-auth/commit/99f8e956a51baccba3616a76104ab9fba2545847)), closes [#12053](https://github.com/dynamic-labs/dynamic-auth/issues/12053)
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
* **wallet-book:** drop Exodus wallets ([#12664](https://github.com/dynamic-labs/dynamic-auth/issues/12664)) ([e3c850f](https://github.com/dynamic-labs/dynamic-auth/commit/e3c850fefb8db92bcd2706fb9b58f92e4a536533))
|
|
29
|
+
|
|
30
|
+
## [5.14.0](https://github.com/dynamic-labs/dynamic-auth/compare/v5.13.0...v5.14.0) (2026-10-30)
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
### Features
|
|
34
|
+
|
|
35
|
+
* **bitcoin:** add allowedWitnessScripts to embedded wallet signPsbt ([#12575](https://github.com/dynamic-labs/dynamic-auth/issues/12575)) ([e7709bc](https://github.com/dynamic-labs/dynamic-auth/commit/e7709bc226bc78caa8c7aaae9b25858ca689176e)), closes [#1647](https://github.com/dynamic-labs/dynamic-auth/issues/1647) [#1648](https://github.com/dynamic-labs/dynamic-auth/issues/1648)
|
|
36
|
+
* **legacy-embedded-wallet-migration:** offer passkey recovery when export fails in upgrade flow ([#12640](https://github.com/dynamic-labs/dynamic-auth/issues/12640)) ([eda1d1a](https://github.com/dynamic-labs/dynamic-auth/commit/eda1d1a24f40c5850ae3ffd8049b4a9df45d489e))
|
|
37
|
+
* **webview:** forward policiesConsentLabels manifest field to SDK settings ([#12607](https://github.com/dynamic-labs/dynamic-auth/issues/12607)) ([ce3a9a0](https://github.com/dynamic-labs/dynamic-auth/commit/ce3a9a0840bd80c18401a94cd175c89ade5cc7cc))
|
|
38
|
+
|
|
39
|
+
|
|
2
40
|
## [5.13.0](https://github.com/dynamic-labs/dynamic-auth/compare/v5.12.4...v5.13.0) (2026-10-27)
|
|
3
41
|
|
|
4
42
|
|
package/package.cjs
CHANGED
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
|
|
4
4
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
5
5
|
|
|
6
|
-
var version = "5.
|
|
6
|
+
var version = "5.15.0";
|
|
7
7
|
var dependencies = {
|
|
8
|
-
"@dynamic-labs/sdk-api-core": "0.
|
|
9
|
-
"@dynamic-labs-sdk/client": "1.
|
|
8
|
+
"@dynamic-labs/sdk-api-core": "0.142.0",
|
|
9
|
+
"@dynamic-labs-sdk/client": "1.48.0",
|
|
10
10
|
"@dynamic-labs-wallet/browser-wallet-client": "1.1.49",
|
|
11
11
|
"@dynamic-labs-wallet/core": "1.1.49",
|
|
12
12
|
"@dynamic-labs-wallet/forward-mpc-client": "1.0.2",
|
package/package.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use client'
|
|
2
|
-
var version = "5.
|
|
2
|
+
var version = "5.15.0";
|
|
3
3
|
var dependencies = {
|
|
4
|
-
"@dynamic-labs/sdk-api-core": "0.
|
|
5
|
-
"@dynamic-labs-sdk/client": "1.
|
|
4
|
+
"@dynamic-labs/sdk-api-core": "0.142.0",
|
|
5
|
+
"@dynamic-labs-sdk/client": "1.48.0",
|
|
6
6
|
"@dynamic-labs-wallet/browser-wallet-client": "1.1.49",
|
|
7
7
|
"@dynamic-labs-wallet/core": "1.1.49",
|
|
8
8
|
"@dynamic-labs-wallet/forward-mpc-client": "1.0.2",
|
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dynamic-labs/sdk-react-core",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.15.0",
|
|
4
4
|
"dependencies": {
|
|
5
|
-
"@dynamic-labs/sdk-api-core": "0.
|
|
6
|
-
"@dynamic-labs-sdk/client": "1.
|
|
5
|
+
"@dynamic-labs/sdk-api-core": "0.142.0",
|
|
6
|
+
"@dynamic-labs-sdk/client": "1.48.0",
|
|
7
7
|
"@dynamic-labs-wallet/browser-wallet-client": "1.1.49",
|
|
8
8
|
"@dynamic-labs-wallet/core": "1.1.49",
|
|
9
9
|
"@dynamic-labs-wallet/forward-mpc-client": "1.0.2",
|
|
@@ -19,17 +19,17 @@
|
|
|
19
19
|
"react-i18next": "13.5.0",
|
|
20
20
|
"react-international-phone": "4.5.0",
|
|
21
21
|
"yup": "0.32.11",
|
|
22
|
-
"@dynamic-labs/assert-package-version": "5.
|
|
23
|
-
"@dynamic-labs/iconic": "5.
|
|
24
|
-
"@dynamic-labs/locale": "5.
|
|
25
|
-
"@dynamic-labs/logger": "5.
|
|
26
|
-
"@dynamic-labs/multi-wallet": "5.
|
|
27
|
-
"@dynamic-labs/rpc-providers": "5.
|
|
28
|
-
"@dynamic-labs/store": "5.
|
|
29
|
-
"@dynamic-labs/types": "5.
|
|
30
|
-
"@dynamic-labs/utils": "5.
|
|
31
|
-
"@dynamic-labs/wallet-book": "5.
|
|
32
|
-
"@dynamic-labs/wallet-connector-core": "5.
|
|
22
|
+
"@dynamic-labs/assert-package-version": "5.15.0",
|
|
23
|
+
"@dynamic-labs/iconic": "5.15.0",
|
|
24
|
+
"@dynamic-labs/locale": "5.15.0",
|
|
25
|
+
"@dynamic-labs/logger": "5.15.0",
|
|
26
|
+
"@dynamic-labs/multi-wallet": "5.15.0",
|
|
27
|
+
"@dynamic-labs/rpc-providers": "5.15.0",
|
|
28
|
+
"@dynamic-labs/store": "5.15.0",
|
|
29
|
+
"@dynamic-labs/types": "5.15.0",
|
|
30
|
+
"@dynamic-labs/utils": "5.15.0",
|
|
31
|
+
"@dynamic-labs/wallet-book": "5.15.0",
|
|
32
|
+
"@dynamic-labs/wallet-connector-core": "5.15.0",
|
|
33
33
|
"eventemitter3": "5.0.1"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
package/src/index.cjs
CHANGED
|
@@ -122,6 +122,7 @@ require('./lib/context/WalletContext/WalletContext.cjs');
|
|
|
122
122
|
require('./lib/context/CaptchaContext/CaptchaContext.cjs');
|
|
123
123
|
var DynamicWidgetContext = require('./lib/widgets/DynamicWidget/context/DynamicWidgetContext.cjs');
|
|
124
124
|
require('./lib/components/IconButton/IconButton.cjs');
|
|
125
|
+
var getProperErrorMessage = require('./lib/modals/SignMessageConfirmationModal/getProperErrorMessage.cjs');
|
|
125
126
|
var useWalletDelegation = require('./lib/utils/hooks/useWalletDelegation/useWalletDelegation.cjs');
|
|
126
127
|
var DelegationError = require('./lib/utils/hooks/useWalletDelegation/DelegationError.cjs');
|
|
127
128
|
var useSmartWallets = require('./lib/utils/hooks/useSmartWallets/useSmartWallets.cjs');
|
|
@@ -302,6 +303,7 @@ exports.ShadowDOM = ShadowDOM.ShadowDOM;
|
|
|
302
303
|
exports.useStepUpAuthentication = useStepUpAuthentication.useStepUpAuthentication;
|
|
303
304
|
exports.useMultiWalletPromptState = useMultiWalletPromptState.useMultiWalletPromptState;
|
|
304
305
|
exports.DynamicWidgetContextProvider = DynamicWidgetContext.DynamicWidgetContextProvider;
|
|
306
|
+
exports.getProperErrorMessage = getProperErrorMessage.getProperErrorMessage;
|
|
305
307
|
exports.useWalletDelegation = useWalletDelegation.useWalletDelegation;
|
|
306
308
|
exports.DelegationError = DelegationError.DelegationError;
|
|
307
309
|
exports.useSmartWallets = useSmartWallets.useSmartWallets;
|
package/src/index.d.ts
CHANGED
|
@@ -151,5 +151,6 @@ export { usingV3Wallets } from './lib/utils/functions/usingV3Wallets/usingV3Wall
|
|
|
151
151
|
export { useSyncMfaFlow } from './lib/utils/hooks/useSyncMfaFlow';
|
|
152
152
|
export { useSignInWithPasskey } from './lib/utils/hooks/useSignInWithPasskey';
|
|
153
153
|
export { createCryptoDotComPayment } from './lib/utils/functions/createCryptoDotComPayment';
|
|
154
|
+
export { getProperErrorMessage } from './lib/modals/SignMessageConfirmationModal/getProperErrorMessage';
|
|
154
155
|
export { isLegacyMigrationProviderMounted, setLegacyMigrationProviderMounted, } from './lib/utils/legacyMigrationProviderRegistry';
|
|
155
156
|
export { useRegisterLegacyMigrationUI } from './lib/utils/hooks/useRegisterLegacyMigrationUI';
|
package/src/index.js
CHANGED
|
@@ -118,6 +118,7 @@ import './lib/context/WalletContext/WalletContext.js';
|
|
|
118
118
|
import './lib/context/CaptchaContext/CaptchaContext.js';
|
|
119
119
|
export { DynamicWidgetContextProvider } from './lib/widgets/DynamicWidget/context/DynamicWidgetContext.js';
|
|
120
120
|
import './lib/components/IconButton/IconButton.js';
|
|
121
|
+
export { getProperErrorMessage } from './lib/modals/SignMessageConfirmationModal/getProperErrorMessage.js';
|
|
121
122
|
export { useWalletDelegation } from './lib/utils/hooks/useWalletDelegation/useWalletDelegation.js';
|
|
122
123
|
export { DelegationError } from './lib/utils/hooks/useWalletDelegation/DelegationError.js';
|
|
123
124
|
export { useSmartWallets } from './lib/utils/hooks/useSmartWallets/useSmartWallets.js';
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
|
|
4
4
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
5
5
|
|
|
6
|
+
var React = require('react');
|
|
6
7
|
require('@dynamic-labs-sdk/client/core');
|
|
7
8
|
require('@dynamic-labs/sdk-api-core');
|
|
8
|
-
require('react');
|
|
9
9
|
require('eventemitter3');
|
|
10
10
|
require('@dynamic-labs/utils');
|
|
11
11
|
require('@dynamic-labs-sdk/client');
|
|
@@ -16,6 +16,7 @@ require('react/jsx-runtime');
|
|
|
16
16
|
require('../../../context/ViewContext/ViewContext.cjs');
|
|
17
17
|
require('../../../shared/logger.cjs');
|
|
18
18
|
require('@dynamic-labs/wallet-book');
|
|
19
|
+
var isSSR = require('../../../shared/utils/functions/isSSR/isSSR.cjs');
|
|
19
20
|
require('../../../utils/constants/colors.cjs');
|
|
20
21
|
require('../../../utils/constants/values.cjs');
|
|
21
22
|
require('../../../shared/consts/index.cjs');
|
|
@@ -39,7 +40,25 @@ const useDynamicSettingsValue = (projectSettingName, dynamicSettingName) => {
|
|
|
39
40
|
return ((_a = projectSettings === null || projectSettings === void 0 ? void 0 : projectSettings.general[projectSettingName]) !== null && _a !== void 0 ? _a : dynamicSettings[dynamicSettingName]);
|
|
40
41
|
};
|
|
41
42
|
const useAppName = () => useDynamicSettingsValue('displayName', 'appName');
|
|
42
|
-
|
|
43
|
+
// Mobile wallets that connect via deeplink (e.g. Backpack over WalletConnect)
|
|
44
|
+
// return the user through the redirect metadata/deeplink param built from this
|
|
45
|
+
// value. With no explicit redirectUrl there is nothing to return through, so
|
|
46
|
+
// the wallet falls back to opening the dapp in the system browser. Defaulting
|
|
47
|
+
// to the current page keeps the return inside the dapp. `||` is intentional:
|
|
48
|
+
// an empty redirectUrl is meaningless to wallets and should fall back too. The
|
|
49
|
+
// fallback strips query and fragment so ambient credentials in the URL (e.g.
|
|
50
|
+
// auth tokens) are never handed to the wallet as return metadata. The fallback
|
|
51
|
+
// is captured once via a lazy useState initializer rather than derived on every
|
|
52
|
+
// render: client-side navigation changes the pathname, and redirectUrl feeds
|
|
53
|
+
// the walletConnectorOptions memo — a changing value would rebuild every
|
|
54
|
+
// wallet connector mid-session and drop imperatively-set providers (e.g. the
|
|
55
|
+
// waas password provider).
|
|
56
|
+
const useRedirectUrl = () => {
|
|
57
|
+
const [locationFallback] = React.useState(() => isSSR.isSSR()
|
|
58
|
+
? undefined
|
|
59
|
+
: `${window.location.origin}${window.location.pathname}`);
|
|
60
|
+
return dynamicContextProps.useDynamicSettings().redirectUrl || locationFallback;
|
|
61
|
+
};
|
|
43
62
|
|
|
44
63
|
exports.useAppName = useAppName;
|
|
45
64
|
exports.useRedirectUrl = useRedirectUrl;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use client'
|
|
2
|
+
import { useState } from 'react';
|
|
2
3
|
import '@dynamic-labs-sdk/client/core';
|
|
3
4
|
import '@dynamic-labs/sdk-api-core';
|
|
4
|
-
import 'react';
|
|
5
5
|
import 'eventemitter3';
|
|
6
6
|
import '@dynamic-labs/utils';
|
|
7
7
|
import '@dynamic-labs-sdk/client';
|
|
@@ -12,6 +12,7 @@ import 'react/jsx-runtime';
|
|
|
12
12
|
import '../../../context/ViewContext/ViewContext.js';
|
|
13
13
|
import '../../../shared/logger.js';
|
|
14
14
|
import '@dynamic-labs/wallet-book';
|
|
15
|
+
import { isSSR } from '../../../shared/utils/functions/isSSR/isSSR.js';
|
|
15
16
|
import '../../../utils/constants/colors.js';
|
|
16
17
|
import '../../../utils/constants/values.js';
|
|
17
18
|
import '../../../shared/consts/index.js';
|
|
@@ -35,6 +36,24 @@ const useDynamicSettingsValue = (projectSettingName, dynamicSettingName) => {
|
|
|
35
36
|
return ((_a = projectSettings === null || projectSettings === void 0 ? void 0 : projectSettings.general[projectSettingName]) !== null && _a !== void 0 ? _a : dynamicSettings[dynamicSettingName]);
|
|
36
37
|
};
|
|
37
38
|
const useAppName = () => useDynamicSettingsValue('displayName', 'appName');
|
|
38
|
-
|
|
39
|
+
// Mobile wallets that connect via deeplink (e.g. Backpack over WalletConnect)
|
|
40
|
+
// return the user through the redirect metadata/deeplink param built from this
|
|
41
|
+
// value. With no explicit redirectUrl there is nothing to return through, so
|
|
42
|
+
// the wallet falls back to opening the dapp in the system browser. Defaulting
|
|
43
|
+
// to the current page keeps the return inside the dapp. `||` is intentional:
|
|
44
|
+
// an empty redirectUrl is meaningless to wallets and should fall back too. The
|
|
45
|
+
// fallback strips query and fragment so ambient credentials in the URL (e.g.
|
|
46
|
+
// auth tokens) are never handed to the wallet as return metadata. The fallback
|
|
47
|
+
// is captured once via a lazy useState initializer rather than derived on every
|
|
48
|
+
// render: client-side navigation changes the pathname, and redirectUrl feeds
|
|
49
|
+
// the walletConnectorOptions memo — a changing value would rebuild every
|
|
50
|
+
// wallet connector mid-session and drop imperatively-set providers (e.g. the
|
|
51
|
+
// waas password provider).
|
|
52
|
+
const useRedirectUrl = () => {
|
|
53
|
+
const [locationFallback] = useState(() => isSSR()
|
|
54
|
+
? undefined
|
|
55
|
+
: `${window.location.origin}${window.location.pathname}`);
|
|
56
|
+
return useDynamicSettings().redirectUrl || locationFallback;
|
|
57
|
+
};
|
|
39
58
|
|
|
40
59
|
export { useAppName, useRedirectUrl };
|