@factorialco/f0-react 1.291.1 → 1.293.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.
@@ -1356,7 +1356,13 @@ export declare const ChartWidgetEmptyState: ForwardRefExoticComponent<Props_5 &
1356
1356
 
1357
1357
  export declare type ChatWidgetEmptyStateProps = Props_5;
1358
1358
 
1359
- declare type ChildrenPaginationInfo<R extends RecordType> = Omit<InfiniteScrollPaginatedResponse<R>, "type" | "records">;
1359
+ declare type ChildrenPaginationInfo = {
1360
+ total: number;
1361
+ perPage: number;
1362
+ currentPage: number;
1363
+ pagesCount: number;
1364
+ hasMore: boolean;
1365
+ };
1360
1366
 
1361
1367
  declare type ChildrenResponse<R extends RecordType> = NestedResponseWithType<R>;
1362
1368
 
@@ -1910,11 +1916,18 @@ export declare type DataSourceDefinition<R extends RecordType = RecordType, Filt
1910
1916
  currentGrouping?: GroupingState<R, Grouping>;
1911
1917
  /*******************************************************/
1912
1918
  /***** NESTED RECORDS ***************************************************/
1913
- fetchChildren?: (item: R, filters?: FiltersState<FiltersDefinition>, pagination?: ChildrenPaginationInfo<R>) => Promise<ChildrenResponse<R>>;
1919
+ fetchChildren?: ({ item, filters, pagination, }: {
1920
+ item: R;
1921
+ filters?: FiltersState<Filters>;
1922
+ pagination?: ChildrenPaginationInfo;
1923
+ }) => Promise<ChildrenResponse<R>>;
1914
1924
  /** Function to determine if an item has children */
1915
1925
  itemsWithChildren?: (item: R) => boolean;
1916
1926
  /** Function to get the number of children for an item */
1917
- childrenCount?: (item: R, pagination?: ChildrenPaginationInfo<R>) => number | undefined;
1927
+ childrenCount?: ({ item, pagination, }: {
1928
+ item: R;
1929
+ pagination?: ChildrenPaginationInfo;
1930
+ }) => number | undefined;
1918
1931
  };
1919
1932
 
1920
1933
  export declare type DateFilterDefinition = BaseFilterDefinition<"date"> & {
@@ -2391,6 +2404,8 @@ declare const defaultTranslations: {
2391
2404
  readonly thoughtsGroupTitle: "Reflection";
2392
2405
  readonly resourcesGroupTitle: "Resources";
2393
2406
  readonly thinking: "Thinking...";
2407
+ readonly exportTable: "Download table";
2408
+ readonly generatedTableFilename: "OneGeneratedTable";
2394
2409
  readonly feedbackModal: {
2395
2410
  readonly positive: {
2396
2411
  readonly title: "What did you like about this response?";
@@ -4047,7 +4062,7 @@ declare type NestedKeyOf<T> = {
4047
4062
  declare type NestedResponseWithType<R extends RecordType> = {
4048
4063
  records: R[];
4049
4064
  type?: NestedVariant;
4050
- paginationInfo?: ChildrenPaginationInfo<R>;
4065
+ paginationInfo?: ChildrenPaginationInfo;
4051
4066
  };
4052
4067
 
4053
4068
  declare type NestedVariant = "basic" | "detailed";
@@ -6267,31 +6282,6 @@ declare global {
6267
6282
  }
6268
6283
 
6269
6284
 
6270
- declare module "gridstack" {
6271
- interface GridStackWidget {
6272
- id?: string;
6273
- allowedSizes?: Array<{
6274
- w: number;
6275
- h: number;
6276
- }>;
6277
- renderFn?: () => React.ReactElement | null;
6278
- meta?: Record<string, unknown>;
6279
- }
6280
- interface GridStackNode {
6281
- id?: string;
6282
- w?: number;
6283
- h?: number;
6284
- x?: number;
6285
- y?: number;
6286
- allowedSizes?: Array<{
6287
- w: number;
6288
- h: number;
6289
- }>;
6290
- renderFn?: () => React.ReactElement | null;
6291
- }
6292
- }
6293
-
6294
-
6295
6285
  declare module "@tiptap/core" {
6296
6286
  interface Commands<ReturnType> {
6297
6287
  aiBlock: {
@@ -6319,8 +6309,28 @@ declare module "@tiptap/core" {
6319
6309
  }
6320
6310
 
6321
6311
 
6322
- declare namespace Calendar {
6323
- var displayName: string;
6312
+ declare module "gridstack" {
6313
+ interface GridStackWidget {
6314
+ id?: string;
6315
+ allowedSizes?: Array<{
6316
+ w: number;
6317
+ h: number;
6318
+ }>;
6319
+ renderFn?: () => React.ReactElement | null;
6320
+ meta?: Record<string, unknown>;
6321
+ }
6322
+ interface GridStackNode {
6323
+ id?: string;
6324
+ w?: number;
6325
+ h?: number;
6326
+ x?: number;
6327
+ y?: number;
6328
+ allowedSizes?: Array<{
6329
+ w: number;
6330
+ h: number;
6331
+ }>;
6332
+ renderFn?: () => React.ReactElement | null;
6333
+ }
6324
6334
  }
6325
6335
 
6326
6336
 
@@ -6331,3 +6341,8 @@ declare module "@tiptap/core" {
6331
6341
  };
6332
6342
  }
6333
6343
  }
6344
+
6345
+
6346
+ declare namespace Calendar {
6347
+ var displayName: string;
6348
+ }