@industry-theme/github-panels 0.1.56 → 0.1.58

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":"GitHubIssueDetailPanel.d.ts","sourceRoot":"","sources":["../../src/panels/GitHubIssueDetailPanel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAsC,MAAM,OAAO,CAAC;AAc3D,OAAO,KAAK,EAAE,mBAAmB,EAAqB,MAAM,UAAU,CAAC;AAgmCvE;;;;;;;;;GASG;AACH,eAAO,MAAM,sBAAsB,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CAEhE,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,8BAA8B;;;;;;;;CAQ1C,CAAC"}
1
+ {"version":3,"file":"GitHubIssueDetailPanel.d.ts","sourceRoot":"","sources":["../../src/panels/GitHubIssueDetailPanel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAsC,MAAM,OAAO,CAAC;AAc3D,OAAO,KAAK,EAAE,mBAAmB,EAAqB,MAAM,UAAU,CAAC;AAwmCvE;;;;;;;;;GASG;AACH,eAAO,MAAM,sBAAsB,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CAEhE,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,8BAA8B;;;;;;;;CAQ1C,CAAC"}
@@ -45738,9 +45738,11 @@ var createIndustryMarkdownComponents = ({
45738
45738
  fontSize: theme2.fontSizes[5],
45739
45739
  lineHeight: theme2.lineHeights.heading,
45740
45740
  fontWeight: theme2.fontWeights.bold,
45741
- marginTop: index2 === 0 ? 0 : theme2.space[4],
45741
+ marginTop: theme2.space[4],
45742
45742
  marginBottom: theme2.space[4],
45743
45743
  fontFamily: theme2.fonts.heading,
45744
+ paddingBottom: theme2.space[2],
45745
+ borderBottom: `1px solid ${theme2.colors.border}`,
45744
45746
  ...headerStyles
45745
45747
  },
45746
45748
  ...props
@@ -45751,9 +45753,11 @@ var createIndustryMarkdownComponents = ({
45751
45753
  fontSize: theme2.fontSizes[4],
45752
45754
  lineHeight: theme2.lineHeights.heading,
45753
45755
  fontWeight: theme2.fontWeights.bold,
45754
- marginTop: index2 === 0 ? 0 : theme2.space[4],
45756
+ marginTop: theme2.space[4],
45755
45757
  marginBottom: theme2.space[3],
45756
45758
  fontFamily: theme2.fonts.heading,
45759
+ paddingBottom: theme2.space[2],
45760
+ borderBottom: `1px solid ${theme2.colors.border}`,
45757
45761
  ...headerStyles
45758
45762
  },
45759
45763
  ...props
@@ -45764,12 +45768,48 @@ var createIndustryMarkdownComponents = ({
45764
45768
  fontSize: theme2.fontSizes[3],
45765
45769
  lineHeight: theme2.lineHeights.heading,
45766
45770
  fontWeight: theme2.fontWeights.semibold,
45767
- marginTop: index2 === 0 ? 0 : theme2.space[4],
45771
+ marginTop: theme2.space[4],
45768
45772
  marginBottom: theme2.space[3],
45769
45773
  fontFamily: theme2.fonts.heading
45770
45774
  },
45771
45775
  ...props
45772
45776
  }, children2),
45777
+ h4: ({ children: children2, ...props }) => /* @__PURE__ */ React2__default.createElement("h4", {
45778
+ style: {
45779
+ color: theme2.colors.text,
45780
+ fontSize: theme2.fontSizes[2],
45781
+ lineHeight: theme2.lineHeights.heading,
45782
+ fontWeight: theme2.fontWeights.semibold,
45783
+ marginTop: theme2.space[3],
45784
+ marginBottom: theme2.space[2],
45785
+ fontFamily: theme2.fonts.heading
45786
+ },
45787
+ ...props
45788
+ }, children2),
45789
+ h5: ({ children: children2, ...props }) => /* @__PURE__ */ React2__default.createElement("h5", {
45790
+ style: {
45791
+ color: theme2.colors.text,
45792
+ fontSize: theme2.fontSizes[1],
45793
+ lineHeight: theme2.lineHeights.heading,
45794
+ fontWeight: theme2.fontWeights.semibold,
45795
+ marginTop: theme2.space[3],
45796
+ marginBottom: theme2.space[1],
45797
+ fontFamily: theme2.fonts.heading
45798
+ },
45799
+ ...props
45800
+ }, children2),
45801
+ h6: ({ children: children2, ...props }) => /* @__PURE__ */ React2__default.createElement("h6", {
45802
+ style: {
45803
+ color: theme2.colors.text,
45804
+ fontSize: theme2.fontSizes[1],
45805
+ lineHeight: theme2.lineHeights.heading,
45806
+ fontWeight: theme2.fontWeights.medium,
45807
+ marginTop: theme2.space[3],
45808
+ marginBottom: theme2.space[1],
45809
+ fontFamily: theme2.fonts.heading
45810
+ },
45811
+ ...props
45812
+ }, children2),
45773
45813
  p: ({ children: children2, ...props }) => /* @__PURE__ */ React2__default.createElement("p", {
45774
45814
  style: {
45775
45815
  color: theme2.colors.text,
@@ -46132,7 +46172,7 @@ var createIndustryMarkdownComponents = ({
46132
46172
  }), "Fill & Copy (", placeholders.length, ")"))), isPrompt ? /* @__PURE__ */ React2__default.createElement("div", {
46133
46173
  style: {
46134
46174
  margin: 0,
46135
- padding: theme2.space[5],
46175
+ padding: theme2.space[1],
46136
46176
  backgroundColor: "transparent",
46137
46177
  fontSize: theme2.fontSizes[1],
46138
46178
  lineHeight: theme2.lineHeights.body,
@@ -46159,7 +46199,7 @@ var createIndustryMarkdownComponents = ({
46159
46199
  })) : /* @__PURE__ */ React2__default.createElement("pre", {
46160
46200
  style: {
46161
46201
  margin: 0,
46162
- padding: theme2.space[4],
46202
+ padding: theme2.space[1],
46163
46203
  backgroundColor: "transparent",
46164
46204
  overflow: "auto",
46165
46205
  fontSize: theme2.fontSizes[1],
@@ -49237,11 +49277,17 @@ const GitHubIssueDetailPanelContent = ({ events }) => {
49237
49277
  setRepo(event.payload.repo);
49238
49278
  setTaskCreation({ status: "idle" });
49239
49279
  };
49240
- const unsubscribe = events.on("issue:selected", handleIssueSelected);
49280
+ const handleIssueDeselected = () => {
49281
+ setSelectedIssue(null);
49282
+ setOwner("");
49283
+ setRepo("");
49284
+ setTaskCreation({ status: "idle" });
49285
+ };
49286
+ const unsubscribeSelected = events.on("issue:selected", handleIssueSelected);
49287
+ const unsubscribeDeselected = events.on("issue:deselected", handleIssueDeselected);
49241
49288
  return () => {
49242
- if (typeof unsubscribe === "function") {
49243
- unsubscribe();
49244
- }
49289
+ if (typeof unsubscribeSelected === "function") unsubscribeSelected();
49290
+ if (typeof unsubscribeDeselected === "function") unsubscribeDeselected();
49245
49291
  };
49246
49292
  }, [events]);
49247
49293
  useEffect(() => {