@industry-theme/git-panels 0.1.17 → 0.1.18

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.
@@ -41269,8 +41269,7 @@ var createIndustryMarkdownComponents = ({
41269
41269
  style: {
41270
41270
  flex: 1,
41271
41271
  cursor: "pointer",
41272
- textDecoration: isChecked ? "line-through" : "none",
41273
- opacity: isChecked ? 0.6 : 1,
41272
+ color: isChecked ? theme2.colors.textMuted : "inherit",
41274
41273
  lineHeight: theme2.lineHeights.relaxed
41275
41274
  }
41276
41275
  }, labelContent.length > 0 ? labelContent : null)), nestedListElements.length > 0 ? nestedListElements : null);
@@ -42338,6 +42337,7 @@ var IndustryMarkdownSlide = React2__default.memo(function IndustryMarkdownSlide2
42338
42337
  handleRunBashCommand,
42339
42338
  handlePromptCopy,
42340
42339
  enableHtmlPopout = true,
42340
+ autoFocusOnVisible = true,
42341
42341
  searchQuery,
42342
42342
  slideHeaderMarginTopOverride,
42343
42343
  theme: themeOverride,
@@ -42544,11 +42544,10 @@ var IndustryMarkdownSlide = React2__default.memo(function IndustryMarkdownSlide2
42544
42544
  }
42545
42545
  }, [enableKeyboardScrolling, isVisible, slideIndex, scrollConfig]);
42546
42546
  useEffect(() => {
42547
- if (isVisible && slideRef.current) {
42548
- console.log("🎯 Auto-focusing slide container");
42549
- slideRef.current.focus();
42547
+ if (autoFocusOnVisible && isVisible && slideRef.current) {
42548
+ slideRef.current.focus({ preventScroll: true });
42550
42549
  }
42551
- }, [isVisible]);
42550
+ }, [autoFocusOnVisible, isVisible]);
42552
42551
  const openPlaceholderModal = (placeholders, promptContent) => {
42553
42552
  if (!handlePromptCopy)
42554
42553
  return;
@@ -44513,15 +44512,12 @@ var Vt;
44513
44512
  })();
