@factorialco/f0-react 14.24.1 → 14.24.3

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.
Files changed (41) hide show
  1. package/dist/{ArchiveThumbnail-CNwNABoZ.js → ArchiveThumbnail-G_-skPJY.js} +1 -1
  2. package/dist/{ArchiveViewer-Cx_a5j2o.js → ArchiveViewer-Ck5F8Aod.js} +2 -2
  3. package/dist/{ChatPostComposerDialog-Dz_9Ks7f.js → ChatPostComposerDialog-DXfS_ZiG.js} +2 -2
  4. package/dist/{CoachmarkProvider-DXN2crWr.js → CoachmarkProvider-SAh0ZUic.js} +144 -144
  5. package/dist/{CodeThumbnail-Db8LfjSF.js → CodeThumbnail-CGbAbtmu.js} +1 -1
  6. package/dist/{CodeViewer-BOFV_AEQ.js → CodeViewer-BXT_Z1V7.js} +4 -4
  7. package/dist/{DocumentToolbar-DPh7FeVr.js → DocumentToolbar-BwhS5vAt.js} +4 -4
  8. package/dist/{DocxViewer-BjL_QmSN.js → DocxViewer-Dy6FTzPZ.js} +1 -1
  9. package/dist/{F0AiProcessingOverlay-Cpl8LOW4.js → F0AiProcessingOverlay-vqgJaDVi.js} +15 -15
  10. package/dist/{F0Alert-B_bHfx7-.js → F0Alert-DGTBp_aw.js} +1 -1
  11. package/dist/F0AudioPlayer-BAwAnHdz.js +2 -0
  12. package/dist/{F0CanvasPanel-DYzczaYb.js → F0CanvasPanel-CcawN5fI.js} +7265 -7207
  13. package/dist/{F0DocumentViewer-Bvy8NFIe.js → F0DocumentViewer-D9ylyMhy.js} +1 -1
  14. package/dist/{F0DocumentViewer-BShllEI-.js → F0DocumentViewer-hj95rPKy.js} +2 -2
  15. package/dist/{F0Map--4ctj6U5.js → F0Map-ST6bCnEc.js} +3 -3
  16. package/dist/{F0Select-RYHUj-Cv.js → F0Select-BCGkExvm.js} +6835 -6816
  17. package/dist/{F0VideoPlayer-G3qooKdm.js → F0VideoPlayer-B0cmiYFC.js} +1 -1
  18. package/dist/F0VideoPlayer-CIvVaWDS.js +1 -0
  19. package/dist/{HtmlViewer-CYgzwlc0.js → HtmlViewer-Chd247zP.js} +4 -4
  20. package/dist/{Map-DUGg1a7X.js → Map-jV7ydhOK.js} +3 -3
  21. package/dist/{PdfThumbnail-Rj57-2z2.js → PdfThumbnail-DTjQWOho.js} +1 -1
  22. package/dist/{PdfViewer-B34v0zt2.js → PdfViewer-Dsw6W51i.js} +5 -5
  23. package/dist/{SheetViewer-Cx31tuyM.js → SheetViewer-B8MMIC4r.js} +2 -2
  24. package/dist/{TextViewer-CZG3N6VS.js → TextViewer-Oz3q2q4H.js} +1 -1
  25. package/dist/ai.d.ts +2 -2
  26. package/dist/ai.js +2 -2
  27. package/dist/component-status.js +1 -1
  28. package/dist/experimental.d.ts +22 -10
  29. package/dist/experimental.js +140 -144
  30. package/dist/{exports-CQI-tc1D.d.ts → exports-CEMWRlYd.d.ts} +1 -1
  31. package/dist/f0.d.ts +3 -3
  32. package/dist/f0.js +52 -52
  33. package/dist/{highlight-B2bjK65S.js → highlight-f0gOikqV.js} +1 -1
  34. package/dist/{index-D1E2csHC.d.ts → index-CmyjW0kM.d.ts} +159 -1
  35. package/dist/{maplibre-DJfKmeQV.js → maplibre-BRc7ch5M.js} +1 -1
  36. package/dist/{pdfWorker-DRDg9gXd.js → pdfWorker-FK1ybX4q.js} +1 -1
  37. package/dist/styles.css +1 -1
  38. package/dist/{types-Dus9MWIy.d.ts → types-BwEmRu4T.d.ts} +8 -160
  39. package/package.json +2 -1
  40. package/dist/F0AudioPlayer-CWkFeThK.js +0 -2
  41. package/dist/F0VideoPlayer-Cdzwp0OP.js +0 -1
