@factorialco/f0-react 10.13.0 → 10.15.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 (43) hide show
  1. package/dist/{ChatPostComposerDialog-Dxf_Nbbb.js → ChatPostComposerDialog-CIKfoH8G.js} +3 -3
  2. package/dist/{CoachmarkProvider-ByfCE0-j.js → CoachmarkProvider-BQGJN9Eq.js} +16122 -16128
  3. package/dist/{DocumentToolbar-UFkOiw8e.js → DocumentToolbar-C7Hoqt2k.js} +5 -5
  4. package/dist/{DocxViewer-BjmzL4sn.js → DocxViewer-lSeezeTM.js} +2 -2
  5. package/dist/{F0AiProcessingOverlay-B2kWuLdK.js → F0AiProcessingOverlay-mGAGIMhR.js} +467 -466
  6. package/dist/{F0CanvasPanel-9PijExob.js → F0CanvasPanel-DpK3VDqw.js} +7373 -7340
  7. package/dist/{F0DocumentViewer-hMDS3Kpg.js → F0DocumentViewer-3dkTQl5F.js} +9 -9
  8. package/dist/F0DocumentViewer-BXXUyUaZ.js +3 -0
  9. package/dist/{F0Map-CznQg3YF.js → F0Map-CbaCGcqg.js} +845 -607
  10. package/dist/{F0Select-By_QpX1S.js → F0Select-CFbVOJB3.js} +73 -73
  11. package/dist/{F0Box-CYL5_Zhb.js → F0Text-eOwHoc51.js} +104 -96
  12. package/dist/{F0VideoPlayer-BByW1cIV.js → F0VideoPlayer-BdQ7J79i.js} +279 -279
  13. package/dist/F0VideoPlayer-pCo7xxqk.js +1 -0
  14. package/dist/{Map-DZ1yBUGL.js → Map-CqeYx7ZH.js} +53 -52
  15. package/dist/{PdfThumbnail-Dkwm6GDn.js → PdfThumbnail-BrRRXFmm.js} +1 -1
  16. package/dist/{SheetViewer-DT6WypD8.js → SheetViewer-i-Apnmgp.js} +4 -4
  17. package/dist/{TextViewer-D8MLMNev.js → TextViewer-DZmOqOxb.js} +2 -2
  18. package/dist/ai.d.ts +3 -3
  19. package/dist/ai.js +4 -4
  20. package/dist/component-status.js +28 -28
  21. package/dist/{dist-CUsub1Mu.js → dist-Ck_UA8Lz.js} +1 -1
  22. package/dist/{dist-CSP_0yKt.js → dist-Cuwaibqg.js} +2 -1
  23. package/dist/experimental.d.ts +216 -115
  24. package/dist/experimental.js +5917 -4716
  25. package/dist/{exports-0B2luDkl.d.ts → exports-CUQ_f1Aq.d.ts} +1 -1
  26. package/dist/f0.d.ts +12 -7
  27. package/dist/f0.js +704 -704
  28. package/dist/{google-B7uAYsxU.js → google-D1V0swd7.js} +1 -1
  29. package/dist/{i18n-provider-defaults-BA2_-hRH.js → i18n-provider-defaults-Ch0JDGbK.js} +12 -3
  30. package/dist/{i18n-provider-defaults-m88KkXdP.d.ts → i18n-provider-defaults-D1lWzbYx.d.ts} +14 -1
  31. package/dist/i18n-provider-defaults.d.ts +1 -1
  32. package/dist/i18n-provider-defaults.js +1 -1
  33. package/dist/{index-Bdpf44A3.d.ts → index--CBjax6U.d.ts} +2 -2
  34. package/dist/{index-s5SdT3uE.d.ts → index-2J8R9Uml.d.ts} +3 -1
  35. package/dist/{maplibre-GffVTD0r.js → maplibre-C6hlLglQ.js} +2 -2
  36. package/dist/{pdfWorker-C3UVNtZV.js → pdfWorker-DR5Zoo3d.js} +2 -2
  37. package/dist/{popover-B7fqB9lu.js → popover-DNcAIP25.js} +20 -20
  38. package/dist/styles.css +1 -1
  39. package/dist/{tooltip-TOvfXq9F.js → tooltip-BX4dSfeL.js} +338 -247
  40. package/dist/{useData-CAl9SKtE.js → useData-zygrn6e-.js} +950 -949
  41. package/package.json +2 -2
  42. package/dist/F0DocumentViewer-DDaXV0U3.js +0 -3
  43. package/dist/F0VideoPlayer-DerqL5g5.js +0 -1
