@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.
Files changed (61) hide show
  1. package/dist/{ArchiveThumbnail-cs8kx5Zf.js → ArchiveThumbnail-BZgITTo2.js} +5 -5
  2. package/dist/{ArchiveViewer-BXUH8Lm5.js → ArchiveViewer-BHu224N3.js} +15 -15
  3. package/dist/{ChatPostComposerDialog-CGil1xkf.js → ChatPostComposerDialog-CsxxDqxh.js} +3 -3
  4. package/dist/{CoachmarkProvider-cZnuTk79.js → CoachmarkProvider-9PVhiN-N.js} +22476 -22653
  5. package/dist/{CodeThumbnail-Dcer4AyK.js → CodeThumbnail-ChpXV1S-.js} +1 -1
  6. package/dist/{CodeViewer-DFBwdIFm.js → CodeViewer-BKw04W0G.js} +8 -8
  7. package/dist/{DocumentToolbar-vZEyzJ89.js → DocumentToolbar-mB3bK8uS.js} +5 -5
  8. package/dist/{DocxViewer-DQV5Kv1n.js → DocxViewer-Dr8WXU1s.js} +3 -3
  9. package/dist/{F0AiProcessingOverlay-DjGkQ2Nc.js → F0AiProcessingOverlay-BUynKfyI.js} +503 -503
  10. package/dist/F0Alert-ALRcL0Af.js +102 -0
  11. package/dist/F0AudioPlayer-Cd9nIQX5.js +2 -0
  12. package/dist/F0AudioPlayer-vRJmmSpp.js +1175 -0
  13. package/dist/{F0Button-FXkThQ9H.js → F0Button-d91IgOnc.js} +3 -3
  14. package/dist/{F0CanvasPanel-BgDo2LWP.js → F0CanvasPanel-D1QmpvzX.js} +8551 -8267
  15. package/dist/F0DocumentViewer-CEuF9b_u.js +3 -0
  16. package/dist/{F0DocumentViewer-BXifXzUW.js → F0DocumentViewer-ChCqzIK3.js} +30 -19
  17. package/dist/{F0Icon-Cj0USbCF.js → F0Icon-DmCBV0gK.js} +1 -1
  18. package/dist/{F0Map-Dwev4u-_.js → F0Map-CWhV5A03.js} +505 -505
  19. package/dist/{F0Select-BWWdEd7l.js → F0Select-BZ20yXKy.js} +8284 -8333
  20. package/dist/F0VideoPlayer-DUw-DouS.js +1 -0
  21. package/dist/{F0VideoPlayer-BmCmHG87.js → F0VideoPlayer-wTc25_qN.js} +323 -367
  22. package/dist/{HtmlThumbnail-BAgkBH2r.js → HtmlThumbnail-BJuJkuvu.js} +1 -1
  23. package/dist/{HtmlViewer-FRfNoxhP.js → HtmlViewer-Uxb8n2vn.js} +27 -27
  24. package/dist/{F0Text-DMZW7dhN.js → LayoutGroup-BGb5jMxE.js} +29 -37
  25. package/dist/{Map-BxGPElF2.js → Map-95w5slTZ.js} +14 -14
  26. package/dist/{PdfThumbnail-CpGZz5Kq.js → PdfThumbnail-BYrhsyMw.js} +1 -1
  27. package/dist/{PdfViewer-C81MK43i.js → PdfViewer-DUxhQr-O.js} +13 -13
  28. package/dist/{SandboxedHtmlFrame-B6YWhgyg.js → SandboxedHtmlFrame-B95lWsIP.js} +2 -2
  29. package/dist/{SheetViewer-DPGpMNqq.js → SheetViewer-C9Rbh_xJ.js} +15 -15
  30. package/dist/{TextViewer-BH42AeG8.js → TextViewer-DP9lYxAB.js} +4 -4
  31. package/dist/ai.d.ts +3 -3
  32. package/dist/ai.js +5 -5
  33. package/dist/component-status.js +1 -1
  34. package/dist/dist-CFY0KELA.js +55 -0
  35. package/dist/dist-DtILhk4w.js +253 -0
  36. package/dist/{dist-D-MJbPvE.js → dist-zvwuNflP.js} +1 -1
  37. package/dist/experimental.d.ts +15 -3
  38. package/dist/experimental.js +6527 -6244
  39. package/dist/{exports-C0yM5usu.d.ts → exports-cxvNeHfV.d.ts} +1 -1
  40. package/dist/f0.d.ts +9 -130
  41. package/dist/f0.js +1834 -2906
  42. package/dist/{highlight-CyebkDAD.js → highlight-Bjt-wXg6.js} +7 -7
  43. package/dist/{i18n-provider-BBhzYHef.js → i18n-provider-Bdgo-LeP.js} +1 -1
  44. package/dist/{i18n-provider-defaults-BUagKwGN.js → i18n-provider-defaults-B9vdZZeS.js} +3 -0
  45. package/dist/{i18n-provider-defaults-CTDMMs-y.d.ts → i18n-provider-defaults-DyPn8R7T.d.ts} +3 -0
  46. package/dist/i18n-provider-defaults.d.ts +1 -1
  47. package/dist/i18n-provider-defaults.js +1 -1
  48. package/dist/{index-CduxMW5L.d.ts → index-DF8ubeg6.d.ts} +1 -1
  49. package/dist/localized-BrUgGMzm.js +46 -0
  50. package/dist/{maplibre-g-8NG-3q.js → maplibre-tJ3UolSF.js} +1 -1
  51. package/dist/{pdfWorker-D5NB2V5s.js → pdfWorker-BBnYtb1A.js} +1 -1
  52. package/dist/{popover-CQztsDta.js → popover-ics24JxK.js} +1 -1
  53. package/dist/scrollarea-cxaFAWG5.js +691 -0
  54. package/dist/{skeleton-DqejhQgn.js → skeleton-AC0Fb8zj.js} +1 -1
  55. package/dist/styles.css +1 -1
  56. package/dist/{toolbarStyles-0IygMI4H.js → toolbarStyles-lTj_42zD.js} +1 -1
  57. package/dist/{types-DlwD3i9z.d.ts → types-oJKIDe-E.d.ts} +124 -3
  58. package/dist/{useData-Dkq5W4r6.js → useData-BYkiGUHX.js} +4606 -5288
  59. package/package.json +1 -1
  60. package/dist/F0DocumentViewer-DWuIFBHu.js +0 -3
  61. package/dist/F0VideoPlayer-C8oYUUZM.js +0 -1
@@ -1,4 +1,4 @@
1
- import { at as e, gt as t, ht as n } from "./F0CanvasPanel-BgDo2LWP.js";
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) => t.includes(e), s = (e) => {
18
- let t = e?.trim().toLowerCase();
19
- return t ? o(t) ? t : i(n, t) ?? i(a, t) ?? null : null;
20
- }, c = (t) => {
21
- let n = t?.split(/[\\/]/).pop()?.trim();
22
- return n ? e({ name: n }) : null;
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-BUagKwGN.js";
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-CTDMMs-y.js";
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-BUagKwGN.js";
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-CTDMMs-y.js";
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-Dwev4u-_.js";
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 { Mi as invariant } from "./F0CanvasPanel-BgDo2LWP.js";
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-Cj0USbCF.js";
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";