organify-ui 0.3.2 → 0.3.4

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.
@@ -89,6 +89,12 @@ interface OrganifyChatProps extends ChatConfig {
89
89
  workspaceRole?: 'OWNER' | 'ADMIN' | 'MEMBER' | 'GUEST';
90
90
  /** All workspace members for DM user picker */
91
91
  workspaceMembers?: ChatUser[];
92
+ /** Workspace projects for @mention (replaces mock data) */
93
+ workspaceProjects?: {
94
+ id: string;
95
+ name: string;
96
+ key?: string;
97
+ }[];
92
98
  /** Initial rooms for demo/testing (bypasses API fetch) */
93
99
  initialRooms?: ChatRoom[];
94
100
  /** Initial messages for demo/testing (bypasses API fetch) */
@@ -123,7 +129,7 @@ interface ChatEvents {
123
129
  };
124
130
  }
125
131
 
126
- declare function OrganifyChat({ workspaceRole, workspaceMembers, initialRooms, initialMessages, className, }: OrganifyChatProps): react_jsx_runtime.JSX.Element;
132
+ declare function OrganifyChat({ workspaceRole, workspaceMembers, workspaceProjects, initialRooms, initialMessages, className, }: OrganifyChatProps): react_jsx_runtime.JSX.Element;
127
133
 
128
134
  interface ChatSidebarProps {
129
135
  rooms: ChatRoom[];
@@ -336,4 +342,30 @@ declare class TypingIndicatorMock {
336
342
  }
337
343
  declare const typingIndicator: TypingIndicatorMock;
338
344
 
339
- export { type ChatMessage as C, type MentionOption as M, OrganifyChat as O, RoomManagementPanel as R, TypingIndicatorMock as T, type MentionType as a, type ChatConfig as b, type ChatEvents as c, type ChatMention as d, ChatMessages as e, type ChatPermissions as f, type ChatReaction as g, type ChatRoom as h, type ChatRoomMember as i, ChatSidebar as j, type ChatUser as k, CreateRoomDialog as l, MOCK_PROJECTS as m, MOCK_USERS as n, type MemberRole as o, MentionPopover as p, type MentionPopoverProps as q, type OrganifyChatProps as r, type RoomType as s, type RoomVisibility as t, generateAutoReplies as u, getMockMentionOptions as v, getRoomPermissions as w, typingIndicator as x, useChat as y };
345
+ interface AiChatMessage {
346
+ id: string;
347
+ role: 'user' | 'assistant' | 'system';
348
+ content: string;
349
+ timestamp: Date;
350
+ actions?: AiAction[];
351
+ loading?: boolean;
352
+ }
353
+ interface AiAction {
354
+ type: string;
355
+ label: string;
356
+ description?: string;
357
+ applied?: boolean;
358
+ }
359
+ interface AiChatSidebarProps {
360
+ open: boolean;
361
+ onOpenChange: (open: boolean) => void;
362
+ messages: AiChatMessage[];
363
+ onSend: (message: string) => void;
364
+ loading?: boolean;
365
+ userName?: string;
366
+ contextLabel?: string;
367
+ placeholder?: string;
368
+ }
369
+ declare function AiChatSidebar({ open, onOpenChange, messages, onSend, loading, userName, contextLabel, placeholder, }: AiChatSidebarProps): react_jsx_runtime.JSX.Element;
370
+
371
+ export { type AiAction as A, typingIndicator as B, type ChatMessage as C, useChat as D, type MentionOption as M, OrganifyChat as O, RoomManagementPanel as R, TypingIndicatorMock as T, type MentionType as a, type AiChatMessage as b, AiChatSidebar as c, type AiChatSidebarProps as d, type ChatConfig as e, type ChatEvents as f, type ChatMention as g, ChatMessages as h, type ChatPermissions as i, type ChatReaction as j, type ChatRoom as k, type ChatRoomMember as l, ChatSidebar as m, type ChatUser as n, CreateRoomDialog as o, MOCK_PROJECTS as p, MOCK_USERS as q, type MemberRole as r, MentionPopover as s, type MentionPopoverProps as t, type OrganifyChatProps as u, type RoomType as v, type RoomVisibility as w, generateAutoReplies as x, getMockMentionOptions as y, getRoomPermissions as z };