@principal-ade/dynamic-file-tree 0.1.37 → 0.1.38
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
|
@@ -1860,7 +1860,7 @@ var MultiFileTree = ({
|
|
|
1860
1860
|
}, "Selected: ", selectedFile.source.name, " / ", selectedFile.path));
|
|
1861
1861
|
};
|
|
1862
1862
|
// src/components/CanvasNarrativeTree/CanvasNarrativeTreeCore.tsx
|
|
1863
|
-
import { Package,
|
|
1863
|
+
import { Package, Workflow, Scroll } from "lucide-react";
|
|
1864
1864
|
import React11, { useMemo as useMemo9 } from "react";
|
|
1865
1865
|
import { Tree as Tree3 } from "react-arborist";
|
|
1866
1866
|
var buildTreeData = (canvases, narratives) => {
|
|
@@ -1967,9 +1967,9 @@ var CanvasNarrativeTreeCore = ({
|
|
|
1967
1967
|
const data = node.data;
|
|
1968
1968
|
const icon = data.type === "package" ? /* @__PURE__ */ React11.createElement(Package, {
|
|
1969
1969
|
size: 16
|
|
1970
|
-
}) : data.type === "canvas" ? /* @__PURE__ */ React11.createElement(
|
|
1970
|
+
}) : data.type === "canvas" ? /* @__PURE__ */ React11.createElement(Workflow, {
|
|
1971
1971
|
size: 16
|
|
1972
|
-
}) : /* @__PURE__ */ React11.createElement(
|
|
1972
|
+
}) : /* @__PURE__ */ React11.createElement(Scroll, {
|
|
1973
1973
|
size: 16
|
|
1974
1974
|
});
|
|
1975
1975
|
const nameColor = data.type === "package" ? theme.colors.primary : data.type === "canvas" ? theme.colors.success : theme.colors.textSecondary;
|
|
@@ -2015,7 +2015,7 @@ var CanvasNarrativeTreeCore = ({
|
|
|
2015
2015
|
};
|
|
2016
2016
|
// src/components/TelemetryCoverageFileTree.tsx
|
|
2017
2017
|
import {
|
|
2018
|
-
Activity
|
|
2018
|
+
Activity,
|
|
2019
2019
|
CircleDot,
|
|
2020
2020
|
Circle,
|
|
2021
2021
|
TestTube
|
|
@@ -2039,7 +2039,7 @@ var getCoverageStatusDisplay = (coverage, _theme) => {
|
|
|
2039
2039
|
switch (status) {
|
|
2040
2040
|
case "covered":
|
|
2041
2041
|
return {
|
|
2042
|
-
icon: /* @__PURE__ */ React12.createElement(
|
|
2042
|
+
icon: /* @__PURE__ */ React12.createElement(Activity, {
|
|
2043
2043
|
size: 14
|
|
2044
2044
|
}),
|
|
2045
2045
|
color: "#22c55e",
|
|
@@ -2314,7 +2314,7 @@ var calculateTelemetryCoverageStats = (coverageData) => {
|
|
|
2314
2314
|
};
|
|
2315
2315
|
};
|
|
2316
2316
|
// src/components/TelemetryCoverageFileTreeContainer.tsx
|
|
2317
|
-
import { RefreshCw as RefreshCw2, Eye as Eye2, EyeOff as EyeOff2, AlertCircle as AlertCircle4, Activity as
|
|
2317
|
+
import { RefreshCw as RefreshCw2, Eye as Eye2, EyeOff as EyeOff2, AlertCircle as AlertCircle4, Activity as Activity2 } from "lucide-react";
|
|
2318
2318
|
import React13, { useState as useState7, useMemo as useMemo11 } from "react";
|
|
2319
2319
|
var TelemetryCoverageFileTreeContainer = ({
|
|
2320
2320
|
fileTree,
|
|
@@ -2365,7 +2365,7 @@ var TelemetryCoverageFileTreeContainer = ({
|
|
|
2365
2365
|
}
|
|
2366
2366
|
}, /* @__PURE__ */ React13.createElement("div", {
|
|
2367
2367
|
style: { display: "flex", alignItems: "center", gap: "8px" }
|
|
2368
|
-
}, /* @__PURE__ */ React13.createElement(
|
|
2368
|
+
}, /* @__PURE__ */ React13.createElement(Activity2, {
|
|
2369
2369
|
size: 16,
|
|
2370
2370
|
color: theme.colors.primary
|
|
2371
2371
|
}), /* @__PURE__ */ React13.createElement("h3", {
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { CanvasNarrativeTreeCore } from './CanvasNarrativeTreeCore';
|
|
3
|
+
declare const meta: Meta<typeof CanvasNarrativeTreeCore>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof CanvasNarrativeTreeCore>;
|
|
6
|
+
export declare const Default: Story;
|
|
7
|
+
export declare const SinglePackage: Story;
|
|
8
|
+
export declare const RootCanvasOnly: Story;
|
|
9
|
+
export declare const NoNarratives: Story;
|
|
10
|
+
export declare const CollapsedByDefault: Story;
|
|
11
|
+
export declare const WithSelection: Story;
|
|
12
|
+
export declare const RegalTheme: Story;
|
|
13
|
+
export declare const TerminalTheme: Story;
|
|
14
|
+
export declare const MatrixTheme: Story;
|
|
15
|
+
export declare const MatrixMinimalTheme: Story;
|
|
16
|
+
export declare const SlateTheme: Story;
|
|
17
|
+
export declare const InteractiveDemo: Story;
|
|
18
|
+
export declare const ThemeComparison: Story;
|
|
19
|
+
export declare const CustomPadding: Story;
|
|
20
|
+
//# sourceMappingURL=CanvasNarrativeTree.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CanvasNarrativeTree.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/CanvasNarrativeTree/CanvasNarrativeTree.stories.tsx"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAGvD,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AAgMpE,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,uBAAuB,CAO9C,CAAC;AAEF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,uBAAuB,CAAC,CAAC;AAEtD,eAAO,MAAM,OAAO,EAAE,KAQrB,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,KAQ3B,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,KAQ5B,CAAC;AAEF,eAAO,MAAM,YAAY,EAAE,KAQ1B,CAAC;AAEF,eAAO,MAAM,kBAAkB,EAAE,KAQhC,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,KAS3B,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,KAQxB,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,KAQ3B,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,KAQzB,CAAC;AAEF,eAAO,MAAM,kBAAkB,EAAE,KAQhC,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,KAQxB,CAAC;AAEF,eAAO,MAAM,eAAe,EAAE,KA6D7B,CAAC;AAEF,eAAO,MAAM,eAAe,EAAE,KA2D7B,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,KAW3B,CAAC"}
|
package/package.json
CHANGED