@factorialco/f0-react 6.61.0 → 6.62.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.
@@ -15041,18 +15041,6 @@ declare module "@tiptap/core" {
15041
15041
  }
15042
15042
 
15043
15043
 
15044
- declare module "@tiptap/core" {
15045
- interface Commands<ReturnType> {
15046
- enhanceHighlight: {
15047
- setEnhanceHighlight: (from: number, to: number, options?: {
15048
- placeholder?: string;
15049
- }) => ReturnType;
15050
- clearEnhanceHighlight: () => ReturnType;
15051
- };
15052
- }
15053
- }
15054
-
15055
-
15056
15044
  declare module "@tiptap/core" {
15057
15045
  interface Commands<ReturnType> {
15058
15046
  fontSize: {
@@ -15074,6 +15062,18 @@ declare module "@tiptap/core" {
15074
15062
  }
15075
15063
 
15076
15064
 
15065
+ declare module "@tiptap/core" {
15066
+ interface Commands<ReturnType> {
15067
+ enhanceHighlight: {
15068
+ setEnhanceHighlight: (from: number, to: number, options?: {
15069
+ placeholder?: string;
15070
+ }) => ReturnType;
15071
+ clearEnhanceHighlight: () => ReturnType;
15072
+ };
15073
+ }
15074
+ }
15075
+
15076
+
15077
15077
  declare module "@tiptap/core" {
15078
15078
  interface Commands<ReturnType> {
15079
15079
  moodTracker: {
package/dist/f0.d.ts CHANGED
@@ -7011,7 +7011,7 @@ export declare const F0AiChatProvider: ({ enabled, side, panelContentSide, initi
7011
7011
  * coupling to `useAiChat()` or CopilotKit — wrappers like F0AiChat
7012
7012
  * provide the wiring.
7013
7013
  */
7014
- 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, padding, ref, }: F0AiChatTextAreaProps) => JSX_2.Element;
7014
+ 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, welcomeScreenSuggestionsCollapsedByDefault, welcomeScreenCards, padding, ref, }: F0AiChatTextAreaProps) => JSX_2.Element;
7015
7015
 
7016
7016
  export declare type F0AiChatTextAreaProps = {
7017
7017
  ref: RefObject<HTMLDivElement>;
@@ -7111,26 +7111,59 @@ export declare type F0AiChatTextAreaProps = {
7111
7111
  * single bar about two lines tall. Its popover opens downward, because up is
7112
7112
  * now the text you are about to type.
7113
7113
  *
7114
- * ⚠️ `"inside"` IS A COMPOSER SHAPE, NOT JUST A POSITION. It also moves the
7115
- * send button onto the textarea's own line (at `sm`, centred on the text) and
7116
- * puts One's mark in front of the text. Neither is a feature bolted onto this
7117
- * prop — they are what make the placement possible and legible. The action row
7118
- * is full-width, so a chips row plus an action row inside one field is three
7119
- * stacked bands and the "single bar" is gone; with send trailing the text there
7120
- * are two, text then suggestions. The attachment, host (`toolbarStart`) and
7121
- * dictation controls keep their own row when the host enables them; with none
7122
- * of them the field is just the two bands.
7114
+ * ⚠️ `"inside"` IS A COMPOSER SHAPE, NOT JUST A POSITION. The chips do not get
7115
+ * a band of their own: they take the middle of the ACTION row, between the
7116
+ * attachment/host controls and the dictation · send pair, and One's mark goes
7117
+ * in front of the text. That is what keeps the field two bands tall — text,
7118
+ * then one row of controls — instead of three. Because the chips share that
7119
+ * line, they scroll sideways rather than wrapping, with the overflowing ends
7120
+ * faded: ten groups cost the same height as three.
7123
7121
  *
7124
- * THE INLINE SEND FOLLOWS THE PROP, NOT THE WELCOME STATE. The suggestions
7122
+ * THE SHAPE FOLLOWS THE PROP, NOT THE WELCOME STATE. The suggestions
7125
7123
  * themselves are welcome-screen-only as they always were, but a composer that
7126
- * put send back in the action row the moment the first message landed would
7127
- * change shape under the reader mid-conversation. `"inside"` therefore keeps
7128
- * the two-band bar for the whole thread; after the welcome screen it is simply
7129
- * a bar with no chips in it.
7124
+ * dropped One's mark the moment the first message landed would change shape
7125
+ * under the reader mid-conversation. `"inside"` therefore keeps the bar for the
7126
+ * whole thread; after the welcome screen it is simply a bar with no chips in
7127
+ * it.
7130
7128
  *
7131
7129
  * @default "above"
7132
7130
  */
7133
7131
  welcomeScreenSuggestionsPlacement?: "above" | "inside";
7132
+ /**
7133
+ * Start closed, and open when the reader focuses the input — with a motion
7134
+ * reveal, the row growing into place.
7135
+ *
7136
+ * For hosts where the composer is not the thing the reader came for — a Home
7137
+ * hero, say — so the bar sits quiet until it is addressed, and the starter
7138
+ * prompts arrive at the moment they are useful.
7139
+ *
7140
+ * ⚠️ WITH `"inside"` THIS COLLAPSES THE WHOLE CONTROL ROW, not just the chips:
7141
+ * the field becomes ONE LINE — One's mark, the text, then dictation and send
7142
+ * trailing it at `sm` — and the chips, attachment and host controls arrive with
7143
+ * the row on focus. A row emptied of its chips would still be 56px of padding
7144
+ * around two buttons, which is not a quiet bar; it is the same two-band field
7145
+ * with a hole in it. Send comes along because a bar you cannot send from is not
7146
+ * a composer, and dictation because talking is a way to start a prompt without
7147
+ * typing one. With the row `"above"`, only that row collapses — the field below
7148
+ * it is a plain composer and does not change shape.
7149
+ *
7150
+ * FOCUS IS TRACKED ON THE WHOLE COMPOSER, not on the textarea: it closes when
7151
+ * focus leaves the field AND everything in it, including the suggestion panel
7152
+ * (which Radix portals outside the form). Closing on the textarea's own blur
7153
+ * would close the row the moment a chip took focus, which is every way of
7154
+ * picking one. Three things hold it open regardless of focus: anything already
7155
+ * typed or attached (a half-written prompt with no visible way to send it would
7156
+ * be a trap — and a host that forwards a dropped file can put one there without
7157
+ * the textarea ever being focused), and a recording in flight (its cancel ·
7158
+ * confirm pair lives in the row).
7159
+ *
7160
+ * ⚠️ It also suppresses the composer's own autofocus-on-mount, which would
7161
+ * otherwise open everything before the reader had touched anything and make
7162
+ * this prop a no-op. A collapsed composer starts unfocused.
7163
+ *
7164
+ * @default false
7165
+ */
7166
+ welcomeScreenSuggestionsCollapsedByDefault?: boolean;
7134
7167
  /**
7135
7168
  * Cards rendered as a grid below the composer on the fullscreen welcome
7136
7169
  * screen. Each card carries its own `onClick`; the host decides the behavior.
@@ -20328,18 +20361,6 @@ declare module "@tiptap/core" {
20328
20361
  }
20329
20362
 
20330
20363
 
20331
- declare module "@tiptap/core" {
20332
- interface Commands<ReturnType> {
20333
- enhanceHighlight: {
20334
- setEnhanceHighlight: (from: number, to: number, options?: {
20335
- placeholder?: string;
20336
- }) => ReturnType;
20337
- clearEnhanceHighlight: () => ReturnType;
20338
- };
20339
- }
20340
- }
20341
-
20342
-
20343
20364
  declare module "@tiptap/core" {
20344
20365
  interface Commands<ReturnType> {
20345
20366
  fontSize: {
@@ -20361,6 +20382,18 @@ declare module "@tiptap/core" {
20361
20382
  }
20362
20383
 
20363
20384
 
20385
+ declare module "@tiptap/core" {
20386
+ interface Commands<ReturnType> {
20387
+ enhanceHighlight: {
20388
+ setEnhanceHighlight: (from: number, to: number, options?: {
20389
+ placeholder?: string;
20390
+ }) => ReturnType;
20391
+ clearEnhanceHighlight: () => ReturnType;
20392
+ };
20393
+ }
20394
+ }
20395
+
20396
+
20364
20397
  declare module "@tiptap/core" {
20365
20398
  interface Commands<ReturnType> {
20366
20399
  moodTracker: {
package/dist/f0.js CHANGED
@@ -11,8 +11,8 @@ import { l as Ky, c as JN, d as Pd, r as Qy } from "./F0VideoPlayer-C6KjykmM.js"
11
11
  import { F as Npe } from "./F0VideoPlayer-C6KjykmM.js";
12
12
  import { F as kpe, p as Ppe } from "./index-Kr9opvST.js";
13
13
  import { c as Ope } from "./pdfWorker-D139qCe2.js";
14
- import { D as J5, E as Rd, G as H_, H as eI, I as tI, J as eG, K as tG, L as rG, M as nG, N as iG, F as aG } from "./F0AiProcessingOverlay-D_AcT9g_.js";
15
- import { A as zpe, C as Vpe, t as Fpe, s as Gpe, v as Hpe, y as Wpe, l as $pe, i as Upe, q as Ype, z as Xpe, B as qpe, p as Zpe, r as jpe, j as Kpe, e as Qpe, g as Jpe, k as ege, T as tge, w as rge, h as nge, a as ige, n as age, m as oge, o as sge, b as lge, f as uge, x as cge, c as fge, d as hge, u as dge } from "./F0AiProcessingOverlay-D_AcT9g_.js";
14
+ import { D as J5, E as Rd, G as H_, H as eI, I as tI, J as eG, K as tG, L as rG, M as nG, N as iG, F as aG } from "./F0AiProcessingOverlay-DZeOFTnB.js";
15
+ import { A as zpe, C as Vpe, t as Fpe, s as Gpe, v as Hpe, y as Wpe, l as $pe, i as Upe, q as Ype, z as Xpe, B as qpe, p as Zpe, r as jpe, j as Kpe, e as Qpe, g as Jpe, k as ege, T as tge, w as rge, h as nge, a as ige, n as age, m as oge, o as sge, b as lge, f as uge, x as cge, c as fge, d as hge, u as dge } from "./F0AiProcessingOverlay-DZeOFTnB.js";
16
16
  import { g as oG } from "./_commonjsHelpers-ByX85dGu.js";
17
17
  import { utils as wl, write as rI } from "./xlsx-CzlURDDb.js";
18
18
  import { defaultTranslations as pge } from "./i18n-provider-defaults.js";
@@ -1333,18 +1333,6 @@ declare module "@tiptap/core" {
1333
1333
  }
1334
1334
 
1335
1335
 
1336
- declare module "@tiptap/core" {
1337
- interface Commands<ReturnType> {
1338
- enhanceHighlight: {
1339
- setEnhanceHighlight: (from: number, to: number, options?: {
1340
- placeholder?: string;
1341
- }) => ReturnType;
1342
- clearEnhanceHighlight: () => ReturnType;
1343
- };
1344
- }
1345
- }
1346
-
1347
-
1348
1336
  declare module "@tiptap/core" {
1349
1337
  interface Commands<ReturnType> {
1350
1338
  fontSize: {
@@ -1366,6 +1354,18 @@ declare module "@tiptap/core" {
1366
1354
  }
1367
1355
 
1368
1356
 
1357
+ declare module "@tiptap/core" {
1358
+ interface Commands<ReturnType> {
1359
+ enhanceHighlight: {
1360
+ setEnhanceHighlight: (from: number, to: number, options?: {
1361
+ placeholder?: string;
1362
+ }) => ReturnType;
1363
+ clearEnhanceHighlight: () => ReturnType;
1364
+ };
1365
+ }
1366
+ }
1367
+
1368
+
1369
1369
  declare module "@tiptap/core" {
1370
1370
  interface Commands<ReturnType> {
1371
1371
  moodTracker: {
package/package.json CHANGED
@@ -1,6 +1,11 @@
1
1
  {
2
2
  "name": "@factorialco/f0-react",
3
- "version": "6.61.0",
3
+ "version": "6.62.0",
4
+ "repository": {
5
+ "type": "git",
6
+ "url": "git+https://github.com/factorialco/f0.git",
7
+ "directory": "packages/react"
8
+ },
4
9
  "private": false,
5
10
  "files": [
6
11
  "assets",