removed deprecated entity props

Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
Patrik Oldsberg
2022-02-18 13:09:56 +01:00
parent 10a0a8046b
commit 2262fe19c9
41 changed files with 61 additions and 186 deletions
+7 -15
View File
@@ -9,7 +9,6 @@ import { ApiEntity } from '@backstage/catalog-model';
import { ApiRef } from '@backstage/core-plugin-api';
import { BackstagePlugin } from '@backstage/core-plugin-api';
import { CatalogTableRow } from '@backstage/plugin-catalog';
import { Entity } from '@backstage/catalog-model';
import { ExternalRouteRef } from '@backstage/core-plugin-api';
import { default as React_2 } from 'react';
import { RouteRef } from '@backstage/core-plugin-api';
@@ -17,11 +16,10 @@ import { TableColumn } from '@backstage/core-components';
import { TableProps } from '@backstage/core-components';
import { UserListFilterKind } from '@backstage/plugin-catalog-react';
// Warning: (ae-forgotten-export) The symbol "Props" needs to be exported by the entry point index.d.ts
// Warning: (ae-missing-release-tag) "ApiDefinitionCard" is exported by the package, but it is missing a release tag (@alpha, @beta, @public, or @internal)
//
// @public (undocumented)
export const ApiDefinitionCard: (_: Props) => JSX.Element;
export const ApiDefinitionCard: () => JSX.Element;
// Warning: (ae-missing-release-tag) "ApiDefinitionWidget" is exported by the package, but it is missing a release tag (@alpha, @beta, @public, or @internal)
//
@@ -92,13 +90,13 @@ export type AsyncApiDefinitionWidgetProps = {
// Warning: (ae-missing-release-tag) "ConsumedApisCard" is exported by the package, but it is missing a release tag (@alpha, @beta, @public, or @internal)
//
// @public (undocumented)
export const ConsumedApisCard: ({ variant }: Props_2) => JSX.Element;
export const ConsumedApisCard: ({ variant }: Props) => JSX.Element;
// Warning: (ae-forgotten-export) The symbol "Props" needs to be exported by the entry point index.d.ts
// Warning: (ae-missing-release-tag) "ConsumingComponentsCard" is exported by the package, but it is missing a release tag (@alpha, @beta, @public, or @internal)
//
// @public (undocumented)
export const ConsumingComponentsCard: ({ variant }: Props_5) => JSX.Element;
export const ConsumingComponentsCard: ({ variant }: Props_4) => JSX.Element;
// @public
export const DefaultApiExplorerPage: ({
@@ -122,9 +120,7 @@ export function defaultDefinitionWidgets(): ApiDefinitionWidget[];
// Warning: (ae-missing-release-tag) "EntityApiDefinitionCard" is exported by the package, but it is missing a release tag (@alpha, @beta, @public, or @internal)
//
// @public (undocumented)
export const EntityApiDefinitionCard: (_: {
apiEntity?: ApiEntity | undefined;
}) => JSX.Element;
export const EntityApiDefinitionCard: () => JSX.Element;
// Warning: (ae-missing-release-tag) "EntityConsumedApisCard" is exported by the package, but it is missing a release tag (@alpha, @beta, @public, or @internal)
//
@@ -132,7 +128,6 @@ export const EntityApiDefinitionCard: (_: {
export const EntityConsumedApisCard: ({
variant,
}: {
entity?: Entity | undefined;
variant?: 'gridItem' | undefined;
}) => JSX.Element;
@@ -142,7 +137,6 @@ export const EntityConsumedApisCard: ({
export const EntityConsumingComponentsCard: ({
variant,
}: {
entity?: Entity | undefined;
variant?: 'gridItem' | undefined;
}) => JSX.Element;
@@ -161,7 +155,6 @@ export const EntityHasApisCard: ({
export const EntityProvidedApisCard: ({
variant,
}: {
entity?: Entity | undefined;
variant?: 'gridItem' | undefined;
}) => JSX.Element;
@@ -171,7 +164,6 @@ export const EntityProvidedApisCard: ({
export const EntityProvidingComponentsCard: ({
variant,
}: {
entity?: Entity | undefined;
variant?: 'gridItem' | undefined;
}) => JSX.Element;
@@ -193,7 +185,7 @@ export type GraphQlDefinitionWidgetProps = {
// Warning: (ae-missing-release-tag) "HasApisCard" is exported by the package, but it is missing a release tag (@alpha, @beta, @public, or @internal)
//
// @public (undocumented)
export const HasApisCard: ({ variant }: Props_3) => JSX.Element;
export const HasApisCard: ({ variant }: Props_2) => JSX.Element;
// Warning: (ae-missing-release-tag) "OpenApiDefinitionWidget" is exported by the package, but it is missing a release tag (@alpha, @beta, @public, or @internal)
//
@@ -228,11 +220,11 @@ export type PlainApiDefinitionWidgetProps = {
// Warning: (ae-missing-release-tag) "ProvidedApisCard" is exported by the package, but it is missing a release tag (@alpha, @beta, @public, or @internal)
//
// @public (undocumented)
export const ProvidedApisCard: ({ variant }: Props_4) => JSX.Element;
export const ProvidedApisCard: ({ variant }: Props_3) => JSX.Element;
// Warning: (ae-forgotten-export) The symbol "Props" needs to be exported by the entry point index.d.ts
// Warning: (ae-missing-release-tag) "ProvidingComponentsCard" is exported by the package, but it is missing a release tag (@alpha, @beta, @public, or @internal)
//
// @public (undocumented)
export const ProvidingComponentsCard: ({ variant }: Props_6) => JSX.Element;
export const ProvidingComponentsCard: ({ variant }: Props_5) => JSX.Element;
```
@@ -24,12 +24,7 @@ import { PlainApiDefinitionWidget } from '../PlainApiDefinitionWidget';
import { CardTab, TabbedCard } from '@backstage/core-components';
import { useApi } from '@backstage/core-plugin-api';
type Props = {
/** @deprecated The entity is now grabbed from context instead */
apiEntity?: ApiEntity;
};
export const ApiDefinitionCard = (_: Props) => {
export const ApiDefinitionCard = () => {
const { entity } = useEntity<ApiEntity>();
const config = useApi(apiDocsConfigRef);
const { getApiDefinitionWidget } = config;
@@ -14,11 +14,7 @@
* limitations under the License.
*/
import {
ApiEntity,
Entity,
RELATION_CONSUMES_API,
} from '@backstage/catalog-model';
import { ApiEntity, RELATION_CONSUMES_API } from '@backstage/catalog-model';
import { Typography } from '@material-ui/core';
import {
EntityTable,
@@ -36,8 +32,6 @@ import {
} from '@backstage/core-components';
type Props = {
/** @deprecated The entity is now grabbed from context instead */
entity?: Entity;
variant?: 'gridItem';
};
@@ -14,11 +14,7 @@
* limitations under the License.
*/
import {
ApiEntity,
Entity,
RELATION_PROVIDES_API,
} from '@backstage/catalog-model';
import { ApiEntity, RELATION_PROVIDES_API } from '@backstage/catalog-model';
import { Typography } from '@material-ui/core';
import {
EntityTable,
@@ -36,8 +32,6 @@ import {
} from '@backstage/core-components';
type Props = {
/** @deprecated The entity is now grabbed from context instead */
entity?: Entity;
variant?: 'gridItem';
};
@@ -16,7 +16,6 @@
import {
ComponentEntity,
Entity,
RELATION_API_CONSUMED_BY,
} from '@backstage/catalog-model';
import { Typography } from '@material-ui/core';
@@ -35,8 +34,6 @@ import {
} from '@backstage/core-components';
type Props = {
/** @deprecated The entity is now grabbed from context instead */
entity?: Entity;
variant?: 'gridItem';
};
@@ -16,7 +16,6 @@
import {
ComponentEntity,
Entity,
RELATION_API_PROVIDED_BY,
} from '@backstage/catalog-model';
import { Typography } from '@material-ui/core';
@@ -35,8 +34,6 @@ import {
} from '@backstage/core-components';
type Props = {
/** @deprecated The entity is now grabbed from context instead */
entity?: Entity;
variant?: 'gridItem';
};