@backstage/plugin-api-docs 0.6.19 → 0.6.23-next.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,59 @@
1
1
  # @backstage/plugin-api-docs
2
2
 
3
+ ## 0.6.23-next.0
4
+
5
+ ### Patch Changes
6
+
7
+ - 306d879536: chore(deps): bump `react-syntax-highligher` and `swagger-ui-react`
8
+ - c007bea546: Export `GraphQlDefinitionWidget` to be reused.
9
+ - cd4e3c4d4e: Using an explicitly empty string for the url argument ensures that the swagger UI does not run into undefined errors.
10
+ - Updated dependencies
11
+ - @backstage/core-components@0.8.5-next.0
12
+ - @backstage/core-plugin-api@0.6.0-next.0
13
+ - @backstage/plugin-catalog@0.7.9-next.0
14
+ - @backstage/plugin-catalog-react@0.6.12-next.0
15
+ - @backstage/catalog-model@0.9.10-next.0
16
+
17
+ ## 0.6.22
18
+
19
+ ### Patch Changes
20
+
21
+ - faf844e269: Update @asyncapi/react-component to 1.0.0-next.26, which will fix the
22
+ `ResizeObserver loop limit exceeded` errors which we encountered in several E2E
23
+ tests.
24
+
25
+ For more details check the following links:
26
+
27
+ - https://github.com/backstage/backstage/pull/8088#issuecomment-991183968
28
+ - https://github.com/asyncapi/asyncapi-react/issues/498
29
+
30
+ - Updated dependencies
31
+ - @backstage/core-components@0.8.4
32
+ - @backstage/core-plugin-api@0.5.0
33
+ - @backstage/plugin-catalog-react@0.6.11
34
+ - @backstage/catalog-model@0.9.9
35
+ - @backstage/plugin-catalog@0.7.8
36
+
37
+ ## 0.6.21
38
+
39
+ ### Patch Changes
40
+
41
+ - 11b81683a9: Support customizing index page layouts via outlets
42
+ - Updated dependencies
43
+ - @backstage/core-plugin-api@0.4.1
44
+ - @backstage/plugin-catalog-react@0.6.10
45
+ - @backstage/core-components@0.8.3
46
+ - @backstage/plugin-catalog@0.7.7
47
+
48
+ ## 0.6.20
49
+
50
+ ### Patch Changes
51
+
52
+ - de81b7455e: Display entity title on `ApiDefinitionCard` if defined
53
+ - Updated dependencies
54
+ - @backstage/plugin-catalog@0.7.6
55
+ - @backstage/plugin-catalog-react@0.6.9
56
+
3
57
  ## 0.6.19
4
58
 
5
59
  ### 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,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,OAAO,MAAM,QAAQ,KAAK;AAAA;AAAA,OA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"}
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,MAC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AAW;AAAA;AAAA,OAE3C;AAAA,qBACc;AAAA,QACb,YAAY,MAAM,WAAW;AAAA;AAAA,OAE9B,4BAA4B;AAAA,SAC1B,YAAY;AAAA,UACX,YAAY,MAAM,WAAW;AAAA,UAC7B,OAAO,MAAM,QAAQ,KAAK;AAAA;AAAA;AAAA,OAG7B,QAAQ;AAAA,QACP,OAAO,MAAM,QAAQ,QAAQ;AAAA;AAAA,OAE9B,6BAA6B;AAAA,QAC5B,OAAO,MAAM,QAAQ,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,KAAI;AAAA,IAAG,aAAW;AAAA;AAAA;;;;"}
@@ -1,9 +1,11 @@
1
- export { C as ConsumedApisCard, H as HasApisCard, P as ProvidedApisCard } from './index-be2646c3.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-0bbaf1ad.esm.js.map
11
+ //# sourceMappingURL=index-82335fef.esm.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index-82335fef.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-8f4817a1.esm.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index-8f4817a1.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;"}
@@ -1,9 +1,11 @@
1
- export { b as ConsumingComponentsCard, e as ProvidingComponentsCard } from './index-be2646c3.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-59179174.esm.js.map
11
+ //# sourceMappingURL=index-d1c146d3.esm.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index-d1c146d3.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;"}
@@ -1,9 +1,11 @@
1
- export { A as ApiDefinitionCard, a as ApiTypeTitle, d as defaultDefinitionWidgets } from './index-be2646c3.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-dce83687.esm.js.map
11
+ //# sourceMappingURL=index-e50d5f29.esm.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index-e50d5f29.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
  };
@@ -85,14 +110,7 @@ declare const apiDocsPlugin: _backstage_core_plugin_api.BackstagePlugin<{
85
110
  }, {
86
111
  createComponent: _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 };