@dynamic-labs/sdk-react-core 4.20.10 → 4.20.12
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 +22 -0
- package/package.cjs +1 -1
- package/package.js +1 -1
- package/package.json +11 -11
- package/src/lib/utils/hooks/useWalletItemActions/useHandleWalletItem/useHandleWalletItem.cjs +2 -7
- package/src/lib/utils/hooks/useWalletItemActions/useHandleWalletItem/useHandleWalletItem.js +2 -7
- package/src/lib/widgets/DynamicWidget/views/ChooseWalletFundingMethod/useFundingMethods/useStartExchangeFunding/useStartExchangeFunding.cjs +9 -3
- package/src/lib/widgets/DynamicWidget/views/ChooseWalletFundingMethod/useFundingMethods/useStartExchangeFunding/useStartExchangeFunding.js +9 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,26 @@
|
|
|
1
1
|
|
|
2
|
+
### [4.20.12](https://github.com/dynamic-labs/dynamic-auth/compare/v4.20.11...v4.20.12) (2025-07-01)
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
### Bug Fixes
|
|
6
|
+
|
|
7
|
+
* bring back braavos mobile deeplink support ([#9041](https://github.com/dynamic-labs/dynamic-auth/issues/9041)) ([90a7eb6](https://github.com/dynamic-labs/dynamic-auth/commit/90a7eb620f6bd27d4560e88fe5542a121e586bed))
|
|
8
|
+
* start exchange funding errors should be logged as error ([#9056](https://github.com/dynamic-labs/dynamic-auth/issues/9056)) ([ba122af](https://github.com/dynamic-labs/dynamic-auth/commit/ba122afb68c462fe8627828bd20f9cc5f92803ff))
|
|
9
|
+
* WC redirect on mobile ([#9063](https://github.com/dynamic-labs/dynamic-auth/issues/9063)) ([f43aa4a](https://github.com/dynamic-labs/dynamic-auth/commit/f43aa4aedea20e3baf012f4778f5e6a47c27515c))
|
|
10
|
+
|
|
11
|
+
### [4.20.11](https://github.com/dynamic-labs/dynamic-auth/compare/v4.20.10...v4.20.11) (2025-07-01)
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
### Features
|
|
15
|
+
|
|
16
|
+
* add signed typed data to waas ([#9050](https://github.com/dynamic-labs/dynamic-auth/issues/9050)) ([19c8fea](https://github.com/dynamic-labs/dynamic-auth/commit/19c8fea2e5448e027cbec2f6158d32247dfcd321))
|
|
17
|
+
* pass jwt to waas operations ([#8981](https://github.com/dynamic-labs/dynamic-auth/issues/8981)) ([6b63394](https://github.com/dynamic-labs/dynamic-auth/commit/6b63394a1a724c2a1499a3d1ff13078d2314b10e))
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Bug Fixes
|
|
21
|
+
|
|
22
|
+
* 7702 signature for undeployed contracts ([#9052](https://github.com/dynamic-labs/dynamic-auth/issues/9052)) ([7052149](https://github.com/dynamic-labs/dynamic-auth/commit/7052149aae53524a0ac2bdad0b7ddf68e3c86189))
|
|
23
|
+
|
|
2
24
|
### [4.20.10](https://github.com/dynamic-labs/dynamic-auth/compare/v4.20.9...v4.20.10) (2025-06-30)
|
|
3
25
|
|
|
4
26
|
|
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.20.
|
|
3
|
+
"version": "4.20.12",
|
|
4
4
|
"dependencies": {
|
|
5
5
|
"@dynamic-labs/sdk-api-core": "0.0.699",
|
|
6
6
|
"@dynamic-labs-sdk/client": "0.0.1-alpha.5",
|
|
@@ -15,16 +15,16 @@
|
|
|
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.20.
|
|
19
|
-
"@dynamic-labs/iconic": "4.20.
|
|
20
|
-
"@dynamic-labs/logger": "4.20.
|
|
21
|
-
"@dynamic-labs/multi-wallet": "4.20.
|
|
22
|
-
"@dynamic-labs/rpc-providers": "4.20.
|
|
23
|
-
"@dynamic-labs/store": "4.20.
|
|
24
|
-
"@dynamic-labs/types": "4.20.
|
|
25
|
-
"@dynamic-labs/utils": "4.20.
|
|
26
|
-
"@dynamic-labs/wallet-book": "4.20.
|
|
27
|
-
"@dynamic-labs/wallet-connector-core": "4.20.
|
|
18
|
+
"@dynamic-labs/assert-package-version": "4.20.12",
|
|
19
|
+
"@dynamic-labs/iconic": "4.20.12",
|
|
20
|
+
"@dynamic-labs/logger": "4.20.12",
|
|
21
|
+
"@dynamic-labs/multi-wallet": "4.20.12",
|
|
22
|
+
"@dynamic-labs/rpc-providers": "4.20.12",
|
|
23
|
+
"@dynamic-labs/store": "4.20.12",
|
|
24
|
+
"@dynamic-labs/types": "4.20.12",
|
|
25
|
+
"@dynamic-labs/utils": "4.20.12",
|
|
26
|
+
"@dynamic-labs/wallet-book": "4.20.12",
|
|
27
|
+
"@dynamic-labs/wallet-connector-core": "4.20.12",
|
|
28
28
|
"eventemitter3": "5.0.1"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
package/src/lib/utils/hooks/useWalletItemActions/useHandleWalletItem/useHandleWalletItem.cjs
CHANGED
|
@@ -139,14 +139,9 @@ const useHandleWalletItem = ({ allowAlreadyConnectedWallet, onQrCodeConnect, onC
|
|
|
139
139
|
verificationType: 'awaiting_verification',
|
|
140
140
|
});
|
|
141
141
|
}
|
|
142
|
-
const attemptConnection = () =>
|
|
143
|
-
/**
|
|
144
|
-
* Call the connector endSession to ensure the connector is clear
|
|
145
|
-
* for the next connection attempt
|
|
146
|
-
*/
|
|
147
|
-
yield walletConnector.endSession();
|
|
142
|
+
const attemptConnection = () => {
|
|
148
143
|
onConnectOnly({ shouldShowPendingConnectView: false, walletConnector });
|
|
149
|
-
}
|
|
144
|
+
};
|
|
150
145
|
pushView('mobile-wallet-redirect-view', { onRetry: attemptConnection });
|
|
151
146
|
attemptConnection();
|
|
152
147
|
});
|
|
@@ -135,14 +135,9 @@ const useHandleWalletItem = ({ allowAlreadyConnectedWallet, onQrCodeConnect, onC
|
|
|
135
135
|
verificationType: 'awaiting_verification',
|
|
136
136
|
});
|
|
137
137
|
}
|
|
138
|
-
const attemptConnection = () =>
|
|
139
|
-
/**
|
|
140
|
-
* Call the connector endSession to ensure the connector is clear
|
|
141
|
-
* for the next connection attempt
|
|
142
|
-
*/
|
|
143
|
-
yield walletConnector.endSession();
|
|
138
|
+
const attemptConnection = () => {
|
|
144
139
|
onConnectOnly({ shouldShowPendingConnectView: false, walletConnector });
|
|
145
|
-
}
|
|
140
|
+
};
|
|
146
141
|
pushView('mobile-wallet-redirect-view', { onRetry: attemptConnection });
|
|
147
142
|
attemptConnection();
|
|
148
143
|
});
|
|
@@ -111,13 +111,14 @@ const useStartExchangeFunding = () => {
|
|
|
111
111
|
const { openOnramp } = OnrampContext.useOnrampContext();
|
|
112
112
|
const startExchangeFunding = React.useCallback(() => _tslib.__awaiter(void 0, void 0, void 0, function* () {
|
|
113
113
|
var _a, _b;
|
|
114
|
+
const authMode$1 = authMode.getAuthMode();
|
|
114
115
|
try {
|
|
115
116
|
const exchange = yield connectExchangeForFunding({
|
|
116
117
|
initiatedByWidget: true,
|
|
117
118
|
});
|
|
118
119
|
const provider = convertExchangeKeyAndProviderEnum.convertExchangeKeytoProviderEnum(exchange);
|
|
119
120
|
const connected = (_b = (_a = user === null || user === void 0 ? void 0 : user.verifiedCredentials) === null || _a === void 0 ? void 0 : _a.some(({ oauthProvider }) => oauthProvider === provider)) !== null && _b !== void 0 ? _b : false;
|
|
120
|
-
if (authMode
|
|
121
|
+
if (authMode$1 === 'connect-only') {
|
|
121
122
|
yield openOnramp({
|
|
122
123
|
onrampProvider: convertProviderExchangeProviderOnRamp.convertProviderExchangetoProviderOnRampEnum(provider),
|
|
123
124
|
});
|
|
@@ -134,8 +135,12 @@ const useStartExchangeFunding = () => {
|
|
|
134
135
|
}
|
|
135
136
|
}
|
|
136
137
|
}
|
|
137
|
-
catch (
|
|
138
|
-
logger.logger.
|
|
138
|
+
catch (error) {
|
|
139
|
+
logger.logger.error('Error while attempting to connect exchange for funding.', {
|
|
140
|
+
authMode: authMode$1,
|
|
141
|
+
error,
|
|
142
|
+
userId: user === null || user === void 0 ? void 0 : user.id,
|
|
143
|
+
});
|
|
139
144
|
}
|
|
140
145
|
}), [
|
|
141
146
|
connectExchangeForFunding,
|
|
@@ -143,6 +148,7 @@ const useStartExchangeFunding = () => {
|
|
|
143
148
|
openOnramp,
|
|
144
149
|
promptAmountAndFundWithExchange,
|
|
145
150
|
user === null || user === void 0 ? void 0 : user.verifiedCredentials,
|
|
151
|
+
user === null || user === void 0 ? void 0 : user.id,
|
|
146
152
|
]);
|
|
147
153
|
return {
|
|
148
154
|
startExchangeFunding,
|
|
@@ -107,13 +107,14 @@ const useStartExchangeFunding = () => {
|
|
|
107
107
|
const { openOnramp } = useOnrampContext();
|
|
108
108
|
const startExchangeFunding = useCallback(() => __awaiter(void 0, void 0, void 0, function* () {
|
|
109
109
|
var _a, _b;
|
|
110
|
+
const authMode = getAuthMode();
|
|
110
111
|
try {
|
|
111
112
|
const exchange = yield connectExchangeForFunding({
|
|
112
113
|
initiatedByWidget: true,
|
|
113
114
|
});
|
|
114
115
|
const provider = convertExchangeKeytoProviderEnum(exchange);
|
|
115
116
|
const connected = (_b = (_a = user === null || user === void 0 ? void 0 : user.verifiedCredentials) === null || _a === void 0 ? void 0 : _a.some(({ oauthProvider }) => oauthProvider === provider)) !== null && _b !== void 0 ? _b : false;
|
|
116
|
-
if (
|
|
117
|
+
if (authMode === 'connect-only') {
|
|
117
118
|
yield openOnramp({
|
|
118
119
|
onrampProvider: convertProviderExchangetoProviderOnRampEnum(provider),
|
|
119
120
|
});
|
|
@@ -130,8 +131,12 @@ const useStartExchangeFunding = () => {
|
|
|
130
131
|
}
|
|
131
132
|
}
|
|
132
133
|
}
|
|
133
|
-
catch (
|
|
134
|
-
logger.
|
|
134
|
+
catch (error) {
|
|
135
|
+
logger.error('Error while attempting to connect exchange for funding.', {
|
|
136
|
+
authMode,
|
|
137
|
+
error,
|
|
138
|
+
userId: user === null || user === void 0 ? void 0 : user.id,
|
|
139
|
+
});
|
|
135
140
|
}
|
|
136
141
|
}), [
|
|
137
142
|
connectExchangeForFunding,
|
|
@@ -139,6 +144,7 @@ const useStartExchangeFunding = () => {
|
|
|
139
144
|
openOnramp,
|
|
140
145
|
promptAmountAndFundWithExchange,
|
|
141
146
|
user === null || user === void 0 ? void 0 : user.verifiedCredentials,
|
|
147
|
+
user === null || user === void 0 ? void 0 : user.id,
|
|
142
148
|
]);
|
|
143
149
|
return {
|
|
144
150
|
startExchangeFunding,
|