@backstage/plugin-catalog-unprocessed-entities 0.2.24 → 0.2.25

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,23 @@
1
1
  # @backstage/plugin-catalog-unprocessed-entities
2
2
 
3
+ ## 0.2.25
4
+
5
+ ### Patch Changes
6
+
7
+ - be6cef5: Add support for adding `unprocessed-entities` and other tabs to `devtools` when using the New Frontend system
8
+ - Updated dependencies
9
+ - @backstage/frontend-plugin-api@0.13.3
10
+ - @backstage/core-components@0.18.5
11
+ - @backstage/plugin-devtools-react@0.1.0
12
+ - @backstage/core-compat-api@0.5.6
13
+
14
+ ## 0.2.25-next.0
15
+
16
+ ### Patch Changes
17
+
18
+ - Updated dependencies
19
+ - @backstage/core-components@0.18.5-next.0
20
+
3
21
  ## 0.2.24
4
22
 
5
23
  ### Patch Changes
package/README.md CHANGED
@@ -52,18 +52,36 @@ Import `catalogUnprocessedEntitiesPlugin` in your `App.tsx` and add it to your a
52
52
 
53
53
  ```typescript
54
54
  import catalogUnprocessedEntitiesPlugin from '@backstage/plugin-catalog-unprocessed-entities';
55
+ import { unprocessedEntitiesDevToolsContent } from '@backstage/plugin-catalog-unprocessed-entities/alpha';
55
56
 
56
- // ...
57
+ // Optionally add unprocessed entities route to devtools
58
+ const devtoolsPluginUnprocessed = createFrontendModule({
59
+ pluginId: 'catalog-unprocessed-entities',
60
+ extensions: [unprocessedEntitiesDevToolsContent],
61
+ });
57
62
 
58
63
  export const app = createApp({
59
64
  features: [
60
65
  // ...
61
66
  catalogUnprocessedEntitiesPlugin,
67
+
68
+ // Optionally add unprocessed entities route to devtools
69
+ devtoolsPluginUnprocessed,
70
+ devtoolsPlugin, // devtools plugin needs to be added too, if autodiscover is disabled
62
71
  // ...
63
72
  ],
64
73
  });
65
74
  ```
66
75
 
76
+ ```yaml
77
+ app:
78
+ extensions:
79
+ # Enable the catalog-unprocessed-entities tab in devtools
80
+ - devtools-content:catalog-unprocessed-entities: true
81
+ # Disable the catalog-unprocessed-entities element outside devtools including the sidebar
82
+ - page:catalog-unprocessed-entities: false
83
+ ```
84
+
67
85
  ## Customization
68
86
 
69
87
  If you want to use the provided endpoints in a different way, you can use the ApiRef doing the following:
@@ -0,0 +1,16 @@
1
+ import { jsx } from 'react/jsx-runtime';
2
+ import { DevToolsContentBlueprint } from '@backstage/plugin-devtools-react';
3
+
4
+ const unprocessedEntitiesDevToolsContent = DevToolsContentBlueprint.make(
5
+ {
6
+ disabled: true,
7
+ params: {
8
+ path: "unprocessed-entities",
9
+ title: "Unprocessed Entities",
10
+ loader: () => import('../components/UnprocessedEntities.esm.js').then((m) => /* @__PURE__ */ jsx(m.UnprocessedEntitiesContent, {}))
11
+ }
12
+ }
13
+ );
14
+
15
+ export { unprocessedEntitiesDevToolsContent };
16
+ //# sourceMappingURL=devToolsContent.esm.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"devToolsContent.esm.js","sources":["../../src/alpha/devToolsContent.tsx"],"sourcesContent":["/*\n * Copyright 2024 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 { DevToolsContentBlueprint } from '@backstage/plugin-devtools-react';\n\n/**\n * DevTools content for catalog unprocessed entities.\n *\n * @alpha\n */\nexport const unprocessedEntitiesDevToolsContent = DevToolsContentBlueprint.make(\n {\n disabled: true,\n params: {\n path: 'unprocessed-entities',\n title: 'Unprocessed Entities',\n loader: () =>\n import('../components/UnprocessedEntities').then(m => (\n <m.UnprocessedEntitiesContent />\n )),\n },\n },\n);\n"],"names":[],"mappings":";;;AAuBO,MAAM,qCAAqC,wBAAA,CAAyB,IAAA;AAAA,EACzE;AAAA,IACE,QAAA,EAAU,IAAA;AAAA,IACV,MAAA,EAAQ;AAAA,MACN,IAAA,EAAM,sBAAA;AAAA,MACN,KAAA,EAAO,sBAAA;AAAA,MACP,MAAA,EAAQ,MACN,OAAO,0CAAmC,CAAA,CAAE,IAAA,CAAK,CAAA,CAAA,qBAC/C,GAAA,CAAC,CAAA,CAAE,0BAAA,EAAF,EAA6B,CAC/B;AAAA;AACL;AAEJ;;;;"}
package/dist/alpha.d.ts CHANGED
@@ -1,6 +1,7 @@
1
1
  import * as _backstage_core_plugin_api from '@backstage/core-plugin-api';
