@djangocfg/api 2.1.366 → 2.1.368
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 +2 -1
- package/dist/auth.cjs.map +1 -1
- package/dist/auth.d.cts +3 -1
- package/dist/auth.d.ts +3 -1
- package/dist/auth.mjs +3 -2
- package/dist/auth.mjs.map +1 -1
- package/package.json +2 -2
- package/src/auth/context/AuthContext.tsx +2 -1
- package/src/auth/context/types.ts +2 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@djangocfg/api",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.368",
|
|
4
4
|
"description": "Auto-generated TypeScript API client with React hooks, SWR integration, and Zod validation for Django REST Framework backends",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"django",
|
|
@@ -84,7 +84,7 @@
|
|
|
84
84
|
"devDependencies": {
|
|
85
85
|
"@types/node": "^24.7.2",
|
|
86
86
|
"@types/react": "^19.1.0",
|
|
87
|
-
"@djangocfg/typescript-config": "^2.1.
|
|
87
|
+
"@djangocfg/typescript-config": "^2.1.368",
|
|
88
88
|
"next": "^16.2.2",
|
|
89
89
|
"react": "^19.1.0",
|
|
90
90
|
"tsup": "^8.5.0",
|
|
@@ -635,7 +635,8 @@ const AuthProviderInternal: React.FC<AuthProviderProps> = ({ children, config })
|
|
|
635
635
|
* Memoised: re-renders only when `config` reference or `children` change.
|
|
636
636
|
* Internal auth state is isolated inside AuthProviderInternal.
|
|
637
637
|
*/
|
|
638
|
-
function AuthProviderRaw({ children, config }: AuthProviderProps) {
|
|
638
|
+
function AuthProviderRaw({ children, config, enabled = true }: AuthProviderProps) {
|
|
639
|
+
if (!enabled) return <>{children}</>;
|
|
639
640
|
return (
|
|
640
641
|
<AccountsProvider>
|
|
641
642
|
<AuthProviderInternal config={config}>
|