@backstage/plugin-api-docs 0.6.22 → 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,19 @@
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
+
3
17
  ## 0.6.22
4
18
 
5
19
  ### 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;AAA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CAAmC;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,OAAO,MAAM,QAAQ,KAAK;AAAA;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AAG,aAAW;AAAA;AAAA;;;;"}
@@ -8,4 +8,4 @@ import '@backstage/plugin-catalog-react';
8
8
  import '@material-ui/lab';
9
9
  import '@backstage/catalog-model';
10
10
  import '@material-ui/core';
11
- //# sourceMappingURL=index-30e4d7f8.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":";;;;;;;;;"}
@@ -8,4 +8,4 @@ import '@backstage/plugin-catalog-react';
8
8
  import '@material-ui/lab';
9
9
  import '@backstage/catalog-model';
10
10
  import '@material-ui/core';
11
- //# sourceMappingURL=index-89d097b6.esm.js.map
11
+ //# sourceMappingURL=index-8f4817a1.esm.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index-8f4817a1.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;"}
@@ -8,4 +8,4 @@ import '@backstage/plugin-catalog-react';
8
8
  import '@material-ui/lab';
9
9
  import '@backstage/catalog-model';
10
10
  import '@material-ui/core';
11
- //# sourceMappingURL=index-02cb4cdc.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":";;;;;;;;;"}
@@ -8,4 +8,4 @@ import '@backstage/plugin-catalog-react';
8
8
  import '@material-ui/lab';
9
9
  import '@backstage/catalog-model';
10
10
  import '@material-ui/core';
11
- //# sourceMappingURL=index-32c80387.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
@@ -84,6 +84,11 @@ declare type Props = {
84
84
  };
85
85
  declare const ProvidingComponentsCard: ({ variant }: Props) => JSX.Element;
86
86
 
87
+ declare type GraphQlDefinitionWidgetProps = {
88
+ definition: string;
89
+ };
90
+ declare const GraphQlDefinitionWidget: (props: GraphQlDefinitionWidgetProps) => JSX.Element;
91
+
87
92
  declare type OpenApiDefinitionWidgetProps = {
88
93
  definition: string;
89
94
  };
@@ -129,4 +134,4 @@ declare const EntityHasApisCard: ({ variant }: {
129
134
  variant?: "gridItem" | undefined;
130
135
  }) => JSX.Element;
131
136
 
132
- export { ApiDefinitionCard, ApiDefinitionWidget, ApiExplorerPage$1 as ApiExplorerIndexPage, ApiExplorerPage, ApiTypeTitle, AsyncApiDefinitionWidget, AsyncApiDefinitionWidgetProps, ConsumedApisCard, ConsumingComponentsCard, DefaultApiExplorerPage, DefaultApiExplorerPageProps, 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 };
package/dist/index.esm.js CHANGED
@@ -136,7 +136,7 @@ const GraphQlDefinitionWidget = (props) => {
136
136
  }));
137
137
  };
138
138
 
