@pstdio/ui 0.23.0 → 0.24.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.
- package/dist/chat-ui.js +840 -834
- package/dist/chat-ui.js.map +1 -1
- package/dist/components/chat-ui/components/chat-input-actions.d.ts +2 -0
- package/dist/components/chat-ui/components/chat-input-question-prompt.d.ts +3 -0
- package/dist/components/chat-ui/components/chat-input.d.ts +2 -0
- package/dist/components/chat-ui/components/chat-panel.d.ts +2 -0
- package/dist/components/chat-ui/components/timeline-title.d.ts +6 -0
- package/dist/components/layout/index.d.ts +1 -0
- package/dist/components/layout/resizable-split-layout.d.ts +4 -3
- package/dist/components/layout/resizable-split-layout.handle.d.ts +6 -2
- package/dist/components/layout/resizable-split-layout.panels.d.ts +6 -2
- package/dist/components/layout/resizable-split-layout.root-size.d.ts +3 -0
- package/dist/components/primitives/index.d.ts +2 -0
- package/dist/data-table.js +1 -1
- package/dist/{diff-editor-BnfV8cYB.js → diff-bubble-DvUPRnfB.js} +49 -48
- package/dist/diff-bubble-DvUPRnfB.js.map +1 -0
- package/dist/diff.js +111 -111
- package/dist/diff.js.map +1 -1
- package/dist/index.js +44 -43
- package/dist/index.js.map +1 -1
- package/dist/kanban-renderer.js +4 -4
- package/dist/kanban-renderer.js.map +1 -1
- package/dist/{param-editor-DgzVeyJ0.js → param-editor-DhoxgwGd.js} +2 -2
- package/dist/{param-editor-DgzVeyJ0.js.map → param-editor-DhoxgwGd.js.map} +1 -1
- package/dist/{param-editor-field-BMvuSAP5.js → param-editor-field-DurcyLuw.js} +43 -42
- package/dist/param-editor-field-DurcyLuw.js.map +1 -0
- package/dist/theme/primitives/colors.d.ts +34 -0
- package/dist/theme/primitives/sizes.d.ts +9 -0
- package/dist/theme/recipes/landing-story.d.ts +10 -0
- package/dist/theme/recipes/landing-tool-demo.d.ts +1 -0
- package/dist/theme/recipes/landing.d.ts +23 -0
- package/dist/theme/recipes/resizable-split-layout.d.ts +106 -0
- package/dist/theme/tokens/colors-background.d.ts +260 -0
- package/dist/theme/tokens/colors-visualization.d.ts +162 -0
- package/dist/theme/tokens/colors.d.ts +2 -422
- package/dist/{theme-C0empEin.js → theme-Ca-KyNoi.js} +1409 -568
- package/dist/theme-Ca-KyNoi.js.map +1 -0
- package/dist/theme.js +1 -1
- package/dist/tree-list-DXwHWodb.js +1348 -0
- package/dist/tree-list-DXwHWodb.js.map +1 -0
- package/package.json +2 -2
- package/dist/diff-editor-BnfV8cYB.js.map +0 -1
- package/dist/param-editor-field-BMvuSAP5.js.map +0 -1
- package/dist/theme-C0empEin.js.map +0 -1
- package/dist/tree-list-BHFSyvIZ.js +0 -1262
- package/dist/tree-list-BHFSyvIZ.js.map +0 -1
package/dist/diff.js
CHANGED
|
@@ -3,14 +3,14 @@ import { c as F } from "react/compiler-runtime";
|
|
|
3
3
|
import { Editor as It, DiffEditor as Lt } from "@monaco-editor/react";
|
|
4
4
|
import { useRef as Z, useEffect as oe, lazy as lt, Suspense as ot, useState as X, useLayoutEffect as Ge } from "react";
|
|
5
5
|
import { u as _t } from "./theme-preference-Bpobguh4.js";
|
|
6
|
-
import { D as Tt, b as it, a as st } from "./diff-
|
|
6
|
+
import { D as Tt, b as it, a as st } from "./diff-bubble-DvUPRnfB.js";
|
|
7
7
|
import { Box as O, Grid as We, Button as rt, Text as q, Image as Ft, Stack as be, Skeleton as at, IconButton as Ke, Menu as J, Badge as At, Icon as Mt, InputGroup as zt, Input as kt, HStack as Rt, Flex as Bt } from "@chakra-ui/react";
|
|
8
8
|
import { useVirtualizer as Nt, defaultRangeExtractor as Ht } from "@tanstack/react-virtual";
|
|
9
9
|
import { T as Ot, S as qe } from "./browser-storage-DPtOQJx0.js";
|
|
10
10
|
import { ChevronRight as Ye, ChevronDown as $t, Check as dt, Copy as Vt, Settings2 as jt, ListTree as Gt, List as Wt, PanelLeftClose as Kt, PanelLeftOpen as Qt, Rows2 as qt, SquareSplitHorizontal as Ut, ChevronsUpDown as Yt, ChevronsDownUp as Xt, FileText as Jt, Search as Zt } from "lucide-react";
|
|
11
11
|
import { E as Se } from "./empty-state-Bo4HVrgr.js";
|
|
12
12
|
import { L as en, H as ct } from "./list-row-CRi3Luog.js";
|
|
13
|
-
import { T as tn, R as nn } from "./tree-list-
|
|
13
|
+
import { T as tn, R as nn } from "./tree-list-DXwHWodb.js";
|
|
14
14
|
import { create as ln } from "zustand";
|
|
15
15
|
const on = (n) => {
|
|
16
16
|
let e;
|
|
@@ -70,12 +70,12 @@ const on = (n) => {
|
|
|
70
70
|
language: i,
|
|
71
71
|
onChange: a,
|
|
72
72
|
disableScroll: c
|
|
73
|
-
} = n, f = i === void 0 ? "javascript" : i,
|
|
73
|
+
} = n, f = i === void 0 ? "javascript" : i, m = ht(), u = ut(m);
|
|
74
74
|
let d;
|
|
75
75
|
e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (d = {
|
|
76
76
|
enabled: !1
|
|
77
77
|
}, e[0] = d) : d = e[0];
|
|
78
|
-
const
|
|
78
|
+
const p = !s, D = l ? "on" : "off";
|
|
79
79
|
let g;
|
|
80
80
|
e[1] !== c ? (g = c ? {
|
|
81
81
|
scrollbar: {
|
|
@@ -89,14 +89,14 @@ const on = (n) => {
|
|
|
89
89
|
overviewRulerLanes: 0
|
|
90
90
|
} : {}, e[1] = c, e[2] = g) : g = e[2];
|
|
91
91
|
let h;
|
|
92
|
-
e[3] !==
|
|
92
|
+
e[3] !== p || e[4] !== D || e[5] !== g ? (h = {
|
|
93
93
|
tabSize: 2,
|
|
94
94
|
minimap: d,
|
|
95
95
|
fontSize: 12,
|
|
96
|
-
readOnly:
|
|
96
|
+
readOnly: p,
|
|
97
97
|
lineNumbers: D,
|
|
98
98
|
...g
|
|
99
|
-
}, e[3] =
|
|
99
|
+
}, e[3] = p, e[4] = D, e[5] = g, e[6] = h) : h = e[6];
|
|
100
100
|
const S = h;
|
|
101
101
|
let C;
|
|
102
102
|
e[7] !== a ? (C = (E) => {
|
|
@@ -118,10 +118,10 @@ const on = (n) => {
|
|
|
118
118
|
language: s,
|
|
119
119
|
disableScroll: i
|
|
120
120
|
} = n, a = s === void 0 ? "javascript" : s, c = ht(), f = ut(c);
|
|
121
|
-
let
|
|
122
|
-
e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
121
|
+
let m;
|
|
122
|
+
e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (m = {
|
|
123
123
|
enabled: !1
|
|
124
|
-
}, e[0] =
|
|
124
|
+
}, e[0] = m) : m = e[0];
|
|
125
125
|
const u = l ? "on" : "off";
|
|
126
126
|
let d;
|
|
127
127
|
e[1] !== i ? (d = i ? {
|
|
@@ -135,10 +135,10 @@ const on = (n) => {
|
|
|
135
135
|
mouseWheelScrollSensitivity: 0,
|
|
136
136
|
overviewRulerLanes: 0
|
|
137
137
|
} : {}, e[1] = i, e[2] = d) : d = e[2];
|
|
138
|
-
let
|
|
139
|
-
e[3] !== u || e[4] !== d ? (
|
|
138
|
+
let p;
|
|
139
|
+
e[3] !== u || e[4] !== d ? (p = {
|
|
140
140
|
tabSize: 2,
|
|
141
|
-
minimap:
|
|
141
|
+
minimap: m,
|
|
142
142
|
fontSize: 12,
|
|
143
143
|
readOnly: !0,
|
|
144
144
|
originalEditable: !1,
|
|
@@ -146,8 +146,8 @@ const on = (n) => {
|
|
|
146
146
|
useInlineViewWhenSpaceIsTooSmall: !0,
|
|
147
147
|
lineNumbers: u,
|
|
148
148
|
...d
|
|
149
|
-
}, e[3] = u, e[4] = d, e[5] =
|
|
150
|
-
const D =
|
|
149
|
+
}, e[3] = u, e[4] = d, e[5] = p) : p = e[5];
|
|
150
|
+
const D = p;
|
|
151
151
|
let g, h;
|
|
152
152
|
e[6] !== f ? (g = (C) => {
|
|
153
153
|
f(C);
|
|
@@ -156,7 +156,7 @@ const on = (n) => {
|
|
|
156
156
|
}, e[6] = f, e[7] = g, e[8] = h) : (g = e[7], h = e[8]);
|
|
157
157
|
let S;
|
|
158
158
|
return e[9] !== a || e[10] !== o || e[11] !== D || e[12] !== t || e[13] !== g || e[14] !== h ? (S = /* @__PURE__ */ r(ot, { fallback: null, children: /* @__PURE__ */ r(rn, { width: "100%", height: "100%", language: a, original: t, modified: o, theme: ge, options: D, beforeMount: g, onMount: h }) }), e[9] = a, e[10] = o, e[11] = D, e[12] = t, e[13] = g, e[14] = h, e[15] = S) : S = e[15], S;
|
|
159
|
-
},
|
|
159
|
+
}, pt = {
|
|
160
160
|
avif: "image/avif",
|
|
161
161
|
bmp: "image/bmp",
|
|
162
162
|
gif: "image/gif",
|
|
@@ -168,17 +168,17 @@ const on = (n) => {
|
|
|
168
168
|
tif: "image/tiff",
|
|
169
169
|
tiff: "image/tiff",
|
|
170
170
|
webp: "image/webp"
|
|
171
|
-
}, fn = Object.keys(
|
|
171
|
+
}, fn = Object.keys(pt), mt = (n) => {
|
|
172
172
|
const t = (n.split(/[\\/]/).pop() ?? n).split(".").pop();
|
|
173
173
|
return t ? t.toLowerCase() : "";
|
|
174
174
|
}, hn = (n) => {
|
|
175
|
-
const e =
|
|
176
|
-
return
|
|
177
|
-
}, un = (n) => hn(n) !== null,
|
|
175
|
+
const e = mt(n);
|
|
176
|
+
return pt[e] ?? null;
|
|
177
|
+
}, un = (n) => hn(n) !== null, pn = 1e3, mn = /* @__PURE__ */ new Set(["bun.lock", "bun.lockb", "package-lock.json", "pnpm-lock.yaml", "yarn.lock"]), gn = /* @__PURE__ */ new Set([...fn, "pdf", "zip", "tar", "gz", "tgz", "rar", "7z", "exe", "dll", "so", "dylib", "wasm", "class", "jar", "mp3", "mp4", "mov", "ogg", "wav", "webm", "flac", "ttf", "otf", "woff", "woff2", "eot"]), gt = (n) => (n.additions ?? 0) + (n.deletions ?? 0), bt = (n) => gt(n) > pn, bn = (n) => {
|
|
178
178
|
const e = n.split(/[\\/]/).pop() ?? n;
|
|
179
|
-
return
|
|
179
|
+
return mn.has(e) || e.endsWith(".min.js") || e.endsWith(".generated.ts");
|
|
180
180
|
}, Ue = (n) => {
|
|
181
|
-
const e =
|
|
181
|
+
const e = mt(n);
|
|
182
182
|
return e.length > 0 && gn.has(e);
|
|
183
183
|
}, we = un, Sn = (n) => {
|
|
184
184
|
const {
|
|
@@ -230,9 +230,9 @@ const on = (n) => {
|
|
|
230
230
|
hasOptedIntoLargeDiff: a,
|
|
231
231
|
onShowFullDiff: c,
|
|
232
232
|
diffViewMode: f
|
|
233
|
-
} = n,
|
|
233
|
+
} = n, m = f === void 0 ? "unified" : f;
|
|
234
234
|
let u;
|
|
235
|
-
e[0] !== t || e[1] !==
|
|
235
|
+
e[0] !== t || e[1] !== m || e[2] !== o || e[3] !== a || e[4] !== i || e[5] !== s || e[6] !== l || e[7] !== c ? (u = Sn({
|
|
236
236
|
diff: t,
|
|
237
237
|
filePath: o,
|
|
238
238
|
oldContent: l,
|
|
@@ -240,11 +240,11 @@ const on = (n) => {
|
|
|
240
240
|
isLargeDiff: i,
|
|
241
241
|
hasOptedIntoLargeDiff: a,
|
|
242
242
|
onShowFullDiff: c,
|
|
243
|
-
diffViewMode:
|
|
244
|
-
}), e[0] = t, e[1] =
|
|
243
|
+
diffViewMode: m
|
|
244
|
+
}), e[0] = t, e[1] = m, e[2] = o, e[3] = a, e[4] = i, e[5] = s, e[6] = l, e[7] = c, e[8] = u) : u = e[8];
|
|
245
245
|
const d = u;
|
|
246
|
-
let
|
|
247
|
-
return e[9] !== t || e[10] !== d.diffViewData || e[11] !== d.filePath || e[12] !== d.isImage || e[13] !== d.kind || e[14] !== d.newSrc || e[15] !== d.oldSrc || e[16] !== d.onShowFullDiff || e[17] !== d.renderedLineCount || e[18] !== d.sideBySide || e[19] !== s || e[20] !== l ? (
|
|
246
|
+
let p;
|
|
247
|
+
return e[9] !== t || e[10] !== d.diffViewData || e[11] !== d.filePath || e[12] !== d.isImage || e[13] !== d.kind || e[14] !== d.newSrc || e[15] !== d.oldSrc || e[16] !== d.onShowFullDiff || e[17] !== d.renderedLineCount || e[18] !== d.sideBySide || e[19] !== s || e[20] !== l ? (p = /* @__PURE__ */ r(O, { bg: "bg", borderBottomRadius: "xs", overflow: "hidden", children: d.kind === "editor" ? /* @__PURE__ */ r(Tt, { original: l, modified: s, oldPath: t.oldPath, newPath: t.newPath, sideBySide: d.sideBySide, data: d.diffViewData }) : d.kind === "image" ? /* @__PURE__ */ r(xn, { oldSrc: d.oldSrc, newSrc: d.newSrc }) : d.kind === "binary" ? /* @__PURE__ */ r(Dn, { isImage: d.isImage }) : /* @__PURE__ */ r(wn, { filePath: d.filePath, renderedLineCount: d.renderedLineCount, onShowFullDiff: d.onShowFullDiff }) }), e[9] = t, e[10] = d.diffViewData, e[11] = d.filePath, e[12] = d.isImage, e[13] = d.kind, e[14] = d.newSrc, e[15] = d.oldSrc, e[16] = d.onShowFullDiff, e[17] = d.renderedLineCount, e[18] = d.sideBySide, e[19] = s, e[20] = l, e[21] = p) : p = e[21], p;
|
|
248
248
|
}, xn = (n) => {
|
|
249
249
|
const e = F(8), {
|
|
250
250
|
oldSrc: t,
|
|
@@ -346,10 +346,10 @@ const En = (n) => {
|
|
|
346
346
|
isLargeDiff: a,
|
|
347
347
|
isGeneratedDiff: c,
|
|
348
348
|
isBinaryDiff: f,
|
|
349
|
-
hasDiffContent:
|
|
349
|
+
hasDiffContent: m,
|
|
350
350
|
canLoadDiff: u,
|
|
351
351
|
shouldAutoLoadDiff: d,
|
|
352
|
-
loadError:
|
|
352
|
+
loadError: p,
|
|
353
353
|
isLoadingDiff: D,
|
|
354
354
|
onLoadDiff: g,
|
|
355
355
|
hasOptedIntoLargeDiff: h,
|
|
@@ -362,16 +362,16 @@ const En = (n) => {
|
|
|
362
362
|
let x;
|
|
363
363
|
return e[0] !== t || e[1] !== y || e[2] !== o || e[3] !== h || e[4] !== s || e[5] !== l || e[6] !== S ? (x = /* @__PURE__ */ r(Je, { diff: t, filePath: o, oldContent: l, newContent: s, isLargeDiff: !1, hasOptedIntoLargeDiff: h, onShowFullDiff: S, diffViewMode: y }), e[0] = t, e[1] = y, e[2] = o, e[3] = h, e[4] = s, e[5] = l, e[6] = S, e[7] = x) : x = e[7], x;
|
|
364
364
|
}
|
|
365
|
-
if (!
|
|
365
|
+
if (!m && !d) {
|
|
366
366
|
let x;
|
|
367
|
-
e[8] !== u || e[9] !== c || e[10] !== a || e[11] !==
|
|
367
|
+
e[8] !== u || e[9] !== c || e[10] !== a || e[11] !== p || e[12] !== g || e[13] !== S ? (x = En({
|
|
368
368
|
isLargeDiff: a,
|
|
369
369
|
isGeneratedDiff: c,
|
|
370
|
-
loadError:
|
|
370
|
+
loadError: p,
|
|
371
371
|
canLoadDiff: u,
|
|
372
372
|
onLoadDiff: g,
|
|
373
373
|
onShowFullDiff: S
|
|
374
|
-
}), e[8] = u, e[9] = c, e[10] = a, e[11] =
|
|
374
|
+
}), e[8] = u, e[9] = c, e[10] = a, e[11] = p, e[12] = g, e[13] = S, e[14] = x) : x = e[14];
|
|
375
375
|
const {
|
|
376
376
|
title: E,
|
|
377
377
|
actionLabel: b,
|
|
@@ -415,15 +415,15 @@ const En = (n) => {
|
|
|
415
415
|
isGeneratedDiff: i,
|
|
416
416
|
isBinaryDiff: a,
|
|
417
417
|
onLoadDiff: c
|
|
418
|
-
} = n, [f,
|
|
418
|
+
} = n, [f, m] = X(!1), [u, d] = X(null), [p, D] = X(!1), g = async () => {
|
|
419
419
|
if (!(!c || f)) {
|
|
420
|
-
d(e), D(!1),
|
|
420
|
+
d(e), D(!1), m(!0);
|
|
421
421
|
try {
|
|
422
422
|
await c(e);
|
|
423
423
|
} catch {
|
|
424
424
|
d(null), D(!0);
|
|
425
425
|
} finally {
|
|
426
|
-
|
|
426
|
+
m(!1);
|
|
427
427
|
}
|
|
428
428
|
}
|
|
429
429
|
}, h = Ln({
|
|
@@ -443,11 +443,11 @@ const En = (n) => {
|
|
|
443
443
|
hasDiffContent: l
|
|
444
444
|
}));
|
|
445
445
|
}, [e, l]), oe(() => {
|
|
446
|
-
!c || !h ||
|
|
446
|
+
!c || !h || p || g();
|
|
447
447
|
}), {
|
|
448
448
|
isLoadingDiff: f,
|
|
449
|
-
loadError:
|
|
450
|
-
shouldAutoLoadDiff: !!c && h && !
|
|
449
|
+
loadError: p,
|
|
450
|
+
shouldAutoLoadDiff: !!c && h && !p,
|
|
451
451
|
loadDiff: g
|
|
452
452
|
};
|
|
453
453
|
}, An = (n) => {
|
|
@@ -460,11 +460,11 @@ const En = (n) => {
|
|
|
460
460
|
onLoadDiff: a,
|
|
461
461
|
hasOptedIntoLargeDiff: c,
|
|
462
462
|
onShowFullDiff: f,
|
|
463
|
-
diffViewMode:
|
|
464
|
-
} = n, u = o === void 0 ? !1 : o, d = l === void 0 ? !0 : l,
|
|
463
|
+
diffViewMode: m
|
|
464
|
+
} = n, u = o === void 0 ? !1 : o, d = l === void 0 ? !0 : l, p = c === void 0 ? !1 : c, D = m === void 0 ? "unified" : m;
|
|
465
465
|
let g, h, S, C, y, P;
|
|
466
466
|
e[0] !== t ? (g = St(t), y = t.oldContent || "", C = t.newContent || "", S = bt(t), h = bn(g), P = Ue(g) && !we(g), e[0] = t, e[1] = g, e[2] = h, e[3] = S, e[4] = C, e[5] = y, e[6] = P) : (g = e[1], h = e[2], S = e[3], C = e[4], y = e[5], P = e[6]);
|
|
467
|
-
const x = P, E = t.oldContent !== void 0 || t.newContent !== void 0, b = S && !
|
|
467
|
+
const x = P, E = t.oldContent !== void 0 || t.newContent !== void 0, b = S && !p;
|
|
468
468
|
let v;
|
|
469
469
|
e[7] !== x || e[8] !== g || e[9] !== E || e[10] !== d || e[11] !== h || e[12] !== u || e[13] !== a || e[14] !== b ? (v = {
|
|
470
470
|
filePath: g,
|
|
@@ -490,7 +490,7 @@ const En = (n) => {
|
|
|
490
490
|
e[17] !== t || e[18] !== d || e[19] !== s ? (_ = /* @__PURE__ */ r(Mn, { diff: t, isExpanded: d, onToggleExpanded: s }), e[17] = t, e[18] = d, e[19] = s, e[20] = _) : _ = e[20];
|
|
491
491
|
const A = !!a;
|
|
492
492
|
let k;
|
|
493
|
-
e[21] !== x || e[22] !== t || e[23] !== D || e[24] !== g || e[25] !== E || e[26] !==
|
|
493
|
+
e[21] !== x || e[22] !== t || e[23] !== D || e[24] !== g || e[25] !== E || e[26] !== p || e[27] !== d || e[28] !== h || e[29] !== S || e[30] !== w || e[31] !== M || e[32] !== I || e[33] !== C || e[34] !== y || e[35] !== f || e[36] !== L || e[37] !== A ? (k = /* @__PURE__ */ r(In, { diff: t, filePath: g, oldContent: y, newContent: C, isExpanded: d, isLargeDiff: S, isGeneratedDiff: h, isBinaryDiff: x, hasDiffContent: E, canLoadDiff: A, shouldAutoLoadDiff: L, loadError: I, isLoadingDiff: w, onLoadDiff: M, hasOptedIntoLargeDiff: p, onShowFullDiff: f, diffViewMode: D }), e[21] = x, e[22] = t, e[23] = D, e[24] = g, e[25] = E, e[26] = p, e[27] = d, e[28] = h, e[29] = S, e[30] = w, e[31] = M, e[32] = I, e[33] = C, e[34] = y, e[35] = f, e[36] = L, e[37] = A, e[38] = k) : k = e[38];
|
|
494
494
|
let R;
|
|
495
495
|
return e[39] !== i || e[40] !== k || e[41] !== z || e[42] !== _ ? (R = /* @__PURE__ */ G(O, { "data-testid": "diff-card", border: "1px solid", borderColor: z, borderRadius: "xs", overflow: "visible", bg: "bg", width: "100%", maxW: "100%", transition: "border-color 0.14s ease", _hover: T, onClick: i, children: [
|
|
496
496
|
_,
|
|
@@ -504,15 +504,15 @@ const En = (n) => {
|
|
|
504
504
|
} = n, s = o === void 0 ? !0 : o;
|
|
505
505
|
let i, a, c, f;
|
|
506
506
|
e[0] !== t ? (c = St(t), i = t.additions ?? 0, a = t.deletions ?? 0, f = Tn(c), e[0] = t, e[1] = i, e[2] = a, e[3] = c, e[4] = f) : (i = e[1], a = e[2], c = e[3], f = e[4]);
|
|
507
|
-
const
|
|
507
|
+
const m = f, [u, d] = X(!1), p = Z(null);
|
|
508
508
|
let D, g;
|
|
509
509
|
e[5] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (D = () => () => {
|
|
510
|
-
|
|
510
|
+
p.current !== null && window.clearTimeout(p.current);
|
|
511
511
|
}, g = [], e[5] = D, e[6] = g) : (D = e[5], g = e[6]), oe(D, g);
|
|
512
512
|
let h;
|
|
513
513
|
e[7] !== c ? (h = async () => {
|
|
514
514
|
try {
|
|
515
|
-
await navigator.clipboard.writeText(c), d(!0),
|
|
515
|
+
await navigator.clipboard.writeText(c), d(!0), p.current !== null && window.clearTimeout(p.current), p.current = window.setTimeout(() => d(!1), 1200);
|
|
516
516
|
} catch {
|
|
517
517
|
d(!1);
|
|
518
518
|
}
|
|
@@ -568,7 +568,7 @@ const En = (n) => {
|
|
|
568
568
|
B
|
|
569
569
|
] }), e[44] = L, e[45] = B, e[46] = V) : V = e[46];
|
|
570
570
|
let j;
|
|
571
|
-
e[47] !== i || e[48] !== a || e[49] !==
|
|
571
|
+
e[47] !== i || e[48] !== a || e[49] !== m ? (j = m ? /* @__PURE__ */ r(O, { flexShrink: 0, children: /* @__PURE__ */ r(st, { variant: "ghost", additions: i, deletions: a }) }) : null, e[47] = i, e[48] = a, e[49] = m, e[50] = j) : j = e[50];
|
|
572
572
|
let W;
|
|
573
573
|
return e[51] !== w || e[52] !== V || e[53] !== j || e[54] !== C || e[55] !== y || e[56] !== x ? (W = /* @__PURE__ */ G(We, { "data-testid": "diff-card-header", templateColumns: "auto minmax(0, 1fr) auto", px: "xs", py: "2xs", alignItems: "center", justifyContent: "space-between", borderBottom: C, borderColor: "border.subtle", borderTopRadius: "xs", borderBottomRadius: y, position: "sticky", top: "0", zIndex: "1", bg: "bg", cursor: "pointer", transition: "background 0.14s ease", _hover: P, onClick: x, gap: "sm", children: [
|
|
574
574
|
w,
|
|
@@ -603,9 +603,9 @@ const En = (n) => {
|
|
|
603
603
|
modified: e.newContent ?? "",
|
|
604
604
|
oldPath: e.oldPath,
|
|
605
605
|
newPath: e.newPath
|
|
606
|
-
}),
|
|
607
|
-
if (
|
|
608
|
-
const u =
|
|
606
|
+
}), m = l === "split" ? c : a;
|
|
607
|
+
if (m === 0 && f === 0) return Ae();
|
|
608
|
+
const u = m * kn + f * Rn;
|
|
609
609
|
return Qe + u + Me;
|
|
610
610
|
}, $n = (n) => n.newPath ?? n.oldPath ?? "unknown", Vn = 24, jn = (n) => {
|
|
611
611
|
const {
|
|
@@ -618,15 +618,15 @@ const En = (n) => {
|
|
|
618
618
|
let i = t, a = t ? `selected:${t}` : null;
|
|
619
619
|
const c = l?.action === "expand-selected" ? l.id : null, f = c !== null && s === c;
|
|
620
620
|
l?.action === "expand-selected" && l.path && (i = l.path, a = `command:${l.id}:${l.path}`);
|
|
621
|
-
let
|
|
621
|
+
let m = a;
|
|
622
622
|
if (i && a) {
|
|
623
|
-
const
|
|
624
|
-
|
|
623
|
+
const p = o.has(i) ? "collapsed" : "expanded";
|
|
624
|
+
m = `${a}:${p}`;
|
|
625
625
|
}
|
|
626
|
-
const u = i ? e.findIndex((
|
|
626
|
+
const u = i ? e.findIndex((p) => $n(p) === i) : -1, d = u >= 0 && l?.action === "expand-selected" && l.direction === "up" && !f;
|
|
627
627
|
return {
|
|
628
628
|
selectedScrollPath: i,
|
|
629
|
-
selectedScrollKey:
|
|
629
|
+
selectedScrollKey: m,
|
|
630
630
|
selectedScrollCommandId: c,
|
|
631
631
|
selectedScrollIndex: u,
|
|
632
632
|
shouldPinSelectedScrollIndex: d,
|
|
@@ -652,7 +652,7 @@ const En = (n) => {
|
|
|
652
652
|
scrollRef: i,
|
|
653
653
|
virtualizerRef: a,
|
|
654
654
|
suppressScrollAdjustRef: c
|
|
655
|
-
} = n, [f,
|
|
655
|
+
} = n, [f, m] = X(null);
|
|
656
656
|
let u;
|
|
657
657
|
e[0] !== l || e[1] !== f || e[2] !== t || e[3] !== s || e[4] !== o ? (u = jn({
|
|
658
658
|
diffs: t,
|
|
@@ -663,15 +663,15 @@ const En = (n) => {
|
|
|
663
663
|
}), e[0] = l, e[1] = f, e[2] = t, e[3] = s, e[4] = o, e[5] = u) : u = e[5];
|
|
664
664
|
const {
|
|
665
665
|
selectedScrollPath: d,
|
|
666
|
-
selectedScrollKey:
|
|
666
|
+
selectedScrollKey: p,
|
|
667
667
|
selectedScrollCommandId: D,
|
|
668
668
|
selectedScrollIndex: g,
|
|
669
669
|
shouldPinSelectedScrollIndex: h,
|
|
670
670
|
hasCompletedSelectedScroll: S
|
|
671
671
|
} = u;
|
|
672
672
|
let C, y;
|
|
673
|
-
e[6] !== l || e[7] !== t || e[8] !== S || e[9] !== i || e[10] !== D || e[11] !==
|
|
674
|
-
if (!d || !
|
|
673
|
+
e[6] !== l || e[7] !== t || e[8] !== S || e[9] !== i || e[10] !== D || e[11] !== p || e[12] !== d || e[13] !== c || e[14] !== a ? (C = () => {
|
|
674
|
+
if (!d || !p || S || l.has(d))
|
|
675
675
|
return;
|
|
676
676
|
const x = t.findIndex((T) => Qn(T) === d);
|
|
677
677
|
if (x < 0)
|
|
@@ -685,7 +685,7 @@ const En = (n) => {
|
|
|
685
685
|
const I = () => {
|
|
686
686
|
c.current = !1;
|
|
687
687
|
}, L = () => {
|
|
688
|
-
w = !0, I(), D !== null &&
|
|
688
|
+
w = !0, I(), D !== null && m(D);
|
|
689
689
|
};
|
|
690
690
|
let M = 0;
|
|
691
691
|
const z = () => {
|
|
@@ -693,7 +693,7 @@ const En = (n) => {
|
|
|
693
693
|
if (E.scrollToIndex(x, {
|
|
694
694
|
align: "start"
|
|
695
695
|
}), M = M + 1, M >= Wn && D !== null) {
|
|
696
|
-
I(),
|
|
696
|
+
I(), m(D);
|
|
697
697
|
return;
|
|
698
698
|
}
|
|
699
699
|
if (M < Kn) {
|
|
@@ -712,7 +712,7 @@ const En = (n) => {
|
|
|
712
712
|
for (const T of v)
|
|
713
713
|
cancelAnimationFrame(T);
|
|
714
714
|
};
|
|
715
|
-
}, y = [
|
|
715
|
+
}, y = [p, d, D, S, t, l, i, a, c], e[6] = l, e[7] = t, e[8] = S, e[9] = i, e[10] = D, e[11] = p, e[12] = d, e[13] = c, e[14] = a, e[15] = C, e[16] = y) : (C = e[15], y = e[16]), Ge(C, y);
|
|
716
716
|
let P;
|
|
717
717
|
return e[17] !== g || e[18] !== h ? (P = {
|
|
718
718
|
selectedScrollIndex: g,
|
|
@@ -744,16 +744,16 @@ function el(n) {
|
|
|
744
744
|
onExpansionStateChange: s,
|
|
745
745
|
expansionCommand: i = null,
|
|
746
746
|
diffViewMode: a = "unified"
|
|
747
|
-
} = n, c = Z(null), f = Z(null),
|
|
747
|
+
} = n, c = Z(null), f = Z(null), m = Z(null), u = Z(!1), d = Z(null), [p, D] = X(() => Yn(e)), [g, h] = X(() => /* @__PURE__ */ new Set()), {
|
|
748
748
|
selectedScrollIndex: S,
|
|
749
749
|
shouldPinSelectedScrollIndex: C
|
|
750
750
|
} = qn({
|
|
751
751
|
diffs: e,
|
|
752
752
|
selectedDiffPath: t,
|
|
753
|
-
collapsedPaths:
|
|
753
|
+
collapsedPaths: p,
|
|
754
754
|
expansionCommand: i,
|
|
755
755
|
scrollRef: c,
|
|
756
|
-
virtualizerRef:
|
|
756
|
+
virtualizerRef: m,
|
|
757
757
|
suppressScrollAdjustRef: u
|
|
758
758
|
}), y = Nt({
|
|
759
759
|
count: e.length,
|
|
@@ -762,7 +762,7 @@ function el(n) {
|
|
|
762
762
|
const v = e[b], w = ee(v);
|
|
763
763
|
return On({
|
|
764
764
|
diff: v,
|
|
765
|
-
isCollapsed:
|
|
765
|
+
isCollapsed: p.has(w),
|
|
766
766
|
hasOptedIntoLargeDiff: g.has(w),
|
|
767
767
|
diffViewMode: a
|
|
768
768
|
});
|
|
@@ -778,7 +778,7 @@ function el(n) {
|
|
|
778
778
|
});
|
|
779
779
|
}
|
|
780
780
|
});
|
|
781
|
-
if (y.shouldAdjustScrollPositionOnItemSizeChange = (b, v, w) => !w.isScrolling && !u.current,
|
|
781
|
+
if (y.shouldAdjustScrollPositionOnItemSizeChange = (b, v, w) => !w.isScrolling && !u.current, m.current = y, Ge(() => {
|
|
782
782
|
t && D((b) => xt(e, b, t));
|
|
783
783
|
}, [e, t]), Ge(() => {
|
|
784
784
|
if (i) {
|
|
@@ -794,11 +794,11 @@ function el(n) {
|
|
|
794
794
|
}
|
|
795
795
|
}, [e, i]), oe(() => {
|
|
796
796
|
const b = {
|
|
797
|
-
allExpanded:
|
|
798
|
-
allCollapsed: e.length > 0 && e.every((w) =>
|
|
797
|
+
allExpanded: p.size === 0,
|
|
798
|
+
allCollapsed: e.length > 0 && e.every((w) => p.has(ee(w)))
|
|
799
799
|
}, v = f.current;
|
|
800
800
|
v?.allExpanded === b.allExpanded && v.allCollapsed === b.allCollapsed || (f.current = b, s?.(b));
|
|
801
|
-
}, [
|
|
801
|
+
}, [p, e, s]), e.length === 0) return /* @__PURE__ */ r(zn, {});
|
|
802
802
|
const P = (b) => {
|
|
803
803
|
D((v) => Jn(v, b));
|
|
804
804
|
}, x = (b) => {
|
|
@@ -819,7 +819,7 @@ function el(n) {
|
|
|
819
819
|
const v = e[b.index], w = ee(v);
|
|
820
820
|
return /* @__PURE__ */ r(O, { "data-index": b.index, ref: y.measureElement, position: "absolute", left: "0", width: "100%", pb: "xs", style: {
|
|
821
821
|
top: `${b.start}px`
|
|
822
|
-
}, children: /* @__PURE__ */ r(An, { diff: v, isSelected: t === w, isExpanded: !
|
|
822
|
+
}, children: /* @__PURE__ */ r(An, { diff: v, isSelected: t === w, isExpanded: !p.has(w), onToggleExpanded: () => P(w), onSelect: () => l?.(w), onLoadDiff: o, hasOptedIntoLargeDiff: g.has(w), onShowFullDiff: () => x(w), diffViewMode: a }, w) }, b.key);
|
|
823
823
|
}) }) }) }) });
|
|
824
824
|
}
|
|
825
825
|
const tl = (n) => n.split("/").map((e) => e.trim()).filter(Boolean).join("/"), wt = (n) => (n.sort((e, t) => e.type !== t.type ? e.type === "folder" ? -1 : 1 : e.name.localeCompare(t.name)), n.forEach((e) => {
|
|
@@ -835,9 +835,9 @@ const tl = (n) => n.split("/").map((e) => e.trim()).filter(Boolean).join("/"), w
|
|
|
835
835
|
const s = l.split("/");
|
|
836
836
|
let i = "", a = null;
|
|
837
837
|
s.forEach((c, f) => {
|
|
838
|
-
const
|
|
839
|
-
if (
|
|
840
|
-
a =
|
|
838
|
+
const m = i ? `${i}/${c}` : c, u = f === s.length - 1, d = `${u ? "file" : "folder"}:${m}`, p = t.get(d);
|
|
839
|
+
if (p) {
|
|
840
|
+
a = p, i = m;
|
|
841
841
|
return;
|
|
842
842
|
}
|
|
843
843
|
const D = {
|
|
@@ -848,7 +848,7 @@ const tl = (n) => n.split("/").map((e) => e.trim()).filter(Boolean).join("/"), w
|
|
|
848
848
|
children: []
|
|
849
849
|
}
|
|
850
850
|
};
|
|
851
|
-
t.set(d, D), a ? a.children?.push(D) : o.push(D), a = D, i =
|
|
851
|
+
t.set(d, D), a ? a.children?.push(D) : o.push(D), a = D, i = m;
|
|
852
852
|
});
|
|
853
853
|
}), wt(o);
|
|
854
854
|
}, tt = (n) => {
|
|
@@ -926,10 +926,10 @@ const tl = (n) => n.split("/").map((e) => e.trim()).filter(Boolean).join("/"), w
|
|
|
926
926
|
} = n, c = s === void 0 ? void 0 : "menuitemradio";
|
|
927
927
|
let f;
|
|
928
928
|
e[0] !== s ? (f = s === void 0 ? void 0 : /* @__PURE__ */ r(sl, { selected: s }), e[0] = s, e[1] = f) : f = e[1];
|
|
929
|
-
let
|
|
930
|
-
e[2] !== i || e[3] !== l || e[4] !== t || e[5] !== o || e[6] !== a || e[7] !== s || e[8] !== c || e[9] !== f ? (
|
|
929
|
+
let m;
|
|
930
|
+
e[2] !== i || e[3] !== l || e[4] !== t || e[5] !== o || e[6] !== a || e[7] !== s || e[8] !== c || e[9] !== f ? (m = /* @__PURE__ */ r(en, { asChild: !0, role: c, "aria-checked": s, variant: "full-width", id: t, icon: l, label: o, disabled: i, isSelected: s, endContent: f, onActivate: a }), e[2] = i, e[3] = l, e[4] = t, e[5] = o, e[6] = a, e[7] = s, e[8] = c, e[9] = f, e[10] = m) : m = e[10];
|
|
931
931
|
let u;
|
|
932
|
-
return e[11] !== i || e[12] !== t || e[13] !==
|
|
932
|
+
return e[11] !== i || e[12] !== t || e[13] !== m ? (u = /* @__PURE__ */ r(J.Item, { value: t, disabled: i, asChild: !0, children: m }), e[11] = i, e[12] = t, e[13] = m, e[14] = u) : u = e[14], u;
|
|
933
933
|
}, rl = (n) => {
|
|
934
934
|
const e = F(40), {
|
|
935
935
|
isTreePanelOpen: t,
|
|
@@ -940,12 +940,12 @@ const tl = (n) => n.split("/").map((e) => e.trim()).filter(Boolean).join("/"), w
|
|
|
940
940
|
isCollapseAllDisabled: a,
|
|
941
941
|
onToggleTreePanel: c,
|
|
942
942
|
onViewModeChange: f,
|
|
943
|
-
onDiffViewModeChange:
|
|
943
|
+
onDiffViewModeChange: m,
|
|
944
944
|
onExpandAll: u,
|
|
945
945
|
onCollapseAll: d
|
|
946
946
|
} = n;
|
|
947
|
-
let
|
|
948
|
-
e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
947
|
+
let p;
|
|
948
|
+
e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (p = /* @__PURE__ */ r(J.Trigger, { asChild: !0, children: /* @__PURE__ */ r(Ke, { "aria-label": "Diff view options", variant: "ghost", size: "sm", children: /* @__PURE__ */ r(jt, { size: 14 }) }) }), e[0] = p) : p = e[0];
|
|
949
949
|
let D;
|
|
950
950
|
e[1] !== t ? (D = t ? /* @__PURE__ */ r(Kt, { size: 14 }) : /* @__PURE__ */ r(Qt, { size: 14 }), e[1] = t, e[2] = D) : D = e[2];
|
|
951
951
|
const g = t ? "Hide file tree" : "Show file tree";
|
|
@@ -963,14 +963,14 @@ const tl = (n) => n.split("/").map((e) => e.trim()).filter(Boolean).join("/"), w
|
|
|
963
963
|
e[12] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (y = /* @__PURE__ */ r(qt, { size: 14 }), e[12] = y) : y = e[12];
|
|
964
964
|
const P = s === "unified";
|
|
965
965
|
let x;
|
|
966
|
-
e[13] !==
|
|
966
|
+
e[13] !== m ? (x = () => m("unified"), e[13] = m, e[14] = x) : x = e[14];
|
|
967
967
|
let E;
|
|
968
968
|
e[15] !== P || e[16] !== x ? (E = /* @__PURE__ */ r(ne, { id: "unified", icon: y, label: "Unified", selected: P, onActivate: x }), e[15] = P, e[16] = x, e[17] = E) : E = e[17];
|
|
969
969
|
let b;
|
|
970
970
|
e[18] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (b = /* @__PURE__ */ r(Ut, { size: 14 }), e[18] = b) : b = e[18];
|
|
971
971
|
const v = s === "split";
|
|
972
972
|
let w;
|
|
973
|
-
e[19] !==
|
|
973
|
+
e[19] !== m ? (w = () => m("split"), e[19] = m, e[20] = w) : w = e[20];
|
|
974
974
|
let I;
|
|
975
975
|
e[21] !== v || e[22] !== w ? (I = /* @__PURE__ */ r(ne, { id: "split", icon: b, label: "Split", selected: v, onActivate: w }), e[21] = v, e[22] = w, e[23] = I) : I = e[23];
|
|
976
976
|
let L;
|
|
@@ -985,7 +985,7 @@ const tl = (n) => n.split("/").map((e) => e.trim()).filter(Boolean).join("/"), w
|
|
|
985
985
|
e[30] !== a || e[31] !== d ? (_ = /* @__PURE__ */ r(ne, { id: "collapse-all", icon: T, label: "Collapse all", disabled: a, onActivate: d }), e[30] = a, e[31] = d, e[32] = _) : _ = e[32];
|
|
986
986
|
let A;
|
|
987
987
|
return e[33] !== I || e[34] !== z || e[35] !== _ || e[36] !== h || e[37] !== C || e[38] !== E ? (A = /* @__PURE__ */ G(J.Root, { children: [
|
|
988
|
-
|
|
988
|
+
p,
|
|
989
989
|
/* @__PURE__ */ r(J.Positioner, { children: /* @__PURE__ */ G(J.Content, { minW: "190px", bg: "bg", p: "0", gap: "0", children: [
|
|
990
990
|
h,
|
|
991
991
|
S,
|
|
@@ -1085,7 +1085,7 @@ const tl = (n) => n.split("/").map((e) => e.trim()).filter(Boolean).join("/"), w
|
|
|
1085
1085
|
onActivate: () => o(a)
|
|
1086
1086
|
};
|
|
1087
1087
|
});
|
|
1088
|
-
},
|
|
1088
|
+
}, pl = (n) => {
|
|
1089
1089
|
const e = F(23), {
|
|
1090
1090
|
paths: t,
|
|
1091
1091
|
selectedPath: o,
|
|
@@ -1095,22 +1095,22 @@ const tl = (n) => n.split("/").map((e) => e.trim()).filter(Boolean).join("/"), w
|
|
|
1095
1095
|
onSelectPath: a,
|
|
1096
1096
|
onSearchQueryChange: c,
|
|
1097
1097
|
onToggleFolder: f,
|
|
1098
|
-
resolveFileIcon:
|
|
1098
|
+
resolveFileIcon: m,
|
|
1099
1099
|
changeByPath: u
|
|
1100
1100
|
} = n, d = Z(null);
|
|
1101
|
-
let
|
|
1102
|
-
if (e[0] !== u || e[1] !== a || e[2] !== t || e[3] !==
|
|
1101
|
+
let p;
|
|
1102
|
+
if (e[0] !== u || e[1] !== a || e[2] !== t || e[3] !== m || e[4] !== l) {
|
|
1103
1103
|
const E = ze(t, l);
|
|
1104
|
-
|
|
1104
|
+
p = Ct({
|
|
1105
1105
|
nodes: E,
|
|
1106
1106
|
viewMode: l,
|
|
1107
1107
|
onSelectPath: a,
|
|
1108
|
-
resolveFileIcon:
|
|
1108
|
+
resolveFileIcon: m,
|
|
1109
1109
|
changeByPath: u
|
|
1110
|
-
}), e[0] = u, e[1] = a, e[2] = t, e[3] =
|
|
1110
|
+
}), e[0] = u, e[1] = a, e[2] = t, e[3] = m, e[4] = l, e[5] = p;
|
|
1111
1111
|
} else
|
|
1112
|
-
|
|
1113
|
-
const D =
|
|
1112
|
+
p = e[5];
|
|
1113
|
+
const D = p, g = s.trim() ? "No matching files" : "No changed files";
|
|
1114
1114
|
let h;
|
|
1115
1115
|
e[6] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (h = /* @__PURE__ */ r(Zt, { size: 14 }), e[6] = h) : h = e[6];
|
|
1116
1116
|
let S;
|
|
@@ -1133,7 +1133,7 @@ const tl = (n) => n.split("/").map((e) => e.trim()).filter(Boolean).join("/"), w
|
|
|
1133
1133
|
C,
|
|
1134
1134
|
P
|
|
1135
1135
|
] }), e[20] = C, e[21] = P, e[22] = x) : x = e[22], x;
|
|
1136
|
-
}, le = (n) => n.newPath ?? n.oldPath ?? "unknown",
|
|
1136
|
+
}, le = (n) => n.newPath ?? n.oldPath ?? "unknown", ml = (n) => new Map(n.map((e) => [le(e), e.change])), gl = (n) => n.reduce((e, t) => ({
|
|
1137
1137
|
additions: e.additions + (t.additions ?? 0),
|
|
1138
1138
|
deletions: e.deletions + (t.deletions ?? 0)
|
|
1139
1139
|
}), {
|
|
@@ -1146,8 +1146,8 @@ const tl = (n) => n.split("/").map((e) => e.trim()).filter(Boolean).join("/"), w
|
|
|
1146
1146
|
viewMode: o
|
|
1147
1147
|
} = n, l = t ? e.filter((a) => le(a).toLowerCase().includes(t)) : e, s = ol(l.map(le), o), i = new Map(s.map((a, c) => [a, c]));
|
|
1148
1148
|
return [...l].sort((a, c) => {
|
|
1149
|
-
const f = i.get(le(a)) ?? Number.MAX_SAFE_INTEGER,
|
|
1150
|
-
return f -
|
|
1149
|
+
const f = i.get(le(a)) ?? Number.MAX_SAFE_INTEGER, m = i.get(le(c)) ?? Number.MAX_SAFE_INTEGER;
|
|
1150
|
+
return f - m;
|
|
1151
1151
|
});
|
|
1152
1152
|
}, nt = (n, e) => n[0] ?? e[0] ?? null, Sl = ["first", "second", "third"], xl = () => {
|
|
1153
1153
|
const n = F(1);
|
|
@@ -1161,13 +1161,13 @@ const tl = (n) => n.split("/").map((e) => e.trim()).filter(Boolean).join("/"), w
|
|
|
1161
1161
|
loading: s,
|
|
1162
1162
|
onLoadDiff: i,
|
|
1163
1163
|
resolveFileIcon: a
|
|
1164
|
-
} = n, c = l === void 0 ? null : l, f = s === void 0 ? !1 : s, [
|
|
1164
|
+
} = n, c = l === void 0 ? null : l, f = s === void 0 ? !1 : s, [m, u] = X(null);
|
|
1165
1165
|
let d;
|
|
1166
1166
|
e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (d = {
|
|
1167
1167
|
allExpanded: !1,
|
|
1168
1168
|
allCollapsed: !1
|
|
1169
1169
|
}, e[0] = d) : d = e[0];
|
|
1170
|
-
const [
|
|
1170
|
+
const [p, D] = X(d), {
|
|
1171
1171
|
isTreePanelOpen: g,
|
|
1172
1172
|
viewMode: h,
|
|
1173
1173
|
diffViewMode: S,
|
|
@@ -1195,16 +1195,16 @@ const tl = (n) => n.split("/").map((e) => e.trim()).filter(Boolean).join("/"), w
|
|
|
1195
1195
|
viewMode: h
|
|
1196
1196
|
});
|
|
1197
1197
|
let te;
|
|
1198
|
-
e[25] !== t ? (te =
|
|
1198
|
+
e[25] !== t ? (te = ml(t), e[25] = t, e[26] = te) : te = e[26], _ = te, $ = N.map(le);
|
|
1199
1199
|
const je = ze(V, h);
|
|
1200
1200
|
j = h === "nested" ? tt(je) : [], B = V.join("\0"), R = $.join("\0"), H = y ?? c ?? nt($, V), W = N.length > 0, A = Q ? "No matching changes" : "No changes", ie = !f && !W, Y = gl(N), U = j.length > 0 || N.length > 0;
|
|
1201
|
-
let
|
|
1202
|
-
e[27] !== P ? (
|
|
1201
|
+
let me;
|
|
1202
|
+
e[27] !== P ? (me = (xe) => P.has(xe), e[27] = P, e[28] = me) : me = e[28], T = j.every(me);
|
|
1203
1203
|
let Fe;
|
|
1204
1204
|
e[29] !== P ? (Fe = (xe) => !P.has(xe), e[29] = P, e[30] = Fe) : Fe = e[30], De = j.every(Fe), e[1] = o, e[2] = c, e[3] = t, e[4] = P, e[5] = f, e[6] = C, e[7] = y, e[8] = h, e[9] = T, e[10] = _, e[11] = A, e[12] = k, e[13] = R, e[14] = $, e[15] = N, e[16] = B, e[17] = V, e[18] = j, e[19] = W, e[20] = U, e[21] = H, e[22] = ie, e[23] = De, e[24] = Y;
|
|
1205
1205
|
} else
|
|
1206
1206
|
T = e[9], _ = e[10], A = e[11], k = e[12], R = e[13], $ = e[14], N = e[15], B = e[16], V = e[17], j = e[18], W = e[19], U = e[20], H = e[21], ie = e[22], De = e[23], Y = e[24];
|
|
1207
|
-
const yt = De, Pt = N.length === 0 ||
|
|
1207
|
+
const yt = De, Pt = N.length === 0 || p.allExpanded, vt = N.length === 0 || p.allCollapsed, ke = !U || T && Pt, Re = !U || yt && vt;
|
|
1208
1208
|
let Ce, ye;
|
|
1209
1209
|
e[31] !== B || e[32] !== I || e[33] !== h ? (Ce = () => {
|
|
1210
1210
|
const K = B ? B.split("\0") : [], Q = ze(K, h);
|
|
@@ -1228,10 +1228,10 @@ const tl = (n) => n.split("/").map((e) => e.trim()).filter(Boolean).join("/"), w
|
|
|
1228
1228
|
let Le;
|
|
1229
1229
|
e[47] !== $ || e[48] !== H || e[49] !== w ? (Le = (K) => {
|
|
1230
1230
|
const Q = H ? $.indexOf(H) : -1, te = $.indexOf(K), je = Q >= 0 && te >= 0 && te < Q ? "up" : "down";
|
|
1231
|
-
w(K), u((
|
|
1231
|
+
w(K), u((me) => ({
|
|
1232
1232
|
action: "expand-selected",
|
|
1233
1233
|
direction: je,
|
|
1234
|
-
id: (
|
|
1234
|
+
id: (me?.id ?? 0) + 1,
|
|
1235
1235
|
path: K
|
|
1236
1236
|
}));
|
|
1237
1237
|
}, e[47] = $, e[48] = H, e[49] = w, e[50] = Le) : Le = e[50];
|
|
@@ -1255,7 +1255,7 @@ const tl = (n) => n.split("/").map((e) => e.trim()).filter(Boolean).join("/"), w
|
|
|
1255
1255
|
ce
|
|
1256
1256
|
] }), e[75] = de, e[76] = ce, e[77] = fe) : fe = e[77];
|
|
1257
1257
|
let he;
|
|
1258
|
-
e[78] !==
|
|
1258
|
+
e[78] !== m || e[79] !== S || e[80] !== A || e[81] !== N || e[82] !== W || e[83] !== f || e[84] !== i || e[85] !== H || e[86] !== w ? (he = f ? /* @__PURE__ */ r(xl, {}) : W ? /* @__PURE__ */ r(O, { flex: "1", minH: "0", children: /* @__PURE__ */ r(el, { diffs: N, selectedDiffPath: H, onLoadDiff: i, onSelectDiffPath: w, onExpansionStateChange: D, expansionCommand: m, diffViewMode: S }) }) : /* @__PURE__ */ r(O, { flex: "1", minH: "0", px: "md", py: "lg", display: "flex", alignItems: "center", justifyContent: "center", bg: "bg", children: /* @__PURE__ */ r(Se, { title: A }) }), e[78] = m, e[79] = S, e[80] = A, e[81] = N, e[82] = W, e[83] = f, e[84] = i, e[85] = H, e[86] = w, e[87] = he) : he = e[87];
|
|
1259
1259
|
let _e;
|
|
1260
1260
|
e[88] !== fe || e[89] !== he ? (_e = /* @__PURE__ */ G(be, { h: "full", minH: "0", minW: "0", flex: "1", bg: "bg", gap: "0", children: [
|
|
1261
1261
|
fe,
|
|
@@ -1263,12 +1263,12 @@ const tl = (n) => n.split("/").map((e) => e.trim()).filter(Boolean).join("/"), w
|
|
|
1263
1263
|
] }), e[88] = fe, e[89] = he, e[90] = _e) : _e = e[90];
|
|
1264
1264
|
const $e = _e;
|
|
1265
1265
|
let ue;
|
|
1266
|
-
e[91] !== _ || e[92] !== P || e[93] !== V || e[94] !== a || e[95] !== H || e[96] !== C || e[97] !== He || e[98] !== v || e[99] !== L || e[100] !== h ? (ue = /* @__PURE__ */ r(
|
|
1266
|
+
e[91] !== _ || e[92] !== P || e[93] !== V || e[94] !== a || e[95] !== H || e[96] !== C || e[97] !== He || e[98] !== v || e[99] !== L || e[100] !== h ? (ue = /* @__PURE__ */ r(pl, { paths: V, selectedPath: H, viewMode: h, searchQuery: C, expandedFolderIds: P, onSelectPath: He, onSearchQueryChange: v, onToggleFolder: L, resolveFileIcon: a, changeByPath: _ }), e[91] = _, e[92] = P, e[93] = V, e[94] = a, e[95] = H, e[96] = C, e[97] = He, e[98] = v, e[99] = L, e[100] = h, e[101] = ue) : ue = e[101];
|
|
1267
1267
|
const Ve = !g;
|
|
1268
|
-
let
|
|
1269
|
-
e[102] !== x ? (
|
|
1268
|
+
let pe;
|
|
1269
|
+
e[102] !== x ? (pe = (K) => x(!K), e[102] = x, e[103] = pe) : pe = e[103];
|
|
1270
1270
|
let Te;
|
|
1271
|
-
return e[104] !== $e || e[105] !== ue || e[106] !== Ve || e[107] !==
|
|
1271
|
+
return e[104] !== $e || e[105] !== ue || e[106] !== Ve || e[107] !== pe ? (Te = /* @__PURE__ */ r(Bt, { flex: "1", minH: "0", minW: "0", bg: "bg", gap: "0", "data-testid": "diff-viewer", children: /* @__PURE__ */ r(nn, { flex: "1", minH: "0", minW: "0", resizablePanel: ue, contentPanel: $e, collapsed: Ve, defaultSizePx: 288, minSizePx: 224, contentMinSizePx: 320, resizeLabel: "Resize file list panel", separator: "line", onCollapsedChange: pe }) }), e[104] = $e, e[105] = ue, e[106] = Ve, e[107] = pe, e[108] = Te) : Te = e[108], Te;
|
|
1272
1272
|
};
|
|
1273
1273
|
function wl(n) {
|
|
1274
1274
|
return /* @__PURE__ */ r(at, { h: "72px", w: "full", flexShrink: "0", borderRadius: "xs" }, n);
|
|
@@ -1292,7 +1292,7 @@ export {
|
|
|
1292
1292
|
el as DiffDrawer,
|
|
1293
1293
|
Hl as DiffViewer,
|
|
1294
1294
|
fl as FileChangeBadge,
|
|
1295
|
-
|
|
1295
|
+
pn as LARGE_DIFF_LINE_THRESHOLD,
|
|
1296
1296
|
Ue as isBinaryDiffPath,
|
|
1297
1297
|
bn as isGeneratedDiffPath,
|
|
1298
1298
|
ft as preloadCodeEditor,
|