@factorialco/f0-react 1.281.0 → 1.283.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.
@@ -1337,13 +1337,7 @@ export declare const ChartWidgetEmptyState: ForwardRefExoticComponent<Props_5 &
1337
1337
 
1338
1338
  export declare type ChatWidgetEmptyStateProps = Props_5;
1339
1339
 
1340
- declare type ChildrenResponse<R extends RecordType> = BaseResponse<R> | R[] | {
1341
- records: R[] & {
1342
- type?: ChildrenResponseType;
1343
- };
1344
- };
1345
-
1346
- declare type ChildrenResponseType = "basic" | "detailed";
1340
+ declare type ChildrenResponse<R extends RecordType> = BaseResponse<R> | R[] | NestedResponseWithType<R>;
1347
1341
 
1348
1342
  export declare function ClockInControls({ trackedMinutes, remainingMinutes, data, labels, locationId, locations, canShowLocation, locationSelectorDisabled, onClockIn, onClockOut, onBreak, breakTypes, onChangeBreakTypeId, canShowBreakButton, canSeeGraph, canSeeRemainingTime, onChangeLocationId, canShowProject, projectSelectorElement, breakTypeName, }: ClockInControlsProps): JSX_2.Element;
1349
1343
 
@@ -3896,6 +3890,13 @@ declare type NestedKeyOf<T> = {
3896
3890
  } ? `${K}` | `${K}-${NestedKeyOf<T[K]>}` : `${K}-${NestedKeyOf<T[K]>}` : K extends "DEFAULT" ? never : `${K}`;
3897
3891
  }[keyof T & string];
3898
3892
 
3893
+ declare type NestedResponseWithType<R extends RecordType> = {
3894
+ records: R[];
3895
+ type?: NestedVariant;
3896
+ };
3897
+
3898
+ declare type NestedVariant = "basic" | "detailed";
3899
+
3899
3900
  declare type NewColor = Extract<BaseColor, "viridian" | "malibu" | "yellow" | "purple" | "lilac" | "barbie" | "smoke" | "army" | "flubber" | "indigo" | "camel">;
3900
3901
 
3901
3902
  declare type NextDepth<T> = T extends 1 ? 2 : T extends 2 ? 3 : T extends 3 ? 4 : never;
@@ -6130,31 +6131,6 @@ declare global {
6130
6131
  }
6131
6132
 
6132
6133
 
6133
- declare module "gridstack" {
6134
- interface GridStackWidget {
6135
- id?: string;
6136
- allowedSizes?: Array<{
6137
- w: number;
6138
- h: number;
6139
- }>;
6140
- renderFn?: () => React.ReactElement | null;
6141
- meta?: Record<string, unknown>;
6142
- }
6143
- interface GridStackNode {
6144
- id?: string;
6145
- w?: number;
6146
- h?: number;
6147
- x?: number;
6148
- y?: number;
6149
- allowedSizes?: Array<{
6150
- w: number;
6151
- h: number;
6152
- }>;
6153
- renderFn?: () => React.ReactElement | null;
6154
- }
6155
- }
6156
-
6157
-
6158
6134
  declare module "@tiptap/core" {
6159
6135
  interface Commands<ReturnType> {
6160
6136
  aiBlock: {
@@ -6182,6 +6158,31 @@ declare module "@tiptap/core" {
6182
6158
  }
6183
6159
 
6184
6160
 
6161
+ declare module "gridstack" {
6162
+ interface GridStackWidget {
6163
+ id?: string;
6164
+ allowedSizes?: Array<{
6165
+ w: number;
6166
+ h: number;
6167
+ }>;
6168
+ renderFn?: () => React.ReactElement | null;
6169
+ meta?: Record<string, unknown>;
6170
+ }
6171
+ interface GridStackNode {
6172
+ id?: string;
6173
+ w?: number;
6174
+ h?: number;
6175
+ x?: number;
6176
+ y?: number;
6177
+ allowedSizes?: Array<{
6178
+ w: number;
6179
+ h: number;
6180
+ }>;
6181
+ renderFn?: () => React.ReactElement | null;
6182
+ }
6183
+ }
6184
+
6185
+
6185
6186
  declare namespace Calendar {
6186
6187
  var displayName: string;
6187
6188
  }