@factorialco/f0-react 10.11.2 → 10.12.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/{ChatPostComposerDialog-BEiVsYPd.js → ChatPostComposerDialog-Dxf_Nbbb.js} +2 -2
- package/dist/{CoachmarkProvider-C2cTMKgA.js → CoachmarkProvider-ByfCE0-j.js} +3469 -3414
- package/dist/{DocumentToolbar-DN4zdfiO.js → DocumentToolbar-UFkOiw8e.js} +2 -2
- package/dist/{DocxViewer-DsvcWnn4.js → DocxViewer-BjmzL4sn.js} +1 -1
- package/dist/{F0AiProcessingOverlay-yQIsYRms.js → F0AiProcessingOverlay-B2kWuLdK.js} +1 -1
- package/dist/{F0CanvasPanel-CLp2sCjm.js → F0CanvasPanel-9PijExob.js} +28 -24
- package/dist/F0DocumentViewer-DDaXV0U3.js +3 -0
- package/dist/{F0DocumentViewer-Bd3izb6I.js → F0DocumentViewer-hMDS3Kpg.js} +170 -161
- package/dist/{F0Map-PvG39178.js → F0Map-CznQg3YF.js} +3 -3
- package/dist/{F0VideoPlayer-CQagh8Eo.js → F0VideoPlayer-BByW1cIV.js} +1 -1
- package/dist/F0VideoPlayer-DerqL5g5.js +1 -0
- package/dist/{Map-DY7bI6Hi.js → Map-DZ1yBUGL.js} +3 -3
- package/dist/{PdfThumbnail-BpiRg0m6.js → PdfThumbnail-Dkwm6GDn.js} +1 -1
- package/dist/{SheetViewer-BSwX6EZX.js → SheetViewer-DT6WypD8.js} +3 -3
- package/dist/{TextViewer-K_7wKV8e.js → TextViewer-D8MLMNev.js} +1 -1
- package/dist/ai.d.ts +2 -2
- package/dist/ai.js +2 -2
- package/dist/component-status.js +1 -1
- package/dist/experimental.d.ts +2 -2
- package/dist/experimental.js +4 -4
- package/dist/{exports-cU26nMV5.d.ts → exports-0B2luDkl.d.ts} +1 -1
- package/dist/f0.d.ts +3 -3
- package/dist/f0.js +6 -6
- package/dist/{index-BDEEuyti.d.ts → index-Bdpf44A3.d.ts} +1 -1
- package/dist/{index-BftFpZQm.d.ts → index-s5SdT3uE.d.ts} +3 -1
- package/dist/{maplibre-DllgtJ_b.js → maplibre-GffVTD0r.js} +1 -1
- package/dist/{pdfWorker-Tv3MY3tw.js → pdfWorker-C3UVNtZV.js} +1 -1
- package/dist/styles.css +1 -1
- package/package.json +1 -1
- package/dist/F0DocumentViewer-DcJ7xzOj.js +0 -3
- package/dist/F0VideoPlayer-iAcACeDO.js +0 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { rn as e } from "./popover-B7fqB9lu.js";
|
|
2
|
-
import { Ds as t } from "./F0CanvasPanel-
|
|
2
|
+
import { Ds as t } from "./F0CanvasPanel-9PijExob.js";
|
|
3
3
|
import { W as n } from "./useData-CAl9SKtE.js";
|
|
4
4
|
import { dr as r, t as i } from "./F0Select-By_QpX1S.js";
|
|
5
|
-
import { a, c as o, i as s, l as c, o as l, r as u, s as d } from "./F0DocumentViewer-
|
|
5
|
+
import { a, c as o, i as s, l as c, o as l, r as u, s as d } from "./F0DocumentViewer-hMDS3Kpg.js";
|
|
6
6
|
import { useCallback as f, useMemo as p, useState as m } from "react";
|
|
7
7
|
import { jsx as h, jsxs as g } from "react/jsx-runtime";
|
|
8
8
|
//#region src/addons/documents/F0DocumentViewer/components/DocumentToolbar.tsx
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ln as e, rn as t } from "./popover-B7fqB9lu.js";
|
|
2
2
|
import { t as n } from "./renderDocx-_UmnE-yc.js";
|
|
3
|
-
import { n as r, t as i } from "./DocumentToolbar-
|
|
3
|
+
import { n as r, t as i } from "./DocumentToolbar-UFkOiw8e.js";
|
|
4
4
|
import { useEffect as a, useRef as o, useState as s } from "react";
|
|
5
5
|
import { jsx as c, jsxs as l } from "react/jsx-runtime";
|
|
6
6
|
//#region src/addons/documents/F0DocumentViewer/components/DocxViewer.tsx
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Ht as e, Mt as t, Zn as n, _t as r, a as i, ar as a, b as o, gn as s, hn as c, i as l, in as u, ln as d, n as f, rn as p, rr as m, t as h, un as g, vt as _, yt as v } from "./popover-B7fqB9lu.js";
|
|
2
2
|
import { I as y, L as b } from "./tooltip-TOvfXq9F.js";
|
|
3
3
|
import { n as x, t as S } from "./F0Box-CYL5_Zhb.js";
|
|
4
|
-
import { $a as C, $n as w, $o as T, $r as E, B as D, C as O, Ds as k, Dt as A, F as j, Fr as M, Gr as N, Hr as P, Io as F, Ja as I, Jo as L, La as ee, Lt as te, M as ne, Mt as R, N as re, Oa as ie, P as z, Q as ae, Qa as oe, R as B, Ri as se, S as ce, St as le, Ts as ue, Tt as de, Ur as fe, V, Va as pe, Vo as me, Wr as he, Yr as ge, Z as _e, Zr as ve, _a as ye, a as be, at as xe, bo as Se, bt as Ce, cc as we, ct as Te, d as Ee, eo as De, et as Oe, fa as ke, fo as Ae, fr as je, g as Me, go as Ne, h as Pe, i as Fe, js as Ie, ko as Le, kt as Re, l as ze, lt as Be, m as Ve, nt as He, o as Ue, ot as We, pa as Ge, pr as Ke, pt as qe, qn as Je, r as Ye, rr as Xe, sc as Ze, to as Qe, tt as $e, u as et, ut as tt, vo as nt, vt as rt, w as it, x as at, xo as ot, xt as st, yt as ct, z as lt, zo as ut } from "./F0CanvasPanel-
|
|
4
|
+
import { $a as C, $n as w, $o as T, $r as E, B as D, C as O, Ds as k, Dt as A, F as j, Fr as M, Gr as N, Hr as P, Io as F, Ja as I, Jo as L, La as ee, Lt as te, M as ne, Mt as R, N as re, Oa as ie, P as z, Q as ae, Qa as oe, R as B, Ri as se, S as ce, St as le, Ts as ue, Tt as de, Ur as fe, V, Va as pe, Vo as me, Wr as he, Yr as ge, Z as _e, Zr as ve, _a as ye, a as be, at as xe, bo as Se, bt as Ce, cc as we, ct as Te, d as Ee, eo as De, et as Oe, fa as ke, fo as Ae, fr as je, g as Me, go as Ne, h as Pe, i as Fe, js as Ie, ko as Le, kt as Re, l as ze, lt as Be, m as Ve, nt as He, o as Ue, ot as We, pa as Ge, pr as Ke, pt as qe, qn as Je, r as Ye, rr as Xe, sc as Ze, to as Qe, tt as $e, u as et, ut as tt, vo as nt, vt as rt, w as it, x as at, xo as ot, xt as st, yt as ct, z as lt, zo as ut } from "./F0CanvasPanel-9PijExob.js";
|
|
5
5
|
import { t as dt } from "./i18n-provider-defaults-BA2_-hRH.js";
|
|
6
6
|
import { C as ft, J as pt, L as mt, T as ht, V as gt, d as _t, j as vt, k as yt, q as bt, w as xt } from "./useData-CAl9SKtE.js";
|
|
7
7
|
import { Dn as St, Dr as Ct, Er as wt, Ft as Tt, Nr as Et, On as Dt, Or as Ot, Ot as kt, _t as At, cn as jt, ct as Mt, gt as Nt, ht as Pt, jr as Ft, nn as It, sn as Lt, un as Rt } from "./F0Select-By_QpX1S.js";
|
|
@@ -23593,25 +23593,25 @@ var rH = [
|
|
|
23593
23593
|
function cH(e) {
|
|
23594
23594
|
return sH[e];
|
|
23595
23595
|
}
|
|
23596
|
-
var lH = R(function({ compact: e = !1, avatar: t, image: n, imageFit: r = "fit-width", imageSize: i = "sm", imageAspectRatio: a = "default", blurredBackground: o = !0, title: s, description: c, metadata: l, children: u, link: d, primaryAction: f, secondaryActions: p, otherActions: m, bookmark: h, selectable: g = !1, subtleBorder: _ = !1, selected: v = !1, onSelect: y, onClick: b, forceVerticalMetadata: x = !1, fullHeight: S = !1, disableOverlayLink: C = !1,
|
|
23597
|
-
let
|
|
23598
|
-
|
|
23599
|
-
},
|
|
23600
|
-
className: F("group relative bg-f1-background shadow-none transition-all", _ && "border-f1-border-secondary", e && "p-3", S && "h-full", (g || m && m.length > 0) && !v && "hover:border-f1-border", d && "focus-within:border-f1-border-hover focus-within:shadow-md hover:border-f1-border-hover hover:shadow-md", v && "border-f1-border-selected bg-f1-background-selected-secondary"),
|
|
23601
|
-
style:
|
|
23602
|
-
borderColor: GV[
|
|
23596
|
+
var lH = R(function({ compact: e = !1, avatar: t, image: n, imageFit: r = "fit-width", imageSize: i = "sm", imageAspectRatio: a = "default", blurredBackground: o = !0, title: s, description: c, metadata: l, children: u, link: d, primaryAction: f, secondaryActions: p, otherActions: m, bookmark: h, selectable: g = !1, subtleBorder: _ = !1, selected: v = !1, onSelect: y, onClick: b, forceVerticalMetadata: x = !1, fullHeight: S = !1, disableOverlayLink: C = !1, flash: w = !1, alert: T }, E) {
|
|
23597
|
+
let D = V(null), O = !C && (!!d || !!b), k = (e) => {
|
|
23598
|
+
D?.current?.click(), b?.(), e.preventDefault(), e.stopPropagation();
|
|
23599
|
+
}, A = /* @__PURE__ */ W(_l, {
|
|
23600
|
+
className: F("group relative bg-f1-background shadow-none transition-all", _ && "border-f1-border-secondary", e && "p-3", S && "h-full", (g || m && m.length > 0) && !v && "hover:border-f1-border", d && "focus-within:border-f1-border-hover focus-within:shadow-md hover:border-f1-border-hover hover:shadow-md", v && "border-f1-border-selected bg-f1-background-selected-secondary", w && "isolate after:pointer-events-none after:absolute after:inset-0 after:-z-10 after:rounded-[inherit] after:animate-row-flash"),
|
|
23601
|
+
style: T && T.visible !== !1 && !v ? {
|
|
23602
|
+
borderColor: GV[T.variant],
|
|
23603
23603
|
borderWidth: "2px"
|
|
23604
23604
|
} : void 0,
|
|
23605
23605
|
onClick: b,
|
|
23606
23606
|
"data-testid": "card",
|
|
23607
|
-
ref:
|
|
23607
|
+
ref: T && T.visible !== !1 ? void 0 : E,
|
|
23608
23608
|
children: [
|
|
23609
23609
|
d && !C ? /* @__PURE__ */ U(DV, {
|
|
23610
23610
|
href: d,
|
|
23611
23611
|
variant: "unstyled",
|
|
23612
23612
|
className: F("z-1 absolute inset-0 block rounded-xl", at()),
|
|
23613
23613
|
"aria-label": s,
|
|
23614
|
-
ref:
|
|
23614
|
+
ref: D,
|
|
23615
23615
|
children: "\xA0"
|
|
23616
23616
|
}) : null,
|
|
23617
23617
|
n ? /* @__PURE__ */ W("div", {
|
|
@@ -23646,20 +23646,20 @@ var lH = R(function({ compact: e = !1, avatar: t, image: n, imageFit: r = "fit-w
|
|
|
23646
23646
|
]
|
|
23647
23647
|
}) : null,
|
|
23648
23648
|
/* @__PURE__ */ W("div", {
|
|
23649
|
-
className: F("flex grow flex-col gap-2",
|
|
23650
|
-
...
|
|
23651
|
-
e.target instanceof Element && e.target.closest("a[href], input, select, textarea, [aria-haspopup]:not([aria-haspopup=\"false\"])") ||
|
|
23649
|
+
className: F("flex grow flex-col gap-2", O && "cursor-pointer"),
|
|
23650
|
+
...O ? { onClick: (e) => {
|
|
23651
|
+
e.target instanceof Element && e.target.closest("a[href], input, select, textarea, [aria-haspopup]:not([aria-haspopup=\"false\"])") || k(e);
|
|
23652
23652
|
} } : {},
|
|
23653
23653
|
children: [
|
|
23654
23654
|
/* @__PURE__ */ W("div", {
|
|
23655
23655
|
className: "flex flex-row items-start justify-between gap-1",
|
|
23656
23656
|
children: [/* @__PURE__ */ W(vl, {
|
|
23657
|
-
...
|
|
23657
|
+
...O ? {
|
|
23658
23658
|
onClick: (e) => {
|
|
23659
|
-
|
|
23659
|
+
k(e);
|
|
23660
23660
|
},
|
|
23661
23661
|
onKeyDown: (e) => {
|
|
23662
|
-
(e.key === "Enter" || e.key === " ") &&
|
|
23662
|
+
(e.key === "Enter" || e.key === " ") && k(e);
|
|
23663
23663
|
},
|
|
23664
23664
|
role: "button",
|
|
23665
23665
|
"aria-label": s
|
|
@@ -23709,12 +23709,12 @@ var lH = R(function({ compact: e = !1, avatar: t, image: n, imageFit: r = "fit-w
|
|
|
23709
23709
|
})
|
|
23710
23710
|
]
|
|
23711
23711
|
});
|
|
23712
|
-
return
|
|
23713
|
-
ref:
|
|
23714
|
-
alert:
|
|
23712
|
+
return T && T.visible !== !1 ? /* @__PURE__ */ U(ZV, {
|
|
23713
|
+
ref: E,
|
|
23714
|
+
alert: T,
|
|
23715
23715
|
fullHeight: S,
|
|
23716
|
-
children:
|
|
23717
|
-
}) :
|
|
23716
|
+
children: A
|
|
23717
|
+
}) : A;
|
|
23718
23718
|
}), uH = ({ compact: e = !1 }) => /* @__PURE__ */ W(_l, {
|
|
23719
23719
|
className: F("group relative flex flex-col gap-2 bg-f1-background p-4 shadow-none", e && "p-3"),
|
|
23720
23720
|
"aria-busy": "true",
|
|
@@ -23738,7 +23738,11 @@ var lH = R(function({ compact: e = !1, avatar: t, image: n, imageFit: r = "fit-w
|
|
|
23738
23738
|
children: [/* @__PURE__ */ U(Ie, { className: "h-4 w-4 rounded-full" }), /* @__PURE__ */ U(Ie, { className: "h-3 w-full max-w-20 rounded-md" })]
|
|
23739
23739
|
}, t))
|
|
23740
23740
|
})]
|
|
23741
|
-
}), dH = [
|
|
23741
|
+
}), dH = [
|
|
23742
|
+
"forceVerticalMetadata",
|
|
23743
|
+
"disableOverlayLink",
|
|
23744
|
+
"flash"
|
|
23745
|
+
], fH = R((e, t) => {
|
|
23742
23746
|
let n = dH.reduce((e, t) => {
|
|
23743
23747
|
let { [t]: n, ...r } = e;
|
|
23744
23748
|
return r;
|
|
@@ -40533,7 +40537,7 @@ var D$ = Ue("F0FileItem", be(E$)), O$ = D$, k$ = 2, A$ = 70, j$ = .08, M$ = 6, N
|
|
|
40533
40537
|
let e = d1();
|
|
40534
40538
|
if (!e) throw Error("useAttachmentDocumentPreview must be used within an AttachmentPreviewProvider");
|
|
40535
40539
|
return e;
|
|
40536
|
-
}, m1 = Ir(() => import("./F0DocumentViewer-
|
|
40540
|
+
}, m1 = Ir(() => import("./F0DocumentViewer-DDaXV0U3.js").then((e) => ({ default: e.F0DocumentViewer }))), h1 = (e) => {
|
|
40537
40541
|
let t = e.lastIndexOf(".");
|
|
40538
40542
|
return `${t > 0 ? e.slice(0, t) : e}.pdf`;
|
|
40539
40543
|
}, g1 = () => {
|
|
@@ -43071,7 +43075,7 @@ var c4 = () => {
|
|
|
43071
43075
|
title: e,
|
|
43072
43076
|
className: F("block min-w-0 max-w-full overflow-hidden text-ellipsis whitespace-nowrap", t),
|
|
43073
43077
|
children: e
|
|
43074
|
-
}), u4 = () => import("./PdfThumbnail-
|
|
43078
|
+
}), u4 = () => import("./PdfThumbnail-Dkwm6GDn.js"), d4 = () => import("./SheetThumbnail-HtGezPp4.js"), f4 = () => import("./DocxThumbnail-kHTNnwW0.js"), p4 = () => import("./TextThumbnail-X04JgaNI.js"), m4 = Ir(u4), h4 = Ir(d4), g4 = Ir(f4), _4 = Ir(p4), v4 = 384, y4 = 160, b4 = ({ kind: e, url: t, width: n, onError: r, onRendered: i }) => e === "pdf" ? /* @__PURE__ */ U(m4, {
|
|
43075
43079
|
url: t,
|
|
43076
43080
|
width: n,
|
|
43077
43081
|
onError: r,
|
|
@@ -44929,7 +44933,7 @@ var T6 = Ue("DataList", w6), E6 = Object.assign(T6, {
|
|
|
44929
44933
|
s
|
|
44930
44934
|
]
|
|
44931
44935
|
});
|
|
44932
|
-
}, P6 = "w-[24rem] max-w-full", F6 = "w-[32rem] max-w-full", I6 = "gap-0.5", L6 = "pointer-events-none absolute inset-x-0 bottom-0 h-[46%] bg-[linear-gradient(to_top,rgba(0,0,0,0.5),rgba(0,0,0,0.18)_45%,transparent)]", R6 = "bg-[hsl(222_31%_11%)]", z6 = "bg-[hsl(220_39%_6%/0.72)]", B6 = "bg-[hsl(220_39%_6%/0.6)]", V6 = "bg-[hsl(220_39%_6%/0.55)]", H6 = Ir(() => import("./F0VideoPlayer-
|
|
44936
|
+
}, P6 = "w-[24rem] max-w-full", F6 = "w-[32rem] max-w-full", I6 = "gap-0.5", L6 = "pointer-events-none absolute inset-x-0 bottom-0 h-[46%] bg-[linear-gradient(to_top,rgba(0,0,0,0.5),rgba(0,0,0,0.18)_45%,transparent)]", R6 = "bg-[hsl(222_31%_11%)]", z6 = "bg-[hsl(220_39%_6%/0.72)]", B6 = "bg-[hsl(220_39%_6%/0.6)]", V6 = "bg-[hsl(220_39%_6%/0.55)]", H6 = Ir(() => import("./F0VideoPlayer-DerqL5g5.js").then((e) => ({ default: e.F0VideoPlayer }))), U6 = ({ file: e, cornerClass: t, className: n, surfaceClassName: r, meta: i, onDownloaded: a, testIdPrefix: o = "chat" }) => {
|
|
44933
44937
|
let s = He(), { urlCache: c } = q$(), l = s1(), [u, d] = H(!1), [f, p] = H(!1), m = c !== null && !U$(e.url), [h, g] = H(!1), _ = a1(e.url, { enabled: !m || h }), v = a1(e.thumbnailUrl), y = v.status === "ready" ? v.url : void 0, b = e.size == null ? null : E1(e.size), x = {
|
|
44934
44938
|
label: s.t("chat.downloadNamedFile", { name: e.name }),
|
|
44935
44939
|
icon: Ka,
|