@factorialco/f0-react 6.26.0 → 6.27.1
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-d6FGA8yd.js} +1 -1
- package/dist/{CoachmarkProvider-CUzUbHBh.js → CoachmarkProvider-B7OX-t9w.js} +5830 -5829
- package/dist/{DocumentToolbar-k3VK02ai.js → DocumentToolbar-BgjCVS1b.js} +2 -2
- package/dist/{DocxViewer-BDxpaF07.js → DocxViewer-Dh6jrbHE.js} +2 -2
- package/dist/{F0AiProcessingOverlay-DaJYufPv.js → F0AiProcessingOverlay-b0CeTu4a.js} +2074 -3269
- package/dist/{F0CanvasPanel-Dgp0qXaJ.js → F0CanvasPanel-Dq1kU51T.js} +17577 -16307
- package/dist/{F0VideoPlayer-BYSFl2Ba.js → F0VideoPlayer-y8MT0JHm.js} +2 -2
- package/dist/LocationMap-DwI7QOAV.js +56 -0
- package/dist/{SheetViewer-CcAdHreq.js → SheetViewer-CekytnBF.js} +2 -2
- package/dist/{TextViewer-C30b85C1.js → TextViewer-CDWVlIP8.js} +2 -2
- package/dist/ai.d.ts +25 -6
- package/dist/ai.js +2 -2
- package/dist/component-status.d.ts +6 -6
- package/dist/component-status.js +3 -3
- package/dist/experimental-BA9ERo7L.js +46539 -0
- package/dist/{LocationMap.css → experimental.css} +1 -1
- package/dist/experimental.d.ts +379 -40
- package/dist/experimental.js +229 -20488
- package/dist/f0.d.ts +25 -6
- package/dist/f0.js +44 -44
- package/dist/i18n-provider-defaults.d.ts +25 -6
- package/dist/i18n-provider-defaults.js +19 -0
- package/dist/index-BgfWAWkW.js +4 -0
- package/dist/{index-T6cQXHfm.js → index-D3qHIfH-.js} +4 -4
- package/dist/{pdfWorker-Cd7rcEoR.js → pdfWorker-P7ITGICT.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-Dq1kU51T.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-BA9ERo7L.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-Dq1kU51T.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-BgjCVS1b.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-Dq1kU51T.js";
|
|
4
|
+
import { u as y, D as g } from "./DocumentToolbar-BgjCVS1b.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";
|
|
@@ -5626,8 +5645,10 @@ declare module "@tiptap/core" {
|
|
|
5626
5645
|
|
|
5627
5646
|
declare module "@tiptap/core" {
|
|
5628
5647
|
interface Commands<ReturnType> {
|
|
5629
|
-
|
|
5630
|
-
|
|
5648
|
+
indent: {
|
|
5649
|
+
setIndent: (level: number) => ReturnType;
|
|
5650
|
+
unsetIndent: () => ReturnType;
|
|
5651
|
+
outdent: () => ReturnType;
|
|
5631
5652
|
};
|
|
5632
5653
|
}
|
|
5633
5654
|
}
|
|
@@ -5635,10 +5656,8 @@ declare module "@tiptap/core" {
|
|
|
5635
5656
|
|
|
5636
5657
|
declare module "@tiptap/core" {
|
|
5637
5658
|
interface Commands<ReturnType> {
|
|
5638
|
-
|
|
5639
|
-
|
|
5640
|
-
unsetIndent: () => ReturnType;
|
|
5641
|
-
outdent: () => ReturnType;
|
|
5659
|
+
moodTracker: {
|
|
5660
|
+
insertMoodTracker: (data: MoodTrackerData) => ReturnType;
|
|
5642
5661
|
};
|
|
5643
5662
|
}
|
|
5644
5663
|
}
|
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-Dq1kU51T.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-b0CeTu4a.js";
|
|
4
4
|
export {
|
|
5
5
|
P as AiChatTranslationsProvider,
|
|
6
6
|
e as ChatSpinner,
|
|
@@ -317,8 +317,10 @@ declare module "@tiptap/core" {
|
|
|
317
317
|
|
|
318
318
|
declare module "@tiptap/core" {
|
|
319
319
|
interface Commands<ReturnType> {
|
|
320
|
-
|
|
321
|
-
|
|
320
|
+
indent: {
|
|
321
|
+
setIndent: (level: number) => ReturnType;
|
|
322
|
+
unsetIndent: () => ReturnType;
|
|
323
|
+
outdent: () => ReturnType;
|
|
322
324
|
};
|
|
323
325
|
}
|
|
324
326
|
}
|
|
@@ -326,10 +328,8 @@ declare module "@tiptap/core" {
|
|
|
326
328
|
|
|
327
329
|
declare module "@tiptap/core" {
|
|
328
330
|
interface Commands<ReturnType> {
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
unsetIndent: () => ReturnType;
|
|
332
|
-
outdent: () => ReturnType;
|
|
331
|
+
moodTracker: {
|
|
332
|
+
insertMoodTracker: (data: MoodTrackerData) => ReturnType;
|
|
333
333
|
};
|
|
334
334
|
}
|
|
335
335
|
}
|