randmarcomps 1.91.0 → 1.92.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.
@@ -85,7 +85,11 @@ export declare const CardHeader: React_2.ForwardRefExoticComponent<React_2.HTMLA
85
85
 
86
86
  export declare const CardTitle: React_2.ForwardRefExoticComponent<React_2.HTMLAttributes<HTMLDivElement> & React_2.RefAttributes<HTMLDivElement>>;
87
87
 
88
- export declare function ChatLayout({ userId, userName, apiKey, inputRef: externalInputRef }: ChatLayoutProps): JSX.Element;
88
+ export declare const ChatLayout: ForwardRefExoticComponent<ChatLayoutProps & RefAttributes<ChatLayoutHandle>>;
89
+
90
+ export declare interface ChatLayoutHandle {
91
+ setActiveChatAndSendMessage: (conversationId: number, message?: string) => void;
92
+ }
89
93
 
90
94
  export declare interface ChatLayoutProps {
91
95
  userId: string;
@@ -218,13 +222,14 @@ declare interface LayoutProps {
218
222
  withRandmarAssistant?: boolean;
219
223
  chatUserName?: string;
220
224
  chatApiKey?: string;
225
+ chatRef?: React.Ref<ChatLayoutHandle>;
221
226
  }
222
227
 
223
228
  declare type MaskType = "phone" | "postal-code-ca" | "zip-code-us";
224
229
 
225
- export declare function Navbar({ routes, footer, dashboardTitle, withRandmarAssistant, chatUserName, chatApiKey }: NavbarProps): JSX.Element;
230
+ export declare const Navbar: default_2.ForwardRefExoticComponent<NavbarProps & default_2.RefAttributes<ChatLayoutHandle>>;
226
231
 
227
- declare interface NavbarProps {
232
+ export declare interface NavbarProps {
228
233
  routes: NavRoute[];
229
234
  dashboardTitle?: string;
230
235
  footer: default_2.ReactNode;