@djangocfg/layouts 2.1.367 → 2.1.369

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.367",
3
+ "version": "2.1.369",
4
4
  "description": "Simple, straightforward layout components for Next.js - import and use with props",
5
5
  "keywords": [
6
6
  "layouts",
@@ -84,13 +84,13 @@
84
84
  "check": "tsc --noEmit"
85
85
  },
86
86
  "peerDependencies": {
87
- "@djangocfg/api": "^2.1.367",
88
- "@djangocfg/centrifugo": "^2.1.367",
89
- "@djangocfg/debuger": "^2.1.367",
90
- "@djangocfg/i18n": "^2.1.367",
91
- "@djangocfg/monitor": "^2.1.367",
92
- "@djangocfg/ui-core": "^2.1.367",
93
- "@djangocfg/ui-nextjs": "^2.1.367",
87
+ "@djangocfg/api": "^2.1.369",
88
+ "@djangocfg/centrifugo": "^2.1.369",
89
+ "@djangocfg/debuger": "^2.1.369",
90
+ "@djangocfg/i18n": "^2.1.369",
91
+ "@djangocfg/monitor": "^2.1.369",
92
+ "@djangocfg/ui-core": "^2.1.369",
93
+ "@djangocfg/ui-nextjs": "^2.1.369",
94
94
  "@hookform/resolvers": "^5.2.2",
95
95
  "consola": "^3.4.2",
96
96
  "lucide-react": "^0.545.0",
@@ -121,15 +121,15 @@
121
121
  "uuid": "^11.1.0"
122
122
  },
123
123
  "devDependencies": {
124
- "@djangocfg/api": "^2.1.367",
125
- "@djangocfg/centrifugo": "^2.1.367",
126
- "@djangocfg/debuger": "^2.1.367",
127
- "@djangocfg/i18n": "^2.1.367",
128
- "@djangocfg/monitor": "^2.1.367",
129
- "@djangocfg/typescript-config": "^2.1.367",
130
- "@djangocfg/ui-core": "^2.1.367",
131
- "@djangocfg/ui-nextjs": "^2.1.367",
132
- "@djangocfg/ui-tools": "^2.1.367",
124
+ "@djangocfg/api": "^2.1.369",
125
+ "@djangocfg/centrifugo": "^2.1.369",
126
+ "@djangocfg/debuger": "^2.1.369",
127
+ "@djangocfg/i18n": "^2.1.369",
128
+ "@djangocfg/monitor": "^2.1.369",
129
+ "@djangocfg/typescript-config": "^2.1.369",
130
+ "@djangocfg/ui-core": "^2.1.369",
131
+ "@djangocfg/ui-nextjs": "^2.1.369",
132
+ "@djangocfg/ui-tools": "^2.1.369",
133
133
  "@types/node": "^24.7.2",
134
134
  "@types/react": "^19.1.0",
135
135
  "@types/react-dom": "^19.1.0",
@@ -37,7 +37,6 @@
37
37
  'use client';
38
38
 
39
39
  import { nodeEnv } from "@djangocfg/ui-core/lib";
40
- import dynamic from 'next/dynamic';
41
40
  import NextTopLoader from 'nextjs-toploader';
42
41
  import { SWRConfig } from 'swr';
43
42
 
@@ -61,10 +60,9 @@ import { A2HSHint, PWAPageResumeManager, PwaProvider } from '@djangocfg/ui-nextj
61
60
  import type { BaseLayoutProps } from '../types/layout.types';
62
61
  import { LayoutI18nProvider } from './LayoutI18nProvider';
63
62
 
64
- // Lazy load DebugButton from @djangocfg/debuger
65
- const DebugButton = dynamic(
66
- () => import('@djangocfg/debuger').then(mod => ({ default: mod.DebugButton })),
67
- { ssr: false }
63
+ import React from 'react';
64
+ const DebugButton = React.lazy(() =>
65
+ import('@djangocfg/debuger').then((m) => ({ default: m.DebugButton }))
68
66
  );
69
67
 
70
68
  // For backwards compatibility, re-export as BaseAppProps
@@ -9,7 +9,6 @@
9
9
  'use client';
10
10
 
11
11
  import React, { ReactNode } from 'react';
12
- import dynamic from 'next/dynamic';
13
12
 
14
13
  import { Preloader } from '@djangocfg/ui-core/components';
15
14
  import { SidebarInset, SidebarProvider } from '@djangocfg/ui-core/components';
@@ -43,10 +42,8 @@ export { SidebarBrandSwitcher } from './components';
43
42
 
44
43
  export { PrivateLayoutProps };
45
44
 
46
- // Lazy-load ProfileDialog so the profile bundle is only fetched when opened.
47
- const ProfileDialog = dynamic(
48
- () => import('../ProfileLayout/ProfileDialog/ProfileDialog').then((m) => m.ProfileDialog),
49
- { ssr: false },
45
+ const ProfileDialog = React.lazy(() =>
46
+ import('../ProfileLayout/ProfileDialog/ProfileDialog').then((m) => ({ default: m.ProfileDialog }))
50
47
  );
51
48
 
52
49
  export function PrivateLayout({