@factorialco/f0-react 7.12.0 → 7.14.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 (42) hide show
  1. package/dist/{ChatPdfThumbnail-DLaIYO-I.js → ChatPdfThumbnail-C1UcYl1H.js} +1 -1
  2. package/dist/{ChatPostComposerDialog-4FOpj4qy.js → ChatPostComposerDialog-BtRvJU6I.js} +3 -3
  3. package/dist/{DocumentToolbar-l7PxkK4o.js → DocumentToolbar-CV9lcCCY.js} +2 -2
  4. package/dist/{DocxViewer-CBiKF5rZ.js → DocxViewer-rl6xFuWg.js} +2 -2
  5. package/dist/{F0AiProcessingOverlay-BYUYtCeT.js → F0AiProcessingOverlay-DJxrxlhM.js} +1385 -1577
  6. package/dist/{F0CanvasPanel-B52A84Yd.js → F0CanvasPanel-Cd27SePP.js} +14105 -13839
  7. package/dist/{F0VideoPlayer-CYkJgfvF.js → F0VideoPlayer-sGOAl4BZ.js} +34 -34
  8. package/dist/{LocationMap-P9l5SS9_.js → LocationMap-B-e88fW6.js} +1 -1
  9. package/dist/{CoachmarkProvider-C-z3xlg6.js → MapProvider-BJSTrUhF.js} +4550 -4542
  10. package/dist/{SheetViewer-DiM7dzkD.js → SheetViewer-sSCtCF-k.js} +2 -2
  11. package/dist/{TextViewer-6MkpYRV9.js → TextViewer-J0dGSrMy.js} +2 -2
  12. package/dist/{VolumeMuted-DKLKhxyd.js → VolumeMuted-UfTwt2zn.js} +6 -26
  13. package/dist/ai.d.ts +98 -1
  14. package/dist/ai.js +2 -2
  15. package/dist/component-status.js +2 -2
  16. package/dist/experimental-Bp1BeeE5.js +31861 -0
  17. package/dist/experimental.css +1 -1
  18. package/dist/experimental.d.ts +1296 -12
  19. package/dist/experimental.js +286 -242
  20. package/dist/f0.d.ts +101 -1
  21. package/dist/f0.js +3224 -3223
  22. package/dist/i18n-provider-defaults.d.ts +84 -0
  23. package/dist/i18n-provider-defaults.js +92 -0
  24. package/dist/{index-iNjzeXPY.js → index--lL16aZU.js} +5 -5
  25. package/dist/index-D37fIjbv.js +4 -0
  26. package/dist/index-Dq-WsNBD.js +255 -0
  27. package/dist/index.css +1 -1
  28. package/dist/index2.css +1 -0
  29. package/dist/maplibre-gl-BFrhpbuU.js +24631 -0
  30. package/dist/{pdfWorker-5KFe_TGk.js → pdfWorker-D4wyA0qi.js} +3 -3
  31. package/dist/styles.css +1 -1
  32. package/dist/{tooltip-CMBdJvJA.js → tooltip-BElsa4MF.js} +415 -407
  33. package/icons/app/Floating.d.ts +4 -0
  34. package/icons/app/Floating.d.ts.map +1 -0
  35. package/icons/app/Floating.js +5 -0
  36. package/icons/app/index.d.ts +4 -3
  37. package/icons/app/index.d.ts.map +1 -1
  38. package/icons/app/index.js +4 -3
  39. package/package.json +14 -4
  40. package/dist/experimental-DtqXX6Z2.js +0 -53537
  41. package/dist/index-YxKgC6R7.js +0 -4
  42. /package/dist/{CoachmarkProvider.css → MapProvider.css} +0 -0
