@industry-theme/git-panels 0.1.6 → 0.1.8
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GitPullRequestDetailPanel.d.ts","sourceRoot":"","sources":["../../src/panels/GitPullRequestDetailPanel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"GitPullRequestDetailPanel.d.ts","sourceRoot":"","sources":["../../src/panels/GitPullRequestDetailPanel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAYnD,OAAO,KAAK,EAAE,mBAAmB,EAAmB,MAAM,UAAU,CAAC;AA0XrE;;GAEG;AACH,eAAO,MAAM,yBAAyB,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CAMnE,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,gCAAgC,EAAE,KAAK,CAAC,EAyDpD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GitPullRequestsPanel.d.ts","sourceRoot":"","sources":["../../src/panels/GitPullRequestsPanel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAuC,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"GitPullRequestsPanel.d.ts","sourceRoot":"","sources":["../../src/panels/GitPullRequestsPanel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAuC,MAAM,OAAO,CAAC;AAc5D,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAC;AAMpD;;;;;;;;;;GAUG;AACH,eAAO,MAAM,oBAAoB,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CAuS9D,CAAC;AAmNF;;GAEG;AACH,eAAO,MAAM,2BAA2B,EAAE,KAAK,CAAC,EAkE/C,CAAC"}
|
package/dist/panels.bundle.js
CHANGED
|
@@ -101,17 +101,6 @@ const createLucideIcon = (iconName, iconNode) => {
|
|
|
101
101
|
Component.displayName = toPascalCase(iconName);
|
|
102
102
|
return Component;
|
|
103
103
|
};
|
|
104
|
-
/**
|
|
105
|
-
* @license lucide-react v0.552.0 - ISC
|
|
106
|
-
*
|
|
107
|
-
* This source code is licensed under the ISC license.
|
|
108
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
109
|
-
*/
|
|
110
|
-
const __iconNode$l = [
|
|
111
|
-
["path", { d: "m12 19-7-7 7-7", key: "1l729n" }],
|
|
112
|
-
["path", { d: "M19 12H5", key: "x3x0zl" }]
|
|
113
|
-
];
|
|
114
|
-
const ArrowLeft = createLucideIcon("arrow-left", __iconNode$l);
|
|
115
104
|
/**
|
|
116
105
|
* @license lucide-react v0.552.0 - ISC
|
|
117
106
|
*
|
|
@@ -365,10 +354,10 @@ const RefreshCcw = createLucideIcon("refresh-ccw", __iconNode$1);
|
|
|
365
354
|
* See the LICENSE file in the root directory of this source tree.
|
|
366
355
|
*/
|
|
367
356
|
const __iconNode = [
|
|
368
|
-
["path", { d: "
|
|
369
|
-
["
|
|
357
|
+
["path", { d: "M18 6 6 18", key: "1bl5f8" }],
|
|
358
|
+
["path", { d: "m6 6 12 12", key: "d8bk6v" }]
|
|
370
359
|
];
|
|
371
|
-
const
|
|
360
|
+
const X = createLucideIcon("x", __iconNode);
|
|
372
361
|
var terminalTheme$1 = {
|
|
373
362
|
space: [0, 4, 8, 16, 32, 64, 128, 256, 512],
|
|
374
363
|
fonts: {
|
|
@@ -1319,6 +1308,23 @@ const PullRequestCard = ({ pr, theme: theme2, onClick }) => {
|
|
|
1319
1308
|
children: "Draft"
|
|
1320
1309
|
}
|
|
1321
1310
|
),
|
|
1311
|
+
pr.changed_files != null && /* @__PURE__ */ jsxs(
|
|
1312
|
+
"span",
|
|
1313
|
+
{
|
|
1314
|
+
style: {
|
|
1315
|
+
display: "inline-flex",
|
|
1316
|
+
alignItems: "center",
|
|
1317
|
+
gap: "4px"
|
|
1318
|
+
},
|
|
1319
|
+
children: [
|
|
1320
|
+
/* @__PURE__ */ jsx(FileText, { size: 12 }),
|
|
1321
|
+
" ",
|
|
1322
|
+
pr.changed_files,
|
|
1323
|
+
" ",
|
|
1324
|
+
pr.changed_files === 1 ? "file" : "files"
|
|
1325
|
+
]
|
|
1326
|
+
}
|
|
1327
|
+
),
|
|
1322
1328
|
/* @__PURE__ */ jsxs("span", { children: [
|
|
1323
1329
|
"by ",
|
|
1324
1330
|
((_a = pr.user) == null ? void 0 : _a.login) ?? "unknown"
|
|
@@ -45585,28 +45591,6 @@ const GitPullRequestDetailPanelContent = ({
|
|
|
45585
45591
|
boxSizing: "border-box"
|
|
45586
45592
|
},
|
|
45587
45593
|
children: [
|
|
45588
|
-
/* @__PURE__ */ jsx(
|
|
45589
|
-
"button",
|
|
45590
|
-
{
|
|
45591
|
-
type: "button",
|
|
45592
|
-
onClick: handleBack,
|
|
45593
|
-
title: "Back to list",
|
|
45594
|
-
style: {
|
|
45595
|
-
display: "inline-flex",
|
|
45596
|
-
alignItems: "center",
|
|
45597
|
-
justifyContent: "center",
|
|
45598
|
-
width: "28px",
|
|
45599
|
-
height: "28px",
|
|
45600
|
-
padding: 0,
|
|
45601
|
-
border: `1px solid ${theme2.colors.border}`,
|
|
45602
|
-
borderRadius: "6px",
|
|
45603
|
-
backgroundColor: theme2.colors.background,
|
|
45604
|
-
color: theme2.colors.textSecondary,
|
|
45605
|
-
cursor: "pointer"
|
|
45606
|
-
},
|
|
45607
|
-
children: /* @__PURE__ */ jsx(ArrowLeft, { size: 16 })
|
|
45608
|
-
}
|
|
45609
|
-
),
|
|
45610
45594
|
/* @__PURE__ */ jsxs(
|
|
45611
45595
|
"span",
|
|
45612
45596
|
{
|
|
@@ -45659,6 +45643,25 @@ const GitPullRequestDetailPanelContent = ({
|
|
|
45659
45643
|
]
|
|
45660
45644
|
}
|
|
45661
45645
|
),
|
|
45646
|
+
/* @__PURE__ */ jsxs(
|
|
45647
|
+
"span",
|
|
45648
|
+
{
|
|
45649
|
+
style: {
|
|
45650
|
+
display: "inline-flex",
|
|
45651
|
+
alignItems: "center",
|
|
45652
|
+
gap: "6px",
|
|
45653
|
+
color: theme2.colors.textSecondary,
|
|
45654
|
+
fontFamily: theme2.fonts.monospace,
|
|
45655
|
+
fontSize: theme2.fontSizes[0]
|
|
45656
|
+
},
|
|
45657
|
+
children: [
|
|
45658
|
+
/* @__PURE__ */ jsx(GitBranch, { size: 14 }),
|
|
45659
|
+
((_a = selectedPR.base) == null ? void 0 : _a.ref) ?? "?",
|
|
45660
|
+
" ← ",
|
|
45661
|
+
((_b = selectedPR.head) == null ? void 0 : _b.ref) ?? "?"
|
|
45662
|
+
]
|
|
45663
|
+
}
|
|
45664
|
+
),
|
|
45662
45665
|
/* @__PURE__ */ jsx("div", { style: { flex: 1 } }),
|
|
45663
45666
|
/* @__PURE__ */ jsx(
|
|
45664
45667
|
"a",
|
|
@@ -45682,6 +45685,28 @@ const GitPullRequestDetailPanelContent = ({
|
|
|
45682
45685
|
},
|
|
45683
45686
|
children: /* @__PURE__ */ jsx(ExternalLink, { size: 14 })
|
|
45684
45687
|
}
|
|
45688
|
+
),
|
|
45689
|
+
/* @__PURE__ */ jsx(
|
|
45690
|
+
"button",
|
|
45691
|
+
{
|
|
45692
|
+
type: "button",
|
|
45693
|
+
onClick: handleBack,
|
|
45694
|
+
title: "Close",
|
|
45695
|
+
style: {
|
|
45696
|
+
display: "inline-flex",
|
|
45697
|
+
alignItems: "center",
|
|
45698
|
+
justifyContent: "center",
|
|
45699
|
+
width: "28px",
|
|
45700
|
+
height: "28px",
|
|
45701
|
+
padding: 0,
|
|
45702
|
+
border: `1px solid ${theme2.colors.border}`,
|
|
45703
|
+
borderRadius: "6px",
|
|
45704
|
+
backgroundColor: theme2.colors.background,
|
|
45705
|
+
color: theme2.colors.textSecondary,
|
|
45706
|
+
cursor: "pointer"
|
|
45707
|
+
},
|
|
45708
|
+
children: /* @__PURE__ */ jsx(X, { size: 16 })
|
|
45709
|
+
}
|
|
45685
45710
|
)
|
|
45686
45711
|
]
|
|
45687
45712
|
}
|
|
@@ -45710,13 +45735,12 @@ const GitPullRequestDetailPanelContent = ({
|
|
|
45710
45735
|
children: selectedPR.title
|
|
45711
45736
|
}
|
|
45712
45737
|
),
|
|
45713
|
-
/* @__PURE__ */ jsxs(
|
|
45738
|
+
(totalComments > 0 || !isOpen) && /* @__PURE__ */ jsxs(
|
|
45714
45739
|
"div",
|
|
45715
45740
|
{
|
|
45716
45741
|
style: {
|
|
45717
|
-
display: "
|
|
45718
|
-
|
|
45719
|
-
gap: "12px",
|
|
45742
|
+
display: "flex",
|
|
45743
|
+
gap: "16px",
|
|
45720
45744
|
marginBottom: "20px",
|
|
45721
45745
|
padding: "12px",
|
|
45722
45746
|
backgroundColor: theme2.colors.backgroundSecondary,
|
|
@@ -45724,34 +45748,6 @@ const GitPullRequestDetailPanelContent = ({
|
|
|
45724
45748
|
border: `1px solid ${theme2.colors.border}`
|
|
45725
45749
|
},
|
|
45726
45750
|
children: [
|
|
45727
|
-
selectedPR.user && /* @__PURE__ */ jsx(
|
|
45728
|
-
MetadataRow,
|
|
45729
|
-
{
|
|
45730
|
-
icon: /* @__PURE__ */ jsx(User, { size: 14 }),
|
|
45731
|
-
label: "Author",
|
|
45732
|
-
value: selectedPR.user.login,
|
|
45733
|
-
theme: theme2
|
|
45734
|
-
}
|
|
45735
|
-
),
|
|
45736
|
-
/* @__PURE__ */ jsx(
|
|
45737
|
-
MetadataRow,
|
|
45738
|
-
{
|
|
45739
|
-
icon: /* @__PURE__ */ jsx(GitBranch, { size: 14 }),
|
|
45740
|
-
label: "Branch",
|
|
45741
|
-
value: `${((_a = selectedPR.base) == null ? void 0 : _a.ref) ?? "?"} ← ${((_b = selectedPR.head) == null ? void 0 : _b.ref) ?? "?"}`,
|
|
45742
|
-
mono: true,
|
|
45743
|
-
theme: theme2
|
|
45744
|
-
}
|
|
45745
|
-
),
|
|
45746
|
-
/* @__PURE__ */ jsx(
|
|
45747
|
-
MetadataRow,
|
|
45748
|
-
{
|
|
45749
|
-
icon: /* @__PURE__ */ jsx(Calendar, { size: 14 }),
|
|
45750
|
-
label: "Created",
|
|
45751
|
-
value: formatDate(selectedPR.created_at),
|
|
45752
|
-
theme: theme2
|
|
45753
|
-
}
|
|
45754
|
-
),
|
|
45755
45751
|
totalComments > 0 && /* @__PURE__ */ jsx(
|
|
45756
45752
|
MetadataRow,
|
|
45757
45753
|
{
|