@factorialco/f0-react 9.2.0 → 9.3.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.
- package/dist/{ChatDocxThumbnail-DTpOzL9A.js → ChatDocxThumbnail-Brbh1wem.js} +1 -1
- package/dist/{ChatPdfThumbnail-CAOAs-qh.js → ChatPdfThumbnail-D4DN5xr2.js} +1 -1
- package/dist/{ChatPostComposerDialog-BuAdTgkM.js → ChatPostComposerDialog-l1iabm-7.js} +3 -3
- package/dist/{ChatSheetThumbnail-P76Jt0_u.js → ChatSheetThumbnail-C_C2oIV_.js} +1 -1
- package/dist/{CoachmarkProvider-CQJNVR53.js → CoachmarkProvider-B1YG7W1t.js} +10919 -11003
- package/dist/{DocumentToolbar-BIIQvnf3.js → DocumentToolbar-CmyNC2wp.js} +2 -2
- package/dist/{DocxViewer-DVeatd9-.js → DocxViewer-de6X1Pon.js} +3 -3
- package/dist/{F0AiProcessingOverlay-CHEMsQma.js → F0AiProcessingOverlay-DB5NFWs5.js} +22 -22
- package/dist/{F0CanvasPanel-jtcjSLLr.js → F0CanvasPanel-DKFZlybo.js} +30705 -28790
- package/dist/{F0DocumentViewer-Bg7uiU9c.js → F0DocumentViewer-DTY1Upm6.js} +21 -21
- package/dist/{F0Map-DLJ6sRN_.js → F0Map-Ib5OFPWf.js} +5 -5
- package/dist/{F0VideoPlayer-B8kLFnbf.js → F0VideoPlayer-B7zpyW3g.js} +44 -44
- package/dist/{LocationMap-B-e88fW6.js → LocationMap-C6TZJaOq.js} +1 -1
- package/dist/{SheetViewer-B8BmAg0d.js → SheetViewer-BO_8Vz3d.js} +4 -4
- package/dist/{TextViewer-DDtUtmWj.js → TextViewer-BGDy0VE3.js} +2 -2
- package/dist/ai.d.ts +8 -8
- package/dist/ai.js +2 -2
- package/dist/{axe-mZXA-kzX.js → axe-Cc8MuO-E.js} +1 -1
- package/dist/component-status.d.ts +8 -8
- package/dist/component-status.js +69 -63
- package/dist/{experimental-W3dMO8CE.js → experimental-CJxYO3TS.js} +2383 -2382
- package/dist/experimental.d.ts +109 -22
- package/dist/experimental.js +146 -145
- package/dist/f0.d.ts +19 -19
- package/dist/f0.js +10581 -11477
- package/dist/i18n-provider-defaults.d.ts +8 -8
- package/dist/index-5n9cK7fI.js +4 -0
- package/dist/{index-D0AH60ev.js → index-B4YJYrDq.js} +21 -21
- package/dist/{index-C8h4kG2n.js → index-B_CHe0P4.js} +3 -3
- package/dist/{index-B5dJ814t.js → index-C1hywv0e.js} +1 -1
- package/dist/index-D3eRTe5Y.js +8 -0
- package/dist/{maplibre-gl-BFrhpbuU.js → maplibre-gl-CF3gv2QL.js} +1 -1
- package/dist/{papaparse.min-Bh1MVuzw.js → papaparse.min-l46A1xl2.js} +1 -1
- package/dist/{pdfWorker-BRAGbLi_.js → pdfWorker-Ddggmoi-.js} +3 -4
- package/dist/{renderDocx-CVEzw9MK.js → renderDocx-E222oLTQ.js} +1 -1
- package/dist/{sheetPreview-BiccmyTD.js → sheetPreview-DC9RRwv0.js} +1 -1
- package/dist/styles.css +1 -1
- package/dist/tooltip-VHD1kZdF.js +7433 -0
- package/package.json +1 -2
- package/dist/_commonjsHelpers-ByX85dGu.js +0 -33
- package/dist/index-CW8sa9GP.js +0 -8
- package/dist/index-k8Xsj0d1.js +0 -4
- 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,
|
|
4
|
-
import { e as $e, D as
|
|
5
|
-
import { d as G } from "./tooltip-
|
|
6
|
-
import { F as
|
|
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:
|
|
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-
|
|
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([]),
|
|
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 = (
|
|
372
|
-
f && D instanceof HTMLElement && (D.scrollTop = f.offsetTop -
|
|
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
|
-
[
|
|
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
|
-
),
|
|
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
|
-
() =>
|
|
401
|
-
[T,
|
|
400
|
+
() => z(Xe(T)),
|
|
401
|
+
[T, z]
|
|
402
402
|
), xe = w(
|
|
403
|
-
() =>
|
|
404
|
-
[T,
|
|
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
|
-
|
|
425
|
+
M()
|
|
426
426
|
);
|
|
427
427
|
d && te(d);
|
|
428
428
|
},
|
|
429
|
-
[
|
|
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:
|
|
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
|
-
|
|
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:
|
|
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
|
-
|
|
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-
|
|
4
|
-
import {
|
|
5
|
-
import { d as D, f as ra } from "./tooltip-
|
|
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-
|
|
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-
|
|
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,
|
|
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
|
|
4
|
-
import { d as H, f as de } from "./tooltip-
|
|
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-
|
|
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
|
|
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
|
-
|
|
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
|
|
305
|
-
return Math.max(0, Math.min(1, (v -
|
|
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",
|
|
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:
|
|
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:
|
|
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
|
|
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(
|
|
548
|
+
/* @__PURE__ */ c(Mt, { value: n ? 0 : e, onChange: r })
|
|
549
549
|
] });
|
|
550
550
|
}
|
|
551
|
-
function
|
|
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:
|
|
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 &&
|
|
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:
|
|
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
|
-
|
|
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 ?
|
|
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:
|
|
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",
|
|
866
|
-
return P && (f.addEventListener("addtrack",
|
|
867
|
-
P && (f.removeEventListener("addtrack",
|
|
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
|
|
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 =
|
|
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 =
|
|
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 =
|
|
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 =
|
|
1097
|
+
}, []), v = A(() => {
|
|
1098
1098
|
const i = t.current;
|
|
1099
1099
|
i && (i.muted = !i.muted);
|
|
1100
|
-
}, []), P =
|
|
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
|
-
}, []),
|
|
1106
|
+
}, []), M = A((i) => {
|
|
1107
1107
|
const D = t.current;
|
|
1108
1108
|
D && (D.playbackRate = i);
|
|
1109
|
-
}, []), C =
|
|
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:
|
|
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
|
-
), [
|
|
1182
|
+
), [M, C] = x(
|
|
1183
1183
|
() => Z(P, n)
|
|
1184
1184
|
), i = P.some(
|
|
1185
|
-
(L) => L.locale ===
|
|
1186
|
-
) ?
|
|
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 =
|
|
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 =
|
|
1212
|
+
}, [p.videoRef]), Ne = A(
|
|
1213
1213
|
(L) => {
|
|
1214
1214
|
V(), w(L);
|
|
1215
1215
|
},
|
|
1216
1216
|
[V]
|
|
1217
|
-
), _e =
|
|
1217
|
+
), _e = A(() => {
|
|
1218
1218
|
N && V(), q((L) => !L);
|
|
1219
|
-
}, [N, V]), Fe =
|
|
1219
|
+
}, [N, V]), Fe = A(
|
|
1220
1220
|
(L) => {
|
|
1221
1221
|
C(L), I.showing || I.toggle();
|
|
1222
1222
|
},
|
|
1223
1223
|
[I]
|
|
1224
|
-
), Oe =
|
|
1224
|
+
), Oe = A(() => {
|
|
1225
1225
|
I.showing && I.toggle();
|
|
1226
|
-
}, [I]), Ve =
|
|
1226
|
+
}, [I]), Ve = A(
|
|
1227
1227
|
(L) => {
|
|
1228
1228
|
N && V(), j(L), q(!0);
|
|
1229
1229
|
},
|
|
1230
1230
|
[N, V]
|
|
1231
|
-
), Ue =
|
|
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 =
|
|
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 =
|
|
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-
|
|
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-
|
|
4
|
-
import { d as D } from "./F0DocumentViewer-
|
|
5
|
-
import { f as L, c as R } from "./sheetPreview-
|
|
6
|
-
import { u as z, D as U } from "./DocumentToolbar-
|
|
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-
|
|
4
|
-
import { u as k, D as v } from "./DocumentToolbar-
|
|
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
|
@@ -6889,8 +6889,10 @@ declare module "@tiptap/core" {
|
|
|
6889
6889
|
|
|
6890
6890
|
declare module "@tiptap/core" {
|
|
6891
6891
|
interface Commands<ReturnType> {
|
|
6892
|
-
|
|
6893
|
-
|
|
6892
|
+
videoEmbed: {
|
|
6893
|
+
setVideoEmbed: (options: {
|
|
6894
|
+
src: string;
|
|
6895
|
+
}) => ReturnType;
|
|
6894
6896
|
};
|
|
6895
6897
|
}
|
|
6896
6898
|
}
|
|
@@ -6898,10 +6900,8 @@ declare module "@tiptap/core" {
|
|
|
6898
6900
|
|
|
6899
6901
|
declare module "@tiptap/core" {
|
|
6900
6902
|
interface Commands<ReturnType> {
|
|
6901
|
-
|
|
6902
|
-
|
|
6903
|
-
src: string;
|
|
6904
|
-
}) => ReturnType;
|
|
6903
|
+
transcript: {
|
|
6904
|
+
insertTranscript: (data: TranscriptData) => ReturnType;
|
|
6905
6905
|
};
|
|
6906
6906
|
}
|
|
6907
6907
|
}
|
|
@@ -6909,8 +6909,8 @@ declare module "@tiptap/core" {
|
|
|
6909
6909
|
|
|
6910
6910
|
declare module "@tiptap/core" {
|
|
6911
6911
|
interface Commands<ReturnType> {
|
|
6912
|
-
|
|
6913
|
-
|
|
6912
|
+
moodTracker: {
|
|
6913
|
+
insertMoodTracker: (data: MoodTrackerData) => ReturnType;
|
|
6914
6914
|
};
|
|
6915
6915
|
}
|
|
6916
6916
|
}
|
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-
|
|
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-
|
|
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,
|
|
@@ -350,8 +350,10 @@ declare module "@tiptap/core" {
|
|
|
350
350
|
|
|
351
351
|
declare module "@tiptap/core" {
|
|
352
352
|
interface Commands<ReturnType> {
|
|
353
|
-
|
|
354
|
-
|
|
353
|
+
videoEmbed: {
|
|
354
|
+
setVideoEmbed: (options: {
|
|
355
|
+
src: string;
|
|
356
|
+
}) => ReturnType;
|
|
355
357
|
};
|
|
356
358
|
}
|
|
357
359
|
}
|
|
@@ -359,10 +361,8 @@ declare module "@tiptap/core" {
|
|
|
359
361
|
|
|
360
362
|
declare module "@tiptap/core" {
|
|
361
363
|
interface Commands<ReturnType> {
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
src: string;
|
|
365
|
-
}) => ReturnType;
|
|
364
|
+
transcript: {
|
|
365
|
+
insertTranscript: (data: TranscriptData) => ReturnType;
|
|
366
366
|
};
|
|
367
367
|
}
|
|
368
368
|
}
|
|
@@ -370,8 +370,8 @@ declare module "@tiptap/core" {
|
|
|
370
370
|
|
|
371
371
|
declare module "@tiptap/core" {
|
|
372
372
|
interface Commands<ReturnType> {
|
|
373
|
-
|
|
374
|
-
|
|
373
|
+
moodTracker: {
|
|
374
|
+
insertMoodTracker: (data: MoodTrackerData) => ReturnType;
|
|
375
375
|
};
|
|
376
376
|
}
|
|
377
377
|
}
|