@@ -1,8 +1,8 @@
1
- import { u as W, v as je, x as Ge, n as $, y as Xe, z as Ze, A as qe, B as Ye, E as Je, G as Qe, H as et, J as tt, K as nt, L as rt, M as at, N as ot, O as ye, Q as st, R as Ce, l as it, U as ct, V as lt, W as ut, w as dt, s as ft } from "./F0CanvasPanel-B52A84Yd.js";
1
+ import { u as W, x as je, y as Xe, o as $, z as Ge, A as Ze, B as qe, E as Ye, G as Je, H as Qe, J as et, K as tt, L as nt, M as rt, N as at, O as ot, Q as st, R as ye, U as it, V as Ce, l as ct, W as lt, X as ut, Y as dt, w as ft, t as mt } from "./F0CanvasPanel-Cd27SePP.js";
2
2
  import { jsxs as S, jsx as c } from "react/jsx-runtime";
3
- import { forwardRef as re, useId as mt, useState as x, useRef as F, useEffect as N, useMemo as J, useCallback as T } from "react";
4
- import { d as H, f as ue } from "./tooltip-CMBdJvJA.js";
5
- import { F as pt, a as Pe, b as ht, c as gt } from "./VolumeMuted-DKLKhxyd.js";
3
+ import { forwardRef as re, useId as pt, useState as x, useRef as F, useEffect as N, useMemo as J, useCallback as T } from "react";
4
+ import { d as H, f as ue } from "./tooltip-BElsa4MF.js";
5
+ import { F as Pe, a as ht, b as gt } from "./VolumeMuted-UfTwt2zn.js";
6
6
  function Se(e) {
7
7
  return Array.isArray(e) && e.every(
8
8
  (t) => typeof t == "object" && t !== null && "locale" in t && "value" in t
@@ -100,7 +100,7 @@ const De = {
100
100
  ));
101
101
  de.displayName = "AudioDescriptionLineIcon";
102
102
  const Te = re(({ animate: e, ...t }, a) => {
103
- const n = `ad-mask-${mt().replace(/:/g, "")}`;
103
+ const n = `ad-mask-${pt().replace(/:/g, "")}`;
104
104
  return /* @__PURE__ */ S(
105
105
  "svg",
106
106
  {
@@ -234,7 +234,7 @@ function Et({
234
234
  d.preventDefault(), u[g]?.focus();
235
235
  };
236
236
  return /* @__PURE__ */ S(je, { open: o, onOpenChange: s, children: [
237
- /* @__PURE__ */ c(Ge, { asChild: !0, children: /* @__PURE__ */ c(
237
+ /* @__PURE__ */ c(Xe, { asChild: !0, children: /* @__PURE__ */ c(
238
238
  $,
239
239
  {
240
240
  variant: "ghost",
@@ -246,7 +246,7 @@ function Et({
246
246
  }
247
247
  ) }),
248
248
  /* @__PURE__ */ c(
249
- Xe,
249
+ Ge,
250
250
  {
251
251
  container: a.current,
252
252
  side: "top",
@@ -400,14 +400,14 @@ function ce({
400
400
  offLabel: u
401
401
  }) {
402
402
  const m = d !== void 0, g = n.find((l) => l.locale === o), y = m && !r ? u : g ? Le(g) : u;
403
- return /* @__PURE__ */ S(et, { children: [
404
- /* @__PURE__ */ S(tt, { className: Pt, children: [
405
- /* @__PURE__ */ c(nt, { icon: e }),
403
+ return /* @__PURE__ */ S(tt, { children: [
404
+ /* @__PURE__ */ S(nt, { className: Pt, children: [
405
+ /* @__PURE__ */ c(rt, { icon: e }),
406
406
  /* @__PURE__ */ c("span", { className: "flex-1", children: t }),
407
407
  /* @__PURE__ */ c("span", { className: "text-f1-foreground-secondary", children: y })
408
408
  ] }),
409
- /* @__PURE__ */ c(rt, { container: a ?? void 0, children: /* @__PURE__ */ c(at, { className: Me, children: /* @__PURE__ */ S(
410
- ot,
409
+ /* @__PURE__ */ c(at, { container: a ?? void 0, children: /* @__PURE__ */ c(ot, { className: Me, children: /* @__PURE__ */ S(
410
+ st,
411
411
  {
412
412
  value: m ? r ? o : ie : o,
413
413
  onValueChange: (l) => m && l === ie ? d() : s(l),
@@ -451,12 +451,12 @@ function St({
451
451
  variant: "ghost",
452
452
  size: "sm",
453
453
  hideLabel: !0,
454
- icon: pt,
454
+ icon: Je,
455
455
  label: h("videoPlayer.settings")
456
456
  }
457
457
  ) }),
458
458
  /* @__PURE__ */ S(
459
- Je,
459
+ Qe,
460
460
  {
461
461
  container: b,
462
462
  side: "top",
@@ -466,7 +466,7 @@ function St({
466
466
  t.length > 1 ? /* @__PURE__ */ c(
467
467
  ce,
468
468
  {
469
- icon: Qe,
469
+ icon: et,
470
470
  label: h("videoPlayer.audio"),
471
471
  container: b,
472
472
  options: t,
@@ -663,11 +663,11 @@ function Mt({
663
663
  onToggleMute: B,
664
664
  onVolumeChange: j,
665
665
  onPlaybackRateChange: K,
666
- onToggleFullscreen: G,
666
+ onToggleFullscreen: X,
667
667
  onToggleCaptions: _,
668
668
  onToggleAudioDescription: U,
669
669
  onSeek: Y,
670
- download: X
670
+ download: G
671
671
  }) {
672
672
  const { t: p } = W(), I = g && w.length <= 1, z = l && M.length <= 1, V = Rt({
673
673
  audioLanguages: E.length,
@@ -701,7 +701,7 @@ function Mt({
701
701
  variant: "ghost",
702
702
  size: "sm",
703
703
  hideLabel: !0,
704
- icon: e ? st : Ce,
704
+ icon: e ? it : Ce,
705
705
  label: p(e ? "videoPlayer.pause" : "videoPlayer.play"),
706
706
  onClick: R
707
707
  }
@@ -791,15 +791,15 @@ function Mt({
791
791
  onAudioDescriptionOff: D
792
792
  }
793
793
  ) : null,
794
- X ? /* @__PURE__ */ c(
794
+ G ? /* @__PURE__ */ c(
795
795
  $,
796
796
  {
797
797
  variant: "ghost",
798
798
  size: "sm",
799
799
  hideLabel: !0,
800
- icon: it,
801
- label: X.label,
802
- onClick: X.onClick
800
+ icon: ct,
801
+ label: G.label,
802
+ onClick: G.onClick
803
803
  }
804
804
  ) : null,
805
805
  /* @__PURE__ */ c(
@@ -808,9 +808,9 @@ function Mt({
808
808
  variant: "ghost",
809
809
  size: "sm",
810
810
  hideLabel: !0,
811
- icon: r ? ct : lt,
811
+ icon: r ? lt : ut,
812
812
  label: p(r ? "videoPlayer.exitFullscreen" : "videoPlayer.enterFullscreen"),
813
- onClick: G
813
+ onClick: X
814
814
  }
815
815
  )
816
816
  ]
@@ -1101,14 +1101,14 @@ function Bt(e) {
1101
1101
  return;
1102
1102
  const D = () => m(!0), R = () => m(!1), B = () => m(!1), j = () => {
1103
1103
  b(i.volume), A(i.muted);
1104
- }, K = () => f(i.duration || 0), G = () => {
1104
+ }, K = () => f(i.duration || 0), X = () => {
1105
1105
  xt(i.playbackRate) && w(i.playbackRate);
1106
1106
  }, _ = () => {
1107
1107
  const U = performance.now();
1108
1108
  U - o.current >= bt && (o.current = U, y(i.currentTime));
1109
1109
  };
1110
- return i.addEventListener("play", D), i.addEventListener("pause", R), i.addEventListener("ended", B), i.addEventListener("volumechange", j), i.addEventListener("loadedmetadata", K), i.addEventListener("ratechange", G), i.addEventListener("timeupdate", _), i.readyState >= 1 && i.duration && f(i.duration), () => {
1111
- i.removeEventListener("play", D), i.removeEventListener("pause", R), i.removeEventListener("ended", B), i.removeEventListener("volumechange", j), i.removeEventListener("loadedmetadata", K), i.removeEventListener("ratechange", G), i.removeEventListener("timeupdate", _);
1110
+ return i.addEventListener("play", D), i.addEventListener("pause", R), i.addEventListener("ended", B), i.addEventListener("volumechange", j), i.addEventListener("loadedmetadata", K), i.addEventListener("ratechange", X), i.addEventListener("timeupdate", _), i.readyState >= 1 && i.duration && f(i.duration), () => {
1111
+ i.removeEventListener("play", D), i.removeEventListener("pause", R), i.removeEventListener("ended", B), i.removeEventListener("volumechange", j), i.removeEventListener("loadedmetadata", K), i.removeEventListener("ratechange", X), i.removeEventListener("timeupdate", _);
1112
1112
  };
1113
1113
  }, [a]);
1114
1114
  const O = T(() => {
@@ -1211,16 +1211,16 @@ function Wt({
1211
1211
  () => Z(R, r)
1212
1212
  ), K = R.some(
1213
1213
  (L) => L.locale === B
1214
- ) ? B : Z(R, r), G = ee(
1214
+ ) ? B : Z(R, r), X = ee(
1215
1215
  s?.descriptions,
1216
1216
  K
1217
1217
  ), _ = ee(
1218
1218
  s?.describedSrc,
1219
1219
  K
1220
- ), [U, Y] = x(!1), X = U && _ ? _ : v, p = Bt(X), I = Ut(p.videoElement, D), z = It(p.videoElement, {
1220
+ ), [U, Y] = x(!1), G = U && _ ? _ : v, p = Bt(G), I = Ut(p.videoElement, D), z = It(p.videoElement, {
1221
1221
  enabled: U,
1222
1222
  describedSrc: _,
1223
- descriptions: G
1223
+ descriptions: X
1224
1224
  }), V = T(() => {
1225
1225
  const L = p.videoRef.current;
1226
1226
  if (!L)
@@ -1315,7 +1315,7 @@ function Wt({
1315
1315
  draggable: !1,
1316
1316
  onContextMenu: Be,
1317
1317
  onClick: p.togglePlay,
1318
- src: X,
1318
+ src: G,
1319
1319
  poster: t,
1320
1320
  crossOrigin: I.needsCrossOrigin || z.needsCrossOrigin ? "anonymous" : void 0,
1321
1321
  onLoadedData: () => p.setVideoLoaded(!0),
@@ -1362,7 +1362,7 @@ function Wt({
1362
1362
  tabIndex: -1,
1363
1363
  onClick: p.togglePlay,
1364
1364
  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",
1365
- children: /* @__PURE__ */ c(ut, { icon: Ce, size: "lg", color: "#fff" })
1365
+ children: /* @__PURE__ */ c(dt, { icon: Ce, size: "lg", color: "#fff" })
1366
1366
  }
1367
1367
  )
1368
1368
  }
@@ -1430,8 +1430,8 @@ function Wt({
1430
1430
  }
1431
1431
  );
1432
1432
  }
1433
- const Yt = dt(
1434
- ft("F0VideoPlayer", Wt)
1433
+ const Yt = ft(
1434
+ mt("F0VideoPlayer", Wt)
1435
1435
  );
1436
1436
  export {
1437
1437
  Yt as F,
@@ -1,5 +1,5 @@
1
1
  import { jsx as p } from "react/jsx-runtime";
2
- import { m } from "./experimental-DtqXX6Z2.js";
2
+ import { m } from "./maplibre-gl-BFrhpbuU.js";
3
3
  import { useRef as l, useEffect as i, useState as b } from "react";
4
4
  const k = "https://tiles.openfreemap.org/styles/positron", y = "https://tiles.openfreemap.org/styles/dark", R = 15, d = (n) => {
5
5
  const [c, s] = b(!1);