@factorialco/f0-react 1.361.0 → 1.362.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/{DataCollectionStorageProvider-DI1DfAS8.js → DataCollectionStorageProvider-D8t0CDK-.js} +1 -1
- package/dist/{F0AiChat-CifDRPK4.js → F0AiChat-CI5HI9RC.js} +6 -2
- package/dist/{F0HILActionConfirmation-CqnsoGly.js → F0HILActionConfirmation-CC_m8juQ.js} +1 -1
- package/dist/ai.d.ts +5 -5
- package/dist/ai.js +2 -2
- package/dist/experimental.d.ts +5 -5
- package/dist/experimental.js +4 -4
- package/dist/f0.d.ts +126 -5
- package/dist/f0.js +2015 -1952
- package/dist/i18n-provider-defaults.d.ts +5 -5
- package/package.json +1 -1
package/dist/{DataCollectionStorageProvider-DI1DfAS8.js → DataCollectionStorageProvider-D8t0CDK-.js}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as _, jsxs as V, Fragment as Ot } from "react/jsx-runtime";
|
|
2
2
|
import * as Pe from "react";
|
|
3
3
|
import N, { useRef as Be, useState as ke, useCallback as vt, useEffect as He, useContext as sn, useMemo as xt, useLayoutEffect as mx, createContext as qn, isValidElement as bi, Children as Fa, PureComponent as ui, forwardRef as dt, useImperativeHandle as yx, cloneElement as Nt, createElement as vx, Component as TC, useId as PC, Fragment as qg, useDebugValue as MC, createRef as yI, memo as vI, version as Xk } from "react";
|
|
4
|
-
import { eO as Jk, bL as gI, eP as bI, ac as oi, ce as DC, a6 as Z, c7 as NC, eQ as xI, eR as wI, a7 as bh, am as na, eS as Ec, bO as tt, ak as IC, eT as kI, eU as _I, dR as $C, eV as SI, eW as OI, c8 as AI, eX as CI, ah as Vt, aX as xh, d2 as RC, d3 as gx, aP as bx, eY as Po, eZ as EI, e_ as TI, e$ as PI, f0 as Zk, f1 as Qk, f2 as e2, f3 as t2, f4 as n2, f5 as jC, f6 as su, f7 as MI, f8 as DI, d0 as Gl, f9 as NI, aS as LC, aT as FC, aU as BC, ax as xx, ba as ia, ay as zC, az as qC, cf as wh, ao as Ne, cB as II, bU as HC, bV as WC, bW as VC, bZ as UC, dz as $I, dG as wx, fa as KC, dj as GC, d1 as RI, eg as jI, du as Zf, b$ as LI, b2 as FI, a8 as et, aD as kx, bc as YC, bd as kh, aB as XC, eE as _h, fb as BI, ad as lo, fc as zI, dt as _x, fd as qI, ez as JC, e9 as HI, ab as wt, aW as Sx, u as En, al as Sh, aG as WI, b0 as ZC, av as Oh, ca as VI, eb as QC, ec as eE, eq as tE, b1 as nE, ag as zt, af as Ox, fe as iE, aV as UI, a$ as Qf, aA as KI, e2 as Ft, ff as rE, fg as aE, fh as Hg, fi as GI, fj as i2, e5 as YI, e6 as r2, at as oE, au as sE, aw as lE, eM as XI, aJ as JI, fk as fE, eC as ZI, fl as QI, aj as Sn, bh as Wg, aR as cE, ai as e$, dq as t$, bC as n$, d_ as i$, d$ as r$, eF as a$, fm as o$, fn as s$, fo as uE, cZ as ec, fp as Ah, fq as Ch, c$ as tc, cO as l$, bi as Ax, aM as a2, dX as f$, a9 as Cx, fr as c$, cI as u$, fs as d$, ft as Vg, fu as dE, fv as hE, fw as pE, fx as h$, fy as p$, fz as m$, fA as y$, cP as v$, cQ as g$, cR as b$, cS as x$, cT as w$, cU as k$, fB as _$, cW as S$, cY as O$, cX as A$, bf as C$, c_ as E$, eo as T$, cG as P$, aK as M$, d4 as D$, fC as N$, fD as I$, fE as $$, fF as R$, dw as j$, an as L$, aY as F$, aZ as B$, a_ as z$, b3 as q$ } from "./F0AiChat-
|
|
4
|
+
import { eO as Jk, bL as gI, eP as bI, ac as oi, ce as DC, a6 as Z, c7 as NC, eQ as xI, eR as wI, a7 as bh, am as na, eS as Ec, bO as tt, ak as IC, eT as kI, eU as _I, dR as $C, eV as SI, eW as OI, c8 as AI, eX as CI, ah as Vt, aX as xh, d2 as RC, d3 as gx, aP as bx, eY as Po, eZ as EI, e_ as TI, e$ as PI, f0 as Zk, f1 as Qk, f2 as e2, f3 as t2, f4 as n2, f5 as jC, f6 as su, f7 as MI, f8 as DI, d0 as Gl, f9 as NI, aS as LC, aT as FC, aU as BC, ax as xx, ba as ia, ay as zC, az as qC, cf as wh, ao as Ne, cB as II, bU as HC, bV as WC, bW as VC, bZ as UC, dz as $I, dG as wx, fa as KC, dj as GC, d1 as RI, eg as jI, du as Zf, b$ as LI, b2 as FI, a8 as et, aD as kx, bc as YC, bd as kh, aB as XC, eE as _h, fb as BI, ad as lo, fc as zI, dt as _x, fd as qI, ez as JC, e9 as HI, ab as wt, aW as Sx, u as En, al as Sh, aG as WI, b0 as ZC, av as Oh, ca as VI, eb as QC, ec as eE, eq as tE, b1 as nE, ag as zt, af as Ox, fe as iE, aV as UI, a$ as Qf, aA as KI, e2 as Ft, ff as rE, fg as aE, fh as Hg, fi as GI, fj as i2, e5 as YI, e6 as r2, at as oE, au as sE, aw as lE, eM as XI, aJ as JI, fk as fE, eC as ZI, fl as QI, aj as Sn, bh as Wg, aR as cE, ai as e$, dq as t$, bC as n$, d_ as i$, d$ as r$, eF as a$, fm as o$, fn as s$, fo as uE, cZ as ec, fp as Ah, fq as Ch, c$ as tc, cO as l$, bi as Ax, aM as a2, dX as f$, a9 as Cx, fr as c$, cI as u$, fs as d$, ft as Vg, fu as dE, fv as hE, fw as pE, fx as h$, fy as p$, fz as m$, fA as y$, cP as v$, cQ as g$, cR as b$, cS as x$, cT as w$, cU as k$, fB as _$, cW as S$, cY as O$, cX as A$, bf as C$, c_ as E$, eo as T$, cG as P$, aK as M$, d4 as D$, fC as N$, fD as I$, fE as $$, fF as R$, dw as j$, an as L$, aY as F$, aZ as B$, a_ as z$, b3 as q$ } from "./F0AiChat-CI5HI9RC.js";
|
|
5
5
|
import Ex from "react-dom";
|
|
6
6
|
import './DataCollectionStorageProvider.css';const H$ = {
|
|
7
7
|
active: !0,
|
|
@@ -115497,7 +115497,11 @@ const $b1 = {
|
|
|
115497
115497
|
})
|
|
115498
115498
|
});
|
|
115499
115499
|
}, Ob1 = ({ submitLabel: e, inProgress: t, onSend: n, onStop: r, placeholders: a = [], defaultPlaceholder: i, autoFocus: s = !0 }) => {
|
|
115500
|
-
const [l, c] = R2(""), u = e1(null), d = e1(null), C = A1()
|
|
115500
|
+
const [l, c] = R2(""), u = e1(null), d = e1(null), C = A1();
|
|
115501
|
+
X2(() => {
|
|
115502
|
+
s && typeof window < "u" && window.location.hash.length === 0 && d.current?.focus();
|
|
115503
|
+
}, [s]);
|
|
115504
|
+
const m = i ?? C.ai.inputPlaceholder, p = l.trim().length > 0, v = (M) => {
|
|
115501
115505
|
M.preventDefault(), t ? r?.() : p && (n(l.trim()), c("")), d.current?.focus();
|
|
115502
115506
|
}, g = (M) => {
|
|
115503
115507
|
M.key === "Enter" && !M.shiftKey && (M.preventDefault(), t || u.current?.requestSubmit());
|
|
@@ -115532,7 +115536,7 @@ const $b1 = {
|
|
|
115532
115536
|
className: p2("col-start-1 row-start-1", "pointer-events-none", "text-f1-foreground-secondary", "sm:text-[14px] text-[16px] leading-[20px] font-normal", "sm:pt-3 sm:px-3", "overflow-hidden text-ellipsis whitespace-nowrap"),
|
|
115533
115537
|
children: m
|
|
115534
115538
|
}), o("textarea", {
|
|
115535
|
-
autoFocus:
|
|
115539
|
+
autoFocus: !1,
|
|
115536
115540
|
name: "one-ai-input",
|
|
115537
115541
|
rows: 1,
|
|
115538
115542
|
ref: d,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as X, jsxs as le } from "react/jsx-runtime";
|
|
2
2
|
import { useInsertionEffect as Xe, createContext as ke, useContext as $e, useRef as _, useEffect as ne, useState as _e, useCallback as ze, useMemo as Ye } from "react";
|
|
3
|
-
import { y as qe, z as We, D as He, G as je, J as Ne, K as Ke, M as Qe, N as Je, Q as Ze, R as et, V as Ce, W as tt, X as rt, Y as nt, Z as it, _ as ot, $ as at, a0 as st, a1 as ie, a2 as ct, a3 as ut, a4 as lt, a5 as ft, a6 as mt, a7 as dt, a8 as fe, a9 as ht } from "./F0AiChat-
|
|
3
|
+
import { y as qe, z as We, D as He, G as je, J as Ne, K as Ke, M as Qe, N as Je, Q as Ze, R as et, V as Ce, W as tt, X as rt, Y as nt, Z as it, _ as ot, $ as at, a0 as st, a1 as ie, a2 as ct, a3 as ut, a4 as lt, a5 as ft, a6 as mt, a7 as dt, a8 as fe, a9 as ht } from "./F0AiChat-CI5HI9RC.js";
|
|
4
4
|
import { useTrackVolume as pt } from "@livekit/components-react";
|
|
5
5
|
function vt(t, e, r) {
|
|
6
6
|
Xe(() => t.on(e, r), [t, e, r]);
|
package/dist/ai.d.ts
CHANGED
|
@@ -1157,11 +1157,6 @@ declare module "gridstack" {
|
|
|
1157
1157
|
}
|
|
1158
1158
|
|
|
1159
1159
|
|
|
1160
|
-
declare namespace Calendar {
|
|
1161
|
-
var displayName: string;
|
|
1162
|
-
}
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
1160
|
declare module "@tiptap/core" {
|
|
1166
1161
|
interface Commands<ReturnType> {
|
|
1167
1162
|
aiBlock: {
|
|
@@ -1198,3 +1193,8 @@ declare module "@tiptap/core" {
|
|
|
1198
1193
|
};
|
|
1199
1194
|
}
|
|
1200
1195
|
}
|
|
1196
|
+
|
|
1197
|
+
|
|
1198
|
+
declare namespace Calendar {
|
|
1199
|
+
var displayName: string;
|
|
1200
|
+
}
|
package/dist/ai.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { A as e, B as o, C as t, E as n, h as i, F as r, a as l, x as c, i as A, b as u, s as F, t as h, v as C, w as T, c as d, n as m, o as I, p as f, H as g, I as S, k as p, L as x, O as H, q as P, P as b, S as k, T as O, l as v, m as w, U as M, r as E, j as L, d as q, e as B, u as U, g as j, f as z } from "./F0AiChat-
|
|
1
|
+
import { A as e, B as o, C as t, E as n, h as i, F as r, a as l, x as c, i as A, b as u, s as F, t as h, v as C, w as T, c as d, n as m, o as I, p as f, H as g, I as S, k as p, L as x, O as H, q as P, P as b, S as k, T as O, l as v, m as w, U as M, r as E, j as L, d as q, e as B, u as U, g as j, f as z } from "./F0AiChat-CI5HI9RC.js";
|
|
2
2
|
import { defaultTranslations as R } from "./i18n-provider-defaults.js";
|
|
3
|
-
import { A as y, F as G, c as J, b as K, a as N, o as Q, u as W } from "./F0HILActionConfirmation-
|
|
3
|
+
import { A as y, F as G, c as J, b as K, a as N, o as Q, u as W } from "./F0HILActionConfirmation-CC_m8juQ.js";
|
|
4
4
|
export {
|
|
5
5
|
e as A,
|
|
6
6
|
y as AiChatTranslationsProvider,
|
package/dist/experimental.d.ts
CHANGED
|
@@ -6627,11 +6627,6 @@ declare module "gridstack" {
|
|
|
6627
6627
|
}
|
|
6628
6628
|
|
|
6629
6629
|
|
|
6630
|
-
declare namespace Calendar {
|
|
6631
|
-
var displayName: string;
|
|
6632
|
-
}
|
|
6633
|
-
|
|
6634
|
-
|
|
6635
6630
|
declare module "@tiptap/core" {
|
|
6636
6631
|
interface Commands<ReturnType> {
|
|
6637
6632
|
aiBlock: {
|
|
@@ -6668,3 +6663,8 @@ declare module "@tiptap/core" {
|
|
|
6668
6663
|
};
|
|
6669
6664
|
}
|
|
6670
6665
|
}
|
|
6666
|
+
|
|
6667
|
+
|
|
6668
|
+
declare namespace Calendar {
|
|
6669
|
+
var displayName: string;
|
|
6670
|
+
}
|
package/dist/experimental.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { a5 as Hd, bG as Wp, bH as Up, bI as Gp, bJ as Ms, bK as qp, bL as Ki, D as Kp, bM as Jp, ab as G, V as Vd, J as Yp, bN as Qp, ao as wi, bO as Wd, bP as Xp, bQ as Zp, ak as eg, bR as ka, bS as Wr, bT as tg, a6 as C, a7 as Ct, u as X, bU as ng, bV as rg, bW as ig, bX as sg, bY as og, av as we, bZ as lg, b_ as dl, b$ as Ud, aj as Ie, c0 as ag, c1 as Gd, ah as q, c2 as qd, c3 as Kd, ac as nt, c4 as Jd, c5 as ho, c6 as Yd, a8 as j, c7 as Tr, ag as M, c8 as ft, c9 as cg, ca as dg, cb as lr, aP as Qd, cc as Xd, a$ as Zt, cd as Zd, ce as ul, cf as at, aQ as fl, aR as Un, v as eu, cg as tu, ch as ug, ci as Ca, cj as Fn, ck as hl, cl as Er, cm as ki, cn as fg, co as nu, cp as hg, cq as ml, cr as ar, cs as Ke, ct as mg, cu as pg, cv as Vt, cw as Ps, cx as gg, cy as sr, cz as Sn, cA as bg, cB as ru, cC as vg, cD as xg, cE as yg, cF as wg, ad as Ve, af as Ne, cG as ln, aO as pn, bD as Dr, cH as iu, cI as pl, cJ as kg, cK as Cg, cL as Ng, cM as Sg, cN as Ig, cO as Ag, cP as Tg, cQ as Eg, cR as Dg, cS as gl, cT as _g, cU as su, cV as Lg, cW as Og, cX as Rg, cY as Fg, cZ as Mg, c_ as Pg, c$ as zg, bf as wt, d0 as ou, d1 as $g, am as oe, a9 as cr, d2 as lu, d3 as au, aX as bl, t as jg, d4 as Bg, d5 as Hg, al as dr, d6 as Vg, d7 as zs, d8 as Wg, d9 as vl, da as Wt, aK as cu, db as Na, dc as Sa, dd as Ug, de as Ia, df as du, dg as xl, aH as uu, at as yl, au as wl, aw as kl, aG as Ci, ai as _r, dh as Gg, di as qg, dj as fu, dk as Kg, ax as kt, dl as Jg, dm as hu, dn as mu, dp as Yg, dq as Lr, dr as Cl, ds as Ji, bh as an, dt as mo, aJ as ur, du as Qg, dv as Xg, dw as Zg, dx as eb, dy as tb, dz as nb, dA as pu, dB as rb, dC as gu, dD as ib, dE as sb, dF as ob, dG as Aa, dH as bu, dI as po, aB as go, dJ as vu, dK as bo, aW as cn, ba as Yi, dL as Qi, dM as lb, dN as ab, dO as cb, bC as Xi, aV as xu, bF as db, bE as ub, dP as yu, aD as Tn, dQ as Ta, dR as Ni, dS as fb, dT as hb, bg as mb, bb as wu, a as pb, d as gb, dU as Nl, F as bb, dV as ku, dW as Cu, dX as vb, dY as xb, dZ as yb, d_ as wb, d$ as kb, e0 as Nu, e1 as Cb, bc as Su, e2 as Iu, e3 as Nb, e4 as Sb, e5 as Ib, e6 as Ab, e7 as Tb, e8 as Eb, e9 as Db, ea as _b, bq as Lb, br as Ob, by as Zi, bw as Sl, b0 as es, eb as ts, ec as ns, b1 as rs, ed as Il, bx as Au, aC as Rb, bs as Si, ee as Tu, ef as Fb, eg as vo, eh as Mb, ei as Ea, ej as Pb, ek as zb, el as $b, em as jb, en as Bb, eo as Hb, ep as Vb, aa as Eu, bn as Wb, bv as Ub, aY as Gb, aZ as qb, a_ as Kb, an as ht, eq as Du, er as Jb, es as Yb, et as Qb, eu as Xb, b2 as Zb, ev as e0, ew as Da, ex as _a, ey as La, ez as t0, eA as n0, eB as r0, eC as i0, eD as _u, eE as s0 } from "./F0AiChat-
|
|
2
|
-
import { eH as RL, eG as FL, eF as ML, eM as PL, eN as zL, eJ as $L, eI as jL, eL as BL, be as HL, eK as VL } from "./F0AiChat-
|
|
1
|
+
import { a5 as Hd, bG as Wp, bH as Up, bI as Gp, bJ as Ms, bK as qp, bL as Ki, D as Kp, bM as Jp, ab as G, V as Vd, J as Yp, bN as Qp, ao as wi, bO as Wd, bP as Xp, bQ as Zp, ak as eg, bR as ka, bS as Wr, bT as tg, a6 as C, a7 as Ct, u as X, bU as ng, bV as rg, bW as ig, bX as sg, bY as og, av as we, bZ as lg, b_ as dl, b$ as Ud, aj as Ie, c0 as ag, c1 as Gd, ah as q, c2 as qd, c3 as Kd, ac as nt, c4 as Jd, c5 as ho, c6 as Yd, a8 as j, c7 as Tr, ag as M, c8 as ft, c9 as cg, ca as dg, cb as lr, aP as Qd, cc as Xd, a$ as Zt, cd as Zd, ce as ul, cf as at, aQ as fl, aR as Un, v as eu, cg as tu, ch as ug, ci as Ca, cj as Fn, ck as hl, cl as Er, cm as ki, cn as fg, co as nu, cp as hg, cq as ml, cr as ar, cs as Ke, ct as mg, cu as pg, cv as Vt, cw as Ps, cx as gg, cy as sr, cz as Sn, cA as bg, cB as ru, cC as vg, cD as xg, cE as yg, cF as wg, ad as Ve, af as Ne, cG as ln, aO as pn, bD as Dr, cH as iu, cI as pl, cJ as kg, cK as Cg, cL as Ng, cM as Sg, cN as Ig, cO as Ag, cP as Tg, cQ as Eg, cR as Dg, cS as gl, cT as _g, cU as su, cV as Lg, cW as Og, cX as Rg, cY as Fg, cZ as Mg, c_ as Pg, c$ as zg, bf as wt, d0 as ou, d1 as $g, am as oe, a9 as cr, d2 as lu, d3 as au, aX as bl, t as jg, d4 as Bg, d5 as Hg, al as dr, d6 as Vg, d7 as zs, d8 as Wg, d9 as vl, da as Wt, aK as cu, db as Na, dc as Sa, dd as Ug, de as Ia, df as du, dg as xl, aH as uu, at as yl, au as wl, aw as kl, aG as Ci, ai as _r, dh as Gg, di as qg, dj as fu, dk as Kg, ax as kt, dl as Jg, dm as hu, dn as mu, dp as Yg, dq as Lr, dr as Cl, ds as Ji, bh as an, dt as mo, aJ as ur, du as Qg, dv as Xg, dw as Zg, dx as eb, dy as tb, dz as nb, dA as pu, dB as rb, dC as gu, dD as ib, dE as sb, dF as ob, dG as Aa, dH as bu, dI as po, aB as go, dJ as vu, dK as bo, aW as cn, ba as Yi, dL as Qi, dM as lb, dN as ab, dO as cb, bC as Xi, aV as xu, bF as db, bE as ub, dP as yu, aD as Tn, dQ as Ta, dR as Ni, dS as fb, dT as hb, bg as mb, bb as wu, a as pb, d as gb, dU as Nl, F as bb, dV as ku, dW as Cu, dX as vb, dY as xb, dZ as yb, d_ as wb, d$ as kb, e0 as Nu, e1 as Cb, bc as Su, e2 as Iu, e3 as Nb, e4 as Sb, e5 as Ib, e6 as Ab, e7 as Tb, e8 as Eb, e9 as Db, ea as _b, bq as Lb, br as Ob, by as Zi, bw as Sl, b0 as es, eb as ts, ec as ns, b1 as rs, ed as Il, bx as Au, aC as Rb, bs as Si, ee as Tu, ef as Fb, eg as vo, eh as Mb, ei as Ea, ej as Pb, ek as zb, el as $b, em as jb, en as Bb, eo as Hb, ep as Vb, aa as Eu, bn as Wb, bv as Ub, aY as Gb, aZ as qb, a_ as Kb, an as ht, eq as Du, er as Jb, es as Yb, et as Qb, eu as Xb, b2 as Zb, ev as e0, ew as Da, ex as _a, ey as La, ez as t0, eA as n0, eB as r0, eC as i0, eD as _u, eE as s0 } from "./F0AiChat-CI5HI9RC.js";
|
|
2
|
+
import { eH as RL, eG as FL, eF as ML, eM as PL, eN as zL, eJ as $L, eI as jL, eL as BL, be as HL, eK as VL } from "./F0AiChat-CI5HI9RC.js";
|
|
3
3
|
import { jsx as l, jsxs as g, Fragment as ee } from "react/jsx-runtime";
|
|
4
4
|
import * as Fe from "react";
|
|
5
5
|
import Q, { createContext as Pt, forwardRef as J, useRef as W, useEffect as V, useContext as zt, PureComponent as o0, useTransition as l0, useState as F, useLayoutEffect as Gn, useId as Al, useCallback as ne, useMemo as z, useImperativeHandle as Lu, memo as is, Fragment as Mn, isValidElement as Ou, cloneElement as Tl, createElement as Oa, Children as Ru } from "react";
|
|
6
|
-
import { f as En, aO as fr, j as Ur, aP as a0, b as $s, aQ as c0, A as d0, d as Gr, i as u0, m as f0, G as h0, g as Ra, aR as m0, l as Fa, aS as p0, p as g0, aT as Fu, aU as Mu, aV as b0, aW as xo, C as v0, aH as x0, ak as Pn, D as Me, aX as mt, aY as Nt, aZ as Ue, a_ as y0, a$ as li, b0 as it, b1 as Pu, b2 as Qe, b3 as El, b4 as ct, b5 as Ma, b6 as w0, b7 as zu, b8 as Be, b9 as Ze, ba as hr, bb as Ii, bc as $u, bd as k0, be as gn, bf as C0, bg as N0, bh as S0, bi as ss, bj as os, bk as Dl, bl as I0, bm as ju, bn as Bu, bo as Hu, bp as A0, bq as Vu, br as Wu, bs as Uu, bt as Gu, bu as qu, bv as Ku, bw as yo, bx as T0, by as E0, bz as D0, bA as _0, t as L0, x as O0, y as R0, F as F0, M as Pa, N as za, O as M0, P as P0, a3 as z0, a4 as $0, bB as j0, bC as B0, a6 as H0, ah as V0, a8 as W0, a9 as U0, bD as G0, aa as q0, ab as K0, ac as J0, ag as Y0, af as Q0, bE as Ju, bF as X0, bG as Z0, bH as ev, aC as _l, at as Ll, bI as Ol, bJ as Yu, as as wo, bK as tv, bL as nv, ar as Qu, a2 as Or, an as rv, bM as iv, bN as sv, bO as ov, aw as Rl, bP as lv, aL as av, bQ as ko, bR as cv, bS as Ai, bT as dv, aM as uv, bU as fv, aK as Xu, aJ as hv, aI as mv, bV as pv, bW as gv, bX as bv, bY as vv, bZ as xv, b_ as yv, b$ as wv, c0 as kv, c1 as Cv, c2 as Nv, c3 as Sv, c4 as Iv, c5 as Av, c6 as Tv, c7 as Ev, aN as Zu, aA as ef, c8 as Dv, R as _v, T as Lv, V as Ov, W as Rv, Z as Fv, U as Mv, c9 as $a, ca as Pv, cb as zv, n as $v } from "./DataCollectionStorageProvider-
|
|
7
|
-
import { ao as UL, cc as GL, ad as qL, aj as KL, ai as JL, cg as YL, cf as QL, cd as XL, ce as ZL, a5 as eO, ae as tO, ax as nO, ay as rO } from "./DataCollectionStorageProvider-
|
|
6
|
+
import { f as En, aO as fr, j as Ur, aP as a0, b as $s, aQ as c0, A as d0, d as Gr, i as u0, m as f0, G as h0, g as Ra, aR as m0, l as Fa, aS as p0, p as g0, aT as Fu, aU as Mu, aV as b0, aW as xo, C as v0, aH as x0, ak as Pn, D as Me, aX as mt, aY as Nt, aZ as Ue, a_ as y0, a$ as li, b0 as it, b1 as Pu, b2 as Qe, b3 as El, b4 as ct, b5 as Ma, b6 as w0, b7 as zu, b8 as Be, b9 as Ze, ba as hr, bb as Ii, bc as $u, bd as k0, be as gn, bf as C0, bg as N0, bh as S0, bi as ss, bj as os, bk as Dl, bl as I0, bm as ju, bn as Bu, bo as Hu, bp as A0, bq as Vu, br as Wu, bs as Uu, bt as Gu, bu as qu, bv as Ku, bw as yo, bx as T0, by as E0, bz as D0, bA as _0, t as L0, x as O0, y as R0, F as F0, M as Pa, N as za, O as M0, P as P0, a3 as z0, a4 as $0, bB as j0, bC as B0, a6 as H0, ah as V0, a8 as W0, a9 as U0, bD as G0, aa as q0, ab as K0, ac as J0, ag as Y0, af as Q0, bE as Ju, bF as X0, bG as Z0, bH as ev, aC as _l, at as Ll, bI as Ol, bJ as Yu, as as wo, bK as tv, bL as nv, ar as Qu, a2 as Or, an as rv, bM as iv, bN as sv, bO as ov, aw as Rl, bP as lv, aL as av, bQ as ko, bR as cv, bS as Ai, bT as dv, aM as uv, bU as fv, aK as Xu, aJ as hv, aI as mv, bV as pv, bW as gv, bX as bv, bY as vv, bZ as xv, b_ as yv, b$ as wv, c0 as kv, c1 as Cv, c2 as Nv, c3 as Sv, c4 as Iv, c5 as Av, c6 as Tv, c7 as Ev, aN as Zu, aA as ef, c8 as Dv, R as _v, T as Lv, V as Ov, W as Rv, Z as Fv, U as Mv, c9 as $a, ca as Pv, cb as zv, n as $v } from "./DataCollectionStorageProvider-D8t0CDK-.js";
|
|
7
|
+
import { ao as UL, cc as GL, ad as qL, aj as KL, ai as JL, cg as YL, cf as QL, cd as XL, ce as ZL, a5 as eO, ae as tO, ax as nO, ay as rO } from "./DataCollectionStorageProvider-D8t0CDK-.js";
|
|
8
8
|
import './experimental.css';function tf(t, e) {
|
|
9
9
|
const n = Hd(e()), r = () => n.set(e());
|
|
10
10
|
return r(), Wp(() => {
|
package/dist/f0.d.ts
CHANGED
|
@@ -3741,6 +3741,12 @@ declare interface F0FormDefaultSubmitConfig extends F0FormSubmitConfigBase {
|
|
|
3741
3741
|
* @default "default"
|
|
3742
3742
|
*/
|
|
3743
3743
|
type?: "default";
|
|
3744
|
+
/**
|
|
3745
|
+
* When true, hides the submit button.
|
|
3746
|
+
* Useful when using `useF0Form` hook to submit from outside the form.
|
|
3747
|
+
* @default false
|
|
3748
|
+
*/
|
|
3749
|
+
hideSubmitButton?: boolean;
|
|
3744
3750
|
}
|
|
3745
3751
|
|
|
3746
3752
|
/**
|
|
@@ -3902,6 +3908,40 @@ export declare interface F0FormProps<TSchema extends z.ZodObject<ZodRawShape>> {
|
|
|
3902
3908
|
* Controls section sidebar visibility and box wrapping.
|
|
3903
3909
|
*/
|
|
3904
3910
|
styling?: F0FormStylingConfig;
|
|
3911
|
+
/**
|
|
3912
|
+
* Ref to control the form programmatically from outside.
|
|
3913
|
+
* Use with the `useF0Form` hook to get a ref and submit/reset functions.
|
|
3914
|
+
*
|
|
3915
|
+
* @example
|
|
3916
|
+
* ```tsx
|
|
3917
|
+
* const { formRef, submit } = useF0Form()
|
|
3918
|
+
*
|
|
3919
|
+
* <F0Form formRef={formRef} ... />
|
|
3920
|
+
* <Button onClick={submit}>Submit</Button>
|
|
3921
|
+
* ```
|
|
3922
|
+
*/
|
|
3923
|
+
formRef?: React.MutableRefObject<F0FormRef | null>;
|
|
3924
|
+
}
|
|
3925
|
+
|
|
3926
|
+
/**
|
|
3927
|
+
* Interface for the F0Form ref methods
|
|
3928
|
+
*/
|
|
3929
|
+
export declare interface F0FormRef {
|
|
3930
|
+
/**
|
|
3931
|
+
* Programmatically submit the form.
|
|
3932
|
+
* Will only call onSubmit if validation passes.
|
|
3933
|
+
* @returns Promise that resolves when submission completes (or rejects on validation failure)
|
|
3934
|
+
*/
|
|
3935
|
+
submit: () => Promise<void>;
|
|
3936
|
+
/**
|
|
3937
|
+
* Reset the form to its default values
|
|
3938
|
+
*/
|
|
3939
|
+
reset: () => void;
|
|
3940
|
+
/**
|
|
3941
|
+
* Check if the form has unsaved changes
|
|
3942
|
+
*/
|
|
3943
|
+
isDirty: () => boolean;
|
|
3944
|
+
/* Excluded from this release type: _setStateCallback */
|
|
3905
3945
|
}
|
|
3906
3946
|
|
|
3907
3947
|
/**
|
|
@@ -3909,6 +3949,14 @@ export declare interface F0FormProps<TSchema extends z.ZodObject<ZodRawShape>> {
|
|
|
3909
3949
|
*/
|
|
3910
3950
|
export declare type F0FormSchema<T extends Record<string, ZodTypeAny>> = z.ZodObject<T>;
|
|
3911
3951
|
|
|
3952
|
+
/**
|
|
3953
|
+
* Callback to update form state in the hook
|
|
3954
|
+
*/
|
|
3955
|
+
declare type F0FormStateCallback = (state: {
|
|
3956
|
+
isSubmitting: boolean;
|
|
3957
|
+
hasErrors: boolean;
|
|
3958
|
+
}) => void;
|
|
3959
|
+
|
|
3912
3960
|
/**
|
|
3913
3961
|
* Styling configuration for the form layout and appearance
|
|
3914
3962
|
*/
|
|
@@ -7256,6 +7304,79 @@ export declare const useEmojiConfetti: () => {
|
|
|
7256
7304
|
|
|
7257
7305
|
export declare const useF0Dialog: () => F0DialogContextType;
|
|
7258
7306
|
|
|
7307
|
+
/**
|
|
7308
|
+
* Hook to control F0Form programmatically.
|
|
7309
|
+
*
|
|
7310
|
+
* Useful when you need to submit the form from outside the component,
|
|
7311
|
+
* such as when the form is inside a dialog and the submit button is
|
|
7312
|
+
* in the dialog's footer.
|
|
7313
|
+
*
|
|
7314
|
+
* @example
|
|
7315
|
+
* ```tsx
|
|
7316
|
+
* import { useF0Form, F0Form } from "@factorialco/factorial-one/experimental"
|
|
7317
|
+
*
|
|
7318
|
+
* function FormInDialog() {
|
|
7319
|
+
* const { formRef, submit } = useF0Form()
|
|
7320
|
+
* const [open, setOpen] = useState(false)
|
|
7321
|
+
*
|
|
7322
|
+
* return (
|
|
7323
|
+
* <Dialog open={open} onOpenChange={setOpen}>
|
|
7324
|
+
* <DialogContent>
|
|
7325
|
+
* <F0Form
|
|
7326
|
+
* formRef={formRef}
|
|
7327
|
+
* name="my-form"
|
|
7328
|
+
* schema={schema}
|
|
7329
|
+
* defaultValues={defaultValues}
|
|
7330
|
+
* onSubmit={async (data) => {
|
|
7331
|
+
* // Handle submission
|
|
7332
|
+
* setOpen(false)
|
|
7333
|
+
* return { success: true }
|
|
7334
|
+
* }}
|
|
7335
|
+
* />
|
|
7336
|
+
* <DialogFooter>
|
|
7337
|
+
* <Button onClick={() => setOpen(false)}>Cancel</Button>
|
|
7338
|
+
* <Button onClick={submit}>Save</Button>
|
|
7339
|
+
* </DialogFooter>
|
|
7340
|
+
* </DialogContent>
|
|
7341
|
+
* </Dialog>
|
|
7342
|
+
* )
|
|
7343
|
+
* }
|
|
7344
|
+
* ```
|
|
7345
|
+
*/
|
|
7346
|
+
export declare function useF0Form(): UseF0FormReturn;
|
|
7347
|
+
|
|
7348
|
+
/**
|
|
7349
|
+
* Return type for the useF0Form hook
|
|
7350
|
+
*/
|
|
7351
|
+
export declare interface UseF0FormReturn {
|
|
7352
|
+
/**
|
|
7353
|
+
* Ref to pass to the F0Form component's `formRef` prop
|
|
7354
|
+
*/
|
|
7355
|
+
formRef: React.MutableRefObject<F0FormRef | null>;
|
|
7356
|
+
/**
|
|
7357
|
+
* Programmatically submit the form.
|
|
7358
|
+
* Will only trigger onSubmit if all validations pass.
|
|
7359
|
+
* @returns Promise that resolves when submission completes
|
|
7360
|
+
*/
|
|
7361
|
+
submit: () => Promise<void>;
|
|
7362
|
+
/**
|
|
7363
|
+
* Reset the form to its default values
|
|
7364
|
+
*/
|
|
7365
|
+
reset: () => void;
|
|
7366
|
+
/**
|
|
7367
|
+
* Check if the form has unsaved changes
|
|
7368
|
+
*/
|
|
7369
|
+
isDirty: () => boolean;
|
|
7370
|
+
/**
|
|
7371
|
+
* Whether the form is currently submitting
|
|
7372
|
+
*/
|
|
7373
|
+
isSubmitting: boolean;
|
|
7374
|
+
/**
|
|
7375
|
+
* Whether the form has validation errors
|
|
7376
|
+
*/
|
|
7377
|
+
hasErrors: boolean;
|
|
7378
|
+
}
|
|
7379
|
+
|
|
7259
7380
|
export declare const useGroups: <R extends RecordType>(groups: GroupRecord<R>[], defaultOpenGroups?: boolean | GroupRecord<R>["key"][]) => {
|
|
7260
7381
|
openGroups: Record<string, boolean>;
|
|
7261
7382
|
setGroupOpen: (key: string, open: boolean) => void;
|
|
@@ -7555,11 +7676,6 @@ declare module "gridstack" {
|
|
|
7555
7676
|
}
|
|
7556
7677
|
|
|
7557
7678
|
|
|
7558
|
-
declare namespace Calendar {
|
|
7559
|
-
var displayName: string;
|
|
7560
|
-
}
|
|
7561
|
-
|
|
7562
|
-
|
|
7563
7679
|
declare module "@tiptap/core" {
|
|
7564
7680
|
interface Commands<ReturnType> {
|
|
7565
7681
|
aiBlock: {
|
|
@@ -7596,3 +7712,8 @@ declare module "@tiptap/core" {
|
|
|
7596
7712
|
};
|
|
7597
7713
|
}
|
|
7598
7714
|
}
|
|
7715
|
+
|
|
7716
|
+
|
|
7717
|
+
declare namespace Calendar {
|
|
7718
|
+
var displayName: string;
|
|
7719
|
+
}
|