@factorialco/f0-react 4.9.0 → 4.9.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/ai.d.ts CHANGED
@@ -3310,6 +3310,14 @@ declare type F0AvatarTeamProps = {
3310
3310
  /**
3311
3311
  * Shared inline card rendered in the AI chat for any canvas entity.
3312
3312
  * Shows an avatar, title, optional description, and a configurable action button.
3313
+ *
3314
+ * @deprecated Being replaced by `F0CardHorizontal` (`@/experimental/F0CardHorizontal`).
3315
+ * The co-creation flow already renders these cards with `F0CardHorizontal` directly
3316
+ * (Open/Close → `primaryAction`; superseded → a faded `opacity-50 pointer-events-none`
3317
+ * wrapper). Don't add new usages; migrate the remaining one
3318
+ * (`F0AiMessagesContainer/FormCard`) once its inline `children` preview has an
3319
+ * `F0CardHorizontal`-friendly home.
3320
+ * @removeIn 5.0.0
3313
3321
  */
3314
3322
  export declare function F0CanvasCard({ avatar, title, description, isActive, action, children, }: F0CanvasCardProps): JSX_2.Element;
3315
3323
 
@@ -3317,6 +3325,10 @@ export declare namespace F0CanvasCard {
3317
3325
  var displayName: string;
3318
3326
  }
3319
3327
 
3328
+ /**
3329
+ * @deprecated Being replaced by `F0CardHorizontal`. See {@link F0CanvasCard}.
3330
+ * @removeIn 5.0.0
3331
+ */
3320
3332
  export declare type F0CanvasCardProps = {
3321
3333
  /** Avatar to display: a module icon or a file-type badge */
3322
3334
  avatar?: CanvasCardAvatar;
@@ -3491,6 +3503,14 @@ declare type F0FileItemSize = (typeof f0FileItemSizes)[number];
3491
3503
 
3492
3504
  declare const f0FileItemSizes: readonly ["md", "lg"];
3493
3505
 
3506
+ /**
3507
+ * @deprecated Being replaced by `F0CardHorizontal` (`@/experimental/F0CardHorizontal`),
3508
+ * which this component already wraps. Use `F0CardHorizontal` directly: `confirmAction` /
3509
+ * `rejectAction` for the pending state, `status` for the resolved outcome, and
3510
+ * `secondaryActions` for a single CTA. The co-creation flow no longer uses this component —
3511
+ * don't add new usages.
3512
+ * @removeIn 5.0.0
3513
+ */
3494
3514
  export declare const F0HILActionConfirmation: ({ text, description, avatar, confirmationText, onConfirm, cancelText, onCancel, stackAt, }: F0HILActionConfirmationProps) => JSX_2.Element;
3495
3515
 
3496
3516
  /**
@@ -3499,6 +3519,9 @@ export declare const F0HILActionConfirmation: ({ text, description, avatar, conf
3499
3519
  * Renders an inline approve/reject row built on `F0CardHorizontal`'s confirm/reject
3500
3520
  * variant: the prompt as the row title, with icon-only ✓ (confirm) and ✗
3501
3521
  * (reject) buttons at the trailing edge.
3522
+ *
3523
+ * @deprecated Being replaced by `F0CardHorizontal`. See {@link F0HILActionConfirmation}.
3524
+ * @removeIn 5.0.0
3502
3525
  */
3503
3526
  export declare type F0HILActionConfirmationProps = {
3504
3527
  /**
@@ -2,8 +2,8 @@ import { h as Ca, B as ka, i as Ia, j as Sa, k as zt, l as Me, m as Be, n as Fa,
2
2
  import { c6 as pd, c5 as bd, ci as xd, c2 as vd, c3 as yd, bW as wd, bX as Nd, cl as Cd, bY as kd, bZ as Id, cm as Sd, c4 as Fd, ce as Ad, cf as Ld, cj as Od, b_ as Pd, c8 as Ed, c7 as _d, b$ as Dd, c0 as Td, cg as zd, cn as Bd, ch as Rd, ck as $d, cd as Md, ca as jd, cc as Wd, c9 as Vd, c1 as Ud, cb as Hd } from "./F0CanvasPanel-B-6B9ckI.js";
3
3
  import { jsx as t, jsxs as o, Fragment as X } from "react/jsx-runtime";
4
4
  import ue, { forwardRef as K, useRef as W, useTransition as fi, useState as E, useLayoutEffect as Mn, useId as bt, useContext as Ne, createContext as _e, useEffect as j, useCallback as ne, useMemo as G, Fragment as mi, isValidElement as hi, cloneElement as jn, Children as Wn } from "react";
5
- import { C as gi, P as pi, a as Vn, M as bi, p as xi, b as vi, R as Wt, c as Un, u as yi, d as wi, e as Ni, f as Ci, g as ki, h as Hn, S as Ii, A as Si, B as Fi, L as Ai, i as Li, V as Oi, j as Pi, k as Ei, l as _i, O as Di } from "./useDataCollectionSource-Cs0H4TUr.js";
6
- import { r as Kd, s as qd, o as Yd, H as Jd, t as Zd, z as Xd, a8 as Qd, G as eu, q as tu, aa as nu, a9 as au, Q as ru, ad as iu, F as su, Y as lu, U as ou, J as cu, af as du, K as uu, Z as fu, _ as mu, v as hu, ab as gu, ac as pu, N as bu, $ as xu, a5 as vu, a7 as yu, w as wu, y as Nu, D as Cu, W as ku, ae as Iu, X as Su, T as Fu, ag as Au, x as Lu, E as Ou, m as Pu, n as Eu, a1 as _u, a2 as Du, a6 as Tu, I as zu, a3 as Bu, a0 as Ru, a4 as $u } from "./useDataCollectionSource-Cs0H4TUr.js";
5
+ import { C as gi, P as pi, a as Vn, M as bi, p as xi, b as vi, R as Wt, c as Un, u as yi, d as wi, e as Ni, f as Ci, g as ki, h as Hn, S as Ii, A as Si, B as Fi, L as Ai, i as Li, V as Oi, j as Pi, k as Ei, l as _i, O as Di } from "./useDataCollectionSource-u42jSFpK.js";
6
+ import { r as Kd, s as qd, o as Yd, H as Jd, t as Zd, z as Xd, a8 as Qd, G as eu, q as tu, aa as nu, a9 as au, Q as ru, ad as iu, F as su, Y as lu, U as ou, J as cu, af as du, K as uu, Z as fu, _ as mu, v as hu, ab as gu, ac as pu, N as bu, $ as xu, a5 as vu, a7 as yu, w as wu, y as Nu, D as Cu, W as ku, ae as Iu, X as Su, T as Fu, ag as Au, x as Lu, E as Ou, m as Pu, n as Eu, a1 as _u, a2 as Du, a6 as Tu, I as zu, a3 as Bu, a0 as Ru, a4 as $u } from "./useDataCollectionSource-u42jSFpK.js";
7
7
  const Ti = Ca("Search", [
8
8
  ["circle", { cx: "11", cy: "11", r: "8", key: "4ej97u" }],
9
9
  ["path", { d: "m21 21-4.3-4.3", key: "1qie3q" }]
package/dist/f0.d.ts CHANGED
@@ -7323,6 +7323,14 @@ export declare type F0ButtonToggleProps = Omit<F0ButtonToggleInternalProps, (typ
7323
7323
  /**
7324
7324
  * Shared inline card rendered in the AI chat for any canvas entity.
7325
7325
  * Shows an avatar, title, optional description, and a configurable action button.
7326
+ *
7327
+ * @deprecated Being replaced by `F0CardHorizontal` (`@/experimental/F0CardHorizontal`).
7328
+ * The co-creation flow already renders these cards with `F0CardHorizontal` directly
7329
+ * (Open/Close → `primaryAction`; superseded → a faded `opacity-50 pointer-events-none`
7330
+ * wrapper). Don't add new usages; migrate the remaining one
7331
+ * (`F0AiMessagesContainer/FormCard`) once its inline `children` preview has an
7332
+ * `F0CardHorizontal`-friendly home.
7333
+ * @removeIn 5.0.0
7326
7334
  */
7327
7335
  export declare function F0CanvasCard({ avatar, title, description, isActive, action, children, }: F0CanvasCardProps): JSX_2.Element;
7328
7336
 
@@ -7330,6 +7338,10 @@ export declare namespace F0CanvasCard {
7330
7338
  var displayName: string;
7331
7339
  }
7332
7340
 
7341
+ /**
7342
+ * @deprecated Being replaced by `F0CardHorizontal`. See {@link F0CanvasCard}.
7343
+ * @removeIn 5.0.0
7344
+ */
7333
7345
  export declare type F0CanvasCardProps = {
7334
7346
  /** Avatar to display: a module icon or a file-type badge */
7335
7347
  avatar?: CanvasCardAvatar;
@@ -9556,6 +9568,14 @@ export declare type F0HeadingProps = Omit<TextProps, "className" | "variant" | "
9556
9568
  as?: HeadingTags;
9557
9569
  };
9558
9570
 
9571
+ /**
9572
+ * @deprecated Being replaced by `F0CardHorizontal` (`@/experimental/F0CardHorizontal`),
9573
+ * which this component already wraps. Use `F0CardHorizontal` directly: `confirmAction` /
9574
+ * `rejectAction` for the pending state, `status` for the resolved outcome, and
9575
+ * `secondaryActions` for a single CTA. The co-creation flow no longer uses this component —
9576
+ * don't add new usages.
9577
+ * @removeIn 5.0.0
9578
+ */
9559
9579
  export declare const F0HILActionConfirmation: ({ text, description, avatar, confirmationText, onConfirm, cancelText, onCancel, stackAt, }: F0HILActionConfirmationProps) => JSX_2.Element;
9560
9580
 
9561
9581
  /**
@@ -9564,6 +9584,9 @@ export declare const F0HILActionConfirmation: ({ text, description, avatar, conf
9564
9584
  * Renders an inline approve/reject row built on `F0CardHorizontal`'s confirm/reject
9565
9585
  * variant: the prompt as the row title, with icon-only ✓ (confirm) and ✗
9566
9586
  * (reject) buttons at the trailing edge.
9587
+ *
9588
+ * @deprecated Being replaced by `F0CardHorizontal`. See {@link F0HILActionConfirmation}.
9589
+ * @removeIn 5.0.0
9567
9590
  */
9568
9591
  export declare type F0HILActionConfirmationProps = {
9569
9592
  /**
package/dist/f0.js CHANGED
@@ -6,8 +6,8 @@ import xt, { forwardRef as sr, useRef as re, useImperativeHandle as cH, Children
6
6
  import { z as hH, B as vH, C as pH, D as gH, E as $2, G as Sv, H as lw, I as U2, J as Y2, K as bi, L as mH, M as yH, N as bH, O as xH, P as _H, F as wH } from "./F0AiProcessingOverlay-B8K7o_Ei.js";
7
7
  import { A as pye, s as gye, t as mye, w as yye, l as bye, i as xye, q as _ye, x as wye, y as Sye, p as Cye, r as Tye, j as Dye, e as Aye, g as Mye, k as Eye, h as Lye, a as Nye, n as Iye, m as Rye, o as kye, b as Pye, f as Oye, v as Bye, c as zye, d as Vye, u as Fye } from "./F0AiProcessingOverlay-B8K7o_Ei.js";
8
8
  import { createPortal as Qf, unstable_batchedUpdates as Sd } from "react-dom";
9
- import { C as SH, F as X2, ah as q2, ai as CH, aj as TH, ak as DH, al as ng, am as ig, G as AH, an as MH, ao as va, Y as EH, a8 as LH, ap as NH, Q as IH, aq as RH, ar as kH, c as ag, R as uw, u as cw, W as Z2, O as fw, as as j2, at as mC, au as dw, o as PH, d as K2, $ as Q2, av as OH, aw as BH, ax as zH, ay as VH, az as FH, M as GH } from "./useDataCollectionSource-Cs0H4TUr.js";
10
- import { r as Hye, s as Wye, H as $ye, t as Uye, z as Yye, aQ as Xye, aP as qye, aL as Zye, aB as jye, aA as Kye, aC as Qye, aD as Jye, aa as e0e, a9 as t0e, ad as r0e, U as n0e, J as i0e, af as a0e, K as o0e, v as s0e, aR as l0e, ab as u0e, ac as c0e, N as f0e, w as d0e, P as h0e, y as v0e, D as p0e, ae as g0e, T as m0e, ag as y0e, x as b0e, E as x0e, aT as _0e, m as w0e, n as S0e, aK as C0e, aG as T0e, aF as D0e, aS as A0e, a6 as M0e, aI as E0e, aJ as L0e, I as N0e, aU as I0e, aV as R0e, e as k0e, aM as P0e, aN as O0e, aO as B0e, aH as z0e, f as V0e, h as F0e, aE as G0e, aW as H0e } from "./useDataCollectionSource-Cs0H4TUr.js";
9
+ import { C as SH, F as X2, ah as q2, ai as CH, aj as TH, ak as DH, al as ng, am as ig, G as AH, an as MH, ao as va, Y as EH, a8 as LH, ap as NH, Q as IH, aq as RH, ar as kH, c as ag, R as uw, u as cw, W as Z2, O as fw, as as j2, at as mC, au as dw, o as PH, d as K2, $ as Q2, av as OH, aw as BH, ax as zH, ay as VH, az as FH, M as GH } from "./useDataCollectionSource-u42jSFpK.js";
10
+ import { r as Hye, s as Wye, H as $ye, t as Uye, z as Yye, aQ as Xye, aP as qye, aL as Zye, aB as jye, aA as Kye, aC as Qye, aD as Jye, aa as e0e, a9 as t0e, ad as r0e, U as n0e, J as i0e, af as a0e, K as o0e, v as s0e, aR as l0e, ab as u0e, ac as c0e, N as f0e, w as d0e, P as h0e, y as v0e, D as p0e, ae as g0e, T as m0e, ag as y0e, x as b0e, E as x0e, aT as _0e, m as w0e, n as S0e, aK as C0e, aG as T0e, aF as D0e, aS as A0e, a6 as M0e, aI as E0e, aJ as L0e, I as N0e, aU as I0e, aV as R0e, e as k0e, aM as P0e, aN as O0e, aO as B0e, aH as z0e, f as V0e, h as F0e, aE as G0e, aW as H0e } from "./useDataCollectionSource-u42jSFpK.js";
11
11
  import { utils as Fl, write as J2 } from "./xlsx-Bedf3nwD.js";
12
12
  import { defaultTranslations as $0e } from "./i18n-provider-defaults.js";
13
13
  import './f0.css';const HH = {