@backstage/plugin-catalog-unprocessed-entities 0.2.20-next.0 → 0.2.20-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 CHANGED
@@ -1,5 +1,31 @@
1
1
  # @backstage/plugin-catalog-unprocessed-entities
2
2
 
3
+ ## 0.2.20-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/core-components@0.17.5-next.1
12
+ - @backstage/catalog-model@1.7.5
13
+ - @backstage/core-plugin-api@1.10.9
14
+ - @backstage/errors@1.2.7
15
+
16
+ ## 0.2.20-next.1
17
+
18
+ ### Patch Changes
19
+
20
+ - f2f133c: Internal update to use the new variant of `ApiBlueprint`.
21
+ - Updated dependencies
22
+ - @backstage/core-compat-api@0.4.5-next.1
23
+ - @backstage/frontend-plugin-api@0.11.0-next.0
24
+ - @backstage/core-components@0.17.5-next.0
25
+ - @backstage/catalog-model@1.7.5
26
+ - @backstage/core-plugin-api@1.10.9
27
+ - @backstage/errors@1.2.7
28
+
3
29
  ## 0.2.20-next.0
4
30
 
5
31
  ### Patch Changes
@@ -1,25 +1,23 @@
1
1
  import { jsx } from 'react/jsx-runtime';
2
- import { ApiBlueprint, createApiFactory, discoveryApiRef, fetchApiRef, PageBlueprint, NavItemBlueprint, createFrontendPlugin } from '@backstage/frontend-plugin-api';
2
+ import { ApiBlueprint, discoveryApiRef, fetchApiRef, PageBlueprint, NavItemBlueprint, createFrontendPlugin } from '@backstage/frontend-plugin-api';
3
3
  import { catalogUnprocessedEntitiesApiRef, CatalogUnprocessedEntitiesClient } from '../api/index.esm.js';
4
4
  import { convertLegacyRouteRef, compatWrapper } from '@backstage/core-compat-api';
5
5
  import QueueIcon from '@material-ui/icons/Queue';
6
6
  import { rootRouteRef } from '../routes.esm.js';
7
7
 
8
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
- }
9
+ params: (defineParams) => defineParams({
10
+ api: catalogUnprocessedEntitiesApiRef,
11
+ deps: {
12
+ discoveryApi: discoveryApiRef,
13
+ fetchApi: fetchApiRef
14
+ },
15
+ factory: ({ discoveryApi, fetchApi }) => new CatalogUnprocessedEntitiesClient(discoveryApi, fetchApi)
16
+ })
19
17
  });
