@factorialco/f0-react 8.37.0 → 9.1.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/{ChatPdfThumbnail-D17gaAZw.js → ChatPdfThumbnail-Ch2Pi_N2.js} +1 -1
  2. package/dist/{ChatPostComposerDialog-Dzcwl3UT.js → ChatPostComposerDialog-CW24c9tS.js} +3 -3
  3. package/dist/{MapProvider-DrUuwDLP.js → CoachmarkProvider-BXGXfIw-.js} +1912 -1913
  4. package/dist/{DocumentToolbar-BF90Kcrb.js → DocumentToolbar-Bp9iCtUO.js} +2 -2
  5. package/dist/{DocxViewer-DXUC2CUW.js → DocxViewer-CKrXuvnB.js} +2 -2
  6. package/dist/{F0AiProcessingOverlay-DTsO9rEl.js → F0AiProcessingOverlay-SFLE4xoa.js} +1 -1
  7. package/dist/{F0CanvasPanel-kbwLvapQ.js → F0CanvasPanel-D25Wuumh.js} +19534 -19534
  8. package/dist/{F0DocumentViewer-Bk7ciWZW.js → F0DocumentViewer-BXlup6dL.js} +4 -4
  9. package/dist/{F0Map-B_XG6Txo.js → F0Map-B9_jeX3R.js} +13 -13
  10. package/dist/{F0VideoPlayer-Cdq6rTqq.js → F0VideoPlayer-VJSe0ziC.js} +2 -2
  11. package/dist/{SheetViewer-DgLdv4qf.js → SheetViewer-BO9MbbYR.js} +3 -3
  12. package/dist/{TextViewer-7qYfyanJ.js → TextViewer-B7B947JZ.js} +2 -2
  13. package/dist/ai.d.ts +45 -44
  14. package/dist/ai.js +2 -2
  15. package/dist/component-status.d.ts +17 -17
  16. package/dist/component-status.js +43 -43
  17. package/dist/{experimental-B_Hvv6tU.js → experimental-Do9KcVJp.js} +610 -610
  18. package/dist/experimental.d.ts +72 -68
  19. package/dist/experimental.js +28 -28
  20. package/dist/f0.d.ts +117 -102
  21. package/dist/f0.js +7863 -7778
  22. package/dist/i18n-provider-defaults.d.ts +17 -17
  23. package/dist/index-Bt9_3eC1.js +4 -0
  24. package/dist/{index-QJVt3QQ2.js → index-C66JSsii.js} +1 -1
  25. package/dist/{index-HEb5Ocnl.js → index-C95Ox1WO.js} +15 -15
  26. package/dist/{index-BQthngzU.js → index-W5BBvrFa.js} +2 -2
  27. package/dist/index-a7A0EHsJ.js +8 -0
  28. package/dist/{pdfWorker-CX_u28dQ.js → pdfWorker-Bi4FxYtY.js} +2 -2
  29. package/package.json +4 -4
  30. package/dist/index-BGG-4WaL.js +0 -4
  31. package/dist/index-CzPx-LpF.js +0 -8
  32. /package/dist/{MapProvider.css → CoachmarkProvider.css} +0 -0
