@backstage/plugin-api-docs 0.6.20 → 0.7.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,74 @@
1
1
  # @backstage/plugin-api-docs
2
2
 
3
+ ## 0.7.0
4
+
5
+ ### Minor Changes
6
+
7
+ - b3831be2fe: Renamed the `createComponent` external route to `registerApi` since it's now recommended to link to the entity registration page rather than the creation page.
8
+
9
+ ### Patch Changes
10
+
11
+ - 306d879536: chore(deps): bump `react-syntax-highligher` and `swagger-ui-react`
12
+ - c007bea546: Export `GraphQlDefinitionWidget` to be reused.
13
+ - cd4e3c4d4e: Using an explicitly empty string for the url argument ensures that the swagger UI does not run into undefined errors.
14
+ - 0c0d8a47e7: Bump @asyncapi/react-component for CVE
15
+
16
+ [CVE-2022-21680](https://github.com/advisories/GHSA-rrrm-qjm4-v8hf) and [CVE-2022-21681](https://github.com/advisories/GHSA-5v2h-r2cx-5xgj)
17
+
18
+ See https://github.com/asyncapi/asyncapi-react/pull/522
19
+
20
+ - Updated dependencies
21
+ - @backstage/core-components@0.8.5
22
+ - @backstage/core-plugin-api@0.6.0
23
+ - @backstage/plugin-catalog@0.7.9
24
+ - @backstage/plugin-catalog-react@0.6.12
25
+ - @backstage/catalog-model@0.9.10
26
+
27
+ ## 0.6.23-next.0
28
+
29
+ ### Patch Changes
30
+
31
+ - 306d879536: chore(deps): bump `react-syntax-highligher` and `swagger-ui-react`
32
+ - c007bea546: Export `GraphQlDefinitionWidget` to be reused.
33
+ - cd4e3c4d4e: Using an explicitly empty string for the url argument ensures that the swagger UI does not run into undefined errors.
34
+ - Updated dependencies
35
+ - @backstage/core-components@0.8.5-next.0
36
+ - @backstage/core-plugin-api@0.6.0-next.0
37
+ - @backstage/plugin-catalog@0.7.9-next.0
38
+ - @backstage/plugin-catalog-react@0.6.12-next.0
39
+ - @backstage/catalog-model@0.9.10-next.0
40
+
41
+ ## 0.6.22
42
+
43
+ ### Patch Changes
44
+
45
+ - faf844e269: Update @asyncapi/react-component to 1.0.0-next.26, which will fix the
46
+ `ResizeObserver loop limit exceeded` errors which we encountered in several E2E
47
+ tests.
48
+
49
+ For more details check the following links:
50
+
51
+ - https://github.com/backstage/backstage/pull/8088#issuecomment-991183968
52
+ - https://github.com/asyncapi/asyncapi-react/issues/498
53
+
54
+ - Updated dependencies
55
+ - @backstage/core-components@0.8.4
56
+ - @backstage/core-plugin-api@0.5.0
57
+ - @backstage/plugin-catalog-react@0.6.11
58
+ - @backstage/catalog-model@0.9.9
59
+ - @backstage/plugin-catalog@0.7.8
60
+
61
+ ## 0.6.21
62
+
63
+ ### Patch Changes
64
+
65
+ - 11b81683a9: Support customizing index page layouts via outlets
66
+ - Updated dependencies
67
+ - @backstage/core-plugin-api@0.4.1
68
+ - @backstage/plugin-catalog-react@0.6.10
69
+ - @backstage/core-components@0.8.3
70
+ - @backstage/plugin-catalog@0.7.7
71
+
3
72
  ## 0.6.20
4
73
 
5
74
  ### Patch Changes
@@ -123,9 +123,10 @@ const OpenApiDefinition = ({ definition }) => {
123
123
  className: classes.root
124
124
  }, /* @__PURE__ */ React.createElement(SwaggerUI, {
125
125
  spec: def,
126
+ url: "",
126
127
  deepLinking: true
127
128
  }));
128
129
  };
129
130
 
130
131
  export { OpenApiDefinition };
