@factorialco/f0-react 8.37.0 → 9.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/{ChatPdfThumbnail-D17gaAZw.js → ChatPdfThumbnail-Ch2Pi_N2.js} +1 -1
- package/dist/{ChatPostComposerDialog-Dzcwl3UT.js → ChatPostComposerDialog-CW24c9tS.js} +3 -3
- package/dist/{MapProvider-DrUuwDLP.js → CoachmarkProvider-BXGXfIw-.js} +1912 -1913
- package/dist/{DocumentToolbar-BF90Kcrb.js → DocumentToolbar-Bp9iCtUO.js} +2 -2
- package/dist/{DocxViewer-DXUC2CUW.js → DocxViewer-CKrXuvnB.js} +2 -2
- package/dist/{F0AiProcessingOverlay-DTsO9rEl.js → F0AiProcessingOverlay-SFLE4xoa.js} +1 -1
- package/dist/{F0CanvasPanel-kbwLvapQ.js → F0CanvasPanel-D25Wuumh.js} +19534 -19534
- package/dist/{F0DocumentViewer-Bk7ciWZW.js → F0DocumentViewer-BXlup6dL.js} +4 -4
- package/dist/{F0Map-B_XG6Txo.js → F0Map-B9_jeX3R.js} +13 -13
- package/dist/{F0VideoPlayer-Cdq6rTqq.js → F0VideoPlayer-VJSe0ziC.js} +2 -2
- package/dist/{SheetViewer-DgLdv4qf.js → SheetViewer-BO9MbbYR.js} +3 -3
- package/dist/{TextViewer-7qYfyanJ.js → TextViewer-B7B947JZ.js} +2 -2
- package/dist/ai.d.ts +45 -44
- package/dist/ai.js +2 -2
- package/dist/component-status.d.ts +17 -17
- package/dist/component-status.js +43 -43
- package/dist/{experimental-B_Hvv6tU.js → experimental-Do9KcVJp.js} +610 -610
- package/dist/experimental.d.ts +72 -68
- package/dist/experimental.js +28 -28
- package/dist/f0.d.ts +117 -102
- package/dist/f0.js +7863 -7778
- package/dist/i18n-provider-defaults.d.ts +17 -17
- package/dist/index-Bt9_3eC1.js +4 -0
- package/dist/{index-QJVt3QQ2.js → index-C66JSsii.js} +1 -1
- package/dist/{index-HEb5Ocnl.js → index-C95Ox1WO.js} +15 -15
- package/dist/{index-BQthngzU.js → index-W5BBvrFa.js} +2 -2
- package/dist/index-a7A0EHsJ.js +8 -0
- package/dist/{pdfWorker-CX_u28dQ.js → pdfWorker-Bi4FxYtY.js} +2 -2
- package/package.json +4 -4
- package/dist/index-BGG-4WaL.js +0 -4
- package/dist/index-CzPx-LpF.js +0 -8
- /package/dist/{MapProvider.css → CoachmarkProvider.css} +0 -0
|
@@ -1620,9 +1620,10 @@ declare module "@tiptap/core" {
|
|
|
1620
1620
|
|
|
1621
1621
|
declare module "@tiptap/core" {
|
|
1622
1622
|
interface Commands<ReturnType> {
|
|
1623
|
-
|
|
1624
|
-
|
|
1625
|
-
|
|
1623
|
+
indent: {
|
|
1624
|
+
setIndent: (level: number) => ReturnType;
|
|
1625
|
+
unsetIndent: () => ReturnType;
|
|
1626
|
+
outdent: () => ReturnType;
|
|
1626
1627
|
};
|
|
1627
1628
|
}
|
|
1628
1629
|
}
|
|
@@ -1630,11 +1631,8 @@ declare module "@tiptap/core" {
|
|
|
1630
1631
|
|
|
1631
1632
|
declare module "@tiptap/core" {
|
|
1632
1633
|
interface Commands<ReturnType> {
|
|
1633
|
-
|
|
1634
|
-
|
|
1635
|
-
placeholder?: string;
|
|
1636
|
-
}) => ReturnType;
|
|
1637
|
-
clearEnhanceHighlight: () => ReturnType;
|
|
1634
|
+
moodTracker: {
|
|
1635
|
+
insertMoodTracker: (data: MoodTrackerData) => ReturnType;
|
|
1638
1636
|
};
|
|
1639
1637
|
}
|
|
1640
1638
|
}
|
|
@@ -1642,8 +1640,9 @@ declare module "@tiptap/core" {
|
|
|
1642
1640
|
|
|
1643
1641
|
declare module "@tiptap/core" {
|
|
1644
1642
|
interface Commands<ReturnType> {
|
|
1645
|
-
|
|
1646
|
-
|
|
1643
|
+
aiBlock: {
|
|
1644
|
+
insertAIBlock: (data: AIBlockData, config: AIBlockConfig) => ReturnType;
|
|
1645
|
+
executeAIAction: (actionType: string, config: AIBlockConfig) => ReturnType;
|
|
1647
1646
|
};
|
|
1648
1647
|
}
|
|
1649
1648
|
}
|
|
@@ -1651,10 +1650,10 @@ declare module "@tiptap/core" {
|
|
|
1651
1650
|
|
|
1652
1651
|
declare module "@tiptap/core" {
|
|
1653
1652
|
interface Commands<ReturnType> {
|
|
1654
|
-
|
|
1655
|
-
|
|
1656
|
-
|
|
1657
|
-
|
|
1653
|
+
videoEmbed: {
|
|
1654
|
+
setVideoEmbed: (options: {
|
|
1655
|
+
src: string;
|
|
1656
|
+
}) => ReturnType;
|
|
1658
1657
|
};
|
|
1659
1658
|
}
|
|
1660
1659
|
}
|
|
@@ -1671,10 +1670,11 @@ declare module "@tiptap/core" {
|
|
|
1671
1670
|
|
|
1672
1671
|
declare module "@tiptap/core" {
|
|
1673
1672
|
interface Commands<ReturnType> {
|
|
1674
|
-
|
|
1675
|
-
|
|
1676
|
-
|
|
1673
|
+
enhanceHighlight: {
|
|
1674
|
+
setEnhanceHighlight: (from: number, to: number, options?: {
|
|
1675
|
+
placeholder?: string;
|
|
1677
1676
|
}) => ReturnType;
|
|
1677
|
+
clearEnhanceHighlight: () => ReturnType;
|
|
1678
1678
|
};
|
|
1679
1679
|
}
|
|
1680
1680
|
}
|
|
@@ -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 {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
3
|
+
import { F as En, a as Fn, R as tn } from "./F0Map-B9_jeX3R.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, u as sn } from "./F0CanvasPanel-D25Wuumh.js";
|
|
5
|
+
import { d as L, f as on, u as jn } from "./tooltip-CrXp1Uaz.js";
|
|
6
|
+
import { a as cn, u as Kn, S as Un } from "./CoachmarkProvider-BXGXfIw-.js";
|
|
7
7
|
const R = 3, _n = ({
|
|
8
8
|
title: e,
|
|
9
9
|
count: t,
|
|
@@ -25,7 +25,7 @@ const R = 3, _n = ({
|
|
|
25
25
|
),
|
|
26
26
|
children: [
|
|
27
27
|
/* @__PURE__ */ o("span", { className: "whitespace-nowrap", children: /* @__PURE__ */ o(
|
|
28
|
-
|
|
28
|
+
Tn,
|
|
29
29
|
{
|
|
30
30
|
variant: "label",
|
|
31
31
|
content: e,
|
|
@@ -38,7 +38,7 @@ const R = 3, _n = ({
|
|
|
38
38
|
// the point. The rest go in as `remainingCount`, not items, which would
|
|
39
39
|
// make the bubble a button inside this button.
|
|
40
40
|
/* @__PURE__ */ o(
|
|
41
|
-
|
|
41
|
+
Dn,
|
|
42
42
|
{
|
|
43
43
|
type: "person",
|
|
44
44
|
avatars: a.slice(0, R),
|
|
@@ -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] = jn({
|
|
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(Pn, { open: c, onOpenChange: u, "data-testid": l, children: [
|
|
69
|
+
/* @__PURE__ */ o(Bn, { 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(Ln, { icon: In, size: "sm" })
|
|
90
90
|
}
|
|
91
91
|
)
|
|
92
92
|
]
|
|
93
93
|
}
|
|
94
94
|
) }),
|
|
95
|
-
/* @__PURE__ */ o(
|
|
95
|
+
/* @__PURE__ */ o(Qn, { className: "px-0.5", children: s })
|
|
96
96
|
] });
|
|
97
97
|
}, Wn = ({
|
|
98
98
|
rows: e,
|
|
@@ -252,7 +252,7 @@ const R = 3, _n = ({
|
|
|
252
252
|
), Mn = M(
|
|
253
253
|
() => e.dataAdapter.paginationType ? { ...e.dataAdapter, perPage: j } : e.dataAdapter,
|
|
254
254
|
[e.dataAdapter, j]
|
|
255
|
-
), { data: Cn, paginationInfo: K, isInitialLoading: U, isLoading: xn } =
|
|
255
|
+
), { data: Cn, paginationInfo: K, isInitialLoading: U, isLoading: xn } = Kn({ ...e, dataAdapter: Mn }, { onError: bn }), d = Cn.records;
|
|
256
256
|
v(() => {
|
|
257
257
|
vn({
|
|
258
258
|
totalItems: K?.total || d.length,
|
|
@@ -342,8 +342,8 @@ const R = 3, _n = ({
|
|
|
342
342
|
() => a ? zn(m.map(a)) : null,
|
|
343
343
|
[m, a]
|
|
344
344
|
), en = "flex h-full min-h-0 flex-1 flex-col border-0 border-t border-solid border-f1-border-secondary";
|
|
345
|
-
return U ? /* @__PURE__ */ o("div", { className: en, children: /* @__PURE__ */ o(
|
|
346
|
-
|
|
345
|
+
return U ? /* @__PURE__ */ o("div", { className: en, children: /* @__PURE__ */ o(En, {}) }) : /* @__PURE__ */ o("div", { className: en, children: /* @__PURE__ */ o(
|
|
346
|
+
Fn,
|
|
347
347
|
{
|
|
348
348
|
ref: S,
|
|
349
349
|
markers: _,
|
|
@@ -386,7 +386,7 @@ const R = 3, _n = ({
|
|
|
386
386
|
}
|
|
387
387
|
),
|
|
388
388
|
search: C ? /* @__PURE__ */ o(
|
|
389
|
-
|
|
389
|
+
Un,
|
|
390
390
|
{
|
|
391
391
|
value: B,
|
|
392
392
|
onChange: (n) => H(n ?? ""),
|