@backstage/plugin-catalog 2.0.8-next.0 → 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,32 @@
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
+
19
+ ## 2.0.8-next.1
20
+
21
+ ### Patch Changes
22
+
23
+ - 1d026b0: Added explicit type annotations to `FilterContainer` and `EntityListContainer` re-exports for forward-compatibility with TypeScript 7.
24
+ - Updated dependencies
25
+ - @backstage/plugin-catalog-react@3.2.1-next.1
26
+ - @backstage/core-components@0.18.13-next.1
27
+ - @backstage/integration-react@1.2.21-next.0
28
+ - @backstage/plugin-scaffolder-common@2.2.2-next.0
29
+
3
30
  ## 2.0.8-next.0
4
31
 
5
32
  ### 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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AQ,OACzC,QAAA,EAAA,KAAA,EACH,CAAA;AAAA,IACC;AAAA,GAAA,EACH,CAAA;AAEJ;;;;"}
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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,EAAU,MAAK,SAAA,EAAW,OAAA,CAAQ,OAC7D,QAAA,EAAA,KAAA,EACH,CAAA;AAAA,IACC;AAAA,GAAA,EACH,CAAA;AAEJ;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.esm.js","sources":["../../../src/components/FilteredEntityLayout/index.ts"],"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 { CatalogFilterLayout } from '@backstage/plugin-catalog-react';\n\n/**\n * @public\n * @deprecated Use `CatalogFilterLayout` from `@backstage/plugin-catalog-react` instead.\n */\nexport const FilteredEntityLayout = CatalogFilterLayout as (props: {\n children: React.ReactNode;\n}) => JSX.Element;\n\n/**\n * @public\n * @deprecated Use `CatalogFilterLayout.Filters` from `@backstage/plugin-catalog-react` instead.\n */\nexport const FilterContainer = CatalogFilterLayout.Filters;\n\n/**\n * @public\n * @deprecated Use `CatalogFilterLayout.Content` from `@backstage/plugin-catalog-react` instead.\n */\nexport const EntityListContainer = CatalogFilterLayout.Content;\n"],"names":[],"mappings":";;AAsBO,MAAM,oBAAA,GAAuB;AAQ7B,MAAM,kBAAkB,mBAAA,CAAoB;AAM5C,MAAM,sBAAsB,mBAAA,CAAoB;;;;"}
1
+ {"version":3,"file":"index.esm.js","sources":["../../../src/components/FilteredEntityLayout/index.ts"],"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 { CatalogFilterLayout } from '@backstage/plugin-catalog-react';\n\n/**\n * @public\n * @deprecated Use `CatalogFilterLayout` from `@backstage/plugin-catalog-react` instead.\n */\nexport const FilteredEntityLayout = CatalogFilterLayout as (props: {\n children: React.ReactNode;\n}) => JSX.Element;\n\n/**\n * @public\n * @deprecated Use `CatalogFilterLayout.Filters` from `@backstage/plugin-catalog-react` instead.\n */\nexport const FilterContainer: typeof CatalogFilterLayout.Filters =\n CatalogFilterLayout.Filters;\n\n/**\n * @public\n * @deprecated Use `CatalogFilterLayout.Content` from `@backstage/plugin-catalog-react` instead.\n */\nexport const EntityListContainer: typeof CatalogFilterLayout.Content =\n CatalogFilterLayout.Content;\n"],"names":[],"mappings":";;AAsBO,MAAM,oBAAA,GAAuB;AAQ7B,MAAM,kBACX,mBAAA,CAAoB;AAMf,MAAM,sBACX,mBAAA,CAAoB;;;;"}
package/dist/index.d.ts CHANGED
@@ -1,10 +1,9 @@
1
1
  import { Entity, ComponentEntity, ResourceEntity, DomainEntity, SystemEntity } from '@backstage/catalog-model';
2
2
  import * as _backstage_core_plugin_api from '@backstage/core-plugin-api';
3
3
  import { IconComponent, StorageApi, ApiHolder } from '@backstage/core-plugin-api';
4
- import { EntityPresentationApi, CatalogApi, EntityRefPresentationSnapshot, EntityRefPresentation, StarredEntitiesApi } from '@backstage/plugin-catalog-react';
4
+ import { EntityPresentationApi, CatalogApi, EntityRefPresentationSnapshot, EntityRefPresentation, StarredEntitiesApi, CatalogFilterLayout } from '@backstage/plugin-catalog-react';
5
5
  import { HumanDuration, Observable } from '@backstage/types';
6
6
  import * as react_jsx_runtime from 'react/jsx-runtime';
7
- import * as react from 'react';
8
7
  import { ReactNode, ElementType } from 'react';
9
8
  import { TableColumn, TableProps, InfoCardVariants, TableOptions } from '@backstage/core-components';
10
9
  import { e as CatalogTableRow, d as CatalogTableColumnsFunc, D as DefaultCatalogPageProps } from './types/DefaultCatalogPage.d-BuCpeSQx.js';
@@ -440,20 +439,12 @@ declare const FilteredEntityLayout: (props: {
440
439
  * @public
441
440
  * @deprecated Use `CatalogFilterLayout.Filters` from `@backstage/plugin-catalog-react` instead.
442
441
  */
443
- declare const FilterContainer: (props: {
444
- children: react.ReactNode;
445
- options?: {
446
- drawerBreakpoint?: "xs" | "sm" | "md" | "lg" | "xl" | number;
447
- drawerAnchor?: "left" | "right" | "top" | "bottom";
448
- };
449
- }) => react_jsx_runtime.JSX.Element;
442
+ declare const FilterContainer: typeof CatalogFilterLayout.Filters;
450
443
  /**
451
444
  * @public
452
445
  * @deprecated Use `CatalogFilterLayout.Content` from `@backstage/plugin-catalog-react` instead.
453
446
  */
454
- declare const EntityListContainer: (props: {
455
- children: react.ReactNode;
456
- }) => react_jsx_runtime.JSX.Element;
447
+ declare const EntityListContainer: typeof CatalogFilterLayout.Content;
457
448
 
458
449
  /** @public */
459
450
  type Breakpoint = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
@@ -1,5 +1,5 @@
1
1
  var name = "@backstage/plugin-catalog";
2
- var version = "2.0.8-next.0";
2
+ var version = "2.0.8-next.2";
3
3
  var description = "The Backstage plugin for browsing the Backstage catalog";
4
4
  var backstage = {
5
5
  role: "frontend-plugin",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@backstage/plugin-catalog",
3
- "version": "2.0.8-next.0",
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.0",
76
- "@backstage/core-components": "0.18.13-next.0",
77
- "@backstage/core-plugin-api": "1.12.8",
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.17.3",
80
- "@backstage/integration-react": "1.2.20",
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.0",
83
- "@backstage/plugin-permission-react": "0.5.3",
84
- "@backstage/plugin-scaffolder-common": "2.2.1",
82
+ "@backstage/plugin-catalog-react": "3.2.1-next.2",
83
+ "@backstage/plugin-permission-react": "0.5.4-next.0",
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.0",
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.0",
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.4",
109
- "@backstage/core-app-api": "1.20.4-next.0",
110
- "@backstage/dev-utils": "1.1.26-next.0",
111
- "@backstage/frontend-test-utils": "0.6.3-next.0",
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.0",
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",