@djangocfg/layouts 2.1.102 → 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.
Files changed (94) hide show
  1. package/package.json +33 -37
  2. package/src/components/RedirectPage/RedirectPage.tsx +2 -2
  3. package/src/components/core/ClientOnly.tsx +1 -1
  4. package/src/components/errors/ErrorLayout.tsx +1 -1
  5. package/src/components/errors/ErrorsTracker/components/ErrorButtons.tsx +1 -1
  6. package/src/components/index.ts +2 -0
  7. package/src/index.ts +2 -0
  8. package/src/layouts/AuthLayout/components/AuthHelp.tsx +1 -1
  9. package/src/layouts/AuthLayout/components/AuthSuccess.tsx +1 -1
  10. package/src/layouts/AuthLayout/components/IdentifierForm.tsx +1 -1
  11. package/src/layouts/AuthLayout/components/OTPForm.tsx +1 -1
  12. package/src/layouts/AuthLayout/components/TwoFactorForm.tsx +1 -1
  13. package/src/layouts/AuthLayout/components/TwoFactorSetup.tsx +1 -1
  14. package/src/layouts/AuthLayout/components/oauth/OAuthCallback.tsx +1 -1
  15. package/src/layouts/AuthLayout/components/oauth/OAuthProviders.tsx +1 -1
  16. package/src/layouts/PrivateLayout/PrivateLayout.tsx +3 -2
  17. package/src/layouts/PrivateLayout/components/PrivateHeader.tsx +2 -2
  18. package/src/layouts/ProfileLayout/ProfileLayout.tsx +1 -1
  19. package/src/layouts/ProfileLayout/__tests__/TwoFactorSection.test.tsx +1 -1
  20. package/src/layouts/ProfileLayout/components/AvatarSection.tsx +1 -1
  21. package/src/layouts/ProfileLayout/components/DeleteAccountSection.tsx +1 -1
  22. package/src/layouts/ProfileLayout/components/ProfileForm.tsx +1 -1
  23. package/src/layouts/ProfileLayout/components/TwoFactorSection.tsx +1 -1
  24. package/src/layouts/PublicLayout/components/PublicFooter/PublicFooter.tsx +1 -1
  25. package/src/layouts/PublicLayout/components/PublicMobileDrawer.tsx +1 -1
  26. package/src/layouts/PublicLayout/components/PublicNavigation.tsx +2 -2
  27. package/src/layouts/_components/UserMenu.tsx +1 -1
  28. package/src/layouts/index.ts +2 -0
  29. package/src/pages/index.ts +2 -0
  30. package/src/pages/legal/LegalPage.tsx +1 -1
  31. package/src/snippets/AuthDialog/AuthDialog.tsx +3 -2
  32. package/src/snippets/McpChat/components/AIChatWidget.tsx +1 -1
  33. package/src/snippets/McpChat/components/AskAIButton.tsx +1 -1
  34. package/src/snippets/McpChat/components/ChatMessages.tsx +1 -1
  35. package/src/snippets/McpChat/components/ChatPanel.tsx +1 -1
  36. package/src/snippets/McpChat/components/ChatSidebar.tsx +1 -1
  37. package/src/snippets/McpChat/components/ChatWidget.tsx +1 -1
  38. package/src/snippets/McpChat/components/MessageBubble.tsx +1 -1
  39. package/src/snippets/McpChat/components/MessageInput.tsx +1 -1
  40. package/src/snippets/McpChat/context/AIChatContext.tsx +1 -1
  41. package/src/snippets/McpChat/context/ChatContext.tsx +1 -1
  42. package/src/snippets/McpChat/hooks/useChatLayout.ts +1 -1
  43. package/src/snippets/PWAInstall/components/A2HSHint.tsx +0 -1
  44. package/src/snippets/PWAInstall/components/DesktopGuide.tsx +1 -1
  45. package/src/snippets/PWAInstall/components/IOSGuide.tsx +1 -1
  46. package/src/snippets/PWAInstall/components/IOSGuideDrawer.tsx +1 -1
  47. package/src/snippets/PWAInstall/components/IOSGuideModal.tsx +1 -1
  48. package/src/snippets/PWAInstall/hooks/useInstallPrompt.ts +2 -2
  49. package/src/snippets/PushNotifications/components/PushPrompt.tsx +1 -1
  50. package/src/snippets/index.ts +1 -0
  51. package/dist/AIChatWidget-LUPM7S2O.mjs +0 -1644
  52. package/dist/AIChatWidget-LUPM7S2O.mjs.map +0 -1
  53. package/dist/AIChatWidget-O23TJJ7C.mjs +0 -3
  54. package/dist/AIChatWidget-O23TJJ7C.mjs.map +0 -1
  55. package/dist/chunk-53YKWR6F.mjs +0 -6
  56. package/dist/chunk-53YKWR6F.mjs.map +0 -1
  57. package/dist/chunk-EI7TDN2G.mjs +0 -1652
  58. package/dist/chunk-EI7TDN2G.mjs.map +0 -1
  59. package/dist/components.cjs +0 -925
  60. package/dist/components.cjs.map +0 -1
  61. package/dist/components.d.mts +0 -583
  62. package/dist/components.d.ts +0 -583
  63. package/dist/components.mjs +0 -879
  64. package/dist/components.mjs.map +0 -1
  65. package/dist/index.cjs +0 -7573
  66. package/dist/index.cjs.map +0 -1
  67. package/dist/index.d.mts +0 -2376
  68. package/dist/index.d.ts +0 -2376
  69. package/dist/index.mjs +0 -5673
  70. package/dist/index.mjs.map +0 -1
  71. package/dist/layouts.cjs +0 -6530
  72. package/dist/layouts.cjs.map +0 -1
  73. package/dist/layouts.d.mts +0 -748
  74. package/dist/layouts.d.ts +0 -748
  75. package/dist/layouts.mjs +0 -4741
  76. package/dist/layouts.mjs.map +0 -1
  77. package/dist/pages.cjs +0 -178
  78. package/dist/pages.cjs.map +0 -1
  79. package/dist/pages.d.mts +0 -57
  80. package/dist/pages.d.ts +0 -57
  81. package/dist/pages.mjs +0 -168
  82. package/dist/pages.mjs.map +0 -1
  83. package/dist/snippets.cjs +0 -3793
  84. package/dist/snippets.cjs.map +0 -1
  85. package/dist/snippets.d.mts +0 -1192
  86. package/dist/snippets.d.ts +0 -1192
  87. package/dist/snippets.mjs +0 -3738
  88. package/dist/snippets.mjs.map +0 -1
  89. package/dist/utils.cjs +0 -34
  90. package/dist/utils.cjs.map +0 -1
  91. package/dist/utils.d.mts +0 -40
  92. package/dist/utils.d.ts +0 -40
  93. package/dist/utils.mjs +0 -25
  94. 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.102",
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": "./dist/index.cjs",
30
- "module": "./dist/index.mjs",
31
- "types": "./dist/index.d.ts",
29
+ "main": "./src/index.ts",
30
+ "module": "./src/index.ts",
31
+ "types": "./src/index.ts",
32
32
  "exports": {
33
33
  ".": {
34
- "types": "./dist/index.d.ts",
35
- "import": "./dist/index.mjs",
36
- "require": "./dist/index.cjs"
34
+ "types": "./src/index.ts",
35
+ "import": "./src/index.ts",
36
+ "require": "./src/index.ts"
37
37
  },
38
38
  "./layouts": {
39
- "types": "./dist/layouts.d.ts",
40
- "import": "./dist/layouts.mjs",
41
- "require": "./dist/layouts.cjs"
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": "./dist/snippets.d.ts",
45
- "import": "./dist/snippets.mjs",
46
- "require": "./dist/snippets.cjs"
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": "./dist/utils.d.ts",
50
- "import": "./dist/utils.mjs",
51
- "require": "./dist/utils.cjs"
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": "./dist/components.d.ts",
55
- "import": "./dist/components.mjs",
56
- "require": "./dist/components.cjs"
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": "./dist/pages.d.ts",
60
- "import": "./dist/pages.mjs",
61
- "require": "./dist/pages.cjs"
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.102",
81
- "@djangocfg/centrifugo": "^2.1.102",
82
- "@djangocfg/ui-core": "^2.1.102",
83
- "@djangocfg/ui-nextjs": "^2.1.102",
84
- "@djangocfg/ui-tools": "^2.1.102",
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.102",
108
- "@djangocfg/centrifugo": "^2.1.102",
109
- "@djangocfg/typescript-config": "^2.1.102",
110
- "@djangocfg/ui-core": "^2.1.102",
111
- "@djangocfg/ui-nextjs": "^2.1.102",
112
- "@djangocfg/ui-tools": "^2.1.102",
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-nextjs/components';
7
- import { useCfgRouter } from '@djangocfg/ui-nextjs/hooks';
6
+ import { Preloader } from '@djangocfg/ui-core/components';
7
+ import { useCfgRouter } from '@djangocfg/api/auth';
8
8
 
9
9
  export interface RedirectPageProps {
10
10
  /**
@@ -24,7 +24,7 @@
24
24
 
25
25
  import { ReactNode, useEffect, useState } from 'react';
26
26
 
27
- import { Preloader } from '@djangocfg/ui-nextjs/components';
27
+ import { Preloader } from '@djangocfg/ui-core/components';
28
28
 
29
29
  export interface ClientOnlyProps {
30
30
  children: ReactNode;
@@ -19,7 +19,7 @@
19
19
 
20
20
  import React from 'react';
21
21
 
22
- import { Button } from '@djangocfg/ui-nextjs/components';
22
+ import { Button } from '@djangocfg/ui-core/components';
23
23
 
24
24
  import { getErrorContent } from './errorConfig';
25
25
 
@@ -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-nextjs';
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';
@@ -2,6 +2,8 @@
2
2
  * Components exports
3
3
  */
4
4
 
5
+ 'use client';
6
+
5
7
  // Core components
6
8
  export * from './core';
7
9
 
package/src/index.ts CHANGED
@@ -25,6 +25,8 @@
25
25
  * ```
26
26
  */
27
27
 
28
+ 'use client';
29
+
28
30
  // Layout components
29
31
  export * from './layouts';
30
32
 
@@ -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-nextjs/components';
4
+ import { Button } from '@djangocfg/ui-core/components';
5
5
 
6
6
  import { useAuthFormContext } from '../context';
7
7
 
@@ -9,7 +9,7 @@
9
9
 
10
10
  import React, { useEffect, useState } from 'react';
11
11
 
12
- import { useCfgRouter } from '@djangocfg/ui-nextjs/hooks';
12
+ import { useCfgRouter } from '@djangocfg/api/auth';
13
13
 
14
14
  import { useAuthFormContext } from '../context';
15
15
 
@@ -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-nextjs/components';
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-nextjs/components';
8
+ } from '@djangocfg/ui-core/components';
9
9
 
10
10
  import { config } from '../../../utils';
11
11
  import { useAuthFormContext } from '../context';
@@ -15,7 +15,7 @@ import {
15
15
  CardTitle,
16
16
  OTPInput,
17
17
  Input,
18
- } from '@djangocfg/ui-nextjs/components';
18
+ } from '@djangocfg/ui-core/components';
19
19
 
20
20
  import { useAuthFormContext } from '../context';
21
21
 
@@ -16,7 +16,7 @@ import {
16
16
  CardHeader,
17
17
  CardTitle,
18
18
  OTPInput,
19
- } from '@djangocfg/ui-nextjs/components';
19
+ } from '@djangocfg/ui-core/components';
20
20
 
21
21
  export interface TwoFactorSetupProps {
22
22
  /** Callback when setup is complete */
@@ -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-nextjs/components';
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-nextjs/components';
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, SidebarInset, SidebarProvider
55
- } from '@djangocfg/ui-nextjs/components';
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 { Button, Separator, SidebarTrigger } from '@djangocfg/ui-nextjs/components';
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-nextjs/components';
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-nextjs/components', () => ({
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-nextjs/components';
8
+ import { Avatar, AvatarFallback, Button } from '@djangocfg/ui-core/components';
9
9
 
10
10
  import { profileLogger } from '../../../utils/logger';
11
11
 
@@ -20,7 +20,7 @@ import {
20
20
  DialogHeader,
21
21
  DialogTitle,
22
22
  Input,
23
- } from '@djangocfg/ui-nextjs/components';
23
+ } from '@djangocfg/ui-core/components';
24
24
 
25
25
  const CONFIRMATION_TEXT = 'DELETE';
26
26
 
@@ -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-nextjs/components';
14
+ } from '@djangocfg/ui-core/components';
15
15
  import { zodResolver } from '@hookform/resolvers/zod';
16
16
 
17
17
  import { profileLogger } from '../../../utils/logger';
@@ -20,7 +20,7 @@ import {
20
20
  DialogHeader,
21
21
  DialogTitle,
22
22
  OTPInput,
23
- } from '@djangocfg/ui-nextjs/components';
23
+ } from '@djangocfg/ui-core/components';
24
24
 
25
25
  import { TwoFactorSetup } from '../../AuthLayout/components/TwoFactorSetup';
26
26
 
@@ -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-nextjs/hooks';
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-nextjs/components';
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-nextjs/components';
15
- import { useIsMobile } from '@djangocfg/ui-nextjs/hooks';
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-nextjs/components';
42
+ } from '@djangocfg/ui-core/components';
43
43
 
44
44
  import type { UserMenuGroup } from '../types';
45
45
 
@@ -5,6 +5,8 @@
5
5
  * Import and use directly with props - no complex configs needed!
6
6
  */
7
7
 
8
+ 'use client';
9
+
8
10
  // Shared types (universal type system)
9
11
  export * from './types';
10
12
 
@@ -2,5 +2,7 @@
2
2
  * Pages exports
3
3
  */
4
4
 
5
+ 'use client';
6
+
5
7
  export * from './legal';
6
8
 
@@ -19,7 +19,7 @@
19
19
 
20
20
  import React from 'react';
21
21
 
22
- import { Card, CardContent, CardHeader, CardTitle } from '@djangocfg/ui-nextjs/components';
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-nextjs/components';
9
- import { useCfgRouter, useEventListener } from '@djangocfg/ui-nextjs/hooks';
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 { Zap } from 'lucide-react';
4
4
  import React from 'react';
5
5
 
6
- import { Button, Portal } from '@djangocfg/ui-nextjs';
6
+ import { Button, Portal } from '@djangocfg/ui-core';
7
7
 
8
8
  import {
9
9
  AIChatProvider, useAIChatContext, useAIChatContextOptional
@@ -2,7 +2,7 @@
2
2
 
3
3
  import { Bot } from 'lucide-react';
4
4
 
5
- import { Button, ButtonProps} from '@djangocfg/ui-nextjs';
5
+ import { Button, ButtonProps} from '@djangocfg/ui-core';
6
6
 
7
7
  import { useMcpChat } from '../hooks/useMcpChat';
8
8
 
@@ -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-nextjs';
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-nextjs';
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-nextjs';
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-nextjs';
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-nextjs';
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-nextjs';
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-nextjs/hooks';
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-nextjs/hooks';
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-nextjs/hooks';
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-nextjs';
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-nextjs/hooks';
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-nextjs';
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-nextjs';
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-nextjs for platform detection
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-nextjs';
14
+ import { Button } from '@djangocfg/ui-core';
15
15
 
16
16
  import { usePushNotifications } from '../hooks/usePushNotifications';
17
17
  import { isPushDismissedRecently, markPushDismissed } from '../utils/localStorage';