@factorialco/f0-react 1.390.2 → 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/f0.d.ts CHANGED
@@ -2389,6 +2389,7 @@ export declare const defaultTranslations: {
2389
2389
  readonly errors: {
2390
2390
  readonly saveFailed: "Save failed";
2391
2391
  };
2392
+ readonly addRow: "Add row";
2392
2393
  };
2393
2394
  readonly itemsCount: "items";
2394
2395
  readonly emptyStates: {
@@ -2865,6 +2866,12 @@ declare type EditableTableVisualizationOptions<R extends RecordType, _Filters ex
2865
2866
  * Rejection sets an error on the edited column.
2866
2867
  */
2867
2868
  onCellChange: (updatedItem: R) => Promise<void | Record<string, string>>;
2869
+ /** 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. */
2870
+ onAddRow?: (parentItem?: R) => void | Promise<void>;
2871
+ /** Custom label for the root-level "Add row" button. Falls back to the default i18n translation. */
2872
+ addRowButtonLabel?: string;
2873
+ /** Custom label for the nested-row "Add row" button. Falls back to the default i18n translation. */
2874
+ nestedAddRowButtonLabel?: string;
2868
2875
  };
2869
2876
 
2870
2877
  declare type EditableTableVisualizationSettings = TableVisualizationSettings;
@@ -8700,6 +8707,11 @@ declare module "gridstack" {
8700
8707
  }
8701
8708
 
8702
8709
 
8710
+ declare namespace Calendar {
8711
+ var displayName: string;
8712
+ }
8713
+
8714
+
8703
8715
  declare module "@tiptap/core" {
8704
8716
  interface Commands<ReturnType> {
8705
8717
  aiBlock: {
@@ -8731,10 +8743,8 @@ declare module "@tiptap/core" {
8731
8743
 
8732
8744
  declare module "@tiptap/core" {
8733
8745
  interface Commands<ReturnType> {
8734
- videoEmbed: {
8735
- setVideoEmbed: (options: {
8736
- src: string;
8737
- }) => ReturnType;
8746
+ transcript: {
8747
+ insertTranscript: (data: TranscriptData) => ReturnType;
8738
8748
  };
8739
8749
  }
8740
8750
  }
@@ -8742,13 +8752,10 @@ declare module "@tiptap/core" {
8742
8752
 
8743
8753
  declare module "@tiptap/core" {
8744
8754
  interface Commands<ReturnType> {
8745
- transcript: {
8746
- insertTranscript: (data: TranscriptData) => ReturnType;
8755
+ videoEmbed: {
8756
+ setVideoEmbed: (options: {
8757
+ src: string;
8758
+ }) => ReturnType;
8747
8759
  };
8748
8760
  }
8749
8761
  }
8750
-
8751
-
8752
- declare namespace Calendar {
8753
- var displayName: string;
8754
- }
@@ -249,6 +249,7 @@ export declare const defaultTranslations: {
249
249
  readonly errors: {
250
250
  readonly saveFailed: "Save failed";
251
251
  };
252
+ readonly addRow: "Add row";
252
253
  };
253
254
  readonly itemsCount: "items";
254
255
  readonly emptyStates: {
@@ -645,6 +646,11 @@ declare module "gridstack" {
645
646
  }
646
647
 
647
648
 
649
+ declare namespace Calendar {
650
+ var displayName: string;
651
+ }
652
+
653
+
648
654
  declare module "@tiptap/core" {
649
655
  interface Commands<ReturnType> {
650
656
  aiBlock: {
@@ -676,10 +682,8 @@ declare module "@tiptap/core" {
676
682
 
677
683
  declare module "@tiptap/core" {
678
684
  interface Commands<ReturnType> {
679
- videoEmbed: {
680
- setVideoEmbed: (options: {
681
- src: string;
682
- }) => ReturnType;
685
+ transcript: {
686
+ insertTranscript: (data: TranscriptData) => ReturnType;
683
687
  };
684
688
  }
685
689
  }
@@ -687,13 +691,10 @@ declare module "@tiptap/core" {
687
691
 
688
692
  declare module "@tiptap/core" {
689
693
  interface Commands<ReturnType> {
690
- transcript: {
691
- insertTranscript: (data: TranscriptData) => ReturnType;
694
+ videoEmbed: {
695
+ setVideoEmbed: (options: {
696
+ src: string;
697
+ }) => ReturnType;
692
698
  };
693
699
  }
694
700
  }
695
-
696
-
697
- declare namespace Calendar {
698
- var displayName: string;
699
- }
@@ -248,7 +248,8 @@ const e = {
248
248
  editableTable: {
249
249
  errors: {
250
250
  saveFailed: "Save failed"
251
- }
251
+ },
252
+ addRow: "Add row"
252
253
  },
253
254
  itemsCount: "items",
254
255
  emptyStates: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@factorialco/f0-react",
3
- "version": "1.390.2",
3
+ "version": "1.391.0",
4
4
  "main": "dist/f0.js",
5
5
  "typings": "dist/f0.d.ts",
6
6
  "private": false,