@factorialco/f0-react 1.289.0 → 1.290.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.
@@ -1353,7 +1353,9 @@ export declare const ChartWidgetEmptyState: ForwardRefExoticComponent<Props_5 &
1353
1353
 
1354
1354
  export declare type ChatWidgetEmptyStateProps = Props_5;
1355
1355
 
1356
- declare type ChildrenResponse<R extends RecordType> = BaseResponse<R> | R[] | NestedResponseWithType<R>;
1356
+ declare type ChildrenPaginationInfo<R extends RecordType> = Omit<InfiniteScrollPaginatedResponse<R>, "type" | "records">;
1357
+
1358
+ declare type ChildrenResponse<R extends RecordType> = NestedResponseWithType<R>;
1357
1359
 
1358
1360
  declare type ChipLabel = {
1359
1361
  label: string;
@@ -1905,11 +1907,11 @@ export declare type DataSourceDefinition<R extends RecordType = RecordType, Filt
1905
1907
  currentGrouping?: GroupingState<R, Grouping>;
1906
1908
  /*******************************************************/
1907
1909
  /***** NESTED RECORDS ***************************************************/
1908
- fetchChildren?: (item: R, filters?: FiltersState<FiltersDefinition>) => Promise<ChildrenResponse<R>>;
1910
+ fetchChildren?: (item: R, filters?: FiltersState<FiltersDefinition>, pagination?: ChildrenPaginationInfo<R>) => Promise<ChildrenResponse<R>>;
1909
1911
  /** Function to determine if an item has children */
1910
1912
  itemsWithChildren?: (item: R) => boolean;
1911
1913
  /** Function to get the number of children for an item */
1912
- childrenCount?: (item: R) => number | undefined;
1914
+ childrenCount?: (item: R, pagination?: ChildrenPaginationInfo<R>) => number | undefined;
1913
1915
  };
1914
1916
 
1915
1917
  export declare type DateFilterDefinition = BaseFilterDefinition<"date"> & {
@@ -3962,6 +3964,7 @@ declare type NestedKeyOf<T> = {
3962
3964
  declare type NestedResponseWithType<R extends RecordType> = {
3963
3965
  records: R[];
3964
3966
  type?: NestedVariant;
3967
+ paginationInfo?: ChildrenPaginationInfo<R>;
3965
3968
  };
3966
3969
 
3967
3970
  declare type NestedVariant = "basic" | "detailed";
@@ -6281,11 +6284,6 @@ declare module "gridstack" {
6281
6284
  }
6282
6285
 
6283
6286
 
6284
- declare namespace Calendar {
6285
- var displayName: string;
6286
- }
6287
-
6288
-
6289
6287
  declare module "@tiptap/core" {
6290
6288
  interface Commands<ReturnType> {
6291
6289
  moodTracker: {
@@ -6293,3 +6291,8 @@ declare module "@tiptap/core" {
6293
6291
  };
6294
6292
  }
6295
6293
  }
6294
+
6295
+
6296
+ declare namespace Calendar {
6297
+ var displayName: string;
6298
+ }