@factorialco/f0-react 2.51.0 → 2.52.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
@@ -1439,7 +1439,7 @@ declare type BaseFilterDefinition<T extends FilterTypeKey> = {
1439
1439
  hideSelector?: boolean;
1440
1440
  };
1441
1441
 
1442
- declare function BaseHeader({ title, avatar, deactivated, description, primaryAction, secondaryActions, otherActions, status, metadata, showBottomBorder, }: BaseHeaderProps_2): JSX_2.Element;
1442
+ declare function BaseHeader({ title, avatar, deactivated, description, primaryAction, secondaryActions, otherActions, status, metadata, metadataRowGap, showBottomBorder, }: BaseHeaderProps_2): JSX_2.Element;
1443
1443
 
1444
1444
  declare type BaseHeaderProps = ComponentProps<typeof BaseHeader>;
1445
1445
 
@@ -1464,6 +1464,7 @@ declare interface BaseHeaderProps_2 {
1464
1464
  actions?: MetadataAction[];
1465
1465
  };
1466
1466
  metadata?: MetadataProps["items"];
1467
+ metadataRowGap?: MetadataProps["rowGap"];
1467
1468
  /** Renders a 1px bottom border at the very bottom of the header. */
1468
1469
  showBottomBorder?: boolean;
1469
1470
  }
@@ -5051,6 +5052,19 @@ declare type DialogAlikePosition = (typeof dialogAlikePositions)[number];
5051
5052
 
5052
5053
  declare const dialogAlikePositions: readonly ["center", "left", "right", "fullscreen"];
5053
5054
 
5055
+ export declare type DialogControls = {
5056
+ kind: "resource";
5057
+ expand?: {
5058
+ label: string;
5059
+ onClick: () => void;
5060
+ };
5061
+ navigation?: NavigationProps;
5062
+ } | {
5063
+ kind: "back";
5064
+ label: string;
5065
+ onClick: () => void;
5066
+ };
5067
+
5054
5068
  export declare type DialogPosition = (typeof dialogPositions)[number];
5055
5069
 
5056
5070
  declare const dialogPositions: readonly ["center", "left", "right", "fullscreen"];
@@ -11992,8 +12006,11 @@ declare interface MetadataProps {
11992
12006
  * If true and the metadata type is a list, it will be collapsed to the first item
11993
12007
  */
11994
12008
  collapse?: boolean;
12009
+ rowGap?: MetadataRowGap;
11995
12010
  }
11996
12011
 
12012
+ declare type MetadataRowGap = "none" | "xs" | "sm" | "md";
12013
+
11997
12014
  export declare interface MetricComputation {
11998
12015
  datasetId: string;
11999
12016
  aggregation: AggregationType;
@@ -12146,6 +12163,21 @@ declare type NavigationItem = Pick<LinkProps, "href" | "exactMatch" | "onClick">
12146
12163
  label: string;
12147
12164
  } & DataAttributes_2;
12148
12165
 
12166
+ declare type NavigationProps = {
12167
+ previous?: {
12168
+ url: string;
12169
+ title: string;
12170
+ };
12171
+ next?: {
12172
+ url: string;
12173
+ title: string;
12174
+ };
12175
+ counter?: {
12176
+ current: number;
12177
+ total: number;
12178
+ };
12179
+ };
12180
+
12149
12181
  declare type NavTarget = HTMLAttributeAnchorTarget;
12150
12182
 
12151
12183
  /**
@@ -13272,7 +13304,7 @@ declare type Props_3 = {
13272
13304
  list?: TagCounterItem[];
13273
13305
  };
13274
13306
 
13275
- declare type Props_4 = {} & Pick<BaseHeaderProps, "avatar" | "title" | "description" | "primaryAction" | "secondaryActions" | "otherActions" | "metadata" | "status" | "deactivated" | "showBottomBorder">;
13307
+ declare type Props_4 = {} & Pick<BaseHeaderProps, "avatar" | "title" | "description" | "primaryAction" | "secondaryActions" | "otherActions" | "metadata" | "status" | "deactivated" | "metadataRowGap" | "showBottomBorder">;
13276
13308
 
13277
13309
  declare type Pulse = (typeof pulses)[number];
13278
13310
 
@@ -15955,9 +15987,9 @@ declare module "gridstack" {
15955
15987
 
15956
15988
  declare module "@tiptap/core" {
15957
15989
  interface Commands<ReturnType> {
15958
- enhanceHighlight: {
15959
- setEnhanceHighlight: (from: number, to: number) => ReturnType;
15960
- clearEnhanceHighlight: () => ReturnType;
15990
+ aiBlock: {
15991
+ insertAIBlock: (data: AIBlockData, config: AIBlockConfig) => ReturnType;
15992
+ executeAIAction: (actionType: string, config: AIBlockConfig) => ReturnType;
15961
15993
  };
15962
15994
  }
15963
15995
  }
@@ -15965,9 +15997,8 @@ declare module "@tiptap/core" {
15965
15997
 
15966
15998
  declare module "@tiptap/core" {
15967
15999
  interface Commands<ReturnType> {
15968
- aiBlock: {
15969
- insertAIBlock: (data: AIBlockData, config: AIBlockConfig) => ReturnType;
15970
- executeAIAction: (actionType: string, config: AIBlockConfig) => ReturnType;
16000
+ moodTracker: {
16001
+ insertMoodTracker: (data: MoodTrackerData) => ReturnType;
15971
16002
  };
15972
16003
  }
15973
16004
  }
@@ -15975,8 +16006,9 @@ declare module "@tiptap/core" {
15975
16006
 
15976
16007
  declare module "@tiptap/core" {
15977
16008
  interface Commands<ReturnType> {
15978
- moodTracker: {
15979
- insertMoodTracker: (data: MoodTrackerData) => ReturnType;
16009
+ enhanceHighlight: {
16010
+ setEnhanceHighlight: (from: number, to: number) => ReturnType;
16011
+ clearEnhanceHighlight: () => ReturnType;
15980
16012
  };
15981
16013
  }
15982
16014
  }