@factorialco/f0-react 2.42.0 → 2.43.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
@@ -4263,11 +4263,6 @@ declare module "gridstack" {
4263
4263
  }
4264
4264
 
4265
4265
 
4266
- declare namespace Calendar {
4267
- var displayName: string;
4268
- }
4269
-
4270
-
4271
4266
  declare module "@tiptap/core" {
4272
4267
  interface Commands<ReturnType> {
4273
4268
  aiBlock: {
@@ -4317,6 +4312,11 @@ declare module "@tiptap/core" {
4317
4312
  }
4318
4313
 
4319
4314
 
4315
+ declare namespace Calendar {
4316
+ var displayName: string;
4317
+ }
4318
+
4319
+
4320
4320
  declare namespace F0GraphNodeWrapperInner {
4321
4321
  var displayName: string;
4322
4322
  }
@@ -3770,6 +3770,14 @@ declare type DropdownProps = Omit<DropdownInternalProps, (typeof privateProps_5)
3770
3770
  onOpenChange?: (open: boolean) => void;
3771
3771
  } & WithDataTestIdProps;
3772
3772
 
3773
+ /**
3774
+ * Map of the attributes modified in a cell update, keyed by record key.
3775
+ * Each entry is a `[previousValue, newValue]` tuple.
3776
+ */
3777
+ declare type EditableTableCellChanges<R extends RecordType> = {
3778
+ [K in keyof R]?: [R[K], R[K]];
3779
+ };
3780
+
3773
3781
  /** The edit mode for a column cell in the editable table. */
3774
3782
  declare type EditableTableCellEditType = "text" | "number" | "money" | "date" | "select" | "multiselect" | "display-only" | "disabled";
3775
3783
 
@@ -3860,14 +3868,29 @@ declare type EditableTableColumnDefinition<R extends RecordType, Sortings extend
3860
3868
  } | undefined;
3861
3869
  };
3862
3870
 
