@industry-theme/principal-view-panels 0.12.118 → 0.12.119
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":"StoryboardListPanel.d.ts","sourceRoot":"","sources":["../../src/panels/StoryboardListPanel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4D,MAAM,OAAO,CAAC;AAEjF,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,UAAU,CAAC;AAgL9D;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,mBAAmB,EAAE,KAAK,CAAC,EAAE,CAAC,6BAA6B,
|
|
1
|
+
{"version":3,"file":"StoryboardListPanel.d.ts","sourceRoot":"","sources":["../../src/panels/StoryboardListPanel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4D,MAAM,OAAO,CAAC;AAEjF,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,UAAU,CAAC;AAgL9D;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,mBAAmB,EAAE,KAAK,CAAC,EAAE,CAAC,6BAA6B,CAktDvE,CAAC"}
|
package/dist/panels.bundle.js
CHANGED
|
@@ -197687,6 +197687,27 @@ const StoryboardListPanel = ({
|
|
|
197687
197687
|
(f2) => f2.path === canvasPath || f2.relativePath === canvasPath
|
|
197688
197688
|
);
|
|
197689
197689
|
}, [allFiles]);
|
|
197690
|
+
const additionalMarkdownFiles = useMemo(() => {
|
|
197691
|
+
if (!allFiles || !storyboards || storyboards.length === 0) {
|
|
197692
|
+
return {};
|
|
197693
|
+
}
|
|
197694
|
+
const result = {};
|
|
197695
|
+
for (const storyboard of storyboards) {
|
|
197696
|
+
const canvasPath = storyboard.canvas.path;
|
|
197697
|
+
const storyboardDir = canvasPath.substring(0, canvasPath.lastIndexOf("/"));
|
|
197698
|
+
const mdFilesInDir = allFiles.filter((file) => {
|
|
197699
|
+
const fileDir = file.path.substring(0, file.path.lastIndexOf("/"));
|
|
197700
|
+
return fileDir === storyboardDir && file.path.endsWith(".md");
|
|
197701
|
+
}).map((file) => file.path);
|
|
197702
|
+
const additionalMdFiles = mdFilesInDir.filter(
|
|
197703
|
+
(path2) => path2 !== storyboard.canvas.markdownPath
|
|
197704
|
+
);
|
|
197705
|
+
if (additionalMdFiles.length > 0) {
|
|
197706
|
+
result[storyboard.id] = additionalMdFiles;
|
|
197707
|
+
}
|
|
197708
|
+
}
|
|
197709
|
+
return result;
|
|
197710
|
+
}, [allFiles, storyboards]);
|
|
197690
197711
|
const getWorkflowFromPath = (path2) => {
|
|
197691
197712
|
const match = path2.match(/\.principal-views\/[^/]+\/([^/]+)\//);
|
|
197692
197713
|
return match ? match[1] : null;
|
|
@@ -198715,6 +198736,7 @@ const StoryboardListPanel = ({
|
|
|
198715
198736
|
workflowCoverageMap,
|
|
198716
198737
|
canvasNodeStatusMap,
|
|
198717
198738
|
gitStatusData,
|
|
198739
|
+
additionalMarkdownFiles,
|
|
198718
198740
|
enablePanelDrag: true,
|
|
198719
198741
|
preserveOrder: true
|
|
198720
198742
|
}
|