Merge pull request #27320 from h7kanna/fix-27319

Fixed custom element sanitizer config to be optional in types
This commit is contained in:
Andre Wanlin
2024-10-23 10:34:25 -05:00
committed by GitHub
2 changed files with 7 additions and 2 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/plugin-techdocs': patch
---
Fix techdocs config schema for custom elements sanitizer
+2 -2
View File
@@ -49,7 +49,7 @@ export interface Config {
* this will allow all custom elements with tag name matching `^backstage-` like <backstage-custom-element /> 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 <backstage-custom-element attribute1="yes" attribute2/>
* @visibility frontend
*/
allowedCustomElementAttributeNameRegExp: string;
allowedCustomElementAttributeNameRegExp?: string;
};
};
}