@factorialco/f0-react 2.24.0 → 2.25.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
@@ -4171,6 +4171,11 @@ declare module "gridstack" {
4171
4171
  }
4172
4172
 
4173
4173
 
4174
+ declare namespace Calendar {
4175
+ var displayName: string;
4176
+ }
4177
+
4178
+
4174
4179
  declare module "@tiptap/core" {
4175
4180
  interface Commands<ReturnType> {
4176
4181
  aiBlock: {
@@ -4220,11 +4225,6 @@ declare module "@tiptap/core" {
4220
4225
  }
4221
4226
 
4222
4227
 
4223
- declare namespace Calendar {
4224
- var displayName: string;
4225
- }
4226
-
4227
-
4228
4228
  declare namespace F0GraphNodeWrapperInner {
4229
4229
  var displayName: string;
4230
4230
  }
package/dist/ai.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { D as e, F as r, a as t, e as i, f as o, c as n, d as F, I as C, P as A, b as l, u } from "./F0CanvasPanel-DAJcyyFM.js";
2
2
  import { defaultTranslations as m } from "./i18n-provider-defaults.js";
3
- import { A as c, C as I, h as P, s as v, t as f, w as p, m as T, j as g, q as y, x as S, p as x, r as H, k as V, e as b, g as M, l as O, F as k, i as w, a as D, n as j, o as q, b as z, f as B, v as E, c as L, d as G, u as J } from "./useChatHistory-DsrI2Vz9.js";
3
+ import { A as c, C as I, h as P, s as v, t as f, w as p, m as T, j as g, q as y, x as S, p as x, r as H, k as V, e as b, g as M, l as O, F as k, i as w, a as D, n as j, o as q, b as z, f as B, v as E, c as L, d as G, u as J } from "./useChatHistory-D1pjDBvO.js";
4
4
  export {
5
5
  c as AiChatTranslationsProvider,
6
6
  I as ChatSpinner,
@@ -2645,6 +2645,13 @@ export declare type DataSourceDefinition<R extends RecordType = RecordType, Filt
2645
2645
  item: R;
2646
2646
  pagination?: ChildrenPaginationInfo;
2647
2647
  }) => number | undefined;
2648
+ /**
2649
+ * Item ids that start expanded on first render. Rows matched here have
2650
+ * their children fetched eagerly. Only rows whose `item.id` is in this
2651
+ * list are auto-expanded — nested descendants are not, unless their own id
2652
+ * is also included. Defaults to none.
2653
+ */
2654
+ defaultExpandedIds?: Array<string | number>;
2648
2655
  };
2649
2656
 
2650
2657
  declare type DateCellConfig = {
@@ -8506,6 +8513,11 @@ declare module "gridstack" {
8506
8513
  }
8507
8514
 
8508
8515
 
8516
+ declare namespace Calendar {
8517
+ var displayName: string;
8518
+ }
8519
+
8520
+
8509
8521
  declare module "@tiptap/core" {
8510
8522
  interface Commands<ReturnType> {
8511
8523
  aiBlock: {
@@ -8555,11 +8567,6 @@ declare module "@tiptap/core" {
8555
8567
  }
8556
8568
 
8557
8569
 
8558
- declare namespace Calendar {
8559
- var displayName: string;
8560
- }
8561
-
8562
-
8563
8570
  declare namespace F0GraphNodeWrapperInner {
8564
8571
  var displayName: string;
8565
8572
  }
@@ -2,8 +2,8 @@ import { g as ua, B as fa, h as ma, i as ha, j as At, k as De, l as ga, m as g,
2
2
  import { bK as Tc, bJ as zc, bW as Pc, bG as Bc, bH as Rc, bz as $c, bA as Wc, bX as Mc, bB as jc, bI as Vc, bS as Gc, bT as Hc, bC as Uc, bM as Kc, bL as qc, bD as Yc, bE as Zc, bU as Xc, bY as Jc, bV as Qc, bR as ed, bO as td, bQ as nd, bN as ad, bF as rd, bP as ld } from "./F0CanvasPanel-DAJcyyFM.js";
3
3
  import { jsx as e, jsxs as o, Fragment as K } from "react/jsx-runtime";
4
4
  import ie, { forwardRef as j, useRef as G, useTransition as Ur, useState as _, useLayoutEffect as In, useId as ot, useContext as Ke, createContext as xt, useEffect as $, useCallback as Q, useMemo as q, Fragment as Kr, isValidElement as qr, cloneElement as Fn, Children as An } from "react";
5
- import { C as Yr, P as Zr, g as Ln, c as Xr, a as En, F as ct, f as Jr, b as Te, M as Qr, d as el, R as Dt, e as _n, u as tl, h as On, i as vt, j as wt, k as yt, l as Dn, m as Nt, n as nl, o as al, S as rl, p as ll, A as sl, B as il, L as ol, q as cl, V as dl, r as ul, s as Tt, t as fl, v as ml, O as hl } from "./useDataCollectionSource-B5-atCQw.js";
6
- import { D as id, E as od, y as cd, W as dd, G as ud, N as fd, ad as md, U as hd, z as gd, a0 as pd, aj as bd, a1 as xd, a2 as vd, H as wd, af as yd, ag as Nd, ae as Cd, ah as kd, Y as Sd, a3 as Id, aa as Fd, ac as Ad, I as Ld, K as Ed, Q as _d, _ as Od, ai as Dd, $ as Td, Z as zd, J as Pd, T as Bd, w as Rd, x as $d, a5 as Wd, a6 as Md, ab as jd, X as Vd, a7 as Gd, a8 as Hd, a4 as Ud, a9 as Kd } from "./useDataCollectionSource-B5-atCQw.js";
5
+ import { C as Yr, P as Zr, g as Ln, c as Xr, a as En, F as ct, f as Jr, b as Te, M as Qr, d as el, R as Dt, e as _n, u as tl, h as On, i as vt, j as wt, k as yt, l as Dn, m as Nt, n as nl, o as al, S as rl, p as ll, A as sl, B as il, L as ol, q as cl, V as dl, r as ul, s as Tt, t as fl, v as ml, O as hl } from "./useDataCollectionSource-CjRrXJC3.js";
6
+ import { D as id, E as od, y as cd, W as dd, G as ud, N as fd, ad as md, U as hd, z as gd, a0 as pd, aj as bd, a1 as xd, a2 as vd, H as wd, af as yd, ag as Nd, ae as Cd, ah as kd, Y as Sd, a3 as Id, aa as Fd, ac as Ad, I as Ld, K as Ed, Q as _d, _ as Od, ai as Dd, $ as Td, Z as zd, J as Pd, T as Bd, w as Rd, x as $d, a5 as Wd, a6 as Md, ab as jd, X as Vd, a7 as Gd, a8 as Hd, a4 as Ud, a9 as Kd } from "./useDataCollectionSource-CjRrXJC3.js";
7
7
  const gl = ua("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
@@ -3735,6 +3735,13 @@ export declare type DataSourceDefinition<R extends RecordType = RecordType, Filt
3735
3735
  item: R;
3736
3736
  pagination?: ChildrenPaginationInfo;
3737
3737
  }) => number | undefined;
3738
+ /**
3739
+ * Item ids that start expanded on first render. Rows matched here have
3740
+ * their children fetched eagerly. Only rows whose `item.id` is in this
3741
+ * list are auto-expanded — nested descendants are not, unless their own id
3742
+ * is also included. Defaults to none.
3743
+ */
3744
+ defaultExpandedIds?: Array<string | number>;
3738
3745
  };
3739
3746
 
3740
3747
  /**
@@ -15019,6 +15026,11 @@ declare module "gridstack" {
15019
15026
  }
15020
15027
 
15021
15028
 
15029
+ declare namespace Calendar {
15030
+ var displayName: string;
15031
+ }
15032
+
15033
+
15022
15034
  declare module "@tiptap/core" {
15023
15035
  interface Commands<ReturnType> {
15024
15036
  aiBlock: {
@@ -15068,11 +15080,6 @@ declare module "@tiptap/core" {
15068
15080
  }
15069
15081
 
15070
15082
 
15071
- declare namespace Calendar {
15072
- var displayName: string;
15073
- }
15074
-
15075
-
15076
15083
  declare namespace F0GraphNodeWrapperInner {
15077
15084
  var displayName: string;
15078
15085
  }
package/dist/f0.js CHANGED
@@ -3,11 +3,11 @@ import { gf as dme, D as hme, aP as vme, F as pme, a as gme, e as mme, b3 as yme
3
3
  import { jsx as w, jsxs as B, Fragment as kt } from "react/jsx-runtime";
4
4
  import * as Yn from "react";
5
5
  import He, { forwardRef as hn, useRef as oe, useImperativeHandle as wH, Children as $v, createContext as Jr, useContext as _r, useState as ye, useMemo as ae, useEffect as _e, useCallback as te, useLayoutEffect as qb, createElement as Yd, isValidElement as Ak, Fragment as Mk, memo as Ek, useReducer as SH, cloneElement as CH, useId as Ig } from "react";
6
- import { y as TH, z as DH, U as JC, D as eT, B as Um, E as tT, G as AH, H as Oa, I as tl, J as MH, K as Vw, L as kr, M as fi, N as EH, O as LH, P as Lk, Z as Ho, Q as NH, R as IH, S as kH, T as Nk, V as Yv, W as zw, X as Ik, Y as kk, _ as pn, $ as RH, a0 as PH, a1 as Rk, a2 as kg, a3 as OH, a4 as BH, a5 as Pk, a6 as VH, a7 as zH, a8 as FH, a9 as GH, aa as HH, ab as WH, F as UH } from "./useChatHistory-DsrI2Vz9.js";
7
- import { A as dye, C as hye, h as vye, s as pye, t as gye, w as mye, ag as yye, m as bye, j as xye, q as _ye, x as wye, p as Sye, r as Cye, k as Tye, e as Dye, g as Aye, l as Mye, i as Eye, a as Lye, n as Nye, ah as Iye, ae as kye, ad as Rye, af as Pye, o as Oye, ac as Bye, b as Vye, f as zye, v as Fye, c as Gye, d as Hye, u as Wye } from "./useChatHistory-DsrI2Vz9.js";
6
+ import { y as TH, z as DH, U as JC, D as eT, B as Um, E as tT, G as AH, H as Oa, I as tl, J as MH, K as Vw, L as kr, M as fi, N as EH, O as LH, P as Lk, Z as Ho, Q as NH, R as IH, S as kH, T as Nk, V as Yv, W as zw, X as Ik, Y as kk, _ as pn, $ as RH, a0 as PH, a1 as Rk, a2 as kg, a3 as OH, a4 as BH, a5 as Pk, a6 as VH, a7 as zH, a8 as FH, a9 as GH, aa as HH, ab as WH, F as UH } from "./useChatHistory-D1pjDBvO.js";
7
+ import { A as dye, C as hye, h as vye, s as pye, t as gye, w as mye, ag as yye, m as bye, j as xye, q as _ye, x as wye, p as Sye, r as Cye, k as Tye, e as Dye, g as Aye, l as Mye, i as Eye, a as Lye, n as Nye, ah as Iye, ae as kye, ad as Rye, af as Pye, o as Oye, ac as Bye, b as Vye, f as zye, v as Fye, c as Gye, d as Hye, u as Wye } from "./useChatHistory-D1pjDBvO.js";
8
8
  import { createPortal as Ok, unstable_batchedUpdates as Xd, flushSync as $H } from "react-dom";
9
- import { C as YH, b as Bk, U as Zb, W as Vk, ak as zk, Y as Fk, ai as XH, Z as qH, $ as Gk, a0 as Fw, al as ZH, am as Gw, ad as jH, an as KH, ao as QH, e as Rg, ap as JH, R as Hw, u as Ww, _ as Hk, O as Uw, aq as eW, ar as Wk, i as Fu, m as Gu, p as gd, as as $w, y as tW, j as rW, a8 as Uk, a3 as $k, at as nW, au as iW, av as aW, aw as oW, ax as sW, M as lW } from "./useDataCollectionSource-B5-atCQw.js";
10
- import { D as $ye, E as Yye, G as Xye, N as qye, aD as Zye, F as jye, aB as Kye, aj as Qye, H as Jye, af as e0e, ag as t0e, ae as r0e, ah as n0e, I as i0e, P as a0e, K as o0e, Q as s0e, J as l0e, T as u0e, w as c0e, x as f0e, ay as d0e, az as h0e, aA as v0e, aC as p0e, ab as g0e, X as m0e, aE as y0e, aF as b0e, aG as x0e, h as _0e } from "./useDataCollectionSource-B5-atCQw.js";
9
+ import { C as YH, b as Bk, U as Zb, W as Vk, ak as zk, Y as Fk, ai as XH, Z as qH, $ as Gk, a0 as Fw, al as ZH, am as Gw, ad as jH, an as KH, ao as QH, e as Rg, ap as JH, R as Hw, u as Ww, _ as Hk, O as Uw, aq as eW, ar as Wk, i as Fu, m as Gu, p as gd, as as $w, y as tW, j as rW, a8 as Uk, a3 as $k, at as nW, au as iW, av as aW, aw as oW, ax as sW, M as lW } from "./useDataCollectionSource-CjRrXJC3.js";
10
+ import { D as $ye, E as Yye, G as Xye, N as qye, aD as Zye, F as jye, aB as Kye, aj as Qye, H as Jye, af as e0e, ag as t0e, ae as r0e, ah as n0e, I as i0e, P as a0e, K as o0e, Q as s0e, J as l0e, T as u0e, w as c0e, x as f0e, ay as d0e, az as h0e, aA as v0e, aC as p0e, ab as g0e, X as m0e, aE as y0e, aF as b0e, aG as x0e, h as _0e } from "./useDataCollectionSource-CjRrXJC3.js";
11
11
  import { utils as uu, write as Yk } from "./xlsx-Bedf3nwD.js";
12
12
  import { defaultTranslations as S0e } from "./i18n-provider-defaults.js";
13
13
  import './f0.css';const uW = {
@@ -838,6 +838,11 @@ declare module "gridstack" {
838
838
  }
839
839
 
840
840
 
841
+ declare namespace Calendar {
842
+ var displayName: string;
843
+ }
844
+
845
+
841
846
  declare module "@tiptap/core" {
842
847
  interface Commands<ReturnType> {
843
848
  aiBlock: {
@@ -887,11 +892,6 @@ declare module "@tiptap/core" {
887
892
  }
888
893
 
889
894
 
890
- declare namespace Calendar {
891
- var displayName: string;
892
- }
893
-
894
-
895
895
  declare namespace F0GraphNodeWrapperInner {
896
896
  var displayName: string;
897
897
  }
@@ -7459,17 +7459,21 @@ const er = ja(
7459
7459
  }) => {
7460
7460
  const c = ge(), { onClose: l } = Co(), d = !!s, u = () => /* @__PURE__ */ o("div", { className: "h-4 w-px self-center bg-f1-background-secondary" }), h = n?.filter(
7461
7461
  (v) => v.type !== "separator" && v.type !== "label"
7462
- ) ?? [], w = () => !h.length || !n ? null : h.length <= 2 ? /* @__PURE__ */ o("div", { className: "flex flex-row gap-2", children: h.map((v) => /* @__PURE__ */ o(
7463
- Ee,
7464
- {
7465
- variant: "outline",
7466
- icon: v.icon,
7467
- onClick: v.onClick,
7468
- label: v.label,
7469
- hideLabel: !0
7470
- },
7471
- v.label
7472
- )) }) : /* @__PURE__ */ o(Ya, { items: n, icon: co }), p = () => r ? /* @__PURE__ */ o(Ga, { children: /* @__PURE__ */ o(
7462
+ ) ?? [], w = () => {
7463
+ if (!h.length || !n) return null;
7464
+ const v = h.some((y) => y.critical);
7465
+ return h.length <= 2 && !v ? /* @__PURE__ */ o("div", { className: "flex flex-row gap-2", children: h.map((y) => /* @__PURE__ */ o(
7466
+ Ee,
7467
+ {
7468
+ variant: "outline",
7469
+ icon: y.icon,
7470
+ onClick: y.onClick,
7471
+ label: y.label,
7472
+ hideLabel: !0
7473
+ },
7474
+ y.label
7475
+ )) }) : /* @__PURE__ */ o(Ya, { items: n, icon: co });
7476
+ }, p = () => r ? /* @__PURE__ */ o(Ga, { children: /* @__PURE__ */ o(
7473
7477
  qa,
7474
7478
  {
7475
7479
  item: {
@@ -14191,7 +14195,7 @@ const T1 = (t) => /* @__PURE__ */ o(bo, { content: t, format: "markdown" }), ku
14191
14195
  "div",
14192
14196
  {
14193
14197
  ref: a,
14194
- className: "w-fit max-w-[90%] self-end whitespace-pre-wrap rounded-2xl border border-solid border-f1-border-secondary bg-f1-background-tertiary px-4 py-3 [&>div]:flex [&>div]:flex-col [&>div]:gap-1",
14198
+ className: "w-fit max-w-[90%] self-end whitespace-pre-wrap rounded-xl bg-f1-background-tertiary px-4 py-3 [&>div]:flex [&>div]:flex-col [&>div]:gap-1",
14195
14199
  children: (n ?? T1)(l)
14196
14200
  }
14197
14201
  ),