@factorialco/f0-react 6.23.2 → 6.24.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
@@ -3413,7 +3413,7 @@ export declare const F0AiChatProvider: ({ enabled, side, panelContentSide, initi
3413
3413
  * coupling to `useAiChat()` or CopilotKit — wrappers like F0AiChat
3414
3414
  * provide the wiring.
3415
3415
  */
3416
- 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;
3416
+ 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;
3417
3417
 
3418
3418
  export declare type F0AiChatTextAreaProps = {
3419
3419
  ref: RefObject<HTMLDivElement>;
@@ -3500,6 +3500,39 @@ export declare type F0AiChatTextAreaProps = {
3500
3500
  /** Called when the user clicks a sub-suggestion. Receives the picked
3501
3501
  * `item` and its parent `group` (the outline-button entry). */
3502
3502
  onSuggestionClick?: (item: WelcomeScreenSuggestionItem, group: WelcomeScreenSuggestion) => void;
3503
+ /**
3504
+ * Where the welcome suggestions row sits relative to the composer.
3505
+ *
3506
+ * - `"above"` (the default) — its own block over the field, the arrangement
3507
+ * every consumer has had: the row stands on the page, the field below it is
3508
+ * a plain composer, and its popover opens upward into the welcome screen's
3509
+ * empty space.
3510
+ *
3511
+ * - `"inside"` — the row moves INTO the field, at its foot, so the field's own
3512
+ * border and AI focus highlight enclose it and the composer reads as a
3513
+ * single bar about two lines tall. Its popover opens downward, because up is
3514
+ * now the text you are about to type.
3515
+ *
3516
+ * ⚠️ `"inside"` IS A COMPOSER SHAPE, NOT JUST A POSITION. It also moves the
3517
+ * send button onto the textarea's own line (at `sm`, centred on the text) and
3518
+ * puts One's mark in front of the text. Neither is a feature bolted onto this
3519
+ * prop — they are what make the placement possible and legible. The action row
3520
+ * is full-width, so a chips row plus an action row inside one field is three
3521
+ * stacked bands and the "single bar" is gone; with send trailing the text there
3522
+ * are two, text then suggestions. The attachment, host (`toolbarStart`) and
3523
+ * dictation controls keep their own row when the host enables them; with none
3524
+ * of them the field is just the two bands.
3525
+ *
3526
+ * THE INLINE SEND FOLLOWS THE PROP, NOT THE WELCOME STATE. The suggestions
3527
+ * themselves are welcome-screen-only as they always were, but a composer that
3528
+ * put send back in the action row the moment the first message landed would
3529
+ * change shape under the reader mid-conversation. `"inside"` therefore keeps
3530
+ * the two-band bar for the whole thread; after the welcome screen it is simply
3531
+ * a bar with no chips in it.
3532
+ *
3533
+ * @default "above"
3534
+ */
3535
+ welcomeScreenSuggestionsPlacement?: "above" | "inside";
3503
3536
  /**
3504
3537
  * Cards rendered as a grid below the composer on the fullscreen welcome
3505
3538
  * screen. Each card carries its own `onClick`; the host decides the behavior.
package/dist/ai.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { C as e, D as r, c as t, F as i, a as o, f as n, g as F, d as C, e as l, I as A, P as d, b as u, u as h } from "./F0CanvasPanel-kyz8aCo6.js";
2
2
  import { defaultTranslations as c } from "./i18n-provider-defaults.js";
3
- import { A as P, C as T, t as p, s as v, v as g, y as f, l as y, i as S, q as x, z as b, B as k, p as H, r as O, j as V, e as w, g as B, k as M, F as z, T as D, w as L, h as j, a as q, n as E, m as G, o as R, b as J, f as K, x as N, c as Q, d as U, u as W } from "./F0AiProcessingOverlay-i1gfeTef.js";
3
+ import { A as P, C as T, t as p, s as v, v as g, y as f, l as y, i as S, q as x, z as b, B as k, p as H, r as O, j as V, e as w, g as B, k as M, F as z, T as D, w as L, h as j, a as q, n as E, m as G, o as R, b as J, f as K, x as N, c as Q, d as U, u as W } from "./F0AiProcessingOverlay-CPJ5KBQR.js";
4
4
  export {
5
5
  P as AiChatTranslationsProvider,
6
6
  e as ChatSpinner,