feat: removing filter expression possibilities
Signed-off-by: benjdlambert <ben@blam.sh>
This commit is contained in:
@@ -372,7 +372,7 @@ export const EntityHeaderBlueprint: ExtensionBlueprint<{
|
||||
name: undefined;
|
||||
params: {
|
||||
loader: () => Promise<JSX.Element>;
|
||||
filter?: string | EntityPredicate | ((entity: Entity) => boolean);
|
||||
filter?: EntityPredicate | ((entity: Entity) => boolean);
|
||||
};
|
||||
output:
|
||||
| ConfigurableExtensionDataRef<
|
||||
@@ -409,11 +409,6 @@ export const EntityHeaderBlueprint: ExtensionBlueprint<{
|
||||
'catalog.entity-filter-function',
|
||||
{}
|
||||
>;
|
||||
filterExpression: ConfigurableExtensionDataRef<
|
||||
string,
|
||||
'catalog.entity-filter-expression',
|
||||
{}
|
||||
>;
|
||||
element: ConfigurableExtensionDataRef<
|
||||
JSX_2.Element,
|
||||
'core.reactElement',
|
||||
|
||||
@@ -34,13 +34,11 @@ export const EntityHeaderBlueprint = createExtensionBlueprint({
|
||||
attachTo: { id: 'page:catalog/entity', input: 'headers' },
|
||||
dataRefs: {
|
||||
filterFunction: entityFilterFunctionDataRef,
|
||||
filterExpression: entityFilterExpressionDataRef,
|
||||
element: coreExtensionData.reactElement,
|
||||
},
|
||||
config: {
|
||||
schema: {
|
||||
filter: z =>
|
||||
z.union([z.string(), createEntityPredicateSchema(z)]).optional(),
|
||||
filter: z => createEntityPredicateSchema(z).optional(),
|
||||
},
|
||||
},
|
||||
output: [
|
||||
@@ -51,7 +49,7 @@ export const EntityHeaderBlueprint = createExtensionBlueprint({
|
||||
*factory(
|
||||
params: {
|
||||
loader: () => Promise<JSX.Element>;
|
||||
filter?: string | EntityPredicate | ((entity: Entity) => boolean);
|
||||
filter?: EntityPredicate | ((entity: Entity) => boolean);
|
||||
},
|
||||
{ node, config },
|
||||
) {
|
||||
|
||||
Reference in New Issue
Block a user