@djangocfg/layouts 2.1.293 → 2.1.294
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/package.json +18 -18
- package/src/layouts/AppLayout/BaseApp.tsx +10 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@djangocfg/layouts",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.294",
|
|
4
4
|
"description": "Simple, straightforward layout components for Next.js - import and use with props",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"layouts",
|
|
@@ -74,14 +74,14 @@
|
|
|
74
74
|
"check": "tsc --noEmit"
|
|
75
75
|
},
|
|
76
76
|
"peerDependencies": {
|
|
77
|
-
"@djangocfg/api": "^2.1.
|
|
78
|
-
"@djangocfg/centrifugo": "^2.1.
|
|
79
|
-
"@djangocfg/debuger": "^2.1.
|
|
80
|
-
"@djangocfg/i18n": "^2.1.
|
|
81
|
-
"@djangocfg/monitor": "^2.1.
|
|
82
|
-
"@djangocfg/ui-core": "^2.1.
|
|
83
|
-
"@djangocfg/ui-nextjs": "^2.1.
|
|
84
|
-
"@djangocfg/ui-tools": "^2.1.
|
|
77
|
+
"@djangocfg/api": "^2.1.294",
|
|
78
|
+
"@djangocfg/centrifugo": "^2.1.294",
|
|
79
|
+
"@djangocfg/debuger": "^2.1.294",
|
|
80
|
+
"@djangocfg/i18n": "^2.1.294",
|
|
81
|
+
"@djangocfg/monitor": "^2.1.294",
|
|
82
|
+
"@djangocfg/ui-core": "^2.1.294",
|
|
83
|
+
"@djangocfg/ui-nextjs": "^2.1.294",
|
|
84
|
+
"@djangocfg/ui-tools": "^2.1.294",
|
|
85
85
|
"@hookform/resolvers": "^5.2.2",
|
|
86
86
|
"consola": "^3.4.2",
|
|
87
87
|
"lucide-react": "^0.545.0",
|
|
@@ -110,15 +110,15 @@
|
|
|
110
110
|
"uuid": "^11.1.0"
|
|
111
111
|
},
|
|
112
112
|
"devDependencies": {
|
|
113
|
-
"@djangocfg/api": "^2.1.
|
|
114
|
-
"@djangocfg/centrifugo": "^2.1.
|
|
115
|
-
"@djangocfg/debuger": "^2.1.
|
|
116
|
-
"@djangocfg/i18n": "^2.1.
|
|
117
|
-
"@djangocfg/monitor": "^2.1.
|
|
118
|
-
"@djangocfg/typescript-config": "^2.1.
|
|
119
|
-
"@djangocfg/ui-core": "^2.1.
|
|
120
|
-
"@djangocfg/ui-nextjs": "^2.1.
|
|
121
|
-
"@djangocfg/ui-tools": "^2.1.
|
|
113
|
+
"@djangocfg/api": "^2.1.294",
|
|
114
|
+
"@djangocfg/centrifugo": "^2.1.294",
|
|
115
|
+
"@djangocfg/debuger": "^2.1.294",
|
|
116
|
+
"@djangocfg/i18n": "^2.1.294",
|
|
117
|
+
"@djangocfg/monitor": "^2.1.294",
|
|
118
|
+
"@djangocfg/typescript-config": "^2.1.294",
|
|
119
|
+
"@djangocfg/ui-core": "^2.1.294",
|
|
120
|
+
"@djangocfg/ui-nextjs": "^2.1.294",
|
|
121
|
+
"@djangocfg/ui-tools": "^2.1.294",
|
|
122
122
|
"@types/node": "^24.7.2",
|
|
123
123
|
"@types/react": "^19.1.0",
|
|
124
124
|
"@types/react-dom": "^19.1.0",
|
|
@@ -48,6 +48,7 @@ import { AuthProvider } from '@djangocfg/api/auth';
|
|
|
48
48
|
import { CentrifugoProvider } from '@djangocfg/centrifugo';
|
|
49
49
|
import { Toaster, TooltipProvider } from '@djangocfg/ui-core/components';
|
|
50
50
|
import { DialogProvider } from '@djangocfg/ui-core/lib/dialog-service';
|
|
51
|
+
import { NextRouterAdapter } from '@djangocfg/ui-core/adapters/nextjs';
|
|
51
52
|
import { ThemeProvider } from '@djangocfg/ui-nextjs/theme';
|
|
52
53
|
import { ThemeStyleBridge } from '../../theme/ThemeStyleBridge';
|
|
53
54
|
import { ErrorBoundary } from '../../components/errors/ErrorBoundary';
|
|
@@ -117,6 +118,14 @@ export function BaseApp({
|
|
|
117
118
|
storageKey={theme?.storageKey}
|
|
118
119
|
>
|
|
119
120
|
<ThemeStyleBridge style={theme?.style} />
|
|
121
|
+
{/*
|
|
122
|
+
* NextRouterAdapter wires @djangocfg/ui-core router hooks
|
|
123
|
+
* (useNavigate, useQueryState, etc.) to next/navigation so
|
|
124
|
+
* server components, route loaders, and prefetch fire
|
|
125
|
+
* correctly. Placed near the top so every provider below
|
|
126
|
+
* (Auth, Centrifugo, anything that may navigate) gets it.
|
|
127
|
+
*/}
|
|
128
|
+
<NextRouterAdapter>
|
|
120
129
|
<DialogProvider>
|
|
121
130
|
<TooltipProvider>
|
|
122
131
|
<SWRConfig
|
|
@@ -182,6 +191,7 @@ export function BaseApp({
|
|
|
182
191
|
</SWRConfig>
|
|
183
192
|
</TooltipProvider>
|
|
184
193
|
</DialogProvider>
|
|
194
|
+
</NextRouterAdapter>
|
|
185
195
|
</ThemeProvider>
|
|
186
196
|
);
|
|
187
197
|
|