@@ -1,30 +1,31 @@
1
- import { Yn as e, er as t, hn as n, nr as r, on as i } from "./popover-B7fqB9lu.js";
2
- import { I as a } from "./tooltip-TOvfXq9F.js";
3
- import { createContext as o, forwardRef as s, useCallback as c, useContext as l, useMemo as u, useRef as d, useState as f } from "react";
4
- import { jsx as p, jsxs as m } from "react/jsx-runtime";
1
+ import { Yn as e, ar as t, er as n, hn as r, nr as i, on as a } from "./popover-DNcAIP25.js";
2
+ import { L as o } from "./tooltip-BX4dSfeL.js";
3
+ import { L as s } from "./useData-zygrn6e-.js";
4
+ import { createContext as c, forwardRef as l, useCallback as u, useContext as d, useMemo as f, useRef as p, useState as m } from "react";
5
+ import { jsx as h, jsxs as g } from "react/jsx-runtime";
5
6
  //#region ../../node_modules/.pnpm/motion@12.17.0_@emotion+is-prop-valid@1.3.1_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/motion/dist/es/framer-motion/dist/es/context/DeprecatedLayoutGroupContext.mjs
6
- var h = o(null);
7
+ var _ = c(null);
7
8
  //#endregion
8
9
  //#region ../../node_modules/.pnpm/motion@12.17.0_@emotion+is-prop-valid@1.3.1_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/motion/dist/es/framer-motion/dist/es/utils/use-is-mounted.mjs
