@factorialco/f0-react 1.384.0 → 1.385.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.
@@ -1,6 +1,6 @@
1
1
  import { jsx as X, jsxs as le } from "react/jsx-runtime";
2
2
  import { useInsertionEffect as Xe, createContext as ke, useContext as $e, useRef as _, useEffect as ne, useState as _e, useCallback as ze, useMemo as Ye } from "react";
3
- import { y as qe, z as We, D as He, G as je, J as Ne, K as Ke, M as Qe, N as Je, Q as Ze, R as et, V as Ce, W as tt, X as rt, Y as nt, Z as it, _ as ot, $ as at, a0 as st, a1 as ie, a2 as ct, a3 as ut, a4 as lt, a5 as ft, a6 as mt, a7 as dt, a8 as fe, a9 as ht } from "./F0AiChat-C037KOv0.js";
3
+ import { y as qe, z as We, D as He, G as je, J as Ne, K as Ke, M as Qe, N as Je, Q as Ze, R as et, V as Ce, W as tt, X as rt, Y as nt, Z as it, _ as ot, $ as at, a0 as st, a1 as ie, a2 as ct, a3 as ut, a4 as lt, a5 as ft, a6 as mt, a7 as dt, a8 as fe, a9 as ht } from "./F0AiChat-Ddo83UfP.js";
4
4
  import { useTrackVolume as pt } from "@livekit/components-react";
5
5
  function vt(t, e, r) {
6
6
  Xe(() => t.on(e, r), [t, e, r]);
package/dist/ai.d.ts CHANGED
@@ -72,6 +72,7 @@ export declare type AiChatProviderProps = {
72
72
  threadId: string;
73
73
  feedback: string;
74
74
  }) => void;
75
+ tracking?: AiChatTrackingOptions;
75
76
  } & Pick<CopilotKitProps, "agent" | "credentials" | "children" | "runtimeUrl" | "showDevConsole" | "threadId" | "headers">;
76
77
 
77
78
  /**
@@ -102,6 +103,7 @@ declare type AiChatProviderReturnValue = {
102
103
  threadId: string;
103
104
  feedback: string;
104
105
  }) => void;
106
+ tracking?: AiChatTrackingOptions;
105
107
  /**
106
108
  * Clear/reset the chat conversation
107
109
  */
@@ -168,8 +170,20 @@ declare interface AiChatState {
168
170
  threadId: string;
169
171
  feedback: string;
170
172
  }) => void;
173
+ tracking?: AiChatTrackingOptions;
171
174
  }
172
175
 
176
+ /**
177
+ * Tracking options for the AI chat
178
+ */
179
+ declare type AiChatTrackingOptions = {
180
+ onVisibility?: () => void;
181
+ onClose?: () => void;
182
+ onWelcomeSuggestionClick?: (suggestion: WelcomeScreenSuggestion) => void;
183
+ onNewChat?: () => void;
184
+ onMessage?: (message: Message) => void;
185
+ };
186
+
173
187
  /**
174
188
  * AI Chat translations type
175
189
  */
@@ -838,7 +852,7 @@ export declare const F0AiChat: () => JSX_2.Element | null;
838
852
  /**
839
853
  * @experimental This is an experimental component use it at your own risk
840
854
  */
841
- export declare const F0AiChatProvider: ({ enabled, greeting, initialMessage, welcomeScreenSuggestions, disclaimer, resizable, defaultVisualizationMode, lockVisualizationMode, footer, onThumbsUp, onThumbsDown, children, agent, ...copilotKitProps }: AiChatProviderProps) => JSX_2.Element;
855
+ export declare const F0AiChatProvider: ({ enabled, greeting, initialMessage, welcomeScreenSuggestions, disclaimer, resizable, defaultVisualizationMode, lockVisualizationMode, footer, onThumbsUp, onThumbsDown, children, agent, tracking, ...copilotKitProps }: AiChatProviderProps) => JSX_2.Element;
842
856
 
843
857
  export declare const F0AiChatTextArea: ({ submitLabel, inProgress, onSend, onStop, placeholders, defaultPlaceholder, autoFocus, }: F0AiChatTextAreaProps) => JSX_2.Element;
844
858
 
@@ -992,12 +1006,16 @@ export declare interface F0OneIconProps extends SVGProps<SVGSVGElement> {
992
1006
  size?: "xs" | "sm" | "md" | "lg";
993
1007
  }
994
1008
 
995
- export declare const F0OneSwitch: ({ className, disabled, tooltip, autoOpen, }: F0OneSwitchProps) => JSX_2.Element | null;
1009
+ export declare const F0OneSwitch: ({ className, disabled, onVisible, tooltip, autoOpen, onToggle, }: F0OneSwitchProps) => JSX_2.Element | null;
996
1010
 
997
1011
  /**
998
1012
  * Props for the F0OneSwitch component
999
1013
  */
