@dynamic-labs/wallet-connector-core 3.3.0 → 3.4.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 +17 -0
- package/package.cjs +8 -0
- package/package.js +4 -0
- package/package.json +8 -7
- package/src/index.cjs +5 -1
- package/src/index.d.ts +1 -0
- package/src/index.js +5 -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,21 @@
|
|
|
1
1
|
|
|
2
|
+
### [3.4.1](https://github.com/dynamic-labs/DynamicAuth/compare/v3.4.0...v3.4.1) (2024-10-17)
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
### Bug Fixes
|
|
6
|
+
|
|
7
|
+
* bug where embeddedWalletCreated event was fired before listener was attached ([#7154](https://github.com/dynamic-labs/DynamicAuth/issues/7154)) ([c782de2](https://github.com/dynamic-labs/DynamicAuth/commit/c782de2900097c389f8e388807b63820827ca430)), closes [#7151](https://github.com/dynamic-labs/DynamicAuth/issues/7151)
|
|
8
|
+
|
|
9
|
+
## [3.4.0](https://github.com/dynamic-labs/DynamicAuth/compare/v3.3.0...v3.4.0) (2024-10-16)
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
### Features
|
|
13
|
+
|
|
14
|
+
* add support for add Oyl Wallet ([#7140](https://github.com/dynamic-labs/DynamicAuth/issues/7140)) ([f683f10](https://github.com/dynamic-labs/DynamicAuth/commit/f683f108098a2effac0f3b78c35bf2be73c1263c))
|
|
15
|
+
* add support for xverse account change event ([#7131](https://github.com/dynamic-labs/DynamicAuth/issues/7131)) ([bc34105](https://github.com/dynamic-labs/DynamicAuth/commit/bc341059903dc4d494f8d3ab127fa1adbec69c3a))
|
|
16
|
+
* embedded wallet signAllTransaction headless functionality for solana ([#7134](https://github.com/dynamic-labs/DynamicAuth/issues/7134)) ([15fa689](https://github.com/dynamic-labs/DynamicAuth/commit/15fa689f1f3bd591f10b19875d53f7cc3ffe1ebd))
|
|
17
|
+
* support ability to define additional oauth scopes ([#7113](https://github.com/dynamic-labs/DynamicAuth/issues/7113)) ([75c7f90](https://github.com/dynamic-labs/DynamicAuth/commit/75c7f9091b936153597b081d261e15cd1186623a))
|
|
18
|
+
|
|
2
19
|
## [3.3.0](https://github.com/dynamic-labs/DynamicAuth/compare/v3.2.0...v3.3.0) (2024-10-08)
|
|
3
20
|
|
|
4
21
|
|
package/package.cjs
ADDED
package/package.js
ADDED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dynamic-labs/wallet-connector-core",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.4.1",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+https://github.com/dynamic-labs/dynamic-auth.git",
|
|
@@ -26,14 +26,15 @@
|
|
|
26
26
|
"./package.json": "./package.json"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@dynamic-labs/sdk-api-core": "0.0.
|
|
29
|
+
"@dynamic-labs/sdk-api-core": "0.0.547"
|
|
30
30
|
},
|
|
31
31
|
"peerDependencies": {
|
|
32
|
-
"@dynamic-labs/
|
|
33
|
-
"@dynamic-labs/
|
|
34
|
-
"@dynamic-labs/
|
|
35
|
-
"@dynamic-labs/
|
|
36
|
-
"@dynamic-labs/
|
|
32
|
+
"@dynamic-labs/assert-package-version": "3.4.1",
|
|
33
|
+
"@dynamic-labs/logger": "3.4.1",
|
|
34
|
+
"@dynamic-labs/rpc-providers": "3.4.1",
|
|
35
|
+
"@dynamic-labs/types": "3.4.1",
|
|
36
|
+
"@dynamic-labs/utils": "3.4.1",
|
|
37
|
+
"@dynamic-labs/wallet-book": "3.4.1",
|
|
37
38
|
"eventemitter3": "5.0.1"
|
|
38
39
|
}
|
|
39
40
|
}
|
package/src/index.cjs
CHANGED
|
@@ -3,8 +3,11 @@
|
|
|
3
3
|
|
|
4
4
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
5
5
|
|
|
6
|
+
var assertPackageVersion = require('@dynamic-labs/assert-package-version');
|
|
7
|
+
var _package = require('../package.cjs');
|
|
6
8
|
var WalletConnector = require('./lib/WalletConnector.cjs');
|
|
7
9
|
var Wallet = require('./lib/wallets/Wallet/Wallet.cjs');
|
|
10
|
+
var walletConnectorEvents = require('./lib/events/walletConnectorEvents.cjs');
|
|
8
11
|
var logger = require('./utils/logger.cjs');
|
|
9
12
|
var ProviderLookup = require('./utils/ProviderLookup/ProviderLookup.cjs');
|
|
10
13
|
var getChainInfo = require('./utils/getChainInfo/getChainInfo.cjs');
|
|
@@ -36,12 +39,13 @@ var isSessionKeyCompatibleWallet = require('./utils/isSessionKeyCompatible/isSes
|
|
|
36
39
|
var isSessionKeyCompatibleWalletConnector = require('./utils/isSessionKeyCompatible/isSessionKeyCompatibleWalletConnector/isSessionKeyCompatibleWalletConnector.cjs');
|
|
37
40
|
var getMobileExperience = require('./utils/getMobileExperience/getMobileExperience.cjs');
|
|
38
41
|
|
|
39
|
-
|
|
42
|
+
assertPackageVersion.assertPackageVersion('@dynamic-labs/wallet-connector-core', _package.version);
|
|
40
43
|
|
|
41
44
|
exports.Chains = WalletConnector.Chains;
|
|
42
45
|
exports.WalletConnectorBase = WalletConnector.WalletConnectorBase;
|
|
43
46
|
exports.socialProviders = WalletConnector.socialProviders;
|
|
44
47
|
exports.Wallet = Wallet.Wallet;
|
|
48
|
+
exports.walletConnectorEvents = walletConnectorEvents.walletConnectorEvents;
|
|
45
49
|
exports.logger = logger.logger;
|
|
46
50
|
exports.ProviderLookup = ProviderLookup.ProviderLookup;
|
|
47
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
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
'use client'
|
|
2
|
+
import { assertPackageVersion } from '@dynamic-labs/assert-package-version';
|
|
3
|
+
import { version } from '../package.js';
|
|
2
4
|
export { Chains, WalletConnectorBase, socialProviders } from './lib/WalletConnector.js';
|
|
3
5
|
export { Wallet } from './lib/wallets/Wallet/Wallet.js';
|
|
6
|
+
export { walletConnectorEvents } from './lib/events/walletConnectorEvents.js';
|
|
4
7
|
export { logger } from './utils/logger.js';
|
|
5
8
|
export { ProviderLookup } from './utils/ProviderLookup/ProviderLookup.js';
|
|
6
9
|
export { getChainInfo, getChainInfoWithOverrides, setChainInfoOverrides } from './utils/getChainInfo/getChainInfo.js';
|
|
@@ -31,3 +34,5 @@ export { isSendBalanceWalletConnector } from './utils/isSendBalanceWalletConnect
|
|
|
31
34
|
export { isSessionKeyCompatibleWallet } from './utils/isSessionKeyCompatible/isSessionKeyCompatibleWallet/isSessionKeyCompatibleWallet.js';
|
|
32
35
|
export { isSessionKeyCompatibleWalletConnector } from './utils/isSessionKeyCompatible/isSessionKeyCompatibleWalletConnector/isSessionKeyCompatibleWalletConnector.js';
|
|
33
36
|
export { getMobileExperience } from './utils/getMobileExperience/getMobileExperience.js';
|
|
37
|
+
|
|
38
|
+
assertPackageVersion('@dynamic-labs/wallet-connector-core', version);
|
|
@@ -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