@factorialco/f0-react 6.23.2 → 6.25.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
@@ -6818,7 +6818,7 @@ export declare const F0AiChatProvider: ({ enabled, side, panelContentSide, initi
6818
6818
  * coupling to `useAiChat()` or CopilotKit — wrappers like F0AiChat
6819
6819
  * provide the wiring.
6820
6820
  */
6821
- export declare const F0AiChatTextArea: ({ onSubmit, onStop, inProgress, onBeforeSubmit, placeholders, creditWarning, clarifyingUI, pendingContext, onPendingContextChange, pendingQuote, onPendingQuoteChange, fileAttachments, toolbarStart, onTranscribe, searchPersons, onProcessFilesRef, disclaimer, footer, isWelcomeScreen, fullscreen, welcomeScreenSuggestions, onSuggestionClick, welcomeScreenCards, ref, }: F0AiChatTextAreaProps) => JSX_2.Element;
6821
+ export declare const F0AiChatTextArea: ({ onSubmit, onStop, inProgress, onBeforeSubmit, placeholders, creditWarning, clarifyingUI, pendingContext, onPendingContextChange, pendingQuote, onPendingQuoteChange, fileAttachments, toolbarStart, onTranscribe, searchPersons, onProcessFilesRef, disclaimer, footer, isWelcomeScreen, fullscreen, welcomeScreenSuggestions, onSuggestionClick, welcomeScreenSuggestionsPlacement, welcomeScreenCards, ref, }: F0AiChatTextAreaProps) => JSX_2.Element;
6822
6822
 
6823
6823
  export declare type F0AiChatTextAreaProps = {
6824
6824
  ref: RefObject<HTMLDivElement>;
@@ -6905,6 +6905,39 @@ export declare type F0AiChatTextAreaProps = {
6905
6905
  /** Called when the user clicks a sub-suggestion. Receives the picked
6906
6906
  * `item` and its parent `group` (the outline-button entry). */
6907
6907
  onSuggestionClick?: (item: WelcomeScreenSuggestionItem, group: WelcomeScreenSuggestion) => void;
6908
+ /**
6909
+ * Where the welcome suggestions row sits relative to the composer.
6910
+ *
6911
+ * - `"above"` (the default) — its own block over the field, the arrangement
6912
+ * every consumer has had: the row stands on the page, the field below it is
6913
+ * a plain composer, and its popover opens upward into the welcome screen's
6914
+ * empty space.
6915
+ *
6916
+ * - `"inside"` — the row moves INTO the field, at its foot, so the field's own
6917
+ * border and AI focus highlight enclose it and the composer reads as a
6918
+ * single bar about two lines tall. Its popover opens downward, because up is
6919
+ * now the text you are about to type.
6920
+ *
6921
+ * ⚠️ `"inside"` IS A COMPOSER SHAPE, NOT JUST A POSITION. It also moves the
6922
+ * send button onto the textarea's own line (at `sm`, centred on the text) and
6923
+ * puts One's mark in front of the text. Neither is a feature bolted onto this
6924
+ * prop — they are what make the placement possible and legible. The action row
6925
+ * is full-width, so a chips row plus an action row inside one field is three
6926
+ * stacked bands and the "single bar" is gone; with send trailing the text there
6927
+ * are two, text then suggestions. The attachment, host (`toolbarStart`) and
6928
+ * dictation controls keep their own row when the host enables them; with none
6929
+ * of them the field is just the two bands.
6930
+ *
6931
+ * THE INLINE SEND FOLLOWS THE PROP, NOT THE WELCOME STATE. The suggestions
6932
+ * themselves are welcome-screen-only as they always were, but a composer that
6933
+ * put send back in the action row the moment the first message landed would
6934
+ * change shape under the reader mid-conversation. `"inside"` therefore keeps
6935
+ * the two-band bar for the whole thread; after the welcome screen it is simply
6936
+ * a bar with no chips in it.
6937
+ *
6938
+ * @default "above"
6939
+ */
6940
+ welcomeScreenSuggestionsPlacement?: "above" | "inside";
6908
6941
  /**
6909
6942
  * Cards rendered as a grid below the composer on the fullscreen welcome
6910
6943
  * screen. Each card carries its own `onClick`; the host decides the behavior.
package/dist/f0.js CHANGED
@@ -1,18 +1,18 @@
1
- import { hH as tN, w as at, cp as bb, a7 as dn, h6 as rN, a6 as An, fe as IV, hI as kV, hJ as nN, r as Xt, av as tf, hK as PV, hL as Cw, hM as Mr, hN as $a, hO as RV, u as Be, aJ as Xv, hP as Yi, hQ as Vl, hR as iN, aD as ll, h3 as zy, hS as OV, S as ee, s as xb, hT as BV, hU as zV, hV as Tw, en as VV, hW as FV, hX as GV, hY as aN, hZ as HV, t as qv, v as Zv, m as tt, x as jv, y as Gr, O as WV, Q as UV, z as rf, A as nf, cd as Yo, B as af, gh as Vy, am as Ft, V as et, aC as _l, ao as Ma, aR as wb, h_ as $V, by as YV, ej as Dw, n as oN, o as bl, ad as wc, bz as XV, db as _d, cn as sN, h$ as qV, h5 as Aw, aw as ZV, i0 as Mw, fN as jV, i1 as KV, c6 as lN, ca as uN, g0 as Fy, aW as QV, dm as Gy, ce as cN, gD as Fl, gE as of, gG as fN, hc as JV, gf as hN, aL as dN, ge as eF, i2 as Kv, dX as Sb, gU as tF, at as vN, fM as rF, cD as nF, hD as Cb, bW as pN, b$ as iF, c0 as aF, c1 as oF, d as sF, af as gN, dt as ns, e8 as mN, dW as yN, cG as Tb, cb as _N, dg as Db, G as ul, H as cl, K as fl, L as hl, gi as ha, cf as bN, j as lF, dU as bd, bK as xl, J as Nr, cW as uF, as as xN, dY as Hy, ek as Sc, cV as cF, dO as sf, ap as Gl, bm as wN, b3 as fF, gN as Or, i3 as hF, i4 as dF, i5 as SN, i6 as Qv, i7 as vF, i8 as pF, R as CN, U as TN, cK as gF, i9 as mF, bf as DN, c8 as yF, c9 as _F, ag as Wy, aN as Hl, cs as Wl, eR as lf, ea as bF, cq as xF, bx as wF, ai as AN, bB as SF, ar as CF, bU as Ew, e7 as Cc, fP as TF, fQ as DF, ia as AF, bl as MF, cw as EF, l as MN, ax as LF, bE as NF, ib as IF, h9 as kF, ay as PF, bp as RF, ab as EN, ic as LN, id as OF, ie as BF, I as zF, ig as VF, ih as FF, ii as GF, ij as HF } from "./F0CanvasPanel-kyz8aCo6.js";
2
- import { iB as She, C as Che, D as The, bd as Dhe, c as Ahe, F as Mhe, a as Ehe, iu as Lhe, f as Nhe, bF as Ihe, be as khe, cu as Phe, bS as Rhe, b6 as Ohe, aG as Bhe, aQ as zhe, em as Vhe, aY as Fhe, cQ as Ghe, g as Hhe, c2 as Whe, cR as Uhe, ip as $he, iG as Yhe, bT as Xhe, e as qhe, cc as Zhe, k as jhe, cv as Khe, iw as Qhe, bt as Jhe, ix as ede, iz as tde, iA as rde, de as nde, iD as ide, d7 as ade, d8 as ode, P as sde, dc as lde, iy as ude, d9 as cde, iC as fde, iH as hde, il as dde, im as vde, io as pde, ik as gde, da as mde, iF as yde, iv as _de, is as bde, ir as xde, dd as wde, gc as Sde, gV as Cde, iE as Tde, bi as Dde, d6 as Ade, d3 as Mde, d5 as Ede, d2 as Lde, it as Nde, gX as Ide, gR as kde, gH as Pde, iK as Rde, cM as Ode, d4 as Bde, iJ as zde, bO as Vde, eg as Fde, gb as Gde, gI as Hde, b as Wde, bR as Ude, hb as $de, bg as Yde, eh as Xde, iq as qde, gT as Zde, gS as jde, iI as Kde } from "./F0CanvasPanel-kyz8aCo6.js";
1
+ import { hH as tN, w as at, cp as bb, a7 as dn, h6 as rN, a6 as An, fe as IV, hI as kV, hJ as nN, r as Xt, av as tf, hK as PV, hL as Cw, hM as Mr, hN as $a, hO as RV, u as Be, aJ as Xv, hP as Yi, hQ as Vl, hR as iN, aD as ll, h3 as zy, hS as OV, S as ee, s as xb, hT as BV, hU as zV, hV as Tw, en as VV, hW as FV, hX as GV, hY as aN, hZ as HV, t as qv, v as Zv, m as tt, x as jv, y as Gr, O as WV, Q as UV, z as rf, A as nf, cd as Yo, B as af, gh as Vy, am as Ft, V as et, aC as _l, ao as Ma, aR as wb, h_ as $V, by as YV, ej as Dw, n as oN, o as bl, ad as wc, bz as XV, db as _d, cn as sN, h$ as qV, h5 as Aw, aw as ZV, i0 as Mw, fN as jV, i1 as KV, c6 as lN, ca as uN, g0 as Fy, aW as QV, dm as Gy, ce as cN, gD as Fl, gE as of, gG as fN, hc as JV, gf as hN, aL as dN, ge as eF, i2 as Kv, dX as Sb, gU as tF, at as vN, fM as rF, cD as nF, hD as Cb, bW as pN, b$ as iF, c0 as aF, c1 as oF, d as sF, af as gN, dt as ns, e8 as mN, dW as yN, cG as Tb, cb as _N, dg as Db, G as ul, H as cl, K as fl, L as hl, gi as ha, cf as bN, j as lF, dU as bd, bK as xl, J as Nr, cW as uF, as as xN, dY as Hy, ek as Sc, cV as cF, dO as sf, ap as Gl, bm as wN, b3 as fF, gN as Or, i3 as hF, i4 as dF, i5 as SN, i6 as Qv, i7 as vF, i8 as pF, R as CN, U as TN, cK as gF, i9 as mF, bf as DN, c8 as yF, c9 as _F, ag as Wy, aN as Hl, cs as Wl, eR as lf, ea as bF, cq as xF, bx as wF, ai as AN, bB as SF, ar as CF, bU as Ew, e7 as Cc, fP as TF, fQ as DF, ia as AF, bl as MF, cw as EF, l as MN, ax as LF, bE as NF, ib as IF, h9 as kF, ay as PF, bp as RF, ab as EN, ic as LN, id as OF, ie as BF, I as zF, ig as VF, ih as FF, ii as GF, ij as HF } from "./F0CanvasPanel-BragP3zs.js";
2
+ import { iB as She, C as Che, D as The, bd as Dhe, c as Ahe, F as Mhe, a as Ehe, iu as Lhe, f as Nhe, bF as Ihe, be as khe, cu as Phe, bS as Rhe, b6 as Ohe, aG as Bhe, aQ as zhe, em as Vhe, aY as Fhe, cQ as Ghe, g as Hhe, c2 as Whe, cR as Uhe, ip as $he, iG as Yhe, bT as Xhe, e as qhe, cc as Zhe, k as jhe, cv as Khe, iw as Qhe, bt as Jhe, ix as ede, iz as tde, iA as rde, de as nde, iD as ide, d7 as ade, d8 as ode, P as sde, dc as lde, iy as ude, d9 as cde, iC as fde, iH as hde, il as dde, im as vde, io as pde, ik as gde, da as mde, iF as yde, iv as _de, is as bde, ir as xde, dd as wde, gc as Sde, gV as Cde, iE as Tde, bi as Dde, d6 as Ade, d3 as Mde, d5 as Ede, d2 as Lde, it as Nde, gX as Ide, gR as kde, gH as Pde, iK as Rde, cM as Ode, d4 as Bde, iJ as zde, bO as Vde, eg as Fde, gb as Gde, gI as Hde, b as Wde, bR as Ude, hb as $de, bg as Yde, eh as Xde, iq as qde, gT as Zde, gS as jde, iI as Kde } from "./F0CanvasPanel-BragP3zs.js";
3
3
  import { jsx as S, jsxs as B, Fragment as it } from "react/jsx-runtime";
4
- import { C as WF, W as UF, t as $F, v as YF, w as XF, x as Lw, aJ as qF, aK as ZF, K as jF, D as KF, z as QF, H as JF, J as e5, k as t5, T as NN, aL as r5, aM as n5, aN as i5, aO as a5, aP as o5, aQ as IN, aR as s5, n as Ab, aS as Ya, aT as l5, s as Mb, aU as Eb, a6 as u5, aV as c5, aW as _s, aX as kN, aY as f5, aZ as h5, a_ as d5, a$ as v5, b0 as p5, b1 as g5, ai as m5, ay as y5, b2 as _5, ad as b5, E as x5, a as w5, f as Jv, R as Lb, u as Nb, ag as PN, O as Ib, b3 as RN, b4 as Nw, b5 as kb, U as S5, g as ON, am as BN, b6 as C5, b7 as T5, b8 as D5, b9 as bs, ba as A5, az as M5, M as E5 } from "./CoachmarkProvider-CGTyzNuB.js";
5
- import { Y as Jde, Z as eve, a7 as tve, _ as rve, a3 as nve, bw as ive, bv as ave, bo as ove, bc as sve, bb as lve, bd as uve, be as cve, bg as fve, F as hve, aB as dve, aA as vve, aE as pve, af as gve, aa as mve, aG as yve, ab as _ve, $ as bve, bx as xve, aC as wve, aD as Sve, ac as Cve, a0 as Tve, P as Dve, a2 as Ave, a4 as Mve, aF as Eve, ae as Lve, aH as Nve, a1 as Ive, a5 as kve, bz as Pve, N as Rve, Q as Ove, bn as Bve, bt as zve, bt as Vve, bu as Fve, bj as Gve, bi as Hve, by as Wve, aw as Uve, bl as $ve, bm as Yve, a9 as Xve, bA as qve, bB as Zve, I as jve, h as Kve, bp as Qve, bq as Jve, br as epe, bf as tpe, bk as rpe, i as npe, bs as ipe, bh as ape, bC as ope } from "./CoachmarkProvider-CGTyzNuB.js";
4
+ import { C as WF, W as UF, v as $F, w as YF, x as XF, y as Lw, aK as qF, aL as ZF, N as jF, D as KF, G as QF, I as JF, K as e5, k as t5, U as NN, aM as r5, aN as n5, aO as i5, aP as a5, aQ as o5, aR as IN, aS as s5, n as Ab, aT as Ya, aU as l5, t as Mb, aV as Eb, a7 as u5, aW as c5, aX as _s, aY as kN, aZ as f5, a_ as h5, a$ as d5, b0 as v5, b1 as p5, b2 as g5, aj as m5, az as y5, b3 as _5, ae as b5, E as x5, a as w5, f as Jv, R as Lb, u as Nb, ah as PN, O as Ib, b4 as RN, b5 as Nw, b6 as kb, X as S5, g as ON, an as BN, b7 as C5, b8 as T5, b9 as D5, ba as bs, bb as A5, aA as M5, M as E5 } from "./CoachmarkProvider-fGHyrGJW.js";
5
+ import { Z as Jde, _ as eve, a8 as tve, $ as rve, a4 as nve, bx as ive, bw as ave, bp as ove, bd as sve, bc as lve, be as uve, bf as cve, bh as fve, F as hve, aC as dve, aB as vve, aF as pve, ag as gve, ab as mve, aH as yve, ac as _ve, a0 as bve, by as xve, aD as wve, aE as Sve, ad as Cve, a1 as Tve, P as Dve, a3 as Ave, a5 as Mve, aG as Eve, af as Lve, aI as Nve, a2 as Ive, a6 as kve, bA as Pve, Q as Rve, T as Ove, bo as Bve, bu as zve, bu as Vve, bv as Fve, bk as Gve, bj as Hve, bz as Wve, ax as Uve, bm as $ve, bn as Yve, aa as Xve, bB as qve, bC as Zve, J as jve, h as Kve, bq as Qve, br as Jve, bs as epe, bg as tpe, bl as rpe, i as npe, bt as ipe, bi as ape, bD as ope } from "./CoachmarkProvider-fGHyrGJW.js";
6
6
  import * as wt from "react";
7
7
  import L5, { forwardRef as Tr, useRef as ce, useImperativeHandle as N5, Children as xd, createContext as Ba, useContext as is, useState as ue, useMemo as me, useEffect as Me, useCallback as de, useLayoutEffect as Uy, isValidElement as zN, Fragment as Ul, useSyncExternalStore as wl, useId as sc, memo as I5 } from "react";
8
8
  import { createPortal as ep } from "react-dom";
9
9
  import { d as re, u as uf, h as k5, i as el, P as cf, g as $l, j as P5, f as za } from "./tooltip-Cik7KBQT.js";
10
- import { l as $y, c as VN, d as wd, r as Yy } from "./F0VideoPlayer-Cjdwg3I9.js";
11
- import { F as lpe } from "./F0VideoPlayer-Cjdwg3I9.js";
12
- import { D as R5, E as Sd, G as Pb, H as FN, I as GN, J as jn, K as O5, L as B5, M as z5, N as V5, O as F5, F as G5 } from "./F0AiProcessingOverlay-i1gfeTef.js";
13
- import { A as cpe, C as fpe, t as hpe, s as dpe, v as vpe, y as ppe, l as gpe, i as mpe, q as ype, z as _pe, B as bpe, p as xpe, r as wpe, j as Spe, e as Cpe, g as Tpe, k as Dpe, T as Ape, w as Mpe, h as Epe, a as Lpe, n as Npe, m as Ipe, o as kpe, b as Ppe, f as Rpe, x as Ope, c as Bpe, d as zpe, u as Vpe } from "./F0AiProcessingOverlay-i1gfeTef.js";
14
- import { F as Gpe, p as Hpe } from "./index-PGrHyWOP.js";
15
- import { c as Upe } from "./pdfWorker-CDMnVGUJ.js";
10
+ import { l as $y, c as VN, d as wd, r as Yy } from "./F0VideoPlayer-CMR5ZpyW.js";
11
+ import { F as lpe } from "./F0VideoPlayer-CMR5ZpyW.js";
12
+ import { D as R5, E as Sd, G as Pb, H as FN, I as GN, J as jn, K as O5, L as B5, M as z5, N as V5, O as F5, F as G5 } from "./F0AiProcessingOverlay--0Bl_XZf.js";
13
+ import { A as cpe, C as fpe, t as hpe, s as dpe, v as vpe, y as ppe, l as gpe, i as mpe, q as ype, z as _pe, B as bpe, p as xpe, r as wpe, j as Spe, e as Cpe, g as Tpe, k as Dpe, T as Ape, w as Mpe, h as Epe, a as Lpe, n as Npe, m as Ipe, o as kpe, b as Ppe, f as Rpe, x as Ope, c as Bpe, d as zpe, u as Vpe } from "./F0AiProcessingOverlay--0Bl_XZf.js";
14
+ import { F as Gpe, p as Hpe } from "./index-D2F78glP.js";
15
+ import { c as Upe } from "./pdfWorker-uhcsAraB.js";
16
16
  import { g as H5 } from "./_commonjsHelpers-ByX85dGu.js";
17
17
  import { utils as dl, write as HN } from "./xlsx-CzlURDDb.js";
18
18
  import { defaultTranslations as Ype } from "./i18n-provider-defaults.js";
@@ -1,7 +1,7 @@
1
- import { S as L, m as ye, u as Z, n as Se, o as Re, i as ke, j as _e, k as Ne, q as Ce, l as Le, w as Fe, r as Ve, s as Te } from "./F0CanvasPanel-kyz8aCo6.js";
1
+ import { S as L, m as ye, u as Z, n as Se, o as Re, i as ke, j as _e, k as Ne, q as Ce, l as Le, w as Fe, r as Ve, s as Te } from "./F0CanvasPanel-BragP3zs.js";
2
2
  import { jsx as t, jsxs as y } from "react/jsx-runtime";
3
3
  import { lazy as J, forwardRef as ne, Suspense as He, useState as V, useRef as A, useMemo as te, useCallback as w, useEffect as T } from "react";
4
- import { e as Ee, D as Ue, P as je, c as De } from "./pdfWorker-CDMnVGUJ.js";
4
+ import { e as Ee, D as Ue, P as je, c as De } from "./pdfWorker-uhcsAraB.js";
5
5
  import { F as We } from "./Printer-BD-FEi_2.js";
6
6
  import { d as ae } from "./tooltip-Cik7KBQT.js";
7
7
  import './index.css';const Oe = ({
@@ -222,7 +222,7 @@ import './index.css';const Oe = ({
222
222
  }), i;
223
223
  };
224
224
  Ee();
225
- const qe = J(() => import("./SheetViewer-DaN0Ahv8.js")), Ge = J(() => import("./DocxViewer-Dvz0Jo7o.js")), Ze = J(() => import("./TextViewer-DY-zaYsl.js")), oe = 48, se = ne(
225
+ const qe = J(() => import("./SheetViewer-DH9nqjul.js")), Ge = J(() => import("./DocxViewer-DmMRVboA.js")), Ze = J(() => import("./TextViewer-BNT3vuPP.js")), oe = 48, se = ne(
226
226
  (o, a) => {
227
227
  const { kind: e = "pdf", mimeType: i, ...l } = o;
228
228
  if (e === "pdf") return /* @__PURE__ */ t(le, { ref: a, ...l });
@@ -0,0 +1,4 @@
1
+ import { F as r } from "./F0VideoPlayer-CMR5ZpyW.js";
2
+ export {
3
+ r as F0VideoPlayer
4
+ };
@@ -1,8 +1,8 @@
1
1
  import { jsx, jsxs } from "react/jsx-runtime";
2
2
  import { createContext, useReducer, forwardRef, useRef, useImperativeHandle, useEffect, useCallback, useMemo, useContext, useLayoutEffect } from "react";
3
3
  import { e as clsx } from "./tooltip-Cik7KBQT.js";
4
- import { W as invariant } from "./F0CanvasPanel-kyz8aCo6.js";
5
- import { d as dequal } from "./CoachmarkProvider-CGTyzNuB.js";
4
+ import { W as invariant } from "./F0CanvasPanel-BragP3zs.js";
5
+ import { d as dequal } from "./CoachmarkProvider-fGHyrGJW.js";
6
6
  import { a as getAugmentedNamespace, g as getDefaultExportFromCjs } from "./_commonjsHelpers-ByX85dGu.js";
7
7
  import { c as commonjsRequire } from "./_commonjs-dynamic-modules-BpilXLfW.js";
8
8
  import './pdfWorker.css';var pdf$1 = { exports: {} };