@djangocfg/layouts 2.1.89 → 2.1.91
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 +7 -5
- package/src/components/core/LucideIcon.tsx +1 -1
- package/src/components/errors/ErrorsTracker/providers/ErrorTrackingProvider.tsx +2 -2
- package/src/layouts/AppLayout/BaseApp.tsx +3 -2
- package/src/layouts/PrivateLayout/components/PrivateContent.tsx +1 -1
- package/src/layouts/PrivateLayout/components/PrivateSidebar.tsx +1 -1
- package/src/layouts/ProfileLayout/components/AvatarSection.tsx +1 -1
- package/src/layouts/ProfileLayout/components/ProfileForm.tsx +1 -1
- package/src/layouts/PublicLayout/components/PublicNavigation.tsx +6 -2
- package/src/snippets/McpChat/components/MessageBubble.tsx +2 -1
- package/src/snippets/PWAInstall/components/A2HSHint.tsx +1 -1
- package/src/snippets/PushNotifications/hooks/useDjangoPush.ts +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@djangocfg/layouts",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.91",
|
|
4
4
|
"description": "Simple, straightforward layout components for Next.js - import and use with props",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"layouts",
|
|
@@ -92,9 +92,11 @@
|
|
|
92
92
|
"check": "tsc --noEmit"
|
|
93
93
|
},
|
|
94
94
|
"peerDependencies": {
|
|
95
|
-
"@djangocfg/api": "^2.1.
|
|
96
|
-
"@djangocfg/centrifugo": "^2.1.
|
|
97
|
-
"@djangocfg/ui-
|
|
95
|
+
"@djangocfg/api": "^2.1.91",
|
|
96
|
+
"@djangocfg/centrifugo": "^2.1.91",
|
|
97
|
+
"@djangocfg/ui-core": "^2.1.91",
|
|
98
|
+
"@djangocfg/ui-nextjs": "^2.1.91",
|
|
99
|
+
"@djangocfg/ui-tools": "^2.1.91",
|
|
98
100
|
"@hookform/resolvers": "^5.2.0",
|
|
99
101
|
"consola": "^3.4.2",
|
|
100
102
|
"lucide-react": "^0.545.0",
|
|
@@ -117,7 +119,7 @@
|
|
|
117
119
|
"uuid": "^11.1.0"
|
|
118
120
|
},
|
|
119
121
|
"devDependencies": {
|
|
120
|
-
"@djangocfg/typescript-config": "^2.1.
|
|
122
|
+
"@djangocfg/typescript-config": "^2.1.91",
|
|
121
123
|
"@types/node": "^24.7.2",
|
|
122
124
|
"@types/react": "^19.1.0",
|
|
123
125
|
"@types/react-dom": "^19.1.0",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
import * as LucideIcons from 'lucide-react';
|
|
21
21
|
import React from 'react';
|
|
22
22
|
|
|
23
|
-
import { cn } from '@djangocfg/ui-
|
|
23
|
+
import { cn } from '@djangocfg/ui-core/lib';
|
|
24
24
|
|
|
25
25
|
import type { LucideIcon as LucideIconType } from 'lucide-react';
|
|
26
26
|
export interface LucideIconProps extends Omit<React.SVGProps<SVGSVGElement>, 'children'> {
|
|
@@ -30,7 +30,7 @@ import React, {
|
|
|
30
30
|
createContext, ReactNode, useCallback, useContext, useEffect, useState
|
|
31
31
|
} from 'react';
|
|
32
32
|
|
|
33
|
-
import { toast } from '
|
|
33
|
+
import { toast } from '@djangocfg/ui-core/hooks';
|
|
34
34
|
|
|
35
35
|
import { createErrorToast } from '../components/ErrorToast';
|
|
36
36
|
import {
|
|
@@ -154,7 +154,7 @@ export function ErrorTrackingProvider({
|
|
|
154
154
|
// Show toast notification using Sonner
|
|
155
155
|
if (config.showToast && shouldShowToast) {
|
|
156
156
|
const toastOptions = createErrorToast(detail, config);
|
|
157
|
-
toast.error(toastOptions.title
|
|
157
|
+
toast.error(toastOptions.title, {
|
|
158
158
|
description: toastOptions.description,
|
|
159
159
|
duration: toastOptions.duration,
|
|
160
160
|
});
|
|
@@ -52,7 +52,8 @@ import { SWRConfig } from 'swr';
|
|
|
52
52
|
import { getCentrifugoAuthTokenRetrieve } from '@djangocfg/api';
|
|
53
53
|
import { AuthProvider } from '@djangocfg/api/auth';
|
|
54
54
|
import { CentrifugoProvider } from '@djangocfg/centrifugo';
|
|
55
|
-
import {
|
|
55
|
+
import { Toaster, TooltipProvider } from '@djangocfg/ui-core/components';
|
|
56
|
+
import { ThemeProvider } from '@djangocfg/ui-nextjs/theme';
|
|
56
57
|
import { ErrorBoundary } from '../../components/errors/ErrorBoundary';
|
|
57
58
|
import { ErrorTrackingProvider } from '../../components/errors/ErrorsTracker';
|
|
58
59
|
import { AnalyticsProvider } from '../../snippets/Analytics';
|
|
@@ -148,7 +149,7 @@ export function BaseApp({
|
|
|
148
149
|
showSpinner={false}
|
|
149
150
|
shadow="0 0 10px hsl(var(--primary)), 0 0 5px hsl(var(--primary))"
|
|
150
151
|
/>
|
|
151
|
-
<
|
|
152
|
+
<Toaster />
|
|
152
153
|
|
|
153
154
|
{/* PWA Install Hint */}
|
|
154
155
|
{showInstallHint && (
|
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
Sidebar, SidebarContent, SidebarGroup, SidebarGroupContent, SidebarGroupLabel, SidebarHeader,
|
|
15
15
|
SidebarMenu, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, useSidebar
|
|
16
16
|
} from '@djangocfg/ui-nextjs/components';
|
|
17
|
-
import { cn } from '@djangocfg/ui-
|
|
17
|
+
import { cn } from '@djangocfg/ui-core/lib';
|
|
18
18
|
|
|
19
19
|
import { LucideIcon } from '../../../components';
|
|
20
20
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
import { Check, Upload, X } from 'lucide-react';
|
|
4
4
|
import React, { useState } from 'react';
|
|
5
|
-
import { toast } from '
|
|
5
|
+
import { toast } from '@djangocfg/ui-core/hooks';
|
|
6
6
|
|
|
7
7
|
import { useAccountsContext, useAuth } from '@djangocfg/api/auth';
|
|
8
8
|
import { Avatar, AvatarFallback, Button } from '@djangocfg/ui-nextjs/components';
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
import React, { useEffect, useState } from 'react';
|
|
5
5
|
import { useForm } from 'react-hook-form';
|
|
6
|
-
import { toast } from '
|
|
6
|
+
import { toast } from '@djangocfg/ui-core/hooks';
|
|
7
7
|
|
|
8
8
|
import {
|
|
9
9
|
PatchedUserProfileUpdateRequest, PatchedUserProfileUpdateRequestSchema, type
|
|
@@ -13,7 +13,7 @@ import React from 'react';
|
|
|
13
13
|
import { useAuth } from '@djangocfg/api/auth';
|
|
14
14
|
import { Button } from '@djangocfg/ui-nextjs/components';
|
|
15
15
|
import { useIsMobile } from '@djangocfg/ui-nextjs/hooks';
|
|
16
|
-
import { cn } from '@djangocfg/ui-
|
|
16
|
+
import { cn } from '@djangocfg/ui-core/lib';
|
|
17
17
|
import { ThemeToggle } from '@djangocfg/ui-nextjs/theme';
|
|
18
18
|
|
|
19
19
|
import { UserMenu } from '../../_components/UserMenu';
|
|
@@ -38,8 +38,12 @@ export function PublicNavigation({
|
|
|
38
38
|
const { isAuthenticated } = useAuth();
|
|
39
39
|
const isMobile = useIsMobile();
|
|
40
40
|
|
|
41
|
+
// Nav class (background blur with opacity 0.8)
|
|
42
|
+
// bg-background/80 - doesnt work in tailwind4
|
|
43
|
+
const navClass = 'sticky top-0 w-full z-50 border-b bg-background';
|
|
44
|
+
|
|
41
45
|
return (
|
|
42
|
-
<nav className=
|
|
46
|
+
<nav className={navClass} style={{ backgroundColor: 'hsl(var(--background) / 0.6)', backdropFilter: 'blur(10px)' }}>
|
|
43
47
|
<div className="w-full px-4 sm:px-6 lg:px-8">
|
|
44
48
|
<div className="flex items-center justify-between py-4">
|
|
45
49
|
{/* Logo */}
|
|
@@ -5,8 +5,9 @@ import React from 'react';
|
|
|
5
5
|
|
|
6
6
|
import { useAuth } from '@djangocfg/api/auth';
|
|
7
7
|
import {
|
|
8
|
-
Avatar, AvatarFallback, AvatarImage, Badge, Card, CardContent
|
|
8
|
+
Avatar, AvatarFallback, AvatarImage, Badge, Card, CardContent
|
|
9
9
|
} from '@djangocfg/ui-nextjs';
|
|
10
|
+
import { MarkdownMessage } from '@djangocfg/ui-tools';
|
|
10
11
|
|
|
11
12
|
import type { AIChatMessage } from '../types';
|
|
12
13
|
|
|
@@ -15,7 +15,7 @@ import { ChevronRight, Download, Share, X } from 'lucide-react';
|
|
|
15
15
|
import React, { useEffect, useState } from 'react';
|
|
16
16
|
|
|
17
17
|
import { Button } from '@djangocfg/ui-nextjs';
|
|
18
|
-
import { cn } from '@djangocfg/ui-
|
|
18
|
+
import { cn } from '@djangocfg/ui-core/lib';
|
|
19
19
|
|
|
20
20
|
import { useInstall } from '../context/InstallContext';
|
|
21
21
|
import { isA2HSDismissedRecently, markA2HSDismissed } from '../utils/localStorage';
|