@@ -1,5 +1,5 @@
1
1
  import { L as e } from "./tooltip-DFMOxXQO.js";
2
- import { i as t, t as n } from "./highlight-B2bjK65S.js";
2
+ import { i as t, t as n } from "./highlight-f0gOikqV.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-DzFN07EQ.js";
2
2
  import { t } from "./skeleton-DISb7cNz.js";
3
3
  import { L as n } from "./tooltip-DFMOxXQO.js";
4
- import { Xr as r, Yc as i } from "./F0CanvasPanel-DYzczaYb.js";
5
- import { wt as a } from "./F0Select-RYHUj-Cv.js";
4
+ import { Xr as r, Yc as i } from "./F0CanvasPanel-CcawN5fI.js";
5
+ import { wt as a } from "./F0Select-BCGkExvm.js";
6
6
  import { t as o } from "./purify.es-ZpfdAuNV.js";
7
- import { n as s, t as c } from "./DocumentToolbar-DPh7FeVr.js";
8
- import { a as l, i as u, n as d, o as f, r as p, t as m } from "./highlight-B2bjK65S.js";
7
+ import { n as s, t as c } from "./DocumentToolbar-BwhS5vAt.js";
8
+ import { a as l, i as u, n as d, o as f, r as p, t as m } from "./highlight-f0gOikqV.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-DzFN07EQ.js";
2
- import { yc as t } from "./F0CanvasPanel-DYzczaYb.js";
2
+ import { yc as t } from "./F0CanvasPanel-CcawN5fI.js";
3
3
  import { R as n } from "./useData-CXiRC0OP.js";
4
- import { t as r, ur as i } from "./F0Select-RYHUj-Cv.js";
4
+ import { dr as r, t as i } from "./F0Select-BCGkExvm.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-gmEwj_Xv.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: i
43
+ icon: r
44
44
  }),
