Skip to content

@fumadocs/language@0.2.14

Choose a tag to compare

@github-actions github-actions released this 15 Oct 20:34
· 9 commits to dev since this release
aedcf4c

All security schemes in the API playground

  • Support OAuth 2.0 deviceAuthorization flows, openIdConnect schemes and PKCE.
  • OAuth requests with a client secret and device flows go through proxyUrl when set, allow your authorization server in allowedOrigins.
  • The OAuth panel remembers the client ID.
  • mutualTLS schemes no longer send an Authorization header.
  • Headless: useOpenIdConnectFlows(), stf and returned of usePlaygroundAuth(), requestOAuthToken() accepts onUserCode, signal and proxyUrl.
  • Playgrounds on a page share their auth values, useAuthFields().mapValues() reads them from the page.
  • The playground reopens after OAuth flows return in client-rendered sites.
  • Returning OAuth flows no longer switch the security requirement of other playgrounds.
  • Added translation keys to @fumadocs/language.

Redesign the example request and response

  • Titled cards with selects instead of tabs, for the language, the response status and the examples of webhooks.
  • A Schema switch shows the JSON Schema of example responses.
  • Webhook examples show their body and parameters in sections instead of accordions.
  • The playground shows its code usages under a Request header, in the language selected on the page.
  • The playground shows response descriptions in full, in the Response header.
  • Added translation keys to @fumadocs/language.