fumadocs-openapi 12.5.3 → 12.5.4
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.
- package/css/generated/shared.css +1 -1
- package/dist/_virtual/_rolldown/runtime.js +2 -11
- package/dist/generate-file.d.ts +2 -1
- package/dist/node_modules/.pnpm/{fast-content-type-parse@4.0.0 → fast-content-type-parse@4.0.1}/node_modules/fast-content-type-parse/index.js +1 -1
- package/dist/packages/shared-api/dist/codegen.d.ts +2 -26
- package/dist/packages/shared-api/dist/components/collapsible.js +2 -2
- package/dist/packages/shared-api/dist/components/playground/fields.js +4 -4
- package/dist/packages/shared-api/dist/components/select.js +2 -2
- package/dist/packages/shared-api/dist/utils/cn.js +1 -2
- package/dist/packages/shared-api/dist/utils/document-cache.js +16 -0
- package/dist/playground/auth.d.ts +2 -1
- package/dist/playground/fetcher.js +1 -1
- package/dist/requests/generators/index.d.ts +1 -1
- package/dist/requests/media/adapter.d.ts +2 -1
- package/dist/server/index.d.ts +5 -1
- package/dist/server/index.js +3 -3
- package/dist/server/proxy.d.ts +2 -1
- package/dist/ui/index.d.ts +2 -2
- package/dist/utils/cn.js +1 -2
- package/dist/utils/create-page.d.ts +4 -2
- package/dist/utils/create-page.js +9 -3
- package/dist/utils/pages/builder.d.ts +4 -2
- package/dist/utils/pages/preset-auto.d.ts +2 -1
- package/dist/utils/use-server.d.ts +2 -1
- package/package.json +17 -17
package/css/generated/shared.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
@source inline("!collapsed !headers !readOnly !renderBodyField !required !returned *: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 -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 @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 @xl:w-40 [&>div:has(>figcaption)]:h-10 [&[hidden]:not([hidden='until-found'])]:hidden [&_a]:underline [&_code]:font-mono [&_figcaption]:font-medium [&_figcaption]:overflow-visible [&_figcaption]:text-[0.8125rem] [&_figcaption]:text-fd-foreground [&_figcaption]:text-xs [&_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 accordions across actions active:scale-[0.97] activity actual adapter adapters add addLogEntry added adding additional additionalProperties after again against alias align aligns all allOf allow allowCopy allowJson allowed already also alt among an anchor anchorSegments and animate-spin animates another any anyFields anyOf apiExample apiKey apiPlayground appearance-none application/javascript application/json application/x-javascript application/x-www-form-urlencoded application/xml applied applies apply are aria-checked aria-current aria-expanded aria-expanded:bg-fd-accent 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-xs badgeVariants bar base basic basis-full be bearer before behavior below beside between bg-amber-500 bg-amber-500/10 bg-black/40 bg-blue-500 bg-current/10 bg-fd-accent bg-fd-background bg-fd-card bg-fd-card/70 bg-fd-muted bg-fd-muted-foreground bg-fd-muted-foreground/50 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 blocked blocks blue body bodyMediaType bodyNode bodyUrlRef boolean border border-0 border-b border-b-0 border-current border-dashed border-fd-border/60 border-fd-muted-foreground/50 border-fd-primary border-s border-t border-x-0 bottom bottom-0 box box-content breadcrumbs break-all browser built-in builtinAuthProviders builtinProviders bundled busy but button buttonVariants buttons by bytes cache cached cachedDocFiles callbacks callbacksNode came can cancel cancelled candidates cannot caption captionCodeBlock captioned card cardCodeBlock cards case catch cause cell center certificate ch challenge change changes charset check checkbox checked chevron chevronClassName children class class-variance-authority className cleanup clear clearResponse click client client-rendered clientAuth clientCredentials clientId clientSecret clientWidth client_auth client_credentials client_error client_id client_secret clients cloned close closeDelay closed closest cn code codeProps codeUsages code_challenge code_challenge_method code_verifier codeblock col-span-2 collapse collapses color column come component components compute confidential config configUrl configuration configurations connecting connection const constraints container content contentTypes contents control controller controllerRef controls cookie cookies copies copy copyable copying core count covered covers createContext createOAuthHandler createOpenAPIPageBase createProxy credentials cross-origin crumbClassName crumbs css csv ctions ctx current currentValue cursor-pointer cursor-text custom customise customization 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 data-checked:bg-fd-primary data-checked:bg-fd-primary-foreground data-checked:text-fd-accent-foreground data-checked:translate-x-3 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-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 detail details 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 duration-300 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 edit edited editing editor edits element elements else empty enabled encode encodeRequestData encoded end ending endpoint endpoints ends enforce engine enter entries entry enum err error error_description errors eslint-disable-next-line even every example exampleCardClassName exampleCodeBlock examples exclusiveMax exclusiveMin expand expanded expands 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 fieldName fields file fileName 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/40 focus-visible:bg-fd-primary/15 focus-visible:bg-fd-secondary focus-visible:opacity-100 focus-visible:outline-none 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 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 getPageProps 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-[auto_minmax(0,1fr)] grid-cols-[auto_minmax(0,1fr)_auto] grid-cols-[minmax(0,2fr)_minmax(0,3fr)] grid-flow-col grid-rows-[auto_minmax(0,1fr)] group group-data-[panel-open]/accordion:rotate-90 group-data-popup-open:rotate-180 group-hover/nav:translate-x-0.5 group-hover/open: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/open 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-[calc(--spacing(10)-1px)] h-auto h-full h-px h1 handle handled handles happens has has-focus-visible:bg-fd-secondary has-focus-visible:border-fd-ring hasVariables hash hast-util-to-jsx-runtime have headNode header headerRef headers heading headingLevel headless here hidden hiddenKeys highlighted highlighter hint holding holds hook hour hour12 hover hover:bg-fd-accent hover:bg-fd-accent/40 hover:bg-fd-accent/50 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 isDynamic isExpanded isHighlighted isLazy isLoading isMac isNumber 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 k kB keep keeps kept key keyboard keyed keyof keys kind label labelled lang language languages larger last last:border-b-0 last:shrink-0 lasts latest layout layouts lazy leading-5 leading-relaxed leave leaving left left-0 length let light like line-clamp-3 line-through link links list listed listener listeners live load loadDocument loaded loaderPlugin loading loads location lock locked log long longer looks lucide-react make many 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 maxEntries may mb-3 mb-4 md md:border-s md:grid-cols-[minmax(0,11fr)_minmax(0,9fr)] md:hidden me-1 me-2 me-auto measure measured measures media mediaAdapters mediaType member members memoized menu menuItems merge message messages 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))] minute mode more motion motion-reduce:transition-none motion-reduce:transition-opacity motion-safe:-translate-x-6 motion-safe:animate-pulse motion-safe:duration-300 motion-safe:ease-[cubic-bezier(0.16,1,0.3,1)] motion-safe:starting:-translate-x-2 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:scale-150 motion-safe:starting:translate-x-2 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 mx-3 mx-px my-0! my-1 my-3 name name! named names namespace narrow nav navigate navigator nearest needs nested network never new next next/previous nextId no no-cache noValidate node noop noreferrer normalizes not not-prose note now null number oauth oauth2 oauthRedirectUrl object objectGet objects observer obtain of off ok older omit omitted on onAppend onAuthorize onBack onCancel onChange onCheckedChange onClear onClick onCopy onKeyDown onLink onNavigate onOpenChange onRemove onReset onReturn onRoot onSelect onSubmit onUserCode onValueChange once one oneOf ones only opacity-0 opacity-60 opacity-80 open openApiData openIdConnect openIdConnectUrl openNested openOnHover openapi openapiMeta opened opening opens operation options or orange origin origin-(--transform-origin) other others otherwise out 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 panelTopCodeBlock 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 pendingFlowKey persisted pill place placed placeholder placeholder:font-sans placeholder:text-fd-muted-foreground placeholder:text-fd-muted-foreground/70 placeholder:text-fd-primary/50 plain playground playgrounds please plugins pointer-coarse:opacity-100 polite poll polling popover pops popup port position 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 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 reach react react-dom react-hooks/exhaustive-deps react/jsx-runtime read read-only readOnly readers readonly reads received record red redirect redirectUrl redirect_uri redirected redirects ref reference refs regenerated rejects rel relative reloading 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 reversed revoked right ring-1 ring-3 ring-fd-border ring-green-500/20 role room root rootId 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 sample satisfies scalar scan schema schemaId schemaKeys 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 scrolling search second secondary seconds secret secrets section sectionIcons sectionNames sections security see segments segs select select-all select-none selectExample selectable selected selectedCodeUsages selectedType selecting selection selector selectors selects self-center send sender sending sends sent server server-to-server serverSchema serverUrl servers services session sessionStorage set setAuthorizing setClientAuth setCode setCollapsed setDraft setFilter setIndex setInfo setMode setMotion setName setOpen setResponse setScopes setSelected setSelectedFor setSending setServerVariables setShowSchema setStack setType setUserCode setValue setView several shadow-lg shadow-md shadow-none shadow-sm share shared shared-api/auto-anchor shared-api/source shiki shikiOptions shortcut shorten show showDescription showExample showResponseSchema showTitle shown shrink shrink-0 shrinks 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 slots slow_down sm sm:-translate-x-1/2 sm:-translate-y-1/2 sm:border sm:h-[min(52rem,calc(100dvh-3rem))] sm:inline sm:inset-auto 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:top-1/2 sm:w-[min(64rem,calc(100vw-3rem))] sm:w-[min(80rem,calc(100vw-3rem))] small smaller smooth so some something space spellCheck sr-only src stable stack stacked start started starting starting:opacity-0 starts state staticSource status statusInfo stay stays step stf sticky still stops storage storageKey storageKeyPrefix store stored string stringSchema stringifyFieldKey structuredData style styles submit subscribeNever successful such summary suspends svg switch switches sync syncExample synced t tPlayground tab tables tabs tabular-nums tag tagClassName taken takes target tell telling text text-4xl text-[0.8125rem] text-amber-600 text-blue-600 text-center text-fd-accent-foreground 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-secondary-foreground text-green-600 text-nowrap text-orange-600 text-red-400 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 three through throw time timeFormat timeout timer timerRef tips title titleBarClassName tls to to-transparent toJsxRuntime toStaticData toVirtualFiles toc toggle toggled token tokenUrl token_type token_url top top-(--active-tab-top) top-0 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 trigger true truncate truncating try turns type typeClassName typeof types typing undefined under underline underline-offset-4 union unionField unions unique unit unknown unless unset until up update updateInfo updated updating url urn:ietf:params:oauth:grant-type:device_code usage usageTabs usages use useAnchorId useAnchorLink useApiClient useComponents useCopyButton useDataEngine useFieldValue useMemo useNamespace useOnChange useOpenAPI useOperation useQuery useRef useRenderContext useResolvedSchema useResponseExamples useSchemaUtils useServer useState 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 views virtual void w-(--active-tab-width) w-7 w-72 w-[min(26rem,calc(100vw-2rem))] w-auto w-fit w-full w-max warn warning was we webhook webhooks what when where while whitespace-pre whitespace-pre-wrap why width widths will window with without would wrap wrap-anywhere wrap-break-word wrapping write writeOnly written x-exclusiveCodeSample x-playground-lazy xml yellow yet your z-0 z-10 z-50");
|
|
1
|
+
@source inline("!collapsed !headers !readOnly !renderBodyField !required !returned *: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 -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 @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 @xl:w-40 [&>div:has(>figcaption)]:h-10 [&[hidden]:not([hidden='until-found'])]:hidden [&_a]:underline [&_code]:font-mono [&_figcaption]:font-medium [&_figcaption]:overflow-visible [&_figcaption]:text-[0.8125rem] [&_figcaption]:text-fd-foreground [&_figcaption]:text-xs [&_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 accordions across actions active:scale-[0.97] activity actual adapter adapters add addLogEntry added adding additional additionalProperties after again against alias align aligns all allOf allow allowCopy allowJson allowed already also alt among an anchor anchorSegments and animate-spin animates another any anyFields anyOf apiExample apiKey apiPlayground appearance-none application/javascript application/json application/x-javascript application/x-www-form-urlencoded application/xml applied applies apply are aria-checked aria-current aria-expanded aria-expanded:bg-fd-accent 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-xs badgeVariants bar base basic basis-full be bearer before behavior below beside between bg-amber-500 bg-amber-500/10 bg-black/40 bg-blue-500 bg-current/10 bg-fd-accent bg-fd-background bg-fd-card bg-fd-card/70 bg-fd-muted bg-fd-muted-foreground bg-fd-muted-foreground/50 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 blocked blocks blue body bodyMediaType bodyNode bodyUrlRef boolean border border-0 border-b border-b-0 border-current border-dashed border-fd-border/60 border-fd-muted-foreground/50 border-fd-primary border-s border-t border-x-0 bottom bottom-0 box box-content breadcrumbs break-all browser built-in builtinAuthProviders builtinProviders bundled busy but button buttonVariants buttons by bytes cache cached cachedDocFiles callbacks callbacksNode came can cancel cancelled candidates cannot caption captionCodeBlock captioned card cardCodeBlock cards case catch cause cell center certificate ch challenge change changes charset check checkbox checked chevron chevronClassName children class class-variance-authority className cleanup clear clearResponse click client client-rendered clientAuth clientCredentials clientId clientSecret clientWidth client_auth client_credentials client_error client_id client_secret clients cloned close closeDelay closed closest cn code codeProps codeUsages code_challenge code_challenge_method code_verifier codeblock col-span-2 collapse collapses color column come component components compute confidential config configUrl configuration configurations connecting connection const constraints consumers container content contentTypes contents control controller controllerRef controls cookie cookies copies copy copyable copying core count covered covers createContext createOAuthHandler createOpenAPIPageBase createProxy credentials cross-origin crumbClassName crumbs css csv ctions ctx current currentValue cursor-pointer cursor-text custom customise customization 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 data-checked:bg-fd-primary data-checked:bg-fd-primary-foreground data-checked:text-fd-accent-foreground data-checked:translate-x-3 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-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 detail details 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 duration-300 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 edit edited editing editor edits element elements else empty enabled encode encodeRequestData encoded end ending endpoint endpoints ends enforce engine enter entries entry enum err error error_description errors eslint-disable-next-line even every example exampleCardClassName exampleCodeBlock examples exclusiveMax exclusiveMin expand expanded expands 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 fieldName fields file fileName files fill-current filled filling fills filter filterable finally finishes finishing first first:border-t-0 first:mt-0 fixed flattened flex flex-1 flex-col flex-col-reverse flex-row flex-wrap flow flow-root flowInfo flowReturned flows flushSync 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-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 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 getPageProps 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-[auto_minmax(0,1fr)] grid-cols-[auto_minmax(0,1fr)_auto] grid-cols-[minmax(0,2fr)_minmax(0,3fr)] grid-flow-col grid-rows-[auto_minmax(0,1fr)] group group-data-[panel-open]/accordion:rotate-90 group-data-popup-open:rotate-180 group-hover/nav:translate-x-0.5 group-hover/open: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/open 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-[calc(--spacing(10)-1px)] h-auto h-full h-px h1 handle handled handles happens has has-focus-visible:bg-fd-secondary has-focus-visible:border-fd-ring hasVariables hash hast-util-to-jsx-runtime have headNode header headerRef headers heading headingLevel headless here hidden hiddenKeys highlighted highlighter hint holding holds hook hour hour12 hover hover:bg-fd-accent hover:bg-fd-accent/40 hover:bg-fd-accent/50 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 includeDocument 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 isDynamic isExpanded isHighlighted isLazy isLoading isMac isNumber 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 k kB keep keeps kept key keyboard keyed keyof keys kind label labelled lang language languages larger last last:border-b-0 last:shrink-0 lasts latest layout layouts lazy leading-5 leading-relaxed leave leaving left left-0 length let light like line-clamp-3 line-through link links list listed listener listeners live load loadDocument loaded loaderPlugin loading loads location lock locked log long longer looks lucide-react make many 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 maxEntries may mb-3 mb-4 md md:border-s md:grid-cols-[minmax(0,11fr)_minmax(0,9fr)] md:hidden me-1 me-2 me-auto measure measured measures media mediaAdapters mediaType member members memoized menu menuItems merge message messages 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))] minute mode more motion motion-reduce:transition-none motion-reduce:transition-opacity motion-safe:-translate-x-6 motion-safe:animate-pulse motion-safe:duration-300 motion-safe:ease-[cubic-bezier(0.16,1,0.3,1)] motion-safe:starting:-translate-x-2 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:scale-150 motion-safe:starting:translate-x-2 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 mx-3 mx-px my-0! my-1 my-3 name name! named names namespace narrow nav navigate navigator nearest needs nested network never new next next/previous nextId no no-cache noValidate node noop noreferrer normalizes not not-prose note now null number oauth oauth2 oauthRedirectUrl object objectGet objects observer obtain of off ok older omit omitted on onAppend onAuthorize onBack onCancel onChange onCheckedChange onClear onClick onCopy onKeyDown onLink onNavigate onOpenChange onRemove onReset onReturn onRoot onSelect onSubmit onUserCode onValueChange once one oneOf ones only opacity-0 opacity-60 opacity-80 open openApiData openIdConnect openIdConnectUrl openNested openOnHover openapi openapiMeta opened opening opens operation options or orange origin origin-(--transform-origin) other others otherwise out 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 panelTopCodeBlock 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 pendingFlowKey per persisted pill place placed placeholder placeholder:font-sans placeholder:text-fd-muted-foreground placeholder:text-fd-muted-foreground/70 placeholder:text-fd-primary/50 plain playground playgrounds please plugins pointer-coarse:opacity-100 polite poll polling popover pops popup port position 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 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 reach react react-dom react-hooks/exhaustive-deps react/jsx-runtime read read-only readOnly readers readonly reads received record red redirect redirectUrl redirect_uri redirected redirects ref reference refs regenerated rejects rel relative reloading 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 reversed revoked right ring-1 ring-3 ring-fd-border ring-green-500/20 role room root rootId 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 sample satisfies scalar scan schema schemaId schemaKeys 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 scrolling search second secondary seconds secret secrets section sectionIcons sectionNames sections security see segments segs select select-all select-none selectExample selectable selected selectedCodeUsages selectedType selecting selection selector selectors selects self-center send sender sending sends sent server server-to-server serverSchema serverUrl servers services session sessionStorage set setAuthorizing setClientAuth setCode setCollapsed setDraft setFilter setIndex setInfo setMode setMotion setName setOpen setResponse setScopes setSelected setSelectedFor setSending setServerVariables setShowSchema setStack setType setUserCode setValue setView several shadow-lg shadow-md shadow-none shadow-sm share shared shared-api/auto-anchor shared-api/source shiki shikiOptions shortcut shorten show showDescription showExample showResponseSchema showTitle shown shrink shrink-0 shrinks 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 slots slow_down sm sm:-translate-x-1/2 sm:-translate-y-1/2 sm:border sm:h-[min(52rem,calc(100dvh-3rem))] sm:inline sm:inset-auto 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:top-1/2 sm:w-[min(64rem,calc(100vw-3rem))] sm:w-[min(80rem,calc(100vw-3rem))] small smaller smooth so some something space spellCheck sr-only src stable stack stacked start started starting starting:opacity-0 starts state staticSource status statusInfo stay stays step stf sticky still stops storage storageKey storageKeyPrefix store stored string stringSchema stringifyFieldKey structuredData style styles submit subscribeNever successful such summary suspends svg switch switches sync syncExample synced t tPlayground tab tables tabs tabular-nums tag tagClassName taken takes target tell telling text text-4xl text-[0.8125rem] text-amber-600 text-blue-600 text-center text-fd-accent-foreground 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-secondary-foreground text-green-600 text-nowrap text-orange-600 text-red-400 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 three through throw time timeFormat timeout timer timerRef tips title titleBarClassName tls to to-transparent toJsxRuntime toStaticData toVirtualFiles toc toggle toggled token tokenUrl token_type token_url top top-(--active-tab-top) top-0 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 trigger true truncate truncating try turns type typeClassName typeof types typing undefined under underline underline-offset-4 union unionField unions unique unit unknown unless unset until up update updateInfo updated updating url urn:ietf:params:oauth:grant-type:device_code usage usageTabs usages use useAnchorId useAnchorLink useApiClient useComponents useCopyButton useDataEngine useFieldValue useMemo useNamespace useOnChange useOpenAPI useOperation useQuery useRef useRenderContext useResolvedSchema useResponseExamples useSchemaUtils useServer useState 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 views virtual void w-(--active-tab-width) w-7 w-72 w-[min(26rem,calc(100vw-2rem))] w-auto w-fit w-full w-max warn warning was we webhook webhooks what when where while whitespace-pre whitespace-pre-wrap why width widths will window with without would wrap wrap-anywhere wrap-break-word wrapping write writeOnly written x-exclusiveCodeSample x-playground-lazy xml yellow yet your z-0 z-10 z-50");
|
|
@@ -5,16 +5,7 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
|
5
5
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
6
|
var __getProtoOf = Object.getPrototypeOf;
|
|
7
7
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
-
var __commonJSMin = (cb, mod) => () => (mod || (cb((mod = { exports: {} }).exports, mod), cb = null), mod.exports);
|
|
9
|
-
var __exportAll = (all, no_symbols) => {
|
|
10
|
-
let target = {};
|
|
11
|
-
for (var name in all) __defProp(target, name, {
|
|
12
|
-
get: all[name],
|
|
13
|
-
enumerable: true
|
|
14
|
-
});
|
|
15
|
-
if (!no_symbols) __defProp(target, Symbol.toStringTag, { value: "Module" });
|
|
16
|
-
return target;
|
|
17
|
-
};
|
|
8
|
+
var __commonJSMin = (cb, mod) => () => (mod || (cb((mod = { exports: {} }).exports, mod, mod.exports), cb = null), mod.exports);
|
|
18
9
|
var __copyProps = (to, from, except, desc) => {
|
|
19
10
|
if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
|
|
20
11
|
key = keys[i];
|
|
@@ -30,4 +21,4 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
30
21
|
enumerable: true
|
|
31
22
|
}) : target, mod));
|
|
32
23
|
//#endregion
|
|
33
|
-
export { __commonJSMin,
|
|
24
|
+
export { __commonJSMin, __toESM };
|
package/dist/generate-file.d.ts
CHANGED
|
@@ -74,4 +74,5 @@ interface BeforeWriteContext {
|
|
|
74
74
|
}
|
|
75
75
|
export declare function generateFiles(options: Config): Promise<void>;
|
|
76
76
|
export declare function generateFilesOnly(options: DistributiveOmit<Config, 'output'>): Promise<OutputFile[]>;
|
|
77
|
-
//#endregion
|
|
77
|
+
//#endregion
|
|
78
|
+
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { __commonJSMin } from "../../../../../_virtual/_rolldown/runtime.js";
|
|
2
|
-
//#region ../../node_modules/.pnpm/fast-content-type-parse@4.0.
|
|
2
|
+
//#region ../../node_modules/.pnpm/fast-content-type-parse@4.0.1/node_modules/fast-content-type-parse/index.js
|
|
3
3
|
var require_fast_content_type_parse = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
4
4
|
const NullObject = function NullObject() {};
|
|
5
5
|
NullObject.prototype = Object.create(null);
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
export { CodeUsageGenerator, CodeUsageGeneratorRegistry, InlineCodeUsageGenerator, createCodeUsageGeneratorRegistry, csharpRawString, goString, javaTextBlock, jsTemplateLiteral, pythonString, rustEscapedString, rustString, shellQuote };
|
|
3
|
-
}
|
|
1
|
+
//#region ../shared-api/dist/codegen.d.ts
|
|
4
2
|
//#region src/codegen.d.ts
|
|
5
3
|
export interface CodeUsageGeneratorRegistry<Data = unknown, Context = unknown> {
|
|
6
4
|
add: (id: string, generator: CodeUsageGenerator<Data, Context>) => void;
|
|
@@ -35,28 +33,6 @@ export interface InlineCodeUsageGenerator<Data = unknown, Context = unknown> {
|
|
|
35
33
|
*/
|
|
36
34
|
source?: string | CodeUsageGeneratorFn<Data, Context> | false;
|
|
37
35
|
}
|
|
38
|
-
export declare function createCodeUsageGeneratorRegistry<Data, Context>(inherit?: CodeUsageGeneratorRegistry<Data, Context>): CodeUsageGeneratorRegistry<Data, Context>;
|
|
39
36
|
type CodeUsageGeneratorFn<Data, Context> = (data: Data, context: Context) => string;
|
|
40
|
-
/** a Python triple-quoted string */
|
|
41
|
-
export declare function pythonString(str: string): string;
|
|
42
|
-
/**
|
|
43
|
-
* A Java text block, escapes keep the white space Java strips from each line.
|
|
44
|
-
*
|
|
45
|
-
* A final line break puts the closing delimiter on its own line.
|
|
46
|
-
*/
|
|
47
|
-
export declare function javaTextBlock(str: string): string;
|
|
48
|
-
/** a JavaScript template literal */
|
|
49
|
-
export declare function jsTemplateLiteral(str: string): string;
|
|
50
|
-
/** a Go raw string, the characters it can't hold are concatenated as interpreted strings */
|
|
51
|
-
export declare function goString(str: string): string;
|
|
52
|
-
/** a Rust string with escapes, rustc rejects text direction controls in literals */
|
|
53
|
-
export declare function rustEscapedString(str: string): string;
|
|
54
|
-
/** a Rust raw string with enough `#` to hold `"#`, escaped for the CRs and text direction controls it can't hold */
|
|
55
|
-
export declare function rustString(str: string): string;
|
|
56
|
-
/** a C# raw string literal, the delimiter is longer than every run of quotes inside */
|
|
57
|
-
export declare function csharpRawString(str: string): string;
|
|
58
|
-
/** single quotes keep the string literal, each `'` closes them to add an escaped quote */
|
|
59
|
-
export declare function shellQuote(str: string): string;
|
|
60
|
-
//#endregion
|
|
61
37
|
//#endregion
|
|
62
|
-
export {
|
|
38
|
+
export {};
|
|
@@ -3,7 +3,7 @@ import { cn } from "../utils/cn.js";
|
|
|
3
3
|
import { jsx } from "react/jsx-runtime";
|
|
4
4
|
import { Collapsible } from "@base-ui/react/collapsible";
|
|
5
5
|
//#region ../shared-api/dist/components/collapsible.js
|
|
6
|
-
const Collapsible$
|
|
6
|
+
const Collapsible$2 = Collapsible.Root;
|
|
7
7
|
Collapsible.Trigger;
|
|
8
8
|
function CollapsibleContent({ children, className, ...props }) {
|
|
9
9
|
return /* @__PURE__ */ jsx(Collapsible.Panel, {
|
|
@@ -13,4 +13,4 @@ function CollapsibleContent({ children, className, ...props }) {
|
|
|
13
13
|
});
|
|
14
14
|
}
|
|
15
15
|
//#endregion
|
|
16
|
-
export { Collapsible$
|
|
16
|
+
export { Collapsible$2 as Collapsible, CollapsibleContent };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { cn } from "../../utils/cn.js";
|
|
3
|
-
import { Select as Select$
|
|
3
|
+
import { Select as Select$2, SelectContent, SelectItem, SelectTrigger, SelectValue } from "../select.js";
|
|
4
4
|
import { anyFields, useFieldInfo, useResolvedSchema, useSchemaContext, useSchemaUtils } from "./schema.js";
|
|
5
5
|
import { Fragment, useId, useMemo, useState } from "react";
|
|
6
6
|
import { dereference, matches, matchesType, mergeAllOf, stringify } from "@fumadocs/json-schema";
|
|
@@ -107,7 +107,7 @@ function SchemaSwitch({ fieldName, schema, depth = 0, children }) {
|
|
|
107
107
|
}
|
|
108
108
|
function TypeSelect({ value, options, onChange }) {
|
|
109
109
|
const t = useTranslations({ note: "playground" });
|
|
110
|
-
return /* @__PURE__ */ jsxs(Select$
|
|
110
|
+
return /* @__PURE__ */ jsxs(Select$2, {
|
|
111
111
|
items: options,
|
|
112
112
|
value,
|
|
113
113
|
onValueChange: (v) => v !== null && onChange(v),
|
|
@@ -414,7 +414,7 @@ function NavButton({ id, type, onClick, children }) {
|
|
|
414
414
|
}
|
|
415
415
|
/** a select filling a cell */
|
|
416
416
|
function CellSelect({ id, items, value, onValueChange, placeholder }) {
|
|
417
|
-
return /* @__PURE__ */ jsxs(Select$
|
|
417
|
+
return /* @__PURE__ */ jsxs(Select$2, {
|
|
418
418
|
items,
|
|
419
419
|
value,
|
|
420
420
|
onValueChange: (v) => v !== null && onValueChange(v),
|
|
@@ -590,7 +590,7 @@ function ObjectRows({ fieldName, field, onNavigate }) {
|
|
|
590
590
|
onNavigate: () => onNavigate(entries[i], entries),
|
|
591
591
|
onRemove: child.kind === "fixed" ? void 0 : () => onDelete(child.key)
|
|
592
592
|
}, child.key)),
|
|
593
|
-
hiddenKeys.length > 0 && /* @__PURE__ */ jsxs(Select$
|
|
593
|
+
hiddenKeys.length > 0 && /* @__PURE__ */ jsxs(Select$2, {
|
|
594
594
|
value: null,
|
|
595
595
|
onValueChange: (v) => v !== null && onAppend(v),
|
|
596
596
|
children: [/* @__PURE__ */ jsxs(SelectTrigger, {
|
|
@@ -4,7 +4,7 @@ import { jsx, jsxs } from "react/jsx-runtime";
|
|
|
4
4
|
import { Check, ChevronDown } from "lucide-react";
|
|
5
5
|
import { Select } from "@base-ui/react/select";
|
|
6
6
|
//#region ../shared-api/dist/components/select.js
|
|
7
|
-
const Select$
|
|
7
|
+
const Select$2 = Select.Root;
|
|
8
8
|
Select.Group;
|
|
9
9
|
const SelectValue = Select.Value;
|
|
10
10
|
function SelectTrigger({ className, children, ref, ...props }) {
|
|
@@ -72,4 +72,4 @@ function SelectItem({ className, children, description, ref, ...props }) {
|
|
|
72
72
|
});
|
|
73
73
|
}
|
|
74
74
|
//#endregion
|
|
75
|
-
export { Select$
|
|
75
|
+
export { Select$2 as Select, SelectContent, SelectItem, SelectScrollDownButton, SelectScrollUpButton, SelectTrigger, SelectValue };
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { cn };
|
|
1
|
+
export { cn } from "cn";
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
//#region ../shared-api/dist/utils/document-cache.js
|
|
2
|
+
/** Browsers load each document once per session, servers cache documents themselves. */
|
|
3
|
+
function createDocumentCache() {
|
|
4
|
+
const cache = /* @__PURE__ */ new Map();
|
|
5
|
+
return (id, load) => {
|
|
6
|
+
if (typeof window === "undefined") return load(id);
|
|
7
|
+
let promise = cache.get(id);
|
|
8
|
+
if (!promise) {
|
|
9
|
+
cache.set(id, promise = load(id));
|
|
10
|
+
promise.catch(() => cache.delete(id));
|
|
11
|
+
}
|
|
12
|
+
return promise;
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
//#endregion
|
|
16
|
+
export { createDocumentCache };
|
|
@@ -203,4 +203,5 @@ export interface AuthFieldsOptions {
|
|
|
203
203
|
* The auth fields of an API playground: the values it persists, and the request data they encode into.
|
|
204
204
|
*/
|
|
205
205
|
export declare function useAuthFields(engine: DataEngine, { operation, providers, transform }?: AuthFieldsOptions): AuthFields;
|
|
206
|
-
//#endregion
|
|
206
|
+
//#endregion
|
|
207
|
+
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { resolveMediaAdapter } from "../requests/media/resolve-adapter.js";
|
|
2
|
-
import { require_fast_content_type_parse } from "../node_modules/.pnpm/fast-content-type-parse@4.0.
|
|
2
|
+
import { require_fast_content_type_parse } from "../node_modules/.pnpm/fast-content-type-parse@4.0.1/node_modules/fast-content-type-parse/index.js";
|
|
3
3
|
//#region src/playground/fetcher.ts
|
|
4
4
|
var import_fast_content_type_parse = require_fast_content_type_parse();
|
|
5
5
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { RequestData } from "../types.js";
|
|
2
2
|
import { MediaAdapter } from "../media/adapter.js";
|
|
3
|
-
import { CodeUsageGenerator as CodeUsageGenerator$1, CodeUsageGeneratorRegistry as CodeUsageGeneratorRegistry$1, InlineCodeUsageGenerator as InlineCodeUsageGenerator$1
|
|
3
|
+
import { CodeUsageGenerator as CodeUsageGenerator$1, CodeUsageGeneratorRegistry as CodeUsageGeneratorRegistry$1, InlineCodeUsageGenerator as InlineCodeUsageGenerator$1 } from "../../packages/shared-api/dist/codegen.js";
|
|
4
4
|
//#region src/requests/generators/index.d.ts
|
|
5
5
|
export declare function pathnameFromRequest(pathname: string, { path, query }: RequestData): string;
|
|
6
6
|
export type CodeUsageGeneratorRegistry = CodeUsageGeneratorRegistry$1<RequestData & {
|
package/dist/server/index.d.ts
CHANGED
|
@@ -30,6 +30,8 @@ export interface OpenAPIOptions {
|
|
|
30
30
|
* The url of proxy to avoid CORS issues
|
|
31
31
|
*/
|
|
32
32
|
proxyUrl?: string;
|
|
33
|
+
/** set `false` to leave documents out of page props, pages load each once per browser session with `loadDocument` */
|
|
34
|
+
includeDocument?: boolean;
|
|
33
35
|
}
|
|
34
36
|
export interface OpenAPIServer {
|
|
35
37
|
createProxy: typeof createProxy;
|
|
@@ -58,7 +60,9 @@ export interface OpenAPIServer {
|
|
|
58
60
|
loaderPlugin: () => LoaderPlugin;
|
|
59
61
|
}
|
|
60
62
|
export interface OpenAPIPageData extends PageData {
|
|
61
|
-
getOpenAPIPageProps: () => OpenAPIPageProps_Spec
|
|
63
|
+
getOpenAPIPageProps: () => Omit<OpenAPIPageProps_Spec, 'document'> & {
|
|
64
|
+
document: string;
|
|
65
|
+
};
|
|
62
66
|
getSchema: () => {
|
|
63
67
|
id: string;
|
|
64
68
|
bundled: Document;
|
package/dist/server/index.js
CHANGED
|
@@ -9,7 +9,7 @@ import { MethodLabel } from "../ui/components/method-label.js";
|
|
|
9
9
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
10
10
|
//#region src/server/index.tsx
|
|
11
11
|
function createOpenAPI(options = {}) {
|
|
12
|
-
const { disableCache = false } = options;
|
|
12
|
+
const { disableCache = false, includeDocument = true } = options;
|
|
13
13
|
const docCache = /* @__PURE__ */ new Map();
|
|
14
14
|
let resolvedInput = {};
|
|
15
15
|
if (Array.isArray(options.input)) for (const item of options.input) resolvedInput[item] = item;
|
|
@@ -44,7 +44,7 @@ function createOpenAPI(options = {}) {
|
|
|
44
44
|
getOpenAPIPageProps() {
|
|
45
45
|
return {
|
|
46
46
|
payload: {
|
|
47
|
-
bundled: schema.bundled,
|
|
47
|
+
...includeDocument && { bundled: schema.bundled },
|
|
48
48
|
proxyUrl: server.options.proxyUrl
|
|
49
49
|
},
|
|
50
50
|
...props
|
|
@@ -79,7 +79,7 @@ function createOpenAPI(options = {}) {
|
|
|
79
79
|
proxyUrl: options.proxyUrl
|
|
80
80
|
};
|
|
81
81
|
const openapiMeta = page.data._openapi;
|
|
82
|
-
if (openapiMeta?.preload) out.docs = Object.fromEntries(await Promise.all(openapiMeta.preload.map(async (k) => [k, (await getSchema(k)).bundled])));
|
|
82
|
+
if (includeDocument && openapiMeta?.preload) out.docs = Object.fromEntries(await Promise.all(openapiMeta.preload.map(async (k) => [k, (await getSchema(k)).bundled])));
|
|
83
83
|
return { preloaded: out };
|
|
84
84
|
},
|
|
85
85
|
getSchema,
|
package/dist/server/proxy.d.ts
CHANGED
package/dist/ui/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { OpenAPIPageProps, OpenAPIPageProps_Preloaded, OpenAPIPageProps_Spec } from "../utils/pages/builder.js";
|
|
2
|
-
import { CreateOpenAPIRendererOptions
|
|
2
|
+
import { CreateOpenAPIRendererOptions } from "../utils/create-page.js";
|
|
3
3
|
import { FC } from "react";
|
|
4
4
|
//#region src/ui/index.d.ts
|
|
5
|
-
export interface CreateOpenAPIPageOptions extends
|
|
5
|
+
export interface CreateOpenAPIPageOptions extends Omit<CreateOpenAPIRendererOptions, 'components'> {
|
|
6
6
|
/**
|
|
7
7
|
* Replace parts of the UI, e.g. the ones installed with Fumadocs CLI.
|
|
8
8
|
*/
|
package/dist/utils/cn.js
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { cn };
|
|
1
|
+
export { cn } from "cn";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { MediaAdapter } from "../requests/media/adapter.js";
|
|
2
2
|
import { CodeUsageGeneratorRegistry, InlineCodeUsageGenerator } from "../requests/generators/index.js";
|
|
3
|
-
import { Awaitable, HttpMethods, OperationObject, PathItemObject } from "../types.js";
|
|
3
|
+
import { Awaitable, Document, HttpMethods, OperationObject, PathItemObject } from "../types.js";
|
|
4
4
|
import { ExampleRequest, PageOperationProps, ResponseTab } from "../operation.js";
|
|
5
5
|
import { OpenAPIPageProps, OperationItem, WebhookItem } from "./pages/builder.js";
|
|
6
6
|
import { DereferencedDocument } from "./document/dereference.js";
|
|
@@ -191,6 +191,8 @@ export interface CreateOpenAPIRendererOptions extends OpenAPIRuntimeOptions, Ope
|
|
|
191
191
|
/** wraps the rendered operations and webhooks */
|
|
192
192
|
Layout?: FC<PageLayoutProps>;
|
|
193
193
|
};
|
|
194
|
+
/** load documents left out of page props (`includeDocument: false`) by ID, in server rendering too */
|
|
195
|
+
loadDocument?: (id: string) => Promise<Document>;
|
|
194
196
|
}
|
|
195
197
|
/**
|
|
196
198
|
* The runtime of the API page: the document and request options.
|
|
@@ -209,7 +211,7 @@ export declare function useTypeScriptDefinitions(schema: JsonSchema | undefined,
|
|
|
209
211
|
* `createOpenAPIRenderer()` with nothing built in: it highlights through the `shiki` you pass, and
|
|
210
212
|
* generates code usages and TypeScript definitions only when you pass them.
|
|
211
213
|
*/
|
|
212
|
-
export declare function createOpenAPIBaseRenderer({ components, ...options }: CreateOpenAPIRendererOptions & {
|
|
214
|
+
export declare function createOpenAPIBaseRenderer({ components, loadDocument, ...options }: CreateOpenAPIRendererOptions & {
|
|
213
215
|
shiki: ShikiFactory;
|
|
214
216
|
}): FC<OpenAPIPageProps>;
|
|
215
217
|
//#endregion
|
|
@@ -3,6 +3,7 @@ import { dereferenceBundledDocument } from "./document/dereference.js";
|
|
|
3
3
|
import { defaultAdapters } from "../requests/media/adapter.js";
|
|
4
4
|
import { createCodeUsageGeneratorRegistry } from "../requests/generators/index.js";
|
|
5
5
|
import { registerDefault } from "../requests/generators/all.js";
|
|
6
|
+
import { createDocumentCache } from "../packages/shared-api/dist/utils/document-cache.js";
|
|
6
7
|
import { createPageComponents, defaultShikiOptions } from "../packages/shared-api/dist/components/defaults.js";
|
|
7
8
|
import { ServerProvider } from "./use-server.js";
|
|
8
9
|
import { PlaygroundAuthProvider } from "../playground/auth.js";
|
|
@@ -58,7 +59,8 @@ function useTypeScriptDefinitions(schema, options) {
|
|
|
58
59
|
]);
|
|
59
60
|
return result instanceof Promise ? use(result) : result;
|
|
60
61
|
}
|
|
61
|
-
function OpenAPIProvider({ document, mediaAdapters, codeUsages, generateCodeSamples, generateTypeScriptDefinitions, proxyUrl, storageKeyPrefix = "fumadocs-openapi-", oauthRedirectUrl, shiki, shikiOptions = defaultShikiOptions, showResponseSchema, content, schemaUI, playground, components, children }) {
|
|
62
|
+
function OpenAPIProvider({ document: input, mediaAdapters, codeUsages, generateCodeSamples, generateTypeScriptDefinitions, proxyUrl, storageKeyPrefix = "fumadocs-openapi-", oauthRedirectUrl, shiki, shikiOptions = defaultShikiOptions, showResponseSchema, content, schemaUI, playground, components, children }) {
|
|
63
|
+
const document = input instanceof Promise ? use(input) : input;
|
|
62
64
|
const runtime = useMemo(() => ({
|
|
63
65
|
doc: dereferenceBundledDocument(document),
|
|
64
66
|
mediaAdapters: {
|
|
@@ -141,8 +143,9 @@ function createRenderer(options) {
|
|
|
141
143
|
* `createOpenAPIRenderer()` with nothing built in: it highlights through the `shiki` you pass, and
|
|
142
144
|
* generates code usages and TypeScript definitions only when you pass them.
|
|
143
145
|
*/
|
|
144
|
-
function createOpenAPIBaseRenderer({ components, ...options }) {
|
|
146
|
+
function createOpenAPIBaseRenderer({ components, loadDocument, ...options }) {
|
|
145
147
|
const { Operation, Layout = DefaultLayout } = components;
|
|
148
|
+
const load = createDocumentCache();
|
|
146
149
|
const slots = {
|
|
147
150
|
SchemaUI: components.SchemaUI,
|
|
148
151
|
...createPageComponents({
|
|
@@ -199,12 +202,15 @@ function createOpenAPIBaseRenderer({ components, ...options }) {
|
|
|
199
202
|
let proxyUrl;
|
|
200
203
|
if ("preloaded" in props) {
|
|
201
204
|
document = props.preloaded.docs[props.document];
|
|
202
|
-
if (!document) throw new Error(`[Fumadocs OpenAPI] the document ${props.document} is not preloaded, make sure to pass the "preloaded" prop to <OpenAPIPage />`);
|
|
203
205
|
proxyUrl = props.preloaded.proxyUrl;
|
|
204
206
|
} else {
|
|
205
207
|
document = props.payload.bundled;
|
|
206
208
|
proxyUrl = props.payload.proxyUrl;
|
|
207
209
|
}
|
|
210
|
+
if (!document) {
|
|
211
|
+
if (!props.document || !loadDocument) throw new Error(`[Fumadocs OpenAPI] the document "${props.document}" is not in the page props, pass \`loadDocument\` to \`createOpenAPIPage()\``);
|
|
212
|
+
document = load(props.document, loadDocument);
|
|
213
|
+
}
|
|
208
214
|
return /* @__PURE__ */ jsx(OpenAPIProvider, {
|
|
209
215
|
...options,
|
|
210
216
|
document,
|
|
@@ -111,8 +111,9 @@ export interface GeneratedPageProps {
|
|
|
111
111
|
}
|
|
112
112
|
export type OpenAPIPageProps = OpenAPIPageProps_Spec | OpenAPIPageProps_Preloaded;
|
|
113
113
|
export type OpenAPIPageProps_Spec = Omit<GeneratedPageProps, 'document'> & {
|
|
114
|
+
document?: string;
|
|
114
115
|
payload: {
|
|
115
|
-
bundled
|
|
116
|
+
bundled?: Document;
|
|
116
117
|
proxyUrl?: string;
|
|
117
118
|
};
|
|
118
119
|
};
|
|
@@ -122,4 +123,5 @@ export type OpenAPIPageProps_Preloaded = GeneratedPageProps & {
|
|
|
122
123
|
proxyUrl?: string;
|
|
123
124
|
};
|
|
124
125
|
};
|
|
125
|
-
//#endregion
|
|
126
|
+
//#endregion
|
|
127
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "fumadocs-openapi",
|
|
3
|
-
"version": "12.5.
|
|
3
|
+
"version": "12.5.4",
|
|
4
4
|
"description": "Generate MDX docs for your OpenAPI spec",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Docs",
|
|
@@ -52,39 +52,39 @@
|
|
|
52
52
|
"access": "public"
|
|
53
53
|
},
|
|
54
54
|
"dependencies": {
|
|
55
|
-
"@base-ui/react": "^1.
|
|
55
|
+
"@base-ui/react": "^1.9.0",
|
|
56
56
|
"@fuma-translate/react": "^1.0.2",
|
|
57
|
-
"@fumadocs/json-schema": "^0.3.
|
|
57
|
+
"@fumadocs/json-schema": "^0.3.4",
|
|
58
58
|
"@fumari/json-schema-ts": "^1.0.2",
|
|
59
59
|
"@fumari/stf": "^1.1.2",
|
|
60
|
-
"@scalar/json-magic": "^0.
|
|
61
|
-
"@scalar/openapi-upgrader": "^0.4.
|
|
60
|
+
"@scalar/json-magic": "^0.16.0",
|
|
61
|
+
"@scalar/openapi-upgrader": "^0.4.5",
|
|
62
62
|
"chokidar": "^5.0.0",
|
|
63
63
|
"class-variance-authority": "^0.7.1",
|
|
64
|
-
"cn": "^0.
|
|
64
|
+
"cn": "^0.5.0",
|
|
65
65
|
"github-slugger": "^2.0.0",
|
|
66
66
|
"hast-util-to-jsx-runtime": "^2.3.6",
|
|
67
|
-
"lucide-react": "^1.
|
|
67
|
+
"lucide-react": "^1.59.0",
|
|
68
68
|
"remark": "^15.0.1",
|
|
69
69
|
"remark-rehype": "^11.1.2",
|
|
70
70
|
"shiki": "^4.5.0",
|
|
71
|
-
"undici": "^
|
|
71
|
+
"undici": "^8.12.2",
|
|
72
72
|
"yaml": "^2.9.1"
|
|
73
73
|
},
|
|
74
74
|
"devDependencies": {
|
|
75
|
-
"@scalar/api-client-react": "^2.0.
|
|
75
|
+
"@scalar/api-client-react": "^2.0.58",
|
|
76
76
|
"@tailwindcss/oxide": "^4.3.3",
|
|
77
|
-
"@types/node": "26.6.
|
|
77
|
+
"@types/node": "26.6.5",
|
|
78
78
|
"@types/react": "^19.3.0",
|
|
79
79
|
"@types/react-dom": "^19.3.0",
|
|
80
|
-
"fast-content-type-parse": "^4.0.
|
|
80
|
+
"fast-content-type-parse": "^4.0.1",
|
|
81
81
|
"fuma-cli": "^0.3.1",
|
|
82
|
-
"fumadocs-core": "16.17.
|
|
83
|
-
"fumadocs-ui": "npm:@fumadocs/base-ui@16.17.
|
|
84
|
-
"json-schema-typed": "^
|
|
85
|
-
"shared-api": "0.2.
|
|
82
|
+
"fumadocs-core": "16.17.7",
|
|
83
|
+
"fumadocs-ui": "npm:@fumadocs/base-ui@16.17.7",
|
|
84
|
+
"json-schema-typed": "^9.0.0",
|
|
85
|
+
"shared-api": "0.2.15",
|
|
86
86
|
"tsconfig": "0.0.0",
|
|
87
|
-
"tsdown": "0.23.
|
|
87
|
+
"tsdown": "0.23.1",
|
|
88
88
|
"xml-js": "^1.6.11"
|
|
89
89
|
},
|
|
90
90
|
"peerDependencies": {
|
|
@@ -108,7 +108,7 @@
|
|
|
108
108
|
}
|
|
109
109
|
},
|
|
110
110
|
"inlinedDependencies": {
|
|
111
|
-
"fast-content-type-parse": "4.0.
|
|
111
|
+
"fast-content-type-parse": "4.0.1",
|
|
112
112
|
"xml-js": "1.6.11"
|
|
113
113
|
},
|
|
114
114
|
"scripts": {
|