@backstage/integration-react 0.1.19-next.0 → 0.1.21-next.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 CHANGED
@@ -1,5 +1,37 @@
1
1
  # @backstage/integration-react
2
2
 
3
+ ## 0.1.21-next.0
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+ - @backstage/core-components@0.8.8-next.0
9
+
10
+ ## 0.1.20
11
+
12
+ ### Patch Changes
13
+
14
+ - cee44ad289: Added the ability to collect users `oauth` token from the `RepoUrlPicker` for use in the template manifest
15
+ - Updated dependencies
16
+ - @backstage/core-components@0.8.7
17
+
18
+ ## 0.1.20-next.0
19
+
20
+ ### Patch Changes
21
+
22
+ - Updated dependencies
23
+ - @backstage/core-components@0.8.7-next.0
24
+
25
+ ## 0.1.19
26
+
27
+ ### Patch Changes
28
+
29
+ - Updated dependencies
30
+ - @backstage/core-components@0.8.5
31
+ - @backstage/integration@0.7.2
32
+ - @backstage/core-plugin-api@0.6.0
33
+ - @backstage/config@0.1.13
34
+
3
35
  ## 0.1.19-next.0
4
36
 
5
37
  ### Patch Changes
package/dist/index.d.ts CHANGED
@@ -27,6 +27,16 @@ interface ScmAuthTokenOptions extends AuthRequestOptions {
27
27
  * the ability to create things like issues and pull requests.
28
28
  */
29
29
  repoWrite?: boolean;
30
+ /**
31
+ * Allow an arbitrary list of scopes provided from the user
32
+ * to request from the provider.
33
+ */
34
+ customScopes?: {
35
+ github?: string[];
36
+ azure?: string[];
37
+ bitbucket?: string[];
38
+ gitlab?: string[];
39
+ };
30
40
  };
31
41
  }
32
42
  /**
@@ -101,6 +111,7 @@ declare class ScmAuth implements ScmAuthApi {
101
111
  github: OAuthApi & _backstage_core_plugin_api.ProfileInfoApi & _backstage_core_plugin_api.BackstageIdentityApi & _backstage_core_plugin_api.SessionApi;
102
112
  gitlab: OAuthApi & _backstage_core_plugin_api.ProfileInfoApi & _backstage_core_plugin_api.BackstageIdentityApi & _backstage_core_plugin_api.SessionApi;
103
113
  azure: OAuthApi & _backstage_core_plugin_api.OpenIdConnectApi & _backstage_core_plugin_api.ProfileInfoApi & _backstage_core_plugin_api.BackstageIdentityApi & _backstage_core_plugin_api.SessionApi;
114
+ bitbucket: OAuthApi & _backstage_core_plugin_api.ProfileInfoApi & _backstage_core_plugin_api.BackstageIdentityApi & _backstage_core_plugin_api.SessionApi;
104
115
  }>;
105
116
  /**
106
117
  * Creates a general purpose ScmAuth instance with a custom scope mapping.
@@ -186,6 +197,7 @@ declare class ScmAuth implements ScmAuthApi {
186
197
  * Checks whether the implementation is able to provide authentication for the given URL.
187
198
  */
188
199
  isUrlSupported(url: URL): boolean;
200
+ private getAdditionalScopesForProvider;
189
201
  /**
190
202
  * Fetches credentials for the given resource.
191
203
  */
package/dist/index.esm.js CHANGED
@@ -1,4 +1,4 @@
1
- import { createApiRef, createApiFactory, githubAuthApiRef, gitlabAuthApiRef, microsoftAuthApiRef, useApp } from '@backstage/core-plugin-api';
1
+ import { createApiRef, createApiFactory, githubAuthApiRef, gitlabAuthApiRef, microsoftAuthApiRef, bitbucketAuthApiRef, useApp } from '@backstage/core-plugin-api';
2
2
  import { ScmIntegrations } from '@backstage/integration';
3
3
  import CodeIcon from '@material-ui/icons/Code';
4
4
  import React from 'react';
@@ -25,7 +25,7 @@ var __privateSet = (obj, member, value, setter) => {
25
25
  setter ? setter.call(obj, value) : member.set(obj, value);
26
26
  return value;
27
27
  };
