@factorialco/f0-react 6.88.2 → 6.88.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/{ChatPdfThumbnail-BHa-zmGt.js → ChatPdfThumbnail-DyN19lpl.js} +1 -1
- package/dist/{CoachmarkProvider-Dl0ullRd.js → CoachmarkProvider-DEb5iYR1.js} +3938 -3933
- package/dist/{DocumentToolbar-CbvxX6_A.js → DocumentToolbar-yRNLFw0I.js} +29 -29
- package/dist/{DocxViewer-D0ywzo9E.js → DocxViewer-DRIhy7xS.js} +10 -10
- package/dist/{F0AiProcessingOverlay-CwJG6TgU.js → F0AiProcessingOverlay-D13utNB6.js} +408 -402
- package/dist/{F0CanvasPanel-CpgOQnbI.js → F0CanvasPanel-CHIKqAx1.js} +1420 -1414
- package/dist/{F0VideoPlayer-CXAjfSnS.js → F0VideoPlayer-DNtsUfgx.js} +143 -139
- package/dist/{LocationMap-BHPvamUV.js → LocationMap-CjCx8Izp.js} +1 -1
- package/dist/{SheetViewer-B0xNsuOQ.js → SheetViewer-Z6YuRpt5.js} +12 -12
- package/dist/{TextViewer-DDrr3xIG.js → TextViewer-BDO172lU.js} +2 -2
- package/dist/ai.js +2 -2
- package/dist/component-status.js +72 -70
- package/dist/{experimental-B-SPgEj_.js → experimental-DTSd_ojK.js} +583 -569
- package/dist/experimental.d.ts +11 -2
- package/dist/experimental.js +3 -3
- package/dist/f0.js +396 -388
- package/dist/{index-D1wOJXWr.js → index-ChySRaDP.js} +49 -49
- package/dist/index-DZQja3s3.js +4 -0
- package/dist/{pdfWorker-mxUZLnlP.js → pdfWorker-BQ72TLRX.js} +2 -2
- package/package.json +2 -1
- package/dist/index-uG8opRj1.js +0 -4
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as p } from "react/jsx-runtime";
|
|
2
|
-
import { m } from "./experimental-
|
|
2
|
+
import { m } from "./experimental-DTSd_ojK.js";
|
|
3
3
|
import { useRef as l, useEffect as i, useState as b } from "react";
|
|
4
4
|
const k = "https://tiles.openfreemap.org/styles/positron", y = "https://tiles.openfreemap.org/styles/dark", R = 15, d = (n) => {
|
|
5
5
|
const [c, s] = b(!1);
|
|
@@ -1,25 +1,25 @@
|
|
|
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-
|
|
3
|
+
import { u as v, T as S, h as V, S as R } from "./F0CanvasPanel-CHIKqAx1.js";
|
|
4
4
|
import { f as z, c as E } from "./sheetPreview-Djc-YyVs.js";
|
|
5
|
-
import { u as _, D as j } from "./DocumentToolbar-
|
|
5
|
+
import { u as _, D as j } from "./DocumentToolbar-yRNLFw0I.js";
|
|
6
6
|
const g = 1e3, F = 100, G = ({
|
|
7
7
|
url: n,
|
|
8
8
|
filename: y,
|
|
9
9
|
withCredentials: d = !0,
|
|
10
10
|
actions: x
|
|
11
11
|
}) => {
|
|
12
|
-
const
|
|
12
|
+
const l = v(), f = _(), [t, m] = i(null), [w, c] = i(!1), [u, b] = i(0);
|
|
13
13
|
k(() => {
|
|
14
14
|
let e = !1;
|
|
15
|
-
return m(null),
|
|
15
|
+
return m(null), c(!1), b(0), z(n, {
|
|
16
16
|
maxRows: g,
|
|
17
17
|
maxCols: F,
|
|
18
18
|
withCredentials: d
|
|
19
19
|
}).then((o) => {
|
|
20
|
-
e || (o.length === 0 ?
|
|
20
|
+
e || (o.length === 0 ? c(!0) : m(o));
|
|
21
21
|
}).catch(() => {
|
|
22
|
-
e ||
|
|
22
|
+
e || c(!0);
|
|
23
23
|
}), () => {
|
|
24
24
|
e = !0;
|
|
25
25
|
};
|
|
@@ -34,7 +34,7 @@ const g = 1e3, F = 100, G = ({
|
|
|
34
34
|
withCredentials: d,
|
|
35
35
|
actions: x,
|
|
36
36
|
zoom: f,
|
|
37
|
-
children: t && t.length > 1
|
|
37
|
+
children: t && t.length > 1 ? /* @__PURE__ */ r(
|
|
38
38
|
S,
|
|
39
39
|
{
|
|
40
40
|
type: "single",
|
|
@@ -54,10 +54,10 @@ const g = 1e3, F = 100, G = ({
|
|
|
54
54
|
`${e.name}-${o}`
|
|
55
55
|
))
|
|
56
56
|
}
|
|
57
|
-
)
|
|
57
|
+
) : null
|
|
58
58
|
}
|
|
59
59
|
),
|
|
60
|
-
w ? /* @__PURE__ */ r("div", { className: "flex min-h-0 grow items-center justify-center text-f1-foreground-secondary", children:
|
|
60
|
+
w ? /* @__PURE__ */ r("div", { className: "flex min-h-0 grow items-center justify-center text-f1-foreground-secondary", children: l.pdfViewer.previewFailed }) : s ? /* @__PURE__ */ a(N, { children: [
|
|
61
61
|
/* @__PURE__ */ r("div", { className: "min-h-0 grow overflow-auto", children: /* @__PURE__ */ a(
|
|
62
62
|
"table",
|
|
63
63
|
{
|
|
@@ -89,15 +89,15 @@ const g = 1e3, F = 100, G = ({
|
|
|
89
89
|
]
|
|
90
90
|
}
|
|
91
91
|
) }),
|
|
92
|
-
s.truncatedRows
|
|
92
|
+
s.truncatedRows ? /* @__PURE__ */ r("div", { className: "shrink-0 border-0 border-t border-solid border-f1-border-secondary px-3 py-1.5 text-sm text-f1-foreground-secondary", children: l.t("pdfViewer.showingFirstRows.other", {
|
|
93
93
|
count: g
|
|
94
|
-
}) })
|
|
94
|
+
}) }) : null
|
|
95
95
|
] }) : /* @__PURE__ */ r(
|
|
96
96
|
R,
|
|
97
97
|
{
|
|
98
98
|
role: "status",
|
|
99
99
|
"aria-busy": !0,
|
|
100
|
-
"aria-label":
|
|
100
|
+
"aria-label": l.pdfViewer.loading,
|
|
101
101
|
className: "min-h-0 w-full grow rounded-none"
|
|
102
102
|
}
|
|
103
103
|
)
|
|
@@ -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-
|
|
4
|
-
import { u as y, D as g } from "./DocumentToolbar-
|
|
3
|
+
import { u as x, S as p, p as w } from "./F0CanvasPanel-CHIKqAx1.js";
|
|
4
|
+
import { u as y, D as g } from "./DocumentToolbar-yRNLFw0I.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.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-
|
|
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-CHIKqAx1.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-
|
|
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-D13utNB6.js";
|
|
4
4
|
export {
|
|
5
5
|
P as AiChatTranslationsProvider,
|
|
6
6
|
e as ChatSpinner,
|