9
- function g() {
10
- let e = d(!1);
11
- return t(() => (e.current = !0, () => {
10
+ function v() {
11
+ let e = p(!1);
12
+ return n(() => (e.current = !0, () => {
12
13
  e.current = !1;
13
14
  }), []), e;
14
15
  }
15
16
  //#endregion
16
17
  //#region ../../node_modules/.pnpm/motion@12.17.0_@emotion+is-prop-valid@1.3.1_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/motion/dist/es/framer-motion/dist/es/utils/use-force-update.mjs
17
- function _() {
18
- let t = g(), [n, r] = f(0), i = c(() => {
18
+ function y() {
19
+ let t = v(), [n, r] = m(0), i = u(() => {
19
20
  t.current && r(n + 1);
20
21
  }, [n]);
21
- return [c(() => e.postRender(i), [i]), n];
22
+ return [u(() => e.postRender(i), [i]), n];
22
23
  }
23
24
  //#endregion
24
25
  //#region ../../node_modules/.pnpm/motion@12.17.0_@emotion+is-prop-valid@1.3.1_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/motion/dist/es/framer-motion/dist/es/projection/node/group.mjs
25
- var v = (e) => !e.isLayoutDirty && e.willUpdate(!1);
26
- function y() {
27
- let e = /* @__PURE__ */ new Set(), t = /* @__PURE__ */ new WeakMap(), n = () => e.forEach(v);
26
+ var b = (e) => !e.isLayoutDirty && e.willUpdate(!1);
27
+ function x() {
28
+ let e = /* @__PURE__ */ new Set(), t = /* @__PURE__ */ new WeakMap(), n = () => e.forEach(b);
28
29
  return {
29
30
  add: (r) => {
30
31
  e.add(r), t.set(r, r.addEventListener("willUpdate", n));
@@ -39,38 +40,38 @@ function y() {
39
40
  }
40
41
  //#endregion
41
42
  //#region ../../node_modules/.pnpm/motion@12.17.0_@emotion+is-prop-valid@1.3.1_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/motion/dist/es/framer-motion/dist/es/components/LayoutGroup/index.mjs
42
- var b = (e) => e === !0, x = (e) => b(e === !0) || e === "id", S = ({ children: e, id: t, inherit: n = !0 }) => {
43
- let i = l(r), a = l(h), [o, s] = _(), c = d(null), f = i.id || a;
44
- c.current === null && (x(n) && f && (t = t ? f + "-" + t : f), c.current = {
43
+ var S = (e) => e === !0, C = (e) => S(e === !0) || e === "id", w = ({ children: e, id: t, inherit: n = !0 }) => {
44
+ let r = d(i), a = d(_), [o, s] = y(), c = p(null), l = r.id || a;
45
+ c.current === null && (C(n) && l && (t = t ? l + "-" + t : l), c.current = {
45
46
  id: t,
46
- group: b(n) && i.group || y()
47
+ group: S(n) && r.group || x()
47
48
  });
48
- let m = u(() => ({
49
+ let u = f(() => ({
49
50
  ...c.current,
50
51
  forceRender: o
51
52
  }), [s]);
52
- return p(r.Provider, {
53
- value: m,
53
+ return h(i.Provider, {
54
+ value: u,
54
55
  children: e
55
56
  });
56
- }, C = s((e, t) => /* @__PURE__ */ m("svg", {
57
+ }, T = l((e, t) => /* @__PURE__ */ g("svg", {
57
58
  xmlns: "http://www.w3.org/2000/svg",
58
59
  fill: "none",
59
60
  viewBox: "0 0 24 24",
60
61
  ref: t,
61
62
  ...e,
62
- children: [/* @__PURE__ */ p("path", {
63
+ children: [/* @__PURE__ */ h("path", {
63
64
  stroke: "currentColor",
64
65
  strokeLinecap: "round",
65
66
  strokeLinejoin: "round",
66
67
  d: "M16.9497 7.05026L12 12L7.05025 16.9498"
67
- }), /* @__PURE__ */ p("path", {
68
+ }), /* @__PURE__ */ h("path", {
68
69
  stroke: "currentColor",
69
70
  strokeLinecap: "round",
70
71
  strokeLinejoin: "round",
71
72
  d: "M12 12L7.05025 7.05026L16.9497 16.9498"
72
73
  })]
73
- })), w = { background: {
74
+ })), E = { background: {
74
75
  transparent: "bg-transparent",
75
76
  primary: "bg-f1-background",
76
77
  secondary: "bg-f1-background-secondary",
@@ -93,7 +94,7 @@ var b = (e) => e === !0, x = (e) => b(e === !0) || e === "id", S = ({ children:
93
94
  "selected-secondary": "bg-f1-background-selected-secondary",
94
95
  "selected-bold": "bg-f1-background-selected-bold",
95
96
  overlay: "bg-f1-background-overlay"
96
- } }, T = {
97
+ } }, D = {
97
98
  borderColor: {
98
99
  default: "border-f1-border",
99
100
  secondary: "border-f1-border-secondary",
@@ -202,7 +203,7 @@ var b = (e) => e === !0, x = (e) => b(e === !0) || e === "id", S = ({ children:
202
203
  double: "border-double",
203
204
  none: "border-none"
204
205
  }
205
- }, E = {}, D = {
206
+ }, O = {}, k = {
206
207
  width: {
207
208
  auto: "w-auto",
208
209
  full: "w-full",
@@ -425,6 +426,7 @@ var b = (e) => e === !0, x = (e) => b(e === !0) || e === "id", S = ({ children:
425
426
  },
426
427
  maxWidth: {
427
428
  auto: "max-w-none",
429
+ content: "max-w-content",
428
430
  full: "max-w-full",
429
431
  screen: "max-w-screen",
430
432
  min: "max-w-min",
@@ -533,7 +535,7 @@ var b = (e) => e === !0, x = (e) => b(e === !0) || e === "id", S = ({ children:
533
535
  "1/6": "max-h-1/6",
534
536
  "5/6": "max-h-5/6"
535
537
  }
536
- }, O = {
538
+ }, A = {
537
539
  display: {
538
540
  block: "block",
539
541
  flex: "flex",
@@ -549,7 +551,7 @@ var b = (e) => e === !0, x = (e) => b(e === !0) || e === "id", S = ({ children:
549
551
  fixed: "fixed",
550
552
  sticky: "sticky"
551
553
  }
552
- }, k = {
554
+ }, j = {
553
555
  divider: {
554
556
  x: "divide-x divide-y-0 divide-solid",
555
557
  y: "divide-y divide-x-0 divide-solid"
@@ -570,7 +572,7 @@ var b = (e) => e === !0, x = (e) => b(e === !0) || e === "id", S = ({ children:
570
572
  "positive-bold": "divide-f1-border-positive-bold",
571
573
  promote: "divide-f1-border-promote"
572
574
  }
573
- }, A = {
575
+ }, M = {
574
576
  gap: {
575
577
  none: "gap-0",
576
578
  xs: "gap-0.5",
@@ -618,7 +620,7 @@ var b = (e) => e === !0, x = (e) => b(e === !0) || e === "id", S = ({ children:
618
620
  true: "shrink",
619
621
  false: "shrink-0"
620
622
  }
621
- }, j = {}, M = {
623
+ }, N = {}, P = {
622
624
  columns: {
623
625
  none: "grid-cols-none",
624
626
  1: "grid-cols-1",
@@ -683,7 +685,7 @@ var b = (e) => e === !0, x = (e) => b(e === !0) || e === "id", S = ({ children:
683
685
  6: "row-span-6",
684
686
  full: "row-span-full"
685
687
  }
686
- }, N = {
688
+ }, F = {
687
689
  top: {
688
690
  none: "top-0",
689
691
  xs: "top-1",
@@ -732,7 +734,7 @@ var b = (e) => e === !0, x = (e) => b(e === !0) || e === "id", S = ({ children:
732
734
  "4xl": "left-12",
733
735
  "5xl": "left-16"
734
736
  }
735
- }, P = {
737
+ }, I = {
736
738
  margin: {
737
739
  none: "m-0",
738
740
  xs: "m-1",
@@ -824,7 +826,7 @@ var b = (e) => e === !0, x = (e) => b(e === !0) || e === "id", S = ({ children:
824
826
  "5xl": "mr-16",
825
827
  auto: "mr-auto"
826
828
  }
827
- }, F = {}, I = {
829
+ }, L = {}, R = {
828
830
  overflow: {
829
831
  visible: "overflow-visible",
830
832
  hidden: "overflow-hidden",
@@ -843,7 +845,7 @@ var b = (e) => e === !0, x = (e) => b(e === !0) || e === "id", S = ({ children:
843
845
  auto: "overflow-y-auto",
844
846
  scroll: "overflow-y-scroll"
845
847
  }
846
- }, L = {}, R = {
848
+ }, z = {}, B = {
847
849
  padding: {
848
850
  none: "p-0",
849
851
  xs: "p-1",
@@ -928,13 +930,13 @@ var b = (e) => e === !0, x = (e) => b(e === !0) || e === "id", S = ({ children:
928
930
  "4xl": "pr-12",
929
931
  "5xl": "pr-16"
930
932
  }
931
- }, z = {}, B = { boxShadow: {
933
+ }, V = {}, H = { boxShadow: {
932
934
  none: "shadow-none",
933
935
  sm: "shadow",
934
936
  md: "shadow-md",
935
937
  lg: "shadow-lg",
936
938
  xl: "shadow-xl"
937
- } }, V = { zIndex: {
939
+ } }, U = { zIndex: {
938
940
  auto: "z-auto",
939
941
  0: "z-0",
940
942
  10: "z-10",
@@ -942,92 +944,92 @@ var b = (e) => e === !0, x = (e) => b(e === !0) || e === "id", S = ({ children:
942
944
  30: "z-30",
943
945
  40: "z-40",
944
946
  50: "z-50"
945
- } }, H = {
946
- ...O,
947
- ...N,
948
- ...R,
949
- ...P,
947
+ } }, W = {
950
948
  ...A,
951
- ...M,
952
- ...D,
953
- ...w,
954
- ...T,
949
+ ...F,
950
+ ...B,
955
951
  ...I,
952
+ ...M,
953
+ ...P,
956
954
  ...k,
957
- ...V
955
+ ...E,
956
+ ...D,
957
+ ...R,
958
+ ...j,
959
+ ...U
958
960
  };
959
- function U(e, t) {
961
+ function G(e, t) {
960
962
  return t.split(" ").map((t) => `${e}:${t}`).join(" ");
961
963
  }
962
964
  function ee(e, t) {
963
965
  let n = [];
964
966
  for (let [r, i] of Object.entries(t)) {
965
967
  if (i == null) continue;
966
- let t = H[r];
968
+ let t = W[r];
967
969
  if (!t) continue;
968
970
  let a = t[String(i)];
969
- a && n.push(U(e, a));
971
+ a && n.push(G(e, a));
970
972
  }
971
973
  return n.join(" ");
972
974
  }
973
975
  //#endregion
974
976
  //#region src/elements/F0Box/F0Box.tsx
975
- var te = n({
977
+ var te = r({
976
978
  base: "",
977
979
  variants: {
978
- ...O,
979
- ...N,
980
- ...R,
981
- ...P,
982
980
  ...A,
983
- ...M,
984
- ...D,
985
- ...w,
986
- ...T,
981
+ ...F,
982
+ ...B,
987
983
  ...I,
984
+ ...M,
985
+ ...P,
988
986
  ...k,
989
- ...B,
990
- ...V
987
+ ...E,
988
+ ...D,
989
+ ...R,
990
+ ...j,
991
+ ...H,
992
+ ...U
991
993
  },
992
994
  defaultVariants: {
993
- ...z,
994
- ...F,
995
- ...j,
996
- ...E,
997
- ...L
995
+ ...V,
996
+ ...L,
997
+ ...N,
998
+ ...O,
999
+ ...z
998
1000
  }
999
1001
  }), ne = [
1000
1002
  "sm",
1001
1003
  "md",
1002
1004
  "lg",
1003
1005
  "xl"
1004
- ], W = s(({ display: e, position: t, top: n, right: r, bottom: i, left: o, zIndex: s, padding: c, paddingX: l, paddingY: u, paddingTop: d, paddingBottom: f, paddingLeft: m, paddingRight: h, margin: g, marginX: _, marginY: v, marginTop: y, marginBottom: b, marginLeft: x, marginRight: S, gap: C, columns: w, rows: T, colSpan: E, colStart: D, rowSpan: O, width: k, height: A, minWidth: j, minHeight: M, maxWidth: N, maxHeight: P, background: F, borderColor: I, border: L, borderTop: R, borderBottom: z, borderLeft: B, borderRight: V, borderRadius: H, borderRadiusTopLeft: U, borderRadiusTopRight: W, borderRadiusBottomLeft: G, borderRadiusBottomRight: re, borderStyle: K, overflow: q, overflowX: J, overflowY: Y, divider: X, dividerColor: Z, boxShadow: ie, alignItems: ae, justifyContent: oe, flexDirection: se, flexWrap: ce, grow: le, shrink: ue, sm: de, md: fe, lg: pe, xl: me, ...Q }, he) => {
1006
+ ], K = l(({ display: e, position: t, top: n, right: r, bottom: i, left: a, zIndex: s, padding: c, paddingX: l, paddingY: u, paddingTop: d, paddingBottom: f, paddingLeft: p, paddingRight: m, margin: g, marginX: _, marginY: v, marginTop: y, marginBottom: b, marginLeft: x, marginRight: S, gap: C, columns: w, rows: T, colSpan: E, colStart: D, rowSpan: O, width: k, height: A, minWidth: j, minHeight: M, maxWidth: N, maxHeight: P, background: F, borderColor: I, border: L, borderTop: R, borderBottom: z, borderLeft: B, borderRight: V, borderRadius: H, borderRadiusTopLeft: U, borderRadiusTopRight: W, borderRadiusBottomLeft: G, borderRadiusBottomRight: K, borderStyle: q, overflow: J, overflowX: Y, overflowY: X, divider: Z, dividerColor: Q, boxShadow: re, alignItems: ie, justifyContent: ae, flexDirection: oe, flexWrap: se, grow: ce, shrink: le, sm: ue, md: de, lg: fe, xl: pe, ...me }, he) => {
1005
1007
  let $ = R && R !== "none" || z && z !== "none" || B && B !== "none" || V && V !== "none", ge = L && L !== "none" || $, _e = {
1006
- sm: de,
1007
- md: fe,
1008
- lg: pe,
1009
- xl: me
1008
+ sm: ue,
1009
+ md: de,
1010
+ lg: fe,
1011
+ xl: pe
1010
1012
  }, ve = ne.map((e) => {
1011
1013
  let t = _e[e];
1012
1014
  return t ? ee(e, t) : "";
1013
1015
  }).filter(Boolean).join(" ");
1014
- return /* @__PURE__ */ p("div", {
1016
+ return /* @__PURE__ */ h("div", {
1015
1017
  ref: he,
1016
- className: a($ && "border-0", te({
1018
+ className: o($ && "border-0", te({
1017
1019
  display: e,
1018
1020
  position: t,
1019
1021
  top: n,
1020
1022
  right: r,
1021
1023
  bottom: i,
1022
- left: o,
1024
+ left: a,
1023
1025
  zIndex: s,
1024
1026
  padding: c,
1025
1027
  paddingX: l,
1026
1028
  paddingY: u,
1027
1029
  paddingTop: d,
1028
1030
  paddingBottom: f,
1029
- paddingLeft: m,
1030
- paddingRight: h,
1031
+ paddingLeft: p,
1032
+ paddingRight: m,
1031
1033
  margin: g,
1032
1034
  marginX: _,
1033
1035
  marginY: v,
@@ -1058,28 +1060,34 @@ var te = n({
1058
1060
  borderRadiusTopLeft: U,
1059
1061
  borderRadiusTopRight: W,
1060
1062
  borderRadiusBottomLeft: G,
1061
- borderRadiusBottomRight: re,
1062
- borderStyle: K,
1063
- overflow: q,
1064
- overflowX: J,
1065
- overflowY: Y,
1066
- divider: X,
1067
- dividerColor: Z,
1068
- alignItems: ae,
1069
- justifyContent: oe,
1070
- flexDirection: se,
1071
- flexWrap: ce,
1072
- grow: le,
1073
- shrink: ue,
1074
- boxShadow: ie
1075
- }), ve, ge && !I && "border-f1-border", X && !Z && "divide-f1-border", "scrollbar-macos"),
1076
- ...Q
1063
+ borderRadiusBottomRight: K,
1064
+ borderStyle: q,
1065
+ overflow: J,
1066
+ overflowX: Y,
1067
+ overflowY: X,
1068
+ divider: Z,
1069
+ dividerColor: Q,
1070
+ alignItems: ie,
1071
+ justifyContent: ae,
1072
+ flexDirection: oe,
1073
+ flexWrap: se,
1074
+ grow: ce,
1075
+ shrink: le,
1076
+ boxShadow: re
1077
+ }), ve, ge && !I && "border-f1-border", Z && !Q && "divide-f1-border", "scrollbar-macos"),
1078
+ ...me
1077
1079
  });
1078
1080
  });
1079
- W.displayName = "F0Box";
1080
- var G = i({
1081
+ K.displayName = "F0Box";
1082
+ var q = a({
1081
1083
  name: "F0Box",
1082
1084
  type: "layout"
1083
- }, W);
1085
+ }, K), J = l((e, t) => /* @__PURE__ */ h(s, {
1086
+ ref: t,
1087
+ markdown: e.markdown ?? !0,
1088
+ ...e
1089
+ }));
1090
+ J.displayName = "F0Text";
1091
+ var Y = t(J);
1084
1092
  //#endregion
1085
- export { C as n, S as r, G as t };
1093
+ export { w as i, q as n, T as r, Y as t };