@backstage/plugin-api-docs 0.8.0 → 0.8.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 +32 -0
- package/dist/esm/{AsyncApiDefinition-c39ae15d.esm.js → AsyncApiDefinition-5fccfdab.esm.js} +1 -1
- package/dist/esm/{AsyncApiDefinition-c39ae15d.esm.js.map → AsyncApiDefinition-5fccfdab.esm.js.map} +1 -1
- package/dist/esm/{GraphQlDefinition-fa85d425.esm.js → GraphQlDefinition-b8afc092.esm.js} +1 -1
- package/dist/esm/{GraphQlDefinition-fa85d425.esm.js.map → GraphQlDefinition-b8afc092.esm.js.map} +1 -1
- package/dist/esm/{OpenApiDefinition-3c1031f2.esm.js → OpenApiDefinition-ecf6e13e.esm.js} +1 -1
- package/dist/esm/{OpenApiDefinition-3c1031f2.esm.js.map → OpenApiDefinition-ecf6e13e.esm.js.map} +1 -1
- package/dist/esm/{index-67f385f3.esm.js → index-2e20379b.esm.js} +1 -1
- package/dist/esm/index-2e20379b.esm.js.map +1 -0
- package/dist/esm/{index-f00e35dd.esm.js → index-3b4f795d.esm.js} +1 -1
- package/dist/esm/index-3b4f795d.esm.js.map +1 -0
- package/dist/esm/{index-8d507e13.esm.js → index-6c8e3913.esm.js} +1 -1
- package/dist/esm/index-6c8e3913.esm.js.map +1 -0
- package/dist/esm/{index-88534b9b.esm.js → index-fe6dd6ae.esm.js} +1 -1
- package/dist/esm/index-fe6dd6ae.esm.js.map +1 -0
- package/dist/index.esm.js +10 -10
- package/package.json +11 -11
- package/dist/esm/index-67f385f3.esm.js.map +0 -1
- package/dist/esm/index-88534b9b.esm.js.map +0 -1
- package/dist/esm/index-8d507e13.esm.js.map +0 -1
- package/dist/esm/index-f00e35dd.esm.js.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,37 @@
|
|
|
1
1
|
# @backstage/plugin-api-docs
|
|
2
2
|
|
|
3
|
+
## 0.8.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
- @backstage/plugin-catalog@0.10.0
|
|
9
|
+
- @backstage/plugin-catalog-react@0.9.0
|
|
10
|
+
- @backstage/core-components@0.9.1
|
|
11
|
+
- @backstage/catalog-model@0.13.0
|
|
12
|
+
|
|
13
|
+
## 0.8.2-next.0
|
|
14
|
+
|
|
15
|
+
### Patch Changes
|
|
16
|
+
|
|
17
|
+
- Updated dependencies
|
|
18
|
+
- @backstage/plugin-catalog@0.10.0-next.0
|
|
19
|
+
- @backstage/plugin-catalog-react@0.9.0-next.0
|
|
20
|
+
- @backstage/core-components@0.9.1-next.0
|
|
21
|
+
- @backstage/catalog-model@0.13.0-next.0
|
|
22
|
+
|
|
23
|
+
## 0.8.1
|
|
24
|
+
|
|
25
|
+
### Patch Changes
|
|
26
|
+
|
|
27
|
+
- 899f196af5: Use `getEntityByRef` instead of `getEntityByName` in the catalog client
|
|
28
|
+
- Updated dependencies
|
|
29
|
+
- @backstage/catalog-model@0.12.0
|
|
30
|
+
- @backstage/core-components@0.9.0
|
|
31
|
+
- @backstage/plugin-catalog@0.9.1
|
|
32
|
+
- @backstage/plugin-catalog-react@0.8.0
|
|
33
|
+
- @backstage/core-plugin-api@0.8.0
|
|
34
|
+
|
|
3
35
|
## 0.8.0
|
|
4
36
|
|
|
5
37
|
### Minor Changes
|
package/dist/esm/{AsyncApiDefinition-c39ae15d.esm.js.map → AsyncApiDefinition-5fccfdab.esm.js.map}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AsyncApiDefinition-
|
|
1
|
+
{"version":3,"file":"AsyncApiDefinition-5fccfdab.esm.js","sources":["../../src/components/AsyncApiDefinitionWidget/AsyncApiDefinition.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 AsyncApi from '@asyncapi/react-component';\nimport '@asyncapi/react-component/styles/default.css';\nimport { makeStyles, alpha, darken } from '@material-ui/core/styles';\nimport { BackstageTheme } from '@backstage/theme';\nimport React from 'react';\nimport { useTheme } from '@material-ui/core';\n\nconst useStyles = makeStyles((theme: BackstageTheme) => ({\n root: {\n fontFamily: 'inherit',\n '& .bg-white': {\n background: 'none',\n },\n '& .text-4xl': {\n ...theme.typography.h3,\n },\n ' & h2': {\n ...theme.typography.h4,\n },\n '& .border': {\n borderColor: alpha(theme.palette.border, 0.1),\n },\n '& .min-w-min': {\n minWidth: 'fit-content',\n },\n '& .examples': {\n padding: '1rem',\n },\n '& .bg-teal-500': {\n backgroundColor: theme.palette.status.ok,\n },\n '& .bg-blue-500': {\n backgroundColor: theme.palette.info.main,\n },\n '& .bg-blue-400': {\n backgroundColor: theme.palette.info.light,\n },\n '& .bg-indigo-400': {\n backgroundColor: theme.palette.warning.main,\n },\n '& .text-teal-50': {\n color: theme.palette.status.ok,\n },\n '& .text-red-600': {\n color: theme.palette.error.main,\n },\n '& .text-orange-600': {\n color: theme.palette.warning.main,\n },\n '& .text-teal-500': {\n color: theme.palette.status.ok,\n },\n '& .text-blue-500': {\n color: theme.palette.info.main,\n },\n '& .-rotate-90': {\n '--tw-rotate': '0deg',\n },\n '& button': {\n ...theme.typography.button,\n borderRadius: theme.shape.borderRadius,\n color: theme.palette.primary.main,\n },\n '& a': {\n color: theme.palette.link,\n },\n '& a.no-underline': {\n ...theme.typography.button,\n background: 'none',\n boxSizing: 'border-box',\n minWidth: 64,\n borderRadius: theme.shape.borderRadius,\n transition: theme.transitions.create(\n ['background-color', 'box-shadow', 'border'],\n {\n duration: theme.transitions.duration.short,\n },\n ),\n padding: '5px 15px',\n color: theme.palette.primary.main,\n border: `1px solid ${alpha(theme.palette.primary.main, 0.5)}`,\n '&:hover': {\n textDecoration: 'none',\n border: `1px solid ${theme.palette.primary.main}`,\n backgroundColor: alpha(\n theme.palette.primary.main,\n theme.palette.action.hoverOpacity,\n ),\n },\n },\n '& li.no-underline': {\n '& a': {\n textDecoration: 'none',\n color: theme.palette.getContrastText(theme.palette.primary.main),\n },\n },\n },\n dark: {\n '& svg': {\n fill: theme.palette.text.primary,\n },\n '& .prose': {\n color: theme.palette.text.secondary,\n '& h3': {\n color: theme.palette.text.primary,\n },\n },\n '& .bg-gray-100, .bg-gray-200': {\n backgroundColor: theme.palette.background.default,\n },\n '& .text-gray-600': {\n color: theme.palette.grey['50'],\n },\n '& .text-gray-700': {\n color: theme.palette.grey['100'],\n },\n '& .panel--right': {\n background: darken(theme.palette.navigation.background, 0.1),\n },\n '& .examples': {\n backgroundColor: darken(theme.palette.navigation.background, 0.1),\n '& pre': {\n backgroundColor: darken(theme.palette.background.default, 0.2),\n },\n },\n },\n}));\n\ntype Props = {\n definition: string;\n};\n\nexport const AsyncApiDefinition = ({ definition }: Props): JSX.Element => {\n const classes = useStyles();\n const theme = useTheme();\n const classNames = `${classes.root} ${\n theme.palette.type === 'dark' ? classes.dark : ''\n }`;\n\n return (\n <div className={classNames}>\n <AsyncApi schema={definition} />\n </div>\n );\n};\n"],"names":[],"mappings":";;;;;;AAuBA,MAAM,YAAY,WAAW,CAAC;AAA2B,EACvD,MAAM;AAAA,IACJ,YAAY;AAAA,IACZ,eAAe;AAAA,MACb,YAAY;AAAA;AAAA,IAEd,eAAe;AAAA,SACV,MAAM,WAAW;AAAA;AAAA,IAEtB,SAAS;AAAA,SACJ,MAAM,WAAW;AAAA;AAAA,IAEtB,aAAa;AAAA,MACX,aAAa,MAAM,MAAM,QAAQ,QAAQ;AAAA;AAAA,IAE3C,gBAAgB;AAAA,MACd,UAAU;AAAA;AAAA,IAEZ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1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GraphQlDefinition-
|
|
1
|
+
{"version":3,"file":"GraphQlDefinition-b8afc092.esm.js","sources":["../../src/components/GraphQlDefinitionWidget/GraphQlDefinition.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 { BackstageTheme } from '@backstage/theme';\nimport { makeStyles } from '@material-ui/core/styles';\nimport GraphiQL from 'graphiql';\nimport 'graphiql/graphiql.css';\nimport { buildSchema } from 'graphql';\nimport React from 'react';\n\nconst useStyles = makeStyles<BackstageTheme>(() => ({\n root: {\n height: '100%',\n display: 'flex',\n flexFlow: 'column nowrap',\n },\n graphiQlWrapper: {\n flex: 1,\n '@global': {\n '.graphiql-container': {\n boxSizing: 'initial',\n height: '100%',\n minHeight: '600px',\n flex: '1 1 auto',\n },\n },\n },\n}));\n\ntype Props = {\n definition: string;\n};\n\nexport const GraphQlDefinition = ({ definition }: Props) => {\n const classes = useStyles();\n const schema = buildSchema(definition);\n\n return (\n <div className={classes.root}>\n <div className={classes.graphiQlWrapper}>\n <GraphiQL\n fetcher={() => Promise.resolve(null) as any}\n schema={schema}\n docExplorerOpen\n defaultSecondaryEditorOpen={false}\n />\n </div>\n </div>\n );\n};\n"],"names":[],"mappings":";;;;;;AAuBA,MAAM,YAAY,WAA2B;AAAO,EAClD,MAAM;AAAA,IACJ,QAAQ;AAAA,IACR,SAAS;AAAA,IACT,UAAU;AAAA;AAAA,EAEZ,iBAAiB;AAAA,IACf,MAAM;AAAA,IACN,WAAW;AAAA,MACT,uBAAuB;AAAA,QACrB,WAAW;AAAA,QACX,QAAQ;AAAA,QACR,WAAW;AAAA,QACX,MAAM;AAAA;AAAA;AAAA;AAAA;MAUD,oBAAoB,CAAC,EAAE,iBAAwB;AAC1D,QAAM,UAAU;AAChB,QAAM,SAAS,YAAY;AAE3B,6CACG,OAAD;AAAA,IAAK,WAAW,QAAQ;AAAA,yCACrB,OAAD;AAAA,IAAK,WAAW,QAAQ;AAAA,yCACrB,UAAD;AAAA,IACE,SAAS,MAAM,QAAQ,QAAQ;AAAA,IAC/B;AAAA,IACA,iBAAe;AAAA,IACf,4BAA4B;AAAA;AAAA;;;;"}
|
package/dist/esm/{OpenApiDefinition-3c1031f2.esm.js.map → OpenApiDefinition-ecf6e13e.esm.js.map}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OpenApiDefinition-
|
|
1
|
+
{"version":3,"file":"OpenApiDefinition-ecf6e13e.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;AA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AQ;AAAA,yCACrB,WAAD;AAAA,IAAW,MAAM;AAAA,IAAK,KAAI;AAAA,IAAG,aAAW;AAAA;AAAA;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index-2e20379b.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index-3b4f795d.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index-6c8e3913.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index-fe6dd6ae.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;"}
|
package/dist/index.esm.js
CHANGED
|
@@ -114,7 +114,7 @@ const ApiDefinitionCard = () => {
|
|
|
114
114
|
});
|
|
115
115
|
};
|
|
116
116
|
|
|
117
|
-
const LazyAsyncApiDefinition = React.lazy(() => import('./esm/AsyncApiDefinition-
|
|
117
|
+
const LazyAsyncApiDefinition = React.lazy(() => import('./esm/AsyncApiDefinition-5fccfdab.esm.js').then((m) => ({
|
|
118
118
|
default: m.AsyncApiDefinition
|
|
119
119
|
})));
|
|
120
120
|
const AsyncApiDefinitionWidget = (props) => {
|
|
@@ -125,7 +125,7 @@ const AsyncApiDefinitionWidget = (props) => {
|
|
|
125
125
|
}));
|
|
126
126
|
};
|
|
127
127
|
|
|
128
|
-
const LazyGraphQlDefinition = React.lazy(() => import('./esm/GraphQlDefinition-
|
|
128
|
+
const LazyGraphQlDefinition = React.lazy(() => import('./esm/GraphQlDefinition-b8afc092.esm.js').then((m) => ({
|
|
129
129
|
default: m.GraphQlDefinition
|
|
130
130
|
})));
|
|
131
131
|
const GraphQlDefinitionWidget = (props) => {
|
|
@@ -136,7 +136,7 @@ const GraphQlDefinitionWidget = (props) => {
|
|
|
136
136
|
}));
|
|
137
137
|
};
|
|
138
138
|
|
|
139
|
-
const LazyOpenApiDefinition = React.lazy(() => import('./esm/OpenApiDefinition-
|
|
139
|
+
const LazyOpenApiDefinition = React.lazy(() => import('./esm/OpenApiDefinition-ecf6e13e.esm.js').then((m) => ({
|
|
140
140
|
default: m.OpenApiDefinition
|
|
141
141
|
})));
|
|
142
142
|
const OpenApiDefinitionWidget = (props) => {
|
|
@@ -439,43 +439,43 @@ const apiDocsPlugin = createPlugin({
|
|
|
439
439
|
});
|
|
440
440
|
const ApiExplorerPage = apiDocsPlugin.provide(createRoutableExtension({
|
|
441
441
|
name: "ApiExplorerPage",
|
|
442
|
-
component: () => import('./esm/index-
|
|
442
|
+
component: () => import('./esm/index-fe6dd6ae.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-
|
|
448
|
+
lazy: () => import('./esm/index-6c8e3913.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-
|
|
454
|
+
lazy: () => import('./esm/index-2e20379b.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-
|
|
460
|
+
lazy: () => import('./esm/index-3b4f795d.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-
|
|
466
|
+
lazy: () => import('./esm/index-2e20379b.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-
|
|
472
|
+
lazy: () => import('./esm/index-3b4f795d.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-
|
|
478
|
+
lazy: () => import('./esm/index-2e20379b.esm.js').then((m) => m.HasApisCard)
|
|
479
479
|
}
|
|
480
480
|
}));
|
|
481
481
|
|
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.8.
|
|
4
|
+
"version": "0.8.2",
|
|
5
5
|
"main": "dist/index.esm.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
7
7
|
"license": "Apache-2.0",
|
|
@@ -34,11 +34,11 @@
|
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
36
|
"@asyncapi/react-component": "1.0.0-next.33",
|
|
37
|
-
"@backstage/catalog-model": "^0.
|
|
38
|
-
"@backstage/core-components": "^0.
|
|
39
|
-
"@backstage/core-plugin-api": "^0.
|
|
40
|
-
"@backstage/plugin-catalog": "^0.
|
|
41
|
-
"@backstage/plugin-catalog-react": "^0.
|
|
37
|
+
"@backstage/catalog-model": "^0.13.0",
|
|
38
|
+
"@backstage/core-components": "^0.9.1",
|
|
39
|
+
"@backstage/core-plugin-api": "^0.8.0",
|
|
40
|
+
"@backstage/plugin-catalog": "^0.10.0",
|
|
41
|
+
"@backstage/plugin-catalog-react": "^0.9.0",
|
|
42
42
|
"@backstage/theme": "^0.2.15",
|
|
43
43
|
"@material-ui/core": "^4.12.2",
|
|
44
44
|
"@material-ui/icons": "^4.9.1",
|
|
@@ -56,10 +56,10 @@
|
|
|
56
56
|
"react": "^16.13.1 || ^17.0.0"
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
59
|
-
"@backstage/cli": "^0.
|
|
60
|
-
"@backstage/core-app-api": "^0.
|
|
61
|
-
"@backstage/dev-utils": "^0.2.
|
|
62
|
-
"@backstage/test-utils": "^0.
|
|
59
|
+
"@backstage/cli": "^0.15.2",
|
|
60
|
+
"@backstage/core-app-api": "^0.6.0",
|
|
61
|
+
"@backstage/dev-utils": "^0.2.25",
|
|
62
|
+
"@backstage/test-utils": "^0.3.0",
|
|
63
63
|
"@testing-library/jest-dom": "^5.10.1",
|
|
64
64
|
"@testing-library/react": "^11.2.5",
|
|
65
65
|
"@testing-library/user-event": "^13.1.8",
|
|
@@ -72,5 +72,5 @@
|
|
|
72
72
|
"files": [
|
|
73
73
|
"dist"
|
|
74
74
|
],
|
|
75
|
-
"gitHead": "
|
|
75
|
+
"gitHead": "60c4e39d1fcaeb10d6488ada1d907f34dc2a105a"
|
|
76
76
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index-67f385f3.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index-88534b9b.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index-8d507e13.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index-f00e35dd.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;"}
|