@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/ai.d.ts CHANGED
@@ -4707,9 +4707,9 @@ declare module "gridstack" {
4707
4707
 
4708
4708
  declare module "@tiptap/core" {
4709
4709
  interface Commands<ReturnType> {
4710
- enhanceHighlight: {
4711
- setEnhanceHighlight: (from: number, to: number) => ReturnType;
4712
- clearEnhanceHighlight: () => ReturnType;
4710
+ aiBlock: {
4711
+ insertAIBlock: (data: AIBlockData, config: AIBlockConfig) => ReturnType;
4712
+ executeAIAction: (actionType: string, config: AIBlockConfig) => ReturnType;
4713
4713
  };
4714
4714
  }
4715
4715
  }
@@ -4717,9 +4717,8 @@ declare module "@tiptap/core" {
4717
4717
 
4718
4718
  declare module "@tiptap/core" {
4719
4719
  interface Commands<ReturnType> {
4720
- aiBlock: {
4721
- insertAIBlock: (data: AIBlockData, config: AIBlockConfig) => ReturnType;
4722
- executeAIAction: (actionType: string, config: AIBlockConfig) => ReturnType;
4720
+ moodTracker: {
4721
+ insertMoodTracker: (data: MoodTrackerData) => ReturnType;
4723
4722
  };
4724
4723
  }
4725
4724
  }
@@ -4727,8 +4726,9 @@ declare module "@tiptap/core" {
4727
4726
 
4728
4727
  declare module "@tiptap/core" {
4729
4728
  interface Commands<ReturnType> {
4730
- moodTracker: {
4731
- insertMoodTracker: (data: MoodTrackerData) => ReturnType;
4729
+ enhanceHighlight: {
4730
+ setEnhanceHighlight: (from: number, to: number) => ReturnType;
4731
+ clearEnhanceHighlight: () => ReturnType;
4732
4732
  };
4733
4733
  }
4734
4734
  }
package/dist/ai.js CHANGED
@@ -1,6 +1,6 @@
1
- import { D as e, F as r, a as t, e as o, f as i, c as n, d as F, I as C, P as A, b as l, u as d } from "./F0CanvasPanel-DDHvW6gk.js";
1
+ import { D as e, F as r, a as t, e as o, f as i, c as n, d as F, I as C, P as A, b as l, u as d } from "./F0CanvasPanel-DHzu-56s.js";
2
2
  import { defaultTranslations as m } from "./i18n-provider-defaults.js";
3
- import { A as c, C as I, h as P, t as v, v as f, x as p, n as T, j as g, r as y, y as S, q as x, s as H, k as V, e as b, g as k, l as w, F as M, i as O, a as D, p as j, m as q, o as z, b as B, f as E, w as L, c as R, d as G, u as J } from "./useChatHistory-CKnLaxwq.js";
3
+ import { A as c, C as I, h as P, t as v, v as f, x as p, n as T, j as g, r as y, y as S, q as x, s as H, k as V, e as b, g as k, l as w, F as M, i as O, a as D, p as j, m as q, o as z, b as B, f as E, w as L, c as R, d as G, u as J } from "./useChatHistory-DbcUH7Tf.js";
4
4
  export {
5
5
  c as AiChatTranslationsProvider,
6
6
  I as ChatSpinner,
@@ -1019,7 +1019,7 @@ declare type BaseFilterDefinition<T extends FilterTypeKey> = {
1019
1019
  hideSelector?: boolean;
1020
1020
  };
1021
1021
 
1022
- declare function BaseHeader({ title, avatar, deactivated, description, primaryAction, secondaryActions, otherActions, status, metadata, showBottomBorder, }: BaseHeaderProps_2): JSX_2.Element;
1022
+ declare function BaseHeader({ title, avatar, deactivated, description, primaryAction, secondaryActions, otherActions, status, metadata, metadataRowGap, showBottomBorder, }: BaseHeaderProps_2): JSX_2.Element;
1023
1023
 
1024
1024
  declare type BaseHeaderProps = ComponentProps<typeof BaseHeader>;
1025
1025
 
@@ -1044,6 +1044,7 @@ declare interface BaseHeaderProps_2 {
1044
1044
  actions?: MetadataAction[];
1045
1045
  };
1046
1046
  metadata?: MetadataProps["items"];
1047
+ metadataRowGap?: MetadataProps["rowGap"];
1047
1048
  /** Renders a 1px bottom border at the very bottom of the header. */
1048
1049
  showBottomBorder?: boolean;
1049
1050
  }
@@ -5853,8 +5854,11 @@ declare interface MetadataProps {
5853
5854
  * If true and the metadata type is a list, it will be collapsed to the first item
5854
5855
  */
5855
5856
  collapse?: boolean;
5857
+ rowGap?: MetadataRowGap;
5856
5858
  }
5857
5859
 
5860
+ declare type MetadataRowGap = "none" | "xs" | "sm" | "md";
5861
+
5858
5862
  declare interface MetricComputation {
5859
5863
  datasetId: string;
5860
5864
  aggregation: AggregationType;
@@ -6007,7 +6011,7 @@ declare type NavigationItem = Pick<LinkProps, "href" | "exactMatch" | "onClick">
6007
6011
  label: string;
6008
6012
  } & DataAttributes_2;
6009
6013
 
6010
- declare type NavigationProps = {
6014
+ export declare type NavigationProps = {
6011
6015
  previous?: {
6012
6016
  url: string;
6013
6017
  title: string;
@@ -6781,6 +6785,8 @@ export declare type PageBasedPaginatedResponse<TRecord> = BasePaginatedResponse<
6781
6785
 
6782
6786
  export declare function PageHeader({ module, statusTag, breadcrumbs, actions, embedded, navigation, productUpdates, favorites, oneSwitchTooltip, oneSwitchAutoOpen, }: HeaderProps): JSX_2.Element;
6783
6787
 
6788
+ export declare function PageNavigation({ previous, next, counter }: NavigationProps): JSX_2.Element;
6789
+
6784
6790
  declare interface PageProps {
6785
6791
  children?: React.ReactNode;
6786
6792
  header?: React.ReactNode;
@@ -7120,7 +7126,7 @@ declare type PropertyDefinition_2<T> = {
7120
7126
  hide?: (item: T) => boolean;
7121
7127
  };
7122
7128
 
7123
- declare type Props = {} & Pick<BaseHeaderProps, "avatar" | "title" | "description" | "primaryAction" | "secondaryActions" | "otherActions" | "metadata" | "status" | "deactivated" | "showBottomBorder">;
7129
+ declare type Props = {} & Pick<BaseHeaderProps, "avatar" | "title" | "description" | "primaryAction" | "secondaryActions" | "otherActions" | "metadata" | "status" | "deactivated" | "metadataRowGap" | "showBottomBorder">;
7124
7130
 
7125
7131
  declare type Props_10<Id extends string | number = string | number> = {
7126
7132
  items: Omit<WidgetSimpleListItemProps<Id>, "onClick">[];
@@ -7315,7 +7321,7 @@ export declare type ResolvedRecordType<R> = R extends RecordType ? R : RecordTyp
7315
7321
  /**
7316
7322
  * @experimental This is an experimental component use it at your own risk
7317
7323
  */
7318
- export declare const ResourceHeader: ({ avatar, title, description, primaryAction, secondaryActions, otherActions, status, metadata, deactivated, showBottomBorder, }: Props) => JSX_2.Element;
7324
+ export declare const ResourceHeader: ({ avatar, title, description, primaryAction, secondaryActions, otherActions, status, metadata, deactivated, metadataRowGap, showBottomBorder, }: Props) => JSX_2.Element;
7319
7325
 
7320
7326
  export declare type ResourceHeaderProps = Props;
7321
7327
 
@@ -8860,9 +8866,9 @@ declare module "gridstack" {
8860
8866
 
8861
8867
  declare module "@tiptap/core" {
8862
8868
  interface Commands<ReturnType> {
8863
- enhanceHighlight: {
8864
- setEnhanceHighlight: (from: number, to: number) => ReturnType;
8865
- clearEnhanceHighlight: () => ReturnType;
8869
+ aiBlock: {
8870
+ insertAIBlock: (data: AIBlockData, config: AIBlockConfig) => ReturnType;
8871
+ executeAIAction: (actionType: string, config: AIBlockConfig) => ReturnType;
8866
8872
  };
8867
8873
  }
8868
8874
  }
@@ -8870,9 +8876,8 @@ declare module "@tiptap/core" {
8870
8876
 
8871
8877
  declare module "@tiptap/core" {
8872
8878
  interface Commands<ReturnType> {
8873
- aiBlock: {
8874
- insertAIBlock: (data: AIBlockData, config: AIBlockConfig) => ReturnType;
8875
- executeAIAction: (actionType: string, config: AIBlockConfig) => ReturnType;
8879
+ moodTracker: {
8880
+ insertMoodTracker: (data: MoodTrackerData) => ReturnType;
8876
8881
  };
8877
8882
  }
8878
8883
  }
@@ -8880,8 +8885,9 @@ declare module "@tiptap/core" {
8880
8885
 
8881
8886
  declare module "@tiptap/core" {
8882
8887
  interface Commands<ReturnType> {
8883
- moodTracker: {
8884
- insertMoodTracker: (data: MoodTrackerData) => ReturnType;
8888
+ enhanceHighlight: {
8889
+ setEnhanceHighlight: (from: number, to: number) => ReturnType;
8890
+ clearEnhanceHighlight: () => ReturnType;
8885
8891
  };
8886
8892
  }
8887
8893
  }