@factorialco/f0-react 2.34.0 → 2.35.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
@@ -4216,6 +4216,11 @@ declare module "gridstack" {
4216
4216
  }
4217
4217
 
4218
4218
 
4219
+ declare namespace Calendar {
4220
+ var displayName: string;
4221
+ }
4222
+
4223
+
4219
4224
  declare module "@tiptap/core" {
4220
4225
  interface Commands<ReturnType> {
4221
4226
  aiBlock: {
@@ -4265,11 +4270,6 @@ declare module "@tiptap/core" {
4265
4270
  }
4266
4271
 
4267
4272
 
4268
- declare namespace Calendar {
4269
- var displayName: string;
4270
- }
4271
-
4272
-
4273
4273
  declare namespace F0GraphNodeWrapperInner {
4274
4274
  var displayName: string;
4275
4275
  }
@@ -1016,7 +1016,7 @@ declare type BaseFilterDefinition<T extends FilterTypeKey> = {
1016
1016
  hideSelector?: boolean;
1017
1017
  };
1018
1018
 
1019
- declare function BaseHeader({ title, avatar, deactivated, description, primaryAction, secondaryActions, otherActions, status, metadata, }: BaseHeaderProps_2): JSX_2.Element;
1019
+ declare function BaseHeader({ title, avatar, deactivated, description, primaryAction, secondaryActions, otherActions, status, metadata, showBottomBorder, }: BaseHeaderProps_2): JSX_2.Element;
1020
1020
 
1021
1021
  declare type BaseHeaderProps = ComponentProps<typeof BaseHeader>;
1022
1022
 
@@ -1041,6 +1041,8 @@ declare interface BaseHeaderProps_2 {
1041
1041
  actions?: MetadataAction[];
1042
1042
  };
1043
1043
  metadata?: MetadataProps["items"];
1044
+ /** Renders a 1px bottom border at the very bottom of the header. */
1045
+ showBottomBorder?: boolean;
1044
1046
  }
1045
1047
 
1046
1048
  /**
@@ -5692,6 +5694,11 @@ declare interface MetadataItem {
5692
5694
  value: MetadataItemValue;
5693
5695
  actions?: (MetadataAction | MetadataCopyAction)[];
5694
5696
  hideLabel?: boolean;
5697
+ /**
5698
+ * Optional leading icon shown before the label/value. Useful when the icon itself
5699
+ * conveys the field (e.g. with `hideLabel`), so the item reads as "icon + value".
5700
+ */
5701
+ icon?: IconType;
5695
5702
  /**
5696
5703
  * Optional info text. When provided, displays an info icon next to the label
5697
5704
  * that shows this text in a tooltip when hovered.
@@ -6953,7 +6960,7 @@ declare type PropertyDefinition_2<T> = {
6953
6960
  hide?: (item: T) => boolean;
6954
6961
  };
6955
6962
 
6956
- declare type Props = {} & Pick<BaseHeaderProps, "avatar" | "title" | "description" | "primaryAction" | "secondaryActions" | "otherActions" | "metadata" | "status" | "deactivated">;
6963
+ declare type Props = {} & Pick<BaseHeaderProps, "avatar" | "title" | "description" | "primaryAction" | "secondaryActions" | "otherActions" | "metadata" | "status" | "deactivated" | "showBottomBorder">;
6957
6964
 
6958
6965
  declare type Props_10<Id extends string | number = string | number> = {
6959
6966
  items: Omit<WidgetSimpleListItemProps<Id>, "onClick">[];
@@ -7148,7 +7155,7 @@ export declare type ResolvedRecordType<R> = R extends RecordType ? R : RecordTyp
7148
7155
  /**
7149
7156
  * @experimental This is an experimental component use it at your own risk
7150
7157
  */
7151
- export declare const ResourceHeader: ({ avatar, title, description, primaryAction, secondaryActions, otherActions, status, metadata, deactivated, }: Props) => JSX_2.Element;
7158
+ export declare const ResourceHeader: ({ avatar, title, description, primaryAction, secondaryActions, otherActions, status, metadata, deactivated, showBottomBorder, }: Props) => JSX_2.Element;
7152
7159
 
7153
7160
  export declare type ResourceHeaderProps = Props;
7154
7161
 
@@ -8672,6 +8679,11 @@ declare module "gridstack" {
8672
8679
  }
8673
8680
 
8674
8681
 
8682
+ declare namespace Calendar {
8683
+ var displayName: string;
8684
+ }
8685
+
8686
+
8675
8687
  declare module "@tiptap/core" {
8676
8688
  interface Commands<ReturnType> {
8677
8689
  aiBlock: {
@@ -8721,11 +8733,6 @@ declare module "@tiptap/core" {
8721
8733
  }
8722
8734
 
8723
8735
 
8724
- declare namespace Calendar {
8725
- var displayName: string;
8726
- }
8727
-
8728
-
8729
8736
  declare namespace F0GraphNodeWrapperInner {
8730
8737
  var displayName: string;
8731
8738
  }
@@ -2,8 +2,8 @@ import { g as da, B as ua, h as fa, i as ma, j as At, k as De, l as ha, m as p,
2
2
  import { bQ as Lc, bP as Ec, c0 as _c, bM as Oc, bN as Dc, bF as Tc, bG as zc, bH as Pc, c1 as Bc, bO as Rc, bY as $c, bZ as Wc, bI as Mc, bS as jc, bR as Vc, bJ as Gc, bK as Hc, b_ as Uc, c2 as Kc, b$ as qc, bX as Yc, bU as Zc, bW as Xc, bT as Jc, bL as Qc, bV as ed } from "./F0CanvasPanel-EblUp6hE.js";
3
3
  import { jsx as e, jsxs as o, Fragment as U } from "react/jsx-runtime";
4
4
  import se, { forwardRef as j, useRef as G, useTransition as Hr, useState as _, useLayoutEffect as Fn, useId as ot, useContext as Ke, createContext as Nt, useEffect as $, useCallback as Q, useMemo as q, Fragment as Ur, isValidElement as Kr, cloneElement as An, Children as Ln } from "react";
5
- import { C as qr, P as Yr, g as En, c as Zr, a as _n, F as ct, f as Xr, M as Jr, b as Qr, R as Dt, d as On, u as el, e as Dn, S as tl, A as nl, B as al, L as rl, h as ll, V as il, i as sl, j as Tt, k as ol, l as cl, O as dl } from "./useDataCollectionSource-BkSLdJZC.js";
6
- import { r as nd, s as ad, p as rd, H as ld, t as id, z as sd, a9 as od, G as cd, q as dd, Q as ud, o as fd, Y as md, U as hd, J as pd, af as bd, K as gd, Z as xd, _ as vd, v as wd, ab as yd, ac as Nd, aa as Cd, ad as kd, N as Sd, $ as Id, a6 as Fd, a8 as Ad, w as Ld, y as Ed, D as _d, W as Od, ae as Dd, X as Td, T as zd, x as Pd, E as Bd, m as Rd, n as $d, a1 as Wd, a2 as Md, a7 as jd, I as Vd, a3 as Gd, a4 as Hd, a0 as Ud, a5 as Kd } from "./useDataCollectionSource-BkSLdJZC.js";
5
+ import { C as qr, P as Yr, g as En, c as Zr, a as _n, F as ct, f as Xr, M as Jr, b as Qr, R as Dt, d as On, u as el, e as Dn, S as tl, A as nl, B as al, L as rl, h as ll, V as il, i as sl, j as Tt, k as ol, l as cl, O as dl } from "./useDataCollectionSource-DsmyWSV7.js";
6
+ import { r as nd, s as ad, p as rd, H as ld, t as id, z as sd, a9 as od, G as cd, q as dd, Q as ud, o as fd, Y as md, U as hd, J as pd, af as bd, K as gd, Z as xd, _ as vd, v as wd, ab as yd, ac as Nd, aa as Cd, ad as kd, N as Sd, $ as Id, a6 as Fd, a8 as Ad, w as Ld, y as Ed, D as _d, W as Od, ae as Dd, X as Td, T as zd, x as Pd, E as Bd, m as Rd, n as $d, a1 as Wd, a2 as Md, a7 as jd, I as Vd, a3 as Gd, a4 as Hd, a0 as Ud, a5 as Kd } from "./useDataCollectionSource-DsmyWSV7.js";
7
7
  const ul = da("Search", [
8
8
  ["circle", { cx: "11", cy: "11", r: "8", key: "4ej97u" }],
9
9
  ["path", { d: "m21 21-4.3-4.3", key: "1qie3q" }]
package/dist/f0.d.ts CHANGED
@@ -1423,7 +1423,7 @@ declare type BaseFilterDefinition<T extends FilterTypeKey> = {
1423
1423
  hideSelector?: boolean;
1424
1424
  };
1425
1425
 
1426
- declare function BaseHeader({ title, avatar, deactivated, description, primaryAction, secondaryActions, otherActions, status, metadata, }: BaseHeaderProps_2): JSX_2.Element;
1426
+ declare function BaseHeader({ title, avatar, deactivated, description, primaryAction, secondaryActions, otherActions, status, metadata, showBottomBorder, }: BaseHeaderProps_2): JSX_2.Element;
1427
1427
 
1428
1428
  declare type BaseHeaderProps = ComponentProps<typeof BaseHeader>;
1429
1429
 
@@ -1448,6 +1448,8 @@ declare interface BaseHeaderProps_2 {
1448
1448
  actions?: MetadataAction[];
1449
1449
  };
1450
1450
  metadata?: MetadataProps["items"];
1451
+ /** Renders a 1px bottom border at the very bottom of the header. */
1452
+ showBottomBorder?: boolean;
1451
1453
  }
1452
1454
 
1453
1455
  /**
@@ -11499,6 +11501,11 @@ declare interface MetadataItem {
11499
11501
  value: MetadataItemValue;
11500
11502
  actions?: (MetadataAction | MetadataCopyAction)[];
11501
11503
  hideLabel?: boolean;
11504
+ /**
11505
+ * Optional leading icon shown before the label/value. Useful when the icon itself
11506
+ * conveys the field (e.g. with `hideLabel`), so the item reads as "icon + value".
11507
+ */
11508
+ icon?: IconType;
11502
11509
  /**
11503
11510
  * Optional info text. When provided, displays an info icon next to the label
11504
11511
  * that shows this text in a tooltip when hovered.
@@ -12771,7 +12778,7 @@ declare type Props_3 = {
12771
12778
  list?: TagCounterItem[];
12772
12779
  };
12773
12780
 
12774
- declare type Props_4 = {} & Pick<BaseHeaderProps, "avatar" | "title" | "description" | "primaryAction" | "secondaryActions" | "otherActions" | "metadata" | "status" | "deactivated">;
12781
+ declare type Props_4 = {} & Pick<BaseHeaderProps, "avatar" | "title" | "description" | "primaryAction" | "secondaryActions" | "otherActions" | "metadata" | "status" | "deactivated" | "showBottomBorder">;
12775
12782
 
12776
12783
  export declare type QuestionActionParams = {
12777
12784
  questionId: string;
@@ -15396,6 +15403,11 @@ declare module "gridstack" {
15396
15403
  }
15397
15404
 
15398
15405
 
15406
+ declare namespace Calendar {
15407
+ var displayName: string;
15408
+ }
15409
+
15410
+
15399
15411
  declare module "@tiptap/core" {
15400
15412
  interface Commands<ReturnType> {
15401
15413
  aiBlock: {
@@ -15445,11 +15457,6 @@ declare module "@tiptap/core" {
15445
15457
  }
15446
15458
 
15447
15459
 
15448
- declare namespace Calendar {
15449
- var displayName: string;
15450
- }
15451
-
15452
-
15453
15460
  declare namespace F0GraphNodeWrapperInner {
15454
15461
  var displayName: string;
15455
15462
  }
package/dist/f0.js CHANGED
@@ -6,8 +6,8 @@ import He, { forwardRef as Jr, useRef as se, useImperativeHandle as IH, Children
6
6
  import { z as PH, B as OH, U as iT, D as aT, E as $m, G as oT, H as BH, I as Oa, J as nl, K as VH, L as Hw, M as Rr, N as fi, O as FH, P as zH, Q as kk, Z as Ho, R as GH, S as HH, T as WH, V as Rk, W as Xv, X as Ww, Y as Pk, _ as Ok, $ as pn, a0 as UH, a1 as $H, a2 as Bk, a3 as Rg, a4 as YH, a5 as XH, a6 as Vk, a7 as qH, a8 as ZH, a9 as jH, aa as KH, ab as QH, ac as JH, F as eW } from "./useChatHistory-6qTtYcQc.js";
7
7
  import { A as Lye, C as Nye, h as Iye, t as kye, v as Rye, x as Pye, ah as Oye, n as Bye, j as Vye, r as Fye, y as zye, q as Gye, s as Hye, k as Wye, e as Uye, g as $ye, l as Yye, i as Xye, a as qye, p as Zye, ai as jye, af as Kye, ae as Qye, ag as Jye, m as e0e, o as t0e, ad as r0e, b as n0e, f as i0e, w as a0e, c as o0e, d as s0e, u as l0e } from "./useChatHistory-6qTtYcQc.js";
8
8
  import { createPortal as Fk, unstable_batchedUpdates as qd, flushSync as tW } from "react-dom";
9
- import { C as rW, o as nW, G as jb, H as zk, ag as Gk, Q as Hk, ae as iW, U as aW, X as Wk, Y as Uw, ah as $w, a9 as oW, ai as sW, aj as lW, d as Pg, ak as uW, R as Yw, u as Xw, W as Uk, O as qw, al as $k, am as Zw, p as cW, a4 as Yk, $ as Xk, an as fW, ao as dW, ap as hW, aq as vW, ar as pW, M as gW } from "./useDataCollectionSource-BkSLdJZC.js";
10
- import { r as c0e, s as f0e, t as d0e, z as h0e, at as v0e, F as p0e, J as g0e, af as m0e, K as y0e, v as b0e, ab as x0e, ac as _0e, aa as w0e, ad as S0e, N as C0e, w as T0e, P as D0e, y as A0e, D as M0e, T as E0e, x as L0e, E as N0e, m as I0e, n as k0e, as as R0e, a7 as P0e, I as O0e, au as B0e, av as V0e, aw as F0e, e as z0e } from "./useDataCollectionSource-BkSLdJZC.js";
9
+ import { C as rW, o as nW, G as jb, H as zk, ag as Gk, Q as Hk, ae as iW, U as aW, X as Wk, Y as Uw, ah as $w, a9 as oW, ai as sW, aj as lW, d as Pg, ak as uW, R as Yw, u as Xw, W as Uk, O as qw, al as $k, am as Zw, p as cW, a4 as Yk, $ as Xk, an as fW, ao as dW, ap as hW, aq as vW, ar as pW, M as gW } from "./useDataCollectionSource-DsmyWSV7.js";
10
+ import { r as c0e, s as f0e, t as d0e, z as h0e, at as v0e, F as p0e, J as g0e, af as m0e, K as y0e, v as b0e, ab as x0e, ac as _0e, aa as w0e, ad as S0e, N as C0e, w as T0e, P as D0e, y as A0e, D as M0e, T as E0e, x as L0e, E as N0e, m as I0e, n as k0e, as as R0e, a7 as P0e, I as O0e, au as B0e, av as V0e, aw as F0e, e as z0e } from "./useDataCollectionSource-DsmyWSV7.js";
11
11
  import { utils as fu, write as qk } from "./xlsx-Bedf3nwD.js";
12
12
  import { defaultTranslations as H0e } from "./i18n-provider-defaults.js";
13
13
  import './f0.css';const mW = {
@@ -842,6 +842,11 @@ declare module "gridstack" {
842
842
  }
843
843
 
844
844
 
845
+ declare namespace Calendar {
846
+ var displayName: string;
847
+ }
848
+
849
+
845
850
  declare module "@tiptap/core" {
846
851
  interface Commands<ReturnType> {
847
852
  aiBlock: {
@@ -891,11 +896,6 @@ declare module "@tiptap/core" {
891
896
  }
892
897
 
893
898
 
894
- declare namespace Calendar {
895
- var displayName: string;
896
- }
897
-
898
-
899
899
  declare namespace F0GraphNodeWrapperInner {
900
900
  var displayName: string;
901
901
  }