@factorialco/f0-react 16.23.0 → 16.25.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/{ArchiveThumbnail-DVDLD1KO.js → ArchiveThumbnail-BWTI7ezC.js} +3 -3
- package/dist/{ArchiveViewer-DE9_XePM.js → ArchiveViewer-BlnfVLsJ.js} +5 -5
- package/dist/{ChatPostComposerDialog-CwwUOsKv.js → ChatPostComposerDialog-Ca3fcEzD.js} +3 -3
- package/dist/{CoachmarkProvider-DKzIMyWY.js → CoachmarkProvider-Bw3qcSzA.js} +9690 -9690
- package/dist/{CodeThumbnail-xdea98O9.js → CodeThumbnail-PtY8O4_C.js} +1 -1
- package/dist/{CodeViewer-Btnvqa-X.js → CodeViewer-DWjmRhtn.js} +6 -6
- package/dist/{DocumentToolbar-B_sygiWe.js → DocumentToolbar-CKdCMI09.js} +7 -7
- package/dist/{DocxViewer-BKEv7ORw.js → DocxViewer-g_DkGE6G.js} +3 -3
- package/dist/{F0AiProcessingOverlay-BBvhg8LC.js → F0AiProcessingOverlay-Dh3YEI67.js} +38 -38
- package/dist/{F0Alert-DtSyPCxn.js → F0Alert-BkUUU2Es.js} +5 -5
- package/dist/F0AudioPlayer-vHt8D_MA.js +2 -0
- package/dist/{F0Button-B217B6lh.js → F0Button-C1aRGjA7.js} +3 -3
- package/dist/{F0CanvasPanel-CQ7gX7-P.js → F0CanvasPanel-D6eWdQK0.js} +208 -208
- package/dist/{F0DocumentViewer-BZsMdNcY.js → F0DocumentViewer-BtD9t71V.js} +1 -1
- package/dist/{F0DocumentViewer-DWXuPrOG.js → F0DocumentViewer-DhffyI63.js} +4 -4
- package/dist/{F0Icon-CRETnjaC.js → F0Icon-CA8QrO7J.js} +1 -1
- package/dist/{F0Map-BuLyNjHC.js → F0Map-ClnO_2tF.js} +15 -15
- package/dist/{F0Select-DGvIH_Gp.js → F0Select-h6e4u9ej.js} +2164 -2148
- package/dist/{F0Text-DEJMiNLl.js → F0Text-C69-6-hA.js} +2 -2
- package/dist/F0VideoPlayer-Bdf6P4CE.js +1 -0
- package/dist/{F0VideoPlayer-B4JYaa4U.js → F0VideoPlayer-DaD7MnFA.js} +6 -6
- package/dist/{HtmlThumbnail-DLYEHdZx.js → HtmlThumbnail-DOW0qL8W.js} +1 -1
- package/dist/{HtmlViewer-OY8T2uX6.js → HtmlViewer-rIlra75S.js} +9 -9
- package/dist/{LayoutGroup-DECnUFBB.js → LayoutGroup-DnZBITzE.js} +1 -1
- package/dist/{Map-CuunG2oS.js → Map-Cs17xyE6.js} +10 -10
- package/dist/{PdfThumbnail-DfwDJHEr.js → PdfThumbnail-CXGUzm25.js} +1 -1
- package/dist/{PdfViewer-DzbV7lZw.js → PdfViewer-CTGhvHvW.js} +12 -12
- package/dist/{SandboxedHtmlFrame-Ba5FAjt6.js → SandboxedHtmlFrame-sIha8vuj.js} +2 -2
- package/dist/{SheetViewer-DGX6KHnL.js → SheetViewer-0KUrMA5z.js} +5 -5
- package/dist/{TextViewer-CLqt6uiQ.js → TextViewer-D3xpfBVm.js} +4 -4
- package/dist/ai.d.ts +4 -4
- package/dist/ai.js +4 -4
- package/dist/component-status.js +29 -7
- package/dist/{dist-ClS5kbGd.js → dist-CrKS7a4M.js} +1 -1
- package/dist/{dist-BAsn0JfF.js → dist-CsLQ4kGY.js} +1 -1
- package/dist/{dist-CLXu6f__.js → dist-DRhAsNk-.js} +2 -2
- package/dist/{dist-CpxH3Mhm.js → dist-R_v43tri.js} +1 -1
- package/dist/{dist-CBsv_N04.js → dist-S2UAyvMo.js} +4 -4
- package/dist/experimental.d.ts +12 -3
- package/dist/experimental.js +645 -641
- package/dist/{exports-BSFis6g6.d.ts → exports-BLEz8iU-.d.ts} +1 -1
- package/dist/f0.d.ts +2663 -2611
- package/dist/f0.js +2563 -2003
- package/dist/{highlight-DpVfX1K9.js → highlight-DeACQIIW.js} +1 -1
- package/dist/{i18n-provider-DyI_r6Au.js → i18n-provider-CCg0vfdK.js} +1 -1
- package/dist/{i18n-provider-defaults-FGAsdJJR.d.ts → i18n-provider-defaults-CXVl-d7E.d.ts} +8 -0
- package/dist/{i18n-provider-defaults-C8fwj3sA.js → i18n-provider-defaults-DdGz6_Og.js} +8 -0
- package/dist/i18n-provider-defaults.d.ts +1 -1
- package/dist/i18n-provider-defaults.js +1 -1
- package/dist/{index-DR7cCKE6.d.ts → index-DUvBbZtb.d.ts} +982 -13
- package/dist/{types-ChFboQlr.d.ts → index-w1eJlbAW.d.ts} +3 -818
- package/dist/{maplibre-BOwxOCps.js → maplibre-Vwv9Nk1T.js} +1 -1
- package/dist/{pdfWorker-DtUZLMfu.js → pdfWorker-D54oefWJ.js} +1 -1
- package/dist/{popover-CKVOp9XF.js → popover-BFt-Tk2I.js} +1 -1
- package/dist/{skeleton-Dw-7r7zp.js → skeleton-B05pNPYx.js} +1 -1
- package/dist/styles.css +1 -1
- package/dist/{toolbarStyles-C_OrVxv7.js → toolbarStyles-Btq_icPl.js} +1 -1
- package/dist/{useData-QJRr_47g.js → useData-CzdjLV9a.js} +169 -161
- package/package.json +1 -1
- package/tailwind.config.ts +26 -0
- package/dist/F0AudioPlayer-CbwGn5bL.js +0 -2
- package/dist/F0VideoPlayer-BYTQqwd2.js +0 -1
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { n as e, r as t, t as n } from "./F0DocumentViewer-
|
|
1
|
+
import { n as e, r as t, t as n } from "./F0DocumentViewer-DhffyI63.js";
|
|
2
2
|
import { t as r } from "./pdfWorkerConfig-BwllKt1K.js";
|
|
3
3
|
export { n as F0DocumentViewer, e as F0PdfViewer, r as configurePdfWorker, t as pdfScales };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { a as e, r as t } from "./i18n-provider-
|
|
2
|
-
import { n, t as r } from "./skeleton-
|
|
1
|
+
import { a as e, r as t } from "./i18n-provider-CCg0vfdK.js";
|
|
2
|
+
import { n, t as r } from "./skeleton-B05pNPYx.js";
|
|
3
3
|
import { L as i } from "./tooltip-NXXT56H4.js";
|
|
4
|
-
import { rs as a } from "./F0CanvasPanel-
|
|
4
|
+
import { rs as a } from "./F0CanvasPanel-D6eWdQK0.js";
|
|
5
5
|
import { Suspense as o, forwardRef as s, lazy as c } from "react";
|
|
6
6
|
import { jsx as l, jsxs as u } from "react/jsx-runtime";
|
|
7
7
|
import './F0DocumentViewer.css';//#region src/addons/documents/F0DocumentViewer/types.ts
|
|
@@ -36,7 +36,7 @@ var d = [
|
|
|
36
36
|
children: /* @__PURE__ */ l(r, { className: "h-full w-full max-w-[600px] rounded-md" })
|
|
37
37
|
})]
|
|
38
38
|
});
|
|
39
|
-
}, p = c(() => import("./PdfViewer-
|
|
39
|
+
}, p = c(() => import("./PdfViewer-CTGhvHvW.js")), m = c(() => import("./SheetViewer-0KUrMA5z.js")), h = c(() => import("./DocxViewer-g_DkGE6G.js")), g = c(() => import("./TextViewer-D3xpfBVm.js")), _ = c(() => import("./CodeViewer-DWjmRhtn.js")), v = c(() => import("./HtmlViewer-rIlra75S.js")), y = c(() => import("./ArchiveViewer-BlnfVLsJ.js")), b = s((e, t) => {
|
|
40
40
|
let { kind: n = "pdf", mimeType: i, language: a, htmlExecution: s = "auto", htmlSandbox: c, sender: d, toolbar: b = "top", hideDownload: x = !1, ...S } = e;
|
|
41
41
|
if (n === "pdf") return /* @__PURE__ */ l(o, {
|
|
42
42
|
fallback: /* @__PURE__ */ l(f, {}),
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as e } from "./i18n-provider-
|
|
1
|
+
import { a as e } from "./i18n-provider-CCg0vfdK.js";
|
|
2
2
|
import { L as t, z as n } from "./tooltip-NXXT56H4.js";
|
|
3
3
|
import * as r from "react";
|
|
4
4
|
import { createContext as i, forwardRef as a, useCallback as o, useContext as s, useEffect as c, useImperativeHandle as l, useRef as u, useState as d } from "react";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { i as r, r as i } from "./i18n-provider-
|
|
1
|
+
import { Ci as e, a as t, o as n } from "./CoachmarkProvider-Bw3qcSzA.js";
|
|
2
|
+
import { i as r, r as i } from "./i18n-provider-CCg0vfdK.js";
|
|
3
3
|
import { L as a, R as o } from "./tooltip-NXXT56H4.js";
|
|
4
|
-
import { D as s, G as c, K as l, Y as u, h as d, t as f, x as p } from "./F0Button-
|
|
5
|
-
import { Ms as m, Vc as h, al as g, m as _, nn as v, r as y, sc as b } from "./F0CanvasPanel-
|
|
6
|
-
import { t as x } from "./F0Icon-
|
|
7
|
-
import {
|
|
4
|
+
import { D as s, G as c, K as l, Y as u, h as d, t as f, x as p } from "./F0Button-C1aRGjA7.js";
|
|
5
|
+
import { Ms as m, Vc as h, al as g, m as _, nn as v, r as y, sc as b } from "./F0CanvasPanel-D6eWdQK0.js";
|
|
6
|
+
import { t as x } from "./F0Icon-CA8QrO7J.js";
|
|
7
|
+
import { B as S, E as C, P as w, W as T, m as E } from "./useData-CzdjLV9a.js";
|
|
8
8
|
import { n as D, o as ee, s as O, t as k } from "./dist-DMTFO2gF.js";
|
|
9
9
|
import { createContext as A, forwardRef as j, useCallback as M, useContext as te, useEffect as N, useId as ne, useImperativeHandle as re, useLayoutEffect as ie, useMemo as P, useRef as F, useState as I } from "react";
|
|
10
10
|
import { Fragment as ae, jsx as L, jsxs as R } from "react/jsx-runtime";
|
|
@@ -145,7 +145,7 @@ var se = (e, t) => ({
|
|
|
145
145
|
let e = B.xl;
|
|
146
146
|
return -(e.d - e.caretOverlap + e.caretH + xe + Se) + 3;
|
|
147
147
|
}, U = "hsl(var(--white-100))", Ce = j(function(t, n) {
|
|
148
|
-
let { size: i = "md", selected: s = !1, collapsed: c = !1, label: d, showLabel: f = !0, labelPlacement: p = "right", onClick: m, ariaLabel: h, presentational: g = !1, dataTestId: _, className: v } = t, y = t.variant ?? "color", b = B[s ? "xl" : i], S = !!m, w = y === "color" || y === "icon" || y === "letter",
|
|
148
|
+
let { size: i = "md", selected: s = !1, collapsed: c = !1, label: d, showLabel: f = !0, labelPlacement: p = "right", onClick: m, ariaLabel: h, presentational: g = !1, dataTestId: _, className: v } = t, y = t.variant ?? "color", b = B[s ? "xl" : i], S = !!m, w = y === "color" || y === "icon" || y === "letter", T = y === "person" && "firstName" in t ? t.firstName + t.lastName : (y === "team" || y === "company") && "name" in t ? t.name : null, D = w ? t.color ?? "radical" : T ? y === "person" && "src" in t && t.src ? "grey" : C(T) ?? "grey" : "neutral", ee = e(), O = s ? 32 : {
|
|
149
149
|
xs: 12,
|
|
150
150
|
sm: 16,
|
|
151
151
|
md: 20,
|
|
@@ -177,7 +177,7 @@ var se = (e, t) => ({
|
|
|
177
177
|
transition: "font-size 200ms ease-out"
|
|
178
178
|
},
|
|
179
179
|
children: t.letter.charAt(0).toUpperCase()
|
|
180
|
-
}) : y === "person" && "firstName" in t ? M(/* @__PURE__ */ L(
|
|
180
|
+
}) : y === "person" && "firstName" in t ? M(/* @__PURE__ */ L(E, {
|
|
181
181
|
avatar: {
|
|
182
182
|
type: "person",
|
|
183
183
|
firstName: t.firstName,
|
|
@@ -185,14 +185,14 @@ var se = (e, t) => ({
|
|
|
185
185
|
src: t.src
|
|
186
186
|
},
|
|
187
187
|
size: A
|
|
188
|
-
})) : y === "team" && "name" in t ? M(/* @__PURE__ */ L(
|
|
188
|
+
})) : y === "team" && "name" in t ? M(/* @__PURE__ */ L(E, {
|
|
189
189
|
avatar: {
|
|
190
190
|
type: "team",
|
|
191
191
|
name: t.name,
|
|
192
192
|
src: t.src
|
|
193
193
|
},
|
|
194
194
|
size: A
|
|
195
|
-
})) : y === "company" && "name" in t ? M(/* @__PURE__ */ L(
|
|
195
|
+
})) : y === "company" && "name" in t ? M(/* @__PURE__ */ L(E, {
|
|
196
196
|
avatar: {
|
|
197
197
|
type: "company",
|
|
198
198
|
name: t.name,
|
|
@@ -385,7 +385,7 @@ var W = Ce, we = (e, t) => `hsl(${ye(e, t).replace(/ /g, ", ")})`, Te = (e, t) =
|
|
|
385
385
|
}
|
|
386
386
|
}, je = ({ children: e }) => /* @__PURE__ */ L("div", {
|
|
387
387
|
className: Ae(Oe.control),
|
|
388
|
-
children: /* @__PURE__ */ L(
|
|
388
|
+
children: /* @__PURE__ */ L(w, {
|
|
389
389
|
...De,
|
|
390
390
|
borderRadius: Oe.control,
|
|
391
391
|
padding: "none",
|
|
@@ -422,14 +422,14 @@ var W = Ce, we = (e, t) => `hsl(${ye(e, t).replace(/ /g, ", ")})`, Te = (e, t) =
|
|
|
422
422
|
variant: "ghost",
|
|
423
423
|
size: "md",
|
|
424
424
|
label: o?.zoomIn ?? l.map.controls.zoomIn,
|
|
425
|
-
icon:
|
|
425
|
+
icon: T,
|
|
426
426
|
hideLabel: !0,
|
|
427
427
|
onClick: e
|
|
428
428
|
}) : null, t ? /* @__PURE__ */ L(f, {
|
|
429
429
|
variant: "ghost",
|
|
430
430
|
size: "md",
|
|
431
431
|
label: o?.zoomOut ?? l.map.controls.zoomOut,
|
|
432
|
-
icon:
|
|
432
|
+
icon: S,
|
|
433
433
|
hideLabel: !0,
|
|
434
434
|
onClick: t
|
|
435
435
|
}) : null] })) : null]
|
|
@@ -1062,7 +1062,7 @@ var it = Z, Q = 16, at = (e, t, n, r) => {
|
|
|
1062
1062
|
transitionDuration: g.duration,
|
|
1063
1063
|
transitionTimingFunction: g.easing
|
|
1064
1064
|
},
|
|
1065
|
-
children: /* @__PURE__ */ L(
|
|
1065
|
+
children: /* @__PURE__ */ L(w, {
|
|
1066
1066
|
...De,
|
|
1067
1067
|
borderRadius: Oe.panel,
|
|
1068
1068
|
padding: "none",
|
|
@@ -1614,7 +1614,7 @@ var Yt = {
|
|
|
1614
1614
|
isDark: e
|
|
1615
1615
|
};
|
|
1616
1616
|
}, en = {
|
|
1617
|
-
maplibre: async () => (await import("./maplibre-
|
|
1617
|
+
maplibre: async () => (await import("./maplibre-Vwv9Nk1T.js")).createMaplibreAdapter,
|
|
1618
1618
|
google: async (e) => (await import("./google-DDQ7XfPD.js")).loadGoogleAdapter(e)
|
|
1619
1619
|
}, tn = /* @__PURE__ */ new Map(), nn = (e, t) => {
|
|
1620
1620
|
let n = tn.get(e);
|