@factorialco/f0-react 1.252.2 → 1.253.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.
@@ -594,7 +594,7 @@ export declare const AreaChartWidget: ForwardRefExoticComponent<Omit<AreaChartWi
594
594
 
595
595
  export declare const AutoGrid: ForwardRefExoticComponent<Omit<HTMLAttributes<HTMLDivElement> & VariantProps<(props?: ({
596
596
  tileSize?: "lg" | "md" | "sm" | undefined;
597
- gap?: "2" | "4" | "8" | undefined;
597
+ gap?: "0" | "1" | "2" | "3" | "4" | "lg" | "md" | "sm" | "xl" | "5" | "6" | "7" | "8" | "9" | "10" | "11" | "12" | "14" | "16" | "px" | "0.5" | "1.5" | "2.5" | undefined;
598
598
  } & ({
599
599
  class?: ClassValue;
600
600
  className?: never;
@@ -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;
@@ -4762,7 +4762,7 @@ className?: never;
4762
4762
  class?: never;
4763
4763
  className?: ClassValue;
4764
4764
  })) | undefined) => string> & VariantProps<(props?: ({
4765
- gap?: "2" | "4" | "8" | undefined;
4765
+ gap?: "0" | "1" | "2" | "3" | "4" | "lg" | "md" | "sm" | "xl" | "5" | "6" | "7" | "8" | "9" | "10" | "11" | "12" | "14" | "16" | "px" | "0.5" | "1.5" | "2.5" | undefined;
4766
4766
  wrap?: boolean | undefined;
4767
4767
  } & ({
4768
4768
  class?: ClassValue;
@@ -4792,7 +4792,7 @@ className?: never;
4792
4792
  class?: never;
4793
4793
  className?: ClassValue;
4794
4794
  })) | undefined) => string> & VariantProps<(props?: ({
4795
- gap?: "2" | "4" | "8" | undefined;
4795
+ gap?: "0" | "1" | "2" | "3" | "4" | "lg" | "md" | "sm" | "xl" | "5" | "6" | "7" | "8" | "9" | "10" | "11" | "12" | "14" | "16" | "px" | "0.5" | "1.5" | "2.5" | undefined;
4796
4796
  } & ({
4797
4797
  class?: ClassValue;
4798
4798
  className?: never;
@@ -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
+ transcript: {
5638
+ insertTranscript: (data: TranscriptData, config?: TranscriptConfig) => ReturnType;
5639
5639
  };
5640
5640
  }
5641
5641
  }
@@ -5652,18 +5652,13 @@ declare module "@tiptap/core" {
5652
5652
 
5653
5653
  declare module "@tiptap/core" {
5654
5654
  interface Commands<ReturnType> {
5655
- transcript: {
5656
- insertTranscript: (data: TranscriptData, config?: TranscriptConfig) => ReturnType;
5655
+ liveCompanion: {
5656
+ insertLiveCompanion: (data: LiveCompanionData, config?: LiveCompanionConfig) => ReturnType;
5657
5657
  };
5658
5658
  }
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
+ }
@@ -56841,9 +56841,29 @@ const _te = ({ mentionsConfig: t, mentionSuggestions: e, setMentionSuggestions:
56841
56841
  })]
56842
56842
  });
56843
56843
  }, Jie = bt(Ate, Ote), Mg = {
56844
+ 0: "gap-0",
56845
+ px: "gap-px",
56846
+ "0.5": "gap-0.5",
56847
+ 1: "gap-1",
56848
+ "1.5": "gap-1.5",
56844
56849
  2: "gap-2",
56850
+ "2.5": "gap-2.5",
56851
+ 3: "gap-3",
56845
56852
  4: "gap-4",
56846
- 8: "gap-8"
56853
+ 5: "gap-5",
56854
+ 6: "gap-6",
56855
+ 7: "gap-7",
56856
+ 8: "gap-8",
56857
+ 9: "gap-9",
56858
+ 10: "gap-10",
56859
+ 11: "gap-11",
56860
+ 12: "gap-12",
56861
+ 14: "gap-14",
56862
+ 16: "gap-16",
56863
+ sm: "gap-1",
56864
+ md: "gap-2",
56865
+ lg: "gap-3",
56866
+ xl: "gap-4"
56847
56867
  }, Ite = hn({
56848
56868
  base: "grid grid-cols-1",
56849
56869
  variants: {
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
+ transcript: {
3904
+ insertTranscript: (data: TranscriptData, config?: TranscriptConfig) => ReturnType;
3905
3905
  };
3906
3906
  }
3907
3907
  }
@@ -3918,18 +3918,13 @@ declare module "@tiptap/core" {
3918
3918
 
3919
3919
  declare module "@tiptap/core" {
3920
3920
  interface Commands<ReturnType> {
3921
- transcript: {
3922
- insertTranscript: (data: TranscriptData, config?: TranscriptConfig) => ReturnType;
3921
+ liveCompanion: {
3922
+ insertLiveCompanion: (data: LiveCompanionData, config?: LiveCompanionConfig) => ReturnType;
3923
3923
  };
3924
3924
  }
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
+ }