@factorialco/f0-react 1.235.2 → 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.
- package/dist/experimental.d.ts +22 -13
- package/dist/experimental.js +5700 -5691
- package/dist/f0.d.ts +5 -5
- package/dist/f0.js +2 -2
- package/dist/{hooks-CV8UudN7.js → hooks-CALHYYfS.js} +9031 -8996
- package/dist/styles.css +1 -1
- package/package.json +1 -1
package/dist/experimental.d.ts
CHANGED
|
@@ -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
|
-
|
|
266
|
-
|
|
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
|
-
|
|
291
|
-
|
|
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
|
-
|
|
305
|
-
|
|
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>> & {
|
|
@@ -5181,6 +5190,11 @@ declare module "@tiptap/core" {
|
|
|
5181
5190
|
}
|
|
5182
5191
|
|
|
5183
5192
|
|
|
5193
|
+
declare namespace Calendar {
|
|
5194
|
+
var displayName: string;
|
|
5195
|
+
}
|
|
5196
|
+
|
|
5197
|
+
|
|
5184
5198
|
declare module "@tiptap/core" {
|
|
5185
5199
|
interface Commands<ReturnType> {
|
|
5186
5200
|
moodTracker: {
|
|
@@ -5188,8 +5202,3 @@ declare module "@tiptap/core" {
|
|
|
5188
5202
|
};
|
|
5189
5203
|
}
|
|
5190
5204
|
}
|
|
5191
|
-
|
|
5192
|
-
|
|
5193
|
-
declare namespace Calendar {
|
|
5194
|
-
var displayName: string;
|
|
5195
|
-
}
|