@fumadocs/base-ui 16.17.7 → 16.17.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (68) hide show
  1. package/css/generated/flux.css +1 -1
  2. package/css/generated/shared.css +1 -1
  3. package/css/generated/spacious.css +1 -1
  4. package/dist/components/banner.d.ts +2 -1
  5. package/dist/components/codeblock.rsc.d.ts +7 -1
  6. package/dist/components/codeblock.rsc.js +20 -7
  7. package/dist/components/dialog/search.d.ts +13 -14
  8. package/dist/components/dialog/search.js +18 -29
  9. package/dist/components/dynamic-codeblock.core.d.ts +10 -5
  10. package/dist/components/dynamic-codeblock.core.js +54 -16
  11. package/dist/components/dynamic-codeblock.d.ts +1 -1
  12. package/dist/components/heading.d.ts +2 -1
  13. package/dist/components/image-zoom.d.ts +2 -2
  14. package/dist/components/image-zoom.js +1 -1
  15. package/dist/components/sidebar/link-item.d.ts +2 -1
  16. package/dist/components/sidebar/page-tree.d.ts +2 -1
  17. package/dist/components/tabs.d.ts +1 -1
  18. package/dist/components/toc/block.d.ts +2 -4
  19. package/dist/components/toc/clerk.d.ts +2 -5
  20. package/dist/components/toc/default.d.ts +2 -5
  21. package/dist/components/toc/index.d.ts +2 -5
  22. package/dist/components/ui/tabs.d.ts +2 -5
  23. package/dist/contexts/i18n.d.ts +2 -1
  24. package/dist/contexts/search.d.ts +2 -1
  25. package/dist/contexts/tree.d.ts +2 -1
  26. package/dist/layouts/docs/client.d.ts +2 -1
  27. package/dist/layouts/docs/page/slots/footer.d.ts +2 -1
  28. package/dist/layouts/docs/page/slots/toc.d.ts +4 -4
  29. package/dist/layouts/docs/slots/sidebar.d.ts +1 -1
  30. package/dist/layouts/flux/index.d.ts +2 -1
  31. package/dist/layouts/flux/page/slots/footer.d.ts +2 -1
  32. package/dist/layouts/flux/page/slots/toc.d.ts +4 -4
  33. package/dist/layouts/flux/slots/sidebar.d.ts +1 -1
  34. package/dist/layouts/glass/page/slots/footer.d.ts +2 -1
  35. package/dist/layouts/glass/page/slots/toc.d.ts +1 -1
  36. package/dist/layouts/home/index.d.ts +2 -1
  37. package/dist/layouts/notebook/client.d.ts +2 -1
  38. package/dist/layouts/notebook/page/slots/footer.d.ts +2 -1
  39. package/dist/layouts/notebook/page/slots/toc.d.ts +4 -4
  40. package/dist/layouts/notebook/slots/sidebar.d.ts +1 -1
  41. package/dist/layouts/spacious/index.d.ts +2 -1
  42. package/dist/layouts/spacious/page/slots/footer.d.ts +2 -1
  43. package/dist/layouts/spacious/page/slots/toc.d.ts +6 -5
  44. package/dist/layouts/spacious/slots/sidebar.d.ts +1 -1
  45. package/dist/node_modules/.pnpm/{react-medium-image-zoom@5.4.9_react-dom@19.3.0_react@19.3.0__react@19.3.0 → react-medium-image-zoom@5.4.9_react-dom@19.3.1_react@19.3.1__react@19.3.1}/node_modules/react-medium-image-zoom/dist/controlled.d.ts +3 -2
  46. package/dist/node_modules/.pnpm/{react-medium-image-zoom@5.4.9_react-dom@19.3.0_react@19.3.0__react@19.3.0 → react-medium-image-zoom@5.4.9_react-dom@19.3.1_react@19.3.1__react@19.3.1}/node_modules/react-medium-image-zoom/dist/controlled.js +1 -1
  47. package/dist/node_modules/.pnpm/{react-medium-image-zoom@5.4.9_react-dom@19.3.0_react@19.3.0__react@19.3.0 → react-medium-image-zoom@5.4.9_react-dom@19.3.1_react@19.3.1__react@19.3.1}/node_modules/react-medium-image-zoom/dist/uncontrolled.d.ts +1 -1
  48. package/dist/node_modules/.pnpm/{react-medium-image-zoom@5.4.9_react-dom@19.3.0_react@19.3.0__react@19.3.0 → react-medium-image-zoom@5.4.9_react-dom@19.3.1_react@19.3.1__react@19.3.1}/node_modules/react-medium-image-zoom/dist/uncontrolled.js +1 -1
  49. package/dist/node_modules/.pnpm/{react-medium-image-zoom@5.4.9_react-dom@19.3.0_react@19.3.0__react@19.3.0 → react-medium-image-zoom@5.4.9_react-dom@19.3.1_react@19.3.1__react@19.3.1}/node_modules/react-medium-image-zoom/dist/utils/adjust-svg-ids.js +1 -1
  50. package/dist/node_modules/.pnpm/{react-medium-image-zoom@5.4.9_react-dom@19.3.0_react@19.3.0__react@19.3.0 → react-medium-image-zoom@5.4.9_react-dom@19.3.1_react@19.3.1__react@19.3.1}/node_modules/react-medium-image-zoom/dist/utils/compute-positioned-style.js +1 -1
  51. package/dist/node_modules/.pnpm/{react-medium-image-zoom@5.4.9_react-dom@19.3.0_react@19.3.0__react@19.3.0 → react-medium-image-zoom@5.4.9_react-dom@19.3.1_react@19.3.1__react@19.3.1}/node_modules/react-medium-image-zoom/dist/utils/element-tests.js +1 -1
  52. package/dist/node_modules/.pnpm/{react-medium-image-zoom@5.4.9_react-dom@19.3.0_react@19.3.0__react@19.3.0 → react-medium-image-zoom@5.4.9_react-dom@19.3.1_react@19.3.1__react@19.3.1}/node_modules/react-medium-image-zoom/dist/utils/get-div-img-style.js +1 -1
  53. package/dist/node_modules/.pnpm/{react-medium-image-zoom@5.4.9_react-dom@19.3.0_react@19.3.0__react@19.3.0 → react-medium-image-zoom@5.4.9_react-dom@19.3.1_react@19.3.1__react@19.3.1}/node_modules/react-medium-image-zoom/dist/utils/get-img-alt.js +1 -1
  54. package/dist/node_modules/.pnpm/{react-medium-image-zoom@5.4.9_react-dom@19.3.0_react@19.3.0__react@19.3.0 → react-medium-image-zoom@5.4.9_react-dom@19.3.1_react@19.3.1__react@19.3.1}/node_modules/react-medium-image-zoom/dist/utils/get-img-object-fit-style.js +1 -1
  55. package/dist/node_modules/.pnpm/{react-medium-image-zoom@5.4.9_react-dom@19.3.0_react@19.3.0__react@19.3.0 → react-medium-image-zoom@5.4.9_react-dom@19.3.1_react@19.3.1__react@19.3.1}/node_modules/react-medium-image-zoom/dist/utils/get-img-regular-style.js +1 -1
  56. package/dist/node_modules/.pnpm/{react-medium-image-zoom@5.4.9_react-dom@19.3.0_react@19.3.0__react@19.3.0 → react-medium-image-zoom@5.4.9_react-dom@19.3.1_react@19.3.1__react@19.3.1}/node_modules/react-medium-image-zoom/dist/utils/get-img-src.js +1 -1
  57. package/dist/node_modules/.pnpm/{react-medium-image-zoom@5.4.9_react-dom@19.3.0_react@19.3.0__react@19.3.0 → react-medium-image-zoom@5.4.9_react-dom@19.3.1_react@19.3.1__react@19.3.1}/node_modules/react-medium-image-zoom/dist/utils/get-modal-img-transform.js +1 -1
  58. package/dist/node_modules/.pnpm/{react-medium-image-zoom@5.4.9_react-dom@19.3.0_react@19.3.0__react@19.3.0 → react-medium-image-zoom@5.4.9_react-dom@19.3.1_react@19.3.1__react@19.3.1}/node_modules/react-medium-image-zoom/dist/utils/get-scale.js +1 -1
  59. package/dist/node_modules/.pnpm/{react-medium-image-zoom@5.4.9_react-dom@19.3.0_react@19.3.0__react@19.3.0 → react-medium-image-zoom@5.4.9_react-dom@19.3.1_react@19.3.1__react@19.3.1}/node_modules/react-medium-image-zoom/dist/utils/get-style-ghost.js +1 -1
  60. package/dist/node_modules/.pnpm/{react-medium-image-zoom@5.4.9_react-dom@19.3.0_react@19.3.0__react@19.3.0 → react-medium-image-zoom@5.4.9_react-dom@19.3.1_react@19.3.1__react@19.3.1}/node_modules/react-medium-image-zoom/dist/utils/get-style-modal-img.js +1 -1
  61. package/dist/node_modules/.pnpm/{react-medium-image-zoom@5.4.9_react-dom@19.3.0_react@19.3.0__react@19.3.0 → react-medium-image-zoom@5.4.9_react-dom@19.3.1_react@19.3.1__react@19.3.1}/node_modules/react-medium-image-zoom/dist/utils/get-target-dimension.js +1 -1
  62. package/dist/node_modules/.pnpm/{react-medium-image-zoom@5.4.9_react-dom@19.3.0_react@19.3.0__react@19.3.0 → react-medium-image-zoom@5.4.9_react-dom@19.3.1_react@19.3.1__react@19.3.1}/node_modules/react-medium-image-zoom/dist/utils/parse-position.js +1 -1
  63. package/dist/node_modules/.pnpm/{react-medium-image-zoom@5.4.9_react-dom@19.3.0_react@19.3.0__react@19.3.0 → react-medium-image-zoom@5.4.9_react-dom@19.3.1_react@19.3.1__react@19.3.1}/node_modules/react-medium-image-zoom/dist/utils/test-has-scalable-src.js +1 -1
  64. package/dist/og.d.ts +2 -1
  65. package/dist/tailwind/typography.js +1 -2
  66. package/dist/utils/cn.js +1 -2
  67. package/package.json +10 -11
  68. /package/dist/node_modules/.pnpm/{react-medium-image-zoom@5.4.9_react-dom@19.3.0_react@19.3.0__react@19.3.0 → react-medium-image-zoom@5.4.9_react-dom@19.3.1_react@19.3.1__react@19.3.1}/node_modules/react-medium-image-zoom/dist/index.d.ts +0 -0
