@factorialco/f0-react 4.78.0 → 5.0.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.
Files changed (32) hide show
  1. package/dist/{ChatPdfThumbnail-C_HVLcVK.js → ChatPdfThumbnail-CwT_S_6-.js} +1 -1
  2. package/dist/{DocumentToolbar-CM2w_2w_.js → DocumentToolbar-BJme6_ff.js} +2 -2
  3. package/dist/{DocxViewer-BSoDHr_N.js → DocxViewer-BEqLyV5B.js} +2 -2
  4. package/dist/{F0AiProcessingOverlay-YSzHusB4.js → F0AiProcessingOverlay-iAwbCALh.js} +735 -714
  5. package/dist/{F0CanvasPanel-CAY9Mu_e.js → F0CanvasPanel-B1J2Xyge.js} +9768 -9704
  6. package/dist/{F0VideoPlayer-C-ZIeH8A.js → F0VideoPlayer-bh2rR4KH.js} +1 -1
  7. package/dist/{SheetViewer-ChErEQkX.js → SheetViewer-DGbfm6QO.js} +2 -2
  8. package/dist/{TextViewer-CbhWnpyu.js → TextViewer-BamDATU7.js} +2 -2
  9. package/dist/ai.d.ts +6 -6
  10. package/dist/ai.js +2 -2
  11. package/dist/component-status.d.ts +6 -6
  12. package/dist/component-status.js +1 -1
  13. package/dist/experimental.d.ts +70 -13
  14. package/dist/experimental.js +7 -7
  15. package/dist/f0.d.ts +70 -13
  16. package/dist/f0.js +10 -10
  17. package/dist/i18n-provider-defaults.d.ts +6 -6
  18. package/dist/{index-CoBPrnKx.js → index-B0Ommog8.js} +3 -3
  19. package/dist/{index-CvCKENlk.js → index-CuHbuGBo.js} +13556 -13323
  20. package/dist/index-v42ERHRP.js +4 -0
  21. package/dist/{pdfWorker-C0YKFzQc.js → pdfWorker-DyYHHcd2.js} +2 -2
  22. package/icons/app/MaximizeHorizontal.d.ts +4 -0
  23. package/icons/app/MaximizeHorizontal.d.ts.map +1 -0
  24. package/icons/app/MaximizeHorizontal.js +5 -0
  25. package/icons/app/MinimizeHorizontal.d.ts +4 -0
  26. package/icons/app/MinimizeHorizontal.d.ts.map +1 -0
  27. package/icons/app/MinimizeHorizontal.js +5 -0
  28. package/icons/app/index.d.ts +5 -2
  29. package/icons/app/index.d.ts.map +1 -1
  30. package/icons/app/index.js +5 -2
  31. package/package.json +2 -2
  32. package/dist/index-xjQIsRdA.js +0 -4
@@ -7296,6 +7296,36 @@ declare type GroupRecord<RecordType> = {
7296
7296
  records: RecordType[];
7297
7297
  };
7298
7298
 
7299
+ /**
7300
+ * Configuration for a single header group, keyed by `headerGroupId` in the
7301
+ * `headerGroups` visualization option.
7302
+ */
7303
+ declare type HeaderGroupDefinition = {
7304
+ /**
7305
+ * The label rendered in the spanning header row.
7306
+ */
7307
+ label: string;
7308
+ /**
7309
+ * Ids of the columns in this group that stay visible while the group is
7310
+ * collapsed — the group's "summary" columns. Providing this key is what
7311
+ * makes the group collapsible; omit it for a purely visual group.
7312
+ *
7313
+ * Ids are matched against each column's `id` (falling back to its `label`,
7314
+ * mirroring how column ids are resolved elsewhere). Ids that don't belong to
7315
+ * this group are ignored. A collapsed group always keeps at least one
7316
+ * column, so passing `[]` — or only unknown ids — leaves the group's first
7317
+ * column visible.
7318
+ */
7319
+ collapsedColumns?: ColId[];
7320
+ /**
7321
+ * Whether the group renders collapsed on first render. Only meaningful for
7322
+ * collapsible groups. Read once on mount; afterwards the collapsed state is
7323
+ * owned by the table.
7324
+ * @default false
7325
+ */
7326
+ defaultCollapsed?: boolean;
7327
+ };
7328
+
7299
7329
  export declare interface HeaderProps {
7300
7330
  primaryAction?: PrimaryActionButton | PrimaryDropdownAction<string>;
7301
7331
  secondaryActions?: HeaderSecondaryAction[];
@@ -10473,13 +10503,13 @@ declare type TableColumnDefinition<R extends RecordType, Sortings extends Sortin
10473
10503
  /**
10474
10504
  * Assigns this column to a header group. Columns with the same
10475
10505
  * headerGroupId are visually grouped under a shared spanning header.
10476
- * The label for each group is provided via `headerGroupLabels` in
10477
- * the visualization options.
10506
+ * Each group is configured via `headerGroups` in the visualization
10507
+ * options, which also controls whether the group can be collapsed.
10478
10508
  */
10479
10509
  headerGroupId?: string;
10480
10510
  };
10481
10511
 
10482
- declare function TableHead({ children, width, minWidth, sortState, onSortClick, info, infoIcon, sticky, hidden, align, className, colSpan, }: TableHeadProps): JSX_2.Element;
10512
+ declare function TableHead({ children, width, minWidth, sortState, onSortClick, onClick, info, infoIcon, sticky, hidden, align, className, colSpan, }: TableHeadProps): JSX_2.Element;
10483
10513
 
