@factorialco/f0-react 1.437.0 → 1.438.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.
- package/dist/{F0AiChat-Cg05PVK9.js → F0AiChat-DqqfCgbK.js} +3565 -3556
- package/dist/{F0HILActionConfirmation-CMnMjtvP.js → F0HILActionConfirmation-BdjYxiC3.js} +1 -1
- package/dist/ai.d.ts +6 -6
- package/dist/ai.js +2 -2
- package/dist/experimental.d.ts +6 -6
- package/dist/experimental.js +4 -4
- package/dist/f0.d.ts +25 -9
- package/dist/f0.js +3737 -3706
- package/dist/i18n-provider-defaults.d.ts +6 -6
- package/dist/{index-CFs2gP7X.js → index-26YoN1Ks.js} +7654 -7651
- package/dist/styles.css +1 -1
- package/package.json +1 -1
|
@@ -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-
|
|
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-DqqfCgbK.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
|
@@ -2005,8 +2005,10 @@ declare module "@tiptap/core" {
|
|
|
2005
2005
|
|
|
2006
2006
|
declare module "@tiptap/core" {
|
|
2007
2007
|
interface Commands<ReturnType> {
|
|
2008
|
-
|
|
2009
|
-
|
|
2008
|
+
videoEmbed: {
|
|
2009
|
+
setVideoEmbed: (options: {
|
|
2010
|
+
src: string;
|
|
2011
|
+
}) => ReturnType;
|
|
2010
2012
|
};
|
|
2011
2013
|
}
|
|
2012
2014
|
}
|
|
@@ -2014,10 +2016,8 @@ declare module "@tiptap/core" {
|
|
|
2014
2016
|
|
|
2015
2017
|
declare module "@tiptap/core" {
|
|
2016
2018
|
interface Commands<ReturnType> {
|
|
2017
|
-
|
|
2018
|
-
|
|
2019
|
-
src: string;
|
|
2020
|
-
}) => ReturnType;
|
|
2019
|
+
transcript: {
|
|
2020
|
+
insertTranscript: (data: TranscriptData) => ReturnType;
|
|
2021
2021
|
};
|
|
2022
2022
|
}
|
|
2023
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-
|
|
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-DqqfCgbK.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-
|
|
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-BdjYxiC3.js";
|
|
4
4
|
export {
|
|
5
5
|
p as AiChatTranslationsProvider,
|
|
6
6
|
t as ChatSpinner,
|
package/dist/experimental.d.ts
CHANGED
|
@@ -7553,8 +7553,10 @@ declare module "@tiptap/core" {
|
|
|
7553
7553
|
|
|
7554
7554
|
declare module "@tiptap/core" {
|
|
7555
7555
|
interface Commands<ReturnType> {
|
|
7556
|
-
|
|
7557
|
-
|
|
7556
|
+
videoEmbed: {
|
|
7557
|
+
setVideoEmbed: (options: {
|
|
7558
|
+
src: string;
|
|
7559
|
+
}) => ReturnType;
|
|
7558
7560
|
};
|
|
7559
7561
|
}
|
|
7560
7562
|
}
|
|
@@ -7562,10 +7564,8 @@ declare module "@tiptap/core" {
|
|
|
7562
7564
|
|
|
7563
7565
|
declare module "@tiptap/core" {
|
|
7564
7566
|
interface Commands<ReturnType> {
|
|
7565
|
-
|
|
7566
|
-
|
|
7567
|
-
src: string;
|
|
7568
|
-
}) => ReturnType;
|
|
7567
|
+
transcript: {
|
|
7568
|
+
insertTranscript: (data: TranscriptData) => ReturnType;
|
|
7569
7569
|
};
|
|
7570
7570
|
}
|
|
7571
7571
|
}
|
package/dist/experimental.js
CHANGED
|
@@ -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-
|
|
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-
|
|
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-DqqfCgbK.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-DqqfCgbK.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-
|
|
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-
|
|
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-26YoN1Ks.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-26YoN1Ks.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
|
|
@@ -6475,6 +6475,10 @@ export declare interface F0FormRef {
|
|
|
6475
6475
|
* Get the list of field names in the form
|
|
6476
6476
|
*/
|
|
6477
6477
|
getFieldNames: () => string[];
|
|
6478
|
+
/**
|
|
6479
|
+
* Access the action bar imperatively (e.g. to trigger a wiggle animation)
|
|
6480
|
+
*/
|
|
6481
|
+
actionBar: F0ActionBarRef;
|
|
6478
6482
|
/* Excluded from this release type: _setStateCallback */
|
|
6479
6483
|
}
|
|
6480
6484
|
|
|
@@ -6663,6 +6667,10 @@ export declare type F0NumberField = F0BaseField & F0NumberConfig & {
|
|
|
6663
6667
|
min?: number;
|
|
6664
6668
|
/** Maximum value (derived from z.number().max()) */
|
|
6665
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;
|
|
6666
6674
|
/** Whether the field can be cleared (derived from optional/nullable) */
|
|
6667
6675
|
clearable?: boolean;
|
|
6668
6676
|
/** Conditional rendering based on another field's value */
|
|
@@ -6673,13 +6681,21 @@ export declare type F0NumberField = F0BaseField & F0NumberConfig & {
|
|
|
6673
6681
|
* Config for number fields
|
|
6674
6682
|
* @typeParam R - Record type for data source (when using source instead of options)
|
|
6675
6683
|
*/
|
|
6676
|
-
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;
|
|
6677
6685
|
|
|
6678
6686
|
/**
|
|
6679
6687
|
* Config for number fields - number input
|
|
6680
6688
|
*/
|
|
6681
6689
|
declare type F0NumberInputConfig = F0BaseConfig & F0NumberConfig & {
|
|
6682
|
-
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;
|
|
6683
6699
|
};
|
|
6684
6700
|
|
|
6685
6701
|
/**
|
|
@@ -11774,8 +11790,10 @@ declare module "@tiptap/core" {
|
|
|
11774
11790
|
|
|
11775
11791
|
declare module "@tiptap/core" {
|
|
11776
11792
|
interface Commands<ReturnType> {
|
|
11777
|
-
|
|
11778
|
-
|
|
11793
|
+
videoEmbed: {
|
|
11794
|
+
setVideoEmbed: (options: {
|
|
11795
|
+
src: string;
|
|
11796
|
+
}) => ReturnType;
|
|
11779
11797
|
};
|
|
11780
11798
|
}
|
|
11781
11799
|
}
|
|
@@ -11783,10 +11801,8 @@ declare module "@tiptap/core" {
|
|
|
11783
11801
|
|
|
11784
11802
|
declare module "@tiptap/core" {
|
|
11785
11803
|
interface Commands<ReturnType> {
|
|
11786
|
-
|
|
11787
|
-
|
|
11788
|
-
src: string;
|
|
11789
|
-
}) => ReturnType;
|
|
11804
|
+
transcript: {
|
|
11805
|
+
insertTranscript: (data: TranscriptData) => ReturnType;
|
|
11790
11806
|
};
|
|
11791
11807
|
}
|
|
11792
11808
|
}
|