@factorialco/f0-react 12.9.0 → 12.10.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 (32) hide show
  1. package/dist/{ChatPostComposerDialog-ZRR-37SG.js → ChatPostComposerDialog-DcmLrQk6.js} +2 -2
  2. package/dist/{CoachmarkProvider-B41m_jPK.js → CoachmarkProvider-XfLjB3dH.js} +27678 -27678
  3. package/dist/{DocumentToolbar-5ufOd_tS.js → DocumentToolbar-CqbY6eID.js} +3 -3
  4. package/dist/{DocxViewer-CneDKqFm.js → DocxViewer-CqHgSExq.js} +1 -1
  5. package/dist/{F0AiProcessingOverlay-DrTKagEL.js → F0AiProcessingOverlay-H23WHd7F.js} +1228 -1124
  6. package/dist/{F0CanvasPanel-BLFdor69.js → F0CanvasPanel--hLKeQvg.js} +7639 -7637
  7. package/dist/{F0DocumentViewer-BYcVbtR6.js → F0DocumentViewer-BN-2IVgz.js} +6 -6
  8. package/dist/F0DocumentViewer-D1G3M2J_.js +3 -0
  9. package/dist/{F0Map-Dvs7oTm7.js → F0Map-hvgCUGk8.js} +13 -6
  10. package/dist/{F0Select-CLh7lfK5.js → F0Select-B-ZxVjXG.js} +26 -18
  11. package/dist/{F0VideoPlayer-DrVk2P3B.js → F0VideoPlayer-CNp5hXgp.js} +275 -275
  12. package/dist/F0VideoPlayer-D4bZBBLK.js +1 -0
  13. package/dist/{Map-K3gbR0WW.js → Map-eIXVKc1x.js} +6 -6
  14. package/dist/{PdfThumbnail-xsMUP6C3.js → PdfThumbnail-CCSmwxQU.js} +1 -1
  15. package/dist/{SheetViewer-BwddHBE6.js → SheetViewer-BN5UYkEZ.js} +3 -3
  16. package/dist/{TextViewer-DwdIuTnL.js → TextViewer-Bt0_dYB-.js} +1 -1
  17. package/dist/ai.d.ts +2 -2
  18. package/dist/ai.js +3 -3
  19. package/dist/component-status.js +3 -3
  20. package/dist/experimental.d.ts +2 -2
  21. package/dist/experimental.js +4519 -4319
  22. package/dist/{exports-BdFDYdp1.d.ts → exports-BByQBwpi.d.ts} +13 -2
  23. package/dist/f0.d.ts +3 -3
  24. package/dist/f0.js +172 -172
  25. package/dist/{index-DIwa_k8B.d.ts → index-D3nEDg8x.d.ts} +15 -1
  26. package/dist/{maplibre-BAybLLZ-.js → maplibre-Bywi9z2G.js} +1 -1
  27. package/dist/{pdfWorker-Bx_7vdcM.js → pdfWorker-CKgxOaCl.js} +1 -1
  28. package/dist/styles.css +1 -1
  29. package/dist/{types-hr47rxX3.d.ts → types-UMYBr8Mi.d.ts} +1 -1
  30. package/package.json +1 -1
  31. package/dist/F0DocumentViewer-C7Cgy3bS.js +0 -3
  32. package/dist/F0VideoPlayer-CXeOF56A.js +0 -1
@@ -1,9 +1,9 @@
1
1
  import { ar as e, b as t, ln as n, rn as r, rr as i, zt as a } from "./popover-BjrPOMeQ.js";
2
2
  import { L as o } from "./tooltip-BX4dSfeL.js";
3
- import { Co as s, Oa as c, Os as l, go as u } from "./F0CanvasPanel-BLFdor69.js";
3
+ import { _o as s, ka as c, ks as l, wo as u } from "./F0CanvasPanel--hLKeQvg.js";
4
4
  import { X as d, q as f } from "./useData-B7LYSzh0.js";
