@factorialco/f0-react 1.228.0 → 1.228.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.
@@ -5135,8 +5135,8 @@ declare module "@tiptap/core" {
5135
5135
 
5136
5136
  declare module "@tiptap/core" {
5137
5137
  interface Commands<ReturnType> {
5138
- transcript: {
5139
- insertTranscript: (data: TranscriptData, config?: TranscriptConfig) => ReturnType;
5138
+ liveCompanion: {
5139
+ insertLiveCompanion: (data: LiveCompanionData, config?: LiveCompanionConfig) => ReturnType;
5140
5140
  };
5141
5141
  }
5142
5142
  }
@@ -5144,8 +5144,8 @@ declare module "@tiptap/core" {
5144
5144
 
5145
5145
  declare module "@tiptap/core" {
5146
5146
  interface Commands<ReturnType> {
5147
- liveCompanion: {
5148
- insertLiveCompanion: (data: LiveCompanionData, config?: LiveCompanionConfig) => ReturnType;
5147
+ transcript: {
5148
+ insertTranscript: (data: TranscriptData, config?: TranscriptConfig) => ReturnType;
5149
5149
  };
5150
5150
  }
5151
5151
  }
@@ -1,5 +1,5 @@
1
- import { aN as R5, aO as P5, aP as cy, aQ as pl, aR as AC, aS as OC, aT as IC, aU as Xu, aV as DC, aW as RC, aX as PC, aY as fe, aZ as F5, a_ as FC, a$ as BC, b0 as zC, b1 as ro, b2 as Ra, b3 as Wc, b4 as B5, b5 as Hl, b6 as $C, b7 as Qu, b8 as jC, b9 as VC, ba as Wl, bb as HC, bc as WC, bd as qC, be as dy, bf as UC, bg as fy, bh as KC, bi as z5, bj as $5, bk as GC, bl as Fo, q as Vt, a as M, bm as Ir, P as st, bn as Xe, s as we, k as yt, y as pe, bo as _f, bp as j5, L as Ji, bq as We, $ as V5, w as Ei, x as Zn, br as Ze, bs as H5, c as Cf, bt as Bo, bu as ml, bv as tn, bw as Xn, aJ as Is, bx as Sh, by as Hr, bz as qc, bA as Uc, bB as JC, n as Sf, bC as W5, bD as te, bE as Oi, bF as xt, bG as q5, bH as U5, t as Nf, f as YC, bI as ZC, bJ as XC, bK as QC, b as uy, bL as eS, bM as tS, bN as ri, ac as Kc, az as hy, bO as Ds, bP as K5, bQ as bm, bR as nS, bS as km, bT as iS, bU as rS, bV as G5, bW as sS, bX as mr, bY as oS, bZ as aS, b_ as lS, b$ as cS, c0 as dS, c1 as J5, c2 as fS, c3 as py, c4 as uS, c5 as Dr, S as Qn, c6 as Y5, at as hS, av as Z5, aq as X5, c7 as Q5, aw as Lf, c8 as xm, a0 as gl, r as nr, c9 as pS, ca as wm, a9 as Ii, cb as hn, cc as Ef, cd as Pa, ce as mS, cf as e6, cg as gS, i as Mf, j as Tf, l as Af, ch as _m, ci as yS, cj as t6, C as Rn, ck as n6, cl as vS, cm as bS, G as kS, cn as i6, co as Nh, cp as r6, a6 as Gc, cq as xS, cr as wS, cs as _S, ct as CS, cu as SS, aK as Of, a3 as Lh, F as Cm, aM as NS, cv as Gn, aL as LS, cw as s6, cx as cn, cy as ES, cz as MS, cA as Cn, cB as Jc, cC as o6, ah as If, a7 as Sm, am as ks, cD as Df, cE as Nm, cF as a6, cG as TS, aa as AS, a2 as l6, cH as Lm, cI as OS, cJ as IS, cK as DS, D as c6, u as d6, cL as my, cM as RS, cN as PS, cO as Rf, K as FS, m as BS, cP as Eh, cQ as zS, cR as $S, cS as jS, cT as VS, cU as HS, cV as WS, cW as qS, cX as US, cY as KS, cZ as GS, c_ as JS, c$ as YS, p as ZS, ao as XS, d0 as f6, d1 as Pf, v as Mh, d2 as gy, Z as u6, d3 as yl, d4 as h6, d5 as p6, d6 as QS, a1 as zo, a4 as m6, I as eN, d7 as tN, d8 as _t, d9 as yy, da as nN, db as iN, dc as rN, dd as e1, de as sN, ar as oN, ay as Ff, z as Bf, df as zf, dg as $f, E as jf, ax as g6, ab as Em, dh as aN, aD as lN, di as Th, dj as cN, dk as Yc, dl as dN, as as Zc, aE as fN, dm as uN, aC as y6, dn as hN, aB as pN, aA as mN, dp as gN, dq as yN, dr as vN, ad as bN, ds as kN, dt as xN, du as wN, a5 as _N, dv as vl, dw as Mm, dx as Tm, dy as bl, dz as v6, dA as CN, dB as b6, dC as SN, aF as k6, dD as x6, ae as w6, dE as NN, dF as LN, dG as EN, H as MN, A as TN, B as AN, e as ON, g as IN, V as DN, d as RN, dH as vy, dI as PN, dJ as FN, dK as BN, dL as _6, dM as zN } from "./hooks-BdlfqLCM.js";
2
- import { J as Hoe, dO as Woe, a8 as qoe, dN as Uoe } from "./hooks-BdlfqLCM.js";
1
+ import { aN as R5, aO as P5, aP as cy, aQ as pl, aR as AC, aS as OC, aT as IC, aU as Xu, aV as DC, aW as RC, aX as PC, aY as fe, aZ as F5, a_ as FC, a$ as BC, b0 as zC, b1 as ro, b2 as Ra, b3 as Wc, b4 as B5, b5 as Hl, b6 as $C, b7 as Qu, b8 as jC, b9 as VC, ba as Wl, bb as HC, bc as WC, bd as qC, be as dy, bf as UC, bg as fy, bh as KC, bi as z5, bj as $5, bk as GC, bl as Fo, q as Vt, a as M, bm as Ir, P as st, bn as Xe, s as we, k as yt, y as pe, bo as _f, bp as j5, L as Ji, bq as We, $ as V5, w as Ei, x as Zn, br as Ze, bs as H5, c as Cf, bt as Bo, bu as ml, bv as tn, bw as Xn, aJ as Is, bx as Sh, by as Hr, bz as qc, bA as Uc, bB as JC, n as Sf, bC as W5, bD as te, bE as Oi, bF as xt, bG as q5, bH as U5, t as Nf, f as YC, bI as ZC, bJ as XC, bK as QC, b as uy, bL as eS, bM as tS, bN as ri, ac as Kc, az as hy, bO as Ds, bP as K5, bQ as bm, bR as nS, bS as km, bT as iS, bU as rS, bV as G5, bW as sS, bX as mr, bY as oS, bZ as aS, b_ as lS, b$ as cS, c0 as dS, c1 as J5, c2 as fS, c3 as py, c4 as uS, c5 as Dr, S as Qn, c6 as Y5, at as hS, av as Z5, aq as X5, c7 as Q5, aw as Lf, c8 as xm, a0 as gl, r as nr, c9 as pS, ca as wm, a9 as Ii, cb as hn, cc as Ef, cd as Pa, ce as mS, cf as e6, cg as gS, i as Mf, j as Tf, l as Af, ch as _m, ci as yS, cj as t6, C as Rn, ck as n6, cl as vS, cm as bS, G as kS, cn as i6, co as Nh, cp as r6, a6 as Gc, cq as xS, cr as wS, cs as _S, ct as CS, cu as SS, aK as Of, a3 as Lh, F as Cm, aM as NS, cv as Gn, aL as LS, cw as s6, cx as cn, cy as ES, cz as MS, cA as Cn, cB as Jc, cC as o6, ah as If, a7 as Sm, am as ks, cD as Df, cE as Nm, cF as a6, cG as TS, aa as AS, a2 as l6, cH as Lm, cI as OS, cJ as IS, cK as DS, D as c6, u as d6, cL as my, cM as RS, cN as PS, cO as Rf, K as FS, m as BS, cP as Eh, cQ as zS, cR as $S, cS as jS, cT as VS, cU as HS, cV as WS, cW as qS, cX as US, cY as KS, cZ as GS, c_ as JS, c$ as YS, p as ZS, ao as XS, d0 as f6, d1 as Pf, v as Mh, d2 as gy, Z as u6, d3 as yl, d4 as h6, d5 as p6, d6 as QS, a1 as zo, a4 as m6, I as eN, d7 as tN, d8 as _t, d9 as yy, da as nN, db as iN, dc as rN, dd as e1, de as sN, ar as oN, ay as Ff, z as Bf, df as zf, dg as $f, E as jf, ax as g6, ab as Em, dh as aN, aD as lN, di as Th, dj as cN, dk as Yc, dl as dN, as as Zc, aE as fN, dm as uN, aC as y6, dn as hN, aB as pN, aA as mN, dp as gN, dq as yN, dr as vN, ad as bN, ds as kN, dt as xN, du as wN, a5 as _N, dv as vl, dw as Mm, dx as Tm, dy as bl, dz as v6, dA as CN, dB as b6, dC as SN, aF as k6, dD as x6, ae as w6, dE as NN, dF as LN, dG as EN, H as MN, A as TN, B as AN, e as ON, g as IN, V as DN, d as RN, dH as vy, dI as PN, dJ as FN, dK as BN, dL as _6, dM as zN } from "./hooks-D30-_L4u.js";
2
+ import { J as Hoe, dO as Woe, a8 as qoe, dN as Uoe } from "./hooks-D30-_L4u.js";
3
3
  import { jsxs as b, jsx as f, Fragment as Me } from "react/jsx-runtime";
4
4
  import * as z from "react";
5
5
  import re, { forwardRef as K, createContext as si, useRef as ge, useState as V, useCallback as Be, useContext as Sn, useMemo as ue, useEffect as oe, PureComponent as $N, useId as Wr, useLayoutEffect as Vf, memo as kl, Fragment as Rr, useTransition as jN, isValidElement as C6, cloneElement as Am, useDebugValue as S6, createRef as VN, createElement as HN, version as by, useImperativeHandle as Hf, Children as N6 } from "react";
@@ -15024,21 +15024,21 @@ const _s = ({ items: t, onClick: e, value: n, ...i }) => {
15024
15024
  icon: t.icon,
15025
15025
  size: "sm"
15026
15026
  });
15027
- const n = [t, ...e ?? []].map((r) => ({
15028
- label: r.label,
15029
- value: r.label,
15030
- icon: r.icon,
15031
- critical: r.variant === "critical"
15032
- })) || [], i = (r) => {
15033
- var o;
15034
- const s = [t, ...e ?? []].find((a) => a.label === r);
15035
- s && ((o = s.onClick) == null || o.call(s));
15036
- };
15027
+ const n = [t, ...e ?? []], i = n.map((o) => ({
15028
+ label: o.label,
15029
+ value: o.label,
15030
+ icon: o.icon,
15031
+ critical: o.variant === "critical"
15032
+ })) || [], r = (o) => {
15033
+ var l;
15034
+ const a = n.find((c) => c.label === o);
15035
+ a && !a.disabled && ((l = a.onClick) == null || l.call(a));
15036
+ }, s = n.every((o) => o.disabled);
15037
15037
  return f(_s, {
15038
- items: n,
15038
+ items: i,
15039
15039
  value: t.label,
15040
- disabled: t.disabled,
15041
- onClick: i,
15040
+ disabled: s,
15041
+ onClick: r,
15042
15042
  variant: "outline",
15043
15043
  size: "sm"
15044
15044
  });
@@ -15524,7 +15524,7 @@ const _s = ({ items: t, onClick: e, value: n, ...i }) => {
15524
15524
  }),
15525
15525
  children: f("span", {
15526
15526
  role: "button",
15527
- className: M("my-auto flex items-center pr-1", t && "text-f1-foreground-secondary", _ && "text-f1-foreground", S.length === 1 && !r ? "pl-8" : "pl-2"),
15527
+ className: M("my-auto flex items-center pr-1", t && "text-f1-foreground-secondary", _ && "text-f1-foreground", S.length === 1 && !r || a && !_ ? "pl-8" : "pl-2"),
15528
15528
  children: S.length === 0 ? t : S.length === 1 ? S[0].subItem.subName : S.length + " " + e
15529
15529
  })
15530
15530
  });
