@dynamic-labs/sdk-react-core 4.53.1 → 4.53.2
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 +16 -0
- package/package.cjs +3 -3
- package/package.js +3 -3
- package/package.json +14 -14
- package/src/lib/utils/hooks/useWalletOptions/useWalletOptions.cjs +9 -3
- package/src/lib/utils/hooks/useWalletOptions/useWalletOptions.d.ts +2 -2
- package/src/lib/utils/hooks/useWalletOptions/useWalletOptions.js +9 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,20 @@
|
|
|
1
1
|
|
|
2
|
+
### [4.53.2](https://github.com/dynamic-labs/dynamic-auth/compare/v4.53.1...v4.53.2) (2026-01-16)
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
### Features
|
|
6
|
+
|
|
7
|
+
* add iCloud backup functionality ([#10219](https://github.com/dynamic-labs/dynamic-auth/issues/10219)) ([44e95e5](https://github.com/dynamic-labs/dynamic-auth/commit/44e95e5a5dc99f83918a382ab1c69d452359c346))
|
|
8
|
+
* update PSBT building with Largest-First UTXO selection and fee priorities (high/medium/low) ([#10227](https://github.com/dynamic-labs/dynamic-auth/issues/10227)) ([94c5f5c](https://github.com/dynamic-labs/dynamic-auth/commit/94c5f5cb97432bb97374b754cb95bc23290dd184))
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* allow late registered solana wallets to appear in the wallet list ([#10224](https://github.com/dynamic-labs/dynamic-auth/issues/10224)) ([2f418d4](https://github.com/dynamic-labs/dynamic-auth/commit/2f418d4f3e0543bdd829a45807329f89da1e41a7))
|
|
14
|
+
* correctly show app name in wallet app for wallet connect evm connections ([#10218](https://github.com/dynamic-labs/dynamic-auth/issues/10218)) ([fec0009](https://github.com/dynamic-labs/dynamic-auth/commit/fec0009177439baa67015050b4ad799119615f4f))
|
|
15
|
+
* destructure wallets from getWalletStandardWallets before calling find ([#10234](https://github.com/dynamic-labs/dynamic-auth/issues/10234)) ([b59617a](https://github.com/dynamic-labs/dynamic-auth/commit/b59617a8579b9c7d8a5f744a2ea9363ccb4aee58))
|
|
16
|
+
* **react-native:** filter connectors by enabled chains and add chain parameter to connectWallet ([#10230](https://github.com/dynamic-labs/dynamic-auth/issues/10230)) ([a2bbd03](https://github.com/dynamic-labs/dynamic-auth/commit/a2bbd03ece52950711d2eda18cb2345df15710dd))
|
|
17
|
+
|
|
2
18
|
### [4.53.1](https://github.com/dynamic-labs/dynamic-auth/compare/v4.53.0...v4.53.1) (2026-01-14)
|
|
3
19
|
|
|
4
20
|
## [4.53.0](https://github.com/dynamic-labs/dynamic-auth/compare/v4.52.5...v4.53.0) (2026-01-13)
|
package/package.cjs
CHANGED
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
|
|
4
4
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
5
5
|
|
|
6
|
-
var version = "4.53.
|
|
6
|
+
var version = "4.53.2";
|
|
7
7
|
var dependencies = {
|
|
8
|
-
"@dynamic-labs/sdk-api-core": "0.0.
|
|
9
|
-
"@dynamic-labs-sdk/client": "0.
|
|
8
|
+
"@dynamic-labs/sdk-api-core": "0.0.855",
|
|
9
|
+
"@dynamic-labs-sdk/client": "0.2.4",
|
|
10
10
|
"@hcaptcha/react-hcaptcha": "1.4.4",
|
|
11
11
|
"@thumbmarkjs/thumbmarkjs": "0.16.0",
|
|
12
12
|
"country-list": "2.3.0",
|
package/package.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use client'
|
|
2
|
-
var version = "4.53.
|
|
2
|
+
var version = "4.53.2";
|
|
3
3
|
var dependencies = {
|
|
4
|
-
"@dynamic-labs/sdk-api-core": "0.0.
|
|
5
|
-
"@dynamic-labs-sdk/client": "0.
|
|
4
|
+
"@dynamic-labs/sdk-api-core": "0.0.855",
|
|
5
|
+
"@dynamic-labs-sdk/client": "0.2.4",
|
|
6
6
|
"@hcaptcha/react-hcaptcha": "1.4.4",
|
|
7
7
|
"@thumbmarkjs/thumbmarkjs": "0.16.0",
|
|
8
8
|
"country-list": "2.3.0",
|
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dynamic-labs/sdk-react-core",
|
|
3
|
-
"version": "4.53.
|
|
3
|
+
"version": "4.53.2",
|
|
4
4
|
"dependencies": {
|
|
5
|
-
"@dynamic-labs/sdk-api-core": "0.0.
|
|
6
|
-
"@dynamic-labs-sdk/client": "0.
|
|
5
|
+
"@dynamic-labs/sdk-api-core": "0.0.855",
|
|
6
|
+
"@dynamic-labs-sdk/client": "0.2.4",
|
|
7
7
|
"@hcaptcha/react-hcaptcha": "1.4.4",
|
|
8
8
|
"@thumbmarkjs/thumbmarkjs": "0.16.0",
|
|
9
9
|
"country-list": "2.3.0",
|
|
@@ -15,17 +15,17 @@
|
|
|
15
15
|
"yup": "0.32.11",
|
|
16
16
|
"react-international-phone": "4.5.0",
|
|
17
17
|
"bs58": "5.0.0",
|
|
18
|
-
"@dynamic-labs/assert-package-version": "4.53.
|
|
19
|
-
"@dynamic-labs/iconic": "4.53.
|
|
20
|
-
"@dynamic-labs/locale": "4.53.
|
|
21
|
-
"@dynamic-labs/logger": "4.53.
|
|
22
|
-
"@dynamic-labs/multi-wallet": "4.53.
|
|
23
|
-
"@dynamic-labs/rpc-providers": "4.53.
|
|
24
|
-
"@dynamic-labs/store": "4.53.
|
|
25
|
-
"@dynamic-labs/types": "4.53.
|
|
26
|
-
"@dynamic-labs/utils": "4.53.
|
|
27
|
-
"@dynamic-labs/wallet-book": "4.53.
|
|
28
|
-
"@dynamic-labs/wallet-connector-core": "4.53.
|
|
18
|
+
"@dynamic-labs/assert-package-version": "4.53.2",
|
|
19
|
+
"@dynamic-labs/iconic": "4.53.2",
|
|
20
|
+
"@dynamic-labs/locale": "4.53.2",
|
|
21
|
+
"@dynamic-labs/logger": "4.53.2",
|
|
22
|
+
"@dynamic-labs/multi-wallet": "4.53.2",
|
|
23
|
+
"@dynamic-labs/rpc-providers": "4.53.2",
|
|
24
|
+
"@dynamic-labs/store": "4.53.2",
|
|
25
|
+
"@dynamic-labs/types": "4.53.2",
|
|
26
|
+
"@dynamic-labs/utils": "4.53.2",
|
|
27
|
+
"@dynamic-labs/wallet-book": "4.53.2",
|
|
28
|
+
"@dynamic-labs/wallet-connector-core": "4.53.2",
|
|
29
29
|
"eventemitter3": "5.0.1"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
@@ -175,18 +175,24 @@ const useWalletOptions = () => {
|
|
|
175
175
|
dynamicEvents.dynamicEvents.on('walletConnectionFailed', walletConnectionFailed);
|
|
176
176
|
dynamicEvents.dynamicEvents.on('authFailure', authFailure);
|
|
177
177
|
}, [setShowAuthFlow]);
|
|
178
|
-
const selectWalletOption = React.useCallback((walletKey, selectGroupIfAvailable = true, skipAllSelectionUi = false) => new Promise((resolve, reject) => {
|
|
178
|
+
const selectWalletOption = React.useCallback((walletKey, selectGroupIfAvailable = true, skipAllSelectionUi = false, chain) => new Promise((resolve, reject) => {
|
|
179
179
|
const group = groupWalletOptions.groupWalletOptions(walletGroups, walletConnectorOptions);
|
|
180
180
|
const walletGroup = group.find((wallet) => wallet.key === walletKey);
|
|
181
|
-
|
|
181
|
+
// Filter by chain if provided
|
|
182
|
+
const walletOption = walletConnectorOptions === null || walletConnectorOptions === void 0 ? void 0 : walletConnectorOptions.find((wallet) => wallet.key === walletKey &&
|
|
183
|
+
(!chain || wallet.walletConnector.connectedChain === chain));
|
|
182
184
|
logger.logger.logVerboseTroubleshootingMessage('[useWalletOptions] selectWalletOption', {
|
|
185
|
+
chain,
|
|
183
186
|
selectGroupIfAvailable,
|
|
184
187
|
walletGroup: walletGroup === null || walletGroup === void 0 ? void 0 : walletGroup.key,
|
|
185
188
|
walletKey,
|
|
186
189
|
walletOption: walletOption === null || walletOption === void 0 ? void 0 : walletOption.key,
|
|
187
190
|
});
|
|
188
191
|
if (!walletOption) {
|
|
189
|
-
|
|
192
|
+
const errorMessage = chain
|
|
193
|
+
? `No wallet found with key "${walletKey}" for chain "${chain}".`
|
|
194
|
+
: `No wallet found with key "${walletKey}".`;
|
|
195
|
+
reject(new utils.DynamicError(errorMessage));
|
|
190
196
|
return;
|
|
191
197
|
}
|
|
192
198
|
addListenersToHandleWalletSelectionPromise({
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { Wallet } from '@dynamic-labs/wallet-connector-core';
|
|
1
|
+
import { Chain, Wallet } from '@dynamic-labs/wallet-connector-core';
|
|
2
2
|
import { WalletOptionMetadata } from '@dynamic-labs/types';
|
|
3
3
|
import { WalletOption } from '../../../shared';
|
|
4
4
|
export declare const useWalletOptions: () => {
|
|
5
5
|
getFilteredWalletOptions: (filter: (options: WalletOption[]) => WalletOption[]) => WalletOptionMetadata[];
|
|
6
|
-
selectWalletOption: (walletKey: string, selectGroupIfAvailable?: boolean, skipAllSelectionUi?: boolean) => Promise<Wallet<import("@dynamic-labs/wallet-connector-core").WalletConnectorCore.WalletConnector>>;
|
|
6
|
+
selectWalletOption: (walletKey: string, selectGroupIfAvailable?: boolean, skipAllSelectionUi?: boolean, chain?: Chain) => Promise<Wallet<import("@dynamic-labs/wallet-connector-core").WalletConnectorCore.WalletConnector>>;
|
|
7
7
|
walletOptions: WalletOptionMetadata[];
|
|
8
8
|
};
|
|
@@ -171,18 +171,24 @@ const useWalletOptions = () => {
|
|
|
171
171
|
dynamicEvents.on('walletConnectionFailed', walletConnectionFailed);
|
|
172
172
|
dynamicEvents.on('authFailure', authFailure);
|
|
173
173
|
}, [setShowAuthFlow]);
|
|
174
|
-
const selectWalletOption = useCallback((walletKey, selectGroupIfAvailable = true, skipAllSelectionUi = false) => new Promise((resolve, reject) => {
|
|
174
|
+
const selectWalletOption = useCallback((walletKey, selectGroupIfAvailable = true, skipAllSelectionUi = false, chain) => new Promise((resolve, reject) => {
|
|
175
175
|
const group = groupWalletOptions(walletGroups, walletConnectorOptions);
|
|
176
176
|
const walletGroup = group.find((wallet) => wallet.key === walletKey);
|
|
177
|
-
|
|
177
|
+
// Filter by chain if provided
|
|
178
|
+
const walletOption = walletConnectorOptions === null || walletConnectorOptions === void 0 ? void 0 : walletConnectorOptions.find((wallet) => wallet.key === walletKey &&
|
|
179
|
+
(!chain || wallet.walletConnector.connectedChain === chain));
|
|
178
180
|
logger.logVerboseTroubleshootingMessage('[useWalletOptions] selectWalletOption', {
|
|
181
|
+
chain,
|
|
179
182
|
selectGroupIfAvailable,
|
|
180
183
|
walletGroup: walletGroup === null || walletGroup === void 0 ? void 0 : walletGroup.key,
|
|
181
184
|
walletKey,
|
|
182
185
|
walletOption: walletOption === null || walletOption === void 0 ? void 0 : walletOption.key,
|
|
183
186
|
});
|
|
184
187
|
if (!walletOption) {
|
|
185
|
-
|
|
188
|
+
const errorMessage = chain
|
|
189
|
+
? `No wallet found with key "${walletKey}" for chain "${chain}".`
|
|
190
|
+
: `No wallet found with key "${walletKey}".`;
|
|
191
|
+
reject(new DynamicError(errorMessage));
|
|
186
192
|
return;
|
|
187
193
|
}
|
|
188
194
|
addListenersToHandleWalletSelectionPromise({
|