@dynamic-labs-sdk/react-hooks 1.23.1 → 1.24.1

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/dist/core.cjs CHANGED
@@ -1,4 +1,4 @@
1
- const require_useBaseState = require('./useBaseState-ZEP9mYcn.cjs');
1
+ const require_useBaseState = require('./useBaseState-mpAAx7av.cjs');
2
2
  let _dynamic_labs_sdk_assert_package_version = require("@dynamic-labs-sdk/assert-package-version");
3
3
 
4
4
  //#region src/exports/core.ts
package/dist/core.esm.js CHANGED
@@ -1,4 +1,4 @@
1
- import { a as useDynamicClient, c as version, i as useBaseMutation, n as useBaseQuery, s as name, t as useBaseState } from "./useBaseState-kCZHFljW.esm.js";
1
+ import { a as useDynamicClient, c as version, i as useBaseMutation, n as useBaseQuery, s as name, t as useBaseState } from "./useBaseState-BP_NCssh.esm.js";
2
2
  import { assertPackageVersion } from "@dynamic-labs-sdk/assert-package-version";
3
3
 
4
4
  //#region src/exports/core.ts
@@ -29,7 +29,7 @@ export type UseAddBusinessAccountMemberParams = {
29
29
  * @example
30
30
  * ```tsx
31
31
  * const { mutate, isPending } = useAddBusinessAccountMember();
32
- * <button onClick={() => mutate({ businessAccountId, identifier: 'user@acme.com' })} disabled={isPending}>
32
+ * <button onClick={() => mutate({ businessAccountId, targetIdentity: { identifier: 'user@acme.com', identifierType: 'email' } })} disabled={isPending}>
33
33
  * Add member
34
34
  * </button>
35
35
  * ```
@@ -40,10 +40,8 @@ export type UseAddBusinessAccountMemberParams = {
40
40
  */
41
41
  export declare const useAddBusinessAccountMember: ({ mutateParams, }?: UseAddBusinessAccountMemberParams) => import("@tanstack/react-query").UseMutationResult<import("@dynamic-labs-sdk/client/waas").BusinessAccountMember, Error, {
42
42
  businessAccountId: string;
43
- identifier?: string;
44
- identifierType?: import("../../../../../../client/src/modules/waas/businessAccounts/businessAccounts.types").BusinessAccountSignerIdentifierType;
45
43
  role?: import("../../../../../../client/src/modules/waas/businessAccounts/businessAccounts.types").BusinessAccountMemberRole;
46
- userId?: string;
44
+ targetIdentity: import("@dynamic-labs-sdk/client/waas").TargetIdentity;
47
45
  }>;
48
46
  export {};
49
47
  //# sourceMappingURL=useAddBusinessAccountMember.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useAddBusinessAccountMember.d.ts","sourceRoot":"","sources":["../../../../../src/hooks/wrappers/functions/useAddBusinessAccountMember/useAddBusinessAccountMember.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,CAAC;AAEzE,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,wCAAwC,CAAC;AAGpF,KAAK,iCAAiC,GAAG,UAAU,CACjD,OAAO,wBAAwB,CAChC,CAAC,CAAC,CAAC,CAAC;AACL,KAAK,8BAA8B,GAAG,OAAO,CAC3C,UAAU,CAAC,OAAO,wBAAwB,CAAC,CAC5C,CAAC;AAEF;;;;;;;;;;;;GAYG;AACH,MAAM,MAAM,iCAAiC,GAAG;IAC9C;;;OAGG;IACH,YAAY,CAAC,EAAE,WAAW,CACxB,qBAAqB,CACnB,8BAA8B,EAC9B,iCAAiC,CAClC,CAAC,cAAc,CAAC,CAClB,CAAC;CACH,CAAC;AAEF;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,2BAA2B,uBAErC,iCAAiC;;;;;;EAQhC,CAAC"}
1
+ {"version":3,"file":"useAddBusinessAccountMember.d.ts","sourceRoot":"","sources":["../../../../../src/hooks/wrappers/functions/useAddBusinessAccountMember/useAddBusinessAccountMember.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,CAAC;AAEzE,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,wCAAwC,CAAC;AAGpF,KAAK,iCAAiC,GAAG,UAAU,CACjD,OAAO,wBAAwB,CAChC,CAAC,CAAC,CAAC,CAAC;AACL,KAAK,8BAA8B,GAAG,OAAO,CAC3C,UAAU,CAAC,OAAO,wBAAwB,CAAC,CAC5C,CAAC;AAEF;;;;;;;;;;;;GAYG;AACH,MAAM,MAAM,iCAAiC,GAAG;IAC9C;;;OAGG;IACH,YAAY,CAAC,EAAE,WAAW,CACxB,qBAAqB,CACnB,8BAA8B,EAC9B,iCAAiC,CAClC,CAAC,cAAc,CAAC,CAClB,CAAC;CACH,CAAC;AAEF;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,2BAA2B,uBAErC,iCAAiC;;;;EAQhC,CAAC"}
@@ -29,7 +29,7 @@ export type UseAddBusinessAccountSignerParams = {
29
29
  * @example
30
30
  * ```tsx
31
31
  * const { mutate, isPending } = useAddBusinessAccountSigner();
32
- * <button onClick={() => mutate({ targetSignerIdentity, walletAccount })} disabled={isPending}>
32
+ * <button onClick={() => mutate({ targetIdentity, walletAccount })} disabled={isPending}>
33
33
  * Add signer
34
34
  * </button>
35
35
  * ```
@@ -44,7 +44,7 @@ export declare const useAddBusinessAccountSigner: ({ mutateParams, }?: UseAddBus
44
44
  businessAccountId?: string;
45
45
  password?: string;
46
46
  signerType?: import("../../../../../../client/src/modules/waas/businessAccounts/businessAccounts.types").BusinessAccountSignerType;
47
- targetSignerIdentity: import("../../../../../../client/src/modules/waas/businessAccounts/businessAccounts.types").TargetSignerIdentity;
47
+ targetIdentity: import("@dynamic-labs-sdk/client/waas").TargetIdentity;
48
48
  walletAccount: import("@dynamic-labs-sdk/client").WalletAccount;
49
49
  walletId?: string;
50
50
  }>;
package/dist/index.cjs CHANGED
@@ -1,4 +1,4 @@
1
- const require_useBaseState = require('./useBaseState-ZEP9mYcn.cjs');
1
+ const require_useBaseState = require('./useBaseState-mpAAx7av.cjs');
2
2
  let _dynamic_labs_sdk_assert_package_version = require("@dynamic-labs-sdk/assert-package-version");
3
3
  let _dynamic_labs_sdk_client = require("@dynamic-labs-sdk/client");
4
4
  let _tanstack_react_query = require("@tanstack/react-query");
@@ -162,7 +162,7 @@ const useGetActiveNetworkId = ({ queryParams, ...args }) => require_useBaseState
162
162
  * @example
163
163
  * ```tsx
164
164
  * const { mutate, isPending } = useAddBusinessAccountMember();
165
- * <button onClick={() => mutate({ businessAccountId, identifier: 'user@acme.com' })} disabled={isPending}>
165
+ * <button onClick={() => mutate({ businessAccountId, targetIdentity: { identifier: 'user@acme.com', identifierType: 'email' } })} disabled={isPending}>
166
166
  * Add member
167
167
  * </button>
168
168
  * ```
@@ -185,7 +185,7 @@ const useAddBusinessAccountMember = ({ mutateParams } = {}) => require_useBaseSt
185
185
  * @example
186
186
  * ```tsx
187
187
  * const { mutate, isPending } = useAddBusinessAccountSigner();
188
- * <button onClick={() => mutate({ targetSignerIdentity, walletAccount })} disabled={isPending}>
188
+ * <button onClick={() => mutate({ targetIdentity, walletAccount })} disabled={isPending}>
189
189
  * Add signer
190
190
  * </button>
191
191
  * ```