@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/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: {
@@ -1433,6 +1434,11 @@ declare module "gridstack" {
1433
1434
  }
1434
1435
 
1435
1436
 
1437
+ declare namespace Calendar {
1438
+ var displayName: string;
1439
+ }
1440
+
1441
+
1436
1442
  declare module "@tiptap/core" {
1437
1443
  interface Commands<ReturnType> {
1438
1444
  aiBlock: {
@@ -1464,10 +1470,8 @@ declare module "@tiptap/core" {
1464
1470
 
1465
1471
  declare module "@tiptap/core" {
1466
1472
  interface Commands<ReturnType> {
1467
- videoEmbed: {
1468
- setVideoEmbed: (options: {
1469
- src: string;
1470
- }) => ReturnType;
1473
+ transcript: {
1474
+ insertTranscript: (data: TranscriptData) => ReturnType;
1471
1475
  };
1472
1476
  }
1473
1477
  }
@@ -1475,13 +1479,10 @@ declare module "@tiptap/core" {
1475
1479
 
1476
1480
  declare module "@tiptap/core" {
1477
1481
  interface Commands<ReturnType> {
1478
- transcript: {
1479
- insertTranscript: (data: TranscriptData) => ReturnType;
1482
+ videoEmbed: {
1483
+ setVideoEmbed: (options: {
1484
+ src: string;
1485
+ }) => ReturnType;
1480
1486
  };
1481
1487
  }
1482
1488
  }
1483
-
1484
-
1485
- declare namespace Calendar {
1486
- var displayName: string;
1487
- }
@@ -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;
@@ -7233,6 +7240,11 @@ declare module "gridstack" {
7233
7240
  }
7234
7241
 
7235
7242
 
7243
+ declare namespace Calendar {
7244
+ var displayName: string;
7245
+ }
7246
+
7247
+
7236
7248
  declare module "@tiptap/core" {
7237
7249
  interface Commands<ReturnType> {
7238
7250
  aiBlock: {
@@ -7264,10 +7276,8 @@ declare module "@tiptap/core" {
7264
7276
 
7265
7277
  declare module "@tiptap/core" {
7266
7278
  interface Commands<ReturnType> {
7267
- videoEmbed: {
7268
- setVideoEmbed: (options: {
7269
- src: string;
7270
- }) => ReturnType;
7279
+ transcript: {
7280
+ insertTranscript: (data: TranscriptData) => ReturnType;
7271
7281
  };
7272
7282
  }
7273
7283
  }
@@ -7275,13 +7285,10 @@ declare module "@tiptap/core" {
7275
7285
 
7276
7286
  declare module "@tiptap/core" {
7277
7287
  interface Commands<ReturnType> {
7278
- transcript: {
7279
- insertTranscript: (data: TranscriptData) => ReturnType;
7288
+ videoEmbed: {
7289
+ setVideoEmbed: (options: {
7290
+ src: string;
7291
+ }) => ReturnType;
7280
7292
  };
7281
7293
  }
7282
7294
  }
7283
-
7284
-
7285
- declare namespace Calendar {
7286
- var displayName: string;
7287
- }