@backstage/integration-react 1.2.24-next.1 → 1.3.1-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,26 @@
|
|
|
1
1
|
# @backstage/integration-react
|
|
2
2
|
|
|
3
|
+
## 1.3.1-next.0
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
- @backstage/integration@2.2.1-next.0
|
|
9
|
+
|
|
10
|
+
## 1.3.0
|
|
11
|
+
|
|
12
|
+
### Minor Changes
|
|
13
|
+
|
|
14
|
+
- 4bbc7a9: Removed explicit support for React 17: the peer dependency range for `react`, `react-dom` and `@types/react` is now `^18.0.0`. React 17 is no longer tested or guaranteed to work, although it may continue to work in some cases. See the [migration guide](https://backstage.io/docs/frontend-system/architecture/migrations#157).
|
|
15
|
+
|
|
16
|
+
### Patch Changes
|
|
17
|
+
|
|
18
|
+
- 4c662c9: Removed this package's direct Material UI v4 dependencies. SCM integrations without a registered system icon now use a Remix code icon as the fallback.
|
|
19
|
+
- Updated dependencies
|
|
20
|
+
- @backstage/core-plugin-api@1.13.0
|
|
21
|
+
- @backstage/integration@2.2.0
|
|
22
|
+
- @backstage/config@1.3.11
|
|
23
|
+
|
|
3
24
|
## 1.2.24-next.1
|
|
4
25
|
|
|
5
26
|
### Patch Changes
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import { jsx } from 'react/jsx-runtime';
|
|
2
|
-
import
|
|
2
|
+
import { RiCodeLine } from '@remixicon/react';
|
|
3
3
|
import { useApp } from '@backstage/core-plugin-api';
|
|
4
4
|
|
|
5
5
|
const ScmIntegrationIcon = (props) => {
|
|
6
6
|
const { type } = props;
|
|
7
7
|
const app = useApp();
|
|
8
|
-
const
|
|
9
|
-
const Icon = type ? app.getSystemIcon(type) ?? DefaultIcon : DefaultIcon;
|
|
8
|
+
const Icon = (type ? app.getSystemIcon(type) : void 0) ?? RiCodeLine;
|
|
10
9
|
return /* @__PURE__ */ jsx(Icon, {});
|
|
11
10
|
};
|
|
12
11
|
|
|
@@ -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
|
|
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 { RiCodeLine } from '@remixicon/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 * Uses the app's registered system icon for the integration type, or a generic\n * code icon when no matching icon is registered.\n *\n * @public\n */\nexport const ScmIntegrationIcon = (props: ScmIntegrationIconProps) => {\n const { type } = props;\n const app = useApp();\n const Icon = (type ? app.getSystemIcon(type) : undefined) ?? RiCodeLine;\n return <Icon />;\n};\n"],"names":[],"mappings":";;;;AAqCO,MAAM,kBAAA,GAAqB,CAAC,KAAA,KAAmC;AACpE,EAAA,MAAM,EAAE,MAAK,GAAI,KAAA;AACjB,EAAA,MAAM,MAAM,MAAA,EAAO;AACnB,EAAA,MAAM,QAAQ,IAAA,GAAO,GAAA,CAAI,aAAA,CAAc,IAAI,IAAI,MAAA,KAAc,UAAA;AAC7D,EAAA,2BAAQ,IAAA,EAAA,EAAK,CAAA;AACf;;"}
|
package/dist/index.d.ts
CHANGED
|
@@ -261,6 +261,8 @@ type ScmIntegrationIconProps = {
|
|
|
261
261
|
};
|
|
262
262
|
/**
|
|
263
263
|
* An icon that represents a certain SCM integration.
|
|
264
|
+
* Uses the app's registered system icon for the integration type, or a generic
|
|
265
|
+
* code icon when no matching icon is registered.
|
|
264
266
|
*
|
|
265
267
|
* @public
|
|
266
268
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@backstage/integration-react",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.3.1-next.0",
|
|
4
4
|
"description": "Frontend package for managing integrations towards external systems",
|
|
5
5
|
"backstage": {
|
|
6
6
|
"role": "web-library"
|
|
@@ -33,28 +33,28 @@
|
|
|
33
33
|
"test": "backstage-cli package test"
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@backstage/config": "1.3.11
|
|
37
|
-
"@backstage/core-plugin-api": "1.
|
|
38
|
-
"@backstage/integration": "2.1
|
|
39
|
-
"@
|
|
40
|
-
"@material-ui/icons": "^4.9.1"
|
|
36
|
+
"@backstage/config": "1.3.11",
|
|
37
|
+
"@backstage/core-plugin-api": "1.13.0",
|
|
38
|
+
"@backstage/integration": "2.2.1-next.0",
|
|
39
|
+
"@remixicon/react": ">=4.6.0 <4.9.0"
|
|
41
40
|
},
|
|
42
41
|
"devDependencies": {
|
|
43
|
-
"@backstage/cli": "0.36.
|
|
44
|
-
"@backstage/
|
|
45
|
-
"@backstage/
|
|
46
|
-
"@backstage/
|
|
42
|
+
"@backstage/cli": "0.36.9-next.0",
|
|
43
|
+
"@backstage/dev-utils": "1.2.1-next.0",
|
|
44
|
+
"@backstage/test-utils": "1.8.1-next.0",
|
|
45
|
+
"@backstage/ui": "0.20.0",
|
|
47
46
|
"@testing-library/dom": "^10.0.0",
|
|
48
47
|
"@testing-library/jest-dom": "^6.0.0",
|
|
48
|
+
"@testing-library/react": "^16.0.0",
|
|
49
49
|
"@types/react": "^18.0.0",
|
|
50
50
|
"react": "^18.0.2",
|
|
51
51
|
"react-dom": "^18.0.2",
|
|
52
52
|
"react-router-dom": "^6.30.2"
|
|
53
53
|
},
|
|
54
54
|
"peerDependencies": {
|
|
55
|
-
"@types/react": "^
|
|
56
|
-
"react": "^
|
|
57
|
-
"react-dom": "^
|
|
55
|
+
"@types/react": "^18.0.0",
|
|
56
|
+
"react": "^18.0.0",
|
|
57
|
+
"react-dom": "^18.0.0",
|
|
58
58
|
"react-router-dom": "^6.30.2"
|
|
59
59
|
},
|
|
60
60
|
"peerDependenciesMeta": {
|