@factorialco/f0-react 16.25.1 → 16.25.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-BWTI7ezC.js → ArchiveThumbnail-DrlQCpa9.js} +1 -1
- package/dist/{ArchiveViewer-BlnfVLsJ.js → ArchiveViewer-e5gDqbRQ.js} +2 -2
- package/dist/{ChatPostComposerDialog-BkVTdJP1.js → ChatPostComposerDialog-BDcJNk1m.js} +2 -2
- package/dist/{CoachmarkProvider-C9Oflsz-.js → CoachmarkProvider-DsWoKMlY.js} +5469 -5469
- package/dist/{CodeThumbnail-PtY8O4_C.js → CodeThumbnail-S1Gh7dtQ.js} +1 -1
- package/dist/{CodeViewer-DWjmRhtn.js → CodeViewer-DTtGdDc2.js} +4 -4
- package/dist/{DocumentToolbar-CKdCMI09.js → DocumentToolbar-3enTl24j.js} +4 -4
- package/dist/{DocxViewer-g_DkGE6G.js → DocxViewer-DRcX9fii.js} +1 -1
- package/dist/{F0AiProcessingOverlay-Dh3YEI67.js → F0AiProcessingOverlay-DXnk36T0.js} +16 -16
- package/dist/{F0Alert-BkUUU2Es.js → F0Alert-BBfbUoFr.js} +1 -1
- package/dist/F0AudioPlayer-BhcOJYGr.js +2 -0
- package/dist/{F0CanvasPanel-D6eWdQK0.js → F0CanvasPanel-BO8mckaU.js} +5457 -5457
- package/dist/{F0DocumentViewer-DhffyI63.js → F0DocumentViewer-B7cAb7L7.js} +2 -2
- package/dist/{F0DocumentViewer-BtD9t71V.js → F0DocumentViewer-DTbfrU29.js} +1 -1
- package/dist/{F0Map-YL4dv1Z1.js → F0Map-DxZD7B_G.js} +3 -3
- package/dist/{F0Select-h6e4u9ej.js → F0Select-Dj-l2-jG.js} +1478 -1488
- package/dist/{F0VideoPlayer-DaD7MnFA.js → F0VideoPlayer-0OwghjNZ.js} +1 -1
- package/dist/F0VideoPlayer-zVPFkYQE.js +1 -0
- package/dist/{HtmlViewer-rIlra75S.js → HtmlViewer-0kpL-7SJ.js} +4 -4
- package/dist/{Map-BSw_AafU.js → Map-BoEfXmqK.js} +3 -3
- package/dist/{PdfThumbnail-CXGUzm25.js → PdfThumbnail-Ct2loeCb.js} +1 -1
- package/dist/{PdfViewer-CTGhvHvW.js → PdfViewer-CLTywOkD.js} +6 -6
- package/dist/{SheetViewer-0KUrMA5z.js → SheetViewer-LWX-ryyE.js} +2 -2
- package/dist/{TextViewer-D3xpfBVm.js → TextViewer-Bj1x-gnk.js} +1 -1
- package/dist/ai.js +2 -2
- package/dist/component-status.js +1 -1
- package/dist/experimental.js +149 -149
- package/dist/f0.js +56 -56
- package/dist/{highlight-DeACQIIW.js → highlight-CxAdyK6c.js} +1 -1
- package/dist/{maplibre-D5-cJ0JA.js → maplibre-CVJR0SqL.js} +1 -1
- package/dist/{pdfWorker-D54oefWJ.js → pdfWorker-DuRYD5zF.js} +1 -1
- package/package.json +1 -1
- package/dist/F0AudioPlayer-vHt8D_MA.js +0 -2
- package/dist/F0VideoPlayer-Bdf6P4CE.js +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { L as e } from "./tooltip-NXXT56H4.js";
|
|
2
|
-
import { i as t, t as n } from "./highlight-
|
|
2
|
+
import { i as t, t as n } from "./highlight-CxAdyK6c.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-CCg0vfdK.js";
|
|
2
2
|
import { t } from "./skeleton-B05pNPYx.js";
|
|
3
3
|
import { L as n } from "./tooltip-NXXT56H4.js";
|
|
4
|
-
import { Al as r, Ei as i } from "./F0CanvasPanel-
|
|
5
|
-
import {
|
|
4
|
+
import { Al as r, Ei as i } from "./F0CanvasPanel-BO8mckaU.js";
|
|
5
|
+
import { It as a } from "./F0Select-Dj-l2-jG.js";
|
|
6
6
|
import { t as o } from "./purify.es-CJ7gZxxn.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-3enTl24j.js";
|
|
8
|
+
import { a as l, i as u, n as d, o as f, r as p, t as m } from "./highlight-CxAdyK6c.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-CCg0vfdK.js";
|
|
2
|
-
import { el as t } from "./F0CanvasPanel-
|
|
2
|
+
import { el as t } from "./F0CanvasPanel-BO8mckaU.js";
|
|
3
3
|
import { B as n } from "./useData-CzdjLV9a.js";
|
|
4
|
-
import {
|
|
4
|
+
import { Cr as r, t as i } from "./F0Select-Dj-l2-jG.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-Btq_icPl.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";
|
|
@@ -40,9 +40,9 @@ var _ = () => {
|
|
|
40
40
|
/* @__PURE__ */ h(l, {
|
|
41
41
|
label: S.zoomIn,
|
|
42
42
|
onClick: _.zoomIn,
|
|
43
|
-
icon:
|
|
43
|
+
icon: r
|
|
44
44
|
}),
|
|
45
|
-
/* @__PURE__ */ h(
|
|
45
|
+
/* @__PURE__ */ h(i, {
|
|
46
46
|
hideLabel: !0,
|
|
47
47
|
label: S.scaleSelector,
|
|
48
48
|
options: C,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { r as e } from "./i18n-provider-CCg0vfdK.js";
|
|
2
2
|
import { t } from "./skeleton-B05pNPYx.js";
|
|
3
|
-
import { n, t as r } from "./DocumentToolbar-
|
|
3
|
+
import { n, t as r } from "./DocumentToolbar-3enTl24j.js";
|
|
4
4
|
import { t as i } from "./renderDocx-BmKEajZl.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-CCg0vfdK.js";
|
|
|
2
2
|
import { n, t as r } from "./skeleton-B05pNPYx.js";
|
|
3
3
|
import { L as i, R as a } from "./tooltip-NXXT56H4.js";
|
|
4
4
|
import { A as o, D as s, K as c, R as l, V as u, Y as d, b as f, h as p, n as m, r as h, t as g, v as _ } from "./F0Button-C1aRGjA7.js";
|
|
5
|
-
import { $ as v, As as y, At as b, B as x, Bn as S, Ca as C, D as w, Di as T, Dl as E, Ds as D, Dt as O, E as k, Ei as ee, El as te, En as A, Fn as j, Gs as M, Gt as N, Ht as ne, I as re, J as P, Jn as ie, Js as ae, Kn as oe, Kt as F, L as se, Ll as ce, Mn as le, Mt as ue, N as de, Nn as I, Nt as L, O as fe, Ol as pe, Os as me, Ot as he, P as ge, Pn as _e, Pt as ve, Q as ye, R, Rl as be, Rn as xe, Ro as z, Sn as Se, St as Ce, T as we, Ta as Te, Tn as Ee, Uo as De, Us as B, Ut as Oe, Vn as ke, Vt as Ae, Wt as je, X as V, Xt as Me, Y as H, Yi as Ne, Z as Pe, Zn as Fe, _i as Ie, _t as Le, a as Re, aa as ze, al as Be, at as Ve, b as He, ba as Ue, bn as We, bt as Ge, c as Ke, cn as qe, ct as Je, dn as Ye, dt as Xe, el as Ze, et as Qe, fc as $e, ft as et, gc as tt, gn as nt, gs as rt, gt as it, ht as at, il as ot, in as st, kn as ct, ks as lt, kt as ut, lc as dt, mc as ft, ml as pt, nc as mt, nt as ht, oa as gt, ot as _t, pi as vt, pn as yt, qn as bt, qs as xt, r as St, rn as Ct, rs as wt, s as Tt, sa as Et, si as Dt, sn as Ot, tt as kt, u as At, un as jt, uo as Mt, ut as Nt, vc as Pt, vn as Ft, vt as It, w as Lt, x as Rt, xa as zt, xc as Bt, xn as Vt, xt as Ht, y as Ut, yt as Wt, z as Gt, zn as Kt, zo as qt } from "./F0CanvasPanel-
|
|
5
|
+
import { $ as v, As as y, At as b, B as x, Bn as S, Ca as C, D as w, Di as T, Dl as E, Ds as D, Dt as O, E as k, Ei as ee, El as te, En as A, Fn as j, Gs as M, Gt as N, Ht as ne, I as re, J as P, Jn as ie, Js as ae, Kn as oe, Kt as F, L as se, Ll as ce, Mn as le, Mt as ue, N as de, Nn as I, Nt as L, O as fe, Ol as pe, Os as me, Ot as he, P as ge, Pn as _e, Pt as ve, Q as ye, R, Rl as be, Rn as xe, Ro as z, Sn as Se, St as Ce, T as we, Ta as Te, Tn as Ee, Uo as De, Us as B, Ut as Oe, Vn as ke, Vt as Ae, Wt as je, X as V, Xt as Me, Y as H, Yi as Ne, Z as Pe, Zn as Fe, _i as Ie, _t as Le, a as Re, aa as ze, al as Be, at as Ve, b as He, ba as Ue, bn as We, bt as Ge, c as Ke, cn as qe, ct as Je, dn as Ye, dt as Xe, el as Ze, et as Qe, fc as $e, ft as et, gc as tt, gn as nt, gs as rt, gt as it, ht as at, il as ot, in as st, kn as ct, ks as lt, kt as ut, lc as dt, mc as ft, ml as pt, nc as mt, nt as ht, oa as gt, ot as _t, pi as vt, pn as yt, qn as bt, qs as xt, r as St, rn as Ct, rs as wt, s as Tt, sa as Et, si as Dt, sn as Ot, tt as kt, u as At, un as jt, uo as Mt, ut as Nt, vc as Pt, vn as Ft, vt as It, w as Lt, x as Rt, xa as zt, xc as Bt, xn as Vt, xt as Ht, y as Ut, yt as Wt, z as Gt, zn as Kt, zo as qt } from "./F0CanvasPanel-BO8mckaU.js";
|
|
6
6
|
import { o as Jt, t as U } from "./F0Icon-CA8QrO7J.js";
|
|
7
7
|
import { t as Yt } from "./i18n-provider-defaults-DdGz6_Og.js";
|
|
8
8
|
import { A as Xt, L as Zt, P as W, U as Qt, W as $t, _ as en, g as tn, u as nn, v as rn, w as an, x as on } from "./useData-CzdjLV9a.js";
|
|
9
|
-
import {
|
|
9
|
+
import { Bn as sn, Bt as cn, Ir as ln, Lr as un, Rr as dn, St as fn, Vr as pn, bn as mn, bt as hn, dt as gn, qt as _n, xt as vn, zn as yn } from "./F0Select-Dj-l2-jG.js";
|
|
10
10
|
import { t as bn } from "./Check-DAp9gCRh.js";
|
|
11
11
|
import { t as xn } from "./Ellipsis-CBouJQYY.js";
|
|
12
12
|
import { t as Sn } from "./ExternalLink-RdKU698E.js";
|
|
@@ -799,7 +799,7 @@ function pr({ usage: e, error: n = !1, onOpenChange: r, trigger: o, side: s = "t
|
|
|
799
799
|
className: "min-w-0 flex-1 truncate",
|
|
800
800
|
children: c.t("ai.usageLimits.yourCompany")
|
|
801
801
|
}), /* @__PURE__ */ X(U, {
|
|
802
|
-
icon:
|
|
802
|
+
icon: un,
|
|
803
803
|
size: "md",
|
|
804
804
|
color: "default"
|
|
805
805
|
})]
|
|
@@ -1533,7 +1533,7 @@ function si({ children: e, title: n, ...r }) {
|
|
|
1533
1533
|
}), l && (c.after > 0 || c.left) ? /* @__PURE__ */ X(m, {
|
|
1534
1534
|
variant: "ghost",
|
|
1535
1535
|
size: "sm",
|
|
1536
|
-
icon: c.after > 0 ? te :
|
|
1536
|
+
icon: c.after > 0 ? te : pn,
|
|
1537
1537
|
iconPosition: c.after > 0 ? "right" : "left",
|
|
1538
1538
|
label: c.after > 0 ? o.t(c.after === 1 ? "ai.aiTable.moreColumns.one" : "ai.aiTable.moreColumns.other", { count: c.after }) : o.ai.aiTable.backToStart,
|
|
1539
1539
|
className: "text-f1-foreground-secondary hover:text-f1-foreground",
|
|
@@ -1627,7 +1627,7 @@ function gi({ id: e, trigger: t, resolver: n, contentClassName: r = "w-64", ...a
|
|
|
1627
1627
|
onOpenChange: (e) => {
|
|
1628
1628
|
e && s();
|
|
1629
1629
|
},
|
|
1630
|
-
children: [/* @__PURE__ */ X(
|
|
1630
|
+
children: [/* @__PURE__ */ X(fn, {
|
|
1631
1631
|
asChild: !0,
|
|
1632
1632
|
children: t
|
|
1633
1633
|
}), /* @__PURE__ */ X(vn, {
|
|
@@ -1890,7 +1890,7 @@ function ki({ id: e, label: n }) {
|
|
|
1890
1890
|
label: a.t("ai.entityRef.requisition.status"),
|
|
1891
1891
|
value: /* @__PURE__ */ X("div", {
|
|
1892
1892
|
className: "flex items-center pt-1",
|
|
1893
|
-
children: /* @__PURE__ */ X(
|
|
1893
|
+
children: /* @__PURE__ */ X(yn, {
|
|
1894
1894
|
text: e.status,
|
|
1895
1895
|
variant: e.statusVariant ?? "neutral"
|
|
1896
1896
|
})
|
|
@@ -3207,7 +3207,7 @@ var So = "-ml-1 flex w-5 shrink-0 flex-col items-center", Co = "w-px shrink-0 bg
|
|
|
3207
3207
|
children: /* @__PURE__ */ Z("span", { children: [t, o ? null : /* @__PURE__ */ X("span", {
|
|
3208
3208
|
className: "ml-[3px] inline-flex align-middle group-data-[state=open]/rail:rotate-90",
|
|
3209
3209
|
children: /* @__PURE__ */ X(U, {
|
|
3210
|
-
icon:
|
|
3210
|
+
icon: un,
|
|
3211
3211
|
size: "sm"
|
|
3212
3212
|
})
|
|
3213
3213
|
})] })
|
|
@@ -4139,7 +4139,7 @@ var Ds = [
|
|
|
4139
4139
|
disabled: r,
|
|
4140
4140
|
label: l.ai.clarifyingQuestion.back,
|
|
4141
4141
|
hideLabel: !0,
|
|
4142
|
-
icon:
|
|
4142
|
+
icon: dn
|
|
4143
4143
|
}),
|
|
4144
4144
|
/* @__PURE__ */ X("span", {
|
|
4145
4145
|
className: "translate-y-px text-sm font-semibold text-f1-foreground-tertiary",
|
|
@@ -4153,7 +4153,7 @@ var Ds = [
|
|
|
4153
4153
|
disabled: i || !a,
|
|
4154
4154
|
label: l.ai.clarifyingQuestion.next,
|
|
4155
4155
|
hideLabel: !0,
|
|
4156
|
-
icon:
|
|
4156
|
+
icon: un
|
|
4157
4157
|
})
|
|
4158
4158
|
]
|
|
4159
4159
|
}) : null,
|
|
@@ -5258,7 +5258,7 @@ var Ic = ({ text: e, description: t, avatar: n, confirmationText: r, onConfirm:
|
|
|
5258
5258
|
className: i(Bc()),
|
|
5259
5259
|
children: e
|
|
5260
5260
|
}) : null]
|
|
5261
|
-
}), Wc = ({ balance: e }) => /* @__PURE__ */ X(
|
|
5261
|
+
}), Wc = ({ balance: e }) => /* @__PURE__ */ X(_n, {
|
|
5262
5262
|
amount: e.amount,
|
|
5263
5263
|
percentage: e.percentage ?? void 0,
|
|
5264
5264
|
invertStatus: e.invertStatus,
|
|
@@ -5292,7 +5292,7 @@ var Ic = ({ text: e, description: t, avatar: n, confirmationText: r, onConfirm:
|
|
|
5292
5292
|
src: e.avatar.src,
|
|
5293
5293
|
size: "xs"
|
|
5294
5294
|
})
|
|
5295
|
-
}) : e.content === "alert" ? /* @__PURE__ */ X(
|
|
5295
|
+
}) : e.content === "alert" ? /* @__PURE__ */ X(sn, {
|
|
5296
5296
|
text: e.alertLabel,
|
|
5297
5297
|
level: e.level
|
|
5298
5298
|
}) : e.content === "balance" ? /* @__PURE__ */ X(Wc, { balance: e.balance }) : null;
|
|
@@ -5588,7 +5588,7 @@ var sl = ({ icon: e, title: t, children: n }) => {
|
|
|
5588
5588
|
children: t
|
|
5589
5589
|
}),
|
|
5590
5590
|
/* @__PURE__ */ X(U, {
|
|
5591
|
-
icon:
|
|
5591
|
+
icon: un,
|
|
5592
5592
|
className: "h-4 w-4 transition-transform duration-200"
|
|
5593
5593
|
})
|
|
5594
5594
|
]
|
|
@@ -5907,7 +5907,7 @@ function wl({ id: e, status: n }) {
|
|
|
5907
5907
|
}), n === "running" ? /* @__PURE__ */ X(W, {
|
|
5908
5908
|
display: "flex",
|
|
5909
5909
|
"aria-hidden": "true",
|
|
5910
|
-
children: /* @__PURE__ */ X(
|
|
5910
|
+
children: /* @__PURE__ */ X(cn, { size: "small" })
|
|
5911
5911
|
}) : /* @__PURE__ */ X(pl, { status: n })]
|
|
5912
5912
|
});
|
|
5913
5913
|
}
|
|
@@ -5923,7 +5923,7 @@ function Tl({ items: e, status: n, statusId: r, isPending: a }) {
|
|
|
5923
5923
|
alignItems: "center",
|
|
5924
5924
|
justifyContent: "center",
|
|
5925
5925
|
"aria-label": o.ai.threadOptions,
|
|
5926
|
-
children: /* @__PURE__ */ X(
|
|
5926
|
+
children: /* @__PURE__ */ X(cn, { size: "small" })
|
|
5927
5927
|
}) : /* @__PURE__ */ Z("div", {
|
|
5928
5928
|
"data-testid": "thread-actions-slot",
|
|
5929
5929
|
className: n ? i("group/slot relative flex h-7 w-7 shrink-0 items-center justify-center", "[@media(hover:none)]:w-auto [@media(hover:none)]:gap-1", "[@media(pointer:coarse)]:w-auto [@media(pointer:coarse)]:gap-1") : "contents",
|
|
@@ -6022,7 +6022,7 @@ function Dl({ label: e, threads: t, pinnedIds: n, activeThreadId: r, onSelect: o
|
|
|
6022
6022
|
}), /* @__PURE__ */ X("span", {
|
|
6023
6023
|
className: i("flex opacity-0 transition-opacity duration-150 group-hover/label:opacity-100 group-focus-visible/label:opacity-100 motion-reduce:transition-none", !d && "opacity-100"),
|
|
6024
6024
|
children: /* @__PURE__ */ X(U, {
|
|
6025
|
-
icon: d ? Qt :
|
|
6025
|
+
icon: d ? Qt : ln,
|
|
6026
6026
|
color: "secondary",
|
|
6027
6027
|
size: "xs"
|
|
6028
6028
|
})
|
|
@@ -6159,7 +6159,7 @@ var Pl = () => {
|
|
|
6159
6159
|
//#region src/addons/ai/F0AiChatHistory/utils.ts
|
|
6160
6160
|
function Fl(e) {
|
|
6161
6161
|
let t = new Date(e), n = /* @__PURE__ */ new Date();
|
|
6162
|
-
return qt(t) ? "today" : z(t) ? "yesterday" :
|
|
6162
|
+
return qt(t) ? "today" : z(t) ? "yesterday" : mn(t, n) ? "thisMonth" : "older";
|
|
6163
6163
|
}
|
|
6164
6164
|
function Il(e) {
|
|
6165
6165
|
let t = {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { a as e, r as t } from "./i18n-provider-CCg0vfdK.js";
|
|
2
2
|
import { L as n } from "./tooltip-NXXT56H4.js";
|
|
3
3
|
import { t as r } from "./F0Button-C1aRGjA7.js";
|
|
4
|
-
import { Ho as i, Xs as a, al as o, ca as s } from "./F0CanvasPanel-
|
|
4
|
+
import { Ho as i, Xs as a, al as o, ca as s } from "./F0CanvasPanel-BO8mckaU.js";
|
|
5
5
|
import { o as c } from "./F0Icon-CA8QrO7J.js";
|
|
6
6
|
import { P as l, v as u } from "./useData-CzdjLV9a.js";
|
|
7
7
|
import { useRef as d } from "react";
|