@backstage/plugin-catalog-import 0.12.2-next.2 → 0.12.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 CHANGED
@@ -1,5 +1,42 @@
1
1
  # @backstage/plugin-catalog-import
2
2
 
3
+ ## 0.12.2
4
+
5
+ ### Patch Changes
6
+
7
+ - c7603e8: Deprecate the old pattern of `create*Extension`, and replace it with the equivalent Blueprint implementation instead
8
+ - Updated dependencies
9
+ - @backstage/frontend-plugin-api@0.7.0
10
+ - @backstage/plugin-catalog-react@1.12.3
11
+ - @backstage/core-components@0.14.10
12
+ - @backstage/core-compat-api@0.2.8
13
+ - @backstage/integration@1.14.0
14
+ - @backstage/catalog-model@1.6.0
15
+ - @backstage/catalog-client@1.6.6
16
+ - @backstage/config@1.2.0
17
+ - @backstage/core-plugin-api@1.9.3
18
+ - @backstage/errors@1.2.4
19
+ - @backstage/integration-react@1.1.30
20
+ - @backstage/plugin-catalog-common@1.0.26
21
+
22
+ ## 0.12.2-next.3
23
+
24
+ ### Patch Changes
25
+
26
+ - Updated dependencies
27
+ - @backstage/frontend-plugin-api@0.7.0-next.3
28
+ - @backstage/catalog-model@1.6.0-next.0
29
+ - @backstage/core-compat-api@0.2.8-next.3
30
+ - @backstage/plugin-catalog-react@1.12.3-next.3
31
+ - @backstage/catalog-client@1.6.6-next.0
32
+ - @backstage/config@1.2.0
33
+ - @backstage/core-components@0.14.10-next.0
34
+ - @backstage/core-plugin-api@1.9.3
35
+ - @backstage/errors@1.2.4
36
+ - @backstage/integration@1.14.0-next.0
37
+ - @backstage/integration-react@1.1.30-next.0
38
+ - @backstage/plugin-catalog-common@1.0.26-next.2
39
+
3
40
  ## 0.12.2-next.2
4
41
 
5
42
  ### Patch Changes
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@backstage/plugin-catalog-import__alpha",
3
- "version": "0.12.2-next.2",
3
+ "version": "0.12.2",
4
4
  "main": "../dist/alpha.esm.js",
5
5
  "module": "../dist/alpha.esm.js",
6
6
  "types": "../dist/alpha.d.ts"
package/dist/alpha.d.ts CHANGED
@@ -1,8 +1,27 @@
1
+ import * as _backstage_core_plugin_api from '@backstage/core-plugin-api';
1
2
  import * as _backstage_frontend_plugin_api from '@backstage/frontend-plugin-api';
3
+ import React__default from 'react';
2
4
 
3
5
  /** @alpha */
4
6
  declare const _default: _backstage_frontend_plugin_api.BackstagePlugin<{
5
7
  importPage: _backstage_frontend_plugin_api.RouteRef<undefined>;
6
- }, {}>;
8
+ }, {}, {
9
+ "api:catalog-import": _backstage_frontend_plugin_api.ExtensionDefinition<{}, {}, _backstage_frontend_plugin_api.ConfigurableExtensionDataRef<_backstage_core_plugin_api.AnyApiFactory, "core.api.factory", {}>, {}, {
10
+ kind: "api";
11
+ namespace: undefined;
12
+ name: undefined;
13
+ }>;
14
+ "page:catalog-import": _backstage_frontend_plugin_api.ExtensionDefinition<{
15
+ path: string | undefined;
16
+ }, {
17
+ path?: string | undefined;
18
+ }, _backstage_frontend_plugin_api.ConfigurableExtensionDataRef<React__default.JSX.Element, "core.reactElement", {}> | _backstage_frontend_plugin_api.ConfigurableExtensionDataRef<string, "core.routing.path", {}> | _backstage_frontend_plugin_api.ConfigurableExtensionDataRef<_backstage_frontend_plugin_api.RouteRef<_backstage_frontend_plugin_api.AnyRouteRefParams>, "core.routing.ref", {
19
+ optional: true;
20
+ }>, {}, {
21
+ kind: "page";
22
+ namespace: undefined;
23
+ name: undefined;
24
+ }>;
25
+ }>;
7
26
 