131
- //# sourceMappingURL=OpenApiDefinition-48ae3040.esm.js.map
132
+ //# sourceMappingURL=OpenApiDefinition-3c1031f2.esm.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"OpenApiDefinition-48ae3040.esm.js","sources":["../../src/components/OpenApiDefinitionWidget/OpenApiDefinition.tsx"],"sourcesContent":["/*\n * Copyright 2020 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 { makeStyles } from '@material-ui/core/styles';\nimport React, { useEffect, useState } from 'react';\nimport SwaggerUI from 'swagger-ui-react';\nimport 'swagger-ui-react/swagger-ui.css';\n\nconst useStyles = makeStyles(theme => ({\n root: {\n '& .swagger-ui': {\n fontFamily: theme.typography.fontFamily,\n color: theme.palette.text.primary,\n\n [`& .scheme-container`]: {\n backgroundColor: theme.palette.background.default,\n },\n [`& .opblock-tag,\n .opblock-tag small,\n table thead tr td,\n table thead tr th`]: {\n fontFamily: theme.typography.fontFamily,\n color: theme.palette.text.primary,\n borderColor: theme.palette.divider,\n },\n [`& section.models,\n section.models.is-open h4`]: {\n borderColor: theme.palette.divider,\n },\n [`& .model-title,\n .model .renderedMarkdown,\n .model .description`]: {\n fontFamily: theme.typography.fontFamily,\n fontWeight: theme.typography.fontWeightRegular,\n },\n [`& h1, h2, h3, h4, h5, h6,\n .errors h4, .error h4, .opblock h4, section.models h4,\n .response-control-media-type__accept-message,\n .opblock-summary-description,\n .opblock-summary-operation-id,\n .opblock-summary-path,\n .opblock-summary-path__deprecated,\n .opblock-external-docs-wrapper,\n .opblock-section-header .btn,\n .opblock-section-header>label,\n .scheme-container .schemes>label,a.nostyle,\n .parameter__name,\n .response-col_status,\n .response-col_links,\n .error .btn,\n .info .title,\n .info .base-url`]: {\n fontFamily: theme.typography.fontFamily,\n color: theme.palette.text.primary,\n },\n [`& .opblock .opblock-section-header, \n .model-box,\n section.models .model-container`]: {\n background: theme.palette.background.default,\n },\n [`& .prop-format,\n .parameter__in`]: {\n color: theme.palette.text.disabled,\n },\n [`& table.model, \n .parameter__type,\n .model.model-title,\n .model-title,\n .model span,\n .model .brace-open,\n .model .brace-close,\n .model .property.primitive,\n .model .renderedMarkdown,\n .model .description,\n .errors small`]: {\n color: theme.palette.text.secondary,\n },\n [`& .parameter__name.required:after`]: {\n color: theme.palette.warning.dark,\n },\n [`& table.model, \n table.model .model,\n .opblock-external-docs-wrapper`]: {\n fontSize: theme.typography.fontSize,\n },\n [`& table.headers td`]: {\n color: theme.palette.text.primary,\n fontWeight: theme.typography.fontWeightRegular,\n },\n [`& .model-hint`]: {\n color: theme.palette.text.hint,\n backgroundColor: theme.palette.background.paper,\n },\n [`& .opblock-summary-method, \n .info a`]: {\n fontFamily: theme.typography.fontFamily,\n },\n [`& .info, .opblock, .tab`]: {\n [`& li, p`]: {\n fontFamily: theme.typography.fontFamily,\n color: theme.palette.text.primary,\n },\n },\n [`& a`]: {\n color: theme.palette.primary.main,\n },\n [`& .renderedMarkdown code`]: {\n color: theme.palette.secondary.light,\n },\n [`& .property-row td:first-child`]: {\n color: theme.palette.text.primary,\n },\n [`& span.prop-type`]: {\n color: theme.palette.success.light,\n },\n },\n },\n}));\n\nexport type OpenApiDefinitionProps = {\n definition: string;\n};\n\nexport const OpenApiDefinition = ({ definition }: OpenApiDefinitionProps) => {\n const classes = useStyles();\n\n // Due to a bug in the swagger-ui-react component, the component needs\n // to be created without content first.\n const [def, setDef] = useState('');\n\n useEffect(() => {\n const timer = setTimeout(() => setDef(definition), 0);\n return () => clearTimeout(timer);\n }, [definition, setDef]);\n\n return (\n <div className={classes.root}>\n <SwaggerUI spec={def} deepLinking />\n </div>\n );\n};\n"],"names":[],"mappings":";;;;;AAqBA,MAAM,YAAY,WAAW;AAAU,EACrC,MAAM;AAAA,IACJ,iBAAiB;AAAA,MACf,YAAY,MAAM,WAAW;AAAA,MAC7B,OAAO,MAAM,QAAQ,KAAK;AAAA,OAEzB,wBAAwB;AAAA,QACvB,iBAAiB,MAAM,QAAQ,WAAW;AAAA;AAAA,OAE3C;AAAA;AAAA;AAAA,+BAGwB;AAAA,QACvB,YAAY,MAAM,WAAW;AAAA,QAC7B,OAAO,MAAM,QAAQ,KAAK;AAAA,QAC1B,aAAa,MAAM,QAAQ;AAAA;AAAA,OAE5B;AAAA,uCACgC;AAAA,QA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,UAAU;AAAA;AAAA,OAEhC,mCAAmC;AAAA,QAClC,OAAO,MAAM,QAAQ,KAAK;AAAA;AAAA,OAE3B,qBAAqB;AAAA,QACpB,OAAO,MAAM,QAAQ,QAAQ;AAAA;AAAA;AAAA;AAAA;MAUxB,oBAAoB,CAAC,EAAE,iBAAyC;AAC3E,QAAM,UAAU;AAIhB,QAAM,CAAC,KAAK,UAAU,SAAS;AAE/B,YAAU,MAAM;AACd,UAAM,QAAQ,WAAW,MAAM,OAAO,aAAa;AACnD,WAAO,MAAM,aAAa;AAAA,KACzB,CAAC,YAAY;AAEhB,6CACG,OAAD;AAAA,IAAK,WAAW,QAAQ;AAAA,yCACrB,WAAD;AAAA,IAAW,MAAM;AAAA,IAAK,aAAW;AAAA;AAAA;;;;"}
1
+ {"version":3,"file":"OpenApiDefinition-3c1031f2.esm.js","sources":["../../src/components/OpenApiDefinitionWidget/OpenApiDefinition.tsx"],"sourcesContent":["/*\n * Copyright 2020 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 { makeStyles } from '@material-ui/core/styles';\nimport React, { useEffect, useState } from 'react';\nimport SwaggerUI from 'swagger-ui-react';\nimport 'swagger-ui-react/swagger-ui.css';\n\nconst useStyles = makeStyles(theme => ({\n root: {\n '& .swagger-ui': {\n fontFamily: theme.typography.fontFamily,\n color: theme.palette.text.primary,\n\n [`& .scheme-container`]: {\n backgroundColor: theme.palette.background.default,\n },\n [`& .opblock-tag,\n .opblock-tag small,\n table thead tr td,\n table thead tr th`]: {\n fontFamily: theme.typography.fontFamily,\n color: theme.palette.text.primary,\n borderColor: theme.palette.divider,\n },\n [`& section.models,\n section.models.is-open h4`]: {\n borderColor: theme.palette.divider,\n },\n [`& .model-title,\n .model .renderedMarkdown,\n .model .description`]: {\n fontFamily: theme.typography.fontFamily,\n fontWeight: theme.typography.fontWeightRegular,\n },\n [`& h1, h2, h3, h4, h5, h6,\n .errors h4, .error h4, .opblock h4, section.models h4,\n .response-control-media-type__accept-message,\n .opblock-summary-description,\n .opblock-summary-operation-id,\n .opblock-summary-path,\n .opblock-summary-path__deprecated,\n .opblock-external-docs-wrapper,\n .opblock-section-header .btn,\n .opblock-section-header>label,\n .scheme-container .schemes>label,a.nostyle,\n .parameter__name,\n .response-col_status,\n .response-col_links,\n .error .btn,\n .info .title,\n .info .base-url`]: {\n fontFamily: theme.typography.fontFamily,\n color: theme.palette.text.primary,\n },\n [`& .opblock .opblock-section-header, \n .model-box,\n section.models .model-container`]: {\n background: theme.palette.background.default,\n },\n [`& .prop-format,\n .parameter__in`]: {\n color: theme.palette.text.disabled,\n },\n [`& table.model, \n .parameter__type,\n .model.model-title,\n .model-title,\n .model span,\n .model .brace-open,\n .model .brace-close,\n .model .property.primitive,\n .model .renderedMarkdown,\n .model .description,\n .errors small`]: {\n color: theme.palette.text.secondary,\n },\n [`& .parameter__name.required:after`]: {\n color: theme.palette.warning.dark,\n },\n [`& table.model, \n table.model .model,\n .opblock-external-docs-wrapper`]: {\n fontSize: theme.typography.fontSize,\n },\n [`& table.headers td`]: {\n color: theme.palette.text.primary,\n fontWeight: theme.typography.fontWeightRegular,\n },\n [`& .model-hint`]: {\n color: theme.palette.text.hint,\n backgroundColor: theme.palette.background.paper,\n },\n [`& .opblock-summary-method, \n .info a`]: {\n fontFamily: theme.typography.fontFamily,\n },\n [`& .info, .opblock, .tab`]: {\n [`& li, p`]: {\n fontFamily: theme.typography.fontFamily,\n color: theme.palette.text.primary,\n },\n },\n [`& a`]: {\n color: theme.palette.primary.main,\n },\n [`& .renderedMarkdown code`]: {\n color: theme.palette.secondary.light,\n },\n [`& .property-row td:first-child`]: {\n color: theme.palette.text.primary,\n },\n [`& span.prop-type`]: {\n color: theme.palette.success.light,\n },\n },\n },\n}));\n\nexport type OpenApiDefinitionProps = {\n definition: string;\n};\n\nexport const OpenApiDefinition = ({ definition }: OpenApiDefinitionProps) => {\n const classes = useStyles();\n\n // Due to a bug in the swagger-ui-react component, the component needs\n // to be created without content first.\n const [def, setDef] = useState('');\n\n useEffect(() => {\n const timer = setTimeout(() => setDef(definition), 0);\n return () => clearTimeout(timer);\n }, [definition, setDef]);\n\n return (\n <div className={classes.root}>\n <SwaggerUI spec={def} url=\"\" deepLinking />\n </div>\n );\n};\n"],"names":[],"mappings":";;;;;AAqBA,MAAM,YAAY,WAAW;AAAU,EACrC,MAAM;AAAA,IACJ,iBAAiB;AAAA,MACf,YAAY,MAAM,WAAW;AAAA,MAC7B,OAAO,MAAM,QAAQ,KAAK;AAAA,OAEzB,wBAAwB;AAAA,QACvB,iBAAiB,MAAM,QAAQ,WAAW;AAAA;AAAA,OAE3C;AAAA;AAAA;AAAA,+BAGwB;AAAA,QACvB,YAAY,MAAM,WAAW;AAAA,QAC7B,OAAO,MAAM,QAAQ,KAAK;AAAA,QAC1B,aAAa,MAAM,QAAQ;AAAA;AAAA,OAE5B;AAAA,uCACgC;AAAA,QAC/B,aAAa,MAAM,QAAQ;AAAA;AAAA,OAE5B;AAAA;AAAA,iCAE0B;AAAA,QACzB,YAAY,MAAM,WAAW;AAAA,QAC7B,YAAY,MAAM,WAAW;AAAA;AAAA,OAE9B;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,6BAgBsB;AAAA,QACrB,YAAY,MAAM,WAAW;AAAA,QAC7B,OAAO,MAAM,QAAQ,KAAK;AAAA;AAAA,OAE3B;AAAA;AAAA,6CAEsC;AAAA,QACrC,YAAY,MAAM,QAAQ,WAAW;AAAA;AAAA,OAEtC;AAAA,4BACqB;AAAA,QACpB,OAA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M;AAAA,IAAK,KAAI;AAAA,IAAG,aAAW;AAAA;AAAA;;;;"}
@@ -1,9 +1,11 @@
1
- export { b as ConsumingComponentsCard, e as ProvidingComponentsCard } from './index-83f082c6.esm.js';
2
- import '@backstage/plugin-catalog-react';
3
- import '@material-ui/lab';
1
+ export { ApiExplorerIndexPage, DefaultApiExplorerPage } from '../index.esm.js';
4
2
  import 'react';
