@factorialco/f0-react 8.36.1 → 9.0.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 (33) hide show
  1. package/dist/{ChatPdfThumbnail-BbOPESdU.js → ChatPdfThumbnail-Ch2Pi_N2.js} +1 -1
  2. package/dist/{ChatPostComposerDialog-Cv7VtLD6.js → ChatPostComposerDialog-CW24c9tS.js} +3 -3
  3. package/dist/{MapProvider-Q8EU0u5y.js → CoachmarkProvider-BXGXfIw-.js} +15546 -15554
  4. package/dist/{DocumentToolbar-CVrrJ4iA.js → DocumentToolbar-Bp9iCtUO.js} +9 -9
  5. package/dist/{DocxViewer-AbtW-zX4.js → DocxViewer-CKrXuvnB.js} +2 -2
  6. package/dist/{F0AiProcessingOverlay-BDqqztvk.js → F0AiProcessingOverlay-SFLE4xoa.js} +1 -1
  7. package/dist/{F0CanvasPanel-WVtVnJRZ.js → F0CanvasPanel-D25Wuumh.js} +35213 -35210
  8. package/dist/{index-DqE_RHOm.js → F0DocumentViewer-BXlup6dL.js} +142 -149
  9. package/dist/{F0Map-DLKYcpUE.js → F0Map-B9_jeX3R.js} +13 -13
  10. package/dist/{F0VideoPlayer-D1jXuNEn.js → F0VideoPlayer-VJSe0ziC.js} +48 -48
  11. package/dist/{SheetViewer-KR2QIyYj.js → SheetViewer-BO9MbbYR.js} +3 -3
  12. package/dist/{TextViewer-D28lLt_m.js → TextViewer-B7B947JZ.js} +2 -2
  13. package/dist/ai.d.ts +61 -49
  14. package/dist/ai.js +2 -2
  15. package/dist/component-status.d.ts +15 -15
  16. package/dist/component-status.js +70 -70
  17. package/dist/{experimental-BSsHhEKt.js → experimental-Do9KcVJp.js} +764 -763
  18. package/dist/experimental.d.ts +123 -114
  19. package/dist/experimental.js +83 -83
  20. package/dist/f0.d.ts +405 -172
  21. package/dist/f0.js +7024 -7006
  22. package/dist/i18n-provider-defaults.d.ts +15 -15
  23. package/dist/index-Bt9_3eC1.js +4 -0
  24. package/dist/{index-P3wd7w_Q.js → index-C66JSsii.js} +1 -1
  25. package/dist/{index-CuAmARkm.js → index-C95Ox1WO.js} +15 -15
  26. package/dist/{index-C5FgdXF2.js → index-W5BBvrFa.js} +2 -2
  27. package/dist/index-a7A0EHsJ.js +8 -0
  28. package/dist/pdfWorker-Bi4FxYtY.js +13120 -0
  29. package/package.json +4 -4
  30. package/dist/index-B5m0OpRD.js +0 -4
  31. package/dist/pdfWorker-C2B0uWA2.js +0 -13120
  32. /package/dist/{MapProvider.css → CoachmarkProvider.css} +0 -0
  33. /package/dist/{index2.css → F0DocumentViewer.css} +0 -0
@@ -1,7 +1,7 @@
1
1
  import { jsx as r, jsxs as B, Fragment as De } from "react/jsx-runtime";
2
2
  import { forwardRef as ie, useMemo as ze, useEffect as j, useState as E, useRef as N, useLayoutEffect as Hn, useContext as Xn, createContext as Yn, useCallback as O, useId as Un, useImperativeHandle as Gn } from "react";
3
- import { y as we, a5 as Zn, v as en, a6 as nt, a7 as lt, a8 as Oe, a9 as oe, aa as tn, u as se, z as Fe, ab as Kn, ac as qn, ad as Vn, j as Jn, ae as Qn, af as nn, ag as ea, ah as ta, ai as Rt, aj as an, ak as na } from "./F0CanvasPanel-WVtVnJRZ.js";
4
- import { c as aa, d as oa, e as la } from "./MapProvider-Q8EU0u5y.js";
3
+ import { c as Zn, d as Kn, e as qn } from "./CoachmarkProvider-BXGXfIw-.js";
4
+ import { y as we, a5 as Vn, v as en, a6 as nt, a7 as lt, a8 as Oe, a9 as oe, aa as tn, u as se, z as Fe, ab as Jn, ac as Qn, ad as ea, j as ta, ae as na, af as nn, ag as aa, ah as oa, ai as Rt, aj as an, ak as la } from "./F0CanvasPanel-D25Wuumh.js";
5
5
  import { d as D, f as ra } from "./tooltip-CrXp1Uaz.js";
6
6
  import { createPortal as ia } from "react-dom";
