From 84b623645e306f0dbd64dd213b53b4d1fc7f3b17 Mon Sep 17 00:00:00 2001 From: Harsha Teja Kanna Date: Wed, 23 Oct 2024 09:53:35 -0400 Subject: [PATCH 1/2] Fixed custom element sanitizer config to be optional in types Signed-off-by: Harsha Teja Kanna --- plugins/techdocs/config.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/techdocs/config.d.ts b/plugins/techdocs/config.d.ts index 6103f273b5..bfc98a7927 100644 --- a/plugins/techdocs/config.d.ts +++ b/plugins/techdocs/config.d.ts @@ -49,7 +49,7 @@ export interface Config { * this will allow all custom elements with tag name matching `^backstage-` like etc. * @visibility frontend */ - allowedCustomElementTagNameRegExp: string; + allowedCustomElementTagNameRegExp?: string; /** * Allows listed custom element attribute name regex * Example: @@ -57,7 +57,7 @@ export interface Config { * this will allow all custom element attributes matching `attribute1` or `attribute2` like * @visibility frontend */ - allowedCustomElementAttributeNameRegExp: string; + allowedCustomElementAttributeNameRegExp?: string; }; }; } From 90246a98d849f82fe73ac289d037ac1ac63da06f Mon Sep 17 00:00:00 2001 From: Harsha Teja Kanna Date: Wed, 23 Oct 2024 10:05:26 -0400 Subject: [PATCH 2/2] Add changeset Signed-off-by: Harsha Teja Kanna --- .changeset/hungry-owls-sell.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .changeset/hungry-owls-sell.md diff --git a/.changeset/hungry-owls-sell.md b/.changeset/hungry-owls-sell.md new file mode 100644 index 0000000000..cb2c18c21c --- /dev/null +++ b/.changeset/hungry-owls-sell.md @@ -0,0 +1,5 @@ +--- +'@backstage/plugin-techdocs': patch +--- + +Fix techdocs config schema for custom elements sanitizer