@factorialco/f0-react 1.390.1 → 1.391.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/ai.d.ts CHANGED
@@ -535,6 +535,7 @@ export declare const defaultTranslations: {
535
535
  readonly errors: {
536
536
  readonly saveFailed: "Save failed";
537
537
  };
538
+ readonly addRow: "Add row";
538
539
  };
539
540
  readonly itemsCount: "items";
540
541
  readonly emptyStates: {
@@ -2491,6 +2491,7 @@ declare const defaultTranslations: {
2491
2491
  readonly errors: {
2492
2492
  readonly saveFailed: "Save failed";
2493
2493
  };
2494
+ readonly addRow: "Add row";
2494
2495
  };
2495
2496
  readonly itemsCount: "items";
2496
2497
  readonly emptyStates: {
@@ -2981,6 +2982,12 @@ declare type EditableTableVisualizationOptions<R extends RecordType, _Filters ex
2981
2982
  * Rejection sets an error on the edited column.
2982
2983
  */
2983
2984
  onCellChange: (updatedItem: R) => Promise<void | Record<string, string>>;
2985
+ /** 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. */
2986
+ onAddRow?: (parentItem?: R) => void | Promise<void>;
2987
+ /** Custom label for the root-level "Add row" button. Falls back to the default i18n translation. */
2988
+ addRowButtonLabel?: string;
2989
+ /** Custom label for the nested-row "Add row" button. Falls back to the default i18n translation. */
2990
+ nestedAddRowButtonLabel?: string;
2984
2991
  };
2985
2992
 
2986
2993
  declare type EditableTableVisualizationSettings = TableVisualizationSettings;
@@ -5854,6 +5861,7 @@ export declare interface RichTextEditorProps {
5854
5861
  secondaryAction?: secondaryActionsType;
5855
5862
  primaryAction?: primaryActionType;
5856
5863
  onChange: (result: resultType) => void;
5864
+ onBlur?: () => void;
5857
5865
  maxCharacters?: number;
5858
5866
  placeholder: string;
5859
5867
  initialEditorState?: {
@@ -5867,6 +5875,10 @@ export declare interface RichTextEditorProps {
5867
5875
  onFullscreenChange?: (fullscreen: boolean) => void;
5868
5876
  /** Whether the editor is disabled */
5869
5877
  disabled?: boolean;
5878
+ /** Whether the editor has an error state */
5879
+ error?: boolean;
5880
+ /** Whether the editor is in a loading state */
5881
+ loading?: boolean;
5870
5882
  dataTestId?: string;
5871
5883
  }
5872
5884