@factorialco/f0-react 12.0.1 → 12.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.
- package/dist/{ChatPostComposerDialog-CNH3PEKK.js → ChatPostComposerDialog-NEIFDJib.js} +3 -3
- package/dist/{CoachmarkProvider-C_JXGs72.js → CoachmarkProvider-BR6fdrrh.js} +134 -126
- package/dist/{DocumentToolbar-BFnMz7bn.js → DocumentToolbar-Cb3E9RnA.js} +5 -5
- package/dist/{DocxViewer-DxB_Z3Aj.js → DocxViewer-pfu-5v_l.js} +2 -2
- package/dist/{F0AiProcessingOverlay-Dyeu-llX.js → F0AiProcessingOverlay-O9SpiZk4.js} +217 -217
- package/dist/{F0CanvasPanel-BmHKCa2z.js → F0CanvasPanel-Dn-Gkmsz.js} +59 -59
- package/dist/{F0DocumentViewer-BezOjMcU.js → F0DocumentViewer-CRPMDWGj.js} +8 -8
- package/dist/F0DocumentViewer-DzZu9sCO.js +3 -0
- package/dist/{F0Map-BGULgHcs.js → F0Map-toEYLWLQ.js} +34 -34
- package/dist/{F0Select-BuvNLc6L.js → F0Select-BMzj1oyt.js} +4702 -4630
- package/dist/F0Text-CjR98zwA.js +81 -0
- package/dist/{F0VideoPlayer-kC_SY7gU.js → F0VideoPlayer-BmbFZEII.js} +2 -2
- package/dist/F0VideoPlayer-DsHl-sBd.js +1 -0
- package/dist/{Map-B-ZV3tfI.js → Map-Cakv1wM4.js} +6 -6
- package/dist/{PdfThumbnail-CFtbNxIt.js → PdfThumbnail-Bxzk7G0u.js} +1 -1
- package/dist/{SheetViewer-HAv_fqvI.js → SheetViewer-zNoFISP0.js} +4 -4
- package/dist/{TextViewer-DHBvbldv.js → TextViewer-BTRJxwwJ.js} +2 -2
- package/dist/ai.d.ts +3 -3
- package/dist/ai.js +4 -4
- package/dist/component-status.js +1 -1
- package/dist/{dist-BkJmWPoT.js → dist-UTTWm0CV.js} +1 -1
- package/dist/experimental.d.ts +2 -2
- package/dist/experimental.js +448 -448
- package/dist/{exports-CUp2l1jY.d.ts → exports-CnbBeOMM.d.ts} +1 -1
- package/dist/f0.d.ts +4 -4
- package/dist/f0.js +205 -205
- package/dist/{i18n-provider-defaults-iAsTLZ8q.d.ts → i18n-provider-defaults-DQxuUMpU.d.ts} +4 -0
- package/dist/{i18n-provider-defaults-DD76Cjbd.js → i18n-provider-defaults-p0UGTA_k.js} +1 -0
- package/dist/i18n-provider-defaults.d.ts +1 -1
- package/dist/i18n-provider-defaults.js +1 -1
- package/dist/{index-CByL5pgr.d.ts → index-DE9tIS8D.d.ts} +2 -2
- package/dist/{maplibre-BiwbNV1t.js → maplibre-C5htrHET.js} +1 -1
- package/dist/{pdfWorker-DjBnzXSj.js → pdfWorker-B4yvX0G-.js} +1 -1
- package/dist/{popover-B3B34Ceg.js → popover-B-ET_Kay.js} +1 -1
- package/dist/{types-D68_Bwu3.d.ts → types-CUKMWWRC.d.ts} +11 -4
- package/dist/{useData-ooUz_KnJ.js → useData-DWwEymV5.js} +5636 -4625
- package/package.json +1 -1
- package/dist/F0DocumentViewer-BkCL6H_9.js +0 -3
- package/dist/F0Text-BzTI5Tfw.js +0 -1093
- package/dist/F0VideoPlayer-BQRhmD18.js +0 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { a as e, o as t, pi as n } from "./CoachmarkProvider-
|
|
2
|
-
import { Bt as r, Ft as i, Gt as a, _n as o, b as s, er as c, on as l, sn as u, sr as d, yn as f } from "./popover-
|
|
1
|
+
import { a as e, o as t, pi as n } from "./CoachmarkProvider-BR6fdrrh.js";
|
|
2
|
+
import { Bt as r, Ft as i, Gt as a, _n as o, b as s, er as c, on as l, sn as u, sr as d, yn as f } from "./popover-B-ET_Kay.js";
|
|
3
3
|
import { L as p, R as m } from "./tooltip-BX4dSfeL.js";
|
|
4
|
-
import { n as h
|
|
5
|
-
import { Io as
|
|
6
|
-
import {
|
|
4
|
+
import { n as h } from "./F0Text-CjR98zwA.js";
|
|
5
|
+
import { Io as g, Z as _, _s as v, ao as y } from "./F0CanvasPanel-Dn-Gkmsz.js";
|
|
6
|
+
import { V as b, Z as x, j as S, q as ee, y as C } from "./useData-DWwEymV5.js";
|
|
7
7
|
import { a as w, n as T, o as te, s as ne, t as E } from "./dist-Cuwaibqg.js";
|
|
8
8
|
import { createContext as D, forwardRef as O, useCallback as k, useContext as A, useEffect as j, useId as re, useImperativeHandle as ie, useLayoutEffect as ae, useMemo as M, useRef as N, useState as P } from "react";
|
|
9
9
|
import { Fragment as oe, jsx as F, jsxs as I } from "react/jsx-runtime";
|
|
@@ -144,7 +144,7 @@ var ce = (e, t) => ({
|
|
|
144
144
|
let e = Ce.xl;
|
|
145
145
|
return -(e.d - e.caretOverlap + e.caretH + R + we) + 3;
|
|
146
146
|
}, z = "hsl(var(--white-100))", B = O(function(e, t) {
|
|
147
|
-
let { size: r = "md", selected: i = !1, collapsed: a = !1, label: o, showLabel: s = !0, labelPlacement: l = "right", onClick: h, ariaLabel: g, presentational: _ = !1, dataTestId: v, className: y } = e, b = e.variant ?? "color", x = Ce[i ? "xl" : r],
|
|
147
|
+
let { size: r = "md", selected: i = !1, collapsed: a = !1, label: o, showLabel: s = !0, labelPlacement: l = "right", onClick: h, ariaLabel: g, presentational: _ = !1, dataTestId: v, className: y } = e, b = e.variant ?? "color", x = Ce[i ? "xl" : r], ee = !!h, w = b === "color" || b === "icon" || b === "letter", T = b === "person" && "firstName" in e ? e.firstName + e.lastName : (b === "team" || b === "company") && "name" in e ? e.name : null, te = w ? e.color ?? "radical" : T ? b === "person" && "src" in e && e.src ? "grey" : S(T) ?? "grey" : "neutral", ne = n(), E = i ? 32 : {
|
|
148
148
|
xs: 12,
|
|
149
149
|
sm: 16,
|
|
150
150
|
md: 20,
|
|
@@ -321,7 +321,7 @@ var ce = (e, t) => ({
|
|
|
321
321
|
] });
|
|
322
322
|
return /* @__PURE__ */ F(d, {
|
|
323
323
|
dataTestId: v,
|
|
324
|
-
children:
|
|
324
|
+
children: ee ? /* @__PURE__ */ F("button", {
|
|
325
325
|
ref: t,
|
|
326
326
|
type: "button",
|
|
327
327
|
..._ ? {
|
|
@@ -384,7 +384,7 @@ var Ee = B, V = (e, t) => `hsl(${xe(e, t).replace(/ /g, ", ")})`, De = (e, t) =>
|
|
|
384
384
|
}
|
|
385
385
|
}, Ne = ({ children: e }) => /* @__PURE__ */ F("div", {
|
|
386
386
|
className: je(H.control),
|
|
387
|
-
children: /* @__PURE__ */ F(
|
|
387
|
+
children: /* @__PURE__ */ F(b, {
|
|
388
388
|
...ke,
|
|
389
389
|
borderRadius: H.control,
|
|
390
390
|
padding: "none",
|
|
@@ -407,28 +407,28 @@ var Ee = B, V = (e, t) => `hsl(${xe(e, t).replace(/ /g, ", ")})`, De = (e, t) =>
|
|
|
407
407
|
variant: "ghost",
|
|
408
408
|
size: "md",
|
|
409
409
|
label: i?.fit ?? c.map.controls.fit,
|
|
410
|
-
icon:
|
|
410
|
+
icon: v,
|
|
411
411
|
hideLabel: !0,
|
|
412
412
|
onClick: n
|
|
413
413
|
}) : null, r ? /* @__PURE__ */ F(s, {
|
|
414
414
|
variant: "ghost",
|
|
415
415
|
size: "md",
|
|
416
416
|
label: i?.locate ?? c.map.controls.locate,
|
|
417
|
-
icon:
|
|
417
|
+
icon: y,
|
|
418
418
|
hideLabel: !0,
|
|
419
419
|
onClick: r
|
|
420
420
|
}) : null] })) : null, f ? p(/* @__PURE__ */ I(oe, { children: [e ? /* @__PURE__ */ F(s, {
|
|
421
421
|
variant: "ghost",
|
|
422
422
|
size: "md",
|
|
423
423
|
label: i?.zoomIn ?? c.map.controls.zoomIn,
|
|
424
|
-
icon:
|
|
424
|
+
icon: x,
|
|
425
425
|
hideLabel: !0,
|
|
426
426
|
onClick: e
|
|
427
427
|
}) : null, t ? /* @__PURE__ */ F(s, {
|
|
428
428
|
variant: "ghost",
|
|
429
429
|
size: "md",
|
|
430
430
|
label: i?.zoomOut ?? c.map.controls.zoomOut,
|
|
431
|
-
icon:
|
|
431
|
+
icon: ee,
|
|
432
432
|
hideLabel: !0,
|
|
433
433
|
onClick: t
|
|
434
434
|
}) : null] })) : null]
|
|
@@ -733,7 +733,7 @@ var Ie = ({ adapter: e, points: t, enabled: n, radius: r = 12, clusterRadius: i
|
|
|
733
733
|
case "workplace": return {
|
|
734
734
|
variant: {
|
|
735
735
|
variant: "icon",
|
|
736
|
-
icon:
|
|
736
|
+
icon: g
|
|
737
737
|
},
|
|
738
738
|
color: qe
|
|
739
739
|
};
|
|
@@ -1025,15 +1025,15 @@ var Z = rt, it = 16, Q = (e, t, n, r) => {
|
|
|
1025
1025
|
}, t.id);
|
|
1026
1026
|
})] });
|
|
1027
1027
|
}, ct = ({ children: e, open: t, offsetX: n, offsetY: r = U.inset, width: a, entrance: o = "slide", headerStart: s, headerEnd: c, ariaLabel: u, dataTestId: f }) => {
|
|
1028
|
-
let m = l(),
|
|
1029
|
-
from:
|
|
1030
|
-
to:
|
|
1028
|
+
let m = l(), h = i(), g = t ? W.enter : W.exit, _ = n - U.inset, v = N({
|
|
1029
|
+
from: _,
|
|
1030
|
+
to: _
|
|
1031
1031
|
});
|
|
1032
|
-
|
|
1033
|
-
from:
|
|
1034
|
-
to:
|
|
1032
|
+
v.current.to !== _ && (v.current = {
|
|
1033
|
+
from: v.current.to,
|
|
1034
|
+
to: _
|
|
1035
1035
|
});
|
|
1036
|
-
let
|
|
1036
|
+
let y = _ > v.current.from ? W.enter : W.exit, x = o === "grow" ? "translateX(-10%) scale(0.97)" : `translateX(calc(-100% - ${U.inset}px))`;
|
|
1037
1037
|
return /* @__PURE__ */ F(d, {
|
|
1038
1038
|
dataTestId: f,
|
|
1039
1039
|
children: /* @__PURE__ */ F("div", {
|
|
@@ -1042,10 +1042,10 @@ var Z = rt, it = 16, Q = (e, t, n, r) => {
|
|
|
1042
1042
|
left: U.inset,
|
|
1043
1043
|
top: r,
|
|
1044
1044
|
width: a,
|
|
1045
|
-
transform: `translateX(${
|
|
1046
|
-
transitionProperty:
|
|
1047
|
-
transitionDuration:
|
|
1048
|
-
transitionTimingFunction:
|
|
1045
|
+
transform: `translateX(${_}px)`,
|
|
1046
|
+
transitionProperty: h ? "none" : "transform, top",
|
|
1047
|
+
transitionDuration: y.duration,
|
|
1048
|
+
transitionTimingFunction: y.easing
|
|
1049
1049
|
},
|
|
1050
1050
|
children: /* @__PURE__ */ F("div", {
|
|
1051
1051
|
role: "complementary",
|
|
@@ -1055,13 +1055,13 @@ var Z = rt, it = 16, Q = (e, t, n, r) => {
|
|
|
1055
1055
|
},
|
|
1056
1056
|
className: p("relative h-full overflow-hidden text-base", je(H.panel), t ? "pointer-events-auto" : "opacity-0"),
|
|
1057
1057
|
style: {
|
|
1058
|
-
transform: t ||
|
|
1058
|
+
transform: t || h ? "translateX(0px) scale(1)" : x,
|
|
1059
1059
|
transformOrigin: o === "grow" ? "left center" : void 0,
|
|
1060
|
-
transitionProperty:
|
|
1061
|
-
transitionDuration:
|
|
1062
|
-
transitionTimingFunction:
|
|
1060
|
+
transitionProperty: h ? "opacity" : "transform, opacity",
|
|
1061
|
+
transitionDuration: g.duration,
|
|
1062
|
+
transitionTimingFunction: g.easing
|
|
1063
1063
|
},
|
|
1064
|
-
children: /* @__PURE__ */ F(
|
|
1064
|
+
children: /* @__PURE__ */ F(b, {
|
|
1065
1065
|
...ke,
|
|
1066
1066
|
borderRadius: H.panel,
|
|
1067
1067
|
padding: "none",
|
|
@@ -1116,15 +1116,15 @@ function vt({ enabled: e, children: t, ...n }) {
|
|
|
1116
1116
|
});
|
|
1117
1117
|
}
|
|
1118
1118
|
function yt({ hasSecondarySidebar: e, topBarHeight: t, children: n }) {
|
|
1119
|
-
let { isInstant: i, landInstantly: a } = gt(), o = _t(), [s, c] = P(ne.primary), [l, u] = P(ne.panel), [d, f] =
|
|
1119
|
+
let { isInstant: i, landInstantly: a } = gt(), o = _t(), [s, c] = P(ne.primary), [l, u] = P(ne.panel), [d, f] = _({
|
|
1120
1120
|
key: ft,
|
|
1121
1121
|
fallback: null,
|
|
1122
1122
|
validate: pt,
|
|
1123
1123
|
debounceMs: 200
|
|
1124
1124
|
}), p = lt(o, s, Math.max(320, l)), m = Math.min(l, p), h = d === null ? m : ut(d, p), g = k(function(e) {
|
|
1125
1125
|
c(e);
|
|
1126
|
-
}, []),
|
|
1127
|
-
e !==
|
|
1126
|
+
}, []), v = N(l), y = k(function(e) {
|
|
1127
|
+
e !== v.current && (v.current = e, a(), u(e));
|
|
1128
1128
|
}, [a]), b = k(function(e) {
|
|
1129
1129
|
a(), f(e);
|
|
1130
1130
|
}, [a, f]), x = k(function() {
|
|
@@ -1442,7 +1442,7 @@ function Jt() {
|
|
|
1442
1442
|
}), /* @__PURE__ */ F("div", {
|
|
1443
1443
|
className: p("hidden", { flex: r }),
|
|
1444
1444
|
children: /* @__PURE__ */ F(u, {
|
|
1445
|
-
icon:
|
|
1445
|
+
icon: h,
|
|
1446
1446
|
size: "md"
|
|
1447
1447
|
})
|
|
1448
1448
|
})]
|
|
@@ -1593,7 +1593,7 @@ var rn = {
|
|
|
1593
1593
|
isDark: e
|
|
1594
1594
|
};
|
|
1595
1595
|
}, ln = {
|
|
1596
|
-
maplibre: async () => (await import("./maplibre-
|
|
1596
|
+
maplibre: async () => (await import("./maplibre-C5htrHET.js")).createMaplibreAdapter,
|
|
1597
1597
|
google: async (e) => (await import("./google-D1V0swd7.js")).loadGoogleAdapter(e)
|
|
1598
1598
|
}, un = /* @__PURE__ */ new Map(), dn = (e, t) => {
|
|
1599
1599
|
let n = un.get(e);
|