@dynamic-labs/sdk-react-core 4.40.2 → 4.41.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
CHANGED
|
@@ -1,4 +1,16 @@
|
|
|
1
1
|
|
|
2
|
+
## [4.41.0](https://github.com/dynamic-labs/dynamic-auth/compare/v4.40.2...v4.41.0) (2025-10-29)
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
### Features
|
|
6
|
+
|
|
7
|
+
* **react-native:** add MFA recovery methods ([#9788](https://github.com/dynamic-labs/dynamic-auth/issues/9788)) ([664e0d5](https://github.com/dynamic-labs/dynamic-auth/commit/664e0d5878530abc9e645c8801a87f3109cfd8f9))
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
### Bug Fixes
|
|
11
|
+
|
|
12
|
+
* crypto.com link opening on mobile ([#9779](https://github.com/dynamic-labs/dynamic-auth/issues/9779)) ([3439ac9](https://github.com/dynamic-labs/dynamic-auth/commit/3439ac9e2610360c6204f6195433ae3e05e26c30))
|
|
13
|
+
|
|
2
14
|
### [4.40.2](https://github.com/dynamic-labs/dynamic-auth/compare/v4.40.1...v4.40.2) (2025-10-28)
|
|
3
15
|
|
|
4
16
|
|
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.41.0",
|
|
4
4
|
"dependencies": {
|
|
5
5
|
"@dynamic-labs/sdk-api-core": "0.0.813",
|
|
6
6
|
"@dynamic-labs-sdk/client": "0.1.0-alpha.23",
|
|
@@ -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.
|
|
19
|
-
"@dynamic-labs/iconic": "4.
|
|
20
|
-
"@dynamic-labs/locale": "4.
|
|
21
|
-
"@dynamic-labs/logger": "4.
|
|
22
|
-
"@dynamic-labs/multi-wallet": "4.
|
|
23
|
-
"@dynamic-labs/rpc-providers": "4.
|
|
24
|
-
"@dynamic-labs/store": "4.
|
|
25
|
-
"@dynamic-labs/types": "4.
|
|
26
|
-
"@dynamic-labs/utils": "4.
|
|
27
|
-
"@dynamic-labs/wallet-book": "4.
|
|
28
|
-
"@dynamic-labs/wallet-connector-core": "4.
|
|
18
|
+
"@dynamic-labs/assert-package-version": "4.41.0",
|
|
19
|
+
"@dynamic-labs/iconic": "4.41.0",
|
|
20
|
+
"@dynamic-labs/locale": "4.41.0",
|
|
21
|
+
"@dynamic-labs/logger": "4.41.0",
|
|
22
|
+
"@dynamic-labs/multi-wallet": "4.41.0",
|
|
23
|
+
"@dynamic-labs/rpc-providers": "4.41.0",
|
|
24
|
+
"@dynamic-labs/store": "4.41.0",
|
|
25
|
+
"@dynamic-labs/types": "4.41.0",
|
|
26
|
+
"@dynamic-labs/utils": "4.41.0",
|
|
27
|
+
"@dynamic-labs/wallet-book": "4.41.0",
|
|
28
|
+
"@dynamic-labs/wallet-connector-core": "4.41.0",
|
|
29
29
|
"eventemitter3": "5.0.1"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
@@ -5,6 +5,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
|
|
6
6
|
var _tslib = require('../../../../_virtual/_tslib.cjs');
|
|
7
7
|
var sdkApiCore = require('@dynamic-labs/sdk-api-core');
|
|
8
|
+
var utils = require('@dynamic-labs/utils');
|
|
8
9
|
var openPopup = require('./openPopup/openPopup.cjs');
|
|
9
10
|
|
|
10
11
|
const ONRAMP_POPUP_CONFIG = {
|
|
@@ -26,6 +27,13 @@ const openOnrampPopup = (url_1, wallet_1, setShowOnramp_1, ...args_1) => _tslib.
|
|
|
26
27
|
if (!url) {
|
|
27
28
|
throw new Error('Cannot open onramp popup: Empty URL');
|
|
28
29
|
}
|
|
30
|
+
// On mobile devices, fall back to direct navigation for crypto.com
|
|
31
|
+
// since mobile browsers often block popups
|
|
32
|
+
if (utils.isMobile() && provider === sdkApiCore.OnrampProviders.CryptoDotCom) {
|
|
33
|
+
window.open(url, '_blank', 'noopener,noreferrer');
|
|
34
|
+
setShowOnramp(false);
|
|
35
|
+
return;
|
|
36
|
+
}
|
|
29
37
|
// Open the popup - errors will propagate to the caller
|
|
30
38
|
yield openPopup.openPopup(url, ONRAMP_POPUP_CONFIG.width, ONRAMP_POPUP_CONFIG.height, () => {
|
|
31
39
|
// When the popup is closed (by user or programmatically), update the UI
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
'use client'
|
|
2
2
|
import { __awaiter } from '../../../../_virtual/_tslib.js';
|
|
3
3
|
import { OnrampProviders } from '@dynamic-labs/sdk-api-core';
|
|
4
|
+
import { isMobile } from '@dynamic-labs/utils';
|
|
4
5
|
import { openPopup } from './openPopup/openPopup.js';
|
|
5
6
|
|
|
6
7
|
const ONRAMP_POPUP_CONFIG = {
|
|
@@ -22,6 +23,13 @@ const openOnrampPopup = (url_1, wallet_1, setShowOnramp_1, ...args_1) => __await
|
|
|
22
23
|
if (!url) {
|
|
23
24
|
throw new Error('Cannot open onramp popup: Empty URL');
|
|
24
25
|
}
|
|
26
|
+
// On mobile devices, fall back to direct navigation for crypto.com
|
|
27
|
+
// since mobile browsers often block popups
|
|
28
|
+
if (isMobile() && provider === OnrampProviders.CryptoDotCom) {
|
|
29
|
+
window.open(url, '_blank', 'noopener,noreferrer');
|
|
30
|
+
setShowOnramp(false);
|
|
31
|
+
return;
|
|
32
|
+
}
|
|
25
33
|
// Open the popup - errors will propagate to the caller
|
|
26
34
|
yield openPopup(url, ONRAMP_POPUP_CONFIG.width, ONRAMP_POPUP_CONFIG.height, () => {
|
|
27
35
|
// When the popup is closed (by user or programmatically), update the UI
|