@factorialco/f0-react 1.445.3 → 1.447.0

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
@@ -2562,11 +2562,6 @@ declare module "gridstack" {
2562
2562
  }
2563
2563
 
2564
2564
 
2565
- declare namespace Calendar {
2566
- var displayName: string;
2567
- }
2568
-
2569
-
2570
2565
  declare module "@tiptap/core" {
2571
2566
  interface Commands<ReturnType> {
2572
2567
  aiBlock: {
@@ -2614,3 +2609,8 @@ declare module "@tiptap/core" {
2614
2609
  };
2615
2610
  }
2616
2611
  }
2612
+
2613
+
2614
+ declare namespace Calendar {
2615
+ var displayName: string;
2616
+ }
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-UzfQgZYH.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-DJw3VBYG.js";
2
2
  import { defaultTranslations as m } from "./i18n-provider-defaults.js";
3
- import { A as p, e as g, F as S, c as v, d as x, b as k, a as O, f as P, o as b, u as y } from "./types-B4KZGHc1.js";
3
+ import { A as p, e as g, F as S, c as v, d as x, b as k, a as O, f as P, o as b, u as y } from "./types-BcyYSuqx.js";
4
4
  export {
5
5
  p as AiChatTranslationsProvider,
6
6
  t as ChatSpinner,
@@ -6292,6 +6292,10 @@ export declare type SecondaryActionItem = Pick<DropdownItemObject, "label" | "ic
6292
6292
  loading?: boolean;
6293
6293
  disabled?: boolean;
6294
6294
  onClick?: () => void | Promise<void>;
6295
+ tooltip?: (params: {
6296
+ disabled: boolean;
6297
+ loading: boolean;
6298
+ }) => string | undefined;
6295
6299
  };
6296
6300
 
6297
6301
  export declare type SecondaryActionsDefinition = {
@@ -7645,11 +7649,6 @@ declare module "gridstack" {
7645
7649
  }
7646
7650
 
7647
7651
 
7648
- declare namespace Calendar {
7649
- var displayName: string;
7650
- }
7651
-
7652
-
7653
7652
  declare module "@tiptap/core" {
7654
7653
  interface Commands<ReturnType> {
7655
7654
  aiBlock: {
@@ -7697,3 +7696,8 @@ declare module "@tiptap/core" {
7697
7696
  };
7698
7697
  }
7699
7698
  }
7699
+
7700
+
7701
+ declare namespace Calendar {
7702
+ var displayName: string;
7703
+ }
@@ -1,10 +1,10 @@
1
- import { a6 as zn, a7 as Pn, a8 as Rn, a9 as $n, aa as zt, ab as Re, ac as Bn, ad as xt, ae as ot, af as je, L as h, R as K, M as be, u as oe, ag as Wn, ah as Mn, ai as jn, aj as Vn, ak as Gn, a2 as le, al as Hn, Q as ke, am as Un, an as Kn, ao as B, ap as qn, aq as Yn, J as Oe, ar as ma, as as Jn, at as Zn, N as M, au as vt, a5 as _, av as fe, aw as Xn, ax as Qn, ay as er, az as tr, aA as ar, aB as Se, aC as ha, aD as nr, aE as ve, aF as Ee, aG as rr, aH as yt, k as pa, aI as Ce, aJ as lr, aK as ga, a3 as ae, aL as $, O as ba, aM as xa, aN as sr, aO as wt, aP as pe, a4 as ee, aQ as ir, aR as or, aS as cr, aT as dr, T as ge, aU as Ke, aV as ur, aW as fr, aX as mr, aY as hr, aZ as qe, a_ as va, a$ as pr, b0 as gr, b1 as br, b2 as Ve, b3 as xr, b4 as vr, b5 as yr, b6 as wr, b7 as Nr, b8 as Cr, b9 as Ir, ba as kr, bb as Sr, bc as Ar, bd as ya, be as wa, bf as Na, bg as ct, bh as dt, bi as Ca, bj as Lr, bk as Fr, bl as Tr, bm as _r, P as Ye, bn as Nt, bo as Ia, bp as Er, bq as ka, br as Dr, bs as Or, bt as zr, bu as Ie, bv as Pr, bw as $e, bx as Pt, by as ut, bz as Rr, bA as $r, bB as Br, X as Sa, W as Wr, bC as Aa, Y as Ct, Z as Mr, bD as jr, U as It, bE as Vr, a as Gr, c as Hr, bF as Ur, bG as La, bH as Kr, bI as qr, F as Yr, bJ as Fa, bK as Ta, bL as Jr, bM as Rt, bN as Zr, bO as Xr, bP as Qr, bQ as el, bR as _a, bS as tl, bT as al, bU as nl, bV as rl, bW as ll, bX as me, bY as kt, bZ as St, b_ as At, b$ as Ea, c0 as Lt, c1 as Da, c2 as sl, c3 as il, c4 as ol, c5 as cl, c6 as dl, c7 as ul, c8 as fl, c9 as ml, ca as hl, cb as pl, cc as gl, cd as $t, ce as Bt, cf as Wt, cg as bl, ch as xl, ci as vl, cj as yl, ck as Oa, cl as wl, cm as Nl, cn as Cl } from "./F0AiChat-UzfQgZYH.js";
2
- import { cx as Ld, cw as Fd, cJ as Td, cp as _d, cq as Ed, cT as Dd, cr as Od, cv as zd, cs as Pd, cF as Rd, cG as $d, cK as Bd, cR as Wd, cS as Md, ct as jd, cz as Vd, cy as Gd, cH as Hd, co as Ud, cI as Kd, cM as qd, cN as Yd, cE as Jd, cB as Zd, cD as Xd, cA as Qd, cu as eu, cC as tu, cO as au, cP as nu, cL as ru, cQ as lu } from "./F0AiChat-UzfQgZYH.js";
1
+ import { a6 as zn, a7 as Pn, a8 as Rn, a9 as $n, aa as zt, ab as Re, ac as Bn, ad as xt, ae as ot, af as je, L as h, R as K, M as be, u as oe, ag as Wn, ah as Mn, ai as jn, aj as Vn, ak as Gn, a2 as le, al as Hn, Q as ke, am as Un, an as Kn, ao as B, ap as qn, aq as Yn, J as Oe, ar as ma, as as Jn, at as Zn, N as M, au as vt, a5 as _, av as fe, aw as Xn, ax as Qn, ay as er, az as tr, aA as ar, aB as Se, aC as ha, aD as nr, aE as ve, aF as Ee, aG as rr, aH as yt, k as pa, aI as Ce, aJ as lr, aK as ga, a3 as ae, aL as $, O as ba, aM as xa, aN as sr, aO as wt, aP as pe, a4 as ee, aQ as ir, aR as or, aS as cr, aT as dr, T as ge, aU as Ke, aV as ur, aW as fr, aX as mr, aY as hr, aZ as qe, a_ as va, a$ as pr, b0 as gr, b1 as br, b2 as Ve, b3 as xr, b4 as vr, b5 as yr, b6 as wr, b7 as Nr, b8 as Cr, b9 as Ir, ba as kr, bb as Sr, bc as Ar, bd as ya, be as wa, bf as Na, bg as ct, bh as dt, bi as Ca, bj as Lr, bk as Fr, bl as Tr, bm as _r, P as Ye, bn as Nt, bo as Ia, bp as Er, bq as ka, br as Dr, bs as Or, bt as zr, bu as Ie, bv as Pr, bw as $e, bx as Pt, by as ut, bz as Rr, bA as $r, bB as Br, X as Sa, W as Wr, bC as Aa, Y as Ct, Z as Mr, bD as jr, U as It, bE as Vr, a as Gr, c as Hr, bF as Ur, bG as La, bH as Kr, bI as qr, F as Yr, bJ as Fa, bK as Ta, bL as Jr, bM as Rt, bN as Zr, bO as Xr, bP as Qr, bQ as el, bR as _a, bS as tl, bT as al, bU as nl, bV as rl, bW as ll, bX as me, bY as kt, bZ as St, b_ as At, b$ as Ea, c0 as Lt, c1 as Da, c2 as sl, c3 as il, c4 as ol, c5 as cl, c6 as dl, c7 as ul, c8 as fl, c9 as ml, ca as hl, cb as pl, cc as gl, cd as $t, ce as Bt, cf as Wt, cg as bl, ch as xl, ci as vl, cj as yl, ck as Oa, cl as wl, cm as Nl, cn as Cl } from "./F0AiChat-DJw3VBYG.js";
2
+ import { cx as Ld, cw as Fd, cJ as Td, cp as _d, cq as Ed, cT as Dd, cr as Od, cv as zd, cs as Pd, cF as Rd, cG as $d, cK as Bd, cR as Wd, cS as Md, ct as jd, cz as Vd, cy as Gd, cH as Hd, co as Ud, cI as Kd, cM as qd, cN as Yd, cE as Jd, cB as Zd, cD as Xd, cA as Qd, cu as eu, cC as tu, cO as au, cP as nu, cL as ru, cQ as lu } from "./F0AiChat-DJw3VBYG.js";
3
3
  import { jsx as e, jsxs as o, Fragment as U } from "react/jsx-runtime";
4
4
  import * as De from "react";
5
5
  import re, { forwardRef as E, useRef as G, useTransition as Il, useState as T, useLayoutEffect as za, useContext as Je, createContext as Ft, useCallback as Q, useMemo as q, useEffect as j, useId as kl, memo as Pa, Fragment as Sl, isValidElement as Al, cloneElement as Ra, Children as $a } from "react";
6
- import { C as Ll, P as Fl, g as Ba, c as Tl, a as Wa, F as ft, f as _l, b as El, u as Ma, A as Dl, B as Ol, L as zl, d as Pl, V as Rl, e as $l, h as Mt, i as Bl, j as Wl } from "./index-axdSzbH4.js";
7
- import { m as iu, n as ou, k as cu, v as du, o as uu, t as fu, E as mu, l as hu, y as pu, M as gu, I as bu, z as xu, p as vu, G as yu, H as wu, N as Nu, J as Cu, q as Iu, s as ku, R as Su, x as Au, K as Lu, S as Fu, T as Tu, r as _u, _ as Eu, D as Du, w as Ou } from "./index-axdSzbH4.js";
6
+ import { C as Ll, P as Fl, g as Ba, c as Tl, a as Wa, F as ft, f as _l, b as El, u as Ma, A as Dl, B as Ol, L as zl, d as Pl, V as Rl, e as $l, h as Mt, i as Bl, j as Wl } from "./index-DXzcSrxG.js";
7
+ import { m as iu, n as ou, k as cu, v as du, o as uu, t as fu, E as mu, l as hu, y as pu, M as gu, I as bu, z as xu, p as vu, G as yu, H as wu, N as Nu, J as Cu, q as Iu, s as ku, R as Su, x as Au, K as Lu, S as Fu, T as Tu, r as _u, _ as Eu, D as Du, w as Ou } from "./index-DXzcSrxG.js";
8
8
  const Ml = zn("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
@@ -7724,6 +7724,9 @@ declare interface F0TimelineRowBaseProps {
7724
7724
  hideStatus?: boolean;
7725
7725
  }
7726
7726
 
7727
+ /** Item types that can be rendered inside a multitask row */
7728
+ export declare type F0TimelineRowMultitaskItemProps = F0TimelineRowTaskProps | F0TimelineRowNestedtaskProps;
7729
+
7727
7730
  /** Props for a multitask (collapsible group) timeline row */
7728
7731
  export declare interface F0TimelineRowMultitaskProps extends F0TimelineRowBaseProps {
7729
7732
  /** Number of grouped tasks */
@@ -7734,13 +7737,44 @@ export declare interface F0TimelineRowMultitaskProps extends F0TimelineRowBasePr
7734
7737
  expanded: boolean;
7735
7738
  /** Callback when multitask row expand/collapse is toggled */
7736
7739
  onExpandToggle: () => void;
7737
- /** The subtask items to render when expanded */
7740
+ /** The subtask items to render when expanded. Can be single tasks or nestedtask groups */
7741
+ items: F0TimelineRowMultitaskItemProps[];
7742
+ }
7743
+
7744
+ /**
7745
+ * Props for a nestedtask timeline row.
7746
+ * Renders a task-style header (custom icon, title, description, chevron toggle)
7747
+ * with collapsible nested items and optional group-level metadata (assignees, file chips, etc.).
7748
+ * Unlike multitask, the header looks like a regular task row with expand/collapse capability.
7749
+ */
7750
+ export declare interface F0TimelineRowNestedtaskProps extends F0TimelineRowBaseProps {
7751
+ /** The icon representing the task type */
7752
+ icon: IconType;
7753
+ /** Description text (e.g., "Estimated on 18/07/2025") */
7754
+ description?: string;
7755
+ /** Number of nested items (displayed in the progress pill) */
7756
+ taskCount: number;
7757
+ /** Number of completed items (displayed in the progress pill) */
7758
+ completedCount?: number;
7759
+ /** Whether the row is expanded (controlled) */
7760
+ expanded: boolean;
7761
+ /** Callback when expand/collapse is toggled */
7762
+ onExpandToggle: () => void;
7763
+ /** Metadata items displayed below the header (e.g., assignees, file chips). Always visible regardless of expand/collapse */
7764
+ metadata?: (MetadataItem | undefined | boolean)[];
7765
+ /** The nested task items to render when expanded */
7738
7766
  items: F0TimelineRowTaskProps[];
7767
+ /** Primary action button (displayed on the right after a divider) */
7768
+ primaryAction?: F0TimelineRowAction;
7769
+ /** Secondary action buttons (displayed on the left) */
7770
+ secondaryActions?: F0TimelineRowAction[];
7771
+ /** Overflow menu items (displayed as a dropdown via ellipsis button) */
7772
+ otherActions?: F0TimelineRowOtherAction[];
7739
7773
  }
7740
7774
 
7741
7775
  export declare type F0TimelineRowOtherAction = DropdownItem;
7742
7776
 
7743
- export declare type F0TimelineRowProps = F0TimelineRowTaskProps | F0TimelineRowMultitaskProps;
7777
+ export declare type F0TimelineRowProps = F0TimelineRowTaskProps | F0TimelineRowMultitaskProps | F0TimelineRowNestedtaskProps;
7744
7778
 
7745
7779
  /** Props for a single-task timeline row */
7746
7780
  export declare interface F0TimelineRowTaskProps extends F0TimelineRowBaseProps {
@@ -10766,6 +10800,10 @@ declare type SecondaryActionItem = Pick<DropdownItemObject, "label" | "icon" | "
10766
10800
  loading?: boolean;
10767
10801
  disabled?: boolean;
10768
10802
  onClick?: () => void | Promise<void>;
10803
+ tooltip?: (params: {
10804
+ disabled: boolean;
10805
+ loading: boolean;
10806
+ }) => string | undefined;
10769
10807
  };
10770
10808
 
10771
10809
  declare type SecondaryActionsDefinition = {
@@ -12646,11 +12684,6 @@ declare module "gridstack" {
12646
12684
  }
12647
12685
 
12648
12686
 
12649
- declare namespace Calendar {
12650
- var displayName: string;
12651
- }
12652
-
12653
-
12654
12687
  declare module "@tiptap/core" {
12655
12688
  interface Commands<ReturnType> {
12656
12689
  aiBlock: {
@@ -12698,3 +12731,8 @@ declare module "@tiptap/core" {
12698
12731
  };
12699
12732
  }
12700
12733
  }
12734
+
12735
+
12736
+ declare namespace Calendar {
12737
+ var displayName: string;
12738
+ }