@factorialco/f0-react 1.299.0 → 1.299.2

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/f0.d.ts CHANGED
@@ -4635,8 +4635,8 @@ declare global {
4635
4635
 
4636
4636
  declare module "@tiptap/core" {
4637
4637
  interface Commands<ReturnType> {
4638
- aiBlock: {
4639
- insertAIBlock: (data: AIBlockData, config: AIBlockConfigWithLabels) => ReturnType;
4638
+ liveCompanion: {
4639
+ insertLiveCompanion: (data: LiveCompanionData, config?: LiveCompanionConfig) => ReturnType;
4640
4640
  };
4641
4641
  }
4642
4642
  }
@@ -4644,8 +4644,8 @@ declare module "@tiptap/core" {
4644
4644
 
4645
4645
  declare module "@tiptap/core" {
4646
4646
  interface Commands<ReturnType> {
4647
- liveCompanion: {
4648
- insertLiveCompanion: (data: LiveCompanionData, config?: LiveCompanionConfig) => ReturnType;
4647
+ aiBlock: {
4648
+ insertAIBlock: (data: AIBlockData, config: AIBlockConfigWithLabels) => ReturnType;
4649
4649
  };
4650
4650
  }
4651
4651
  }
package/dist/f0.js CHANGED
@@ -1,5 +1,5 @@
1
- import { S as Be, a as At, f as Ee, L as J, b as Tt, A as Lt, i as ae, c as Ye, d as Xe, E as Mt, g as he, e as Ht, h as Bt, C as Ft, j as Wt, k as V, l as Je, u as It, G as Gt, m as Ut, n as Fe, o as $t, p as Ze, q as jt, B as Qe, X as et, Y as Ne, r as Kt, s as tt, t as Vt, v as qt, w as Yt, x as Xt, y as Jt, z as Zt, D as Qt, F as ei, H as We, I as ti, J as Z, K as Ce, M as ii, N as si, P as ri, O as F, Q as ni, R as oi, T as ai, U as li, V as hi, W as di, Z as ci, _ as it, $ as ui, a0 as de, a1 as st, a2 as rt, a3 as fi, a4 as nt, a5 as ot, a6 as at, a7 as lt, a8 as gi, a9 as pi, aa as ht, ab as mi, ac as B, ad as vi, ae as dt, af as yi, ag as ct, ah as bi, ai as _i, aj as xi, ak as wi, al as Ei, am as Ci, an as Ri, ao as Ni, ap as ut, aq as q, ar as ft, as as zi, at as Di, au as Ie, av as Si, aw as gt, ax as Pi, ay as ki, az as Oi, aA as Ai, aB as Ti, aC as Li, aD as Mi, aE as Hi, aF as Bi, aG as Fi, aH as Wi, aI as Ii } from "./hooks-BIlZureX.js";
2
- import { bb as yr, bo as br, bx as _r, aJ as xr, aK as wr, aL as Er, aM as Cr, aN as Rr, aO as Nr, aP as zr, aQ as Dr, aS as Sr, aT as Pr, aU as kr, aV as Or, aW as Ar, aX as Tr, aY as Lr, bt as Mr, a_ as Hr, a$ as Br, b2 as Fr, b3 as Wr, b4 as Ir, b5 as Gr, b8 as Ur, b9 as $r, ba as jr, bd as Kr, b1 as Vr, bc as qr, b7 as Yr, bu as Xr, bn as Jr, bi as Zr, bl as Qr, bh as en, by as tn, bg as sn, bf as rn, aR as nn, aZ as on, b0 as an, b6 as ln, be as hn, bj as dn, bp as cn, bq as un, br as fn, bz as gn, bk as pn, bs as mn, bw as vn, bm as yn, bv as bn } from "./hooks-BIlZureX.js";
1
+ import { S as Be, a as At, f as Ee, L as J, b as Tt, A as Lt, i as ae, c as Ye, d as Xe, E as Mt, g as he, e as Ht, h as Bt, C as Ft, j as Wt, k as V, l as Je, u as It, G as Gt, m as Ut, n as Fe, o as $t, p as Ze, q as jt, B as Qe, X as et, Y as Ne, r as Kt, s as tt, t as Vt, v as qt, w as Yt, x as Xt, y as Jt, z as Zt, D as Qt, F as ei, H as We, I as ti, J as Z, K as Ce, M as ii, N as si, P as ri, O as F, Q as ni, R as oi, T as ai, U as li, V as hi, W as di, Z as ci, _ as it, $ as ui, a0 as de, a1 as st, a2 as rt, a3 as fi, a4 as nt, a5 as ot, a6 as at, a7 as lt, a8 as gi, a9 as pi, aa as ht, ab as mi, ac as B, ad as vi, ae as dt, af as yi, ag as ct, ah as bi, ai as _i, aj as xi, ak as wi, al as Ei, am as Ci, an as Ri, ao as Ni, ap as ut, aq as q, ar as ft, as as zi, at as Di, au as Ie, av as Si, aw as gt, ax as Pi, ay as ki, az as Oi, aA as Ai, aB as Ti, aC as Li, aD as Mi, aE as Hi, aF as Bi, aG as Fi, aH as Wi, aI as Ii } from "./hooks-lOrixyHX.js";
2
+ import { bb as yr, bo as br, bx as _r, aJ as xr, aK as wr, aL as Er, aM as Cr, aN as Rr, aO as Nr, aP as zr, aQ as Dr, aS as Sr, aT as Pr, aU as kr, aV as Or, aW as Ar, aX as Tr, aY as Lr, bt as Mr, a_ as Hr, a$ as Br, b2 as Fr, b3 as Wr, b4 as Ir, b5 as Gr, b8 as Ur, b9 as $r, ba as jr, bd as Kr, b1 as Vr, bc as qr, b7 as Yr, bu as Xr, bn as Jr, bi as Zr, bl as Qr, bh as en, by as tn, bg as sn, bf as rn, aR as nn, aZ as on, b0 as an, b6 as ln, be as hn, bj as dn, bp as cn, bq as un, br as fn, bz as gn, bk as pn, bs as mn, bw as vn, bm as yn, bv as bn } from "./hooks-lOrixyHX.js";
3
3
  import { jsx as g, jsxs as N, Fragment as be } from "react/jsx-runtime";
4
4
  import S, { PureComponent as Gi, useState as L, forwardRef as $, createElement as Ge, useRef as Q, useImperativeHandle as pt, Children as Ui, createContext as _e, useContext as mt, useCallback as K, useEffect as ce, useLayoutEffect as Ue, useMemo as vt } from "react";
5
5
  import { createPortal as $i } from "react-dom";
@@ -55119,6 +55119,7 @@ Defaulting to \`null\`.`;
55119
55119
  var mG = dG, TW2 = CG;
55120
55120
  const pG = _.forwardRef(({ className: e, value: t, ...n }, r) => i(mG, {
55121
55121
  ref: r,
55122
+ value: t,
55122
55123
  className: s2("relative h-2 w-full overflow-hidden rounded-full bg-f1-background-secondary", e),
55123
55124
  ...n,
55124
55125
  children: i(TW2, {
@@ -68542,21 +68543,21 @@ const IY2 = (e) => i("div", {
68542
68543
  "data-cell-type": "progressBar",
68543
68544
  children: n
68544
68545
  });
68545
- const a = n, o = typeof e == "object" && "max" in e ? e.max ?? 100 : 100, s = typeof e == "object" && "label" in e ? e.label : void 0, l = typeof e == "object" && "color" in e ? e.color : void 0, c = m4(l || "categorical-1"), u = a / o * 100;
68546
+ const a = n, o = typeof e == "object" && "max" in e ? e.max ?? 100 : 100, s = typeof e == "object" && "label" in e ? e.label : void 0, l = typeof e == "object" && "hideLabel" in e ? e.hideLabel : void 0, c = typeof e == "object" && "color" in e ? e.color : void 0, u = m4(c || "categorical-1"), d = a / o * 100;
68546
68547
  return H("div", {
68547
68548
  className: "flex w-full items-center gap-2",
68548
68549
  "data-cell-type": "progressBar",
68549
68550
  children: [i("div", {
68550
68551
  className: "min-w-16 flex-grow",
68551
68552
  children: i(pG, {
68552
- color: c,
68553
- value: u,
68553
+ color: u,
68554
+ value: d,
68554
68555
  max: 100,
68555
- getValueLabel: (d) => `${(d ?? 0).toFixed(1)}%`,
68556
- "aria-label": s ?? `${u.toFixed(1)}%`,
68556
+ getValueLabel: (f) => `${(f ?? 0).toFixed(1)}% ${s}`,
68557
+ "aria-label": s,
68557
68558
  className: "w-full"
68558
68559
  })
68559
- }), s !== void 0 && i("div", {
68560
+ }), !l && i("div", {
68560
68561
  className: "flex-shrink-0 text-sm font-medium text-f1-foreground",
68561
68562
  children: s
68562
68563
  })]
@@ -456,8 +456,8 @@ declare global {
456
456
 
457
457
  declare module "@tiptap/core" {
458
458
  interface Commands<ReturnType> {
459
- aiBlock: {
460
- insertAIBlock: (data: AIBlockData, config: AIBlockConfigWithLabels) => ReturnType;
459
+ liveCompanion: {
460
+ insertLiveCompanion: (data: LiveCompanionData, config?: LiveCompanionConfig) => ReturnType;
461
461
  };
462
462
  }
463
463
  }
@@ -465,8 +465,8 @@ declare module "@tiptap/core" {
465
465
 
466
466
  declare module "@tiptap/core" {
467
467
  interface Commands<ReturnType> {
468
- liveCompanion: {
469
- insertLiveCompanion: (data: LiveCompanionData, config?: LiveCompanionConfig) => ReturnType;
468
+ aiBlock: {
469
+ insertAIBlock: (data: AIBlockData, config: AIBlockConfigWithLabels) => ReturnType;
470
470
  };
471
471
  }
472
472
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@factorialco/f0-react",
3
- "version": "1.299.0",
3
+ "version": "1.299.2",
4
4
  "main": "dist/f0.js",
5
5
  "typings": "dist/f0.d.ts",
6
6
  "private": false,