@factorialco/f0-react 10.6.1 → 10.8.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 (45) hide show
  1. package/dist/{ChatPostComposerDialog-BeJZv7tT.js → ChatPostComposerDialog-Fz7bdV_-.js} +3 -3
  2. package/dist/{CoachmarkProvider-DVF40v2q.js → CoachmarkProvider-DqNqwEPd.js} +21880 -21945
  3. package/dist/{DocumentToolbar-rCarM1oo.js → DocumentToolbar-B4aCipER.js} +5 -5
  4. package/dist/{ChatDocxThumbnail-DdI_ITWn.js → DocxThumbnail-kHTNnwW0.js} +1 -1
  5. package/dist/{DocxViewer-C1dP05wX.js → DocxViewer-BOdYordL.js} +2 -2
  6. package/dist/{F0AiProcessingOverlay-CrvPHV1G.js → F0AiProcessingOverlay-BTW13lnQ.js} +1682 -2192
  7. package/dist/{F0Box-D0fWIRgc.js → F0Box-CYL5_Zhb.js} +1 -1
  8. package/dist/{F0CanvasPanel-C7vHU_iJ.js → F0CanvasPanel-BcBFycU-.js} +9869 -7037
  9. package/dist/F0DocumentViewer-BqRsz00c.js +3 -0
  10. package/dist/{F0DocumentViewer-BrxSgrT8.js → F0DocumentViewer-CWZNde9w.js} +8 -8
  11. package/dist/{F0Map-DC_Mplnx.js → F0Map-4fqLL5gP.js} +22 -22
  12. package/dist/{F0Select-CovHF33V.js → F0Select-By_QpX1S.js} +2 -2
  13. package/dist/{F0VideoPlayer-NjaAU0Gm.js → F0VideoPlayer-CTsCZ4u5.js} +105 -105
  14. package/dist/F0VideoPlayer-DEpDxvjC.js +1 -0
  15. package/dist/{Map-D6mJxw2a.js → Map-B_fzR9ly.js} +29 -29
  16. package/dist/{ChatPdfThumbnail-adL3N5Xz.js → PdfThumbnail-BLNfQ1EH.js} +2 -2
  17. package/dist/{ChatSheetThumbnail-BKCy7BGq.js → SheetThumbnail-HtGezPp4.js} +1 -1
  18. package/dist/{SheetViewer-8ZWEuOLq.js → SheetViewer-BhZTOpb4.js} +4 -4
  19. package/dist/{ChatTextThumbnail-Ct32PcXO.js → TextThumbnail-X04JgaNI.js} +1 -1
  20. package/dist/{TextViewer-B00Rmqc7.js → TextViewer-B1eR_7q4.js} +2 -2
  21. package/dist/ai.d.ts +4 -4
  22. package/dist/ai.js +5 -5
  23. package/dist/component-status.js +51 -7
  24. package/dist/{dist-7YY6sRd4.js → dist-CUsub1Mu.js} +1 -1
  25. package/dist/dist-Dt-cTb6D.js +43 -0
  26. package/dist/experimental.d.ts +2 -2
  27. package/dist/experimental.js +8554 -10320
  28. package/dist/{exports-B1AxzHkB.d.ts → exports-cU26nMV5.d.ts} +449 -16
  29. package/dist/f0.d.ts +5 -5
  30. package/dist/f0.js +2034 -2034
  31. package/dist/{i18n-provider-defaults-DliS9uYl.js → i18n-provider-defaults-BA2_-hRH.js} +2 -0
  32. package/dist/{i18n-provider-defaults-DiJM3DSg.d.ts → i18n-provider-defaults-m88KkXdP.d.ts} +2 -0
  33. package/dist/i18n-provider-defaults.d.ts +1 -1
  34. package/dist/i18n-provider-defaults.js +1 -1
  35. package/dist/{index-DQo_UZ7M.d.ts → index-BDEEuyti.d.ts} +3 -3
  36. package/dist/{index-CHpMOnlX.d.ts → index-BftFpZQm.d.ts} +95 -4
  37. package/dist/{maplibre-C8TCdToL.js → maplibre-NpfvETJP.js} +1 -1
  38. package/dist/{pdfWorker-8f29nzGo.js → pdfWorker-CA8jPCRh.js} +2 -2
  39. package/dist/{popover-B2hEEubt.js → popover-B7fqB9lu.js} +1 -1
  40. package/dist/styles.css +1 -1
  41. package/dist/{useData-DjJsB0qa.js → useData-CAl9SKtE.js} +1 -1
  42. package/dist/useFullscreen-CNwpzjpz.js +23 -0
  43. package/package.json +1 -1
  44. package/dist/F0DocumentViewer-Crhq3XFQ.js +0 -3
  45. package/dist/F0VideoPlayer-C0kP3yFk.js +0 -1
