@dynamic-labs/wallet-connector-core 4.0.0-alpha.11 → 4.0.0-alpha.13
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 +25 -0
- package/package.cjs +1 -1
- package/package.js +1 -1
- package/package.json +8 -8
- package/src/index.cjs +2 -0
- package/src/index.d.ts +1 -0
- package/src/index.js +1 -0
- package/src/lib/events/index.d.ts +1 -0
- package/src/lib/events/walletConnectorEvents.cjs +14 -0
- package/src/lib/events/walletConnectorEvents.d.ts +26 -0
- package/src/lib/events/walletConnectorEvents.js +6 -0
- package/src/lib/index.d.ts +1 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,29 @@
|
|
|
1
1
|
|
|
2
|
+
## [4.0.0-alpha.13](https://github.com/dynamic-labs/dynamic-auth/compare/v4.0.0-alpha.12...v4.0.0-alpha.13) (2024-10-18)
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
### Bug Fixes
|
|
6
|
+
|
|
7
|
+
* improve displayed chain name in network switcher ([#7153](https://github.com/dynamic-labs/dynamic-auth/issues/7153)) ([55d2e5a](https://github.com/dynamic-labs/dynamic-auth/commit/55d2e5a9954bf0255b5caf7aba7a6f1f2e215967))
|
|
8
|
+
|
|
9
|
+
## [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)
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
### Features
|
|
13
|
+
|
|
14
|
+
* 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))
|
|
15
|
+
* solana embedded signall headless ([#7132](https://github.com/dynamic-labs/dynamic-auth/issues/7132)) ([fe16b71](https://github.com/dynamic-labs/dynamic-auth/commit/fe16b71a4c0ad775f8de87ca899cfdd1071f11d6))
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
### Bug Fixes
|
|
19
|
+
|
|
20
|
+
* 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))
|
|
21
|
+
* 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))
|
|
22
|
+
* 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))
|
|
23
|
+
* 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))
|
|
24
|
+
* 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)
|
|
25
|
+
* 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))
|
|
26
|
+
|
|
2
27
|
## [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
28
|
|
|
4
29
|
|
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.0.0-alpha.
|
|
3
|
+
"version": "4.0.0-alpha.13",
|
|
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.
|
|
21
|
+
"@dynamic-labs/sdk-api-core": "0.0.547"
|
|
22
22
|
},
|
|
23
23
|
"peerDependencies": {
|
|
24
|
-
"@dynamic-labs/assert-package-version": "4.0.0-alpha.
|
|
25
|
-
"@dynamic-labs/logger": "4.0.0-alpha.
|
|
26
|
-
"@dynamic-labs/rpc-providers": "4.0.0-alpha.
|
|
27
|
-
"@dynamic-labs/types": "4.0.0-alpha.
|
|
28
|
-
"@dynamic-labs/utils": "4.0.0-alpha.
|
|
29
|
-
"@dynamic-labs/wallet-book": "4.0.0-alpha.
|
|
24
|
+
"@dynamic-labs/assert-package-version": "4.0.0-alpha.13",
|
|
25
|
+
"@dynamic-labs/logger": "4.0.0-alpha.13",
|
|
26
|
+
"@dynamic-labs/rpc-providers": "4.0.0-alpha.13",
|
|
27
|
+
"@dynamic-labs/types": "4.0.0-alpha.13",
|
|
28
|
+
"@dynamic-labs/utils": "4.0.0-alpha.13",
|
|
29
|
+
"@dynamic-labs/wallet-book": "4.0.0-alpha.13",
|
|
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 {};
|
package/src/lib/index.d.ts
CHANGED