139
- const LazyOpenApiDefinition = React.lazy(() => import('./esm/OpenApiDefinition-48ae3040.esm.js').then((m) => ({
139
+ const LazyOpenApiDefinition = React.lazy(() => import('./esm/OpenApiDefinition-3c1031f2.esm.js').then((m) => ({
140
140
  default: m.OpenApiDefinition
141
141
  })));
142
142
  const OpenApiDefinitionWidget = (props) => {
@@ -439,45 +439,45 @@ const apiDocsPlugin = createPlugin({
439
439
  });
440
440
  const ApiExplorerPage = apiDocsPlugin.provide(createRoutableExtension({
441
441
  name: "ApiExplorerPage",
442
- component: () => import('./esm/index-02cb4cdc.esm.js').then((m) => m.ApiExplorerIndexPage),
442
+ component: () => import('./esm/index-d1c146d3.esm.js').then((m) => m.ApiExplorerIndexPage),
443
443
  mountPoint: rootRoute
444
444
  }));
445
445
  const EntityApiDefinitionCard = apiDocsPlugin.provide(createComponentExtension({
446
446
  name: "EntityApiDefinitionCard",
447
447
  component: {
448
- lazy: () => import('./esm/index-89d097b6.esm.js').then((m) => m.ApiDefinitionCard)
448
+ lazy: () => import('./esm/index-8f4817a1.esm.js').then((m) => m.ApiDefinitionCard)
449
449
  }
450
450
  }));
451
451
  const EntityConsumedApisCard = apiDocsPlugin.provide(createComponentExtension({
452
452
  name: "EntityConsumedApisCard",
453
453
  component: {
454
- lazy: () => import('./esm/index-32c80387.esm.js').then((m) => m.ConsumedApisCard)
454
+ lazy: () => import('./esm/index-e50d5f29.esm.js').then((m) => m.ConsumedApisCard)
455
455
  }
456
456
  }));
457
457
  const EntityConsumingComponentsCard = apiDocsPlugin.provide(createComponentExtension({
458
458
  name: "EntityConsumingComponentsCard",
459
459
  component: {
460
- lazy: () => import('./esm/index-30e4d7f8.esm.js').then((m) => m.ConsumingComponentsCard)
460
+ lazy: () => import('./esm/index-82335fef.esm.js').then((m) => m.ConsumingComponentsCard)
461
461
  }
462
462
  }));
463
463
  const EntityProvidedApisCard = apiDocsPlugin.provide(createComponentExtension({
464
464
  name: "EntityProvidedApisCard",
465
465
  component: {
466
- lazy: () => import('./esm/index-32c80387.esm.js').then((m) => m.ProvidedApisCard)
466
+ lazy: () => import('./esm/index-e50d5f29.esm.js').then((m) => m.ProvidedApisCard)
467
467
  }
468
468
  }));
469
469
  const EntityProvidingComponentsCard = apiDocsPlugin.provide(createComponentExtension({
470
470
  name: "EntityProvidingComponentsCard",
471
471
  component: {
472
- lazy: () => import('./esm/index-30e4d7f8.esm.js').then((m) => m.ProvidingComponentsCard)
472
+ lazy: () => import('./esm/index-82335fef.esm.js').then((m) => m.ProvidingComponentsCard)
473
473
  }
474
474
  }));
475
475
  const EntityHasApisCard = apiDocsPlugin.provide(createComponentExtension({
476
476
  name: "EntityHasApisCard",
477
477
  component: {
478
- lazy: () => import('./esm/index-32c80387.esm.js').then((m) => m.HasApisCard)
478
+ lazy: () => import('./esm/index-e50d5f29.esm.js').then((m) => m.HasApisCard)
479
479
  }
480
480
  }));
481
481
 
482
- export { ApiDefinitionCard, ApiExplorerPage$1 as ApiExplorerIndexPage, ApiExplorerPage, ApiTypeTitle, AsyncApiDefinitionWidget, ConsumedApisCard, ConsumingComponentsCard, DefaultApiExplorerPage, EntityApiDefinitionCard, EntityConsumedApisCard, EntityConsumingComponentsCard, EntityHasApisCard, EntityProvidedApisCard, EntityProvidingComponentsCard, HasApisCard, OpenApiDefinitionWidget, PlainApiDefinitionWidget, ProvidedApisCard, ProvidingComponentsCard, apiDocsConfigRef, apiDocsPlugin, defaultDefinitionWidgets, apiDocsPlugin as plugin };
482
+ export { ApiDefinitionCard, ApiExplorerPage$1 as ApiExplorerIndexPage, ApiExplorerPage, ApiTypeTitle, AsyncApiDefinitionWidget, ConsumedApisCard, ConsumingComponentsCard, DefaultApiExplorerPage, EntityApiDefinitionCard, EntityConsumedApisCard, EntityConsumingComponentsCard, EntityHasApisCard, EntityProvidedApisCard, EntityProvidingComponentsCard, GraphQlDefinitionWidget, HasApisCard, OpenApiDefinitionWidget, PlainApiDefinitionWidget, ProvidedApisCard, ProvidingComponentsCard, apiDocsConfigRef, apiDocsPlugin, defaultDefinitionWidgets, apiDocsPlugin as plugin };
483
483
  //# sourceMappingURL=index.esm.js.map
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@backstage/plugin-api-docs",
3
3
  "description": "A Backstage plugin that helps represent API entities in the frontend",
4
- "version": "0.6.22",
4
+ "version": "0.6.23-next.0",
5
5
  "main": "dist/index.esm.js",
6
6
  "types": "dist/index.d.ts",
7
7
  "license": "Apache-2.0",
@@ -31,11 +31,11 @@
31
31
  },
32
32
  "dependencies": {
33
33
  "@asyncapi/react-component": "1.0.0-next.26",
34
- "@backstage/catalog-model": "^0.9.9",
35
- "@backstage/core-components": "^0.8.4",
36
- "@backstage/core-plugin-api": "^0.5.0",
37
- "@backstage/plugin-catalog": "^0.7.8",
38
- "@backstage/plugin-catalog-react": "^0.6.11",
34
+ "@backstage/catalog-model": "^0.9.10-next.0",
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
39
  "@backstage/theme": "^0.2.14",
40
40
  "@material-ui/core": "^4.12.2",
41
41
  "@material-ui/icons": "^4.9.1",
@@ -46,29 +46,28 @@
46
46
  "react-router": "6.0.0-beta.0",
47
47
  "react-router-dom": "6.0.0-beta.0",
48
48
  "react-use": "^17.2.4",
49
- "swagger-client": "3.16.1",
50
- "swagger-ui-react": "^4.0.0-rc.3"
49
+ "swagger-ui-react": "^4.1.3"
51
50
  },
52
51
  "peerDependencies": {
53
52
  "@types/react": "^16.13.1 || ^17.0.0",
54
53
  "react": "^16.13.1 || ^17.0.0"
55
54
  },
56
55
  "devDependencies": {
57
- "@backstage/cli": "^0.11.0",
58
- "@backstage/core-app-api": "^0.4.0",
59
- "@backstage/dev-utils": "^0.2.17",
60
- "@backstage/test-utils": "^0.2.2",
56
+ "@backstage/cli": "^0.12.0-next.0",
57
+ "@backstage/core-app-api": "^0.5.0-next.0",
58
+ "@backstage/dev-utils": "^0.2.18-next.0",
59
+ "@backstage/test-utils": "^0.2.3-next.0",
61
60
  "@testing-library/jest-dom": "^5.10.1",
62
61
  "@testing-library/react": "^11.2.5",
63
62
  "@testing-library/user-event": "^13.1.8",
64
63
  "@types/jest": "^26.0.7",
65
64
  "@types/node": "^14.14.32",
66
- "@types/swagger-ui-react": "^3.23.3",
65
+ "@types/swagger-ui-react": "^4.1.1",
67
66
  "cross-fetch": "^3.0.6",
68
67
  "msw": "^0.35.0"
69
68
  },
70
69
  "files": [
71
70
  "dist"
72
71
  ],
73
- "gitHead": "da66c61bdd63cdb3f0f0cd2e26dc9e6454d93c7b"
72
+ "gitHead": "31184691d5a38cb78b091c8f7ad6db80604519a6"
74
73
  }
@@ -1 +0,0 @@
1
- {"version":3,"file":"index-02cb4cdc.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index-30e4d7f8.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index-32c80387.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index-89d097b6.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;"}