@factorialco/f0-react 14.8.1 → 14.8.2
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-BSbrgpSi.js → ArchiveThumbnail-DPT204lH.js} +1 -1
- package/dist/{ArchiveViewer-C51s-mdQ.js → ArchiveViewer-9lcpa9Q8.js} +2 -2
- package/dist/{ChatPostComposerDialog-Y3_HaLjH.js → ChatPostComposerDialog-D6Lx5GCM.js} +2 -2
- package/dist/{CoachmarkProvider-C3XiIWr1.js → CoachmarkProvider-CS7Z_Y7f.js} +14416 -14416
- package/dist/{CodeThumbnail-LvRw-JKh.js → CodeThumbnail-2zkY_9-9.js} +1 -1
- package/dist/{CodeViewer-dmZrAf7Z.js → CodeViewer-C2oHjpv2.js} +4 -4
- package/dist/{DocumentToolbar-tNt0WDUc.js → DocumentToolbar-3lSgfCzO.js} +2 -2
- package/dist/{DocxViewer-DYfd1lYL.js → DocxViewer-CiaoUH7p.js} +1 -1
- package/dist/{F0AiProcessingOverlay-CfZg2nDZ.js → F0AiProcessingOverlay-DH8QoK7r.js} +22 -22
- package/dist/{F0Alert-DZ5gYpyN.js → F0Alert-Dg59ZMiW.js} +1 -1
- package/dist/F0AudioPlayer-6sBKhYuG.js +2 -0
- package/dist/{F0CanvasPanel-J2ee3JLu.js → F0CanvasPanel-DArJVuZa.js} +144 -144
- package/dist/{F0DocumentViewer-DEkPXVO9.js → F0DocumentViewer-DKgNwb_u.js} +1 -1
- package/dist/{F0DocumentViewer-yWNGaKqI.js → F0DocumentViewer-sY_vqAoS.js} +2 -2
- package/dist/{F0Map-BJRJwwjA.js → F0Map-rvLzy15R.js} +3 -3
- package/dist/{F0Select-CKi1HUAP.js → F0Select-Bfedp75T.js} +87 -61
- package/dist/{F0VideoPlayer-C_MHTnYM.js → F0VideoPlayer-D6NrPRb8.js} +1 -1
- package/dist/F0VideoPlayer-LWbco75P.js +1 -0
- package/dist/{HtmlViewer-RIOreFgU.js → HtmlViewer-DEnPsGph.js} +4 -4
- package/dist/{Map-DHyIhm5C.js → Map-Dijnzc-b.js} +3 -3
- package/dist/{PdfThumbnail-Do8voZnh.js → PdfThumbnail-DQBJ7bVz.js} +1 -1
- package/dist/{PdfViewer-BF6H-934.js → PdfViewer-1pDef2Xt.js} +6 -6
- package/dist/{SheetViewer-g-3QceA4.js → SheetViewer-DTuOih8a.js} +2 -2
- package/dist/{TextViewer-BS86Fa8z.js → TextViewer-CDnRn2S7.js} +1 -1
- package/dist/ai.js +2 -2
- package/dist/component-status.js +1 -1
- package/dist/experimental.js +140 -140
- package/dist/f0.d.ts +1 -1
- package/dist/f0.js +60 -60
- package/dist/{highlight-b5Ka10lC.js → highlight-Cj_h8gQl.js} +1 -1
- package/dist/{maplibre-BhunqJq2.js → maplibre-DAJOaIpt.js} +1 -1
- package/dist/{pdfWorker-Df0ldLM2.js → pdfWorker-u_wdO0se.js} +1 -1
- package/package.json +1 -1
- package/dist/F0AudioPlayer-BFB8N971.js +0 -2
- package/dist/F0VideoPlayer-e1CwBIH2.js +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { L as e } from "./tooltip-BX4dSfeL.js";
|
|
2
|
-
import { i as t, t as n } from "./highlight-
|
|
2
|
+
import { i as t, t as n } from "./highlight-Cj_h8gQl.js";
|
|
3
3
|
import { t as r } from "./useThumbnailText-DwXQvLIe.js";
|
|
4
4
|
import { useEffect as i, useState as a } from "react";
|
|
5
5
|
import { jsx as o } from "react/jsx-runtime";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { r as e } from "./i18n-provider-yEyt4-zw.js";
|
|
2
2
|
import { t } from "./skeleton-Bh5f_jFO.js";
|
|
3
3
|
import { L as n } from "./tooltip-BX4dSfeL.js";
|
|
4
|
-
import { Jc as r, Xr as i } from "./F0CanvasPanel-
|
|
5
|
-
import {
|
|
4
|
+
import { Jc as r, Xr as i } from "./F0CanvasPanel-DArJVuZa.js";
|
|
5
|
+
import { Ct as a } from "./F0Select-Bfedp75T.js";
|
|
6
6
|
import { t as o } from "./purify.es-ZpfdAuNV.js";
|
|
7
|
-
import { n as s, t as c } from "./DocumentToolbar-
|
|
8
|
-
import { a as l, i as u, n as d, o as f, r as p, t as m } from "./highlight-
|
|
7
|
+
import { n as s, t as c } from "./DocumentToolbar-3lSgfCzO.js";
|
|
8
|
+
import { a as l, i as u, n as d, o as f, r as p, t as m } from "./highlight-Cj_h8gQl.js";
|
|
9
9
|
import { t as h } from "./useFetchedText-BR3_KLXx.js";
|
|
10
10
|
import { useEffect as g, useMemo as _, useState as v } from "react";
|
|
11
11
|
import { Fragment as y, jsx as b, jsxs as x } from "react/jsx-runtime";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { r as e } from "./i18n-provider-yEyt4-zw.js";
|
|
2
|
-
import { vc as t } from "./F0CanvasPanel-
|
|
2
|
+
import { vc as t } from "./F0CanvasPanel-DArJVuZa.js";
|
|
3
3
|
import { R as n } from "./useData-Cf_qNogx.js";
|
|
4
|
-
import {
|
|
4
|
+
import { lr as r, t as i } from "./F0Select-Bfedp75T.js";
|
|
5
5
|
import { a, c as o, n as s, o as c, r as l, s as u, t as d } from "./toolbarStyles-D6MMPmNh.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";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { r as e } from "./i18n-provider-yEyt4-zw.js";
|
|
2
2
|
import { t } from "./skeleton-Bh5f_jFO.js";
|
|
3
|
-
import { n, t as r } from "./DocumentToolbar-
|
|
3
|
+
import { n, t as r } from "./DocumentToolbar-3lSgfCzO.js";
|
|
4
4
|
import { t as i } from "./renderDocx-BW-uDyaZ.js";
|
|
5
5
|
import { useEffect as a, useRef as o, useState as s } from "react";
|
|
6
6
|
import { jsx as c, jsxs as l } from "react/jsx-runtime";
|
|
@@ -2,11 +2,11 @@ import { a as e, r as t } from "./i18n-provider-yEyt4-zw.js";
|
|
|
2
2
|
import { n, t as r } from "./skeleton-Bh5f_jFO.js";
|
|
3
3
|
import { L as i, R as a } from "./tooltip-BX4dSfeL.js";
|
|
4
4
|
import { K as o, T as s, U as c, h as l, n as u, r as d, t as f, y as p } from "./F0Button-BuWUEcYr.js";
|
|
5
|
-
import { $ as m, $t as h, A as g, Aa as _, Ao as v, As as y, B as b, Bt as x, C as S, Cc as C, Di as w, Ds as T, Ei as E, Ft as D, G as O, Gi as ee, Go as k, Gt as A, H as j, Ht as M, J as N, Jo as P, K as F, Kc as I, Ko as L, Kt as te, Lr as ne, Lt as re, M as ie, Ms as ae, Mt as R, O as oe, Oi as z, Ot as B, Po as se, Ps as ce, Pt as le, Q as ue, S as de, Sc as fe, St as pe, U as me, Ui as he, Vi as V, Vo as ge, Vr as _e, W as ve, Ws as ye, Wt as be, Xr as xe, Xt as Se, Y as Ce, Yt as we, Zr as Te, _t as Ee, a as De, an as H, ao as Oe, at as ke, b as U, bo as Ae, bs as je, cn as Me, ct as Ne, dn as Pe, ds as Fe, dt as Ie, en as Le, fn as Re, fs as ze, ft as Be, g as Ve, gn as He, gt as Ue, h as We, in as Ge, io as Ke, it as qe, j as Je, jr as Ye, jt as Xe, k as Ze, ki as Qe, kt as $e, ln as et, lo as tt, ls as nt, lt as rt, m as it, nl as at, nn as ot, ns as st, ot as ct, q as lt, qo as ut, r as dt, rn as ft, rs as pt, rt as W, ss as mt, st as ht, tl as gt, tt as _t, ut as vt, vc as yt, vn as bt, vt as xt, x as St, xn as Ct, y as wt, yi as Tt, yt as Et, zs as Dt } from "./F0CanvasPanel-
|
|
5
|
+
import { $ as m, $t as h, A as g, Aa as _, Ao as v, As as y, B as b, Bt as x, C as S, Cc as C, Di as w, Ds as T, Ei as E, Ft as D, G as O, Gi as ee, Go as k, Gt as A, H as j, Ht as M, J as N, Jo as P, K as F, Kc as I, Ko as L, Kt as te, Lr as ne, Lt as re, M as ie, Ms as ae, Mt as R, O as oe, Oi as z, Ot as B, Po as se, Ps as ce, Pt as le, Q as ue, S as de, Sc as fe, St as pe, U as me, Ui as he, Vi as V, Vo as ge, Vr as _e, W as ve, Ws as ye, Wt as be, Xr as xe, Xt as Se, Y as Ce, Yt as we, Zr as Te, _t as Ee, a as De, an as H, ao as Oe, at as ke, b as U, bo as Ae, bs as je, cn as Me, ct as Ne, dn as Pe, ds as Fe, dt as Ie, en as Le, fn as Re, fs as ze, ft as Be, g as Ve, gn as He, gt as Ue, h as We, in as Ge, io as Ke, it as qe, j as Je, jr as Ye, jt as Xe, k as Ze, ki as Qe, kt as $e, ln as et, lo as tt, ls as nt, lt as rt, m as it, nl as at, nn as ot, ns as st, ot as ct, q as lt, qo as ut, r as dt, rn as ft, rs as pt, rt as W, ss as mt, st as ht, tl as gt, tt as _t, ut as vt, vc as yt, vn as bt, vt as xt, x as St, xn as Ct, y as wt, yi as Tt, yt as Et, zs as Dt } from "./F0CanvasPanel-DArJVuZa.js";
|
|
6
6
|
import { o as Ot, t as G } from "./F0Icon-DPIzeYTo.js";
|
|
7
7
|
import { t as kt } from "./i18n-provider-defaults-B8pK4Hlm.js";
|
|
8
8
|
import { F as At, H as jt, M as Mt, O as Nt, S as Pt, V as Ft, g as It, h as Lt, l as Rt, m as zt, y as Bt } from "./useData-Cf_qNogx.js";
|
|
9
|
-
import { Cr as Vt,
|
|
9
|
+
import { Cr as Vt, Dn as Ht, Dt as Ut, En as Wt, Er as Gt, Or as Kt, Pt as qt, Sr as Jt, _t as Yt, ln as Xt, on as Zt, sn as Qt, tn as $t, ut as en, vt as tn, wr as nn, yt as rn } from "./F0Select-Bfedp75T.js";
|
|
10
10
|
import { t as an } from "./Check-DAp9gCRh.js";
|
|
11
11
|
import { t as on } from "./Ellipsis-CBouJQYY.js";
|
|
12
12
|
import { t as sn } from "./ExternalLink-RdKU698E.js";
|
|
@@ -253,7 +253,7 @@ var Pn = "relative flex flex-col rounded-lg border border-solid border-f1-border
|
|
|
253
253
|
size: e,
|
|
254
254
|
hideLabel: !0,
|
|
255
255
|
label: r === "save" ? z.save : z.send,
|
|
256
|
-
icon: r === "save" ? an :
|
|
256
|
+
icon: r === "save" ? an : Gt,
|
|
257
257
|
onClick: L ? void 0 : lt,
|
|
258
258
|
disabled: !at
|
|
259
259
|
})
|
|
@@ -823,7 +823,7 @@ var zn = (e) => {
|
|
|
823
823
|
className: "min-w-0 flex-1 truncate",
|
|
824
824
|
children: c.t("ai.usageLimits.yourCompany")
|
|
825
825
|
}), /* @__PURE__ */ Z(G, {
|
|
826
|
-
icon:
|
|
826
|
+
icon: Vt,
|
|
827
827
|
size: "md",
|
|
828
828
|
color: "default"
|
|
829
829
|
})]
|
|
@@ -1361,16 +1361,16 @@ function br({ id: e, trigger: t, resolver: n, contentClassName: r = "w-64", ...a
|
|
|
1361
1361
|
s,
|
|
1362
1362
|
l
|
|
1363
1363
|
]), h = d ? null : s;
|
|
1364
|
-
return /* @__PURE__ */ Q(
|
|
1364
|
+
return /* @__PURE__ */ Q(Yt, {
|
|
1365
1365
|
openDelay: 300,
|
|
1366
1366
|
closeDelay: 100,
|
|
1367
1367
|
onOpenChange: (e) => {
|
|
1368
1368
|
e && m();
|
|
1369
1369
|
},
|
|
1370
|
-
children: [/* @__PURE__ */ Z(
|
|
1370
|
+
children: [/* @__PURE__ */ Z(rn, {
|
|
1371
1371
|
asChild: !0,
|
|
1372
1372
|
children: t
|
|
1373
|
-
}), /* @__PURE__ */ Z(
|
|
1373
|
+
}), /* @__PURE__ */ Z(tn, {
|
|
1374
1374
|
side: "top",
|
|
1375
1375
|
align: "start",
|
|
1376
1376
|
className: i(r, "rounded-2xl border-none p-0 shadow-md"),
|
|
@@ -1614,7 +1614,7 @@ function Mr({ id: e, label: n }) {
|
|
|
1614
1614
|
label: a.t("ai.entityRef.requisition.status"),
|
|
1615
1615
|
value: /* @__PURE__ */ Z("div", {
|
|
1616
1616
|
className: "flex items-center pt-1",
|
|
1617
|
-
children: /* @__PURE__ */ Z(
|
|
1617
|
+
children: /* @__PURE__ */ Z(Wt, {
|
|
1618
1618
|
text: e.status,
|
|
1619
1619
|
variant: e.statusVariant ?? "neutral"
|
|
1620
1620
|
})
|
|
@@ -2875,7 +2875,7 @@ var xa = ({ content: e, targetMessage: n, onCopy: r, actions: i = [] }) => {
|
|
|
2875
2875
|
className: "min-h-6 flex items-center",
|
|
2876
2876
|
children: /* @__PURE__ */ Z("span", { children: t })
|
|
2877
2877
|
}),
|
|
2878
|
-
s ? null : /* @__PURE__ */ Z(G, { icon:
|
|
2878
|
+
s ? null : /* @__PURE__ */ Z(G, { icon: Vt })
|
|
2879
2879
|
]
|
|
2880
2880
|
}), /* @__PURE__ */ Z(w, {
|
|
2881
2881
|
forceMount: !0,
|
|
@@ -3304,7 +3304,7 @@ var Ba = {
|
|
|
3304
3304
|
onClick: () => ie(),
|
|
3305
3305
|
label: k.ai.scrollToBottom,
|
|
3306
3306
|
variant: "neutral",
|
|
3307
|
-
icon:
|
|
3307
|
+
icon: Kt,
|
|
3308
3308
|
hideLabel: !0
|
|
3309
3309
|
})
|
|
3310
3310
|
}) : null })
|
|
@@ -3552,7 +3552,7 @@ var no = [
|
|
|
3552
3552
|
disabled: r,
|
|
3553
3553
|
label: l.ai.clarifyingQuestion.back,
|
|
3554
3554
|
hideLabel: !0,
|
|
3555
|
-
icon:
|
|
3555
|
+
icon: nn
|
|
3556
3556
|
}),
|
|
3557
3557
|
/* @__PURE__ */ Z("span", {
|
|
3558
3558
|
className: "translate-y-px text-sm font-semibold text-f1-foreground-tertiary",
|
|
@@ -3566,7 +3566,7 @@ var no = [
|
|
|
3566
3566
|
disabled: i || !a,
|
|
3567
3567
|
label: l.ai.clarifyingQuestion.next,
|
|
3568
3568
|
hideLabel: !0,
|
|
3569
|
-
icon:
|
|
3569
|
+
icon: Vt
|
|
3570
3570
|
})
|
|
3571
3571
|
]
|
|
3572
3572
|
}) : null,
|
|
@@ -4670,7 +4670,7 @@ var fs = ({ text: e, description: t, avatar: n, confirmationText: r, onConfirm:
|
|
|
4670
4670
|
className: i(gs()),
|
|
4671
4671
|
children: e
|
|
4672
4672
|
}) : null]
|
|
4673
|
-
}), bs = ({ balance: e }) => /* @__PURE__ */ Z(
|
|
4673
|
+
}), bs = ({ balance: e }) => /* @__PURE__ */ Z(qt, {
|
|
4674
4674
|
amount: e.amount,
|
|
4675
4675
|
percentage: e.percentage ?? void 0,
|
|
4676
4676
|
invertStatus: e.invertStatus,
|
|
@@ -4704,7 +4704,7 @@ var fs = ({ text: e, description: t, avatar: n, confirmationText: r, onConfirm:
|
|
|
4704
4704
|
src: e.avatar.src,
|
|
4705
4705
|
size: "xs"
|
|
4706
4706
|
})
|
|
4707
|
-
}) : e.content === "alert" ? /* @__PURE__ */ Z(
|
|
4707
|
+
}) : e.content === "alert" ? /* @__PURE__ */ Z(Ht, {
|
|
4708
4708
|
text: e.alertLabel,
|
|
4709
4709
|
level: e.level
|
|
4710
4710
|
}) : e.content === "balance" ? /* @__PURE__ */ Z(bs, { balance: e.balance }) : null;
|
|
@@ -5000,7 +5000,7 @@ var Ls = ({ icon: e, title: t, children: n }) => {
|
|
|
5000
5000
|
children: t
|
|
5001
5001
|
}),
|
|
5002
5002
|
/* @__PURE__ */ Z(G, {
|
|
5003
|
-
icon:
|
|
5003
|
+
icon: Vt,
|
|
5004
5004
|
className: "h-4 w-4 transition-transform duration-200"
|
|
5005
5005
|
})
|
|
5006
5006
|
]
|
|
@@ -5527,14 +5527,14 @@ var qs = ({ credits: e, employeeCredits: t, trigger: n }) => t ? /* @__PURE__ */
|
|
|
5527
5527
|
//#region src/addons/ai/F0AiChatHistory/utils.ts
|
|
5528
5528
|
function Xs(e) {
|
|
5529
5529
|
let t = new Date(e), n = /* @__PURE__ */ new Date();
|
|
5530
|
-
return Oe(t) ? "today" : Ke(t) ? "yesterday" :
|
|
5530
|
+
return Oe(t) ? "today" : Ke(t) ? "yesterday" : Qt(t, n) ? "thisMonth" : "older";
|
|
5531
5531
|
}
|
|
5532
5532
|
function Zs(e, t, n) {
|
|
5533
|
-
let r = new Date(e), i =
|
|
5533
|
+
let r = new Date(e), i = Xt(r, "p", { locale: n });
|
|
5534
5534
|
if (Oe(r)) return `${t.today}, ${i}`;
|
|
5535
5535
|
if (Ke(r)) return `${t.yesterday}, ${i}`;
|
|
5536
|
-
let a = !
|
|
5537
|
-
return `${
|
|
5536
|
+
let a = !Zt(r, /* @__PURE__ */ new Date());
|
|
5537
|
+
return `${Xt(r, a ? "MMM d yyyy" : "MMM d", { locale: n })}, ${i}`;
|
|
5538
5538
|
}
|
|
5539
5539
|
function Qs(e) {
|
|
5540
5540
|
let t = {
|
|
@@ -5557,7 +5557,7 @@ function Qs(e) {
|
|
|
5557
5557
|
//#endregion
|
|
5558
5558
|
//#region src/addons/ai/F0AiChatHistory/components/ThreadItem.tsx
|
|
5559
5559
|
function $s({ thread: e, isPinned: n, isActive: r = !1, isPending: o = !1, onSelect: s, onPin: c, onUnpin: l, onDelete: f, className: p }) {
|
|
5560
|
-
let m = t(), h =
|
|
5560
|
+
let m = t(), h = $t(), g = J(() => [{
|
|
5561
5561
|
label: n ? m.ai.unpinChat : m.ai.pinChat,
|
|
5562
5562
|
icon: n ? Fe : ze,
|
|
5563
5563
|
onClick: () => n ? l(e.id) : c(e.id)
|
|
@@ -5618,7 +5618,7 @@ function $s({ thread: e, isPinned: n, isActive: r = !1, isPending: o = !1, onSel
|
|
|
5618
5618
|
o ? /* @__PURE__ */ Z("div", {
|
|
5619
5619
|
className: "flex h-7 w-7 shrink-0 items-center justify-center",
|
|
5620
5620
|
"aria-label": m.ai.threadOptions,
|
|
5621
|
-
children: /* @__PURE__ */ Z(
|
|
5621
|
+
children: /* @__PURE__ */ Z(Ut, { size: "small" })
|
|
5622
5622
|
}) : /* @__PURE__ */ Z("div", {
|
|
5623
5623
|
className: i("hidden items-center", "group-hover:flex group-focus-within:flex", "has-[[aria-expanded=true]]:flex"),
|
|
5624
5624
|
children: /* @__PURE__ */ Z(tt, {
|
|
@@ -5653,7 +5653,7 @@ function ec({ label: e, threads: t, pinnedIds: n, onSelect: r, onPin: o, onUnpin
|
|
|
5653
5653
|
className: "text-sm font-medium capitalize tracking-wide text-f1-foreground-secondary",
|
|
5654
5654
|
children: e
|
|
5655
5655
|
}), /* @__PURE__ */ Z(G, {
|
|
5656
|
-
icon: l ? Ft :
|
|
5656
|
+
icon: l ? Ft : Jt,
|
|
5657
5657
|
color: "secondary",
|
|
5658
5658
|
size: "xs"
|
|
5659
5659
|
})]
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { a as e, r as t } from "./i18n-provider-yEyt4-zw.js";
|
|
2
2
|
import { L as n } from "./tooltip-BX4dSfeL.js";
|
|
3
3
|
import { t as r } from "./F0Button-BuWUEcYr.js";
|
|
4
|
-
import { Cc as i, co as a, ki as o, ms as s } from "./F0CanvasPanel-
|
|
4
|
+
import { Cc as i, co as a, ki as o, ms as s } from "./F0CanvasPanel-DArJVuZa.js";
|
|
5
5
|
import { o as c } from "./F0Icon-DPIzeYTo.js";
|
|
6
6
|
import { g as l } from "./useData-Cf_qNogx.js";
|
|
7
7
|
import { useRef as u } from "react";
|