diff --git a/packages/api/src/router/custom-widget/metadata-procedures.ts b/packages/api/src/router/custom-widget/metadata-procedures.ts index b203704cb..0a9bf77a8 100644 --- a/packages/api/src/router/custom-widget/metadata-procedures.ts +++ b/packages/api/src/router/custom-widget/metadata-procedures.ts @@ -19,7 +19,7 @@ import { normalizeCustomJsxAuthoringTemplate, normalizeCustomWidgetAuthoringDefinition, } from "@homarr/custom-widgets/core"; -import { addCustomJsxDiagnosticSourceExcerpts, validateCustomJsxTemplate } from "@homarr/custom-widgets/jsx"; +import { addCustomJsxDiagnosticSourceExcerpts, validateCustomJsxTemplate } from "@homarr/custom-widgets/jsx/analyzer"; import { permissionRequiredProcedure } from "../../trpc"; @@ -217,9 +217,7 @@ export const metadataProcedures = { const template = normalizeCustomJsxAuthoringTemplate(rawTemplate); const diagnostics = addCustomJsxDiagnosticSourceExcerpts(template, validateCustomJsxTemplate(template)); const valid = diagnostics.every((diagnostic) => diagnostic.severity !== "error"); - const hasUnknownProp = diagnostics.some((diagnostic) => - diagnostic.message.startsWith("UNKNOWN_MANTINE_PROP"), - ); + const hasUnknownProp = diagnostics.some((diagnostic) => diagnostic.message.startsWith("UNKNOWN_MANTINE_PROP")); let nextStep = "After the manifest and template agree, send the complete definition once to customWidget_previewCreate for full validation and a testable preview."; if (!valid) { diff --git a/packages/custom-widgets/package.json b/packages/custom-widgets/package.json index e3865e30d..398627521 100644 --- a/packages/custom-widgets/package.json +++ b/packages/custom-widgets/package.json @@ -18,6 +18,7 @@ "./catalog-example": "./src/core/component-example.ts", "./core": "./src/core/index.ts", "./jsx": "./src/jsx/index.ts", + "./jsx/analyzer": "./src/jsx/analyzer.ts", "./runtime": "./src/runtime/index.ts", "./server": "./src/server/index.ts", "./workbench": "./src/workbench/index.ts"