@factorialco/f0-react 2.52.0 → 2.53.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
@@ -2862,9 +2862,10 @@ export declare type F0AiChatTextAreaProps = {
2862
2862
  * `item` and its parent `group` (the outline-button entry). */
2863
2863
  onSuggestionClick?: (item: WelcomeScreenSuggestionItem, group: WelcomeScreenSuggestion) => void;
2864
2864
  /**
2865
- * When true, the composer adopts the fullscreen layout: the welcome
2866
- * footer is pushed to the bottom and the disclaimer is hidden so the
2867
- * footer is the only thing under the textarea.
2865
+ * When true on the welcome screen, the composer adopts the fullscreen
2866
+ * layout: the input slot grows to claim the bottom half (so the textarea
2867
+ * rises toward the vertical center), and the welcome suggestions render
2868
+ * below the textarea with their popover opening downward (instead of above).
2868
2869
  */
2869
2870
  fullscreen?: boolean;
2870
2871
  };
@@ -2962,6 +2963,9 @@ export declare type F0AiMessagesContainerProps = {
2962
2963
  onAssistantMessageRendered?: (message: Message) => void;
2963
2964
  /** Disables auto-scrollIntoView on new user messages (fullscreen sets false). */
2964
2965
  autoScrollUserIntoView?: boolean;
2966
+ /** Fullscreen welcome layout: pushes the welcome phrase to the bottom of the
2967
+ * top half so it meets the composer near the vertical center. */
2968
+ fullscreen?: boolean;
2965
2969
  /**
2966
2970
  * Renders the markdown content of user/assistant messages. The connected
2967
2971
  * wrapper provides a CopilotKit + f0-markdown-renderers implementation;
@@ -4717,8 +4721,9 @@ declare module "@tiptap/core" {
4717
4721
 
4718
4722
  declare module "@tiptap/core" {
4719
4723
  interface Commands<ReturnType> {
4720
- moodTracker: {
4721
- insertMoodTracker: (data: MoodTrackerData) => ReturnType;
4724
+ enhanceHighlight: {
4725
+ setEnhanceHighlight: (from: number, to: number) => ReturnType;
4726
+ clearEnhanceHighlight: () => ReturnType;
4722
4727
  };
4723
4728
  }
4724
4729
  }
@@ -4726,9 +4731,8 @@ declare module "@tiptap/core" {
4726
4731
 
4727
4732
  declare module "@tiptap/core" {
4728
4733
  interface Commands<ReturnType> {
4729
- enhanceHighlight: {
4730
- setEnhanceHighlight: (from: number, to: number) => ReturnType;
4731
- clearEnhanceHighlight: () => ReturnType;
4734
+ moodTracker: {
4735
+ insertMoodTracker: (data: MoodTrackerData) => ReturnType;
4732
4736
  };
4733
4737
  }
4734
4738
  }
package/dist/ai.js CHANGED
@@ -1,6 +1,6 @@
1
- import { D as e, F as r, a as t, e as o, f as i, c as n, d as F, I as C, P as A, b as l, u as d } from "./F0CanvasPanel-DHzu-56s.js";
1
+ import { D as e, F as r, a as t, e as o, f as i, c as n, d as F, I as C, P as A, b as l, u as d } from "./F0CanvasPanel-Cb-XPsWw.js";
2
2
  import { defaultTranslations as m } from "./i18n-provider-defaults.js";
3
- import { A as c, C as I, h as P, t as v, v as f, x as p, n as T, j as g, r as y, y as S, q as x, s as H, k as V, e as b, g as k, l as w, F as M, i as O, a as D, p as j, m as q, o as z, b as B, f as E, w as L, c as R, d as G, u as J } from "./useChatHistory-DbcUH7Tf.js";
3
+ import { A as c, C as I, h as P, t as v, v as f, x as p, n as T, j as g, r as y, y as S, q as x, s as H, k as V, e as b, g as k, l as w, F as M, i as O, a as D, p as j, m as q, o as z, b as B, f as E, w as L, c as R, d as G, u as J } from "./useChatHistory-K5KKfnAw.js";
4
4
  export {
5
5
  c as AiChatTranslationsProvider,
6
6
  I as ChatSpinner,
@@ -8876,8 +8876,9 @@ declare module "@tiptap/core" {
8876
8876
 
8877
8877
  declare module "@tiptap/core" {
8878
8878
  interface Commands<ReturnType> {
8879
- moodTracker: {
8880
- insertMoodTracker: (data: MoodTrackerData) => ReturnType;
8879
+ enhanceHighlight: {
8880
+ setEnhanceHighlight: (from: number, to: number) => ReturnType;
8881
+ clearEnhanceHighlight: () => ReturnType;
8881
8882
  };
8882
8883
  }
8883
8884
  }
@@ -8885,9 +8886,8 @@ declare module "@tiptap/core" {
8885
8886
 
8886
8887
  declare module "@tiptap/core" {
8887
8888
  interface Commands<ReturnType> {
8888
- enhanceHighlight: {
8889
- setEnhanceHighlight: (from: number, to: number) => ReturnType;
8890
- clearEnhanceHighlight: () => ReturnType;
8889
+ moodTracker: {
8890
+ insertMoodTracker: (data: MoodTrackerData) => ReturnType;
8891
8891
  };
8892
8892
  }
8893
8893
  }
@@ -1,9 +1,9 @@
1
- import { g as ca, B as da, h as ua, i as fa, j as Ft, k as De, l as ma, m as g, n as X, o as pe, u as ie, T as ha, p as ga, q as pa, R as ba, r as xa, s as re, t as va, v as gt, w as rt, x as Re, A as _e, y as wa, z as ya, C as W, E as Na, G as Ca, H as ve, J as rn, K as ka, L as Sa, M, N as ln, S as O, O as we, Q as Ia, U as Fa, V as Aa, W as La, X as Ea, Y as ke, Z as sn, _ as _a, $ as be, a0 as $e, a1 as Oa, d as on, a2 as Ce, a3 as Da, a4 as cn, a5 as ne, a6 as K, a7 as dn, a8 as un, a9 as Ta, aa as fn, ab as me, ac as ee, ad as za, ae as Pa, af as Ba, ag as Ra, ah as ge, ai as Ge, aj as $a, ak as Wa, al as Ma, am as ja, an as He, ao as mn, ap as Va, aq as Ga, ar as Ha, as as We, at as Ua, au as Ka, av as qa, aw as Ya, ax as Za, ay as Xa, az as Ja, aA as Qa, aB as er, aC as tr, aD as lt, aE as hn, aF as it, aG as gn, aH as nr, aI as ar, aJ as rr, aK as lr, aL as ir, aM as Ue, aN as pt, aO as st, aP as pn, aQ as sr, aR as bn, aS as or, aT as cr, aU as dr, aV as Ee, aW as ur, aX as fr, aY as Te, aZ as At, a_ as ot, a$ as mr, b0 as hr, a as gr, b as pr, b1 as xn, b2 as br, f as xr, F as vr, b3 as wr, b4 as vn, b5 as yr, b6 as wn, b7 as yn, b8 as Nr, b9 as Cr, ba as kr, bb as Sr, bc as Ir, bd as Fr, be as Ar, bf as Lr, bg as Er, bh as Nn, bi as ue, bj as bt, bk as xt, bl as vt, bm as Cn, bn as wt, bo as kn, bp as Sn, bq as _r, br as Or, bs as Dr, bt as Tr, bu as zr, bv as Pr, bw as Br, bx as Rr, by as Lt, bz as $r, bA as Wr, bB as Et, bC as _t, bD as Ot, bE as Mr, bF as jr, bG as Vr, bH as Gr, bI as In, bJ as Hr, bK as Ur } from "./F0CanvasPanel-DHzu-56s.js";
2
- import { bW as Ac, bV as Lc, c6 as Ec, bS as _c, bT as Oc, bL as Dc, bM as Tc, bN as zc, c7 as Pc, bU as Bc, c2 as Rc, c3 as $c, bO as Wc, bY as Mc, bX as jc, bP as Vc, bQ as Gc, c4 as Hc, c8 as Uc, c5 as Kc, c1 as qc, b_ as Yc, c0 as Zc, bZ as Xc, bR as Jc, b$ as Qc } from "./F0CanvasPanel-DHzu-56s.js";
1
+ import { g as ca, B as da, h as ua, i as fa, j as Ft, k as De, l as ma, m as g, n as X, o as pe, u as ie, T as ha, p as ga, q as pa, R as ba, r as xa, s as re, t as va, v as gt, w as rt, x as Re, A as _e, y as wa, z as ya, C as W, E as Na, G as Ca, H as ve, J as rn, K as ka, L as Sa, M, N as ln, S as O, O as we, Q as Ia, U as Fa, V as Aa, W as La, X as Ea, Y as ke, Z as sn, _ as _a, $ as be, a0 as $e, a1 as Oa, d as on, a2 as Ce, a3 as Da, a4 as cn, a5 as ne, a6 as K, a7 as dn, a8 as un, a9 as Ta, aa as fn, ab as me, ac as ee, ad as za, ae as Pa, af as Ba, ag as Ra, ah as ge, ai as Ge, aj as $a, ak as Wa, al as Ma, am as ja, an as He, ao as mn, ap as Va, aq as Ga, ar as Ha, as as We, at as Ua, au as Ka, av as qa, aw as Ya, ax as Za, ay as Xa, az as Ja, aA as Qa, aB as er, aC as tr, aD as lt, aE as hn, aF as it, aG as gn, aH as nr, aI as ar, aJ as rr, aK as lr, aL as ir, aM as Ue, aN as pt, aO as st, aP as pn, aQ as sr, aR as bn, aS as or, aT as cr, aU as dr, aV as Ee, aW as ur, aX as fr, aY as Te, aZ as At, a_ as ot, a$ as mr, b0 as hr, a as gr, b as pr, b1 as xn, b2 as br, f as xr, F as vr, b3 as wr, b4 as vn, b5 as yr, b6 as wn, b7 as yn, b8 as Nr, b9 as Cr, ba as kr, bb as Sr, bc as Ir, bd as Fr, be as Ar, bf as Lr, bg as Er, bh as Nn, bi as ue, bj as bt, bk as xt, bl as vt, bm as Cn, bn as wt, bo as kn, bp as Sn, bq as _r, br as Or, bs as Dr, bt as Tr, bu as zr, bv as Pr, bw as Br, bx as Rr, by as Lt, bz as $r, bA as Wr, bB as Et, bC as _t, bD as Ot, bE as Mr, bF as jr, bG as Vr, bH as Gr, bI as In, bJ as Hr, bK as Ur } from "./F0CanvasPanel-Cb-XPsWw.js";
2
+ import { bW as Ac, bV as Lc, c6 as Ec, bS as _c, bT as Oc, bL as Dc, bM as Tc, bN as zc, c7 as Pc, bU as Bc, c2 as Rc, c3 as $c, bO as Wc, bY as Mc, bX as jc, bP as Vc, bQ as Gc, c4 as Hc, c8 as Uc, c5 as Kc, c1 as qc, b_ as Yc, c0 as Zc, bZ as Xc, bR as Jc, b$ as Qc } from "./F0CanvasPanel-Cb-XPsWw.js";
3
3
  import { jsx as e, jsxs as o, Fragment as U } from "react/jsx-runtime";
4
4
  import se, { forwardRef as j, useRef as G, useTransition as Kr, useState as _, useLayoutEffect as Fn, useId as ct, useContext as Ke, createContext as yt, useEffect as $, useCallback as Q, useMemo as q, Fragment as qr, isValidElement as Yr, cloneElement as An, Children as Ln } from "react";
5
- import { C as Zr, P as Xr, a as En, M as Jr, R as Dt, b as _n, u as Qr, c as On, S as el, A as tl, B as nl, L as al, d as rl, V as ll, e as il, f as sl, g as ol, O as cl } from "./useDataCollectionSource-BxNZJCZw.js";
6
- import { l as td, m as nd, j as ad, x as rd, n as ld, s as id, a3 as sd, w as od, k as cd, D as dd, F as ud, J as fd, E as md, z as hd, a9 as gd, I as pd, K as bd, Q as xd, o as vd, a5 as wd, a6 as yd, a4 as Nd, a7 as Cd, N as kd, U as Sd, a0 as Id, a2 as Fd, p as Ad, r as Ld, t as Ed, G as _d, a8 as Od, H as Dd, T as Td, q as zd, v as Pd, h as Bd, i as Rd, X as $d, Y as Wd, a1 as Md, y as jd, Z as Vd, _ as Gd, W as Hd, $ as Ud } from "./useDataCollectionSource-BxNZJCZw.js";
5
+ import { C as Zr, P as Xr, a as En, M as Jr, R as Dt, b as _n, u as Qr, c as On, S as el, A as tl, B as nl, L as al, d as rl, V as ll, e as il, f as sl, g as ol, O as cl } from "./useDataCollectionSource-B5h-cwWc.js";
6
+ import { l as td, m as nd, j as ad, x as rd, n as ld, s as id, a3 as sd, w as od, k as cd, D as dd, F as ud, J as fd, E as md, z as hd, a9 as gd, I as pd, K as bd, Q as xd, o as vd, a5 as wd, a6 as yd, a4 as Nd, a7 as Cd, N as kd, U as Sd, a0 as Id, a2 as Fd, p as Ad, r as Ld, t as Ed, G as _d, a8 as Od, H as Dd, T as Td, q as zd, v as Pd, h as Bd, i as Rd, X as $d, Y as Wd, a1 as Md, y as jd, Z as Vd, _ as Gd, W as Hd, $ as Ud } from "./useDataCollectionSource-B5h-cwWc.js";
7
7
  const dl = ca("Search", [
8
8
  ["circle", { cx: "11", cy: "11", r: "8", key: "4ej97u" }],
9
9
  ["path", { d: "m21 21-4.3-4.3", key: "1qie3q" }]
package/dist/f0.d.ts CHANGED
@@ -5878,9 +5878,10 @@ export declare type F0AiChatTextAreaProps = {
5878
5878
  * `item` and its parent `group` (the outline-button entry). */
5879
5879
  onSuggestionClick?: (item: WelcomeScreenSuggestionItem, group: WelcomeScreenSuggestion) => void;
5880
5880
  /**
5881
- * When true, the composer adopts the fullscreen layout: the welcome
5882
- * footer is pushed to the bottom and the disclaimer is hidden so the
5883
- * footer is the only thing under the textarea.
5881
+ * When true on the welcome screen, the composer adopts the fullscreen
5882
+ * layout: the input slot grows to claim the bottom half (so the textarea
5883
+ * rises toward the vertical center), and the welcome suggestions render
5884
+ * below the textarea with their popover opening downward (instead of above).
5884
5885
  */
5885
5886
  fullscreen?: boolean;
5886
5887
  };
