@dynamic-labs/client 4.47.0 → 4.47.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 +29 -0
- package/package.cjs +1 -1
- package/package.js +1 -1
- package/package.json +8 -8
- package/src/modules/userInterfaceModule/userInterfaceModule.cjs +1 -0
- package/src/modules/userInterfaceModule/userInterfaceModule.d.ts +7 -0
- package/src/modules/userInterfaceModule/userInterfaceModule.js +1 -0
- package/src/modules/walletsModule/walletsModule.cjs +3 -1
- package/src/modules/walletsModule/walletsModule.d.ts +1 -0
- package/src/modules/walletsModule/walletsModule.js +3 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,33 @@
|
|
|
1
1
|
|
|
2
|
+
### [4.47.2](https://github.com/dynamic-labs/dynamic-auth/compare/v4.47.1...v4.47.2) (2025-11-27)
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
### Features
|
|
6
|
+
|
|
7
|
+
* add export client key share from google drive ([#9942](https://github.com/dynamic-labs/dynamic-auth/issues/9942)) ([38091b8](https://github.com/dynamic-labs/dynamic-auth/commit/38091b84cb69713591ab2b78e2cc26d4a56ca407))
|
|
8
|
+
* add token balance refresh to dynamic widget ([#9645](https://github.com/dynamic-labs/dynamic-auth/issues/9645)) ([331954e](https://github.com/dynamic-labs/dynamic-auth/commit/331954ea38c5f4058938392bb4eea973997d0ff6))
|
|
9
|
+
* **react-native:** introduce wallets.connectWallet and wallets.walletOptions ([#9958](https://github.com/dynamic-labs/dynamic-auth/issues/9958)) ([d6d2fff](https://github.com/dynamic-labs/dynamic-auth/commit/d6d2fff3b2a238d8b7a27553d9c6667c40bc53cd))
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
### Bug Fixes
|
|
13
|
+
|
|
14
|
+
* await oauth flow on popup ([#9944](https://github.com/dynamic-labs/dynamic-auth/issues/9944)) ([486a536](https://github.com/dynamic-labs/dynamic-auth/commit/486a5365066f1492ddd47ff830eb5a4f347e5ab3))
|
|
15
|
+
* ensure MFA modal only open when necessary ([#9959](https://github.com/dynamic-labs/dynamic-auth/issues/9959)) ([1783a61](https://github.com/dynamic-labs/dynamic-auth/commit/1783a61ddf97eb8af82c132cfc531fee7f57fa0f))
|
|
16
|
+
|
|
17
|
+
### [4.47.1](https://github.com/dynamic-labs/dynamic-auth/compare/v4.47.0...v4.47.1) (2025-11-24)
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Features
|
|
21
|
+
|
|
22
|
+
* add aptos non-native coins to sendBalance ([#9914](https://github.com/dynamic-labs/dynamic-auth/issues/9914)) ([0f0f855](https://github.com/dynamic-labs/dynamic-auth/commit/0f0f855229a052eb280831c81d235b0164f26ff3))
|
|
23
|
+
* add aptos non-native token sending to dynamic widget ([#9915](https://github.com/dynamic-labs/dynamic-auth/issues/9915)) ([c91c117](https://github.com/dynamic-labs/dynamic-auth/commit/c91c1172d5185c151f9b4cac1a0757f6d72304ca))
|
|
24
|
+
* **react-native:** add waas wallet upgrade to react-native ([#9936](https://github.com/dynamic-labs/dynamic-auth/issues/9936)) ([024366e](https://github.com/dynamic-labs/dynamic-auth/commit/024366e179b284353d0b05667e916a01520b2874))
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
### Bug Fixes
|
|
28
|
+
|
|
29
|
+
* remove noise from wallet connect when it is disabled ([#9945](https://github.com/dynamic-labs/dynamic-auth/issues/9945)) ([ada6511](https://github.com/dynamic-labs/dynamic-auth/commit/ada6511e2d25351f1b63312eb4810752f6d95ad6))
|
|
30
|
+
|
|
2
31
|
## [4.47.0](https://github.com/dynamic-labs/dynamic-auth/compare/v4.46.3...v4.47.0) (2025-11-21)
|
|
3
32
|
|
|
4
33
|
|
package/package.cjs
CHANGED
package/package.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dynamic-labs/client",
|
|
3
|
-
"version": "4.47.
|
|
3
|
+
"version": "4.47.2",
|
|
4
4
|
"description": "Core package for utilizing Dynamic's sdk",
|
|
5
5
|
"author": "Dynamic Labs, Inc.",
|
|
6
6
|
"license": "MIT",
|
|
@@ -19,13 +19,13 @@
|
|
|
19
19
|
"homepage": "https://www.dynamic.xyz/",
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@vue/reactivity": "^3.4.21",
|
|
22
|
-
"@dynamic-labs/sdk-api-core": "0.0.
|
|
23
|
-
"@dynamic-labs/assert-package-version": "4.47.
|
|
24
|
-
"@dynamic-labs/locale": "4.47.
|
|
25
|
-
"@dynamic-labs/logger": "4.47.
|
|
26
|
-
"@dynamic-labs/message-transport": "4.47.
|
|
27
|
-
"@dynamic-labs/types": "4.47.
|
|
28
|
-
"@dynamic-labs/webview-messages": "4.47.
|
|
22
|
+
"@dynamic-labs/sdk-api-core": "0.0.823",
|
|
23
|
+
"@dynamic-labs/assert-package-version": "4.47.2",
|
|
24
|
+
"@dynamic-labs/locale": "4.47.2",
|
|
25
|
+
"@dynamic-labs/logger": "4.47.2",
|
|
26
|
+
"@dynamic-labs/message-transport": "4.47.2",
|
|
27
|
+
"@dynamic-labs/types": "4.47.2",
|
|
28
|
+
"@dynamic-labs/webview-messages": "4.47.2",
|
|
29
29
|
"eventemitter3": "5.0.1"
|
|
30
30
|
},
|
|
31
31
|
"peerDependencies": {}
|
|
@@ -57,6 +57,7 @@ const createUserInterfaceModule = (core) => {
|
|
|
57
57
|
show: () => userInterfaceRequestChannel.emit('openUserProfile'),
|
|
58
58
|
},
|
|
59
59
|
wallets: {
|
|
60
|
+
promptUpgradeToDynamicWaasFlow: () => userInterfaceRequestChannel.emit('promptUpgradeToDynamicWaasFlow'),
|
|
60
61
|
revealEmbeddedWalletKey: (params) => userInterfaceRequestChannel.emit('revealEmbeddedWalletKey', params),
|
|
61
62
|
},
|
|
62
63
|
});
|
|
@@ -37,6 +37,13 @@ type UserInterfaceModuleMethods = {
|
|
|
37
37
|
};
|
|
38
38
|
wallets: {
|
|
39
39
|
revealEmbeddedWalletKey: UserInterfaceModuleMessages['revealEmbeddedWalletKey'];
|
|
40
|
+
/**
|
|
41
|
+
* Opens a view that allows the user to upgrade to MPC v3 wallets.
|
|
42
|
+
*
|
|
43
|
+
* Resolves when our SDK receives the request.
|
|
44
|
+
* Rejects if the request is not received.
|
|
45
|
+
*/
|
|
46
|
+
promptUpgradeToDynamicWaasFlow: () => Promise<void>;
|
|
40
47
|
};
|
|
41
48
|
fundingOptions: {
|
|
42
49
|
/**
|
|
@@ -53,6 +53,7 @@ const createUserInterfaceModule = (core) => {
|
|
|
53
53
|
show: () => userInterfaceRequestChannel.emit('openUserProfile'),
|
|
54
54
|
},
|
|
55
55
|
wallets: {
|
|
56
|
+
promptUpgradeToDynamicWaasFlow: () => userInterfaceRequestChannel.emit('promptUpgradeToDynamicWaasFlow'),
|
|
56
57
|
revealEmbeddedWalletKey: (params) => userInterfaceRequestChannel.emit('revealEmbeddedWalletKey', params),
|
|
57
58
|
},
|
|
58
59
|
});
|
|
@@ -15,7 +15,7 @@ const defaultConnectedWalletHandler = () => Promise.resolve(true);
|
|
|
15
15
|
const createWalletsModule = (core) => {
|
|
16
16
|
const requestChannel = messageTransport.createRequestChannel(core.messageTransport);
|
|
17
17
|
const store = messageTransport.createStore({
|
|
18
|
-
initialState: { primary: null, userWallets: [] },
|
|
18
|
+
initialState: { primary: null, userWallets: [], walletOptions: [] },
|
|
19
19
|
key: 'wallets',
|
|
20
20
|
messageTransport: core.messageTransport,
|
|
21
21
|
});
|
|
@@ -38,9 +38,11 @@ const createWalletsModule = (core) => {
|
|
|
38
38
|
walletConnected: defaultConnectedWalletHandler,
|
|
39
39
|
};
|
|
40
40
|
requestChannel.handle('handleConnectedWallet', (wallet) => handlers.walletConnected(wallet));
|
|
41
|
+
const connectWallet = (connectorKey) => requestChannel.request('connectWallet', connectorKey);
|
|
41
42
|
return Object.assign(store.getters, pickListenerActions.pickListenerActions(messageEvents), {
|
|
42
43
|
accountAbstraction: accountAbstractionModule.createAccountAbstractionModule(core),
|
|
43
44
|
clearHandler: () => (handlers.walletConnected = defaultConnectedWalletHandler),
|
|
45
|
+
connectWallet,
|
|
44
46
|
embedded: embeddedWalletsModule.createEmbeddedWalletsModule(core),
|
|
45
47
|
getBalance,
|
|
46
48
|
getMultichainBalances,
|
|
@@ -20,6 +20,7 @@ export type WalletsModule = WalletsModuleState & PickedEventListeners<PublicWall
|
|
|
20
20
|
getMultichainBalances: WalletsModuleMessages['getMultichainBalances'];
|
|
21
21
|
simulateEVMTransaction: WalletsModuleMessages['simulateEVMTransaction'];
|
|
22
22
|
simulateEVMTransactionAA: WalletsModuleMessages['simulateEVMTransactionAA'];
|
|
23
|
+
connectWallet: (connectorKey: string) => Promise<BaseWallet>;
|
|
23
24
|
onWalletEvent: WalletEventListener;
|
|
24
25
|
offWalletEvent: WalletEventListener;
|
|
25
26
|
setHandler: (name: 'walletConnected', handler: ConnectedWalletsHandler) => void;
|
|
@@ -11,7 +11,7 @@ const defaultConnectedWalletHandler = () => Promise.resolve(true);
|
|
|
11
11
|
const createWalletsModule = (core) => {
|
|
12
12
|
const requestChannel = createRequestChannel(core.messageTransport);
|
|
13
13
|
const store = createStore({
|
|
14
|
-
initialState: { primary: null, userWallets: [] },
|
|
14
|
+
initialState: { primary: null, userWallets: [], walletOptions: [] },
|
|
15
15
|
key: 'wallets',
|
|
16
16
|
messageTransport: core.messageTransport,
|
|
17
17
|
});
|
|
@@ -34,9 +34,11 @@ const createWalletsModule = (core) => {
|
|
|
34
34
|
walletConnected: defaultConnectedWalletHandler,
|
|
35
35
|
};
|
|
36
36
|
requestChannel.handle('handleConnectedWallet', (wallet) => handlers.walletConnected(wallet));
|
|
37
|
+
const connectWallet = (connectorKey) => requestChannel.request('connectWallet', connectorKey);
|
|
37
38
|
return Object.assign(store.getters, pickListenerActions(messageEvents), {
|
|
38
39
|
accountAbstraction: createAccountAbstractionModule(core),
|
|
39
40
|
clearHandler: () => (handlers.walletConnected = defaultConnectedWalletHandler),
|
|
41
|
+
connectWallet,
|
|
40
42
|
embedded: createEmbeddedWalletsModule(core),
|
|
41
43
|
getBalance,
|
|
42
44
|
getMultichainBalances,
|