@factorialco/f0-react 16.22.0 → 16.24.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 (64) hide show
  1. package/dist/{ArchiveThumbnail-G0aPl50L.js → ArchiveThumbnail-BWTI7ezC.js} +3 -3
  2. package/dist/{ArchiveViewer-Bj0bDPBP.js → ArchiveViewer-BlnfVLsJ.js} +5 -5
  3. package/dist/{ChatPostComposerDialog-DMk3uFWy.js → ChatPostComposerDialog-Ca3fcEzD.js} +3 -3
  4. package/dist/{CoachmarkProvider-CCHC0FZi.js → CoachmarkProvider-Bw3qcSzA.js} +9701 -9701
  5. package/dist/{CodeThumbnail-DJ9hJvLI.js → CodeThumbnail-PtY8O4_C.js} +1 -1
  6. package/dist/{CodeViewer-DxSm1H6J.js → CodeViewer-DWjmRhtn.js} +6 -6
  7. package/dist/{DocumentToolbar-DqeoImuf.js → DocumentToolbar-CKdCMI09.js} +7 -7
  8. package/dist/{DocxViewer-DlHsOT2G.js → DocxViewer-g_DkGE6G.js} +3 -3
  9. package/dist/{F0AiProcessingOverlay-BaiVAdOt.js → F0AiProcessingOverlay-Dh3YEI67.js} +39 -39
  10. package/dist/{F0Alert-guKRR8YO.js → F0Alert-BkUUU2Es.js} +5 -5
  11. package/dist/F0AudioPlayer-vHt8D_MA.js +2 -0
  12. package/dist/{F0Button-B217B6lh.js → F0Button-C1aRGjA7.js} +3 -3
  13. package/dist/{F0CanvasPanel-B5rOTxrn.js → F0CanvasPanel-D6eWdQK0.js} +209 -209
  14. package/dist/{F0DocumentViewer-CIA45h1L.js → F0DocumentViewer-BtD9t71V.js} +1 -1
  15. package/dist/{F0DocumentViewer-CipplAi8.js → F0DocumentViewer-DhffyI63.js} +4 -4
  16. package/dist/{F0Icon-CRETnjaC.js → F0Icon-CA8QrO7J.js} +1 -1
  17. package/dist/{F0Map-Bgcgl-b7.js → F0Map-ClnO_2tF.js} +17 -17
  18. package/dist/{F0Select-B5whw7YJ.js → F0Select-h6e4u9ej.js} +2165 -2149
  19. package/dist/{F0Text-DEJMiNLl.js → F0Text-C69-6-hA.js} +2 -2
  20. package/dist/F0VideoPlayer-Bdf6P4CE.js +1 -0
  21. package/dist/{F0VideoPlayer-Du_8UrJx.js → F0VideoPlayer-DaD7MnFA.js} +6 -6
  22. package/dist/{HtmlThumbnail-DLYEHdZx.js → HtmlThumbnail-DOW0qL8W.js} +1 -1
  23. package/dist/{HtmlViewer-erJIt-Wn.js → HtmlViewer-rIlra75S.js} +9 -9
  24. package/dist/{LayoutGroup-DECnUFBB.js → LayoutGroup-DnZBITzE.js} +1 -1
  25. package/dist/{Map-TbXJuia_.js → Map-Cs17xyE6.js} +10 -10
  26. package/dist/{PdfThumbnail-C0elGWNG.js → PdfThumbnail-CXGUzm25.js} +1 -1
  27. package/dist/{PdfViewer-Z-MUOaUP.js → PdfViewer-CTGhvHvW.js} +12 -12
  28. package/dist/{SandboxedHtmlFrame-Ba5FAjt6.js → SandboxedHtmlFrame-sIha8vuj.js} +2 -2
  29. package/dist/{SheetViewer-CjBwkzuZ.js → SheetViewer-0KUrMA5z.js} +5 -5
  30. package/dist/{TextViewer-DR8ee6qU.js → TextViewer-D3xpfBVm.js} +4 -4
  31. package/dist/ai.d.ts +3 -3
  32. package/dist/ai.js +4 -4
  33. package/dist/component-status.js +31 -9
  34. package/dist/{dist-ClS5kbGd.js → dist-CrKS7a4M.js} +1 -1
  35. package/dist/{dist-BAsn0JfF.js → dist-CsLQ4kGY.js} +1 -1
  36. package/dist/{dist-BCNVh6y5.js → dist-DMTFO2gF.js} +46 -0
  37. package/dist/{dist-CLXu6f__.js → dist-DRhAsNk-.js} +2 -2
  38. package/dist/{dist-CpxH3Mhm.js → dist-R_v43tri.js} +1 -1
  39. package/dist/{dist-CBsv_N04.js → dist-S2UAyvMo.js} +4 -4
  40. package/dist/experimental.d.ts +2 -2
  41. package/dist/experimental.js +467 -467
  42. package/dist/{exports-BSFis6g6.d.ts → exports-Ov8gD_6H.d.ts} +1 -1
  43. package/dist/f0.d.ts +137 -6
  44. package/dist/f0.js +2588 -2121
  45. package/dist/{google-CG30Y63J.js → google-DDQ7XfPD.js} +1 -1
  46. package/dist/{highlight-yovrsQLV.js → highlight-DeACQIIW.js} +1 -1
  47. package/dist/{i18n-provider-DyI_r6Au.js → i18n-provider-CCg0vfdK.js} +1 -1
  48. package/dist/{i18n-provider-defaults-FGAsdJJR.d.ts → i18n-provider-defaults-CXVl-d7E.d.ts} +8 -0
  49. package/dist/{i18n-provider-defaults-C8fwj3sA.js → i18n-provider-defaults-DdGz6_Og.js} +8 -0
  50. package/dist/i18n-provider-defaults.d.ts +1 -1
  51. package/dist/i18n-provider-defaults.js +1 -1
  52. package/dist/{index-DR7cCKE6.d.ts → index-DIIVN_RC.d.ts} +11 -1
  53. package/dist/{maplibre-BGo0FJAX.js → maplibre-Vwv9Nk1T.js} +2 -2
  54. package/dist/{pdfWorker-B-8PMeY2.js → pdfWorker-D54oefWJ.js} +1 -1
  55. package/dist/{popover-CKVOp9XF.js → popover-BFt-Tk2I.js} +1 -1
  56. package/dist/{skeleton-Dw-7r7zp.js → skeleton-B05pNPYx.js} +1 -1
  57. package/dist/styles.css +1 -1
  58. package/dist/{toolbarStyles-C_OrVxv7.js → toolbarStyles-Btq_icPl.js} +1 -1
  59. package/dist/{types-tXovhytw.d.ts → types-GYsHhskI.d.ts} +6 -5
  60. package/dist/{useData-CVTa0m1L.js → useData-CzdjLV9a.js} +170 -162
  61. package/package.json +2 -2
  62. package/tailwind.config.ts +26 -0
  63. package/dist/F0AudioPlayer-DzePrdJR.js +0 -2
  64. package/dist/F0VideoPlayer-CAFcGry7.js +0 -1
