@factorialco/f0-react 9.2.1 → 9.3.1

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 (43) hide show
  1. package/dist/{ChatDocxThumbnail-DTpOzL9A.js → ChatDocxThumbnail-Brbh1wem.js} +1 -1
  2. package/dist/{ChatPdfThumbnail-CAOAs-qh.js → ChatPdfThumbnail-D4DN5xr2.js} +1 -1
  3. package/dist/{ChatPostComposerDialog-BuzKBfwA.js → ChatPostComposerDialog-l1iabm-7.js} +3 -3
  4. package/dist/{ChatSheetThumbnail-P76Jt0_u.js → ChatSheetThumbnail-C_C2oIV_.js} +1 -1
  5. package/dist/{CoachmarkProvider-CQJNVR53.js → CoachmarkProvider-B1YG7W1t.js} +10919 -11003
  6. package/dist/{DocumentToolbar-BIIQvnf3.js → DocumentToolbar-CmyNC2wp.js} +2 -2
  7. package/dist/{DocxViewer-DVeatd9-.js → DocxViewer-de6X1Pon.js} +3 -3
  8. package/dist/{F0AiProcessingOverlay-CHEMsQma.js → F0AiProcessingOverlay-DB5NFWs5.js} +22 -22
  9. package/dist/{F0CanvasPanel-jtcjSLLr.js → F0CanvasPanel-DKFZlybo.js} +30705 -28790
  10. package/dist/{F0DocumentViewer-Bg7uiU9c.js → F0DocumentViewer-DTY1Upm6.js} +21 -21
  11. package/dist/{F0Map-DLJ6sRN_.js → F0Map-Ib5OFPWf.js} +5 -5
  12. package/dist/{F0VideoPlayer-B8kLFnbf.js → F0VideoPlayer-B7zpyW3g.js} +44 -44
  13. package/dist/{LocationMap-B-e88fW6.js → LocationMap-C6TZJaOq.js} +1 -1
  14. package/dist/{SheetViewer-B8BmAg0d.js → SheetViewer-BO_8Vz3d.js} +4 -4
  15. package/dist/{TextViewer-DDtUtmWj.js → TextViewer-BGDy0VE3.js} +2 -2
  16. package/dist/ai.d.ts +19 -19
  17. package/dist/ai.js +2 -2
  18. package/dist/{axe-mZXA-kzX.js → axe-Cc8MuO-E.js} +1 -1
  19. package/dist/component-status.d.ts +19 -19
  20. package/dist/component-status.js +69 -63
  21. package/dist/{experimental-4hJ9yljk.js → experimental-CJxYO3TS.js} +1914 -1914
  22. package/dist/experimental.d.ts +120 -33
  23. package/dist/experimental.js +146 -145
  24. package/dist/f0.d.ts +30 -30
  25. package/dist/f0.js +10588 -11481
  26. package/dist/i18n-provider-defaults.d.ts +19 -19
  27. package/dist/index-5n9cK7fI.js +4 -0
  28. package/dist/{index-D0AH60ev.js → index-B4YJYrDq.js} +21 -21
  29. package/dist/{index-C8h4kG2n.js → index-B_CHe0P4.js} +3 -3
  30. package/dist/{index-B5dJ814t.js → index-C1hywv0e.js} +1 -1
  31. package/dist/index-D3eRTe5Y.js +8 -0
  32. package/dist/{maplibre-gl-BFrhpbuU.js → maplibre-gl-CF3gv2QL.js} +1 -1
  33. package/dist/{papaparse.min-Bh1MVuzw.js → papaparse.min-l46A1xl2.js} +1 -1
  34. package/dist/{pdfWorker-BRAGbLi_.js → pdfWorker-Ddggmoi-.js} +3 -4
  35. package/dist/{renderDocx-CVEzw9MK.js → renderDocx-E222oLTQ.js} +1 -1
  36. package/dist/{sheetPreview-BiccmyTD.js → sheetPreview-DC9RRwv0.js} +1 -1
  37. package/dist/styles.css +1 -1
  38. package/dist/tooltip-VHD1kZdF.js +7433 -0
  39. package/package.json +1 -2
  40. package/dist/_commonjsHelpers-ByX85dGu.js +0 -33
  41. package/dist/index-CW8sa9GP.js +0 -8
  42. package/dist/index-k8Xsj0d1.js +0 -4
  43. package/dist/tooltip-CrXp1Uaz.js +0 -4641
