@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/{PullRequestReviewAnnotation-LeuwO-iH.js → PullRequestReviewAnnotation-xg3n0doV.js}
RENAMED
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
import { c as e, i as t } from "./session-
|
|
1
|
+
import { c as e, i as t } from "./session-Decc4Fo5.js";
|
|
2
2
|
import { c as n, n as r, s as i } from "./messages-yqmY7G5x.js";
|
|
3
|
-
import { $r as a, C_ as o, Ds as s,
|
|
4
|
-
import { Ao as
|
|
5
|
-
import { t as
|
|
6
|
-
import { i as
|
|
7
|
-
import { a as
|
|
8
|
-
import { o as
|
|
9
|
-
import { t as
|
|
3
|
+
import { $r as a, C_ as o, Ds as s, Ef as c, Io as l, Ja as u, No as d, Oo as f, Qr as p, S_ as m, Tf as h, To as g, Xr as _, Zr as v, _s as y, b_ as b, bi as x, bs as S, ci as C, ei as ee, es as te, go as ne, gr as w, hr as T, ks as E, mo as D, oi as re, qa as O, ri as k, so as A, t as j, uo as M, w_ as N, wo as ie, ws as ae, x_ as oe, xs as se, yd as P, yr as F } from "./utils-DtKQl-D3.js";
|
|
4
|
+
import { Ao as ce, ct as I } from "./keybindings-D0pBlT1k.js";
|
|
5
|
+
import { t as L } from "./external-link-BJbZG79p.js";
|
|
6
|
+
import { i as le } from "./triangle-alert-CpJvcOXh.js";
|
|
7
|
+
import { a as ue, i as de, o as fe, r as R, t as z } from "./smile-plus-DQGGycyd.js";
|
|
8
|
+
import { o as pe } from "./workflow-CZPqzM2D.js";
|
|
9
|
+
import { t as B } from "./message-square-BdfBgRUA.js";
|
|
10
10
|
import { t as me } from "./trash-2-BSTDk3P8.js";
|
|
11
|
-
import { J as he, Y as V, dt as H, lt as U, t as W, tt as G, ut as K } from "./ChatMarkdown-
|
|
12
|
-
import { i as ge, o as _e, t as q } from "./popover-
|
|
13
|
-
import { t as ve } from "./useAriaLabelledBy-
|
|
14
|
-
import { s as ye } from "./presentation-
|
|
15
|
-
import { t as be } from "./use-atom-command-
|
|
16
|
-
import { n as xe, t as Se } from "./assetUrls-
|
|
17
|
-
import { T as Ce } from "./workspaceFocus-
|
|
18
|
-
import { s as we } from "./ExpandedImageDialog-
|
|
19
|
-
import { r as Te } from "./mediaSource-
|
|
20
|
-
import { B as Ee, Yt as De, jn as Oe, n as ke, on as Ae, ot as J, st as je, t as Me } from "./useTextFieldSpeech-
|
|
21
|
-
import { n as Ne, t as Pe } from "./toggle-group-
|
|
22
|
-
import { n as Fe, r as Ie } from "./DiffCommentAnnotation-
|
|
23
|
-
import { t as Le } from "./RelativeTime-
|
|
11
|
+
import { J as he, Y as V, dt as H, lt as U, t as W, tt as G, ut as K } from "./ChatMarkdown-DqKVAYd6.js";
|
|
12
|
+
import { i as ge, o as _e, t as q } from "./popover-BAyP2Tdr.js";
|
|
13
|
+
import { t as ve } from "./useAriaLabelledBy-CibvSz-b.js";
|
|
14
|
+
import { s as ye } from "./presentation-68y8EAuH.js";
|
|
15
|
+
import { t as be } from "./use-atom-command-XemtT1Gv.js";
|
|
16
|
+
import { n as xe, t as Se } from "./assetUrls-D8lRk7Xd.js";
|
|
17
|
+
import { T as Ce } from "./workspaceFocus-MR1plm6A.js";
|
|
18
|
+
import { s as we } from "./ExpandedImageDialog-tCY2TFXU.js";
|
|
19
|
+
import { r as Te } from "./mediaSource-jW5c7b4r.js";
|
|
20
|
+
import { B as Ee, Yt as De, jn as Oe, n as ke, on as Ae, ot as J, st as je, t as Me } from "./useTextFieldSpeech-XN9r-f-r.js";
|
|
21
|
+
import { n as Ne, t as Pe } from "./toggle-group-l8hRPswr.js";
|
|
22
|
+
import { n as Fe, r as Ie } from "./DiffCommentAnnotation-CCtanhmq.js";
|
|
23
|
+
import { t as Le } from "./RelativeTime-DQhoNsWZ.js";
|
|
24
24
|
import * as Y from "react";
|
|
25
25
|
import { createContext as Re, useContext as ze, useRef as Be, useState as X } from "react";
|
|
26
26
|
import { c as Z } from "react/compiler-runtime";
|
|
@@ -51,7 +51,7 @@ function qe(e) {
|
|
|
51
51
|
checked(t) {
|
|
52
52
|
return e.indeterminate ? {} : t ? { [Ge]: "" } : { [Ke]: "" };
|
|
53
53
|
},
|
|
54
|
-
...
|
|
54
|
+
...re
|
|
55
55
|
};
|
|
56
56
|
}
|
|
57
57
|
// ../../node_modules/.pnpm/@base-ui+react@1.9.0_@date-fns+tz@1.5.0_@types+react@19.3.0_date-fns@4.4.0_react-dom@19.3.0_react@19.3.0__react@19.3.0/node_modules/@base-ui/react/checkbox-group/CheckboxGroupContext.mjs
|
|
@@ -65,41 +65,41 @@ var Xe = /*#__PURE__*/ Y.createContext(void 0);
|
|
|
65
65
|
process.env.NODE_ENV !== "production" && (Xe.displayName = "CheckboxRootContext");
|
|
66
66
|
function Ze() {
|
|
67
67
|
let e = Y.useContext(Xe);
|
|
68
|
-
if (e === void 0) throw Error(process.env.NODE_ENV === "production" ?
|
|
68
|
+
if (e === void 0) throw Error(process.env.NODE_ENV === "production" ? E(14) : "Base UI: CheckboxRootContext is missing. Checkbox parts must be placed within <Checkbox.Root>.");
|
|
69
69
|
return e;
|
|
70
70
|
}
|
|
71
71
|
// ../../node_modules/.pnpm/@base-ui+react@1.9.0_@date-fns+tz@1.5.0_@types+react@19.3.0_date-fns@4.4.0_react-dom@19.3.0_react@19.3.0__react@19.3.0/node_modules/@base-ui/react/checkbox/root/CheckboxRoot.mjs
|
|
72
72
|
var Qe = "data-parent", $e = /*#__PURE__*/ Y.forwardRef(function(e, t) {
|
|
73
|
-
let { checked: n, className: r, defaultChecked: i = !1, "aria-labelledby": o, disabled:
|
|
74
|
-
id:
|
|
73
|
+
let { checked: n, className: r, defaultChecked: i = !1, "aria-labelledby": o, disabled: c = !1, form: m, id: h, indeterminate: y = !1, inputRef: b, name: C, onCheckedChange: w, parent: T = !1, readOnly: E = !1, render: re, required: A = !1, uncheckedValue: j, value: M, nativeButton: N = !1, style: oe, ...P } = e, { clearErrors: F } = ee(), { disabled: ce, name: I, setDirty: L, setFilled: le, setTouched: ue, state: de, validationMode: fe, validityData: R, validation: z } = k(), pe = Ue(), { labelId: B, registerControlId: me, getDescriptionProps: he } = a(), V = Ye(), H = V?.allValues === void 0 ? void 0 : V.parent, U = H !== void 0, W = ce || pe.disabled || V?.disabled || c, G = I ?? C, K = M ?? G, ge = ne(), _e = V?.registerControlId !== me, q = p({
|
|
74
|
+
id: h || void 0,
|
|
75
75
|
enabled: _e
|
|
76
76
|
}), ye = N ? q : ge, be = {};
|
|
77
77
|
U && (T ? be = H.getParentProps() : K !== void 0 && (be = H.getChildProps(K)));
|
|
78
|
-
let { checked: xe = n, indeterminate: Se = y, onCheckedChange: Ce, ...we } = be, Te = V?.value, Ee = Y.useRef(null), De =
|
|
78
|
+
let { checked: xe = n, indeterminate: Se = y, onCheckedChange: Ce, ...we } = be, Te = V?.value, Ee = Y.useRef(null), De = v(W, Ee), { getButtonProps: Oe, buttonRef: ke } = ie({
|
|
79
79
|
disabled: W,
|
|
80
80
|
native: N
|
|
81
|
-
}), Ae = V?.validation ??
|
|
81
|
+
}), Ae = V?.validation ?? z, [J, je] = l({
|
|
82
82
|
controlled: K !== void 0 && Te !== void 0 && !T ? Te.includes(K) : xe,
|
|
83
83
|
default: i,
|
|
84
84
|
name: "Checkbox",
|
|
85
85
|
state: "checked"
|
|
86
86
|
}), Me = U ? !!xe : J, Ne = U && Se || y;
|
|
87
|
-
|
|
87
|
+
_(Ee, ge, J, void 0, !V && !W, C);
|
|
88
88
|
let Pe = H?.registerChildId, Fe = Y.useRef(null), Ie = Ae.registerInput, Le = V ? K : void 0, Re = Y.useCallback((e) => Ie(e, {
|
|
89
89
|
controlRef: Ee,
|
|
90
90
|
value: Le
|
|
91
|
-
}), [Ie, Le]), ze = s(
|
|
92
|
-
|
|
93
|
-
Fe.current && (Fe.current.indeterminate = Ne), V ||
|
|
91
|
+
}), [Ie, Le]), ze = s(b, Fe, T ? void 0 : Re), Be = ve(o, B, Fe, !N, q, P["aria-label"]);
|
|
92
|
+
f(() => {
|
|
93
|
+
Fe.current && (Fe.current.indeterminate = Ne), V || le(J);
|
|
94
94
|
}, [
|
|
95
95
|
J,
|
|
96
96
|
Ne,
|
|
97
97
|
V,
|
|
98
|
-
|
|
99
|
-
]),
|
|
100
|
-
V || (
|
|
98
|
+
le
|
|
99
|
+
]), x(J, () => {
|
|
100
|
+
V || (F(G), L(J !== R.initialValue), Ae.change(J));
|
|
101
101
|
});
|
|
102
|
-
let X =
|
|
102
|
+
let X = se({
|
|
103
103
|
checked: J,
|
|
104
104
|
disabled: W,
|
|
105
105
|
form: m,
|
|
@@ -107,18 +107,18 @@ var Qe = "data-parent", $e = /*#__PURE__*/ Y.forwardRef(function(e, t) {
|
|
|
107
107
|
id: N ? void 0 : q,
|
|
108
108
|
required: A,
|
|
109
109
|
ref: ze,
|
|
110
|
-
style: G ?
|
|
110
|
+
style: G ? u : O,
|
|
111
111
|
tabIndex: -1,
|
|
112
112
|
type: "checkbox",
|
|
113
113
|
"aria-hidden": !0,
|
|
114
114
|
onChange(e) {
|
|
115
115
|
if (e.nativeEvent.defaultPrevented) return;
|
|
116
|
-
if (
|
|
116
|
+
if (E) {
|
|
117
117
|
e.preventDefault();
|
|
118
118
|
return;
|
|
119
119
|
}
|
|
120
|
-
let t = e.currentTarget.checked, n =
|
|
121
|
-
if (
|
|
120
|
+
let t = e.currentTarget.checked, n = D(te, e.nativeEvent);
|
|
121
|
+
if (w?.(t, n), !n.isCanceled && (Ce?.(t, n), !n.isCanceled && (je(t), K !== void 0 && V !== void 0 && !T && !U))) {
|
|
122
122
|
let e = t ? [...V.value, K] : V.value.filter((e) => e !== K);
|
|
123
123
|
V.setValue(e, n);
|
|
124
124
|
}
|
|
@@ -142,20 +142,20 @@ var Qe = "data-parent", $e = /*#__PURE__*/ Y.forwardRef(function(e, t) {
|
|
|
142
142
|
K
|
|
143
143
|
]);
|
|
144
144
|
let Z = Y.useMemo(() => ({
|
|
145
|
-
...
|
|
145
|
+
...de,
|
|
146
146
|
checked: Me,
|
|
147
147
|
disabled: W,
|
|
148
|
-
readOnly:
|
|
148
|
+
readOnly: E,
|
|
149
149
|
required: A,
|
|
150
150
|
indeterminate: Ne
|
|
151
151
|
}), [
|
|
152
|
-
|
|
152
|
+
de,
|
|
153
153
|
Me,
|
|
154
154
|
W,
|
|
155
|
-
|
|
155
|
+
E,
|
|
156
156
|
A,
|
|
157
157
|
Ne
|
|
158
|
-
]), Ve = qe(Z), He =
|
|
158
|
+
]), Ve = qe(Z), He = S("span", e, {
|
|
159
159
|
state: Z,
|
|
160
160
|
ref: [
|
|
161
161
|
ke,
|
|
@@ -167,7 +167,7 @@ var Qe = "data-parent", $e = /*#__PURE__*/ Y.forwardRef(function(e, t) {
|
|
|
167
167
|
id: ye,
|
|
168
168
|
role: "checkbox",
|
|
169
169
|
"aria-checked": Ne ? "mixed" : Me,
|
|
170
|
-
"aria-readonly":
|
|
170
|
+
"aria-readonly": E || void 0,
|
|
171
171
|
"aria-required": A || void 0,
|
|
172
172
|
"aria-labelledby": Be,
|
|
173
173
|
[Qe]: T ? "" : void 0,
|
|
@@ -176,7 +176,7 @@ var Qe = "data-parent", $e = /*#__PURE__*/ Y.forwardRef(function(e, t) {
|
|
|
176
176
|
},
|
|
177
177
|
onBlur() {
|
|
178
178
|
let e = Fe.current;
|
|
179
|
-
e && (
|
|
179
|
+
e && (ue(!0), De(!1), fe === "onBlur" && Ae.commit(V ? Te : e.checked));
|
|
180
180
|
},
|
|
181
181
|
onKeyDown(e) {
|
|
182
182
|
if (e.key !== "Enter" || (e.preventBaseUIHandler(), e.defaultPrevented)) return;
|
|
@@ -185,18 +185,18 @@ var Qe = "data-parent", $e = /*#__PURE__*/ Y.forwardRef(function(e, t) {
|
|
|
185
185
|
o = !0, i.call(e);
|
|
186
186
|
}, r.preventDefault = () => {
|
|
187
187
|
o = !0, a.call(r);
|
|
188
|
-
}, a.call(r),
|
|
188
|
+
}, a.call(r), d(n).queueMicrotask(() => {
|
|
189
189
|
e.preventDefault = i, r.preventDefault = a, o || We(t)?.click();
|
|
190
190
|
});
|
|
191
191
|
},
|
|
192
192
|
onClick(e) {
|
|
193
|
-
if (
|
|
193
|
+
if (E || W) return;
|
|
194
194
|
e.preventDefault();
|
|
195
195
|
let t = Fe.current;
|
|
196
|
-
t &&
|
|
196
|
+
t && g(t, e);
|
|
197
197
|
}
|
|
198
198
|
},
|
|
199
|
-
|
|
199
|
+
P,
|
|
200
200
|
we,
|
|
201
201
|
Oe,
|
|
202
202
|
he,
|
|
@@ -204,7 +204,7 @@ var Qe = "data-parent", $e = /*#__PURE__*/ Y.forwardRef(function(e, t) {
|
|
|
204
204
|
],
|
|
205
205
|
stateAttributesMapping: Ve
|
|
206
206
|
}), Ge = He.props.id;
|
|
207
|
-
return
|
|
207
|
+
return f(() => {
|
|
208
208
|
if (Pe && !T && K !== void 0 && Ge !== void 0) return Pe(K, Ge);
|
|
209
209
|
}, [
|
|
210
210
|
Pe,
|
|
@@ -232,11 +232,11 @@ var Qe = "data-parent", $e = /*#__PURE__*/ Y.forwardRef(function(e, t) {
|
|
|
232
232
|
process.env.NODE_ENV !== "production" && ($e.displayName = "CheckboxRoot");
|
|
233
233
|
// ../../node_modules/.pnpm/@base-ui+react@1.9.0_@date-fns+tz@1.5.0_@types+react@19.3.0_date-fns@4.4.0_react-dom@19.3.0_react@19.3.0__react@19.3.0/node_modules/@base-ui/react/checkbox/indicator/CheckboxIndicator.mjs
|
|
234
234
|
var et = /*#__PURE__*/ Y.forwardRef(function(e, t) {
|
|
235
|
-
let { render: n, className: r, style: i, keepMounted: a = !1, ...o } = e, s = Ze(), c = s.checked || s.indeterminate, { mounted: l, transitionStatus: u, setMounted: d } =
|
|
235
|
+
let { render: n, className: r, style: i, keepMounted: a = !1, ...o } = e, s = Ze(), c = s.checked || s.indeterminate, { mounted: l, transitionStatus: u, setMounted: d } = M(c), f = Y.useRef(null), p = {
|
|
236
236
|
...s,
|
|
237
237
|
transitionStatus: u
|
|
238
238
|
};
|
|
239
|
-
|
|
239
|
+
A({
|
|
240
240
|
batch: !0,
|
|
241
241
|
enabled: !c,
|
|
242
242
|
open: c,
|
|
@@ -247,8 +247,8 @@ var et = /*#__PURE__*/ Y.forwardRef(function(e, t) {
|
|
|
247
247
|
});
|
|
248
248
|
let m = {
|
|
249
249
|
...qe(s),
|
|
250
|
-
...
|
|
251
|
-
}, h = a || l, g =
|
|
250
|
+
...y
|
|
251
|
+
}, h = a || l, g = S("span", e, {
|
|
252
252
|
ref: [t, f],
|
|
253
253
|
state: p,
|
|
254
254
|
stateAttributesMapping: m,
|
|
@@ -266,7 +266,7 @@ function it(e) {
|
|
|
266
266
|
let t = Z(11), n, r, i;
|
|
267
267
|
t[0] === e ? (n = t[1], r = t[2], i = t[3]) : ({className: n, variant: i, ...r} = e, t[0] = e, t[1] = n, t[2] = r, t[3] = i);
|
|
268
268
|
let a = rt[i === void 0 ? "default" : i], o;
|
|
269
|
-
t[4] !== n || t[5] !== a ? (o =
|
|
269
|
+
t[4] !== n || t[5] !== a ? (o = j(tt, a, n), t[4] = n, t[5] = a, t[6] = o) : o = t[6];
|
|
270
270
|
let s;
|
|
271
271
|
t[7] === Symbol.for("react.memo_cache_sentinel") ? (s = /* @__PURE__ */ Q(et, {
|
|
272
272
|
className: nt,
|
|
@@ -315,7 +315,7 @@ function ot(e) {
|
|
|
315
315
|
let t = Z(11), { checked: n, variant: r } = e, i = r === void 0 ? "default" : r, a;
|
|
316
316
|
t[0] === n ? a = t[1] : (a = n ? { "data-checked": "" } : { "data-unchecked": "" }, t[0] = n, t[1] = a);
|
|
317
317
|
let o = a, s = rt[i], c;
|
|
318
|
-
t[2] === s ? c = t[3] : (c =
|
|
318
|
+
t[2] === s ? c = t[3] : (c = j(tt, s), t[2] = s, t[3] = c);
|
|
319
319
|
let l;
|
|
320
320
|
t[4] === Symbol.for("react.memo_cache_sentinel") ? (l = /* @__PURE__ */ Q("svg", {
|
|
321
321
|
className: "size-3.5 text-current sm:size-3",
|
|
@@ -358,7 +358,7 @@ function wt(e) {
|
|
|
358
358
|
}
|
|
359
359
|
function Tt(e) {
|
|
360
360
|
let t = ut.exec(e.trim())?.[1] ?? ft.exec(e.trim())?.[1];
|
|
361
|
-
return t === void 0 || !wt(t) ? null : pt.test(t) ||
|
|
361
|
+
return t === void 0 || !wt(t) ? null : pt.test(t) || P.mediaUrl(t)?.kind === "video" ? {
|
|
362
362
|
url: t,
|
|
363
363
|
media: "video"
|
|
364
364
|
} : dt.test(t) ? {
|
|
@@ -509,7 +509,7 @@ function Mt(e, t) {
|
|
|
509
509
|
}
|
|
510
510
|
function Nt(e) {
|
|
511
511
|
if (!e) return null;
|
|
512
|
-
let t =
|
|
512
|
+
let t = P.get(e.provider).referenceAutolinks, n = P.parseChangeRequestUrl(e.url)?.link.repositoryUrl;
|
|
513
513
|
return t === void 0 || n === void 0 ? null : (e) => t(e, n);
|
|
514
514
|
}
|
|
515
515
|
function Pt(e, t) {
|
|
@@ -564,7 +564,7 @@ function Lt(e) {
|
|
|
564
564
|
var Rt = [], zt = /* @__PURE__ */ new Map();
|
|
565
565
|
function Bt(e) {
|
|
566
566
|
if (e === null) return Rt;
|
|
567
|
-
let t =
|
|
567
|
+
let t = P.parseChangeRequestUrl(e.url)?.link.repositoryUrl;
|
|
568
568
|
if (t === void 0) return Rt;
|
|
569
569
|
let n = `${e.provider}\u0000${t}`, r = zt.get(n);
|
|
570
570
|
if (r === void 0) {
|
|
@@ -614,14 +614,14 @@ function Gt(e) {
|
|
|
614
614
|
let t = Z(11), n, r;
|
|
615
615
|
t[0] === e ? (n = t[1], r = t[2]) : ({className: n, ...r} = e, t[0] = e, t[1] = n, t[2] = r);
|
|
616
616
|
let i;
|
|
617
|
-
t[3] === n ? i = t[4] : (i =
|
|
617
|
+
t[3] === n ? i = t[4] : (i = j("flex shrink-0 opacity-0 transition-opacity pointer-coarse:opacity-100 group-focus-within:opacity-100 group-hover:opacity-100 focus-within:opacity-100 motion-reduce:transition-none", n), t[3] = n, t[4] = i);
|
|
618
618
|
let a;
|
|
619
|
-
t[5] === Symbol.for("react.memo_cache_sentinel") ? (a = /* @__PURE__ */ Q(
|
|
619
|
+
t[5] === Symbol.for("react.memo_cache_sentinel") ? (a = /* @__PURE__ */ Q(pe, {
|
|
620
620
|
"aria-hidden": !0,
|
|
621
621
|
className: "size-3"
|
|
622
622
|
}), t[5] = a) : a = t[5];
|
|
623
623
|
let o;
|
|
624
|
-
t[6] === r ? o = t[7] : (o = /* @__PURE__ */ Q(
|
|
624
|
+
t[6] === r ? o = t[7] : (o = /* @__PURE__ */ Q(C, {
|
|
625
625
|
...r,
|
|
626
626
|
size: "icon-xs",
|
|
627
627
|
variant: "ghost-muted",
|
|
@@ -679,96 +679,96 @@ function en(e, t) {
|
|
|
679
679
|
// src/components/pullRequest/PullRequestMarkdown.tsx
|
|
680
680
|
var tn = Re(null);
|
|
681
681
|
function nn(e) {
|
|
682
|
-
let t = Z(13), { environmentId: n, cwd: r, url: i, fetchUrl: a, repository:
|
|
683
|
-
t[0] ===
|
|
684
|
-
let
|
|
685
|
-
t[2] !== r || t[3] !== a || t[4] !==
|
|
686
|
-
_tag:
|
|
682
|
+
let t = Z(13), { environmentId: n, cwd: r, url: i, fetchUrl: a, repository: s } = e, c = o(), l;
|
|
683
|
+
t[0] === s ? l = t[1] : (l = s ? { repository: s } : {}, t[0] = s, t[1] = l);
|
|
684
|
+
let u;
|
|
685
|
+
t[2] !== r || t[3] !== a || t[4] !== l ? (u = {
|
|
686
|
+
_tag: I,
|
|
687
687
|
cwd: r,
|
|
688
688
|
url: a,
|
|
689
|
-
...
|
|
690
|
-
}, t[2] = r, t[3] = a, t[4] =
|
|
691
|
-
let
|
|
692
|
-
t[6] ===
|
|
689
|
+
...l
|
|
690
|
+
}, t[2] = r, t[3] = a, t[4] = l, t[5] = u) : u = t[5];
|
|
691
|
+
let d = u, f = xe(n, d), p = Se(n, d), m = f._tag === "Success" ? f.url : f._tag === "Failure" ? a : null, h = m === null ? null : m + Te(i), g;
|
|
692
|
+
t[6] === c ? g = t[7] : (g = c("Pull request video"), t[6] = c, t[7] = g);
|
|
693
693
|
let _;
|
|
694
|
-
return t[8] !==
|
|
694
|
+
return t[8] !== p || t[9] !== h || t[10] !== g || t[11] !== i ? (_ = /* @__PURE__ */ Q(we, {
|
|
695
695
|
src: h,
|
|
696
696
|
originalUrl: i,
|
|
697
697
|
label: g,
|
|
698
698
|
className: "w-full",
|
|
699
699
|
videoClassName: "rounded-lg border border-border/60",
|
|
700
|
-
onRetry:
|
|
701
|
-
}), t[8] =
|
|
700
|
+
onRetry: p
|
|
701
|
+
}), t[8] = p, t[9] = h, t[10] = g, t[11] = i, t[12] = _) : _ = t[12], _;
|
|
702
702
|
}
|
|
703
703
|
function rn(e) {
|
|
704
|
-
let t = Z(56), { segment: n, cwd: r, environmentId: i, threadRef: a, lineBreaks:
|
|
704
|
+
let t = Z(56), { segment: n, cwd: r, environmentId: i, threadRef: a, lineBreaks: s, onTaskListChange: c } = e, l = o(), u = ze(tn), d = u?.repository ?? void 0;
|
|
705
705
|
if (n.kind === "table") {
|
|
706
706
|
let e;
|
|
707
|
-
if (t[0] !== r || t[1] !== i || t[2] !==
|
|
708
|
-
let
|
|
709
|
-
t[7] !== r || t[8] !== i || t[9] !==
|
|
707
|
+
if (t[0] !== r || t[1] !== i || t[2] !== s || t[3] !== c || t[4] !== n.rows || t[5] !== a) {
|
|
708
|
+
let o;
|
|
709
|
+
t[7] !== r || t[8] !== i || t[9] !== s || t[10] !== c || t[11] !== a ? (o = (e, t) => /* @__PURE__ */ Q("div", {
|
|
710
710
|
className: "grid gap-3",
|
|
711
711
|
style: { gridTemplateColumns: `repeat(${e.length}, minmax(0, 1fr))` },
|
|
712
712
|
children: e.map((e, t) => /* @__PURE__ */ Q("div", {
|
|
713
|
-
className:
|
|
713
|
+
className: j("min-w-0 space-y-3", e.header && "font-medium"),
|
|
714
714
|
children: e.segments.map((e) => /* @__PURE__ */ Q(rn, {
|
|
715
715
|
segment: e,
|
|
716
716
|
cwd: r,
|
|
717
717
|
environmentId: i,
|
|
718
718
|
threadRef: a,
|
|
719
|
-
lineBreaks:
|
|
720
|
-
onTaskListChange:
|
|
719
|
+
lineBreaks: s,
|
|
720
|
+
onTaskListChange: c
|
|
721
721
|
}, e.id))
|
|
722
722
|
}, t))
|
|
723
|
-
}, t), t[7] = r, t[8] = i, t[9] =
|
|
723
|
+
}, t), t[7] = r, t[8] = i, t[9] = s, t[10] = c, t[11] = a, t[12] = o) : o = t[12], e = n.rows.map(o), t[0] = r, t[1] = i, t[2] = s, t[3] = c, t[4] = n.rows, t[5] = a, t[6] = e;
|
|
724
724
|
} else e = t[6];
|
|
725
|
-
let
|
|
726
|
-
return t[13] === e ?
|
|
725
|
+
let o;
|
|
726
|
+
return t[13] === e ? o = t[14] : (o = /* @__PURE__ */ Q("div", {
|
|
727
727
|
className: "space-y-3",
|
|
728
728
|
children: e
|
|
729
|
-
}), t[13] = e, t[14] =
|
|
729
|
+
}), t[13] = e, t[14] = o), o;
|
|
730
730
|
}
|
|
731
731
|
if (n.kind === "markdown" || n.media === "image") {
|
|
732
|
-
let e = n.kind === "markdown" ? n.text : ``,
|
|
733
|
-
t[15] ===
|
|
732
|
+
let e = n.kind === "markdown" ? n.text : ``, o = a ?? Ce, l;
|
|
733
|
+
t[15] === u ? l = t[16] : (l = u ? { extraRemarkPlugins: u.remarkPlugins } : {}, t[15] = u, t[16] = l);
|
|
734
734
|
let f;
|
|
735
|
-
t[17] !==
|
|
735
|
+
t[17] !== c || t[18] !== n.kind || t[19] !== n.sourceOffset ? (f = c && n.kind === "markdown" ? (e) => {
|
|
736
736
|
let { markerOffset: t, checked: r } = e;
|
|
737
|
-
return
|
|
737
|
+
return c({
|
|
738
738
|
markerOffset: n.sourceOffset + t,
|
|
739
739
|
checked: r
|
|
740
740
|
});
|
|
741
|
-
} : void 0, t[17] =
|
|
741
|
+
} : void 0, t[17] = c, t[18] = n.kind, t[19] = n.sourceOffset, t[20] = f) : f = t[20];
|
|
742
742
|
let p;
|
|
743
|
-
return t[21] !== r || t[22] !== i || t[23] !==
|
|
743
|
+
return t[21] !== r || t[22] !== i || t[23] !== s || t[24] !== d || t[25] !== e || t[26] !== o || t[27] !== l || t[28] !== f || t[29] !== a ? (p = /* @__PURE__ */ Q(W, {
|
|
744
744
|
text: e,
|
|
745
745
|
cwd: r,
|
|
746
746
|
threadRef: a,
|
|
747
|
-
pullRequestPanelRef:
|
|
747
|
+
pullRequestPanelRef: o,
|
|
748
748
|
environmentId: i,
|
|
749
|
-
...
|
|
750
|
-
lineBreaks:
|
|
749
|
+
...l,
|
|
750
|
+
lineBreaks: s,
|
|
751
751
|
sourceControlMedia: !0,
|
|
752
|
-
sourceControlMediaRepository:
|
|
752
|
+
sourceControlMediaRepository: d,
|
|
753
753
|
onTaskListChange: f
|
|
754
|
-
}), t[21] = r, t[22] = i, t[23] =
|
|
754
|
+
}), t[21] = r, t[22] = i, t[23] = s, t[24] = d, t[25] = e, t[26] = o, t[27] = l, t[28] = f, t[29] = a, t[30] = p) : p = t[30], p;
|
|
755
755
|
}
|
|
756
|
-
let
|
|
757
|
-
t[31] === n.url ?
|
|
758
|
-
let
|
|
759
|
-
if (n.media === "video" &&
|
|
756
|
+
let f;
|
|
757
|
+
t[31] === n.url ? f = t[32] : (f = P.mediaUrl(n.url), t[31] = n.url, t[32] = f);
|
|
758
|
+
let p = f;
|
|
759
|
+
if (n.media === "video" && p !== null) {
|
|
760
760
|
let e = `${n.id}:${n.url}`, a;
|
|
761
|
-
return t[33] !== r || t[34] !== i || t[35] !==
|
|
761
|
+
return t[33] !== r || t[34] !== i || t[35] !== p.fetchUrl || t[36] !== d || t[37] !== n.url || t[38] !== e ? (a = /* @__PURE__ */ Q(nn, {
|
|
762
762
|
environmentId: i,
|
|
763
763
|
cwd: r,
|
|
764
764
|
url: n.url,
|
|
765
|
-
fetchUrl:
|
|
766
|
-
repository:
|
|
767
|
-
}, e), t[33] = r, t[34] = i, t[35] =
|
|
765
|
+
fetchUrl: p.fetchUrl,
|
|
766
|
+
repository: d
|
|
767
|
+
}, e), t[33] = r, t[34] = i, t[35] = p.fetchUrl, t[36] = d, t[37] = n.url, t[38] = e, t[39] = a) : a = t[39], a;
|
|
768
768
|
}
|
|
769
769
|
if (n.media === "video") {
|
|
770
770
|
let e = `${n.id}:${n.url}`, r = n.url, i = n.url, a;
|
|
771
|
-
t[40] ===
|
|
771
|
+
t[40] === l ? a = t[41] : (a = l("Pull request video"), t[40] = l, t[41] = a);
|
|
772
772
|
let o;
|
|
773
773
|
return t[42] !== n.url || t[43] !== e || t[44] !== a ? (o = /* @__PURE__ */ Q(we, {
|
|
774
774
|
src: r,
|
|
@@ -779,23 +779,23 @@ function rn(e) {
|
|
|
779
779
|
}, e), t[42] = n.url, t[43] = e, t[44] = a, t[45] = o) : o = t[45], o;
|
|
780
780
|
}
|
|
781
781
|
let m;
|
|
782
|
-
t[46] === Symbol.for("react.memo_cache_sentinel") ? (m = /* @__PURE__ */ Q(
|
|
782
|
+
t[46] === Symbol.for("react.memo_cache_sentinel") ? (m = /* @__PURE__ */ Q(R, {
|
|
783
783
|
"aria-hidden": !0,
|
|
784
784
|
className: "size-3.5 shrink-0 text-muted-foreground"
|
|
785
785
|
}), t[46] = m) : m = t[46];
|
|
786
786
|
let h;
|
|
787
|
-
t[47] !==
|
|
787
|
+
t[47] !== p?.definition.label || t[48] !== n.url ? (h = p?.definition.label ?? new URL(n.url).hostname, t[47] = p?.definition.label, t[48] = n.url, t[49] = h) : h = t[49];
|
|
788
788
|
let g;
|
|
789
789
|
t[50] === h ? g = t[51] : (g = /* @__PURE__ */ Q("span", {
|
|
790
790
|
className: "min-w-0 flex-1 truncate",
|
|
791
|
-
children: /* @__PURE__ */ $(
|
|
791
|
+
children: /* @__PURE__ */ $(b, { children: [
|
|
792
792
|
"Open attachment on",
|
|
793
793
|
" ",
|
|
794
|
-
/* @__PURE__ */ Q(
|
|
794
|
+
/* @__PURE__ */ Q(oe, { children: h })
|
|
795
795
|
] })
|
|
796
796
|
}), t[50] = h, t[51] = g);
|
|
797
797
|
let _;
|
|
798
|
-
t[52] === Symbol.for("react.memo_cache_sentinel") ? (_ = /* @__PURE__ */ Q(
|
|
798
|
+
t[52] === Symbol.for("react.memo_cache_sentinel") ? (_ = /* @__PURE__ */ Q(L, {
|
|
799
799
|
"aria-hidden": !0,
|
|
800
800
|
className: "size-3 shrink-0 text-muted-foreground"
|
|
801
801
|
}), t[52] = _) : _ = t[52];
|
|
@@ -814,7 +814,7 @@ function rn(e) {
|
|
|
814
814
|
}
|
|
815
815
|
function an(e) {
|
|
816
816
|
let t = Z(12), { text: n, cwd: r, environmentId: i, threadRef: a, lineBreaks: o, className: s, onTaskListChange: c } = e, l = jt(n), u = ze(tn), d = a ?? u?.threadRef ?? void 0, f;
|
|
817
|
-
t[0] === s ? f = t[1] : (f =
|
|
817
|
+
t[0] === s ? f = t[1] : (f = j("space-y-3 [&_[data-markdown-details]]:border-0 [&_[data-markdown-details-summary]]:text-foreground/80 [&_[data-markdown-details-summary]>svg]:text-muted-foreground/60", s), t[0] = s, t[1] = f);
|
|
818
818
|
let p;
|
|
819
819
|
t[2] !== u?.lineBreaks || t[3] !== r || t[4] !== i || t[5] !== o || t[6] !== c || t[7] !== d ? (p = (e) => /* @__PURE__ */ Q(rn, {
|
|
820
820
|
segment: e,
|
|
@@ -833,111 +833,111 @@ function an(e) {
|
|
|
833
833
|
}
|
|
834
834
|
// src/components/pullRequest/PullRequestMarkdownEditor.tsx
|
|
835
835
|
function on(n) {
|
|
836
|
-
let r = Z(60), { value: i, cwd: a, environmentId:
|
|
837
|
-
w !== i && (
|
|
838
|
-
let
|
|
839
|
-
r[0] ===
|
|
840
|
-
let
|
|
841
|
-
r[2] === m ? O = r[3] : (O =
|
|
836
|
+
let r = Z(60), { value: i, cwd: a, environmentId: s, completionScope: c, threadRef: l, placeholder: u, label: d, saving: f, allowEmpty: p, className: m, onSave: h, onCancel: g } = n, _ = l === void 0 ? null : l, v = p !== void 0 && p, y = o(), x = e(s, ce), [S, ee] = X(i), [te, ne] = X(!1), [w, T] = X(i);
|
|
837
|
+
w !== i && (T(i), ee(i));
|
|
838
|
+
let E;
|
|
839
|
+
r[0] === S ? E = r[1] : (E = S.trim(), r[0] = S, r[1] = E);
|
|
840
|
+
let D = E.length === 0, re = !x || f || D && !v, O;
|
|
841
|
+
r[2] === m ? O = r[3] : (O = j("space-y-2", m), r[2] = m, r[3] = O);
|
|
842
842
|
let k;
|
|
843
|
-
r[4] !==
|
|
844
|
-
e.nativeEvent.isComposing || e.keyCode === 229 || (e.key === "Enter" && (e.metaKey || e.ctrlKey) && !e.shiftKey && !e.altKey ? (e.preventDefault(), e.stopPropagation(), !
|
|
845
|
-
}, r[4] =
|
|
846
|
-
let
|
|
847
|
-
r[11] === y ?
|
|
848
|
-
let
|
|
849
|
-
r[13] ===
|
|
850
|
-
let N;
|
|
851
|
-
r[15] === Symbol.for("react.memo_cache_sentinel") ? (N = (e) => {
|
|
852
|
-
let t = e[0];
|
|
853
|
-
(t === "write" || t === "preview") && C(t === "preview");
|
|
854
|
-
}, r[15] = N) : N = r[15];
|
|
843
|
+
r[4] !== S || r[5] !== s || r[6] !== g || r[7] !== h || r[8] !== re || r[9] !== f ? (k = (e) => {
|
|
844
|
+
e.nativeEvent.isComposing || e.keyCode === 229 || (e.key === "Enter" && (e.metaKey || e.ctrlKey) && !e.shiftKey && !e.altKey ? (e.preventDefault(), e.stopPropagation(), !re && !e.repeat && t(s, "source-control:write") && h(S)) : e.key !== "Escape" || f || (e.preventDefault(), g()));
|
|
845
|
+
}, r[4] = S, r[5] = s, r[6] = g, r[7] = h, r[8] = re, r[9] = f, r[10] = k) : k = r[10];
|
|
846
|
+
let A;
|
|
847
|
+
r[11] === y ? A = r[12] : (A = y("Markdown editor mode"), r[11] = y, r[12] = A);
|
|
848
|
+
let M = te ? "preview" : "write", N;
|
|
849
|
+
r[13] === M ? N = r[14] : (N = [M], r[13] = M, r[14] = N);
|
|
855
850
|
let ie;
|
|
856
|
-
r[
|
|
851
|
+
r[15] === Symbol.for("react.memo_cache_sentinel") ? (ie = (e) => {
|
|
852
|
+
let t = e[0];
|
|
853
|
+
(t === "write" || t === "preview") && ne(t === "preview");
|
|
854
|
+
}, r[15] = ie) : ie = r[15];
|
|
855
|
+
let ae;
|
|
856
|
+
r[16] === Symbol.for("react.memo_cache_sentinel") ? (ae = /* @__PURE__ */ Q(Pe, {
|
|
857
857
|
value: "write",
|
|
858
|
-
children: /* @__PURE__ */ Q(
|
|
858
|
+
children: /* @__PURE__ */ Q(b, {
|
|
859
859
|
context: "verb, markdown editor mode",
|
|
860
860
|
children: "Write"
|
|
861
861
|
})
|
|
862
|
-
}), r[16] =
|
|
863
|
-
let
|
|
864
|
-
r[17] === Symbol.for("react.memo_cache_sentinel") ? (
|
|
862
|
+
}), r[16] = ae) : ae = r[16];
|
|
863
|
+
let oe;
|
|
864
|
+
r[17] === Symbol.for("react.memo_cache_sentinel") ? (oe = /* @__PURE__ */ Q(Pe, {
|
|
865
865
|
value: "preview",
|
|
866
|
-
children: /* @__PURE__ */ Q(
|
|
866
|
+
children: /* @__PURE__ */ Q(b, {
|
|
867
867
|
context: "markdown editor mode",
|
|
868
868
|
children: "Preview"
|
|
869
869
|
})
|
|
870
|
-
}), r[17] =
|
|
871
|
-
let
|
|
872
|
-
r[18] !==
|
|
873
|
-
"aria-label":
|
|
870
|
+
}), r[17] = oe) : oe = r[17];
|
|
871
|
+
let se;
|
|
872
|
+
r[18] !== f || r[19] !== A || r[20] !== N ? (se = /* @__PURE__ */ $(Ne, {
|
|
873
|
+
"aria-label": A,
|
|
874
874
|
variant: "segmented",
|
|
875
|
-
value:
|
|
876
|
-
disabled:
|
|
877
|
-
onValueChange:
|
|
878
|
-
children: [
|
|
879
|
-
}), r[18] =
|
|
875
|
+
value: N,
|
|
876
|
+
disabled: f,
|
|
877
|
+
onValueChange: ie,
|
|
878
|
+
children: [ae, oe]
|
|
879
|
+
}), r[18] = f, r[19] = A, r[20] = N, r[21] = se) : se = r[21];
|
|
880
880
|
let P;
|
|
881
|
-
r[22] !==
|
|
881
|
+
r[22] !== c || r[23] !== a || r[24] !== S || r[25] !== D || r[26] !== s || r[27] !== d || r[28] !== u || r[29] !== te || r[30] !== f || r[31] !== _ ? (P = te ? /* @__PURE__ */ Q("div", {
|
|
882
882
|
className: "rounded-lg border border-border/60 px-3 py-2",
|
|
883
|
-
children:
|
|
883
|
+
children: D ? /* @__PURE__ */ Q("p", {
|
|
884
884
|
className: "text-xs text-muted-foreground",
|
|
885
|
-
children: /* @__PURE__ */ Q(
|
|
885
|
+
children: /* @__PURE__ */ Q(b, { children: "Nothing to preview." })
|
|
886
886
|
}) : /* @__PURE__ */ Q(an, {
|
|
887
|
-
text:
|
|
887
|
+
text: S,
|
|
888
888
|
cwd: a,
|
|
889
|
-
environmentId:
|
|
889
|
+
environmentId: s,
|
|
890
890
|
threadRef: _
|
|
891
891
|
})
|
|
892
892
|
}) : /* @__PURE__ */ Q(Ie, {
|
|
893
893
|
autoFocus: !0,
|
|
894
|
-
disabled:
|
|
895
|
-
completionScope:
|
|
896
|
-
value:
|
|
894
|
+
disabled: f,
|
|
895
|
+
completionScope: c,
|
|
896
|
+
value: S,
|
|
897
897
|
rows: 6,
|
|
898
|
-
placeholder:
|
|
899
|
-
"aria-label":
|
|
898
|
+
placeholder: u,
|
|
899
|
+
"aria-label": d,
|
|
900
900
|
onValueChange: ee
|
|
901
|
-
}), r[22] =
|
|
901
|
+
}), r[22] = c, r[23] = a, r[24] = S, r[25] = D, r[26] = s, r[27] = d, r[28] = u, r[29] = te, r[30] = f, r[31] = _, r[32] = P) : P = r[32];
|
|
902
|
+
let F;
|
|
903
|
+
r[33] === Symbol.for("react.memo_cache_sentinel") ? (F = /* @__PURE__ */ Q(b, { children: "Cancel" }), r[33] = F) : F = r[33];
|
|
902
904
|
let I;
|
|
903
|
-
r[
|
|
904
|
-
let L;
|
|
905
|
-
r[34] !== g || r[35] !== d ? (L = /* @__PURE__ */ Q(S, {
|
|
905
|
+
r[34] !== g || r[35] !== f ? (I = /* @__PURE__ */ Q(C, {
|
|
906
906
|
size: "xs",
|
|
907
907
|
variant: "ghost",
|
|
908
|
-
disabled:
|
|
908
|
+
disabled: f,
|
|
909
909
|
onClick: g,
|
|
910
|
-
children:
|
|
911
|
-
}), r[34] = g, r[35] =
|
|
912
|
-
let
|
|
913
|
-
r[37] !== v || r[38] !==
|
|
914
|
-
!t(
|
|
915
|
-
}, r[37] = v, r[38] =
|
|
916
|
-
let le;
|
|
917
|
-
r[44] !== y || r[45] !== d ? (le = y(d ? "Saving..." : "Save"), r[44] = y, r[45] = d, r[46] = le) : le = r[46];
|
|
910
|
+
children: F
|
|
911
|
+
}), r[34] = g, r[35] = f, r[36] = I) : I = r[36];
|
|
912
|
+
let L = !x || f || D && !v, le;
|
|
913
|
+
r[37] !== v || r[38] !== S || r[39] !== D || r[40] !== s || r[41] !== h || r[42] !== f ? (le = () => {
|
|
914
|
+
!t(s, "source-control:write") || f || D && !v || h(S);
|
|
915
|
+
}, r[37] = v, r[38] = S, r[39] = D, r[40] = s, r[41] = h, r[42] = f, r[43] = le) : le = r[43];
|
|
918
916
|
let ue;
|
|
919
|
-
r[
|
|
917
|
+
r[44] !== y || r[45] !== f ? (ue = y(f ? "Saving..." : "Save"), r[44] = y, r[45] = f, r[46] = ue) : ue = r[46];
|
|
918
|
+
let de;
|
|
919
|
+
r[47] !== L || r[48] !== le || r[49] !== ue ? (de = /* @__PURE__ */ Q(C, {
|
|
920
920
|
size: "xs",
|
|
921
921
|
variant: "outline",
|
|
922
|
-
disabled:
|
|
923
|
-
onClick:
|
|
924
|
-
children:
|
|
925
|
-
}), r[47] =
|
|
926
|
-
let
|
|
927
|
-
r[51] !==
|
|
922
|
+
disabled: L,
|
|
923
|
+
onClick: le,
|
|
924
|
+
children: ue
|
|
925
|
+
}), r[47] = L, r[48] = le, r[49] = ue, r[50] = de) : de = r[50];
|
|
926
|
+
let fe;
|
|
927
|
+
r[51] !== I || r[52] !== de ? (fe = /* @__PURE__ */ $("div", {
|
|
928
928
|
className: "flex justify-end gap-2",
|
|
929
|
-
children: [
|
|
930
|
-
}), r[51] =
|
|
931
|
-
let
|
|
932
|
-
return r[54] !==
|
|
929
|
+
children: [I, de]
|
|
930
|
+
}), r[51] = I, r[52] = de, r[53] = fe) : fe = r[53];
|
|
931
|
+
let R;
|
|
932
|
+
return r[54] !== se || r[55] !== P || r[56] !== fe || r[57] !== O || r[58] !== k ? (R = /* @__PURE__ */ $("div", {
|
|
933
933
|
className: O,
|
|
934
934
|
onKeyDown: k,
|
|
935
935
|
children: [
|
|
936
|
-
|
|
936
|
+
se,
|
|
937
937
|
P,
|
|
938
|
-
|
|
938
|
+
fe
|
|
939
939
|
]
|
|
940
|
-
}), r[54] =
|
|
940
|
+
}), r[54] = se, r[55] = P, r[56] = fe, r[57] = O, r[58] = k, r[59] = R) : R = r[59], R;
|
|
941
941
|
}
|
|
942
942
|
// ../../packages/client-runtime/src/listFormat.ts
|
|
943
943
|
function sn(e, t, r = i) {
|
|
@@ -1048,7 +1048,7 @@ function yn(e, t) {
|
|
|
1048
1048
|
// src/components/pullRequest/PullRequestReactions.tsx
|
|
1049
1049
|
var bn = "inline-flex h-6 shrink-0 items-center gap-1 rounded-full border px-2 text-xs outline-none transition-colors focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-ring", xn = /* @__PURE__ */ new Map();
|
|
1050
1050
|
function Sn(e) {
|
|
1051
|
-
let t = Z(21), { reactions: i, canReact: a, onReact: s, className: c } = e, l =
|
|
1051
|
+
let t = Z(21), { reactions: i, canReact: a, onReact: s, className: c } = e, l = o(), u = m(), d = N(), [f, p] = X(!1), h;
|
|
1052
1052
|
t[0] === Symbol.for("react.memo_cache_sentinel") ? (h = {
|
|
1053
1053
|
signature: "",
|
|
1054
1054
|
values: xn
|
|
@@ -1057,7 +1057,7 @@ function Sn(e) {
|
|
|
1057
1057
|
if (t[1] !== a || t[2] !== c || t[3] !== l || t[4] !== d || t[5] !== u || t[6] !== s || t[7] !== g.signature || t[8] !== g.values || t[9] !== f || t[10] !== i) {
|
|
1058
1058
|
x = Symbol.for("react.early_return_sentinel");
|
|
1059
1059
|
bb0: {
|
|
1060
|
-
let e = vn(i), o = g.signature === e ? g.values : xn,
|
|
1060
|
+
let e = vn(i), o = g.signature === e ? g.values : xn, m = yn(i, o), h = async (t, i) => {
|
|
1061
1061
|
let a = { reacted: i };
|
|
1062
1062
|
_({
|
|
1063
1063
|
signature: e,
|
|
@@ -1074,11 +1074,11 @@ function Sn(e) {
|
|
|
1074
1074
|
title: r(n("The reaction could not be saved"))
|
|
1075
1075
|
}));
|
|
1076
1076
|
};
|
|
1077
|
-
if (
|
|
1077
|
+
if (m.length === 0 && !a) {
|
|
1078
1078
|
x = null;
|
|
1079
1079
|
break bb0;
|
|
1080
1080
|
}
|
|
1081
|
-
t[15] === c ? v = t[16] : (v =
|
|
1081
|
+
t[15] === c ? v = t[16] : (v = j("flex min-w-0 max-w-full flex-wrap items-center gap-1", c), t[15] = c, t[16] = v), y = m.map((e) => /* @__PURE__ */ $(T, { children: [/* @__PURE__ */ $(F, {
|
|
1082
1082
|
render: /* @__PURE__ */ Q("button", {
|
|
1083
1083
|
type: "button",
|
|
1084
1084
|
"aria-pressed": e.viewerHasReacted,
|
|
@@ -1088,7 +1088,7 @@ function Sn(e) {
|
|
|
1088
1088
|
$context: "reaction button: reaction name and how many people used it"
|
|
1089
1089
|
}),
|
|
1090
1090
|
disabled: !a,
|
|
1091
|
-
className:
|
|
1091
|
+
className: j(bn, e.viewerHasReacted ? "border-primary/60 bg-primary/10 text-foreground" : "border-border/70 bg-muted/40 text-muted-foreground", a ? "hover:border-primary/60" : "cursor-default"),
|
|
1092
1092
|
onClick: () => void h(e.content, !e.viewerHasReacted)
|
|
1093
1093
|
}),
|
|
1094
1094
|
children: [/* @__PURE__ */ Q("span", {
|
|
@@ -1103,14 +1103,14 @@ function Sn(e) {
|
|
|
1103
1103
|
children: _n(e, u, d)
|
|
1104
1104
|
})] }, e.content)), b = a ? /* @__PURE__ */ $(q, {
|
|
1105
1105
|
open: f,
|
|
1106
|
-
onOpenChange:
|
|
1106
|
+
onOpenChange: p,
|
|
1107
1107
|
children: [/* @__PURE__ */ Q(_e, {
|
|
1108
1108
|
render: /* @__PURE__ */ Q("button", {
|
|
1109
1109
|
type: "button",
|
|
1110
1110
|
"aria-label": l("Add a reaction"),
|
|
1111
|
-
className:
|
|
1111
|
+
className: j(bn, "border-border/70 px-1.5 text-muted-foreground hover:border-primary/60 hover:text-foreground")
|
|
1112
1112
|
}),
|
|
1113
|
-
children: /* @__PURE__ */ Q(
|
|
1113
|
+
children: /* @__PURE__ */ Q(z, {
|
|
1114
1114
|
"aria-hidden": !0,
|
|
1115
1115
|
className: "size-3.5"
|
|
1116
1116
|
})
|
|
@@ -1121,14 +1121,14 @@ function Sn(e) {
|
|
|
1121
1121
|
children: /* @__PURE__ */ Q("div", {
|
|
1122
1122
|
className: "flex items-center gap-0.5",
|
|
1123
1123
|
children: ln.map((e) => {
|
|
1124
|
-
let t =
|
|
1124
|
+
let t = m.find((t) => t.content === e)?.viewerHasReacted ?? !1;
|
|
1125
1125
|
return /* @__PURE__ */ Q("button", {
|
|
1126
1126
|
type: "button",
|
|
1127
1127
|
"aria-pressed": t,
|
|
1128
1128
|
"aria-label": pn(e, u),
|
|
1129
|
-
className:
|
|
1129
|
+
className: j("flex size-7 items-center justify-center rounded-md text-base outline-none hover:bg-accent focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-ring", t && "bg-primary/10"),
|
|
1130
1130
|
onClick: () => {
|
|
1131
|
-
|
|
1131
|
+
p(!1), h(e, !t);
|
|
1132
1132
|
},
|
|
1133
1133
|
children: /* @__PURE__ */ Q("span", {
|
|
1134
1134
|
"aria-hidden": !0,
|
|
@@ -1313,78 +1313,78 @@ function Ln(e) {
|
|
|
1313
1313
|
}
|
|
1314
1314
|
}
|
|
1315
1315
|
function Rn(e) {
|
|
1316
|
-
let t = Z(14), { comment: n, onRemove: r } = e, i =
|
|
1317
|
-
t[0] === Symbol.for("react.memo_cache_sentinel") ? (a =
|
|
1318
|
-
let
|
|
1319
|
-
t[1] === Symbol.for("react.memo_cache_sentinel") ? (
|
|
1320
|
-
let c;
|
|
1321
|
-
t[3] === i ? c = t[4] : (c = i("Discard this comment"), t[3] = i, t[4] = c);
|
|
1316
|
+
let t = Z(14), { comment: n, onRemove: r } = e, i = o(), a;
|
|
1317
|
+
t[0] === Symbol.for("react.memo_cache_sentinel") ? (a = j(Pn, "border-dashed"), t[0] = a) : a = t[0];
|
|
1318
|
+
let s, c;
|
|
1319
|
+
t[1] === Symbol.for("react.memo_cache_sentinel") ? (s = /* @__PURE__ */ Q(B, { className: "size-3.5" }), c = /* @__PURE__ */ Q("span", { children: /* @__PURE__ */ Q(b, { children: "Pending. Sent when you submit the review" }) }), t[1] = s, t[2] = c) : (s = t[1], c = t[2]);
|
|
1322
1320
|
let l;
|
|
1323
|
-
t[
|
|
1321
|
+
t[3] === i ? l = t[4] : (l = i("Discard this comment"), t[3] = i, t[4] = l);
|
|
1324
1322
|
let u;
|
|
1325
|
-
t[
|
|
1323
|
+
t[5] === Symbol.for("react.memo_cache_sentinel") ? (u = /* @__PURE__ */ Q(me, { className: "size-3.5" }), t[5] = u) : u = t[5];
|
|
1324
|
+
let d;
|
|
1325
|
+
t[6] !== r || t[7] !== l ? (d = /* @__PURE__ */ $("div", {
|
|
1326
1326
|
className: "flex items-center gap-2 text-xs text-muted-foreground",
|
|
1327
1327
|
children: [
|
|
1328
|
-
o,
|
|
1329
1328
|
s,
|
|
1330
|
-
|
|
1329
|
+
c,
|
|
1330
|
+
/* @__PURE__ */ Q(C, {
|
|
1331
1331
|
size: "icon-xs",
|
|
1332
1332
|
variant: "ghost",
|
|
1333
1333
|
className: "ml-auto",
|
|
1334
|
-
"aria-label":
|
|
1334
|
+
"aria-label": l,
|
|
1335
1335
|
onClick: r,
|
|
1336
|
-
children:
|
|
1336
|
+
children: u
|
|
1337
1337
|
})
|
|
1338
1338
|
]
|
|
1339
|
-
}), t[6] = r, t[7] =
|
|
1340
|
-
let
|
|
1341
|
-
t[9] === n.body ?
|
|
1339
|
+
}), t[6] = r, t[7] = l, t[8] = d) : d = t[8];
|
|
1340
|
+
let f;
|
|
1341
|
+
t[9] === n.body ? f = t[10] : (f = /* @__PURE__ */ Q("p", {
|
|
1342
1342
|
className: "mt-2 whitespace-pre-wrap leading-relaxed",
|
|
1343
1343
|
children: n.body
|
|
1344
|
-
}), t[9] = n.body, t[10] =
|
|
1345
|
-
let
|
|
1346
|
-
return t[11] !==
|
|
1344
|
+
}), t[9] = n.body, t[10] = f);
|
|
1345
|
+
let p;
|
|
1346
|
+
return t[11] !== d || t[12] !== f ? (p = /* @__PURE__ */ $("div", {
|
|
1347
1347
|
className: a,
|
|
1348
1348
|
contentEditable: !1,
|
|
1349
1349
|
onPointerDown: zn,
|
|
1350
|
-
children: [
|
|
1351
|
-
}), t[11] =
|
|
1350
|
+
children: [d, f]
|
|
1351
|
+
}), t[11] = d, t[12] = f, t[13] = p) : p = t[13], p;
|
|
1352
1352
|
}
|
|
1353
1353
|
function zn(e) {
|
|
1354
1354
|
return e.stopPropagation();
|
|
1355
1355
|
}
|
|
1356
1356
|
function Bn(e) {
|
|
1357
|
-
let t = Z(31), { threads: n, renderThread: r } = e, i =
|
|
1357
|
+
let t = Z(31), { threads: n, renderThread: r } = e, i = o(), [a, s] = X(Jn), c;
|
|
1358
1358
|
if (t[0] !== a || t[1] !== n) {
|
|
1359
|
-
|
|
1359
|
+
c = n.filter(qn);
|
|
1360
1360
|
let e;
|
|
1361
|
-
t[3] === a ? e = t[4] : (e = (e) => !a.has(e.id), t[3] = a, t[4] = e),
|
|
1362
|
-
} else
|
|
1363
|
-
let
|
|
1361
|
+
t[3] === a ? e = t[4] : (e = (e) => !a.has(e.id), t[3] = a, t[4] = e), c.some(e) && s(/* @__PURE__ */ new Set([...a, ...c.map(Kn)])), t[0] = a, t[1] = n, t[2] = c;
|
|
1362
|
+
} else c = t[2];
|
|
1363
|
+
let l, u, d, f;
|
|
1364
1364
|
if (t[5] !== i || t[6] !== a || t[7] !== n) {
|
|
1365
|
-
|
|
1365
|
+
d = n.filter(Gn);
|
|
1366
1366
|
let e;
|
|
1367
|
-
t[12] === a ? e = t[13] : (e = (e) => a.has(e.id), t[12] = a, t[13] = e),
|
|
1368
|
-
for (let e of
|
|
1369
|
-
|
|
1370
|
-
} else
|
|
1371
|
-
let
|
|
1372
|
-
t[14] !==
|
|
1367
|
+
t[12] === a ? e = t[13] : (e = (e) => a.has(e.id), t[12] = a, t[13] = e), u = d.every(e), l = /* @__PURE__ */ new Map();
|
|
1368
|
+
for (let e of d.flatMap(Wn)) l.set(e.author?.login ?? "ghost", e.author);
|
|
1369
|
+
l.size === 0 && l.set("ghost", null), f = i("{count, plural, =1 {Resolved conversation} other {{count} resolved conversations}}", { count: d.length }), t[5] = i, t[6] = a, t[7] = n, t[8] = l, t[9] = u, t[10] = d, t[11] = f;
|
|
1370
|
+
} else l = t[8], u = t[9], d = t[10], f = t[11];
|
|
1371
|
+
let p = f, m;
|
|
1372
|
+
t[14] !== l || t[15] !== u || t[16] !== p || t[17] !== c || t[18] !== d.length || t[19] !== n ? (m = d.length > 0 ? /* @__PURE__ */ $(T, { children: [/* @__PURE__ */ Q(F, {
|
|
1373
1373
|
render: /* @__PURE__ */ Q("button", {
|
|
1374
1374
|
type: "button",
|
|
1375
1375
|
"data-resolved-threads": !0,
|
|
1376
|
-
"aria-label":
|
|
1377
|
-
"aria-expanded":
|
|
1376
|
+
"aria-label": p,
|
|
1377
|
+
"aria-expanded": u,
|
|
1378
1378
|
className: "absolute right-3 bottom-full flex h-[var(--diffs-line-height,20px)] cursor-pointer items-center -space-x-1 rounded-full outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-inset",
|
|
1379
1379
|
contentEditable: !1,
|
|
1380
1380
|
onPointerDown: Un,
|
|
1381
|
-
onClick: () =>
|
|
1381
|
+
onClick: () => s(new Set((u ? c : n).map(Hn)))
|
|
1382
1382
|
}),
|
|
1383
|
-
children: [...
|
|
1383
|
+
children: [...l].slice(0, 3).map(Vn)
|
|
1384
1384
|
}), /* @__PURE__ */ Q(w, {
|
|
1385
1385
|
side: "left",
|
|
1386
|
-
children:
|
|
1387
|
-
})] }) : null, t[14] =
|
|
1386
|
+
children: p
|
|
1387
|
+
})] }) : null, t[14] = l, t[15] = u, t[16] = p, t[17] = c, t[18] = d.length, t[19] = n, t[20] = m) : m = t[20];
|
|
1388
1388
|
let h;
|
|
1389
1389
|
if (t[21] !== r || t[22] !== a || t[23] !== n) {
|
|
1390
1390
|
let e;
|
|
@@ -1422,97 +1422,97 @@ function Jn() {
|
|
|
1422
1422
|
return /* @__PURE__ */ new Set();
|
|
1423
1423
|
}
|
|
1424
1424
|
function Yn(e) {
|
|
1425
|
-
let t = Z(107), { thread: n, workspaceRoot: r, canReply: i, canResolve: a, canReact:
|
|
1426
|
-
if (t[0] !==
|
|
1425
|
+
let t = Z(107), { thread: n, workspaceRoot: r, canReply: i, canResolve: a, canReact: s, environmentId: l, reference: u, completionScope: d, pending: f, fixPending: p, fixLabel: m, onFix: g, onAddToChat: _, onReply: v, onLoadMore: y, canEditComment: x, onEditComment: S, onToggleResolved: ee, onReacted: te, hidden: ne } = e, w = o(), [T, E] = X(ne !== void 0 || !n.isResolved), [D, re] = X(!1), [O, k] = X(""), [A, M] = X(null), [N, ie] = X(!1), ae = Be(!1), oe = Be(null), [se, P] = X(null), [F, ce] = X(!1), I = se?.threadId === n.id ? se : null, L, R, z, pe, B, me, he, V, H, U, W, G, K, ge, _e;
|
|
1426
|
+
if (t[0] !== I || t[1] !== T || t[2] !== m || t[3] !== p || t[4] !== w || t[5] !== ne || t[6] !== F || t[7] !== _ || t[8] !== S || t[9] !== g || t[10] !== y || t[11] !== v || t[12] !== f || t[13] !== N || t[14] !== n) {
|
|
1427
1427
|
he = Symbol.for("react.early_return_sentinel");
|
|
1428
1428
|
bb0: {
|
|
1429
1429
|
let e;
|
|
1430
|
-
t[30] ===
|
|
1431
|
-
let r = n.commentCount ??
|
|
1432
|
-
t[32] !==
|
|
1433
|
-
if (
|
|
1434
|
-
|
|
1435
|
-
let r = await
|
|
1436
|
-
|
|
1430
|
+
t[30] === I?.comments ? e = t[31] : (e = I?.comments ?? [], t[30] = I?.comments, t[31] = e), L = Ae(n.comments, e), z = I === null ? n.nextCommentsCursor ?? null : I.nextCursor;
|
|
1431
|
+
let r = n.commentCount ?? L.length, i;
|
|
1432
|
+
t[32] !== S || t[33] !== N || t[34] !== n.id ? (i = async (e, t) => {
|
|
1433
|
+
if (N) return;
|
|
1434
|
+
ie(!0);
|
|
1435
|
+
let r = await S(e, t);
|
|
1436
|
+
ie(!1), r && (P((r) => r?.threadId === n.id ? {
|
|
1437
1437
|
...r,
|
|
1438
1438
|
comments: De(r.comments, e, t)
|
|
1439
|
-
} : r),
|
|
1440
|
-
}, t[32] =
|
|
1439
|
+
} : r), M(null));
|
|
1440
|
+
}, t[32] = S, t[33] = N, t[34] = n.id, t[35] = i) : i = t[35], pe = i;
|
|
1441
1441
|
let a;
|
|
1442
|
-
t[36] !==
|
|
1442
|
+
t[36] !== v || t[37] !== f || t[38] !== n.id || t[39] !== n.nextCommentsCursor ? (a = async (e) => {
|
|
1443
1443
|
let t = e.trim();
|
|
1444
|
-
if (t.length === 0 ||
|
|
1445
|
-
|
|
1446
|
-
let r = await
|
|
1447
|
-
if (
|
|
1444
|
+
if (t.length === 0 || f || ae.current) return;
|
|
1445
|
+
ae.current = !0;
|
|
1446
|
+
let r = await h(() => v(t));
|
|
1447
|
+
if (ae.current = !1, r._tag === "Failure") throw c(r);
|
|
1448
1448
|
r.value && (P((e) => e?.threadId === n.id ? {
|
|
1449
1449
|
...e,
|
|
1450
1450
|
nextCursor: e.nextCursor ?? n.nextCommentsCursor ?? null
|
|
1451
|
-
} : e),
|
|
1452
|
-
}, t[36] =
|
|
1451
|
+
} : e), k(""), re(!1));
|
|
1452
|
+
}, t[36] = v, t[37] = f, t[38] = n.id, t[39] = n.nextCommentsCursor, t[40] = a) : a = t[40], B = a;
|
|
1453
1453
|
let o;
|
|
1454
|
-
if (t[41] !==
|
|
1455
|
-
if (
|
|
1456
|
-
|
|
1457
|
-
let e = await
|
|
1458
|
-
if (
|
|
1454
|
+
if (t[41] !== F || t[42] !== z || t[43] !== y || t[44] !== n.id ? (o = async () => {
|
|
1455
|
+
if (z === null || F) return;
|
|
1456
|
+
ce(!0);
|
|
1457
|
+
let e = await h(() => y(z));
|
|
1458
|
+
if (ce(!1), e._tag === "Failure") throw c(e);
|
|
1459
1459
|
let t = e.value;
|
|
1460
1460
|
t !== null && P((e) => ({
|
|
1461
1461
|
threadId: n.id,
|
|
1462
1462
|
comments: Ae(e?.threadId === n.id ? e.comments : [], t.comments),
|
|
1463
1463
|
nextCursor: t.nextCursor
|
|
1464
1464
|
}));
|
|
1465
|
-
}, t[41] =
|
|
1465
|
+
}, t[41] = F, t[42] = z, t[43] = y, t[44] = n.id, t[45] = o) : o = t[45], R = o, ne) {
|
|
1466
1466
|
he = null;
|
|
1467
1467
|
break bb0;
|
|
1468
1468
|
}
|
|
1469
|
-
let s = !
|
|
1470
|
-
t[46] === s ? K = t[47] : (K =
|
|
1471
|
-
let c;
|
|
1472
|
-
t[50] === Symbol.for("react.memo_cache_sentinel") ? (c = () => ne(Zn), t[50] = c) : c = t[50];
|
|
1469
|
+
let s = !T && "py-1";
|
|
1470
|
+
t[46] === s ? K = t[47] : (K = j(Pn, s), t[46] = s, t[47] = K), ge = !1, _e = Qn, me = "flex flex-wrap items-center gap-2 text-xs text-muted-foreground", t[48] === n.isResolved ? V = t[49] : (V = n.isResolved ? /* @__PURE__ */ Q(le, { className: "size-3.5 text-success-foreground" }) : /* @__PURE__ */ Q(fe, { className: "size-3.5" }), t[48] = n.isResolved, t[49] = V);
|
|
1473
1471
|
let l;
|
|
1474
|
-
t[
|
|
1472
|
+
t[50] === Symbol.for("react.memo_cache_sentinel") ? (l = () => E(Zn), t[50] = l) : l = t[50];
|
|
1473
|
+
let u;
|
|
1474
|
+
t[51] !== w || t[52] !== n.isResolved ? (u = n.isResolved ? w("Resolved", { $context: "review thread state" }) : w("Open", { $context: "review thread state" }), t[51] = w, t[52] = n.isResolved, t[53] = u) : u = t[53], H = /* @__PURE__ */ $("button", {
|
|
1475
1475
|
type: "button",
|
|
1476
1476
|
className: "hover:text-foreground",
|
|
1477
|
-
"aria-expanded":
|
|
1478
|
-
onClick:
|
|
1477
|
+
"aria-expanded": T,
|
|
1478
|
+
onClick: l,
|
|
1479
1479
|
children: [
|
|
1480
|
-
|
|
1480
|
+
u,
|
|
1481
1481
|
" ",
|
|
1482
1482
|
"·",
|
|
1483
1483
|
" ",
|
|
1484
|
-
|
|
1484
|
+
w("{count, plural, one {{count} comment} other {{count} comments}}", { count: r })
|
|
1485
1485
|
]
|
|
1486
|
-
}), t[54] === n.isOutdated ? U = t[55] : (U = n.isOutdated ? /* @__PURE__ */ Q("span", { children: "outdated" }) : null, t[54] = n.isOutdated, t[55] = U), t[56] !==
|
|
1486
|
+
}), t[54] === n.isOutdated ? U = t[55] : (U = n.isOutdated ? /* @__PURE__ */ Q("span", { children: "outdated" }) : null, t[54] = n.isOutdated, t[55] = U), t[56] !== m || t[57] !== p || t[58] !== w || t[59] !== g || t[60] !== f ? (W = g ? /* @__PURE__ */ $(C, {
|
|
1487
1487
|
size: "compact",
|
|
1488
1488
|
variant: "ghost",
|
|
1489
1489
|
className: "ml-auto",
|
|
1490
|
-
disabled:
|
|
1491
|
-
onClick:
|
|
1492
|
-
children: [/* @__PURE__ */ Q(
|
|
1493
|
-
}) : null, t[56] =
|
|
1490
|
+
disabled: f || p,
|
|
1491
|
+
onClick: g,
|
|
1492
|
+
children: [/* @__PURE__ */ Q(ue, { className: "size-3" }), p ? w("Preparing...") : m ?? w("Fix in a thread")]
|
|
1493
|
+
}) : null, t[56] = m, t[57] = p, t[58] = w, t[59] = g, t[60] = f, t[61] = W) : W = t[61], G = _ && L.some(Xn) ? /* @__PURE__ */ $(C, {
|
|
1494
1494
|
size: "compact",
|
|
1495
1495
|
variant: "ghost",
|
|
1496
|
-
className:
|
|
1497
|
-
onClick: () =>
|
|
1496
|
+
className: g ? void 0 : "ml-auto",
|
|
1497
|
+
onClick: () => _({
|
|
1498
1498
|
...n,
|
|
1499
|
-
comments:
|
|
1499
|
+
comments: L
|
|
1500
1500
|
}),
|
|
1501
|
-
children: [/* @__PURE__ */ Q(
|
|
1501
|
+
children: [/* @__PURE__ */ Q(de, { className: "size-3" }), /* @__PURE__ */ Q(b, { children: "Add to chat" })]
|
|
1502
1502
|
}) : null;
|
|
1503
1503
|
}
|
|
1504
|
-
t[0] =
|
|
1505
|
-
} else
|
|
1504
|
+
t[0] = I, t[1] = T, t[2] = m, t[3] = p, t[4] = w, t[5] = ne, t[6] = F, t[7] = _, t[8] = S, t[9] = g, t[10] = y, t[11] = v, t[12] = f, t[13] = N, t[14] = n, t[15] = L, t[16] = R, t[17] = z, t[18] = pe, t[19] = B, t[20] = me, t[21] = he, t[22] = V, t[23] = H, t[24] = U, t[25] = W, t[26] = G, t[27] = K, t[28] = ge, t[29] = _e;
|
|
1505
|
+
} else L = t[15], R = t[16], z = t[17], pe = t[18], B = t[19], me = t[20], he = t[21], V = t[22], H = t[23], U = t[24], W = t[25], G = t[26], K = t[27], ge = t[28], _e = t[29];
|
|
1506
1506
|
if (he !== Symbol.for("react.early_return_sentinel")) return he;
|
|
1507
1507
|
let q;
|
|
1508
|
-
t[62] !== a || t[63] !==
|
|
1508
|
+
t[62] !== a || t[63] !== w || t[64] !== _ || t[65] !== g || t[66] !== ee || t[67] !== f || t[68] !== n.isResolved ? (q = a ? /* @__PURE__ */ Q(C, {
|
|
1509
1509
|
size: "compact",
|
|
1510
1510
|
variant: "ghost",
|
|
1511
|
-
className:
|
|
1512
|
-
disabled:
|
|
1513
|
-
onClick:
|
|
1514
|
-
children: n.isResolved ?
|
|
1515
|
-
}) : null, t[62] = a, t[63] =
|
|
1511
|
+
className: g || _ ? void 0 : "ml-auto",
|
|
1512
|
+
disabled: f,
|
|
1513
|
+
onClick: ee,
|
|
1514
|
+
children: n.isResolved ? w("Unresolve") : w("Resolve")
|
|
1515
|
+
}) : null, t[62] = a, t[63] = w, t[64] = _, t[65] = g, t[66] = ee, t[67] = f, t[68] = n.isResolved, t[69] = q) : q = t[69];
|
|
1516
1516
|
let ve;
|
|
1517
1517
|
t[70] !== me || t[71] !== q || t[72] !== V || t[73] !== H || t[74] !== U || t[75] !== W || t[76] !== G ? (ve = /* @__PURE__ */ $("div", {
|
|
1518
1518
|
className: me,
|
|
@@ -1526,10 +1526,10 @@ function Yn(e) {
|
|
|
1526
1526
|
]
|
|
1527
1527
|
}), t[70] = me, t[71] = q, t[72] = V, t[73] = H, t[74] = U, t[75] = W, t[76] = G, t[77] = ve) : ve = t[77];
|
|
1528
1528
|
let ye;
|
|
1529
|
-
t[78] !==
|
|
1529
|
+
t[78] !== x || t[79] !== s || t[80] !== i || t[81] !== L || t[82] !== d || t[83] !== A || t[84] !== l || t[85] !== T || t[86] !== w || t[87] !== R || t[88] !== F || t[89] !== z || t[90] !== te || t[91] !== f || t[92] !== u || t[93] !== O || t[94] !== D || t[95] !== pe || t[96] !== N || t[97] !== B || t[98] !== n.id || t[99] !== r ? (ye = T ? /* @__PURE__ */ $(Ve, { children: [
|
|
1530
1530
|
/* @__PURE__ */ Q("div", {
|
|
1531
1531
|
className: "mt-2 space-y-3",
|
|
1532
|
-
children:
|
|
1532
|
+
children: L.map((e) => /* @__PURE__ */ $("article", {
|
|
1533
1533
|
className: "group min-w-0",
|
|
1534
1534
|
children: [/* @__PURE__ */ $("div", {
|
|
1535
1535
|
className: "flex flex-wrap items-center gap-2 text-xs text-muted-foreground",
|
|
@@ -1539,97 +1539,97 @@ function Yn(e) {
|
|
|
1539
1539
|
/* @__PURE__ */ Q(Cn, {
|
|
1540
1540
|
className: "ml-auto justify-end",
|
|
1541
1541
|
reactions: e.reactions ?? [],
|
|
1542
|
-
canReact:
|
|
1542
|
+
canReact: s,
|
|
1543
1543
|
subjectId: e.id,
|
|
1544
|
-
environmentId:
|
|
1545
|
-
reference:
|
|
1546
|
-
onRefresh:
|
|
1544
|
+
environmentId: l,
|
|
1545
|
+
reference: u,
|
|
1546
|
+
onRefresh: te
|
|
1547
1547
|
})
|
|
1548
1548
|
]
|
|
1549
|
-
}),
|
|
1549
|
+
}), A === e.id ? /* @__PURE__ */ Q(on, {
|
|
1550
1550
|
className: "mt-1",
|
|
1551
1551
|
value: e.body,
|
|
1552
1552
|
cwd: r,
|
|
1553
|
-
environmentId:
|
|
1554
|
-
completionScope:
|
|
1555
|
-
label:
|
|
1556
|
-
saving:
|
|
1557
|
-
onSave: (t) => void
|
|
1558
|
-
onCancel: () =>
|
|
1553
|
+
environmentId: l,
|
|
1554
|
+
completionScope: d,
|
|
1555
|
+
label: w("Edit comment"),
|
|
1556
|
+
saving: N,
|
|
1557
|
+
onSave: (t) => void pe(e.id, t),
|
|
1558
|
+
onCancel: () => M(null)
|
|
1559
1559
|
}) : /* @__PURE__ */ $("div", {
|
|
1560
1560
|
className: "mt-1 flex items-start gap-1",
|
|
1561
1561
|
children: [/* @__PURE__ */ Q(an, {
|
|
1562
1562
|
className: "min-w-0 flex-1 text-sm",
|
|
1563
1563
|
text: e.body,
|
|
1564
1564
|
cwd: r,
|
|
1565
|
-
environmentId:
|
|
1566
|
-
}),
|
|
1567
|
-
"aria-label":
|
|
1568
|
-
onClick: () =>
|
|
1565
|
+
environmentId: l
|
|
1566
|
+
}), x(e) ? /* @__PURE__ */ Q(Gt, {
|
|
1567
|
+
"aria-label": w("Edit comment"),
|
|
1568
|
+
onClick: () => M(e.id)
|
|
1569
1569
|
}) : null]
|
|
1570
1570
|
})]
|
|
1571
1571
|
}, e.id))
|
|
1572
1572
|
}),
|
|
1573
|
-
|
|
1573
|
+
z === null ? null : /* @__PURE__ */ Q("div", {
|
|
1574
1574
|
className: "mt-2",
|
|
1575
|
-
children: /* @__PURE__ */ Q(
|
|
1575
|
+
children: /* @__PURE__ */ Q(C, {
|
|
1576
1576
|
size: "xs",
|
|
1577
1577
|
variant: "ghost",
|
|
1578
|
-
disabled:
|
|
1579
|
-
onClick: () => void
|
|
1580
|
-
children:
|
|
1578
|
+
disabled: F,
|
|
1579
|
+
onClick: () => void R(),
|
|
1580
|
+
children: w(F ? "Loading..." : "Load more comments")
|
|
1581
1581
|
})
|
|
1582
1582
|
}),
|
|
1583
|
-
i ?
|
|
1584
|
-
environmentId:
|
|
1585
|
-
projectId:
|
|
1583
|
+
i ? D ? /* @__PURE__ */ Q(Me, {
|
|
1584
|
+
environmentId: l,
|
|
1585
|
+
projectId: u.projectId,
|
|
1586
1586
|
ownerKey: JSON.stringify([
|
|
1587
1587
|
"pr-reply",
|
|
1588
|
-
|
|
1589
|
-
|
|
1588
|
+
l,
|
|
1589
|
+
u,
|
|
1590
1590
|
n.id
|
|
1591
1591
|
]),
|
|
1592
|
-
text:
|
|
1593
|
-
textareaRef:
|
|
1594
|
-
onTextChange:
|
|
1595
|
-
disabled:
|
|
1592
|
+
text: O,
|
|
1593
|
+
textareaRef: oe,
|
|
1594
|
+
onTextChange: k,
|
|
1595
|
+
disabled: f,
|
|
1596
1596
|
children: (e) => /* @__PURE__ */ $("div", {
|
|
1597
1597
|
className: "mt-2",
|
|
1598
1598
|
children: [/* @__PURE__ */ Q(Ie, {
|
|
1599
|
-
ref:
|
|
1599
|
+
ref: oe,
|
|
1600
1600
|
readOnly: e.freezesEditor,
|
|
1601
1601
|
autoFocus: !0,
|
|
1602
1602
|
size: "sm",
|
|
1603
|
-
completionScope:
|
|
1604
|
-
value:
|
|
1605
|
-
placeholder:
|
|
1606
|
-
"aria-label":
|
|
1607
|
-
onValueChange:
|
|
1603
|
+
completionScope: d,
|
|
1604
|
+
value: O,
|
|
1605
|
+
placeholder: w("Reply", { $context: "noun, placeholder" }),
|
|
1606
|
+
"aria-label": w("Reply to this conversation"),
|
|
1607
|
+
onValueChange: k,
|
|
1608
1608
|
onKeyDown: Fn({
|
|
1609
|
-
value:
|
|
1610
|
-
pending:
|
|
1609
|
+
value: O,
|
|
1610
|
+
pending: f,
|
|
1611
1611
|
allowEmpty: e.blocksSubmission,
|
|
1612
|
-
onSubmit: () => e.submitAfterDictation((e) => void
|
|
1613
|
-
onCancel: () => e.state.phase === "idle" ?
|
|
1612
|
+
onSubmit: () => e.submitAfterDictation((e) => void B(e)),
|
|
1613
|
+
onCancel: () => e.state.phase === "idle" ? re(!1) : e.cancel()
|
|
1614
1614
|
})
|
|
1615
1615
|
}), /* @__PURE__ */ $("div", {
|
|
1616
1616
|
className: "mt-2 flex flex-wrap items-center justify-end gap-2",
|
|
1617
1617
|
children: [
|
|
1618
1618
|
/* @__PURE__ */ Q(ke, {
|
|
1619
1619
|
speech: e,
|
|
1620
|
-
disabled:
|
|
1620
|
+
disabled: f
|
|
1621
1621
|
}),
|
|
1622
|
-
/* @__PURE__ */ Q(
|
|
1622
|
+
/* @__PURE__ */ Q(C, {
|
|
1623
1623
|
size: "xs",
|
|
1624
1624
|
variant: "ghost",
|
|
1625
|
-
onClick: () =>
|
|
1626
|
-
children: /* @__PURE__ */ Q(
|
|
1625
|
+
onClick: () => re(!1),
|
|
1626
|
+
children: /* @__PURE__ */ Q(b, { children: "Cancel" })
|
|
1627
1627
|
}),
|
|
1628
|
-
/* @__PURE__ */ Q(
|
|
1628
|
+
/* @__PURE__ */ Q(C, {
|
|
1629
1629
|
size: "xs",
|
|
1630
|
-
disabled: e.preparing ||
|
|
1631
|
-
onClick: () => e.submitAfterDictation((e) => void
|
|
1632
|
-
children: /* @__PURE__ */ Q(
|
|
1630
|
+
disabled: e.preparing || f || !e.blocksSubmission && O.trim().length === 0,
|
|
1631
|
+
onClick: () => e.submitAfterDictation((e) => void B(e)),
|
|
1632
|
+
children: /* @__PURE__ */ Q(b, {
|
|
1633
1633
|
context: "verb, button",
|
|
1634
1634
|
children: "Reply"
|
|
1635
1635
|
})
|
|
@@ -1637,17 +1637,17 @@ function Yn(e) {
|
|
|
1637
1637
|
]
|
|
1638
1638
|
})]
|
|
1639
1639
|
})
|
|
1640
|
-
}) : /* @__PURE__ */ Q(
|
|
1640
|
+
}) : /* @__PURE__ */ Q(C, {
|
|
1641
1641
|
size: "xs",
|
|
1642
1642
|
variant: "ghost",
|
|
1643
1643
|
className: "mt-2",
|
|
1644
|
-
onClick: () =>
|
|
1645
|
-
children: /* @__PURE__ */ Q(
|
|
1644
|
+
onClick: () => re(!0),
|
|
1645
|
+
children: /* @__PURE__ */ Q(b, {
|
|
1646
1646
|
context: "verb, button",
|
|
1647
1647
|
children: "Reply"
|
|
1648
1648
|
})
|
|
1649
1649
|
}) : null
|
|
1650
|
-
] }) : null, t[78] =
|
|
1650
|
+
] }) : null, t[78] = x, t[79] = s, t[80] = i, t[81] = L, t[82] = d, t[83] = A, t[84] = l, t[85] = T, t[86] = w, t[87] = R, t[88] = F, t[89] = z, t[90] = te, t[91] = f, t[92] = u, t[93] = O, t[94] = D, t[95] = pe, t[96] = N, t[97] = B, t[98] = n.id, t[99] = r, t[100] = ye) : ye = t[100];
|
|
1651
1651
|
let be;
|
|
1652
1652
|
return t[101] !== ve || t[102] !== ye || t[103] !== K || t[104] !== ge || t[105] !== _e ? (be = /* @__PURE__ */ $("div", {
|
|
1653
1653
|
className: K,
|