@dynamic-labs/client 4.37.0 → 4.37.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 +17 -0
- package/package.cjs +1 -1
- package/package.js +1 -1
- package/package.json +7 -7
- package/src/client/client.d.ts +1 -0
- package/src/client/core/modules/manifestModule/createPartialManifest/createPartialManifest.cjs +2 -1
- package/src/client/core/modules/manifestModule/createPartialManifest/createPartialManifest.d.ts +1 -1
- package/src/client/core/modules/manifestModule/createPartialManifest/createPartialManifest.js +2 -1
- package/src/modules/authModule/socialAuthModule/socialAuthModule.cjs +11 -1
- package/src/modules/authModule/socialAuthModule/socialAuthModule.d.ts +4 -0
- package/src/modules/authModule/socialAuthModule/socialAuthModule.js +11 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,21 @@
|
|
|
1
1
|
|
|
2
|
+
### [4.37.2](https://github.com/dynamic-labs/dynamic-auth/compare/v4.37.1...v4.37.2) (2025-10-13)
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
### Features
|
|
6
|
+
|
|
7
|
+
* add get all linked social accounts function ([#9676](https://github.com/dynamic-labs/dynamic-auth/issues/9676)) ([c637c3f](https://github.com/dynamic-labs/dynamic-auth/commit/c637c3f101ea9387584473e18ff728c17d000f73))
|
|
8
|
+
* add revoke delegation to connectors and hook ([#9628](https://github.com/dynamic-labs/dynamic-auth/issues/9628)) ([00a40e0](https://github.com/dynamic-labs/dynamic-auth/commit/00a40e0b2aa6137a97ccb3be7890326300582fcf))
|
|
9
|
+
* **react-native:** add methods to social module ([#9677](https://github.com/dynamic-labs/dynamic-auth/issues/9677)) ([e4ffc11](https://github.com/dynamic-labs/dynamic-auth/commit/e4ffc1139ddc49826da688857d20dfb3b0c77ad7))
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
### Bug Fixes
|
|
13
|
+
|
|
14
|
+
* duplicate wallet display for wallet upgrade ([#9684](https://github.com/dynamic-labs/dynamic-auth/issues/9684)) ([cf94223](https://github.com/dynamic-labs/dynamic-auth/commit/cf94223d91f74add454901b72f4bf7d81043bffc))
|
|
15
|
+
* fixes postbuild oom ([#9664](https://github.com/dynamic-labs/dynamic-auth/issues/9664)) ([7e56047](https://github.com/dynamic-labs/dynamic-auth/commit/7e5604721d708e375c642223cd2f615ab9191f70))
|
|
16
|
+
|
|
17
|
+
### [4.37.1](https://github.com/dynamic-labs/dynamic-auth/compare/v4.37.0...v4.37.1) (2025-10-08)
|
|
18
|
+
|
|
2
19
|
## [4.37.0](https://github.com/dynamic-labs/dynamic-auth/compare/v4.36.1...v4.37.0) (2025-10-08)
|
|
3
20
|
|
|
4
21
|
|
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.37.
|
|
3
|
+
"version": "4.37.2",
|
|
4
4
|
"description": "Core package for utilizing Dynamic's sdk",
|
|
5
5
|
"author": "Dynamic Labs, Inc.",
|
|
6
6
|
"license": "MIT",
|
|
@@ -19,12 +19,12 @@
|
|
|
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.37.
|
|
24
|
-
"@dynamic-labs/logger": "4.37.
|
|
25
|
-
"@dynamic-labs/message-transport": "4.37.
|
|
26
|
-
"@dynamic-labs/types": "4.37.
|
|
27
|
-
"@dynamic-labs/webview-messages": "4.37.
|
|
22
|
+
"@dynamic-labs/sdk-api-core": "0.0.805",
|
|
23
|
+
"@dynamic-labs/assert-package-version": "4.37.2",
|
|
24
|
+
"@dynamic-labs/logger": "4.37.2",
|
|
25
|
+
"@dynamic-labs/message-transport": "4.37.2",
|
|
26
|
+
"@dynamic-labs/types": "4.37.2",
|
|
27
|
+
"@dynamic-labs/webview-messages": "4.37.2",
|
|
28
28
|
"eventemitter3": "5.0.1"
|
|
29
29
|
},
|
|
30
30
|
"peerDependencies": {}
|
package/src/client/client.d.ts
CHANGED
|
@@ -11,6 +11,7 @@ export type ClientProps = {
|
|
|
11
11
|
cssOverrides?: string;
|
|
12
12
|
evmNetworks?: EvmNetwork[];
|
|
13
13
|
debug?: ClientManifest['debug'];
|
|
14
|
+
globalWallets?: ClientManifest['globalWallets'];
|
|
14
15
|
};
|
|
15
16
|
/**
|
|
16
17
|
* Generates a basic client that allows interacting with Dynamic's SDK, which
|
package/src/client/core/modules/manifestModule/createPartialManifest/createPartialManifest.cjs
CHANGED
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
|
|
6
6
|
var _package = require('../../../../../../package.cjs');
|
|
7
7
|
|
|
8
|
-
const createPartialManifest = ({ apiBaseUrl, environmentId, appLogoUrl, appName, cssOverrides, evmNetworks, debug, }) => ({
|
|
8
|
+
const createPartialManifest = ({ apiBaseUrl, environmentId, appLogoUrl, appName, cssOverrides, evmNetworks, debug, globalWallets, }) => ({
|
|
9
9
|
apiBaseUrl,
|
|
10
10
|
appLogoUrl,
|
|
11
11
|
appName,
|
|
@@ -14,6 +14,7 @@ const createPartialManifest = ({ apiBaseUrl, environmentId, appLogoUrl, appName,
|
|
|
14
14
|
debug,
|
|
15
15
|
environmentId,
|
|
16
16
|
evmNetworks,
|
|
17
|
+
globalWallets,
|
|
17
18
|
});
|
|
18
19
|
|
|
19
20
|
exports.createPartialManifest = createPartialManifest;
|
package/src/client/core/modules/manifestModule/createPartialManifest/createPartialManifest.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { ClientManifest } from '@dynamic-labs/webview-messages';
|
|
2
2
|
import { ClientProps } from '../../../../client';
|
|
3
|
-
export declare const createPartialManifest: ({ apiBaseUrl, environmentId, appLogoUrl, appName, cssOverrides, evmNetworks, debug, }: ClientProps) => Partial<ClientManifest>;
|
|
3
|
+
export declare const createPartialManifest: ({ apiBaseUrl, environmentId, appLogoUrl, appName, cssOverrides, evmNetworks, debug, globalWallets, }: ClientProps) => Partial<ClientManifest>;
|
package/src/client/core/modules/manifestModule/createPartialManifest/createPartialManifest.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use client'
|
|
2
2
|
import { version } from '../../../../../../package.js';
|
|
3
3
|
|
|
4
|
-
const createPartialManifest = ({ apiBaseUrl, environmentId, appLogoUrl, appName, cssOverrides, evmNetworks, debug, }) => ({
|
|
4
|
+
const createPartialManifest = ({ apiBaseUrl, environmentId, appLogoUrl, appName, cssOverrides, evmNetworks, debug, globalWallets, }) => ({
|
|
5
5
|
apiBaseUrl,
|
|
6
6
|
appLogoUrl,
|
|
7
7
|
appName,
|
|
@@ -10,6 +10,7 @@ const createPartialManifest = ({ apiBaseUrl, environmentId, appLogoUrl, appName,
|
|
|
10
10
|
debug,
|
|
11
11
|
environmentId,
|
|
12
12
|
evmNetworks,
|
|
13
|
+
globalWallets,
|
|
13
14
|
});
|
|
14
15
|
|
|
15
16
|
export { createPartialManifest };
|
|
@@ -8,7 +8,17 @@ var messageTransport = require('@dynamic-labs/message-transport');
|
|
|
8
8
|
const createSocialAuthModule = (core) => {
|
|
9
9
|
const requestChannel = messageTransport.createRequestChannel(core.messageTransport);
|
|
10
10
|
const connect = (props) => requestChannel.request('connectWithSocial', props);
|
|
11
|
-
|
|
11
|
+
const getLinkedAccounts = (props) => requestChannel.request('getLinkedAccounts', props);
|
|
12
|
+
const unlink = (...props) => requestChannel.request('unlinkSocialAccount', ...props);
|
|
13
|
+
const isLinked = (props) => requestChannel.request('isLinked', props);
|
|
14
|
+
const getAllLinkedAccounts = () => requestChannel.request('getAllLinkedAccounts');
|
|
15
|
+
return {
|
|
16
|
+
connect,
|
|
17
|
+
getAllLinkedAccounts,
|
|
18
|
+
getLinkedAccounts,
|
|
19
|
+
isLinked,
|
|
20
|
+
unlink,
|
|
21
|
+
};
|
|
12
22
|
};
|
|
13
23
|
|
|
14
24
|
exports.createSocialAuthModule = createSocialAuthModule;
|
|
@@ -2,5 +2,9 @@ import { SocialAuthModuleMessages } from '@dynamic-labs/webview-messages';
|
|
|
2
2
|
import { Core } from '../../../client/core';
|
|
3
3
|
export type SocialAuthModule = {
|
|
4
4
|
connect: SocialAuthModuleMessages['connectWithSocial'];
|
|
5
|
+
getLinkedAccounts: SocialAuthModuleMessages['getLinkedAccounts'];
|
|
6
|
+
getAllLinkedAccounts: SocialAuthModuleMessages['getAllLinkedAccounts'];
|
|
7
|
+
isLinked: SocialAuthModuleMessages['isLinked'];
|
|
8
|
+
unlink: SocialAuthModuleMessages['unlinkSocialAccount'];
|
|
5
9
|
};
|
|
6
10
|
export declare const createSocialAuthModule: (core: Core) => SocialAuthModule;
|
|
@@ -4,7 +4,17 @@ import { createRequestChannel } from '@dynamic-labs/message-transport';
|
|
|
4
4
|
const createSocialAuthModule = (core) => {
|
|
5
5
|
const requestChannel = createRequestChannel(core.messageTransport);
|
|
6
6
|
const connect = (props) => requestChannel.request('connectWithSocial', props);
|
|
7
|
-
|
|
7
|
+
const getLinkedAccounts = (props) => requestChannel.request('getLinkedAccounts', props);
|
|
8
|
+
const unlink = (...props) => requestChannel.request('unlinkSocialAccount', ...props);
|
|
9
|
+
const isLinked = (props) => requestChannel.request('isLinked', props);
|
|
10
|
+
const getAllLinkedAccounts = () => requestChannel.request('getAllLinkedAccounts');
|
|
11
|
+
return {
|
|
12
|
+
connect,
|
|
13
|
+
getAllLinkedAccounts,
|
|
14
|
+
getLinkedAccounts,
|
|
15
|
+
isLinked,
|
|
16
|
+
unlink,
|
|
17
|
+
};
|
|
8
18
|
};
|
|
9
19
|
|
|
10
20
|
export { createSocialAuthModule };
|