@factorialco/f0-react 1.233.0 → 1.233.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/experimental.d.ts +5 -4
- package/dist/experimental.js +13 -8
- package/dist/f0.d.ts +5 -4
- package/dist/f0.js +2 -2
- package/dist/{hooks-DQfZZiUS.js → hooks-D5bAC8zc.js} +9416 -9409
- package/dist/styles.css +1 -1
- package/package.json +1 -1
package/dist/experimental.d.ts
CHANGED
|
@@ -524,6 +524,7 @@ export declare type BaseBannerProps = {
|
|
|
524
524
|
onClose?: () => void;
|
|
525
525
|
isLoading?: boolean;
|
|
526
526
|
children?: React.ReactNode;
|
|
527
|
+
variant?: "default" | "full-width";
|
|
527
528
|
};
|
|
528
529
|
|
|
529
530
|
export declare const BaseCelebration: ({ link, firstName, lastName, src, onClick, canReact, lastEmojiReaction, onReactionSelect, type, typeLabel, date, }: CelebrationProps) => JSX_2.Element;
|
|
@@ -5136,8 +5137,8 @@ declare global {
|
|
|
5136
5137
|
|
|
5137
5138
|
declare module "@tiptap/core" {
|
|
5138
5139
|
interface Commands<ReturnType> {
|
|
5139
|
-
|
|
5140
|
-
|
|
5140
|
+
aiBlock: {
|
|
5141
|
+
insertAIBlock: (data: AIBlockData, config: AIBlockConfigWithLabels) => ReturnType;
|
|
5141
5142
|
};
|
|
5142
5143
|
}
|
|
5143
5144
|
}
|
|
@@ -5145,8 +5146,8 @@ declare module "@tiptap/core" {
|
|
|
5145
5146
|
|
|
5146
5147
|
declare module "@tiptap/core" {
|
|
5147
5148
|
interface Commands<ReturnType> {
|
|
5148
|
-
|
|
5149
|
-
|
|
5149
|
+
liveCompanion: {
|
|
5150
|
+
insertLiveCompanion: (data: LiveCompanionData, config?: LiveCompanionConfig) => ReturnType;
|
|
5150
5151
|
};
|
|
5151
5152
|
}
|
|
5152
5153
|
}
|
package/dist/experimental.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { aN as n6, aO as i6, aP as wy, aQ as bl, aR as ZC, aS as QC, aT as XC, aU as r1, aV as eS, aW as tS, aX as nS, aY as ue, aZ as r6, a_ as iS, a$ as rS, b0 as sS, b1 as lo, b2 as $a, b3 as Gc, b4 as s6, b5 as Kl, b6 as oS, b7 as s1, b8 as aS, b9 as lS, ba as Gl, bb as cS, bc as dS, bd as fS, be as _y, bf as uS, bg as Cy, bh as hS, bi as o6, bj as a6, bk as pS, bl as jo, q as Wt, a as T, bm as Vo, P as Zt, bn as Jt, s as we, k as mt, y as pe, bo as Ef, bp as l6, L as Xi, bq as He, $ as c6, w as Oi, x as ti, br as Qe, bs as d6, c as Am, bt as Om, bu as kl, bv as Ho, bw as Jc, aJ as zs, bx as Dh, by as qr, bz as Yc, bA as Zc, bB as mS, n as Mf, bC as f6, bD as ie, bE as Fi, bF as bt, bG as u6, bH as h6, t as Tf, f as gS, bI as yS, bJ as vS, bK as bS, g as Sy, bL as Ny, bM as kS, bN as xS, bO as ai, ac as Qc, az as Ly, bP as $s, bQ as Im, bR as un, bS as Ey, bT as Rh, bU as Qt, bV as or, bW as p6, bX as Fh, bY as wS, bZ as _S, b_ as Bt, b$ as CS, c0 as SS, c1 as NS, c2 as LS, c3 as ES, c4 as MS, c5 as TS, c6 as Cs, S as ni, c7 as Af, c8 as m6, at as AS, av as g6, aq as y6, c9 as v6, aw as Of, ca as Dm, a0 as xl, r as ar, cb as OS, a9 as Pi, cc as vn, cd as If, ce as ja, cf as IS, cg as b6, ch as DS, i as Df, j as Rf, l as Ff, ci as Rm, cj as RS, C as $n, ck as k6, cl as FS, cm as x6, cn as PS, G as BS, co as w6, cp as Ph, cq as _6, a6 as Xc, cr as zS, cs as $S, ct as jS, cu as VS, cv as HS, aK as Pf, a3 as Bh, F as Fm, aM as WS, cw as Qn, aL as qS, cx as C6, cy as hn, cz as US, cA as KS, cB as Mn, cC as ed, cD as S6, ah as Bf, a7 as Pm, am as Ss, cE as zf, cF as Bm, cG as N6, cH as GS, aa as JS, a2 as L6, cI as zm, cJ as YS, cK as ZS, cL as QS, D as E6, u as M6, cM as T6, cN as rs, cO as XS, cP as My, cQ as eN, cR as tN, cS as nN, cT as $f, K as iN, m as rN, cU as zh, cV as sN, cW as oN, cX as aN, cY as lN, cZ as cN, c_ as dN, c$ as fN, d0 as uN, d1 as hN, d2 as pN, d3 as mN, d4 as gN, p as yN, ao as vN, d5 as A6, d6 as jf, v as $h, d7 as Ty, Z as O6, d8 as wl, d9 as I6, da as D6, db as bN, a1 as Wo, a4 as R6, I as kN, dc as xN, ar as wN, ay as Vf, z as Hf, dd as Wf, de as qf, E as Uf, ax as F6, ab as $m, df as _N, aD as CN, dg as jh, dh as SN, di as td, dj as NN, as as nd, aE as LN, dk as EN, aC as P6, dl as MN, aB as TN, aA as AN, dm as ON, dn as wt, dp as Ay, dq as IN, dr as DN, ds as RN, dt as o1, du as FN, dv as PN, dw as BN, ad as zN, dx as $N, dy as jN, dz as VN, a5 as HN, dA as _l, dB as jm, dC as Vm, dD as Cl, dE as B6, dF as WN, dG as z6, dH as qN, aF as $6, dI as j6, ae as V6, dJ as UN, dK as KN, dL as GN, H as JN, A as YN, B as ZN, d as QN, e as XN, V as eL, b as tL, dM as Oy, dN as nL, dO as iL, dP as rL, dQ as H6, dR as sL } from "./hooks-
|
|
2
|
-
import { J as bae, dT as kae, a8 as xae, dS as wae } from "./hooks-
|
|
1
|
+
import { aN as n6, aO as i6, aP as wy, aQ as bl, aR as ZC, aS as QC, aT as XC, aU as r1, aV as eS, aW as tS, aX as nS, aY as ue, aZ as r6, a_ as iS, a$ as rS, b0 as sS, b1 as lo, b2 as $a, b3 as Gc, b4 as s6, b5 as Kl, b6 as oS, b7 as s1, b8 as aS, b9 as lS, ba as Gl, bb as cS, bc as dS, bd as fS, be as _y, bf as uS, bg as Cy, bh as hS, bi as o6, bj as a6, bk as pS, bl as jo, q as Wt, a as T, bm as Vo, P as Zt, bn as Jt, s as we, k as mt, y as pe, bo as Ef, bp as l6, L as Xi, bq as He, $ as c6, w as Oi, x as ti, br as Qe, bs as d6, c as Am, bt as Om, bu as kl, bv as Ho, bw as Jc, aJ as zs, bx as Dh, by as qr, bz as Yc, bA as Zc, bB as mS, n as Mf, bC as f6, bD as ie, bE as Fi, bF as bt, bG as u6, bH as h6, t as Tf, f as gS, bI as yS, bJ as vS, bK as bS, g as Sy, bL as Ny, bM as kS, bN as xS, bO as ai, ac as Qc, az as Ly, bP as $s, bQ as Im, bR as un, bS as Ey, bT as Rh, bU as Qt, bV as or, bW as p6, bX as Fh, bY as wS, bZ as _S, b_ as Bt, b$ as CS, c0 as SS, c1 as NS, c2 as LS, c3 as ES, c4 as MS, c5 as TS, c6 as Cs, S as ni, c7 as Af, c8 as m6, at as AS, av as g6, aq as y6, c9 as v6, aw as Of, ca as Dm, a0 as xl, r as ar, cb as OS, a9 as Pi, cc as vn, cd as If, ce as ja, cf as IS, cg as b6, ch as DS, i as Df, j as Rf, l as Ff, ci as Rm, cj as RS, C as $n, ck as k6, cl as FS, cm as x6, cn as PS, G as BS, co as w6, cp as Ph, cq as _6, a6 as Xc, cr as zS, cs as $S, ct as jS, cu as VS, cv as HS, aK as Pf, a3 as Bh, F as Fm, aM as WS, cw as Qn, aL as qS, cx as C6, cy as hn, cz as US, cA as KS, cB as Mn, cC as ed, cD as S6, ah as Bf, a7 as Pm, am as Ss, cE as zf, cF as Bm, cG as N6, cH as GS, aa as JS, a2 as L6, cI as zm, cJ as YS, cK as ZS, cL as QS, D as E6, u as M6, cM as T6, cN as rs, cO as XS, cP as My, cQ as eN, cR as tN, cS as nN, cT as $f, K as iN, m as rN, cU as zh, cV as sN, cW as oN, cX as aN, cY as lN, cZ as cN, c_ as dN, c$ as fN, d0 as uN, d1 as hN, d2 as pN, d3 as mN, d4 as gN, p as yN, ao as vN, d5 as A6, d6 as jf, v as $h, d7 as Ty, Z as O6, d8 as wl, d9 as I6, da as D6, db as bN, a1 as Wo, a4 as R6, I as kN, dc as xN, ar as wN, ay as Vf, z as Hf, dd as Wf, de as qf, E as Uf, ax as F6, ab as $m, df as _N, aD as CN, dg as jh, dh as SN, di as td, dj as NN, as as nd, aE as LN, dk as EN, aC as P6, dl as MN, aB as TN, aA as AN, dm as ON, dn as wt, dp as Ay, dq as IN, dr as DN, ds as RN, dt as o1, du as FN, dv as PN, dw as BN, ad as zN, dx as $N, dy as jN, dz as VN, a5 as HN, dA as _l, dB as jm, dC as Vm, dD as Cl, dE as B6, dF as WN, dG as z6, dH as qN, aF as $6, dI as j6, ae as V6, dJ as UN, dK as KN, dL as GN, H as JN, A as YN, B as ZN, d as QN, e as XN, V as eL, b as tL, dM as Oy, dN as nL, dO as iL, dP as rL, dQ as H6, dR as sL } from "./hooks-D5bAC8zc.js";
|
|
2
|
+
import { J as bae, dT as kae, a8 as xae, dS as wae } from "./hooks-D5bAC8zc.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 ee, { forwardRef as K, createContext as li, useRef as me, useState as V, useCallback as Be, useContext as pn, useMemo as ae, useEffect as se, PureComponent as oL, useId as Ur, useLayoutEffect as Kf, memo as Sl, Fragment as Pr, useTransition as aL, isValidElement as W6, cloneElement as Hm, useDebugValue as q6, createRef as lL, createElement as cL, version as Iy, useImperativeHandle as Gf, Children as U6 } from "react";
|
|
@@ -28331,7 +28331,7 @@ const aW = {
|
|
|
28331
28331
|
fit: 1
|
|
28332
28332
|
}, lW = (t) => typeof t == "number", J7 = (t) => lW(t) ? t : aW[t];
|
|
28333
28333
|
function Li({ children: t, href: e, onClick: n, width: i = "auto", firstCell: r = !1, sticky: s, colSpan: o, className: a }) {
|
|
28334
|
-
const { isScrolled: l, isScrolledRight: c } = K7(), { actions: d } = He(), u = (s == null ? void 0 : s.left) !== void 0, h = (s == null ? void 0 : s.right) !== void 0, p = u || h, m = s == null ? void 0 : s.left, g = s == null ? void 0 : s.right, y = J7(i);
|
|
28334
|
+
const { isScrolled: l, isScrolledRight: c } = K7(), { actions: d } = He(), u = (s == null ? void 0 : s.left) !== void 0, h = (s == null ? void 0 : s.right) !== void 0, p = u || h, m = s == null ? void 0 : s.left, g = s == null ? void 0 : s.right, y = J7(i), v = me(null);
|
|
28335
28335
|
return b(U7, {
|
|
28336
28336
|
colSpan: o,
|
|
28337
28337
|
className: T(r && "peer font-medium", p && l && "bg-f1-background before:absolute before:inset-0 before:z-[-1] before:h-[calc(100%-1px)] before:w-full before:bg-f1-background before:transition-all before:content-[''] after:absolute after:inset-x-0 after:bottom-0 after:h-px after:w-full after:bg-f1-border-secondary after:content-[''] group-hover:before:bg-f1-background-hover", p && "sticky z-10", h && "bg-f1-background before:absolute before:inset-0 before:z-[-1] before:h-[calc(100%-1px)] before:w-full before:bg-f1-background before:transition-all before:content-[''] after:absolute after:inset-x-0 after:bottom-0 after:h-px after:w-full after:bg-f1-border-secondary after:content-[''] group-hover:before:bg-f1-background-hover", a),
|
|
@@ -28359,11 +28359,16 @@ function Li({ children: t, href: e, onClick: n, width: i = "auto", firstCell: r
|
|
|
28359
28359
|
className: T("[&:has([role=checkbox])]:relative [&:has([role=checkbox])]:z-[1]", "[&:has([type=button])]:relative [&:has([type=button])]:z-[1]", "[&:has(a)]:relative [&:has(a)]:z-[1]", "pointer-events-none"),
|
|
28360
28360
|
children: f("div", {
|
|
28361
28361
|
className: (T(i !== "auto" && "overflow-hidden"), "relative z-[1]"),
|
|
28362
|
+
onClick: () => {
|
|
28363
|
+
var w;
|
|
28364
|
+
(w = v.current) == null || w.click(), n == null || n();
|
|
28365
|
+
},
|
|
28362
28366
|
children: t
|
|
28363
28367
|
})
|
|
28364
28368
|
}), e && f(vn, {
|
|
28369
|
+
ref: v,
|
|
28365
28370
|
href: e,
|
|
28366
|
-
className: "pointer-events-auto absolute inset-0 !z-0 block
|
|
28371
|
+
className: "pointer-events-auto absolute inset-0 !z-0 block",
|
|
28367
28372
|
tabIndex: r ? void 0 : -1,
|
|
28368
28373
|
children: f("span", {
|
|
28369
28374
|
className: "sr-only",
|
|
@@ -28371,13 +28376,13 @@ function Li({ children: t, href: e, onClick: n, width: i = "auto", firstCell: r
|
|
|
28371
28376
|
})
|
|
28372
28377
|
}), n && f("button", {
|
|
28373
28378
|
type: "button",
|
|
28374
|
-
onClick: (
|
|
28375
|
-
|
|
28379
|
+
onClick: (w) => {
|
|
28380
|
+
w.stopPropagation(), n();
|
|
28376
28381
|
},
|
|
28377
28382
|
className: "table-cell-action-button absolute inset-0 !z-0 block",
|
|
28378
28383
|
tabIndex: r ? void 0 : -1,
|
|
28379
|
-
onKeyDown: (
|
|
28380
|
-
(
|
|
28384
|
+
onKeyDown: (w) => {
|
|
28385
|
+
(w.key === "Enter" || w.key === " ") && (w.preventDefault(), n());
|
|
28381
28386
|
},
|
|
28382
28387
|
children: f("span", {
|
|
28383
28388
|
className: "sr-only",
|
package/dist/f0.d.ts
CHANGED
|
@@ -293,6 +293,7 @@ declare type BaseBannerProps = {
|
|
|
293
293
|
onClose?: () => void;
|
|
294
294
|
isLoading?: boolean;
|
|
295
295
|
children?: React.ReactNode;
|
|
296
|
+
variant?: "default" | "full-width";
|
|
296
297
|
};
|
|
297
298
|
|
|
298
299
|
declare interface BaseChipProps extends VariantProps<typeof chipVariants> {
|
|
@@ -3381,8 +3382,8 @@ declare global {
|
|
|
3381
3382
|
|
|
3382
3383
|
declare module "@tiptap/core" {
|
|
3383
3384
|
interface Commands<ReturnType> {
|
|
3384
|
-
|
|
3385
|
-
|
|
3385
|
+
aiBlock: {
|
|
3386
|
+
insertAIBlock: (data: AIBlockData, config: AIBlockConfigWithLabels) => ReturnType;
|
|
3386
3387
|
};
|
|
3387
3388
|
}
|
|
3388
3389
|
}
|
|
@@ -3390,8 +3391,8 @@ declare module "@tiptap/core" {
|
|
|
3390
3391
|
|
|
3391
3392
|
declare module "@tiptap/core" {
|
|
3392
3393
|
interface Commands<ReturnType> {
|
|
3393
|
-
|
|
3394
|
-
|
|
3394
|
+
liveCompanion: {
|
|
3395
|
+
insertLiveCompanion: (data: LiveCompanionData, config?: LiveCompanionConfig) => ReturnType;
|
|
3395
3396
|
};
|
|
3396
3397
|
}
|
|
3397
3398
|
}
|
package/dist/f0.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { C as g, L as ge, c as ve, P as G, a as b, f as be, g as z, A as xe, B as Ce, b as ye, d as we, e as Ne, V as Pe, h as M, i as H, j as U, k as Le, l as J, S as Y, m as X, n as Se, O as Fe, o as K, p as ke, q as De, F as Q, r as Me, s as Te, t as Ie, D as Re, u as Be, v as Oe, w as $e, x as Z, y as w, U as ee, z as Ee, E as _e, G as V, H as je, I as ae, J as ze, K as Ve, M as Ae, N as qe, Q as We, R as Ge, X as He, T as Ue, W as Je, Y as Ye, Z as Xe, _ as Ke } from "./hooks-
|
|
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 Pr, au as Lr, ax as Sr, at as Fr, aL as kr, as as Dr, 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-
|
|
1
|
+
import { C as g, L as ge, c as ve, P as G, a as b, f as be, g as z, A as xe, B as Ce, b as ye, d as we, e as Ne, V as Pe, h as M, i as H, j as U, k as Le, l as J, S as Y, m as X, n as Se, O as Fe, o as K, p as ke, q as De, F as Q, r as Me, s as Te, t as Ie, D as Re, u as Be, v as Oe, w as $e, x as Z, y as w, U as ee, z as Ee, E as _e, G as V, H as je, I as ae, J as ze, K as Ve, M as Ae, N as qe, Q as We, R as Ge, X as He, T as Ue, W as Je, Y as Ye, Z as Xe, _ as Ke } from "./hooks-D5bAC8zc.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 Pr, au as Lr, ax as Sr, at as Fr, aL as kr, as as Dr, 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-D5bAC8zc.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 re, useImperativeHandle as Ze, Children as ea, useEffect as se, createContext as aa } from "react";
|