cortex-react-components 2.0.0 → 2.0.1
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/dist/components/.archive/ai-chat-interface.d.ts +70 -0
- package/dist/components/{dc-temp → AdvancedComponents}/app-header.d.ts +10 -2
- package/dist/components/AdvancedComponents/index.d.ts +3 -0
- package/dist/components/{dc-temp → AdvancedComponents}/notifications-panel.d.ts +3 -3
- package/dist/components/AdvancedComponents/sidebar.d.ts +16 -0
- package/dist/components/AdvancedComponents/user-selection.d.ts +9 -0
- package/dist/components/Chat/CopilotInterface.d.ts +96 -0
- package/dist/components/Chat/EnhancedChatInterface.d.ts +24 -0
- package/dist/components/Chat/ai-chat-interface.d.ts +70 -0
- package/dist/components/{dc-temp → Chat}/capability-menu.d.ts +2 -1
- package/dist/components/{dc-temp → Chat}/chat-session-sidebar.d.ts +1 -1
- package/dist/components/Chat/index.d.ts +4 -0
- package/dist/components/DigitalColleagues/DigitalColleageusLayout.d.ts +26 -0
- package/dist/components/DigitalColleagues/ManagementSidebar.d.ts +1 -1
- package/dist/components/{dc-temp → DigitalColleagues}/Pages/dashboardpage.d.ts +1 -1
- package/dist/components/{dc-temp → DigitalColleagues}/Views/ColleaguesView.d.ts +1 -2
- package/dist/components/{dc-temp → DigitalColleagues}/Views/KnowledgeView.d.ts +1 -1
- package/dist/components/{dc-temp → DigitalColleagues}/Views/TeamsIndexView.d.ts +1 -1
- package/dist/components/DigitalColleagues/Views/index.d.ts +6 -0
- package/dist/components/{dc-temp → DigitalColleagues}/colleague-card.d.ts +1 -1
- package/dist/components/{dc-temp → DigitalColleagues}/colleague-form.d.ts +1 -1
- package/dist/components/{dc-temp → DigitalColleagues}/digital-colleague-clone.d.ts +1 -1
- package/dist/components/DigitalColleagues/test-data.d.ts +7 -1
- package/dist/components/DigitalColleagues/types.d.ts +40 -0
- package/dist/components/{dc-temp/hero-section.d.ts → Heros/DashboardHero/DashboardHero.d.ts} +1 -1
- package/dist/components/Heros/DashboardHero/index.d.ts +1 -0
- package/dist/components/Heros/index.d.ts +1 -0
- package/dist/components/{DigitalColleagues → Projects}/AddEpicModal.d.ts +1 -1
- package/dist/components/{DigitalColleagues → Projects}/AddSprintModal.d.ts +1 -1
- package/dist/components/{DigitalColleagues → Projects}/AddTaskModal.d.ts +2 -1
- package/dist/components/{DigitalColleagues → Projects}/EpicFilter.d.ts +1 -1
- package/dist/components/{DigitalColleagues → Projects}/EpicsView.d.ts +1 -1
- package/dist/components/{dc-temp/Views → Projects}/FileView.d.ts +1 -1
- package/dist/components/{dc-temp/Views/KanbanBoard.d.ts → Projects/KanbanBoardView.d.ts} +2 -2
- package/dist/components/{DigitalColleagues → Projects}/KanbanColumn.d.ts +1 -1
- package/dist/components/{DigitalColleagues → Projects}/PlanningView.d.ts +1 -1
- package/dist/components/{dc-temp/Pages → Projects}/ProjectPage.d.ts +2 -2
- package/dist/components/{dc-temp/Views → Projects}/ProjectView.d.ts +1 -1
- package/dist/components/{dc-temp/Views → Projects}/ProjectsIndexView.d.ts +1 -1
- package/dist/components/{DigitalColleagues → Projects}/TaskCard.d.ts +1 -1
- package/dist/components/{DigitalColleagues → Projects}/TaskSidebar.d.ts +1 -1
- package/dist/components/Projects/TasksView.d.ts +11 -0
- package/dist/components/Projects/business-unit-switcher.d.ts +9 -0
- package/dist/components/Projects/business-units.d.ts +4 -0
- package/dist/components/{dc-temp → Projects}/team-switcher-bar.d.ts +1 -1
- package/dist/components/Projects/test-data.d.ts +105 -0
- package/dist/components/dc-temp/index.d.ts +5 -5
- package/dist/components/dc-temp/mock-data.d.ts +1 -3
- package/dist/components/dc-temp/sidebar.d.ts +5 -3
- package/dist/index.js +14 -13
- package/dist/index.mjs +14 -13
- package/dist/metafile-cjs.json +1 -1
- package/dist/metafile-esm.json +1 -1
- package/dist/test-data/capabilities.d.ts +48 -0
- package/package.json +1 -1
- package/dist/components/DigitalColleagues/ChatInterface.d.ts +0 -6
- package/dist/components/DigitalColleagues/DocumentationView.d.ts +0 -2
- package/dist/components/DigitalColleagues/TasksView.d.ts +0 -36
- package/dist/components/dc-temp/AssistantInterface.d.ts +0 -1
- package/dist/components/dc-temp/Views/index.d.ts +0 -6
- package/dist/components/dc-temp/ai-assistants.d.ts +0 -2
- package/dist/components/dc-temp/ai-chat-interface.d.ts +0 -23
- package/dist/components/dc-temp/ai-chat.d.ts +0 -21
- package/dist/components/dc-temp/business-unit-switcher.d.ts +0 -8
- package/dist/components/dc-temp/business-units.d.ts +0 -13
- package/dist/components/dc-temp/creative-layout.d.ts +0 -19
- package/dist/components/dc-temp/document-sidebar.d.ts +0 -9
- package/dist/components/dc-temp/documents.d.ts +0 -27
- package/dist/components/dc-temp/landingpage.d.ts +0 -10
- package/dist/components/dc-temp/user-selection.d.ts +0 -21
- /package/dist/components/{dc-temp → .archive}/app-card.d.ts +0 -0
- /package/dist/components/{DigitalColleagues → AdvancedComponents}/CommentSection.d.ts +0 -0
- /package/dist/components/{DigitalColleagues → AdvancedComponents}/EditableField.d.ts +0 -0
- /package/dist/components/{dc-temp → AdvancedComponents}/theme-provider.d.ts +0 -0
- /package/dist/components/{dc-temp → AdvancedComponents}/theme-toggle.d.ts +0 -0
- /package/dist/components/{dc-temp → Chat}/capabilities-config.d.ts +0 -0
- /package/dist/components/{dc-temp → Chat}/capabilities-data.d.ts +0 -0
- /package/dist/components/{dc-temp → Chat}/capabilities.d.ts +0 -0
- /package/dist/components/{dc-temp → DigitalColleagues}/colleague-type-selection.d.ts +0 -0
- /package/dist/components/{dc-temp → DigitalColleagues}/digital-colleague-options.d.ts +0 -0
- /package/dist/components/{DigitalColleagues → Projects}/TaskDetailsModal.d.ts +0 -0
- /package/dist/components/{DigitalColleagues → Projects}/TaskSelect.d.ts +0 -0
- /package/dist/components/{DigitalColleagues → Projects}/TeamSwitcher.d.ts +0 -0
- /package/dist/components/{dc-temp → Projects}/file-list.d.ts +0 -0
- /package/dist/components/{dc-temp → Projects}/project-card.d.ts +0 -0
- /package/dist/components/{dc-temp → Projects}/project-form.d.ts +0 -0
- /package/dist/components/{dc-temp → Projects}/team-card.d.ts +0 -0
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import type React from "react";
|
|
2
|
+
import type { BusinessUnit } from "../DigitalColleagues/types";
|
|
3
|
+
import type { Capability } from "../../test-data/capabilities";
|
|
4
|
+
export interface ChatMessage {
|
|
5
|
+
id: string;
|
|
6
|
+
content: string;
|
|
7
|
+
type: "user" | "ai";
|
|
8
|
+
timestamp: Date;
|
|
9
|
+
}
|
|
10
|
+
export interface EnhancedChatMessage extends ChatMessage {
|
|
11
|
+
role?: "user" | "assistant" | "system";
|
|
12
|
+
messageType?: "text" | "image" | "file" | "card" | "reference" | "menu" | "tool-invocation";
|
|
13
|
+
data?: any;
|
|
14
|
+
image?: {
|
|
15
|
+
url: string;
|
|
16
|
+
alt?: string;
|
|
17
|
+
width?: number;
|
|
18
|
+
height?: number;
|
|
19
|
+
};
|
|
20
|
+
file?: {
|
|
21
|
+
name: string;
|
|
22
|
+
size: number;
|
|
23
|
+
type: string;
|
|
24
|
+
url: string;
|
|
25
|
+
};
|
|
26
|
+
card?: {
|
|
27
|
+
title: string;
|
|
28
|
+
description?: string;
|
|
29
|
+
data: any;
|
|
30
|
+
variant?: 'task' | 'artefact' | 'customer' | 'opportunity' | 'campaign' | 'generic';
|
|
31
|
+
};
|
|
32
|
+
references?: Array<{
|
|
33
|
+
id: string;
|
|
34
|
+
title: string;
|
|
35
|
+
url?: string;
|
|
36
|
+
description?: string;
|
|
37
|
+
type?: 'document' | 'link' | 'internal';
|
|
38
|
+
}>;
|
|
39
|
+
menu?: {
|
|
40
|
+
title: string;
|
|
41
|
+
items: Array<{
|
|
42
|
+
id: string;
|
|
43
|
+
label: string;
|
|
44
|
+
description?: string;
|
|
45
|
+
value: any;
|
|
46
|
+
action?: () => void;
|
|
47
|
+
}>;
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
interface AIChatInterfaceProps {
|
|
51
|
+
messages: (ChatMessage | EnhancedChatMessage)[];
|
|
52
|
+
input: string;
|
|
53
|
+
isTyping?: boolean;
|
|
54
|
+
selectedTeam?: BusinessUnit;
|
|
55
|
+
currentSessionTitle?: string;
|
|
56
|
+
capabilities: Capability[];
|
|
57
|
+
showCapabilities?: boolean;
|
|
58
|
+
onInputChange: (value: string) => void;
|
|
59
|
+
onSendMessage: () => void;
|
|
60
|
+
onKeyPress?: (e: React.KeyboardEvent) => void;
|
|
61
|
+
fileUploads?: any[];
|
|
62
|
+
isDragOver?: boolean;
|
|
63
|
+
enableFileUpload?: boolean;
|
|
64
|
+
onFileUpload?: (files: FileList | null) => void;
|
|
65
|
+
onRemoveFile?: (id: string) => void;
|
|
66
|
+
onDragOver?: (isDragOver: boolean) => void;
|
|
67
|
+
className?: string;
|
|
68
|
+
}
|
|
69
|
+
export declare function AIChatInterface({ messages, input, isTyping, selectedTeam, currentSessionTitle, capabilities, showCapabilities, onInputChange, onSendMessage, onKeyPress, fileUploads, isDragOver, enableFileUpload, onFileUpload, onRemoveFile, onDragOver, className, }: AIChatInterfaceProps): import("react/jsx-runtime").JSX.Element;
|
|
70
|
+
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type TabOption } from "
|
|
1
|
+
import { type TabOption } from "./navigation-tabs";
|
|
2
2
|
import type { Notification } from "./notifications-panel";
|
|
3
3
|
interface AppHeaderProps {
|
|
4
4
|
title: string;
|
|
@@ -11,6 +11,14 @@ interface AppHeaderProps {
|
|
|
11
11
|
onTabChange?: (tab: string) => void;
|
|
12
12
|
showTabs?: boolean;
|
|
13
13
|
tabOptions?: TabOption[];
|
|
14
|
+
onActionClick?: () => void;
|
|
15
|
+
actionIcon?: React.ReactNode;
|
|
16
|
+
actionText?: string;
|
|
17
|
+
onNotificationRemove?: (id: string) => void;
|
|
18
|
+
onRemoveAll?: () => void;
|
|
19
|
+
logo?: string;
|
|
20
|
+
appName?: string;
|
|
21
|
+
tagline?: string;
|
|
14
22
|
}
|
|
15
|
-
export declare function AppHeader({ title, notifications, onToggleSidebar, onToggleMobileMenu, sidebarOpen, className, activeTab, onTabChange, showTabs, tabOptions, }: AppHeaderProps): import("react/jsx-runtime").JSX.Element;
|
|
23
|
+
export declare function AppHeader({ title, notifications, onToggleSidebar, onToggleMobileMenu, sidebarOpen, className, activeTab, onTabChange, showTabs, tabOptions, onActionClick, actionIcon, actionText, onNotificationRemove, onRemoveAll, logo, appName, tagline, }: AppHeaderProps): import("react/jsx-runtime").JSX.Element;
|
|
16
24
|
export {};
|
|
@@ -12,9 +12,9 @@ interface NotificationsPanelProps {
|
|
|
12
12
|
notifications: Notification[];
|
|
13
13
|
open: boolean;
|
|
14
14
|
onClose: () => void;
|
|
15
|
-
|
|
16
|
-
|
|
15
|
+
onNotificationRemove?: (id: string) => void;
|
|
16
|
+
onRemoveAll?: () => void;
|
|
17
17
|
className?: string;
|
|
18
18
|
}
|
|
19
|
-
export declare function NotificationsPanel({ notifications, open, onClose,
|
|
19
|
+
export declare function NotificationsPanel({ notifications, open, onClose, onNotificationRemove, onRemoveAll, className, }: NotificationsPanelProps): import("react/jsx-runtime").JSX.Element;
|
|
20
20
|
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { BusinessUnit, SidebarItem } from "../DigitalColleagues/types";
|
|
2
|
+
interface SidebarProps {
|
|
3
|
+
items: SidebarItem[];
|
|
4
|
+
isOpen: boolean;
|
|
5
|
+
isMobile?: boolean;
|
|
6
|
+
onClose?: () => void;
|
|
7
|
+
currentBusinessUnit?: BusinessUnit;
|
|
8
|
+
onBusinessUnitChange?: (unit: BusinessUnit) => void;
|
|
9
|
+
className?: string;
|
|
10
|
+
logo?: string;
|
|
11
|
+
appName?: string;
|
|
12
|
+
tagline?: string;
|
|
13
|
+
}
|
|
14
|
+
export declare function Sidebar({ items, isOpen, isMobile, onClose, currentBusinessUnit, // Default to Design unit
|
|
15
|
+
onBusinessUnitChange, className, logo, appName, tagline, }: SidebarProps): import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { type User as UserType } from "../DigitalColleagues/types";
|
|
2
|
+
interface UserSelectionProps {
|
|
3
|
+
users: UserType[];
|
|
4
|
+
onUserSelect: (user: UserType) => void;
|
|
5
|
+
onCancel: () => void;
|
|
6
|
+
selectedUserId?: string;
|
|
7
|
+
}
|
|
8
|
+
export declare function UserSelection({ users, onUserSelect, onCancel, selectedUserId, }: UserSelectionProps): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
import { type ChatSession } from "./chat-session-sidebar";
|
|
2
|
+
import type { BusinessUnit } from "../DigitalColleagues/types";
|
|
3
|
+
export interface BaseMessage {
|
|
4
|
+
id: string;
|
|
5
|
+
role: 'user' | 'assistant' | 'system';
|
|
6
|
+
timestamp: Date;
|
|
7
|
+
}
|
|
8
|
+
export interface TextMessage extends BaseMessage {
|
|
9
|
+
type: 'text';
|
|
10
|
+
content: string;
|
|
11
|
+
}
|
|
12
|
+
export interface ImageMessage extends BaseMessage {
|
|
13
|
+
type: 'image';
|
|
14
|
+
content: string;
|
|
15
|
+
image: {
|
|
16
|
+
url: string;
|
|
17
|
+
alt?: string;
|
|
18
|
+
width?: number;
|
|
19
|
+
height?: number;
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
export interface FileMessage extends BaseMessage {
|
|
23
|
+
type: 'file';
|
|
24
|
+
content: string;
|
|
25
|
+
file: {
|
|
26
|
+
name: string;
|
|
27
|
+
size: number;
|
|
28
|
+
type: string;
|
|
29
|
+
url: string;
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
export interface ToolMessage extends BaseMessage {
|
|
33
|
+
type: 'tool-invocation';
|
|
34
|
+
content: string;
|
|
35
|
+
tool: {
|
|
36
|
+
name: string;
|
|
37
|
+
data: any;
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
export interface CardMessage extends BaseMessage {
|
|
41
|
+
type: 'card';
|
|
42
|
+
content: string;
|
|
43
|
+
card: {
|
|
44
|
+
title: string;
|
|
45
|
+
description?: string;
|
|
46
|
+
data: any;
|
|
47
|
+
variant?: 'task' | 'artefact' | 'customer' | 'opportunity' | 'campaign' | 'generic';
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
export interface ReferenceMessage extends BaseMessage {
|
|
51
|
+
type: 'reference';
|
|
52
|
+
content: string;
|
|
53
|
+
references: Array<{
|
|
54
|
+
id: string;
|
|
55
|
+
title: string;
|
|
56
|
+
url?: string;
|
|
57
|
+
description?: string;
|
|
58
|
+
type?: 'document' | 'link' | 'internal';
|
|
59
|
+
}>;
|
|
60
|
+
}
|
|
61
|
+
export interface MenuMessage extends BaseMessage {
|
|
62
|
+
type: 'menu';
|
|
63
|
+
content: string;
|
|
64
|
+
menu: {
|
|
65
|
+
title: string;
|
|
66
|
+
items: Array<{
|
|
67
|
+
id: string;
|
|
68
|
+
label: string;
|
|
69
|
+
description?: string;
|
|
70
|
+
value: any;
|
|
71
|
+
action?: () => void;
|
|
72
|
+
}>;
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
export type EnhancedMessage = TextMessage | ImageMessage | FileMessage | ToolMessage | CardMessage | ReferenceMessage | MenuMessage;
|
|
76
|
+
export interface FileUpload {
|
|
77
|
+
id: string;
|
|
78
|
+
file: File;
|
|
79
|
+
preview?: string;
|
|
80
|
+
status: 'pending' | 'uploading' | 'uploaded' | 'error';
|
|
81
|
+
progress?: number;
|
|
82
|
+
}
|
|
83
|
+
interface CopilotInterfaceProps {
|
|
84
|
+
initialTeam?: string;
|
|
85
|
+
initialMessages?: EnhancedMessage[];
|
|
86
|
+
initialSessions?: ChatSession[];
|
|
87
|
+
showCapabilities?: boolean;
|
|
88
|
+
title?: string;
|
|
89
|
+
businessUnits?: BusinessUnit[];
|
|
90
|
+
enableFileUpload?: boolean;
|
|
91
|
+
maxFileSize?: number;
|
|
92
|
+
allowedFileTypes?: string[];
|
|
93
|
+
}
|
|
94
|
+
export default function CopilotInterface({ initialTeam, initialMessages, initialSessions, showCapabilities, title, businessUnits: businessUnitsProp, enableFileUpload, maxFileSize, // 10MB default
|
|
95
|
+
allowedFileTypes, }?: CopilotInterfaceProps): import("react/jsx-runtime").JSX.Element;
|
|
96
|
+
export {};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import type { BusinessUnit } from "../DigitalColleagues/types";
|
|
3
|
+
import type { Capability } from "../../test-data/capabilities";
|
|
4
|
+
import type { EnhancedMessage, FileUpload } from "./CopilotInterface";
|
|
5
|
+
interface EnhancedChatInterfaceProps {
|
|
6
|
+
messages: EnhancedMessage[];
|
|
7
|
+
input: string;
|
|
8
|
+
isTyping?: boolean;
|
|
9
|
+
selectedTeam?: BusinessUnit;
|
|
10
|
+
currentSessionTitle?: string;
|
|
11
|
+
capabilities: Capability[];
|
|
12
|
+
fileUploads: FileUpload[];
|
|
13
|
+
isDragOver: boolean;
|
|
14
|
+
enableFileUpload: boolean;
|
|
15
|
+
onInputChange: (value: string) => void;
|
|
16
|
+
onSendMessage: () => void;
|
|
17
|
+
onKeyPress?: (e: React.KeyboardEvent) => void;
|
|
18
|
+
onFileUpload: (files: FileList | null) => void;
|
|
19
|
+
onRemoveFile: (id: string) => void;
|
|
20
|
+
onDragOver: (isDragOver: boolean) => void;
|
|
21
|
+
className?: string;
|
|
22
|
+
}
|
|
23
|
+
export declare function EnhancedChatInterface({ messages, input, isTyping, selectedTeam, currentSessionTitle, capabilities, fileUploads, isDragOver, enableFileUpload, onInputChange, onSendMessage, onKeyPress, onFileUpload, onRemoveFile, onDragOver, className, }: EnhancedChatInterfaceProps): import("react/jsx-runtime").JSX.Element;
|
|
24
|
+
export {};
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import type React from "react";
|
|
2
|
+
import type { BusinessUnit } from "../DigitalColleagues/types";
|
|
3
|
+
import type { Capability } from "../../test-data/capabilities";
|
|
4
|
+
export interface ChatMessage {
|
|
5
|
+
id: string;
|
|
6
|
+
content: string;
|
|
7
|
+
type: "user" | "ai";
|
|
8
|
+
timestamp: Date;
|
|
9
|
+
}
|
|
10
|
+
export interface EnhancedChatMessage extends ChatMessage {
|
|
11
|
+
role?: "user" | "assistant" | "system";
|
|
12
|
+
messageType?: "text" | "image" | "file" | "card" | "reference" | "menu" | "tool-invocation";
|
|
13
|
+
data?: any;
|
|
14
|
+
image?: {
|
|
15
|
+
url: string;
|
|
16
|
+
alt?: string;
|
|
17
|
+
width?: number;
|
|
18
|
+
height?: number;
|
|
19
|
+
};
|
|
20
|
+
file?: {
|
|
21
|
+
name: string;
|
|
22
|
+
size: number;
|
|
23
|
+
type: string;
|
|
24
|
+
url: string;
|
|
25
|
+
};
|
|
26
|
+
card?: {
|
|
27
|
+
title: string;
|
|
28
|
+
description?: string;
|
|
29
|
+
data: any;
|
|
30
|
+
variant?: 'task' | 'artefact' | 'customer' | 'opportunity' | 'campaign' | 'generic';
|
|
31
|
+
};
|
|
32
|
+
references?: Array<{
|
|
33
|
+
id: string;
|
|
34
|
+
title: string;
|
|
35
|
+
url?: string;
|
|
36
|
+
description?: string;
|
|
37
|
+
type?: 'document' | 'link' | 'internal';
|
|
38
|
+
}>;
|
|
39
|
+
menu?: {
|
|
40
|
+
title: string;
|
|
41
|
+
items: Array<{
|
|
42
|
+
id: string;
|
|
43
|
+
label: string;
|
|
44
|
+
description?: string;
|
|
45
|
+
value: any;
|
|
46
|
+
action?: () => void;
|
|
47
|
+
}>;
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
interface AIChatInterfaceProps {
|
|
51
|
+
messages: (ChatMessage | EnhancedChatMessage)[];
|
|
52
|
+
input: string;
|
|
53
|
+
isTyping?: boolean;
|
|
54
|
+
selectedTeam?: BusinessUnit;
|
|
55
|
+
currentSessionTitle?: string;
|
|
56
|
+
capabilities: Capability[];
|
|
57
|
+
showCapabilities?: boolean;
|
|
58
|
+
onInputChange: (value: string) => void;
|
|
59
|
+
onSendMessage: () => void;
|
|
60
|
+
onKeyPress?: (e: React.KeyboardEvent) => void;
|
|
61
|
+
fileUploads?: any[];
|
|
62
|
+
isDragOver?: boolean;
|
|
63
|
+
enableFileUpload?: boolean;
|
|
64
|
+
onFileUpload?: (files: FileList | null) => void;
|
|
65
|
+
onRemoveFile?: (id: string) => void;
|
|
66
|
+
onDragOver?: (isDragOver: boolean) => void;
|
|
67
|
+
className?: string;
|
|
68
|
+
}
|
|
69
|
+
export declare function AIChatInterface({ messages, input, isTyping, selectedTeam, currentSessionTitle, capabilities, showCapabilities, onInputChange, onSendMessage, onKeyPress, fileUploads, isDragOver, enableFileUpload, onFileUpload, onRemoveFile, onDragOver, className, }: AIChatInterfaceProps): import("react/jsx-runtime").JSX.Element;
|
|
70
|
+
export {};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import type { Capability, CapabilityContext
|
|
1
|
+
import type { Capability, CapabilityContext } from "../../test-data/capabilities";
|
|
2
|
+
import type { CapabilityColorScheme } from "../../test-data/capabilities";
|
|
2
3
|
interface CapabilityMenuProps {
|
|
3
4
|
capabilities: Capability[];
|
|
4
5
|
isOpen: boolean;
|
|
@@ -1,3 +1,7 @@
|
|
|
1
1
|
export * from "./ChatMessage";
|
|
2
2
|
export * from "./ChatInterfaceMessages";
|
|
3
3
|
export * from "./ChatCardTask";
|
|
4
|
+
export * from "../../test-data/capabilities";
|
|
5
|
+
export * from "./ChatCardArtefact";
|
|
6
|
+
export * from "./CopilotInterface";
|
|
7
|
+
export * from "./capability-menu";
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type React from "react";
|
|
2
|
+
import type { SidebarItem, BusinessUnit } from "./types";
|
|
3
|
+
import type { Notification } from "../AdvancedComponents/notifications-panel";
|
|
4
|
+
interface DigitalColleageusLayoutProps {
|
|
5
|
+
sidebarItems: SidebarItem[];
|
|
6
|
+
children: React.ReactNode;
|
|
7
|
+
title?: string;
|
|
8
|
+
notifications?: Notification[];
|
|
9
|
+
currentBusinessUnit?: BusinessUnit;
|
|
10
|
+
onBusinessUnitChange?: (unit: BusinessUnit) => void;
|
|
11
|
+
businessUnits?: BusinessUnit[];
|
|
12
|
+
activeTab?: string;
|
|
13
|
+
onTabChange?: (tab: string) => void;
|
|
14
|
+
showTabs?: boolean;
|
|
15
|
+
onActionClick?: () => void;
|
|
16
|
+
actionIcon?: React.ReactNode;
|
|
17
|
+
actionText?: string;
|
|
18
|
+
onNotificationRemove?: (id: string) => void;
|
|
19
|
+
onRemoveAll?: () => void;
|
|
20
|
+
logo?: string;
|
|
21
|
+
appName?: string;
|
|
22
|
+
tagline?: string;
|
|
23
|
+
}
|
|
24
|
+
export declare function DigitalColleageusLayout({ sidebarItems, children, title, notifications, currentBusinessUnit, // Default to Design unit
|
|
25
|
+
onBusinessUnitChange, businessUnits: businessUnitsProp, activeTab, onTabChange, showTabs, onActionClick, actionIcon, actionText, onNotificationRemove, onRemoveAll, logo, appName, tagline, }: DigitalColleageusLayoutProps): import("react/jsx-runtime").JSX.Element;
|
|
26
|
+
export {};
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { type User as UserType } from "
|
|
2
|
-
import { type Colleague, type DigitalColleague } from "../../DigitalColleagues/types";
|
|
1
|
+
import { type Colleague, type DigitalColleague, type User as UserType } from "../types";
|
|
3
2
|
interface ColleaguesViewProps {
|
|
4
3
|
initialColleagues?: Colleague[];
|
|
5
4
|
onColleagueAdd?: (colleague: Colleague) => void;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export { default as ColleaguesView } from './ColleaguesView';
|
|
2
|
+
export { default as FileView } from '../../Projects/FileView';
|
|
3
|
+
export { default as KnowledgeView } from './KnowledgeView';
|
|
4
|
+
export { default as ProjectView } from '../../Projects/ProjectView';
|
|
5
|
+
export { default as ProjectsIndexView } from '../../Projects/ProjectsIndexView';
|
|
6
|
+
export { default as TeamsIndexView } from './TeamsIndexView';
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import { Project, Epic, Sprint, Task } from './types';
|
|
2
|
-
import { ProjectSummary, TeamSummary, Colleague } from './types';
|
|
2
|
+
import { ProjectSummary, TeamSummary, Colleague, BusinessUnit, Reminder, RecentFile, DigitalColleague, SidebarItem, Notification } from './types';
|
|
3
|
+
export declare const mockSidebarItems: SidebarItem[];
|
|
4
|
+
export declare const mockNotifications: Notification[];
|
|
5
|
+
export declare const businessUnits: BusinessUnit[];
|
|
3
6
|
export declare const mockProjects: Project[];
|
|
4
7
|
export declare const mockProjectSummary: ProjectSummary[];
|
|
5
8
|
export declare const mockTeamSummary: TeamSummary[];
|
|
@@ -104,3 +107,6 @@ export declare const testScenarios: {
|
|
|
104
107
|
};
|
|
105
108
|
};
|
|
106
109
|
export declare const mockColleagues: Colleague[];
|
|
110
|
+
export declare const mockReminders: Reminder[];
|
|
111
|
+
export declare const mockFiles: RecentFile[];
|
|
112
|
+
export declare const mockDigitalColleagues: DigitalColleague[];
|
|
@@ -1,4 +1,44 @@
|
|
|
1
1
|
import type React from "react";
|
|
2
|
+
export interface User {
|
|
3
|
+
id: string;
|
|
4
|
+
name: string;
|
|
5
|
+
email: string;
|
|
6
|
+
role: string;
|
|
7
|
+
department: string;
|
|
8
|
+
avatar?: string;
|
|
9
|
+
skills?: string[];
|
|
10
|
+
location?: string;
|
|
11
|
+
phone?: string;
|
|
12
|
+
timezone?: string;
|
|
13
|
+
bio?: string;
|
|
14
|
+
}
|
|
15
|
+
export interface Reminder {
|
|
16
|
+
id: string;
|
|
17
|
+
title: string;
|
|
18
|
+
description: string;
|
|
19
|
+
dueDate: Date;
|
|
20
|
+
dueTime?: string;
|
|
21
|
+
colleague: DigitalColleague;
|
|
22
|
+
isCompleted: boolean;
|
|
23
|
+
isRecurring: boolean;
|
|
24
|
+
recurrencePattern?: 'daily' | 'weekly' | 'monthly' | 'yearly';
|
|
25
|
+
recurrenceInterval?: number;
|
|
26
|
+
recurrenceEndDate?: Date;
|
|
27
|
+
priority: 'low' | 'medium' | 'high';
|
|
28
|
+
reminderEnabled: boolean;
|
|
29
|
+
reminderMinutes?: number;
|
|
30
|
+
createdAt: Date;
|
|
31
|
+
completedAt?: Date;
|
|
32
|
+
tags?: string[];
|
|
33
|
+
}
|
|
34
|
+
export interface BusinessUnit {
|
|
35
|
+
id: string;
|
|
36
|
+
name: string;
|
|
37
|
+
description: string;
|
|
38
|
+
icon: React.ReactNode;
|
|
39
|
+
color: string;
|
|
40
|
+
accentColor: string;
|
|
41
|
+
}
|
|
2
42
|
export interface Project {
|
|
3
43
|
id: string;
|
|
4
44
|
name: string;
|
package/dist/components/{dc-temp/hero-section.d.ts → Heros/DashboardHero/DashboardHero.d.ts}
RENAMED
|
@@ -15,5 +15,5 @@ interface HeroSectionProps {
|
|
|
15
15
|
children?: React.ReactNode;
|
|
16
16
|
className?: string;
|
|
17
17
|
}
|
|
18
|
-
export declare function
|
|
18
|
+
export declare function DashboardHero({ title, description, badge, primaryAction, secondaryAction, gradient, children, className, }: HeroSectionProps): import("react/jsx-runtime").JSX.Element;
|
|
19
19
|
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./DashboardHero";
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { Task, Epic, Sprint } from '
|
|
2
|
+
import { Task, Epic, Sprint } from '../DigitalColleagues/types';
|
|
3
3
|
interface AddTaskModalProps {
|
|
4
4
|
isOpen: boolean;
|
|
5
5
|
onClose: () => void;
|
|
6
6
|
onAddTask: (task: Omit<Task, 'id' | 'createdAt'>) => void;
|
|
7
7
|
epics: Epic[];
|
|
8
8
|
sprints: Sprint[];
|
|
9
|
+
defaultEpicId?: string;
|
|
9
10
|
}
|
|
10
11
|
export declare const AddTaskModal: React.FC<AddTaskModalProps>;
|
|
11
12
|
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { Project, Epic, Sprint, Task } from '
|
|
2
|
+
import { Project, Epic, Sprint, Task } from '../DigitalColleagues/types';
|
|
3
3
|
export interface KanbanBoardProps {
|
|
4
4
|
initialTasks?: Task[];
|
|
5
5
|
initialEpics?: Epic[];
|
|
@@ -11,4 +11,4 @@ export interface KanbanBoardProps {
|
|
|
11
11
|
onTaskClick?: (task: Task) => void;
|
|
12
12
|
onAddEpic?: (newEpic: Omit<Epic, 'id'>) => void;
|
|
13
13
|
}
|
|
14
|
-
export declare const
|
|
14
|
+
export declare const KanbanBoardView: React.FC<KanbanBoardProps>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { type BusinessUnit } from "../
|
|
2
|
-
import type { Epic, Sprint, Project, Task } from "@/components/
|
|
1
|
+
import { type BusinessUnit } from "../DigitalColleagues/types";
|
|
2
|
+
import type { Epic, Sprint, Project, Task } from "@/components/Projects/ProjectView";
|
|
3
3
|
interface HomeProps {
|
|
4
4
|
title?: string;
|
|
5
5
|
businessUnits: BusinessUnit[];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Reminder, DigitalColleague } from "
|
|
1
|
+
import type { Reminder, DigitalColleague } from "../DigitalColleagues/types";
|
|
2
2
|
import type { RecentFile } from "@/components/DigitalColleagues/types";
|
|
3
3
|
export interface Project {
|
|
4
4
|
id: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ProjectSummary, ProjectFormData } from "
|
|
1
|
+
import type { ProjectSummary, ProjectFormData } from "../DigitalColleagues/types";
|
|
2
2
|
interface HomeProps {
|
|
3
3
|
projects?: ProjectSummary[];
|
|
4
4
|
onAddProject: (project: ProjectFormData) => void;
|