@factorialco/f0-react 6.88.3 → 6.88.4
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-DdrOp7Rm.js → ChatPdfThumbnail-DyN19lpl.js} +1 -1
- package/dist/{CoachmarkProvider-CoPINK6_.js → CoachmarkProvider-DEb5iYR1.js} +2701 -2711
- package/dist/{DocumentToolbar-p4qZSVUD.js → DocumentToolbar-yRNLFw0I.js} +29 -29
- package/dist/{DocxViewer-_Z59Wr2S.js → DocxViewer-DRIhy7xS.js} +10 -10
- package/dist/{F0AiProcessingOverlay-CwJG6TgU.js → F0AiProcessingOverlay-D13utNB6.js} +408 -402
- package/dist/{F0CanvasPanel-CpgOQnbI.js → F0CanvasPanel-CHIKqAx1.js} +1420 -1414
- package/dist/{F0VideoPlayer-CXAjfSnS.js → F0VideoPlayer-DNtsUfgx.js} +143 -139
- package/dist/{LocationMap-Bp7gglCx.js → LocationMap-CjCx8Izp.js} +1 -1
- package/dist/{SheetViewer-DSbC_CR2.js → SheetViewer-Z6YuRpt5.js} +12 -12
- package/dist/{TextViewer-BkgAiijZ.js → TextViewer-BDO172lU.js} +2 -2
- package/dist/ai.d.ts +9 -9
- package/dist/ai.js +2 -2
- package/dist/component-status.d.ts +9 -9
- package/dist/component-status.js +72 -70
- package/dist/{experimental-Crt7EEav.js → experimental-DTSd_ojK.js} +583 -569
- package/dist/experimental.d.ts +9 -9
- package/dist/experimental.js +3 -3
- package/dist/f0.d.ts +9 -9
- package/dist/f0.js +396 -388
- package/dist/i18n-provider-defaults.d.ts +9 -9
- package/dist/{index-BP9845Kl.js → index-ChySRaDP.js} +49 -49
- package/dist/index-DZQja3s3.js +4 -0
- package/dist/{pdfWorker-wHv_aPH2.js → pdfWorker-BQ72TLRX.js} +2 -2
- package/package.json +2 -1
- package/dist/index-uG8opRj1.js +0 -4
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as p } from "react/jsx-runtime";
|
|
2
|
-
import { m } from "./experimental-
|
|
2
|
+
import { m } from "./experimental-DTSd_ojK.js";
|
|
3
3
|
import { useRef as l, useEffect as i, useState as b } from "react";
|
|
4
4
|
const k = "https://tiles.openfreemap.org/styles/positron", y = "https://tiles.openfreemap.org/styles/dark", R = 15, d = (n) => {
|
|
5
5
|
const [c, s] = b(!1);
|
|
@@ -1,25 +1,25 @@
|
|
|
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-CHIKqAx1.js";
|
|
4
4
|
import { f as z, c as E } from "./sheetPreview-Djc-YyVs.js";
|
|
5
|
-
import { u as _, D as j } from "./DocumentToolbar-
|
|
5
|
+
import { u as _, D as j } from "./DocumentToolbar-yRNLFw0I.js";
|
|
6
6
|
const g = 1e3, F = 100, G = ({
|
|
7
7
|
url: n,
|
|
8
8
|
filename: y,
|
|
9
9
|
withCredentials: d = !0,
|
|
10
10
|
actions: x
|
|
11
11
|
}) => {
|
|
12
|
-
const
|
|
12
|
+
const l = v(), f = _(), [t, m] = i(null), [w, c] = i(!1), [u, b] = i(0);
|
|
13
13
|
k(() => {
|
|
14
14
|
let e = !1;
|
|
15
|
-
return m(null),
|
|
15
|
+
return m(null), c(!1), b(0), z(n, {
|
|
16
16
|
maxRows: g,
|
|
17
17
|
maxCols: F,
|
|
18
18
|
withCredentials: d
|
|
19
19
|
}).then((o) => {
|
|
20
|
-
e || (o.length === 0 ?
|
|
20
|
+
e || (o.length === 0 ? c(!0) : m(o));
|
|
21
21
|
}).catch(() => {
|
|
22
|
-
e ||
|
|
22
|
+
e || c(!0);
|
|
23
23
|
}), () => {
|
|
24
24
|
e = !0;
|
|
25
25
|
};
|
|
@@ -34,7 +34,7 @@ const g = 1e3, F = 100, G = ({
|
|
|
34
34
|
withCredentials: d,
|
|
35
35
|
actions: x,
|
|
36
36
|
zoom: f,
|
|
37
|
-
children: t && t.length > 1
|
|
37
|
+
children: t && t.length > 1 ? /* @__PURE__ */ r(
|
|
38
38
|
S,
|
|
39
39
|
{
|
|
40
40
|
type: "single",
|
|
@@ -54,10 +54,10 @@ const g = 1e3, F = 100, G = ({
|
|
|
54
54
|
`${e.name}-${o}`
|
|
55
55
|
))
|
|
56
56
|
}
|
|
57
|
-
)
|
|
57
|
+
) : null
|
|
58
58
|
}
|
|
59
59
|
),
|
|
60
|
-
w ? /* @__PURE__ */ r("div", { className: "flex min-h-0 grow items-center justify-center text-f1-foreground-secondary", children:
|
|
60
|
+
w ? /* @__PURE__ */ r("div", { className: "flex min-h-0 grow items-center justify-center text-f1-foreground-secondary", children: l.pdfViewer.previewFailed }) : s ? /* @__PURE__ */ a(N, { children: [
|
|
61
61
|
/* @__PURE__ */ r("div", { className: "min-h-0 grow overflow-auto", children: /* @__PURE__ */ a(
|
|
62
62
|
"table",
|
|
63
63
|
{
|
|
@@ -89,15 +89,15 @@ const g = 1e3, F = 100, G = ({
|
|
|
89
89
|
]
|
|
90
90
|
}
|
|
91
91
|
) }),
|
|
92
|
-
s.truncatedRows
|
|
92
|
+
s.truncatedRows ? /* @__PURE__ */ r("div", { className: "shrink-0 border-0 border-t border-solid border-f1-border-secondary px-3 py-1.5 text-sm text-f1-foreground-secondary", children: l.t("pdfViewer.showingFirstRows.other", {
|
|
93
93
|
count: g
|
|
94
|
-
}) })
|
|
94
|
+
}) }) : null
|
|
95
95
|
] }) : /* @__PURE__ */ r(
|
|
96
96
|
R,
|
|
97
97
|
{
|
|
98
98
|
role: "status",
|
|
99
99
|
"aria-busy": !0,
|
|
100
|
-
"aria-label":
|
|
100
|
+
"aria-label": l.pdfViewer.loading,
|
|
101
101
|
className: "min-h-0 w-full grow rounded-none"
|
|
102
102
|
}
|
|
103
103
|
)
|
|
@@ -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-CHIKqAx1.js";
|
|
4
|
+
import { u as y, D as g } from "./DocumentToolbar-yRNLFw0I.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
|
@@ -5806,10 +5806,9 @@ declare module "@tiptap/core" {
|
|
|
5806
5806
|
|
|
5807
5807
|
declare module "@tiptap/core" {
|
|
5808
5808
|
interface Commands<ReturnType> {
|
|
5809
|
-
|
|
5810
|
-
|
|
5811
|
-
|
|
5812
|
-
outdent: () => ReturnType;
|
|
5809
|
+
fontSize: {
|
|
5810
|
+
setFontSize: (fontSize: string) => ReturnType;
|
|
5811
|
+
unsetFontSize: () => ReturnType;
|
|
5813
5812
|
};
|
|
5814
5813
|
}
|
|
5815
5814
|
}
|
|
@@ -5817,8 +5816,10 @@ declare module "@tiptap/core" {
|
|
|
5817
5816
|
|
|
5818
5817
|
declare module "@tiptap/core" {
|
|
5819
5818
|
interface Commands<ReturnType> {
|
|
5820
|
-
|
|
5821
|
-
|
|
5819
|
+
indent: {
|
|
5820
|
+
setIndent: (level: number) => ReturnType;
|
|
5821
|
+
unsetIndent: () => ReturnType;
|
|
5822
|
+
outdent: () => ReturnType;
|
|
5822
5823
|
};
|
|
5823
5824
|
}
|
|
5824
5825
|
}
|
|
@@ -5826,9 +5827,8 @@ declare module "@tiptap/core" {
|
|
|
5826
5827
|
|
|
5827
5828
|
declare module "@tiptap/core" {
|
|
5828
5829
|
interface Commands<ReturnType> {
|
|
5829
|
-
|
|
5830
|
-
|
|
5831
|
-
unsetFontSize: () => ReturnType;
|
|
5830
|
+
moodTracker: {
|
|
5831
|
+
insertMoodTracker: (data: MoodTrackerData) => ReturnType;
|
|
5832
5832
|
};
|
|
5833
5833
|
}
|
|
5834
5834
|
}
|
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-CHIKqAx1.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-D13utNB6.js";
|
|
4
4
|
export {
|
|
5
5
|
P as AiChatTranslationsProvider,
|
|
6
6
|
e as ChatSpinner,
|
|
@@ -318,10 +318,9 @@ declare module "@tiptap/core" {
|
|
|
318
318
|
|
|
319
319
|
declare module "@tiptap/core" {
|
|
320
320
|
interface Commands<ReturnType> {
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
outdent: () => ReturnType;
|
|
321
|
+
fontSize: {
|
|
322
|
+
setFontSize: (fontSize: string) => ReturnType;
|
|
323
|
+
unsetFontSize: () => ReturnType;
|
|
325
324
|
};
|
|
326
325
|
}
|
|
327
326
|
}
|
|
@@ -329,8 +328,10 @@ declare module "@tiptap/core" {
|
|
|
329
328
|
|
|
330
329
|
declare module "@tiptap/core" {
|
|
331
330
|
interface Commands<ReturnType> {
|
|
332
|
-
|
|
333
|
-
|
|
331
|
+
indent: {
|
|
332
|
+
setIndent: (level: number) => ReturnType;
|
|
333
|
+
unsetIndent: () => ReturnType;
|
|
334
|
+
outdent: () => ReturnType;
|
|
334
335
|
};
|
|
335
336
|
}
|
|
336
337
|
}
|
|
@@ -338,9 +339,8 @@ declare module "@tiptap/core" {
|
|
|
338
339
|
|
|
339
340
|
declare module "@tiptap/core" {
|
|
340
341
|
interface Commands<ReturnType> {
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
unsetFontSize: () => ReturnType;
|
|
342
|
+
moodTracker: {
|
|
343
|
+
insertMoodTracker: (data: MoodTrackerData) => ReturnType;
|
|
344
344
|
};
|
|
345
345
|
}
|
|
346
346
|
}
|