@backstage/plugin-catalog-import 0.13.4-next.0 → 0.13.4-next.2
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 +38 -0
- package/dist/alpha.d.ts +5 -6
- package/dist/alpha.esm.js +27 -29
- package/dist/alpha.esm.js.map +1 -1
- package/dist/package.json.esm.js +1 -1
- package/package.json +10 -10
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,43 @@
|
|
|
1
1
|
# @backstage/plugin-catalog-import
|
|
2
2
|
|
|
3
|
+
## 0.13.4-next.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- e4ddf22: Internal update to align with new blueprint parameter naming in the new frontend system.
|
|
8
|
+
- Updated dependencies
|
|
9
|
+
- @backstage/frontend-plugin-api@0.11.0-next.1
|
|
10
|
+
- @backstage/core-compat-api@0.5.0-next.2
|
|
11
|
+
- @backstage/plugin-catalog-react@1.20.0-next.2
|
|
12
|
+
- @backstage/core-components@0.17.5-next.1
|
|
13
|
+
- @backstage/catalog-client@1.11.0-next.0
|
|
14
|
+
- @backstage/catalog-model@1.7.5
|
|
15
|
+
- @backstage/config@1.3.3
|
|
16
|
+
- @backstage/core-plugin-api@1.10.9
|
|
17
|
+
- @backstage/errors@1.2.7
|
|
18
|
+
- @backstage/integration@1.17.1
|
|
19
|
+
- @backstage/integration-react@1.2.9
|
|
20
|
+
- @backstage/plugin-catalog-common@1.1.5
|
|
21
|
+
|
|
22
|
+
## 0.13.4-next.1
|
|
23
|
+
|
|
24
|
+
### Patch Changes
|
|
25
|
+
|
|
26
|
+
- f2f133c: Internal update to use the new variant of `ApiBlueprint`.
|
|
27
|
+
- Updated dependencies
|
|
28
|
+
- @backstage/core-compat-api@0.4.5-next.1
|
|
29
|
+
- @backstage/plugin-catalog-react@1.20.0-next.1
|
|
30
|
+
- @backstage/frontend-plugin-api@0.11.0-next.0
|
|
31
|
+
- @backstage/catalog-client@1.11.0-next.0
|
|
32
|
+
- @backstage/core-components@0.17.5-next.0
|
|
33
|
+
- @backstage/catalog-model@1.7.5
|
|
34
|
+
- @backstage/config@1.3.3
|
|
35
|
+
- @backstage/core-plugin-api@1.10.9
|
|
36
|
+
- @backstage/errors@1.2.7
|
|
37
|
+
- @backstage/integration@1.17.1
|
|
38
|
+
- @backstage/integration-react@1.2.9
|
|
39
|
+
- @backstage/plugin-catalog-common@1.1.5
|
|
40
|
+
|
|
3
41
|
## 0.13.4-next.0
|
|
4
42
|
|
|
5
43
|
### Patch Changes
|
package/dist/alpha.d.ts
CHANGED
|
@@ -82,11 +82,9 @@ declare const _default: _backstage_frontend_plugin_api.FrontendPlugin<{
|
|
|
82
82
|
name: undefined;
|
|
83
83
|
config: {};
|
|
84
84
|
configInput: {};
|
|
85
|
-
output: _backstage_frontend_plugin_api.
|
|
85
|
+
output: _backstage_frontend_plugin_api.ExtensionDataRef<_backstage_core_plugin_api.AnyApiFactory, "core.api.factory", {}>;
|
|
86
86
|
inputs: {};
|
|
87
|
-
params: {
|
|
88
|
-
factory: _backstage_core_plugin_api.AnyApiFactory;
|
|
89
|
-
};
|
|
87
|
+
params: <TApi, TImpl extends TApi, TDeps extends { [name in string]: unknown; }>(params: _backstage_core_plugin_api.ApiFactory<TApi, TImpl, TDeps>) => _backstage_frontend_plugin_api.ExtensionBlueprintParams<_backstage_core_plugin_api.AnyApiFactory>;
|
|
90
88
|
}>;
|
|
91
89
|
"page:catalog-import": _backstage_frontend_plugin_api.ExtensionDefinition<{
|
|
92
90
|
kind: "page";
|
|
@@ -97,12 +95,13 @@ declare const _default: _backstage_frontend_plugin_api.FrontendPlugin<{
|
|
|
97
95
|
configInput: {
|
|
98
96
|
path?: string | undefined;
|
|
99
97
|
};
|
|
100
|
-
output: _backstage_frontend_plugin_api.
|
|
98
|
+
output: _backstage_frontend_plugin_api.ExtensionDataRef<string, "core.routing.path", {}> | _backstage_frontend_plugin_api.ExtensionDataRef<react.JSX.Element, "core.reactElement", {}> | _backstage_frontend_plugin_api.ExtensionDataRef<_backstage_frontend_plugin_api.RouteRef<_backstage_frontend_plugin_api.AnyRouteRefParams>, "core.routing.ref", {
|
|
101
99
|
optional: true;
|
|
102
100
|
}>;
|
|
103
101
|
inputs: {};
|
|
104
102
|
params: {
|
|
105
|
-
defaultPath:
|
|
103
|
+
defaultPath?: [Error: `Use the 'path' param instead`];
|
|
104
|
+
path: string;
|
|
106
105
|
loader: () => Promise<JSX.Element>;
|
|
107
106
|
routeRef?: _backstage_frontend_plugin_api.RouteRef;
|
|
108
107
|
};
|
package/dist/alpha.esm.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx } from 'react/jsx-runtime';
|
|
2
|
-
import {
|
|
2
|
+
import { discoveryApiRef, fetchApiRef, configApiRef } from '@backstage/core-plugin-api';
|
|
3
3
|
import { convertLegacyRouteRef, compatWrapper } from '@backstage/core-compat-api';
|
|
4
4
|
import { PageBlueprint, ApiBlueprint, createFrontendPlugin } from '@backstage/frontend-plugin-api';
|
|
5
5
|
import { scmAuthApiRef, scmIntegrationsApiRef } from '@backstage/integration-react';
|
|
@@ -11,7 +11,7 @@ export { catalogImportTranslationRef } from './translation.esm.js';
|
|
|
11
11
|
|
|
12
12
|
const catalogImportPage = PageBlueprint.make({
|
|
13
13
|
params: {
|
|
14
|
-
|
|
14
|
+
path: "/catalog-import",
|
|
15
15
|
routeRef: convertLegacyRouteRef(rootRouteRef),
|
|
16
16
|
loader: () => import('./components/ImportPage/index.esm.js').then(
|
|
17
17
|
(m) => compatWrapper(/* @__PURE__ */ jsx(m.ImportPage, {}))
|
|
@@ -19,34 +19,32 @@ const catalogImportPage = PageBlueprint.make({
|
|
|
19
19
|
}
|
|
20
20
|
});
|
|
21
21
|
const catalogImportApi = ApiBlueprint.make({
|
|
22
|
-
params: {
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
configApi
|
|
47
|
-
})
|
|
22
|
+
params: (defineParams) => defineParams({
|
|
23
|
+
api: catalogImportApiRef,
|
|
24
|
+
deps: {
|
|
25
|
+
discoveryApi: discoveryApiRef,
|
|
26
|
+
scmAuthApi: scmAuthApiRef,
|
|
27
|
+
fetchApi: fetchApiRef,
|
|
28
|
+
scmIntegrationsApi: scmIntegrationsApiRef,
|
|
29
|
+
catalogApi: catalogApiRef,
|
|
30
|
+
configApi: configApiRef
|
|
31
|
+
},
|
|
32
|
+
factory: ({
|
|
33
|
+
discoveryApi,
|
|
34
|
+
scmAuthApi,
|
|
35
|
+
fetchApi,
|
|
36
|
+
scmIntegrationsApi,
|
|
37
|
+
catalogApi,
|
|
38
|
+
configApi
|
|
39
|
+
}) => new CatalogImportClient({
|
|
40
|
+
discoveryApi,
|
|
41
|
+
scmAuthApi,
|
|
42
|
+
scmIntegrationsApi,
|
|
43
|
+
fetchApi,
|
|
44
|
+
catalogApi,
|
|
45
|
+
configApi
|
|
48
46
|
})
|
|
49
|
-
}
|
|
47
|
+
})
|
|
50
48
|
});
|
|
51
49
|
var alpha = createFrontendPlugin({
|
|
52
50
|
pluginId: "catalog-import",
|
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
|
|
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 compatWrapper,\n convertLegacyRouteRef,\n} from '@backstage/core-compat-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';\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: convertLegacyRouteRef(rootRouteRef),\n loader: () =>\n import('./components/ImportPage').then(m =>\n compatWrapper(<m.ImportPage />),\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: convertLegacyRouteRef(rootRouteRef),\n },\n});\n\nexport { catalogImportTranslationRef } from './translation';\n"],"names":[],"mappings":";;;;;;;;;;;AA0CA,MAAM,iBAAA,GAAoB,cAAc,IAAK,CAAA;AAAA,EAC3C,MAAQ,EAAA;AAAA,IACN,IAAM,EAAA,iBAAA;AAAA,IACN,QAAA,EAAU,sBAAsB,YAAY,CAAA;AAAA,IAC5C,MAAQ,EAAA,MACN,OAAO,sCAAyB,CAAE,CAAA,IAAA;AAAA,MAAK,OACrC,aAAc,iBAAA,GAAA,CAAC,CAAE,CAAA,UAAA,EAAF,EAAa,CAAE;AAAA;AAChC;AAEN,CAAC,CAAA;AAED,MAAM,gBAAA,GAAmB,aAAa,IAAK,CAAA;AAAA,EACzC,MAAA,EAAQ,kBACN,YAAa,CAAA;AAAA,IACX,GAAK,EAAA,mBAAA;AAAA,IACL,IAAM,EAAA;AAAA,MACJ,YAAc,EAAA,eAAA;AAAA,MACd,UAAY,EAAA,aAAA;AAAA,MACZ,QAAU,EAAA,WAAA;AAAA,MACV,kBAAoB,EAAA,qBAAA;AAAA,MACpB,UAAY,EAAA,aAAA;AAAA,MACZ,SAAW,EAAA;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,mBAAoB,CAAA;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,oBAAqB,CAAA;AAAA,EAClC,QAAU,EAAA,gBAAA;AAAA,EACV,MAAM,EAAE,WAAA,EAAa,MAAM,OAAO,uBAAiB,CAAE,EAAA;AAAA,EACrD,UAAA,EAAY,CAAC,gBAAA,EAAkB,iBAAiB,CAAA;AAAA,EAChD,MAAQ,EAAA;AAAA,IACN,UAAA,EAAY,sBAAsB,YAAY;AAAA;AAElD,CAAC,CAAA;;;;"}
|
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.4-next.
|
|
3
|
+
"version": "0.13.4-next.2",
|
|
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.
|
|
69
|
+
"@backstage/catalog-client": "1.11.0-next.0",
|
|
70
70
|
"@backstage/catalog-model": "1.7.5",
|
|
71
71
|
"@backstage/config": "1.3.3",
|
|
72
|
-
"@backstage/core-compat-api": "0.
|
|
73
|
-
"@backstage/core-components": "0.17.
|
|
72
|
+
"@backstage/core-compat-api": "0.5.0-next.2",
|
|
73
|
+
"@backstage/core-components": "0.17.5-next.1",
|
|
74
74
|
"@backstage/core-plugin-api": "1.10.9",
|
|
75
75
|
"@backstage/errors": "1.2.7",
|
|
76
|
-
"@backstage/frontend-plugin-api": "0.
|
|
76
|
+
"@backstage/frontend-plugin-api": "0.11.0-next.1",
|
|
77
77
|
"@backstage/integration": "1.17.1",
|
|
78
78
|
"@backstage/integration-react": "1.2.9",
|
|
79
79
|
"@backstage/plugin-catalog-common": "1.1.5",
|
|
80
|
-
"@backstage/plugin-catalog-react": "1.
|
|
80
|
+
"@backstage/plugin-catalog-react": "1.20.0-next.2",
|
|
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",
|
|
@@ -90,11 +90,11 @@
|
|
|
90
90
|
"yaml": "^2.0.0"
|
|
91
91
|
},
|
|
92
92
|
"devDependencies": {
|
|
93
|
-
"@backstage/cli": "0.
|
|
93
|
+
"@backstage/cli": "0.34.0-next.1",
|
|
94
94
|
"@backstage/core-app-api": "1.18.0",
|
|
95
|
-
"@backstage/dev-utils": "1.1.13-next.
|
|
96
|
-
"@backstage/plugin-catalog": "1.31.2-next.
|
|
97
|
-
"@backstage/test-utils": "1.7.
|
|
95
|
+
"@backstage/dev-utils": "1.1.13-next.1",
|
|
96
|
+
"@backstage/plugin-catalog": "1.31.2-next.2",
|
|
97
|
+
"@backstage/test-utils": "1.7.11-next.0",
|
|
98
98
|
"@testing-library/dom": "^10.0.0",
|
|
99
99
|
"@testing-library/jest-dom": "^6.0.0",
|
|
100
100
|
"@testing-library/react": "^16.0.0",
|