fumadocs-openapi 12.5.0 → 12.5.1

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.
@@ -1 +1 @@
1
- @source inline("!collapsed !isDefined !readOnly !renderBodyField !required !returned *:data-[collapsible=true]:order-last *:flex-1 *:justify-center *:min-w-0 --- --accordion-panel-height --active-tab-height --active-tab-left --active-tab-top --active-tab-width --anchor-width --available-height --collapsible-panel-height --fd-docs-height --fd-docs-row-3 --spacing --transform-origin -mode -ms-0.5 -ms-2 -mt-1 -my-1 -translate-x-1/2 -translate-y-1/2 -z-1 @4xl:flex @4xl:flex-col @4xl:flex-row @4xl:items-start @4xl:max-h-[calc(var(--fd-docs-height,100dvh)-var(--fd-docs-row-3,0px)-2rem)] @4xl:sticky @4xl:top-[calc(var(--fd-docs-row-3,0px)+1rem)] @4xl:w-[400px] @container @default @defaultValue @deprecated @fuma-translate/react @fumadocs/json-schema @fumari/stf @max-sm:bg-fd-secondary/50 @max-sm:border @max-sm:empty:w-2 @max-sm:mx-4 @max-sm:overflow-hidden @max-sm:pb-1.5 @max-sm:pb-3 @max-sm:pe-2 @max-sm:rounded-lg @max-xl:basis-full @max-xl:border-t @max-xl:flex-1 @max-xl:ps-1.5 @md:block @md:grid-cols-2 @param @returns @scalar/api-client-react @see @sm:-me-2 @sm:-me-2.5 @sm:border-s @sm:grid-cols-[minmax(9rem,1fr)_minmax(0,2fr)] @sm:min-h-10 @sm:pe-7.5 @sm:pe-8 @typescript-eslint/no-explicit-any @xl:w-40 [&[hidden]:not([hidden='until-found'])]:hidden [&_a]:underline [&_code]:font-mono [&_svg]:size-3 [&_svg]:size-3.5 [--fd-docs-row-3:0px] [grid-area:1/1] [scrollbar-width:none] a abort above absolute accept access access_token accordion actions active:scale-[0.97] actual adapter adapters add added additional additionalProperties after again against alias align all allOf allow allowJson allowed already also alt among an anchor anchorSegments and animate-spin animates any anyFields anyOf apiExample apiKey apiPlayground appearance-none application/javascript application/json application/x-javascript application/x-www-form-urlencoded application/xml applies apply are aria-checked aria-current aria-expanded aria-expanded:decoration-solid aria-expanded:text-fd-accent-foreground aria-hidden aria-label aria-live aria-pressed aria-pressed:bg-fd-background aria-pressed:ring-1 aria-pressed:ring-fd-border aria-pressed:shadow-sm aria-pressed:text-fd-foreground arkdown array arrow as async at audience auth authNode authProviders authSchemes authenticate authorization authorizationCode authorizationUrl authorization_code authorization_pending authorization_url authorize authorized authorizes auto-cols-[minmax(0,max-content)] autoComplete available avoid await away back backdrop-blur-[1px] backdrop-blur-sm backdrop-blur-xs background badgeVariants bar base baseDir basic basis-full be bearer before behavior below between bg-amber-500 bg-amber-500/10 bg-black/30 bg-black/40 bg-blue-500 bg-current/10 bg-fd-accent bg-fd-background bg-fd-background/50 bg-fd-card bg-fd-card/70 bg-fd-muted bg-fd-muted-foreground bg-fd-popover bg-fd-primary bg-fd-primary/10 bg-fd-secondary bg-green-500 bg-linear-to-b bg-linear-to-t bg-red-500 bg-transparent binary block blocks blue body bodyMediaType bodyNode bodyUrlRef boolean border border-0 border-b border-b-0 border-current border-dashed border-fd-muted-foreground/50 border-fd-primary border-fd-primary/20 border-s border-t bottom bottom-0 box box-content breadcrumbs break-all browser built-in builtinProviders bundled but button buttonVariants by bytes cache cached cachedDocFiles callbacks callbacksNode can cancel cancelled candidates cannot caption captioned captionedCodeBlock card cardCodeBlock case catch cause cell center certificate ch challenge change changes charset check checkbox checked chevron chevronClassName children class class-variance-authority className cleanup clearResponse click client client-rendered clientAuth clientCredentials clientId clientSecret clientWidth client_auth client_credentials client_error client_id client_secret clients cloned close closeDelay closest cn code codeProps codeUsages code_challenge code_challenge_method code_verifier codeblock col-span-2 col-span-full collapse collapses collapsible color come compiler component components compute confidential config configUrl configuration configurations const constraints container content contentTypes contents control controller controllerRef cookie cookies copy copyable copying core count createContext createOAuthHandler createOpenAPIPageBase createProxy credentials cross-origin crumbClassName crumbs css csv ctx current currentValue cursor-pointer cursor-text custom customise customization cva dark dark:aria-pressed:bg-fd-accent dark:bg-fd-accent dark:text-amber-400 dark:text-blue-400 dark:text-green-400 dark:text-orange-400 dark:text-red-400 dark:text-yellow-400 data data-[disabled]:opacity-50 data-[disabled]:pointer-events-none data-[highlighted]:bg-fd-accent data-[highlighted]:text-fd-accent-foreground data-active:text-fd-foreground data-checked:bg-fd-primary data-checked:bg-fd-primary-foreground data-checked:translate-x-3 data-closed:animate-fd-dialog-out data-closed:animate-fd-fade-out data-collapsible data-ending-style:duration-150 data-ending-style:h-0 data-ending-style:opacity-0 data-ending-style:scale-95 data-ending-style:scale-[0.97] data-ending-style:scale-[0.98] data-highlighted:bg-fd-accent data-highlighted:text-fd-accent-foreground data-open:animate-fd-dialog-in data-open:animate-fd-fade-in data-placeholder:text-fd-muted-foreground data-popup-open:bg-fd-accent data-popup-open:text-fd-accent-foreground data-popup-open:text-fd-foreground data-starting-style:h-0 data-starting-style:opacity-0 data-starting-style:scale-95 data-starting-style:scale-[0.98] dataEngine decimal declare decode decoration-dotted default defaultMdxComponents defaultShikiFactory defaultShikiOptions defaultValue defaultValues defaults define definitions delay delay-150 delete deprecated depth dereference dereferenced described describes description descriptionNode descriptions development device deviceAuthorization deviceAuthorizationUrl device_authorization_url device_code devices dialog didn direction directories disable disableCache disabled disabled:cursor-not-allowed disabled:opacity-50 disabled:opacity-80 discovered discovering display displayNames disposition div do doc docCache docFilesCache docRoot docs document documents does doesn domain don download downloaded drives drop duplicated duration duration-150 duration-200 duration-250 during dynamic dynamicSource e each eading early ease-[cubic-bezier(0.16,1,0.3,1)] ease-[cubic-bezier(0.22,1,0.36,1)] ease-out edge edited editing editor edits element elements else empty empty:hidden enabled encode encodeRequestData encoded end end-2 ending endpoint endpoints ends enforce engine enter entries entry enum err error error_description errors eslint-disable eslint-disable-next-line even every example examples exclusiveMax exclusiveMin expand expected expiresAt expires_in export exported expressions extended extends fades failed fallback false fast-content-type-parse fd-page-tree-item-name fd-scroll-container fetch fetchOptions fetcher field field-sizing-content fieldData fieldLabelVariants fieldName fields file fileName filePath files fill-current filled filling fills filter filterable finally finishes finishing first first:border-t-0 first:mt-0 fixed flex flex-1 flex-col flex-col-reverse flex-row flex-wrap flow flow-root flowInfo flowReturned flows flushSync focus-visible:bg-fd-accent focus-visible:bg-fd-accent/40 focus-visible:bg-fd-primary/15 focus-visible:bg-fd-secondary focus-visible:opacity-100 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-2 focus-visible:ring-fd-primary/30 focus-visible:ring-fd-ring focus-visible:ring-fd-ring/50 focus-visible:ring-inset focus-visible:text-fd-accent-foreground focus-within:ring-1 focus-within:ring-fd-ring focus:outline-none focus:ring focus:ring-0 focus:ring-fd-ring folder folderStyle follow font-light font-medium font-mono font-normal font-sans font-semibold for form form-encoded format forward fragment from from-fd-popover full fumadocs-core/source fumadocs-core/toc fumadocs-openapi-flow fumadocs-openapi-oauth fumadocs-ui/mdx fumadocs:openapi fumadocs_openapi_requests function gap-0.5 gap-1 gap-1.5 gap-2 gap-2.5 gap-24 gap-3 gap-4 gap-x-2 gap-x-3 gap-x-6 gap-y-1 gap-y-4 generate generateDefault generateSchemaUI generated generators get getLink getOpenAPIPageProps getPreferredType getRaw getSchema getSchemas gets ghost github-dark github-light given go goes going grant_type grant_types_supported grants gray green grid grid-cols-1 grid-cols-[auto_minmax(0,1fr)] grid-cols-[auto_minmax(0,1fr)_auto] grid-cols-[minmax(0,2fr)_minmax(0,3fr)] grid-flow-col group group-data-[panel-open]/accordion:rotate-90 group-data-popup-open:rotate-180 group-hover/nav:translate-x-0.5 group-hover/property:opacity-100 group-hover:translate-x-0.5 group-hover:translate-x-px group/accordion group/nav group/property group/row h-(--accordion-panel-height) h-(--active-tab-height) h-(--collapsible-panel-height) h-10 h-12 h-4 h-5 h-6 h-7 h-8 h-9 h-[240px] h-auto h-full h-px h1 handle handled handles has has-focus-visible:bg-fd-secondary has-focus-visible:border-fd-ring hash hast-util-to-jsx-runtime have headNode header headerRef headers heading headingLevel headless here hidden hiddenKeys hiddenProperties highlighted highlighter hint holding holds hook hover hover:bg-fd-accent hover:bg-fd-accent/40 hover:bg-fd-primary/15 hover:bg-transparent hover:text-fd-accent-foreground hover:text-fd-foreground how href html htmlFor http hydration i icon icon-sm icon-xs iconButtonClassName id idx if img implicit import imports in including index indicator info infoTags init initAuth initial inline inline-flex input inputMode inputs inset-0 inset-x-0 inside installed instanceof instead integer interface interval into invalid invisible is isCopied isDefined isDynamic isExpanded isHighlighted isLazy isLoading isMac isNumber isRequired isSending isn issues it item itemSchema items items-baseline items-center items-start items-stretch its itself js json json-schema-typed justify-between justify-center justify-end kB keep keeping keeps kept key keyed keyof keys kind label labelClassName labelled lang languages larger last last:border-b-0 last:shrink-0 layout layouts lazy leading-5 leading-none leading-relaxed leave leaving left left-0 left-1/2 length let light like line-through link links list listed listener listeners load loadDocument loaderPlugin loading loads location long longer lucide-react make map mapValues margin margins marked match matching max max-age max-h-(--available-height) max-h-[min(18rem,30vh)] max-h-none max-md:hidden max-w-1/2 max-w-40 max-w-60 max-w-64 max-w-72 max-w-[calc(100vw-2rem)] max-w-full max-w-lg may mb-3 mb-4 md md:border-s md:grid-cols-[minmax(0,11fr)_minmax(0,9fr)] md:hidden mdxComponents me-1 me-2 me-auto measure measured media mediaAdapters mediaType member members menu menuItems merge message meta metaData metaKey method methods milliseconds mime min min-h-0 min-h-10 min-h-11 min-h-60 min-h-9 min-h-full min-w-0 min-w-16 min-w-40 min-w-[calc(var(--anchor-width)+--spacing(2))] mode motion motion-reduce:transition-none motion-reduce:transition-opacity motion-safe:-translate-x-6 motion-safe:duration-300 motion-safe:ease-[cubic-bezier(0.16,1,0.3,1)] motion-safe:starting:-translate-x-6 motion-safe:starting:-translate-y-4 motion-safe:starting:opacity-0 motion-safe:starting:scale-0 motion-safe:starting:translate-x-6 motion-safe:starting:translate-y-1 motion-safe:starting:translate-y-4 motion-safe:transition-[opacity,translate] motion-safe:transition-opacity motion-safe:transition-transform motionClassNames mounted ms ms-1 ms-1.5 ms-auto mt-0! mt-0.5 mt-1 mt-1.5 mt-10 mt-2.5 mt-px multipart/form-data multiple must mutual mutualTLS mutualTLSProvider mx-1 mx-3 mx-px my-0! my-1 my-3 name name! named names namespace narrow nav navigator nearest needs nested never new next next/previous no no-cache noValidate node node:path noop noreferrer normalizes not not-prose note null number oauth oauth2 oauthPanelProvider oauthRedirectUrl object objectGet objects observer obtain of off ok omit omitted on onAppend onAuthorize onBack onCancel onChange onCheckedChange onClick onCopy onKeyDown onLink onNavigate onOpenChange onRemove onReset onReturn onRoot onSelect onSubmit onUserCode onValueChange once one oneOf ones only opacity-0 opacity-80 open openApiData openIdConnect openIdConnectUrl openOnHover openapi openapiMeta opened opening opens operation options or orange order-last origin origin-(--transform-origin) other otherwise out outline outline-none output outside over overflow-auto overflow-clip overflow-hidden overflow-x-auto overflow-y-auto override overview own p-0 p-0.5 p-1 p-1.5 p-2 p-2.5 p-3 p-4 p-5 p-6 packages padding page pageData pages panel panelCodeBlock panelKey panels param parameter parameterLabel parameterNode parameters params parent parentIndex parents parsed parts party pass password path pathItem pathnameFromRequest pattern patternProperties payload pb-1 pb-2 pb-2.5 pb-3 pe-1 pe-1.5 pe-2 pe-3 pe-4 peer-disabled:cursor-not-allowed peer-disabled:opacity-70 pendingFlowKey persisted pill placed placeholder placeholder:text-fd-muted-foreground placeholder:text-fd-muted-foreground/70 placeholder:text-fd-primary/50 playground playgrounds please plugins pointer-coarse:opacity-100 polite poll polling popup postForm pre preferred prefers prefixed preloadOpenAPIPage preloaded presents prev preventDefault preview previous primary primitive private processor prop properties property props prose prose-no-margin prose-sm prose-xs provider providers proxied proxy proxyForwardCookie proxyUrl ps-1 ps-1.5 ps-3 ps-3.5 ps-4 ps-6 pt-1.5 pt-2 pt-2.5 pt-3 public px-1 px-1.5 px-2 px-2.5 px-3 px-4 py-0 py-0.5 py-1 py-1.5 py-2 py-2.5 py-3 py-6 py-8 query quiet random range raw react react-dom react-hooks/exhaustive-deps react/jsx-runtime read read-only readOnly readonly record red redirect redirectUrl redirect_uri redirected redirects ref reference refs regenerated rehype-react rejects rel relative relativePath remark remark-rehype remarkGfm remarkRehype remounted removable removal remove removeItem removed render renderAPIExampleUsageTabs renderBodyField renderCodeblock renderMarkdown renderParameterField rendered renderers renders replace replaces represents request request-body requestBody requestData requestInit requestTimeout requestUrl requested requesting requests required requirement requirements res reserved reset resize-none resized resolve resolveMediaAdapter resolveUrl resolved resolvedInput resolvedTheme resolves respond response response-body responseNode responseTabs response_type responses rest restore restored result return returned returnedFlow returnedScheme returning returns revoked right ring-1 ring-fd-border role room root rootId rotate-90 rounded rounded-[5px] rounded-full rounded-lg rounded-md rounded-none rounded-sm rounded-xl route row row-span-2 rowButtonClassName rows run runtime s safeParse same satisfies scalar scan schema schemaId schemaKeys schemaPropKeys schemaUI schemas scheme schemeId schemes scope scopeOptions scopes scopes_supported screen screens scroll scroll-m-20 scroll-mt-[calc(var(--fd-docs-row-3,0px)+1rem)] scrollArrowClassName scrollMarginClassName search secondary seconds secret secrets section sectionIcons sectionNames sections security see segments segs select select-all select-none selected selectedType selector selectors selects self-center send sending sends separator server server-to-server serverSchema serverUrl servers services session sessionStorage set setAuthorizing setClientAuth setCode setCollapsed setDraft setError setFilter setIndex setInfo setMode setMotion setName setNextName setOpen setResponse setScopes setSelected setSelectedFor setSending setServerVariables setShow setShowSchema setStack setType setUserCode setValue setView shadow-lg shadow-md shadow-none shadow-sm share shared shared-api/auto-anchor shiki shikiOptions shorten show showDescription showExample showResponseSchema showSelect showTitle shown shrink shrink-0 sibling siblings side sideOffset signal signing single size size-2 size-3 size-3.5 size-4 size-5 skipNonRequired skipReadOnly slashes slides sliding slot slotClassName slotType slots slow_down sm sm:-translate-x-1/2 sm:-translate-y-1/2 sm:border sm:flex-row sm:gap-2 sm:h-[min(52rem,calc(100dvh-3rem))] sm:inline sm:inset-auto sm:justify-end sm:left-1/2 sm:max-h-[min(52rem,calc(100dvh-3rem))] sm:mb-4 sm:mx-4 sm:ps-5 sm:px-4 sm:rounded-2xl sm:shadow-2xl sm:text-start sm:top-1/2 sm:w-[min(64rem,calc(100vw-3rem))] sm:w-[min(80rem,calc(100vw-3rem))] smaller smooth so some something space spellCheck sr-only src stable stack stacked start started starting starting:opacity-0 starts state staticSource status statusInfo stays step stf sticky stops storageKey storageKeyPrefix store stored string stringSchema stringify stringifyFieldKey structuredData style styles submit subscribeNever such suspends svg switch switches sync syncExample synced t tPlayground tab tables tabs tabular-nums tagClassName taken takes target tell text text-4xl text-[0.8125rem] text-amber-600 text-blue-600 text-center text-end text-fd-card-foreground text-fd-foreground text-fd-muted-foreground text-fd-muted-foreground/60 text-fd-muted-foreground/70 text-fd-popover-foreground text-fd-primary text-fd-primary-foreground text-fd-primary-foreground/60 text-fd-secondary-foreground text-green-600 text-lg text-nowrap text-orange-600 text-red-400 text-red-400/80 text-red-600 text-sm text-start text-xl text-xs text-yellow-600 text/css text/csv text/html text/plain texts than that the their them themes then they this through throw timeout timer timerRef tips title tls to to-transparent toJsxRuntime toStaticData toc toggle toggled token tokenUrl token_type token_url toolbar top top-(--active-tab-top) top-0 top-1/2 top-2 total tracking-tight tracking-widest transform transformPageTree transition-[background-color,scale] transition-[height,opacity] transition-[height] transition-[opacity,scale] transition-[translate,background-color] transition-[translate,width] transition-colors transition-opacity transition-shadow transition-transform transitionClassName translate-x-(--active-tab-left) translations tree true truncate try ts type typeClassName typeof types undefined under underline underline-offset-4 unexpected union unionField unions unique unit unknown unlisted unset until update updateInfo updated updating url urn:ietf:params:oauth:grant-type:device_code usage usageTabs usages use useAnchorId useAnchorLink useApiClient useComponents useCopyButton useFieldValue useMemo useNamespace useObject useOnChange useOpenAPI useOperation useQuery useRef useRenderContext useResolvedSchema useResponseExamples useServer useState useStatusInfo useStf useSyncExternalStore useTheme useTranslations useTypeScriptDefinitions used userCode user_code username users using v value valueSchema values variable variables variant variants verification verificationUri verificationUriComplete verification_uri verifier via view viewportClassName viewportProps virtual void w-(--active-tab-width) w-0 w-7 w-72 w-[min(26rem,calc(100vw-2rem))] w-auto w-fit w-full w-max warn was we webhook webhooks when where while whitespace-pre why width widths will window with without won would wrap-anywhere wrap-break-word wrapping write writeOnly written x-exclusiveCodeSample x-playground-lazy xml yellow your z-0 z-10 z-50");
1
+ @source inline("!collapsed !isDefined !readOnly !renderBodyField !required !returned *:data-[collapsible=true]:order-last *:flex-1 *:justify-center *:min-w-0 --- --accordion-panel-height --active-tab-height --active-tab-left --active-tab-top --active-tab-width --anchor-width --available-height --collapsible-panel-height --fd-docs-height --fd-docs-row-3 --spacing --transform-origin -mode -ms-0.5 -ms-2 -mt-1 -my-1 -translate-x-1/2 -translate-y-1/2 -z-1 @4xl:flex @4xl:flex-col @4xl:flex-row @4xl:items-start @4xl:max-h-[calc(var(--fd-docs-height,100dvh)-var(--fd-docs-row-3,0px)-2rem)] @4xl:sticky @4xl:top-[calc(var(--fd-docs-row-3,0px)+1rem)] @4xl:w-[400px] @container @default @defaultValue @deprecated @fuma-translate/react @fumadocs/json-schema @fumari/stf @max-sm:bg-fd-secondary/50 @max-sm:border @max-sm:empty:w-2 @max-sm:mx-4 @max-sm:overflow-hidden @max-sm:pb-1.5 @max-sm:pb-3 @max-sm:pe-2 @max-sm:rounded-lg @max-xl:basis-full @max-xl:border-t @max-xl:flex-1 @max-xl:ps-1.5 @md:block @md:grid-cols-2 @param @returns @scalar/api-client-react @see @sm:-me-2 @sm:-me-2.5 @sm:border-s @sm:grid-cols-[minmax(9rem,1fr)_minmax(0,2fr)] @sm:min-h-10 @sm:pe-7.5 @sm:pe-8 @typescript-eslint/no-explicit-any @xl:w-40 [&[hidden]:not([hidden='until-found'])]:hidden [&_a]:underline [&_code]:font-mono [&_svg]:size-3 [&_svg]:size-3.5 [--fd-docs-row-3:0px] [grid-area:1/1] [scrollbar-width:none] a abort above absolute accept access access_token accordion actions active:scale-[0.97] actual adapter adapters add added additional additionalProperties after again against alias align aligns all allOf allow allowJson allowed already also alt among an anchor anchorSegments and animate-spin animates any anyFields anyOf apiExample apiKey apiPlayground appearance-none application/javascript application/json application/x-javascript application/x-www-form-urlencoded application/xml applies apply are aria-checked aria-current aria-expanded aria-expanded:decoration-solid aria-expanded:text-fd-accent-foreground aria-hidden aria-label aria-live aria-pressed aria-pressed:bg-fd-background aria-pressed:ring-1 aria-pressed:ring-fd-border aria-pressed:shadow-sm aria-pressed:text-fd-foreground arkdown array arrow as async at audience auth authNode authProviders authSchemes authenticate authorization authorizationCode authorizationUrl authorization_code authorization_pending authorization_url authorize authorized authorizes auto-cols-[minmax(0,max-content)] autoComplete available avoid await away back backdrop-blur-[1px] backdrop-blur-sm backdrop-blur-xs background badgeVariants bar base baseDir basic basis-full be bearer before behavior below between bg-amber-500 bg-amber-500/10 bg-black/30 bg-black/40 bg-blue-500 bg-current/10 bg-fd-accent bg-fd-background bg-fd-background/50 bg-fd-card bg-fd-card/70 bg-fd-muted bg-fd-muted-foreground bg-fd-popover bg-fd-primary bg-fd-primary/10 bg-fd-secondary bg-green-500 bg-linear-to-b bg-linear-to-t bg-red-500 bg-transparent binary block blocks blue body bodyMediaType bodyNode bodyUrlRef boolean border border-0 border-b border-b-0 border-current border-dashed border-fd-muted-foreground/50 border-fd-primary border-fd-primary/20 border-s border-t bottom bottom-0 box box-content breadcrumbs break-all browser built-in builtinProviders bundled but button buttonVariants by bytes cache cached cachedDocFiles callbacks callbacksNode can cancel cancelled candidates cannot caption captioned captionedCodeBlock card cardCodeBlock case catch cause cell center certificate ch challenge change changes charset check checkbox checked chevron chevronClassName children class class-variance-authority className cleanup clearResponse click client client-rendered clientAuth clientCredentials clientId clientSecret clientWidth client_auth client_credentials client_error client_id client_secret clients cloned close closeDelay closest cn code codeProps codeUsages code_challenge code_challenge_method code_verifier codeblock col-span-2 col-span-full collapse collapses collapsible color come compiler component components compute confidential config configUrl configuration configurations const constraints container content contentTypes contents control controller controllerRef cookie cookies copy copyable copying core count createContext createOAuthHandler createOpenAPIPageBase createProxy credentials cross-origin crumbClassName crumbs css csv ctx current currentValue cursor-pointer cursor-text custom customise customization cva dark dark:aria-pressed:bg-fd-accent dark:bg-fd-accent dark:text-amber-400 dark:text-blue-400 dark:text-green-400 dark:text-orange-400 dark:text-red-400 dark:text-yellow-400 data data-[disabled]:opacity-50 data-[disabled]:pointer-events-none data-[highlighted]:bg-fd-accent data-[highlighted]:text-fd-accent-foreground data-active:text-fd-foreground data-checked:bg-fd-primary data-checked:bg-fd-primary-foreground data-checked:translate-x-3 data-closed:animate-fd-dialog-out data-closed:animate-fd-fade-out data-collapsible data-ending-style:duration-150 data-ending-style:h-0 data-ending-style:opacity-0 data-ending-style:scale-95 data-ending-style:scale-[0.97] data-ending-style:scale-[0.98] data-highlighted:bg-fd-accent data-highlighted:text-fd-accent-foreground data-open:animate-fd-dialog-in data-open:animate-fd-fade-in data-placeholder:text-fd-muted-foreground data-popup-open:bg-fd-accent data-popup-open:text-fd-accent-foreground data-popup-open:text-fd-foreground data-starting-style:h-0 data-starting-style:opacity-0 data-starting-style:scale-95 data-starting-style:scale-[0.98] dataEngine decimal declare decode decoration-dotted default defaultMdxComponents defaultShikiFactory defaultShikiOptions defaultValue defaultValues defaults define definitions delay delay-150 delete deprecated depth dereference dereferenced described describes description descriptionNode descriptions development device deviceAuthorization deviceAuthorizationUrl device_authorization_url device_code devices dialog didn direction directories disable disableCache disabled disabled:cursor-not-allowed disabled:opacity-50 disabled:opacity-80 discovered discovering display displayNames disposition div doc docCache docFilesCache docRoot docs document documents does doesn domain don download downloaded drives drop duplicated duration duration-150 duration-200 duration-250 during dynamic dynamicSource e each eading early ease-[cubic-bezier(0.16,1,0.3,1)] ease-[cubic-bezier(0.22,1,0.36,1)] ease-out edge edited editing editor edits element elements else empty empty:hidden enabled encode encodeRequestData encoded end end-2 ending endpoint endpoints ends enforce engine enter entries entry enum err error error_description errors eslint-disable eslint-disable-next-line even every example examples exclusiveMax exclusiveMin expand expected expiresAt expires_in export exported expressions extended extends fades failed fallback false fast-content-type-parse fd-page-tree-item-name fd-scroll-container fetch fetchOptions fetcher field field-sizing-content fieldData fieldLabelVariants fieldName fields file fileName filePath files fill-current filled filling fills filter filterable finally finishes finishing first first:border-t-0 first:mt-0 fixed flex flex-1 flex-col flex-col-reverse flex-row flex-wrap flow flow-root flowInfo flowReturned flows flushSync focus-visible:bg-fd-accent focus-visible:bg-fd-accent/40 focus-visible:bg-fd-primary/15 focus-visible:bg-fd-secondary focus-visible:opacity-100 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-2 focus-visible:ring-fd-primary/30 focus-visible:ring-fd-ring focus-visible:ring-fd-ring/50 focus-visible:ring-inset focus-visible:text-fd-accent-foreground focus-within:ring-1 focus-within:ring-fd-ring focus:outline-none focus:ring focus:ring-0 focus:ring-fd-ring folder folderStyle follow font-light font-medium font-mono font-normal font-sans font-semibold for form form-encoded format forward fragment from from-fd-popover full fumadocs-core/source fumadocs-core/toc fumadocs-openapi-flow fumadocs-openapi-oauth fumadocs-ui/mdx fumadocs:openapi fumadocs_openapi_requests function gap-0.5 gap-1 gap-1.5 gap-2 gap-2.5 gap-24 gap-3 gap-4 gap-x-2 gap-x-3 gap-x-6 gap-y-1 gap-y-4 generate generateDefault generateSchemaUI generateTypeScriptDefinitions generated generators get getLink getOpenAPIPageProps getPreferredType getRaw getSchema getSchemas gets ghost github-dark github-light given go goes going grant_type grant_types_supported grants gray green grid grid-cols-1 grid-cols-[auto_minmax(0,1fr)] grid-cols-[auto_minmax(0,1fr)_auto] grid-cols-[minmax(0,2fr)_minmax(0,3fr)] grid-flow-col group group-data-[panel-open]/accordion:rotate-90 group-data-popup-open:rotate-180 group-hover/nav:translate-x-0.5 group-hover/property:opacity-100 group-hover:translate-x-0.5 group-hover:translate-x-px group/accordion group/nav group/property group/row h-(--accordion-panel-height) h-(--active-tab-height) h-(--collapsible-panel-height) h-10 h-12 h-4 h-5 h-6 h-7 h-8 h-9 h-[240px] h-auto h-full h-px h1 handle handled handles has has-focus-visible:bg-fd-secondary has-focus-visible:border-fd-ring hash hast-util-to-jsx-runtime have headNode header headerRef headers heading headingLevel headless here hidden hiddenKeys hiddenProperties highlighted highlighter hint holding holds hook hover hover:bg-fd-accent hover:bg-fd-accent/40 hover:bg-fd-primary/15 hover:bg-transparent hover:text-fd-accent-foreground hover:text-fd-foreground how href html htmlFor http hydration i icon icon-sm icon-xs iconButtonClassName id idx if img implicit import imports in including index indicator info infoTags init initAuth initial inline inline-flex input inputMode inputs inset-0 inset-x-0 inside installed instanceof instead integer interface interval into invalid invisible is isCopied isDefined isDynamic isExpanded isHighlighted isLazy isLoading isMac isNumber isRequired isSending isn issues it item itemSchema items items-baseline items-center items-start items-stretch its itself js json json-schema-typed justify-between justify-center justify-end kB keep keeping keeps kept key keyed keyof keys kind label labelClassName labelled lang languages larger last last:border-b-0 last:shrink-0 layout layouts lazy leading-5 leading-none leading-relaxed leave leaving left left-0 left-1/2 length let light like line-through link links list listed listener listeners load loadDocument loaderPlugin loading loads location long longer lucide-react make map mapValues margin margins marked match matching max max-age max-h-(--available-height) max-h-[min(18rem,30vh)] max-h-none max-md:hidden max-w-1/2 max-w-40 max-w-60 max-w-64 max-w-72 max-w-80 max-w-[calc(100vw-2rem)] max-w-full max-w-lg max-w-none may mb-3 mb-4 md md:border-s md:grid-cols-[minmax(0,11fr)_minmax(0,9fr)] md:hidden mdxComponents me-1 me-2 me-auto measure measured media mediaAdapters mediaType member members menu menuItems merge message meta metaData metaKey method methods milliseconds mime min min-h-0 min-h-10 min-h-11 min-h-60 min-h-9 min-h-full min-w-0 min-w-16 min-w-40 min-w-[calc(var(--anchor-width)+--spacing(2))] mode motion motion-reduce:transition-none motion-reduce:transition-opacity motion-safe:-translate-x-6 motion-safe:duration-300 motion-safe:ease-[cubic-bezier(0.16,1,0.3,1)] motion-safe:starting:-translate-x-6 motion-safe:starting:-translate-y-4 motion-safe:starting:opacity-0 motion-safe:starting:scale-0 motion-safe:starting:translate-x-6 motion-safe:starting:translate-y-1 motion-safe:starting:translate-y-4 motion-safe:transition-[opacity,translate] motion-safe:transition-opacity motion-safe:transition-transform motionClassNames mounted ms ms-1 ms-1.5 ms-auto mt-0! mt-0.5 mt-1 mt-1.5 mt-10 mt-2.5 mt-px multipart/form-data multiple must mutual mutualTLS mutualTLSProvider mx-1 mx-3 mx-px my-0! my-1 my-3 name name! named names namespace narrow nav navigator nearest needs nested never new next next/previous no no-cache noValidate node node:path noop noreferrer normalizes not not-prose note null number oauth oauth2 oauthPanelProvider oauthRedirectUrl object objectGet objects observer obtain of off ok omit omitted on onAppend onAuthorize onBack onCancel onChange onCheckedChange onClick onCopy onKeyDown onLink onNavigate onOpenChange onRemove onReset onReturn onRoot onSelect onSubmit onUserCode onValueChange once one oneOf ones only opacity-0 opacity-80 open openApiData openIdConnect openIdConnectUrl openOnHover openapi openapiMeta opened opening opens operation options or orange order-last origin origin-(--transform-origin) other otherwise out outline outline-none output outside over overflow-auto overflow-clip overflow-hidden overflow-x-auto overflow-y-auto override overview own p-0 p-0.5 p-1 p-1.5 p-2 p-2.5 p-3 p-4 p-5 p-6 packages padding page pageData pages panel panelCodeBlock panelKey panels param parameter parameterLabel parameterNode parameters params parent parentIndex parents parsed parts party pass password path pathItem pathnameFromRequest pattern patternProperties payload pb-1 pb-2 pb-2.5 pb-3 pe-1 pe-1.5 pe-2 pe-3 pe-4 peer-disabled:cursor-not-allowed peer-disabled:opacity-70 pendingFlowKey persisted pill place placed placeholder placeholder:text-fd-muted-foreground placeholder:text-fd-muted-foreground/70 placeholder:text-fd-primary/50 playground playgrounds please plugins pointer-coarse:opacity-100 polite poll polling popup postForm pre preferred prefers prefixed preloadOpenAPIPage preloaded presents prev preventDefault preview previous primary primitive private processor prop properties property props prose prose-no-margin prose-sm prose-xs provider providers proxied proxy proxyForwardCookie proxyUrl ps-1 ps-1.5 ps-3 ps-3.5 ps-4 ps-6 pt-1.5 pt-2 pt-2.5 pt-3 public px-1 px-1.5 px-2 px-2.5 px-3 px-4 py-0 py-0.5 py-1 py-1.5 py-2 py-2.5 py-3 py-6 py-8 query quiet random range raw react react-dom react-hooks/exhaustive-deps react/jsx-runtime read read-only readOnly readonly record red redirect redirectUrl redirect_uri redirected redirects ref reference refs regenerated rehype-react rejects rel relative relativePath remark remark-rehype remarkGfm remarkRehype remounted removable removal remove removeItem removed render renderAPIExampleUsageTabs renderBodyField renderCodeblock renderMarkdown renderParameterField rendered renderers renders replace replaces represents request request-body requestBody requestData requestInit requestTimeout requestUrl requested requesting requests required requirement requirements res reserved reset resize-none resized resolve resolveMediaAdapter resolveUrl resolved resolvedInput resolvedTheme resolves respond response response-body responseNode responseTabs response_type responses rest restore restored result return returned returnedFlow returnedScheme returning returns revoked right ring-1 ring-fd-border role room root rootId rotate-90 rounded rounded-[5px] rounded-full rounded-lg rounded-md rounded-none rounded-sm rounded-xl route row row-span-2 rowButtonClassName rows run runtime s safeParse same satisfies scalar scan schema schemaId schemaKeys schemaPropKeys schemaUI schemas scheme schemeId schemes scope scopeOptions scopes scopes_supported screen screens scroll scroll-m-20 scroll-mt-[calc(var(--fd-docs-row-3,0px)+1rem)] scrollArrowClassName scrollMarginClassName search secondary seconds secret secrets section sectionIcons sectionNames sections security see segments segs select select-all select-none selectExample selectable selected selectedType selector selectors selects self-center send sending sends separator server server-to-server serverSchema serverUrl servers services session sessionStorage set setAuthorizing setClientAuth setCode setCollapsed setDraft setError setFilter setIndex setInfo setMode setMotion setName setNextName setOpen setResponse setScopes setSelected setSelectedFor setSending setServerVariables setShow setShowSchema setStack setType setUserCode setValue setView several shadow-lg shadow-md shadow-none shadow-sm share shared shared-api/auto-anchor shiki shikiOptions shorten show showDescription showExample showResponseSchema showSelect showTitle shown shrink shrink-0 sibling siblings side sideOffset signal signing single size size-2 size-3 size-3.5 size-4 size-5 skipNonRequired skipReadOnly slashes slides sliding slot slotClassName slotType slots slow_down sm sm:-translate-x-1/2 sm:-translate-y-1/2 sm:border sm:flex-row sm:gap-2 sm:h-[min(52rem,calc(100dvh-3rem))] sm:inline sm:inset-auto sm:justify-end sm:left-1/2 sm:max-h-[min(52rem,calc(100dvh-3rem))] sm:mb-4 sm:mx-4 sm:ps-5 sm:px-4 sm:rounded-2xl sm:shadow-2xl sm:text-start sm:top-1/2 sm:w-[min(64rem,calc(100vw-3rem))] sm:w-[min(80rem,calc(100vw-3rem))] smaller smooth so some something space spellCheck sr-only src stable stack stacked start started starting starting:opacity-0 starts state staticSource status statusInfo stays step stf sticky stops storageKey storageKeyPrefix store stored string stringSchema stringify stringifyFieldKey structuredData style styles submit subscribeNever such suspends svg switch switches sync syncExample synced t tPlayground tab tables tabs tabular-nums tagClassName taken takes target tell text text-4xl text-[0.8125rem] text-amber-600 text-blue-600 text-center text-end text-fd-card-foreground text-fd-foreground text-fd-muted-foreground text-fd-muted-foreground/60 text-fd-muted-foreground/70 text-fd-popover-foreground text-fd-primary text-fd-primary-foreground text-fd-primary-foreground/60 text-fd-secondary-foreground text-green-600 text-lg text-nowrap text-orange-600 text-red-400 text-red-400/80 text-red-600 text-sm text-start text-xl text-xs text-yellow-600 text/css text/csv text/html text/plain texts than that the their them themes then there they this through throw timeout timer timerRef tips title tls to to-transparent toJsxRuntime toStaticData toc toggle toggled token tokenUrl token_type token_url toolbar top top-(--active-tab-top) top-0 top-1/2 top-2 total tracking-tight tracking-widest transform transformPageTree transition-[background-color,scale] transition-[height,opacity] transition-[height] transition-[opacity,scale] transition-[translate,background-color] transition-[translate,width] transition-colors transition-opacity transition-shadow transition-transform transitionClassName translate-x-(--active-tab-left) translations tree trigger true truncate try type typeClassName typeof types undefined under underline underline-offset-4 union unionField unions unique unit unknown unset until update updateInfo updated updating url urn:ietf:params:oauth:grant-type:device_code usage usageTabs usages use useAnchorId useAnchorLink useApiClient useComponents useCopyButton useFieldValue useMemo useNamespace useObject useOnChange useOpenAPI useOperation useQuery useRef useRenderContext useResolvedSchema useResponseExamples useServer useState useStatusInfo useStf useSyncExternalStore useTheme useTranslations used userCode user_code username users using v value valueSchema values variable variables variant variants verification verificationUri verificationUriComplete verification_uri verifier via view viewportClassName viewportProps virtual void w-(--active-tab-width) w-0 w-7 w-72 w-[min(26rem,calc(100vw-2rem))] w-auto w-fit w-full w-max warn was we webhook webhooks what when where while whitespace-pre why width widths will window with without would wrap-anywhere wrap-break-word wrapping write writeOnly written x-exclusiveCodeSample x-playground-lazy xml yellow your z-0 z-10 z-50");
@@ -56,12 +56,16 @@ function SelectContent({ className, children, align = "start", side = "bottom",
56
56
  })
