@hanzo/dev 4.2.0 → 4.2.2
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/{BinaryViewer-CmFUK4zZ.js → BinaryViewer-CeQaKnXQ.js} +19 -19
- package/dist/{ChatMarkdown-nvEI7iCv.js → ChatMarkdown-DqKVAYd6.js} +2460 -2460
- package/dist/{DevicePanel-v5e3sEIf.js → DevicePanel-D-pksK3r.js} +532 -532
- package/dist/{DeviceStreamView-CCIfmbxH.js → DeviceStreamView-DsCoOzDV.js} +377 -377
- package/dist/{DiffCommentAnnotation-BPTN_2a6.js → DiffCommentAnnotation-CCtanhmq.js} +227 -227
- package/dist/{DiffFileTree-B_br90vY.js → DiffFileTree-BhEDIwzm.js} +13 -13
- package/dist/{DiffPanel-V5R5TPuK.js → DiffPanel-BPZ6Ru_G.js} +328 -328
- package/dist/{DiffWorkerPoolProvider-BwFR-Fc9.js → DiffWorkerPoolProvider-8Qh-Y5iP.js} +3 -3
- package/dist/{DocumentPages-VSn83vty.js → DocumentPages-MN1xyIRb.js} +3 -3
- package/dist/{ExpandedImageDialog-CAorLacL.js → ExpandedImageDialog-tCY2TFXU.js} +404 -404
- package/dist/{FileExplorerPane-CeHulcPz.js → FileExplorerPane-BgJw-BA4.js} +4 -4
- package/dist/{FilePreviewPanel-BVNLvWOc.js → FilePreviewPanel-DHteid8j.js} +1089 -1089
- package/dist/{FontFilePreview-Dj8Blcay.js → FontFilePreview-COxgoDy5.js} +2 -2
- package/dist/{FontViewer-CLDdwhSr.js → FontViewer-jxARaj1f.js} +5 -5
- package/dist/{HanzoConnectAccountPages-BEzYfu2l.js → HanzoConnectAccountPages-BM2mB27b.js} +357 -357
- package/dist/{HanzoConnectSidebarSignIn-BhD6-Up5.js → HanzoConnectSidebarSignIn-BSOkKAjH.js} +3 -3
- package/dist/{Icons-CvSmt8vD.js → Icons-CdegMw5l.js} +1 -1
- package/dist/{LargeTextViewer-DfFnYGCw.js → LargeTextViewer-BX5-yWcy.js} +8 -8
- package/dist/{MermaidDiagram-CTolIzQD.js → MermaidDiagram-sVLnox7j.js} +8 -8
- package/dist/{MermaidFilePreview-CP2zP4FU.js → MermaidFilePreview-BqB2exZU.js} +2 -2
- package/dist/{MermaidViewer-BDfYkS9E.js → MermaidViewer-B0WYx1jk.js} +3 -3
- package/dist/{NotebookPreview-Cybs5uM0.js → NotebookPreview-B_7pSd7A.js} +10 -10
- package/dist/{OfficeFilePreview-7JsmSoKU.js → OfficeFilePreview-BJsNoaju.js} +2 -2
- package/dist/{OfficeViewer-CJoojlJK.js → OfficeViewer-TgdFnOtV.js} +10 -10
- package/dist/{OpenInPicker-BIMWUxBP.js → OpenInPicker-B3gPcFs6.js} +287 -287
- package/dist/{OpenXmlOfficeViewer-C24Kj8DM.js → OpenXmlOfficeViewer-C18a0NFP.js} +4 -4
- package/dist/{PdfViewer-Cf1iD759.js → PdfViewer-BanXvPmz.js} +16 -16
- package/dist/{PreviewFaviconIcon-zFOuzIxe.js → PreviewFaviconIcon-Dzjf4QXZ.js} +892 -892
- package/dist/{PreviewImage-oY5YnuTr.js → PreviewImage-Ct8eWJb8.js} +3 -3
- package/dist/{PreviewImageContent-n6eLzY99.js → PreviewImageContent-Dd8dzt9u.js} +3 -3
- package/dist/{PreviewPanel-Bo4Lt02m.js → PreviewPanel-BnsoHObW.js} +489 -489
- package/dist/{PreviewPanelShell-DhXLeN5j.js → PreviewPanelShell-Dezxjg0T.js} +71 -71
- package/dist/{ProjectIconPickerDialog-D0kFzt8f.js → ProjectIconPickerDialog-LomrzROv.js} +29 -29
- package/dist/{ProjectMonogram-D35xrrXQ.js → ProjectMonogram-D21--FQY.js} +1 -1
- package/dist/{ProviderAuthTerminal-DfsXnu7A.js → ProviderAuthTerminal-CYalqlUB.js} +3 -3
- package/dist/{PullRequestCodeTab-Dv_0kVad.js → PullRequestCodeTab-Jt9jdq55.js} +476 -476
- package/dist/{PullRequestReviewAnnotation-LeuwO-iH.js → PullRequestReviewAnnotation-xg3n0doV.js} +334 -334
- package/dist/{ReadOnlySourcePreview-D__IA5g1.js → ReadOnlySourcePreview-BYlRPbKI.js} +5 -5
- package/dist/{RelativeTime-BMRprQS8.js → RelativeTime-DQhoNsWZ.js} +2 -2
- package/dist/{RightPanelResizeHandle-BLbSz-gk.js → RightPanelResizeHandle-PumvYb9P.js} +2 -2
- package/dist/{ThemeEditorPanel-CUDdsRsE.js → ThemeEditorPanel-BmXXpaCI.js} +196 -196
- package/dist/{ThreadTerminalDrawer-BF3Ix0q_.js → ThreadTerminalDrawer-Cf4l2axO.js} +461 -461
- package/dist/{VirtualTablePreview-dajviAfu.js → VirtualTablePreview-mA6DOFwb.js} +1 -1
- package/dist/{anchoredCopyToast-DnUtg1n_.js → anchoredCopyToast-BVa_dlBU.js} +2 -2
- package/dist/{assetUrls-DkY7vXfM.js → assetUrls-D8lRk7Xd.js} +45 -45
- package/dist/{browserLinkTarget-CA46wnQC.js → browserLinkTarget-CCzAioAu.js} +18 -18
- package/dist/builder/api/models.d.ts +2 -0
- package/dist/builder/api/models.js +6 -1
- package/dist/builder/api/sandbox.d.ts +2 -0
- package/dist/builder/api/sandbox.js +3 -1
- package/dist/builder/desk.d.ts +6 -0
- package/dist/builder/desk.js +79 -14
- package/dist/builder/mind.d.ts +5 -5
- package/dist/builder/mind.js +35 -14
- package/dist/builder/pane.d.ts +1 -1
- package/dist/builder/pane.js +1 -1
- package/dist/builder/panel.js +5 -5
- package/dist/builder/preview-fallback.d.ts +47 -0
- package/dist/builder/preview-fallback.js +341 -0
- package/dist/{changedFileKind-D6QYvIez.js → changedFileKind-OIp-fuQd.js} +5 -5
- package/dist/{collapsible-DFT41MdC.js → collapsible-CDT6JKbk.js} +1 -1
- package/dist/{color-picker-CshqBbpY.js → color-picker-kSVcH92L.js} +16 -16
- package/dist/core.d.ts +38 -0
- package/dist/core.js +1 -1
- package/dist/{decodeImagePreview-DnfFEjhw.js → decodeImagePreview-DbkSuh7q.js} +2 -2
- package/dist/{delimitedPreview-BiEpdYOj.js → delimitedPreview-DbbXcqOT.js} +1 -1
- package/dist/{dialog-DhQtWGRa.js → dialog-EmpqFZiK.js} +40 -40
- package/dist/{embed-c030vUqM.js → embed-CzXFS50X.js} +39626 -38922
- package/dist/{empty-Bm5EzcG8.js → empty-ChM6gdzn.js} +1 -1
- package/dist/{errors-DrFQSJW3.js → errors-D8_Zn8KN.js} +2 -2
- package/dist/{fileContextMenu-BBo91omq.js → fileContextMenu-hdALQktP.js} +54 -54
- package/dist/{fileExplorerLabel-AikEChiS.js → fileExplorerLabel-DMdkA7jY.js} +507 -507
- package/dist/{fileSurfaceChrome-Cqkvn8RQ.js → fileSurfaceChrome-BDyKklTq.js} +26 -26
- package/dist/{hanzoWebAnalytics-CCxpTzcI.js → hanzoWebAnalytics-B1eETW-7.js} +1 -1
- package/dist/index.css +1 -1
- package/dist/{input-group-DEJEuwc9.js → input-group-BZ_QN-y7.js} +1 -1
- package/dist/{keybindings-C5tK_GAk.js → keybindings-D0pBlT1k.js} +7812 -7806
- package/dist/keymap.js +1 -1
- package/dist/{lucideIconByName-DUaXKH0V.js → lucideIconByName-CXY44V8P.js} +6835 -6848
- package/dist/{mediaReference-Bt_mh-ag.js → mediaReference-3wc4ZfY8.js} +95 -95
- package/dist/mediaSource-jW5c7b4r.js +70 -0
- package/dist/{modelPickerVisibility-Jue3CLfc.js → modelPickerVisibility-DBTc5r1G.js} +1 -1
- package/dist/{network-BbwqRm8c.js → network-wuXD7-is.js} +1 -1
- package/dist/{popover-anNQdce7.js → popover-BAyP2Tdr.js} +1 -1
- package/dist/{presentation-D9mVPBHm.js → presentation-68y8EAuH.js} +299 -299
- package/dist/{previewFailureMessages-BKpsSGX5.js → previewFailureMessages-CFguipaK.js} +3 -3
- package/dist/query-BPk2W3QN.js +63 -0
- package/dist/{readBinaryPreview-BAQ4fFjm.js → readBinaryPreview-DgDAUfzQ.js} +2 -2
- package/dist/{refresh-icon-BYx64to1.js → refresh-icon-Vo5ImiQL.js} +1 -1
- package/dist/{scroll-area-ChvX8uOh.js → scroll-area-CEoyjC7h.js} +1 -1
- package/dist/{select-DumYjny_.js → select-DLFnkZsI.js} +2 -2
- package/dist/{session-_kmiSv2A.js → session-Decc4Fo5.js} +1063 -1063
- package/dist/{skeleton-CJqwfMSF.js → skeleton-BOKpAZv6.js} +1 -1
- package/dist/{switch-COwevwaq.js → switch-DjpPjtQN.js} +2 -2
- package/dist/{themePalette-Dl_7omVL.js → themePalette-C-GtwwqV.js} +977 -977
- package/dist/{threadSearch-BHyWwcV3.js → threadSearch-sHEENLiT.js} +162 -162
- package/dist/{toggle-CEO6qTxB.js → toggle-B4F0EEtI.js} +1 -1
- package/dist/{toggle-group-BHovdMDl.js → toggle-group-l8hRPswr.js} +2 -2
- package/dist/{use-atom-command-ByoYq_K6.js → use-atom-command-XemtT1Gv.js} +1 -1
- package/dist/{useAriaLabelledBy-DPSISlnL.js → useAriaLabelledBy-CibvSz-b.js} +1 -1
- package/dist/{useFileMetadata-e7zsixVX.js → useFileMetadata-ChvPTfBY.js} +33 -33
- package/dist/{useFloatingRootContext-CJ9stHca.js → useFloatingRootContext-ppoGvqar.js} +1 -1
- package/dist/{useLiveRefresh-BkKJKXhH.js → useLiveRefresh-aHkPuz6N.js} +172 -172
- package/dist/{useNextRenderData-CyUmSAgz.js → useNextRenderData-Jm142a1q.js} +1 -1
- package/dist/{useSettings-DYG9Dmro.js → useSettings-Due4XCTB.js} +139 -139
- package/dist/{useTextFieldSpeech-COa9XcRx.js → useTextFieldSpeech-XN9r-f-r.js} +1404 -1404
- package/dist/useTheme-B9hvAuzL.js +411 -0
- package/dist/{utils-515nQ17G.js → utils-DtKQl-D3.js} +6184 -6172
- package/dist/{wizard-i86ViMRc.js → wizard-DjD4UNew.js} +3 -3
- package/dist/{workspaceFocus-BV1_9KiH.js → workspaceFocus-MR1plm6A.js} +144 -144
- package/dist/{zap-e0OsRjBR.js → zap-iwsUKtvA.js} +30 -17
- package/package.json +17 -17
- package/dist/mediaSource-zI7JWid4.js +0 -70
- package/dist/query-BxrrBAp6.js +0 -63
- package/dist/useTheme-D2ZM1gvV.js +0 -376
package/dist/{HanzoConnectSidebarSignIn-BhD6-Up5.js → HanzoConnectSidebarSignIn-BSOkKAjH.js}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { q as e } from "./session-
|
|
2
|
-
import {
|
|
1
|
+
import { q as e } from "./session-Decc4Fo5.js";
|
|
2
|
+
import { C_ as t, b_ as n } from "./utils-DtKQl-D3.js";
|
|
3
3
|
import { t as r } from "./log-in-DV1GOnEm.js";
|
|
4
|
-
import { F as i, N as a, S as o, b as s, f as c, n as l, x as u } from "./HanzoConnectAccountPages-
|
|
4
|
+
import { F as i, N as a, S as o, b as s, f as c, n as l, x as u } from "./HanzoConnectAccountPages-BM2mB27b.js";
|
|
5
5
|
import { c as d } from "react/compiler-runtime";
|
|
6
6
|
import { jsx as f, jsxs as p } from "react/jsx-runtime";
|
|
7
7
|
// src/components/account/HanzoConnectSidebarSignIn.tsx
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { c as e, n as t } from "./messages-yqmY7G5x.js";
|
|
2
|
-
import {
|
|
3
|
-
import { p as o } from "./useSettings-
|
|
4
|
-
import { n as s } from "./delimitedPreview-
|
|
5
|
-
import { a as c, o as ee, s as l } from "./fileSurfaceChrome-
|
|
6
|
-
import { n as u } from "./previewFailureMessages-
|
|
7
|
-
import { t as d } from "./VirtualTablePreview-
|
|
2
|
+
import { C_ as n, Qc as r, S_ as i, b_ as a } from "./utils-DtKQl-D3.js";
|
|
3
|
+
import { p as o } from "./useSettings-Due4XCTB.js";
|
|
4
|
+
import { n as s } from "./delimitedPreview-DbbXcqOT.js";
|
|
5
|
+
import { a as c, o as ee, s as l } from "./fileSurfaceChrome-BDyKklTq.js";
|
|
6
|
+
import { n as u } from "./previewFailureMessages-CFguipaK.js";
|
|
7
|
+
import { t as d } from "./VirtualTablePreview-mA6DOFwb.js";
|
|
8
8
|
import { useEffect as te, useImperativeHandle as f, useRef as p, useState as m } from "react";
|
|
9
9
|
import { c as h } from "react/compiler-runtime";
|
|
10
10
|
import { jsx as g, jsxs as _ } from "react/jsx-runtime";
|
|
@@ -20,7 +20,7 @@ function ne(e, t, n) {
|
|
|
20
20
|
return n || r.pop(), r.slice(0, 64);
|
|
21
21
|
}
|
|
22
22
|
function y(s) {
|
|
23
|
-
let y = h(53), w =
|
|
23
|
+
let y = h(53), w = n(), T = i(), [E, D] = m(null), O;
|
|
24
24
|
y[0] === Symbol.for("react.memo_cache_sentinel") ? (O = /* @__PURE__ */ new Map(), y[0] = O) : O = y[0];
|
|
25
25
|
let [k, A] = m(O), [j, M] = m(null), N = p(null), P = p(null), F;
|
|
26
26
|
y[1] === Symbol.for("react.memo_cache_sentinel") ? (F = /* @__PURE__ */ new Set(), y[1] = F) : F = y[1];
|
|
@@ -116,7 +116,7 @@ function y(s) {
|
|
|
116
116
|
formatted: E.count.toLocaleString()
|
|
117
117
|
}), y[19] = K, y[20] = w, y[21] = E.count, y[22] = s.delimiter, y[23] = G, y[24] = q) : q = y[24];
|
|
118
118
|
let J;
|
|
119
|
-
y[25] !== w || y[26] !== T || y[27] !== E.complete || y[28] !== E.sizeBytes ? (J = E.complete && E.sizeBytes !== void 0 ? ` · ${E.sizeBytes === 0 ? w("0 bytes") :
|
|
119
|
+
y[25] !== w || y[26] !== T || y[27] !== E.complete || y[28] !== E.sizeBytes ? (J = E.complete && E.sizeBytes !== void 0 ? ` · ${E.sizeBytes === 0 ? w("0 bytes") : r(E.sizeBytes, T)}` : ` · ${w("Indexing…")}`, y[25] = w, y[26] = T, y[27] = E.complete, y[28] = E.sizeBytes, y[29] = J) : J = y[29];
|
|
120
120
|
let Y;
|
|
121
121
|
y[30] !== q || y[31] !== J ? (Y = /* @__PURE__ */ _("div", {
|
|
122
122
|
className: "flex min-h-10 shrink-0 flex-wrap items-center gap-x-1 border-b border-border/60 px-3 py-2 text-xs text-muted-foreground tabular-nums",
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { C_ as e, Ld as t, b_ as n, ci as r, x_ as i } from "./utils-DtKQl-D3.js";
|
|
2
2
|
import { t as a } from "./micromark-util-decode-string-C-5AXkOV.js";
|
|
3
3
|
import { t as o } from "./purify.es-VTOE_vnF.js";
|
|
4
4
|
import { use as s, useState as c } from "react";
|
|
5
5
|
import { c as l } from "react/compiler-runtime";
|
|
6
6
|
import { jsx as u, jsxs as d } from "react/jsx-runtime";
|
|
7
7
|
// ../../packages/shared/src/markdownWindowsPaths.ts
|
|
8
|
-
function f(
|
|
9
|
-
let n = this.resume(), r = this.sliceSerialize(
|
|
10
|
-
i && (i.url =
|
|
8
|
+
function f(e) {
|
|
9
|
+
let n = this.resume(), r = this.sliceSerialize(e), i = this.stack.at(-1);
|
|
10
|
+
i && (i.url = t(r) ? a(r.replaceAll("\\", "\\\\")) : n);
|
|
11
11
|
}
|
|
12
12
|
var p = /(?:^|\W)[A-Za-z]:(?:[\\/]\S*)?$/, m = /\s/g, h = /* @__PURE__ */ new WeakMap();
|
|
13
13
|
function g() {
|
|
@@ -499,8 +499,8 @@ function Ee(e) {
|
|
|
499
499
|
}
|
|
500
500
|
return t.style.maxWidth = "none", t.style.backgroundColor = getComputedStyle(document.body).backgroundColor, Q && URL.revokeObjectURL(Q), Q = URL.createObjectURL(new Blob([new XMLSerializer().serializeToString(t)], { type: "image/svg+xml" })), Q;
|
|
501
501
|
}
|
|
502
|
-
function De(
|
|
503
|
-
let n = l(36), { source: r, onExpand: i } =
|
|
502
|
+
function De(t) {
|
|
503
|
+
let n = l(36), { source: r, onExpand: i } = t, a = e(), [, o] = c(0), [f, p] = c(null), m = r.trim(), h;
|
|
504
504
|
n[0] === Symbol.for("react.memo_cache_sentinel") ? (h = ve(), n[0] = h) : h = n[0];
|
|
505
505
|
let g = s(h), _ = g.status === "loaded" ? be(g.pele, m) : null, v = g.status === "loaded" && _ ? s(ye(g.pele, _)) : g, y = m.includes("$$") ? s(xe()) : null, b;
|
|
506
506
|
n[1] !== a || n[2] !== v.pele || n[3] !== v.status || n[4] !== y || n[5] !== m ? (b = (e) => {
|
|
@@ -577,7 +577,7 @@ function $(e) {
|
|
|
577
577
|
let t = l(12), { message: a, source: o, onRetry: s } = e, c;
|
|
578
578
|
t[0] === a ? c = t[1] : (c = /* @__PURE__ */ u("p", {
|
|
579
579
|
className: "m-0 text-xs text-destructive",
|
|
580
|
-
children: /* @__PURE__ */ d(
|
|
580
|
+
children: /* @__PURE__ */ d(n, { children: ["Unable to render diagram: ", /* @__PURE__ */ u(i, { children: a })] })
|
|
581
581
|
}), t[0] = a, t[1] = c);
|
|
582
582
|
let f;
|
|
583
583
|
t[2] === s ? f = t[3] : (f = s ? /* @__PURE__ */ u(r, {
|
|
@@ -585,7 +585,7 @@ function $(e) {
|
|
|
585
585
|
variant: "ghost",
|
|
586
586
|
size: "xs",
|
|
587
587
|
onClick: s,
|
|
588
|
-
children: /* @__PURE__ */ u(
|
|
588
|
+
children: /* @__PURE__ */ u(n, { children: "Retry" })
|
|
589
589
|
}) : null, t[2] = s, t[3] = f);
|
|
590
590
|
let p;
|
|
591
591
|
t[4] !== c || t[5] !== f ? (p = /* @__PURE__ */ d("div", {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { o as e } from "./fileSurfaceChrome-
|
|
1
|
+
import { o as e } from "./fileSurfaceChrome-BDyKklTq.js";
|
|
2
2
|
import { Suspense as t, lazy as n } from "react";
|
|
3
3
|
import { c as r } from "react/compiler-runtime";
|
|
4
4
|
import { jsx as i } from "react/jsx-runtime";
|
|
5
5
|
// src/components/files/MermaidFilePreview.tsx
|
|
6
|
-
var a = n(() => import("./MermaidViewer-
|
|
6
|
+
var a = n(() => import("./MermaidViewer-B0WYx1jk.js"));
|
|
7
7
|
function o(n) {
|
|
8
8
|
let o = r(3), s;
|
|
9
9
|
o[0] === Symbol.for("react.memo_cache_sentinel") ? (s = /* @__PURE__ */ i(e, {}), o[0] = s) : s = o[0];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as n } from "./ExpandedImageDialog-
|
|
3
|
-
import { t as r } from "./MermaidDiagram-
|
|
1
|
+
import { C_ as e, b_ as t } from "./utils-DtKQl-D3.js";
|
|
2
|
+
import { t as n } from "./ExpandedImageDialog-tCY2TFXU.js";
|
|
3
|
+
import { t as r } from "./MermaidDiagram-sVLnox7j.js";
|
|
4
4
|
import { useState as i } from "react";
|
|
5
5
|
import { c as a } from "react/compiler-runtime";
|
|
6
6
|
import { jsx as o, jsxs as s } from "react/jsx-runtime";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as a } from "./ChatMarkdown-
|
|
3
|
-
import { s as o } from "./fileSurfaceChrome-
|
|
4
|
-
import { t as s } from "./ReadOnlySourcePreview-
|
|
5
|
-
import c from "./DocumentPages-
|
|
1
|
+
import { C_ as e, Qc as t, S_ as n, b_ as r, ci as i } from "./utils-DtKQl-D3.js";
|
|
2
|
+
import { t as a } from "./ChatMarkdown-DqKVAYd6.js";
|
|
3
|
+
import { s as o } from "./fileSurfaceChrome-BDyKklTq.js";
|
|
4
|
+
import { t as s } from "./ReadOnlySourcePreview-BYlRPbKI.js";
|
|
5
|
+
import c from "./DocumentPages-MN1xyIRb.js";
|
|
6
6
|
import { useEffect as l, useRef as u, useState as d } from "react";
|
|
7
7
|
import { c as f } from "react/compiler-runtime";
|
|
8
8
|
import { Fragment as p, jsx as m, jsxs as h } from "react/jsx-runtime";
|
|
@@ -47,7 +47,7 @@ function v(e) {
|
|
|
47
47
|
}), t[7] = c, t[8] = l, t[9] = u) : u = t[9], u;
|
|
48
48
|
}
|
|
49
49
|
function y(s) {
|
|
50
|
-
let g = f(41), y =
|
|
50
|
+
let g = f(41), y = e(), C = n(), [T, E] = d(20), D = u(null), [O, k] = d(w), A;
|
|
51
51
|
g[0] !== s.notebook.cells || g[1] !== T ? (A = s.notebook.cells.slice(0, T).reduce(S, 0), g[0] = s.notebook.cells, g[1] = T, g[2] = A) : A = g[2];
|
|
52
52
|
let j = A, M, N;
|
|
53
53
|
g[3] === j ? (M = g[4], N = g[5]) : (M = () => {
|
|
@@ -73,7 +73,7 @@ function y(s) {
|
|
|
73
73
|
formatted: s.notebook.cells.length.toLocaleString()
|
|
74
74
|
}), g[6] = y, g[7] = s.notebook.cells.length, g[8] = P) : P = g[8];
|
|
75
75
|
let F;
|
|
76
|
-
g[9] !== y || g[10] !== C || g[11] !== s.sizeBytes ? (F = s.sizeBytes === void 0 ? "" : ` · ${s.sizeBytes === 0 ? y("0 bytes") :
|
|
76
|
+
g[9] !== y || g[10] !== C || g[11] !== s.sizeBytes ? (F = s.sizeBytes === void 0 ? "" : ` · ${s.sizeBytes === 0 ? y("0 bytes") : t(s.sizeBytes, C)}`, g[9] = y, g[10] = C, g[11] = s.sizeBytes, g[12] = F) : F = g[12];
|
|
77
77
|
let I;
|
|
78
78
|
g[13] !== s.notebook.language || g[14] !== P || g[15] !== F ? (I = /* @__PURE__ */ h("div", {
|
|
79
79
|
className: "border-b border-border/60 px-3 py-2 text-xs text-muted-foreground tabular-nums",
|
|
@@ -87,7 +87,7 @@ function y(s) {
|
|
|
87
87
|
]
|
|
88
88
|
}), g[13] = s.notebook.language, g[14] = P, g[15] = F, g[16] = I) : I = g[16];
|
|
89
89
|
let L;
|
|
90
|
-
g[17] === Symbol.for("react.memo_cache_sentinel") ? (L = /* @__PURE__ */ m(o, { children: /* @__PURE__ */ m(
|
|
90
|
+
g[17] === Symbol.for("react.memo_cache_sentinel") ? (L = /* @__PURE__ */ m(o, { children: /* @__PURE__ */ m(r, { children: "Saved outputs only. Code is never executed." }) }), g[17] = L) : L = g[17];
|
|
91
91
|
let R;
|
|
92
92
|
if (g[18] !== y || g[19] !== O || g[20] !== s.notebook.cells || g[21] !== s.notebook.language || g[22] !== T) {
|
|
93
93
|
let e;
|
|
@@ -142,10 +142,10 @@ function y(s) {
|
|
|
142
142
|
let z;
|
|
143
143
|
g[28] === s.notebook.cells.length ? z = g[29] : (z = s.notebook.cells.length === 0 ? /* @__PURE__ */ m("p", {
|
|
144
144
|
className: "text-sm text-muted-foreground",
|
|
145
|
-
children: /* @__PURE__ */ m(
|
|
145
|
+
children: /* @__PURE__ */ m(r, { children: "This notebook is empty." })
|
|
146
146
|
}) : null, g[28] = s.notebook.cells.length, g[29] = z);
|
|
147
147
|
let B;
|
|
148
|
-
g[30] !== y || g[31] !== s.notebook.cells.length || g[32] !== T ? (B = T < s.notebook.cells.length ? /* @__PURE__ */ m(
|
|
148
|
+
g[30] !== y || g[31] !== s.notebook.cells.length || g[32] !== T ? (B = T < s.notebook.cells.length ? /* @__PURE__ */ m(i, {
|
|
149
149
|
variant: "outline",
|
|
150
150
|
size: "sm",
|
|
151
151
|
onClick: () => E(b),
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { o as e } from "./fileSurfaceChrome-
|
|
1
|
+
import { o as e } from "./fileSurfaceChrome-BDyKklTq.js";
|
|
2
2
|
import { Suspense as t, lazy as n } from "react";
|
|
3
3
|
import { c as r } from "react/compiler-runtime";
|
|
4
4
|
import { jsx as i } from "react/jsx-runtime";
|
|
5
5
|
// src/components/files/OfficeFilePreview.tsx
|
|
6
|
-
var a = n(() => import("./OfficeViewer-
|
|
6
|
+
var a = n(() => import("./OfficeViewer-TgdFnOtV.js").then((e) => e.t));
|
|
7
7
|
function o(n) {
|
|
8
8
|
let o = r(8), s;
|
|
9
9
|
o[0] === Symbol.for("react.memo_cache_sentinel") ? (s = /* @__PURE__ */ i(e, {}), o[0] = s) : s = o[0];
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { n as e } from "./rolldown-runtime-CwxnZyOB.js";
|
|
2
2
|
import { c as t, n } from "./messages-yqmY7G5x.js";
|
|
3
|
-
import {
|
|
4
|
-
import { u as ee } from "./network-
|
|
3
|
+
import { C_ as r, Qc as i, S_ as a, b_ as o } from "./utils-DtKQl-D3.js";
|
|
4
|
+
import { u as ee } from "./network-wuXD7-is.js";
|
|
5
5
|
import { i as te } from "./search-3oqTSaO6.js";
|
|
6
6
|
import { t as ne } from "./chevron-left-CVxU9FkT.js";
|
|
7
|
-
import { a as re, c as ie, o as ae, s as oe, t as se } from "./select-
|
|
8
|
-
import "./errors-
|
|
9
|
-
import { i as ce, o as s, s as le } from "./fileSurfaceChrome-
|
|
10
|
-
import { n as ue } from "./previewFailureMessages-
|
|
11
|
-
import { t as de } from "./VirtualTablePreview-
|
|
7
|
+
import { a as re, c as ie, o as ae, s as oe, t as se } from "./select-DLFnkZsI.js";
|
|
8
|
+
import "./errors-D8_Zn8KN.js";
|
|
9
|
+
import { i as ce, o as s, s as le } from "./fileSurfaceChrome-BDyKklTq.js";
|
|
10
|
+
import { n as ue } from "./previewFailureMessages-CFguipaK.js";
|
|
11
|
+
import { t as de } from "./VirtualTablePreview-mA6DOFwb.js";
|
|
12
12
|
import { Suspense as fe, lazy as c, useEffect as pe, useRef as l, useState as u } from "react";
|
|
13
13
|
import { c as me } from "react/compiler-runtime";
|
|
14
14
|
import { Fragment as he, jsx as d, jsxs as f } from "react/jsx-runtime";
|
|
15
15
|
// src/components/files/officePreviewProtocol.ts
|
|
16
|
-
var p = 52428800, m = /* @__PURE__ */ e({ default: () => g }), ge = c(() => import("./DocumentPages-
|
|
16
|
+
var p = 52428800, m = /* @__PURE__ */ e({ default: () => g }), ge = c(() => import("./DocumentPages-MN1xyIRb.js")), _e = c(() => import("./NotebookPreview-B_7pSd7A.js")), h = c(() => import("./OpenXmlOfficeViewer-C18a0NFP.js"));
|
|
17
17
|
async function ve(e, r) {
|
|
18
18
|
let i = await fetch(e, { signal: r });
|
|
19
19
|
if (!i.ok) throw Error(n(t("The file could not be loaded. Close it and try again.")));
|
|
@@ -51,7 +51,7 @@ function g(e) {
|
|
|
51
51
|
return t[3] === e ? n = t[4] : (n = /* @__PURE__ */ d(_, { ...e }), t[3] = e, t[4] = n), n;
|
|
52
52
|
}
|
|
53
53
|
function _(e) {
|
|
54
|
-
let c = me(95), p =
|
|
54
|
+
let c = me(95), p = r(), m = a(), [h, g] = u(null), _;
|
|
55
55
|
c[0] === Symbol.for("react.memo_cache_sentinel") ? (_ = /* @__PURE__ */ new Map(), c[0] = _) : _ = c[0];
|
|
56
56
|
let [ye, be] = u(_), v;
|
|
57
57
|
c[1] === Symbol.for("react.memo_cache_sentinel") ? (v = /* @__PURE__ */ new Set(), c[1] = v) : v = c[1];
|
|
@@ -170,7 +170,7 @@ function _(e) {
|
|
|
170
170
|
chapter: K
|
|
171
171
|
}, c[50] = U, c[51] = W, c[52] = G, c[53] = K, c[54] = q) : q = c[54];
|
|
172
172
|
let je = q[j], J;
|
|
173
|
-
c[55] !== C || c[56] !== p || c[57] !== m ? (J = C === void 0 ? "" : ` · ${C === 0 ? p("0 bytes") :
|
|
173
|
+
c[55] !== C || c[56] !== p || c[57] !== m ? (J = C === void 0 ? "" : ` · ${C === 0 ? p("0 bytes") : i(C, m)}`, c[55] = C, c[56] = p, c[57] = m, c[58] = J) : J = c[58];
|
|
174
174
|
let Y = J, X;
|
|
175
175
|
c[59] !== S || c[60] !== A || c[61] !== p || c[62] !== j || c[63] !== je || c[64] !== w || c[65] !== I || c[66] !== y || c[67] !== Ae || c[68] !== k || c[69] !== P || c[70] !== x ? (X = S > 0 ? /* @__PURE__ */ f("div", {
|
|
176
176
|
className: "flex h-10 shrink-0 items-center gap-2 border-b border-border/60 px-3 text-xs",
|