@backstage/plugin-catalog-unprocessed-entities 0.2.14-next.1 → 0.2.14

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,19 @@
1
1
  # @backstage/plugin-catalog-unprocessed-entities
2
2
 
3
+ ## 0.2.14
4
+
5
+ ### Patch Changes
6
+
7
+ - e09d3e8: Added alpha support for the New Frontend System
8
+ - 58ec9e7: Removed older versions of React packages as a preparatory step for upgrading to React 19. This commit does not introduce any functional changes, but removes dependencies on previous React versions, allowing for a cleaner upgrade path in subsequent commits.
9
+ - Updated dependencies
10
+ - @backstage/core-components@0.16.4
11
+ - @backstage/frontend-plugin-api@0.9.5
12
+ - @backstage/core-compat-api@0.3.6
13
+ - @backstage/core-plugin-api@1.10.4
14
+ - @backstage/catalog-model@1.7.3
15
+ - @backstage/errors@1.2.7
16
+
3
17
  ## 0.2.14-next.1
4
18
 
5
19
  ### Patch Changes
package/README.md CHANGED
@@ -44,6 +44,26 @@ import { CatalogUnprocessedEntitiesPage } from '@backstage/plugin-catalog-unproc
44
44
  />;
45
45
  ```
46
46
 
47
+ ### Integrating with the New Frontend System
48
+
49
+ Follow this section if you are using Backstage's [new frontend system](https://backstage.io/docs/frontend-system/).
50
+
51
+ Import `catalogUnprocessedEntitiesPlugin` in your `App.tsx` and add it to your app's `features` array:
52
+
53
+ ```typescript
54
+ import catalogUnprocessedEntitiesPlugin from '@backstage/plugin-catalog-unprocessed-entities';
55
+
56
+ // ...
57
+
58
+ export const app = createApp({
59
+ features: [
60
+ // ...
61
+ catalogUnprocessedEntitiesPlugin,
62
+ // ...
63
+ ],
64
+ });
65
+ ```
66
+
47
67
  ## Customization
48
68
 
49
69
  If you want to use the provided endpoints in a different way, you can use the ApiRef doing the following:
@@ -0,0 +1,49 @@
1
+ import React from 'react';
2
+ import { ApiBlueprint, createApiFactory, discoveryApiRef, fetchApiRef, PageBlueprint, NavItemBlueprint, createFrontendPlugin } from '@backstage/frontend-plugin-api';
3
+ import { catalogUnprocessedEntitiesApiRef, CatalogUnprocessedEntitiesClient } from '../api/index.esm.js';
4
+ import { convertLegacyRouteRef, compatWrapper } from '@backstage/core-compat-api';
5
+ import QueueIcon from '@material-ui/icons/Queue';
6
+ import { rootRouteRef } from '../routes.esm.js';
7
+
8
+ const catalogUnprocessedEntitiesApi = ApiBlueprint.make({
9
+ params: {
10
+ factory: createApiFactory({
11
+ api: catalogUnprocessedEntitiesApiRef,
12
+ deps: {
13
+ discoveryApi: discoveryApiRef,
14
+ fetchApi: fetchApiRef
15
+ },
16
+ factory: ({ discoveryApi, fetchApi }) => new CatalogUnprocessedEntitiesClient(discoveryApi, fetchApi)
17
+ })
18
+ }
19
+ });
20
+ const catalogUnprocessedEntitiesPage = PageBlueprint.make({
21
+ params: {
22
+ defaultPath: "/catalog-unprocessed-entities",
23
+ routeRef: convertLegacyRouteRef(rootRouteRef),
24
+ loader: () => import('../components/UnprocessedEntities.esm.js').then(
25
+ (m) => compatWrapper(/* @__PURE__ */ React.createElement(m.UnprocessedEntities, null))
26
+ )
27
+ }
28
+ });
29
+ const catalogUnprocessedEntitiesNavItem = NavItemBlueprint.make({
30
+ params: {
31
+ title: "Unprocessed Entities",
32
+ routeRef: convertLegacyRouteRef(rootRouteRef),
33
+ icon: QueueIcon
34
+ }
35
+ });
36
+ var plugin = createFrontendPlugin({
37
+ id: "catalog-unprocessed-entities",
38
+ routes: {
39
+ root: convertLegacyRouteRef(rootRouteRef)
40
+ },
41
+ extensions: [
42
+ catalogUnprocessedEntitiesApi,
43
+ catalogUnprocessedEntitiesPage,
44
+ catalogUnprocessedEntitiesNavItem
45
+ ]
46
+ });
47
+
48
+ export { catalogUnprocessedEntitiesApi, catalogUnprocessedEntitiesNavItem, catalogUnprocessedEntitiesPage, plugin as default };
49
+ //# sourceMappingURL=plugin.esm.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"plugin.esm.js","sources":["../../src/alpha/plugin.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 React from 'react';\nimport {\n createApiFactory,\n createFrontendPlugin,\n discoveryApiRef,\n fetchApiRef,\n ApiBlueprint,\n PageBlueprint,\n NavItemBlueprint,\n} from '@backstage/frontend-plugin-api';\n\nimport {\n catalogUnprocessedEntitiesApiRef,\n CatalogUnprocessedEntitiesClient,\n} from '../api';\nimport {\n compatWrapper,\n convertLegacyRouteRef,\n} from '@backstage/core-compat-api';\nimport QueueIcon from '@material-ui/icons/Queue';\nimport { rootRouteRef } from '../routes';\n\n/** @alpha */\nexport const catalogUnprocessedEntitiesApi = ApiBlueprint.make({\n params: {\n factory: createApiFactory({\n api: catalogUnprocessedEntitiesApiRef,\n deps: {\n discoveryApi: discoveryApiRef,\n fetchApi: fetchApiRef,\n },\n factory: ({ discoveryApi, fetchApi }) =>\n new CatalogUnprocessedEntitiesClient(discoveryApi, fetchApi),\n }),\n },\n});\n\n/** @alpha */\nexport const catalogUnprocessedEntitiesPage = PageBlueprint.make({\n params: {\n defaultPath: '/catalog-unprocessed-entities',\n routeRef: convertLegacyRouteRef(rootRouteRef),\n loader: () =>\n import('../components/UnprocessedEntities').then(m =>\n compatWrapper(<m.UnprocessedEntities />),\n ),\n },\n});\n\n/** @alpha */\nexport const catalogUnprocessedEntitiesNavItem = NavItemBlueprint.make({\n params: {\n title: 'Unprocessed Entities',\n routeRef: convertLegacyRouteRef(rootRouteRef),\n icon: QueueIcon,\n },\n});\n\n/** @alpha */\nexport default createFrontendPlugin({\n id: 'catalog-unprocessed-entities',\n routes: {\n root: convertLegacyRouteRef(rootRouteRef),\n },\n extensions: [\n catalogUnprocessedEntitiesApi,\n catalogUnprocessedEntitiesPage,\n catalogUnprocessedEntitiesNavItem,\n ],\n});\n"],"names":[],"mappings":";;;;;;;AAuCa,MAAA,6BAAA,GAAgC,aAAa,IAAK,CAAA;AAAA,EAC7D,MAAQ,EAAA;AAAA,IACN,SAAS,gBAAiB,CAAA;AAAA,MACxB,GAAK,EAAA,gCAAA;AAAA,MACL,IAAM,EAAA;AAAA,QACJ,YAAc,EAAA,eAAA;AAAA,QACd,QAAU,EAAA;AAAA,OACZ;AAAA,MACA,OAAA,EAAS,CAAC,EAAE,YAAA,EAAc,UACxB,KAAA,IAAI,gCAAiC,CAAA,YAAA,EAAc,QAAQ;AAAA,KAC9D;AAAA;AAEL,CAAC;AAGY,MAAA,8BAAA,GAAiC,cAAc,IAAK,CAAA;AAAA,EAC/D,MAAQ,EAAA;AAAA,IACN,WAAa,EAAA,+BAAA;AAAA,IACb,QAAA,EAAU,sBAAsB,YAAY,CAAA;AAAA,IAC5C,MAAQ,EAAA,MACN,OAAO,0CAAmC,CAAE,CAAA,IAAA;AAAA,MAAK,OAC/C,aAAc,iBAAA,KAAA,CAAA,aAAA,CAAC,CAAE,CAAA,mBAAA,EAAF,IAAsB,CAAE;AAAA;AACzC;AAEN,CAAC;AAGY,MAAA,iCAAA,GAAoC,iBAAiB,IAAK,CAAA;AAAA,EACrE,MAAQ,EAAA;AAAA,IACN,KAAO,EAAA,sBAAA;AAAA,IACP,QAAA,EAAU,sBAAsB,YAAY,CAAA;AAAA,IAC5C,IAAM,EAAA;AAAA;AAEV,CAAC;AAGD,aAAe,oBAAqB,CAAA;AAAA,EAClC,EAAI,EAAA,8BAAA;AAAA,EACJ,MAAQ,EAAA;AAAA,IACN,IAAA,EAAM,sBAAsB,YAAY;AAAA,GAC1C;AAAA,EACA,UAAY,EAAA;AAAA,IACV,6BAAA;AAAA,IACA,8BAAA;AAAA,IACA;AAAA;AAEJ,CAAC,CAAA;;;;"}
@@ -0,0 +1,58 @@
1
+ import * as _backstage_core_plugin_api from '@backstage/core-plugin-api';
2
+ import * as _backstage_frontend_plugin_api from '@backstage/frontend-plugin-api';
3
+ import React__default from 'react';
4
+
5
+ /** @alpha */
6
+ declare const _default: _backstage_frontend_plugin_api.FrontendPlugin<{
7
+ root: _backstage_frontend_plugin_api.RouteRef<undefined>;
8
+ }, {}, {
9
+ "page:catalog-unprocessed-entities": _backstage_frontend_plugin_api.ExtensionDefinition<{
10
+ kind: "page";
11
+ name: undefined;
12
+ config: {
13
+ path: string | undefined;
14
+ };
15
+ configInput: {
16
+ path?: string | undefined;
17
+ };
18
+ output: _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
+ inputs: {};
22
+ params: {
23
+ defaultPath: string;
24
+ loader: () => Promise<JSX.Element>;
25
+ routeRef?: _backstage_frontend_plugin_api.RouteRef<_backstage_frontend_plugin_api.AnyRouteRefParams> | undefined;
26
+ };
27
+ }>;
28
+ "nav-item:catalog-unprocessed-entities": _backstage_frontend_plugin_api.ExtensionDefinition<{
29
+ kind: "nav-item";
30
+ name: undefined;
31
+ config: {};
32
+ configInput: {};
33
+ output: _backstage_frontend_plugin_api.ConfigurableExtensionDataRef<{
34
+ title: string;
35
+ icon: _backstage_core_plugin_api.IconComponent;
36
+ routeRef: _backstage_frontend_plugin_api.RouteRef<undefined>;
37
+ }, "core.nav-item.target", {}>;
38
+ inputs: {};
39
+ params: {
40
+ title: string;
41
+ icon: _backstage_core_plugin_api.IconComponent;
42
+ routeRef: _backstage_frontend_plugin_api.RouteRef<undefined>;
43
+ };
44
+ }>;
45
+ "api:catalog-unprocessed-entities": _backstage_frontend_plugin_api.ExtensionDefinition<{
46
+ kind: "api";
47
+ name: undefined;
48
+ config: {};
49
+ configInput: {};
50
+ output: _backstage_frontend_plugin_api.ConfigurableExtensionDataRef<_backstage_frontend_plugin_api.AnyApiFactory, "core.api.factory", {}>;
51
+ inputs: {};
52
+ params: {
53
+ factory: _backstage_frontend_plugin_api.AnyApiFactory;
54
+ };
55
+ }>;
56
+ }>;
57
+
58
+ export { _default as default };
@@ -0,0 +1,2 @@
1
+ export { default } from './alpha/plugin.esm.js';
2
+ //# sourceMappingURL=alpha.esm.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"alpha.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
package/package.json CHANGED
@@ -1,18 +1,19 @@
1
1
  {
2
2
  "name": "@backstage/plugin-catalog-unprocessed-entities",
3
- "version": "0.2.14-next.1",
3
+ "version": "0.2.14",
4
4
  "backstage": {
5
5
  "role": "frontend-plugin",
6
6
  "pluginId": "catalog-unprocessed-entities",
7
7
  "pluginPackages": [
8
8
  "@backstage/plugin-catalog-unprocessed-entities",
9
9
  "@backstage/plugin-catalog-unprocessed-entities-common"
10
- ]
10
+ ],
11
+ "features": {
12
+ "./alpha": "@backstage/FrontendPlugin"
13
+ }
11
14
  },
12
15
  "publishConfig": {
13
- "access": "public",
14
- "main": "dist/index.esm.js",
15
- "types": "dist/index.d.ts"
16
+ "access": "public"
16
17
  },
17
18
  "homepage": "https://backstage.io",
18
19
  "repository": {
@@ -22,8 +23,32 @@
22
23
  },
23
24
  "license": "Apache-2.0",
24
25
  "sideEffects": false,
25
- "main": "dist/index.esm.js",
26
- "types": "dist/index.d.ts",
26
+ "exports": {
27
+ ".": {
28
+ "import": "./dist/index.esm.js",
29
+ "types": "./dist/index.d.ts",
30
+ "default": "./dist/index.esm.js"
31
+ },
32
+ "./alpha": {
33
+ "backstage": "@backstage/FrontendPlugin",
34
+ "import": "./dist/alpha.esm.js",
35
+ "types": "./dist/alpha.d.ts",
36
+ "default": "./dist/alpha.esm.js"
37
+ },
38
+ "./package.json": "./package.json"
39
+ },
40
+ "main": "./dist/index.esm.js",
41
+ "types": "./dist/index.d.ts",
42
+ "typesVersions": {
43
+ "*": {
44
+ "index": [
45
+ "dist/index.d.ts"
46
+ ],
47
+ "alpha": [
48
+ "dist/alpha.d.ts"
49
+ ]
50
+ }
51
+ },
27
52
  "files": [
28
53
  "dist"
29
54
  ],
@@ -37,10 +62,12 @@
37
62
  "test": "backstage-cli package test"
38
63
  },
39
64
  "dependencies": {
40
- "@backstage/catalog-model": "1.7.3",
41
- "@backstage/core-components": "0.16.4-next.1",
42
- "@backstage/core-plugin-api": "1.10.4-next.0",
43
- "@backstage/errors": "1.2.7",
65
+ "@backstage/catalog-model": "^1.7.3",
66
+ "@backstage/core-compat-api": "^0.3.6",
67
+ "@backstage/core-components": "^0.16.4",
68
+ "@backstage/core-plugin-api": "^1.10.4",
69
+ "@backstage/errors": "^1.2.7",
70
+ "@backstage/frontend-plugin-api": "^0.9.5",
44
71
  "@material-ui/core": "^4.9.13",
45
72
  "@material-ui/icons": "^4.9.1",
46
73
  "@material-ui/lab": "^4.0.0-alpha.60",
@@ -48,8 +75,8 @@
48
75
  "react-use": "^17.2.4"
49
76
  },
50
77
  "devDependencies": {
51
- "@backstage/cli": "0.30.0-next.2",
52
- "@backstage/dev-utils": "1.1.7-next.2",
78
+ "@backstage/cli": "^0.30.0",
79
+ "@backstage/dev-utils": "^1.1.7",
53
80
  "@testing-library/jest-dom": "^6.0.0",
54
81
  "@testing-library/react": "^16.0.0",
55
82
  "@types/react": "^18.0.0",
@@ -68,12 +95,5 @@
68
95
  "optional": true
69
96
  }
70
97
  },
71
- "typesVersions": {
72
- "*": {
73
- "index": [
74
- "dist/index.d.ts"
75
- ]
76
- }
77
- },
78
98
  "module": "./dist/index.esm.js"
79
99
  }