@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.
package/dist/f0.d.ts CHANGED
@@ -929,7 +929,13 @@ declare interface CheckboxProps extends DataAttributes_2 {
929
929
  name?: string;
930
930
  }
931
931
 
932
- declare type ChildrenPaginationInfo<R extends RecordType> = Omit<InfiniteScrollPaginatedResponse<R>, "type" | "records">;
932
+ declare type ChildrenPaginationInfo = {
933
+ total: number;
934
+ perPage: number;
935
+ currentPage: number;
936
+ pagesCount: number;
937
+ hasMore: boolean;
938
+ };
933
939
 
934
940
  declare type ChildrenResponse<R extends RecordType> = NestedResponseWithType<R>;
935
941
 
@@ -1319,11 +1325,18 @@ export declare type DataSourceDefinition<R extends RecordType = RecordType, Filt
1319
1325
  currentGrouping?: GroupingState<R, Grouping>;
1320
1326
  /*******************************************************/
1321
1327
  /***** NESTED RECORDS ***************************************************/
1322
- fetchChildren?: (item: R, filters?: FiltersState<FiltersDefinition>, pagination?: ChildrenPaginationInfo<R>) => Promise<ChildrenResponse<R>>;
1328
+ fetchChildren?: ({ item, filters, pagination, }: {
1329
+ item: R;
1330
+ filters?: FiltersState<Filters>;
1331
+ pagination?: ChildrenPaginationInfo;
1332
+ }) => Promise<ChildrenResponse<R>>;
1323
1333
  /** Function to determine if an item has children */
1324
1334
  itemsWithChildren?: (item: R) => boolean;
1325
1335
  /** Function to get the number of children for an item */
1326
- childrenCount?: (item: R, pagination?: ChildrenPaginationInfo<R>) => number | undefined;
1336
+ childrenCount?: ({ item, pagination, }: {
1337
+ item: R;
1338
+ pagination?: ChildrenPaginationInfo;
1339
+ }) => number | undefined;
1327
1340
  };
1328
1341
 
