@factorialco/f0-react 14.32.0 → 15.0.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.
Files changed (66) hide show
  1. package/dist/{ArchiveThumbnail-DqVIQZoW.js → ArchiveThumbnail-CMOY3hug.js} +5 -5
  2. package/dist/{ArchiveViewer-b2Wp0JUG.js → ArchiveViewer-Bc5iN2gm.js} +15 -15
  3. package/dist/{ChatPostComposerDialog-Zsz4Ni_S.js → ChatPostComposerDialog-NOdBRHQW.js} +3 -3
  4. package/dist/{CoachmarkProvider-C78Xiefk.js → CoachmarkProvider-CQE9J_S1.js} +26525 -26539
  5. package/dist/{CodeThumbnail-u2nL4mSO.js → CodeThumbnail-JLPjPSHE.js} +1 -1
  6. package/dist/{CodeViewer-hVg25taQ.js → CodeViewer-HhRZ_KtU.js} +8 -8
  7. package/dist/{DocumentToolbar-DY5GWF2m.js → DocumentToolbar-C3YeGLiY.js} +5 -5
  8. package/dist/{DocxViewer-BvNPALXn.js → DocxViewer-B_pUywX2.js} +3 -3
  9. package/dist/{F0AiProcessingOverlay-DJL2v246.js → F0AiProcessingOverlay-CreyUmNt.js} +2869 -2398
  10. package/dist/{F0Alert-BLx10d2-.js → F0Alert-Dfw9wvmG.js} +15 -15
  11. package/dist/F0AudioPlayer-BqKZE5cb.js +2 -0
  12. package/dist/{F0Button-BfcH39fa.js → F0Button-Hs9dD3kp.js} +3281 -3224
  13. package/dist/{F0CanvasPanel-D7WW8pd6.js → F0CanvasPanel-QAikAHrt.js} +9045 -8669
  14. package/dist/F0CanvasPanel.css +1 -1
  15. package/dist/{F0DocumentViewer-DqmvgGr8.js → F0DocumentViewer-BBZNZzXF.js} +1 -1
  16. package/dist/{F0DocumentViewer-CjrlS3ZO.js → F0DocumentViewer-DtBBvHeY.js} +4 -4
  17. package/dist/{F0Icon-BODMWayd.js → F0Icon-C0Ks-zGo.js} +1 -1
  18. package/dist/{F0Map-CVeX6rRX.js → F0Map-DrGsOz1c.js} +609 -599
  19. package/dist/{F0Select-CYFD0h9x.js → F0Select-D8elfH2c.js} +7134 -7107
  20. package/dist/{F0Text-DYI-dgwG.js → F0Text-BdLMC6rw.js} +2 -2
  21. package/dist/F0VideoPlayer-BzehPrsz.js +1 -0
  22. package/dist/{F0VideoPlayer-Z7YNLq4v.js → F0VideoPlayer-mLzBl6O5.js} +255 -255
  23. package/dist/{HtmlThumbnail-CENW-PSn.js → HtmlThumbnail-C2fHnIU5.js} +1 -1
  24. package/dist/{HtmlViewer-CkYgtVYE.js → HtmlViewer-CNHsP0_Q.js} +9 -9
  25. package/dist/{LayoutGroup-BDMkthvj.js → LayoutGroup-B5tU1ztA.js} +14 -14
  26. package/dist/{Map-BDHD0YwP.js → Map-Cfzh4DYS.js} +13 -13
  27. package/dist/{PdfThumbnail-8GNGxMJt.js → PdfThumbnail-BhMepsUK.js} +1 -1
  28. package/dist/{PdfViewer-Dnw3HwAO.js → PdfViewer-CL30Vr4B.js} +11 -11
  29. package/dist/{SandboxedHtmlFrame-DulTTwnE.js → SandboxedHtmlFrame-QjmWXSV-.js} +2 -2
  30. package/dist/{SheetViewer-zWlafaWN.js → SheetViewer-Cs_vLeh4.js} +15 -15
  31. package/dist/{TextViewer-Z77_eAGH.js → TextViewer-CGoMovpP.js} +4 -4
  32. package/dist/ai.d.ts +4 -4
  33. package/dist/ai.js +5 -5
  34. package/dist/component-status.js +34 -12
  35. package/dist/{dist-Cuwaibqg.js → dist-BCNVh6y5.js} +2 -1
  36. package/dist/dist-C8J2FPJo.js +970 -0
  37. package/dist/{dist-Dh-hHue-.js → dist-CJIEhLuL.js} +3 -3
  38. package/dist/dist-CQSuXDpA.js +12 -0
  39. package/dist/{dist-B1ho8lUr.js → dist-DVsrUl0U.js} +6 -6
  40. package/dist/{dist-CYzeNTKV.js → dist-DpAd2wW2.js} +40 -40
  41. package/dist/experimental.d.ts +34 -73
  42. package/dist/experimental.js +6659 -7078
  43. package/dist/{exports-Ck-BjPQ_.d.ts → exports-BSI98RKf.d.ts} +96 -94
  44. package/dist/f0.d.ts +52 -8
  45. package/dist/f0.js +1761 -1761
  46. package/dist/{google-D1V0swd7.js → google-CG30Y63J.js} +1 -1
  47. package/dist/{highlight-CXWCrLa3.js → highlight-DUGKJ8WM.js} +7 -7
  48. package/dist/{i18n-provider-C0z4575b.js → i18n-provider-DoTL-0tJ.js} +1 -1
  49. package/dist/{i18n-provider-defaults-D87XbZtT.d.ts → i18n-provider-defaults-BkNbvakp.d.ts} +21 -15
  50. package/dist/{i18n-provider-defaults-BeyCAnkS.js → i18n-provider-defaults-ZqFx7uFw.js} +21 -19
  51. package/dist/i18n-provider-defaults.d.ts +1 -1
  52. package/dist/i18n-provider-defaults.js +1 -1
  53. package/dist/{index-BakET5p_.d.ts → index-CeGTmQfe.d.ts} +308 -385
  54. package/dist/{maplibre-HGgd69Ss.js → maplibre-iSstWV_1.js} +2 -2
  55. package/dist/{pdfWorker-t0S8Tmzi.js → pdfWorker-DwNAnhfp.js} +1 -1
  56. package/dist/{popover-BsFj9cmb.js → popover-CCSQvMSp.js} +898 -1678
  57. package/dist/{skeleton-DWdckpXm.js → skeleton-BsalZgC5.js} +1 -1
  58. package/dist/styles.css +1 -1
  59. package/dist/{toolbarStyles-B9vf6pee.js → toolbarStyles-DGCICoyx.js} +1 -1
  60. package/dist/{types-BqSHd7u-.d.ts → types-Brch_2zb.d.ts} +2 -2
  61. package/dist/{useData-C7KI_3q1.js → useData-D4FE64eT.js} +110 -109
  62. package/package.json +6 -3
  63. package/tailwind.config.ts +49 -0
  64. package/dist/F0AudioPlayer-D6O-SSQc.js +0 -2
  65. package/dist/F0VideoPlayer-DSAREEuf.js +0 -1
  66. package/dist/scrollarea-CStky4Xl.js +0 -691
