@factorialco/f0-react 1.235.3 → 1.236.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.
@@ -256,14 +256,15 @@ declare type AIButton = {
256
256
  */
257
257
  export declare const AiChat: () => JSX_2.Element | null;
258
258
 
259
- export declare const AiChatProvider: ({ enabled, greeting, initialMessage, onThumbsUp, onThumbsDown, children, agent, ...copilotKitProps }: AiChatProviderProps) => JSX_2.Element;
259
+ export declare const AiChatProvider: ({ enabled, greeting, initialMessage, welcomeScreenSuggestions, onThumbsUp, onThumbsDown, children, agent, ...copilotKitProps }: AiChatProviderProps) => JSX_2.Element;
260
260
 
261
261
  export declare type AiChatProviderProps = {
262
262
  enabled?: boolean;
263
263
  greeting?: string;
264
264
  initialMessage?: string | string[];
265
- onThumbsUp?: (message: AIMessage) => void;
266
- onThumbsDown?: (message: AIMessage) => void;
265
+ welcomeScreenSuggestions?: WelcomeScreenSuggestion[];
266
+ onThumbsUp?: (message: AIMessage, threadId: string) => void;
267
+ onThumbsDown?: (message: AIMessage, threadId: string) => void;
267
268
  } & Pick<CopilotKitProps, "agent" | "credentials" | "children" | "runtimeUrl" | "showDevConsole" | "threadId" | "headers">;
268
269
 
269
270
  declare type AiChatProviderReturnValue = {
@@ -287,8 +288,10 @@ declare type AiChatProviderReturnValue = {
287
288
  */
288
289
  initialMessage?: string | string[];
289
290
  setInitialMessage: React.Dispatch<React.SetStateAction<string | string[] | undefined>>;
290
- onThumbsUp?: (message: AIMessage) => void;
291
- onThumbsDown?: (message: AIMessage) => void;
291
+ welcomeScreenSuggestions: WelcomeScreenSuggestion[];
292
+ setWelcomeScreenSuggestions: React.Dispatch<React.SetStateAction<WelcomeScreenSuggestion[]>>;
293
+ onThumbsUp?: (message: AIMessage, threadId: string) => void;
294
+ onThumbsDown?: (message: AIMessage, threadId: string) => void;
292
295
  /**
293
296
  * Clear/reset the chat conversation
294
297
  */
@@ -301,8 +304,9 @@ declare interface AiChatState {
301
304
  enabled: boolean;
302
305
  agent?: string;
303
306
  initialMessage?: string | string[];
304
- onThumbsUp?: (message: AIMessage) => void;
305
- onThumbsDown?: (message: AIMessage) => void;
307
+ welcomeScreenSuggestions?: WelcomeScreenSuggestion[];
308
+ onThumbsUp?: (message: AIMessage, threadId: string) => void;
309
+ onThumbsDown?: (message: AIMessage, threadId: string) => void;
306
310
  }
307
311
 
308
312
  export declare const Alert: React_2.ForwardRefExoticComponent<Omit<React_2.HTMLAttributes<HTMLDivElement> & VariantProps<(props?: ({
@@ -368,7 +372,7 @@ declare const alertVariants: (props?: ({
368
372
 
369
373
  export declare function ApplicationFrame({ children, sidebar, banner, ai, }: ApplicationFrameProps): JSX_2.Element;
370
374
 
371
- declare interface ApplicationFrameProps {
375
+ export declare interface ApplicationFrameProps {
372
376
  ai?: Omit<AiChatProviderProps, "children">;
373
377
  banner?: React.ReactNode;
374
378
  sidebar: React.ReactNode;
@@ -5014,6 +5018,11 @@ declare interface WeekdaysProps {
5014
5018
  daysOfTheWeek?: string[];
5015
5019
  }
5016
5020
 
5021
+ declare type WelcomeScreenSuggestion = {
5022
+ icon: IconType;
5023
+ message: string;
5024
+ };
5025
+
5017
5026
  export declare const Widget: default_2.ForwardRefExoticComponent<WidgetProps & {
5018
5027
  children: ReactNode;
5019
5028
  } & default_2.RefAttributes<HTMLDivElement>> & {