@dynamic-labs/multi-wallet 4.4.4 → 4.5.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,18 @@
1
1
 
2
+ ## [4.5.0](https://github.com/dynamic-labs/dynamic-auth/compare/v4.4.4...v4.5.0) (2025-02-04)
3
+
4
+
5
+ ### Features
6
+
7
+ * allow injecting onramp providers for funding via sdk overrides ([#7967](https://github.com/dynamic-labs/dynamic-auth/issues/7967)) ([d738b3b](https://github.com/dynamic-labs/dynamic-auth/commit/d738b3ba1307bc6f2ffc5c8f98a44c6f509c0e96))
8
+ * headless transaction simulation ([#7928](https://github.com/dynamic-labs/dynamic-auth/issues/7928)) ([8eb4c9c](https://github.com/dynamic-labs/dynamic-auth/commit/8eb4c9cd9857a34c56f2e58aba124b5b7e185359))
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * memo hooks and state to reduce rerenders ([#7912](https://github.com/dynamic-labs/dynamic-auth/issues/7912)) ([5351570](https://github.com/dynamic-labs/dynamic-auth/commit/5351570874eb3b9465d2a2c99ea5caaa787ecc80))
14
+ * rely on bitcoin sats-connect transaction inputs for handling sigHashTypes ([#7969](https://github.com/dynamic-labs/dynamic-auth/issues/7969)) ([e043306](https://github.com/dynamic-labs/dynamic-auth/commit/e043306be44dd9058265c19d7e14cb07dd6db1fe))
15
+
2
16
  ### [4.4.4](https://github.com/dynamic-labs/dynamic-auth/compare/v4.4.3...v4.4.4) (2025-01-31)
3
17
 
4
18
 
package/package.cjs CHANGED
@@ -3,6 +3,6 @@
3
3
 
4
4
  Object.defineProperty(exports, '__esModule', { value: true });
5
5
 
6
- var version = "4.4.4";
6
+ var version = "4.5.0";
7
7
 
8
8
  exports.version = version;
package/package.js CHANGED
@@ -1,4 +1,4 @@
1
1
  'use client'
2
- var version = "4.4.4";
2
+ var version = "4.5.0";
3
3
 
4
4
  export { version };
package/package.json CHANGED
@@ -1,15 +1,15 @@
1
1
  {
2
2
  "name": "@dynamic-labs/multi-wallet",
3
- "version": "4.4.4",
3
+ "version": "4.5.0",
4
4
  "dependencies": {
5
- "@dynamic-labs/sdk-api-core": "0.0.604",
5
+ "@dynamic-labs/sdk-api-core": "0.0.607",
6
6
  "tslib": "2.4.1",
7
- "@dynamic-labs/assert-package-version": "4.4.4",
8
- "@dynamic-labs/rpc-providers": "4.4.4",
9
- "@dynamic-labs/types": "4.4.4",
10
- "@dynamic-labs/utils": "4.4.4",
11
- "@dynamic-labs/wallet-book": "4.4.4",
12
- "@dynamic-labs/wallet-connector-core": "4.4.4"
7
+ "@dynamic-labs/assert-package-version": "4.5.0",
8
+ "@dynamic-labs/rpc-providers": "4.5.0",
9
+ "@dynamic-labs/types": "4.5.0",
10
+ "@dynamic-labs/utils": "4.5.0",
11
+ "@dynamic-labs/wallet-book": "4.5.0",
12
+ "@dynamic-labs/wallet-connector-core": "4.5.0"
13
13
  },
14
14
  "devDependencies": {
15
15
  "@walletconnect/types": "2.17.3"
package/src/types.d.ts CHANGED
@@ -1,9 +1,10 @@
1
1
  import type { ProjectSettings } from '@dynamic-labs/sdk-api-core';
2
2
  import { Chain, WalletConnectorsMethod, DeepLinkVariant, InternalWalletConnector } from '@dynamic-labs/wallet-connector-core';
3
- import { type NetworkConfigurationMap, type WalletUiUtils, type CoinbaseWalletPreference, type MobileExperience } from '@dynamic-labs/types';
3
+ import { type NetworkConfigurationMap, type WalletUiUtils, type CoinbaseWalletPreference, type MobileExperience, type AuthMode } from '@dynamic-labs/types';
4
4
  import { IChainRpcProviders } from '@dynamic-labs/rpc-providers';
5
5
  import { WalletBookSchema } from '@dynamic-labs/wallet-book';
6
6
  export type GetSupportedWalletsOpts = {
7
+ authMode?: AuthMode;
7
8
  appLogoUrl?: string;
8
9
  appName?: string;
9
10
  coinbaseWalletPreference?: CoinbaseWalletPreference;
@@ -8,7 +8,7 @@ var getEnabledProviders = require('../getEnabledProviders/getEnabledProviders.cj
8
8
  var getApiProviders = require('../getApiProviders/getApiProviders.cjs');
9
9
  var _const = require('../../const.cjs');
10
10
 
11
- const getWalletConnectorConstructorOptions = ({ appLogoUrl, appName, coinbaseWalletPreference, chainRpcProviders, deepLinkPreference, flowNetwork, mobileExperience, networkConfigurations, settings, walletConnectProjectId, walletUiUtils, walletBook, walletConnectPreferredChains, }) => {
11
+ const getWalletConnectorConstructorOptions = ({ appLogoUrl, appName, authMode, coinbaseWalletPreference, chainRpcProviders, deepLinkPreference, flowNetwork, mobileExperience, networkConfigurations, settings, walletConnectProjectId, walletUiUtils, walletBook, walletConnectPreferredChains, }) => {
12
12
  const eclipseNetworkConfigs = (networkConfigurations === null || networkConfigurations === void 0 ? void 0 : networkConfigurations.eclipse) || [];
13
13
  const evmNetworkConfigs = (networkConfigurations === null || networkConfigurations === void 0 ? void 0 : networkConfigurations.evm) || [];
14
14
  const solanaNetworkConfigs = (networkConfigurations === null || networkConfigurations === void 0 ? void 0 : networkConfigurations.solana) || [];
@@ -19,6 +19,7 @@ const getWalletConnectorConstructorOptions = ({ appLogoUrl, appName, coinbaseWal
19
19
  apiProviders,
20
20
  appLogoUrl,
21
21
  appName,
22
+ authMode,
22
23
  chainRpcProviders,
23
24
  coinbaseWalletPreference,
24
25
  cosmosNetworks: cosmosNetworkConfigs,
@@ -1,11 +1,12 @@
1
1
  import { IChainRpcProviders } from '@dynamic-labs/rpc-providers';
2
2
  import { ProjectSettings } from '@dynamic-labs/sdk-api-core';
3
- import { CoinbaseWalletPreference, MobileExperience, NetworkConfigurationMap, WalletUiUtils } from '@dynamic-labs/types';
3
+ import { AuthMode, CoinbaseWalletPreference, MobileExperience, NetworkConfigurationMap, WalletUiUtils } from '@dynamic-labs/types';
4
4
  import { WalletBookSchema } from '@dynamic-labs/wallet-book';
5
5
  import { DeepLinkVariant, InternalWalletConnector } from '@dynamic-labs/wallet-connector-core';
6
6
  type WalletConnectorConstructorOptionsParams = {
7
7
  appLogoUrl?: string;
8
8
  appName?: string;
9
+ authMode?: AuthMode;
9
10
  coinbaseWalletPreference?: CoinbaseWalletPreference;
10
11
  chainRpcProviders: IChainRpcProviders;
11
12
  deepLinkPreference?: DeepLinkVariant;
@@ -18,7 +19,7 @@ type WalletConnectorConstructorOptionsParams = {
18
19
  walletUiUtils?: WalletUiUtils<InternalWalletConnector>;
19
20
  walletConnectPreferredChains?: `eip155:${number}`[];
20
21
  };
21
- export declare const getWalletConnectorConstructorOptions: ({ appLogoUrl, appName, coinbaseWalletPreference, chainRpcProviders, deepLinkPreference, flowNetwork, mobileExperience, networkConfigurations, settings, walletConnectProjectId, walletUiUtils, walletBook, walletConnectPreferredChains, }: WalletConnectorConstructorOptionsParams) => {
22
+ export declare const getWalletConnectorConstructorOptions: ({ appLogoUrl, appName, authMode, coinbaseWalletPreference, chainRpcProviders, deepLinkPreference, flowNetwork, mobileExperience, networkConfigurations, settings, walletConnectProjectId, walletUiUtils, walletBook, walletConnectPreferredChains, }: WalletConnectorConstructorOptionsParams) => {
22
23
  apiProviders: {
23
24
  emailOnly?: import("@dynamic-labs/sdk-api-core").Provider | undefined;
24
25
  magicLink?: import("@dynamic-labs/sdk-api-core").Provider | undefined;
@@ -54,6 +55,7 @@ export declare const getWalletConnectorConstructorOptions: ({ appLogoUrl, appNam
54
55
  };
55
56
  appLogoUrl: string | undefined;
56
57
  appName: string | undefined;
58
+ authMode: AuthMode | undefined;
57
59
  chainRpcProviders: IChainRpcProviders;
58
60
  coinbaseWalletPreference: CoinbaseWalletPreference | undefined;
59
61
  cosmosNetworks: import("@dynamic-labs/types").GenericNetwork[];
@@ -4,7 +4,7 @@ import { getEnabledProviders } from '../getEnabledProviders/getEnabledProviders.
4
4
  import { getApiProviders } from '../getApiProviders/getApiProviders.js';
5
5
  import { defaultWalletUiUtils } from '../../const.js';
6
6
 
7
- const getWalletConnectorConstructorOptions = ({ appLogoUrl, appName, coinbaseWalletPreference, chainRpcProviders, deepLinkPreference, flowNetwork, mobileExperience, networkConfigurations, settings, walletConnectProjectId, walletUiUtils, walletBook, walletConnectPreferredChains, }) => {
7
+ const getWalletConnectorConstructorOptions = ({ appLogoUrl, appName, authMode, coinbaseWalletPreference, chainRpcProviders, deepLinkPreference, flowNetwork, mobileExperience, networkConfigurations, settings, walletConnectProjectId, walletUiUtils, walletBook, walletConnectPreferredChains, }) => {
8
8
  const eclipseNetworkConfigs = (networkConfigurations === null || networkConfigurations === void 0 ? void 0 : networkConfigurations.eclipse) || [];
9
9
  const evmNetworkConfigs = (networkConfigurations === null || networkConfigurations === void 0 ? void 0 : networkConfigurations.evm) || [];
10
10
  const solanaNetworkConfigs = (networkConfigurations === null || networkConfigurations === void 0 ? void 0 : networkConfigurations.solana) || [];
@@ -15,6 +15,7 @@ const getWalletConnectorConstructorOptions = ({ appLogoUrl, appName, coinbaseWal
15
15
  apiProviders,
16
16
  appLogoUrl,
17
17
  appName,
18
+ authMode,
18
19
  chainRpcProviders,
19
20
  coinbaseWalletPreference,
20
21
  cosmosNetworks: cosmosNetworkConfigs,