@dynamic-labs/sdk-react-core 5.14.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 +28 -0
- package/package.cjs +3 -3
- package/package.js +3 -3
- package/package.json +14 -14
- 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/useSetWalletConnectorFetchers/useSetWalletConnectorFetchers.cjs +3 -0
- package/src/lib/utils/hooks/useSetWalletConnectorFetchers/useSetWalletConnectorFetchers.js +3 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,32 @@
|
|
|
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
|
+
|
|
2
30
|
## [5.14.0](https://github.com/dynamic-labs/dynamic-auth/compare/v5.13.0...v5.14.0) (2026-10-30)
|
|
3
31
|
|
|
4
32
|
|
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": {
|
|
@@ -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 };
|