@factorialco/f0-react 1.438.0 → 1.438.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.
@@ -1,7 +1,7 @@
1
1
  import { defaultTranslations as ke } from "./i18n-provider-defaults.js";
2
2
  import { jsx as q, jsxs as le } from "react/jsx-runtime";
3
3
  import { useInsertionEffect as Xe, createContext as Ye, useContext as $e, useRef as B, useEffect as ie, useState as Ue, useCallback as qe, useMemo as He } from "react";
4
- import { r as Ke, l as je, m as Qe, n as Je, o as Me, p as Ze, q as et, s as tt, t as rt, v as nt, w as Ne, x as ot, V as it, y as st, z as at, A as ct, S as ut, H as lt, B as se, D as ft, E as dt, G as ht, J as mt, K as pt, L as vt, M as fe, N as gt } from "./F0AiChat-Cg05PVK9.js";
4
+ import { r as Ke, l as je, m as Qe, n as Je, o as Me, p as Ze, q as et, s as tt, t as rt, v as nt, w as Ne, x as ot, V as it, y as st, z as at, A as ct, S as ut, H as lt, B as se, D as ft, E as dt, G as ht, J as mt, K as pt, L as vt, M as fe, N as gt } from "./F0AiChat-C8H9OyiK.js";
5
5
  import { useTrackVolume as wt } from "@livekit/components-react";
