@dynamic-labs-sdk/react-hooks 1.30.2 → 1.30.3

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-BNd25q_I.cjs');
1
+ const require_useBaseState = require('./useBaseState-CI69lvc_.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-J0-SE2DJ.esm.js";
1
+ import { a as useDynamicClient, c as version, i as useBaseMutation, n as useBaseQuery, s as name, t as useBaseState } from "./useBaseState-dkF7NJuA.esm.js";
2
2
  import { assertPackageVersion } from "@dynamic-labs-sdk/assert-package-version";
3
3
 
4
4
  //#region src/exports/core.ts
@@ -1,6 +1,5 @@
1
- import { authenticateTotpMfaDevice } from '@dynamic-labs-sdk/client';
1
+ import { type VerifyResponse, authenticateTotpMfaDevice } from '@dynamic-labs-sdk/client';
2
2
  import type { UseMutationResult } from '@tanstack/react-query';
3
- import type { VerifyResponse } from '@dynamic-labs/sdk-api-core';
4
3
  import type { UseBaseMutationParams } from '../../../../foundation/useBaseMutation';
5
4
  type AuthenticateTotpMfaDeviceVariables = Parameters<typeof authenticateTotpMfaDevice>[0];
6
5
  type AuthenticateTotpMfaDeviceResult = Awaited<ReturnType<typeof authenticateTotpMfaDevice>>;
@@ -1 +1 @@
1
- {"version":3,"file":"useAuthenticateTotpMfaDevice.d.ts","sourceRoot":"","sources":["../../../../../src/hooks/wrappers/functions/useAuthenticateTotpMfaDevice/useAuthenticateTotpMfaDevice.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,yBAAyB,EAAE,MAAM,0BAA0B,CAAC;AACrE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAC/D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAEjE,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,wCAAwC,CAAC;AAIpF,KAAK,kCAAkC,GAAG,UAAU,CAClD,OAAO,yBAAyB,CACjC,CAAC,CAAC,CAAC,CAAC;AACL,KAAK,+BAA+B,GAAG,OAAO,CAC5C,UAAU,CAAC,OAAO,yBAAyB,CAAC,CAC7C,CAAC;AAEF,MAAM,MAAM,kCAAkC,GAAG;IAC/C;;;OAGG;IACH,YAAY,CAAC,EAAE,qBAAqB,CAClC,+BAA+B,EAC/B,kCAAkC,CACnC,CAAC,cAAc,CAAC,CAAC;CACnB,CAAC;AAEF;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,4BAA4B,uBAEtC,kCAAkC,KAAQ,iBAAiB,CAC5D,cAAc,EACd,KAAK,EACL,kCAAkC,CAWnC,CAAC"}
1
+ {"version":3,"file":"useAuthenticateTotpMfaDevice.d.ts","sourceRoot":"","sources":["../../../../../src/hooks/wrappers/functions/useAuthenticateTotpMfaDevice/useAuthenticateTotpMfaDevice.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,cAAc,EACnB,yBAAyB,EAC1B,MAAM,0BAA0B,CAAC;AAClC,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAE/D,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,wCAAwC,CAAC;AAIpF,KAAK,kCAAkC,GAAG,UAAU,CAClD,OAAO,yBAAyB,CACjC,CAAC,CAAC,CAAC,CAAC;AACL,KAAK,+BAA+B,GAAG,OAAO,CAC5C,UAAU,CAAC,OAAO,yBAAyB,CAAC,CAC7C,CAAC;AAEF,MAAM,MAAM,kCAAkC,GAAG;IAC/C;;;OAGG;IACH,YAAY,CAAC,EAAE,qBAAqB,CAClC,+BAA+B,EAC/B,kCAAkC,CACnC,CAAC,cAAc,CAAC,CAAC;CACnB,CAAC;AAEF;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,4BAA4B,uBAEtC,kCAAkC,KAAQ,iBAAiB,CAC5D,cAAc,EACd,KAAK,EACL,kCAAkC,CAWnC,CAAC"}
@@ -1,9 +1,9 @@
1
1
  import type { UseQueryResult } from '@tanstack/react-query';
2
- import type { SdkUser } from '@dynamic-labs/sdk-api-core';
2
+ import type { User } from '@dynamic-labs-sdk/client';
3
3
  /**
4
4
  * Returns the current authenticated user, or null if not authenticated.
5
5
  *
6
6
  * Re-renders when the user changes (login, logout, profile update).
7
7
  */
8
- export declare const useUser: () => UseQueryResult<SdkUser | null, Error>;
8
+ export declare const useUser: () => UseQueryResult<User | null, Error>;
9
9
  //# sourceMappingURL=useUser.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useUser.d.ts","sourceRoot":"","sources":["../../../../../src/hooks/wrappers/state/useUser/useUser.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAC;AAI1D;;;;GAIG;AACH,eAAO,MAAM,OAAO,QAAO,cAAc,CAAC,OAAO,GAAG,IAAI,EAAE,KAAK,CAM3D,CAAC"}
1
+ {"version":3,"file":"useUser.d.ts","sourceRoot":"","sources":["../../../../../src/hooks/wrappers/state/useUser/useUser.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,0BAA0B,CAAC;AAIrD;;;;GAIG;AACH,eAAO,MAAM,OAAO,QAAO,cAAc,CAAC,IAAI,GAAG,IAAI,EAAE,KAAK,CAMxD,CAAC"}
package/dist/index.cjs CHANGED
@@ -1,4 +1,4 @@
1
- const require_useBaseState = require('./useBaseState-BNd25q_I.cjs');
1
+ const require_useBaseState = require('./useBaseState-CI69lvc_.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");