@factorialco/f0-react 10.7.0 → 10.9.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/{ChatPostComposerDialog-C2V9TUkg.js → ChatPostComposerDialog-Fz7bdV_-.js} +2 -2
- package/dist/{CoachmarkProvider-BvBZeMBP.js → CoachmarkProvider-DqNqwEPd.js} +14288 -14288
- package/dist/{DocumentToolbar-Ms3L6qnK.js → DocumentToolbar-B4aCipER.js} +2 -2
- package/dist/{DocxViewer-53xYfUJz.js → DocxViewer-BOdYordL.js} +1 -1
- package/dist/{F0AiProcessingOverlay-DU9SNCpZ.js → F0AiProcessingOverlay-BTW13lnQ.js} +1421 -2188
- package/dist/{F0CanvasPanel-CZJtegui.js → F0CanvasPanel-BcBFycU-.js} +1980 -509
- package/dist/F0DocumentViewer-BqRsz00c.js +3 -0
- package/dist/{F0DocumentViewer-CMRiSo6z.js → F0DocumentViewer-CWZNde9w.js} +7 -7
- package/dist/{F0Map-Biu6ugJ0.js → F0Map-4fqLL5gP.js} +5 -5
- package/dist/{F0VideoPlayer-ecHVj-1l.js → F0VideoPlayer-CTsCZ4u5.js} +270 -270
- package/dist/F0VideoPlayer-DEpDxvjC.js +1 -0
- package/dist/{Map-UhAoXj_6.js → Map-B_fzR9ly.js} +3 -3
- package/dist/{PdfThumbnail-CAjsh0iU.js → PdfThumbnail-BLNfQ1EH.js} +1 -1
- package/dist/{SheetViewer-C95sLVLL.js → SheetViewer-BhZTOpb4.js} +6 -6
- package/dist/{TextViewer-D5kapR67.js → TextViewer-B1eR_7q4.js} +1 -1
- package/dist/ai.d.ts +2 -2
- package/dist/ai.js +4 -4
- package/dist/component-status.js +29 -7
- package/dist/experimental.d.ts +1 -1
- package/dist/experimental.js +7218 -8153
- package/dist/{exports-G0JJykkK.d.ts → exports-cU26nMV5.d.ts} +365 -15
- package/dist/f0.d.ts +3 -3
- package/dist/f0.js +1709 -1709
- package/dist/{index-BrGZDOLv.d.ts → index-BDEEuyti.d.ts} +1 -1
- package/dist/{maplibre-BxlnEhf3.js → maplibre-NpfvETJP.js} +1 -1
- package/dist/{pdfWorker-C9Hcqt4e.js → pdfWorker-CA8jPCRh.js} +1 -1
- package/dist/styles.css +1 -1
- package/package.json +1 -1
- package/dist/F0DocumentViewer-DOf2JnU5.js +0 -3
- package/dist/F0VideoPlayer-fM7EfmVJ.js +0 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { ar as e, b as t, ln as n, rn as r, rr as i, zt as a } from "./popover-B7fqB9lu.js";
|
|
2
2
|
import { I as o } from "./tooltip-TOvfXq9F.js";
|
|
3
|
-
import {
|
|
3
|
+
import { Es as s, Oa as c, mo as l, xo as u } from "./F0CanvasPanel-BcBFycU-.js";
|
|
4
4
|
import { W as d, q as f } from "./useData-CAl9SKtE.js";
|
|
5
5
|
import { Er as p, dr as m, t as h } from "./F0Select-By_QpX1S.js";
|
|
6
|
-
import { i as g, n as _, r as v } from "./pdfWorker-
|
|
6
|
+
import { i as g, n as _, r as v } from "./pdfWorker-CA8jPCRh.js";
|
|
7
7
|
import { Suspense as y, forwardRef as b, lazy as x, useCallback as S, useEffect as C, useMemo as w, useRef as T, useState as E } from "react";
|
|
8
8
|
import { jsx as D, jsxs as O } from "react/jsx-runtime";
|
|
9
9
|
import './F0DocumentViewer.css';//#region src/addons/documents/F0DocumentViewer/components/PdfLoadingState.tsx
|
|
@@ -27,7 +27,7 @@ var k = ({ label: e, width: t, height: r }) => /* @__PURE__ */ D("div", {
|
|
|
27
27
|
hideLabel: !0,
|
|
28
28
|
variant: "outline",
|
|
29
29
|
size: i
|
|
30
|
-
}), j = (e) => o("z-10 flex flex-row items-center gap-2", e === "top" ? "F0DocumentViewer__surface sticky top-0 justify-between px-6 py-4" : "absolute bottom-4 left-1/2 w-max max-w-[calc(100%-2rem)] -translate-x-1/2 gap-4 rounded-xl bg-f1-background-inverse p-2 text-f1-foreground-inverse shadow-lg backdrop-blur-sm"), M = (e, t) => o("flex flex-row items-center gap-2", e === "floating" && "dark", t), N = ({ toolbarRef: e, currentPage: t, totalPages: n, hasDocument: i, selectedScale: a, scaleOptions:
|
|
30
|
+
}), j = (e) => o("z-10 flex flex-row items-center gap-2", e === "top" ? "F0DocumentViewer__surface sticky top-0 justify-between px-6 py-4" : "absolute bottom-4 left-1/2 w-max max-w-[calc(100%-2rem)] -translate-x-1/2 gap-4 rounded-xl bg-f1-background-inverse p-2 text-f1-foreground-inverse shadow-lg backdrop-blur-sm"), M = (e, t) => o("flex flex-row items-center gap-2", e === "floating" && "dark", t), N = ({ toolbarRef: e, currentPage: t, totalPages: n, hasDocument: i, selectedScale: a, scaleOptions: c, onPreviousPage: g, onNextPage: _, onZoomIn: v, onZoomOut: y, onScaleChange: b, rotatable: x, onRotate: S, onPrint: C, onDownload: w, actions: T, placement: E }) => {
|
|
31
31
|
let { pdfViewer: k } = r(), N = M(E);
|
|
32
32
|
return /* @__PURE__ */ O("div", {
|
|
33
33
|
ref: e,
|
|
@@ -75,7 +75,7 @@ var k = ({ label: e, width: t, height: r }) => /* @__PURE__ */ D("div", {
|
|
|
75
75
|
/* @__PURE__ */ D(h, {
|
|
76
76
|
hideLabel: !0,
|
|
77
77
|
label: k.scaleSelector,
|
|
78
|
-
options:
|
|
78
|
+
options: c,
|
|
79
79
|
value: a,
|
|
80
80
|
onChange: (e) => b(e)
|
|
81
81
|
})
|
|
@@ -97,7 +97,7 @@ var k = ({ label: e, width: t, height: r }) => /* @__PURE__ */ D("div", {
|
|
|
97
97
|
/* @__PURE__ */ D(A, {
|
|
98
98
|
label: k.download,
|
|
99
99
|
onClick: w,
|
|
100
|
-
icon:
|
|
100
|
+
icon: s
|
|
101
101
|
}),
|
|
102
102
|
T?.map((e, t) => /* @__PURE__ */ D(A, {
|
|
103
103
|
label: e.label,
|
|
@@ -183,7 +183,7 @@ var k = ({ label: e, width: t, height: r }) => /* @__PURE__ */ D("div", {
|
|
|
183
183
|
//#endregion
|
|
184
184
|
//#region src/addons/documents/F0DocumentViewer/F0DocumentViewer.tsx
|
|
185
185
|
_();
|
|
186
|
-
var z = x(() => import("./SheetViewer-
|
|
186
|
+
var z = x(() => import("./SheetViewer-BhZTOpb4.js")), B = x(() => import("./DocxViewer-BOdYordL.js")), V = x(() => import("./TextViewer-B1eR_7q4.js")), se = 48, ce = 150, H = b((e, t) => {
|
|
187
187
|
let { kind: r = "pdf", mimeType: i, toolbar: a = "top", ...o } = e;
|
|
188
188
|
if (r === "pdf") return /* @__PURE__ */ D(U, {
|
|
189
189
|
ref: t,
|
|
@@ -386,6 +386,6 @@ var U = b((e, t) => {
|
|
|
386
386
|
});
|
|
387
387
|
});
|
|
388
388
|
U.displayName = "PdfViewerBase";
|
|
389
|
-
var W = e(i("F0DocumentViewer",
|
|
389
|
+
var W = e(i("F0DocumentViewer", c(H, P))), G = W;
|
|
390
390
|
//#endregion
|
|
391
391
|
export { ie as a, M as c, ae as i, A as l, G as n, I as o, L as r, j as s, W as t };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { a as e, o as t, ri as n } from "./CoachmarkProvider-
|
|
1
|
+
import { a as e, o as t, ri as n } from "./CoachmarkProvider-DqNqwEPd.js";
|
|
2
2
|
import { Ht as r, Lt as i, Mt as a, Zn as o, b as s, gn as c, in as l, ir as u, mn as d, rn as f } from "./popover-B7fqB9lu.js";
|
|
3
3
|
import { I as p, L as m } from "./tooltip-TOvfXq9F.js";
|
|
4
4
|
import { n as h, t as g } from "./F0Box-CYL5_Zhb.js";
|
|
5
|
-
import {
|
|
5
|
+
import { No as _, ms as v, no as y } from "./F0CanvasPanel-BcBFycU-.js";
|
|
6
6
|
import { J as b, N as x, W as S, x as ee } from "./useData-CAl9SKtE.js";
|
|
7
7
|
import { n as te, t as C } from "./dist-CSP_0yKt.js";
|
|
8
8
|
import { createContext as ne, forwardRef as w, useCallback as T, useContext as re, useEffect as E, useId as ie, useImperativeHandle as ae, useLayoutEffect as oe, useMemo as D, useRef as O, useState as k } from "react";
|
|
@@ -407,14 +407,14 @@ var Te = L, R = (e, t) => `hsl(${ve(e, t).replace(/ /g, ", ")})`, z = (e, t) =>
|
|
|
407
407
|
variant: "ghost",
|
|
408
408
|
size: "md",
|
|
409
409
|
label: i?.fit ?? c.map.controls.fit,
|
|
410
|
-
icon:
|
|
410
|
+
icon: v,
|
|
411
411
|
hideLabel: !0,
|
|
412
412
|
onClick: n
|
|
413
413
|
}) : null, r ? /* @__PURE__ */ A(s, {
|
|
414
414
|
variant: "ghost",
|
|
415
415
|
size: "md",
|
|
416
416
|
label: i?.locate ?? c.map.controls.locate,
|
|
417
|
-
icon:
|
|
417
|
+
icon: y,
|
|
418
418
|
hideLabel: !0,
|
|
419
419
|
onClick: r
|
|
420
420
|
}) : null] })) : null, d ? p(/* @__PURE__ */ j(se, { children: [e ? /* @__PURE__ */ A(s, {
|
|
@@ -1355,7 +1355,7 @@ var xt = {
|
|
|
1355
1355
|
isDark: e
|
|
1356
1356
|
};
|
|
1357
1357
|
}, Et = {
|
|
1358
|
-
maplibre: async () => (await import("./maplibre-
|
|
1358
|
+
maplibre: async () => (await import("./maplibre-NpfvETJP.js")).createMaplibreAdapter,
|
|
1359
1359
|
google: async (e) => (await import("./google-B7uAYsxU.js")).loadGoogleAdapter(e)
|
|
1360
1360
|
}, Dt = /* @__PURE__ */ new Map(), Ot = (e, t) => {
|
|
1361
1361
|
let n = Dt.get(e);
|