@factorialco/f0-react 12.11.0 → 12.13.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-cs8kx5Zf.js → ArchiveThumbnail-BZgITTo2.js} +5 -5
- package/dist/{ArchiveViewer-BXUH8Lm5.js → ArchiveViewer-BHu224N3.js} +15 -15
- package/dist/{ChatPostComposerDialog-CGil1xkf.js → ChatPostComposerDialog-CsxxDqxh.js} +3 -3
- package/dist/{CoachmarkProvider-cZnuTk79.js → CoachmarkProvider-9PVhiN-N.js} +22476 -22653
- package/dist/{CodeThumbnail-Dcer4AyK.js → CodeThumbnail-ChpXV1S-.js} +1 -1
- package/dist/{CodeViewer-DFBwdIFm.js → CodeViewer-BKw04W0G.js} +8 -8
- package/dist/{DocumentToolbar-vZEyzJ89.js → DocumentToolbar-mB3bK8uS.js} +5 -5
- package/dist/{DocxViewer-DQV5Kv1n.js → DocxViewer-Dr8WXU1s.js} +3 -3
- package/dist/{F0AiProcessingOverlay-DjGkQ2Nc.js → F0AiProcessingOverlay-BUynKfyI.js} +503 -503
- package/dist/F0Alert-ALRcL0Af.js +102 -0
- package/dist/F0AudioPlayer-Cd9nIQX5.js +2 -0
- package/dist/F0AudioPlayer-vRJmmSpp.js +1175 -0
- package/dist/{F0Button-FXkThQ9H.js → F0Button-d91IgOnc.js} +3 -3
- package/dist/{F0CanvasPanel-BgDo2LWP.js → F0CanvasPanel-D1QmpvzX.js} +8551 -8267
- package/dist/F0DocumentViewer-CEuF9b_u.js +3 -0
- package/dist/{F0DocumentViewer-BXifXzUW.js → F0DocumentViewer-ChCqzIK3.js} +30 -19
- package/dist/{F0Icon-Cj0USbCF.js → F0Icon-DmCBV0gK.js} +1 -1
- package/dist/{F0Map-Dwev4u-_.js → F0Map-CWhV5A03.js} +505 -505
- package/dist/{F0Select-BWWdEd7l.js → F0Select-BZ20yXKy.js} +8284 -8333
- package/dist/F0VideoPlayer-DUw-DouS.js +1 -0
- package/dist/{F0VideoPlayer-BmCmHG87.js → F0VideoPlayer-wTc25_qN.js} +323 -367
- package/dist/{HtmlThumbnail-BAgkBH2r.js → HtmlThumbnail-BJuJkuvu.js} +1 -1
- package/dist/{HtmlViewer-FRfNoxhP.js → HtmlViewer-Uxb8n2vn.js} +27 -27
- package/dist/{F0Text-DMZW7dhN.js → LayoutGroup-BGb5jMxE.js} +29 -37
- package/dist/{Map-BxGPElF2.js → Map-95w5slTZ.js} +14 -14
- package/dist/{PdfThumbnail-CpGZz5Kq.js → PdfThumbnail-BYrhsyMw.js} +1 -1
- package/dist/{PdfViewer-C81MK43i.js → PdfViewer-DUxhQr-O.js} +13 -13
- package/dist/{SandboxedHtmlFrame-B6YWhgyg.js → SandboxedHtmlFrame-B95lWsIP.js} +2 -2
- package/dist/{SheetViewer-DPGpMNqq.js → SheetViewer-C9Rbh_xJ.js} +15 -15
- package/dist/{TextViewer-BH42AeG8.js → TextViewer-DP9lYxAB.js} +4 -4
- package/dist/ai.d.ts +3 -3
- package/dist/ai.js +5 -5
- package/dist/component-status.js +1 -1
- package/dist/dist-CFY0KELA.js +55 -0
- package/dist/dist-DtILhk4w.js +253 -0
- package/dist/{dist-D-MJbPvE.js → dist-zvwuNflP.js} +1 -1
- package/dist/experimental.d.ts +15 -3
- package/dist/experimental.js +6527 -6244
- package/dist/{exports-C0yM5usu.d.ts → exports-cxvNeHfV.d.ts} +1 -1
- package/dist/f0.d.ts +9 -130
- package/dist/f0.js +1834 -2906
- package/dist/{highlight-CyebkDAD.js → highlight-Bjt-wXg6.js} +7 -7
- package/dist/{i18n-provider-BBhzYHef.js → i18n-provider-Bdgo-LeP.js} +1 -1
- package/dist/{i18n-provider-defaults-BUagKwGN.js → i18n-provider-defaults-B9vdZZeS.js} +3 -0
- package/dist/{i18n-provider-defaults-CTDMMs-y.d.ts → i18n-provider-defaults-DyPn8R7T.d.ts} +3 -0
- package/dist/i18n-provider-defaults.d.ts +1 -1
- package/dist/i18n-provider-defaults.js +1 -1
- package/dist/{index-CduxMW5L.d.ts → index-DF8ubeg6.d.ts} +1 -1
- package/dist/localized-BrUgGMzm.js +46 -0
- package/dist/{maplibre-g-8NG-3q.js → maplibre-tJ3UolSF.js} +1 -1
- package/dist/{pdfWorker-D5NB2V5s.js → pdfWorker-BBnYtb1A.js} +1 -1
- package/dist/{popover-CQztsDta.js → popover-ics24JxK.js} +1 -1
- package/dist/scrollarea-cxaFAWG5.js +691 -0
- package/dist/{skeleton-DqejhQgn.js → skeleton-AC0Fb8zj.js} +1 -1
- package/dist/styles.css +1 -1
- package/dist/{toolbarStyles-0IygMI4H.js → toolbarStyles-lTj_42zD.js} +1 -1
- package/dist/{types-DlwD3i9z.d.ts → types-oJKIDe-E.d.ts} +124 -3
- package/dist/{useData-Dkq5W4r6.js → useData-BYkiGUHX.js} +4606 -5288
- package/package.json +1 -1
- package/dist/F0DocumentViewer-DWuIFBHu.js +0 -3
- package/dist/F0VideoPlayer-C8oYUUZM.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Ct as e, mt as t, wt as n } from "./F0CanvasPanel-D1QmpvzX.js";
|
|
2
2
|
import { t as r } from "./purify.es-ZpfdAuNV.js";
|
|
3
3
|
import { t as i } from "./ownValue-D4uSXt0d.js";
|
|
4
4
|
//#region src/addons/documents/lib/codeLanguages.ts
|
|
@@ -14,12 +14,12 @@ var a = {
|
|
|
14
14
|
xhtml: "xml",
|
|
15
15
|
svg: "xml",
|
|
16
16
|
env: "bash"
|
|
17
|
-
}, o = (e) =>
|
|
18
|
-
let
|
|
19
|
-
return
|
|
20
|
-
}, c = (
|
|
21
|
-
let n =
|
|
22
|
-
return n ?
|
|
17
|
+
}, o = (e) => n.includes(e), s = (t) => {
|
|
18
|
+
let n = t?.trim().toLowerCase();
|
|
19
|
+
return n ? o(n) ? n : i(e, n) ?? i(a, n) ?? null : null;
|
|
20
|
+
}, c = (e) => {
|
|
21
|
+
let n = e?.split(/[\\/]/).pop()?.trim();
|
|
22
|
+
return n ? t({ name: n }) : null;
|
|
23
23
|
}, l = {
|
|
24
24
|
bash: () => import("./bash-BcZBmoDA.js"),
|
|
25
25
|
c: () => import("./c-Dv-5_kUQ.js"),
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as e } from "./i18n-provider-defaults-
|
|
1
|
+
import { t as e } from "./i18n-provider-defaults-B9vdZZeS.js";
|
|
2
2
|
import { createContext as t, forwardRef as n, memo as r, useContext as i, useEffect as a, useMemo as o, useState as s } from "react";
|
|
3
3
|
import { jsx as c } from "react/jsx-runtime";
|
|
4
4
|
//#region src/elements/providers/user-platafform/user-platform.ts
|
|
@@ -941,6 +941,9 @@ var e = {
|
|
|
941
941
|
closePreview: "Close",
|
|
942
942
|
previousImage: "Previous image",
|
|
943
943
|
nextImage: "Next image",
|
|
944
|
+
previousAttachment: "Previous attachment",
|
|
945
|
+
nextAttachment: "Next attachment",
|
|
946
|
+
attachmentCounter: "{{current}} of {{total}}",
|
|
944
947
|
openDocument: "Open document",
|
|
945
948
|
openNamedDocument: "Open {{name}}",
|
|
946
949
|
documentPreview: "Document preview",
|
|
@@ -972,6 +972,9 @@ declare const defaultTranslations: {
|
|
|
972
972
|
readonly closePreview: "Close";
|
|
973
973
|
readonly previousImage: "Previous image";
|
|
974
974
|
readonly nextImage: "Next image";
|
|
975
|
+
readonly previousAttachment: "Previous attachment";
|
|
976
|
+
readonly nextAttachment: "Next attachment";
|
|
977
|
+
readonly attachmentCounter: "{{current}} of {{total}}";
|
|
975
978
|
readonly openDocument: "Open document";
|
|
976
979
|
readonly openNamedDocument: "Open {{name}}";
|
|
977
980
|
readonly documentPreview: "Document preview";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as TranslationsType, r as defaultTranslations, t as TranslationKey } from "./i18n-provider-defaults-
|
|
1
|
+
import { n as TranslationsType, r as defaultTranslations, t as TranslationKey } from "./i18n-provider-defaults-DyPn8R7T.js";
|
|
2
2
|
export { TranslationKey, TranslationsType, defaultTranslations };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as defaultTranslations } from "./i18n-provider-defaults-
|
|
1
|
+
export { t as defaultTranslations } from "./i18n-provider-defaults-B9vdZZeS.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as TranslationsType, t as TranslationKey } from "./i18n-provider-defaults-
|
|
1
|
+
import { n as TranslationsType, t as TranslationKey } from "./i18n-provider-defaults-DyPn8R7T.js";
|
|
2
2
|
import * as React$2 from "react";
|
|
3
3
|
import React$1, { AnchorHTMLAttributes, ComponentProps, ComponentType, FC, ForwardRefExoticComponent, ForwardedRef, HTMLAttributeAnchorTarget, HTMLAttributes, PropsWithChildren, ReactElement, ReactNode, RefAttributes, RefObject, SVGProps } from "react";
|
|
4
4
|
import { VariantProps } from "cva";
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
//#region src/elements/lib/localized.ts
|
|
2
|
+
function e(e) {
|
|
3
|
+
return Array.isArray(e) && e.every((e) => typeof e == "object" && !!e && "locale" in e && "value" in e);
|
|
4
|
+
}
|
|
5
|
+
function t(t, n) {
|
|
6
|
+
if (t !== void 0) {
|
|
7
|
+
if (!e(t)) return t;
|
|
8
|
+
if (t.length !== 0) return ((n ? t.find((e) => e.locale === n) : void 0) ?? t[0]).value;
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
function n(...t) {
|
|
12
|
+
let n = /* @__PURE__ */ new Map();
|
|
13
|
+
for (let r of t) if (e(r)) for (let e of r) {
|
|
14
|
+
let t = n.get(e.locale);
|
|
15
|
+
t ? !t.label && e.label && (t.label = e.label) : n.set(e.locale, {
|
|
16
|
+
locale: e.locale,
|
|
17
|
+
label: e.label
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
return Array.from(n.values());
|
|
21
|
+
}
|
|
22
|
+
function r(e, t) {
|
|
23
|
+
if (e.label) return e.label;
|
|
24
|
+
try {
|
|
25
|
+
let n = t ?? e.locale, r = new Intl.DisplayNames([n], { type: "language" }).of(e.locale) ?? e.locale;
|
|
26
|
+
return r.charAt(0).toLocaleUpperCase(n) + r.slice(1);
|
|
27
|
+
} catch {
|
|
28
|
+
return e.locale;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
function i(e, t) {
|
|
32
|
+
if (e.length === 0) return;
|
|
33
|
+
let n = e.map((e) => e.locale), r = (e) => e.split("-")[0], i = (e) => n.find((t) => t === e) ?? n.find((t) => r(t) === r(e));
|
|
34
|
+
if (t) {
|
|
35
|
+
let e = i(t);
|
|
36
|
+
if (e) return e;
|
|
37
|
+
}
|
|
38
|
+
let a = typeof navigator < "u" ? navigator.language : void 0;
|
|
39
|
+
if (a) {
|
|
40
|
+
let e = i(a);
|
|
41
|
+
if (e) return e;
|
|
42
|
+
}
|
|
43
|
+
return n[0];
|
|
44
|
+
}
|
|
45
|
+
//#endregion
|
|
46
|
+
export { t as i, i as n, r, n as t };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { o as e } from "./rolldown-runtime-BItFwnF5.js";
|
|
2
2
|
import { t } from "./dist-Cuwaibqg.js";
|
|
3
|
-
import { s as n } from "./F0Map-
|
|
3
|
+
import { s as n } from "./F0Map-CWhV5A03.js";
|
|
4
4
|
import './maplibre-gl.css';import './maplibre.css';/* empty css */
|
|
5
5
|
import { t as r } from "./maplibre-gl-DVldSYfz.js";
|
|
6
6
|
//#region ../../node_modules/.pnpm/@mapbox+mapbox-gl-rtl-text@0.2.3_mapbox-gl@1.13.3/node_modules/@mapbox/mapbox-gl-rtl-text/mapbox-gl-rtl-text.js?url
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { i as __require, o as __toESM, t as __commonJSMin } from "./rolldown-runtime-BItFwnF5.js";
|
|
2
2
|
import { z as clsx } from "./tooltip-BX4dSfeL.js";
|
|
3
|
-
import {
|
|
3
|
+
import { Li as invariant } from "./F0CanvasPanel-D1QmpvzX.js";
|
|
4
4
|
import { t as dequal } from "./dist-Dt-cTb6D.js";
|
|
5
5
|
import { n as pdfWorkerOverride, r as registerPdfWorkerApplier } from "./pdfWorkerConfig-BwllKt1K.js";
|
|
6
6
|
import { createContext, forwardRef, useCallback, useContext, useEffect, useImperativeHandle, useLayoutEffect, useMemo, useReducer, useRef } from "react";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { L as e, s as t } from "./tooltip-BX4dSfeL.js";
|
|
2
|
-
import { n } from "./F0Icon-
|
|
2
|
+
import { n } from "./F0Icon-DmCBV0gK.js";
|
|
3
3
|
import * as r from "react";
|
|
4
4
|
import i, { createElement as a, forwardRef as o, useEffect as s, useLayoutEffect as c, useState as l } from "react";
|
|
5
5
|
import { Fragment as u, jsx as d, jsxs as f } from "react/jsx-runtime";
|