5
- import { Er as p, dr as m, t as h } from "./F0Select-CLh7lfK5.js";
6
- import { i as ee, n as g, r as _ } from "./pdfWorker-Bx_7vdcM.js";
5
+ import { Er as p, dr as m, t as h } from "./F0Select-B-ZxVjXG.js";
6
+ import { i as ee, n as g, r as _ } from "./pdfWorker-CKgxOaCl.js";
7
7
  import { Suspense as v, forwardRef as y, lazy as b, useCallback as x, useEffect as S, useMemo as C, useRef as w, useState as T } from "react";
8
8
  import { jsx as E, jsxs as D } from "react/jsx-runtime";
9
9
  import './F0DocumentViewer.css';//#region src/addons/documents/F0DocumentViewer/components/PdfLoadingState.tsx
@@ -87,12 +87,12 @@ var O = ({ label: e, width: t, height: r }) => /* @__PURE__ */ E("div", {
87
87
  b ? /* @__PURE__ */ E(k, {
88
88
  label: O.rotate,
89
89
  onClick: x,
90
- icon: u
90
+ icon: s
91
91
  }) : null,
92
92
  /* @__PURE__ */ E(k, {
93
93
  label: O.print,
94
94
  onClick: S,
95
- icon: s
95
+ icon: u
96
96
  }),
97
97
  /* @__PURE__ */ E(k, {
98
98
  label: O.download,
@@ -186,7 +186,7 @@ var O = ({ label: e, width: t, height: r }) => /* @__PURE__ */ E("div", {
186
186
  //#endregion
187
187
  //#region src/addons/documents/F0DocumentViewer/F0DocumentViewer.tsx
188
188
  g();
189
- var z = b(() => import("./SheetViewer-BwddHBE6.js")), B = b(() => import("./DocxViewer-CneDKqFm.js")), V = b(() => import("./TextViewer-DwdIuTnL.js")), ue = 48, de = 150, H = y((e, t) => {
189
+ var z = b(() => import("./SheetViewer-BN5UYkEZ.js")), B = b(() => import("./DocxViewer-CqHgSExq.js")), V = b(() => import("./TextViewer-Bt0_dYB-.js")), ue = 48, de = 150, H = y((e, t) => {
190
190
  let { kind: r = "pdf", mimeType: i, toolbar: a = "top", ...o } = e;
191
191
  if (r === "pdf") return /* @__PURE__ */ E(U, {
192
192
  ref: t,
@@ -0,0 +1,3 @@
1
+ import "./pdfWorker-CKgxOaCl.js";
2
+ export { t as F0DocumentViewer } from "./F0DocumentViewer-BN-2IVgz.js";
3
+ import "./f0.js";
@@ -1,8 +1,8 @@
1
- import { a as e, o as t, pi as n } from "./CoachmarkProvider-B41m_jPK.js";
1
+ import { a as e, o as t, pi as n } from "./CoachmarkProvider-XfLjB3dH.js";
2
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-BjrPOMeQ.js";
3
3
  import { L as p, R as m } from "./tooltip-BX4dSfeL.js";
4
4
  import { n as h } from "./F0Text-D92NWQRd.js";
5
- import { Fo as g, X as _, gs as v, io as y } from "./F0CanvasPanel-BLFdor69.js";
5
+ import { Io as g, Z as _, _s as v, ao as y } from "./F0CanvasPanel--hLKeQvg.js";
6
6
  import { V as b, Z as x, j as S, q as ee, y as C } from "./useData-B7LYSzh0.js";
7
7
  import { a as w, n as T, o as te, s as ne, t as E } from "./dist-Cuwaibqg.js";
8
8
  import { createContext as D, forwardRef as O, useCallback as k, useContext as A, useEffect as j, useId as re, useImperativeHandle as ie, useLayoutEffect as ae, useMemo as M, useRef as N, useState as P } from "react";
@@ -1297,8 +1297,15 @@ var { duration: Ot, ease: kt, settleMs: At } = w, jt = At, Mt = {
1297
1297
  ease: kt.outSwift
1298
1298
  }, Nt = {
1299
1299
  duration: Ot.reveal,
1300
- ease: kt.outSwift
1301
- }, Pt = { duration: 0 }, Ft = (e, t = !1) => e || t ? Pt : Mt, It = (e, t, n = !1) => e || n ? Pt : t ? Nt : Mt, Lt = ({ coversFrame: e, isFullscreen: t, isClosingFromFullscreen: n, isActivePanel: r, reservedWidth: i }) => e || (t || n) && r ? "100%" : i, Rt = "duration-base ease-out-swift motion-reduce:transition-none", zt = D("classic"), Bt = zt.Provider, Vt = () => A(zt), Ht = "M10.417 10L14.167 10M10.417 10L12.0837 8.33337M10.417 10L12.0837 11.6667", Ut = {
1300
+ ease: [
1301
+ .2,
1302
+ 0,
1303
+ 0,
1304
+ 1
1305
+ ]
1306
+ };
1307
+ Ot.fast, kt.outSwift;
1308
+ var Pt = { duration: 0 }, Ft = (e, t = !1) => e || t ? Pt : Mt, It = (e, t, n = !1) => e || n ? Pt : t ? Nt : Mt, Lt = ({ coversFrame: e, isFullscreen: t, isClosingFromFullscreen: n, isActivePanel: r, reservedWidth: i }) => e || (t || n) && r ? "100%" : i, Rt = "duration-base ease-out-swift motion-reduce:transition-none", zt = D("classic"), Bt = zt.Provider, Vt = () => A(zt), Ht = "M10.417 10L14.167 10M10.417 10L12.0837 8.33337M10.417 10L12.0837 11.6667", Ut = {
1302
1309
  open: {
1303
1310
  rest: {
1304
1311
  arrow: "opacity-0 translate-x-0",
@@ -1593,7 +1600,7 @@ var rn = {
1593
1600
  isDark: e
1594
1601
  };
1595
1602
  }, ln = {
1596
- maplibre: async () => (await import("./maplibre-BAybLLZ-.js")).createMaplibreAdapter,
1603
+ maplibre: async () => (await import("./maplibre-Bywi9z2G.js")).createMaplibreAdapter,
1597
1604
  google: async (e) => (await import("./google-D1V0swd7.js")).loadGoogleAdapter(e)
1598
1605
  }, un = /* @__PURE__ */ new Map(), dn = (e, t) => {
1599
1606
  let n = un.get(e);
@@ -12126,4 +12133,4 @@ var rn = {
12126
12133
  On.displayName = "F0Map";
12127
12134
  var kn = On;
12128
12135
  //#endregion
12129
- export { wt as C, Ke as D, ct as E, Fe as O, Ct as S, ht as T, Rt as _, bn as a, Lt as b, an as c, qt as d, Bt as f, jt as g, Pt as h, _n as i, Pe as k, Xt as l, Mt as m, xn as n, on as o, Vt as p, gn as r, rn as s, kn as t, Yt as u, Ft as v, vt as w, Dt as x, It as y };
12136
+ export { Pe as A, Ct as C, ct as D, ht as E, Ke as O, Dt as S, vt as T, Rt as _, bn as a, It as b, an as c, qt as d, Bt as f, jt as g, Pt as h, _n as i, Fe as k, Xt as l, Mt as m, xn as n, on as o, Vt as p, gn as r, rn as s, kn as t, Yt as u, Nt as v, wt as w, Lt as x, Ft as y };
@@ -53593,17 +53593,18 @@ var SM = ({ text: e }) => /* @__PURE__ */ W("div", {
53593
53593
  iconColor: "critical",
53594
53594
  icon: dt
53595
53595
  }
53596
- }, OM = ({ status: e, alignToFirstLine: t = !1 }) => {
53596
+ }, OM = ({ status: e, id: t, alignToFirstLine: n = !1 }) => {
53597
53597
  if (!e) return null;
53598
- let n = (Array.isArray(e.message) ? e.message : [e.message]).filter(Boolean), r = DM[e.type].icon;
53599
- return n.length > 0 && /* @__PURE__ */ G("div", {
53600
- className: F("flex", t && "items-start", "gap-1"),
53601
- children: [r ? /* @__PURE__ */ W(M, {
53602
- icon: r,
53598
+ let r = (Array.isArray(e.message) ? e.message : [e.message]).filter(Boolean), i = DM[e.type].icon;
53599
+ return r.length > 0 && /* @__PURE__ */ G("div", {
53600
+ id: t,
53601
+ className: F("flex", n && "items-start", "gap-1"),
53602
+ children: [i ? /* @__PURE__ */ W(M, {
53603
+ icon: i,
53603
53604
  color: DM[e.type].iconColor || "currentColor"
53604
53605
  }) : null, /* @__PURE__ */ W("ul", {
53605
53606
  className: "list-none",
53606
- children: n.map((t) => /* @__PURE__ */ W("li", {
53607
+ children: r.map((t) => /* @__PURE__ */ W("li", {
53607
53608
  className: F("text-base font-medium", DM[e.type].color),
53608
53609
  children: t
53609
53610
  }, t))
@@ -53711,7 +53712,7 @@ var SM = ({ text: e }) => /* @__PURE__ */ W("div", {
53711
53712
  }, 100)), () => {
53712
53713
  Ne.current &&= (clearInterval(Ne.current), null);
53713
53714
  }), [Ae, Fe]);
53714
- let Ie = E || ae || de, Le = ee ?? !b(Ce), ze = O != null && jM(Ce) && !Ae;
53715
+ let Ie = l?.message ? `${xe}-messages` : void 0, Le = [ue ?? e.props["aria-describedby"], Ie].filter(Boolean).join(" ") || void 0, ze = E || ae || de, Be = ee ?? !b(Ce), Ve = O != null && jM(Ce) && !Ae;
53715
53716
  return ve && !me ? /* @__PURE__ */ G("div", {
53716
53717
  className: F("flex h-full w-full flex-col gap-2", o),
53717
53718
  ref: _e,
@@ -53731,7 +53732,10 @@ var SM = ({ text: e }) => /* @__PURE__ */ W("div", {
53731
53732
  placeholder: _,
53732
53733
  size: ye
53733
53734
  }),
53734
- /* @__PURE__ */ W(OM, { status: l })
53735
+ /* @__PURE__ */ W(OM, {
53736
+ status: l,
53737
+ id: Ie
53738
+ })
53735
53739
  ]
53736
53740
  }) : /* @__PURE__ */ G("div", {
53737
53741
  className: F("flex flex-col gap-2", "pointer-events-none", t && "cursor-not-allowed", ve && "h-full w-full", fe && "bg-transparent h-full w-full", o),
@@ -53791,7 +53795,7 @@ var SM = ({ text: e }) => /* @__PURE__ */ W("div", {
53791
53795
  size: "xs"
53792
53796
  }) : null]
53793
53797
  }) : null,
53794
- ze ? /* @__PURE__ */ W("div", {
53798
+ Ve ? /* @__PURE__ */ W("div", {
53795
53799
  "data-slot": "value",
53796
53800
  className: F("pointer-events-none flex min-w-0 shrink items-center pr-0", "pl-3", (f || oe) && "pl-8", (f || oe) && ye === "md" && "pl-9", wM({ size: ye })),
53797
53801
  children: O
@@ -53812,19 +53816,20 @@ var SM = ({ text: e }) => /* @__PURE__ */ W("div", {
53812
53816
  "aria-expanded": ie === "combobox" ? se : void 0,
53813
53817
  "aria-activedescendant": ce,
53814
53818
  "aria-autocomplete": le,
53815
- ...ue !== void 0 && { "aria-describedby": ue },
53819
+ ...Le !== void 0 && { "aria-describedby": Le },
53820
+ ...l?.type === "error" && { "aria-invalid": !0 },
53816
53821
  id: xe,
53817
53822
  value: Ce ?? "",
53818
53823
  "aria-label": r || _ || "no-label",
53819
53824
  "aria-busy": h,
53820
53825
  "aria-disabled": Se,
53821
53826
  name: re,
53822
- className: F("h-full w-full min-w-0 px-3 text-f1-foreground", "[&::-webkit-search-cancel-button]:hidden", (f || oe) && "pl-8", (f || oe) && ye === "md" && "pl-9", ze && "pl-0", t && "cursor-not-allowed", e.props.className, wM({ size: ye }))
53827
+ className: F("h-full w-full min-w-0 px-3 text-f1-foreground", "[&::-webkit-search-cancel-button]:hidden", (f || oe) && "pl-8", (f || oe) && ye === "md" && "pl-9", Ve && "pl-0", t && "cursor-not-allowed", e.props.className, wM({ size: ye }))
53823
53828
  })
53824
53829
  }),
53825
53830
  /* @__PURE__ */ W("div", {
53826
53831
  "data-slot": "placeholder",
53827
- className: F("pointer-events-none absolute inset-x-0 top-[1px] z-10 flex flex-1 justify-start overflow-hidden px-3 text-f1-foreground-secondary transition-opacity", !p && "bottom-0", p && "items-start", (f || oe) && "pl-8", (f || oe) && ye === "md" && "pl-9", wM({ size: ye }), _ && !D && !ze && b(Ce) && !Ae ? "opacity-100" : "opacity-0"),
53832
+ className: F("pointer-events-none absolute inset-x-0 top-[1px] z-10 flex flex-1 justify-start overflow-hidden px-3 text-f1-foreground-secondary transition-opacity", !p && "bottom-0", p && "items-start", (f || oe) && "pl-8", (f || oe) && ye === "md" && "pl-9", wM({ size: ye }), _ && !D && !Ve && b(Ce) && !Ae ? "opacity-100" : "opacity-0"),
53828
53833
  onClick: ke,
53829
53834
  "aria-hidden": "true",
53830
53835
  title: _,
@@ -53833,12 +53838,12 @@ var SM = ({ text: e }) => /* @__PURE__ */ W("div", {
53833
53838
  children: _
53834
53839
  })
53835
53840
  }),
53836
- v || Ie || h ? /* @__PURE__ */ G("div", {
53841
+ v || ze || h ? /* @__PURE__ */ G("div", {
53837
53842
  className: F("flex h-fit min-w-6 items-center gap-1.5 self-center pr-[3px]", ye === "md" && "pr-[7px]", "relative"),
53838
53843
  children: [
53839
53844
  v && !Se ? /* @__PURE__ */ W(y, {
53840
- initial: Le,
53841
- children: Le ? /* @__PURE__ */ W(A.button, {
53845
+ initial: Be,
53846
+ children: Be ? /* @__PURE__ */ W(A.button, {
53842
53847
  initial: { opacity: 0 },
53843
53848
  animate: { opacity: 1 },
53844
53849
  exit: { opacity: 0 },
@@ -53858,7 +53863,7 @@ var SM = ({ text: e }) => /* @__PURE__ */ W("div", {
53858
53863
  })
53859
53864
  }) : null
53860
53865
  }) : null,
53861
- Ie ? /* @__PURE__ */ G("div", {
53866
+ ze ? /* @__PURE__ */ G("div", {
53862
53867
  className: "flex min-h-6 min-w-6 items-center justify-center self-center",
53863
53868
  children: [
53864
53869
  E,
@@ -53886,7 +53891,10 @@ var SM = ({ text: e }) => /* @__PURE__ */ W("div", {
53886
53891
  ]
53887
53892
  })
53888
53893
  }),
53889
- /* @__PURE__ */ W(OM, { status: l })
53894
+ /* @__PURE__ */ W(OM, {
53895
+ status: l,
53896
+ id: Ie
53897
+ })
53890
53898
  ]
53891
53899
  });
53892
53900
  });