@factorialco/f0-react 1.408.0 → 1.410.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.
@@ -366,6 +366,8 @@ declare type ActivityItemProps = {
366
366
  onVisible?: (id: string) => void;
367
367
  };
368
368
 
369
+ declare type AddRowActionsResult = PrimaryActionItemDefinition | PrimaryActionItemDefinition[] | undefined;
370
+
369
371
  declare type AiBannerAction = {
370
372
  label: string;
371
373
  onClick: () => void;
@@ -432,6 +434,13 @@ declare type AiChatProviderProps = {
432
434
  * @default false
433
435
  */
434
436
  lockVisualizationMode?: boolean;
437
+ /**
438
+ * Enable chat history UI (clickable header title + history dialog).
439
+ * When false (default), the header shows a simple "New Chat" button instead.
440
+ * Set to true only when the backend supports the /copilotkit/chat-history/threads route.
441
+ * @default false
442
+ */
443
+ historyEnabled?: boolean;
435
444
  /**
436
445
  * Optional footer content rendered below the textarea
437
446
  */
@@ -2564,6 +2573,10 @@ declare const defaultTranslations: {
2564
2573
  readonly thoughtsGroupTitle: "Reflection";
2565
2574
  readonly resourcesGroupTitle: "Resources";
2566
2575
  readonly thinking: "Thinking...";
2576
+ readonly closeDashboard: "Close dashboard";
2577
+ readonly unsavedChanges: "Unsaved changes";
2578
+ readonly saveChanges: "Save changes";
2579
+ readonly discardChanges: "Discard";
2567
2580
  readonly exportTable: "Download table";
2568
2581
  readonly generatedTableFilename: "OneGeneratedTable";
2569
2582
  readonly feedbackModal: {
@@ -2581,9 +2594,29 @@ declare const defaultTranslations: {
2581
2594
  readonly dataDownloadPreview: "Preview {{shown}} of {{total}} rows — download the Excel to see all data.";
2582
2595
  readonly expandChat: "Expand chat";
2583
2596
  readonly collapseChat: "Collapse chat";
2597
+ readonly chatHistory: "Chat history";
2598
+ readonly noPreviousChats: "No previous conversations";
2599
+ readonly newConversation: "New conversation";
2600
+ readonly today: "Today";
2601
+ readonly yesterday: "Yesterday";
2602
+ readonly thisMonth: "This month";
2603
+ readonly older: "Older";
2604
+ readonly searchChats: "Search conversations...";
2605
+ readonly pinnedChats: "Pinned";
2606
+ readonly threadOptions: "Thread options";
2607
+ readonly pinChat: "Pin chat";
2608
+ readonly unpinChat: "Unpin chat";
2609
+ readonly deleteChat: "Delete chat";
2584
2610
  readonly ask: "Ask One";
2585
2611
  readonly viewProfile: "View profile";
2586
2612
  readonly tools: "Tools";
2613
+ readonly reportCard: {
2614
+ readonly reportLabel: "Report";
2615
+ readonly openButton: "Open";
2616
+ };
2617
+ readonly dataDownload: {
2618
+ readonly download: "Download {{format}}";
2619
+ };
2587
2620
  readonly growth: {
2588
2621
  readonly demoCard: {
2589
2622
  readonly title: "See {{moduleName}} in action";
@@ -2956,12 +2989,26 @@ declare type EditableTableVisualizationOptions<R extends RecordType, _Filters ex
2956
2989
  * Rejection sets an error on the edited column.
2957
2990
  */
2958
2991
  onCellChange: (updatedItem: R) => Promise<void | Record<string, string>>;
2959
- /** When provided, renders an "Add" button row at the bottom of the table and nested rows. Receives the parent item when triggered from a nested row. Supports async functions for loading state. */
2960
- onAddRow?: (parentItem?: R) => void | Promise<void>;
2961
- /** Custom label for the root-level "Add row" button. Falls back to the default i18n translation. */
2962
- addRowButtonLabel?: string;
2963
- /** Custom label for the nested-row "Add row" button. Falls back to the default i18n translation. */
2964
- nestedAddRowButtonLabel?: string;
2992
+ /**
2993
+ * When provided, renders action buttons at the bottom of the root-level table.
2994
+ * Returns a single action, an array of actions, or undefined to hide the row.
2995
+ */
2996
+ addRowActions?: () => AddRowActionsResult;
2997
+ /**
2998
+ * Label for the dropdown trigger button when multiple root-level add-row
2999
+ * actions are provided. Falls back to the first action's label if omitted.
3000
+ */
3001
+ addRowActionsLabel?: string;
3002
+ /**
3003
+ * When provided, renders action buttons at the bottom of each expanded nested row.
3004
+ * Receives the parent item whose children the new row will be added to.
3005
+ */
3006
+ addNestedRowActions?: (parent: R) => AddRowActionsResult;
3007
+ /**
3008
+ * Label for the dropdown trigger button when multiple nested add-row
3009
+ * actions are provided. Falls back to the first action's label if omitted.
3010
+ */
3011
+ addNestedRowActionsLabel?: string;
2965
3012
  };
2966
3013
 
2967
3014
  declare type EditableTableVisualizationSettings = TableVisualizationSettings;
@@ -6850,7 +6897,7 @@ export declare type VisualizationFilterOverrides<Filters extends FiltersDefiniti
6850
6897
  /**
6851
6898
  * Visualization mode for the AI chat
6852
6899
  */
6853
- declare type VisualizationMode = "sidepanel" | "fullscreen";
6900
+ declare type VisualizationMode = "sidepanel" | "fullscreen" | "canvas";
6854
6901
 
6855
6902
  declare type VisualizationSettings = {
6856
6903
  [K in keyof typeof collectionVisualizations]: ExtractVisualizationSettings<(typeof collectionVisualizations)[K]>;
@@ -7077,6 +7124,11 @@ declare module "gridstack" {
7077
7124
  }
7078
7125
 
7079
7126
 
7127
+ declare namespace Calendar {
7128
+ var displayName: string;
7129
+ }
7130
+
7131
+
7080
7132
  declare module "@tiptap/core" {
7081
7133
  interface Commands<ReturnType> {
7082
7134
  aiBlock: {
@@ -7124,8 +7176,3 @@ declare module "@tiptap/core" {
7124
7176
  };
7125
7177
  }
7126
7178
  }
7127
-
7128
-
7129
- declare namespace Calendar {
7130
- var displayName: string;
7131
- }