@factorialco/f0-react 6.3.1 → 6.3.3

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-WfUrOW8A.js";
2
+ import { D as l, P as d, e as s } from "./pdfWorker-CDTHY8xz.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-BIyPWdvY.js";
4
- import { n as g, a as h, f as v, T as r, d as F } from "./index-CTq35fiY.js";
3
+ import { u as x, i as w, j as k, k as S, l as C } from "./F0CanvasPanel-C6qzM_nP.js";
4
+ import { n as g, a as h, f as v, T as r, d as F } from "./index-Cdvq3ahA.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-BIyPWdvY.js";
5
- import { u as x, D as y } from "./DocumentToolbar-BDvNUhV7.js";
4
+ import { u as v, S as w } from "./F0CanvasPanel-C6qzM_nP.js";
5
+ import { u as x, D as y } from "./DocumentToolbar-CAyUihSI.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, 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";
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-C6qzM_nP.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";
@@ -115586,7 +115586,11 @@ const sU1 = ({ text: e }) => /* @__PURE__ */ i(
115586
115586
  "div",
115587
115587
  {
115588
115588
  className: K(
115589
- "flex h-[24px] max-w-20 items-center gap-2 rounded-sm border border-solid border-f1-border px-2 py-0.5 font-medium text-f1-foreground-tertiary"
115589
+ // `text-f1-foreground-secondary`, not `-tertiary`: tertiary composites
115590
+ // to #8d98ae on a white field, which is 2.9:1 against the input
115591
+ // background and fails WCAG 2.0 SC 1.4.3 (AA needs 4.5:1). Secondary
115592
+ // composites to #647185 → 4.95:1.
115593
+ "flex h-[24px] max-w-20 items-center gap-2 rounded-sm border border-solid border-f1-border px-2 py-0.5 font-medium text-f1-foreground-secondary"
115590
115594
  ),
115591
115595
  children: /* @__PURE__ */ i(ee, { tag: "span", children: e })
115592
115596
  }
@@ -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-BIyPWdvY.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-C6qzM_nP.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-BIyPWdvY.js";
3
+ import { u as v, T as S, h as V, S as R } from "./F0CanvasPanel-C6qzM_nP.js";
4
4
  import { f as z, c as E } from "./sheetPreview-5qeAOp0W.js";
5
- import { u as _, D as j } from "./DocumentToolbar-BDvNUhV7.js";
5
+ import { u as _, D as j } from "./DocumentToolbar-CAyUihSI.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-BIyPWdvY.js";
4
- import { u as y, D as g } from "./DocumentToolbar-BDvNUhV7.js";
3
+ import { u as x, S as p, p as w } from "./F0CanvasPanel-C6qzM_nP.js";
4
+ import { u as y, D as g } from "./DocumentToolbar-CAyUihSI.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,9 +5297,11 @@ declare module "@tiptap/core" {
5297
5297
 
5298
5298
  declare module "@tiptap/core" {
5299
5299
  interface Commands<ReturnType> {
5300
- fontSize: {
5301
- setFontSize: (fontSize: string) => ReturnType;
5302
- unsetFontSize: () => ReturnType;
5300
+ enhanceHighlight: {
5301
+ setEnhanceHighlight: (from: number, to: number, options?: {
5302
+ placeholder?: string;
5303
+ }) => ReturnType;
5304
+ clearEnhanceHighlight: () => ReturnType;
5303
5305
  };
5304
5306
  }
5305
5307
  }
@@ -5307,11 +5309,9 @@ declare module "@tiptap/core" {
5307
5309
 
5308
5310
  declare module "@tiptap/core" {
5309
5311
  interface Commands<ReturnType> {
5310
- enhanceHighlight: {
5311
- setEnhanceHighlight: (from: number, to: number, options?: {
5312
- placeholder?: string;
5313
- }) => ReturnType;
5314
- clearEnhanceHighlight: () => ReturnType;
5312
+ fontSize: {
5313
+ setFontSize: (fontSize: string) => ReturnType;
5314
+ unsetFontSize: () => 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-BIyPWdvY.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-C6qzM_nP.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-DqFO2k91.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-BkfsZ5Iy.js";
4
4
  export {
5
5
  P as AiChatTranslationsProvider,
6
6
  e as ChatSpinner,
@@ -295,9 +295,11 @@ declare module "@tiptap/core" {
295
295
 
296
296
  declare module "@tiptap/core" {
297
297
  interface Commands<ReturnType> {
298
- fontSize: {
299
- setFontSize: (fontSize: string) => ReturnType;
300
- unsetFontSize: () => ReturnType;
298
+ enhanceHighlight: {
299
+ setEnhanceHighlight: (from: number, to: number, options?: {
300
+ placeholder?: string;
301
+ }) => ReturnType;
302
+ clearEnhanceHighlight: () => ReturnType;
301
303
  };
302
304
  }
303
305
  }
@@ -305,11 +307,9 @@ declare module "@tiptap/core" {
305
307
 
306
308
  declare module "@tiptap/core" {
307
309
  interface Commands<ReturnType> {
308
- enhanceHighlight: {
309
- setEnhanceHighlight: (from: number, to: number, options?: {
310
- placeholder?: string;
311
- }) => ReturnType;
312
- clearEnhanceHighlight: () => ReturnType;
310
+ fontSize: {
311
+ setFontSize: (fontSize: string) => ReturnType;
312
+ unsetFontSize: () => ReturnType;
313
313
  };
314
314
  }
315
315
  }