28
- var _providers, _api, _host, _scopeMapping;
28
+ var _providers, _api, _host, _scopeMapping, _providerName;
29
29
  class ScmAuthMux {
30
30
  constructor(providers) {
31
31
  __privateAdd(this, _providers, void 0);
@@ -42,13 +42,15 @@ class ScmAuthMux {
42
42
  }
43
43
  _providers = new WeakMap();
44
44
  const _ScmAuth = class {
45
- constructor(api, host, scopeMapping) {
45
+ constructor(providerName, api, host, scopeMapping) {
46
46
  __privateAdd(this, _api, void 0);
47
47
  __privateAdd(this, _host, void 0);
48
48
  __privateAdd(this, _scopeMapping, void 0);
49
+ __privateAdd(this, _providerName, void 0);
49
50
  __privateSet(this, _api, api);
50
51
  __privateSet(this, _host, host);
51
52
  __privateSet(this, _scopeMapping, scopeMapping);
53
+ __privateSet(this, _providerName, providerName);
52
54
  }
53
55
  static createDefaultApiFactory() {
54
56
  return createApiFactory({
@@ -56,18 +58,19 @@ const _ScmAuth = class {
56
58
  deps: {
57
59
  github: githubAuthApiRef,
58
60
  gitlab: gitlabAuthApiRef,
59
- azure: microsoftAuthApiRef
61
+ azure: microsoftAuthApiRef,
62
+ bitbucket: bitbucketAuthApiRef
60
63
  },
61
- factory: ({ github, gitlab, azure }) => _ScmAuth.merge(_ScmAuth.forGithub(github), _ScmAuth.forGitlab(gitlab), _ScmAuth.forAzure(azure))
64
+ factory: ({ github, gitlab, azure, bitbucket }) => _ScmAuth.merge(_ScmAuth.forGithub(github), _ScmAuth.forGitlab(gitlab), _ScmAuth.forAzure(azure), _ScmAuth.forBitbucket(bitbucket))
62
65
  });
63
66
  }
64
67
  static forAuthApi(authApi, options) {
65
- return new _ScmAuth(authApi, options.host, options.scopeMapping);
68
+ return new _ScmAuth("generic", authApi, options.host, options.scopeMapping);
66
69
  }
67
70
  static forGithub(githubAuthApi, options) {
68
71
  var _a;
69
72
  const host = (_a = options == null ? void 0 : options.host) != null ? _a : "github.com";
70
- return new _ScmAuth(githubAuthApi, host, {
73
+ return new _ScmAuth("github", githubAuthApi, host, {
71
74
  default: ["repo", "read:org", "read:user"],
72
75
  repoWrite: ["gist"]
73
76
  });
@@ -75,7 +78,7 @@ const _ScmAuth = class {
75
78
  static forGitlab(gitlabAuthApi, options) {
76
79
  var _a;
77
80
  const host = (_a = options == null ? void 0 : options.host) != null ? _a : "gitlab.com";
78
- return new _ScmAuth(gitlabAuthApi, host, {
81
+ return new _ScmAuth("gitlab", gitlabAuthApi, host, {
79
82
  default: ["read_user", "read_api", "read_repository"],
80
83
  repoWrite: ["write_repository", "api"]
81
84
  });
@@ -83,7 +86,7 @@ const _ScmAuth = class {
83
86
  static forAzure(microsoftAuthApi, options) {
84
87
  var _a;
85
88
  const host = (_a = options == null ? void 0 : options.host) != null ? _a : "dev.azure.com";
86
- return new _ScmAuth(microsoftAuthApi, host, {
89
+ return new _ScmAuth("azure", microsoftAuthApi, host, {
87
90
  default: [
88
91
  "vso.build",
89
92
  "vso.code",
@@ -97,7 +100,7 @@ const _ScmAuth = class {
97
100
  static forBitbucket(bitbucketAuthApi, options) {
98
101
  var _a;
99
102
  const host = (_a = options == null ? void 0 : options.host) != null ? _a : "bitbucket.org";
100
- return new _ScmAuth(bitbucketAuthApi, host, {
103
+ return new _ScmAuth("bitbucket", bitbucketAuthApi, host, {
101
104
  default: ["account", "team", "pullrequest", "snippet", "issue"],
102
105
  repoWrite: ["pullrequest:write", "snippet:write", "issue:write"]
103
106
  });
@@ -108,13 +111,25 @@ const _ScmAuth = class {
108
111
  isUrlSupported(url) {
109
112
  return url.host === __privateGet(this, _host);
110
113
  }
114
+ getAdditionalScopesForProvider(additionalScopes) {
115
+ var _a, _b;
116
+ if (!(additionalScopes == null ? void 0 : additionalScopes.customScopes) || __privateGet(this, _providerName) === "generic") {
117
+ return [];
118
+ }
119
+ return (_b = (_a = additionalScopes.customScopes) == null ? void 0 : _a[__privateGet(this, _providerName)]) != null ? _b : [];
120
+ }
111
121
  async getCredentials(options) {
112
122
  const { url, additionalScope, ...restOptions } = options;
113
123
  const scopes = __privateGet(this, _scopeMapping).default.slice();
114
124
  if (additionalScope == null ? void 0 : additionalScope.repoWrite) {
115
125
  scopes.push(...__privateGet(this, _scopeMapping).repoWrite);
116
126
  }
117
- const token = await __privateGet(this, _api).getAccessToken(scopes, restOptions);
127
+ const additionalScopes = this.getAdditionalScopesForProvider(additionalScope);
128
+ if (additionalScopes.length) {
129
+ scopes.push(...additionalScopes);
130
+ }
131
+ const uniqueScopes = [...new Set(scopes)];
132
+ const token = await __privateGet(this, _api).getAccessToken(uniqueScopes, restOptions);
118
133
  return {
119
134
  token,
120
135
  headers: {
@@ -127,6 +142,7 @@ let ScmAuth = _ScmAuth;
127
142
  _api = new WeakMap();
128
143
  _host = new WeakMap();
129
144
  _scopeMapping = new WeakMap();
145
+ _providerName = new WeakMap();
130
146
 
131
147
  class ScmIntegrationsApi {
132
148
  static fromConfig(config) {
@@ -1 +1 @@
1
- {"version":3,"file":"index.esm.js","sources":["../src/api/ScmAuthApi.ts","../src/api/ScmAuth.ts","../src/api/ScmIntegrationsApi.ts","../src/components/ScmIntegrationIcon/ScmIntegrationIcon.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 {\n ApiRef,\n createApiRef,\n AuthRequestOptions,\n} from '@backstage/core-plugin-api';\n\n/**\n * The options that control a {@link ScmAuthApi.getCredentials} call.\n *\n * @public\n */\nexport interface ScmAuthTokenOptions extends AuthRequestOptions {\n /**\n * The URL of the SCM resource to be accessed.\n *\n * @example https://github.com/backstage/backstage\n */\n url: string;\n\n /**\n * Whether to request additional access scope.\n *\n * Read access to user, organization, and repositories is always included.\n */\n additionalScope?: {\n /**\n * Requests access to be able to write repository content, including\n * the ability to create things like issues and pull requests.\n */\n repoWrite?: boolean;\n };\n}\n\n/**\n * The response from a {@link ScmAuthApi.getCredentials} call.\n *\n * @public\n */\nexport interface ScmAuthTokenResponse {\n /**\n * An authorization token that can be used to authenticate requests.\n */\n token: string;\n\n /**\n * The set of HTTP headers that are needed to authenticate requests.\n */\n headers: { [name: string]: string };\n}\n\n/**\n * ScmAuthApi provides methods for authenticating towards source code management services.\n *\n * As opposed to using the GitHub, GitLab and other auth APIs\n * directly, this API allows for more generic access to SCM services.\n *\n * @public\n */\nexport interface ScmAuthApi {\n /**\n * Requests credentials for accessing an SCM resource.\n */\n getCredentials(options: ScmAuthTokenOptions): Promise<ScmAuthTokenResponse>;\n}\n\n/**\n * The ApiRef for the ScmAuthApi.\n *\n * @public\n */\nexport const scmAuthApiRef: ApiRef<ScmAuthApi> = createApiRef({\n id: 'core.scmauth',\n});\n","/*\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 {\n createApiFactory,\n githubAuthApiRef,\n gitlabAuthApiRef,\n microsoftAuthApiRef,\n OAuthApi,\n} from '@backstage/core-plugin-api';\nimport {\n ScmAuthApi,\n scmAuthApiRef,\n ScmAuthTokenOptions,\n ScmAuthTokenResponse,\n} from './ScmAuthApi';\n\ntype ScopeMapping = {\n /** The base scopes used for all requests */\n default: string[];\n /** Additional scopes added if `repoWrite` is requested */\n repoWrite: string[];\n};\n\nclass ScmAuthMux implements ScmAuthApi {\n #providers: Array<ScmAuth>;\n\n constructor(providers: ScmAuth[]) {\n this.#providers = providers;\n }\n\n async getCredentials(\n options: ScmAuthTokenOptions,\n ): Promise<ScmAuthTokenResponse> {\n const url = new URL(options.url);\n const provider = this.#providers.find(p => p.isUrlSupported(url));\n if (!provider) {\n throw new Error(\n `No authentication provider available for access to '${options.url}'`,\n );\n }\n\n return provider.getCredentials(options);\n }\n}\n\n/**\n * An implementation of the ScmAuthApi that merges together OAuthApi instances\n * to form a single instance that can handles authentication for multiple providers.\n *\n * @public\n *\n * @example\n * ```\n * // Supports authentication towards both public GitHub and GHE:\n * createApiFactory({\n * api: scmAuthApiRef,\n * deps: {\n * gheAuthApi: gheAuthApiRef,\n * githubAuthApi: githubAuthApiRef,\n * },\n * factory: ({ githubAuthApi, gheAuthApi }) =>\n * ScmAuth.merge(\n * ScmAuth.forGithub(githubAuthApi),\n * ScmAuth.forGithub(gheAuthApi, {\n * host: 'ghe.example.com',\n * }),\n * )\n * })\n * ```\n */\nexport class ScmAuth implements ScmAuthApi {\n /**\n * Creates an API factory that enables auth for each of the default SCM providers.\n */\n static createDefaultApiFactory() {\n return createApiFactory({\n api: scmAuthApiRef,\n deps: {\n github: githubAuthApiRef,\n gitlab: gitlabAuthApiRef,\n azure: microsoftAuthApiRef,\n },\n factory: ({ github, gitlab, azure }) =>\n ScmAuth.merge(\n ScmAuth.forGithub(github),\n ScmAuth.forGitlab(gitlab),\n ScmAuth.forAzure(azure),\n ),\n });\n }\n\n /**\n * Creates a general purpose ScmAuth instance with a custom scope mapping.\n */\n static forAuthApi(\n authApi: OAuthApi,\n options: {\n host: string;\n scopeMapping: {\n default: string[];\n repoWrite: string[];\n };\n },\n ): ScmAuth {\n return new ScmAuth(authApi, options.host, options.scopeMapping);\n }\n\n /**\n * Creates a new ScmAuth instance that handles authentication towards GitHub.\n *\n * The host option determines which URLs that are handled by this instance and defaults to `github.com`.\n *\n * The default scopes are:\n *\n * `repo read:org read:user`\n *\n * If the additional `repoWrite` permission is requested, these scopes are added:\n *\n * `gist`\n */\n static forGithub(\n githubAuthApi: OAuthApi,\n options?: {\n host?: string;\n },\n ): ScmAuth {\n const host = options?.host ?? 'github.com';\n return new ScmAuth(githubAuthApi, host, {\n default: ['repo', 'read:org', 'read:user'],\n repoWrite: ['gist'],\n });\n }\n\n /**\n * Creates a new ScmAuth instance that handles authentication towards GitLab.\n *\n * The host option determines which URLs that are handled by this instance and defaults to `gitlab.com`.\n *\n * The default scopes are:\n *\n * `read_user read_api read_repository`\n *\n * If the additional `repoWrite` permission is requested, these scopes are added:\n *\n * `write_repository api`\n */\n static forGitlab(\n gitlabAuthApi: OAuthApi,\n options?: {\n host?: string;\n },\n ): ScmAuth {\n const host = options?.host ?? 'gitlab.com';\n return new ScmAuth(gitlabAuthApi, host, {\n default: ['read_user', 'read_api', 'read_repository'],\n repoWrite: ['write_repository', 'api'],\n });\n }\n\n /**\n * Creates a new ScmAuth instance that handles authentication towards Azure.\n *\n * The host option determines which URLs that are handled by this instance and defaults to `dev.azure.com`.\n *\n * The default scopes are:\n *\n * `vso.build vso.code vso.graph vso.project vso.profile`\n *\n * If the additional `repoWrite` permission is requested, these scopes are added:\n *\n * `vso.code_manage`\n */\n static forAzure(\n microsoftAuthApi: OAuthApi,\n options?: {\n host?: string;\n },\n ): ScmAuth {\n const host = options?.host ?? 'dev.azure.com';\n return new ScmAuth(microsoftAuthApi, host, {\n default: [\n 'vso.build',\n 'vso.code',\n 'vso.graph',\n 'vso.project',\n 'vso.profile',\n ],\n repoWrite: ['vso.code_manage'],\n });\n }\n\n /**\n * Creates a new ScmAuth instance that handles authentication towards Bitbucket.\n *\n * The host option determines which URLs that are handled by this instance and defaults to `bitbucket.org`.\n *\n * The default scopes are:\n *\n * `account team pullrequest snippet issue`\n *\n * If the additional `repoWrite` permission is requested, these scopes are added:\n *\n * `pullrequest:write snippet:write issue:write`\n */\n static forBitbucket(\n bitbucketAuthApi: OAuthApi,\n options?: {\n host?: string;\n },\n ): ScmAuth {\n const host = options?.host ?? 'bitbucket.org';\n return new ScmAuth(bitbucketAuthApi, host, {\n default: ['account', 'team', 'pullrequest', 'snippet', 'issue'],\n repoWrite: ['pullrequest:write', 'snippet:write', 'issue:write'],\n });\n }\n\n /**\n * Merges together multiple ScmAuth instances into one that\n * routes requests to the correct instance based on the URL.\n */\n static merge(...providers: ScmAuth[]): ScmAuthApi {\n return new ScmAuthMux(providers);\n }\n\n #api: OAuthApi;\n #host: string;\n #scopeMapping: ScopeMapping;\n\n private constructor(api: OAuthApi, host: string, scopeMapping: ScopeMapping) {\n this.#api = api;\n this.#host = host;\n this.#scopeMapping = scopeMapping;\n }\n\n /**\n * Checks whether the implementation is able to provide authentication for the given URL.\n */\n isUrlSupported(url: URL): boolean {\n return url.host === this.#host;\n }\n\n /**\n * Fetches credentials for the given resource.\n */\n async getCredentials(\n options: ScmAuthTokenOptions,\n ): Promise<ScmAuthTokenResponse> {\n const { url, additionalScope, ...restOptions } = options;\n\n const scopes = this.#scopeMapping.default.slice();\n if (additionalScope?.repoWrite) {\n scopes.push(...this.#scopeMapping.repoWrite);\n }\n\n const token = await this.#api.getAccessToken(scopes, restOptions);\n return {\n token,\n headers: {\n Authorization: `Bearer ${token}`,\n },\n };\n }\n}\n","/*\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 { Config } from '@backstage/config';\nimport {\n ScmIntegrationRegistry,\n ScmIntegrations,\n} from '@backstage/integration';\nimport { ApiRef, createApiRef } from '@backstage/core-plugin-api';\n\n/**\n * Factory class for creating {@link @backstage/integration#ScmIntegrationRegistry} instances.\n *\n * @public\n */\nexport class ScmIntegrationsApi {\n /**\n * Instantiates an {@link @backstage/integration#ScmIntegrationRegistry}.\n *\n * @param config - The root of the config hierarchy.\n */\n static fromConfig(config: Config): ScmIntegrationRegistry {\n return ScmIntegrations.fromConfig(config);\n }\n}\n\n/**\n * The API that holds all configured SCM integrations.\n *\n * @public\n */\nexport const scmIntegrationsApiRef: ApiRef<ScmIntegrationRegistry> =\n createApiRef({\n id: 'integration.scmintegrations',\n });\n","/*\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 */\nimport CodeIcon from '@material-ui/icons/Code';\nimport React from 'react';\nimport { useApp } from '@backstage/core-plugin-api';\n\n/**\n * Props for {@link ScmIntegrationIcon}.\n *\n * @public\n */\nexport type ScmIntegrationIconProps = {\n /**\n * The integration type, e.g. \"github\".\n */\n type?: string;\n};\n\n/**\n * An icon that represents a certain SCM integration.\n *\n * @public\n */\nexport const ScmIntegrationIcon = (props: ScmIntegrationIconProps) => {\n const { type } = props;\n const app = useApp();\n const DefaultIcon = CodeIcon;\n const Icon = type ? app.getSystemIcon(type) ?? DefaultIcon : DefaultIcon;\n return <Icon />;\n};\n"],"names":[],"mappings":";;;;;MAsFa,gBAAoC,aAAa;AAAA,EAC5D,IAAI;AAAA;;;;;;;;;;;;;;;;;;;;ACvFN;AAqCA,iBAAuC;AAAA,EAGrC,YAAY,WAAsB;AAFlC;AAGE,uBAAK,YAAa;AAAA;AAAA,QAGd,eACJ,SAC+B;AAC/B,UAAM,MAAM,IAAI,IAAI,QAAQ;AAC5B,UAAM,WAAW,mBAAK,YAAW,KAAK,OAAK,EAAE,eAAe;AAC5D,QAAI,CAAC,UAAU;AACb,YAAM,IAAI,MACR,uDAAuD,QAAQ;AAAA;AAInE,WAAO,SAAS,eAAe;AAAA;AAAA;AAjBjC;AA8CK,uBAAoC;AAAA,EA+JjC,YAAY,KAAe,MAAc,cAA4B;AAJ7E;AACA;AACA;AAGE,uBAAK,MAAO;AACZ,uBAAK,OAAQ;AACb,uBAAK,eAAgB;AAAA;AAAA,SA9JhB,0BAA0B;AAC/B,WAAO,iBAAiB;AAAA,MACtB,KAAK;AAAA,MACL,MAAM;AAAA,QACJ,QAAQ;AAAA,QACR,QAAQ;AAAA,QACR,OAAO;AAAA;AAAA,MAET,SAAS,CAAC,EAAE,QAAQ,QAAQ,YAC1B,SAAQ,MACN,SAAQ,UAAU,SAClB,SAAQ,UAAU,SAClB,SAAQ,SAAS;AAAA;AAAA;AAAA,SAQlB,WACL,SACA,SAOS;AACT,WAAO,IAAI,SAAQ,SAAS,QAAQ,MAAM,QAAQ;AAAA;AAAA,SAgB7C,UACL,eACA,SAGS;AA3Ib;AA4II,UAAM,OAAO,yCAAS,SAAT,YAAiB;AAC9B,WAAO,IAAI,SAAQ,eAAe,MAAM;AAAA,MACtC,SAAS,CAAC,QAAQ,YAAY;AAAA,MAC9B,WAAW,CAAC;AAAA;AAAA;AAAA,SAiBT,UACL,eACA,SAGS;AArKb;AAsKI,UAAM,OAAO,yCAAS,SAAT,YAAiB;AAC9B,WAAO,IAAI,SAAQ,eAAe,MAAM;AAAA,MACtC,SAAS,CAAC,aAAa,YAAY;AAAA,MACnC,WAAW,CAAC,oBAAoB;AAAA;AAAA;AAAA,SAiB7B,SACL,kBACA,SAGS;AA/Lb;AAgMI,UAAM,OAAO,yCAAS,SAAT,YAAiB;AAC9B,WAAO,IAAI,SAAQ,kBAAkB,MAAM;AAAA,MACzC,SAAS;AAAA,QACP;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA;AAAA,MAEF,WAAW,CAAC;AAAA;AAAA;AAAA,SAiBT,aACL,kBACA,SAGS;AA/Nb;AAgOI,UAAM,OAAO,yCAAS,SAAT,YAAiB;AAC9B,WAAO,IAAI,SAAQ,kBAAkB,MAAM;AAAA,MACzC,SAAS,CAAC,WAAW,QAAQ,eAAe,WAAW;AAAA,MACvD,WAAW,CAAC,qBAAqB,iBAAiB;AAAA;AAAA;AAAA,SAQ/C,SAAS,WAAkC;AAChD,WAAO,IAAI,WAAW;AAAA;AAAA,EAgBxB,eAAe,KAAmB;AAChC,WAAO,IAAI,SAAS,mBAAK;AAAA;AAAA,QAMrB,eACJ,SAC+B;AAC/B,UAAM,EAAE,KAAK,oBAAoB,gBAAgB;AAEjD,UAAM,SAAS,mBAAK,eAAc,QAAQ;AAC1C,QAAI,mDAAiB,WAAW;AAC9B,aAAO,KAAK,GAAG,mBAAK,eAAc;AAAA;AAGpC,UAAM,QAAQ,MAAM,mBAAK,MAAK,eAAe,QAAQ;AACrD,WAAO;AAAA,MACL;AAAA,MACA,SAAS;AAAA,QACP,eAAe,UAAU;AAAA;AAAA;AAAA;AAAA;;AAlC/B;AACA;AACA;;yBCrN8B;AAAA,SAMvB,WAAW,QAAwC;AACxD,WAAO,gBAAgB,WAAW;AAAA;AAAA;MASzB,wBACX,aAAa;AAAA,EACX,IAAI;AAAA;;MCVK,qBAAqB,CAAC,UAAmC;AApCtE;AAqCE,QAAM,EAAE,SAAS;AACjB,QAAM,MAAM;AACZ,QAAM,cAAc;AACpB,QAAM,OAAO,OAAO,UAAI,cAAc,UAAlB,YAA2B,cAAc;AAC7D,6CAAQ,MAAD;AAAA;;;;"}
1
+ {"version":3,"file":"index.esm.js","sources":["../src/api/ScmAuthApi.ts","../src/api/ScmAuth.ts","../src/api/ScmIntegrationsApi.ts","../src/components/ScmIntegrationIcon/ScmIntegrationIcon.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 {\n ApiRef,\n createApiRef,\n AuthRequestOptions,\n} from '@backstage/core-plugin-api';\n\n/**\n * The options that control a {@link ScmAuthApi.getCredentials} call.\n *\n * @public\n */\nexport interface ScmAuthTokenOptions extends AuthRequestOptions {\n /**\n * The URL of the SCM resource to be accessed.\n *\n * @example https://github.com/backstage/backstage\n */\n url: string;\n\n /**\n * Whether to request additional access scope.\n *\n * Read access to user, organization, and repositories is always included.\n */\n additionalScope?: {\n /**\n * Requests access to be able to write repository content, including\n * the ability to create things like issues and pull requests.\n */\n repoWrite?: boolean;\n /**\n * Allow an arbitrary list of scopes provided from the user\n * to request from the provider.\n */\n customScopes?: {\n github?: string[];\n azure?: string[];\n bitbucket?: string[];\n gitlab?: string[];\n };\n };\n}\n\n/**\n * The response from a {@link ScmAuthApi.getCredentials} call.\n *\n * @public\n */\nexport interface ScmAuthTokenResponse {\n /**\n * An authorization token that can be used to authenticate requests.\n */\n token: string;\n\n /**\n * The set of HTTP headers that are needed to authenticate requests.\n */\n headers: { [name: string]: string };\n}\n\n/**\n * ScmAuthApi provides methods for authenticating towards source code management services.\n *\n * As opposed to using the GitHub, GitLab and other auth APIs\n * directly, this API allows for more generic access to SCM services.\n *\n * @public\n */\nexport interface ScmAuthApi {\n /**\n * Requests credentials for accessing an SCM resource.\n */\n getCredentials(options: ScmAuthTokenOptions): Promise<ScmAuthTokenResponse>;\n}\n\n/**\n * The ApiRef for the ScmAuthApi.\n *\n * @public\n */\nexport const scmAuthApiRef: ApiRef<ScmAuthApi> = createApiRef({\n id: 'core.scmauth',\n});\n","/*\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 {\n bitbucketAuthApiRef,\n createApiFactory,\n githubAuthApiRef,\n gitlabAuthApiRef,\n microsoftAuthApiRef,\n OAuthApi,\n} from '@backstage/core-plugin-api';\nimport {\n ScmAuthApi,\n scmAuthApiRef,\n ScmAuthTokenOptions,\n ScmAuthTokenResponse,\n} from './ScmAuthApi';\n\ntype ScopeMapping = {\n /** The base scopes used for all requests */\n default: string[];\n /** Additional scopes added if `repoWrite` is requested */\n repoWrite: string[];\n};\n\n// An enum of all supported providers\ntype ProviderName = 'generic' | 'github' | 'azure' | 'bitbucket' | 'gitlab';\n\nclass ScmAuthMux implements ScmAuthApi {\n #providers: Array<ScmAuth>;\n\n constructor(providers: ScmAuth[]) {\n this.#providers = providers;\n }\n\n async getCredentials(\n options: ScmAuthTokenOptions,\n ): Promise<ScmAuthTokenResponse> {\n const url = new URL(options.url);\n const provider = this.#providers.find(p => p.isUrlSupported(url));\n if (!provider) {\n throw new Error(\n `No authentication provider available for access to '${options.url}'`,\n );\n }\n\n return provider.getCredentials(options);\n }\n}\n\n/**\n * An implementation of the ScmAuthApi that merges together OAuthApi instances\n * to form a single instance that can handles authentication for multiple providers.\n *\n * @public\n *\n * @example\n * ```\n * // Supports authentication towards both public GitHub and GHE:\n * createApiFactory({\n * api: scmAuthApiRef,\n * deps: {\n * gheAuthApi: gheAuthApiRef,\n * githubAuthApi: githubAuthApiRef,\n * },\n * factory: ({ githubAuthApi, gheAuthApi }) =>\n * ScmAuth.merge(\n * ScmAuth.forGithub(githubAuthApi),\n * ScmAuth.forGithub(gheAuthApi, {\n * host: 'ghe.example.com',\n * }),\n * )\n * })\n * ```\n */\nexport class ScmAuth implements ScmAuthApi {\n /**\n * Creates an API factory that enables auth for each of the default SCM providers.\n */\n static createDefaultApiFactory() {\n return createApiFactory({\n api: scmAuthApiRef,\n deps: {\n github: githubAuthApiRef,\n gitlab: gitlabAuthApiRef,\n azure: microsoftAuthApiRef,\n bitbucket: bitbucketAuthApiRef,\n },\n factory: ({ github, gitlab, azure, bitbucket }) =>\n ScmAuth.merge(\n ScmAuth.forGithub(github),\n ScmAuth.forGitlab(gitlab),\n ScmAuth.forAzure(azure),\n ScmAuth.forBitbucket(bitbucket),\n ),\n });\n }\n\n /**\n * Creates a general purpose ScmAuth instance with a custom scope mapping.\n */\n static forAuthApi(\n authApi: OAuthApi,\n options: {\n host: string;\n scopeMapping: {\n default: string[];\n repoWrite: string[];\n };\n },\n ): ScmAuth {\n return new ScmAuth('generic', authApi, options.host, options.scopeMapping);\n }\n\n /**\n * Creates a new ScmAuth instance that handles authentication towards GitHub.\n *\n * The host option determines which URLs that are handled by this instance and defaults to `github.com`.\n *\n * The default scopes are:\n *\n * `repo read:org read:user`\n *\n * If the additional `repoWrite` permission is requested, these scopes are added:\n *\n * `gist`\n */\n static forGithub(\n githubAuthApi: OAuthApi,\n options?: {\n host?: string;\n },\n ): ScmAuth {\n const host = options?.host ?? 'github.com';\n return new ScmAuth('github', githubAuthApi, host, {\n default: ['repo', 'read:org', 'read:user'],\n repoWrite: ['gist'],\n });\n }\n\n /**\n * Creates a new ScmAuth instance that handles authentication towards GitLab.\n *\n * The host option determines which URLs that are handled by this instance and defaults to `gitlab.com`.\n *\n * The default scopes are:\n *\n * `read_user read_api read_repository`\n *\n * If the additional `repoWrite` permission is requested, these scopes are added:\n *\n * `write_repository api`\n */\n static forGitlab(\n gitlabAuthApi: OAuthApi,\n options?: {\n host?: string;\n },\n ): ScmAuth {\n const host = options?.host ?? 'gitlab.com';\n return new ScmAuth('gitlab', gitlabAuthApi, host, {\n default: ['read_user', 'read_api', 'read_repository'],\n repoWrite: ['write_repository', 'api'],\n });\n }\n\n /**\n * Creates a new ScmAuth instance that handles authentication towards Azure.\n *\n * The host option determines which URLs that are handled by this instance and defaults to `dev.azure.com`.\n *\n * The default scopes are:\n *\n * `vso.build vso.code vso.graph vso.project vso.profile`\n *\n * If the additional `repoWrite` permission is requested, these scopes are added:\n *\n * `vso.code_manage`\n */\n static forAzure(\n microsoftAuthApi: OAuthApi,\n options?: {\n host?: string;\n },\n ): ScmAuth {\n const host = options?.host ?? 'dev.azure.com';\n return new ScmAuth('azure', microsoftAuthApi, host, {\n default: [\n 'vso.build',\n 'vso.code',\n 'vso.graph',\n 'vso.project',\n 'vso.profile',\n ],\n repoWrite: ['vso.code_manage'],\n });\n }\n\n /**\n * Creates a new ScmAuth instance that handles authentication towards Bitbucket.\n *\n * The host option determines which URLs that are handled by this instance and defaults to `bitbucket.org`.\n *\n * The default scopes are:\n *\n * `account team pullrequest snippet issue`\n *\n * If the additional `repoWrite` permission is requested, these scopes are added:\n *\n * `pullrequest:write snippet:write issue:write`\n */\n static forBitbucket(\n bitbucketAuthApi: OAuthApi,\n options?: {\n host?: string;\n },\n ): ScmAuth {\n const host = options?.host ?? 'bitbucket.org';\n return new ScmAuth('bitbucket', bitbucketAuthApi, host, {\n default: ['account', 'team', 'pullrequest', 'snippet', 'issue'],\n repoWrite: ['pullrequest:write', 'snippet:write', 'issue:write'],\n });\n }\n\n /**\n * Merges together multiple ScmAuth instances into one that\n * routes requests to the correct instance based on the URL.\n */\n static merge(...providers: ScmAuth[]): ScmAuthApi {\n return new ScmAuthMux(providers);\n }\n\n #api: OAuthApi;\n #host: string;\n #scopeMapping: ScopeMapping;\n #providerName: ProviderName;\n\n private constructor(\n providerName: ProviderName,\n api: OAuthApi,\n host: string,\n scopeMapping: ScopeMapping,\n ) {\n this.#api = api;\n this.#host = host;\n this.#scopeMapping = scopeMapping;\n this.#providerName = providerName;\n }\n\n /**\n * Checks whether the implementation is able to provide authentication for the given URL.\n */\n isUrlSupported(url: URL): boolean {\n return url.host === this.#host;\n }\n\n private getAdditionalScopesForProvider(\n additionalScopes: ScmAuthTokenOptions['additionalScope'],\n ): string[] {\n if (!additionalScopes?.customScopes || this.#providerName === 'generic') {\n return [];\n }\n\n return additionalScopes.customScopes?.[this.#providerName] ?? [];\n }\n\n /**\n * Fetches credentials for the given resource.\n */\n async getCredentials(\n options: ScmAuthTokenOptions,\n ): Promise<ScmAuthTokenResponse> {\n const { url, additionalScope, ...restOptions } = options;\n\n const scopes = this.#scopeMapping.default.slice();\n if (additionalScope?.repoWrite) {\n scopes.push(...this.#scopeMapping.repoWrite);\n }\n\n const additionalScopes =\n this.getAdditionalScopesForProvider(additionalScope);\n\n if (additionalScopes.length) {\n scopes.push(...additionalScopes);\n }\n\n const uniqueScopes = [...new Set(scopes)];\n\n const token = await this.#api.getAccessToken(uniqueScopes, restOptions);\n\n return {\n token,\n headers: {\n Authorization: `Bearer ${token}`,\n },\n };\n }\n}\n","/*\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 { Config } from '@backstage/config';\nimport {\n ScmIntegrationRegistry,\n ScmIntegrations,\n} from '@backstage/integration';\nimport { ApiRef, createApiRef } from '@backstage/core-plugin-api';\n\n/**\n * Factory class for creating {@link @backstage/integration#ScmIntegrationRegistry} instances.\n *\n * @public\n */\nexport class ScmIntegrationsApi {\n /**\n * Instantiates an {@link @backstage/integration#ScmIntegrationRegistry}.\n *\n * @param config - The root of the config hierarchy.\n */\n static fromConfig(config: Config): ScmIntegrationRegistry {\n return ScmIntegrations.fromConfig(config);\n }\n}\n\n/**\n * The API that holds all configured SCM integrations.\n *\n * @public\n */\nexport const scmIntegrationsApiRef: ApiRef<ScmIntegrationRegistry> =\n createApiRef({\n id: 'integration.scmintegrations',\n });\n","/*\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 */\nimport CodeIcon from '@material-ui/icons/Code';\nimport React from 'react';\nimport { useApp } from '@backstage/core-plugin-api';\n\n/**\n * Props for {@link ScmIntegrationIcon}.\n *\n * @public\n */\nexport type ScmIntegrationIconProps = {\n /**\n * The integration type, e.g. \"github\".\n */\n type?: string;\n};\n\n/**\n * An icon that represents a certain SCM integration.\n *\n * @public\n */\nexport const ScmIntegrationIcon = (props: ScmIntegrationIconProps) => {\n const { type } = props;\n const app = useApp();\n const DefaultIcon = CodeIcon;\n const Icon = type ? app.getSystemIcon(type) ?? DefaultIcon : DefaultIcon;\n return <Icon />;\n};\n"],"names":[],"mappings":";;;;;MAgGa,gBAAoC,aAAa;AAAA,EAC5D,IAAI;AAAA;;;;;;;;;;;;;;;;;;;;ACjGN;AAyCA,iBAAuC;AAAA,EAGrC,YAAY,WAAsB;AAFlC;AAGE,uBAAK,YAAa;AAAA;AAAA,QAGd,eACJ,SAC+B;AAC/B,UAAM,MAAM,IAAI,IAAI,QAAQ;AAC5B,UAAM,WAAW,mBAAK,YAAW,KAAK,OAAK,EAAE,eAAe;AAC5D,QAAI,CAAC,UAAU;AACb,YAAM,IAAI,MACR,uDAAuD,QAAQ;AAAA;AAInE,WAAO,SAAS,eAAe;AAAA;AAAA;AAjBjC;AA8CK,uBAAoC;AAAA,EAkKjC,YACN,cACA,KACA,MACA,cACA;AAVF;AACA;AACA;AACA;AAQE,uBAAK,MAAO;AACZ,uBAAK,OAAQ;AACb,uBAAK,eAAgB;AACrB,uBAAK,eAAgB;AAAA;AAAA,SAvKhB,0BAA0B;AAC/B,WAAO,iBAAiB;AAAA,MACtB,KAAK;AAAA,MACL,MAAM;AAAA,QACJ,QAAQ;AAAA,QACR,QAAQ;AAAA,QACR,OAAO;AAAA,QACP,WAAW;AAAA;AAAA,MAEb,SAAS,CAAC,EAAE,QAAQ,QAAQ,OAAO,gBACjC,SAAQ,MACN,SAAQ,UAAU,SAClB,SAAQ,UAAU,SAClB,SAAQ,SAAS,QACjB,SAAQ,aAAa;AAAA;AAAA;AAAA,SAQtB,WACL,SACA,SAOS;AACT,WAAO,IAAI,SAAQ,WAAW,SAAS,QAAQ,MAAM,QAAQ;AAAA;AAAA,SAgBxD,UACL,eACA,SAGS;AAjJb;AAkJI,UAAM,OAAO,yCAAS,SAAT,YAAiB;AAC9B,WAAO,IAAI,SAAQ,UAAU,eAAe,MAAM;AAAA,MAChD,SAAS,CAAC,QAAQ,YAAY;AAAA,MAC9B,WAAW,CAAC;AAAA;AAAA;AAAA,SAiBT,UACL,eACA,SAGS;AA3Kb;AA4KI,UAAM,OAAO,yCAAS,SAAT,YAAiB;AAC9B,WAAO,IAAI,SAAQ,UAAU,eAAe,MAAM;AAAA,MAChD,SAAS,CAAC,aAAa,YAAY;AAAA,MACnC,WAAW,CAAC,oBAAoB;AAAA;AAAA;AAAA,SAiB7B,SACL,kBACA,SAGS;AArMb;AAsMI,UAAM,OAAO,yCAAS,SAAT,YAAiB;AAC9B,WAAO,IAAI,SAAQ,SAAS,kBAAkB,MAAM;AAAA,MAClD,SAAS;AAAA,QACP;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA;AAAA,MAEF,WAAW,CAAC;AAAA;AAAA;AAAA,SAiBT,aACL,kBACA,SAGS;AArOb;AAsOI,UAAM,OAAO,yCAAS,SAAT,YAAiB;AAC9B,WAAO,IAAI,SAAQ,aAAa,kBAAkB,MAAM;AAAA,MACtD,SAAS,CAAC,WAAW,QAAQ,eAAe,WAAW;AAAA,MACvD,WAAW,CAAC,qBAAqB,iBAAiB;AAAA;AAAA;AAAA,SAQ/C,SAAS,WAAkC;AAChD,WAAO,IAAI,WAAW;AAAA;AAAA,EAuBxB,eAAe,KAAmB;AAChC,WAAO,IAAI,SAAS,mBAAK;AAAA;AAAA,EAGnB,+BACN,kBACU;AA/Qd;AAgRI,QAAI,uDAAmB,iBAAgB,mBAAK,mBAAkB,WAAW;AACvE,aAAO;AAAA;AAGT,WAAO,6BAAiB,iBAAjB,mBAAgC,mBAAK,oBAArC,YAAuD;AAAA;AAAA,QAM1D,eACJ,SAC+B;AAC/B,UAAM,EAAE,KAAK,oBAAoB,gBAAgB;AAEjD,UAAM,SAAS,mBAAK,eAAc,QAAQ;AAC1C,QAAI,mDAAiB,WAAW;AAC9B,aAAO,KAAK,GAAG,mBAAK,eAAc;AAAA;AAGpC,UAAM,mBACJ,KAAK,+BAA+B;AAEtC,QAAI,iBAAiB,QAAQ;AAC3B,aAAO,KAAK,GAAG;AAAA;AAGjB,UAAM,eAAe,CAAC,GAAG,IAAI,IAAI;AAEjC,UAAM,QAAQ,MAAM,mBAAK,MAAK,eAAe,cAAc;AAE3D,WAAO;AAAA,MACL;AAAA,MACA,SAAS;AAAA,QACP,eAAe,UAAU;AAAA;AAAA;AAAA;AAAA;;AA7D/B;AACA;AACA;AACA;;yBC5N8B;AAAA,SAMvB,WAAW,QAAwC;AACxD,WAAO,gBAAgB,WAAW;AAAA;AAAA;MASzB,wBACX,aAAa;AAAA,EACX,IAAI;AAAA;;MCVK,qBAAqB,CAAC,UAAmC;AApCtE;AAqCE,QAAM,EAAE,SAAS;AACjB,QAAM,MAAM;AACZ,QAAM,cAAc;AACpB,QAAM,OAAO,OAAO,UAAI,cAAc,UAAlB,YAA2B,cAAc;AAC7D,6CAAQ,MAAD;AAAA;;;;"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@backstage/integration-react",
3
3
  "description": "Frontend package for managing integrations towards external systems",
4
- "version": "0.1.19-next.0",
4
+ "version": "0.1.21-next.0",
5
5
  "main": "dist/index.esm.js",
6
6
  "types": "dist/index.d.ts",
7
7
  "license": "Apache-2.0",
@@ -21,10 +21,10 @@
21
21
  "clean": "backstage-cli clean"
22
22
  },
23
23
  "dependencies": {
24
- "@backstage/config": "^0.1.13-next.0",
25
- "@backstage/core-components": "^0.8.5-next.0",
26
- "@backstage/core-plugin-api": "^0.6.0-next.0",
27
- "@backstage/integration": "^0.7.2-next.0",
24
+ "@backstage/config": "^0.1.13",
25
+ "@backstage/core-components": "^0.8.8-next.0",
26
+ "@backstage/core-plugin-api": "^0.6.0",
27
+ "@backstage/integration": "^0.7.2",
28
28
  "@backstage/theme": "^0.2.14",
29
29
  "@material-ui/core": "^4.12.2",
30
30
  "@material-ui/icons": "^4.9.1",
@@ -35,9 +35,9 @@
35
35
  "react": "^16.13.1 || ^17.0.0"
36
36
  },
37
37
  "devDependencies": {
38
- "@backstage/cli": "^0.12.0-next.0",
39
- "@backstage/dev-utils": "^0.2.18-next.0",
40
- "@backstage/test-utils": "^0.2.3-next.0",
38
+ "@backstage/cli": "^0.13.2-next.0",
39
+ "@backstage/dev-utils": "^0.2.21-next.0",
40
+ "@backstage/test-utils": "^0.2.4",
41
41
  "@testing-library/jest-dom": "^5.10.1",
42
42
  "@testing-library/react": "^11.2.5",
43
43
  "@testing-library/user-event": "^13.1.8",
@@ -49,5 +49,5 @@
49
49
  "files": [
50
50
  "dist"
51
51
  ],
52
- "gitHead": "31184691d5a38cb78b091c8f7ad6db80604519a6"
52
+ "gitHead": "e6f167225d843beeb974c287c3364d951b587626"
53
53
  }