@dynamic-labs/wallet-connector-core 4.0.0-alpha.11 → 4.0.0-alpha.12

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,22 @@
1
1
 
2
+ ## [4.0.0-alpha.12](https://github.com/dynamic-labs/dynamic-auth/compare/v4.0.0-alpha.11...v4.0.0-alpha.12) (2024-10-18)
3
+
4
+
5
+ ### Features
6
+
7
+ * add support for xverse account change event ([#7114](https://github.com/dynamic-labs/dynamic-auth/issues/7114)) ([79df047](https://github.com/dynamic-labs/dynamic-auth/commit/79df04775edb297a339e2d74adcc873584a6d8af))
8
+ * solana embedded signall headless ([#7132](https://github.com/dynamic-labs/dynamic-auth/issues/7132)) ([fe16b71](https://github.com/dynamic-labs/dynamic-auth/commit/fe16b71a4c0ad775f8de87ca899cfdd1071f11d6))
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * bug where embeddedWalletCreated event was fired before listener … ([#7151](https://github.com/dynamic-labs/dynamic-auth/issues/7151)) ([ae9da56](https://github.com/dynamic-labs/dynamic-auth/commit/ae9da56850130491384a2d5f47c1617815dcce5b))
14
+ * edge case where wallet book fails to load ([#7148](https://github.com/dynamic-labs/dynamic-auth/issues/7148)) ([805dc6d](https://github.com/dynamic-labs/dynamic-auth/commit/805dc6d7cc4cdf0b23748d82b3bd8216d88d55b5))
15
+ * issues where native currency icons were incorrect ([#7126](https://github.com/dynamic-labs/dynamic-auth/issues/7126)) ([8b8891a](https://github.com/dynamic-labs/dynamic-auth/commit/8b8891a52397e17cc127ea3a09ade14c4b70a8ee))
16
+ * remove now-unused sessionTimeout from useSocial ([#7123](https://github.com/dynamic-labs/dynamic-auth/issues/7123)) ([7959a8a](https://github.com/dynamic-labs/dynamic-auth/commit/7959a8a4c8ceb76c5c4f1ae91af204bf9c5cae7b))
17
+ * Revert: Update Exodus extension version " ([#7130](https://github.com/dynamic-labs/dynamic-auth/issues/7130)) ([f2274ae](https://github.com/dynamic-labs/dynamic-auth/commit/f2274aefd29bb9f3fb6de8493e4a5f73946a5600)), closes [#7129](https://github.com/dynamic-labs/dynamic-auth/issues/7129)
18
+ * use embedded primaryChain when passing undefined chains list to createTurnkeyWallet ([#7149](https://github.com/dynamic-labs/dynamic-auth/issues/7149)) ([c73a3ae](https://github.com/dynamic-labs/dynamic-auth/commit/c73a3aeeda8045b936d218f7078ad79967c321ef))
19
+
2
20
  ## [4.0.0-alpha.11](https://github.com/dynamic-labs/dynamic-auth/compare/v4.0.0-alpha.10...v4.0.0-alpha.11) (2024-10-15)
3
21
 
4
22
 
package/package.cjs CHANGED
@@ -3,6 +3,6 @@
3
3
 
4
4
  Object.defineProperty(exports, '__esModule', { value: true });
5
5
 
6
- var version = "4.0.0-alpha.11";
6
+ var version = "4.0.0-alpha.12";
7
7
 
8
8
  exports.version = version;
package/package.js CHANGED
@@ -1,4 +1,4 @@
1
1
  'use client'
2
- var version = "4.0.0-alpha.11";
2
+ var version = "4.0.0-alpha.12";
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.0.0-alpha.11",
3
+ "version": "4.0.0-alpha.12",
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,15 +18,15 @@
18
18
  },
19
19
  "homepage": "https://www.dynamic.xyz/",
20
20
  "dependencies": {
21
- "@dynamic-labs/sdk-api-core": "0.0.545"
21
+ "@dynamic-labs/sdk-api-core": "0.0.547"
22
22
  },
23
23
  "peerDependencies": {
24
- "@dynamic-labs/assert-package-version": "4.0.0-alpha.11",
25
- "@dynamic-labs/logger": "4.0.0-alpha.11",
26
- "@dynamic-labs/rpc-providers": "4.0.0-alpha.11",
27
- "@dynamic-labs/types": "4.0.0-alpha.11",
28
- "@dynamic-labs/utils": "4.0.0-alpha.11",
29
- "@dynamic-labs/wallet-book": "4.0.0-alpha.11",
24
+ "@dynamic-labs/assert-package-version": "4.0.0-alpha.12",
25
+ "@dynamic-labs/logger": "4.0.0-alpha.12",
26
+ "@dynamic-labs/rpc-providers": "4.0.0-alpha.12",
27
+ "@dynamic-labs/types": "4.0.0-alpha.12",
28
+ "@dynamic-labs/utils": "4.0.0-alpha.12",
29
+ "@dynamic-labs/wallet-book": "4.0.0-alpha.12",
30
30
  "eventemitter3": "5.0.1"
31
31
  }
32
32
  }
package/src/index.cjs CHANGED
@@ -7,6 +7,7 @@ var assertPackageVersion = require('@dynamic-labs/assert-package-version');
7
7
  var _package = require('../package.cjs');
8
8
  var WalletConnector = require('./lib/WalletConnector.cjs');
9
9
  var Wallet = require('./lib/wallets/Wallet/Wallet.cjs');
10
+ var walletConnectorEvents = require('./lib/events/walletConnectorEvents.cjs');
10
11
  var logger = require('./utils/logger.cjs');
11
12
  var ProviderLookup = require('./utils/ProviderLookup/ProviderLookup.cjs');
12
13
  var getChainInfo = require('./utils/getChainInfo/getChainInfo.cjs');
@@ -44,6 +45,7 @@ exports.Chains = WalletConnector.Chains;
44
45
  exports.WalletConnectorBase = WalletConnector.WalletConnectorBase;
45
46
  exports.socialProviders = WalletConnector.socialProviders;
46
47
  exports.Wallet = Wallet.Wallet;
48
+ exports.walletConnectorEvents = walletConnectorEvents.walletConnectorEvents;
47
49
  exports.logger = logger.logger;
48
50
  exports.ProviderLookup = ProviderLookup.ProviderLookup;
49
51
  exports.getChainInfo = getChainInfo.getChainInfo;
package/src/index.d.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  export { Chains, Wallet, WalletConnectorBase, socialProviders, type Attestation, type AuthenticatorRecoveryHandler, type AuthenticatorType, type BitcoinSignPsbtRequest, type BitcoinSignPsbtRequestSignature, type BitcoinSignPsbtResponse, type Chain, type ChainInfo, type ExportHandler, type ExtendedPrivateKey, type GetAddressOpts, type IAccountAbstractionWalletConnector, type IBitcoinWalletConnector, type ICoinbaseMPCWalletConnector, type IEmailOTPWalletConnector, type IEmailWalletConnector, type IHardwareWalletConnector, type ITurnkeyWalletConnector, type InternalWalletConnector, type IPasskeyWalletConnector, type IPhantomRedirectConnector, type IPhantomRedirectConnectorWithEvents, type ISMSWalletConnector, type ISendBalanceWalletConnector, type ISessionKeyCompatibleWalletConnector, type ITurnkeyWalletConnectorStamper, type IWalletConnectConnector, type NameServiceData, type PayloadParams, type RawPrivateKey, type RecoveryEmailParams, type RecoveryWebAuthnAttestation, type SignAllTransactionsListener, type SignAndSendTransactionListener, type SignMessageListener, type SignTransactionListener, type SocialProvider, type WalletConnector, type WalletConnectorConstructor, type WalletConnectorCore, type WalletConnectorEventTypes, type WalletConnectorsMethod, type WalletConstructor, type WalletProps, type WebAuthnAttestation, } from './lib';
2
2
  export type { WalletConnectorExtension } from './lib/WalletConnectorExtension';
3
+ export { walletConnectorEvents } from './lib/events';
3
4
  export type { AccountChangeEventHandler, ChainChangeEventHandler, DisconnectEventHandler, } from './types';
4
5
  export { ProviderLookup, addHexPrefix, bufferToHex, eventListenerHandlers, getChainInfo, getChainInfoWithOverrides, setChainInfoOverrides, getDeepLink, getMobileExperience, getRpcUrlForChain, getWalletConnectorByKey, isAccountAbstractionConnector, isBitcoinConnector, isBloctoConnector, isCoinbaseMpcWalletConnector, isTurnkeyWalletConnector, isEmailOTPWalletConnector, isEmailWalletConnector, isEmbeddedConnector, isHardwareWalletConnector, isHex, isMagicConnector, isPasskeyWalletConnector, isPhantomRedirectConnector, isSameAddress, isSendBalanceWalletConnector, isSessionKeyCompatibleWallet, isSessionKeyCompatibleWalletConnector, isSocialWalletConnector, isWalletConnectConnector, logger, performPlatformSpecificConnectionMethod, shouldLowercaseAddress, utf8ToHex, type DeepLinkVariant, type ProviderCondition, type ChainDisplayOverrides, } from './utils';
package/src/index.js CHANGED
@@ -3,6 +3,7 @@ import { assertPackageVersion } from '@dynamic-labs/assert-package-version';
3
3
  import { version } from '../package.js';
4
4
  export { Chains, WalletConnectorBase, socialProviders } from './lib/WalletConnector.js';
5
5
  export { Wallet } from './lib/wallets/Wallet/Wallet.js';
6
+ export { walletConnectorEvents } from './lib/events/walletConnectorEvents.js';
6
7
  export { logger } from './utils/logger.js';
7
8
  export { ProviderLookup } from './utils/ProviderLookup/ProviderLookup.js';
8
9
  export { getChainInfo, getChainInfoWithOverrides, setChainInfoOverrides } from './utils/getChainInfo/getChainInfo.js';
@@ -0,0 +1 @@
1
+ export * from './walletConnectorEvents';
@@ -0,0 +1,14 @@
1
+ 'use client'
2
+ 'use strict';
3
+
4
+ Object.defineProperty(exports, '__esModule', { value: true });
5
+
6
+ var EventEmitter = require('eventemitter3');
7
+
8
+ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
9
+
10
+ var EventEmitter__default = /*#__PURE__*/_interopDefaultLegacy(EventEmitter);
11
+
12
+ const walletConnectorEvents = new EventEmitter__default["default"]();
13
+
14
+ exports.walletConnectorEvents = walletConnectorEvents;
@@ -0,0 +1,26 @@
1
+ import EventEmitter from 'eventemitter3';
2
+ import { InternalWalletConnector } from '../WalletConnector';
3
+ type AutoConnectEventProps = {
4
+ connector: InternalWalletConnector;
5
+ };
6
+ type ProviderReadyEventProps = {
7
+ connector: InternalWalletConnector;
8
+ };
9
+ export type WalletConnectorEvents = {
10
+ /**
11
+ * This is useful for when we want to auto-connect/login with a wallet
12
+ * without the user having to select it from the list, as long as
13
+ * the wallet is already connected to the dapp
14
+ *
15
+ * For example, we can auto-connect to a Safe wallet from a a Safe App
16
+ */
17
+ autoConnect: (props: AutoConnectEventProps) => void;
18
+ /**
19
+ * This is useful for when we want to know when the wallet provider
20
+ * is ready to be used
21
+ */
22
+ providerReady: (props: ProviderReadyEventProps) => void;
23
+ };
24
+ export declare const walletConnectorEvents: EventEmitter<WalletConnectorEvents, any>;
25
+ export type WalletConnectorEventEmitter = typeof walletConnectorEvents;
26
+ export {};
@@ -0,0 +1,6 @@
1
+ 'use client'
2
+ import EventEmitter from 'eventemitter3';
3
+
4
+ const walletConnectorEvents = new EventEmitter();
5
+
6
+ export { walletConnectorEvents };
@@ -15,3 +15,4 @@ export * from './ISendBalanceWalletConnector';
15
15
  export * from './ISessionKeyCompatibleWalletConnector';
16
16
  export * from './ISMSWalletConnector';
17
17
  export * from './wallets';
18
+ export * from './events';