5
- import '@backstage/core-plugin-api';
3
+ import 'react-router';
6
4
  import '@backstage/core-components';
5
+ import '@backstage/core-plugin-api';
6
+ import '@backstage/plugin-catalog';
7
+ import '@backstage/plugin-catalog-react';
8
+ import '@material-ui/lab';
7
9
  import '@backstage/catalog-model';
8
10
  import '@material-ui/core';
9
- //# sourceMappingURL=index-674cfd0b.esm.js.map
11
+ //# sourceMappingURL=index-1dc3ed84.esm.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index-1dc3ed84.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;"}
@@ -1,9 +1,11 @@
1
- export { C as ConsumedApisCard, H as HasApisCard, P as ProvidedApisCard } from './index-83f082c6.esm.js';
2
- import '@backstage/plugin-catalog-react';
3
- import '@material-ui/lab';
1
+ export { ConsumedApisCard, HasApisCard, ProvidedApisCard } from '../index.esm.js';
4
2
  import 'react';
5
- import '@backstage/core-plugin-api';
3
+ import 'react-router';
6
4
  import '@backstage/core-components';
5
+ import '@backstage/core-plugin-api';
6
+ import '@backstage/plugin-catalog';
7
+ import '@backstage/plugin-catalog-react';
8
+ import '@material-ui/lab';
7
9
  import '@backstage/catalog-model';
