@djangocfg/api 2.1.464 → 2.1.466

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/auth.d.cts CHANGED
@@ -1,5 +1,5 @@
1
- import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import React$1, { MutableRefObject, ReactNode } from 'react';
1
+ import * as React$1 from 'react';
2
+ import React__default, { MutableRefObject, ReactNode } from 'react';
3
3
  import * as consola from 'consola';
4
4
  import { z } from 'zod';
5
5
 
@@ -493,20 +493,20 @@ interface AuthContextType {
493
493
  uploadAvatar: (avatar: File | Blob) => Promise<UserProfile>;
494
494
  }
495
495
  interface AuthProviderProps {
496
- children: React$1.ReactNode;
496
+ children: React__default.ReactNode;
497
497
  config?: AuthConfig;
498
498
  /** Set false to skip all auth logic and render children directly. */
499
499
  enabled?: boolean;
500
500
  }
501
501
 
502
- declare const AuthContext: React$1.Context<AuthContextType>;
502
+ declare const AuthContext: React__default.Context<AuthContextType>;
503
503
  /**
504
504
  * AuthProvider — wraps AccountsProvider + AuthProviderInternal.
505
505
  *
506
506
  * Memoised: re-renders only when `config` reference or `children` change.
507
507
  */
508
- declare function AuthProviderRaw({ children, config, enabled }: AuthProviderProps): react_jsx_runtime.JSX.Element;
509
- declare const AuthProvider: React$1.MemoExoticComponent<typeof AuthProviderRaw>;
508
+ declare function AuthProviderRaw({ children, config, enabled }: AuthProviderProps): React__default.JSX.Element;
509
+ declare const AuthProvider: React__default.MemoExoticComponent<typeof AuthProviderRaw>;
510
510
  /**
511
511
  * Hook to access auth context.
512
512
  *
@@ -543,7 +543,7 @@ interface AccountsContextValue {
543
543
  interface AccountsProviderProps {
544
544
  children: ReactNode;
545
545
  }
546
- declare function AccountsProvider({ children }: AccountsProviderProps): react_jsx_runtime.JSX.Element;
546
+ declare function AccountsProvider({ children }: AccountsProviderProps): React$1.JSX.Element;
547
547
  declare function useAccountsContext(): AccountsContextValue;
548
548
 
549
549
  declare function useSession(): SessionSnapshot;
package/dist/auth.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import React$1, { MutableRefObject, ReactNode } from 'react';
1
+ import * as React$1 from 'react';
2
+ import React__default, { MutableRefObject, ReactNode } from 'react';
3
3
  import * as consola from 'consola';
4
4
  import { z } from 'zod';
5
5
 
@@ -493,20 +493,20 @@ interface AuthContextType {
493
493
  uploadAvatar: (avatar: File | Blob) => Promise<UserProfile>;
494
494
  }
495
495
  interface AuthProviderProps {
496
- children: React$1.ReactNode;
496
+ children: React__default.ReactNode;
497
497
  config?: AuthConfig;
498
498
  /** Set false to skip all auth logic and render children directly. */
499
499
  enabled?: boolean;
500
500
  }
501
501
 
502
- declare const AuthContext: React$1.Context<AuthContextType>;
502
+ declare const AuthContext: React__default.Context<AuthContextType>;
503
503
  /**
504
504
  * AuthProvider — wraps AccountsProvider + AuthProviderInternal.
505
505
  *
506
506
  * Memoised: re-renders only when `config` reference or `children` change.
507
507
  */
508
- declare function AuthProviderRaw({ children, config, enabled }: AuthProviderProps): react_jsx_runtime.JSX.Element;
509
- declare const AuthProvider: React$1.MemoExoticComponent<typeof AuthProviderRaw>;
508
+ declare function AuthProviderRaw({ children, config, enabled }: AuthProviderProps): React__default.JSX.Element;
509
+ declare const AuthProvider: React__default.MemoExoticComponent<typeof AuthProviderRaw>;
510
510
  /**
511
511
  * Hook to access auth context.
512
512
  *
@@ -543,7 +543,7 @@ interface AccountsContextValue {
543
543
  interface AccountsProviderProps {
544
544
  children: ReactNode;
545
545
  }
546
- declare function AccountsProvider({ children }: AccountsProviderProps): react_jsx_runtime.JSX.Element;
546
+ declare function AccountsProvider({ children }: AccountsProviderProps): React$1.JSX.Element;
547
547
  declare function useAccountsContext(): AccountsContextValue;
548
548
 
549
549
  declare function useSession(): SessionSnapshot;
package/dist/auth.mjs CHANGED
@@ -35,6 +35,10 @@ var APIError = class extends Error {
35
35
  this.url = url;
36
36
  this.name = "APIError";
37
37
  }
38
+ statusCode;
39
+ statusText;
40
+ response;
41
+ url;
38
42
  static {
39
43
  __name(this, "APIError");
40
44
  }