@dynamic-labs/sdk-react-core 5.5.0 → 5.6.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 +7 -0
- package/package.cjs +4 -4
- package/package.js +4 -4
- package/package.json +16 -16
- package/src/lib/utils/hooks/useBusinessAccounts/useBusinessAccounts.cjs +2 -1
- package/src/lib/utils/hooks/useBusinessAccounts/useBusinessAccounts.d.ts +2 -1
- package/src/lib/utils/hooks/useBusinessAccounts/useBusinessAccounts.js +2 -1
- package/src/lib/utils/hooks/usePolicies/usePolicies.d.ts +12 -12
package/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,11 @@
|
|
|
1
1
|
|
|
2
|
+
## [5.6.0](https://github.com/dynamic-labs/dynamic-auth/compare/v5.5.0...v5.6.0) (2026-09-01)
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
### Features
|
|
6
|
+
|
|
7
|
+
* forward target signer passwords ([#12300](https://github.com/dynamic-labs/dynamic-auth/issues/12300)) ([39b142b](https://github.com/dynamic-labs/dynamic-auth/commit/39b142b51767ad54ae57196a381bec19a892c06f))
|
|
8
|
+
|
|
2
9
|
## [5.5.0](https://github.com/dynamic-labs/dynamic-auth/compare/v5.4.1...v5.5.0) (2026-08-31)
|
|
3
10
|
|
|
4
11
|
|
package/package.cjs
CHANGED
|
@@ -3,12 +3,12 @@
|
|
|
3
3
|
|
|
4
4
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
5
5
|
|
|
6
|
-
var version = "5.
|
|
6
|
+
var version = "5.6.0";
|
|
7
7
|
var dependencies = {
|
|
8
8
|
"@dynamic-labs/sdk-api-core": "0.12.0",
|
|
9
|
-
"@dynamic-labs-sdk/client": "1.
|
|
10
|
-
"@dynamic-labs-wallet/browser-wallet-client": "1.0.
|
|
11
|
-
"@dynamic-labs-wallet/forward-mpc-client": "1.0.
|
|
9
|
+
"@dynamic-labs-sdk/client": "1.31.0",
|
|
10
|
+
"@dynamic-labs-wallet/browser-wallet-client": "1.0.118",
|
|
11
|
+
"@dynamic-labs-wallet/forward-mpc-client": "1.0.2",
|
|
12
12
|
"@hcaptcha/react-hcaptcha": "1.4.4",
|
|
13
13
|
"@marsidev/react-turnstile": "1.5.2",
|
|
14
14
|
"@thumbmarkjs/thumbmarkjs": "0.16.0",
|
package/package.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
'use client'
|
|
2
|
-
var version = "5.
|
|
2
|
+
var version = "5.6.0";
|
|
3
3
|
var dependencies = {
|
|
4
4
|
"@dynamic-labs/sdk-api-core": "0.12.0",
|
|
5
|
-
"@dynamic-labs-sdk/client": "1.
|
|
6
|
-
"@dynamic-labs-wallet/browser-wallet-client": "1.0.
|
|
7
|
-
"@dynamic-labs-wallet/forward-mpc-client": "1.0.
|
|
5
|
+
"@dynamic-labs-sdk/client": "1.31.0",
|
|
6
|
+
"@dynamic-labs-wallet/browser-wallet-client": "1.0.118",
|
|
7
|
+
"@dynamic-labs-wallet/forward-mpc-client": "1.0.2",
|
|
8
8
|
"@hcaptcha/react-hcaptcha": "1.4.4",
|
|
9
9
|
"@marsidev/react-turnstile": "1.5.2",
|
|
10
10
|
"@thumbmarkjs/thumbmarkjs": "0.16.0",
|
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dynamic-labs/sdk-react-core",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.6.0",
|
|
4
4
|
"dependencies": {
|
|
5
5
|
"@dynamic-labs/sdk-api-core": "0.12.0",
|
|
6
|
-
"@dynamic-labs-sdk/client": "1.
|
|
7
|
-
"@dynamic-labs-wallet/browser-wallet-client": "1.0.
|
|
8
|
-
"@dynamic-labs-wallet/forward-mpc-client": "1.0.
|
|
6
|
+
"@dynamic-labs-sdk/client": "1.31.0",
|
|
7
|
+
"@dynamic-labs-wallet/browser-wallet-client": "1.0.118",
|
|
8
|
+
"@dynamic-labs-wallet/forward-mpc-client": "1.0.2",
|
|
9
9
|
"@hcaptcha/react-hcaptcha": "1.4.4",
|
|
10
10
|
"@marsidev/react-turnstile": "1.5.2",
|
|
11
11
|
"@thumbmarkjs/thumbmarkjs": "0.16.0",
|
|
@@ -18,18 +18,18 @@
|
|
|
18
18
|
"react-i18next": "13.5.0",
|
|
19
19
|
"react-international-phone": "4.5.0",
|
|
20
20
|
"yup": "0.32.11",
|
|
21
|
-
"@dynamic-labs/assert-package-version": "5.
|
|
22
|
-
"@dynamic-labs/iconic": "5.
|
|
23
|
-
"@dynamic-labs/legacy-client": "5.
|
|
24
|
-
"@dynamic-labs/locale": "5.
|
|
25
|
-
"@dynamic-labs/logger": "5.
|
|
26
|
-
"@dynamic-labs/multi-wallet": "5.
|
|
27
|
-
"@dynamic-labs/rpc-providers": "5.
|
|
28
|
-
"@dynamic-labs/store": "5.
|
|
29
|
-
"@dynamic-labs/types": "5.
|
|
30
|
-
"@dynamic-labs/utils": "5.
|
|
31
|
-
"@dynamic-labs/wallet-book": "5.
|
|
32
|
-
"@dynamic-labs/wallet-connector-core": "5.
|
|
21
|
+
"@dynamic-labs/assert-package-version": "5.6.0",
|
|
22
|
+
"@dynamic-labs/iconic": "5.6.0",
|
|
23
|
+
"@dynamic-labs/legacy-client": "5.6.0",
|
|
24
|
+
"@dynamic-labs/locale": "5.6.0",
|
|
25
|
+
"@dynamic-labs/logger": "5.6.0",
|
|
26
|
+
"@dynamic-labs/multi-wallet": "5.6.0",
|
|
27
|
+
"@dynamic-labs/rpc-providers": "5.6.0",
|
|
28
|
+
"@dynamic-labs/store": "5.6.0",
|
|
29
|
+
"@dynamic-labs/types": "5.6.0",
|
|
30
|
+
"@dynamic-labs/utils": "5.6.0",
|
|
31
|
+
"@dynamic-labs/wallet-book": "5.6.0",
|
|
32
|
+
"@dynamic-labs/wallet-connector-core": "5.6.0",
|
|
33
33
|
"eventemitter3": "5.0.1"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
@@ -86,7 +86,7 @@ const useBusinessAccounts = () => {
|
|
|
86
86
|
}), [getBusinessClient]);
|
|
87
87
|
// Adds a signer via the SSE reshare ceremony on the wallet's chain connector.
|
|
88
88
|
// Mints the new signer's share set and seeds it to client-keyshare-service.
|
|
89
|
-
const addBusinessAccountSigner = React.useCallback((_a) => _tslib.__awaiter(void 0, [_a], void 0, function* ({ accountAddress, walletId, chainName, businessAccountId, targetSignerIdentity, signerType, password, }) {
|
|
89
|
+
const addBusinessAccountSigner = React.useCallback((_a) => _tslib.__awaiter(void 0, [_a], void 0, function* ({ accountAddress, walletId, chainName, businessAccountId, targetSignerIdentity, signerType, password, targetSignerPassword, }) {
|
|
90
90
|
const connector = getWaasWalletConnector(chainName);
|
|
91
91
|
if (!connector) {
|
|
92
92
|
throw new Error(NO_CONNECTOR_ERROR);
|
|
@@ -112,6 +112,7 @@ const useBusinessAccounts = () => {
|
|
|
112
112
|
password,
|
|
113
113
|
signerType,
|
|
114
114
|
targetSignerIdentity,
|
|
115
|
+
targetSignerPassword,
|
|
115
116
|
walletId,
|
|
116
117
|
});
|
|
117
118
|
}), [addWalletToBusinessAccount, getWaasWalletConnector]);
|
|
@@ -65,10 +65,11 @@ export type AddBusinessAccountSignerInput = {
|
|
|
65
65
|
targetSignerIdentity: TargetSignerIdentity;
|
|
66
66
|
signerType?: BusinessAccountSignerType;
|
|
67
67
|
password?: string;
|
|
68
|
+
targetSignerPassword?: string;
|
|
68
69
|
};
|
|
69
70
|
export declare const useBusinessAccounts: () => {
|
|
70
71
|
addBusinessAccountMember: (input: AddBusinessAccountMemberInput) => Promise<any>;
|
|
71
|
-
addBusinessAccountSigner: ({ accountAddress, walletId, chainName, businessAccountId, targetSignerIdentity, signerType, password, }: AddBusinessAccountSignerInput) => Promise<{
|
|
72
|
+
addBusinessAccountSigner: ({ accountAddress, walletId, chainName, businessAccountId, targetSignerIdentity, signerType, password, targetSignerPassword, }: AddBusinessAccountSignerInput) => Promise<{
|
|
72
73
|
shareSetId: string;
|
|
73
74
|
}>;
|
|
74
75
|
addWalletToBusinessAccount: (input: AddWalletToBusinessAccountInput) => Promise<any>;
|
|
@@ -82,7 +82,7 @@ const useBusinessAccounts = () => {
|
|
|
82
82
|
}), [getBusinessClient]);
|
|
83
83
|
// Adds a signer via the SSE reshare ceremony on the wallet's chain connector.
|
|
84
84
|
// Mints the new signer's share set and seeds it to client-keyshare-service.
|
|
85
|
-
const addBusinessAccountSigner = useCallback((_a) => __awaiter(void 0, [_a], void 0, function* ({ accountAddress, walletId, chainName, businessAccountId, targetSignerIdentity, signerType, password, }) {
|
|
85
|
+
const addBusinessAccountSigner = useCallback((_a) => __awaiter(void 0, [_a], void 0, function* ({ accountAddress, walletId, chainName, businessAccountId, targetSignerIdentity, signerType, password, targetSignerPassword, }) {
|
|
86
86
|
const connector = getWaasWalletConnector(chainName);
|
|
87
87
|
if (!connector) {
|
|
88
88
|
throw new Error(NO_CONNECTOR_ERROR);
|
|
@@ -108,6 +108,7 @@ const useBusinessAccounts = () => {
|
|
|
108
108
|
password,
|
|
109
109
|
signerType,
|
|
110
110
|
targetSignerIdentity,
|
|
111
|
+
targetSignerPassword,
|
|
111
112
|
walletId,
|
|
112
113
|
});
|
|
113
114
|
}), [addWalletToBusinessAccount, getWaasWalletConnector]);
|
|
@@ -15,22 +15,22 @@ export type RemoveWalletPolicyRuleInput = WithWalletId<Parameters<typeof removeW
|
|
|
15
15
|
export type RemoveSignerPolicyRuleInput = WithWalletId<Parameters<typeof removeSignerPolicyRuleFromSDK>[0]>;
|
|
16
16
|
export type RemoveAccountPolicyRuleInput = Parameters<typeof removeAccountPolicyRuleFromSDK>[0];
|
|
17
17
|
export declare const usePolicies: () => {
|
|
18
|
-
createPolicy: (input: CreatePolicyInput) => Promise<import("@dynamic-labs-
|
|
19
|
-
getAccountPolicyLayer: (input: GetAccountPolicyLayerInput) => Promise<import("@dynamic-labs-
|
|
18
|
+
createPolicy: (input: CreatePolicyInput) => Promise<import("@dynamic-labs/sdk-api-core").WaasPolicyLayerResponse>;
|
|
19
|
+
getAccountPolicyLayer: (input: GetAccountPolicyLayerInput) => Promise<import("@dynamic-labs/sdk-api-core").WaasPolicyLayerResponse>;
|
|
20
20
|
getPolicy: (input: GetPolicyInput) => Promise<{
|
|
21
21
|
layerId: string;
|
|
22
22
|
rules: import("@dynamic-labs-sdk/client/waas").PolicyRules;
|
|
23
|
-
unmapped: import("@dynamic-labs-
|
|
23
|
+
unmapped: import("@dynamic-labs/sdk-api-core").WaasPolicyRule[];
|
|
24
24
|
updatedAt: Date;
|
|
25
25
|
}>;
|
|
26
|
-
getSignerPolicyLayer: ({ shareSetId, walletId }: GetSignerPolicyLayerInput) => Promise<import("@dynamic-labs-
|
|
27
|
-
getWalletPolicyLayer: ({ walletId }: GetWalletPolicyLayerInput) => Promise<import("@dynamic-labs-
|
|
28
|
-
removeAccountPolicyRule: (input: RemoveAccountPolicyRuleInput) => Promise<import("@dynamic-labs-
|
|
29
|
-
removePolicyRules: (input: RemovePolicyRulesInput) => Promise<import("@dynamic-labs-
|
|
30
|
-
removeSignerPolicyRule: ({ ruleId, shareSetId, walletId }: RemoveSignerPolicyRuleInput) => Promise<import("@dynamic-labs-
|
|
31
|
-
removeWalletPolicyRule: ({ ruleId, walletId }: RemoveWalletPolicyRuleInput) => Promise<import("@dynamic-labs-
|
|
32
|
-
upsertAccountPolicyRule: (input: UpsertAccountPolicyRuleInput) => Promise<import("@dynamic-labs-
|
|
33
|
-
upsertSignerPolicyRule: ({ rule, shareSetId, walletId }: UpsertSignerPolicyRuleInput) => Promise<import("@dynamic-labs-
|
|
34
|
-
upsertWalletPolicyRule: ({ rule, walletId }: UpsertWalletPolicyRuleInput) => Promise<import("@dynamic-labs-
|
|
26
|
+
getSignerPolicyLayer: ({ shareSetId, walletId }: GetSignerPolicyLayerInput) => Promise<import("@dynamic-labs/sdk-api-core").WaasPolicyLayerResponse>;
|
|
27
|
+
getWalletPolicyLayer: ({ walletId }: GetWalletPolicyLayerInput) => Promise<import("@dynamic-labs/sdk-api-core").WaasPolicyLayerResponse>;
|
|
28
|
+
removeAccountPolicyRule: (input: RemoveAccountPolicyRuleInput) => Promise<import("@dynamic-labs/sdk-api-core").WaasPolicyLayerResponse>;
|
|
29
|
+
removePolicyRules: (input: RemovePolicyRulesInput) => Promise<import("@dynamic-labs/sdk-api-core").WaasPolicyLayerResponse>;
|
|
30
|
+
removeSignerPolicyRule: ({ ruleId, shareSetId, walletId }: RemoveSignerPolicyRuleInput) => Promise<import("@dynamic-labs/sdk-api-core").WaasPolicyLayerResponse>;
|
|
31
|
+
removeWalletPolicyRule: ({ ruleId, walletId }: RemoveWalletPolicyRuleInput) => Promise<import("@dynamic-labs/sdk-api-core").WaasPolicyLayerResponse>;
|
|
32
|
+
upsertAccountPolicyRule: (input: UpsertAccountPolicyRuleInput) => Promise<import("@dynamic-labs/sdk-api-core").WaasPolicyLayerResponse>;
|
|
33
|
+
upsertSignerPolicyRule: ({ rule, shareSetId, walletId }: UpsertSignerPolicyRuleInput) => Promise<import("@dynamic-labs/sdk-api-core").WaasPolicyLayerResponse>;
|
|
34
|
+
upsertWalletPolicyRule: ({ rule, walletId }: UpsertWalletPolicyRuleInput) => Promise<import("@dynamic-labs/sdk-api-core").WaasPolicyLayerResponse>;
|
|
35
35
|
};
|
|
36
36
|
export {};
|