45
- /* @__PURE__ */ h(r, {
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-DzFN07EQ.js";
2
2
  import { t } from "./skeleton-DISb7cNz.js";
3
- import { n, t as r } from "./DocumentToolbar-DPh7FeVr.js";
3
+ import { n, t as r } from "./DocumentToolbar-BwhS5vAt.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-DzFN07EQ.js";
2
2
  import { n, t as r } from "./skeleton-DISb7cNz.js";
3
3
  import { L as i, R as a } from "./tooltip-DFMOxXQO.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-D5dCyc5y.js";
5
- import { $ as m, $t as h, A as g, Aa as _, B as v, Bs as y, Bt as b, C as x, Cc as S, Di as C, Ei as w, Fo as T, Fs as E, Ft as D, G as ee, Gi as te, Gs as O, Gt as k, H as A, Ho as j, Ht as M, J as N, Jo as P, K as F, Ko as I, Kt as ne, Lr as re, Lt as ie, M as ae, Mt as L, Ns as R, O as oe, Oi as z, Os as B, Ot as se, Pt as ce, Q as le, S as ue, St as de, U as fe, Ui as pe, Vi as me, Vr as V, W as he, Wt as ge, Xr as _e, Xt as ve, Y as ye, Yo as be, Yt as xe, Zr as Se, _t as Ce, a as we, an as Te, ao as Ee, at as De, b as H, bo as Oe, cn as U, cs as ke, ct as Ae, dn as je, dt as Me, en as Ne, fn as Pe, fs as Fe, ft as Ie, g as Le, gn as Re, gt as ze, h as Be, in as Ve, io as He, is as Ue, it as We, j as Ge, jo as Ke, jr as qe, js as Je, jt as Ye, k as Xe, ki as Ze, kt as Qe, ln as $e, lo as et, lt as tt, m as nt, nl as rt, nn as it, ot as at, ps as ot, q as st, qc as ct, qo as lt, r as ut, rl as dt, rn as ft, rs as pt, rt as W, st as mt, tt as ht, us as gt, ut as _t, vn as vt, vt as yt, wc as bt, x as xt, xn as St, xs as Ct, y as wt, yc as Tt, yi as Et, yt as Dt } from "./F0CanvasPanel-DYzczaYb.js";
5
+ import { $ as m, $t as h, A as g, Aa as _, B as v, Bs as y, Bt as b, C as x, Cc as S, Di as C, Ei as w, Fo as T, Fs as E, Ft as D, G as ee, Gi as te, Gs as O, Gt as k, H as A, Ho as j, Ht as M, J as N, Jo as P, K as F, Ko as I, Kt as ne, Lr as re, Lt as ie, M as ae, Mt as L, Ns as R, O as oe, Oi as z, Os as B, Ot as se, Pt as ce, Q as le, S as ue, St as de, U as fe, Ui as pe, Vi as me, Vr as V, W as he, Wt as ge, Xr as _e, Xt as ve, Y as ye, Yo as be, Yt as xe, Zr as Se, _t as Ce, a as we, an as Te, ao as Ee, at as De, b as H, bo as Oe, cn as U, cs as ke, ct as Ae, dn as je, dt as Me, en as Ne, fn as Pe, fs as Fe, ft as Ie, g as Le, gn as Re, gt as ze, h as Be, in as Ve, io as He, is as Ue, it as We, j as Ge, jo as Ke, jr as qe, js as Je, jt as Ye, k as Xe, ki as Ze, kt as Qe, ln as $e, lo as et, lt as tt, m as nt, nl as rt, nn as it, ot as at, ps as ot, q as st, qc as ct, qo as lt, r as ut, rl as dt, rn as ft, rs as pt, rt as W, st as mt, tt as ht, us as gt, ut as _t, vn as vt, vt as yt, wc as bt, x as xt, xn as St, xs as Ct, y as wt, yc as Tt, yi as Et, yt as Dt } from "./F0CanvasPanel-CcawN5fI.js";
6
6
  import { o as Ot, t as G } from "./F0Icon-DFarlnfh.js";
7
7
  import { t as kt } from "./i18n-provider-defaults-CACuzph9.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-CXiRC0OP.js";
9
- import { Cr as Vt, Dn as Ht, Dr as Ut, Ft as Wt, On as Gt, Ot as Kt, Tr as qt, bt as Jt, cn as Yt, dt as Xt, kr as Zt, nn as Qt, sn as $t, un as en, vt as tn, wr as nn, yt as rn } from "./F0Select-RYHUj-Cv.js";
9
+ import { Ar as Vt, Dn as Ht, Er as Ut, Ft as Wt, On as Gt, Or as Kt, Ot as qt, Tr as Jt, bt as Yt, cn as Xt, dt as Zt, nn as Qt, sn as $t, un as en, vt as tn, wr as nn, yt as rn } from "./F0Select-BCGkExvm.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 : Ut,
256
+ icon: r === "save" ? an : Kt,
257
257
  onClick: I ? void 0 : st,
258
258
  disabled: !it
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: nn,
826
+ icon: Jt,
827
827
  size: "md",
828
828
  color: "default"
829
829
  })]
@@ -1367,7 +1367,7 @@ function br({ id: e, trigger: t, resolver: n, contentClassName: r = "w-64", ...a
1367
1367
  onOpenChange: (e) => {
1368
1368
  e && m();
1369
1369
  },
1370
- children: [/* @__PURE__ */ Z(Jt, {
1370
+ children: [/* @__PURE__ */ Z(Yt, {
1371
1371
  asChild: !0,
1372
1372
  children: t
1373
1373
  }), /* @__PURE__ */ Z(rn, {
@@ -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: nn })
2878
+ s ? null : /* @__PURE__ */ Z(G, { icon: Jt })
2879
2879
  ]
2880
2880
  }), /* @__PURE__ */ Z(C, {
2881
2881
  forceMount: !0,
@@ -3304,7 +3304,7 @@ var Ba = {
3304
3304
  onClick: () => ae(),
3305
3305
  label: O.ai.scrollToBottom,
3306
3306
  variant: "neutral",
3307
- icon: Zt,
3307
+ icon: Vt,
3308
3308
  hideLabel: !0
3309
3309
  })
3310
3310
  }) : null })