8
10
  import '@material-ui/core';
9
- //# sourceMappingURL=index-a8bf5768.esm.js.map
11
+ //# sourceMappingURL=index-446e3e5c.esm.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index-446e3e5c.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;"}
@@ -0,0 +1,11 @@
1
+ export { ApiDefinitionCard, ApiTypeTitle, defaultDefinitionWidgets } from '../index.esm.js';
2
+ import 'react';
3
+ import 'react-router';
4
+ import '@backstage/core-components';
5
+ import '@backstage/core-plugin-api';
6
+ import '@backstage/plugin-catalog';
7
+ import '@backstage/plugin-catalog-react';
8
+ import '@material-ui/lab';
9
+ import '@backstage/catalog-model';
10
+ import '@material-ui/core';
11
+ //# sourceMappingURL=index-8a745bfb.esm.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index-8a745bfb.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;"}
@@ -1,9 +1,11 @@
1
- export { A as ApiDefinitionCard, a as ApiTypeTitle, d as defaultDefinitionWidgets } from './index-83f082c6.esm.js';
2
- import '@backstage/plugin-catalog-react';
3
- import '@material-ui/lab';
1
+ export { ConsumingComponentsCard, ProvidingComponentsCard } from '../index.esm.js';
4
2
  import 'react';
5
- import '@backstage/core-plugin-api';
3
+ import 'react-router';
6
4
  import '@backstage/core-components';
