@factorialco/f0-react 8.28.2 → 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-DQED3Mv_.js → ChatPdfThumbnail-QKm8T1iP.js} +1 -1
- package/dist/{ChatPostComposerDialog-Cglt6c1y.js → ChatPostComposerDialog-DF5B8NLo.js} +3 -3
- package/dist/{ChatSheetThumbnail-D8aN1W_0.js → ChatSheetThumbnail-CyiwSdZJ.js} +1 -1
- package/dist/{DocumentToolbar-BwYzIfge.js → DocumentToolbar-BAa5mh7x.js} +2 -2
- package/dist/{DocxViewer-Do_cwohd.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-BiyeWP_4.js → F0Map-B7PwCmUl.js} +4 -4
- package/dist/{F0VideoPlayer-DBb1J8Up.js → F0VideoPlayer-CNvEtJ9U.js} +18 -18
- package/dist/{MapProvider-DCv5Igan.js → MapProvider-WM9ZFI_s.js} +7170 -7160
- package/dist/SheetViewer-CvQ24W5k.js +123 -0
- package/dist/{TextViewer-Dt8cemWN.js → TextViewer-uZnjAB6W.js} +2 -2
- package/dist/ai.js +2 -2
- package/dist/component-status.js +1 -1
- package/dist/{experimental-LUkFpYEc.js → experimental-Bzwkrec6.js} +179 -179
- package/dist/experimental.js +40 -40
- package/dist/f0.js +10 -10
- package/dist/{index-DFrzKaGA.js → index-98s6Ae16.js} +62 -62
- package/dist/{index-BvI-KXPR.js → index-B1tQWotf.js} +28 -28
- package/dist/{index-Dfpbf7_V.js → index-BuHr35P1.js} +15 -15
- package/dist/{index-DmVaizb6.js → index-Ck8-Kqxo.js} +2 -2
- package/dist/index-D4H-LP6r.js +4 -0
- package/dist/{pdfWorker-BjGGQdoF.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-BUSJWoTQ.js +0 -111
- package/dist/index-BI4MTa72.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,
|