@backstage/plugin-catalog-import 0.13.7 → 0.13.8
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 +33 -0
- package/dist/alpha.d.ts +5 -6
- package/dist/alpha.esm.js +3 -8
- package/dist/alpha.esm.js.map +1 -1
- package/dist/index.d.ts +4 -2
- package/dist/package.json.esm.js +4 -5
- package/dist/package.json.esm.js.map +1 -1
- package/package.json +13 -14
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,38 @@
|
|
|
1
1
|
# @backstage/plugin-catalog-import
|
|
2
2
|
|
|
3
|
+
## 0.13.8
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- d02db50: Remove unnecessary use of `compatWrapper` and `convertLegacyRouteRef`(s) for the new frontend system.
|
|
8
|
+
- Updated dependencies
|
|
9
|
+
- @backstage/integration@1.19.0
|
|
10
|
+
- @backstage/frontend-plugin-api@0.13.2
|
|
11
|
+
- @backstage/core-components@0.18.4
|
|
12
|
+
- @backstage/plugin-catalog-react@1.21.4
|
|
13
|
+
- @backstage/core-plugin-api@1.12.1
|
|
14
|
+
- @backstage/integration-react@1.2.13
|
|
15
|
+
- @backstage/plugin-permission-react@0.4.39
|
|
16
|
+
|
|
17
|
+
## 0.13.8-next.0
|
|
18
|
+
|
|
19
|
+
### Patch Changes
|
|
20
|
+
|
|
21
|
+
- d02db50: Remove unnecessary use of `compatWrapper` and `convertLegacyRouteRef`(s) for the new frontend system.
|
|
22
|
+
- Updated dependencies
|
|
23
|
+
- @backstage/frontend-plugin-api@0.13.2-next.0
|
|
24
|
+
- @backstage/integration@1.18.3-next.0
|
|
25
|
+
- @backstage/core-plugin-api@1.12.1-next.0
|
|
26
|
+
- @backstage/plugin-catalog-react@1.21.4-next.0
|
|
27
|
+
- @backstage/integration-react@1.2.13-next.0
|
|
28
|
+
- @backstage/core-components@0.18.4-next.0
|
|
29
|
+
- @backstage/config@1.3.6
|
|
30
|
+
- @backstage/plugin-permission-react@0.4.39-next.0
|
|
31
|
+
- @backstage/catalog-client@1.12.1
|
|
32
|
+
- @backstage/catalog-model@1.7.6
|
|
33
|
+
- @backstage/errors@1.2.7
|
|
34
|
+
- @backstage/plugin-catalog-common@1.1.7
|
|
35
|
+
|
|
3
36
|
## 0.13.7
|
|
4
37
|
|
|
5
38
|
### Patch Changes
|
package/dist/alpha.d.ts
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
|
-
import * as _backstage_core_plugin_api from '@backstage/core-plugin-api';
|
|
3
2
|
import * as _backstage_frontend_plugin_api from '@backstage/frontend-plugin-api';
|
|
4
|
-
import * as
|
|
3
|
+
import * as _backstage_core_plugin_api from '@backstage/core-plugin-api';
|
|
5
4
|
|
|
6
5
|
/** @alpha */
|
|
7
|
-
declare const catalogImportTranslationRef:
|
|
6
|
+
declare const catalogImportTranslationRef: _backstage_frontend_plugin_api.TranslationRef<"catalog-import", {
|
|
8
7
|
readonly "buttons.back": "Back";
|
|
9
8
|
readonly "defaultImportPage.headerTitle": "Register an existing component";
|
|
10
9
|
readonly "defaultImportPage.contentHeaderTitle": "Start tracking your component in {{appTitle}}";
|
|
@@ -75,16 +74,16 @@ declare const catalogImportTranslationRef: _backstage_core_plugin_api_alpha.Tran
|
|
|
75
74
|
|
|
76
75
|
/** @alpha */
|
|
77
76
|
declare const _default: _backstage_frontend_plugin_api.OverridableFrontendPlugin<{
|
|
78
|
-
importPage:
|
|
77
|
+
importPage: _backstage_core_plugin_api.RouteRef<undefined>;
|
|
79
78
|
}, {}, {
|
|
80
79
|
"api:catalog-import": _backstage_frontend_plugin_api.OverridableExtensionDefinition<{
|
|
81
80
|
kind: "api";
|
|
82
81
|
name: undefined;
|
|
83
82
|
config: {};
|
|
84
83
|
configInput: {};
|
|
85
|
-
output: _backstage_frontend_plugin_api.ExtensionDataRef<
|
|
84
|
+
output: _backstage_frontend_plugin_api.ExtensionDataRef<_backstage_frontend_plugin_api.AnyApiFactory, "core.api.factory", {}>;
|
|
86
85
|
inputs: {};
|
|
87
|
-
params: <TApi, TImpl extends TApi, TDeps extends { [name in string]: unknown; }>(params:
|
|
86
|
+
params: <TApi, TImpl extends TApi, TDeps extends { [name in string]: unknown; }>(params: _backstage_frontend_plugin_api.ApiFactory<TApi, TImpl, TDeps>) => _backstage_frontend_plugin_api.ExtensionBlueprintParams<_backstage_frontend_plugin_api.AnyApiFactory>;
|
|
88
87
|
}>;
|
|
89
88
|
"page:catalog-import": _backstage_frontend_plugin_api.OverridableExtensionDefinition<{
|
|
90
89
|
kind: "page";
|
package/dist/alpha.esm.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { jsx } from 'react/jsx-runtime';
|
|
2
2
|
import { configApiRef, fetchApiRef, discoveryApiRef } from '@backstage/core-plugin-api';
|
|
3
|
-
import { convertLegacyRouteRef, compatWrapper } from '@backstage/core-compat-api';
|
|
4
3
|
import { PageBlueprint, ApiBlueprint, createFrontendPlugin } from '@backstage/frontend-plugin-api';
|
|
5
4
|
import { scmIntegrationsApiRef, scmAuthApiRef } from '@backstage/integration-react';
|
|
6
5
|
import { catalogImportApiRef } from './api/CatalogImportApi.esm.js';
|
|
@@ -14,12 +13,8 @@ export { catalogImportTranslationRef } from './translation.esm.js';
|
|
|
14
13
|
const catalogImportPage = PageBlueprint.make({
|
|
15
14
|
params: {
|
|
16
15
|
path: "/catalog-import",
|
|
17
|
-
routeRef:
|
|
18
|
-
loader: () => import('./components/ImportPage/index.esm.js').then(
|
|
19
|
-
(m) => compatWrapper(
|
|
20
|
-
/* @__PURE__ */ jsx(RequirePermission, { permission: catalogEntityCreatePermission, children: /* @__PURE__ */ jsx(m.ImportPage, {}) })
|
|
21
|
-
)
|
|
22
|
-
)
|
|
16
|
+
routeRef: rootRouteRef,
|
|
17
|
+
loader: () => import('./components/ImportPage/index.esm.js').then((m) => /* @__PURE__ */ jsx(RequirePermission, { permission: catalogEntityCreatePermission, children: /* @__PURE__ */ jsx(m.ImportPage, {}) }))
|
|
23
18
|
}
|
|
24
19
|
});
|
|
25
20
|
const catalogImportApi = ApiBlueprint.make({
|
|
@@ -55,7 +50,7 @@ var alpha = createFrontendPlugin({
|
|
|
55
50
|
info: { packageJson: () => import('./package.json.esm.js') },
|
|
56
51
|
extensions: [catalogImportApi, catalogImportPage],
|
|
57
52
|
routes: {
|
|
58
|
-
importPage:
|
|
53
|
+
importPage: rootRouteRef
|
|
59
54
|
}
|
|
60
55
|
});
|
|
61
56
|
|
package/dist/alpha.esm.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"alpha.esm.js","sources":["../src/alpha.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 {\n configApiRef,\n discoveryApiRef,\n fetchApiRef,\n} from '@backstage/core-plugin-api';\nimport {\n
|
|
1
|
+
{"version":3,"file":"alpha.esm.js","sources":["../src/alpha.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 {\n configApiRef,\n discoveryApiRef,\n fetchApiRef,\n} from '@backstage/core-plugin-api';\nimport {\n createFrontendPlugin,\n PageBlueprint,\n ApiBlueprint,\n} from '@backstage/frontend-plugin-api';\nimport {\n scmAuthApiRef,\n scmIntegrationsApiRef,\n} from '@backstage/integration-react';\nimport { CatalogImportClient, catalogImportApiRef } from './api';\nimport { rootRouteRef } from './plugin';\nimport { catalogApiRef } from '@backstage/plugin-catalog-react';\nimport { RequirePermission } from '@backstage/plugin-permission-react';\nimport { catalogEntityCreatePermission } from '@backstage/plugin-catalog-common/alpha';\n\nexport * from './translation';\n\n// TODO: It's currently possible to override the import page with a custom one. We need to decide\n// whether this type of override is typically done with an input or by overriding the entire extension.\nconst catalogImportPage = PageBlueprint.make({\n params: {\n path: '/catalog-import',\n routeRef: rootRouteRef,\n loader: () =>\n import('./components/ImportPage').then(m => (\n <RequirePermission permission={catalogEntityCreatePermission}>\n <m.ImportPage />\n </RequirePermission>\n )),\n },\n});\n\nconst catalogImportApi = ApiBlueprint.make({\n params: defineParams =>\n defineParams({\n api: catalogImportApiRef,\n deps: {\n discoveryApi: discoveryApiRef,\n scmAuthApi: scmAuthApiRef,\n fetchApi: fetchApiRef,\n scmIntegrationsApi: scmIntegrationsApiRef,\n catalogApi: catalogApiRef,\n configApi: configApiRef,\n },\n factory: ({\n discoveryApi,\n scmAuthApi,\n fetchApi,\n scmIntegrationsApi,\n catalogApi,\n configApi,\n }) =>\n new CatalogImportClient({\n discoveryApi,\n scmAuthApi,\n scmIntegrationsApi,\n fetchApi,\n catalogApi,\n configApi,\n }),\n }),\n});\n\n/** @alpha */\nexport default createFrontendPlugin({\n pluginId: 'catalog-import',\n info: { packageJson: () => import('../package.json') },\n extensions: [catalogImportApi, catalogImportPage],\n routes: {\n importPage: rootRouteRef,\n },\n});\n\nexport { catalogImportTranslationRef } from './translation';\n"],"names":[],"mappings":";;;;;;;;;;;;AAwCA,MAAM,iBAAA,GAAoB,cAAc,IAAA,CAAK;AAAA,EAC3C,MAAA,EAAQ;AAAA,IACN,IAAA,EAAM,iBAAA;AAAA,IACN,QAAA,EAAU,YAAA;AAAA,IACV,QAAQ,MACN,OAAO,sCAAyB,CAAA,CAAE,KAAK,CAAA,CAAA,qBACrC,GAAA,CAAC,iBAAA,EAAA,EAAkB,UAAA,EAAY,+BAC7B,QAAA,kBAAA,GAAA,CAAC,CAAA,CAAE,UAAA,EAAF,EAAa,GAChB,CACD;AAAA;AAEP,CAAC,CAAA;AAED,MAAM,gBAAA,GAAmB,aAAa,IAAA,CAAK;AAAA,EACzC,MAAA,EAAQ,kBACN,YAAA,CAAa;AAAA,IACX,GAAA,EAAK,mBAAA;AAAA,IACL,IAAA,EAAM;AAAA,MACJ,YAAA,EAAc,eAAA;AAAA,MACd,UAAA,EAAY,aAAA;AAAA,MACZ,QAAA,EAAU,WAAA;AAAA,MACV,kBAAA,EAAoB,qBAAA;AAAA,MACpB,UAAA,EAAY,aAAA;AAAA,MACZ,SAAA,EAAW;AAAA,KACb;AAAA,IACA,SAAS,CAAC;AAAA,MACR,YAAA;AAAA,MACA,UAAA;AAAA,MACA,QAAA;AAAA,MACA,kBAAA;AAAA,MACA,UAAA;AAAA,MACA;AAAA,KACF,KACE,IAAI,mBAAA,CAAoB;AAAA,MACtB,YAAA;AAAA,MACA,UAAA;AAAA,MACA,kBAAA;AAAA,MACA,QAAA;AAAA,MACA,UAAA;AAAA,MACA;AAAA,KACD;AAAA,GACJ;AACL,CAAC,CAAA;AAGD,YAAe,oBAAA,CAAqB;AAAA,EAClC,QAAA,EAAU,gBAAA;AAAA,EACV,MAAM,EAAE,WAAA,EAAa,MAAM,OAAO,uBAAiB,CAAA,EAAE;AAAA,EACrD,UAAA,EAAY,CAAC,gBAAA,EAAkB,iBAAiB,CAAA;AAAA,EAChD,MAAA,EAAQ;AAAA,IACN,UAAA,EAAY;AAAA;AAEhB,CAAC,CAAA;;;;"}
|
package/dist/index.d.ts
CHANGED
|
@@ -6,6 +6,7 @@ import { ReactElement, ComponentProps, ReactNode } from 'react';
|
|
|
6
6
|
import { InfoCardVariants } from '@backstage/core-components';
|
|
7
7
|
import { TranslationFunction } from '@backstage/core-plugin-api/alpha';
|
|
8
8
|
import { catalogImportTranslationRef } from '@backstage/plugin-catalog-import/alpha';
|
|
9
|
+
import * as _backstage_frontend_plugin_api from '@backstage/frontend-plugin-api';
|
|
9
10
|
import { TextFieldProps } from '@material-ui/core/TextField/TextField';
|
|
10
11
|
import { FieldErrors, Controller, UseFormProps, SubmitHandler, UseFormReturn, NestedValue } from 'react-hook-form';
|
|
11
12
|
import { CatalogApi } from '@backstage/catalog-client';
|
|
@@ -84,7 +85,7 @@ type PartialEntity = RecursivePartial<Entity>;
|
|
|
84
85
|
*
|
|
85
86
|
* @public
|
|
86
87
|
*/
|
|
87
|
-
declare const catalogImportApiRef:
|
|
88
|
+
declare const catalogImportApiRef: _backstage_frontend_plugin_api.ApiRef<CatalogImportApi>;
|
|
88
89
|
/**
|
|
89
90
|
* Result of the analysis.
|
|
90
91
|
*
|
|
@@ -468,4 +469,5 @@ interface StepPrepareCreatePullRequestProps {
|
|
|
468
469
|
*/
|
|
469
470
|
declare const StepPrepareCreatePullRequest: (props: StepPrepareCreatePullRequestProps) => react_jsx_runtime.JSX.Element;
|
|
470
471
|
|
|
471
|
-
export {
|
|
472
|
+
export { AutocompleteTextField, CatalogImportClient, CatalogImportPage, DefaultImportPage, EntityListComponent, ImportInfoCard, ImportStepper, PreparePullRequestForm, PreviewCatalogInfoComponent, PreviewPullRequestComponent, StepInitAnalyzeUrl, StepPrepareCreatePullRequest, catalogImportApiRef, catalogImportPlugin, defaultGenerateStepper, catalogImportPlugin as plugin };
|
|
473
|
+
export type { AnalyzeResult, AutocompleteTextFieldProps, CatalogImportApi, EntityListComponentProps, ImportFlows, ImportInfoCardProps, ImportState, ImportStepperProps, PreparePullRequestFormProps, PrepareResult, PreviewCatalogInfoComponentProps, PreviewPullRequestComponentProps, StepInitAnalyzeUrlProps, StepPrepareCreatePullRequestProps, UnpackNestedValue };
|
package/dist/package.json.esm.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
var name = "@backstage/plugin-catalog-import";
|
|
2
|
-
var version = "0.13.
|
|
2
|
+
var version = "0.13.8";
|
|
3
3
|
var description = "A Backstage plugin the helps you import entities into your catalog";
|
|
4
4
|
var backstage = {
|
|
5
5
|
role: "frontend-plugin",
|
|
@@ -22,7 +22,7 @@ var repository = {
|
|
|
22
22
|
};
|
|
23
23
|
var license = "Apache-2.0";
|
|
24
24
|
var sideEffects = false;
|
|
25
|
-
var exports = {
|
|
25
|
+
var exports$1 = {
|
|
26
26
|
".": "./src/index.ts",
|
|
27
27
|
"./alpha": "./src/alpha.tsx",
|
|
28
28
|
"./package.json": "./package.json"
|
|
@@ -56,7 +56,6 @@ var dependencies = {
|
|
|
56
56
|
"@backstage/catalog-client": "workspace:^",
|
|
57
57
|
"@backstage/catalog-model": "workspace:^",
|
|
58
58
|
"@backstage/config": "workspace:^",
|
|
59
|
-
"@backstage/core-compat-api": "workspace:^",
|
|
60
59
|
"@backstage/core-components": "workspace:^",
|
|
61
60
|
"@backstage/core-plugin-api": "workspace:^",
|
|
62
61
|
"@backstage/errors": "workspace:^",
|
|
@@ -116,7 +115,7 @@ var _package = {
|
|
|
116
115
|
repository: repository,
|
|
117
116
|
license: license,
|
|
118
117
|
sideEffects: sideEffects,
|
|
119
|
-
exports: exports,
|
|
118
|
+
exports: exports$1,
|
|
120
119
|
main: main,
|
|
121
120
|
types: types,
|
|
122
121
|
typesVersions: typesVersions,
|
|
@@ -129,5 +128,5 @@ var _package = {
|
|
|
129
128
|
configSchema: configSchema
|
|
130
129
|
};
|
|
131
130
|
|
|
132
|
-
export { backstage, configSchema, _package as default, dependencies, description, devDependencies, exports, files, homepage, keywords, license, main, name, peerDependencies, peerDependenciesMeta, publishConfig, repository, scripts, sideEffects, types, typesVersions, version };
|
|
131
|
+
export { backstage, configSchema, _package as default, dependencies, description, devDependencies, exports$1 as exports, files, homepage, keywords, license, main, name, peerDependencies, peerDependenciesMeta, publishConfig, repository, scripts, sideEffects, types, typesVersions, version };
|
|
133
132
|
//# sourceMappingURL=package.json.esm.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"package.json.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"package.json.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@backstage/plugin-catalog-import",
|
|
3
|
-
"version": "0.13.
|
|
3
|
+
"version": "0.13.8",
|
|
4
4
|
"description": "A Backstage plugin the helps you import entities into your catalog",
|
|
5
5
|
"backstage": {
|
|
6
6
|
"role": "frontend-plugin",
|
|
@@ -69,16 +69,15 @@
|
|
|
69
69
|
"@backstage/catalog-client": "^1.12.1",
|
|
70
70
|
"@backstage/catalog-model": "^1.7.6",
|
|
71
71
|
"@backstage/config": "^1.3.6",
|
|
72
|
-
"@backstage/core-
|
|
73
|
-
"@backstage/core-
|
|
74
|
-
"@backstage/core-plugin-api": "^1.12.0",
|
|
72
|
+
"@backstage/core-components": "^0.18.4",
|
|
73
|
+
"@backstage/core-plugin-api": "^1.12.1",
|
|
75
74
|
"@backstage/errors": "^1.2.7",
|
|
76
|
-
"@backstage/frontend-plugin-api": "^0.13.
|
|
77
|
-
"@backstage/integration": "^1.
|
|
78
|
-
"@backstage/integration-react": "^1.2.
|
|
75
|
+
"@backstage/frontend-plugin-api": "^0.13.2",
|
|
76
|
+
"@backstage/integration": "^1.19.0",
|
|
77
|
+
"@backstage/integration-react": "^1.2.13",
|
|
79
78
|
"@backstage/plugin-catalog-common": "^1.1.7",
|
|
80
|
-
"@backstage/plugin-catalog-react": "^1.21.
|
|
81
|
-
"@backstage/plugin-permission-react": "^0.4.
|
|
79
|
+
"@backstage/plugin-catalog-react": "^1.21.4",
|
|
80
|
+
"@backstage/plugin-permission-react": "^0.4.39",
|
|
82
81
|
"@material-ui/core": "^4.12.2",
|
|
83
82
|
"@material-ui/icons": "^4.9.1",
|
|
84
83
|
"@material-ui/lab": "4.0.0-alpha.61",
|
|
@@ -91,11 +90,11 @@
|
|
|
91
90
|
"yaml": "^2.0.0"
|
|
92
91
|
},
|
|
93
92
|
"devDependencies": {
|
|
94
|
-
"@backstage/cli": "^0.
|
|
95
|
-
"@backstage/core-app-api": "^1.19.
|
|
96
|
-
"@backstage/dev-utils": "^1.1.
|
|
97
|
-
"@backstage/plugin-catalog": "^1.32.
|
|
98
|
-
"@backstage/test-utils": "^1.7.
|
|
93
|
+
"@backstage/cli": "^0.35.0",
|
|
94
|
+
"@backstage/core-app-api": "^1.19.3",
|
|
95
|
+
"@backstage/dev-utils": "^1.1.18",
|
|
96
|
+
"@backstage/plugin-catalog": "^1.32.1",
|
|
97
|
+
"@backstage/test-utils": "^1.7.14",
|
|
99
98
|
"@testing-library/dom": "^10.0.0",
|
|
100
99
|
"@testing-library/jest-dom": "^6.0.0",
|
|
101
100
|
"@testing-library/react": "^16.0.0",
|