@factorialco/f0-react 9.2.1 → 9.3.1

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 (43) hide show
  1. package/dist/{ChatDocxThumbnail-DTpOzL9A.js → ChatDocxThumbnail-Brbh1wem.js} +1 -1
  2. package/dist/{ChatPdfThumbnail-CAOAs-qh.js → ChatPdfThumbnail-D4DN5xr2.js} +1 -1
  3. package/dist/{ChatPostComposerDialog-BuzKBfwA.js → ChatPostComposerDialog-l1iabm-7.js} +3 -3
  4. package/dist/{ChatSheetThumbnail-P76Jt0_u.js → ChatSheetThumbnail-C_C2oIV_.js} +1 -1
  5. package/dist/{CoachmarkProvider-CQJNVR53.js → CoachmarkProvider-B1YG7W1t.js} +10919 -11003
  6. package/dist/{DocumentToolbar-BIIQvnf3.js → DocumentToolbar-CmyNC2wp.js} +2 -2
  7. package/dist/{DocxViewer-DVeatd9-.js → DocxViewer-de6X1Pon.js} +3 -3
  8. package/dist/{F0AiProcessingOverlay-CHEMsQma.js → F0AiProcessingOverlay-DB5NFWs5.js} +22 -22
  9. package/dist/{F0CanvasPanel-jtcjSLLr.js → F0CanvasPanel-DKFZlybo.js} +30705 -28790
  10. package/dist/{F0DocumentViewer-Bg7uiU9c.js → F0DocumentViewer-DTY1Upm6.js} +21 -21
  11. package/dist/{F0Map-DLJ6sRN_.js → F0Map-Ib5OFPWf.js} +5 -5
  12. package/dist/{F0VideoPlayer-B8kLFnbf.js → F0VideoPlayer-B7zpyW3g.js} +44 -44
  13. package/dist/{LocationMap-B-e88fW6.js → LocationMap-C6TZJaOq.js} +1 -1
  14. package/dist/{SheetViewer-B8BmAg0d.js → SheetViewer-BO_8Vz3d.js} +4 -4
  15. package/dist/{TextViewer-DDtUtmWj.js → TextViewer-BGDy0VE3.js} +2 -2
  16. package/dist/ai.d.ts +19 -19
  17. package/dist/ai.js +2 -2
  18. package/dist/{axe-mZXA-kzX.js → axe-Cc8MuO-E.js} +1 -1
  19. package/dist/component-status.d.ts +19 -19
  20. package/dist/component-status.js +69 -63
  21. package/dist/{experimental-4hJ9yljk.js → experimental-CJxYO3TS.js} +1914 -1914
  22. package/dist/experimental.d.ts +120 -33
  23. package/dist/experimental.js +146 -145
  24. package/dist/f0.d.ts +30 -30
  25. package/dist/f0.js +10588 -11481
  26. package/dist/i18n-provider-defaults.d.ts +19 -19
  27. package/dist/index-5n9cK7fI.js +4 -0
  28. package/dist/{index-D0AH60ev.js → index-B4YJYrDq.js} +21 -21
  29. package/dist/{index-C8h4kG2n.js → index-B_CHe0P4.js} +3 -3
  30. package/dist/{index-B5dJ814t.js → index-C1hywv0e.js} +1 -1
  31. package/dist/index-D3eRTe5Y.js +8 -0
  32. package/dist/{maplibre-gl-BFrhpbuU.js → maplibre-gl-CF3gv2QL.js} +1 -1
  33. package/dist/{papaparse.min-Bh1MVuzw.js → papaparse.min-l46A1xl2.js} +1 -1
  34. package/dist/{pdfWorker-BRAGbLi_.js → pdfWorker-Ddggmoi-.js} +3 -4
  35. package/dist/{renderDocx-CVEzw9MK.js → renderDocx-E222oLTQ.js} +1 -1
  36. package/dist/{sheetPreview-BiccmyTD.js → sheetPreview-DC9RRwv0.js} +1 -1
  37. package/dist/styles.css +1 -1
  38. package/dist/tooltip-VHD1kZdF.js +7433 -0
  39. package/package.json +1 -2
  40. package/dist/_commonjsHelpers-ByX85dGu.js +0 -33
  41. package/dist/index-CW8sa9GP.js +0 -8
  42. package/dist/index-k8Xsj0d1.js +0 -4
  43. package/dist/tooltip-CrXp1Uaz.js +0 -4641
@@ -1,9 +1,9 @@
1
1
  import { jsx as r, jsxs as P } from "react/jsx-runtime";
2
2
  import { lazy as X, forwardRef as ce, Suspense as Ce, useState as U, useRef as A, useCallback as w, useMemo as ie, useEffect as V } from "react";