7
7
  const sa = (e, t) => ({
@@ -172,7 +172,7 @@ const sa = (e, t) => ({
172
172
  presentational: m = !1,
173
173
  dataTestId: y,
174
174
  className: b
175
- } = t, x = t.variant ?? "color", z = Be[n ? "xl" : l], L = !!c, S = x === "color" || x === "icon" || x === "letter", P = x === "person" && "firstName" in t ? t.firstName + t.lastName : (x === "team" || x === "company") && "name" in t ? t.name : null, f = S ? t.color ?? "radical" : P ? x === "person" && "src" in t && t.src ? "grey" : Zn(P) ?? "grey" : "neutral", p = aa(), h = n ? 32 : { xs: 12, sm: 16, md: 20, lg: 24 }[z.icon], T = { xs: 20, sm: 24, md: 32, lg: 40 }, g = Be[l].avatar, k = n ? T[z.avatar] / T[g] : 1, M = (C) => /* @__PURE__ */ r(
175
+ } = t, x = t.variant ?? "color", z = Be[n ? "xl" : l], L = !!c, S = x === "color" || x === "icon" || x === "letter", P = x === "person" && "firstName" in t ? t.firstName + t.lastName : (x === "team" || x === "company") && "name" in t ? t.name : null, f = S ? t.color ?? "radical" : P ? x === "person" && "src" in t && t.src ? "grey" : Vn(P) ?? "grey" : "neutral", p = Zn(), h = n ? 32 : { xs: 12, sm: 16, md: 20, lg: 24 }[z.icon], T = { xs: 20, sm: 24, md: 32, lg: 40 }, g = Be[l].avatar, k = n ? T[z.avatar] / T[g] : 1, M = (C) => /* @__PURE__ */ r(
176
176
  "span",
177
177
  {
178
178
  className: "flex shrink-0 items-center justify-center transition-transform duration-200 ease-out",
@@ -483,7 +483,7 @@ const ma = dn, st = (e, t) => `hsl(${ua(e, t).replace(/ /g, ", ")})`, da = (e, t
483
483
  variant: "ghost",
484
484
  size: "md",
485
485
  label: n?.fit ?? u.map.controls.fit,
486
- icon: Kn,
486
+ icon: Jn,
487
487
  hideLabel: !0,
488
488
  onClick: a
489
489
  }
@@ -494,7 +494,7 @@ const ma = dn, st = (e, t) => `hsl(${ua(e, t).replace(/ /g, ", ")})`, da = (e, t
494
494
  variant: "ghost",
495
495
  size: "md",
496
496
  label: n?.locate ?? u.map.controls.locate,
497
- icon: qn,
497
+ icon: Qn,
498
498
  hideLabel: !0,
499
499
  onClick: l
500
500
  }
@@ -509,7 +509,7 @@ const ma = dn, st = (e, t) => `hsl(${ua(e, t).replace(/ /g, ", ")})`, da = (e, t
509
509
  variant: "ghost",
510
510
  size: "md",
511
511
  label: n?.zoomIn ?? u.map.controls.zoomIn,
512
- icon: Vn,
512
+ icon: ea,
513
513
  hideLabel: !0,
514
514
  onClick: e
515
515
  }
@@ -520,7 +520,7 @@ const ma = dn, st = (e, t) => `hsl(${ua(e, t).replace(/ /g, ", ")})`, da = (e, t
520
520
  variant: "ghost",
521
521
  size: "md",
522
522
  label: n?.zoomOut ?? u.map.controls.zoomOut,
523
- icon: Jn,
523
+ icon: ta,
524
524
  hideLabel: !0,
525
525
  onClick: t
526
526
  }
@@ -833,7 +833,7 @@ const bn = (e, t) => (!_e && typeof document < "u" && (_e = document.createEleme
833
833
  };
834
834
  case "workplace":
835
835
  return {
836
- variant: { variant: "icon", icon: Qn },
836
+ variant: { variant: "icon", icon: na },
837
837
  color: Ma
838
838
  };
839
839
  case "stop":
@@ -1245,7 +1245,7 @@ function Fa() {
1245
1245
  } : e;
1246
1246
  }
1247
1247
  function So({ children: e }) {
1248
- const { currentPath: t } = ea(), [a, l] = E(!1), [n, o] = E(0), [s, u] = E(!1), d = a ? Rt.xl : Rt.md, c = ta(`(max-width: ${d}px)`, {
1248
+ const { currentPath: t } = aa(), [a, l] = E(!1), [n, o] = E(0), [s, u] = E(!1), d = a ? Rt.xl : Rt.md, c = oa(`(max-width: ${d}px)`, {
1249
1249
  initializeWithValue: !0
1250
1250
  }), [i, m] = E(() => {
1251
1251
  const p = localStorage.getItem(Ut);
@@ -1362,7 +1362,7 @@ function _o() {
1362
1362
  "aria-label": "Close Sidebar",
1363
1363
  children: [
1364
1364
  /* @__PURE__ */ r("div", { className: D("hidden", { flex: !l }), children: /* @__PURE__ */ r(kn, { isExpanded: t === "locked" }) }),
1365
- /* @__PURE__ */ r("div", { className: D("hidden", { flex: l }), children: /* @__PURE__ */ r(en, { icon: na, size: "md" }) })
1365
+ /* @__PURE__ */ r("div", { className: D("hidden", { flex: l }), children: /* @__PURE__ */ r(en, { icon: la, size: "md" }) })
1366
1366
  ]
1367
1367
  }
1368
1368
  );
@@ -1527,11 +1527,11 @@ const Lo = {
1527
1527
  }, []);
1528
1528
  return j(() => () => a.current?.disconnect(), []), { containerRef: l, isDark: e };
1529
1529
  }, Ya = {
1530
- maplibre: () => import("./index-C5FgdXF2.js").then((e) => e.createMaplibreAdapter),
1530
+ maplibre: () => import("./index-W5BBvrFa.js").then((e) => e.createMaplibreAdapter),
1531
1531
  // Google needs its script in the page before a map can be constructed, so the
1532
1532
  // loader resolves only once the API is up - which is what keeps the factory
1533
1533
  // itself synchronous for every engine.
1534
- google: (e) => import("./index-P3wd7w_Q.js").then((t) => t.loadGoogleAdapter(e))
1534
+ google: (e) => import("./index-C66JSsii.js").then((t) => t.loadGoogleAdapter(e))
1535
1535
  }, at = /* @__PURE__ */ new Map(), Ua = (e, t) => {
1536
1536
  const a = at.get(e);
1537
1537
  if (a)
@@ -2218,7 +2218,7 @@ const Lo = {
2218
2218
  dataTestId: Le,
2219
2219
  className: Me
2220
2220
  }, ue) {
2221
- const Ue = f ?? (M ? "greedy" : "cooperative"), Y = se(), Z = oa(ve), Te = la(), Q = N(null), C = N(null), [U, pt] = E(
2221
+ const Ue = f ?? (M ? "greedy" : "cooperative"), Y = se(), Z = Kn(ve), Te = qn(), Q = N(null), C = N(null), [U, pt] = E(
2222
2222
  null
2223
2223
  ), [V, ut] = E(!1), [Ln, Ne] = E(!1), [Mn, Tn] = E(0), mt = Un(), W = nn(), { containerRef: dt, isDark: Nn } = Xa(), jn = O(
2224
2224
  (w) => {
@@ -1,9 +1,9 @@
1
- import { u as W, K as je, L as Xe, z as $, M as Ge, N as Ze, O as Ye, Q as qe, R as Qe, U as Je, V as et, W as tt, X as nt, Y as rt, Z as at, _ as ot, $ as st, a0 as ye, a1 as it, a2 as Pe, m as ct, a3 as lt, a4 as dt, v as ut, G as ft, H as mt } from "./F0CanvasPanel-WVtVnJRZ.js";
1
+ import { u as W, K as je, L as Xe, z as $, M as Ge, N as Ze, O as Ye, Q as qe, R as Qe, U as Je, V as et, W as tt, X as nt, Y as rt, Z as at, _ as ot, $ as st, a0 as ye, a1 as it, a2 as Ce, m as ct, a3 as lt, a4 as dt, v as ut, E as ft, G as mt } from "./F0CanvasPanel-D25Wuumh.js";
2
2
  import { jsxs as R, jsx as c } from "react/jsx-runtime";
3
3
  import { forwardRef as re, useId as pt, useState as x, useRef as F, useEffect as _, useMemo as Q, useCallback as M } from "react";
4
4
  import { d as H, f as de } from "./tooltip-CrXp1Uaz.js";
5
- import { F as Ce, a as ht, b as gt } from "./VolumeMuted-UfTwt2zn.js";
6
- import { b as vt } from "./MapProvider-Q8EU0u5y.js";
5
+ import { F as Pe, a as ht, b as gt } from "./VolumeMuted-UfTwt2zn.js";
6
+ import { b as vt } from "./CoachmarkProvider-BXGXfIw-.js";
7
7
  function Re(e) {
8
8
  return Array.isArray(e) && e.every(
9
9
  (t) => typeof t == "object" && t !== null && "locale" in t && "value" in t
@@ -201,7 +201,7 @@ const Me = re(
201
201
  )
202
202
  );
203
203
  Me.displayName = "CaptionsFilledIcon";
204
- function Pt({
204
+ function Ct({
205
205
  value: e,
206
206
  onChange: t,
207
207
  containerRef: a
@@ -290,7 +290,7 @@ function Pt({
290
290
  )
291
291
  ] });
292
292
  }
293
- function Ct({
293
+ function Pt({
294
294
  currentTime: e,
295
295
  duration: t,
296
296
  markerTime: a,
@@ -298,10 +298,10 @@ function Ct({
298
298
  onSeek: o
299
299
  }) {
300
300
  const { t: s } = W(), n = F(null), [u, d] = x(!1), [m, g] = x(null), y = t > 0 ? Math.min(1, e / t) : 0, l = a !== void 0 && t > 0 ? Math.min(1, a / t) : 0, f = a !== void 0 && t > 0 && a > 0 && a < t - le && e < a - le, h = (v) => {
301
- const C = n.current;
302
- if (!C)
301
+ const P = n.current;
302
+ if (!P)
303
303
  return 0;
304
- const A = C.getBoundingClientRect();
304
+ const A = P.getBoundingClientRect();
305
305
  return Math.max(0, Math.min(1, (v - A.left) / A.width));
306
306
  }, b = (v) => {
307
307
  t && o(h(v) * t);
@@ -314,24 +314,24 @@ function Ct({
314
314
  }, w = m !== null && r && a !== void 0 && m > l, O = (v) => {
315
315
  if (!t)
316
316
  return;
317
- let C = null;
317
+ let P = null;
318
318
  switch (v.key) {
319
319
  case "ArrowLeft":
320
- C = Math.max(0, e - J);
320
+ P = Math.max(0, e - J);
321
321
  break;
322
322
  case "ArrowRight":
323
- C = Math.min(t, e + J);
323
+ P = Math.min(t, e + J);
324
324
  break;
325
325
  case "Home":
326
- C = 0;
326
+ P = 0;
327
327
  break;
328
328
  case "End":
329
- C = t;
329
+ P = t;
330
330
  break;
331
331
  default:
332
332
  return;
333
333
  }
334
- v.preventDefault(), v.stopPropagation(), o(C);
334
+ v.preventDefault(), v.stopPropagation(), o(P);
335
335
  };
336
336
  return /* @__PURE__ */ R(
337
337
  "div",
@@ -513,7 +513,7 @@ function Dt(e) {
513
513
  return e.audioLanguages > 1 || e.captionLanguages > 1 || e.audioDescriptionLanguages > 1;
514
514
  }
515
515
  function Tt(e, t) {
516
- return t || e === 0 ? Ce : e <= 0.5 ? ht : gt;
516
+ return t || e === 0 ? Pe : e <= 0.5 ? ht : gt;
517
517
  }
518
518
  function Mt({
519
519
  volume: e,
@@ -530,7 +530,7 @@ function Mt({
530
530
  size: "sm",
531
531
  hideLabel: !0,
532
532
  disabled: !0,
533
- icon: Ce,
533
+ icon: Pe,
534
534
  label: s("videoPlayer.noAudio")
535
535
  }
536
536
  ) : /* @__PURE__ */ R("div", { className: "flex items-center gap-1", children: [
@@ -655,9 +655,9 @@ function It({
655
655
  captionLanguages: w,
656
656
  captionLanguage: O,
657
657
  onCaptionLanguageChange: v,
658
- onCaptionsOff: C,
658
+ onCaptionsOff: P,
659
659
  audioDescriptionLanguages: A,
660
- audioDescriptionLanguage: P,
660
+ audioDescriptionLanguage: C,
661
661
  onAudioDescriptionLanguageChange: i,
662
662
  onAudioDescriptionOff: D,
663
663
  onTogglePlay: S,
@@ -702,13 +702,13 @@ function It({
702
702
  variant: "ghost",
703
703
  size: "sm",
704
704
  hideLabel: !0,
705
- icon: e ? it : Pe,
705
+ icon: e ? it : Ce,
706
706
  label: p(e ? "videoPlayer.pause" : "videoPlayer.play"),
707
707
  onClick: S
708
708
  }
709
709
  ),
710
710
  /* @__PURE__ */ c(
711
- Ct,
711
+ Pt,
712
712
  {
713
713
  currentTime: t,
714
714
  duration: a,
@@ -733,7 +733,7 @@ function It({
733
733
  }
734
734
  ),
735
735
  /* @__PURE__ */ c(
736
- Pt,
736
+ Ct,
737
737
  {
738
738
  value: s,
739
739
  onChange: K,
@@ -784,9 +784,9 @@ function It({
784
784
  captionLanguage: O,
785
785
  captionsOn: y,
786
786
  onCaptionLanguageChange: v,
787
- onCaptionsOff: C,
787
+ onCaptionsOff: P,
788
788
  audioDescriptionLanguages: A,
789
- audioDescriptionLanguage: P,
789
+ audioDescriptionLanguage: C,
790
790
  audioDescriptionOn: f,
791
791
  onAudioDescriptionLanguageChange: i,
792
792
  onAudioDescriptionOff: D
@@ -842,29 +842,29 @@ function Nt(e, { enabled: t, describedSrc: a, descriptions: r }) {
842
842
  const f = e.textTracks, h = typeof window < "u" && "speechSynthesis" in window, b = t && !o && h, E = () => {
843
843
  l.current && (l.current = !1, e.play().catch(() => {
844
844
  }));
845
- }, T = (P) => {
845
+ }, T = (C) => {
846
846
  window.speechSynthesis.cancel();
847
- const i = new SpeechSynthesisUtterance(P);
847
+ const i = new SpeechSynthesisUtterance(C);
848
848
  i.onend = E, i.onerror = E, window.speechSynthesis.speak(i);
849
- }, k = /* @__PURE__ */ new WeakSet(), w = [], O = (P) => {
850
- if (P.kind !== xe || (P.mode = "hidden", k.has(P)) || typeof P.addEventListener != "function")
849
+ }, k = /* @__PURE__ */ new WeakSet(), w = [], O = (C) => {
850
+ if (C.kind !== xe || (C.mode = "hidden", k.has(C)) || typeof C.addEventListener != "function")
851
851
  return;
852
- k.add(P);
852
+ k.add(C);
853
853
  const i = () => {
854
- const S = P.activeCues?.[0]?.text || void 0;
854
+ const S = C.activeCues?.[0]?.text || void 0;
855
855
  y(S), b && S && (e.paused || (e.pause(), l.current = !0), T(S));
856
856
  };
857
- P.addEventListener("cuechange", i), w.push(() => P.removeEventListener("cuechange", i));
857
+ C.addEventListener("cuechange", i), w.push(() => C.removeEventListener("cuechange", i));
858
858
  }, v = () => {
859
- let P = !1;
859
+ let C = !1;
860
860
  for (const i of Array.from(f))
861
- i.kind === xe && (r === void 0 && (P = !0), O(i));
862
- d(P);
861
+ i.kind === xe && (r === void 0 && (C = !0), O(i));
862
+ d(C);
863
863
  };
864
864
  v();
865
- const C = typeof f.addEventListener == "function", A = () => v();
866
- return C && (f.addEventListener("addtrack", A), f.addEventListener("removetrack", A)), () => {
867
- C && (f.removeEventListener("addtrack", A), f.removeEventListener("removetrack", A)), w.forEach((P) => P()), h && window.speechSynthesis.cancel(), E();
865
+ const P = typeof f.addEventListener == "function", A = () => v();
866
+ return P && (f.addEventListener("addtrack", A), f.addEventListener("removetrack", A)), () => {
867
+ P && (f.removeEventListener("addtrack", A), f.removeEventListener("removetrack", A)), w.forEach((C) => C()), h && window.speechSynthesis.cancel(), E();
868
868
  };
869
869
  }, [e, t, o, r, s]), Q(
870
870
  () => ({ trackSrc: s, needsCrossOrigin: n, available: m, activeCue: g }),
@@ -1097,7 +1097,7 @@ function Bt(e) {
1097
1097
  }, []), v = M(() => {
1098
1098
  const i = t.current;
1099
1099
  i && (i.muted = !i.muted);
1100
- }, []), C = M((i) => {
1100
+ }, []), P = M((i) => {
1101
1101
  const D = t.current;
1102
1102
  if (!D)
1103
1103
  return;
@@ -1106,7 +1106,7 @@ function Bt(e) {
1106
1106
  }, []), A = M((i) => {
1107
1107
  const D = t.current;
1108
1108
  D && (D.playbackRate = i);
1109
- }, []), P = M((i) => {
1109
+ }, []), C = M((i) => {
1110
1110
  const D = t.current;
1111
1111
  if (!D)
1112
1112
  return;
@@ -1127,9 +1127,9 @@ function Bt(e) {
1127
1127
  setVideoLoaded: u,
1128
1128
  togglePlay: O,
1129
1129
  toggleMute: v,
1130
- setVolume: C,
1130
+ setVolume: P,
1131
1131
  setPlaybackRate: A,
1132
- seekTo: P
1132
+ seekTo: C
1133
1133
  };
1134
1134
  }
1135
1135
  function Ht({
@@ -1176,14 +1176,14 @@ function Wt({
1176
1176
  }) {
1177
1177
  const { t: b } = W(), E = F(null), T = Q(() => ae(e), [e]), [k, w] = x(
1178
1178
  () => Z(T, n)
1179
- ), O = T.some((L) => L.locale === k) ? k : Z(T, n), v = ee(e, O) ?? "", C = Q(
1179
+ ), O = T.some((L) => L.locale === k) ? k : Z(T, n), v = ee(e, O) ?? "", P = Q(
1180
1180
  () => ae(s?.captions),
1181
1181
  [s?.captions]
1182
- ), [A, P] = x(
1183
- () => Z(C, n)
1184
- ), i = C.some(
1182
+ ), [A, C] = x(
1183
+ () => Z(P, n)
1184
+ ), i = P.some(
1185
1185
  (L) => L.locale === A
1186
- ) ? A : Z(C, n), D = ee(s?.captions, i), S = Q(
1186
+ ) ? A : Z(P, n), D = ee(s?.captions, i), S = Q(
1187
1187
  () => ae(s?.descriptions, s?.describedSrc),
1188
1188
  [s?.descriptions, s?.describedSrc]
1189
1189
  ), [B, j] = x(
@@ -1218,7 +1218,7 @@ function Wt({
1218
1218
  N && V(), q((L) => !L);
1219
1219
  }, [N, V]), Fe = M(
1220
1220
  (L) => {
1221
- P(L), I.showing || I.toggle();
1221
+ C(L), I.showing || I.toggle();
1222
1222
  },
1223
1223
  [I]
1224
1224
  ), Oe = M(() => {
@@ -1341,7 +1341,7 @@ function Wt({
1341
1341
  tabIndex: -1,
1342
1342
  onClick: p.togglePlay,
1343
1343
  className: "pointer-events-auto flex size-14 items-center justify-center rounded-full bg-f1-foreground/70 pl-0.5 shadow-[0_2px_8px_rgba(0,0,0,0.45)] transition-transform duration-150 hover:scale-105 motion-reduce:transition-none dark:bg-f1-background/70 [&_svg]:size-7",
1344
- children: /* @__PURE__ */ c(ut, { icon: Pe, size: "lg", color: "#fff" })
1344
+ children: /* @__PURE__ */ c(ut, { icon: Ce, size: "lg", color: "#fff" })
1345
1345
  }
1346
1346
  )
1347
1347
  }
@@ -1384,7 +1384,7 @@ function Wt({
1384
1384
  audioLanguages: T,
1385
1385
  audioLanguage: O,
1386
1386
  onAudioLanguageChange: Ne,
1387
- captionLanguages: C,
1387
+ captionLanguages: P,
1388
1388
  captionLanguage: i,
1389
1389
  onCaptionLanguageChange: Fe,
1390
1390
  onCaptionsOff: Oe,
@@ -1,9 +1,9 @@
1
1
  import { jsx as r, jsxs as n, Fragment as v } from "react/jsx-runtime";
2
2
  import { useState as m, useEffect as E } from "react";
3
- import { u as F, T as S, h as T, S as V, i as A } from "./F0CanvasPanel-WVtVnJRZ.js";
4
- import { d as D } from "./index-DqE_RHOm.js";
3
+ import { u as F, T as S, h as T, S as V, i as A } from "./F0CanvasPanel-D25Wuumh.js";
4
+ import { d as D } from "./F0DocumentViewer-BXlup6dL.js";
5
5
  import { f as L, c as R } from "./sheetPreview-BiccmyTD.js";
6
- import { u as z, D as U } from "./DocumentToolbar-CVrrJ4iA.js";
6
+ import { u as z, D as U } from "./DocumentToolbar-Bp9iCtUO.js";
7
7
  const w = 1e3, _ = 100, $ = ({
8
8
  url: a,
9
9
  filename: f,
@@ -1,7 +1,7 @@
1
1
  import { jsxs as p, jsx as e } from "react/jsx-runtime";
2
2
  import { useState as u, useEffect as x } from "react";
3
- import { u as w, S as y, p as g } from "./F0CanvasPanel-WVtVnJRZ.js";
4
- import { u as k, D as v } from "./DocumentToolbar-CVrrJ4iA.js";
3
+ import { u as w, S as y, p as g } from "./F0CanvasPanel-D25Wuumh.js";
4
+ import { u as k, D as v } from "./DocumentToolbar-Bp9iCtUO.js";
5
5
  const q = 2 * 1024 * 1024, N = [
6
6
  "[&_h1]:mb-3 [&_h1]:mt-6 [&_h1]:text-2xl [&_h1]:font-semibold",
7
7
  "[&_h2]:mb-2 [&_h2]:mt-5 [&_h2]:text-xl [&_h2]:font-semibold",
package/dist/ai.d.ts CHANGED
@@ -1,17 +1,17 @@
1
1
  import { AgentState } from '@livekit/components-react';
2
- import { AlertTagCellValue } from '../../../ui/value-display/types/alertTag';
2
+ import { AlertTagCellValue } from '../../value-display/types/alertTag';
3
3
  import { AlertTagCellValue as AlertTagCellValue_2 } from './types/alertTag';
4
- import { AmountCellValue } from '../../../ui/value-display/types/amount';
4
+ import { AmountCellValue } from '../../value-display/types/amount';
5
5
  import { AmountCellValue as AmountCellValue_2 } from './types/amount';
6
6
  import { AnchorHTMLAttributes } from 'react';
7
- import { AvatarListCellValue } from '../../../ui/value-display/types/avatarList';
7
+ import { AvatarListCellValue } from '../../value-display/types/avatarList';
8
8
  import { AvatarListCellValue as AvatarListCellValue_2 } from './types/avatarList';
9
9
  import * as AvatarPrimitive from '@radix-ui/react-avatar';
10
10
  import { BarSeriesCellValue } from './types/barSeries';
11
11
  import { baseColors } from '@factorialco/f0-core';
12
12
  import { CategoryBarChartCellValue } from './types/categoryBarChart';
13
13
  import { ClassValue } from 'cva';
14
- import { CompanyCellValue } from '../../../ui/value-display/types/company';
14
+ import { CompanyCellValue } from '../../value-display/types/company';
15
15
  import { CompanyCellValue as CompanyCellValue_2 } from './types/company';
16
16
  import { CompanyItemProps } from './types';
17
17
  import { ComponentProps } from 'react';
@@ -20,21 +20,17 @@ import { CompoundCellValue } from './types/compound';
20
20
  import { CountCellValue } from './types/count';
21
21
  import { CountryCellValue } from './types/country';
22
22
  import { CSSProperties } from 'react';
23
- import { DateCellValue } from '../../../ui/value-display/types/date';
23
+ import { DateCellValue } from '../../value-display/types/date';
24
24
  import { DateCellValue as DateCellValue_2 } from './types/date';
25
25
  import { default as default_2 } from 'react';
26
26
  import { DeltaCellValue } from './types/delta';
27
- import { DotTagCellValue } from '../../../ui/value-display/types/dotTag';
27
+ import { DotTagCellValue } from '../../value-display/types/dotTag';
28
28
  import { DotTagCellValue as DotTagCellValue_2 } from './types/dotTag';
29
29
  import { EmployeeItemProps } from './types';
30
- import { F0TagBalanceProps as F0TagBalanceProps_2 } from './types';
31
- import { F0TagCompanyProps } from './types';
32
- import { F0TagPersonProps } from './types';
33
- import { F0TagTeamProps } from './types';
34
30
  import { f1Colors } from '@factorialco/f0-core';
35
- import { FileCellValue } from '../../../ui/value-display/types/file';
31
+ import { FileCellValue } from '../../value-display/types/file';
36
32
  import { FileCellValue as FileCellValue_2 } from './types/file';
37
- import { FolderCellValue } from '../../../ui/value-display/types/folder';
33
+ import { FolderCellValue } from '../../value-display/types/folder';
38
34
  import { FolderCellValue as FolderCellValue_2 } from './types/folder';
39
35
  import { ForwardedRef } from 'react';
40
36
  import { ForwardRefExoticComponent } from 'react';
@@ -47,15 +43,14 @@ import { JSX as JSX_2 } from 'react';
47
43
  import { LocalAudioTrack } from 'livekit-client';
48
44
  import { LongTextCellValue } from './types/longText';
49
45
  import { NamedExoticComponent } from 'react';
50
- import { NumberCellValue } from '../../../ui/value-display/types/number';
46
+ import { NumberCellValue } from '../../value-display/types/number';
51
47
  import { NumberCellValue as NumberCellValue_2 } from './types/number';
52
48
  import { PercentageCellValue } from './types/percentage';
53
- import { PersonCellValue } from '../../../ui/value-display/types/person';
49
+ import { PersonCellValue } from '../../value-display/types/person';
54
50
  import { PersonCellValue as PersonCellValue_2 } from './types/person';
55
- import { ProgressBarCellValue } from '../../../ui/value-display/types/progressBar';
51
+ import { ProgressBarCellValue } from '../../value-display/types/progressBar';
56
52
  import { ProgressBarCellValue as ProgressBarCellValue_2 } from './types/progressBar';
57
53
  import { ProgressSeriesCellValue } from './types/progressSeries';
58
- import { Props as Props_3 } from './types';
59
54
  import * as React_2 from 'react';
60
55
  import { ReactElement } from 'react';
61
56
  import { ReactNode } from 'react';
@@ -64,32 +59,33 @@ import { Ref } from 'react';
64
59
  import { RefAttributes } from 'react';
65
60
  import { RefObject } from 'react';
66
61
  import { RemoteAudioTrack } from 'livekit-client';
67
- import { StatusCellValue } from '../../../ui/value-display/types/status';
62
+ import { StatusCellValue } from '../../value-display/types/status';
68
63
  import { StatusCellValue as StatusCellValue_2 } from './types/status';
69
64
  import { SummaryCellValue } from './types/summary';
70
65
  import { SVGProps } from 'react';
71
66
  import * as SwitchPrimitive from '@radix-ui/react-switch';
72
- import { TagAlertProps } from '../../../f0';
73
- import { TagBalanceProps } from '../../../f0';
74
- import { TagCellValue } from '../../../ui/value-display/types/tag';
67
+ import { TagAlertProps } from '../tags/F0TagAlert';
68
+ import { TagBalanceProps } from '../tags/F0TagBalance';
69
+ import { TagCellValue } from '../../value-display/types/tag';
75
70
  import { TagCellValue as TagCellValue_2 } from './types/tag';
76
- import { TagDotProps } from '../../../f0';
77
- import { TagListCellValue } from '../../../ui/value-display/types/tagList';
71
+ import { TagDotProps } from '../tags/F0TagDot';
72
+ import { TagListCellValue } from '../../value-display/types/tagList';
78
73
  import { TagListCellValue as TagListCellValue_2 } from './types/tagList';
79
- import { TagListProps } from '../../../f0';
80
- import { TagRawProps } from '../../../f0';
81
- import { TagStatusProps } from '../../../f0';
82
- import { TagType } from '../../../f0';
83
- import { TeamCellValue } from '../../../ui/value-display/types/team';
74
+ import { TagListProps } from '../tags/F0TagList';
75
+ import { TagRawProps } from '../tags/F0TagRaw';
76
+ import { TagStatusProps } from '../tags/F0TagStatus';
77
+ import { TagType } from '../tags/F0TagList';
78
+ import { TeamCellValue } from '../../value-display/types/team';
84
79
  import { TeamCellValue as TeamCellValue_2 } from './types/team';
85
80
  import { TeamItemProps } from './types';
86
- import { TextCellValue } from '../../../ui/value-display/types/text';
81
+ import { TextCellValue } from '../../value-display/types/text';
87
82
  import { TextCellValue as TextCellValue_2 } from './types/text';
88
83
  import { TrackReferenceOrPlaceholder } from '@livekit/components-react';
89
- import { ValueDisplayRendererContext } from '../../../ui/value-display';
84
+ import { ValueDisplayRendererContext } from '../../value-display';
90
85
  import { VariantProps } from 'cva';
91
- import { WithDataTestIdReturnType } from '../../lib/data-testid';
92
- import { WithDataTestIdReturnType as WithDataTestIdReturnType_2 } from '../../../lib/data-testid';
86
+ import { WithDataTestIdReturnType } from '../lib/data-testid/data-testid';
87
+ import { WithDataTestIdReturnType as WithDataTestIdReturnType_2 } from '../../lib/data-testid/data-testid';
88
+ import { WithDataTestIdReturnType as WithDataTestIdReturnType_3 } from '../../../../elements/lib/data-testid/data-testid';
93
89
 
94
90
  declare type ActionBaseProps = ActionCommonProps & DataAttributes;
95
91
 
@@ -4609,7 +4605,7 @@ export declare type F0AiChatWelcomeCard = {
4609
4605
  onClick?: () => void;
4610
4606
  };
4611
4607
 
4612
- export declare const F0AiInsightCard: WithDataTestIdReturnType_2<ForwardRefExoticComponent<F0AiInsightCardPublicProps & RefAttributes<HTMLDivElement>> & {
4608
+ export declare const F0AiInsightCard: WithDataTestIdReturnType_3<ForwardRefExoticComponent<F0AiInsightCardPublicProps & RefAttributes<HTMLDivElement>> & {
4613
4609
  Skeleton: () => JSX_2.Element;
4614
4610
  }>;
4615
4611
 
@@ -5443,9 +5439,9 @@ export declare type F0OneSwitchProps = React.ComponentPropsWithoutRef<typeof Swi
5443
5439
  onCheckedChange?: (open: boolean) => void;
5444
5440
  };
5445
5441
 
5446
- declare const F0TagAlert: WithDataTestIdReturnType_2<ForwardRefExoticComponent<Props_3 & RefAttributes<HTMLDivElement>>>;
5442
+ declare const F0TagAlert: WithDataTestIdReturnType_2<ForwardRefExoticComponent<Props & RefAttributes<HTMLDivElement>>>;
5447
5443
 
5448
- declare const F0TagBalance: WithDataTestIdReturnType_2<ForwardRefExoticComponent<F0TagBalanceProps_2 & RefAttributes<HTMLDivElement>>>;
5444
+ declare const F0TagBalance: WithDataTestIdReturnType_2<ForwardRefExoticComponent<F0TagBalanceProps & RefAttributes<HTMLDivElement>>>;
5449
5445
 
5450
5446
  declare type F0TagBalanceProps = {
5451
5447
  /**
@@ -5479,6 +5475,11 @@ declare type F0TagBalanceProps = {
5479
5475
 
5480
5476
  declare const F0TagCompany: WithDataTestIdReturnType_2<ForwardRefExoticComponent<F0TagCompanyProps & RefAttributes<HTMLDivElement>>>;
5481
5477
 
5478
+ declare interface F0TagCompanyProps {
5479
+ name: string;
5480
+ src?: string;
5481
+ }
5482
+
5482
5483
  declare type F0TagListProps<T extends TagType_2> = {
5483
5484
  /**
5484
5485
  * The type of tags to display. Only one type can be used at a time.
@@ -5501,6 +5502,12 @@ declare type F0TagListProps<T extends TagType_2> = {
5501
5502
 
5502
5503
  declare const F0TagPerson: WithDataTestIdReturnType_2<ForwardRefExoticComponent<F0TagPersonProps & RefAttributes<HTMLDivElement>>>;
5503
5504
 
5505
+ declare type F0TagPersonProps = {
5506
+ src?: string;
5507
+ name: string;
5508
+ deactivated?: boolean;
5509
+ };
5510
+
5504
5511
  declare type F0TagRawProps = {
5505
5512
  /**
5506
5513
  * The label to display in the tag or used for accessible text
@@ -5544,6 +5551,11 @@ declare interface F0TagStatusProps {
5544
5551
 
5545
5552
  declare const F0TagTeam: WithDataTestIdReturnType_2<ForwardRefExoticComponent<F0TagTeamProps & RefAttributes<HTMLDivElement>>>;
5546
5553
 
5554
+ declare interface F0TagTeamProps {
5555
+ name: string;
5556
+ src?: string;
5557
+ }
5558
+
5547
5559
  /**
5548
5560
  * Loose message shape used inside f0. Mirrors the CopilotKit `Message`
5549
5561
  * shape so adapters (factorial, mock runtime) can map back and forth
@@ -6803,9 +6815,9 @@ declare namespace Calendar {
6803
6815
 
6804
6816
  declare module "@tiptap/core" {
6805
6817
  interface Commands<ReturnType> {
6806
- aiBlock: {
6807
- insertAIBlock: (data: AIBlockData, config: AIBlockConfig) => ReturnType;
6808
- executeAIAction: (actionType: string, config: AIBlockConfig) => ReturnType;
6818
+ fontSize: {
6819
+ setFontSize: (fontSize: string) => ReturnType;
6820
+ unsetFontSize: () => ReturnType;
6809
6821
  };
6810
6822
  }
6811
6823
  }
@@ -6813,11 +6825,9 @@ declare module "@tiptap/core" {
6813
6825
 
6814
6826
  declare module "@tiptap/core" {
6815
6827
  interface Commands<ReturnType> {
6816
- enhanceHighlight: {
6817
- setEnhanceHighlight: (from: number, to: number, options?: {
6818
- placeholder?: string;
6819
- }) => ReturnType;
6820
- clearEnhanceHighlight: () => ReturnType;
6828
+ aiBlock: {
6829
+ insertAIBlock: (data: AIBlockData, config: AIBlockConfig) => ReturnType;
6830
+ executeAIAction: (actionType: string, config: AIBlockConfig) => ReturnType;
6821
6831
  };
6822
6832
  }
6823
6833
  }
@@ -6825,9 +6835,10 @@ declare module "@tiptap/core" {
6825
6835
 
6826
6836
  declare module "@tiptap/core" {
6827
6837
  interface Commands<ReturnType> {
6828
- fontSize: {
6829
- setFontSize: (fontSize: string) => ReturnType;
6830
- unsetFontSize: () => ReturnType;
6838
+ indent: {
6839
+ setIndent: (level: number) => ReturnType;
6840
+ unsetIndent: () => ReturnType;
6841
+ outdent: () => ReturnType;
6831
6842
  };
6832
6843
  }
6833
6844
  }
@@ -6835,10 +6846,11 @@ declare module "@tiptap/core" {
6835
6846
 
6836
6847
  declare module "@tiptap/core" {
6837
6848
  interface Commands<ReturnType> {
6838
- indent: {
6839
- setIndent: (level: number) => ReturnType;
6840
- unsetIndent: () => ReturnType;
6841
- outdent: () => ReturnType;
6849
+ enhanceHighlight: {
6850
+ setEnhanceHighlight: (from: number, to: number, options?: {
6851
+ placeholder?: string;
6852
+ }) => ReturnType;
6853
+ clearEnhanceHighlight: () => ReturnType;
6842
6854
  };
6843
6855
  }
6844
6856
  }
package/dist/ai.js CHANGED
@@ -1,6 +1,6 @@
1
- import { C as e, D as r, c as t, F as i, a as o, f as n, g as F, d as C, e as l, I as A, P as d, b as u, u as m } from "./F0CanvasPanel-WVtVnJRZ.js";
1
+ import { C as e, D as r, c as t, F as i, a as o, f as n, g as F, d as C, e as l, I as A, P as d, b as u, u as m } from "./F0CanvasPanel-D25Wuumh.js";
2
2
  import { defaultTranslations as c } from "./i18n-provider-defaults.js";
3
- import { A as g, C as p, t as v, s as I, v as T, y as S, B as f, l as y, i as x, q as b, E as k, G as B, p as H, r as L, j as M, e as O, g as V, k as w, F as D, T as z, w as E, h as G, a as j, n as q, z as R, m as U, o as J, D as K, b as N, f as Q, x as W, c as X, d as Y, u as Z } from "./F0AiProcessingOverlay-BDqqztvk.js";
3
+ import { A as g, C as p, t as v, s as I, v as T, y as S, B as f, l as y, i as x, q as b, E as k, G as B, p as H, r as L, j as M, e as O, g as V, k as w, F as D, T as z, w as E, h as G, a as j, n as q, z as R, m as U, o as J, D as K, b as N, f as Q, x as W, c as X, d as Y, u as Z } from "./F0AiProcessingOverlay-SFLE4xoa.js";
4
4
  export {
5
5
  g as AiChatTranslationsProvider,
6
6
  e as ChatSpinner,