@@ -1,5 +1,5 @@
1
- import { $i as RecorderStatus, At as PendingQuote, Cn as RelaxedNumericWithFormatter, Et as F0AiChatWelcomeCard, Fa as AvatarVariant, Fi as F0ComposerHandle, Ft as WelcomeScreenSuggestionItem, Gn as Level, Ii as F0ComposerLabels, Ja as F0AvatarPersonProps, Ki as F0ComposerState, Ma as DataAttributes, Mt as UploadedFile, Pi as F0ComposerDraft, Pt as WelcomeScreenSuggestion, To as WithDataTestIdReturnType, Zi as F0ComposerVoice, ai as AiChatFilePreviewConfig, at as AiChatComposerAction, br as CanvasEntityDefinition, bt as AiChatUsageLimits, ci as AttachmentDocumentKind, dt as AiChatCredits, eo as FileDef, ft as AiChatDisclaimer, ia as ComposerMentionPinned, ii as AiChatFileKind, io as F0AvatarCompanyProps, jt as TranscribeFn, ki as ComposerAutocompletePlugin, kt as PendingContext, lr as PersonProfile, mt as AiChatFileAttachmentConfig, o as F0CardHorizontalProps, po as ModuleId, pt as AiChatEmployeeCredits, qa as F0AvatarTeamProps, qr as DataDownloadDataset, ra as ComposerMentionItem, ri as AiChatFile, sa as ComposerMentionSource, si as AiChatShowFilesItem, ut as AiChatCreditWarning, vr as CanvasContent, xn as Numeric, xo as IconType } from "./index-BakET5p_.js";
2
- import { CSSProperties, ComponentProps, KeyboardEvent, ReactNode, Ref, RefObject, SVGProps } from "react";
1
+ import { $i as RecorderStatus, Ct as PendingContext, Et as UploadedFile, Fa as DataAttributes, Fi as F0ComposerLabels, Gi as F0ComposerSendKind, Ki as F0ComposerState, Kr as DataDownloadDataset, Ni as F0ComposerDraft, Oi as ComposerAutocompletePlugin, Oo as WithDataTestIdReturnType, Ot as WelcomeScreenSuggestion, Pi as F0ComposerHandle, Ra as AvatarVariant, Tt as TranscribeFn, Vn as Level, Xa as F0AvatarTeamProps, Za as F0AvatarPersonProps, Zi as F0ComposerVoice, _n as Numeric, _r as CanvasContent, bt as F0AiChatWelcomeCard, ct as AiChatDisclaimer, go as ModuleId, ht as AiChatUsageLimits, ia as ComposerMentionPinned, ii as AiChatFilePreviewConfig, kt as WelcomeScreenSuggestionItem, lt as AiChatFileAttachmentConfig, ni as AiChatFile, nt as AiChatComposerAction, o as F0CardHorizontalProps, oi as AiChatShowFilesItem, ra as ComposerMentionItem, ri as AiChatFileKind, ro as FileDef, rr as PersonProfile, sa as ComposerMentionSource, si as AttachmentDocumentKind, so as F0AvatarCompanyProps, st as AiChatCreditWarning, wo as IconType, wt as PendingQuote, yn as RelaxedNumericWithFormatter, yr as CanvasEntityDefinition } from "./index-CeGTmQfe.js";
2
+ import { CSSProperties, ComponentProps, KeyboardEvent, ReactNode, Ref, SVGProps } from "react";
3
3
  import { AgentState, TrackReferenceOrPlaceholder } from "@livekit/components-react";
