diff --git a/.changeset/techdocs-swans-check.md b/.changeset/techdocs-swans-check.md new file mode 100644 index 0000000000..750648ff8a --- /dev/null +++ b/.changeset/techdocs-swans-check.md @@ -0,0 +1,9 @@ +--- +'@backstage/plugin-techdocs': patch +--- + +Packages a set of tweaks to the TechDocs addons rendering process: + +- Prevents displaying sidebars until page styles are loaded and the sidebar position is updated; +- Prevents new sidebar locations from being created every time the reader page is rendered if these locations already exist; +- Centers the styles loaded event to avoid having multiple locations setting the opacity style in Shadow Dom causing the screen to flash multiple times. diff --git a/.changeset/techdocs-wolves-carry.md b/.changeset/techdocs-wolves-carry.md new file mode 100644 index 0000000000..01436ee15f --- /dev/null +++ b/.changeset/techdocs-wolves-carry.md @@ -0,0 +1,8 @@ +--- +'@backstage/plugin-techdocs-react': patch +--- + +Creates a `TechDocsShadowDom` component that takes a tree of elements and an `onAppend` handler: + +- Calls the `onAppend` handler when appending the element tree to the shadow root; +- Also dispatches an event when styles are loaded to let transformers know that the computed styles are ready to be consumed.