@factorialco/f0-react 16.32.1 → 16.34.0
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/{ArchiveThumbnail-BuNA4UrO.js → ArchiveThumbnail-VRBMnfOQ.js} +4 -4
- package/dist/{ArchiveViewer-W103xRky.js → ArchiveViewer-FmO3W9El.js} +12 -12
- package/dist/{ChatPostComposerDialog-BCXfHgyD.js → ChatPostComposerDialog-UWNCaU6S.js} +2 -2
- package/dist/{CoachmarkProvider-CXRAZo57.js → CoachmarkProvider-NJDyjcbB.js} +17288 -17310
- package/dist/{CodeThumbnail-CrMWds9n.js → CodeThumbnail-BLWM5FmO.js} +1 -1
- package/dist/{CodeViewer-BYY3y3VG.js → CodeViewer-BjVmQeMm.js} +4 -4
- package/dist/{DocumentToolbar-CipRq68O.js → DocumentToolbar-Dq3Lwikl.js} +3 -3
- package/dist/{DocxViewer-8dEvcQjH.js → DocxViewer-70VqeeOa.js} +1 -1
- package/dist/{F0AiProcessingOverlay-CelAhVN1.js → F0AiProcessingOverlay-DFJNq358.js} +506 -506
- package/dist/{F0Alert-CjoArzBk.js → F0Alert-nVgfw7WI.js} +6 -6
- package/dist/F0AudioPlayer-CG3RpwqJ.js +2 -0
- package/dist/{F0CanvasPanel-B7AXL0XT.js → F0CanvasPanel-Dg-yCd06.js} +9497 -9662
- package/dist/{F0DocumentViewer-DcNc-yXR.js → F0DocumentViewer-QvayGtJt.js} +2 -2
- package/dist/{F0DocumentViewer-DVByu4vb.js → F0DocumentViewer-s2CNCz31.js} +1 -1
- package/dist/{F0Map-BN8BQzMZ.js → F0Map-BPWgG3Br.js} +503 -503
- package/dist/{F0Select-CtRlKRnL.js → F0Select-DV2A6yo2.js} +5684 -5684
- package/dist/{F0VideoPlayer-THvSQSCu.js → F0VideoPlayer-D7wWuao2.js} +14 -14
- package/dist/F0VideoPlayer-Dn8MFW-n.js +1 -0
- package/dist/{HtmlViewer-ClgjG-H_.js → HtmlViewer-B79wACEv.js} +4 -4
- package/dist/{Map-CdRcz8MV.js → Map-BwNqQnRV.js} +7 -7
- package/dist/{PdfThumbnail-CXYyO2sc.js → PdfThumbnail-BiI4wG8G.js} +1 -1
- package/dist/{PdfViewer-BNPz0po0.js → PdfViewer-DxW7iBqZ.js} +6 -6
- package/dist/{SheetViewer-BV4RjCqC.js → SheetViewer-CDGVktjK.js} +4 -4
- package/dist/{TextViewer-B-a77tb9.js → TextViewer-DSWQD1PY.js} +1 -1
- package/dist/ai.d.ts +2 -2
- package/dist/ai.js +3 -3
- package/dist/component-status.js +5 -5
- package/dist/experimental.d.ts +2 -2
- package/dist/experimental.js +570 -570
- package/dist/{exports-DxWkQJMl.d.ts → exports-DjzAyxYh.d.ts} +1 -1
- package/dist/f0.d.ts +3 -3
- package/dist/f0.js +944 -944
- package/dist/{highlight-B3C1rkLK.js → highlight-Ca0-nk5V.js} +6 -6
- package/dist/{index-MQOQkW-2.d.ts → index-D-HizTYE.d.ts} +13 -8
- package/dist/{index-CZ-TTSgT.d.ts → index-R6m9VGPq.d.ts} +8 -4
- package/dist/{maplibre-D5u_EpGf.js → maplibre-CQlQTgFD.js} +1 -1
- package/dist/{pdfWorker-allMZ4J8.js → pdfWorker-VXyiKOiL.js} +1 -1
- package/dist/styles.css +1 -1
- package/dist/{useData-Clrt5l2P.js → useData-BUahpDRq.js} +1 -1
- package/package.json +2 -2
- package/dist/F0AudioPlayer-_zrcaPAA.js +0 -2
- package/dist/F0VideoPlayer-CB52ikkB.js +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as e } from "./i18n-provider-DEmElb7u.js";
|
|
2
|
-
import {
|
|
2
|
+
import { Jc as t, gn as n, xn as r } from "./F0CanvasPanel-Dg-yCd06.js";
|
|
3
3
|
import { a as i } from "./createIcon-l_kbsdJi.js";
|
|
4
4
|
import { n as a, t as o } from "./LockLocked-FmZAbVxB.js";
|
|
5
5
|
import { n as s, t as c } from "./zipTree-B2zUYl6b.js";
|
|
@@ -31,7 +31,7 @@ var m = 5, h = ({ url: h, size: g, onError: _, onRendered: v }) => {
|
|
|
31
31
|
y.t(b.fileCount === 1 ? "pdfViewer.archiveFiles.one" : "pdfViewer.archiveFiles.other", { count: b.fileCount }),
|
|
32
32
|
" ",
|
|
33
33
|
"· ",
|
|
34
|
-
|
|
34
|
+
r(b.totalSize)
|
|
35
35
|
]
|
|
36
36
|
}),
|
|
37
37
|
b.encryptedCount > 0 ? /* @__PURE__ */ p("span", {
|
|
@@ -48,7 +48,7 @@ var m = 5, h = ({ url: h, size: g, onError: _, onRendered: v }) => {
|
|
|
48
48
|
/* @__PURE__ */ f("span", {
|
|
49
49
|
className: "flex shrink-0 text-f1-foreground-secondary",
|
|
50
50
|
children: /* @__PURE__ */ f(i, {
|
|
51
|
-
icon: e.kind === "folder" ? a : e.encrypted ? o :
|
|
51
|
+
icon: e.kind === "folder" ? a : e.encrypted ? o : t,
|
|
52
52
|
size: "sm"
|
|
53
53
|
})
|
|
54
54
|
}),
|
|
@@ -59,7 +59,7 @@ var m = 5, h = ({ url: h, size: g, onError: _, onRendered: v }) => {
|
|
|
59
59
|
}),
|
|
60
60
|
/* @__PURE__ */ f("span", {
|
|
61
61
|
className: "shrink-0 tabular-nums text-f1-foreground-secondary",
|
|
62
|
-
children:
|
|
62
|
+
children: r(e.size)
|
|
63
63
|
})
|
|
64
64
|
]
|
|
65
65
|
}, e.path))
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { r as e } from "./i18n-provider-DEmElb7u.js";
|
|
2
2
|
import { t } from "./skeleton-cJaQYsv6.js";
|
|
3
|
-
import {
|
|
3
|
+
import { Jc as n, xn as r } from "./F0CanvasPanel-Dg-yCd06.js";
|
|
4
4
|
import { a as i } from "./createIcon-l_kbsdJi.js";
|
|
5
5
|
import { n as a, t as o } from "./LockLocked-FmZAbVxB.js";
|
|
6
6
|
import { n as s, t as c } from "./zipTree-B2zUYl6b.js";
|
|
7
|
-
import { t as l } from "./DocumentToolbar-
|
|
7
|
+
import { t as l } from "./DocumentToolbar-Dq3Lwikl.js";
|
|
8
8
|
import { useEffect as u, useMemo as d, useState as f } from "react";
|
|
9
9
|
import { Fragment as p, jsx as m, jsxs as h } from "react/jsx-runtime";
|
|
10
10
|
//#region src/addons/documents/F0DocumentViewer/components/ArchiveViewer.tsx
|
|
@@ -16,7 +16,7 @@ var g = 2e3, _ = 200, v = (e) => e.children.reduce((e, t) => e + 1 + v(t), 0), y
|
|
|
16
16
|
l++;
|
|
17
17
|
let e = /* @__PURE__ */ h(p, { children: [
|
|
18
18
|
/* @__PURE__ */ m(i, {
|
|
19
|
-
icon: g.kind === "folder" ? a :
|
|
19
|
+
icon: g.kind === "folder" ? a : n,
|
|
20
20
|
size: "sm",
|
|
21
21
|
color: "secondary"
|
|
22
22
|
}),
|
|
@@ -38,7 +38,7 @@ var g = 2e3, _ = 200, v = (e) => e.children.reduce((e, t) => e + 1 + v(t), 0), y
|
|
|
38
38
|
}) : null,
|
|
39
39
|
/* @__PURE__ */ m("span", {
|
|
40
40
|
className: "shrink-0 tabular-nums text-f1-foreground-secondary",
|
|
41
|
-
children:
|
|
41
|
+
children: r(g.size)
|
|
42
42
|
})
|
|
43
43
|
] });
|
|
44
44
|
g.kind === "folder" ? f.push(/* @__PURE__ */ m("li", { children: /* @__PURE__ */ h("details", {
|
|
@@ -61,11 +61,11 @@ var g = 2e3, _ = 200, v = (e) => e.children.reduce((e, t) => e + 1 + v(t), 0), y
|
|
|
61
61
|
rows: u(e.root.children, 0),
|
|
62
62
|
shown: l
|
|
63
63
|
};
|
|
64
|
-
}, b = ({ url:
|
|
65
|
-
let C = e(), w = `${p ? "1" : "0"}|${
|
|
64
|
+
}, b = ({ url: n, filename: a, withCredentials: p = !0, actions: b, toolbar: x = "top", hideDownload: S = !1 }) => {
|
|
65
|
+
let C = e(), w = `${p ? "1" : "0"}|${n}`, [T, E] = f(null);
|
|
66
66
|
u(() => {
|
|
67
67
|
let e = new AbortController();
|
|
68
|
-
return s(
|
|
68
|
+
return s(n, {
|
|
69
69
|
withCredentials: p,
|
|
70
70
|
signal: e.signal
|
|
71
71
|
}).then((t) => {
|
|
@@ -83,7 +83,7 @@ var g = 2e3, _ = 200, v = (e) => e.children.reduce((e, t) => e + 1 + v(t), 0), y
|
|
|
83
83
|
}), () => e.abort();
|
|
84
84
|
}, [
|
|
85
85
|
w,
|
|
86
|
-
|
|
86
|
+
n,
|
|
87
87
|
p
|
|
88
88
|
]);
|
|
89
89
|
let D = T?.key === w ? T : null, O = D?.index ?? null, k = d(() => {
|
|
@@ -102,7 +102,7 @@ var g = 2e3, _ = 200, v = (e) => e.children.reduce((e, t) => e + 1 + v(t), 0), y
|
|
|
102
102
|
M,
|
|
103
103
|
C.pdfViewer.archiveEncrypted
|
|
104
104
|
]), P = d(() => new Intl.NumberFormat(), []), F = a ?? "", I = /* @__PURE__ */ m(l, {
|
|
105
|
-
url:
|
|
105
|
+
url: n,
|
|
106
106
|
filename: a,
|
|
107
107
|
withCredentials: p,
|
|
108
108
|
actions: b,
|
|
@@ -124,10 +124,10 @@ var g = 2e3, _ = 200, v = (e) => e.children.reduce((e, t) => e + 1 + v(t), 0), y
|
|
|
124
124
|
"aria-label": C.pdfViewer.loading,
|
|
125
125
|
className: "min-h-0 w-full grow rounded-none"
|
|
126
126
|
});
|
|
127
|
-
let e = (e) => P.format(e),
|
|
127
|
+
let e = (e) => P.format(e), n = [
|
|
128
128
|
C.t(A.fileCount === 1 ? "pdfViewer.archiveFiles.one" : "pdfViewer.archiveFiles.other", { count: e(A.fileCount) }),
|
|
129
129
|
A.folderCount > 0 ? C.t(A.folderCount === 1 ? "pdfViewer.archiveFolders.one" : "pdfViewer.archiveFolders.other", { count: e(A.folderCount) }) : null,
|
|
130
|
-
C.t("pdfViewer.archiveSize", { size:
|
|
130
|
+
C.t("pdfViewer.archiveSize", { size: r(A.totalSize) })
|
|
131
131
|
].filter(Boolean).join(" · "), a = Math.max(O.totalEntries, M), s = O.truncated || N.shown < M;
|
|
132
132
|
return /* @__PURE__ */ h("div", {
|
|
133
133
|
className: "flex min-h-0 grow flex-col gap-3 overflow-auto px-6 pb-6",
|
|
@@ -136,7 +136,7 @@ var g = 2e3, _ = 200, v = (e) => e.children.reduce((e, t) => e + 1 + v(t), 0), y
|
|
|
136
136
|
children: [
|
|
137
137
|
/* @__PURE__ */ m("p", {
|
|
138
138
|
className: "m-0",
|
|
139
|
-
children:
|
|
139
|
+
children: n
|
|
140
140
|
}),
|
|
141
141
|
A.encryptedCount > 0 ? /* @__PURE__ */ h("p", {
|
|
142
142
|
className: "m-0 flex flex-row items-center gap-1.5",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { N as e } from "./CoachmarkProvider-
|
|
1
|
+
import { N as e } from "./CoachmarkProvider-NJDyjcbB.js";
|
|
2
2
|
import { r as t } from "./i18n-provider-DEmElb7u.js";
|
|
3
|
-
import {
|
|
3
|
+
import { vi as n } from "./F0CanvasPanel-Dg-yCd06.js";
|
|
4
4
|
import { a as r, f as i, i as a, u as o } from "./posts-riN1RZ23.js";
|
|
5
5
|
import { useCallback as s, useRef as c, useState as l } from "react";
|
|
6
6
|
import { jsx as u, jsxs as d } from "react/jsx-runtime";
|