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.
Files changed (87) hide show
  1. package/dist/components/.archive/ai-chat-interface.d.ts +70 -0
  2. package/dist/components/{dc-temp → AdvancedComponents}/app-header.d.ts +10 -2
  3. package/dist/components/AdvancedComponents/index.d.ts +3 -0
  4. package/dist/components/{dc-temp → AdvancedComponents}/notifications-panel.d.ts +3 -3
  5. package/dist/components/AdvancedComponents/sidebar.d.ts +16 -0
  6. package/dist/components/AdvancedComponents/user-selection.d.ts +9 -0
  7. package/dist/components/Chat/CopilotInterface.d.ts +96 -0
  8. package/dist/components/Chat/EnhancedChatInterface.d.ts +24 -0
  9. package/dist/components/Chat/ai-chat-interface.d.ts +70 -0
  10. package/dist/components/{dc-temp → Chat}/capability-menu.d.ts +2 -1
  11. package/dist/components/{dc-temp → Chat}/chat-session-sidebar.d.ts +1 -1
  12. package/dist/components/Chat/index.d.ts +4 -0
  13. package/dist/components/DigitalColleagues/DigitalColleageusLayout.d.ts +26 -0
  14. package/dist/components/DigitalColleagues/ManagementSidebar.d.ts +1 -1
  15. package/dist/components/{dc-temp → DigitalColleagues}/Pages/dashboardpage.d.ts +1 -1
  16. package/dist/components/{dc-temp → DigitalColleagues}/Views/ColleaguesView.d.ts +1 -2
  17. package/dist/components/{dc-temp → DigitalColleagues}/Views/KnowledgeView.d.ts +1 -1
  18. package/dist/components/{dc-temp → DigitalColleagues}/Views/TeamsIndexView.d.ts +1 -1
  19. package/dist/components/DigitalColleagues/Views/index.d.ts +6 -0
  20. package/dist/components/{dc-temp → DigitalColleagues}/colleague-card.d.ts +1 -1
  21. package/dist/components/{dc-temp → DigitalColleagues}/colleague-form.d.ts +1 -1
  22. package/dist/components/{dc-temp → DigitalColleagues}/digital-colleague-clone.d.ts +1 -1
  23. package/dist/components/DigitalColleagues/test-data.d.ts +7 -1
  24. package/dist/components/DigitalColleagues/types.d.ts +40 -0
  25. package/dist/components/{dc-temp/hero-section.d.ts → Heros/DashboardHero/DashboardHero.d.ts} +1 -1
  26. package/dist/components/Heros/DashboardHero/index.d.ts +1 -0
  27. package/dist/components/Heros/index.d.ts +1 -0
  28. package/dist/components/{DigitalColleagues → Projects}/AddEpicModal.d.ts +1 -1
  29. package/dist/components/{DigitalColleagues → Projects}/AddSprintModal.d.ts +1 -1
  30. package/dist/components/{DigitalColleagues → Projects}/AddTaskModal.d.ts +2 -1
  31. package/dist/components/{DigitalColleagues → Projects}/EpicFilter.d.ts +1 -1
  32. package/dist/components/{DigitalColleagues → Projects}/EpicsView.d.ts +1 -1
  33. package/dist/components/{dc-temp/Views → Projects}/FileView.d.ts +1 -1
  34. package/dist/components/{dc-temp/Views/KanbanBoard.d.ts → Projects/KanbanBoardView.d.ts} +2 -2
  35. package/dist/components/{DigitalColleagues → Projects}/KanbanColumn.d.ts +1 -1
  36. package/dist/components/{DigitalColleagues → Projects}/PlanningView.d.ts +1 -1
  37. package/dist/components/{dc-temp/Pages → Projects}/ProjectPage.d.ts +2 -2
  38. package/dist/components/{dc-temp/Views → Projects}/ProjectView.d.ts +1 -1
  39. package/dist/components/{dc-temp/Views → Projects}/ProjectsIndexView.d.ts +1 -1
  40. package/dist/components/{DigitalColleagues → Projects}/TaskCard.d.ts +1 -1
  41. package/dist/components/{DigitalColleagues → Projects}/TaskSidebar.d.ts +1 -1
  42. package/dist/components/Projects/TasksView.d.ts +11 -0
  43. package/dist/components/Projects/business-unit-switcher.d.ts +9 -0
  44. package/dist/components/Projects/business-units.d.ts +4 -0
  45. package/dist/components/{dc-temp → Projects}/team-switcher-bar.d.ts +1 -1
  46. package/dist/components/Projects/test-data.d.ts +105 -0
  47. package/dist/components/dc-temp/index.d.ts +5 -5
  48. package/dist/components/dc-temp/mock-data.d.ts +1 -3
  49. package/dist/components/dc-temp/sidebar.d.ts +5 -3
  50. package/dist/index.js +14 -13
  51. package/dist/index.mjs +14 -13
  52. package/dist/metafile-cjs.json +1 -1
  53. package/dist/metafile-esm.json +1 -1
  54. package/dist/test-data/capabilities.d.ts +48 -0
  55. package/package.json +1 -1
  56. package/dist/components/DigitalColleagues/ChatInterface.d.ts +0 -6
  57. package/dist/components/DigitalColleagues/DocumentationView.d.ts +0 -2
  58. package/dist/components/DigitalColleagues/TasksView.d.ts +0 -36
  59. package/dist/components/dc-temp/AssistantInterface.d.ts +0 -1
  60. package/dist/components/dc-temp/Views/index.d.ts +0 -6
  61. package/dist/components/dc-temp/ai-assistants.d.ts +0 -2
  62. package/dist/components/dc-temp/ai-chat-interface.d.ts +0 -23
  63. package/dist/components/dc-temp/ai-chat.d.ts +0 -21
  64. package/dist/components/dc-temp/business-unit-switcher.d.ts +0 -8
  65. package/dist/components/dc-temp/business-units.d.ts +0 -13
  66. package/dist/components/dc-temp/creative-layout.d.ts +0 -19
  67. package/dist/components/dc-temp/document-sidebar.d.ts +0 -9
  68. package/dist/components/dc-temp/documents.d.ts +0 -27
  69. package/dist/components/dc-temp/landingpage.d.ts +0 -10
  70. package/dist/components/dc-temp/user-selection.d.ts +0 -21
  71. /package/dist/components/{dc-temp → .archive}/app-card.d.ts +0 -0
  72. /package/dist/components/{DigitalColleagues → AdvancedComponents}/CommentSection.d.ts +0 -0
  73. /package/dist/components/{DigitalColleagues → AdvancedComponents}/EditableField.d.ts +0 -0
  74. /package/dist/components/{dc-temp → AdvancedComponents}/theme-provider.d.ts +0 -0
  75. /package/dist/components/{dc-temp → AdvancedComponents}/theme-toggle.d.ts +0 -0
  76. /package/dist/components/{dc-temp → Chat}/capabilities-config.d.ts +0 -0
  77. /package/dist/components/{dc-temp → Chat}/capabilities-data.d.ts +0 -0
  78. /package/dist/components/{dc-temp → Chat}/capabilities.d.ts +0 -0
  79. /package/dist/components/{dc-temp → DigitalColleagues}/colleague-type-selection.d.ts +0 -0
  80. /package/dist/components/{dc-temp → DigitalColleagues}/digital-colleague-options.d.ts +0 -0
  81. /package/dist/components/{DigitalColleagues → Projects}/TaskDetailsModal.d.ts +0 -0
  82. /package/dist/components/{DigitalColleagues → Projects}/TaskSelect.d.ts +0 -0
  83. /package/dist/components/{DigitalColleagues → Projects}/TeamSwitcher.d.ts +0 -0
  84. /package/dist/components/{dc-temp → Projects}/file-list.d.ts +0 -0
  85. /package/dist/components/{dc-temp → Projects}/project-card.d.ts +0 -0
  86. /package/dist/components/{dc-temp → Projects}/project-form.d.ts +0 -0
  87. /package/dist/components/{dc-temp → Projects}/team-card.d.ts +0 -0