@@ -1 +1 @@
1
- @source inline("!enabled !header *:rounded-lg --removed-body-scroll-bar-size -mx-1 [&_svg]:shrink-0 [grid-area:main] animate-fd-fade-in aria-valuemax aria-valuemin aria-valuenow article available backdrop-blur-md backdrop-blur-sm before:absolute before:bg-fd-border before:content-[''] before:inset-y-1 before:start-2.5 before:w-px bg-fd-background/60 bg-fd-popover/80 border-x bottom-26 breadcrumb breadcrumbEnabled circleProps circumference clerk click containerProps createLinkItemRenderer createPortal data-[active=true]:before:absolute data-[active=true]:before:bg-fd-primary data-[active=true]:before:content-[''] data-[active=true]:before:inset-y-2.5 data-[active=true]:before:start-2.5 data-[active=true]:before:w-px data-[active=true]:bg-fd-primary/10 data-[active=true]:hover:transition-colors data-full data-layout-content data-layout-main data-toc-popover data-toc-popover-content data-toc-popover-trigger defaultChildren defaultSlots defaultTabs duration ease edit exit flex-row-reverse flux-layout-slot font-semibold footer footerEnabled footerList fumadocs-core/breadcrumb gap-2.5 getBreadcrumbItemsFromPath grid-cols-1 h-8.5 h-9 head hide hideIfDisabled hover:bg-fd-accent/50 hover:opacity-80 hover:text-fd-accent-foreground/80 hover:transition-none including information initial inset-x-0 justify-items-center layout-level lg:text-sm linkItems mask-[linear-gradient(to_bottom,transparent,white_--spacing(14),white_calc(100%---spacing(14)),transparent)] max max-h-[50vh] max-w-[1200px] max-w-[900px] max-w-svw mb-4 mb-8 mb-auto md:pt-8 md:px-6 min min-h-11 motion motion/react ms-1 ms-px nd-flux-layout nd-page no normalizedValue onAnimationComplete opacity overflow-y-hidden pagination pb-24 pointer-events-none popLayout pr-(--removed-body-scroll-bar-size,0) progress progressbar provided ps-2.5 py-10 py-16 py-6 radius react-remove-scroll renderNavigationPanel replace restSvgProps rotate-180 scale selectedIdx setBlockScroll setContainer setDate sidebarEnabled sidebarProps single size-4.5 sm:border sm:bottom-6 sm:max-w-[380px] sm:max-w-[400px] sm:p-1 sm:rounded-2xl spanProps stroke-current/25 strokeDasharray strokeDashoffset tabDropdown tableOfContent text-[1.75em] text-end timezone tocEnabled tocProps tool transition translate-x-[calc(-50%-var(--removed-body-scroll-bar-size,0px)/2)] translateY typography under updated useBaseSlots useDocsPage useFluxLayout useFooterItems w-[calc(100%-var(--removed-body-scroll-bar-size,0px))] wait xl:pt-14 xl:px-8 z-30");
1
+ @source inline("!enabled !header *:rounded-lg --removed-body-scroll-bar-size -mx-1 [&_svg]:shrink-0 [grid-area:main] animate-fd-fade-in aria-valuemax aria-valuemin aria-valuenow article available backdrop-blur-md backdrop-blur-sm before:absolute before:bg-fd-border before:content-[''] before:inset-y-1 before:start-2.5 before:w-px bg-fd-background/60 bg-fd-popover/80 border-x bottom-26 breadcrumb breadcrumbEnabled circleProps circumference clerk click containerProps createLinkItemRenderer createPortal data-[active=true]:before:absolute data-[active=true]:before:bg-fd-primary data-[active=true]:before:content-[''] data-[active=true]:before:inset-y-2.5 data-[active=true]:before:start-2.5 data-[active=true]:before:w-px data-[active=true]:bg-fd-primary/10 data-[active=true]:hover:transition-colors data-full data-layout-content data-layout-main data-toc-popover data-toc-popover-content data-toc-popover-trigger defaultChildren defaultSlots defaultTabs duration ease edit exit flex-row-reverse flux-layout-slot font-semibold footer footerEnabled footerList fumadocs-core/breadcrumb gap-2.5 getBreadcrumbItemsFromPath grid-cols-1 h-8.5 h-9 head hide hideIfDisabled hover:bg-fd-accent/50 hover:opacity-80 hover:text-fd-accent-foreground/80 hover:transition-none including information inset-x-0 justify-items-center layout-level lg:text-sm linkItems mask-[linear-gradient(to_bottom,transparent,white_--spacing(14),white_calc(100%---spacing(14)),transparent)] max max-h-[50vh] max-w-[1200px] max-w-[900px] max-w-svw mb-4 mb-8 mb-auto md:pt-8 md:px-6 min min-h-11 motion motion/react ms-1 ms-px nd-flux-layout nd-page no normalizedValue onAnimationComplete opacity overflow-y-hidden pagination pb-24 pointer-events-none popLayout pr-(--removed-body-scroll-bar-size,0) progress progressbar provided ps-2.5 py-10 py-16 py-6 radius react-remove-scroll renderNavigationPanel replace restSvgProps rotate-180 scale selectedIdx setBlockScroll setContainer setDate sidebarEnabled sidebarProps single size-4.5 sm:border sm:bottom-6 sm:max-w-[380px] sm:max-w-[400px] sm:p-1 sm:rounded-2xl spanProps stroke-current/25 strokeDasharray strokeDashoffset tabDropdown tableOfContent text-[1.75em] text-end timezone tocEnabled tocProps tool transition translate-x-[calc(-50%-var(--removed-body-scroll-bar-size,0px)/2)] translateY typography under updated useBaseSlots useDocsPage useFluxLayout useFooterItems w-[calc(100%-var(--removed-body-scroll-bar-size,0px))] wait xl:pt-14 xl:px-8 z-30");
@@ -1 +1 @@
1
- @source inline("!collapsed !isActive !items !nested !open !title *:border-b *:data-[empty=true]:border-b-0 *:first:font-medium *:first:text-fd-primary *:flex *:flex-col *:has-[+:last-child[data-empty=true]]:border-b-0 *:last:border-b-0 *:mask-[linear-gradient(to_bottom,white,white_30px,transparent_80px)] *:not-first:text-fd-muted-foreground *:nth-2:text-xs *:rounded-full ---spacing --accordion-panel-height --anchor-width --available-height --callout-color --collapsible-panel-height --color-fd- --color-fd-muted --fd-ai-chat-width --fd-animated-height --fd-banner-height --offset-distance --opacity --padding-right --shiki-dark-bg --shiki-light-bg --spacing --track-bottom --track-top --transform-origin -mb-px -me-0.5 -me-2 -mx-px -rotate-90 -top-1.5 -translate-x-1/2 -translate-y-1/2 -z-1 @container @defaultValue @deprecated @fuma-translate/react @keyframes @max-lg:col-span-full @max-xl:hidden @param @ts-expect-error @typescript-eslint/no-namespace [&:focus-visible_img]:ring-2 [&:focus-visible_img]:ring-fd-ring [&>figure:only-child]:-m-4 [&>figure:only-child]:border-none [&[hidden]:not([hidden='until-found'])]:hidden [&_::highlight(fd-search)]:text-fd-primary [&_::highlight(fd-search)]:underline [&_img]:cursor-zoom-in [&_svg]:size-3.5 [&_svg]:size-4 [&_svg]:size-4.5 [&_svg]:size-5 [&_svg]:size-full [&_svg]:text-fd-muted-foreground [clip-path:inset(0_0_100%)] [container-type:size] [offset-distance:var(--offset-distance,0)] [scrollbar-width:none] a abcdefghijklmnopqrstuvwxyz234567 about above absolute accordion action actions active activeItem add addEventListener advanced after align align-text-bottom align-top alignItems alignmentBaseline all allowClear allowCopy allows alphabet alt altKey always an anchor and animate animate-pulse animation another application/json are areaRef aria-activedescendant aria-autocomplete aria-controls aria-describedby aria-expanded aria-haspopup aria-hidden aria-label aria-labelledby aria-live aria-selected as aside ask aspectRatio assume assumes async at auto await b backdrop-blur-lg backdrop-blur-xs background background-position backgroundColor backgroundImage backgroundSize backward banner basePath baseProps baseSlots baseUrl based became before behavior behaviour belongs beside between bg-(--callout-color)/50 bg-(--shiki-light-bg) bg-cover bg-fd-accent bg-fd-background bg-fd-border bg-fd-card bg-fd-muted bg-fd-overlay bg-fd-popover bg-fd-popover/60 bg-fd-primary bg-fd-primary/10 bg-fd-secondary bg-fd-secondary/50 bg-linear-to-r bg-transparent bind bitsLeft black block blockRef boolean border border-b border-l border-none border-s border-t border-transparent borderBottom bottom bottom-0 bottom-1.5 bound boundary box buffer bundle button buttonVariants by cache cached callbacks can canonical caption cards case cells center central change changeLayout changes chat child children chooseLanguage class-variance-authority className clear client client-side clientHeight clientWidth clients clipPath clone close closeOnRedirect closed closing cn code col-span-full collapsed collapsible collapsing collection color colors column columns com combobox compact compat compatibility compatible component components composedRef computed config const container containerRef containing content contents context controlled/uncontrolled copy core counterSet createContext createRelativeLink css ctx current currentColor currentSrc cursor-default cursor-zoom-out custom customize cva cx cy d dangerouslySetInnerHTML dark dark:bg-(--shiki-dark-bg) dashed data data-[active=true]:text-fd-primary data-[active]:border-fd-primary data-[active]:text-fd-primary data-[inactive]:hidden data-[popup-open]:bg-fd-accent data-[popup-open]:text-fd-accent-foreground data-accordion-value data-active data-card data-checked data-checked:text-fd-accent-foreground data-closed:animate-fd-dialog-out data-closed:animate-fd-fade-out data-closed:animate-fd-popover-out data-collapsed data-empty data-ending-style:h-0 data-ending-style:opacity-0 data-fd-search-dialog-input data-highlight-ignore data-icon data-line-numbers data-line-numbers-start data-open:animate-fd-dialog-in data-open:animate-fd-fade-in data-open:animate-fd-popover-in data-ready data-ready:transition-[clip-path] data-search data-search-full data-starting-style:h-0 data-starting-style:opacity-0 data-state data-theme-toggle date debounced declare default defaultColor defaultFormatter defaultIndex defaultItems defaultLanguage defaultMdxComponents defaultOpen defaultOpenLevel defaultShikiFactory defaultTransform defaultUrl defaultValue defineI18nUI defined delay delayMs depends deprecated depth description desktop detect development dialog dialogHandle dir direction disabled disabled:opacity-50 disabled:pointer-events-none display displayName displayed distance div divide-fd-border divide-x divide-y docked document documented dominantBaseline don drawer dropdown duration-100 duration-200 duration-300 duration-400 during each ease-in-out ease-out element else empty empty:hidden empty:mb-0 enabled encoded endIdx endpoint env environment equal error escape eslint-disable-next-line event export expose extends external extraProps failed false fd-lightbox fd-moving-banner fd-scroll-container fd-search-dialog-content fd-search-list fd-step fd-steps fetch fetchClient fetchOptions field fieldVariants figcaption figure file fill fill-(--callout-color) fill-fd-muted fill-fd-muted-foreground fill-fd-primary fill-fd-primary-foreground filter filters final finally first:mt-0 fixed flex flex-1 flex-col flex-row flex-wrap flexDirection floating flushSync focus focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-fd-ring focus-visible:ring-inset folder folders font-medium font-mono fontSize fontWeight for forks formatter formatterOptions found free from from-fd-primary/10 full fumadocs-core/framework fumadocs-core/highlight fumadocs-core/i18n fumadocs-core/link fumadocs-core/page-tree fumadocs-core/search fumadocs-core/source fumadocs-core/toc function gap gap-0.5 gap-1 gap-1.5 gap-2 gap-3 gap-3.5 gap-4 gap-x-3 gap-y-4 generated getActive ghost github-dark github-light githubUrl given global globalKey grid grid-cols-2 grid-cols-[1fr_3fr] grid-cols-subgrid gridTemplateColumns group group-data-[active=true]:bg-fd-primary group-data-[active=true]:text-fd-primary-foreground group-data-[open]:rotate-180 group-data-active:bg-fd-primary group-data-open:rotate-180 group-data-panel-open:rotate-90 group-hover/heading:opacity-100 group/heading groupListeners groups guides h h-(--accordion-panel-height) h-(--collapsible-panel-height) h-(--fd-animated-height) h-14 h-9.5 h-[calc(100%+--spacing(1.5))] h-full h-px h1 h2 h3 h4 h5 h6 hand handle handleThemeChange has has-focus-visible:bg-fd-accent hash hashchange hast-util-to-jsx-runtime hastContent have header headerId headers heading height hidden hideLocale highlight highlightRef highlighter hints hover:bg-fd-accent hover:bg-fd-accent/80 hover:bg-fd-primary/80 hover:text-fd-accent-foreground hovered hovering href html hydration i i18n i18nProvider icon icon-sm icon-xs iconClass id idea idx if if-needed ignore ignoreTyping image images img import in inTab index infinite info initialFocus inline inline-flex input inputType inset-0 inset-e-2 inset-e-2.5 inset-s-0 inset-s-2.5 inset-s-3 inset-s-6 inset-x-2 inset-y-0 inside instanceof instant instantly instead integration interface intersect into invisible is isActive isComposing isFirst isLast isLoading isUp it item itemLineLengths itemVariants items items-baseline items-center itemsProp its js justify-between justify-center keepBackground keepMounted key keyCode keydown keys l l0 l1 l2 label lang language languageSelect last last:line-clamp-2 last:rounded-b-xl layer layout layout:[--fd-ai-chat-width:min(--spacing(100),100vw---spacing(4))] lays lazy leading-none leaving left-0 left-1/2 length let letting level light light-dark light-dark-system lightbox like line line-through linear link links list listbox listener listeners loading localRef locale localeTranslations locales lower ltr lucide lucide-book lucide-book-icon lucide-react m-0 made main make mapped margin marginTop mark markdownUrl marked mask-[linear-gradient(to_bottom,transparent,white_12px,white_calc(100%-12px),transparent)] mask-[linear-gradient(to_bottom,transparent,white_16px,white_calc(100%-16px),transparent)] maskComposite maskImage matches max-h-(--available-height) max-h-20 max-h-[460px] max-h-[600px] max-h-full max-h-none max-md:bg-fd-secondary max-md:border max-md:hidden max-md:p-1.5 max-md:rounded-md max-w-[1400px] max-w-[98vw] max-w-full max-w-none max-w-screen-sm max-width max-xl:border max-xl:end-2 max-xl:fixed max-xl:inset-y-2 max-xl:rounded-2xl max-xl:shadow-xl max-xl:translate-x-[calc(100%+--spacing(2))] max-xl:w-(--fd-ai-chat-width) maximumFractionDigits mb-1 mb-1.5 mb-2 md:hidden md:mb-auto md:px-16 md:size-5 md:top-[calc(50%-250px)] mdComponents mdx/types.js me-1 me-1.5 me-2 me-auto measured menu menuItems mergeRefs message metaKey middle min-h-0 min-w-0 min-w-[240px] min-w-fit min-w-full mode module morph motion-reduce:transition-none mount mounted mouse ms-2 ms-3 ms-auto mt-1 mt-4 mt-6 must mx-auto my-0 my-0! my-0.5 my-4 my-6 my-auto n name names namespace naturalHeight naturalWidth nav navItems navTitle navigate navigation nd-copy-ignore nd-sidebar nd-sidebar-mobile nearest needed nested nested-url never new newTheme next next-themes next/og node nodes none noop noopener noreferrer normal normalize not not-empty:border-b not-empty:p-3 not-first:border-t not-last:mb-2 not-last:truncate not-prose notation note now null number numbers object observer of offsetHeight offsetPath offsetTop on onAnimationEnd onCancel onChange onClick onClose onCopy onKey onKeyDown onOpenChange onOpenChangeCallback onPointerEnter onPointerLeave onPointerMove onPrint onSearchChange onSearchChangeCallback onSelect onSelectCallback onTagChange onTagChangeCallback onValueChange once one only opacity-(--opacity,0) opacity-0 open openFromHash opened option optional options or order origin-(--transform-origin) origin-center original other out outline outline-none output over overflow overflow-auto overflow-clip overflow-hidden overflow-x-auto overflow-x-clip overflow-y-auto override overscroll-contain overscroll-x-contain own owner p p-0 p-0.5 p-1 p-1.5 p-2 p-3 p-4 padding paddingBottom paddingInlineStart page pageUrl pageUrlProp panel panels parameters params parentId pass passed path pathname paths pb-0 pb-2 pb-6 pe-2 pe-2.5 per performing persist persistent place placed placeholder placeholder:text-fd-muted-foreground please pointerType points polite populated pos positions possible powered pre pre-rendering predate prefers-reduced-motion prefetch prev preventScroll previous previousRef primary primaryColor primaryTextColor production promises prompt prompts prop props prose prose-no-margin prose-sm provide provider ps-1 ps-2 ps-3.25 ps-4 ps-8 pt-0 pure px px-0.5 px-1 px-1.5 px-2 px-2.5 px-3 px-4 py-0.5 py-1 py-1.5 py-12 py-2 py-2.5 py-3 py-3.5 q query querySelector questions rainbow rainbowColors ratio raw re-create re-render react react-dom react-hooks/rules-of-hooks react-medium-image-zoom react/jsx-runtime read reader ref referenced region register registering rel relative remove removeEventListener render renderOptions repo repository required resize resizing resolve resolved resolvedTheme response rest result results return returned revalidate right-2 role root rootRef round rounded-2xl rounded-[inherit] rounded-full rounded-lg rounded-md rounded-sm rounded-xl router row rowRenderOptions rows rtl rtl:-scale-x-100 rtl:max-xl:-translate-x-[calc(100%+--spacing(2))] rtl:rotate-180 rtl:rotate-90 runs s same scroll scroll-into-view-if-needed scroll-m-20 scroll-m-24 scroll-m-28 scroll-m-4 scrollIntoView scrollMode scroller scrollerRef search searchOptions searchToggle searchToggleEnabled searchTrigger secondary see select-none selected separate separator server set setActive setCollapsed setHidden setHover setLoading setMounted setOpen setSlides setSvg setTag setValue shadow-2xl shadow-lg shadow-md shadow-sm shiftKey shiki shikiOptions shortcuts should show showAlgolia showOrama showing shown shows shrink-0 side sideOffset sidebar signature simple since site size size-1 size-3 size-3.5 size-4 size-5 size-6.5 size-9 size-full sized sizes slide slots sm smaller smooth snap-always snap-mandatory snap-start snap-x so solid some source space span specific sr-only src stars start startIdx startViewTransition state static status stay step sticky still str string stroke stroke-fd-foreground/10 stroke-fd-primary strokeLinecap strokeLinejoin strokeWidth style styles subscribe subscribeActive success successful supported supposed sure svg switch switcher system t tab tabIndex table tableRenderOptions tables tabs tabsRef tabular-nums tag tagName tags take target tbody td text text-(--callout-color) text-[0.8125rem] text-[0.8125rem]/5 text-[0.9375rem] text-[10px] text-center text-fd-accent-foreground text-fd-card text-fd-card-foreground text-fd-error text-fd-foreground text-fd-foreground/80 text-fd-muted-foreground text-fd-muted-foreground/50 text-fd-popover-foreground text-fd-popover-foreground/80 text-fd-primary text-fd-primary-foreground text-fd-primary/50 text-fd-secondary-foreground text-inherit text-lg text-nowrap text-sm text-start text-xs text/plain textAnchor textContent th that the thead their them theme themeAriaLabels themeSwitch themeSwitchEnabled themes then they this throw thumbBox tier timerRef tip title to toJsxRuntime toc tocInfo toolbar top top-0 top-1/2 top-2 top-2.5 top-3.25 top-4 touch tr transform transition-[clip-path] transition-[height,opacity] transition-[height] transition-[opacity,offset-distance] transition-[width,margin,translate,visibility] transition-[width,margin,translate] transition-all transition-colors transition-opacity transition-transform translationKeys translations translations/keys.json transparent tree trigger triggers true truncate try twice type typeof types unchanged undefined underline underlying understand unknown unnecessarily unused update updateAnchor updates upperX url urls us usage use useAlgoliaSearch useCopyButton useDocsSearch useHotKey useI18n useId useIsDocsLayout useItems useMediaQuery useMemo useOnChange useOramaCloudSearch usePathname useProps useRef useRouter useSearchContext useSidebar useState useSyncExternalStore useTOCItems useTheme useTranslations useTreePath useful users using usually v v17 value valueToIdMap values variables variant variants vertical viewBox viewRef viewTransitionName viewer viewportProps visible vite void w w-(--anchor-width) w-(--fd-ai-chat-width) w-0 w-0.5 w-1.5 w-1/4 w-[calc(100%-1rem)] w-fit w-full w-max w-px want warn warning what when where which while white whitespace-nowrap whitespaces wide width will window with without work wrap wrap-anywhere wrapElement wrapInSuspense wrapped x x1 x2 xl:w-(--fd-ai-chat-width) xmlns y y1 y2 you your z-2 z-40 z-50 zoom zoomImg zoomInProps zoomMargin zoomable");
1
+ @source inline("!collapsed !isActive !items !nested !open !title *:border-b *:data-[empty=true]:border-b-0 *:first:font-medium *:first:text-fd-primary *:flex *:flex-col *:has-[+:last-child[data-empty=true]]:border-b-0 *:last:border-b-0 *:mask-[linear-gradient(to_bottom,white,white_30px,transparent_80px)] *:not-first:text-fd-muted-foreground *:nth-2:text-xs *:rounded-full ---spacing --accordion-panel-height --anchor-width --available-height --callout-color --collapsible-panel-height --color-fd- --color-fd-muted --fd-ai-chat-width --fd-animated-height --fd-banner-height --offset-distance --opacity --padding-right --shiki-dark-bg --shiki-light-bg --spacing --track-bottom --track-top --transform-origin -mb-px -me-0.5 -me-2 -mx-px -rotate-90 -top-1.5 -translate-x-1/2 -translate-y-1/2 -z-1 @container @defaultValue @deprecated @fuma-translate/react @keyframes @max-lg:col-span-full @max-xl:hidden @param @ts-expect-error @typescript-eslint/no-namespace [&:focus-visible_img]:ring-2 [&:focus-visible_img]:ring-fd-ring [&>figure:only-child]:-m-4 [&>figure:only-child]:border-none [&[hidden]:not([hidden='until-found'])]:hidden [&_::highlight(fd-search)]:text-fd-primary [&_::highlight(fd-search)]:underline [&_img]:cursor-zoom-in [&_svg]:size-3.5 [&_svg]:size-4 [&_svg]:size-4.5 [&_svg]:size-5 [&_svg]:size-full [&_svg]:text-fd-muted-foreground [clip-path:inset(0_0_100%)] [container-type:size] [offset-distance:var(--offset-distance,0)] [scrollbar-width:none] a abcdefghijklmnopqrstuvwxyz234567 about above absolute accordion action actions active activeItem add addEventListener advanced after align align-text-bottom align-top alignItems alignmentBaseline all allowClear allowCopy allows alphabet alt altKey always an anchor and animate animate-pulse animation another application/json are areaRef aria-activedescendant aria-autocomplete aria-controls aria-describedby aria-expanded aria-haspopup aria-hidden aria-label aria-labelledby aria-live aria-selected as aside ask aspectRatio assume assumes async at auto await b backdrop-blur-lg backdrop-blur-xs background background-position backgroundColor backgroundImage backgroundSize backward banner basePath baseProps baseSlots baseUrl based became before behavior behaviour belongs beside between bg-(--callout-color)/50 bg-(--shiki-light-bg) bg-cover bg-fd-accent bg-fd-background bg-fd-border bg-fd-card bg-fd-muted bg-fd-overlay bg-fd-popover bg-fd-popover/60 bg-fd-primary bg-fd-primary/10 bg-fd-secondary bg-fd-secondary/50 bg-linear-to-r bg-transparent bind bitsLeft black block blockRef boolean border border-b border-l border-none border-s border-t border-transparent borderBottom bottom bottom-0 bottom-1.5 bound boundaries boundary box buffer bundle button buttonVariants by cache cached callbacks can canonical caption cards case cells center central change changeLayout changes chat child children chooseLanguage class-variance-authority className clear client client-side clientHeight clientWidth clients clipPath clone close closeOnRedirect closed closing cn code codeblock col-span-full collapsed collapsible collapsing collection color colors column columns com combobox compact compat compatibility compatible component components composedRef computed config const container containerRef containing content contents context controlled/uncontrolled copy core counterSet createContext createRelativeLink createShikiHighlighter css ctx current currentColor currentSrc cursor-default cursor-zoom-out custom customize cva cx cy d dangerouslySetInnerHTML dark dark:bg-(--shiki-dark-bg) dashed data data-[active=true]:text-fd-primary data-[active]:border-fd-primary data-[active]:text-fd-primary data-[inactive]:hidden data-[popup-open]:bg-fd-accent data-[popup-open]:text-fd-accent-foreground data-accordion-value data-active data-card data-checked data-checked:text-fd-accent-foreground data-closed:animate-fd-dialog-out data-closed:animate-fd-fade-out data-closed:animate-fd-popover-out data-collapsed data-empty data-ending-style:h-0 data-ending-style:opacity-0 data-fd-search-dialog-input data-highlight-ignore data-icon data-line-numbers data-line-numbers-start data-open:animate-fd-dialog-in data-open:animate-fd-fade-in data-open:animate-fd-popover-in data-ready data-ready:transition-[clip-path] data-search data-search-full data-starting-style:h-0 data-starting-style:opacity-0 data-state data-theme-toggle date debounced declare default defaultColor defaultFormatter defaultIndex defaultItems defaultLanguage defaultMdxComponents defaultOpen defaultOpenLevel defaultShikiFactory defaultTransform defaultUrl defaultValue defineI18nUI defined delay delayMs depends deprecated depth description desktop detect dialog dialogHandle dir direction disabled disabled:opacity-50 disabled:pointer-events-none discard display displayName displayed distance div divide-fd-border divide-x divide-y docked document documented dominantBaseline don drawer dropdown duration-100 duration-200 duration-300 duration-400 during each ease-in-out ease-out element else empty empty:hidden empty:mb-0 enabled encoded endIdx endpoint env environment equal error escape eslint-disable-next-line event export expose extends external extraProps failed fallback false fd-lightbox fd-moving-banner fd-scroll-container fd-search-dialog-content fd-search-list fd-step fd-steps fetch fetchClient fetchOptions field fieldVariants figcaption figure file fill fill-(--callout-color) fill-fd-muted fill-fd-muted-foreground fill-fd-primary fill-fd-primary-foreground filter filters final finally first:mt-0 fixed flex flex-1 flex-col flex-row flex-wrap flexDirection floating flushSync focus focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-fd-ring focus-visible:ring-inset folder folders font-medium font-mono fontSize fontWeight for forks formatter formatterOptions found free from from-fd-primary/10 full fumadocs-core/framework fumadocs-core/highlight fumadocs-core/i18n fumadocs-core/link fumadocs-core/page-tree fumadocs-core/search fumadocs-core/source fumadocs-core/toc function gap gap-0.5 gap-1 gap-1.5 gap-2 gap-3 gap-3.5 gap-4 gap-x-3 gap-y-4 generated getActive ghost github-dark github-light githubUrl given global globalKey grid grid-cols-2 grid-cols-[1fr_3fr] grid-cols-subgrid gridTemplateColumns group group-data-[active=true]:bg-fd-primary group-data-[active=true]:text-fd-primary-foreground group-data-[open]:rotate-180 group-data-active:bg-fd-primary group-data-open:rotate-180 group-data-panel-open:rotate-90 group-hover/heading:opacity-100 group/heading groupListeners groups guides h h-(--accordion-panel-height) h-(--collapsible-panel-height) h-(--fd-animated-height) h-14 h-9.5 h-[calc(100%+--spacing(1.5))] h-full h-px h1 h2 h3 h4 h5 h6 hand handle handleThemeChange has has-focus-visible:bg-fd-accent hash hashchange hastContent have header headerId headers heading height hidden hideLocale highlight highlightRef highlighter highlights hints hover:bg-fd-accent hover:bg-fd-accent/80 hover:bg-fd-primary/80 hover:text-fd-accent-foreground hovered hovering href html hydration i i18n i18nProvider icon icon-sm icon-xs iconClass id idea idx if if-needed ignore ignoreTyping image images img import in inTab index infinite info initial initialFocus inline inline-flex input inputType inset-0 inset-e-2 inset-e-2.5 inset-s-0 inset-s-2.5 inset-s-3 inset-s-6 inset-x-2 inset-y-0 inside instance instanceof instant instantly instead integration interface intersect into invisible is isActive isComposing isFirst isLast isLoading isUp it item itemLineLengths itemVariants items items-baseline items-center itemsProp its js justify-between justify-center keepBackground keepMounted keeps key keyCode keydown keys l l0 l1 l2 label lang language languageSelect languages large last last:line-clamp-2 last:rounded-b-xl layer layout layout:[--fd-ai-chat-width:min(--spacing(100),100vw---spacing(4))] lays lazy leading-none leaving left-0 left-1/2 length let letting level light light-dark light-dark-system lightbox like line line-through linear link links list listbox listener listeners loading localRef locale localeTranslations locales lower ltr lucide lucide-book lucide-book-icon lucide-react m-0 made main make mapped margin marginTop mark markdownUrl marked mask-[linear-gradient(to_bottom,transparent,white_12px,white_calc(100%-12px),transparent)] mask-[linear-gradient(to_bottom,transparent,white_16px,white_calc(100%-16px),transparent)] maskComposite maskImage matches max-h-(--available-height) max-h-20 max-h-[460px] max-h-[600px] max-h-full max-h-none max-md:bg-fd-secondary max-md:border max-md:hidden max-md:p-1.5 max-md:rounded-md max-w-[1400px] max-w-[98vw] max-w-full max-w-none max-w-screen-sm max-width max-xl:border max-xl:end-2 max-xl:fixed max-xl:inset-y-2 max-xl:rounded-2xl max-xl:shadow-xl max-xl:translate-x-[calc(100%+--spacing(2))] max-xl:w-(--fd-ai-chat-width) maximumFractionDigits mb-1 mb-1.5 mb-2 md:hidden md:mb-auto md:px-16 md:size-5 md:top-[calc(50%-250px)] mdComponents mdx/types.js me-1 me-1.5 me-2 me-auto measured menu menuItems mergeRefs message metaKey middle min-h-0 min-w-0 min-w-[240px] min-w-fit min-w-full mode module morph motion-reduce:transition-none mount mounted mouse ms-2 ms-3 ms-auto mt-1 mt-4 mt-6 must mx-auto my-0 my-0! my-0.5 my-4 my-6 my-auto n name names namespace naturalHeight naturalWidth nav navItems navTitle navigate navigation nd-copy-ignore nd-sidebar nd-sidebar-mobile nearest needed nested nested-url never new newTheme next next-themes next/og node nodes none noop noopener noreferrer normal normalize not not-empty:border-b not-empty:p-3 not-first:border-t not-last:mb-2 not-last:truncate not-prose notation note now null number numbers object observer of offsetHeight offsetPath offsetTop on onAnimationEnd onCancel onChange onClick onClose onCopy onKey onKeyDown onOpenChange onOpenChangeCallback onPointerEnter onPointerLeave onPointerMove onPrint onSearchChange onSearchChangeCallback onSelect onSelectCallback onTagChange onTagChangeCallback onValueChange once one only opacity-(--opacity,0) opacity-0 open openFromHash opened option optional options or order origin-(--transform-origin) origin-center original other out outline outline-none output over overflow overflow-auto overflow-clip overflow-hidden overflow-x-auto overflow-x-clip overflow-y-auto override overscroll-contain overscroll-x-contain own owner p p-0 p-0.5 p-1 p-1.5 p-2 p-3 p-4 padding paddingBottom paddingInlineStart page pageUrl pageUrlProp panel panels parameters params parent parentId pass passed path pathname paths pb-0 pb-2 pb-6 pe-2 pe-2.5 per performing persist persistent place placed placeholder placeholder:text-fd-muted-foreground please pointerType points polite populated pos positions possible powered pre pre-rendering predate prefers-reduced-motion prefetch prev preventScroll previous previousRef primary primaryColor primaryTextColor production promise promises prompt prompts prop props prose prose-no-margin prose-sm provide provider ps-1 ps-2 ps-3.25 ps-4 ps-8 pt-0 pure px px-0.5 px-1 px-1.5 px-2 px-2.5 px-3 px-4 py-0.5 py-1 py-1.5 py-12 py-2 py-2.5 py-3 py-3.5 q query querySelector questions rainbow rainbowColors ratio raw re-create re-render react react-dom react-hooks/rules-of-hooks react-medium-image-zoom read reader ref referenced region register registering rel relative remove removeEventListener render renderOptions repo repository required resize resizing resolve resolved resolvedTheme response rest result results return returned revalidate right-2 role root rootRef round rounded-2xl rounded-[inherit] rounded-full rounded-lg rounded-md rounded-sm rounded-xl router row rowRenderOptions rows rtl rtl:-scale-x-100 rtl:max-xl:-translate-x-[calc(100%+--spacing(2))] rtl:rotate-180 rtl:rotate-90 runs s same scroll scroll-into-view-if-needed scroll-m-20 scroll-m-24 scroll-m-28 scroll-m-4 scrollIntoView scrollMode scroller scrollerRef search searchOptions searchToggle searchToggleEnabled searchTrigger secondary see select-none selected separate separator server set setActive setCollapsed setHidden setHover setLoading setMounted setOpen setSlides setSvg setTag setValue shadow-2xl shadow-lg shadow-md shadow-sm shiftKey shiki shortcuts should show showAlgolia showOrama showing shown shows shrink-0 side sideOffset sidebar signature simple since site size size-1 size-3 size-3.5 size-4 size-5 size-6.5 size-9 size-full sized sizes slide slots sm smaller smooth snap-always snap-mandatory snap-start snap-x so solid some source space span specific sr-only src stars start startIdx startViewTransition state static status stay step sticky still str string stroke stroke-fd-foreground/10 stroke-fd-primary strokeLinecap strokeLinejoin strokeWidth style styles subscribe subscribeActive success successful supported supposed sure suspending svg switch switcher system t tab tabIndex table tableRenderOptions tables tabs tabsRef tabular-nums tag tagName tags take target tbody td text text-(--callout-color) text-[0.8125rem] text-[0.8125rem]/5 text-[0.9375rem] text-[10px] text-center text-fd-accent-foreground text-fd-card text-fd-card-foreground text-fd-error text-fd-foreground text-fd-foreground/80 text-fd-muted-foreground text-fd-muted-foreground/50 text-fd-popover-foreground text-fd-popover-foreground/80 text-fd-primary text-fd-primary-foreground text-fd-primary/50 text-fd-secondary-foreground text-inherit text-lg text-nowrap text-sm text-start text-xs text/plain textAnchor textContent th that the thead their them theme themeAriaLabels themeSwitch themeSwitchEnabled themes then they this throw thumbBox tier timerRef tip title to toJsx toc tocInfo toolbar top top-0 top-1/2 top-2 top-2.5 top-3.25 top-4 touch tr transform transition-[clip-path] transition-[height,opacity] transition-[height] transition-[opacity,offset-distance] transition-[width,margin,translate,visibility] transition-[width,margin,translate] transition-all transition-colors transition-opacity transition-transform translationKeys translations translations/keys.json transparent tree trigger triggers true truncate try twice type typeof types unchanged undefined underline underlying understand unknown unnecessarily unused update updateAnchor updates upperX url urls us usage use useAlgoliaSearch useCopyButton useDocsSearch useHotKey useI18n useIsDocsLayout useItems useMediaQuery useMemo useOnChange useOramaCloudSearch usePathname useProps useRef useRouter useSearchContext useSidebar useState useSyncExternalStore useTOCItems useTheme useTranslations useTreePath useful users using usually v v17 value valueToIdMap values variables variant variants vertical viewBox viewRef viewTransitionName viewer viewportProps visible vite void w w-(--anchor-width) w-(--fd-ai-chat-width) w-0 w-0.5 w-1.5 w-1/4 w-[calc(100%-1rem)] w-fit w-full w-max w-px want warn warning what when where which while white whitespace-nowrap whitespaces wide width will window with without work would wrap wrap-anywhere wrapElement wrapInSuspense wrapped x x1 x2 xl:w-(--fd-ai-chat-width) xmlns y y1 y2 you your z-2 z-40 z-50 zoom zoomImg zoomInProps zoomMargin zoomable");
@@ -1 +1 @@
1
- @source inline("!header !selected *:min-w-[calc(var(--fd-toc-width)---spacing(16))] *:not-first:border-t *:pointer-events-auto --available-width --fd-docs-height --fd-docs-row-3 --fd-header-height --fd-layout-height --fd-page-width --fd-roll --fd-sidebar-col --fd-sidebar-width --fd-toc-popover-height --fd-toc-width --index -ms-2 -mx-1.5 -start-1 -translate-x-3 @max-5xl:invisible @max-5xl:opacity-0 @max-5xl:opacity-100 @max-5xl:ps-0 @max-5xl:transition-none @max-5xl:visible @max-5xl:w-0 @max-md:col-span-full [&>[data-icon]]:size-3.5 [&_svg]:shrink-0 [--fd-header-height:--spacing(14)] [--fd-layout-height:calc(100dvh-var(--fd-banner-height,0px))] [--fd-page-width:760px] [--fd-sidebar-col:var(--fd-sidebar-width)] [--fd-sidebar-width:0px] [--fd-toc-width:0px] [clip-path:inset(0_-8px_-8px)] [grid-area:header] [grid-area:main] [grid-area:right] [grid-area:sidebar] [grid-area:toc-popover] activeClassName activeLine aiChat alignOffset along angle apart appear area aria-valuemax aria-valuemin aria-valuenow article available bar bars bg-clip-content bg-fd-accent/60 bg-linear-to-b bg-origin-border border-x breadcrumb breadcrumbEnabled circle circumference clerk click closeOnClick col-start-2 collapse comes coming controller createLinkItemRenderer createPageTreeRenderer customSlots data-[state=closed]:animate-fd-fade-out data-[state=closed]:animate-fd-sidebar-out data-[state=open]:animate-fd-fade-in data-[state=open]:animate-fd-sidebar-in data-ending-style:duration-100 data-ending-style:scale-95 data-ending-style:scale-97 data-full data-highlighted:bg-fd-accent data-highlighted:text-fd-accent-foreground data-highlighted:text-fd-foreground data-popup-open:bg-fd-accent data-popup-open:text-fd-accent-foreground data-starting-style:scale-95 defaultVariants docs duration duration-150 ease-[cubic-bezier(0.22,1,0.36,1)] easing edit end fade fallback fd-spacious-layout first:mt-1 focusin focusout font-semibold footer footerEnabled footerList from-50% from-fd-background fumadocs-core/breadcrumb gap-2.5 gaps getBreadcrumbItemsFromPath glide glides gliding gridTemplate group-hover:-translate-x-0.5 group-hover:translate-x-0.5 gutter h-(--fd-header-height) h-10 h-7.5 h-8 h-[calc(var(--fd-layout-height)-var(--fd-header-height)-100%)] hasFolders hideIfDisabled hold hover hover:bg-fd-accent/40 hover:bg-fd-accent/60 hover:text-fd-foreground iconLinks in-data-popup-open:rotate-180 includePage includeRoot including inert information initial inset inset-e-0 inset-x-0 inset-y-1 inset-y-2 itemClass itemOf items-end items-start keep keyboard labels layout:[--fd-page-width:1200px] layout:[--fd-toc-width:--spacing(76)] left lg:hidden linkItems mask-b-from-[calc(100%-32px)] mask-t-from-[calc(100%-16px)] max-h-[50vh] max-h-[min(28rem,var(--available-height))] max-lg:hidden max-md:[--fd-docs-row-3:calc(var(--fd-banner-height,0px)+var(--fd-header-height)+var(--fd-toc-popover-height,0px))] max-md:layout:[--fd-toc-popover-height:--spacing(10)] max-w-(--available-width) max-w-(--fd-page-width) max-w-95 may mb-6 mb-8 md:[--fd-docs-height:calc(var(--fd-layout-height)-var(--spacing)*4-2px-var(--fd-header-height))] md:border md:h-(--fd-layout-height) md:layout:[--fd-sidebar-col:--spacing(2)] md:layout:[--fd-sidebar-width:268px] md:min-h-0 md:ms-0 md:my-2 md:overflow-clip md:overflow-y-auto md:overscroll-y-contain md:pt-(--fd-header-height) md:px-[max(--spacing(6),calc((100%-var(--fd-page-width)-var(--fd-toc-width))/2))] md:rounded-2xl md:scrollbar-gutter-stable md:scrollbar-thin md:shadow-sm min-h-(--fd-layout-height) min-h-9 min-w-44 mobile motion-safe:animate-fd-roll-in motion-safe:transition-[translate,width,height,opacity] move mt-0.5 mt-2 mt-8 mx-0.5 mx-2 my-2 navbar nd-page nd-page-panel nd-subnav nd-toc opacity origin outline-8 outline-fd-card outside pagination pb-4 pb-8 pe-1 pe-3 pe-4 picked pointer-events-none pointerleave pointerover popover popupClass position positionMethod print:h-auto print:overflow-visible progressbar ps-0 ps-16 ps-2.5 ps-3.5 ps-5.5 ps-6 ps-[calc(--spacing(2.5)-1px)] pt-4 pt-6 pt-8 px-[calc(--spacing(2.5)-1px)] queries rect remain right ring-1 ring-fd-border roll rolls rotate rotate-180 rounded rounded-t-2xl rtl:-translate-x-[calc(var(--index)*100%)] rtl:translate-x-3 scale scrolling selectProgress selectTopmost selectors self-start separators setShown setTheme shadow-xl shorter signal single size-3.5! size-4.5 size-7 size-8 soft start-0 start-0.5 starts stroke-current/25 strokeDasharray strokeDashoffset tableOfContent tableOfContentPopover tabsOptions text-[1.75em] text-end timezone to-40% to-[16px] to-transparent toc-popover tocEnabled tocPopoverEnabled tocPopoverProps tocProps top-(--fd-banner-height,0px) top-0.5 top-[calc(var(--fd-banner-height,0px)+var(--fd-header-height))] top-full transition-[grid-template-columns] transition-[opacity,scale] transition-[opacity,translate] transition-[opacity,visibility] transition-[stroke-dashoffset] transition-[width,padding,opacity,visibility] transitionProperty translate translate-x-[calc(var(--index)*100%)] turn turns typography under unlisted updated useBaseSlots useBreadcrumbItems useFooterItems useSpaciousLayout useTOCSelector used viewports w-(--fd-sidebar-width) w-(--fd-toc-width) w-64 w-88 w-[85%] w-[calc(var(--anchor-width)+--spacing(2))] wider xl:bg-fd-background xl:border xl:me-2 xl:my-2 xl:rounded-2xl xl:shadow-sm z-10 z-30");
1
+ @source inline("!header !selected *:min-w-[calc(var(--fd-toc-width)---spacing(16))] *:not-first:border-t *:pointer-events-auto --available-width --fd-docs-height --fd-docs-row-3 --fd-header-height --fd-layout-height --fd-page-width --fd-roll --fd-sidebar-col --fd-sidebar-width --fd-toc-popover-height --fd-toc-width --index -ms-2 -mx-1.5 -start-1 -translate-x-3 @max-5xl:invisible @max-5xl:opacity-0 @max-5xl:opacity-100 @max-5xl:ps-0 @max-5xl:transition-none @max-5xl:visible @max-5xl:w-0 @max-md:col-span-full [&>[data-icon]]:size-3.5 [&_svg]:shrink-0 [--fd-header-height:--spacing(14)] [--fd-layout-height:calc(100dvh-var(--fd-banner-height,0px))] [--fd-page-width:760px] [--fd-sidebar-col:var(--fd-sidebar-width)] [--fd-sidebar-width:0px] [--fd-toc-width:0px] [clip-path:inset(0_-8px_-8px)] [grid-area:header] [grid-area:main] [grid-area:right] [grid-area:sidebar] [grid-area:toc-popover] activeClassName activeLine aiChat alignOffset along angle apart appear area aria-valuemax aria-valuemin aria-valuenow article available bar bars bg-clip-content bg-fd-accent/60 bg-linear-to-b bg-origin-border border-x breadcrumb breadcrumbEnabled circle circumference clerk click closeOnClick col-start-2 collapse comes coming controller createLinkItemRenderer createPageTreeRenderer customSlots data-[state=closed]:animate-fd-fade-out data-[state=closed]:animate-fd-sidebar-out data-[state=open]:animate-fd-fade-in data-[state=open]:animate-fd-sidebar-in data-ending-style:duration-100 data-ending-style:scale-95 data-ending-style:scale-97 data-full data-highlighted:bg-fd-accent data-highlighted:text-fd-accent-foreground data-highlighted:text-fd-foreground data-popup-open:bg-fd-accent data-popup-open:text-fd-accent-foreground data-starting-style:scale-95 defaultVariants docs duration duration-150 ease-[cubic-bezier(0.22,1,0.36,1)] easing edit end fade fd-spacious-layout first:mt-1 focusin focusout font-semibold footer footerEnabled footerList from-50% from-fd-background fumadocs-core/breadcrumb gap-2.5 gaps getBreadcrumbItemsFromPath glide glides gliding gridTemplate group-hover:-translate-x-0.5 group-hover:translate-x-0.5 gutter h-(--fd-header-height) h-10 h-7.5 h-8 h-[calc(var(--fd-layout-height)-var(--fd-header-height)-100%)] hasFolders hideIfDisabled hold hover hover:bg-fd-accent/40 hover:bg-fd-accent/60 hover:text-fd-foreground iconLinks in-data-popup-open:rotate-180 includePage includeRoot including inert information inset inset-e-0 inset-x-0 inset-y-1 inset-y-2 itemClass itemOf items-end items-start keep keyboard labels layout:[--fd-page-width:1200px] layout:[--fd-toc-width:--spacing(76)] left lg:hidden linkItems mask-b-from-[calc(100%-32px)] mask-t-from-[calc(100%-16px)] max-h-[50vh] max-h-[min(28rem,var(--available-height))] max-lg:hidden max-md:[--fd-docs-row-3:calc(var(--fd-banner-height,0px)+var(--fd-header-height)+var(--fd-toc-popover-height,0px))] max-md:layout:[--fd-toc-popover-height:--spacing(10)] max-w-(--available-width) max-w-(--fd-page-width) max-w-95 may mb-6 mb-8 md:[--fd-docs-height:calc(var(--fd-layout-height)-var(--spacing)*4-2px-var(--fd-header-height))] md:border md:h-(--fd-layout-height) md:layout:[--fd-sidebar-col:--spacing(2)] md:layout:[--fd-sidebar-width:268px] md:min-h-0 md:ms-0 md:my-2 md:overflow-clip md:overflow-y-auto md:overscroll-y-contain md:pt-(--fd-header-height) md:px-[max(--spacing(6),calc((100%-var(--fd-page-width)-var(--fd-toc-width))/2))] md:rounded-2xl md:scrollbar-gutter-stable md:scrollbar-thin md:shadow-sm min-h-(--fd-layout-height) min-h-9 min-w-44 mobile motion-safe:animate-fd-roll-in motion-safe:transition-[translate,width,height,opacity] move mt-0.5 mt-2 mt-8 mx-0.5 mx-2 my-2 navbar nd-page nd-page-panel nd-subnav nd-toc opacity origin outline-8 outline-fd-card outside pagination pb-4 pb-8 pe-1 pe-3 pe-4 picked pointer-events-none pointerleave pointerover popover popupClass position positionMethod print:h-auto print:overflow-visible progressbar ps-0 ps-16 ps-2.5 ps-3.5 ps-5.5 ps-6 ps-[calc(--spacing(2.5)-1px)] pt-4 pt-6 pt-8 px-[calc(--spacing(2.5)-1px)] queries rect remain right ring-1 ring-fd-border roll rolls rotate rotate-180 rounded rounded-t-2xl rtl:-translate-x-[calc(var(--index)*100%)] rtl:translate-x-3 scale scrolling selectProgress selectTopmost selectors self-start separators setShown setTheme shadow-xl shorter signal single size-3.5! size-4.5 size-7 size-8 soft start-0 start-0.5 starts stroke-current/25 strokeDasharray strokeDashoffset tableOfContent tableOfContentPopover tabsOptions text-[1.75em] text-end timezone to-40% to-[16px] to-transparent toc-popover tocEnabled tocPopoverEnabled tocPopoverProps tocProps top-(--fd-banner-height,0px) top-0.5 top-[calc(var(--fd-banner-height,0px)+var(--fd-header-height))] top-full transition-[grid-template-columns] transition-[opacity,scale] transition-[opacity,translate] transition-[opacity,visibility] transition-[stroke-dashoffset] transition-[width,padding,opacity,visibility] transitionProperty translate translate-x-[calc(var(--index)*100%)] turn turns typography under unlisted updated useBaseSlots useBreadcrumbItems useFooterItems useSpaciousLayout useTOCSelector used viewports w-(--fd-sidebar-width) w-(--fd-toc-width) w-64 w-88 w-[85%] w-[calc(var(--anchor-width)+--spacing(2))] wider xl:bg-fd-background xl:border xl:me-2 xl:my-2 xl:rounded-2xl xl:shadow-sm z-10 z-30");
@@ -21,4 +21,5 @@ export declare function Banner({ id, variant, changeLayout, height, rainbowColor
21
21
  */
22
22
  changeLayout?: boolean;
23
23
  }): import("react").JSX.Element | null;
