fumadocs-openapi 12.5.4 → 12.5.6
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/.translations/index.d.ts +6 -3
- package/dist/.translations/keys.js +6 -2
- package/dist/_virtual/_rolldown/runtime.js +1 -2
- package/dist/generate-file.d.ts +1 -3
- package/dist/generate-file.js +3 -3
- package/dist/i18n.d.ts +1 -3
- package/dist/i18n.js +1 -2
- package/dist/index.browser.d.ts +0 -2
- package/dist/index.browser.js +1 -2
- package/dist/node_modules/.pnpm/fast-content-type-parse@4.0.1/node_modules/fast-content-type-parse/index.js +1 -2
- package/dist/node_modules/.pnpm/xml-js@1.6.11/node_modules/xml-js/lib/array-helper.js +1 -2
- package/dist/node_modules/.pnpm/xml-js@1.6.11/node_modules/xml-js/lib/js2xml.js +1 -2
- package/dist/node_modules/.pnpm/xml-js@1.6.11/node_modules/xml-js/lib/options-helper.js +1 -2
- package/dist/operation.d.ts +1 -3
- package/dist/operation.js +1 -2
- package/dist/packages/shared-api/dist/.translations/index.d.ts +2 -5
- package/dist/packages/shared-api/dist/.translations/keys.js +2 -2
- package/dist/packages/shared-api/dist/auto-anchor/index.js +1 -2
- package/dist/packages/shared-api/dist/codegen.d.ts +0 -3
- package/dist/packages/shared-api/dist/codegen.js +1 -2
- package/dist/packages/shared-api/dist/components/badge.js +1 -2
- package/dist/packages/shared-api/dist/components/collapsible.js +1 -2
- package/dist/packages/shared-api/dist/components/copy-typescript.js +1 -2
- package/dist/packages/shared-api/dist/components/defaults.d.ts +2 -4
- package/dist/packages/shared-api/dist/components/defaults.js +21 -21
- package/dist/packages/shared-api/dist/components/dialog.js +1 -2
- package/dist/packages/shared-api/dist/components/example.js +3 -3
- package/dist/packages/shared-api/dist/components/playground/fields.js +27 -9
- package/dist/packages/shared-api/dist/components/playground/json-editor.js +1 -2
- package/dist/packages/shared-api/dist/components/playground/panels.js +1 -2
- package/dist/packages/shared-api/dist/components/playground/param-input.js +1 -2
- package/dist/packages/shared-api/dist/components/playground/result.js +1 -2
- package/dist/packages/shared-api/dist/components/playground/schema.js +1 -2
- package/dist/packages/shared-api/dist/components/playground/server-select.js +1 -2
- package/dist/packages/shared-api/dist/components/schema/client.d.ts +1 -4
- package/dist/packages/shared-api/dist/components/schema/client.js +3 -2
- package/dist/packages/shared-api/dist/components/schema/index.d.ts +0 -3
- package/dist/packages/shared-api/dist/components/schema/index.js +1 -2
- package/dist/packages/shared-api/dist/components/segmented.js +1 -2
- package/dist/packages/shared-api/dist/components/select-tab.js +1 -2
- package/dist/packages/shared-api/dist/components/select.js +1 -2
- package/dist/packages/shared-api/dist/components/spinner.js +1 -2
- package/dist/packages/shared-api/dist/i18n.js +1 -2
- package/dist/packages/shared-api/dist/source.d.ts +1 -4
- package/dist/packages/shared-api/dist/source.js +1 -2
- package/dist/packages/shared-api/dist/utils/document-cache.js +1 -2
- package/dist/packages/shared-api/dist/utils/id-to-title.js +1 -2
- package/dist/packages/shared-api/dist/utils/is-plain-object.js +1 -2
- package/dist/packages/shared-api/dist/utils/url.js +1 -2
- package/dist/packages/shared-api/dist/utils/use-query.js +1 -2
- package/dist/packages/shared-api/dist/utils/use-server-store.js +1 -2
- package/dist/playground/auth.d.ts +2 -2
- package/dist/playground/auth.js +1 -2
- package/dist/playground/fetcher.d.ts +1 -3
- package/dist/playground/fetcher.js +1 -2
- package/dist/playground/use-playground.d.ts +1 -3
- package/dist/playground/use-playground.js +1 -2
- package/dist/requests/generators/all.d.ts +1 -3
- package/dist/requests/generators/all.js +1 -2
- package/dist/requests/generators/csharp.d.ts +1 -3
- package/dist/requests/generators/csharp.js +1 -2
- package/dist/requests/generators/curl.d.ts +1 -3
- package/dist/requests/generators/curl.js +1 -2
- package/dist/requests/generators/go.d.ts +1 -3
- package/dist/requests/generators/go.js +1 -2
- package/dist/requests/generators/index.d.ts +1 -3
- package/dist/requests/generators/index.js +1 -2
- package/dist/requests/generators/java.d.ts +1 -3
- package/dist/requests/generators/java.js +1 -2
- package/dist/requests/generators/javascript.d.ts +1 -3
- package/dist/requests/generators/javascript.js +1 -2
- package/dist/requests/generators/python.d.ts +1 -3
- package/dist/requests/generators/python.js +1 -2
- package/dist/requests/generators/rust.d.ts +1 -3
- package/dist/requests/generators/rust.js +1 -2
- package/dist/requests/media/adapter.d.ts +0 -2
- package/dist/requests/media/adapter.js +1 -2
- package/dist/requests/media/encode.d.ts +1 -3
- package/dist/requests/media/encode.js +1 -2
- package/dist/requests/media/resolve-adapter.d.ts +1 -3
- package/dist/requests/media/resolve-adapter.js +1 -2
- package/dist/requests/string-utils.js +1 -2
- package/dist/requests/types.d.ts +1 -3
- package/dist/server/index.d.ts +0 -2
- package/dist/server/index.js +1 -2
- package/dist/server/oauth.d.ts +1 -3
- package/dist/server/oauth.js +1 -2
- package/dist/server/proxy.d.ts +0 -2
- package/dist/server/proxy.js +8 -4
- package/dist/types/openapi.d.ts +1 -3
- package/dist/types.d.ts +1 -3
- package/dist/ui/base.d.ts +1 -6
- package/dist/ui/base.js +1 -2
- package/dist/ui/components/codeblock.js +1 -2
- package/dist/ui/components/endpoint.js +1 -2
- package/dist/ui/components/heading.js +1 -2
- package/dist/ui/components/markdown.js +1 -2
- package/dist/ui/components/method-label.js +1 -2
- package/dist/ui/components/schema.js +1 -2
- package/dist/ui/index.d.ts +0 -2
- package/dist/ui/index.js +1 -2
- package/dist/ui/operation/index.js +14 -5
- package/dist/ui/operation/usage-tabs.js +12 -5
- package/dist/ui/playground/client.d.ts +6 -5
- package/dist/ui/playground/client.js +1 -2
- package/dist/ui/playground/components/auth.js +1 -2
- package/dist/ui/playground/components/request-panel.d.ts +8 -0
- package/dist/ui/playground/components/request-panel.js +18 -8
- package/dist/ui/playground/components/response-panel.js +1 -2
- package/dist/ui/playground/components/result-display.d.ts +1 -3
- package/dist/ui/playground/components/result-display.js +1 -2
- package/dist/ui/playground/components/server-select.js +1 -2
- package/dist/ui/playground/components/url-bar.js +1 -2
- package/dist/ui/scalar/client.js +1 -2
- package/dist/ui/scalar/index.d.ts +1 -3
- package/dist/ui/scalar/index.js +1 -2
- package/dist/utils/create-page.d.ts +10 -9
- package/dist/utils/create-page.js +14 -8
- package/dist/utils/document/dereference.d.ts +1 -3
- package/dist/utils/document/dereference.js +1 -2
- package/dist/utils/document/load.js +1 -2
- package/dist/utils/get-example-requests.js +4 -4
- package/dist/utils/pages/builder.d.ts +0 -2
- package/dist/utils/pages/builder.js +1 -2
- package/dist/utils/pages/preset-auto.d.ts +0 -2
- package/dist/utils/pages/preset-auto.js +1 -2
- package/dist/utils/pages/to-static-data.d.ts +1 -3
- package/dist/utils/pages/to-static-data.js +1 -2
- package/dist/utils/pages/to-text.d.ts +1 -3
- package/dist/utils/pages/to-text.js +1 -2
- package/dist/utils/schema.js +1 -2
- package/dist/utils/use-server.d.ts +0 -2
- package/dist/utils/use-server.js +1 -2
- package/package.json +12 -13
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 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");
|
|
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 defaultColor 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/highlight 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 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 navigated 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 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 renderDefault 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 shows 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 switching 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 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 whose 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,4 +1,3 @@
|
|
|
1
|
-
//#region src/.translations/index.d.ts
|
|
2
1
|
export type Translations = {
|
|
3
2
|
"Add this to the allowed redirect URIs of your OAuth application.(OAuth dialog)": string;
|
|
4
3
|
"Authenticate using username and password.(OAuth dialog)": string;
|
|
@@ -20,6 +19,7 @@ export type Translations = {
|
|
|
20
19
|
"Client certificate(security scheme)": string;
|
|
21
20
|
"Close(operation page)": string;
|
|
22
21
|
"Close(playground)": string;
|
|
22
|
+
"Code language(operation page)": string;
|
|
23
23
|
"Cookie Parameters(operation page)": string;
|
|
24
24
|
"Cookies(playground)": string;
|
|
25
25
|
"Copied(playground)(aria-label)": string;
|
|
@@ -36,6 +36,7 @@ export type Translations = {
|
|
|
36
36
|
"Example Request(operation page)": string;
|
|
37
37
|
"Example Requests(operation page)": string;
|
|
38
38
|
"Example Response(operation page)": string;
|
|
39
|
+
"Example request(operation page)": string;
|
|
39
40
|
"Example {key}(operation page)": string;
|
|
40
41
|
"Example(operation page)": string;
|
|
41
42
|
"Failed to fetch token(playground)": string;
|
|
@@ -48,6 +49,7 @@ export type Translations = {
|
|
|
48
49
|
"Include the client ID and secret in the token request body.(OAuth dialog)": string;
|
|
49
50
|
"Intended for the server-to-server authentication.(OAuth dialog)": string;
|
|
50
51
|
"Loading the OpenID Connect configuration...(OAuth dialog)": string;
|
|
52
|
+
"Media type(operation page)": string;
|
|
51
53
|
"No example available.(playground)": string;
|
|
52
54
|
"Open verification page(OAuth dialog)": string;
|
|
53
55
|
"OpenID Connect(security scheme)": string;
|
|
@@ -60,11 +62,13 @@ export type Translations = {
|
|
|
60
62
|
"Requires a client certificate installed in your browser.(playground)": string;
|
|
61
63
|
"Resource Owner Password Flow(OAuth dialog)": string;
|
|
62
64
|
"Response Body(operation page)": string;
|
|
65
|
+
"Response status(operation page)": string;
|
|
63
66
|
"Response(playground)": string;
|
|
64
67
|
"Retrieve the access token directly.(OAuth dialog)": string;
|
|
65
68
|
"Schema(operation page)": string;
|
|
66
69
|
"Scope(security scheme)": string;
|
|
67
70
|
"Scopes(OAuth dialog)": string;
|
|
71
|
+
"Security scheme(operation page)": string;
|
|
68
72
|
"Send a request to see its response.(playground)": string;
|
|
69
73
|
"Send as Basic Auth header(OAuth dialog)": string;
|
|
70
74
|
"Send client credentials in body(OAuth dialog)": string;
|
|
@@ -77,5 +81,4 @@ export type Translations = {
|
|
|
77
81
|
"Waiting for authorization...(OAuth dialog)": string;
|
|
78
82
|
"You will be redirected to authorize, then back to this page.(OAuth dialog)": string;
|
|
79
83
|
"You will get a code to enter on the verification page.(OAuth dialog)": string;
|
|
80
|
-
};
|
|
81
|
-
//#endregion
|
|
84
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/.translations/keys.json
|
|
2
2
|
var keys_default = [
|
|
3
3
|
"Add this to the allowed redirect URIs of your OAuth application.(OAuth dialog)",
|
|
4
4
|
"Authenticate using username and password.(OAuth dialog)",
|
|
@@ -20,6 +20,7 @@ var keys_default = [
|
|
|
20
20
|
"Client certificate(security scheme)",
|
|
21
21
|
"Close(operation page)",
|
|
22
22
|
"Close(playground)",
|
|
23
|
+
"Code language(operation page)",
|
|
23
24
|
"Cookie Parameters(operation page)",
|
|
24
25
|
"Cookies(playground)",
|
|
25
26
|
"Copied(playground)(aria-label)",
|
|
@@ -36,6 +37,7 @@ var keys_default = [
|
|
|
36
37
|
"Example Request(operation page)",
|
|
37
38
|
"Example Requests(operation page)",
|
|
38
39
|
"Example Response(operation page)",
|
|
40
|
+
"Example request(operation page)",
|
|
39
41
|
"Example {key}(operation page)",
|
|
40
42
|
"Example(operation page)",
|
|
41
43
|
"Failed to fetch token(playground)",
|
|
@@ -48,6 +50,7 @@ var keys_default = [
|
|
|
48
50
|
"Include the client ID and secret in the token request body.(OAuth dialog)",
|
|
49
51
|
"Intended for the server-to-server authentication.(OAuth dialog)",
|
|
50
52
|
"Loading the OpenID Connect configuration...(OAuth dialog)",
|
|
53
|
+
"Media type(operation page)",
|
|
51
54
|
"No example available.(playground)",
|
|
52
55
|
"Open verification page(OAuth dialog)",
|
|
53
56
|
"OpenID Connect(security scheme)",
|
|
@@ -60,11 +63,13 @@ var keys_default = [
|
|
|
60
63
|
"Requires a client certificate installed in your browser.(playground)",
|
|
61
64
|
"Resource Owner Password Flow(OAuth dialog)",
|
|
62
65
|
"Response Body(operation page)",
|
|
66
|
+
"Response status(operation page)",
|
|
63
67
|
"Response(playground)",
|
|
64
68
|
"Retrieve the access token directly.(OAuth dialog)",
|
|
65
69
|
"Schema(operation page)",
|
|
66
70
|
"Scope(security scheme)",
|
|
67
71
|
"Scopes(OAuth dialog)",
|
|
72
|
+
"Security scheme(operation page)",
|
|
68
73
|
"Send a request to see its response.(playground)",
|
|
69
74
|
"Send as Basic Auth header(OAuth dialog)",
|
|
70
75
|
"Send client credentials in body(OAuth dialog)",
|
|
@@ -78,5 +83,4 @@ var keys_default = [
|
|
|
78
83
|
"You will be redirected to authorize, then back to this page.(OAuth dialog)",
|
|
79
84
|
"You will get a code to enter on the verification page.(OAuth dialog)"
|
|
80
85
|
];
|
|
81
|
-
//#endregion
|
|
82
86
|
export { keys_default as default };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// \0rolldown/runtime.js
|
|
2
2
|
var __create = Object.create;
|
|
3
3
|
var __defProp = Object.defineProperty;
|
|
4
4
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
@@ -20,5 +20,4 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
20
20
|
value: mod,
|
|
21
21
|
enumerable: true
|
|
22
22
|
}) : target, mod));
|
|
23
|
-
//#endregion
|
|
24
23
|
export { __commonJSMin, __toESM };
|
package/dist/generate-file.d.ts
CHANGED
|
@@ -3,7 +3,6 @@ import { OutputEntry } from "./utils/pages/builder.js";
|
|
|
3
3
|
import { SchemaToPagesOptions } from "./utils/pages/preset-auto.js";
|
|
4
4
|
import { PagesToTextOptions } from "./utils/pages/to-text.js";
|
|
5
5
|
import { OpenAPIServer } from "./server/index.js";
|
|
6
|
-
//#region src/generate-file.d.ts
|
|
7
6
|
export interface OutputFile {
|
|
8
7
|
path: string;
|
|
9
8
|
content: string;
|
|
@@ -73,6 +72,5 @@ interface BeforeWriteContext {
|
|
|
73
72
|
readonly generatedEntries: Record<string, OutputEntry[]>;
|
|
74
73
|
}
|
|
75
74
|
export declare function generateFiles(options: Config): Promise<void>;
|
|
76
|
-
export declare function generateFilesOnly(options: DistributiveOmit<Config, 'output'>): Promise<OutputFile[]>;
|
|
77
|
-
//#endregion
|
|
75
|
+
export declare function generateFilesOnly(options: DistributiveOmit<Config, 'output'> & Partial<Pick<Config, 'output'>>): Promise<OutputFile[]>;
|
|
78
76
|
export {};
|
package/dist/generate-file.js
CHANGED
|
@@ -7,7 +7,7 @@ import { existsSync } from "node:fs";
|
|
|
7
7
|
import { mkdir, writeFile } from "node:fs/promises";
|
|
8
8
|
import * as path from "node:path";
|
|
9
9
|
import { PathUtils, createGetUrl, getSlugs } from "fumadocs-core/source";
|
|
10
|
-
|
|
10
|
+
// src/generate-file.ts
|
|
11
11
|
async function generateFiles(options) {
|
|
12
12
|
if (options.watch) {
|
|
13
13
|
const { watch } = await import("chokidar");
|
|
@@ -96,7 +96,8 @@ function writeIndexFiles(context, options) {
|
|
|
96
96
|
let urlFn;
|
|
97
97
|
if (typeof url === "object") {
|
|
98
98
|
const getUrl = createGetUrl(url.baseUrl);
|
|
99
|
-
|
|
99
|
+
const { output = "" } = options;
|
|
100
|
+
urlFn = (file) => getUrl(getSlugs(PathUtils.slash(path.relative(url.contentDir, path.join(output, file)))));
|
|
100
101
|
} else urlFn = url;
|
|
101
102
|
function fileContent(index) {
|
|
102
103
|
const content = [];
|
|
@@ -131,5 +132,4 @@ function writeIndexFiles(context, options) {
|
|
|
131
132
|
});
|
|
132
133
|
return files;
|
|
133
134
|
}
|
|
134
|
-
//#endregion
|
|
135
135
|
export { generateFiles, generateFilesOnly };
|
package/dist/i18n.d.ts
CHANGED
|
@@ -2,7 +2,5 @@ import { Translations as Translations$1 } from "./.translations/index.js";
|
|
|
2
2
|
import { Translations as Translations$2 } from "./packages/shared-api/dist/.translations/index.js";
|
|
3
3
|
import "./packages/shared-api/dist/i18n.js";
|
|
4
4
|
import { TranslationExtension } from "fumadocs-core/i18n";
|
|
5
|
-
//#region src/i18n.d.ts
|
|
6
5
|
export type Translations = Translations$1 & Translations$2;
|
|
7
|
-
export declare function openapiTranslations(): TranslationExtension<keyof Translations>;
|
|
8
|
-
//#endregion
|
|
6
|
+
export declare function openapiTranslations(): TranslationExtension<keyof Translations>;
|
package/dist/i18n.js
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import keys_default from "./.translations/keys.js";
|
|
2
2
|
import { apiDocsTranslations } from "./packages/shared-api/dist/i18n.js";
|
|
3
|
-
|
|
3
|
+
// src/i18n.ts
|
|
4
4
|
function openapiTranslations() {
|
|
5
5
|
return { keys: [...apiDocsTranslations().keys, ...keys_default] };
|
|
6
6
|
}
|
|
7
|
-
//#endregion
|
|
8
7
|
export { openapiTranslations };
|
package/dist/index.browser.d.ts
CHANGED
|
@@ -7,12 +7,10 @@ import { APIPlaygroundProps, CreateOpenAPIRendererOptions, GenerateTypeScriptDef
|
|
|
7
7
|
import { SelectedServer, useServer } from "./utils/use-server.js";
|
|
8
8
|
import { SchemaToPagesOptions } from "./utils/pages/preset-auto.js";
|
|
9
9
|
import { FC } from "react";
|
|
10
|
-
//#region src/index.browser.d.ts
|
|
11
10
|
/**
|
|
12
11
|
* Create `<OpenAPIPage />` from your own UI, it takes the props of generated pages.
|
|
13
12
|
*/
|
|
14
13
|
export declare function createOpenAPIRenderer(options: CreateOpenAPIRendererOptions): FC<OpenAPIPageProps>;
|
|
15
14
|
export declare function generateFiles(): Promise<void>;
|
|
16
15
|
export declare function generateFilesOnly(): Promise<never>;
|
|
17
|
-
//#endregion
|
|
18
16
|
export { type APIPlaygroundProps, type CallbackObject, type CodeBlockProps, type CreateOpenAPIRendererOptions, type Document, type ExampleObject, type GenerateTypeScriptDefinitionsContext, type GeneratedPageProps, type HttpMethods, type MediaAdapter, type MediaTypeObject, type OAuth2SecurityScheme, type OAuthFlows, type OpenAPI, type OpenAPIComponents, type OpenAPIRenderOptions, type OpenAPIRuntime, type OpenAPIRuntimeOptions, type OpenAPIV2, type OpenAPIV3, type OpenAPIV3_1, type OpenAPIV3_2, type OperationItem, type OperationObject, type OperationOutput, type OperationPlaygroundOptions, type OutputEntry, type OutputGroup, type PageLayoutProps, type PageOutput, type PagesBuilder, type PagesBuilderConfig, type ParameterObject, type PathItemObject, type ReferenceObject, type RenderContext, type RequestBodyObject, type ResponseObject, type SchemaToPagesOptions, type SecuritySchemeObject, type SelectedServer, type ServerObject, type ServerVariableObject, type TagObject, type WebhookItem, type WebhookOutput, createOpenAPIBaseRenderer, useComponents, useOpenAPI, useRenderContext, useServer, useTypeScriptDefinitions };
|
package/dist/index.browser.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useServer } from "./utils/use-server.js";
|
|
2
2
|
import { createOpenAPIBaseRenderer, createRenderer, useComponents, useOpenAPI, useRenderContext, useTypeScriptDefinitions } from "./utils/create-page.js";
|
|
3
3
|
import { defaultShikiFactory } from "fumadocs-core/highlight/shiki/full";
|
|
4
|
-
|
|
4
|
+
// src/index.browser.ts
|
|
5
5
|
/**
|
|
6
6
|
* Create `<OpenAPIPage />` from your own UI, it takes the props of generated pages.
|
|
7
7
|
*/
|
|
@@ -17,5 +17,4 @@ async function generateFiles() {
|
|
|
17
17
|
async function generateFilesOnly() {
|
|
18
18
|
throw new Error("`generateFilesOnly` is only available on Node.js.");
|
|
19
19
|
}
|
|
20
|
-
//#endregion
|
|
21
20
|
export { createOpenAPIBaseRenderer, createOpenAPIRenderer, generateFiles, generateFilesOnly, useComponents, useOpenAPI, useRenderContext, useServer, useTypeScriptDefinitions };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { __commonJSMin } from "../../../../../_virtual/_rolldown/runtime.js";
|
|
2
|
-
|
|
2
|
+
// ../../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);
|
|
@@ -221,6 +221,5 @@ var require_fast_content_type_parse = /* @__PURE__ */ __commonJSMin(((exports, m
|
|
|
221
221
|
module.exports.safeParse = safeParse;
|
|
222
222
|
module.exports.defaultContentType = defaultContentType;
|
|
223
223
|
}));
|
|
224
|
-
//#endregion
|
|
225
224
|
export default require_fast_content_type_parse();
|
|
226
225
|
export { require_fast_content_type_parse };
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import { __commonJSMin } from "../../../../../../_virtual/_rolldown/runtime.js";
|
|
2
|
-
|
|
2
|
+
// ../../node_modules/.pnpm/xml-js@1.6.11/node_modules/xml-js/lib/array-helper.js
|
|
3
3
|
var require_array_helper = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
4
4
|
module.exports = { isArray: function(value) {
|
|
5
5
|
if (Array.isArray) return Array.isArray(value);
|
|
6
6
|
return Object.prototype.toString.call(value) === "[object Array]";
|
|
7
7
|
} };
|
|
8
8
|
}));
|
|
9
|
-
//#endregion
|
|
10
9
|
export default require_array_helper();
|
|
11
10
|
export { require_array_helper };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { __commonJSMin } from "../../../../../../_virtual/_rolldown/runtime.js";
|
|
2
2
|
import { require_array_helper } from "./array-helper.js";
|
|
3
3
|
import { require_options_helper } from "./options-helper.js";
|
|
4
|
-
|
|
4
|
+
// ../../node_modules/.pnpm/xml-js@1.6.11/node_modules/xml-js/lib/js2xml.js
|
|
5
5
|
var require_js2xml = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
6
6
|
var helper = require_options_helper();
|
|
7
7
|
var isArray = require_array_helper().isArray;
|
|
@@ -256,6 +256,5 @@ var require_js2xml = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
256
256
|
return xml.join("");
|
|
257
257
|
};
|
|
258
258
|
}));
|
|
259
|
-
//#endregion
|
|
260
259
|
export default require_js2xml();
|
|
261
260
|
export { require_js2xml };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { __commonJSMin } from "../../../../../../_virtual/_rolldown/runtime.js";
|
|
2
2
|
import { require_array_helper } from "./array-helper.js";
|
|
3
|
-
|
|
3
|
+
// ../../node_modules/.pnpm/xml-js@1.6.11/node_modules/xml-js/lib/options-helper.js
|
|
4
4
|
var require_options_helper = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
5
5
|
var isArray = require_array_helper().isArray;
|
|
6
6
|
module.exports = {
|
|
@@ -26,6 +26,5 @@ var require_options_helper = /* @__PURE__ */ __commonJSMin(((exports, module) =>
|
|
|
26
26
|
}
|
|
27
27
|
};
|
|
28
28
|
}));
|
|
29
|
-
//#endregion
|
|
30
29
|
export default require_options_helper();
|
|
31
30
|
export { require_options_helper };
|
package/dist/operation.d.ts
CHANGED
|
@@ -2,7 +2,6 @@ import { RawRequestData, RequestData } from "./requests/types.js";
|
|
|
2
2
|
import { CodeUsageGeneratorRegistry } from "./requests/generators/index.js";
|
|
3
3
|
import { HttpMethods, MediaTypeObject, OperationObject, ParameterObject, PathItemObject, ResponseObject, SecuritySchemeObject } from "./types.js";
|
|
4
4
|
import { ReactNode } from "react";
|
|
5
|
-
//#region src/operation.d.ts
|
|
6
5
|
export interface OperationParameters {
|
|
7
6
|
in: 'path' | 'query' | 'header' | 'cookie';
|
|
8
7
|
items: OperationParameter[];
|
|
@@ -134,5 +133,4 @@ export declare function useCodeUsage(id: string): string | undefined;
|
|
|
134
133
|
/**
|
|
135
134
|
* Responses of the operation, with example values of their preferred media type.
|
|
136
135
|
*/
|
|
137
|
-
export declare function useResponseExamples(): ResponseTab[];
|
|
138
|
-
//#endregion
|
|
136
|
+
export declare function useResponseExamples(): ResponseTab[];
|
package/dist/operation.js
CHANGED
|
@@ -12,7 +12,7 @@ import { getRaw } from "@scalar/json-magic/magic-proxy";
|
|
|
12
12
|
import { sample } from "@fumadocs/json-schema";
|
|
13
13
|
import { jsx } from "react/jsx-runtime";
|
|
14
14
|
import { useTranslations } from "@fuma-translate/react";
|
|
15
|
-
|
|
15
|
+
// src/operation.tsx
|
|
16
16
|
const OperationContext = createContext(null);
|
|
17
17
|
const parameterLocations = [
|
|
18
18
|
"path",
|
|
@@ -288,5 +288,4 @@ function useResponseExamples() {
|
|
|
288
288
|
t
|
|
289
289
|
]);
|
|
290
290
|
}
|
|
291
|
-
//#endregion
|
|
292
291
|
export { OperationProvider, useCodeUsage, useExampleRequest, useExampleRequests, useOperation, useResponseExamples };
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
//#region ../shared-api/dist/.translations/index.d.ts
|
|
2
|
-
//#region src/.translations/index.d.ts
|
|
3
1
|
export type Translations = {
|
|
4
2
|
"1 item(playground)": string;
|
|
5
3
|
"Accepted(playground status info)": string;
|
|
@@ -56,6 +54,7 @@ export type Translations = {
|
|
|
56
54
|
"Remove Item(playground)(aria-label)": string;
|
|
57
55
|
"Remove(playground)": string;
|
|
58
56
|
"Request Failed(playground result display)": string;
|
|
57
|
+
"Schema variant(schema UI)": string;
|
|
59
58
|
"Schema(playground)": string;
|
|
60
59
|
"Select(playground)": string;
|
|
61
60
|
"Send(playground)": string;
|
|
@@ -75,6 +74,4 @@ export type Translations = {
|
|
|
75
74
|
"Value in(schema UI)": string;
|
|
76
75
|
"Variables(playground server select)": string;
|
|
77
76
|
"{count} items(playground)": string;
|
|
78
|
-
};
|
|
79
|
-
//#endregion
|
|
80
|
-
//#endregion
|
|
77
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// ../shared-api/dist/.translations/keys.js
|
|
2
2
|
var keys_default = [
|
|
3
3
|
"1 item(playground)",
|
|
4
4
|
"Accepted(playground status info)",
|
|
@@ -55,6 +55,7 @@ var keys_default = [
|
|
|
55
55
|
"Remove Item(playground)(aria-label)",
|
|
56
56
|
"Remove(playground)",
|
|
57
57
|
"Request Failed(playground result display)",
|
|
58
|
+
"Schema variant(schema UI)",
|
|
58
59
|
"Schema(playground)",
|
|
59
60
|
"Select(playground)",
|
|
60
61
|
"Send(playground)",
|
|
@@ -75,5 +76,4 @@ var keys_default = [
|
|
|
75
76
|
"Variables(playground server select)",
|
|
76
77
|
"{count} items(playground)"
|
|
77
78
|
];
|
|
78
|
-
//#endregion
|
|
79
79
|
export { keys_default as default };
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { createContext, use, useCallback, useEffect, useEffectEvent, useRef, useSyncExternalStore } from "react";
|
|
3
3
|
import { jsx } from "react/jsx-runtime";
|
|
4
4
|
import { slug } from "github-slugger";
|
|
5
|
-
|
|
5
|
+
// ../shared-api/dist/auto-anchor/index.js
|
|
6
6
|
const AnchorContext = createContext("");
|
|
7
7
|
/** Append segments to the anchor IDs below */
|
|
8
8
|
function AnchorSection({ segments, children }) {
|
|
@@ -57,5 +57,4 @@ function subscribeHash(onChange) {
|
|
|
57
57
|
window.addEventListener("hashchange", onChange);
|
|
58
58
|
return () => window.removeEventListener("hashchange", onChange);
|
|
59
59
|
}
|
|
60
|
-
//#endregion
|
|
61
60
|
export { AnchorSection, useAnchorId, useAnchorLink };
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
//#region ../shared-api/dist/codegen.d.ts
|
|
2
|
-
//#region src/codegen.d.ts
|
|
3
1
|
export interface CodeUsageGeneratorRegistry<Data = unknown, Context = unknown> {
|
|
4
2
|
add: (id: string, generator: CodeUsageGenerator<Data, Context>) => void;
|
|
5
3
|
get: (id: string) => CodeUsageGenerator<Data, Context> | undefined;
|
|
@@ -34,5 +32,4 @@ export interface InlineCodeUsageGenerator<Data = unknown, Context = unknown> {
|
|
|
34
32
|
source?: string | CodeUsageGeneratorFn<Data, Context> | false;
|
|
35
33
|
}
|
|
36
34
|
type CodeUsageGeneratorFn<Data, Context> = (data: Data, context: Context) => string;
|
|
37
|
-
//#endregion
|
|
38
35
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// ../shared-api/dist/codegen.js
|
|
2
2
|
function createCodeUsageGeneratorRegistry(inherit) {
|
|
3
3
|
const registry = new Map(inherit?.map());
|
|
4
4
|
return {
|
|
@@ -91,5 +91,4 @@ function csharpRawString(str) {
|
|
|
91
91
|
function shellQuote(str) {
|
|
92
92
|
return `'${str.replaceAll("'", `'\\''`)}'`;
|
|
93
93
|
}
|
|
94
|
-
//#endregion
|
|
95
94
|
export { createCodeUsageGeneratorRegistry, csharpRawString, goString, javaTextBlock, jsTemplateLiteral, pythonString, rustEscapedString, rustString, shellQuote };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { cn } from "../utils/cn.js";
|
|
2
2
|
import { jsx } from "react/jsx-runtime";
|
|
3
3
|
import { cva } from "class-variance-authority";
|
|
4
|
-
|
|
4
|
+
// ../shared-api/dist/components/badge.js
|
|
5
5
|
const badgeVariants = cva("font-mono font-medium", { variants: { color: {
|
|
6
6
|
green: "text-green-600 dark:text-green-400",
|
|
7
7
|
yellow: "text-yellow-600 dark:text-yellow-400",
|
|
@@ -17,5 +17,4 @@ function Badge({ className, color, ...props }) {
|
|
|
17
17
|
children: props.children
|
|
18
18
|
});
|
|
19
19
|
}
|
|
20
|
-
//#endregion
|
|
21
20
|
export { Badge, badgeVariants };
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
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
|
+
// ../shared-api/dist/components/collapsible.js
|
|
6
6
|
const Collapsible$2 = Collapsible.Root;
|
|
7
7
|
Collapsible.Trigger;
|
|
8
8
|
function CollapsibleContent({ children, className, ...props }) {
|
|
@@ -12,5 +12,4 @@ function CollapsibleContent({ children, className, ...props }) {
|
|
|
12
12
|
children
|
|
13
13
|
});
|
|
14
14
|
}
|
|
15
|
-
//#endregion
|
|
16
15
|
export { Collapsible$2 as Collapsible, CollapsibleContent };
|
|
@@ -5,7 +5,7 @@ import { useTranslations } from "@fuma-translate/react";
|
|
|
5
5
|
import { Check, Copy } from "lucide-react";
|
|
6
6
|
import { buttonVariants } from "fumadocs-ui/components/ui/button";
|
|
7
7
|
import { useCopyButton } from "fumadocs-ui/utils/use-copy-button";
|
|
8
|
-
|
|
8
|
+
// ../shared-api/dist/components/copy-typescript.js
|
|
9
9
|
/** copies the TypeScript definitions of a schema, generated on click */
|
|
10
10
|
function CopyTypeScript({ name, generate }) {
|
|
11
11
|
const t = useTranslations({ note: "TypeScript definitions" });
|
|
@@ -27,5 +27,4 @@ function CopyTypeScript({ name, generate }) {
|
|
|
27
27
|
children: [isChecked ? /* @__PURE__ */ jsx(Check, {}) : /* @__PURE__ */ jsx(Copy, {}), "TypeScript"]
|
|
28
28
|
});
|
|
29
29
|
}
|
|
30
|
-
//#endregion
|
|
31
30
|
export { CopyTypeScript };
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { ComponentProps, FC } from "react";
|
|
2
2
|
import { DynamicCodeblockProps } from "fumadocs-ui/components/dynamic-codeblock.core";
|
|
3
3
|
import { ShikiFactory } from "fumadocs-core/highlight/shiki";
|
|
4
|
+
import { Highlighter } from "fumadocs-core/highlight";
|
|
4
5
|
import { BundledTheme, CodeOptionsThemes, CodeToHastOptionsCommon } from "shiki";
|
|
5
|
-
//#region ../shared-api/dist/components/defaults.d.ts
|
|
6
|
-
//#region src/components/defaults.d.ts
|
|
7
6
|
export type CodeBlockProps = Omit<DynamicCodeblockProps, 'highlighter' | 'options'>;
|
|
8
7
|
export type ShikiOptions = Omit<CodeToHastOptionsCommon, 'lang'> & CodeOptionsThemes<BundledTheme>;
|
|
9
8
|
/** components an API page renders its content through */
|
|
@@ -16,5 +15,4 @@ export interface PageComponents {
|
|
|
16
15
|
id: string;
|
|
17
16
|
depth: number;
|
|
18
17
|
}>;
|
|
19
|
-
}
|
|
20
|
-
//#endregion
|
|
18
|
+
}
|
|
@@ -1,30 +1,34 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { Children, useMemo } from "react";
|
|
3
|
-
import * as JsxRuntime from "react/jsx-runtime";
|
|
4
3
|
import { jsx } from "react/jsx-runtime";
|
|
5
4
|
import { remark } from "remark";
|
|
6
5
|
import remarkRehype from "remark-rehype";
|
|
7
6
|
import { remarkGfm } from "fumadocs-core/mdx-plugins/remark-gfm";
|
|
8
|
-
import {
|
|
7
|
+
import { toJsx } from "fumadocs-core/utils/hast-to-jsx";
|
|
9
8
|
import defaultMdxComponents from "fumadocs-ui/mdx";
|
|
10
9
|
import { Heading } from "fumadocs-ui/components/heading";
|
|
11
|
-
import {
|
|
12
|
-
|
|
10
|
+
import { createDynamicCodeBlock } from "fumadocs-ui/components/dynamic-codeblock.core";
|
|
11
|
+
import { createShikiHighlighter } from "fumadocs-core/highlight/shiki";
|
|
12
|
+
// ../shared-api/dist/components/defaults.js
|
|
13
13
|
const defaultShikiOptions = { themes: {
|
|
14
14
|
light: "github-light",
|
|
15
15
|
dark: "github-dark"
|
|
16
16
|
} };
|
|
17
|
+
function resolveHighlighter({ highlighter, shiki, shikiOptions = defaultShikiOptions }) {
|
|
18
|
+
if (highlighter) return highlighter;
|
|
19
|
+
if (!shiki) throw new Error("[Fumadocs] pass a `highlighter` for code blocks");
|
|
20
|
+
return createShikiHighlighter(() => shiki.getOrInit(), {
|
|
21
|
+
defaultColor: false,
|
|
22
|
+
...shikiOptions
|
|
23
|
+
});
|
|
24
|
+
}
|
|
17
25
|
/**
|
|
18
26
|
* The default Markdown, code block and heading components of API pages.
|
|
19
27
|
*
|
|
20
28
|
* Markdown is rendered with Remark, its code blocks go through {@link PageComponents}.
|
|
21
29
|
*/
|
|
22
|
-
function createPageComponents({
|
|
23
|
-
const CodeBlock = components.CodeBlock ?? (
|
|
24
|
-
highlighter: () => shiki.getOrInit(),
|
|
25
|
-
options: shikiOptions,
|
|
26
|
-
...props
|
|
27
|
-
}));
|
|
30
|
+
function createPageComponents({ highlighter, components }) {
|
|
31
|
+
const CodeBlock = components.CodeBlock ?? createDynamicCodeBlock({ highlighter });
|
|
28
32
|
let render;
|
|
29
33
|
return {
|
|
30
34
|
CodeBlock,
|
|
@@ -49,16 +53,12 @@ function createRenderer(CodeBlock) {
|
|
|
49
53
|
code: content.trimEnd()
|
|
50
54
|
});
|
|
51
55
|
}
|
|
52
|
-
const options = {
|
|
53
|
-
...
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
pre: Pre
|
|
58
|
-
}
|
|
59
|
-
};
|
|
56
|
+
const options = { components: {
|
|
57
|
+
...defaultMdxComponents,
|
|
58
|
+
img: "img",
|
|
59
|
+
pre: Pre
|
|
60
|
+
} };
|
|
60
61
|
const processor = remark().use(remarkGfm).use(remarkRehype);
|
|
61
|
-
return (md) =>
|
|
62
|
+
return (md) => toJsx(processor.runSync(processor.parse(md)), options);
|
|
62
63
|
}
|
|
63
|
-
|
|
64
|
-
export { createPageComponents, defaultShikiOptions };
|
|
64
|
+
export { createPageComponents, defaultShikiOptions, resolveHighlighter };
|
|
@@ -5,7 +5,7 @@ import { useTranslations } from "@fuma-translate/react";
|
|
|
5
5
|
import { Play } from "lucide-react";
|
|
6
6
|
import { buttonVariants } from "fumadocs-ui/components/ui/button";
|
|
7
7
|
import { Dialog } from "@base-ui/react/dialog";
|
|
8
|
-
|
|
8
|
+
// ../shared-api/dist/components/dialog.js
|
|
9
9
|
/** the popup of a dialog, a window on larger screens and the full screen on smaller ones */
|
|
10
10
|
function DialogPopup({ className, children }) {
|
|
11
11
|
return /* @__PURE__ */ jsxs(Dialog.Portal, { children: [/* @__PURE__ */ jsx(Dialog.Backdrop, { className: "fixed inset-0 z-50 bg-black/40 backdrop-blur-xs transition-opacity duration-200 data-ending-style:opacity-0 data-starting-style:opacity-0" }), /* @__PURE__ */ jsx(Dialog.Popup, {
|
|
@@ -24,5 +24,4 @@ function PlaygroundTrigger({ children }) {
|
|
|
24
24
|
children: [children || /* @__PURE__ */ jsx(Play, { className: "size-3 fill-current transition-transform duration-200 group-hover:translate-x-px motion-reduce:transition-none" }), t("Try in Playground")]
|
|
25
25
|
});
|
|
26
26
|
}
|
|
27
|
-
//#endregion
|
|
28
27
|
export { DialogPopup, PlaygroundTrigger };
|