frontend-plugin-api,catalog-react: remove default* prefix from blueprint params

Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
Patrik Oldsberg
2025-08-01 14:41:21 +02:00
parent 9ad8a1d30e
commit e4ddf22854
68 changed files with 275 additions and 176 deletions
+4 -2
View File
@@ -134,7 +134,8 @@ const _default: FrontendPlugin<
kind: 'page';
name: undefined;
params: {
defaultPath: string;
defaultPath?: [Error: `Use the 'path' param instead`];
path: string;
loader: () => Promise<JSX.Element>;
routeRef?: RouteRef;
};
@@ -252,7 +253,8 @@ export const searchPage: ExtensionDefinition<{
kind: 'page';
name: undefined;
params: {
defaultPath: string;
defaultPath?: [Error: `Use the 'path' param instead`];
path: string;
loader: () => Promise<JSX.Element>;
routeRef?: RouteRef;
};
+1 -1
View File
@@ -115,7 +115,7 @@ export const searchPage = PageBlueprint.makeWithOverrides({
},
factory(originalFactory, { config, inputs }) {
return originalFactory({
defaultPath: '/search',
path: '/search',
routeRef: convertLegacyRouteRef(rootRouteRef),
loader: async () => {
const getResultItemComponent = (result: SearchResult) => {