2
2
  import * as react from 'react';
3
3
  import * as _backstage_frontend_plugin_api from '@backstage/frontend-plugin-api';
4
+ import * as _backstage_plugin_devtools_react from '@backstage/plugin-devtools-react';
4
5
 
5
6
  /** @alpha */
6
7
  declare const _default: _backstage_frontend_plugin_api.OverridableFrontendPlugin<{
@@ -54,4 +55,27 @@ declare const _default: _backstage_frontend_plugin_api.OverridableFrontendPlugin
54
55
  }>;
55
56
  }>;
56
57
 
57
- export { _default as default };
58
+ /**
59
+ * DevTools content for catalog unprocessed entities.
60
+ *
61
+ * @alpha
62
+ */
63
+ declare const unprocessedEntitiesDevToolsContent: _backstage_frontend_plugin_api.OverridableExtensionDefinition<{
64
+ kind: "devtools-content";
65
+ name: undefined;
66
+ config: {
67
+ path: string | undefined;
68
+ title: string | undefined;
69
+ };
70
+ configInput: {
71
+ title?: string | undefined;
72
+ path?: string | undefined;
73
+ };
74
+ 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", {
75
+ optional: true;
76
+ }> | _backstage_frontend_plugin_api.ExtensionDataRef<string, "core.title", {}>;
77
+ inputs: {};
78
+ params: _backstage_plugin_devtools_react.DevToolsContentBlueprintParams;
79
+ }>;
80
+
81
+ export { _default as default, unprocessedEntitiesDevToolsContent };
package/dist/alpha.esm.js CHANGED
@@ -1,2 +1,3 @@
1
1
  export { default } from './alpha/plugin.esm.js';
2
+ export { unprocessedEntitiesDevToolsContent } from './alpha/devToolsContent.esm.js';
2
3
  //# sourceMappingURL=alpha.esm.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"alpha.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
1
+ {"version":3,"file":"alpha.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
@@ -1,5 +1,5 @@
1
1
  var name = "@backstage/plugin-catalog-unprocessed-entities";
2
- var version = "0.2.24";
2
+ var version = "0.2.25";
3
3
  var backstage = {
4
4
  role: "frontend-plugin",
5
5
  pluginId: "catalog-unprocessed-entities",
@@ -49,11 +49,13 @@ var scripts = {
49
49
  test: "backstage-cli package test"
50
50
  };
51
51
  var dependencies = {
52
+ "@backstage/core-compat-api": "workspace:^",
52
53
  "@backstage/core-components": "workspace:^",
53
54
  "@backstage/core-plugin-api": "workspace:^",
54
55
  "@backstage/errors": "workspace:^",
55
56
  "@backstage/frontend-plugin-api": "workspace:^",
56
57
  "@backstage/plugin-catalog-unprocessed-entities-common": "workspace:^",
58
+ "@backstage/plugin-devtools-react": "workspace:^",
57
59
  "@material-ui/core": "^4.9.13",
58
60
  "@material-ui/icons": "^4.9.1",
59
61
  "@material-ui/lab": "^4.0.0-alpha.60",
@@ -1 +1 @@
1
- {"version":3,"file":"package.json.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"package.json.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@backstage/plugin-catalog-unprocessed-entities",
3
- "version": "0.2.24",
3
+ "version": "0.2.25",
4
4
  "backstage": {
5
5
  "role": "frontend-plugin",
6
6
  "pluginId": "catalog-unprocessed-entities",
@@ -62,11 +62,13 @@
62
62
  "test": "backstage-cli package test"
63
63
  },
64
64
  "dependencies": {
65
- "@backstage/core-components": "^0.18.4",
65
+ "@backstage/core-compat-api": "^0.5.6",
66
+ "@backstage/core-components": "^0.18.5",
66
67
  "@backstage/core-plugin-api": "^1.12.1",
67
68
  "@backstage/errors": "^1.2.7",
68
- "@backstage/frontend-plugin-api": "^0.13.2",
69
+ "@backstage/frontend-plugin-api": "^0.13.3",
69
70
  "@backstage/plugin-catalog-unprocessed-entities-common": "^0.0.12",
71
+ "@backstage/plugin-devtools-react": "^0.1.0",
70
72
  "@material-ui/core": "^4.9.13",
71
73
  "@material-ui/icons": "^4.9.1",
72
74
  "@material-ui/lab": "^4.0.0-alpha.60",
@@ -74,8 +76,8 @@
74
76
  "react-use": "^17.2.4"
75
77
  },
76
78
  "devDependencies": {
77
- "@backstage/cli": "^0.35.0",
78
- "@backstage/dev-utils": "^1.1.18",
79
+ "@backstage/cli": "^0.35.2",
80
+ "@backstage/dev-utils": "^1.1.19",
79
81
  "@testing-library/jest-dom": "^6.0.0",
80
82
  "@testing-library/react": "^16.0.0",
81
83
  "@types/react": "^18.0.0",