@djangocfg/layouts 2.1.103 → 2.1.104
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 +33 -37
- package/src/components/RedirectPage/RedirectPage.tsx +2 -2
- package/src/components/core/ClientOnly.tsx +1 -1
- package/src/components/errors/ErrorLayout.tsx +1 -1
- package/src/components/errors/ErrorsTracker/components/ErrorButtons.tsx +1 -1
- package/src/components/index.ts +2 -0
- package/src/index.ts +2 -0
- package/src/layouts/AuthLayout/components/AuthHelp.tsx +1 -1
- package/src/layouts/AuthLayout/components/AuthSuccess.tsx +1 -1
- package/src/layouts/AuthLayout/components/IdentifierForm.tsx +1 -1
- package/src/layouts/AuthLayout/components/OTPForm.tsx +1 -1
- package/src/layouts/AuthLayout/components/TwoFactorForm.tsx +1 -1
- package/src/layouts/AuthLayout/components/TwoFactorSetup.tsx +1 -1
- package/src/layouts/AuthLayout/components/oauth/OAuthCallback.tsx +1 -1
- package/src/layouts/AuthLayout/components/oauth/OAuthProviders.tsx +1 -1
- package/src/layouts/PrivateLayout/PrivateLayout.tsx +3 -2
- package/src/layouts/PrivateLayout/components/PrivateHeader.tsx +2 -2
- package/src/layouts/ProfileLayout/ProfileLayout.tsx +1 -1
- package/src/layouts/ProfileLayout/__tests__/TwoFactorSection.test.tsx +1 -1
- package/src/layouts/ProfileLayout/components/AvatarSection.tsx +1 -1
- package/src/layouts/ProfileLayout/components/DeleteAccountSection.tsx +1 -1
- package/src/layouts/ProfileLayout/components/ProfileForm.tsx +1 -1
- package/src/layouts/ProfileLayout/components/TwoFactorSection.tsx +1 -1
- package/src/layouts/PublicLayout/components/PublicFooter/PublicFooter.tsx +1 -1
- package/src/layouts/PublicLayout/components/PublicMobileDrawer.tsx +1 -1
- package/src/layouts/PublicLayout/components/PublicNavigation.tsx +2 -2
- package/src/layouts/_components/UserMenu.tsx +1 -1
- package/src/layouts/index.ts +2 -0
- package/src/pages/index.ts +2 -0
- package/src/pages/legal/LegalPage.tsx +1 -1
- package/src/snippets/AuthDialog/AuthDialog.tsx +3 -2
- package/src/snippets/McpChat/components/AIChatWidget.tsx +1 -1
- package/src/snippets/McpChat/components/AskAIButton.tsx +1 -1
- package/src/snippets/McpChat/components/ChatMessages.tsx +1 -1
- package/src/snippets/McpChat/components/ChatPanel.tsx +1 -1
- package/src/snippets/McpChat/components/ChatSidebar.tsx +1 -1
- package/src/snippets/McpChat/components/ChatWidget.tsx +1 -1
- package/src/snippets/McpChat/components/MessageBubble.tsx +1 -1
- package/src/snippets/McpChat/components/MessageInput.tsx +1 -1
- package/src/snippets/McpChat/context/AIChatContext.tsx +1 -1
- package/src/snippets/McpChat/context/ChatContext.tsx +1 -1
- package/src/snippets/McpChat/hooks/useChatLayout.ts +1 -1
- package/src/snippets/PWAInstall/components/A2HSHint.tsx +0 -1
- package/src/snippets/PWAInstall/components/DesktopGuide.tsx +1 -1
- package/src/snippets/PWAInstall/components/IOSGuide.tsx +1 -1
- package/src/snippets/PWAInstall/components/IOSGuideDrawer.tsx +1 -1
- package/src/snippets/PWAInstall/components/IOSGuideModal.tsx +1 -1
- package/src/snippets/PWAInstall/hooks/useInstallPrompt.ts +2 -2
- package/src/snippets/PushNotifications/components/PushPrompt.tsx +1 -1
- package/src/snippets/index.ts +1 -0
- package/dist/AIChatWidget-LUPM7S2O.mjs +0 -1644
- package/dist/AIChatWidget-LUPM7S2O.mjs.map +0 -1
- package/dist/AIChatWidget-O23TJJ7C.mjs +0 -3
- package/dist/AIChatWidget-O23TJJ7C.mjs.map +0 -1
- package/dist/chunk-53YKWR6F.mjs +0 -6
- package/dist/chunk-53YKWR6F.mjs.map +0 -1
- package/dist/chunk-EI7TDN2G.mjs +0 -1652
- package/dist/chunk-EI7TDN2G.mjs.map +0 -1
- package/dist/components.cjs +0 -925
- package/dist/components.cjs.map +0 -1
- package/dist/components.d.mts +0 -583
- package/dist/components.d.ts +0 -583
- package/dist/components.mjs +0 -879
- package/dist/components.mjs.map +0 -1
- package/dist/index.cjs +0 -7573
- package/dist/index.cjs.map +0 -1
- package/dist/index.d.mts +0 -2376
- package/dist/index.d.ts +0 -2376
- package/dist/index.mjs +0 -5673
- package/dist/index.mjs.map +0 -1
- package/dist/layouts.cjs +0 -6530
- package/dist/layouts.cjs.map +0 -1
- package/dist/layouts.d.mts +0 -748
- package/dist/layouts.d.ts +0 -748
- package/dist/layouts.mjs +0 -4741
- package/dist/layouts.mjs.map +0 -1
- package/dist/pages.cjs +0 -178
- package/dist/pages.cjs.map +0 -1
- package/dist/pages.d.mts +0 -57
- package/dist/pages.d.ts +0 -57
- package/dist/pages.mjs +0 -168
- package/dist/pages.mjs.map +0 -1
- package/dist/snippets.cjs +0 -3793
- package/dist/snippets.cjs.map +0 -1
- package/dist/snippets.d.mts +0 -1192
- package/dist/snippets.d.ts +0 -1192
- package/dist/snippets.mjs +0 -3738
- package/dist/snippets.mjs.map +0 -1
- package/dist/utils.cjs +0 -34
- package/dist/utils.cjs.map +0 -1
- package/dist/utils.d.mts +0 -40
- package/dist/utils.d.ts +0 -40
- package/dist/utils.mjs +0 -25
- package/dist/utils.mjs.map +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@djangocfg/layouts",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.104",
|
|
4
4
|
"description": "Simple, straightforward layout components for Next.js - import and use with props",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"layouts",
|
|
@@ -26,39 +26,39 @@
|
|
|
26
26
|
"url": "https://github.com/markolofsen/django-cfg/issues"
|
|
27
27
|
},
|
|
28
28
|
"license": "MIT",
|
|
29
|
-
"main": "./
|
|
30
|
-
"module": "./
|
|
31
|
-
"types": "./
|
|
29
|
+
"main": "./src/index.ts",
|
|
30
|
+
"module": "./src/index.ts",
|
|
31
|
+
"types": "./src/index.ts",
|
|
32
32
|
"exports": {
|
|
33
33
|
".": {
|
|
34
|
-
"types": "./
|
|
35
|
-
"import": "./
|
|
36
|
-
"require": "./
|
|
34
|
+
"types": "./src/index.ts",
|
|
35
|
+
"import": "./src/index.ts",
|
|
36
|
+
"require": "./src/index.ts"
|
|
37
37
|
},
|
|
38
38
|
"./layouts": {
|
|
39
|
-
"types": "./
|
|
40
|
-
"import": "./
|
|
41
|
-
"require": "./
|
|
39
|
+
"types": "./src/layouts/index.ts",
|
|
40
|
+
"import": "./src/layouts/index.ts",
|
|
41
|
+
"require": "./src/layouts/index.ts"
|
|
42
42
|
},
|
|
43
43
|
"./snippets": {
|
|
44
|
-
"types": "./
|
|
45
|
-
"import": "./
|
|
46
|
-
"require": "./
|
|
44
|
+
"types": "./src/snippets/index.ts",
|
|
45
|
+
"import": "./src/snippets/index.ts",
|
|
46
|
+
"require": "./src/snippets/index.ts"
|
|
47
47
|
},
|
|
48
48
|
"./utils": {
|
|
49
|
-
"types": "./
|
|
50
|
-
"import": "./
|
|
51
|
-
"require": "./
|
|
49
|
+
"types": "./src/utils/index.ts",
|
|
50
|
+
"import": "./src/utils/index.ts",
|
|
51
|
+
"require": "./src/utils/index.ts"
|
|
52
52
|
},
|
|
53
53
|
"./components": {
|
|
54
|
-
"types": "./
|
|
55
|
-
"import": "./
|
|
56
|
-
"require": "./
|
|
54
|
+
"types": "./src/components/index.ts",
|
|
55
|
+
"import": "./src/components/index.ts",
|
|
56
|
+
"require": "./src/components/index.ts"
|
|
57
57
|
},
|
|
58
58
|
"./pages": {
|
|
59
|
-
"types": "./
|
|
60
|
-
"import": "./
|
|
61
|
-
"require": "./
|
|
59
|
+
"types": "./src/pages/index.ts",
|
|
60
|
+
"import": "./src/pages/index.ts",
|
|
61
|
+
"require": "./src/pages/index.ts"
|
|
62
62
|
},
|
|
63
63
|
"./styles": "./src/styles/index.css",
|
|
64
64
|
"./styles/dashboard": "./src/styles/dashboard.css"
|
|
@@ -70,18 +70,15 @@
|
|
|
70
70
|
"LICENSE"
|
|
71
71
|
],
|
|
72
72
|
"scripts": {
|
|
73
|
-
"build": "tsup",
|
|
74
|
-
"clean": "rm -rf dist",
|
|
75
|
-
"dev": "tsup --watch",
|
|
76
73
|
"lint": "eslint .",
|
|
77
74
|
"check": "tsc --noEmit"
|
|
78
75
|
},
|
|
79
76
|
"peerDependencies": {
|
|
80
|
-
"@djangocfg/api": "^2.1.
|
|
81
|
-
"@djangocfg/centrifugo": "^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.104",
|
|
78
|
+
"@djangocfg/centrifugo": "^2.1.104",
|
|
79
|
+
"@djangocfg/ui-core": "^2.1.104",
|
|
80
|
+
"@djangocfg/ui-nextjs": "^2.1.104",
|
|
81
|
+
"@djangocfg/ui-tools": "^2.1.104",
|
|
85
82
|
"@hookform/resolvers": "^5.2.0",
|
|
86
83
|
"consola": "^3.4.2",
|
|
87
84
|
"lucide-react": "^0.545.0",
|
|
@@ -104,17 +101,16 @@
|
|
|
104
101
|
"uuid": "^11.1.0"
|
|
105
102
|
},
|
|
106
103
|
"devDependencies": {
|
|
107
|
-
"@djangocfg/api": "^2.1.
|
|
108
|
-
"@djangocfg/centrifugo": "^2.1.
|
|
109
|
-
"@djangocfg/typescript-config": "^2.1.
|
|
110
|
-
"@djangocfg/ui-core": "^2.1.
|
|
111
|
-
"@djangocfg/ui-nextjs": "^2.1.
|
|
112
|
-
"@djangocfg/ui-tools": "^2.1.
|
|
104
|
+
"@djangocfg/api": "^2.1.104",
|
|
105
|
+
"@djangocfg/centrifugo": "^2.1.104",
|
|
106
|
+
"@djangocfg/typescript-config": "^2.1.104",
|
|
107
|
+
"@djangocfg/ui-core": "^2.1.104",
|
|
108
|
+
"@djangocfg/ui-nextjs": "^2.1.104",
|
|
109
|
+
"@djangocfg/ui-tools": "^2.1.104",
|
|
113
110
|
"@types/node": "^24.7.2",
|
|
114
111
|
"@types/react": "^19.1.0",
|
|
115
112
|
"@types/react-dom": "^19.1.0",
|
|
116
113
|
"eslint": "^9.37.0",
|
|
117
|
-
"tsup": "^8.5.0",
|
|
118
114
|
"typescript": "^5.9.3"
|
|
119
115
|
},
|
|
120
116
|
"publishConfig": {
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
import { useEffect } from 'react';
|
|
4
4
|
|
|
5
5
|
import { useAuth } from '@djangocfg/api/auth';
|
|
6
|
-
import { Preloader } from '@djangocfg/ui-
|
|
7
|
-
import { useCfgRouter } from '@djangocfg/
|
|
6
|
+
import { Preloader } from '@djangocfg/ui-core/components';
|
|
7
|
+
import { useCfgRouter } from '@djangocfg/api/auth';
|
|
8
8
|
|
|
9
9
|
export interface RedirectPageProps {
|
|
10
10
|
/**
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
import { Copy, Terminal } from 'lucide-react';
|
|
10
10
|
import React from 'react';
|
|
11
11
|
|
|
12
|
-
import { Button } from '@djangocfg/ui-
|
|
12
|
+
import { Button } from '@djangocfg/ui-core';
|
|
13
13
|
import { useCopy } from '@djangocfg/ui-core/hooks';
|
|
14
14
|
|
|
15
15
|
import { generateCurlFromError } from '../utils/curl-generator';
|
package/src/components/index.ts
CHANGED
package/src/index.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { HelpCircle, Mail, MessageCircle } from 'lucide-react';
|
|
2
2
|
import React from 'react';
|
|
3
3
|
|
|
4
|
-
import { Button } from '@djangocfg/ui-
|
|
4
|
+
import { Button } from '@djangocfg/ui-core/components';
|
|
5
5
|
|
|
6
6
|
import { useAuthFormContext } from '../context';
|
|
7
7
|
|
|
@@ -6,7 +6,7 @@ import React, { useEffect, useState } from 'react';
|
|
|
6
6
|
import {
|
|
7
7
|
Button, Card, CardContent, CardDescription, CardHeader, CardTitle, Checkbox, Input, Label,
|
|
8
8
|
PhoneInput, Tabs, TabsContent, TabsList, TabsTrigger
|
|
9
|
-
} from '@djangocfg/ui-
|
|
9
|
+
} from '@djangocfg/ui-core/components';
|
|
10
10
|
|
|
11
11
|
import { useAuthFormContext } from '../context';
|
|
12
12
|
import { AuthHelp } from './AuthHelp';
|
|
@@ -5,7 +5,7 @@ import React, { useCallback, useRef } from 'react';
|
|
|
5
5
|
|
|
6
6
|
import {
|
|
7
7
|
Button, Card, CardContent, CardDescription, CardHeader, CardTitle, OTPInput
|
|
8
|
-
} from '@djangocfg/ui-
|
|
8
|
+
} from '@djangocfg/ui-core/components';
|
|
9
9
|
|
|
10
10
|
import { config } from '../../../utils';
|
|
11
11
|
import { useAuthFormContext } from '../context';
|
|
@@ -7,7 +7,7 @@ import React, { useEffect, useState } from 'react';
|
|
|
7
7
|
import { useGithubAuth } from '@djangocfg/api/auth';
|
|
8
8
|
import {
|
|
9
9
|
Card, CardContent, CardDescription, CardHeader, CardTitle
|
|
10
|
-
} from '@djangocfg/ui-
|
|
10
|
+
} from '@djangocfg/ui-core/components';
|
|
11
11
|
|
|
12
12
|
import { useAuthFormContext } from '../../context';
|
|
13
13
|
|
|
@@ -4,7 +4,7 @@ import { Github } from 'lucide-react';
|
|
|
4
4
|
import React from 'react';
|
|
5
5
|
|
|
6
6
|
import { useGithubAuth } from '@djangocfg/api/auth';
|
|
7
|
-
import { Button } from '@djangocfg/ui-
|
|
7
|
+
import { Button } from '@djangocfg/ui-core/components';
|
|
8
8
|
|
|
9
9
|
import { useAuthFormContext } from '../../context';
|
|
10
10
|
|
|
@@ -51,8 +51,9 @@ import { useRouter } from 'next/navigation';
|
|
|
51
51
|
|
|
52
52
|
import { useAuth } from '@djangocfg/api/auth';
|
|
53
53
|
import {
|
|
54
|
-
Preloader
|
|
55
|
-
} from '@djangocfg/ui-
|
|
54
|
+
Preloader
|
|
55
|
+
} from '@djangocfg/ui-core/components';
|
|
56
|
+
import { SidebarInset, SidebarProvider } from '@djangocfg/ui-nextjs/components';
|
|
56
57
|
|
|
57
58
|
import { UserMenuConfig } from '../types';
|
|
58
59
|
import { PrivateContent, PrivateHeader, PrivateSidebar } from './components';
|
|
@@ -6,11 +6,11 @@
|
|
|
6
6
|
|
|
7
7
|
'use client';
|
|
8
8
|
|
|
9
|
-
import Link from 'next/link';
|
|
10
9
|
import React from 'react';
|
|
11
10
|
|
|
12
11
|
import { useAuth } from '@djangocfg/api/auth';
|
|
13
|
-
import {
|
|
12
|
+
import { Separator } from '@djangocfg/ui-nextjs/components';
|
|
13
|
+
import { SidebarTrigger } from '@djangocfg/ui-nextjs/components';
|
|
14
14
|
import { ThemeToggle } from '@djangocfg/ui-nextjs/theme';
|
|
15
15
|
|
|
16
16
|
import { UserMenu } from '../../_components/UserMenu';
|
|
@@ -25,7 +25,7 @@ import {
|
|
|
25
25
|
Button,
|
|
26
26
|
Input,
|
|
27
27
|
Preloader,
|
|
28
|
-
} from '@djangocfg/ui-
|
|
28
|
+
} from '@djangocfg/ui-core/components';
|
|
29
29
|
import { zodResolver } from '@hookform/resolvers/zod';
|
|
30
30
|
|
|
31
31
|
import { TwoFactorSetup } from '../AuthLayout/components/TwoFactorSetup';
|
|
@@ -41,7 +41,7 @@ jest.mock('../../AuthLayout/components/TwoFactorSetup', () => ({
|
|
|
41
41
|
}));
|
|
42
42
|
|
|
43
43
|
// Mock UI components
|
|
44
|
-
jest.mock('@djangocfg/ui-
|
|
44
|
+
jest.mock('@djangocfg/ui-core/components', () => ({
|
|
45
45
|
Alert: ({ children, variant }: any) => (
|
|
46
46
|
<div data-testid="alert" data-variant={variant}>
|
|
47
47
|
{children}
|
|
@@ -5,7 +5,7 @@ import React, { useState } from 'react';
|
|
|
5
5
|
import { toast } from '@djangocfg/ui-core/hooks';
|
|
6
6
|
|
|
7
7
|
import { useAuth } from '@djangocfg/api/auth';
|
|
8
|
-
import { Avatar, AvatarFallback, Button } from '@djangocfg/ui-
|
|
8
|
+
import { Avatar, AvatarFallback, Button } from '@djangocfg/ui-core/components';
|
|
9
9
|
|
|
10
10
|
import { profileLogger } from '../../../utils/logger';
|
|
11
11
|
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
} from '@djangocfg/api/auth';
|
|
12
12
|
import {
|
|
13
13
|
Button, Form, FormControl, FormField, FormItem, FormLabel, FormMessage, Input, Label, PhoneInput
|
|
14
|
-
} from '@djangocfg/ui-
|
|
14
|
+
} from '@djangocfg/ui-core/components';
|
|
15
15
|
import { zodResolver } from '@hookform/resolvers/zod';
|
|
16
16
|
|
|
17
17
|
import { profileLogger } from '../../../utils/logger';
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
import Link from 'next/link';
|
|
11
11
|
import React from 'react';
|
|
12
12
|
|
|
13
|
-
import { useIsMobile } from '@djangocfg/ui-
|
|
13
|
+
import { useIsMobile } from '@djangocfg/ui-core/hooks';
|
|
14
14
|
|
|
15
15
|
import { FooterBottom } from './FooterBottom';
|
|
16
16
|
import { FooterMenuSections } from './FooterMenuSections';
|
|
@@ -13,7 +13,7 @@ import React from 'react';
|
|
|
13
13
|
import { useAuth } from '@djangocfg/api/auth';
|
|
14
14
|
import {
|
|
15
15
|
Button, Drawer, DrawerClose, DrawerContent, DrawerHeader, DrawerTitle
|
|
16
|
-
} from '@djangocfg/ui-
|
|
16
|
+
} from '@djangocfg/ui-core/components';
|
|
17
17
|
import { ThemeToggle } from '@djangocfg/ui-nextjs/theme';
|
|
18
18
|
|
|
19
19
|
import { UserMenu } from '../../_components/UserMenu';
|
|
@@ -11,8 +11,8 @@ import Link from 'next/link';
|
|
|
11
11
|
import React from 'react';
|
|
12
12
|
|
|
13
13
|
import { useAuth } from '@djangocfg/api/auth';
|
|
14
|
-
import { Button } from '@djangocfg/ui-
|
|
15
|
-
import { useIsMobile } from '@djangocfg/ui-
|
|
14
|
+
import { Button } from '@djangocfg/ui-core/components';
|
|
15
|
+
import { useIsMobile } from '@djangocfg/ui-core/hooks';
|
|
16
16
|
import { cn } from '@djangocfg/ui-core/lib';
|
|
17
17
|
import { ThemeToggle } from '@djangocfg/ui-nextjs/theme';
|
|
18
18
|
|
|
@@ -39,7 +39,7 @@ import {
|
|
|
39
39
|
Avatar, AvatarFallback, AvatarImage, Button, DropdownMenu, DropdownMenuContent,
|
|
40
40
|
DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuSeparator,
|
|
41
41
|
DropdownMenuTrigger
|
|
42
|
-
} from '@djangocfg/ui-
|
|
42
|
+
} from '@djangocfg/ui-core/components';
|
|
43
43
|
|
|
44
44
|
import type { UserMenuGroup } from '../types';
|
|
45
45
|
|
package/src/layouts/index.ts
CHANGED
package/src/pages/index.ts
CHANGED
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
|
|
20
20
|
import React from 'react';
|
|
21
21
|
|
|
22
|
-
import { Card, CardContent, CardHeader, CardTitle } from '@djangocfg/ui-
|
|
22
|
+
import { Card, CardContent, CardHeader, CardTitle } from '@djangocfg/ui-core/components';
|
|
23
23
|
|
|
24
24
|
import type { LegalPageConfig } from './types';
|
|
25
25
|
|
|
@@ -5,8 +5,9 @@ import React, { useState } from 'react';
|
|
|
5
5
|
|
|
6
6
|
import {
|
|
7
7
|
Button, Dialog, DialogContent, DialogHeader, DialogTitle
|
|
8
|
-
} from '@djangocfg/ui-
|
|
9
|
-
import { useCfgRouter
|
|
8
|
+
} from '@djangocfg/ui-core/components';
|
|
9
|
+
import { useCfgRouter } from '@djangocfg/api/auth';
|
|
10
|
+
import { useEventListener } from '@djangocfg/ui-core';
|
|
10
11
|
|
|
11
12
|
// Re-export events for backwards compatibility
|
|
12
13
|
export const DIALOG_EVENTS = {
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
import { Bot, MessageSquare, StopCircle } from 'lucide-react';
|
|
4
4
|
import React, { forwardRef, useImperativeHandle, useRef } from 'react';
|
|
5
5
|
|
|
6
|
-
import { Button } from '@djangocfg/ui-
|
|
6
|
+
import { Button } from '@djangocfg/ui-core';
|
|
7
7
|
|
|
8
8
|
import { MessageBubble } from './MessageBubble';
|
|
9
9
|
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
import { Bot, PanelRight, RotateCcw, X } from 'lucide-react';
|
|
4
4
|
import React from 'react';
|
|
5
5
|
|
|
6
|
-
import { Button, Card, CardContent, CardFooter, CardHeader } from '@djangocfg/ui-
|
|
6
|
+
import { Button, Card, CardContent, CardFooter, CardHeader } from '@djangocfg/ui-core';
|
|
7
7
|
|
|
8
8
|
import { useAIChatContext } from '../context/AIChatContext';
|
|
9
9
|
import { ChatMessages } from './ChatMessages';
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
import { Bot, GripVertical, PanelRightClose, RotateCcw, X } from 'lucide-react';
|
|
4
4
|
import React, { useEffect } from 'react';
|
|
5
5
|
|
|
6
|
-
import { Button } from '@djangocfg/ui-
|
|
6
|
+
import { Button } from '@djangocfg/ui-core';
|
|
7
7
|
|
|
8
8
|
import { useAIChatContext } from '../context/AIChatContext';
|
|
9
9
|
import { useChatLayout } from '../hooks/useChatLayout';
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
import { MessageCircle } from 'lucide-react';
|
|
4
4
|
import React from 'react';
|
|
5
5
|
|
|
6
|
-
import { Button, Portal } from '@djangocfg/ui-
|
|
6
|
+
import { Button, Portal } from '@djangocfg/ui-core';
|
|
7
7
|
|
|
8
8
|
import { ChatProvider, useChatContext, useChatContextOptional } from '../context';
|
|
9
9
|
import { useChatLayout } from '../hooks/useChatLayout';
|
|
@@ -6,7 +6,7 @@ import React from 'react';
|
|
|
6
6
|
import { useAuth } from '@djangocfg/api/auth';
|
|
7
7
|
import {
|
|
8
8
|
Avatar, AvatarFallback, AvatarImage, Badge, Card, CardContent
|
|
9
|
-
} from '@djangocfg/ui-
|
|
9
|
+
} from '@djangocfg/ui-core';
|
|
10
10
|
import { MarkdownMessage } from '@djangocfg/ui-tools';
|
|
11
11
|
|
|
12
12
|
import type { AIChatMessage } from '../types';
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
import { Loader2, Send } from 'lucide-react';
|
|
4
4
|
import React, { useCallback, useEffect, useRef, useState } from 'react';
|
|
5
5
|
|
|
6
|
-
import { Button } from '@djangocfg/ui-
|
|
6
|
+
import { Button } from '@djangocfg/ui-core';
|
|
7
7
|
|
|
8
8
|
export interface AIMessageInputProps {
|
|
9
9
|
onSend: (message: string) => void;
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
createContext, ReactNode, useCallback, useContext, useEffect, useMemo, useRef, useState
|
|
5
5
|
} from 'react';
|
|
6
6
|
|
|
7
|
-
import { useIsMobile, useLocalStorage } from '@djangocfg/ui-
|
|
7
|
+
import { useIsMobile, useLocalStorage } from '@djangocfg/ui-core/hooks';
|
|
8
8
|
|
|
9
9
|
import { useAIChat } from '../hooks/useAIChat';
|
|
10
10
|
import { AIChatMessage, ChatDisplayMode, ChatWidgetConfig, mcpEndpoints} from '../types';
|
|
@@ -5,7 +5,7 @@ import React, {
|
|
|
5
5
|
} from 'react';
|
|
6
6
|
import { v4 as uuidv4 } from 'uuid';
|
|
7
7
|
|
|
8
|
-
import { useIsMobile, useLocalStorage } from '@djangocfg/ui-
|
|
8
|
+
import { useIsMobile, useLocalStorage } from '@djangocfg/ui-core/hooks';
|
|
9
9
|
|
|
10
10
|
import { storageKeys } from '../config';
|
|
11
11
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
import { useCallback, useEffect, useRef, useState } from 'react';
|
|
4
4
|
|
|
5
|
-
import { useLocalStorage } from '@djangocfg/ui-
|
|
5
|
+
import { useLocalStorage } from '@djangocfg/ui-core/hooks';
|
|
6
6
|
|
|
7
7
|
import { fabConfig, sidebarConfig, storageKeys } from '../config';
|
|
8
8
|
|
|
@@ -14,7 +14,6 @@
|
|
|
14
14
|
import { ChevronRight, Download, Share, X } from 'lucide-react';
|
|
15
15
|
import React, { useEffect, useState } from 'react';
|
|
16
16
|
|
|
17
|
-
import { Button } from '@djangocfg/ui-nextjs';
|
|
18
17
|
import { cn } from '@djangocfg/ui-core/lib';
|
|
19
18
|
|
|
20
19
|
import { useInstall } from '../context/InstallContext';
|
|
@@ -14,7 +14,7 @@ import React, { useMemo } from 'react';
|
|
|
14
14
|
import {
|
|
15
15
|
Button, Card, CardContent, Dialog, DialogContent, DialogDescription, DialogFooter, DialogHeader,
|
|
16
16
|
DialogTitle
|
|
17
|
-
} from '@djangocfg/ui-
|
|
17
|
+
} from '@djangocfg/ui-core/components';
|
|
18
18
|
|
|
19
19
|
import { useInstall } from '../context/InstallContext';
|
|
20
20
|
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
|
|
11
11
|
import React from 'react';
|
|
12
12
|
|
|
13
|
-
import { useIsMobile } from '@djangocfg/ui-
|
|
13
|
+
import { useIsMobile } from '@djangocfg/ui-core/hooks';
|
|
14
14
|
|
|
15
15
|
import { IOSGuideDrawer } from './IOSGuideDrawer';
|
|
16
16
|
import { IOSGuideModal } from './IOSGuideModal';
|
|
@@ -12,7 +12,7 @@ import React from 'react';
|
|
|
12
12
|
|
|
13
13
|
import {
|
|
14
14
|
Button, Card, CardContent, Drawer, DrawerContent, DrawerDescription, DrawerHeader, DrawerTitle
|
|
15
|
-
} from '@djangocfg/ui-
|
|
15
|
+
} from '@djangocfg/ui-core/components';
|
|
16
16
|
|
|
17
17
|
import type { IOSGuideModalProps, InstallStep } from '../types';
|
|
18
18
|
|
|
@@ -12,7 +12,7 @@ import React from 'react';
|
|
|
12
12
|
import {
|
|
13
13
|
Button, Card, CardContent, Dialog, DialogContent, DialogDescription, DialogFooter, DialogHeader,
|
|
14
14
|
DialogTitle
|
|
15
|
-
} from '@djangocfg/ui-
|
|
15
|
+
} from '@djangocfg/ui-core/components';
|
|
16
16
|
|
|
17
17
|
import type { IOSGuideModalProps, InstallStep } from '../types';
|
|
18
18
|
|
|
@@ -4,12 +4,12 @@
|
|
|
4
4
|
* PWA Install Prompt Hook
|
|
5
5
|
*
|
|
6
6
|
* Manages beforeinstallprompt event and installation state
|
|
7
|
-
* Uses existing hooks from @djangocfg/ui-
|
|
7
|
+
* Uses existing hooks from @djangocfg/ui-core for platform detection
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
10
|
import { useEffect, useState } from 'react';
|
|
11
11
|
|
|
12
|
-
import { useBrowserDetect, useDeviceDetect } from '@djangocfg/ui-nextjs';
|
|
12
|
+
import { useBrowserDetect, useDeviceDetect } from '@djangocfg/ui-nextjs/hooks';
|
|
13
13
|
|
|
14
14
|
import { markAppInstalled } from '../utils/localStorage';
|
|
15
15
|
import { pwaLogger } from '../utils/logger';
|
|
@@ -11,7 +11,7 @@ import { Bell, X } from 'lucide-react';
|
|
|
11
11
|
import React, { useEffect, useState } from 'react';
|
|
12
12
|
|
|
13
13
|
import { useAuth } from '@djangocfg/api/auth';
|
|
14
|
-
import { Button } from '@djangocfg/ui-
|
|
14
|
+
import { Button } from '@djangocfg/ui-core';
|
|
15
15
|
|
|
16
16
|
import { usePushNotifications } from '../hooks/usePushNotifications';
|
|
17
17
|
import { isPushDismissedRecently, markPushDismissed } from '../utils/localStorage';
|