@backstage-community/plugin-explore 0.17.0 → 1.0.0
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 +28 -0
- package/dist/alpha.d.ts +31 -31
- package/dist/alpha.esm.js +12 -16
- package/dist/alpha.esm.js.map +1 -1
- package/dist/api/ExploreApi.esm.js.map +1 -1
- package/dist/api/ExploreClient.esm.js.map +1 -1
- package/dist/components/CatalogKindExploreContent/CatalogKindExploreContent.esm.js +3 -4
- package/dist/components/CatalogKindExploreContent/CatalogKindExploreContent.esm.js.map +1 -1
- package/dist/components/DefaultExplorePage/DefaultExplorePage.esm.js +5 -12
- package/dist/components/DefaultExplorePage/DefaultExplorePage.esm.js.map +1 -1
- package/dist/components/DomainCard/DomainCard.esm.js +6 -11
- package/dist/components/DomainCard/DomainCard.esm.js.map +1 -1
- package/dist/components/DomainExplorerContent/DomainExplorerContent.esm.js +3 -4
- package/dist/components/DomainExplorerContent/DomainExplorerContent.esm.js.map +1 -1
- package/dist/components/DomainExplorerContent/index.esm.js +5 -1
- package/dist/components/DomainExplorerContent/index.esm.js.map +1 -1
- package/dist/components/EntityCard/EntityCard.esm.js +14 -13
- package/dist/components/EntityCard/EntityCard.esm.js.map +1 -1
- package/dist/components/ExploreLayout/ExploreLayout.esm.js +46 -14
- package/dist/components/ExploreLayout/ExploreLayout.esm.js.map +1 -1
- package/dist/components/ExplorePage/ExplorePage.esm.js.map +1 -1
- package/dist/components/ExplorePage/index.esm.js +5 -1
- package/dist/components/ExplorePage/index.esm.js.map +1 -1
- package/dist/components/GroupsExplorerContent/GroupsDiagram.esm.js +17 -79
- package/dist/components/GroupsExplorerContent/GroupsDiagram.esm.js.map +1 -1
- package/dist/components/GroupsExplorerContent/GroupsDiagram.module.css.esm.js +8 -0
- package/dist/components/GroupsExplorerContent/GroupsDiagram.module.css.esm.js.map +1 -0
- package/dist/components/GroupsExplorerContent/GroupsExplorerContent.esm.js +2 -13
- package/dist/components/GroupsExplorerContent/GroupsExplorerContent.esm.js.map +1 -1
- package/dist/components/GroupsExplorerContent/GroupsExplorerContent.module.css.esm.js +8 -0
- package/dist/components/GroupsExplorerContent/GroupsExplorerContent.module.css.esm.js.map +1 -0
- package/dist/components/GroupsExplorerContent/index.esm.js +5 -1
- package/dist/components/GroupsExplorerContent/index.esm.js.map +1 -1
- package/dist/components/ToolCard/ToolCard.esm.js +18 -60
- package/dist/components/ToolCard/ToolCard.esm.js.map +1 -1
- package/dist/components/ToolCard/ToolCard.module.css.esm.js +8 -0
- package/dist/components/ToolCard/ToolCard.module.css.esm.js.map +1 -0
- package/dist/components/ToolExplorerContent/ToolExplorerContent.esm.js.map +1 -1
- package/dist/components/ToolExplorerContent/index.esm.js +5 -1
- package/dist/components/ToolExplorerContent/index.esm.js.map +1 -1
- package/dist/components/ToolSearchResultListItem/ToolSearchResultListItem.esm.js +25 -47
- package/dist/components/ToolSearchResultListItem/ToolSearchResultListItem.esm.js.map +1 -1
- package/dist/components/ToolSearchResultListItem/ToolSearchResultListItem.module.css.esm.js +8 -0
- package/dist/components/ToolSearchResultListItem/ToolSearchResultListItem.module.css.esm.js.map +1 -0
- package/dist/components/ToolSearchResultListItem/index.esm.js +5 -1
- package/dist/components/ToolSearchResultListItem/index.esm.js.map +1 -1
- package/dist/extensions.esm.js.map +1 -1
- package/dist/index.d.ts +26 -21
- package/dist/node_modules_dist/style-inject/dist/style-inject.es.esm.js +29 -0
- package/dist/node_modules_dist/style-inject/dist/style-inject.es.esm.js.map +1 -0
- package/dist/plugin.esm.js +2 -2
- package/dist/plugin.esm.js.map +1 -1
- package/dist/routes.esm.js.map +1 -1
- package/package.json +22 -21
|
@@ -1,13 +1,23 @@
|
|
|
1
|
-
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
|
|
2
|
+
import { attachComponentData, useRouteRef, useElementFilter } from '@backstage/core-plugin-api';
|
|
3
|
+
import { PluginHeader } from '@backstage/ui';
|
|
4
|
+
import { useMemo } from 'react';
|
|
5
|
+
import { useRoutes } from 'react-router-dom';
|
|
6
|
+
import { exploreRouteRef } from '../../routes.esm.js';
|
|
4
7
|
|
|
5
8
|
const dataKey = "plugin.explore.exploreLayoutRoute";
|
|
6
|
-
const
|
|
7
|
-
attachComponentData(
|
|
8
|
-
attachComponentData(
|
|
9
|
+
const RouteData = () => null;
|
|
10
|
+
attachComponentData(RouteData, dataKey, true);
|
|
11
|
+
attachComponentData(RouteData, "core.gatherMountPoints", true);
|
|
12
|
+
const stripLeadingSlash = (path) => path.replace(/^\/+/, "");
|
|
13
|
+
const joinPaths = (base, sub) => {
|
|
14
|
+
const trimmedBase = base.replace(/\/+$/, "");
|
|
15
|
+
const trimmedSub = stripLeadingSlash(sub);
|
|
16
|
+
return trimmedSub ? `${trimmedBase}/${trimmedSub}` : trimmedBase;
|
|
17
|
+
};
|
|
9
18
|
const ExploreLayout = (props) => {
|
|
10
|
-
const { title,
|
|
19
|
+
const { title, children } = props;
|
|
20
|
+
const exploreRoutePath = useRouteRef(exploreRouteRef);
|
|
11
21
|
const routes = useElementFilter(
|
|
12
22
|
children,
|
|
13
23
|
(elements) => elements.selectByComponentData({
|
|
@@ -15,18 +25,40 @@ const ExploreLayout = (props) => {
|
|
|
15
25
|
withStrictError: "Child of ExploreLayout must be an ExploreLayout.Route"
|
|
16
26
|
}).getElements().map((child) => child.props)
|
|
17
27
|
);
|
|
18
|
-
|
|
28
|
+
const basePath = exploreRoutePath ? exploreRoutePath() : "";
|
|
29
|
+
const tabs = useMemo(
|
|
30
|
+
() => routes.map((route) => ({
|
|
31
|
+
id: route.path,
|
|
32
|
+
label: route.title,
|
|
33
|
+
href: joinPaths(basePath, route.path),
|
|
34
|
+
matchStrategy: "prefix"
|
|
35
|
+
})),
|
|
36
|
+
[routes, basePath]
|
|
37
|
+
);
|
|
38
|
+
const element = useRoutes(
|
|
39
|
+
routes.map((route) => ({
|
|
40
|
+
path: `${stripLeadingSlash(route.path)}/*`,
|
|
41
|
+
element: route.children
|
|
42
|
+
}))
|
|
43
|
+
);
|
|
44
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
45
|
+
/* @__PURE__ */ jsx(PluginHeader, { title: title ?? "Explore our ecosystem", tabs }),
|
|
19
46
|
/* @__PURE__ */ jsx(
|
|
20
|
-
|
|
47
|
+
"div",
|
|
21
48
|
{
|
|
22
|
-
|
|
23
|
-
|
|
49
|
+
style: {
|
|
50
|
+
padding: "var(--bui-space-6)",
|
|
51
|
+
height: "100%",
|
|
52
|
+
minHeight: 0,
|
|
53
|
+
display: "flex",
|
|
54
|
+
flexDirection: "column"
|
|
55
|
+
},
|
|
56
|
+
children: element ?? routes[0]?.children ?? null
|
|
24
57
|
}
|
|
25
|
-
)
|
|
26
|
-
/* @__PURE__ */ jsx(RoutedTabs, { routes })
|
|
58
|
+
)
|
|
27
59
|
] });
|
|
28
60
|
};
|
|
29
|
-
ExploreLayout.Route =
|
|
61
|
+
ExploreLayout.Route = RouteData;
|
|
30
62
|
|
|
31
63
|
export { ExploreLayout };
|
|
32
64
|
//# sourceMappingURL=ExploreLayout.esm.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ExploreLayout.esm.js","sources":["../../../src/components/ExploreLayout/ExploreLayout.tsx"],"sourcesContent":["/*\n * Copyright 2020 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 {
|
|
1
|
+
{"version":3,"file":"ExploreLayout.esm.js","sources":["../../../src/components/ExploreLayout/ExploreLayout.tsx"],"sourcesContent":["/*\n * Copyright 2020 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 attachComponentData,\n useElementFilter,\n useRouteRef,\n} from '@backstage/core-plugin-api';\nimport { HeaderTab, PluginHeader } from '@backstage/ui';\nimport React, { useMemo } from 'react';\nimport { useRoutes } from 'react-router-dom';\nimport { exploreRouteRef } from '../../routes';\n\n// TODO: This layout could be a shared based component if it was possible to create custom TabbedLayouts\n// A generalized version of createSubRoutesFromChildren, etc. would be required\n/** @public */\nexport type SubRoute = {\n path: string;\n title: string;\n children: JSX.Element;\n /**\n * @deprecated The Backstage UI `PluginHeader` does not forward extra MUI tab\n * props. This field is kept for backwards compatibility but is no longer\n * used.\n */\n tabProps?: Record<string, unknown>;\n};\n\nconst dataKey = 'plugin.explore.exploreLayoutRoute';\n\nconst RouteData: (props: SubRoute) => null = () => null;\nattachComponentData(RouteData, dataKey, true);\n\n// This causes all mount points that are discovered within this route to use the path of the route itself\nattachComponentData(RouteData, 'core.gatherMountPoints', true);\n\n/** @public */\nexport type ExploreLayoutProps = {\n title?: string;\n /**\n * @deprecated The Backstage UI `PluginHeader` does not render a subtitle.\n * This prop is kept for backwards compatibility but is no longer displayed.\n */\n subtitle?: string;\n children?: React.ReactNode;\n};\n\nconst stripLeadingSlash = (path: string) => path.replace(/^\\/+/, '');\n\nconst joinPaths = (base: string, sub: string) => {\n const trimmedBase = base.replace(/\\/+$/, '');\n const trimmedSub = stripLeadingSlash(sub);\n return trimmedSub ? `${trimmedBase}/${trimmedSub}` : trimmedBase;\n};\n\n/**\n * Explore is a compound component, which allows you to define a custom layout\n *\n * @example\n * ```jsx\n * <ExploreLayout title=\"Explore ACME's ecosystem\">\n * <ExploreLayout.Route path=\"/example\" title=\"Example tab\">\n * <div>This is rendered under /example/anything-here route</div>\n * </ExploreLayout.Route>\n * </ExploreLayout>\n * ```\n *\n * @public\n */\nexport const ExploreLayout = (props: ExploreLayoutProps) => {\n const { title, children } = props;\n\n const exploreRoutePath = useRouteRef(exploreRouteRef);\n\n const routes = useElementFilter(children, elements =>\n elements\n .selectByComponentData({\n key: dataKey,\n withStrictError:\n 'Child of ExploreLayout must be an ExploreLayout.Route',\n })\n .getElements<SubRoute>()\n .map(child => child.props),\n );\n\n const basePath = exploreRoutePath ? exploreRoutePath() : '';\n\n const tabs = useMemo<HeaderTab[]>(\n () =>\n routes.map(route => ({\n id: route.path,\n label: route.title,\n href: joinPaths(basePath, route.path),\n matchStrategy: 'prefix',\n })),\n [routes, basePath],\n );\n\n // Render the matching sub-route's content inline, falling back to the first\n // tab's content if no sub-path is present (matching the legacy RoutedTabs\n // behavior). We intentionally don't redirect, so the layout still works when\n // it is mounted at the root path.\n const element = useRoutes(\n routes.map(route => ({\n path: `${stripLeadingSlash(route.path)}/*`,\n element: route.children,\n })),\n );\n\n return (\n <>\n <PluginHeader title={title ?? 'Explore our ecosystem'} tabs={tabs} />\n <div\n style={{\n padding: 'var(--bui-space-6)',\n height: '100%',\n minHeight: 0,\n display: 'flex',\n flexDirection: 'column',\n }}\n >\n {element ?? routes[0]?.children ?? null}\n </div>\n </>\n );\n};\n\nExploreLayout.Route = RouteData;\n"],"names":[],"mappings":";;;;;;;AAyCA,MAAM,OAAA,GAAU,mCAAA;AAEhB,MAAM,YAAuC,MAAM,IAAA;AACnD,mBAAA,CAAoB,SAAA,EAAW,SAAS,IAAI,CAAA;AAG5C,mBAAA,CAAoB,SAAA,EAAW,0BAA0B,IAAI,CAAA;AAa7D,MAAM,oBAAoB,CAAC,IAAA,KAAiB,IAAA,CAAK,OAAA,CAAQ,QAAQ,E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G,iBAAA,CAAkB,KAAA,CAAM,IAAI,CAAC,CAAA,EAAA,CAAA;AAAA,MACtC,SAAS,KAAA,CAAM;AAAA,KACjB,CAAE;AAAA,GACJ;AAEA,EAAA,uBACE,IAAA,CAAA,QAAA,EAAA,EACE,QAAA,EAAA;AAAA,oBAAA,GAAA,CAAC,YAAA,EAAA,EAAa,KAAA,EAAO,KAAA,IAAS,uBAAA,EAAyB,IAAA,EAAY,CAAA;AAAA,oBACnE,GAAA;AAAA,MAAC,KAAA;AAAA,MAAA;AAAA,QACC,KAAA,EAAO;AAAA,UACL,OAAA,EAAS,oBAAA;AAAA,UACT,MAAA,EAAQ,MAAA;AAAA,UACR,SAAA,EAAW,CAAA;AAAA,UACX,OAAA,EAAS,MAAA;AAAA,UACT,aAAA,EAAe;AAAA,SACjB;AAAA,QAEC,QAAA,EAAA,OAAA,IAAW,MAAA,CAAO,CAAC,CAAA,EAAG,QAAA,IAAY;AAAA;AAAA;AACrC,GAAA,EACF,CAAA;AAEJ;AAEA,aAAA,CAAc,KAAA,GAAQ,SAAA;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ExplorePage.esm.js","sources":["../../../src/components/ExplorePage/ExplorePage.tsx"],"sourcesContent":["/*\n * Copyright 2021 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 { useOutlet } from 'react-router-dom';\nimport { DefaultExplorePage } from '../DefaultExplorePage';\n\nexport const ExplorePage = () => {\n const outlet = useOutlet();\n\n return <>{outlet || <DefaultExplorePage />}</>;\n};\n"],"names":[],"mappings":";;;;AAmBO,MAAM,cAAc,MAAM;AAC/B,EAAA,MAAM,SAAS,
|
|
1
|
+
{"version":3,"file":"ExplorePage.esm.js","sources":["../../../src/components/ExplorePage/ExplorePage.tsx"],"sourcesContent":["/*\n * Copyright 2021 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 { useOutlet } from 'react-router-dom';\nimport { DefaultExplorePage } from '../DefaultExplorePage';\n\nexport const ExplorePage = () => {\n const outlet = useOutlet();\n\n return <>{outlet || <DefaultExplorePage />}</>;\n};\n"],"names":[],"mappings":";;;;AAmBO,MAAM,cAAc,MAAM;AAC/B,EAAA,MAAM,SAAS,SAAA,EAAU;AAEzB,EAAA,uBAAO,GAAA,CAAA,QAAA,EAAA,EAAG,QAAA,EAAA,MAAA,oBAAU,GAAA,CAAC,kBAAA,EAAA,EAAmB,CAAA,EAAG,CAAA;AAC7C;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"index.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
|
|
@@ -3,74 +3,15 @@ import { stringifyEntityRef, RELATION_CHILD_OF, parseEntityRef } from '@backstag
|
|
|
3
3
|
import { Progress, ResponseErrorPanel, DependencyGraph, DependencyGraphTypes, Link } from '@backstage/core-components';
|
|
4
4
|
import { useApi, configApiRef, useRouteRef } from '@backstage/core-plugin-api';
|
|
5
5
|
import { catalogApiRef, getEntityRelations, entityRouteRef, EntityDisplayName } from '@backstage/plugin-catalog-react';
|
|
6
|
-
import
|
|
7
|
-
import {
|
|
8
|
-
import ZoomOutMap from '@material-ui/icons/ZoomOutMap';
|
|
6
|
+
import { Text } from '@backstage/ui';
|
|
7
|
+
import { RiFullscreenLine } from '@remixicon/react';
|
|
9
8
|
import classNames from 'classnames';
|
|
10
9
|
import useAsync from 'react-use/esm/useAsync';
|
|
10
|
+
import styles from './GroupsDiagram.module.css.esm.js';
|
|
11
11
|
|
|
12
|
-
const useStyles = makeStyles(
|
|
13
|
-
(theme) => ({
|
|
14
|
-
graph: {
|
|
15
|
-
minHeight: "100%",
|
|
16
|
-
maxHeight: "1200px",
|
|
17
|
-
flex: 1
|
|
18
|
-
},
|
|
19
|
-
graphWrapper: {
|
|
20
|
-
display: "flex",
|
|
21
|
-
height: "100%"
|
|
22
|
-
},
|
|
23
|
-
organizationNode: {
|
|
24
|
-
fill: theme.palette.secondary.light,
|
|
25
|
-
stroke: theme.palette.secondary.light
|
|
26
|
-
},
|
|
27
|
-
groupNode: {
|
|
28
|
-
fill: theme.palette.primary.light,
|
|
29
|
-
stroke: theme.palette.primary.light
|
|
30
|
-
},
|
|
31
|
-
centeredContent: {
|
|
32
|
-
padding: theme.spacing(1),
|
|
33
|
-
height: "100%",
|
|
34
|
-
display: "flex",
|
|
35
|
-
alignItems: "center",
|
|
36
|
-
justifyContent: "center",
|
|
37
|
-
color: theme.palette.common.black
|
|
38
|
-
},
|
|
39
|
-
legend: {
|
|
40
|
-
position: "absolute",
|
|
41
|
-
bottom: 0,
|
|
42
|
-
right: 0,
|
|
43
|
-
padding: theme.spacing(1),
|
|
44
|
-
"& .icon": {
|
|
45
|
-
verticalAlign: "bottom"
|
|
46
|
-
}
|
|
47
|
-
},
|
|
48
|
-
textOrganization: {
|
|
49
|
-
color: theme.palette.secondary.contrastText
|
|
50
|
-
},
|
|
51
|
-
textGroup: {
|
|
52
|
-
color: theme.palette.primary.contrastText
|
|
53
|
-
},
|
|
54
|
-
textWrapper: {
|
|
55
|
-
display: "-webkit-box",
|
|
56
|
-
WebkitBoxOrient: "vertical",
|
|
57
|
-
WebkitLineClamp: 2,
|
|
58
|
-
overflow: "hidden",
|
|
59
|
-
textOverflow: "ellipsis",
|
|
60
|
-
textAlign: "center",
|
|
61
|
-
fontWeight: "bold",
|
|
62
|
-
fontSize: "20px"
|
|
63
|
-
}
|
|
64
|
-
}),
|
|
65
|
-
{
|
|
66
|
-
name: "ExploreGroupsDiagram"
|
|
67
|
-
}
|
|
68
|
-
);
|
|
69
12
|
function RenderNode(props) {
|
|
70
13
|
const nodeWidth = 180;
|
|
71
14
|
const nodeHeight = 60;
|
|
72
|
-
const theme = useTheme();
|
|
73
|
-
const classes = useStyles();
|
|
74
15
|
const catalogEntityRoute = useRouteRef(entityRouteRef);
|
|
75
16
|
if (props.node.id === "root") {
|
|
76
17
|
return /* @__PURE__ */ jsxs("g", { children: [
|
|
@@ -79,17 +20,16 @@ function RenderNode(props) {
|
|
|
79
20
|
{
|
|
80
21
|
width: nodeWidth,
|
|
81
22
|
height: nodeHeight,
|
|
82
|
-
|
|
83
|
-
className: classes.organizationNode
|
|
23
|
+
className: styles.organizationNode
|
|
84
24
|
}
|
|
85
25
|
),
|
|
86
26
|
/* @__PURE__ */ jsx("title", { children: props.node.name }),
|
|
87
|
-
/* @__PURE__ */ jsx("foreignObject", { width: nodeWidth, height: nodeHeight, children: /* @__PURE__ */ jsx("div", { className:
|
|
27
|
+
/* @__PURE__ */ jsx("foreignObject", { width: nodeWidth, height: nodeHeight, children: /* @__PURE__ */ jsx("div", { className: styles.centeredContent, children: /* @__PURE__ */ jsx(
|
|
88
28
|
"div",
|
|
89
29
|
{
|
|
90
30
|
className: classNames(
|
|
91
|
-
|
|
92
|
-
|
|
31
|
+
styles.textWrapper,
|
|
32
|
+
styles.textOrganization
|
|
93
33
|
),
|
|
94
34
|
children: props.node.name
|
|
95
35
|
}
|
|
@@ -103,8 +43,7 @@ function RenderNode(props) {
|
|
|
103
43
|
{
|
|
104
44
|
width: nodeWidth,
|
|
105
45
|
height: nodeHeight,
|
|
106
|
-
|
|
107
|
-
className: classes.groupNode
|
|
46
|
+
className: styles.groupNode
|
|
108
47
|
}
|
|
109
48
|
),
|
|
110
49
|
/* @__PURE__ */ jsx("title", { children: /* @__PURE__ */ jsx(EntityDisplayName, { entityRef: props.node.id, hideIcon: true, disableTooltip: true }) }),
|
|
@@ -116,7 +55,7 @@ function RenderNode(props) {
|
|
|
116
55
|
namespace: ref.namespace,
|
|
117
56
|
name: ref.name
|
|
118
57
|
}),
|
|
119
|
-
children: /* @__PURE__ */ jsx("foreignObject", { width: nodeWidth, height: nodeHeight, children: /* @__PURE__ */ jsx("div", { className:
|
|
58
|
+
children: /* @__PURE__ */ jsx("foreignObject", { width: nodeWidth, height: nodeHeight, children: /* @__PURE__ */ jsx("div", { className: styles.centeredContent, children: /* @__PURE__ */ jsx("div", { className: classNames(styles.textWrapper, styles.textGroup), children: /* @__PURE__ */ jsx(EntityDisplayName, { entityRef: props.node.id, hideIcon: true }) }) }) })
|
|
120
59
|
}
|
|
121
60
|
)
|
|
122
61
|
] });
|
|
@@ -124,7 +63,6 @@ function RenderNode(props) {
|
|
|
124
63
|
function GroupsDiagram(props) {
|
|
125
64
|
const nodes = new Array();
|
|
126
65
|
const edges = new Array();
|
|
127
|
-
const classes = useStyles();
|
|
128
66
|
const configApi = useApi(configApiRef);
|
|
129
67
|
const catalogApi = useApi(catalogApiRef);
|
|
130
68
|
const organizationName = configApi.getOptionalString("organization.name") ?? "Backstage";
|
|
@@ -176,7 +114,7 @@ function GroupsDiagram(props) {
|
|
|
176
114
|
});
|
|
177
115
|
});
|
|
178
116
|
}
|
|
179
|
-
return /* @__PURE__ */ jsxs("div", { className:
|
|
117
|
+
return /* @__PURE__ */ jsxs("div", { className: styles.graphWrapper, children: [
|
|
180
118
|
/* @__PURE__ */ jsx(
|
|
181
119
|
DependencyGraph,
|
|
182
120
|
{
|
|
@@ -185,19 +123,19 @@ function GroupsDiagram(props) {
|
|
|
185
123
|
nodeMargin: 10,
|
|
186
124
|
direction: props.direction || DependencyGraphTypes.Direction.RIGHT_LEFT,
|
|
187
125
|
renderNode: RenderNode,
|
|
188
|
-
className:
|
|
126
|
+
className: styles.graph,
|
|
189
127
|
fit: "contain"
|
|
190
128
|
}
|
|
191
129
|
),
|
|
192
130
|
/* @__PURE__ */ jsxs(
|
|
193
|
-
|
|
131
|
+
Text,
|
|
194
132
|
{
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
className:
|
|
133
|
+
as: "small",
|
|
134
|
+
variant: "body-small",
|
|
135
|
+
color: "secondary",
|
|
136
|
+
className: styles.legend,
|
|
199
137
|
children: [
|
|
200
|
-
/* @__PURE__ */ jsx(
|
|
138
|
+
/* @__PURE__ */ jsx(RiFullscreenLine, { size: 16, className: styles.legendIcon }),
|
|
201
139
|
" Use pinch & zoom to move around the diagram."
|
|
202
140
|
]
|
|
203
141
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GroupsDiagram.esm.js","sources":["../../../src/components/GroupsExplorerContent/GroupsDiagram.tsx"],"sourcesContent":["/*\n * Copyright 2021 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 parseEntityRef,\n RELATION_CHILD_OF,\n stringifyEntityRef,\n} from '@backstage/catalog-model';\nimport {\n DependencyGraph,\n DependencyGraphTypes,\n Link,\n Progress,\n ResponseErrorPanel,\n} from '@backstage/core-components';\nimport { configApiRef, useApi, useRouteRef } from '@backstage/core-plugin-api';\nimport {\n catalogApiRef,\n entityRouteRef,\n getEntityRelations,\n EntityDisplayName,\n} from '@backstage/plugin-catalog-react';\nimport Typography from '@material-ui/core/Typography';\nimport { makeStyles, useTheme } from '@material-ui/core/styles';\nimport ZoomOutMap from '@material-ui/icons/ZoomOutMap';\nimport classNames from 'classnames';\nimport useAsync from 'react-use/esm/useAsync';\nimport { EntityFilterQuery } from '@backstage/catalog-client';\n\nconst useStyles = makeStyles(\n theme => ({\n graph: {\n minHeight: '100%',\n maxHeight: '1200px',\n flex: 1,\n },\n graphWrapper: {\n display: 'flex',\n height: '100%',\n },\n organizationNode: {\n fill: theme.palette.secondary.light,\n stroke: theme.palette.secondary.light,\n },\n groupNode: {\n fill: theme.palette.primary.light,\n stroke: theme.palette.primary.light,\n },\n centeredContent: {\n padding: theme.spacing(1),\n height: '100%',\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'center',\n color: theme.palette.common.black,\n },\n legend: {\n position: 'absolute',\n bottom: 0,\n right: 0,\n padding: theme.spacing(1),\n '& .icon': {\n verticalAlign: 'bottom',\n },\n },\n textOrganization: {\n color: theme.palette.secondary.contrastText,\n },\n textGroup: {\n color: theme.palette.primary.contrastText,\n },\n textWrapper: {\n display: '-webkit-box',\n WebkitBoxOrient: 'vertical',\n WebkitLineClamp: 2,\n overflow: 'hidden',\n textOverflow: 'ellipsis',\n textAlign: 'center',\n fontWeight: 'bold',\n fontSize: '20px',\n },\n }),\n {\n name: 'ExploreGroupsDiagram',\n },\n);\n\nfunction RenderNode(props: DependencyGraphTypes.RenderNodeProps<any>) {\n const nodeWidth = 180;\n const nodeHeight = 60;\n const theme = useTheme();\n const classes = useStyles();\n const catalogEntityRoute = useRouteRef(entityRouteRef);\n\n if (props.node.id === 'root') {\n return (\n <g>\n <rect\n width={nodeWidth}\n height={nodeHeight}\n rx={theme.shape.borderRadius}\n className={classes.organizationNode}\n />\n <title>{props.node.name}</title>\n <foreignObject width={nodeWidth} height={nodeHeight}>\n <div className={classes.centeredContent}>\n <div\n className={classNames(\n classes.textWrapper,\n classes.textOrganization,\n )}\n >\n {props.node.name}\n </div>\n </div>\n </foreignObject>\n </g>\n );\n }\n\n const ref = parseEntityRef(props.node.id);\n\n return (\n <g>\n <rect\n width={nodeWidth}\n height={nodeHeight}\n rx={theme.shape.borderRadius}\n className={classes.groupNode}\n />\n <title>\n <EntityDisplayName entityRef={props.node.id} hideIcon disableTooltip />\n </title>\n\n <Link\n to={catalogEntityRoute({\n kind: ref.kind,\n namespace: ref.namespace,\n name: ref.name,\n })}\n >\n <foreignObject width={nodeWidth} height={nodeHeight}>\n <div className={classes.centeredContent}>\n <div className={classNames(classes.textWrapper, classes.textGroup)}>\n <EntityDisplayName entityRef={props.node.id} hideIcon />\n </div>\n </div>\n </foreignObject>\n </Link>\n </g>\n );\n}\n\n/**\n * Dynamically generates a diagram of groups registered in the catalog.\n */\nexport function GroupsDiagram(props: {\n direction?: DependencyGraphTypes.Direction;\n hideChildren?: boolean;\n namespace?: string;\n}) {\n const nodes = new Array<{\n id: string;\n kind: string;\n name: string;\n }>();\n const edges = new Array<{ from: string; to: string; label: string }>();\n\n const classes = useStyles();\n const configApi = useApi(configApiRef);\n const catalogApi = useApi(catalogApiRef);\n const organizationName =\n configApi.getOptionalString('organization.name') ?? 'Backstage';\n const {\n loading,\n error,\n value: catalogResponse,\n } = useAsync(() => {\n const filter: EntityFilterQuery = { kind: ['Group'] };\n if (props.namespace) {\n filter['metadata.namespace'] = props.namespace;\n }\n return catalogApi.getEntities({ filter });\n }, [catalogApi, props.namespace]);\n\n if (loading) {\n return <Progress />;\n } else if (error) {\n return <ResponseErrorPanel error={error} />;\n }\n\n // the root of this diagram is the organization\n nodes.push({\n id: 'root',\n kind: 'Organization',\n name: organizationName,\n });\n\n for (const catalogItem of catalogResponse?.items || []) {\n const currentItemId = stringifyEntityRef(catalogItem);\n\n // Edge to parent\n const catalogItemRelations_childOf = getEntityRelations(\n catalogItem,\n RELATION_CHILD_OF,\n );\n\n if (props.hideChildren && catalogItemRelations_childOf.length) continue;\n\n nodes.push({\n id: stringifyEntityRef(catalogItem),\n kind: catalogItem.kind,\n name: '',\n });\n\n // if no parent is found, link the node to the root\n if (catalogItemRelations_childOf.length === 0) {\n edges.push({\n from: currentItemId,\n to: 'root',\n label: '',\n });\n }\n\n catalogItemRelations_childOf.forEach(relation => {\n edges.push({\n from: currentItemId,\n to: stringifyEntityRef(relation),\n label: '',\n });\n });\n }\n\n return (\n <div className={classes.graphWrapper}>\n <DependencyGraph\n nodes={nodes}\n edges={edges}\n nodeMargin={10}\n direction={props.direction || DependencyGraphTypes.Direction.RIGHT_LEFT}\n renderNode={RenderNode}\n className={classes.graph}\n fit=\"contain\"\n />\n\n <Typography\n variant=\"caption\"\n color=\"textSecondary\"\n display=\"block\"\n className={classes.legend}\n >\n <ZoomOutMap className=\"icon\" /> Use pinch & zoom to move around the\n diagram.\n </Typography>\n </div>\n );\n}\n"],"names":[],"mappings":";;;;;;;;;;;AA0CA,MAAM,SAAY,GAAA,UAAA;AAAA,EAChB,CAAU,KAAA,MAAA;AAAA,IACR,KAAO,EAAA;AAAA,MACL,SAAW,EAAA,MAAA;AAAA,MACX,SAAW,EAAA,QAAA;AAAA,MACX,IAAM,EAAA;AAAA,KACR;AAAA,IACA,YAAc,EAAA;AAAA,MACZ,OAAS,EAAA,MAAA;AAAA,MACT,MAAQ,EAAA;AAAA,KACV;AAAA,IACA,gBAAkB,EAAA;AAAA,MAChB,IAAA,EAAM,KAAM,CAAA,OAAA,CAAQ,SAAU,CAAA,KAAA;AAAA,MAC9B,MAAA,EAAQ,KAAM,CAAA,OAAA,CAAQ,SAAU,CAAA;AAAA,KAClC;AAAA,IACA,SAAW,EAAA;AAAA,MACT,IAAA,EAAM,KAAM,CAAA,OAAA,CAAQ,OAAQ,CAAA,KAAA;AAAA,MAC5B,MAAA,EAAQ,KAAM,CAAA,OAAA,CAAQ,OAAQ,CAAA;AAAA,KAChC;AAAA,IACA,eAAiB,EAAA;AAAA,MACf,OAAA,EAAS,KAAM,CAAA,OAAA,CAAQ,CAAC,CAAA;AAAA,MACxB,MAAQ,EAAA,MAAA;AAAA,M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,CAAM,IAAK,CAAA;AAAA,QACT,IAAM,EAAA,aAAA;AAAA,QACN,EAAA,EAAI,mBAAmB,QAAQ,CAAA;AAAA,QAC/B,KAAO,EAAA;AAAA,OACR,CAAA;AAAA,KACF,CAAA;AAAA;AAGH,EAAA,uBACG,IAAA,CAAA,KAAA,EAAA,EAAI,SAAW,EAAA,OAAA,CAAQ,YACtB,EAAA,QAAA,EAAA;AAAA,oBAAA,GAAA;AAAA,MAAC,eAAA;AAAA,MAAA;AAAA,QACC,KAAA;AAAA,QACA,KAAA;AAAA,QACA,UAAY,EAAA,EAAA;AAAA,QACZ,SAAW,EAAA,KAAA,CAAM,SAAa,IAAA,oBAAA,CAAqB,SAAU,CAAA,UAAA;AAAA,QAC7D,UAAY,EAAA,UAAA;AAAA,QACZ,WAAW,OAAQ,CAAA,KAAA;AAAA,QACnB,GAAI,EAAA;AAAA;AAAA,KACN;AAAA,oBAEA,IAAA;AAAA,MAAC,UAAA;AAAA,MAAA;AAAA,QACC,OAAQ,EAAA,SAAA;AAAA,QACR,KAAM,EAAA,eAAA;AAAA,QACN,OAAQ,EAAA,OAAA;AAAA,QACR,WAAW,OAAQ,CAAA,MAAA;AAAA,QAEnB,QAAA,EAAA;AAAA,0BAAC,GAAA,CAAA,UAAA,EAAA,EAAW,WAAU,MAAO,EAAA,CAAA;AAAA,UAAE;AAAA;AAAA;AAAA;AAEjC,GACF,EAAA,CAAA;AAEJ;;;;"}
|
|
1
|
+
{"version":3,"file":"GroupsDiagram.esm.js","sources":["../../../src/components/GroupsExplorerContent/GroupsDiagram.tsx"],"sourcesContent":["/*\n * Copyright 2021 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 parseEntityRef,\n RELATION_CHILD_OF,\n stringifyEntityRef,\n} from '@backstage/catalog-model';\nimport {\n DependencyGraph,\n DependencyGraphTypes,\n Link,\n Progress,\n ResponseErrorPanel,\n} from '@backstage/core-components';\nimport { configApiRef, useApi, useRouteRef } from '@backstage/core-plugin-api';\nimport {\n catalogApiRef,\n entityRouteRef,\n getEntityRelations,\n EntityDisplayName,\n} from '@backstage/plugin-catalog-react';\nimport { Text } from '@backstage/ui';\nimport { RiFullscreenLine } from '@remixicon/react';\nimport classNames from 'classnames';\nimport useAsync from 'react-use/esm/useAsync';\nimport { EntityFilterQuery } from '@backstage/catalog-client';\nimport styles from './GroupsDiagram.module.css';\n\nfunction RenderNode(props: DependencyGraphTypes.RenderNodeProps<any>) {\n const nodeWidth = 180;\n const nodeHeight = 60;\n const catalogEntityRoute = useRouteRef(entityRouteRef);\n\n if (props.node.id === 'root') {\n return (\n <g>\n <rect\n width={nodeWidth}\n height={nodeHeight}\n className={styles.organizationNode}\n />\n <title>{props.node.name}</title>\n <foreignObject width={nodeWidth} height={nodeHeight}>\n <div className={styles.centeredContent}>\n <div\n className={classNames(\n styles.textWrapper,\n styles.textOrganization,\n )}\n >\n {props.node.name}\n </div>\n </div>\n </foreignObject>\n </g>\n );\n }\n\n const ref = parseEntityRef(props.node.id);\n\n return (\n <g>\n <rect\n width={nodeWidth}\n height={nodeHeight}\n className={styles.groupNode}\n />\n <title>\n <EntityDisplayName entityRef={props.node.id} hideIcon disableTooltip />\n </title>\n\n <Link\n to={catalogEntityRoute({\n kind: ref.kind,\n namespace: ref.namespace,\n name: ref.name,\n })}\n >\n <foreignObject width={nodeWidth} height={nodeHeight}>\n <div className={styles.centeredContent}>\n <div className={classNames(styles.textWrapper, styles.textGroup)}>\n <EntityDisplayName entityRef={props.node.id} hideIcon />\n </div>\n </div>\n </foreignObject>\n </Link>\n </g>\n );\n}\n\n/**\n * Dynamically generates a diagram of groups registered in the catalog.\n */\nexport function GroupsDiagram(props: {\n direction?: DependencyGraphTypes.Direction;\n hideChildren?: boolean;\n namespace?: string;\n}) {\n const nodes = new Array<{\n id: string;\n kind: string;\n name: string;\n }>();\n const edges = new Array<{ from: string; to: string; label: string }>();\n\n const configApi = useApi(configApiRef);\n const catalogApi = useApi(catalogApiRef);\n const organizationName =\n configApi.getOptionalString('organization.name') ?? 'Backstage';\n const {\n loading,\n error,\n value: catalogResponse,\n } = useAsync(() => {\n const filter: EntityFilterQuery = { kind: ['Group'] };\n if (props.namespace) {\n filter['metadata.namespace'] = props.namespace;\n }\n return catalogApi.getEntities({ filter });\n }, [catalogApi, props.namespace]);\n\n if (loading) {\n return <Progress />;\n } else if (error) {\n return <ResponseErrorPanel error={error} />;\n }\n\n // the root of this diagram is the organization\n nodes.push({\n id: 'root',\n kind: 'Organization',\n name: organizationName,\n });\n\n for (const catalogItem of catalogResponse?.items || []) {\n const currentItemId = stringifyEntityRef(catalogItem);\n\n // Edge to parent\n const catalogItemRelations_childOf = getEntityRelations(\n catalogItem,\n RELATION_CHILD_OF,\n );\n\n if (props.hideChildren && catalogItemRelations_childOf.length) continue;\n\n nodes.push({\n id: stringifyEntityRef(catalogItem),\n kind: catalogItem.kind,\n name: '',\n });\n\n // if no parent is found, link the node to the root\n if (catalogItemRelations_childOf.length === 0) {\n edges.push({\n from: currentItemId,\n to: 'root',\n label: '',\n });\n }\n\n catalogItemRelations_childOf.forEach(relation => {\n edges.push({\n from: currentItemId,\n to: stringifyEntityRef(relation),\n label: '',\n });\n });\n }\n\n return (\n <div className={styles.graphWrapper}>\n <DependencyGraph\n nodes={nodes}\n edges={edges}\n nodeMargin={10}\n direction={props.direction || DependencyGraphTypes.Direction.RIGHT_LEFT}\n renderNode={RenderNode}\n className={styles.graph}\n fit=\"contain\"\n />\n\n <Text\n as=\"small\"\n variant=\"body-small\"\n color=\"secondary\"\n className={styles.legend}\n >\n <RiFullscreenLine size={16} className={styles.legendIcon} /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
2
|
+
|
|
3
|
+
var css_248z = "/*\n * Copyright 2026 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\n.GroupsDiagram_graph__2bc459887c {\n min-height: 100%;\n max-height: 1200px;\n flex: 1;\n}\n\n.GroupsDiagram_graphWrapper__2bc459887c {\n display: flex;\n height: 100%;\n}\n\n.GroupsDiagram_organizationNode__2bc459887c {\n fill: var(--bui-bg-tint);\n stroke: var(--bui-bg-tint);\n rx: var(--bui-radius-2);\n}\n\n.GroupsDiagram_groupNode__2bc459887c {\n fill: var(--bui-bg-solid);\n stroke: var(--bui-bg-solid);\n rx: var(--bui-radius-2);\n}\n\n.GroupsDiagram_centeredContent__2bc459887c {\n padding: var(--bui-space-2);\n height: 100%;\n display: flex;\n align-items: center;\n justify-content: center;\n color: var(--bui-fg-primary);\n}\n\n.GroupsDiagram_legend__2bc459887c {\n position: absolute;\n bottom: 0;\n right: 0;\n padding: var(--bui-space-2);\n color: var(--bui-fg-secondary);\n font-size: var(--bui-font-size-1);\n display: flex;\n align-items: center;\n gap: var(--bui-space-1);\n}\n\n.GroupsDiagram_legendIcon__2bc459887c {\n vertical-align: bottom;\n}\n\n.GroupsDiagram_textOrganization__2bc459887c {\n color: var(--bui-fg-primary);\n}\n\n.GroupsDiagram_textGroup__2bc459887c {\n color: var(--bui-fg-solid-on-bg, #fff);\n}\n\n.GroupsDiagram_textWrapper__2bc459887c {\n display: -webkit-box;\n -webkit-box-orient: vertical;\n -webkit-line-clamp: 2;\n overflow: hidden;\n text-overflow: ellipsis;\n text-align: center;\n font-weight: bold;\n font-size: 20px;\n}\n";
|
|
4
|
+
var styles = {"graph":"GroupsDiagram_graph__2bc459887c","graphWrapper":"GroupsDiagram_graphWrapper__2bc459887c","organizationNode":"GroupsDiagram_organizationNode__2bc459887c","groupNode":"GroupsDiagram_groupNode__2bc459887c","centeredContent":"GroupsDiagram_centeredContent__2bc459887c","legend":"GroupsDiagram_legend__2bc459887c","legendIcon":"GroupsDiagram_legendIcon__2bc459887c","textOrganization":"GroupsDiagram_textOrganization__2bc459887c","textGroup":"GroupsDiagram_textGroup__2bc459887c","textWrapper":"GroupsDiagram_textWrapper__2bc459887c"};
|
|
5
|
+
styleInject(css_248z);
|
|
6
|
+
|
|
7
|
+
export { styles as default };
|
|
8
|
+
//# sourceMappingURL=GroupsDiagram.module.css.esm.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GroupsDiagram.module.css.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;"}
|
|
@@ -1,21 +1,10 @@
|
|
|
1
1
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
2
2
|
import { GroupsDiagram } from './GroupsDiagram.esm.js';
|
|
3
3
|
import { Content, ContentHeader, SupportButton } from '@backstage/core-components';
|
|
4
|
-
import
|
|
4
|
+
import styles from './GroupsExplorerContent.module.css.esm.js';
|
|
5
5
|
|
|
6
|
-
const useStyles = makeStyles(
|
|
7
|
-
{
|
|
8
|
-
root: {
|
|
9
|
-
height: "100%",
|
|
10
|
-
maxHeight: "100%",
|
|
11
|
-
minHeight: 0
|
|
12
|
-
}
|
|
13
|
-
},
|
|
14
|
-
{ name: "ExploreGroupsContent" }
|
|
15
|
-
);
|
|
16
6
|
const GroupsExplorerContent = (props) => {
|
|
17
|
-
|
|
18
|
-
return /* @__PURE__ */ jsxs(Content, { noPadding: true, stretch: true, className: classes.root, children: [
|
|
7
|
+
return /* @__PURE__ */ jsxs(Content, { noPadding: true, stretch: true, className: styles.root, children: [
|
|
19
8
|
/* @__PURE__ */ jsx(ContentHeader, { title: props.title ?? "Groups", children: /* @__PURE__ */ jsx(SupportButton, { children: "Explore your groups." }) }),
|
|
20
9
|
/* @__PURE__ */ jsx(
|
|
21
10
|
GroupsDiagram,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GroupsExplorerContent.esm.js","sources":["../../../src/components/GroupsExplorerContent/GroupsExplorerContent.tsx"],"sourcesContent":["/*\n * Copyright 2021 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 { GroupsDiagram } from './GroupsDiagram';\nimport {\n Content,\n ContentHeader,\n DependencyGraphTypes,\n SupportButton,\n} from '@backstage/core-components';\nimport
|
|
1
|
+
{"version":3,"file":"GroupsExplorerContent.esm.js","sources":["../../../src/components/GroupsExplorerContent/GroupsExplorerContent.tsx"],"sourcesContent":["/*\n * Copyright 2021 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 { GroupsDiagram } from './GroupsDiagram';\nimport {\n Content,\n ContentHeader,\n DependencyGraphTypes,\n SupportButton,\n} from '@backstage/core-components';\nimport styles from './GroupsExplorerContent.module.css';\n\nexport const GroupsExplorerContent = (props: {\n title?: string;\n direction?: DependencyGraphTypes.Direction;\n hideChildren?: boolean;\n namespace?: string;\n}) => {\n return (\n <Content noPadding stretch className={styles.root}>\n <ContentHeader title={props.title ?? 'Groups'}>\n <SupportButton>Explore your groups.</SupportButton>\n </ContentHeader>\n <GroupsDiagram\n direction={props.direction}\n hideChildren={props.hideChildren}\n namespace={props.namespace}\n />\n </Content>\n );\n};\n"],"names":[],"mappings":";;;;;AAyBO,MAAM,qBAAA,GAAwB,CAAC,KAAA,KAKhC;AACJ,EAAA,uBACE,IAAA,CAAC,WAAQ,SAAA,EAAS,IAAA,EAAC,SAAO,IAAA,EAAC,SAAA,EAAW,OAAO,IAAA,EAC3C,QAAA,EAAA;AAAA,oBAAA,GAAA,CAAC,aAAA,EAAA,EAAc,OAAO,KAAA,CAAM,KAAA,IAAS,UACnC,QAAA,kBAAA,GAAA,CAAC,aAAA,EAAA,EAAc,kCAAoB,CAAA,EACrC,CAAA;AAAA,oBACA,GAAA;AAAA,MAAC,aAAA;AAAA,MAAA;AAAA,QACC,WAAW,KAAA,CAAM,SAAA;AAAA,QACjB,cAAc,KAAA,CAAM,YAAA;AAAA,QACpB,WAAW,KAAA,CAAM;AAAA;AAAA;AACnB,GAAA,EACF,CAAA;AAEJ;;;;"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import styleInject from '../../node_modules_dist/style-inject/dist/style-inject.es.esm.js';
|
|
2
|
+
|
|
3
|
+
var css_248z = "/*\n * Copyright 2026 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\n.GroupsExplorerContent_root__86a2e6ff21 {\n height: 100%;\n max-height: 100%;\n min-height: 0;\n}\n";
|
|
4
|
+
var styles = {"root":"GroupsExplorerContent_root__86a2e6ff21"};
|
|
5
|
+
styleInject(css_248z);
|
|
6
|
+
|
|
7
|
+
export { styles as default };
|
|
8
|
+
//# sourceMappingURL=GroupsExplorerContent.module.css.esm.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GroupsExplorerContent.module.css.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"index.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
|
|
@@ -1,76 +1,34 @@
|
|
|
1
1
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
2
|
-
import
|
|
3
|
-
import Card from '@material-ui/core/Card';
|
|
4
|
-
import CardActions from '@material-ui/core/CardActions';
|
|
5
|
-
import CardContent from '@material-ui/core/CardContent';
|
|
6
|
-
import CardMedia from '@material-ui/core/CardMedia';
|
|
7
|
-
import Chip from '@material-ui/core/Chip';
|
|
8
|
-
import Typography from '@material-ui/core/Typography';
|
|
9
|
-
import { makeStyles } from '@material-ui/core/styles';
|
|
10
|
-
import { LinkButton } from '@backstage/core-components';
|
|
2
|
+
import { Card, CardBody, Text, TagGroup, Tag, CardFooter, ButtonLink, Button } from '@backstage/ui';
|
|
11
3
|
import classNames from 'classnames';
|
|
4
|
+
import styles from './ToolCard.module.css.esm.js';
|
|
12
5
|
|
|
13
|
-
const useStyles = makeStyles(
|
|
14
|
-
(theme) => ({
|
|
15
|
-
media: {
|
|
16
|
-
height: 128
|
|
17
|
-
},
|
|
18
|
-
mediaContain: {
|
|
19
|
-
backgroundSize: "contain"
|
|
20
|
-
},
|
|
21
|
-
lifecycle: {
|
|
22
|
-
lineHeight: "0.8em",
|
|
23
|
-
color: theme.palette.common.white
|
|
24
|
-
},
|
|
25
|
-
ga: {
|
|
26
|
-
backgroundColor: theme.palette.status.ok
|
|
27
|
-
},
|
|
28
|
-
alpha: {
|
|
29
|
-
backgroundColor: theme.palette.status.error
|
|
30
|
-
},
|
|
31
|
-
beta: {
|
|
32
|
-
backgroundColor: theme.palette.status.warning
|
|
33
|
-
}
|
|
34
|
-
}),
|
|
35
|
-
{
|
|
36
|
-
name: "ExploreToolCard"
|
|
37
|
-
}
|
|
38
|
-
);
|
|
39
6
|
const ToolCard = ({ card, objectFit }) => {
|
|
40
|
-
const classes = useStyles();
|
|
41
7
|
const { title, description, url, image, lifecycle, tags } = card;
|
|
8
|
+
const showLifecycle = !!lifecycle && lifecycle.toLocaleLowerCase("en-US") !== "ga";
|
|
42
9
|
return /* @__PURE__ */ jsxs(Card, { children: [
|
|
43
10
|
/* @__PURE__ */ jsx(
|
|
44
|
-
|
|
11
|
+
"div",
|
|
45
12
|
{
|
|
46
|
-
|
|
13
|
+
role: "img",
|
|
14
|
+
"aria-label": title,
|
|
47
15
|
title,
|
|
48
|
-
className: classNames(
|
|
49
|
-
[
|
|
50
|
-
})
|
|
16
|
+
className: classNames(styles.media, {
|
|
17
|
+
[styles.mediaContain]: objectFit === "contain"
|
|
18
|
+
}),
|
|
19
|
+
style: { backgroundImage: image ? `url(${image})` : void 0 }
|
|
51
20
|
}
|
|
52
21
|
),
|
|
53
|
-
/* @__PURE__ */ jsxs(
|
|
54
|
-
/* @__PURE__ */ jsxs(
|
|
55
|
-
title,
|
|
56
|
-
|
|
57
|
-
lifecycle && lifecycle.toLocaleLowerCase("en-US") !== "ga" && /* @__PURE__ */ jsx(
|
|
58
|
-
Chip,
|
|
59
|
-
{
|
|
60
|
-
size: "small",
|
|
61
|
-
label: lifecycle,
|
|
62
|
-
className: classNames(
|
|
63
|
-
classes.lifecycle,
|
|
64
|
-
classes[lifecycle.toLocaleLowerCase("en-US")]
|
|
65
|
-
)
|
|
66
|
-
}
|
|
67
|
-
)
|
|
22
|
+
/* @__PURE__ */ jsxs(CardBody, { children: [
|
|
23
|
+
/* @__PURE__ */ jsxs("div", { className: styles.titleRow, children: [
|
|
24
|
+
/* @__PURE__ */ jsx(Text, { as: "h5", variant: "title-medium", weight: "bold", children: title }),
|
|
25
|
+
showLifecycle && /* @__PURE__ */ jsx(TagGroup, { children: /* @__PURE__ */ jsx(Tag, { size: "small", className: styles.lifecycle, children: lifecycle }) })
|
|
68
26
|
] }),
|
|
69
|
-
/* @__PURE__ */ jsx(
|
|
70
|
-
tags && /* @__PURE__ */ jsx(
|
|
27
|
+
/* @__PURE__ */ jsx(Text, { style: { marginTop: "var(--bui-space-2)" }, children: description || "Description missing" }),
|
|
28
|
+
tags && tags.length > 0 && /* @__PURE__ */ jsx(TagGroup, { className: styles.tags, children: tags.map((tag) => /* @__PURE__ */ jsx(Tag, { size: "small", children: tag }, tag)) })
|
|
71
29
|
] }),
|
|
72
|
-
/* @__PURE__ */ jsx(
|
|
73
|
-
] }
|
|
30
|
+
/* @__PURE__ */ jsx(CardFooter, { style: { display: "flex", justifyContent: "flex-end" }, children: url ? /* @__PURE__ */ jsx(ButtonLink, { variant: "primary", href: url, children: "Explore" }) : /* @__PURE__ */ jsx(Button, { variant: "primary", isDisabled: true, children: "Explore" }) })
|
|
31
|
+
] });
|
|
74
32
|
};
|
|
75
33
|
|
|
76
34
|
export { ToolCard };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ToolCard.esm.js","sources":["../../../src/components/ToolCard/ToolCard.tsx"],"sourcesContent":["/*\n * Copyright 2020 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 { ExploreTool } from '@backstage-community/plugin-explore-react';\nimport
|
|
1
|
+
{"version":3,"file":"ToolCard.esm.js","sources":["../../../src/components/ToolCard/ToolCard.tsx"],"sourcesContent":["/*\n * Copyright 2020 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 { ExploreTool } from '@backstage-community/plugin-explore-react';\nimport {\n Button,\n ButtonLink,\n Card,\n CardBody,\n CardFooter,\n Tag,\n TagGroup,\n Text,\n} from '@backstage/ui';\nimport classNames from 'classnames';\nimport styles from './ToolCard.module.css';\n\ntype Props = {\n card: ExploreTool;\n objectFit?: 'cover' | 'contain';\n};\n\nexport const ToolCard = ({ card, objectFit }: Props) => {\n const { title, description, url, image, lifecycle, tags } = card;\n const showLifecycle =\n !!lifecycle && lifecycle.toLocaleLowerCase('en-US') !== 'ga';\n\n return (\n <Card>\n <div\n role=\"img\"\n aria-label={title}\n title={title}\n className={classNames(styles.media, {\n [styles.mediaContain]: objectFit === 'contain',\n })}\n style={{ backgroundImage: image ? `url(${image})` : undefined }}\n />\n <CardBody>\n <div className={styles.titleRow}>\n <Text as=\"h5\" variant=\"title-medium\" weight=\"bold\">\n {title}\n </Text>\n {showLifecycle && (\n <TagGroup>\n <Tag size=\"small\" className={styles.lifecycle}>\n {lifecycle}\n </Tag>\n </TagGroup>\n )}\n </div>\n <Text style={{ marginTop: 'var(--bui-space-2)' }}>\n {description || 'Description missing'}\n </Text>\n {tags && tags.length > 0 && (\n <TagGroup className={styles.tags}>\n {tags.map(tag => (\n <Tag key={tag} size=\"small\">\n {tag}\n </Tag>\n ))}\n </TagGroup>\n )}\n </CardBody>\n <CardFooter style={{ display: 'flex', justifyContent: 'flex-end' }}>\n {url ? (\n <ButtonLink variant=\"primary\" href={url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J,CAAA;AAAA,sBACA,GAAA,CAAC,QAAK,KAAA,EAAO,EAAE,WAAW,oBAAA,EAAqB,EAC5C,yBAAe,qBAAA,EAClB,CAAA;AAAA,MACC,QAAQ,IAAA,CAAK,MAAA,GAAS,qBACrB,GAAA,CAAC,QAAA,EAAA,EAAS,WAAW,MAAA,CAAO,IAAA,EACzB,eAAK,GAAA,CAAI,CAAA,GAAA,yBACP,GAAA,EAAA,EAAc,IAAA,EAAK,SACjB,QAAA,EAAA,GAAA,EAAA,EADO,GAEV,CACD,CAAA,EACH;AAAA,KAAA,EAEJ,CAAA;AAAA,oBACA,GAAA,CAAC,UAAA,EAAA,EAAW,KAAA,EAAO,EAAE,OAAA,EAAS,QAAQ,cAAA,EAAgB,UAAA,EAAW,EAC9D,QAAA,EAAA,GAAA,mBACC,GAAA,CAAC,UAAA,EAAA,EAAW,SAAQ,SAAA,EAAU,IAAA,EAAM,GAAA,EAAK,QAAA,EAAA,SAAA,EAEzC,CAAA,mBAEA,GAAA,CAAC,MAAA,EAAA,EAAO,OAAA,EAAQ,SAAA,EAAU,UAAA,EAAU,IAAA,EAAC,QAAA,EAAA,SAAA,EAErC,CAAA,EAEJ;AAAA,GAAA,EACF,CAAA;AAEJ;;;;"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import styleInject from '../../node_modules_dist/style-inject/dist/style-inject.es.esm.js';
|
|
2
|
+
|
|
3
|
+
var css_248z = "/*\n * Copyright 2026 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\n.ToolCard_media__89a7a109aa {\n height: 128px;\n background-size: cover;\n background-position: center;\n background-repeat: no-repeat;\n}\n\n.ToolCard_mediaContain__89a7a109aa {\n background-size: contain;\n}\n\n.ToolCard_titleRow__89a7a109aa {\n display: flex;\n align-items: center;\n gap: var(--bui-space-2);\n flex-wrap: wrap;\n}\n\n.ToolCard_lifecycle__89a7a109aa {\n text-transform: lowercase;\n}\n\n.ToolCard_tags__89a7a109aa {\n margin-top: var(--bui-space-2);\n}\n";
|
|
4
|
+
var styles = {"media":"ToolCard_media__89a7a109aa","mediaContain":"ToolCard_mediaContain__89a7a109aa","titleRow":"ToolCard_titleRow__89a7a109aa","lifecycle":"ToolCard_lifecycle__89a7a109aa","tags":"ToolCard_tags__89a7a109aa"};
|
|
5
|
+
styleInject(css_248z);
|
|
6
|
+
|
|
7
|
+
export { styles as default };
|
|
8
|
+
//# sourceMappingURL=ToolCard.module.css.esm.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ToolCard.module.css.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ToolExplorerContent.esm.js","sources":["../../../src/components/ToolExplorerContent/ToolExplorerContent.tsx"],"sourcesContent":["/*\n * Copyright 2021 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 useAsync from 'react-use/esm/useAsync';\nimport { ToolCard } from '../ToolCard';\nimport {\n Content,\n ContentHeader,\n EmptyState,\n ItemCardGrid,\n Progress,\n SupportButton,\n WarningPanel,\n} from '@backstage/core-components';\nimport { useApi } from '@backstage/core-plugin-api';\nimport { exploreApiRef } from '../../api';\n\nconst Body = () => {\n const exploreApi = useApi(exploreApiRef);\n\n const {\n value: tools,\n loading,\n error,\n } = useAsync(async () => {\n return (await exploreApi.getTools())?.tools;\n }, [exploreApi]);\n\n if (loading) {\n return <Progress />;\n }\n\n if (error) {\n return <WarningPanel title=\"Failed to load tools\" />;\n }\n\n if (!tools?.length) {\n return (\n <EmptyState\n missing=\"info\"\n title=\"No tools to display\"\n description=\"You haven't added any tools yet.\"\n />\n );\n }\n\n return (\n <ItemCardGrid>\n {tools.map((tool, index) => (\n <ToolCard key={index} card={tool} />\n ))}\n </ItemCardGrid>\n );\n};\n\nexport const ToolExplorerContent = (props: { title?: string }) => (\n <Content noPadding>\n <ContentHeader title={props.title ?? 'Tools'}>\n <SupportButton>Discover the tools in your ecosystem.</SupportButton>\n </ContentHeader>\n <Body />\n </Content>\n);\n"],"names":[],"mappings":";;;;;;;;AA8BA,MAAM,OAAO,MAAM;AACjB,
|
|
1
|
+
{"version":3,"file":"ToolExplorerContent.esm.js","sources":["../../../src/components/ToolExplorerContent/ToolExplorerContent.tsx"],"sourcesContent":["/*\n * Copyright 2021 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 useAsync from 'react-use/esm/useAsync';\nimport { ToolCard } from '../ToolCard';\nimport {\n Content,\n ContentHeader,\n EmptyState,\n ItemCardGrid,\n Progress,\n SupportButton,\n WarningPanel,\n} from '@backstage/core-components';\nimport { useApi } from '@backstage/core-plugin-api';\nimport { exploreApiRef } from '../../api';\n\nconst Body = () => {\n const exploreApi = useApi(exploreApiRef);\n\n const {\n value: tools,\n loading,\n error,\n } = useAsync(async () => {\n return (await exploreApi.getTools())?.tools;\n }, [exploreApi]);\n\n if (loading) {\n return <Progress />;\n }\n\n if (error) {\n return <WarningPanel title=\"Failed to load tools\" />;\n }\n\n if (!tools?.length) {\n return (\n <EmptyState\n missing=\"info\"\n title=\"No tools to display\"\n description=\"You haven't added any tools yet.\"\n />\n );\n }\n\n return (\n <ItemCardGrid>\n {tools.map((tool, index) => (\n <ToolCard key={index} card={tool} />\n ))}\n </ItemCardGrid>\n );\n};\n\nexport const ToolExplorerContent = (props: { title?: string }) => (\n <Content noPadding>\n <ContentHeader title={props.title ?? 'Tools'}>\n <SupportButton>Discover the tools in your ecosystem.</SupportButton>\n </ContentHeader>\n <Body />\n </Content>\n);\n"],"names":[],"mappings":";;;;;;;;AA8BA,MAAM,OAAO,MAAM;AACjB,EAAA,MAAM,UAAA,GAAa,OAAO,aAAa,CAAA;AAEvC,EAAA,MAAM;AAAA,IACJ,KAAA,EAAO,KAAA;AAAA,IACP,OAAA;AAAA,IACA;AAAA,GACF,GAAI,SAAS,YAAY;AACvB,IAAA,OAAA,CAAQ,MAAM,UAAA,CAAW,QAAA,EAAS,GAAI,KAAA;AAAA,EACxC,CAAA,EAAG,CAAC,UAAU,CAAC,CAAA;AAEf,EAAA,IAAI,OAAA,EAAS;AACX,IAAA,2BAAQ,QAAA,EAAA,EAAS,CAAA;AAAA,EACnB;AAEA,EAAA,IAAI,KAAA,EAAO;AACT,IAAA,uBAAO,GAAA,CAAC,YAAA,EAAA,EAAa,KAAA,EAAM,sBAAA,EAAuB,CAAA;AAAA,EACpD;AAEA,EAAA,IAAI,CAAC,OAAO,MAAA,EAAQ;AAClB,IAAA,uBACE,GAAA;AAAA,MAAC,UAAA;AAAA,MAAA;AAAA,QACC,OAAA,EAAQ,MAAA;AAAA,QACR,KAAA,EAAM,qBAAA;AAAA,QACN,WAAA,EAAY;AAAA;AAAA,KACd;AAAA,EAEJ;AAEA,EAAA,uBACE,GAAA,CAAC,YAAA,EAAA,EACE,QAAA,EAAA,KAAA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