@industry-theme/file-city-panel 0.5.65 → 0.5.67

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":"TrailMarkdownOverlay.d.ts","sourceRoot":"","sources":["../../../../src/panels/FileCityTrailExplorerPanel/overlays/TrailMarkdownOverlay.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B;;;;;;;;;;;GAWG;AACH,MAAM,WAAW,cAAc;IAC7B,kEAAkE;IAClE,QAAQ,EAAE,MAAM,CAAC;IACjB,mDAAmD;IACnD,KAAK,EAAE,MAAM,CAAC;IACd,2EAA2E;IAC3E,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,qEAAqE;IACrE,MAAM,EAAE,MAAM,IAAI,CAAC;IACnB,+DAA+D;IAC/D,MAAM,EAAE,MAAM,IAAI,CAAC;CACpB;AAED;;;;GAIG;AACH,MAAM,WAAW,cAAc;IAC7B,kDAAkD;IAClD,UAAU,EAAE,MAAM,CAAC;IACnB,mDAAmD;IACnD,WAAW,EAAE,MAAM,CAAC;IACpB,4DAA4D;IAC5D,QAAQ,EAAE,OAAO,CAAC;IAClB,uEAAuE;IACvE,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB;;;;OAIG;IACH,aAAa,CAAC,EAAE,CAAC,UAAU,EAAE,MAAM,GAAG,IAAI,KAAK,IAAI,CAAC;CACrD;AAED,MAAM,WAAW,yBAAyB;IACxC;;;;;OAKG;IACH,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,4CAA4C;IAC5C,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,8EAA8E;IAC9E,QAAQ,EAAE,MAAM,CAAC;IACjB,mEAAmE;IACnE,aAAa,EAAE,MAAM,CAAC;IACtB,4FAA4F;IAC5F,YAAY,EAAE,MAAM,GAAG,MAAM,CAAC;IAC9B;;;;OAIG;IACH,YAAY,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,cAAc,CAAC,CAAC;IACzC;;;OAGG;IACH,uBAAuB,CAAC,EAAE,OAAO,CAAC;IAClC;;;OAGG;IACH,GAAG,CAAC,EAAE,cAAc,CAAC;IACrB;;;OAGG;IACH,KAAK,CAAC,EAAE,cAAc,EAAE,CAAC;CAC1B;AAQD,eAAO,MAAM,oBAAoB,EAAE,KAAK,CAAC,EAAE,CAAC,yBAAyB,CA4OpE,CAAC"}
1
+ {"version":3,"file":"TrailMarkdownOverlay.d.ts","sourceRoot":"","sources":["../../../../src/panels/FileCityTrailExplorerPanel/overlays/TrailMarkdownOverlay.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B;;;;;;;;;;;GAWG;AACH,MAAM,WAAW,cAAc;IAC7B,kEAAkE;IAClE,QAAQ,EAAE,MAAM,CAAC;IACjB,mDAAmD;IACnD,KAAK,EAAE,MAAM,CAAC;IACd,2EAA2E;IAC3E,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,qEAAqE;IACrE,MAAM,EAAE,MAAM,IAAI,CAAC;IACnB,+DAA+D;IAC/D,MAAM,EAAE,MAAM,IAAI,CAAC;CACpB;AAED;;;;GAIG;AACH,MAAM,WAAW,cAAc;IAC7B,kDAAkD;IAClD,UAAU,EAAE,MAAM,CAAC;IACnB,mDAAmD;IACnD,WAAW,EAAE,MAAM,CAAC;IACpB,4DAA4D;IAC5D,QAAQ,EAAE,OAAO,CAAC;IAClB,uEAAuE;IACvE,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB;;;;OAIG;IACH,aAAa,CAAC,EAAE,CAAC,UAAU,EAAE,MAAM,GAAG,IAAI,KAAK,IAAI,CAAC;CACrD;AAED,MAAM,WAAW,yBAAyB;IACxC;;;;;OAKG;IACH,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,4CAA4C;IAC5C,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,8EAA8E;IAC9E,QAAQ,EAAE,MAAM,CAAC;IACjB,mEAAmE;IACnE,aAAa,EAAE,MAAM,CAAC;IACtB,4FAA4F;IAC5F,YAAY,EAAE,MAAM,GAAG,MAAM,CAAC;IAC9B;;;;OAIG;IACH,YAAY,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,cAAc,CAAC,CAAC;IACzC;;;OAGG;IACH,uBAAuB,CAAC,EAAE,OAAO,CAAC;IAClC;;;OAGG;IACH,GAAG,CAAC,EAAE,cAAc,CAAC;IACrB;;;OAGG;IACH,KAAK,CAAC,EAAE,cAAc,EAAE,CAAC;CAC1B;AAQD,eAAO,MAAM,oBAAoB,EAAE,KAAK,CAAC,EAAE,CAAC,yBAAyB,CA+OpE,CAAC"}
@@ -258096,31 +258096,35 @@ const TrailMarkdownOverlay = ({
258096
258096
  ]
258097
258097
  }
258098
258098
  ) : null,
