@djangocfg/layouts 2.1.26 → 2.1.28

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@djangocfg/layouts",
3
- "version": "2.1.26",
3
+ "version": "2.1.28",
4
4
  "description": "Simple, straightforward layout components for Next.js - import and use with props",
5
5
  "keywords": [
6
6
  "layouts",
@@ -92,9 +92,9 @@
92
92
  "check": "tsc --noEmit"
93
93
  },
94
94
  "peerDependencies": {
95
- "@djangocfg/api": "^2.1.26",
96
- "@djangocfg/centrifugo": "^2.1.26",
97
- "@djangocfg/ui-nextjs": "^2.1.26",
95
+ "@djangocfg/api": "^2.1.28",
96
+ "@djangocfg/centrifugo": "^2.1.28",
97
+ "@djangocfg/ui-nextjs": "^2.1.28",
98
98
  "@hookform/resolvers": "^5.2.0",
99
99
  "consola": "^3.4.2",
100
100
  "lucide-react": "^0.545.0",
@@ -114,7 +114,7 @@
114
114
  "uuid": "^11.1.0"
115
115
  },
116
116
  "devDependencies": {
117
- "@djangocfg/typescript-config": "^2.1.26",
117
+ "@djangocfg/typescript-config": "^2.1.28",
118
118
  "@types/node": "^24.7.2",
119
119
  "@types/react": "^19.1.0",
120
120
  "@types/react-dom": "^19.1.0",
@@ -39,6 +39,7 @@
39
39
  import React, { ReactNode, useMemo } from 'react';
40
40
  import { usePathname } from 'next/navigation';
41
41
  import { CentrifugoProvider } from '@djangocfg/centrifugo';
42
+ import { getCentrifugoAuthTokenRetrieve } from '@djangocfg/api';
42
43
  import { AnalyticsProvider } from '../../snippets/Analytics';
43
44
  import { Suspense, ClientOnly } from '../../components/core';
44
45
  import { BaseApp } from './BaseApp';
@@ -232,6 +233,10 @@ function AppLayoutContent({
232
233
  enabled={centrifugoEnabled}
233
234
  autoConnect={centrifugoEnabled && centrifugo?.autoConnect}
234
235
  url={centrifugoUrl}
236
+ onTokenRefresh={async () => {
237
+ const response = await getCentrifugoAuthTokenRetrieve();
238
+ return response.token;
239
+ }}
235
240
  >
236
241
  {content}
237
242
  </CentrifugoProvider>
@@ -69,11 +69,6 @@ export function BaseApp({
69
69
  // ErrorBoundary is enabled by default
70
70
  const enableErrorBoundary = errorBoundary?.enabled !== false;
71
71
 
72
- // Debug: log mcpChat config
73
- if (typeof window !== 'undefined') {
74
- console.log('[BaseApp] mcpChat config:', mcpChat);
75
- }
76
-
77
72
  const content = (
78
73
  <ThemeProvider
79
74
  defaultTheme={theme?.defaultTheme || 'system'}
@@ -74,16 +74,18 @@ export function PublicMobileDrawer({
74
74
  />
75
75
 
76
76
  {/* Navigation Items */}
77
- <div className="space-y-3 pt-3">
78
- <h3 className="px-2 text-xs font-semibold uppercase tracking-wider text-muted-foreground">
79
- Menu
80
- </h3>
77
+ <div className="space-y-1">
78
+ <div className="px-4 py-2">
79
+ <h3 className="text-xs font-semibold uppercase tracking-wider text-muted-foreground">
80
+ Menu
81
+ </h3>
82
+ </div>
81
83
  <div className="space-y-1">
82
84
  {navigation.map((item) => (
83
85
  <Link
84
86
  key={item.href}
85
87
  href={item.href}
86
- className="block px-4 py-3 rounded-sm text-base font-medium transition-colors text-foreground hover:bg-accent hover:text-accent-foreground"
88
+ className="block px-4 py-3 rounded-sm text-sm font-medium transition-colors text-foreground hover:bg-accent hover:text-accent-foreground"
87
89
  >
88
90
  {item.label}
89
91
  </Link>