@factorialco/f0-react 4.51.0 → 4.53.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 (39) hide show
  1. package/dist/{ChatDocxThumbnail-ZpA0oGfg.js → ChatDocxThumbnail-DzNPNFya.js} +1 -1
  2. package/dist/{ChatPdfThumbnail-Inmuy7U7.js → ChatPdfThumbnail-Ee5Wx96X.js} +1 -1
  3. package/dist/{DocumentToolbar-BYKMRth5.js → DocumentToolbar-BwJIFXDT.js} +2 -2
  4. package/dist/{DocxViewer-DTyN6WkM.js → DocxViewer-C8UBtCTB.js} +3 -3
  5. package/dist/{F0AiProcessingOverlay-BUB4HW4a.js → F0AiProcessingOverlay-BR8LMWyo.js} +802 -693
  6. package/dist/{F0CanvasPanel-DkQ4xhBx.js → F0CanvasPanel-DGLx1cqO.js} +545 -575
  7. package/dist/{LocationMap-BiiecVq_.js → LocationMap-BeSyUnec.js} +1 -1
  8. package/dist/{SheetViewer-BettRk5l.js → SheetViewer-DUvAHeaC.js} +2 -2
  9. package/dist/{TextViewer-DkXDyzcR.js → TextViewer-60i44dbD.js} +2 -2
  10. package/dist/_commonjsHelpers-ByX85dGu.js +33 -0
  11. package/dist/ai.d.ts +16 -0
  12. package/dist/ai.js +2 -2
  13. package/dist/axe-mZXA-kzX.js +23823 -0
  14. package/dist/component-status.d.ts +14 -0
  15. package/dist/component-status.js +297 -92
  16. package/dist/{docx-preview-bIzfytWN.js → docx-preview-BaRDMyPN.js} +1 -1
  17. package/dist/experimental.d.ts +16 -0
  18. package/dist/experimental.js +7 -7
  19. package/dist/f0.d.ts +67 -0
  20. package/dist/f0.js +13027 -12287
  21. package/dist/i18n-provider-defaults.d.ts +16 -0
  22. package/dist/i18n-provider-defaults.js +16 -0
  23. package/dist/{index-C4zDor6d.js → index-DsuHJt_y.js} +135 -134
  24. package/dist/{index-Ck1QOo1R.js → index-EDXekGcx.js} +29 -29
  25. package/dist/{pdfWorker-BecOMPtI.js → pdfWorker-D0j0TkJF.js} +3 -2
  26. package/dist/styles.css +1 -1
  27. package/icons/app/VolumeHigh.d.ts +4 -0
  28. package/icons/app/VolumeHigh.d.ts.map +1 -0
  29. package/icons/app/VolumeHigh.js +5 -0
  30. package/icons/app/VolumeMid.d.ts +4 -0
  31. package/icons/app/VolumeMid.d.ts.map +1 -0
  32. package/icons/app/VolumeMid.js +5 -0
  33. package/icons/app/VolumeMuted.d.ts +4 -0
  34. package/icons/app/VolumeMuted.d.ts.map +1 -0
  35. package/icons/app/VolumeMuted.js +5 -0
  36. package/icons/app/index.d.ts +3 -0
  37. package/icons/app/index.d.ts.map +1 -1
  38. package/icons/app/index.js +3 -0
  39. package/package.json +3 -2
@@ -1,7 +1,7 @@
1
- import { S as L, o as ye, u as Z, q as ne, r as Se, s as Re, i as ke, j as _e, k as Ne, t as Ce, l as Le, w as Fe, v as Ve, x as Te } from "./F0CanvasPanel-DkQ4xhBx.js";
1
+ import { S as L, m as ye, u as Z, n as ne, o as Se, q as Re, i as ke, j as _e, k as Ne, r as Ce, l as Le, w as Fe, s as Ve, t as Te } from "./F0CanvasPanel-DGLx1cqO.js";
2
2
  import { jsx as t, jsxs as y } from "react/jsx-runtime";
3
3
  import { lazy as J, forwardRef as ae, Suspense as He, useState as V, useRef as A, useMemo as te, useCallback as w, useEffect as T } from "react";
