@dynamic-labs/wallet-connector-core 4.6.0 → 4.6.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,29 @@
1
1
 
2
+ ### [4.6.2](https://github.com/dynamic-labs/dynamic-auth/compare/v4.6.1...v4.6.2) (2025-02-14)
3
+
4
+
5
+ ### Features
6
+
7
+ * add funding from linked wallets ([#8067](https://github.com/dynamic-labs/dynamic-auth/issues/8067)) ([1f9dc71](https://github.com/dynamic-labs/dynamic-auth/commit/1f9dc715a04b558a96164c7a143171abac3890b4))
8
+ * add walletConnectedForFunding event ([#8058](https://github.com/dynamic-labs/dynamic-auth/issues/8058)) ([8c5a244](https://github.com/dynamic-labs/dynamic-auth/commit/8c5a24405c5a7ae2e91bbbee6c1eebca9169ec3e))
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * back button from MFA backup codes view not working properly ([#8085](https://github.com/dynamic-labs/dynamic-auth/issues/8085)) ([9af0b6f](https://github.com/dynamic-labs/dynamic-auth/commit/9af0b6faada610180ff061a55715d3f0e2a853a0))
14
+ * issue with authenticating a user on connect-only mode ([#8084](https://github.com/dynamic-labs/dynamic-auth/issues/8084)) ([7bf881b](https://github.com/dynamic-labs/dynamic-auth/commit/7bf881b4fab4b8c64993bf4a7936eb8435408a2e))
15
+ * rerendering issue in usetokenbalance ([#8079](https://github.com/dynamic-labs/dynamic-auth/issues/8079)) ([e52b481](https://github.com/dynamic-labs/dynamic-auth/commit/e52b48112c4a3627bb51cc7cf03181bcba66aada))
16
+
17
+ ### [4.6.1](https://github.com/dynamic-labs/dynamic-auth/compare/v4.6.0...v4.6.1) (2025-02-11)
18
+
19
+
20
+ ### Bug Fixes
21
+
22
+ * do not show undefined subdomains ([#8060](https://github.com/dynamic-labs/dynamic-auth/issues/8060)) ([ec7ca3d](https://github.com/dynamic-labs/dynamic-auth/commit/ec7ca3d1284422f54f3a1275e1983d50912bcc34))
23
+ * ensure project settings is present on is-cookie-enabled ([#8057](https://github.com/dynamic-labs/dynamic-auth/issues/8057)) ([81c6495](https://github.com/dynamic-labs/dynamic-auth/commit/81c64957031633c00c9e5ecaf304269605202abb))
24
+ * prevent user profile widget from automatically opening when linking a new wallet ([#8020](https://github.com/dynamic-labs/dynamic-auth/issues/8020)) ([4f05ac9](https://github.com/dynamic-labs/dynamic-auth/commit/4f05ac9fdc5a2fc415567dff1b33ddffd0478804))
25
+ * project settings loading and cookie setting check ([#8056](https://github.com/dynamic-labs/dynamic-auth/issues/8056)) ([457a298](https://github.com/dynamic-labs/dynamic-auth/commit/457a298ff11387ca858f85fb19d6c421e02fcc88))
26
+
2
27
  ## [4.6.0](https://github.com/dynamic-labs/dynamic-auth/compare/v4.5.3...v4.6.0) (2025-02-10)
3
28
 
4
29
 
package/package.cjs CHANGED
@@ -3,6 +3,6 @@
3
3
 
4
4
  Object.defineProperty(exports, '__esModule', { value: true });
5
5
 
6
- var version = "4.6.0";
6
+ var version = "4.6.2";
7
7
 
8
8
  exports.version = version;
package/package.js CHANGED
@@ -1,4 +1,4 @@
1
1
  'use client'
2
- var version = "4.6.0";
2
+ var version = "4.6.2";
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.6.0",
3
+ "version": "4.6.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",
@@ -18,13 +18,13 @@
18
18
  },
19
19
  "homepage": "https://www.dynamic.xyz/",
20
20
  "dependencies": {
21
- "@dynamic-labs/sdk-api-core": "0.0.615",
22
- "@dynamic-labs/assert-package-version": "4.6.0",
23
- "@dynamic-labs/logger": "4.6.0",
24
- "@dynamic-labs/rpc-providers": "4.6.0",
25
- "@dynamic-labs/types": "4.6.0",
26
- "@dynamic-labs/utils": "4.6.0",
27
- "@dynamic-labs/wallet-book": "4.6.0",
21
+ "@dynamic-labs/sdk-api-core": "0.0.627",
22
+ "@dynamic-labs/assert-package-version": "4.6.2",
23
+ "@dynamic-labs/logger": "4.6.2",
24
+ "@dynamic-labs/rpc-providers": "4.6.2",
25
+ "@dynamic-labs/types": "4.6.2",
26
+ "@dynamic-labs/utils": "4.6.2",
27
+ "@dynamic-labs/wallet-book": "4.6.2",
28
28
  "eventemitter3": "5.0.1"
29
29
  },
30
30
  "peerDependencies": {}
package/src/index.cjs CHANGED
@@ -40,6 +40,7 @@ var isConnectorMethodSupported = require('./utils/isConnectorMethodSupported/isC
40
40
  var isConnectorEventSupported = require('./utils/isConnectorEventSupported/isConnectorEventSupported.cjs');
41
41
  var getWalletLinks = require('./utils/getWalletLinks/getWalletLinks.cjs');
42
42
  var convertWalletToBaseWallet = require('./utils/convertWalletToBaseWallet/convertWalletToBaseWallet.cjs');
43
+ var isDynamicWaasConnector = require('./utils/isDynamicWaasConnector/isDynamicWaasConnector.cjs');
43
44
  var Wallet = require('./Wallet/Wallet.cjs');
44
45
  var WalletConnectorBase = require('./WalletConnectorBase/WalletConnectorBase.cjs');
45
46
  var types = require('./WalletConnectorBase/types.cjs');
@@ -87,6 +88,7 @@ exports.isConnectorEventSupported = isConnectorEventSupported.isConnectorEventSu
87
88
  exports.getWalletLinks = getWalletLinks.getWalletLinks;
88
89
  exports.convertWalletToBaseWallet = convertWalletToBaseWallet.convertWalletToBaseWallet;
89
90
  exports.convertWalletToBaseWalletPartial = convertWalletToBaseWallet.convertWalletToBaseWalletPartial;
91
+ exports.isDynamicWaasConnector = isDynamicWaasConnector.isDynamicWaasConnector;
90
92
  exports.Wallet = Wallet.Wallet;
91
93
  exports.WalletConnectorBase = WalletConnectorBase.WalletConnectorBase;
92
94
  exports.Chains = types.Chains;
package/src/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  export { walletConnectorEvents } from './events';
2
- export { type Attestation, type AuthenticatorRecoveryHandler, type AuthenticatorType, type BitcoinSignPsbtRequest, type BitcoinSignPsbtRequestSignature, type BitcoinSignPsbtResponse, type ExportHandler, type IAccountAbstractionWalletConnector, type IBitcoinWalletConnector, type IEmailOTPWalletConnector, type IEmailWalletConnector, type IHardwareWalletConnector, type IPasskeyWalletConnector, type IPhantomRedirectConnector, type IPhantomRedirectConnectorWithEvents, type ISendBalanceWalletConnector, type ISessionKeyCompatibleWalletConnector, type ISMSWalletConnector, type ITurnkeyWalletConnector, type ITurnkeyWalletConnectorStamper, type IWalletConnectConnector, type IZeroDevConnector, type RecoveryEmailParams, type RecoveryWebAuthnAttestation, type SignAllTransactionsListener, type SignAndSendTransactionListener, type SignMessageListener, type SignTransactionListener, type WebAuthnAttestation, type IEthereumConnector, type IPublicClient, type ISolanaConnection, } from './interfaces';
2
+ export { type Attestation, type AuthenticatorRecoveryHandler, type AuthenticatorType, type BitcoinSignPsbtRequest, type BitcoinSignPsbtRequestSignature, type BitcoinSignPsbtResponse, type ExportHandler, type IAccountAbstractionWalletConnector, type IBitcoinWalletConnector, type IEmailOTPWalletConnector, type IEmailWalletConnector, type IHardwareWalletConnector, type IPasskeyWalletConnector, type IPhantomRedirectConnector, type IPhantomRedirectConnectorWithEvents, type ISendBalanceWalletConnector, type ISessionKeyCompatibleWalletConnector, type ISMSWalletConnector, type ITurnkeyWalletConnector, type ITurnkeyWalletConnectorStamper, type IWalletConnectConnector, type IZeroDevConnector, type RecoveryEmailParams, type RecoveryWebAuthnAttestation, type SignAllTransactionsListener, type SignAndSendTransactionListener, type SignMessageListener, type SignTransactionListener, type WebAuthnAttestation, type IEthereumConnector, type IPublicClient, type ISolanaConnection, type IDynamicWaasConnector, } from './interfaces';
3
3
  export type { AccountChangeEventHandler, ChainChangeEventHandler, DisconnectEventHandler, WalletConnectorCore, WalletMetadata, WalletDeepLinks, WalletDownloadLinks, WalletLimitations, WalletLinks, } from './types';
4
- export { addHexPrefix, bufferToHex, eventListenerHandlers, getChainInfo, getChainInfoWithOverrides, getDeepLink, getMobileExperience, getRpcUrlForChain, getWalletConnectorByKey, isAccountAbstractionConnector, isBitcoinConnector, isBloctoConnector, isEmailOTPWalletConnector, isEmailWalletConnector, isEmbeddedConnector, isHardwareWalletConnector, isHex, isMagicConnector, isPasskeyWalletConnector, isPhantomRedirectConnector, isSameAddress, isSendBalanceWalletConnector, isSessionKeyCompatibleWallet, isSessionKeyCompatibleWalletConnector, isSocialWalletConnector, isTurnkeyWalletConnector, isWalletConnectConnector, isConnectorMethodSupported, isConnectorEventSupported, getWalletMetadataFromWalletBook, getWalletLinks, logger, performPlatformSpecificConnectionMethod, ProviderLookup, setChainInfoOverrides, shouldLowercaseAddress, utf8ToHex, convertWalletToBaseWallet, convertWalletToBaseWalletPartial, type ChainDisplayOverrides, type DeepLinkVariant, type ProviderCondition, } from './utils';
4
+ export { addHexPrefix, bufferToHex, eventListenerHandlers, getChainInfo, getChainInfoWithOverrides, getDeepLink, getMobileExperience, getRpcUrlForChain, getWalletConnectorByKey, isAccountAbstractionConnector, isBitcoinConnector, isBloctoConnector, isEmailOTPWalletConnector, isEmailWalletConnector, isEmbeddedConnector, isHardwareWalletConnector, isHex, isMagicConnector, isPasskeyWalletConnector, isPhantomRedirectConnector, isSameAddress, isSendBalanceWalletConnector, isSessionKeyCompatibleWallet, isSessionKeyCompatibleWalletConnector, isSocialWalletConnector, isTurnkeyWalletConnector, isWalletConnectConnector, isConnectorMethodSupported, isConnectorEventSupported, getWalletMetadataFromWalletBook, getWalletLinks, logger, performPlatformSpecificConnectionMethod, ProviderLookup, setChainInfoOverrides, shouldLowercaseAddress, utf8ToHex, convertWalletToBaseWallet, convertWalletToBaseWalletPartial, type ChainDisplayOverrides, type DeepLinkVariant, type ProviderCondition, isDynamicWaasConnector, } from './utils';
5
5
  export { Wallet, type WalletConstructor, type WalletProps } from './Wallet';
6
6
  export { Chains, socialProviders, WalletConnectorBase, type Chain, type ChainInfo, type GetAddressOpts, type InternalWalletConnector, type NameServiceData, type PayloadParams, type SocialProvider, type WalletConnector, type WalletConnectorConstructor, type WalletConnectorEventTypes, type WalletConnectorExtension, type WalletConnectorsMethod, } from './WalletConnectorBase';
7
7
  export { WalletBookSingleton } from './WalletBookSingleton';
package/src/index.js CHANGED
@@ -36,6 +36,7 @@ export { isConnectorMethodSupported } from './utils/isConnectorMethodSupported/i
36
36
  export { isConnectorEventSupported } from './utils/isConnectorEventSupported/isConnectorEventSupported.js';
37
37
  export { getWalletLinks } from './utils/getWalletLinks/getWalletLinks.js';
38
38
  export { convertWalletToBaseWallet, convertWalletToBaseWalletPartial } from './utils/convertWalletToBaseWallet/convertWalletToBaseWallet.js';
39
+ export { isDynamicWaasConnector } from './utils/isDynamicWaasConnector/isDynamicWaasConnector.js';
39
40
  export { Wallet } from './Wallet/Wallet.js';
40
41
  export { WalletConnectorBase } from './WalletConnectorBase/WalletConnectorBase.js';
41
42
  export { Chains, socialProviders } from './WalletConnectorBase/types.js';
@@ -0,0 +1,17 @@
1
+ import { WalletConnectorBase } from '..';
2
+ export interface IDynamicWaasConnector extends WalletConnectorBase {
3
+ createWalletAccount(): Promise<{
4
+ accountAddress: string;
5
+ publicKeyHex: string;
6
+ }>;
7
+ importPrivateKey({ privateKey, chainName, }: {
8
+ privateKey: string;
9
+ chainName: string;
10
+ }): Promise<void>;
11
+ setEnvironmentId(environmentId: string): void;
12
+ setBaseApiUrl(baseApiUrl: string): void;
13
+ setGetAuthTokenFunction(getAuthToken: () => string): void;
14
+ getWalletClientByAddress({ accountAddress }: {
15
+ accountAddress: string;
16
+ }): any;
17
+ }
@@ -13,3 +13,4 @@ export * from './ITurnkeyWalletConnectorStamper';
13
13
  export * from './IWalletConnectConnector';
14
14
  export * from './IEthereumConnector';
15
15
  export * from './ISolanaConnector';
16
+ export * from './IDynamicWaasConnector';
@@ -30,3 +30,4 @@ export * from './isConnectorMethodSupported';
30
30
  export * from './isConnectorEventSupported';
31
31
  export * from './getWalletLinks';
32
32
  export * from './convertWalletToBaseWallet';
33
+ export * from './isDynamicWaasConnector';
@@ -0,0 +1 @@
1
+ export { isDynamicWaasConnector } from './isDynamicWaasConnector';
@@ -0,0 +1,11 @@
1
+ 'use client'
2
+ 'use strict';
3
+
4
+ Object.defineProperty(exports, '__esModule', { value: true });
5
+
6
+ const isDynamicWaasConnector = (walletConnector) => {
7
+ const dynamicWaasConnector = walletConnector;
8
+ return Boolean(dynamicWaasConnector && dynamicWaasConnector.key === 'dynamicwaas');
9
+ };
10
+
11
+ exports.isDynamicWaasConnector = isDynamicWaasConnector;
@@ -0,0 +1,2 @@
1
+ import { WalletConnector, IDynamicWaasConnector } from '../..';
2
+ export declare const isDynamicWaasConnector: (walletConnector: WalletConnector) => walletConnector is IDynamicWaasConnector;
@@ -0,0 +1,7 @@
1
+ 'use client'
2
+ const isDynamicWaasConnector = (walletConnector) => {
3
+ const dynamicWaasConnector = walletConnector;
4
+ return Boolean(dynamicWaasConnector && dynamicWaasConnector.key === 'dynamicwaas');
5
+ };
6
+
7
+ export { isDynamicWaasConnector };