5
+ import '@backstage/core-plugin-api';
6
+ import '@backstage/plugin-catalog';
7
+ import '@backstage/plugin-catalog-react';
8
+ import '@material-ui/lab';
7
9
  import '@backstage/catalog-model';
8
10
  import '@material-ui/core';
9
- //# sourceMappingURL=index-00af9be1.esm.js.map
11
+ //# sourceMappingURL=index-d40626b4.esm.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index-d40626b4.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;"}
package/dist/index.d.ts CHANGED
@@ -1,12 +1,32 @@
1
1
  /// <reference types="react" />
2
+ import { TableColumn, TableProps } from '@backstage/core-components';
3
+ import { CatalogTableRow } from '@backstage/plugin-catalog';
4
+ import { UserListFilterKind } from '@backstage/plugin-catalog-react';
2
5
  import * as _backstage_catalog_model from '@backstage/catalog-model';
3
6
  import { ApiEntity, Entity } from '@backstage/catalog-model';
4
7
  import React from 'react';
5
8
  import * as _backstage_core_plugin_api from '@backstage/core-plugin-api';
6
- import * as _material_table_core from '@material-table/core';
7
- import * as _backstage_core_components from '@backstage/core-components';
8
- import * as _backstage_plugin_catalog from '@backstage/plugin-catalog';
9
- import * as _backstage_plugin_catalog_react from '@backstage/plugin-catalog-react';
9
+
10
+ /**
11
+ * DefaultApiExplorerPageProps
12
+ * @public
13
+ */
14
+ declare type DefaultApiExplorerPageProps = {
15
+ initiallySelectedFilter?: UserListFilterKind;
16
+ columns?: TableColumn<CatalogTableRow>[];
17
+ actions?: TableProps<CatalogTableRow>['actions'];
18
+ };
19
+ /**
20
+ * DefaultApiExplorerPage
21
+ * @public
22
+ */
23
+ declare const DefaultApiExplorerPage: ({ initiallySelectedFilter, columns, actions, }: DefaultApiExplorerPageProps) => JSX.Element;
24
+
25
+ /**
26
+ * ApiExplorerPage
27
+ * @public
28
+ */
29
+ declare const ApiExplorerPage$1: (props: DefaultApiExplorerPageProps) => JSX.Element;
10
30
 
