@factorialco/f0-react 1.292.0 → 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"> & {
@@ -4049,7 +4062,7 @@ declare type NestedKeyOf<T> = {
4049
4062
  declare type NestedResponseWithType<R extends RecordType> = {
4050
4063
  records: R[];
4051
4064
  type?: NestedVariant;
4052
- paginationInfo?: ChildrenPaginationInfo<R>;
4065
+ paginationInfo?: ChildrenPaginationInfo;
4053
4066
  };
4054
4067
 
4055
4068
  declare type NestedVariant = "basic" | "detailed";
@@ -6269,31 +6282,6 @@ declare global {
6269
6282
  }
6270
6283
 
6271
6284
 
6272
- declare module "gridstack" {
6273
- interface GridStackWidget {
6274
- id?: string;
6275
- allowedSizes?: Array<{
6276
- w: number;
6277
- h: number;
6278
- }>;
6279
- renderFn?: () => React.ReactElement | null;
6280
- meta?: Record<string, unknown>;
6281
- }
6282
- interface GridStackNode {
6283
- id?: string;
6284
- w?: number;
6285
- h?: number;
6286
- x?: number;
6287
- y?: number;
6288
- allowedSizes?: Array<{
6289
- w: number;
6290
- h: number;
6291
- }>;
6292
- renderFn?: () => React.ReactElement | null;
6293
- }
6294
- }
6295
-
6296
-
6297
6285
  declare module "@tiptap/core" {
6298
6286
  interface Commands<ReturnType> {
6299
6287
  aiBlock: {
@@ -6321,6 +6309,31 @@ declare module "@tiptap/core" {
6321
6309
  }
6322
6310
 
6323
6311
 
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
+ }
6334
+ }
6335
+
6336
+
6324
6337
  declare module "@tiptap/core" {
6325
6338
  interface Commands<ReturnType> {
6326
6339
  moodTracker: {