1329
1342
  export declare type DateFilterDefinition = BaseFilterDefinition<"date"> & {
@@ -1767,6 +1780,8 @@ export declare const defaultTranslations: {
1767
1780
  readonly thoughtsGroupTitle: "Reflection";
1768
1781
  readonly resourcesGroupTitle: "Resources";
1769
1782
  readonly thinking: "Thinking...";
1783
+ readonly exportTable: "Download table";
1784
+ readonly generatedTableFilename: "OneGeneratedTable";
1770
1785
  readonly feedbackModal: {
1771
1786
  readonly positive: {
1772
1787
  readonly title: "What did you like about this response?";
@@ -3206,7 +3221,7 @@ declare type NestedKeyOf<T> = {
3206
3221
  declare type NestedResponseWithType<R extends RecordType> = {
3207
3222
  records: R[];
3208
3223
  type?: NestedVariant;
3209
- paginationInfo?: ChildrenPaginationInfo<R>;
3224
+ paginationInfo?: ChildrenPaginationInfo;
3210
3225
  };
3211
3226
 
3212
3227
  declare type NestedVariant = "basic" | "detailed";
@@ -4504,31 +4519,6 @@ declare global {
4504
4519
  }
4505
4520
 
4506
4521
 
4507
- declare module "gridstack" {
4508
- interface GridStackWidget {
4509
- id?: string;
4510
- allowedSizes?: Array<{
4511
- w: number;
4512
- h: number;
4513
- }>;
4514
- renderFn?: () => React.ReactElement | null;
4515
- meta?: Record<string, unknown>;
4516
- }
4517
- interface GridStackNode {
4518
- id?: string;
4519
- w?: number;
4520
- h?: number;
4521
- x?: number;
4522
- y?: number;
4523
- allowedSizes?: Array<{
4524
- w: number;
4525
- h: number;
4526
- }>;
4527
- renderFn?: () => React.ReactElement | null;
4528
- }
4529
- }
4530
-
4531
-
4532
4522
  declare module "@tiptap/core" {
4533
4523
  interface Commands<ReturnType> {
4534
4524
  aiBlock: {
@@ -4556,8 +4546,28 @@ declare module "@tiptap/core" {
4556
4546
  }
4557
4547
 
4558
4548
 
4559
- declare namespace Calendar {
4560
- var displayName: string;
4549
+ declare module "gridstack" {
4550
+ interface GridStackWidget {
4551
+ id?: string;
4552
+ allowedSizes?: Array<{
4553
+ w: number;
4554
+ h: number;
4555
+ }>;
4556
+ renderFn?: () => React.ReactElement | null;
4557
+ meta?: Record<string, unknown>;
4558
+ }
4559
+ interface GridStackNode {
4560
+ id?: string;
4561
+ w?: number;
4562
+ h?: number;
4563
+ x?: number;
4564
+ y?: number;
4565
+ allowedSizes?: Array<{
4566
+ w: number;
4567
+ h: number;
4568
+ }>;
4569
+ renderFn?: () => React.ReactElement | null;
4570
+ }
4561
4571
  }
4562
4572
 
4563
4573
 
@@ -4568,3 +4578,8 @@ declare module "@tiptap/core" {
4568
4578
  };
4569
4579
  }
4570
4580
  }
4581
+
4582
+
4583
+ declare namespace Calendar {
4584
+ var displayName: string;
4585
+ }
@@ -350,6 +350,8 @@ export declare const defaultTranslations: {
350
350
  readonly thoughtsGroupTitle: "Reflection";
351
351
  readonly resourcesGroupTitle: "Resources";
352
352
  readonly thinking: "Thinking...";
353
+ readonly exportTable: "Download table";
354
+ readonly generatedTableFilename: "OneGeneratedTable";
353
355
  readonly feedbackModal: {
354
356
  readonly positive: {
355
357
  readonly title: "What did you like about this response?";
@@ -451,31 +453,6 @@ declare global {
451
453
  }
452
454
 
453
455
 
454
- declare module "gridstack" {
455
- interface GridStackWidget {
456
- id?: string;
457
- allowedSizes?: Array<{
458
- w: number;
459
- h: number;
460
- }>;
461
- renderFn?: () => React.ReactElement | null;
462
- meta?: Record<string, unknown>;
463
- }
464
- interface GridStackNode {
465
- id?: string;
466
- w?: number;
467
- h?: number;
468
- x?: number;
469
- y?: number;
470
- allowedSizes?: Array<{
471
- w: number;
472
- h: number;
473
- }>;
474
- renderFn?: () => React.ReactElement | null;
475
- }
476
- }
477
-
478
-
479
456
  declare module "@tiptap/core" {
480
457
  interface Commands<ReturnType> {
481
458
  aiBlock: {
@@ -503,8 +480,28 @@ declare module "@tiptap/core" {
503
480
  }
504
481
 
505
482
 
506
- declare namespace Calendar {
507
- var displayName: string;
483
+ declare module "gridstack" {
484
+ interface GridStackWidget {
485
+ id?: string;
486
+ allowedSizes?: Array<{
487
+ w: number;
488
+ h: number;
489
+ }>;
490
+ renderFn?: () => React.ReactElement | null;
491
+ meta?: Record<string, unknown>;
492
+ }
493
+ interface GridStackNode {
494
+ id?: string;
495
+ w?: number;
496
+ h?: number;
497
+ x?: number;
498
+ y?: number;
499
+ allowedSizes?: Array<{
500
+ w: number;
501
+ h: number;
502
+ }>;
503
+ renderFn?: () => React.ReactElement | null;
504
+ }
508
505
  }
509
506
 
510
507
 
@@ -515,3 +512,8 @@ declare module "@tiptap/core" {
515
512
  };
516
513
  }
517
514
  }
515
+
516
+
517
+ declare namespace Calendar {
518
+ var displayName: string;
519
+ }
@@ -350,6 +350,8 @@ const e = {
350
350
  thoughtsGroupTitle: "Reflection",
351
351
  resourcesGroupTitle: "Resources",
352
352
  thinking: "Thinking...",
353
+ exportTable: "Download table",
354
+ generatedTableFilename: "OneGeneratedTable",
353
355
  feedbackModal: {
354
356
  positive: {
355
357
  title: "What did you like about this response?",