24
- //#endregion
24
+ //#endregion
25
+ export {};
@@ -1,5 +1,5 @@
1
1
  import { CodeBlockProps } from "./codeblock.js";
2
- import { HighlightOptions } from "fumadocs-core/highlight";
2
+ import { HighlightOptions, Highlighter } from "fumadocs-core/highlight";
3
3
  //#region src/components/codeblock.rsc.d.ts
4
4
  export type ServerCodeBlockProps = HighlightOptions & {
5
5
  code: string;
@@ -11,4 +11,10 @@ export type ServerCodeBlockProps = HighlightOptions & {
11
11
  codeblock?: CodeBlockProps;
12
12
  };
13
13
  export declare function ServerCodeBlock({ code, codeblock, ...options }: ServerCodeBlockProps): Promise<Iterable<import("react").ReactNode> | import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>> | (string | number | bigint | boolean | Iterable<import("react").ReactNode> | import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>> | import("react").ReactPortal | null | undefined)>;
14
+ /**
15
+ * Create a server code block that highlights with your own highlighter.
16
+ */
17
+ export declare function createServerCodeBlock({ highlighter }: {
18
+ highlighter: Highlighter;
19
+ }): ({ code, lang, codeblock }: Pick<ServerCodeBlockProps, 'code' | 'lang' | 'codeblock'>) => Promise<Iterable<import("react").ReactNode> | import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>> | (string | number | bigint | boolean | Iterable<import("react").ReactNode> | import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>> | import("react").ReactPortal | null | undefined)>;
14
20
  //#endregion
@@ -1,6 +1,7 @@
1
1
  import { cn } from "../utils/cn.js";
2
2
  import { CodeBlock, Pre } from "./codeblock.js";
3
3
  import { jsx } from "react/jsx-runtime";
4
+ import { toJsx } from "fumadocs-core/utils/hast-to-jsx";
4
5
  import { highlight } from "fumadocs-core/highlight";
5
6
  //#region src/components/codeblock.rsc.tsx
6
7
  async function ServerCodeBlock({ code, codeblock, ...options }) {
@@ -8,15 +9,27 @@ async function ServerCodeBlock({ code, codeblock, ...options }) {
8
9
  defaultColor: false,
9
10
  ...options,
10
11
  components: {
11
- pre: (props) => /* @__PURE__ */ jsx(CodeBlock, {
12
- ...props,
13
- ...codeblock,
14
- className: cn("my-0", props.className, codeblock?.className),
15
- children: /* @__PURE__ */ jsx(Pre, { children: props.children })
16
- }),
12
+ pre: createPre(codeblock),
17
13
  ...options.components
18
14
  }
19
15
  });
20
16
  }
