Upgrade Storybook to v10 (#30442)

GitOrigin-RevId: 9f51624bc2b34b6746d1854969173b44c9c9cf9a
This commit is contained in:
Alf Eaton
2026-04-22 08:06:26 +00:00
committed by Copybot
parent f45eec25f4
commit ce4ca192ee
63 changed files with 816 additions and 1778 deletions
@@ -583,7 +583,7 @@ type ElementSelector<T extends string, E extends HTMLElement = HTMLElement> = {
const createSelector = <
T extends string,
E extends HTMLElement = T extends keyof HTMLElementTagNameMap
? HTMLElementTagNameMap[T]
? Extract<HTMLElementTagNameMap[T], HTMLElement>
: HTMLElement,
>({
selector,
@@ -78,7 +78,7 @@ export function typesetNodeIntoElement(
let from = node.from
const addMarkup = (markup: Markup, childNode: SyntaxNode) => {
const element = document.createElement(markup.elementType)
const element = document.createElement(markup.elementType) as HTMLElement
if (markup.className) {
element.classList.add(markup.className)
}