@@ -1615,19 +1615,10 @@ declare namespace Calendar {
1615
1615
 
1616
1616
  declare module "@tiptap/core" {
1617
1617
  interface Commands<ReturnType> {
1618
- fontSize: {
1619
- setFontSize: (fontSize: string) => ReturnType;
1620
- unsetFontSize: () => ReturnType;
1621
- };
1622
- }
1623
- }
1624
-
1625
-
1626
- declare module "@tiptap/core" {
1627
- interface Commands<ReturnType> {
1628
- aiBlock: {
1629
- insertAIBlock: (data: AIBlockData, config: AIBlockConfig) => ReturnType;
1630
- executeAIAction: (actionType: string, config: AIBlockConfig) => ReturnType;
1618
+ indent: {
1619
+ setIndent: (level: number) => ReturnType;
1620
+ unsetIndent: () => ReturnType;
1621
+ outdent: () => ReturnType;
1631
1622
  };
1632
1623
  }
1633
1624
  }
@@ -1647,10 +1638,9 @@ declare module "@tiptap/core" {
1647
1638
 
1648
1639
  declare module "@tiptap/core" {
1649
1640
  interface Commands<ReturnType> {
1650
- indent: {
1651
- setIndent: (level: number) => ReturnType;
1652
- unsetIndent: () => ReturnType;
1653
- outdent: () => ReturnType;
1641
+ fontSize: {
1642
+ setFontSize: (fontSize: string) => ReturnType;
1643
+ unsetFontSize: () => ReturnType;
1654
1644
  };
1655
1645
  }
1656
1646
  }
@@ -1658,8 +1648,9 @@ declare module "@tiptap/core" {
1658
1648
 
1659
1649
  declare module "@tiptap/core" {
1660
1650
  interface Commands<ReturnType> {
1661
- moodTracker: {
1662
- insertMoodTracker: (data: MoodTrackerData) => ReturnType;
1651
+ aiBlock: {
1652
+ insertAIBlock: (data: AIBlockData, config: AIBlockConfig) => ReturnType;
1653
+ executeAIAction: (actionType: string, config: AIBlockConfig) => ReturnType;
1663
1654
  };
1664
1655
  }
1665
1656
  }
@@ -1685,6 +1676,15 @@ declare module "@tiptap/core" {
1685
1676
  }
1686
1677
 
1687
1678
 
1679
+ declare module "@tiptap/core" {
1680
+ interface Commands<ReturnType> {
1681
+ moodTracker: {
1682
+ insertMoodTracker: (data: MoodTrackerData) => ReturnType;
1683
+ };
1684
+ }
1685
+ }
1686
+
1687
+
1688
1688
  declare namespace F0GraphNodeWrapperInner {
1689
1689
  var displayName: string;
1690
1690
  }
@@ -0,0 +1,4 @@
1
+ import { F as r } from "./F0VideoPlayer-B7zpyW3g.js";
2
+ export {
3
+ r as F0VideoPlayer
4
+ };
@@ -1,9 +1,9 @@
1
1
  import { jsxs as k, jsx as o, Fragment as rn } from "react/jsx-runtime";
2
2
  import { useRef as p, useEffect as v, useMemo as M, useCallback as A, useState as w } from "react";
3
- import { F as En, a as Fn, R as tn } from "./F0Map-DLJ6sRN_.js";
4
- import { o as Tn, q as Dn, r as ln, s as Pn, t as Bn, v as Ln, w as In, x as Qn, u as sn } from "./F0CanvasPanel-jtcjSLLr.js";
5
- import { d as L, f as on, u as jn } from "./tooltip-CrXp1Uaz.js";
6
- import { a as cn, u as Kn, S as Un } from "./CoachmarkProvider-CQJNVR53.js";
3
+ import { F as En, a as Fn, R as tn } from "./F0Map-Ib5OFPWf.js";
4
+ import { o as Tn, q as Dn, r as ln, s as Pn, t as Bn, v as Ln, w as In, x as Qn, y as jn, u as sn } from "./F0CanvasPanel-DKFZlybo.js";
5
+ import { d as L, f as on } from "./tooltip-VHD1kZdF.js";
6
+ import { a as cn, u as Kn, S as Un } from "./CoachmarkProvider-B1YG7W1t.js";
7
7
  const R = 3, _n = ({
8
8
  title: e,
9
9
  count: t,
@@ -60,13 +60,13 @@ const R = 3, _n = ({
60
60
  children: s,
61
61
  dataTestId: l
62
62
  }) => {
63
- const [c = i, u] = jn({
63
+ const [c = i, u] = Pn({
64
64
  prop: r,
65
65
  defaultProp: i,
66
66
  onChange: a
67
67
  });
68
- return /* @__PURE__ */ k(Pn, { open: c, onOpenChange: u, "data-testid": l, children: [
69
- /* @__PURE__ */ o(Bn, { asChild: !0, children: /* @__PURE__ */ k(
68
+ return /* @__PURE__ */ k(Bn, { open: c, onOpenChange: u, "data-testid": l, children: [
69
+ /* @__PURE__ */ o(Ln, { asChild: !0, children: /* @__PURE__ */ k(
70
70
  "button",
71
71
  {
72
72
  type: "button",
@@ -86,13 +86,13 @@ const R = 3, _n = ({
86
86
  "flex shrink-0 text-f1-icon transition-transform duration-200 motion-reduce:transition-none",
87
87
  c && "rotate-180"
88
88
  ),
89
- children: /* @__PURE__ */ o(Ln, { icon: In, size: "sm" })
89
+ children: /* @__PURE__ */ o(In, { icon: Qn, size: "sm" })
90
90
  }
91
91
  )
92
92
  ]
93
93
  }
94
94
  ) }),
95
- /* @__PURE__ */ o(Qn, { className: "px-0.5", children: s })
95
+ /* @__PURE__ */ o(jn, { className: "px-0.5", children: s })
96
96
  ] });
97
97
  }, Wn = ({
98
98
  rows: e,
@@ -283,7 +283,7 @@ const R = 3, _n = ({
283
283
  );
284
284
  },
285
285
  [l, d, f, s]
286
- ), S = p(null), N = A(
286
+ ), S = p(null), y = A(
287
287
  (n) => {
288
288
  b(n), x.has(n) && S.current && (O.current = n, S.current.focusMarker(n), O.current = null, D.current = !0);
289
289
  },
@@ -295,23 +295,23 @@ const R = 3, _n = ({
295
295
  },
296
296
  []
297
297
  );
298
- const [P, Nn] = w(!1), [yn, z] = w(!1), [B, H] = w(""), J = (n) => {
299
- n !== P && (Nn(n), gn?.(n));
298
+ const [P, yn] = w(!1), [Nn, z] = w(!1), [B, H] = w(""), J = (n) => {
299
+ n !== P && (yn(n), gn?.(n));
300
300
  }, An = () => {
301
301
  z(!0), H(""), J(!0);
302
302
  }, Z = M(
303
303
  () => ({
304
- select: (n) => n ? N(f(n)) : b(null),
304
+ select: (n) => n ? y(f(n)) : b(null),
305
305
  selectedRecordId: h,
306
306
  placement: (n) => {
307
307
  const g = f(n);
308
308
  return x.has(g) ? "placed" : W.get(g) ?? "unplaced";
309
309
  }
310
310
  }),
311
- [N, b, f, h, x, W]
312
- ), y = h ? d.find((n) => f(n) === h) ?? null : null, G = p(null);
313
- y && (G.current = y);
314
- const V = y ?? G.current, Y = A(() => S.current?.fitToMarkers(), []), wn = Xn({
311
+ [y, b, f, h, x, W]
312
+ ), N = h ? d.find((n) => f(n) === h) ?? null : null, G = p(null);
313
+ N && (G.current = N);
314
+ const V = N ?? G.current, Y = A(() => S.current?.fitToMarkers(), []), wn = Xn({
315
315
  querySignature: JSON.stringify({
316
316
  filters: e.currentFilters ?? {},
317
317
  search: e.currentSearch ?? ""
@@ -331,8 +331,8 @@ const R = 3, _n = ({
331
331
  const nn = p(null);
332
332
  v(() => {
333
333
  const n = `${c}:${u ?? 0}`;
334
- !c || nn.current === n || !d.some((g) => f(g) === c) || (nn.current = n, N(c));
335
- }, [c, u, d, f, N]);
334
+ !c || nn.current === n || !d.some((g) => f(g) === c) || (nn.current = n, y(c));
335
+ }, [c, u, d, f, y]);
336
336
  const Rn = M(() => {
337
337
  const n = B.trim().toLowerCase();
338
338
  return !C || !n ? null : [...m, ...T].filter(
@@ -365,7 +365,7 @@ const R = 3, _n = ({
365
365
  unplaced: m,
366
366
  placed: T,
367
367
  matches: Rn,
368
- notOnMapOpen: yn,
368
+ notOnMapOpen: Nn,
369
369
  onNotOnMapOpenChange: z
370
370
  }
371
371
  ),
@@ -399,7 +399,7 @@ const R = 3, _n = ({
399
399
  // oxlint-disable-next-line react/jsx-no-useless-fragment -- a node, not null: see above
400
400
  /* @__PURE__ */ o(rn, {})
401
401
  ) : null,
402
- detailOpen: !!y,
402
+ detailOpen: !!N,
403
403
  clearSelectionOnBackgroundClick: !F,
404
404
  fullScreen: !0
405
405
  }