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:
@@ -1839,8 +1839,12 @@ export const NavItemBlueprint: ExtensionBlueprint_2<{
|
||||
{}
|
||||
>;
|
||||
inputs: {};
|
||||
config: {};
|
||||
configInput: {};
|
||||
config: {
|
||||
title: string | undefined;
|
||||
};
|
||||
configInput: {
|
||||
title?: string | undefined;
|
||||
};
|
||||
dataRefs: {
|
||||
target: ConfigurableExtensionDataRef_2<
|
||||
{
|
||||
@@ -2258,8 +2262,8 @@ export const PageBlueprint: ExtensionBlueprint_2<{
|
||||
title: string | undefined;
|
||||
};
|
||||
configInput: {
|
||||
title?: string | undefined;
|
||||
path?: string | undefined;
|
||||
title?: string | undefined;
|
||||
};
|
||||
dataRefs: never;
|
||||
}>;
|
||||
@@ -2560,8 +2564,8 @@ export const SubPageBlueprint: ExtensionBlueprint_2<{
|
||||
title: string | undefined;
|
||||
};
|
||||
configInput: {
|
||||
title?: string | undefined;
|
||||
path?: string | undefined;
|
||||
title?: string | undefined;
|
||||
};
|
||||
dataRefs: never;
|
||||
}>;
|
||||
|
||||
@@ -14,6 +14,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
import { z } from 'zod/v4';
|
||||
import { IconComponent } from '../icons/types';
|
||||
import { RouteRef } from '../routing';
|
||||
import { createExtensionBlueprint, createExtensionDataRef } from '../wiring';
|
||||
@@ -59,9 +60,7 @@ export const NavItemBlueprint = createExtensionBlueprint({
|
||||
routeRef,
|
||||
}),
|
||||
],
|
||||
config: {
|
||||
schema: {
|
||||
title: z => z.string().optional(),
|
||||
},
|
||||
configSchema: {
|
||||
title: z.string().optional(),
|
||||
},
|
||||
});
|
||||
|
||||
@@ -14,6 +14,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
import { z } from 'zod/v4';
|
||||
import { JSX } from 'react';
|
||||
import { Routes, Route, Navigate } from 'react-router-dom';
|
||||
import { IconElement } from '../icons/types';
|
||||
@@ -68,11 +69,9 @@ export const PageBlueprint = createExtensionBlueprint({
|
||||
coreExtensionData.title.optional(),
|
||||
coreExtensionData.icon.optional(),
|
||||
],
|
||||
config: {
|
||||
schema: {
|
||||
path: z => z.string().optional(),
|
||||
title: z => z.string().optional(),
|
||||
},
|
||||
configSchema: {
|
||||
path: z.string().optional(),
|
||||
title: z.string().optional(),
|
||||
},
|
||||
*factory(
|
||||
params: {
|
||||
|
||||
@@ -14,6 +14,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
import { z } from 'zod/v4';
|
||||
import { IconElement } from '../icons/types';
|
||||
import { RouteRef } from '../routing';
|
||||
import { coreExtensionData, createExtensionBlueprint } from '../wiring';
|
||||
@@ -50,11 +51,9 @@ export const SubPageBlueprint = createExtensionBlueprint({
|
||||
coreExtensionData.routeRef.optional(),
|
||||
coreExtensionData.icon.optional(),
|
||||
],
|
||||
config: {
|
||||
schema: {
|
||||
path: z => z.string().optional(),
|
||||
title: z => z.string().optional(),
|
||||
},
|
||||
configSchema: {
|
||||
path: z.string().optional(),
|
||||
title: z.string().optional(),
|
||||
},
|
||||
*factory(
|
||||
params: {
|
||||
|
||||
Reference in New Issue
Block a user