@@ -1620,9 +1620,10 @@ declare module "@tiptap/core" {
1620
1620
 
1621
1621
  declare module "@tiptap/core" {
1622
1622
  interface Commands<ReturnType> {
1623
- aiBlock: {
1624
- insertAIBlock: (data: AIBlockData, config: AIBlockConfig) => ReturnType;
1625
- executeAIAction: (actionType: string, config: AIBlockConfig) => ReturnType;
1623
+ indent: {
1624
+ setIndent: (level: number) => ReturnType;
1625
+ unsetIndent: () => ReturnType;
1626
+ outdent: () => ReturnType;
1626
1627
  };
1627
1628
  }
1628
1629
  }
@@ -1630,11 +1631,8 @@ declare module "@tiptap/core" {
1630
1631
 
1631
1632
  declare module "@tiptap/core" {
1632
1633
  interface Commands<ReturnType> {
1633
- enhanceHighlight: {
1634
- setEnhanceHighlight: (from: number, to: number, options?: {
1635
- placeholder?: string;
1636
- }) => ReturnType;
1637
- clearEnhanceHighlight: () => ReturnType;
1634
+ moodTracker: {
1635
+ insertMoodTracker: (data: MoodTrackerData) => ReturnType;
1638
1636
  };
1639
1637
  }
1640
1638
  }
@@ -1642,8 +1640,9 @@ declare module "@tiptap/core" {
1642
1640
 
1643
1641
  declare module "@tiptap/core" {
1644
1642
  interface Commands<ReturnType> {
1645
- moodTracker: {
1646
- insertMoodTracker: (data: MoodTrackerData) => ReturnType;
1643
+ aiBlock: {
1644
+ insertAIBlock: (data: AIBlockData, config: AIBlockConfig) => ReturnType;
1645
+ executeAIAction: (actionType: string, config: AIBlockConfig) => ReturnType;
1647
1646
  };
1648
1647
  }
1649
1648
  }
@@ -1651,10 +1650,10 @@ declare module "@tiptap/core" {
1651
1650
 
1652
1651
  declare module "@tiptap/core" {
1653
1652
  interface Commands<ReturnType> {
1654
- indent: {
1655
- setIndent: (level: number) => ReturnType;
1656
- unsetIndent: () => ReturnType;
1657
- outdent: () => ReturnType;
1653
+ videoEmbed: {
1654
+ setVideoEmbed: (options: {
1655
+ src: string;
1656
+ }) => ReturnType;
1658
1657
  };
1659
1658
  }
1660
1659
  }
@@ -1671,10 +1670,11 @@ declare module "@tiptap/core" {
1671
1670
 
1672
1671
  declare module "@tiptap/core" {
1673
1672
  interface Commands<ReturnType> {
1674
- videoEmbed: {
1675
- setVideoEmbed: (options: {
1676
- src: string;
1673
+ enhanceHighlight: {
1674
+ setEnhanceHighlight: (from: number, to: number, options?: {
1675
+ placeholder?: string;
1677
1676
  }) => ReturnType;
1677
+ clearEnhanceHighlight: () => ReturnType;
1678
1678
  };
1679
1679
  }
1680
1680
  }
@@ -0,0 +1,4 @@
1
+ import { F as r } from "./F0VideoPlayer-VJSe0ziC.js";
2
+ export {
3
+ r as F0VideoPlayer
4
+ };
@@ -1,4 +1,4 @@
1
- import { y as A } from "./F0CanvasPanel-kbwLvapQ.js";
1
+ import { y as A } from "./F0CanvasPanel-D25Wuumh.js";
2
2
  const G = (e) => {
3
3
  const t = /* @__PURE__ */ new Map();
4
4
  return {
@@ -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 { o as En, q as Fn, r as ln, s as Tn, t as Dn, v as Pn, w as Bn, x as Ln, u as sn } from "./F0CanvasPanel-kbwLvapQ.js";
4
- import { d as L, f as on, u as In } from "./tooltip-CrXp1Uaz.js";
5
- import { a as cn, u as Qn, S as jn } from "./MapProvider-DrUuwDLP.js";
6
- import { F as Kn, a as Un, R as tn } from "./F0Map-B_XG6Txo.js";
3
+ import { F as En, a as Fn, R as tn } from "./F0Map-B9_jeX3R.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-D25Wuumh.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-BXGXfIw-.js";
7
7
  const R = 3, _n = ({
8
8
  title: e,
9
9
  count: t,
@@ -25,7 +25,7 @@ const R = 3, _n = ({
25
25
  ),
26
26
  children: [
27
27
  /* @__PURE__ */ o("span", { className: "whitespace-nowrap", children: /* @__PURE__ */ o(
28
- En,
28
+ Tn,
29
29
  {
30
30
  variant: "label",
31
31
  content: e,
@@ -38,7 +38,7 @@ const R = 3, _n = ({
38
38
  // the point. The rest go in as `remainingCount`, not items, which would
39
39
  // make the bubble a button inside this button.
40
40
  /* @__PURE__ */ o(
41
- Fn,
41
+ Dn,
42
42
  {
43
43
  type: "person",
44
44
  avatars: a.slice(0, R),
@@ -60,13 +60,13 @@ const R = 3, _n = ({
60
60
  children: s,
61
61
  dataTestId: l
62
62
  }) => {
63
- const [c = i, u] = In({
63
+ const [c = i, u] = jn({
64
64
  prop: r,
65
65
  defaultProp: i,
66
66
  onChange: a
67
67
  });
68
- return /* @__PURE__ */ k(Tn, { open: c, onOpenChange: u, "data-testid": l, children: [
69
- /* @__PURE__ */ o(Dn, { asChild: !0, children: /* @__PURE__ */ k(
68
+ return /* @__PURE__ */ k(Pn, { open: c, onOpenChange: u, "data-testid": l, children: [
69
+ /* @__PURE__ */ o(Bn, { 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(Pn, { icon: Bn, size: "sm" })
89
+ children: /* @__PURE__ */ o(Ln, { icon: In, size: "sm" })
90
90
  }
91
91
  )
92
92
  ]
93
93
  }
94
94
  ) }),
95
- /* @__PURE__ */ o(Ln, { className: "px-0.5", children: s })
95
+ /* @__PURE__ */ o(Qn, { className: "px-0.5", children: s })
96
96
  ] });
97
97
  }, Wn = ({
98
98
  rows: e,
@@ -252,7 +252,7 @@ const R = 3, _n = ({
252
252
  ), Mn = M(
253
253
  () => e.dataAdapter.paginationType ? { ...e.dataAdapter, perPage: j } : e.dataAdapter,
254
254
  [e.dataAdapter, j]
255
- ), { data: Cn, paginationInfo: K, isInitialLoading: U, isLoading: xn } = Qn({ ...e, dataAdapter: Mn }, { onError: bn }), d = Cn.records;
255
+ ), { data: Cn, paginationInfo: K, isInitialLoading: U, isLoading: xn } = Kn({ ...e, dataAdapter: Mn }, { onError: bn }), d = Cn.records;
256
256
  v(() => {
257
257
  vn({
258
258
  totalItems: K?.total || d.length,
@@ -342,8 +342,8 @@ const R = 3, _n = ({
342
342
  () => a ? zn(m.map(a)) : null,
343
343
  [m, a]
344
344
  ), en = "flex h-full min-h-0 flex-1 flex-col border-0 border-t border-solid border-f1-border-secondary";
345
- return U ? /* @__PURE__ */ o("div", { className: en, children: /* @__PURE__ */ o(Kn, {}) }) : /* @__PURE__ */ o("div", { className: en, children: /* @__PURE__ */ o(
346
- Un,
345
+ return U ? /* @__PURE__ */ o("div", { className: en, children: /* @__PURE__ */ o(En, {}) }) : /* @__PURE__ */ o("div", { className: en, children: /* @__PURE__ */ o(
346
+ Fn,
347
347
  {
348
348
  ref: S,
349
349
  markers: _,
@@ -386,7 +386,7 @@ const R = 3, _n = ({
386
386
  }
387
387
  ),
388
388
  search: C ? /* @__PURE__ */ o(
389
- jn,
389
+ Un,
390
390
  {
391
391
  value: B,
392
392
  onChange: (n) => H(n ?? ""),