@@ -3392,7 +3392,7 @@ var Za = ({ canProceed: e, submitDisabled: n, label: r, onConfirm: i, onSkip: a,
3392
3392
  let t = Math.min(e.scrollHeight, $a);
3393
3393
  e.style.height = `${t}px`, e.style.overflowY = e.scrollHeight > $a ? "auto" : "hidden";
3394
3394
  }, [a]);
3395
- let g = e === "single" ? /* @__PURE__ */ Z(Qa, { isSelected: r && !n }) : /* @__PURE__ */ Z(Xt, {
3395
+ let g = e === "single" ? /* @__PURE__ */ Z(Qa, { isSelected: r && !n }) : /* @__PURE__ */ Z(Zt, {
3396
3396
  checked: o,
3397
3397
  onCheckedChange: () => d(!o),
3398
3398
  title: p,
@@ -3431,7 +3431,7 @@ var Za = ({ canProceed: e, submitDisabled: n, label: r, onConfirm: i, onSkip: a,
3431
3431
  }) : /* @__PURE__ */ Q("div", {
3432
3432
  ref: c,
3433
3433
  className: i("flex cursor-pointer items-center rounded-md pl-2 transition-[background-color,transform] hover:bg-f1-background-secondary active:scale-[0.99]"),
3434
- children: [/* @__PURE__ */ Z(Xt, {
3434
+ children: [/* @__PURE__ */ Z(Zt, {
3435
3435
  checked: t,
3436
3436
  onCheckedChange: () => o(e.id),
3437
3437
  title: e.label,
@@ -3552,7 +3552,7 @@ var no = [
3552
3552
  disabled: r,
3553
3553
  label: l.ai.clarifyingQuestion.back,
3554
3554
  hideLabel: !0,
3555
- icon: qt
3555
+ icon: Ut
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: nn
3569
+ icon: Jt
3570
3570
  })
3571
3571
  ]
3572
3572
  }) : 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: nn,
5003
+ icon: Jt,
5004
5004
  className: "h-4 w-4 transition-transform duration-200"
5005
5005
  })
5006
5006
  ]
@@ -5527,7 +5527,7 @@ 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 Ee(t) ? "today" : He(t) ? "yesterday" : Yt(t, n) ? "thisMonth" : "older";
5530
+ return Ee(t) ? "today" : He(t) ? "yesterday" : Xt(t, n) ? "thisMonth" : "older";
5531
5531
  }
5532
5532
  function Zs(e, t, n) {
5533
5533
  let r = new Date(e), i = en(r, "p", { locale: n });
@@ -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(Kt, { size: "small" })
5621
+ children: /* @__PURE__ */ Z(qt, { 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(et, {
@@ -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 : Vt,
5656
+ icon: l ? Ft : nn,
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-DzFN07EQ.js";
2
2
  import { L as n } from "./tooltip-DFMOxXQO.js";
3
3
  import { t as r } from "./F0Button-D5dCyc5y.js";
4
- import { co as i, hs as a, ki as o, wc as s } from "./F0CanvasPanel-DYzczaYb.js";
4
+ import { co as i, hs as a, ki as o, wc as s } from "./F0CanvasPanel-CcawN5fI.js";
5
5
  import { o as c } from "./F0Icon-DFarlnfh.js";
6
6
  import { M as l, g as u } from "./useData-CXiRC0OP.js";
7
7
  import { useRef as d } from "react";
@@ -0,0 +1,2 @@
1
+ export { Ai as F0AudioPlayer } from "./F0CanvasPanel-CcawN5fI.js";
2
+ import "./f0.js";