@backstage/plugin-catalog 0.7.0 → 0.7.4

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.
Files changed (35) hide show
  1. package/CHANGELOG.md +57 -0
  2. package/dist/esm/{index-8f587acc.esm.js → index-09f72bec.esm.js} +3 -3
  3. package/dist/esm/{index-8f587acc.esm.js.map → index-09f72bec.esm.js.map} +1 -1
  4. package/dist/esm/{index-55d1a69b.esm.js → index-0d1fd1c3.esm.js} +3 -3
  5. package/dist/esm/{index-55d1a69b.esm.js.map → index-0d1fd1c3.esm.js.map} +1 -1
  6. package/dist/esm/{index-e3a14e6d.esm.js → index-45f1acd4.esm.js} +3 -3
  7. package/dist/esm/{index-e3a14e6d.esm.js.map → index-45f1acd4.esm.js.map} +1 -1
  8. package/dist/esm/{index-12949ec1.esm.js → index-540af66c.esm.js} +104 -99
  9. package/dist/esm/index-540af66c.esm.js.map +1 -0
  10. package/dist/esm/{index-99e3a23f.esm.js → index-6cad9618.esm.js} +2 -2
  11. package/dist/esm/{index-99e3a23f.esm.js.map → index-6cad9618.esm.js.map} +1 -1
  12. package/dist/esm/{index-a1763104.esm.js → index-90e09538.esm.js} +3 -3
  13. package/dist/esm/index-90e09538.esm.js.map +1 -0
  14. package/dist/esm/{index-f2f98d41.esm.js → index-a83cc17f.esm.js} +3 -3
  15. package/dist/esm/{index-f2f98d41.esm.js.map → index-a83cc17f.esm.js.map} +1 -1
  16. package/dist/esm/{index-8b846736.esm.js → index-c1e7aaef.esm.js} +3 -3
  17. package/dist/esm/index-c1e7aaef.esm.js.map +1 -0
  18. package/dist/esm/{index-99bc5767.esm.js → index-c9b0afd8.esm.js} +6 -6
  19. package/dist/esm/index-c9b0afd8.esm.js.map +1 -0
  20. package/dist/esm/{index-ef2084a6.esm.js → index-ca3eb997.esm.js} +3 -3
  21. package/dist/esm/{index-ef2084a6.esm.js.map → index-ca3eb997.esm.js.map} +1 -1
  22. package/dist/esm/{index-425908da.esm.js → index-ce51b527.esm.js} +8 -8
  23. package/dist/esm/index-ce51b527.esm.js.map +1 -0
  24. package/dist/esm/{index-112e4b31.esm.js → index-f4427460.esm.js} +2 -2
  25. package/dist/esm/{index-112e4b31.esm.js.map → index-f4427460.esm.js.map} +1 -1
  26. package/dist/esm/{presets-f7f427ef.esm.js → presets-42c2cb51.esm.js} +7 -7
  27. package/dist/esm/{presets-f7f427ef.esm.js.map → presets-42c2cb51.esm.js.map} +1 -1
  28. package/dist/index.d.ts +26 -9
  29. package/dist/index.esm.js +2 -2
  30. package/package.json +19 -17
  31. package/dist/esm/index-12949ec1.esm.js.map +0 -1
  32. package/dist/esm/index-425908da.esm.js.map +0 -1
  33. package/dist/esm/index-8b846736.esm.js.map +0 -1
  34. package/dist/esm/index-99bc5767.esm.js.map +0 -1
  35. package/dist/esm/index-a1763104.esm.js.map +0 -1
package/CHANGELOG.md CHANGED
@@ -1,5 +1,62 @@
1
1
  # @backstage/plugin-catalog
2
2
 
