@dynamic-labs/wallet-connector-core 4.40.0 → 4.40.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
CHANGED
|
@@ -1,4 +1,17 @@
|
|
|
1
1
|
|
|
2
|
+
### [4.40.2](https://github.com/dynamic-labs/dynamic-auth/compare/v4.40.1...v4.40.2) (2025-10-28)
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
### Bug Fixes
|
|
6
|
+
|
|
7
|
+
* upgrade node to 20.20 in sanity-yarn-add-sdk job for compatibility ([#9743](https://github.com/dynamic-labs/dynamic-auth/issues/9743)) ([58d7e32](https://github.com/dynamic-labs/dynamic-auth/commit/58d7e32cd3965fba983c91c6345eae3bfe8dd1d5))
|
|
8
|
+
|
|
9
|
+
### [4.40.1](https://github.com/dynamic-labs/dynamic-auth/compare/v4.40.0...v4.40.1) (2025-10-24)
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* add support for Keplr in-app browser redirect for cosmos chain ([#9770](https://github.com/dynamic-labs/dynamic-auth/issues/9770)) ([35652f3](https://github.com/dynamic-labs/dynamic-auth/commit/35652f3167a4e768f5d4c634ab1b4f127fd5076a))
|
|
14
|
+
|
|
2
15
|
## [4.40.0](https://github.com/dynamic-labs/dynamic-auth/compare/v4.39.0...v4.40.0) (2025-10-22)
|
|
3
16
|
|
|
4
17
|
|
package/package.cjs
CHANGED
package/package.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dynamic-labs/wallet-connector-core",
|
|
3
|
-
"version": "4.40.
|
|
3
|
+
"version": "4.40.2",
|
|
4
4
|
"description": "Core package for utilities and types for handling multiple wallet/chain support Dynamic SDK",
|
|
5
5
|
"author": "Dynamic Labs, Inc.",
|
|
6
6
|
"license": "MIT",
|
|
@@ -19,12 +19,12 @@
|
|
|
19
19
|
"homepage": "https://www.dynamic.xyz/",
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@dynamic-labs/sdk-api-core": "0.0.813",
|
|
22
|
-
"@dynamic-labs/assert-package-version": "4.40.
|
|
23
|
-
"@dynamic-labs/logger": "4.40.
|
|
24
|
-
"@dynamic-labs/rpc-providers": "4.40.
|
|
25
|
-
"@dynamic-labs/types": "4.40.
|
|
26
|
-
"@dynamic-labs/utils": "4.40.
|
|
27
|
-
"@dynamic-labs/wallet-book": "4.40.
|
|
22
|
+
"@dynamic-labs/assert-package-version": "4.40.2",
|
|
23
|
+
"@dynamic-labs/logger": "4.40.2",
|
|
24
|
+
"@dynamic-labs/rpc-providers": "4.40.2",
|
|
25
|
+
"@dynamic-labs/types": "4.40.2",
|
|
26
|
+
"@dynamic-labs/utils": "4.40.2",
|
|
27
|
+
"@dynamic-labs/wallet-book": "4.40.2",
|
|
28
28
|
"eventemitter3": "5.0.1"
|
|
29
29
|
},
|
|
30
30
|
"peerDependencies": {}
|
|
@@ -491,6 +491,26 @@ class WalletConnectorBase extends EventEmitter__default["default"] {
|
|
|
491
491
|
return (this.retryDeeplinkConnection !==
|
|
492
492
|
WalletConnectorBase.prototype.retryDeeplinkConnection);
|
|
493
493
|
}
|
|
494
|
+
/**
|
|
495
|
+
* Open the inAppBrowser if required
|
|
496
|
+
* @returns True if the inAppBrowser was opened, false otherwise.
|
|
497
|
+
*/
|
|
498
|
+
openInAppBrowserIfRequired() {
|
|
499
|
+
var _a;
|
|
500
|
+
if (this.isInstalledOnBrowser() ||
|
|
501
|
+
!utils.isMobile() ||
|
|
502
|
+
!((_a = this.metadata) === null || _a === void 0 ? void 0 : _a.inAppBrowserUrl) ||
|
|
503
|
+
this.mobileExperience === 'redirect') {
|
|
504
|
+
return false;
|
|
505
|
+
}
|
|
506
|
+
const inAppBrowserCompiledTemplate = utils.template(this.metadata.inAppBrowserUrl);
|
|
507
|
+
const { href } = utils.PlatformService.getUrl();
|
|
508
|
+
const deepLink = inAppBrowserCompiledTemplate({
|
|
509
|
+
encodedDappURI: encodeURIComponent(href),
|
|
510
|
+
});
|
|
511
|
+
utils.PlatformService.openURL(deepLink);
|
|
512
|
+
return true;
|
|
513
|
+
}
|
|
494
514
|
}
|
|
495
515
|
_WalletConnectorBase_registeredExtensions = new WeakMap();
|
|
496
516
|
|
|
@@ -368,4 +368,9 @@ export declare abstract class WalletConnectorBase<C extends WalletConstructor<an
|
|
|
368
368
|
* Check if retryDeeplinkConnection has been implemented by a subclass
|
|
369
369
|
*/
|
|
370
370
|
hasRetryDeeplinkConnection(): boolean;
|
|
371
|
+
/**
|
|
372
|
+
* Open the inAppBrowser if required
|
|
373
|
+
* @returns True if the inAppBrowser was opened, false otherwise.
|
|
374
|
+
*/
|
|
375
|
+
openInAppBrowserIfRequired(): boolean;
|
|
371
376
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use client'
|
|
2
2
|
import { __classPrivateFieldGet, __awaiter } from '../../_virtual/_tslib.js';
|
|
3
3
|
import EventEmitter from 'eventemitter3';
|
|
4
|
-
import { WalletAddressMismatchError } from '@dynamic-labs/utils';
|
|
4
|
+
import { isMobile, template, PlatformService, WalletAddressMismatchError } from '@dynamic-labs/utils';
|
|
5
5
|
import { walletConnectorEvents } from '../events/walletConnectorEvents.js';
|
|
6
6
|
import { logger } from '../utils/logger.js';
|
|
7
7
|
import { isSameAddress } from '../utils/isSameAddress/isSameAddress.js';
|
|
@@ -483,6 +483,26 @@ class WalletConnectorBase extends EventEmitter {
|
|
|
483
483
|
return (this.retryDeeplinkConnection !==
|
|
484
484
|
WalletConnectorBase.prototype.retryDeeplinkConnection);
|
|
485
485
|
}
|
|
486
|
+
/**
|
|
487
|
+
* Open the inAppBrowser if required
|
|
488
|
+
* @returns True if the inAppBrowser was opened, false otherwise.
|
|
489
|
+
*/
|
|
490
|
+
openInAppBrowserIfRequired() {
|
|
491
|
+
var _a;
|
|
492
|
+
if (this.isInstalledOnBrowser() ||
|
|
493
|
+
!isMobile() ||
|
|
494
|
+
!((_a = this.metadata) === null || _a === void 0 ? void 0 : _a.inAppBrowserUrl) ||
|
|
495
|
+
this.mobileExperience === 'redirect') {
|
|
496
|
+
return false;
|
|
497
|
+
}
|
|
498
|
+
const inAppBrowserCompiledTemplate = template(this.metadata.inAppBrowserUrl);
|
|
499
|
+
const { href } = PlatformService.getUrl();
|
|
500
|
+
const deepLink = inAppBrowserCompiledTemplate({
|
|
501
|
+
encodedDappURI: encodeURIComponent(href),
|
|
502
|
+
});
|
|
503
|
+
PlatformService.openURL(deepLink);
|
|
504
|
+
return true;
|
|
505
|
+
}
|
|
486
506
|
}
|
|
487
507
|
_WalletConnectorBase_registeredExtensions = new WeakMap();
|
|
488
508
|
|