@backstage/plugin-catalog 2.0.8-next.1 → 2.0.8-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,21 @@
|
|
|
1
1
|
# @backstage/plugin-catalog
|
|
2
2
|
|
|
3
|
+
## 2.0.8-next.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 80b37b3: Fixed the `AboutField` label in the About card using `variant="inherit"` instead of `variant="h2"` to prevent theme typography overrides from changing the intended 10px label size.
|
|
8
|
+
- Updated dependencies
|
|
9
|
+
- @backstage/plugin-catalog-react@3.2.1-next.2
|
|
10
|
+
- @backstage/frontend-plugin-api@0.18.0-next.0
|
|
11
|
+
- @backstage/core-compat-api@0.5.14-next.1
|
|
12
|
+
- @backstage/core-plugin-api@1.12.9-next.0
|
|
13
|
+
- @backstage/plugin-search-react@1.11.7-next.1
|
|
14
|
+
- @backstage/plugin-techdocs-react@1.3.14-next.1
|
|
15
|
+
- @backstage/core-components@0.18.13-next.2
|
|
16
|
+
- @backstage/integration-react@1.2.21-next.1
|
|
17
|
+
- @backstage/plugin-permission-react@0.5.4-next.0
|
|
18
|
+
|
|
3
19
|
## 2.0.8-next.1
|
|
4
20
|
|
|
5
21
|
### Patch Changes
|
|
@@ -29,7 +29,7 @@ function AboutField(props) {
|
|
|
29
29
|
const childElements = useElementFilter(children, (c) => c.getElements());
|
|
30
30
|
const content = childElements.length > 0 ? childElements : /* @__PURE__ */ jsx(Typography, { variant: "body2", className: classes.value, children: value || t("aboutCard.unknown") });
|
|
31
31
|
return /* @__PURE__ */ jsxs("div", { className, children: [
|
|
32
|
-
/* @__PURE__ */ jsx(Typography, { variant: "h2", className: classes.label, children: label }),
|
|
32
|
+
/* @__PURE__ */ jsx(Typography, { variant: "inherit", component: "h2", className: classes.label, children: label }),
|
|
33
33
|
content
|
|
34
34
|
] });
|
|
35
35
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AboutField.esm.js","sources":["../../../src/components/AboutCard/AboutField.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 { useElementFilter } from '@backstage/core-plugin-api';\nimport Typography from '@material-ui/core/Typography';\nimport { makeStyles } from '@material-ui/core/styles';\nimport { ReactNode } from 'react';\nimport { useTranslationRef } from '@backstage/core-plugin-api/alpha';\nimport { catalogTranslationRef } from '../../alpha/translation';\n\nconst useStyles = makeStyles(theme => ({\n value: {\n fontWeight: 'bold',\n overflow: 'hidden',\n lineHeight: '24px',\n wordBreak: 'break-word',\n },\n label: {\n color: theme.palette.text.secondary,\n textTransform: 'uppercase',\n fontSize: '10px',\n fontWeight: 'bold',\n letterSpacing: 0.5,\n overflow: 'hidden',\n whiteSpace: 'nowrap',\n },\n}));\n\n/**\n * Props for {@link AboutField}.\n *\n * @public\n */\nexport interface AboutFieldProps {\n label: string;\n value?: string;\n children?: ReactNode;\n className?: string;\n}\n\n/** @public */\nexport function AboutField(props: AboutFieldProps) {\n const { label, value, children, className } = props;\n const classes = useStyles();\n const { t } = useTranslationRef(catalogTranslationRef);\n\n const childElements = useElementFilter(children, c => c.getElements());\n\n // Content is either children or a string prop `value`\n const content =\n childElements.length > 0 ? (\n childElements\n ) : (\n <Typography variant=\"body2\" className={classes.value}>\n {value || t('aboutCard.unknown')}\n </Typography>\n );\n return (\n <div className={className}>\n <Typography variant=\"h2\" className={classes.label}>\n {label}\n </Typography>\n {content}\n </div>\n );\n}\n"],"names":[],"mappings":";;;;;;;AAuBA,MAAM,SAAA,GAAY,WAAW,CAAA,KAAA,MAAU;AAAA,EACrC,KAAA,EAAO;AAAA,IACL,UAAA,EAAY,MAAA;AAAA,IACZ,QAAA,EAAU,QAAA;AAAA,IACV,UAAA,EAAY,MAAA;AAAA,IACZ,SAAA,EAAW;AAAA,GACb;AAAA,EACA,KAAA,EAAO;AAAA,IACL,KAAA,EAAO,KAAA,CAAM,OAAA,CAAQ,IAAA,CAAK,SAAA;AAAA,IAC1B,aAAA,EAAe,WAAA;AAAA,IACf,QAAA,EAAU,MAAA;AAAA,IACV,UAAA,EAAY,MAAA;AAAA,IACZ,aAAA,EAAe,GAAA;AAAA,IACf,QAAA,EAAU,QAAA;AAAA,IACV,UAAA,EAAY;AAAA;AAEhB,CAAA,CAAE,CAAA;AAeK,SAAS,WAAW,KAAA,EAAwB;AACjD,EAAA,MAAM,EAAE,KAAA,EAAO,KAAA,EAAO,QAAA,EAAU,WAAU,GAAI,KAAA;AAC9C,EAAA,MAAM,UAAU,SAAA,EAAU;AAC1B,EAAA,MAAM,EAAE,CAAA,EAAE,GAAI,iBAAA,CAAkB,qBAAqB,CAAA;AAErD,EAAA,MAAM,gBAAgB,gBAAA,CAAiB,QAAA,EAAU,CAAA,CAAA,KAAK,CAAA,CAAE,aAAa,CAAA;AAGrE,EAAA,MAAM,OAAA,GACJ,aAAA,CAAc,MAAA,GAAS,CAAA,GACrB,gCAEA,GAAA,CAAC,UAAA,EAAA,EAAW,OAAA,EAAQ,OAAA,EAAQ,WAAW,OAAA,CAAQ,KAAA,EAC5C,QAAA,EAAA,KAAA,IAAS,CAAA,CAAE,mBAAmB,CAAA,EACjC,CAAA;AAEJ,EAAA,uBACE,IAAA,CAAC,SAAI,SAAA,EACH,QAAA,EAAA;AAAA,oBAAA,GAAA,CAAC,
|
|
1
|
+
{"version":3,"file":"AboutField.esm.js","sources":["../../../src/components/AboutCard/AboutField.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 { useElementFilter } from '@backstage/core-plugin-api';\nimport Typography from '@material-ui/core/Typography';\nimport { makeStyles } from '@material-ui/core/styles';\nimport { ReactNode } from 'react';\nimport { useTranslationRef } from '@backstage/core-plugin-api/alpha';\nimport { catalogTranslationRef } from '../../alpha/translation';\n\nconst useStyles = makeStyles(theme => ({\n value: {\n fontWeight: 'bold',\n overflow: 'hidden',\n lineHeight: '24px',\n wordBreak: 'break-word',\n },\n label: {\n color: theme.palette.text.secondary,\n textTransform: 'uppercase',\n fontSize: '10px',\n fontWeight: 'bold',\n letterSpacing: 0.5,\n overflow: 'hidden',\n whiteSpace: 'nowrap',\n },\n}));\n\n/**\n * Props for {@link AboutField}.\n *\n * @public\n */\nexport interface AboutFieldProps {\n label: string;\n value?: string;\n children?: ReactNode;\n className?: string;\n}\n\n/** @public */\nexport function AboutField(props: AboutFieldProps) {\n const { label, value, children, className } = props;\n const classes = useStyles();\n const { t } = useTranslationRef(catalogTranslationRef);\n\n const childElements = useElementFilter(children, c => c.getElements());\n\n // Content is either children or a string prop `value`\n const content =\n childElements.length > 0 ? (\n childElements\n ) : (\n <Typography variant=\"body2\" className={classes.value}>\n {value || t('aboutCard.unknown')}\n </Typography>\n );\n return (\n <div className={className}>\n <Typography variant=\"inherit\" component=\"h2\" className={classes.label}>\n {label}\n </Typography>\n {content}\n </div>\n );\n}\n"],"names":[],"mappings":";;;;;;;AAuBA,MAAM,SAAA,GAAY,WAAW,CAAA,KAAA,MAAU;AAAA,EACrC,KAAA,EAAO;AAAA,IACL,UAAA,EAAY,MAAA;AAAA,IAC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|
"name": "@backstage/plugin-catalog",
|
|
3
|
-
"version": "2.0.8-next.
|
|
3
|
+
"version": "2.0.8-next.2",
|
|
4
4
|
"description": "The Backstage plugin for browsing the Backstage catalog",
|
|
5
5
|
"backstage": {
|
|
6
6
|
"role": "frontend-plugin",
|
|
@@ -72,20 +72,20 @@
|
|
|
72
72
|
"dependencies": {
|
|
73
73
|
"@backstage/catalog-client": "1.16.1",
|
|
74
74
|
"@backstage/catalog-model": "1.9.0",
|
|
75
|
-
"@backstage/core-compat-api": "0.5.14-next.
|
|
76
|
-
"@backstage/core-components": "0.18.13-next.
|
|
77
|
-
"@backstage/core-plugin-api": "1.12.
|
|
75
|
+
"@backstage/core-compat-api": "0.5.14-next.1",
|
|
76
|
+
"@backstage/core-components": "0.18.13-next.2",
|
|
77
|
+
"@backstage/core-plugin-api": "1.12.9-next.0",
|
|
78
78
|
"@backstage/errors": "1.3.1",
|
|
79
|
-
"@backstage/frontend-plugin-api": "0.
|
|
80
|
-
"@backstage/integration-react": "1.2.21-next.
|
|
79
|
+
"@backstage/frontend-plugin-api": "0.18.0-next.0",
|
|
80
|
+
"@backstage/integration-react": "1.2.21-next.1",
|
|
81
81
|
"@backstage/plugin-catalog-common": "1.1.10",
|
|
82
|
-
"@backstage/plugin-catalog-react": "3.2.1-next.
|
|
83
|
-
"@backstage/plugin-permission-react": "0.5.
|
|
82
|
+
"@backstage/plugin-catalog-react": "3.2.1-next.2",
|
|
83
|
+
"@backstage/plugin-permission-react": "0.5.4-next.0",
|
|
84
84
|
"@backstage/plugin-scaffolder-common": "2.2.2-next.0",
|
|
85
85
|
"@backstage/plugin-search-common": "1.2.24",
|
|
86
|
-
"@backstage/plugin-search-react": "1.11.7-next.
|
|
86
|
+
"@backstage/plugin-search-react": "1.11.7-next.1",
|
|
87
87
|
"@backstage/plugin-techdocs-common": "0.1.1",
|
|
88
|
-
"@backstage/plugin-techdocs-react": "1.3.14-next.
|
|
88
|
+
"@backstage/plugin-techdocs-react": "1.3.14-next.1",
|
|
89
89
|
"@backstage/types": "1.2.2",
|
|
90
90
|
"@backstage/ui": "0.17.1-next.0",
|
|
91
91
|
"@backstage/version-bridge": "1.0.12",
|
|
@@ -105,12 +105,12 @@
|
|
|
105
105
|
"zod": "^4.0.0"
|
|
106
106
|
},
|
|
107
107
|
"devDependencies": {
|
|
108
|
-
"@backstage/cli": "0.36.5-next.
|
|
109
|
-
"@backstage/core-app-api": "1.20.4-next.
|
|
110
|
-
"@backstage/dev-utils": "1.1.26-next.
|
|
111
|
-
"@backstage/frontend-test-utils": "0.6.3-next.
|
|
108
|
+
"@backstage/cli": "0.36.5-next.1",
|
|
109
|
+
"@backstage/core-app-api": "1.20.4-next.1",
|
|
110
|
+
"@backstage/dev-utils": "1.1.26-next.2",
|
|
111
|
+
"@backstage/frontend-test-utils": "0.6.3-next.1",
|
|
112
112
|
"@backstage/plugin-permission-common": "0.9.9",
|
|
113
|
-
"@backstage/test-utils": "1.7.21-next.
|
|
113
|
+
"@backstage/test-utils": "1.7.21-next.1",
|
|
114
114
|
"@testing-library/dom": "^10.0.0",
|
|
115
115
|
"@testing-library/jest-dom": "^6.0.0",
|
|
116
116
|
"@testing-library/react": "^16.0.0",
|