6
6
  function Tt(t, e, r) {
7
7
  Xe(() => t.on(e, r), [t, e, r]);
package/dist/ai.d.ts CHANGED
@@ -1969,6 +1969,11 @@ declare module "gridstack" {
1969
1969
  }
1970
1970
 
1971
1971
 
1972
+ declare namespace Calendar {
1973
+ var displayName: string;
1974
+ }
1975
+
1976
+
1972
1977
  declare module "@tiptap/core" {
1973
1978
  interface Commands<ReturnType> {
1974
1979
  aiBlock: {
@@ -2016,8 +2021,3 @@ declare module "@tiptap/core" {
2016
2021
  };
2017
2022
  }
2018
2023
  }
2019
-
2020
-
2021
- declare namespace Calendar {
2022
- var displayName: string;
2023
- }
package/dist/ai.js CHANGED
@@ -1,6 +1,6 @@
1
- import { i as t, h as i, F as e, a as n, C as o, b as r, j as A, k as c, I as u, g as F, c as h, d as C, u as l, f as I, e as f } from "./F0AiChat-Cg05PVK9.js";
1
+ import { i as t, h as i, F as e, a as n, C as o, b as r, j as A, k as c, I as u, g as F, c as h, d as C, u as l, f as I, e as f } from "./F0AiChat-C8H9OyiK.js";
2
2
  import { defaultTranslations as d } from "./i18n-provider-defaults.js";
3
- import { A as p, F as S, c as g, d as v, b as x, a as k, o as O, u as P } from "./F0HILActionConfirmation-CMnMjtvP.js";
3
+ import { A as p, F as S, c as g, d as v, b as x, a as k, o as O, u as P } from "./F0HILActionConfirmation-DjKwUcGT.js";
4
4
  export {
5
5
  p as AiChatTranslationsProvider,
6
6
  t as ChatSpinner,
@@ -107,6 +107,7 @@ import { TagType } from './experimental';
107
107
  import { TeamCellValue } from './types/team';
108
108
  import { TeamCellValue as TeamCellValue_2 } from './experimental';
109
109
  import { TeamItemProps } from './types';
110
+ import { TextareaHTMLAttributes } from 'react';
110
111
  import { TextCellValue } from './types/text';
111
112
  import { TextCellValue as TextCellValue_2 } from './experimental';
112
113
  import * as ToggleGroupPrimitive from '@radix-ui/react-toggle-group';
@@ -6809,11 +6810,13 @@ declare type TeamTagProps = ComponentProps<typeof F0TagTeam>;
6809
6810
  */
6810
6811
  export declare const Textarea: FC<TextareaProps>;
6811
6812
 
6812
- declare const Textarea_2: React_2.ForwardRefExoticComponent<Omit<React_2.TextareaHTMLAttributes<HTMLTextAreaElement>, "value" | "onChange" | "onFocus" | "onBlur"> & {
6813
- value?: string;
6814
- } & Pick<InputFieldProps<string>, "label" | "value" | "onChange" | "size" | "icon" | "onFocus" | "onBlur" | "onKeyDown" | "status" | "loading" | "maxLength" | "placeholder" | "required" | "error" | "hideLabel" | "hint" | "labelIcon" | "clearable" | "onClear"> & React_2.RefAttributes<HTMLTextAreaElement>>;
6813
+ declare const Textarea_2: ForwardRefExoticComponent<Omit<TextareaHTMLAttributes<HTMLTextAreaElement>, "value" | "onChange" | "onFocus" | "onBlur"> & {
6814
+ value?: string;
6815
+ /** Maximum height in pixels. When set, the textarea scrolls beyond this height instead of growing. */
6816
+ maxHeight?: number;
6817
+ } & Pick<InputFieldProps<string>, "label" | "value" | "onChange" | "size" | "icon" | "onFocus" | "onBlur" | "onKeyDown" | "status" | "loading" | "maxLength" | "placeholder" | "required" | "error" | "hideLabel" | "hint" | "labelIcon" | "clearable" | "onClear"> & RefAttributes<HTMLTextAreaElement>>;
6815
6818
 
6816
- export declare type TextareaProps = Pick<ComponentProps<typeof Textarea_2>, "disabled" | "onChange" | "value" | "placeholder" | "rows" | "cols" | "label" | "labelIcon" | "icon" | "hideLabel" | "maxLength" | "clearable" | "onBlur" | "onFocus" | "name" | "status" | "hint" | "error" | "size" | "loading" | "required">;
6819
+ export declare type TextareaProps = Pick<ComponentProps<typeof Textarea_2>, "disabled" | "onChange" | "value" | "placeholder" | "rows" | "cols" | "label" | "labelIcon" | "icon" | "hideLabel" | "maxLength" | "clearable" | "onBlur" | "onFocus" | "name" | "status" | "hint" | "error" | "size" | "loading" | "required" | "maxHeight">;
6817
6820
 
6818
6821
  declare const THEMES: {
6819
6822
  readonly light: "";
@@ -7517,6 +7520,11 @@ declare module "gridstack" {
7517
7520
  }
7518
7521
 
7519
7522
 
7523
+ declare namespace Calendar {
7524
+ var displayName: string;
7525
+ }
7526
+
7527
+
7520
7528
  declare module "@tiptap/core" {
7521
7529
  interface Commands<ReturnType> {
7522
7530
  aiBlock: {
@@ -7564,8 +7572,3 @@ declare module "@tiptap/core" {
7564
7572
  };
7565
7573
  }
7566
7574
  }
7567
-
7568
-
7569
- declare namespace Calendar {
7570
- var displayName: string;
7571
- }
@@ -1,10 +1,10 @@
1
- import { cN as Uu, cO as Gu, cP as Ku, a1 as qu, cQ as uo, cR as Un, cS as Yu, cT as ms, cU as _i, cV as br, K as k, R as X, L as rt, u as me, cW as Ju, cX as Xu, cY as Zu, cZ as Qu, c_ as ef, af as Le, c$ as tf, a0 as Pt, d0 as nf, b3 as rf, _ as H, b9 as sf, ba as of, U as $t, d1 as Yl, bi as lf, bc as af, M as $, d2 as gs, Z as T, d3 as it, d4 as cf, d5 as df, bd as uf, au as ff, bf as hf, aC as Bt, d6 as Jl, d7 as pf, d8 as At, aV as xn, av as bs, aw as on, k as Xl, a4 as pt, d9 as Zl, da as mf, db as fo, dc as Qt, dd as ws, de as Mn, df as wr, dg as gf, dh as Ql, di as bf, dj as xs, dk as yn, dl as Re, dm as wf, dn as xf, dp as yt, dq as oi, dr as yf, ds as bn, dt as Ut, du as vf, P as ge, dv as kf, dw as Cf, dx as Sf, dy as Nf, dz as If, W as Ye, Y as de, dA as ys, aR as On, cK as $r, dB as ea, dC as vs, dD as Af, dE as _f, dF as Tf, dG as Ef, dH as Df, dI as Rf, dJ as Lf, dK as Mf, dL as Of, b6 as Ff, dM as zf, b4 as Pf, dN as $f, dO as Bf, dP as Hf, dQ as jf, dR as Vf, dS as Wf, dT as Uf, dU as Gf, b_ as nt, dV as ta, dW as Kf, a3 as V, N as na, dX as ra, dY as qf, aZ as ks, an as Yf, dZ as Jf, d_ as Xf, ah as ln, d$ as Zf, e0 as Qf, e1 as eh, e2 as th, aM as Br, e3 as ia, e4 as sa, ca as oa, e5 as nh, aF as xr, e6 as rh, e7 as ih, e8 as sh, e9 as oh, ea as lh, ad as ah, ae as ch, ag as dh, eb as la, ec as uh, ed as fh, as as yr, ee as Kt, ef as hh, eg as aa, eh as Cs, ei as ph, ej as mh, ek as ca, el as Ti, bX as Ei, em as da, en as gh, eo as bh, cJ as Hr, bz as ua, cM as wh, cL as xh, ep as yh, bA as en, eq as vh, aJ as Gn, er as ho, es as Di, et as kh, bn as Ch, eu as Sh, bV as fa, b$ as Nh, cl as ha, cj as Ss, a9 as Ih, cm as Ah, bY as Ns, aq as pa, a as _h, c as Th, bR as Eh, ev as ma, ew as Dh, ex as Rh, F as Lh, ey as ga, ez as ba, eA as Mh, bs as po, eB as Oh, eC as Fh, bT as zh, bq as wa, bt as Ph, eD as $h, eE as Bh, eF as Hh, eG as jh, bU as xa, $ as Vh, Q as st, bF as Is, eH as As, eI as _s, eJ as ya, bG as Ts, eK as va, eL as Wh, eM as Uh, eN as Gh, eO as Kh, eP as qh, bH as Yh, eQ as Jh, bW as Xh, eR as Zh, eS as mo, eT as go, eU as bo, aX as Qh, eV as ep, eW as tp, b8 as np, eX as ka, by as rp, eY as ip, eZ as sp } from "./F0AiChat-Cg05PVK9.js";
2
- import { f1 as jN, f0 as VN, ai as WN, e_ as UN, fl as GN, az as KN, e$ as qN, aE as YN, f9 as JN, fa as XN, fc as ZN, fj as QN, fk as eI, aG as tI, f3 as nI, f2 as rI, fb as iI, c9 as sI, fe as oI, ff as lI, f8 as aI, f5 as cI, f7 as dI, f4 as uI, bZ as fI, f6 as hI, fg as pI, fh as mI, fd as gI, fi as bI } from "./F0AiChat-Cg05PVK9.js";
1
+ import { cN as Uu, cO as Gu, cP as Ku, a1 as qu, cQ as uo, cR as Un, cS as Yu, cT as ms, cU as _i, cV as br, K as k, R as X, L as rt, u as me, cW as Ju, cX as Xu, cY as Zu, cZ as Qu, c_ as ef, af as Le, c$ as tf, a0 as Pt, d0 as nf, b3 as rf, _ as H, b9 as sf, ba as of, U as $t, d1 as Yl, bi as lf, bc as af, M as $, d2 as gs, Z as T, d3 as it, d4 as cf, d5 as df, bd as uf, au as ff, bf as hf, aC as Bt, d6 as Jl, d7 as pf, d8 as At, aV as xn, av as bs, aw as on, k as Xl, a4 as pt, d9 as Zl, da as mf, db as fo, dc as Qt, dd as ws, de as Mn, df as wr, dg as gf, dh as Ql, di as bf, dj as xs, dk as yn, dl as Re, dm as wf, dn as xf, dp as yt, dq as oi, dr as yf, ds as bn, dt as Ut, du as vf, P as ge, dv as kf, dw as Cf, dx as Sf, dy as Nf, dz as If, W as Ye, Y as de, dA as ys, aR as On, cK as $r, dB as ea, dC as vs, dD as Af, dE as _f, dF as Tf, dG as Ef, dH as Df, dI as Rf, dJ as Lf, dK as Mf, dL as Of, b6 as Ff, dM as zf, b4 as Pf, dN as $f, dO as Bf, dP as Hf, dQ as jf, dR as Vf, dS as Wf, dT as Uf, dU as Gf, b_ as nt, dV as ta, dW as Kf, a3 as V, N as na, dX as ra, dY as qf, aZ as ks, an as Yf, dZ as Jf, d_ as Xf, ah as ln, d$ as Zf, e0 as Qf, e1 as eh, e2 as th, aM as Br, e3 as ia, e4 as sa, ca as oa, e5 as nh, aF as xr, e6 as rh, e7 as ih, e8 as sh, e9 as oh, ea as lh, ad as ah, ae as ch, ag as dh, eb as la, ec as uh, ed as fh, as as yr, ee as Kt, ef as hh, eg as aa, eh as Cs, ei as ph, ej as mh, ek as ca, el as Ti, bX as Ei, em as da, en as gh, eo as bh, cJ as Hr, bz as ua, cM as wh, cL as xh, ep as yh, bA as en, eq as vh, aJ as Gn, er as ho, es as Di, et as kh, bn as Ch, eu as Sh, bV as fa, b$ as Nh, cl as ha, cj as Ss, a9 as Ih, cm as Ah, bY as Ns, aq as pa, a as _h, c as Th, bR as Eh, ev as ma, ew as Dh, ex as Rh, F as Lh, ey as ga, ez as ba, eA as Mh, bs as po, eB as Oh, eC as Fh, bT as zh, bq as wa, bt as Ph, eD as $h, eE as Bh, eF as Hh, eG as jh, bU as xa, $ as Vh, Q as st, bF as Is, eH as As, eI as _s, eJ as ya, bG as Ts, eK as va, eL as Wh, eM as Uh, eN as Gh, eO as Kh, eP as qh, bH as Yh, eQ as Jh, bW as Xh, eR as Zh, eS as mo, eT as go, eU as bo, aX as Qh, eV as ep, eW as tp, b8 as np, eX as ka, by as rp, eY as ip, eZ as sp } from "./F0AiChat-C8H9OyiK.js";
2
+ import { f1 as jN, f0 as VN, ai as WN, e_ as UN, fl as GN, az as KN, e$ as qN, aE as YN, f9 as JN, fa as XN, fc as ZN, fj as QN, fk as eI, aG as tI, f3 as nI, f2 as rI, fb as iI, c9 as sI, fe as oI, ff as lI, f8 as aI, f5 as cI, f7 as dI, f4 as uI, bZ as fI, f6 as hI, fg as pI, fh as mI, fd as gI, fi as bI } from "./F0AiChat-C8H9OyiK.js";
3
3
  import { jsx as c, jsxs as g, Fragment as re } from "react/jsx-runtime";
4
4
  import * as he from "react";
5
5
  import ne, { forwardRef as F, useRef as K, useTransition as op, useState as L, useLayoutEffect as Ca, useContext as Es, createContext as Ds, useCallback as J, useMemo as ee, useEffect as W, useId as Sa, useImperativeHandle as Na, memo as Ia, Fragment as lp, isValidElement as ap, cloneElement as Aa, Children as _a } from "react";
6
- import { C as cp, m as dp, N as He, o as ot, q as Te, t as up, v as sr, w as Ue, x as Ta, y as Oe, z as Rs, E as $e, G as wo, H as fp, I as Ea, J as Ie, K as ze, O as vn, Q as vr, U as Da, W as hp, X as Ht, Y as pp, Z as mp, a0 as gp, a1 as Fn, a2 as zn, a3 as Ls, a4 as bp, a5 as Ra, a6 as La, a7 as Ma, a8 as wp, a9 as Oa, aa as Fa, ab as za, ac as Pa, ad as $a, ae as Ba, n as xo, af as xp, ag as yo, ah as yp, ai as vp, aj as kp, ak as Ha, al as Cp, am as Sp, an as Np, ao as ja, e as Ri, ap as Ip, aq as Ap, ar as _p, as as Tp, at as Ep, au as Dp, av as Rp, M as Lp, aw as Mp, ax as Op, ay as Fp, az as zp, u as Va, aA as Pp, aB as $p, aC as Bp, aD as Hp, aE as jp, aF as Vp, aG as vo, aH as Wp, aI as Up, aJ as Gp } from "./index-Ddy5at5O.js";
7
- import { A as xI, f as yI, B as vI, a as kI, g as CI, j as SI, D as NI, F as II, b as AI, aM as _I, aK as TI, aL as EI, L as DI, h as RI, i as LI, k as MI, c as OI, R as FI, S as zI, T as PI, V as $I, _ as BI, l as HI, p as jI, s as VI } from "./index-Ddy5at5O.js";
6
+ import { C as cp, m as dp, N as He, o as ot, q as Te, t as up, v as sr, w as Ue, x as Ta, y as Oe, z as Rs, E as $e, G as wo, H as fp, I as Ea, J as Ie, K as ze, O as vn, Q as vr, U as Da, W as hp, X as Ht, Y as pp, Z as mp, a0 as gp, a1 as Fn, a2 as zn, a3 as Ls, a4 as bp, a5 as Ra, a6 as La, a7 as Ma, a8 as wp, a9 as Oa, aa as Fa, ab as za, ac as Pa, ad as $a, ae as Ba, n as xo, af as xp, ag as yo, ah as yp, ai as vp, aj as kp, ak as Ha, al as Cp, am as Sp, an as Np, ao as ja, e as Ri, ap as Ip, aq as Ap, ar as _p, as as Tp, at as Ep, au as Dp, av as Rp, M as Lp, aw as Mp, ax as Op, ay as Fp, az as zp, u as Va, aA as Pp, aB as $p, aC as Bp, aD as Hp, aE as jp, aF as Vp, aG as vo, aH as Wp, aI as Up, aJ as Gp } from "./index-CmGdjT42.js";
7
+ import { A as xI, f as yI, B as vI, a as kI, g as CI, j as SI, D as NI, F as II, b as AI, aM as _I, aK as TI, aL as EI, L as DI, h as RI, i as LI, k as MI, c as OI, R as FI, S as zI, T as PI, V as $I, _ as BI, l as HI, p as jI, s as VI } from "./index-CmGdjT42.js";
8
8
  import './experimental.css';const Kp = Uu("Search", [
9
9
  ["circle", { cx: "11", cy: "11", r: "8", key: "4ej97u" }],
10
10
  ["path", { d: "m21 21-4.3-4.3", key: "1qie3q" }]
package/dist/f0.d.ts CHANGED
@@ -5920,7 +5920,7 @@ export declare type F0FieldConfig<T extends string | number = string | number, R
5920
5920
  /**
5921
5921
  * Field types for rendering
5922
5922
  */
5923
- export declare type F0FieldType = "text" | "number" | "duration" | "textarea" | "select" | "checkbox" | "switch" | "date" | "time" | "datetime" | "daterange" | "richtext" | "file" | "cardSelect" | "custom";
5923
+ export declare type F0FieldType = "text" | "number" | "percentage" | "money" | "duration" | "textarea" | "select" | "checkbox" | "switch" | "date" | "time" | "datetime" | "daterange" | "richtext" | "file" | "cardSelect" | "custom";
5924
5924
 
5925
5925
  /**
5926
5926
  * F0 config options specific to file fields
@@ -6667,6 +6667,10 @@ export declare type F0NumberField = F0BaseField & F0NumberConfig & {
6667
6667
  min?: number;
6668
6668
  /** Maximum value (derived from z.number().max()) */
6669
6669
  max?: number;
6670
+ /** Maximum decimal places (0 for integers, derived from z.number().int()) */
6671
+ maxDecimals?: number;
6672
+ /** Units suffix shown inside the input (e.g. "%") */
6673
+ units?: string;
6670
6674
  /** Whether the field can be cleared (derived from optional/nullable) */
6671
6675
  clearable?: boolean;
6672
6676
  /** Conditional rendering based on another field's value */
@@ -6677,13 +6681,21 @@ export declare type F0NumberField = F0BaseField & F0NumberConfig & {
6677
6681
  * Config for number fields
6678
6682
  * @typeParam R - Record type for data source (when using source instead of options)
6679
6683
  */
6680
- export declare type F0NumberFieldConfig<R extends Record<string, unknown> = Record<string, unknown>> = F0NumberInputConfig | F0NumberSelectConfig<R> | F0DurationFieldConfig;
6684
+ export declare type F0NumberFieldConfig<R extends Record<string, unknown> = Record<string, unknown>> = F0NumberInputConfig | F0NumberMoneyConfig | F0NumberSelectConfig<R> | F0DurationFieldConfig;
6681
6685
 
6682
6686
  /**
6683
6687
  * Config for number fields - number input
6684
6688
  */
6685
6689
  declare type F0NumberInputConfig = F0BaseConfig & F0NumberConfig & {
6686
- fieldType?: "number";
6690
+ fieldType?: "number" | "percentage";
6691
+ };
6692
+
6693
+ /**
6694
+ * Config for money fields - number input with currency suffix
6695
+ */
6696
+ declare type F0NumberMoneyConfig = F0BaseConfig & F0NumberConfig & {
6697
+ fieldType: "money";
6698
+ currency: string;
6687
6699
  };
6688
6700
 
6689
6701
  /**
@@ -7206,6 +7218,8 @@ export declare const F0Text: WithDataTestIdReturnType_3<ForwardRefExoticComponen
7206
7218
  export declare interface F0TextareaConfig {
7207
7219
  /** Number of rows for the textarea */
7208
7220
  rows?: number;
7221
+ /** Maximum height in pixels. When set, the textarea scrolls beyond this height instead of growing. */
7222
+ maxHeight?: number;
7209
7223
  }
7210
7224
 
7211
7225
  /**
@@ -11742,6 +11756,11 @@ declare module "gridstack" {
11742
11756
  }
11743
11757
 
11744
11758
 
11759
+ declare namespace Calendar {
11760
+ var displayName: string;
11761
+ }
11762
+
11763
+
11745
11764
  declare module "@tiptap/core" {
11746
11765
  interface Commands<ReturnType> {
11747
11766
  aiBlock: {
@@ -11789,8 +11808,3 @@ declare module "@tiptap/core" {
11789
11808
  };
11790
11809
  }
11791
11810
  }
11792
-
11793
-
11794
- declare namespace Calendar {
11795
- var displayName: string;
11796
- }