@factorialco/f0-react 8.28.3 → 8.28.4
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/{ChatDocxThumbnail-D5hDwmp7.js → ChatDocxThumbnail-DTpOzL9A.js} +7 -7
- package/dist/{ChatPdfThumbnail-Cf74m771.js → ChatPdfThumbnail-QKm8T1iP.js} +1 -1
- package/dist/{ChatPostComposerDialog-pRNELk68.js → ChatPostComposerDialog-DF5B8NLo.js} +3 -3
- package/dist/{ChatSheetThumbnail-D8aN1W_0.js → ChatSheetThumbnail-CyiwSdZJ.js} +1 -1
- package/dist/{DocumentToolbar-C4DUcWl7.js → DocumentToolbar-BAa5mh7x.js} +2 -2
- package/dist/{DocxViewer-M4FGdd_h.js → DocxViewer-CYBh46FI.js} +7 -7
- package/dist/{F0AiProcessingOverlay-Cpx37q3a.js → F0AiProcessingOverlay-3H79lgMd.js} +1 -1
- package/dist/{F0CanvasPanel-CRTe0CIF.js → F0CanvasPanel-DAEeI3lV.js} +199 -199
- package/dist/{F0Map-BywRoarL.js → F0Map-B7PwCmUl.js} +4 -4
- package/dist/{F0VideoPlayer-DUv08bcV.js → F0VideoPlayer-CNvEtJ9U.js} +18 -18
- package/dist/{MapProvider-CTtL5mc3.js → MapProvider-WM9ZFI_s.js} +2 -2
- package/dist/SheetViewer-CvQ24W5k.js +123 -0
- package/dist/{TextViewer-54DAaDA1.js → TextViewer-uZnjAB6W.js} +2 -2
- package/dist/ai.d.ts +6 -6
- package/dist/ai.js +2 -2
- package/dist/component-status.d.ts +6 -6
- package/dist/component-status.js +1 -1
- package/dist/{experimental-STLmChcB.js → experimental-Bzwkrec6.js} +179 -179
- package/dist/experimental.d.ts +6 -6
- package/dist/experimental.js +40 -40
- package/dist/f0.d.ts +6 -6
- package/dist/f0.js +10 -10
- package/dist/i18n-provider-defaults.d.ts +6 -6
- package/dist/{index-DFrzKaGA.js → index-98s6Ae16.js} +62 -62
- package/dist/{index-9MKvlApA.js → index-B1tQWotf.js} +28 -28
- package/dist/{index-BXS__6p-.js → index-BuHr35P1.js} +15 -15
- package/dist/{index-CKzBQYgd.js → index-Ck8-Kqxo.js} +2 -2
- package/dist/index-D4H-LP6r.js +4 -0
- package/dist/{pdfWorker-DACTjTuR.js → pdfWorker-C8Mu95m3.js} +2 -2
- package/dist/{docx-preview-BaRDMyPN.js → renderDocx-CVEzw9MK.js} +920 -901
- package/dist/sheetPreview-Bqj3xODH.js +51 -0
- package/dist/styles.css +1 -1
- package/package.json +1 -1
- package/dist/SheetViewer-BK9NNMZ9.js +0 -111
- package/dist/index-D0rQW0DI.js +0 -4
- package/dist/sheetPreview-Djc-YyVs.js +0 -37
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { u as W,
|
|
1
|
+
import { u as W, K as je, L as Xe, z as $, M as Ge, N as Ze, O as Ye, Q as qe, R as Qe, U as Je, V as et, W as tt, X as nt, Y as rt, Z as at, _ as ot, $ as st, a0 as ye, a1 as it, a2 as Pe, m as ct, a3 as lt, a4 as dt, w as ut, G as ft, H as mt } from "./F0CanvasPanel-DAEeI3lV.js";
|
|
2
2
|
import { jsxs as R, jsx as c } from "react/jsx-runtime";
|
|
3
|
-
import { forwardRef as re, useId as pt, useState as x, useRef as F, useEffect as _, useMemo as
|
|
3
|
+
import { forwardRef as re, useId as pt, useState as x, useRef as F, useEffect as _, useMemo as Q, useCallback as M } from "react";
|
|
4
4
|
import { d as H, f as de } from "./tooltip-CrXp1Uaz.js";
|
|
5
5
|
import { F as Ce, a as ht, b as gt } from "./VolumeMuted-UfTwt2zn.js";
|
|
6
|
-
import { b as vt } from "./MapProvider-
|
|
6
|
+
import { b as vt } from "./MapProvider-WM9ZFI_s.js";
|
|
7
7
|
function Re(e) {
|
|
8
8
|
return Array.isArray(e) && e.every(
|
|
9
9
|
(t) => typeof t == "object" && t !== null && "locale" in t && "value" in t
|
|
@@ -52,7 +52,7 @@ function Z(e, t) {
|
|
|
52
52
|
}
|
|
53
53
|
return a[0];
|
|
54
54
|
}
|
|
55
|
-
const Se = [0.5, 0.75, 1, 1.25, 1.5], oe = 1, le = 0.25,
|
|
55
|
+
const Se = [0.5, 0.75, 1, 1.25, 1.5], oe = 1, le = 0.25, J = 5, te = 0.1, Y = 12, bt = 1, yt = 250, Lt = [25, 50, 75], wt = 300 * 1e3, kt = 10, xt = 0.03;
|
|
56
56
|
function ne(e) {
|
|
57
57
|
if (!Number.isFinite(e) || e < 0)
|
|
58
58
|
return "0:00";
|
|
@@ -317,10 +317,10 @@ function Ct({
|
|
|
317
317
|
let C = null;
|
|
318
318
|
switch (v.key) {
|
|
319
319
|
case "ArrowLeft":
|
|
320
|
-
C = Math.max(0, e -
|
|
320
|
+
C = Math.max(0, e - J);
|
|
321
321
|
break;
|
|
322
322
|
case "ArrowRight":
|
|
323
|
-
C = Math.min(t, e +
|
|
323
|
+
C = Math.min(t, e + J);
|
|
324
324
|
break;
|
|
325
325
|
case "Home":
|
|
326
326
|
C = 0;
|
|
@@ -452,12 +452,12 @@ function St({
|
|
|
452
452
|
variant: "ghost",
|
|
453
453
|
size: "sm",
|
|
454
454
|
hideLabel: !0,
|
|
455
|
-
icon:
|
|
455
|
+
icon: Qe,
|
|
456
456
|
label: h("videoPlayer.settings")
|
|
457
457
|
}
|
|
458
458
|
) }),
|
|
459
459
|
/* @__PURE__ */ R(
|
|
460
|
-
|
|
460
|
+
Je,
|
|
461
461
|
{
|
|
462
462
|
container: b,
|
|
463
463
|
side: "top",
|
|
@@ -866,7 +866,7 @@ function Nt(e, { enabled: t, describedSrc: a, descriptions: r }) {
|
|
|
866
866
|
return C && (f.addEventListener("addtrack", A), f.addEventListener("removetrack", A)), () => {
|
|
867
867
|
C && (f.removeEventListener("addtrack", A), f.removeEventListener("removetrack", A)), w.forEach((P) => P()), h && window.speechSynthesis.cancel(), E();
|
|
868
868
|
};
|
|
869
|
-
}, [e, t, o, r, s]),
|
|
869
|
+
}, [e, t, o, r, s]), Q(
|
|
870
870
|
() => ({ trackSrc: s, needsCrossOrigin: n, available: m, activeCue: g }),
|
|
871
871
|
[s, n, m, g]
|
|
872
872
|
);
|
|
@@ -894,12 +894,12 @@ function _t({
|
|
|
894
894
|
n.preventDefault(), a();
|
|
895
895
|
return;
|
|
896
896
|
case "ArrowLeft":
|
|
897
|
-
n.preventDefault(), t(Math.max(0, d.currentTime -
|
|
897
|
+
n.preventDefault(), t(Math.max(0, d.currentTime - J));
|
|
898
898
|
return;
|
|
899
899
|
case "ArrowRight": {
|
|
900
900
|
n.preventDefault();
|
|
901
|
-
const g = d.duration || d.currentTime +
|
|
902
|
-
t(Math.min(g, d.currentTime +
|
|
901
|
+
const g = d.duration || d.currentTime + J;
|
|
902
|
+
t(Math.min(g, d.currentTime + J));
|
|
903
903
|
return;
|
|
904
904
|
}
|
|
905
905
|
case "ArrowUp":
|
|
@@ -1000,7 +1000,7 @@ function Ut(e, t) {
|
|
|
1000
1000
|
return E && (l.addEventListener("addtrack", T), l.addEventListener("removetrack", T)), e.addEventListener("loadedmetadata", h), () => {
|
|
1001
1001
|
b.forEach((k) => k()), E && (l.removeEventListener("addtrack", T), l.removeEventListener("removetrack", T)), e.removeEventListener("loadedmetadata", h);
|
|
1002
1002
|
};
|
|
1003
|
-
}, [e, t, o, a]),
|
|
1003
|
+
}, [e, t, o, a]), Q(
|
|
1004
1004
|
() => ({
|
|
1005
1005
|
trackSrc: a,
|
|
1006
1006
|
needsCrossOrigin: r,
|
|
@@ -1174,16 +1174,16 @@ function Wt({
|
|
|
1174
1174
|
onComplete: f,
|
|
1175
1175
|
...h
|
|
1176
1176
|
}) {
|
|
1177
|
-
const { t: b } = W(), E = F(null), T =
|
|
1177
|
+
const { t: b } = W(), E = F(null), T = Q(() => ae(e), [e]), [k, w] = x(
|
|
1178
1178
|
() => Z(T, n)
|
|
1179
|
-
), O = T.some((L) => L.locale === k) ? k : Z(T, n), v = ee(e, O) ?? "", C =
|
|
1179
|
+
), O = T.some((L) => L.locale === k) ? k : Z(T, n), v = ee(e, O) ?? "", C = Q(
|
|
1180
1180
|
() => ae(s?.captions),
|
|
1181
1181
|
[s?.captions]
|
|
1182
1182
|
), [A, P] = x(
|
|
1183
1183
|
() => Z(C, n)
|
|
1184
1184
|
), i = C.some(
|
|
1185
1185
|
(L) => L.locale === A
|
|
1186
|
-
) ? A : Z(C, n), D = ee(s?.captions, i), S =
|
|
1186
|
+
) ? A : Z(C, n), D = ee(s?.captions, i), S = Q(
|
|
1187
1187
|
() => ae(s?.descriptions, s?.describedSrc),
|
|
1188
1188
|
[s?.descriptions, s?.describedSrc]
|
|
1189
1189
|
), [B, j] = x(
|
|
@@ -1409,11 +1409,11 @@ function Wt({
|
|
|
1409
1409
|
}
|
|
1410
1410
|
);
|
|
1411
1411
|
}
|
|
1412
|
-
const
|
|
1412
|
+
const Qt = ft(
|
|
1413
1413
|
mt("F0VideoPlayer", Wt)
|
|
1414
1414
|
);
|
|
1415
1415
|
export {
|
|
1416
|
-
|
|
1416
|
+
Qt as F,
|
|
1417
1417
|
ae as c,
|
|
1418
1418
|
Z as d,
|
|
1419
1419
|
Le as l,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as m, jsxs as R, Fragment as We } from "react/jsx-runtime";
|
|
2
2
|
import * as qe from "react";
|
|
3
3
|
import oe, { useRef as L, useState as J, useCallback as K, useEffect as ie, useContext as ht, useMemo as X, createContext as Ft, forwardRef as Qe, useLayoutEffect as Lt, memo as Mt, useReducer as kz, cloneElement as nO, PureComponent as cd, useId as mi, useImperativeHandle as ia, Fragment as Vf, createElement as Im, isValidElement as _z, Suspense as Sz, lazy as Cz, useDebugValue as iO, version as E4, createRef as rO, useSyncExternalStore as N4 } from "react";
|
|
4
|
-
import { f4 as A4, f5 as Zu, f6 as Ez, cP as oO, f7 as Nz, f8 as Az, f9 as Tz, fa as Iv, fb as Oz, fc as Iz, fd as Dz, fe as Mz, ff as Pz, fg as Rz, fh as Lz,
|
|
4
|
+
import { f4 as A4, f5 as Zu, f6 as Ez, cP as oO, f7 as Nz, f8 as Az, f9 as Tz, fa as Iv, fb as Oz, fc as Iz, fd as Dz, fe as Mz, ff as Pz, fg as Rz, fh as Lz, ad as it, fi as sO, fj as Fz, cn as Vt, aL as Qu, aM as dd, aw as $z, ax as Bz, cR as go, G as $t, H as ii, J as fd, dj as Mk, ex as Pk, ey as Dm, S as Be, fk as aO, ez as Rk, u as Re, w as st, bl as eh, cq as xc, bt as Fy, s as Lk, cV as zz, cC as lO, cS as jz, dg as Hz, e5 as cO, z as De, a_ as th, fl as Vz, b6 as Wz, b7 as Uz, fm as qz, cx as dO, dJ as fO, fn as uO, da as hO, fo as Kz, fp as Gz, fq as _a, fr as zt, fs as Ni, ft as pO, fu as Yz, fv as mO, fw as Xz, fx as Xn, fy as $y, fz as pn, fA as gO, fB as By, fC as Fk, fD as $k, fE as Bk, fF as Wn, fG as Ci, fH as Hb, fI as zy, fJ as Jz, fK as ai, fL as $o, fM as ki, fN as gl, fO as zk, fP as jy, fQ as Yp, fR as Hy, eC as jk, fS as Zz, fT as Xh, fU as Mm, fV as Qz, fW as ej, fX as tj, fY as nj, fZ as ij, f_ as rj, f$ as yO, g0 as vO, g1 as bO, g2 as wO, g3 as xO, g4 as oj, g5 as Pm, g6 as sj, g7 as aj, g8 as nh, g9 as ra, cZ as Jo, ga as Hk, gb as Wo, gc as kO, c_ as _O, gd as lj, ge as cj, cX as dj, gf as fj, cY as uj, dl as li, gg as ci, gh as hj, gi as pj, gj as mj, gk as gj, gl as yj, gm as Vb, gn as vj, a6 as SO, go as CO, ew as _r, ac as Jt, eN as bj, ds as mr, cm as ud, d5 as Xa, ao as ih, ap as wj, dI as xj, gp as EO, gq as NO, q as AO, af as is, i as hd, eA as TO, cF as OO, cG as Vk, ab as rh, N as Vy, gr as kj, es as IO, df as _j, gs as DO, eR as $n, gt as MO, gu as PO, gv as Wb, gw as Sj, gx as T4, gy as RO, et as oa, eZ as LO, dx as FO, eT as Wy, K as Uy, L as Wk, M as qy, eX as Cj, l as Qn, aG as O4, aO as Ej, b0 as Nj, by as Uk, gz as $O, gA as Aj, eS as qk, gB as Kk, gC as BO, gD as yl, gE as Dv, bX as zO, cw as vl, ak as br, dm as Gs, eq as Tj, gF as I4, em as Gk, gG as Oj, dU as Ij, e9 as Dj, e7 as Mj, gH as jO, gI as Pj, cQ as Rj, gJ as Lj, gK as HO, ah as VO, gL as Fj, gM as $j, gN as Bj, gO as D4, gP as M4, gQ as P4, gR as R4, gS as zj, aE as jj, gT as WO, du as Hj, gU as Vj, cL as pd, O as UO, Q as qO, U as KO, gV as Wj, gW as Uj, gX as L4, dS as Rm, eL as Wf, W as GO, X as YO, Z as XO, _ as JO, x as sa, cr as Hr, t as qj, y as Kj, gY as Gj, A as Ky, gZ as ZO, g_ as QO, g$ as Yj, h0 as Lm, h1 as Xj, h2 as Jj, h3 as Ba, h4 as Zj, h5 as F4, h6 as Qj, h7 as eH, h8 as Fm, h9 as tH, ha as nH, hb as iH, hc as eI, hd as rH, he as tI, hf as oH, hg as Gy, hh as md, hi as sH, hj as Yk, hk as ln, hl as aH, cO as Uf, hm as ti, hn as lH, c$ as oh, ho as cH, a9 as Ja, av as Ub, dp as dH, dq as fH, cy as nI, cz as iI, cA as rI, hp as Xk, hq as uH, d4 as oI, bR as sh, aU as rs, ek as sI, el as aI, aI as lI, aX as hH, cg as cI, dH as pH, hr as mH, hs as gH, ht as $m, hu as Do, n as yH, c4 as vH, hv as bH, d$ as wH, aT as Bm, c7 as dI, c2 as xH, E as $4, ej as kH, a$ as _H, hw as SH, hx as Yy, hy as Xy, hz as Jy, cB as Zy, hA as CH, hB as zm, hC as EH, hD as NH, dr as AH, hE as fI, bA as Mv, hF as TH, hG as OH, bD as IH, bJ as DH, hH as B4, hI as MH, hJ as z4, hK as Pv, hL as uI, a3 as hI, c3 as PH, a7 as RH, j as Jk, hM as LH, hN as FH, dP as $H, k as Zk, eG as BH, bW as zH, bN as jH, bv as j4, bz as Qk, cc as HH, eh as VH, hO as pI, hP as WH, hQ as e2, m as UH, az as qH, aV as KH, c5 as GH, hR as YH, hS as XH, B as JH, hT as ZH, hU as QH, hV as eV, hW as tV, hX as mI, cf as nV, hY as t2, hZ as iV, h_ as rV, h$ as oV, i0 as Rv, i1 as sV, i2 as Ie, i3 as ah, i4 as aV, i5 as lV, i6 as cV, i7 as dV, i8 as H4, i9 as fV, ia as jm, V as uV, ib as hV, ic as Lv, id as Jh, ie as pV, ig as mV, ih as gV, ii as yV, ij as vV, ay as bV, c as wV, c6 as xV, Y as Fv, ik as lh, il as n2, im as i2, io as ch, ip as kV, c0 as _V, eH as r2, ec as V4, an as SV, aj as CV, ef as EV, aB as NV, bu as AV, ce as TV, ca as OV, bn as gI, bo as yI, bp as vI, bM as bI, aK as wI, as as xI, aq as kI, at as _I, ar as SI, aQ as CI, b$ as EI, cD as NI, iq as AI, ir as IV, cK as DV, bc as MV, ba as PV, b9 as RV, b8 as LV, bb as FV, bq as $V, ch as BV, cp as zV, co as jV, cd as HV, bH as VV, bQ as WV, a4 as UV, cu as qV, is as KV, it as $v, iu as GV, bw as YV, iv as TI, iw as o2, ix as Fs, iy as ac, iz as OI, iA as II, cJ as XV, iB as JV, iC as ZV, iD as QV, iE as eW, cE as tW, dR as nW, ct as iW, iF as rW } from "./F0CanvasPanel-DAEeI3lV.js";
|
|
5
5
|
import { d as U, g as oW, e as di, T as dh, a as fh, b as uh, f as tn, u as s2, S as sW, c as Qy } from "./tooltip-CrXp1Uaz.js";
|
|
6
6
|
import { g as hh } from "./_commonjsHelpers-ByX85dGu.js";
|
|
7
7
|
import DI, { unstable_batchedUpdates as Zh, createPortal as e1, flushSync as aW } from "react-dom";
|
|
@@ -38991,7 +38991,7 @@ const M0 = ({
|
|
|
38991
38991
|
}
|
|
38992
38992
|
);
|
|
38993
38993
|
}, Ohe = Cz(
|
|
38994
|
-
() => import("./index-
|
|
38994
|
+
() => import("./index-BuHr35P1.js").then((e) => ({ default: e.MapCollection }))
|
|
38995
38995
|
), Xs = {
|
|
38996
38996
|
table: {
|
|
38997
38997
|
name: "Table",
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
import { jsx as r, jsxs as n, Fragment as v } from "react/jsx-runtime";
|
|
2
|
+
import { useState as m, useEffect as E } from "react";
|
|
3
|
+
import { u as F, T as S, h as T, S as V, i as A } from "./F0CanvasPanel-DAEeI3lV.js";
|
|
4
|
+
import { d as D } from "./index-B1tQWotf.js";
|
|
5
|
+
import { f as L, c as R } from "./sheetPreview-Bqj3xODH.js";
|
|
6
|
+
import { u as z, D as U } from "./DocumentToolbar-BAa5mh7x.js";
|
|
7
|
+
const w = 1e3, _ = 100, $ = ({
|
|
8
|
+
url: a,
|
|
9
|
+
filename: f,
|
|
10
|
+
withCredentials: d = !0,
|
|
11
|
+
actions: k,
|
|
12
|
+
toolbar: l = "top"
|
|
13
|
+
}) => {
|
|
14
|
+
const c = F(), u = z(), [t, b] = m(null), [N, i] = m(!1), [g, h] = m(0);
|
|
15
|
+
E(() => {
|
|
16
|
+
let e = !1;
|
|
17
|
+
return b(null), i(!1), h(0), L(a, {
|
|
18
|
+
maxRows: w,
|
|
19
|
+
maxCols: _,
|
|
20
|
+
withCredentials: d
|
|
21
|
+
}).then((o) => {
|
|
22
|
+
e || (o.length === 0 ? i(!0) : b(o));
|
|
23
|
+
}).catch(() => {
|
|
24
|
+
e || i(!0);
|
|
25
|
+
}), () => {
|
|
26
|
+
e = !0;
|
|
27
|
+
};
|
|
28
|
+
}, [a, d]);
|
|
29
|
+
const s = t ? t[Math.min(g, t.length - 1)] : null, p = s ? R(s.rows) : [], y = /* @__PURE__ */ r(
|
|
30
|
+
U,
|
|
31
|
+
{
|
|
32
|
+
url: a,
|
|
33
|
+
filename: f,
|
|
34
|
+
withCredentials: d,
|
|
35
|
+
actions: k,
|
|
36
|
+
zoom: u,
|
|
37
|
+
placement: l,
|
|
38
|
+
children: t && t.length > 1 ? /* @__PURE__ */ r(
|
|
39
|
+
S,
|
|
40
|
+
{
|
|
41
|
+
type: "single",
|
|
42
|
+
size: "sm",
|
|
43
|
+
value: String(g),
|
|
44
|
+
onValueChange: (e) => {
|
|
45
|
+
e && h(Number(e));
|
|
46
|
+
},
|
|
47
|
+
className: "justify-start",
|
|
48
|
+
children: t.map((e, o) => /* @__PURE__ */ r(
|
|
49
|
+
T,
|
|
50
|
+
{
|
|
51
|
+
value: String(o),
|
|
52
|
+
className: "whitespace-nowrap",
|
|
53
|
+
children: e.name
|
|
54
|
+
},
|
|
55
|
+
`${e.name}-${o}`
|
|
56
|
+
))
|
|
57
|
+
}
|
|
58
|
+
) : null
|
|
59
|
+
}
|
|
60
|
+
);
|
|
61
|
+
return /* @__PURE__ */ n("div", { className: "relative flex h-full w-full flex-col bg-f1-background", children: [
|
|
62
|
+
l === "top" ? y : null,
|
|
63
|
+
N ? /* @__PURE__ */ r("div", { className: "flex min-h-0 grow items-center justify-center text-f1-foreground-secondary", children: c.pdfViewer.previewFailed }) : s ? /* @__PURE__ */ n(v, { children: [
|
|
64
|
+
/* @__PURE__ */ r("div", { className: "min-h-0 grow overflow-auto", children: /* @__PURE__ */ n(
|
|
65
|
+
"table",
|
|
66
|
+
{
|
|
67
|
+
className: "border-collapse text-sm",
|
|
68
|
+
style: { zoom: u.scale },
|
|
69
|
+
children: [
|
|
70
|
+
/* @__PURE__ */ r("thead", { children: /* @__PURE__ */ n("tr", { children: [
|
|
71
|
+
/* @__PURE__ */ r("th", { className: "sticky top-0 z-10 border border-solid border-f1-border-secondary bg-f1-background [background-image:linear-gradient(theme(colors.f1.background.secondary.DEFAULT),theme(colors.f1.background.secondary.DEFAULT))] px-2 py-1" }),
|
|
72
|
+
p.map((e) => /* @__PURE__ */ r(
|
|
73
|
+
"th",
|
|
74
|
+
{
|
|
75
|
+
className: "sticky top-0 z-10 border border-solid border-f1-border-secondary bg-f1-background [background-image:linear-gradient(theme(colors.f1.background.secondary.DEFAULT),theme(colors.f1.background.secondary.DEFAULT))] px-2 py-1 text-center font-medium text-f1-foreground-secondary",
|
|
76
|
+
children: e
|
|
77
|
+
},
|
|
78
|
+
e
|
|
79
|
+
))
|
|
80
|
+
] }) }),
|
|
81
|
+
/* @__PURE__ */ r("tbody", { children: s.rows.map((e, o) => /* @__PURE__ */ n("tr", { children: [
|
|
82
|
+
/* @__PURE__ */ r("td", { className: "border border-solid border-f1-border-secondary bg-f1-background-secondary px-2 py-1 text-center text-f1-foreground-secondary", children: o + 1 }),
|
|
83
|
+
p.map((j, x) => /* @__PURE__ */ r(
|
|
84
|
+
"td",
|
|
85
|
+
{
|
|
86
|
+
className: "whitespace-nowrap border border-solid border-f1-border-secondary px-2 py-1 text-f1-foreground",
|
|
87
|
+
children: e[x] ?? ""
|
|
88
|
+
},
|
|
89
|
+
x
|
|
90
|
+
))
|
|
91
|
+
] }, o)) })
|
|
92
|
+
]
|
|
93
|
+
}
|
|
94
|
+
) }),
|
|
95
|
+
s.truncatedRows ? /* @__PURE__ */ n("div", { className: "flex shrink-0 items-center gap-2 border-0 border-t border-solid border-f1-border-secondary px-3 py-1.5 text-sm text-f1-foreground-secondary", children: [
|
|
96
|
+
c.t("pdfViewer.showingFirstRows.other", {
|
|
97
|
+
count: w
|
|
98
|
+
}),
|
|
99
|
+
/* @__PURE__ */ r(
|
|
100
|
+
A,
|
|
101
|
+
{
|
|
102
|
+
onClick: () => {
|
|
103
|
+
D(a, f, d);
|
|
104
|
+
},
|
|
105
|
+
children: c.pdfViewer.download
|
|
106
|
+
}
|
|
107
|
+
)
|
|
108
|
+
] }) : null
|
|
109
|
+
] }) : /* @__PURE__ */ r(
|
|
110
|
+
V,
|
|
111
|
+
{
|
|
112
|
+
role: "status",
|
|
113
|
+
"aria-busy": !0,
|
|
114
|
+
"aria-label": c.pdfViewer.loading,
|
|
115
|
+
className: "min-h-0 w-full grow rounded-none"
|
|
116
|
+
}
|
|
117
|
+
),
|
|
118
|
+
l === "floating" ? y : null
|
|
119
|
+
] });
|
|
120
|
+
};
|
|
121
|
+
export {
|
|
122
|
+
$ as default
|
|
123
|
+
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs as p, jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import { useState as u, useEffect as x } from "react";
|
|
3
|
-
import { u as w, S as y, p as g } from "./F0CanvasPanel-
|
|
4
|
-
import { u as k, D as v } from "./DocumentToolbar-
|
|
3
|
+
import { u as w, S as y, p as g } from "./F0CanvasPanel-DAEeI3lV.js";
|
|
4
|
+
import { u as k, D as v } from "./DocumentToolbar-BAa5mh7x.js";
|
|
5
5
|
const q = 2 * 1024 * 1024, N = [
|
|
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
|
@@ -6839,8 +6839,10 @@ declare module "@tiptap/core" {
|
|
|
6839
6839
|
|
|
6840
6840
|
declare module "@tiptap/core" {
|
|
6841
6841
|
interface Commands<ReturnType> {
|
|
6842
|
-
|
|
6843
|
-
|
|
6842
|
+
videoEmbed: {
|
|
6843
|
+
setVideoEmbed: (options: {
|
|
6844
|
+
src: string;
|
|
6845
|
+
}) => ReturnType;
|
|
6844
6846
|
};
|
|
6845
6847
|
}
|
|
6846
6848
|
}
|
|
@@ -6848,10 +6850,8 @@ declare module "@tiptap/core" {
|
|
|
6848
6850
|
|
|
6849
6851
|
declare module "@tiptap/core" {
|
|
6850
6852
|
interface Commands<ReturnType> {
|
|
6851
|
-
|
|
6852
|
-
|
|
6853
|
-
src: string;
|
|
6854
|
-
}) => ReturnType;
|
|
6853
|
+
transcript: {
|
|
6854
|
+
insertTranscript: (data: TranscriptData) => ReturnType;
|
|
6855
6855
|
};
|
|
6856
6856
|
}
|
|
6857
6857
|
}
|
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 m } from "./F0CanvasPanel-
|
|
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 m } from "./F0CanvasPanel-DAEeI3lV.js";
|
|
2
2
|
import { defaultTranslations as c } from "./i18n-provider-defaults.js";
|
|
3
|
-
import { A as g, C as p, t as v, s as I, v as T, y as S, B as f, l as y, i as x, q as b, E as k, G as B, p as H, r as L, j as M, e as O, g as V, k as w, F as D, T as z, w as E, h as G, a as j, n as q, z as R, m as U, o as J, D as K, b as N, f as Q, x as W, c as X, d as Y, u as Z } from "./F0AiProcessingOverlay-
|
|
3
|
+
import { A as g, C as p, t as v, s as I, v as T, y as S, B as f, l as y, i as x, q as b, E as k, G as B, p as H, r as L, j as M, e as O, g as V, k as w, F as D, T as z, w as E, h as G, a as j, n as q, z as R, m as U, o as J, D as K, b as N, f as Q, x as W, c as X, d as Y, u as Z } from "./F0AiProcessingOverlay-3H79lgMd.js";
|
|
4
4
|
export {
|
|
5
5
|
g as AiChatTranslationsProvider,
|
|
6
6
|
e as ChatSpinner,
|
|
@@ -348,8 +348,10 @@ declare module "@tiptap/core" {
|
|
|
348
348
|
|
|
349
349
|
declare module "@tiptap/core" {
|
|
350
350
|
interface Commands<ReturnType> {
|
|
351
|
-
|
|
352
|
-
|
|
351
|
+
videoEmbed: {
|
|
352
|
+
setVideoEmbed: (options: {
|
|
353
|
+
src: string;
|
|
354
|
+
}) => ReturnType;
|
|
353
355
|
};
|
|
354
356
|
}
|
|
355
357
|
}
|
|
@@ -357,10 +359,8 @@ declare module "@tiptap/core" {
|
|
|
357
359
|
|
|
358
360
|
declare module "@tiptap/core" {
|
|
359
361
|
interface Commands<ReturnType> {
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
src: string;
|
|
363
|
-
}) => ReturnType;
|
|
362
|
+
transcript: {
|
|
363
|
+
insertTranscript: (data: TranscriptData) => ReturnType;
|
|
364
364
|
};
|
|
365
365
|
}
|
|
366
366
|
}
|