@@ -6110,6 +6111,9 @@ export declare type F0AiMessagesContainerProps = {
6110
6111
  onAssistantMessageRendered?: (message: Message_2) => void;
6111
6112
  /** Disables auto-scrollIntoView on new user messages (fullscreen sets false). */
6112
6113
  autoScrollUserIntoView?: boolean;
6114
+ /** Fullscreen welcome layout: pushes the welcome phrase to the bottom of the
6115
+ * top half so it meets the composer near the vertical center. */
6116
+ fullscreen?: boolean;
6113
6117
  /**
6114
6118
  * Renders the markdown content of user/assistant messages. The connected
6115
6119
  * wrapper provides a CopilotKit + f0-markdown-renderers implementation;
@@ -15997,8 +16001,9 @@ declare module "@tiptap/core" {
15997
16001
 
15998
16002
  declare module "@tiptap/core" {
15999
16003
  interface Commands<ReturnType> {
16000
- moodTracker: {
16001
- insertMoodTracker: (data: MoodTrackerData) => ReturnType;
16004
+ enhanceHighlight: {
16005
+ setEnhanceHighlight: (from: number, to: number) => ReturnType;
16006
+ clearEnhanceHighlight: () => ReturnType;
16002
16007
  };
16003
16008
  }
16004
16009
  }
@@ -16006,9 +16011,8 @@ declare module "@tiptap/core" {
16006
16011
 
16007
16012
  declare module "@tiptap/core" {
16008
16013
  interface Commands<ReturnType> {
16009
- enhanceHighlight: {
16010
- setEnhanceHighlight: (from: number, to: number) => ReturnType;
16011
- clearEnhanceHighlight: () => ReturnType;
16014
+ moodTracker: {
16015
+ insertMoodTracker: (data: MoodTrackerData) => ReturnType;
16012
16016
  };
16013
16017
  }
16014
16018
  }