@backstage/plugin-catalog-react 1.14.1-next.3 → 1.14.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,48 @@
|
|
|
1
1
|
# @backstage/plugin-catalog-react
|
|
2
2
|
|
|
3
|
+
## 1.14.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
- @backstage/frontend-plugin-api@0.9.2
|
|
9
|
+
- @backstage/catalog-client@1.8.0
|
|
10
|
+
- @backstage/catalog-model@1.7.1
|
|
11
|
+
- @backstage/core-compat-api@0.3.3
|
|
12
|
+
- @backstage/core-components@0.16.1
|
|
13
|
+
- @backstage/core-plugin-api@1.10.1
|
|
14
|
+
- @backstage/errors@1.2.5
|
|
15
|
+
- @backstage/frontend-test-utils@0.2.3
|
|
16
|
+
- @backstage/integration-react@1.2.1
|
|
17
|
+
- @backstage/types@1.2.0
|
|
18
|
+
- @backstage/version-bridge@1.0.10
|
|
19
|
+
- @backstage/plugin-catalog-common@1.1.1
|
|
20
|
+
- @backstage/plugin-permission-common@0.8.2
|
|
21
|
+
- @backstage/plugin-permission-react@0.4.28
|
|
22
|
+
|
|
23
|
+
## 1.14.1
|
|
24
|
+
|
|
25
|
+
### Patch Changes
|
|
26
|
+
|
|
27
|
+
- 9cc82c0: Fixed bug in `EntityDisplayName` where text was overflowing.
|
|
28
|
+
- 6fcbb3b: Ensure EntityDisplayName component link receives underline on hover.
|
|
29
|
+
- 9670906: Improve UI consistency of default catalog filters
|
|
30
|
+
- Updated dependencies
|
|
31
|
+
- @backstage/catalog-client@1.8.0
|
|
32
|
+
- @backstage/types@1.2.0
|
|
33
|
+
- @backstage/core-components@0.16.0
|
|
34
|
+
- @backstage/plugin-permission-common@0.8.2
|
|
35
|
+
- @backstage/catalog-model@1.7.1
|
|
36
|
+
- @backstage/core-compat-api@0.3.2
|
|
37
|
+
- @backstage/core-plugin-api@1.10.1
|
|
38
|
+
- @backstage/errors@1.2.5
|
|
39
|
+
- @backstage/frontend-plugin-api@0.9.1
|
|
40
|
+
- @backstage/frontend-test-utils@0.2.2
|
|
41
|
+
- @backstage/integration-react@1.2.1
|
|
42
|
+
- @backstage/version-bridge@1.0.10
|
|
43
|
+
- @backstage/plugin-catalog-common@1.1.1
|
|
44
|
+
- @backstage/plugin-permission-react@0.4.28
|
|
45
|
+
|
|
3
46
|
## 1.14.1-next.3
|
|
4
47
|
|
|
5
48
|
### Patch Changes
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EntityDisplayName.esm.js","sources":["../../../src/components/EntityDisplayName/EntityDisplayName.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 { CompoundEntityRef, Entity } from '@backstage/catalog-model';\nimport Box from '@material-ui/core/Box';\nimport Tooltip from '@material-ui/core/Tooltip';\nimport { Theme, makeStyles } from '@material-ui/core/styles';\nimport React from 'react';\nimport { useEntityPresentation } from '../../apis';\n\n/**\n * The available style class keys for {@link EntityDisplayName}, under the name\n * \"CatalogReactEntityDisplayName\".\n *\n * @public\n */\nexport type CatalogReactEntityDisplayNameClassKey = 'root' | 'icon';\n\nconst useStyles = makeStyles(\n (theme: Theme) => ({\n root: {\n display: 'inline-flex',\n alignItems: 'center',\n textDecoration: 'inherit',\n },\n icon: {\n marginRight: theme.spacing(0.5),\n color: theme.palette.text.secondary,\n '& svg': {\n verticalAlign: 'middle',\n },\n },\n }),\n { name: 'CatalogReactEntityDisplayName' },\n);\n\n/**\n * Props for {@link EntityDisplayName}.\n *\n * @public\n */\nexport type EntityDisplayNameProps = {\n entityRef: Entity | CompoundEntityRef | string;\n hideIcon?: boolean;\n disableTooltip?: boolean;\n defaultKind?: string;\n defaultNamespace?: string;\n};\n\n/**\n * Shows a nice representation of a reference to an entity.\n *\n * @public\n */\nexport const EntityDisplayName = (\n props: EntityDisplayNameProps,\n): JSX.Element => {\n const { entityRef, hideIcon, disableTooltip, defaultKind, defaultNamespace } =\n props;\n\n const classes = useStyles();\n const { primaryTitle, secondaryTitle, Icon } = useEntityPresentation(\n entityRef,\n { defaultKind, defaultNamespace },\n );\n\n // The innermost \"body\" content\n let content = <>{primaryTitle}</>;\n
|
|
1
|
+
{"version":3,"file":"EntityDisplayName.esm.js","sources":["../../../src/components/EntityDisplayName/EntityDisplayName.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 { CompoundEntityRef, Entity } from '@backstage/catalog-model';\nimport Box from '@material-ui/core/Box';\nimport Tooltip from '@material-ui/core/Tooltip';\nimport { Theme, makeStyles } from '@material-ui/core/styles';\nimport React from 'react';\nimport { useEntityPresentation } from '../../apis';\n\n/**\n * The available style class keys for {@link EntityDisplayName}, under the name\n * \"CatalogReactEntityDisplayName\".\n *\n * @public\n */\nexport type CatalogReactEntityDisplayNameClassKey = 'root' | 'icon';\n\nconst useStyles = makeStyles(\n (theme: Theme) => ({\n root: {\n display: 'inline-flex',\n alignItems: 'center',\n textDecoration: 'inherit',\n },\n icon: {\n marginRight: theme.spacing(0.5),\n color: theme.palette.text.secondary,\n '& svg': {\n verticalAlign: 'middle',\n },\n },\n }),\n { name: 'CatalogReactEntityDisplayName' },\n);\n\n/**\n * Props for {@link EntityDisplayName}.\n *\n * @public\n */\nexport type EntityDisplayNameProps = {\n entityRef: Entity | CompoundEntityRef | string;\n hideIcon?: boolean;\n disableTooltip?: boolean;\n defaultKind?: string;\n defaultNamespace?: string;\n};\n\n/**\n * Shows a nice representation of a reference to an entity.\n *\n * @public\n */\nexport const EntityDisplayName = (\n props: EntityDisplayNameProps,\n): JSX.Element => {\n const { entityRef, hideIcon, disableTooltip, defaultKind, defaultNamespace } =\n props;\n\n const classes = useStyles();\n const { primaryTitle, secondaryTitle, Icon } = useEntityPresentation(\n entityRef,\n { defaultKind, defaultNamespace },\n );\n\n // The innermost \"body\" content\n let content = <>{primaryTitle}</>;\n // Optionally an icon, and wrapper around them both\n content = (\n <Box component=\"span\" className={classes.root}>\n {Icon && !hideIcon ? (\n <Box component=\"span\" className={classes.icon}>\n <Icon fontSize=\"inherit\" />\n </Box>\n ) : null}\n {content}\n </Box>\n );\n\n // Optionally, a tooltip as the outermost layer\n if (secondaryTitle && !disableTooltip) {\n content = (\n <Tooltip enterDelay={1500} title={secondaryTitle}>\n {content}\n </Tooltip>\n );\n }\n\n return content;\n};\n"],"names":[],"mappings":";;;;;;;;;;;AA+BA,MAAM,SAAY,GAAA,UAAA;AAAA,EAChB,CAAC,KAAkB,MAAA;AAAA,IACjB,IAAM,EAAA;AAAA,MACJ,OAAS,EAAA,aAAA;AAAA,MACT,UAAY,EAAA,QAAA;AAAA,MACZ,cAAgB,EAAA;AAAA,KAClB;AAAA,IACA,IAAM,EAAA;AAAA,MACJ,WAAA,EAAa,KAAM,CAAA,OAAA,CAAQ,GAAG,CAAA;AAAA,MAC9B,KAAA,EAAO,KAAM,CAAA,OAAA,CAAQ,IAAK,CAAA,SAAA;AAAA,MAC1B,OAAS,EAAA;AAAA,QACP,aAAe,EAAA;AAAA;AACjB;AACF,GACF,CAAA;AAAA,EACA,EAAE,MAAM,+BAAgC;AAC1C,CAAA;AAoBa,MAAA,iBAAA,GAAoB,CAC/B,KACgB,KAAA;AAChB,EAAA,MAAM,EAAE,SAAW,EAAA,QAAA,EAAU,cAAgB,EAAA,WAAA,EAAa,kBACxD,GAAA,KAAA;AAEF,EAAA,MAAM,UAAU,SAAU,EAAA;AAC1B,EAAA,MAAM,EAAE,YAAA,EAAc,cAAgB,EAAA,IAAA,EAAS,GAAA,qBAAA;AAAA,IAC7C,SAAA;AAAA,IACA,EAAE,aAAa,gBAAiB;AAAA,GAClC;AAGA,EAAI,IAAA,OAAA,6DAAa,YAAa,CAAA;AAE9B,EACE,OAAA,mBAAA,KAAA,CAAA,aAAA,CAAC,GAAI,EAAA,EAAA,SAAA,EAAU,MAAO,EAAA,SAAA,EAAW,QAAQ,IACtC,EAAA,EAAA,IAAA,IAAQ,CAAC,QAAA,mBACP,KAAA,CAAA,aAAA,CAAA,GAAA,EAAA,EAAI,WAAU,MAAO,EAAA,SAAA,EAAW,OAAQ,CAAA,IAAA,EAAA,kBACtC,KAAA,CAAA,aAAA,CAAA,IAAA,EAAA,EAAK,UAAS,SAAU,EAAA,CAC3B,CACE,GAAA,IAAA,EACH,OACH,CAAA;AAIF,EAAI,IAAA,cAAA,IAAkB,CAAC,cAAgB,EAAA;AACrC,IAAA,OAAA,uCACG,OAAQ,EAAA,EAAA,UAAA,EAAY,IAAM,EAAA,KAAA,EAAO,kBAC/B,OACH,CAAA;AAAA;AAIJ,EAAO,OAAA,OAAA;AACT;;;;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@backstage/plugin-catalog-react",
|
|
3
|
-
"version": "1.14.
|
|
3
|
+
"version": "1.14.2",
|
|
4
4
|
"description": "A frontend library that helps other Backstage plugins interact with the catalog",
|
|
5
5
|
"backstage": {
|
|
6
6
|
"role": "web-library",
|
|
@@ -73,20 +73,20 @@
|
|
|
73
73
|
"test": "backstage-cli package test"
|
|
74
74
|
},
|
|
75
75
|
"dependencies": {
|
|
76
|
-
"@backstage/catalog-client": "1.8.0
|
|
77
|
-
"@backstage/catalog-model": "1.7.
|
|
78
|
-
"@backstage/core-compat-api": "0.3.
|
|
79
|
-
"@backstage/core-components": "0.16.
|
|
80
|
-
"@backstage/core-plugin-api": "1.10.
|
|
81
|
-
"@backstage/errors": "1.2.
|
|
82
|
-
"@backstage/frontend-plugin-api": "0.9.
|
|
83
|
-
"@backstage/frontend-test-utils": "0.2.
|
|
84
|
-
"@backstage/integration-react": "1.2.
|
|
85
|
-
"@backstage/plugin-catalog-common": "1.1.
|
|
86
|
-
"@backstage/plugin-permission-common": "0.8.
|
|
87
|
-
"@backstage/plugin-permission-react": "0.4.
|
|
88
|
-
"@backstage/types": "1.
|
|
89
|
-
"@backstage/version-bridge": "1.0.10",
|
|
76
|
+
"@backstage/catalog-client": "^1.8.0",
|
|
77
|
+
"@backstage/catalog-model": "^1.7.1",
|
|
78
|
+
"@backstage/core-compat-api": "^0.3.3",
|
|
79
|
+
"@backstage/core-components": "^0.16.1",
|
|
80
|
+
"@backstage/core-plugin-api": "^1.10.1",
|
|
81
|
+
"@backstage/errors": "^1.2.5",
|
|
82
|
+
"@backstage/frontend-plugin-api": "^0.9.2",
|
|
83
|
+
"@backstage/frontend-test-utils": "^0.2.3",
|
|
84
|
+
"@backstage/integration-react": "^1.2.1",
|
|
85
|
+
"@backstage/plugin-catalog-common": "^1.1.1",
|
|
86
|
+
"@backstage/plugin-permission-common": "^0.8.2",
|
|
87
|
+
"@backstage/plugin-permission-react": "^0.4.28",
|
|
88
|
+
"@backstage/types": "^1.2.0",
|
|
89
|
+
"@backstage/version-bridge": "^1.0.10",
|
|
90
90
|
"@material-ui/core": "^4.12.2",
|
|
91
91
|
"@material-ui/icons": "^4.9.1",
|
|
92
92
|
"@material-ui/lab": "4.0.0-alpha.61",
|
|
@@ -100,11 +100,11 @@
|
|
|
100
100
|
"zen-observable": "^0.10.0"
|
|
101
101
|
},
|
|
102
102
|
"devDependencies": {
|
|
103
|
-
"@backstage/cli": "0.29.
|
|
104
|
-
"@backstage/core-app-api": "1.15.
|
|
105
|
-
"@backstage/plugin-catalog-common": "1.1.
|
|
106
|
-
"@backstage/plugin-scaffolder-common": "1.5.7
|
|
107
|
-
"@backstage/test-utils": "1.7.
|
|
103
|
+
"@backstage/cli": "^0.29.2",
|
|
104
|
+
"@backstage/core-app-api": "^1.15.2",
|
|
105
|
+
"@backstage/plugin-catalog-common": "^1.1.1",
|
|
106
|
+
"@backstage/plugin-scaffolder-common": "^1.5.7",
|
|
107
|
+
"@backstage/test-utils": "^1.7.2",
|
|
108
108
|
"@testing-library/dom": "^10.0.0",
|
|
109
109
|
"@testing-library/jest-dom": "^6.0.0",
|
|
110
110
|
"@testing-library/react": "^16.0.0",
|