randmarcomps 1.411.0 → 1.415.0

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.
@@ -61,6 +61,10 @@ declare interface ActiveOrdersCardProps {
61
61
  loading?: boolean;
62
62
  }
63
63
 
64
+ declare interface AIChatLayoutHandle {
65
+ sendMessageToAssistant: (message: string | null) => void;
66
+ }
67
+
64
68
  export declare function AiGeneratedContent(props: AiGeneratedContentProps): JSX.Element;
65
69
 
66
70
  export declare interface AiGeneratedContentProps {
@@ -211,26 +215,20 @@ export declare const CardHeader: React_2.ForwardRefExoticComponent<React_2.HTMLA
211
215
  export declare const CardTitle: React_2.ForwardRefExoticComponent<React_2.HTMLAttributes<HTMLDivElement> & React_2.RefAttributes<HTMLDivElement>>;
212
216
 
213
217
  declare interface ChatContextType {
214
- sendMessage: (chatId: number, message?: string) => boolean;
215
- chatRef: default_2.RefObject<ChatLayoutHandle | null>;
218
+ sendMessage: (message?: string) => boolean;
219
+ chatRef: default_2.RefObject<AIChatLayoutHandle | null>;
216
220
  hasUnreads: boolean;
217
221
  setHasUnreads: (value: boolean) => void;
218
222
  }
219
223
 
220
- export declare const ChatLayout: ForwardRefExoticComponent<ChatLayoutProps & RefAttributes<ChatLayoutHandle>>;
221
-
222
- export declare interface ChatLayoutHandle {
223
- setActiveChatAndSendMessage: (conversationId: number, message?: string) => void;
224
- }
224
+ export declare function ChatLayout({ userId, userName, inputRef: externalInputRef, className }: ChatLayoutProps): JSX.Element;
225
225
 
226
226
  export declare interface ChatLayoutProps {
227
227
  userId: string;
228
228
  userName: string;
229
229
  inputRef?: React.RefObject<HTMLTextAreaElement | null>;
230
- assistantOnly?: boolean;
231
230
  className?: string;
232
231
  initialPrompt?: string;
233
- noAssistant?: boolean;
234
232
  }
235
233
 
236
234
  export declare const ChatProvider: default_2.FC<{
@@ -592,7 +590,7 @@ declare interface LayoutProps {
592
590
  onSignOut?: () => void;
593
591
  searchPlaceholder?: string;
594
592
  chatUserName?: string;
595
- chatRef?: React.Ref<ChatLayoutHandle | null>;
593
+ chatRef?: React.Ref<AIChatLayoutHandle | null>;
596
594
  chatRoutePath: string;
597
595
  }
598
596
 
@@ -647,7 +645,7 @@ declare interface MultiSelectProps {
647
645
  disabled?: boolean;
648
646
  }
649
647
 
650
- export declare const Navbar: default_2.ForwardRefExoticComponent<NavbarProps & default_2.RefAttributes<ChatLayoutHandle | null>>;
648
+ export declare const Navbar: default_2.ForwardRefExoticComponent<NavbarProps & default_2.RefAttributes<AIChatLayoutHandle | null>>;
651
649
 
652
650
  export declare interface NavbarProps {
653
651
  routes: NavRoute[];