57
57
  }) });
58
58
  }
59
- function SelectItem({ className, children, ref, ...props }) {
59
+ function SelectItem({ className, children, description, ref, ...props }) {
60
+ const text = /* @__PURE__ */ jsx(Select.ItemText, { children });
60
61
  return /* @__PURE__ */ jsxs(Select.Item, {
61
62
  ref,
62
63
  className: cn("flex select-none flex-row items-center gap-2 rounded-md py-1.5 px-2 text-sm outline-none data-[highlighted]:bg-fd-accent data-[highlighted]:text-fd-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50", className),
63
64
  ...props,
64
- children: [/* @__PURE__ */ jsx(Select.ItemText, { children }), /* @__PURE__ */ jsx(Select.ItemIndicator, {
65
+ children: [description ? /* @__PURE__ */ jsxs("div", {
66
+ className: "flex flex-col",
67
+ children: [text, description]
68
+ }) : text, /* @__PURE__ */ jsx(Select.ItemIndicator, {
65
69
  className: "ms-auto shrink-0",
66
70
  children: /* @__PURE__ */ jsx(Check, { className: "size-3.5 text-fd-primary" })
67
71
  })]
@@ -15,11 +15,8 @@ function createOpenAPI(options = {}) {
15
15
  let resolvedInput = {};
16
16
  if (Array.isArray(options.input)) for (const item of options.input) resolvedInput[item] = item;
17
17
  else if (options.input) resolvedInput = options.input;
18
- function getSchema(schemaId) {
19
- if (!(schemaId in resolvedInput)) {
20
- console.warn(`[Fumadocs OpenAPI] the document "${schemaId}" is not listed in the input array, this may be unexpected and won't be cached properly.`);
21
- return loadDocument(schemaId);
22
- }
18
+ async function getSchema(schemaId) {
19
+ if (!Object.hasOwn(resolvedInput, schemaId)) throw new Error(`[Fumadocs OpenAPI] the document "${schemaId}" is not listed in "input", only documents from "input" can be loaded.`);
23
20
  if (!disableCache) {
24
21
  const cached = docCache.get(schemaId);
25
22
  if (cached) return cached;
@@ -1,6 +1,6 @@
1
1
  "use client";
2
2
  import { OperationProvider, useOperation } from "../../operation.js";
3
- import { useOpenAPI, useRenderContext, useTypeScriptDefinitions } from "../../utils/create-page.js";
3
+ import { useOpenAPI, useRenderContext } from "../../utils/create-page.js";
4
4
  import { Badge } from "../../packages/shared-api/dist/components/badge.js";
5
5
  import { MethodLabel } from "../components/method-label.js";
6
6
  import { Markdown } from "../components/markdown.js";
@@ -286,11 +286,7 @@ function CardSelector({ items }) {
286
286
  /** the schema of a request body or response in a media type */
287
287
  function MediaContent({ schema, required, selector, request = false }) {
288
288
  const { method } = useOperation();
289
- const ts = useTypeScriptDefinitions(schema, {
290
- name: request ? "RequestBody" : "ResponseBody",
291
- readOnly: !request,
292
- writeOnly: request
293
- });
289
+ const { doc, generateTypeScriptDefinitions } = useOpenAPI();
294
290
  if (!schema) return /* @__PURE__ */ jsx("div", {
295
291
  className: "not-prose flex h-9 items-center rounded-xl border bg-fd-card ps-1.5 pe-1 text-[0.8125rem]",
296
292
  children: selector
@@ -301,9 +297,14 @@ function MediaContent({ schema, required, selector, request = false }) {
301
297
  as: "body",
302
298
  required,
303
299
  selector,
304
- actions: ts && /* @__PURE__ */ jsx(CopyTypeScript, {
305
- code: ts,
306
- name: request ? "request body" : "response body"
300
+ actions: generateTypeScriptDefinitions && /* @__PURE__ */ jsx(CopyTypeScript, {
301
+ name: request ? "request body" : "response body",
302
+ generate: () => generateTypeScriptDefinitions(schema, {
303
+ name: request ? "RequestBody" : "ResponseBody",
304
+ readOnly: !request,
305
+ writeOnly: request,
306
+ doc
307
+ })
307
308
  })
308
309
  },
309
310
  root: schema,
@@ -311,9 +312,15 @@ function MediaContent({ schema, required, selector, request = false }) {
311
312
  writeOnly: request && method !== "get"
312
313
  });
313
314
  }
314
- function CopyTypeScript({ code, name }) {
315
+ function CopyTypeScript({ name, generate }) {
315
316
  const t = useTranslations({ note: "TypeScript definitions" });
316
- const [isChecked, onCopy] = useCopyButton(() => navigator.clipboard.writeText(code));
317
+ const [isChecked, onCopy] = useCopyButton(() => {
318
+ const code = generate();
319
+ if (typeof code === "string") return navigator.clipboard.writeText(code);
320
+ return Promise.resolve(code).then((code) => {
321
+ if (code) return navigator.clipboard.writeText(code);
322
+ });
323
+ });
317
324
  return /* @__PURE__ */ jsxs("button", {
318
325
  type: "button",
319
326
  title: t("Use the {name} type in TypeScript.", { variables: { name } }),
@@ -26,10 +26,12 @@ function UsageTabs() {
26
26
  const ctx = useRenderContext();
27
27
  const t = useTranslations({ note: "operation page" });
28
28
  const { operation, codeUsages } = useOperation();
29
+ const selectable = !operation["x-exclusiveCodeSample"];
29
30
  const slots = {
30
- selector: operation["x-exclusiveCodeSample"] ? null : /* @__PURE__ */ jsx(UsageTabsSelector, {}),
31
+ selector: ctx.content?.renderAPIExampleUsageTabs && selectable ? /* @__PURE__ */ jsx(UsageTabsSelector, {}) : null,
31
32
  usageTabs: ctx.content?.renderAPIExampleUsageTabs ? ctx.content.renderAPIExampleUsageTabs(codeUsages, ctx) : /* @__PURE__ */ jsx(CodeUsages, {
32
33
  title: t("Example Request"),
34
+ selectExample: selectable,
33
35
  className: "mb-4 flex min-h-0 flex-col overflow-hidden rounded-xl border bg-fd-card"
34
36
  }),
35
37
  responseTabs: /* @__PURE__ */ jsx(ResponseTabs, {})
@@ -76,13 +78,13 @@ function UsageTabsSelector() {
76
78
  function ExampleHeader({ title, children }) {
77
79
  return /* @__PURE__ */ jsxs("div", {
78
80
  className: "flex h-10 shrink-0 items-center gap-2 border-b ps-4 pe-1.5 text-[0.8125rem] font-medium",
79
- children: [/* @__PURE__ */ jsx("span", {
81
+ children: [title && /* @__PURE__ */ jsx("span", {
80
82
  className: "me-auto truncate",
81
83
  children: title
82
84
  }), children]
83
85
  });
84
86
  }
85
- function ExampleSelect({ items, value, onValueChange, className }) {
87
+ function ExampleSelect({ items, value, onValueChange, align = "end", className }) {
86
88
  return /* @__PURE__ */ jsxs(Select, {
87
89
  items,
88
90
  value,
@@ -91,10 +93,15 @@ function ExampleSelect({ items, value, onValueChange, className }) {
91
93
  className: cn("h-7 w-fit max-w-1/2 shrink-0 gap-1.5 border-0 bg-transparent px-2 py-0 text-[0.8125rem] font-medium text-fd-muted-foreground hover:text-fd-accent-foreground focus:ring-0 focus-visible:ring-2 data-popup-open:bg-fd-accent data-popup-open:text-fd-accent-foreground", className),
92
94
  children: /* @__PURE__ */ jsx(SelectValue, { className: "min-w-0 truncate" })
93
95
  }), /* @__PURE__ */ jsx(SelectContent, {
94
- align: "end",
96
+ align,
97
+ className: "max-w-80",
95
98
  children: items.map((item) => /* @__PURE__ */ jsx(SelectItem, {
96
99
  value: item.value,
97
- className: "text-[0.8125rem]",
100
+ description: item.description && /* @__PURE__ */ jsx("div", {
101
+ className: "prose prose-xs prose-no-margin font-normal text-fd-muted-foreground",
102
+ children: /* @__PURE__ */ jsx(Markdown, { md: item.description })
103
+ }),
104
+ className: "text-[0.8125rem] font-medium",
98
105
  children: item.label
99
106
  }, item.value))
100
107
  })]
@@ -113,8 +120,9 @@ function select(id) {
113
120
  for (const listener of listeners) listener();
114
121
  }
115
122
  /** the code usages of the selected example request, with a select of their languages */
116
- function CodeUsages({ title, className, viewportClassName }) {
123
+ function CodeUsages({ title, selectExample = false, className, viewportClassName }) {
117
124
  const generators = useOperation().codeUsages.map();
125
+ const examples = useExampleRequests();
118
126
  const selected = useSyncExternalStore(subscribe, () => sessionStorage.getItem(storageKey), () => null);
119
127
  const id = selected !== null && generators.has(selected) ? selected : generators.keys().next().value;
120
128
  const code = useCodeUsage(id ?? "");
@@ -123,18 +131,29 @@ function CodeUsages({ title, className, viewportClassName }) {
123
131
  value,
124
132
  label: item.label ?? item.lang
125
133
  }));
134
+ const example = selectExample && examples.items.length > 1 ? examples.items.find((item) => item.id === examples.selected) : void 0;
126
135
  return /* @__PURE__ */ jsxs("div", {
127
136
  className,
128
- children: [/* @__PURE__ */ jsx(ExampleHeader, {
129
- title,
130
- children: items.length > 1 ? /* @__PURE__ */ jsx(ExampleSelect, {
137
+ children: [/* @__PURE__ */ jsxs(ExampleHeader, {
138
+ title: !example && title,
139
+ children: [example && /* @__PURE__ */ jsx(ExampleSelect, {
140
+ items: examples.items.map((item) => ({
141
+ value: item.id,
142
+ label: item.name,
143
+ description: item.description
144
+ })),
145
+ value: example.id,
146
+ onValueChange: examples.select,
147
+ align: "start",
148
+ className: "-ms-2 me-auto max-w-none min-w-0 shrink text-fd-foreground"
149
+ }), items.length > 1 ? /* @__PURE__ */ jsx(ExampleSelect, {
131
150
  items,
132
151
  value: id,
133
152
  onValueChange: select
134
153
  }) : /* @__PURE__ */ jsx("span", {
135
154
  className: "px-2 text-fd-muted-foreground",
136
155
  children: items[0].label
137
- })
156
+ })]
138
157
  }), code && /* @__PURE__ */ jsx(ClientCodeBlock, {
139
158
  lang: generators.get(id).lang,
140
159
  code,
@@ -179,6 +198,7 @@ function ResponseTabsDefaultContent({ tabs }) {
179
198
  })),
180
199
  value: String(index),
181
200
  onValueChange: (v) => setIndex(Number(v)),
201
+ align: "start",
182
202
  className: "-ms-2"
183
203
  }), example.description && /* @__PURE__ */ jsx("div", {
184
204
  className: "prose prose-xs prose-no-margin text-fd-muted-foreground",
@@ -428,14 +428,12 @@ function CellSelect({ id, items, value, onValueChange, placeholder }) {
428
428
  })
429
429
  }), /* @__PURE__ */ jsx(SelectContent, { children: items.map((item) => /* @__PURE__ */ jsx(SelectItem, {
430
430
  value: item.value,
431
+ description: item.description && /* @__PURE__ */ jsx("span", {
432
+ className: "text-xs text-fd-muted-foreground",
433
+ children: item.description
434
+ }),
431
435
  className: "text-[0.8125rem]",
432
- children: item.description ? /* @__PURE__ */ jsxs("span", {
433
- className: "flex flex-col",
434
- children: [item.label, /* @__PURE__ */ jsx("span", {
435
- className: "text-xs text-fd-muted-foreground",
436
- children: item.description
437
- })]
438
- }) : item.label
436
+ children: item.label
439
437
  }, item.value)) })]
440
438
  });
441
439
  }
@@ -119,6 +119,7 @@ export interface OpenAPIRenderOptions {
119
119
  operation: OperationObject;
120
120
  }, ctx: RenderContext) => ReactNode;
121
121
  renderAPIExampleLayout?: (slots: {
122
+ /** the select of example requests, only with `renderAPIExampleUsageTabs`, default usage tabs have it in their title */
122
123
  selector: ReactNode;
123
124
  usageTabs: ReactNode;
124
125
  responseTabs: ReactNode;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fumadocs-openapi",
3
- "version": "12.5.0",
3
+ "version": "12.5.1",
4
4
  "description": "Generate MDX docs for your OpenAPI spec",
5
5
  "keywords": [
6
6
  "Docs",
@@ -54,7 +54,7 @@
54
54
  "dependencies": {
55
55
  "@base-ui/react": "^1.8.0",
56
56
  "@fuma-translate/react": "^1.0.2",
57
- "@fumadocs/json-schema": "^0.3.0",
57
+ "@fumadocs/json-schema": "^0.3.1",
58
58
  "@fumari/json-schema-ts": "^1.0.2",
59
59
  "@fumari/stf": "^1.1.1",
60
60
  "@scalar/json-magic": "^0.15.4",
@@ -79,10 +79,10 @@
79
79
  "@types/react-dom": "^19.3.0",
80
80
  "fast-content-type-parse": "^4.0.0",
81
81
  "fuma-cli": "^0.3.1",
82
- "fumadocs-core": "16.17.4",
83
- "fumadocs-ui": "npm:@fumadocs/base-ui@16.17.4",
82
+ "fumadocs-core": "16.17.5",
83
+ "fumadocs-ui": "npm:@fumadocs/base-ui@16.17.5",
84
84
  "json-schema-typed": "^8.0.2",
85
- "shared-api": "0.2.11",
85
+ "shared-api": "0.2.12",
86
86
  "tsconfig": "0.0.0",
87
87
  "tsdown": "0.23.0",
88
88
  "xml-js": "^1.6.11"