@backstage/plugin-catalog-graph 0.5.7-next.0 → 0.5.7-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 +25 -0
- package/dist/alpha.d.ts +8 -7
- package/dist/components/EntityRelationsGraph/EntityIcon.esm.js +11 -1
- package/dist/components/EntityRelationsGraph/EntityIcon.esm.js.map +1 -1
- package/dist/package.json.esm.js +4 -3
- package/dist/package.json.esm.js.map +1 -1
- package/package.json +14 -13
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,30 @@
|
|
|
1
1
|
# @backstage/plugin-catalog-graph
|
|
2
2
|
|
|
3
|
+
## 0.5.7-next.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- ac9bead: Added `@backstage/frontend-test-utils` dev dependency.
|
|
8
|
+
- 7feb83b: Adjusted to use the new `@backstage/filter-predicates` types for predicate expressions.
|
|
9
|
+
- 4183614: Updated usage of deprecated APIs in the new frontend system.
|
|
10
|
+
- a7e0d50: Prepare for React Router v7 migration by updating to v6.30.2 across all NFS packages and enabling v7 future flags. Convert routes from splat paths to parent/child structure with Outlet components.
|
|
11
|
+
- Updated dependencies
|
|
12
|
+
- @backstage/plugin-catalog-react@2.0.0-next.2
|
|
13
|
+
- @backstage/catalog-client@1.12.2-next.0
|
|
14
|
+
- @backstage/frontend-plugin-api@0.14.0-next.2
|
|
15
|
+
- @backstage/core-components@0.18.7-next.2
|
|
16
|
+
- @backstage/core-plugin-api@1.12.3-next.1
|
|
17
|
+
|
|
18
|
+
## 0.5.7-next.1
|
|
19
|
+
|
|
20
|
+
### Patch Changes
|
|
21
|
+
|
|
22
|
+
- 8dd27c4: Fix large icon rendering in catalog graph nodes
|
|
23
|
+
- Updated dependencies
|
|
24
|
+
- @backstage/plugin-catalog-react@1.22.0-next.1
|
|
25
|
+
- @backstage/frontend-plugin-api@0.14.0-next.1
|
|
26
|
+
- @backstage/core-components@0.18.7-next.1
|
|
27
|
+
|
|
3
28
|
## 0.5.7-next.0
|
|
4
29
|
|
|
5
30
|
### Patch Changes
|
package/dist/alpha.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import * as _backstage_plugin_catalog_react_alpha from '@backstage/plugin-catalog-react/alpha';
|
|
1
2
|
import * as _backstage_catalog_model from '@backstage/catalog-model';
|
|
2
3
|
import * as react from 'react';
|
|
3
|
-
import * as
|
|
4
|
+
import * as _backstage_filter_predicates from '@backstage/filter-predicates';
|
|
4
5
|
import * as _backstage_frontend_plugin_api from '@backstage/frontend-plugin-api';
|
|
5
6
|
import * as _backstage_core_plugin_api from '@backstage/core-plugin-api';
|
|
6
7
|
|
|
@@ -60,8 +61,8 @@ declare const _default: _backstage_frontend_plugin_api.OverridableFrontendPlugin
|
|
|
60
61
|
curve: "curveStepBefore" | "curveMonotoneX" | undefined;
|
|
61
62
|
title: string | undefined;
|
|
62
63
|
height: number | undefined;
|
|
63
|
-
filter:
|
|
64
|
-
type: "content" | "
|
|
64
|
+
filter: _backstage_filter_predicates.FilterPredicate | undefined;
|
|
65
|
+
type: "content" | "info" | undefined;
|
|
65
66
|
};
|
|
66
67
|
configInput: {
|
|
67
68
|
height?: number | undefined;
|
|
@@ -75,8 +76,8 @@ declare const _default: _backstage_frontend_plugin_api.OverridableFrontendPlugin
|
|
|
75
76
|
mergeRelations?: boolean | undefined;
|
|
76
77
|
relationPairs?: [string, string][] | undefined;
|
|
77
78
|
unidirectional?: boolean | undefined;
|
|
78
|
-
filter?:
|
|
79
|
-
type?: "content" | "
|
|
79
|
+
filter?: _backstage_filter_predicates.FilterPredicate | undefined;
|
|
80
|
+
type?: "content" | "info" | undefined;
|
|
80
81
|
};
|
|
81
82
|
output: _backstage_frontend_plugin_api.ExtensionDataRef<react.JSX.Element, "core.reactElement", {}> | _backstage_frontend_plugin_api.ExtensionDataRef<(entity: _backstage_catalog_model.Entity) => boolean, "catalog.entity-filter-function", {
|
|
82
83
|
optional: true;
|
|
@@ -90,7 +91,7 @@ declare const _default: _backstage_frontend_plugin_api.OverridableFrontendPlugin
|
|
|
90
91
|
name: "relations";
|
|
91
92
|
params: {
|
|
92
93
|
loader: () => Promise<JSX.Element>;
|
|
93
|
-
filter?: string |
|
|
94
|
+
filter?: string | _backstage_filter_predicates.FilterPredicate | ((entity: _backstage_catalog_model.Entity) => boolean);
|
|
94
95
|
type?: _backstage_plugin_catalog_react_alpha.EntityCardType;
|
|
95
96
|
};
|
|
96
97
|
}>;
|
|
@@ -116,8 +117,8 @@ declare const _default: _backstage_frontend_plugin_api.OverridableFrontendPlugin
|
|
|
116
117
|
direction?: "TB" | "BT" | "LR" | "RL" | undefined;
|
|
117
118
|
zoom?: "disabled" | "enabled" | "enable-on-click" | undefined;
|
|
118
119
|
relations?: string[] | undefined;
|
|
119
|
-
rootEntityRefs?: string[] | undefined;
|
|
120
120
|
maxDepth?: number | undefined;
|
|
121
|
+
rootEntityRefs?: string[] | undefined;
|
|
121
122
|
kinds?: string[] | undefined;
|
|
122
123
|
mergeRelations?: boolean | undefined;
|
|
123
124
|
relationPairs?: [string, string][] | undefined;
|
|
@@ -3,10 +3,20 @@ import SvgIcon from '@material-ui/core/SvgIcon';
|
|
|
3
3
|
|
|
4
4
|
function EntityIcon({
|
|
5
5
|
icon,
|
|
6
|
+
width,
|
|
7
|
+
height,
|
|
6
8
|
...props
|
|
7
9
|
}) {
|
|
8
10
|
const Icon = icon ?? SvgIcon;
|
|
9
|
-
return /* @__PURE__ */ jsx(
|
|
11
|
+
return /* @__PURE__ */ jsx(
|
|
12
|
+
Icon,
|
|
13
|
+
{
|
|
14
|
+
style: { width, height, fontSize: height },
|
|
15
|
+
width,
|
|
16
|
+
height,
|
|
17
|
+
...props
|
|
18
|
+
}
|
|
19
|
+
);
|
|
10
20
|
}
|
|
11
21
|
|
|
12
22
|
export { EntityIcon };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EntityIcon.esm.js","sources":["../../../src/components/EntityRelationsGraph/EntityIcon.tsx"],"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 */\nimport SvgIcon from '@material-ui/core/SvgIcon';\nimport { OverridableComponent } from '@material-ui/core/OverridableComponent';\nimport { SvgIconTypeMap } from '@material-ui/core/SvgIcon/SvgIcon';\nimport { IconComponent } from '@backstage/core-plugin-api';\n\nexport function EntityIcon({\n icon,\n ...props\n}: {\n icon: IconComponent | undefined;\n x?: number;\n y?: number;\n width?: number;\n height?: number;\n className?: string;\n}) {\n const Icon = (icon as OverridableComponent<SvgIconTypeMap>) ?? SvgIcon;\n return <Icon {...props}
|
|
1
|
+
{"version":3,"file":"EntityIcon.esm.js","sources":["../../../src/components/EntityRelationsGraph/EntityIcon.tsx"],"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 */\nimport SvgIcon from '@material-ui/core/SvgIcon';\nimport { OverridableComponent } from '@material-ui/core/OverridableComponent';\nimport { SvgIconTypeMap } from '@material-ui/core/SvgIcon/SvgIcon';\nimport { IconComponent } from '@backstage/core-plugin-api';\n\nexport function EntityIcon({\n icon,\n width,\n height,\n ...props\n}: {\n icon: IconComponent | undefined;\n x?: number;\n y?: number;\n width?: number;\n height?: number;\n className?: string;\n}) {\n const Icon = (icon as OverridableComponent<SvgIconTypeMap>) ?? SvgIcon;\n return (\n <Icon\n style={{ width, height, fontSize: height }}\n width={width}\n height={height}\n {...props}\n />\n );\n}\n"],"names":[],"mappings":";;;AAoBO,SAAS,UAAA,CAAW;AAAA,EACzB,IAAA;AAAA,EACA,KAAA;AAAA,EACA,MAAA;AAAA,EACA,GAAG;AACL,CAAA,EAOG;AACD,EAAA,MAAM,OAAQ,IAAA,IAAiD,OAAA;AAC/D,EAAA,uBACE,GAAA;AAAA,IAAC,IAAA;AAAA,IAAA;AAAA,MACC,KAAA,EAAO,EAAE,KAAA,EAAO,MAAA,EAAQ,UAAU,MAAA,EAAO;AAAA,MACzC,KAAA;AAAA,MACA,MAAA;AAAA,MACC,GAAG;AAAA;AAAA,GACN;AAEJ;;;;"}
|
package/dist/package.json.esm.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
var name = "@backstage/plugin-catalog-graph";
|
|
2
|
-
var version = "0.5.7-next.
|
|
2
|
+
var version = "0.5.7-next.2";
|
|
3
3
|
var backstage = {
|
|
4
4
|
role: "frontend-plugin",
|
|
5
5
|
pluginId: "catalog-graph",
|
|
@@ -68,6 +68,7 @@ var devDependencies = {
|
|
|
68
68
|
"@backstage/cli": "workspace:^",
|
|
69
69
|
"@backstage/core-app-api": "workspace:^",
|
|
70
70
|
"@backstage/dev-utils": "workspace:^",
|
|
71
|
+
"@backstage/frontend-test-utils": "workspace:^",
|
|
71
72
|
"@backstage/plugin-catalog": "workspace:^",
|
|
72
73
|
"@backstage/test-utils": "workspace:^",
|
|
73
74
|
"@testing-library/dom": "^10.0.0",
|
|
@@ -77,13 +78,13 @@ var devDependencies = {
|
|
|
77
78
|
"@types/react": "^18.0.0",
|
|
78
79
|
react: "^18.0.2",
|
|
79
80
|
"react-dom": "^18.0.2",
|
|
80
|
-
"react-router-dom": "^6.
|
|
81
|
+
"react-router-dom": "^6.30.2"
|
|
81
82
|
};
|
|
82
83
|
var peerDependencies = {
|
|
83
84
|
"@types/react": "^17.0.0 || ^18.0.0",
|
|
84
85
|
react: "^17.0.0 || ^18.0.0",
|
|
85
86
|
"react-dom": "^17.0.0 || ^18.0.0",
|
|
86
|
-
"react-router-dom": "^6.
|
|
87
|
+
"react-router-dom": "^6.30.2"
|
|
87
88
|
};
|
|
88
89
|
var peerDependenciesMeta = {
|
|
89
90
|
"@types/react": {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"package.json.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"package.json.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@backstage/plugin-catalog-graph",
|
|
3
|
-
"version": "0.5.7-next.
|
|
3
|
+
"version": "0.5.7-next.2",
|
|
4
4
|
"backstage": {
|
|
5
5
|
"role": "frontend-plugin",
|
|
6
6
|
"pluginId": "catalog-graph",
|
|
@@ -61,12 +61,12 @@
|
|
|
61
61
|
"test": "backstage-cli package test"
|
|
62
62
|
},
|
|
63
63
|
"dependencies": {
|
|
64
|
-
"@backstage/catalog-client": "1.12.
|
|
64
|
+
"@backstage/catalog-client": "1.12.2-next.0",
|
|
65
65
|
"@backstage/catalog-model": "1.7.6",
|
|
66
|
-
"@backstage/core-components": "0.18.
|
|
67
|
-
"@backstage/core-plugin-api": "1.12.
|
|
68
|
-
"@backstage/frontend-plugin-api": "0.14.0-next.
|
|
69
|
-
"@backstage/plugin-catalog-react": "
|
|
66
|
+
"@backstage/core-components": "0.18.7-next.2",
|
|
67
|
+
"@backstage/core-plugin-api": "1.12.3-next.1",
|
|
68
|
+
"@backstage/frontend-plugin-api": "0.14.0-next.2",
|
|
69
|
+
"@backstage/plugin-catalog-react": "2.0.0-next.2",
|
|
70
70
|
"@backstage/types": "1.2.2",
|
|
71
71
|
"@material-ui/core": "^4.12.2",
|
|
72
72
|
"@material-ui/icons": "^4.9.1",
|
|
@@ -78,11 +78,12 @@
|
|
|
78
78
|
"react-use": "^17.2.4"
|
|
79
79
|
},
|
|
80
80
|
"devDependencies": {
|
|
81
|
-
"@backstage/cli": "0.35.
|
|
82
|
-
"@backstage/core-app-api": "1.19.
|
|
83
|
-
"@backstage/dev-utils": "1.1.20-next.
|
|
84
|
-
"@backstage/
|
|
85
|
-
"@backstage/
|
|
81
|
+
"@backstage/cli": "0.35.4-next.2",
|
|
82
|
+
"@backstage/core-app-api": "1.19.5-next.1",
|
|
83
|
+
"@backstage/dev-utils": "1.1.20-next.2",
|
|
84
|
+
"@backstage/frontend-test-utils": "0.5.0-next.2",
|
|
85
|
+
"@backstage/plugin-catalog": "1.33.0-next.2",
|
|
86
|
+
"@backstage/test-utils": "1.7.15-next.2",
|
|
86
87
|
"@testing-library/dom": "^10.0.0",
|
|
87
88
|
"@testing-library/jest-dom": "^6.0.0",
|
|
88
89
|
"@testing-library/react": "^16.0.0",
|
|
@@ -90,13 +91,13 @@
|
|
|
90
91
|
"@types/react": "^18.0.0",
|
|
91
92
|
"react": "^18.0.2",
|
|
92
93
|
"react-dom": "^18.0.2",
|
|
93
|
-
"react-router-dom": "^6.
|
|
94
|
+
"react-router-dom": "^6.30.2"
|
|
94
95
|
},
|
|
95
96
|
"peerDependencies": {
|
|
96
97
|
"@types/react": "^17.0.0 || ^18.0.0",
|
|
97
98
|
"react": "^17.0.0 || ^18.0.0",
|
|
98
99
|
"react-dom": "^17.0.0 || ^18.0.0",
|
|
99
|
-
"react-router-dom": "^6.
|
|
100
|
+
"react-router-dom": "^6.30.2"
|
|
100
101
|
},
|
|
101
102
|
"peerDependenciesMeta": {
|
|
102
103
|
"@types/react": {
|