randmarcomps 1.89.0 → 1.91.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,13 @@ 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 function ChatLayout({ userId, userName, apiKey, inputRef: externalInputRef }: ChatLayoutProps): JSX.Element;
88
89
 
89
90
  export declare interface ChatLayoutProps {
90
91
  userId: string;
91
92
  userName: string;
92
93
  apiKey: string;
94
+ inputRef?: React.RefObject<HTMLInputElement | null>;
93
95
  }
94
96
 
95
97
  export declare interface ConfirmationDialogProps {
@@ -118,7 +120,9 @@ export declare const Dialog: {
118
120
 
119
121
  export declare const DialogClose: React_2.ForwardRefExoticComponent<DialogPrimitive.DialogCloseProps & React_2.RefAttributes<HTMLButtonElement>>;
120
122
 
121
- export declare const DialogContent: React_2.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogContentProps & React_2.RefAttributes<HTMLDivElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
123
+ export declare const DialogContent: React_2.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogContentProps & React_2.RefAttributes<HTMLDivElement>, "ref"> & {
124
+ animateExit?: boolean;
125
+ } & React_2.RefAttributes<HTMLDivElement>>;
122
126
 
123
127
  export declare const DialogDescription: React_2.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogDescriptionProps & React_2.RefAttributes<HTMLParagraphElement>, "ref"> & React_2.RefAttributes<HTMLParagraphElement>>;
124
128
 
@@ -211,23 +215,29 @@ declare interface LayoutProps {
211
215
  dashboardTitle?: string;
212
216
  onSignOut?: () => void;
213
217
  searchPlaceholder?: string;
218
+ withRandmarAssistant?: boolean;
219
+ chatUserName?: string;
220
+ chatApiKey?: string;
214
221
  }
215
222
 
216
223
  declare type MaskType = "phone" | "postal-code-ca" | "zip-code-us";
217
224
 
218
- export declare function Navbar({ routes, footer, dashboardTitle }: NavbarProps): JSX.Element;
225
+ export declare function Navbar({ routes, footer, dashboardTitle, withRandmarAssistant, chatUserName, chatApiKey }: NavbarProps): JSX.Element;
219
226
 
220
227
  declare interface NavbarProps {
221
228
  routes: NavRoute[];
222
229
  dashboardTitle?: string;
223
- footer: React.ReactNode;
230
+ footer: default_2.ReactNode;
231
+ withRandmarAssistant?: boolean;
232
+ chatUserName?: string;
233
+ chatApiKey?: string;
224
234
  }
225
235
 
226
236
  export declare interface NavRoute {
227
237
  key: string;
228
238
  path: string;
229
239
  label?: string;
230
- icon?: React.ComponentType<React.SVGProps<SVGSVGElement>>;
240
+ icon?: default_2.ComponentType<default_2.SVGProps<SVGSVGElement>>;
231
241
  showInNav?: boolean;
232
242
  }
233
243