@backstage-community/plugin-azure-devops 0.12.0 → 0.13.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 +17 -0
- package/dist/alpha/plugin.esm.js +5 -0
- package/dist/alpha/plugin.esm.js.map +1 -1
- package/dist/alpha.d.ts +54 -33
- package/package.json +12 -12
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,22 @@
|
|
|
1
1
|
# @backstage-community/plugin-azure-devops
|
|
2
2
|
|
|
3
|
+
## 0.13.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 7f32b36: Added New Frontend System filter for cards and tabs so they use `isAzureDevOpsAvailable` and `isAzurePipelinesAvailable` to control their visibility
|
|
8
|
+
|
|
9
|
+
## 0.13.0
|
|
10
|
+
|
|
11
|
+
### Minor Changes
|
|
12
|
+
|
|
13
|
+
- 75f72bb: Backstage version bump to v1.37.0
|
|
14
|
+
|
|
15
|
+
### Patch Changes
|
|
16
|
+
|
|
17
|
+
- Updated dependencies [75f72bb]
|
|
18
|
+
- @backstage-community/plugin-azure-devops-common@0.9.0
|
|
19
|
+
|
|
3
20
|
## 0.12.0
|
|
4
21
|
|
|
5
22
|
### Minor Changes
|
package/dist/alpha/plugin.esm.js
CHANGED
|
@@ -5,6 +5,7 @@ import { AzureDevOpsClient } from '../api/AzureDevOpsClient.esm.js';
|
|
|
5
5
|
import { convertLegacyRouteRef, compatWrapper } from '@backstage/core-compat-api';
|
|
6
6
|
import { EntityContentBlueprint, EntityCardBlueprint } from '@backstage/plugin-catalog-react/alpha';
|
|
7
7
|
import { azurePullRequestDashboardRouteRef } from '../routes.esm.js';
|
|
8
|
+
import { isAzurePipelinesAvailable, isAzureDevOpsAvailable } from '../plugin.esm.js';
|
|
8
9
|
|
|
9
10
|
const azureDevOpsApi = ApiBlueprint.make({
|
|
10
11
|
params: {
|
|
@@ -32,6 +33,7 @@ const azureDevOpsPipelinesEntityContent = EntityContentBlueprint.make({
|
|
|
32
33
|
params: {
|
|
33
34
|
defaultPath: "/pipelines",
|
|
34
35
|
defaultTitle: "Pipelines",
|
|
36
|
+
filter: isAzurePipelinesAvailable,
|
|
35
37
|
loader: () => import('../components/EntityPageAzurePipelines/index.esm.js').then(
|
|
36
38
|
(m) => compatWrapper(/* @__PURE__ */ React.createElement(m.EntityPageAzurePipelines, null))
|
|
37
39
|
)
|
|
@@ -42,6 +44,7 @@ const azureDevOpsGitTagsEntityContent = EntityContentBlueprint.make({
|
|
|
42
44
|
params: {
|
|
43
45
|
defaultPath: "/git-tags",
|
|
44
46
|
defaultTitle: "Git Tags",
|
|
47
|
+
filter: isAzureDevOpsAvailable,
|
|
45
48
|
loader: () => import('../components/EntityPageAzureGitTags/index.esm.js').then(
|
|
46
49
|
(m) => compatWrapper(/* @__PURE__ */ React.createElement(m.EntityPageAzureGitTags, null))
|
|
47
50
|
)
|
|
@@ -53,6 +56,7 @@ const azureDevOpsPullRequestsEntityContent = EntityContentBlueprint.make(
|
|
|
53
56
|
params: {
|
|
54
57
|
defaultPath: "/pull-requests",
|
|
55
58
|
defaultTitle: "Pull Requests",
|
|
59
|
+
filter: isAzureDevOpsAvailable,
|
|
56
60
|
loader: () => import('../components/EntityPageAzurePullRequests/index.esm.js').then(
|
|
57
61
|
(m) => compatWrapper(/* @__PURE__ */ React.createElement(m.EntityPageAzurePullRequests, null))
|
|
58
62
|
)
|
|
@@ -62,6 +66,7 @@ const azureDevOpsPullRequestsEntityContent = EntityContentBlueprint.make(
|
|
|
62
66
|
const azureDevOpsReadmeEntityCard = EntityCardBlueprint.make({
|
|
63
67
|
name: "readme",
|
|
64
68
|
params: {
|
|
69
|
+
filter: isAzureDevOpsAvailable,
|
|
65
70
|
loader: async () => import('../components/ReadmeCard/index.esm.js').then(
|
|
66
71
|
(m) => compatWrapper(/* @__PURE__ */ React.createElement(m.ReadmeCard, null))
|
|
67
72
|
)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin.esm.js","sources":["../../src/alpha/plugin.tsx"],"sourcesContent":["/*\n * Copyright 2023 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 React from 'react';\nimport {\n ApiBlueprint,\n createApiFactory,\n PageBlueprint,\n createFrontendPlugin,\n discoveryApiRef,\n fetchApiRef,\n} from '@backstage/frontend-plugin-api';\nimport { azureDevOpsApiRef, AzureDevOpsClient } from '../api';\nimport {\n compatWrapper,\n convertLegacyRouteRef,\n} from '@backstage/core-compat-api';\nimport {\n EntityCardBlueprint,\n EntityContentBlueprint,\n} from '@backstage/plugin-catalog-react/alpha';\nimport { azurePullRequestDashboardRouteRef } from '../routes';\n\n/** @alpha */\nexport const azureDevOpsApi = ApiBlueprint.make({\n params: {\n factory: createApiFactory({\n api: azureDevOpsApiRef,\n deps: {\n discoveryApi: discoveryApiRef,\n fetchApi: fetchApiRef,\n },\n factory: ({ discoveryApi, fetchApi }) =>\n new AzureDevOpsClient({ discoveryApi, fetchApi }),\n }),\n },\n});\n\n/** @alpha */\nexport const azureDevOpsPullRequestPage = PageBlueprint.make({\n params: {\n defaultPath: '/azure-pull-requests',\n routeRef: convertLegacyRouteRef(azurePullRequestDashboardRouteRef),\n loader: () =>\n import('../components/PullRequestsPage').then(m =>\n compatWrapper(<m.PullRequestsPage />),\n ),\n },\n});\n\n/** @alpha */\nexport const azureDevOpsPipelinesEntityContent = EntityContentBlueprint.make({\n name: 'pipelines',\n params: {\n defaultPath: '/pipelines',\n defaultTitle: 'Pipelines',\n loader: () =>\n import('../components/EntityPageAzurePipelines').then(m =>\n compatWrapper(<m.EntityPageAzurePipelines />),\n ),\n },\n});\n\n/** @alpha */\nexport const azureDevOpsGitTagsEntityContent = EntityContentBlueprint.make({\n name: 'git-tags',\n params: {\n defaultPath: '/git-tags',\n defaultTitle: 'Git Tags',\n loader: () =>\n import('../components/EntityPageAzureGitTags').then(m =>\n compatWrapper(<m.EntityPageAzureGitTags />),\n ),\n },\n});\n\n/** @alpha */\nexport const azureDevOpsPullRequestsEntityContent = EntityContentBlueprint.make(\n {\n name: 'pull-requests',\n params: {\n defaultPath: '/pull-requests',\n defaultTitle: 'Pull Requests',\n loader: () =>\n import('../components/EntityPageAzurePullRequests').then(m =>\n compatWrapper(<m.EntityPageAzurePullRequests />),\n ),\n },\n },\n);\n\n/** @alpha */\nexport const azureDevOpsReadmeEntityCard = EntityCardBlueprint.make({\n name: 'readme',\n params: {\n loader: async () =>\n import('../components/ReadmeCard').then(m =>\n compatWrapper(<m.ReadmeCard />),\n ),\n },\n});\n\n/** @alpha */\nexport default createFrontendPlugin({\n id: 'azure-devops',\n extensions: [\n azureDevOpsApi,\n azureDevOpsReadmeEntityCard,\n azureDevOpsPipelinesEntityContent,\n azureDevOpsGitTagsEntityContent,\n azureDevOpsPullRequestsEntityContent,\n azureDevOpsPullRequestPage,\n ],\n});\n"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"plugin.esm.js","sources":["../../src/alpha/plugin.tsx"],"sourcesContent":["/*\n * Copyright 2023 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 React from 'react';\nimport {\n ApiBlueprint,\n createApiFactory,\n PageBlueprint,\n createFrontendPlugin,\n discoveryApiRef,\n fetchApiRef,\n} from '@backstage/frontend-plugin-api';\nimport { azureDevOpsApiRef, AzureDevOpsClient } from '../api';\nimport {\n compatWrapper,\n convertLegacyRouteRef,\n} from '@backstage/core-compat-api';\nimport {\n EntityCardBlueprint,\n EntityContentBlueprint,\n} from '@backstage/plugin-catalog-react/alpha';\nimport { azurePullRequestDashboardRouteRef } from '../routes';\nimport { isAzureDevOpsAvailable, isAzurePipelinesAvailable } from '../plugin';\n\n/** @alpha */\nexport const azureDevOpsApi = ApiBlueprint.make({\n params: {\n factory: createApiFactory({\n api: azureDevOpsApiRef,\n deps: {\n discoveryApi: discoveryApiRef,\n fetchApi: fetchApiRef,\n },\n factory: ({ discoveryApi, fetchApi }) =>\n new AzureDevOpsClient({ discoveryApi, fetchApi }),\n }),\n },\n});\n\n/** @alpha */\nexport const azureDevOpsPullRequestPage = PageBlueprint.make({\n params: {\n defaultPath: '/azure-pull-requests',\n routeRef: convertLegacyRouteRef(azurePullRequestDashboardRouteRef),\n loader: () =>\n import('../components/PullRequestsPage').then(m =>\n compatWrapper(<m.PullRequestsPage />),\n ),\n },\n});\n\n/** @alpha */\nexport const azureDevOpsPipelinesEntityContent = EntityContentBlueprint.make({\n name: 'pipelines',\n params: {\n defaultPath: '/pipelines',\n defaultTitle: 'Pipelines',\n filter: isAzurePipelinesAvailable,\n loader: () =>\n import('../components/EntityPageAzurePipelines').then(m =>\n compatWrapper(<m.EntityPageAzurePipelines />),\n ),\n },\n});\n\n/** @alpha */\nexport const azureDevOpsGitTagsEntityContent = EntityContentBlueprint.make({\n name: 'git-tags',\n params: {\n defaultPath: '/git-tags',\n defaultTitle: 'Git Tags',\n filter: isAzureDevOpsAvailable,\n loader: () =>\n import('../components/EntityPageAzureGitTags').then(m =>\n compatWrapper(<m.EntityPageAzureGitTags />),\n ),\n },\n});\n\n/** @alpha */\nexport const azureDevOpsPullRequestsEntityContent = EntityContentBlueprint.make(\n {\n name: 'pull-requests',\n params: {\n defaultPath: '/pull-requests',\n defaultTitle: 'Pull Requests',\n filter: isAzureDevOpsAvailable,\n loader: () =>\n import('../components/EntityPageAzurePullRequests').then(m =>\n compatWrapper(<m.EntityPageAzurePullRequests />),\n ),\n },\n },\n);\n\n/** @alpha */\nexport const azureDevOpsReadmeEntityCard = EntityCardBlueprint.make({\n name: 'readme',\n params: {\n filter: isAzureDevOpsAvailable,\n loader: async () =>\n import('../components/ReadmeCard').then(m =>\n compatWrapper(<m.ReadmeCard />),\n ),\n },\n});\n\n/** @alpha */\nexport default createFrontendPlugin({\n id: 'azure-devops',\n extensions: [\n azureDevOpsApi,\n azureDevOpsReadmeEntityCard,\n azureDevOpsPipelinesEntityContent,\n azureDevOpsGitTagsEntityContent,\n azureDevOpsPullRequestsEntityContent,\n azureDevOpsPullRequestPage,\n ],\n});\n"],"names":[],"mappings":";;;;;;;;;AAsCa,MAAA,cAAA,GAAiB,aAAa,IAAK,CAAA;AAAA,EAC9C,MAAQ,EAAA;AAAA,IACN,SAAS,gBAAiB,CAAA;AAAA,MACxB,GAAK,EAAA,iBAAA;AAAA,MACL,IAAM,EAAA;AAAA,QACJ,YAAc,EAAA,eAAA;AAAA,QACd,QAAU,EAAA;AAAA,OACZ;AAAA,MACA,OAAA,EAAS,CAAC,EAAE,YAAc,EAAA,QAAA,EACxB,KAAA,IAAI,iBAAkB,CAAA,EAAE,YAAc,EAAA,QAAA,EAAU;AAAA,KACnD;AAAA;AAEL,CAAC;AAGY,MAAA,0BAAA,GAA6B,cAAc,IAAK,CAAA;AAAA,EAC3D,MAAQ,EAAA;AAAA,IACN,WAAa,EAAA,sBAAA;AAAA,IACb,QAAA,EAAU,sBAAsB,iCAAiC,CAAA;AAAA,IACjE,MAAQ,EAAA,MACN,OAAO,6CAAgC,CAAE,CAAA,IAAA;AAAA,MAAK,OAC5C,aAAc,iBAAA,KAAA,CAAA,aAAA,CAAC,CAAE,CAAA,gBAAA,EAAF,IAAmB,CAAE;AAAA;AACtC;AAEN,CAAC;AAGY,MAAA,iCAAA,GAAoC,uBAAuB,IAAK,CAAA;AAAA,EAC3E,IAAM,EAAA,WAAA;AAAA,EACN,MAAQ,EAAA;AAAA,IACN,WAAa,EAAA,YAAA;AAAA,IACb,YAAc,EAAA,WAAA;AAAA,IACd,MAAQ,EAAA,yBAAA;AAAA,IACR,MAAQ,EAAA,MACN,OAAO,qDAAwC,CAAE,CAAA,IAAA;AAAA,MAAK,OACpD,aAAc,iBAAA,KAAA,CAAA,aAAA,CAAC,CAAE,CAAA,wBAAA,EAAF,IAA2B,CAAE;AAAA;AAC9C;AAEN,CAAC;AAGY,MAAA,+BAAA,GAAkC,uBAAuB,IAAK,CAAA;AAAA,EACzE,IAAM,EAAA,UAAA;AAAA,EACN,MAAQ,EAAA;AAAA,IACN,WAAa,EAAA,WAAA;AAAA,IACb,YAAc,EAAA,UAAA;AAAA,IACd,MAAQ,EAAA,sBAAA;AAAA,IACR,MAAQ,EAAA,MACN,OAAO,mDAAsC,CAAE,CAAA,IAAA;AAAA,MAAK,OAClD,aAAc,iBAAA,KAAA,CAAA,aAAA,CAAC,CAAE,CAAA,sBAAA,EAAF,IAAyB,CAAE;AAAA;AAC5C;AAEN,CAAC;AAGM,MAAM,uCAAuC,sBAAuB,CAAA,IAAA;AAAA,EACzE;AAAA,IACE,IAAM,EAAA,eAAA;AAAA,IACN,MAAQ,EAAA;AAAA,MACN,WAAa,EAAA,gBAAA;AAAA,MACb,YAAc,EAAA,eAAA;AAAA,MACd,MAAQ,EAAA,sBAAA;AAAA,MACR,MAAQ,EAAA,MACN,OAAO,wDAA2C,CAAE,CAAA,IAAA;AAAA,QAAK,OACvD,aAAc,iBAAA,KAAA,CAAA,aAAA,CAAC,CAAE,CAAA,2BAAA,EAAF,IAA8B,CAAE;AAAA;AACjD;AACJ;AAEJ;AAGa,MAAA,2BAAA,GAA8B,oBAAoB,IAAK,CAAA;AAAA,EAClE,IAAM,EAAA,QAAA;AAAA,EACN,MAAQ,EAAA;AAAA,IACN,MAAQ,EAAA,sBAAA;AAAA,IACR,MAAQ,EAAA,YACN,OAAO,uCAA0B,CAAE,CAAA,IAAA;AAAA,MAAK,OACtC,aAAc,iBAAA,KAAA,CAAA,aAAA,CAAC,CAAE,CAAA,UAAA,EAAF,IAAa,CAAE;AAAA;AAChC;AAEN,CAAC;AAGD,aAAe,oBAAqB,CAAA;AAAA,EAClC,EAAI,EAAA,cAAA;AAAA,EACJ,UAAY,EAAA;AAAA,IACV,cAAA;AAAA,IACA,2BAAA;AAAA,IACA,iCAAA;AAAA,IACA,+BAAA;AAAA,IACA,oCAAA;AAAA,IACA;AAAA;AAEJ,CAAC,CAAA;;;;"}
|
package/dist/alpha.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import * as _backstage_catalog_model_index from '@backstage/catalog-model/index';
|
|
2
|
+
import * as _backstage_plugin_catalog_react_alpha from '@backstage/plugin-catalog-react/alpha';
|
|
2
3
|
import * as _backstage_frontend_plugin_api from '@backstage/frontend-plugin-api';
|
|
3
|
-
import * as
|
|
4
|
+
import * as _backstage_core_plugin_api__ from '@backstage/core-plugin-api/*';
|
|
4
5
|
import React__default from 'react';
|
|
5
6
|
|
|
6
7
|
/** @alpha */
|
|
@@ -10,43 +11,51 @@ declare const _default: _backstage_frontend_plugin_api.FrontendPlugin<{}, {}, {
|
|
|
10
11
|
name: undefined;
|
|
11
12
|
config: {};
|
|
12
13
|
configInput: {};
|
|
13
|
-
output: _backstage_frontend_plugin_api.ConfigurableExtensionDataRef<
|
|
14
|
+
output: _backstage_frontend_plugin_api.ConfigurableExtensionDataRef<_backstage_core_plugin_api__.AnyApiFactory, "core.api.factory", {}>;
|
|
14
15
|
inputs: {};
|
|
15
16
|
params: {
|
|
16
|
-
factory:
|
|
17
|
+
factory: _backstage_core_plugin_api__.AnyApiFactory;
|
|
17
18
|
};
|
|
18
19
|
}>;
|
|
19
|
-
"
|
|
20
|
-
kind: "
|
|
21
|
-
name:
|
|
20
|
+
"entity-card:azure-devops/readme": _backstage_frontend_plugin_api.ExtensionDefinition<{
|
|
21
|
+
kind: "entity-card";
|
|
22
|
+
name: "readme";
|
|
22
23
|
config: {
|
|
23
|
-
|
|
24
|
+
filter: _backstage_plugin_catalog_react_alpha.EntityPredicate | undefined;
|
|
25
|
+
type: "content" | "summary" | "info" | undefined;
|
|
24
26
|
};
|
|
25
27
|
configInput: {
|
|
26
|
-
|
|
28
|
+
filter?: _backstage_plugin_catalog_react_alpha.EntityPredicate | undefined;
|
|
29
|
+
type?: "content" | "summary" | "info" | undefined;
|
|
27
30
|
};
|
|
28
|
-
output: _backstage_frontend_plugin_api.ConfigurableExtensionDataRef<React__default.JSX.Element, "core.reactElement", {}> | _backstage_frontend_plugin_api.ConfigurableExtensionDataRef<
|
|
31
|
+
output: _backstage_frontend_plugin_api.ConfigurableExtensionDataRef<React__default.JSX.Element, "core.reactElement", {}> | _backstage_frontend_plugin_api.ConfigurableExtensionDataRef<(entity: _backstage_catalog_model_index.Entity) => boolean, "catalog.entity-filter-function", {
|
|
32
|
+
optional: true;
|
|
33
|
+
}> | _backstage_frontend_plugin_api.ConfigurableExtensionDataRef<string, "catalog.entity-filter-expression", {
|
|
34
|
+
optional: true;
|
|
35
|
+
}> | _backstage_frontend_plugin_api.ConfigurableExtensionDataRef<_backstage_plugin_catalog_react_alpha.EntityCardType, "catalog.entity-card-type", {
|
|
29
36
|
optional: true;
|
|
30
37
|
}>;
|
|
31
38
|
inputs: {};
|
|
32
39
|
params: {
|
|
33
|
-
defaultPath: string;
|
|
34
40
|
loader: () => Promise<JSX.Element>;
|
|
35
|
-
|
|
41
|
+
filter?: _backstage_plugin_catalog_react_alpha.EntityPredicate | ((entity: _backstage_catalog_model_index.Entity) => boolean) | undefined;
|
|
42
|
+
type?: _backstage_plugin_catalog_react_alpha.EntityCardType | undefined;
|
|
36
43
|
};
|
|
37
44
|
}>;
|
|
38
|
-
"entity-content:azure-devops/
|
|
45
|
+
"entity-content:azure-devops/git-tags": _backstage_frontend_plugin_api.ExtensionDefinition<{
|
|
39
46
|
kind: "entity-content";
|
|
40
|
-
name: "
|
|
47
|
+
name: "git-tags";
|
|
41
48
|
config: {
|
|
42
49
|
path: string | undefined;
|
|
43
50
|
title: string | undefined;
|
|
44
|
-
filter:
|
|
51
|
+
filter: _backstage_plugin_catalog_react_alpha.EntityPredicate | undefined;
|
|
52
|
+
group: string | false | undefined;
|
|
45
53
|
};
|
|
46
54
|
configInput: {
|
|
47
|
-
filter?:
|
|
55
|
+
filter?: _backstage_plugin_catalog_react_alpha.EntityPredicate | undefined;
|
|
48
56
|
title?: string | undefined;
|
|
49
57
|
path?: string | undefined;
|
|
58
|
+
group?: string | false | undefined;
|
|
50
59
|
};
|
|
51
60
|
output: _backstage_frontend_plugin_api.ConfigurableExtensionDataRef<React__default.JSX.Element, "core.reactElement", {}> | _backstage_frontend_plugin_api.ConfigurableExtensionDataRef<string, "core.routing.path", {}> | _backstage_frontend_plugin_api.ConfigurableExtensionDataRef<_backstage_frontend_plugin_api.RouteRef<_backstage_frontend_plugin_api.AnyRouteRefParams>, "core.routing.ref", {
|
|
52
61
|
optional: true;
|
|
@@ -54,28 +63,33 @@ declare const _default: _backstage_frontend_plugin_api.FrontendPlugin<{}, {}, {
|
|
|
54
63
|
optional: true;
|
|
55
64
|
}> | _backstage_frontend_plugin_api.ConfigurableExtensionDataRef<string, "catalog.entity-filter-expression", {
|
|
56
65
|
optional: true;
|
|
66
|
+
}> | _backstage_frontend_plugin_api.ConfigurableExtensionDataRef<string, "catalog.entity-content-group", {
|
|
67
|
+
optional: true;
|
|
57
68
|
}>;
|
|
58
69
|
inputs: {};
|
|
59
70
|
params: {
|
|
60
71
|
loader: () => Promise<JSX.Element>;
|
|
61
72
|
defaultPath: string;
|
|
62
73
|
defaultTitle: string;
|
|
74
|
+
defaultGroup?: (string & {}) | "development" | "deployment" | "documentation" | "observability" | undefined;
|
|
63
75
|
routeRef?: _backstage_frontend_plugin_api.RouteRef<_backstage_frontend_plugin_api.AnyRouteRefParams> | undefined;
|
|
64
|
-
filter?:
|
|
76
|
+
filter?: _backstage_plugin_catalog_react_alpha.EntityPredicate | ((entity: _backstage_catalog_model_index.Entity) => boolean) | undefined;
|
|
65
77
|
};
|
|
66
78
|
}>;
|
|
67
|
-
"entity-content:azure-devops/
|
|
79
|
+
"entity-content:azure-devops/pipelines": _backstage_frontend_plugin_api.ExtensionDefinition<{
|
|
68
80
|
kind: "entity-content";
|
|
69
|
-
name: "
|
|
81
|
+
name: "pipelines";
|
|
70
82
|
config: {
|
|
71
83
|
path: string | undefined;
|
|
72
84
|
title: string | undefined;
|
|
73
|
-
filter:
|
|
85
|
+
filter: _backstage_plugin_catalog_react_alpha.EntityPredicate | undefined;
|
|
86
|
+
group: string | false | undefined;
|
|
74
87
|
};
|
|
75
88
|
configInput: {
|
|
76
|
-
filter?:
|
|
89
|
+
filter?: _backstage_plugin_catalog_react_alpha.EntityPredicate | undefined;
|
|
77
90
|
title?: string | undefined;
|
|
78
91
|
path?: string | undefined;
|
|
92
|
+
group?: string | false | undefined;
|
|
79
93
|
};
|
|
80
94
|
output: _backstage_frontend_plugin_api.ConfigurableExtensionDataRef<React__default.JSX.Element, "core.reactElement", {}> | _backstage_frontend_plugin_api.ConfigurableExtensionDataRef<string, "core.routing.path", {}> | _backstage_frontend_plugin_api.ConfigurableExtensionDataRef<_backstage_frontend_plugin_api.RouteRef<_backstage_frontend_plugin_api.AnyRouteRefParams>, "core.routing.ref", {
|
|
81
95
|
optional: true;
|
|
@@ -83,14 +97,17 @@ declare const _default: _backstage_frontend_plugin_api.FrontendPlugin<{}, {}, {
|
|
|
83
97
|
optional: true;
|
|
84
98
|
}> | _backstage_frontend_plugin_api.ConfigurableExtensionDataRef<string, "catalog.entity-filter-expression", {
|
|
85
99
|
optional: true;
|
|
100
|
+
}> | _backstage_frontend_plugin_api.ConfigurableExtensionDataRef<string, "catalog.entity-content-group", {
|
|
101
|
+
optional: true;
|
|
86
102
|
}>;
|
|
87
103
|
inputs: {};
|
|
88
104
|
params: {
|
|
89
105
|
loader: () => Promise<JSX.Element>;
|
|
90
106
|
defaultPath: string;
|
|
91
107
|
defaultTitle: string;
|
|
108
|
+
defaultGroup?: (string & {}) | "development" | "deployment" | "documentation" | "observability" | undefined;
|
|
92
109
|
routeRef?: _backstage_frontend_plugin_api.RouteRef<_backstage_frontend_plugin_api.AnyRouteRefParams> | undefined;
|
|
93
|
-
filter?:
|
|
110
|
+
filter?: _backstage_plugin_catalog_react_alpha.EntityPredicate | ((entity: _backstage_catalog_model_index.Entity) => boolean) | undefined;
|
|
94
111
|
};
|
|
95
112
|
}>;
|
|
96
113
|
"entity-content:azure-devops/pull-requests": _backstage_frontend_plugin_api.ExtensionDefinition<{
|
|
@@ -99,12 +116,14 @@ declare const _default: _backstage_frontend_plugin_api.FrontendPlugin<{}, {}, {
|
|
|
99
116
|
config: {
|
|
100
117
|
path: string | undefined;
|
|
101
118
|
title: string | undefined;
|
|
102
|
-
filter:
|
|
119
|
+
filter: _backstage_plugin_catalog_react_alpha.EntityPredicate | undefined;
|
|
120
|
+
group: string | false | undefined;
|
|
103
121
|
};
|
|
104
122
|
configInput: {
|
|
105
|
-
filter?:
|
|
123
|
+
filter?: _backstage_plugin_catalog_react_alpha.EntityPredicate | undefined;
|
|
106
124
|
title?: string | undefined;
|
|
107
125
|
path?: string | undefined;
|
|
126
|
+
group?: string | false | undefined;
|
|
108
127
|
};
|
|
109
128
|
output: _backstage_frontend_plugin_api.ConfigurableExtensionDataRef<React__default.JSX.Element, "core.reactElement", {}> | _backstage_frontend_plugin_api.ConfigurableExtensionDataRef<string, "core.routing.path", {}> | _backstage_frontend_plugin_api.ConfigurableExtensionDataRef<_backstage_frontend_plugin_api.RouteRef<_backstage_frontend_plugin_api.AnyRouteRefParams>, "core.routing.ref", {
|
|
110
129
|
optional: true;
|
|
@@ -112,34 +131,36 @@ declare const _default: _backstage_frontend_plugin_api.FrontendPlugin<{}, {}, {
|
|
|
112
131
|
optional: true;
|
|
113
132
|
}> | _backstage_frontend_plugin_api.ConfigurableExtensionDataRef<string, "catalog.entity-filter-expression", {
|
|
114
133
|
optional: true;
|
|
134
|
+
}> | _backstage_frontend_plugin_api.ConfigurableExtensionDataRef<string, "catalog.entity-content-group", {
|
|
135
|
+
optional: true;
|
|
115
136
|
}>;
|
|
116
137
|
inputs: {};
|
|
117
138
|
params: {
|
|
118
139
|
loader: () => Promise<JSX.Element>;
|
|
119
140
|
defaultPath: string;
|
|
120
141
|
defaultTitle: string;
|
|
142
|
+
defaultGroup?: (string & {}) | "development" | "deployment" | "documentation" | "observability" | undefined;
|
|
121
143
|
routeRef?: _backstage_frontend_plugin_api.RouteRef<_backstage_frontend_plugin_api.AnyRouteRefParams> | undefined;
|
|
122
|
-
filter?:
|
|
144
|
+
filter?: _backstage_plugin_catalog_react_alpha.EntityPredicate | ((entity: _backstage_catalog_model_index.Entity) => boolean) | undefined;
|
|
123
145
|
};
|
|
124
146
|
}>;
|
|
125
|
-
"
|
|
126
|
-
kind: "
|
|
127
|
-
name:
|
|
147
|
+
"page:azure-devops": _backstage_frontend_plugin_api.ExtensionDefinition<{
|
|
148
|
+
kind: "page";
|
|
149
|
+
name: undefined;
|
|
128
150
|
config: {
|
|
129
|
-
|
|
151
|
+
path: string | undefined;
|
|
130
152
|
};
|
|
131
153
|
configInput: {
|
|
132
|
-
|
|
154
|
+
path?: string | undefined;
|
|
133
155
|
};
|
|
134
|
-
output: _backstage_frontend_plugin_api.ConfigurableExtensionDataRef<React__default.JSX.Element, "core.reactElement", {}> | _backstage_frontend_plugin_api.ConfigurableExtensionDataRef<
|
|
135
|
-
optional: true;
|
|
136
|
-
}> | _backstage_frontend_plugin_api.ConfigurableExtensionDataRef<string, "catalog.entity-filter-expression", {
|
|
156
|
+
output: _backstage_frontend_plugin_api.ConfigurableExtensionDataRef<React__default.JSX.Element, "core.reactElement", {}> | _backstage_frontend_plugin_api.ConfigurableExtensionDataRef<string, "core.routing.path", {}> | _backstage_frontend_plugin_api.ConfigurableExtensionDataRef<_backstage_frontend_plugin_api.RouteRef<_backstage_frontend_plugin_api.AnyRouteRefParams>, "core.routing.ref", {
|
|
137
157
|
optional: true;
|
|
138
158
|
}>;
|
|
139
159
|
inputs: {};
|
|
140
160
|
params: {
|
|
161
|
+
defaultPath: string;
|
|
141
162
|
loader: () => Promise<JSX.Element>;
|
|
142
|
-
|
|
163
|
+
routeRef?: _backstage_frontend_plugin_api.RouteRef<_backstage_frontend_plugin_api.AnyRouteRefParams> | undefined;
|
|
143
164
|
};
|
|
144
165
|
}>;
|
|
145
166
|
}>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@backstage-community/plugin-azure-devops",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.13.1",
|
|
4
4
|
"backstage": {
|
|
5
5
|
"role": "frontend-plugin",
|
|
6
6
|
"pluginId": "azure-devops",
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"types": "./dist/index.d.ts",
|
|
43
43
|
"typesVersions": {
|
|
44
44
|
"*": {
|
|
45
|
-
"
|
|
45
|
+
"*": [
|
|
46
46
|
"dist/index.d.ts"
|
|
47
47
|
],
|
|
48
48
|
"alpha": [
|
|
@@ -63,15 +63,15 @@
|
|
|
63
63
|
"test": "backstage-cli package test"
|
|
64
64
|
},
|
|
65
65
|
"dependencies": {
|
|
66
|
-
"@backstage-community/plugin-azure-devops-common": "^0.
|
|
66
|
+
"@backstage-community/plugin-azure-devops-common": "^0.9.0",
|
|
67
67
|
"@backstage/catalog-model": "^1.7.3",
|
|
68
|
-
"@backstage/core-compat-api": "^0.
|
|
69
|
-
"@backstage/core-components": "^0.
|
|
70
|
-
"@backstage/core-plugin-api": "^1.10.
|
|
68
|
+
"@backstage/core-compat-api": "^0.4.0",
|
|
69
|
+
"@backstage/core-components": "^0.17.0",
|
|
70
|
+
"@backstage/core-plugin-api": "^1.10.5",
|
|
71
71
|
"@backstage/errors": "^1.2.7",
|
|
72
|
-
"@backstage/frontend-plugin-api": "^0.
|
|
73
|
-
"@backstage/plugin-catalog-react": "^1.
|
|
74
|
-
"@backstage/plugin-permission-react": "^0.4.
|
|
72
|
+
"@backstage/frontend-plugin-api": "^0.10.0",
|
|
73
|
+
"@backstage/plugin-catalog-react": "^1.16.0",
|
|
74
|
+
"@backstage/plugin-permission-react": "^0.4.32",
|
|
75
75
|
"@material-ui/core": "^4.12.2",
|
|
76
76
|
"@material-ui/icons": "^4.9.1",
|
|
77
77
|
"@types/react": "^16.13.1 || ^17.0.0 || ^18.0.0",
|
|
@@ -80,9 +80,9 @@
|
|
|
80
80
|
"react-use": "^17.2.4"
|
|
81
81
|
},
|
|
82
82
|
"devDependencies": {
|
|
83
|
-
"@backstage/cli": "^0.
|
|
84
|
-
"@backstage/dev-utils": "^1.1.
|
|
85
|
-
"@backstage/test-utils": "^1.7.
|
|
83
|
+
"@backstage/cli": "^0.31.0",
|
|
84
|
+
"@backstage/dev-utils": "^1.1.8",
|
|
85
|
+
"@backstage/test-utils": "^1.7.6",
|
|
86
86
|
"@testing-library/dom": "^10.0.0",
|
|
87
87
|
"@testing-library/jest-dom": "^6.0.0",
|
|
88
88
|
"@testing-library/react": "^15.0.0",
|