@factorialco/f0-react 2.33.0 → 2.34.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;
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,
package/dist/f0.d.ts CHANGED
@@ -6806,10 +6806,16 @@ displayName: string;
6806
6806
  * callbacks) lives in `clarifyingQuestion`. No coupling to `useAiChat`
6807
6807
  * — embedders can construct a state object themselves.
6808
6808
  */
6809
- export declare const F0ClarifyingPanel: ({ clarifyingQuestion, }: F0ClarifyingPanelProps) => JSX_2.Element;
6809
+ export declare const F0ClarifyingPanel: ({ clarifyingQuestion, isSubmitDisabled, }: F0ClarifyingPanelProps) => JSX_2.Element;
6810
6810
 
6811
6811
  declare interface F0ClarifyingPanelProps {
6812
6812
  clarifyingQuestion: ClarifyingQuestionState;
6813
+ /**
6814
+ * Disables submitting the final step (confirm button, Enter on the custom
6815
+ * answer input, and Skip) — e.g. while the assistant is still streaming a
6816
+ * response. Step navigation and option selection stay interactive.
6817
+ */
6818
+ isSubmitDisabled?: boolean;
6813
6819
  }
6814
6820
 
6815
6821
  /**
package/dist/f0.js CHANGED
@@ -3,8 +3,8 @@ 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
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
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";