@factorialco/f0-react 6.26.0 → 6.27.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/{ChatPdfThumbnail-OlWkWCjc.js → ChatPdfThumbnail-CRUUJUXf.js} +1 -1
- package/dist/{CoachmarkProvider-CUzUbHBh.js → CoachmarkProvider-BsOG6-Cm.js} +139 -138
- package/dist/{DocumentToolbar-k3VK02ai.js → DocumentToolbar-h-osNkaJ.js} +2 -2
- package/dist/{DocxViewer-BDxpaF07.js → DocxViewer-CMcQEiZd.js} +2 -2
- package/dist/{F0AiProcessingOverlay-DaJYufPv.js → F0AiProcessingOverlay-6M7AUjMf.js} +2074 -3269
- package/dist/{F0CanvasPanel-Dgp0qXaJ.js → F0CanvasPanel-Xorg4r1K.js} +17067 -15869
- package/dist/{F0VideoPlayer-BYSFl2Ba.js → F0VideoPlayer-WdXnre2S.js} +2 -2
- package/dist/LocationMap-yKvpVC9i.js +56 -0
- package/dist/{SheetViewer-CcAdHreq.js → SheetViewer-E7i3BkZ7.js} +2 -2
- package/dist/{TextViewer-C30b85C1.js → TextViewer-DO81T94b.js} +2 -2
- package/dist/ai.d.ts +19 -0
- package/dist/ai.js +2 -2
- package/dist/component-status.js +3 -3
- package/dist/experimental-DwMkcgpl.js +46539 -0
- package/dist/{LocationMap.css → experimental.css} +1 -1
- package/dist/experimental.d.ts +373 -34
- package/dist/experimental.js +229 -20488
- package/dist/f0.d.ts +19 -0
- package/dist/f0.js +44 -44
- package/dist/i18n-provider-defaults.d.ts +19 -0
- package/dist/i18n-provider-defaults.js +19 -0
- package/dist/index-CCASa2Xl.js +4 -0
- package/dist/{index-T6cQXHfm.js → index-dE_ni30Y.js} +4 -4
- package/dist/{pdfWorker-Cd7rcEoR.js → pdfWorker-D_NExtiv.js} +3 -3
- package/dist/styles.css +1 -1
- package/dist/{tooltip-Cik7KBQT.js → tooltip-DTpaXpXW.js} +2 -2
- package/package.json +2 -1
- package/dist/LocationMap-BeSyUnec.js +0 -24682
- package/dist/index-CbjDm0JK.js +0 -4
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { u as W, t as je, v as Ge, m as $, x as Xe, y as Ze, z as qe, A as Ye, B as Je, E as Qe, G as et, H as tt, J as nt, K as rt, L as at, M as ot, N as ye, O as st, Q as Ce, l as it, R as ct, U as lt, V as dt, w as ut, r as ft } from "./F0CanvasPanel-
|
|
1
|
+
import { u as W, t as je, v as Ge, m as $, x as Xe, y as Ze, z as qe, A as Ye, B as Je, E as Qe, G as et, H as tt, J as nt, K as rt, L as at, M as ot, N as ye, O as st, Q as Ce, l as it, R as ct, U as lt, V as dt, w as ut, r as ft } from "./F0CanvasPanel-Xorg4r1K.js";
|
|
2
2
|
import { jsxs as R, jsx as l } from "react/jsx-runtime";
|
|
3
3
|
import { forwardRef as re, useId as mt, useState as x, useRef as O, useEffect as _, useMemo as J, useCallback as M } from "react";
|
|
4
|
-
import { d as H, f as de } from "./tooltip-
|
|
4
|
+
import { d as H, f as de } from "./tooltip-DTpaXpXW.js";
|
|
5
5
|
import { F as pt, a as Pe, b as ht, c as gt } from "./VolumeMuted-DKLKhxyd.js";
|
|
6
6
|
function Se(e) {
|
|
7
7
|
return Array.isArray(e);
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { jsx as p } from "react/jsx-runtime";
|
|
2
|
+
import { m } from "./experimental-DwMkcgpl.js";
|
|
3
|
+
import { useRef as l, useEffect as i, useState as b } from "react";
|
|
4
|
+
const k = "https://tiles.openfreemap.org/styles/positron", y = "https://tiles.openfreemap.org/styles/dark", R = 15, d = (n) => {
|
|
5
|
+
const [c, s] = b(!1);
|
|
6
|
+
return i(() => {
|
|
7
|
+
const r = n.current;
|
|
8
|
+
if (!r) return;
|
|
9
|
+
const a = () => s(r.closest(".dark") !== null);
|
|
10
|
+
a();
|
|
11
|
+
const t = new MutationObserver(a);
|
|
12
|
+
for (let e = r; e; e = e.parentElement)
|
|
13
|
+
t.observe(e, {
|
|
14
|
+
attributes: !0,
|
|
15
|
+
attributeFilter: ["class"]
|
|
16
|
+
});
|
|
17
|
+
return () => t.disconnect();
|
|
18
|
+
}, [n]), c;
|
|
19
|
+
}, h = ({
|
|
20
|
+
latitude: n,
|
|
21
|
+
longitude: c
|
|
22
|
+
}) => {
|
|
23
|
+
const s = l(null), r = l(null), t = d(s) ? y : k, e = l(t);
|
|
24
|
+
e.current = t;
|
|
25
|
+
const u = l(null);
|
|
26
|
+
return i(() => {
|
|
27
|
+
const o = s.current;
|
|
28
|
+
if (!o) return;
|
|
29
|
+
u.current = e.current;
|
|
30
|
+
const f = new m.Map({
|
|
31
|
+
container: o,
|
|
32
|
+
style: e.current,
|
|
33
|
+
center: [c, n],
|
|
34
|
+
zoom: R,
|
|
35
|
+
interactive: !1,
|
|
36
|
+
// The card renders its own "© OpenStreetMap" note (ODbL attribution).
|
|
37
|
+
attributionControl: !1
|
|
38
|
+
});
|
|
39
|
+
return r.current = f, () => {
|
|
40
|
+
r.current = null, f.remove();
|
|
41
|
+
};
|
|
42
|
+
}, [n, c]), i(() => {
|
|
43
|
+
const o = r.current;
|
|
44
|
+
!o || u.current === t || (u.current = t, o.setStyle(t));
|
|
45
|
+
}, [t]), /* @__PURE__ */ p(
|
|
46
|
+
"div",
|
|
47
|
+
{
|
|
48
|
+
ref: s,
|
|
49
|
+
className: "h-full w-full",
|
|
50
|
+
"data-testid": "chat-location-map"
|
|
51
|
+
}
|
|
52
|
+
);
|
|
53
|
+
};
|
|
54
|
+
export {
|
|
55
|
+
h as default
|
|
56
|
+
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsxs as a, jsx as r, Fragment as N } from "react/jsx-runtime";
|
|
2
2
|
import { useState as i, useEffect as k } from "react";
|
|
3
|
-
import { u as v, T as S, h as V, S as R } from "./F0CanvasPanel-
|
|
3
|
+
import { u as v, T as S, h as V, S as R } from "./F0CanvasPanel-Xorg4r1K.js";
|
|
4
4
|
import { f as z, c as E } from "./sheetPreview-5qeAOp0W.js";
|
|
5
|
-
import { u as _, D as j } from "./DocumentToolbar-
|
|
5
|
+
import { u as _, D as j } from "./DocumentToolbar-h-osNkaJ.js";
|
|
6
6
|
const g = 1e3, F = 100, G = ({
|
|
7
7
|
url: n,
|
|
8
8
|
filename: y,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs as b, jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import { useState as _, useEffect as h } from "react";
|
|
3
|
-
import { u as x, S as p, p as w } from "./F0CanvasPanel-
|
|
4
|
-
import { u as y, D as g } from "./DocumentToolbar-
|
|
3
|
+
import { u as x, S as p, p as w } from "./F0CanvasPanel-Xorg4r1K.js";
|
|
4
|
+
import { u as y, D as g } from "./DocumentToolbar-h-osNkaJ.js";
|
|
5
5
|
const k = 2 * 1024 * 1024, v = [
|
|
6
6
|
"[&_h1]:mb-3 [&_h1]:mt-6 [&_h1]:text-2xl [&_h1]:font-semibold",
|
|
7
7
|
"[&_h2]:mb-2 [&_h2]:mt-5 [&_h2]:text-xl [&_h2]:font-semibold",
|
package/dist/ai.d.ts
CHANGED
|
@@ -3020,6 +3020,25 @@ export declare const defaultTranslations: {
|
|
|
3020
3020
|
readonly navigation: "Graph navigation";
|
|
3021
3021
|
};
|
|
3022
3022
|
};
|
|
3023
|
+
readonly map: {
|
|
3024
|
+
readonly region: "Map";
|
|
3025
|
+
readonly navigation: "Map navigation";
|
|
3026
|
+
readonly listLabel: "Locations";
|
|
3027
|
+
readonly location: "location";
|
|
3028
|
+
readonly locations: "locations";
|
|
3029
|
+
readonly unnamedLocation: "Location";
|
|
3030
|
+
readonly cluster: "Cluster of {{count}} locations";
|
|
3031
|
+
readonly skipToList: "Skip to location list";
|
|
3032
|
+
readonly loadError: "Couldn't load the map.";
|
|
3033
|
+
readonly retry: "Retry";
|
|
3034
|
+
readonly currentLocation: "Your location";
|
|
3035
|
+
readonly controls: {
|
|
3036
|
+
readonly zoomIn: "Zoom in";
|
|
3037
|
+
readonly zoomOut: "Zoom out";
|
|
3038
|
+
readonly fit: "Fit to markers";
|
|
3039
|
+
readonly locate: "My location";
|
|
3040
|
+
};
|
|
3041
|
+
};
|
|
3023
3042
|
readonly wizard: {
|
|
3024
3043
|
readonly previous: "Previous";
|
|
3025
3044
|
readonly next: "Continue";
|
package/dist/ai.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { C as e, D as r, c as t, F as i, a as o, f as n, g as F, d as C, e as l, I as A, P as d, b as u, u as h } from "./F0CanvasPanel-
|
|
1
|
+
import { C as e, D as r, c as t, F as i, a as o, f as n, g as F, d as C, e as l, I as A, P as d, b as u, u as h } from "./F0CanvasPanel-Xorg4r1K.js";
|
|
2
2
|
import { defaultTranslations as c } from "./i18n-provider-defaults.js";
|
|
3
|
-
import { A as P, C as T, t as p, s as v, v as g, y as f, l as y, i as S, q as x, z as b, B as k, p as H, r as O, j as V, e as w, g as B, k as M, F as z, T as D, w as L, h as j, a as q, n as E, m as G, o as R, b as J, f as K, x as N, c as Q, d as U, u as W } from "./F0AiProcessingOverlay-
|
|
3
|
+
import { A as P, C as T, t as p, s as v, v as g, y as f, l as y, i as S, q as x, z as b, B as k, p as H, r as O, j as V, e as w, g as B, k as M, F as z, T as D, w as L, h as j, a as q, n as E, m as G, o as R, b as J, f as K, x as N, c as Q, d as U, u as W } from "./F0AiProcessingOverlay-6M7AUjMf.js";
|
|
4
4
|
export {
|
|
5
5
|
P as AiChatTranslationsProvider,
|
|
6
6
|
e as ChatSpinner,
|