3
+ ## 0.7.4
4
+
5
+ ### Patch Changes
6
+
7
+ - 9603827bb5: Addressed some peer dependency warnings
8
+ - cd450844f6: Moved React dependencies to `peerDependencies` and allow both React v16 and v17 to be used.
9
+ - Updated dependencies
10
+ - @backstage/core-components@0.8.0
11
+ - @backstage/core-plugin-api@0.3.0
12
+ - @backstage/integration-react@0.1.15
13
+ - @backstage/plugin-catalog-react@0.6.5
14
+
15
+ ## 0.7.3
16
+
17
+ ### Patch Changes
18
+
19
+ - 38d6df6bb9: Remove the "View Api" icon in the AboutCard, as the information is misleading for some users and is
20
+ duplicated in the tabs above.
21
+ - a125278b81: Refactor out the deprecated path and icon from RouteRefs
22
+ - Updated dependencies
23
+ - @backstage/catalog-client@0.5.2
24
+ - @backstage/catalog-model@0.9.7
25
+ - @backstage/plugin-catalog-react@0.6.4
26
+ - @backstage/core-components@0.7.4
27
+ - @backstage/core-plugin-api@0.2.0
28
+ - @backstage/integration-react@0.1.14
29
+
30
+ ## 0.7.2
31
+
32
+ ### Patch Changes
33
+
34
+ - 36e67d2f24: Internal updates to apply more strict checks to throw errors.
35
+ - Updated dependencies
36
+ - @backstage/core-components@0.7.1
37
+ - @backstage/errors@0.1.3
38
+ - @backstage/core-plugin-api@0.1.11
39
+ - @backstage/plugin-catalog-react@0.6.1
40
+ - @backstage/catalog-model@0.9.5
41
+
42
+ ## 0.7.1
43
+
44
+ ### Patch Changes
45
+
46
+ - 82fbda923e: Introduce a new `StarredEntitiesApi` that is used in the `useStarredEntities` hook.
47
+ The `@backstage/plugin-catalog` installs a default implementation that is backed by the `StorageApi`, but one can also override the `starredEntitiesApiRef`.
48
+
49
+ This change also updates the storage format from a custom string to an entity reference and moves the location in the local storage.
50
+ A migration will convert the previously starred entities to the location on the first load of Backstage.
51
+
52
+ - 93a13dfb42: Support `material-ui` overrides in SystemDiagramCard and EmptityLinksEmptyState components
53
+ - b03b9f19e0: added sorting in entity `Name` column by `metadata.title` if present
54
+ - Updated dependencies
55
+ - @backstage/plugin-catalog-react@0.6.0
56
+ - @backstage/core-components@0.7.0
57
+ - @backstage/theme@0.2.11
58
+ - @backstage/integration-react@0.1.12
59
+
3
60
  ## 0.7.0
4
61
 
5
62
  ### Minor Changes
@@ -1,11 +1,11 @@
1
1
  import { RELATION_DEPENDS_ON } from '@backstage/catalog-model';
2
2
  import React from 'react';
3
- import { R as RelatedEntitiesCard, r as resourceEntityColumns, d as componentEntityHelpLink, f as asResourceEntities } from './presets-f7f427ef.esm.js';
3
+ import { R as RelatedEntitiesCard, r as resourceEntityColumns, d as componentEntityHelpLink, f as asResourceEntities } from './presets-42c2cb51.esm.js';
4
4
  import '@material-ui/core';
5
5
  import '@backstage/plugin-catalog-react';
6
6
  import '@backstage/core-components';
7
7
 