@@ -0,0 +1,48 @@
1
+ import type React from "react";
2
+ export interface CapabilityAction {
3
+ id: string;
4
+ label: string;
5
+ description?: string;
6
+ icon?: React.ReactNode;
7
+ iconName?: string;
8
+ action: (context: CapabilityContext) => void;
9
+ }
10
+ export interface CapabilityContext {
11
+ path: Capability[];
12
+ selectedItems: any[];
13
+ filters: Record<string, any>;
14
+ }
15
+ export interface CapabilityData {
16
+ id: string;
17
+ title: string;
18
+ subtitle?: string;
19
+ value?: string | number;
20
+ metadata?: Record<string, any>;
21
+ }
22
+ export interface Capability {
23
+ id: string;
24
+ name: string;
25
+ description?: string;
26
+ icon?: React.ReactNode;
27
+ iconName?: string;
28
+ color?: string;
29
+ type: "category" | "list" | "item";
30
+ children?: Capability[];
31
+ data?: CapabilityData[];
32
+ actions?: CapabilityAction[];
33
+ fetchData?: (context: CapabilityContext) => Promise<CapabilityData[]>;
34
+ }
35
+ export interface CapabilityColorScheme {
36
+ primary: string;
37
+ secondary: string;
38
+ accent: string;
39
+ categories: string[];
40
+ lists: string[];
41
+ items: string[];
42
+ }
43
+ export declare const defaultColorScheme: CapabilityColorScheme;
44
+ export declare const testCapabilities: Capability[];
45
+ export declare function findCapabilityByPath(path: string[]): Capability | null;
46
+ export declare function getContextualActions(context: CapabilityContext): CapabilityAction[];
47
+ export declare function getCapabilityByTeam(teamName: string): Capability[];
48
+ export declare function getAllCapabilities(): Capability[];
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "cortex-react-components",
3
3
  "author": "Cortex Reply",
