@factorialco/f0-react 6.11.2 → 6.13.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.
@@ -6572,6 +6572,7 @@ export declare type F0RichTextEditorHandle = {
6572
6572
  focus: () => void;
6573
6573
  setError: (error: string | null) => void;
6574
6574
  setContent: (content: string) => void;
6575
+ insertContent: (content: string) => void;
6575
6576
  };
6576
6577
 
6577
6578
  export declare interface F0RichTextEditorProps {
@@ -7649,6 +7650,12 @@ declare type HeaderGroupDefinition = {
7649
7650
  * @default false
7650
7651
  */
7651
7652
  defaultCollapsed?: boolean;
7653
+ /**
7654
+ * Visually highlights the whole group: its spanning header and every column
7655
+ * in it render with the highlighted emphasis. Equivalent to setting
7656
+ * `highlighted` on each of the group's columns.
7657
+ */
7658
+ highlighted?: boolean;
7652
7659
  };
7653
7660
 
7654
7661
  export declare interface HeaderProps {
@@ -11123,6 +11130,13 @@ declare type TableColumnDefinition<R extends RecordType, Sortings extends Sortin
11123
11130
  * Avoid hiding the column by the user
11124
11131
  */
11125
11132
  noHiding?: boolean;
11133
+ /**
11134
+ * Visually highlights the column: its header and cells render with a
11135
+ * subtle gray background, and the spanning header of its group (if any)
11136
+ * is emphasized too. To highlight a whole header group at once, set
11137
+ * `highlighted` on its {@link HeaderGroupDefinition} instead.
11138
+ */
11139
+ highlighted?: boolean;
11126
11140
  /**
11127
11141
  * Avoid removing the column by the user. Only relevant when the
11128
11142
  * visualization sets `onRemoveColumn`; the per-row trash affordance in the
@@ -11138,7 +11152,7 @@ declare type TableColumnDefinition<R extends RecordType, Sortings extends Sortin
11138
11152
  headerGroupId?: string;
11139
11153
  };
11140
11154
 
11141
- declare function TableHead({ children, width, minWidth, sortState, onSortClick, onClick, info, infoIcon, sticky, hidden, align, className, colSpan, }: TableHeadProps): JSX_2.Element;
11155
+ declare function TableHead({ children, width, minWidth, sortState, onSortClick, onClick, info, infoIcon, sticky, hidden, highlighted, align, className, colSpan, }: TableHeadProps): JSX_2.Element;
11142
11156
 
11143
11157
  declare type TableHeaderInfo = {
11144
11158
  title: string;
@@ -11211,6 +11225,12 @@ declare interface TableHeadProps {
11211
11225
  * @default false
11212
11226
  */
11213
11227
  hidden?: boolean;
11228
+ /**
11229
+ * Emphasizes the cell with a subtle gray background, drawing attention to a
11230
+ * highlighted column.
11231
+ * @default false
11232
+ */
11233
+ highlighted?: boolean;
11214
11234
  /**
11215
11235
  * Alingment of the cell
11216
11236
  * @default "left"
@@ -12647,9 +12667,11 @@ declare namespace Calendar {
12647
12667
 
12648
12668
  declare module "@tiptap/core" {
12649
12669
  interface Commands<ReturnType> {
12650
- aiBlock: {
12651
- insertAIBlock: (data: AIBlockData, config: AIBlockConfig) => ReturnType;
12652
- executeAIAction: (actionType: string, config: AIBlockConfig) => ReturnType;
12670
+ enhanceHighlight: {
12671
+ setEnhanceHighlight: (from: number, to: number, options?: {
12672
+ placeholder?: string;
12673
+ }) => ReturnType;
12674
+ clearEnhanceHighlight: () => ReturnType;
12653
12675
  };
12654
12676
  }
12655
12677
  }
@@ -12657,11 +12679,9 @@ declare module "@tiptap/core" {
12657
12679
 
12658
12680
  declare module "@tiptap/core" {
12659
12681
  interface Commands<ReturnType> {
12660
- enhanceHighlight: {
12661
- setEnhanceHighlight: (from: number, to: number, options?: {
12662
- placeholder?: string;
12663
- }) => ReturnType;
12664
- clearEnhanceHighlight: () => ReturnType;
12682
+ aiBlock: {
12683
+ insertAIBlock: (data: AIBlockData, config: AIBlockConfig) => ReturnType;
12684
+ executeAIAction: (actionType: string, config: AIBlockConfig) => ReturnType;
12665
12685
  };
12666
12686
  }
12667
12687
  }
@@ -3,8 +3,8 @@ import { cX as _1, cW as $1, d7 as H1, cT as j1, cU as W1, cL as U1, cM as V1, c
3
3
  import { jsx as n, jsxs as h, Fragment as ze } from "react/jsx-runtime";
4
4
  import te, { forwardRef as _e, useRef as O, useTransition as Iu, useState as D, useLayoutEffect as yn, useId as Pn, useContext as At, createContext as pt, useEffect as X, useCallback as U, useMemo as fe, Fragment as St, isValidElement as ku, cloneElement as xs, Suspense as Lr, lazy as ln, createElement as lr, memo as ys, Children as Ko } from "react";
5
5
  import { d as S, T as Su, a as Tu, b as Ru, f as Xe, c as Eu, u as Lu } from "./tooltip-Cik7KBQT.js";
6
- import { C as zu, P as Au, E as Pu, a as qo, b as Gn, M as Fu, p as Mu, c as Ou, R as Aa, e as ws, u as Du, f as Bu, g as _u, h as $u, i as Hu, j as ju, O as Ns, W as nn, A as Wu, B as Uu, L as Vu, k as Gu, V as Ku, l as qu, m as Yu, n as Xu, S as Ju, o as Qu, q as Zu, r as ef, s as tf, D as nf, t as rf, v as of, w as af, x as sf, y as lf, z as Pa } from "./index-CmaHqnZ7.js";
7
- import { ah as vy, ai as xy, K as yy, N as wy, I as Ny, a1 as Cy, Q as Iy, Z as ky, as as Sy, a0 as Ty, J as Ry, af as Ey, au as Ly, at as zy, a7 as Ay, a2 as Py, ax as Fy, H as My, ac as Oy, a9 as Dy, a4 as By, az as _y, a5 as $y, ad as Hy, ae as jy, T as Wy, av as Uy, aw as Vy, a6 as Gy, ag as Ky, ap as qy, ar as Yy, U as Xy, aB as Jy, Y as Qy, _ as Zy, aa as ew, ay as tw, ab as nw, a8 as rw, aA as ow, X as aw, $ as iw, F as sw, G as lw, al as cw, am as dw, aj as uw, aq as fw, a3 as mw, an as hw, ak as pw, ao as gw } from "./index-CmaHqnZ7.js";
6
+ import { C as zu, P as Au, E as Pu, a as qo, b as Gn, M as Fu, p as Mu, c as Ou, R as Aa, e as ws, u as Du, f as Bu, g as _u, h as $u, i as Hu, j as ju, O as Ns, W as nn, A as Wu, B as Uu, L as Vu, k as Gu, V as Ku, l as qu, m as Yu, n as Xu, S as Ju, o as Qu, q as Zu, r as ef, s as tf, D as nf, t as rf, v as of, w as af, x as sf, y as lf, z as Pa } from "./index-BL5Q4g1m.js";
7
+ import { ah as vy, ai as xy, K as yy, N as wy, I as Ny, a1 as Cy, Q as Iy, Z as ky, as as Sy, a0 as Ty, J as Ry, af as Ey, au as Ly, at as zy, a7 as Ay, a2 as Py, ax as Fy, H as My, ac as Oy, a9 as Dy, a4 as By, az as _y, a5 as $y, ad as Hy, ae as jy, T as Wy, av as Uy, aw as Vy, a6 as Gy, ag as Ky, ap as qy, ar as Yy, U as Xy, aB as Jy, Y as Qy, _ as Zy, aa as ew, ay as tw, ab as nw, a8 as rw, aA as ow, X as aw, $ as iw, F as sw, G as lw, al as cw, am as dw, aj as uw, aq as fw, a3 as mw, an as hw, ak as pw, ao as gw } from "./index-BL5Q4g1m.js";
8
8
  import cf from "react-dom";
9
9
  const df = xc("Search", [
10
10
  ["circle", { cx: "11", cy: "11", r: "8", key: "4ej97u" }],
@@ -7899,7 +7899,7 @@ const gl = () => Vt(ll, "useChatJump"), mp = () => Vt(cl, "useChatHighlightedId"
7899
7899
  }, Mr = (e, t) => {
7900
7900
  const r = document.createElement("a");
7901
7901
  r.href = e, r.download = t, r.rel = "noreferrer", r.click();
7902
- }, bp = ln(() => import("./ChatPdfThumbnail-DuTAWST0.js")), vp = ln(() => import("./ChatSheetThumbnail-BvnxT-4A.js")), xp = ln(() => import("./ChatDocxThumbnail-DzNPNFya.js")), yp = ln(() => import("./ChatTextThumbnail-yVt_iYi7.js")), wp = 288, Np = 160, Cp = (e) => {
7902
+ }, bp = ln(() => import("./ChatPdfThumbnail-Cv2HBldJ.js")), vp = ln(() => import("./ChatSheetThumbnail-BvnxT-4A.js")), xp = ln(() => import("./ChatDocxThumbnail-DzNPNFya.js")), yp = ln(() => import("./ChatTextThumbnail-yVt_iYi7.js")), wp = 288, Np = 160, Cp = (e) => {
7903
7903
  const [t, r] = D(!1);
7904
7904
  return X(() => {
7905
7905
  const o = e.current;
@@ -9942,7 +9942,7 @@ const Hp = {
9942
9942
  ] })
9943
9943
  ] }) });
9944
9944
  }, Zp = ln(
9945
- () => import("./index-BCMCcqbO.js").then((e) => e.i).then((e) => ({
9945
+ () => import("./index-KCgfgFEP.js").then((e) => e.i).then((e) => ({
9946
9946
  default: e.F0PdfViewer
9947
9947
  }))
9948
9948
  ), eg = () => {
package/dist/f0.d.ts CHANGED
@@ -11806,6 +11806,7 @@ export declare type F0RichTextEditorHandle = {
11806
11806
  focus: () => void;
11807
11807
  setError: (error: string | null) => void;
11808
11808
  setContent: (content: string) => void;
11809
+ insertContent: (content: string) => void;
11809
11810
  };
11810
11811
 
11811
11812
  export declare interface F0RichTextEditorProps {
@@ -13838,6 +13839,12 @@ declare type HeaderGroupDefinition = {
13838
13839
  * @default false
13839
13840
  */
13840
13841
  defaultCollapsed?: boolean;
13842
+ /**
13843
+ * Visually highlights the whole group: its spanning header and every column
13844
+ * in it render with the highlighted emphasis. Equivalent to setting
13845
+ * `highlighted` on each of the group's columns.
13846
+ */
13847
+ highlighted?: boolean;
13841
13848
  };
13842
13849
 
13843
13850
  export declare interface HeaderProps {
@@ -17406,6 +17413,13 @@ declare type TableColumnDefinition<R extends RecordType, Sortings extends Sortin
17406
17413
  * Avoid hiding the column by the user
17407
17414
  */
17408
17415
  noHiding?: boolean;
17416
+ /**
17417
+ * Visually highlights the column: its header and cells render with a
17418
+ * subtle gray background, and the spanning header of its group (if any)
17419
+ * is emphasized too. To highlight a whole header group at once, set
17420
+ * `highlighted` on its {@link HeaderGroupDefinition} instead.
17421
+ */
17422
+ highlighted?: boolean;
17409
17423
  /**
17410
17424
  * Avoid removing the column by the user. Only relevant when the
17411
17425
  * visualization sets `onRemoveColumn`; the per-row trash affordance in the
@@ -17421,7 +17435,7 @@ declare type TableColumnDefinition<R extends RecordType, Sortings extends Sortin
17421
17435
  headerGroupId?: string;
17422
17436
  };
17423
17437
 
17424
- declare function TableHead({ children, width, minWidth, sortState, onSortClick, onClick, info, infoIcon, sticky, hidden, align, className, colSpan, }: TableHeadProps): JSX_2.Element;
17438
+ declare function TableHead({ children, width, minWidth, sortState, onSortClick, onClick, info, infoIcon, sticky, hidden, highlighted, align, className, colSpan, }: TableHeadProps): JSX_2.Element;
17425
17439
 
17426
17440
  declare type TableHeaderInfo = {
17427
17441
  title: string;
@@ -17494,6 +17508,12 @@ declare interface TableHeadProps {
17494
17508
  * @default false
17495
17509
  */
17496
17510
  hidden?: boolean;
17511
+ /**
17512
+ * Emphasizes the cell with a subtle gray background, drawing attention to a
17513
+ * highlighted column.
17514
+ * @default false
17515
+ */
17516
+ highlighted?: boolean;
17497
17517
  /**
17498
17518
  * Alingment of the cell
17499
17519
  * @default "left"
@@ -19595,9 +19615,11 @@ declare namespace Calendar {
19595
19615
 
19596
19616
  declare module "@tiptap/core" {
19597
19617
  interface Commands<ReturnType> {
19598
- aiBlock: {
19599
- insertAIBlock: (data: AIBlockData, config: AIBlockConfig) => ReturnType;
19600
- executeAIAction: (actionType: string, config: AIBlockConfig) => ReturnType;
19618
+ enhanceHighlight: {
19619
+ setEnhanceHighlight: (from: number, to: number, options?: {
19620
+ placeholder?: string;
19621
+ }) => ReturnType;
19622
+ clearEnhanceHighlight: () => ReturnType;
19601
19623
  };
19602
19624
  }
19603
19625
  }
@@ -19605,11 +19627,9 @@ declare module "@tiptap/core" {
19605
19627
 
19606
19628
  declare module "@tiptap/core" {
19607
19629
  interface Commands<ReturnType> {
19608
- enhanceHighlight: {
19609
- setEnhanceHighlight: (from: number, to: number, options?: {
19610
- placeholder?: string;
19611
- }) => ReturnType;
19612
- clearEnhanceHighlight: () => ReturnType;
19630
+ aiBlock: {
19631
+ insertAIBlock: (data: AIBlockData, config: AIBlockConfig) => ReturnType;
19632
+ executeAIAction: (actionType: string, config: AIBlockConfig) => ReturnType;
19613
19633
  };
19614
19634
  }
19615
19635
  }
package/dist/f0.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import { hE as uN, w as at, cq as Ab, a7 as dn, h4 as cN, a6 as En, fd as FV, hF as GV, hG as fN, r as Xt, av as rf, hH as HV, hI as Lw, hJ as Mr, hK as Xa, hL as WV, u as Be, aJ as Zv, hM as qi, hN as Fl, hO as hN, aD as ul, h1 as Hy, hP as UV, S as ee, s as Mb, hQ as $V, hR as YV, hS as Nw, el as XV, hT as qV, hU as ZV, hV as dN, hW as jV, t as jv, v as Kv, m as tt, x as Qv, y as Gr, O as KV, Q as QV, z as nf, A as af, ca as qo, B as of, gg as Wy, am as Ft, V as et, aC as bl, ao as La, aR as Eb, hX as JV, by as eF, ef as Iw, n as vN, o as xl, ad as Sc, bz as tF, d7 as xd, co as pN, hY as rF, h3 as kw, aw as nF, hZ as Pw, fM as iF, h_ as aF, c5 as gN, cd as mN, f$ as Uy, aW as oF, di as $y, ce as yN, gC as Gl, gD as sf, gF as _N, ha as sF, ge as bN, aL as xN, gd as lF, h$ as Jv, dT as Lb, gT as uF, at as wN, fL as cF, cC as fF, hB as Nb, bV as SN, b_ as hF, b$ as dF, c0 as vF, d as pF, af as CN, dp as as, e4 as TN, dS as DN, cF as Ib, c7 as AN, dc as kb, G as cl, H as fl, K as hl, L as dl, gh as va, cf as MN, j as gF, dQ as wd, bJ as wl, J as Nr, cR as mF, as as EN, cG as Yy, eg as Cc, cQ as yF, dK as lf, ap as Hl, bm as LN, b3 as _F, gM as Or, i0 as bF, i1 as xF, i2 as NN, i3 as ep, i4 as wF, i5 as SF, R as IN, U as kN, cH as CF, i6 as TF, bf as PN, cb as DF, cc as AF, ag as Xy, aN as Wl, ct as Ul, eQ as uf, e6 as MF, cr as EF, bx as LF, ai as RN, bB as NF, ar as IF, bT as Rw, e3 as Tc, fO as kF, fP as PF, i7 as RF, bl as OF, cx as BF, l as ON, ax as zF, cl as VF, i8 as FF, h7 as GF, ay as HF, bp as WF, ab as BN, i9 as zN, ia as UF, ib as $F, I as YF, ic as XF, id as qF, ie as ZF, ig as jF } from "./F0CanvasPanel-B6yrVWWP.js";
2
2
  import { iy as Bhe, C as zhe, D as Vhe, bd as Fhe, c as Ghe, F as Hhe, a as Whe, ir as Uhe, f as $he, bE as Yhe, be as Xhe, cv as qhe, bR as Zhe, b6 as jhe, aG as Khe, aQ as Qhe, ek as Jhe, aY as ede, cL as tde, g as rde, c1 as nde, cM as ide, il as ade, iD as ode, bS as sde, e as lde, c8 as ude, k as cde, cw as fde, it as hde, bt as dde, iu as vde, iw as pde, ix as gde, da as mde, iA as yde, d3 as _de, d4 as bde, P as xde, d8 as wde, iv as Sde, d5 as Cde, iz as Tde, iE as Dde, ii as Ade, ij as Mde, ik as Ede, ih as Lde, d6 as Nde, iC as Ide, is as kde, ip as Pde, io as Rde, d9 as Ode, gb as Bde, gU as zde, iB as Vde, bi as Fde, d2 as Gde, c$ as Hde, d1 as Wde, c_ as Ude, iq as $de, gW as Yde, gQ as Xde, gG as qde, iH as Zde, cS as jde, d0 as Kde, iG as Qde, bN as Jde, ec as eve, ga as tve, gH as rve, b as nve, bQ as ive, h9 as ave, bg as ove, ed as sve, im as lve, gS as uve, gR as cve, iF as fve } from "./F0CanvasPanel-B6yrVWWP.js";
3
3
  import { jsx as S, jsxs as B, Fragment as it } from "react/jsx-runtime";
4
- import { C as KF, W as QF, o as JF, q as e5, r as t5, s as Ow, aC as r5, aD as n5, y as i5, D as a5, v as o5, x as s5, z as l5, j as u5, H as VN, aE as c5, aF as f5, aG as h5, aH as d5, aI as v5, aJ as FN, aK as p5, aL as tp, aM as qa, aN as g5, aO as Pb, aP as Rb, a0 as m5, aQ as y5, aR as xs, aS as GN, aT as _5, aU as b5, aV as x5, aW as w5, aX as S5, aY as C5, ac as T5, as as D5, aZ as A5, a7 as M5, E as E5, a as L5, e as rp, R as Ob, u as Bb, aa as HN, O as zb, a_ as WN, a$ as Bw, b0 as Vb, I as N5, f as UN, ag as $N, b1 as I5, b2 as k5, b3 as P5, b4 as R5, M as O5 } from "./index-CmaHqnZ7.js";
5
- import { K as dve, N as vve, a1 as pve, Q as gve, Z as mve, br as yve, bq as _ve, bj as bve, b6 as xve, b5 as wve, b7 as Sve, b8 as Cve, ba as Tve, bb as Dve, au as Ave, at as Mve, ax as Eve, a9 as Lve, a4 as Nve, az as Ive, a5 as kve, T as Pve, bs as Rve, av as Ove, aw as Bve, a6 as zve, U as Vve, P as Fve, Y as Gve, _ as Hve, ay as Wve, a8 as Uve, aA as $ve, X as Yve, $ as Xve, bu as qve, F as Zve, G as jve, bi as Kve, bo as Qve, bo as Jve, bp as epe, be as tpe, bd as rpe, bt as npe, aq as ipe, bg as ape, bh as ope, a3 as spe, bv as lpe, bw as upe, g as cpe, bk as fpe, bl as hpe, bm as dpe, b9 as vpe, bf as ppe, h as gpe, bn as mpe, bc as ype, bx as _pe } from "./index-CmaHqnZ7.js";
4
+ import { C as KF, W as QF, o as JF, q as e5, r as t5, s as Ow, aC as r5, aD as n5, y as i5, D as a5, v as o5, x as s5, z as l5, j as u5, H as VN, aE as c5, aF as f5, aG as h5, aH as d5, aI as v5, aJ as FN, aK as p5, aL as tp, aM as qa, aN as g5, aO as Pb, aP as Rb, a0 as m5, aQ as y5, aR as xs, aS as GN, aT as _5, aU as b5, aV as x5, aW as w5, aX as S5, aY as C5, ac as T5, as as D5, aZ as A5, a7 as M5, E as E5, a as L5, e as rp, R as Ob, u as Bb, aa as HN, O as zb, a_ as WN, a$ as Bw, b0 as Vb, I as N5, f as UN, ag as $N, b1 as I5, b2 as k5, b3 as P5, b4 as R5, M as O5 } from "./index-BL5Q4g1m.js";
5
+ import { K as dve, N as vve, a1 as pve, Q as gve, Z as mve, br as yve, bq as _ve, bj as bve, b6 as xve, b5 as wve, b7 as Sve, b8 as Cve, ba as Tve, bb as Dve, au as Ave, at as Mve, ax as Eve, a9 as Lve, a4 as Nve, az as Ive, a5 as kve, T as Pve, bs as Rve, av as Ove, aw as Bve, a6 as zve, U as Vve, P as Fve, Y as Gve, _ as Hve, ay as Wve, a8 as Uve, aA as $ve, X as Yve, $ as Xve, bu as qve, F as Zve, G as jve, bi as Kve, bo as Qve, bo as Jve, bp as epe, be as tpe, bd as rpe, bt as npe, aq as ipe, bg as ape, bh as ope, a3 as spe, bv as lpe, bw as upe, g as cpe, bk as fpe, bl as hpe, bm as dpe, b9 as vpe, bf as ppe, h as gpe, bn as mpe, bc as ype, bx as _pe } from "./index-BL5Q4g1m.js";
6
6
  import * as wt from "react";
7
7
  import B5, { forwardRef as Tr, useRef as ce, useImperativeHandle as z5, Children as Sd, createContext as Va, useContext as os, useState as ue, useMemo as me, useEffect as Me, useCallback as de, useLayoutEffect as qy, isValidElement as YN, Fragment as $l, useSyncExternalStore as Sl, useId as lc, memo as V5 } from "react";
8
8
  import { createPortal as np } from "react-dom";
@@ -11,8 +11,8 @@ import { l as Zy, c as XN, d as Cd, r as jy } from "./F0VideoPlayer-BYiRyqkd.js"
11
11
  import { F as xpe } from "./F0VideoPlayer-BYiRyqkd.js";
12
12
  import { D as H5, E as Td, G as Fb, H as qN, I as ZN, J as Qn, K as W5, L as U5, M as $5, N as Y5, O as X5, F as q5 } from "./F0AiProcessingOverlay-BmoShXls.js";
13
13
  import { A as Spe, C as Cpe, t as Tpe, s as Dpe, v as Ape, y as Mpe, l as Epe, i as Lpe, q as Npe, z as Ipe, B as kpe, p as Ppe, r as Rpe, j as Ope, e as Bpe, g as zpe, k as Vpe, T as Fpe, w as Gpe, h as Hpe, a as Wpe, n as Upe, m as $pe, o as Ype, b as Xpe, f as qpe, x as Zpe, c as jpe, d as Kpe, u as Qpe } from "./F0AiProcessingOverlay-BmoShXls.js";
14
- import { F as ege, p as tge } from "./index-BCMCcqbO.js";
15
- import { c as nge } from "./pdfWorker-Doevk_cW.js";
14
+ import { F as ege, p as tge } from "./index-KCgfgFEP.js";
15
+ import { c as nge } from "./pdfWorker-y12AkSda.js";
16
16
  import { g as Z5 } from "./_commonjsHelpers-ByX85dGu.js";
17
17
  import { utils as vl, write as jN } from "./xlsx-CzlURDDb.js";
18
18
  import { defaultTranslations as age } from "./i18n-provider-defaults.js";
@@ -1262,9 +1262,11 @@ declare namespace Calendar {
1262
1262
 
1263
1263
  declare module "@tiptap/core" {
1264
1264
  interface Commands<ReturnType> {
1265
- aiBlock: {
1266
- insertAIBlock: (data: AIBlockData, config: AIBlockConfig) => ReturnType;
1267
- executeAIAction: (actionType: string, config: AIBlockConfig) => ReturnType;
1265
+ enhanceHighlight: {
1266
+ setEnhanceHighlight: (from: number, to: number, options?: {
1267
+ placeholder?: string;
1268
+ }) => ReturnType;
1269
+ clearEnhanceHighlight: () => ReturnType;
1268
1270
  };
1269
1271
  }
1270
1272
  }
@@ -1272,11 +1274,9 @@ declare module "@tiptap/core" {
1272
1274
 
1273
1275
  declare module "@tiptap/core" {
1274
1276
  interface Commands<ReturnType> {
1275
- enhanceHighlight: {
1276
- setEnhanceHighlight: (from: number, to: number, options?: {
1277
- placeholder?: string;
1278
- }) => ReturnType;
1279
- clearEnhanceHighlight: () => ReturnType;
1277
+ aiBlock: {
1278
+ insertAIBlock: (data: AIBlockData, config: AIBlockConfig) => ReturnType;
1279
+ executeAIAction: (actionType: string, config: AIBlockConfig) => ReturnType;
1280
1280
  };
1281
1281
  }
1282
1282
  }