@factorialco/f0-react 12.14.0 → 12.15.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-CgaNJ6v9.js → ArchiveThumbnail-BxhEauws.js} +1 -1
- package/dist/{ArchiveViewer-Uohl6wf1.js → ArchiveViewer-Cl_-VWzT.js} +2 -2
- package/dist/{ChatPostComposerDialog-Cr6Ci2dz.js → ChatPostComposerDialog-CZlNr9ba.js} +2 -2
- package/dist/{CoachmarkProvider-Cfb6WvLp.js → CoachmarkProvider-CEw78dgS.js} +16376 -16376
- package/dist/{CodeThumbnail-CFNKh12S.js → CodeThumbnail-DDo9lfco.js} +1 -1
- package/dist/{CodeViewer-C4XxNdq4.js → CodeViewer-BrTpF20r.js} +4 -4
- package/dist/{DocumentToolbar-CcEggNyX.js → DocumentToolbar-C9ddjrjJ.js} +2 -2
- package/dist/{DocxViewer-DIiFGMl7.js → DocxViewer-A6yOGoqC.js} +1 -1
- package/dist/{F0AiProcessingOverlay-wFS85Arm.js → F0AiProcessingOverlay-BMFIt7Ru.js} +23 -23
- package/dist/{F0Alert-DRK5Na7T.js → F0Alert-D5hs2XZm.js} +1 -1
- package/dist/F0AudioPlayer-BAEmgv7O.js +2 -0
- package/dist/{F0CanvasPanel-CbJxX6Qv.js → F0CanvasPanel-BDuYWQcq.js} +162 -162
- package/dist/{F0DocumentViewer-B6ccmcTZ.js → F0DocumentViewer-C6o-c1aq.js} +2 -2
- package/dist/{F0DocumentViewer-B2_6INMo.js → F0DocumentViewer-D8Ylnw3M.js} +1 -1
- package/dist/{F0Map-BkrkSniz.js → F0Map-BHihj_0n.js} +3 -3
- package/dist/{F0Select-BZ20yXKy.js → F0Select-DmSUsNZ8.js} +1 -1
- package/dist/{F0VideoPlayer-BkRdc58E.js → F0VideoPlayer-Dz9QSCFp.js} +1 -1
- package/dist/F0VideoPlayer-Ik-2vnL4.js +1 -0
- package/dist/{HtmlViewer-qkAWMkJy.js → HtmlViewer-Cf5lw2RH.js} +4 -4
- package/dist/{Map-CZcZoNEa.js → Map-B8_F4AIJ.js} +3 -3
- package/dist/{PdfThumbnail-RTw1aKm_.js → PdfThumbnail-CpLZEOJu.js} +1 -1
- package/dist/{PdfViewer-m56GqoJt.js → PdfViewer-CMsX7rCn.js} +6 -6
- package/dist/{SheetViewer-C80n4nta.js → SheetViewer-CQpNmizK.js} +2 -2
- package/dist/{TextViewer-BINEouL8.js → TextViewer-w65gdt5z.js} +1 -1
- package/dist/ai.js +2 -2
- package/dist/component-status.js +1 -1
- package/dist/experimental.js +123 -123
- package/dist/f0.js +56 -56
- package/dist/{highlight-BNASV9vz.js → highlight-D-PODccV.js} +1 -1
- package/dist/{maplibre-DTAAiC-N.js → maplibre-B7vlGgUT.js} +1 -1
- package/dist/{pdfWorker-D16_euGm.js → pdfWorker-C-Auu3EX.js} +1 -1
- package/dist/styles.css +1 -1
- package/package.json +1 -1
- package/dist/F0AudioPlayer-Ds4txTh4.js +0 -2
- package/dist/F0VideoPlayer-5bnm6ryg.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-D-PODccV.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-Bdgo-LeP.js";
|
|
2
2
|
import { t } from "./skeleton-AC0Fb8zj.js";
|
|
3
3
|
import { L as n } from "./tooltip-BX4dSfeL.js";
|
|
4
|
-
import { Tr as r, xc as i } from "./F0CanvasPanel-
|
|
5
|
-
import {
|
|
4
|
+
import { Tr as r, xc as i } from "./F0CanvasPanel-BDuYWQcq.js";
|
|
5
|
+
import { St as a } from "./F0Select-DmSUsNZ8.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-C9ddjrjJ.js";
|
|
8
|
+
import { a as l, i as u, n as d, o as f, r as p, t as m } from "./highlight-D-PODccV.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-Bdgo-LeP.js";
|
|
2
|
-
import { Ks as t } from "./F0CanvasPanel-
|
|
2
|
+
import { Ks as t } from "./F0CanvasPanel-BDuYWQcq.js";
|
|
3
3
|
import { z as n } from "./useData-BYkiGUHX.js";
|
|
4
|
-
import {
|
|
4
|
+
import { cr as r, t as i } from "./F0Select-DmSUsNZ8.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-lTj_42zD.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-Bdgo-LeP.js";
|
|
2
2
|
import { t } from "./skeleton-AC0Fb8zj.js";
|
|
3
|
-
import { n, t as r } from "./DocumentToolbar-
|
|
3
|
+
import { n, t as r } from "./DocumentToolbar-C9ddjrjJ.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-Bdgo-LeP.js";
|
|
|
2
2
|
import { n, t as r } from "./skeleton-AC0Fb8zj.js";
|
|
3
3
|
import { L as i, R as a } from "./tooltip-BX4dSfeL.js";
|
|
4
4
|
import { R as o, T as s, U as c, h as l, n as u, r as d, t as f, wt as p, y as m } from "./F0Button-d91IgOnc.js";
|
|
5
|
-
import { A as h, B as g, Bo as _, Bt as v, Co as y, Er as b, F as x, G as S, Gt as C, H as w, I as T, Io as E, Jr as D, K as O, Ks as k, Lt as ee, M as A, Mo as j, Mt as M, N, Na as P, Nt as F, Oc as I, Ot as te, P as ne, Pa as re, Pt as L, Ra as R, Ro as ie, Rt as z, So as ae, Tr as oe, Tt as se, Vo as ce, W as B, Xs as le, Xt as ue, Ya as de, Yo as fe, Zs as V, _ as pe, _t as me, a as he, aa as ge, ao as _e, as as ve, at as ye, b as be, bi as xe, bo as Se, bt as Ce, c as we, ct as Te, d as Ee, f as De, fr as Oe, ft as ke, gi as Ae, go as je, gr as Me, ht as Ne, i as Pe, ii as Fe, it as Ie, j as Le, jt as Re, k as ze, kc as Be, l as Ve, lo as He, ms as Ue, ni as We, ns as Ge, or as Ke, r as qe, ri as Je, ss as Ye, st as Xe, ti as Ze, u as Qe, ut as $e, v as et, vi as tt, wt as nt, x as rt, xo as it, xt as at, y as ot, yc as st, ys as ct, z as lt } from "./F0CanvasPanel-
|
|
5
|
+
import { A as h, B as g, Bo as _, Bt as v, Co as y, Er as b, F as x, G as S, Gt as C, H as w, I as T, Io as E, Jr as D, K as O, Ks as k, Lt as ee, M as A, Mo as j, Mt as M, N, Na as P, Nt as F, Oc as I, Ot as te, P as ne, Pa as re, Pt as L, Ra as R, Ro as ie, Rt as z, So as ae, Tr as oe, Tt as se, Vo as ce, W as B, Xs as le, Xt as ue, Ya as de, Yo as fe, Zs as V, _ as pe, _t as me, a as he, aa as ge, ao as _e, as as ve, at as ye, b as be, bi as xe, bo as Se, bt as Ce, c as we, ct as Te, d as Ee, f as De, fr as Oe, ft as ke, gi as Ae, go as je, gr as Me, ht as Ne, i as Pe, ii as Fe, it as Ie, j as Le, jt as Re, k as ze, kc as Be, l as Ve, lo as He, ms as Ue, ni as We, ns as Ge, or as Ke, r as qe, ri as Je, ss as Ye, st as Xe, ti as Ze, u as Qe, ut as $e, v as et, vi as tt, wt as nt, x as rt, xo as it, xt as at, y as ot, yc as st, ys as ct, z as lt } from "./F0CanvasPanel-BDuYWQcq.js";
|
|
6
6
|
import { o as ut, t as H } from "./F0Icon-DmCBV0gK.js";
|
|
7
7
|
import { t as dt } from "./i18n-provider-defaults-B9vdZZeS.js";
|
|
8
8
|
import { C as ft, H as pt, I as mt, N as ht, U as gt, b as _t, g as vt, h as yt, k as bt, l as xt, m as St } from "./useData-BYkiGUHX.js";
|
|
9
|
-
import {
|
|
9
|
+
import { Cr as Ct, Dr as wt, En as Tt, Et, Nt as Dt, Sr as Ot, Tn as kt, Tr as At, _t as jt, an as Mt, cn as Nt, en as Pt, gt as Ft, lt as It, on as Lt, vt as Rt, xr as zt } from "./F0Select-DmSUsNZ8.js";
|
|
10
10
|
import { t as Bt } from "./Ellipsis-CBouJQYY.js";
|
|
11
11
|
import { t as Vt } from "./ExternalLink-RdKU698E.js";
|
|
12
12
|
import { a as Ht, gt as Ut, i as Wt, n as Gt, t as Kt } from "./popover-ics24JxK.js";
|
|
@@ -193,7 +193,7 @@ var gn = 14, _n = 2.31, vn = ({ percentage: e, tone: t }) => {
|
|
|
193
193
|
className: "min-w-0 flex-1 truncate",
|
|
194
194
|
children: c.t("ai.usageLimits.yourCompany")
|
|
195
195
|
}), /* @__PURE__ */ J(H, {
|
|
196
|
-
icon:
|
|
196
|
+
icon: Ot,
|
|
197
197
|
size: "md",
|
|
198
198
|
color: "default"
|
|
199
199
|
})]
|
|
@@ -603,7 +603,7 @@ function Vn({ item: e, onSelect: t, onHover: n }) {
|
|
|
603
603
|
"aria-hidden": !0,
|
|
604
604
|
className: "flex flex-shrink-0 items-center text-f1-foreground-secondary opacity-0 transition-opacity group-hover:opacity-100 group-focus-visible:opacity-100",
|
|
605
605
|
children: /* @__PURE__ */ J(H, {
|
|
606
|
-
icon:
|
|
606
|
+
icon: At,
|
|
607
607
|
size: "sm"
|
|
608
608
|
})
|
|
609
609
|
})]
|
|
@@ -1144,16 +1144,16 @@ function ar({ id: e, trigger: t, resolver: n, contentClassName: r = "w-64", ...a
|
|
|
1144
1144
|
s,
|
|
1145
1145
|
l
|
|
1146
1146
|
]), h = d ? null : s;
|
|
1147
|
-
return /* @__PURE__ */ Y(
|
|
1147
|
+
return /* @__PURE__ */ Y(Ft, {
|
|
1148
1148
|
openDelay: 300,
|
|
1149
1149
|
closeDelay: 100,
|
|
1150
1150
|
onOpenChange: (e) => {
|
|
1151
1151
|
e && m();
|
|
1152
1152
|
},
|
|
1153
|
-
children: [/* @__PURE__ */ J(
|
|
1153
|
+
children: [/* @__PURE__ */ J(Rt, {
|
|
1154
1154
|
asChild: !0,
|
|
1155
1155
|
children: t
|
|
1156
|
-
}), /* @__PURE__ */ J(
|
|
1156
|
+
}), /* @__PURE__ */ J(jt, {
|
|
1157
1157
|
side: "top",
|
|
1158
1158
|
align: "start",
|
|
1159
1159
|
className: i(r, "rounded-2xl border-none p-0 shadow-md"),
|
|
@@ -1397,7 +1397,7 @@ function _r({ id: e, label: n }) {
|
|
|
1397
1397
|
label: a.t("ai.entityRef.requisition.status"),
|
|
1398
1398
|
value: /* @__PURE__ */ J("div", {
|
|
1399
1399
|
className: "flex items-center pt-1",
|
|
1400
|
-
children: /* @__PURE__ */ J(
|
|
1400
|
+
children: /* @__PURE__ */ J(kt, {
|
|
1401
1401
|
text: e.status,
|
|
1402
1402
|
variant: e.statusVariant ?? "neutral"
|
|
1403
1403
|
})
|
|
@@ -2489,7 +2489,7 @@ var Hi = ({ content: e, targetMessage: n, onCopy: r }) => {
|
|
|
2489
2489
|
className: "min-h-6 flex items-center",
|
|
2490
2490
|
children: /* @__PURE__ */ J("span", { children: t })
|
|
2491
2491
|
}),
|
|
2492
|
-
s ? null : /* @__PURE__ */ J(H, { icon:
|
|
2492
|
+
s ? null : /* @__PURE__ */ J(H, { icon: Ot })
|
|
2493
2493
|
]
|
|
2494
2494
|
}), /* @__PURE__ */ J(We, {
|
|
2495
2495
|
forceMount: !0,
|
|
@@ -3073,7 +3073,7 @@ var Da = ({ canProceed: e, submitDisabled: n, label: r, onConfirm: i, onSkip: a,
|
|
|
3073
3073
|
let t = Math.min(e.scrollHeight, ka);
|
|
3074
3074
|
e.style.height = `${t}px`, e.style.overflowY = e.scrollHeight > ka ? "auto" : "hidden";
|
|
3075
3075
|
}, [a]);
|
|
3076
|
-
let g = e === "single" ? /* @__PURE__ */ J(Oa, { isSelected: r && !n }) : /* @__PURE__ */ J(
|
|
3076
|
+
let g = e === "single" ? /* @__PURE__ */ J(Oa, { isSelected: r && !n }) : /* @__PURE__ */ J(It, {
|
|
3077
3077
|
checked: o,
|
|
3078
3078
|
onCheckedChange: () => d(!o),
|
|
3079
3079
|
title: p,
|
|
@@ -3112,7 +3112,7 @@ var Da = ({ canProceed: e, submitDisabled: n, label: r, onConfirm: i, onSkip: a,
|
|
|
3112
3112
|
}) : /* @__PURE__ */ Y("div", {
|
|
3113
3113
|
ref: c,
|
|
3114
3114
|
className: i("flex cursor-pointer items-center rounded-md pl-2 transition-[background-color,transform] hover:bg-f1-background-secondary active:scale-[0.99]"),
|
|
3115
|
-
children: [/* @__PURE__ */ J(
|
|
3115
|
+
children: [/* @__PURE__ */ J(It, {
|
|
3116
3116
|
checked: t,
|
|
3117
3117
|
onCheckedChange: () => o(e.id),
|
|
3118
3118
|
title: e.label,
|
|
@@ -3233,7 +3233,7 @@ var Ma = [
|
|
|
3233
3233
|
disabled: r,
|
|
3234
3234
|
label: l.ai.clarifyingQuestion.back,
|
|
3235
3235
|
hideLabel: !0,
|
|
3236
|
-
icon:
|
|
3236
|
+
icon: Ct
|
|
3237
3237
|
}),
|
|
3238
3238
|
/* @__PURE__ */ J("span", {
|
|
3239
3239
|
className: "translate-y-px text-sm font-semibold text-f1-foreground-tertiary",
|
|
@@ -3247,7 +3247,7 @@ var Ma = [
|
|
|
3247
3247
|
disabled: i || !a,
|
|
3248
3248
|
label: l.ai.clarifyingQuestion.next,
|
|
3249
3249
|
hideLabel: !0,
|
|
3250
|
-
icon:
|
|
3250
|
+
icon: Ot
|
|
3251
3251
|
})
|
|
3252
3252
|
]
|
|
3253
3253
|
}) : null,
|
|
@@ -4351,7 +4351,7 @@ var Bo = ({ text: e, description: t, avatar: n, confirmationText: r, onConfirm:
|
|
|
4351
4351
|
className: i(Wo()),
|
|
4352
4352
|
children: e
|
|
4353
4353
|
}) : null]
|
|
4354
|
-
}), Jo = ({ balance: e }) => /* @__PURE__ */ J(
|
|
4354
|
+
}), Jo = ({ balance: e }) => /* @__PURE__ */ J(Dt, {
|
|
4355
4355
|
amount: e.amount,
|
|
4356
4356
|
percentage: e.percentage ?? void 0,
|
|
4357
4357
|
invertStatus: e.invertStatus,
|
|
@@ -4385,7 +4385,7 @@ var Bo = ({ text: e, description: t, avatar: n, confirmationText: r, onConfirm:
|
|
|
4385
4385
|
src: e.avatar.src,
|
|
4386
4386
|
size: "xs"
|
|
4387
4387
|
})
|
|
4388
|
-
}) : e.content === "alert" ? /* @__PURE__ */ J(
|
|
4388
|
+
}) : e.content === "alert" ? /* @__PURE__ */ J(Tt, {
|
|
4389
4389
|
text: e.alertLabel,
|
|
4390
4390
|
level: e.level
|
|
4391
4391
|
}) : e.content === "balance" ? /* @__PURE__ */ J(Jo, { balance: e.balance }) : null;
|
|
@@ -4694,7 +4694,7 @@ var ps = ({ icon: e, title: t, children: n }) => {
|
|
|
4694
4694
|
children: t
|
|
4695
4695
|
}),
|
|
4696
4696
|
/* @__PURE__ */ J(H, {
|
|
4697
|
-
icon:
|
|
4697
|
+
icon: Ot,
|
|
4698
4698
|
className: "h-4 w-4 transition-transform duration-200"
|
|
4699
4699
|
})
|
|
4700
4700
|
]
|
|
@@ -5221,14 +5221,14 @@ var Cs = ({ credits: e, employeeCredits: t, trigger: n }) => t ? /* @__PURE__ */
|
|
|
5221
5221
|
//#region src/addons/ai/ai/F0AiChatHistory/utils.ts
|
|
5222
5222
|
function Es(e) {
|
|
5223
5223
|
let t = new Date(e), n = /* @__PURE__ */ new Date();
|
|
5224
|
-
return re(t) ? "today" : P(t) ? "yesterday" :
|
|
5224
|
+
return re(t) ? "today" : P(t) ? "yesterday" : Lt(t, n) ? "thisMonth" : "older";
|
|
5225
5225
|
}
|
|
5226
5226
|
function Ds(e, t, n) {
|
|
5227
|
-
let r = new Date(e), i =
|
|
5227
|
+
let r = new Date(e), i = Nt(r, "p", { locale: n });
|
|
5228
5228
|
if (re(r)) return `${t.today}, ${i}`;
|
|
5229
5229
|
if (P(r)) return `${t.yesterday}, ${i}`;
|
|
5230
|
-
let a = !
|
|
5231
|
-
return `${
|
|
5230
|
+
let a = !Mt(r, /* @__PURE__ */ new Date());
|
|
5231
|
+
return `${Nt(r, a ? "MMM d yyyy" : "MMM d", { locale: n })}, ${i}`;
|
|
5232
5232
|
}
|
|
5233
5233
|
function Os(e) {
|
|
5234
5234
|
let t = {
|
|
@@ -5251,7 +5251,7 @@ function Os(e) {
|
|
|
5251
5251
|
//#endregion
|
|
5252
5252
|
//#region src/addons/ai/ai/F0AiChatHistory/components/ThreadItem.tsx
|
|
5253
5253
|
function ks({ thread: e, isPinned: n, isActive: r = !1, isPending: o = !1, onSelect: s, onPin: c, onUnpin: l, onDelete: f, className: p }) {
|
|
5254
|
-
let m = t(), h =
|
|
5254
|
+
let m = t(), h = Pt(), g = G(() => [{
|
|
5255
5255
|
label: n ? m.ai.unpinChat : m.ai.pinChat,
|
|
5256
5256
|
icon: n ? _ : ce,
|
|
5257
5257
|
onClick: () => n ? l(e.id) : c(e.id)
|
|
@@ -5312,7 +5312,7 @@ function ks({ thread: e, isPinned: n, isActive: r = !1, isPending: o = !1, onSel
|
|
|
5312
5312
|
o ? /* @__PURE__ */ J("div", {
|
|
5313
5313
|
className: "flex h-7 w-7 shrink-0 items-center justify-center",
|
|
5314
5314
|
"aria-label": m.ai.threadOptions,
|
|
5315
|
-
children: /* @__PURE__ */ J(
|
|
5315
|
+
children: /* @__PURE__ */ J(Et, { size: "small" })
|
|
5316
5316
|
}) : /* @__PURE__ */ J("div", {
|
|
5317
5317
|
className: i("hidden items-center", "group-hover:flex group-focus-within:flex", "has-[[aria-expanded=true]]:flex"),
|
|
5318
5318
|
children: /* @__PURE__ */ J(R, {
|
|
@@ -5347,7 +5347,7 @@ function As({ label: e, threads: t, pinnedIds: n, onSelect: r, onPin: o, onUnpin
|
|
|
5347
5347
|
className: "text-sm font-medium capitalize tracking-wide text-f1-foreground-secondary",
|
|
5348
5348
|
children: e
|
|
5349
5349
|
}), /* @__PURE__ */ J(H, {
|
|
5350
|
-
icon: l ? pt :
|
|
5350
|
+
icon: l ? pt : zt,
|
|
5351
5351
|
color: "secondary",
|
|
5352
5352
|
size: "xs"
|
|
5353
5353
|
})]
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { a as e, r as t } from "./i18n-provider-Bdgo-LeP.js";
|
|
2
2
|
import { L as n } from "./tooltip-BX4dSfeL.js";
|
|
3
3
|
import { t as r } from "./F0Button-d91IgOnc.js";
|
|
4
|
-
import { La as i, Uo as a, Zs as o, ii as s } from "./F0CanvasPanel-
|
|
4
|
+
import { La as i, Uo as a, Zs as o, ii as s } from "./F0CanvasPanel-BDuYWQcq.js";
|
|
5
5
|
import { o as c } from "./F0Icon-DmCBV0gK.js";
|
|
6
6
|
import { g as l } from "./useData-BYkiGUHX.js";
|
|
7
7
|
import { useRef as u } from "react";
|