@backstage/plugin-catalog-graph 0.5.2 → 0.5.3-next.1
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 +26 -0
- package/dist/alpha.d.ts +6 -7
- package/dist/index.d.ts +18 -5
- package/dist/lib/types/graph.esm.js +18 -7
- package/dist/lib/types/graph.esm.js.map +1 -1
- package/dist/package.json.esm.js +1 -1
- package/package.json +14 -14
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,31 @@
|
|
|
1
1
|
# @backstage/plugin-catalog-graph
|
|
2
2
|
|
|
3
|
+
## 0.5.3-next.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- b2bef92: Convert all enums to erasable-syntax compliant patterns
|
|
8
|
+
- Updated dependencies
|
|
9
|
+
- @backstage/plugin-catalog-react@1.21.3-next.1
|
|
10
|
+
- @backstage/core-components@0.18.3-next.1
|
|
11
|
+
- @backstage/core-plugin-api@1.11.2-next.1
|
|
12
|
+
- @backstage/frontend-plugin-api@0.12.2-next.1
|
|
13
|
+
- @backstage/core-compat-api@0.5.4-next.0
|
|
14
|
+
|
|
15
|
+
## 0.5.3-next.0
|
|
16
|
+
|
|
17
|
+
### Patch Changes
|
|
18
|
+
|
|
19
|
+
- Updated dependencies
|
|
20
|
+
- @backstage/plugin-catalog-react@1.21.3-next.0
|
|
21
|
+
- @backstage/core-plugin-api@1.11.2-next.0
|
|
22
|
+
- @backstage/core-components@0.18.3-next.0
|
|
23
|
+
- @backstage/catalog-model@1.7.6-next.0
|
|
24
|
+
- @backstage/frontend-plugin-api@0.12.2-next.0
|
|
25
|
+
- @backstage/catalog-client@1.12.1-next.0
|
|
26
|
+
- @backstage/core-compat-api@0.5.4-next.0
|
|
27
|
+
- @backstage/types@1.2.2
|
|
28
|
+
|
|
3
29
|
## 0.5.2
|
|
4
30
|
|
|
5
31
|
### Patch Changes
|
package/dist/alpha.d.ts
CHANGED
|
@@ -2,7 +2,6 @@ import * as _backstage_catalog_model from '@backstage/catalog-model';
|
|
|
2
2
|
import * as react from 'react';
|
|
3
3
|
import * as _backstage_plugin_catalog_react_alpha from '@backstage/plugin-catalog-react/alpha';
|
|
4
4
|
import * as _backstage_frontend_plugin_api from '@backstage/frontend-plugin-api';
|
|
5
|
-
import { Direction } from '@backstage/plugin-catalog-graph';
|
|
6
5
|
|
|
7
6
|
/** @alpha */
|
|
8
7
|
declare const catalogGraphTranslationRef: _backstage_frontend_plugin_api.TranslationRef<"catalog-graph", {
|
|
@@ -54,7 +53,7 @@ declare const _default: _backstage_frontend_plugin_api.OverridableFrontendPlugin
|
|
|
54
53
|
maxDepth: number | undefined;
|
|
55
54
|
unidirectional: boolean | undefined;
|
|
56
55
|
mergeRelations: boolean | undefined;
|
|
57
|
-
direction:
|
|
56
|
+
direction: "TB" | "BT" | "LR" | "RL" | undefined;
|
|
58
57
|
relationPairs: [string, string][] | undefined;
|
|
59
58
|
zoom: "disabled" | "enabled" | "enable-on-click" | undefined;
|
|
60
59
|
curve: "curveStepBefore" | "curveMonotoneX" | undefined;
|
|
@@ -67,7 +66,7 @@ declare const _default: _backstage_frontend_plugin_api.OverridableFrontendPlugin
|
|
|
67
66
|
configInput: {
|
|
68
67
|
height?: number | undefined;
|
|
69
68
|
curve?: "curveStepBefore" | "curveMonotoneX" | undefined;
|
|
70
|
-
direction?:
|
|
69
|
+
direction?: "TB" | "BT" | "LR" | "RL" | undefined;
|
|
71
70
|
zoom?: "disabled" | "enabled" | "enable-on-click" | undefined;
|
|
72
71
|
title?: string | undefined;
|
|
73
72
|
relations?: string[] | undefined;
|
|
@@ -89,8 +88,8 @@ declare const _default: _backstage_frontend_plugin_api.OverridableFrontendPlugin
|
|
|
89
88
|
}>;
|
|
90
89
|
inputs: {
|
|
91
90
|
[x: string]: _backstage_frontend_plugin_api.ExtensionInput<_backstage_frontend_plugin_api.ExtensionDataRef, {
|
|
92
|
-
optional: boolean;
|
|
93
91
|
singleton: boolean;
|
|
92
|
+
optional: boolean;
|
|
94
93
|
}>;
|
|
95
94
|
};
|
|
96
95
|
kind: "entity-card";
|
|
@@ -109,7 +108,7 @@ declare const _default: _backstage_frontend_plugin_api.OverridableFrontendPlugin
|
|
|
109
108
|
maxDepth: number | undefined;
|
|
110
109
|
unidirectional: boolean | undefined;
|
|
111
110
|
mergeRelations: boolean | undefined;
|
|
112
|
-
direction:
|
|
111
|
+
direction: "TB" | "BT" | "LR" | "RL" | undefined;
|
|
113
112
|
showFilters: boolean | undefined;
|
|
114
113
|
curve: "curveStepBefore" | "curveMonotoneX" | undefined;
|
|
115
114
|
kinds: string[] | undefined;
|
|
@@ -121,7 +120,7 @@ declare const _default: _backstage_frontend_plugin_api.OverridableFrontendPlugin
|
|
|
121
120
|
};
|
|
122
121
|
configInput: {
|
|
123
122
|
curve?: "curveStepBefore" | "curveMonotoneX" | undefined;
|
|
124
|
-
direction?:
|
|
123
|
+
direction?: "TB" | "BT" | "LR" | "RL" | undefined;
|
|
125
124
|
zoom?: "disabled" | "enabled" | "enable-on-click" | undefined;
|
|
126
125
|
relations?: string[] | undefined;
|
|
127
126
|
rootEntityRefs?: string[] | undefined;
|
|
@@ -141,8 +140,8 @@ declare const _default: _backstage_frontend_plugin_api.OverridableFrontendPlugin
|
|
|
141
140
|
}>;
|
|
142
141
|
inputs: {
|
|
143
142
|
[x: string]: _backstage_frontend_plugin_api.ExtensionInput<_backstage_frontend_plugin_api.ExtensionDataRef, {
|
|
144
|
-
optional: boolean;
|
|
145
143
|
singleton: boolean;
|
|
144
|
+
optional: boolean;
|
|
146
145
|
}>;
|
|
147
146
|
};
|
|
148
147
|
kind: "page";
|
package/dist/index.d.ts
CHANGED
|
@@ -110,23 +110,36 @@ type EntityNode = DependencyGraphTypes.DependencyNode<EntityNodeData>;
|
|
|
110
110
|
*
|
|
111
111
|
* @public
|
|
112
112
|
*/
|
|
113
|
-
declare
|
|
113
|
+
declare const Direction: {
|
|
114
114
|
/**
|
|
115
115
|
* Top to bottom.
|
|
116
116
|
*/
|
|
117
|
-
TOP_BOTTOM
|
|
117
|
+
readonly TOP_BOTTOM: "TB";
|
|
118
118
|
/**
|
|
119
119
|
* Bottom to top.
|
|
120
120
|
*/
|
|
121
|
-
BOTTOM_TOP
|
|
121
|
+
readonly BOTTOM_TOP: "BT";
|
|
122
122
|
/**
|
|
123
123
|
* Left to right.
|
|
124
124
|
*/
|
|
125
|
-
LEFT_RIGHT
|
|
125
|
+
readonly LEFT_RIGHT: "LR";
|
|
126
126
|
/**
|
|
127
127
|
* Right to left.
|
|
128
128
|
*/
|
|
129
|
-
RIGHT_LEFT
|
|
129
|
+
readonly RIGHT_LEFT: "RL";
|
|
130
|
+
};
|
|
131
|
+
/**
|
|
132
|
+
* @public
|
|
133
|
+
*/
|
|
134
|
+
type Direction = (typeof Direction)[keyof typeof Direction];
|
|
135
|
+
/**
|
|
136
|
+
* @public
|
|
137
|
+
*/
|
|
138
|
+
declare namespace Direction {
|
|
139
|
+
type TOP_BOTTOM = typeof Direction.TOP_BOTTOM;
|
|
140
|
+
type BOTTOM_TOP = typeof Direction.BOTTOM_TOP;
|
|
141
|
+
type LEFT_RIGHT = typeof Direction.LEFT_RIGHT;
|
|
142
|
+
type RIGHT_LEFT = typeof Direction.RIGHT_LEFT;
|
|
130
143
|
}
|
|
131
144
|
|
|
132
145
|
/** @public */
|
|
@@ -1,10 +1,21 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
const Direction = {
|
|
2
|
+
/**
|
|
3
|
+
* Top to bottom.
|
|
4
|
+
*/
|
|
5
|
+
TOP_BOTTOM: "TB",
|
|
6
|
+
/**
|
|
7
|
+
* Bottom to top.
|
|
8
|
+
*/
|
|
9
|
+
BOTTOM_TOP: "BT",
|
|
10
|
+
/**
|
|
11
|
+
* Left to right.
|
|
12
|
+
*/
|
|
13
|
+
LEFT_RIGHT: "LR",
|
|
14
|
+
/**
|
|
15
|
+
* Right to left.
|
|
16
|
+
*/
|
|
17
|
+
RIGHT_LEFT: "RL"
|
|
18
|
+
};
|
|
8
19
|
|
|
9
20
|
export { Direction };
|
|
10
21
|
//# sourceMappingURL=graph.esm.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"graph.esm.js","sources":["../../../src/lib/types/graph.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 { DependencyGraphTypes } from '@backstage/core-components';\nimport { MouseEventHandler } from 'react';\nimport { Entity } from '@backstage/catalog-model';\nimport { JsonObject } from '@backstage/types';\n\n/**\n * Additional Data for entities.\n *\n * @public\n */\nexport type EntityEdgeData = {\n /**\n * Up to two relations that are connecting an entity.\n */\n relations: string[];\n /**\n * Whether the entity is visible or not.\n */\n // Not used, but has to be non-empty to draw a label at all!\n label: 'visible';\n};\n\n/**\n * Edge between two entities.\n *\n * @public\n */\nexport type EntityEdge = DependencyGraphTypes.DependencyEdge<EntityEdgeData>;\n\n/**\n * Additional data for Entity Node\n *\n * @public\n */\nexport type EntityNodeData = {\n /**\n * The Entity\n */\n entity: Entity;\n /**\n * Whether the entity is focused, optional, defaults to false. Focused\n * entities are highlighted in the graph.\n */\n focused?: boolean;\n /**\n * Optional color of the entity, defaults to 'default'.\n */\n color?: 'primary' | 'secondary' | 'default';\n /**\n * Optional click handler.\n */\n onClick?: MouseEventHandler<unknown>;\n\n /**\n * Name of the entity.\n * @deprecated use {@link EntityNodeData#entity} instead\n */\n name: string;\n /**\n * Optional kind of the entity.\n * @deprecated use {@link EntityNodeData#entity} instead\n */\n kind?: string;\n /**\n * Optional title of the entity.\n * @deprecated use {@link EntityNodeData#entity} instead\n */\n title?: string;\n /**\n * Namespace of the entity.\n * @deprecated use {@link EntityNodeData#entity} instead\n * The Entity\n */\n namespace: string;\n /**\n * Optional spec of the entity.\n * @deprecated use {@link EntityNodeData#entity} instead\n */\n spec?: JsonObject;\n};\n\n/**\n * Node representing an entity.\n *\n * @public\n */\nexport type EntityNode = DependencyGraphTypes.DependencyNode<EntityNodeData>;\n\n/**\n * Render direction of the graph.\n *\n * @public\n */\nexport
|
|
1
|
+
{"version":3,"file":"graph.esm.js","sources":["../../../src/lib/types/graph.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/* We want to maintain the same information as an enum, so we disable the redeclaration warning */\n/* eslint-disable @typescript-eslint/no-redeclare */\n\nimport { DependencyGraphTypes } from '@backstage/core-components';\nimport { MouseEventHandler } from 'react';\nimport { Entity } from '@backstage/catalog-model';\nimport { JsonObject } from '@backstage/types';\n\n/**\n * Additional Data for entities.\n *\n * @public\n */\nexport type EntityEdgeData = {\n /**\n * Up to two relations that are connecting an entity.\n */\n relations: string[];\n /**\n * Whether the entity is visible or not.\n */\n // Not used, but has to be non-empty to draw a label at all!\n label: 'visible';\n};\n\n/**\n * Edge between two entities.\n *\n * @public\n */\nexport type EntityEdge = DependencyGraphTypes.DependencyEdge<EntityEdgeData>;\n\n/**\n * Additional data for Entity Node\n *\n * @public\n */\nexport type EntityNodeData = {\n /**\n * The Entity\n */\n entity: Entity;\n /**\n * Whether the entity is focused, optional, defaults to false. Focused\n * entities are highlighted in the graph.\n */\n focused?: boolean;\n /**\n * Optional color of the entity, defaults to 'default'.\n */\n color?: 'primary' | 'secondary' | 'default';\n /**\n * Optional click handler.\n */\n onClick?: MouseEventHandler<unknown>;\n\n /**\n * Name of the entity.\n * @deprecated use {@link EntityNodeData#entity} instead\n */\n name: string;\n /**\n * Optional kind of the entity.\n * @deprecated use {@link EntityNodeData#entity} instead\n */\n kind?: string;\n /**\n * Optional title of the entity.\n * @deprecated use {@link EntityNodeData#entity} instead\n */\n title?: string;\n /**\n * Namespace of the entity.\n * @deprecated use {@link EntityNodeData#entity} instead\n * The Entity\n */\n namespace: string;\n /**\n * Optional spec of the entity.\n * @deprecated use {@link EntityNodeData#entity} instead\n */\n spec?: JsonObject;\n};\n\n/**\n * Node representing an entity.\n *\n * @public\n */\nexport type EntityNode = DependencyGraphTypes.DependencyNode<EntityNodeData>;\n\n/**\n * Render direction of the graph.\n *\n * @public\n */\nexport const Direction = {\n /**\n * Top to bottom.\n */\n TOP_BOTTOM: 'TB',\n /**\n * Bottom to top.\n */\n BOTTOM_TOP: 'BT',\n /**\n * Left to right.\n */\n LEFT_RIGHT: 'LR',\n /**\n * Right to left.\n */\n RIGHT_LEFT: 'RL',\n} as const;\n\n/**\n * @public\n */\nexport type Direction = (typeof Direction)[keyof typeof Direction];\n\n/**\n * @public\n */\nexport namespace Direction {\n export type TOP_BOTTOM = typeof Direction.TOP_BOTTOM;\n export type BOTTOM_TOP = typeof Direction.BOTTOM_TOP;\n export type LEFT_RIGHT = typeof Direction.LEFT_RIGHT;\n export type RIGHT_LEFT = typeof Direction.RIGHT_LEFT;\n}\n"],"names":[],"mappings":"AA+GO,MAAM,SAAA,GAAY;AAAA;AAAA;AAAA;AAAA,EAIvB,UAAA,EAAY,IAAA;AAAA;AAAA;AAAA;AAAA,EAIZ,UAAA,EAAY,IAAA;AAAA;AAAA;AAAA;AAAA,EAIZ,UAAA,EAAY,IAAA;AAAA;AAAA;AAAA;AAAA,EAIZ,UAAA,EAAY;AACd;;;;"}
|
package/dist/package.json.esm.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@backstage/plugin-catalog-graph",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.3-next.1",
|
|
4
4
|
"backstage": {
|
|
5
5
|
"role": "frontend-plugin",
|
|
6
6
|
"pluginId": "catalog-graph",
|
|
@@ -61,14 +61,14 @@
|
|
|
61
61
|
"test": "backstage-cli package test"
|
|
62
62
|
},
|
|
63
63
|
"dependencies": {
|
|
64
|
-
"@backstage/catalog-client": "
|
|
65
|
-
"@backstage/catalog-model": "
|
|
66
|
-
"@backstage/core-compat-api": "
|
|
67
|
-
"@backstage/core-components": "
|
|
68
|
-
"@backstage/core-plugin-api": "
|
|
69
|
-
"@backstage/frontend-plugin-api": "
|
|
70
|
-
"@backstage/plugin-catalog-react": "
|
|
71
|
-
"@backstage/types": "
|
|
64
|
+
"@backstage/catalog-client": "1.12.1-next.0",
|
|
65
|
+
"@backstage/catalog-model": "1.7.6-next.0",
|
|
66
|
+
"@backstage/core-compat-api": "0.5.4-next.0",
|
|
67
|
+
"@backstage/core-components": "0.18.3-next.1",
|
|
68
|
+
"@backstage/core-plugin-api": "1.11.2-next.1",
|
|
69
|
+
"@backstage/frontend-plugin-api": "0.12.2-next.1",
|
|
70
|
+
"@backstage/plugin-catalog-react": "1.21.3-next.1",
|
|
71
|
+
"@backstage/types": "1.2.2",
|
|
72
72
|
"@material-ui/core": "^4.12.2",
|
|
73
73
|
"@material-ui/icons": "^4.9.1",
|
|
74
74
|
"@material-ui/lab": "4.0.0-alpha.61",
|
|
@@ -79,11 +79,11 @@
|
|
|
79
79
|
"react-use": "^17.2.4"
|
|
80
80
|
},
|
|
81
81
|
"devDependencies": {
|
|
82
|
-
"@backstage/cli": "
|
|
83
|
-
"@backstage/core-app-api": "
|
|
84
|
-
"@backstage/dev-utils": "
|
|
85
|
-
"@backstage/plugin-catalog": "
|
|
86
|
-
"@backstage/test-utils": "
|
|
82
|
+
"@backstage/cli": "0.34.5-next.1",
|
|
83
|
+
"@backstage/core-app-api": "1.19.2-next.1",
|
|
84
|
+
"@backstage/dev-utils": "1.1.17-next.1",
|
|
85
|
+
"@backstage/plugin-catalog": "1.32.0-next.1",
|
|
86
|
+
"@backstage/test-utils": "1.7.13-next.0",
|
|
87
87
|
"@testing-library/dom": "^10.0.0",
|
|
88
88
|
"@testing-library/jest-dom": "^6.0.0",
|
|
89
89
|
"@testing-library/react": "^16.0.0",
|