fix: replace old config schemas for extensions and blueprints
to overcome a lot of warnings given during for example testing where these extensions are used. Signed-off-by: Hellgren Heikki <heikki.hellgren@op.fi>
This commit is contained in:
@@ -71,7 +71,8 @@
|
||||
"@material-ui/core": "^4.12.2",
|
||||
"@material-ui/icons": "^4.9.1",
|
||||
"qs": "^6.9.4",
|
||||
"react-use": "^17.2.4"
|
||||
"react-use": "^17.2.4",
|
||||
"zod": "^3.25.76 || ^4.0.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@backstage/cli": "workspace:^",
|
||||
|
||||
@@ -47,8 +47,12 @@ const _default: OverridableFrontendPlugin<
|
||||
'nav-item:search': OverridableExtensionDefinition<{
|
||||
kind: 'nav-item';
|
||||
name: undefined;
|
||||
config: {};
|
||||
configInput: {};
|
||||
config: {
|
||||
title: string | undefined;
|
||||
};
|
||||
configInput: {
|
||||
title?: string | undefined;
|
||||
};
|
||||
output: ExtensionDataRef<
|
||||
{
|
||||
title: string;
|
||||
@@ -73,8 +77,8 @@ const _default: OverridableFrontendPlugin<
|
||||
};
|
||||
configInput: {
|
||||
noTrack?: boolean | undefined;
|
||||
title?: string | undefined;
|
||||
path?: string | undefined;
|
||||
title?: string | undefined;
|
||||
};
|
||||
output:
|
||||
| ExtensionDataRef<string, 'core.routing.path', {}>
|
||||
@@ -214,8 +218,12 @@ export const searchApi: OverridableExtensionDefinition<{
|
||||
export const searchNavItem: OverridableExtensionDefinition<{
|
||||
kind: 'nav-item';
|
||||
name: undefined;
|
||||
config: {};
|
||||
configInput: {};
|
||||
config: {
|
||||
title: string | undefined;
|
||||
};
|
||||
configInput: {
|
||||
title?: string | undefined;
|
||||
};
|
||||
output: ExtensionDataRef<
|
||||
{
|
||||
title: string;
|
||||
@@ -242,8 +250,8 @@ export const searchPage: OverridableExtensionDefinition<{
|
||||
};
|
||||
configInput: {
|
||||
noTrack?: boolean | undefined;
|
||||
title?: string | undefined;
|
||||
path?: string | undefined;
|
||||
title?: string | undefined;
|
||||
};
|
||||
output:
|
||||
| ExtensionDataRef<string, 'core.routing.path', {}>
|
||||
|
||||
@@ -18,6 +18,7 @@ import Grid from '@material-ui/core/Grid';
|
||||
import Paper from '@material-ui/core/Paper';
|
||||
import { makeStyles, Theme } from '@material-ui/core/styles';
|
||||
import SearchIcon from '@material-ui/icons/Search';
|
||||
import { z } from 'zod/v4';
|
||||
|
||||
import {
|
||||
CatalogIcon,
|
||||
@@ -93,10 +94,8 @@ const useSearchPageStyles = makeStyles((theme: Theme) => ({
|
||||
|
||||
/** @alpha */
|
||||
export const searchPage = PageBlueprint.makeWithOverrides({
|
||||
config: {
|
||||
schema: {
|
||||
noTrack: z => z.boolean().default(false),
|
||||
},
|
||||
configSchema: {
|
||||
noTrack: z.boolean().default(false),
|
||||
},
|
||||
inputs: {
|
||||
items: createExtensionInput([SearchResultListItemBlueprint.dataRefs.item]),
|
||||
|
||||
Reference in New Issue
Block a user