@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.
- package/dist/experimental.d.ts +42 -29
- package/dist/experimental.js +9024 -9010
- package/dist/f0.d.ts +42 -29
- package/dist/i18n-provider-defaults.d.ts +25 -25
- package/dist/styles.css +1 -1
- package/package.json +1 -1
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
|
|
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
|
|
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
|
|
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"> & {
|
|
@@ -3208,7 +3221,7 @@ declare type NestedKeyOf<T> = {
|
|
|
3208
3221
|
declare type NestedResponseWithType<R extends RecordType> = {
|
|
3209
3222
|
records: R[];
|
|
3210
3223
|
type?: NestedVariant;
|
|
3211
|
-
paginationInfo?: ChildrenPaginationInfo
|
|
3224
|
+
paginationInfo?: ChildrenPaginationInfo;
|
|
3212
3225
|
};
|
|
3213
3226
|
|
|
3214
3227
|
declare type NestedVariant = "basic" | "detailed";
|
|
@@ -4506,31 +4519,6 @@ declare global {
|
|
|
4506
4519
|
}
|
|
4507
4520
|
|
|
4508
4521
|
|
|
4509
|
-
declare module "gridstack" {
|
|
4510
|
-
interface GridStackWidget {
|
|
4511
|
-
id?: string;
|
|
4512
|
-
allowedSizes?: Array<{
|
|
4513
|
-
w: number;
|
|
4514
|
-
h: number;
|
|
4515
|
-
}>;
|
|
4516
|
-
renderFn?: () => React.ReactElement | null;
|
|
4517
|
-
meta?: Record<string, unknown>;
|
|
4518
|
-
}
|
|
4519
|
-
interface GridStackNode {
|
|
4520
|
-
id?: string;
|
|
4521
|
-
w?: number;
|
|
4522
|
-
h?: number;
|
|
4523
|
-
x?: number;
|
|
4524
|
-
y?: number;
|
|
4525
|
-
allowedSizes?: Array<{
|
|
4526
|
-
w: number;
|
|
4527
|
-
h: number;
|
|
4528
|
-
}>;
|
|
4529
|
-
renderFn?: () => React.ReactElement | null;
|
|
4530
|
-
}
|
|
4531
|
-
}
|
|
4532
|
-
|
|
4533
|
-
|
|
4534
4522
|
declare module "@tiptap/core" {
|
|
4535
4523
|
interface Commands<ReturnType> {
|
|
4536
4524
|
aiBlock: {
|
|
@@ -4558,6 +4546,31 @@ declare module "@tiptap/core" {
|
|
|
4558
4546
|
}
|
|
4559
4547
|
|
|
4560
4548
|
|
|
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
|
+
}
|
|
4571
|
+
}
|
|
4572
|
+
|
|
4573
|
+
|
|
4561
4574
|
declare module "@tiptap/core" {
|
|
4562
4575
|
interface Commands<ReturnType> {
|
|
4563
4576
|
moodTracker: {
|
|
@@ -453,31 +453,6 @@ declare global {
|
|
|
453
453
|
}
|
|
454
454
|
|
|
455
455
|
|
|
456
|
-
declare module "gridstack" {
|
|
457
|
-
interface GridStackWidget {
|
|
458
|
-
id?: string;
|
|
459
|
-
allowedSizes?: Array<{
|
|
460
|
-
w: number;
|
|
461
|
-
h: number;
|
|
462
|
-
}>;
|
|
463
|
-
renderFn?: () => React.ReactElement | null;
|
|
464
|
-
meta?: Record<string, unknown>;
|
|
465
|
-
}
|
|
466
|
-
interface GridStackNode {
|
|
467
|
-
id?: string;
|
|
468
|
-
w?: number;
|
|
469
|
-
h?: number;
|
|
470
|
-
x?: number;
|
|
471
|
-
y?: number;
|
|
472
|
-
allowedSizes?: Array<{
|
|
473
|
-
w: number;
|
|
474
|
-
h: number;
|
|
475
|
-
}>;
|
|
476
|
-
renderFn?: () => React.ReactElement | null;
|
|
477
|
-
}
|
|
478
|
-
}
|
|
479
|
-
|
|
480
|
-
|
|
481
456
|
declare module "@tiptap/core" {
|
|
482
457
|
interface Commands<ReturnType> {
|
|
483
458
|
aiBlock: {
|
|
@@ -505,6 +480,31 @@ declare module "@tiptap/core" {
|
|
|
505
480
|
}
|
|
506
481
|
|
|
507
482
|
|
|
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
|
+
}
|
|
505
|
+
}
|
|
506
|
+
|
|
507
|
+
|
|
508
508
|
declare module "@tiptap/core" {
|
|
509
509
|
interface Commands<ReturnType> {
|
|
510
510
|
moodTracker: {
|