@factorialco/f0-react 8.36.1 → 9.0.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-BbOPESdU.js → ChatPdfThumbnail-Ch2Pi_N2.js} +1 -1
- package/dist/{ChatPostComposerDialog-Cv7VtLD6.js → ChatPostComposerDialog-CW24c9tS.js} +3 -3
- package/dist/{MapProvider-Q8EU0u5y.js → CoachmarkProvider-BXGXfIw-.js} +15546 -15554
- package/dist/{DocumentToolbar-CVrrJ4iA.js → DocumentToolbar-Bp9iCtUO.js} +9 -9
- package/dist/{DocxViewer-AbtW-zX4.js → DocxViewer-CKrXuvnB.js} +2 -2
- package/dist/{F0AiProcessingOverlay-BDqqztvk.js → F0AiProcessingOverlay-SFLE4xoa.js} +1 -1
- package/dist/{F0CanvasPanel-WVtVnJRZ.js → F0CanvasPanel-D25Wuumh.js} +35213 -35210
- package/dist/{index-DqE_RHOm.js → F0DocumentViewer-BXlup6dL.js} +142 -149
- package/dist/{F0Map-DLKYcpUE.js → F0Map-B9_jeX3R.js} +13 -13
- package/dist/{F0VideoPlayer-D1jXuNEn.js → F0VideoPlayer-VJSe0ziC.js} +48 -48
- package/dist/{SheetViewer-KR2QIyYj.js → SheetViewer-BO9MbbYR.js} +3 -3
- package/dist/{TextViewer-D28lLt_m.js → TextViewer-B7B947JZ.js} +2 -2
- package/dist/ai.d.ts +61 -49
- package/dist/ai.js +2 -2
- package/dist/component-status.d.ts +15 -15
- package/dist/component-status.js +70 -70
- package/dist/{experimental-BSsHhEKt.js → experimental-Do9KcVJp.js} +764 -763
- package/dist/experimental.d.ts +123 -114
- package/dist/experimental.js +83 -83
- package/dist/f0.d.ts +405 -172
- package/dist/f0.js +7024 -7006
- package/dist/i18n-provider-defaults.d.ts +15 -15
- package/dist/index-Bt9_3eC1.js +4 -0
- package/dist/{index-P3wd7w_Q.js → index-C66JSsii.js} +1 -1
- package/dist/{index-CuAmARkm.js → index-C95Ox1WO.js} +15 -15
- package/dist/{index-C5FgdXF2.js → index-W5BBvrFa.js} +2 -2
- package/dist/index-a7A0EHsJ.js +8 -0
- package/dist/pdfWorker-Bi4FxYtY.js +13120 -0
- package/package.json +4 -4
- package/dist/index-B5m0OpRD.js +0 -4
- package/dist/pdfWorker-C2B0uWA2.js +0 -13120
- /package/dist/{MapProvider.css → CoachmarkProvider.css} +0 -0
- /package/dist/{index2.css → F0DocumentViewer.css} +0 -0
|
@@ -1610,9 +1610,9 @@ declare namespace Calendar {
|
|
|
1610
1610
|
|
|
1611
1611
|
declare module "@tiptap/core" {
|
|
1612
1612
|
interface Commands<ReturnType> {
|
|
1613
|
-
|
|
1614
|
-
|
|
1615
|
-
|
|
1613
|
+
fontSize: {
|
|
1614
|
+
setFontSize: (fontSize: string) => ReturnType;
|
|
1615
|
+
unsetFontSize: () => ReturnType;
|
|
1616
1616
|
};
|
|
1617
1617
|
}
|
|
1618
1618
|
}
|
|
@@ -1620,11 +1620,9 @@ declare module "@tiptap/core" {
|
|
|
1620
1620
|
|
|
1621
1621
|
declare module "@tiptap/core" {
|
|
1622
1622
|
interface Commands<ReturnType> {
|
|
1623
|
-
|
|
1624
|
-
|
|
1625
|
-
|
|
1626
|
-
}) => ReturnType;
|
|
1627
|
-
clearEnhanceHighlight: () => ReturnType;
|
|
1623
|
+
aiBlock: {
|
|
1624
|
+
insertAIBlock: (data: AIBlockData, config: AIBlockConfig) => ReturnType;
|
|
1625
|
+
executeAIAction: (actionType: string, config: AIBlockConfig) => ReturnType;
|
|
1628
1626
|
};
|
|
1629
1627
|
}
|
|
1630
1628
|
}
|
|
@@ -1632,9 +1630,10 @@ declare module "@tiptap/core" {
|
|
|
1632
1630
|
|
|
1633
1631
|
declare module "@tiptap/core" {
|
|
1634
1632
|
interface Commands<ReturnType> {
|
|
1635
|
-
|
|
1636
|
-
|
|
1637
|
-
|
|
1633
|
+
indent: {
|
|
1634
|
+
setIndent: (level: number) => ReturnType;
|
|
1635
|
+
unsetIndent: () => ReturnType;
|
|
1636
|
+
outdent: () => ReturnType;
|
|
1638
1637
|
};
|
|
1639
1638
|
}
|
|
1640
1639
|
}
|
|
@@ -1642,10 +1641,11 @@ declare module "@tiptap/core" {
|
|
|
1642
1641
|
|
|
1643
1642
|
declare module "@tiptap/core" {
|
|
1644
1643
|
interface Commands<ReturnType> {
|
|
1645
|
-
|
|
1646
|
-
|
|
1647
|
-
|
|
1648
|
-
|
|
1644
|
+
enhanceHighlight: {
|
|
1645
|
+
setEnhanceHighlight: (from: number, to: number, options?: {
|
|
1646
|
+
placeholder?: string;
|
|
1647
|
+
}) => ReturnType;
|
|
1648
|
+
clearEnhanceHighlight: () => ReturnType;
|
|
1649
1649
|
};
|
|
1650
1650
|
}
|
|
1651
1651
|
}
|
|
@@ -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 ?? ""),
|