@@ -1,3 +1,3 @@
1
- import { n as e, r as t, t as n } from "./F0DocumentViewer-CipplAi8.js";
1
+ import { n as e, r as t, t as n } from "./F0DocumentViewer-DhffyI63.js";
2
2
  import { t as r } from "./pdfWorkerConfig-BwllKt1K.js";
3
3
  export { n as F0DocumentViewer, e as F0PdfViewer, r as configurePdfWorker, t as pdfScales };
@@ -1,7 +1,7 @@
1
- import { a as e, r as t } from "./i18n-provider-DyI_r6Au.js";
2
- import { n, t as r } from "./skeleton-Dw-7r7zp.js";
1
+ import { a as e, r as t } from "./i18n-provider-CCg0vfdK.js";
2
+ import { n, t as r } from "./skeleton-B05pNPYx.js";
3
3
  import { L as i } from "./tooltip-NXXT56H4.js";
4
- import { rs as a } from "./F0CanvasPanel-B5rOTxrn.js";
4
+ import { rs as a } from "./F0CanvasPanel-D6eWdQK0.js";
5
5
  import { Suspense as o, forwardRef as s, lazy as c } from "react";
6
6
  import { jsx as l, jsxs as u } from "react/jsx-runtime";
7
7
  import './F0DocumentViewer.css';//#region src/addons/documents/F0DocumentViewer/types.ts
@@ -36,7 +36,7 @@ var d = [
36
36
  children: /* @__PURE__ */ l(r, { className: "h-full w-full max-w-[600px] rounded-md" })
37
37
  })]
38
38
  });