44514
44513
  var DocumentView = ({
44515
44514
  content: content2,
44516
- showSegmented = false,
44517
44515
  onCheckboxChange,
44518
- onSectionClick,
44519
44516
  maxWidth = "900px",
44520
- showSectionHeaders = true,
44521
- showSeparators = true,
44522
44517
  slideIdPrefix = "document",
44523
44518
  enableHtmlPopout = true,
44524
44519
  enableKeyboardScrolling = true,
44520
+ autoFocusOnVisible = true,
44525
44521
  onLinkClick,
44526
44522
  handleRunBashCommand,
44527
44523
  handlePromptCopy,
@@ -44531,88 +44527,7 @@ var DocumentView = ({
44531
44527
  transparentBackground = false
44532
44528
  }) => {
44533
44529
  const containerRef = useRef(null);
44534
- const sectionRefs = useRef([]);
44535
44530
  const backgroundColor = transparentBackground ? "transparent" : theme2.colors.background;
44536
- const scrollToSection = useCallback((sectionIndex) => {
44537
- var _a;
44538
- if (sectionRefs.current[sectionIndex]) {
44539
- (_a = sectionRefs.current[sectionIndex]) == null ? void 0 : _a.scrollIntoView({
44540
- behavior: "smooth",
44541
- block: "start"
44542
- });
44543
- }
44544
- }, []);
44545
- const handleSectionClick = useCallback((index2) => {
44546
- scrollToSection(index2);
44547
- onSectionClick == null ? void 0 : onSectionClick(index2);
44548
- }, [scrollToSection, onSectionClick]);
44549
- if (typeof content2 === "string") {
44550
- return /* @__PURE__ */ React2__default.createElement("div", {
44551
- ref: containerRef,
44552
- style: {
44553
- height: "100%",
44554
- overflow: "auto",
44555
- backgroundColor
44556
- }
44557
- }, /* @__PURE__ */ React2__default.createElement("div", {
44558
- style: {
44559
- maxWidth: typeof maxWidth === "number" ? `${maxWidth}px` : maxWidth,
44560
- margin: "0 auto",
44561
- height: "100%"
44562
- }
44563
- }, /* @__PURE__ */ React2__default.createElement(IndustryMarkdownSlide, {
44564
- content: content2,
44565
- slideIdPrefix,
44566
- slideIndex: 0,
44567
- isVisible: true,
44568
- theme: theme2,
44569
- onCheckboxChange,
44570
- enableHtmlPopout,
44571
- enableKeyboardScrolling,
44572
- onLinkClick,
44573
- handleRunBashCommand,
44574
- fontSizeScale,
44575
- handlePromptCopy,
44576
- repositoryInfo,
44577
- transparentBackground
44578
- })));
44579
- }
44580
- if (!showSegmented) {
44581
- const fullContent = content2.join(`
44582
-
44583
- ---
44584
-
44585
- `);
44586
- return /* @__PURE__ */ React2__default.createElement("div", {
44587
- ref: containerRef,
44588
- style: {
44589
- height: "100%",
44590
- overflow: "auto",
44591
- backgroundColor
44592
- }
44593
- }, /* @__PURE__ */ React2__default.createElement("div", {
44594
- style: {
44595
- maxWidth: typeof maxWidth === "number" ? `${maxWidth}px` : maxWidth,
44596
- margin: "0 auto",
44597
- height: "100%"
44598
- }
44599
- }, /* @__PURE__ */ React2__default.createElement(IndustryMarkdownSlide, {
44600
- content: fullContent,
44601
- slideIdPrefix,
44602
- slideIndex: 0,
44603
- isVisible: true,
44604
- theme: theme2,
44605
- onCheckboxChange,
44606
- enableHtmlPopout,
44607
- enableKeyboardScrolling,
44608
- onLinkClick,
44609
- handleRunBashCommand,
44610
- fontSizeScale,
44611
- handlePromptCopy,
44612
- repositoryInfo,
44613
- transparentBackground
44614
- })));
44615
- }
44616
44531
  return /* @__PURE__ */ React2__default.createElement("div", {
44617
44532
  ref: containerRef,
44618
44533
  style: {
@@ -44623,69 +44538,26 @@ var DocumentView = ({
44623
44538
  }, /* @__PURE__ */ React2__default.createElement("div", {
44624
44539
  style: {
44625
44540
  maxWidth: typeof maxWidth === "number" ? `${maxWidth}px` : maxWidth,
44626
- margin: "0 auto"
44627
- }
44628
- }, content2.map((slideContent, index2) => /* @__PURE__ */ React2__default.createElement("div", {
44629
- key: index2,
44630
- ref: (el) => {
44631
- if (el)
44632
- sectionRefs.current[index2] = el;
44633
- },
44634
- style: {
44635
- marginBottom: index2 < content2.length - 1 ? "48px" : "0",
44636
- scrollMarginTop: "20px"
44541
+ margin: "0 auto",
44542
+ height: "100%"
44637
44543
  }
44638
- }, showSectionHeaders && /* @__PURE__ */ React2__default.createElement("div", {
44639
- onClick: () => handleSectionClick(index2),
44640
- style: {
44641
- display: "flex",
44642
- alignItems: "center",
44643
- justifyContent: "space-between",
44644
- marginBottom: "16px",
44645
- paddingBottom: "8px",
44646
- borderBottom: `1px solid ${theme2.colors.border}`,
44647
- opacity: 0.7,
44648
- cursor: "pointer",
44649
- transition: "opacity 0.2s ease"
44650
- },
44651
- onMouseOver: (e2) => {
44652
- e2.currentTarget.style.opacity = "1";
44653
- },
44654
- onMouseOut: (e2) => {
44655
- e2.currentTarget.style.opacity = "0.7";
44656
- }
44657
- }, /* @__PURE__ */ React2__default.createElement("span", {
44658
- style: {
44659
- fontSize: "11px",
44660
- fontWeight: 600,
44661
- color: theme2.colors.textSecondary,
44662
- textTransform: "uppercase",
44663
- letterSpacing: "0.5px"
44664
- }
44665
- }, "Section ", index2 + 1, " of ", content2.length)), /* @__PURE__ */ React2__default.createElement(IndustryMarkdownSlide, {
44666
- content: slideContent,
44667
- slideIdPrefix: `${slideIdPrefix}-${index2}`,
44668
- slideIndex: index2,
44544
+ }, /* @__PURE__ */ React2__default.createElement(IndustryMarkdownSlide, {
44545
+ content: content2,
44546
+ slideIdPrefix,
44547
+ slideIndex: 0,
44669
44548
  isVisible: true,
44670
44549
  theme: theme2,
44671
44550
  onCheckboxChange,
44672
44551
  enableHtmlPopout,
44673
44552
  enableKeyboardScrolling,
44553
+ autoFocusOnVisible,
44674
44554
  onLinkClick,
44675
44555
  handleRunBashCommand,
44676
44556
  fontSizeScale,
44677
44557
  handlePromptCopy,
44678
44558
  repositoryInfo,
44679
44559
  transparentBackground
44680
- }), showSeparators && index2 < content2.length - 1 && /* @__PURE__ */ React2__default.createElement("div", {
44681
- style: {
44682
- marginTop: "32px",
44683
- marginBottom: "32px",
44684
- height: "1px",
44685
- backgroundColor: theme2.colors.border,
44686
- opacity: 0.3
44687
- }
44688
- })))));
44560
+ })));
44689
44561
  };
44690
44562
  const GitCommitDetailPanelContent = ({
44691
44563
  events