randmarcomps 1.90.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.
@@ -1,6 +1,7 @@
1
1
  import * as AvatarPrimitive from '@radix-ui/react-avatar';
2
2
  import { ButtonProps as ButtonProps_2 } from './button';
3
3
  import { ClassProp } from 'class-variance-authority/types';
4
+ import { default as default_2 } from 'react';
4
5
  import * as DialogPrimitive from '@radix-ui/react-dialog';
5
6
  import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
6
7
  import { FC } from 'react';
@@ -84,12 +85,17 @@ export declare const CardHeader: React_2.ForwardRefExoticComponent<React_2.HTMLA
84
85
 
85
86
  export declare const CardTitle: React_2.ForwardRefExoticComponent<React_2.HTMLAttributes<HTMLDivElement> & React_2.RefAttributes<HTMLDivElement>>;
86
87
 
87
- export declare function ChatLayout({ userId, userName, apiKey }: 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
+ }
88
93
 
89
94
  export declare interface ChatLayoutProps {
90
95
  userId: string;
91
96
  userName: string;
92
97
  apiKey: string;
98
+ inputRef?: React.RefObject<HTMLInputElement | null>;
93
99
  }
94
100
 
95
101
  export declare interface ConfirmationDialogProps {
@@ -118,7 +124,9 @@ export declare const Dialog: {
118
124
 
119
125
  export declare const DialogClose: React_2.ForwardRefExoticComponent<DialogPrimitive.DialogCloseProps & React_2.RefAttributes<HTMLButtonElement>>;
120
126
 
121
- export declare const DialogContent: React_2.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogContentProps & React_2.RefAttributes<HTMLDivElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
127
+ export declare const DialogContent: React_2.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogContentProps & React_2.RefAttributes<HTMLDivElement>, "ref"> & {
128
+ animateExit?: boolean;
129
+ } & React_2.RefAttributes<HTMLDivElement>>;
122
130
 
123
131
  export declare const DialogDescription: React_2.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogDescriptionProps & React_2.RefAttributes<HTMLParagraphElement>, "ref"> & React_2.RefAttributes<HTMLParagraphElement>>;
124
132
 
@@ -214,16 +222,17 @@ declare interface LayoutProps {
214
222
  withRandmarAssistant?: boolean;
215
223
  chatUserName?: string;
216
224
  chatApiKey?: string;
225
+ chatRef?: React.Ref<ChatLayoutHandle>;
217
226
  }
218
227
 
219
228
  declare type MaskType = "phone" | "postal-code-ca" | "zip-code-us";
220
229
 
221
- 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>>;
222
231
 
223
- declare interface NavbarProps {
232
+ export declare interface NavbarProps {
224
233
  routes: NavRoute[];
225
234
  dashboardTitle?: string;
226
- footer: React.ReactNode;
235
+ footer: default_2.ReactNode;
227
236
  withRandmarAssistant?: boolean;
228
237
  chatUserName?: string;
229
238
  chatApiKey?: string;
@@ -233,7 +242,7 @@ export declare interface NavRoute {
233
242
  key: string;
234
243
  path: string;
235
244
  label?: string;
236
- icon?: React.ComponentType<React.SVGProps<SVGSVGElement>>;
245
+ icon?: default_2.ComponentType<default_2.SVGProps<SVGSVGElement>>;
237
246
  showInNav?: boolean;
238
247
  }
239
248