@factorialco/f0-react 9.2.1 → 9.3.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/{ChatDocxThumbnail-DTpOzL9A.js → ChatDocxThumbnail-Brbh1wem.js} +1 -1
- package/dist/{ChatPdfThumbnail-CAOAs-qh.js → ChatPdfThumbnail-D4DN5xr2.js} +1 -1
- package/dist/{ChatPostComposerDialog-BuzKBfwA.js → ChatPostComposerDialog-l1iabm-7.js} +3 -3
- package/dist/{ChatSheetThumbnail-P76Jt0_u.js → ChatSheetThumbnail-C_C2oIV_.js} +1 -1
- package/dist/{CoachmarkProvider-CQJNVR53.js → CoachmarkProvider-B1YG7W1t.js} +10919 -11003
- package/dist/{DocumentToolbar-BIIQvnf3.js → DocumentToolbar-CmyNC2wp.js} +2 -2
- package/dist/{DocxViewer-DVeatd9-.js → DocxViewer-de6X1Pon.js} +3 -3
- package/dist/{F0AiProcessingOverlay-CHEMsQma.js → F0AiProcessingOverlay-DB5NFWs5.js} +22 -22
- package/dist/{F0CanvasPanel-jtcjSLLr.js → F0CanvasPanel-DKFZlybo.js} +30705 -28790
- package/dist/{F0DocumentViewer-Bg7uiU9c.js → F0DocumentViewer-DTY1Upm6.js} +21 -21
- package/dist/{F0Map-DLJ6sRN_.js → F0Map-Ib5OFPWf.js} +5 -5
- package/dist/{F0VideoPlayer-B8kLFnbf.js → F0VideoPlayer-B7zpyW3g.js} +44 -44
- package/dist/{LocationMap-B-e88fW6.js → LocationMap-C6TZJaOq.js} +1 -1
- package/dist/{SheetViewer-B8BmAg0d.js → SheetViewer-BO_8Vz3d.js} +4 -4
- package/dist/{TextViewer-DDtUtmWj.js → TextViewer-BGDy0VE3.js} +2 -2
- package/dist/ai.d.ts +14 -14
- package/dist/ai.js +2 -2
- package/dist/{axe-mZXA-kzX.js → axe-Cc8MuO-E.js} +1 -1
- package/dist/component-status.d.ts +14 -14
- package/dist/component-status.js +69 -63
- package/dist/{experimental-4hJ9yljk.js → experimental-CJxYO3TS.js} +1914 -1914
- package/dist/experimental.d.ts +115 -28
- package/dist/experimental.js +146 -145
- package/dist/f0.d.ts +25 -25
- package/dist/f0.js +10581 -11477
- package/dist/i18n-provider-defaults.d.ts +14 -14
- package/dist/index-5n9cK7fI.js +4 -0
- package/dist/{index-D0AH60ev.js → index-B4YJYrDq.js} +21 -21
- package/dist/{index-C8h4kG2n.js → index-B_CHe0P4.js} +3 -3
- package/dist/{index-B5dJ814t.js → index-C1hywv0e.js} +1 -1
- package/dist/index-D3eRTe5Y.js +8 -0
- package/dist/{maplibre-gl-BFrhpbuU.js → maplibre-gl-CF3gv2QL.js} +1 -1
- package/dist/{papaparse.min-Bh1MVuzw.js → papaparse.min-l46A1xl2.js} +1 -1
- package/dist/{pdfWorker-BRAGbLi_.js → pdfWorker-Ddggmoi-.js} +3 -4
- package/dist/{renderDocx-CVEzw9MK.js → renderDocx-E222oLTQ.js} +1 -1
- package/dist/{sheetPreview-BiccmyTD.js → sheetPreview-DC9RRwv0.js} +1 -1
- package/dist/styles.css +1 -1
- package/dist/tooltip-VHD1kZdF.js +7433 -0
- package/package.json +1 -2
- package/dist/_commonjsHelpers-ByX85dGu.js +0 -33
- package/dist/index-CW8sa9GP.js +0 -8
- package/dist/index-k8Xsj0d1.js +0 -4
- package/dist/tooltip-CrXp1Uaz.js +0 -4641
|
@@ -1615,9 +1615,9 @@ declare namespace Calendar {
|
|
|
1615
1615
|
|
|
1616
1616
|
declare module "@tiptap/core" {
|
|
1617
1617
|
interface Commands<ReturnType> {
|
|
1618
|
-
|
|
1619
|
-
|
|
1620
|
-
|
|
1618
|
+
aiBlock: {
|
|
1619
|
+
insertAIBlock: (data: AIBlockData, config: AIBlockConfig) => ReturnType;
|
|
1620
|
+
executeAIAction: (actionType: string, config: AIBlockConfig) => ReturnType;
|
|
1621
1621
|
};
|
|
1622
1622
|
}
|
|
1623
1623
|
}
|
|
@@ -1625,9 +1625,9 @@ declare module "@tiptap/core" {
|
|
|
1625
1625
|
|
|
1626
1626
|
declare module "@tiptap/core" {
|
|
1627
1627
|
interface Commands<ReturnType> {
|
|
1628
|
-
|
|
1629
|
-
|
|
1630
|
-
|
|
1628
|
+
fontSize: {
|
|
1629
|
+
setFontSize: (fontSize: string) => ReturnType;
|
|
1630
|
+
unsetFontSize: () => ReturnType;
|
|
1631
1631
|
};
|
|
1632
1632
|
}
|
|
1633
1633
|
}
|
|
@@ -1658,8 +1658,10 @@ declare module "@tiptap/core" {
|
|
|
1658
1658
|
|
|
1659
1659
|
declare module "@tiptap/core" {
|
|
1660
1660
|
interface Commands<ReturnType> {
|
|
1661
|
-
|
|
1662
|
-
|
|
1661
|
+
videoEmbed: {
|
|
1662
|
+
setVideoEmbed: (options: {
|
|
1663
|
+
src: string;
|
|
1664
|
+
}) => ReturnType;
|
|
1663
1665
|
};
|
|
1664
1666
|
}
|
|
1665
1667
|
}
|
|
@@ -1667,10 +1669,8 @@ declare module "@tiptap/core" {
|
|
|
1667
1669
|
|
|
1668
1670
|
declare module "@tiptap/core" {
|
|
1669
1671
|
interface Commands<ReturnType> {
|
|
1670
|
-
|
|
1671
|
-
|
|
1672
|
-
src: string;
|
|
1673
|
-
}) => ReturnType;
|
|
1672
|
+
transcript: {
|
|
1673
|
+
insertTranscript: (data: TranscriptData) => ReturnType;
|
|
1674
1674
|
};
|
|
1675
1675
|
}
|
|
1676
1676
|
}
|
|
@@ -1678,8 +1678,8 @@ declare module "@tiptap/core" {
|
|
|
1678
1678
|
|
|
1679
1679
|
declare module "@tiptap/core" {
|
|
1680
1680
|
interface Commands<ReturnType> {
|
|
1681
|
-
|
|
1682
|
-
|
|
1681
|
+
moodTracker: {
|
|
1682
|
+
insertMoodTracker: (data: MoodTrackerData) => ReturnType;
|
|
1683
1683
|
};
|
|
1684
1684
|
}
|
|
1685
1685
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsxs as k, jsx as o, Fragment as rn } from "react/jsx-runtime";
|
|
2
2
|
import { useRef as p, useEffect as v, useMemo as M, useCallback as A, useState as w } from "react";
|
|
3
|
-
import { F as En, a as Fn, R as tn } from "./F0Map-
|
|
4
|
-
import { o as Tn, q as Dn, r as ln, s as Pn, t as Bn, v as Ln, w as In, x as Qn, u as sn } from "./F0CanvasPanel-
|
|
5
|
-
import { d as L, f as on
|
|
6
|
-
import { a as cn, u as Kn, S as Un } from "./CoachmarkProvider-
|
|
3
|
+
import { F as En, a as Fn, R as tn } from "./F0Map-Ib5OFPWf.js";
|
|
4
|
+
import { o as Tn, q as Dn, r as ln, s as Pn, t as Bn, v as Ln, w as In, x as Qn, y as jn, u as sn } from "./F0CanvasPanel-DKFZlybo.js";
|
|
5
|
+
import { d as L, f as on } from "./tooltip-VHD1kZdF.js";
|
|
6
|
+
import { a as cn, u as Kn, S as Un } from "./CoachmarkProvider-B1YG7W1t.js";
|
|
7
7
|
const R = 3, _n = ({
|
|
8
8
|
title: e,
|
|
9
9
|
count: t,
|
|
@@ -60,13 +60,13 @@ const R = 3, _n = ({
|
|
|
60
60
|
children: s,
|
|
61
61
|
dataTestId: l
|
|
62
62
|
}) => {
|
|
63
|
-
const [c = i, u] =
|
|
63
|
+
const [c = i, u] = Pn({
|
|
64
64
|
prop: r,
|
|
65
65
|
defaultProp: i,
|
|
66
66
|
onChange: a
|
|
67
67
|
});
|
|
68
|
-
return /* @__PURE__ */ k(
|
|
69
|
-
/* @__PURE__ */ o(
|
|
68
|
+
return /* @__PURE__ */ k(Bn, { open: c, onOpenChange: u, "data-testid": l, children: [
|
|
69
|
+
/* @__PURE__ */ o(Ln, { asChild: !0, children: /* @__PURE__ */ k(
|
|
70
70
|
"button",
|
|
71
71
|
{
|
|
72
72
|
type: "button",
|
|
@@ -86,13 +86,13 @@ const R = 3, _n = ({
|
|
|
86
86
|
"flex shrink-0 text-f1-icon transition-transform duration-200 motion-reduce:transition-none",
|
|
87
87
|
c && "rotate-180"
|
|
88
88
|
),
|
|
89
|
-
children: /* @__PURE__ */ o(
|
|
89
|
+
children: /* @__PURE__ */ o(In, { icon: Qn, size: "sm" })
|
|
90
90
|
}
|
|
91
91
|
)
|
|
92
92
|
]
|
|
93
93
|
}
|
|
94
94
|
) }),
|
|
95
|
-
/* @__PURE__ */ o(
|
|
95
|
+
/* @__PURE__ */ o(jn, { className: "px-0.5", children: s })
|
|
96
96
|
] });
|
|
97
97
|
}, Wn = ({
|
|
98
98
|
rows: e,
|
|
@@ -283,7 +283,7 @@ const R = 3, _n = ({
|
|
|
283
283
|
);
|
|
284
284
|
},
|
|
285
285
|
[l, d, f, s]
|
|
286
|
-
), S = p(null),
|
|
286
|
+
), S = p(null), y = A(
|
|
287
287
|
(n) => {
|
|
288
288
|
b(n), x.has(n) && S.current && (O.current = n, S.current.focusMarker(n), O.current = null, D.current = !0);
|
|
289
289
|
},
|
|
@@ -295,23 +295,23 @@ const R = 3, _n = ({
|
|
|
295
295
|
},
|
|
296
296
|
[]
|
|
297
297
|
);
|
|
298
|
-
const [P,
|
|
299
|
-
n !== P && (
|
|
298
|
+
const [P, yn] = w(!1), [Nn, z] = w(!1), [B, H] = w(""), J = (n) => {
|
|
299
|
+
n !== P && (yn(n), gn?.(n));
|
|
300
300
|
}, An = () => {
|
|
301
301
|
z(!0), H(""), J(!0);
|
|
302
302
|
}, Z = M(
|
|
303
303
|
() => ({
|
|
304
|
-
select: (n) => n ?
|
|
304
|
+
select: (n) => n ? y(f(n)) : b(null),
|
|
305
305
|
selectedRecordId: h,
|
|
306
306
|
placement: (n) => {
|
|
307
307
|
const g = f(n);
|
|
308
308
|
return x.has(g) ? "placed" : W.get(g) ?? "unplaced";
|
|
309
309
|
}
|
|
310
310
|
}),
|
|
311
|
-
[
|
|
312
|
-
),
|
|
313
|
-
|
|
314
|
-
const V =
|
|
311
|
+
[y, b, f, h, x, W]
|
|
312
|
+
), N = h ? d.find((n) => f(n) === h) ?? null : null, G = p(null);
|
|
313
|
+
N && (G.current = N);
|
|
314
|
+
const V = N ?? G.current, Y = A(() => S.current?.fitToMarkers(), []), wn = Xn({
|
|
315
315
|
querySignature: JSON.stringify({
|
|
316
316
|
filters: e.currentFilters ?? {},
|
|
317
317
|
search: e.currentSearch ?? ""
|
|
@@ -331,8 +331,8 @@ const R = 3, _n = ({
|
|
|
331
331
|
const nn = p(null);
|
|
332
332
|
v(() => {
|
|
333
333
|
const n = `${c}:${u ?? 0}`;
|
|
334
|
-
!c || nn.current === n || !d.some((g) => f(g) === c) || (nn.current = n,
|
|
335
|
-
}, [c, u, d, f,
|
|
334
|
+
!c || nn.current === n || !d.some((g) => f(g) === c) || (nn.current = n, y(c));
|
|
335
|
+
}, [c, u, d, f, y]);
|
|
336
336
|
const Rn = M(() => {
|
|
337
337
|
const n = B.trim().toLowerCase();
|
|
338
338
|
return !C || !n ? null : [...m, ...T].filter(
|
|
@@ -365,7 +365,7 @@ const R = 3, _n = ({
|
|
|
365
365
|
unplaced: m,
|
|
366
366
|
placed: T,
|
|
367
367
|
matches: Rn,
|
|
368
|
-
notOnMapOpen:
|
|
368
|
+
notOnMapOpen: Nn,
|
|
369
369
|
onNotOnMapOpenChange: z
|
|
370
370
|
}
|
|
371
371
|
),
|
|
@@ -399,7 +399,7 @@ const R = 3, _n = ({
|
|
|
399
399
|
// oxlint-disable-next-line react/jsx-no-useless-fragment -- a node, not null: see above
|
|
400
400
|
/* @__PURE__ */ o(rn, {})
|
|
401
401
|
) : null,
|
|
402
|
-
detailOpen: !!
|
|
402
|
+
detailOpen: !!N,
|
|
403
403
|
clearSelectionOnBackgroundClick: !F,
|
|
404
404
|
fullScreen: !0
|
|
405
405
|
}
|