3
- import { S as E, z as _e, u as Y, A as Te, w as Le, j as Fe, k as De, l as Ve, B as Ee, m as He, E as Ue, G as We, H as Oe, J as je } from "./F0CanvasPanel-jtcjSLLr.js";
4
- import { e as $e, D as ze, P as Be } from "./pdfWorker-BRAGbLi_.js";
5
- import { d as G } from "./tooltip-CrXp1Uaz.js";
6
- import { F as Me } from "./Printer-BD-FEi_2.js";
3
+ import { S as E, A as _e, u as Y, B as Te, x as Le, j as Fe, k as De, l as Ve, E as Ee, m as He, G as Ue, H as We, J as Oe, K as je } from "./F0CanvasPanel-DKFZlybo.js";
4
+ import { e as $e, D as Be, P as Me } from "./pdfWorker-Ddggmoi-.js";
5
+ import { d as G } from "./tooltip-VHD1kZdF.js";
6
+ import { F as ze } from "./Printer-BD-FEi_2.js";
7
7
  import './F0DocumentViewer.css';const ut = [
8
8
  "page-width",
9
9
  "page-fit",
@@ -163,7 +163,7 @@ import './F0DocumentViewer.css';const ut = [
163
163
  {
164
164
  label: p.print,
165
165
  onClick: W,
166
- icon: Me
166
+ icon: ze
167
167
  }
168
168
  ),
169
169
  /* @__PURE__ */ r(
@@ -272,7 +272,7 @@ import './F0DocumentViewer.css';const ut = [
272
272
  }), i;
273
273
  };
274
274
  $e();