258099
- /* @__PURE__ */ jsx(
258099
+ /* @__PURE__ */ jsxs(
258100
258100
  "div",
258101
258101
  {
258102
258102
  style: {
258103
258103
  flex: 1,
258104
258104
  minHeight: 0,
258105
- maxHeight: files && files.length > 0 ? "30%" : void 0,
258106
- position: "relative"
258105
+ overflowY: "auto",
258106
+ display: "flex",
258107
+ flexDirection: "column"
258107
258108
  },
258108
- children: /* @__PURE__ */ jsx("div", { style: { position: "absolute", inset: 0 }, children: /* @__PURE__ */ jsx(
258109
- IndustryMarkdownSlide,
258110
- {
258111
- content: body,
258112
- slideIdPrefix,
258113
- slideIndex: 0,
258114
- isVisible: true,
258115
- theme: theme2,
258116
- transparentBackground: true,
258117
- enableKeyboardScrolling: false
258118
- }
258119
- ) })
258109
+ children: [
258110
+ /* @__PURE__ */ jsx("div", { style: { flex: "0 0 auto" }, children: /* @__PURE__ */ jsx(
258111
+ IndustryMarkdownSlide,
258112
+ {
258113
+ content: body,
258114
+ slideIdPrefix,
258115
+ slideIndex: 0,
258116
+ isVisible: true,
258117
+ theme: theme2,
258118
+ transparentBackground: true,
258119
+ enableKeyboardScrolling: false,
258120
+ disableScroll: true
258121
+ }
258122
+ ) }),
258123
+ nav ? /* @__PURE__ */ jsx(TrailMarkdownOverlayFooter, { nav }) : null,
258124
+ files && files.length > 0 ? /* @__PURE__ */ jsx(TrailFilesList, { files }) : null
258125
+ ]
258120
258126
  }
258121
258127
  ),
258122
- nav ? /* @__PURE__ */ jsx(TrailMarkdownOverlayFooter, { nav }) : null,
258123
- files && files.length > 0 ? /* @__PURE__ */ jsx(TrailFilesList, { files }) : null,
258124
258128
  /* @__PURE__ */ jsx(
258125
258129
  "div",
258126
258130
  {
@@ -258163,14 +258167,14 @@ const TrailFilesList = ({ files }) => {
258163
258167
  {
258164
258168
  style: {
258165
258169
  borderTop: `1px solid ${theme2.colors.border}`,
258166
- // Markdown body is capped at 50% above; files take the rest
258167
- // of the remaining column. Grows past 50% if the summary is
258168
- // shorter than its cap (the markdown body shrinks below 50%
258169
- // to accommodate, since `max-height` doesn't force it).
258170
- flex: 1,
258170
+ // Lives inside the markdown body's scroll container, below
258171
+ // the slide and Start/nav footer. Sized to its content with
258172
+ // a 20% floor (of the scroll container's visible height) so
258173
+ // it always feels like a substantial section once revealed.
258174
+ flex: "0 0 auto",
258175
+ minHeight: "20%",
258171
258176
  display: "flex",
258172
- flexDirection: "column",
258173
- minHeight: 0
258177
+ flexDirection: "column"
258174
258178
  },
258175
258179
  children: [
258176
258180
  /* @__PURE__ */ jsx(
@@ -258188,7 +258192,7 @@ const TrailFilesList = ({ files }) => {
258188
258192
  children: "Files in this trail"
258189
258193
  }
258190
258194
  ),
258191
- /* @__PURE__ */ jsx("div", { style: { overflowY: "auto", minHeight: 0, padding: "0 6px 8px" }, children: files.map((file) => {
258195
+ /* @__PURE__ */ jsx("div", { style: { padding: "0 6px 8px" }, children: files.map((file) => {
258192
258196
  const fileName = file.sourcePath.split("/").pop() ?? file.sourcePath;
258193
258197
  const dir = file.sourcePath.slice(
258194
258198
  0,
@@ -258766,7 +258770,7 @@ const FileCityTrailSequenceLayout = ({
258766
258770
  }, [hasLineCounts]);
258767
258771
  const effectiveShow3D = false;
258768
258772
  const [viewMode, setViewMode] = React.useState("city");
258769
- const [showSequenceDrawer, setShowSequenceDrawer] = React.useState(false);
258773
+ const [showSequenceDrawer, setShowSequenceDrawer] = React.useState(true);
258770
258774
  const [drawerHeightOverridePct, setDrawerHeightOverridePct] = React.useState(null);
258771
258775
  const [isResizingDrawer, setIsResizingDrawer] = React.useState(false);
258772
258776
  const drawerHeightPct = !showSequenceDrawer ? 0 : drawerHeightOverridePct ?? SEQUENCE_DRAWER_HEIGHT_PCT;
@@ -259086,10 +259090,14 @@ const FileCityTrailSequenceLayout = ({
259086
259090
  setDrawerHeightOverridePct(null);
259087
259091
  setShowSequenceDrawer((v) => !v);
259088
259092
  },
259089
- canExit: selectedMarkerId != null || showSequenceDrawer || snippetExpanded || viewMode !== "city",
259093
+ canExit: (
259094
+ // Drawer-open is the default start state, so it no longer
259095
+ // counts as "non-idle". Exit is offered only when the user
259096
+ // has drilled into something the start view doesn't show.
259097
+ selectedMarkerId != null || snippetExpanded || viewMode !== "city"
259098
+ ),
259090
259099
  onExitTrail: () => {
259091
259100
  onSelectMarker(null);
259092
- setShowSequenceDrawer(false);
259093
259101
  setDrawerHeightOverridePct(null);
259094
259102
  setSnippetExpanded(false);
259095
259103
  setViewMode("city");
@@ -260002,40 +260010,38 @@ const TrailHeader = ({
260002
260010
  }
260003
260011
  ),
260004
260012
  /* @__PURE__ */ jsxs("div", { style: { display: "flex", alignItems: "center", gap: 6 }, children: [
260005
- isDoc ? null : /* @__PURE__ */ jsx(
260006
- "button",
260007
- {
260008
- type: "button",
260009
- onClick: onToggleSequenceDrawer,
260010
- "aria-pressed": showSequenceDrawer,
260011
- title: showSequenceDrawer ? "Hide sequence diagram" : "Show sequence diagram",
260012
- style: toggleButtonStyle(showSequenceDrawer),
260013
- children: "Diagram"
260014
- }
260015
- ),
260016
- /* @__PURE__ */ jsx(
260013
+ canExit ? /* @__PURE__ */ jsx(
260017
260014
  "button",
260018
260015
  {
260019
260016
  type: "button",
260020
260017
  onClick: onExitTrail,
260021
- disabled: !canExit,
260022
- title: canExit ? "Return to the trail summary" : "Already at the trail summary",
260018
+ title: "Return to the trail summary",
260023
260019
  style: {
260024
260020
  flexShrink: 0,
260025
260021
  fontFamily: theme2.fonts.body,
260026
260022
  fontSize: theme2.fontSizes[0],
260027
260023
  fontWeight: theme2.fontWeights.medium,
260028
- color: canExit ? theme2.colors.text : theme2.colors.textTertiary,
260024
+ color: theme2.colors.text,
260029
260025
  background: "transparent",
260030
260026
  border: `1px solid ${theme2.colors.muted}`,
260031
260027
  borderRadius: theme2.radii[3],
260032
260028
  padding: "4px 10px",
260033
- cursor: canExit ? "pointer" : "not-allowed",
260034
- opacity: canExit ? 1 : 0.5,
260029
+ cursor: "pointer",
260035
260030
  lineHeight: 1.2
260036
260031
  },
260037
260032
  children: "Exit"
260038
260033
  }
260034
+ ) : null,
260035
+ isDoc ? null : /* @__PURE__ */ jsx(
260036
+ "button",
260037
+ {
260038
+ type: "button",
260039
+ onClick: onToggleSequenceDrawer,
260040
+ "aria-pressed": showSequenceDrawer,
260041
+ title: showSequenceDrawer ? "Hide sequence diagram" : "Show sequence diagram",
260042
+ style: toggleButtonStyle(showSequenceDrawer),
260043
+ children: "Diagram"
260044
+ }
260039
260045
  ),
260040
260046
  hideToggle || isDoc ? null : /* @__PURE__ */ jsx(
260041
260047
  "button",