@factorialco/f0-react 1.252.2 → 1.252.3

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.
@@ -1673,16 +1673,16 @@ export declare type DataCollectionSourceDefinition<R extends RecordType = Record
1673
1673
  /**
1674
1674
  * The status of the data collection
1675
1675
  */
1676
- declare type DataCollectionStatus = {
1676
+ declare type DataCollectionStatus<CurrentFiltersState extends FiltersState<FiltersDefinition>> = {
1677
1677
  grouping?: GroupingState<RecordType, GroupingDefinition<RecordType>>;
1678
1678
  sortings?: SortingsState<SortingsDefinition>;
1679
- filters?: FiltersState<FiltersDefinition>;
1679
+ filters?: CurrentFiltersState;
1680
1680
  search?: string | undefined;
1681
1681
  navigationFilters?: NavigationFiltersState<NavigationFiltersDefinition>;
1682
1682
  visualization?: number;
1683
1683
  };
1684
1684
 
1685
- declare type DataCollectionStatusComplete = DataCollectionStatus & {
1685
+ declare type DataCollectionStatusComplete<CurrentFiltersState extends FiltersState<FiltersDefinition>> = DataCollectionStatus<CurrentFiltersState> & {
1686
1686
  settings?: DataCollectionSettings;
1687
1687
  };
1688
1688
 
@@ -3710,7 +3710,7 @@ declare type OneDataCollectionProps<R extends RecordType, Filters extends Filter
3710
3710
  onTotalItemsChange?: (totalItems: number) => void;
3711
3711
  fullHeight?: boolean;
3712
3712
  /** Function to handle state change */
3713
- onStateChange?: (state: DataCollectionStatusComplete) => void;
3713
+ onStateChange?: (state: DataCollectionStatusComplete<FiltersState<Filters>>) => void;
3714
3714
  /** Key for the data collection settings and state, must be unique for each data collection and contain the version e.g. "employees/v1"
3715
3715
  */
3716
3716
  id?: string;
@@ -5634,8 +5634,8 @@ declare global {
5634
5634
 
5635
5635
  declare module "@tiptap/core" {
5636
5636
  interface Commands<ReturnType> {
5637
- liveCompanion: {
5638
- insertLiveCompanion: (data: LiveCompanionData, config?: LiveCompanionConfig) => ReturnType;
5637
+ aiBlock: {
5638
+ insertAIBlock: (data: AIBlockData, config: AIBlockConfigWithLabels) => ReturnType;
5639
5639
  };
5640
5640
  }
5641
5641
  }
@@ -5643,8 +5643,8 @@ declare module "@tiptap/core" {
5643
5643
 
5644
5644
  declare module "@tiptap/core" {
5645
5645
  interface Commands<ReturnType> {
5646
- aiBlock: {
5647
- insertAIBlock: (data: AIBlockData, config: AIBlockConfigWithLabels) => ReturnType;
5646
+ liveCompanion: {
5647
+ insertLiveCompanion: (data: LiveCompanionData, config?: LiveCompanionConfig) => ReturnType;
5648
5648
  };
5649
5649
  }
5650
5650
  }
@@ -5659,11 +5659,6 @@ declare module "@tiptap/core" {
5659
5659
  }
5660
5660
 
5661
5661
 
5662
- declare namespace Calendar {
5663
- var displayName: string;
5664
- }
5665
-
5666
-
5667
5662
  declare module "@tiptap/core" {
5668
5663
  interface Commands<ReturnType> {
5669
5664
  moodTracker: {
@@ -5671,3 +5666,8 @@ declare module "@tiptap/core" {
5671
5666
  };
5672
5667
  }
5673
5668
  }
5669
+
5670
+
5671
+ declare namespace Calendar {
5672
+ var displayName: string;
5673
+ }
package/dist/f0.d.ts CHANGED
@@ -1146,22 +1146,22 @@ declare type DataCollectionSourceDefinition<R extends RecordType = RecordType, F
1146
1146
  /**
1147
1147
  * The status of the data collection
1148
1148
  */
1149
- declare type DataCollectionStatus = {
1149
+ declare type DataCollectionStatus<CurrentFiltersState extends FiltersState<FiltersDefinition>> = {
1150
1150
  grouping?: GroupingState<RecordType, GroupingDefinition<RecordType>>;
1151
1151
  sortings?: SortingsState<SortingsDefinition>;
1152
- filters?: FiltersState<FiltersDefinition>;
1152
+ filters?: CurrentFiltersState;
1153
1153
  search?: string | undefined;
1154
1154
  navigationFilters?: NavigationFiltersState<NavigationFiltersDefinition>;
1155
1155
  visualization?: number;
1156
1156
  };
1157
1157
 
1158
- export declare type DataCollectionStorage = {
1158
+ export declare type DataCollectionStorage<CurrentFiltersState extends FiltersState<FiltersDefinition> = FiltersState<FiltersDefinition>> = {
1159
1159
  settings?: DataCollectionSettings;
1160
- } & DataCollectionStatus;
1160
+ } & DataCollectionStatus<CurrentFiltersState>;
1161
1161
 
1162
- export declare type DataCollectionStorageHandler = {
1163
- get: (key: string) => Promise<DataCollectionStorage>;
1164
- set: (key: string, storage: DataCollectionStorage) => Promise<void>;
1162
+ export declare type DataCollectionStorageHandler<CurrentFiltersState extends FiltersState<FiltersDefinition> = FiltersState<FiltersDefinition>> = {
1163
+ get: (key: string) => Promise<DataCollectionStorage<CurrentFiltersState>>;
1164
+ set: (key: string, storage: DataCollectionStorage<CurrentFiltersState>) => Promise<void>;
1165
1165
  };
1166
1166
 
1167
1167
  /**
@@ -3900,8 +3900,8 @@ declare global {
3900
3900
 
3901
3901
  declare module "@tiptap/core" {
3902
3902
  interface Commands<ReturnType> {
3903
- liveCompanion: {
3904
- insertLiveCompanion: (data: LiveCompanionData, config?: LiveCompanionConfig) => ReturnType;
3903
+ aiBlock: {
3904
+ insertAIBlock: (data: AIBlockData, config: AIBlockConfigWithLabels) => ReturnType;
3905
3905
  };
3906
3906
  }
3907
3907
  }
@@ -3909,8 +3909,8 @@ declare module "@tiptap/core" {
3909
3909
 
3910
3910
  declare module "@tiptap/core" {
3911
3911
  interface Commands<ReturnType> {
3912
- aiBlock: {
3913
- insertAIBlock: (data: AIBlockData, config: AIBlockConfigWithLabels) => ReturnType;
3912
+ liveCompanion: {
3913
+ insertLiveCompanion: (data: LiveCompanionData, config?: LiveCompanionConfig) => ReturnType;
3914
3914
  };
3915
3915
  }
3916
3916
  }
@@ -3925,11 +3925,6 @@ declare module "@tiptap/core" {
3925
3925
  }
3926
3926
 
3927
3927
 
3928
- declare namespace Calendar {
3929
- var displayName: string;
3930
- }
3931
-
3932
-
3933
3928
  declare module "@tiptap/core" {
3934
3929
  interface Commands<ReturnType> {
3935
3930
  moodTracker: {
@@ -3937,3 +3932,8 @@ declare module "@tiptap/core" {
3937
3932
  };
3938
3933
  }
3939
3934
  }
3935
+
3936
+
3937
+ declare namespace Calendar {
3938
+ var displayName: string;
3939
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@factorialco/f0-react",
3
- "version": "1.252.2",
3
+ "version": "1.252.3",
4
4
  "main": "dist/f0.js",
5
5
  "typings": "dist/f0.d.ts",
6
6
  "private": false,