introduce the @backstage/filter-predicates package

Signed-off-by: Fredrik Adelöw <freben@gmail.com>
This commit is contained in:
Fredrik Adelöw
2026-02-03 14:36:56 +01:00
parent f2c1da4c4c
commit 7feb83b586
42 changed files with 1092 additions and 322 deletions
+4 -4
View File
@@ -10,12 +10,12 @@ import { ApiRef } from '@backstage/frontend-plugin-api';
import { ComponentType } from 'react';
import { ConfigurableExtensionDataRef } from '@backstage/frontend-plugin-api';
import { Entity } from '@backstage/catalog-model';
import { EntityPredicate } from '@backstage/plugin-catalog-react/alpha';
import { ExtensionBlueprintParams } from '@backstage/frontend-plugin-api';
import { ExtensionDataRef } from '@backstage/frontend-plugin-api';
import { ExtensionInput } from '@backstage/frontend-plugin-api';
import { ExternalRouteRef } from '@backstage/core-plugin-api';
import { FieldExtensionOptions } from '@backstage/plugin-scaffolder-react';
import { FilterPredicate } from '@backstage/filter-predicates';
import { FormField } from '@backstage/plugin-scaffolder-react/alpha';
import type { FormProps as FormProps_2 } from '@rjsf/core';
import { FormProps as FormProps_3 } from '@backstage/plugin-scaffolder-react';
@@ -137,10 +137,10 @@ const _default: OverridableFrontendPlugin<
config: {
label: string | undefined;
title: string | undefined;
filter: EntityPredicate | undefined;
filter: FilterPredicate | undefined;
};
configInput: {
filter?: EntityPredicate | undefined;
filter?: FilterPredicate | undefined;
label?: string | undefined;
title?: string | undefined;
};
@@ -167,7 +167,7 @@ const _default: OverridableFrontendPlugin<
inputs: {};
params: {
useProps: () => Omit<IconLinkVerticalProps, 'color'>;
filter?: EntityPredicate | ((entity: Entity) => boolean);
filter?: FilterPredicate | ((entity: Entity) => boolean);
};
}>;
'nav-item:scaffolder': OverridableExtensionDefinition<{