@factorialco/f0-react 6.23.1 → 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.
@@ -13350,11 +13350,9 @@ declare namespace Calendar {
13350
13350
 
13351
13351
  declare module "@tiptap/core" {
13352
13352
  interface Commands<ReturnType> {
13353
- enhanceHighlight: {
13354
- setEnhanceHighlight: (from: number, to: number, options?: {
13355
- placeholder?: string;
13356
- }) => ReturnType;
13357
- clearEnhanceHighlight: () => ReturnType;
13353
+ aiBlock: {
13354
+ insertAIBlock: (data: AIBlockData, config: AIBlockConfig) => ReturnType;
13355
+ executeAIAction: (actionType: string, config: AIBlockConfig) => ReturnType;
13358
13356
  };
13359
13357
  }
13360
13358
  }
@@ -13362,9 +13360,11 @@ declare module "@tiptap/core" {
13362
13360
 
13363
13361
  declare module "@tiptap/core" {
13364
13362
  interface Commands<ReturnType> {
13365
- aiBlock: {
13366
- insertAIBlock: (data: AIBlockData, config: AIBlockConfig) => ReturnType;
13367
- executeAIAction: (actionType: string, config: AIBlockConfig) => ReturnType;
13363
+ enhanceHighlight: {
13364
+ setEnhanceHighlight: (from: number, to: number, options?: {
13365
+ placeholder?: string;
13366
+ }) => ReturnType;
13367
+ clearEnhanceHighlight: () => ReturnType;
13368
13368
  };
13369
13369
  }
13370
13370
  }
@@ -5306,12 +5306,19 @@ function Al({ children: e, header: t, embedded: r = !1 }) {
5306
5306
  "div",
5307
5307
  {
5308
5308
  className: I(
5309
- "flex min-h-full w-full flex-col overflow-hidden bg-f1-special-page ring-1 ring-inset ring-f1-border-secondary",
5309
+ "relative flex min-h-full w-full flex-col overflow-hidden bg-f1-special-page",
5310
5310
  !r && "xs:rounded-xl"
5311
5311
  ),
5312
5312
  children: [
5313
5313
  t && /* @__PURE__ */ n("div", { className: "flex flex-col", children: t }),
5314
- /* @__PURE__ */ n("div", { className: "isolate flex w-full flex-1 flex-col overflow-auto [&>*]:flex-1", children: e })
5314
+ /* @__PURE__ */ n("div", { className: "isolate flex w-full flex-1 flex-col overflow-auto [&>*]:flex-1", children: e }),
5315
+ /* @__PURE__ */ n(
5316
+ "div",
5317
+ {
5318
+ "aria-hidden": !0,
5319
+ className: "pointer-events-none absolute inset-0 z-10 rounded-[inherit] ring-1 ring-inset ring-f1-border-secondary"
5320
+ }
5321
+ )
5315
5322
  ]
5316
5323
  }
5317
5324
  );
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.
@@ -19708,11 +19741,9 @@ declare namespace Calendar {
19708
19741
 
19709
19742
  declare module "@tiptap/core" {
19710
19743
  interface Commands<ReturnType> {
19711
- enhanceHighlight: {
19712
- setEnhanceHighlight: (from: number, to: number, options?: {
19713
- placeholder?: string;
19714
- }) => ReturnType;
19715
- clearEnhanceHighlight: () => ReturnType;
19744
+ aiBlock: {
19745
+ insertAIBlock: (data: AIBlockData, config: AIBlockConfig) => ReturnType;
19746
+ executeAIAction: (actionType: string, config: AIBlockConfig) => ReturnType;
19716
19747
  };
19717
19748
  }
19718
19749
  }
@@ -19720,9 +19751,11 @@ declare module "@tiptap/core" {
19720
19751
 
19721
19752
  declare module "@tiptap/core" {
19722
19753
  interface Commands<ReturnType> {
19723
- aiBlock: {
19724
- insertAIBlock: (data: AIBlockData, config: AIBlockConfig) => ReturnType;
19725
- executeAIAction: (actionType: string, config: AIBlockConfig) => ReturnType;
19754
+ enhanceHighlight: {
19755
+ setEnhanceHighlight: (from: number, to: number, options?: {
19756
+ placeholder?: string;
19757
+ }) => ReturnType;
19758
+ clearEnhanceHighlight: () => ReturnType;
19726
19759
  };
19727
19760
  }
19728
19761
  }
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-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";
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";
@@ -1290,11 +1290,9 @@ declare namespace Calendar {
1290
1290
 
1291
1291
  declare module "@tiptap/core" {
1292
1292
  interface Commands<ReturnType> {
1293
- enhanceHighlight: {
1294
- setEnhanceHighlight: (from: number, to: number, options?: {
1295
- placeholder?: string;
1296
- }) => ReturnType;
1297
- clearEnhanceHighlight: () => ReturnType;
1293
+ aiBlock: {
1294
+ insertAIBlock: (data: AIBlockData, config: AIBlockConfig) => ReturnType;
1295
+ executeAIAction: (actionType: string, config: AIBlockConfig) => ReturnType;
1298
1296
  };
1299
1297
  }
1300
1298
  }
@@ -1302,9 +1300,11 @@ declare module "@tiptap/core" {
1302
1300
 
1303
1301
  declare module "@tiptap/core" {
1304
1302
  interface Commands<ReturnType> {
1305
- aiBlock: {
1306
- insertAIBlock: (data: AIBlockData, config: AIBlockConfig) => ReturnType;
1307
- executeAIAction: (actionType: string, config: AIBlockConfig) => ReturnType;
1303
+ enhanceHighlight: {
1304
+ setEnhanceHighlight: (from: number, to: number, options?: {
1305
+ placeholder?: string;
1306
+ }) => ReturnType;
1307
+ clearEnhanceHighlight: () => ReturnType;
1308
1308
  };
1309
1309
  }
1310
1310
  }