1000
1014
  export declare type F0OneSwitchProps = React.ComponentPropsWithoutRef<typeof SwitchPrimitive.Root> & {
1015
+ /** Callback when the switch is visible */
1016
+ onVisible?: () => void;
1017
+ /** Callback when the switch is toggled */
1018
+ onToggle?: () => void;
1001
1019
  /** Custom text shown in the tooltip when the chat is closed */
1002
1020
  tooltip?: {
1003
1021
  whenDisabled?: string;
@@ -1223,11 +1241,6 @@ declare module "gridstack" {
1223
1241
  }
1224
1242
 
1225
1243
 
1226
- declare namespace Calendar {
1227
- var displayName: string;
1228
- }
1229
-
1230
-
1231
1244
  declare module "@tiptap/core" {
1232
1245
  interface Commands<ReturnType> {
1233
1246
  aiBlock: {
@@ -1275,3 +1288,8 @@ declare module "@tiptap/core" {
1275
1288
  };
1276
1289
  }
1277
1290
  }
1291
+
1292
+
1293
+ declare namespace Calendar {
1294
+ var displayName: string;
1295
+ }
package/dist/ai.js CHANGED
@@ -1,6 +1,6 @@
1
- import { A as e, B as o, C as t, E as n, h as i, F as r, a as l, x as c, i as A, b as u, s as F, t as h, v as C, w as T, c as d, n as m, o as I, p as f, H as g, I as S, k as p, L as x, O as H, q as P, P as b, S as k, T as O, l as v, m as w, U as M, r as E, j as L, d as q, e as B, u as U, g as j, f as z } from "./F0AiChat-C037KOv0.js";
1
+ import { A as e, B as o, C as t, E as n, h as i, F as r, a as l, x as c, i as A, b as u, s as F, t as h, v as C, w as T, c as d, n as m, o as I, p as f, H as g, I as S, k as p, L as x, O as H, q as P, P as b, S as k, T as O, l as v, m as w, U as M, r as E, j as L, d as q, e as B, u as U, g as j, f as z } from "./F0AiChat-Ddo83UfP.js";
2
2
  import { defaultTranslations as R } from "./i18n-provider-defaults.js";
3
- import { A as y, F as G, c as J, b as K, a as N, o as Q, u as W } from "./F0HILActionConfirmation-Ba1wbwZK.js";
3
+ import { A as y, F as G, c as J, b as K, a as N, o as Q, u as W } from "./F0HILActionConfirmation-C475SHSS.js";
4
4
  export {
5
5
  e as A,
6
6
  y as AiChatTranslationsProvider,
@@ -51,6 +51,7 @@ import { JSONContent as JSONContent_2 } from '@tiptap/core';
51
51
  import { JSX as JSX_2 } from 'react';
52
52
  import { LineChartProps } from './experimental';
53
53
  import { LongTextCellValue } from './types/longText';
54
+ import { Message as Message_2 } from '@copilotkit/shared';
54
55
  import { NumberCellValue } from './types/number';
55
56
  import { NumberCellValue as NumberCellValue_2 } from './experimental';
56
57
  import { NumberFilterOptions } from './NumberFilter/NumberFilter';
@@ -430,8 +431,20 @@ declare type AiChatProviderProps = {
430
431
  threadId: string;
431
432
  feedback: string;
432
433
  }) => void;
434
+ tracking?: AiChatTrackingOptions;
433
435
  } & Pick<CopilotKitProps, "agent" | "credentials" | "children" | "runtimeUrl" | "showDevConsole" | "threadId" | "headers">;
434
436
 
437
+ /**
438
+ * Tracking options for the AI chat
439
+ */
440
+ declare type AiChatTrackingOptions = {
441
+ onVisibility?: () => void;
442
+ onClose?: () => void;
443
+ onWelcomeSuggestionClick?: (suggestion: WelcomeScreenSuggestion) => void;
444
+ onNewChat?: () => void;
445
+ onMessage?: (message: Message_2) => void;
446
+ };
447
+
435
448
  /**
436
449
  * @experimental This is an experimental component use it at your own risk
437
450
  */
@@ -6746,11 +6759,6 @@ declare module "gridstack" {
6746
6759
  }
6747
6760
 
6748
6761
 
6749
- declare namespace Calendar {
6750
- var displayName: string;
6751
- }
6752
-
6753
-
6754
6762
  declare module "@tiptap/core" {
6755
6763
  interface Commands<ReturnType> {
6756
6764
  aiBlock: {
@@ -6798,3 +6806,8 @@ declare module "@tiptap/core" {
6798
6806
  };
6799
6807
  }
6800
6808
  }
6809
+
6810
+
6811
+ declare namespace Calendar {
6812
+ var displayName: string;
6813
+ }
@@ -1,10 +1,10 @@
1
- import { a5 as Jd, bN as Zp, bO as eg, bP as tg, bQ as Ho, bR as ng, bS as eo, D as rg, bT as ig, ad as G, V as Yd, J as og, bU as sg, ap as Ei, bV as Qd, bW as lg, bX as ag, am as cg, bY as Ta, bZ as Qr, b_ as dg, b$ as gl, c0 as Xd, c1 as ys, a6 as C, a7 as At, u as Q, c2 as ug, c3 as fg, c4 as hg, c5 as mg, c6 as pg, av as Se, c7 as gg, al as Te, c8 as bg, c9 as Zd, aj as q, ca as eu, cb as tu, ae as at, cc as nu, cd as xs, ce as ru, a8 as $, cf as _r, ai as P, cg as vt, ch as vg, ci as yg, cj as dr, aK as iu, ck as ou, aV as rn, cl as su, cm as bl, cn as pt, aL as vl, aM as Jn, v as lu, co as au, cp as xg, cq as Da, cr as zn, cs as yl, ct as Lr, cu as Ti, cv as wg, cw as cu, cx as kg, cy as xl, cz as ur, cA as et, cB as Cg, cC as Ng, cD as qt, cE as Vo, cF as Sg, cG as lr, cH as En, cI as Ig, aa as we, cJ as Ag, cK as Eg, cL as Tg, cM as Dg, cN as _g, af as He, ah as Ee, cO as un, aY as on, bK as Or, cP as du, cQ as wl, cR as Lg, cS as Og, cT as Rg, cU as Fg, cV as Mg, cW as Pg, cX as zg, cY as $g, cZ as jg, c_ as kl, c$ as Bg, d0 as uu, d1 as Hg, d2 as Vg, d3 as Wg, d4 as Ug, d5 as Gg, d6 as qg, d7 as Kg, d8 as Jg, bl as St, d9 as fu, da as Yg, ao as se, a9 as fr, db as hu, dc as mu, b3 as Cl, t as Qg, dd as Xg, de as Zg, an as hr, df as eb, dg as Wo, dh as tb, di as Nl, dj as Kt, aR as pu, dk as _a, dl as La, dm as nb, dn as Oa, dp as gu, dq as Sl, aQ as $n, aO as bu, at as Il, au as Al, aw as El, aN as mr, ak as Rr, dr as rb, ds as ib, dt as vu, du as ob, ax as It, dv as sb, dw as yu, dx as xu, dy as lb, aZ as Fr, dz as Tl, dA as to, bn as fn, dB as ws, dC as ab, dD as cb, dE as db, dF as ub, dG as fb, dH as hb, dI as wu, dJ as mb, dK as ku, dL as pb, dM as gb, dN as bb, aI as Ra, dO as Cu, dP as ks, aC as Cs, dQ as Nu, dR as Ns, bu as Dl, b2 as hn, bh as no, dS as ro, dT as vb, dU as yb, dV as xb, bJ as io, b1 as Su, bM as wb, bL as kb, dW as Iu, dX as Cb, aE as _n, dY as Fa, dZ as Di, d_ as Nb, d$ as Sb, bm as Ib, bi as Au, aG as _l, a as Ab, d as Eb, e0 as Ll, e1 as Tb, F as Db, e2 as Eu, e3 as Tu, e4 as _b, e5 as Lb, e6 as Ob, e7 as Rb, e8 as Fb, e9 as Du, ea as Mb, bj as _u, eb as Lu, ec as Pb, ed as zb, ee as $b, ef as jb, eg as Bb, eh as Hb, ei as Vb, ej as Wb, bx as Ub, by as Gb, bF as oo, bD as Ol, b7 as so, ek as lo, el as ao, b8 as co, em as Rl, bE as Ou, aD as qb, bz as _i, en as Ru, eo as Kb, ep as Ss, eq as Jb, er as Ma, es as Yb, et as Qb, eu as Xb, ev as Zb, ew as ev, ex as tv, ey as nv, ac as Fu, bt as rv, bC as iv, ab as yt, b4 as ov, b5 as sv, b6 as lv, ez as Mu, eA as av, eB as cv, eC as dv, eD as uv, b9 as fv, eE as hv, eF as Pa, eG as za, eH as $a, eI as mv, eJ as pv, eK as gv, eL as bv, eM as Pu, eN as vv } from "./F0AiChat-C037KOv0.js";
2
- import { eQ as ZL, eP as eO, eO as tO, eV as nO, eW as rO, eS as iO, eR as oO, eU as sO, bk as lO, eT as aO } from "./F0AiChat-C037KOv0.js";
1
+ import { a5 as Jd, bN as Zp, bO as eg, bP as tg, bQ as Ho, bR as ng, bS as eo, D as rg, bT as ig, ad as G, V as Yd, J as og, bU as sg, ap as Ei, bV as Qd, bW as lg, bX as ag, am as cg, bY as Ta, bZ as Qr, b_ as dg, b$ as gl, c0 as Xd, c1 as ys, a6 as C, a7 as At, u as Q, c2 as ug, c3 as fg, c4 as hg, c5 as mg, c6 as pg, av as Se, c7 as gg, al as Te, c8 as bg, c9 as Zd, aj as q, ca as eu, cb as tu, ae as at, cc as nu, cd as xs, ce as ru, a8 as $, cf as _r, ai as P, cg as vt, ch as vg, ci as yg, cj as dr, aK as iu, ck as ou, aV as rn, cl as su, cm as bl, cn as pt, aL as vl, aM as Jn, v as lu, co as au, cp as xg, cq as Da, cr as zn, cs as yl, ct as Lr, cu as Ti, cv as wg, cw as cu, cx as kg, cy as xl, cz as ur, cA as et, cB as Cg, cC as Ng, cD as qt, cE as Vo, cF as Sg, cG as lr, cH as En, cI as Ig, aa as we, cJ as Ag, cK as Eg, cL as Tg, cM as Dg, cN as _g, af as He, ah as Ee, cO as un, aY as on, bK as Or, cP as du, cQ as wl, cR as Lg, cS as Og, cT as Rg, cU as Fg, cV as Mg, cW as Pg, cX as zg, cY as $g, cZ as jg, c_ as kl, c$ as Bg, d0 as uu, d1 as Hg, d2 as Vg, d3 as Wg, d4 as Ug, d5 as Gg, d6 as qg, d7 as Kg, d8 as Jg, bl as St, d9 as fu, da as Yg, ao as se, a9 as fr, db as hu, dc as mu, b3 as Cl, t as Qg, dd as Xg, de as Zg, an as hr, df as eb, dg as Wo, dh as tb, di as Nl, dj as Kt, aR as pu, dk as _a, dl as La, dm as nb, dn as Oa, dp as gu, dq as Sl, aQ as $n, aO as bu, at as Il, au as Al, aw as El, aN as mr, ak as Rr, dr as rb, ds as ib, dt as vu, du as ob, ax as It, dv as sb, dw as yu, dx as xu, dy as lb, aZ as Fr, dz as Tl, dA as to, bn as fn, dB as ws, dC as ab, dD as cb, dE as db, dF as ub, dG as fb, dH as hb, dI as wu, dJ as mb, dK as ku, dL as pb, dM as gb, dN as bb, aI as Ra, dO as Cu, dP as ks, aC as Cs, dQ as Nu, dR as Ns, bu as Dl, b2 as hn, bh as no, dS as ro, dT as vb, dU as yb, dV as xb, bJ as io, b1 as Su, bM as wb, bL as kb, dW as Iu, dX as Cb, aE as _n, dY as Fa, dZ as Di, d_ as Nb, d$ as Sb, bm as Ib, bi as Au, aG as _l, a as Ab, d as Eb, e0 as Ll, e1 as Tb, F as Db, e2 as Eu, e3 as Tu, e4 as _b, e5 as Lb, e6 as Ob, e7 as Rb, e8 as Fb, e9 as Du, ea as Mb, bj as _u, eb as Lu, ec as Pb, ed as zb, ee as $b, ef as jb, eg as Bb, eh as Hb, ei as Vb, ej as Wb, bx as Ub, by as Gb, bF as oo, bD as Ol, b7 as so, ek as lo, el as ao, b8 as co, em as Rl, bE as Ou, aD as qb, bz as _i, en as Ru, eo as Kb, ep as Ss, eq as Jb, er as Ma, es as Yb, et as Qb, eu as Xb, ev as Zb, ew as ev, ex as tv, ey as nv, ac as Fu, bt as rv, bC as iv, ab as yt, b4 as ov, b5 as sv, b6 as lv, ez as Mu, eA as av, eB as cv, eC as dv, eD as uv, b9 as fv, eE as hv, eF as Pa, eG as za, eH as $a, eI as mv, eJ as pv, eK as gv, eL as bv, eM as Pu, eN as vv } from "./F0AiChat-Ddo83UfP.js";
2
+ import { eQ as ZL, eP as eO, eO as tO, eV as nO, eW as rO, eS as iO, eR as oO, eU as sO, bk as lO, eT as aO } from "./F0AiChat-Ddo83UfP.js";
3
3
  import { jsx as l, jsxs as g, Fragment as ee } from "react/jsx-runtime";
4
4
  import * as Pe from "react";
5
5
  import Z, { createContext as Ht, forwardRef as J, useRef as j, useEffect as W, useContext as Vt, PureComponent as yv, useTransition as xv, useState as R, useLayoutEffect as Xt, useCallback as te, useMemo as M, useId as Fl, useImperativeHandle as zu, memo as uo, Fragment as jn, isValidElement as $u, cloneElement as Ml, createElement as ja, Children as ju } from "react";
6
- import { f as Ln, aG as pr, j as Xr, aH as wv, b as Uo, aI as kv, A as Cv, d as Zr, i as Nv, m as Sv, G as Iv, g as Ba, aJ as Av, l as Ha, aK as Ev, p as Tv, aL as Bu, aM as Hu, aN as Dv, C as _v, az as Lv, af as Bn, D as ze, aO as ct, aP as Et, aQ as Je, aR as Ov, aS as mi, aT as ut, aU as Vu, aV as nt, aW as Pl, aX as st, aY as Va, aZ as Rv, a_ as Wu, a$ as Ge, b0 as it, b1 as gr, b2 as Li, b3 as Uu, b4 as Fv, b5 as yn, b6 as Mv, b7 as Pv, b8 as zv, b9 as Mr, ba as Pr, bb as zl, bc as $v, bd as Gu, be as qu, bf as Ku, bg as jv, bh as Ju, bi as Yu, bj as Qu, bk as Xu, bl as Zu, bm as ef, bn as Is, bo as Bv, bp as Wa, bq as Hv, br as Vv, bs as Wv, x as Uv, y as Gv, F as qv, M as Ua, N as Ga, O as Kv, P as Jv, t as Yv, a4 as Qv, a5 as Xv, bt as Zv, bu as e0, a7 as t0, bv as tf, bw as n0, bx as r0, by as i0, an as fo, bz as $l, bA as nf, am as As, bB as o0, al as rf, a2 as zr, ah as s0, bC as l0, bD as a0, bE as c0, aq as jl, bF as d0, aD as u0, bG as Es, bH as f0, bI as Oi, bJ as h0, aE as m0, bK as p0, aC as of, aB as g0, aA as b0, bL as v0, bM as y0, bN as x0, bO as w0, bP as k0, bQ as C0, bR as N0, bS as S0, bT as I0, bU as A0, bV as E0, bW as T0, bX as D0, bY as _0, bZ as L0, aF as sf, at as lf, b_ as O0, R as R0, T as F0, V as M0, W as P0, Z as z0, U as $0, b$ as qa, c0 as j0, c1 as B0, n as H0 } from "./DataCollectionStorageProvider-C9X4oJL2.js";
7
- import { ai as dO, a8 as uO, a3 as fO, aa as hO, c5 as mO, c4 as pO, c2 as gO, c3 as bO, a6 as vO, a9 as yO, ar as xO, as as wO } from "./DataCollectionStorageProvider-C9X4oJL2.js";
6
+ import { f as Ln, aG as pr, j as Xr, aH as wv, b as Uo, aI as kv, A as Cv, d as Zr, i as Nv, m as Sv, G as Iv, g as Ba, aJ as Av, l as Ha, aK as Ev, p as Tv, aL as Bu, aM as Hu, aN as Dv, C as _v, az as Lv, af as Bn, D as ze, aO as ct, aP as Et, aQ as Je, aR as Ov, aS as mi, aT as ut, aU as Vu, aV as nt, aW as Pl, aX as st, aY as Va, aZ as Rv, a_ as Wu, a$ as Ge, b0 as it, b1 as gr, b2 as Li, b3 as Uu, b4 as Fv, b5 as yn, b6 as Mv, b7 as Pv, b8 as zv, b9 as Mr, ba as Pr, bb as zl, bc as $v, bd as Gu, be as qu, bf as Ku, bg as jv, bh as Ju, bi as Yu, bj as Qu, bk as Xu, bl as Zu, bm as ef, bn as Is, bo as Bv, bp as Wa, bq as Hv, br as Vv, bs as Wv, x as Uv, y as Gv, F as qv, M as Ua, N as Ga, O as Kv, P as Jv, t as Yv, a4 as Qv, a5 as Xv, bt as Zv, bu as e0, a7 as t0, bv as tf, bw as n0, bx as r0, by as i0, an as fo, bz as $l, bA as nf, am as As, bB as o0, al as rf, a2 as zr, ah as s0, bC as l0, bD as a0, bE as c0, aq as jl, bF as d0, aD as u0, bG as Es, bH as f0, bI as Oi, bJ as h0, aE as m0, bK as p0, aC as of, aB as g0, aA as b0, bL as v0, bM as y0, bN as x0, bO as w0, bP as k0, bQ as C0, bR as N0, bS as S0, bT as I0, bU as A0, bV as E0, bW as T0, bX as D0, bY as _0, bZ as L0, aF as sf, at as lf, b_ as O0, R as R0, T as F0, V as M0, W as P0, Z as z0, U as $0, b$ as qa, c0 as j0, c1 as B0, n as H0 } from "./DataCollectionStorageProvider-CGbqg3A9.js";
7
+ import { ai as dO, a8 as uO, a3 as fO, aa as hO, c5 as mO, c4 as pO, c2 as gO, c3 as bO, a6 as vO, a9 as yO, ar as xO, as as wO } from "./DataCollectionStorageProvider-CGbqg3A9.js";
8
8
  import './experimental.css';function af(t, e) {
9
9
  const n = Jd(e()), r = () => n.set(e());
10
10
  return r(), Zp(() => {
package/dist/f0.d.ts CHANGED
@@ -339,6 +339,7 @@ export declare type AiChatProviderProps = {
339
339
  threadId: string;
340
340
  feedback: string;
341
341
  }) => void;
342
+ tracking?: AiChatTrackingOptions;
342
343
  } & Pick<CopilotKitProps, "agent" | "credentials" | "children" | "runtimeUrl" | "showDevConsole" | "threadId" | "headers">;
343
344
 
344
345
  /**
@@ -369,6 +370,7 @@ declare type AiChatProviderReturnValue = {
369
370
  threadId: string;
370
371
  feedback: string;
371
372
  }) => void;
373
+ tracking?: AiChatTrackingOptions;
372
374
  /**
373
375
  * Clear/reset the chat conversation
374
376
  */
@@ -435,8 +437,20 @@ declare interface AiChatState {
435
437
  threadId: string;
436
438
  feedback: string;
437
439
  }) => void;
440
+ tracking?: AiChatTrackingOptions;
438
441
  }
439
442
 
443
+ /**
444
+ * Tracking options for the AI chat
445
+ */
446
+ declare type AiChatTrackingOptions = {
447
+ onVisibility?: () => void;
448
+ onClose?: () => void;
449
+ onWelcomeSuggestionClick?: (suggestion: WelcomeScreenSuggestion) => void;
450
+ onNewChat?: () => void;
451
+ onMessage?: (message: Message) => void;
452
+ };
453
+
440
454
  /**
441
455
  * AI Chat translations type
442
456
  */
@@ -2833,7 +2847,7 @@ export declare const F0AiChat: () => JSX_2.Element | null;
2833
2847
  /**
2834
2848
  * @experimental This is an experimental component use it at your own risk
2835
2849
  */
2836
- export declare const F0AiChatProvider: ({ enabled, greeting, initialMessage, welcomeScreenSuggestions, disclaimer, resizable, defaultVisualizationMode, lockVisualizationMode, footer, onThumbsUp, onThumbsDown, children, agent, ...copilotKitProps }: AiChatProviderProps) => JSX_2.Element;
2850
+ export declare const F0AiChatProvider: ({ enabled, greeting, initialMessage, welcomeScreenSuggestions, disclaimer, resizable, defaultVisualizationMode, lockVisualizationMode, footer, onThumbsUp, onThumbsDown, children, agent, tracking, ...copilotKitProps }: AiChatProviderProps) => JSX_2.Element;
2837
2851
 
2838
2852
  export declare const F0AiChatTextArea: ({ submitLabel, inProgress, onSend, onStop, placeholders, defaultPlaceholder, autoFocus, }: F0AiChatTextAreaProps) => JSX_2.Element;
2839
2853
 
@@ -4437,12 +4451,16 @@ export declare interface F0OneIconProps extends SVGProps<SVGSVGElement> {
4437
4451
  size?: "xs" | "sm" | "md" | "lg";
4438
4452
  }
4439
4453
 
4440
- export declare const F0OneSwitch: ({ className, disabled, tooltip, autoOpen, }: F0OneSwitchProps) => JSX_2.Element | null;
4454
+ export declare const F0OneSwitch: ({ className, disabled, onVisible, tooltip, autoOpen, onToggle, }: F0OneSwitchProps) => JSX_2.Element | null;
4441
4455
 
4442
4456
  /**
4443
4457
  * Props for the F0OneSwitch component
4444
4458
  */
4445
4459
  export declare type F0OneSwitchProps = React.ComponentPropsWithoutRef<typeof SwitchPrimitive.Root> & {
4460
+ /** Callback when the switch is visible */
4461
+ onVisible?: () => void;
4462
+ /** Callback when the switch is toggled */
4463
+ onToggle?: () => void;
4446
4464
  /** Custom text shown in the tooltip when the chat is closed */
4447
4465
  tooltip?: {
4448
4466
  whenDisabled?: string;
@@ -8329,11 +8347,6 @@ declare module "gridstack" {
8329
8347
  }
8330
8348
 
8331
8349
 
8332
- declare namespace Calendar {
8333
- var displayName: string;
8334
- }
8335
-
8336
-
8337
8350
  declare module "@tiptap/core" {
8338
8351
  interface Commands<ReturnType> {
8339
8352
  aiBlock: {
@@ -8381,3 +8394,8 @@ declare module "@tiptap/core" {
8381
8394
  };
8382
8395
  }
8383
8396
  }
8397
+
8398
+
8399
+ declare namespace Calendar {
8400
+ var displayName: string;
8401
+ }
package/dist/f0.js CHANGED
@@ -1,12 +1,12 @@
1
- import { aa as ye, ab as dt, a6 as le, a7 as At, ac as fo, ad as Ri, ae as Ai, af as ls, ag as Ul, ah as ho, ai as wt, u as Tt, aj as Wr, ak as Zl, al as ql, am as Kl, an as Xl, ao as at, ap as Yl, aq as Jl, ar as mo, as as Ql, at as po, au as go, av as Ln, aw as vo, ax as yo, ay as ln, az as bo, aA as ec, aB as tc, aC as rc, aD as nc, aE as ic, a8 as qe, aF as cs, aG as sc, aH as oc, aI as ac, aJ as lc, aK as xo, aL as cc, aM as dc, aN as uc, aO as wo, aP as fc, aQ as ar, aR as hc, aS as mc, aT as pc, aU as gc, aV as Ti, aW as vc, aX as _o, aY as yc, a9 as bc, aZ as xc, a_ as wc, a$ as _c, b0 as Cc, b1 as Co, b2 as Ec, b3 as Sc, b4 as kc, b5 as Dc, b6 as Nc, b7 as Rc, b8 as Ac, b9 as Tc, ba as Oc, bb as Mc, bc as Lc, I as Fc, bd as Ic, be as Pc, bf as zc, bg as Bc } from "./F0AiChat-C037KOv0.js";
2
- import { A as Vv, bv as Hv, B as jv, C as $v, E as Wv, bK as Gv, h as Uv, F as Zv, a as qv, x as Kv, i as Xv, b as Yv, bh as Jv, bi as Qv, bj as ey, bl as ty, bm as ry, bn as ny, bo as iy, bp as sy, bq as oy, br as ay, bG as ly, s as cy, t as dy, v as uy, bu as fy, w as hy, c as my, bw as py, n as gy, o as vy, p as yy, H as by, k as xy, L as wy, O as _y, bt as Cy, q as Ey, P as Sy, S as ky, T as Dy, l as Ny, m as Ry, U as Ay, bH as Ty, bB as Oy, r as My, j as Ly, bE as Fy, bA as Iy, bL as Py, bz as zy, by as By, bk as Vy, d as Hy, bx as jy, bC as $y, e as Wy, bM as Gy, bs as Uy, bD as Zy, g as qy, f as Ky, bJ as Xy, bF as Yy, bI as Jy } from "./F0AiChat-C037KOv0.js";
1
+ import { aa as ye, ab as dt, a6 as le, a7 as At, ac as fo, ad as Ri, ae as Ai, af as ls, ag as Ul, ah as ho, ai as wt, u as Tt, aj as Wr, ak as Zl, al as ql, am as Kl, an as Xl, ao as at, ap as Yl, aq as Jl, ar as mo, as as Ql, at as po, au as go, av as Ln, aw as vo, ax as yo, ay as ln, az as bo, aA as ec, aB as tc, aC as rc, aD as nc, aE as ic, a8 as qe, aF as cs, aG as sc, aH as oc, aI as ac, aJ as lc, aK as xo, aL as cc, aM as dc, aN as uc, aO as wo, aP as fc, aQ as ar, aR as hc, aS as mc, aT as pc, aU as gc, aV as Ti, aW as vc, aX as _o, aY as yc, a9 as bc, aZ as xc, a_ as wc, a$ as _c, b0 as Cc, b1 as Co, b2 as Ec, b3 as Sc, b4 as kc, b5 as Dc, b6 as Nc, b7 as Rc, b8 as Ac, b9 as Tc, ba as Oc, bb as Mc, bc as Lc, I as Fc, bd as Ic, be as Pc, bf as zc, bg as Bc } from "./F0AiChat-Ddo83UfP.js";
2
+ import { A as Vv, bv as Hv, B as jv, C as $v, E as Wv, bK as Gv, h as Uv, F as Zv, a as qv, x as Kv, i as Xv, b as Yv, bh as Jv, bi as Qv, bj as ey, bl as ty, bm as ry, bn as ny, bo as iy, bp as sy, bq as oy, br as ay, bG as ly, s as cy, t as dy, v as uy, bu as fy, w as hy, c as my, bw as py, n as gy, o as vy, p as yy, H as by, k as xy, L as wy, O as _y, bt as Cy, q as Ey, P as Sy, S as ky, T as Dy, l as Ny, m as Ry, U as Ay, bH as Ty, bB as Oy, r as My, j as Ly, bE as Fy, bA as Iy, bL as Py, bz as zy, by as By, bk as Vy, d as Hy, bx as jy, bC as $y, e as Wy, bM as Gy, bs as Uy, bD as Zy, g as qy, f as Ky, bJ as Xy, bF as Yy, bI as Jy } from "./F0AiChat-Ddo83UfP.js";
3
3
  import { jsx as f, jsxs as W, Fragment as Yt } from "react/jsx-runtime";
4
4
  import * as lt from "react";
5
5
  import q, { forwardRef as Ke, useRef as Y, useImperativeHandle as Vc, Children as cn, createContext as vt, useContext as ct, useState as re, useMemo as H, useEffect as ie, useCallback as K, useLayoutEffect as ui, createElement as Qr, isValidElement as Eo, Fragment as Hc, memo as jc, useReducer as $c, cloneElement as Wc, PureComponent as Gc, useId as Uc } from "react";
6
6
  import { createPortal as So, unstable_batchedUpdates as en, flushSync as Zc } from "react-dom";
7
- import { L as ko, C as qc, i as Do, D as Kc, S as ds, a as Xc, f as Yn, b as _r, c as Yc, A as Jc, d as tn, e as No, E as Qc, g as sn, h as ed, j as td, k as rd, l as ir, m as Ro, u as nd, G as id, n as sd, o as us, p as od, q as Ao, r as ad, B as To, X as Oo, Y as fi, s as ld, t as Mo, v as cd, w as dd, x as ud, y as fd, z as hd, F as md, H as pd, I as gd, J as fs, K as vd, M as Nr, N as Jn, O as yd, P as bd, Q as xd, R as wd, T as _d, U as Cd, V as Ed, W as Sd, Z as kd, _ as Dd, $ as Nd, a0 as hs, a1 as Rd, a2 as Ad, a3 as hi, a4 as Lo, a5 as Td, a6 as Od, a7 as Md, a8 as Ld, a9 as Fo, aa as Oi, ab as Fd, ac as Id, ad as Pd, ae as zd, af as Bd, ag as Io, ah as Po, ai as Vd, aj as Hd, ak as jd, al as $d } from "./DataCollectionStorageProvider-C9X4oJL2.js";
8
- import { aB as eb, am as tb, an as rb, aq as nb, at as ib, au as sb, av as ob, ax as ab, ay as lb, az as cb, aw as db, ao as ub, ap as fb, aA as hb, ar as mb, as as pb, aC as gb, aD as vb, aE as yb, aF as bb } from "./DataCollectionStorageProvider-C9X4oJL2.js";
9
- import { A as wb, F as _b, c as Cb, b as Eb, a as Sb, o as kb, u as Db } from "./F0HILActionConfirmation-Ba1wbwZK.js";
7
+ import { L as ko, C as qc, i as Do, D as Kc, S as ds, a as Xc, f as Yn, b as _r, c as Yc, A as Jc, d as tn, e as No, E as Qc, g as sn, h as ed, j as td, k as rd, l as ir, m as Ro, u as nd, G as id, n as sd, o as us, p as od, q as Ao, r as ad, B as To, X as Oo, Y as fi, s as ld, t as Mo, v as cd, w as dd, x as ud, y as fd, z as hd, F as md, H as pd, I as gd, J as fs, K as vd, M as Nr, N as Jn, O as yd, P as bd, Q as xd, R as wd, T as _d, U as Cd, V as Ed, W as Sd, Z as kd, _ as Dd, $ as Nd, a0 as hs, a1 as Rd, a2 as Ad, a3 as hi, a4 as Lo, a5 as Td, a6 as Od, a7 as Md, a8 as Ld, a9 as Fo, aa as Oi, ab as Fd, ac as Id, ad as Pd, ae as zd, af as Bd, ag as Io, ah as Po, ai as Vd, aj as Hd, ak as jd, al as $d } from "./DataCollectionStorageProvider-CGbqg3A9.js";
8
+ import { aB as eb, am as tb, an as rb, aq as nb, at as ib, au as sb, av as ob, ax as ab, ay as lb, az as cb, aw as db, ao as ub, ap as fb, aA as hb, ar as mb, as as pb, aC as gb, aD as vb, aE as yb, aF as bb } from "./DataCollectionStorageProvider-CGbqg3A9.js";
9
+ import { A as wb, F as _b, c as Cb, b as Eb, a as Sb, o as kb, u as Db } from "./F0HILActionConfirmation-C475SHSS.js";
10
10
  import { defaultTranslations as Rb } from "./i18n-provider-defaults.js";
11
11
  import './f0.css';const Wd = {
12
12
  xs: 1,
@@ -631,11 +631,6 @@ declare module "gridstack" {
631
631
  }
632
632
 
633
633
 
634
- declare namespace Calendar {
635
- var displayName: string;
636
- }
637
-
638
-
639
634
  declare module "@tiptap/core" {
640
635
  interface Commands<ReturnType> {
641
636
  aiBlock: {
@@ -683,3 +678,8 @@ declare module "@tiptap/core" {
683
678
  };
684
679
  }
685
680
  }
681
+
682
+
683
+ declare namespace Calendar {
684
+ var displayName: string;
685
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@factorialco/f0-react",
3
- "version": "1.384.0",
3
+ "version": "1.385.0",
4
4
  "main": "dist/f0.js",
5
5
  "typings": "dist/f0.d.ts",
6
6
  "private": false,