17
+ /**
18
+ * Create a server code block that highlights with your own highlighter.
19
+ */
20
+ function createServerCodeBlock({ highlighter }) {
21
+ return async function ServerCodeBlock({ code, lang, codeblock }) {
22
+ await highlighter.loadLanguage?.(lang);
23
+ return toJsx(highlighter.codeToHast(code, { lang }), { components: { pre: createPre(codeblock) } });
24
+ };
25
+ }
26
+ function createPre(codeblock) {
27
+ return (props) => /* @__PURE__ */ jsx(CodeBlock, {
28
+ ...props,
29
+ ...codeblock,
30
+ className: cn("my-0", props.className, codeblock?.className),
31
+ children: /* @__PURE__ */ jsx(Pre, { children: props.children })
32
+ });
33
+ }
21
34
  //#endregion
22
- export { ServerCodeBlock };
35
+ export { ServerCodeBlock, createServerCodeBlock };
@@ -1,5 +1,4 @@
1
1
  import { SharedProps } from "../../contexts/search.js";
2
- import * as JsxRuntime from "react/jsx-runtime";
3
2
  import { ComponentProps, ReactNode } from "react";
4
3
  import { Dialog } from "@base-ui/react/dialog";
5
4
  import { SearchResult, SearchResultItem, SearchResultRecord, SearchResultTable } from "fumadocs-core/search/client";
