@backstage-community/plugin-azure-devops 0.4.9 → 0.5.0
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 +12 -0
- package/README.md +1 -1
- package/alpha/package.json +1 -1
- package/dist/alpha/plugin.esm.js +56 -42
- package/dist/alpha/plugin.esm.js.map +1 -1
- package/dist/alpha.d.ts +91 -1
- package/dist/index.d.ts +8 -8
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @backstage-community/plugin-azure-devops
|
|
2
2
|
|
|
3
|
+
## 0.5.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- c6f00d3: **BREAKING** This change removes the deprecated `AzureDevOpsAnnotatorProcessor` from `@backstage-community/plugin-azure-devops-backend`. It also removes the export of `AzureDevOpsAnnotatorProcessor` from `@backstage-community/plugin-catalog-backend-module-azure-devops-annotator-processor`. Please install this processor using [the New Backend System setup](https://github.com/backstage/community-plugins/tree/main/workspaces/azure-devops/plugins/catalog-backend-module-azure-devops-annotator-processor#setup), which is now the default.
|
|
8
|
+
|
|
9
|
+
## 0.4.10
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- 45fd620: use new FE system syntax (replacing deprecated methods)
|
|
14
|
+
|
|
3
15
|
## 0.4.9
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
package/README.md
CHANGED
|
@@ -142,7 +142,7 @@ And if the entity was from `yet-another-org` it would look like this:
|
|
|
142
142
|
dev.azure.com/host-org: server.company.com/yet-another-org
|
|
143
143
|
```
|
|
144
144
|
|
|
145
|
-
**Note:** To save you time, effort, and confusion setting up these annotations manually you can use the `AzureDevOpsAnnotatorProcessor` processor which will add the `dev.azure.com/host-org` and `dev.azure.com/project-repo` annotations for you with the correct values. The Azure DevOps backend plugin has details on how to [add this processor](https://github.com/backstage/
|
|
145
|
+
**Note:** To save you time, effort, and confusion setting up these annotations manually you can use the `AzureDevOpsAnnotatorProcessor` processor which will add the `dev.azure.com/host-org` and `dev.azure.com/project-repo` annotations for you with the correct values. The Azure DevOps Annotator Processor backend module for the Catalog plugin has details on how to [add this processor](https://github.com/backstage/community-plugins/tree/main/workspaces/azure-devops/plugins/catalog-backend-module-azure-devops-annotator-processor).
|
|
146
146
|
|
|
147
147
|
### Azure Pipelines Component
|
|
148
148
|
|
package/alpha/package.json
CHANGED
package/dist/alpha/plugin.esm.js
CHANGED
|
@@ -1,59 +1,73 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { ApiBlueprint, createApiFactory, discoveryApiRef, fetchApiRef, PageBlueprint, createFrontendPlugin } from '@backstage/frontend-plugin-api';
|
|
3
3
|
import { azureDevOpsApiRef } from '../api/AzureDevOpsApi.esm.js';
|
|
4
4
|
import { AzureDevOpsClient } from '../api/AzureDevOpsClient.esm.js';
|
|
5
5
|
import { convertLegacyRouteRef, compatWrapper } from '@backstage/core-compat-api';
|
|
6
|
-
import {
|
|
6
|
+
import { EntityContentBlueprint, EntityCardBlueprint } from '@backstage/plugin-catalog-react/alpha';
|
|
7
7
|
import { azurePullRequestDashboardRouteRef } from '../routes.esm.js';
|
|
8
8
|
|
|
9
|
-
const azureDevOpsApi =
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
9
|
+
const azureDevOpsApi = ApiBlueprint.make({
|
|
10
|
+
params: {
|
|
11
|
+
factory: createApiFactory({
|
|
12
|
+
api: azureDevOpsApiRef,
|
|
13
|
+
deps: {
|
|
14
|
+
discoveryApi: discoveryApiRef,
|
|
15
|
+
fetchApi: fetchApiRef
|
|
16
|
+
},
|
|
17
|
+
factory: ({ discoveryApi, fetchApi }) => new AzureDevOpsClient({ discoveryApi, fetchApi })
|
|
18
|
+
})
|
|
19
|
+
}
|
|
18
20
|
});
|
|
19
|
-
const azureDevOpsPullRequestPage =
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
(
|
|
24
|
-
|
|
21
|
+
const azureDevOpsPullRequestPage = PageBlueprint.make({
|
|
22
|
+
params: {
|
|
23
|
+
defaultPath: "/azure-pull-requests",
|
|
24
|
+
routeRef: convertLegacyRouteRef(azurePullRequestDashboardRouteRef),
|
|
25
|
+
loader: () => import('../components/PullRequestsPage/index.esm.js').then(
|
|
26
|
+
(m) => compatWrapper(/* @__PURE__ */ React.createElement(m.PullRequestsPage, null))
|
|
27
|
+
)
|
|
28
|
+
}
|
|
25
29
|
});
|
|
26
|
-
const azureDevOpsPipelinesEntityContent =
|
|
30
|
+
const azureDevOpsPipelinesEntityContent = EntityContentBlueprint.make({
|
|
27
31
|
name: "pipelines",
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
(
|
|
32
|
-
|
|
32
|
+
params: {
|
|
33
|
+
defaultPath: "/pipelines",
|
|
34
|
+
defaultTitle: "Pipelines",
|
|
35
|
+
loader: () => import('../components/EntityPageAzurePipelines/index.esm.js').then(
|
|
36
|
+
(m) => compatWrapper(/* @__PURE__ */ React.createElement(m.EntityPageAzurePipelines, null))
|
|
37
|
+
)
|
|
38
|
+
}
|
|
33
39
|
});
|
|
34
|
-
const azureDevOpsGitTagsEntityContent =
|
|
40
|
+
const azureDevOpsGitTagsEntityContent = EntityContentBlueprint.make({
|
|
35
41
|
name: "git-tags",
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
(
|
|
40
|
-
|
|
42
|
+
params: {
|
|
43
|
+
defaultPath: "/git-tags",
|
|
44
|
+
defaultTitle: "Git Tags",
|
|
45
|
+
loader: () => import('../components/EntityPageAzureGitTags/index.esm.js').then(
|
|
46
|
+
(m) => compatWrapper(/* @__PURE__ */ React.createElement(m.EntityPageAzureGitTags, null))
|
|
47
|
+
)
|
|
48
|
+
}
|
|
41
49
|
});
|
|
42
|
-
const azureDevOpsPullRequestsEntityContent =
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
50
|
+
const azureDevOpsPullRequestsEntityContent = EntityContentBlueprint.make(
|
|
51
|
+
{
|
|
52
|
+
name: "pull-requests",
|
|
53
|
+
params: {
|
|
54
|
+
defaultPath: "/pull-requests",
|
|
55
|
+
defaultTitle: "Pull Requests",
|
|
56
|
+
loader: () => import('../components/EntityPageAzurePullRequests/index.esm.js').then(
|
|
57
|
+
(m) => compatWrapper(/* @__PURE__ */ React.createElement(m.EntityPageAzurePullRequests, null))
|
|
58
|
+
)
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
);
|
|
62
|
+
const azureDevOpsReadmeEntityCard = EntityCardBlueprint.make({
|
|
51
63
|
name: "readme",
|
|
52
|
-
|
|
53
|
-
(
|
|
54
|
-
|
|
64
|
+
params: {
|
|
65
|
+
loader: async () => import('../components/ReadmeCard/index.esm.js').then(
|
|
66
|
+
(m) => compatWrapper(/* @__PURE__ */ React.createElement(m.ReadmeCard, null))
|
|
67
|
+
)
|
|
68
|
+
}
|
|
55
69
|
});
|
|
56
|
-
var plugin =
|
|
70
|
+
var plugin = createFrontendPlugin({
|
|
57
71
|
id: "azure-devops",
|
|
58
72
|
extensions: [
|
|
59
73
|
azureDevOpsApi,
|
|
@@ -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
|
|
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":"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"}
|
package/dist/alpha.d.ts
CHANGED
|
@@ -1,6 +1,96 @@
|
|
|
1
|
+
import * as _backstage_catalog_model from '@backstage/catalog-model';
|
|
1
2
|
import * as _backstage_frontend_plugin_api from '@backstage/frontend-plugin-api';
|
|
3
|
+
import * as _backstage_core_plugin_api from '@backstage/core-plugin-api';
|
|
4
|
+
import React__default from 'react';
|
|
2
5
|
|
|
3
6
|
/** @alpha */
|
|
4
|
-
declare const _default: _backstage_frontend_plugin_api.BackstagePlugin<{}, {}, {
|
|
7
|
+
declare const _default: _backstage_frontend_plugin_api.BackstagePlugin<{}, {}, {
|
|
8
|
+
"api:azure-devops": _backstage_frontend_plugin_api.ExtensionDefinition<{}, {}, _backstage_frontend_plugin_api.ConfigurableExtensionDataRef<_backstage_core_plugin_api.AnyApiFactory, "core.api.factory", {}>, {}, {
|
|
9
|
+
kind: "api";
|
|
10
|
+
namespace: undefined;
|
|
11
|
+
name: undefined;
|
|
12
|
+
}>;
|
|
13
|
+
"page:azure-devops": _backstage_frontend_plugin_api.ExtensionDefinition<{
|
|
14
|
+
path: string | undefined;
|
|
15
|
+
}, {
|
|
16
|
+
path?: string | undefined;
|
|
17
|
+
}, _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", {
|
|
18
|
+
optional: true;
|
|
19
|
+
}>, {}, {
|
|
20
|
+
kind: "page";
|
|
21
|
+
namespace: undefined;
|
|
22
|
+
name: undefined;
|
|
23
|
+
}>;
|
|
24
|
+
"entity-content:azure-devops/pipelines": _backstage_frontend_plugin_api.ExtensionDefinition<{
|
|
25
|
+
path: string | undefined;
|
|
26
|
+
title: string | undefined;
|
|
27
|
+
filter: string | undefined;
|
|
28
|
+
}, {
|
|
29
|
+
filter?: string | undefined;
|
|
30
|
+
title?: string | undefined;
|
|
31
|
+
path?: string | undefined;
|
|
32
|
+
}, _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", {
|
|
33
|
+
optional: true;
|
|
34
|
+
}> | _backstage_frontend_plugin_api.ConfigurableExtensionDataRef<string, "catalog.entity-content-title", {}> | _backstage_frontend_plugin_api.ConfigurableExtensionDataRef<(entity: _backstage_catalog_model.Entity) => boolean, "catalog.entity-filter-function", {
|
|
35
|
+
optional: true;
|
|
36
|
+
}> | _backstage_frontend_plugin_api.ConfigurableExtensionDataRef<string, "catalog.entity-filter-expression", {
|
|
37
|
+
optional: true;
|
|
38
|
+
}>, {}, {
|
|
39
|
+
kind: "entity-content";
|
|
40
|
+
namespace: undefined;
|
|
41
|
+
name: "pipelines";
|
|
42
|
+
}>;
|
|
43
|
+
"entity-content:azure-devops/git-tags": _backstage_frontend_plugin_api.ExtensionDefinition<{
|
|
44
|
+
path: string | undefined;
|
|
45
|
+
title: string | undefined;
|
|
46
|
+
filter: string | undefined;
|
|
47
|
+
}, {
|
|
48
|
+
filter?: string | undefined;
|
|
49
|
+
title?: string | undefined;
|
|
50
|
+
path?: string | undefined;
|
|
51
|
+
}, _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
|
+
optional: true;
|
|
53
|
+
}> | _backstage_frontend_plugin_api.ConfigurableExtensionDataRef<string, "catalog.entity-content-title", {}> | _backstage_frontend_plugin_api.ConfigurableExtensionDataRef<(entity: _backstage_catalog_model.Entity) => boolean, "catalog.entity-filter-function", {
|
|
54
|
+
optional: true;
|
|
55
|
+
}> | _backstage_frontend_plugin_api.ConfigurableExtensionDataRef<string, "catalog.entity-filter-expression", {
|
|
56
|
+
optional: true;
|
|
57
|
+
}>, {}, {
|
|
58
|
+
kind: "entity-content";
|
|
59
|
+
namespace: undefined;
|
|
60
|
+
name: "git-tags";
|
|
61
|
+
}>;
|
|
62
|
+
"entity-content:azure-devops/pull-requests": _backstage_frontend_plugin_api.ExtensionDefinition<{
|
|
63
|
+
path: string | undefined;
|
|
64
|
+
title: string | undefined;
|
|
65
|
+
filter: string | undefined;
|
|
66
|
+
}, {
|
|
67
|
+
filter?: string | undefined;
|
|
68
|
+
title?: string | undefined;
|
|
69
|
+
path?: string | undefined;
|
|
70
|
+
}, _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", {
|
|
71
|
+
optional: true;
|
|
72
|
+
}> | _backstage_frontend_plugin_api.ConfigurableExtensionDataRef<string, "catalog.entity-content-title", {}> | _backstage_frontend_plugin_api.ConfigurableExtensionDataRef<(entity: _backstage_catalog_model.Entity) => boolean, "catalog.entity-filter-function", {
|
|
73
|
+
optional: true;
|
|
74
|
+
}> | _backstage_frontend_plugin_api.ConfigurableExtensionDataRef<string, "catalog.entity-filter-expression", {
|
|
75
|
+
optional: true;
|
|
76
|
+
}>, {}, {
|
|
77
|
+
kind: "entity-content";
|
|
78
|
+
namespace: undefined;
|
|
79
|
+
name: "pull-requests";
|
|
80
|
+
}>;
|
|
81
|
+
"entity-card:azure-devops/readme": _backstage_frontend_plugin_api.ExtensionDefinition<{
|
|
82
|
+
filter: string | undefined;
|
|
83
|
+
}, {
|
|
84
|
+
filter?: string | undefined;
|
|
85
|
+
}, _backstage_frontend_plugin_api.ConfigurableExtensionDataRef<React__default.JSX.Element, "core.reactElement", {}> | _backstage_frontend_plugin_api.ConfigurableExtensionDataRef<(entity: _backstage_catalog_model.Entity) => boolean, "catalog.entity-filter-function", {
|
|
86
|
+
optional: true;
|
|
87
|
+
}> | _backstage_frontend_plugin_api.ConfigurableExtensionDataRef<string, "catalog.entity-filter-expression", {
|
|
88
|
+
optional: true;
|
|
89
|
+
}>, {}, {
|
|
90
|
+
kind: "entity-card";
|
|
91
|
+
namespace: undefined;
|
|
92
|
+
name: "readme";
|
|
93
|
+
}>;
|
|
94
|
+
}>;
|
|
5
95
|
|
|
6
96
|
export { _default as default };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import * as
|
|
3
|
-
import
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import React__default from 'react';
|
|
4
4
|
import { DashboardPullRequest, RepoBuildOptions, RepoBuild, GitTag, PullRequestOptions, PullRequest, Team, BuildRunOptions, BuildRun, ReadmeConfig, Readme } from '@backstage-community/plugin-azure-devops-common';
|
|
5
5
|
import * as _backstage_core_plugin_api from '@backstage/core-plugin-api';
|
|
6
6
|
import { DiscoveryApi, FetchApi } from '@backstage/core-plugin-api';
|
|
@@ -109,24 +109,24 @@ declare const AzurePullRequestsPage: (props: {
|
|
|
109
109
|
pollingInterval?: number | undefined;
|
|
110
110
|
defaultColumnConfigs?: PullRequestColumnConfig[] | undefined;
|
|
111
111
|
teamsLimit?: number | undefined;
|
|
112
|
-
}) =>
|
|
112
|
+
}) => React.JSX.Element;
|
|
113
113
|
/** @public */
|
|
114
114
|
declare const EntityAzurePipelinesContent: (props: {
|
|
115
115
|
defaultLimit?: number | undefined;
|
|
116
|
-
}) =>
|
|
116
|
+
}) => React.JSX.Element;
|
|
117
117
|
/** @public */
|
|
118
|
-
declare const EntityAzureGitTagsContent: () =>
|
|
118
|
+
declare const EntityAzureGitTagsContent: () => React.JSX.Element;
|
|
119
119
|
/** @public */
|
|
120
120
|
declare const EntityAzurePullRequestsContent: (props: {
|
|
121
121
|
defaultLimit?: number | undefined;
|
|
122
|
-
}) =>
|
|
122
|
+
}) => React.JSX.Element;
|
|
123
123
|
/** @public */
|
|
124
124
|
declare const EntityAzureReadmeCard: (props: {
|
|
125
125
|
maxHeight?: number | undefined;
|
|
126
|
-
}) =>
|
|
126
|
+
}) => React.JSX.Element;
|
|
127
127
|
|
|
128
128
|
/** @public */
|
|
129
|
-
declare const AzurePullRequestsIcon: (props: SvgIconProps) =>
|
|
129
|
+
declare const AzurePullRequestsIcon: (props: SvgIconProps) => React__default.JSX.Element;
|
|
130
130
|
|
|
131
131
|
/** @public */
|
|
132
132
|
declare const azureDevOpsApiRef: _backstage_core_plugin_api.ApiRef<AzureDevOpsApi>;
|