@factorialco/f0-react 2.51.0 → 2.53.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"];
@@ -5864,9 +5878,10 @@ export declare type F0AiChatTextAreaProps = {
5864
5878
  * `item` and its parent `group` (the outline-button entry). */
5865
5879
  onSuggestionClick?: (item: WelcomeScreenSuggestionItem, group: WelcomeScreenSuggestion) => void;
5866
5880
  /**
5867
- * When true, the composer adopts the fullscreen layout: the welcome
5868
- * footer is pushed to the bottom and the disclaimer is hidden so the
5869
- * footer is the only thing under the textarea.
5881
+ * When true on the welcome screen, the composer adopts the fullscreen
5882
+ * layout: the input slot grows to claim the bottom half (so the textarea
5883
+ * rises toward the vertical center), and the welcome suggestions render
5884
+ * below the textarea with their popover opening downward (instead of above).
5870
5885
  */
5871
5886
  fullscreen?: boolean;
5872
5887
  };
@@ -6096,6 +6111,9 @@ export declare type F0AiMessagesContainerProps = {
6096
6111
  onAssistantMessageRendered?: (message: Message_2) => void;
6097
6112
  /** Disables auto-scrollIntoView on new user messages (fullscreen sets false). */
6098
6113
  autoScrollUserIntoView?: boolean;
6114
+ /** Fullscreen welcome layout: pushes the welcome phrase to the bottom of the
6115
+ * top half so it meets the composer near the vertical center. */
6116
+ fullscreen?: boolean;
6099
6117
  /**
6100
6118
  * Renders the markdown content of user/assistant messages. The connected
6101
6119
  * wrapper provides a CopilotKit + f0-markdown-renderers implementation;
@@ -11992,8 +12010,11 @@ declare interface MetadataProps {
11992
12010
  * If true and the metadata type is a list, it will be collapsed to the first item
11993
12011
  */
11994
12012
  collapse?: boolean;
12013
+ rowGap?: MetadataRowGap;
11995
12014
  }
11996
12015
 
12016
+ declare type MetadataRowGap = "none" | "xs" | "sm" | "md";
12017
+
11997
12018
  export declare interface MetricComputation {
11998
12019
  datasetId: string;
11999
12020
  aggregation: AggregationType;
@@ -12146,6 +12167,21 @@ declare type NavigationItem = Pick<LinkProps, "href" | "exactMatch" | "onClick">
12146
12167
  label: string;
12147
12168
  } & DataAttributes_2;
12148
12169
 
12170
+ declare type NavigationProps = {
12171
+ previous?: {
12172
+ url: string;
12173
+ title: string;
12174
+ };
12175
+ next?: {
12176
+ url: string;
12177
+ title: string;
12178
+ };
12179
+ counter?: {
12180
+ current: number;
12181
+ total: number;
12182
+ };
12183
+ };
12184
+
12149
12185
  declare type NavTarget = HTMLAttributeAnchorTarget;
12150
12186
 
12151
12187
  /**
@@ -13272,7 +13308,7 @@ declare type Props_3 = {
13272
13308
  list?: TagCounterItem[];
13273
13309
  };
13274
13310
 
13275
- declare type Props_4 = {} & Pick<BaseHeaderProps, "avatar" | "title" | "description" | "primaryAction" | "secondaryActions" | "otherActions" | "metadata" | "status" | "deactivated" | "showBottomBorder">;
13311
+ declare type Props_4 = {} & Pick<BaseHeaderProps, "avatar" | "title" | "description" | "primaryAction" | "secondaryActions" | "otherActions" | "metadata" | "status" | "deactivated" | "metadataRowGap" | "showBottomBorder">;
13276
13312
 
13277
13313
  declare type Pulse = (typeof pulses)[number];
13278
13314
 
@@ -15955,9 +15991,9 @@ declare module "gridstack" {
15955
15991
 
15956
15992
  declare module "@tiptap/core" {
15957
15993
  interface Commands<ReturnType> {
15958
- enhanceHighlight: {
15959
- setEnhanceHighlight: (from: number, to: number) => ReturnType;
15960
- clearEnhanceHighlight: () => ReturnType;
15994
+ aiBlock: {
15995
+ insertAIBlock: (data: AIBlockData, config: AIBlockConfig) => ReturnType;
15996
+ executeAIAction: (actionType: string, config: AIBlockConfig) => ReturnType;
15961
15997
  };
15962
15998
  }
15963
15999
  }
@@ -15965,9 +16001,9 @@ declare module "@tiptap/core" {
15965
16001
 
15966
16002
  declare module "@tiptap/core" {
15967
16003
  interface Commands<ReturnType> {
15968
- aiBlock: {
15969
- insertAIBlock: (data: AIBlockData, config: AIBlockConfig) => ReturnType;
15970
- executeAIAction: (actionType: string, config: AIBlockConfig) => ReturnType;
16004
+ enhanceHighlight: {
16005
+ setEnhanceHighlight: (from: number, to: number) => ReturnType;
16006
+ clearEnhanceHighlight: () => ReturnType;
15971
16007
  };
15972
16008
  }
15973
16009
  }