@industry-theme/file-city-panel 0.5.62 → 0.5.63
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/FileCityTrailExplorerPanel/FileCityTrailExplorerPanel.d.ts.map +1 -1
- package/dist/panels/FileCityTrailExplorerPanel/overlays/TrailMarkdownOverlay.d.ts +39 -3
- package/dist/panels/FileCityTrailExplorerPanel/overlays/TrailMarkdownOverlay.d.ts.map +1 -1
- package/dist/panels.bundle.js +544 -140
- package/dist/panels.bundle.js.map +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FileCityTrailExplorerPanel.d.ts","sourceRoot":"","sources":["../../../src/panels/FileCityTrailExplorerPanel/FileCityTrailExplorerPanel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAa1B,OAAO,8BAA8B,CAAC;AAatC,OAAO,KAAK,EAEV,oCAAoC,EAErC,MAAM,wCAAwC,CAAC;
|
|
1
|
+
{"version":3,"file":"FileCityTrailExplorerPanel.d.ts","sourceRoot":"","sources":["../../../src/panels/FileCityTrailExplorerPanel/FileCityTrailExplorerPanel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAa1B,OAAO,8BAA8B,CAAC;AAatC,OAAO,KAAK,EAEV,oCAAoC,EAErC,MAAM,wCAAwC,CAAC;AA4BhD;;;;;;;;;;;;;;;;;GAiBG;AACH,eAAO,MAAM,0BAA0B,EAAE,KAAK,CAAC,EAAE,CAC/C,oCAAoC,CA+ErC,CAAC"}
|
|
@@ -23,11 +23,37 @@ export interface TrailMarkerNav {
|
|
|
23
23
|
/** Steps to the next marker. No-op at the end of the trail. */
|
|
24
24
|
onNext: () => void;
|
|
25
25
|
}
|
|
26
|
+
/**
|
|
27
|
+
* One entry in the "Files in this trail" list shown below the
|
|
28
|
+
* markdown body. Each entry corresponds to a unique `sourcePath`
|
|
29
|
+
* across the trail's markers (in this panel's repo).
|
|
30
|
+
*/
|
|
31
|
+
export interface TrailFileEntry {
|
|
32
|
+
/** Repo-relative path (the marker.sourcePath). */
|
|
33
|
+
sourcePath: string;
|
|
34
|
+
/** Number of markers that resolve to this file. */
|
|
35
|
+
markerCount: number;
|
|
36
|
+
/** True when the active marker is anchored to this file. */
|
|
37
|
+
isActive: boolean;
|
|
38
|
+
/** Click handler — typically selects the first marker for the file. */
|
|
39
|
+
onClick: () => void;
|
|
40
|
+
/**
|
|
41
|
+
* Fires on row hover. Pass the row's `sourcePath` on enter, `null`
|
|
42
|
+
* on leave. Hosts use this to paint a transient highlight layer on
|
|
43
|
+
* the matching building in the city below.
|
|
44
|
+
*/
|
|
45
|
+
onHoverChange?: (sourcePath: string | null) => void;
|
|
46
|
+
}
|
|
26
47
|
export interface TrailMarkdownOverlayProps {
|
|
27
|
-
/**
|
|
28
|
-
|
|
48
|
+
/**
|
|
49
|
+
* Small caps label shown above the title (e.g. "Overview", "Marker").
|
|
50
|
+
* Pass `null`/omit alongside `title` to suppress the header row
|
|
51
|
+
* entirely — useful for the idle trail-summary state where the
|
|
52
|
+
* surrounding panel chrome already names the trail.
|
|
53
|
+
*/
|
|
54
|
+
eyebrow?: string | null;
|
|
29
55
|
/** Bold heading shown under the eyebrow. */
|
|
30
|
-
title
|
|
56
|
+
title?: string | null;
|
|
31
57
|
/** Markdown body. The overlay short-circuits to `null` when this is empty. */
|
|
32
58
|
markdown: string;
|
|
33
59
|
/** Stable prefix used by `IndustryMarkdownSlide` for slide ids. */
|
|
@@ -40,11 +66,21 @@ export interface TrailMarkdownOverlayProps {
|
|
|
40
66
|
* (e.g. the camera-framing effect) use this to observe width changes.
|
|
41
67
|
*/
|
|
42
68
|
containerRef?: React.Ref<HTMLDivElement>;
|
|
69
|
+
/**
|
|
70
|
+
* When true, omits the `bottom` CSS transition so a live drawer
|
|
71
|
+
* resize tracks the cursor instead of lagging behind it.
|
|
72
|
+
*/
|
|
73
|
+
disableBottomTransition?: boolean;
|
|
43
74
|
/**
|
|
44
75
|
* Optional marker navigation footer. When omitted (e.g. trail has no
|
|
45
76
|
* markers in this repo), the footer is not rendered.
|
|
46
77
|
*/
|
|
47
78
|
nav?: TrailMarkerNav;
|
|
79
|
+
/**
|
|
80
|
+
* Optional "Files in this trail" list rendered below the markdown
|
|
81
|
+
* body. Empty / undefined hides the section entirely.
|
|
82
|
+
*/
|
|
83
|
+
files?: TrailFileEntry[];
|
|
48
84
|
}
|
|
49
85
|
export declare const TrailMarkdownOverlay: React.FC<TrailMarkdownOverlayProps>;
|
|
50
86
|
//# sourceMappingURL=TrailMarkdownOverlay.d.ts.map
|
|
@@ -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,MAAM,WAAW,yBAAyB;IACxC
|
|
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,C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