4
4
  import { VariantProps } from "cva";
5
5
  import { LocalAudioTrack, RemoteAudioTrack } from "livekit-client";
@@ -235,10 +235,10 @@ type ActionItemStatus = (typeof actionItemStatuses)[number];
235
235
  //#region src/elements/ai/F0ActionItem/F0ActionItem.d.ts
236
236
  declare const F0ActionItem: ({ title, suffix, status, inGroup }: F0ActionItemProps) => import("react").JSX.Element;
237
237
  //#endregion
238
- //#region src/elements/ai/F0ActionItem/components/globeSpinMath.d.ts
238
+ //#region src/elements/ai/ChatSpinner/globeSpinMath.d.ts
239
239
  type SpinMotion = "thinking" | "working" | "asking";
240
240
  //#endregion
241
- //#region src/elements/ai/F0ActionItem/components/ChatSpinner.d.ts
241
+ //#region src/elements/ai/ChatSpinner/ChatSpinner.d.ts
242
242
  type ChatSpinnerVariant = SpinMotion | "default" | "continuous";
243
243
  interface ChatSpinnerProps {
244
244
  size?: number;
@@ -672,98 +672,50 @@ declare namespace F0AiTableCard {
672
672
  }
673
673
  //#endregion
674
674
  //#region src/addons/ai/F0AiChatHeader/types.d.ts
675
- interface F0AiChatHeaderAction {
676
- /** Stable identifier used as the React key. */
677
- id: string;
678
- /** Already-localized accessible label and tooltip. */
679
- label: string;
680
- icon: IconType;
681
- onClick: () => void;
682
- }
683
675
  interface F0AiChatHeaderProps {
684
676
  /**
685
- * When true, renders the with-history variant: the title acts as a thread
686
- * selector that triggers `onOpenHistory`. When false (default), renders
687
- * the legacy variant with `title` shown as a static heading.
688
- */
689
- historyEnabled?: boolean;
690
- /** Static title for the legacy variant. Empty or undefined hides the heading. */
691
- title?: string;
692
- /**
693
- * With-history variant: title of the currently loaded thread, or null for
694
- * a brand-new conversation (renders the "New conversation" placeholder).
677
+ * Title of the currently loaded thread, or null while it has none. The
678
+ * header shows no title until the host passes one.
695
679
  */
696
680
  currentThreadTitle?: string | null;
697
681
  /** Whether the chat is currently in fullscreen mode (controls expand/minimize icon). */
698
682
  fullscreen?: boolean;
699
- /** When true, hides the expand/minimize button and the history selector. */
700
- lockVisualizationMode?: boolean;
701
683
  /** Toggle fullscreen ↔ sidepanel. */
702
684
  onToggleVisualizationMode?: () => void;
703
685
  /** Close button (X) callback. */
704
686
  onClose: () => void;
705
687
  /**
706
- * Legacy variant only: callback for the "new chat" button. Hidden when
707
- * `hasMessages` is false (i.e. the thread is empty so a new chat would be
708
- * a no-op).
688
+ * Callback for the "new chat" button, which shows exactly when it is passed.
689
+ * Pass it only while a new chat would leave something behind: messages, or
690
+ * a stored conversation that is loading or failed to load.
709
691
  */
710
692
  onNewChat?: () => void;
711
- /** With-history variant: callback fired when the user clicks the title. */
712
- onOpenHistory?: () => void;
713
- /** Legacy variant gate: only renders the "new chat" button when true. */
714
- hasMessages?: boolean;
715
- /**
716
- * Minimal header: render only header actions plus the expand and close controls
717
- * (no title, new chat or credits popover). Use when a sidebar owns the chat
718
- * navigation and the credits/settings popover (see `F0AiChatCreditsButton`).
719
- */
720
- compact?: boolean;
721
- /** Credits configuration. When present, renders the credits popover button. */
722
- credits?: AiChatCredits;
723
693
  /**
724
- * Employee-level credits configuration. When present, an employee-only
725
- * popover is rendered **instead of** the classic one (mutually exclusive
726
- * with `credits`). Hosts opt in per-employee.
694
+ * The conversation list, usually `F0AiChatHistory`. A conversations button
695
+ * before the title opens it, hanging from the header. Leave it out where
696
+ * there is none.
727
697
  */
728
- employeeCredits?: AiChatEmployeeCredits;
698
+ history?: ReactNode;
699
+ /** Whether the conversation list is open. */
700
+ historyOpen?: boolean;
729
701
  /**
730
- * Additional actions rendered immediately before the fullscreen and close
731
- * controls. F0 owns their presentation so they match the built-in actions.
702
+ * Called when the conversations button, Escape or a click outside the list
703
+ * opens or closes it.
732
704
  */
733
- actions?: F0AiChatHeaderAction[];
705
+ onHistoryOpenChange?: (open: boolean) => void;
734
706
  }
735
707
  //#endregion
736
708
  //#region src/addons/ai/F0AiChatHeader/F0AiChatHeader.d.ts
737
709
  /**
738
- * Picks the right credits popover to render based on which prop the host
739
- * provided. `employeeCredits` (employee-only) takes precedence; otherwise
740
- * falls back to the classic `credits` popover. Renders nothing when neither
741
- * is set.
742
- */
743
- declare const CreditsPopoverPicker: ({ credits, employeeCredits, trigger }: Pick<F0AiChatHeaderProps, "credits" | "employeeCredits"> & {
744
- /** Custom popover trigger (asChild). Defaults to the Sliders icon button. */
745
- trigger?: ReactNode;
746
- }) => import("react").JSX.Element | null;
747
- /**
748
- * The AI chat credits / settings popover button, on its own. Use it to surface
749
- * the popover outside the chat header — e.g. from a sidebar that already owns
750
- * the chat navigation (history, new chat), leaving the header minimal.
751
- */
752
- declare const F0AiChatCreditsButton: typeof CreditsPopoverPicker;
753
- /**
754
- * Headless chat header. Renders a top bar with title (or thread selector),
755
- * credits popover, fullscreen toggle and close button. Has two visual
756
- * variants:
757
- * - with-history: title acts as a thread selector (clickable) — the host
758
- * wires `onOpenHistory` to mount its own history dialog.
759
- * - legacy: title is static; a "new chat" button is shown when `hasMessages`.
760
- * Hosts can add header actions that F0 renders alongside the built-in controls.
710
+ * Headless chat header: the conversation's title, led by a conversations
711
+ * button when the host passes `history`, then a "new chat" button when it
712
+ * passes `onNewChat`, the fullscreen toggle and close.
761
713
  *
762
714
  * Decoupled from CopilotKit, and prop-driven apart from one read: whether the
763
715
  * panel is currently covering the frame, which decides if expanding means
764
716
  * anything. Only the provider knows that, and it answers safely when absent.
765
717
  */
766
- declare const F0AiChatHeader: ({ historyEnabled, title, currentThreadTitle, fullscreen, lockVisualizationMode, onToggleVisualizationMode, onClose, onNewChat, onOpenHistory, hasMessages, credits, employeeCredits, compact, actions }: F0AiChatHeaderProps) => import("react").JSX.Element;
718
+ declare const F0AiChatHeader: ({ currentThreadTitle, fullscreen, onToggleVisualizationMode, onClose, onNewChat, history, historyOpen, onHistoryOpenChange }: F0AiChatHeaderProps) => import("react").JSX.Element;
767
719
  //#endregion
768
720
  //#region src/addons/ai/F0AiChatHistory/useChatHistory.d.ts
769
721
  interface ChatThread {
@@ -850,15 +802,35 @@ interface ThreadActionHandlers extends ThreadActionsProps {
850
802
  onUnpin: (id: string) => void;
851
803
  onDelete: (id: string) => void;
852
804
  }
805
+ /**
806
+ * A destination listed under the conversations, styled like "Start new chat"
807
+ * (e.g. the host's Routines page).
808
+ */
809
+ interface F0AiChatHistoryAction {
810
+ id: string;
811
+ label: string;
812
+ icon: IconType;
813
+ onClick: () => void;
814
+ }
853
815
  interface F0AiChatHistoryProps extends ThreadActionsProps {
854
- /** Close the dialog (overlay click, ESC, or post-selection). */
816
+ /** Close the history once a thread, new chat or action is picked. */
855
817
  onClose: () => void;
856
818
  /** Called when the user picks a thread to load. */
857
819
  onSelectThread: (threadId: string, title: string) => void;
858
- /** Called when the user clicks "Start new chat". */
859
- onNewChat: () => void;
820
+ /**
821
+ * Called when the user clicks "Start new chat". The row shows only when it
822
+ * is passed: a host whose header already offers a new chat leaves it out.
823
+ */
824
+ onNewChat?: () => void;
825
+ /**
826
+ * Rows in a section of their own under the conversations, styled like
827
+ * "Start new chat". Picking one closes the history.
828
+ */
829
+ actions?: F0AiChatHistoryAction[];
860
830
  /** Thread list (already fetched). */
861
831
  threads: ChatThread[];
832
+ /** The thread open in the chat, marked in the list. */
833
+ activeThreadId?: string | null;
862
834
  /** Whether the threads are still being fetched. */
863
835
  isLoading: boolean;
864
836
  /** Fetch error message, or null when no error. */
@@ -875,19 +847,21 @@ interface F0AiChatHistoryProps extends ThreadActionsProps {
875
847
  //#endregion
876
848
  //#region src/addons/ai/F0AiChatHistory/F0AiChatHistory.d.ts
877
849
  /**
878
- * Headless chat-history dialog. Receives threads + handlers via props so
879
- * it can be wired against any backend or mocked in stories. No CopilotKit
880
- * or `useAiChat()` dependency.
850
+ * Headless chat history, the content `F0AiChatHeader` opens from its
851
+ * conversations button. Receives threads + handlers via props so it can be
852
+ * wired against any backend or mocked in stories. No CopilotKit or
853
+ * `useAiChat()` dependency.
881
854
  */
882
- declare const F0AiChatHistory: ({ onClose, onSelectThread, onNewChat, threads, isLoading, error, pinnedIds, onPinThread, onUnpinThread, onDeleteThread, threadActions }: F0AiChatHistoryProps) => import("react").ReactPortal;
855
+ declare function F0AiChatHistory({ onClose, onSelectThread, onNewChat, actions, threads, activeThreadId, isLoading, error, pinnedIds, onPinThread, onUnpinThread, onDeleteThread, threadActions }: F0AiChatHistoryProps): import("react").JSX.Element;
883
856
  //#endregion
884
857
  //#region src/addons/ai/F0AiChatHistory/components/CollapsibleGroup.d.ts
885
858
  interface CollapsibleGroupProps extends ThreadActionHandlers {
886
859
  label: string;
887
860
  threads: ChatThread[];
888
861
  pinnedIds: Set<string>;
862
+ activeThreadId?: string | null;
889
863
  }
890
- declare function CollapsibleGroup({ label, threads, pinnedIds, onSelect, onPin, onUnpin, onDelete, threadActions }: CollapsibleGroupProps): import("react").JSX.Element;
864
+ declare function CollapsibleGroup({ label, threads, pinnedIds, activeThreadId, onSelect, onPin, onUnpin, onDelete, threadActions }: CollapsibleGroupProps): import("react").JSX.Element;
891
865
  //#endregion
892
866
  //#region src/addons/ai/F0AiChatHistory/components/ThreadItem.d.ts
893
867
  interface ThreadItemProps extends ThreadActionHandlers {
@@ -904,8 +878,14 @@ interface ThreadItemProps extends ThreadActionHandlers {
904
878
  isPending?: boolean;
905
879
  /** Override the row classes (e.g. to match the sidebar's chat-row paddings). */
906
880
  className?: string;
881
+ /**
882
+ * The history list's row: the title, and how long ago the thread was updated
883
+ * on a line below, with the full date as its title. Without it the row is
884
+ * one line and the full date shows on hover only.
885
+ */
886
+ relativeTime?: boolean;
907
887
  }
908
- declare function ThreadItem({ thread, isPinned, isActive, isPending, onSelect, onPin, onUnpin, onDelete, threadActions, className }: ThreadItemProps): import("react").JSX.Element;
888
+ declare function ThreadItem({ thread, isPinned, isActive, isPending, onSelect, onPin, onUnpin, onDelete, threadActions, className, relativeTime }: ThreadItemProps): import("react").JSX.Element;
909
889
  //#endregion
910
890
  //#region src/addons/ai/F0AiChatHistory/components/ThreadListSkeleton.d.ts
911
891
  /**
@@ -1022,7 +1002,6 @@ interface F0AiChatTextAreaSubmitPayload {
1022
1002
  quote: PendingQuote | null;
1023
1003
  }
1024
1004
  interface F0AiChatTextAreaProps {
1025
- ref: RefObject<HTMLDivElement>;
1026
1005
  /** Emitted when the user submits. Awaited so the textarea can stay disabled. */
1027
1006
  onSubmit: (payload: F0AiChatTextAreaSubmitPayload) => void | Promise<void>;
1028
1007
  /** Called when the user clicks the stop button while a response is streaming. */
@@ -1041,8 +1020,8 @@ interface F0AiChatTextAreaProps {
1041
1020
  creditWarning?: AiChatCreditWarning;
1042
1021
  /**
1043
1022
  * Optional ReactNode rendered in place of the input. When present the
1044
- * composer enters "clarifying" mode: form submission is blocked, the
1045
- * border takes a static accent, and a nav-hint replaces the disclaimer.
1023
+ * composer enters "clarifying" mode: form submission is blocked and a
1024
+ * nav-hint replaces the disclaimer.
1046
1025
  * The host owns the panel (typically `F0ClarifyingPanel`) and its
1047
1026
  * state — F0 just renders the slot.
1048
1027
  */
@@ -1131,8 +1110,9 @@ interface F0AiChatTextAreaProps {
1131
1110
  /** Usage ring at the right end of the disclaimer row; the text then aligns left. */
1132
1111
  usageLimits?: AiChatTextAreaUsageLimits;
1133
1112
  /**
1134
- * Optional footer (e.g. powered-by, legal copy) rendered below the
1135
- * textarea on the welcome screen.
1113
+ * Optional footer (e.g. a page's own prompts or cards). Docked, it stands
1114
+ * above the field, on the welcome screen and in a thread; on the fullscreen
1115
+ * welcome screen it sits under the field; a fullscreen thread has none.
1136
1116
  */
1137
1117
  footer?: ReactNode;
1138
1118
  /**
@@ -1248,8 +1228,8 @@ interface F0AiChatTextAreaProps {
1248
1228
  padding?: "default" | "none";
1249
1229
  /**
1250
1230
  * When true on the welcome screen, the composer adopts the fullscreen
1251
- * layout: the input slot grows to claim the bottom half (so the textarea
1252
- * rises toward the vertical center) and the welcome cards render below it.
1231
+ * layout: it follows the welcome right under its prompts, the group in the
1232
+ * page's upper third, and the welcome cards render below it.
1253
1233
  * The welcome suggestions row sits above the composer in both layouts.
1254
1234
  */
1255
1235
  fullscreen?: boolean;
@@ -1261,8 +1241,11 @@ interface F0AiChatTextAreaProps {
1261
1241
  * ticket creation, connected chat inputs): the shared chat composer with the
1262
1242
  * AI chat around it, and the field named `one-ai-input`, which those hosts
1263
1243
  * query.
1244
+ *
1245
+ * In a chat window it shares the window's welcome prompt preview with the
1246
+ * prompt rows; anywhere else (the home bar, a dialog) it brings its own.
1264
1247
  */
1265
- declare const F0AiChatTextArea: (props: F0AiChatTextAreaProps) => import("react").JSX.Element;
1248
+ declare function F0AiChatTextArea(props: F0AiChatTextAreaProps): import("react").JSX.Element;
1266
1249
  //#endregion
1267
1250
  //#region src/addons/ai/F0AiChatTextArea/components/DropOverlay.d.ts
1268
1251
  interface DropOverlayProps {
@@ -1323,7 +1306,7 @@ interface F0ChatComposerProps {
1323
1306
  inProgress?: boolean;
1324
1307
  onStop?: () => void;
1325
1308
  /** `save` while editing a sent message. @default "send" */
1326
- sendKind?: "send" | "save";
1309
+ sendKind?: F0ComposerSendKind;
1327
1310
  /** Attachments ready to go: sendable with no text. */
1328
1311
  hasAttachments?: boolean;
1329
1312
  /** Send stays disabled (files still uploading). */
@@ -1339,6 +1322,17 @@ interface F0ChatComposerProps {
1339
1322
  placeholders?: string[];
1340
1323
  /** Stop typing the placeholders out (a response streams). */
1341
1324
  placeholdersPaused?: boolean;
1325
+ /**
1326
+ * Shown whole in the empty field, in the placeholder's place: a hovered
1327
+ * suggestion's prompt. It wraps and grows the field as a draft would.
1328
+ * Needs `placeholders`.
1329
+ */
1330
+ placeholderPreview?: string;
1331
+ /**
1332
+ * Keep `placeholderPreview` to one line, so the field keeps its height: for
1333
+ * a preview driven from something the growing field would move.
1334
+ */
1335
+ placeholderPreviewOneLine?: boolean;
1342
1336
  /** `combobox` (the chat) or `textbox`. @default "combobox" */
1343
1337
  role?: "combobox" | "textbox";
1344
1338
  /** The textarea's `name`. */
@@ -1377,7 +1371,10 @@ interface F0ChatComposerProps {
1377
1371
  /** Before the text, on its line. */
1378
1372
  leading?: ReactNode;
1379
1373
  /** The action row's start: attach, emoji, host controls. Called with the
1380
- * recorder status so controls can step aside while it transcribes. */
1374
+ * recorder status so controls can step aside while it transcribes. It
1375
+ * starts 4px inside the surface, so a ghost icon button's glyph starts on
1376
+ * the field's text edge; bordered controls add 4px of their own, to stand
1377
+ * as far in as the send button. */
1381
1378
  toolbarStart?: ReactNode | ((recorder: RecorderStatus) => ReactNode);
1382
1379
  /** The action row's middle, taking its slack. */
1383
1380
  toolbarCenter?: ReactNode;
@@ -1388,8 +1385,6 @@ interface F0ChatComposerProps {
1388
1385
  /** Shown instead of the field and its rows (a question the reader answers
1389
1386
  * first). The draft survives it. */
1390
1387
  replacement?: ReactNode;
1391
- /** A static accent border. */
1392
- accent?: boolean;
1393
1388
  /** Render the surface as a `<form>`: send/stop submit it. */
1394
1389
  asForm?: boolean;
1395
1390
  className?: string;
@@ -1413,14 +1408,21 @@ interface F0ChatComposerProps {
1413
1408
  * stays with the host: `onSend` gets the text and its mentions, and the
1414
1409
  * slots carry the host's chips, tray and controls.
1415
1410
  */
1416
- declare const F0ChatComposer: ({ onSend, inProgress, onStop, sendKind, hasAttachments, sendBlocked, maxLength, maxLengthError, error, labels: labelOverrides, placeholders, placeholdersPaused, role, name, mentions: mentionOptions, autocomplete: autocompletePlugin, voice, onTextChange, onCleared, onEscape, onArrowUpWhenEmpty, onPasteFiles, pastePreferText, onStateChange, header, tray, leading, toolbarStart, toolbarCenter, collapsible, collapsed, replacement, accent, asForm, className, surfaceRef, onSurfaceFocus, onSurfaceBlur, handleRef, reducedMotion, "data-testid": testId }: F0ChatComposerProps) => ReactNode;
1411
+ declare const F0ChatComposer: ({ onSend, inProgress, onStop, sendKind, hasAttachments, sendBlocked, maxLength, maxLengthError, error, labels: labelOverrides, placeholders, placeholdersPaused, placeholderPreview, placeholderPreviewOneLine, role, name, mentions: mentionOptions, autocomplete: autocompletePlugin, voice, onTextChange, onCleared, onEscape, onArrowUpWhenEmpty, onPasteFiles, pastePreferText, onStateChange, header, tray, leading, toolbarStart, toolbarCenter, collapsible, collapsed, replacement, asForm, className, surfaceRef, onSurfaceFocus, onSurfaceBlur, handleRef, reducedMotion, "data-testid": testId }: F0ChatComposerProps) => ReactNode;
1412
+ //#endregion
1413
+ //#region src/elements/F0Composer/mentions/serialise.d.ts
1414
+ /**
1415
+ * Neutralises markdown and HTML metacharacters in the user's own text, so
1416
+ * `*hola*`, `# title` or a hand-typed `<entity-ref>` render literally.
1417
+ */
1418
+ declare const escapeUserText: (value: string) => string;
1417
1419
  //#endregion
1418
1420
  //#region src/addons/ai/F0AiChatUsageLimits/F0AiChatUsageLimitsButton.d.ts
1419
1421
  /**
1420
1422
  * Headless usage-limits popover with its ring trigger. `F0AiChatTextArea`
1421
1423
  * renders it from its `usageLimits` prop.
1422
1424
  */
1423
- declare const F0AiChatUsageLimitsButton: ({ usage, error, onOpenChange, trigger, side }: F0AiChatUsageLimitsButtonProps) => import("react").JSX.Element;
1425
+ declare function F0AiChatUsageLimitsButton({ usage, error, onOpenChange, trigger, side }: F0AiChatUsageLimitsButtonProps): import("react").JSX.Element;
1424
1426
  //#endregion
1425
1427
  //#region src/addons/ai/F0AiFileAttachments/adapters.d.ts
1426
1428
  /** An uploaded file as returned by `fileAttachments.onUploadFiles`. */
@@ -1599,4 +1601,4 @@ interface F0AiProcessingOverlayProps {
1599
1601
  */
1600
1602
  declare const F0AiProcessingOverlay: import("react").MemoExoticComponent<({ active, label, className, children }: F0AiProcessingOverlayProps) => import("react").JSX.Element>;
1601
1603
  //#endregion
1602
- export { F0AiChatHeaderProps as $, UserBinaryPart as A, F0AiMask as At, ThreadItem as B, ClarifyingSelectionMode as Bt, WelcomeScreenCardsRow as C, OneIconSize as Ct, AttachedFile as D, F0AuraVoiceAnimation as Dt, AiChatTextAreaUsageLimits as E, F0HILActionConfirmationProps as Et, TrackedMention as F, F0ActionItemProps as Ft, F0AiChatHistoryProps as G, F0CanvasCard as Gt, F0AiChatHistory as H, ClarifyingStepState as Ht, F0AiChatUsageLimitsButtonProps as I, actionItemStatuses as It, ChatThread as J, ThreadActionHandlers as K, F0CanvasCardProps as Kt, UsageLimitsPopoverSide as L, F0ClarifyingPanel as Lt, MentionItem as M, ChatSpinner as Mt, MentionSearchContext as N, F0ActionItem as Nt, F0AiChatTextAreaProps as O, F0AuraVoiceAnimationProps as Ot, MentionSource as P, ActionItemStatus as Pt, F0AiChatHeaderAction as Q, usageLimitsPopoverSides as R, ClarifyingOption as Rt, createPersonMentionSource as S, F0OneIconProps as St, F0AiChatTextArea as T, F0HILActionConfirmation as Tt, ChatThreadAction as U, ResolvedStepAnswer as Ut, CollapsibleGroup as V, ClarifyingStepData as Vt, DateGroup as W, useCanvasEntity as Wt, F0AiChatCreditsButton as X, useChatHistory as Y, F0AiChatHeader as Z, F0ChatComposerHandle as _, F0AvatarPerson as _t, PongBall as a, F0AiProposalCard as at, F0ChatComposerState as b, F0OneSwitchProps as bt, F0AiFileAttachments as c, F0AiProposalCardHiddenActions as ct, aiChatFileFromUploadedFile as d, AiInsightCardContent as dt, F0AiTableCard as et, aiChatFilesFromMessage as f, BalanceConfig as ft, F0ChatComposerDraft as g, contentTypes as gt, F0ChatComposer as h, SparklineDataPoint as ht, F0CanvasPanelProps as i, F0AiMessageSourcesProps as it, UserTextPart as j, MaskOptions as jt, F0AiChatTextAreaSubmitPayload as k, CSSRgbString as kt, F0AiFileAttachmentsProps as l, F0AiProposalCardProps as lt, F0AiChatUsageLimitsButton as m, F0AiInsightCardProps as mt, F0AiProcessingOverlayProps as n, F0AiMessageSource as nt, F0AiPong as o, F0AiProposalCardActions as ot, aiChatMessageText as p, ContentType as pt, ThreadGroup as q, F0CanvasPanel as r, F0AiMessageSources as rt, F0AiFilePreviewsProvider as s, F0AiProposalCardBaseProps as st, F0AiProcessingOverlay as t, F0AiTableCardProps as tt, aiChatFileFromShowFilesItem as u, F0AiInsightCard as ut, F0ChatComposerLabels as v, F0AvatarCompany as vt, DropOverlay as w, oneIconSizes as wt, F0ChatComposerVoice as x, F0OneIcon as xt, F0ChatComposerProps as y, F0OneSwitch as yt, ThreadListSkeleton as z, ClarifyingQuestionState as zt };
1604
+ export { F0AiChatHeaderProps as $, F0AiChatTextAreaSubmitPayload as A, F0AiMask as At, ThreadListSkeleton as B, ClarifyingSelectionMode as Bt, createPersonMentionSource as C, OneIconSize as Ct, AiChatTextAreaUsageLimits as D, F0AuraVoiceAnimation as Dt, F0AiChatTextArea as E, F0HILActionConfirmationProps as Et, MentionSource as F, F0ActionItemProps as Ft, DateGroup as G, F0CanvasCard as Gt, CollapsibleGroup as H, ClarifyingStepState as Ht, TrackedMention as I, actionItemStatuses as It, ThreadActionHandlers as J, F0AiChatHistoryAction as K, F0CanvasCardProps as Kt, F0AiChatUsageLimitsButtonProps as L, F0ClarifyingPanel as Lt, UserTextPart as M, ChatSpinner as Mt, MentionItem as N, F0ActionItem as Nt, AttachedFile as O, F0AuraVoiceAnimationProps as Ot, MentionSearchContext as P, ActionItemStatus as Pt, F0AiChatHeader as Q, UsageLimitsPopoverSide as R, ClarifyingOption as Rt, F0ChatComposerVoice as S, F0OneIconProps as St, DropOverlay as T, F0HILActionConfirmation as Tt, F0AiChatHistory as U, ResolvedStepAnswer as Ut, ThreadItem as V, ClarifyingStepData as Vt, ChatThreadAction as W, useCanvasEntity as Wt, ChatThread as X, ThreadGroup as Y, useChatHistory as Z, F0ChatComposerDraft as _, F0AvatarPerson as _t, PongBall as a, F0AiProposalCard as at, F0ChatComposerProps as b, F0OneSwitchProps as bt, F0AiFileAttachments as c, F0AiProposalCardHiddenActions as ct, aiChatFileFromUploadedFile as d, AiInsightCardContent as dt, F0AiTableCard as et, aiChatFilesFromMessage as f, BalanceConfig as ft, F0ChatComposer as g, contentTypes as gt, escapeUserText as h, SparklineDataPoint as ht, F0CanvasPanelProps as i, F0AiMessageSourcesProps as it, UserBinaryPart as j, MaskOptions as jt, F0AiChatTextAreaProps as k, CSSRgbString as kt, F0AiFileAttachmentsProps as l, F0AiProposalCardProps as lt, F0AiChatUsageLimitsButton as m, F0AiInsightCardProps as mt, F0AiProcessingOverlayProps as n, F0AiMessageSource as nt, F0AiPong as o, F0AiProposalCardActions as ot, aiChatMessageText as p, ContentType as pt, F0AiChatHistoryProps as q, F0CanvasPanel as r, F0AiMessageSources as rt, F0AiFilePreviewsProvider as s, F0AiProposalCardBaseProps as st, F0AiProcessingOverlay as t, F0AiTableCardProps as tt, aiChatFileFromShowFilesItem as u, F0AiInsightCard as ut, F0ChatComposerHandle as v, F0AvatarCompany as vt, WelcomeScreenCardsRow as w, oneIconSizes as wt, F0ChatComposerState as x, F0OneIcon as xt, F0ChatComposerLabels as y, F0OneSwitch as yt, usageLimitsPopoverSides as z, ClarifyingQuestionState as zt };