@factorialco/f0-react 2.42.0 → 2.44.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.js +1 -1
- package/dist/experimental.d.ts +25 -2
- package/dist/experimental.js +2 -2
- package/dist/f0.d.ts +27 -4
- package/dist/f0.js +4 -4
- package/dist/{useChatHistory-DdaYq0tI.js → useChatHistory-4yObgxX5.js} +1 -0
- package/dist/{useDataCollectionSource-D66orUfb.js → useDataCollectionSource-Bxbwl5Iu.js} +2510 -2499
- package/package.json +1 -1
package/dist/ai.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { D as e, F as r, a as t, e as o, f as i, c as n, d as F, I as C, P as A, b as l, u as d } from "./F0CanvasPanel-Czxg0RlQ.js";
|
|
2
2
|
import { defaultTranslations as m } from "./i18n-provider-defaults.js";
|
|
3
|
-
import { A as c, C as I, h as P, t as v, v as f, x as p, n as T, j as g, r as y, y as S, q as x, s as H, k as V, e as b, g as k, l as w, F as M, i as O, a as D, p as j, m as q, o as z, b as B, f as E, w as L, c as R, d as G, u as J } from "./useChatHistory-
|
|
3
|
+
import { A as c, C as I, h as P, t as v, v as f, x as p, n as T, j as g, r as y, y as S, q as x, s as H, k as V, e as b, g as k, l as w, F as M, i as O, a as D, p as j, m as q, o as z, b as B, f as E, w as L, c as R, d as G, u as J } from "./useChatHistory-4yObgxX5.js";
|
|
4
4
|
export {
|
|
5
5
|
c as AiChatTranslationsProvider,
|
|
6
6
|
I as ChatSpinner,
|
package/dist/experimental.d.ts
CHANGED
|
@@ -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
|
|
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: (
|
|
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.
|
package/dist/experimental.js
CHANGED
|
@@ -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-
|
|
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-
|
|
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
|
@@ -1572,13 +1572,13 @@ export declare type BorderStyleToken = "solid" | "dashed" | "dotted" | "double"
|
|
|
1572
1572
|
/** Border width tokens */
|
|
1573
1573
|
export declare type BorderWidthToken = "none" | "default" | "thick";
|
|
1574
1574
|
|
|
1575
|
-
export declare type BoxShadowToken = "none" | "md" | "lg" | "xl";
|
|
1575
|
+
export declare type BoxShadowToken = "none" | "sm" | "md" | "lg" | "xl";
|
|
1576
1576
|
|
|
1577
1577
|
declare type BoxVariantProps = VariantProps<typeof boxVariants>;
|
|
1578
1578
|
|
|
1579
1579
|
declare const boxVariants: (props?: ({
|
|
1580
1580
|
zIndex?: "0" | "auto" | "10" | "20" | "50" | "40" | "30" | undefined;
|
|
1581
|
-
boxShadow?: "none" | "lg" | "md" | "xl" | undefined;
|
|
1581
|
+
boxShadow?: "none" | "lg" | "md" | "sm" | "xl" | undefined;
|
|
1582
1582
|
divider?: "x" | "y" | undefined;
|
|
1583
1583
|
dividerColor?: "info" | "bold" | "default" | "secondary" | "critical" | "warning" | "positive" | "promote" | "selected" | "critical-bold" | "info-bold" | "warning-bold" | "positive-bold" | "selected-bold" | undefined;
|
|
1584
1584
|
overflow?: "hidden" | "auto" | "scroll" | "visible" | undefined;
|
|
@@ -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
|
|
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: (
|
|
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.
|
package/dist/f0.js
CHANGED
|
@@ -3,11 +3,11 @@ import { gA as Mme, D as Eme, aM as Lme, F as Nme, a as Ime, e as kme, b1 as Rme
|
|
|
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 Jr, useRef as se, useImperativeHandle as kH, Children as Yv, createContext as en, useContext as _r, useState as ye, useMemo as ae, useEffect as _e, useCallback as te, useLayoutEffect as Zb, createElement as Xd, isValidElement as Ik, Fragment as Ig, memo as kk, useReducer as RH, cloneElement as PH, useId as kg } from "react";
|
|
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-
|
|
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-
|
|
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-4yObgxX5.js";
|
|
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-4yObgxX5.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-
|
|
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-
|
|
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 = {
|