@factorialco/f0-react 9.2.1 → 9.3.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.
Files changed (43) hide show
  1. package/dist/{ChatDocxThumbnail-DTpOzL9A.js → ChatDocxThumbnail-Brbh1wem.js} +1 -1
  2. package/dist/{ChatPdfThumbnail-CAOAs-qh.js → ChatPdfThumbnail-D4DN5xr2.js} +1 -1
  3. package/dist/{ChatPostComposerDialog-BuzKBfwA.js → ChatPostComposerDialog-l1iabm-7.js} +3 -3
  4. package/dist/{ChatSheetThumbnail-P76Jt0_u.js → ChatSheetThumbnail-C_C2oIV_.js} +1 -1
  5. package/dist/{CoachmarkProvider-CQJNVR53.js → CoachmarkProvider-B1YG7W1t.js} +10919 -11003
  6. package/dist/{DocumentToolbar-BIIQvnf3.js → DocumentToolbar-CmyNC2wp.js} +2 -2
  7. package/dist/{DocxViewer-DVeatd9-.js → DocxViewer-de6X1Pon.js} +3 -3
  8. package/dist/{F0AiProcessingOverlay-CHEMsQma.js → F0AiProcessingOverlay-DB5NFWs5.js} +22 -22
  9. package/dist/{F0CanvasPanel-jtcjSLLr.js → F0CanvasPanel-DKFZlybo.js} +30705 -28790
  10. package/dist/{F0DocumentViewer-Bg7uiU9c.js → F0DocumentViewer-DTY1Upm6.js} +21 -21
  11. package/dist/{F0Map-DLJ6sRN_.js → F0Map-Ib5OFPWf.js} +5 -5
  12. package/dist/{F0VideoPlayer-B8kLFnbf.js → F0VideoPlayer-B7zpyW3g.js} +44 -44
  13. package/dist/{LocationMap-B-e88fW6.js → LocationMap-C6TZJaOq.js} +1 -1
  14. package/dist/{SheetViewer-B8BmAg0d.js → SheetViewer-BO_8Vz3d.js} +4 -4
  15. package/dist/{TextViewer-DDtUtmWj.js → TextViewer-BGDy0VE3.js} +2 -2
  16. package/dist/ai.d.ts +14 -14
  17. package/dist/ai.js +2 -2
  18. package/dist/{axe-mZXA-kzX.js → axe-Cc8MuO-E.js} +1 -1
  19. package/dist/component-status.d.ts +14 -14
  20. package/dist/component-status.js +69 -63
  21. package/dist/{experimental-4hJ9yljk.js → experimental-CJxYO3TS.js} +1914 -1914
  22. package/dist/experimental.d.ts +115 -28
  23. package/dist/experimental.js +146 -145
  24. package/dist/f0.d.ts +25 -25
  25. package/dist/f0.js +10581 -11477
  26. package/dist/i18n-provider-defaults.d.ts +14 -14
  27. package/dist/index-5n9cK7fI.js +4 -0
  28. package/dist/{index-D0AH60ev.js → index-B4YJYrDq.js} +21 -21
  29. package/dist/{index-C8h4kG2n.js → index-B_CHe0P4.js} +3 -3
  30. package/dist/{index-B5dJ814t.js → index-C1hywv0e.js} +1 -1
  31. package/dist/index-D3eRTe5Y.js +8 -0
  32. package/dist/{maplibre-gl-BFrhpbuU.js → maplibre-gl-CF3gv2QL.js} +1 -1
  33. package/dist/{papaparse.min-Bh1MVuzw.js → papaparse.min-l46A1xl2.js} +1 -1
  34. package/dist/{pdfWorker-BRAGbLi_.js → pdfWorker-Ddggmoi-.js} +3 -4
  35. package/dist/{renderDocx-CVEzw9MK.js → renderDocx-E222oLTQ.js} +1 -1
  36. package/dist/{sheetPreview-BiccmyTD.js → sheetPreview-DC9RRwv0.js} +1 -1
  37. package/dist/styles.css +1 -1
  38. package/dist/tooltip-VHD1kZdF.js +7433 -0
  39. package/package.json +1 -2
  40. package/dist/_commonjsHelpers-ByX85dGu.js +0 -33
  41. package/dist/index-CW8sa9GP.js +0 -8
  42. package/dist/index-k8Xsj0d1.js +0 -4
  43. package/dist/tooltip-CrXp1Uaz.js +0 -4641