10484
10514
  declare type TableHeaderInfo = {
10485
10515
  title: string;
@@ -10526,10 +10556,16 @@ declare interface TableHeadProps {
10526
10556
  */
10527
10557
  sortState?: "none" | "asc" | "desc";
10528
10558
  /**
10529
- * Callback fired when the sort button is clicked.
10559
+ * Callback fired when the header is clicked to sort.
10530
10560
  * Use this to handle toggling between sort states.
10531
10561
  */
10532
10562
  onSortClick?: () => void;
10563
+ /**
10564
+ * Callback fired when the header cell is clicked, for cells that are
10565
+ * actionable beyond sorting. Like {@link onSortClick}, the whole cell is the
10566
+ * target — see the note on the cell's click handler.
10567
+ */
10568
+ onClick?: () => void;
10533
10569
  /**
10534
10570
  * Optional header info. When provided, displays an info icon next to the
10535
10571
  * header content. Pass a string for a short text tooltip, or a
@@ -10602,10 +10638,31 @@ declare type TableVisualizationOptions<R extends RecordType, _Filters extends Fi
10602
10638
  /** Maps a row to a visual variant: `"striped"`, `"striked"`, or `"none"`. */
10603
10639
  referenceRowType?: (item: R) => ReferenceType;
10604
10640
  /**
10605
- * Labels for header groups. Keys are headerGroupId values used in column
10606
- * definitions, values are the display labels rendered in the spanning header row.
10641
+ * Header group configuration. Keys are the `headerGroupId` values used in
10642
+ * column definitions. Pass a string for a plain spanning label, or a
10643
+ * {@link HeaderGroupDefinition} to also make the group collapsible:
10644
+ *
10645
+ * ```ts
10646
+ * headerGroups: {
10647
+ * personal: "Personal information",
10648
+ * january: {
10649
+ * label: "January",
10650
+ * collapsedColumns: ["january-total"],
10651
+ * defaultCollapsed: true,
10652
+ * },
10653
+ * }
10654
+ * ```
10655
+ *
10656
+ * A collapsed group hides every column in it except the ones listed in
10657
+ * `collapsedColumns`, and renders a toggle next to its label.
10658
+ */
10659
+ headerGroups?: Record<string, string | HeaderGroupDefinition>;
10660
+ /**
10661
+ * Called when the user collapses or expands a header group. Fires after the
10662
+ * table has applied the change; use it to persist the state, not to control
10663
+ * it.
10607
10664
  */
10608
- headerGroupLabels?: Record<string, string>;
10665
+ onHeaderGroupCollapsedChange?: (groupId: string, collapsed: boolean) => void;
10609
10666
  /**
10610
10667
  * Wraps the table in a rounded border container.
10611
10668
  * Useful for embedding the table inside panels or detail views.
@@ -11937,10 +11994,8 @@ declare module "@tiptap/core" {
11937
11994
 
11938
11995
  declare module "@tiptap/core" {
11939
11996
  interface Commands<ReturnType> {
11940
- videoEmbed: {
11941
- setVideoEmbed: (options: {
11942
- src: string;
11943
- }) => ReturnType;
11997
+ transcript: {
11998
+ insertTranscript: (data: TranscriptData) => ReturnType;
11944
11999
  };
11945
12000
  }
11946
12001
  }
@@ -11948,8 +12003,10 @@ declare module "@tiptap/core" {
11948
12003
 
11949
12004
  declare module "@tiptap/core" {
11950
12005
  interface Commands<ReturnType> {
11951
- transcript: {
11952
- insertTranscript: (data: TranscriptData) => ReturnType;
12006
+ videoEmbed: {
12007
+ setVideoEmbed: (options: {
12008
+ src: string;
12009
+ }) => ReturnType;
11953
12010
  };
11954
12011
  }
11955
12012
  }
@@ -1,10 +1,10 @@
1
- import { W as mc, X as xi, Y as hc, Z as pc, _ as gc, $ as bc, a0 as vc, a1 as yi, a2 as Kn, a3 as Nn, a4 as xc, a5 as he, a6 as jt, u as se, a7 as yc, a8 as wc, a9 as Ao, aa as cr, ab as En, ac as Ye, ad as Nc, ae as Cc, U as ye, z as Ic, A as kc, af as Ne, ag as Pa, J as Sc, B as Tc, m as Ae, ah as Nr, S as te, ai as rn, aj as Rc, ak as Ec, al as Lc, am as zc, an as Ac, ao as xt, ap as Ma, aq as Oa, ar as on, as as $t, at as Fc, e as Da, au as tn, av as Ba, aw as Bn, w as nt, r as $e, y as dr, t as Fo, v as Po, ax as Ut, ay as ur, az as _a, x as Mo, aA as $a, aB as Pc, aC as Ha, aD as Ge, s as rt, aE as Oo, aF as Wa, aG as jr, aH as Cr, aI as wi, aJ as Mc, aK as it, aL as ja, aM as so, aN as _n, aO as Oc, aP as Dc, aQ as Bc, aR as Ht, aS as Ir, aT as _c, aU as $c, aV as Hc, aW as Wc, aX as kr, aY as Ua, j as Va, aZ as jc, a_ as Uc, k as fr, a$ as Ga, b0 as Vc, b1 as Gc, b2 as Kc, b3 as qc, b4 as Yc, b5 as lo, b6 as Ka, b7 as qa, b8 as Xc, b9 as Jc, ba as Qc, bb as Ya, bc as Zc, bd as co, be as Xa, bf as ed, bg as Sr, bh as Ni, bi as td, bj as nd, bk as rd, bl as vn, bm as od, bn as id, bo as kn, bp as Ci, bq as uo, br as ad, bs as sd, b as Ja, bt as ld, a as cd, bu as Tr, bv as dd, g as ud, F as fd, bw as Qa, bx as md, o as Do, by as hd, bz as Bo, bA as an, H as pd, bB as gd, bC as bd, bD as vd, bE as Za, bF as xd, bG as yd, bH as wd, bI as fo, bJ as Nd, bK as Cd, bL as Id, bM as kd, bN as Sd, bO as Td, bP as Rd, bQ as mo, l as Rr, bR as _o, N as ho, O as po, bS as Ed, bT as Ld, bU as zd, bV as es, bW as ts, bX as ns, bY as Ad, bZ as Fd, b_ as Pd, b$ as Md, c0 as Od, c1 as rs, c2 as Dd, c3 as Bd, c4 as os, c5 as _d, c6 as $d, c7 as Hd, n as Wd, c8 as jd, c9 as is, Q as Ud, R as Vd, ca as as, cb as ss, cc as ls, cd as Gd, ce as Ii, cf as cs, cg as Kd, ch as qd, ci as Yd, cj as Xd, ck as Jd, cl as Qd, cm as Zd, cn as eu, co as tu, cp as Mt, cq as $o, cr as Ho, cs as ds, ct as Wo, cu as us, cv as fs, cw as nu, cx as ru, cy as ou, cz as iu, cA as au, cB as su, cC as lu, cD as ki, cE as cu, cF as du, cG as Si, cH as uu, cI as fu, cJ as mu, cK as hu, cL as ms, cM as pu, cN as gu } from "./F0CanvasPanel-CAY9Mu_e.js";
2
- import { cY as d1, cX as u1, d8 as f1, cU as m1, cV as h1, cO as p1, cP as g1, cP as b1, cQ as v1, cR as x1, db as y1, cW as w1, d4 as N1, d5 as C1, d9 as I1, cS as k1, c_ as S1, cZ as T1, T as R1, h as E1, d6 as L1, dc as z1, d7 as A1, da as F1, d3 as P1, d0 as M1, d2 as O1, c$ as D1, cT as B1, d1 as _1 } from "./F0CanvasPanel-CAY9Mu_e.js";
1
+ import { W as mc, X as xi, Y as hc, Z as pc, _ as gc, $ as bc, a0 as vc, a1 as yi, a2 as Kn, a3 as Nn, a4 as xc, a5 as he, a6 as jt, u as se, a7 as yc, a8 as wc, a9 as Ao, aa as cr, ab as En, ac as Ye, ad as Nc, ae as Cc, U as ye, z as Ic, A as kc, af as Ne, ag as Pa, J as Sc, B as Tc, m as Ae, ah as Nr, S as te, ai as rn, aj as Rc, ak as Ec, al as Lc, am as zc, an as Ac, ao as xt, ap as Ma, aq as Oa, ar as on, as as $t, at as Fc, e as Da, au as tn, av as Ba, aw as Bn, w as nt, r as $e, y as dr, t as Fo, v as Po, ax as Ut, ay as ur, az as _a, x as Mo, aA as $a, aB as Pc, aC as Ha, aD as Ge, s as rt, aE as Oo, aF as Wa, aG as jr, aH as Cr, aI as wi, aJ as Mc, aK as it, aL as ja, aM as so, aN as _n, aO as Oc, aP as Dc, aQ as Bc, aR as Ht, aS as Ir, aT as _c, aU as $c, aV as Hc, aW as Wc, aX as kr, aY as Ua, j as Va, aZ as jc, a_ as Uc, k as fr, a$ as Ga, b0 as Vc, b1 as Gc, b2 as Kc, b3 as qc, b4 as Yc, b5 as lo, b6 as Ka, b7 as qa, b8 as Xc, b9 as Jc, ba as Qc, bb as Ya, bc as Zc, bd as co, be as Xa, bf as ed, bg as Sr, bh as Ni, bi as td, bj as nd, bk as rd, bl as vn, bm as od, bn as id, bo as kn, bp as Ci, bq as uo, br as ad, bs as sd, b as Ja, bt as ld, a as cd, bu as Tr, bv as dd, g as ud, F as fd, bw as Qa, bx as md, o as Do, by as hd, bz as Bo, bA as an, H as pd, bB as gd, bC as bd, bD as vd, bE as Za, bF as xd, bG as yd, bH as wd, bI as fo, bJ as Nd, bK as Cd, bL as Id, bM as kd, bN as Sd, bO as Td, bP as Rd, bQ as mo, l as Rr, bR as _o, N as ho, O as po, bS as Ed, bT as Ld, bU as zd, bV as es, bW as ts, bX as ns, bY as Ad, bZ as Fd, b_ as Pd, b$ as Md, c0 as Od, c1 as rs, c2 as Dd, c3 as Bd, c4 as os, c5 as _d, c6 as $d, c7 as Hd, n as Wd, c8 as jd, c9 as is, Q as Ud, R as Vd, ca as as, cb as ss, cc as ls, cd as Gd, ce as Ii, cf as cs, cg as Kd, ch as qd, ci as Yd, cj as Xd, ck as Jd, cl as Qd, cm as Zd, cn as eu, co as tu, cp as Mt, cq as $o, cr as Ho, cs as ds, ct as Wo, cu as us, cv as fs, cw as nu, cx as ru, cy as ou, cz as iu, cA as au, cB as su, cC as lu, cD as ki, cE as cu, cF as du, cG as Si, cH as uu, cI as fu, cJ as mu, cK as hu, cL as ms, cM as pu, cN as gu } from "./F0CanvasPanel-B1J2Xyge.js";
2
+ import { cY as d1, cX as u1, d8 as f1, cU as m1, cV as h1, cO as p1, cP as g1, cP as b1, cQ as v1, cR as x1, db as y1, cW as w1, d4 as N1, d5 as C1, d9 as I1, cS as k1, c_ as S1, cZ as T1, T as R1, h as E1, d6 as L1, dc as z1, d7 as A1, da as F1, d3 as P1, d0 as M1, d2 as O1, c$ as D1, cT as B1, d1 as _1 } from "./F0CanvasPanel-B1J2Xyge.js";
3
3
  import { jsx as n, jsxs as h, Fragment as Fe } from "react/jsx-runtime";
4
4
  import Y, { forwardRef as Oe, useRef as D, useTransition as bu, useState as B, useLayoutEffect as $n, useId as Ln, useContext as zt, createContext as ht, useEffect as q, useCallback as U, useMemo as de, Fragment as _t, isValidElement as vu, cloneElement as hs, Suspense as Er, lazy as sn, createElement as rr, memo as ps, Children as gs } from "react";
5
5
  import { d as S, T as xu, a as yu, b as wu, f as qe, c as Nu, u as Cu } from "./tooltip-Cik7KBQT.js";
6
- import { C as Iu, P as ku, E as Su, a as jo, b as Hn, M as Tu, p as Ru, c as Eu, R as Ti, e as bs, u as Lu, f as zu, g as Au, h as Fu, i as Pu, j as Mu, O as vs, k as xs, S as Ou, A as Du, B as Bu, L as _u, l as $u, V as Hu, m as Wu, n as ju, o as Uu } from "./index-CvCKENlk.js";
7
- import { a5 as H1, a6 as W1, v as j1, w as U1, s as V1, N as G1, x as K1, H as q1, ag as Y1, K as X1, t as J1, a3 as Q1, ai as Z1, ah as ey, X as ty, al as ny, F as ry, a0 as oy, Z as iy, T as ay, an as sy, U as ly, a1 as cy, a2 as dy, y as uy, aj as fy, ak as my, W as hy, a4 as py, ad as gy, af as by, z as vy, G as xy, I as yy, _ as wy, am as Ny, $ as Cy, Y as Iy, ao as ky, D as Sy, J as Ty, q as Ry, r as Ey, a9 as Ly, aa as zy, a7 as Ay, ae as Fy, Q as Py, ab as My, a8 as Oy, ac as Dy } from "./index-CvCKENlk.js";
6
+ import { C as Iu, P as ku, E as Su, a as jo, b as Hn, M as Tu, p as Ru, c as Eu, R as Ti, e as bs, u as Lu, f as zu, g as Au, h as Fu, i as Pu, j as Mu, O as vs, k as xs, S as Ou, A as Du, B as Bu, L as _u, l as $u, V as Hu, m as Wu, n as ju, o as Uu } from "./index-CuHbuGBo.js";
7
+ import { a5 as H1, a6 as W1, v as j1, w as U1, s as V1, N as G1, x as K1, H as q1, ag as Y1, K as X1, t as J1, a3 as Q1, ai as Z1, ah as ey, X as ty, al as ny, F as ry, a0 as oy, Z as iy, T as ay, an as sy, U as ly, a1 as cy, a2 as dy, y as uy, aj as fy, ak as my, W as hy, a4 as py, ad as gy, af as by, z as vy, G as xy, I as yy, _ as wy, am as Ny, $ as Cy, Y as Iy, ao as ky, D as Sy, J as Ty, q as Ry, r as Ey, a9 as Ly, aa as zy, a7 as Ay, ae as Fy, Q as Py, ab as My, a8 as Oy, ac as Dy } from "./index-CuHbuGBo.js";
8
8
  import Vu from "react-dom";
9
9
  const Gu = mc("Search", [
10
10
  ["circle", { cx: "11", cy: "11", r: "8", key: "4ej97u" }],
@@ -7911,7 +7911,7 @@ const ul = () => Vt(rl, "useChatJump"), tp = () => Vt(ol, "useChatHighlightedId"
7911
7911
  }, Pr = (e, t) => {
7912
7912
  const r = document.createElement("a");
7913
7913
  r.href = e, r.download = t, r.rel = "noreferrer", r.click();
7914
- }, ip = sn(() => import("./ChatPdfThumbnail-C_HVLcVK.js")), ap = sn(() => import("./ChatSheetThumbnail-BvnxT-4A.js")), sp = sn(() => import("./ChatDocxThumbnail-DzNPNFya.js")), lp = sn(() => import("./ChatTextThumbnail-yVt_iYi7.js")), cp = 288, dp = 160, up = (e) => {
7914
+ }, ip = sn(() => import("./ChatPdfThumbnail-CwT_S_6-.js")), ap = sn(() => import("./ChatSheetThumbnail-BvnxT-4A.js")), sp = sn(() => import("./ChatDocxThumbnail-DzNPNFya.js")), lp = sn(() => import("./ChatTextThumbnail-yVt_iYi7.js")), cp = 288, dp = 160, up = (e) => {
7915
7915
  const [t, r] = B(!1);
7916
7916
  return q(() => {
7917
7917
  const o = e.current;
@@ -9954,7 +9954,7 @@ const Ep = {
9954
9954
  ] })
9955
9955
  ] }) });
9956
9956
  }, Hp = sn(
9957
- () => import("./index-CoBPrnKx.js").then((e) => e.i).then((e) => ({
9957
+ () => import("./index-B0Ommog8.js").then((e) => e.i).then((e) => ({
9958
9958
  default: e.F0PdfViewer
9959
9959
  }))
9960
9960
  ), Wp = () => {
@@ -14231,7 +14231,7 @@ const Ab = (e) => {
14231
14231
  )
14232
14232
  ] });
14233
14233
  }, jb = sn(
14234
- () => import("./index-xjQIsRdA.js").then((e) => ({
14234
+ () => import("./index-v42ERHRP.js").then((e) => ({
14235
14235
  default: e.F0VideoPlayer
14236
14236
  }))
14237
14237
  ), Ub = ({
package/dist/f0.d.ts CHANGED
@@ -13274,6 +13274,36 @@ export declare type GroupRecord<RecordType> = {
13274
13274
  */
13275
13275
  export declare function hasF0Config(schema: ZodTypeAny): boolean;
13276
13276
 
13277
+ /**
13278
+ * Configuration for a single header group, keyed by `headerGroupId` in the
13279
+ * `headerGroups` visualization option.
13280
+ */
13281
+ declare type HeaderGroupDefinition = {
13282
+ /**
13283
+ * The label rendered in the spanning header row.
13284
+ */
13285
+ label: string;
13286
+ /**
13287
+ * Ids of the columns in this group that stay visible while the group is
13288
+ * collapsed — the group's "summary" columns. Providing this key is what
13289
+ * makes the group collapsible; omit it for a purely visual group.
13290
+ *
13291
+ * Ids are matched against each column's `id` (falling back to its `label`,
13292
+ * mirroring how column ids are resolved elsewhere). Ids that don't belong to
13293
+ * this group are ignored. A collapsed group always keeps at least one
13294
+ * column, so passing `[]` — or only unknown ids — leaves the group's first
13295
+ * column visible.
13296
+ */
13297
+ collapsedColumns?: ColId[];
13298
+ /**
13299
+ * Whether the group renders collapsed on first render. Only meaningful for
13300
+ * collapsible groups. Read once on mount; afterwards the collapsed state is
13301
+ * owned by the table.
13302
+ * @default false
13303
+ */
13304
+ defaultCollapsed?: boolean;
13305
+ };
13306
+
13277
13307
  export declare interface HeaderProps {
13278
13308
  primaryAction?: PrimaryActionButton | PrimaryDropdownAction<string>;
13279
13309
  secondaryActions?: HeaderSecondaryAction[];
@@ -16753,13 +16783,13 @@ declare type TableColumnDefinition<R extends RecordType, Sortings extends Sortin
16753
16783
  /**
16754
16784
  * Assigns this column to a header group. Columns with the same
16755
16785
  * headerGroupId are visually grouped under a shared spanning header.
16756
- * The label for each group is provided via `headerGroupLabels` in
16757
- * the visualization options.
16786
+ * Each group is configured via `headerGroups` in the visualization
16787
+ * options, which also controls whether the group can be collapsed.
16758
16788
  */
16759
16789
  headerGroupId?: string;
16760
16790
  };
16761
16791
 
16762
- declare function TableHead({ children, width, minWidth, sortState, onSortClick, info, infoIcon, sticky, hidden, align, className, colSpan, }: TableHeadProps): JSX_2.Element;
16792
+ declare function TableHead({ children, width, minWidth, sortState, onSortClick, onClick, info, infoIcon, sticky, hidden, align, className, colSpan, }: TableHeadProps): JSX_2.Element;
16763
16793
 
16764
16794
  declare type TableHeaderInfo = {
16765
16795
  title: string;
@@ -16806,10 +16836,16 @@ declare interface TableHeadProps {
16806
16836
  */
16807
16837
  sortState?: "none" | "asc" | "desc";
16808
16838
  /**
16809
- * Callback fired when the sort button is clicked.
16839
+ * Callback fired when the header is clicked to sort.
16810
16840
  * Use this to handle toggling between sort states.
16811
16841
  */
16812
16842
  onSortClick?: () => void;
16843
+ /**
16844
+ * Callback fired when the header cell is clicked, for cells that are
16845
+ * actionable beyond sorting. Like {@link onSortClick}, the whole cell is the
16846
+ * target — see the note on the cell's click handler.
16847
+ */
16848
+ onClick?: () => void;
16813
16849
  /**
16814
16850
  * Optional header info. When provided, displays an info icon next to the
16815
16851
  * header content. Pass a string for a short text tooltip, or a
@@ -16884,10 +16920,31 @@ declare type TableVisualizationOptions<R extends RecordType, _Filters extends Fi
16884
16920
  /** Maps a row to a visual variant: `"striped"`, `"striked"`, or `"none"`. */
16885
16921
  referenceRowType?: (item: R) => ReferenceType;
16886
16922
  /**
16887
- * Labels for header groups. Keys are headerGroupId values used in column
16888
- * definitions, values are the display labels rendered in the spanning header row.
16923
+ * Header group configuration. Keys are the `headerGroupId` values used in
16924
+ * column definitions. Pass a string for a plain spanning label, or a
16925
+ * {@link HeaderGroupDefinition} to also make the group collapsible:
16926
+ *
16927
+ * ```ts
16928
+ * headerGroups: {
16929
+ * personal: "Personal information",
16930
+ * january: {
16931
+ * label: "January",
16932
+ * collapsedColumns: ["january-total"],
16933
+ * defaultCollapsed: true,
16934
+ * },
16935
+ * }
16936
+ * ```
16937
+ *
16938
+ * A collapsed group hides every column in it except the ones listed in
16939
+ * `collapsedColumns`, and renders a toggle next to its label.
16940
+ */
16941
+ headerGroups?: Record<string, string | HeaderGroupDefinition>;
16942
+ /**
16943
+ * Called when the user collapses or expands a header group. Fires after the
16944
+ * table has applied the change; use it to persist the state, not to control
16945
+ * it.
16889
16946
  */
16890
- headerGroupLabels?: Record<string, string>;
16947
+ onHeaderGroupCollapsedChange?: (groupId: string, collapsed: boolean) => void;
16891
16948
  /**
16892
16949
  * Wraps the table in a rounded border container.
16893
16950
  * Useful for embedding the table inside panels or detail views.
@@ -18932,10 +18989,8 @@ declare module "@tiptap/core" {
18932
18989
 
18933
18990
  declare module "@tiptap/core" {
18934
18991
  interface Commands<ReturnType> {
18935
- videoEmbed: {
18936
- setVideoEmbed: (options: {
18937
- src: string;
18938
- }) => ReturnType;
18992
+ transcript: {
18993
+ insertTranscript: (data: TranscriptData) => ReturnType;
18939
18994
  };
18940
18995
  }
18941
18996
  }
@@ -18943,8 +18998,10 @@ declare module "@tiptap/core" {
18943
18998
 
18944
18999
  declare module "@tiptap/core" {
18945
19000
  interface Commands<ReturnType> {
18946
- transcript: {
18947
- insertTranscript: (data: TranscriptData) => ReturnType;
19001
+ videoEmbed: {
19002
+ setVideoEmbed: (options: {
19003
+ src: string;
19004
+ }) => ReturnType;
18948
19005
  };
18949
19006
  }
18950
19007
  }
package/dist/f0.js CHANGED
@@ -1,18 +1,18 @@
1
- import { gZ as ZL, w as tt, cp as bb, a6 as fn, gH as jL, a5 as ln, f6 as MV, aM as KL, s as Hv, S as ee, u as He, U as Qe, dJ as kl, ac as fl, a0 as EV, af as pd, c9 as Sa, r as Ut, au as Zc, g_ as LV, g$ as _w, h0 as Ur, h1 as au, h2 as NV, h3 as jo, h4 as jc, h5 as QL, aD as el, gE as By, h6 as IV, h7 as kV, h8 as PV, h9 as bw, ej as RV, ha as OV, hb as JL, hc as BV, hd as zV, he as eN, hf as VV, t as Wv, v as Uv, m as et, x as $v, y as Or, N as FV, O as GV, z as Kc, A as Qc, B as Jc, g9 as zy, al as Ot, aC as hl, an as Ca, aK as xb, aS as wb, hg as HV, bx as WV, ee as xw, n as tN, o as dl, by as UV, d8 as gd, cn as rN, hh as $V, gG as ww, fL as YV, hi as Sw, fF as XV, hj as qV, c4 as nN, cc as iN, fU as Vy, aX as ZV, dj as Fy, cd as aN, gd as Pl, ge as ef, gg as oN, gN as jV, g7 as sN, g6 as KV, hk as Yv, dS as Sb, gu as QV, as as lN, fE as JV, cH as eF, gW as Cb, bU as uN, bZ as tF, b_ as rF, b$ as nF, d as iF, ae as cN, dq as Ko, e2 as fN, dR as hN, cK as Tb, c6 as dN, dd as Db, E as tl, G as rl, J as nl, K as il, ga as sa, ce as vN, j as aF, dP as md, bI as vl, H as Dr, cS as oF, ar as pN, dT as Gy, ef as gc, cR as sF, ao as Rl, bl as gN, b4 as lF, gn as Nr, hl as uF, hm as cF, hn as mN, ho as Xv, hp as fF, hq as hF, Q as yN, R as _N, ec as dF, hr as vF, be as bN, ca as pF, cb as gF, aN as Ol, ct as Bl, cA as tf, e4 as mF, cq as yF, bw as _F, ah as xN, bA as bF, aq as xF, bS as Cw, e1 as mc, fH as wF, fI as SF, hs as CF, bk as TF, cu as DF, l as wN, av as AF, ck as MF, ht as EF, gK as LF, bo as NF, aa as SN, hu as CN, hv as IF, hw as kF, I as PF, hx as RF, hy as OF, hz as BF, hA as zF } from "./F0CanvasPanel-CAY9Mu_e.js";
2
- import { hR as zfe, C as Vfe, D as Ffe, ax as Gfe, c as Hfe, F as Wfe, a as Ufe, hK as $fe, f as Yfe, bD as Xfe, bd as qfe, cC as Zfe, bQ as jfe, ay as Kfe, aH as Qfe, aR as Jfe, ei as ehe, aZ as the, cO as rhe, g as nhe, c0 as ihe, cP as ahe, hF as ohe, hW as she, bR as lhe, e as uhe, c7 as che, k as fhe, cv as hhe, hM as dhe, bs as vhe, hN as phe, hP as ghe, hQ as mhe, db as yhe, hT as _he, d4 as bhe, d5 as xhe, P as whe, d9 as She, hO as Che, d6 as The, hS as Dhe, hX as Ahe, hC as Mhe, hD as Ehe, hE as Lhe, hB as Nhe, d7 as Ihe, hV as khe, hL as Phe, hI as Rhe, hH as Ohe, da as Bhe, g4 as zhe, gv as Vhe, hU as Fhe, bh as Ghe, d3 as Hhe, d0 as Whe, d2 as Uhe, c$ as $he, hJ as Yhe, gx as Xhe, gr as qhe, gh as Zhe, h_ as jhe, cT as Khe, d1 as Qhe, hZ as Jhe, bM as ede, ea as tde, g3 as rde, gi as nde, b as ide, bP as ade, gM as ode, bf as sde, eb as lde, hG as ude, gt as cde, gs as fde, hY as hde } from "./F0CanvasPanel-CAY9Mu_e.js";
1
+ import { g$ as ZL, w as tt, cp as bb, a6 as fn, gJ as jL, a5 as ln, f8 as MV, aM as KL, s as Hv, S as ee, u as He, U as Qe, dJ as kl, ac as fl, a0 as EV, af as pd, c9 as Sa, r as Ut, au as Zc, h0 as LV, h1 as _w, h2 as Ur, h3 as au, h4 as NV, h5 as jo, h6 as jc, h7 as QL, aD as el, gG as By, h8 as IV, h9 as kV, ha as PV, hb as bw, el as RV, hc as OV, hd as JL, he as BV, hf as zV, hg as eN, hh as VV, t as Wv, v as Uv, m as et, x as $v, y as Or, N as FV, O as GV, z as Kc, A as Qc, B as Jc, gb as zy, al as Ot, aC as hl, an as Ca, aK as xb, aS as wb, hi as HV, bx as WV, eg as xw, n as tN, o as dl, by as UV, d8 as gd, cn as rN, hj as $V, gI as ww, fN as YV, hk as Sw, fH as XV, hl as qV, c4 as nN, cc as iN, fW as Vy, aX as ZV, dj as Fy, cd as aN, gf as Pl, gg as ef, gi as oN, gP as jV, g9 as sN, g8 as KV, hm as Yv, dS as Sb, gw as QV, as as lN, fG as JV, cH as eF, gY as Cb, bU as uN, bZ as tF, b_ as rF, b$ as nF, d as iF, ae as cN, dq as Ko, e4 as fN, dR as hN, cK as Tb, c6 as dN, dd as Db, E as tl, G as rl, J as nl, K as il, gc as sa, ce as vN, j as aF, dP as md, bI as vl, H as Dr, cS as oF, ar as pN, dT as Gy, eh as gc, cR as sF, ao as Rl, bl as gN, b4 as lF, gp as Nr, hn as uF, ho as cF, hp as mN, hq as Xv, hr as fF, hs as hF, Q as yN, R as _N, ee as dF, ht as vF, be as bN, ca as pF, cb as gF, aN as Ol, ct as Bl, cA as tf, e6 as mF, cq as yF, bw as _F, ah as xN, bA as bF, aq as xF, bS as Cw, e3 as mc, fJ as wF, fK as SF, hu as CF, bk as TF, cu as DF, l as wN, av as AF, ck as MF, hv as EF, gM as LF, bo as NF, aa as SN, hw as CN, hx as IF, hy as kF, I as PF, hz as RF, hA as OF, hB as BF, hC as zF } from "./F0CanvasPanel-B1J2Xyge.js";
2
+ import { hT as zfe, C as Vfe, D as Ffe, ax as Gfe, c as Hfe, F as Wfe, a as Ufe, hM as $fe, f as Yfe, bD as Xfe, bd as qfe, cC as Zfe, bQ as jfe, ay as Kfe, aH as Qfe, aR as Jfe, ek as ehe, aZ as the, cO as rhe, g as nhe, c0 as ihe, cP as ahe, hH as ohe, hY as she, bR as lhe, e as uhe, c7 as che, k as fhe, cv as hhe, hO as dhe, bs as vhe, hP as phe, hR as ghe, hS as mhe, db as yhe, hV as _he, d4 as bhe, d5 as xhe, P as whe, d9 as She, hQ as Che, d6 as The, hU as Dhe, hZ as Ahe, hE as Mhe, hF as Ehe, hG as Lhe, hD as Nhe, d7 as Ihe, hX as khe, hN as Phe, hK as Rhe, hJ as Ohe, da as Bhe, g6 as zhe, gx as Vhe, hW as Fhe, bh as Ghe, d3 as Hhe, d0 as Whe, d2 as Uhe, c$ as $he, hL as Yhe, gz as Xhe, gt as qhe, gj as Zhe, i0 as jhe, cT as Khe, d1 as Qhe, h$ as Jhe, bM as ede, ec as tde, g5 as rde, gk as nde, b as ide, bP as ade, gO as ode, bf as sde, ed as lde, hI as ude, gv as cde, gu as fde, h_ as hde } from "./F0CanvasPanel-B1J2Xyge.js";
3
3
  import { jsx as w, jsxs as B, Fragment as rt } from "react/jsx-runtime";
4
4
  import * as yt from "react";
5
5
  import VF, { forwardRef as Sr, useRef as ce, useImperativeHandle as FF, Children as yd, createContext as ka, useContext as Qo, useState as ue, useMemo as ye, useEffect as Ae, useCallback as ve, useLayoutEffect as Hy, isValidElement as TN, Fragment as zl, useSyncExternalStore as pl, useId as rc, memo as GF } from "react";
6
- import { D as HF, E as WF, G as UF, H as _d, I as Ab, J as DN, K as AN, L as Zn, M as $F, N as YF, O as XF, P as qF, Q as ZF, F as jF } from "./F0AiProcessingOverlay-YSzHusB4.js";
7
- import { A as vde, C as pde, t as gde, s as mde, v as yde, y as _de, l as bde, i as xde, q as wde, z as Sde, B as Cde, p as Tde, r as Dde, j as Ade, e as Mde, g as Ede, k as Lde, T as Nde, w as Ide, h as kde, a as Pde, n as Rde, m as Ode, o as Bde, b as zde, f as Vde, x as Fde, c as Gde, d as Hde, u as Wde } from "./F0AiProcessingOverlay-YSzHusB4.js";
6
+ import { D as HF, E as WF, G as UF, H as _d, I as Ab, J as DN, K as AN, L as Zn, M as $F, N as YF, O as XF, P as qF, Q as ZF, F as jF } from "./F0AiProcessingOverlay-iAwbCALh.js";
7
+ import { A as vde, C as pde, t as gde, s as mde, v as yde, y as _de, l as bde, i as xde, q as wde, z as Sde, B as Cde, p as Tde, r as Dde, j as Ade, e as Mde, g as Ede, k as Lde, T as Nde, w as Ide, h as kde, a as Pde, n as Rde, m as Ode, o as Bde, b as zde, f as Vde, x as Fde, c as Gde, d as Hde, u as Wde } from "./F0AiProcessingOverlay-iAwbCALh.js";
8
8
  import { d as te, u as rf, h as KF, i as Ys, P as nf, g as Vl, j as QF, f as Pa } from "./tooltip-Cik7KBQT.js";
9
9
  import { createPortal as qv } from "react-dom";
10
- import { C as JF, ap as e5, aq as t5, ar as r5, as as Tw, at as n5, au as i5, av as a5, aw as o5, ax as s5, ay as l5, az as u5, j as c5, F as MN, aA as f5, aB as h5, aC as d5, aD as v5, aE as p5, aF as EN, aG as g5, aH as Zv, aI as Va, aJ as m5, aK as Mb, aL as Eb, K as y5, aM as _5, aN as hs, aO as LN, aP as b5, aQ as x5, aR as w5, aS as S5, aT as C5, aU as T5, a0 as D5, ag as A5, aV as M5, X as E5, E as L5, a as N5, e as jv, R as Lb, u as Nb, _ as NN, O as Ib, aW as IN, aX as Dw, aY as kb, s as I5, f as kN, a4 as PN, aZ as k5, a_ as P5, a$ as R5, b0 as O5, M as B5 } from "./index-CvCKENlk.js";
11
- import { v as $de, w as Yde, N as Xde, x as qde, H as Zde, bm as jde, bl as Kde, bf as Qde, b2 as Jde, b1 as eve, b3 as tve, b4 as rve, b6 as nve, b7 as ive, ai as ave, ah as ove, al as sve, Z as lve, T as uve, an as cve, U as fve, y as hve, bn as dve, aj as vve, ak as pve, W as gve, z as mve, P as yve, G as _ve, I as bve, am as xve, Y as wve, ao as Sve, D as Cve, J as Tve, bp as Dve, q as Ave, r as Mve, be as Eve, bj as Lve, bj as Nve, bk as Ive, ba as kve, b9 as Pve, bo as Rve, ae as Ove, bc as Bve, bd as zve, Q as Vve, bq as Fve, br as Gve, g as Hve, bg as Wve, bh as Uve, bi as $ve, b5 as Yve, bb as Xve, h as qve, k as Zve, b8 as jve, bs as Kve } from "./index-CvCKENlk.js";
12
- import { l as Wy, c as RN, d as bd, r as Uy } from "./F0VideoPlayer-C-ZIeH8A.js";
13
- import { F as Jve } from "./F0VideoPlayer-C-ZIeH8A.js";
14
- import { F as tpe, p as rpe } from "./index-CoBPrnKx.js";
15
- import { c as ipe } from "./pdfWorker-C0YKFzQc.js";
10
+ import { C as JF, ap as e5, aq as t5, ar as r5, as as Tw, at as n5, au as i5, av as a5, aw as o5, ax as s5, ay as l5, az as u5, j as c5, F as MN, aA as f5, aB as h5, aC as d5, aD as v5, aE as p5, aF as EN, aG as g5, aH as Zv, aI as Va, aJ as m5, aK as Mb, aL as Eb, K as y5, aM as _5, aN as hs, aO as LN, aP as b5, aQ as x5, aR as w5, aS as S5, aT as C5, aU as T5, a0 as D5, ag as A5, aV as M5, X as E5, E as L5, a as N5, e as jv, R as Lb, u as Nb, _ as NN, O as Ib, aW as IN, aX as Dw, aY as kb, s as I5, f as kN, a4 as PN, aZ as k5, a_ as P5, a$ as R5, b0 as O5, M as B5 } from "./index-CuHbuGBo.js";
11
+ import { v as $de, w as Yde, N as Xde, x as qde, H as Zde, bm as jde, bl as Kde, bf as Qde, b2 as Jde, b1 as eve, b3 as tve, b4 as rve, b6 as nve, b7 as ive, ai as ave, ah as ove, al as sve, Z as lve, T as uve, an as cve, U as fve, y as hve, bn as dve, aj as vve, ak as pve, W as gve, z as mve, P as yve, G as _ve, I as bve, am as xve, Y as wve, ao as Sve, D as Cve, J as Tve, bp as Dve, q as Ave, r as Mve, be as Eve, bj as Lve, bj as Nve, bk as Ive, ba as kve, b9 as Pve, bo as Rve, ae as Ove, bc as Bve, bd as zve, Q as Vve, bq as Fve, br as Gve, g as Hve, bg as Wve, bh as Uve, bi as $ve, b5 as Yve, bb as Xve, h as qve, k as Zve, b8 as jve, bs as Kve } from "./index-CuHbuGBo.js";
12
+ import { l as Wy, c as RN, d as bd, r as Uy } from "./F0VideoPlayer-bh2rR4KH.js";
13
+ import { F as Jve } from "./F0VideoPlayer-bh2rR4KH.js";
14
+ import { F as tpe, p as rpe } from "./index-B0Ommog8.js";
15
+ import { c as ipe } from "./pdfWorker-DyYHHcd2.js";
16
16
  import { g as z5 } from "./_commonjsHelpers-ByX85dGu.js";
17
17
  import { utils as al, write as ON } from "./xlsx-CzlURDDb.js";
18
18
  import { defaultTranslations as ope } from "./i18n-provider-defaults.js";
@@ -1151,10 +1151,8 @@ declare module "@tiptap/core" {
1151
1151
 
1152
1152
  declare module "@tiptap/core" {
1153
1153
  interface Commands<ReturnType> {
1154
- videoEmbed: {
1155
- setVideoEmbed: (options: {
1156
- src: string;
1157
- }) => ReturnType;
1154
+ transcript: {
1155
+ insertTranscript: (data: TranscriptData) => ReturnType;
1158
1156
  };
1159
1157
  }
1160
1158
  }
@@ -1162,8 +1160,10 @@ declare module "@tiptap/core" {
1162
1160
 
1163
1161
  declare module "@tiptap/core" {
1164
1162
  interface Commands<ReturnType> {
1165
- transcript: {
1166
- insertTranscript: (data: TranscriptData) => ReturnType;
1163
+ videoEmbed: {
1164
+ setVideoEmbed: (options: {
1165
+ src: string;
1166
+ }) => ReturnType;
1167
1167
  };
1168
1168
  }
1169
1169
  }
@@ -1,7 +1,7 @@
1
- import { S as L, m as ye, u as Z, n as Se, o as Re, i as ke, j as _e, k as Ne, q as Ce, l as Le, w as Fe, r as Ve, s as Te } from "./F0CanvasPanel-CAY9Mu_e.js";
1
+ import { S as L, m as ye, u as Z, n as Se, o as Re, i as ke, j as _e, k as Ne, q as Ce, l as Le, w as Fe, r as Ve, s as Te } from "./F0CanvasPanel-B1J2Xyge.js";
2
2
  import { jsx as t, jsxs as y } from "react/jsx-runtime";
3
3
  import { lazy as J, forwardRef as ne, Suspense as He, useState as V, useRef as A, useMemo as te, useCallback as w, useEffect as T } from "react";
4
- import { e as Ee, D as Ue, P as je, c as De } from "./pdfWorker-C0YKFzQc.js";
4
+ import { e as Ee, D as Ue, P as je, c as De } from "./pdfWorker-DyYHHcd2.js";
5
5
  import { F as We } from "./Printer-BD-FEi_2.js";
6
6
  import { d as ae } from "./tooltip-Cik7KBQT.js";
7
7
  import './index.css';const Oe = ({
@@ -222,7 +222,7 @@ import './index.css';const Oe = ({
222
222
  }), i;
223
223
  };
224
224
  Ee();
225
- const qe = J(() => import("./SheetViewer-ChErEQkX.js")), Ge = J(() => import("./DocxViewer-BSoDHr_N.js")), Ze = J(() => import("./TextViewer-CbhWnpyu.js")), oe = 48, se = ne(
225
+ const qe = J(() => import("./SheetViewer-DGbfm6QO.js")), Ge = J(() => import("./DocxViewer-BEqLyV5B.js")), Ze = J(() => import("./TextViewer-BamDATU7.js")), oe = 48, se = ne(
226
226
  (o, a) => {
227
227
  const { kind: e = "pdf", mimeType: i, ...l } = o;
228
228
  if (e === "pdf") return /* @__PURE__ */ t(le, { ref: a, ...l });