@factorialco/f0-react 12.13.0 → 12.14.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-BZgITTo2.js → ArchiveThumbnail-CgaNJ6v9.js} +4 -4
- package/dist/{ArchiveViewer-BHu224N3.js → ArchiveViewer-Uohl6wf1.js} +2 -2
- package/dist/{ChatPostComposerDialog-CsxxDqxh.js → ChatPostComposerDialog-Cr6Ci2dz.js} +2 -2
- package/dist/{CoachmarkProvider-9PVhiN-N.js → CoachmarkProvider-Cfb6WvLp.js} +22331 -22330
- package/dist/{CodeThumbnail-ChpXV1S-.js → CodeThumbnail-CFNKh12S.js} +1 -1
- package/dist/{CodeViewer-BKw04W0G.js → CodeViewer-C4XxNdq4.js} +5 -5
- package/dist/{DocumentToolbar-mB3bK8uS.js → DocumentToolbar-CcEggNyX.js} +1 -1
- package/dist/{DocxViewer-Dr8WXU1s.js → DocxViewer-DIiFGMl7.js} +1 -1
- package/dist/Ellipsis-CBouJQYY.js +34 -0
- package/dist/{F0AiProcessingOverlay-BUynKfyI.js → F0AiProcessingOverlay-wFS85Arm.js} +1396 -1342
- package/dist/{F0Alert-ALRcL0Af.js → F0Alert-DRK5Na7T.js} +1 -1
- package/dist/F0AudioPlayer-Ds4txTh4.js +2 -0
- package/dist/{F0CanvasPanel-D1QmpvzX.js → F0CanvasPanel-CbJxX6Qv.js} +8632 -7464
- package/dist/{F0DocumentViewer-CEuF9b_u.js → F0DocumentViewer-B2_6INMo.js} +1 -1
- package/dist/{F0DocumentViewer-ChCqzIK3.js → F0DocumentViewer-B6ccmcTZ.js} +2 -2
- package/dist/{F0Map-CWhV5A03.js → F0Map-BkrkSniz.js} +16 -16
- package/dist/F0Text-CXHuzMbj.js +14 -0
- package/dist/F0VideoPlayer-5bnm6ryg.js +1 -0
- package/dist/{F0VideoPlayer-wTc25_qN.js → F0VideoPlayer-BkRdc58E.js} +303 -303
- package/dist/{HtmlViewer-Uxb8n2vn.js → HtmlViewer-qkAWMkJy.js} +3 -3
- package/dist/{Map-95w5slTZ.js → Map-CZcZoNEa.js} +29 -28
- package/dist/{PdfThumbnail-BYrhsyMw.js → PdfThumbnail-RTw1aKm_.js} +1 -1
- package/dist/{PdfViewer-DUxhQr-O.js → PdfViewer-m56GqoJt.js} +2 -2
- package/dist/{SheetViewer-C9Rbh_xJ.js → SheetViewer-C80n4nta.js} +2 -2
- package/dist/{TextViewer-DP9lYxAB.js → TextViewer-BINEouL8.js} +1 -1
- package/dist/ai.d.ts +2 -2
- package/dist/ai.js +3 -3
- package/dist/component-status.js +1 -1
- package/dist/experimental.d.ts +2 -2
- package/dist/experimental.js +5072 -5152
- package/dist/{exports-cxvNeHfV.d.ts → exports-BGemf1WM.d.ts} +13 -11
- package/dist/f0.d.ts +6 -6
- package/dist/f0.js +382 -381
- package/dist/{highlight-Bjt-wXg6.js → highlight-BNASV9vz.js} +6 -6
- package/dist/{index-DF8ubeg6.d.ts → index-BkCnaiJG.d.ts} +326 -10
- package/dist/localized-CnKvEJya.js +73 -0
- package/dist/{maplibre-tJ3UolSF.js → maplibre-DTAAiC-N.js} +1 -1
- package/dist/{pdfWorker-BBnYtb1A.js → pdfWorker-D16_euGm.js} +1 -1
- package/dist/{types-oJKIDe-E.d.ts → types-C2gKTwyT.d.ts} +2 -300
- package/package.json +1 -1
- package/dist/F0AudioPlayer-Cd9nIQX5.js +0 -2
- package/dist/F0AudioPlayer-vRJmmSpp.js +0 -1175
- package/dist/F0VideoPlayer-DUw-DouS.js +0 -1
- package/dist/localized-BrUgGMzm.js +0 -46
|
@@ -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-B6ccmcTZ.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
1
|
import { a as e, r as t } from "./i18n-provider-Bdgo-LeP.js";
|
|
2
2
|
import { n, t as r } from "./skeleton-AC0Fb8zj.js";
|
|
3
3
|
import { L as i } from "./tooltip-BX4dSfeL.js";
|
|
4
|
-
import {
|
|
4
|
+
import { Ya as a } from "./F0CanvasPanel-CbJxX6Qv.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-m56GqoJt.js")), m = c(() => import("./SheetViewer-C80n4nta.js")), h = c(() => import("./DocxViewer-DIiFGMl7.js")), g = c(() => import("./TextViewer-BINEouL8.js")), _ = c(() => import("./CodeViewer-C4XxNdq4.js")), v = c(() => import("./HtmlViewer-qkAWMkJy.js")), y = c(() => import("./ArchiveViewer-Uohl6wf1.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,8 +1,8 @@
|
|
|
1
|
-
import { a as e, o as t, ui as n } from "./CoachmarkProvider-
|
|
1
|
+
import { a as e, o as t, ui as n } from "./CoachmarkProvider-Cfb6WvLp.js";
|
|
2
2
|
import { i as r, r as i } from "./i18n-provider-Bdgo-LeP.js";
|
|
3
3
|
import { L as a, R as o } from "./tooltip-BX4dSfeL.js";
|
|
4
4
|
import { H as s, T as c, U as l, b as u, h as d, t as f, wt as p } from "./F0Button-d91IgOnc.js";
|
|
5
|
-
import {
|
|
5
|
+
import { Fs as m, To as h, Zs as g, es as _, rt as v } from "./F0CanvasPanel-CbJxX6Qv.js";
|
|
6
6
|
import { t as y } from "./F0Icon-DmCBV0gK.js";
|
|
7
7
|
import { N as b, T as x, U as S, f as C, z as w } from "./useData-BYkiGUHX.js";
|
|
8
8
|
import { a as T, n as E, o as ee, s as te, t as D } from "./dist-Cuwaibqg.js";
|
|
@@ -408,14 +408,14 @@ var Te = V, H = (e, t) => `hsl(${be(e, t).replace(/ /g, ", ")})`, Ee = (e, t) =>
|
|
|
408
408
|
variant: "ghost",
|
|
409
409
|
size: "md",
|
|
410
410
|
label: o?.fit ?? l.map.controls.fit,
|
|
411
|
-
icon:
|
|
411
|
+
icon: m,
|
|
412
412
|
hideLabel: !0,
|
|
413
413
|
onClick: n
|
|
414
414
|
}) : null, a ? /* @__PURE__ */ I(f, {
|
|
415
415
|
variant: "ghost",
|
|
416
416
|
size: "md",
|
|
417
417
|
label: o?.locate ?? l.map.controls.locate,
|
|
418
|
-
icon:
|
|
418
|
+
icon: h,
|
|
419
419
|
hideLabel: !0,
|
|
420
420
|
onClick: a
|
|
421
421
|
}) : null] })) : null, d ? p(/* @__PURE__ */ L(ae, { children: [e ? /* @__PURE__ */ I(f, {
|
|
@@ -734,7 +734,7 @@ var Fe = ({ adapter: e, points: t, enabled: n, radius: r = 12, clusterRadius: i
|
|
|
734
734
|
case "workplace": return {
|
|
735
735
|
variant: {
|
|
736
736
|
variant: "icon",
|
|
737
|
-
icon:
|
|
737
|
+
icon: _
|
|
738
738
|
},
|
|
739
739
|
color: qe
|
|
740
740
|
};
|
|
@@ -1117,20 +1117,20 @@ function vt({ enabled: e, children: t, ...n }) {
|
|
|
1117
1117
|
});
|
|
1118
1118
|
}
|
|
1119
1119
|
function yt({ hasSecondarySidebar: e, topBarHeight: t, children: n }) {
|
|
1120
|
-
let { isInstant: r, landInstantly: i } = gt(), a = _t(), [o, s] = F(te.primary), [c, l] = F(te.panel), [d, f] =
|
|
1120
|
+
let { isInstant: r, landInstantly: i } = gt(), a = _t(), [o, s] = F(te.primary), [c, l] = F(te.panel), [d, f] = v({
|
|
1121
1121
|
key: ft,
|
|
1122
1122
|
fallback: null,
|
|
1123
1123
|
validate: pt,
|
|
1124
1124
|
debounceMs: 200
|
|
1125
|
-
}), p = lt(a, o, Math.max(320, c)),
|
|
1125
|
+
}), p = lt(a, o, Math.max(320, c)), m = Math.min(c, p), h = d === null ? m : ut(d, p), g = A(function(e) {
|
|
1126
1126
|
s(e);
|
|
1127
|
-
}, []),
|
|
1128
|
-
e !==
|
|
1127
|
+
}, []), _ = P(c), y = A(function(e) {
|
|
1128
|
+
e !== _.current && (_.current = e, i(), l(e));
|
|
1129
1129
|
}, [i]), b = A(function(e) {
|
|
1130
1130
|
i(), f(e);
|
|
1131
1131
|
}, [i, f]), x = A(function() {
|
|
1132
1132
|
i(), f(null);
|
|
1133
|
-
}, [i, f]), S = u(`(max-width: ${o + (e ?
|
|
1133
|
+
}, [i, f]), S = u(`(max-width: ${o + (e ? m : te.panel) + ee.mainMin - 1}px)`, { initializeWithValue: !0 }) ? "overlay" : "docked", [C, w] = F(!1), T = P(0), E = A(function() {
|
|
1134
1134
|
w(!1);
|
|
1135
1135
|
}, []);
|
|
1136
1136
|
ie(function() {
|
|
@@ -1177,9 +1177,9 @@ function yt({ hasSecondarySidebar: e, topBarHeight: t, children: n }) {
|
|
|
1177
1177
|
}, []), L = N(function() {
|
|
1178
1178
|
return {
|
|
1179
1179
|
primarySidebarWidth: o,
|
|
1180
|
-
reportPrimarySidebarWidth:
|
|
1180
|
+
reportPrimarySidebarWidth: g,
|
|
1181
1181
|
hasSecondarySidebar: e,
|
|
1182
|
-
secondarySidebarWidth:
|
|
1182
|
+
secondarySidebarWidth: h,
|
|
1183
1183
|
secondarySidebarMaxWidth: p,
|
|
1184
1184
|
declareSecondarySidebarWidth: y,
|
|
1185
1185
|
resizeSecondarySidebar: b,
|
|
@@ -1196,9 +1196,9 @@ function yt({ hasSecondarySidebar: e, topBarHeight: t, children: n }) {
|
|
|
1196
1196
|
};
|
|
1197
1197
|
}, [
|
|
1198
1198
|
o,
|
|
1199
|
-
_,
|
|
1200
|
-
e,
|
|
1201
1199
|
g,
|
|
1200
|
+
e,
|
|
1201
|
+
h,
|
|
1202
1202
|
p,
|
|
1203
1203
|
y,
|
|
1204
1204
|
b,
|
|
@@ -1450,7 +1450,7 @@ function Jt() {
|
|
|
1450
1450
|
}), /* @__PURE__ */ I("div", {
|
|
1451
1451
|
className: a("hidden", { flex: r }),
|
|
1452
1452
|
children: /* @__PURE__ */ I(y, {
|
|
1453
|
-
icon:
|
|
1453
|
+
icon: g,
|
|
1454
1454
|
size: "md"
|
|
1455
1455
|
})
|
|
1456
1456
|
})]
|
|
@@ -1601,7 +1601,7 @@ var rn = {
|
|
|
1601
1601
|
isDark: e
|
|
1602
1602
|
};
|
|
1603
1603
|
}, ln = {
|
|
1604
|
-
maplibre: async () => (await import("./maplibre-
|
|
1604
|
+
maplibre: async () => (await import("./maplibre-DTAAiC-N.js")).createMaplibreAdapter,
|
|
1605
1605
|
google: async (e) => (await import("./google-D1V0swd7.js")).loadGoogleAdapter(e)
|
|
1606
1606
|
}, un = /* @__PURE__ */ new Map(), dn = (e, t) => {
|
|
1607
1607
|
let n = un.get(e);
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { a as e } from "./i18n-provider-Bdgo-LeP.js";
|
|
2
|
+
import { c as t } from "./scrollarea-cxaFAWG5.js";
|
|
3
|
+
import { forwardRef as n } from "react";
|
|
4
|
+
import { jsx as r } from "react/jsx-runtime";
|
|
5
|
+
//#region src/elements/F0Text/F0Text.tsx
|
|
6
|
+
var i = n((e, n) => /* @__PURE__ */ r(t, {
|
|
7
|
+
ref: n,
|
|
8
|
+
markdown: e.markdown ?? !0,
|
|
9
|
+
...e
|
|
10
|
+
}));
|
|
11
|
+
i.displayName = "F0Text";
|
|
12
|
+
var a = e(i);
|
|
13
|
+
//#endregion
|
|
14
|
+
export { a as t };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { t as F0VideoPlayer } from "./F0VideoPlayer-BkRdc58E.js";
|