@factorialco/f0-react 6.88.2 → 6.88.4

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.
@@ -1,5 +1,5 @@
1
1
  import { jsx as p } from "react/jsx-runtime";
2
- import { m } from "./experimental-B-SPgEj_.js";
2
+ import { m } from "./experimental-DTSd_ojK.js";
3
3
  import { useRef as l, useEffect as i, useState as b } from "react";
4
4
  const k = "https://tiles.openfreemap.org/styles/positron", y = "https://tiles.openfreemap.org/styles/dark", R = 15, d = (n) => {
5
5
  const [c, s] = b(!1);
@@ -1,25 +1,25 @@
1
1
  import { jsxs as a, jsx as r, Fragment as N } from "react/jsx-runtime";
2
2
  import { useState as i, useEffect as k } from "react";
3
- import { u as v, T as S, h as V, S as R } from "./F0CanvasPanel-CpgOQnbI.js";
3
+ import { u as v, T as S, h as V, S as R } from "./F0CanvasPanel-CHIKqAx1.js";
4
4
  import { f as z, c as E } from "./sheetPreview-Djc-YyVs.js";
5
- import { u as _, D as j } from "./DocumentToolbar-CbvxX6_A.js";
5
+ import { u as _, D as j } from "./DocumentToolbar-yRNLFw0I.js";
6
6
  const g = 1e3, F = 100, G = ({
7
7
  url: n,
8
8
  filename: y,
9
9
  withCredentials: d = !0,
10
10
  actions: x
11
11
  }) => {
12
- const c = v(), f = _(), [t, m] = i(null), [w, l] = i(!1), [u, b] = i(0);
12
+ const l = v(), f = _(), [t, m] = i(null), [w, c] = i(!1), [u, b] = i(0);
13
13
  k(() => {
14
14
  let e = !1;
15
- return m(null), l(!1), b(0), z(n, {
15
+ return m(null), c(!1), b(0), z(n, {
16
16
  maxRows: g,
17
17
  maxCols: F,
18
18
  withCredentials: d
19
19
  }).then((o) => {
20
- e || (o.length === 0 ? l(!0) : m(o));
20
+ e || (o.length === 0 ? c(!0) : m(o));
21
21
  }).catch(() => {
22
- e || l(!0);
22
+ e || c(!0);
23
23
  }), () => {
24
24
  e = !0;
25
25
  };
@@ -34,7 +34,7 @@ const g = 1e3, F = 100, G = ({
34
34
  withCredentials: d,
35
35
  actions: x,
36
36
  zoom: f,
37
- children: t && t.length > 1 && /* @__PURE__ */ r(
37
+ children: t && t.length > 1 ? /* @__PURE__ */ r(
38
38
  S,
39
39
  {
40
40
  type: "single",
@@ -54,10 +54,10 @@ const g = 1e3, F = 100, G = ({
54
54
  `${e.name}-${o}`
55
55
  ))
56
56
  }
57
- )
57
+ ) : null
58
58
  }
59
59
  ),
60
- w ? /* @__PURE__ */ r("div", { className: "flex min-h-0 grow items-center justify-center text-f1-foreground-secondary", children: c.pdfViewer.previewFailed }) : s ? /* @__PURE__ */ a(N, { children: [
60
+ w ? /* @__PURE__ */ r("div", { className: "flex min-h-0 grow items-center justify-center text-f1-foreground-secondary", children: l.pdfViewer.previewFailed }) : s ? /* @__PURE__ */ a(N, { children: [
61
61
  /* @__PURE__ */ r("div", { className: "min-h-0 grow overflow-auto", children: /* @__PURE__ */ a(
62
62
  "table",
63
63
  {
@@ -89,15 +89,15 @@ const g = 1e3, F = 100, G = ({
89
89
  ]
90
90
  }
91
91
  ) }),
92
- s.truncatedRows && /* @__PURE__ */ r("div", { className: "shrink-0 border-0 border-t border-solid border-f1-border-secondary px-3 py-1.5 text-sm text-f1-foreground-secondary", children: c.t("pdfViewer.showingFirstRows.other", {
92
+ s.truncatedRows ? /* @__PURE__ */ r("div", { className: "shrink-0 border-0 border-t border-solid border-f1-border-secondary px-3 py-1.5 text-sm text-f1-foreground-secondary", children: l.t("pdfViewer.showingFirstRows.other", {
93
93
  count: g
94
- }) })
94
+ }) }) : null
95
95
  ] }) : /* @__PURE__ */ r(
96
96
  R,
97
97
  {
98
98
  role: "status",
99
99
  "aria-busy": !0,
100
- "aria-label": c.pdfViewer.loading,
100
+ "aria-label": l.pdfViewer.loading,
101
101
  className: "min-h-0 w-full grow rounded-none"
102
102
  }
103
103
  )
@@ -1,7 +1,7 @@
1
1
  import { jsxs as b, jsx as e } from "react/jsx-runtime";
2
2
  import { useState as _, useEffect as h } from "react";
3
- import { u as x, S as p, p as w } from "./F0CanvasPanel-CpgOQnbI.js";
4
- import { u as y, D as g } from "./DocumentToolbar-CbvxX6_A.js";
3
+ import { u as x, S as p, p as w } from "./F0CanvasPanel-CHIKqAx1.js";
4
+ import { u as y, D as g } from "./DocumentToolbar-yRNLFw0I.js";
5
5
  const k = 2 * 1024 * 1024, v = [
6
6
  "[&_h1]:mb-3 [&_h1]:mt-6 [&_h1]:text-2xl [&_h1]:font-semibold",
7
7
  "[&_h2]:mb-2 [&_h2]:mt-5 [&_h2]:text-xl [&_h2]:font-semibold",
package/dist/ai.js CHANGED
@@ -1,6 +1,6 @@
1
- import { C as e, D as r, c as t, F as i, a as o, f as n, g as F, d as C, e as l, I as A, P as d, b as u, u as h } from "./F0CanvasPanel-CpgOQnbI.js";
1
+ import { C as e, D as r, c as t, F as i, a as o, f as n, g as F, d as C, e as l, I as A, P as d, b as u, u as h } from "./F0CanvasPanel-CHIKqAx1.js";
2
2
  import { defaultTranslations as c } from "./i18n-provider-defaults.js";
3
- import { A as P, C as T, t as p, s as v, v as g, y as f, l as y, i as S, q as x, z as b, B as k, p as H, r as O, j as V, e as w, g as B, k as M, F as z, T as D, w as L, h as j, a as q, n as E, m as G, o as R, b as J, f as K, x as N, c as Q, d as U, u as W } from "./F0AiProcessingOverlay-CwJG6TgU.js";
3
+ import { A as P, C as T, t as p, s as v, v as g, y as f, l as y, i as S, q as x, z as b, B as k, p as H, r as O, j as V, e as w, g as B, k as M, F as z, T as D, w as L, h as j, a as q, n as E, m as G, o as R, b as J, f as K, x as N, c as Q, d as U, u as W } from "./F0AiProcessingOverlay-D13utNB6.js";
4
4
  export {
5
5
  P as AiChatTranslationsProvider,
6
6
  e as ChatSpinner,