@factorialco/f0-react 6.88.3 → 6.88.5

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-Crt7EEav.js";
2
+ import { m } from "./experimental-CLNsFHrX.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-VDUWMSmw.js";
4
4
  import { f as z, c as E } from "./sheetPreview-Djc-YyVs.js";
5
- import { u as _, D as j } from "./DocumentToolbar-p4qZSVUD.js";
5
+ import { u as _, D as j } from "./DocumentToolbar-DUvkpuLz.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-p4qZSVUD.js";
3
+ import { u as x, S as p, p as w } from "./F0CanvasPanel-VDUWMSmw.js";
4
+ import { u as y, D as g } from "./DocumentToolbar-DUvkpuLz.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.d.ts CHANGED
@@ -5806,10 +5806,9 @@ declare module "@tiptap/core" {
5806
5806
 
5807
5807
  declare module "@tiptap/core" {
5808
5808
  interface Commands<ReturnType> {
5809
- indent: {
5810
- setIndent: (level: number) => ReturnType;
5811
- unsetIndent: () => ReturnType;
5812
- outdent: () => ReturnType;
5809
+ fontSize: {
5810
+ setFontSize: (fontSize: string) => ReturnType;
5811
+ unsetFontSize: () => ReturnType;
5813
5812
  };
5814
5813
  }
5815
5814
  }
@@ -5817,8 +5816,10 @@ declare module "@tiptap/core" {
5817
5816
 
5818
5817
  declare module "@tiptap/core" {
5819
5818
  interface Commands<ReturnType> {
5820
- moodTracker: {
5821
- insertMoodTracker: (data: MoodTrackerData) => ReturnType;
5819
+ indent: {
5820
+ setIndent: (level: number) => ReturnType;
5821
+ unsetIndent: () => ReturnType;
5822
+ outdent: () => ReturnType;
5822
5823
  };
5823
5824
  }
5824
5825
  }
@@ -5826,9 +5827,8 @@ declare module "@tiptap/core" {
5826
5827
 
5827
5828
  declare module "@tiptap/core" {
5828
5829
  interface Commands<ReturnType> {
5829
- fontSize: {
5830
- setFontSize: (fontSize: string) => ReturnType;
5831
- unsetFontSize: () => ReturnType;
5830
+ moodTracker: {
5831
+ insertMoodTracker: (data: MoodTrackerData) => ReturnType;
5832
5832
  };
5833
5833
  }
5834
5834
  }
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-VDUWMSmw.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-ByIJjCN4.js";
4
4
  export {
5
5
  P as AiChatTranslationsProvider,
6
6
  e as ChatSpinner,
@@ -318,10 +318,9 @@ declare module "@tiptap/core" {
318
318
 
319
319
  declare module "@tiptap/core" {
320
320
  interface Commands<ReturnType> {
321
- indent: {
322
- setIndent: (level: number) => ReturnType;
323
- unsetIndent: () => ReturnType;
324
- outdent: () => ReturnType;
321
+ fontSize: {
322
+ setFontSize: (fontSize: string) => ReturnType;
323
+ unsetFontSize: () => ReturnType;
325
324
  };
326
325
  }
327
326
  }
@@ -329,8 +328,10 @@ declare module "@tiptap/core" {
329
328
 
330
329
  declare module "@tiptap/core" {
331
330
  interface Commands<ReturnType> {
332
- moodTracker: {
333
- insertMoodTracker: (data: MoodTrackerData) => ReturnType;
331
+ indent: {
332
+ setIndent: (level: number) => ReturnType;
333
+ unsetIndent: () => ReturnType;
334
+ outdent: () => ReturnType;
334
335
  };
335
336
  }
336
337
  }
@@ -338,9 +339,8 @@ declare module "@tiptap/core" {
338
339
 
339
340
  declare module "@tiptap/core" {
340
341
  interface Commands<ReturnType> {
341
- fontSize: {
342
- setFontSize: (fontSize: string) => ReturnType;
343
- unsetFontSize: () => ReturnType;
342
+ moodTracker: {
343
+ insertMoodTracker: (data: MoodTrackerData) => ReturnType;
344
344
  };
345
345
  }
346
346
  }