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
+10 -5
View File
@@ -176,10 +176,13 @@ const _default: FrontendPlugin<
kind: 'entity-content';
name: undefined;
params: {
defaultPath?: [Error: `Use the 'path' param instead`];
path: string;
defaultTitle?: [Error: `Use the 'title' param instead`];
title: string;
defaultGroup?: [Error: `Use the 'group' param instead`];
group?: keyof defaultEntityContentGroups | (string & {});
loader: () => Promise<JSX.Element>;
defaultPath: string;
defaultTitle: string;
defaultGroup?: keyof defaultEntityContentGroups | (string & {});
routeRef?: RouteRef;
filter?: string | EntityPredicate | ((entity: Entity) => boolean);
};
@@ -265,7 +268,8 @@ const _default: FrontendPlugin<
>;
inputs: {};
params: {
defaultPath: string;
defaultPath?: [Error: `Use the 'path' param instead`];
path: string;
loader: () => Promise<JSX.Element>;
routeRef?: RouteRef;
};
@@ -303,7 +307,8 @@ const _default: FrontendPlugin<
kind: 'page';
name: 'reader';
params: {
defaultPath: string;
defaultPath?: [Error: `Use the 'path' param instead`];
path: string;
loader: () => Promise<JSX.Element>;
routeRef?: RouteRef;
};
+4 -4
View File
@@ -137,7 +137,7 @@ export const techDocsSearchResultListItemExtension =
*/
const techDocsPage = PageBlueprint.make({
params: {
defaultPath: '/docs',
path: '/docs',
routeRef: convertLegacyRouteRef(rootRouteRef),
loader: () =>
import('../home/components/TechDocsIndexPage').then(m =>
@@ -165,7 +165,7 @@ const techDocsReaderPage = PageBlueprint.makeWithOverrides({
});
return originalFactory({
defaultPath: '/docs/:namespace/:kind/:name',
path: '/docs/:namespace/:kind/:name',
routeRef: convertLegacyRouteRef(rootDocsRouteRef),
loader: async () =>
await import('../Router').then(({ TechDocsReaderRouter }) => {
@@ -199,8 +199,8 @@ const techDocsEntityContent = EntityContentBlueprint.makeWithOverrides({
factory(originalFactory, context) {
return originalFactory(
{
defaultPath: 'docs',
defaultTitle: 'TechDocs',
path: 'docs',
title: 'TechDocs',
routeRef: convertLegacyRouteRef(rootCatalogDocsRouteRef),
loader: () =>
import('../Router').then(({ EmbeddedDocsRouter }) => {