@factorialco/f0-react 6.3.0 → 6.3.1

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.
@@ -1,5 +1,5 @@
1
1
  import { jsx as r } from "react/jsx-runtime";
2
- import { D as l, P as d, e as s } from "./pdfWorker-C6o67B6L.js";
2
+ import { D as l, P as d, e as s } from "./pdfWorker-WfUrOW8A.js";
3
3
  s();
4
4
  const f = ({
5
5
  url: n,
@@ -1,7 +1,7 @@
1
1
  import { jsxs as i, jsx as l } from "react/jsx-runtime";
2
2
  import { useState as u, useCallback as m, useMemo as p } from "react";
3
- import { u as x, i as w, j as k, k as S, l as C } from "./F0CanvasPanel-o1LTTwSF.js";
4
- import { n as g, a as h, f as v, T as r, d as F } from "./index-QfL3G68m.js";
3
+ import { u as x, i as w, j as k, k as S, l as C } from "./F0CanvasPanel-BIyPWdvY.js";
4
+ import { n as g, a as h, f as v, T as r, d as F } from "./index-CTq35fiY.js";
5
5
  const D = () => {
6
6
  const [t, a] = u(1), n = m(
7
7
  () => a((e) => g(e) ?? e),
@@ -1,8 +1,8 @@
1
1
  import { jsxs as c, jsx as t } from "react/jsx-runtime";
2
2
  import { useRef as g, useState as h, useEffect as b } from "react";
3
3
  import { r as p } from "./docx-preview-BaRDMyPN.js";
4
- import { u as v, S as w } from "./F0CanvasPanel-o1LTTwSF.js";
5
- import { u as x, D as y } from "./DocumentToolbar-_eHuk_7I.js";
4
+ import { u as v, S as w } from "./F0CanvasPanel-BIyPWdvY.js";
5
+ import { u as x, D as y } from "./DocumentToolbar-BDvNUhV7.js";
6
6
  const V = ({
7
7
  url: o,
8
8
  filename: d,
@@ -1,6 +1,6 @@
1
1
  import { jsxs as a, jsx as t, Fragment as R1 } from "react/jsx-runtime";
2
2
  import { useInsertionEffect as Ar, forwardRef as m, useRef as $, useEffect as W, useLayoutEffect as ie, useState as D, useId as G1, useMemo as K, useCallback as O, createContext as W1, useContext as I1, createElement as Er, memo as $r } from "react";
3
- import { dc as Br, aI as Ir, dd as Pr, am as nt, cd as Dr, de as jr, df as _r, dg as Zr, dh as Or, ce as Ur, cj as st, cc as zr, di as Gr, av as ae, dj as Wr, b6 as qr, dk as Xr, dl as Yr, dm as Kr, aP as Qr, dn as Jr, cJ as eo, y as it, aC as to, dp as ro, o as le, aq as at, ah as q1, n as lt, bD as oo, ch as no, dq as so, bq as io, cI as ao, ao as F1, aZ as lo, bH as ct, dr as co, cG as uo, l as y1, cE as fo, ds as ho, c8 as dt, bp as po, dt as mo, du as Co, dv as go, dw as wo, dx as vo, dy as ut, cx as xo, cy as bo, dz as Lo, dA as ko, dB as yo, dC as Mo, dD as Ro, bS as Fo, cg as No, dE as Vo, dF as So, dG as To, dH as Ho, dI as Ao, dJ as Eo, dK as $o, dL as Bo, bR as Io, cH as Po, aA as Do, ct as jo, dM as _o, dN as Zo, dO as Oo, dP as Uo, dQ as zo, dR as Go, dS as Wo, aV as qo, bT as Xo, R as ft, dT as Yo, ag as Ko, ap as Qo, bU as ht, c7 as Jo, Q as pt, dU as en, i as tn, bG as rn, bF as on, dV as nn, dW as sn, bV as mt, bW as an, bX as ln, bo as cn, a$ as dn, dX as un, j as fn, bB as Ct, bA as gt, bv as hn, dY as wt, az as pn, cf as ce, q as mn, by as de, dZ as Cn, d_ as gn, d$ as ue, N as wn, O as vn, cF as vt, e0 as xn, ae as bn, ad as Ln, e1 as kn, e2 as yn, e3 as Mn, e4 as Rn, c5 as Fn, e5 as xt, e6 as Nn, aH as Vn, aB as Sn, e7 as Tn, af as i1, a6 as H1, co as Hn, u as G, c4 as An, S as h1, bQ as bt, U as a1, ar as En, m as w1, e8 as $n, aD as l1, aJ as v1, ac as M1, a5 as Q, cO as Lt, t as fe, e9 as Bn, x as he, b as k1, c2 as In, ea as Pn, c3 as Dn, ai as jn, bn as _n, au as pe, bY as Zn, bZ as On, b_ as Un, b$ as Me, as as zn, aQ as kt, bd as yt, bP as Gn, ay as Wn, cU as qn, eb as Xn, ec as Yn, bj as Mt, ed as Kn, cQ as Qn, ee as Jn, bf as B1, bw as Rt, ef as Ft, bx as Nt, c as oe, ci as Re, eg as Vt, eh as es, ei as ts, aG as rs, ej as os, bC as me, cu as ns, ek as ss, el as is, em as as, en as ls, eo as cs, w as ds, s as us, v as St, aa as fs, ab as hs, aE as Fe, ep as Tt, eq as Ht, er as ps, es as ms, aM as Cs, aw as gs, et as ws, eu as vs, d as xs } from "./F0CanvasPanel-o1LTTwSF.js";
3
+ import { dc as Br, aG as Ir, dd as Pr, am as nt, cd as Dr, de as jr, df as _r, dg as Zr, dh as Or, ce as Ur, cj as st, cc as zr, di as Gr, av as ae, dj as Wr, b5 as qr, dk as Xr, dl as Yr, dm as Kr, aN as Qr, dn as Jr, cJ as eo, y as it, aA as to, dp as ro, o as le, aq as at, ah as q1, n as lt, bD as oo, ch as no, dq as so, bq as io, cI as ao, ao as F1, aX as lo, bH as ct, dr as co, cG as uo, l as y1, cE as fo, ds as ho, c8 as dt, bp as po, dt as mo, du as Co, dv as go, dw as wo, dx as vo, dy as ut, cx as xo, cy as bo, dz as Lo, dA as ko, dB as yo, dC as Mo, dD as Ro, bS as Fo, cg as No, dE as Vo, dF as So, dG as To, dH as Ho, dI as Ao, dJ as Eo, dK as $o, dL as Bo, bR as Io, cH as Po, ay as Do, ct as jo, dM as _o, dN as Zo, dO as Oo, dP as Uo, dQ as zo, dR as Go, dS as Wo, aT as qo, bT as Xo, R as ft, dT as Yo, ag as Ko, ap as Qo, bU as ht, c7 as Jo, Q as pt, dU as en, i as tn, bG as rn, bF as on, dV as nn, dW as sn, bV as mt, bW as an, bX as ln, bo as cn, aZ as dn, dX as un, j as fn, bB as Ct, bA as gt, bv as hn, dY as wt, ax as pn, cf as ce, q as mn, by as de, dZ as Cn, d_ as gn, d$ as ue, N as wn, O as vn, cF as vt, e0 as xn, ae as bn, ad as Ln, e1 as kn, e2 as yn, e3 as Mn, e4 as Rn, c5 as Fn, e5 as xt, e6 as Nn, aF as Vn, az as Sn, e7 as Tn, af as i1, a6 as H1, co as Hn, u as G, c4 as An, S as h1, bQ as bt, U as a1, ar as En, m as w1, e8 as $n, aB as l1, aH as v1, ac as M1, a5 as Q, cO as Lt, t as fe, e9 as Bn, x as he, b as k1, c2 as In, ea as Pn, c3 as Dn, ai as jn, bn as _n, au as pe, bY as Zn, bZ as On, b_ as Un, b$ as Me, as as zn, aO as kt, bd as yt, bP as Gn, b4 as Wn, cU as qn, eb as Xn, ec as Yn, bj as Mt, ed as Kn, cQ as Qn, ee as Jn, bf as B1, bw as Rt, ef as Ft, bx as Nt, c as oe, ci as Re, eg as Vt, eh as es, ei as ts, aE as rs, ej as os, bC as me, cu as ns, ek as ss, el as is, em as as, en as ls, eo as cs, w as ds, s as us, v as St, aa as fs, ab as hs, aC as Fe, ep as Tt, eq as Ht, er as ps, es as ms, aK as Cs, aw as gs, et as ws, eu as vs, d as xs } from "./F0CanvasPanel-BIyPWdvY.js";
4
4
  import { d as k, f as p1, g as bs } from "./tooltip-Cik7KBQT.js";
5
5
  import { createPortal as At } from "react-dom";
6
6
  import { defaultTranslations as Ls } from "./i18n-provider-defaults.js";
@@ -17916,8 +17916,7 @@ const yC2 = (e, t) => /* @__PURE__ */ H(
17916
17916
  stroke: "currentColor",
17917
17917
  strokeLinecap: "round",
17918
17918
  strokeLinejoin: "round",
17919
- d: "M14.12 12L21.9 12M21.9 12L19.07 9.17M21.9 12L19.07 14.83",
17920
- vectorEffect: "non-scaling-stroke"
17919
+ d: "M14.12 12L21.9 12M21.9 12L19.07 9.17M21.9 12L19.07 14.83"
17921
17920
  }
17922
17921
  ),
17923
17922
  /* @__PURE__ */ i(
@@ -17926,8 +17925,7 @@ const yC2 = (e, t) => /* @__PURE__ */ H(
17926
17925
  stroke: "currentColor",
17927
17926
  strokeLinecap: "round",
17928
17927
  strokeLinejoin: "round",
17929
- d: "M9.88 12L2.1 12M2.1 12L4.93 9.17M2.1 12L4.93 14.83",
17930
- vectorEffect: "non-scaling-stroke"
17928
+ d: "M9.88 12L2.1 12M2.1 12L4.93 9.17M2.1 12L4.93 14.83"
17931
17929
  }
17932
17930
  )
17933
17931
  ]
@@ -18107,8 +18105,7 @@ const yC2 = (e, t) => /* @__PURE__ */ H(
18107
18105
  stroke: "currentColor",
18108
18106
  strokeLinecap: "round",
18109
18107
  strokeLinejoin: "round",
18110
- d: "M21.9 12L14.12 12M14.12 12L16.95 9.17M14.12 12L16.95 14.83",
18111
- vectorEffect: "non-scaling-stroke"
18108
+ d: "M21.9 12L14.12 12M14.12 12L16.95 9.17M14.12 12L16.95 14.83"
18112
18109
  }
18113
18110
  ),
18114
18111
  /* @__PURE__ */ i(
@@ -18117,8 +18114,7 @@ const yC2 = (e, t) => /* @__PURE__ */ H(
18117
18114
  stroke: "currentColor",
18118
18115
  strokeLinecap: "round",
18119
18116
  strokeLinejoin: "round",
18120
- d: "M2.1 12L9.88 12M9.88 12L7.05 9.17M9.88 12L7.05 14.83",
18121
- vectorEffect: "non-scaling-stroke"
18117
+ d: "M2.1 12L9.88 12M9.88 12L7.05 9.17M9.88 12L7.05 14.83"
18122
18118
  }
18123
18119
  )
18124
18120
  ]
@@ -133458,7 +133454,7 @@ export {
133458
133454
  XD2 as Z,
133459
133455
  U22 as _,
133460
133456
  ve3 as a,
133461
- Pm2 as a$,
133457
+ mY1 as a$,
133462
133458
  ji as a0,
133463
133459
  HU1 as a1,
133464
133460
  h12 as a2,
@@ -133469,33 +133465,33 @@ export {
133469
133465
  h_ as a7,
133470
133466
  r12 as a8,
133471
133467
  Az as a9,
133472
- Mc as aA,
133473
- Fi as aB,
133474
- Vi as aC,
133475
- ee as aD,
133476
- P3 as aE,
133477
- r4 as aF,
133478
- $x as aG,
133479
- J13 as aH,
133480
- _23 as aI,
133481
- z7 as aJ,
133482
- g8 as aK,
133483
- jy as aL,
133484
- _x as aM,
133485
- eo as aN,
133486
- B5 as aO,
133487
- D23 as aP,
133488
- eG as aQ,
133489
- X6 as aR,
133490
- CY1 as aS,
133491
- Bw2 as aT,
133492
- MU as aU,
133493
- m13 as aV,
133494
- xc as aW,
133495
- JP as aX,
133496
- R9 as aY,
133497
- Lc as aZ,
133498
- Ni as a_,
133468
+ Vi as aA,
133469
+ ee as aB,
133470
+ P3 as aC,
133471
+ r4 as aD,
133472
+ $x as aE,
133473
+ J13 as aF,
133474
+ _23 as aG,
133475
+ z7 as aH,
133476
+ g8 as aI,
133477
+ jy as aJ,
133478
+ _x as aK,
133479
+ eo as aL,
133480
+ B5 as aM,
133481
+ D23 as aN,
133482
+ eG as aO,
133483
+ X6 as aP,
133484
+ CY1 as aQ,
133485
+ Bw2 as aR,
133486
+ MU as aS,
133487
+ m13 as aT,
133488
+ xc as aU,
133489
+ JP as aV,
133490
+ R9 as aW,
133491
+ Lc as aX,
133492
+ Ni as aY,
133493
+ Pm2 as aZ,
133494
+ C_ as a_,
133499
133495
  xi as aa,
133500
133496
  rI1 as ab,
133501
133497
  A3 as ac,
@@ -133519,21 +133515,21 @@ export {
133519
133515
  nx as au,
133520
133516
  mM as av,
133521
133517
  en as aw,
133522
- sB as ax,
133523
- QU as ay,
133524
- Z13 as az,
133518
+ Z13 as ax,
133519
+ Mc as ay,
133520
+ Fi as az,
133525
133521
  m_ as b,
133526
133522
  N33 as b$,
133527
- C_ as b0,
133528
- mY1 as b1,
133529
- b23 as b2,
133530
- oo as b3,
133531
- L23 as b4,
133532
- m33 as b5,
133533
- Z23 as b6,
133534
- p33 as b7,
133535
- IY as b8,
133536
- Ux as b9,
133523
+ b23 as b0,
133524
+ oo as b1,
133525
+ L23 as b2,
133526
+ m33 as b3,
133527
+ QU as b4,
133528
+ Z23 as b5,
133529
+ p33 as b6,
133530
+ IY as b7,
133531
+ Ux as b8,
133532
+ Nx2 as b9,
133537
133533
  T13 as bA,
133538
133534
  A13 as bB,
133539
133535
  WU as bC,
@@ -133561,8 +133557,8 @@ export {
133561
133557
  fB1 as bY,
133562
133558
  CB1 as bZ,
133563
133559
  u22 as b_,
133564
- Nx2 as ba,
133565
- vy as bb,
133560
+ vy as ba,
133561
+ sB as bb,
133566
133562
  aP1 as bc,
133567
133563
  Zc as bd,
133568
133564
  x23 as be,
@@ -1,4 +1,4 @@
1
- import { u as W, t as je, v as Ge, m as $, x as Xe, y as Ze, z as qe, A as Ye, B as Je, E as Qe, G as et, H as tt, J as nt, K as rt, L as at, M as ye, N as ot, O as Ce, l as st, Q as it, R as ct, U as lt, w as dt, r as ut } from "./F0CanvasPanel-o1LTTwSF.js";
1
+ import { u as W, t as je, v as Ge, m as $, x as Xe, y as Ze, z as qe, A as Ye, B as Je, E as Qe, G as et, H as tt, J as nt, K as rt, L as at, M as ye, N as ot, O as Ce, l as st, Q as it, R as ct, U as lt, w as dt, r as ut } from "./F0CanvasPanel-BIyPWdvY.js";
2
2
  import { jsxs as R, jsx as l } from "react/jsx-runtime";
3
3
  import { forwardRef as re, useId as ft, useState as x, useRef as O, useEffect as _, useMemo as J, useCallback as M } from "react";
4
4
  import { d as H, f as de } from "./tooltip-Cik7KBQT.js";
@@ -1,8 +1,8 @@
1
1
  import { jsxs as a, jsx as r, Fragment as N } from "react/jsx-runtime";
2
2
  import { useState as i, useEffect as k } from "react";
3
- import { u as v, T as S, h as V, S as R } from "./F0CanvasPanel-o1LTTwSF.js";
3
+ import { u as v, T as S, h as V, S as R } from "./F0CanvasPanel-BIyPWdvY.js";
4
4
  import { f as z, c as E } from "./sheetPreview-5qeAOp0W.js";
5
- import { u as _, D as j } from "./DocumentToolbar-_eHuk_7I.js";
5
+ import { u as _, D as j } from "./DocumentToolbar-BDvNUhV7.js";
6
6
  const g = 1e3, F = 100, G = ({
7
7
  url: n,
8
8
  filename: y,
@@ -1,7 +1,7 @@
1
1
  import { jsxs as b, jsx as e } from "react/jsx-runtime";
2
2
  import { useState as _, useEffect as h } from "react";
3
- import { u as x, S as p, p as w } from "./F0CanvasPanel-o1LTTwSF.js";
4
- import { u as y, D as g } from "./DocumentToolbar-_eHuk_7I.js";
3
+ import { u as x, S as p, p as w } from "./F0CanvasPanel-BIyPWdvY.js";
4
+ import { u as y, D as g } from "./DocumentToolbar-BDvNUhV7.js";
5
5
  const k = 2 * 1024 * 1024, v = [
6
6
  "[&_h1]:mb-3 [&_h1]:mt-6 [&_h1]:text-2xl [&_h1]:font-semibold",
7
7
  "[&_h2]:mb-2 [&_h2]:mt-5 [&_h2]:text-xl [&_h2]:font-semibold",
package/dist/ai.d.ts CHANGED
@@ -5297,11 +5297,9 @@ declare module "@tiptap/core" {
5297
5297
 
5298
5298
  declare module "@tiptap/core" {
5299
5299
  interface Commands<ReturnType> {
5300
- enhanceHighlight: {
5301
- setEnhanceHighlight: (from: number, to: number, options?: {
5302
- placeholder?: string;
5303
- }) => ReturnType;
5304
- clearEnhanceHighlight: () => ReturnType;
5300
+ fontSize: {
5301
+ setFontSize: (fontSize: string) => ReturnType;
5302
+ unsetFontSize: () => ReturnType;
5305
5303
  };
5306
5304
  }
5307
5305
  }
@@ -5309,9 +5307,11 @@ declare module "@tiptap/core" {
5309
5307
 
5310
5308
  declare module "@tiptap/core" {
5311
5309
  interface Commands<ReturnType> {
5312
- fontSize: {
5313
- setFontSize: (fontSize: string) => ReturnType;
5314
- unsetFontSize: () => ReturnType;
5310
+ enhanceHighlight: {
5311
+ setEnhanceHighlight: (from: number, to: number, options?: {
5312
+ placeholder?: string;
5313
+ }) => ReturnType;
5314
+ clearEnhanceHighlight: () => ReturnType;
5315
5315
  };
5316
5316
  }
5317
5317
  }
package/dist/ai.js CHANGED
@@ -1,6 +1,6 @@
1
- import { C as e, D as r, c as t, F as i, a as o, f as n, g as F, d as C, e as l, I as A, P as d, b as u, u as h } from "./F0CanvasPanel-o1LTTwSF.js";
1
+ import { C as e, D as r, c as t, F as i, a as o, f as n, g as F, d as C, e as l, I as A, P as d, b as u, u as h } from "./F0CanvasPanel-BIyPWdvY.js";
2
2
  import { defaultTranslations as c } from "./i18n-provider-defaults.js";
3
- import { A as P, C as T, t as p, s as v, v as g, y as f, l as y, i as S, q as x, z as b, B as k, p as H, r as O, j as V, e as w, g as B, k as M, F as z, T as D, w as L, h as j, a as q, n as E, m as G, o as R, b as J, f as K, x as N, c as Q, d as U, u as W } from "./F0AiProcessingOverlay-Dk7GnQns.js";
3
+ import { A as P, C as T, t as p, s as v, v as g, y as f, l as y, i as S, q as x, z as b, B as k, p as H, r as O, j as V, e as w, g as B, k as M, F as z, T as D, w as L, h as j, a as q, n as E, m as G, o as R, b as J, f as K, x as N, c as Q, d as U, u as W } from "./F0AiProcessingOverlay-DqFO2k91.js";
4
4
  export {
5
5
  P as AiChatTranslationsProvider,
6
6
  e as ChatSpinner,
@@ -295,11 +295,9 @@ declare module "@tiptap/core" {
295
295
 
296
296
  declare module "@tiptap/core" {
297
297
  interface Commands<ReturnType> {
298
- enhanceHighlight: {
299
- setEnhanceHighlight: (from: number, to: number, options?: {
300
- placeholder?: string;
301
- }) => ReturnType;
302
- clearEnhanceHighlight: () => ReturnType;
298
+ fontSize: {
299
+ setFontSize: (fontSize: string) => ReturnType;
300
+ unsetFontSize: () => ReturnType;
303
301
  };
304
302
  }
305
303
  }
@@ -307,9 +305,11 @@ declare module "@tiptap/core" {
307
305
 
308
306
  declare module "@tiptap/core" {
309
307
  interface Commands<ReturnType> {
310
- fontSize: {
311
- setFontSize: (fontSize: string) => ReturnType;
312
- unsetFontSize: () => ReturnType;
308
+ enhanceHighlight: {
309
+ setEnhanceHighlight: (from: number, to: number, options?: {
310
+ placeholder?: string;
311
+ }) => ReturnType;
312
+ clearEnhanceHighlight: () => ReturnType;
313
313
  };
314
314
  }
315
315
  }