@@ -34,13 +33,13 @@ export interface SearchDialogProps extends SharedProps {
34
33
  error?: Error;
35
34
  children: ReactNode;
36
35
  }
37
- export declare function SearchDialog({ open, onOpenChange, search, onSearchChange, isLoading, data, error, onSelect: onSelectProp, children, dialogHandle }: SearchDialogProps): JsxRuntime.JSX.Element;
38
- export declare function SearchDialogHeader(props: ComponentProps<'div'>): JsxRuntime.JSX.Element;
39
- export declare function SearchDialogInput(props: ComponentProps<'input'>): JsxRuntime.JSX.Element;
40
- export declare function SearchDialogClose({ children, className, ...props }: ComponentProps<'button'>): JsxRuntime.JSX.Element;
41
- export declare function SearchDialogFooter(props: ComponentProps<'div'>): JsxRuntime.JSX.Element;
42
- export declare function SearchDialogOverlay({ className, ...props }: ComponentProps<typeof Dialog.Backdrop>): JsxRuntime.JSX.Element;
43
- export declare function SearchDialogContent({ ref, children, className, ...props }: ComponentProps<typeof Dialog.Popup>): JsxRuntime.JSX.Element;
36
+ export declare function SearchDialog({ open, onOpenChange, search, onSearchChange, isLoading, data, error, onSelect: onSelectProp, children, dialogHandle }: SearchDialogProps): import("react").JSX.Element;
37
+ export declare function SearchDialogHeader(props: ComponentProps<'div'>): import("react").JSX.Element;
38
+ export declare function SearchDialogInput(props: ComponentProps<'input'>): import("react").JSX.Element;
39
+ export declare function SearchDialogClose({ children, className, ...props }: ComponentProps<'button'>): import("react").JSX.Element;
40
+ export declare function SearchDialogFooter(props: ComponentProps<'div'>): import("react").JSX.Element;
41
+ export declare function SearchDialogOverlay({ className, ...props }: ComponentProps<typeof Dialog.Backdrop>): import("react").JSX.Element;
42
+ export declare function SearchDialogContent({ ref, children, className, ...props }: ComponentProps<typeof Dialog.Popup>): import("react").JSX.Element;
44
43
  export declare function SearchDialogList({ items: itemsProp, defaultItems, Empty, Item, Table, ...props }: Omit<ComponentProps<'div'>, 'children'> & {
45
44
  /** @defaultValue the results of `data` from `<SearchDialog />` */
46
45
  items?: (SearchItemType | SearchResultItem)[] | null;
@@ -58,25 +57,25 @@ export declare function SearchDialogList({ items: itemsProp, defaultItems, Empty
58
57
  * Renderer for tables, `Item` and `onSelect` render their rows
59
58
  */
60
59
  Table?: (props: TableProps) => ReactNode;
61
- }): JsxRuntime.JSX.Element;
62
- export declare function SearchDialogListTable({ table, Item, onSelect }: TableProps): JsxRuntime.JSX.Element;
60
+ }): import("react").JSX.Element;
61
+ export declare function SearchDialogListTable({ table, Item, onSelect }: TableProps): import("react").JSX.Element;
63
62
  export declare function SearchDialogListItem({ item, table, className, children, renderMarkdown, ...props }: ComponentProps<'div'> & {
64
63
  /** the table of a row */
65
64
  table?: SearchResultTable;
66
65
  /** render the Markdown `content` of items, instead of their `hastContent` */
67
66
  renderMarkdown?: (v: string) => ReactNode;
68
67
  item: SearchItemType;
69
- }): JsxRuntime.JSX.Element;
70
- export declare function SearchDialogIcon(props: ComponentProps<'svg'>): JsxRuntime.JSX.Element;
68
+ }): import("react").JSX.Element;
69
+ export declare function SearchDialogIcon(props: ComponentProps<'svg'>): import("react").JSX.Element;
71
70
  export interface TagsListProps extends ComponentProps<'div'> {
72
71
  tag?: string;
73
72
  onTagChange: (tag: string | undefined) => void;
74
73
  allowClear?: boolean;
75
74
  }
76
- export declare function TagsList({ tag, onTagChange, allowClear, ...props }: TagsListProps): JsxRuntime.JSX.Element;
75
+ export declare function TagsList({ tag, onTagChange, allowClear, ...props }: TagsListProps): import("react").JSX.Element;
77
76
  export declare function TagsListItem({ value, className, ...props }: ComponentProps<'button'> & {
78
77
  value: string;
79
- }): JsxRuntime.JSX.Element;
78
+ }): import("react").JSX.Element;
80
79
  export declare function useSearch(): {
81
80
  open: boolean;
82
81
  onOpenChange: (open: boolean) => void;
@@ -3,7 +3,6 @@ import { cn } from "../../utils/cn.js";
3
3
  import { buttonVariants } from "../ui/button.js";
4
4
  import { mergeRefs } from "../../utils/merge-refs.js";
5
5
  import { useRouter } from "fumadocs-core/framework";
6
- import * as JsxRuntime from "react/jsx-runtime";
7
6
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
8
7
  import { ChevronRight, CircleAlert, Hash, SearchIcon } from "lucide-react";
9
8
  import { cva } from "class-variance-authority";
@@ -11,8 +10,8 @@ import { Fragment as Fragment$1, createContext, use, useCallback, useEffect, use
11
10
  import { T, useTranslations } from "@fuma-translate/react";
12
11
  import { Dialog } from "@base-ui/react/dialog";
13
12
  import scrollIntoView from "scroll-into-view-if-needed";
13
+ import { toJsx } from "fumadocs-core/utils/hast-to-jsx";
14
14
  import { useHighlightQuery } from "fumadocs-core/search/client";
15
- import { toJsxRuntime } from "hast-util-to-jsx-runtime";
16
15
  //#region src/components/dialog/search.tsx
17
16
  const RootContext = createContext(null);
18
17
  const TagsListContext = createContext(null);
@@ -64,11 +63,7 @@ const mdComponents = {
64
63
  });
65
64
  }
66
65
  };
67
- const renderOptions = {
68
- development: false,
69
- components: mdComponents,
70
- ...JsxRuntime
71
- };
66
+ const renderOptions = { components: mdComponents };
72
67
  function Children({ children }) {
73
68
  return children;
74
69
  }
@@ -78,25 +73,19 @@ function TableCell(props) {
78
73
  className: "min-w-0 not-last:truncate last:line-clamp-2"
79
74
  });
80
75
  }