@@ -0,0 +1,3 @@
1
+ import "./pdfWorker-CA8jPCRh.js";
2
+ export { t as F0DocumentViewer } from "./F0DocumentViewer-CWZNde9w.js";
3
+ import "./f0.js";
@@ -1,9 +1,9 @@
1
- import { ar as e, b as t, ln as n, rn as r, rr as i, zt as a } from "./popover-B2hEEubt.js";
1
+ import { ar as e, b as t, ln as n, rn as r, rr as i, zt as a } from "./popover-B7fqB9lu.js";
2
2
  import { I as o } from "./tooltip-TOvfXq9F.js";
3
- import { Ao as s, Mi as c, Ta as l, va as u } from "./F0CanvasPanel-C7vHU_iJ.js";
4
- import { W as d, q as f } from "./useData-DjJsB0qa.js";
5
- import { Er as p, dr as m, t as h } from "./F0Select-CovHF33V.js";
6
- import { i as g, n as _, r as v } from "./pdfWorker-8f29nzGo.js";
3
+ import { Es as s, Oa as c, mo as l, xo as u } from "./F0CanvasPanel-BcBFycU-.js";
4
+ import { W as d, q as f } from "./useData-CAl9SKtE.js";
5
+ import { Er as p, dr as m, t as h } from "./F0Select-By_QpX1S.js";
6
+ import { i as g, n as _, r as v } from "./pdfWorker-CA8jPCRh.js";
7
7
  import { Suspense as y, forwardRef as b, lazy as x, useCallback as S, useEffect as C, useMemo as w, useRef as T, useState as E } from "react";
8
8
  import { jsx as D, jsxs as O } from "react/jsx-runtime";
9
9
  import './F0DocumentViewer.css';//#region src/addons/documents/F0DocumentViewer/components/PdfLoadingState.tsx