8
27
  export { _default as default };
package/dist/alpha.esm.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { createApiFactory, discoveryApiRef, fetchApiRef, configApiRef } from '@backstage/core-plugin-api';
2
2
  import { convertLegacyRouteRef, compatWrapper } from '@backstage/core-compat-api';
3
- import { createPageExtension, createApiExtension, createPlugin } from '@backstage/frontend-plugin-api';
3
+ import { PageBlueprint, ApiBlueprint, createFrontendPlugin } from '@backstage/frontend-plugin-api';
4
4
  import { scmAuthApiRef, scmIntegrationsApiRef } from '@backstage/integration-react';
5
5
  import React from 'react';
6
6
  import { catalogImportApiRef } from './api/CatalogImportApi.esm.js';
@@ -8,42 +8,46 @@ import { CatalogImportClient } from './api/CatalogImportClient.esm.js';
8
8
  import { rootRouteRef } from './plugin.esm.js';
9
9
  import { catalogApiRef } from '@backstage/plugin-catalog-react';
10
10
 
11
- const catalogImportPage = createPageExtension({
12
- defaultPath: "/catalog-import",
13
- routeRef: convertLegacyRouteRef(rootRouteRef),
14
- loader: () => import('./components/ImportPage/index.esm.js').then(
15
- (m) => compatWrapper(/* @__PURE__ */ React.createElement(m.ImportPage, null))
16
- )
11
+ const catalogImportPage = PageBlueprint.make({
12
+ params: {
13
+ defaultPath: "/catalog-import",
14
+ routeRef: convertLegacyRouteRef(rootRouteRef),
15
+ loader: () => import('./components/ImportPage/index.esm.js').then(
16
+ (m) => compatWrapper(/* @__PURE__ */ React.createElement(m.ImportPage, null))
17
+ )
18
+ }
17
19
  });
18
- const catalogImportApi = createApiExtension({
19
- factory: createApiFactory({
20
- api: catalogImportApiRef,
21
- deps: {
22
- discoveryApi: discoveryApiRef,
23
- scmAuthApi: scmAuthApiRef,
24
- fetchApi: fetchApiRef,
25
- scmIntegrationsApi: scmIntegrationsApiRef,
26
- catalogApi: catalogApiRef,
27
- configApi: configApiRef
28
- },
29
- factory: ({
30
- discoveryApi,
31
- scmAuthApi,
32
- fetchApi,
33
- scmIntegrationsApi,
34
- catalogApi,
35
- configApi
36
- }) => new CatalogImportClient({
37
- discoveryApi,
38
- scmAuthApi,
39
- scmIntegrationsApi,
40
- fetchApi,
41
- catalogApi,
42
- configApi
20
+ const catalogImportApi = ApiBlueprint.make({
21
+ params: {
22
+ factory: createApiFactory({
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
46
+ })
43
47
  })
44
- })
48
+ }
45
49
  });
46
- var alpha = createPlugin({
50
+ var alpha = createFrontendPlugin({
47
51
  id: "catalog-import",
48
52
  extensions: [catalogImportApi, catalogImportPage],
49
53
  routes: {
@@ -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 createApiFactory,\n discoveryApiRef,\n fetchApiRef,\n} from '@backstage/core-plugin-api';\nimport {\n compatWrapper,\n convertLegacyRouteRef,\n} from '@backstage/core-compat-api';\nimport {\n createApiExtension,\n createPageExtension,\n createPlugin,\n} from '@backstage/frontend-plugin-api';\nimport {\n scmAuthApiRef,\n scmIntegrationsApiRef,\n} from '@backstage/integration-react';\nimport React from 'react';\nimport { CatalogImportClient, catalogImportApiRef } from './api';\nimport { rootRouteRef } from './plugin';\nimport { catalogApiRef } from '@backstage/plugin-catalog-react';\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 = createPageExtension({\n defaultPath: '/catalog-import',\n routeRef: convertLegacyRouteRef(rootRouteRef),\n loader: () =>\n import('./components/ImportPage').then(m =>\n compatWrapper(<m.ImportPage />),\n ),\n});\n\nconst catalogImportApi = createApiExtension({\n factory: createApiFactory({\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 createPlugin({\n id: 'catalog-import',\n extensions: [catalogImportApi, catalogImportPage],\n routes: {\n importPage: convertLegacyRouteRef(rootRouteRef),\n },\n});\n"],"names":[],"mappings":";;;;;;;;;;AA0CA,MAAM,oBAAoB,mBAAoB,CAAA;AAAA,EAC5C,WAAa,EAAA,iBAAA;AAAA,EACb,QAAA,EAAU,sBAAsB,YAAY,CAAA;AAAA,EAC5C,MAAQ,EAAA,MACN,OAAO,sCAAyB,CAAE,CAAA,IAAA;AAAA,IAAK,OACrC,aAAc,iBAAA,KAAA,CAAA,aAAA,CAAC,CAAE,CAAA,UAAA,EAAF,IAAa,CAAE,CAAA;AAAA,GAChC;AACJ,CAAC,CAAA,CAAA;AAED,MAAM,mBAAmB,kBAAmB,CAAA;AAAA,EAC1C,SAAS,gBAAiB,CAAA;AAAA,IACxB,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,YAAA;AAAA,KACb;AAAA,IACA,SAAS,CAAC;AAAA,MACR,YAAA;AAAA,MACA,UAAA;AAAA,MACA,QAAA;AAAA,MACA,kBAAA;AAAA,MACA,UAAA;AAAA,MACA,SAAA;AAAA,KACF,KACE,IAAI,mBAAoB,CAAA;AAAA,MACtB,YAAA;AAAA,MACA,UAAA;AAAA,MACA,kBAAA;AAAA,MACA,QAAA;AAAA,MACA,UAAA;AAAA,MACA,SAAA;AAAA,KACD,CAAA;AAAA,GACJ,CAAA;AACH,CAAC,CAAA,CAAA;AAGD,YAAe,YAAa,CAAA;AAAA,EAC1B,EAAI,EAAA,gBAAA;AAAA,EACJ,UAAA,EAAY,CAAC,gBAAA,EAAkB,iBAAiB,CAAA;AAAA,EAChD,MAAQ,EAAA;AAAA,IACN,UAAA,EAAY,sBAAsB,YAAY,CAAA;AAAA,GAChD;AACF,CAAC,CAAA;;;;"}
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 createApiFactory,\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 React from 'react';\nimport { CatalogImportClient, catalogImportApiRef } from './api';\nimport { rootRouteRef } from './plugin';\nimport { catalogApiRef } from '@backstage/plugin-catalog-react';\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 defaultPath: '/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: {\n factory: createApiFactory({\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\n/** @alpha */\nexport default createFrontendPlugin({\n id: 'catalog-import',\n extensions: [catalogImportApi, catalogImportPage],\n routes: {\n importPage: convertLegacyRouteRef(rootRouteRef),\n },\n});\n"],"names":[],"mappings":";;;;;;;;;;AA0CA,MAAM,iBAAA,GAAoB,cAAc,IAAK,CAAA;AAAA,EAC3C,MAAQ,EAAA;AAAA,IACN,WAAa,EAAA,iBAAA;AAAA,IACb,QAAA,EAAU,sBAAsB,YAAY,CAAA;AAAA,IAC5C,MAAQ,EAAA,MACN,OAAO,sCAAyB,CAAE,CAAA,IAAA;AAAA,MAAK,OACrC,aAAc,iBAAA,KAAA,CAAA,aAAA,CAAC,CAAE,CAAA,UAAA,EAAF,IAAa,CAAE,CAAA;AAAA,KAChC;AAAA,GACJ;AACF,CAAC,CAAA,CAAA;AAED,MAAM,gBAAA,GAAmB,aAAa,IAAK,CAAA;AAAA,EACzC,MAAQ,EAAA;AAAA,IACN,SAAS,gBAAiB,CAAA;AAAA,MACxB,GAAK,EAAA,mBAAA;AAAA,MACL,IAAM,EAAA;AAAA,QACJ,YAAc,EAAA,eAAA;AAAA,QACd,UAAY,EAAA,aAAA;AAAA,QACZ,QAAU,EAAA,WAAA;AAAA,QACV,kBAAoB,EAAA,qBAAA;AAAA,QACpB,UAAY,EAAA,aAAA;AAAA,QACZ,SAAW,EAAA,YAAA;AAAA,OACb;AAAA,MACA,SAAS,CAAC;AAAA,QACR,YAAA;AAAA,QACA,UAAA;AAAA,QACA,QAAA;AAAA,QACA,kBAAA;AAAA,QACA,UAAA;AAAA,QACA,SAAA;AAAA,OACF,KACE,IAAI,mBAAoB,CAAA;AAAA,QACtB,YAAA;AAAA,QACA,UAAA;AAAA,QACA,kBAAA;AAAA,QACA,QAAA;AAAA,QACA,UAAA;AAAA,QACA,SAAA;AAAA,OACD,CAAA;AAAA,KACJ,CAAA;AAAA,GACH;AACF,CAAC,CAAA,CAAA;AAGD,YAAe,oBAAqB,CAAA;AAAA,EAClC,EAAI,EAAA,gBAAA;AAAA,EACJ,UAAA,EAAY,CAAC,gBAAA,EAAkB,iBAAiB,CAAA;AAAA,EAChD,MAAQ,EAAA;AAAA,IACN,UAAA,EAAY,sBAAsB,YAAY,CAAA;AAAA,GAChD;AACF,CAAC,CAAA;;;;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@backstage/plugin-catalog-import",
3
- "version": "0.12.2-next.2",
3
+ "version": "0.12.2",
4
4
  "description": "A Backstage plugin the helps you import entities into your catalog",
5
5
  "backstage": {
6
6
  "role": "frontend-plugin",
@@ -53,18 +53,18 @@
53
53
  "test": "backstage-cli package test"
54
54
  },
55
55
  "dependencies": {
56
- "@backstage/catalog-client": "^1.6.5",
57
- "@backstage/catalog-model": "^1.5.0",
56
+ "@backstage/catalog-client": "^1.6.6",
57
+ "@backstage/catalog-model": "^1.6.0",
58
58
  "@backstage/config": "^1.2.0",
59
- "@backstage/core-compat-api": "^0.2.8-next.2",
60
- "@backstage/core-components": "^0.14.10-next.0",
59
+ "@backstage/core-compat-api": "^0.2.8",
60
+ "@backstage/core-components": "^0.14.10",
61
61
  "@backstage/core-plugin-api": "^1.9.3",
62
62
  "@backstage/errors": "^1.2.4",
63
- "@backstage/frontend-plugin-api": "^0.7.0-next.2",
64
- "@backstage/integration": "^1.14.0-next.0",
65
- "@backstage/integration-react": "^1.1.30-next.0",
66
- "@backstage/plugin-catalog-common": "^1.0.26-next.1",
67
- "@backstage/plugin-catalog-react": "^1.12.3-next.2",
63
+ "@backstage/frontend-plugin-api": "^0.7.0",
64
+ "@backstage/integration": "^1.14.0",
65
+ "@backstage/integration-react": "^1.1.30",
66
+ "@backstage/plugin-catalog-common": "^1.0.26",
67
+ "@backstage/plugin-catalog-react": "^1.12.3",
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",
@@ -78,11 +78,11 @@
78
78
  "yaml": "^2.0.0"
79
79
  },
80
80
  "devDependencies": {
81
- "@backstage/cli": "^0.27.0-next.3",
82
- "@backstage/core-app-api": "^1.14.2-next.0",
83
- "@backstage/dev-utils": "^1.0.37-next.2",
84
- "@backstage/plugin-catalog": "^1.22.0-next.2",
85
- "@backstage/test-utils": "^1.5.10-next.2",
81
+ "@backstage/cli": "^0.27.0",
82
+ "@backstage/core-app-api": "^1.14.2",
83
+ "@backstage/dev-utils": "^1.0.37",
84
+ "@backstage/plugin-catalog": "^1.22.0",
85
+ "@backstage/test-utils": "^1.5.10",
86
86
  "@testing-library/dom": "^10.0.0",
87
87
  "@testing-library/jest-dom": "^6.0.0",
88
88
  "@testing-library/react": "^15.0.0",