@backstage/plugin-catalog-react 1.15.2-next.1 → 1.15.2-next.2
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
CHANGED
|
@@ -1,5 +1,26 @@
|
|
|
1
1
|
# @backstage/plugin-catalog-react
|
|
2
2
|
|
|
3
|
+
## 1.15.2-next.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- b07756e: The Entity Page now retains the visibility of the Inspect Dialog after a reload. This allows sharing the URL with the dialog open.
|
|
8
|
+
- Updated dependencies
|
|
9
|
+
- @backstage/core-components@0.16.4-next.1
|
|
10
|
+
- @backstage/catalog-client@1.9.1
|
|
11
|
+
- @backstage/catalog-model@1.7.3
|
|
12
|
+
- @backstage/core-compat-api@0.3.6-next.2
|
|
13
|
+
- @backstage/core-plugin-api@1.10.4-next.0
|
|
14
|
+
- @backstage/errors@1.2.7
|
|
15
|
+
- @backstage/frontend-plugin-api@0.9.5-next.2
|
|
16
|
+
- @backstage/frontend-test-utils@0.2.6-next.2
|
|
17
|
+
- @backstage/integration-react@1.2.4-next.0
|
|
18
|
+
- @backstage/types@1.2.1
|
|
19
|
+
- @backstage/version-bridge@1.0.11-next.0
|
|
20
|
+
- @backstage/plugin-catalog-common@1.1.3
|
|
21
|
+
- @backstage/plugin-permission-common@0.8.4
|
|
22
|
+
- @backstage/plugin-permission-react@0.4.31-next.0
|
|
23
|
+
|
|
3
24
|
## 1.15.2-next.1
|
|
4
25
|
|
|
5
26
|
### Patch Changes
|
|
@@ -57,13 +57,23 @@ function a11yProps(index) {
|
|
|
57
57
|
"aria-controls": `vertical-tabpanel-${index}`
|
|
58
58
|
};
|
|
59
59
|
}
|
|
60
|
+
const tabNames = {
|
|
61
|
+
overview: "Overview",
|
|
62
|
+
ancestry: "Ancestry",
|
|
63
|
+
colocated: "Colocated",
|
|
64
|
+
json: "Raw JSON",
|
|
65
|
+
yaml: "Raw YAML"
|
|
66
|
+
};
|
|
67
|
+
const tabs = Object.keys(tabNames);
|
|
60
68
|
function InspectEntityDialog(props) {
|
|
61
69
|
const classes = useStyles();
|
|
62
|
-
const [activeTab, setActiveTab] = React.useState(
|
|
70
|
+
const [activeTab, setActiveTab] = React.useState(
|
|
71
|
+
getTabIndex(tabs, props.initialTab)
|
|
72
|
+
);
|
|
63
73
|
const { t } = useTranslationRef(catalogReactTranslationRef);
|
|
64
74
|
useEffect(() => {
|
|
65
|
-
|
|
66
|
-
}, [props.open]);
|
|
75
|
+
getTabIndex(tabs, props.initialTab);
|
|
76
|
+
}, [props.open, props.initialTab]);
|
|
67
77
|
if (!props.entity) {
|
|
68
78
|
return null;
|
|
69
79
|
}
|
|
@@ -84,19 +94,21 @@ function InspectEntityDialog(props) {
|
|
|
84
94
|
orientation: "vertical",
|
|
85
95
|
variant: "scrollable",
|
|
86
96
|
value: activeTab,
|
|
87
|
-
onChange: (_,
|
|
97
|
+
onChange: (_, tabIndex) => {
|
|
98
|
+
setActiveTab(tabIndex);
|
|
99
|
+
props.onSelect?.(tabs[tabIndex]);
|
|
100
|
+
},
|
|
88
101
|
"aria-label": "Inspector options",
|
|
89
102
|
className: classes.tabs
|
|
90
103
|
},
|
|
91
|
-
/* @__PURE__ */ React.createElement(Tab, { label:
|
|
92
|
-
/* @__PURE__ */ React.createElement(Tab, { label: "Ancestry", ...a11yProps(1) }),
|
|
93
|
-
/* @__PURE__ */ React.createElement(Tab, { label: "Colocated", ...a11yProps(2) }),
|
|
94
|
-
/* @__PURE__ */ React.createElement(Tab, { label: "Raw JSON", ...a11yProps(3) }),
|
|
95
|
-
/* @__PURE__ */ React.createElement(Tab, { label: "Raw YAML", ...a11yProps(4) })
|
|
104
|
+
tabs.map((tab, index) => /* @__PURE__ */ React.createElement(Tab, { key: tab, label: tabNames[tab], ...a11yProps(index) }))
|
|
96
105
|
), /* @__PURE__ */ React.createElement(TabPanel, { value: activeTab, index: 0 }, /* @__PURE__ */ React.createElement(OverviewPage, { entity: props.entity })), /* @__PURE__ */ React.createElement(TabPanel, { value: activeTab, index: 1 }, /* @__PURE__ */ React.createElement(AncestryPage, { entity: props.entity })), /* @__PURE__ */ React.createElement(TabPanel, { value: activeTab, index: 2 }, /* @__PURE__ */ React.createElement(ColocatedPage, { entity: props.entity })), /* @__PURE__ */ React.createElement(TabPanel, { value: activeTab, index: 3 }, /* @__PURE__ */ React.createElement(JsonPage, { entity: props.entity })), /* @__PURE__ */ React.createElement(TabPanel, { value: activeTab, index: 4 }, /* @__PURE__ */ React.createElement(YamlPage, { entity: props.entity })))),
|
|
97
106
|
/* @__PURE__ */ React.createElement(DialogActions, null, /* @__PURE__ */ React.createElement(Button, { onClick: props.onClose, color: "primary" }, t("inspectEntityDialog.closeButtonTitle")))
|
|
98
107
|
);
|
|
99
108
|
}
|
|
109
|
+
function getTabIndex(allTabs, initialTab) {
|
|
110
|
+
return initialTab ? allTabs.indexOf(initialTab) : 0;
|
|
111
|
+
}
|
|
100
112
|
|
|
101
113
|
export { InspectEntityDialog };
|
|
102
114
|
//# sourceMappingURL=InspectEntityDialog.esm.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InspectEntityDialog.esm.js","sources":["../../../src/components/InspectEntityDialog/InspectEntityDialog.tsx"],"sourcesContent":["/*\n * Copyright 2022 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 { Entity } from '@backstage/catalog-model';\nimport Box from '@material-ui/core/Box';\nimport Button from '@material-ui/core/Button';\nimport Dialog from '@material-ui/core/Dialog';\nimport DialogActions from '@material-ui/core/DialogActions';\nimport DialogContent from '@material-ui/core/DialogContent';\nimport DialogTitle from '@material-ui/core/DialogTitle';\nimport Tab from '@material-ui/core/Tab';\nimport Tabs from '@material-ui/core/Tabs';\nimport { makeStyles } from '@material-ui/core/styles';\nimport React, { useEffect } from 'react';\nimport { AncestryPage } from './components/AncestryPage';\nimport { ColocatedPage } from './components/ColocatedPage';\nimport { JsonPage } from './components/JsonPage';\nimport { OverviewPage } from './components/OverviewPage';\nimport { YamlPage } from './components/YamlPage';\nimport { catalogReactTranslationRef } from '../../translation';\nimport { useTranslationRef } from '@backstage/core-plugin-api/alpha';\n\nconst useStyles = makeStyles(theme => ({\n fullHeightDialog: {\n height: 'calc(100% - 64px)',\n },\n root: {\n display: 'flex',\n flexGrow: 1,\n width: '100%',\n backgroundColor: theme.palette.background.paper,\n },\n tabs: {\n borderRight: `1px solid ${theme.palette.divider}`,\n flexShrink: 0,\n },\n tabContents: {\n flexGrow: 1,\n overflowX: 'auto',\n },\n}));\n\nfunction TabPanel(props: {\n children?: React.ReactNode;\n index: number;\n value: number;\n}) {\n const { children, value, index, ...other } = props;\n const classes = useStyles();\n return (\n <div\n role=\"tabpanel\"\n hidden={value !== index}\n id={`vertical-tabpanel-${index}`}\n aria-labelledby={`vertical-tab-${index}`}\n className={classes.tabContents}\n {...other}\n >\n {value === index && (\n <Box pl={3} pr={3}>\n {children}\n </Box>\n )}\n </div>\n );\n}\n\nfunction a11yProps(index: number) {\n return {\n id: `vertical-tab-${index}`,\n 'aria-controls': `vertical-tabpanel-${index}`,\n };\n}\n\n/**\n * A dialog that lets users inspect the low level details of their entities.\n *\n * @public\n */\nexport function InspectEntityDialog(props: {\n open: boolean;\n entity: Entity;\n onClose: () => void;\n}) {\n const classes = useStyles();\n const [activeTab, setActiveTab] = React.useState(
|
|
1
|
+
{"version":3,"file":"InspectEntityDialog.esm.js","sources":["../../../src/components/InspectEntityDialog/InspectEntityDialog.tsx"],"sourcesContent":["/*\n * Copyright 2022 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 { Entity } from '@backstage/catalog-model';\nimport Box from '@material-ui/core/Box';\nimport Button from '@material-ui/core/Button';\nimport Dialog from '@material-ui/core/Dialog';\nimport DialogActions from '@material-ui/core/DialogActions';\nimport DialogContent from '@material-ui/core/DialogContent';\nimport DialogTitle from '@material-ui/core/DialogTitle';\nimport Tab from '@material-ui/core/Tab';\nimport Tabs from '@material-ui/core/Tabs';\nimport { makeStyles } from '@material-ui/core/styles';\nimport React, { ComponentProps, useEffect } from 'react';\nimport { AncestryPage } from './components/AncestryPage';\nimport { ColocatedPage } from './components/ColocatedPage';\nimport { JsonPage } from './components/JsonPage';\nimport { OverviewPage } from './components/OverviewPage';\nimport { YamlPage } from './components/YamlPage';\nimport { catalogReactTranslationRef } from '../../translation';\nimport { useTranslationRef } from '@backstage/core-plugin-api/alpha';\n\nconst useStyles = makeStyles(theme => ({\n fullHeightDialog: {\n height: 'calc(100% - 64px)',\n },\n root: {\n display: 'flex',\n flexGrow: 1,\n width: '100%',\n backgroundColor: theme.palette.background.paper,\n },\n tabs: {\n borderRight: `1px solid ${theme.palette.divider}`,\n flexShrink: 0,\n },\n tabContents: {\n flexGrow: 1,\n overflowX: 'auto',\n },\n}));\n\nfunction TabPanel(props: {\n children?: React.ReactNode;\n index: number;\n value: number;\n}) {\n const { children, value, index, ...other } = props;\n const classes = useStyles();\n return (\n <div\n role=\"tabpanel\"\n hidden={value !== index}\n id={`vertical-tabpanel-${index}`}\n aria-labelledby={`vertical-tab-${index}`}\n className={classes.tabContents}\n {...other}\n >\n {value === index && (\n <Box pl={3} pr={3}>\n {children}\n </Box>\n )}\n </div>\n );\n}\n\nfunction a11yProps(index: number) {\n return {\n id: `vertical-tab-${index}`,\n 'aria-controls': `vertical-tabpanel-${index}`,\n };\n}\n\nconst tabNames: Record<\n NonNullable<ComponentProps<typeof InspectEntityDialog>['initialTab']>,\n string\n> = {\n overview: 'Overview',\n ancestry: 'Ancestry',\n colocated: 'Colocated',\n json: 'Raw JSON',\n yaml: 'Raw YAML',\n} as const;\n\nconst tabs = Object.keys(tabNames) as Array<keyof typeof tabNames>;\n\n/**\n * A dialog that lets users inspect the low level details of their entities.\n *\n * @public\n */\nexport function InspectEntityDialog(props: {\n open: boolean;\n entity: Entity;\n initialTab?: 'overview' | 'ancestry' | 'colocated' | 'json' | 'yaml';\n onClose: () => void;\n onSelect?: (tab: string) => void;\n}) {\n const classes = useStyles();\n\n const [activeTab, setActiveTab] = React.useState(\n getTabIndex(tabs, props.initialTab),\n );\n const { t } = useTranslationRef(catalogReactTranslationRef);\n\n useEffect(() => {\n getTabIndex(tabs, props.initialTab);\n }, [props.open, props.initialTab]);\n\n if (!props.entity) {\n return null;\n }\n\n return (\n <Dialog\n fullWidth\n maxWidth=\"xl\"\n open={props.open}\n onClose={props.onClose}\n aria-labelledby=\"entity-inspector-dialog-title\"\n PaperProps={{ className: classes.fullHeightDialog }}\n >\n <DialogTitle id=\"entity-inspector-dialog-title\">\n {t('inspectEntityDialog.title')}\n </DialogTitle>\n <DialogContent dividers>\n <div className={classes.root}>\n <Tabs\n orientation=\"vertical\"\n variant=\"scrollable\"\n value={activeTab}\n onChange={(_, tabIndex) => {\n setActiveTab(tabIndex);\n props.onSelect?.(tabs[tabIndex]);\n }}\n aria-label=\"Inspector options\"\n className={classes.tabs}\n >\n {tabs.map((tab, index) => (\n <Tab key={tab} label={tabNames[tab]} {...a11yProps(index)} />\n ))}\n </Tabs>\n\n <TabPanel value={activeTab} index={0}>\n <OverviewPage entity={props.entity} />\n </TabPanel>\n <TabPanel value={activeTab} index={1}>\n <AncestryPage entity={props.entity} />\n </TabPanel>\n <TabPanel value={activeTab} index={2}>\n <ColocatedPage entity={props.entity} />\n </TabPanel>\n <TabPanel value={activeTab} index={3}>\n <JsonPage entity={props.entity} />\n </TabPanel>\n <TabPanel value={activeTab} index={4}>\n <YamlPage entity={props.entity} />\n </TabPanel>\n </div>\n </DialogContent>\n <DialogActions>\n <Button onClick={props.onClose} color=\"primary\">\n {t('inspectEntityDialog.closeButtonTitle')}\n </Button>\n </DialogActions>\n </Dialog>\n );\n}\n\nfunction getTabIndex(\n allTabs: string[],\n initialTab: keyof typeof tabNames | undefined,\n) {\n return initialTab ? allTabs.indexOf(initialTab) : 0;\n}\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAmCA,MAAM,SAAA,GAAY,WAAW,CAAU,KAAA,MAAA;AAAA,EACrC,gBAAkB,EAAA;AAAA,IAChB,MAAQ,EAAA;AAAA,GACV;AAAA,EACA,IAAM,EAAA;AAAA,IACJ,OAAS,EAAA,MAAA;AAAA,IACT,QAAU,EAAA,CAAA;AAAA,IACV,KAAO,EAAA,MAAA;AAAA,IACP,eAAA,EAAiB,KAAM,CAAA,OAAA,CAAQ,UAAW,CAAA;AAAA,GAC5C;AAAA,EACA,IAAM,EAAA;AAAA,IACJ,WAAa,EAAA,CAAA,UAAA,EAAa,KAAM,CAAA,OAAA,CAAQ,OAAO,CAAA,CAAA;AAAA,IAC/C,UAAY,EAAA;AAAA,GACd;AAAA,EACA,WAAa,EAAA;AAAA,IACX,QAAU,EAAA,CAAA;AAAA,IACV,SAAW,EAAA;AAAA;AAEf,CAAE,CAAA,CAAA;AAEF,SAAS,SAAS,KAIf,EAAA;AACD,EAAA,MAAM,EAAE,QAAU,EAAA,KAAA,EAAO,KAAO,EAAA,GAAG,OAAU,GAAA,KAAA;AAC7C,EAAA,MAAM,UAAU,SAAU,EAAA;AAC1B,EACE,uBAAA,KAAA,CAAA,aAAA;AAAA,IAAC,KAAA;AAAA,IAAA;AAAA,MACC,IAAK,EAAA,UAAA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 declare const FavoriteEntity: (props: FavoriteEntityProps) => React__default.JSX
|
|
|
509
509
|
declare function InspectEntityDialog(props: {
|
|
510
510
|
open: boolean;
|
|
511
511
|
entity: Entity;
|
|
512
|
+
initialTab?: 'overview' | 'ancestry' | 'colocated' | 'json' | 'yaml';
|
|
512
513
|
onClose: () => void;
|
|
514
|
+
onSelect?: (tab: string) => void;
|
|
513
515
|
}): React__default.JSX.Element | null;
|
|
514
516
|
|
|
515
517
|
/** @public */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@backstage/plugin-catalog-react",
|
|
3
|
-
"version": "1.15.2-next.
|
|
3
|
+
"version": "1.15.2-next.2",
|
|
4
4
|
"description": "A frontend library that helps other Backstage plugins interact with the catalog",
|
|
5
5
|
"backstage": {
|
|
6
6
|
"role": "web-library",
|
|
@@ -75,12 +75,12 @@
|
|
|
75
75
|
"dependencies": {
|
|
76
76
|
"@backstage/catalog-client": "1.9.1",
|
|
77
77
|
"@backstage/catalog-model": "1.7.3",
|
|
78
|
-
"@backstage/core-compat-api": "0.3.6-next.
|
|
79
|
-
"@backstage/core-components": "0.16.4-next.
|
|
78
|
+
"@backstage/core-compat-api": "0.3.6-next.2",
|
|
79
|
+
"@backstage/core-components": "0.16.4-next.1",
|
|
80
80
|
"@backstage/core-plugin-api": "1.10.4-next.0",
|
|
81
81
|
"@backstage/errors": "1.2.7",
|
|
82
|
-
"@backstage/frontend-plugin-api": "0.9.5-next.
|
|
83
|
-
"@backstage/frontend-test-utils": "0.2.6-next.
|
|
82
|
+
"@backstage/frontend-plugin-api": "0.9.5-next.2",
|
|
83
|
+
"@backstage/frontend-test-utils": "0.2.6-next.2",
|
|
84
84
|
"@backstage/integration-react": "1.2.4-next.0",
|
|
85
85
|
"@backstage/plugin-catalog-common": "1.1.3",
|
|
86
86
|
"@backstage/plugin-permission-common": "0.8.4",
|
|
@@ -100,7 +100,7 @@
|
|
|
100
100
|
"zen-observable": "^0.10.0"
|
|
101
101
|
},
|
|
102
102
|
"devDependencies": {
|
|
103
|
-
"@backstage/cli": "0.30.0-next.
|
|
103
|
+
"@backstage/cli": "0.30.0-next.2",
|
|
104
104
|
"@backstage/core-app-api": "1.15.5-next.0",
|
|
105
105
|
"@backstage/plugin-catalog-common": "1.1.3",
|
|
106
106
|
"@backstage/plugin-scaffolder-common": "1.5.9",
|