@backstage/plugin-app-visualizer 0.0.0-nightly-20240113021535

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/CHANGELOG.md ADDED
@@ -0,0 +1,14 @@
1
+ # @backstage/plugin-app-visualizer
2
+
3
+ ## 0.0.0-nightly-20240113021535
4
+
5
+ ### Minor Changes
6
+
7
+ - e57cc9f: Initial release of the app visualizer plugin.
8
+
9
+ ### Patch Changes
10
+
11
+ - Updated dependencies
12
+ - @backstage/frontend-plugin-api@0.0.0-nightly-20240113021535
13
+ - @backstage/core-components@0.0.0-nightly-20240113021535
14
+ - @backstage/core-plugin-api@0.0.0-nightly-20240113021535
package/README.md ADDED
@@ -0,0 +1,10 @@
1
+ # @backstage/plugin-app-visualizer
2
+
3
+ A plugin to help explore the structure of your Backstage app.
4
+
5
+ This plugin provides the following extensions:
6
+
7
+ | ID | Type | Description | Default Config |
8
+ | ------------------------- | --------- | ------------------------------------ | ------------------------- |
9
+ | `page:app-visualizer` | `Page` | The app visualizer page | `{ path: '/visualizer' }` |
10
+ | `nav-item:app-visualizer` | `NavItem` | Nav item for the app visualizer page | |
@@ -0,0 +1,479 @@
1
+ import { DependencyGraph, DependencyGraphTypes, Page, Header, Content, HeaderTabs } from '@backstage/core-components';
2
+ import { useApi } from '@backstage/core-plugin-api';
3
+ import { coreExtensionData, createApiExtension, createThemeExtension, createNavItemExtension, useRouteRef, appTreeApiRef } from '@backstage/frontend-plugin-api';
4
+ import Box from '@material-ui/core/Box';
5
+ import React, { useState, useMemo, useRef, useLayoutEffect, useCallback, useEffect } from 'react';
6
+ import Paper from '@material-ui/core/Paper';
7
+ import Tooltip from '@material-ui/core/Tooltip';
8
+ import Typography from '@material-ui/core/Typography';
9
+ import * as colors from '@material-ui/core/colors';
10
+ import { makeStyles } from '@material-ui/core/styles';
11
+ import InputIcon from '@material-ui/icons/InputSharp';
12
+ import DisabledIcon from '@material-ui/icons/NotInterestedSharp';
13
+ import { Link, useLocation, useRoutes, useParams, matchRoutes, useNavigate } from 'react-router-dom';
14
+ import Checkbox from '@material-ui/core/Checkbox';
15
+ import FormControlLabel from '@material-ui/core/FormControlLabel';
16
+
17
+ function createOutputColorGenerator(colorMap, availableColors) {
18
+ const map = /* @__PURE__ */ new Map();
19
+ let i = 0;
20
+ return function getOutputColor2(id) {
21
+ if (id in colorMap) {
22
+ return colorMap[id];
23
+ }
24
+ let color = map.get(id);
25
+ if (color) {
26
+ return color;
27
+ }
28
+ color = availableColors[i];
29
+ i += 1;
30
+ if (i >= availableColors.length) {
31
+ i = 0;
32
+ }
33
+ map.set(id, color);
34
+ return color;
35
+ };
36
+ }
37
+ const getOutputColor = createOutputColorGenerator(
38
+ {
39
+ [coreExtensionData.reactElement.id]: colors.green[500],
40
+ [coreExtensionData.routePath.id]: colors.yellow[500],
41
+ [coreExtensionData.routeRef.id]: colors.purple[500],
42
+ [createApiExtension.factoryDataRef.id]: colors.blue[500],
43
+ [createThemeExtension.themeDataRef.id]: colors.lime[500],
44
+ [createNavItemExtension.targetDataRef.id]: colors.orange[500]
45
+ },
46
+ [
47
+ colors.blue[200],
48
+ colors.orange[200],
49
+ colors.green[200],
50
+ colors.red[200],
51
+ colors.yellow[200],
52
+ colors.purple[200],
53
+ colors.lime[200]
54
+ ]
55
+ );
56
+ const config = {
57
+ borderWidth: 0.75
58
+ };
59
+ const useStyles$1 = makeStyles((theme) => ({
60
+ extension: {
61
+ borderLeftWidth: theme.spacing(config.borderWidth),
62
+ borderLeftStyle: "solid",
63
+ borderLeftColor: ({ depth }) => colors.grey[700 - depth % 6 * 100],
64
+ cursor: "pointer",
65
+ "&:hover $extensionHeader": {
66
+ color: ({ enabled }) => enabled ? theme.palette.primary.main : theme.palette.text.secondary
67
+ }
68
+ },
69
+ extensionHeader: {
70
+ display: "flex",
71
+ alignItems: "center",
72
+ width: "fit-content",
73
+ padding: theme.spacing(0.5, 1),
74
+ color: ({ enabled }) => enabled ? theme.palette.text.primary : theme.palette.text.disabled,
75
+ background: theme.palette.background.paper,
76
+ borderTopRightRadius: theme.shape.borderRadius,
77
+ borderBottomRightRadius: theme.shape.borderRadius
78
+ },
79
+ extensionHeaderId: {
80
+ userSelect: "all"
81
+ },
82
+ extensionHeaderOutputs: {
83
+ display: "flex",
84
+ alignItems: "center",
85
+ marginLeft: theme.spacing(1),
86
+ gap: theme.spacing(1)
87
+ },
88
+ attachments: {
89
+ gap: theme.spacing(2),
90
+ display: "flex",
91
+ flexDirection: "column"
92
+ },
93
+ attachmentsInput: {
94
+ "&:first-child $attachmentsInputTitle": {
95
+ borderTop: 0
96
+ }
97
+ },
98
+ attachmentsInputTitle: {
99
+ display: "flex",
100
+ alignItems: "center",
101
+ width: "fit-content",
102
+ padding: theme.spacing(1),
103
+ borderTopWidth: theme.spacing(config.borderWidth),
104
+ borderTopStyle: "solid",
105
+ borderTopColor: ({ depth }) => colors.grey[700 - depth % 6 * 100]
106
+ },
107
+ attachmentsInputName: {
108
+ marginLeft: theme.spacing(1)
109
+ },
110
+ attachmentsInputChildren: {
111
+ display: "flex",
112
+ flexDirection: "column",
113
+ alignItems: "flex-start",
114
+ gap: theme.spacing(0.5),
115
+ marginLeft: theme.spacing(1),
116
+ marginBottom: theme.spacing(1)
117
+ }
118
+ }));
119
+ const useOutputStyles = makeStyles((theme) => ({
120
+ output: ({ color }) => ({
121
+ padding: `0 10px`,
122
+ height: 20,
123
+ borderRadius: 10,
124
+ color: theme.palette.getContrastText(color),
125
+ backgroundColor: color
126
+ })
127
+ }));
128
+ function getFullPath(node) {
129
+ var _a, _b;
130
+ if (!node) {
131
+ return "";
132
+ }
133
+ const parent = (_a = node.edges.attachedTo) == null ? void 0 : _a.node;
134
+ const part = (_b = node.instance) == null ? void 0 : _b.getData(coreExtensionData.routePath);
135
+ if (!part) {
136
+ return getFullPath(parent);
137
+ }
138
+ return getFullPath(parent) + part;
139
+ }
140
+ function OutputLink(props) {
141
+ var _a, _b;
142
+ const routeRef = (_b = (_a = props.node) == null ? void 0 : _a.instance) == null ? void 0 : _b.getData(coreExtensionData.routeRef);
143
+ let link = void 0;
144
+ try {
145
+ link = useRouteRef(routeRef)();
146
+ } catch {
147
+ }
148
+ return /* @__PURE__ */ React.createElement(Tooltip, { title: /* @__PURE__ */ React.createElement(Typography, null, props.dataRef.id) }, /* @__PURE__ */ React.createElement(Box, { className: props.className }, link ? /* @__PURE__ */ React.createElement(Link, { to: link }, "link") : null));
149
+ }
150
+ function Output(props) {
151
+ var _a;
152
+ const { dataRef, node } = props;
153
+ const { id } = dataRef;
154
+ const instance = node == null ? void 0 : node.instance;
155
+ const classes = useOutputStyles({ color: getOutputColor(id) });
156
+ if (id === coreExtensionData.routePath.id) {
157
+ return /* @__PURE__ */ React.createElement(Tooltip, { title: /* @__PURE__ */ React.createElement(Typography, null, getFullPath(node)) }, /* @__PURE__ */ React.createElement(Box, { className: classes.output }, String((_a = instance == null ? void 0 : instance.getData(dataRef)) != null ? _a : "")));
158
+ }
159
+ if (id === coreExtensionData.routeRef.id) {
160
+ return /* @__PURE__ */ React.createElement(OutputLink, { ...props, className: classes.output });
161
+ }
162
+ return /* @__PURE__ */ React.createElement(Tooltip, { title: /* @__PURE__ */ React.createElement(Typography, null, id) }, /* @__PURE__ */ React.createElement(Box, { className: classes.output }));
163
+ }
164
+ function Attachments(props) {
165
+ const { node, enabled, depth } = props;
166
+ const { attachments } = node.edges;
167
+ const classes = useStyles$1({ enabled, depth });
168
+ if (attachments.size === 0) {
169
+ return null;
170
+ }
171
+ return /* @__PURE__ */ React.createElement(Box, { className: classes.attachments }, [...attachments.entries()].sort(([a], [b]) => a.localeCompare(b)).map(([key, children]) => {
172
+ return /* @__PURE__ */ React.createElement(Box, { key, className: classes.attachmentsInput }, /* @__PURE__ */ React.createElement(Box, { className: classes.attachmentsInputTitle }, /* @__PURE__ */ React.createElement(InputIcon, null), /* @__PURE__ */ React.createElement(Typography, { className: classes.attachmentsInputName }, key)), /* @__PURE__ */ React.createElement(Box, { className: classes.attachmentsInputChildren }, children.map((childNode) => /* @__PURE__ */ React.createElement(
173
+ Extension,
174
+ {
175
+ key: childNode.spec.id,
176
+ node: childNode,
177
+ depth: depth + 1
178
+ }
179
+ ))));
180
+ }));
181
+ }
182
+ function ExtensionTooltip(props) {
183
+ const parts = [];
184
+ let node = props.node;
185
+ parts.push(node.spec.id);
186
+ while (node.edges.attachedTo) {
187
+ const input = node.edges.attachedTo.input;
188
+ node = node.edges.attachedTo.node;
189
+ parts.push(`${node.spec.id} [${input}]`);
190
+ }
191
+ parts.reverse();
192
+ return /* @__PURE__ */ React.createElement(React.Fragment, null, parts.map((part) => /* @__PURE__ */ React.createElement(Typography, { key: part }, part)));
193
+ }
194
+ function Extension(props) {
195
+ const { node, depth } = props;
196
+ const enabled = Boolean(node.instance);
197
+ const classes = useStyles$1({ enabled, depth });
198
+ const dataRefs = node.instance && [...node.instance.getDataRefs()];
199
+ return /* @__PURE__ */ React.createElement(Box, { key: node.spec.id, className: classes.extension }, /* @__PURE__ */ React.createElement(Box, { className: classes.extensionHeader }, /* @__PURE__ */ React.createElement(Tooltip, { title: /* @__PURE__ */ React.createElement(ExtensionTooltip, { node }) }, /* @__PURE__ */ React.createElement(Typography, { className: classes.extensionHeaderId }, node.spec.id)), /* @__PURE__ */ React.createElement(Box, { className: classes.extensionHeaderOutputs }, dataRefs && dataRefs.length > 0 && dataRefs.sort((a, b) => a.id.localeCompare(b.id)).map((ref) => /* @__PURE__ */ React.createElement(Output, { key: ref.id, dataRef: ref, node })), !enabled && /* @__PURE__ */ React.createElement(DisabledIcon, { fontSize: "small" }))), /* @__PURE__ */ React.createElement(Attachments, { node, enabled, depth }));
200
+ }
201
+ const legendMap = {
202
+ "React Element": coreExtensionData.reactElement,
203
+ "Utility API": createApiExtension.factoryDataRef,
204
+ "Route Path": coreExtensionData.routePath,
205
+ "Route Ref": coreExtensionData.routeRef,
206
+ "Nav Target": createNavItemExtension.targetDataRef,
207
+ Theme: createThemeExtension.themeDataRef
208
+ };
209
+ function Legend() {
210
+ return /* @__PURE__ */ React.createElement(
211
+ Box,
212
+ {
213
+ display: "grid",
214
+ maxWidth: 600,
215
+ p: 1,
216
+ style: {
217
+ grid: "auto-flow / repeat(3, 1fr)",
218
+ gap: 16
219
+ }
220
+ },
221
+ Object.entries(legendMap).map(([label, dataRef]) => /* @__PURE__ */ React.createElement(
222
+ Box,
223
+ {
224
+ key: dataRef.id,
225
+ display: "flex",
226
+ style: { gap: 8 },
227
+ alignItems: "center"
228
+ },
229
+ /* @__PURE__ */ React.createElement(Output, { dataRef }),
230
+ /* @__PURE__ */ React.createElement(Typography, null, label)
231
+ ))
232
+ );
233
+ }
234
+ function DetailedVisualizer({ tree }) {
235
+ return /* @__PURE__ */ React.createElement(Box, { display: "flex", height: "100%", flex: "1 1 100%", flexDirection: "column" }, /* @__PURE__ */ React.createElement(Box, { flex: "1 1 0", overflow: "auto", ml: 2, mt: 2 }, /* @__PURE__ */ React.createElement(Extension, { node: tree.root, depth: 0 })), /* @__PURE__ */ React.createElement(Box, { component: Paper, flex: "0 0 auto", m: 1 }, /* @__PURE__ */ React.createElement(Legend, null)));
236
+ }
237
+
238
+ function mkDiv(children, options) {
239
+ return /* @__PURE__ */ React.createElement(
240
+ "div",
241
+ {
242
+ key: options == null ? void 0 : options.key,
243
+ style: {
244
+ color: options == null ? void 0 : options.color,
245
+ marginLeft: (options == null ? void 0 : options.indent) ? 16 : void 0
246
+ }
247
+ },
248
+ children
249
+ );
250
+ }
251
+ function nodeToText(node, options) {
252
+ const dataRefIds = node.instance && [...node.instance.getDataRefs()].map((r) => r.id);
253
+ const out = (options == null ? void 0 : options.showOutputs) && dataRefIds && dataRefIds.length > 0 ? ` out="${[...dataRefIds].sort().join(", ")}"` : "";
254
+ const color = node.instance ? void 0 : "gray";
255
+ if (node.edges.attachments.size === 0) {
256
+ return mkDiv(`<${node.spec.id}${out}/>`, { color });
257
+ }
258
+ return mkDiv([
259
+ mkDiv(`<${node.spec.id}${out}>`, { key: "start", color }),
260
+ ...[...node.edges.attachments.entries()].sort(([a], [b]) => a.localeCompare(b)).map(([key, v]) => {
261
+ const children = v.filter((e) => (options == null ? void 0 : options.showDisabled) || e.instance).sort((a, b) => a.spec.id.localeCompare(b.spec.id));
262
+ if (children.length === 0) {
263
+ return mkDiv(`${key} []`, { indent: true });
264
+ }
265
+ return mkDiv(
266
+ [
267
+ mkDiv(`${key} [`),
268
+ ...children.map(
269
+ (e) => mkDiv(nodeToText(e, options), { indent: true })
270
+ ),
271
+ mkDiv("]")
272
+ ],
273
+ { key, indent: true }
274
+ );
275
+ }),
276
+ mkDiv(`</${node.spec.id}>`, { key: "end", color })
277
+ ]);
278
+ }
279
+ function TextVisualizer({ tree }) {
280
+ const [showOutputs, setShowOutputs] = useState(false);
281
+ const [showDisabled, setShowDisabled] = useState(false);
282
+ return /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(Box, { style: { overflow: "auto", flex: "1 0 0" } }, /* @__PURE__ */ React.createElement("div", { style: { margin: 16, width: "max-content" } }, nodeToText(tree.root, { showOutputs, showDisabled }))), /* @__PURE__ */ React.createElement(Paper, { style: { padding: "8px 16px" } }, /* @__PURE__ */ React.createElement(
283
+ FormControlLabel,
284
+ {
285
+ control: /* @__PURE__ */ React.createElement(
286
+ Checkbox,
287
+ {
288
+ checked: showOutputs,
289
+ onChange: (_, value) => setShowOutputs(value)
290
+ }
291
+ ),
292
+ label: "Show Outputs"
293
+ }
294
+ ), /* @__PURE__ */ React.createElement(
295
+ FormControlLabel,
296
+ {
297
+ control: /* @__PURE__ */ React.createElement(
298
+ Checkbox,
299
+ {
300
+ checked: showDisabled,
301
+ onChange: (_, value) => setShowDisabled(value)
302
+ }
303
+ ),
304
+ label: "Show Disabled"
305
+ }
306
+ )));
307
+ }
308
+
309
+ function inputId({ node, input }) {
310
+ return `${node.spec.id}$$${input}`;
311
+ }
312
+ function trimNodeId(id) {
313
+ let newId = id;
314
+ if (newId.startsWith("apis.")) {
315
+ newId = newId.slice("apis.".length);
316
+ }
317
+ if (newId.startsWith("plugin.")) {
318
+ newId = newId.slice("plugin.".length);
319
+ }
320
+ if (newId.startsWith("catalog.filter.entity.")) {
321
+ newId = newId.slice("catalog.filter.entity.".length);
322
+ }
323
+ if (newId.endsWith(".nav.index")) {
324
+ newId = newId.slice(0, -".nav.index".length);
325
+ }
326
+ return newId;
327
+ }
328
+ function resolveGraphData(tree) {
329
+ const nodes = [...tree.nodes.values()].filter((node) => node.instance).map((node) => ({ ...node, id: node.spec.id, type: "node" }));
330
+ return {
331
+ nodes: [
332
+ ...nodes,
333
+ ...nodes.flatMap(
334
+ (node) => [...node.edges.attachments.keys()].map((input) => ({
335
+ id: inputId({ node, input }),
336
+ type: "input",
337
+ name: input
338
+ }))
339
+ )
340
+ ],
341
+ edges: [
342
+ ...nodes.filter((node) => node.edges.attachedTo).map((node) => ({
343
+ from: inputId(node.edges.attachedTo),
344
+ to: node.spec.id
345
+ })),
346
+ ...nodes.flatMap(
347
+ (node) => [...node.edges.attachments.keys()].map((input) => ({
348
+ from: node.spec.id,
349
+ to: inputId({ node, input })
350
+ }))
351
+ )
352
+ ]
353
+ };
354
+ }
355
+ const useStyles = makeStyles((theme) => ({
356
+ node: {
357
+ fill: (node) => node.type === "node" ? theme.palette.primary.light : theme.palette.grey[500],
358
+ stroke: (node) => node.type === "node" ? theme.palette.primary.main : theme.palette.grey[600]
359
+ },
360
+ text: {
361
+ fill: theme.palette.primary.contrastText
362
+ }
363
+ }));
364
+ function Node(props) {
365
+ const { node } = props;
366
+ const classes = useStyles(node);
367
+ const [width, setWidth] = useState(0);
368
+ const [height, setHeight] = useState(0);
369
+ const idRef = useRef(null);
370
+ useLayoutEffect(() => {
371
+ if (idRef.current) {
372
+ let { height: renderedHeight, width: renderedWidth } = idRef.current.getBBox();
373
+ renderedHeight = Math.round(renderedHeight);
374
+ renderedWidth = Math.round(renderedWidth);
375
+ if (renderedHeight !== height || renderedWidth !== width) {
376
+ setWidth(renderedWidth);
377
+ setHeight(renderedHeight);
378
+ }
379
+ }
380
+ }, [width, height]);
381
+ const padding = 10;
382
+ const paddedWidth = width + padding * 2;
383
+ const paddedHeight = height + padding * 2;
384
+ return /* @__PURE__ */ React.createElement("g", null, /* @__PURE__ */ React.createElement(
385
+ "rect",
386
+ {
387
+ className: classes.node,
388
+ width: paddedWidth,
389
+ height: paddedHeight,
390
+ rx: node.type === "node" ? 0 : 20
391
+ }
392
+ ), /* @__PURE__ */ React.createElement(
393
+ "text",
394
+ {
395
+ ref: idRef,
396
+ className: classes.text,
397
+ y: paddedHeight / 2,
398
+ x: paddedWidth / 2,
399
+ textAnchor: "middle",
400
+ alignmentBaseline: "middle"
401
+ },
402
+ node.type === "node" ? trimNodeId(node.id) : node.name
403
+ ));
404
+ }
405
+ function TreeVisualizer({ tree }) {
406
+ const graphData = useMemo(() => resolveGraphData(tree), [tree]);
407
+ return /* @__PURE__ */ React.createElement(Box, { height: "100%", flex: "1 1 100%", flexDirection: "column", overflow: "hidden" }, /* @__PURE__ */ React.createElement(
408
+ DependencyGraph,
409
+ {
410
+ fit: "contain",
411
+ style: { height: "100%", width: "100%" },
412
+ ...graphData,
413
+ nodeMargin: 10,
414
+ rankMargin: 50,
415
+ paddingX: 50,
416
+ renderNode: Node,
417
+ align: DependencyGraphTypes.Alignment.DOWN_RIGHT,
418
+ ranker: DependencyGraphTypes.Ranker.TIGHT_TREE,
419
+ direction: DependencyGraphTypes.Direction.TOP_BOTTOM
420
+ }
421
+ ));
422
+ }
423
+
424
+ function AppVisualizerPage() {
425
+ var _a;
426
+ const appTreeApi = useApi(appTreeApiRef);
427
+ const { tree } = appTreeApi.getTree();
428
+ const tabs = useMemo(
429
+ () => [
430
+ {
431
+ id: "tree",
432
+ path: "tree",
433
+ label: "Tree",
434
+ element: /* @__PURE__ */ React.createElement(TreeVisualizer, { tree })
435
+ },
436
+ {
437
+ id: "detailed",
438
+ path: "detailed",
439
+ label: "Detailed",
440
+ element: /* @__PURE__ */ React.createElement(DetailedVisualizer, { tree })
441
+ },
442
+ {
443
+ id: "text",
444
+ path: "text",
445
+ label: "Text",
446
+ element: /* @__PURE__ */ React.createElement(TextVisualizer, { tree })
447
+ }
448
+ ],
449
+ [tree]
450
+ );
451
+ const location = useLocation();
452
+ const element = useRoutes(tabs, location);
453
+ const currentPath = `/${useParams()["*"]}`;
454
+ const [matchedRoute] = (_a = matchRoutes(tabs, currentPath)) != null ? _a : [];
455
+ const currentTabIndex = matchedRoute ? tabs.findIndex((t) => t.path === matchedRoute.route.path) : 0;
456
+ const navigate = useNavigate();
457
+ const handleTabChange = useCallback(
458
+ (index) => {
459
+ navigate(tabs[index].id);
460
+ },
461
+ [navigate, tabs]
462
+ );
463
+ useEffect(() => {
464
+ if (!element) {
465
+ navigate(tabs[0].path);
466
+ }
467
+ }, [element, navigate, tabs]);
468
+ return /* @__PURE__ */ React.createElement(Page, { themeId: "tool" }, /* @__PURE__ */ React.createElement(Header, { title: "App Visualizer" }), /* @__PURE__ */ React.createElement(Content, { noPadding: true, stretch: true }, /* @__PURE__ */ React.createElement(Box, { display: "flex", flexDirection: "column", height: "100%" }, /* @__PURE__ */ React.createElement(
469
+ HeaderTabs,
470
+ {
471
+ tabs,
472
+ selectedIndex: currentTabIndex,
473
+ onChange: handleTabChange
474
+ }
475
+ ), element)));
476
+ }
477
+
478
+ export { AppVisualizerPage };
479
+ //# sourceMappingURL=index-3edf4d0d.esm.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index-3edf4d0d.esm.js","sources":["../../src/components/AppVisualizerPage/DetailedVisualizer.tsx","../../src/components/AppVisualizerPage/TextVisualizer.tsx","../../src/components/AppVisualizerPage/TreeVisualizer.tsx","../../src/components/AppVisualizerPage/AppVisualizerPage.tsx"],"sourcesContent":["/*\n * Copyright 2023 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {\n AppNode,\n AppTree,\n ExtensionDataRef,\n RouteRef,\n coreExtensionData,\n createApiExtension,\n createNavItemExtension,\n createThemeExtension,\n useRouteRef,\n} from '@backstage/frontend-plugin-api';\nimport Box from '@material-ui/core/Box';\nimport Paper from '@material-ui/core/Paper';\nimport Tooltip from '@material-ui/core/Tooltip';\nimport Typography from '@material-ui/core/Typography';\nimport * as colors from '@material-ui/core/colors';\nimport { makeStyles } from '@material-ui/core/styles';\nimport InputIcon from '@material-ui/icons/InputSharp';\nimport DisabledIcon from '@material-ui/icons/NotInterestedSharp';\nimport React from 'react';\nimport { Link } from 'react-router-dom';\n\nfunction createOutputColorGenerator(\n colorMap: { [extDataId: string]: string },\n availableColors: string[],\n) {\n const map = new Map<string, string>();\n let i = 0;\n\n return function getOutputColor(id: string) {\n if (id in colorMap) {\n return colorMap[id];\n }\n let color = map.get(id);\n if (color) {\n return color;\n }\n color = availableColors[i];\n i += 1;\n if (i >= availableColors.length) {\n i = 0;\n }\n map.set(id, color);\n return color;\n };\n}\n\nconst getOutputColor = createOutputColorGenerator(\n {\n [coreExtensionData.reactElement.id]: colors.green[500],\n [coreExtensionData.routePath.id]: colors.yellow[500],\n [coreExtensionData.routeRef.id]: colors.purple[500],\n [createApiExtension.factoryDataRef.id]: colors.blue[500],\n [createThemeExtension.themeDataRef.id]: colors.lime[500],\n [createNavItemExtension.targetDataRef.id]: colors.orange[500],\n },\n\n [\n colors.blue[200],\n colors.orange[200],\n colors.green[200],\n colors.red[200],\n colors.yellow[200],\n colors.purple[200],\n colors.lime[200],\n ],\n);\n\ninterface StyleProps {\n enabled: boolean;\n depth: number;\n}\n\nconst config = {\n borderWidth: 0.75,\n};\n\nconst useStyles = makeStyles(theme => ({\n extension: {\n borderLeftWidth: theme.spacing(config.borderWidth),\n borderLeftStyle: 'solid',\n borderLeftColor: ({ depth }: StyleProps) =>\n colors.grey[(700 - (depth % 6) * 100) as keyof typeof colors.grey],\n cursor: 'pointer',\n\n '&:hover $extensionHeader': {\n color: ({ enabled }: StyleProps) =>\n enabled ? theme.palette.primary.main : theme.palette.text.secondary,\n },\n },\n extensionHeader: {\n display: 'flex',\n alignItems: 'center',\n width: 'fit-content',\n\n padding: theme.spacing(0.5, 1),\n color: ({ enabled }: StyleProps) =>\n enabled ? theme.palette.text.primary : theme.palette.text.disabled,\n background: theme.palette.background.paper,\n\n borderTopRightRadius: theme.shape.borderRadius,\n borderBottomRightRadius: theme.shape.borderRadius,\n },\n extensionHeaderId: {\n userSelect: 'all',\n },\n extensionHeaderOutputs: {\n display: 'flex',\n alignItems: 'center',\n marginLeft: theme.spacing(1),\n gap: theme.spacing(1),\n },\n attachments: {\n gap: theme.spacing(2),\n display: 'flex',\n flexDirection: 'column',\n },\n attachmentsInput: {\n '&:first-child $attachmentsInputTitle': {\n borderTop: 0,\n },\n },\n attachmentsInputTitle: {\n display: 'flex',\n alignItems: 'center',\n width: 'fit-content',\n padding: theme.spacing(1),\n\n borderTopWidth: theme.spacing(config.borderWidth),\n borderTopStyle: 'solid',\n borderTopColor: ({ depth }: StyleProps) =>\n colors.grey[(700 - (depth % 6) * 100) as keyof typeof colors.grey],\n },\n attachmentsInputName: {\n marginLeft: theme.spacing(1),\n },\n attachmentsInputChildren: {\n display: 'flex',\n flexDirection: 'column',\n alignItems: 'flex-start',\n gap: theme.spacing(0.5),\n marginLeft: theme.spacing(1),\n marginBottom: theme.spacing(1),\n },\n}));\n\nconst useOutputStyles = makeStyles(theme => ({\n output: ({ color }: { color: string }) => ({\n padding: `0 10px`,\n height: 20,\n borderRadius: 10,\n color: theme.palette.getContrastText(color),\n backgroundColor: color,\n }),\n}));\n\nfunction getFullPath(node?: AppNode): string {\n if (!node) {\n return '';\n }\n const parent = node.edges.attachedTo?.node;\n const part = node.instance?.getData(coreExtensionData.routePath);\n if (!part) {\n return getFullPath(parent);\n }\n return getFullPath(parent) + part;\n}\n\nfunction OutputLink(props: {\n dataRef: ExtensionDataRef<unknown>;\n node?: AppNode;\n className: string;\n}) {\n const routeRef = props.node?.instance?.getData(coreExtensionData.routeRef);\n\n let link: string | undefined = undefined;\n try {\n // eslint-disable-next-line react-hooks/rules-of-hooks\n link = useRouteRef(routeRef as RouteRef<undefined>)();\n } catch {\n /* ignore */\n }\n\n return (\n <Tooltip title={<Typography>{props.dataRef.id}</Typography>}>\n <Box className={props.className}>\n {link ? <Link to={link}>link</Link> : null}\n </Box>\n </Tooltip>\n );\n}\n\nfunction Output(props: { dataRef: ExtensionDataRef<unknown>; node?: AppNode }) {\n const { dataRef, node } = props;\n const { id } = dataRef;\n const instance = node?.instance;\n\n const classes = useOutputStyles({ color: getOutputColor(id) });\n\n if (id === coreExtensionData.routePath.id) {\n return (\n <Tooltip title={<Typography>{getFullPath(node)}</Typography>}>\n <Box className={classes.output}>\n {String(instance?.getData(dataRef) ?? '')}\n </Box>\n </Tooltip>\n );\n }\n\n if (id === coreExtensionData.routeRef.id) {\n return <OutputLink {...props} className={classes.output} />;\n }\n\n return (\n <Tooltip title={<Typography>{id}</Typography>}>\n <Box className={classes.output} />\n </Tooltip>\n );\n}\n\nfunction Attachments(props: {\n node: AppNode;\n enabled: boolean;\n depth: number;\n}) {\n const { node, enabled, depth } = props;\n const { attachments } = node.edges;\n\n const classes = useStyles({ enabled, depth });\n\n if (attachments.size === 0) {\n return null;\n }\n\n return (\n <Box className={classes.attachments}>\n {[...attachments.entries()]\n .sort(([a], [b]) => a.localeCompare(b))\n .map(([key, children]) => {\n return (\n <Box key={key} className={classes.attachmentsInput}>\n <Box className={classes.attachmentsInputTitle}>\n <InputIcon />\n <Typography className={classes.attachmentsInputName}>\n {key}\n </Typography>\n </Box>\n <Box className={classes.attachmentsInputChildren}>\n {children.map(childNode => (\n <Extension\n key={childNode.spec.id}\n node={childNode}\n depth={depth + 1}\n />\n ))}\n </Box>\n </Box>\n );\n })}\n </Box>\n );\n}\n\nfunction ExtensionTooltip(props: { node: AppNode }) {\n const parts = [];\n let node = props.node;\n parts.push(node.spec.id);\n while (node.edges.attachedTo) {\n const input = node.edges.attachedTo.input;\n node = node.edges.attachedTo.node;\n parts.push(`${node.spec.id} [${input}]`);\n }\n parts.reverse();\n\n return (\n <>\n {parts.map(part => (\n <Typography key={part}>{part}</Typography>\n ))}\n </>\n );\n}\n\nfunction Extension(props: { node: AppNode; depth: number }) {\n const { node, depth } = props;\n\n const enabled = Boolean(node.instance);\n const classes = useStyles({ enabled, depth });\n\n const dataRefs = node.instance && [...node.instance.getDataRefs()];\n\n return (\n <Box key={node.spec.id} className={classes.extension}>\n <Box className={classes.extensionHeader}>\n <Tooltip title={<ExtensionTooltip node={node} />}>\n <Typography className={classes.extensionHeaderId}>\n {node.spec.id}\n </Typography>\n </Tooltip>\n <Box className={classes.extensionHeaderOutputs}>\n {dataRefs &&\n dataRefs.length > 0 &&\n dataRefs\n .sort((a, b) => a.id.localeCompare(b.id))\n .map(ref => <Output key={ref.id} dataRef={ref} node={node} />)}\n {!enabled && <DisabledIcon fontSize=\"small\" />}\n </Box>\n </Box>\n <Attachments node={node} enabled={enabled} depth={depth} />\n </Box>\n );\n}\n\nconst legendMap = {\n 'React Element': coreExtensionData.reactElement,\n 'Utility API': createApiExtension.factoryDataRef,\n 'Route Path': coreExtensionData.routePath,\n 'Route Ref': coreExtensionData.routeRef,\n 'Nav Target': createNavItemExtension.targetDataRef,\n Theme: createThemeExtension.themeDataRef,\n};\n\nfunction Legend() {\n return (\n <Box\n display=\"grid\"\n maxWidth={600}\n p={1}\n style={{\n grid: 'auto-flow / repeat(3, 1fr)',\n gap: 16,\n }}\n >\n {Object.entries(legendMap).map(([label, dataRef]) => (\n <Box\n key={dataRef.id}\n display=\"flex\"\n style={{ gap: 8 }}\n alignItems=\"center\"\n >\n <Output dataRef={dataRef} />\n <Typography>{label}</Typography>\n </Box>\n ))}\n </Box>\n );\n}\n\nexport function DetailedVisualizer({ tree }: { tree: AppTree }) {\n return (\n <Box display=\"flex\" height=\"100%\" flex=\"1 1 100%\" flexDirection=\"column\">\n <Box flex=\"1 1 0\" overflow=\"auto\" ml={2} mt={2}>\n <Extension node={tree.root} depth={0} />\n </Box>\n\n <Box component={Paper} flex=\"0 0 auto\" m={1}>\n <Legend />\n </Box>\n </Box>\n );\n}\n","/*\n * Copyright 2023 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { AppNode, AppTree } from '@backstage/frontend-plugin-api';\nimport Box from '@material-ui/core/Box';\nimport Checkbox from '@material-ui/core/Checkbox';\nimport FormControlLabel from '@material-ui/core/FormControlLabel';\nimport Paper from '@material-ui/core/Paper';\nimport React, { ReactNode, useState } from 'react';\n\nfunction mkDiv(\n children: ReactNode,\n options?: { indent?: boolean; key?: string | number; color?: string },\n) {\n return (\n <div\n key={options?.key}\n style={{\n color: options?.color,\n marginLeft: options?.indent ? 16 : undefined,\n }}\n >\n {children}\n </div>\n );\n}\n\nfunction nodeToText(\n node: AppNode,\n options?: { showOutputs?: boolean; showDisabled?: boolean },\n): ReactNode {\n const dataRefIds =\n node.instance && [...node.instance.getDataRefs()].map(r => r.id);\n const out =\n options?.showOutputs && dataRefIds && dataRefIds.length > 0\n ? ` out=\"${[...dataRefIds].sort().join(', ')}\"`\n : '';\n const color = node.instance ? undefined : 'gray';\n\n if (node.edges.attachments.size === 0) {\n return mkDiv(`<${node.spec.id}${out}/>`, { color });\n }\n\n return mkDiv([\n mkDiv(`<${node.spec.id}${out}>`, { key: 'start', color }),\n ...[...node.edges.attachments.entries()]\n .sort(([a], [b]) => a.localeCompare(b))\n .map(([key, v]) => {\n const children = v\n .filter(e => options?.showDisabled || e.instance)\n .sort((a, b) => a.spec.id.localeCompare(b.spec.id));\n if (children.length === 0) {\n return mkDiv(`${key} []`, { indent: true });\n }\n return mkDiv(\n [\n mkDiv(`${key} [`),\n ...children.map(e =>\n mkDiv(nodeToText(e, options), { indent: true }),\n ),\n mkDiv(']'),\n ],\n { key, indent: true },\n );\n }),\n mkDiv(`</${node.spec.id}>`, { key: 'end', color }),\n ]);\n}\n\nexport function TextVisualizer({ tree }: { tree: AppTree }) {\n const [showOutputs, setShowOutputs] = useState(false);\n const [showDisabled, setShowDisabled] = useState(false);\n\n return (\n <>\n <Box style={{ overflow: 'auto', flex: '1 0 0' }}>\n <div style={{ margin: 16, width: 'max-content' }}>\n {nodeToText(tree.root, { showOutputs, showDisabled })}\n </div>\n </Box>\n <Paper style={{ padding: '8px 16px' }}>\n <FormControlLabel\n control={\n <Checkbox\n checked={showOutputs}\n onChange={(_, value) => setShowOutputs(value)}\n />\n }\n label=\"Show Outputs\"\n />\n <FormControlLabel\n control={\n <Checkbox\n checked={showDisabled}\n onChange={(_, value) => setShowDisabled(value)}\n />\n }\n label=\"Show Disabled\"\n />\n </Paper>\n </>\n );\n}\n","/*\n * Copyright 2023 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport React from 'react';\nimport {\n DependencyGraph,\n DependencyGraphTypes,\n} from '@backstage/core-components';\nimport { AppNode, AppTree } from '@backstage/frontend-plugin-api';\nimport Box from '@material-ui/core/Box';\nimport { makeStyles } from '@material-ui/core/styles';\nimport { useLayoutEffect, useMemo, useRef, useState } from 'react';\n\ntype NodeType =\n | ({ type: 'node'; id: string } & AppNode)\n | { type: 'input'; id: string; name: string };\n\nfunction inputId({ node, input }: { node: AppNode; input: string }) {\n return `${node.spec.id}$$${input}`;\n}\n\nfunction trimNodeId(id: string) {\n let newId = id;\n if (newId.startsWith('apis.')) {\n newId = newId.slice('apis.'.length);\n }\n if (newId.startsWith('plugin.')) {\n newId = newId.slice('plugin.'.length);\n }\n if (newId.startsWith('catalog.filter.entity.')) {\n newId = newId.slice('catalog.filter.entity.'.length);\n }\n if (newId.endsWith('.nav.index')) {\n newId = newId.slice(0, -'.nav.index'.length);\n }\n return newId;\n}\n\nfunction resolveGraphData(tree: AppTree): {\n nodes: NodeType[];\n edges: { from: string; to: string }[];\n} {\n const nodes = [...tree.nodes.values()]\n .filter(node => node.instance)\n .map(node => ({ ...node, id: node.spec.id, type: 'node' as const }));\n\n return {\n nodes: [\n ...nodes,\n ...nodes.flatMap(node =>\n [...node.edges.attachments.keys()].map(input => ({\n id: inputId({ node, input }),\n type: 'input' as const,\n name: input,\n })),\n ),\n ],\n edges: [\n ...nodes\n .filter(node => node.edges.attachedTo)\n .map(node => ({\n from: inputId(node.edges.attachedTo!),\n to: node.spec.id,\n })),\n ...nodes.flatMap(node =>\n [...node.edges.attachments.keys()].map(input => ({\n from: node.spec.id,\n to: inputId({ node, input }),\n })),\n ),\n ],\n };\n}\n\nconst useStyles = makeStyles(theme => ({\n node: {\n fill: (node: NodeType) =>\n node.type === 'node'\n ? theme.palette.primary.light\n : theme.palette.grey[500],\n stroke: (node: NodeType) =>\n node.type === 'node'\n ? theme.palette.primary.main\n : theme.palette.grey[600],\n },\n text: {\n fill: theme.palette.primary.contrastText,\n },\n}));\n\n/** @public */\nexport function Node(props: { node: NodeType }) {\n const { node } = props;\n const classes = useStyles(node);\n const [width, setWidth] = useState(0);\n const [height, setHeight] = useState(0);\n const idRef = useRef<SVGTextElement | null>(null);\n\n useLayoutEffect(() => {\n // set the width to the length of the ID\n if (idRef.current) {\n let { height: renderedHeight, width: renderedWidth } =\n idRef.current.getBBox();\n renderedHeight = Math.round(renderedHeight);\n renderedWidth = Math.round(renderedWidth);\n\n if (renderedHeight !== height || renderedWidth !== width) {\n setWidth(renderedWidth);\n setHeight(renderedHeight);\n }\n }\n }, [width, height]);\n\n const padding = 10;\n const paddedWidth = width + padding * 2;\n const paddedHeight = height + padding * 2;\n\n return (\n <g>\n <rect\n className={classes.node}\n width={paddedWidth}\n height={paddedHeight}\n rx={node.type === 'node' ? 0 : 20}\n />\n <text\n ref={idRef}\n className={classes.text}\n y={paddedHeight / 2}\n x={paddedWidth / 2}\n textAnchor=\"middle\"\n alignmentBaseline=\"middle\"\n >\n {node.type === 'node' ? trimNodeId(node.id) : node.name}\n </text>\n </g>\n );\n}\n\nexport function TreeVisualizer({ tree }: { tree: AppTree }) {\n const graphData = useMemo(() => resolveGraphData(tree), [tree]);\n\n return (\n <Box height=\"100%\" flex=\"1 1 100%\" flexDirection=\"column\" overflow=\"hidden\">\n <DependencyGraph\n fit=\"contain\"\n style={{ height: '100%', width: '100%' }}\n {...graphData}\n nodeMargin={10}\n rankMargin={50}\n paddingX={50}\n renderNode={Node}\n align={DependencyGraphTypes.Alignment.DOWN_RIGHT}\n ranker={DependencyGraphTypes.Ranker.TIGHT_TREE}\n direction={DependencyGraphTypes.Direction.TOP_BOTTOM}\n />\n </Box>\n );\n}\n","/*\n * Copyright 2023 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { Content, Header, HeaderTabs, Page } from '@backstage/core-components';\nimport { useApi } from '@backstage/core-plugin-api';\nimport { appTreeApiRef } from '@backstage/frontend-plugin-api';\nimport Box from '@material-ui/core/Box';\nimport React, { useCallback, useEffect, useMemo } from 'react';\nimport { DetailedVisualizer } from './DetailedVisualizer';\nimport { TextVisualizer } from './TextVisualizer';\nimport { TreeVisualizer } from './TreeVisualizer';\nimport {\n matchRoutes,\n useLocation,\n useNavigate,\n useParams,\n useRoutes,\n} from 'react-router-dom';\n\nexport function AppVisualizerPage() {\n const appTreeApi = useApi(appTreeApiRef);\n const { tree } = appTreeApi.getTree();\n\n const tabs = useMemo(\n () => [\n {\n id: 'tree',\n path: 'tree',\n label: 'Tree',\n element: <TreeVisualizer tree={tree} />,\n },\n {\n id: 'detailed',\n path: 'detailed',\n label: 'Detailed',\n element: <DetailedVisualizer tree={tree} />,\n },\n {\n id: 'text',\n path: 'text',\n label: 'Text',\n element: <TextVisualizer tree={tree} />,\n },\n ],\n [tree],\n );\n\n const location = useLocation();\n const element = useRoutes(tabs, location);\n\n const currentPath = `/${useParams()['*']}`;\n const [matchedRoute] = matchRoutes(tabs, currentPath) ?? [];\n\n const currentTabIndex = matchedRoute\n ? tabs.findIndex(t => t.path === matchedRoute.route.path)\n : 0;\n\n const navigate = useNavigate();\n const handleTabChange = useCallback(\n (index: number) => {\n navigate(tabs[index].id);\n },\n [navigate, tabs],\n );\n\n useEffect(() => {\n if (!element) {\n navigate(tabs[0].path);\n }\n }, [element, navigate, tabs]);\n\n return (\n <Page themeId=\"tool\">\n <Header title=\"App Visualizer\" />\n <Content noPadding stretch>\n <Box display=\"flex\" flexDirection=\"column\" height=\"100%\">\n <HeaderTabs\n tabs={tabs}\n selectedIndex={currentTabIndex}\n onChange={handleTabChange}\n />\n {element}\n </Box>\n </Content>\n </Page>\n );\n}\n"],"names":["getOutputColor","useStyles"],"mappings":";;;;;;;;;;;;;;;;AAsCA,SAAS,0BAAA,CACP,UACA,eACA,EA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,IAAI,CAAC,CAAA,CAAA;AAE5B,EACE,uBAAA,KAAA,CAAA,aAAA,CAAC,QAAK,OAAQ,EAAA,MAAA,EAAA,sCACX,MAAO,EAAA,EAAA,KAAA,EAAM,gBAAiB,EAAA,CAAA,kBAC9B,KAAA,CAAA,aAAA,CAAA,OAAA,EAAA,EAAQ,WAAS,IAAC,EAAA,OAAA,EAAO,wBACvB,KAAA,CAAA,aAAA,CAAA,GAAA,EAAA,EAAI,SAAQ,MAAO,EAAA,aAAA,EAAc,QAAS,EAAA,MAAA,EAAO,MAChD,EAAA,kBAAA,KAAA,CAAA,aAAA;AAAA,IAAC,UAAA;AAAA,IAAA;AAAA,MACC,IAAA;AAAA,MACA,aAAe,EAAA,eAAA;AAAA,MACf,QAAU,EAAA,eAAA;AAAA,KAAA;AAAA,GACZ,EACC,OACH,CACF,CACF,CAAA,CAAA;AAEJ;;;;"}
@@ -0,0 +1,6 @@
1
+ import * as _backstage_frontend_plugin_api from '@backstage/frontend-plugin-api';
2
+
3
+ /** @public */
4
+ declare const visualizerPlugin: _backstage_frontend_plugin_api.BackstagePlugin<{}, {}>;
5
+
6
+ export { visualizerPlugin as default };
@@ -0,0 +1,22 @@
1
+ import { createRouteRef, createPageExtension, createNavItemExtension, createPlugin } from '@backstage/frontend-plugin-api';
2
+ import VisualizerIcon from '@material-ui/icons/Visibility';
3
+ import React from 'react';
4
+
5
+ const rootRouteRef = createRouteRef();
6
+ const appVisualizerPage = createPageExtension({
7
+ defaultPath: "/visualizer",
8
+ routeRef: rootRouteRef,
9
+ loader: () => import('./esm/index-3edf4d0d.esm.js').then((m) => /* @__PURE__ */ React.createElement(m.AppVisualizerPage, null))
10
+ });
11
+ const appVisualizerNavItem = createNavItemExtension({
12
+ title: "Visualizer",
13
+ icon: VisualizerIcon,
14
+ routeRef: rootRouteRef
15
+ });
16
+ const visualizerPlugin = createPlugin({
17
+ id: "app-visualizer",
18
+ extensions: [appVisualizerPage, appVisualizerNavItem]
19
+ });
20
+
21
+ export { visualizerPlugin as default };
22
+ //# sourceMappingURL=index.esm.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.esm.js","sources":["../src/plugin.tsx"],"sourcesContent":["/*\n * Copyright 2023 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {\n createNavItemExtension,\n createPageExtension,\n createPlugin,\n createRouteRef,\n} from '@backstage/frontend-plugin-api';\nimport VisualizerIcon from '@material-ui/icons/Visibility';\nimport React from 'react';\n\nconst rootRouteRef = createRouteRef();\n\nconst appVisualizerPage = createPageExtension({\n defaultPath: '/visualizer',\n routeRef: rootRouteRef,\n loader: () =>\n import('./components/AppVisualizerPage').then(m => <m.AppVisualizerPage />),\n});\n\nexport const appVisualizerNavItem = createNavItemExtension({\n title: 'Visualizer',\n icon: VisualizerIcon,\n routeRef: rootRouteRef,\n});\n\n/** @public */\nexport const visualizerPlugin = createPlugin({\n id: 'app-visualizer',\n extensions: [appVisualizerPage, appVisualizerNavItem],\n});\n"],"names":[],"mappings":";;;;AAyBA,MAAM,eAAe,cAAe,EAAA,CAAA;AAEpC,MAAM,oBAAoB,mBAAoB,CAAA;AAAA,EAC5C,WAAa,EAAA,aAAA;AAAA,EACb,QAAU,EAAA,YAAA;AAAA,EACV,MAAA,EAAQ,MACN,OAAO,6BAAgC,CAAA,CAAE,IAAK,CAAA,CAAA,CAAA,qBAAM,KAAA,CAAA,aAAA,CAAA,CAAA,CAAE,iBAAF,EAAA,IAAoB,CAAE,CAAA;AAC9E,CAAC,CAAA,CAAA;AAEM,MAAM,uBAAuB,sBAAuB,CAAA;AAAA,EACzD,KAAO,EAAA,YAAA;AAAA,EACP,IAAM,EAAA,cAAA;AAAA,EACN,QAAU,EAAA,YAAA;AACZ,CAAC,CAAA,CAAA;AAGM,MAAM,mBAAmB,YAAa,CAAA;AAAA,EAC3C,EAAI,EAAA,gBAAA;AAAA,EACJ,UAAA,EAAY,CAAC,iBAAA,EAAmB,oBAAoB,CAAA;AACtD,CAAC;;;;"}
package/package.json ADDED
@@ -0,0 +1,44 @@
1
+ {
2
+ "name": "@backstage/plugin-app-visualizer",
3
+ "description": "Visualizes the Backstage app structure",
4
+ "version": "0.0.0-nightly-20240113021535",
5
+ "publishConfig": {
6
+ "access": "public"
7
+ },
8
+ "backstage": {
9
+ "role": "frontend-plugin"
10
+ },
11
+ "license": "Apache-2.0",
12
+ "main": "./dist/index.esm.js",
13
+ "types": "./dist/index.d.ts",
14
+ "sideEffects": false,
15
+ "scripts": {
16
+ "build": "backstage-cli package build",
17
+ "start": "backstage-cli package start",
18
+ "lint": "backstage-cli package lint",
19
+ "test": "backstage-cli package test",
20
+ "prepack": "backstage-cli package prepack",
21
+ "postpack": "backstage-cli package postpack",
22
+ "clean": "backstage-cli package clean"
23
+ },
24
+ "dependencies": {
25
+ "@backstage/core-components": "^0.0.0-nightly-20240113021535",
26
+ "@backstage/core-plugin-api": "^0.0.0-nightly-20240113021535",
27
+ "@backstage/frontend-plugin-api": "^0.0.0-nightly-20240113021535",
28
+ "@material-ui/core": "^4.12.2",
29
+ "@material-ui/icons": "^4.9.1"
30
+ },
31
+ "peerDependencies": {
32
+ "react": "^16.13.1 || ^17.0.0 || ^18.0.0",
33
+ "react-dom": "^16.13.1 || ^17.0.0 || ^18.0.0",
34
+ "react-router-dom": "6.0.0-beta.0 || ^6.3.0"
35
+ },
36
+ "devDependencies": {
37
+ "@backstage/cli": "^0.0.0-nightly-20240113021535",
38
+ "@types/react": "^16.13.1 || ^17.0.0"
39
+ },
40
+ "files": [
41
+ "dist"
42
+ ],
43
+ "module": "./dist/index.esm.js"
44
+ }