@industry-theme/backlogmd-kanban-panel 1.0.27 → 1.0.29
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/panels.bundle.js +14 -142
- package/dist/panels.bundle.js.map +1 -1
- package/package.json +2 -2
package/dist/panels.bundle.js
CHANGED
|
@@ -49463,8 +49463,7 @@ var createIndustryMarkdownComponents = ({
|
|
|
49463
49463
|
style: {
|
|
49464
49464
|
flex: 1,
|
|
49465
49465
|
cursor: "pointer",
|
|
49466
|
-
|
|
49467
|
-
opacity: isChecked ? 0.6 : 1,
|
|
49466
|
+
color: isChecked ? theme2.colors.textMuted : "inherit",
|
|
49468
49467
|
lineHeight: theme2.lineHeights.relaxed
|
|
49469
49468
|
}
|
|
49470
49469
|
}, labelContent.length > 0 ? labelContent : null)), nestedListElements.length > 0 ? nestedListElements : null);
|
|
@@ -50532,6 +50531,7 @@ var IndustryMarkdownSlide = React2__default.memo(function IndustryMarkdownSlide2
|
|
|
50532
50531
|
handleRunBashCommand,
|
|
50533
50532
|
handlePromptCopy,
|
|
50534
50533
|
enableHtmlPopout = true,
|
|
50534
|
+
autoFocusOnVisible = true,
|
|
50535
50535
|
searchQuery,
|
|
50536
50536
|
slideHeaderMarginTopOverride,
|
|
50537
50537
|
theme: themeOverride,
|
|
@@ -50738,11 +50738,10 @@ var IndustryMarkdownSlide = React2__default.memo(function IndustryMarkdownSlide2
|
|
|
50738
50738
|
}
|
|
50739
50739
|
}, [enableKeyboardScrolling, isVisible, slideIndex, scrollConfig]);
|
|
50740
50740
|
useEffect(() => {
|
|
50741
|
-
if (isVisible && slideRef.current) {
|
|
50742
|
-
|
|
50743
|
-
slideRef.current.focus();
|
|
50741
|
+
if (autoFocusOnVisible && isVisible && slideRef.current) {
|
|
50742
|
+
slideRef.current.focus({ preventScroll: true });
|
|
50744
50743
|
}
|
|
50745
|
-
}, [isVisible]);
|
|
50744
|
+
}, [autoFocusOnVisible, isVisible]);
|
|
50746
50745
|
const openPlaceholderModal = (placeholders, promptContent) => {
|
|
50747
50746
|
if (!handlePromptCopy)
|
|
50748
50747
|
return;
|
|
@@ -52707,15 +52706,12 @@ var Vt;
|
|
|
52707
52706
|
})();
|
|
52708
52707
|
var DocumentView = ({
|
|
52709
52708
|
content: content2,
|
|
52710
|
-
showSegmented = false,
|
|
52711
52709
|
onCheckboxChange,
|
|
52712
|
-
onSectionClick,
|
|
52713
52710
|
maxWidth = "900px",
|
|
52714
|
-
showSectionHeaders = true,
|
|
52715
|
-
showSeparators = true,
|
|
52716
52711
|
slideIdPrefix = "document",
|
|
52717
52712
|
enableHtmlPopout = true,
|
|
52718
52713
|
enableKeyboardScrolling = true,
|
|
52714
|
+
autoFocusOnVisible = true,
|
|
52719
52715
|
onLinkClick,
|
|
52720
52716
|
handleRunBashCommand,
|
|
52721
52717
|
handlePromptCopy,
|
|
@@ -52725,88 +52721,7 @@ var DocumentView = ({
|
|
|
52725
52721
|
transparentBackground = false
|
|
52726
52722
|
}) => {
|
|
52727
52723
|
const containerRef = useRef(null);
|
|
52728
|
-
const sectionRefs = useRef([]);
|
|
52729
52724
|
const backgroundColor = transparentBackground ? "transparent" : theme2.colors.background;
|
|
52730
|
-
const scrollToSection = useCallback((sectionIndex) => {
|
|
52731
|
-
var _a;
|
|
52732
|
-
if (sectionRefs.current[sectionIndex]) {
|
|
52733
|
-
(_a = sectionRefs.current[sectionIndex]) == null ? void 0 : _a.scrollIntoView({
|
|
52734
|
-
behavior: "smooth",
|
|
52735
|
-
block: "start"
|
|
52736
|
-
});
|
|
52737
|
-
}
|
|
52738
|
-
}, []);
|
|
52739
|
-
const handleSectionClick = useCallback((index2) => {
|
|
52740
|
-
scrollToSection(index2);
|
|
52741
|
-
onSectionClick == null ? void 0 : onSectionClick(index2);
|
|
52742
|
-
}, [scrollToSection, onSectionClick]);
|
|
52743
|
-
if (typeof content2 === "string") {
|
|
52744
|
-
return /* @__PURE__ */ React2__default.createElement("div", {
|
|
52745
|
-
ref: containerRef,
|
|
52746
|
-
style: {
|
|
52747
|
-
height: "100%",
|
|
52748
|
-
overflow: "auto",
|
|
52749
|
-
backgroundColor
|
|
52750
|
-
}
|
|
52751
|
-
}, /* @__PURE__ */ React2__default.createElement("div", {
|
|
52752
|
-
style: {
|
|
52753
|
-
maxWidth: typeof maxWidth === "number" ? `${maxWidth}px` : maxWidth,
|
|
52754
|
-
margin: "0 auto",
|
|
52755
|
-
height: "100%"
|
|
52756
|
-
}
|
|
52757
|
-
}, /* @__PURE__ */ React2__default.createElement(IndustryMarkdownSlide, {
|
|
52758
|
-
content: content2,
|
|
52759
|
-
slideIdPrefix,
|
|
52760
|
-
slideIndex: 0,
|
|
52761
|
-
isVisible: true,
|
|
52762
|
-
theme: theme2,
|
|
52763
|
-
onCheckboxChange,
|
|
52764
|
-
enableHtmlPopout,
|
|
52765
|
-
enableKeyboardScrolling,
|
|
52766
|
-
onLinkClick,
|
|
52767
|
-
handleRunBashCommand,
|
|
52768
|
-
fontSizeScale,
|
|
52769
|
-
handlePromptCopy,
|
|
52770
|
-
repositoryInfo,
|
|
52771
|
-
transparentBackground
|
|
52772
|
-
})));
|
|
52773
|
-
}
|
|
52774
|
-
if (!showSegmented) {
|
|
52775
|
-
const fullContent = content2.join(`
|
|
52776
|
-
|
|
52777
|
-
---
|
|
52778
|
-
|
|
52779
|
-
`);
|
|
52780
|
-
return /* @__PURE__ */ React2__default.createElement("div", {
|
|
52781
|
-
ref: containerRef,
|
|
52782
|
-
style: {
|
|
52783
|
-
height: "100%",
|
|
52784
|
-
overflow: "auto",
|
|
52785
|
-
backgroundColor
|
|
52786
|
-
}
|
|
52787
|
-
}, /* @__PURE__ */ React2__default.createElement("div", {
|
|
52788
|
-
style: {
|
|
52789
|
-
maxWidth: typeof maxWidth === "number" ? `${maxWidth}px` : maxWidth,
|
|
52790
|
-
margin: "0 auto",
|
|
52791
|
-
height: "100%"
|
|
52792
|
-
}
|
|
52793
|
-
}, /* @__PURE__ */ React2__default.createElement(IndustryMarkdownSlide, {
|
|
52794
|
-
content: fullContent,
|
|
52795
|
-
slideIdPrefix,
|
|
52796
|
-
slideIndex: 0,
|
|
52797
|
-
isVisible: true,
|
|
52798
|
-
theme: theme2,
|
|
52799
|
-
onCheckboxChange,
|
|
52800
|
-
enableHtmlPopout,
|
|
52801
|
-
enableKeyboardScrolling,
|
|
52802
|
-
onLinkClick,
|
|
52803
|
-
handleRunBashCommand,
|
|
52804
|
-
fontSizeScale,
|
|
52805
|
-
handlePromptCopy,
|
|
52806
|
-
repositoryInfo,
|
|
52807
|
-
transparentBackground
|
|
52808
|
-
})));
|
|
52809
|
-
}
|
|
52810
52725
|
return /* @__PURE__ */ React2__default.createElement("div", {
|
|
52811
52726
|
ref: containerRef,
|
|
52812
52727
|
style: {
|
|
@@ -52817,69 +52732,26 @@ var DocumentView = ({
|
|
|
52817
52732
|
}, /* @__PURE__ */ React2__default.createElement("div", {
|
|
52818
52733
|
style: {
|
|
52819
52734
|
maxWidth: typeof maxWidth === "number" ? `${maxWidth}px` : maxWidth,
|
|
52820
|
-
margin: "0 auto"
|
|
52821
|
-
|
|
52822
|
-
}, content2.map((slideContent, index2) => /* @__PURE__ */ React2__default.createElement("div", {
|
|
52823
|
-
key: index2,
|
|
52824
|
-
ref: (el) => {
|
|
52825
|
-
if (el)
|
|
52826
|
-
sectionRefs.current[index2] = el;
|
|
52827
|
-
},
|
|
52828
|
-
style: {
|
|
52829
|
-
marginBottom: index2 < content2.length - 1 ? "48px" : "0",
|
|
52830
|
-
scrollMarginTop: "20px"
|
|
52735
|
+
margin: "0 auto",
|
|
52736
|
+
height: "100%"
|
|
52831
52737
|
}
|
|
52832
|
-
},
|
|
52833
|
-
|
|
52834
|
-
|
|
52835
|
-
|
|
52836
|
-
alignItems: "center",
|
|
52837
|
-
justifyContent: "space-between",
|
|
52838
|
-
marginBottom: "16px",
|
|
52839
|
-
paddingBottom: "8px",
|
|
52840
|
-
borderBottom: `1px solid ${theme2.colors.border}`,
|
|
52841
|
-
opacity: 0.7,
|
|
52842
|
-
cursor: "pointer",
|
|
52843
|
-
transition: "opacity 0.2s ease"
|
|
52844
|
-
},
|
|
52845
|
-
onMouseOver: (e2) => {
|
|
52846
|
-
e2.currentTarget.style.opacity = "1";
|
|
52847
|
-
},
|
|
52848
|
-
onMouseOut: (e2) => {
|
|
52849
|
-
e2.currentTarget.style.opacity = "0.7";
|
|
52850
|
-
}
|
|
52851
|
-
}, /* @__PURE__ */ React2__default.createElement("span", {
|
|
52852
|
-
style: {
|
|
52853
|
-
fontSize: "11px",
|
|
52854
|
-
fontWeight: 600,
|
|
52855
|
-
color: theme2.colors.textSecondary,
|
|
52856
|
-
textTransform: "uppercase",
|
|
52857
|
-
letterSpacing: "0.5px"
|
|
52858
|
-
}
|
|
52859
|
-
}, "Section ", index2 + 1, " of ", content2.length)), /* @__PURE__ */ React2__default.createElement(IndustryMarkdownSlide, {
|
|
52860
|
-
content: slideContent,
|
|
52861
|
-
slideIdPrefix: `${slideIdPrefix}-${index2}`,
|
|
52862
|
-
slideIndex: index2,
|
|
52738
|
+
}, /* @__PURE__ */ React2__default.createElement(IndustryMarkdownSlide, {
|
|
52739
|
+
content: content2,
|
|
52740
|
+
slideIdPrefix,
|
|
52741
|
+
slideIndex: 0,
|
|
52863
52742
|
isVisible: true,
|
|
52864
52743
|
theme: theme2,
|
|
52865
52744
|
onCheckboxChange,
|
|
52866
52745
|
enableHtmlPopout,
|
|
52867
52746
|
enableKeyboardScrolling,
|
|
52747
|
+
autoFocusOnVisible,
|
|
52868
52748
|
onLinkClick,
|
|
52869
52749
|
handleRunBashCommand,
|
|
52870
52750
|
fontSizeScale,
|
|
52871
52751
|
handlePromptCopy,
|
|
52872
52752
|
repositoryInfo,
|
|
52873
52753
|
transparentBackground
|
|
52874
|
-
})
|
|
52875
|
-
style: {
|
|
52876
|
-
marginTop: "32px",
|
|
52877
|
-
marginBottom: "32px",
|
|
52878
|
-
height: "1px",
|
|
52879
|
-
backgroundColor: theme2.colors.border,
|
|
52880
|
-
opacity: 0.3
|
|
52881
|
-
}
|
|
52882
|
-
})))));
|
|
52754
|
+
})));
|
|
52883
52755
|
};
|
|
52884
52756
|
function getTaskBodyMarkdown(task, options = {}) {
|
|
52885
52757
|
const { includeTitle = false } = options;
|