@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.
package/dist/f0.d.ts CHANGED
@@ -920,7 +920,9 @@ declare interface CheckboxProps extends DataAttributes_2 {
920
920
  name?: string;
921
921
  }
922
922
 
923
- declare type ChildrenResponse<R extends RecordType> = BaseResponse<R> | R[] | NestedResponseWithType<R>;
923
+ declare type ChildrenPaginationInfo<R extends RecordType> = Omit<InfiniteScrollPaginatedResponse<R>, "type" | "records">;
924
+
925
+ declare type ChildrenResponse<R extends RecordType> = NestedResponseWithType<R>;
924
926
 
925
927
  declare type ChipLabel = {
926
928
  label: string;
@@ -1308,11 +1310,11 @@ export declare type DataSourceDefinition<R extends RecordType = RecordType, Filt
1308
1310
  currentGrouping?: GroupingState<R, Grouping>;
1309
1311
  /*******************************************************/
1310
1312
  /***** NESTED RECORDS ***************************************************/
1311
- fetchChildren?: (item: R, filters?: FiltersState<FiltersDefinition>) => Promise<ChildrenResponse<R>>;
1313
+ fetchChildren?: (item: R, filters?: FiltersState<FiltersDefinition>, pagination?: ChildrenPaginationInfo<R>) => Promise<ChildrenResponse<R>>;
1312
1314
  /** Function to determine if an item has children */
1313
1315
  itemsWithChildren?: (item: R) => boolean;
1314
1316
  /** Function to get the number of children for an item */
1315
- childrenCount?: (item: R) => number | undefined;
1317
+ childrenCount?: (item: R, pagination?: ChildrenPaginationInfo<R>) => number | undefined;
1316
1318
  };
1317
1319
 
1318
1320
  export declare type DateFilterDefinition = BaseFilterDefinition<"date"> & {
@@ -3114,6 +3116,7 @@ declare type NestedKeyOf<T> = {
3114
3116
  declare type NestedResponseWithType<R extends RecordType> = {
3115
3117
  records: R[];
3116
3118
  type?: NestedVariant;
3119
+ paginationInfo?: ChildrenPaginationInfo<R>;
3117
3120
  };
3118
3121
 
3119
3122
  declare type NestedVariant = "basic" | "detailed";
@@ -4459,11 +4462,6 @@ declare module "gridstack" {
4459
4462
  }
4460
4463
 
4461
4464
 
4462
- declare namespace Calendar {
4463
- var displayName: string;
4464
- }
4465
-
4466
-
4467
4465
  declare module "@tiptap/core" {
4468
4466
  interface Commands<ReturnType> {
4469
4467
  moodTracker: {
@@ -4471,3 +4469,8 @@ declare module "@tiptap/core" {
4471
4469
  };
4472
4470
  }
4473
4471
  }
4472
+
4473
+
4474
+ declare namespace Calendar {
4475
+ var displayName: string;
4476
+ }
@@ -495,11 +495,6 @@ declare module "gridstack" {
495
495
  }
496
496
 
497
497
 
498
- declare namespace Calendar {
499
- var displayName: string;
500
- }
501
-
502
-
503
498
  declare module "@tiptap/core" {
504
499
  interface Commands<ReturnType> {
505
500
  moodTracker: {
@@ -507,3 +502,8 @@ declare module "@tiptap/core" {
507
502
  };
508
503
  }
509
504
  }
505
+
506
+
507
+ declare namespace Calendar {
508
+ var displayName: string;
509
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@factorialco/f0-react",
3
- "version": "1.289.0",
3
+ "version": "1.290.0",
4
4
  "main": "dist/f0.js",
5
5
  "typings": "dist/f0.d.ts",
6
6
  "private": false,