8
- const DependsOnResourcesCard = ({variant = "gridItem"}) => {
8
+ const DependsOnResourcesCard = ({ variant = "gridItem" }) => {
9
9
  return /* @__PURE__ */ React.createElement(RelatedEntitiesCard, {
10
10
  variant,
11
11
  title: "Depends on resources",
@@ -19,4 +19,4 @@ const DependsOnResourcesCard = ({variant = "gridItem"}) => {
19
19
  };
20
20
 
21
21
  export { DependsOnResourcesCard };
22
- //# sourceMappingURL=index-8f587acc.esm.js.map
22
+ //# sourceMappingURL=index-09f72bec.esm.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index-8f587acc.esm.js","sources":["../../src/components/DependsOnResourcesCard/DependsOnResourcesCard.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 { RELATION_DEPENDS_ON } from '@backstage/catalog-model';\nimport React from 'react';\nimport {\n asResourceEntities,\n componentEntityHelpLink,\n RelatedEntitiesCard,\n resourceEntityColumns,\n} from '../RelatedEntitiesCard';\n\ntype Props = {\n variant?: 'gridItem';\n};\n\nexport const DependsOnResourcesCard = ({ variant = 'gridItem' }: Props) => {\n return (\n <RelatedEntitiesCard\n variant={variant}\n title=\"Depends on resources\"\n entityKind=\"Resource\"\n relationType={RELATION_DEPENDS_ON}\n columns={resourceEntityColumns}\n emptyMessage=\"No resource is a dependency of this component\"\n emptyHelpLink={componentEntityHelpLink}\n asRenderableEntities={asResourceEntities}\n />\n );\n};\n"],"names":[],"mappings":";;;;;;;MA6Ba,yBAAyB,CAAC,CAAE,UAAU,gBAAwB;AACzE,6CACG,qBAAD;AAAA,IACE;AAAA,IACA,OAAM;AAAA,IACN,YAAW;AAAA,IACX,cAAc;AAAA,IACd,SAAS;AAAA,IACT,cAAa;AAAA,IACb,eAAe;AAAA,IACf,sBAAsB;AAAA;AAAA;;;;"}
1
+ {"version":3,"file":"index-09f72bec.esm.js","sources":["../../src/components/DependsOnResourcesCard/DependsOnResourcesCard.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 { RELATION_DEPENDS_ON } from '@backstage/catalog-model';\nimport React from 'react';\nimport {\n asResourceEntities,\n componentEntityHelpLink,\n RelatedEntitiesCard,\n resourceEntityColumns,\n} from '../RelatedEntitiesCard';\n\ntype Props = {\n variant?: 'gridItem';\n};\n\nexport const DependsOnResourcesCard = ({ variant = 'gridItem' }: Props) => {\n return (\n <RelatedEntitiesCard\n variant={variant}\n title=\"Depends on resources\"\n entityKind=\"Resource\"\n relationType={RELATION_DEPENDS_ON}\n columns={resourceEntityColumns}\n emptyMessage=\"No resource is a dependency of this component\"\n emptyHelpLink={componentEntityHelpLink}\n asRenderableEntities={asResourceEntities}\n />\n );\n};\n"],"names":[],"mappings":";;;;;;;MA6Ba,yBAAyB,CAAC,EAAE,UAAU,iBAAwB;AACzE,6CACG,qBAAD;AAAA,IACE;AAAA,IACA,OAAM;AAAA,IACN,YAAW;AAAA,IACX,cAAc;AAAA,IACd,SAAS;AAAA,IACT,cAAa;AAAA,IACb,eAAe;AAAA,IACf,sBAAsB;AAAA;AAAA;;;;"}
@@ -1,11 +1,11 @@
1
1
  import { RELATION_HAS_PART } from '@backstage/catalog-model';
2
2
  import React from 'react';
3
- import { R as RelatedEntitiesCard, s as systemEntityColumns, a as asSystemEntities, b as systemEntityHelpLink } from './presets-f7f427ef.esm.js';
3
+ import { R as RelatedEntitiesCard, s as systemEntityColumns, a as asSystemEntities, b as systemEntityHelpLink } from './presets-42c2cb51.esm.js';
4
4
  import '@material-ui/core';
5
5
  import '@backstage/plugin-catalog-react';
6
6
  import '@backstage/core-components';
7
7
 
8
- const HasSystemsCard = ({variant = "gridItem"}) => {
8
+ const HasSystemsCard = ({ variant = "gridItem" }) => {
9
9
  return /* @__PURE__ */ React.createElement(RelatedEntitiesCard, {
10
10
  variant,
11
11
  title: "Has systems",
@@ -19,4 +19,4 @@ const HasSystemsCard = ({variant = "gridItem"}) => {
19
19
  };
20
20
 
21
21
  export { HasSystemsCard };
22
- //# sourceMappingURL=index-55d1a69b.esm.js.map
22
+ //# sourceMappingURL=index-0d1fd1c3.esm.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index-55d1a69b.esm.js","sources":["../../src/components/HasSystemsCard/HasSystemsCard.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 { RELATION_HAS_PART } from '@backstage/catalog-model';\nimport React from 'react';\nimport {\n asSystemEntities,\n RelatedEntitiesCard,\n systemEntityColumns,\n systemEntityHelpLink,\n} from '../RelatedEntitiesCard';\n\ntype Props = {\n variant?: 'gridItem';\n};\n\nexport const HasSystemsCard = ({ variant = 'gridItem' }: Props) => {\n return (\n <RelatedEntitiesCard\n variant={variant}\n title=\"Has systems\"\n entityKind=\"System\"\n relationType={RELATION_HAS_PART}\n columns={systemEntityColumns}\n asRenderableEntities={asSystemEntities}\n emptyMessage=\"No system is part of this domain\"\n emptyHelpLink={systemEntityHelpLink}\n />\n );\n};\n"],"names":[],"mappings":";;;;;;;MA6Ba,iBAAiB,CAAC,CAAE,UAAU,gBAAwB;AACjE,6CACG,qBAAD;AAAA,IACE;AAAA,IACA,OAAM;AAAA,IACN,YAAW;AAAA,IACX,cAAc;AAAA,IACd,SAAS;AAAA,IACT,sBAAsB;AAAA,IACtB,cAAa;AAAA,IACb,eAAe;AAAA;AAAA;;;;"}
1
+ {"version":3,"file":"index-0d1fd1c3.esm.js","sources":["../../src/components/HasSystemsCard/HasSystemsCard.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 { RELATION_HAS_PART } from '@backstage/catalog-model';\nimport React from 'react';\nimport {\n asSystemEntities,\n RelatedEntitiesCard,\n systemEntityColumns,\n systemEntityHelpLink,\n} from '../RelatedEntitiesCard';\n\ntype Props = {\n variant?: 'gridItem';\n};\n\nexport const HasSystemsCard = ({ variant = 'gridItem' }: Props) => {\n return (\n <RelatedEntitiesCard\n variant={variant}\n title=\"Has systems\"\n entityKind=\"System\"\n relationType={RELATION_HAS_PART}\n columns={systemEntityColumns}\n asRenderableEntities={asSystemEntities}\n emptyMessage=\"No system is part of this domain\"\n emptyHelpLink={systemEntityHelpLink}\n />\n );\n};\n"],"names":[],"mappings":";;;;;;;MA6Ba,iBAAiB,CAAC,EAAE,UAAU,iBAAwB;AACjE,6CACG,qBAAD;AAAA,IACE;AAAA,IACA,OAAM;AAAA,IACN,YAAW;AAAA,IACX,cAAc;AAAA,IACd,SAAS;AAAA,IACT,sBAAsB;AAAA,IACtB,cAAa;AAAA,IACb,eAAe;AAAA;AAAA;;;;"}
@@ -1,11 +1,11 @@
1
1
  import { RELATION_HAS_PART } from '@backstage/catalog-model';
2
2
  import React from 'react';
3
- import { R as RelatedEntitiesCard, c as componentEntityColumns, d as componentEntityHelpLink, e as asComponentEntities } from './presets-f7f427ef.esm.js';
3
+ import { R as RelatedEntitiesCard, c as componentEntityColumns, d as componentEntityHelpLink, e as asComponentEntities } from './presets-42c2cb51.esm.js';
4
4
  import '@material-ui/core';
5
5
  import '@backstage/plugin-catalog-react';
6
6
  import '@backstage/core-components';
7
7
 
8
- const HasComponentsCard = ({variant = "gridItem"}) => {
8
+ const HasComponentsCard = ({ variant = "gridItem" }) => {
9
9
  return /* @__PURE__ */ React.createElement(RelatedEntitiesCard, {
10
10
  variant,
11
11
  title: "Has components",
@@ -19,4 +19,4 @@ const HasComponentsCard = ({variant = "gridItem"}) => {
19
19
  };
20
20
 
21
21
  export { HasComponentsCard };
22
- //# sourceMappingURL=index-e3a14e6d.esm.js.map
22
+ //# sourceMappingURL=index-45f1acd4.esm.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index-e3a14e6d.esm.js","sources":["../../src/components/HasComponentsCard/HasComponentsCard.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 { RELATION_HAS_PART } from '@backstage/catalog-model';\nimport React from 'react';\nimport {\n asComponentEntities,\n componentEntityColumns,\n componentEntityHelpLink,\n RelatedEntitiesCard,\n} from '../RelatedEntitiesCard';\n\ntype Props = {\n variant?: 'gridItem';\n};\n\nexport const HasComponentsCard = ({ variant = 'gridItem' }: Props) => {\n return (\n <RelatedEntitiesCard\n variant={variant}\n title=\"Has components\"\n entityKind=\"Component\"\n relationType={RELATION_HAS_PART}\n columns={componentEntityColumns}\n emptyMessage=\"No component is part of this system\"\n emptyHelpLink={componentEntityHelpLink}\n asRenderableEntities={asComponentEntities}\n />\n );\n};\n"],"names":[],"mappings":";;;;;;;MA6Ba,oBAAoB,CAAC,CAAE,UAAU,gBAAwB;AACpE,6CACG,qBAAD;AAAA,IACE;AAAA,IACA,OAAM;AAAA,IACN,YAAW;AAAA,IACX,cAAc;AAAA,IACd,SAAS;AAAA,IACT,cAAa;AAAA,IACb,eAAe;AAAA,IACf,sBAAsB;AAAA;AAAA;;;;"}
1
+ {"version":3,"file":"index-45f1acd4.esm.js","sources":["../../src/components/HasComponentsCard/HasComponentsCard.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 { RELATION_HAS_PART } from '@backstage/catalog-model';\nimport React from 'react';\nimport {\n asComponentEntities,\n componentEntityColumns,\n componentEntityHelpLink,\n RelatedEntitiesCard,\n} from '../RelatedEntitiesCard';\n\ntype Props = {\n variant?: 'gridItem';\n};\n\nexport const HasComponentsCard = ({ variant = 'gridItem' }: Props) => {\n return (\n <RelatedEntitiesCard\n variant={variant}\n title=\"Has components\"\n entityKind=\"Component\"\n relationType={RELATION_HAS_PART}\n columns={componentEntityColumns}\n emptyMessage=\"No component is part of this system\"\n emptyHelpLink={componentEntityHelpLink}\n asRenderableEntities={asComponentEntities}\n />\n );\n};\n"],"names":[],"mappings":";;;;;;;MA6Ba,oBAAoB,CAAC,EAAE,UAAU,iBAAwB;AACpE,6CACG,qBAAD;AAAA,IACE;AAAA,IACA,OAAM;AAAA,IACN,YAAW;AAAA,IACX,cAAc;AAAA,IACd,SAAS;AAAA,IACT,cAAa;AAAA,IACb,eAAe;AAAA,IACf,sBAAsB;AAAA;AAAA;;;;"}