4
- import { e as Ee, D as Ue, P as je, c as De } from "./pdfWorker-BecOMPtI.js";
4
+ import { e as Ee, D as Ue, P as je, c as De } from "./pdfWorker-D0j0TkJF.js";
5
5
  import { F as We } from "./Printer-B7iDPx2r.js";
6
6
  import './index.css';const Oe = ({
7
7
  label: o,
@@ -46,8 +46,8 @@ import './index.css';const Oe = ({
46
46
  selectedScale: l,
47
47
  scaleOptions: s,
48
48
  onPreviousPage: d,
49
- onNextPage: m,
50
- onZoomIn: g,
49
+ onNextPage: g,
50
+ onZoomIn: m,
51
51
  onZoomOut: v,
52
52
  onScaleChange: k,
53
53
  rotatable: P,
@@ -94,7 +94,7 @@ import './index.css';const Oe = ({
94
94
  R,
95
95
  {
96
96
  label: c.nextPage,
97
- onClick: m,
97
+ onClick: g,
98
98
  icon: Re,
99
99
  size: "sm"
100
100
  }
@@ -113,7 +113,7 @@ import './index.css';const Oe = ({
113
113
  R,
114
114
  {
115
115
  label: c.zoomIn,
116
- onClick: g,
116
+ onClick: m,
117
117
  icon: _e
118
118
  }
119
119
  ),
@@ -208,28 +208,28 @@ import './index.css';const Oe = ({
208
208
  let i = null, l = 0;
209
209
  return a.forEach((s, d) => {
210
210
  if (!s) return;
211
- const m = s.offsetHeight, g = s.offsetTop, v = g + m, k = o.offsetHeight - e, P = o.scrollTop + e, p = P + k;
212
- if (!(P < v && p > g)) return;
211
+ const g = s.offsetHeight, m = s.offsetTop, v = m + g, k = o.offsetHeight - e, P = o.scrollTop + e, p = P + k;
212
+ if (!(P < v && p > m)) return;
213
213
  let x;
214
- if (P <= g)
215
- x = p > v ? m : p - g;
214
+ if (P <= m)
215
+ x = p > v ? g : p - m;
216
216
  else {
217
- let h = P - g;
218
- p < v && (h += v - p), x = m - h;
217
+ let h = P - m;
218
+ p < v && (h += v - p), x = g - h;
219
219
  }
220
220
  x > l && (l = x, i = d + 1);
221
221
  }), i;
222
222
  };
223
223
  Ee();
224
- const qe = J(() => import("./SheetViewer-BettRk5l.js")), Ge = J(() => import("./DocxViewer-DTyN6WkM.js")), Ze = J(() => import("./TextViewer-DkXDyzcR.js")), oe = 48, se = ae(
224
+ const qe = J(() => import("./SheetViewer-DUvAHeaC.js")), Ge = J(() => import("./DocxViewer-C8UBtCTB.js")), Ze = J(() => import("./TextViewer-60i44dbD.js")), oe = 48, se = ae(
225
225
  (o, a) => {
226
226
  const { kind: e = "pdf", mimeType: i, ...l } = o;
227
227
  if (e === "pdf") return /* @__PURE__ */ t(le, { ref: a, ...l });
228
228
  const {
229
229
  url: s,
230
230
  filename: d,
231
- actions: m,
232
- withCredentials: g = !0,
231
+ actions: g,
232
+ withCredentials: m = !0,
233
233
  page: v,
234
234
  pagesToDisplay: k,
235
235
  initialScale: P,
@@ -256,8 +256,8 @@ const qe = J(() => import("./SheetViewer-BettRk5l.js")), Ge = J(() => import("./
256
256
  {
257
257
  url: s,
258
258
  filename: d,
259
- withCredentials: g,
260
- actions: m
259
+ withCredentials: m,
260
+ actions: g
261
261
  }
262
262
  ),
263
263
  e === "docx" && /* @__PURE__ */ t(
@@ -265,8 +265,8 @@ const qe = J(() => import("./SheetViewer-BettRk5l.js")), Ge = J(() => import("./
265
265
  {
266
266
  url: s,
267
267
  filename: d,
268
- withCredentials: g,
269
- actions: m
268
+ withCredentials: m,
269
+ actions: g
270
270
  }
271
271
  ),
272
272
  e === "text" && /* @__PURE__ */ t(
@@ -275,8 +275,8 @@ const qe = J(() => import("./SheetViewer-BettRk5l.js")), Ge = J(() => import("./
275
275
  url: s,
276
276
  name: d ?? "",
277
277
  mimeType: i,
278
- withCredentials: g,
279
- actions: m
278
+ withCredentials: m,
279
+ actions: g
280
280
  }
281
281
  )
282
282
  ]
@@ -294,8 +294,8 @@ const le = ae((o, a) => {
294
294
  page: l = 0,
295
295
  pagesToDisplay: s = [],
296
296
  initialScale: d = "page-width",
297
- withCredentials: m = !0,
298
- rotatable: g = !1,
297
+ withCredentials: g = !0,
298
+ rotatable: m = !1,
299
299
  initialRotation: v = 0,
300
300
  onRotationChange: k,
301
301
  onPdfLoaded: P,
@@ -312,7 +312,7 @@ const le = ae((o, a) => {
312
312
  }))
313
313
  ],
314
314
  [h.pageWidth, h.pageFit]
315
- ), fe = te(() => ({ url: e, withCredentials: m }), [e, m]), F = w(
315
+ ), fe = te(() => ({ url: e, withCredentials: g }), [e, g]), F = w(
316
316
  (n) => {
317
317
  const r = (W ?? 1) - 1, f = Math.min(Math.max(n, 0), r), u = D.current[f], C = u?.offsetParent;
318
318
  u && C instanceof HTMLElement && (C.scrollTop = u.offsetTop - (j.current?.offsetHeight ?? 0) - 10);
@@ -340,10 +340,10 @@ const le = ae((o, a) => {
340
340
  z(n);
341
341
  const r = G.find((f) => Number(f) === n);
342
342
  r && M(r);
343
- }, []), ge = w(
343
+ }, []), me = w(
344
344
  () => $(Me(N)),
345
345
  [N, $]
346
- ), me = w(
346
+ ), ge = w(
347
347
  () => $(Ie(N)),
348
348
  [N, $]
349
349
  ), pe = w(() => {
@@ -414,10 +414,10 @@ const le = ae((o, a) => {
414
414
  scaleOptions: de,
415
415
  onPreviousPage: () => F(S - 2),
416
416
  onNextPage: () => F(S),
417
- onZoomIn: ge,
418
- onZoomOut: me,
417
+ onZoomIn: me,
418
+ onZoomOut: ge,
419
419
  onScaleChange: ue,
420
- rotatable: g,
420
+ rotatable: m,
421
421
  onRotate: pe,
422
422
  onPrint: we,
423
423
  onDownload: Pe,
@@ -1,7 +1,8 @@
1
1
  import { jsx, jsxs } from "react/jsx-runtime";
2
2
  import { createContext, useReducer, forwardRef, useRef, useImperativeHandle, useEffect, useCallback, useMemo, useContext, useLayoutEffect } from "react";
3
- import { y as getAugmentedNamespace, n as getDefaultExportFromCjs, z as invariant, A as clsx } from "./F0CanvasPanel-DkQ4xhBx.js";
4
- import { d as dequal } from "./index-C4zDor6d.js";
3
+ import { v as invariant, x as clsx } from "./F0CanvasPanel-DGLx1cqO.js";
4
+ import { d as dequal } from "./index-DsuHJt_y.js";
5
+ import { a as getAugmentedNamespace, g as getDefaultExportFromCjs } from "./_commonjsHelpers-ByX85dGu.js";
5
6
  import { c as commonjsRequire } from "./_commonjs-dynamic-modules-BpilXLfW.js";
6
7
  import './pdfWorker.css';var pdf$1 = { exports: {} };
7
8
  const __viteBrowserExternal = {}, __viteBrowserExternal$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({