@principal-ade/dynamic-file-tree 0.2.40 → 0.2.42
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 +72 -20
- package/dist/src/components/CanvasListTree/CanvasListTree.stories.d.ts +23 -4
- package/dist/src/components/CanvasListTree/CanvasListTree.stories.d.ts.map +1 -1
- package/dist/src/components/CanvasListTree/CanvasListTreeCore.d.ts.map +1 -1
- package/dist/src/components/CanvasListTree/types.d.ts +1 -1
- package/dist/src/components/CanvasListTree/types.d.ts.map +1 -1
- package/dist/src/components/StoryboardWorkflowsTree/StoryboardWorkflowsTreeCore.d.ts.map +1 -1
- package/dist/src/components/StoryboardWorkflowsTree/types.d.ts +6 -0
- package/dist/src/components/StoryboardWorkflowsTree/types.d.ts.map +1 -1
- package/package.json +3 -3
package/dist/index.mjs
CHANGED
|
@@ -2213,7 +2213,7 @@ var blendColors = (colors) => {
|
|
|
2213
2213
|
}
|
|
2214
2214
|
return toHex(Math.round(r), Math.round(g), Math.round(b));
|
|
2215
2215
|
};
|
|
2216
|
-
var buildTreeDataFromStoryboards = (storyboards, workflowCoverageMap, traceWorkflowsSet, filterMode, versionPrefix, gitStatusMap, scenarioStatusMap, canvasNodeStatusMap, scenarioTraceCounts, showScenarios) => {
|
|
2216
|
+
var buildTreeDataFromStoryboards = (storyboards, workflowCoverageMap, traceWorkflowsSet, filterMode, versionPrefix, gitStatusMap, scenarioStatusMap, canvasNodeStatusMap, scenarioTraceCounts, showScenarios, preserveOrder) => {
|
|
2217
2217
|
const packagesMap = new Map;
|
|
2218
2218
|
const rootStoryboards = [];
|
|
2219
2219
|
for (const storyboard of storyboards) {
|
|
@@ -2385,7 +2385,10 @@ var buildTreeDataFromStoryboards = (storyboards, workflowCoverageMap, traceWorkf
|
|
|
2385
2385
|
if (shouldShowPackageLevel) {
|
|
2386
2386
|
const result = [];
|
|
2387
2387
|
for (const [packageName, packageStoryboards] of packagesMap) {
|
|
2388
|
-
|
|
2388
|
+
let storyboardNodes = packageStoryboards.map(buildStoryboardNode).filter((node) => node !== null);
|
|
2389
|
+
if (!preserveOrder) {
|
|
2390
|
+
storyboardNodes = storyboardNodes.sort((a, b) => a.name.localeCompare(b.name));
|
|
2391
|
+
}
|
|
2389
2392
|
if (storyboardNodes.length > 0) {
|
|
2390
2393
|
const packageId = versionPrefix ? `package:${versionPrefix}:${packageName}` : `package:${packageName}`;
|
|
2391
2394
|
result.push({
|
|
@@ -2399,7 +2402,10 @@ var buildTreeDataFromStoryboards = (storyboards, workflowCoverageMap, traceWorkf
|
|
|
2399
2402
|
}
|
|
2400
2403
|
}
|
|
2401
2404
|
if (rootStoryboards.length > 0) {
|
|
2402
|
-
|
|
2405
|
+
let rootStoryboardNodes = rootStoryboards.map(buildStoryboardNode).filter((node) => node !== null);
|
|
2406
|
+
if (!preserveOrder) {
|
|
2407
|
+
rootStoryboardNodes = rootStoryboardNodes.sort((a, b) => a.name.localeCompare(b.name));
|
|
2408
|
+
}
|
|
2403
2409
|
if (rootStoryboardNodes.length > 0) {
|
|
2404
2410
|
const rootPackageId = versionPrefix ? `package:${versionPrefix}:root` : "package:root";
|
|
2405
2411
|
result.push({
|
|
@@ -2424,10 +2430,14 @@ var buildTreeDataFromStoryboards = (storyboards, workflowCoverageMap, traceWorkf
|
|
|
2424
2430
|
for (const packageStoryboards of packagesMap.values()) {
|
|
2425
2431
|
allStoryboards.push(...packageStoryboards);
|
|
2426
2432
|
}
|
|
2427
|
-
|
|
2433
|
+
let nodes = allStoryboards.map(buildStoryboardNode).filter((node) => node !== null);
|
|
2434
|
+
if (!preserveOrder) {
|
|
2435
|
+
nodes = nodes.sort((a, b) => a.name.localeCompare(b.name));
|
|
2436
|
+
}
|
|
2437
|
+
return nodes;
|
|
2428
2438
|
}
|
|
2429
2439
|
};
|
|
2430
|
-
var buildTreeDataFromVersions = (versionSnapshots, workflowCoverageMap, filterMode, traceWorkflowsSet, gitStatusMap, scenarioStatusMap, canvasNodeStatusMap, scenarioTraceCounts, showScenarios) => {
|
|
2440
|
+
var buildTreeDataFromVersions = (versionSnapshots, workflowCoverageMap, filterMode, traceWorkflowsSet, gitStatusMap, scenarioStatusMap, canvasNodeStatusMap, scenarioTraceCounts, showScenarios, preserveOrder) => {
|
|
2431
2441
|
const result = [];
|
|
2432
2442
|
const repoCountMap = new Map;
|
|
2433
2443
|
for (const snapshot of versionSnapshots) {
|
|
@@ -2444,7 +2454,7 @@ var buildTreeDataFromVersions = (versionSnapshots, workflowCoverageMap, filterMo
|
|
|
2444
2454
|
if (filterMode === "without-traces" && !versionHasUntracedWorkflows) {
|
|
2445
2455
|
continue;
|
|
2446
2456
|
}
|
|
2447
|
-
const storyboardChildren = buildTreeDataFromStoryboards(snapshot.storyboards, workflowCoverageMap, traceWorkflowsSet, filterMode, versionKey, gitStatusMap, scenarioStatusMap, canvasNodeStatusMap, scenarioTraceCounts, showScenarios);
|
|
2457
|
+
const storyboardChildren = buildTreeDataFromStoryboards(snapshot.storyboards, workflowCoverageMap, traceWorkflowsSet, filterMode, versionKey, gitStatusMap, scenarioStatusMap, canvasNodeStatusMap, scenarioTraceCounts, showScenarios, preserveOrder);
|
|
2448
2458
|
if (storyboardChildren.length === 0) {
|
|
2449
2459
|
continue;
|
|
2450
2460
|
}
|
|
@@ -2604,7 +2614,8 @@ var StoryboardWorkflowsTreeCoreInner = ({
|
|
|
2604
2614
|
scenarioTraceCounts,
|
|
2605
2615
|
scenarioVisibilityMap,
|
|
2606
2616
|
onScenarioVisibilityToggle,
|
|
2607
|
-
showScenarios = false
|
|
2617
|
+
showScenarios = false,
|
|
2618
|
+
preserveOrder = false
|
|
2608
2619
|
}) => {
|
|
2609
2620
|
const dndProps = getDndProps(enableDragAndDrop);
|
|
2610
2621
|
const parentDndManager = useParentDndManager();
|
|
@@ -2619,9 +2630,9 @@ var StoryboardWorkflowsTreeCoreInner = ({
|
|
|
2619
2630
|
}, [verticalNodePadding]);
|
|
2620
2631
|
const treeData = useMemo9(() => {
|
|
2621
2632
|
if (versionSnapshots && versionSnapshots.length > 0) {
|
|
2622
|
-
return buildTreeDataFromVersions(versionSnapshots, workflowCoverageMap, workflowFilterMode, traceWorkflowsSet, gitStatusMap, scenarioStatusMap, canvasNodeStatusMap, scenarioTraceCounts, showScenarios);
|
|
2633
|
+
return buildTreeDataFromVersions(versionSnapshots, workflowCoverageMap, workflowFilterMode, traceWorkflowsSet, gitStatusMap, scenarioStatusMap, canvasNodeStatusMap, scenarioTraceCounts, showScenarios, preserveOrder);
|
|
2623
2634
|
} else {
|
|
2624
|
-
return buildTreeDataFromStoryboards(storyboards, workflowCoverageMap, traceWorkflowsSet, workflowFilterMode, undefined, gitStatusMap, scenarioStatusMap, canvasNodeStatusMap, scenarioTraceCounts, showScenarios);
|
|
2635
|
+
return buildTreeDataFromStoryboards(storyboards, workflowCoverageMap, traceWorkflowsSet, workflowFilterMode, undefined, gitStatusMap, scenarioStatusMap, canvasNodeStatusMap, scenarioTraceCounts, showScenarios, preserveOrder);
|
|
2625
2636
|
}
|
|
2626
2637
|
}, [storyboards, versionSnapshots, workflowCoverageMap, traceWorkflowsSet, workflowFilterMode, gitStatusMap, scenarioStatusMap, canvasNodeStatusMap, scenarioTraceCounts, showScenarios]);
|
|
2627
2638
|
const NodeRenderer = (props) => {
|
|
@@ -3145,18 +3156,31 @@ import { Package as Package3, Folder, LayoutDashboard as LayoutDashboard2, FileT
|
|
|
3145
3156
|
import React15, { useMemo as useMemo11, useRef as useRef6 } from "react";
|
|
3146
3157
|
import { Tree as Tree5 } from "react-arborist";
|
|
3147
3158
|
var buildTreeData = (canvases, dashboards, gitStatusMap) => {
|
|
3148
|
-
const
|
|
3159
|
+
const resourcesCanvases = [];
|
|
3160
|
+
const scopesEventsCanvases = [];
|
|
3149
3161
|
const spansCanvases = [];
|
|
3150
3162
|
const regularCanvases = [];
|
|
3151
3163
|
for (const canvas of canvases) {
|
|
3152
|
-
if (canvas.type === "resources"
|
|
3153
|
-
|
|
3164
|
+
if (canvas.type === "resources") {
|
|
3165
|
+
resourcesCanvases.push(canvas);
|
|
3166
|
+
} else if (canvas.type === "scopes" || canvas.type === "events") {
|
|
3167
|
+
scopesEventsCanvases.push(canvas);
|
|
3154
3168
|
} else if (canvas.type === "spans") {
|
|
3155
3169
|
spansCanvases.push(canvas);
|
|
3156
3170
|
} else {
|
|
3157
3171
|
regularCanvases.push(canvas);
|
|
3158
3172
|
}
|
|
3159
3173
|
}
|
|
3174
|
+
const buildFlatCanvasNode = (canvas) => {
|
|
3175
|
+
const canvasGitStatus = gitStatusMap ? lookupGitStatus(canvas.path, gitStatusMap) : null;
|
|
3176
|
+
return {
|
|
3177
|
+
id: `canvas:${canvas.id}`,
|
|
3178
|
+
name: canvas.name,
|
|
3179
|
+
type: "canvas",
|
|
3180
|
+
canvas,
|
|
3181
|
+
gitStatus: canvasGitStatus
|
|
3182
|
+
};
|
|
3183
|
+
};
|
|
3160
3184
|
const buildCanvasNode = (canvas) => {
|
|
3161
3185
|
const children = [];
|
|
3162
3186
|
const canvasGitStatus = gitStatusMap ? lookupGitStatus(canvas.path, gitStatusMap) : null;
|
|
@@ -3241,18 +3265,40 @@ var buildTreeData = (canvases, dashboards, gitStatusMap) => {
|
|
|
3241
3265
|
}
|
|
3242
3266
|
};
|
|
3243
3267
|
const result = [];
|
|
3244
|
-
if (
|
|
3245
|
-
const
|
|
3268
|
+
if (resourcesCanvases.length > 0) {
|
|
3269
|
+
const resourcesNodes = resourcesCanvases.map(buildFlatCanvasNode).sort((a, b) => a.name.localeCompare(b.name));
|
|
3246
3270
|
result.push({
|
|
3247
|
-
id: "architecture-group:resources
|
|
3248
|
-
name: "Resources
|
|
3271
|
+
id: "architecture-group:resources",
|
|
3272
|
+
name: "Resources",
|
|
3249
3273
|
type: "architecture-group",
|
|
3250
|
-
architectureGroupType: "resources
|
|
3251
|
-
children:
|
|
3274
|
+
architectureGroupType: "resources",
|
|
3275
|
+
children: resourcesNodes
|
|
3276
|
+
});
|
|
3277
|
+
}
|
|
3278
|
+
if (scopesEventsCanvases.length > 0) {
|
|
3279
|
+
const scopesEventsNodes = scopesEventsCanvases.map((canvas) => {
|
|
3280
|
+
return canvas.type === "scopes" ? buildFlatCanvasNode(canvas) : buildCanvasNode(canvas);
|
|
3281
|
+
}).sort((a, b) => {
|
|
3282
|
+
const typeOrder = { scopes: 0, events: 1 };
|
|
3283
|
+
const aType = a.canvas?.type || "events";
|
|
3284
|
+
const bType = b.canvas?.type || "events";
|
|
3285
|
+
const aOrder = typeOrder[aType] ?? 99;
|
|
3286
|
+
const bOrder = typeOrder[bType] ?? 99;
|
|
3287
|
+
if (aOrder !== bOrder) {
|
|
3288
|
+
return aOrder - bOrder;
|
|
3289
|
+
}
|
|
3290
|
+
return a.name.localeCompare(b.name);
|
|
3291
|
+
});
|
|
3292
|
+
result.push({
|
|
3293
|
+
id: "architecture-group:scopes-events",
|
|
3294
|
+
name: "Scope Events",
|
|
3295
|
+
type: "architecture-group",
|
|
3296
|
+
architectureGroupType: "scopes-events",
|
|
3297
|
+
children: scopesEventsNodes
|
|
3252
3298
|
});
|
|
3253
3299
|
}
|
|
3254
3300
|
if (spansCanvases.length > 0) {
|
|
3255
|
-
const spansNodes = spansCanvases.map(
|
|
3301
|
+
const spansNodes = spansCanvases.map(buildFlatCanvasNode).sort((a, b) => a.name.localeCompare(b.name));
|
|
3256
3302
|
result.push({
|
|
3257
3303
|
id: "architecture-group:spans",
|
|
3258
3304
|
name: "Spans",
|
|
@@ -3433,10 +3479,16 @@ var CanvasListTreeCore = ({
|
|
|
3433
3479
|
const { node } = props;
|
|
3434
3480
|
const data = node.data;
|
|
3435
3481
|
const isDashboard = !!data.dashboard;
|
|
3436
|
-
const icon = data.type === "architecture-group" ? data.architectureGroupType === "resources
|
|
3482
|
+
const icon = data.type === "architecture-group" ? data.architectureGroupType === "resources" ? /* @__PURE__ */ React15.createElement(Layers, {
|
|
3483
|
+
size: 16
|
|
3484
|
+
}) : data.architectureGroupType === "scopes-events" ? /* @__PURE__ */ React15.createElement(Layers, {
|
|
3485
|
+
size: 16
|
|
3486
|
+
}) : data.architectureGroupType === "resources-scopes" ? /* @__PURE__ */ React15.createElement(Layers, {
|
|
3437
3487
|
size: 16
|
|
3438
3488
|
}) : data.architectureGroupType === "spans" ? /* @__PURE__ */ React15.createElement(Network, {
|
|
3439
3489
|
size: 16
|
|
3490
|
+
}) : data.architectureGroupType === "events" ? /* @__PURE__ */ React15.createElement(Gauge, {
|
|
3491
|
+
size: 16
|
|
3440
3492
|
}) : data.architectureGroupType === "dashboards" ? /* @__PURE__ */ React15.createElement(BarChart3, {
|
|
3441
3493
|
size: 16
|
|
3442
3494
|
}) : /* @__PURE__ */ React15.createElement(Folder, {
|
|
@@ -11,12 +11,31 @@ export declare const TerminalTheme: Story;
|
|
|
11
11
|
export declare const MatrixTheme: Story;
|
|
12
12
|
/**
|
|
13
13
|
* Demonstrates all architecture groups including:
|
|
14
|
-
* - Resources
|
|
15
|
-
* -
|
|
16
|
-
* -
|
|
17
|
-
* -
|
|
14
|
+
* - Resources (Layers icon) - flat canvases, no folder wrapper
|
|
15
|
+
* - Scope Events (Layers icon) - scopes are flat, events have folder structure
|
|
16
|
+
* - Spans (Network icon) - flat canvases, no folder wrapper
|
|
17
|
+
* - Dashboards (BarChart3 icon) - flat items, no folder wrapper
|
|
18
|
+
* - Misc (Folder icon) - regular canvases with folder structure
|
|
18
19
|
*/
|
|
19
20
|
export declare const ArchitectureGroups: Story;
|
|
21
|
+
/**
|
|
22
|
+
* Demonstrates architecture groups with separate Resources and Scope Events
|
|
23
|
+
*
|
|
24
|
+
* **Resources group** - Documents OTEL resources (service instances):
|
|
25
|
+
* - .resources.canvas files (flat, no folder wrapper)
|
|
26
|
+
*
|
|
27
|
+
* **Scope Events group** - Documents scopes and their event vocabularies:
|
|
28
|
+
* - .scopes.canvas files (flat, no folder wrapper)
|
|
29
|
+
* - .events.canvas files (nested in folders with Canvas/Overview children)
|
|
30
|
+
*
|
|
31
|
+
* **Spans group** - Documents span conventions:
|
|
32
|
+
* - .spans.canvas files (flat, no folder wrapper)
|
|
33
|
+
*
|
|
34
|
+
* Within Scope Events, canvases are ordered:
|
|
35
|
+
* 1. Scopes (.scopes.canvas) - flat
|
|
36
|
+
* 2. Events (.events.canvas) - with folder structure, sorted alphabetically
|
|
37
|
+
*/
|
|
38
|
+
export declare const ScopeEventsWithEventsCanvases: Story;
|
|
20
39
|
/**
|
|
21
40
|
* Dashboards only - shows just the Dashboards architecture group
|
|
22
41
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CanvasListTree.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/CanvasListTree/CanvasListTree.stories.tsx"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAGvD,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"CanvasListTree.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/CanvasListTree/CanvasListTree.stories.tsx"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAGvD,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAsN1D,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,kBAAkB,CAmCzC,CAAC;AAEF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAyBjD,eAAO,MAAM,YAAY,EAAE,KAU1B,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,KAU3B,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE,KAUtB,CAAC;AAEF,eAAO,MAAM,KAAK,EAAE,KAUnB,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,KAU3B,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,KAUzB,CAAC;AAEF;;;;;;;GAOG;AACH,eAAO,MAAM,kBAAkB,EAAE,KAWhC,CAAC;AAEF;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,6BAA6B,EAAE,KAuB3C,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,cAAc,EAAE,KAW5B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CanvasListTreeCore.d.ts","sourceRoot":"","sources":["../../../../src/components/CanvasListTree/CanvasListTreeCore.tsx"],"names":[],"mappings":"AACA,OAAO,KAA0B,MAAM,OAAO,CAAC;AAS/C,OAAO,KAAK,EAEV,mBAAmB,EAGpB,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"CanvasListTreeCore.d.ts","sourceRoot":"","sources":["../../../../src/components/CanvasListTree/CanvasListTreeCore.tsx"],"names":[],"mappings":"AACA,OAAO,KAA0B,MAAM,OAAO,CAAC;AAS/C,OAAO,KAAK,EAEV,mBAAmB,EAGpB,MAAM,SAAS,CAAC;AAyXjB,eAAO,MAAM,kBAAkB,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CA0O5D,CAAC"}
|
|
@@ -13,7 +13,7 @@ export interface CanvasListNodeData extends TreeNodeData {
|
|
|
13
13
|
scope?: 'package' | 'root';
|
|
14
14
|
markdownPath?: string;
|
|
15
15
|
/** Architecture group type for grouping special canvas types */
|
|
16
|
-
architectureGroupType?: 'resources-scopes' | 'spans' | 'dashboards' | 'misc';
|
|
16
|
+
architectureGroupType?: 'resources' | 'scopes-events' | 'resources-scopes' | 'spans' | 'events' | 'dashboards' | 'misc';
|
|
17
17
|
gitStatus?: GitStatus;
|
|
18
18
|
}
|
|
19
19
|
export interface CanvasListTreeProps {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/components/CanvasListTree/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE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AAE,MAAM,EAAE,OAAO,KAAK,IAAI,CAAC;IACrD,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAG5B,aAAa,CAAC,EAAE,aAAa,EAAE,CAAC;IAGhC;;;OAGG;IACH,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B;;;;OAIG;IACH,aAAa,CAAC,EAAE,CAAC,IAAI,EAAE,kBAAkB,KAAK,UAAU,GAAG,SAAS,CAAC;CACtE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StoryboardWorkflowsTreeCore.d.ts","sourceRoot":"","sources":["../../../../src/components/StoryboardWorkflowsTree/StoryboardWorkflowsTreeCore.tsx"],"names":[],"mappings":"AACA,OAAO,KAA0B,MAAM,OAAO,CAAC;AAU/C,OAAO,KAAK,EAEV,4BAA4B,EAQ7B,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"StoryboardWorkflowsTreeCore.d.ts","sourceRoot":"","sources":["../../../../src/components/StoryboardWorkflowsTree/StoryboardWorkflowsTreeCore.tsx"],"names":[],"mappings":"AACA,OAAO,KAA0B,MAAM,OAAO,CAAC;AAU/C,OAAO,KAAK,EAEV,4BAA4B,EAQ7B,MAAM,SAAS,CAAC;AAqgCjB,eAAO,MAAM,2BAA2B,0DAA+C,CAAC"}
|
|
@@ -115,6 +115,12 @@ export interface StoryboardWorkflowsTreeProps {
|
|
|
115
115
|
* When enabled, nodes will transfer their path/data using the panel-framework-core format.
|
|
116
116
|
*/
|
|
117
117
|
enablePanelDrag?: boolean;
|
|
118
|
+
/**
|
|
119
|
+
* Preserve the order of storyboards as passed in, without internal alphabetical sorting.
|
|
120
|
+
* When true, the tree will respect the order of the storyboards array.
|
|
121
|
+
* Default: false (alphabetical sorting enabled)
|
|
122
|
+
*/
|
|
123
|
+
preserveOrder?: boolean;
|
|
118
124
|
/**
|
|
119
125
|
* Optional callback to customize the drag config for each node.
|
|
120
126
|
* If not provided, default configs are generated based on node type.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/components/StoryboardWorkflowsTree/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,+BAA+B,CAAC;AAC3D,OAAO,KAAK,EAAE,oBAAoB,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,6BAA6B,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,mBAAmB,EAAE,eAAe,EAAE,MAAM,mCAAmC,CAAC;AAE7N,OAAO,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AACtE,OAAO,KAAK,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAG5D,YAAY,EAAE,oBAAoB,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,6BAA6B,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,mBAAmB,EAAE,eAAe,EAAE,CAAC;AAEpL,MAAM,MAAM,0BAA0B,GAAG,SAAS,GAAG,SAAS,GAAG,YAAY,GAAG,UAAU,GAAG,QAAQ,GAAG,WAAW,GAAG,UAAU,GAAG,UAAU,CAAC;AAE9I;;;;;GAKG;AACH,MAAM,MAAM,oBAAoB,GAAG,KAAK,GAAG,aAAa,GAAG,gBAAgB,CAAC;AAE5E;;;GAGG;AACH,MAAM,WAAW,sBAAsB;IACrC,0CAA0C;IAC1C,SAAS,EAAE,KAAK,CAAC;QACf,EAAE,EAAE,MAAM,CAAC;QACX,QAAQ,EAAE,OAAO,CAAC;QAClB,sDAAsD;QACtD,oBAAoB,CAAC,EAAE,OAAO,GAAG,SAAS,GAAG,aAAa,CAAC;KAC5D,CAAC,CAAC;CACJ;AAED;;GAEG;AACH,MAAM,MAAM,gBAAgB,GAAG,gBAAgB,GAAG,QAAQ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AC5F,gBAAgB,CAAC,EAAE,gBAAgB,CAAC;IAGpC,0EAA0E;IAC1E,mBAAmB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAG7C,uIAAuI;IACvI,qBAAqB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAChD,mDAAmD;IACnD,0BAA0B,CAAC,EAAE,CAAC,UAAU,EAAE,MAAM,EAAE,SAAS,EAAE,OAAO,KAAK,IAAI,CAAC;IAG9E;;;OAGG;IACH,eAAe,CAAC,EAAE,OAAO,CAAC;IAE1B;;;;OAIG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB;;;;OAIG;IACH,aAAa,CAAC,EAAE,CAAC,IAAI,EAAE,0BAA0B,KAAK,UAAU,GAAG,SAAS,CAAC;IAE7E;;;OAGG;IACH,aAAa,CAAC,EAAE,CAAC,eAAe,EAAE,eAAe,KAAK,IAAI,CAAC;IAE3D;;;OAGG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;CACzB"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@principal-ade/dynamic-file-tree",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.42",
|
|
4
4
|
"description": "React component for selective directory filtering and file tree visualization",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.mjs",
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
"@principal-ade/industry-theme": ">=0.1.0",
|
|
51
51
|
"@principal-ade/panel-framework-core": ">=0.5.0",
|
|
52
52
|
"@principal-ai/alexandria-core-library": ">=0.3.0",
|
|
53
|
-
"@principal-ai/principal-view-core": ">=0.
|
|
53
|
+
"@principal-ai/principal-view-core": ">=0.26.30",
|
|
54
54
|
"@principal-ai/repository-abstraction": "^0.5.7",
|
|
55
55
|
"lucide-react": ">=0.263.0",
|
|
56
56
|
"react": ">=19.0.0",
|
|
@@ -81,7 +81,7 @@
|
|
|
81
81
|
"@principal-ade/industry-theme": "^0.1.8",
|
|
82
82
|
"@principal-ade/panel-framework-core": "^0.5.1",
|
|
83
83
|
"@principal-ai/alexandria-core-library": "^0.3.3",
|
|
84
|
-
"@principal-ai/principal-view-core": "0.26.
|
|
84
|
+
"@principal-ai/principal-view-core": "0.26.30",
|
|
85
85
|
"@principal-ai/repository-abstraction": "^0.5.7",
|
|
86
86
|
"@storybook/addon-docs": "^10.2.14",
|
|
87
87
|
"@storybook/addon-onboarding": "^10.2.14",
|