@dynamic-labs/wallet-connector-core 4.39.0 → 4.40.1

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,23 @@
1
1
 
2
+ ### [4.40.1](https://github.com/dynamic-labs/dynamic-auth/compare/v4.40.0...v4.40.1) (2025-10-24)
3
+
4
+ ### Bug Fixes
5
+
6
+ * 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))
7
+
8
+ ## [4.40.0](https://github.com/dynamic-labs/dynamic-auth/compare/v4.39.0...v4.40.0) (2025-10-22)
9
+
10
+
11
+ ### Features
12
+
13
+ * add Wallet Connect Solana as a wallet option ([#9719](https://github.com/dynamic-labs/dynamic-auth/issues/9719)) ([ece5f6b](https://github.com/dynamic-labs/dynamic-auth/commit/ece5f6b36c1fbefdf05cf8203fe0fee0b2e8ed3d))
14
+ * make updates to crypto.com onramp flow ([#9746](https://github.com/dynamic-labs/dynamic-auth/issues/9746)) ([22040d2](https://github.com/dynamic-labs/dynamic-auth/commit/22040d28d0d66b84f5c3be9bed4cfce7f1978944))
15
+
16
+
17
+ ### Bug Fixes
18
+
19
+ * return undefined if json payload is undefined in parse token ([#9750](https://github.com/dynamic-labs/dynamic-auth/issues/9750)) ([5751198](https://github.com/dynamic-labs/dynamic-auth/commit/575119867c93f89062e96e30c02b128161fb9675))
20
+
2
21
  ## [4.39.0](https://github.com/dynamic-labs/dynamic-auth/compare/v4.38.0...v4.39.0) (2025-10-17)
3
22
 
4
23
 
package/package.cjs CHANGED
@@ -3,6 +3,6 @@
3
3
 
4
4
  Object.defineProperty(exports, '__esModule', { value: true });
5
5
 
6
- var version = "4.39.0";
6
+ var version = "4.40.1";
7
7
 
8
8
  exports.version = version;
package/package.js CHANGED
@@ -1,4 +1,4 @@
1
1
  'use client'
2
- var version = "4.39.0";
2
+ var version = "4.40.1";
3
3
 
4
4
  export { version };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dynamic-labs/wallet-connector-core",
3
- "version": "4.39.0",
3
+ "version": "4.40.1",
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",
@@ -18,13 +18,13 @@
18
18
  },
19
19
  "homepage": "https://www.dynamic.xyz/",
20
20
  "dependencies": {
21
- "@dynamic-labs/sdk-api-core": "0.0.809",
22
- "@dynamic-labs/assert-package-version": "4.39.0",
23
- "@dynamic-labs/logger": "4.39.0",
24
- "@dynamic-labs/rpc-providers": "4.39.0",
25
- "@dynamic-labs/types": "4.39.0",
26
- "@dynamic-labs/utils": "4.39.0",
27
- "@dynamic-labs/wallet-book": "4.39.0",
21
+ "@dynamic-labs/sdk-api-core": "0.0.813",
22
+ "@dynamic-labs/assert-package-version": "4.40.1",
23
+ "@dynamic-labs/logger": "4.40.1",
24
+ "@dynamic-labs/rpc-providers": "4.40.1",
25
+ "@dynamic-labs/types": "4.40.1",
26
+ "@dynamic-labs/utils": "4.40.1",
27
+ "@dynamic-labs/wallet-book": "4.40.1",
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