11
31
  declare type Props$5 = {
12
32
  /** @deprecated The entity is now grabbed from context instead */
@@ -64,6 +84,11 @@ declare type Props = {
64
84
  };
65
85
  declare const ProvidingComponentsCard: ({ variant }: Props) => JSX.Element;
66
86
 
87
+ declare type GraphQlDefinitionWidgetProps = {
88
+ definition: string;
89
+ };
90
+ declare const GraphQlDefinitionWidget: (props: GraphQlDefinitionWidgetProps) => JSX.Element;
91
+
67
92
  declare type OpenApiDefinitionWidgetProps = {
68
93
  definition: string;
69
94
  };
@@ -83,16 +108,9 @@ interface ApiDocsConfig {
83
108
  declare const apiDocsPlugin: _backstage_core_plugin_api.BackstagePlugin<{
84
109
  root: _backstage_core_plugin_api.RouteRef<undefined>;
85
110
  }, {
86
- createComponent: _backstage_core_plugin_api.ExternalRouteRef<undefined, true>;
111
+ registerApi: _backstage_core_plugin_api.ExternalRouteRef<undefined, true>;
87
112
  }>;
88
- declare const ApiExplorerPage: ({ initiallySelectedFilter, columns, actions, }: {
89
- initiallySelectedFilter?: _backstage_plugin_catalog_react.UserListFilterKind | undefined;
90
- columns?: _backstage_core_components.TableColumn<_backstage_plugin_catalog.CatalogTableRow>[] | undefined;
91
- actions?: (_material_table_core.Action<_backstage_plugin_catalog.CatalogTableRow> | {
92
- action: (rowData: _backstage_plugin_catalog.CatalogTableRow) => _material_table_core.Action<_backstage_plugin_catalog.CatalogTableRow>;
93
- position: string;
94
- } | ((rowData: _backstage_plugin_catalog.CatalogTableRow) => _material_table_core.Action<_backstage_plugin_catalog.CatalogTableRow>))[] | undefined;
95
- }) => JSX.Element;
113
+ declare const ApiExplorerPage: (props: DefaultApiExplorerPageProps) => JSX.Element;
96
114
  declare const EntityApiDefinitionCard: (_: {
97
115
  apiEntity?: ApiEntity | undefined;
98
116
  }) => JSX.Element;
@@ -116,4 +134,4 @@ declare const EntityHasApisCard: ({ variant }: {
116
134
  variant?: "gridItem" | undefined;
117
135
  }) => JSX.Element;
118
136
 
119
- export { ApiDefinitionCard, ApiDefinitionWidget, ApiExplorerPage, ApiTypeTitle, AsyncApiDefinitionWidget, AsyncApiDefinitionWidgetProps, ConsumedApisCard, ConsumingComponentsCard, EntityApiDefinitionCard, EntityConsumedApisCard, EntityConsumingComponentsCard, EntityHasApisCard, EntityProvidedApisCard, EntityProvidingComponentsCard, HasApisCard, OpenApiDefinitionWidget, OpenApiDefinitionWidgetProps, PlainApiDefinitionWidget, PlainApiDefinitionWidgetProps, ProvidedApisCard, ProvidingComponentsCard, apiDocsConfigRef, apiDocsPlugin, defaultDefinitionWidgets, apiDocsPlugin as plugin };
137
+ export { ApiDefinitionCard, ApiDefinitionWidget, ApiExplorerPage$1 as ApiExplorerIndexPage, ApiExplorerPage, ApiTypeTitle, AsyncApiDefinitionWidget, AsyncApiDefinitionWidgetProps, ConsumedApisCard, ConsumingComponentsCard, DefaultApiExplorerPage, DefaultApiExplorerPageProps, EntityApiDefinitionCard, EntityConsumedApisCard, EntityConsumingComponentsCard, EntityHasApisCard, EntityProvidedApisCard, EntityProvidingComponentsCard, GraphQlDefinitionWidget, GraphQlDefinitionWidgetProps, HasApisCard, OpenApiDefinitionWidget, OpenApiDefinitionWidgetProps, PlainApiDefinitionWidget, PlainApiDefinitionWidgetProps, ProvidedApisCard, ProvidingComponentsCard, apiDocsConfigRef, apiDocsPlugin, defaultDefinitionWidgets, apiDocsPlugin as plugin };