@@ -87,12 +87,12 @@ var k = ({ label: e, width: t, height: r }) => /* @__PURE__ */ D("div", {
87
87
  x ? /* @__PURE__ */ D(A, {
88
88
  label: k.rotate,
89
89
  onClick: S,
90
- icon: u
90
+ icon: l
91
91
  }) : null,
92
92
  /* @__PURE__ */ D(A, {
93
93
  label: k.print,
94
94
  onClick: C,
95
- icon: l
95
+ icon: u
96
96
  }),
97
97
  /* @__PURE__ */ D(A, {
98
98
  label: k.download,
@@ -183,7 +183,7 @@ var k = ({ label: e, width: t, height: r }) => /* @__PURE__ */ D("div", {
183
183
  //#endregion
184
184
  //#region src/addons/documents/F0DocumentViewer/F0DocumentViewer.tsx
185
185
  _();
186
- var z = x(() => import("./SheetViewer-8ZWEuOLq.js")), B = x(() => import("./DocxViewer-C1dP05wX.js")), V = x(() => import("./TextViewer-B00Rmqc7.js")), se = 48, ce = 150, H = b((e, t) => {
186
+ var z = x(() => import("./SheetViewer-BhZTOpb4.js")), B = x(() => import("./DocxViewer-BOdYordL.js")), V = x(() => import("./TextViewer-B1eR_7q4.js")), se = 48, ce = 150, H = b((e, t) => {
187
187
  let { kind: r = "pdf", mimeType: i, toolbar: a = "top", ...o } = e;
188
188
  if (r === "pdf") return /* @__PURE__ */ D(U, {
189
189
  ref: t,
@@ -1,9 +1,9 @@
1
- import { a as e, ai as t, o as n } from "./CoachmarkProvider-DVF40v2q.js";
2
- import { Ht as r, Lt as i, Mt as a, Zn as o, b as s, gn as c, in as l, ir as u, mn as d, rn as f } from "./popover-B2hEEubt.js";
1
+ import { a as e, o as t, ri as n } from "./CoachmarkProvider-DqNqwEPd.js";
2
+ import { Ht as r, Lt as i, Mt as a, Zn as o, b as s, gn as c, in as l, ir as u, mn as d, rn as f } from "./popover-B7fqB9lu.js";
3
3
  import { I as p, L as m } from "./tooltip-TOvfXq9F.js";
4
- import { n as h, t as g } from "./F0Box-D0fWIRgc.js";
5
- import { La as _, oa as v, vo as y } from "./F0CanvasPanel-C7vHU_iJ.js";
6
- import { J as b, N as x, W as S, x as ee } from "./useData-DjJsB0qa.js";
4
+ import { n as h, t as g } from "./F0Box-CYL5_Zhb.js";
5
+ import { No as _, ms as v, no as y } from "./F0CanvasPanel-BcBFycU-.js";
6
+ import { J as b, N as x, W as S, x as ee } from "./useData-CAl9SKtE.js";
7
7
  import { n as te, t as C } from "./dist-CSP_0yKt.js";
8
8
  import { createContext as ne, forwardRef as w, useCallback as T, useContext as re, useEffect as E, useId as ie, useImperativeHandle as ae, useLayoutEffect as oe, useMemo as D, useRef as O, useState as k } from "react";
9
9
  import { Fragment as se, jsx as A, jsxs as j } from "react/jsx-runtime";
@@ -143,8 +143,8 @@ var ce = (e, t) => ({
143
143
  }, xe = (e) => be[e], Se = 5.6, Ce = 1.5, we = () => {
144
144
  let e = be.xl;
145
145
  return -(e.d - e.caretOverlap + e.caretH + Se + Ce) + 3;
146
- }, I = "hsl(var(--white-100))", L = w(function(e, n) {
147
- let { size: r = "md", selected: i = !1, collapsed: a = !1, label: s, showLabel: d = !0, labelPlacement: f = "right", onClick: h, ariaLabel: g, presentational: _ = !1, dataTestId: v, className: y } = e, b = e.variant ?? "color", S = be[i ? "xl" : r], te = !!h, C = b === "color" || b === "icon" || b === "letter", ne = b === "person" && "firstName" in e ? e.firstName + e.lastName : (b === "team" || b === "company") && "name" in e ? e.name : null, w = C ? e.color ?? "radical" : ne ? b === "person" && "src" in e && e.src ? "grey" : x(ne) ?? "grey" : "neutral", T = t(), re = i ? 32 : {
146
+ }, I = "hsl(var(--white-100))", L = w(function(e, t) {
147
+ let { size: r = "md", selected: i = !1, collapsed: a = !1, label: s, showLabel: d = !0, labelPlacement: f = "right", onClick: h, ariaLabel: g, presentational: _ = !1, dataTestId: v, className: y } = e, b = e.variant ?? "color", S = be[i ? "xl" : r], te = !!h, C = b === "color" || b === "icon" || b === "letter", ne = b === "person" && "firstName" in e ? e.firstName + e.lastName : (b === "team" || b === "company") && "name" in e ? e.name : null, w = C ? e.color ?? "radical" : ne ? b === "person" && "src" in e && e.src ? "grey" : x(ne) ?? "grey" : "neutral", T = n(), re = i ? 32 : {
148
148
  xs: 12,
149
149
  sm: 16,
150
150
  md: 20,
@@ -322,7 +322,7 @@ var ce = (e, t) => ({
322
322
  return /* @__PURE__ */ A(u, {
323
323
  dataTestId: v,
324
324
  children: te ? /* @__PURE__ */ A("button", {
325
- ref: n,
325
+ ref: t,
326
326
  type: "button",
327
327
  ..._ ? {
328
328
  tabIndex: -1,
@@ -407,14 +407,14 @@ var Te = L, R = (e, t) => `hsl(${ve(e, t).replace(/ /g, ", ")})`, z = (e, t) =>
407
407
  variant: "ghost",
408
408
  size: "md",
409
409
  label: i?.fit ?? c.map.controls.fit,
410
- icon: y,
410
+ icon: v,
411
411
  hideLabel: !0,
412
412
  onClick: n
413
413
  }) : null, r ? /* @__PURE__ */ A(s, {
414
414
  variant: "ghost",
415
415
  size: "md",
416
416
  label: i?.locate ?? c.map.controls.locate,
417
- icon: v,
417
+ icon: y,
418
418
  hideLabel: !0,
419
419
  onClick: r
420
420
  }) : null] })) : null, d ? p(/* @__PURE__ */ j(se, { children: [e ? /* @__PURE__ */ A(s, {
@@ -1355,7 +1355,7 @@ var xt = {
1355
1355
  isDark: e
1356
1356
  };
1357
1357
  }, Et = {
1358
- maplibre: async () => (await import("./maplibre-C8TCdToL.js")).createMaplibreAdapter,
1358
+ maplibre: async () => (await import("./maplibre-NpfvETJP.js")).createMaplibreAdapter,
1359
1359
  google: async (e) => (await import("./google-B7uAYsxU.js")).loadGoogleAdapter(e)
1360
1360
  }, Dt = /* @__PURE__ */ new Map(), Ot = (e, t) => {
1361
1361
  let n = Dt.get(e);
@@ -11509,8 +11509,8 @@ var xt = {
11509
11509
  maxZoom: u
11510
11510
  });
11511
11511
  d && (n ? e.easeTo(d, { animate: n }) : e.jumpTo(d, { animate: n }));
11512
- }, Ut = (e) => `${e.top},${e.right},${e.bottom},${e.left}`, Wt = w(function({ markers: t = [], routes: r = [], arcs: i = [], areas: o = [], onRouteClick: s, onArcClick: c, selectedMarkerId: l, defaultSelectedMarkerId: d = null, onMarkerSelect: m, onMarkerDrag: h, onMarkerDragEnd: g, highlightedId: _ = null, viewportInset: v, centerOnMarkerClick: y = !1, fitToMarkers: b, initialViewport: x, mapStyle: S, interactive: ee = !0, gestureHandling: te, minZoom: C, maxZoom: ne = 18, showControls: w = !0, controlLabels: re, showCurrentLocation: oe = !1, fullScreen: D = !1, onSidebarToggle: M, sidebarExpanded: de = !1, sidebarToggleAddon: fe, sidebarHeaderStart: pe, sidebar: me, detail: he, detailOpen: F = !1, clearSelectionOnBackgroundClick: ge = !0, projection: _e = "mercator", provider: ve, loading: ye = !1, ariaLabel: be, dataTestId: xe, className: Se }, Ce) {
11513
- let we = te ?? (D ? "greedy" : "cooperative"), I = f(), L = e(ve), Te = n(), R = O(null), z = O(null), [B, De] = k(null), [V, Oe] = k(!1), [ke, Me] = k(!1), [Pe, Fe] = k(0), Ie = ie(), W = a(), { containerRef: Le, isDark: Re } = Tt(), ze = T((e) => {
11512
+ }, Ut = (e) => `${e.top},${e.right},${e.bottom},${e.left}`, Wt = w(function({ markers: n = [], routes: r = [], arcs: i = [], areas: o = [], onRouteClick: s, onArcClick: c, selectedMarkerId: l, defaultSelectedMarkerId: d = null, onMarkerSelect: m, onMarkerDrag: h, onMarkerDragEnd: g, highlightedId: _ = null, viewportInset: v, centerOnMarkerClick: y = !1, fitToMarkers: b, initialViewport: x, mapStyle: S, interactive: ee = !0, gestureHandling: te, minZoom: C, maxZoom: ne = 18, showControls: w = !0, controlLabels: re, showCurrentLocation: oe = !1, fullScreen: D = !1, onSidebarToggle: M, sidebarExpanded: de = !1, sidebarToggleAddon: fe, sidebarHeaderStart: pe, sidebar: me, detail: he, detailOpen: F = !1, clearSelectionOnBackgroundClick: ge = !0, projection: _e = "mercator", provider: ve, loading: ye = !1, ariaLabel: be, dataTestId: xe, className: Se }, Ce) {
11513
+ let we = te ?? (D ? "greedy" : "cooperative"), I = f(), L = e(ve), Te = t(), R = O(null), z = O(null), [B, De] = k(null), [V, Oe] = k(!1), [ke, Me] = k(!1), [Pe, Fe] = k(0), Ie = ie(), W = a(), { containerRef: Le, isDark: Re } = Tt(), ze = T((e) => {
11514
11514
  R.current = e, Le(e);
11515
11515
  }, [Le]), Be = Re, Ve = !S || S.provider === L, He = Ve ? S ?? Lt(L) : Lt(L), G = Be ? He.dark : He.light, Ue = O(!1);
11516
11516
  E(() => {
@@ -11522,8 +11522,8 @@ var xt = {
11522
11522
  ]);
11523
11523
  let [We, Ge] = k(d), K = l === void 0 ? We : l, Ke = T((e) => {
11524
11524
  l === void 0 && Ge(e), m?.(e);
11525
- }, [l, m]), q = de && !!M, qe = F && !!he, Je = q ? H.inset + H.listWidth + H.gap : H.inset, Ye = q ? H.inset : H.inset + H.toggleSize + H.gap, Xe = qe ? Je + H.detailWidth : q ? H.inset + H.listWidth : null, Ze = ce(v, { left: Xe === null ? 0 : Xe + H.gap }), J = O(t);
11526
- J.current = t;
11525
+ }, [l, m]), q = de && !!M, qe = F && !!he, Je = q ? H.inset + H.listWidth + H.gap : H.inset, Ye = q ? H.inset : H.inset + H.toggleSize + H.gap, Xe = qe ? Je + H.detailWidth : q ? H.inset + H.listWidth : null, Ze = ce(v, { left: Xe === null ? 0 : Xe + H.gap }), J = O(n);
11526
+ J.current = n;
11527
11527
  let Qe = O(r);
11528
11528
  Qe.current = r;
11529
11529
  let $e = O(i);
@@ -11585,8 +11585,8 @@ var xt = {
11585
11585
  W
11586
11586
  ]), dt = O(!1);
11587
11587
  E(() => {
11588
- dt.current || t.length <= 200 || (dt.current = !0, console.warn(`F0Map: ${t.length} markers exceeds the recommended maximum of 200. Markers are DOM elements - pan/zoom will degrade. Aggregate or filter the data, or wait for a GL clustering path.`));
11589
- }, [t.length]);
11588
+ dt.current || n.length <= 200 || (dt.current = !0, console.warn(`F0Map: ${n.length} markers exceeds the recommended maximum of 200. Markers are DOM elements - pan/zoom will degrade. Aggregate or filter the data, or wait for a GL clustering path.`));
11589
+ }, [n.length]);
11590
11590
  let { coords: ft, request: pt } = wt(oe), ht = T(() => {
11591
11591
  X.current = null, z.current?.zoomIn();
11592
11592
  }, []), gt = T(() => {
@@ -11771,7 +11771,7 @@ var xt = {
11771
11771
  role: "status",
11772
11772
  "aria-live": "polite",
11773
11773
  className: "sr-only",
11774
- children: `${t.length} ${t.length === 1 ? I.map.location : I.map.locations}`
11774
+ children: `${n.length} ${n.length === 1 ? I.map.location : I.map.locations}`
11775
11775
  }),
11776
11776
  !V && B && o.length > 0 ? /* @__PURE__ */ A(Ee, {
11777
11777
  adapter: B,
@@ -11793,9 +11793,9 @@ var xt = {
11793
11793
  onRouteClick: s,
11794
11794
  onArcClick: c
11795
11795
  }) : null,
11796
- !V && B && t.length > 0 ? /* @__PURE__ */ A(ot, {
11796
+ !V && B && n.length > 0 ? /* @__PURE__ */ A(ot, {
11797
11797
  adapter: B,
11798
- points: t,
11798
+ points: n,
11799
11799
  selectedId: K,
11800
11800
  highlightedId: _,
11801
11801
  onSelect: ut,
@@ -11855,7 +11855,7 @@ var xt = {
11855
11855
  children: /* @__PURE__ */ A(je, {
11856
11856
  onZoomIn: ht,
11857
11857
  onZoomOut: gt,
11858
- onFit: t.length > 0 || Pt || o.length > 0 ? _t : void 0,
11858
+ onFit: n.length > 0 || Pt || o.length > 0 ? _t : void 0,
11859
11859
  onLocate: vt,
11860
11860
  labels: re
11861
11861
  })
@@ -11876,7 +11876,7 @@ var xt = {
11876
11876
  /* @__PURE__ */ A(Ne, {
11877
11877
  id: Ie,
11878
11878
  label: I.map.listLabel,
11879
- points: t,
11879
+ points: n,
11880
11880
  selectedId: K,
11881
11881
  onSelect: St,
11882
11882
  visible: V
@@ -1,7 +1,7 @@
1
1
  import { o as e, r as t, t as n } from "./rolldown-runtime-BItFwnF5.js";
2
- import { $ as r, G as i, J as a, K as o, Mt as s, Ot as c, Q as l, Qt as u, T as d, Ut as f, Vt as p, Wt as m, X as h, Xt as g, Y as _, Z as v, Zn as y, _ as b, _t as x, a as S, an as C, ar as w, at as T, b as E, ct as D, d as O, et as k, ft as ee, g as te, gn as A, gt as j, hn as ne, ht as re, i as ie, in as M, ir as ae, it as oe, k as N, ln as se, lt as ce, mt as le, nt as ue, ot as de, p as fe, pt as pe, q as me, rn as he, rr as ge, rt as _e, st as ve, t as ye, tt as be, ut as xe, vt as Se, x as Ce, y as we, yt as Te } from "./popover-B2hEEubt.js";
2
+ import { $ as r, G as i, J as a, K as o, Mt as s, Ot as c, Q as l, Qt as u, T as d, Ut as f, Vt as p, Wt as m, X as h, Xt as g, Y as _, Z as v, Zn as y, _ as b, _t as x, a as S, an as C, ar as w, at as T, b as E, ct as D, d as O, et as k, ft as ee, g as te, gn as A, gt as j, hn as ne, ht as re, i as ie, in as M, ir as ae, it as oe, k as N, ln as se, lt as ce, mt as le, nt as ue, ot as de, p as fe, pt as pe, q as me, rn as he, rr as ge, rt as _e, st as ve, t as ye, tt as be, ut as xe, vt as Se, x as Ce, y as we, yt as Te } from "./popover-B7fqB9lu.js";
3
3
  import { I as P, L as F, i as Ee, n as De, r as Oe, t as ke, u as Ae } from "./tooltip-TOvfXq9F.js";
4
- import { D as je, J as Me, K as Ne, S as Pe, U as Fe, V as Ie, W as Le, a as Re, d as ze, f as Be, i as Ve, k as He, l as Ue, p as We, q as Ge, u as Ke, x as qe, y as Je, z as Ye } from "./useData-DjJsB0qa.js";
4
+ import { D as je, J as Me, K as Ne, S as Pe, U as Fe, V as Ie, W as Le, a as Re, d as ze, f as Be, i as Ve, k as He, l as Ue, p as We, q as Ge, u as Ke, x as qe, y as Je, z as Ye } from "./useData-CAl9SKtE.js";
5
5
  import { t as Xe } from "./Check-DAp9gCRh.js";
6
6
  import { t as Ze } from "./dist-CSP_0yKt.js";
7
7
  import * as I from "react";