20
18
  const catalogUnprocessedEntitiesPage = PageBlueprint.make({
21
19
  params: {
22
- defaultPath: "/catalog-unprocessed-entities",
20
+ path: "/catalog-unprocessed-entities",
23
21
  routeRef: convertLegacyRouteRef(rootRouteRef),
24
22
  loader: () => import('../components/UnprocessedEntities.esm.js').then(
25
23
  (m) => compatWrapper(/* @__PURE__ */ jsx(m.UnprocessedEntities, {}))
@@ -1 +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 {\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 pluginId: 'catalog-unprocessed-entities',\n info: { packageJson: () => import('../../package.json') },\n routes: {\n root: convertLegacyRouteRef(rootRouteRef),\n },\n extensions: [\n catalogUnprocessedEntitiesApi,\n catalogUnprocessedEntitiesPage,\n catalogUnprocessedEntitiesNavItem,\n ],\n});\n"],"names":[],"mappings":";;;;;;;AAsCa,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,GAAA,CAAC,CAAE,CAAA,mBAAA,EAAF,EAAsB,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,QAAU,EAAA,8BAAA;AAAA,EACV,MAAM,EAAE,WAAA,EAAa,MAAM,OAAO,wBAAoB,CAAE,EAAA;AAAA,EACxD,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;;;;"}
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 {\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: defineParams =>\n defineParams({\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/** @alpha */\nexport const catalogUnprocessedEntitiesPage = PageBlueprint.make({\n params: {\n path: '/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 pluginId: 'catalog-unprocessed-entities',\n info: { packageJson: () => import('../../package.json') },\n routes: {\n root: convertLegacyRouteRef(rootRouteRef),\n },\n extensions: [\n catalogUnprocessedEntitiesApi,\n catalogUnprocessedEntitiesPage,\n catalogUnprocessedEntitiesNavItem,\n ],\n});\n"],"names":[],"mappings":";;;;;;;AAqCa,MAAA,6BAAA,GAAgC,aAAa,IAAK,CAAA;AAAA,EAC7D,MAAA,EAAQ,kBACN,YAAa,CAAA;AAAA,IACX,GAAK,EAAA,gCAAA;AAAA,IACL,IAAM,EAAA;AAAA,MACJ,YAAc,EAAA,eAAA;AAAA,MACd,QAAU,EAAA;AAAA,KACZ;AAAA,IACA,OAAA,EAAS,CAAC,EAAE,YAAA,EAAc,UACxB,KAAA,IAAI,gCAAiC,CAAA,YAAA,EAAc,QAAQ;AAAA,GAC9D;AACL,CAAC;AAGY,MAAA,8BAAA,GAAiC,cAAc,IAAK,CAAA;AAAA,EAC/D,MAAQ,EAAA;AAAA,IACN,IAAM,EAAA,+BAAA;AAAA,IACN,QAAA,EAAU,sBAAsB,YAAY,CAAA;AAAA,IAC5C,MAAQ,EAAA,MACN,OAAO,0CAAmC,CAAE,CAAA,IAAA;AAAA,MAAK,OAC/C,aAAc,iBAAA,GAAA,CAAC,CAAE,CAAA,mBAAA,EAAF,EAAsB,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,QAAU,EAAA,8BAAA;AAAA,EACV,MAAM,EAAE,WAAA,EAAa,MAAM,OAAO,wBAAoB,CAAE,EAAA;AAAA,EACxD,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;;;;"}
package/dist/alpha.d.ts CHANGED
@@ -11,18 +11,16 @@ declare const _default: _backstage_frontend_plugin_api.FrontendPlugin<{
11
11
  name: undefined;
12
12
  config: {};
13
13
  configInput: {};
14
- output: _backstage_frontend_plugin_api.ConfigurableExtensionDataRef<_backstage_frontend_plugin_api.AnyApiFactory, "core.api.factory", {}>;
14
+ output: _backstage_frontend_plugin_api.ExtensionDataRef<_backstage_frontend_plugin_api.AnyApiFactory, "core.api.factory", {}>;
15
15
  inputs: {};
16
- params: {
17
- factory: _backstage_frontend_plugin_api.AnyApiFactory;
18
- };
16
+ 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>;
19
17
  }>;
20
18
  "nav-item:catalog-unprocessed-entities": _backstage_frontend_plugin_api.ExtensionDefinition<{
21
19
  kind: "nav-item";
22
20
  name: undefined;
23
21
  config: {};
24
22
  configInput: {};
25
- output: _backstage_frontend_plugin_api.ConfigurableExtensionDataRef<{
23
+ output: _backstage_frontend_plugin_api.ExtensionDataRef<{
26
24
  title: string;
27
25
  icon: _backstage_core_plugin_api.IconComponent;
28
26
  routeRef: _backstage_frontend_plugin_api.RouteRef<undefined>;
@@ -43,12 +41,13 @@ declare const _default: _backstage_frontend_plugin_api.FrontendPlugin<{
43
41
  configInput: {
44
42
  path?: string | undefined;
45
43
  };
46
- output: _backstage_frontend_plugin_api.ConfigurableExtensionDataRef<react.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", {
44
+ 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", {
47
45
  optional: true;
48
46
  }>;
49
47
  inputs: {};
50
48
  params: {
51
- defaultPath: string;
49
+ defaultPath?: [Error: `Use the 'path' param instead`];
50
+ path: string;
52
51
  loader: () => Promise<JSX.Element>;
53
52
  routeRef?: _backstage_frontend_plugin_api.RouteRef;
54
53
  };
@@ -1,5 +1,5 @@
1
1
  var name = "@backstage/plugin-catalog-unprocessed-entities";
2
- var version = "0.2.20-next.0";
2
+ var version = "0.2.20-next.2";
3
3
  var backstage = {
4
4
  role: "frontend-plugin",
5
5
  pluginId: "catalog-unprocessed-entities",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@backstage/plugin-catalog-unprocessed-entities",
3
- "version": "0.2.20-next.0",
3
+ "version": "0.2.20-next.2",
4
4
  "backstage": {
5
5
  "role": "frontend-plugin",
6
6
  "pluginId": "catalog-unprocessed-entities",
@@ -63,11 +63,11 @@
63
63
  },
64
64
  "dependencies": {
65
65
  "@backstage/catalog-model": "1.7.5",
66
- "@backstage/core-compat-api": "0.4.5-next.0",
67
- "@backstage/core-components": "0.17.4",
66
+ "@backstage/core-compat-api": "0.5.0-next.2",
67
+ "@backstage/core-components": "0.17.5-next.1",
68
68
  "@backstage/core-plugin-api": "1.10.9",
69
69
  "@backstage/errors": "1.2.7",
70
- "@backstage/frontend-plugin-api": "0.10.4",
70
+ "@backstage/frontend-plugin-api": "0.11.0-next.1",
71
71
  "@material-ui/core": "^4.9.13",
72
72
  "@material-ui/icons": "^4.9.1",
73
73
  "@material-ui/lab": "^4.0.0-alpha.60",
@@ -75,8 +75,8 @@
75
75
  "react-use": "^17.2.4"
76
76
  },
77
77
  "devDependencies": {
78
- "@backstage/cli": "0.33.1",
79
- "@backstage/dev-utils": "1.1.13-next.0",
78
+ "@backstage/cli": "0.34.0-next.1",
79
+ "@backstage/dev-utils": "1.1.13-next.1",
80
80
  "@testing-library/jest-dom": "^6.0.0",
81
81
  "@testing-library/react": "^16.0.0",
82
82
  "@types/react": "^18.0.0",