@backstage-community/plugin-kafka 0.8.0 → 0.9.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 CHANGED
@@ -1,5 +1,11 @@
1
1
  # @backstage-community/plugin-kafka
2
2
 
3
+ ## 0.9.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 6c22329: Backstage version bump to v1.43.2 and migrate the `kafka` plugin to the new frontend system.
8
+
3
9
  ## 0.8.0
4
10
 
5
11
  ### Minor Changes
package/README.md CHANGED
@@ -114,6 +114,77 @@ kafka:
114
114
  dashboardUrl: https://dashboard.com
115
115
  ```
116
116
 
117
+ ## New Frontend System
118
+
119
+ Follow these steps to detect and configure the Kafka plugin if you'd like to use it in an application that supports the new Backstage frontend system.
120
+
121
+ ### Package detection
122
+
123
+ Once you install the `@backstage-community/plugin-kafka` package using your preferred package manager, you have to choose how the package should be detected by the app. The package can be automatically discovered when the feature discovery config is set, or it can be manually enabled via code (for more granular package customization cases, such as extension overrides).
124
+
125
+ <table>
126
+ <tr>
127
+ <td>Via config</td>
128
+ <td>Via code</td>
129
+ </tr>
130
+ <tr>
131
+ <td>
132
+ <pre lang="yaml">
133
+ <code>
134
+ # app-config.yaml
135
+ app:
136
+ # Enable package discovery for all plugins
137
+ packages: 'all'
138
+ ---
139
+ app:
140
+ # Enable package discovery only for Kafka
141
+ packages:
142
+ include:
143
+ - '@backstage-community/plugin-kafka'
144
+ </code>
145
+ </pre>
146
+ </td>
147
+ <td>
148
+ <pre lang="javascript">
149
+ <code>
150
+ // packages/app/src/App.tsx
151
+ import { createApp } from '@backstage/frontend-defaults';
152
+ import kafkaPlugin from '@backstage-community/plugin-kafka/alpha';
153
+ //...
154
+ const app = createApp({
155
+ // ...
156
+ features: [
157
+ //...
158
+ kafkaPlugin,
159
+ ],
160
+ });
161
+
162
+ //...
163
+ </code>
164
+
165
+ </pre>
166
+ </td>
167
+
168
+ </tr>
169
+ </table>
170
+
171
+ ## Extensions config
172
+
173
+ Currently, the plugin installs 3 extensions: 2 apis (Kafka and Kafka dashboard) and 1 entity page content (also known as entity page tab), see below examples of how to configure the available extensions.
174
+
175
+ ```yml
176
+ # app-config.yaml
177
+ app:
178
+ extensions:
179
+ # Example disabling the Kafka entity content
180
+ - 'entity-content:kafka': false
181
+ # Example customizing the Kafka entity content
182
+ - 'entity-content:kafka':
183
+ config:
184
+ path: '/events'
185
+ title: 'Events'
186
+ ```
187
+
117
188
  ## Features
118
189
 
119
190
  - List topics offsets and consumer group offsets for configured services.
@@ -0,0 +1,23 @@
1
+ import { ApiBlueprint, discoveryApiRef, identityApiRef, configApiRef } from '@backstage/frontend-plugin-api';
2
+ import { kafkaApiRef, kafkaDashboardApiRef } from '../api/types.esm.js';
3
+ import { KafkaBackendClient } from '../api/KafkaBackendClient.esm.js';
4
+ import { KafkaDashboardClient } from '../api/KafkaDashboardClient.esm.js';
5
+
6
+ const kafkaApi = ApiBlueprint.make({
7
+ params: (definedParams) => definedParams({
8
+ api: kafkaApiRef,
9
+ deps: { discoveryApi: discoveryApiRef, identityApi: identityApiRef },
10
+ factory: ({ discoveryApi, identityApi }) => new KafkaBackendClient({ discoveryApi, identityApi })
11
+ })
12
+ });
13
+ const kafkaDashboardApi = ApiBlueprint.make({
14
+ name: "dashboard",
15
+ params: (definedParams) => definedParams({
16
+ api: kafkaDashboardApiRef,
17
+ deps: { configApi: configApiRef },
18
+ factory: ({ configApi }) => new KafkaDashboardClient({ configApi })
19
+ })
20
+ });
21
+
22
+ export { kafkaApi, kafkaDashboardApi };
23
+ //# sourceMappingURL=apis.esm.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"apis.esm.js","sources":["../../src/alpha/apis.ts"],"sourcesContent":["/*\n * Copyright 2025 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 ApiBlueprint,\n configApiRef,\n discoveryApiRef,\n identityApiRef,\n} from '@backstage/frontend-plugin-api';\nimport { kafkaApiRef, kafkaDashboardApiRef } from '../api/types';\nimport { KafkaBackendClient } from '../api/KafkaBackendClient';\nimport { KafkaDashboardClient } from '../api/KafkaDashboardClient';\n\n/**\n * @alpha\n */\nexport const kafkaApi = ApiBlueprint.make({\n params: definedParams =>\n definedParams({\n api: kafkaApiRef,\n deps: { discoveryApi: discoveryApiRef, identityApi: identityApiRef },\n factory: ({ discoveryApi, identityApi }) =>\n new KafkaBackendClient({ discoveryApi, identityApi }),\n }),\n});\n\n/**\n * @alpha\n */\nexport const kafkaDashboardApi = ApiBlueprint.make({\n name: 'dashboard',\n params: definedParams =>\n definedParams({\n api: kafkaDashboardApiRef,\n deps: { configApi: configApiRef },\n factory: ({ configApi }) => new KafkaDashboardClient({ configApi }),\n }),\n});\n"],"names":[],"mappings":";;;;;AA6Ba,MAAA,QAAA,GAAW,aAAa,IAAK,CAAA;AAAA,EACxC,MAAA,EAAQ,mBACN,aAAc,CAAA;AAAA,IACZ,GAAK,EAAA,WAAA;AAAA,IACL,IAAM,EAAA,EAAE,YAAc,EAAA,eAAA,EAAiB,aAAa,cAAe,EAAA;AAAA,IACnE,OAAA,EAAS,CAAC,EAAE,YAAc,EAAA,WAAA,EACxB,KAAA,IAAI,kBAAmB,CAAA,EAAE,YAAc,EAAA,WAAA,EAAa;AAAA,GACvD;AACL,CAAC;AAKY,MAAA,iBAAA,GAAoB,aAAa,IAAK,CAAA;AAAA,EACjD,IAAM,EAAA,WAAA;AAAA,EACN,MAAA,EAAQ,mBACN,aAAc,CAAA;AAAA,IACZ,GAAK,EAAA,oBAAA;AAAA,IACL,IAAA,EAAM,EAAE,SAAA,EAAW,YAAa,EAAA;AAAA,IAChC,OAAA,EAAS,CAAC,EAAE,SAAA,OAAgB,IAAI,oBAAA,CAAqB,EAAE,SAAA,EAAW;AAAA,GACnE;AACL,CAAC;;;;"}
@@ -0,0 +1,22 @@
1
+ import { jsx } from 'react/jsx-runtime';
2
+ import { convertLegacyRouteRef, compatWrapper } from '@backstage/core-compat-api';
3
+ import { EntityContentBlueprint } from '@backstage/plugin-catalog-react/alpha';
4
+ import { rootCatalogKafkaRouteRef } from '../plugin.esm.js';
5
+ import { KAFKA_CONSUMER_GROUP_ANNOTATION } from '../constants.esm.js';
6
+
7
+ const kafkaEntityContent = EntityContentBlueprint.make({
8
+ params: {
9
+ path: "/kafka",
10
+ title: "Kafka",
11
+ routeRef: convertLegacyRouteRef(rootCatalogKafkaRouteRef),
12
+ filter: {
13
+ [`metadata.annotations.${KAFKA_CONSUMER_GROUP_ANNOTATION}`]: {
14
+ $exists: true
15
+ }
16
+ },
17
+ loader: async () => import('../Router.esm.js').then((m) => compatWrapper(/* @__PURE__ */ jsx(m.Router, {})))
18
+ }
19
+ });
20
+
21
+ export { kafkaEntityContent };
22
+ //# sourceMappingURL=entityContents.esm.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"entityContents.esm.js","sources":["../../src/alpha/entityContents.tsx"],"sourcesContent":["/*\n * Copyright 2025 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 compatWrapper,\n convertLegacyRouteRef,\n} from '@backstage/core-compat-api';\nimport { EntityContentBlueprint } from '@backstage/plugin-catalog-react/alpha';\nimport { rootCatalogKafkaRouteRef } from '../plugin';\nimport { KAFKA_CONSUMER_GROUP_ANNOTATION } from '../constants';\n\n/**\n * @alpha\n */\nexport const kafkaEntityContent = EntityContentBlueprint.make({\n params: {\n path: '/kafka',\n title: 'Kafka',\n routeRef: convertLegacyRouteRef(rootCatalogKafkaRouteRef),\n filter: {\n [`metadata.annotations.${KAFKA_CONSUMER_GROUP_ANNOTATION}`]: {\n $exists: true,\n },\n },\n loader: async () =>\n import('../Router').then(m => compatWrapper(<m.Router />)),\n },\n});\n"],"names":[],"mappings":";;;;;;AA2Ba,MAAA,kBAAA,GAAqB,uBAAuB,IAAK,CAAA;AAAA,EAC5D,MAAQ,EAAA;AAAA,IACN,IAAM,EAAA,QAAA;AAAA,IACN,KAAO,EAAA,OAAA;AAAA,IACP,QAAA,EAAU,sBAAsB,wBAAwB,CAAA;AAAA,IACxD,MAAQ,EAAA;AAAA,MACN,CAAC,CAAA,qBAAA,EAAwB,+BAA+B,CAAA,CAAE,GAAG;AAAA,QAC3D,OAAS,EAAA;AAAA;AACX,KACF;AAAA,IACA,MAAQ,EAAA,YACN,OAAO,kBAAW,CAAE,CAAA,IAAA,CAAK,CAAK,CAAA,KAAA,aAAA,iBAAe,GAAA,CAAA,CAAA,CAAE,MAAF,EAAA,EAAS,CAAE,CAAC;AAAA;AAE/D,CAAC;;;;"}
@@ -0,0 +1,17 @@
1
+ import { convertLegacyRouteRefs } from '@backstage/core-compat-api';
2
+ import { createFrontendPlugin } from '@backstage/frontend-plugin-api';
3
+ import { rootCatalogKafkaRouteRef } from '../plugin.esm.js';
4
+ import { kafkaApi, kafkaDashboardApi } from './apis.esm.js';
5
+ import { kafkaEntityContent } from './entityContents.esm.js';
6
+
7
+ const kafkaPlugin = createFrontendPlugin({
8
+ pluginId: "kafka",
9
+ info: { packageJson: () => import('../package.json.esm.js') },
10
+ extensions: [kafkaApi, kafkaDashboardApi, kafkaEntityContent],
11
+ routes: convertLegacyRouteRefs({
12
+ entityContent: rootCatalogKafkaRouteRef
13
+ })
14
+ });
15
+
16
+ export { kafkaPlugin };
17
+ //# sourceMappingURL=plugin.esm.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"plugin.esm.js","sources":["../../src/alpha/plugin.ts"],"sourcesContent":["/*\n * Copyright 2025 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 { convertLegacyRouteRefs } from '@backstage/core-compat-api';\nimport { createFrontendPlugin } from '@backstage/frontend-plugin-api';\nimport { rootCatalogKafkaRouteRef } from '../plugin';\nimport { kafkaApi, kafkaDashboardApi } from './apis';\nimport { kafkaEntityContent } from './entityContents';\n\n/**\n * @alpha\n */\nexport const kafkaPlugin = createFrontendPlugin({\n pluginId: 'kafka',\n info: { packageJson: () => import('../../package.json') },\n extensions: [kafkaApi, kafkaDashboardApi, kafkaEntityContent],\n routes: convertLegacyRouteRefs({\n entityContent: rootCatalogKafkaRouteRef,\n }),\n});\n"],"names":[],"mappings":";;;;;;AAyBO,MAAM,cAAc,oBAAqB,CAAA;AAAA,EAC9C,QAAU,EAAA,OAAA;AAAA,EACV,MAAM,EAAE,WAAA,EAAa,MAAM,OAAO,wBAAoB,CAAE,EAAA;AAAA,EACxD,UAAY,EAAA,CAAC,QAAU,EAAA,iBAAA,EAAmB,kBAAkB,CAAA;AAAA,EAC5D,QAAQ,sBAAuB,CAAA;AAAA,IAC7B,aAAe,EAAA;AAAA,GAChB;AACH,CAAC;;;;"}
@@ -0,0 +1,75 @@
1
+ /// <reference types="react" />
2
+ import * as _backstage_catalog_model from '@backstage/catalog-model';
3
+ import * as react from 'react';
4
+ import * as _backstage_plugin_catalog_react_alpha from '@backstage/plugin-catalog-react/alpha';
5
+ import * as _backstage_core_plugin_api from '@backstage/core-plugin-api';
6
+ import * as _backstage_frontend_plugin_api from '@backstage/frontend-plugin-api';
7
+
8
+ /**
9
+ * @alpha
10
+ */
11
+ declare const kafkaPlugin: _backstage_frontend_plugin_api.OverridableFrontendPlugin<{
12
+ entityContent: _backstage_frontend_plugin_api.RouteRef<undefined>;
13
+ }, {}, {
14
+ "api:kafka": _backstage_frontend_plugin_api.ExtensionDefinition<{
15
+ kind: "api";
16
+ name: undefined;
17
+ config: {};
18
+ configInput: {};
19
+ output: _backstage_frontend_plugin_api.ExtensionDataRef<_backstage_core_plugin_api.AnyApiFactory, "core.api.factory", {}>;
20
+ inputs: {};
21
+ params: <TApi, TImpl extends TApi, TDeps extends {
22
+ [x: string]: unknown;
23
+ }>(params: _backstage_core_plugin_api.ApiFactory<TApi, TImpl, TDeps>) => _backstage_frontend_plugin_api.ExtensionBlueprintParams<_backstage_core_plugin_api.AnyApiFactory>;
24
+ }>;
25
+ "api:kafka/dashboard": _backstage_frontend_plugin_api.ExtensionDefinition<{
26
+ kind: "api";
27
+ name: "dashboard";
28
+ config: {};
29
+ configInput: {};
30
+ output: _backstage_frontend_plugin_api.ExtensionDataRef<_backstage_core_plugin_api.AnyApiFactory, "core.api.factory", {}>;
31
+ inputs: {};
32
+ params: <TApi, TImpl extends TApi, TDeps extends {
33
+ [x: string]: unknown;
34
+ }>(params: _backstage_core_plugin_api.ApiFactory<TApi, TImpl, TDeps>) => _backstage_frontend_plugin_api.ExtensionBlueprintParams<_backstage_core_plugin_api.AnyApiFactory>;
35
+ }>;
36
+ "entity-content:kafka": _backstage_frontend_plugin_api.ExtensionDefinition<{
37
+ kind: "entity-content";
38
+ name: undefined;
39
+ config: {
40
+ path: string | undefined;
41
+ title: string | undefined;
42
+ filter: _backstage_plugin_catalog_react_alpha.EntityPredicate | undefined;
43
+ group: string | false | undefined;
44
+ };
45
+ configInput: {
46
+ filter?: _backstage_plugin_catalog_react_alpha.EntityPredicate | undefined;
47
+ title?: string | undefined;
48
+ path?: string | undefined;
49
+ group?: string | false | undefined;
50
+ };
51
+ output: _backstage_frontend_plugin_api.ExtensionDataRef<react.JSX.Element, "core.reactElement", {}> | _backstage_frontend_plugin_api.ExtensionDataRef<string, "core.routing.path", {}> | _backstage_frontend_plugin_api.ExtensionDataRef<_backstage_frontend_plugin_api.RouteRef<_backstage_frontend_plugin_api.AnyRouteRefParams>, "core.routing.ref", {
52
+ optional: true;
53
+ }> | _backstage_frontend_plugin_api.ExtensionDataRef<(entity: _backstage_catalog_model.Entity) => boolean, "catalog.entity-filter-function", {
54
+ optional: true;
55
+ }> | _backstage_frontend_plugin_api.ExtensionDataRef<string, "catalog.entity-filter-expression", {
56
+ optional: true;
57
+ }> | _backstage_frontend_plugin_api.ExtensionDataRef<string, "catalog.entity-content-title", {}> | _backstage_frontend_plugin_api.ExtensionDataRef<string, "catalog.entity-content-group", {
58
+ optional: true;
59
+ }>;
60
+ inputs: {};
61
+ params: {
62
+ defaultPath?: [Error: "Use the 'path' param instead"] | undefined;
63
+ path: string;
64
+ defaultTitle?: [Error: "Use the 'title' param instead"] | undefined;
65
+ title: string;
66
+ defaultGroup?: [Error: "Use the 'group' param instead"] | undefined;
67
+ group?: (string & {}) | "development" | "deployment" | "overview" | "documentation" | "operation" | "observability" | undefined;
68
+ loader: () => Promise<JSX.Element>;
69
+ routeRef?: _backstage_frontend_plugin_api.RouteRef<_backstage_frontend_plugin_api.AnyRouteRefParams> | undefined;
70
+ filter?: _backstage_plugin_catalog_react_alpha.EntityPredicate | ((entity: _backstage_catalog_model.Entity) => boolean) | undefined;
71
+ };
72
+ }>;
73
+ }>;
74
+
75
+ export { kafkaPlugin as default };
@@ -0,0 +1,2 @@
1
+ export { kafkaPlugin as 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":""}
@@ -0,0 +1,110 @@
1
+ var name = "@backstage-community/plugin-kafka";
2
+ var version = "0.9.0";
3
+ var description = "A Backstage plugin that integrates towards Kafka";
4
+ var backstage = {
5
+ role: "frontend-plugin",
6
+ pluginId: "kafka",
7
+ pluginPackages: [
8
+ "@backstage-community/plugin-kafka",
9
+ "@backstage-community/plugin-kafka-backend"
10
+ ]
11
+ };
12
+ var publishConfig = {
13
+ access: "public"
14
+ };
15
+ var exports = {
16
+ ".": "./src/index.ts",
17
+ "./alpha": "./src/alpha/index.ts",
18
+ "./package.json": "./package.json"
19
+ };
20
+ var typesVersions = {
21
+ "*": {
22
+ alpha: [
23
+ "src/alpha/index.ts"
24
+ ],
25
+ "package.json": [
26
+ "package.json"
27
+ ]
28
+ }
29
+ };
30
+ var homepage = "https://backstage.io";
31
+ var repository = {
32
+ type: "git",
33
+ url: "https://github.com/backstage/community-plugins",
34
+ directory: "workspaces/kafka/plugins/kafka"
35
+ };
36
+ var license = "Apache-2.0";
37
+ var sideEffects = false;
38
+ var main = "src/index.ts";
39
+ var types = "src/index.ts";
40
+ var files = [
41
+ "dist",
42
+ "config.d.ts"
43
+ ];
44
+ var scripts = {
45
+ build: "backstage-cli package build",
46
+ clean: "backstage-cli package clean",
47
+ lint: "backstage-cli package lint",
48
+ prepack: "backstage-cli package prepack",
49
+ postpack: "backstage-cli package postpack",
50
+ start: "backstage-cli package start",
51
+ "start:alpha": "backstage-cli package start --entry-dir dev/alpha --config ./dev/alpha/app-config.yaml",
52
+ test: "backstage-cli package test"
53
+ };
54
+ var dependencies = {
55
+ "@backstage/catalog-model": "^1.7.5",
56
+ "@backstage/core-compat-api": "^0.5.2",
57
+ "@backstage/core-components": "^0.18.1",
58
+ "@backstage/core-plugin-api": "^1.11.0",
59
+ "@backstage/frontend-plugin-api": "^0.12.0",
60
+ "@backstage/plugin-catalog-react": "^1.21.1",
61
+ "@material-ui/core": "^4.12.2",
62
+ "@material-ui/icons": "^4.9.1",
63
+ "@types/react": "^16.13.1 || ^17.0.0 || ^18.0.0",
64
+ "react-use": "^17.2.4"
65
+ };
66
+ var devDependencies = {
67
+ "@backstage/cli": "patch:@backstage/cli@npm%3A0.34.3#~/.yarn/patches/@backstage-cli-npm-0.34.3-2b0ecb658a.patch",
68
+ "@backstage/dev-utils": "^1.1.14",
69
+ "@backstage/frontend-defaults": "^0.3.1",
70
+ "@backstage/plugin-catalog": "^1.31.3",
71
+ "@backstage/test-utils": "^1.7.11",
72
+ "@testing-library/dom": "^10.0.0",
73
+ "@testing-library/jest-dom": "^6.0.0",
74
+ "@testing-library/react": "^15.0.0",
75
+ "@types/react-dom": "^18.2.19",
76
+ "jest-when": "^3.1.0",
77
+ react: "^16.13.1 || ^17.0.0 || ^18.0.0",
78
+ "react-dom": "^16.13.1 || ^17.0.0 || ^18.0.0",
79
+ "react-router-dom": "6.0.0-beta.0 || ^6.3.0"
80
+ };
81
+ var peerDependencies = {
82
+ react: "^16.13.1 || ^17.0.0 || ^18.0.0",
83
+ "react-dom": "^16.13.1 || ^17.0.0 || ^18.0.0",
84
+ "react-router-dom": "6.0.0-beta.0 || ^6.3.0"
85
+ };
86
+ var configSchema = "config.d.ts";
87
+ var _package = {
88
+ name: name,
89
+ version: version,
90
+ description: description,
91
+ backstage: backstage,
92
+ publishConfig: publishConfig,
93
+ exports: exports,
94
+ typesVersions: typesVersions,
95
+ homepage: homepage,
96
+ repository: repository,
97
+ license: license,
98
+ sideEffects: sideEffects,
99
+ main: main,
100
+ types: types,
101
+ files: files,
102
+ scripts: scripts,
103
+ dependencies: dependencies,
104
+ devDependencies: devDependencies,
105
+ peerDependencies: peerDependencies,
106
+ configSchema: configSchema
107
+ };
108
+
109
+ export { backstage, configSchema, _package as default, dependencies, description, devDependencies, exports, files, homepage, license, main, name, peerDependencies, publishConfig, repository, scripts, sideEffects, types, typesVersions, version };
110
+ //# sourceMappingURL=package.json.esm.js.map
@@ -0,0 +1 @@
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-community/plugin-kafka",
3
- "version": "0.8.0",
3
+ "version": "0.9.0",
4
4
  "description": "A Backstage plugin that integrates towards Kafka",
5
5
  "backstage": {
6
6
  "role": "frontend-plugin",
@@ -8,12 +8,37 @@
8
8
  "pluginPackages": [
9
9
  "@backstage-community/plugin-kafka",
10
10
  "@backstage-community/plugin-kafka-backend"
11
- ]
11
+ ],
12
+ "features": {
13
+ "./alpha": "@backstage/FrontendPlugin"
14
+ }
12
15
  },
13
16
  "publishConfig": {
14
- "access": "public",
15
- "main": "dist/index.esm.js",
16
- "types": "dist/index.d.ts"
17
+ "access": "public"
18
+ },
19
+ "exports": {
20
+ ".": {
21
+ "import": "./dist/index.esm.js",
22
+ "types": "./dist/index.d.ts",
23
+ "default": "./dist/index.esm.js"
24
+ },
25
+ "./alpha": {
26
+ "backstage": "@backstage/FrontendPlugin",
27
+ "import": "./dist/alpha.esm.js",
28
+ "types": "./dist/alpha.d.ts",
29
+ "default": "./dist/alpha.esm.js"
30
+ },
31
+ "./package.json": "./package.json"
32
+ },
33
+ "typesVersions": {
34
+ "*": {
35
+ "alpha": [
36
+ "dist/alpha.d.ts"
37
+ ],
38
+ "package.json": [
39
+ "package.json"
40
+ ]
41
+ }
17
42
  },
18
43
  "homepage": "https://backstage.io",
19
44
  "repository": {
@@ -23,8 +48,8 @@
23
48
  },
24
49
  "license": "Apache-2.0",
25
50
  "sideEffects": false,
26
- "main": "dist/index.esm.js",
27
- "types": "dist/index.d.ts",
51
+ "main": "./dist/index.esm.js",
52
+ "types": "./dist/index.d.ts",
28
53
  "files": [
29
54
  "dist",
30
55
  "config.d.ts"
@@ -36,22 +61,27 @@
36
61
  "prepack": "backstage-cli package prepack",
37
62
  "postpack": "backstage-cli package postpack",
38
63
  "start": "backstage-cli package start",
64
+ "start:alpha": "backstage-cli package start --entry-dir dev/alpha --config ./dev/alpha/app-config.yaml",
39
65
  "test": "backstage-cli package test"
40
66
  },
41
67
  "dependencies": {
42
68
  "@backstage/catalog-model": "^1.7.5",
43
- "@backstage/core-components": "^0.17.4",
44
- "@backstage/core-plugin-api": "^1.10.9",
45
- "@backstage/plugin-catalog-react": "^1.19.1",
69
+ "@backstage/core-compat-api": "^0.5.2",
70
+ "@backstage/core-components": "^0.18.1",
71
+ "@backstage/core-plugin-api": "^1.11.0",
72
+ "@backstage/frontend-plugin-api": "^0.12.0",
73
+ "@backstage/plugin-catalog-react": "^1.21.1",
46
74
  "@material-ui/core": "^4.12.2",
47
75
  "@material-ui/icons": "^4.9.1",
48
76
  "@types/react": "^16.13.1 || ^17.0.0 || ^18.0.0",
49
77
  "react-use": "^17.2.4"
50
78
  },
51
79
  "devDependencies": {
52
- "@backstage/cli": "^0.33.1",
53
- "@backstage/dev-utils": "^1.1.12",
54
- "@backstage/test-utils": "^1.7.10",
80
+ "@backstage/cli": "patch:@backstage/cli@npm%3A0.34.3#~/.yarn/patches/@backstage-cli-npm-0.34.3-2b0ecb658a.patch",
81
+ "@backstage/dev-utils": "^1.1.14",
82
+ "@backstage/frontend-defaults": "^0.3.1",
83
+ "@backstage/plugin-catalog": "^1.31.3",
84
+ "@backstage/test-utils": "^1.7.11",
55
85
  "@testing-library/dom": "^10.0.0",
56
86
  "@testing-library/jest-dom": "^6.0.0",
57
87
  "@testing-library/react": "^15.0.0",
@@ -67,12 +97,5 @@
67
97
  "react-router-dom": "6.0.0-beta.0 || ^6.3.0"
68
98
  },
69
99
  "configSchema": "config.d.ts",
70
- "typesVersions": {
71
- "*": {
72
- "package.json": [
73
- "package.json"
74
- ]
75
- }
76
- },
77
100
  "module": "./dist/index.esm.js"
78
101
  }