275
- const tt = X(() => import("./SheetViewer-B8BmAg0d.js")), ot = X(() => import("./DocxViewer-DVeatd9-.js")), nt = X(() => import("./TextViewer-DDtUtmWj.js")), se = 48, rt = 150, ue = ce((e, t) => {
275
+ const tt = X(() => import("./SheetViewer-BO_8Vz3d.js")), ot = X(() => import("./DocxViewer-de6X1Pon.js")), nt = X(() => import("./TextViewer-BGDy0VE3.js")), se = 48, rt = 150, ue = ce((e, t) => {
276
276
  const { kind: o = "pdf", mimeType: i, toolbar: l = "top", ...s } = e;
277
277
  if (o === "pdf")
278
278
  return /* @__PURE__ */ r(me, { ref: t, toolbar: l, ...s });
@@ -353,7 +353,7 @@ const me = ce((e, t) => {
353
353
  } = e, { pdfViewer: v } = Y(), p = Math.max(
354
354
  2,
355
355
  typeof window > "u" ? 1 : window.devicePixelRatio || 1
356
- ), [g, R] = U(null), [S, ee] = U([]), [T, Z] = U(1), [k, te] = U(0), [L, q] = U(c), [F, pe] = U(b), $ = A(null), J = A(null), O = A([]), z = s.length > 0 ? s.length : g?.numPages, B = w(
356
+ ), [g, R] = U(null), [S, ee] = U([]), [T, Z] = U(1), [k, te] = U(0), [L, q] = U(c), [F, pe] = U(b), $ = A(null), J = A(null), O = A([]), B = s.length > 0 ? s.length : g?.numPages, M = w(
357
357
  () => m === "top" ? J.current?.offsetHeight ?? 0 : 0,
358
358
  [m]
359
359
  ), oe = S.find(Boolean), ne = (oe?.originalWidth ?? 595) * T, re = (oe?.originalHeight ?? 842) * T, ge = ie(
@@ -368,10 +368,10 @@ const me = ce((e, t) => {
368
368
  [v.pageWidth, v.pageFit]
369
369
  ), he = ie(() => ({ url: o, withCredentials: h }), [o, h]), H = w(
370
370
  (n) => {
371
- const a = (z ?? 1) - 1, d = Math.min(Math.max(n, 0), a), f = O.current[d], D = f?.offsetParent;
372
- f && D instanceof HTMLElement && (D.scrollTop = f.offsetTop - B() - 10);
371
+ const a = (B ?? 1) - 1, d = Math.min(Math.max(n, 0), a), f = O.current[d], D = f?.offsetParent;
372
+ f && D instanceof HTMLElement && (D.scrollTop = f.offsetTop - M() - 10);
373
373
  },
374
- [z, B]
374
+ [B, M]
375
375
  ), j = w(
376
376
  (n) => {
377
377
  const a = S[k - 1], d = $.current;
@@ -390,18 +390,18 @@ const me = ce((e, t) => {
390
390
  Z(Number(n)), q(n);
391
391
  },
392
392
  [j]
393
- ), M = w((n) => {
393
+ ), z = w((n) => {
394
394
  if (n === void 0)
395
395
  return;
396
396
  Z(n);
397
397
  const a = Q.find((d) => Number(d) === n);
398
398
  a && q(a);
399
399
  }, []), we = w(
400
- () => M(Xe(T)),
401
- [T, M]
400
+ () => z(Xe(T)),
401
+ [T, z]
402
402
  ), xe = w(
403
- () => M(Ye(T)),
404
- [T, M]
403
+ () => z(Ye(T)),
404
+ [T, z]
405
405
  ), ve = w(() => {
406
406
  pe((n) => {
407
407
  const a = (n + 90) % 360;
@@ -422,11 +422,11 @@ const me = ce((e, t) => {
422
422
  const d = et(
423
423
  a,
424
424
  O.current,
425
- B()
425
+ M()
426
426
  );
427
427
  d && te(d);
428
428
  },
429
- [B]
429
+ [M]
430
430
  ), Re = w(() => {
431
431
  Ke(g);
432
432
  }, [g]), Se = w(() => {
@@ -467,7 +467,7 @@ const me = ce((e, t) => {
467
467
  toolbarRef: J,
468
468
  placement: m,
469
469
  currentPage: k,
470
- totalPages: z,
470
+ totalPages: B,
471
471
  hasDocument: !!g?.numPages,
472
472
  selectedScale: L,
473
473
  scaleOptions: ge,
@@ -498,7 +498,7 @@ const me = ce((e, t) => {
498
498
  children: [
499
499
  m === "top" ? /* @__PURE__ */ r(le, { ...ae }) : null,
500
500
  o ? /* @__PURE__ */ r(
501
- ze,
501
+ Be,
502
502
  {
503
503
  file: he,
504
504
  onLoadSuccess: ye,
@@ -510,14 +510,14 @@ const me = ce((e, t) => {
510
510
  height: re
511
511
  }
512
512
  ),
513
- children: g ? Array.from({ length: z ?? 0 }).map((n, a) => {
513
+ children: g ? Array.from({ length: B ?? 0 }).map((n, a) => {
514
514
  const d = (s.length > 0 ? s[a] : a) + 1;
515
515
  return /* @__PURE__ */ r(
516
516
  "div",
517
517
  {
518
518
  className: "F0DocumentViewer__page mx-auto w-fit px-4 pt-4 last:pb-4",
519
519
  children: /* @__PURE__ */ r(
520
- Be,
520
+ Me,
521
521
  {
522
522
  className: "overflow-hidden rounded-lg border border-solid border-f1-border-secondary shadow-md",
523
523
  pageNumber: d,
@@ -1,8 +1,8 @@
1
1
  import { jsx as r, jsxs as B, Fragment as De } from "react/jsx-runtime";
2
2
  import { forwardRef as ie, useMemo as ze, useEffect as j, useState as E, useRef as N, useLayoutEffect as Hn, useContext as Xn, createContext as Yn, useCallback as O, useId as Un, useImperativeHandle as Gn } from "react";
3
- import { c as Zn, d as Kn, e as qn } from "./CoachmarkProvider-CQJNVR53.js";
4
- import { y as we, a5 as Vn, v as en, a6 as nt, a7 as lt, a8 as Oe, a9 as oe, aa as tn, u as se, z as Fe, ab as Jn, ac as Qn, ad as ea, j as ta, ae as na, af as nn, ag as aa, ah as oa, ai as Rt, aj as an, ak as la } from "./F0CanvasPanel-jtcjSLLr.js";
5
- import { d as D, f as ra } from "./tooltip-CrXp1Uaz.js";
3
+ import { c as Zn, d as Kn, e as qn } from "./CoachmarkProvider-B1YG7W1t.js";
4
+ import { z as we, a6 as Vn, w as en, a7 as nt, a8 as lt, a9 as Oe, aa as oe, ab as tn, u as se, A as Fe, ac as Jn, ad as Qn, ae as ea, j as ta, af as na, ag as nn, ah as aa, ai as oa, aj as Rt, ak as an, al as la } from "./F0CanvasPanel-DKFZlybo.js";
5
+ import { d as D, f as ra } from "./tooltip-VHD1kZdF.js";
6
6
  import { createPortal as ia } from "react-dom";
7
7
  const sa = (e, t) => ({
8
8
  top: Math.max(e?.top ?? 0, t?.top ?? 0),
@@ -1527,11 +1527,11 @@ const Lo = {
1527
1527
  }, []);
1528
1528
  return j(() => () => a.current?.disconnect(), []), { containerRef: l, isDark: e };
1529
1529
  }, Ya = {
1530
- maplibre: () => import("./index-C8h4kG2n.js").then((e) => e.createMaplibreAdapter),
1530
+ maplibre: () => import("./index-B_CHe0P4.js").then((e) => e.createMaplibreAdapter),
1531
1531
  // Google needs its script in the page before a map can be constructed, so the
1532
1532
  // loader resolves only once the API is up - which is what keeps the factory
1533
1533
  // itself synchronous for every engine.
1534
- google: (e) => import("./index-B5dJ814t.js").then((t) => t.loadGoogleAdapter(e))
1534
+ google: (e) => import("./index-C1hywv0e.js").then((t) => t.loadGoogleAdapter(e))
1535
1535
  }, at = /* @__PURE__ */ new Map(), Ua = (e, t) => {
1536
1536
  const a = at.get(e);
1537
1537
  if (a)
@@ -1,9 +1,9 @@
1
- import { u as W, K as je, L as Xe, z as $, M as Ge, N as Ze, O as Ye, Q as qe, R as Qe, U as Je, V as et, W as tt, X as nt, Y as rt, Z as at, _ as ot, $ as st, a0 as ye, a1 as it, a2 as Ce, m as ct, a3 as lt, a4 as dt, v as ut, E as ft, G as mt } from "./F0CanvasPanel-jtcjSLLr.js";
1
+ import { u as W, L as je, M as Xe, A as $, N as Ge, O as Ze, Q as Ye, R as qe, U as Qe, V as Je, W as et, X as tt, Y as nt, Z as rt, _ as at, $ as ot, a0 as st, a1 as ye, a2 as it, a3 as Ce, m as ct, a4 as lt, a5 as dt, w as ut, G as ft, H as mt } from "./F0CanvasPanel-DKFZlybo.js";
2
2
  import { jsxs as R, jsx as c } from "react/jsx-runtime";
3
- import { forwardRef as re, useId as pt, useState as x, useRef as F, useEffect as _, useMemo as Q, useCallback as M } from "react";
4
- import { d as H, f as de } from "./tooltip-CrXp1Uaz.js";
3
+ import { forwardRef as re, useId as pt, useState as x, useRef as F, useEffect as _, useMemo as Q, useCallback as A } from "react";
4
+ import { d as H, f as de } from "./tooltip-VHD1kZdF.js";
5
5
  import { F as Pe, a as ht, b as gt } from "./VolumeMuted-UfTwt2zn.js";
6
- import { b as vt } from "./CoachmarkProvider-CQJNVR53.js";
6
+ import { b as vt } from "./CoachmarkProvider-B1YG7W1t.js";
7
7
  function Re(e) {
8
8
  return Array.isArray(e) && e.every(
9
9
  (t) => typeof t == "object" && t !== null && "locale" in t && "value" in t
@@ -178,7 +178,7 @@ const fe = re(
178
178
  )
179
179
  );
180
180
  fe.displayName = "CaptionsLineIcon";
181
- const Me = re(
181
+ const Ae = re(
182
182
  ({ animate: e, ...t }, a) => /* @__PURE__ */ c(
183
183
  "svg",
184
184
  {
@@ -200,7 +200,7 @@ const Me = re(
200
200
  }
201
201
  )
202
202
  );
203
- Me.displayName = "CaptionsFilledIcon";
203
+ Ae.displayName = "CaptionsFilledIcon";
204
204
  function Ct({
205
205
  value: e,
206
206
  onChange: t,
@@ -301,8 +301,8 @@ function Pt({
301
301
  const P = n.current;
302
302
  if (!P)
303
303
  return 0;
304
- const A = P.getBoundingClientRect();
305
- return Math.max(0, Math.min(1, (v - A.left) / A.width));
304
+ const M = P.getBoundingClientRect();
305
+ return Math.max(0, Math.min(1, (v - M.left) / M.width));
306
306
  }, b = (v) => {
307
307
  t && o(h(v) * t);
308
308
  }, E = (v) => {
@@ -388,7 +388,7 @@ function Pt({
388
388
  }
389
389
  );
390
390
  }
391
- const ie = "off", we = "py-2 pr-4 text-base font-medium", Rt = "gap-2 py-2 pl-3 pr-2 text-base font-medium", Ae = "max-h-[var(--radix-dropdown-menu-content-available-height)] min-w-[13rem] overflow-y-auto p-1";
391
+ const ie = "off", we = "py-2 pr-4 text-base font-medium", Rt = "gap-2 py-2 pl-3 pr-2 text-base font-medium", Me = "max-h-[var(--radix-dropdown-menu-content-available-height)] min-w-[13rem] overflow-y-auto p-1";
392
392
  function ce({
393
393
  icon: e,
394
394
  label: t,
@@ -407,7 +407,7 @@ function ce({
407
407
  /* @__PURE__ */ c("span", { className: "flex-1", children: t }),
408
408
  /* @__PURE__ */ c("span", { className: "text-f1-foreground-secondary", children: y })
409
409
  ] }),
410
- /* @__PURE__ */ c(at, { container: a ?? void 0, children: /* @__PURE__ */ c(ot, { className: Ae, children: /* @__PURE__ */ R(
410
+ /* @__PURE__ */ c(at, { container: a ?? void 0, children: /* @__PURE__ */ c(ot, { className: Me, children: /* @__PURE__ */ R(
411
411
  st,
412
412
  {
413
413
  value: m ? n ? o : ie : o,
@@ -462,7 +462,7 @@ function St({
462
462
  container: b,
463
463
  side: "top",
464
464
  align: "end",
465
- className: Ae,
465
+ className: Me,
466
466
  children: [
467
467
  t.length > 1 ? /* @__PURE__ */ c(
468
468
  ce,
@@ -515,7 +515,7 @@ function Dt(e) {
515
515
  function Tt(e, t) {
516
516
  return t || e === 0 ? Pe : e <= 0.5 ? ht : gt;
517
517
  }
518
- function Mt({
518
+ function At({
519
519
  volume: e,
520
520
  isMuted: t,
521
521
  onToggleMute: a,
@@ -545,10 +545,10 @@ function Mt({
545
545
  onClick: a
546
546
  }
547
547
  ),
548
- /* @__PURE__ */ c(At, { value: n ? 0 : e, onChange: r })
548
+ /* @__PURE__ */ c(Mt, { value: n ? 0 : e, onChange: r })
549
549
  ] });
550
550
  }
551
- function At({ value: e, onChange: t }) {
551
+ function Mt({ value: e, onChange: t }) {
552
552
  const { t: a } = W(), r = F(null), [o, s] = x(!1), n = Math.max(0, Math.min(1, e)), u = (l) => {
553
553
  const f = r.current;
554
554
  if (!f)
@@ -656,7 +656,7 @@ function It({
656
656
  captionLanguage: O,
657
657
  onCaptionLanguageChange: v,
658
658
  onCaptionsOff: P,
659
- audioDescriptionLanguages: A,
659
+ audioDescriptionLanguages: M,
660
660
  audioDescriptionLanguage: C,
661
661
  onAudioDescriptionLanguageChange: i,
662
662
  onAudioDescriptionOff: D,
@@ -670,10 +670,10 @@ function It({
670
670
  onSeek: q,
671
671
  download: G
672
672
  }) {
673
- const { t: p } = W(), I = g && w.length <= 1, z = l && A.length <= 1, V = Dt({
673
+ const { t: p } = W(), I = g && w.length <= 1, z = l && M.length <= 1, V = Dt({
674
674
  audioLanguages: E.length,
675
675
  captionLanguages: w.length,
676
- audioDescriptionLanguages: A.length
676
+ audioDescriptionLanguages: M.length
677
677
  });
678
678
  return /* @__PURE__ */ R(
679
679
  "div",
@@ -723,7 +723,7 @@ function It({
723
723
  ne(a)
724
724
  ] }),
725
725
  /* @__PURE__ */ c(
726
- Mt,
726
+ At,
727
727
  {
728
728
  volume: r,
729
729
  isMuted: o,
@@ -749,7 +749,7 @@ function It({
749
749
  variant: "ghost",
750
750
  size: "sm",
751
751
  hideLabel: !0,
752
- icon: y ? Me : fe,
752
+ icon: y ? Ae : fe,
753
753
  label: p("videoPlayer.captions"),
754
754
  "aria-pressed": y,
755
755
  onClick: N
@@ -785,7 +785,7 @@ function It({
785
785
  captionsOn: y,
786
786
  onCaptionLanguageChange: v,
787
787
  onCaptionsOff: P,
788
- audioDescriptionLanguages: A,
788
+ audioDescriptionLanguages: M,
789
789
  audioDescriptionLanguage: C,
790
790
  audioDescriptionOn: f,
791
791
  onAudioDescriptionLanguageChange: i,
@@ -862,9 +862,9 @@ function Nt(e, { enabled: t, describedSrc: a, descriptions: r }) {
862
862
  d(C);
863
863
  };
864
864
  v();
865
- const P = typeof f.addEventListener == "function", A = () => v();
866
- return P && (f.addEventListener("addtrack", A), f.addEventListener("removetrack", A)), () => {
867
- P && (f.removeEventListener("addtrack", A), f.removeEventListener("removetrack", A)), w.forEach((C) => C()), h && window.speechSynthesis.cancel(), E();
865
+ const P = typeof f.addEventListener == "function", M = () => v();
866
+ return P && (f.addEventListener("addtrack", M), f.addEventListener("removetrack", M)), () => {
867
+ P && (f.removeEventListener("addtrack", M), f.removeEventListener("removetrack", M)), w.forEach((C) => C()), h && window.speechSynthesis.cancel(), E();
868
868
  };
869
869
  }, [e, t, o, r, s]), Q(
870
870
  () => ({ trackSrc: s, needsCrossOrigin: n, available: m, activeCue: g }),
@@ -879,7 +879,7 @@ function _t({
879
879
  toggleFullscreen: o,
880
880
  setVolume: s
881
881
  }) {
882
- return M(
882
+ return A(
883
883
  (n) => {
884
884
  const u = n.target;
885
885
  if (u instanceof HTMLElement && (u.closest(
@@ -953,7 +953,7 @@ function Ft({
953
953
  e.removeEventListener("timeupdate", l), e.removeEventListener("seeking", f), e.removeEventListener("seeked", f), e.removeEventListener("pause", y), e.removeEventListener("ended", y);
954
954
  };
955
955
  }, [e]);
956
- const d = M((m) => s.current ? Math.min(m, r.current) : m, []);
956
+ const d = A((m) => s.current ? Math.min(m, r.current) : m, []);
957
957
  return { maxWatchedTime: n, clampSeek: d };
958
958
  }
959
959
  const Ee = /* @__PURE__ */ new Set([
@@ -1067,7 +1067,7 @@ function zt({
1067
1067
  function Bt(e) {
1068
1068
  const t = F(null), [a, r] = x(
1069
1069
  null
1070
- ), o = F(0), s = M((i) => {
1070
+ ), o = F(0), s = A((i) => {
1071
1071
  t.current = i, r(i);
1072
1072
  }, []), [n, u] = x(!1), [d, m] = x(!1), [g, y] = x(0), [l, f] = x(0), [h, b] = x(1), [E, T] = x(!1), [k, w] = x(
1073
1073
  oe
@@ -1090,23 +1090,23 @@ function Bt(e) {
1090
1090
  i.removeEventListener("play", D), i.removeEventListener("pause", S), i.removeEventListener("ended", B), i.removeEventListener("volumechange", j), i.removeEventListener("loadedmetadata", K), i.removeEventListener("ratechange", X), i.removeEventListener("timeupdate", N);
1091
1091
  };
1092
1092
  }, [a]);
1093
- const O = M(() => {
1093
+ const O = A(() => {
1094
1094
  const i = t.current;
1095
1095
  i && (i.paused || i.ended ? i.play().catch(() => {
1096
1096
  }) : i.pause());
1097
- }, []), v = M(() => {
1097
+ }, []), v = A(() => {
1098
1098
  const i = t.current;
1099
1099
  i && (i.muted = !i.muted);
1100
- }, []), P = M((i) => {
1100
+ }, []), P = A((i) => {
1101
1101
  const D = t.current;
1102
1102
  if (!D)
1103
1103
  return;
1104
1104
  const S = Math.max(0, Math.min(1, i));
1105
1105
  D.volume = S, D.muted = S === 0;
1106
- }, []), A = M((i) => {
1106
+ }, []), M = A((i) => {
1107
1107
  const D = t.current;
1108
1108
  D && (D.playbackRate = i);
1109
- }, []), C = M((i) => {
1109
+ }, []), C = A((i) => {
1110
1110
  const D = t.current;
1111
1111
  if (!D)
1112
1112
  return;
@@ -1128,7 +1128,7 @@ function Bt(e) {
1128
1128
  togglePlay: O,
1129
1129
  toggleMute: v,
1130
1130
  setVolume: P,
1131
- setPlaybackRate: A,
1131
+ setPlaybackRate: M,
1132
1132
  seekTo: C
1133
1133
  };
1134
1134
  }
@@ -1179,11 +1179,11 @@ function Wt({
1179
1179
  ), O = T.some((L) => L.locale === k) ? k : Z(T, n), v = ee(e, O) ?? "", P = Q(
1180
1180
  () => ae(s?.captions),
1181
1181
  [s?.captions]
1182
- ), [A, C] = x(
1182
+ ), [M, C] = x(
1183
1183
  () => Z(P, n)
1184
1184
  ), i = P.some(
1185
- (L) => L.locale === A
1186
- ) ? A : Z(P, n), D = ee(s?.captions, i), S = Q(
1185
+ (L) => L.locale === M
1186
+ ) ? M : Z(P, n), D = ee(s?.captions, i), S = Q(
1187
1187
  () => ae(s?.descriptions, s?.describedSrc),
1188
1188
  [s?.descriptions, s?.describedSrc]
1189
1189
  ), [B, j] = x(
@@ -1200,7 +1200,7 @@ function Wt({
1200
1200
  enabled: U,
1201
1201
  describedSrc: N,
1202
1202
  descriptions: X
1203
- }), V = M(() => {
1203
+ }), V = A(() => {
1204
1204
  const L = p.videoRef.current;
1205
1205
  if (!L)
1206
1206
  return;
@@ -1209,26 +1209,26 @@ function Wt({
1209
1209
  }), L.removeEventListener("loadedmetadata", be);
1210
1210
  };
1211
1211
  L.addEventListener("loadedmetadata", be);
1212
- }, [p.videoRef]), Ne = M(
1212
+ }, [p.videoRef]), Ne = A(
1213
1213
  (L) => {
1214
1214
  V(), w(L);
1215
1215
  },
1216
1216
  [V]
1217
- ), _e = M(() => {
1217
+ ), _e = A(() => {
1218
1218
  N && V(), q((L) => !L);
1219
- }, [N, V]), Fe = M(
1219
+ }, [N, V]), Fe = A(
1220
1220
  (L) => {
1221
1221
  C(L), I.showing || I.toggle();
1222
1222
  },
1223
1223
  [I]
1224
- ), Oe = M(() => {
1224
+ ), Oe = A(() => {
1225
1225
  I.showing && I.toggle();
1226
- }, [I]), Ve = M(
1226
+ }, [I]), Ve = A(
1227
1227
  (L) => {
1228
1228
  N && V(), j(L), q(!0);
1229
1229
  },
1230
1230
  [N, V]
1231
- ), Ue = M(() => {
1231
+ ), Ue = A(() => {
1232
1232
  N && V(), q(!1);
1233
1233
  }, [N, V]);
1234
1234
  Ht({ video: p.videoElement, onTrackAction: y }), zt({
@@ -1244,12 +1244,12 @@ function Wt({
1244
1244
  video: p.videoElement,
1245
1245
  enabled: g,
1246
1246
  resetKey: v
1247
- }), pe = M(
1247
+ }), pe = A(
1248
1248
  (L) => p.seekTo(me(L)),
1249
1249
  [p, me]
1250
1250
  ), { isFullscreen: Ke, toggleFullscreen: he } = vt({
1251
1251
  targetRef: E
1252
- }), ge = M(() => {
1252
+ }), ge = A(() => {
1253
1253
  }, []), ve = !!(U && N);
1254
1254
  _(() => {
1255
1255
  const L = p.videoRef.current;
@@ -1,5 +1,5 @@
1
1
  import { jsx as p } from "react/jsx-runtime";
2
- import { m } from "./maplibre-gl-BFrhpbuU.js";
2
+ import { m } from "./maplibre-gl-CF3gv2QL.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,9 +1,9 @@
1
1
  import { jsx as r, jsxs as n, Fragment as v } from "react/jsx-runtime";
2
2
  import { useState as m, useEffect as E } from "react";
3
- import { u as F, T as S, h as T, S as V, i as A } from "./F0CanvasPanel-jtcjSLLr.js";
4
- import { d as D } from "./F0DocumentViewer-Bg7uiU9c.js";
5
- import { f as L, c as R } from "./sheetPreview-BiccmyTD.js";
6
- import { u as z, D as U } from "./DocumentToolbar-BIIQvnf3.js";
3
+ import { u as F, T as S, h as T, S as V, i as A } from "./F0CanvasPanel-DKFZlybo.js";
4
+ import { d as D } from "./F0DocumentViewer-DTY1Upm6.js";
5
+ import { f as L, c as R } from "./sheetPreview-DC9RRwv0.js";
6
+ import { u as z, D as U } from "./DocumentToolbar-CmyNC2wp.js";
7
7
  const w = 1e3, _ = 100, $ = ({
8
8
  url: a,
9
9
  filename: f,
@@ -1,7 +1,7 @@
1
1
  import { jsxs as p, jsx as e } from "react/jsx-runtime";
2
2
  import { useState as u, useEffect as x } from "react";
3
- import { u as w, S as y, p as g } from "./F0CanvasPanel-jtcjSLLr.js";
4
- import { u as k, D as v } from "./DocumentToolbar-BIIQvnf3.js";
3
+ import { u as w, S as y, p as g } from "./F0CanvasPanel-DKFZlybo.js";
4
+ import { u as k, D as v } from "./DocumentToolbar-CmyNC2wp.js";
5
5
  const q = 2 * 1024 * 1024, N = [
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
@@ -6846,19 +6846,10 @@ declare namespace Calendar {
6846
6846
 
6847
6847
  declare module "@tiptap/core" {
6848
6848
  interface Commands<ReturnType> {
6849
- fontSize: {
6850
- setFontSize: (fontSize: string) => ReturnType;
6851
- unsetFontSize: () => ReturnType;
6852
- };
6853
- }
6854
- }
6855
-
6856
-
6857
- declare module "@tiptap/core" {
6858
- interface Commands<ReturnType> {
6859
- aiBlock: {
6860
- insertAIBlock: (data: AIBlockData, config: AIBlockConfig) => ReturnType;
6861
- executeAIAction: (actionType: string, config: AIBlockConfig) => ReturnType;
6849
+ indent: {
6850
+ setIndent: (level: number) => ReturnType;
6851
+ unsetIndent: () => ReturnType;
6852
+ outdent: () => ReturnType;
6862
6853
  };
6863
6854
  }
6864
6855
  }
@@ -6878,10 +6869,9 @@ declare module "@tiptap/core" {
6878
6869
 
6879
6870
  declare module "@tiptap/core" {
6880
6871
  interface Commands<ReturnType> {
6881
- indent: {
6882
- setIndent: (level: number) => ReturnType;
6883
- unsetIndent: () => ReturnType;
6884
- outdent: () => ReturnType;
6872
+ fontSize: {
6873
+ setFontSize: (fontSize: string) => ReturnType;
6874
+ unsetFontSize: () => ReturnType;
6885
6875
  };
6886
6876
  }
6887
6877
  }
@@ -6889,8 +6879,9 @@ declare module "@tiptap/core" {
6889
6879
 
6890
6880
  declare module "@tiptap/core" {
6891
6881
  interface Commands<ReturnType> {
6892
- moodTracker: {
6893
- insertMoodTracker: (data: MoodTrackerData) => ReturnType;
6882
+ aiBlock: {
6883
+ insertAIBlock: (data: AIBlockData, config: AIBlockConfig) => ReturnType;
6884
+ executeAIAction: (actionType: string, config: AIBlockConfig) => ReturnType;
6894
6885
  };
6895
6886
  }
6896
6887
  }
@@ -6916,6 +6907,15 @@ declare module "@tiptap/core" {
6916
6907
  }
6917
6908
 
6918
6909
 
6910
+ declare module "@tiptap/core" {
6911
+ interface Commands<ReturnType> {
6912
+ moodTracker: {
6913
+ insertMoodTracker: (data: MoodTrackerData) => ReturnType;
6914
+ };
6915
+ }
6916
+ }
6917
+
6918
+
6919
6919
  declare namespace F0GraphNodeWrapperInner {
6920
6920
  var displayName: string;
6921
6921
  }
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 m } from "./F0CanvasPanel-jtcjSLLr.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 m } from "./F0CanvasPanel-DKFZlybo.js";
2
2
  import { defaultTranslations as c } from "./i18n-provider-defaults.js";
3
- import { A as g, C as p, t as v, s as I, v as T, y as S, B as f, l as y, i as x, q as b, E as k, G as B, p as H, r as L, j as M, e as O, g as V, k as w, F as D, T as z, w as E, h as G, a as j, n as q, z as R, m as U, o as J, D as K, b as N, f as Q, x as W, c as X, d as Y, u as Z } from "./F0AiProcessingOverlay-CHEMsQma.js";
3
+ import { A as g, C as p, t as v, s as I, v as T, y as S, B as f, l as y, i as x, q as b, E as k, G as B, p as H, r as L, j as M, e as O, g as V, k as w, F as D, T as z, w as E, h as G, a as j, n as q, z as R, m as U, o as J, D as K, b as N, f as Q, x as W, c as X, d as Y, u as Z } from "./F0AiProcessingOverlay-DB5NFWs5.js";
4
4
  export {
5
5
  g as AiChatTranslationsProvider,
6
6
  e as ChatSpinner,
@@ -1,4 +1,4 @@
1
- import { g as VR } from "./_commonjsHelpers-ByX85dGu.js";
1
+ import { g as VR } from "./tooltip-VHD1kZdF.js";
2
2
  var Fi = { exports: {} };
3
3
  var HR = Fi.exports, Mp;
4
4
  function GR() {
@@ -307,19 +307,10 @@ declare namespace Calendar {
307
307
 
308
308
  declare module "@tiptap/core" {
309
309
  interface Commands<ReturnType> {
310
- fontSize: {
311
- setFontSize: (fontSize: string) => ReturnType;
312
- unsetFontSize: () => ReturnType;
313
- };
314
- }
315
- }
316
-
317
-
318
- declare module "@tiptap/core" {
319
- interface Commands<ReturnType> {
320
- aiBlock: {
321
- insertAIBlock: (data: AIBlockData, config: AIBlockConfig) => ReturnType;
322
- executeAIAction: (actionType: string, config: AIBlockConfig) => ReturnType;
310
+ indent: {
311
+ setIndent: (level: number) => ReturnType;
312
+ unsetIndent: () => ReturnType;
313
+ outdent: () => ReturnType;
323
314
  };
324
315
  }
325
316
  }
@@ -339,10 +330,9 @@ declare module "@tiptap/core" {
339
330
 
340
331
  declare module "@tiptap/core" {
341
332
  interface Commands<ReturnType> {
342
- indent: {
343
- setIndent: (level: number) => ReturnType;
344
- unsetIndent: () => ReturnType;
345
- outdent: () => ReturnType;
333
+ fontSize: {
334
+ setFontSize: (fontSize: string) => ReturnType;
335
+ unsetFontSize: () => ReturnType;
346
336
  };
347
337
  }
348
338
  }
@@ -350,8 +340,9 @@ declare module "@tiptap/core" {
350
340
 
351
341
  declare module "@tiptap/core" {
352
342
  interface Commands<ReturnType> {
353
- moodTracker: {
354
- insertMoodTracker: (data: MoodTrackerData) => ReturnType;
343
+ aiBlock: {
344
+ insertAIBlock: (data: AIBlockData, config: AIBlockConfig) => ReturnType;
345
+ executeAIAction: (actionType: string, config: AIBlockConfig) => ReturnType;
355
346
  };
356
347
  }
357
348
  }
@@ -377,6 +368,15 @@ declare module "@tiptap/core" {
377
368
  }
378
369
 
379
370
 
371
+ declare module "@tiptap/core" {
372
+ interface Commands<ReturnType> {
373
+ moodTracker: {
374
+ insertMoodTracker: (data: MoodTrackerData) => ReturnType;
375
+ };
376
+ }
377
+ }
378
+
379
+
380
380
  declare namespace F0GraphNodeWrapperInner {
381
381
  var displayName: string;
382
382
  }