@factorialco/f0-react 6.27.3 → 6.28.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
@@ -3432,7 +3432,7 @@ export declare const F0AiChatProvider: ({ enabled, side, panelContentSide, initi
3432
3432
  * coupling to `useAiChat()` or CopilotKit — wrappers like F0AiChat
3433
3433
  * provide the wiring.
3434
3434
  */
3435
- 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;
3435
+ 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;
3436
3436
 
3437
3437
  export declare type F0AiChatTextAreaProps = {
3438
3438
  ref: RefObject<HTMLDivElement>;
@@ -3561,6 +3561,25 @@ export declare type F0AiChatTextAreaProps = {
3561
3561
  * dropped.
3562
3562
  */
3563
3563
  welcomeScreenCards?: F0AiChatWelcomeCard[];
3564
+ /**
3565
+ * The composer's own inset against whatever contains it.
3566
+ *
3567
+ * - `"default"` — the gutter the chat layouts expect (16px sides, 8px top,
3568
+ * 12px bottom). It is what keeps the field off the chat window's edges and
3569
+ * leaves room for the focus glow, which bleeds a few pixels outside the
3570
+ * field's border box.
3571
+ *
3572
+ * - `"none"` — no inset, for hosts that place the composer inside a container
3573
+ * that already owns the spacing (a landing/home hero, a card). The host then
3574
+ * owns BOTH sides of that bargain: give the composer some room of your own,
3575
+ * and don't clip overflow around it, or the focus glow gets cut at the edge.
3576
+ *
3577
+ * Only the outer inset changes; the gap between the composer and the blocks
3578
+ * below it (suggestions, cards, footer, disclaimer) is unaffected.
3579
+ *
3580
+ * @default "default"
3581
+ */
3582
+ padding?: "default" | "none";
3564
3583
  /**
3565
3584
  * When true on the welcome screen, the composer adopts the fullscreen
3566
3585
  * layout: the input slot grows to claim the bottom half (so the textarea
@@ -5635,9 +5654,10 @@ declare module "@tiptap/core" {
5635
5654
 
5636
5655
  declare module "@tiptap/core" {
5637
5656
  interface Commands<ReturnType> {
5638
- fontSize: {
5639
- setFontSize: (fontSize: string) => ReturnType;
5640
- unsetFontSize: () => ReturnType;
5657
+ indent: {
5658
+ setIndent: (level: number) => ReturnType;
5659
+ unsetIndent: () => ReturnType;
5660
+ outdent: () => ReturnType;
5641
5661
  };
5642
5662
  }
5643
5663
  }
@@ -5645,10 +5665,9 @@ declare module "@tiptap/core" {
5645
5665
 
5646
5666
  declare module "@tiptap/core" {
5647
5667
  interface Commands<ReturnType> {
5648
- indent: {
5649
- setIndent: (level: number) => ReturnType;
5650
- unsetIndent: () => ReturnType;
5651
- outdent: () => ReturnType;
5668
+ fontSize: {
5669
+ setFontSize: (fontSize: string) => ReturnType;
5670
+ unsetFontSize: () => ReturnType;
5652
5671
  };
5653
5672
  }
5654
5673
  }
@@ -5665,10 +5684,8 @@ declare module "@tiptap/core" {
5665
5684
 
5666
5685
  declare module "@tiptap/core" {
5667
5686
  interface Commands<ReturnType> {
5668
- videoEmbed: {
5669
- setVideoEmbed: (options: {
5670
- src: string;
5671
- }) => ReturnType;
5687
+ transcript: {
5688
+ insertTranscript: (data: TranscriptData) => ReturnType;
5672
5689
  };
5673
5690
  }
5674
5691
  }
@@ -5676,8 +5693,10 @@ declare module "@tiptap/core" {
5676
5693
 
5677
5694
  declare module "@tiptap/core" {
5678
5695
  interface Commands<ReturnType> {
5679
- transcript: {
5680
- insertTranscript: (data: TranscriptData) => ReturnType;
5696
+ videoEmbed: {
5697
+ setVideoEmbed: (options: {
5698
+ src: string;
5699
+ }) => ReturnType;
5681
5700
  };
5682
5701
  }
5683
5702
  }
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-Dq1kU51T.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-b0CeTu4a.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-Im7Wjj60.js";
4
4
  export {
5
5
  P as AiChatTranslationsProvider,
6
6
  e as ChatSpinner,
@@ -307,9 +307,10 @@ declare module "@tiptap/core" {
307
307
 
308
308
  declare module "@tiptap/core" {
309
309
  interface Commands<ReturnType> {
310
- fontSize: {
311
- setFontSize: (fontSize: string) => ReturnType;
312
- unsetFontSize: () => ReturnType;
310
+ indent: {
311
+ setIndent: (level: number) => ReturnType;
312
+ unsetIndent: () => ReturnType;
313
+ outdent: () => ReturnType;
313
314
  };
314
315
  }
315
316
  }
@@ -317,10 +318,9 @@ declare module "@tiptap/core" {
317
318
 
318
319
  declare module "@tiptap/core" {
319
320
  interface Commands<ReturnType> {
320
- indent: {
321
- setIndent: (level: number) => ReturnType;
322
- unsetIndent: () => ReturnType;
323
- outdent: () => ReturnType;
321
+ fontSize: {
322
+ setFontSize: (fontSize: string) => ReturnType;
323
+ unsetFontSize: () => ReturnType;
324
324
  };
325
325
  }
326
326
  }
@@ -337,10 +337,8 @@ declare module "@tiptap/core" {
337
337
 
338
338
  declare module "@tiptap/core" {
339
339
  interface Commands<ReturnType> {
340
- videoEmbed: {
341
- setVideoEmbed: (options: {
342
- src: string;
343
- }) => ReturnType;
340
+ transcript: {
341
+ insertTranscript: (data: TranscriptData) => ReturnType;
344
342
  };
345
343
  }
346
344
  }
@@ -348,8 +346,10 @@ declare module "@tiptap/core" {
348
346
 
349
347
  declare module "@tiptap/core" {
350
348
  interface Commands<ReturnType> {
351
- transcript: {
352
- insertTranscript: (data: TranscriptData) => ReturnType;
349
+ videoEmbed: {
350
+ setVideoEmbed: (options: {
351
+ src: string;
352
+ }) => ReturnType;
353
353
  };
354
354
  }
355
355
  }