3871
+ /**
3872
+ * Arguments passed to `onCellChange`.
3873
+ */
3874
+ declare type EditableTableOnCellChangeParams<R extends RecordType> = {
3875
+ /** The full row item with the change(s) applied. */
3876
+ updatedItem: R;
3877
+ /**
3878
+ * Map of the modified attributes keyed by record key, where each entry is a
3879
+ * `[previousValue, newValue]` tuple.
3880
+ */
3881
+ changes: EditableTableCellChanges<R>;
3882
+ };
3883
+
3863
3884
  declare type EditableTableVisualizationOptions<R extends RecordType, _Filters extends FiltersDefinition, Sortings extends SortingsDefinition, Summaries extends SummariesDefinition> = Omit<TableVisualizationOptions<R, _Filters, Sortings, Summaries>, "columns"> & {
3864
3885
  columns: ReadonlyArray<EditableTableColumnDefinition<R, Sortings, Summaries>>;
3865
3886
  /**
3866
- * Called when a cell value changes with the full updated row.
3887
+ * Called when a cell value changes. Receives an object with the full updated
3888
+ * row (`updatedItem`) and a `changes` map of the modified attributes, keyed by
3889
+ * record key, where each entry is a `[previousValue, newValue]` tuple.
3867
3890
  * Resolve with nothing for success, or `{ columnId: "message" }` to set errors.
3868
3891
  * Rejection sets an error on the edited column.
3869
3892
  */
3870
- onCellChange: (updatedItem: R) => Promise<void | Record<string, string>>;
3893
+ onCellChange: (params: EditableTableOnCellChangeParams<R>) => Promise<void | Record<string, string>>;
3871
3894
  /**
3872
3895
  * When provided, renders action buttons at the bottom of the root-level table.
3873
3896
  * Returns a single action, an array of actions, or undefined to hide the row.
@@ -8733,11 +8756,6 @@ declare module "gridstack" {
8733
8756
  }
8734
8757
 
8735
8758
 
8736
- declare namespace Calendar {
8737
- var displayName: string;
8738
- }
8739
-
8740
-
8741
8759
  declare module "@tiptap/core" {
8742
8760
  interface Commands<ReturnType> {
8743
8761
  aiBlock: {
@@ -8787,6 +8805,11 @@ declare module "@tiptap/core" {
8787
8805
  }
8788
8806
 
8789
8807
 
8808
+ declare namespace Calendar {
8809
+ var displayName: string;
8810
+ }
8811
+
8812
+
8790
8813
  declare namespace F0GraphNodeWrapperInner {
8791
8814
  var displayName: string;
8792
8815
  }
@@ -2,8 +2,8 @@ import { g as da, B as ua, h as fa, i as ma, j as At, k as De, l as ha, m as p,
2
2
  import { bQ as Lc, bP as Ec, c0 as _c, bM as Oc, bN as Dc, bF as Tc, bG as zc, bH as Pc, c1 as Bc, bO as Rc, bY as $c, bZ as Wc, bI as Mc, bS as jc, bR as Vc, bJ as Gc, bK as Hc, b_ as Uc, c2 as Kc, b$ as qc, bX as Yc, bU as Zc, bW as Xc, bT as Jc, bL as Qc, bV as ed } from "./F0CanvasPanel-Czxg0RlQ.js";
3
3
  import { jsx as e, jsxs as o, Fragment as U } from "react/jsx-runtime";
4
4
  import se, { forwardRef as j, useRef as G, useTransition as Hr, useState as _, useLayoutEffect as Fn, useId as ot, useContext as Ke, createContext as Nt, useEffect as $, useCallback as Q, useMemo as q, Fragment as Ur, isValidElement as Kr, cloneElement as An, Children as Ln } from "react";
5
- import { C as qr, P as Yr, g as En, c as Zr, a as _n, F as ct, f as Xr, M as Jr, b as Qr, R as Dt, d as On, u as el, e as Dn, S as tl, A as nl, B as al, L as rl, h as ll, V as il, i as sl, j as Tt, k as ol, l as cl, O as dl } from "./useDataCollectionSource-D66orUfb.js";
6
- import { r as nd, s as ad, p as rd, H as ld, t as id, z as sd, a9 as od, G as cd, q as dd, Q as ud, o as fd, Y as md, U as hd, J as pd, af as bd, K as gd, Z as xd, _ as vd, v as wd, ab as yd, ac as Nd, aa as Cd, ad as kd, N as Sd, $ as Id, a6 as Fd, a8 as Ad, w as Ld, y as Ed, D as _d, W as Od, ae as Dd, X as Td, T as zd, x as Pd, E as Bd, m as Rd, n as $d, a1 as Wd, a2 as Md, a7 as jd, I as Vd, a3 as Gd, a4 as Hd, a0 as Ud, a5 as Kd } from "./useDataCollectionSource-D66orUfb.js";
5
+ import { C as qr, P as Yr, g as En, c as Zr, a as _n, F as ct, f as Xr, M as Jr, b as Qr, R as Dt, d as On, u as el, e as Dn, S as tl, A as nl, B as al, L as rl, h as ll, V as il, i as sl, j as Tt, k as ol, l as cl, O as dl } from "./useDataCollectionSource-Bxbwl5Iu.js";
6
+ import { r as nd, s as ad, p as rd, H as ld, t as id, z as sd, a9 as od, G as cd, q as dd, Q as ud, o as fd, Y as md, U as hd, J as pd, af as bd, K as gd, Z as xd, _ as vd, v as wd, ab as yd, ac as Nd, aa as Cd, ad as kd, N as Sd, $ as Id, a6 as Fd, a8 as Ad, w as Ld, y as Ed, D as _d, W as Od, ae as Dd, X as Td, T as zd, x as Pd, E as Bd, m as Rd, n as $d, a1 as Wd, a2 as Md, a7 as jd, I as Vd, a3 as Gd, a4 as Hd, a0 as Ud, a5 as Kd } from "./useDataCollectionSource-Bxbwl5Iu.js";
7
7
  const ul = da("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
@@ -5100,6 +5100,14 @@ export declare type DurationUnit = (typeof durationUnits)[number];
5100
5100
 
5101
5101
  export declare const durationUnits: readonly ["days", "hours", "minutes", "seconds"];
5102
5102
 
5103
+ /**
5104
+ * Map of the attributes modified in a cell update, keyed by record key.
5105
+ * Each entry is a `[previousValue, newValue]` tuple.
5106
+ */
5107
+ declare type EditableTableCellChanges<R extends RecordType> = {
5108
+ [K in keyof R]?: [R[K], R[K]];
5109
+ };
5110
+
5103
5111
  /** The edit mode for a column cell in the editable table. */
5104
5112
  declare type EditableTableCellEditType = "text" | "number" | "money" | "date" | "select" | "multiselect" | "display-only" | "disabled";
5105
5113
 
@@ -5190,14 +5198,29 @@ declare type EditableTableColumnDefinition<R extends RecordType, Sortings extend
5190
5198
  } | undefined;