39
- }, p = c(() => import("./PdfViewer-Z-MUOaUP.js")), m = c(() => import("./SheetViewer-CjBwkzuZ.js")), h = c(() => import("./DocxViewer-DlHsOT2G.js")), g = c(() => import("./TextViewer-DR8ee6qU.js")), _ = c(() => import("./CodeViewer-DxSm1H6J.js")), v = c(() => import("./HtmlViewer-erJIt-Wn.js")), y = c(() => import("./ArchiveViewer-Bj0bDPBP.js")), b = s((e, t) => {
39
+ }, p = c(() => import("./PdfViewer-CTGhvHvW.js")), m = c(() => import("./SheetViewer-0KUrMA5z.js")), h = c(() => import("./DocxViewer-g_DkGE6G.js")), g = c(() => import("./TextViewer-D3xpfBVm.js")), _ = c(() => import("./CodeViewer-DWjmRhtn.js")), v = c(() => import("./HtmlViewer-rIlra75S.js")), y = c(() => import("./ArchiveViewer-BlnfVLsJ.js")), b = s((e, t) => {
40
40
  let { kind: n = "pdf", mimeType: i, language: a, htmlExecution: s = "auto", htmlSandbox: c, sender: d, toolbar: b = "top", hideDownload: x = !1, ...S } = e;
41
41
  if (n === "pdf") return /* @__PURE__ */ l(o, {
42
42
  fallback: /* @__PURE__ */ l(f, {}),
@@ -1,4 +1,4 @@
1
- import { a as e } from "./i18n-provider-DyI_r6Au.js";
1
+ import { a as e } from "./i18n-provider-CCg0vfdK.js";
2
2
  import { L as t, z as n } from "./tooltip-NXXT56H4.js";
3
3
  import * as r from "react";
4
4
  import { createContext as i, forwardRef as a, useCallback as o, useContext as s, useEffect as c, useImperativeHandle as l, useRef as u, useState as d } from "react";
@@ -1,11 +1,11 @@
1
- import { Si as e, a as t, o as n } from "./CoachmarkProvider-CCHC0FZi.js";
2
- import { i as r, r as i } from "./i18n-provider-DyI_r6Au.js";
1
+ import { Ci as e, a as t, o as n } from "./CoachmarkProvider-Bw3qcSzA.js";
2
+ import { i as r, r as i } from "./i18n-provider-CCg0vfdK.js";
3
3
  import { L as a, R as o } from "./tooltip-NXXT56H4.js";
4
- import { D as s, G as c, K as l, Y as u, h as d, t as f, x as p } from "./F0Button-B217B6lh.js";
5
- import { Ms as m, Vc as h, al as g, m as _, nn as v, r as y, sc as b } from "./F0CanvasPanel-B5rOTxrn.js";
6
- import { t as x } from "./F0Icon-CRETnjaC.js";
7
- import { N as S, T as C, U as w, p as T, z as E } from "./useData-CVTa0m1L.js";
8
- import { n as D, o as ee, s as O, t as k } from "./dist-BCNVh6y5.js";
4
+ import { D as s, G as c, K as l, Y as u, h as d, t as f, x as p } from "./F0Button-C1aRGjA7.js";
5
+ import { Ms as m, Vc as h, al as g, m as _, nn as v, r as y, sc as b } from "./F0CanvasPanel-D6eWdQK0.js";
6
+ import { t as x } from "./F0Icon-CA8QrO7J.js";
7
+ import { B as S, E as C, P as w, W as T, m as E } from "./useData-CzdjLV9a.js";
8
+ import { n as D, o as ee, s as O, t as k } from "./dist-DMTFO2gF.js";
9
9
  import { createContext as A, forwardRef as j, useCallback as M, useContext as te, useEffect as N, useId as ne, useImperativeHandle as re, useLayoutEffect as ie, useMemo as P, useRef as F, useState as I } from "react";
10
10
  import { Fragment as ae, jsx as L, jsxs as R } from "react/jsx-runtime";
11
11
  import { createPortal as oe } from "react-dom";
@@ -145,7 +145,7 @@ var se = (e, t) => ({
145
145
  let e = B.xl;
146
146
  return -(e.d - e.caretOverlap + e.caretH + xe + Se) + 3;
147
147
  }, U = "hsl(var(--white-100))", Ce = j(function(t, n) {
148
- let { size: i = "md", selected: s = !1, collapsed: c = !1, label: d, showLabel: f = !0, labelPlacement: p = "right", onClick: m, ariaLabel: h, presentational: g = !1, dataTestId: _, className: v } = t, y = t.variant ?? "color", b = B[s ? "xl" : i], S = !!m, w = y === "color" || y === "icon" || y === "letter", E = y === "person" && "firstName" in t ? t.firstName + t.lastName : (y === "team" || y === "company") && "name" in t ? t.name : null, D = w ? t.color ?? "radical" : E ? y === "person" && "src" in t && t.src ? "grey" : C(E) ?? "grey" : "neutral", ee = e(), O = s ? 32 : {
148
+ let { size: i = "md", selected: s = !1, collapsed: c = !1, label: d, showLabel: f = !0, labelPlacement: p = "right", onClick: m, ariaLabel: h, presentational: g = !1, dataTestId: _, className: v } = t, y = t.variant ?? "color", b = B[s ? "xl" : i], S = !!m, w = y === "color" || y === "icon" || y === "letter", T = y === "person" && "firstName" in t ? t.firstName + t.lastName : (y === "team" || y === "company") && "name" in t ? t.name : null, D = w ? t.color ?? "radical" : T ? y === "person" && "src" in t && t.src ? "grey" : C(T) ?? "grey" : "neutral", ee = e(), O = s ? 32 : {
149
149
  xs: 12,
150
150
  sm: 16,
151
151
  md: 20,
@@ -177,7 +177,7 @@ var se = (e, t) => ({
177
177
  transition: "font-size 200ms ease-out"
178
178
  },
179
179
  children: t.letter.charAt(0).toUpperCase()
180
- }) : y === "person" && "firstName" in t ? M(/* @__PURE__ */ L(T, {
180
+ }) : y === "person" && "firstName" in t ? M(/* @__PURE__ */ L(E, {
181
181
  avatar: {
182
182
  type: "person",
183
183
  firstName: t.firstName,
@@ -185,14 +185,14 @@ var se = (e, t) => ({
185
185
  src: t.src
186
186
  },
187
187
  size: A
188
- })) : y === "team" && "name" in t ? M(/* @__PURE__ */ L(T, {
188
+ })) : y === "team" && "name" in t ? M(/* @__PURE__ */ L(E, {
189
189
  avatar: {
190
190
  type: "team",
191
191
  name: t.name,
192
192
  src: t.src
193
193
  },
194
194
  size: A
195
- })) : y === "company" && "name" in t ? M(/* @__PURE__ */ L(T, {
195
+ })) : y === "company" && "name" in t ? M(/* @__PURE__ */ L(E, {
196
196
  avatar: {
197
197
  type: "company",
198
198
  name: t.name,
@@ -385,7 +385,7 @@ var W = Ce, we = (e, t) => `hsl(${ye(e, t).replace(/ /g, ", ")})`, Te = (e, t) =
385
385
  }
386
386
  }, je = ({ children: e }) => /* @__PURE__ */ L("div", {
387
387
  className: Ae(Oe.control),
388
- children: /* @__PURE__ */ L(S, {
388
+ children: /* @__PURE__ */ L(w, {
389
389
  ...De,
390
390
  borderRadius: Oe.control,
391
391
  padding: "none",
@@ -422,14 +422,14 @@ var W = Ce, we = (e, t) => `hsl(${ye(e, t).replace(/ /g, ", ")})`, Te = (e, t) =
422
422
  variant: "ghost",
423
423
  size: "md",
424
424
  label: o?.zoomIn ?? l.map.controls.zoomIn,
425
- icon: w,
425
+ icon: T,
426
426
  hideLabel: !0,
427
427
  onClick: e
428
428
  }) : null, t ? /* @__PURE__ */ L(f, {
429
429
  variant: "ghost",
430
430
  size: "md",
431
431
  label: o?.zoomOut ?? l.map.controls.zoomOut,
432
- icon: E,
432
+ icon: S,
433
433
  hideLabel: !0,
434
434
  onClick: t
435
435
  }) : null] })) : null]
@@ -1062,7 +1062,7 @@ var it = Z, Q = 16, at = (e, t, n, r) => {
1062
1062
  transitionDuration: g.duration,
1063
1063
  transitionTimingFunction: g.easing
1064
1064
  },
1065
- children: /* @__PURE__ */ L(S, {
1065
+ children: /* @__PURE__ */ L(w, {
1066
1066
  ...De,
1067
1067
  borderRadius: Oe.panel,
1068
1068
  padding: "none",
@@ -1614,8 +1614,8 @@ var Yt = {
1614
1614
  isDark: e
1615
1615
  };
1616
1616
  }, en = {
1617
- maplibre: async () => (await import("./maplibre-BGo0FJAX.js")).createMaplibreAdapter,
1618
- google: async (e) => (await import("./google-CG30Y63J.js")).loadGoogleAdapter(e)
1617
+ maplibre: async () => (await import("./maplibre-Vwv9Nk1T.js")).createMaplibreAdapter,
1618
+ google: async (e) => (await import("./google-DDQ7XfPD.js")).loadGoogleAdapter(e)
1619
1619
  }, tn = /* @__PURE__ */ new Map(), nn = (e, t) => {
1620
1620
  let n = tn.get(e);
1621
1621
  if (n) return n;