@factorialco/f0-react 1.459.0 → 1.459.1

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.
@@ -227036,14 +227036,12 @@ const zOr = () => {
227036
227036
  try {
227037
227037
  await i.submit();
227038
227038
  const a = i.getErrors();
227039
- return Object.keys(a).length > 0 ? { success: !1, errors: a } : { success: !0 };
227039
+ return Object.keys(a).length > 0 ? { success: !1, errors: a } : (e.clearActiveForm(), t(), e.rebuildDescriptions(), { success: !0 });
227040
227040
  } catch {
227041
227041
  return {
227042
227042
  success: !1,
227043
227043
  errors: i.getErrors()
227044
227044
  };
227045
- } finally {
227046
- e.clearActiveForm(), t(), e.rebuildDescriptions();
227047
227045
  }
227048
227046
  }
227049
227047
  });
@@ -257535,14 +257533,15 @@ function yYr({
257535
257533
  formDefinition: e,
257536
257534
  formRef: t,
257537
257535
  isSubmitting: n,
257538
- onSubmit: r
257536
+ hasErrors: r,
257537
+ onSubmit: i
257539
257538
  }) {
257540
- const i = S2t();
257539
+ const a = e.errorTriggerMode ?? "on-blur", o = S2t();
257541
257540
  return /* @__PURE__ */ A("div", { className: "flex h-full flex-col", children: [
257542
257541
  /* @__PURE__ */ A("div", { className: "relative min-h-0 flex-1 overflow-hidden [&>div]:h-full", children: [
257543
257542
  n && /* @__PURE__ */ f(E2t, {}),
257544
257543
  /* @__PURE__ */ f(
257545
- i,
257544
+ o,
257546
257545
  {
257547
257546
  formDefinition: e,
257548
257547
  styling: {
@@ -257561,7 +257560,8 @@ function yYr({
257561
257560
  Ot,
257562
257561
  {
257563
257562
  variant: "default",
257564
- onClick: r,
257563
+ onClick: i,
257564
+ disabled: r && a !== "on-submit",
257565
257565
  label: e.submitConfig?.label ?? "Submit"
257566
257566
  }
257567
257567
  )
@@ -257573,25 +257573,26 @@ function bYr({
257573
257573
  formDefinition: e,
257574
257574
  formRef: t,
257575
257575
  isSubmitting: n,
257576
- onSubmit: r
257576
+ hasErrors: r,
257577
+ onSubmit: i
257577
257578
  }) {
257578
- const i = S2t(), a = !!(e.sections && Object.keys(e.sections).length > 2);
257579
+ const a = e.errorTriggerMode ?? "on-blur", o = S2t(), s = !!(e.sections && Object.keys(e.sections).length > 2);
257579
257580
  return /* @__PURE__ */ A("div", { className: "flex h-full flex-col", children: [
257580
257581
  /* @__PURE__ */ A(
257581
257582
  "div",
257582
257583
  {
257583
257584
  className: J(
257584
257585
  "relative min-h-0 flex-1",
257585
- a ? "overflow-hidden [&>div]:h-full" : "overflow-auto p-6 pb-6"
257586
+ s ? "overflow-hidden [&>div]:h-full" : "overflow-auto p-6 pb-6"
257586
257587
  ),
257587
257588
  children: [
257588
257589
  n && /* @__PURE__ */ f(E2t, {}),
257589
257590
  /* @__PURE__ */ f(
257590
- i,
257591
+ o,
257591
257592
  {
257592
257593
  formDefinition: e,
257593
257594
  formRef: t,
257594
- styling: { showSectionsSidepanel: a }
257595
+ styling: { showSectionsSidepanel: s }
257595
257596
  }
257596
257597
  )
257597
257598
  ]
@@ -257606,7 +257607,8 @@ function bYr({
257606
257607
  Ot,
257607
257608
  {
257608
257609
  variant: "default",
257609
- onClick: r,
257610
+ onClick: i,
257611
+ disabled: r && a !== "on-submit",
257610
257612
  label: e.submitConfig?.label ?? "Submit"
257611
257613
  }
257612
257614
  )
@@ -257615,52 +257617,55 @@ function bYr({
257615
257617
  ] });
257616
257618
  }
257617
257619
  function wYr() {
257618
- const { formRef: e } = AVr(), { agent: t, closeCanvas: n } = Hr(), r = Av(), [i, a] = de(!1), o = Le();
257620
+ const { formRef: e, hasErrors: t } = AVr(), { agent: n, closeCanvas: r } = Hr(), i = Av(), [a, o] = de(!1), s = Le();
257619
257621
  Fe(() => () => {
257620
- o.current && clearTimeout(o.current);
257622
+ s.current && clearTimeout(s.current);
257621
257623
  }, []);
257622
- const { state: s } = fee({
257623
- name: t || "one-workflow"
257624
- }), l = s?.activeForm, c = l?.formName ?? "", u = c ? r?.get(c) : void 0, d = u?.ref.current, h = l?.formValues ?? {};
257624
+ const { state: l } = fee({
257625
+ name: n || "one-workflow"
257626
+ }), c = l?.activeForm, u = c?.formName ?? "", d = u ? i?.get(u) : void 0, h = d?.ref.current, p = c?.formValues ?? {};
257625
257627
  Fe(() => {
257626
- d?.setValues(h, { shouldDirty: !0, shouldValidate: !1 });
257627
- }, [c, JSON.stringify(h)]);
257628
- const p = Pe(() => {
257629
- e.current?.submit();
257630
- }, [e]), m = VVr({
257631
- name: c || "form",
257632
- schema: u?.schema ?? CYr,
257633
- defaultValues: h,
257634
- sections: u?.sections,
257635
- steps: u?.steps,
257636
- module: u?.module,
257637
- description: u?.description,
257638
- errorTriggerMode: u?.errorTriggerMode,
257628
+ h?.setValues(p, { shouldDirty: !0, shouldValidate: !1 });
257629
+ }, [u, JSON.stringify(p)]);
257630
+ const m = Pe(() => {
257631
+ e.current?.submit().catch(() => {
257632
+ });
257633
+ }, [e]), v = VVr({
257634
+ name: u || "form",
257635
+ schema: d?.schema ?? CYr,
257636
+ defaultValues: p,
257637
+ sections: d?.sections,
257638
+ steps: d?.steps,
257639
+ module: d?.module,
257640
+ description: d?.description,
257641
+ errorTriggerMode: d?.errorTriggerMode,
257639
257642
  submitConfig: {
257640
257643
  type: "default",
257641
257644
  hideSubmitButton: !0,
257642
257645
  hideActionBar: !0,
257643
- ...u?.submitConfig?.label && { label: u.submitConfig.label }
257646
+ ...d?.submitConfig?.label && { label: d.submitConfig.label }
257644
257647
  },
257645
- onSubmit: async ({ data: v }) => (a(!0), await u?.onSubmit?.(v), o.current = setTimeout(() => {
257646
- r?.resetFillVersion(c), r?.clearActiveForm(), n();
257648
+ onSubmit: async ({ data: g }) => (o(!0), await d?.onSubmit?.(g), s.current = setTimeout(() => {
257649
+ i?.resetFillVersion(u), i?.clearActiveForm(), r();
257647
257650
  }, 1500), { success: !0 })
257648
257651
  });
257649
- return !l || !u ? null : m.steps?.length ? /* @__PURE__ */ f(
257652
+ return !c || !d ? null : v.steps?.length ? /* @__PURE__ */ f(
257650
257653
  yYr,
257651
257654
  {
257652
- formDefinition: m,
257655
+ formDefinition: v,
257653
257656
  formRef: e,
257654
- isSubmitting: i,
257655
- onSubmit: p
257657
+ isSubmitting: a,
257658
+ hasErrors: t,
257659
+ onSubmit: m
257656
257660
  }
257657
257661
  ) : /* @__PURE__ */ f(
257658
257662
  bYr,
257659
257663
  {
257660
- formDefinition: m,
257664
+ formDefinition: v,
257661
257665
  formRef: e,
257662
- isSubmitting: i,
257663
- onSubmit: p
257666
+ isSubmitting: a,
257667
+ hasErrors: t,
257668
+ onSubmit: m
257664
257669
  }
257665
257670
  );
257666
257671
  }
package/dist/ai.d.ts CHANGED
@@ -3227,8 +3227,9 @@ declare module "@tiptap/core" {
3227
3227
 
3228
3228
  declare module "@tiptap/core" {
3229
3229
  interface Commands<ReturnType> {
3230
- moodTracker: {
3231
- insertMoodTracker: (data: MoodTrackerData) => ReturnType;
3230
+ enhanceHighlight: {
3231
+ setEnhanceHighlight: (from: number, to: number) => ReturnType;
3232
+ clearEnhanceHighlight: () => ReturnType;
3232
3233
  };
3233
3234
  }
3234
3235
  }
@@ -3236,9 +3237,8 @@ declare module "@tiptap/core" {
3236
3237
 
3237
3238
  declare module "@tiptap/core" {
3238
3239
  interface Commands<ReturnType> {
3239
- enhanceHighlight: {
3240
- setEnhanceHighlight: (from: number, to: number) => ReturnType;
3241
- clearEnhanceHighlight: () => ReturnType;
3240
+ moodTracker: {
3241
+ insertMoodTracker: (data: MoodTrackerData) => ReturnType;
3242
3242
  };
3243
3243
  }
3244
3244
  }
package/dist/ai.js CHANGED
@@ -1,6 +1,6 @@
1
- import { l as t, k as e, F as r, a as o, C as i, b as n, m as F, n as u, d as A, I as c, g as C, c as m, h, e as l, u as d, j as I, i as f, f as T } from "./F0AiChat-aV22-Ha-.js";
1
+ import { l as t, k as e, F as r, a as o, C as i, b as n, m as F, n as u, d as A, I as c, g as C, c as m, h, e as l, u as d, j as I, i as f, f as T } from "./F0AiChat-Cq75OE5L.js";
2
2
  import { defaultTranslations as S } from "./i18n-provider-defaults.js";
3
- import { A as v, e as x, F as P, c as V, d as k, b as O, a as b, f as y, o as M, u as j } from "./types-BnAOrOU4.js";
3
+ import { A as v, e as x, F as P, c as V, d as k, b as O, a as b, f as y, o as M, u as j } from "./types-C_fX7qbj.js";
4
4
  export {
5
5
  v as AiChatTranslationsProvider,
6
6
  t as ChatSpinner,
@@ -8033,8 +8033,9 @@ declare module "@tiptap/core" {
8033
8033
 
8034
8034
  declare module "@tiptap/core" {
8035
8035
  interface Commands<ReturnType> {
8036
- moodTracker: {
8037
- insertMoodTracker: (data: MoodTrackerData) => ReturnType;
8036
+ enhanceHighlight: {
8037
+ setEnhanceHighlight: (from: number, to: number) => ReturnType;
8038
+ clearEnhanceHighlight: () => ReturnType;
8038
8039
  };
8039
8040
  }
8040
8041
  }
@@ -8042,9 +8043,8 @@ declare module "@tiptap/core" {
8042
8043
 
8043
8044
  declare module "@tiptap/core" {
8044
8045
  interface Commands<ReturnType> {
8045
- enhanceHighlight: {
8046
- setEnhanceHighlight: (from: number, to: number) => ReturnType;
8047
- clearEnhanceHighlight: () => ReturnType;
8046
+ moodTracker: {
8047
+ insertMoodTracker: (data: MoodTrackerData) => ReturnType;
8048
8048
  };
8049
8049
  }
8050
8050
  }
@@ -1,9 +1,9 @@
1
- import { a9 as oa, aa as ca, ab as da, ac as ua, ad as Ft, ae as Te, af as fa, ag as ht, ah as rt, ai as Be, O as b, W as Z, P as be, u as se, aj as ma, ak as ha, al as pa, am as ba, an as ga, a5 as oe, ao as xa, U as Ee, ap as va, aq as wa, ar as $, as as ya, at as Na, M as _e, au as ln, av as Ca, aw as ka, Q as B, ax as sn, a8 as E, ay as ge, az as Sa, aA as Ia, aB as Fa, aC as Aa, aD as La, aE as Ce, aF as on, aG as Ea, aH as xe, aI as $e, aJ as _a, aK as pt, n as cn, aL as Ne, aM as Oa, aN as dn, a6 as ne, aO as H, R as un, aP as fn, aQ as Ta, aR as mn, aS as me, a7 as ee, aT as Da, aU as za, aV as Pa, aW as Ra, X as pe, aX as Ge, aY as Ba, aZ as $a, a_ as Wa, a$ as Ma, b0 as He, b1 as hn, b2 as ja, b3 as Va, b4 as Ga, b5 as We, b6 as Ha, b7 as Ua, b8 as Ka, b9 as qa, ba as Ya, bb as Za, bc as Xa, bd as Ja, be as Qa, bf as er, bg as lt, bh as it, bi as pn, bj as tr, bk as nr, bl as bn, bm as ar, bn as rr, T as Ue, bo as bt, bp as gn, bq as lr, br as xn, bs as ir, bt as sr, bu as or, bv as Le, bw as cr, bx as De, by as At, bz as st, bA as dr, bB as ur, a as fr, c as mr, bC as hr, bD as vn, bE as pr, bF as br, F as gr, bG as wn, _ as xr, bH as yn, bI as vr, bJ as Lt, bK as wr, bL as yr, bM as Nr, bN as Cr, bO as Nn, bP as kr, bQ as Sr, bR as Ir, bS as Fr, bT as Ar, Y as Cn, bU as ue, bV as kn, bW as gt, bX as xt, bY as vt, bZ as Sn, b_ as wt, b$ as In, $ as Fn, c0 as Lr, c1 as Er, c2 as _r, c3 as Or, c4 as Tr, c5 as Dr, c6 as zr, c7 as Pr, c8 as Rr, c9 as Br, ca as $r, cb as Et, cc as _t, cd as Ot, ce as Wr, cf as Mr, cg as jr, ch as Vr, ci as An, cj as Gr, ck as Hr, cl as Ur } from "./F0AiChat-aV22-Ha-.js";
2
- import { cF as Ac, cE as Lc, co as Ec, cR as _c, cy as Oc, cz as Tc, cn as Dc, cB as zc, cp as Pc, d1 as Rc, c$ as Bc, cq as $c, cC as Wc, cD as Mc, cA as jc, cr as Vc, cN as Gc, cO as Hc, cS as Uc, cZ as Kc, c_ as qc, d0 as Yc, cx as Zc, cs as Xc, cH as Jc, cG as Qc, ct as ed, cu as td, cv as nd, cP as ad, d2 as rd, cm as ld, cQ as id, cU as sd, cV as od, cM as cd, cJ as dd, cL as ud, cI as fd, cw as md, cK as hd, cW as pd, cX as bd, cT as gd, cY as xd } from "./F0AiChat-aV22-Ha-.js";
1
+ import { a9 as oa, aa as ca, ab as da, ac as ua, ad as Ft, ae as Te, af as fa, ag as ht, ah as rt, ai as Be, O as b, W as Z, P as be, u as se, aj as ma, ak as ha, al as pa, am as ba, an as ga, a5 as oe, ao as xa, U as Ee, ap as va, aq as wa, ar as $, as as ya, at as Na, M as _e, au as ln, av as Ca, aw as ka, Q as B, ax as sn, a8 as E, ay as ge, az as Sa, aA as Ia, aB as Fa, aC as Aa, aD as La, aE as Ce, aF as on, aG as Ea, aH as xe, aI as $e, aJ as _a, aK as pt, n as cn, aL as Ne, aM as Oa, aN as dn, a6 as ne, aO as H, R as un, aP as fn, aQ as Ta, aR as mn, aS as me, a7 as ee, aT as Da, aU as za, aV as Pa, aW as Ra, X as pe, aX as Ge, aY as Ba, aZ as $a, a_ as Wa, a$ as Ma, b0 as He, b1 as hn, b2 as ja, b3 as Va, b4 as Ga, b5 as We, b6 as Ha, b7 as Ua, b8 as Ka, b9 as qa, ba as Ya, bb as Za, bc as Xa, bd as Ja, be as Qa, bf as er, bg as lt, bh as it, bi as pn, bj as tr, bk as nr, bl as bn, bm as ar, bn as rr, T as Ue, bo as bt, bp as gn, bq as lr, br as xn, bs as ir, bt as sr, bu as or, bv as Le, bw as cr, bx as De, by as At, bz as st, bA as dr, bB as ur, a as fr, c as mr, bC as hr, bD as vn, bE as pr, bF as br, F as gr, bG as wn, _ as xr, bH as yn, bI as vr, bJ as Lt, bK as wr, bL as yr, bM as Nr, bN as Cr, bO as Nn, bP as kr, bQ as Sr, bR as Ir, bS as Fr, bT as Ar, Y as Cn, bU as ue, bV as kn, bW as gt, bX as xt, bY as vt, bZ as Sn, b_ as wt, b$ as In, $ as Fn, c0 as Lr, c1 as Er, c2 as _r, c3 as Or, c4 as Tr, c5 as Dr, c6 as zr, c7 as Pr, c8 as Rr, c9 as Br, ca as $r, cb as Et, cc as _t, cd as Ot, ce as Wr, cf as Mr, cg as jr, ch as Vr, ci as An, cj as Gr, ck as Hr, cl as Ur } from "./F0AiChat-Cq75OE5L.js";
2
+ import { cF as Ac, cE as Lc, co as Ec, cR as _c, cy as Oc, cz as Tc, cn as Dc, cB as zc, cp as Pc, d1 as Rc, c$ as Bc, cq as $c, cC as Wc, cD as Mc, cA as jc, cr as Vc, cN as Gc, cO as Hc, cS as Uc, cZ as Kc, c_ as qc, d0 as Yc, cx as Zc, cs as Xc, cH as Jc, cG as Qc, ct as ed, cu as td, cv as nd, cP as ad, d2 as rd, cm as ld, cQ as id, cU as sd, cV as od, cM as cd, cJ as dd, cL as ud, cI as fd, cw as md, cK as hd, cW as pd, cX as bd, cT as gd, cY as xd } from "./F0AiChat-Cq75OE5L.js";
3
3
  import { jsx as e, jsxs as o, Fragment as U } from "react/jsx-runtime";
4
4
  import re, { forwardRef as j, useRef as V, useTransition as Kr, useState as _, useLayoutEffect as Ln, useContext as Ke, createContext as yt, useCallback as Q, useMemo as K, useEffect as W, useId as qr, Fragment as Yr, isValidElement as Zr, cloneElement as En, Children as _n } from "react";
5
- import { C as Xr, P as Jr, g as On, c as Qr, F as ot, f as el, a as tl, A as nl, B as al, L as rl, b as ll, V as il, d as sl, e as Tt, h as ol, i as cl } from "./index-DoH6YiNb.js";
6
- import { l as wd, m as yd, j as Nd, n as Cd, s as kd, D as Sd, k as Id, o as Fd, w as Ad, x as Ld, N as Ed, y as _d, p as Od, r as Td, R as Dd, u as zd, q as Pd, _ as Rd, v as Bd, t as $d } from "./index-DoH6YiNb.js";
5
+ import { C as Xr, P as Jr, g as On, c as Qr, F as ot, f as el, a as tl, A as nl, B as al, L as rl, b as ll, V as il, d as sl, e as Tt, h as ol, i as cl } from "./index-B5WjgUhX.js";
6
+ import { l as wd, m as yd, j as Nd, n as Cd, s as kd, D as Sd, k as Id, o as Fd, w as Ad, x as Ld, N as Ed, y as _d, p as Od, r as Td, R as Dd, u as zd, q as Pd, _ as Rd, v as Bd, t as $d } from "./index-B5WjgUhX.js";
7
7
  const dl = oa("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
@@ -13298,8 +13298,9 @@ declare module "@tiptap/core" {
13298
13298
 
13299
13299
  declare module "@tiptap/core" {
13300
13300
  interface Commands<ReturnType> {
13301
- moodTracker: {
13302
- insertMoodTracker: (data: MoodTrackerData) => ReturnType;
13301
+ enhanceHighlight: {
13302
+ setEnhanceHighlight: (from: number, to: number) => ReturnType;
13303
+ clearEnhanceHighlight: () => ReturnType;
13303
13304
  };
13304
13305
  }
13305
13306
  }
@@ -13307,9 +13308,8 @@ declare module "@tiptap/core" {
13307
13308
 
13308
13309
  declare module "@tiptap/core" {
13309
13310
  interface Commands<ReturnType> {
13310
- enhanceHighlight: {
13311
- setEnhanceHighlight: (from: number, to: number) => ReturnType;
13312
- clearEnhanceHighlight: () => ReturnType;
13311
+ moodTracker: {
13312
+ insertMoodTracker: (data: MoodTrackerData) => ReturnType;
13313
13313
  };
13314
13314
  }
13315
13315
  }
package/dist/f0.js CHANGED
@@ -1,12 +1,12 @@
1
- import { fy as Or, a6 as se, bU as Tn, O as P, P as ht, fz as Mr, W as yt, dG as zo, aS as Yi, fA as Io, a7 as zr, a8 as de, u as oe, ar as he, fp as Ut, U as Bo, ac as Po, M as Ir, fB as un, aO as Oe, aL as hi, fC as Ho, fD as Wo, fE as qo, fF as Ji, a0 as Go, fG as $o, fH as Br, fI as jo, bd as fi, be as mi, a5 as Fn, bf as gi, aX as Pr, cR as hn, fJ as Hr, fK as Uo, eg as Vo, fL as Zi, ef as Qo, fM as Ko, fN as wt, fO as Vt, fP as Xo, fQ as Wr, fR as Yo, fS as Jo, fT as An, fU as Zo, fV as ea, R as We, b0 as ta, d4 as si, d3 as qr, fW as na, fX as pi, cn as ia, fY as ra, fZ as Gr, f_ as Ln, f$ as sa, g0 as oa, aI as vi, Q as Ce, aJ as aa, aK as fn, ce as la, g1 as ca, aR as On, g2 as $r, g3 as da, g4 as ua, g5 as ha, g6 as fa, cB as ma, m as ga, dq as pa, aq as jr, f4 as ft, g7 as Ur, f2 as Vr, g8 as mn, g9 as Qr, ch as Kr, ga as Xr, as as bi, at as yi, gb as xi, aw as wi, aB as De, gc as Ci, aD as xt, gd as At, ge as Lt, av as Ot, gf as Mt, gg as va, gh as Zt, gi as Yr, gj as gn, bM as Pt, gk as _e, cs as ba, gl as Jr, gm as ya, gn as pn, cr as xa, cq as wa, go as Ca, gp as Sa, bO as Mn, aE as zn, gq as Zr, bJ as Si, bP as Ei, bc as Ea, gr as Ae, gs as Na, gt as _a, gu as es, gv as In, gw as Da, gx as Ra, cj as ts, gy as ka, gz as Ta, gA as Fa, gB as Aa, bp as ns, bv as La, fs as Oa, ft as Ma, fv as za, gC as is, bW as Ia, b_ as Ba, gD as er, c5 as Pa, gE as rs, gF as Ha, gG as Wa } from "./F0AiChat-aV22-Ha-.js";
2
- import { hk as Lf, gL as Of, co as Mf, l as zf, hy as If, bo as Bf, k as Pf, F as Hf, a as Wf, C as qf, hb as Gf, b as $f, gY as jf, bN as Uf, c7 as Vf, _ as Qf, c8 as Kf, gI as Xf, bh as Yf, Y as Jf, X as Zf, Z as em, b3 as tm, gS as nm, gW as im, gJ as rm, gX as sm, gZ as om, g$ as am, hD as lm, bx as cm, n as dm, hv as um, b5 as hm, $ as fm, hf as mm, bB as gm, hg as pm, hi as vm, hj as bm, d1 as ym, c$ as xm, d as wm, gM as Cm, hl as Sm, gN as Em, gO as Nm, gP as _m, cN as Dm, cO as Rm, gH as km, gQ as Tm, hC as Fm, gR as Am, bu as Lm, d0 as Om, hh as Mm, cP as zm, cm as Im, hE as Bm, gT as Pm, gU as Hm, gV as Wm, gK as qm, cQ as Gm, hx as $m, hq as jm, hd as Um, h4 as Vm, h3 as Qm, h2 as Km, ha as Xm, ht as Ym, g as Jm, hp as Zm, bs as eg, cM as tg, cJ as ng, cL as ig, h9 as rg, cI as sg, h5 as og, ho as ag, hn as lg, h6 as cg, cw as dg, cK as ug, h0 as hg, h1 as fg, h7 as mg, c as gg, hm as pg, hr as vg, h as bg, hz as yg, hA as xg, hB as wg, bq as Cg, hc as Sg, g_ as Eg, he as Ng, e as _g, hw as Dg, hs as Rg, j as kg, i as Tg, bV as Fg, T as Ag, h8 as Lg, hu as Og, f as Mg, hF as zg } from "./F0AiChat-aV22-Ha-.js";
1
+ import { fy as Or, a6 as se, bU as Tn, O as P, P as ht, fz as Mr, W as yt, dG as zo, aS as Yi, fA as Io, a7 as zr, a8 as de, u as oe, ar as he, fp as Ut, U as Bo, ac as Po, M as Ir, fB as un, aO as Oe, aL as hi, fC as Ho, fD as Wo, fE as qo, fF as Ji, a0 as Go, fG as $o, fH as Br, fI as jo, bd as fi, be as mi, a5 as Fn, bf as gi, aX as Pr, cR as hn, fJ as Hr, fK as Uo, eg as Vo, fL as Zi, ef as Qo, fM as Ko, fN as wt, fO as Vt, fP as Xo, fQ as Wr, fR as Yo, fS as Jo, fT as An, fU as Zo, fV as ea, R as We, b0 as ta, d4 as si, d3 as qr, fW as na, fX as pi, cn as ia, fY as ra, fZ as Gr, f_ as Ln, f$ as sa, g0 as oa, aI as vi, Q as Ce, aJ as aa, aK as fn, ce as la, g1 as ca, aR as On, g2 as $r, g3 as da, g4 as ua, g5 as ha, g6 as fa, cB as ma, m as ga, dq as pa, aq as jr, f4 as ft, g7 as Ur, f2 as Vr, g8 as mn, g9 as Qr, ch as Kr, ga as Xr, as as bi, at as yi, gb as xi, aw as wi, aB as De, gc as Ci, aD as xt, gd as At, ge as Lt, av as Ot, gf as Mt, gg as va, gh as Zt, gi as Yr, gj as gn, bM as Pt, gk as _e, cs as ba, gl as Jr, gm as ya, gn as pn, cr as xa, cq as wa, go as Ca, gp as Sa, bO as Mn, aE as zn, gq as Zr, bJ as Si, bP as Ei, bc as Ea, gr as Ae, gs as Na, gt as _a, gu as es, gv as In, gw as Da, gx as Ra, cj as ts, gy as ka, gz as Ta, gA as Fa, gB as Aa, bp as ns, bv as La, fs as Oa, ft as Ma, fv as za, gC as is, bW as Ia, b_ as Ba, gD as er, c5 as Pa, gE as rs, gF as Ha, gG as Wa } from "./F0AiChat-Cq75OE5L.js";
2
+ import { hk as Lf, gL as Of, co as Mf, l as zf, hy as If, bo as Bf, k as Pf, F as Hf, a as Wf, C as qf, hb as Gf, b as $f, gY as jf, bN as Uf, c7 as Vf, _ as Qf, c8 as Kf, gI as Xf, bh as Yf, Y as Jf, X as Zf, Z as em, b3 as tm, gS as nm, gW as im, gJ as rm, gX as sm, gZ as om, g$ as am, hD as lm, bx as cm, n as dm, hv as um, b5 as hm, $ as fm, hf as mm, bB as gm, hg as pm, hi as vm, hj as bm, d1 as ym, c$ as xm, d as wm, gM as Cm, hl as Sm, gN as Em, gO as Nm, gP as _m, cN as Dm, cO as Rm, gH as km, gQ as Tm, hC as Fm, gR as Am, bu as Lm, d0 as Om, hh as Mm, cP as zm, cm as Im, hE as Bm, gT as Pm, gU as Hm, gV as Wm, gK as qm, cQ as Gm, hx as $m, hq as jm, hd as Um, h4 as Vm, h3 as Qm, h2 as Km, ha as Xm, ht as Ym, g as Jm, hp as Zm, bs as eg, cM as tg, cJ as ng, cL as ig, h9 as rg, cI as sg, h5 as og, ho as ag, hn as lg, h6 as cg, cw as dg, cK as ug, h0 as hg, h1 as fg, h7 as mg, c as gg, hm as pg, hr as vg, h as bg, hz as yg, hA as xg, hB as wg, bq as Cg, hc as Sg, g_ as Eg, he as Ng, e as _g, hw as Dg, hs as Rg, j as kg, i as Tg, bV as Fg, T as Ag, h8 as Lg, hu as Og, f as Mg, hF as zg } from "./F0AiChat-Cq75OE5L.js";
3
3
  import { jsx as l, jsxs as C, Fragment as we } from "react/jsx-runtime";
4
4
  import ae, { forwardRef as qe, useRef as W, useImperativeHandle as qa, Children as vn, createContext as Qe, useContext as Re, useState as j, useMemo as B, useEffect as V, useCallback as I, useLayoutEffect as oi, createElement as en, isValidElement as ss, Fragment as Ga, memo as os, useReducer as $a, cloneElement as ja, useId as as } from "react";
5
- import { g as Ua, h as Va } from "./types-BnAOrOU4.js";
6
- import { A as Bg, e as Pg, F as Hg, c as Wg, d as qg, b as Gg, a as $g, f as jg, o as Ug, u as Vg } from "./types-BnAOrOU4.js";
5
+ import { g as Ua, h as Va } from "./types-C_fX7qbj.js";
6
+ import { A as Bg, e as Pg, F as Hg, c as Wg, d as qg, b as Gg, a as $g, f as jg, o as Ug, u as Vg } from "./types-C_fX7qbj.js";
7
7
  import { createPortal as ls, unstable_batchedUpdates as tn } from "react-dom";
8
- import { C as Qa, M as Ni, D as Ka, z as Xa, u as cs, j as Ya } from "./index-DoH6YiNb.js";
9
- import { l as Kg, m as Xg, n as Yg, s as Jg, F as Zg, o as ep, w as tp, x as np, N as ip, y as rp, p as sp, P as op, r as ap, R as lp, q as cp, _ as dp, v as up, t as hp } from "./index-DoH6YiNb.js";
8
+ import { C as Qa, M as Ni, D as Ka, z as Xa, u as cs, j as Ya } from "./index-B5WjgUhX.js";
9
+ import { l as Kg, m as Xg, n as Yg, s as Jg, F as Zg, o as ep, w as tp, x as np, N as ip, y as rp, p as sp, P as op, r as ap, R as lp, q as cp, _ as dp, v as up, t as hp } from "./index-B5WjgUhX.js";
10
10
  import { defaultTranslations as mp } from "./i18n-provider-defaults.js";
11
11
  import './f0.css';const Ja = {
12
12
  xs: 1,
@@ -808,8 +808,9 @@ declare module "@tiptap/core" {
808
808
 
809
809
  declare module "@tiptap/core" {
810
810
  interface Commands<ReturnType> {
811
- moodTracker: {
812
- insertMoodTracker: (data: MoodTrackerData) => ReturnType;
811
+ enhanceHighlight: {
812
+ setEnhanceHighlight: (from: number, to: number) => ReturnType;
813
+ clearEnhanceHighlight: () => ReturnType;
813
814
  };
814
815
  }
815
816
  }
@@ -817,9 +818,8 @@ declare module "@tiptap/core" {
817
818
 
818
819
  declare module "@tiptap/core" {
819
820
  interface Commands<ReturnType> {
820
- enhanceHighlight: {
821
- setEnhanceHighlight: (from: number, to: number) => ReturnType;
822
- clearEnhanceHighlight: () => ReturnType;
821
+ moodTracker: {
822
+ insertMoodTracker: (data: MoodTrackerData) => ReturnType;
823
823
  };
824
824
  }
825
825
  }
@@ -1,7 +1,7 @@
1
1
  import { jsxs as x, jsx as m, Fragment as Bt } from "react/jsx-runtime";
2
2
  import * as K from "react";
3
3
  import C, { useRef as ot, useState as ae, useCallback as Ye, useEffect as Ze, useLayoutEffect as Ac, PureComponent as Kn, useMemo as $s, forwardRef as Pt, useId as Cc, useImperativeHandle as Ec, memo as Sf, Fragment as Ra } from "react";
4
- import { M as Pn, aG as kf, O as z, ax as Af, d3 as Cf, d4 as Ef, P as js, a6 as Re, aO as Gi, d5 as An, d6 as Of, d7 as _f, d8 as Nf, d9 as $a, da as ja, db as Fa, dc as za, dd as Ba, de as Oc, df as ui, dg as Tf, dh as Pf, di as Df, aW as Dn, dj as _e, dk as U, dl as Me, dm as _c, dn as Mf, dp as Nc, dq as Fs, dr as Lf, ds as ye, dt as Yi, du as oe, dv as Tc, dw as qi, dx as zs, dy as Bs, dz as Vs, dA as pe, dB as Pe, dC as Go, dD as Xi, dE as If, dF as Oe, dG as Ji, dH as Te, dI as pn, dJ as Hs, dK as Zi, dL as di, dM as Qi, c9 as Ws, dN as Rf, dO as Qr, dP as ki, dQ as $f, dR as jf, dS as Ff, dT as zf, dU as Bf, dV as Vf, dW as Pc, dX as Dc, dY as Mc, dZ as Lc, d_ as Ic, d$ as Hf, e0 as Ai, e1 as Wf, e2 as Uf, e3 as $r, e4 as Kt, a3 as Ot, e5 as Us, e6 as jr, e7 as Rc, a4 as $c, e8 as Kf, e9 as Gf, a1 as Yf, ea as qf, bV as Xf, a2 as Jf, eb as fe, ec as we, aj as Zf, ak as Qf, al as eh, ao as th, ed as jc, ee as nh, ef as Fc, bU as Dt, ar as _t, bp as rh, Q, aE as Ks, eg as ih, cI as Ce, eh as et, ei as gt, ej as $e, ek as oh, el as fi, em as rt, en as zc, eo as qe, ep as Gs, eq as Qe, er as Va, es as sh, et as Bc, eu as be, ev as Ve, ew as vr, ex as Ci, ey as Vc, ez as ah, eA as mn, eB as lh, eC as ch, eD as uh, a8 as j, aS as Hc, bu as dh, a7 as Wc, eE as Fr, eF as zr, eG as Ys, eH as fh, eI as Uc, eJ as Kc, eK as Gc, eL as hh, eM as Yc, eN as qc, eO as Xc, eP as Jc, eQ as Zc, eR as Qc, eS as ph, eT as mh, u as gn, aN as gh, bM as eo, U as eu, W as tn, bo as yh, b7 as bh, br as vh, eU as wh, eV as xh, eW as Sh, eX as kh, eY as Ah, eZ as Ch, aJ as tu, aK as qs, aL as to, e_ as Ha, e$ as Eh, f0 as Oh, f1 as _h, f2 as Nh, f3 as Th, f4 as Ph, f5 as Dh, f6 as Mh, f7 as Lh, f8 as Ih, f9 as Rh, fa as $h, fb as jh, fc as Fh, fd as zh, fe as Bh, ff as Vh, X as Hh, aC as Wh, aQ as Uh, bB as Kh, bv as Wa, Y as Gh, aI as Yh, bN as nu, aH as Ua, b$ as qh, cA as ru, fg as Xh, fh as Jh, fi as Zh, fj as Qh, fk as ep, fl as tp, fm as np, b3 as Yo, aX as iu, fn as rp, c7 as ou, fo as ip, b2 as op, fp as sp, fq as ap, fr as lp, fs as cp, ft as up, fu as dp, fv as fp, fw as hp, fx as pp, c6 as Ka } from "./F0AiChat-aV22-Ha-.js";
4
+ import { M as Pn, aG as kf, O as z, ax as Af, d3 as Cf, d4 as Ef, P as js, a6 as Re, aO as Gi, d5 as An, d6 as Of, d7 as _f, d8 as Nf, d9 as $a, da as ja, db as Fa, dc as za, dd as Ba, de as Oc, df as ui, dg as Tf, dh as Pf, di as Df, aW as Dn, dj as _e, dk as U, dl as Me, dm as _c, dn as Mf, dp as Nc, dq as Fs, dr as Lf, ds as ye, dt as Yi, du as oe, dv as Tc, dw as qi, dx as zs, dy as Bs, dz as Vs, dA as pe, dB as Pe, dC as Go, dD as Xi, dE as If, dF as Oe, dG as Ji, dH as Te, dI as pn, dJ as Hs, dK as Zi, dL as di, dM as Qi, c9 as Ws, dN as Rf, dO as Qr, dP as ki, dQ as $f, dR as jf, dS as Ff, dT as zf, dU as Bf, dV as Vf, dW as Pc, dX as Dc, dY as Mc, dZ as Lc, d_ as Ic, d$ as Hf, e0 as Ai, e1 as Wf, e2 as Uf, e3 as $r, e4 as Kt, a3 as Ot, e5 as Us, e6 as jr, e7 as Rc, a4 as $c, e8 as Kf, e9 as Gf, a1 as Yf, ea as qf, bV as Xf, a2 as Jf, eb as fe, ec as we, aj as Zf, ak as Qf, al as eh, ao as th, ed as jc, ee as nh, ef as Fc, bU as Dt, ar as _t, bp as rh, Q, aE as Ks, eg as ih, cI as Ce, eh as et, ei as gt, ej as $e, ek as oh, el as fi, em as rt, en as zc, eo as qe, ep as Gs, eq as Qe, er as Va, es as sh, et as Bc, eu as be, ev as Ve, ew as vr, ex as Ci, ey as Vc, ez as ah, eA as mn, eB as lh, eC as ch, eD as uh, a8 as j, aS as Hc, bu as dh, a7 as Wc, eE as Fr, eF as zr, eG as Ys, eH as fh, eI as Uc, eJ as Kc, eK as Gc, eL as hh, eM as Yc, eN as qc, eO as Xc, eP as Jc, eQ as Zc, eR as Qc, eS as ph, eT as mh, u as gn, aN as gh, bM as eo, U as eu, W as tn, bo as yh, b7 as bh, br as vh, eU as wh, eV as xh, eW as Sh, eX as kh, eY as Ah, eZ as Ch, aJ as tu, aK as qs, aL as to, e_ as Ha, e$ as Eh, f0 as Oh, f1 as _h, f2 as Nh, f3 as Th, f4 as Ph, f5 as Dh, f6 as Mh, f7 as Lh, f8 as Ih, f9 as Rh, fa as $h, fb as jh, fc as Fh, fd as zh, fe as Bh, ff as Vh, X as Hh, aC as Wh, aQ as Uh, bB as Kh, bv as Wa, Y as Gh, aI as Yh, bN as nu, aH as Ua, b$ as qh, cA as ru, fg as Xh, fh as Jh, fi as Zh, fj as Qh, fk as ep, fl as tp, fm as np, b3 as Yo, aX as iu, fn as rp, c7 as ou, fo as ip, b2 as op, fp as sp, fq as ap, fr as lp, fs as cp, ft as up, fu as dp, fv as fp, fw as hp, fx as pp, c6 as Ka } from "./F0AiChat-Cq75OE5L.js";
5
5
  import './index.css';const mp = {
6
6
  active: !0,
7
7
  breakpoints: {},
@@ -1,7 +1,7 @@
1
1
  import { defaultTranslations as rt } from "./i18n-provider-defaults.js";
2
2
  import { jsx as h, jsxs as M, Fragment as Ge } from "react/jsx-runtime";
3
3
  import { useInsertionEffect as nt, forwardRef as me, createContext as ot, useContext as it, useRef as D, useEffect as ue, useState as de, useCallback as at, useMemo as st, useId as ct, createElement as lt } from "react";
4
- import { r as ut, o as dt, p as ft, q as ht, s as ke, t as mt, v as pt, w as vt, x as gt, y as wt, z as We, A as bt, V as yt, B as Tt, D as xt, E as At, S as Et, H as Rt, G as fe, J as Ct, K as St, L as Lt, M as It, N as Ft, O as X, P as ie, Q as we, R as _t, u as Nt, T as ze, U as Pt, W as he, X as Ut, Y as Mt, Z as Bt, _ as Ot, $ as Vt, a0 as Dt, a1 as Gt, a2 as kt, a3 as Wt, a4 as zt, a5 as Xt, a6 as Yt, a7 as $t, a8 as oe } from "./F0AiChat-aV22-Ha-.js";
4
+ import { r as ut, o as dt, p as ft, q as ht, s as ke, t as mt, v as pt, w as vt, x as gt, y as wt, z as We, A as bt, V as yt, B as Tt, D as xt, E as At, S as Et, H as Rt, G as fe, J as Ct, K as St, L as Lt, M as It, N as Ft, O as X, P as ie, Q as we, R as _t, u as Nt, T as ze, U as Pt, W as he, X as Ut, Y as Mt, Z as Bt, _ as Ot, $ as Vt, a0 as Dt, a1 as Gt, a2 as kt, a3 as Wt, a4 as zt, a5 as Xt, a6 as Yt, a7 as $t, a8 as oe } from "./F0AiChat-Cq75OE5L.js";
5
5
  import { useTrackVolume as qt } from "@livekit/components-react";
6
6
  function Ht(t, e, r) {
7
7
  nt(() => t.on(e, r), [t, e, r]);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@factorialco/f0-react",
3
- "version": "1.459.0",
3
+ "version": "1.459.1",
4
4
  "private": false,
5
5
  "files": [
6
6
  "assets",