@factorialco/f0-react 1.247.3 → 1.247.4

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.
@@ -5578,8 +5578,8 @@ declare global {
5578
5578
 
5579
5579
  declare module "@tiptap/core" {
5580
5580
  interface Commands<ReturnType> {
5581
- liveCompanion: {
5582
- insertLiveCompanion: (data: LiveCompanionData, config?: LiveCompanionConfig) => ReturnType;
5581
+ aiBlock: {
5582
+ insertAIBlock: (data: AIBlockData, config: AIBlockConfigWithLabels) => ReturnType;
5583
5583
  };
5584
5584
  }
5585
5585
  }
@@ -5587,8 +5587,8 @@ declare module "@tiptap/core" {
5587
5587
 
5588
5588
  declare module "@tiptap/core" {
5589
5589
  interface Commands<ReturnType> {
5590
- aiBlock: {
5591
- insertAIBlock: (data: AIBlockData, config: AIBlockConfigWithLabels) => ReturnType;
5590
+ liveCompanion: {
5591
+ insertLiveCompanion: (data: LiveCompanionData, config?: LiveCompanionConfig) => ReturnType;
5592
5592
  };
5593
5593
  }
5594
5594
  }
@@ -1,5 +1,5 @@
1
- import { bD as Zv, bE as Qv, bF as Rg, bG as al, bH as uC, bI as hC, bJ as pC, bK as Su, bL as mC, bM as gC, bN as yC, bO as ie, bP as Xv, bQ as vC, f as Js, bR as Ma, j as Ic, bS as e5, h as Il, bT as bC, L as Nu, bU as kC, A as xC, i as Dl, c as wC, l as CC, G as _C, g as Fg, bV as SC, k as Pg, o as NC, bW as t5, bX as n5, bY as LC, bZ as Mo, ai as EC, av as pe, b_ as To, ao as Ce, b$ as i5, ab as qe, c0 as Ao, c1 as Ye, c2 as MC, Q as T, b2 as Yi, at, au as Rn, c3 as r5, ac as Hp, c4 as Vp, c5 as TC, c6 as AC, c7 as OC, aq as s5, ar as o5, c8 as Oo, c9 as a5, ca as ll, P as nn, O as Wp, cb as l5, cc as Jr, cd as qp, ce as IC, cf as Zt, cg as Bg, ch as DC, ci as cl, cj as Dc, ck as RC, cl as FC, cm as bt, al as un, cn as ee, co as df, cp as Bn, aD as PC, a7 as ti, a8 as BC, cq as c5, cr as $r, cs as Up, ct as oo, cu as Pi, cv as Z1, cw as d5, cx as zC, cy as $C, cz as f5, cA as jC, cB as HC, cC as VC, cD as u5, cE as h5, cF as p5, a5 as gt, cG as m5, cH as WC, cI as qC, cJ as UC, cK as GC, cL as KC, cM as JC, cN as YC, cO as g5, cP as ZC, ak as QC, be as XC, cQ as Gp, cR as Fn, bc as gs, cS as _n, am as Kp, as as Q1, cT as zg, bz as Io, cU as $g, cV as Rc, cW as X1, cX as e_, a9 as Do, cY as ys, cZ as y5, c_ as ir, c$ as v5, d0 as b5, ap as Jp, s as t_, w as n_, x as i_, z as r_, J as jg, K as Hg, M as s_, N as o_, d1 as a_, d2 as l_, d3 as Ro, d4 as Yp, aX as Ii, aZ as vs, d5 as Ta, d6 as c_, d7 as k5, d8 as x5, d9 as d_, da as f_, a3 as Zp, a4 as Qp, a6 as Xp, R as zn, db as w5, dc as u_, dd as h_, de as p_, df as C5, az as m_, dg as eh, dh as _5, aU as Fc, di as g_, dj as y_, dk as v_, dl as b_, dm as k_, bA as ff, aR as th, bC as x_, bB as w_, dn as S5, an as Or, dp as C_, dq as __, dr as Pc, b7 as uf, aV as em, aO as hf, ds as pf, dt as tm, du as N5, aY as S_, aQ as L5, aM as E5, dv as dl, dw as N_, dx as M5, dy as T5, dz as L_, aP as Fo, aS as A5, aB as E_, dA as M_, bg as T_, bh as A_, bo as mf, bm as nm, ax as gf, dB as yf, dC as vf, ay as bf, dD as im, bn as O5, a$ as rm, dE as O_, bt as I_, dF as nh, dG as D_, dH as Bc, dI as R_, bi as zc, bu as F_, dJ as P_, bs as I5, dK as B_, br as z_, bq as $_, dL as j_, b0 as ih, dM as H_, af as sm, dN as V_, dO as W_, ag as q_, ah as U_, dP as G_, dQ as K_, dR as J_, dS as Y_, b3 as Z_, bl as Q_, dT as X_, dU as eS, dV as tS, aT as nS, dW as fl, dX as om, a_ as am, dY as lm, dZ as ul, d_ as D5, d$ as iS, e0 as R5, e1 as rS, bv as F5, e2 as P5, b4 as B5, e3 as sS, e4 as oS, e5 as aS, aA as lS, _ as cS, T as dS, V as fS, W as uS, Z as hS, U as pS, e6 as Vg, e7 as mS, e8 as gS, m as yS, ad as vS, e9 as z5, ea as bS } from "./hooks-BUzrBHFf.js";
2
- import { aC as Ure, ed as Gre, ee as Kre, ec as Jre, aW as Yre, b1 as Zre, eb as Qre } from "./hooks-BUzrBHFf.js";
1
+ import { bD as Zv, bE as Qv, bF as Rg, bG as al, bH as uC, bI as hC, bJ as pC, bK as Su, bL as mC, bM as gC, bN as yC, bO as ie, bP as Xv, bQ as vC, f as Js, bR as Ma, j as Ic, bS as e5, h as Il, bT as bC, L as Nu, bU as kC, A as xC, i as Dl, c as wC, l as CC, G as _C, g as Fg, bV as SC, k as Pg, o as NC, bW as t5, bX as n5, bY as LC, bZ as Mo, ai as EC, av as pe, b_ as To, ao as Ce, b$ as i5, ab as qe, c0 as Ao, c1 as Ye, c2 as MC, Q as T, b2 as Yi, at, au as Rn, c3 as r5, ac as Hp, c4 as Vp, c5 as TC, c6 as AC, c7 as OC, aq as s5, ar as o5, c8 as Oo, c9 as a5, ca as ll, P as nn, O as Wp, cb as l5, cc as Jr, cd as qp, ce as IC, cf as Zt, cg as Bg, ch as DC, ci as cl, cj as Dc, ck as RC, cl as FC, cm as bt, al as un, cn as ee, co as df, cp as Bn, aD as PC, a7 as ti, a8 as BC, cq as c5, cr as $r, cs as Up, ct as oo, cu as Pi, cv as Z1, cw as d5, cx as zC, cy as $C, cz as f5, cA as jC, cB as HC, cC as VC, cD as u5, cE as h5, cF as p5, a5 as gt, cG as m5, cH as WC, cI as qC, cJ as UC, cK as GC, cL as KC, cM as JC, cN as YC, cO as g5, cP as ZC, ak as QC, be as XC, cQ as Gp, cR as Fn, bc as gs, cS as _n, am as Kp, as as Q1, cT as zg, bz as Io, cU as $g, cV as Rc, cW as X1, cX as e_, a9 as Do, cY as ys, cZ as y5, c_ as ir, c$ as v5, d0 as b5, ap as Jp, s as t_, w as n_, x as i_, z as r_, J as jg, K as Hg, M as s_, N as o_, d1 as a_, d2 as l_, d3 as Ro, d4 as Yp, aX as Ii, aZ as vs, d5 as Ta, d6 as c_, d7 as k5, d8 as x5, d9 as d_, da as f_, a3 as Zp, a4 as Qp, a6 as Xp, R as zn, db as w5, dc as u_, dd as h_, de as p_, df as C5, az as m_, dg as eh, dh as _5, aU as Fc, di as g_, dj as y_, dk as v_, dl as b_, dm as k_, bA as ff, aR as th, bC as x_, bB as w_, dn as S5, an as Or, dp as C_, dq as __, dr as Pc, b7 as uf, aV as em, aO as hf, ds as pf, dt as tm, du as N5, aY as S_, aQ as L5, aM as E5, dv as dl, dw as N_, dx as M5, dy as T5, dz as L_, aP as Fo, aS as A5, aB as E_, dA as M_, bg as T_, bh as A_, bo as mf, bm as nm, ax as gf, dB as yf, dC as vf, ay as bf, dD as im, bn as O5, a$ as rm, dE as O_, bt as I_, dF as nh, dG as D_, dH as Bc, dI as R_, bi as zc, bu as F_, dJ as P_, bs as I5, dK as B_, br as z_, bq as $_, dL as j_, b0 as ih, dM as H_, af as sm, dN as V_, dO as W_, ag as q_, ah as U_, dP as G_, dQ as K_, dR as J_, dS as Y_, b3 as Z_, bl as Q_, dT as X_, dU as eS, dV as tS, aT as nS, dW as fl, dX as om, a_ as am, dY as lm, dZ as ul, d_ as D5, d$ as iS, e0 as R5, e1 as rS, bv as F5, e2 as P5, b4 as B5, e3 as sS, e4 as oS, e5 as aS, aA as lS, _ as cS, T as dS, V as fS, W as uS, Z as hS, U as pS, e6 as Vg, e7 as mS, e8 as gS, m as yS, ad as vS, e9 as z5, ea as bS } from "./hooks-CP_0XHUX.js";
2
+ import { aC as Ure, ed as Gre, ee as Kre, ec as Jre, aW as Yre, b1 as Zre, eb as Qre } from "./hooks-CP_0XHUX.js";
3
3
  import { jsxs as b, jsx as f, Fragment as Me } from "react/jsx-runtime";
4
4
  import { useCopilotChatInternal as kf, useCopilotContext as kS, useCopilotAction as xS, CopilotKit as wS } from "@copilotkit/react-core";
5
5
  import { Markdown as CS, useChatContext as _S, CopilotSidebar as SS } from "@copilotkit/react-ui";
package/dist/f0.d.ts CHANGED
@@ -3846,8 +3846,8 @@ declare global {
3846
3846
 
3847
3847
  declare module "@tiptap/core" {
3848
3848
  interface Commands<ReturnType> {
3849
- liveCompanion: {
3850
- insertLiveCompanion: (data: LiveCompanionData, config?: LiveCompanionConfig) => ReturnType;
3849
+ aiBlock: {
3850
+ insertAIBlock: (data: AIBlockData, config: AIBlockConfigWithLabels) => ReturnType;
3851
3851
  };
3852
3852
  }
3853
3853
  }
@@ -3855,8 +3855,8 @@ declare module "@tiptap/core" {
3855
3855
 
3856
3856
  declare module "@tiptap/core" {
3857
3857
  interface Commands<ReturnType> {
3858
- aiBlock: {
3859
- insertAIBlock: (data: AIBlockData, config: AIBlockConfigWithLabels) => ReturnType;
3858
+ liveCompanion: {
3859
+ insertLiveCompanion: (data: LiveCompanionData, config?: LiveCompanionConfig) => ReturnType;
3860
3860
  };
3861
3861
  }
3862
3862
  }
package/dist/f0.js CHANGED
@@ -1,5 +1,5 @@
1
- import { S as xe, a as mt, f as ne, L as K, b as ht, A as vt, i as U, c as yt, d as Te, E as bt, g as X, e as gt, h as xt, C as wt, j as Pt, k as $, l as Fe, u as St, G as Ct, m as Nt, n as we, o as At, p as Ie, q as Ot, B as _e, X as Ee, Y as le, r as kt, s as je, t as Lt, v as Dt, w as Tt, x as Ft, y as It, z as _t, D as Et, F as jt, H as Pe, I as $t, J as W, K as oe, M as Bt, N as Mt, O as Rt, P as $e, Q as _, R as I, T as zt, U as Kt, V as Wt, W as Gt, Z as Vt, _ as qt, $ as Yt, a0 as Be, a1 as Ht, a2 as Z, a3 as Me, a4 as Re, a5 as Jt, a6 as ze, a7 as Ke, a8 as We, a9 as Ge, aa as Ut, ab as Ve, ac as Xt, ad as Zt, ae as Qt, af as Se, ag as ie, ah as ea, ai as ta, aj as qe, ak as aa, al as ra, am as Ye, an as na, ao as oa, ap as ia, aq as sa, ar as la, as as ca, at as ua, au as He, av as M, aw as Je, ax as da, ay as fa, az as Ce, aA as pa, aB as Ue, aC as ma, aD as ha, aE as va, aF as ya, aG as ba, aH as ga, aI as xa, aJ as wa, aK as Pa, aL as Sa, aM as Ca, aN as Na } from "./hooks-BUzrBHFf.js";
2
- import { bp as en, br as tn, bA as an, aO as rn, aP as nn, aQ as on, aR as sn, aS as ln, aT as cn, aU as un, aV as dn, aX as fn, aY as pn, aZ as mn, a_ as hn, a$ as vn, b0 as yn, bw as bn, b2 as gn, b4 as xn, b5 as wn, b6 as Pn, b7 as Sn, ba as Cn, bb as Nn, bc as An, bd as On, bf as kn, b3 as Ln, be as Dn, b9 as Tn, bx as Fn, bq as In, bk as _n, bn as En, bj as jn, bB as $n, bi as Bn, bh as Mn, aW as Rn, b1 as zn, b8 as Kn, bg as Wn, bl as Gn, bs as Vn, bt as qn, bu as Yn, bC as Hn, bm as Jn, bv as Un, bz as Xn, bo as Zn, by as Qn } from "./hooks-BUzrBHFf.js";
1
+ import { S as xe, a as mt, f as ne, L as K, b as ht, A as vt, i as U, c as yt, d as Te, E as bt, g as X, e as gt, h as xt, C as wt, j as Pt, k as $, l as Fe, u as St, G as Ct, m as Nt, n as we, o as At, p as Ie, q as Ot, B as _e, X as Ee, Y as le, r as kt, s as je, t as Lt, v as Dt, w as Tt, x as Ft, y as It, z as _t, D as Et, F as jt, H as Pe, I as $t, J as W, K as oe, M as Bt, N as Mt, O as Rt, P as $e, Q as _, R as I, T as zt, U as Kt, V as Wt, W as Gt, Z as Vt, _ as qt, $ as Yt, a0 as Be, a1 as Ht, a2 as Z, a3 as Me, a4 as Re, a5 as Jt, a6 as ze, a7 as Ke, a8 as We, a9 as Ge, aa as Ut, ab as Ve, ac as Xt, ad as Zt, ae as Qt, af as Se, ag as ie, ah as ea, ai as ta, aj as qe, ak as aa, al as ra, am as Ye, an as na, ao as oa, ap as ia, aq as sa, ar as la, as as ca, at as ua, au as He, av as M, aw as Je, ax as da, ay as fa, az as Ce, aA as pa, aB as Ue, aC as ma, aD as ha, aE as va, aF as ya, aG as ba, aH as ga, aI as xa, aJ as wa, aK as Pa, aL as Sa, aM as Ca, aN as Na } from "./hooks-CP_0XHUX.js";
2
+ import { bp as en, br as tn, bA as an, aO as rn, aP as nn, aQ as on, aR as sn, aS as ln, aT as cn, aU as un, aV as dn, aX as fn, aY as pn, aZ as mn, a_ as hn, a$ as vn, b0 as yn, bw as bn, b2 as gn, b4 as xn, b5 as wn, b6 as Pn, b7 as Sn, ba as Cn, bb as Nn, bc as An, bd as On, bf as kn, b3 as Ln, be as Dn, b9 as Tn, bx as Fn, bq as In, bk as _n, bn as En, bj as jn, bB as $n, bi as Bn, bh as Mn, aW as Rn, b1 as zn, b8 as Kn, bg as Wn, bl as Gn, bs as Vn, bt as qn, bu as Yn, bC as Hn, bm as Jn, bv as Un, bz as Xn, bo as Zn, by as Qn } from "./hooks-CP_0XHUX.js";
3
3
  import { jsx as n, jsxs as N, Fragment as ae } from "react/jsx-runtime";
4
4
  import * as fe from "react";
5
5
  import k, { PureComponent as Aa, useState as D, forwardRef as q, useEffect as B, useMemo as se, useCallback as Ne, useRef as pe, useImperativeHandle as Oa, Children as ka, createContext as La } from "react";
@@ -49469,7 +49469,7 @@ const x$e = () => {
49469
49469
  ...P$e,
49470
49470
  ...wB
49471
49471
  ];
49472
- const CLt = ["sm", "md", "lg"], gO = (e) => wB.includes(e), eo = "group relative inline-flex items-center justify-center gap-1 whitespace-nowrap rounded border-none p-0 text-base font-medium shadow-[0_2px_6px_-1px_rgba(13,22,37,.04),inset_0_-2px_4px_rgba(13,22,37,.04)] transition-colors [&_.main]:transform-gpu [&_.main]:transition-transform [&_.main]:duration-100 active:[&_.main]:translate-y-px [&_.main]:flex [&_.main]:items-center [&_.main]:justify-center disabled:opacity-30 disabled:cursor-not-allowed no-underline", Pp = "relative flex-row font-medium h-fit [&[aria-disabled=true]]:pointer-events-none [&[aria-disabled=true]]:cursor-not-allowed [&[aria-disabled=true]]:opacity-30 transition-colors", Nw = It({
49472
+ const CLt = ["sm", "md", "lg"], gO = (e) => wB.includes(e), eo = "group relative inline-flex items-center justify-center gap-1 whitespace-nowrap rounded border-none p-0 text-base font-medium shadow-[0_2px_6px_-1px_rgba(13,22,37,.04),inset_0_-2px_4px_rgba(13,22,37,.04)] transition-colors [&_.main]:transform-gpu [&_.main]:transition-transform [&_.main]:duration-100 active:[&_.main]:translate-y-px [&_.main]:flex [&_.main]:items-center [&_.main]:justify-center disabled:opacity-30 disabled:cursor-not-allowed no-underline", Pp = "relative flex-row font-medium [&[aria-disabled=true]]:pointer-events-none [&[aria-disabled=true]]:cursor-not-allowed [&[aria-disabled=true]]:opacity-30 transition-colors", Nw = It({
49473
49473
  base: "inline-flex items-center gap-1 text-base font-medium transition-colors",
49474
49474
  variants: {
49475
49475
  variant: {
@@ -54003,7 +54003,8 @@ function $O({ otherActions: e, selectable: t = !1, selected: n = !1, onSelect: r
54003
54003
  variant: "ghost",
54004
54004
  size: "sm",
54005
54005
  hideLabel: !0,
54006
- pressed: c
54006
+ pressed: c,
54007
+ compact: !0
54007
54008
  })
54008
54009
  })
54009
54010
  }), t && l("div", {
@@ -54072,6 +54073,7 @@ const iHe = re(function({ compact: t = !1, avatar: n, image: r, title: a, descri
54072
54073
  title: a
54073
54074
  })]
54074
54075
  }), (o || s) && T(Qw, {
54076
+ className: "pointer-events-none",
54075
54077
  children: [o && l("div", {
54076
54078
  className: se("flex flex-col gap-0.5", t && "gap-x-3 gap-y-0", y && "flex-col gap-y-0.5"),
54077
54079
  children: o.map((L, x) => l(X_e, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@factorialco/f0-react",
3
- "version": "1.247.3",
3
+ "version": "1.247.4",
4
4
  "main": "dist/f0.js",
5
5
  "typings": "dist/f0.d.ts",
6
6
  "private": false,