@factorialco/f0-react 1.228.3 → 1.230.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 +10 -0
- package/dist/experimental.js +11806 -11773
- package/dist/f0.d.ts +2 -0
- package/dist/f0.js +52 -50
- package/dist/{hooks-B3KsBFK3.js → hooks-DW-Q7N91.js} +19065 -18990
- package/package.json +1 -1
package/dist/experimental.d.ts
CHANGED
|
@@ -282,10 +282,18 @@ declare type AiChatProviderReturnValue = {
|
|
|
282
282
|
*/
|
|
283
283
|
setAutoClearMinutes: React.Dispatch<React.SetStateAction<number | null>>;
|
|
284
284
|
autoClearMinutes: number | null;
|
|
285
|
+
/**
|
|
286
|
+
* The initial message to display in the chat
|
|
287
|
+
*/
|
|
285
288
|
initialMessage?: string | string[];
|
|
286
289
|
setInitialMessage: React.Dispatch<React.SetStateAction<string | string[] | undefined>>;
|
|
287
290
|
onThumbsUp?: (message: AIMessage) => void;
|
|
288
291
|
onThumbsDown?: (message: AIMessage) => void;
|
|
292
|
+
/**
|
|
293
|
+
* Clear/reset the chat conversation
|
|
294
|
+
*/
|
|
295
|
+
clear: () => void;
|
|
296
|
+
/* Excluded from this release type: setClearFunction */
|
|
289
297
|
} & Pick<AiChatState, "greeting" | "agent">;
|
|
290
298
|
|
|
291
299
|
declare interface AiChatState {
|
|
@@ -1726,6 +1734,8 @@ declare const defaultTranslations: {
|
|
|
1726
1734
|
readonly currentDate: "This week";
|
|
1727
1735
|
readonly label: "Week";
|
|
1728
1736
|
readonly long: "Week of {{day}} {{month}} {{year}}";
|
|
1737
|
+
readonly longSingular: "Week of {{date}}";
|
|
1738
|
+
readonly longPlural: "Weeks of {{date}}";
|
|
1729
1739
|
};
|
|
1730
1740
|
readonly month: {
|
|
1731
1741
|
readonly currentDate: "This month";
|