@djangocfg/api 2.1.464 → 2.1.465
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.cjs +4 -0
- package/dist/auth.cjs.map +1 -1
- package/dist/auth.d.cts +7 -7
- package/dist/auth.d.ts +7 -7
- package/dist/auth.mjs +4 -0
- package/dist/auth.mjs.map +1 -1
- package/dist/clients.cjs +4 -0
- package/dist/clients.cjs.map +1 -1
- package/dist/clients.mjs +4 -0
- package/dist/clients.mjs.map +1 -1
- package/dist/hooks.cjs +4 -0
- package/dist/hooks.cjs.map +1 -1
- package/dist/hooks.mjs +4 -0
- package/dist/hooks.mjs.map +1 -1
- package/dist/index.cjs +7 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +7 -0
- package/dist/index.mjs.map +1 -1
- package/package.json +8 -8
package/dist/auth.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import
|
|
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:
|
|
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:
|
|
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):
|
|
509
|
-
declare const AuthProvider:
|
|
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):
|
|
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
|
|
2
|
-
import
|
|
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:
|
|
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:
|
|
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):
|
|
509
|
-
declare const AuthProvider:
|
|
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):
|
|
546
|
+
declare function AccountsProvider({ children }: AccountsProviderProps): React$1.JSX.Element;
|
|
547
547
|
declare function useAccountsContext(): AccountsContextValue;
|
|
548
548
|
|
|
549
549
|
declare function useSession(): SessionSnapshot;
|