@factorialco/f0-react 4.5.1 → 4.6.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
@@ -4721,11 +4721,8 @@ declare module "@tiptap/core" {
4721
4721
 
4722
4722
  declare module "@tiptap/core" {
4723
4723
  interface Commands<ReturnType> {
4724
- enhanceHighlight: {
4725
- setEnhanceHighlight: (from: number, to: number, options?: {
4726
- placeholder?: string;
4727
- }) => ReturnType;
4728
- clearEnhanceHighlight: () => ReturnType;
4724
+ moodTracker: {
4725
+ insertMoodTracker: (data: MoodTrackerData) => ReturnType;
4729
4726
  };
4730
4727
  }
4731
4728
  }
@@ -4733,8 +4730,11 @@ declare module "@tiptap/core" {
4733
4730
 
4734
4731
  declare module "@tiptap/core" {
4735
4732
  interface Commands<ReturnType> {
4736
- moodTracker: {
4737
- insertMoodTracker: (data: MoodTrackerData) => ReturnType;
4733
+ enhanceHighlight: {
4734
+ setEnhanceHighlight: (from: number, to: number, options?: {
4735
+ placeholder?: string;
4736
+ }) => ReturnType;
4737
+ clearEnhanceHighlight: () => ReturnType;
4738
4738
  };
4739
4739
  }
4740
4740
  }
@@ -7702,10 +7702,11 @@ declare interface PromiseState<T> {
7702
7702
  declare type PropertyDefinition_2<T> = {
7703
7703
  label: string;
7704
7704
  /**
7705
- * Optional tooltip text. When provided, displays an info icon next to the header content
7706
- * that shows this text in a tooltip when hovered.
7705
+ * Optional header info. Pass a string for a short text tooltip, or a
7706
+ * {@link TableHeaderInfo} object for a structured hoverable card. Only
7707
+ * rendered by the table visualization's column headers.
7707
7708
  */
7708
- info?: string;
7709
+ info?: string | TableHeaderInfo;
7709
7710
  /**
7710
7711
  * Function that extracts and formats the value from an item.
7711
7712
  * Should return an object matching the expected args for the specified renderer type.
@@ -8491,6 +8492,20 @@ declare type TableColumnDefinition<R extends RecordType, Sortings extends Sortin
8491
8492
 
8492
8493
  declare function TableHead({ children, width, minWidth, sortState, onSortClick, info, infoIcon, sticky, hidden, align, className, colSpan, }: TableHeadProps): JSX_2.Element;
8493
8494
 
8495
+ declare type TableHeaderInfo = {
8496
+ title: string;
8497
+ description: string;
8498
+ link?: {
8499
+ label: string;
8500
+ onClick: () => void;
8501
+ };
8502
+ /**
8503
+ * Accessible name for the info-icon trigger. Defaults to the column label
8504
+ * when the header's children are a string.
8505
+ */
8506
+ label?: string;
8507
+ };
8508
+
8494
8509
  declare interface TableHeadProps {
8495
8510
  children: React.ReactNode;
8496
8511
  /**
@@ -8527,10 +8542,11 @@ declare interface TableHeadProps {
8527
8542
  */
8528
8543
  onSortClick?: () => void;
8529
8544
  /**
8530
- * Optional tooltip text. When provided, displays an info icon next to the header content
8531
- * that shows this text in a tooltip when hovered.
8545
+ * Optional header info. When provided, displays an info icon next to the
8546
+ * header content. Pass a string for a short text tooltip, or a
8547
+ * {@link TableHeaderInfo} object for a structured hoverable card.
8532
8548
  */
8533
- info?: string;
8549
+ info?: string | TableHeaderInfo;
8534
8550
  /**
8535
8551
  * Icon to display when info is provided.
8536
8552
  * @default InfoCircleLine
@@ -9764,11 +9780,8 @@ declare module "@tiptap/core" {
9764
9780
 
9765
9781
  declare module "@tiptap/core" {
9766
9782
  interface Commands<ReturnType> {
9767
- enhanceHighlight: {
9768
- setEnhanceHighlight: (from: number, to: number, options?: {
9769
- placeholder?: string;
9770
- }) => ReturnType;
9771
- clearEnhanceHighlight: () => ReturnType;
9783
+ moodTracker: {
9784
+ insertMoodTracker: (data: MoodTrackerData) => ReturnType;
9772
9785
  };
9773
9786
  }
9774
9787
  }
@@ -9776,8 +9789,11 @@ declare module "@tiptap/core" {
9776
9789
 
9777
9790
  declare module "@tiptap/core" {
9778
9791
  interface Commands<ReturnType> {
9779
- moodTracker: {
9780
- insertMoodTracker: (data: MoodTrackerData) => ReturnType;
9792
+ enhanceHighlight: {
9793
+ setEnhanceHighlight: (from: number, to: number, options?: {
9794
+ placeholder?: string;
9795
+ }) => ReturnType;
9796
+ clearEnhanceHighlight: () => ReturnType;
9781
9797
  };
9782
9798
  }
9783
9799
  }
@@ -2,8 +2,8 @@ import { h as pa, B as ba, i as xa, j as va, k as Dt, l as Be, m as Te, n as ya,
2
2
  import { c3 as Jc, c2 as Zc, cf as Xc, b$ as Qc, c0 as ed, bT as td, bU as nd, ci as ad, bV as rd, bW as id, cj as ld, c1 as sd, cb as od, cc as cd, cg as dd, bX as ud, c5 as fd, c4 as md, bY as hd, bZ as gd, cd as pd, ck as bd, ce as xd, ch as vd, ca as yd, c7 as wd, c9 as Nd, c6 as Cd, b_ as Id, c8 as kd } from "./F0CanvasPanel-NAs7-9VU.js";
3
3
  import { jsx as e, jsxs as o, Fragment as X } from "react/jsx-runtime";
4
4
  import ue, { forwardRef as H, useRef as j, useTransition as ri, useState as D, useLayoutEffect as Tn, useId as pt, useContext as Pe, createContext as Qe, useEffect as W, useCallback as ne, useMemo as q, Fragment as ii, isValidElement as li, cloneElement as zn, Children as Rn } from "react";
5
- import { C as si, P as oi, a as Bn, M as ci, p as di, b as ui, R as Mt, c as $n, u as fi, d as mi, e as hi, f as gi, g as pi, h as Mn, S as bi, A as xi, B as vi, L as yi, i as wi, V as Ni, j as Ci, k as Ii, l as ki, O as Si } from "./useDataCollectionSource-CQy3qOAq.js";
6
- import { r as Fd, s as Ad, o as Ld, H as Od, t as Pd, z as Ed, a8 as _d, G as Dd, q as Td, aa as zd, a9 as Rd, Q as Bd, ad as $d, F as Md, Y as Wd, U as jd, J as Vd, af as Ud, K as Hd, Z as Gd, _ as Kd, v as qd, ab as Yd, ac as Jd, N as Zd, $ as Xd, a5 as Qd, a7 as eu, w as tu, y as nu, D as au, W as ru, ae as iu, X as lu, T as su, ag as ou, x as cu, E as du, m as uu, n as fu, a1 as mu, a2 as hu, a6 as gu, I as pu, a3 as bu, a0 as xu, a4 as vu } from "./useDataCollectionSource-CQy3qOAq.js";
5
+ import { C as si, P as oi, a as Bn, M as ci, p as di, b as ui, R as Mt, c as $n, u as fi, d as mi, e as hi, f as gi, g as pi, h as Mn, S as bi, A as xi, B as vi, L as yi, i as wi, V as Ni, j as Ci, k as Ii, l as ki, O as Si } from "./useDataCollectionSource-Coj9e5oF.js";
6
+ import { r as Fd, s as Ad, o as Ld, H as Od, t as Pd, z as Ed, a8 as _d, G as Dd, q as Td, aa as zd, a9 as Rd, Q as Bd, ad as $d, F as Md, Y as Wd, U as jd, J as Vd, af as Ud, K as Hd, Z as Gd, _ as Kd, v as qd, ab as Yd, ac as Jd, N as Zd, $ as Xd, a5 as Qd, a7 as eu, w as tu, y as nu, D as au, W as ru, ae as iu, X as lu, T as su, ag as ou, x as cu, E as du, m as uu, n as fu, a1 as mu, a2 as hu, a6 as gu, I as pu, a3 as bu, a0 as xu, a4 as vu } from "./useDataCollectionSource-Coj9e5oF.js";
7
7
  const Fi = pa("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
@@ -14111,10 +14111,11 @@ declare type PromoteAction = {
14111
14111
  declare type PropertyDefinition_2<T> = {
14112
14112
  label: string;
14113
14113
  /**
14114
- * Optional tooltip text. When provided, displays an info icon next to the header content
14115
- * that shows this text in a tooltip when hovered.
14114
+ * Optional header info. Pass a string for a short text tooltip, or a
14115
+ * {@link TableHeaderInfo} object for a structured hoverable card. Only
14116
+ * rendered by the table visualization's column headers.
14116
14117
  */
14117
- info?: string;
14118
+ info?: string | TableHeaderInfo;
14118
14119
  /**
14119
14120
  * Function that extracts and formats the value from an item.
14120
14121
  * Should return an object matching the expected args for the specified renderer type.
@@ -15240,6 +15241,20 @@ declare type TableColumnDefinition<R extends RecordType, Sortings extends Sortin
15240
15241
 
15241
15242
  declare function TableHead({ children, width, minWidth, sortState, onSortClick, info, infoIcon, sticky, hidden, align, className, colSpan, }: TableHeadProps): JSX_2.Element;
15242
15243
 
15244
+ declare type TableHeaderInfo = {
15245
+ title: string;
15246
+ description: string;
15247
+ link?: {
15248
+ label: string;
15249
+ onClick: () => void;
15250
+ };
15251
+ /**
15252
+ * Accessible name for the info-icon trigger. Defaults to the column label
15253
+ * when the header's children are a string.
15254
+ */
15255
+ label?: string;
15256
+ };
15257
+
15243
15258
  declare interface TableHeadProps {
15244
15259
  children: React.ReactNode;
15245
15260
  /**
@@ -15276,10 +15291,11 @@ declare interface TableHeadProps {
15276
15291
  */
15277
15292
  onSortClick?: () => void;
15278
15293
  /**
15279
- * Optional tooltip text. When provided, displays an info icon next to the header content
15280
- * that shows this text in a tooltip when hovered.
15294
+ * Optional header info. When provided, displays an info icon next to the
15295
+ * header content. Pass a string for a short text tooltip, or a
15296
+ * {@link TableHeaderInfo} object for a structured hoverable card.
15281
15297
  */
15282
- info?: string;
15298
+ info?: string | TableHeaderInfo;
15283
15299
  /**
15284
15300
  * Icon to display when info is provided.
15285
15301
  * @default InfoCircleLine
@@ -17171,11 +17187,8 @@ declare module "@tiptap/core" {
17171
17187
 
17172
17188
  declare module "@tiptap/core" {
17173
17189
  interface Commands<ReturnType> {
17174
- enhanceHighlight: {
17175
- setEnhanceHighlight: (from: number, to: number, options?: {
17176
- placeholder?: string;
17177
- }) => ReturnType;
17178
- clearEnhanceHighlight: () => ReturnType;
17190
+ moodTracker: {
17191
+ insertMoodTracker: (data: MoodTrackerData) => ReturnType;
17179
17192
  };
17180
17193
  }
17181
17194
  }
@@ -17183,8 +17196,11 @@ declare module "@tiptap/core" {
17183
17196
 
17184
17197
  declare module "@tiptap/core" {
17185
17198
  interface Commands<ReturnType> {
17186
- moodTracker: {
17187
- insertMoodTracker: (data: MoodTrackerData) => ReturnType;
17199
+ enhanceHighlight: {
17200
+ setEnhanceHighlight: (from: number, to: number, options?: {
17201
+ placeholder?: string;
17202
+ }) => ReturnType;
17203
+ clearEnhanceHighlight: () => ReturnType;
17188
17204
  };
17189
17205
  }
17190
17206
  }
package/dist/f0.js CHANGED
@@ -6,8 +6,8 @@ import xt, { forwardRef as sr, useRef as re, useImperativeHandle as cH, Children
6
6
  import { y as hH, z as vH, B as pH, C as gH, D as $2, E as Sv, G as lw, H as U2, I as Y2, J as bi, K as mH, L as yH, M as bH, N as xH, O as _H, F as wH } from "./useChatHistory-hrv_qH8R.js";
7
7
  import { A as pye, s as gye, t as mye, w as yye, l as bye, i as xye, q as _ye, x as wye, p as Sye, r as Cye, j as Tye, e as Dye, g as Aye, k as Mye, h as Eye, a as Lye, n as Nye, m as Iye, o as Rye, b as kye, f as Pye, v as Oye, c as Bye, d as zye, u as Vye } from "./useChatHistory-hrv_qH8R.js";
8
8
  import { createPortal as Qf, unstable_batchedUpdates as Sd } from "react-dom";
9
- import { C as SH, F as X2, ah as q2, ai as CH, aj as TH, ak as DH, al as ng, am as ig, G as AH, an as MH, ao as va, Y as EH, a8 as LH, ap as NH, Q as IH, aq as RH, ar as kH, c as ag, R as uw, u as cw, W as Z2, O as fw, as as j2, at as mC, au as dw, o as PH, d as K2, $ as Q2, av as OH, aw as BH, ax as zH, ay as VH, az as FH, M as GH } from "./useDataCollectionSource-CQy3qOAq.js";
10
- import { r as Gye, s as Hye, H as Wye, t as $ye, z as Uye, aQ as Yye, aP as Xye, aL as qye, aB as Zye, aA as jye, aC as Kye, aD as Qye, aa as Jye, a9 as e0e, ad as t0e, U as r0e, J as n0e, af as i0e, K as a0e, v as o0e, aR as s0e, ab as l0e, ac as u0e, N as c0e, w as f0e, P as d0e, y as h0e, D as v0e, ae as p0e, T as g0e, ag as m0e, x as y0e, E as b0e, aT as x0e, m as _0e, n as w0e, aK as S0e, aG as C0e, aF as T0e, aS as D0e, a6 as A0e, aI as M0e, aJ as E0e, I as L0e, aU as N0e, aV as I0e, e as R0e, aM as k0e, aN as P0e, aO as O0e, aH as B0e, f as z0e, h as V0e, aE as F0e, aW as G0e } from "./useDataCollectionSource-CQy3qOAq.js";
9
+ import { C as SH, F as X2, ah as q2, ai as CH, aj as TH, ak as DH, al as ng, am as ig, G as AH, an as MH, ao as va, Y as EH, a8 as LH, ap as NH, Q as IH, aq as RH, ar as kH, c as ag, R as uw, u as cw, W as Z2, O as fw, as as j2, at as mC, au as dw, o as PH, d as K2, $ as Q2, av as OH, aw as BH, ax as zH, ay as VH, az as FH, M as GH } from "./useDataCollectionSource-Coj9e5oF.js";
10
+ import { r as Gye, s as Hye, H as Wye, t as $ye, z as Uye, aQ as Yye, aP as Xye, aL as qye, aB as Zye, aA as jye, aC as Kye, aD as Qye, aa as Jye, a9 as e0e, ad as t0e, U as r0e, J as n0e, af as i0e, K as a0e, v as o0e, aR as s0e, ab as l0e, ac as u0e, N as c0e, w as f0e, P as d0e, y as h0e, D as v0e, ae as p0e, T as g0e, ag as m0e, x as y0e, E as b0e, aT as x0e, m as _0e, n as w0e, aK as S0e, aG as C0e, aF as T0e, aS as D0e, a6 as A0e, aI as M0e, aJ as E0e, I as L0e, aU as N0e, aV as I0e, e as R0e, aM as k0e, aN as P0e, aO as O0e, aH as B0e, f as z0e, h as V0e, aE as F0e, aW as G0e } from "./useDataCollectionSource-Coj9e5oF.js";
11
11
  import { utils as Fl, write as J2 } from "./xlsx-Bedf3nwD.js";
12
12
  import { defaultTranslations as W0e } from "./i18n-provider-defaults.js";
13
13
  import './f0.css';const HH = {
@@ -876,11 +876,8 @@ declare module "@tiptap/core" {
876
876
 
877
877
  declare module "@tiptap/core" {
878
878
  interface Commands<ReturnType> {
879
- enhanceHighlight: {
880
- setEnhanceHighlight: (from: number, to: number, options?: {
881
- placeholder?: string;
882
- }) => ReturnType;
883
- clearEnhanceHighlight: () => ReturnType;
879
+ moodTracker: {
880
+ insertMoodTracker: (data: MoodTrackerData) => ReturnType;
884
881
  };
885
882
  }
886
883
  }
@@ -888,8 +885,11 @@ declare module "@tiptap/core" {
888
885
 
889
886
  declare module "@tiptap/core" {
890
887
  interface Commands<ReturnType> {
891
- moodTracker: {
892
- insertMoodTracker: (data: MoodTrackerData) => ReturnType;
888
+ enhanceHighlight: {
889
+ setEnhanceHighlight: (from: number, to: number, options?: {
890
+ placeholder?: string;
891
+ }) => ReturnType;
892
+ clearEnhanceHighlight: () => ReturnType;
893
893
  };
894
894
  }
895
895
  }