@dynamic-labs/client 4.70.0 → 4.71.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 +13 -0
- package/package.cjs +1 -1
- package/package.js +1 -1
- package/package.json +8 -8
- package/src/modules/deviceRegistrationModule/deviceRegistrationModule.cjs +7 -1
- package/src/modules/deviceRegistrationModule/deviceRegistrationModule.d.ts +4 -3
- package/src/modules/deviceRegistrationModule/deviceRegistrationModule.js +8 -2
- package/src/modules/walletsModule/delegationModule/delegationModule.cjs +12 -2
- package/src/modules/walletsModule/delegationModule/delegationModule.d.ts +3 -2
- package/src/modules/walletsModule/delegationModule/delegationModule.js +13 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,17 @@
|
|
|
1
1
|
|
|
2
|
+
## [4.71.0](https://github.com/dynamic-labs/dynamic-auth/compare/v4.70.0...v4.71.0) (2026-03-24)
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
### Features
|
|
6
|
+
|
|
7
|
+
* add Tempo chain connector and core type definitions ([#10672](https://github.com/dynamic-labs/dynamic-auth/issues/10672)) ([0439c15](https://github.com/dynamic-labs/dynamic-auth/commit/0439c153238359083b9f226dcd2ebf6d83e26519))
|
|
8
|
+
* add verifySocial method to demo site step-up auth methods ([#10721](https://github.com/dynamic-labs/dynamic-auth/issues/10721)) ([b9ef517](https://github.com/dynamic-labs/dynamic-auth/commit/b9ef5173df3e3ed08f718de49b036ea899dc1832))
|
|
9
|
+
* **demo:** add Tempo chain support to demo app ([#10674](https://github.com/dynamic-labs/dynamic-auth/issues/10674)) ([a5918fc](https://github.com/dynamic-labs/dynamic-auth/commit/a5918fc2ab0821e7f025aa470573129f71de33cc))
|
|
10
|
+
* repurpose verifyWithExternalJwt for elevated access token requests ([#10743](https://github.com/dynamic-labs/dynamic-auth/issues/10743)) ([d1abda0](https://github.com/dynamic-labs/dynamic-auth/commit/d1abda0111d68c78226d30bd0630e6e341dedad9))
|
|
11
|
+
* **sdk:** add Tempo chain support to UI components ([#10673](https://github.com/dynamic-labs/dynamic-auth/issues/10673)) ([aec9fbb](https://github.com/dynamic-labs/dynamic-auth/commit/aec9fbb20754a2935bffe106e7e8715f46be3de7))
|
|
12
|
+
* support multi-chain wallet creation in createWallet ([#10694](https://github.com/dynamic-labs/dynamic-auth/issues/10694)) ([0b6b57f](https://github.com/dynamic-labs/dynamic-auth/commit/0b6b57f4179c35d1f86d1c8c9c40f52cb307c849))
|
|
13
|
+
* wire up elevatedAccessToken for sign, reshare, and refresh operations ([#10737](https://github.com/dynamic-labs/dynamic-auth/issues/10737)) ([f9d5c76](https://github.com/dynamic-labs/dynamic-auth/commit/f9d5c768037aff4f5d7994b6bc6c338621a6ee6b))
|
|
14
|
+
|
|
2
15
|
## [4.70.0](https://github.com/dynamic-labs/dynamic-auth/compare/v4.69.0...v4.70.0) (2026-03-23)
|
|
3
16
|
|
|
4
17
|
|
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.
|
|
3
|
+
"version": "4.71.0",
|
|
4
4
|
"description": "Core package for utilizing Dynamic's sdk",
|
|
5
5
|
"author": "Dynamic Labs, Inc.",
|
|
6
6
|
"license": "MIT",
|
|
@@ -20,13 +20,13 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@vue/reactivity": "^3.4.21",
|
|
22
22
|
"@dynamic-labs/sdk-api-core": "0.0.909",
|
|
23
|
-
"@dynamic-labs/assert-package-version": "4.
|
|
24
|
-
"@dynamic-labs/locale": "4.
|
|
25
|
-
"@dynamic-labs/logger": "4.
|
|
26
|
-
"@dynamic-labs/message-transport": "4.
|
|
27
|
-
"@dynamic-labs/types": "4.
|
|
28
|
-
"@dynamic-labs/wallet-connector-core": "4.
|
|
29
|
-
"@dynamic-labs/webview-messages": "4.
|
|
23
|
+
"@dynamic-labs/assert-package-version": "4.71.0",
|
|
24
|
+
"@dynamic-labs/locale": "4.71.0",
|
|
25
|
+
"@dynamic-labs/logger": "4.71.0",
|
|
26
|
+
"@dynamic-labs/message-transport": "4.71.0",
|
|
27
|
+
"@dynamic-labs/types": "4.71.0",
|
|
28
|
+
"@dynamic-labs/wallet-connector-core": "4.71.0",
|
|
29
|
+
"@dynamic-labs/webview-messages": "4.71.0",
|
|
30
30
|
"eventemitter3": "5.0.1"
|
|
31
31
|
},
|
|
32
32
|
"peerDependencies": {}
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
5
5
|
|
|
6
6
|
var messageTransport = require('@dynamic-labs/message-transport');
|
|
7
|
+
var webviewMessages = require('@dynamic-labs/webview-messages');
|
|
7
8
|
var pickListenerActions = require('../../utils/pickListenerActions/pickListenerActions.cjs');
|
|
8
9
|
|
|
9
10
|
const createDeviceRegistrationModule = (core) => {
|
|
@@ -15,12 +16,17 @@ const createDeviceRegistrationModule = (core) => {
|
|
|
15
16
|
messageTransport: core.messageTransport,
|
|
16
17
|
});
|
|
17
18
|
const requestChannel = messageTransport.createRequestChannel(core.messageTransport);
|
|
19
|
+
const messageEvents = messageTransport.createEventEmitterForMessages({
|
|
20
|
+
eventNames: webviewMessages.deviceRegistrationEventNames,
|
|
21
|
+
initialEventEmitter: store.eventEmitter,
|
|
22
|
+
messageTransport: core.messageTransport,
|
|
23
|
+
});
|
|
18
24
|
const publicMethods = {
|
|
19
25
|
getRegisteredDevices: (...args) => requestChannel.request('getRegisteredDevices', ...args),
|
|
20
26
|
revokeAllRegisteredDevices: (...args) => requestChannel.request('revokeAllRegisteredDevices', ...args),
|
|
21
27
|
revokeRegisteredDevice: (...args) => requestChannel.request('revokeRegisteredDevice', ...args),
|
|
22
28
|
};
|
|
23
|
-
return Object.assign(store.getters, pickListenerActions.pickListenerActions(
|
|
29
|
+
return Object.assign(store.getters, pickListenerActions.pickListenerActions(messageEvents), publicMethods);
|
|
24
30
|
};
|
|
25
31
|
|
|
26
32
|
exports.createDeviceRegistrationModule = createDeviceRegistrationModule;
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import { StoreEventListeners } from '@dynamic-labs/message-transport';
|
|
2
|
-
import { DeviceRegistrationMessages, DeviceRegistrationModuleState } from '@dynamic-labs/webview-messages';
|
|
1
|
+
import { PickedEventListeners, StoreEventListeners } from '@dynamic-labs/message-transport';
|
|
2
|
+
import { DeviceRegistrationMessages, DeviceRegistrationModuleState, deviceRegistrationEventNames } from '@dynamic-labs/webview-messages';
|
|
3
3
|
import { Core } from '../../client/core';
|
|
4
4
|
type DeviceRegistrationModulePublicMethods = {
|
|
5
5
|
getRegisteredDevices: DeviceRegistrationMessages['getRegisteredDevices'];
|
|
6
6
|
revokeRegisteredDevice: DeviceRegistrationMessages['revokeRegisteredDevice'];
|
|
7
7
|
revokeAllRegisteredDevices: DeviceRegistrationMessages['revokeAllRegisteredDevices'];
|
|
8
8
|
};
|
|
9
|
-
|
|
9
|
+
type PublicDeviceRegistrationMessages = Pick<DeviceRegistrationMessages, typeof deviceRegistrationEventNames[number]>;
|
|
10
|
+
export type DeviceRegistrationModule = DeviceRegistrationModuleState & StoreEventListeners<DeviceRegistrationModuleState> & PickedEventListeners<PublicDeviceRegistrationMessages> & DeviceRegistrationModulePublicMethods;
|
|
10
11
|
export declare const createDeviceRegistrationModule: (core: Core) => DeviceRegistrationModule;
|
|
11
12
|
export {};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
'use client'
|
|
2
|
-
import { createStore, createRequestChannel } from '@dynamic-labs/message-transport';
|
|
2
|
+
import { createStore, createRequestChannel, createEventEmitterForMessages } from '@dynamic-labs/message-transport';
|
|
3
|
+
import { deviceRegistrationEventNames } from '@dynamic-labs/webview-messages';
|
|
3
4
|
import { pickListenerActions } from '../../utils/pickListenerActions/pickListenerActions.js';
|
|
4
5
|
|
|
5
6
|
const createDeviceRegistrationModule = (core) => {
|
|
@@ -11,12 +12,17 @@ const createDeviceRegistrationModule = (core) => {
|
|
|
11
12
|
messageTransport: core.messageTransport,
|
|
12
13
|
});
|
|
13
14
|
const requestChannel = createRequestChannel(core.messageTransport);
|
|
15
|
+
const messageEvents = createEventEmitterForMessages({
|
|
16
|
+
eventNames: deviceRegistrationEventNames,
|
|
17
|
+
initialEventEmitter: store.eventEmitter,
|
|
18
|
+
messageTransport: core.messageTransport,
|
|
19
|
+
});
|
|
14
20
|
const publicMethods = {
|
|
15
21
|
getRegisteredDevices: (...args) => requestChannel.request('getRegisteredDevices', ...args),
|
|
16
22
|
revokeAllRegisteredDevices: (...args) => requestChannel.request('revokeAllRegisteredDevices', ...args),
|
|
17
23
|
revokeRegisteredDevice: (...args) => requestChannel.request('revokeRegisteredDevice', ...args),
|
|
18
24
|
};
|
|
19
|
-
return Object.assign(store.getters, pickListenerActions(
|
|
25
|
+
return Object.assign(store.getters, pickListenerActions(messageEvents), publicMethods);
|
|
20
26
|
};
|
|
21
27
|
|
|
22
28
|
export { createDeviceRegistrationModule };
|
|
@@ -4,10 +4,20 @@
|
|
|
4
4
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
5
5
|
|
|
6
6
|
var messageTransport = require('@dynamic-labs/message-transport');
|
|
7
|
+
var pickListenerActions = require('../../../utils/pickListenerActions/pickListenerActions.cjs');
|
|
7
8
|
|
|
8
9
|
const createDelegationModule = (core) => {
|
|
9
10
|
const requestChannel = messageTransport.createRequestChannel(core.messageTransport);
|
|
10
|
-
|
|
11
|
+
const store = messageTransport.createStore({
|
|
12
|
+
initialState: {
|
|
13
|
+
delegatedAccessEnabled: undefined,
|
|
14
|
+
requiresDelegation: undefined,
|
|
15
|
+
walletsDelegatedStatus: [],
|
|
16
|
+
},
|
|
17
|
+
key: 'delegatedAccess',
|
|
18
|
+
messageTransport: core.messageTransport,
|
|
19
|
+
});
|
|
20
|
+
return Object.assign(store.getters, pickListenerActions.pickListenerActions(store.eventEmitter), {
|
|
11
21
|
clearDelegationSessionState: () => requestChannel.request('clearDelegationSessionState'),
|
|
12
22
|
delegateKeyShares: (params) => requestChannel.request('delegateKeyShares', params),
|
|
13
23
|
denyWalletDelegation: (params) => requestChannel.request('denyWalletDelegation', params),
|
|
@@ -16,7 +26,7 @@ const createDelegationModule = (core) => {
|
|
|
16
26
|
initDelegationProcess: (params) => requestChannel.request('initDelegationProcess', params),
|
|
17
27
|
revokeDelegation: (params) => requestChannel.request('revokeDelegation', params),
|
|
18
28
|
shouldPromptWalletDelegation: () => requestChannel.request('shouldPromptWalletDelegation'),
|
|
19
|
-
};
|
|
29
|
+
});
|
|
20
30
|
};
|
|
21
31
|
|
|
22
32
|
exports.createDelegationModule = createDelegationModule;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { PickedEventListeners, StoreStateEvents, StoreStateGetters } from '@dynamic-labs/message-transport';
|
|
2
|
+
import { DelegatedAccessMessages, DelegatedAccessState } from '@dynamic-labs/webview-messages';
|
|
2
3
|
import { Core } from '../../../client/core';
|
|
3
4
|
export type DelegationModule = {
|
|
4
5
|
initDelegationProcess: DelegatedAccessMessages['initDelegationProcess'];
|
|
@@ -9,5 +10,5 @@ export type DelegationModule = {
|
|
|
9
10
|
denyWalletDelegation: DelegatedAccessMessages['denyWalletDelegation'];
|
|
10
11
|
dismissDelegationPrompt: DelegatedAccessMessages['dismissDelegationPrompt'];
|
|
11
12
|
clearDelegationSessionState: DelegatedAccessMessages['clearDelegationSessionState'];
|
|
12
|
-
}
|
|
13
|
+
} & StoreStateGetters<DelegatedAccessState> & PickedEventListeners<StoreStateEvents<DelegatedAccessState>>;
|
|
13
14
|
export declare const createDelegationModule: (core: Core) => DelegationModule;
|
|
@@ -1,9 +1,19 @@
|
|
|
1
1
|
'use client'
|
|
2
|
-
import { createRequestChannel } from '@dynamic-labs/message-transport';
|
|
2
|
+
import { createRequestChannel, createStore } from '@dynamic-labs/message-transport';
|
|
3
|
+
import { pickListenerActions } from '../../../utils/pickListenerActions/pickListenerActions.js';
|
|
3
4
|
|
|
4
5
|
const createDelegationModule = (core) => {
|
|
5
6
|
const requestChannel = createRequestChannel(core.messageTransport);
|
|
6
|
-
|
|
7
|
+
const store = createStore({
|
|
8
|
+
initialState: {
|
|
9
|
+
delegatedAccessEnabled: undefined,
|
|
10
|
+
requiresDelegation: undefined,
|
|
11
|
+
walletsDelegatedStatus: [],
|
|
12
|
+
},
|
|
13
|
+
key: 'delegatedAccess',
|
|
14
|
+
messageTransport: core.messageTransport,
|
|
15
|
+
});
|
|
16
|
+
return Object.assign(store.getters, pickListenerActions(store.eventEmitter), {
|
|
7
17
|
clearDelegationSessionState: () => requestChannel.request('clearDelegationSessionState'),
|
|
8
18
|
delegateKeyShares: (params) => requestChannel.request('delegateKeyShares', params),
|
|
9
19
|
denyWalletDelegation: (params) => requestChannel.request('denyWalletDelegation', params),
|
|
@@ -12,7 +22,7 @@ const createDelegationModule = (core) => {
|
|
|
12
22
|
initDelegationProcess: (params) => requestChannel.request('initDelegationProcess', params),
|
|
13
23
|
revokeDelegation: (params) => requestChannel.request('revokeDelegation', params),
|
|
14
24
|
shouldPromptWalletDelegation: () => requestChannel.request('shouldPromptWalletDelegation'),
|
|
15
|
-
};
|
|
25
|
+
});
|
|
16
26
|
};
|
|
17
27
|
|
|
18
28
|
export { createDelegationModule };
|