81
- const tableRenderOptions = {
82
- ...renderOptions,
83
- components: {
84
- ...mdComponents,
85
- table: Children,
86
- thead: Children,
87
- tbody: Children,
88
- tr: Children,
89
- th: TableCell,
90
- td: TableCell
91
- }
92
- };
93
- const rowRenderOptions = {
94
- ...tableRenderOptions,
95
- components: {
96
- ...tableRenderOptions.components,
97
- thead: () => null
98
- }
99
- };
76
+ const tableRenderOptions = { components: {
77
+ ...mdComponents,
78
+ table: Children,
79
+ thead: Children,
80
+ tbody: Children,
81
+ tr: Children,
82
+ th: TableCell,
83
+ td: TableCell
84
+ } };
85
+ const rowRenderOptions = { components: {
86
+ ...tableRenderOptions.components,
87
+ thead: () => null
88
+ } };
100
89
  function SearchDialog({ open, onOpenChange, search, onSearchChange, isLoading = false, data, error, onSelect: onSelectProp, children, dialogHandle }) {
101
90
  const router = useRouter();
102
91
  const onOpenChangeCallback = useRef(onOpenChange);
@@ -326,7 +315,7 @@ function SearchDialogListTable({ table, Item, onSelect }) {
326
315
  const { query } = useSearch();
327
316
  const highlightRef = useHighlightQuery(query);
328
317
  const headerId = `fd-search-table-${table.id}`;
329
- const header = useMemo(() => table.header && toJsxRuntime(table.header, tableRenderOptions), [table.header]);
318
+ const header = useMemo(() => table.header && toJsx(table.header, tableRenderOptions), [table.header]);
330
319
  return /* @__PURE__ */ jsx("div", {
331
320
  role: table.header ? "group" : void 0,
332
321
  "aria-labelledby": table.header ? headerId : void 0,
@@ -357,8 +346,8 @@ function SearchDialogListItem({ item, table, className, children, renderMarkdown
357
346
  if (item.type === "action") return item.node;
358
347
  if (renderMarkdown && typeof item.content === "string") return renderMarkdown(item.content);
359
348
  if (!("hastContent" in item)) return item.content;
360
- if (!table) return toJsxRuntime(item.hastContent, renderOptions);
361
- return toJsxRuntime(item.hastContent, table.header ? rowRenderOptions : tableRenderOptions);
349
+ if (!table) return toJsx(item.hastContent, renderOptions);
350
+ return toJsx(item.hastContent, table.header ? rowRenderOptions : tableRenderOptions);
362
351
  }, [
363
352
  item,
364
353
  renderMarkdown,
@@ -1,9 +1,8 @@
1
1
  import { CodeBlockProps } from "./codeblock.js";
2
+ import { Highlighter } from "fumadocs-core/highlight";
2
3
  import { UseShikiOptions } from "fumadocs-core/highlight/shiki/react";
3
4
  import { HighlighterCore } from "shiki";
4
- declare namespace dynamic_codeblock_core_d_exports {
5
- export { DynamicCodeBlock, DynamicCodeblockProps };
6
- }
5
+ //#region src/components/dynamic-codeblock.core.d.ts
7
6
  export interface DynamicCodeblockProps {
8
7
  highlighter: HighlighterCore | (() => HighlighterCore | PromiseLike<HighlighterCore>);
9
8
  lang: string;
@@ -23,6 +22,12 @@ export interface DynamicCodeblockProps {
23
22
  options: DistributiveOmit<UseShikiOptions, 'lang'>;
24
23
  }
25
24
  type DistributiveOmit<T, K extends PropertyKey> = T extends unknown ? Omit<T, K> : never;
26
- export declare function DynamicCodeBlock({ lang, code, codeblock, options, wrapInSuspense, highlighter }: DynamicCodeblockProps): import("react").JSX.Element;
25
+ /**
26
+ * Create a code block that highlights with your own highlighter.
27
+ */
28
+ export declare function createDynamicCodeBlock({ highlighter }: {
29
+ highlighter: Highlighter;
30
+ }): (props: Omit<DynamicCodeblockProps, 'highlighter' | 'options'>) => import("react").JSX.Element;
31
+ export declare function DynamicCodeBlock({ highlighter, options, wrapInSuspense, ...props }: DynamicCodeblockProps): import("react").JSX.Element;
27
32
  //#endregion
28
- export { dynamic_codeblock_core_d_exports };
33
+ export {};
@@ -2,8 +2,9 @@
2
2
  import { cn } from "../utils/cn.js";
3
3
  import { CodeBlock, Pre } from "./codeblock.js";
4
4
  import { jsx } from "react/jsx-runtime";
5
- import { createContext, use, useId } from "react";
6
- import { useShikiDynamic } from "fumadocs-core/highlight/shiki/react";
5
+ import { Suspense, createContext, use, useMemo, useRef } from "react";
6
+ import { toJsx } from "fumadocs-core/utils/hast-to-jsx";
7
+ import { createShikiHighlighter } from "fumadocs-core/highlight/shiki";
7
8
  //#region src/components/dynamic-codeblock.core.tsx
8
9
  const PropsContext = createContext(void 0);
9
10
  function DefaultPre(props) {
@@ -15,31 +16,68 @@ function DefaultPre(props) {
15
16
  children: /* @__PURE__ */ jsx(Pre, { children: props.children })
16
17
  });
17
18
  }
18
- function DynamicCodeBlock({ lang, code, codeblock, options, wrapInSuspense = true, highlighter }) {
19
- const id = useId();
20
- const shikiOptions = {
21
- lang,
19
+ /**
20
+ * Create a code block that highlights with your own highlighter.
21
+ */
22
+ function createDynamicCodeBlock({ highlighter }) {
23
+ return function DynamicCodeBlock(props) {
24
+ return /* @__PURE__ */ jsx(Base, {
25
+ highlighter,
26
+ components: { pre: DefaultPre },
27
+ ...props
28
+ });
29
+ };
30
+ }
31
+ function DynamicCodeBlock({ highlighter, options, wrapInSuspense = true, ...props }) {
32
+ const initial = useRef({
33
+ highlighter,
34
+ options
35
+ });
36
+ const instance = useMemo(() => createShikiHighlighter(initial.current.highlighter, {
22
37
  defaultColor: false,
23
- ...options,
38
+ ...initial.current.options
39
+ }), []);
40
+ const node = /* @__PURE__ */ jsx(Base, {
41
+ highlighter: instance,
24
42
  components: {
25
43
  pre: DefaultPre,
26
44
  ...options?.components
27
- }
28
- };
29
- let node = useShikiDynamic(highlighter, code, shikiOptions, [
30
- id,
45
+ },
46
+ wrapInSuspense,
47
+ ...props
48
+ });
49
+ return wrapInSuspense ? node : /* @__PURE__ */ jsx(Suspense, { children: node });
50
+ }
51
+ function Base({ highlighter, lang, code, codeblock, wrapInSuspense = true, components }) {
52
+ let node = /* @__PURE__ */ jsx(Highlighted, {
53
+ highlighter,
31
54
  lang,
32
- code
33
- ]);
34
- if (wrapInSuspense) node ??= /* @__PURE__ */ jsx(Placeholder, {
35
55
  code,
36
- components: shikiOptions.components
56
+ components
57
+ });
58
+ if (wrapInSuspense && highlighter.loadLanguage) node = /* @__PURE__ */ jsx(Suspense, {
59
+ fallback: /* @__PURE__ */ jsx(Placeholder, {
60
+ code,
61
+ components
62
+ }),
63
+ children: node
37
64
  });
38
65
  return /* @__PURE__ */ jsx(PropsContext, {
39
66
  value: codeblock,
40
67
  children: node
41
68
  });
42
69
  }
70
+ const languages = /* @__PURE__ */ new WeakMap();
71
+ function Highlighted({ highlighter, lang, code, components }) {
72
+ if (highlighter.loadLanguage) {
73
+ let loading = languages.get(highlighter);
74
+ if (!loading) languages.set(highlighter, loading = /* @__PURE__ */ new Map());
75
+ let promise = loading.get(lang);
76
+ if (!promise) loading.set(lang, promise = highlighter.loadLanguage(lang));
77
+ use(promise);
78
+ }
79
+ return toJsx(highlighter.codeToHast(code, { lang }), { components });
80
+ }
43
81
  function Placeholder({ code, components = {} }) {
44
82
  const { pre: Pre = "pre", code: Code = "code" } = components;
45
83
  return /* @__PURE__ */ jsx(Pre, { children: /* @__PURE__ */ jsx(Code, { children: code.split("\n").map((line, i) => /* @__PURE__ */ jsx("span", {
@@ -48,4 +86,4 @@ function Placeholder({ code, components = {} }) {
48
86
  }, i)) }) });
49
87
  }
50
88
  //#endregion
51
- export { DynamicCodeBlock };
89
+ export { DynamicCodeBlock, createDynamicCodeBlock };
@@ -1,4 +1,4 @@
1
- import { DynamicCodeblockProps as DynamicCodeblockProps$1, dynamic_codeblock_core_d_exports } from "./dynamic-codeblock.core.js";
1
+ import { DynamicCodeblockProps as DynamicCodeblockProps$1 } from "./dynamic-codeblock.core.js";
2
2
  //#region src/components/dynamic-codeblock.d.ts
3
3
  export type DynamicCodeblockProps = Omit<DynamicCodeblockProps$1, 'highlighter' | 'options'> & {
4
4
  options?: DynamicCodeblockProps$1['options'];
@@ -5,4 +5,5 @@ type HeadingProps<T extends Types> = Omit<ComponentPropsWithoutRef<T>, 'as'> & {
5
5
  as?: T;
6
6
  };
7
7
  export declare function Heading<T extends Types = 'h1'>({ as, ...props }: HeadingProps<T>): import("react").JSX.Element;
8
- //#endregion
8
+ //#endregion
9
+ export {};
@@ -1,5 +1,5 @@
1
- import { UncontrolledProps } from "../node_modules/.pnpm/react-medium-image-zoom@5.4.9_react-dom@19.3.0_react@19.3.0__react@19.3.0/node_modules/react-medium-image-zoom/dist/uncontrolled.js";
2
- import "../node_modules/.pnpm/react-medium-image-zoom@5.4.9_react-dom@19.3.0_react@19.3.0__react@19.3.0/node_modules/react-medium-image-zoom/dist/index.js";
1
+ import { UncontrolledProps } from "../node_modules/.pnpm/react-medium-image-zoom@5.4.9_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/react-medium-image-zoom/dist/uncontrolled.js";
2
+ import "../node_modules/.pnpm/react-medium-image-zoom@5.4.9_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/react-medium-image-zoom/dist/index.js";
3
3
  import { ImageProps } from "fumadocs-core/framework";
4
4
  import { ComponentProps, ReactNode } from "react";
5
5
  //#region src/components/image-zoom.d.ts
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import { cn } from "../utils/cn.js";
3
3
  import { buttonVariants } from "./ui/button.js";
4
- import { Uncontrolled } from "../node_modules/.pnpm/react-medium-image-zoom@5.4.9_react-dom@19.3.0_react@19.3.0__react@19.3.0/node_modules/react-medium-image-zoom/dist/uncontrolled.js";
4
+ import { Uncontrolled } from "../node_modules/.pnpm/react-medium-image-zoom@5.4.9_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/react-medium-image-zoom/dist/uncontrolled.js";
5
5
  import "./image-zoom2.css";
6
6
  import { Image } from "fumadocs-core/framework";
7
7
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
@@ -8,4 +8,5 @@ export declare function createLinkItemRenderer({ SidebarFolder, SidebarFolderCon
8
8
  type: 'icon';
9
9
  }>;
10
10
  }) => import("react").JSX.Element;
11
- //#endregion
11
+ //#endregion
12
+ export {};
@@ -16,4 +16,5 @@ export interface SidebarPageTreeComponents {
16
16
  }
17
17
  type InternalComponents = Pick<typeof base_d_exports, 'SidebarSeparator' | 'SidebarFolder' | 'SidebarFolderLink' | 'SidebarFolderContent' | 'SidebarFolderTrigger' | 'SidebarItem'>;
18
18
  export declare function createPageTreeRenderer({ SidebarFolder, SidebarFolderContent, SidebarFolderLink, SidebarFolderTrigger, SidebarSeparator, SidebarItem }: InternalComponents): (components: Partial<SidebarPageTreeComponents>) => import("react").JSX.Element;
19
- //#endregion
19
+ //#endregion
20
+ export {};
@@ -1,4 +1,4 @@
1
- import { Tabs as Tabs$1, TabsContent as TabsContent$1, TabsList as TabsList$1, TabsTrigger as TabsTrigger$1, tabs_d_exports } from "./ui/tabs.js";
1
+ import { Tabs as Tabs$1, TabsContent as TabsContent$1, TabsList as TabsList$1, TabsTrigger as TabsTrigger$1 } from "./ui/tabs.js";
2
2
  import * as React$1 from "react";
3
3
  import { ComponentProps, ReactNode } from "react";
4
4
  //#region src/components/tabs.d.ts
@@ -1,13 +1,11 @@
1
1
  import { TOCEmpty } from "./default.js";
2
2
  import { ComponentProps } from "react";
3
3
  import * as Primitive from "fumadocs-core/toc";
4
- declare namespace block_d_exports {
5
- export { TOCEmpty, TOCItem, TOCItems, TOCItemsProps };
6
- }
4
+ //#region src/components/toc/block.d.ts
7
5
  export type TOCItemsProps = ComponentProps<'div'>;
8
6
  export declare function TOCItems({ ref, className, children, ...props }: TOCItemsProps): import("react").JSX.Element;
9
7
  export declare function TOCItem({ item, ...props }: Primitive.TOCItemProps & {
10
8
  item: Primitive.TOCItemType;
11
9
  }): import("react").JSX.Element;
12
10
  //#endregion
13
- export { TOCEmpty, block_d_exports };
11
+ export { TOCEmpty };
@@ -1,13 +1,10 @@
1
1
  import { ComponentProps } from "react";
2
2
  import * as Primitive from "fumadocs-core/toc";
3
- declare namespace clerk_d_exports {
4
- export { TOCEmpty, TOCItem, TOCItems, TOCItemsProps };
5
- }
3
+ //#region src/components/toc/clerk.d.ts
6
4
  export type TOCItemsProps = ComponentProps<'div'>;
7
5
  export declare function TOCItems({ ref, className, children, ...props }: TOCItemsProps): import("react").JSX.Element;
8
6
  export declare function TOCEmpty(): import("react").JSX.Element;
9
7
  export declare function TOCItem({ item, ...props }: Primitive.TOCItemProps & {
10
8
  item: Primitive.TOCItemType;
11
9
  }): import("react").JSX.Element;
12
- //#endregion
13
- export { clerk_d_exports };
10
+ //#endregion
@@ -1,8 +1,6 @@
1
1
  import { ComponentProps } from "react";
2
2
  import * as Primitive from "fumadocs-core/toc";
3
- declare namespace default_d_exports {
4
- export { TOCEmpty, TOCItem, TOCItems, TOCItemsProps };
5
- }
3
+ //#region src/components/toc/default.d.ts
6
4
  export interface TOCItemsProps extends ComponentProps<'div'> {
7
5
  thumbBox?: boolean;
8
6
  }
@@ -11,5 +9,4 @@ export declare function TOCEmpty(): import("react").JSX.Element;
11
9
  export declare function TOCItem({ item, ...props }: Primitive.TOCItemProps & {
12
10
  item: Primitive.TOCItemType;
13
11
  }): import("react").JSX.Element;
14
- //#endregion
15
- export { default_d_exports };
12
+ //#endregion
@@ -1,12 +1,9 @@
1
1
  import { ComponentProps } from "react";
2
2
  import * as Primitive from "fumadocs-core/toc";
3
- declare namespace index_d_exports {
4
- export { TOCProvider, TOCProviderProps, TOCScrollArea, useActiveAnchor, useActiveAnchors, useItems, useTOCItems };
5
- }
3
+ //#region src/components/toc/index.d.ts
6
4
  export declare function useTOCItems(): Primitive.TOCItemType[];
7
5
  export type TOCProviderProps = Primitive.AnchorProviderProps;
8
6
  export declare const useActiveAnchor: typeof Primitive.useActiveAnchor, useActiveAnchors: typeof Primitive.useActiveAnchors, useItems: typeof Primitive.useItems;
9
7
  export declare function TOCProvider({ toc, children, ...props }: TOCProviderProps): import("react").JSX.Element;
10
8
  export declare function TOCScrollArea({ ref, className, ...props }: ComponentProps<'div'>): import("react").JSX.Element;
11
- //#endregion
12
- export { index_d_exports };
9
+ //#endregion
@@ -1,8 +1,6 @@
1
1
  import { ComponentProps } from "react";
2
2
  import { Tabs as Tabs$1 } from "@base-ui/react/tabs";
3
- declare namespace tabs_d_exports {
4
- export { Tabs, TabsContent, TabsList, TabsProps, TabsTrigger };
5
- }
3
+ //#region src/components/ui/tabs.d.ts
6
4
  export interface TabsProps extends ComponentProps<typeof Tabs$1.Root> {
7
5
  /**
8
6
  * Identifier for Sharing value of tabs
@@ -22,5 +20,4 @@ export declare const TabsList: import("react").ForwardRefExoticComponent<Omit<im
22
20
  export declare function TabsTrigger({ value, ref, ...props }: ComponentProps<typeof Tabs$1.Tab>): import("react").JSX.Element;
23
21
  export declare function Tabs({ ref, groupId, persist, updateAnchor, defaultValue, value: _value, onValueChange: _onValueChange, ...props }: TabsProps): import("react").JSX.Element;
24
22
  export declare function TabsContent({ value, ref, ...props }: ComponentProps<typeof Tabs$1.Panel>): import("react").JSX.Element;
25
- //#endregion
26
- export { tabs_d_exports };
23
+ //#endregion
@@ -19,4 +19,5 @@ export interface I18nProviderProps extends Partial<Pick<I18nConfig, 'defaultLang
19
19
  children?: ReactNode;
20
20
  }
21
21
  export declare function I18nProvider({ locales, locale, defaultLanguage, hideLocale, onLocaleChange, children, translations }: I18nProviderProps): import("react").JSX.Element;
22
- //#endregion
22
+ //#endregion
23
+ export {};
@@ -64,4 +64,5 @@ export declare function SearchProvider<DialogProps extends SharedProps = Default
64
64
  export declare function SearchOnly({ children }: {
65
65
  children: ReactNode;
66
66
  }): ReactNode;
67
- //#endregion
67
+ //#endregion
68
+ export {};
@@ -25,4 +25,5 @@ export interface TabsGroup {
25
25
  * Tabs not bound to the page tree are appended to the group of `root: true` folders.
26
26
  */
27
27
  export declare function useTabsGroups(tabs: LayoutTab[]): TabsGroup[];
28
- //#endregion
28
+ //#endregion
29
+ export {};
@@ -30,4 +30,5 @@ export declare function useDocsLayout(): {
30
30
  menuItems: LinkItemType[];
31
31
  slots: DocsSlots;
32
32
  };
33
- //#endregion
33
+ //#endregion
34
+ export {};
@@ -12,4 +12,5 @@ export interface FooterProps extends ComponentProps<'div'> {
12
12
  };
13
13
  }
14
14
  export declare function Footer({ items, children, className, ...props }: FooterProps): import("react").JSX.Element;
15
- //#endregion
15
+ //#endregion
16
+ export {};
@@ -1,7 +1,7 @@
1
- import { TOCItemsProps, default_d_exports } from "../../../../components/toc/default.js";
2
- import { TOCItemsProps as TOCItemsProps$1, block_d_exports } from "../../../../components/toc/block.js";
3
- import { TOCItemsProps as TOCItemsProps$2, clerk_d_exports } from "../../../../components/toc/clerk.js";
4
- import { TOCProviderProps as TOCProviderProps$1, index_d_exports } from "../../../../components/toc/index.js";
1
+ import { TOCItemsProps } from "../../../../components/toc/default.js";
2
+ import { TOCItemsProps as TOCItemsProps$1 } from "../../../../components/toc/block.js";
3
+ import { TOCItemsProps as TOCItemsProps$2 } from "../../../../components/toc/clerk.js";
4
+ import { TOCProviderProps as TOCProviderProps$1 } from "../../../../components/toc/index.js";
5
5
  import { ComponentProps, ReactNode } from "react";
6
6
  //#region src/layouts/docs/page/slots/toc.d.ts
7
7
  export type TOCProviderProps = TOCProviderProps$1;
@@ -1,4 +1,4 @@
1
- import { SidebarProviderProps as SidebarProviderProps$1, base_d_exports, useSidebar as useSidebar$1 } from "../../../components/sidebar/base.js";
1
+ import { SidebarProviderProps as SidebarProviderProps$1, useSidebar as useSidebar$1 } from "../../../components/sidebar/base.js";
2
2
  import { SidebarPageTreeComponents } from "../../../components/sidebar/page-tree.js";
3
3
  import { ComponentProps, ReactNode } from "react";
4
4
  //#region src/layouts/docs/slots/sidebar.d.ts
@@ -57,4 +57,5 @@ export declare function NavigationPanel({ head, tabDropdown, tool, link, childre
57
57
  export declare function NavigationPanelOverlay({ enabled, className, ...props }: ComponentProps<typeof motion.div> & {
58
58
  enabled?: boolean;
59
59
  }): import("react").JSX.Element;
60
- //#endregion
60
+ //#endregion
61
+ export {};
@@ -12,4 +12,5 @@ export interface FooterProps extends ComponentProps<'div'> {
12
12
  };
13
13
  }
14
14
  export declare function Footer({ items, children, className, ...props }: FooterProps): import("react").JSX.Element;
15
- //#endregion
15
+ //#endregion
16
+ export {};
@@ -1,7 +1,7 @@
1
- import { TOCItemsProps, default_d_exports } from "../../../../components/toc/default.js";
2
- import { TOCItemsProps as TOCItemsProps$1, block_d_exports } from "../../../../components/toc/block.js";
3
- import { TOCItemsProps as TOCItemsProps$2, clerk_d_exports } from "../../../../components/toc/clerk.js";
4
- import { TOCProvider as TOCProvider$1, TOCProviderProps as TOCProviderProps$1, index_d_exports } from "../../../../components/toc/index.js";
1
+ import { TOCItemsProps } from "../../../../components/toc/default.js";
2
+ import { TOCItemsProps as TOCItemsProps$1 } from "../../../../components/toc/block.js";
3
+ import { TOCItemsProps as TOCItemsProps$2 } from "../../../../components/toc/clerk.js";
4
+ import { TOCProvider as TOCProvider$1, TOCProviderProps as TOCProviderProps$1 } from "../../../../components/toc/index.js";
5
5
  import { ComponentProps, ReactNode } from "react";
6
6
  //#region src/layouts/flux/page/slots/toc.d.ts
7
7
  export type TOCProviderProps = TOCProviderProps$1;
@@ -1,4 +1,4 @@
1
- import { SidebarProviderProps as SidebarProviderProps$1, base_d_exports, useSidebar as useSidebar$1 } from "../../../components/sidebar/base.js";
1
+ import { SidebarProviderProps as SidebarProviderProps$1, useSidebar as useSidebar$1 } from "../../../components/sidebar/base.js";
2
2
  import { SidebarPageTreeComponents } from "../../../components/sidebar/page-tree.js";
3
3
  import { ComponentProps, ReactNode } from "react";
4
4
  //#region src/layouts/flux/slots/sidebar.d.ts
@@ -12,4 +12,5 @@ export interface FooterProps extends ComponentProps<'div'> {
12
12
  };
13
13
  }
14
14
  export declare function Footer({ items, children, className, ...props }: FooterProps): import("react").JSX.Element;
15
- //#endregion
15
+ //#endregion
16
+ export {};
@@ -1,4 +1,4 @@
1
- import { TOCProviderProps as TOCProviderProps$1, index_d_exports } from "../../../../components/toc/index.js";
1
+ import { TOCProviderProps as TOCProviderProps$1 } from "../../../../components/toc/index.js";
2
2
  import { ComponentProps, ReactNode } from "react";
3
3
  //#region src/layouts/glass/page/slots/toc.d.ts
4
4
  export type TOCProviderProps = TOCProviderProps$1;
@@ -23,4 +23,5 @@ export declare function useHomeLayout(): {
23
23
  slots: HomeSlots;
24
24
  };
25
25
  export declare function HomeLayout(props: HomeLayoutProps): import("react").JSX.Element;
26
- //#endregion
26
+ //#endregion
27
+ export {};
@@ -32,4 +32,5 @@ export declare function useNotebookLayout(): {
32
32
  menuItems: LinkItemType[];
33
33
  slots: DocsSlots;
34
34
  };
35
- //#endregion
35
+ //#endregion
36
+ export {};
@@ -12,4 +12,5 @@ export interface FooterProps extends ComponentProps<'div'> {
12
12
  };
13
13
  }
14
14
  export declare function Footer({ items, children, className, ...props }: FooterProps): import("react").JSX.Element;
15
- //#endregion
15
+ //#endregion
16
+ export {};
@@ -1,7 +1,7 @@
1
- import { TOCItemsProps, default_d_exports } from "../../../../components/toc/default.js";
2
- import { TOCItemsProps as TOCItemsProps$1, block_d_exports } from "../../../../components/toc/block.js";
3
- import { TOCItemsProps as TOCItemsProps$2, clerk_d_exports } from "../../../../components/toc/clerk.js";
4
- import { TOCProviderProps as TOCProviderProps$1, index_d_exports } from "../../../../components/toc/index.js";
1
+ import { TOCItemsProps } from "../../../../components/toc/default.js";
2
+ import { TOCItemsProps as TOCItemsProps$1 } from "../../../../components/toc/block.js";
3
+ import { TOCItemsProps as TOCItemsProps$2 } from "../../../../components/toc/clerk.js";
4
+ import { TOCProviderProps as TOCProviderProps$1 } from "../../../../components/toc/index.js";
5
5
  import { ComponentProps, ReactNode } from "react";
6
6
  //#region src/layouts/notebook/page/slots/toc.d.ts
7
7
  export type TOCProviderProps = TOCProviderProps$1;
@@ -1,4 +1,4 @@
1
- import { SidebarProviderProps as SidebarProviderProps$1, base_d_exports, useSidebar as useSidebar$1 } from "../../../components/sidebar/base.js";
1
+ import { SidebarProviderProps as SidebarProviderProps$1, useSidebar as useSidebar$1 } from "../../../components/sidebar/base.js";
2
2
  import { SidebarPageTreeComponents } from "../../../components/sidebar/page-tree.js";
3
3
  import { SidebarTabsDropdown } from "../../../components/sidebar/tabs/dropdown.js";
4
4
  import { ComponentProps, FC, ReactNode } from "react";
@@ -34,4 +34,5 @@ export declare function useSpaciousLayout(): {
34
34
  slots: DocsSlots;
35
35
  };
36
36
  export declare function DocsLayout(props: DocsLayoutProps): import("react").JSX.Element;
37
- //#endregion
37
+ //#endregion
38
+ export {};
@@ -12,4 +12,5 @@ export interface FooterProps extends ComponentProps<'nav'> {
12
12
  };
13
13
  }
14
14
  export declare function Footer({ items, className, ...props }: FooterProps): import("react").JSX.Element | undefined;
15
- //#endregion
15
+ //#endregion
16
+ export {};
@@ -1,7 +1,7 @@
1
- import { TOCItemsProps, default_d_exports } from "../../../../components/toc/default.js";
2
- import { TOCItemsProps as TOCItemsProps$1, block_d_exports } from "../../../../components/toc/block.js";
3
- import { TOCItemsProps as TOCItemsProps$2, clerk_d_exports } from "../../../../components/toc/clerk.js";
4
- import { TOCProviderProps as TOCProviderProps$1, index_d_exports } from "../../../../components/toc/index.js";
1
+ import { TOCItemsProps } from "../../../../components/toc/default.js";
2
+ import { TOCItemsProps as TOCItemsProps$1 } from "../../../../components/toc/block.js";
3
+ import { TOCItemsProps as TOCItemsProps$2 } from "../../../../components/toc/clerk.js";
4
+ import { TOCProviderProps as TOCProviderProps$1 } from "../../../../components/toc/index.js";
5
5
  import { ComponentProps, ReactNode } from "react";
6
6
  //#region src/layouts/spacious/page/slots/toc.d.ts
7
7
  export type TOCProviderProps = TOCProviderProps$1;
@@ -41,4 +41,5 @@ export type TOCPopoverProps = TOCDropdownProps & {
41
41
  export declare function TOCPopover({ container, trigger, content, header, footer, ...props }: TOCPopoverProps): import("react").JSX.Element;
42
42
  /** the TOC dropdown for page header */
43
43
  export declare function TOCDropdown({ trigger, content, header, footer, ...props }: TOCDropdownProps): import("react").JSX.Element;
44
- //#endregion
44
+ //#endregion
45
+ export {};
@@ -1,4 +1,4 @@
1
- import { SidebarProviderProps as SidebarProviderProps$1, base_d_exports } from "../../../components/sidebar/base.js";
1
+ import { SidebarProviderProps as SidebarProviderProps$1 } from "../../../components/sidebar/base.js";
2
2
  import { ComponentProps } from "react";
3
3
  //#region src/layouts/spacious/slots/sidebar.d.ts
4
4
  export type SidebarProviderProps = Omit<SidebarProviderProps$1, 'collapsible'>;
@@ -1,5 +1,5 @@
1
1
  import React from "react";
2
- //#region ../../node_modules/.pnpm/react-medium-image-zoom@5.4.9_react-dom@19.3.0_react@19.3.0__react@19.3.0/node_modules/react-medium-image-zoom/dist/controlled.d.ts
2
+ //#region ../../node_modules/.pnpm/react-medium-image-zoom@5.4.9_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/react-medium-image-zoom/dist/controlled.d.ts
3
3
  type ModalState = 'LOADED' | 'LOADING' | 'UNLOADED' | 'UNLOADING';
4
4
  export interface ControlledProps {
5
5
  a11yNameButtonUnzoom?: string;
@@ -26,4 +26,5 @@ export interface ControlledProps {
26
26
  zoomImg?: React.ImgHTMLAttributes<HTMLImageElement>;
27
27
  zoomMargin?: number;
28
28
  }
29
- //#endregion
29
+ //#endregion
30
+ export {};
@@ -6,7 +6,7 @@ import { getStyleGhost } from "./utils/get-style-ghost.js";
6
6
  import { getStyleModalImg } from "./utils/get-style-modal-img.js";
7
7
  import React from "react";
8
8
  import ReactDOM from "react-dom";
9
- //#region ../../node_modules/.pnpm/react-medium-image-zoom@5.4.9_react-dom@19.3.0_react@19.3.0__react@19.3.0/node_modules/react-medium-image-zoom/dist/controlled.js
9
+ //#region ../../node_modules/.pnpm/react-medium-image-zoom@5.4.9_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/react-medium-image-zoom/dist/controlled.js
10
10
  const IMAGE_QUERY = [
11
11
  "img",
12
12
  "svg",
@@ -1,5 +1,5 @@
1
1
  import { ControlledProps } from "./controlled.js";
2
2
  import React from "react";
3
- //#region ../../node_modules/.pnpm/react-medium-image-zoom@5.4.9_react-dom@19.3.0_react@19.3.0__react@19.3.0/node_modules/react-medium-image-zoom/dist/uncontrolled.d.ts
3
+ //#region ../../node_modules/.pnpm/react-medium-image-zoom@5.4.9_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/react-medium-image-zoom/dist/uncontrolled.d.ts
4
4
  export type UncontrolledProps = Omit<ControlledProps, 'isZoomed'>;
5
5
  //#endregion
@@ -1,6 +1,6 @@
1
1
  import { Controlled } from "./controlled.js";
2
2
  import React from "react";
3
- //#region ../../node_modules/.pnpm/react-medium-image-zoom@5.4.9_react-dom@19.3.0_react@19.3.0__react@19.3.0/node_modules/react-medium-image-zoom/dist/uncontrolled.js
3
+ //#region ../../node_modules/.pnpm/react-medium-image-zoom@5.4.9_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/react-medium-image-zoom/dist/uncontrolled.js
4
4
  function Uncontrolled({ onZoomChange, ...props }) {
5
5
  const [isZoomed, setIsZoomed] = React.useState(false);
6
6
  const handleZoomChange = React.useCallback((value, { event }) => {
@@ -1,4 +1,4 @@
1
- //#region ../../node_modules/.pnpm/react-medium-image-zoom@5.4.9_react-dom@19.3.0_react@19.3.0__react@19.3.0/node_modules/react-medium-image-zoom/dist/utils/adjust-svg-ids.js
1
+ //#region ../../node_modules/.pnpm/react-medium-image-zoom@5.4.9_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/react-medium-image-zoom/dist/utils/adjust-svg-ids.js
2
2
  const adjustSvgIDs = (svgEl) => {
3
3
  const newIdSuffix = "-zoom";
4
4
  const attrs = [
@@ -1,6 +1,6 @@
1
1
  import { getScale } from "./get-scale.js";
2
2
  import { parsePosition } from "./parse-position.js";
3
- //#region ../../node_modules/.pnpm/react-medium-image-zoom@5.4.9_react-dom@19.3.0_react@19.3.0__react@19.3.0/node_modules/react-medium-image-zoom/dist/utils/compute-positioned-style.js
3
+ //#region ../../node_modules/.pnpm/react-medium-image-zoom@5.4.9_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/react-medium-image-zoom/dist/utils/compute-positioned-style.js
4
4
  const computePositionedStyle = ({ containerHeight, containerLeft, containerTop, containerWidth, hasScalableSrc, offset, position, targetHeight, targetWidth, visibleHeight, visibleWidth }) => {
5
5
  const [posLeft = "50%", posTop = "50%"] = position.split(" ");
6
6
  const posX = parsePosition(posLeft, containerWidth - visibleWidth);
@@ -1,4 +1,4 @@
1
- //#region ../../node_modules/.pnpm/react-medium-image-zoom@5.4.9_react-dom@19.3.0_react@19.3.0__react@19.3.0/node_modules/react-medium-image-zoom/dist/utils/element-tests.js
1
+ //#region ../../node_modules/.pnpm/react-medium-image-zoom@5.4.9_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/react-medium-image-zoom/dist/utils/element-tests.js
2
2
  function isElement(el) {
3
3
  if (typeof Element === "undefined") return false;
4
4
  return el instanceof Element;
@@ -1,6 +1,6 @@
1
1
  import { parsePosition } from "./parse-position.js";
2
2
  import { computePositionedStyle } from "./compute-positioned-style.js";
3
- //#region ../../node_modules/.pnpm/react-medium-image-zoom@5.4.9_react-dom@19.3.0_react@19.3.0__react@19.3.0/node_modules/react-medium-image-zoom/dist/utils/get-div-img-style.js
3
+ //#region ../../node_modules/.pnpm/react-medium-image-zoom@5.4.9_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/react-medium-image-zoom/dist/utils/get-div-img-style.js
4
4
  const getDivImgStyle = ({ backgroundPosition, backgroundSize, containerHeight, containerLeft, containerTop, containerWidth, hasScalableSrc, offset, targetHeight, targetWidth }) => {
5
5
  const base = {
6
6
  containerHeight,
@@ -1,5 +1,5 @@
1
1
  import { testImg } from "./element-tests.js";
2
- //#region ../../node_modules/.pnpm/react-medium-image-zoom@5.4.9_react-dom@19.3.0_react@19.3.0__react@19.3.0/node_modules/react-medium-image-zoom/dist/utils/get-img-alt.js
2
+ //#region ../../node_modules/.pnpm/react-medium-image-zoom@5.4.9_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/react-medium-image-zoom/dist/utils/get-img-alt.js
3
3
  const getImgAlt = (imgEl) => {
4
4
  if (imgEl !== null) {
5
5
  if (testImg(imgEl)) return imgEl.alt;
@@ -1,6 +1,6 @@
1
1
  import { getScale } from "./get-scale.js";
2
2
  import { computePositionedStyle } from "./compute-positioned-style.js";
3
- //#region ../../node_modules/.pnpm/react-medium-image-zoom@5.4.9_react-dom@19.3.0_react@19.3.0__react@19.3.0/node_modules/react-medium-image-zoom/dist/utils/get-img-object-fit-style.js
3
+ //#region ../../node_modules/.pnpm/react-medium-image-zoom@5.4.9_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/react-medium-image-zoom/dist/utils/get-img-object-fit-style.js
4
4
  const getImgObjectFitStyle = ({ containerHeight, containerLeft, containerTop, containerWidth, hasScalableSrc, objectFit: objectFitParam, objectPosition, offset, targetHeight, targetWidth }) => {
5
5
  let resolvedObjectFit = objectFitParam;
6
6
  if (resolvedObjectFit === "scale-down") {
@@ -1,5 +1,5 @@
1
1
  import { getScale } from "./get-scale.js";
2
- //#region ../../node_modules/.pnpm/react-medium-image-zoom@5.4.9_react-dom@19.3.0_react@19.3.0__react@19.3.0/node_modules/react-medium-image-zoom/dist/utils/get-img-regular-style.js
2
+ //#region ../../node_modules/.pnpm/react-medium-image-zoom@5.4.9_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/react-medium-image-zoom/dist/utils/get-img-regular-style.js
3
3
  const getImgRegularStyle = ({ containerHeight, containerLeft, containerTop, containerWidth, hasScalableSrc, offset, targetHeight, targetWidth }) => {
4
4
  const scale = getScale({
5
5
  containerHeight,
@@ -1,5 +1,5 @@
1
1
  import { testDiv, testImg } from "./element-tests.js";
2
- //#region ../../node_modules/.pnpm/react-medium-image-zoom@5.4.9_react-dom@19.3.0_react@19.3.0__react@19.3.0/node_modules/react-medium-image-zoom/dist/utils/get-img-src.js
2
+ //#region ../../node_modules/.pnpm/react-medium-image-zoom@5.4.9_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/react-medium-image-zoom/dist/utils/get-img-src.js
3
3
  const URL_REGEX = /url(?:\(['"]?)(?<url>.*?)(?:['"]?\))/;
4
4
  const getImgSrc = (imgEl) => {
5
5
  if (imgEl !== null) {
@@ -1,4 +1,4 @@
1
- //#region ../../node_modules/.pnpm/react-medium-image-zoom@5.4.9_react-dom@19.3.0_react@19.3.0__react@19.3.0/node_modules/react-medium-image-zoom/dist/utils/get-modal-img-transform.js
1
+ //#region ../../node_modules/.pnpm/react-medium-image-zoom@5.4.9_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/react-medium-image-zoom/dist/utils/get-modal-img-transform.js
2
2
  const getModalImgTransform = ({ height, initialTransform, isZoomed, left, top, userTransform, width }) => {
3
3
  let centeredUserTransform = "";
4
4
  if (userTransform !== "none" && userTransform !== "") {
@@ -1,4 +1,4 @@
1
- //#region ../../node_modules/.pnpm/react-medium-image-zoom@5.4.9_react-dom@19.3.0_react@19.3.0__react@19.3.0/node_modules/react-medium-image-zoom/dist/utils/get-scale.js
1
+ //#region ../../node_modules/.pnpm/react-medium-image-zoom@5.4.9_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/react-medium-image-zoom/dist/utils/get-scale.js
2
2
  const getScaleToWindow = ({ height, offset, width }) => Math.min((window.innerWidth - offset * 2) / width, (window.innerHeight - offset * 2) / height);
3
3
  const getScaleToWindowMax = ({ containerHeight, containerWidth, offset, targetHeight, targetWidth }) => {
4
4
  const scale = getScaleToWindow({
@@ -1,5 +1,5 @@
1
1
  import { testSvg } from "./element-tests.js";
2
- //#region ../../node_modules/.pnpm/react-medium-image-zoom@5.4.9_react-dom@19.3.0_react@19.3.0__react@19.3.0/node_modules/react-medium-image-zoom/dist/utils/get-style-ghost.js
2
+ //#region ../../node_modules/.pnpm/react-medium-image-zoom@5.4.9_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/react-medium-image-zoom/dist/utils/get-style-ghost.js
3
3
  const getStyleGhost = (imgEl) => {
4
4
  if (imgEl == null) return {};
5
5
  if (testSvg(imgEl)) {
@@ -5,7 +5,7 @@ import { getDivImgStyle } from "./get-div-img-style.js";
5
5
  import { getModalImgTransform } from "./get-modal-img-transform.js";
6
6
  import { getTargetDimension } from "./get-target-dimension.js";
7
7
  import { testHasScalableSrc } from "./test-has-scalable-src.js";
8
- //#region ../../node_modules/.pnpm/react-medium-image-zoom@5.4.9_react-dom@19.3.0_react@19.3.0__react@19.3.0/node_modules/react-medium-image-zoom/dist/utils/get-style-modal-img.js
8
+ //#region ../../node_modules/.pnpm/react-medium-image-zoom@5.4.9_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/react-medium-image-zoom/dist/utils/get-style-modal-img.js
9
9
  const getStyleModalImg = ({ hasZoomImg, imgSrc, isSvg, isZoomed, loadedImgEl, offset, shouldRefresh, targetEl }) => {
10
10
  const hasScalableSrc = testHasScalableSrc({
11
11
  hasZoomImg,
@@ -1,4 +1,4 @@
1
- //#region ../../node_modules/.pnpm/react-medium-image-zoom@5.4.9_react-dom@19.3.0_react@19.3.0__react@19.3.0/node_modules/react-medium-image-zoom/dist/utils/get-target-dimension.js
1
+ //#region ../../node_modules/.pnpm/react-medium-image-zoom@5.4.9_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/react-medium-image-zoom/dist/utils/get-target-dimension.js
2
2
  const getTargetDimension = ({ fallback, natural }) => natural !== void 0 && natural !== 0 ? natural : fallback;
3
3
  //#endregion
4
4
  export { getTargetDimension };
@@ -1,4 +1,4 @@
1
- //#region ../../node_modules/.pnpm/react-medium-image-zoom@5.4.9_react-dom@19.3.0_react@19.3.0__react@19.3.0/node_modules/react-medium-image-zoom/dist/utils/parse-position.js
1
+ //#region ../../node_modules/.pnpm/react-medium-image-zoom@5.4.9_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/react-medium-image-zoom/dist/utils/parse-position.js
2
2
  const parsePosition = (position, relativeNum) => {
3
3
  const positionNum = parseFloat(position);
4
4
  return position.endsWith("%") ? relativeNum * positionNum / 100 : positionNum;
@@ -1,4 +1,4 @@
1
- //#region ../../node_modules/.pnpm/react-medium-image-zoom@5.4.9_react-dom@19.3.0_react@19.3.0__react@19.3.0/node_modules/react-medium-image-zoom/dist/utils/test-has-scalable-src.js
1
+ //#region ../../node_modules/.pnpm/react-medium-image-zoom@5.4.9_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/react-medium-image-zoom/dist/utils/test-has-scalable-src.js
2
2
  const SRC_SVG_REGEX = /\.svg$/i;
3
3
  const testHasScalableSrc = ({ hasZoomImg, imgSrc, isSvg }) => isSvg || imgSrc?.slice(0, 18) === "data:image/svg+xml" || hasZoomImg || imgSrc !== void 0 && SRC_SVG_REGEX.test(imgSrc);
4
4
  //#endregion
package/dist/og.d.ts CHANGED
@@ -12,4 +12,5 @@ interface GenerateProps {
12
12
  }
13
13
  export declare function generateOGImage(options: GenerateProps & ImageResponseOptions): ImageResponse;
14
14
  export declare function generate({ primaryColor, primaryTextColor, icon, ...props }: GenerateProps): import("react").JSX.Element;
15
- //#endregion
15
+ //#endregion
16
+ export {};
@@ -1,2 +1 @@
1
- import typography_default from "@fumadocs/tailwind/typography";
2
- export { typography_default as default };
1
+ export { default } from "@fumadocs/tailwind/typography";
package/dist/utils/cn.js CHANGED
@@ -1,2 +1 @@
1
- import { cn } from "cn";
2
- export { cn };
1
+ export { cn } from "cn";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fumadocs/base-ui",
3
- "version": "16.17.7",
3
+ "version": "16.17.8",
4
4
  "description": "The Base UI version of Fumadocs UI",
5
5
  "keywords": [
6
6
  "Docs",
@@ -138,14 +138,13 @@
138
138
  "access": "public"
139
139
  },
140
140
  "dependencies": {
141
- "@base-ui/react": "^1.8.0",
141
+ "@base-ui/react": "^1.9.0",
142
142
  "@fuma-translate/react": "^1.0.2",
143
143
  "@fumadocs/tailwind": "0.1.4",
144
144
  "class-variance-authority": "^0.7.1",
145
- "cn": "^0.4.0",
146
- "hast-util-to-jsx-runtime": "^2.3.6",
147
- "lucide-react": "^1.50.0",
148
- "motion": "^14.0.0",
145
+ "cn": "^0.5.0",
146
+ "lucide-react": "^1.61.0",
147
+ "motion": "^14.6.0",
149
148
  "next-themes": "^0.4.6",
150
149
  "react-remove-scroll": "^2.7.2",
151
150
  "scroll-into-view-if-needed": "^3.1.0",
@@ -155,22 +154,22 @@
155
154
  "@fumadocs/cli": "1.7.5",
156
155
  "@tailwindcss/cli": "^4.3.3",
157
156
  "@tailwindcss/oxide": "^4.3.3",
158
- "@tsdown/css": "^0.23.0",
157
+ "@tsdown/css": "^0.23.1",
159
158
  "@types/mdx": "^2.0.14",
160
- "@types/node": "^26.6.4",
159
+ "@types/node": "^26.6.5",
161
160
  "@types/react": "^19.3.0",
162
161
  "@types/react-dom": "^19.3.0",
163
162
  "fuma-cli": "^0.3.1",
164
- "fumadocs-core": "16.17.7",
163
+ "fumadocs-core": "16.17.8",
165
164
  "react-medium-image-zoom": "^5.4.9",
166
165
  "tailwindcss": "^4.3.3",
167
166
  "tsconfig": "0.0.0",
168
- "tsdown": "0.23.0"
167
+ "tsdown": "0.23.1"
169
168
  },
170
169
  "peerDependencies": {
171
170
  "@types/mdx": "*",
172
171
  "@types/react": "*",
173
- "fumadocs-core": "16.17.7",
172
+ "fumadocs-core": "16.17.8",
174
173
  "next": "16.x.x",
175
174
  "react": "^19.2.0",
176
175
  "react-dom": "^19.2.0",