@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
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { _h as c, dp as l, sm as u } from "./keybindings-
|
|
3
|
-
import { l as d, t as f } from "./workspaceFocus-
|
|
1
|
+
import { C_ as e, Fp as t, Vg as n, Wp as r, jg as i, lt as a, t as o, zf as s } from "./utils-DtKQl-D3.js";
|
|
2
|
+
import { _h as c, dp as l, sm as u } from "./keybindings-D0pBlT1k.js";
|
|
3
|
+
import { l as d, t as f } from "./workspaceFocus-MR1plm6A.js";
|
|
4
4
|
import { t as p } from "./observeResize-DRQ9DVLE.js";
|
|
5
|
-
import { n as m, r as h, t as g } from "./RightPanelResizeHandle-
|
|
5
|
+
import { n as m, r as h, t as g } from "./RightPanelResizeHandle-PumvYb9P.js";
|
|
6
6
|
import { useLayoutEffect as _, useRef as v, useState as ee } from "react";
|
|
7
7
|
import { c as y } from "react/compiler-runtime";
|
|
8
8
|
import { jsx as b, jsxs as te } from "react/jsx-runtime";
|
|
@@ -11,10 +11,10 @@ var x = (e, t) => {
|
|
|
11
11
|
let n = Object.entries(t.query);
|
|
12
12
|
return n.length === 0 ? e : `${e}${e.includes("?") ? "&" : "?"}${new URLSearchParams(n).toString()}`;
|
|
13
13
|
}, S = 8e3, C = u("clientRuntime.state.mintMediaTicket")(function* (e) {
|
|
14
|
-
let
|
|
15
|
-
return yield*
|
|
14
|
+
let n = yield* c(r), i = yield* c(t);
|
|
15
|
+
return yield* s({
|
|
16
16
|
prepared: e,
|
|
17
|
-
signer:
|
|
17
|
+
signer: n,
|
|
18
18
|
remoteAuthorization: i,
|
|
19
19
|
group: "auth",
|
|
20
20
|
method: "POST",
|
|
@@ -26,16 +26,16 @@ var x = (e, t) => {
|
|
|
26
26
|
})
|
|
27
27
|
});
|
|
28
28
|
}), w = u("clientRuntime.state.resolveDeviceHubAccess")(function* (e) {
|
|
29
|
-
let
|
|
29
|
+
let t = n(e.prepared.httpBaseUrl, e.hubBasePath), r = t.replace(/^http/, "ws");
|
|
30
30
|
if (e.prepared.httpAuthorization === null) return {
|
|
31
|
-
httpBase:
|
|
31
|
+
httpBase: t,
|
|
32
32
|
wsBase: r,
|
|
33
33
|
query: {},
|
|
34
34
|
credentials: !0
|
|
35
35
|
};
|
|
36
36
|
let i = yield* C(e.prepared);
|
|
37
37
|
return {
|
|
38
|
-
httpBase:
|
|
38
|
+
httpBase: t,
|
|
39
39
|
wsBase: r,
|
|
40
40
|
query: { wsTicket: l(i.ticket) },
|
|
41
41
|
credentials: !1
|
|
@@ -48,58 +48,58 @@ function T(e) {
|
|
|
48
48
|
var E = (e) => ({
|
|
49
49
|
kind: "browser",
|
|
50
50
|
tabId: e
|
|
51
|
-
}), D =
|
|
51
|
+
}), D = a()((e) => ({
|
|
52
52
|
byThreadKey: {},
|
|
53
|
-
open: (
|
|
54
|
-
let
|
|
55
|
-
return a && T(a.source) === T(
|
|
56
|
-
...
|
|
57
|
-
[
|
|
58
|
-
source:
|
|
53
|
+
open: (t, n) => e((e) => {
|
|
54
|
+
let r = i(t), a = e.byThreadKey[r];
|
|
55
|
+
return a && T(a.source) === T(n) ? e : { byThreadKey: {
|
|
56
|
+
...e.byThreadKey,
|
|
57
|
+
[r]: {
|
|
58
|
+
source: n,
|
|
59
59
|
position: a?.position ?? null,
|
|
60
60
|
width: a?.width ?? null,
|
|
61
61
|
lastInteraction: a?.lastInteraction ?? "drag"
|
|
62
62
|
}
|
|
63
63
|
} };
|
|
64
64
|
}),
|
|
65
|
-
close: (
|
|
66
|
-
let
|
|
67
|
-
if (!(
|
|
68
|
-
let { [
|
|
65
|
+
close: (t) => e((e) => {
|
|
66
|
+
let n = i(t);
|
|
67
|
+
if (!(n in e.byThreadKey)) return e;
|
|
68
|
+
let { [n]: r, ...a } = e.byThreadKey;
|
|
69
69
|
return { byThreadKey: a };
|
|
70
70
|
}),
|
|
71
|
-
move: (n, r
|
|
72
|
-
let a =
|
|
73
|
-
return !o || T(o.source) !==
|
|
74
|
-
...
|
|
71
|
+
move: (t, n, r) => e((e) => {
|
|
72
|
+
let a = i(t), o = e.byThreadKey[a];
|
|
73
|
+
return !o || T(o.source) !== n || o.position?.x === r.x && o.position.y === r.y && o.lastInteraction === "drag" ? e : { byThreadKey: {
|
|
74
|
+
...e.byThreadKey,
|
|
75
75
|
[a]: {
|
|
76
76
|
...o,
|
|
77
|
-
position:
|
|
77
|
+
position: r,
|
|
78
78
|
lastInteraction: "drag"
|
|
79
79
|
}
|
|
80
80
|
} };
|
|
81
81
|
}),
|
|
82
|
-
resize: (n, r,
|
|
83
|
-
let o =
|
|
84
|
-
return !s || T(s.source) !==
|
|
85
|
-
...
|
|
82
|
+
resize: (t, n, r, a) => e((e) => {
|
|
83
|
+
let o = i(t), s = e.byThreadKey[o];
|
|
84
|
+
return !s || T(s.source) !== n || s.width === r && s.lastInteraction === "resize" && (!a || s.position?.x === a.x && s.position.y === a.y) ? e : { byThreadKey: {
|
|
85
|
+
...e.byThreadKey,
|
|
86
86
|
[o]: {
|
|
87
87
|
...s,
|
|
88
|
-
width:
|
|
88
|
+
width: r,
|
|
89
89
|
position: a ?? s.position,
|
|
90
90
|
lastInteraction: "resize"
|
|
91
91
|
}
|
|
92
92
|
} };
|
|
93
93
|
}),
|
|
94
|
-
removeThread: (
|
|
95
|
-
let
|
|
96
|
-
if (!(
|
|
97
|
-
let { [
|
|
94
|
+
removeThread: (t) => e((e) => {
|
|
95
|
+
let n = i(t);
|
|
96
|
+
if (!(n in e.byThreadKey)) return e;
|
|
97
|
+
let { [n]: r, ...a } = e.byThreadKey;
|
|
98
98
|
return { byThreadKey: a };
|
|
99
99
|
})
|
|
100
100
|
}));
|
|
101
|
-
function ne(
|
|
102
|
-
return
|
|
101
|
+
function ne(e, t) {
|
|
102
|
+
return t ? e[i(t)] ?? null : null;
|
|
103
103
|
}
|
|
104
104
|
function O(e, t) {
|
|
105
105
|
let n = ne(e, t)?.source;
|
|
@@ -181,18 +181,18 @@ function ie(e, t) {
|
|
|
181
181
|
let r = n.querySelector("[data-right-panel-toggle]");
|
|
182
182
|
return r?.focus(), r !== null && n.activeElement === r;
|
|
183
183
|
}
|
|
184
|
-
function R(
|
|
185
|
-
let
|
|
186
|
-
|
|
184
|
+
function R(t) {
|
|
185
|
+
let n = y(67), r = e(), i;
|
|
186
|
+
n[0] !== r || n[1] !== t.workspaceLabel ? (i = t.workspaceLabel ?? r("Workspace panel"), n[0] = r, n[1] = t.workspaceLabel, n[2] = i) : i = n[2];
|
|
187
187
|
let a;
|
|
188
|
-
|
|
189
|
-
let
|
|
190
|
-
|
|
188
|
+
n[3] === i ? a = n[4] : (a = d("panel", 4, i), n[3] = i, n[4] = a);
|
|
189
|
+
let s = a, c = t.mode === "inline", l = c && t.open !== void 0, u = t.open ?? !0, f = t.maximized ?? !1, p = v(null), h = v(!1), x = v(null), S = v(null), { width: C, handlers: w, observeRow: T } = t.inlineSize, E;
|
|
190
|
+
n[5] !== f || n[6] !== u || n[7] !== C ? (E = () => ({
|
|
191
191
|
open: u,
|
|
192
192
|
width: C,
|
|
193
193
|
maximized: f,
|
|
194
194
|
enabled: !0
|
|
195
|
-
}),
|
|
195
|
+
}), n[5] = f, n[6] = u, n[7] = C, n[8] = E) : E = n[8];
|
|
196
196
|
let [D, ne] = ee(E);
|
|
197
197
|
(D.open !== u || D.width !== C || D.maximized !== f) && ne({
|
|
198
198
|
open: u,
|
|
@@ -201,20 +201,20 @@ function R(e) {
|
|
|
201
201
|
enabled: D.open !== u
|
|
202
202
|
});
|
|
203
203
|
let O = l && !D.enabled, k;
|
|
204
|
-
|
|
204
|
+
n[9] === T ? k = n[10] : (k = (e) => {
|
|
205
205
|
p.current = e;
|
|
206
206
|
let t = T(e);
|
|
207
207
|
return () => {
|
|
208
208
|
p.current = null, t();
|
|
209
209
|
};
|
|
210
|
-
},
|
|
210
|
+
}, n[9] = T, n[10] = k);
|
|
211
211
|
let A = k, j;
|
|
212
|
-
|
|
212
|
+
n[11] === Symbol.for("react.memo_cache_sentinel") ? (j = (e) => {
|
|
213
213
|
let t = e.relatedTarget;
|
|
214
214
|
t !== null && t !== S.current && (x.current = t instanceof HTMLElement ? t : null);
|
|
215
|
-
},
|
|
215
|
+
}, n[11] = j) : j = n[11];
|
|
216
216
|
let re = j, M, N;
|
|
217
|
-
|
|
217
|
+
n[12] === l ? (M = n[13], N = n[14]) : (M = () => {
|
|
218
218
|
let e = p.current;
|
|
219
219
|
if (e && l) return () => {
|
|
220
220
|
if (!e.contains(e.ownerDocument.activeElement) && !h.current) return;
|
|
@@ -223,9 +223,9 @@ function R(e) {
|
|
|
223
223
|
e.ownerDocument.activeElement === e.ownerDocument.body && ie(e, t);
|
|
224
224
|
});
|
|
225
225
|
};
|
|
226
|
-
}, N = [l, p],
|
|
226
|
+
}, N = [l, p], n[12] = l, n[13] = M, n[14] = N), _(M, N);
|
|
227
227
|
let P, F;
|
|
228
|
-
|
|
228
|
+
n[15] !== l || n[16] !== u ? (P = () => {
|
|
229
229
|
let e = p.current;
|
|
230
230
|
if (!e) return;
|
|
231
231
|
let t = l && !u;
|
|
@@ -234,42 +234,42 @@ function R(e) {
|
|
|
234
234
|
l,
|
|
235
235
|
u,
|
|
236
236
|
p
|
|
237
|
-
],
|
|
237
|
+
], n[15] = l, n[16] = u, n[17] = P, n[18] = F) : (P = n[17], F = n[18]), _(P, F);
|
|
238
238
|
let I;
|
|
239
|
-
|
|
239
|
+
n[19] === Symbol.for("react.memo_cache_sentinel") ? (I = (e) => {
|
|
240
240
|
S.current = e.target;
|
|
241
|
-
},
|
|
241
|
+
}, n[19] = I) : I = n[19];
|
|
242
242
|
let L;
|
|
243
|
-
|
|
244
|
-
let R =
|
|
245
|
-
|
|
243
|
+
n[20] !== s || n[21] !== t.workspaceArea ? (L = t.workspaceArea ? s : {}, n[20] = s, n[21] = t.workspaceArea, n[22] = L) : L = n[22];
|
|
244
|
+
let R = t.workspaceFocusKey, z = l && !u ? "true" : void 0, ae = t.onMouseDown, oe = t.onMouseUp, B = c ? f ? "flex-1" : "shrink-0 border-l border-border" : "w-full", V = l && "[[data-panel-animations=true]_&]:transition-[width] [[data-panel-animations=true]_&]:duration-(--panel-animation-duration) [[data-panel-animations=true]_&]:ease-out", H = l && u && "[[data-panel-animations=true]_&]:starting:w-0!", U = l && !u && "pointer-events-none", W;
|
|
245
|
+
n[23] !== B || n[24] !== V || n[25] !== H || n[26] !== U ? (W = o("relative flex h-full min-h-0 min-w-0 max-w-full flex-col self-stretch bg-background", B, V, H, U), n[23] = B, n[24] = V, n[25] = H, n[26] = U, n[27] = W) : W = n[27];
|
|
246
246
|
let G;
|
|
247
|
-
|
|
247
|
+
n[28] !== l || n[29] !== c || n[30] !== f || n[31] !== u || n[32] !== O || n[33] !== C ? (G = c ? {
|
|
248
248
|
[m]: `${C}px`,
|
|
249
249
|
width: f ? "100%" : l && !u ? "0px" : `var(${m})`,
|
|
250
250
|
transitionDuration: O ? "0ms" : void 0
|
|
251
|
-
} : void 0,
|
|
252
|
-
let se =
|
|
253
|
-
|
|
251
|
+
} : void 0, n[28] = l, n[29] = c, n[30] = f, n[31] = u, n[32] = O, n[33] = C, n[34] = G) : G = n[34];
|
|
252
|
+
let se = t.mode, K = f ? "true" : "false", q;
|
|
253
|
+
n[35] !== w || n[36] !== c || n[37] !== f ? (q = c && !f ? /* @__PURE__ */ b(g, { handlers: w }) : null, n[35] = w, n[36] = c, n[37] = f, n[38] = q) : q = n[38];
|
|
254
254
|
let ce = l && "overflow-clip", le = l && !f && "flex justify-end", J;
|
|
255
|
-
|
|
255
|
+
n[39] !== ce || n[40] !== le ? (J = o("h-full min-h-0 w-full", ce, le), n[39] = ce, n[40] = le, n[41] = J) : J = n[41];
|
|
256
256
|
let ue = l && !f && "shrink-0", Y;
|
|
257
|
-
|
|
257
|
+
n[42] === ue ? Y = n[43] : (Y = o("flex h-full min-h-0 min-w-0 flex-col", ue), n[42] = ue, n[43] = Y);
|
|
258
258
|
let X;
|
|
259
|
-
|
|
259
|
+
n[44] !== l || n[45] !== f ? (X = l && !f ? { width: `calc(var(${m}) - 1px)` } : void 0, n[44] = l, n[45] = f, n[46] = X) : X = n[46];
|
|
260
260
|
let Z;
|
|
261
|
-
|
|
261
|
+
n[47] !== t.children || n[48] !== Y || n[49] !== X ? (Z = /* @__PURE__ */ b("div", {
|
|
262
262
|
className: Y,
|
|
263
263
|
style: X,
|
|
264
|
-
children:
|
|
265
|
-
}),
|
|
264
|
+
children: t.children
|
|
265
|
+
}), n[47] = t.children, n[48] = Y, n[49] = X, n[50] = Z) : Z = n[50];
|
|
266
266
|
let Q;
|
|
267
|
-
|
|
267
|
+
n[51] !== J || n[52] !== Z ? (Q = /* @__PURE__ */ b("div", {
|
|
268
268
|
className: J,
|
|
269
269
|
children: Z
|
|
270
|
-
}),
|
|
270
|
+
}), n[51] = J, n[52] = Z, n[53] = Q) : Q = n[53];
|
|
271
271
|
let $;
|
|
272
|
-
return
|
|
272
|
+
return n[54] !== A || n[55] !== t.mode || n[56] !== t.onMouseDown || n[57] !== t.onMouseUp || n[58] !== t.workspaceFocusKey || n[59] !== L || n[60] !== z || n[61] !== W || n[62] !== G || n[63] !== K || n[64] !== q || n[65] !== Q ? ($ = /* @__PURE__ */ te("div", {
|
|
273
273
|
ref: A,
|
|
274
274
|
onFocus: re,
|
|
275
275
|
onBlur: I,
|
|
@@ -283,6 +283,6 @@ function R(e) {
|
|
|
283
283
|
"data-preview-panel-mode": se,
|
|
284
284
|
"data-preview-panel-maximized": K,
|
|
285
285
|
children: [q, Q]
|
|
286
|
-
}),
|
|
286
|
+
}), n[54] = A, n[55] = t.mode, n[56] = t.onMouseDown, n[57] = t.onMouseUp, n[58] = t.workspaceFocusKey, n[59] = L, n[60] = z, n[61] = W, n[62] = G, n[63] = K, n[64] = q, n[65] = Q, n[66] = $) : $ = n[66], $;
|
|
287
287
|
}
|
|
288
288
|
export { ne as a, C as c, T as i, w as l, N as n, O as o, E as r, D as s, I as t, x as u };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { c as e } from "./messages-yqmY7G5x.js";
|
|
2
|
-
import {
|
|
3
|
-
import { $i as s, nf as c } from "./keybindings-
|
|
4
|
-
import { c as l, d as ee, l as te, n as u, o as ne, s as d, u as f } from "./dialog-
|
|
5
|
-
import { t as p } from "./scroll-area-
|
|
6
|
-
import { n as re, t as m } from "./toggle-group-
|
|
7
|
-
import { i as ie, n as h, r as ae, t as g } from "./ProjectMonogram-
|
|
8
|
-
import { lucideIconByName as _, lucideIconNames as v } from "./lucideIconByName-
|
|
2
|
+
import { C_ as t, Jr as n, S_ as r, b_ as i, ci as a, t as o } from "./utils-DtKQl-D3.js";
|
|
3
|
+
import { $i as s, nf as c } from "./keybindings-D0pBlT1k.js";
|
|
4
|
+
import { c as l, d as ee, l as te, n as u, o as ne, s as d, u as f } from "./dialog-EmpqFZiK.js";
|
|
5
|
+
import { t as p } from "./scroll-area-CEoyjC7h.js";
|
|
6
|
+
import { n as re, t as m } from "./toggle-group-l8hRPswr.js";
|
|
7
|
+
import { i as ie, n as h, r as ae, t as g } from "./ProjectMonogram-D21--FQY.js";
|
|
8
|
+
import { lucideIconByName as _, lucideIconNames as v } from "./lucideIconByName-CXY44V8P.js";
|
|
9
9
|
import { createElement as y, useState as b } from "react";
|
|
10
10
|
import { c as x } from "react/compiler-runtime";
|
|
11
11
|
import { Fragment as S, jsx as C, jsxs as w } from "react/jsx-runtime";
|
|
@@ -197,11 +197,11 @@ function O(e) {
|
|
|
197
197
|
}), t[7] = a, t[8] = i, t[9] = c, t[10] = l) : l = t[10], l;
|
|
198
198
|
}
|
|
199
199
|
function k(e) {
|
|
200
|
-
let s = x(72), { current: c, projectName: u, onClose: f, onSelect: _ } = e, v =
|
|
200
|
+
let s = x(72), { current: c, projectName: u, onClose: f, onSelect: _ } = e, v = t(), y = r(), T;
|
|
201
201
|
s[0] === u ? T = s[1] : (T = h(u), s[0] = u, s[1] = T);
|
|
202
202
|
let O = T, [k, de] = b(c?.kind ?? "lucide"), [A, fe] = b(c?.kind === "lucide" ? c.name : D), [j, pe] = b(c && c.kind !== "emoji" ? c.color : O.color), [M, N] = b(c?.kind === "monogram" ? c.text : O.monogram), [P, F] = b(c?.kind === "emoji" ? c.emoji : "💻"), [I, me] = b(""), [L, he] = b(""), R, z, B, V, H, U, W, G;
|
|
203
203
|
if (s[2] !== O || s[3] !== j || s[4] !== L || s[5] !== P || s[6] !== v || s[7] !== A || s[8] !== M || s[9] !== y || s[10] !== k || s[11] !== f || s[12] !== _ || s[13] !== I) {
|
|
204
|
-
let e = se(I),
|
|
204
|
+
let e = se(I), t = ie(j), r, a;
|
|
205
205
|
s[22] === M ? (r = s[23], a = s[24]) : (r = M.normalize("NFKC").trim().toUpperCase(), a = ce(r), s[22] = M, s[23] = r, s[24] = a), G = a;
|
|
206
206
|
let c;
|
|
207
207
|
s[25] !== j || s[26] !== P || s[27] !== A || s[28] !== k || s[29] !== r || s[30] !== f || s[31] !== _ || s[32] !== G ? (c = () => {
|
|
@@ -219,7 +219,7 @@ function k(e) {
|
|
|
219
219
|
}), f());
|
|
220
220
|
}, s[25] = j, s[26] = P, s[27] = A, s[28] = k, s[29] = r, s[30] = f, s[31] = _, s[32] = G, s[33] = c) : c = s[33], z = c;
|
|
221
221
|
let u;
|
|
222
|
-
s[34] === Symbol.for("react.memo_cache_sentinel") ? (u = /* @__PURE__ */ C(ee, { children: /* @__PURE__ */ C(
|
|
222
|
+
s[34] === Symbol.for("react.memo_cache_sentinel") ? (u = /* @__PURE__ */ C(ee, { children: /* @__PURE__ */ C(i, { children: "Choose project icon" }) }), s[34] = u) : u = s[34], s[35] === Symbol.for("react.memo_cache_sentinel") ? (W = /* @__PURE__ */ w(l, { children: [u, /* @__PURE__ */ C(ne, { children: /* @__PURE__ */ C(i, { children: "Choose an icon, emoji, or monogram." }) })] }), s[35] = W) : W = s[35], R = te, B = "flex min-h-0 flex-col";
|
|
223
223
|
let d;
|
|
224
224
|
s[36] === v ? d = s[37] : (d = v("Icon type"), s[36] = v, s[37] = d);
|
|
225
225
|
let h;
|
|
@@ -232,17 +232,17 @@ function k(e) {
|
|
|
232
232
|
let x;
|
|
233
233
|
s[41] === Symbol.for("react.memo_cache_sentinel") ? (x = /* @__PURE__ */ C(m, {
|
|
234
234
|
value: "lucide",
|
|
235
|
-
children: /* @__PURE__ */ C(
|
|
235
|
+
children: /* @__PURE__ */ C(i, { children: "Icons" })
|
|
236
236
|
}), s[41] = x) : x = s[41];
|
|
237
237
|
let T;
|
|
238
238
|
s[42] === Symbol.for("react.memo_cache_sentinel") ? (T = /* @__PURE__ */ C(m, {
|
|
239
239
|
value: "emoji",
|
|
240
|
-
children: /* @__PURE__ */ C(
|
|
240
|
+
children: /* @__PURE__ */ C(i, { children: "Emoji" })
|
|
241
241
|
}), s[42] = T) : T = s[42];
|
|
242
242
|
let D;
|
|
243
243
|
s[43] === Symbol.for("react.memo_cache_sentinel") ? (D = /* @__PURE__ */ C(m, {
|
|
244
244
|
value: "monogram",
|
|
245
|
-
children: /* @__PURE__ */ C(
|
|
245
|
+
children: /* @__PURE__ */ C(i, { children: "Monogram" })
|
|
246
246
|
}), s[43] = D) : D = s[43], s[44] !== d || s[45] !== h ? (V = /* @__PURE__ */ w(re, {
|
|
247
247
|
"aria-label": d,
|
|
248
248
|
variant: "segmented",
|
|
@@ -255,7 +255,7 @@ function k(e) {
|
|
|
255
255
|
]
|
|
256
256
|
}), s[44] = d, s[45] = h, s[46] = V) : V = s[46], s[47] !== j || s[48] !== v || s[49] !== y || s[50] !== k ? (H = k === "emoji" ? null : /* @__PURE__ */ w("div", { children: [/* @__PURE__ */ C("div", {
|
|
257
257
|
className: "mb-2 text-xs font-medium text-muted-foreground",
|
|
258
|
-
children: /* @__PURE__ */ C(
|
|
258
|
+
children: /* @__PURE__ */ C(i, { children: "Color" })
|
|
259
259
|
}), /* @__PURE__ */ C("div", {
|
|
260
260
|
className: "flex flex-wrap gap-1.5",
|
|
261
261
|
role: "group",
|
|
@@ -264,12 +264,12 @@ function k(e) {
|
|
|
264
264
|
type: "button",
|
|
265
265
|
"aria-label": y(e.label),
|
|
266
266
|
"aria-pressed": j === e.value,
|
|
267
|
-
className:
|
|
267
|
+
className: o("flex size-6 items-center justify-center rounded-full border border-transparent outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-ring", j === e.value && "border-foreground/64"),
|
|
268
268
|
onClick: () => pe(e.value),
|
|
269
|
-
children: /* @__PURE__ */ C("span", { className:
|
|
269
|
+
children: /* @__PURE__ */ C("span", { className: o("size-4 rounded-full", e.swatchClassName) })
|
|
270
270
|
}, e.value))
|
|
271
271
|
})] }), s[47] = j, s[48] = v, s[49] = y, s[50] = k, s[51] = H) : H = s[51], U = k === "lucide" ? /* @__PURE__ */ w(S, { children: [
|
|
272
|
-
/* @__PURE__ */ C(
|
|
272
|
+
/* @__PURE__ */ C(n, {
|
|
273
273
|
type: "search",
|
|
274
274
|
value: I,
|
|
275
275
|
"aria-label": v("Search Lucide icons"),
|
|
@@ -285,7 +285,7 @@ function k(e) {
|
|
|
285
285
|
type: "button",
|
|
286
286
|
"aria-label": ue(e),
|
|
287
287
|
"aria-pressed": A === e,
|
|
288
|
-
className:
|
|
288
|
+
className: o("flex aspect-square items-center justify-center rounded-md border border-transparent outline-none hover:bg-accent focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-ring", A === e && "border-border bg-accent", t),
|
|
289
289
|
onClick: () => fe(e),
|
|
290
290
|
children: /* @__PURE__ */ C(le, { name: e })
|
|
291
291
|
}, e))
|
|
@@ -293,7 +293,7 @@ function k(e) {
|
|
|
293
293
|
}),
|
|
294
294
|
e.length === 0 ? /* @__PURE__ */ C("p", {
|
|
295
295
|
className: "py-8 text-center text-sm text-muted-foreground",
|
|
296
|
-
children: /* @__PURE__ */ C(
|
|
296
|
+
children: /* @__PURE__ */ C(i, { children: "No icons found." })
|
|
297
297
|
}) : null
|
|
298
298
|
] }) : k === "monogram" ? /* @__PURE__ */ w("div", {
|
|
299
299
|
className: "flex items-center gap-4 py-2",
|
|
@@ -307,9 +307,9 @@ function k(e) {
|
|
|
307
307
|
/* @__PURE__ */ C("label", {
|
|
308
308
|
htmlFor: "project-monogram",
|
|
309
309
|
className: "text-sm font-medium",
|
|
310
|
-
children: /* @__PURE__ */ C(
|
|
310
|
+
children: /* @__PURE__ */ C(i, { children: "Letters" })
|
|
311
311
|
}),
|
|
312
|
-
/* @__PURE__ */ C(
|
|
312
|
+
/* @__PURE__ */ C(n, {
|
|
313
313
|
id: "project-monogram",
|
|
314
314
|
value: M,
|
|
315
315
|
onChange: (e) => N(e.currentTarget.value),
|
|
@@ -320,7 +320,7 @@ function k(e) {
|
|
|
320
320
|
/* @__PURE__ */ C("p", {
|
|
321
321
|
id: "project-monogram-hint",
|
|
322
322
|
className: "text-xs text-muted-foreground",
|
|
323
|
-
children: /* @__PURE__ */ C(
|
|
323
|
+
children: /* @__PURE__ */ C(i, { children: "One or two letters or numbers." })
|
|
324
324
|
})
|
|
325
325
|
]
|
|
326
326
|
})]
|
|
@@ -333,15 +333,15 @@ function k(e) {
|
|
|
333
333
|
type: "button",
|
|
334
334
|
"aria-label": y(e.label),
|
|
335
335
|
"aria-pressed": P === e.emoji,
|
|
336
|
-
className:
|
|
336
|
+
className: o("flex aspect-square items-center justify-center rounded-md border border-transparent text-xl outline-none hover:bg-accent focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-ring", P === e.emoji && "border-border bg-accent"),
|
|
337
337
|
onClick: () => F(e.emoji),
|
|
338
338
|
children: e.emoji
|
|
339
339
|
}, e.emoji))
|
|
340
340
|
})
|
|
341
341
|
}), /* @__PURE__ */ w("div", { children: [/* @__PURE__ */ C("div", {
|
|
342
342
|
className: "mb-2 text-xs font-medium text-muted-foreground",
|
|
343
|
-
children: /* @__PURE__ */ C(
|
|
344
|
-
}), /* @__PURE__ */ C(
|
|
343
|
+
children: /* @__PURE__ */ C(i, { children: "Or paste any emoji" })
|
|
344
|
+
}), /* @__PURE__ */ C(n, {
|
|
345
345
|
value: L,
|
|
346
346
|
"aria-label": v("Custom emoji"),
|
|
347
347
|
placeholder: v("Paste an emoji"),
|
|
@@ -363,17 +363,17 @@ function k(e) {
|
|
|
363
363
|
]
|
|
364
364
|
}), s[52] = R, s[53] = B, s[54] = V, s[55] = H, s[56] = U, s[57] = K) : K = s[57];
|
|
365
365
|
let q;
|
|
366
|
-
s[58] === Symbol.for("react.memo_cache_sentinel") ? (q = /* @__PURE__ */ C(
|
|
366
|
+
s[58] === Symbol.for("react.memo_cache_sentinel") ? (q = /* @__PURE__ */ C(i, { children: "Cancel" }), s[58] = q) : q = s[58];
|
|
367
367
|
let J;
|
|
368
|
-
s[59] === f ? J = s[60] : (J = /* @__PURE__ */ C(
|
|
368
|
+
s[59] === f ? J = s[60] : (J = /* @__PURE__ */ C(a, {
|
|
369
369
|
variant: "outline",
|
|
370
370
|
onClick: f,
|
|
371
371
|
children: q
|
|
372
372
|
}), s[59] = f, s[60] = J);
|
|
373
373
|
let Y = k === "monogram" && !G, X;
|
|
374
|
-
s[61] === Symbol.for("react.memo_cache_sentinel") ? (X = /* @__PURE__ */ C(
|
|
374
|
+
s[61] === Symbol.for("react.memo_cache_sentinel") ? (X = /* @__PURE__ */ C(i, { children: "Save icon" }), s[61] = X) : X = s[61];
|
|
375
375
|
let Z;
|
|
376
|
-
s[62] !== z || s[63] !== Y ? (Z = /* @__PURE__ */ C(
|
|
376
|
+
s[62] !== z || s[63] !== Y ? (Z = /* @__PURE__ */ C(a, {
|
|
377
377
|
onClick: z,
|
|
378
378
|
disabled: Y,
|
|
379
379
|
children: X
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { w as t } from "./presentation-
|
|
1
|
+
import { C_ as e } from "./utils-DtKQl-D3.js";
|
|
2
|
+
import { w as t } from "./presentation-68y8EAuH.js";
|
|
3
3
|
import { t as n } from "./useStableCallback-kf0xbSaG.js";
|
|
4
|
-
import { c as r, r as i } from "./ThreadTerminalDrawer-
|
|
4
|
+
import { c as r, r as i } from "./ThreadTerminalDrawer-Cf4l2axO.js";
|
|
5
5
|
import { useEffect as a, useRef as o, useState as s } from "react";
|
|
6
6
|
import { c } from "react/compiler-runtime";
|
|
7
7
|
import { Fragment as l, jsx as u, jsxs as d } from "react/jsx-runtime";
|