@factorialco/f0-react 1.214.3 → 1.215.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 +19 -7
- package/dist/experimental.js +7884 -7738
- package/dist/f0.d.ts +7 -6
- package/dist/f0.js +30 -29
- package/dist/{hooks-BD8D792R.js → hooks-ZMPySqdc.js} +42 -42
- package/dist/styles.css +1 -1
- package/package.json +1 -1
package/dist/experimental.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { AIMessage } from '@copilotkit/shared';
|
|
1
2
|
import { AlertAvatarProps as AlertAvatarProps_2 } from '../../f0';
|
|
2
3
|
import { AlertTagCellValue } from './types/alertTag.tsx';
|
|
3
4
|
import { AlertTagCellValue as AlertTagCellValue_2 } from '../../value-display/types/alertTag';
|
|
@@ -255,11 +256,14 @@ declare type AIButton = {
|
|
|
255
256
|
*/
|
|
256
257
|
export declare const AiChat: () => JSX_2.Element | null;
|
|
257
258
|
|
|
258
|
-
export declare const AiChatProvider: ({ enabled, greeting, children, agent, ...copilotKitProps }: AiChatProviderProps) => JSX_2.Element;
|
|
259
|
+
export declare const AiChatProvider: ({ enabled, greeting, initialMessage, onThumbsUp, onThumbsDown, children, agent, ...copilotKitProps }: AiChatProviderProps) => JSX_2.Element;
|
|
259
260
|
|
|
260
261
|
export declare type AiChatProviderProps = {
|
|
261
262
|
enabled?: boolean;
|
|
262
263
|
greeting?: string;
|
|
264
|
+
initialMessage?: string | string[];
|
|
265
|
+
onThumbsUp?: (message: AIMessage) => void;
|
|
266
|
+
onThumbsDown?: (message: AIMessage) => void;
|
|
263
267
|
} & Pick<CopilotKitProps, "agent" | "credentials" | "children" | "runtimeUrl" | "showDevConsole" | "threadId" | "headers">;
|
|
264
268
|
|
|
265
269
|
declare type AiChatProviderReturnValue = {
|
|
@@ -278,12 +282,19 @@ declare type AiChatProviderReturnValue = {
|
|
|
278
282
|
*/
|
|
279
283
|
setAutoClearMinutes: React.Dispatch<React.SetStateAction<number | null>>;
|
|
280
284
|
autoClearMinutes: number | null;
|
|
285
|
+
initialMessage?: string | string[];
|
|
286
|
+
setInitialMessage: React.Dispatch<React.SetStateAction<string | string[] | undefined>>;
|
|
287
|
+
onThumbsUp?: (message: AIMessage) => void;
|
|
288
|
+
onThumbsDown?: (message: AIMessage) => void;
|
|
281
289
|
} & Pick<AiChatState, "greeting" | "agent">;
|
|
282
290
|
|
|
283
291
|
declare interface AiChatState {
|
|
284
292
|
greeting?: string;
|
|
285
293
|
enabled: boolean;
|
|
286
294
|
agent?: string;
|
|
295
|
+
initialMessage?: string | string[];
|
|
296
|
+
onThumbsUp?: (message: AIMessage) => void;
|
|
297
|
+
onThumbsDown?: (message: AIMessage) => void;
|
|
287
298
|
}
|
|
288
299
|
|
|
289
300
|
export declare const Alert: React_2.ForwardRefExoticComponent<Omit<React_2.HTMLAttributes<HTMLDivElement> & VariantProps<(props?: ({
|
|
@@ -1727,10 +1738,11 @@ declare const defaultTranslations: {
|
|
|
1727
1738
|
readonly closeChat: "Close Chat with One AI";
|
|
1728
1739
|
readonly scrollToBottom: "Scroll to bottom";
|
|
1729
1740
|
readonly welcome: "Ask or create with One";
|
|
1730
|
-
readonly
|
|
1741
|
+
readonly defaultInitialMessage: "How can I help you today?";
|
|
1731
1742
|
readonly inputPlaceholder: "Write something here...";
|
|
1732
1743
|
readonly stopAnswerGeneration: "Stop generating";
|
|
1733
1744
|
readonly sendMessage: "Send message";
|
|
1745
|
+
readonly thoughtsGroupTitle: "Reflection";
|
|
1734
1746
|
};
|
|
1735
1747
|
readonly select: {
|
|
1736
1748
|
readonly noResults: "No results found";
|
|
@@ -5072,11 +5084,6 @@ declare module "@tiptap/core" {
|
|
|
5072
5084
|
}
|
|
5073
5085
|
|
|
5074
5086
|
|
|
5075
|
-
declare namespace Calendar {
|
|
5076
|
-
var displayName: string;
|
|
5077
|
-
}
|
|
5078
|
-
|
|
5079
|
-
|
|
5080
5087
|
declare module "@tiptap/core" {
|
|
5081
5088
|
interface Commands<ReturnType> {
|
|
5082
5089
|
moodTracker: {
|
|
@@ -5084,3 +5091,8 @@ declare module "@tiptap/core" {
|
|
|
5084
5091
|
};
|
|
5085
5092
|
}
|
|
5086
5093
|
}
|
|
5094
|
+
|
|
5095
|
+
|
|
5096
|
+
declare namespace Calendar {
|
|
5097
|
+
var displayName: string;
|
|
5098
|
+
}
|