@factorialco/f0-react 2.33.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
@@ -2994,10 +2994,16 @@ export declare type F0CanvasPanelProps = {
2994
2994
  * callbacks) lives in `clarifyingQuestion`. No coupling to `useAiChat`
2995
2995
  * — embedders can construct a state object themselves.
2996
2996
  */
2997
- export declare const F0ClarifyingPanel: ({ clarifyingQuestion, }: F0ClarifyingPanelProps) => JSX_2.Element;
2997
+ export declare const F0ClarifyingPanel: ({ clarifyingQuestion, isSubmitDisabled, }: F0ClarifyingPanelProps) => JSX_2.Element;
2998
2998
 
2999
2999
  declare interface F0ClarifyingPanelProps {
3000
3000
  clarifyingQuestion: ClarifyingQuestionState;
3001
+ /**
3002
+ * Disables submitting the final step (confirm button, Enter on the custom
3003
+ * answer input, and Skip) — e.g. while the assistant is still streaming a
3004
+ * response. Step navigation and option selection stay interactive.
3005
+ */
3006
+ isSubmitDisabled?: boolean;
3001
3007
  }
3002
3008
 
3003
3009
  export declare const F0HILActionConfirmation: ({ text, confirmationText, onConfirm, cancelText, onCancel, }: F0HILActionConfirmationProps) => JSX_2.Element;
@@ -4210,6 +4216,11 @@ declare module "gridstack" {
4210
4216
  }
4211
4217
 
4212
4218
 
4219
+ declare namespace Calendar {
4220
+ var displayName: string;
4221
+ }
4222
+
4223
+
4213
4224
  declare module "@tiptap/core" {
4214
4225
  interface Commands<ReturnType> {
4215
4226
  aiBlock: {
@@ -4259,11 +4270,6 @@ declare module "@tiptap/core" {
4259
4270
  }
4260
4271
 
4261
4272
 
4262
- declare namespace Calendar {
4263
- var displayName: string;
4264
- }
4265
-
4266
-
4267
4273
  declare namespace F0GraphNodeWrapperInner {
4268
4274
  var displayName: string;
4269
4275
  }
package/dist/ai.js CHANGED
@@ -1,6 +1,6 @@
1
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-EblUp6hE.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-BhrZJXVe.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-6qTtYcQc.js";
4
4
  export {
5
5
  c as AiChatTranslationsProvider,
6
6
  I as ChatSpinner,
@@ -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
  /**
@@ -6806,10 +6808,16 @@ displayName: string;
6806
6808
  * callbacks) lives in `clarifyingQuestion`. No coupling to `useAiChat`
6807
6809
  * — embedders can construct a state object themselves.
6808
6810
  */
6809
- export declare const F0ClarifyingPanel: ({ clarifyingQuestion, }: F0ClarifyingPanelProps) => JSX_2.Element;
6811
+ export declare const F0ClarifyingPanel: ({ clarifyingQuestion, isSubmitDisabled, }: F0ClarifyingPanelProps) => JSX_2.Element;
6810
6812
 
6811
6813
  declare interface F0ClarifyingPanelProps {
6812
6814
  clarifyingQuestion: ClarifyingQuestionState;
6815
+ /**
6816
+ * Disables submitting the final step (confirm button, Enter on the custom
6817
+ * answer input, and Skip) — e.g. while the assistant is still streaming a
6818
+ * response. Step navigation and option selection stay interactive.
6819
+ */
6820
+ isSubmitDisabled?: boolean;
6813
6821
  }
6814
6822
 
6815
6823
  /**
@@ -11493,6 +11501,11 @@ declare interface MetadataItem {
11493
11501
  value: MetadataItemValue;
11494
11502
  actions?: (MetadataAction | MetadataCopyAction)[];
11495
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;
11496
11509
  /**
11497
11510
  * Optional info text. When provided, displays an info icon next to the label
11498
11511
  * that shows this text in a tooltip when hovered.
@@ -12765,7 +12778,7 @@ declare type Props_3 = {
12765
12778
  list?: TagCounterItem[];
12766
12779
  };
12767
12780
 
12768
- 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">;
12769
12782
 
12770
12783
  export declare type QuestionActionParams = {
12771
12784
  questionId: string;
@@ -15390,6 +15403,11 @@ declare module "gridstack" {
15390
15403
  }
15391
15404
 
15392
15405
 
15406
+ declare namespace Calendar {
15407
+ var displayName: string;
15408
+ }
15409
+
15410
+
15393
15411
  declare module "@tiptap/core" {
15394
15412
  interface Commands<ReturnType> {
15395
15413
  aiBlock: {
@@ -15439,11 +15457,6 @@ declare module "@tiptap/core" {
15439
15457
  }
15440
15458
 
15441
15459
 
15442
- declare namespace Calendar {
15443
- var displayName: string;
15444
- }
15445
-
15446
-
15447
15460
  declare namespace F0GraphNodeWrapperInner {
15448
15461
  var displayName: string;
15449
15462
  }
package/dist/f0.js CHANGED
@@ -3,11 +3,11 @@ import { gA as Dme, D as Ame, aM as Mme, F as Eme, a as Lme, e as Nme, b1 as Ime
3
3
  import { jsx as w, jsxs as B, Fragment as kt } from "react/jsx-runtime";
4
4
  import * as Yn from "react";
5
5
  import He, { forwardRef as Jr, useRef as se, useImperativeHandle as IH, Children as Yv, createContext as en, useContext as _r, useState as ye, useMemo as ae, useEffect as _e, useCallback as te, useLayoutEffect as Zb, createElement as Xd, isValidElement as Nk, Fragment as Ig, memo as Ik, useReducer as kH, cloneElement as RH, useId as kg } from "react";
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-BhrZJXVe.js";
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-BhrZJXVe.js";
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
+ 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
  }