@backstage/plugin-api-docs 0.12.6-next.1 → 0.12.6
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 +39 -0
- package/dist/alpha.d.ts +43 -11
- package/dist/alpha.esm.js +15 -11
- package/dist/alpha.esm.js.map +1 -1
- package/dist/components/ApiDefinitionCard/ApiDefinitionCard.esm.js +15 -12
- package/dist/components/ApiDefinitionCard/ApiDefinitionCard.esm.js.map +1 -1
- package/dist/components/ApiDefinitionCard/ApiDefinitionWidget.esm.js +6 -6
- package/dist/components/ApiDefinitionCard/ApiDefinitionWidget.esm.js.map +1 -1
- package/dist/components/ApiDefinitionCard/ApiTypeTitle.esm.js +2 -2
- package/dist/components/ApiDefinitionCard/ApiTypeTitle.esm.js.map +1 -1
- package/dist/components/ApiDefinitionDialog/ApiDefinitionDialog.esm.js +48 -30
- package/dist/components/ApiDefinitionDialog/ApiDefinitionDialog.esm.js.map +1 -1
- package/dist/components/ApiExplorerPage/ApiExplorerPage.esm.js +2 -2
- package/dist/components/ApiExplorerPage/ApiExplorerPage.esm.js.map +1 -1
- package/dist/components/ApiExplorerPage/DefaultApiExplorerPage.esm.js +40 -19
- package/dist/components/ApiExplorerPage/DefaultApiExplorerPage.esm.js.map +1 -1
- package/dist/components/ApisCards/ConsumedApisCard.esm.js +26 -18
- package/dist/components/ApisCards/ConsumedApisCard.esm.js.map +1 -1
- package/dist/components/ApisCards/HasApisCard.esm.js +27 -16
- package/dist/components/ApisCards/HasApisCard.esm.js.map +1 -1
- package/dist/components/ApisCards/ProvidedApisCard.esm.js +26 -18
- package/dist/components/ApisCards/ProvidedApisCard.esm.js.map +1 -1
- package/dist/components/ApisCards/presets.esm.js +42 -33
- package/dist/components/ApisCards/presets.esm.js.map +1 -1
- package/dist/components/AsyncApiDefinitionWidget/AsyncApiDefinition.esm.js +2 -2
- package/dist/components/AsyncApiDefinitionWidget/AsyncApiDefinition.esm.js.map +1 -1
- package/dist/components/AsyncApiDefinitionWidget/AsyncApiDefinitionWidget.esm.js +4 -3
- package/dist/components/AsyncApiDefinitionWidget/AsyncApiDefinitionWidget.esm.js.map +1 -1
- package/dist/components/ComponentsCards/ConsumingComponentsCard.esm.js +15 -9
- package/dist/components/ComponentsCards/ConsumingComponentsCard.esm.js.map +1 -1
- package/dist/components/ComponentsCards/ProvidingComponentsCard.esm.js +15 -9
- package/dist/components/ComponentsCards/ProvidingComponentsCard.esm.js.map +1 -1
- package/dist/components/GraphQlDefinitionWidget/GraphQlDefinition.esm.js +6 -6
- package/dist/components/GraphQlDefinitionWidget/GraphQlDefinition.esm.js.map +1 -1
- package/dist/components/GraphQlDefinitionWidget/GraphQlDefinitionWidget.esm.js +4 -3
- package/dist/components/GraphQlDefinitionWidget/GraphQlDefinitionWidget.esm.js.map +1 -1
- package/dist/components/GrpcApiDefinitionWidget/GrpcApiDefinitionWidget.esm.js +2 -2
- package/dist/components/GrpcApiDefinitionWidget/GrpcApiDefinitionWidget.esm.js.map +1 -1
- package/dist/components/OpenApiDefinitionWidget/OpenApiDefinition.esm.js +4 -3
- package/dist/components/OpenApiDefinitionWidget/OpenApiDefinition.esm.js.map +1 -1
- package/dist/components/OpenApiDefinitionWidget/OpenApiDefinitionWidget.esm.js +5 -4
- package/dist/components/OpenApiDefinitionWidget/OpenApiDefinitionWidget.esm.js.map +1 -1
- package/dist/components/PlainApiDefinitionWidget/PlainApiDefinitionWidget.esm.js +2 -2
- package/dist/components/PlainApiDefinitionWidget/PlainApiDefinitionWidget.esm.js.map +1 -1
- package/dist/components/TrpcDefinitionWidget/TrpcApiDefinitionWidget.esm.js +2 -2
- package/dist/components/TrpcDefinitionWidget/TrpcApiDefinitionWidget.esm.js.map +1 -1
- package/dist/index.d.ts +25 -25
- package/dist/plugin.esm.js +1 -1
- package/dist/translation.esm.js +72 -0
- package/dist/translation.esm.js.map +1 -0
- package/package.json +17 -17
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OpenApiDefinition.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, { SwaggerUIProps } 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 ['& .btn-clear']: {\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 table tbody tr td,\n table tbody 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-description-wrapper,\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 .parameter__name.required span`]: {\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.secondary,\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 [`& .opblock-control-arrow svg, .authorization__btn .unlocked`]: {\n fill: theme.palette.text.primary,\n },\n [`& .json-schema-2020-12__title,\n .json-schema-2020-12-keyword__name,\n .json-schema-2020-12-property .json-schema-2020-12__title,\n .json-schema-2020-12-keyword--description`]: {\n color: theme.palette.text.primary,\n },\n [`.json-schema-2020-12-accordion__icon svg`]: {\n fill: theme.palette.text.primary,\n },\n [`& .json-schema-2020-12-accordion,\n .json-schema-2020-12-expand-deep-button`]: {\n background: 'none',\n appearance: 'none',\n },\n [`& .json-schema-2020-12-expand-deep-button,\n .json-schema-2020-12-keyword__name--secondary,\n .json-schema-2020-12-keyword__value--secondary,\n .json-schema-2020-12__attribute--muted,\n .json-schema-2020-12-keyword__value--const,\n .json-schema-2020-12-keyword__value--warning`]: {\n color: theme.palette.text.secondary,\n },\n [`& .json-schema-2020-12-body,\n .json-schema-2020-12-keyword__value--const,\n .json-schema-2020-12-keyword__value--warning`]: {\n borderColor: theme.palette.text.secondary,\n },\n [`.json-schema-2020-12__constraint--string`]: {\n backgroundColor: theme.palette.primary.main,\n },\n [`& .json-schema-2020-12__attribute--primary`]: {\n color: theme.palette.primary.main,\n },\n [`& .json-schema-2020-12-property--required>.json-schema-2020-12:first-of-type>.json-schema-2020-12-head .json-schema-2020-12__title:after`]:\n {\n color: theme.palette.warning.dark,\n },\n },\n },\n}));\n\nexport type OpenApiDefinitionProps = {\n definition: string;\n} & Omit<SwaggerUIProps, 'spec'>;\n\nexport const OpenApiDefinition = ({\n definition,\n ...swaggerUiProps\n}: 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\n spec={def}\n url=\"\"\n deepLinking\n oauth2RedirectUrl={`${window.location.protocol}//${window.location.host}/oauth2-redirect.html`}\n {...swaggerUiProps}\n />\n </div>\n );\n};\n"],"names":[],"mappings":";;;;;AAqBA,MAAM,SAAA,GAAY,WAAW,CAAU,KAAA,MAAA;AAAA,EACrC,IAAM,EAAA;AAAA,IACJ,eAAiB,EAAA;AAAA,MACf,UAAA,EAAY,MAAM,UAAW,CAAA,UAAA;AAAA,MAC7B,KAAA,EAAO,KAAM,CAAA,OAAA,CAAQ,IAAK,CAAA,OAAA;AAAA,MAE1B,CAAC,cAAc,GAAG;AAAA,QAChB,KAAA,EA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Q,CAAA;AAAA;AAC/B;AACJ;AAEJ,CAAE,CAAA,CAAA;AAMK,MAAM,oBAAoB,CAAC;AAAA,EAChC,UAAA;AAAA,EACA,GAAG;AACL,CAA8B,KAAA;AAC5B,EAAA,MAAM,UAAU,SAAU,EAAA;AAI1B,EAAA,MAAM,CAAC,GAAA,EAAK,MAAM,CAAA,GAAI,SAAS,EAAE,CAAA;AAEjC,EAAA,SAAA,CAAU,MAAM;AACd,IAAA,MAAM,QAAQ,UAAW,CAAA,MAAM,MAAO,CAAA,UAAU,GAAG,CAAC,CAAA;AACpD,IAAO,OAAA,MAAM,aAAa,KAAK,CAAA;AAAA,GAC9B,EAAA,CAAC,UAAY,EAAA,MAAM,CAAC,CAAA;AAEvB,EAAA,uBACG,KAAA,CAAA,aAAA,CAAA,KAAA,EAAA,EAAI,SAAW,EAAA,OAAA,CAAQ,IACtB,EAAA,kBAAA,KAAA,CAAA,aAAA;AAAA,IAAC,SAAA;AAAA,IAAA;AAAA,MACC,IAAM,EAAA,GAAA;AAAA,MACN,GAAI,EAAA,EAAA;AAAA,MACJ,WAAW,EAAA,IAAA;AAAA,MACX,iBAAA,EAAmB,GAAG,MAAO,CAAA,QAAA,CAAS,QAAQ,CAAK,EAAA,EAAA,MAAA,CAAO,SAAS,IAAI,CAAA,qBAAA,CAAA;AAAA,MACtE,GAAG;AAAA;AAAA,GAER,CAAA;AAEJ;;;;"}
|
|
1
|
+
{"version":3,"file":"OpenApiDefinition.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 { useEffect, useState } from 'react';\nimport SwaggerUI, { SwaggerUIProps } 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 ['& .btn-clear']: {\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 table tbody tr td,\n table tbody 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-description-wrapper,\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 .parameter__name.required span`]: {\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.secondary,\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 [`& .opblock-control-arrow svg, .authorization__btn .unlocked`]: {\n fill: theme.palette.text.primary,\n },\n [`& .json-schema-2020-12__title,\n .json-schema-2020-12-keyword__name,\n .json-schema-2020-12-property .json-schema-2020-12__title,\n .json-schema-2020-12-keyword--description`]: {\n color: theme.palette.text.primary,\n },\n [`.json-schema-2020-12-accordion__icon svg`]: {\n fill: theme.palette.text.primary,\n },\n [`& .json-schema-2020-12-accordion,\n .json-schema-2020-12-expand-deep-button`]: {\n background: 'none',\n appearance: 'none',\n },\n [`& .json-schema-2020-12-expand-deep-button,\n .json-schema-2020-12-keyword__name--secondary,\n .json-schema-2020-12-keyword__value--secondary,\n .json-schema-2020-12__attribute--muted,\n .json-schema-2020-12-keyword__value--const,\n .json-schema-2020-12-keyword__value--warning`]: {\n color: theme.palette.text.secondary,\n },\n [`& .json-schema-2020-12-body,\n .json-schema-2020-12-keyword__value--const,\n .json-schema-2020-12-keyword__value--warning`]: {\n borderColor: theme.palette.text.secondary,\n },\n [`.json-schema-2020-12__constraint--string`]: {\n backgroundColor: theme.palette.primary.main,\n },\n [`& .json-schema-2020-12__attribute--primary`]: {\n color: theme.palette.primary.main,\n },\n [`& .json-schema-2020-12-property--required>.json-schema-2020-12:first-of-type>.json-schema-2020-12-head .json-schema-2020-12__title:after`]:\n {\n color: theme.palette.warning.dark,\n },\n },\n },\n}));\n\nexport type OpenApiDefinitionProps = {\n definition: string;\n} & Omit<SwaggerUIProps, 'spec'>;\n\nexport const OpenApiDefinition = ({\n definition,\n ...swaggerUiProps\n}: 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\n spec={def}\n url=\"\"\n deepLinking\n oauth2RedirectUrl={`${window.location.protocol}//${window.location.host}/oauth2-redirect.html`}\n {...swaggerUiProps}\n />\n </div>\n );\n};\n"],"names":[],"mappings":";;;;;;AAqBA,MAAM,SAAA,GAAY,WAAW,CAAU,KAAA,MAAA;AAAA,EACrC,IAAM,EAAA;AAAA,IACJ,eAAiB,EAAA;AAAA,MACf,UAAA,EAAY,MAAM,UAAW,CAAA,UAAA;AAAA,MAC7B,KAAA,EAAO,KAAM,CAAA,OAAA,CAAQ,IAAK,CAAA,OAAA;AAAA,MAE1B,CAAC,cAAc,GAAG;AAAA,QAChB,KAAA,EAAO,KAAM,CAAA,OAAA,CAAQ,IAAK,CAAA;AAAA,OAC5B;AAAA,MACA,CAAC,qBAAqB,GAAG;AAAA,QACvB,eAAA,EAAiB,KAAM,CAAA,OAAA,CAAQ,UAAW,CAAA;AAAA,OAC5C;AAAA,MACA,CAAC,CAAA;AAAA;AAAA;AAAA;AAAA;AAAA,2BAAA,CAKqB,GAAG;AAAA,QACvB,UAAA,EAAY,MAAM,UAAW,CAAA,UAAA;AAAA,QAC7B,KAAA,EAAO,KAAM,CAAA,OAAA,CAAQ,IAAK,C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,CAAC,CAAA;AACpD,IAAO,OAAA,MAAM,aAAa,KAAK,CAAA;AAAA,GAC9B,EAAA,CAAC,UAAY,EAAA,MAAM,CAAC,CAAA;AAEvB,EAAA,uBACG,GAAA,CAAA,KAAA,EAAA,EAAI,SAAW,EAAA,OAAA,CAAQ,IACtB,EAAA,QAAA,kBAAA,GAAA;AAAA,IAAC,SAAA;AAAA,IAAA;AAAA,MACC,IAAM,EAAA,GAAA;AAAA,MACN,GAAI,EAAA,EAAA;AAAA,MACJ,WAAW,EAAA,IAAA;AAAA,MACX,iBAAA,EAAmB,GAAG,MAAO,CAAA,QAAA,CAAS,QAAQ,CAAK,EAAA,EAAA,MAAA,CAAO,SAAS,IAAI,CAAA,qBAAA,CAAA;AAAA,MACtE,GAAG;AAAA;AAAA,GAER,EAAA,CAAA;AAEJ;;;;"}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
+
import { jsx } from 'react/jsx-runtime';
|
|
1
2
|
import { Progress } from '@backstage/core-components';
|
|
2
|
-
import
|
|
3
|
+
import { lazy, Suspense } from 'react';
|
|
3
4
|
|
|
4
|
-
const LazyOpenApiDefinition =
|
|
5
|
+
const LazyOpenApiDefinition = lazy(
|
|
5
6
|
() => import('./OpenApiDefinition.esm.js').then((m) => ({
|
|
6
7
|
default: m.OpenApiDefinition
|
|
7
8
|
}))
|
|
@@ -10,13 +11,13 @@ const OpenApiDefinitionWidget = (props) => {
|
|
|
10
11
|
const validSubmitMethods = props.supportedSubmitMethods?.map(
|
|
11
12
|
(method) => method.toLocaleLowerCase()
|
|
12
13
|
);
|
|
13
|
-
return /* @__PURE__ */
|
|
14
|
+
return /* @__PURE__ */ jsx(Suspense, { fallback: /* @__PURE__ */ jsx(Progress, {}), children: /* @__PURE__ */ jsx(
|
|
14
15
|
LazyOpenApiDefinition,
|
|
15
16
|
{
|
|
16
17
|
...props,
|
|
17
18
|
supportedSubmitMethods: validSubmitMethods
|
|
18
19
|
}
|
|
19
|
-
));
|
|
20
|
+
) });
|
|
20
21
|
};
|
|
21
22
|
|
|
22
23
|
export { OpenApiDefinitionWidget };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OpenApiDefinitionWidget.esm.js","sources":["../../../src/components/OpenApiDefinitionWidget/OpenApiDefinitionWidget.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 { Progress } from '@backstage/core-components';\nimport
|
|
1
|
+
{"version":3,"file":"OpenApiDefinitionWidget.esm.js","sources":["../../../src/components/OpenApiDefinitionWidget/OpenApiDefinitionWidget.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 { Progress } from '@backstage/core-components';\nimport { lazy, Suspense } from 'react';\n\n// The swagger-ui component and related CSS has a significant size, only load it\n// if the element is actually used.\nconst LazyOpenApiDefinition = lazy(() =>\n import('./OpenApiDefinition').then(m => ({\n default: m.OpenApiDefinition,\n })),\n);\n\n/** @public */\nexport type OpenApiDefinitionWidgetProps = {\n definition: string;\n requestInterceptor?: (req: any) => any | Promise<any>;\n supportedSubmitMethods?: string[];\n};\n\n/** @public */\nexport const OpenApiDefinitionWidget = (\n props: OpenApiDefinitionWidgetProps,\n) => {\n const validSubmitMethods = props.supportedSubmitMethods?.map(method =>\n method.toLocaleLowerCase(),\n );\n return (\n <Suspense fallback={<Progress />}>\n <LazyOpenApiDefinition\n {...props}\n supportedSubmitMethods={validSubmitMethods}\n />\n </Suspense>\n );\n};\n"],"names":[],"mappings":";;;;AAqBA,MAAM,qBAAwB,GAAA,IAAA;AAAA,EAAK,MACjC,OAAO,4BAAqB,CAAA,CAAE,KAAK,CAAM,CAAA,MAAA;AAAA,IACvC,SAAS,CAAE,CAAA;AAAA,GACX,CAAA;AACJ,CAAA;AAUa,MAAA,uBAAA,GAA0B,CACrC,KACG,KAAA;AACH,EAAM,MAAA,kBAAA,GAAqB,MAAM,sBAAwB,EAAA,GAAA;AAAA,IAAI,CAAA,MAAA,KAC3D,OAAO,iBAAkB;AAAA,GAC3B;AACA,EAAA,uBACG,GAAA,CAAA,QAAA,EAAA,EAAS,QAAU,kBAAA,GAAA,CAAC,YAAS,CAC5B,EAAA,QAAA,kBAAA,GAAA;AAAA,IAAC,qBAAA;AAAA,IAAA;AAAA,MACE,GAAG,KAAA;AAAA,MACJ,sBAAwB,EAAA;AAAA;AAAA,GAE5B,EAAA,CAAA;AAEJ;;;;"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { jsx } from 'react/jsx-runtime';
|
|
2
2
|
import { CodeSnippet } from '@backstage/core-components';
|
|
3
3
|
|
|
4
4
|
const PlainApiDefinitionWidget = (props) => {
|
|
5
|
-
return /* @__PURE__ */
|
|
5
|
+
return /* @__PURE__ */ jsx(
|
|
6
6
|
CodeSnippet,
|
|
7
7
|
{
|
|
8
8
|
text: props.definition,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PlainApiDefinitionWidget.esm.js","sources":["../../../src/components/PlainApiDefinitionWidget/PlainApiDefinitionWidget.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
|
|
1
|
+
{"version":3,"file":"PlainApiDefinitionWidget.esm.js","sources":["../../../src/components/PlainApiDefinitionWidget/PlainApiDefinitionWidget.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 { CodeSnippet } from '@backstage/core-components';\n\n/** @public */\nexport type PlainApiDefinitionWidgetProps = {\n definition: any;\n language: string;\n};\n\n/** @public */\nexport const PlainApiDefinitionWidget = (\n props: PlainApiDefinitionWidgetProps,\n) => {\n return (\n <CodeSnippet\n text={props.definition}\n language={props.language}\n showCopyCodeButton\n />\n );\n};\n"],"names":[],"mappings":";;;AAyBa,MAAA,wBAAA,GAA2B,CACtC,KACG,KAAA;AACH,EACE,uBAAA,GAAA;AAAA,IAAC,WAAA;AAAA,IAAA;AAAA,MACC,MAAM,KAAM,CAAA,UAAA;AAAA,MACZ,UAAU,KAAM,CAAA,QAAA;AAAA,MAChB,kBAAkB,EAAA;AAAA;AAAA,GACpB;AAEJ;;;;"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { jsx } from 'react/jsx-runtime';
|
|
2
2
|
import { CodeSnippet } from '@backstage/core-components';
|
|
3
3
|
import { useTheme } from '@material-ui/core/styles';
|
|
4
4
|
|
|
5
5
|
const TrpcApiDefinitionWidget = (props) => {
|
|
6
6
|
const { definition } = props;
|
|
7
7
|
const theme = useTheme();
|
|
8
|
-
return /* @__PURE__ */
|
|
8
|
+
return /* @__PURE__ */ jsx(
|
|
9
9
|
CodeSnippet,
|
|
10
10
|
{
|
|
11
11
|
customStyle: { backgroundColor: theme.palette.background.default },
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TrpcApiDefinitionWidget.esm.js","sources":["../../../src/components/TrpcDefinitionWidget/TrpcApiDefinitionWidget.tsx"],"sourcesContent":["/*\n * Copyright 2023 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 */\nimport
|
|
1
|
+
{"version":3,"file":"TrpcApiDefinitionWidget.esm.js","sources":["../../../src/components/TrpcDefinitionWidget/TrpcApiDefinitionWidget.tsx"],"sourcesContent":["/*\n * Copyright 2023 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 */\nimport { CodeSnippet } from '@backstage/core-components';\nimport { useTheme } from '@material-ui/core/styles';\n\n/** @public */\nexport type TrpcApiDefinitionWidgetProps = {\n definition: string;\n};\n\n/** @public */\nexport const TrpcApiDefinitionWidget = (\n props: TrpcApiDefinitionWidgetProps,\n) => {\n const { definition } = props;\n const theme = useTheme();\n return (\n <CodeSnippet\n customStyle={{ backgroundColor: theme.palette.background.default }}\n text={definition}\n language=\"typescript\"\n showCopyCodeButton\n />\n );\n};\n"],"names":[],"mappings":";;;;AAwBa,MAAA,uBAAA,GAA0B,CACrC,KACG,KAAA;AACH,EAAM,MAAA,EAAE,YAAe,GAAA,KAAA;AACvB,EAAA,MAAM,QAAQ,QAAS,EAAA;AACvB,EACE,uBAAA,GAAA;AAAA,IAAC,WAAA;AAAA,IAAA;AAAA,MACC,aAAa,EAAE,eAAA,EAAiB,KAAM,CAAA,OAAA,CAAQ,WAAW,OAAQ,EAAA;AAAA,MACjE,IAAM,EAAA,UAAA;AAAA,MACN,QAAS,EAAA,YAAA;AAAA,MACT,kBAAkB,EAAA;AAAA;AAAA,GACpB;AAEJ;;;;"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import React__default from 'react';
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
3
2
|
import * as _backstage_core_components from '@backstage/core-components';
|
|
4
3
|
import { TableColumn, TableProps, InfoCardVariants, TableOptions } from '@backstage/core-components';
|
|
5
4
|
import { CatalogTableRow } from '@backstage/plugin-catalog';
|
|
6
5
|
import { UserListFilterKind, EntityOwnerPickerProps, EntityListPagination } from '@backstage/plugin-catalog-react';
|
|
6
|
+
import { ReactElement } from 'react';
|
|
7
7
|
import * as _backstage_catalog_model from '@backstage/catalog-model';
|
|
8
8
|
import { ApiEntity, ComponentEntity } from '@backstage/catalog-model';
|
|
9
9
|
import * as _backstage_core_plugin_api from '@backstage/core-plugin-api';
|
|
@@ -23,22 +23,22 @@ type DefaultApiExplorerPageProps = {
|
|
|
23
23
|
* DefaultApiExplorerPage
|
|
24
24
|
* @public
|
|
25
25
|
*/
|
|
26
|
-
declare const DefaultApiExplorerPage: (props: DefaultApiExplorerPageProps) =>
|
|
26
|
+
declare const DefaultApiExplorerPage: (props: DefaultApiExplorerPageProps) => react_jsx_runtime.JSX.Element;
|
|
27
27
|
|
|
28
28
|
/**
|
|
29
29
|
* ApiExplorerPage
|
|
30
30
|
* @public
|
|
31
31
|
*/
|
|
32
|
-
declare const ApiExplorerPage$1: (props: DefaultApiExplorerPageProps) =>
|
|
32
|
+
declare const ApiExplorerPage$1: (props: DefaultApiExplorerPageProps) => react_jsx_runtime.JSX.Element;
|
|
33
33
|
|
|
34
34
|
/** @public */
|
|
35
|
-
declare const ApiDefinitionCard: () =>
|
|
35
|
+
declare const ApiDefinitionCard: () => react_jsx_runtime.JSX.Element;
|
|
36
36
|
|
|
37
37
|
/** @public */
|
|
38
38
|
type ApiDefinitionWidget = {
|
|
39
39
|
type: string;
|
|
40
40
|
title: string;
|
|
41
|
-
component: (definition: string) =>
|
|
41
|
+
component: (definition: string) => ReactElement;
|
|
42
42
|
rawLanguage?: string;
|
|
43
43
|
};
|
|
44
44
|
/** @public */
|
|
@@ -49,7 +49,7 @@ declare function defaultDefinitionWidgets(): ApiDefinitionWidget[];
|
|
|
49
49
|
*/
|
|
50
50
|
declare const ApiTypeTitle: (props: {
|
|
51
51
|
apiEntity: ApiEntity;
|
|
52
|
-
}) =>
|
|
52
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
53
53
|
|
|
54
54
|
/**
|
|
55
55
|
* A dialog that lets users inspect the API definition.
|
|
@@ -60,7 +60,7 @@ declare function ApiDefinitionDialog(props: {
|
|
|
60
60
|
open: boolean;
|
|
61
61
|
entity: ApiEntity;
|
|
62
62
|
onClose: () => void;
|
|
63
|
-
}):
|
|
63
|
+
}): react_jsx_runtime.JSX.Element;
|
|
64
64
|
|
|
65
65
|
/**
|
|
66
66
|
* @public
|
|
@@ -70,7 +70,7 @@ declare const ConsumedApisCard: (props: {
|
|
|
70
70
|
title?: string;
|
|
71
71
|
columns?: TableColumn<ApiEntity>[];
|
|
72
72
|
tableOptions?: TableOptions;
|
|
73
|
-
}) =>
|
|
73
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
74
74
|
|
|
75
75
|
/**
|
|
76
76
|
* @public
|
|
@@ -80,7 +80,7 @@ declare const HasApisCard: (props: {
|
|
|
80
80
|
title?: string;
|
|
81
81
|
columns?: TableColumn<ApiEntity>[];
|
|
82
82
|
tableOptions?: TableOptions;
|
|
83
|
-
}) =>
|
|
83
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
84
84
|
|
|
85
85
|
/**
|
|
86
86
|
* @public
|
|
@@ -90,7 +90,7 @@ declare const ProvidedApisCard: (props: {
|
|
|
90
90
|
title?: string;
|
|
91
91
|
columns?: TableColumn<ApiEntity>[];
|
|
92
92
|
tableOptions?: TableOptions;
|
|
93
|
-
}) =>
|
|
93
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
94
94
|
|
|
95
95
|
/** @public */
|
|
96
96
|
type AsyncApiResolver = {
|
|
@@ -106,7 +106,7 @@ type AsyncApiDefinitionWidgetProps = {
|
|
|
106
106
|
resolvers?: AsyncApiResolver[];
|
|
107
107
|
};
|
|
108
108
|
/** @public */
|
|
109
|
-
declare const AsyncApiDefinitionWidget: (props: AsyncApiDefinitionWidgetProps) =>
|
|
109
|
+
declare const AsyncApiDefinitionWidget: (props: AsyncApiDefinitionWidgetProps) => react_jsx_runtime.JSX.Element;
|
|
110
110
|
|
|
111
111
|
/**
|
|
112
112
|
* @public
|
|
@@ -114,20 +114,20 @@ declare const AsyncApiDefinitionWidget: (props: AsyncApiDefinitionWidgetProps) =
|
|
|
114
114
|
declare const ConsumingComponentsCard: (props: {
|
|
115
115
|
variant?: InfoCardVariants;
|
|
116
116
|
columns?: TableColumn<ComponentEntity>[];
|
|
117
|
-
}) =>
|
|
117
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
118
118
|
|
|
119
119
|
/** @public */
|
|
120
120
|
declare const ProvidingComponentsCard: (props: {
|
|
121
121
|
variant?: InfoCardVariants;
|
|
122
122
|
columns?: TableColumn<ComponentEntity>[];
|
|
123
|
-
}) =>
|
|
123
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
124
124
|
|
|
125
125
|
/** @public */
|
|
126
126
|
type GraphQlDefinitionWidgetProps = {
|
|
127
127
|
definition: string;
|
|
128
128
|
};
|
|
129
129
|
/** @public */
|
|
130
|
-
declare const GraphQlDefinitionWidget: (props: GraphQlDefinitionWidgetProps) =>
|
|
130
|
+
declare const GraphQlDefinitionWidget: (props: GraphQlDefinitionWidgetProps) => react_jsx_runtime.JSX.Element;
|
|
131
131
|
|
|
132
132
|
/** @public */
|
|
133
133
|
type OpenApiDefinitionWidgetProps = {
|
|
@@ -136,7 +136,7 @@ type OpenApiDefinitionWidgetProps = {
|
|
|
136
136
|
supportedSubmitMethods?: string[];
|
|
137
137
|
};
|
|
138
138
|
/** @public */
|
|
139
|
-
declare const OpenApiDefinitionWidget: (props: OpenApiDefinitionWidgetProps) =>
|
|
139
|
+
declare const OpenApiDefinitionWidget: (props: OpenApiDefinitionWidgetProps) => react_jsx_runtime.JSX.Element;
|
|
140
140
|
|
|
141
141
|
/** @public */
|
|
142
142
|
type PlainApiDefinitionWidgetProps = {
|
|
@@ -144,14 +144,14 @@ type PlainApiDefinitionWidgetProps = {
|
|
|
144
144
|
language: string;
|
|
145
145
|
};
|
|
146
146
|
/** @public */
|
|
147
|
-
declare const PlainApiDefinitionWidget: (props: PlainApiDefinitionWidgetProps) =>
|
|
147
|
+
declare const PlainApiDefinitionWidget: (props: PlainApiDefinitionWidgetProps) => react_jsx_runtime.JSX.Element;
|
|
148
148
|
|
|
149
149
|
/** @public */
|
|
150
150
|
type TrpcApiDefinitionWidgetProps = {
|
|
151
151
|
definition: string;
|
|
152
152
|
};
|
|
153
153
|
/** @public */
|
|
154
|
-
declare const TrpcApiDefinitionWidget: (props: TrpcApiDefinitionWidgetProps) =>
|
|
154
|
+
declare const TrpcApiDefinitionWidget: (props: TrpcApiDefinitionWidgetProps) => react_jsx_runtime.JSX.Element;
|
|
155
155
|
|
|
156
156
|
/** @public */
|
|
157
157
|
declare const apiDocsConfigRef: _backstage_core_plugin_api.ApiRef<ApiDocsConfig>;
|
|
@@ -167,39 +167,39 @@ declare const apiDocsPlugin: _backstage_core_plugin_api.BackstagePlugin<{
|
|
|
167
167
|
registerApi: _backstage_core_plugin_api.ExternalRouteRef<undefined, true>;
|
|
168
168
|
}>;
|
|
169
169
|
/** @public */
|
|
170
|
-
declare const ApiExplorerPage: (props: DefaultApiExplorerPageProps) =>
|
|
170
|
+
declare const ApiExplorerPage: (props: DefaultApiExplorerPageProps) => react_jsx_runtime.JSX.Element;
|
|
171
171
|
/** @public */
|
|
172
|
-
declare const EntityApiDefinitionCard: () =>
|
|
172
|
+
declare const EntityApiDefinitionCard: () => react_jsx_runtime.JSX.Element;
|
|
173
173
|
/** @public */
|
|
174
174
|
declare const EntityConsumedApisCard: (props: {
|
|
175
175
|
variant?: _backstage_core_components.InfoCardVariants;
|
|
176
176
|
title?: string;
|
|
177
177
|
columns?: _backstage_core_components.TableColumn<ApiEntity>[];
|
|
178
178
|
tableOptions?: _backstage_core_components.TableOptions;
|
|
179
|
-
}) =>
|
|
179
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
180
180
|
/** @public */
|
|
181
181
|
declare const EntityConsumingComponentsCard: (props: {
|
|
182
182
|
variant?: _backstage_core_components.InfoCardVariants;
|
|
183
183
|
columns?: _backstage_core_components.TableColumn<_backstage_catalog_model.ComponentEntity>[];
|
|
184
|
-
}) =>
|
|
184
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
185
185
|
/** @public */
|
|
186
186
|
declare const EntityProvidedApisCard: (props: {
|
|
187
187
|
variant?: _backstage_core_components.InfoCardVariants;
|
|
188
188
|
title?: string;
|
|
189
189
|
columns?: _backstage_core_components.TableColumn<ApiEntity>[];
|
|
190
190
|
tableOptions?: _backstage_core_components.TableOptions;
|
|
191
|
-
}) =>
|
|
191
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
192
192
|
/** @public */
|
|
193
193
|
declare const EntityProvidingComponentsCard: (props: {
|
|
194
194
|
variant?: _backstage_core_components.InfoCardVariants;
|
|
195
195
|
columns?: _backstage_core_components.TableColumn<_backstage_catalog_model.ComponentEntity>[];
|
|
196
|
-
}) =>
|
|
196
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
197
197
|
/** @public */
|
|
198
198
|
declare const EntityHasApisCard: (props: {
|
|
199
199
|
variant?: _backstage_core_components.InfoCardVariants;
|
|
200
200
|
title?: string;
|
|
201
201
|
columns?: _backstage_core_components.TableColumn<ApiEntity>[];
|
|
202
202
|
tableOptions?: _backstage_core_components.TableOptions;
|
|
203
|
-
}) =>
|
|
203
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
204
204
|
|
|
205
205
|
export { ApiDefinitionCard, ApiDefinitionDialog, type ApiDefinitionWidget, type ApiDocsConfig, ApiExplorerPage$1 as ApiExplorerIndexPage, ApiExplorerPage, ApiTypeTitle, AsyncApiDefinitionWidget, type AsyncApiDefinitionWidgetProps, type AsyncApiResolver, ConsumedApisCard, ConsumingComponentsCard, DefaultApiExplorerPage, type DefaultApiExplorerPageProps, EntityApiDefinitionCard, EntityConsumedApisCard, EntityConsumingComponentsCard, EntityHasApisCard, EntityProvidedApisCard, EntityProvidingComponentsCard, GraphQlDefinitionWidget, type GraphQlDefinitionWidgetProps, HasApisCard, OpenApiDefinitionWidget, type OpenApiDefinitionWidgetProps, PlainApiDefinitionWidget, type PlainApiDefinitionWidgetProps, ProvidedApisCard, ProvidingComponentsCard, TrpcApiDefinitionWidget, type TrpcApiDefinitionWidgetProps, apiDocsConfigRef, apiDocsPlugin, defaultDefinitionWidgets, apiDocsPlugin as plugin };
|
package/dist/plugin.esm.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import 'react/jsx-runtime';
|
|
1
2
|
import '@backstage/plugin-catalog-react';
|
|
2
3
|
import '@material-ui/lab/Alert';
|
|
3
|
-
import 'react';
|
|
4
4
|
import { apiDocsConfigRef } from './config.esm.js';
|
|
5
5
|
import '@backstage/core-components';
|
|
6
6
|
import { createPlugin, createApiFactory, createRoutableExtension, createComponentExtension } from '@backstage/core-plugin-api';
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import { createTranslationRef } from '@backstage/frontend-plugin-api';
|
|
2
|
+
|
|
3
|
+
const apiDocsTranslationRef = createTranslationRef({
|
|
4
|
+
id: "api-docs",
|
|
5
|
+
messages: {
|
|
6
|
+
apiDefinitionDialog: {
|
|
7
|
+
closeButtonTitle: "Close",
|
|
8
|
+
tabsAriaLabel: "API definition options",
|
|
9
|
+
toggleButtonAriaLabel: "Toggle API Definition Dialog"
|
|
10
|
+
},
|
|
11
|
+
defaultApiExplorerPage: {
|
|
12
|
+
title: "APIs",
|
|
13
|
+
subtitle: "{{orgName}} API Explorer",
|
|
14
|
+
pageTitleOverride: "APIs",
|
|
15
|
+
createButtonTitle: "Register Existing API",
|
|
16
|
+
supportButtonTitle: "All your APIs"
|
|
17
|
+
},
|
|
18
|
+
consumedApisCard: {
|
|
19
|
+
title: "Consumed APIs",
|
|
20
|
+
error: {
|
|
21
|
+
title: "Could not load APIs"
|
|
22
|
+
},
|
|
23
|
+
emptyContent: {
|
|
24
|
+
title: "This {{entity}} does not consume any APIs."
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
hasApisCard: {
|
|
28
|
+
title: "APIs",
|
|
29
|
+
error: {
|
|
30
|
+
title: "Could not load APIs"
|
|
31
|
+
},
|
|
32
|
+
emptyContent: {
|
|
33
|
+
title: "This {{entity}} does not contain any APIs."
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
providedApisCard: {
|
|
37
|
+
title: "Provided APIs",
|
|
38
|
+
error: {
|
|
39
|
+
title: "Could not load APIs"
|
|
40
|
+
},
|
|
41
|
+
emptyContent: {
|
|
42
|
+
title: "This {{entity}} does not provide any APIs."
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
apiEntityColumns: {
|
|
46
|
+
typeTitle: "Type",
|
|
47
|
+
apiDefinitionTitle: "API Definition"
|
|
48
|
+
},
|
|
49
|
+
consumingComponentsCard: {
|
|
50
|
+
title: "Consumers",
|
|
51
|
+
error: {
|
|
52
|
+
title: "Could not load components"
|
|
53
|
+
},
|
|
54
|
+
emptyContent: {
|
|
55
|
+
title: "No component consumes this API."
|
|
56
|
+
}
|
|
57
|
+
},
|
|
58
|
+
providingComponentsCard: {
|
|
59
|
+
title: "Providers",
|
|
60
|
+
error: {
|
|
61
|
+
title: "Could not load components"
|
|
62
|
+
},
|
|
63
|
+
emptyContent: {
|
|
64
|
+
title: "No component provides this API."
|
|
65
|
+
}
|
|
66
|
+
},
|
|
67
|
+
apisCardHelpLinkTitle: "Learn how to change this"
|
|
68
|
+
}
|
|
69
|
+
});
|
|
70
|
+
|
|
71
|
+
export { apiDocsTranslationRef };
|
|
72
|
+
//# sourceMappingURL=translation.esm.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"translation.esm.js","sources":["../src/translation.ts"],"sourcesContent":["/*\n * Copyright 2025 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 { createTranslationRef } from '@backstage/frontend-plugin-api';\n\n/**\n * @alpha\n */\nexport const apiDocsTranslationRef = createTranslationRef({\n id: 'api-docs',\n messages: {\n apiDefinitionDialog: {\n closeButtonTitle: 'Close',\n tabsAriaLabel: 'API definition options',\n toggleButtonAriaLabel: 'Toggle API Definition Dialog',\n },\n defaultApiExplorerPage: {\n title: 'APIs',\n subtitle: '{{orgName}} API Explorer',\n pageTitleOverride: 'APIs',\n createButtonTitle: 'Register Existing API',\n supportButtonTitle: 'All your APIs',\n },\n consumedApisCard: {\n title: 'Consumed APIs',\n error: {\n title: 'Could not load APIs',\n },\n emptyContent: {\n title: 'This {{entity}} does not consume any APIs.',\n },\n },\n hasApisCard: {\n title: 'APIs',\n error: {\n title: 'Could not load APIs',\n },\n emptyContent: {\n title: 'This {{entity}} does not contain any APIs.',\n },\n },\n providedApisCard: {\n title: 'Provided APIs',\n error: {\n title: 'Could not load APIs',\n },\n emptyContent: {\n title: 'This {{entity}} does not provide any APIs.',\n },\n },\n apiEntityColumns: {\n typeTitle: 'Type',\n apiDefinitionTitle: 'API Definition',\n },\n consumingComponentsCard: {\n title: 'Consumers',\n error: {\n title: 'Could not load components',\n },\n emptyContent: {\n title: 'No component consumes this API.',\n },\n },\n providingComponentsCard: {\n title: 'Providers',\n error: {\n title: 'Could not load components',\n },\n emptyContent: {\n title: 'No component provides this API.',\n },\n },\n apisCardHelpLinkTitle: 'Learn how to change this',\n },\n});\n"],"names":[],"mappings":";;AAqBO,MAAM,wBAAwB,oBAAqB,CAAA;AAAA,EACxD,EAAI,EAAA,UAAA;AAAA,EACJ,QAAU,EAAA;AAAA,IACR,mBAAqB,EAAA;AAAA,MACnB,gBAAkB,EAAA,OAAA;AAAA,MAClB,aAAe,EAAA,wBAAA;AAAA,MACf,qBAAuB,EAAA;AAAA,KACzB;AAAA,IACA,sBAAwB,EAAA;AAAA,MACtB,KAAO,EAAA,MAAA;AAAA,MACP,QAAU,EAAA,0BAAA;AAAA,MACV,iBAAmB,EAAA,MAAA;AAAA,MACnB,iBAAmB,EAAA,uBAAA;AAAA,MACnB,kBAAoB,EAAA;AAAA,KACtB;AAAA,IACA,gBAAkB,EAAA;AAAA,MAChB,KAAO,EAAA,eAAA;AAAA,MACP,KAAO,EAAA;AAAA,QACL,KAAO,EAAA;AAAA,OACT;AAAA,MACA,YAAc,EAAA;AAAA,QACZ,KAAO,EAAA;AAAA;AACT,KACF;AAAA,IACA,WAAa,EAAA;AAAA,MACX,KAAO,EAAA,MAAA;AAAA,MACP,KAAO,EAAA;AAAA,QACL,KAAO,EAAA;AAAA,OACT;AAAA,MACA,YAAc,EAAA;AAAA,QACZ,KAAO,EAAA;AAAA;AACT,KACF;AAAA,IACA,gBAAkB,EAAA;AAAA,MAChB,KAAO,EAAA,eAAA;AAAA,MACP,KAAO,EAAA;AAAA,QACL,KAAO,EAAA;AAAA,OACT;AAAA,MACA,YAAc,EAAA;AAAA,QACZ,KAAO,EAAA;AAAA;AACT,KACF;AAAA,IACA,gBAAkB,EAAA;AAAA,MAChB,SAAW,EAAA,MAAA;AAAA,MACX,kBAAoB,EAAA;AAAA,KACtB;AAAA,IACA,uBAAyB,EAAA;AAAA,MACvB,KAAO,EAAA,WAAA;AAAA,MACP,KAAO,EAAA;AAAA,QACL,KAAO,EAAA;AAAA,OACT;AAAA,MACA,YAAc,EAAA;AAAA,QACZ,KAAO,EAAA;AAAA;AACT,KACF;AAAA,IACA,uBAAyB,EAAA;AAAA,MACvB,KAAO,EAAA,WAAA;AAAA,MACP,KAAO,EAAA;AAAA,QACL,KAAO,EAAA;AAAA,OACT;AAAA,MACA,YAAc,EAAA;AAAA,QACZ,KAAO,EAAA;AAAA;AACT,KACF;AAAA,IACA,qBAAuB,EAAA;AAAA;AAE3B,CAAC;;;;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@backstage/plugin-api-docs",
|
|
3
|
-
"version": "0.12.6
|
|
3
|
+
"version": "0.12.6",
|
|
4
4
|
"description": "A Backstage plugin that helps represent API entities in the frontend",
|
|
5
5
|
"backstage": {
|
|
6
6
|
"role": "frontend-plugin",
|
|
@@ -44,11 +44,11 @@
|
|
|
44
44
|
"types": "./dist/index.d.ts",
|
|
45
45
|
"typesVersions": {
|
|
46
46
|
"*": {
|
|
47
|
-
"*": [
|
|
48
|
-
"dist/index.d.ts"
|
|
49
|
-
],
|
|
50
47
|
"alpha": [
|
|
51
48
|
"dist/alpha.d.ts"
|
|
49
|
+
],
|
|
50
|
+
"package.json": [
|
|
51
|
+
"package.json"
|
|
52
52
|
]
|
|
53
53
|
}
|
|
54
54
|
},
|
|
@@ -66,15 +66,15 @@
|
|
|
66
66
|
},
|
|
67
67
|
"dependencies": {
|
|
68
68
|
"@asyncapi/react-component": "^2.3.3",
|
|
69
|
-
"@backstage/catalog-model": "1.7.3",
|
|
70
|
-
"@backstage/core-compat-api": "0.4.1
|
|
71
|
-
"@backstage/core-components": "0.17.1
|
|
72
|
-
"@backstage/core-plugin-api": "1.10.
|
|
73
|
-
"@backstage/frontend-plugin-api": "0.10.1
|
|
74
|
-
"@backstage/plugin-catalog": "1.29.0
|
|
75
|
-
"@backstage/plugin-catalog-common": "1.1.3",
|
|
76
|
-
"@backstage/plugin-catalog-react": "1.
|
|
77
|
-
"@backstage/plugin-permission-react": "0.4.
|
|
69
|
+
"@backstage/catalog-model": "^1.7.3",
|
|
70
|
+
"@backstage/core-compat-api": "^0.4.1",
|
|
71
|
+
"@backstage/core-components": "^0.17.1",
|
|
72
|
+
"@backstage/core-plugin-api": "^1.10.6",
|
|
73
|
+
"@backstage/frontend-plugin-api": "^0.10.1",
|
|
74
|
+
"@backstage/plugin-catalog": "^1.29.0",
|
|
75
|
+
"@backstage/plugin-catalog-common": "^1.1.3",
|
|
76
|
+
"@backstage/plugin-catalog-react": "^1.17.0",
|
|
77
|
+
"@backstage/plugin-permission-react": "^0.4.33",
|
|
78
78
|
"@graphiql/react": "^0.23.0",
|
|
79
79
|
"@material-ui/core": "^4.12.2",
|
|
80
80
|
"@material-ui/icons": "^4.9.1",
|
|
@@ -87,10 +87,10 @@
|
|
|
87
87
|
"swagger-ui-react": "^5.0.0"
|
|
88
88
|
},
|
|
89
89
|
"devDependencies": {
|
|
90
|
-
"@backstage/cli": "0.32.0
|
|
91
|
-
"@backstage/core-app-api": "1.16.
|
|
92
|
-
"@backstage/dev-utils": "1.1.9
|
|
93
|
-
"@backstage/test-utils": "1.7.
|
|
90
|
+
"@backstage/cli": "^0.32.0",
|
|
91
|
+
"@backstage/core-app-api": "^1.16.1",
|
|
92
|
+
"@backstage/dev-utils": "^1.1.9",
|
|
93
|
+
"@backstage/test-utils": "^1.7.7",
|
|
94
94
|
"@testing-library/dom": "^10.0.0",
|
|
95
95
|
"@testing-library/jest-dom": "^6.0.0",
|
|
96
96
|
"@testing-library/react": "^16.0.0",
|