api-reports

Signed-off-by: Tim Hansen <timbonicus@gmail.com>
This commit is contained in:
Tim Hansen
2021-10-17 21:22:42 -06:00
parent f9cc2509f8
commit 3842901dda
3 changed files with 16 additions and 5 deletions
+12 -1
View File
@@ -645,10 +645,21 @@ export class EntityTypeFilter implements EntityFilter {
readonly value: string | string[];
}
// Warning: (ae-missing-release-tag) "EntityTypeFilterProps" is exported by the package, but it is missing a release tag (@alpha, @beta, @public, or @internal)
//
// @public (undocumented)
export type EntityTypeFilterProps = {
initialFilter?: string;
hidden?: boolean;
};
// Warning: (ae-missing-release-tag) "EntityTypePicker" is exported by the package, but it is missing a release tag (@alpha, @beta, @public, or @internal)
//
// @public (undocumented)
export const EntityTypePicker: () => JSX.Element | null;
export const EntityTypePicker: ({
hidden,
initialFilter,
}: EntityTypeFilterProps) => JSX.Element | null;
// Warning: (tsdoc-param-tag-missing-hyphen) The @param block should be followed by a parameter name and then a hyphen
// Warning: (ae-forgotten-export) The symbol "Props" needs to be exported by the entry point index.d.ts
@@ -22,7 +22,7 @@ import { useEntityTypeFilter } from '../../hooks/useEntityTypeFilter';
import { alertApiRef, useApi } from '@backstage/core-plugin-api';
import { Select } from '@backstage/core-components';
type EntityTypeFilterProps = {
export type EntityTypeFilterProps = {
initialFilter?: string;
hidden?: boolean;
};
@@ -57,7 +57,7 @@ export const EntityTypePicker = ({
})),
];
return !hidden ? (
return hidden ? null : (
<Box pb={1} pt={1}>
<Select
label="Type"
@@ -68,5 +68,5 @@ export const EntityTypePicker = ({
}
/>
</Box>
) : null;
);
};
@@ -14,4 +14,4 @@
* limitations under the License.
*/
export { EntityTypePicker } from './EntityTypePicker';
export * from './EntityTypePicker';