@principal-ade/dynamic-file-tree 0.2.20 → 0.2.22

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/index.mjs CHANGED
@@ -2192,6 +2192,14 @@ var buildTreeDataFromStoryboards = (storyboards, workflowCoverageMap, traceWorkf
2192
2192
  return aOrder - bOrder;
2193
2193
  return (a._originalIndex ?? 0) - (b._originalIndex ?? 0);
2194
2194
  }).map(({ _originalIndex, ...node }) => node);
2195
+ if (filterMode === "with-traces") {
2196
+ scenarioChildren = scenarioChildren.filter((node) => node.hasTraces);
2197
+ } else if (filterMode === "without-traces") {
2198
+ scenarioChildren = scenarioChildren.filter((node) => !node.hasTraces);
2199
+ }
2200
+ if (scenarioChildren.length === 0) {
2201
+ scenarioChildren = undefined;
2202
+ }
2195
2203
  }
2196
2204
  return {
2197
2205
  id: workflowNodeId,
@@ -1 +1 @@
1
- {"version":3,"file":"StoryboardWorkflowsTreeCore.d.ts","sourceRoot":"","sources":["../../../../src/components/StoryboardWorkflowsTree/StoryboardWorkflowsTreeCore.tsx"],"names":[],"mappings":"AACA,OAAO,KAA0B,MAAM,OAAO,CAAC;AAS/C,OAAO,KAAK,EAEV,4BAA4B,EAQ7B,MAAM,SAAS,CAAC;AAm7BjB,eAAO,MAAM,2BAA2B,0DAA+C,CAAC"}
1
+ {"version":3,"file":"StoryboardWorkflowsTreeCore.d.ts","sourceRoot":"","sources":["../../../../src/components/StoryboardWorkflowsTree/StoryboardWorkflowsTreeCore.tsx"],"names":[],"mappings":"AACA,OAAO,KAA0B,MAAM,OAAO,CAAC;AAS/C,OAAO,KAAK,EAEV,4BAA4B,EAQ7B,MAAM,SAAS,CAAC;AA+7BjB,eAAO,MAAM,2BAA2B,0DAA+C,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@principal-ade/dynamic-file-tree",
3
- "version": "0.2.20",
3
+ "version": "0.2.22",
4
4
  "description": "React component for selective directory filtering and file tree visualization",
5
5
  "type": "module",
6
6
  "main": "dist/index.mjs",