@factorialco/f0-react 12.13.0 → 12.15.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-BxhEauws.js} +4 -4
- package/dist/{ArchiveViewer-BHu224N3.js → ArchiveViewer-Cl_-VWzT.js} +2 -2
- package/dist/{ChatPostComposerDialog-CsxxDqxh.js → ChatPostComposerDialog-CZlNr9ba.js} +2 -2
- package/dist/{CoachmarkProvider-9PVhiN-N.js → CoachmarkProvider-CEw78dgS.js} +18826 -18825
- package/dist/{CodeThumbnail-ChpXV1S-.js → CodeThumbnail-DDo9lfco.js} +1 -1
- package/dist/{CodeViewer-BKw04W0G.js → CodeViewer-BrTpF20r.js} +6 -6
- package/dist/{DocumentToolbar-mB3bK8uS.js → DocumentToolbar-C9ddjrjJ.js} +2 -2
- package/dist/{DocxViewer-Dr8WXU1s.js → DocxViewer-A6yOGoqC.js} +1 -1
- package/dist/Ellipsis-CBouJQYY.js +34 -0
- package/dist/{F0AiProcessingOverlay-BUynKfyI.js → F0AiProcessingOverlay-BMFIt7Ru.js} +1396 -1342
- package/dist/{F0Alert-ALRcL0Af.js → F0Alert-D5hs2XZm.js} +1 -1
- package/dist/F0AudioPlayer-BAEmgv7O.js +2 -0
- package/dist/{F0CanvasPanel-D1QmpvzX.js → F0CanvasPanel-BDuYWQcq.js} +8757 -7589
- package/dist/{F0DocumentViewer-ChCqzIK3.js → F0DocumentViewer-C6o-c1aq.js} +2 -2
- package/dist/{F0DocumentViewer-CEuF9b_u.js → F0DocumentViewer-D8Ylnw3M.js} +1 -1
- package/dist/{F0Map-CWhV5A03.js → F0Map-BHihj_0n.js} +16 -16
- package/dist/{F0Select-BZ20yXKy.js → F0Select-DmSUsNZ8.js} +1 -1
- package/dist/F0Text-CXHuzMbj.js +14 -0
- package/dist/{F0VideoPlayer-wTc25_qN.js → F0VideoPlayer-Dz9QSCFp.js} +303 -303
- package/dist/F0VideoPlayer-Ik-2vnL4.js +1 -0
- package/dist/{HtmlViewer-Uxb8n2vn.js → HtmlViewer-Cf5lw2RH.js} +4 -4
- package/dist/{Map-95w5slTZ.js → Map-B8_F4AIJ.js} +29 -28
- package/dist/{PdfThumbnail-BYrhsyMw.js → PdfThumbnail-CpLZEOJu.js} +1 -1
- package/dist/{PdfViewer-DUxhQr-O.js → PdfViewer-CMsX7rCn.js} +6 -6
- package/dist/{SheetViewer-C9Rbh_xJ.js → SheetViewer-CQpNmizK.js} +2 -2
- package/dist/{TextViewer-DP9lYxAB.js → TextViewer-w65gdt5z.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-D-PODccV.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-B7vlGgUT.js} +1 -1
- package/dist/{pdfWorker-BBnYtb1A.js → pdfWorker-C-Auu3EX.js} +1 -1
- package/dist/styles.css +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 +0,0 @@
|
|
|
1
|
-
export { t as F0VideoPlayer } from "./F0VideoPlayer-wTc25_qN.js";
|
|
@@ -1,46 +0,0 @@
|
|
|
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 };
|