@djangocfg/layouts 2.1.19 → 2.1.20

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.19",
3
+ "version": "2.1.20",
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.19",
96
- "@djangocfg/centrifugo": "^2.1.19",
97
- "@djangocfg/ui-nextjs": "^2.1.19",
95
+ "@djangocfg/api": "^2.1.20",
96
+ "@djangocfg/centrifugo": "^2.1.20",
97
+ "@djangocfg/ui-nextjs": "^2.1.20",
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.19",
117
+ "@djangocfg/typescript-config": "^2.1.20",
118
118
  "@types/node": "^24.7.2",
119
119
  "@types/react": "^19.1.0",
120
120
  "@types/react-dom": "^19.1.0",
@@ -17,7 +17,7 @@
17
17
  * }}
18
18
  * header={{
19
19
  * title: 'Admin Dashboard',
20
- * profilePath: '/profile' // Optional
20
+ * profilePath: '/private/profile' // Optional
21
21
  * }}
22
22
  * >
23
23
  * {children}
@@ -24,7 +24,7 @@
24
24
  * }}
25
25
  * header={{
26
26
  * title: 'Dashboard',
27
- * profilePath: '/profile' // Optional, defaults to '/profile'
27
+ * profilePath: '/private/profile' // Optional, defaults to '/private/profile'
28
28
  * }}
29
29
  * >
30
30
  * {children}
@@ -24,7 +24,7 @@ interface PrivateHeaderProps {
24
24
 
25
25
  export function PrivateHeader({ header }: PrivateHeaderProps) {
26
26
  const { user, logout } = useAuth();
27
- const profilePath = header?.profilePath || '/profile';
27
+ const profilePath = header?.profilePath || '/private/profile';
28
28
 
29
29
  return (
30
30
  <header
@@ -34,8 +34,8 @@ export interface UserMenuProps {
34
34
 
35
35
  export function UserMenu({
36
36
  variant = 'desktop',
37
- profilePath = '/profile',
38
- dashboardPath = '/dashboard',
37
+ profilePath = '/private/profile',
38
+ dashboardPath = '/private',
39
39
  authPath = '/auth',
40
40
  }: UserMenuProps) {
41
41
  const { user, isAuthenticated, logout } = useAuth();