5191
5199
  };
5192
5200
 
5201
+ /**
5202
+ * Arguments passed to `onCellChange`.
5203
+ */
5204
+ declare type EditableTableOnCellChangeParams<R extends RecordType> = {
5205
+ /** The full row item with the change(s) applied. */
5206
+ updatedItem: R;
5207
+ /**
5208
+ * Map of the modified attributes keyed by record key, where each entry is a
5209
+ * `[previousValue, newValue]` tuple.
5210
+ */
5211
+ changes: EditableTableCellChanges<R>;
5212
+ };
5213
+
5193
5214
  declare type EditableTableVisualizationOptions<R extends RecordType, _Filters extends FiltersDefinition, Sortings extends SortingsDefinition, Summaries extends SummariesDefinition> = Omit<TableVisualizationOptions<R, _Filters, Sortings, Summaries>, "columns"> & {
5194
5215
  columns: ReadonlyArray<EditableTableColumnDefinition<R, Sortings, Summaries>>;
5195
5216
  /**
5196
- * Called when a cell value changes with the full updated row.
5217
+ * Called when a cell value changes. Receives an object with the full updated
5218
+ * row (`updatedItem`) and a `changes` map of the modified attributes, keyed by
5219
+ * record key, where each entry is a `[previousValue, newValue]` tuple.
5197
5220
  * Resolve with nothing for success, or `{ columnId: "message" }` to set errors.
5198
5221
  * Rejection sets an error on the edited column.
5199
5222
  */
5200
- onCellChange: (updatedItem: R) => Promise<void | Record<string, string>>;
5223
+ onCellChange: (params: EditableTableOnCellChangeParams<R>) => Promise<void | Record<string, string>>;
5201
5224
  /**
5202
5225
  * When provided, renders action buttons at the bottom of the root-level table.
5203
5226
  * Returns a single action, an array of actions, or undefined to hide the row.
@@ -15557,11 +15580,6 @@ declare module "gridstack" {
15557
15580
  }
15558
15581
 
15559
15582
 
15560
- declare namespace Calendar {
15561
- var displayName: string;
15562
- }
15563
-
15564
-
15565
15583
  declare module "@tiptap/core" {
15566
15584
  interface Commands<ReturnType> {
15567
15585
  aiBlock: {
@@ -15611,6 +15629,11 @@ declare module "@tiptap/core" {
15611
15629
  }
15612
15630
 
15613
15631
 
15632
+ declare namespace Calendar {
15633
+ var displayName: string;
15634
+ }
15635
+
15636
+
15614
15637
  declare namespace F0GraphNodeWrapperInner {
15615
15638
  var displayName: string;
15616
15639
  }
package/dist/f0.js CHANGED
@@ -6,8 +6,8 @@ import He, { forwardRef as Jr, useRef as se, useImperativeHandle as kH, Children
6
6
  import { z as OH, B as BH, U as aT, D as oT, E as $m, G as sT, H as VH, I as na, J as Io, K as FH, L as Hw, M as Rr, N as fi, O as zH, P as GH, Q as Rk, Z as Wo, R as HH, S as WH, T as UH, V as Pk, W as Xv, X as Ww, Y as Ok, _ as Bk, $ as pn, a0 as $H, a1 as YH, a2 as Vk, a3 as Rg, a4 as XH, a5 as qH, a6 as Fk, a7 as ZH, a8 as jH, a9 as KH, aa as QH, ab as JH, ac as eW, F as tW } from "./useChatHistory-DdaYq0tI.js";
7
7
  import { A as Iye, C as kye, h as Rye, t as Pye, v as Oye, x as Bye, ah as Vye, n as Fye, j as zye, r as Gye, y as Hye, q as Wye, s as Uye, k as $ye, e as Yye, g as Xye, l as qye, i as Zye, a as jye, p as Kye, ai as Qye, af as Jye, ae as e0e, ag as t0e, m as r0e, o as n0e, ad as i0e, b as a0e, f as o0e, w as s0e, c as l0e, d as u0e, u as c0e } from "./useChatHistory-DdaYq0tI.js";
8
8
  import { createPortal as zk, unstable_batchedUpdates as qd, flushSync as rW } from "react-dom";
9
- import { C as nW, o as iW, G as jb, H as Gk, ag as Hk, Q as Wk, ae as aW, U as oW, X as Uk, Y as Uw, ah as $w, a9 as sW, ai as lW, aj as uW, d as Pg, ak as cW, R as Yw, u as Xw, W as $k, O as qw, al as Yk, am as Zw, p as fW, a4 as Xk, $ as qk, an as dW, ao as hW, ap as vW, aq as pW, ar as gW, M as mW, as as Kb } from "./useDataCollectionSource-D66orUfb.js";
10
- import { r as d0e, s as h0e, t as v0e, z as p0e, az as g0e, ay as m0e, au as y0e, F as b0e, J as x0e, af as _0e, K as w0e, v as S0e, aA as C0e, ab as T0e, ac as D0e, aa as A0e, ad as M0e, N as E0e, w as L0e, P as N0e, y as I0e, D as k0e, T as R0e, x as P0e, E as O0e, aC as B0e, m as V0e, n as F0e, at as z0e, aB as G0e, a7 as H0e, I as W0e, aD as U0e, aE as $0e, av as Y0e, aw as X0e, ax as q0e, e as Z0e, aF as j0e } from "./useDataCollectionSource-D66orUfb.js";
9
+ import { C as nW, o as iW, G as jb, H as Gk, ag as Hk, Q as Wk, ae as aW, U as oW, X as Uk, Y as Uw, ah as $w, a9 as sW, ai as lW, aj as uW, d as Pg, ak as cW, R as Yw, u as Xw, W as $k, O as qw, al as Yk, am as Zw, p as fW, a4 as Xk, $ as qk, an as dW, ao as hW, ap as vW, aq as pW, ar as gW, M as mW, as as Kb } from "./useDataCollectionSource-Bxbwl5Iu.js";
10
+ import { r as d0e, s as h0e, t as v0e, z as p0e, az as g0e, ay as m0e, au as y0e, F as b0e, J as x0e, af as _0e, K as w0e, v as S0e, aA as C0e, ab as T0e, ac as D0e, aa as A0e, ad as M0e, N as E0e, w as L0e, P as N0e, y as I0e, D as k0e, T as R0e, x as P0e, E as O0e, aC as B0e, m as V0e, n as F0e, at as z0e, aB as G0e, a7 as H0e, I as W0e, aD as U0e, aE as $0e, av as Y0e, aw as X0e, ax as q0e, e as Z0e, aF as j0e } from "./useDataCollectionSource-Bxbwl5Iu.js";
11
11
  import { utils as fu, write as Zk } from "./xlsx-Bedf3nwD.js";
12
12
  import { defaultTranslations as Q0e } from "./i18n-provider-defaults.js";
13
13
  import './f0.css';const yW = {
@@ -850,11 +850,6 @@ declare module "gridstack" {
850
850
  }
851
851
 
852
852
 
853
- declare namespace Calendar {
854
- var displayName: string;
855
- }
856
-
857
-
858
853
  declare module "@tiptap/core" {
859
854
  interface Commands<ReturnType> {
860
855
  aiBlock: {
@@ -904,6 +899,11 @@ declare module "@tiptap/core" {
904
899
  }
905
900
 
906
901
 
902
+ declare namespace Calendar {
903
+ var displayName: string;
904
+ }
905
+
906
+
907
907
  declare namespace F0GraphNodeWrapperInner {
908
908
  var displayName: string;
909
909
  }