@backstage/plugin-catalog-import 0.13.18-next.1 → 0.13.18
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,41 @@
|
|
|
1
1
|
# @backstage/plugin-catalog-import
|
|
2
2
|
|
|
3
|
+
## 0.13.18
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 736d84e: Use locale-insensitive Unicode casing for consistent string handling across environments.
|
|
8
|
+
- 5d6a62b: Fixed the owner selected in the import stepper being written to the generated `catalog-info.yaml` as a display name instead of an entity reference. Groups are still suggested by their display name, but selecting one now sets a valid `spec.owner`, for example picking `My Team` results in `my-team`.
|
|
9
|
+
- d421187: Reduced the initial app bundle size by loading page and optional UI implementations only when their extensions render.
|
|
10
|
+
- Updated dependencies
|
|
11
|
+
- @backstage/core-components@0.18.14
|
|
12
|
+
- @backstage/integration@2.1.2
|
|
13
|
+
- @backstage/plugin-catalog-common@1.2.0
|
|
14
|
+
- @backstage/catalog-client@1.16.2
|
|
15
|
+
- @backstage/catalog-model@1.10.1
|
|
16
|
+
- @backstage/plugin-catalog-react@3.2.3
|
|
17
|
+
- @backstage/config@1.3.9
|
|
18
|
+
- @backstage/frontend-plugin-api@0.18.1
|
|
19
|
+
- @backstage/core-plugin-api@1.12.10
|
|
20
|
+
- @backstage/integration-react@1.2.22
|
|
21
|
+
- @backstage/plugin-permission-react@0.5.5
|
|
22
|
+
|
|
23
|
+
## 0.13.18-next.2
|
|
24
|
+
|
|
25
|
+
### Patch Changes
|
|
26
|
+
|
|
27
|
+
- Updated dependencies
|
|
28
|
+
- @backstage/plugin-catalog-common@1.2.0-next.0
|
|
29
|
+
- @backstage/config@1.3.9-next.0
|
|
30
|
+
- @backstage/catalog-client@1.16.2-next.1
|
|
31
|
+
- @backstage/plugin-catalog-react@3.2.3-next.2
|
|
32
|
+
- @backstage/core-components@0.18.14-next.2
|
|
33
|
+
- @backstage/core-plugin-api@1.12.10-next.1
|
|
34
|
+
- @backstage/frontend-plugin-api@0.18.1-next.1
|
|
35
|
+
- @backstage/integration@2.1.2-next.1
|
|
36
|
+
- @backstage/integration-react@1.2.22-next.1
|
|
37
|
+
- @backstage/plugin-permission-react@0.5.5-next.1
|
|
38
|
+
|
|
3
39
|
## 0.13.18-next.1
|
|
4
40
|
|
|
5
41
|
### Patch Changes
|
|
@@ -15,12 +15,10 @@ import { EntityListComponent } from '../EntityListComponent/EntityListComponent.
|
|
|
15
15
|
const filterComponentEntity = (newLocations) => {
|
|
16
16
|
for (const location of newLocations) {
|
|
17
17
|
for (const entity of location.entities) {
|
|
18
|
-
if (["component", "api", "resource"].includes(
|
|
19
|
-
entity.kind.toLocaleLowerCase("en-US")
|
|
20
|
-
)) {
|
|
18
|
+
if (["component", "api", "resource"].includes(entity.kind.toLowerCase())) {
|
|
21
19
|
return {
|
|
22
|
-
kind: entity.kind.
|
|
23
|
-
namespace: entity.namespace?.
|
|
20
|
+
kind: entity.kind.toLowerCase(),
|
|
21
|
+
namespace: entity.namespace?.toLowerCase() ?? DEFAULT_NAMESPACE,
|
|
24
22
|
name: entity.name
|
|
25
23
|
};
|
|
26
24
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StepFinishImportLocation.esm.js","sources":["../../../src/components/StepFinishImportLocation/StepFinishImportLocation.tsx"],"sourcesContent":["/*\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 { CompoundEntityRef, DEFAULT_NAMESPACE } from '@backstage/catalog-model';\nimport { Link } from '@backstage/core-components';\nimport { useRouteRef } from '@backstage/core-plugin-api';\nimport { useTranslationRef } from '@backstage/frontend-plugin-api';\nimport { entityRouteRef } from '@backstage/plugin-catalog-react';\nimport Grid from '@material-ui/core/Grid';\nimport Typography from '@material-ui/core/Typography';\nimport LocationOnIcon from '@material-ui/icons/LocationOn';\nimport partition from 'lodash/partition';\n\nimport { catalogImportTranslationRef } from '../../translation';\nimport { BackButton, ViewComponentButton } from '../Buttons';\nimport { EntityListComponent } from '../EntityListComponent';\nimport { PrepareResult } from '../useImportState';\n\ntype Props = {\n prepareResult: PrepareResult;\n onReset: () => void;\n};\n\n// Among the newly registered entities, return a software entity (e.g. Component, API, Resource)\nconst filterComponentEntity = (\n newLocations: Array<{\n exists?: boolean;\n target: string;\n entities: CompoundEntityRef[];\n }>,\n): CompoundEntityRef | null => {\n for (const location of newLocations) {\n for (const entity of location.entities) {\n if (\n ['component', 'api', 'resource'].includes(
|
|
1
|
+
{"version":3,"file":"StepFinishImportLocation.esm.js","sources":["../../../src/components/StepFinishImportLocation/StepFinishImportLocation.tsx"],"sourcesContent":["/*\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 { CompoundEntityRef, DEFAULT_NAMESPACE } from '@backstage/catalog-model';\nimport { Link } from '@backstage/core-components';\nimport { useRouteRef } from '@backstage/core-plugin-api';\nimport { useTranslationRef } from '@backstage/frontend-plugin-api';\nimport { entityRouteRef } from '@backstage/plugin-catalog-react';\nimport Grid from '@material-ui/core/Grid';\nimport Typography from '@material-ui/core/Typography';\nimport LocationOnIcon from '@material-ui/icons/LocationOn';\nimport partition from 'lodash/partition';\n\nimport { catalogImportTranslationRef } from '../../translation';\nimport { BackButton, ViewComponentButton } from '../Buttons';\nimport { EntityListComponent } from '../EntityListComponent';\nimport { PrepareResult } from '../useImportState';\n\ntype Props = {\n prepareResult: PrepareResult;\n onReset: () => void;\n};\n\n// Among the newly registered entities, return a software entity (e.g. Component, API, Resource)\nconst filterComponentEntity = (\n newLocations: Array<{\n exists?: boolean;\n target: string;\n entities: CompoundEntityRef[];\n }>,\n): CompoundEntityRef | null => {\n for (const location of newLocations) {\n for (const entity of location.entities) {\n if (\n ['component', 'api', 'resource'].includes(entity.kind.toLowerCase())\n ) {\n return {\n kind: entity.kind.toLowerCase(),\n namespace: entity.namespace?.toLowerCase() ?? DEFAULT_NAMESPACE,\n name: entity.name,\n };\n }\n }\n }\n\n return null;\n};\n\nexport const StepFinishImportLocation = ({ prepareResult, onReset }: Props) => {\n const { t } = useTranslationRef(catalogImportTranslationRef);\n const entityRoute = useRouteRef(entityRouteRef);\n\n if (prepareResult.type === 'repository') {\n return (\n <>\n <Typography paragraph>\n {t('stepFinishImportLocation.repository.title')}\n <Link\n to={prepareResult.pullRequest.url}\n target=\"_blank\"\n rel=\"noreferrer\"\n >\n {prepareResult.pullRequest.url}\n </Link>\n </Typography>\n <Typography paragraph>\n {t('stepFinishImportLocation.repository.description')}\n </Typography>\n <Grid container spacing={0}>\n <BackButton onClick={onReset}>\n {t('stepFinishImportLocation.backButtonText')}\n </BackButton>\n </Grid>\n </>\n );\n }\n\n const [existingLocations, newLocations] = partition(\n prepareResult.locations,\n l => l.exists,\n );\n const newComponentEntity = filterComponentEntity(newLocations);\n return (\n <>\n {newLocations.length > 0 && (\n <>\n <Typography>{t('stepFinishImportLocation.locations.new')}</Typography>\n\n <EntityListComponent\n locations={newLocations}\n locationListItemIcon={() => <LocationOnIcon />}\n withLinks\n />\n </>\n )}\n {existingLocations.length > 0 && (\n <>\n <Typography>\n {t('stepFinishImportLocation.locations.existing')}\n </Typography>\n\n <EntityListComponent\n locations={existingLocations}\n locationListItemIcon={() => <LocationOnIcon />}\n withLinks\n />\n </>\n )}\n <Grid container spacing={0}>\n {newComponentEntity && (\n <ViewComponentButton to={entityRoute(newComponentEntity)}>\n {t('stepFinishImportLocation.locations.viewButtonText')}\n </ViewComponentButton>\n )}\n <BackButton onClick={onReset}>\n {t('stepFinishImportLocation.backButtonText')}\n </BackButton>\n </Grid>\n </>\n );\n};\n"],"names":[],"mappings":";;;;;;;;;;;;;;AAqCA,MAAM,qBAAA,GAAwB,CAC5B,YAAA,KAK6B;AAC7B,EAAA,KAAA,MAAW,YAAY,YAAA,EAAc;AACnC,IAAA,KAAA,MAAW,MAAA,IAAU,SAAS,QAAA,EAAU;AACtC,MAAA,IACE,CAAC,WAAA,EAAa,KAAA,EAAO,UAAU,CAAA,CAAE,SAAS,MAAA,CAAO,IAAA,CAAK,WAAA,EAAa,CAAA,EACnE;AACA,QAAA,OAAO;AAAA,UACL,IAAA,EAAM,MAAA,CAAO,IAAA,CAAK,WAAA,EAAY;AAAA,UAC9B,SAAA,EAAW,MAAA,CAAO,SAAA,EAAW,WAAA,EAAY,IAAK,iBAAA;AAAA,UAC9C,MAAM,MAAA,CAAO;AAAA,SACf;AAAA,MACF;AAAA,IACF;AAAA,EACF;AAEA,EAAA,OAAO,IAAA;AACT,CAAA;AAEO,MAAM,wBAAA,GAA2B,CAAC,EAAE,aAAA,EAAe,SAAQ,KAAa;AAC7E,EAAA,MAAM,EAAE,CAAA,EAAE,GAAI,iBAAA,CAAkB,2BAA2B,CAAA;AAC3D,EAAA,MAAM,WAAA,GAAc,YAAY,cAAc,CAAA;AAE9C,EAAA,IAAI,aAAA,CAAc,SAAS,YAAA,EAAc;AACvC,IAAA,uBACE,IAAA,CAAA,QAAA,EAAA,EACE,QAAA,EAAA;AAAA,sBAAA,IAAA,CAAC,UAAA,EAAA,EAAW,WAAS,IAAA,EAClB,QAAA,EAAA;AAAA,QAAA,CAAA,CAAE,2CAA2C,CA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,MAAA,GAAS,CAAA,oBAC1B,IAAA,CAAA,QAAA,EAAA,EACE,QAAA,EAAA;AAAA,sBAAA,GAAA,CAAC,UAAA,EAAA,EACE,QAAA,EAAA,CAAA,CAAE,6CAA6C,CAAA,EAClD,CAAA;AAAA,sBAEA,GAAA;AAAA,QAAC,mBAAA;AAAA,QAAA;AAAA,UACC,SAAA,EAAW,iBAAA;AAAA,UACX,oBAAA,EAAsB,sBAAM,GAAA,CAAC,cAAA,EAAA,EAAe,CAAA;AAAA,UAC5C,SAAA,EAAS;AAAA;AAAA;AACX,KAAA,EACF,CAAA;AAAA,oBAEF,IAAA,CAAC,IAAA,EAAA,EAAK,SAAA,EAAS,IAAA,EAAC,SAAS,CAAA,EACtB,QAAA,EAAA;AAAA,MAAA,kBAAA,oBACC,GAAA,CAAC,uBAAoB,EAAA,EAAI,WAAA,CAAY,kBAAkB,CAAA,EACpD,QAAA,EAAA,CAAA,CAAE,mDAAmD,CAAA,EACxD,CAAA;AAAA,0BAED,UAAA,EAAA,EAAW,OAAA,EAAS,OAAA,EAClB,QAAA,EAAA,CAAA,CAAE,yCAAyC,CAAA,EAC9C;AAAA,KAAA,EACF;AAAA,GAAA,EACF,CAAA;AAEJ;;;;"}
|
package/dist/package.json.esm.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@backstage/plugin-catalog-import",
|
|
3
|
-
"version": "0.13.18
|
|
3
|
+
"version": "0.13.18",
|
|
4
4
|
"description": "A Backstage plugin the helps you import entities into your catalog",
|
|
5
5
|
"backstage": {
|
|
6
6
|
"role": "frontend-plugin",
|
|
@@ -66,18 +66,18 @@
|
|
|
66
66
|
"test": "backstage-cli package test"
|
|
67
67
|
},
|
|
68
68
|
"dependencies": {
|
|
69
|
-
"@backstage/catalog-client": "1.16.2
|
|
70
|
-
"@backstage/catalog-model": "1.10.
|
|
71
|
-
"@backstage/config": "1.3.
|
|
72
|
-
"@backstage/core-components": "0.18.14
|
|
73
|
-
"@backstage/core-plugin-api": "1.12.10
|
|
74
|
-
"@backstage/errors": "1.3.1",
|
|
75
|
-
"@backstage/frontend-plugin-api": "0.18.1
|
|
76
|
-
"@backstage/integration": "2.1.2
|
|
77
|
-
"@backstage/integration-react": "1.2.22
|
|
78
|
-
"@backstage/plugin-catalog-common": "1.
|
|
79
|
-
"@backstage/plugin-catalog-react": "3.2.3
|
|
80
|
-
"@backstage/plugin-permission-react": "0.5.5
|
|
69
|
+
"@backstage/catalog-client": "^1.16.2",
|
|
70
|
+
"@backstage/catalog-model": "^1.10.1",
|
|
71
|
+
"@backstage/config": "^1.3.9",
|
|
72
|
+
"@backstage/core-components": "^0.18.14",
|
|
73
|
+
"@backstage/core-plugin-api": "^1.12.10",
|
|
74
|
+
"@backstage/errors": "^1.3.1",
|
|
75
|
+
"@backstage/frontend-plugin-api": "^0.18.1",
|
|
76
|
+
"@backstage/integration": "^2.1.2",
|
|
77
|
+
"@backstage/integration-react": "^1.2.22",
|
|
78
|
+
"@backstage/plugin-catalog-common": "^1.2.0",
|
|
79
|
+
"@backstage/plugin-catalog-react": "^3.2.3",
|
|
80
|
+
"@backstage/plugin-permission-react": "^0.5.5",
|
|
81
81
|
"@material-ui/core": "^4.12.2",
|
|
82
82
|
"@material-ui/icons": "^4.9.1",
|
|
83
83
|
"@material-ui/lab": "4.0.0-alpha.61",
|
|
@@ -91,11 +91,11 @@
|
|
|
91
91
|
"yaml": "^2.0.0"
|
|
92
92
|
},
|
|
93
93
|
"devDependencies": {
|
|
94
|
-
"@backstage/cli": "0.36.6
|
|
95
|
-
"@backstage/core-app-api": "1.20.5
|
|
96
|
-
"@backstage/dev-utils": "1.1.27
|
|
97
|
-
"@backstage/plugin-catalog": "2.0.9
|
|
98
|
-
"@backstage/test-utils": "1.7.22
|
|
94
|
+
"@backstage/cli": "^0.36.6",
|
|
95
|
+
"@backstage/core-app-api": "^1.20.5",
|
|
96
|
+
"@backstage/dev-utils": "^1.1.27",
|
|
97
|
+
"@backstage/plugin-catalog": "^2.0.9",
|
|
98
|
+
"@backstage/test-utils": "^1.7.22",
|
|
99
99
|
"@testing-library/dom": "^10.0.0",
|
|
100
100
|
"@testing-library/jest-dom": "^6.0.0",
|
|
101
101
|
"@testing-library/react": "^16.0.0",
|