@backstage/integration-react 1.2.6-next.0 → 1.2.6-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
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# @backstage/integration-react
|
|
2
2
|
|
|
3
|
+
## 1.2.6-next.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- a47fd39: Removes instances of default React imports, a necessary update for the upcoming React 19 migration.
|
|
8
|
+
|
|
9
|
+
<https://legacy.reactjs.org/blog/2020/09/22/introducing-the-new-jsx-transform.html>
|
|
10
|
+
|
|
11
|
+
- Updated dependencies
|
|
12
|
+
- @backstage/core-plugin-api@1.10.6-next.0
|
|
13
|
+
- @backstage/config@1.3.2
|
|
14
|
+
- @backstage/integration@1.16.3-next.0
|
|
15
|
+
|
|
3
16
|
## 1.2.6-next.0
|
|
4
17
|
|
|
5
18
|
### Patch Changes
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import { jsx } from 'react/jsx-runtime';
|
|
1
2
|
import CodeIcon from '@material-ui/icons/Code';
|
|
2
|
-
import React from 'react';
|
|
3
3
|
import { useApp } from '@backstage/core-plugin-api';
|
|
4
4
|
|
|
5
5
|
const ScmIntegrationIcon = (props) => {
|
|
@@ -7,7 +7,7 @@ const ScmIntegrationIcon = (props) => {
|
|
|
7
7
|
const app = useApp();
|
|
8
8
|
const DefaultIcon = CodeIcon;
|
|
9
9
|
const Icon = type ? app.getSystemIcon(type) ?? DefaultIcon : DefaultIcon;
|
|
10
|
-
return /* @__PURE__ */
|
|
10
|
+
return /* @__PURE__ */ jsx(Icon, {});
|
|
11
11
|
};
|
|
12
12
|
|
|
13
13
|
export { ScmIntegrationIcon };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ScmIntegrationIcon.esm.js","sources":["../../../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 */\nimport CodeIcon from '@material-ui/icons/Code';\nimport
|
|
1
|
+
{"version":3,"file":"ScmIntegrationIcon.esm.js","sources":["../../../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 */\nimport CodeIcon from '@material-ui/icons/Code';\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":";;;;AAmCa,MAAA,kBAAA,GAAqB,CAAC,KAAmC,KAAA;AACpE,EAAM,MAAA,EAAE,MAAS,GAAA,KAAA;AACjB,EAAA,MAAM,MAAM,MAAO,EAAA;AACnB,EAAA,MAAM,WAAc,GAAA,QAAA;AACpB,EAAA,MAAM,OAAO,IAAO,GAAA,GAAA,CAAI,aAAc,CAAA,IAAI,KAAK,WAAc,GAAA,WAAA;AAC7D,EAAA,2BAAQ,IAAK,EAAA,EAAA,CAAA;AACf;;;;"}
|
package/dist/index.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import * as _backstage_core_plugin_api from '@backstage/core-plugin-api';
|
|
|
2
2
|
import { AuthRequestOptions, ApiRef, OAuthApi } from '@backstage/core-plugin-api';
|
|
3
3
|
import { Config } from '@backstage/config';
|
|
4
4
|
import { ScmIntegrationRegistry } from '@backstage/integration';
|
|
5
|
-
import
|
|
5
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* The options that control a {@link ScmAuthApi.getCredentials} call.
|
|
@@ -264,6 +264,6 @@ type ScmIntegrationIconProps = {
|
|
|
264
264
|
*
|
|
265
265
|
* @public
|
|
266
266
|
*/
|
|
267
|
-
declare const ScmIntegrationIcon: (props: ScmIntegrationIconProps) =>
|
|
267
|
+
declare const ScmIntegrationIcon: (props: ScmIntegrationIconProps) => react_jsx_runtime.JSX.Element;
|
|
268
268
|
|
|
269
269
|
export { ScmAuth, type ScmAuthApi, type ScmAuthTokenOptions, type ScmAuthTokenResponse, ScmIntegrationIcon, type ScmIntegrationIconProps, ScmIntegrationsApi, scmAuthApiRef, scmIntegrationsApiRef };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@backstage/integration-react",
|
|
3
|
-
"version": "1.2.6-next.
|
|
3
|
+
"version": "1.2.6-next.1",
|
|
4
4
|
"description": "Frontend package for managing integrations towards external systems",
|
|
5
5
|
"backstage": {
|
|
6
6
|
"role": "web-library"
|
|
@@ -34,16 +34,16 @@
|
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
36
|
"@backstage/config": "1.3.2",
|
|
37
|
-
"@backstage/core-plugin-api": "1.10.
|
|
37
|
+
"@backstage/core-plugin-api": "1.10.6-next.0",
|
|
38
38
|
"@backstage/integration": "1.16.3-next.0",
|
|
39
39
|
"@material-ui/core": "^4.12.2",
|
|
40
40
|
"@material-ui/icons": "^4.9.1"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
|
-
"@backstage/cli": "0.32.0-next.
|
|
44
|
-
"@backstage/core-components": "0.17.1-next.
|
|
45
|
-
"@backstage/dev-utils": "1.1.9-next.
|
|
46
|
-
"@backstage/test-utils": "1.7.
|
|
43
|
+
"@backstage/cli": "0.32.0-next.2",
|
|
44
|
+
"@backstage/core-components": "0.17.1-next.1",
|
|
45
|
+
"@backstage/dev-utils": "1.1.9-next.2",
|
|
46
|
+
"@backstage/test-utils": "1.7.7-next.0",
|
|
47
47
|
"@testing-library/dom": "^10.0.0",
|
|
48
48
|
"@testing-library/jest-dom": "^6.0.0",
|
|
49
49
|
"@types/react": "^18.0.0",
|
|
@@ -63,5 +63,12 @@
|
|
|
63
63
|
"optional": true
|
|
64
64
|
}
|
|
65
65
|
},
|
|
66
|
+
"typesVersions": {
|
|
67
|
+
"*": {
|
|
68
|
+
"package.json": [
|
|
69
|
+
"package.json"
|
|
70
|
+
]
|
|
71
|
+
}
|
|
72
|
+
},
|
|
66
73
|
"module": "./dist/index.esm.js"
|
|
67
74
|
}
|