@backstage/plugin-api-docs 0.12.10-next.1 → 0.12.10-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 +16 -0
- package/dist/alpha.d.ts +44 -37
- package/dist/alpha.esm.js +6 -6
- package/dist/alpha.esm.js.map +1 -1
- package/dist/package.json.esm.js +1 -1
- package/package.json +7 -7
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# @backstage/plugin-api-docs
|
|
2
2
|
|
|
3
|
+
## 0.12.10-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/plugin-catalog@1.31.2-next.2
|
|
12
|
+
- @backstage/plugin-catalog-react@1.20.0-next.2
|
|
13
|
+
- @backstage/core-components@0.17.5-next.1
|
|
14
|
+
- @backstage/catalog-model@1.7.5
|
|
15
|
+
- @backstage/core-plugin-api@1.10.9
|
|
16
|
+
- @backstage/plugin-catalog-common@1.1.5
|
|
17
|
+
- @backstage/plugin-permission-react@0.4.36
|
|
18
|
+
|
|
3
19
|
## 0.12.10-next.1
|
|
4
20
|
|
|
5
21
|
### Patch Changes
|
package/dist/alpha.d.ts
CHANGED
|
@@ -46,7 +46,7 @@ declare const _default: _backstage_frontend_plugin_api.FrontendPlugin<{
|
|
|
46
46
|
name: "config";
|
|
47
47
|
config: {};
|
|
48
48
|
configInput: {};
|
|
49
|
-
output: _backstage_frontend_plugin_api.
|
|
49
|
+
output: _backstage_frontend_plugin_api.ExtensionDataRef<_backstage_frontend_plugin_api.AnyApiFactory, "core.api.factory", {}>;
|
|
50
50
|
inputs: {};
|
|
51
51
|
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>;
|
|
52
52
|
}>;
|
|
@@ -61,11 +61,11 @@ declare const _default: _backstage_frontend_plugin_api.FrontendPlugin<{
|
|
|
61
61
|
filter?: _backstage_plugin_catalog_react_alpha.EntityPredicate | undefined;
|
|
62
62
|
type?: "content" | "summary" | "info" | undefined;
|
|
63
63
|
};
|
|
64
|
-
output: _backstage_frontend_plugin_api.
|
|
64
|
+
output: _backstage_frontend_plugin_api.ExtensionDataRef<react.JSX.Element, "core.reactElement", {}> | _backstage_frontend_plugin_api.ExtensionDataRef<(entity: _backstage_catalog_model.Entity) => boolean, "catalog.entity-filter-function", {
|
|
65
65
|
optional: true;
|
|
66
|
-
}> | _backstage_frontend_plugin_api.
|
|
66
|
+
}> | _backstage_frontend_plugin_api.ExtensionDataRef<string, "catalog.entity-filter-expression", {
|
|
67
67
|
optional: true;
|
|
68
|
-
}> | _backstage_frontend_plugin_api.
|
|
68
|
+
}> | _backstage_frontend_plugin_api.ExtensionDataRef<_backstage_plugin_catalog_react_alpha.EntityCardType, "catalog.entity-card-type", {
|
|
69
69
|
optional: true;
|
|
70
70
|
}>;
|
|
71
71
|
inputs: {};
|
|
@@ -86,11 +86,11 @@ declare const _default: _backstage_frontend_plugin_api.FrontendPlugin<{
|
|
|
86
86
|
filter?: _backstage_plugin_catalog_react_alpha.EntityPredicate | undefined;
|
|
87
87
|
type?: "content" | "summary" | "info" | undefined;
|
|
88
88
|
};
|
|
89
|
-
output: _backstage_frontend_plugin_api.
|
|
89
|
+
output: _backstage_frontend_plugin_api.ExtensionDataRef<react.JSX.Element, "core.reactElement", {}> | _backstage_frontend_plugin_api.ExtensionDataRef<(entity: _backstage_catalog_model.Entity) => boolean, "catalog.entity-filter-function", {
|
|
90
90
|
optional: true;
|
|
91
|
-
}> | _backstage_frontend_plugin_api.
|
|
91
|
+
}> | _backstage_frontend_plugin_api.ExtensionDataRef<string, "catalog.entity-filter-expression", {
|
|
92
92
|
optional: true;
|
|
93
|
-
}> | _backstage_frontend_plugin_api.
|
|
93
|
+
}> | _backstage_frontend_plugin_api.ExtensionDataRef<_backstage_plugin_catalog_react_alpha.EntityCardType, "catalog.entity-card-type", {
|
|
94
94
|
optional: true;
|
|
95
95
|
}>;
|
|
96
96
|
inputs: {};
|
|
@@ -111,11 +111,11 @@ declare const _default: _backstage_frontend_plugin_api.FrontendPlugin<{
|
|
|
111
111
|
filter?: _backstage_plugin_catalog_react_alpha.EntityPredicate | undefined;
|
|
112
112
|
type?: "content" | "summary" | "info" | undefined;
|
|
113
113
|
};
|
|
114
|
-
output: _backstage_frontend_plugin_api.
|
|
114
|
+
output: _backstage_frontend_plugin_api.ExtensionDataRef<react.JSX.Element, "core.reactElement", {}> | _backstage_frontend_plugin_api.ExtensionDataRef<(entity: _backstage_catalog_model.Entity) => boolean, "catalog.entity-filter-function", {
|
|
115
115
|
optional: true;
|
|
116
|
-
}> | _backstage_frontend_plugin_api.
|
|
116
|
+
}> | _backstage_frontend_plugin_api.ExtensionDataRef<string, "catalog.entity-filter-expression", {
|
|
117
117
|
optional: true;
|
|
118
|
-
}> | _backstage_frontend_plugin_api.
|
|
118
|
+
}> | _backstage_frontend_plugin_api.ExtensionDataRef<_backstage_plugin_catalog_react_alpha.EntityCardType, "catalog.entity-card-type", {
|
|
119
119
|
optional: true;
|
|
120
120
|
}>;
|
|
121
121
|
inputs: {};
|
|
@@ -136,11 +136,11 @@ declare const _default: _backstage_frontend_plugin_api.FrontendPlugin<{
|
|
|
136
136
|
filter?: _backstage_plugin_catalog_react_alpha.EntityPredicate | undefined;
|
|
137
137
|
type?: "content" | "summary" | "info" | undefined;
|
|
138
138
|
};
|
|
139
|
-
output: _backstage_frontend_plugin_api.
|
|
139
|
+
output: _backstage_frontend_plugin_api.ExtensionDataRef<react.JSX.Element, "core.reactElement", {}> | _backstage_frontend_plugin_api.ExtensionDataRef<(entity: _backstage_catalog_model.Entity) => boolean, "catalog.entity-filter-function", {
|
|
140
140
|
optional: true;
|
|
141
|
-
}> | _backstage_frontend_plugin_api.
|
|
141
|
+
}> | _backstage_frontend_plugin_api.ExtensionDataRef<string, "catalog.entity-filter-expression", {
|
|
142
142
|
optional: true;
|
|
143
|
-
}> | _backstage_frontend_plugin_api.
|
|
143
|
+
}> | _backstage_frontend_plugin_api.ExtensionDataRef<_backstage_plugin_catalog_react_alpha.EntityCardType, "catalog.entity-card-type", {
|
|
144
144
|
optional: true;
|
|
145
145
|
}>;
|
|
146
146
|
inputs: {};
|
|
@@ -161,11 +161,11 @@ declare const _default: _backstage_frontend_plugin_api.FrontendPlugin<{
|
|
|
161
161
|
filter?: _backstage_plugin_catalog_react_alpha.EntityPredicate | undefined;
|
|
162
162
|
type?: "content" | "summary" | "info" | undefined;
|
|
163
163
|
};
|
|
164
|
-
output: _backstage_frontend_plugin_api.
|
|
164
|
+
output: _backstage_frontend_plugin_api.ExtensionDataRef<react.JSX.Element, "core.reactElement", {}> | _backstage_frontend_plugin_api.ExtensionDataRef<(entity: _backstage_catalog_model.Entity) => boolean, "catalog.entity-filter-function", {
|
|
165
165
|
optional: true;
|
|
166
|
-
}> | _backstage_frontend_plugin_api.
|
|
166
|
+
}> | _backstage_frontend_plugin_api.ExtensionDataRef<string, "catalog.entity-filter-expression", {
|
|
167
167
|
optional: true;
|
|
168
|
-
}> | _backstage_frontend_plugin_api.
|
|
168
|
+
}> | _backstage_frontend_plugin_api.ExtensionDataRef<_backstage_plugin_catalog_react_alpha.EntityCardType, "catalog.entity-card-type", {
|
|
169
169
|
optional: true;
|
|
170
170
|
}>;
|
|
171
171
|
inputs: {};
|
|
@@ -186,11 +186,11 @@ declare const _default: _backstage_frontend_plugin_api.FrontendPlugin<{
|
|
|
186
186
|
filter?: _backstage_plugin_catalog_react_alpha.EntityPredicate | undefined;
|
|
187
187
|
type?: "content" | "summary" | "info" | undefined;
|
|
188
188
|
};
|
|
189
|
-
output: _backstage_frontend_plugin_api.
|
|
189
|
+
output: _backstage_frontend_plugin_api.ExtensionDataRef<react.JSX.Element, "core.reactElement", {}> | _backstage_frontend_plugin_api.ExtensionDataRef<(entity: _backstage_catalog_model.Entity) => boolean, "catalog.entity-filter-function", {
|
|
190
190
|
optional: true;
|
|
191
|
-
}> | _backstage_frontend_plugin_api.
|
|
191
|
+
}> | _backstage_frontend_plugin_api.ExtensionDataRef<string, "catalog.entity-filter-expression", {
|
|
192
192
|
optional: true;
|
|
193
|
-
}> | _backstage_frontend_plugin_api.
|
|
193
|
+
}> | _backstage_frontend_plugin_api.ExtensionDataRef<_backstage_plugin_catalog_react_alpha.EntityCardType, "catalog.entity-card-type", {
|
|
194
194
|
optional: true;
|
|
195
195
|
}>;
|
|
196
196
|
inputs: {};
|
|
@@ -215,21 +215,24 @@ declare const _default: _backstage_frontend_plugin_api.FrontendPlugin<{
|
|
|
215
215
|
path?: string | undefined;
|
|
216
216
|
group?: string | false | undefined;
|
|
217
217
|
};
|
|
218
|
-
output: _backstage_frontend_plugin_api.
|
|
218
|
+
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", {
|
|
219
219
|
optional: true;
|
|
220
|
-
}> | _backstage_frontend_plugin_api.
|
|
220
|
+
}> | _backstage_frontend_plugin_api.ExtensionDataRef<(entity: _backstage_catalog_model.Entity) => boolean, "catalog.entity-filter-function", {
|
|
221
221
|
optional: true;
|
|
222
|
-
}> | _backstage_frontend_plugin_api.
|
|
222
|
+
}> | _backstage_frontend_plugin_api.ExtensionDataRef<string, "catalog.entity-filter-expression", {
|
|
223
223
|
optional: true;
|
|
224
|
-
}> | _backstage_frontend_plugin_api.
|
|
224
|
+
}> | _backstage_frontend_plugin_api.ExtensionDataRef<string, "catalog.entity-content-title", {}> | _backstage_frontend_plugin_api.ExtensionDataRef<string, "catalog.entity-content-group", {
|
|
225
225
|
optional: true;
|
|
226
226
|
}>;
|
|
227
227
|
inputs: {};
|
|
228
228
|
params: {
|
|
229
|
+
defaultPath?: [Error: `Use the 'path' param instead`];
|
|
230
|
+
path: string;
|
|
231
|
+
defaultTitle?: [Error: `Use the 'title' param instead`];
|
|
232
|
+
title: string;
|
|
233
|
+
defaultGroup?: [Error: `Use the 'group' param instead`];
|
|
234
|
+
group?: keyof typeof _backstage_plugin_catalog_react_alpha.defaultEntityContentGroups | (string & {});
|
|
229
235
|
loader: () => Promise<JSX.Element>;
|
|
230
|
-
defaultPath: string;
|
|
231
|
-
defaultTitle: string;
|
|
232
|
-
defaultGroup?: keyof typeof _backstage_plugin_catalog_react_alpha.defaultEntityContentGroups | (string & {});
|
|
233
236
|
routeRef?: _backstage_frontend_plugin_api.RouteRef;
|
|
234
237
|
filter?: string | _backstage_plugin_catalog_react_alpha.EntityPredicate | ((entity: _backstage_catalog_model.Entity) => boolean);
|
|
235
238
|
};
|
|
@@ -249,21 +252,24 @@ declare const _default: _backstage_frontend_plugin_api.FrontendPlugin<{
|
|
|
249
252
|
path?: string | undefined;
|
|
250
253
|
group?: string | false | undefined;
|
|
251
254
|
};
|
|
252
|
-
output: _backstage_frontend_plugin_api.
|
|
255
|
+
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", {
|
|
253
256
|
optional: true;
|
|
254
|
-
}> | _backstage_frontend_plugin_api.
|
|
257
|
+
}> | _backstage_frontend_plugin_api.ExtensionDataRef<(entity: _backstage_catalog_model.Entity) => boolean, "catalog.entity-filter-function", {
|
|
255
258
|
optional: true;
|
|
256
|
-
}> | _backstage_frontend_plugin_api.
|
|
259
|
+
}> | _backstage_frontend_plugin_api.ExtensionDataRef<string, "catalog.entity-filter-expression", {
|
|
257
260
|
optional: true;
|
|
258
|
-
}> | _backstage_frontend_plugin_api.
|
|
261
|
+
}> | _backstage_frontend_plugin_api.ExtensionDataRef<string, "catalog.entity-content-title", {}> | _backstage_frontend_plugin_api.ExtensionDataRef<string, "catalog.entity-content-group", {
|
|
259
262
|
optional: true;
|
|
260
263
|
}>;
|
|
261
264
|
inputs: {};
|
|
262
265
|
params: {
|
|
266
|
+
defaultPath?: [Error: `Use the 'path' param instead`];
|
|
267
|
+
path: string;
|
|
268
|
+
defaultTitle?: [Error: `Use the 'title' param instead`];
|
|
269
|
+
title: string;
|
|
270
|
+
defaultGroup?: [Error: `Use the 'group' param instead`];
|
|
271
|
+
group?: keyof typeof _backstage_plugin_catalog_react_alpha.defaultEntityContentGroups | (string & {});
|
|
263
272
|
loader: () => Promise<JSX.Element>;
|
|
264
|
-
defaultPath: string;
|
|
265
|
-
defaultTitle: string;
|
|
266
|
-
defaultGroup?: keyof typeof _backstage_plugin_catalog_react_alpha.defaultEntityContentGroups | (string & {});
|
|
267
273
|
routeRef?: _backstage_frontend_plugin_api.RouteRef;
|
|
268
274
|
filter?: string | _backstage_plugin_catalog_react_alpha.EntityPredicate | ((entity: _backstage_catalog_model.Entity) => boolean);
|
|
269
275
|
};
|
|
@@ -273,7 +279,7 @@ declare const _default: _backstage_frontend_plugin_api.FrontendPlugin<{
|
|
|
273
279
|
name: undefined;
|
|
274
280
|
config: {};
|
|
275
281
|
configInput: {};
|
|
276
|
-
output: _backstage_frontend_plugin_api.
|
|
282
|
+
output: _backstage_frontend_plugin_api.ExtensionDataRef<{
|
|
277
283
|
title: string;
|
|
278
284
|
icon: _backstage_core_plugin_api.IconComponent;
|
|
279
285
|
routeRef: _backstage_frontend_plugin_api.RouteRef<undefined>;
|
|
@@ -296,11 +302,11 @@ declare const _default: _backstage_frontend_plugin_api.FrontendPlugin<{
|
|
|
296
302
|
} & {
|
|
297
303
|
path?: string | undefined;
|
|
298
304
|
};
|
|
299
|
-
output: _backstage_frontend_plugin_api.
|
|
305
|
+
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", {
|
|
300
306
|
optional: true;
|
|
301
307
|
}>;
|
|
302
308
|
inputs: {
|
|
303
|
-
[x: string]: _backstage_frontend_plugin_api.ExtensionInput<_backstage_frontend_plugin_api.
|
|
309
|
+
[x: string]: _backstage_frontend_plugin_api.ExtensionInput<_backstage_frontend_plugin_api.ExtensionDataRef, {
|
|
304
310
|
optional: boolean;
|
|
305
311
|
singleton: boolean;
|
|
306
312
|
}>;
|
|
@@ -308,7 +314,8 @@ declare const _default: _backstage_frontend_plugin_api.FrontendPlugin<{
|
|
|
308
314
|
kind: "page";
|
|
309
315
|
name: undefined;
|
|
310
316
|
params: {
|
|
311
|
-
defaultPath:
|
|
317
|
+
defaultPath?: [Error: `Use the 'path' param instead`];
|
|
318
|
+
path: string;
|
|
312
319
|
loader: () => Promise<JSX.Element>;
|
|
313
320
|
routeRef?: _backstage_frontend_plugin_api.RouteRef;
|
|
314
321
|
};
|
package/dist/alpha.esm.js
CHANGED
|
@@ -23,7 +23,7 @@ const apiDocsNavItem = NavItemBlueprint.make({
|
|
|
23
23
|
});
|
|
24
24
|
const apiDocsConfigApi = ApiBlueprint.make({
|
|
25
25
|
name: "config",
|
|
26
|
-
params: (
|
|
26
|
+
params: (defineParams) => defineParams({
|
|
27
27
|
api: apiDocsConfigRef,
|
|
28
28
|
deps: {},
|
|
29
29
|
factory: () => {
|
|
@@ -45,7 +45,7 @@ const apiDocsExplorerPage = PageBlueprint.makeWithOverrides({
|
|
|
45
45
|
},
|
|
46
46
|
factory(originalFactory, { config }) {
|
|
47
47
|
return originalFactory({
|
|
48
|
-
|
|
48
|
+
path: "/api-docs",
|
|
49
49
|
routeRef: convertLegacyRouteRef(rootRoute),
|
|
50
50
|
loader: () => import('./components/ApiExplorerPage/index.esm.js').then(
|
|
51
51
|
(m) => compatWrapper(
|
|
@@ -136,8 +136,8 @@ const apiDocsProvidingComponentsEntityCard = EntityCardBlueprint.make({
|
|
|
136
136
|
const apiDocsDefinitionEntityContent = EntityContentBlueprint.make({
|
|
137
137
|
name: "definition",
|
|
138
138
|
params: {
|
|
139
|
-
|
|
140
|
-
|
|
139
|
+
path: "/definition",
|
|
140
|
+
title: "Definition",
|
|
141
141
|
filter: "kind:api",
|
|
142
142
|
loader: async () => import('./components/ApiDefinitionCard/index.esm.js').then(
|
|
143
143
|
(m) => compatWrapper(
|
|
@@ -149,8 +149,8 @@ const apiDocsDefinitionEntityContent = EntityContentBlueprint.make({
|
|
|
149
149
|
const apiDocsApisEntityContent = EntityContentBlueprint.make({
|
|
150
150
|
name: "apis",
|
|
151
151
|
params: {
|
|
152
|
-
|
|
153
|
-
|
|
152
|
+
path: "/apis",
|
|
153
|
+
title: "APIs",
|
|
154
154
|
filter: "kind:component",
|
|
155
155
|
loader: async () => import('./components/ApisCards/index.esm.js').then(
|
|
156
156
|
(m) => compatWrapper(
|
package/dist/alpha.esm.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"alpha.esm.js","sources":["../src/alpha.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 Grid from '@material-ui/core/Grid';\n\nimport {\n ApiBlueprint,\n NavItemBlueprint,\n PageBlueprint,\n createFrontendPlugin,\n} from '@backstage/frontend-plugin-api';\n\nimport {\n compatWrapper,\n convertLegacyRouteRef,\n} from '@backstage/core-compat-api';\n\nimport {\n ApiEntity,\n parseEntityRef,\n RELATION_HAS_PART,\n} from '@backstage/catalog-model';\n\nimport { defaultDefinitionWidgets } from './components/ApiDefinitionCard';\nimport { rootRoute, registerComponentRouteRef } from './routes';\nimport { apiDocsConfigRef } from './config';\nimport { AppIcon } from '@backstage/core-components';\n\nimport {\n EntityCardBlueprint,\n EntityContentBlueprint,\n} from '@backstage/plugin-catalog-react/alpha';\n\nconst apiDocsNavItem = NavItemBlueprint.make({\n params: {\n title: 'APIs',\n routeRef: convertLegacyRouteRef(rootRoute),\n icon: () => compatWrapper(<AppIcon id=\"kind:api\" />),\n },\n});\n\nconst apiDocsConfigApi = ApiBlueprint.make({\n name: 'config',\n params: define =>\n define({\n api: apiDocsConfigRef,\n deps: {},\n factory: () => {\n const definitionWidgets = defaultDefinitionWidgets();\n return {\n getApiDefinitionWidget: (apiEntity: ApiEntity) => {\n return definitionWidgets.find(d => d.type === apiEntity.spec.type);\n },\n };\n },\n }),\n});\n\nconst apiDocsExplorerPage = PageBlueprint.makeWithOverrides({\n config: {\n schema: {\n // Omitting columns and actions for now as their types are too complex to map to zod\n initiallySelectedFilter: z =>\n z.enum(['owned', 'starred', 'all']).optional(),\n },\n },\n factory(originalFactory, { config }) {\n return originalFactory({\n defaultPath: '/api-docs',\n routeRef: convertLegacyRouteRef(rootRoute),\n loader: () =>\n import('./components/ApiExplorerPage').then(m =>\n compatWrapper(\n <m.ApiExplorerIndexPage\n initiallySelectedFilter={config.initiallySelectedFilter}\n />,\n ),\n ),\n });\n },\n});\n\nconst apiDocsHasApisEntityCard = EntityCardBlueprint.make({\n name: 'has-apis',\n params: {\n // Omitting configSchema for now\n // We are skipping variants and columns are too complex to map to zod\n // See: https://github.com/backstage/backstage/pull/22619#discussion_r1477333252\n filter: entity => {\n return (\n entity.kind === 'Component' &&\n entity.relations?.some(\n ({ type, targetRef }) =>\n type.toLocaleLowerCase('en-US') === RELATION_HAS_PART &&\n parseEntityRef(targetRef).kind === 'API',\n )!!\n );\n },\n loader: () =>\n import('./components/ApisCards').then(m =>\n compatWrapper(<m.HasApisCard />),\n ),\n },\n});\n\nconst apiDocsDefinitionEntityCard = EntityCardBlueprint.make({\n name: 'definition',\n params: {\n filter: 'kind:api',\n loader: () =>\n import('./components/ApiDefinitionCard').then(m =>\n compatWrapper(<m.ApiDefinitionCard />),\n ),\n },\n});\n\nconst apiDocsConsumedApisEntityCard = EntityCardBlueprint.make({\n name: 'consumed-apis',\n params: {\n // Omitting configSchema for now\n // We are skipping variants and columns are too complex to map to zod\n // See: https://github.com/backstage/backstage/pull/22619#discussion_r1477333252\n filter: 'kind:component',\n loader: () =>\n import('./components/ApisCards').then(m =>\n compatWrapper(<m.ConsumedApisCard />),\n ),\n },\n});\n\nconst apiDocsProvidedApisEntityCard = EntityCardBlueprint.make({\n name: 'provided-apis',\n params: {\n // Omitting configSchema for now\n // We are skipping variants and columns are too complex to map to zod\n // See: https://github.com/backstage/backstage/pull/22619#discussion_r1477333252\n filter: 'kind:component',\n loader: () =>\n import('./components/ApisCards').then(m =>\n compatWrapper(<m.ProvidedApisCard />),\n ),\n },\n});\n\nconst apiDocsConsumingComponentsEntityCard = EntityCardBlueprint.make({\n name: 'consuming-components',\n params: {\n // Omitting configSchema for now\n // We are skipping variants\n // See: https://github.com/backstage/backstage/pull/22619#discussion_r1477333252\n filter: 'kind:api',\n loader: () =>\n import('./components/ComponentsCards').then(m =>\n compatWrapper(<m.ConsumingComponentsCard />),\n ),\n },\n});\n\nconst apiDocsProvidingComponentsEntityCard = EntityCardBlueprint.make({\n name: 'providing-components',\n params: {\n // Omitting configSchema for now\n // We are skipping variants\n // See: https://github.com/backstage/backstage/pull/22619#discussion_r1477333252\n filter: 'kind:api',\n loader: () =>\n import('./components/ComponentsCards').then(m =>\n compatWrapper(<m.ProvidingComponentsCard />),\n ),\n },\n});\n\nconst apiDocsDefinitionEntityContent = EntityContentBlueprint.make({\n name: 'definition',\n params: {\n defaultPath: '/definition',\n defaultTitle: 'Definition',\n filter: 'kind:api',\n loader: async () =>\n import('./components/ApiDefinitionCard').then(m =>\n compatWrapper(\n <Grid container spacing={3}>\n <Grid item xs={12}>\n <m.ApiDefinitionCard />\n </Grid>\n </Grid>,\n ),\n ),\n },\n});\n\nconst apiDocsApisEntityContent = EntityContentBlueprint.make({\n name: 'apis',\n params: {\n defaultPath: '/apis',\n defaultTitle: 'APIs',\n filter: 'kind:component',\n loader: async () =>\n import('./components/ApisCards').then(m =>\n compatWrapper(\n <Grid container spacing={3} alignItems=\"stretch\">\n <Grid item xs={12}>\n <m.ProvidedApisCard />\n </Grid>\n <Grid item xs={12}>\n <m.ConsumedApisCard />\n </Grid>\n </Grid>,\n ),\n ),\n },\n});\n\nexport default createFrontendPlugin({\n pluginId: 'api-docs',\n info: { packageJson: () => import('../package.json') },\n routes: {\n root: convertLegacyRouteRef(rootRoute),\n },\n externalRoutes: {\n registerApi: convertLegacyRouteRef(registerComponentRouteRef),\n },\n extensions: [\n apiDocsNavItem,\n apiDocsConfigApi,\n apiDocsExplorerPage,\n apiDocsHasApisEntityCard,\n apiDocsDefinitionEntityCard,\n apiDocsProvidedApisEntityCard,\n apiDocsConsumedApisEntityCard,\n apiDocsConsumingComponentsEntityCard,\n apiDocsProvidingComponentsEntityCard,\n apiDocsDefinitionEntityContent,\n apiDocsApisEntityContent,\n ],\n});\n\nexport { apiDocsTranslationRef } from './translation';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;AA8CA,MAAM,cAAA,GAAiB,iBAAiB,IAAK,CAAA;AAAA,EAC3C,MAAQ,EAAA;AAAA,IACN,KAAO,EAAA,MAAA;AAAA,IACP,QAA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EACA,cAAgB,EAAA;AAAA,IACd,WAAA,EAAa,sBAAsB,yBAAyB;AAAA,GAC9D;AAAA,EACA,UAAY,EAAA;AAAA,IACV,cAAA;AAAA,IACA,gBAAA;AAAA,IACA,mBAAA;AAAA,IACA,wBAAA;AAAA,IACA,2BAAA;AAAA,IACA,6BAAA;AAAA,IACA,6BAAA;AAAA,IACA,oCAAA;AAAA,IACA,oCAAA;AAAA,IACA,8BAAA;AAAA,IACA;AAAA;AAEJ,CAAC,CAAA;;;;"}
|
|
1
|
+
{"version":3,"file":"alpha.esm.js","sources":["../src/alpha.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 Grid from '@material-ui/core/Grid';\n\nimport {\n ApiBlueprint,\n NavItemBlueprint,\n PageBlueprint,\n createFrontendPlugin,\n} from '@backstage/frontend-plugin-api';\n\nimport {\n compatWrapper,\n convertLegacyRouteRef,\n} from '@backstage/core-compat-api';\n\nimport {\n ApiEntity,\n parseEntityRef,\n RELATION_HAS_PART,\n} from '@backstage/catalog-model';\n\nimport { defaultDefinitionWidgets } from './components/ApiDefinitionCard';\nimport { rootRoute, registerComponentRouteRef } from './routes';\nimport { apiDocsConfigRef } from './config';\nimport { AppIcon } from '@backstage/core-components';\n\nimport {\n EntityCardBlueprint,\n EntityContentBlueprint,\n} from '@backstage/plugin-catalog-react/alpha';\n\nconst apiDocsNavItem = NavItemBlueprint.make({\n params: {\n title: 'APIs',\n routeRef: convertLegacyRouteRef(rootRoute),\n icon: () => compatWrapper(<AppIcon id=\"kind:api\" />),\n },\n});\n\nconst apiDocsConfigApi = ApiBlueprint.make({\n name: 'config',\n params: defineParams =>\n defineParams({\n api: apiDocsConfigRef,\n deps: {},\n factory: () => {\n const definitionWidgets = defaultDefinitionWidgets();\n return {\n getApiDefinitionWidget: (apiEntity: ApiEntity) => {\n return definitionWidgets.find(d => d.type === apiEntity.spec.type);\n },\n };\n },\n }),\n});\n\nconst apiDocsExplorerPage = PageBlueprint.makeWithOverrides({\n config: {\n schema: {\n // Omitting columns and actions for now as their types are too complex to map to zod\n initiallySelectedFilter: z =>\n z.enum(['owned', 'starred', 'all']).optional(),\n },\n },\n factory(originalFactory, { config }) {\n return originalFactory({\n path: '/api-docs',\n routeRef: convertLegacyRouteRef(rootRoute),\n loader: () =>\n import('./components/ApiExplorerPage').then(m =>\n compatWrapper(\n <m.ApiExplorerIndexPage\n initiallySelectedFilter={config.initiallySelectedFilter}\n />,\n ),\n ),\n });\n },\n});\n\nconst apiDocsHasApisEntityCard = EntityCardBlueprint.make({\n name: 'has-apis',\n params: {\n // Omitting configSchema for now\n // We are skipping variants and columns are too complex to map to zod\n // See: https://github.com/backstage/backstage/pull/22619#discussion_r1477333252\n filter: entity => {\n return (\n entity.kind === 'Component' &&\n entity.relations?.some(\n ({ type, targetRef }) =>\n type.toLocaleLowerCase('en-US') === RELATION_HAS_PART &&\n parseEntityRef(targetRef).kind === 'API',\n )!!\n );\n },\n loader: () =>\n import('./components/ApisCards').then(m =>\n compatWrapper(<m.HasApisCard />),\n ),\n },\n});\n\nconst apiDocsDefinitionEntityCard = EntityCardBlueprint.make({\n name: 'definition',\n params: {\n filter: 'kind:api',\n loader: () =>\n import('./components/ApiDefinitionCard').then(m =>\n compatWrapper(<m.ApiDefinitionCard />),\n ),\n },\n});\n\nconst apiDocsConsumedApisEntityCard = EntityCardBlueprint.make({\n name: 'consumed-apis',\n params: {\n // Omitting configSchema for now\n // We are skipping variants and columns are too complex to map to zod\n // See: https://github.com/backstage/backstage/pull/22619#discussion_r1477333252\n filter: 'kind:component',\n loader: () =>\n import('./components/ApisCards').then(m =>\n compatWrapper(<m.ConsumedApisCard />),\n ),\n },\n});\n\nconst apiDocsProvidedApisEntityCard = EntityCardBlueprint.make({\n name: 'provided-apis',\n params: {\n // Omitting configSchema for now\n // We are skipping variants and columns are too complex to map to zod\n // See: https://github.com/backstage/backstage/pull/22619#discussion_r1477333252\n filter: 'kind:component',\n loader: () =>\n import('./components/ApisCards').then(m =>\n compatWrapper(<m.ProvidedApisCard />),\n ),\n },\n});\n\nconst apiDocsConsumingComponentsEntityCard = EntityCardBlueprint.make({\n name: 'consuming-components',\n params: {\n // Omitting configSchema for now\n // We are skipping variants\n // See: https://github.com/backstage/backstage/pull/22619#discussion_r1477333252\n filter: 'kind:api',\n loader: () =>\n import('./components/ComponentsCards').then(m =>\n compatWrapper(<m.ConsumingComponentsCard />),\n ),\n },\n});\n\nconst apiDocsProvidingComponentsEntityCard = EntityCardBlueprint.make({\n name: 'providing-components',\n params: {\n // Omitting configSchema for now\n // We are skipping variants\n // See: https://github.com/backstage/backstage/pull/22619#discussion_r1477333252\n filter: 'kind:api',\n loader: () =>\n import('./components/ComponentsCards').then(m =>\n compatWrapper(<m.ProvidingComponentsCard />),\n ),\n },\n});\n\nconst apiDocsDefinitionEntityContent = EntityContentBlueprint.make({\n name: 'definition',\n params: {\n path: '/definition',\n title: 'Definition',\n filter: 'kind:api',\n loader: async () =>\n import('./components/ApiDefinitionCard').then(m =>\n compatWrapper(\n <Grid container spacing={3}>\n <Grid item xs={12}>\n <m.ApiDefinitionCard />\n </Grid>\n </Grid>,\n ),\n ),\n },\n});\n\nconst apiDocsApisEntityContent = EntityContentBlueprint.make({\n name: 'apis',\n params: {\n path: '/apis',\n title: 'APIs',\n filter: 'kind:component',\n loader: async () =>\n import('./components/ApisCards').then(m =>\n compatWrapper(\n <Grid container spacing={3} alignItems=\"stretch\">\n <Grid item xs={12}>\n <m.ProvidedApisCard />\n </Grid>\n <Grid item xs={12}>\n <m.ConsumedApisCard />\n </Grid>\n </Grid>,\n ),\n ),\n },\n});\n\nexport default createFrontendPlugin({\n pluginId: 'api-docs',\n info: { packageJson: () => import('../package.json') },\n routes: {\n root: convertLegacyRouteRef(rootRoute),\n },\n externalRoutes: {\n registerApi: convertLegacyRouteRef(registerComponentRouteRef),\n },\n extensions: [\n apiDocsNavItem,\n apiDocsConfigApi,\n apiDocsExplorerPage,\n apiDocsHasApisEntityCard,\n apiDocsDefinitionEntityCard,\n apiDocsProvidedApisEntityCard,\n apiDocsConsumedApisEntityCard,\n apiDocsConsumingComponentsEntityCard,\n apiDocsProvidingComponentsEntityCard,\n apiDocsDefinitionEntityContent,\n apiDocsApisEntityContent,\n ],\n});\n\nexport { apiDocsTranslationRef } from './translation';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;AA8CA,MAAM,cAAA,GAAiB,iBAAiB,IAAK,CAAA;AAAA,EAC3C,MAAQ,EAAA;AAAA,IACN,KAAO,EAAA,MAAA;AAAA,IACP,QAAA,EAAU,sBAAsB,SAAS,CAAA;AAAA,IACzC,MAAM,MAAM,aAAA,qBAAe,OAAQ,EAAA,EAAA,EAAA,EAAG,YAAW,CAAE;AAAA;AAEvD,CAAC,CAAA;AAED,MAAM,gBAAA,GAAmB,aAAa,IAAK,CAAA;AAAA,EACzC,IAAM,EAAA,QAAA;AAAA,EACN,MAAA,EAAQ,kBACN,YAAa,CAAA;AAAA,IACX,GAAK,EAAA,gBAAA;AAAA,IACL,MAAM,EAAC;AAAA,IACP,SAAS,MAAM;AACb,MAAA,MAAM,oBAAoB,wBAAyB,EAAA;AACnD,MAAO,OAAA;AAAA,QACL,sBAAA,EAAwB,CAAC,SAAyB,KAAA;AAChD,UAAA,OAAO,kBAAkB,IAAK,CAAA,CAAA,CAAA,KAAK,EAAE,IAAS,KAAA,SAAA,CAAU,KAAK,IAAI,CAAA;AAAA;AACnE,OACF;AAAA;AACF,GACD;AACL,CAAC,CAAA;AAED,MAAM,mBAAA,GAAsB,cAAc,iBAAkB,CAAA;AAAA,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A,EAAG,YAAW,SACrC,EAAA,QAAA,EAAA;AAAA,0BAAC,GAAA,CAAA,IAAA,EAAA,EAAK,MAAI,IAAC,EAAA,EAAA,EAAI,IACb,QAAC,kBAAA,GAAA,CAAA,CAAA,CAAE,gBAAF,EAAA,EAAmB,CACtB,EAAA,CAAA;AAAA,0BACA,GAAA,CAAC,IAAK,EAAA,EAAA,IAAA,EAAI,IAAC,EAAA,EAAA,EAAI,IACb,QAAC,kBAAA,GAAA,CAAA,CAAA,CAAE,gBAAF,EAAA,EAAmB,CACtB,EAAA;AAAA,SACF,EAAA;AAAA;AACF;AACF;AAEN,CAAC,CAAA;AAED,YAAe,oBAAqB,CAAA;AAAA,EAClC,QAAU,EAAA,UAAA;AAAA,EACV,MAAM,EAAE,WAAA,EAAa,MAAM,OAAO,uBAAiB,CAAE,EAAA;AAAA,EACrD,MAAQ,EAAA;AAAA,IACN,IAAA,EAAM,sBAAsB,SAAS;AAAA,GACvC;AAAA,EACA,cAAgB,EAAA;AAAA,IACd,WAAA,EAAa,sBAAsB,yBAAyB;AAAA,GAC9D;AAAA,EACA,UAAY,EAAA;AAAA,IACV,cAAA;AAAA,IACA,gBAAA;AAAA,IACA,mBAAA;AAAA,IACA,wBAAA;AAAA,IACA,2BAAA;AAAA,IACA,6BAAA;AAAA,IACA,6BAAA;AAAA,IACA,oCAAA;AAAA,IACA,oCAAA;AAAA,IACA,8BAAA;AAAA,IACA;AAAA;AAEJ,CAAC,CAAA;;;;"}
|
package/dist/package.json.esm.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@backstage/plugin-api-docs",
|
|
3
|
-
"version": "0.12.10-next.
|
|
3
|
+
"version": "0.12.10-next.2",
|
|
4
4
|
"description": "A Backstage plugin that helps represent API entities in the frontend",
|
|
5
5
|
"backstage": {
|
|
6
6
|
"role": "frontend-plugin",
|
|
@@ -67,13 +67,13 @@
|
|
|
67
67
|
"dependencies": {
|
|
68
68
|
"@asyncapi/react-component": "^2.3.3",
|
|
69
69
|
"@backstage/catalog-model": "1.7.5",
|
|
70
|
-
"@backstage/core-compat-api": "0.
|
|
71
|
-
"@backstage/core-components": "0.17.5-next.
|
|
70
|
+
"@backstage/core-compat-api": "0.5.0-next.2",
|
|
71
|
+
"@backstage/core-components": "0.17.5-next.1",
|
|
72
72
|
"@backstage/core-plugin-api": "1.10.9",
|
|
73
|
-
"@backstage/frontend-plugin-api": "0.11.0-next.
|
|
74
|
-
"@backstage/plugin-catalog": "1.31.2-next.
|
|
73
|
+
"@backstage/frontend-plugin-api": "0.11.0-next.1",
|
|
74
|
+
"@backstage/plugin-catalog": "1.31.2-next.2",
|
|
75
75
|
"@backstage/plugin-catalog-common": "1.1.5",
|
|
76
|
-
"@backstage/plugin-catalog-react": "1.20.0-next.
|
|
76
|
+
"@backstage/plugin-catalog-react": "1.20.0-next.2",
|
|
77
77
|
"@backstage/plugin-permission-react": "0.4.36",
|
|
78
78
|
"@graphiql/react": "^0.23.0",
|
|
79
79
|
"@material-ui/core": "^4.12.2",
|
|
@@ -87,7 +87,7 @@
|
|
|
87
87
|
"swagger-ui-react": "^5.0.0"
|
|
88
88
|
},
|
|
89
89
|
"devDependencies": {
|
|
90
|
-
"@backstage/cli": "0.
|
|
90
|
+
"@backstage/cli": "0.34.0-next.1",
|
|
91
91
|
"@backstage/core-app-api": "1.18.0",
|
|
92
92
|
"@backstage/dev-utils": "1.1.13-next.1",
|
|
93
93
|
"@backstage/test-utils": "1.7.11-next.0",
|