@factorialco/f0-react 10.13.0 → 10.14.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-BxrYZgeD.js} +3 -3
  2. package/dist/{CoachmarkProvider-ByfCE0-j.js → CoachmarkProvider-B7vf6Rf8.js} +16122 -16128
  3. package/dist/{DocumentToolbar-UFkOiw8e.js → DocumentToolbar-i88m83fN.js} +5 -5
  4. package/dist/{DocxViewer-BjmzL4sn.js → DocxViewer-0VrDUDdP.js} +2 -2
  5. package/dist/{F0AiProcessingOverlay-B2kWuLdK.js → F0AiProcessingOverlay-E542wxCh.js} +466 -466
  6. package/dist/{F0CanvasPanel-9PijExob.js → F0CanvasPanel-Bcfvnx7a.js} +7368 -7340
  7. package/dist/{F0DocumentViewer-hMDS3Kpg.js → F0DocumentViewer-7wJ_GR18.js} +9 -9
  8. package/dist/F0DocumentViewer-CaYCivnb.js +3 -0
  9. package/dist/{F0Map-CznQg3YF.js → F0Map-D962E1Hx.js} +845 -607
  10. package/dist/{F0Select-By_QpX1S.js → F0Select-CFbVOJB3.js} +73 -73
  11. package/dist/{F0Box-CYL5_Zhb.js → F0Text-Bh96xM7I.js} +103 -96
  12. package/dist/{F0VideoPlayer-BByW1cIV.js → F0VideoPlayer-CFnv7V_M.js} +279 -279
  13. package/dist/F0VideoPlayer-Cog2q9vj.js +1 -0
  14. package/dist/{Map-DZ1yBUGL.js → Map-Ceow_6Vn.js} +53 -52
  15. package/dist/{PdfThumbnail-Dkwm6GDn.js → PdfThumbnail-D3CBg0nq.js} +1 -1
  16. package/dist/{SheetViewer-DT6WypD8.js → SheetViewer-CaBKc6ul.js} +4 -4
  17. package/dist/{TextViewer-D8MLMNev.js → TextViewer-C25UYWuA.js} +2 -2
  18. package/dist/ai.d.ts +3 -3
  19. package/dist/ai.js +4 -4
  20. package/dist/component-status.js +26 -26
  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 +4 -4
  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-BUEHHCOT.js} +2 -2
  36. package/dist/{pdfWorker-C3UVNtZV.js → pdfWorker-BbJO4zuj.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",
@@ -533,7 +534,7 @@ var b = (e) => e === !0, x = (e) => b(e === !0) || e === "id", S = ({ children:
533
534
  "1/6": "max-h-1/6",
534
535
  "5/6": "max-h-5/6"
535
536
  }
536
- }, O = {
537
+ }, A = {
537
538
  display: {
538
539
  block: "block",
539
540
  flex: "flex",
@@ -549,7 +550,7 @@ var b = (e) => e === !0, x = (e) => b(e === !0) || e === "id", S = ({ children:
549
550
  fixed: "fixed",
550
551
  sticky: "sticky"
551
552
  }
552
- }, k = {
553
+ }, j = {
553
554
  divider: {
554
555
  x: "divide-x divide-y-0 divide-solid",
555
556
  y: "divide-y divide-x-0 divide-solid"
@@ -570,7 +571,7 @@ var b = (e) => e === !0, x = (e) => b(e === !0) || e === "id", S = ({ children:
570
571
  "positive-bold": "divide-f1-border-positive-bold",
571
572
  promote: "divide-f1-border-promote"
572
573
  }
573
- }, A = {
574
+ }, M = {
574
575
  gap: {
575
576
  none: "gap-0",
576
577
  xs: "gap-0.5",
@@ -618,7 +619,7 @@ var b = (e) => e === !0, x = (e) => b(e === !0) || e === "id", S = ({ children:
618
619
  true: "shrink",
619
620
  false: "shrink-0"
620
621
  }
621
- }, j = {}, M = {
622
+ }, N = {}, P = {
622
623
  columns: {
623
624
  none: "grid-cols-none",
624
625
  1: "grid-cols-1",
@@ -683,7 +684,7 @@ var b = (e) => e === !0, x = (e) => b(e === !0) || e === "id", S = ({ children:
683
684
  6: "row-span-6",
684
685
  full: "row-span-full"
685
686
  }
686
- }, N = {
687
+ }, F = {
687
688
  top: {
688
689
  none: "top-0",
689
690
  xs: "top-1",
@@ -732,7 +733,7 @@ var b = (e) => e === !0, x = (e) => b(e === !0) || e === "id", S = ({ children:
732
733
  "4xl": "left-12",
733
734
  "5xl": "left-16"
734
735
  }
735
- }, P = {
736
+ }, I = {
736
737
  margin: {
737
738
  none: "m-0",
738
739
  xs: "m-1",
@@ -824,7 +825,7 @@ var b = (e) => e === !0, x = (e) => b(e === !0) || e === "id", S = ({ children:
824
825
  "5xl": "mr-16",
825
826
  auto: "mr-auto"
826
827
  }
827
- }, F = {}, I = {
828
+ }, L = {}, R = {
828
829
  overflow: {
829
830
  visible: "overflow-visible",
830
831
  hidden: "overflow-hidden",
@@ -843,7 +844,7 @@ var b = (e) => e === !0, x = (e) => b(e === !0) || e === "id", S = ({ children:
843
844
  auto: "overflow-y-auto",
844
845
  scroll: "overflow-y-scroll"
845
846
  }
846
- }, L = {}, R = {
847
+ }, z = {}, B = {
847
848
  padding: {
848
849
  none: "p-0",
849
850
  xs: "p-1",
@@ -928,13 +929,13 @@ var b = (e) => e === !0, x = (e) => b(e === !0) || e === "id", S = ({ children:
928
929
  "4xl": "pr-12",
929
930
  "5xl": "pr-16"
930
931
  }
931
- }, z = {}, B = { boxShadow: {
932
+ }, V = {}, H = { boxShadow: {
932
933
  none: "shadow-none",
933
934
  sm: "shadow",
934
935
  md: "shadow-md",
935
936
  lg: "shadow-lg",
936
937
  xl: "shadow-xl"
937
- } }, V = { zIndex: {
938
+ } }, U = { zIndex: {
938
939
  auto: "z-auto",
939
940
  0: "z-0",
940
941
  10: "z-10",
@@ -942,92 +943,92 @@ var b = (e) => e === !0, x = (e) => b(e === !0) || e === "id", S = ({ children:
942
943
  30: "z-30",
943
944
  40: "z-40",
944
945
  50: "z-50"
945
- } }, H = {
946
- ...O,
947
- ...N,
948
- ...R,
949
- ...P,
946
+ } }, W = {
950
947
  ...A,
951
- ...M,
952
- ...D,
953
- ...w,
954
- ...T,
948
+ ...F,
949
+ ...B,
955
950
  ...I,
951
+ ...M,
952
+ ...P,
956
953
  ...k,
957
- ...V
954
+ ...E,
955
+ ...D,
956
+ ...R,
957
+ ...j,
958
+ ...U
958
959
  };
959
- function U(e, t) {
960
+ function G(e, t) {
960
961
  return t.split(" ").map((t) => `${e}:${t}`).join(" ");
961
962
  }
962
963
  function ee(e, t) {
963
964
  let n = [];
964
965
  for (let [r, i] of Object.entries(t)) {
965
966
  if (i == null) continue;
966
- let t = H[r];
967
+ let t = W[r];
967
968
  if (!t) continue;
968
969
  let a = t[String(i)];
969
- a && n.push(U(e, a));
970
+ a && n.push(G(e, a));
970
971
  }
971
972
  return n.join(" ");
972
973
  }
973
974
  //#endregion
974
975
  //#region src/elements/F0Box/F0Box.tsx
975
- var te = n({
976
+ var te = r({
976
977
  base: "",
977
978
  variants: {
978
- ...O,
979
- ...N,
980
- ...R,
981
- ...P,
982
979
  ...A,
983
- ...M,
984
- ...D,
985
- ...w,
986
- ...T,
980
+ ...F,
981
+ ...B,
987
982
  ...I,
983
+ ...M,
984
+ ...P,
988
985
  ...k,
989
- ...B,
990
- ...V
986
+ ...E,
987
+ ...D,
988
+ ...R,
989
+ ...j,
990
+ ...H,
991
+ ...U
991
992
  },
992
993
  defaultVariants: {
993
- ...z,
994
- ...F,
995
- ...j,
996
- ...E,
997
- ...L
994
+ ...V,
995
+ ...L,
996
+ ...N,
997
+ ...O,
998
+ ...z
998
999
  }
999
1000
  }), ne = [
1000
1001
  "sm",
1001
1002
  "md",
1002
1003
  "lg",
1003
1004
  "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) => {
1005
+ ], 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
1006
  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
1007
+ sm: ue,
1008
+ md: de,
1009
+ lg: fe,
1010
+ xl: pe
1010
1011
  }, ve = ne.map((e) => {
1011
1012
  let t = _e[e];
1012
1013
  return t ? ee(e, t) : "";
1013
1014
  }).filter(Boolean).join(" ");
1014
- return /* @__PURE__ */ p("div", {
1015
+ return /* @__PURE__ */ h("div", {
1015
1016
  ref: he,
1016
- className: a($ && "border-0", te({
1017
+ className: o($ && "border-0", te({
1017
1018
  display: e,
1018
1019
  position: t,
1019
1020
  top: n,
1020
1021
  right: r,
1021
1022
  bottom: i,
1022
- left: o,
1023
+ left: a,
1023
1024
  zIndex: s,
1024
1025
  padding: c,
1025
1026
  paddingX: l,
1026
1027
  paddingY: u,
1027
1028
  paddingTop: d,
1028
1029
  paddingBottom: f,
1029
- paddingLeft: m,
1030
- paddingRight: h,
1030
+ paddingLeft: p,
1031
+ paddingRight: m,
1031
1032
  margin: g,
1032
1033
  marginX: _,
1033
1034
  marginY: v,
@@ -1058,28 +1059,34 @@ var te = n({
1058
1059
  borderRadiusTopLeft: U,
1059
1060
  borderRadiusTopRight: W,
1060
1061
  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
1062
+ borderRadiusBottomRight: K,
1063
+ borderStyle: q,
1064
+ overflow: J,
1065
+ overflowX: Y,
1066
+ overflowY: X,
1067
+ divider: Z,
1068
+ dividerColor: Q,
1069
+ alignItems: ie,
1070
+ justifyContent: ae,
1071
+ flexDirection: oe,
1072
+ flexWrap: se,
1073
+ grow: ce,
1074
+ shrink: le,
1075
+ boxShadow: re
1076
+ }), ve, ge && !I && "border-f1-border", Z && !Q && "divide-f1-border", "scrollbar-macos"),
1077
+ ...me
1077
1078
  });
1078
1079
  });
1079
- W.displayName = "F0Box";
1080
- var G = i({
1080
+ K.displayName = "F0Box";
1081
+ var q = a({
1081
1082
  name: "F0Box",
1082
1083
  type: "layout"
1083
- }, W);
1084
+ }, K), J = l((e, t) => /* @__PURE__ */ h(s, {
1085
+ ref: t,
1086
+ markdown: e.markdown ?? !0,
1087
+ ...e
1088
+ }));
1089
+ J.displayName = "F0Text";
1090
+ var Y = t(J);
1084
1091
  //#endregion
1085
- export { C as n, S as r, G as t };
1092
+ export { w as i, q as n, T as r, Y as t };