@factorialco/f0-react 8.36.1 → 9.0.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 (33) hide show
  1. package/dist/{ChatPdfThumbnail-BbOPESdU.js → ChatPdfThumbnail-Ch2Pi_N2.js} +1 -1
  2. package/dist/{ChatPostComposerDialog-Cv7VtLD6.js → ChatPostComposerDialog-CW24c9tS.js} +3 -3
  3. package/dist/{MapProvider-Q8EU0u5y.js → CoachmarkProvider-BXGXfIw-.js} +15546 -15554
  4. package/dist/{DocumentToolbar-CVrrJ4iA.js → DocumentToolbar-Bp9iCtUO.js} +9 -9
  5. package/dist/{DocxViewer-AbtW-zX4.js → DocxViewer-CKrXuvnB.js} +2 -2
  6. package/dist/{F0AiProcessingOverlay-BDqqztvk.js → F0AiProcessingOverlay-SFLE4xoa.js} +1 -1
  7. package/dist/{F0CanvasPanel-WVtVnJRZ.js → F0CanvasPanel-D25Wuumh.js} +35213 -35210
  8. package/dist/{index-DqE_RHOm.js → F0DocumentViewer-BXlup6dL.js} +142 -149
  9. package/dist/{F0Map-DLKYcpUE.js → F0Map-B9_jeX3R.js} +13 -13
  10. package/dist/{F0VideoPlayer-D1jXuNEn.js → F0VideoPlayer-VJSe0ziC.js} +48 -48
  11. package/dist/{SheetViewer-KR2QIyYj.js → SheetViewer-BO9MbbYR.js} +3 -3
  12. package/dist/{TextViewer-D28lLt_m.js → TextViewer-B7B947JZ.js} +2 -2
  13. package/dist/ai.d.ts +61 -49
  14. package/dist/ai.js +2 -2
  15. package/dist/component-status.d.ts +15 -15
  16. package/dist/component-status.js +70 -70
  17. package/dist/{experimental-BSsHhEKt.js → experimental-Do9KcVJp.js} +764 -763
  18. package/dist/experimental.d.ts +123 -114
  19. package/dist/experimental.js +83 -83
  20. package/dist/f0.d.ts +405 -172
  21. package/dist/f0.js +7024 -7006
  22. package/dist/i18n-provider-defaults.d.ts +15 -15
  23. package/dist/index-Bt9_3eC1.js +4 -0
  24. package/dist/{index-P3wd7w_Q.js → index-C66JSsii.js} +1 -1
  25. package/dist/{index-CuAmARkm.js → index-C95Ox1WO.js} +15 -15
  26. package/dist/{index-C5FgdXF2.js → index-W5BBvrFa.js} +2 -2
  27. package/dist/index-a7A0EHsJ.js +8 -0
  28. package/dist/pdfWorker-Bi4FxYtY.js +13120 -0
  29. package/package.json +4 -4
  30. package/dist/index-B5m0OpRD.js +0 -4
  31. package/dist/pdfWorker-C2B0uWA2.js +0 -13120
  32. /package/dist/{MapProvider.css → CoachmarkProvider.css} +0 -0
  33. /package/dist/{index2.css → F0DocumentViewer.css} +0 -0
@@ -1610,9 +1610,9 @@ declare namespace Calendar {
1610
1610
 
1611
1611
  declare module "@tiptap/core" {
1612
1612
  interface Commands<ReturnType> {
1613
- aiBlock: {
1614
- insertAIBlock: (data: AIBlockData, config: AIBlockConfig) => ReturnType;
1615
- executeAIAction: (actionType: string, config: AIBlockConfig) => ReturnType;
1613
+ fontSize: {
1614
+ setFontSize: (fontSize: string) => ReturnType;
1615
+ unsetFontSize: () => ReturnType;
1616
1616
  };
1617
1617
  }
1618
1618
  }
@@ -1620,11 +1620,9 @@ declare module "@tiptap/core" {
1620
1620
 
1621
1621
  declare module "@tiptap/core" {
1622
1622
  interface Commands<ReturnType> {
1623
- enhanceHighlight: {
1624
- setEnhanceHighlight: (from: number, to: number, options?: {
1625
- placeholder?: string;
1626
- }) => ReturnType;
1627
- clearEnhanceHighlight: () => ReturnType;
1623
+ aiBlock: {
1624
+ insertAIBlock: (data: AIBlockData, config: AIBlockConfig) => ReturnType;
1625
+ executeAIAction: (actionType: string, config: AIBlockConfig) => ReturnType;
1628
1626
  };
1629
1627
  }
1630
1628
  }
@@ -1632,9 +1630,10 @@ declare module "@tiptap/core" {
1632
1630
 
1633
1631
  declare module "@tiptap/core" {
1634
1632
  interface Commands<ReturnType> {
1635
- fontSize: {
1636
- setFontSize: (fontSize: string) => ReturnType;
1637
- unsetFontSize: () => ReturnType;
1633
+ indent: {
1634
+ setIndent: (level: number) => ReturnType;
1635
+ unsetIndent: () => ReturnType;
1636
+ outdent: () => ReturnType;
1638
1637
  };
1639
1638
  }
1640
1639
  }
@@ -1642,10 +1641,11 @@ declare module "@tiptap/core" {
1642
1641
 
1643
1642
  declare module "@tiptap/core" {
1644
1643
  interface Commands<ReturnType> {
1645
- indent: {
1646
- setIndent: (level: number) => ReturnType;
1647
- unsetIndent: () => ReturnType;
1648
- outdent: () => ReturnType;
1644
+ enhanceHighlight: {
1645
+ setEnhanceHighlight: (from: number, to: number, options?: {
1646
+ placeholder?: string;
1647
+ }) => ReturnType;
1648
+ clearEnhanceHighlight: () => ReturnType;
1649
1649
  };
1650
1650
  }
1651
1651
  }
@@ -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-WVtVnJRZ.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-WVtVnJRZ.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-Q8EU0u5y.js";
6
- import { F as Kn, a as Un, R as tn } from "./F0Map-DLKYcpUE.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 ?? ""),