@@ -1,7 +1,7 @@
1
1
  import { jsxs as m, jsx as l } from "react/jsx-runtime";
2
2
  import { useState as w, useCallback as d, useMemo as x } from "react";
3
- import { u as C, j as S, k, l as N, m as h } from "./F0CanvasPanel-jtcjSLLr.js";
4
- import { n as v, b as F, f as $, t as j, c as b, T as n, d as D } from "./F0DocumentViewer-Bg7uiU9c.js";
3
+ import { u as C, j as S, k, l as N, m as h } from "./F0CanvasPanel-DKFZlybo.js";
4
+ import { n as v, b as F, f as $, t as j, c as b, T as n, d as D } from "./F0DocumentViewer-DTY1Upm6.js";
5
5
  const g = () => {
6
6
  const [t, e] = w(1), c = d(
7
7
  () => e((o) => v(o) ?? o),
@@ -1,8 +1,8 @@
1
1
  import { jsxs as m, jsx as r } from "react/jsx-runtime";
2
2
  import { useRef as b, useState as p, useEffect as w } from "react";
3
- import { r as v } from "./renderDocx-CVEzw9MK.js";
4
- import { u as x, S as y } from "./F0CanvasPanel-jtcjSLLr.js";
5
- import { u as k, D } from "./DocumentToolbar-BIIQvnf3.js";
3
+ import { r as v } from "./renderDocx-E222oLTQ.js";
4
+ import { u as x, S as y } from "./F0CanvasPanel-DKFZlybo.js";
5
+ import { u as k, D } from "./DocumentToolbar-CmyNC2wp.js";
6
6
  const z = ({
7
7
  url: l,
8
8
  filename: g,
@@ -1,7 +1,7 @@
1
1
  import { jsxs as c, jsx as r, Fragment as F1 } from "react/jsx-runtime";
2
2
  import { useInsertionEffect as mn, forwardRef as m, useState as I, useRef as B, useCallback as P, useEffect as z, useLayoutEffect as q1, useMemo as W, useId as z1, createContext as X1, useContext as P1, createElement as gn, memo as wn } from "react";
3
- import { ad as Ft, am as vn, an as xn, ao as Nt, ap as Ln, aq as bn, ar as kn, as as yn, at as Mn, au as Rn, av as St, aw as Fn, ax as Nn, ay as ue, az as Sn, aA as Vn, aB as Tn, aC as Hn, aD as An, aE as En, aF as $n, aG as Bn, aH as In, N as Vt, aI as Pn, aJ as Dn, aK as _n, w as fe, aL as Tt, aM as D1, A as Ht, aN as Zn, aO as On, aP as jn, aQ as Un, aR as zn, aS as Gn, ak as N1, aT as Wn, aU as At, aV as qn, aW as Xn, aX as Yn, m as R1, aY as Kn, aZ as Qn, a_ as Et, a$ as Jn, b0 as eo, b1 as to, b2 as ro, b3 as no, b4 as oo, b5 as $t, b6 as so, b7 as ao, b8 as io, b9 as lo, ba as co, bb as uo, bc as fo, bd as ho, be as Co, bf as po, bg as mo, ab as go, bh as wo, bi as vo, bj as xo, bk as Lo, V as bo, bl as ko, bm as yo, bn as Mo, bo as Ro, bp as Fo, bq as No, br as So, bs as Vo, bt as To, bu as Ho, bv as Ao, bw as Eo, bx as $o, by as Bo, bz as Io, bA as Po, bB as Do, bC as _o, bD as Zo, a4 as Bt, bE as Oo, bF as jo, bG as Uo, bH as zo, bI as It, bJ as Go, a3 as Pt, bK as Wo, j as qo, bL as Xo, bM as Yo, ae as Ko, bN as Qo, bO as Jo, bP as e5, bQ as t5, bR as he, bS as r5, bT as n5, bU as o5, bV as s5, bW as a5, bX as i5, bY as l5, k as c5, bZ as Dt, b_ as _t, b$ as d5, c0 as Zt, c1 as u5, c2 as Ce, B as f5, c3 as pe, c4 as h5, R as C5, c5 as p5, c6 as me, a1 as m5, a2 as g5, c7 as Ot, c8 as w5, c9 as v5, ca as x5, cb as L5, cc as b5, cd as k5, ac as y5, ce as M5, cf as R5, cg as F5, ch as jt, ci as N5, cj as S5, ck as V5, cl as T5, cm as H5, u as O, K as Y1, L as ge, M as K1, v as r1, cn as Q1, co as t1, cp as A5, S as f1, cq as Ut, cr as E5, z as g1, a6 as $5, cs as n1, af as h1, a7 as k1, a8 as K, ct as zt, cu as B5, b as w1, cv as I5, cw as P5, cx as D5, d as Gt, cy as _5, i as Z5, cz as O5, cA as j5, cB as U5, cC as Ze, cD as z5, cE as Wt, cF as qt, cG as Xt, cH as Yt, cI as Kt, cJ as Qt, cK as G5, cL as W5, cM as q5, cN as X5, cO as Y5, cP as Jt, n as K5, cQ as Q5, cR as J5, aj as I1, s as er, t as tr, x as rr, c as ce, cS as Oe, cT as nr, cU as e0, cV as t0, cW as _1, cX as r0, q as n0, cY as o0, cZ as we, c_ as s0, c$ as a0, d0 as i0, d1 as l0, d2 as c0, d3 as d0, E as u0, H as f0, aa as ne, d4 as je, d5 as or, d6 as sr, d7 as h0, d8 as C0, d9 as p0, da as m0, db as g0, dc as w0 } from "./F0CanvasPanel-jtcjSLLr.js";
4
- import { d as L, f as l1, g as v0 } from "./tooltip-CrXp1Uaz.js";
3
+ import { ae as Ft, an as vn, ao as xn, ap as Nt, aq as Ln, ar as bn, as as kn, at as yn, au as Mn, av as Rn, aw as St, ax as Fn, ay as Nn, az as ue, aA as Sn, aB as Vn, aC as Tn, aD as Hn, aE as An, aF as En, aG as $n, aH as Bn, aI as In, O as Vt, aJ as Pn, aK as Dn, aL as _n, x as fe, aM as Tt, aN as D1, B as Ht, aO as Zn, aP as On, aQ as jn, aR as Un, aS as zn, aT as Gn, al as N1, aU as Wn, aV as At, aW as qn, aX as Xn, aY as Yn, m as R1, aZ as Kn, a_ as Qn, a$ as Et, b0 as Jn, b1 as eo, b2 as to, b3 as ro, b4 as no, b5 as oo, b6 as $t, b7 as so, b8 as ao, b9 as io, ba as lo, bb as co, bc as uo, bd as fo, be as ho, bf as Co, bg as po, bh as mo, ac as go, bi as wo, bj as vo, bk as xo, bl as Lo, W as bo, bm as ko, bn as yo, bo as Mo, bp as Ro, bq as Fo, br as No, bs as So, bt as Vo, bu as To, bv as Ho, bw as Ao, bx as Eo, by as $o, bz as Bo, bA as Io, bB as Po, bC as Do, bD as _o, bE as Zo, a5 as Bt, bF as Oo, bG as jo, bH as Uo, bI as zo, bJ as It, bK as Go, a4 as Pt, bL as Wo, j as qo, bM as Xo, bN as Yo, af as Ko, bO as Qo, bP as Jo, bQ as e5, bR as t5, bS as he, bT as r5, bU as n5, bV as o5, bW as s5, bX as a5, bY as i5, bZ as l5, k as c5, b_ as Dt, b$ as _t, c0 as d5, c1 as Zt, c2 as u5, c3 as Ce, E as f5, c4 as pe, c5 as h5, U as C5, c6 as p5, c7 as me, a2 as m5, a3 as g5, c8 as Ot, c9 as w5, ca as v5, cb as x5, cc as L5, cd as b5, ce as k5, ad as y5, cf as M5, cg as R5, ch as F5, ci as jt, cj as N5, ck as S5, cl as V5, cm as T5, cn as H5, u as O, L as Y1, M as ge, N as K1, w as r1, co as Q1, cp as t1, cq as A5, S as f1, cr as Ut, cs as E5, A as g1, a7 as $5, ct as n1, ag as h1, a8 as k1, a9 as K, cu as zt, cv as B5, b as w1, cw as I5, cx as P5, cy as D5, d as Gt, cz as _5, i as Z5, cA as O5, cB as j5, cC as U5, cD as Ze, cE as z5, cF as Wt, cG as qt, cH as Xt, cI as Yt, cJ as Kt, cK as Qt, cL as G5, cM as W5, cN as q5, cO as X5, cP as Y5, cQ as Jt, n as K5, cR as Q5, cS as J5, ak as I1, t as er, v as tr, y as rr, c as ce, cT as Oe, cU as e0, cV as nr, cW as t0, cX as r0, cY as _1, cZ as n0, q as o0, c_ as s0, c$ as we, d0 as a0, d1 as i0, d2 as l0, d3 as c0, d4 as d0, d5 as u0, G as f0, J as h0, ab as ne, d6 as je, d7 as or, d8 as sr, d9 as C0, da as p0, db as m0, dc as g0, dd as w0, de as v0 } from "./F0CanvasPanel-DKFZlybo.js";
4
+ import { d as L, f as l1 } from "./tooltip-VHD1kZdF.js";
5
5
  import { createPortal as ar } from "react-dom";
6
6
  import { defaultTranslations as x0 } from "./i18n-provider-defaults.js";
7
7
  import { useTrackVolume as L0 } from "@livekit/components-react";
@@ -8498,7 +8498,7 @@ const U9 = ({
8498
8498
  onToggleActive: f,
8499
8499
  onConfirm: u
8500
8500
  }) => {
8501
- const w = O().ai.clarifyingQuestion.typeYourAnswer, h = B(null), p = v0(h, i);
8501
+ const w = O().ai.clarifyingQuestion.typeYourAnswer, h = B(null), p = e0(h, i);
8502
8502
  q1(() => {
8503
8503
  const g = h.current;
8504
8504
  if (!g)
@@ -9457,11 +9457,11 @@ const a3 = 10, i3 = 2, l3 = 0.5, c3 = 0.2, d3 = 1.5, p1 = {
9457
9457
  repeatType: "mirror"
9458
9458
  };
9459
9459
  function U1(e) {
9460
- const [t, n] = I(e), o = e0(e), s = B(null);
9460
+ const [t, n] = I(e), o = t0(e), s = B(null);
9461
9461
  R0(o, "change", (i) => n(i));
9462
9462
  const a = P(
9463
9463
  (i, d) => {
9464
- s.current = t0(o, i, d);
9464
+ s.current = r0(o, i, d);
9465
9465
  },
9466
9466
  [o]
9467
9467
  );
@@ -10506,7 +10506,7 @@ const Il = ({
10506
10506
  ease: [0.33, 1, 0.68, 1]
10507
10507
  },
10508
10508
  children: /* @__PURE__ */ r(
10509
- r0,
10509
+ n0,
10510
10510
  {
10511
10511
  size: "md",
10512
10512
  label: o.ai.ask,
@@ -10532,7 +10532,7 @@ const Il = ({
10532
10532
  t,
10533
10533
  e ? /* @__PURE__ */ r("span", { className: L(Zr()), children: e }) : null
10534
10534
  ] }), H3 = ({ balance: e }) => /* @__PURE__ */ r(
10535
- a0,
10535
+ i0,
10536
10536
  {
10537
10537
  amount: e.amount,
10538
10538
  percentage: e.percentage ?? void 0,
@@ -10549,8 +10549,8 @@ const Il = ({
10549
10549
  src: e.avatar.src,
10550
10550
  size: "xs"
10551
10551
  }
10552
- ) }) : e.content === "people" ? /* @__PURE__ */ r(n0, { type: "person", avatars: e.avatars, size: "md", max: 3 }) : e.content === "team" ? /* @__PURE__ */ r(le, { label: t, children: /* @__PURE__ */ r(
10553
- o0,
10552
+ ) }) : e.content === "people" ? /* @__PURE__ */ r(o0, { type: "person", avatars: e.avatars, size: "md", max: 3 }) : e.content === "team" ? /* @__PURE__ */ r(le, { label: t, children: /* @__PURE__ */ r(
10553
+ s0,
10554
10554
  {
10555
10555
  name: e.avatar.name,
10556
10556
  src: e.avatar.src,
@@ -10563,7 +10563,7 @@ const Il = ({
10563
10563
  src: e.avatar.src,
10564
10564
  size: "xs"
10565
10565
  }
10566
- ) }) : e.content === "alert" ? /* @__PURE__ */ r(s0, { text: e.alertLabel, level: e.level }) : e.content === "balance" ? /* @__PURE__ */ r(H3, { balance: e.balance }) : null;
10566
+ ) }) : e.content === "alert" ? /* @__PURE__ */ r(a0, { text: e.alertLabel, level: e.level }) : e.content === "balance" ? /* @__PURE__ */ r(H3, { balance: e.balance }) : null;
10567
10567
  }, E3 = (e) => {
10568
10568
  const {
10569
10569
  heading: t,
@@ -10655,8 +10655,8 @@ const B3 = ({
10655
10655
  role: "img",
10656
10656
  "aria-label": `Sparkline chart showing ${a} trend`,
10657
10657
  children: [
10658
- /* @__PURE__ */ r(i0, { width: "100%", height: "100%", children: /* @__PURE__ */ c(
10659
- l0,
10658
+ /* @__PURE__ */ r(l0, { width: "100%", height: "100%", children: /* @__PURE__ */ c(
10659
+ c0,
10660
10660
  {
10661
10661
  data: e,
10662
10662
  margin: { top: 4, right: 4, bottom: 0, left: 0 },
@@ -10665,9 +10665,9 @@ const B3 = ({
10665
10665
  /* @__PURE__ */ r("stop", { offset: "5%", stopColor: i.fill, stopOpacity: 0.3 }),
10666
10666
  /* @__PURE__ */ r("stop", { offset: "95%", stopColor: i.fill, stopOpacity: 0.02 })
10667
10667
  ] }) }),
10668
- /* @__PURE__ */ r(c0, { hide: !0, domain: ["dataMin - 1", "dataMax + 1"] }),
10668
+ /* @__PURE__ */ r(d0, { hide: !0, domain: ["dataMin - 1", "dataMax + 1"] }),
10669
10669
  /* @__PURE__ */ r(
10670
- d0,
10670
+ u0,
10671
10671
  {
10672
10672
  type: "linear",
10673
10673
  dataKey: "value",
@@ -10832,8 +10832,8 @@ const _3 = () => /* @__PURE__ */ c(
10832
10832
  ] })
10833
10833
  ]
10834
10834
  }
10835
- ), Pl = u0(
10836
- f0(Ur, _3)
10835
+ ), Pl = f0(
10836
+ h0(Ur, _3)
10837
10837
  ), Dl = [
10838
10838
  "text",
10839
10839
  "person",
@@ -11539,7 +11539,7 @@ const de = ({
11539
11539
  };
11540
11540
  function rl(e) {
11541
11541
  const t = new Date(e), n = /* @__PURE__ */ new Date();
11542
- return or(t) ? "today" : sr(t) ? "yesterday" : C0(t, n) ? "thisMonth" : "older";
11542
+ return or(t) ? "today" : sr(t) ? "yesterday" : p0(t, n) ? "thisMonth" : "older";
11543
11543
  }
11544
11544
  function nl(e, t, n) {
11545
11545
  const o = new Date(e), s = je(o, "p", { locale: n });
@@ -11547,7 +11547,7 @@ function nl(e, t, n) {
11547
11547
  return `${t.today}, ${s}`;
11548
11548
  if (sr(o))
11549
11549
  return `${t.yesterday}, ${s}`;
11550
- const a = !h0(o, /* @__PURE__ */ new Date());
11550
+ const a = !C0(o, /* @__PURE__ */ new Date());
11551
11551
  return `${je(o, a ? "MMM d yyyy" : "MMM d", {
11552
11552
  locale: n
11553
11553
  })}, ${s}`;
@@ -11576,7 +11576,7 @@ function sl({
11576
11576
  onDelete: d,
11577
11577
  className: l
11578
11578
  }) {
11579
- const f = O(), u = p0(), C = W(
11579
+ const f = O(), u = m0(), C = W(
11580
11580
  () => [
11581
11581
  {
11582
11582
  label: t ? f.ai.unpinChat : f.ai.pinChat,
@@ -11648,7 +11648,7 @@ function sl({
11648
11648
  {
11649
11649
  className: "flex h-7 w-7 shrink-0 items-center justify-center",
11650
11650
  "aria-label": f.ai.threadOptions,
11651
- children: /* @__PURE__ */ r(m0, { size: "small" })
11651
+ children: /* @__PURE__ */ r(g0, { size: "small" })
11652
11652
  }
11653
11653
  )
11654
11654
  ) : /* @__PURE__ */ r(
@@ -11907,11 +11907,11 @@ const Ol = ({
11907
11907
  );
11908
11908
  }, Gr = "f0-ai-pinned-threads";
11909
11909
  function ll() {
11910
- const e = g0(Gr, []);
11910
+ const e = w0(Gr, []);
11911
11911
  return new Set(Array.isArray(e) ? e : []);
11912
11912
  }
11913
11913
  function Rt(e) {
11914
- w0(Gr, [...e]);
11914
+ v0(Gr, [...e]);
11915
11915
  }
11916
11916
  function jl({
11917
11917
  enabled: e = !1,