@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/{F0AiProcessingOverlay-i1gfeTef.js → F0AiProcessingOverlay-CPJ5KBQR.js} +2133 -2073
- package/dist/ai.d.ts +34 -1
- package/dist/ai.js +1 -1
- package/dist/component-status.js +1 -1
- package/dist/f0.d.ts +34 -1
- package/dist/f0.js +2 -2
- package/dist/styles.css +1 -1
- package/package.json +1 -1
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
|
@@ -9,8 +9,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
10
|
import { l as $y, c as VN, d as wd, r as Yy } from "./F0VideoPlayer-Cjdwg3I9.js";
|
|
11
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-
|
|
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-
|
|
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-CPJ5KBQR.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-CPJ5KBQR.js";
|
|
14
14
|
import { F as Gpe, p as Hpe } from "./index-PGrHyWOP.js";
|
|
15
15
|
import { c as Upe } from "./pdfWorker-CDMnVGUJ.js";
|
|
16
16
|
import { g as H5 } from "./_commonjsHelpers-ByX85dGu.js";
|