@backstage/plugin-catalog-import 0.13.7-next.0 → 0.13.8-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 +39 -0
- package/dist/alpha.d.ts +4 -4
- package/dist/alpha.esm.js +5 -6
- package/dist/alpha.esm.js.map +1 -1
- package/dist/package.json.esm.js +2 -2
- package/package.json +17 -17
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,44 @@
|
|
|
1
1
|
# @backstage/plugin-catalog-import
|
|
2
2
|
|
|
3
|
+
## 0.13.8-next.0
|
|
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/frontend-plugin-api@0.13.2-next.0
|
|
10
|
+
- @backstage/integration@1.18.3-next.0
|
|
11
|
+
- @backstage/core-plugin-api@1.12.1-next.0
|
|
12
|
+
- @backstage/plugin-catalog-react@1.21.4-next.0
|
|
13
|
+
- @backstage/integration-react@1.2.13-next.0
|
|
14
|
+
- @backstage/core-components@0.18.4-next.0
|
|
15
|
+
- @backstage/config@1.3.6
|
|
16
|
+
- @backstage/plugin-permission-react@0.4.39-next.0
|
|
17
|
+
- @backstage/catalog-client@1.12.1
|
|
18
|
+
- @backstage/catalog-model@1.7.6
|
|
19
|
+
- @backstage/errors@1.2.7
|
|
20
|
+
- @backstage/plugin-catalog-common@1.1.7
|
|
21
|
+
|
|
22
|
+
## 0.13.7
|
|
23
|
+
|
|
24
|
+
### Patch Changes
|
|
25
|
+
|
|
26
|
+
- f987bfd: Fixed missing `catalog.entity.create` permission authorization in the default page extension.
|
|
27
|
+
- 05f60e1: Refactored constructor parameter properties to explicit property declarations for compatibility with TypeScript's `erasableSyntaxOnly` setting. This internal refactoring maintains all existing functionality while ensuring TypeScript compilation compatibility.
|
|
28
|
+
- Updated dependencies
|
|
29
|
+
- @backstage/frontend-plugin-api@0.13.0
|
|
30
|
+
- @backstage/core-compat-api@0.5.4
|
|
31
|
+
- @backstage/plugin-catalog-react@1.21.3
|
|
32
|
+
- @backstage/integration@1.18.2
|
|
33
|
+
- @backstage/core-components@0.18.3
|
|
34
|
+
- @backstage/core-plugin-api@1.12.0
|
|
35
|
+
- @backstage/plugin-permission-react@0.4.38
|
|
36
|
+
- @backstage/config@1.3.6
|
|
37
|
+
- @backstage/catalog-model@1.7.6
|
|
38
|
+
- @backstage/catalog-client@1.12.1
|
|
39
|
+
- @backstage/integration-react@1.2.12
|
|
40
|
+
- @backstage/plugin-catalog-common@1.1.7
|
|
41
|
+
|
|
3
42
|
## 0.13.7-next.0
|
|
4
43
|
|
|
5
44
|
### Patch Changes
|
package/dist/alpha.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
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';
|
|
3
|
+
import * as _backstage_core_plugin_api from '@backstage/core-plugin-api';
|
|
4
4
|
import * as _backstage_core_plugin_api_alpha from '@backstage/core-plugin-api/alpha';
|
|
5
5
|
|
|
6
6
|
/** @alpha */
|
|
@@ -75,9 +75,9 @@ declare const catalogImportTranslationRef: _backstage_core_plugin_api_alpha.Tran
|
|
|
75
75
|
|
|
76
76
|
/** @alpha */
|
|
77
77
|
declare const _default: _backstage_frontend_plugin_api.OverridableFrontendPlugin<{
|
|
78
|
-
importPage:
|
|
78
|
+
importPage: _backstage_core_plugin_api.RouteRef<undefined>;
|
|
79
79
|
}, {}, {
|
|
80
|
-
"api:catalog-import": _backstage_frontend_plugin_api.
|
|
80
|
+
"api:catalog-import": _backstage_frontend_plugin_api.OverridableExtensionDefinition<{
|
|
81
81
|
kind: "api";
|
|
82
82
|
name: undefined;
|
|
83
83
|
config: {};
|
|
@@ -86,7 +86,7 @@ declare const _default: _backstage_frontend_plugin_api.OverridableFrontendPlugin
|
|
|
86
86
|
inputs: {};
|
|
87
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>;
|
|
88
88
|
}>;
|
|
89
|
-
"page:catalog-import": _backstage_frontend_plugin_api.
|
|
89
|
+
"page:catalog-import": _backstage_frontend_plugin_api.OverridableExtensionDefinition<{
|
|
90
90
|
kind: "page";
|
|
91
91
|
name: undefined;
|
|
92
92
|
config: {
|
package/dist/alpha.esm.js
CHANGED
|
@@ -1,21 +1,20 @@
|
|
|
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';
|
|
7
6
|
import { CatalogImportClient } from './api/CatalogImportClient.esm.js';
|
|
8
7
|
import { rootRouteRef } from './plugin.esm.js';
|
|
9
8
|
import { catalogApiRef } from '@backstage/plugin-catalog-react';
|
|
9
|
+
import { RequirePermission } from '@backstage/plugin-permission-react';
|
|
10
|
+
import { catalogEntityCreatePermission } from '@backstage/plugin-catalog-common/alpha';
|
|
10
11
|
export { catalogImportTranslationRef } from './translation.esm.js';
|
|
11
12
|
|
|
12
13
|
const catalogImportPage = PageBlueprint.make({
|
|
13
14
|
params: {
|
|
14
15
|
path: "/catalog-import",
|
|
15
|
-
routeRef:
|
|
16
|
-
loader: () => import('./components/ImportPage/index.esm.js').then(
|
|
17
|
-
(m) => compatWrapper(/* @__PURE__ */ jsx(m.ImportPage, {}))
|
|
18
|
-
)
|
|
16
|
+
routeRef: rootRouteRef,
|
|
17
|
+
loader: () => import('./components/ImportPage/index.esm.js').then((m) => /* @__PURE__ */ jsx(RequirePermission, { permission: catalogEntityCreatePermission, children: /* @__PURE__ */ jsx(m.ImportPage, {}) }))
|
|
19
18
|
}
|
|
20
19
|
});
|
|
21
20
|
const catalogImportApi = ApiBlueprint.make({
|
|
@@ -51,7 +50,7 @@ var alpha = createFrontendPlugin({
|
|
|
51
50
|
info: { packageJson: () => import('./package.json.esm.js') },
|
|
52
51
|
extensions: [catalogImportApi, catalogImportPage],
|
|
53
52
|
routes: {
|
|
54
|
-
importPage:
|
|
53
|
+
importPage: rootRouteRef
|
|
55
54
|
}
|
|
56
55
|
});
|
|
57
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});\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Q;AAAA,IACN,UAAA,EAAY;AAAA;AAEhB,CAAC,CAAA;;;;"}
|
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-next.0";
|
|
3
3
|
var description = "A Backstage plugin the helps you import entities into your catalog";
|
|
4
4
|
var backstage = {
|
|
5
5
|
role: "frontend-plugin",
|
|
@@ -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:^",
|
|
@@ -65,6 +64,7 @@ var dependencies = {
|
|
|
65
64
|
"@backstage/integration-react": "workspace:^",
|
|
66
65
|
"@backstage/plugin-catalog-common": "workspace:^",
|
|
67
66
|
"@backstage/plugin-catalog-react": "workspace:^",
|
|
67
|
+
"@backstage/plugin-permission-react": "workspace:^",
|
|
68
68
|
"@material-ui/core": "^4.12.2",
|
|
69
69
|
"@material-ui/icons": "^4.9.1",
|
|
70
70
|
"@material-ui/lab": "4.0.0-alpha.61",
|
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-next.0",
|
|
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.12.1
|
|
70
|
-
"@backstage/catalog-model": "1.7.6
|
|
71
|
-
"@backstage/config": "1.3.6
|
|
72
|
-
"@backstage/core-
|
|
73
|
-
"@backstage/core-
|
|
74
|
-
"@backstage/core-plugin-api": "1.11.2-next.0",
|
|
69
|
+
"@backstage/catalog-client": "1.12.1",
|
|
70
|
+
"@backstage/catalog-model": "1.7.6",
|
|
71
|
+
"@backstage/config": "1.3.6",
|
|
72
|
+
"@backstage/core-components": "0.18.4-next.0",
|
|
73
|
+
"@backstage/core-plugin-api": "1.12.1-next.0",
|
|
75
74
|
"@backstage/errors": "1.2.7",
|
|
76
|
-
"@backstage/frontend-plugin-api": "0.
|
|
77
|
-
"@backstage/integration": "1.18.
|
|
78
|
-
"@backstage/integration-react": "1.2.
|
|
79
|
-
"@backstage/plugin-catalog-common": "1.1.7
|
|
80
|
-
"@backstage/plugin-catalog-react": "1.21.
|
|
75
|
+
"@backstage/frontend-plugin-api": "0.13.2-next.0",
|
|
76
|
+
"@backstage/integration": "1.18.3-next.0",
|
|
77
|
+
"@backstage/integration-react": "1.2.13-next.0",
|
|
78
|
+
"@backstage/plugin-catalog-common": "1.1.7",
|
|
79
|
+
"@backstage/plugin-catalog-react": "1.21.4-next.0",
|
|
80
|
+
"@backstage/plugin-permission-react": "0.4.39-next.0",
|
|
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.34.
|
|
94
|
-
"@backstage/core-app-api": "1.19.
|
|
95
|
-
"@backstage/dev-utils": "1.1.
|
|
96
|
-
"@backstage/plugin-catalog": "1.
|
|
97
|
-
"@backstage/test-utils": "1.7.
|
|
93
|
+
"@backstage/cli": "0.34.6-next.0",
|
|
94
|
+
"@backstage/core-app-api": "1.19.3-next.0",
|
|
95
|
+
"@backstage/dev-utils": "1.1.18-next.0",
|
|
96
|
+
"@backstage/plugin-catalog": "1.32.1-next.0",
|
|
97
|
+
"@backstage/test-utils": "1.7.14-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",
|