4
4
  "private": false,
5
- "version": "2.0.0",
5
+ "version": "2.0.1",
6
6
  "description": "A library of React components with styles. Designed to seamlessly integrate with React and Next.js.",
7
7
  "license": "MPL-2.0",
8
8
  "main": "./dist/index.js",
@@ -1,6 +0,0 @@
1
- interface ChatInterfaceProps {
2
- mode: 'copilot' | 'teams';
3
- onModeChange: (mode: 'copilot' | 'teams') => void;
4
- }
5
- export declare const ChatInterface: ({ mode, onModeChange }: ChatInterfaceProps) => import("react/jsx-runtime").JSX.Element;
6
- export {};
@@ -1,2 +0,0 @@
1
- import React from 'react';
2
- export declare const DocumentationView: React.FC;
@@ -1,36 +0,0 @@
1
- import React from 'react';
2
- export interface DigitalColleague {
3
- id: string;
4
- name: string;
5
- avatar?: string;
6
- department?: string;
7
- role?: string;
8
- }
9
- export interface Reminder {
10
- id: string;
11
- title: string;
12
- description: string;
13
- dueDate: Date;
14
- dueTime?: string;
15
- colleague: DigitalColleague;
16
- isCompleted: boolean;
17
- isRecurring: boolean;
18
- recurrencePattern?: 'daily' | 'weekly' | 'monthly' | 'yearly';
19
- recurrenceInterval?: number;
20
- recurrenceEndDate?: Date;
21
- priority: 'low' | 'medium' | 'high';
22
- reminderEnabled: boolean;
23
- reminderMinutes?: number;
24
- createdAt: Date;
25
- completedAt?: Date;
26
- tags?: string[];
27
- }
28
- export interface TasksViewProps {
29
- initialReminders?: Reminder[];
30
- initialColleagues?: DigitalColleague[];
31
- onAddReminder?: (reminder: Omit<Reminder, 'id' | 'createdAt'>) => void;
32
- onUpdateReminder?: (reminderId: string, updates: Partial<Reminder>) => void;
33
- onDeleteReminder?: (reminderId: string) => void;
34
- }
35
- export declare const TasksView: React.FC<TasksViewProps>;
36
- export default TasksView;
@@ -1 +0,0 @@
1
- export default function AssistantInterface(): import("react/jsx-runtime").JSX.Element;
@@ -1,6 +0,0 @@
1
- export { default as ColleaguesView } from './ColleaguesView';
2
- export { default as FileView } from './FileView';
3
- export { default as KnowledgeView } from './KnowledgeView';
4
- export { default as ProjectView } from './ProjectView';
5
- export { default as ProjectsIndexView } from './ProjectsIndexView';
6
- export { default as TeamsIndexView } from './TeamsIndexView';
@@ -1,2 +0,0 @@
1
- import type { AIAssistantType } from "../DigitalColleagues/types";
2
- export declare const aiAssistants: AIAssistantType[];
@@ -1,23 +0,0 @@
1
- import type React from "react";
2
- import type { BusinessUnit } from "./business-units";
3
- import type { Capability } from "./capabilities";
4
- export interface ChatMessage {
5
- id: string;
6
- content: string;
7
- type: "user" | "ai";
8
- timestamp: Date;
9
- }
10
- interface AIChatInterfaceProps {
11
- messages: ChatMessage[];
12
- input: string;
13
- isTyping?: boolean;
14
- selectedTeam?: BusinessUnit;
15
- currentSessionTitle?: string;
16
- capabilities: Capability[];
17
- onInputChange: (value: string) => void;
18
- onSendMessage: () => void;
19
- onKeyPress?: (e: React.KeyboardEvent) => void;
20
- className?: string;
21
- }
22
- export declare function AIChatInterface({ messages, input, isTyping, selectedTeam, currentSessionTitle, capabilities, onInputChange, onSendMessage, onKeyPress, className, }: AIChatInterfaceProps): import("react/jsx-runtime").JSX.Element;
23
- export {};
@@ -1,21 +0,0 @@
1
- import type { AIAssistantType } from "../DigitalColleagues/types";
2
- export type MessageType = "user" | "ai" | "system";
3
- export interface Message {
4
- id: string;
5
- content: string;
6
- type: MessageType;
7
- timestamp: Date;
8
- isLoading?: boolean;
9
- assistantId?: string;
10
- }
11
- interface AIChatProps {
12
- messages: Message[];
13
- onSendMessage: (message: string) => void;
14
- isLoading?: boolean;
15
- assistants: AIAssistantType[];
16
- currentAssistant: AIAssistantType;
17
- onChangeAssistant: (assistant: AIAssistantType) => void;
18
- className?: string;
19
- }
20
- export declare function AIChat({ messages, onSendMessage, isLoading, assistants, currentAssistant, onChangeAssistant, className, }: AIChatProps): import("react/jsx-runtime").JSX.Element;
21
- export {};
@@ -1,8 +0,0 @@
1
- import { type BusinessUnit } from "./business-units";
2
- interface BusinessUnitSwitcherProps {
3
- currentUnit: BusinessUnit;
4
- onUnitChange: (unit: BusinessUnit) => void;
5
- className?: string;
6
- }
7
- export declare function BusinessUnitSwitcher({ currentUnit, onUnitChange, className }: BusinessUnitSwitcherProps): import("react/jsx-runtime").JSX.Element;
8
- export {};
@@ -1,13 +0,0 @@
1
- import type React from "react";
2
- export interface BusinessUnit {
3
- id: string;
4
- name: string;
5
- description: string;
6
- icon: React.ReactNode;
7
- color: string;
8
- accentColor: string;
9
- }
10
- export declare const businessUnits: BusinessUnit[];
11
- export declare function getBusinessUnitById(id: string): BusinessUnit | undefined;
12
- export declare function getBusinessUnitColor(id: string): string;
13
- export declare function getBusinessUnitAccentColor(id: string): string;
@@ -1,19 +0,0 @@
1
- import type React from "react";
2
- import { businessUnits, type BusinessUnit } from "./business-units";
3
- import type { SidebarItem } from "../DigitalColleagues/types";
4
- import type { Notification } from "./notifications-panel";
5
- interface CreativeLayoutProps {
6
- sidebarItems: SidebarItem[];
7
- children: React.ReactNode;
8
- title?: string;
9
- notifications?: Notification[];
10
- currentBusinessUnit?: BusinessUnit;
11
- onBusinessUnitChange?: (unit: BusinessUnit) => void;
12
- businessUnits?: typeof businessUnits;
13
- activeTab?: string;
14
- onTabChange?: (tab: string) => void;
15
- showTabs?: boolean;
16
- }
17
- export declare function CreativeLayout({ sidebarItems, children, title, notifications, currentBusinessUnit, // Default to Design unit
18
- onBusinessUnitChange, businessUnits: businessUnitsProp, activeTab, onTabChange, showTabs, }: CreativeLayoutProps): import("react/jsx-runtime").JSX.Element;
19
- export {};
@@ -1,9 +0,0 @@
1
- import type { DocumentTreeNode } from "./documents";
2
- interface DocumentSidebarProps {
3
- documentTree: DocumentTreeNode[];
4
- currentSlug?: string;
5
- onDocumentSelect?: (slug: string) => void;
6
- className?: string;
7
- }
8
- export declare function DocumentSidebar({ documentTree, currentSlug, onDocumentSelect, className }: DocumentSidebarProps): import("react/jsx-runtime").JSX.Element;
9
- export {};
@@ -1,27 +0,0 @@
1
- export interface DocumentItem {
2
- id: string;
3
- title: string;
4
- slug: string;
5
- content: string;
6
- parentId?: string;
7
- order: number;
8
- lastModified: Date;
9
- author: string;
10
- tags?: string[];
11
- }
12
- export interface DocumentTreeNode {
13
- id: string;
14
- title: string;
15
- slug: string;
16
- parentId?: string;
17
- order: number;
18
- children: DocumentTreeNode[];
19
- hasContent: boolean;
20
- }
21
- export declare const documentsData: DocumentItem[];
22
- export declare function buildDocumentTree(documents: DocumentItem[]): DocumentTreeNode[];
23
- export declare function findDocumentBySlug(slug: string): DocumentItem | undefined;
24
- export declare function getBreadcrumbPath(slug: string): {
25
- title: string;
26
- slug: string;
27
- }[];
@@ -1,10 +0,0 @@
1
- import { type ChatSession } from "./chat-session-sidebar";
2
- import { type ChatMessage } from "./ai-chat-interface";
3
- interface LandingPageProps {
4
- initialTeam?: string;
5
- initialMessages?: ChatMessage[];
6
- initialSessions?: ChatSession[];
7
- showCapabilities?: boolean;
8
- }
9
- export default function LandingPage({ initialTeam, initialMessages, initialSessions, showCapabilities, }?: LandingPageProps): import("react/jsx-runtime").JSX.Element;
10
- export {};
@@ -1,21 +0,0 @@
1
- export interface User {
2
- id: string;
3
- name: string;
4
- email: string;
5
- role: string;
6
- department: string;
7
- avatar?: string;
8
- skills?: string[];
9
- location?: string;
10
- phone?: string;
11
- timezone?: string;
12
- bio?: string;
13
- }
14
- interface UserSelectionProps {
15
- users: User[];
16
- onUserSelect: (user: User) => void;
17
- onCancel: () => void;
18
- selectedUserId?: string;
19
- }
20
- export declare function UserSelection({ users, onUserSelect, onCancel, selectedUserId, }: UserSelectionProps): import("react/jsx-runtime").JSX.Element;
21
- export {};