@factorialco/f0-react 2.41.5 → 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 +6 -6
- package/dist/experimental.d.ts +31 -8
- package/dist/experimental.js +2 -2
- package/dist/f0.d.ts +31 -8
- package/dist/f0.js +2 -2
- package/dist/i18n-provider-defaults.d.ts +6 -6
- package/dist/styles.css +1 -1
- package/dist/{useDataCollectionSource-D66orUfb.js → useDataCollectionSource-Bxbwl5Iu.js} +2510 -2499
- package/package.json +1 -1
package/dist/ai.d.ts
CHANGED
|
@@ -4294,10 +4294,8 @@ declare module "@tiptap/core" {
|
|
|
4294
4294
|
|
|
4295
4295
|
declare module "@tiptap/core" {
|
|
4296
4296
|
interface Commands<ReturnType> {
|
|
4297
|
-
|
|
4298
|
-
|
|
4299
|
-
src: string;
|
|
4300
|
-
}) => ReturnType;
|
|
4297
|
+
transcript: {
|
|
4298
|
+
insertTranscript: (data: TranscriptData) => ReturnType;
|
|
4301
4299
|
};
|
|
4302
4300
|
}
|
|
4303
4301
|
}
|
|
@@ -4305,8 +4303,10 @@ declare module "@tiptap/core" {
|
|
|
4305
4303
|
|
|
4306
4304
|
declare module "@tiptap/core" {
|
|
4307
4305
|
interface Commands<ReturnType> {
|
|
4308
|
-
|
|
4309
|
-
|
|
4306
|
+
videoEmbed: {
|
|
4307
|
+
setVideoEmbed: (options: {
|
|
4308
|
+
src: string;
|
|
4309
|
+
}) => ReturnType;
|
|
4310
4310
|
};
|
|
4311
4311
|
}
|
|
4312
4312
|
}
|
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.
|
|
@@ -8764,10 +8787,8 @@ declare module "@tiptap/core" {
|
|
|
8764
8787
|
|
|
8765
8788
|
declare module "@tiptap/core" {
|
|
8766
8789
|
interface Commands<ReturnType> {
|
|
8767
|
-
|
|
8768
|
-
|
|
8769
|
-
src: string;
|
|
8770
|
-
}) => ReturnType;
|
|
8790
|
+
transcript: {
|
|
8791
|
+
insertTranscript: (data: TranscriptData) => ReturnType;
|
|
8771
8792
|
};
|
|
8772
8793
|
}
|
|
8773
8794
|
}
|
|
@@ -8775,8 +8796,10 @@ declare module "@tiptap/core" {
|
|
|
8775
8796
|
|
|
8776
8797
|
declare module "@tiptap/core" {
|
|
8777
8798
|
interface Commands<ReturnType> {
|
|
8778
|
-
|
|
8779
|
-
|
|
8799
|
+
videoEmbed: {
|
|
8800
|
+
setVideoEmbed: (options: {
|
|
8801
|
+
src: string;
|
|
8802
|
+
}) => ReturnType;
|
|
8780
8803
|
};
|
|
8781
8804
|
}
|
|
8782
8805
|
}
|
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
|
@@ -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.
|
|
@@ -15588,10 +15611,8 @@ declare module "@tiptap/core" {
|
|
|
15588
15611
|
|
|
15589
15612
|
declare module "@tiptap/core" {
|
|
15590
15613
|
interface Commands<ReturnType> {
|
|
15591
|
-
|
|
15592
|
-
|
|
15593
|
-
src: string;
|
|
15594
|
-
}) => ReturnType;
|
|
15614
|
+
transcript: {
|
|
15615
|
+
insertTranscript: (data: TranscriptData) => ReturnType;
|
|
15595
15616
|
};
|
|
15596
15617
|
}
|
|
15597
15618
|
}
|
|
@@ -15599,8 +15620,10 @@ declare module "@tiptap/core" {
|
|
|
15599
15620
|
|
|
15600
15621
|
declare module "@tiptap/core" {
|
|
15601
15622
|
interface Commands<ReturnType> {
|
|
15602
|
-
|
|
15603
|
-
|
|
15623
|
+
videoEmbed: {
|
|
15624
|
+
setVideoEmbed: (options: {
|
|
15625
|
+
src: string;
|
|
15626
|
+
}) => ReturnType;
|
|
15604
15627
|
};
|
|
15605
15628
|
}
|
|
15606
15629
|
}
|
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-
|
|
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 = {
|
|
@@ -881,10 +881,8 @@ declare module "@tiptap/core" {
|
|
|
881
881
|
|
|
882
882
|
declare module "@tiptap/core" {
|
|
883
883
|
interface Commands<ReturnType> {
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
src: string;
|
|
887
|
-
}) => ReturnType;
|
|
884
|
+
transcript: {
|
|
885
|
+
insertTranscript: (data: TranscriptData) => ReturnType;
|
|
888
886
|
};
|
|
889
887
|
}
|
|
890
888
|
}
|
|
@@ -892,8 +890,10 @@ declare module "@tiptap/core" {
|
|
|
892
890
|
|
|
893
891
|
declare module "@tiptap/core" {
|
|
894
892
|
interface Commands<ReturnType> {
|
|
895
|
-
|
|
896
|
-
|
|
893
|
+
videoEmbed: {
|
|
894
|
+
setVideoEmbed: (options: {
|
|
895
|
+
src: string;
|
|
896
|
+
}) => ReturnType;
|
|
897
897
|
};
|
|
898
898
|
}
|
|
899
899
|
}
|