@dynamic-labs/client 4.67.3-device-registration.0 → 4.69.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 +15 -10
- package/package.cjs +1 -1
- package/package.js +1 -1
- package/package.json +8 -8
- package/src/client/client.cjs +0 -3
- package/src/client/client.d.ts +0 -2
- package/src/client/client.js +0 -3
- package/src/index.d.ts +1 -2
- package/src/modules/deviceRegistrationModule/deviceRegistrationModule.cjs +0 -26
- package/src/modules/deviceRegistrationModule/deviceRegistrationModule.d.ts +0 -11
- package/src/modules/deviceRegistrationModule/deviceRegistrationModule.js +0 -22
- package/src/modules/deviceRegistrationModule/index.d.ts +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,20 +1,25 @@
|
|
|
1
1
|
|
|
2
|
-
|
|
2
|
+
## [4.69.0](https://github.com/dynamic-labs/dynamic-auth/compare/v4.68.0...v4.69.0) (2026-03-19)
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
### Features
|
|
6
6
|
|
|
7
|
-
* add
|
|
8
|
-
* add
|
|
9
|
-
*
|
|
10
|
-
* add step-up auth for email and SMS credential updates ([#10676](https://github.com/dynamic-labs/dynamic-auth/issues/10676)) ([4c7f0a5](https://github.com/dynamic-labs/dynamic-auth/commit/4c7f0a5330e557aea4db85359f7ac10d3c7545a5))
|
|
11
|
-
* add step-up auth for wallet link and unlink ([#10678](https://github.com/dynamic-labs/dynamic-auth/issues/10678)) ([8a015ca](https://github.com/dynamic-labs/dynamic-auth/commit/8a015ca0fd0bda71559c21b811b7e6acb43a7909))
|
|
12
|
-
* add TrustedDevicesSection and ManageTrustedDevicesView ([#10639](https://github.com/dynamic-labs/dynamic-auth/issues/10639)) ([17df870](https://github.com/dynamic-labs/dynamic-auth/commit/17df870caa34a8428d65510e5b3c9e9c7b93cea2))
|
|
13
|
-
* add useSyncDeviceRegistrationFlow ([#10640](https://github.com/dynamic-labs/dynamic-auth/issues/10640)) ([8c7752d](https://github.com/dynamic-labs/dynamic-auth/commit/8c7752d7a8afedaa3cc99fad83091586f7b6107e))
|
|
14
|
-
* **sdk-react-core:** prompt step-up auth before export private key ([#10647](https://github.com/dynamic-labs/dynamic-auth/issues/10647)) ([a39d886](https://github.com/dynamic-labs/dynamic-auth/commit/a39d88643af83484aae09332adcd05df8c0f923c))
|
|
15
|
-
* **step-up:** reauth flow with signInCredentialId and choose-method UI ([#10644](https://github.com/dynamic-labs/dynamic-auth/issues/10644)) ([086a97f](https://github.com/dynamic-labs/dynamic-auth/commit/086a97f27d908780b17f49f8a85ce88c34f61ed8))
|
|
7
|
+
* add MoonPay icon to iconic ([#10666](https://github.com/dynamic-labs/dynamic-auth/issues/10666)) ([19d437b](https://github.com/dynamic-labs/dynamic-auth/commit/19d437b1a55e2b7800d65f375217b735f29d10eb))
|
|
8
|
+
* add step-up auth for OAuth and email credential link and unlink ([#10679](https://github.com/dynamic-labs/dynamic-auth/issues/10679)) ([ba48be8](https://github.com/dynamic-labs/dynamic-auth/commit/ba48be874e44c033563ae107e46a1b90f3c307d6))
|
|
9
|
+
* replace React session chaining with pure SDK implementation ([#10423](https://github.com/dynamic-labs/dynamic-auth/issues/10423)) ([2279421](https://github.com/dynamic-labs/dynamic-auth/commit/227942153828192d316d19295a69d9e7a5baa85c))
|
|
16
10
|
|
|
17
11
|
|
|
12
|
+
### Bug Fixes
|
|
13
|
+
|
|
14
|
+
* csp nonce global styles ([#10591](https://github.com/dynamic-labs/dynamic-auth/issues/10591)) ([6ea9c14](https://github.com/dynamic-labs/dynamic-auth/commit/6ea9c141055b3a337d8841dbebec00c7a3cb5d93))
|
|
15
|
+
|
|
16
|
+
## [4.68.0](https://github.com/dynamic-labs/dynamic-auth/compare/v4.67.2...v4.68.0) (2026-03-19)
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
### Features
|
|
20
|
+
|
|
21
|
+
* add freighter ledger support on stellar ([#10665](https://github.com/dynamic-labs/dynamic-auth/issues/10665)) ([dedbaa6](https://github.com/dynamic-labs/dynamic-auth/commit/dedbaa6038f282b9e41b9166cad3ad6d5032948d))
|
|
22
|
+
|
|
18
23
|
### Bug Fixes
|
|
19
24
|
|
|
20
25
|
* close auth flow on re-login when user already has embedded wallets ([#10641](https://github.com/dynamic-labs/dynamic-auth/issues/10641)) ([1aab930](https://github.com/dynamic-labs/dynamic-auth/commit/1aab9307c904f79bc0534026547fc112c55f6dc9))
|
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.69.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.907",
|
|
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.69.0",
|
|
24
|
+
"@dynamic-labs/locale": "4.69.0",
|
|
25
|
+
"@dynamic-labs/logger": "4.69.0",
|
|
26
|
+
"@dynamic-labs/message-transport": "4.69.0",
|
|
27
|
+
"@dynamic-labs/types": "4.69.0",
|
|
28
|
+
"@dynamic-labs/wallet-connector-core": "4.69.0",
|
|
29
|
+
"@dynamic-labs/webview-messages": "4.69.0",
|
|
30
30
|
"eventemitter3": "5.0.1"
|
|
31
31
|
},
|
|
32
32
|
"peerDependencies": {}
|
package/src/client/client.cjs
CHANGED
|
@@ -6,7 +6,6 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
6
6
|
var logger = require('@dynamic-labs/logger');
|
|
7
7
|
var messageTransport = require('@dynamic-labs/message-transport');
|
|
8
8
|
var authModule = require('../modules/authModule/authModule.cjs');
|
|
9
|
-
var deviceRegistrationModule = require('../modules/deviceRegistrationModule/deviceRegistrationModule.cjs');
|
|
10
9
|
var instrumentationModule = require('../modules/instrumentationModule/instrumentationModule.cjs');
|
|
11
10
|
var localeModule = require('../modules/localeModule/localeModule.cjs');
|
|
12
11
|
var mfaModule = require('../modules/mfaModule/mfaModule.cjs');
|
|
@@ -41,8 +40,6 @@ const createClient = (props) => {
|
|
|
41
40
|
return {
|
|
42
41
|
/** Module that gives access over authentication state, such as the auth token and user */
|
|
43
42
|
auth: authModule.createAuthModule(core$1),
|
|
44
|
-
/** Module that provides access to device registration features */
|
|
45
|
-
deviceRegistration: deviceRegistrationModule.createDeviceRegistrationModule(core$1),
|
|
46
43
|
/** Module that provides locale/translation features */
|
|
47
44
|
locale: localeModule.createLocaleModule(core$1),
|
|
48
45
|
/** Module that provides access to MFA features */
|
package/src/client/client.d.ts
CHANGED
|
@@ -37,8 +37,6 @@ export type ClientProps = {
|
|
|
37
37
|
export declare const createClient: (props: ClientProps) => {
|
|
38
38
|
/** Module that gives access over authentication state, such as the auth token and user */
|
|
39
39
|
auth: import("../modules/authModule").AuthModule;
|
|
40
|
-
/** Module that provides access to device registration features */
|
|
41
|
-
deviceRegistration: import("../modules/deviceRegistrationModule").DeviceRegistrationModule;
|
|
42
40
|
/** Module that provides locale/translation features */
|
|
43
41
|
locale: {
|
|
44
42
|
changeLanguage: (lang: import("dist/packages/locale/src").Lang) => Promise<void>;
|
package/src/client/client.js
CHANGED
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
import { Logger } from '@dynamic-labs/logger';
|
|
3
3
|
import { setGlobalDebugEnabled } from '@dynamic-labs/message-transport';
|
|
4
4
|
import { createAuthModule } from '../modules/authModule/authModule.js';
|
|
5
|
-
import { createDeviceRegistrationModule } from '../modules/deviceRegistrationModule/deviceRegistrationModule.js';
|
|
6
5
|
import { setupInstrumentationModule } from '../modules/instrumentationModule/instrumentationModule.js';
|
|
7
6
|
import { createLocaleModule } from '../modules/localeModule/localeModule.js';
|
|
8
7
|
import { createMfaModule } from '../modules/mfaModule/mfaModule.js';
|
|
@@ -37,8 +36,6 @@ const createClient = (props) => {
|
|
|
37
36
|
return {
|
|
38
37
|
/** Module that gives access over authentication state, such as the auth token and user */
|
|
39
38
|
auth: createAuthModule(core),
|
|
40
|
-
/** Module that provides access to device registration features */
|
|
41
|
-
deviceRegistration: createDeviceRegistrationModule(core),
|
|
42
39
|
/** Module that provides locale/translation features */
|
|
43
40
|
locale: createLocaleModule(core),
|
|
44
41
|
/** Module that provides access to MFA features */
|
package/src/index.d.ts
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
export type {
|
|
1
|
+
export type { SocialProvider, UpdateUserReturnPayload, } from '@dynamic-labs/webview-messages';
|
|
2
2
|
export { type Core } from './client/core';
|
|
3
3
|
export type { Wallet } from './types';
|
|
4
4
|
export { Extendable, type Extension } from './utils/Extendable';
|
|
5
5
|
export { hasExtension } from './utils/Extendable/hasExtension';
|
|
6
6
|
export { createClient, type BaseClient, type ClientProps, baseClientExtensionName, } from './client';
|
|
7
7
|
export type { AuthModule } from './modules/authModule';
|
|
8
|
-
export type { DeviceRegistrationModule } from './modules/deviceRegistrationModule';
|
|
9
8
|
export type { LocaleModule } from './modules/localeModule';
|
|
10
9
|
export type { MfaModule } from './modules/mfaModule';
|
|
11
10
|
export type { SdkModule } from './modules/sdkModule';
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
'use client'
|
|
2
|
-
'use strict';
|
|
3
|
-
|
|
4
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
5
|
-
|
|
6
|
-
var messageTransport = require('@dynamic-labs/message-transport');
|
|
7
|
-
var pickListenerActions = require('../../utils/pickListenerActions/pickListenerActions.cjs');
|
|
8
|
-
|
|
9
|
-
const createDeviceRegistrationModule = (core) => {
|
|
10
|
-
const store = messageTransport.createStore({
|
|
11
|
-
initialState: {
|
|
12
|
-
isDeviceRegistrationRequired: false,
|
|
13
|
-
},
|
|
14
|
-
key: 'deviceRegistration',
|
|
15
|
-
messageTransport: core.messageTransport,
|
|
16
|
-
});
|
|
17
|
-
const requestChannel = messageTransport.createRequestChannel(core.messageTransport);
|
|
18
|
-
const publicMethods = {
|
|
19
|
-
getRegisteredDevices: (...args) => requestChannel.request('getRegisteredDevices', ...args),
|
|
20
|
-
revokeAllRegisteredDevices: (...args) => requestChannel.request('revokeAllRegisteredDevices', ...args),
|
|
21
|
-
revokeRegisteredDevice: (...args) => requestChannel.request('revokeRegisteredDevice', ...args),
|
|
22
|
-
};
|
|
23
|
-
return Object.assign(store.getters, pickListenerActions.pickListenerActions(store.eventEmitter), publicMethods);
|
|
24
|
-
};
|
|
25
|
-
|
|
26
|
-
exports.createDeviceRegistrationModule = createDeviceRegistrationModule;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { StoreEventListeners } from '@dynamic-labs/message-transport';
|
|
2
|
-
import { DeviceRegistrationMessages, DeviceRegistrationModuleState } from '@dynamic-labs/webview-messages';
|
|
3
|
-
import { Core } from '../../client/core';
|
|
4
|
-
type DeviceRegistrationModulePublicMethods = {
|
|
5
|
-
getRegisteredDevices: DeviceRegistrationMessages['getRegisteredDevices'];
|
|
6
|
-
revokeRegisteredDevice: DeviceRegistrationMessages['revokeRegisteredDevice'];
|
|
7
|
-
revokeAllRegisteredDevices: DeviceRegistrationMessages['revokeAllRegisteredDevices'];
|
|
8
|
-
};
|
|
9
|
-
export type DeviceRegistrationModule = DeviceRegistrationModuleState & StoreEventListeners<DeviceRegistrationModuleState> & DeviceRegistrationModulePublicMethods;
|
|
10
|
-
export declare const createDeviceRegistrationModule: (core: Core) => DeviceRegistrationModule;
|
|
11
|
-
export {};
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
'use client'
|
|
2
|
-
import { createStore, createRequestChannel } from '@dynamic-labs/message-transport';
|
|
3
|
-
import { pickListenerActions } from '../../utils/pickListenerActions/pickListenerActions.js';
|
|
4
|
-
|
|
5
|
-
const createDeviceRegistrationModule = (core) => {
|
|
6
|
-
const store = createStore({
|
|
7
|
-
initialState: {
|
|
8
|
-
isDeviceRegistrationRequired: false,
|
|
9
|
-
},
|
|
10
|
-
key: 'deviceRegistration',
|
|
11
|
-
messageTransport: core.messageTransport,
|
|
12
|
-
});
|
|
13
|
-
const requestChannel = createRequestChannel(core.messageTransport);
|
|
14
|
-
const publicMethods = {
|
|
15
|
-
getRegisteredDevices: (...args) => requestChannel.request('getRegisteredDevices', ...args),
|
|
16
|
-
revokeAllRegisteredDevices: (...args) => requestChannel.request('revokeAllRegisteredDevices', ...args),
|
|
17
|
-
revokeRegisteredDevice: (...args) => requestChannel.request('revokeRegisteredDevice', ...args),
|
|
18
|
-
};
|
|
19
|
-
return Object.assign(store.getters, pickListenerActions(store.eventEmitter), publicMethods);
|
|
20
|
-
};
|
|
21
|
-
|
|
22
|
-
export { createDeviceRegistrationModule };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { createDeviceRegistrationModule, type DeviceRegistrationModule, } from './deviceRegistrationModule';
|