@@ -24869,7 +24869,11 @@ function xd(t, e, n, i, r, s, o, a, l) {
24869
24869
  function dV({ title: t, items: e, className: n, activeItem: i, collapsible: r = !1, sortable: s = !1, showSearchBox: o = !1, searchPlaceholder: a, onReorder: l, hideChildrenCounter: c = !1 }) {
24870
24870
  const d = We(), [u, h] = V(""), p = (E) => {
24871
24871
  h(E);
24872
- }, m = ue(() => R3(e, u), [e, u]), [g, y] = V(cV(e, i)), [v, w] = V(e), k = ge(null), x = Be((E) => E.map((C) => ({
24872
+ }, m = ue(() => R3(e, u), [e, u]), [g, y] = V(cV(e, i)), [v, w] = V(e);
24873
+ oe(() => {
24874
+ w(e);
24875
+ }, [e]);
24876
+ const k = ge(null), x = Be((E) => E.map((C) => ({
24873
24877
  id: C.id,
24874
24878
  ...C.children && {
24875
24879
  children: x(C.children)
package/dist/f0.d.ts CHANGED
@@ -3388,8 +3388,8 @@ declare module "@tiptap/core" {
3388
3388
 
3389
3389
  declare module "@tiptap/core" {
3390
3390
  interface Commands<ReturnType> {
3391
- transcript: {
3392
- insertTranscript: (data: TranscriptData, config?: TranscriptConfig) => ReturnType;
3391
+ liveCompanion: {
3392
+ insertLiveCompanion: (data: LiveCompanionData, config?: LiveCompanionConfig) => ReturnType;
3393
3393
  };
3394
3394
  }
3395
3395
  }
@@ -3397,8 +3397,8 @@ declare module "@tiptap/core" {
3397
3397
 
3398
3398
  declare module "@tiptap/core" {
3399
3399
  interface Commands<ReturnType> {
3400
- liveCompanion: {
3401
- insertLiveCompanion: (data: LiveCompanionData, config?: LiveCompanionConfig) => ReturnType;
3400
+ transcript: {
3401
+ insertTranscript: (data: TranscriptData, config?: TranscriptConfig) => ReturnType;
3402
3402
  };
3403
3403
  }
3404
3404
  }
package/dist/f0.js CHANGED
@@ -1,5 +1,5 @@
1
- import { C as g, L as pe, c as ge, P as G, a as b, f as ve, b as be, A as xe, B as Ce, d as ye, e as we, g as Ne, V as Le, h as M, i as H, j as U, k as Pe, l as W, S as J, m as Y, n as Se, O as Fe, o as X, p as De, q as ke, F as K, r as Me, s as Te, t as Ie, D as Re, u as Be, v as Oe, w as $e, x as Q, y as w, U as Z, z as Ee, E as _e, G as z, H as je, I as ee, J as ze, K as Ve, M as Ae, N as qe, Q as Ge, R as He, X as Ue, T as We, W as Je, Y as Ye, Z as Xe, _ as Ke } from "./hooks-BdlfqLCM.js";
2
- import { az as Ja, $ as Ya, aB as Xa, aK as Ka, a0 as Qa, a1 as Za, a2 as er, a3 as ar, a4 as rr, a5 as sr, a6 as tr, a7 as lr, a9 as or, aa as nr, ab as ir, ac as dr, aG as cr, ae as ur, af as fr, ag as mr, ah as hr, ak as pr, al as gr, am as vr, an as br, ap as xr, ad as Cr, ao as yr, aj as wr, aH as Nr, aA as Lr, au as Pr, ax as Sr, at as Fr, aL as Dr, as as kr, ar as Mr, a8 as Tr, ai as Ir, aq as Rr, av as Br, aC as Or, aD as $r, aE as Er, aM as _r, aw as jr, aF as zr, aJ as Vr, ay as Ar, aI as qr } from "./hooks-BdlfqLCM.js";
1
+ import { C as g, L as pe, c as ge, P as G, a as b, f as ve, b as be, A as xe, B as Ce, d as ye, e as we, g as Ne, V as Le, h as M, i as H, j as U, k as Pe, l as W, S as J, m as Y, n as Se, O as Fe, o as X, p as De, q as ke, F as K, r as Me, s as Te, t as Ie, D as Re, u as Be, v as Oe, w as $e, x as Q, y as w, U as Z, z as Ee, E as _e, G as z, H as je, I as ee, J as ze, K as Ve, M as Ae, N as qe, Q as Ge, R as He, X as Ue, T as We, W as Je, Y as Ye, Z as Xe, _ as Ke } from "./hooks-D30-_L4u.js";
2
+ import { az as Ja, $ as Ya, aB as Xa, aK as Ka, a0 as Qa, a1 as Za, a2 as er, a3 as ar, a4 as rr, a5 as sr, a6 as tr, a7 as lr, a9 as or, aa as nr, ab as ir, ac as dr, aG as cr, ae as ur, af as fr, ag as mr, ah as hr, ak as pr, al as gr, am as vr, an as br, ap as xr, ad as Cr, ao as yr, aj as wr, aH as Nr, aA as Lr, au as Pr, ax as Sr, at as Fr, aL as Dr, as as kr, ar as Mr, a8 as Tr, ai as Ir, aq as Rr, av as Br, aC as Or, aD as $r, aE as Er, aM as _r, aw as jr, aF as zr, aJ as Vr, ay as Ar, aI as qr } from "./hooks-D30-_L4u.js";
3
3
  import { jsx as e, jsxs as c, Fragment as $ } from "react/jsx-runtime";
4
4
  import * as E from "react";
5
5
  import Qe, { useState as v, forwardRef as I, useRef as ae, useImperativeHandle as Ze, Children as ea, useEffect as re, createContext as aa } from "react";